text stringlengths 0 1.05M | meta dict |
|---|---|
"""Add timeouts."""
import json, zmq, mayaserver
from client_4 import create_client, start_process, SETCMD
import time #(1)
def sendrecv(socket, data, timeoutSecs=10.0): #(2)
socket.send(json.dumps(data))
starttime = time.time() #(3)
while True: #(4)
try:
recved = socket.recv(zmq.NOBLO... | {
"repo_name": "rgalanakis/practicalmayapython",
"path": "src/chapter6/mayaserver/client_6.py",
"copies": "1",
"size": "1304",
"license": "mit",
"hash": -3893924714870706700,
"line_mean": 29.3255813953,
"line_max": 64,
"alpha_frac": 0.5759202454,
"autogenerated": false,
"ratio": 3.5148247978436657... |
"""add timezone awareness for datetime objects
Revision ID: d9530a529b3f
Revises: 221d918aa9f0
Create Date: 2016-06-21 09:39:38.348519
"""
# revision identifiers, used by Alembic.
revision = 'd9530a529b3f'
down_revision = '221d918aa9f0'
from alembic import op
import sqlalchemy as sa
import flaskbb
def upgrade():
... | {
"repo_name": "realityone/flaskbb",
"path": "migrations/versions/d9530a529b3f_add_timezone_awareness_for_datetime.py",
"copies": "2",
"size": "6312",
"license": "bsd-3-clause",
"hash": -8684962285936870000,
"line_mean": 87.9014084507,
"line_max": 180,
"alpha_frac": 0.7474651458,
"autogenerated": fa... |
"""Add timezone information to datetime.
Revision ID: 133e975c3ad7
Revises: 2afd7cb1c8b7
Create Date: 2013-01-29 16:23:10.656380
"""
# revision identifiers, used by Alembic.
revision = '133e975c3ad7'
down_revision = '2afd7cb1c8b7'
from alembic import op
import sqlalchemy as sa
TABLES = ('buildfile', 'class', 'exec... | {
"repo_name": "ucsb-cs/submit",
"path": "submit/migrations/versions/133e975c3ad7_add_timezone_informa.py",
"copies": "1",
"size": "1083",
"license": "bsd-2-clause",
"hash": -6948421012625551000,
"line_mean": 30.8529411765,
"line_max": 79,
"alpha_frac": 0.6472760849,
"autogenerated": false,
"ratio... |
"""add time zone to site
Revision ID: fddd3f850e2c
Revises: 060dba019a3a
Create Date: 2018-01-05 13:32:29.608220
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "fddd3f850e2c"
down_revision = "060dba019a3a"
branch_labels = None
depends_on = None
def upgrade(en... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/fddd3f850e2c_add_time_zone_to_site.py",
"copies": "1",
"size": "1105",
"license": "bsd-3-clause",
"hash": -6720035336463531000,
"line_mean": 22.5106382979,
"line_max": 91,
"alpha_frac": 0.657918552,
"autogenerated"... |
"""! \addtogroup mbtbLocalOption
This documentation is build from the python example Tests/SliderCrank, it contains an example of local options.
This file is optional, if it doesn't exit, the default voptions will be use.
@{
"""
import array
import numpy
#bodies view Param
## To define if a body is drew.
bodyDraw=ar... | {
"repo_name": "fperignon/siconos",
"path": "mechanisms/swig/tests/slider_crank/mbtbLocalOptions.py",
"copies": "1",
"size": "2062",
"license": "apache-2.0",
"hash": -4779555214912163000,
"line_mean": 19.2156862745,
"line_max": 111,
"alpha_frac": 0.7090203686,
"autogenerated": false,
"ratio": 3.08... |
# add to heapq things like removing any item and changing key value
# implementation of priority queue to support contains, change_task_priority
# and remove_task in log time
from heapq import *
class PriorityQueue(object):
def __init__(self, is_min_heap):
self.pq = []
self.entry_finder = {}
... | {
"repo_name": "rtkasodariya/interview",
"path": "python/graph/priorityqueue.py",
"copies": "2",
"size": "2850",
"license": "apache-2.0",
"hash": -4742196052146358000,
"line_mean": 27.7878787879,
"line_max": 76,
"alpha_frac": 0.5670175439,
"autogenerated": false,
"ratio": 3.566958698372966,
"con... |
"""add token time
Revision ID: 2625f2bf32bf
Revises: c19852e4dcda
Create Date: 2020-08-09 20:32:02.324936
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2625f2bf32bf'
down_revision = 'c19852e4dcda'
branch_labels = None
depends_on = None
def upgrade():
#... | {
"repo_name": "hackerspace-silesia/cebulany-manager",
"path": "migrations/versions/2625f2bf32bf_add_token_time.py",
"copies": "1",
"size": "1048",
"license": "mit",
"hash": 6511214562482271000,
"line_mean": 28.1111111111,
"line_max": 89,
"alpha_frac": 0.6717557252,
"autogenerated": false,
"ratio"... |
"""Add tournament status
Revision ID: ee46a4ecb7e3
Revises: 1ce0eb6f5f54
Create Date: 2019-01-03 18:59:43.630787
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'ee46a4ecb7e3'
down_revision = '1ce0eb6f5f54'
branch_label... | {
"repo_name": "mitpokerbots/scrimmage",
"path": "migrations/versions/ee46a4ecb7e3_.py",
"copies": "1",
"size": "1065",
"license": "mit",
"hash": -7056337834203869000,
"line_mean": 30.3235294118,
"line_max": 136,
"alpha_frac": 0.6882629108,
"autogenerated": false,
"ratio": 3.3702531645569622,
"c... |
"""Add track_groups table
Revision ID: eefba82b42c5
Revises: 620b312814f3
Create Date: 2019-07-31 15:15:48.350924
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'eefba82b42c5'
down_revision = '620b312814f3'
branch_labels = None
depends_on = None
def upgrade(... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20190821_1515_eefba82b42c5_add_track_groups_table.py",
"copies": "7",
"size": "1245",
"license": "mit",
"hash": 8234200143640068000,
"line_mean": 31.7631578947,
"line_max": 114,
"alpha_frac": 0.6489959839,
"autogenerated": false,
... |
"""Add track principal
Revision ID: 2496c4adc7e9
Revises: 4e459d27adab
Create Date: 2019-10-02 18:20:33.866458
"""
import bisect
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
from indico.core.db.sqlalchemy import PyIntEnum
from indico.core.db.sqlalchemy.principals import ... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20191111_1820_2496c4adc7e9_add_track_principal.py",
"copies": "5",
"size": "11173",
"license": "mit",
"hash": -1815636628946074000,
"line_mean": 40.2287822878,
"line_max": 119,
"alpha_frac": 0.6198872281,
"autogenerated": false,
"... |
"""add track storage
Revision ID: 2b0f6152e206
Revises: efdd5be8b4f8
Create Date: 2017-09-22 21:33:19.183845
"""
# revision identifiers, used by Alembic.
revision = '2b0f6152e206'
down_revision = 'efdd5be8b4f8'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dia... | {
"repo_name": "EliRibble/minstrel",
"path": "alembic/versions/2b0f6152e206_add_track_storage.py",
"copies": "1",
"size": "1346",
"license": "mit",
"hash": -5475268663394175000,
"line_mean": 38.5882352941,
"line_max": 128,
"alpha_frac": 0.6939078752,
"autogenerated": false,
"ratio": 3.235576923076... |
"""add track.updated
Revision ID: b1a71d1125c2
Revises: af7eba7cd108
Create Date: 2019-12-02 07:45:26.771874
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b1a71d1125c2'
down_revision = 'af7eba7cd108'
branch_labels = None
depends_on = None
def upgrade(engin... | {
"repo_name": "lalinsky/acoustid-server",
"path": "alembic/versions/b1a71d1125c2_add_track_updated.py",
"copies": "1",
"size": "1378",
"license": "mit",
"hash": 3250520064355549700,
"line_mean": 21.9666666667,
"line_max": 92,
"alpha_frac": 0.6509433962,
"autogenerated": false,
"ratio": 3.57922077... |
"""Add transactions table
Revision ID: 392c0a07a3c
Revises: 4b7ccf8ac448
Create Date: 2015-12-14 20:13:06.833508
"""
# revision identifiers, used by Alembic.
revision = '392c0a07a3c'
down_revision = '4b7ccf8ac448'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy... | {
"repo_name": "smilledge/transient",
"path": "transient/migrations/versions/392c0a07a3c_add_transactions_table.py",
"copies": "1",
"size": "1769",
"license": "mit",
"hash": -2926122879764818000,
"line_mean": 43.225,
"line_max": 151,
"alpha_frac": 0.710570944,
"autogenerated": false,
"ratio": 3.55... |
"""Add translated_strings
Revision ID: 0ab02337f372
Revises:
Create Date: 2017-03-08 14:50:37.058424
"""
# revision identifiers, used by Alembic.
revision = '0ab02337f372'
down_revision = None
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postg... | {
"repo_name": "socialwifi/dila",
"path": "dila/data/alembic/versions/0ab02337f372_add_translated_strings.py",
"copies": "1",
"size": "1138",
"license": "bsd-3-clause",
"hash": 945368375239269000,
"line_mean": 29.7567567568,
"line_max": 113,
"alpha_frac": 0.6854130053,
"autogenerated": false,
"rat... |
"""Add TranslationExternalSuggestions
Revision ID: 2ef3688b5383
Revises: 20860ffde766
Create Date: 2015-04-19 12:43:34.752894
"""
# revision identifiers, used by Alembic.
revision = '2ef3688b5383'
down_revision = '20860ffde766'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto ge... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/2ef3688b5383_add_translationexternalsuggestions.py",
"copies": "3",
"size": "1733",
"license": "bsd-2-clause",
"hash": -9220331112230542000,
"line_mean": 42.325,
"line_max": 130,
"alpha_frac": 0.7443739181,
"autogenerated": false,
"rat... |
"""Add TranslationSyncLogs
Revision ID: 21e927fdf78c
Revises: 44d704928d8c
Create Date: 2015-04-20 23:34:51.724151
"""
# revision identifiers, used by Alembic.
revision = '21e927fdf78c'
down_revision = '44d704928d8c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by ... | {
"repo_name": "morelab/appcomposer",
"path": "alembic/versions/21e927fdf78c_add_translationsynclogs.py",
"copies": "3",
"size": "1217",
"license": "bsd-2-clause",
"hash": -1001517064193068800,
"line_mean": 33.7714285714,
"line_max": 118,
"alpha_frac": 0.7198027938,
"autogenerated": false,
"ratio"... |
"""Add triggers for cleanup of address orphans
Revision ID: 28e56bf6f62c
Revises: 5905825242ff
Create Date: 2021-02-12 02:07:00.403096
"""
from alembic import op
import sqlalchemy as sa
import pycroft
# revision identifiers, used by Alembic.
revision = '28e56bf6f62c'
down_revision = '5905825242ff'
branch_labels = N... | {
"repo_name": "agdsn/pycroft",
"path": "pycroft/model/alembic/versions/28e56bf6f62c_add_triggers_for_cleanup_of_address_.py",
"copies": "1",
"size": "1300",
"license": "apache-2.0",
"hash": 8035011293553502000,
"line_mean": 29.2325581395,
"line_max": 99,
"alpha_frac": 0.71,
"autogenerated": false,
... |
"""add Trope
Revision ID: 6ea60f0db6
Revises: 5401daf82c9
Create Date: 2014-11-13 01:35:15.619898
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6ea60f0db6'
down_revision = '5401daf82c9'
def upgrade():
op.create_table(
'tropes',
sa.Colum... | {
"repo_name": "clicheio/cliche",
"path": "cliche/migrations/versions/6ea60f0db6_add_trope.py",
"copies": "2",
"size": "1032",
"license": "mit",
"hash": -7125334453475938000,
"line_mean": 25.4615384615,
"line_max": 71,
"alpha_frac": 0.6191860465,
"autogenerated": false,
"ratio": 3.2149532710280373... |
"""Add tv and animation table and media table add bilibili_id column
Revision ID: 1b2d2f1a1d56
Revises: cc825dd0b55a
Create Date: 2016-02-21 22:24:43.509991
"""
# revision identifiers, used by Alembic.
revision = '1b2d2f1a1d56'
down_revision = 'cc825dd0b55a'
branch_labels = None
depends_on = None
from alembic impor... | {
"repo_name": "billvsme/videoSpider",
"path": "alembic/versions/1b2d2f1a1d56_add_tv_and_animation_table_and_media_.py",
"copies": "1",
"size": "2208",
"license": "mit",
"hash": -743054426668906900,
"line_mean": 32.9692307692,
"line_max": 81,
"alpha_frac": 0.6639492754,
"autogenerated": false,
"ra... |
"""Add tvtropes Redirections
Revision ID: 7f6fc70526
Revises: 3ae4102055a
Create Date: 2014-08-19 05:03:49.018915
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7f6fc70526'
down_revision = '3ae4102055a'
def upgrade():
op.create_table(
'tvtropes_... | {
"repo_name": "clicheio/cliche",
"path": "cliche/migrations/versions/7f6fc70526_add_tvtropes_redirections.py",
"copies": "2",
"size": "1035",
"license": "mit",
"hash": -6745523977760766000,
"line_mean": 29.4411764706,
"line_max": 72,
"alpha_frac": 0.6057971014,
"autogenerated": false,
"ratio": 3.... |
# add two numbers a and b, and return a+b
# para:
# a - integer number
# b - integer number
# return: a number which is sum of a and b
#
from fileinput import input
def add(a, b):
return a+b
# here im going to make a subtracting function
# input:
# a - integer
# b - integer
# return: a-b
def subt... | {
"repo_name": "vollov/python-test",
"path": "dudu/2021_01_05.py",
"copies": "1",
"size": "1389",
"license": "mit",
"hash": -5390406615219619000,
"line_mean": 20.703125,
"line_max": 91,
"alpha_frac": 0.6364290857,
"autogenerated": false,
"ratio": 2.783567134268537,
"config_test": false,
"has_n... |
"""Add Two Numbers
You are given two linked lists representing two non-negative numbers.
The digits are stored in reverse order and each of their nodes contain
a single digit. Add the two numbers and return it as a linked list.
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Output: 7 -> 0 -> 8
Refer https://leetcode.com/proble... | {
"repo_name": "aiden0z/snippets",
"path": "leetcode/002_add_two_numbers.py",
"copies": "1",
"size": "3946",
"license": "mit",
"hash": -137725167606608020,
"line_mean": 24.4580645161,
"line_max": 89,
"alpha_frac": 0.4630005068,
"autogenerated": false,
"ratio": 3.5485611510791366,
"config_test": ... |
"""Add type field to NetworkingAction
Revision ID: 3b2dab2e0d7d
Revises: 89630e3872ec
Create Date: 2016-11-14 14:57:19.247255
"""
from alembic import op
import sqlalchemy as sa
from hil.model import NetworkingAction
# revision identifiers, used by Alembic.
revision = '3b2dab2e0d7d'
down_revision = '57f4c30b0ad4'
b... | {
"repo_name": "CCI-MOC/haas",
"path": "hil/migrations/versions/3b2dab2e0d7d_add_type_field_to_networkingaction.py",
"copies": "4",
"size": "1054",
"license": "apache-2.0",
"hash": 4433189799139824600,
"line_mean": 28.2777777778,
"line_max": 75,
"alpha_frac": 0.6973434535,
"autogenerated": false,
... |
"""Add unique_award_key to AwardProcurement, AwardFinancialAssistance, CertifiedAwardProcurement, and CertifiedAwardFinancialAssistance
Revision ID: 3fd9a578c9c5
Revises: 0225d53e520a
Create Date: 2020-01-23 14:39:59.527010
"""
# revision identifiers, used by Alembic.
revision = '3fd9a578c9c5'
down_revision = '0225d... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/3fd9a578c9c5_add_unique_award_key_to_.py",
"copies": "1",
"size": "1928",
"license": "cc0-1.0",
"hash": 627406173009764600,
"line_mean": 37.56,
"line_max": 135,
"alpha_frac": 0.7131742739,
"aut... |
"""add unique_award_key to transaction tables
Revision ID: 4bbc47f2b48d
Revises: ab4eac43f605
Create Date: 2018-10-10 17:17:34.091022
"""
# revision identifiers, used by Alembic.
revision = '4bbc47f2b48d'
down_revision = 'ab4eac43f605'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy ... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/4bbc47f2b48d_add_unique_award_key_to_transaction_.py",
"copies": "1",
"size": "2147",
"license": "cc0-1.0",
"hash": -8486461423501704000,
"line_mean": 41.94,
"line_max": 161,
"alpha_frac": 0.7265... |
"""Add unique constraints
Revision ID: 0868747e62ff
Revises: e60a77e44da8
Create Date: 2017-04-11 16:10:42.109777
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0868747e62ff'
down_revision = 'e60a77e44da8'
branch_labels = ()
depends_on = None
def upgrade():
... | {
"repo_name": "al4/orlo",
"path": "orlo/migrations/0868747e62ff_add_unique_constraints.py",
"copies": "4",
"size": "1061",
"license": "mit",
"hash": 287590846351461020,
"line_mean": 31.1515151515,
"line_max": 65,
"alpha_frac": 0.6927426956,
"autogenerated": false,
"ratio": 3.2249240121580547,
"... |
"""Add unique constraint to certificate_notification_associations table.
Revision ID: 449c3d5c7299
Revises: 5770674184de
Create Date: 2018-02-24 22:51:35.369229
"""
# revision identifiers, used by Alembic.
revision = "449c3d5c7299"
down_revision = "5770674184de"
from alembic import op
from flask_sqlalchemy import S... | {
"repo_name": "Netflix/lemur",
"path": "lemur/migrations/versions/449c3d5c7299_.py",
"copies": "1",
"size": "1054",
"license": "apache-2.0",
"hash": 6040258194363445000,
"line_mean": 26.7368421053,
"line_max": 112,
"alpha_frac": 0.7220113852,
"autogenerated": false,
"ratio": 3.7777777777777777,
... |
"""Add unique constraint to program_number in cfda_program table
Revision ID: 67feaf4d50b8
Revises: a9b778fd5181
Create Date: 2018-08-30 09:59:18.532654
"""
# revision identifiers, used by Alembic.
revision = '67feaf4d50b8'
down_revision = 'a9b778fd5181'
branch_labels = None
depends_on = None
from alembic import op... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/67feaf4d50b8_add_unique_constraint_to_program_number_.py",
"copies": "1",
"size": "1136",
"license": "cc0-1.0",
"hash": 3311508355739880000,
"line_mean": 26.0476190476,
"line_max": 108,
"alpha_fr... |
"""Add unique constraint to the AccountTypeCustomValues table and remove duplicates
Revision ID: 11f081cf54e2
Revises: a9fe9c93ed75
Create Date: 2018-04-06 17:28:33.431400
"""
# revision identifiers, used by Alembic.
revision = '11f081cf54e2'
down_revision = 'a9fe9c93ed75'
from alembic import op
import sqlalchemy a... | {
"repo_name": "Netflix/security_monkey",
"path": "migrations/versions/11f081cf54e2_.py",
"copies": "1",
"size": "3769",
"license": "apache-2.0",
"hash": 4660798176035427000,
"line_mean": 35.5922330097,
"line_max": 115,
"alpha_frac": 0.6200583709,
"autogenerated": false,
"ratio": 3.853783231083844... |
"""Add unique fields and link between history and active translations
Revision ID: 19128bb7efe0
Revises: 4280e1ce31d9
Create Date: 2015-03-31 12:55:22.925413
"""
# revision identifiers, used by Alembic.
revision = '19128bb7efe0'
down_revision = '4280e1ce31d9'
from alembic import op
import sqlalchemy as sa
from sqla... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/19128bb7efe0_add_unique_fields_and_link_between_.py",
"copies": "3",
"size": "1877",
"license": "bsd-2-clause",
"hash": -4328621045721123300,
"line_mean": 47.1282051282,
"line_max": 138,
"alpha_frac": 0.7352157698,
"autogenerated": false... |
"""Add unique files constraint.
Revision ID: 1217e5fbdbd9
Revises: 32518998055d
Create Date: 2015-03-23 14:49:33.176862
"""
from textwrap import dedent
# revision identifiers, used by Alembic.
revision = '1217e5fbdbd9'
down_revision = '32518998055d'
branch_labels = None
depends_on = None
from alembic import op
de... | {
"repo_name": "quantopian/pgcontents",
"path": "pgcontents/alembic/versions/1217e5fbdbd9_.py",
"copies": "1",
"size": "1440",
"license": "apache-2.0",
"hash": -1669297761076910600,
"line_mean": 21.8571428571,
"line_max": 66,
"alpha_frac": 0.6055555556,
"autogenerated": false,
"ratio": 3.469879518... |
"""add unique in bundles
Revision ID: d20615919d80
Revises: b262149925a7
Create Date: 2017-10-14 17:04:29.450667
"""
# revision identifiers, used by Alembic.
revision = 'd20615919d80'
down_revision = 'b262149925a7'
from collections import defaultdict
from alembic import op
import sqlalchemy as sa
from sqlalchemy i... | {
"repo_name": "go-lab/appcomposer",
"path": "alembic/versions/d20615919d80_add_unique_in_bundles.py",
"copies": "3",
"size": "3091",
"license": "bsd-2-clause",
"hash": -5627055794465592000,
"line_mean": 41.3424657534,
"line_max": 309,
"alpha_frac": 0.7243610482,
"autogenerated": false,
"ratio": 3... |
"""add uniqueness constraints
Revision ID: e59c406395d2
Revises: ad5ccc47d004
Create Date: 2017-02-02 16:00:24.237353
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e59c406395d2'
down_revision = 'ad5ccc47d004'
branch_labels = None
depends_on = None
def upgr... | {
"repo_name": "rjw57/bitsbox",
"path": "migrations/versions/e59c406395d2_add_uniqueness_constraints.py",
"copies": "1",
"size": "1579",
"license": "mit",
"hash": 6540235696542949000,
"line_mean": 34.8863636364,
"line_max": 115,
"alpha_frac": 0.6966434452,
"autogenerated": false,
"ratio": 3.310272... |
"""Add unsupported https url list
Revision ID: 58abc4899824
Revises: 3812c222917d
Create Date: 2019-02-24 18:35:34.484088
"""
# revision identifiers, used by Alembic.
revision = '58abc4899824'
down_revision = '3812c222917d'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto genera... | {
"repo_name": "gateway4labs/labmanager",
"path": "alembic/versions/58abc4899824_add_unsupported_https_url_list.py",
"copies": "4",
"size": "1513",
"license": "bsd-2-clause",
"hash": 2349206488728119000,
"line_mean": 36.825,
"line_max": 114,
"alpha_frac": 0.7184401851,
"autogenerated": false,
"rat... |
"""Add 'until approved' regform modification mode
Revision ID: e4fb983dc64c
Revises: 8d614ef75968
Create Date: 2020-12-09 20:10:12.155982
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = 'e4fb983dc64c'
down_revision = '8d614ef75968'
branch_labels = None
depends_on = None
def upgrade(... | {
"repo_name": "ThiefMaster/indico",
"path": "indico/migrations/versions/20201209_2010_e4fb983dc64c_add_until_approved_regform_modification_mode.py",
"copies": "4",
"size": "1024",
"license": "mit",
"hash": 6551486202729118000,
"line_mean": 33.1333333333,
"line_max": 158,
"alpha_frac": 0.7021484375,
... |
"""add updated columns
Revision ID: af7eba7cd108
Revises: d2176bc400c8
Create Date: 2019-12-02 07:44:04.212957
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'af7eba7cd108'
down_revision = 'd2176bc400c8'
branch_labels = None
depends_on = None
def upgrade(eng... | {
"repo_name": "lalinsky/acoustid-server",
"path": "alembic/versions/af7eba7cd108_add_updated_columns.py",
"copies": "1",
"size": "1368",
"license": "mit",
"hash": -5838381274657133000,
"line_mean": 23.4285714286,
"line_max": 102,
"alpha_frac": 0.6995614035,
"autogenerated": false,
"ratio": 3.0950... |
"""Add/Update tables for pjsip
Revision ID: 2fc7930b41b3
Revises: 581a4264e537
Create Date: 2014-01-14 09:23:53.923454
"""
# revision identifiers, used by Alembic.
revision = '2fc7930b41b3'
down_revision = '581a4264e537'
from alembic import op
from alembic import context
import sqlalchemy as sa
from sqlalchemy.dial... | {
"repo_name": "TheSeanBrady/crtc.bcs.versa",
"path": "asteriskSource/contrib/ast-db-manage/config/versions/2fc7930b41b3_add_pjsip_endpoint_options_for_12_1.py",
"copies": "7",
"size": "6909",
"license": "unlicense",
"hash": 5148876456277858000,
"line_mean": 38.2556818182,
"line_max": 77,
"alpha_frac"... |
"""add upload_date to genomic_file_processed
Revision ID: 4d7e99e7b5b4
Revises: 139de0f907dc
Create Date: 2020-10-14 16:59:03.404271
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
# revision identifiers, used by Alembic.
revision = '4d7e99e7b5b4'
down_revision = '139de0f907dc'
bran... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/4d7e99e7b5b4_add_upload_date_to_genomic_file_.py",
"copies": "1",
"size": "1206",
"license": "bsd-3-clause",
"hash": 4153109163886470000,
"line_mean": 23.612244898,
"line_max": 123,
"alpha_frac": 0.6766169154,
"aut... |
"""Add URL column (Derp!)
Revision ID: 2d10f39bfbfd
Revises: 669e9df34ea7
Create Date: 2020-01-20 05:40:48.520465
"""
# revision identifiers, used by Alembic.
revision = '2d10f39bfbfd'
down_revision = '669e9df34ea7'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalche... | {
"repo_name": "fake-name/ReadableWebProxy",
"path": "alembic/versions/2020-01-20_2d10f39bfbfd_add_url_column_derp.py",
"copies": "1",
"size": "1330",
"license": "bsd-3-clause",
"hash": 1334492894382890000,
"line_mean": 28.5555555556,
"line_max": 99,
"alpha_frac": 0.754887218,
"autogenerated": false... |
# add urls for the CashCity app here
from django.conf.urls import patterns, include, url
from django.conf import settings
# override django-registration registration form
from CashCity.forms import ExRegistrationForm
from registration.backends.default.views import RegistrationView
from CashCity import views
urlpatter... | {
"repo_name": "NiJeLorg/follow-the-money",
"path": "CashCity/urls.py",
"copies": "1",
"size": "8101",
"license": "mit",
"hash": -5902080826280988000,
"line_mean": 63.2936507937,
"line_max": 144,
"alpha_frac": 0.6907789162,
"autogenerated": false,
"ratio": 3.3740108288213246,
"config_test": fals... |
"""Add urls to asana, with title suggestions!"""
import logging
import os
import urlparse
import asana
from flask import Flask, request, session, redirect, render_template_string, render_template, jsonify, url_for
import flask_wtf
from wtforms import SelectField, SubmitField, StringField, BooleanField
from wtforms.val... | {
"repo_name": "mjperrone/asana-media",
"path": "asana-media/asana-media.py",
"copies": "1",
"size": "6219",
"license": "mit",
"hash": 7859525303501011000,
"line_mean": 32.256684492,
"line_max": 116,
"alpha_frac": 0.6136034732,
"autogenerated": false,
"ratio": 3.7128358208955223,
"config_test": ... |
"""Add Use log
Revision ID: 17d2927a8743
Revises: 392aa82bba8f
Create Date: 2017-06-09 18:34:36.239300
"""
# revision identifiers, used by Alembic.
revision = '17d2927a8743'
down_revision = '392aa82bba8f'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - pl... | {
"repo_name": "porduna/labmanager",
"path": "alembic/versions/17d2927a8743_add_use_log.py",
"copies": "5",
"size": "2478",
"license": "bsd-2-clause",
"hash": 5896405310329563000,
"line_mean": 43.25,
"line_max": 88,
"alpha_frac": 0.6735270379,
"autogenerated": false,
"ratio": 2.960573476702509,
... |
"""Add User and UserProblem"""
import sqlalchemy as sa
# revision identifiers, used by Alembic.
import sqlalchemy_utils
from alembic import op
revision = '186247cd152e'
down_revision = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('user',
sa.Column('... | {
"repo_name": "planbrothers/ml-annotate",
"path": "annotator/migrations/versions/186247cd152e_add_user_and_userproblem.py",
"copies": "1",
"size": "1823",
"license": "mit",
"hash": -6439986540380544000,
"line_mean": 41.3953488372,
"line_max": 122,
"alpha_frac": 0.6769061986,
"autogenerated": false,... |
"""Add UserColour table
Revision ID: b3a672162cc0
Revises: 9da95f53e8a1
Create Date: 2017-02-05 00:05:23.241442
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b3a672162cc0'
down_revision = '9da95f53e8a1'
branch_labels = None
depends_on = None
def upgrade():... | {
"repo_name": "MJB47/Jokusoramame",
"path": "migrations/versions/b3a672162cc0_add_usercolour_table.py",
"copies": "1",
"size": "1031",
"license": "mit",
"hash": 6798211973430759000,
"line_mean": 26.8648648649,
"line_max": 65,
"alpha_frac": 0.666343356,
"autogenerated": false,
"ratio": 3.283439490... |
"""Add user created_by and modified_by foreign key refs to any model automatically.
Almost entirely taken from https://github.com/Atomidata/django-audit-log/blob/master/audit_log/middleware.py"""
from django.db.models import signals
from django.utils.functional import curry
class WhodidMiddleware(object):
def p... | {
"repo_name": "JTarball/docker-django-polymer-starter-kit",
"path": "docker/app/app/backend/apps/_archive/blog_codewheel/middleware.py",
"copies": "4",
"size": "1274",
"license": "isc",
"hash": -1574932406086539300,
"line_mean": 46.2222222222,
"line_max": 114,
"alpha_frac": 0.6428571429,
"autogener... |
"""Add user created_by and modified_by foreign key refs to any model automatically.
Almost entirely taken from https://github.com/Atomidata/django-audit-log/blob/master/audit_log/middleware.py
Modified from http://mindlace.wordpress.com/2012/10/19/automatically-associating-users-with-django-models-on-save/"""
fro... | {
"repo_name": "dparizek/newecosystems",
"path": "newecosystems/apps/core/middleware.py",
"copies": "1",
"size": "1255",
"license": "mit",
"hash": -4474586920558227500,
"line_mean": 49.2,
"line_max": 120,
"alpha_frac": 0.6749003984,
"autogenerated": false,
"ratio": 3.7574850299401197,
"config_te... |
"""Add user created_by and modified_by foreign key refs to any model automatically.
Almost entirely taken from https://github.com/Atomidata/django-audit-log/blob/master/audit_log/middleware.py"""
try:
from django.utils.deprecation import MiddlewareMixin
object = MiddlewareMixin
except:
pass
from django.... | {
"repo_name": "BanzaiTokyo/askapp",
"path": "askapp/middleware.py",
"copies": "1",
"size": "2232",
"license": "apache-2.0",
"hash": -4985649499008399000,
"line_mean": 32.3134328358,
"line_max": 114,
"alpha_frac": 0.6527777778,
"autogenerated": false,
"ratio": 4.275862068965517,
"config_test": f... |
"""add_user_fk_to_submission
Revision ID: 885280875a1c
Revises: c9e8302571cd
Create Date: 2016-10-23 15:41:42.023560
"""
# revision identifiers, used by Alembic.
revision = '885280875a1c'
down_revision = 'c9e8302571cd'
branch_labels = None
depends_on = None
from alembic import op
def upgrade(engine_name):
glo... | {
"repo_name": "fedspendingtransparency/data-act-broker-backend",
"path": "dataactcore/migrations/versions/885280875a1c_add_user_fk_to_submission.py",
"copies": "2",
"size": "1058",
"license": "cc0-1.0",
"hash": -5346962463101193000,
"line_mean": 22.5111111111,
"line_max": 117,
"alpha_frac": 0.6616257... |
"""add user information
Revision ID: 0b9d29ccc6fb
Revises: 8cf7e695b34e
Create Date: 2016-04-06 18:56:29.499633
"""
# revision identifiers, used by Alembic.
revision = '0b9d29ccc6fb'
down_revision = '8cf7e695b34e'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Ale... | {
"repo_name": "KotiyaSenya/FlaskLearn",
"path": "migrations/versions/0b9d29ccc6fb_add_user_information.py",
"copies": "1",
"size": "1107",
"license": "mit",
"hash": 5371744475263835000,
"line_mean": 31.5588235294,
"line_max": 86,
"alpha_frac": 0.6729900632,
"autogenerated": false,
"ratio": 3.1810... |
"""Add User Language
Revision ID: d4a70083f72e
Revises: 3512efb5496d
Create Date: 2016-07-22 14:04:43.900826
"""
# revision identifiers, used by Alembic.
revision = 'd4a70083f72e'
down_revision = '3512efb5496d'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "ActiDoo/gamification-engine",
"path": "gengine/app/alembic/versions/d4a70083f72e_add_user_language.py",
"copies": "1",
"size": "1211",
"license": "mit",
"hash": 3671964924535227000,
"line_mean": 34.6176470588,
"line_max": 112,
"alpha_frac": 0.6928158547,
"autogenerated": false,
"ra... |
"""Add user model
Revision ID: 3d8f34e83d23
Revises: None
Create Date: 2015-01-01 13:03:45.048687
"""
# revision identifiers, used by Alembic.
revision = '3d8f34e83d23'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ##... | {
"repo_name": "Akagi201/learning-python",
"path": "flask/flask-boost/test/migrations/versions/20150101130345_3d8f34e83d23_add_user_model.py",
"copies": "4",
"size": "1047",
"license": "mit",
"hash": 8099459492158509000,
"line_mean": 27.2972972973,
"line_max": 64,
"alpha_frac": 0.6695319962,
"autoge... |
"""Add user model
Revision ID: 4d4c8a2e1646
Revises: None
Create Date: 2015-02-06 23:09:10.871000
"""
# revision identifiers, used by Alembic.
revision = '4d4c8a2e1646'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ##... | {
"repo_name": "awm/minventory",
"path": "migrations/versions/4d4c8a2e1646_add_user_model.py",
"copies": "1",
"size": "1043",
"license": "bsd-3-clause",
"hash": 7015323049312152000,
"line_mean": 27.9722222222,
"line_max": 65,
"alpha_frac": 0.6768935762,
"autogenerated": false,
"ratio": 3.419672131... |
"""add username and comments
Revision ID: 38f44d362e21
Revises: e9e90674174
Create Date: 2016-08-17 02:01:28.472471
"""
# revision identifiers, used by Alembic.
revision = '38f44d362e21'
down_revision = 'e9e90674174'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade... | {
"repo_name": "pbecotte/devblog",
"path": "backend/alembic/versions/38f44d362e21_add_username_and_comments.py",
"copies": "1",
"size": "1036",
"license": "mit",
"hash": -7552749779611819000,
"line_mean": 29.4705882353,
"line_max": 105,
"alpha_frac": 0.667953668,
"autogenerated": false,
"ratio": 3... |
"""Add username history
Revision ID: 4b6fd0d48a2b
Revises: c1f8375b5805
Create Date: 2020-02-19 18:51:51.714126
"""
# revision identifiers, used by Alembic.
revision = '4b6fd0d48a2b'
down_revision = 'c1f8375b5805'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade... | {
"repo_name": "Weasyl/weasyl",
"path": "libweasyl/libweasyl/alembic/versions/4b6fd0d48a2b_add_username_history.py",
"copies": "1",
"size": "2517",
"license": "apache-2.0",
"hash": -936030117446526300,
"line_mean": 52.5531914894,
"line_max": 165,
"alpha_frac": 0.7111640842,
"autogenerated": false,
... |
"""Add user_passwordhistory, anchore_config tables, and user_password_change_insert triggers
Revision ID: 3828e380de20
Revises: ea2739ecd874
Create Date: 2018-08-28 16:31:32.570755
"""
# revision identifiers, used by Alembic.
revision = '3828e380de20'
down_revision = 'ea2739ecd874'
from alembic import op
import s... | {
"repo_name": "stackArmor/security_monkey",
"path": "migrations/versions/3828e380de20_add_user_passwordhistory_anchore_config_.py",
"copies": "1",
"size": "3618",
"license": "apache-2.0",
"hash": 3639237251088616400,
"line_mean": 31.5945945946,
"line_max": 163,
"alpha_frac": 0.6951354339,
"autogene... |
"""Add UserPreferences
Revision ID: 20cb28a89cc6
Revises: 498a6d3a1e0f
Create Date: 2015-10-17 18:20:11.865650
"""
# revision identifiers, used by Alembic.
revision = '20cb28a89cc6'
down_revision = u'498a6d3a1e0f'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Ale... | {
"repo_name": "porduna/weblabdeusto",
"path": "server/src/weblab/db/upgrade/regular/versions/20cb28a89cc6_add_userpreferences.py",
"copies": "3",
"size": "1057",
"license": "bsd-2-clause",
"hash": -4268819403407898600,
"line_mean": 29.2,
"line_max": 96,
"alpha_frac": 0.6896877956,
"autogenerated": ... |
"""add user preferences
Revision ID: 2438f7d83478
Revises: 40f5c56adfee
Create Date: 2016-03-08 21:20:42.234353
"""
# revision identifiers, used by Alembic.
revision = '2438f7d83478'
down_revision = '40f5c56adfee'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():... | {
"repo_name": "boazin/anyway",
"path": "alembic/versions/2438f7d83478_add_user_preferences.py",
"copies": "2",
"size": "1231",
"license": "bsd-3-clause",
"hash": -5514986369411539000,
"line_mean": 27.6279069767,
"line_max": 86,
"alpha_frac": 0.6596263201,
"autogenerated": false,
"ratio": 3.336043... |
"""add user profile column
Revision ID: 423fc08700e
Revises: 1ccc670e299
Create Date: 2015-08-11 17:11:29.685590
"""
# revision identifiers, used by Alembic.
revision = '423fc08700e'
down_revision = '1ccc670e299'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alem... | {
"repo_name": "hanks-zyh/Flask-blog",
"path": "migrations/versions/423fc08700e_add_user_profile_column.py",
"copies": "2",
"size": "1106",
"license": "apache-2.0",
"hash": 3220304221149540000,
"line_mean": 31.5294117647,
"line_max": 86,
"alpha_frac": 0.6717902351,
"autogenerated": false,
"ratio":... |
"""Add users/roles tables, staff, admin, superadmin roles.
Revision ID: 2d4ba8baa06c
Revises: 22427b19886b
Create Date: 2015-04-27 14:45:55.566462
"""
# revision identifiers, used by Alembic.
revision = '2d4ba8baa06c'
down_revision = '22427b19886b'
from alembic import op
import sqlalchemy as sa
def upgrade():
... | {
"repo_name": "ajb/pittsburgh-purchasing-suite",
"path": "migrations/versions/2d4ba8baa06c_.py",
"copies": "3",
"size": "1898",
"license": "bsd-3-clause",
"hash": -742739070365679900,
"line_mean": 35.5,
"line_max": 111,
"alpha_frac": 0.6617492097,
"autogenerated": false,
"ratio": 3.35335689045936... |
"""Add users table
Revision ID: 4b806c48d18d
Revises: 9cd42e48cd23
Create Date: 2017-02-27 21:07:31.949415
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4b806c48d18d'
down_revision = '9cd42e48cd23'
branch_labels = None
depends_on = None
def upgrade():
... | {
"repo_name": "vinntreus/training_stats",
"path": "migrations/versions/4b806c48d18d_.py",
"copies": "1",
"size": "1078",
"license": "apache-2.0",
"hash": -8934413613448252000,
"line_mean": 28.9444444444,
"line_max": 86,
"alpha_frac": 0.693877551,
"autogenerated": false,
"ratio": 3.256797583081571... |
"""add user table
Revision ID: 1478867a872a
Revises: 657669eb5fcb
Create Date: 2020-08-06 00:35:31.088631
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1478867a872a'
down_revision = '657669eb5fcb'
branch_labels = None
depends_on = None
def upgrade():
#... | {
"repo_name": "hackerspace-silesia/cebulany-manager",
"path": "migrations/versions/1478867a872a_add_user_table.py",
"copies": "1",
"size": "1117",
"license": "mit",
"hash": 4489398136423430700,
"line_mean": 27.641025641,
"line_max": 89,
"alpha_frac": 0.6696508505,
"autogenerated": false,
"ratio":... |
"""Add `user` table.
Revision ID: 1f75e6d37e
Revises: 3a550b296ce
Create Date: 2015-02-07 00:53:31.665860
"""
# revision identifiers, used by Alembic.
revision = '1f75e6d37e'
down_revision = '3a550b296ce'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy_utils.typ... | {
"repo_name": "wappulehti-apy/diilikone-api",
"path": "diilikone/migrations/versions/1f75e6d37e_add_user_table.py",
"copies": "1",
"size": "1229",
"license": "mit",
"hash": 1969103066276876800,
"line_mean": 27.5813953488,
"line_max": 72,
"alpha_frac": 0.6476810415,
"autogenerated": false,
"ratio"... |
"""add user table
Revision ID: 3311cbf4b2bd
Revises: b1c09a577a3d
Create Date: 2016-11-29 06:27:37.700999
"""
# revision identifiers, used by Alembic.
revision = "3311cbf4b2bd"
down_revision = "b1c09a577a3d"
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
#... | {
"repo_name": "Clinical-Genomics/taboo",
"path": "alembic/versions/3311cbf4b2bd_add_user_table.py",
"copies": "1",
"size": "1027",
"license": "mit",
"hash": 3881777610896475600,
"line_mean": 26.0263157895,
"line_max": 69,
"alpha_frac": 0.6484907498,
"autogenerated": false,
"ratio": 3.389438943894... |
"""add user table
Revision ID: 66a893890997
Revises: e06fa0a86214
Create Date: 2016-06-28 14:52:01.114605
"""
# revision identifiers, used by Alembic.
revision = '66a893890997'
down_revision = 'e06fa0a86214'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialec... | {
"repo_name": "c4fcm/CivilServant",
"path": "alembic/versions/66a893890997_add_user_table.py",
"copies": "1",
"size": "4149",
"license": "mit",
"hash": 8519844441935635000,
"line_mean": 35.0782608696,
"line_max": 86,
"alpha_frac": 0.6649795131,
"autogenerated": false,
"ratio": 3.4431535269709546,... |
"""add user table
Revision ID: bea3ba88c73
Revises: 382f554a8fe8
Create Date: 2015-04-07 13:45:22.348137
"""
# revision identifiers, used by Alembic.
revision = 'bea3ba88c73'
down_revision = '382f554a8fe8'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import text
def upgrade():
op.create_... | {
"repo_name": "2gis/vmmaster",
"path": "migrations/alembic/versions/bea3ba88c73_add_user_table.py",
"copies": "1",
"size": "2062",
"license": "mit",
"hash": -4853482215089434000,
"line_mean": 35.1929824561,
"line_max": 90,
"alpha_frac": 0.639185257,
"autogenerated": false,
"ratio": 3.512776831345... |
"""Add user table to support doorman and oauth authentication.
Revision ID: 0bc0a93ac867
Revises: fd28e46e46a6
Create Date: 2016-05-11 11:01:40.472139
"""
# revision identifiers, used by Alembic.
revision = '0bc0a93ac867'
down_revision = 'fd28e46e46a6'
from alembic import op
import sqlalchemy as sa
import doorman.d... | {
"repo_name": "mwielgoszewski/doorman",
"path": "migrations/versions/0bc0a93ac867_.py",
"copies": "1",
"size": "1141",
"license": "mit",
"hash": 4412238547602834000,
"line_mean": 29.0263157895,
"line_max": 64,
"alpha_frac": 0.6801051709,
"autogenerated": false,
"ratio": 3.4161676646706587,
"con... |
"""Add user to comments table
Revision ID: 9bf5bf5ab706
Revises: 4d52d5579ec7
Create Date: 2016-01-06 11:46:54.929171
"""
# revision identifiers, used by Alembic.
revision = '9bf5bf5ab706'
down_revision = '4d52d5579ec7'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated ... | {
"repo_name": "ma3lstrom/manga-cork",
"path": "mangacork/migrations/versions/9bf5bf5ab706_add_user_to_comments_table.py",
"copies": "1",
"size": "1372",
"license": "mit",
"hash": 7776079476446952000,
"line_mean": 30.1818181818,
"line_max": 90,
"alpha_frac": 0.6144314869,
"autogenerated": false,
"... |
"""Add user to requests_log
Revision ID: 8edcc232c0f8
Revises: 93f2bab71572
Create Date: 2019-10-25 13:37:39.770010
"""
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.... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/8edcc232c0f8_add_user_to_requests_log.py",
"copies": "1",
"size": "1899",
"license": "bsd-3-clause",
"hash": -2578064286742979600,
"line_mean": 32.3157894737,
"line_max": 125,
"alpha_frac": 0.7488151659,
"autogener... |
"""Add uses_proxy
Revision ID: 3812c222917d
Revises: 76668d91d087
Create Date: 2019-02-19 12:30:01.251441
"""
# revision identifiers, used by Alembic.
revision = '3812c222917d'
down_revision = '76668d91d087'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
###... | {
"repo_name": "morelab/labmanager",
"path": "alembic/versions/3812c222917d_add_uses_proxy.py",
"copies": "4",
"size": "1450",
"license": "bsd-2-clause",
"hash": 1187793352552614400,
"line_mean": 35.25,
"line_max": 92,
"alpha_frac": 0.7075862069,
"autogenerated": false,
"ratio": 3.265765765765766,... |
"""Add "Use this" buttons into files that contain Git merge conflicts."""
from __future__ import annotations
import itertools
import tkinter
from typing import Any, cast
from porcupine import get_tab_manager, tabs, utils
from porcupine.plugins.linenumbers import LineNumbers
setup_after = ["linenumbers"]
def find_m... | {
"repo_name": "Akuli/porcupine",
"path": "porcupine/plugins/mergeconflict.py",
"copies": "1",
"size": "6315",
"license": "mit",
"hash": -3236950126123988500,
"line_mean": 37.0421686747,
"line_max": 108,
"alpha_frac": 0.6183689628,
"autogenerated": false,
"ratio": 3.6230636833046472,
"config_tes... |
"""Add "Use this" buttons into files that contain Git merge conflicts."""
from __future__ import annotations
import itertools
import tkinter
import weakref
from typing import Any, List, cast
from porcupine import get_tab_manager, tabs, utils
def find_merge_conflicts(textwidget: tkinter.Text) -> List[List[int]]:
... | {
"repo_name": "Akuli/editor",
"path": "porcupine/plugins/mergeconflict.py",
"copies": "1",
"size": "6280",
"license": "mit",
"hash": 1668105044968537900,
"line_mean": 36.6047904192,
"line_max": 115,
"alpha_frac": 0.6202229299,
"autogenerated": false,
"ratio": 3.5906232132647227,
"config_test": ... |
"""add uuid and status to networkingaction
Revision ID: 89ff8a6d72b2
Revises: 7acb050f783c
Create Date: 2018-01-18 14:04:09.553012
"""
from alembic import op
from sqlalchemy.orm import Session
import sqlalchemy as sa
import uuid
from hil import model
# revision identifiers, used by Alembic.
revision = '89ff8a6d72b2... | {
"repo_name": "SahilTikale/haas",
"path": "hil/migrations/versions/89ff8a6d72b2_add_uuid_and_status_to_networkingaction.py",
"copies": "4",
"size": "1444",
"license": "apache-2.0",
"hash": 7273220522063113000,
"line_mean": 28.4693877551,
"line_max": 75,
"alpha_frac": 0.6627423823,
"autogenerated": ... |
"""Add validation bool
Revision ID: e9210385ec47
Revises: 8af5f324577a
Create Date: 2016-07-04 04:07:20.909282
"""
# revision identifiers, used by Alembic.
revision = 'e9210385ec47'
down_revision = '8af5f324577a'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy_... | {
"repo_name": "fake-name/ReadableWebProxy",
"path": "alembic/versions/00010_e9210385ec47_add_validation_bool.py",
"copies": "1",
"size": "1168",
"license": "bsd-3-clause",
"hash": -6680131066190072000,
"line_mean": 26.1627906977,
"line_max": 94,
"alpha_frac": 0.761130137,
"autogenerated": false,
... |
"""Add vector style table
Revision ID: 19e97a222003
Revises: 1cb8168b89d8
Create Date: 2020-01-09 09:37:25.499564
"""
from alembic import op, context
from sqlalchemy import Column
from sqlalchemy.types import INTEGER, Unicode, VARCHAR
# revision identifiers, used by Alembic.
revision = '19e97a222003'
down_revision ... | {
"repo_name": "Geoportail-Luxembourg/geoportailv3",
"path": "geoportal/LUX_alembic/versions/19e97a222003_add_vector_style_table.py",
"copies": "1",
"size": "1786",
"license": "mit",
"hash": -6291938271962434000,
"line_mean": 32.0740740741,
"line_max": 106,
"alpha_frac": 0.6114221725,
"autogenerated... |
"""add vendor, opportunity, category models
Revision ID: 29562eda8fbc
Revises: 3473ff14af7e
Create Date: 2015-05-28 02:31:47.039725
"""
# revision identifiers, used by Alembic.
revision = '29562eda8fbc'
down_revision = '3473ff14af7e'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands a... | {
"repo_name": "ajb/pittsburgh-purchasing-suite",
"path": "migrations/versions/29562eda8fbc_add_vendor_opportunity_category_models.py",
"copies": "3",
"size": "3927",
"license": "bsd-3-clause",
"hash": 1356632472473640000,
"line_mean": 46.8902439024,
"line_max": 133,
"alpha_frac": 0.6809269162,
"aut... |
"""Add verbose_name column
Revision ID: f7ab9ee32bdf
Revises: 55893713f6b7
Create Date: 2018-10-23 11:45:07.880418
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'f7ab9ee32bdf'
down_revision = '55893713f6b7'
branch_labels = None
depends_on = None
def upgrade... | {
"repo_name": "indico/indico",
"path": "indico/migrations/versions/20181023_1103_f7ab9ee32bdf_add_verbose_name_column.py",
"copies": "1",
"size": "1356",
"license": "mit",
"hash": 7482217238138145000,
"line_mean": 35.6486486486,
"line_max": 109,
"alpha_frac": 0.6615044248,
"autogenerated": false,
... |
"""Add verification table
Revision ID: 90ac01a2df
Revises: df61cfff356e
Create Date: 2016-04-16 17:28:20.778467
"""
# revision identifiers, used by Alembic.
revision = '90ac01a2df'
down_revision = 'df61cfff356e'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.di... | {
"repo_name": "Floens/uchan",
"path": "migrations/versions/90ac01a2df_add_verification_table.py",
"copies": "1",
"size": "1083",
"license": "mit",
"hash": 6111046986593570000,
"line_mean": 30.8529411765,
"line_max": 95,
"alpha_frac": 0.7156048015,
"autogenerated": false,
"ratio": 3.31192660550458... |
"""add Vietnam Geo DB
Revision ID: 32c1cbb13ec2
Revises: b91f6260d520
Create Date: 2017-07-19 11:31:03.582990
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '32c1cbb13ec2'
down_revision = 'b91f6260d520'
def upgrade():
... | {
"repo_name": "hieulq/pgscm",
"path": "migrations/versions/32c1cbb13ec2_add_geo_db.py",
"copies": "2",
"size": "7921",
"license": "apache-2.0",
"hash": 4931574541742558000,
"line_mean": 48.198757764,
"line_max": 79,
"alpha_frac": 0.5290998611,
"autogenerated": false,
"ratio": 3.8488824101068997,
... |
"""Add view column to setting table
Revision ID: 59729e468045
Revises: 787bdba9e147
Create Date: 2018-08-17 16:17:31.058782
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '59729e468045'
down_revision = '787bdba9e147'
branch_labels = None
depends_on = None
de... | {
"repo_name": "ngoduykhanh/PowerDNS-Admin",
"path": "migrations/versions/59729e468045_add_view_column_to_setting_table.py",
"copies": "1",
"size": "4979",
"license": "mit",
"hash": 4413281786779395600,
"line_mean": 53.1195652174,
"line_max": 140,
"alpha_frac": 0.5591484234,
"autogenerated": false,
... |
#%% addViscous.py
"""
Viscous correction code to amend Cart3D solutions based on streamline running
length.
Alexander Ward
April 2017
"""
from math import exp, log, asin
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from scipy.optimize import brentq
import time as time
#... | {
"repo_name": "AlexanderWard1/VC3D",
"path": "Flat Plate/addViscous.py",
"copies": "1",
"size": "55506",
"license": "mit",
"hash": 5288873927299967000,
"line_mean": 42.1224165342,
"line_max": 197,
"alpha_frac": 0.5503008684,
"autogenerated": false,
"ratio": 3.7955415754923414,
"config_test": fa... |
#%% addViscous.py
"""
Viscous correction code to augment Cart3D solutions.
Alexander Ward
April 2017
"""
#http://www.dtic.mil/dtic/tr/fulltext/u2/a045367.pdf
from math import exp, log, asin, sin
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from scipy.optimize import brentq... | {
"repo_name": "AlexanderWard1/VC3D",
"path": "Integral Methods/addViscous_Bowcutt.py",
"copies": "1",
"size": "61090",
"license": "mit",
"hash": -7859063281651208000,
"line_mean": 41.7921146953,
"line_max": 203,
"alpha_frac": 0.5467834343,
"autogenerated": false,
"ratio": 3.8069421075590455,
"c... |
"""Add visibility options to contribution fields
Revision ID: 093533d27a96
Revises: 9c4418d7a6aa
Create Date: 2017-11-30 17:15:07.141552
"""
import sqlalchemy as sa
from alembic import op
from indico.core.db.sqlalchemy import PyIntEnum
from indico.modules.events.contributions.models.fields import ContributionFieldVi... | {
"repo_name": "OmeGak/indico",
"path": "indico/migrations/versions/20180126_1130_093533d27a96_add_visibility_options_to_contribution.py",
"copies": "7",
"size": "1253",
"license": "mit",
"hash": -2915901649111873500,
"line_mean": 33.8055555556,
"line_max": 101,
"alpha_frac": 0.6983240223,
"autogene... |
"""add vpnsessions table
Revision ID: 12e8cae9c38
Revises: 25883baca06
Create Date: 2014-03-23 02:11:37.838134
"""
# revision identifiers, used by Alembic.
revision = '12e8cae9c38'
down_revision = '25883baca06'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembi... | {
"repo_name": "bspavel/ccvpn",
"path": "alembic/versions/12e8cae9c38_add_vpnsessions_tabl.py",
"copies": "2",
"size": "1373",
"license": "mit",
"hash": 1457273431983146800,
"line_mean": 32.487804878,
"line_max": 63,
"alpha_frac": 0.6686088857,
"autogenerated": false,
"ratio": 3.4759493670886075,
... |
"""Add WCF
Revision ID: a1dbd23261c3
Revises: 69e765223549
Create Date: 2017-10-11 22:28:26.411628
"""
from alembic import op
import sqlalchemy as sa
from pathlib import Path
from json import load
from collections import OrderedDict
# revision identifiers, used by Alembic.
revision = 'a1dbd23261c3'
down_revision = ... | {
"repo_name": "bryanforbes/Erasmus",
"path": "alembic/versions/a1dbd23261c3_add_wcf.py",
"copies": "1",
"size": "2904",
"license": "bsd-3-clause",
"hash": 8415405919201777000,
"line_mean": 37.72,
"line_max": 106,
"alpha_frac": 0.6022727273,
"autogenerated": false,
"ratio": 3.8260869565217392,
"... |
"""add_webpack_stats
Revision ID: 89a8aa1c611c
Revises: 87cbddd5b946
Create Date: 2018-01-04 14:16:23.592897
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
import zeus
# revision identifiers, used by Alembic.
revision = "89a8aa1c611c"
down_revision = "87cbddd5b946"
bran... | {
"repo_name": "getsentry/zeus",
"path": "zeus/migrations/89a8aa1c611c_add_webpack_stats.py",
"copies": "1",
"size": "2998",
"license": "apache-2.0",
"hash": 4497802606304673000,
"line_mean": 32.3111111111,
"line_max": 85,
"alpha_frac": 0.6070713809,
"autogenerated": false,
"ratio": 3.556346381969... |
"""add white rabbit status
Revision ID: 63b625cf7b06
Revises: e83aa47e530b
Create Date: 2019-12-06 02:45:01.418693+00:00
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '63b625cf7b06'
down_revision = 'e83aa47e530b'
branch_labels = None
depends_on = None
def u... | {
"repo_name": "HERA-Team/Monitor_and_Control",
"path": "alembic/versions/63b625cf7b06_add_white_rabbit_status.py",
"copies": "2",
"size": "4778",
"license": "bsd-2-clause",
"hash": -7190889092605620000,
"line_mean": 50.376344086,
"line_max": 75,
"alpha_frac": 0.6764336542,
"autogenerated": false,
... |
"""add wifi shards
Revision ID: 4860cb8e54f5
Revises: None
Create Date: 2015-08-02 17:24:14.293552
"""
import logging
from alembic import op
import sqlalchemy as sa
log = logging.getLogger('alembic.migration')
revision = '4860cb8e54f5'
down_revision = None
def upgrade():
log.info('Create wifi_shard_* tables'... | {
"repo_name": "therewillbecode/ichnaea",
"path": "alembic/versions/4860cb8e54f5_add_wifi_shards.py",
"copies": "1",
"size": "1391",
"license": "apache-2.0",
"hash": 3283938116329958000,
"line_mean": 24.2909090909,
"line_max": 53,
"alpha_frac": 0.6642703091,
"autogenerated": false,
"ratio": 2.9408... |
"""add winter seasonal category
Revision ID: 2eeb0ddd8f9
Revises: 14b52358eb42
Create Date: 2015-10-16 00:50:15.154646
"""
# revision identifiers, used by Alembic.
revision = '2eeb0ddd8f9'
down_revision = '14b52358eb42'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import table
def upgrade():... | {
"repo_name": "jlutz777/FreeStore",
"path": "alembic/versions/2eeb0ddd8f9_add_winter_seasonal_category.py",
"copies": "1",
"size": "1405",
"license": "mit",
"hash": 7815905309395029000,
"line_mean": 27.6734693878,
"line_max": 75,
"alpha_frac": 0.6135231317,
"autogenerated": false,
"ratio": 3.5125... |
"""add wishlists
Revision ID: 3519117eb69
Revises: 3d943ee3b4e
Create Date: 2013-11-03 14:10:07.861337
"""
# revision identifiers, used by Alembic.
revision = '3519117eb69'
down_revision = '3d943ee3b4e'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - plea... | {
"repo_name": "dirn/Secret-Santa",
"path": "migrations/versions/3519117eb69_add_wishlists.py",
"copies": "1",
"size": "1245",
"license": "bsd-3-clause",
"hash": -6247044707921538000,
"line_mean": 31.7631578947,
"line_max": 153,
"alpha_frac": 0.6722891566,
"autogenerated": false,
"ratio": 3.346774... |
"""add withdrawal reason
Revision ID: 378ee128c23f
Revises: 380d2c363481
Create Date: 2018-10-11 11:07:27.080104
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import WithdrawalReason
# revision identifiers, used by Alembic.
revision = "378ee128c23f"
down_re... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/378ee128c23f_add_withdrawal_reason.py",
"copies": "1",
"size": "2197",
"license": "bsd-3-clause",
"hash": 7220451943836488000,
"line_mean": 33.328125,
"line_max": 119,
"alpha_frac": 0.7068730086,
"autogenerated": f... |
"""Add withdrawals table
Revision ID: 305794ad46c5
Revises: 392c0a07a3c
Create Date: 2015-12-19 21:22:36.390203
"""
# revision identifiers, used by Alembic.
revision = '305794ad46c5'
down_revision = '392c0a07a3c'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.... | {
"repo_name": "smilledge/transient",
"path": "transient/migrations/versions/305794ad46c5_add_withdrawals_table.py",
"copies": "1",
"size": "1385",
"license": "mit",
"hash": -7920482508932324000,
"line_mean": 37.4722222222,
"line_max": 151,
"alpha_frac": 0.7119133574,
"autogenerated": false,
"rati... |
"""add word location
Revision ID: 532b69010c42
Revises: 0f6fa482b10c
Create Date: 2018-04-27 18:41:43.570647
"""
# revision identifiers, used by Alembic.
revision = '532b69010c42'
down_revision = '0f6fa482b10c'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alem... | {
"repo_name": "mapan1984/Hidden-Island",
"path": "migrations/versions/532b69010c42_add_word_location.py",
"copies": "1",
"size": "1295",
"license": "mit",
"hash": 196193291476874560,
"line_mean": 29.8333333333,
"line_max": 74,
"alpha_frac": 0.6548262548,
"autogenerated": false,
"ratio": 3.3120204... |
"""add workbench tables
Revision ID: f38451075acc
Revises: 2681d14b61d8
Create Date: 2019-12-04 13:44:24.237092
"""
from alembic import op
import sqlalchemy as sa
from rdr_service.model.field_types import BlobUTF8
from rdr_service.model.utils import Enum
from rdr_service.participant_enums import WorkbenchWorkspaceSta... | {
"repo_name": "all-of-us/raw-data-repository",
"path": "rdr_service/alembic/versions/f38451075acc_add_workbench_tables.py",
"copies": "1",
"size": "10019",
"license": "bsd-3-clause",
"hash": 3321153244435922400,
"line_mean": 49.3467336683,
"line_max": 94,
"alpha_frac": 0.6917856073,
"autogenerated"... |
"""add work
Revision ID: 57fc5e85328
Revises: 1ed82ef0071
Create Date: 2014-08-08 00:16:41.428095
"""
from alembic import context, op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '57fc5e85328'
down_revision = '1ed82ef0071'
driver_name = context.get_bind().dialect.name
def upgrade()... | {
"repo_name": "clicheio/cliche",
"path": "cliche/migrations/versions/57fc5e85328_add_work.py",
"copies": "2",
"size": "1035",
"license": "mit",
"hash": -3725044222001228300,
"line_mean": 26.972972973,
"line_max": 77,
"alpha_frac": 0.6473429952,
"autogenerated": false,
"ratio": 3.2242990654205608,... |
#add your custom command output handler class to this module
#the default handler , does nothing , just passes the raw output directly to STDOUT
class DefaultCommandOutputHandler:
def __init__(self,**args):
pass
def __call__(self, raw_cmd_output):
print_xml_stream(raw_cmd_... | {
"repo_name": "damiendallimore/SplunkModularInputsPythonFramework",
"path": "implementations/command/bin/outputhandlers.py",
"copies": "1",
"size": "1399",
"license": "apache-2.0",
"hash": 3664474160835140600,
"line_mean": 30.0888888889,
"line_max": 231,
"alpha_frac": 0.583273767,
"autogenerated": ... |
#add your custom response handler class to this module
import json
import datetime
import time
#the default handler , does nothing , just passes the raw output directly to STDOUT
class DefaultResponseHandler:
def __init__(self, **args):
pass
def __call__(self, response_object, raw_response... | {
"repo_name": "damiendallimore/SplunkModularInputsPythonFramework",
"path": "implementations/tesla/bin/responsehandlers.py",
"copies": "1",
"size": "1317",
"license": "apache-2.0",
"hash": -946670394053362300,
"line_mean": 31.1219512195,
"line_max": 104,
"alpha_frac": 0.5391040243,
"autogenerated":... |
#add your custom response handler class to this module
import json
import datetime
#the default handler , does nothing , just passes the raw output directly to STDOUT
class DefaultResponseHandler:
def __init__(self,**args):
pass
def __call__(self, response_object,raw_response_output,respon... | {
"repo_name": "d4rt/SplunkModularInputsPythonFramework",
"path": "implementations/rest/bin/responsehandlers.py",
"copies": "1",
"size": "4680",
"license": "apache-2.0",
"hash": 9037620378930432000,
"line_mean": 32.9202898551,
"line_max": 108,
"alpha_frac": 0.5414529915,
"autogenerated": false,
"r... |
# add your custom response handler class to this module
import json
import datetime
# the default handler , does nothing , just passes the raw output directly to STDOUT
class DefaultResponseHandler:
def __init__(self,**args):
pass
def __call__(self, response_object,raw_response_output,response_type,re... | {
"repo_name": "nnam/SplunkModularInputsPythonFramework",
"path": "implementations/opendns/bin/responsehandlers.py",
"copies": "1",
"size": "1736",
"license": "apache-2.0",
"hash": -7125338420206024000,
"line_mean": 30,
"line_max": 98,
"alpha_frac": 0.6209677419,
"autogenerated": false,
"ratio": 3... |
#add your custom response handler class to this module
import json
#the default handler , does nothing , just passes the raw output directly to STDOUT
class DefaultResponseHandler:
def __init__(self,**args):
pass
def __call__(self, response_object,raw_response_output,response_type,req_args... | {
"repo_name": "Jaykul/SplunkModularInputsPythonFramework",
"path": "implementations/rest/bin/responsehandlers.py",
"copies": "1",
"size": "2720",
"license": "apache-2.0",
"hash": -4090032459048250000,
"line_mean": 33.0125,
"line_max": 100,
"alpha_frac": 0.5610294118,
"autogenerated": false,
"rati... |
#add your custom response handler class to this module
import sys,json,csv,io,logging
from pysnmp.entity.rfc3413 import mibvar
# Initialize the root logger with a StreamHandler and a format message:
logging.basicConfig(level=logging.ERROR, format='%(levelname)s %(message)s')
#the default handler , does nothing , just... | {
"repo_name": "damiendallimore/SplunkModularInputsPythonFramework",
"path": "implementations/snmp/bin/responsehandlers.py",
"copies": "1",
"size": "6702",
"license": "apache-2.0",
"hash": 1168701453793013500,
"line_mean": 42.2451612903,
"line_max": 144,
"alpha_frac": 0.5459564309,
"autogenerated": ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.