commit stringlengths 40 40 | old_file stringlengths 4 118 | new_file stringlengths 4 118 | old_contents stringlengths 0 2.94k | new_contents stringlengths 1 4.43k | subject stringlengths 15 444 | message stringlengths 16 3.45k | lang stringclasses 1
value | license stringclasses 13
values | repos stringlengths 5 43.2k | prompt stringlengths 17 4.58k | response stringlengths 1 4.43k | prompt_tagged stringlengths 58 4.62k | response_tagged stringlengths 1 4.43k | text stringlengths 132 7.29k | text_tagged stringlengths 173 7.33k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ddbce972db10ce92a79982161355ed978fb0c554 | web/extras/contentment/components/event/model.py | web/extras/contentment/components/event/model.py | # encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringField(max_length... | # encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringField(max_length... | Fix for inability to define contact information. | Fix for inability to define contact information.
| Python | mit | marrow/contentment,marrow/contentment | # encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringField(max_length... | # encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringField(max_length... | <commit_before># encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringF... | # encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringField(max_length... | # encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringField(max_length... | <commit_before># encoding: utf-8
"""Event model."""
import mongoengine as db
from web.extras.contentment.components.page.model import Page
from widgets import fields
log = __import__('logging').getLogger(__name__)
__all__ = ['EventContact', 'Event']
class EventContact(db.EmbeddedDocument):
name = db.StringF... |
6206edd72ffb4d742f1466a5e60283b01ecca4ca | tests/sample_script.py | tests/sample_script.py | #!/usr/bin/env python2
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param))
time... | #!/usr/bin/env python
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param))
time.... | Test script now against default python version. | Test script now against default python version.
| Python | bsd-3-clause | omangin/expjobs | #!/usr/bin/env python2
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param))
time... | #!/usr/bin/env python
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param))
time.... | <commit_before>#!/usr/bin/env python2
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param... | #!/usr/bin/env python
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param))
time.... | #!/usr/bin/env python2
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param))
time... | <commit_before>#!/usr/bin/env python2
import os
import time
from expjobs.helpers import run_class
class DummyWorker(object):
param = 2
def set_out_path_and_name(self, path, name):
self.out_path = path
self.out_name = name
def run(self):
print('Running {}...'.format(self.param... |
0ea9fedf3eac7d8b6a7a85bd0b08fb30f35e4f4d | tests/test_analysis.py | tests/test_analysis.py | from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family, pd.core.frame... | from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family, pd.core.frame... | Check index on merge datadrame test | Check index on merge datadrame test
| Python | mit | CenterForOpenScience/sharepa,samanehsan/sharepa,erinspace/sharepa,fabianvf/sharepa | from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family, pd.core.frame... | from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family, pd.core.frame... | <commit_before>from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family... | from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family, pd.core.frame... | from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family, pd.core.frame... | <commit_before>from sharepa.analysis import merge_dataframes
import pandas as pd
def test_merge_dataframes():
dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])
stardust = pd.DataFrame({'Rhodes': 'Cody'}, index=['Rhodes'])
family = merge_dataframes(dream, stardust)
assert isinstance(family... |
c2a9c8ddc7294dcb0ff94c0b369c0f67c3d97f19 | ureport/stats/tasks.py | ureport/stats/tasks.py | import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FILTERS.keys())
... | import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60 * 4)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FILTERS.keys(... | Increase lock timeout for refreshing engagement data task | Increase lock timeout for refreshing engagement data task
| Python | agpl-3.0 | Ilhasoft/ureport,rapidpro/ureport,rapidpro/ureport,Ilhasoft/ureport,rapidpro/ureport,Ilhasoft/ureport,Ilhasoft/ureport,rapidpro/ureport | import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FILTERS.keys())
... | import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60 * 4)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FILTERS.keys(... | <commit_before>import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FI... | import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60 * 4)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FILTERS.keys(... | import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FILTERS.keys())
... | <commit_before>import logging
import time
from dash.orgs.tasks import org_task
logger = logging.getLogger(__name__)
@org_task("refresh-engagement-data", 60 * 60)
def refresh_engagement_data(org, since, until):
from .models import PollStats
start = time.time()
time_filters = list(PollStats.DATA_TIME_FI... |
1d0da246b5340b4822d2c47c79519edd7b9ed7e4 | turbo_hipster/task_plugins/shell_script/task.py | turbo_hipster/task_plugins/shell_script/task.py | # Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | # Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | Fix docstring on shell_script plugin | Fix docstring on shell_script plugin
Change-Id: I6e92a00c72d5ee054186f93cf344df98930cdd13
| Python | apache-2.0 | stackforge/turbo-hipster,matthewoliver/turbo-hipster,matthewoliver/turbo-hipster,stackforge/turbo-hipster | # Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | # Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | <commit_before># Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | # Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | # Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | <commit_before># Copyright 2013 Rackspace Australia
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... |
62f842d91b5819e24b0be71743953d7607cf99c1 | test_algebra_initialisation.py | test_algebra_initialisation.py | from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from numpy import exp, ... | from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from numpy import exp, ... | Move start-time calculation so it measures each initialization | Move start-time calculation so it measures each initialization
| Python | bsd-3-clause | arsenovic/clifford,arsenovic/clifford | from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from numpy import exp, ... | from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from numpy import exp, ... | <commit_before>from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from num... | from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from numpy import exp, ... | from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from numpy import exp, ... | <commit_before>from __future__ import absolute_import, division
from __future__ import print_function, unicode_literals
from past.builtins import range
from clifford import Cl, randomMV, Frame, get_mult_function, conformalize, grade_obj
from clifford.tools import orthoFrames2Verser as of2v
import numpy as np
from num... |
1db07b9a534e533200f83de4f86d854d0bcda087 | examples/exotica_examples/tests/runtest.py | examples/exotica_examples/tests/runtest.py | #!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie_collision_chec... | #!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie_collision_chec... | Add collision_scene_distances to set of tests to run | Add collision_scene_distances to set of tests to run
| Python | bsd-3-clause | openhumanoids/exotica,openhumanoids/exotica,openhumanoids/exotica,openhumanoids/exotica | #!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie_collision_chec... | #!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie_collision_chec... | <commit_before>#!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie... | #!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie_collision_chec... | #!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie_collision_chec... | <commit_before>#!/usr/bin/env python
# This is a workaround for liburdf.so throwing an exception and killing
# the process on exit in ROS Indigo.
import subprocess
import os
import sys
cpptests = ['test_initializers',
'test_maps'
]
pytests = ['core.py',
'valkyrie_com.py',
'valkyrie... |
66db08483faa1ca2b32a7349dafa94acb89b059c | locations/pipelines.py | locations/pipelines.py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.ids_seen = set(... | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.ids_seen = set(... | Add pipeline step that adds spider name to properties | Add pipeline step that adds spider name to properties
| Python | mit | iandees/all-the-places,iandees/all-the-places,iandees/all-the-places | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.ids_seen = set(... | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.ids_seen = set(... | <commit_before># -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.... | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.ids_seen = set(... | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.ids_seen = set(... | <commit_before># -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exceptions import DropItem
class DuplicatesPipeline(object):
def __init__(self):
self.... |
74506160831ec44f29b82ca02ff131b00ce91847 | masters/master.chromiumos.tryserver/master_site_config.py | masters/master.chromiumos.tryserver/master_site_config.py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'ChromiumOS Try Serve... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'ChromiumOS Try Serve... | Use UberProxy URL for 'tryserver.chromiumos' | Use UberProxy URL for 'tryserver.chromiumos'
BUG=352897
TEST=None
Review URL: https://codereview.chromium.org/554383002
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@291886 0039d316-1c4b-4281-b951-d872f2087c98
| Python | bsd-3-clause | eunchong/build,eunchong/build,eunchong/build,eunchong/build | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'ChromiumOS Try Serve... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'ChromiumOS Try Serve... | <commit_before># Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'Chrom... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'ChromiumOS Try Serve... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'ChromiumOS Try Serve... | <commit_before># Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ActiveMaster definition."""
from config_bootstrap import Master
class ChromiumOSTryServer(Master.ChromiumOSBase):
project_name = 'Chrom... |
7c9ed9fbdc1b16ae1d59c1099e7190e6297bf584 | util/chplenv/chpl_tasks.py | util/chplenv/chpl_tasks.py | #!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform.get()
... | #!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler, chpl_comm
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform.get... | Update chpl_task to only default to muxed when ugni comm is used. | Update chpl_task to only default to muxed when ugni comm is used.
This expands upon (and fixes) #1640 and #1635.
* [ ] Run printchplenv on mac and confirm it still works.
* [ ] Emulate cray-x* with module and confirm comm, tasks are ugni, muxed.
```bash
(
export CHPL_MODULE_HOME=$CHPL_HOME
export CHPL_HOST_PLATF... | Python | apache-2.0 | CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,hildeth/chapel,hild... | #!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform.get()
... | #!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler, chpl_comm
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform.get... | <commit_before>#!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform... | #!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler, chpl_comm
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform.get... | #!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform.get()
... | <commit_before>#!/usr/bin/env python
import sys, os
import chpl_arch, chpl_platform, chpl_compiler
from utils import memoize
import utils
@memoize
def get():
tasks_val = os.environ.get('CHPL_TASKS')
if not tasks_val:
arch_val = chpl_arch.get('target', get_lcd=True)
platform_val = chpl_platform... |
88242d5949dd799b03375834b5583a0c6b405f81 | nofu.py | nofu.py | import random
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
'50',
... | import random
import json
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
'... | Integrate answers with Flask frontend | Integrate answers with Flask frontend
| Python | mit | lordmauve/nofu,lordmauve/nofu | import random
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
'50',
... | import random
import json
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
'... | <commit_before>import random
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
... | import random
import json
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
'... | import random
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
'50',
... | <commit_before>import random
from flask import Flask, render_template, abort, redirect, request
app = Flask(__name__)
questions = [{
'question': 'How many shillings were there in a pre-decimalisation pound?',
'answer': '20',
'red_herrings': [
'5',
'10',
'12',
'25',
... |
4223ad57994fe87fe0be9b80c8070c3f4b77a071 | contrib/hooks/post-receive/mail_notifications.py | contrib/hooks/post-receive/mail_notifications.py | #! /usr/bin/env python3
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains the configuratio... | #! /usr/bin/env python
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains the configuration... | Support both python 2 and 3 | Support both python 2 and 3 | Python | mit | jbox-web/redmine_git_hosting,jbox-web/redmine_git_hosting,jbox-web/redmine_git_hosting,jbox-web/redmine_git_hosting | #! /usr/bin/env python3
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains the configuratio... | #! /usr/bin/env python
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains the configuration... | <commit_before>#! /usr/bin/env python3
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains t... | #! /usr/bin/env python
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains the configuration... | #! /usr/bin/env python3
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains the configuratio... | <commit_before>#! /usr/bin/env python3
import sys
import os
import git_multimail
# It is possible to modify the output templates here; e.g.:
git_multimail.FOOTER_TEMPLATE = """\
-- \n\
This email was generated by the wonderful git-multimail tool from JBox Web.
"""
# Specify which "git config" section contains t... |
31eb2bd7dee5a28f181d3eb8f923a9cdda198a47 | flocker/__init__.py | flocker/__init__.py | # Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
Route a seria... | # Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
Route a seria... | Address review comment: Add link to upstream ticket. | Address review comment: Add link to upstream ticket.
| Python | apache-2.0 | hackday-profilers/flocker,LaynePeng/flocker,wallnerryan/flocker-profiles,runcom/flocker,AndyHuu/flocker,achanda/flocker,wallnerryan/flocker-profiles,hackday-profilers/flocker,lukemarsden/flocker,runcom/flocker,moypray/flocker,moypray/flocker,moypray/flocker,LaynePeng/flocker,agonzalezro/flocker,adamtheturtle/flocker,lu... | # Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
Route a seria... | # Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
Route a seria... | <commit_before># Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
... | # Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
Route a seria... | # Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
Route a seria... | <commit_before># Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.test -*-
"""
Flocker is a hypervisor that provides ZFS-based replication and fail-over
functionality to a Linux-based user-space operating system.
"""
import sys
import os
def _logEliotMessage(data):
"""
... |
ae3a61b88c032c9188324bb17128fd060ac1ac2a | magazine/utils.py | magazine/utils.py | import bleach
from lxml.html.clean import Cleaner
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
def clean_word_text(text):
# The only thing I need Cleaner for is to... | import bleach
try:
from lxml.html.clean import Cleaner
HAS_LXML = True
except ImportError:
HAS_LXML = False
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
de... | Make the dependency on lxml optional. | Make the dependency on lxml optional.
| Python | mit | dominicrodger/django-magazine,dominicrodger/django-magazine | import bleach
from lxml.html.clean import Cleaner
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
def clean_word_text(text):
# The only thing I need Cleaner for is to... | import bleach
try:
from lxml.html.clean import Cleaner
HAS_LXML = True
except ImportError:
HAS_LXML = False
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
de... | <commit_before>import bleach
from lxml.html.clean import Cleaner
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
def clean_word_text(text):
# The only thing I need Cl... | import bleach
try:
from lxml.html.clean import Cleaner
HAS_LXML = True
except ImportError:
HAS_LXML = False
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
de... | import bleach
from lxml.html.clean import Cleaner
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
def clean_word_text(text):
# The only thing I need Cleaner for is to... | <commit_before>import bleach
from lxml.html.clean import Cleaner
allowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]
allowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()
allowed_attributes['a'] = bleach.ALLOWED_ATTRIBUTES['a'] + ['name']
def clean_word_text(text):
# The only thing I need Cl... |
66cda3c9248c04850e89a2937a2f1457ac538bd4 | vumi/middleware/__init__.py | vumi/middleware/__init__.py | """Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
from vumi.middleware.logging import LoggingMiddle... | """Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
__all__ = [
'BaseMiddleware', 'TransportMiddl... | Remove package-level imports of middleware classes. This will break some configs, but they should never have been there in the first place. | Remove package-level imports of middleware classes. This will break some configs, but they should never have been there in the first place.
| Python | bsd-3-clause | harrissoerja/vumi,TouK/vumi,harrissoerja/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,harrissoerja/vumi,vishwaprakashmishra/xmatrix,vishwaprakashmishra/xmatrix,TouK/vumi | """Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
from vumi.middleware.logging import LoggingMiddle... | """Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
__all__ = [
'BaseMiddleware', 'TransportMiddl... | <commit_before>"""Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
from vumi.middleware.logging impor... | """Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
__all__ = [
'BaseMiddleware', 'TransportMiddl... | """Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
from vumi.middleware.logging import LoggingMiddle... | <commit_before>"""Middleware classes to process messages on their way in and out of workers.
"""
from vumi.middleware.base import (
BaseMiddleware, TransportMiddleware, ApplicationMiddleware,
MiddlewareStack, create_middlewares_from_config,
setup_middlewares_from_config)
from vumi.middleware.logging impor... |
19a698c9440e36e8cac80d16b295d41eb4cb05f3 | wdbc/structures/__init__.py | wdbc/structures/__init__.py | # -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is ... | # -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is ... | Add a hacky update_cataclysm_locales method to Skeleton | structures: Add a hacky update_cataclysm_locales method to Skeleton
| Python | cc0-1.0 | jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow | # -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is ... | # -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is ... | <commit_before># -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if c... | # -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is ... | # -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if cls.wowfiles is ... | <commit_before># -*- coding: utf-8 -*-
from pywow.structures import Structure, Skeleton
from .fields import *
from .main import *
from .custom import *
from .generated import GeneratedStructure
class StructureNotFound(Exception):
pass
class StructureLoader():
wowfiles = None
@classmethod
def setup(cls):
if c... |
e7b853c667b5785355214380954c83b843c46f05 | tests/modules/contrib/test_publicip.py | tests/modules/contrib/test_publicip.py | import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
class PublicIPTest... | import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
class PublicIPTest... | Remove useless mock side effect | Remove useless mock side effect
| Python | mit | tobi-wan-kenobi/bumblebee-status,tobi-wan-kenobi/bumblebee-status | import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
class PublicIPTest... | import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
class PublicIPTest... | <commit_before>import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
cla... | import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
class PublicIPTest... | import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
class PublicIPTest... | <commit_before>import pytest
from unittest import TestCase, mock
import core.config
import core.widget
import modules.contrib.publicip
def build_module():
config = core.config.Config([])
return modules.contrib.publicip.Module(config=config, theme=None)
def widget(module):
return module.widgets()[0]
cla... |
9f598b0163a7ef6392b1ea67bde43f84fd9efbb8 | myflaskapp/tests/functional_tests.py | myflaskapp/tests/functional_tests.py | from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://localhost:5000')
assert 'tdd_with_python' in browser.title
| from selenium import webdriver
browser = webdriver.Chrome()
# Edith has heard about a cool new online to-do app. She goes # to check out
#its homepage
browser.get('http://localhost:5000')
# She notices the page title and header mention to-do lists
assert 'To-Do' in browser.title
# She is invited to enter a to-do i... | Change title test, add comments of To-do user story | Change title test, add comments of To-do user story
| Python | mit | terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python | from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://localhost:5000')
assert 'tdd_with_python' in browser.title
Change title test, add comments of To-do user story | from selenium import webdriver
browser = webdriver.Chrome()
# Edith has heard about a cool new online to-do app. She goes # to check out
#its homepage
browser.get('http://localhost:5000')
# She notices the page title and header mention to-do lists
assert 'To-Do' in browser.title
# She is invited to enter a to-do i... | <commit_before>from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://localhost:5000')
assert 'tdd_with_python' in browser.title
<commit_msg>Change title test, add comments of To-do user story<commit_after> | from selenium import webdriver
browser = webdriver.Chrome()
# Edith has heard about a cool new online to-do app. She goes # to check out
#its homepage
browser.get('http://localhost:5000')
# She notices the page title and header mention to-do lists
assert 'To-Do' in browser.title
# She is invited to enter a to-do i... | from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://localhost:5000')
assert 'tdd_with_python' in browser.title
Change title test, add comments of To-do user storyfrom selenium import webdriver
browser = webdriver.Chrome()
# Edith has heard about a cool new online to-do app. She goes # to ... | <commit_before>from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://localhost:5000')
assert 'tdd_with_python' in browser.title
<commit_msg>Change title test, add comments of To-do user story<commit_after>from selenium import webdriver
browser = webdriver.Chrome()
# Edith has heard about a ... |
6dc0300a35b46ba649ff655e6cb62aa57c843cff | navigation/templatetags/paginator.py | navigation/templatetags/paginator.py | from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_l... | from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_l... | Update after forum views now is class based | Update after forum views now is class based
| Python | agpl-3.0 | sigurdga/nidarholm,sigurdga/nidarholm,sigurdga/nidarholm | from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_l... | from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_l... | <commit_before>from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created ... | from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_l... | from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_l... | <commit_before>from django import template
register = template.Library()
def paginator(context, adjacent_pages=4):
"""
To be used in conjunction with the object_list generic view.
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created ... |
2e78bf754b1fc1d84086e127a2dd8ae7947fbaa8 | eva/layers/color_extract.py | eva/layers/color_extract.py | from keras import backend as K
from keras.layers import Layer
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
def call(self, x,... | from keras import backend as K
from keras.layers import Layer
# TODO REMOVE
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
def ... | Add todo for color extract | Add todo for color extract
| Python | apache-2.0 | israelg99/eva | from keras import backend as K
from keras.layers import Layer
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
def call(self, x,... | from keras import backend as K
from keras.layers import Layer
# TODO REMOVE
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
def ... | <commit_before>from keras import backend as K
from keras.layers import Layer
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
de... | from keras import backend as K
from keras.layers import Layer
# TODO REMOVE
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
def ... | from keras import backend as K
from keras.layers import Layer
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
def call(self, x,... | <commit_before>from keras import backend as K
from keras.layers import Layer
class ColorExtract(Layer):
""" TODO: Make is scalable to any amount of channels. """
def __init__(self, channel, **kwargs):
super().__init__(**kwargs)
assert channel in (0, 1, 2)
self.channel = channel
de... |
6823b063444dc6853ed524d2aad913fc0ba6c965 | towel/templatetags/towel_batch_tags.py | towel/templatetags/towel_batch_tags.py | from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object }} etc...
... | from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object }} etc...
... | Make batch_checkbox a bit more resilient against problems with context variables | Make batch_checkbox a bit more resilient against problems with context variables
| Python | bsd-3-clause | matthiask/towel,matthiask/towel,matthiask/towel,matthiask/towel | from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object }} etc...
... | from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object }} etc...
... | <commit_before>from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object ... | from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object }} etc...
... | from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object }} etc...
... | <commit_before>from django import template
register = template.Library()
@register.simple_tag
def batch_checkbox(form, id):
"""
Checkbox which allows selecting objects for batch processing::
{% for object in object_list %}
{% batch_checkbox batch_form object.id %}
{{ object ... |
bae36d9124efcc205db7c5738c528088ff8a02ca | bluebottle/auth/tests/test_middleware.py | bluebottle/auth/tests/test_middleware.py | from django.test.client import RequestFactory
from bluebottle.auth.middleware import LockdownMiddleware
from bluebottle.test.utils import BluebottleTestCase
class LockdownTestCase(BluebottleTestCase):
def setUp(self):
super(LockdownTestCase, self).setUp()
def test_lockdown_page(self):
mw = L... | Test lockdown and make sure it has style. | Test lockdown and make sure it has style.
| Python | bsd-3-clause | onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | Test lockdown and make sure it has style. | from django.test.client import RequestFactory
from bluebottle.auth.middleware import LockdownMiddleware
from bluebottle.test.utils import BluebottleTestCase
class LockdownTestCase(BluebottleTestCase):
def setUp(self):
super(LockdownTestCase, self).setUp()
def test_lockdown_page(self):
mw = L... | <commit_before><commit_msg>Test lockdown and make sure it has style.<commit_after> | from django.test.client import RequestFactory
from bluebottle.auth.middleware import LockdownMiddleware
from bluebottle.test.utils import BluebottleTestCase
class LockdownTestCase(BluebottleTestCase):
def setUp(self):
super(LockdownTestCase, self).setUp()
def test_lockdown_page(self):
mw = L... | Test lockdown and make sure it has style.from django.test.client import RequestFactory
from bluebottle.auth.middleware import LockdownMiddleware
from bluebottle.test.utils import BluebottleTestCase
class LockdownTestCase(BluebottleTestCase):
def setUp(self):
super(LockdownTestCase, self).setUp()
def... | <commit_before><commit_msg>Test lockdown and make sure it has style.<commit_after>from django.test.client import RequestFactory
from bluebottle.auth.middleware import LockdownMiddleware
from bluebottle.test.utils import BluebottleTestCase
class LockdownTestCase(BluebottleTestCase):
def setUp(self):
super... | |
5872282aa73bb53fd1a91174828d82b3a5d4233a | roushagent/plugins/output/plugin_chef.py | roushagent/plugins/output/plugin_chef.py | #!/usr/bin/env python
import sys
from bashscriptrunner import BashScriptRunner
name = "chef"
script = BashScriptRunner(script_path=["roushagent/plugins/lib/%s" % name])
def setup(config):
LOG.debug('Doing setup in test.py')
register_action('install_chef', install_chef)
register_action('run_chef', run_ch... | #!/usr/bin/env python
import sys
import os
from bashscriptrunner import BashScriptRunner
name = "chef"
def setup(config={}):
LOG.debug('Doing setup in test.py')
plugin_dir = config.get("plugin_dir", "roushagent/plugins")
script_path = [os.path.join(plugin_dir, "lib", name)]
script = BashScriptRunner(... | Use plugin_dir as base for script_path | Use plugin_dir as base for script_path
| Python | apache-2.0 | rcbops/opencenter-agent,rcbops/opencenter-agent | #!/usr/bin/env python
import sys
from bashscriptrunner import BashScriptRunner
name = "chef"
script = BashScriptRunner(script_path=["roushagent/plugins/lib/%s" % name])
def setup(config):
LOG.debug('Doing setup in test.py')
register_action('install_chef', install_chef)
register_action('run_chef', run_ch... | #!/usr/bin/env python
import sys
import os
from bashscriptrunner import BashScriptRunner
name = "chef"
def setup(config={}):
LOG.debug('Doing setup in test.py')
plugin_dir = config.get("plugin_dir", "roushagent/plugins")
script_path = [os.path.join(plugin_dir, "lib", name)]
script = BashScriptRunner(... | <commit_before>#!/usr/bin/env python
import sys
from bashscriptrunner import BashScriptRunner
name = "chef"
script = BashScriptRunner(script_path=["roushagent/plugins/lib/%s" % name])
def setup(config):
LOG.debug('Doing setup in test.py')
register_action('install_chef', install_chef)
register_action('ru... | #!/usr/bin/env python
import sys
import os
from bashscriptrunner import BashScriptRunner
name = "chef"
def setup(config={}):
LOG.debug('Doing setup in test.py')
plugin_dir = config.get("plugin_dir", "roushagent/plugins")
script_path = [os.path.join(plugin_dir, "lib", name)]
script = BashScriptRunner(... | #!/usr/bin/env python
import sys
from bashscriptrunner import BashScriptRunner
name = "chef"
script = BashScriptRunner(script_path=["roushagent/plugins/lib/%s" % name])
def setup(config):
LOG.debug('Doing setup in test.py')
register_action('install_chef', install_chef)
register_action('run_chef', run_ch... | <commit_before>#!/usr/bin/env python
import sys
from bashscriptrunner import BashScriptRunner
name = "chef"
script = BashScriptRunner(script_path=["roushagent/plugins/lib/%s" % name])
def setup(config):
LOG.debug('Doing setup in test.py')
register_action('install_chef', install_chef)
register_action('ru... |
a7e7320967e52f532b684ec4cb488f0d28f29038 | citrination_client/views/model_report.py | citrination_client/views/model_report.py | from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
self._raw_r... | from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
self._raw_r... | Add basic documentation to ModelReport | Add basic documentation to ModelReport
| Python | apache-2.0 | CitrineInformatics/python-citrination-client | from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
self._raw_r... | from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
self._raw_r... | <commit_before>from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
... | from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
self._raw_r... | from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
self._raw_r... | <commit_before>from copy import deepcopy
class ModelReport(object):
"""
An abstraction of a model report that wraps access to various sections
of the report.
"""
"""
:param raw_report: the dict representation of model report JSON
:type: dict
"""
def __init__(self, raw_report):
... |
7302cb5ca42a75ed7830327f175dba3abb75ab74 | tests/runner.py | tests/runner.py | import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Python 2.7 so we n... | import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Python 2.7 so we n... | Use more readable version comparision | Use more readable version comparision
| Python | bsd-2-clause | murphyke/avocado,murphyke/avocado,murphyke/avocado,murphyke/avocado | import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Python 2.7 so we n... | import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Python 2.7 so we n... | <commit_before>import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Pyt... | import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Python 2.7 so we n... | import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Python 2.7 so we n... | <commit_before>import sys
import pstats
import cProfile
import unittest
from django.test.simple import DjangoTestSuiteRunner
class ProfilingTestRunner(DjangoTestSuiteRunner):
def run_suite(self, suite, **kwargs):
stream = open('profiled_tests.txt', 'w')
# failfast keyword was added in Pyt... |
fc5e34aca23d219dd55ee4cfa0776ac47a4252db | dynamic_forms/__init__.py | dynamic_forms/__init__.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@sinnwerkstatt.com'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
| # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@markusholtermann.eu'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
| Fix email in package init | Fix email in package init
| Python | bsd-3-clause | MotherNatureNetwork/django-dynamic-forms,MotherNatureNetwork/django-dynamic-forms,wangjiaxi/django-dynamic-forms,wangjiaxi/django-dynamic-forms,MotherNatureNetwork/django-dynamic-forms,uhuramedia/django-dynamic-forms,uhuramedia/django-dynamic-forms,uhuramedia/django-dynamic-forms,wangjiaxi/django-dynamic-forms | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@sinnwerkstatt.com'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
Fix email in package init | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@markusholtermann.eu'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
| <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@sinnwerkstatt.com'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
<commit_msg>Fix email in package init<commit_after> | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@markusholtermann.eu'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
| # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@sinnwerkstatt.com'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
Fix email in package init# -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author_... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
__author__ = 'Markus Holtermann'
__email__ = 'info@sinnwerkstatt.com'
__version__ = '0.3.2'
default_app_config = 'dynamic_forms.apps.DynamicFormsConfig'
<commit_msg>Fix email in package init<commit_after># -*- coding: utf-8 -*-
from __fut... |
7c2a75906338e0670d0f75b4e06fc9ae775f3142 | custom/opm/migrations/0001_drop_old_fluff_tables.py | custom/opm/migrations/0001_drop_old_fluff_tables.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from django.db import migrations
def drop_tables(apps, schema_editor):
# show SQL commands
logging.getLogger('sqlalchemy.engine').setLevel(logging.IN... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from corehq.util.decorators import change_log_level
from django.db import migrations
@change_log_level('sqlalchemy.engine', logging.INFO) # show SQL command... | Make sure log level gets reset afterwards | Make sure log level gets reset afterwards
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from django.db import migrations
def drop_tables(apps, schema_editor):
# show SQL commands
logging.getLogger('sqlalchemy.engine').setLevel(logging.IN... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from corehq.util.decorators import change_log_level
from django.db import migrations
@change_log_level('sqlalchemy.engine', logging.INFO) # show SQL command... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from django.db import migrations
def drop_tables(apps, schema_editor):
# show SQL commands
logging.getLogger('sqlalchemy.engine').setL... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from corehq.util.decorators import change_log_level
from django.db import migrations
@change_log_level('sqlalchemy.engine', logging.INFO) # show SQL command... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from django.db import migrations
def drop_tables(apps, schema_editor):
# show SQL commands
logging.getLogger('sqlalchemy.engine').setLevel(logging.IN... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from sqlalchemy import Table, MetaData
from corehq.db import connection_manager
from django.db import migrations
def drop_tables(apps, schema_editor):
# show SQL commands
logging.getLogger('sqlalchemy.engine').setL... |
38a2f6999ae0fb956303599ca8cf860c759c1ea8 | xml_json_import/__init__.py | xml_json_import/__init__.py | from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists(settings.XSLT_... | from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists(settings.XSLT_FILES_DIR)... | Change line end characters to UNIX (\r\n -> \n) | Change line end characters to UNIX (\r\n -> \n)
| Python | mit | lev-veshnyakov/django-import-data,lev-veshnyakov/django-import-data | from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists(settings.XSLT_... | from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists(settings.XSLT_FILES_DIR)... | <commit_before>from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists... | from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists(settings.XSLT_FILES_DIR)... | from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists(settings.XSLT_... | <commit_before>from django.conf import settings
from os import path, listdir
from lxml import etree
class XmlJsonImportModuleException(Exception):
pass
if not hasattr(settings, 'XSLT_FILES_DIR'):
raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
if not path.exists... |
e3bd01b70939555feb89c373d2e156104f1dd02b | daemon/__init__.py | daemon/__init__.py | # -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Fo... | # -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Fo... | Prepare development of new version. | Prepare development of new version. | Python | apache-2.0 | wting/python-daemon,eaufavor/python-daemon | # -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Fo... | # -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Fo... | <commit_before># -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Pyt... | # -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Fo... | # -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Fo... | <commit_before># -*- coding: utf-8 -*-
# Copyright © 2009 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2006 Robert Niederreiter
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Pyt... |
cdee49a0ed600a72955d844abf5e4b5b2f9970cc | cookielaw/templatetags/cookielaw_tags.py | cookielaw/templatetags/cookielaw_tags.py | # -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
return render_to_st... | # -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
request =... | Fix required for Django 1.11 | Fix required for Django 1.11
Update to fix "context must be a dict rather than RequestContext" error in Django 1.11 | Python | bsd-2-clause | juan-cb/django-cookie-law,juan-cb/django-cookie-law,juan-cb/django-cookie-law | # -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
return render_to_st... | # -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
request =... | <commit_before># -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
retu... | # -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
request =... | # -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
return render_to_st... | <commit_before># -*- coding: utf-8 -*-
from django import template
from django.template.loader import render_to_string
register = template.Library()
@register.simple_tag(takes_context=True)
def cookielaw_banner(context):
if context['request'].COOKIES.get('cookielaw_accepted', False):
return ''
retu... |
1e0d3c0d0b20f92fd901163a4f2b41627f9e931e | oonib/handlers.py | oonib/handlers.py | from cyclone import web
class OONIBHandler(web.RequestHandler):
pass
class OONIBError(web.HTTPError):
pass
| import types
from cyclone import escape
from cyclone import web
class OONIBHandler(web.RequestHandler):
def write(self, chunk):
"""
This is a monkey patch to RequestHandler to allow us to serialize also
json list objects.
"""
if isinstance(chunk, types.ListType):
... | Add support for serializing lists to json via self.write() | Add support for serializing lists to json via self.write()
| Python | bsd-2-clause | DoNotUseThisCodeJUSTFORKS/ooni-backend,dstufft/ooni-backend,DoNotUseThisCodeJUSTFORKS/ooni-backend,dstufft/ooni-backend | from cyclone import web
class OONIBHandler(web.RequestHandler):
pass
class OONIBError(web.HTTPError):
pass
Add support for serializing lists to json via self.write() | import types
from cyclone import escape
from cyclone import web
class OONIBHandler(web.RequestHandler):
def write(self, chunk):
"""
This is a monkey patch to RequestHandler to allow us to serialize also
json list objects.
"""
if isinstance(chunk, types.ListType):
... | <commit_before>from cyclone import web
class OONIBHandler(web.RequestHandler):
pass
class OONIBError(web.HTTPError):
pass
<commit_msg>Add support for serializing lists to json via self.write()<commit_after> | import types
from cyclone import escape
from cyclone import web
class OONIBHandler(web.RequestHandler):
def write(self, chunk):
"""
This is a monkey patch to RequestHandler to allow us to serialize also
json list objects.
"""
if isinstance(chunk, types.ListType):
... | from cyclone import web
class OONIBHandler(web.RequestHandler):
pass
class OONIBError(web.HTTPError):
pass
Add support for serializing lists to json via self.write()import types
from cyclone import escape
from cyclone import web
class OONIBHandler(web.RequestHandler):
def write(self, chunk):
"""... | <commit_before>from cyclone import web
class OONIBHandler(web.RequestHandler):
pass
class OONIBError(web.HTTPError):
pass
<commit_msg>Add support for serializing lists to json via self.write()<commit_after>import types
from cyclone import escape
from cyclone import web
class OONIBHandler(web.RequestHandler)... |
b24aca6da2513aff7e07ce97715a36eb8e9eff2c | var/spack/packages/ravel/package.py | var/spack/packages/ravel/package.py | from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0', git="ssh://git@cz-stash.llnl.gov:7999/pave/ravel.git",
branch=... | from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0.0', git="https://github.com/scalability-llnl/ravel.git",
branch='... | Add -Wno-dev to avoid cmake policy warnings. | Add -Wno-dev to avoid cmake policy warnings.
| Python | lgpl-2.1 | lgarren/spack,krafczyk/spack,LLNL/spack,mfherbst/spack,tmerrick1/spack,mfherbst/spack,EmreAtes/spack,TheTimmy/spack,mfherbst/spack,EmreAtes/spack,tmerrick1/spack,krafczyk/spack,krafczyk/spack,iulian787/spack,TheTimmy/spack,krafczyk/spack,EmreAtes/spack,EmreAtes/spack,EmreAtes/spack,TheTimmy/spack,iulian787/spack,matthi... | from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0', git="ssh://git@cz-stash.llnl.gov:7999/pave/ravel.git",
branch=... | from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0.0', git="https://github.com/scalability-llnl/ravel.git",
branch='... | <commit_before>from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0', git="ssh://git@cz-stash.llnl.gov:7999/pave/ravel.git",
... | from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0.0', git="https://github.com/scalability-llnl/ravel.git",
branch='... | from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0', git="ssh://git@cz-stash.llnl.gov:7999/pave/ravel.git",
branch=... | <commit_before>from spack import *
class Ravel(Package):
"""Ravel is a parallel communication trace visualization tool that
orders events according to logical time."""
homepage = "https://github.com/scalability-llnl/ravel"
version('1.0', git="ssh://git@cz-stash.llnl.gov:7999/pave/ravel.git",
... |
c25ec6bb7d06446ca6dee78e53b5a414791451e5 | modelview/urls.py | modelview/urls.py | from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>[\w\d_]+)s/add/... | from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>[\w\d_]+)s/add/... | Simplify regex in url matching | Simplify regex in url matching
| Python | agpl-3.0 | openego/oeplatform,openego/oeplatform,openego/oeplatform,openego/oeplatform | from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>[\w\d_]+)s/add/... | from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>[\w\d_]+)s/add/... | <commit_before>from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>... | from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>[\w\d_]+)s/add/... | from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>[\w\d_]+)s/add/... | <commit_before>from django.conf.urls import url
from modelview import views
from oeplatform import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'),
url(r'^overview/$', views.overview, {}),
url(r'^(?P<sheettype>... |
c707242bc535411fe84232ca765a87ed2ef7fc22 | magicembed/templatetags/magicembed_tags.py | magicembed/templatetags/magicembed_tags.py | # -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
ussage: {% http://myurl.com... | # -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
usage: {% http://myurl.com/... | Fix simple typo, ussage -> usage | docs: Fix simple typo, ussage -> usage
There is a small typo in magicembed/templatetags/magicembed_tags.py.
Should read `usage` rather than `ussage`.
| Python | mit | kronoscode/django-magicembed,kronoscode/django-magicembed | # -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
ussage: {% http://myurl.com... | # -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
usage: {% http://myurl.com/... | <commit_before># -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
ussage: {% h... | # -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
usage: {% http://myurl.com/... | # -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
ussage: {% http://myurl.com... | <commit_before># -*- coding: utf-8 -*-
from django import template
from django.utils.safestring import mark_safe
from magicembed.providers import get_provider
register = template.Library()
@register.filter(is_safe=True)
def magicembed(value, arg=None):
'''value is the url and arg the size tuple
ussage: {% h... |
f4841c1b0ddecd27544e2fd36429fd72c102d162 | Lib/fontTools/help/__main__.py | Lib/fontTools/help/__main__.py | """Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def get_description(pkg):
try:
return __import__(pkg+".__main__",globals(),locals(),["__doc__"]).__doc__
except Exception as e:
return None
def show_help_... | """Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def describe(pkg):
try:
description = __import__(
"fontTools." + pkg + ".__main__", globals(), locals(), ["__doc__"]
).__doc__
... | Address feedback, reformat, simplify, fix bugs and typo | Address feedback, reformat, simplify, fix bugs and typo | Python | mit | googlefonts/fonttools,fonttools/fonttools | """Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def get_description(pkg):
try:
return __import__(pkg+".__main__",globals(),locals(),["__doc__"]).__doc__
except Exception as e:
return None
def show_help_... | """Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def describe(pkg):
try:
description = __import__(
"fontTools." + pkg + ".__main__", globals(), locals(), ["__doc__"]
).__doc__
... | <commit_before>"""Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def get_description(pkg):
try:
return __import__(pkg+".__main__",globals(),locals(),["__doc__"]).__doc__
except Exception as e:
return None
... | """Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def describe(pkg):
try:
description = __import__(
"fontTools." + pkg + ".__main__", globals(), locals(), ["__doc__"]
).__doc__
... | """Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def get_description(pkg):
try:
return __import__(pkg+".__main__",globals(),locals(),["__doc__"]).__doc__
except Exception as e:
return None
def show_help_... | <commit_before>"""Show this help"""
import pkgutil
import sys
from setuptools import find_packages
from pkgutil import iter_modules
import fontTools
import importlib
def get_description(pkg):
try:
return __import__(pkg+".__main__",globals(),locals(),["__doc__"]).__doc__
except Exception as e:
return None
... |
67aa75b51249c8557f4fd4fd98b4dc6901b9cf49 | great_expectations/datasource/generator/__init__.py | great_expectations/datasource/generator/__init__.py | from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGenerator | from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGenerator
from .s3... | Add S3 Generator to generators module | Add S3 Generator to generators module
| Python | apache-2.0 | great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations | from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGeneratorAdd S3 Ge... | from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGenerator
from .s3... | <commit_before>from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGen... | from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGenerator
from .s3... | from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGeneratorAdd S3 Ge... | <commit_before>from .databricks_generator import DatabricksTableGenerator
from .glob_reader_generator import GlobReaderGenerator
from .subdir_reader_generator import SubdirReaderGenerator
from .in_memory_generator import InMemoryGenerator
from .query_generator import QueryGenerator
from .table_generator import TableGen... |
0aa757955d631df9fb8e6cbe3e372dcae56e2255 | django_mailbox/transports/imap.py | django_mailbox/transports/imap.py | from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
self.t... | from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
self.t... | Create archive folder if it does not exist. | Create archive folder if it does not exist.
| Python | mit | coddingtonbear/django-mailbox,ad-m/django-mailbox,Shekharrajak/django-mailbox,leifurhauks/django-mailbox | from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
self.t... | from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
self.t... | <commit_before>from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
... | from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
self.t... | from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
self.t... | <commit_before>from imaplib import IMAP4, IMAP4_SSL
from .base import EmailTransport, MessageParseError
class ImapTransport(EmailTransport):
def __init__(self, hostname, port=None, ssl=False, archive=''):
self.hostname = hostname
self.port = port
self.archive = archive
if ssl:
... |
d2d4f127a797ad6e82d41de10edd0e70f1626df8 | virtualfish/__main__.py | virtualfish/__main__.py | from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(version),
's... | from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(version),
's... | Use 'source' command instead of deprecated '.' alias | Use 'source' command instead of deprecated '.' alias
Closes #125
| Python | mit | adambrenecki/virtualfish,adambrenecki/virtualfish | from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(version),
's... | from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(version),
's... | <commit_before>from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(versi... | from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(version),
's... | from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(version),
's... | <commit_before>from __future__ import print_function
import os
import sys
import pkg_resources
if __name__ == "__main__":
version = pkg_resources.get_distribution('virtualfish').version
base_path = os.path.dirname(os.path.abspath(__file__))
commands = [
'set -g VIRTUALFISH_VERSION {}'.format(versi... |
2ab4cd4bbc01f3625708b725f1465cb9fb0cdf1b | scripts/showbb.py | scripts/showbb.py | '''
Pretty prints a bitboard to the console given its hex or decimal value.
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(sys.argv[1], 10... | '''
Pretty prints a bitboard to the console given its hex or decimal value.b
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(sys.argv[1], 1... | Make bitboard script output easier to read | Make bitboard script output easier to read
| Python | mit | GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue | '''
Pretty prints a bitboard to the console given its hex or decimal value.
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(sys.argv[1], 10... | '''
Pretty prints a bitboard to the console given its hex or decimal value.b
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(sys.argv[1], 1... | <commit_before>'''
Pretty prints a bitboard to the console given its hex or decimal value.
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(... | '''
Pretty prints a bitboard to the console given its hex or decimal value.b
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(sys.argv[1], 1... | '''
Pretty prints a bitboard to the console given its hex or decimal value.
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(sys.argv[1], 10... | <commit_before>'''
Pretty prints a bitboard to the console given its hex or decimal value.
'''
import sys, textwrap
if len(sys.argv) == 1:
print 'Syntax: showbb.py <bitboard>'
sys.exit(1)
# Handle hex/decimal bitboards
if sys.argv[1].startswith('0x'):
bb = bin(int(sys.argv[1], 16))
else:
bb = bin(int(... |
003c3049f84634f650a9ddff7dbee09ceefbe47f | version.py | version.py | major = 0
minor=0
patch=13
branch="master"
timestamp=1376507610.99 | major = 0
minor=0
patch=14
branch="master"
timestamp=1376507766.02 | Tag commit for v0.0.14-master generated by gitmake.py | Tag commit for v0.0.14-master generated by gitmake.py
| Python | mit | ryansturmer/gitmake | major = 0
minor=0
patch=13
branch="master"
timestamp=1376507610.99Tag commit for v0.0.14-master generated by gitmake.py | major = 0
minor=0
patch=14
branch="master"
timestamp=1376507766.02 | <commit_before>major = 0
minor=0
patch=13
branch="master"
timestamp=1376507610.99<commit_msg>Tag commit for v0.0.14-master generated by gitmake.py<commit_after> | major = 0
minor=0
patch=14
branch="master"
timestamp=1376507766.02 | major = 0
minor=0
patch=13
branch="master"
timestamp=1376507610.99Tag commit for v0.0.14-master generated by gitmake.pymajor = 0
minor=0
patch=14
branch="master"
timestamp=1376507766.02 | <commit_before>major = 0
minor=0
patch=13
branch="master"
timestamp=1376507610.99<commit_msg>Tag commit for v0.0.14-master generated by gitmake.py<commit_after>major = 0
minor=0
patch=14
branch="master"
timestamp=1376507766.02 |
a34fac317c9b09c3d516238cabda5e99a8cec907 | sciunit/unit_test/validator_tests.py | sciunit/unit_test/validator_tests.py | import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.validators import register_quantity, register_type
reg... | import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def test1(self):
self.assertEqual(1, 1)
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.valid... | Add assert to validator test cases | Add assert to validator test cases
| Python | mit | scidash/sciunit,scidash/sciunit | import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.validators import register_quantity, register_type
reg... | import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def test1(self):
self.assertEqual(1, 1)
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.valid... | <commit_before>import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.validators import register_quantity, register_t... | import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def test1(self):
self.assertEqual(1, 1)
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.valid... | import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.validators import register_quantity, register_type
reg... | <commit_before>import unittest
import quantities as pq
class ValidatorTestCase(unittest.TestCase):
def register_test(self):
class TestClass():
intValue = 0
def getIntValue(self):
return self.intValue
from sciunit.validators import register_quantity, register_t... |
c94e3cb0f82430811f7e8cc53d29433448395f70 | favicon/urls.py | favicon/urls.py | from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': conf.FAVICON_PATH}, name='favicon'),
) | from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', RedirectView.as_view(url=conf.FAVICON_PATH}), name='favicon'),
)
| Use RedirectView in urlpatterns (needed for Django 1.5) | Use RedirectView in urlpatterns (needed for Django 1.5)
'django.views.generic.simple.redirect_to' is not supported in Django 1.5
Use RedirectView.as_view instead.
The existing code was already importing RedirectView but still using the old 'django.views.generic.simple.redirect_to' in the url patterns. | Python | bsd-3-clause | littlepea/django-favicon | from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': conf.FAVICON_PATH}, name='favicon'),
)Use RedirectView in urlpatterns (needed for Django 1.5)
'dja... | from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', RedirectView.as_view(url=conf.FAVICON_PATH}), name='favicon'),
)
| <commit_before>from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': conf.FAVICON_PATH}, name='favicon'),
)<commit_msg>Use RedirectView in urlpatterns (n... | from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', RedirectView.as_view(url=conf.FAVICON_PATH}), name='favicon'),
)
| from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': conf.FAVICON_PATH}, name='favicon'),
)Use RedirectView in urlpatterns (needed for Django 1.5)
'dja... | <commit_before>from django.conf.urls import patterns, url
from django.views.generic import TemplateView, RedirectView
import conf
urlpatterns = patterns('',
url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': conf.FAVICON_PATH}, name='favicon'),
)<commit_msg>Use RedirectView in urlpatterns (n... |
917cd9330f572bc2ec601a7555122b59507f6429 | payments/management/commands/init_plans.py | payments/management/commands/init_plans.py | from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in settings.PA... | from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in settings.PA... | Use plan name instead of description | Use plan name instead of description | Python | mit | aibon/django-stripe-payments,crehana/django-stripe-payments,crehana/django-stripe-payments,jamespacileo/django-stripe-payments,alexhayes/django-stripe-payments,ZeevG/django-stripe-payments,jamespacileo/django-stripe-payments,grue/django-stripe-payments,wahuneke/django-stripe-payments,adi-li/django-stripe-payments,alexh... | from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in settings.PA... | from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in settings.PA... | <commit_before>from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan... | from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in settings.PA... | from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in settings.PA... | <commit_before>from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan... |
b2018bcf9274e0e641e132fe866ef630f99d98a3 | profiles/modules/codes/extensions/codes.py | profiles/modules/codes/extensions/codes.py | from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter += ['code', ]
... | from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter += ['code', ]
... | Fix terrible error when filter_horizontal of admin class has not existed. | Fix terrible error when filter_horizontal of admin class has not existed.
| Python | bsd-2-clause | incuna/django-extensible-profiles | from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter += ['code', ]
... | from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter += ['code', ]
... | <commit_before>from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter... | from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter += ['code', ]
... | from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter += ['code', ]
... | <commit_before>from django.db import models
from django.utils.translation import ugettext_lazy as _
def register(cls, admin_cls):
cls.add_to_class('code', models.ForeignKey('profiles.Code',
verbose_name=_('Registration code'), null=True, blank=True))
if admin_cls:
admin_cls.list_display_filter... |
cd010c4a3fd6418f3ab6789da7fdcfb65ef37dc1 | setup.py | setup.py | import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long... | import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long... | Set cov-core dependency to 1.12 | Set cov-core dependency to 1.12
| Python | mit | wushaobo/pytest-cov,ionelmc/pytest-cover,opoplawski/pytest-cov,moreati/pytest-cov,schlamar/pytest-cov,pytest-dev/pytest-cov | import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long... | import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long... | <commit_before>import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
... | import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long... | import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long... | <commit_before>import setuptools
setuptools.setup(name='pytest-cov',
version='1.6',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
... |
7fa83928d0dae14fca556ef91a9c3c544aac24d6 | apps/package/templatetags/package_tags.py | apps/package/templatetags/package_tags.py | from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
weeks = []
comm... | from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
weeks = []
comm... | Update the commit_over_52 template tag to be more efficient. | Update the commit_over_52 template tag to be more efficient.
Replaced several list comprehensions with in-database operations and map calls for significantly improved performance.
| Python | mit | QLGu/djangopackages,cartwheelweb/packaginator,cartwheelweb/packaginator,nanuxbe/djangopackages,pydanny/djangopackages,QLGu/djangopackages,QLGu/djangopackages,pydanny/djangopackages,audreyr/opencomparison,nanuxbe/djangopackages,miketheman/opencomparison,benracine/opencomparison,miketheman/opencomparison,benracine/openco... | from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
weeks = []
comm... | from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
weeks = []
comm... | <commit_before>from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
week... | from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
weeks = []
comm... | from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
weeks = []
comm... | <commit_before>from datetime import timedelta
from datetime import datetime
from django import template
from github2.client import Github
from package.models import Package, Commit
register = template.Library()
github = Github()
@register.filter
def commits_over_52(package):
current = datetime.now()
week... |
6c8638c6e5801701d598509bb95036837ccd4a02 | setup.py | setup.py | import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='lazar.michael22@gm... | import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst', encoding='utf-8').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='... | Fix if encoding is not utf-8 | Fix if encoding is not utf-8
| Python | unlicense | michael-lazar/mailcap_fix | import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='lazar.michael22@gm... | import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst', encoding='utf-8').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='... | <commit_before>import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='laz... | import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst', encoding='utf-8').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='... | import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='lazar.michael22@gm... | <commit_before>import setuptools
setuptools.setup(
name='mailcap-fix',
version='0.1.1',
description='A patched mailcap module that conforms to RFC 1524',
long_description=open('README.rst').read(),
url='https://github.com/michael-lazar/mailcap_fix',
author='Michael Lazar',
author_email='laz... |
81ce1495687b55307bfbb4ba67cab1fe1dea1e9a | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
cmdclass = lambda *args: None
setup(
name='d3networkx',
version='0.1',
description='Visualize networkx graphs using D3.js in the IPython notebook.',
author='Jo... | # -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
import pip, importlib
pip.main(['install', 'ipython-pip']); cmdclass = importlib.import_module('ipythonpip').cmdclass
setup(
name='d3networkx',
version='0.1',
... | Fix bug where installer wasn't working on non ipython-pip machines. | Fix bug where installer wasn't working on non ipython-pip machines.
| Python | mit | jdfreder/ipython-d3networkx,exe0cdc/ipython-d3networkx,exe0cdc/ipython-d3networkx,joshainglis/ipython-d3networkx | # -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
cmdclass = lambda *args: None
setup(
name='d3networkx',
version='0.1',
description='Visualize networkx graphs using D3.js in the IPython notebook.',
author='Jo... | # -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
import pip, importlib
pip.main(['install', 'ipython-pip']); cmdclass = importlib.import_module('ipythonpip').cmdclass
setup(
name='d3networkx',
version='0.1',
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
cmdclass = lambda *args: None
setup(
name='d3networkx',
version='0.1',
description='Visualize networkx graphs using D3.js in the IPython notebook.',... | # -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
import pip, importlib
pip.main(['install', 'ipython-pip']); cmdclass = importlib.import_module('ipythonpip').cmdclass
setup(
name='d3networkx',
version='0.1',
... | # -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
cmdclass = lambda *args: None
setup(
name='d3networkx',
version='0.1',
description='Visualize networkx graphs using D3.js in the IPython notebook.',
author='Jo... | <commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
from setuptools import setup
try:
from ipythonpip import cmdclass
except:
cmdclass = lambda *args: None
setup(
name='d3networkx',
version='0.1',
description='Visualize networkx graphs using D3.js in the IPython notebook.',... |
d26e7264066d0ae475edf55b533fa44276775fac | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.co',
url='https://github.com/redcanaryco/cb-r... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.com',
url='https://github.com/redcanaryco/cb-... | Change my email. Very important. | Change my email. Very important.
Not actually important at all.
| Python | mit | redcanaryco/cb-response-surveyor | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.co',
url='https://github.com/redcanaryco/cb-r... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.com',
url='https://github.com/redcanaryco/cb-... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.co',
url='https://github.com/r... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.com',
url='https://github.com/redcanaryco/cb-... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.co',
url='https://github.com/redcanaryco/cb-r... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='cb-response-surveyor',
author='Keith McCammon',
author_email='keith@redcanary.co',
url='https://github.com/r... |
e90cc08b755b96ef892e4fb25d43f3b25d89fae8 | _tests/python_check_version.py | _tests/python_check_version.py |
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
|
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = list(
map(int, os.environ["EXPECTED_PYTHON_VERSION"].split(".")))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
| Fix python_version_check on python 3 | tests: Fix python_version_check on python 3
| Python | apache-2.0 | scikit-build/scikit-ci-addons,scikit-build/scikit-ci-addons |
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
tests: Fix python_versi... |
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = list(
map(int, os.environ["EXPECTED_PYTHON_VERSION"].split(".")))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
| <commit_before>
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
<commit_... |
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = list(
map(int, os.environ["EXPECTED_PYTHON_VERSION"].split(".")))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
|
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
tests: Fix python_versi... | <commit_before>
import os
import sys
current_version = list(sys.version_info[:3])
print("current_version: %s" % str(current_version))
expected_version = map(int, os.environ["EXPECTED_PYTHON_VERSION"].split("."))
print("expected_version: %s" % str(expected_version))
assert current_version == expected_version
<commit_... |
f3883a6536498fe0ce981a612a4ff1998e430fa8 | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-xpara',
lon... | from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-xpara',
lon... | Update PyPI status to alpha | Update PyPI status to alpha
| Python | mit | tonyseek/pytest-xpara | from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-xpara',
lon... | from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-xpara',
lon... | <commit_before>from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-... | from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-xpara',
lon... | from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-xpara',
lon... | <commit_before>from setuptools import setup, find_packages
with open('README.rst') as readme:
next(readme)
long_description = ''.join(readme).strip()
setup(
name='pytest-xpara',
version='0.0.0',
description='An extended parametrizing plugin of pytest.',
url='https://github.com/tonyseek/pytest-... |
fba24207cc48aee53e023992be67ced518dc3e9d | utils.py | utils.py | import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = '{}.jpg'.format(str(uuid.uuid4()... | import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = str(uuid.uuid4())
conn = bo... | Use uuid as file name | Use uuid as file name
| Python | mit | reneepadgham/diverseui,reneepadgham/diverseui,reneepadgham/diverseui | import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = '{}.jpg'.format(str(uuid.uuid4()... | import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = str(uuid.uuid4())
conn = bo... | <commit_before>import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = '{}.jpg'.format(s... | import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = str(uuid.uuid4())
conn = bo... | import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = '{}.jpg'.format(str(uuid.uuid4()... | <commit_before>import os
import boto
import boto.s3
from boto.s3.key import Key
import requests
import uuid
# http://stackoverflow.com/a/42493144
def upload_url_to_s3(image_url):
image_res = requests.get(image_url, stream=True)
image = image_res.raw
image_data = image.read()
fname = '{}.jpg'.format(s... |
7632acdf82a6aecc28341087195934ae97675e0e | bayesian_jobs/handlers/sync_to_graph.py | bayesian_jobs/handlers/sync_to_graph.py | import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:
re... | import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:
re... | Fix instance variable in graph sync job | Fix instance variable in graph sync job
| Python | apache-2.0 | fabric8-analytics/fabric8-analytics-jobs,fabric8-analytics/fabric8-analytics-jobs | import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:
re... | import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:
re... | <commit_before>import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:... | import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:
re... | import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:
re... | <commit_before>import datetime
from cucoslib.models import Analysis, Package, Version, Ecosystem
from cucoslib.workers import GraphImporterTask
from .base import BaseHandler
class SyncToGraph(BaseHandler):
""" Sync all finished analyses to Graph DB """
def execute(self):
start = 0
while True:... |
ca5d96b1253d4a2046b30086ad9ae11822a6fcf8 | doc/conf.py | doc/conf.py | import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU Knight Cancer In... | import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU Knight Cancer In... | Move clinical disclaimer to doc. | Move clinical disclaimer to doc.
| Python | bsd-2-clause | ohsu-qin/qirest,ohsu-qin/qiprofile-rest | import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU Knight Cancer In... | import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU Knight Cancer In... | <commit_before>import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU K... | import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU Knight Cancer In... | import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU Knight Cancer In... | <commit_before>import os
import sys
import qiprofile_rest
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']
autoclass_content = "both"
autodoc_default_flags= ['members', 'show-inheritance']
source_suffix = '.rst'
master_doc = 'index'
project = u'qiprofile-rest'
copyright = u'2014, OHSU K... |
d5f02b13db9b6d23e15bc07a985b8c67644ffb44 | pyclibrary/__init__.py | pyclibrary/__init__.py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------... | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------... | Add NullHandler to avoid logging complaining for nothing. | Add NullHandler to avoid logging complaining for nothing.
| Python | mit | MatthieuDartiailh/pyclibrary,mrh1997/pyclibrary,mrh1997/pyclibrary,MatthieuDartiailh/pyclibrary,mrh1997/pyclibrary,duguxy/pyclibrary,duguxy/pyclibrary,duguxy/pyclibrary | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------... | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------... | <commit_before># -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software... | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------... | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------... | <commit_before># -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software... |
b0c217acb04d377bdd0d37ce8fc61a88bd97ae77 | pyelevator/elevator.py | pyelevator/elevator.py | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | Update : RangeIter args name changed | Update : RangeIter args name changed
| Python | mit | oleiade/py-elevator | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | <commit_before>from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple... | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | <commit_before>from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple... |
71dca4da0aa7a0415cc7248f0f4ee33ab3aa550e | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_description = ''
se... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_description = ''
se... | Add use with python3 in the classifiers | Add use with python3 in the classifiers
| Python | mit | VingtCinq/python-resize-image,charlesthk/python-resize-image,charlesthk/python-resize-image,VingtCinq/python-resize-image | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_description = ''
se... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_description = ''
se... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_descri... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_description = ''
se... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_description = ''
se... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
README = os.path.join(os.path.dirname(__file__), 'README.rst')
# when running tests using tox, README.md is not found
try:
with open(README) as file:
long_description = file.read()
except Exception:
long_descri... |
8f87749e5c7373015290306677fe9651cc5e54c1 | ibmcnx/doc/DataSources.py | ibmcnx/doc/DataSources.py | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | Create documentation of DataSource Settings | 8: Create documentation of DataSource Settings
Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/8 | Python | apache-2.0 | stoeps13/ibmcnx2,stoeps13/ibmcnx2 | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | ######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Connections Appli... | <commit_before>######
# Check ExId (GUID) by Email through JDBC
#
# Author: Christoph Stoettner
# Mail: christoph.stoettner@stoeps.de
# Documentation: http://scripting101.stoeps.de
#
# Version: 2.0
# Date: 2014-06-04
#
# License: Apache 2.0
#
# Check ExId of a User in all Co... |
6a2ab522c07a274920144f93f26361843d61c868 | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '0.1.1'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpdesk management.... | from setuptools import setup, find_packages
import os
version = '0.1.2'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpdesk management.... | Increment version number for updated pypi package | Increment version number for updated pypi package
| Python | bsd-3-clause | fjcapdevila/django-helpdesk,vladyslav2/django-helpdesk,fjcapdevila/django-helpdesk,gjedeer/django-helpdesk-issue-164,comsnetwork/django-helpdesk,comsnetwork/django-helpdesk,harrisonfeng/django-helpdesk,comsnetwork/django-helpdesk,temnoregg/django-helpdesk,harrisonfeng/django-helpdesk,django-helpdesk/django-helpdesk,ros... | from setuptools import setup, find_packages
import os
version = '0.1.1'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpdesk management.... | from setuptools import setup, find_packages
import os
version = '0.1.2'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpdesk management.... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.1.1'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpd... | from setuptools import setup, find_packages
import os
version = '0.1.2'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpdesk management.... | from setuptools import setup, find_packages
import os
version = '0.1.1'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpdesk management.... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.1.1'
LONG_DESCRIPTION = """
===============
django-helpdesk
===============
This is a Django-powered helpdesk ticket tracker, designed to
plug into an existing Django website and provide you with
internal (or, perhaps, external) helpd... |
590de85fdb151e11079796c68f300d4fe7559995 | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | Increment version for mock test fix | Increment version for mock test fix | Python | bsd-3-clause | consbio/gis-metadata-parser | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... |
9b24bd3a71a8c5564c4f2c36c38872339d176aae | setup.py | setup.py | #!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundati... | #!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundati... | Add long description for PyPI upload | Add long description for PyPI upload
| Python | lgpl-2.1 | lsgunth/pyft232 | #!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundati... | #!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundati... | <commit_before>#!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free So... | #!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundati... | #!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundati... | <commit_before>#!/usr/bin/env python
#
# Author: Logan Gunthorpe <logang@deltatee.com>
# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free So... |
84daa137c8526a508fa1f2dcf8968137d75e8a0b | setup.py | setup.py | from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for t... | from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for t... | Add asn1crypto as a dependency | Add asn1crypto as a dependency
| Python | mit | wbond/oscrypto | from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for t... | from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for t... | <commit_before>from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_descript... | from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for t... | from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for t... | <commit_before>from setuptools import setup, find_packages
import oscrypto
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_descript... |
9c12bcb4a5b5b2fee28476e047855dca50b3867c | mwbase/attr_dict.py | mwbase/attr_dict.py | from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
def __getattr__(self, attr):
if attr not in self:
raise AttributeError(attr)
else:
return self[attr]
def _... | from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(OrderedDict, self).__init__(*args, **kwargs)
def __getattribute__(self, attr):
if attr in self:
return self[attr]
else:
return super(OrderedDict, self)._... | Switch use of getattr to getattribute. | Switch use of getattr to getattribute.
| Python | mit | mediawiki-utilities/python-mwbase | from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
def __getattr__(self, attr):
if attr not in self:
raise AttributeError(attr)
else:
return self[attr]
def _... | from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(OrderedDict, self).__init__(*args, **kwargs)
def __getattribute__(self, attr):
if attr in self:
return self[attr]
else:
return super(OrderedDict, self)._... | <commit_before>from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
def __getattr__(self, attr):
if attr not in self:
raise AttributeError(attr)
else:
return self[a... | from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(OrderedDict, self).__init__(*args, **kwargs)
def __getattribute__(self, attr):
if attr in self:
return self[attr]
else:
return super(OrderedDict, self)._... | from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
def __getattr__(self, attr):
if attr not in self:
raise AttributeError(attr)
else:
return self[attr]
def _... | <commit_before>from collections import OrderedDict
class AttrDict(OrderedDict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
def __getattr__(self, attr):
if attr not in self:
raise AttributeError(attr)
else:
return self[a... |
5ecb6e7c56aa12019c4ca2c47bdd87c49981ad78 | setup.py | setup.py | from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
description='A D... | from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
description='A D... | Add the Language classifiers for 3.x and 2.x | Add the Language classifiers for 3.x and 2.x
| Python | bsd-3-clause | tarak/django-password-policies,tarak/django-password-policies | from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
description='A D... | from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
description='A D... | <commit_before>from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
d... | from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
description='A D... | from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
description='A D... | <commit_before>from setuptools import setup, find_packages
install_requires=['django>=1.5', 'django-easysettings', 'pytz']
try:
import importlib
except ImportError:
install_requires.append('importlib')
setup(
name='django-password-policies',
version=__import__('password_policies').__version__,
d... |
012e5d7d80b20220a7a41f7f3488ebe468d6b661 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.2.0'
setup(
name='cmsplugin-plaintext',
version=version,
description='Adds a plaintext plugin for django-cms.',
author='Xenofox, LLC',
author_email='info@xenofox.com',
url='http://bitbucket.org/xenofox/cmsplugin-plaintext/',
packages... | from setuptools import setup, find_packages
version = '0.2.1'
setup(
name='cmsplugin-plaintext-djangocms3',
version=version,
description='Adds a plaintext plugin for django-cms. Forked from https://bitbucket.org/xenofox/cmsplugin-plaintext to add django-cms3 support',
author='Changer',
author_emai... | Change package name for pypi | Change package name for pypi
| Python | bsd-3-clause | russmo/cmsplugin-plaintext,russmo/cmsplugin-plaintext | from setuptools import setup, find_packages
version = '0.2.0'
setup(
name='cmsplugin-plaintext',
version=version,
description='Adds a plaintext plugin for django-cms.',
author='Xenofox, LLC',
author_email='info@xenofox.com',
url='http://bitbucket.org/xenofox/cmsplugin-plaintext/',
packages... | from setuptools import setup, find_packages
version = '0.2.1'
setup(
name='cmsplugin-plaintext-djangocms3',
version=version,
description='Adds a plaintext plugin for django-cms. Forked from https://bitbucket.org/xenofox/cmsplugin-plaintext to add django-cms3 support',
author='Changer',
author_emai... | <commit_before>from setuptools import setup, find_packages
version = '0.2.0'
setup(
name='cmsplugin-plaintext',
version=version,
description='Adds a plaintext plugin for django-cms.',
author='Xenofox, LLC',
author_email='info@xenofox.com',
url='http://bitbucket.org/xenofox/cmsplugin-plaintext/... | from setuptools import setup, find_packages
version = '0.2.1'
setup(
name='cmsplugin-plaintext-djangocms3',
version=version,
description='Adds a plaintext plugin for django-cms. Forked from https://bitbucket.org/xenofox/cmsplugin-plaintext to add django-cms3 support',
author='Changer',
author_emai... | from setuptools import setup, find_packages
version = '0.2.0'
setup(
name='cmsplugin-plaintext',
version=version,
description='Adds a plaintext plugin for django-cms.',
author='Xenofox, LLC',
author_email='info@xenofox.com',
url='http://bitbucket.org/xenofox/cmsplugin-plaintext/',
packages... | <commit_before>from setuptools import setup, find_packages
version = '0.2.0'
setup(
name='cmsplugin-plaintext',
version=version,
description='Adds a plaintext plugin for django-cms.',
author='Xenofox, LLC',
author_email='info@xenofox.com',
url='http://bitbucket.org/xenofox/cmsplugin-plaintext/... |
e20051360f9dbf6a879be7acdd9159b8f068a388 | setup.py | setup.py | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | Add additional trove classifiers for supported Pythons | Add additional trove classifiers for supported Pythons
| Python | mit | pyparsing/pyparsing,pyparsing/pyparsing | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | <commit_before>#!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core im... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | #!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
i... | <commit_before>#!/usr/bin/env python
"""Setup script for the pyparsing module distribution."""
# Setuptools depends on pyparsing (via packaging) as of version 34, so allow
# installing without it to avoid bootstrap problems.
try:
from setuptools import setup
except ImportError:
from distutils.core im... |
89898941b9024f2b2c74b187d9d571a0fadb9926 | setup.py | setup.py | # -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes to be used wit... | # -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes to be used wit... | Improve the metadata describing the package | Improve the metadata describing the package
| Python | mit | lspestrip/strip_recipes | # -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes to be used wit... | # -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes to be used wit... | <commit_before># -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes... | # -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes to be used wit... | # -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes to be used wit... | <commit_before># -*- encoding: utf-8 -*-
'''A setuptools script to install strip_recipes
'''
from setuptools import setup
setup(
name='strip_recipes',
version='1.0.0',
description='Create recipes for the LSPE/Strip tester software',
long_description='''
Python library to easily create complex recipes... |
bcc1048a11345545013c6ea93b92fc52e639cd98 | tests/unit/models/reddit/test_widgets.py | tests/unit/models/reddit/test_widgets.py | from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from ... import UnitTest
class TestWidgets(UnitTest):
def test_subredditwidgets_mod(self):
sw = SubredditWidgets(self.reddit.subreddit('fake_subreddit'))
assert isinstance(sw.... | from json import dumps
from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from praw.models.reddit.widgets import WidgetEncoder
from praw.models.base import PRAWBase
from ... import UnitTest
class TestWidgetEncoder(UnitTest):
def test_bad_enc... | Test WidgetEncoder to get coverage to 100% | Test WidgetEncoder to get coverage to 100%
| Python | bsd-2-clause | leviroth/praw,gschizas/praw,gschizas/praw,praw-dev/praw,13steinj/praw,praw-dev/praw,leviroth/praw,13steinj/praw | from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from ... import UnitTest
class TestWidgets(UnitTest):
def test_subredditwidgets_mod(self):
sw = SubredditWidgets(self.reddit.subreddit('fake_subreddit'))
assert isinstance(sw.... | from json import dumps
from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from praw.models.reddit.widgets import WidgetEncoder
from praw.models.base import PRAWBase
from ... import UnitTest
class TestWidgetEncoder(UnitTest):
def test_bad_enc... | <commit_before>from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from ... import UnitTest
class TestWidgets(UnitTest):
def test_subredditwidgets_mod(self):
sw = SubredditWidgets(self.reddit.subreddit('fake_subreddit'))
assert... | from json import dumps
from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from praw.models.reddit.widgets import WidgetEncoder
from praw.models.base import PRAWBase
from ... import UnitTest
class TestWidgetEncoder(UnitTest):
def test_bad_enc... | from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from ... import UnitTest
class TestWidgets(UnitTest):
def test_subredditwidgets_mod(self):
sw = SubredditWidgets(self.reddit.subreddit('fake_subreddit'))
assert isinstance(sw.... | <commit_before>from praw.models import (SubredditWidgets, SubredditWidgetsModeration,
Widget, WidgetModeration)
from ... import UnitTest
class TestWidgets(UnitTest):
def test_subredditwidgets_mod(self):
sw = SubredditWidgets(self.reddit.subreddit('fake_subreddit'))
assert... |
45381a1ce6e271cc06ce130cb35a93f14eceba90 | troposphere/utils.py | troposphere/utils.py | import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(stackname, next... | import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(stackname, next... | Add "include_initial" kwarg to support tailing stack updates | Add "include_initial" kwarg to support tailing stack updates
`get_events` will return all events that have occurred for a stack. This
is useless if we're tailing an update to a stack.
| Python | bsd-2-clause | mhahn/troposphere | import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(stackname, next... | import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(stackname, next... | <commit_before>import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(... | import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(stackname, next... | import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(stackname, next... | <commit_before>import time
def _tail_print(e):
print("%s %s %s" % (e.resource_status, e.resource_type, e.event_id))
def get_events(conn, stackname):
"""Get the events in batches and return in chronological order"""
next = None
event_list = []
while 1:
events = conn.describe_stack_events(... |
783af65a5e417a1828105d390f7096066929a4b7 | ipywidgets/widgets/widget_core.py | ipywidgets/widgets/widget_core.py | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_module_version = ... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_module_version = ... | Revert the versioning back until the versioning discussion is settled. | Revert the versioning back until the versioning discussion is settled. | Python | bsd-3-clause | ipython/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_module_version = ... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_module_version = ... | <commit_before># Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_mo... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_module_version = ... | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_module_version = ... | <commit_before># Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Base widget class for widgets provided in Core"""
from .widget import Widget
from .._version import __jupyter_widget_version__
from traitlets import Unicode
class CoreWidget(Widget):
_model_mo... |
d2ca395f44160272ba3cbe6d68a9c07c0e1cfa3d | flask_boilerplate/templates/+app_name+/__init__.py | flask_boilerplate/templates/+app_name+/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
app = Flask(__name__)
app.config.from_object(settings[local_conf['config_key']])
if app.debug:
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
return _create_app(settings[local_conf['config_key']])
def _create_app(setting):
app = Flask(__name_... | Add internal function for test to set settings flexibly. | Add internal function for test to set settings flexibly.
| Python | mit | FGtatsuro/flask-boilerplate,FGtatsuro/flask-boilerplate,FGtatsuro/flask-boilerplate | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
app = Flask(__name__)
app.config.from_object(settings[local_conf['config_key']])
if app.debug:
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
return _create_app(settings[local_conf['config_key']])
def _create_app(setting):
app = Flask(__name_... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
app = Flask(__name__)
app.config.from_object(settings[local_conf['config_key']])
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
return _create_app(settings[local_conf['config_key']])
def _create_app(setting):
app = Flask(__name_... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
app = Flask(__name__)
app.config.from_object(settings[local_conf['config_key']])
if app.debug:
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from .config import settings
def create_app(global_config, **local_conf):
app = Flask(__name__)
app.config.from_object(settings[local_conf['config_key']])
... |
1a2e7fd402c9930dae75676b9aadaf5620ac87b9 | setup.py | setup.py | from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWebSocket",
... | from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWebSocket",
... | Remove the unused unicode module. | Remove the unused unicode module.
| Python | agpl-3.0 | chizu/hashi,chizu/hashi | from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWebSocket",
... | from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWebSocket",
... | <commit_before>from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWe... | from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWebSocket",
... | from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWebSocket",
... | <commit_before>from setuptools import setup
setup(
name="hashi",
packages=["hashi"],
version="0.0",
description="Web centric IRC client.",
author="Nell Hardcastle",
author_email="chizu@spicious.com",
install_requires=["pyzmq>=2.1.7",
"txzmq",
"txWe... |
9caec6eb24e43c3b3d403f4e7a49f3614ccf47c2 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | USe git Python Social Auth to get Fedora nicknames | USe git Python Social Auth to get Fedora nicknames
| Python | agpl-3.0 | devassistant/dapi,devassistant/dapi,devassistant/dapi | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
... |
f0ce157112428701eb04e084cf437097c57c68da | setup.py | setup.py | from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Christopher Wells... | from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Christopher Wells... | Change package_data to have LICENSE in a list | Change package_data to have LICENSE in a list
This is required by setuptools and as of a recent version fails if the
value(s) are not provided as a list or tuple of strings.
See: https://github.com/pypa/setuptools/commit/8f848bd777278fc8dcb42dc45751cd8b95ec2a02
| Python | mit | ExcaliburZero/blender-astro-visualization | from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Christopher Wells... | from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Christopher Wells... | <commit_before>from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Ch... | from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Christopher Wells... | from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Christopher Wells... | <commit_before>from setuptools import setup
setup( \
name='blendplot',
version='0.1.0',
description='A program for plotting 3D scatter plots for use in Blender',
long_description=open('README.md').read(),
url='https://github.com/ExcaliburZero/blender-astro-visualization',
author='Ch... |
e78099a5a18d7ae0f264a73c10fdf1422cc1d482 | setup.py | setup.py | from setuptools import setup
setup(
name="arxiv",
version="0.2.2",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API: http://arxiv.o... | from setuptools import setup
setup(
name="arxiv",
version="0.2.3",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API: http://arxiv.o... | Increment to tag 0.2.3 for release | Increment to tag 0.2.3 for release
| Python | mit | lukasschwab/arxiv.py | from setuptools import setup
setup(
name="arxiv",
version="0.2.2",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API: http://arxiv.o... | from setuptools import setup
setup(
name="arxiv",
version="0.2.3",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API: http://arxiv.o... | <commit_before>from setuptools import setup
setup(
name="arxiv",
version="0.2.2",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API:... | from setuptools import setup
setup(
name="arxiv",
version="0.2.3",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API: http://arxiv.o... | from setuptools import setup
setup(
name="arxiv",
version="0.2.2",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API: http://arxiv.o... | <commit_before>from setuptools import setup
setup(
name="arxiv",
version="0.2.2",
packages=["arxiv"],
# dependencies
install_requires=[
'feedparser',
'requests',
],
# metadata for upload to PyPI
author="Lukas Schwab",
author_email="lukas.schwab@gmail.com",
description="Python wrapper for the arXiv API:... |
37179d21380ec993ea858cec1e030bf7ee6a7b75 | setup.py | setup.py | #!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib'],
# Opti... | #!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib'],
# Opti... | Add pandas as an optional dependency | Add pandas as an optional dependency
| Python | mit | mit-crpg/openmc,bhermanmit/openmc,amandalund/openmc,amandalund/openmc,walshjon/openmc,samuelshaner/openmc,bhermanmit/openmc,wbinventor/openmc,shikhar413/openmc,kellyrowland/openmc,walshjon/openmc,walshjon/openmc,wbinventor/openmc,shikhar413/openmc,paulromano/openmc,johnnyliu27/openmc,wbinventor/openmc,johnnyliu27/openm... | #!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib'],
# Opti... | #!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib'],
# Opti... | <commit_before>#!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib']... | #!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib'],
# Opti... | #!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib'],
# Opti... | <commit_before>#!/usr/bin/env python
import glob
import os
from setuptools import setup, find_packages
setup(name='openmc',
version='0.6.2',
packages=find_packages(),
scripts=glob.glob('scripts/openmc-*'),
# Required dependencies
install_requires=['numpy', 'scipy', 'h5py', 'matplotlib']... |
e72107f53e4519f16d556b15405b7f7223e0bfae | setup.py | setup.py | import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/GameEn... | import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/GameEn... | Add docopt as a dependency. | Add docopt as a dependency.
| Python | mit | kxgames/kxg | import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/GameEn... | import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/GameEn... | <commit_before>import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com... | import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/GameEn... | import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/GameEn... | <commit_before>import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='kxg',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com... |
7c424d7eb26712e84be67b2fb5921810f8f042a6 | kboard/functional_test/test_registration_form.py | kboard/functional_test/test_registration_form.py | from .base import FunctionalTest
import time
class RegistrationFormTest(FunctionalTest):
def test_two_passwords_are_correct(self):
# 혜선이는 회원가입을 하고싶어한다.
self.browser.get(self.live_server_url + '/accounts/register/')
# 가입에 필요한 정보를 작성한다.
usernamebox = self.browser.find_element_by_id("... | Add functional test for both password are the same | Add functional test for both password are the same
| Python | mit | cjh5414/kboard,kboard/kboard,hyesun03/k-board,hyesun03/k-board,kboard/kboard,cjh5414/kboard,hyesun03/k-board,guswnsxodlf/k-board,kboard/kboard,guswnsxodlf/k-board,cjh5414/kboard,guswnsxodlf/k-board,darjeeling/k-board | Add functional test for both password are the same | from .base import FunctionalTest
import time
class RegistrationFormTest(FunctionalTest):
def test_two_passwords_are_correct(self):
# 혜선이는 회원가입을 하고싶어한다.
self.browser.get(self.live_server_url + '/accounts/register/')
# 가입에 필요한 정보를 작성한다.
usernamebox = self.browser.find_element_by_id("... | <commit_before><commit_msg>Add functional test for both password are the same<commit_after> | from .base import FunctionalTest
import time
class RegistrationFormTest(FunctionalTest):
def test_two_passwords_are_correct(self):
# 혜선이는 회원가입을 하고싶어한다.
self.browser.get(self.live_server_url + '/accounts/register/')
# 가입에 필요한 정보를 작성한다.
usernamebox = self.browser.find_element_by_id("... | Add functional test for both password are the samefrom .base import FunctionalTest
import time
class RegistrationFormTest(FunctionalTest):
def test_two_passwords_are_correct(self):
# 혜선이는 회원가입을 하고싶어한다.
self.browser.get(self.live_server_url + '/accounts/register/')
# 가입에 필요한 정보를 작성한다.
... | <commit_before><commit_msg>Add functional test for both password are the same<commit_after>from .base import FunctionalTest
import time
class RegistrationFormTest(FunctionalTest):
def test_two_passwords_are_correct(self):
# 혜선이는 회원가입을 하고싶어한다.
self.browser.get(self.live_server_url + '/accounts/regis... | |
8dc3eb814bd486951a4efe53d27999da2bd940e2 | setup.py | setup.py | from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
LONG_DESC = open("README.rst").read()
# defines __version__
exec(open("color... | from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
import codecs
LONG_DESC = codecs.open("README.rst", encoding="utf-8").read()
... | Use codecs.open for py2/py3-compatible utf8 reading | Use codecs.open for py2/py3-compatible utf8 reading
Fixes gh-6
| Python | mit | njsmith/colorspacious | from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
LONG_DESC = open("README.rst").read()
# defines __version__
exec(open("color... | from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
import codecs
LONG_DESC = codecs.open("README.rst", encoding="utf-8").read()
... | <commit_before>from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
LONG_DESC = open("README.rst").read()
# defines __version__
e... | from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
import codecs
LONG_DESC = codecs.open("README.rst", encoding="utf-8").read()
... | from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
LONG_DESC = open("README.rst").read()
# defines __version__
exec(open("color... | <commit_before>from setuptools import setup, find_packages
import sys
import os.path
import numpy as np
# Must be one line or PyPI will cut it off
DESC = ("A powerful, accurate, and easy-to-use Python library for "
"doing colorspace conversions")
LONG_DESC = open("README.rst").read()
# defines __version__
e... |
b59efc07aed61880f29da88c095a2d9c13a145e4 | setup.py | setup.py | from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
def get_long_d... | from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
def get_long_d... | Add comments for Windows mingw compilation | Add comments for Windows mingw compilation
| Python | mit | xoolive/quadtree,xoolive/quadtree | from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
def get_long_d... | from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
def get_long_d... | <commit_before>from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
... | from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
def get_long_d... | from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
def get_long_d... | <commit_before>from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("smartquadtree",
["smartquadtree.pyx", "quadtree.cpp", "neighbour.cpp"],
extra_compile_args=["-std=c++11"],
language="c++")
]
... |
f4c30dbd717a6c7a04a645a2721a1c34936739a1 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='icecake',
version='0.1.0',
py_modules=['icecake'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
license="MIT",
... | from setuptools import setup, find_packages
setup(
name='icecake',
version='0.2.0',
py_modules=['icecake', 'templates'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
li... | Add templates, bump version number | Add templates, bump version number
| Python | mit | cbednarski/icecake,cbednarski/icecake | from setuptools import setup, find_packages
setup(
name='icecake',
version='0.1.0',
py_modules=['icecake'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
license="MIT",
... | from setuptools import setup, find_packages
setup(
name='icecake',
version='0.2.0',
py_modules=['icecake', 'templates'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
li... | <commit_before>from setuptools import setup, find_packages
setup(
name='icecake',
version='0.1.0',
py_modules=['icecake'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
... | from setuptools import setup, find_packages
setup(
name='icecake',
version='0.2.0',
py_modules=['icecake', 'templates'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
li... | from setuptools import setup, find_packages
setup(
name='icecake',
version='0.1.0',
py_modules=['icecake'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
license="MIT",
... | <commit_before>from setuptools import setup, find_packages
setup(
name='icecake',
version='0.1.0',
py_modules=['icecake'],
url="https://github.com/cbednarski/icecake",
author="Chris Bednarski",
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
... |
b74a1065928514846deb7211541007d4fc45593d | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
s... | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
s... | Replace PFI with PFN in copyright notice. | Replace PFI with PFN in copyright notice.
| Python | mit | hirokiky/jubatus-python-client,jubatus/jubatus-python-client,jubatus/jubatus-python-client,hirokiky/jubatus-python-client | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
s... | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
s... | <commit_before>try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), n... | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
s... | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
s... | <commit_before>try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
import unittest
import os.path
import platform
sys.path.append('jubatus')
sys.path.append('test')
def read(name):
return open(os.path.join(os.path.dirname(__file__), n... |
9571d0cf946163c8ca9c01aae3334feebf0a4276 | setup.py | setup.py | #!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://github.com/mineo/a... | #!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://github.com/mineo/a... | Use HTTPS for GitHub URLs | Use HTTPS for GitHub URLs
| Python | mit | mineo/abzer,mineo/abzer | #!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://github.com/mineo/a... | #!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://github.com/mineo/a... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://git... | #!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://github.com/mineo/a... | #!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://github.com/mineo/a... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
from codecs import open
from setuptools import setup
setup(name="abzer",
author="Wieland Hoffmann",
author_email="themineo@gmail.com",
packages=["abzer"],
package_dir={"abzer": "abzer"},
download_url=["https://git... |
28b261e1f9af635fd2355085303d67991856584f | mathdeck/settings.py | mathdeck/settings.py | # -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2015 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can pass conf_dir va... | # -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2014-2016 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can pass conf_d... | Fix problem file importing bug | Fix problem file importing bug
| Python | apache-2.0 | patrickspencer/mathdeck,patrickspencer/mathdeck | # -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2015 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can pass conf_dir va... | # -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2014-2016 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can pass conf_d... | <commit_before># -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2015 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can p... | # -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2014-2016 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can pass conf_d... | # -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2015 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can pass conf_dir va... | <commit_before># -*- coding: utf-8 -*-
"""
mathdeck.settings
~~~~~~~~~~~~~~~~~
This module accesses the settings file located at
/etc/mathdeck/mathdeckconf.json
:copyright: (c) 2015 by Patrick Spencer.
:license: Apache 2.0, see ../LICENSE for more details.
"""
import json
import os
# Make this a class so we can p... |
dd3ea448dee1cc77069244d9d1151e8ee07147bc | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pac... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pac... | Add pycrypto to optional module | Add pycrypto to optional module
It's not used by core code at the moment
| Python | bsd-3-clause | elatomo/flask-restful,frol/flask-restful,santtu/flask-restful,FashtimeDotCom/flask-restful,ankravch/flask-restful,expobrain/flask-restful,codephillip/flask-restful,marrybird/flask-restful,mackjoner/flask-restful,sergeyromanov/flask-restful,ihiji/flask-restful,liangmingjie/flask-restful,samarthmshah/flask-restful,Khan/f... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pac... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pac... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
pa... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pac... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pac... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.1',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
pa... |
c07013887a105a3adf0a6f1aa9d09357450cba46 | tools/fontbakery-build-metadata.py | tools/fontbakery-build-metadata.py | import sys
from bakery_cli.scripts import genmetadata
def main(argv=None):
if argv is None:
argv = sys.argv
if len(argv) != 2:
genmetadata.usage()
return 1
genmetadata.run(argv[1])
return 0
if __name__ == '__main__':
sys.exit(main())
| #!/usr/bin/env python
# coding: utf-8
# Copyright 2013 The Font Bakery Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LIC... | Add license and shebang to build-metadata.py | Add license and shebang to build-metadata.py
| Python | apache-2.0 | googlefonts/fontbakery,googlefonts/fontbakery,graphicore/fontbakery,moyogo/fontbakery,graphicore/fontbakery,graphicore/fontbakery,davelab6/fontbakery,moyogo/fontbakery,moyogo/fontbakery,googlefonts/fontbakery,jessamynsmith/fontbakery | import sys
from bakery_cli.scripts import genmetadata
def main(argv=None):
if argv is None:
argv = sys.argv
if len(argv) != 2:
genmetadata.usage()
return 1
genmetadata.run(argv[1])
return 0
if __name__ == '__main__':
sys.exit(main())
Add license and shebang to build-metad... | #!/usr/bin/env python
# coding: utf-8
# Copyright 2013 The Font Bakery Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LIC... | <commit_before>import sys
from bakery_cli.scripts import genmetadata
def main(argv=None):
if argv is None:
argv = sys.argv
if len(argv) != 2:
genmetadata.usage()
return 1
genmetadata.run(argv[1])
return 0
if __name__ == '__main__':
sys.exit(main())
<commit_msg>Add license... | #!/usr/bin/env python
# coding: utf-8
# Copyright 2013 The Font Bakery Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LIC... | import sys
from bakery_cli.scripts import genmetadata
def main(argv=None):
if argv is None:
argv = sys.argv
if len(argv) != 2:
genmetadata.usage()
return 1
genmetadata.run(argv[1])
return 0
if __name__ == '__main__':
sys.exit(main())
Add license and shebang to build-metad... | <commit_before>import sys
from bakery_cli.scripts import genmetadata
def main(argv=None):
if argv is None:
argv = sys.argv
if len(argv) != 2:
genmetadata.usage()
return 1
genmetadata.run(argv[1])
return 0
if __name__ == '__main__':
sys.exit(main())
<commit_msg>Add license... |
268e10a066655f88da5b1da82ac2cfd9b6e7e03f | setup.py | setup.py | """
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-autodoc',
license='MIT',
author='Arnaud Coomans',
author_e... | """
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
def readme():
with open('README') as f:
return f.read()
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-a... | Include README as long description | Include README as long description
| Python | mit | lukeyeager/flask-autodoc,jwg4/flask-autodoc,acoomans/flask-autodoc,BallisticBuddha/flask-autodoc,jwg4/flask-autodoc,lukeyeager/flask-autodoc,acoomans/flask-autodoc | """
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-autodoc',
license='MIT',
author='Arnaud Coomans',
author_e... | """
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
def readme():
with open('README') as f:
return f.read()
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-a... | <commit_before>"""
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-autodoc',
license='MIT',
author='Arnaud Coomans... | """
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
def readme():
with open('README') as f:
return f.read()
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-a... | """
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-autodoc',
license='MIT',
author='Arnaud Coomans',
author_e... | <commit_before>"""
Flask-Autodoc
-------------
Flask autodoc automatically creates an online documentation for your flask application.
"""
from setuptools import setup
setup(
name='Flask-Autodoc',
version='0.1',
url='http://github.com/acoomans/flask-autodoc',
license='MIT',
author='Arnaud Coomans... |
0fbbfcbe69eba31709862bf9372a3a77fcc3dde9 | setup.py | setup.py | from setuptools import setup, find_packages
import os.path
import re
package_name = 'sqlalchemy_dict'
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.compile(r".*__version__ = '(.*?)'", re.S).mat... | from setuptools import setup, find_packages
import os.path
import re
import sys
package_name = 'sqlalchemy_dict'
py_version = sys.version_info[:2]
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.... | Add typing module as dependencies for python versions older than 3.5 | Add typing module as dependencies
for python versions older than 3.5
| Python | mit | meyt/sqlalchemy-dict | from setuptools import setup, find_packages
import os.path
import re
package_name = 'sqlalchemy_dict'
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.compile(r".*__version__ = '(.*?)'", re.S).mat... | from setuptools import setup, find_packages
import os.path
import re
import sys
package_name = 'sqlalchemy_dict'
py_version = sys.version_info[:2]
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.... | <commit_before>from setuptools import setup, find_packages
import os.path
import re
package_name = 'sqlalchemy_dict'
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.compile(r".*__version__ = '(.*... | from setuptools import setup, find_packages
import os.path
import re
import sys
package_name = 'sqlalchemy_dict'
py_version = sys.version_info[:2]
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.... | from setuptools import setup, find_packages
import os.path
import re
package_name = 'sqlalchemy_dict'
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.compile(r".*__version__ = '(.*?)'", re.S).mat... | <commit_before>from setuptools import setup, find_packages
import os.path
import re
package_name = 'sqlalchemy_dict'
# reading package's version (same way sqlalchemy does)
with open(os.path.join(os.path.dirname(__file__), package_name, '__init__.py')) as v_file:
package_version = re.compile(r".*__version__ = '(.*... |
27e67076d4a2cfe68ab3a9113bb37344b35b3c90 | scipy_base/__init__.py | scipy_base/__init__.py |
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
mat = ppimport_a... |
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
mat = ppimport_a... | Fix for matrixmultiply != dot on Numeric < 23.4 | Fix for matrixmultiply != dot on Numeric < 23.4
git-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@857 94b884b6-d6fd-0310-90d3-974f1d3f35e1
| Python | bsd-3-clause | illume/numpy3k,chadnetzer/numpy-gaurdro,jasonmccampbell/numpy-refactor-sprint,efiring/numpy-work,Ademan/NumPy-GSoC,illume/numpy3k,Ademan/NumPy-GSoC,teoliphant/numpy-refactor,teoliphant/numpy-refactor,illume/numpy3k,Ademan/NumPy-GSoC,jasonmccampbell/numpy-refactor-sprint,Ademan/NumPy-GSoC,chadnetzer/numpy-gaurdro,chadne... |
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
mat = ppimport_a... |
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
mat = ppimport_a... | <commit_before>
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
m... |
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
mat = ppimport_a... |
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
mat = ppimport_a... | <commit_before>
from info_scipy_base import __doc__
from scipy_base_version import scipy_base_version as __version__
from ppimport import ppimport, ppimport_attr
# The following statement is equivalent to
#
# from Matrix import Matrix as mat
#
# but avoids expensive LinearAlgebra import when
# Matrix is not used.
m... |
48e14e2f5cb6d7be0e9ec2f39858002b41911245 | setup.py | setup.py | #! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
... | #! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
... | Add console scripts for both examples | Add console scripts for both examples
Now they are callable from console via
$ demandlib_power_example
and
$ demandlib_heat_example
when installed bia pip3.
| Python | mit | oemof/demandlib | #! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
... | #! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
... | <commit_before>#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name=... | #! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
... | #! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
... | <commit_before>#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name=... |
c889ffd1f86a445f2e5ba157fc81cbb64e92dc12 | voctocore/lib/sources/videoloopsource.py | voctocore/lib/sources/videoloopsource.py | #!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
def __init__(self, name):
super().__init__('VideoLoopSource', name, False, True)
self.location = Config.getLocati... | #!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
timer_resolution = 0.5
def __init__(self, name, has_audio=True, has_video=True,
force_num_streams=None):
... | Modify videoloop to allow for audio | Modify videoloop to allow for audio
| Python | mit | voc/voctomix,voc/voctomix | #!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
def __init__(self, name):
super().__init__('VideoLoopSource', name, False, True)
self.location = Config.getLocati... | #!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
timer_resolution = 0.5
def __init__(self, name, has_audio=True, has_video=True,
force_num_streams=None):
... | <commit_before>#!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
def __init__(self, name):
super().__init__('VideoLoopSource', name, False, True)
self.location = C... | #!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
timer_resolution = 0.5
def __init__(self, name, has_audio=True, has_video=True,
force_num_streams=None):
... | #!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
def __init__(self, name):
super().__init__('VideoLoopSource', name, False, True)
self.location = Config.getLocati... | <commit_before>#!/usr/bin/env python3
import logging
import re
from gi.repository import Gst
from lib.config import Config
from lib.sources.avsource import AVSource
class VideoLoopSource(AVSource):
def __init__(self, name):
super().__init__('VideoLoopSource', name, False, True)
self.location = C... |
acab1af0e9bebeea011de1be472f298ddedd862b | src/pretix/control/views/global_settings.py | src/pretix/control/views/global_settings.py | from django.shortcuts import reverse
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
class GlobalSettingsView(AdministratorPermissionRequiredMixin, FormView):
template_name = ... | from django.contrib import messages
from django.shortcuts import reverse
from django.utils.translation import ugettext_lazy as _
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
cl... | Add feedback to global settings | Add feedback to global settings
| Python | apache-2.0 | Flamacue/pretix,Flamacue/pretix,Flamacue/pretix,Flamacue/pretix | from django.shortcuts import reverse
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
class GlobalSettingsView(AdministratorPermissionRequiredMixin, FormView):
template_name = ... | from django.contrib import messages
from django.shortcuts import reverse
from django.utils.translation import ugettext_lazy as _
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
cl... | <commit_before>from django.shortcuts import reverse
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
class GlobalSettingsView(AdministratorPermissionRequiredMixin, FormView):
t... | from django.contrib import messages
from django.shortcuts import reverse
from django.utils.translation import ugettext_lazy as _
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
cl... | from django.shortcuts import reverse
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
class GlobalSettingsView(AdministratorPermissionRequiredMixin, FormView):
template_name = ... | <commit_before>from django.shortcuts import reverse
from django.views.generic import FormView
from pretix.control.forms.global_settings import GlobalSettingsForm
from pretix.control.permissions import AdministratorPermissionRequiredMixin
class GlobalSettingsView(AdministratorPermissionRequiredMixin, FormView):
t... |
7da7789a6508a60d0ad7662ac69bcee9c478c239 | numpy/typing/tests/data/fail/array_constructors.py | numpy/typing/tests/data/fail/array_constructors.py | import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Too few arguments
np.ones("test") # E: incompatible type
np.ones() # E: T... | import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Missing positional argument
np.ones("test") # E: incompatible type
np.ones... | Fix two failing typing tests | TST: Fix two failing typing tests
Mypy 0.800 changed one of its error messages;
the `fail` tests have now been altered to reflect this change
| Python | bsd-3-clause | seberg/numpy,jakirkham/numpy,endolith/numpy,pdebuyl/numpy,seberg/numpy,seberg/numpy,mhvk/numpy,pbrod/numpy,pbrod/numpy,pbrod/numpy,endolith/numpy,pbrod/numpy,seberg/numpy,madphysicist/numpy,pbrod/numpy,mattip/numpy,jakirkham/numpy,numpy/numpy,madphysicist/numpy,rgommers/numpy,mhvk/numpy,mhvk/numpy,rgommers/numpy,anntze... | import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Too few arguments
np.ones("test") # E: incompatible type
np.ones() # E: T... | import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Missing positional argument
np.ones("test") # E: incompatible type
np.ones... | <commit_before>import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Too few arguments
np.ones("test") # E: incompatible type
np... | import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Missing positional argument
np.ones("test") # E: incompatible type
np.ones... | import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Too few arguments
np.ones("test") # E: incompatible type
np.ones() # E: T... | <commit_before>import numpy as np
a: np.ndarray
generator = (i for i in range(10))
np.require(a, requirements=1) # E: No overload variant
np.require(a, requirements="TEST") # E: incompatible type
np.zeros("test") # E: incompatible type
np.zeros() # E: Too few arguments
np.ones("test") # E: incompatible type
np... |
0dc833919af095470f1324d9e59647c2f6f851f5 | genshi/__init__.py | genshi/__init__.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | Remove pkg_resources import from top-level package, will just need to remember updating the version in two places. | Remove pkg_resources import from top-level package, will just need to remember updating the version in two places.
| Python | bsd-3-clause | mitchellrj/genshi,mitchellrj/genshi,mitchellrj/genshi,mitchellrj/genshi | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | <commit_before># -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This s... | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | <commit_before># -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This s... |
1e71315c20cc542dff207f309993d298de054eb7 | signac/gui/__init__.py | signac/gui/__init__.py | # Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac framework and d... | # Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac framework and d... | Fix logging bug in gui module introduced in earlier commit. | Fix logging bug in gui module introduced in earlier commit.
| Python | bsd-3-clause | csadorf/signac,csadorf/signac | # Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac framework and d... | # Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac framework and d... | <commit_before># Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac ... | # Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac framework and d... | # Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac framework and d... | <commit_before># Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Graphical User Interface (GUI) for configuration and database inspection.
The GUI is a leight-weight interface which makes the configuration
of the signac ... |
7cb4734a837ad9d43ef979085d0f6d474f45178c | test_project/select2_outside_admin/views.py | test_project/select2_outside_admin/views.py | try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class UpdateView(generic.... | try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class UpdateView(generic.... | Fix example outside the admin | Fix example outside the admin
| Python | mit | yourlabs/django-autocomplete-light,yourlabs/django-autocomplete-light,yourlabs/django-autocomplete-light,yourlabs/django-autocomplete-light | try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class UpdateView(generic.... | try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class UpdateView(generic.... | <commit_before>try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class Upda... | try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class UpdateView(generic.... | try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class UpdateView(generic.... | <commit_before>try:
from django.urls import reverse_lazy
except ImportError:
from django.core.urlresolvers import reverse_lazy
from django.forms import inlineformset_factory
from django.views import generic
from select2_many_to_many.forms import TForm
from select2_many_to_many.models import TModel
class Upda... |
d7b92a15756dbbad1d66cbe7b2ef25f680e59b10 | postmarker/pytest.py | postmarker/pytest.py | from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
if patch is None:
raise AssertionError('To use pytest fixtures on Python 2, please, install postmarker["tests"]')
w... | from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
with patch("postmarker.core.requests.Session.request", wraps=requests.Session().request) as patched:
with patch("postma... | Drop another Python 2 shim | chore: Drop another Python 2 shim
| Python | mit | Stranger6667/postmarker | from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
if patch is None:
raise AssertionError('To use pytest fixtures on Python 2, please, install postmarker["tests"]')
w... | from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
with patch("postmarker.core.requests.Session.request", wraps=requests.Session().request) as patched:
with patch("postma... | <commit_before>from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
if patch is None:
raise AssertionError('To use pytest fixtures on Python 2, please, install postmarker["... | from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
with patch("postmarker.core.requests.Session.request", wraps=requests.Session().request) as patched:
with patch("postma... | from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
if patch is None:
raise AssertionError('To use pytest fixtures on Python 2, please, install postmarker["tests"]')
w... | <commit_before>from unittest.mock import patch
import pytest
from .core import PostmarkClient, requests
@pytest.yield_fixture
def postmark_request():
"""Mocks network requests to Postmark API."""
if patch is None:
raise AssertionError('To use pytest fixtures on Python 2, please, install postmarker["... |
4716df0c5cf96f5a3869bbae60844afbe2aaca4a | kolibri/tasks/management/commands/base.py | kolibri/tasks/management/commands/base.py | from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
CELERY_PROGRESS_STATE_NAME = "PROGRESS"
def handle(self, *args, **options):
self.update_state = options.pop("update_sta... | from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
"""A management command with added convenience functions for displaying
progress to the user.
Rather than implementing handl... | Add a bit of documentation on what AsyncCommand is. | Add a bit of documentation on what AsyncCommand is.
| Python | mit | aronasorman/kolibri,DXCanas/kolibri,DXCanas/kolibri,lyw07/kolibri,jtamiace/kolibri,christianmemije/kolibri,aronasorman/kolibri,aronasorman/kolibri,learningequality/kolibri,rtibbles/kolibri,lyw07/kolibri,mrpau/kolibri,mrpau/kolibri,66eli77/kolibri,jamalex/kolibri,ralphiee22/kolibri,lyw07/kolibri,jamalex/kolibri,indirect... | from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
CELERY_PROGRESS_STATE_NAME = "PROGRESS"
def handle(self, *args, **options):
self.update_state = options.pop("update_sta... | from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
"""A management command with added convenience functions for displaying
progress to the user.
Rather than implementing handl... | <commit_before>from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
CELERY_PROGRESS_STATE_NAME = "PROGRESS"
def handle(self, *args, **options):
self.update_state = options.... | from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
"""A management command with added convenience functions for displaying
progress to the user.
Rather than implementing handl... | from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
CELERY_PROGRESS_STATE_NAME = "PROGRESS"
def handle(self, *args, **options):
self.update_state = options.pop("update_sta... | <commit_before>from collections import namedtuple
from django.core.management.base import BaseCommand
Progress = namedtuple('Progress', ['progress', 'overall'])
class AsyncCommand(BaseCommand):
CELERY_PROGRESS_STATE_NAME = "PROGRESS"
def handle(self, *args, **options):
self.update_state = options.... |
eb7993ce52e6f8ba7298b6ba9bc68356e99c339b | troposphere/codestarconnections.py | troposphere/codestarconnections.py | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
if connection_... | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
if conne... | Add AWS::CodeStarConnections::Connection props, per May 14, 2020 update | Add AWS::CodeStarConnections::Connection props, per May 14, 2020 update
| Python | bsd-2-clause | cloudtools/troposphere,cloudtools/troposphere | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
if connection_... | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
if conne... | <commit_before># Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
... | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, Tags
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
if conne... | # Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
if connection_... | <commit_before># Copyright (c) 2012-2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject
VALID_CONNECTION_PROVIDERTYPE = ('Bitbucket')
def validate_connection_providertype(connection_providertype):
"""Validate ProviderType for Connection"""
... |
2733408a9e24c30214831c46ac748aa4884a18fb | haddock/haddock.py | haddock/haddock.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#import sys
#reload(sys)
#sys.setdefaultencoding("utf-8")
import os
import random
from io import open
curses_en = os.path.join(os.path.dirname(__file__), "curses_en.txt")
curses_de = os.path.join(os.path.dirname(__file__), "curses_de.txt")
curses_fr = os.path.join(os.pat... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import random
from io import open
def curse(lang="en"):
if lang not in curses:
try:
filename = os.path.join(os.path.dirname(__file__), 'curses_%s.txt' % lang)
with open(filename, encoding='utf-8') as f:
curses[... | Refactor code to eliminate O(n) hard-coding. | Refactor code to eliminate O(n) hard-coding.
| Python | mit | asmaier/haddock,asmaier/haddock | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#import sys
#reload(sys)
#sys.setdefaultencoding("utf-8")
import os
import random
from io import open
curses_en = os.path.join(os.path.dirname(__file__), "curses_en.txt")
curses_de = os.path.join(os.path.dirname(__file__), "curses_de.txt")
curses_fr = os.path.join(os.pat... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import random
from io import open
def curse(lang="en"):
if lang not in curses:
try:
filename = os.path.join(os.path.dirname(__file__), 'curses_%s.txt' % lang)
with open(filename, encoding='utf-8') as f:
curses[... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#import sys
#reload(sys)
#sys.setdefaultencoding("utf-8")
import os
import random
from io import open
curses_en = os.path.join(os.path.dirname(__file__), "curses_en.txt")
curses_de = os.path.join(os.path.dirname(__file__), "curses_de.txt")
curses_fr = os.p... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import random
from io import open
def curse(lang="en"):
if lang not in curses:
try:
filename = os.path.join(os.path.dirname(__file__), 'curses_%s.txt' % lang)
with open(filename, encoding='utf-8') as f:
curses[... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#import sys
#reload(sys)
#sys.setdefaultencoding("utf-8")
import os
import random
from io import open
curses_en = os.path.join(os.path.dirname(__file__), "curses_en.txt")
curses_de = os.path.join(os.path.dirname(__file__), "curses_de.txt")
curses_fr = os.path.join(os.pat... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#import sys
#reload(sys)
#sys.setdefaultencoding("utf-8")
import os
import random
from io import open
curses_en = os.path.join(os.path.dirname(__file__), "curses_en.txt")
curses_de = os.path.join(os.path.dirname(__file__), "curses_de.txt")
curses_fr = os.p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.