text
stringlengths
0
1.05M
meta
dict
"""Add selection answers Revision ID: 150_add_selection_answers Revises: 140_service_id_null_for_drafts Create Date: 2015-06-19 16:22:21.510509 """ # revision identifiers, used by Alembic. revision = '150_add_selection_answers' down_revision = '140_service_id_null_for_drafts' from alembic import op import sqlalchem...
{ "repo_name": "RichardKnop/digitalmarketplace-api", "path": "migrations/versions/150_add_selection_answers.py", "copies": "3", "size": "1078", "license": "mit", "hash": 5338329219157455000, "line_mean": 31.6666666667, "line_max": 74, "alpha_frac": 0.7012987013, "autogenerated": false, "ratio": 3....
"""Add Semester Enum to Co-Op Table Revision ID: 2c3193839c9d Revises: 6ae578b76143 Create Date: 2017-05-24 00:18:22.645256 """ # revision identifiers, used by Alembic. revision = '2c3193839c9d' down_revision = '6ae578b76143' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql ...
{ "repo_name": "ComputerScienceHouse/conditional", "path": "migrations/versions/2c3193839c9d_.py", "copies": "2", "size": "1063", "license": "mit", "hash": -6841091685544432000, "line_mean": 33.2903225806, "line_max": 156, "alpha_frac": 0.6999059266, "autogenerated": false, "ratio": 3.201807228915...
"Add sequences from a scanned database to the profile tree." import logging import os import tempfile from os.path import basename, isdir, isfile, join from Bio import SeqIO from .tasks import ext, noext, sh from ._share import get_hmm_evalues, parse_scanned_hits def cmd_add(args): # Validation assert isdi...
{ "repo_name": "fivejjs/fammer", "path": "fammerlib/add.py", "copies": "2", "size": "5884", "license": "bsd-2-clause", "hash": 5978083433644923000, "line_mean": 35.775, "line_max": 82, "alpha_frac": 0.6050305914, "autogenerated": false, "ratio": 3.627620221948212, "config_test": false, "has_no...
'''Adds error column flux to treated lcs Also save all (treated and untreated) as space-separated values Search pairs of tables and match them ''' import numpy as np import os import sys import glob import matplotlib.pyplot as plt def VerboseID(kic_int): kic_str = [] kic_int = map(str,kic_int) for i in range(0...
{ "repo_name": "paztronomer/kepler_tools", "path": "addCol.py", "copies": "1", "size": "3019", "license": "mit", "hash": -2247128159968791300, "line_mean": 30.4479166667, "line_max": 94, "alpha_frac": 0.586949321, "autogenerated": false, "ratio": 2.8031569173630455, "config_test": false, "has_...
"""add service whitelist table Revision ID: 0055_service_whitelist Revises: 0054_perform_drop_status_column Create Date: 2016-09-20 12:12:30.838095 """ # revision identifiers, used by Alembic. revision = '0055_service_whitelist' down_revision = '0054_perform_drop_status_column' from alembic import op import sqlalch...
{ "repo_name": "alphagov/notifications-api", "path": "migrations/versions/0055_service_whitelist.py", "copies": "1", "size": "1101", "license": "mit", "hash": 2621796810134006000, "line_mean": 34.5161290323, "line_max": 111, "alpha_frac": 0.6993642144, "autogenerated": false, "ratio": 3.5401929260...
"""add_session_table Revision ID: 8ce3d6d070da Revises: 885280875a1c Create Date: 2016-10-27 20:04:26.845536 """ # revision identifiers, used by Alembic. revision = '8ce3d6d070da' down_revision = '885280875a1c' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engin...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/8ce3d6d070da_add_session_table.py", "copies": "1", "size": "1155", "license": "cc0-1.0", "hash": -4408698554833553400, "line_mean": 23.0625, "line_max": 63, "alpha_frac": 0.6718614719, "autogen...
"""Add session types table Revision ID: 9c4418d7a6aa Revises: 2af245be72a6 Create Date: 2017-12-14 10:59:47.872426 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = '9c4418d7a6aa' down_revision = '2af245be72a6' branch_labels = None depends_on = None def upgrade...
{ "repo_name": "mvidalgarcia/indico", "path": "indico/migrations/versions/20171214_1059_9c4418d7a6aa_add_session_types_table.py", "copies": "2", "size": "2473", "license": "mit", "hash": 4762055433127767000, "line_mean": 35.3676470588, "line_max": 117, "alpha_frac": 0.6190861302, "autogenerated": fa...
"""add set owned Revision ID: f06e0da1bdf4 Revises: 980fdee06558 Create Date: 2016-11-17 20:32:18.950479 """ # revision identifiers, used by Alembic. revision = 'f06e0da1bdf4' down_revision = '980fdee06558' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa from sqlalchemy.dialect...
{ "repo_name": "EliRibble/dominus", "path": "alembic/versions/f06e0da1bdf4_add_set_owned.py", "copies": "1", "size": "1212", "license": "mit", "hash": 6166883206905483000, "line_mean": 34.6470588235, "line_max": 118, "alpha_frac": 0.6749174917, "autogenerated": false, "ratio": 3.2406417112299466, ...
"""Adds fenced code block support Copied from https://pythonhosted.org/Markdown/extensions/fenced_code_blocks.html Original code Copyright 2007-2008 [Waylan Limberg](http://achinghead.com/). All changes Copyright 2008-2014 The Python Markdown Project License: [BSD](http://www.opensource.org/licenses/bsd-license.php) ...
{ "repo_name": "AmatanHead/collective-blog", "path": "s_markdown/extensions/fenced_code.py", "copies": "1", "size": "3379", "license": "mit", "hash": 8520660955084263000, "line_mean": 28.6403508772, "line_max": 78, "alpha_frac": 0.5398046759, "autogenerated": false, "ratio": 4.161330049261084, "...
""" Adds functionality to make LaTeX figures from the raw TikZ code produced by core.StreamerFlowchart. """ FIGURE = r'''\begin{{figure}} \centering \begin{{tikzpicture}}[{tikzoptions}] {tikz} \end{{tikzpicture}} \caption{{Flowchart of {name}}} \end{{figure}}''' DOCUMENT = r'''\documentclass{{scrartcl}} ...
{ "repo_name": "kdungs/lhcb-hltflow", "path": "hltflow/latex.py", "copies": "1", "size": "1423", "license": "mit", "hash": -4206713809387773400, "line_mean": 25.3518518519, "line_max": 79, "alpha_frac": 0.6865776528, "autogenerated": false, "ratio": 3.420673076923077, "config_test": false, "ha...
"""Add shard column to query Revision ID: a76be8b92780 Revises: c107fa0468ff Create Date: 2017-08-25 11:39:24.754460 """ # revision identifiers, used by Alembic. revision = 'a76be8b92780' down_revision = 'c107fa0468ff' from alembic import op import sqlalchemy as sa import doorman.database def upgrade(): ### c...
{ "repo_name": "mwielgoszewski/doorman", "path": "migrations/versions/a76be8b92780_add_shard_column_to_query.py", "copies": "1", "size": "1436", "license": "mit", "hash": -399355631787466430, "line_mean": 29.5531914894, "line_max": 77, "alpha_frac": 0.5814763231, "autogenerated": false, "ratio": 3...
"""Add Shared Notes Revision ID: ffe4c66b5772 Revises: 5d3c326dd901 Create Date: 2016-08-30 08:40:35.993215 """ # revision identifiers, used by Alembic. revision = 'ffe4c66b5772' down_revision = '5d3c326dd901' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic...
{ "repo_name": "levlaz/braindump", "path": "migrations/versions/ffe4c66b5772_add_shared_notes.py", "copies": "1", "size": "1588", "license": "mit", "hash": -6007470733241688000, "line_mean": 36.8095238095, "line_max": 105, "alpha_frac": 0.6750629723, "autogenerated": false, "ratio": 3.247443762781...
"""Add shopping categories Revision ID: 430dc4ed6dd6 Revises: 3a1dddd0c0f8 Create Date: 2014-12-24 09:55:10.993854 """ # revision identifiers, used by Alembic. revision = '430dc4ed6dd6' down_revision = '3a1dddd0c0f8' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import table def upgrade(): ...
{ "repo_name": "jlutz777/FreeStore", "path": "alembic/versions/430dc4ed6dd6_add_shopping_categories.py", "copies": "1", "size": "1108", "license": "mit", "hash": 7437124817223749000, "line_mean": 23.6222222222, "line_max": 59, "alpha_frac": 0.5252707581, "autogenerated": false, "ratio": 3.30746268...
"""Add short value Revision ID: 8d12872e0b77 Revises: 76d21e039dfd Create Date: 2017-09-15 13:30:39.443982 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = "8d12872e0b77" down_revision = "76d21e039dfd" branch_labels = None de...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/8d12872e0b77_add_short_value.py", "copies": "1", "size": "2848", "license": "bsd-3-clause", "hash": 7623959289049182000, "line_mean": 25.8679245283, "line_max": 96, "alpha_frac": 0.6155196629, "autogenerated": fals...
"""Add signature token column to User Revision ID: a2472148d2c5 Revises: f6fba869a27c Create Date: 2019-10-21 13:50:50.046577 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'a2472148d2c5' down_revision = 'f6fba869a27c...
{ "repo_name": "indico/indico", "path": "indico/migrations/versions/20191021_1350_a2472148d2c5_add_signature_token_column_to_user.py", "copies": "1", "size": "1126", "license": "mit", "hash": 8872799590402610000, "line_mean": 27.8717948718, "line_max": 114, "alpha_frac": 0.6287744227, "autogenerated...
"""Add sites Revision ID: d5cb0d93b970 Revises: 0cc3557c43d0 Create Date: 2017-05-09 11:37:47.244859 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "d5cb0d93b970" down_revision = "0cc3557c43d0" branch_labels = None depends_on = None def upgrade(engine_name): ...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/d5cb0d93b970_add_sites.py", "copies": "1", "size": "1592", "license": "bsd-3-clause", "hash": 3011603045257330000, "line_mean": 26.4482758621, "line_max": 76, "alpha_frac": 0.6407035176, "autogenerated": false, "...
"""Add size fields to task Revision ID: 54dff15ea3f9 Revises: 8a4558f255a4 Create Date: 2019-03-18 10:40:13.391823 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = '54dff15ea3f9' down_revision = '69aa59' \ '1d226b' branch_labels = None depends_on ...
{ "repo_name": "eubr-bigsea/tahiti", "path": "migrations/versions/54dff15ea3f9_add_size_fields_to_task.py", "copies": "1", "size": "1629", "license": "apache-2.0", "hash": -8828260686017227000, "line_mean": 33.6595744681, "line_max": 78, "alpha_frac": 0.6163290362, "autogenerated": false, "ratio":...
"""Adds JSON serialization to SQLalchemy ORM objects. Use the `add_json_converter` function to attach the default JSON Converter to the SQLAlchemy declarative baseclass for automatich record to dict conversion. """ import datetime import json import re JSON_SAFE_TYPES = set([type(None), list, dict, int, float, bases...
{ "repo_name": "edelooff/sqla-orm-to-json", "path": "orm_json/__init__.py", "copies": "1", "size": "2920", "license": "mit", "hash": -7776028278864968000, "line_mean": 32.5632183908, "line_max": 80, "alpha_frac": 0.7133561644, "autogenerated": false, "ratio": 4.016506189821183, "config_test": fa...
"""Add sketch attribute model Revision ID: fc7bc5c66c63 Revises: c380f6dff0bd Create Date: 2020-10-23 15:44:16.011715 """ # revision identifiers, used by Alembic. revision = 'fc7bc5c66c63' down_revision = 'c380f6dff0bd' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generate...
{ "repo_name": "google/timesketch", "path": "timesketch/migrations/versions/fc7bc5c66c63_.py", "copies": "1", "size": "1707", "license": "apache-2.0", "hash": -1060096485748537600, "line_mean": 33.8367346939, "line_max": 66, "alpha_frac": 0.6596367897, "autogenerated": false, "ratio": 3.4346076458...
"""Add Skipped enum value Revision ID: 8b536bc5d716 Revises: 40c86deefd01 Create Date: 2020-04-27 12:12:47.075110 """ # revision identifiers, used by Alembic. revision = '8b536bc5d716' down_revision = '40c86deefd01' 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-04-27_8b536bc5d716_add_skipped_enum_value.py", "copies": "1", "size": "1165", "license": "bsd-3-clause", "hash": 8127617468636277000, "line_mean": 24.9111111111, "line_max": 65, "alpha_frac": 0.764806867, "autogenerated": fa...
# Adds locations to the database from the text dump. # # Usage: python add-xy-locations.py | psql pokedex import re def make_identifier(name): """Make a string safe to use as an identifier. Valid characters are lowercase alphanumerics and "-". This function may raise ValueError if it can't come up with a...
{ "repo_name": "DaMouse404/pokedex", "path": "scripts/add-xy-locations.py", "copies": "5", "size": "2989", "license": "mit", "hash": 7143274909119560000, "line_mean": 43.5373134328, "line_max": 281, "alpha_frac": 0.6544906166, "autogenerated": false, "ratio": 3.523022432113341, "config_test": fa...
"""Adds locking capabilities to payout table, creates new BonusPayout table, and DonationPercent table. Revision ID: f84430b16b Revises: 53d03041be56 Create Date: 2014-03-21 16:32:08.622226 """ # revision identifiers, used by Alembic. revision = 'f84430b16b' down_revision = '53d03041be56' from alembic import op imp...
{ "repo_name": "simplecrypto/simplecoin", "path": "migrations/versions/f84430b16b_.py", "copies": "2", "size": "1740", "license": "mit", "hash": -4455709355528389000, "line_mean": 36.0212765957, "line_max": 107, "alpha_frac": 0.6775862069, "autogenerated": false, "ratio": 3.3461538461538463, "co...
"""Adds LRU cache management and automatic data timeout to Python's Shelf. Classes: LRUShelf: A shelf with LRU cache management. TimeoutShelf: A shelf with automatic data timeout features. LRUTimeoutShelf: A shelf with LRU cache management and data timeout. Functions: open: Open a database file as a p...
{ "repo_name": "tsroten/ticktock", "path": "ticktock.py", "copies": "1", "size": "15620", "license": "mit", "hash": 923405044000628700, "line_mean": 36.6385542169, "line_max": 79, "alpha_frac": 0.6101152369, "autogenerated": false, "ratio": 4.1843021698365925, "config_test": false, "has_no_key...
"""Add slugs to events. Revision ID: 177a65486a0 Revises: 32dc1be3b22 Create Date: 2015-04-27 04:40:15.594924 """ # revision identifiers, used by Alembic. revision = '177a65486a0' down_revision = '32dc1be3b22' from alembic import op from slugify import slugify import sqlalchemy as sa from sqlalchemy import Integer,...
{ "repo_name": "djds23/pygotham-1", "path": "migrations/versions/177a65486a0_.py", "copies": "3", "size": "1418", "license": "bsd-3-clause", "hash": 3136896212389005000, "line_mean": 26.2692307692, "line_max": 86, "alpha_frac": 0.6248236953, "autogenerated": false, "ratio": 3.598984771573604, "c...
"""Adds metric counter""" from baseCmd import * from baseResponse import * class createCounterCmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "true" """Name of the counter.""" """Required""" self.name = None self.typeInfo['name'] = 'string' """S...
{ "repo_name": "MissionCriticalCloud/marvin", "path": "marvin/cloudstackAPI/createCounter.py", "copies": "1", "size": "1275", "license": "apache-2.0", "hash": -3723135960603883000, "line_mean": 27.3333333333, "line_max": 63, "alpha_frac": 0.5364705882, "autogenerated": false, "ratio": 4.0476190476...
"""Adds missing 'niceToHaveRequirements' to old published Brief data blobs. Revision ID: 990 Revises: 980 Create Date: 2017-09-05 17:08:57.947569 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '990' down_revision = '980' briefs_table = sa.Table( 'briefs'...
{ "repo_name": "alphagov/digitalmarketplace-api", "path": "migrations/versions/990_add_missing_nice_to_have_requirements_field.py", "copies": "1", "size": "1210", "license": "mit", "hash": 4541472595939958000, "line_mean": 25.8888888889, "line_max": 102, "alpha_frac": 0.652892562, "autogenerated": f...
"""Add SnapshotImage Revision ID: 30c86cc72856 Revises: 17d61d9621cb Create Date: 2014-08-13 16:24:07.482438 """ # revision identifiers, used by Alembic. revision = '30c86cc72856' down_revision = '17d61d9621cb' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembi...
{ "repo_name": "dropbox/changes", "path": "migrations/versions/30c86cc72856_add_snapshotimage.py", "copies": "3", "size": "1228", "license": "apache-2.0", "hash": -3579563337268420000, "line_mean": 31.3157894737, "line_max": 86, "alpha_frac": 0.654723127, "autogenerated": false, "ratio": 3.4494382...
"""add snap_status table Revision ID: fb372bb87c37 Revises: 64c7a405e4c8 Create Date: 2019-03-19 22:32:13.745440+00:00 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'fb372bb87c37' down_revision = '64c7a405e4c8' branch...
{ "repo_name": "HERA-Team/Monitor_and_Control", "path": "alembic/versions/fb372bb87c37_add_snap_status_table.py", "copies": "2", "size": "1294", "license": "bsd-2-clause", "hash": 8414598632374373000, "line_mean": 34.9444444444, "line_max": 86, "alpha_frac": 0.5927357032, "autogenerated": false, "...
# Adds new customers to the customer database from faker import Faker import openpyxl def add_customer(n): """Creates dummy customers. Returns: list. List of dictionaries containing customer info. """ f = Faker() num_cust = n customers = [] for customer in range(1, num_cust + 1):...
{ "repo_name": "terrameijar/excel-extractor", "path": "add_customer.py", "copies": "1", "size": "1596", "license": "mit", "hash": -5432519560929418000, "line_mean": 30.2941176471, "line_max": 78, "alpha_frac": 0.5958646617, "autogenerated": false, "ratio": 3.6108597285067874, "config_test": fals...
"""add soft delete feature table Revision ID: af4279aa1f64 Revises: fa2cd0ecc30f Create Date: 2019-05-13 11:47:29.388502 """ # revision identifiers, used by Alembic. revision = 'af4279aa1f64' down_revision = 'fa2cd0ecc30f' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa from sq...
{ "repo_name": "CanopyTax/toggle-meister", "path": "migrations/versions/af4279aa1f64_add_soft_delete_feature_table.py", "copies": "1", "size": "1256", "license": "apache-2.0", "hash": 4289506201621261000, "line_mean": 32.0526315789, "line_max": 95, "alpha_frac": 0.6281847134, "autogenerated": false,...
#Add Solver solver = self.add('solver',BroydenSolver()) solver.itmax = 50 #max iterations solver.tol = .001 #Add Parameters and Constraints solver.add_parameter('compress.W_in',low=-1e15,high=1e15) solver.add_parameter('compress.c2_PR_des', low=-1e15, high=1e15) solver.add_parameter(['compress.Ts_tube','flow_limit.Ts_t...
{ "repo_name": "kennethdecker/MagnePlane", "path": "paper/code/example3.py", "copies": "13", "size": "1417", "license": "apache-2.0", "hash": 9023902364324520000, "line_mean": 47.8965517241, "line_max": 84, "alpha_frac": 0.6908962597, "autogenerated": false, "ratio": 2.8511066398390343, "config_...
"""add some probably good indexes (???) Revision ID: 6d298e6406f2 Revises: 8fac6e10bdb3 Create Date: 2017-08-14 20:27:49.103672 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6d298e6406f2' down_revision = '8fac6e10bdb3' branch_labels = None depends_on = None ...
{ "repo_name": "codl/forget", "path": "migrations/versions/6d298e6406f2_add_some_probably_good_indexes.py", "copies": "1", "size": "1368", "license": "isc", "hash": -1816445155139426300, "line_mean": 39.2352941176, "line_max": 101, "alpha_frac": 0.692251462, "autogenerated": false, "ratio": 2.9044...
"""Add some stock stuff Revision ID: afc57bd04606 Revises: 580385482580 Create Date: 2017-02-25 18:59:11.096406 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'afc57bd04606' down_revision = '580385482580' branch_labels = None depends_on = None def upgrade():...
{ "repo_name": "MJB47/Jokusoramame", "path": "migrations/versions/afc57bd04606_add_some_stock_stuff.py", "copies": "1", "size": "1289", "license": "mit", "hash": -1147986206885681400, "line_mean": 31.225, "line_max": 94, "alpha_frac": 0.6826997673, "autogenerated": false, "ratio": 3.33074935400516...
""" Adds organization name to the project search tsv Revision ID: 4b2b7cde821f Revises: 15593ff6a15f Create Date: 2015-11-30 17:21:56.928359 """ # revision identifiers, used by Alembic. revision = '4b2b7cde821f' down_revision = '15593ff6a15f' from alembic import op import sqlalchemy as sa def upgrade(): dropt...
{ "repo_name": "smalley/cfapi", "path": "migrations/versions/4b2b7cde821f_add_org_name_to_search.py", "copies": "2", "size": "2641", "license": "mit", "hash": -8318985161012931000, "line_mean": 43.0166666667, "line_max": 155, "alpha_frac": 0.6580840591, "autogenerated": false, "ratio": 3.493386243...
"""Add soundcloud upload try logging table Revision ID: 46085f5c8e36 Revises: 1e3be3ff186d Create Date: 2017-02-10 11:20:12.308503 """ # revision identifiers, used by Alembic. revision = '46085f5c8e36' down_revision = '1e3be3ff186d' from alembic import op import sqlalchemy as sa def upgrade(): ### commands au...
{ "repo_name": "Code4SA/pmg-cms-2", "path": "migrations/versions/46085f5c8e36_add_soundcloud_upload_try_logging_table.py", "copies": "1", "size": "1105", "license": "apache-2.0", "hash": 1951043937141210000, "line_mean": 32.4848484848, "line_max": 155, "alpha_frac": 0.7049773756, "autogenerated": fa...
"""Add Source Revision ID: 2c7cbd9b7e54 Revises: 380d20771802 Create Date: 2013-12-17 13:53:19.836264 """ # revision identifiers, used by Alembic. revision = '2c7cbd9b7e54' down_revision = '380d20771802' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'source', s...
{ "repo_name": "dropbox/changes", "path": "migrations/versions/2c7cbd9b7e54_add_source.py", "copies": "4", "size": "1349", "license": "apache-2.0", "hash": -4569530090052676600, "line_mean": 32.725, "line_max": 82, "alpha_frac": 0.6538176427, "autogenerated": false, "ratio": 3.1741176470588237, ...
# Add spaces to syntax in lines (for easier splitting by white-space) FORT_TEXT_REPLACEMENTS = { "DOUBLE PRECISION": "REAL ( KIND ( 0.0D0 ) )", "END DO": "ENDDO", "END IF": "ENDIF", ",":" , ", "(":" ( ", ")":" ) ", ":":" : ", "+":" + ", "-":" - ", "*":" * ", "/":" / ", "=...
{ "repo_name": "tchlux/fmodpy", "path": "fmodpy/parsing/__init__.py", "copies": "1", "size": "10832", "license": "mit", "hash": -6512208863947161000, "line_mean": 42.1553784861, "line_max": 91, "alpha_frac": 0.5937038405, "autogenerated": false, "ratio": 3.742916378714582, "config_test": false, ...
# Add SpamBayes as an option to the autotagger. We like SpamBayes. # # We feed the classifier the same terms as go into the search engine, # which should allow us to actually introspect a bit into the behavior # of the classifier. from spambayes.classifier import Classifier import mailpile.plugins.autotag from mailpi...
{ "repo_name": "jparyani/Mailpile", "path": "mailpile/plugins/autotag_sb.py", "copies": "3", "size": "1411", "license": "apache-2.0", "hash": -8560783546862550000, "line_mean": 32.5952380952, "line_max": 75, "alpha_frac": 0.6817859674, "autogenerated": false, "ratio": 3.391826923076923, "config_...
"""add spanish columns Revision ID: ebaea6f9f6a9 Revises: 32df5fa890bf Create Date: 2018-06-27 13:58:57.650447 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "ebaea6f9f6a9" down_revision = "32df5fa890bf" branch_labels = None depends_on = None def upgrade(engi...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/ebaea6f9f6a9_add_spanish_columns.py", "copies": "1", "size": "1254", "license": "bsd-3-clause", "hash": 3232245676160092700, "line_mean": 24.5918367347, "line_max": 103, "alpha_frac": 0.6650717703, "autogenerated":...
"""Add specified shots.""" from optparse import make_option import itertools from django.core.management.base import BaseCommand from h1ds.models import Shot, Device def parse_shot_args(args): individual_shots = [] shot_ranges = [] for arg in args: if "-" in arg: shot_ranges.append(map...
{ "repo_name": "h1ds/h1ds", "path": "h1ds/h1ds/management/commands/addshots.py", "copies": "1", "size": "1450", "license": "mit", "hash": 8328735223455631000, "line_mean": 34.3658536585, "line_max": 89, "alpha_frac": 0.5951724138, "autogenerated": false, "ratio": 3.7859007832898173, "config_test...
"""Adds random forces to the base of Minitaur during the simulation steps.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirna...
{ "repo_name": "MadManRises/Madgine", "path": "shared/bullet3-2.89/examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_push_randomizer.py", "copies": "4", "size": "4087", "license": "mit", "hash": 8416899236588307000, "line_mean": 43.4239130435, "line_max": 99, "alpha_frac": 0.6...
""" Adds registry entries on developer's machine. Emulating what the installer will do. """ import sys import os import json from _winreg import * def register_tool(tool): reg_path = "SOFTWARE\\META\\AnalysisTools\\%s\\" % (tool['name']) reg_key = "InstallLocation" reg_value = "C:\\sadasfa\\af...
{ "repo_name": "pombredanne/metamorphosys-desktop", "path": "metamorphosys/META/meta/CyPhyML/add_registry_entries.py", "copies": "1", "size": "1969", "license": "mit", "hash": 6770759434090367000, "line_mean": 33.1964285714, "line_max": 181, "alpha_frac": 0.6140172676, "autogenerated": false, "rat...
# Adds Remote to the Window menu of Motionbuilder. This is used to launch the q_telnet_client subprocess that # connects to the arduino remote and routes input back to Motionbuilder. It uses subprocess to prevent blocking # the Motionbuilder interface. # Also adds Reload Remote to the Window menu. This is allows us to ...
{ "repo_name": "MHendricks/Motionbuilder-Remote", "path": "__init__.py", "copies": "1", "size": "1257", "license": "mit", "hash": 6895680986248828000, "line_mean": 32.972972973, "line_max": 127, "alpha_frac": 0.7350835322, "autogenerated": false, "ratio": 3.316622691292876, "config_test": false,...
"""Adds S3 Image Store""" from baseCmd import * from baseResponse import * class addImageStoreS3Cmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "false" """S3 access key""" """Required""" self.accesskey = None self.typeInfo['accesskey'] = 'string' ...
{ "repo_name": "MissionCriticalCloud/marvin", "path": "marvin/cloudstackAPI/addImageStoreS3.py", "copies": "1", "size": "2840", "license": "apache-2.0", "hash": 559806965150627200, "line_mean": 33.6341463415, "line_max": 79, "alpha_frac": 0.5690140845, "autogenerated": false, "ratio": 4.0804597701...
"""Adds schools to the database Revision ID: d2a3b14d6a89 Revises: ce7d019512b1 Create Date: 2016-12-13 18:24:45.336983 """ # revision identifiers, used by Alembic. revision = 'd2a3b14d6a89' down_revision = 'ce7d019512b1' from alembic import op import sqlalchemy as sa from sqlalchemy.orm import sessionmaker from i...
{ "repo_name": "Rdbaker/WPI-IFC", "path": "migrations/versions/d2a3b14d6a89_.py", "copies": "1", "size": "1922", "license": "bsd-3-clause", "hash": -1754934289529976600, "line_mean": 30.5081967213, "line_max": 85, "alpha_frac": 0.6680541103, "autogenerated": false, "ratio": 3.2466216216216215, "...
"""Adds secondary storage.""" from baseCmd import * from baseResponse import * class addSecondaryStorageCmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "false" """the URL for the secondary storage""" """Required""" self.url = None self.typeInfo['url'] =...
{ "repo_name": "MissionCriticalCloud/marvin", "path": "marvin/cloudstackAPI/addSecondaryStorage.py", "copies": "1", "size": "1612", "license": "apache-2.0", "hash": -115277121848466240, "line_mean": 30, "line_max": 51, "alpha_frac": 0.5595533499, "autogenerated": false, "ratio": 4.070707070707071,...
"""Adds share tracking tables for three different time slices. Revision ID: b1e627b9a0 Revises: 2b5117cc3df6 Create Date: 2014-03-05 21:48:22.753744 """ # revision identifiers, used by Alembic. revision = 'b1e627b9a0' down_revision = '2b5117cc3df6' from alembic import op import sqlalchemy as sa from sqlalchemy.dial...
{ "repo_name": "lae/simplemona", "path": "migrations/versions/b1e627b9a0_.py", "copies": "2", "size": "2074", "license": "mit", "hash": 1921019201511098400, "line_mean": 39.6666666667, "line_max": 119, "alpha_frac": 0.668756027, "autogenerated": false, "ratio": 3.2816455696202533, "config_test":...
"""Adds some color to the tweets.""" import re from blessings import Terminal class Term(object): """Static class to store terminal color info.""" @staticmethod def colors(): """Returns the colors in use for this terminal.""" if not hasattr(Term, "_colors"): Term._colors = ...
{ "repo_name": "a-tal/pyweet", "path": "pyweet/colors.py", "copies": "1", "size": "2316", "license": "bsd-3-clause", "hash": -4254257922012327400, "line_mean": 29.88, "line_max": 79, "alpha_frac": 0.4982728843, "autogenerated": false, "ratio": 3.670364500792393, "config_test": false, "has_no_k...
""" Adds specialized pack patterns to avoid unroutable situations during packing Given an input architecture, this utility will find all the directs that need to have a specialized pack pattern and adds it to them. To find the correct direct that needs to be updated there are two different ways: 1. If the direct ...
{ "repo_name": "SymbiFlow/symbiflow-arch-defs", "path": "xc/common/utils/add_pack_patterns.py", "copies": "1", "size": "17843", "license": "isc", "hash": 6266654578773550000, "line_mean": 34.8293172691, "line_max": 81, "alpha_frac": 0.5029983747, "autogenerated": false, "ratio": 3.2289178429243575...
"""Adds SRPD and four datasets Revision ID: c5e276c0d67f Revises: 77ad8047becf Create Date: 2017-01-20 03:58:12.333638 """ # revision identifiers, used by Alembic. revision = 'c5e276c0d67f' down_revision = '77ad8047becf' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'u...
{ "repo_name": "codeforamerica/comport", "path": "migrations/versions/c5e276c0d67f_.py", "copies": "1", "size": "7821", "license": "bsd-3-clause", "hash": 8748911696314503000, "line_mean": 55.6739130435, "line_max": 121, "alpha_frac": 0.6523462473, "autogenerated": false, "ratio": 3.41081552551242...
""" Adds Status for ppagent tracking. Changes payout foreign key to point to blockhash instead of height. Revision ID: 2db48f0c89c7 Revises: b1e627b9a0 Create Date: 2014-03-08 18:12:27.925170 """ # revision identifiers, used by Alembic. revision = '2db48f0c89c7' down_revision = 'b1e627b9a0' from alembic import op i...
{ "repo_name": "lae/simplemona", "path": "migrations/versions/2db48f0c89c7_.py", "copies": "2", "size": "1916", "license": "mit", "hash": -153211591428671940, "line_mean": 38.9166666667, "line_max": 105, "alpha_frac": 0.5735908142, "autogenerated": false, "ratio": 4.0336842105263155, "config_tes...
"""Adds summary tags/fields to a merged VCF file. Collaborates with two summary "callers" to add INFO and FORMAT tags to each variant record based on the presence of previously translated tags. """ from __future__ import print_function, absolute_import, division import os import jacquard.utils.logger as logger impor...
{ "repo_name": "umich-brcf-bioinf/Jacquard", "path": "jacquard/summarize.py", "copies": "1", "size": "4407", "license": "apache-2.0", "hash": 1450445814603431400, "line_mean": 34.8292682927, "line_max": 123, "alpha_frac": 0.6412525528, "autogenerated": false, "ratio": 3.687866108786611, "config_...
"""Adds support for generic thermostat units.""" import asyncio import logging import math import voluptuous as vol from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateEntity from homeassistant.components.climate.const import ( ATTR_PRESET_MODE, CURRENT_HVAC_COOL, CURRENT_HVAC_HEAT, C...
{ "repo_name": "w1ll1am23/home-assistant", "path": "homeassistant/components/generic_thermostat/climate.py", "copies": "3", "size": "18623", "license": "apache-2.0", "hash": 6833568006033393000, "line_mean": 33.8745318352, "line_max": 96, "alpha_frac": 0.5756859797, "autogenerated": false, "ratio"...
"""Adds support for generic thermostat units.""" import asyncio import logging import voluptuous as vol from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice from homeassistant.components.climate.const import ( ATTR_PRESET_MODE, CURRENT_HVAC_COOL, CURRENT_HVAC_HEAT, CURRENT_HVAC_...
{ "repo_name": "Teagan42/home-assistant", "path": "homeassistant/components/generic_thermostat/climate.py", "copies": "2", "size": "16475", "license": "apache-2.0", "hash": 8342902311525437000, "line_mean": 34.278372591, "line_max": 96, "alpha_frac": 0.5779666161, "autogenerated": false, "ratio": ...
"""Adds support for generic thermostat units.""" import asyncio import logging import voluptuous as vol from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateEntity from homeassistant.components.climate.const import ( ATTR_PRESET_MODE, CURRENT_HVAC_COOL, CURRENT_HVAC_HEAT, CURRENT_HVAC_...
{ "repo_name": "partofthething/home-assistant", "path": "homeassistant/components/generic_thermostat/climate.py", "copies": "1", "size": "18000", "license": "mit", "hash": 504039053055987800, "line_mean": 33.8837209302, "line_max": 96, "alpha_frac": 0.5743888889, "autogenerated": false, "ratio": 3...
"""Adds support for rotation policies. Creates a default rotation policy (30 days) with the name 'default' ensures that all existing certificates use the default policy. Revision ID: a02a678ddc25 Revises: 8ae67285ff14 Create Date: 2017-07-12 11:45:49.257927 """ # revision identifiers, used by Alembic. revision = "a0...
{ "repo_name": "Netflix/lemur", "path": "lemur/migrations/versions/a02a678ddc25_.py", "copies": "1", "size": "2193", "license": "apache-2.0", "hash": 4040232984219374600, "line_mean": 31.7313432836, "line_max": 84, "alpha_frac": 0.6703146375, "autogenerated": false, "ratio": 3.729591836734694, "...
"""Adds Swift.""" from baseCmd import * from baseResponse import * class addSwiftCmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "false" """the URL for swift""" """Required""" self.url = None self.typeInfo['url'] = 'string' """the account for sw...
{ "repo_name": "MissionCriticalCloud/marvin", "path": "marvin/cloudstackAPI/addSwift.py", "copies": "1", "size": "1766", "license": "apache-2.0", "hash": 2172777111909247000, "line_mean": 29.4482758621, "line_max": 50, "alpha_frac": 0.543601359, "autogenerated": false, "ratio": 4.00453514739229, ...
"""Adds syntax for creating habracut""" from __future__ import absolute_import from __future__ import unicode_literals from markdown.extensions import Extension from markdown.preprocessors import Preprocessor import re from django.utils.deconstruct import deconstructible from django.utils.html import escape @decons...
{ "repo_name": "AmatanHead/collective-blog", "path": "s_markdown/extensions/cut.py", "copies": "1", "size": "2551", "license": "mit", "hash": 22005731126125308, "line_mean": 30.1097560976, "line_max": 86, "alpha_frac": 0.518620149, "autogenerated": false, "ratio": 4.1683006535947715, "config_tes...
# Adds table of Gaia photometry/astrometry to a DESI MWS mock file import sys import os import numpy as np import datetime from astropy.io import fits from astropy.table import Table, Column import astropy.units as u ############################################################ def make_gaia_observables(d...
{ "repo_name": "apcooper/bright_analysis", "path": "py/bright_analysis/gaia/gaia.py", "copies": "1", "size": "8201", "license": "bsd-3-clause", "hash": -2896884896647984000, "line_mean": 44.8156424581, "line_max": 159, "alpha_frac": 0.6246799171, "autogenerated": false, "ratio": 3.01064610866373, ...
"""add_staging_tables Revision ID: 50faca665f9c Revises: 7833b2378161 Create Date: 2016-08-01 13:52:53.038526 """ # revision identifiers, used by Alembic. revision = '50faca665f9c' down_revision = '7833b2378161' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engi...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/50faca665f9c_add_staging_tables.py", "copies": "2", "size": "24606", "license": "cc0-1.0", "hash": 6568207678755086000, "line_mean": 64.4414893617, "line_max": 245, "alpha_frac": 0.6921482565, ...
"""Add standard theano-related flags to an argparse.ArgumentParser.""" import argparse import sys import theano from .. import log, log_dict class NLPArgumentParser(argparse.ArgumentParser): """An ArgumentParser with some built-in arguments. Allows you to not have to retype help messages every time. """ de...
{ "repo_name": "robinjia/nectar", "path": "nectar/theanoutil/args.py", "copies": "1", "size": "5420", "license": "mit", "hash": -7707927492177636000, "line_mean": 44.1666666667, "line_max": 121, "alpha_frac": 0.6507380074, "autogenerated": false, "ratio": 3.510362694300518, "config_test": true, ...
"""add starred association table Revision ID: 37b62c1b2866 Revises: aee4d743e57 Create Date: 2015-06-06 23:10:45.415730 """ # revision identifiers, used by Alembic. revision = '37b62c1b2866' down_revision = 'aee4d743e57' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated...
{ "repo_name": "CityofPittsburgh/pittsburgh-purchasing-suite", "path": "migrations/versions/37b62c1b2866_add_starred_association_table.py", "copies": "3", "size": "1372", "license": "bsd-3-clause", "hash": 6725971736624940000, "line_mean": 38.2, "line_max": 135, "alpha_frac": 0.7091836735, "autogene...
"""add starred Revision ID: 4a802b741d2f Revises: 312cd5a9f878 Create Date: 2015-02-12 18:10:19.187733 """ # revision identifiers, used by Alembic. revision = '4a802b741d2f' down_revision = '312cd5a9f878' import warnings from alembic import op import sqlalchemy as sa from gertty.dbsupport import sqlite_alter_colu...
{ "repo_name": "aspiers/gertty", "path": "gertty/alembic/versions/4a802b741d2f_add_starred.py", "copies": "1", "size": "1136", "license": "apache-2.0", "hash": -5813366072593175000, "line_mean": 26.7073170732, "line_max": 79, "alpha_frac": 0.625, "autogenerated": false, "ratio": 3.561128526645768,...
"""Adds tasks to task queue""" import pickle from google.appengine.api import taskqueue def add_feeds_update_task(): """Enqueue task updating feeds""" taskqueue.add(url='/task/update_feeds') def add_feed_build_tasks(params_list): """Enqueue task for building feed for specific category""" q = taskque...
{ "repo_name": "notapresent/rutracker_rss", "path": "taskmaster.py", "copies": "1", "size": "1374", "license": "apache-2.0", "hash": -8985403653443226000, "line_mean": 27.0408163265, "line_max": 98, "alpha_frac": 0.6688500728, "autogenerated": false, "ratio": 3.4522613065326633, "config_test": f...
"""Add state, city, and county name to PublishedAwardFinancialAssistance table Revision ID: 0bf2ed508f33 Revises: 2c2b9b1ff0e5 Create Date: 2017-07-21 13:05:06.714431 """ # revision identifiers, used by Alembic. revision = '0bf2ed508f33' down_revision = '2c2b9b1ff0e5' branch_labels = None depends_on = None from ale...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/0bf2ed508f33_add_state_city_and_county_name_to_.py", "copies": "1", "size": "1405", "license": "cc0-1.0", "hash": 6555400982647146000, "line_mean": 30.9318181818, "line_max": 124, "alpha_frac": 0...
"""Add status field to project and remove is_ready field. Revision ID: 32da2a33a6cc Revises: 41dda8349f27 Create Date: 2013-10-08 22:41:31.545627 """ # revision identifiers, used by Alembic. revision = '32da2a33a6cc' down_revision = '41dda8349f27' from alembic import op import sqlalchemy as sa status_type = sa.Enu...
{ "repo_name": "ucsb-cs/submit", "path": "submit/migrations/versions/32da2a33a6cc_add_status_field_to_.py", "copies": "1", "size": "1462", "license": "bsd-2-clause", "hash": 5122181228924012000, "line_mean": 33.8095238095, "line_max": 76, "alpha_frac": 0.6155950752, "autogenerated": false, "ratio"...
# Adds Text-based access to trees from .cut import Cut class TextBranch(str): def __lt__(self, other): return Cut('({0}<({1}))'.format(self, other)) def __gt__(self, other): return Cut('({0}>({1}))'.format(self, other)) def __le__(self, other): return Cut('({0}<=({1}))'.format(self...
{ "repo_name": "ndawe/rootpy", "path": "rootpy/tree/texttree.py", "copies": "2", "size": "2218", "license": "bsd-3-clause", "hash": -1837007510015727600, "line_mean": 38.6071428571, "line_max": 76, "alpha_frac": 0.5144274121, "autogenerated": false, "ratio": 3.285925925925926, "config_test": fal...
"""Adds the ability to Controllers to checkpoint upon receipt of a signal, by default SIGTERM. There can be only one instance of Handler. Your class must subclass from both Handler.Handler and Controller.Controller, furthermore Handler must be the leftmost of the superclasses. E.g., class MyController(Handler.Handler...
{ "repo_name": "rupertnash/subgrid", "path": "python/dqTools/Handler.py", "copies": "2", "size": "2220", "license": "mit", "hash": 968760433830084100, "line_mean": 30.2676056338, "line_max": 87, "alpha_frac": 0.6189189189, "autogenerated": false, "ratio": 4.396039603960396, "config_test": false,...
"""Adds the custom filter 'urlize_quoted_links' This is identical to the built-in filter 'urlize' with the exception that single and double quotes are permitted as leading or trailing punctuation. """ # Almost all of this code is copied verbatim from django.utils.html # LEADING_PUNCTUATION and TRAILING_PUNCTUATION ha...
{ "repo_name": "seanfisk/buzzword-bingo-server", "path": "djangorestframework/templatetags/urlize_quoted_links.py", "copies": "1", "size": "4544", "license": "bsd-3-clause", "hash": -3262581655606986000, "line_mean": 44.44, "line_max": 143, "alpha_frac": 0.5985915493, "autogenerated": false, "rati...
"""Adds the meal table and the location_meal join table Revision ID: 9628d0303d10 Revises: dc30e7bcdd08 Create Date: 2017-05-23 21:04:53.966486 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '9628d0303d10' down_revisio...
{ "repo_name": "Rdbaker/Mealbound", "path": "migrations/versions/9628d0303d10_.py", "copies": "1", "size": "1530", "license": "bsd-3-clause", "hash": 101359903756084400, "line_mean": 32.2608695652, "line_max": 79, "alpha_frac": 0.6490196078, "autogenerated": false, "ratio": 3.5416666666666665, "...
#Adds the missing redshift column to our data import numpy as np import matplotlib.pyplot as plt from astropy.io import ascii import sys, os, string import pandas as pd #The file for all of our data fulldataout = '/Users/blorenz/COSMOS/COSMOSData/all_data_UVISTA.txt' #Read in all of our data ourdata = ascii.read(ful...
{ "repo_name": "brianlorenz/COSMOS_IMACS_Redshifts", "path": "Data_Conversion/AddZ.py", "copies": "1", "size": "1253", "license": "mit", "hash": -5951308408443340000, "line_mean": 26.8444444444, "line_max": 107, "alpha_frac": 0.6727853152, "autogenerated": false, "ratio": 2.8284424379232505, "co...
# Adds the missing redshift uncertainties column to our data import numpy as np import matplotlib.pyplot as plt from astropy.io import ascii import sys import os import string import pandas as pd # The file for all of our data fulldataout = '/Users/galaxies-air/COSMOS/COSMOSData/all_c_hasinger.txt' # Read in all of ...
{ "repo_name": "brianlorenz/COSMOS_IMACS_Redshifts", "path": "Data_Conversion/Add_Zerrs.py", "copies": "1", "size": "1155", "license": "mit", "hash": 8822674581073050000, "line_mean": 26.5, "line_max": 108, "alpha_frac": 0.7021645022, "autogenerated": false, "ratio": 2.9768041237113403, "config_...
"""Adds the review table Revision ID: 9f2495bd66de Revises: 3e4b230c5582 Create Date: 2017-07-09 11:02:10.683542 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '9f2495bd66de' down_revision = '3e4b230c5582' branch_label...
{ "repo_name": "Rdbaker/Mealbound", "path": "migrations/versions/9f2495bd66de_.py", "copies": "1", "size": "1178", "license": "bsd-3-clause", "hash": -6139113137148429000, "line_mean": 30, "line_max": 72, "alpha_frac": 0.6791171477, "autogenerated": false, "ratio": 3.3657142857142857, "config_te...
"""Adds the shared emote association table. Revision ID: a7f3bef62fdb Revises: 4af4c837801f Create Date: 2016-08-27 23:42:16.954777 """ # revision identifiers, used by Alembic. revision = 'a7f3bef62fdb' down_revision = '4af4c837801f' from alembic import op import sqlalchemy as sa def upgrade(): ### commands a...
{ "repo_name": "abalabahaha/emotes-website", "path": "migrations/versions/a7f3bef62fdb_.py", "copies": "2", "size": "1239", "license": "mit", "hash": 8829643811870673000, "line_mean": 34.4, "line_max": 109, "alpha_frac": 0.6820016142, "autogenerated": false, "ratio": 2.95, "config_test": false, ...
""" Adds the 'toggle-disassembly' command to switch you into a disassembly only mode """ import lldb class DisassemblyMode: def __init__(self, debugger, unused): self.dbg = debugger self.interp = debugger.GetCommandInterpreter() self.store_state() self.mode_off = True d...
{ "repo_name": "llvm-mirror/lldb", "path": "examples/python/disassembly_mode.py", "copies": "15", "size": "2170", "license": "apache-2.0", "hash": 5691543506909668000, "line_mean": 44.2083333333, "line_max": 103, "alpha_frac": 0.6331797235, "autogenerated": false, "ratio": 3.807017543859649, "co...
"""Adds the users <-> location tables FK Revision ID: ab25240c9bf9 Revises: f9a432f6a0b2 Create Date: 2017-05-18 21:21:59.969585 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'ab25240c9bf9' down_revision = 'f9a432f6a0...
{ "repo_name": "Rdbaker/Mealbound", "path": "migrations/versions/ab25240c9bf9_.py", "copies": "1", "size": "1107", "license": "bsd-3-clause", "hash": 8028957808770612000, "line_mean": 31.5588235294, "line_max": 83, "alpha_frac": 0.674796748, "autogenerated": false, "ratio": 3.2558823529411764, "...
"""Adds this path to the PYTHONPATH so normal import usage can occur for external packages.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os # import platform import sys # import warnings THIS_F...
{ "repo_name": "tanium/pytan", "path": "lib/libs_external/__init__.py", "copies": "1", "size": "1896", "license": "mit", "hash": -5244252518086211000, "line_mean": 25.4782608696, "line_max": 94, "alpha_frac": 0.6424050633, "autogenerated": false, "ratio": 3.3857142857142857, "config_test": false...
"""Adds thresholds and events for tracking email send rates. Revision ID: 53d03041be56 Revises: 19df16914a19 Create Date: 2014-03-17 22:09:03.802725 """ # revision identifiers, used by Alembic. revision = '53d03041be56' down_revision = '19df16914a19' from alembic import op import sqlalchemy as sa from sqlalchemy.di...
{ "repo_name": "lae/simplemona", "path": "migrations/versions/53d03041be56_.py", "copies": "2", "size": "1915", "license": "mit", "hash": 8757987246825652000, "line_mean": 40.6304347826, "line_max": 86, "alpha_frac": 0.5738903394, "autogenerated": false, "ratio": 4.190371991247265, "config_test"...
"""Adds TimeExercisesHistory and TimeExercisesTaxonomy Tables Revision ID: 7791f2c862d2 Revises: 56630a78dca0 Create Date: 2017-07-30 20:40:17.174425 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7791f2c862d2' down_revision = '56630a78dca0' branch_labels = No...
{ "repo_name": "pbraunstein/trackercise", "path": "migrations/versions/7791f2c862d2_.py", "copies": "1", "size": "1318", "license": "mit", "hash": -5577462867663133000, "line_mean": 30.380952381, "line_max": 82, "alpha_frac": 0.655538695, "autogenerated": false, "ratio": 3.3451776649746194, "con...
"""Add stock related tables Revision ID: 580385482580 Revises: 9c8ce0562634 Create Date: 2017-02-18 02:11:26.185087 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '580385482580' down_revision = '9c8ce0562634' branch_labels = None depends_on = None def upgrad...
{ "repo_name": "MJB47/Jokusoramame", "path": "migrations/versions/580385482580_add_stock_related_tables.py", "copies": "1", "size": "1431", "license": "mit", "hash": -8987087467605449000, "line_mean": 30.1086956522, "line_max": 66, "alpha_frac": 0.6596785465, "autogenerated": false, "ratio": 3.448...
"""Adds total income to all public figures.""" import six # String to prefix log messages with: LOG_PREFIX = '[post_process_income] ' INCOME = 'income' COMPENSATIONS = 'compensations' OTHER_INCOME = 'other_income' ALL_INCOMES = (INCOME, COMPENSATIONS, OTHER_INCOME) SK_TO_EUR = 30.126 CURRENCY_SK = "Sk" def parse_m...
{ "repo_name": "verejnedigital/verejne.digital", "path": "data/prod_generation/post_process_income.py", "copies": "1", "size": "2624", "license": "apache-2.0", "hash": -7419266183270995000, "line_mean": 27.5217391304, "line_max": 82, "alpha_frac": 0.6082317073, "autogenerated": false, "ratio": 3.5...
from PIL import Image import numpy as np import csv filename = raw_input("Enter filename with extension.\n") temp = Image.open(filename) maxsize = (640, 640) temp = temp.resize(maxsize, Image.ANTIALIAS)#shrink image temp = np.asarray(temp)#array to extract features foodName = raw_input("Enter the name o...
{ "repo_name": "SNAPPETITE/backend", "path": "python programs/sampleGroup.py", "copies": "1", "size": "2776", "license": "mit", "hash": -853068046010255100, "line_mean": 22.5663716814, "line_max": 110, "alpha_frac": 0.6123919308, "autogenerated": false, "ratio": 2.815415821501014, "config_test":...
"""Adds tracking for temperature, rejected shares, and hashrates each in their own set of timeslice tables. Revision ID: 19df16914a19 Revises: 58441c58e37e Create Date: 2014-03-15 12:50:30.998479 """ # revision identifiers, used by Alembic. revision = '19df16914a19' down_revision = '58441c58e37e' from alembic impor...
{ "repo_name": "simplecrypto/simplecoin", "path": "migrations/versions/19df16914a19_.py", "copies": "2", "size": "4182", "license": "mit", "hash": 7215091619742694000, "line_mean": 40, "line_max": 107, "alpha_frac": 0.656384505, "autogenerated": false, "ratio": 3.4908180300500833, "config_test":...
"""Adds Traffic Monitor Host for Direct Network Usage""" from baseCmd import * from baseResponse import * class addTrafficMonitorCmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "false" """URL of the traffic monitor Host""" """Required""" self.url = None ...
{ "repo_name": "MissionCriticalCloud/marvin", "path": "marvin/cloudstackAPI/addTrafficMonitor.py", "copies": "1", "size": "1624", "license": "apache-2.0", "hash": -6121904261098334000, "line_mean": 33.5531914894, "line_max": 76, "alpha_frac": 0.5997536946, "autogenerated": false, "ratio": 4.284960...
"""Adds traffic type to a physical network""" from baseCmd import * from baseResponse import * class addTrafficTypeCmd (baseCmd): typeInfo = {} def __init__(self): self.isAsync = "true" """the Physical Network ID""" """Required""" self.physicalnetworkid = None self.typ...
{ "repo_name": "MissionCriticalCloud/marvin", "path": "marvin/cloudstackAPI/addTrafficType.py", "copies": "1", "size": "2251", "license": "apache-2.0", "hash": -5831602195409945000, "line_mean": 41.4716981132, "line_max": 189, "alpha_frac": 0.6414926699, "autogenerated": false, "ratio": 4.36240310...
"""Add string-indexer (scikit_learn). Revision ID: dbb12fc54827 Revises: fb9ab7489253 Create Date: 2019-12-13 11:15:51.313657 """ from alembic import op import sqlalchemy as sa from alembic import context from alembic import op from sqlalchemy import String, Integer, Text from sqlalchemy.orm import sessionmaker from ...
{ "repo_name": "eubr-bigsea/tahiti", "path": "migrations/versions/dbb12fc54827_add_string_indexer_scikit_learn.py", "copies": "1", "size": "2753", "license": "apache-2.0", "hash": -5674104987326354000, "line_mean": 25.2285714286, "line_max": 96, "alpha_frac": 0.6087904105, "autogenerated": false, ...
"""Add student_id_confirmed to user. Revision ID: 18485381c9be Revises: 776b0d9121b7 Create Date: 2018-06-13 13:45:44.390612 """ 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/18485381c9be_add_student_id_confirmed_to_user.py", "copies": "1", "size": "1153", "license": "mit", "hash": 9084644082484560000, "line_mean": 23.0208333333, "line_max": 125, "alpha_frac": 0.7085862966, "autogenerated": false, "ratio": 3...
"""addSubMetaData Revision ID: b8cf7fa342bb Revises: 608afa719fb8 Create Date: 2016-04-04 09:38:39.555000 """ # revision identifiers, used by Alembic. revision = 'b8cf7fa342bb' down_revision = '608afa719fb8' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engine_n...
{ "repo_name": "fedspendingtransparency/data-act-core", "path": "dataactcore/migrations/versions/b8cf7fa342bb_addsubmetadata.py", "copies": "1", "size": "1673", "license": "cc0-1.0", "hash": -2968031789247638500, "line_mean": 24.3636363636, "line_max": 92, "alpha_frac": 0.6694560669, "autogenerated"...
"""add submission_id to PublishedAFA Revision ID: 03257ae6000f Revises: 4d66a8d6e11b Create Date: 2017-10-26 09:57:31.577694 """ # revision identifiers, used by Alembic. revision = '03257ae6000f' down_revision = '4d66a8d6e11b' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa d...
{ "repo_name": "fedspendingtransparency/data-act-broker-backend", "path": "dataactcore/migrations/versions/03257ae6000f_add_submission_id_to_publishedafa.py", "copies": "1", "size": "1202", "license": "cc0-1.0", "hash": 4799372395559078000, "line_mean": 27.619047619, "line_max": 155, "alpha_frac": 0.7...
"""add submissions table Revision ID: 3c6f2c76ca55 Revises: Create Date: 2016-01-27 11:06:58.772187 """ # revision identifiers, used by Alembic. revision = '3c6f2c76ca55' down_revision = None branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands aut...
{ "repo_name": "PsyBorgs/redditanalyser", "path": "migrate/versions/3c6f2c76ca55_add_submissions_table.py", "copies": "1", "size": "1348", "license": "mit", "hash": -4081037246019232000, "line_mean": 30.3488372093, "line_max": 63, "alpha_frac": 0.6698813056, "autogenerated": false, "ratio": 3.4832...
"""Add submission_tags for fast searching Revision ID: 9afc9a45510c Revises: abac1922735d Create Date: 2016-06-13 14:40:01.782784 """ # revision identifiers, used by Alembic. revision = '9afc9a45510c' down_revision = 'abac1922735d' from alembic import op # lgtm[py/unused-import] import sqlalchemy as sa # lgtm[py...
{ "repo_name": "Weasyl/weasyl", "path": "libweasyl/libweasyl/alembic/versions/9afc9a45510c_add_submission_tags_for_fast_searching.py", "copies": "1", "size": "1157", "license": "apache-2.0", "hash": 1180157578331437600, "line_mean": 35.15625, "line_max": 145, "alpha_frac": 0.7208297321, "autogenerat...
"""add subreddit_id field to subreddit_pages Revision ID: 2957ac0e11b6 Revises: 66a893890997 Create Date: 2016-07-18 17:23:04.904423 """ # revision identifiers, used by Alembic. revision = '2957ac0e11b6' down_revision = '66a893890997' branch_labels = None depends_on = None from alembic import op import sqlalchemy a...
{ "repo_name": "c4fcm/CivilServant", "path": "alembic/versions/2957ac0e11b6_add_subreddit_id_field_to_subreddit_.py", "copies": "1", "size": "1688", "license": "mit", "hash": -5288021321925363000, "line_mean": 25.375, "line_max": 100, "alpha_frac": 0.6795023697, "autogenerated": false, "ratio": 3....
"""Add summary columns Revision ID: f2aa951ca1a7 Revises: 7e250583b9cb Create Date: 2017-10-23 16:50:06.586388 """ import model.utils import sqlalchemy as sa from alembic import op from rdr_service.participant_enums import OrderStatus # revision identifiers, used by Alembic. revision = "f2aa951ca1a7" down_revision ...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/f2aa951ca1a7_add_summary_columns.py", "copies": "1", "size": "7574", "license": "bsd-3-clause", "hash": -4937783012136233000, "line_mean": 48.5032679739, "line_max": 119, "alpha_frac": 0.7010826512, "autogenerated"...
""" Add super_admin role and grant base administrator roles to it Revision ID: 93a6e0ee63c9 Revises: 8ff0624764b7 Create Date: 2016-04-18 19:27:39.063915 """ # revision identifiers, used by Alembic. revision = '93a6e0ee63c9' down_revision = '8ff0624764b7' from alembic import op def upgrade(): ### commands au...
{ "repo_name": "betterlife/flask-psi", "path": "psi/migrations/versions/19_93a6e0ee63c9_.py", "copies": "2", "size": "2208", "license": "mit", "hash": -2205408357696920800, "line_mean": 54.2, "line_max": 146, "alpha_frac": 0.6870471014, "autogenerated": false, "ratio": 3.5384615384615383, "confi...
# add_supplement_to_poemaster.py # This script adds files from the Graham's Magazine - Westminster Review # supplement to the master poetry metadata file. # At the same time it creates a list of poetry volids. import csv def dirty_pairtree(htid): period = htid.find('.') prefix = htid[0:period] postfix =...
{ "repo_name": "tedunderwood/GenreProject", "path": "python/reception/poetry/add_supplement_to_poemaster.py", "copies": "1", "size": "1515", "license": "mit", "hash": 6761111309712019000, "line_mean": 28.1346153846, "line_max": 93, "alpha_frac": 0.6633663366, "autogenerated": false, "ratio": 3.130...
"""Add SupplierFramework.prefill_declaration_from_framework_id column and constraints Revision ID: 830 Revises: 820 Create Date: 2017-02-02 14:18:54.512957 """ # revision identifiers, used by Alembic. revision = '830' down_revision = '820' from alembic import op import sqlalchemy as sa def upgrade(): op.add_co...
{ "repo_name": "alphagov/digitalmarketplace-api", "path": "migrations/versions/830_add_supplierframework_prefill_declaration.py", "copies": "1", "size": "1304", "license": "mit", "hash": 1238767962351034000, "line_mean": 49.1538461538, "line_max": 226, "alpha_frac": 0.7569018405, "autogenerated": fa...
"""Add supplier_id and created/updated dates Revision ID: c8bce0740af Revises: 4cb7869866dc Create Date: 2015-01-26 15:23:03.984803 """ # revision identifiers, used by Alembic. revision = 'c8bce0740af' down_revision = '4cb7869866dc' from alembic import op import sqlalchemy as sa def upgrade(): ### commands au...
{ "repo_name": "alphagov/digitalmarketplace-api", "path": "migrations/versions/c8bce0740af_add_supplier_id_and_created_updated_.py", "copies": "3", "size": "1081", "license": "mit", "hash": 3841081417121556000, "line_mean": 32.78125, "line_max": 95, "alpha_frac": 0.6891766883, "autogenerated": false...
"""Add support for discovering mDNS services.""" import itertools import logging from typing import List # noqa: F401 from zeroconf import DNSPointer, DNSRecord from zeroconf import Error as ZeroconfError from zeroconf import ServiceBrowser, ServiceInfo, ServiceStateChange, Zeroconf _LOGGER = logging.getLogger(__nam...
{ "repo_name": "balloob/netdisco", "path": "netdisco/mdns.py", "copies": "1", "size": "3135", "license": "mit", "hash": 5812231356289238000, "line_mean": 33.0760869565, "line_max": 81, "alpha_frac": 0.574800638, "autogenerated": false, "ratio": 4.583333333333333, "config_test": false, "has_no_...
"""Add support for discovering mDNS services.""" import zeroconf class MDNS(object): """Base class to discover mDNS services.""" def __init__(self): """Initialize the discovery.""" self.zeroconf = None self.services = [] self._browsers = [] def register_service(self, serv...
{ "repo_name": "sfam/netdisco", "path": "netdisco/mdns.py", "copies": "3", "size": "1034", "license": "mit", "hash": 8696967591023680000, "line_mean": 24.85, "line_max": 77, "alpha_frac": 0.581237911, "autogenerated": false, "ratio": 4.38135593220339, "config_test": false, "has_no_keywords": f...
"""Add support for external authentication. Revision ID: 009eafe4838f Revises: 9715822acf6c Create Date: 2017-07-23 02:16:39.493032 """ # revision identifiers, used by Alembic. revision = '009eafe4838f' down_revision = '9715822acf6c' from alembic import op import sqlalchemy as sa def upgrade(): op.alter_colum...
{ "repo_name": "airbnb/knowledge-repo", "path": "knowledge_repo/app/migrations/versions/009eafe4838f_add_support_for_external_authentication.py", "copies": "1", "size": "1662", "license": "apache-2.0", "hash": -7089244010786861000, "line_mean": 38.5714285714, "line_max": 107, "alpha_frac": 0.680505415...