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
a2d3c2e0391d2deeb1d6729567c2d8812ad7e7df
exam/asserts.py
exam/asserts.py
irrelevant = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', irrelevant) self.expected_after = kwargs.pop('after', irrelevant) def __...
IRRELEVANT = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', IRRELEVANT) self.expected_after = kwargs.pop('after', IRRELEVANT) def __...
Make the irrelevant object a constant
Make the irrelevant object a constant
Python
mit
Fluxx/exam,gterzian/exam,Fluxx/exam,gterzian/exam
irrelevant = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', irrelevant) self.expected_after = kwargs.pop('after', irrelevant) def __...
IRRELEVANT = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', IRRELEVANT) self.expected_after = kwargs.pop('after', IRRELEVANT) def __...
<commit_before>irrelevant = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', irrelevant) self.expected_after = kwargs.pop('after', irreleva...
IRRELEVANT = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', IRRELEVANT) self.expected_after = kwargs.pop('after', IRRELEVANT) def __...
irrelevant = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', irrelevant) self.expected_after = kwargs.pop('after', irrelevant) def __...
<commit_before>irrelevant = object() class ChangeWatcher(object): def __init__(self, thing, *args, **kwargs): self.thing = thing self.args = args self.kwargs = kwargs self.expected_before = kwargs.pop('before', irrelevant) self.expected_after = kwargs.pop('after', irreleva...
ba13537cf18b8bced21544866fcdcc887e1d290d
latex/exc.py
latex/exc.py
import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): self.log = open(logfn).read() else: self.log = None def __str_...
import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): # the binary log is probably latin1 or utf8? # utf8 throws errors occasiona...
Fix latexs output encoding to latin1.
Fix latexs output encoding to latin1.
Python
bsd-3-clause
mbr/latex
import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): self.log = open(logfn).read() else: self.log = None def __str_...
import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): # the binary log is probably latin1 or utf8? # utf8 throws errors occasiona...
<commit_before>import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): self.log = open(logfn).read() else: self.log = None ...
import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): # the binary log is probably latin1 or utf8? # utf8 throws errors occasiona...
import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): self.log = open(logfn).read() else: self.log = None def __str_...
<commit_before>import os from .errors import parse_log class LatexError(Exception): pass class LatexBuildError(LatexError): """LaTeX call exception.""" def __init__(self, logfn=None): if os.path.exists(logfn): self.log = open(logfn).read() else: self.log = None ...
1cdb773f0d20dcdb1a66a4a6a52eff35398b1296
getBlocks.py
getBlocks.py
#!/usr/bin/python import subprocess import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exist in HDFS ''...
#!/usr/bin/python import subprocess import shlex import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exist...
Use shlex to split command line
Use shlex to split command line
Python
apache-2.0
monolive/hdfs-shred
#!/usr/bin/python import subprocess import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exist in HDFS ''...
#!/usr/bin/python import subprocess import shlex import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exist...
<commit_before>#!/usr/bin/python import subprocess import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exi...
#!/usr/bin/python import subprocess import shlex import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exist...
#!/usr/bin/python import subprocess import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exist in HDFS ''...
<commit_before>#!/usr/bin/python import subprocess import argparse def readArguments(): parser = argparse.ArgumentParser() parser.add_argument('-f','--file', action="store", dest="file", required=True, help="File to shred") args = parser.parse_args() return args def checkFile(file): ''' Check if file exi...
fc1cb951991cc9b4b0cdb9d533127d26eb21ea57
rave/__main__.py
rave/__main__.py
import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autoselect)') parse...
import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autoselect)') parse...
Remove -d command line argument in favour of __debug__.
rave: Remove -d command line argument in favour of __debug__.
Python
bsd-2-clause
rave-engine/rave
import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autoselect)') parse...
import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autoselect)') parse...
<commit_before>import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autosele...
import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autoselect)') parse...
import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autoselect)') parse...
<commit_before>import argparse import sys from os import path def parse_arguments(): parser = argparse.ArgumentParser(description='A modular and extensible visual novel engine.', prog='rave') parser.add_argument('-b', '--bootstrapper', help='Select bootstrapper to bootstrap the engine with. (default: autosele...
cb2db952d3a6c651dac5a285e8b0dc01a5e12a4b
rules/arm-toolchain.py
rules/arm-toolchain.py
import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'})] rules = ArmToolchain()
import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'}), ('gdb', {'target': 'arm-none-eabi'}) ] rules...
Add gdb to the toolchain
Add gdb to the toolchain
Python
mit
BreakawayConsulting/xyz
import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'})] rules = ArmToolchain() Add gdb to the toolchain
import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'}), ('gdb', {'target': 'arm-none-eabi'}) ] rules...
<commit_before>import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'})] rules = ArmToolchain() <commit_msg>Add gdb to the too...
import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'}), ('gdb', {'target': 'arm-none-eabi'}) ] rules...
import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'})] rules = ArmToolchain() Add gdb to the toolchainimport xyz class Arm...
<commit_before>import xyz class ArmToolchain(xyz.BuildProtocol): group_only = True pkg_name = 'arm-toolchain' supported_targets = ['arm-none-eabi'] deps = [('gcc', {'target': 'arm-none-eabi'}), ('binutils', {'target': 'arm-none-eabi'})] rules = ArmToolchain() <commit_msg>Add gdb to the too...
545171378864d4d80aeef52bd036ed99f18aadfc
tests/testdata/amazon.py
tests/testdata/amazon.py
AWS_SECRET_ACCESS_KEY = 'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8'
AWS_SECRET_ACCESS_KEY = r'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8'
Fix deprecation warnings due to invalid escape sequences.
Fix deprecation warnings due to invalid escape sequences.
Python
mit
landscapeio/dodgy
AWS_SECRET_ACCESS_KEY = 'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8' Fix deprecation warnings due to invalid escape sequences.
AWS_SECRET_ACCESS_KEY = r'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8'
<commit_before> AWS_SECRET_ACCESS_KEY = 'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8' <commit_msg>Fix deprecation warnings due to invalid escape sequences.<commit_after>
AWS_SECRET_ACCESS_KEY = r'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8'
AWS_SECRET_ACCESS_KEY = 'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8' Fix deprecation warnings due to invalid escape sequences. AWS_SECRET_ACCESS_KEY = r'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8'
<commit_before> AWS_SECRET_ACCESS_KEY = 'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8' <commit_msg>Fix deprecation warnings due to invalid escape sequences.<commit_after> AWS_SECRET_ACCESS_KEY = r'A8+6AN5TSUZ3vysJg68Rt\A9E7duMlfKODwb3ZD8'
da3599ac6ed29e750d28834a8c0c0f39e9b57702
src/acquisition/covid_hosp/state_daily/network.py
src/acquisition/covid_hosp/state_daily/network.py
# first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. """ return...
# first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '7823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. """ retur...
Update state daily dataset ID
Update state daily dataset ID
Python
mit
cmu-delphi/delphi-epidata,cmu-delphi/delphi-epidata,cmu-delphi/delphi-epidata,cmu-delphi/delphi-epidata,cmu-delphi/delphi-epidata,cmu-delphi/delphi-epidata
# first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. """ return...
# first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '7823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. """ retur...
<commit_before># first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. ...
# first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '7823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. """ retur...
# first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. """ return...
<commit_before># first party from delphi.epidata.acquisition.covid_hosp.common.network import Network as BaseNetwork class Network(BaseNetwork): DATASET_ID = '823dd0e-c8c4-4206-953e-c6d2f451d6ed' def fetch_metadata(*args, **kwags): """Download and return metadata. See `fetch_metadata_for_dataset`. ...
29cc59bc478c4c6bc936141d19a3386468ff8f07
tests/test_general_attributes.py
tests/test_general_attributes.py
# -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): for parser_class in get_attribute_classes().values(): assert hasattr(parser_class, 'ADDED_IN'), ( 'Attribute parser missing mandatory ADDED_IN property' ) assert hasattr(pa...
# -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): required_properities = ['ADDED_IN', 'MINIMUM_CLASS_VERSION'] for name, class_ in get_attribute_classes().items(): for p in required_properities: assert hasattr(class_, p), ( ...
Add a simple test for Attribuet class naming conventions.
Add a simple test for Attribuet class naming conventions.
Python
mit
TkTech/Jawa,TkTech/Jawa
# -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): for parser_class in get_attribute_classes().values(): assert hasattr(parser_class, 'ADDED_IN'), ( 'Attribute parser missing mandatory ADDED_IN property' ) assert hasattr(pa...
# -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): required_properities = ['ADDED_IN', 'MINIMUM_CLASS_VERSION'] for name, class_ in get_attribute_classes().items(): for p in required_properities: assert hasattr(class_, p), ( ...
<commit_before># -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): for parser_class in get_attribute_classes().values(): assert hasattr(parser_class, 'ADDED_IN'), ( 'Attribute parser missing mandatory ADDED_IN property' ) as...
# -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): required_properities = ['ADDED_IN', 'MINIMUM_CLASS_VERSION'] for name, class_ in get_attribute_classes().items(): for p in required_properities: assert hasattr(class_, p), ( ...
# -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): for parser_class in get_attribute_classes().values(): assert hasattr(parser_class, 'ADDED_IN'), ( 'Attribute parser missing mandatory ADDED_IN property' ) assert hasattr(pa...
<commit_before># -*- coding: utf-8 -*- from jawa.attribute import get_attribute_classes def test_mandatory_attributes(): for parser_class in get_attribute_classes().values(): assert hasattr(parser_class, 'ADDED_IN'), ( 'Attribute parser missing mandatory ADDED_IN property' ) as...
3be25f88352ff20a3239b0647f437c45f4903008
robotpy_ext/control/button_debouncer.py
robotpy_ext/control/button_debouncer.py
import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to retrieve ...
import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to retrieve ...
Add __bool__ redirect to buttondebounce
Add __bool__ redirect to buttondebounce
Python
bsd-3-clause
robotpy/robotpy-wpilib-utilities,robotpy/robotpy-wpilib-utilities
import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to retrieve ...
import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to retrieve ...
<commit_before>import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to...
import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to retrieve ...
import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to retrieve ...
<commit_before>import wpilib class ButtonDebouncer: '''Useful utility class for debouncing buttons''' def __init__(self, joystick, buttonnum, period=0.5): ''' :param joystick: Joystick object :type joystick: :class:`wpilib.Joystick` :param buttonnum: Number of button to...
d8dd87f6f5bd1bdead9f2b77ec9271035d05a378
snappybouncer/admin.py
snappybouncer/admin.py
from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket admin.site.register(Conversation) admin.site.register(UserAccount) admin.site.register(Ticket)
from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket from control.actions import export_select_fields_csv_action class TicketAdmin(admin.ModelAdmin): actions = [export_select_fields_csv_action( "Export selected objects as CSV file", fields = [ ...
Add download to snappy bouncer
Add download to snappy bouncer
Python
bsd-3-clause
praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control
from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket admin.site.register(Conversation) admin.site.register(UserAccount) admin.site.register(Ticket) Add download to snappy bouncer
from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket from control.actions import export_select_fields_csv_action class TicketAdmin(admin.ModelAdmin): actions = [export_select_fields_csv_action( "Export selected objects as CSV file", fields = [ ...
<commit_before>from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket admin.site.register(Conversation) admin.site.register(UserAccount) admin.site.register(Ticket) <commit_msg>Add download to snappy bouncer<commit_after>
from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket from control.actions import export_select_fields_csv_action class TicketAdmin(admin.ModelAdmin): actions = [export_select_fields_csv_action( "Export selected objects as CSV file", fields = [ ...
from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket admin.site.register(Conversation) admin.site.register(UserAccount) admin.site.register(Ticket) Add download to snappy bouncerfrom django.contrib import admin from snappybouncer.models import Conversation, UserAccount, T...
<commit_before>from django.contrib import admin from snappybouncer.models import Conversation, UserAccount, Ticket admin.site.register(Conversation) admin.site.register(UserAccount) admin.site.register(Ticket) <commit_msg>Add download to snappy bouncer<commit_after>from django.contrib import admin from snappybouncer.m...
c9284e4d36026b837f1a43a58100b434e7a57337
pygotham/admin/schedule.py
pygotham/admin/schedule.py
"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' DayModelView = ...
"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' DayModelView = ...
Use version of slots admin already in production
Use version of slots admin already in production While building the schedule for the conference, the admin view for `schedule.models.Slot` was changed in production* to figure out what implementation made the most sense. This formalizes it as the preferred version. Closes #111 *Don't do this at home.
Python
bsd-3-clause
djds23/pygotham-1,PyGotham/pygotham,djds23/pygotham-1,PyGotham/pygotham,djds23/pygotham-1,PyGotham/pygotham,PyGotham/pygotham,pathunstrom/pygotham,PyGotham/pygotham,djds23/pygotham-1,pathunstrom/pygotham,pathunstrom/pygotham,pathunstrom/pygotham,pathunstrom/pygotham,djds23/pygotham-1
"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' DayModelView = ...
"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' DayModelView = ...
<commit_before>"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' ...
"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' DayModelView = ...
"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' DayModelView = ...
<commit_before>"""Admin for schedule-related models.""" from pygotham.admin.utils import model_view from pygotham.schedule import models # This line is really long because pep257 needs it to be on one line. __all__ = ('DayModelView', 'RoomModelView', 'SlotModelView', 'PresentationModelView') CATEGORY = 'Schedule' ...
c84f14d33f9095f2d9d8919a9b6ba11e17acd4ca
txspinneret/test/util.py
txspinneret/test/util.py
from twisted.web import http from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def redirect(self, url): self.setResponseCode(http.FOUND) self.setHeader(b'location', url)
from twisted.web import http from twisted.web.http_headers import Headers from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def __init__(self, *a, **kw): DummyRequest.__init__(self, *a, **kw) # This was only adde...
Make `InMemoryRequest` work on Twisted<14.0.0
Make `InMemoryRequest` work on Twisted<14.0.0
Python
mit
jonathanj/txspinneret,mithrandi/txspinneret
from twisted.web import http from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def redirect(self, url): self.setResponseCode(http.FOUND) self.setHeader(b'location', url) Make `InMemoryRequest` work on Twisted<14....
from twisted.web import http from twisted.web.http_headers import Headers from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def __init__(self, *a, **kw): DummyRequest.__init__(self, *a, **kw) # This was only adde...
<commit_before>from twisted.web import http from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def redirect(self, url): self.setResponseCode(http.FOUND) self.setHeader(b'location', url) <commit_msg>Make `InMemoryR...
from twisted.web import http from twisted.web.http_headers import Headers from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def __init__(self, *a, **kw): DummyRequest.__init__(self, *a, **kw) # This was only adde...
from twisted.web import http from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def redirect(self, url): self.setResponseCode(http.FOUND) self.setHeader(b'location', url) Make `InMemoryRequest` work on Twisted<14....
<commit_before>from twisted.web import http from twisted.web.test.requesthelper import DummyRequest class InMemoryRequest(DummyRequest): """ In-memory `IRequest`. """ def redirect(self, url): self.setResponseCode(http.FOUND) self.setHeader(b'location', url) <commit_msg>Make `InMemoryR...
be670eb5830a873d21e4e8587600a75018f01939
collection_pipelines/__init__.py
collection_pipelines/__init__.py
from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: for line in ...
from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: for line in ...
Update out() processor to extend CollectionPipelineOutput class
Update out() processor to extend CollectionPipelineOutput class
Python
mit
povilasb/pycollection-pipelines
from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: for line in ...
from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: for line in ...
<commit_before>from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: ...
from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: for line in ...
from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: for line in ...
<commit_before>from collection_pipelines.http import http from collection_pipelines.json import * class cat(CollectionPipelineProcessor): def __init__(self, fname): self.fname = fname self.source(self.make_generator) def make_generator(self): with open(self.fname, 'r') as f: ...
915370a5950bcaee4b7037196ef02621e518dcd9
rcamp/lib/views.py
rcamp/lib/views.py
from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '500.html', {}, sta...
from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request, exception=None): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '50...
Fix 404 handler not handling exception argument
Fix 404 handler not handling exception argument
Python
mit
ResearchComputing/RCAMP,ResearchComputing/RCAMP,ResearchComputing/RCAMP,ResearchComputing/RCAMP
from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '500.html', {}, sta...
from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request, exception=None): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '50...
<commit_before>from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '500...
from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request, exception=None): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '50...
from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '500.html', {}, sta...
<commit_before>from django.shortcuts import render_to_response from django.shortcuts import render from django.template import RequestContext from django.shortcuts import redirect def handler404(request): return render(request, '404.html', {}, status=404) def handler500(request): return render(request, '500...
d07722c8e7cc2efa0551830ca424d2db2bf734f3
app/__init__.py
app/__init__.py
from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from config import config bootstrap = Bootstrap() db = SQLAlchemy() login_manager = LoginManager() l...
from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from helpers.text import slugify from config import config bootstrap = Bootstrap() db = SQLAlchemy(...
Add slugify to the jinja2's globals scope
Add slugify to the jinja2's globals scope
Python
mit
finnurtorfa/aflafrettir.is,finnurtorfa/aflafrettir.is,finnurtorfa/aflafrettir.is,finnurtorfa/aflafrettir.is
from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from config import config bootstrap = Bootstrap() db = SQLAlchemy() login_manager = LoginManager() l...
from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from helpers.text import slugify from config import config bootstrap = Bootstrap() db = SQLAlchemy(...
<commit_before>from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from config import config bootstrap = Bootstrap() db = SQLAlchemy() login_manager = L...
from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from helpers.text import slugify from config import config bootstrap = Bootstrap() db = SQLAlchemy(...
from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from config import config bootstrap = Bootstrap() db = SQLAlchemy() login_manager = LoginManager() l...
<commit_before>from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from config import config bootstrap = Bootstrap() db = SQLAlchemy() login_manager = L...
6067e96b0c5462f9d3e9391cc3193a28ba7ad808
DebianChangesBot/mailparsers/security_announce.py
DebianChangesBot/mailparsers/security_announce.py
from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return False fmt = SecurityAnnounceFormatter() data = { 'dsa_number' : None, ...
from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return None fmt = SecurityAnnounceFormatter() m = re.match(r'^\[SECURITY\] \[DSA ([-\d]+)\]...
Make formatter example more realistic
Make formatter example more realistic Signed-off-by: Chris Lamb <711c73f64afdce07b7e38039a96d2224209e9a6c@chris-lamb.co.uk>
Python
agpl-3.0
lamby/debian-devel-changes-bot,lamby/debian-devel-changes-bot,xtaran/debian-devel-changes-bot,sebastinas/debian-devel-changes-bot,lamby/debian-devel-changes-bot,xtaran/debian-devel-changes-bot
from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return False fmt = SecurityAnnounceFormatter() data = { 'dsa_number' : None, ...
from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return None fmt = SecurityAnnounceFormatter() m = re.match(r'^\[SECURITY\] \[DSA ([-\d]+)\]...
<commit_before> from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return False fmt = SecurityAnnounceFormatter() data = { 'dsa_num...
from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return None fmt = SecurityAnnounceFormatter() m = re.match(r'^\[SECURITY\] \[DSA ([-\d]+)\]...
from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return False fmt = SecurityAnnounceFormatter() data = { 'dsa_number' : None, ...
<commit_before> from DebianChangesBot import MailParser class SecurityAnnounce(MailParser): def parse(self, msg): if self._get_header(msg, 'List-Id') != '<debian-security-announce.lists.debian.org>': return False fmt = SecurityAnnounceFormatter() data = { 'dsa_num...
2c1d40030f19356bdac6117d1df6dc35a475e480
vcr_unittest/testcase.py
vcr_unittest/testcase.py
from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self.vcr_enabled: ...
from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self.vcr_enabled: ...
Add .yaml extension on default cassette name.
Add .yaml extension on default cassette name.
Python
mit
agriffis/vcrpy-unittest
from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self.vcr_enabled: ...
from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self.vcr_enabled: ...
<commit_before>from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self...
from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self.vcr_enabled: ...
from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self.vcr_enabled: ...
<commit_before>from __future__ import absolute_import, unicode_literals import inspect import logging import os import unittest import vcr logger = logging.getLogger(__name__) class VCRTestCase(unittest.TestCase): vcr_enabled = True def setUp(self): super(VCRTestCase, self).setUp() if self...
8e7c64e0e9868b9bbc3156c70f6c368cad427f1f
egoio/__init__.py
egoio/__init__.py
import numpy from psycopg2.extensions import register_adapter, AsIs def adapt_numpy_int64(numpy_int64): """ Adapting numpy.int64 type to SQL-conform int type using psycopg extension, see [1]_ for more info. References ---------- .. [1] http://initd.org/psycopg/docs/advanced.html#adapting-new-python-t...
Add register_adapter to have type adaptions
Add register_adapter to have type adaptions
Python
agpl-3.0
openego/ego.io,openego/ego.io
Add register_adapter to have type adaptions
import numpy from psycopg2.extensions import register_adapter, AsIs def adapt_numpy_int64(numpy_int64): """ Adapting numpy.int64 type to SQL-conform int type using psycopg extension, see [1]_ for more info. References ---------- .. [1] http://initd.org/psycopg/docs/advanced.html#adapting-new-python-t...
<commit_before><commit_msg>Add register_adapter to have type adaptions<commit_after>
import numpy from psycopg2.extensions import register_adapter, AsIs def adapt_numpy_int64(numpy_int64): """ Adapting numpy.int64 type to SQL-conform int type using psycopg extension, see [1]_ for more info. References ---------- .. [1] http://initd.org/psycopg/docs/advanced.html#adapting-new-python-t...
Add register_adapter to have type adaptionsimport numpy from psycopg2.extensions import register_adapter, AsIs def adapt_numpy_int64(numpy_int64): """ Adapting numpy.int64 type to SQL-conform int type using psycopg extension, see [1]_ for more info. References ---------- .. [1] http://initd.org/psyco...
<commit_before><commit_msg>Add register_adapter to have type adaptions<commit_after>import numpy from psycopg2.extensions import register_adapter, AsIs def adapt_numpy_int64(numpy_int64): """ Adapting numpy.int64 type to SQL-conform int type using psycopg extension, see [1]_ for more info. References ---...
939d76ec219b3bff45dceaef59aee08a82a76f87
virtool/labels/models.py
virtool/labels/models.py
from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, Sequence('labels_id_seq'), primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description = Column(String...
from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description = Column(String) def __repr__(self): ...
Simplify label model serial ID
Simplify label model serial ID
Python
mit
virtool/virtool,igboyes/virtool,igboyes/virtool,virtool/virtool
from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, Sequence('labels_id_seq'), primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description = Column(String...
from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description = Column(String) def __repr__(self): ...
<commit_before>from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, Sequence('labels_id_seq'), primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description ...
from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description = Column(String) def __repr__(self): ...
from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, Sequence('labels_id_seq'), primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description = Column(String...
<commit_before>from sqlalchemy import Column, String, Sequence, Integer from virtool.postgres import Base class Label(Base): __tablename__ = 'labels' id = Column(Integer, Sequence('labels_id_seq'), primary_key=True) name = Column(String, unique=True) color = Column(String(length=7)) description ...
e67849ca91d5d7405cd2c666516b92d2db513963
runners/trytls/__init__.py
runners/trytls/__init__.py
from .testenv import testenv __version__ = "0.1.1" __all__ = ["testenv"]
from .testenv import testenv __version__ = "0.2.0" __all__ = ["testenv"]
Update init to latest version number
Update init to latest version number
Python
mit
ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls,ouspg/trytls
from .testenv import testenv __version__ = "0.1.1" __all__ = ["testenv"] Update init to latest version number
from .testenv import testenv __version__ = "0.2.0" __all__ = ["testenv"]
<commit_before>from .testenv import testenv __version__ = "0.1.1" __all__ = ["testenv"] <commit_msg>Update init to latest version number<commit_after>
from .testenv import testenv __version__ = "0.2.0" __all__ = ["testenv"]
from .testenv import testenv __version__ = "0.1.1" __all__ = ["testenv"] Update init to latest version numberfrom .testenv import testenv __version__ = "0.2.0" __all__ = ["testenv"]
<commit_before>from .testenv import testenv __version__ = "0.1.1" __all__ = ["testenv"] <commit_msg>Update init to latest version number<commit_after>from .testenv import testenv __version__ = "0.2.0" __all__ = ["testenv"]
ed33050bf503a1f8c9a009411f2cbbd4e2f78e4a
datastore/services/__init__.py
datastore/services/__init__.py
"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on SO for a high-le...
"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on SO for a high-le...
Fix imports to work with Python3
Fix imports to work with Python3
Python
mit
impactlab/oeem-energy-datastore,impactlab/oeem-energy-datastore,impactlab/oeem-energy-datastore
"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on SO for a high-le...
"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on SO for a high-le...
<commit_before>"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on S...
"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on SO for a high-le...
"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on SO for a high-le...
<commit_before>"""Portal Service Layer The service layer provides an API on top of Django models to build useful outputs for consumers such as views. This layer helps keep views thin, encourages reusability across views, simplifies testing, and eases separation of concerns for models. Have a look at this example on S...
d5b744d358e2e2bd3e6f85e0fbae487e2ee64c64
bot/logger/logger.py
bot/logger/logger.py
import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, text): text = self._get_text_to_s...
import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" TEXT_SEPARATOR = " | " class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, *texts): t...
Improve Logger to support variable text params
Improve Logger to support variable text params
Python
agpl-3.0
alvarogzp/telegram-bot,alvarogzp/telegram-bot
import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, text): text = self._get_text_to_s...
import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" TEXT_SEPARATOR = " | " class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, *texts): t...
<commit_before>import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, text): text = self...
import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" TEXT_SEPARATOR = " | " class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, *texts): t...
import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, text): text = self._get_text_to_s...
<commit_before>import time from bot.action.util.textformat import FormattedText from bot.logger.message_sender import MessageSender LOG_ENTRY_FORMAT = "{time} [{tag}] {text}" class Logger: def __init__(self, sender: MessageSender): self.sender = sender def log(self, tag, text): text = self...
90a3b5c66a050f22df56e39dc6fb4f32490df4cb
st2reactor/st2reactor/container/base.py
st2reactor/st2reactor/container/base.py
from datetime import timedelta import eventlet import logging import sys from threading import Thread import time # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) LOG = logging.getLogger...
from datetime import timedelta import eventlet import sys from threading import Thread import time from st2common import log as logging # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) ...
Use st2common log and not logging
Fix: Use st2common log and not logging
Python
apache-2.0
StackStorm/st2,Plexxi/st2,grengojbo/st2,Itxaka/st2,nzlosh/st2,armab/st2,grengojbo/st2,dennybaa/st2,alfasin/st2,emedvedev/st2,peak6/st2,tonybaloney/st2,jtopjian/st2,lakshmi-kannan/st2,tonybaloney/st2,nzlosh/st2,StackStorm/st2,Itxaka/st2,pixelrebel/st2,pixelrebel/st2,Itxaka/st2,Plexxi/st2,punalpatel/st2,alfasin/st2,tonyb...
from datetime import timedelta import eventlet import logging import sys from threading import Thread import time # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) LOG = logging.getLogger...
from datetime import timedelta import eventlet import sys from threading import Thread import time from st2common import log as logging # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) ...
<commit_before>from datetime import timedelta import eventlet import logging import sys from threading import Thread import time # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) LOG = lo...
from datetime import timedelta import eventlet import sys from threading import Thread import time from st2common import log as logging # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) ...
from datetime import timedelta import eventlet import logging import sys from threading import Thread import time # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) LOG = logging.getLogger...
<commit_before>from datetime import timedelta import eventlet import logging import sys from threading import Thread import time # Constants SUCCESS_EXIT_CODE = 0 eventlet.monkey_patch( os=True, select=True, socket=True, thread=False if '--use-debugger' in sys.argv else True, time=True ) LOG = lo...
aca834449910cd358ea59a73984f895cbfc67030
examples/index.py
examples/index.py
import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_table', Distance, ...
import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_table', Distance, ...
Fix keyword names in example code
Fix keyword names in example code
Python
bsd-3-clause
PyTables/PyTables,jennolsen84/PyTables,jack-pappas/PyTables,FrancescAlted/PyTables,dotsdl/PyTables,tp199911/PyTables,jennolsen84/PyTables,joonro/PyTables,joonro/PyTables,rabernat/PyTables,dotsdl/PyTables,rabernat/PyTables,cpcloud/PyTables,mohamed-ali/PyTables,avalentino/PyTables,jennolsen84/PyTables,tp199911/PyTables,j...
import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_table', Distance, ...
import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_table', Distance, ...
<commit_before>import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_tab...
import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_table', Distance, ...
import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_table', Distance, ...
<commit_before>import random import tables print 'tables.__version__', tables.__version__ nrows=10000-1 class Distance(tables.IsDescription): frame = tables.Int32Col(pos=0) distance = tables.Float64Col(pos=1) h5file = tables.openFile('index.h5', mode='w') table = h5file.createTable(h5file.root, 'distance_tab...
02076f919e56503c76a41e78feed8a6720c65c19
robot/robot/src/autonomous/timed_shoot.py
robot/robot/src/autonomous/timed_shoot.py
try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consistently. '...
try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consistently. '...
Add comments for timed shoot
Add comments for timed shoot
Python
bsd-3-clause
frc1418/2014
try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consistently. '...
try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consistently. '...
<commit_before>try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consis...
try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consistently. '...
try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consistently. '...
<commit_before>try: import wpilib except ImportError: from pyfrc import wpilib from common.autonomous_helper import StatefulAutonomous, timed_state class TimedShootAutonomous(StatefulAutonomous): ''' Tunable autonomous mode that does dumb time-based shooting decisions. Works consis...
dddfbf8970f22d44eac7805c3e325fd1684673d7
word-count/word_count.py
word-count/word_count.py
def word_count(s): words = strip_punc(s.lower()).split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s)
def word_count(s): words = strip_punc(s).lower().split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s)
Move .lower() method call for readability
Move .lower() method call for readability
Python
agpl-3.0
CubicComet/exercism-python-solutions
def word_count(s): words = strip_punc(s.lower()).split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s) Move .lower() method call for readability
def word_count(s): words = strip_punc(s).lower().split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s)
<commit_before>def word_count(s): words = strip_punc(s.lower()).split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s) <commit_msg>Move .lower() method call for readability<commit_after>
def word_count(s): words = strip_punc(s).lower().split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s)
def word_count(s): words = strip_punc(s.lower()).split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s) Move .lower() method call for readabilitydef word_count(s): words = strip_punc(s).lower().split() return {wor...
<commit_before>def word_count(s): words = strip_punc(s.lower()).split() return {word: words.count(word) for word in set(words)} def strip_punc(s): return "".join(ch if ch.isalnum() else " " for ch in s) <commit_msg>Move .lower() method call for readability<commit_after>def word_count(s): words = stri...
4f34ec163d00e16df7150d58274a4a0135c90b04
bugimporters/main.py
bugimporters/main.py
#!/usr/bin/env python import argparse import sys def main(raw_arguments): parser = argparse.ArgumentParser(description='Simple oh-bugimporters crawl program') parser.add_argument('-i', action="store", dest="input") parser.add_argument('-o', action="store", dest="output") args = parser.parse_args(raw_...
#!/usr/bin/env python import argparse import sys import json import mock import bugimporters.trac def dict2obj(d): class Trivial(object): def get_base_url(self): return self.base_url ret = Trivial() for thing in d: setattr(ret, thing, d[thing]) ret.old_trac = False # FIXME, ...
Add enough hackish machinery for the CLI downloader to download one bug
Add enough hackish machinery for the CLI downloader to download one bug
Python
agpl-3.0
openhatch/oh-bugimporters,openhatch/oh-bugimporters,openhatch/oh-bugimporters
#!/usr/bin/env python import argparse import sys def main(raw_arguments): parser = argparse.ArgumentParser(description='Simple oh-bugimporters crawl program') parser.add_argument('-i', action="store", dest="input") parser.add_argument('-o', action="store", dest="output") args = parser.parse_args(raw_...
#!/usr/bin/env python import argparse import sys import json import mock import bugimporters.trac def dict2obj(d): class Trivial(object): def get_base_url(self): return self.base_url ret = Trivial() for thing in d: setattr(ret, thing, d[thing]) ret.old_trac = False # FIXME, ...
<commit_before>#!/usr/bin/env python import argparse import sys def main(raw_arguments): parser = argparse.ArgumentParser(description='Simple oh-bugimporters crawl program') parser.add_argument('-i', action="store", dest="input") parser.add_argument('-o', action="store", dest="output") args = parser....
#!/usr/bin/env python import argparse import sys import json import mock import bugimporters.trac def dict2obj(d): class Trivial(object): def get_base_url(self): return self.base_url ret = Trivial() for thing in d: setattr(ret, thing, d[thing]) ret.old_trac = False # FIXME, ...
#!/usr/bin/env python import argparse import sys def main(raw_arguments): parser = argparse.ArgumentParser(description='Simple oh-bugimporters crawl program') parser.add_argument('-i', action="store", dest="input") parser.add_argument('-o', action="store", dest="output") args = parser.parse_args(raw_...
<commit_before>#!/usr/bin/env python import argparse import sys def main(raw_arguments): parser = argparse.ArgumentParser(description='Simple oh-bugimporters crawl program') parser.add_argument('-i', action="store", dest="input") parser.add_argument('-o', action="store", dest="output") args = parser....
5ea8993f76477c3cb6f35c26b38d82eda8a9478f
tests_django/integration_tests/test_output_adapter_integration.py
tests_django/integration_tests/test_output_adapter_integration.py
from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.output import Outp...
from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.output import Outp...
Remove confidence parameter in django test case
Remove confidence parameter in django test case
Python
bsd-3-clause
vkosuri/ChatterBot,Reinaesaya/OUIRL-ChatBot,Reinaesaya/OUIRL-ChatBot,maclogan/VirtualPenPal,davizucon/ChatterBot,gunthercox/ChatterBot,Gustavo6046/ChatterBot
from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.output import Outp...
from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.output import Outp...
<commit_before>from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.out...
from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.output import Outp...
from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.output import Outp...
<commit_before>from django.test import TestCase from chatterbot.ext.django_chatterbot.models import Statement class OutputIntegrationTestCase(TestCase): """ Tests to make sure that output adapters function correctly when using Django. """ def test_output_adapter(self): from chatterbot.out...
19c2f919c6deb11331e927ad3f794424905fc4f3
self-post-stream/stream.py
self-post-stream/stream.py
import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, max=1000)', typ...
import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, max=1000)', typ...
Add value check for -limit
Add value check for -limit
Python
mit
kshvmdn/reddit-bots
import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, max=1000)', typ...
import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, max=1000)', typ...
<commit_before>import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, ...
import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, max=1000)', typ...
import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, max=1000)', typ...
<commit_before>import praw import argparse parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.') parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')') parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, ...
a643cb510429d9fcf4de43e64b04480419c5500b
mscgen/setup.py
mscgen/setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='mscgen', version='0.3'...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='sphinxcontrib-mscgen', ...
Change package name to sphinxcontrib-mscgen
mscgen: Change package name to sphinxcontrib-mscgen
Python
bsd-2-clause
sphinx-contrib/spelling,sphinx-contrib/spelling
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='mscgen', version='0.3'...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='sphinxcontrib-mscgen', ...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='mscgen', ...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='sphinxcontrib-mscgen', ...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='mscgen', version='0.3'...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages long_desc = ''' This package contains the mscgen Sphinx extension. Allow mscgen-formatted Message Sequence Chart graphs to be included in Sphinx-generated documents inline. ''' requires = ['Sphinx>=0.6'] setup( name='mscgen', ...
cbfbc7482a19b5d7ddcdb3980bfdf5d1d8487141
Google_Code_Jam/2010_Africa/Qualification_Round/B/reverse_words.py
Google_Code_Jam/2010_Africa/Qualification_Round/B/reverse_words.py
#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Returns: No...
#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Returns: No...
Add description of assertions raised
Add description of assertions raised
Python
cc0-1.0
mschruf/python
#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Returns: No...
#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Returns: No...
<commit_before>#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Retu...
#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Returns: No...
#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Returns: No...
<commit_before>#!/usr/bin/python -tt """Solves problem B from Google Code Jam Qualification Round Africa 2010 (https://code.google.com/codejam/contest/351101/dashboard#s=p1) "Reverse Words" """ import sys def main(): """Reads problem data from stdin and prints answers to stdout. Args: None Retu...
504f46a7dd56d78538547bb74515dd55ac1668fb
myhdl/_delay.py
myhdl/_delay.py
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl 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 t...
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl 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 t...
Fix a typo in an error message
Fix a typo in an error message integeer -> integer
Python
lgpl-2.1
myhdl/myhdl,myhdl/myhdl,josyb/myhdl,myhdl/myhdl,josyb/myhdl,josyb/myhdl
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl 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 t...
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl 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 t...
<commit_before># This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as # ...
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl 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 t...
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl 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 t...
<commit_before># This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2008 Jan Decaluwe # # The myhdl library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as # ...
407f3dfc9f2d87942908c23e6c4db938ac4d94dc
run_migrations.py
run_migrations.py
""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdrop', 'write', 'config') fp = No...
""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) log = logging.getLogger(__name__) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdro...
Make migration logging more verbose
Make migration logging more verbose
Python
mit
alphagov/backdrop,alphagov/backdrop,alphagov/backdrop
""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdrop', 'write', 'config') fp = No...
""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) log = logging.getLogger(__name__) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdro...
<commit_before>""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdrop', 'write', 'confi...
""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) log = logging.getLogger(__name__) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdro...
""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdrop', 'write', 'config') fp = No...
<commit_before>""" Run all migrations """ import imp import os import sys import pymongo from os.path import join import logging logging.basicConfig(level=logging.DEBUG) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) def load_config(env): config_path = os.path.join(ROOT_PATH, 'backdrop', 'write', 'confi...
4b0b85a54208625c7a2753d8ba9b96818f1411d0
denorm/__init__.py
denorm/__init__.py
from denorm.fields import denormalized from denorm.dependencies import depend_on_related,depend_on_q
from denorm.fields import denormalized from denorm.dependencies import depend_on_related, depend_on_q __all__ = ["denormalized", "depend_on_related", "depend_on_q"]
Use __all__ to make it not overwrite .models randomly.
Use __all__ to make it not overwrite .models randomly.
Python
bsd-3-clause
heinrich5991/django-denorm,miracle2k/django-denorm,Chive/django-denorm,anentropic/django-denorm,simas/django-denorm,catalanojuan/django-denorm,victorvde/django-denorm,initcrash/django-denorm,PetrDlouhy/django-denorm,gerdemb/django-denorm,kennknowles/django-denorm,Eksmo/django-denorm,alex-mcleod/django-denorm,mjtamlyn/d...
from denorm.fields import denormalized from denorm.dependencies import depend_on_related,depend_on_q Use __all__ to make it not overwrite .models randomly.
from denorm.fields import denormalized from denorm.dependencies import depend_on_related, depend_on_q __all__ = ["denormalized", "depend_on_related", "depend_on_q"]
<commit_before> from denorm.fields import denormalized from denorm.dependencies import depend_on_related,depend_on_q <commit_msg>Use __all__ to make it not overwrite .models randomly.<commit_after>
from denorm.fields import denormalized from denorm.dependencies import depend_on_related, depend_on_q __all__ = ["denormalized", "depend_on_related", "depend_on_q"]
from denorm.fields import denormalized from denorm.dependencies import depend_on_related,depend_on_q Use __all__ to make it not overwrite .models randomly. from denorm.fields import denormalized from denorm.dependencies import depend_on_related, depend_on_q __all__ = ["denormalized", "depend_on_related", "depend_on_q...
<commit_before> from denorm.fields import denormalized from denorm.dependencies import depend_on_related,depend_on_q <commit_msg>Use __all__ to make it not overwrite .models randomly.<commit_after> from denorm.fields import denormalized from denorm.dependencies import depend_on_related, depend_on_q __all__ = ["denorma...
4799fbb78503e16095b72e39fa243dcbaeef94b2
lib/rapidsms/tests/test_backend_irc.py
lib/rapidsms/tests/test_backend_irc.py
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestLog(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend backend = Backend(...
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestBackendIRC(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend backend = B...
Rename test class (sloppy cut n' paste job)
Rename test class (sloppy cut n' paste job)
Python
bsd-3-clause
dimagi/rapidsms-core-dev,dimagi/rapidsms-core-dev,unicefuganda/edtrac,unicefuganda/edtrac,ken-muturi/rapidsms,catalpainternational/rapidsms,caktus/rapidsms,rapidsms/rapidsms-core-dev,ehealthafrica-ci/rapidsms,peterayeni/rapidsms,peterayeni/rapidsms,dimagi/rapidsms,catalpainternational/rapidsms,lsgunth/rapidsms,dimagi/r...
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestLog(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend backend = Backend(...
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestBackendIRC(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend backend = B...
<commit_before>#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestLog(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend bac...
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestBackendIRC(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend backend = B...
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestLog(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend backend = Backend(...
<commit_before>#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import unittest from harness import MockRouter class TestLog(unittest.TestCase): def test_backend_irc (self): router = MockRouter() try: import irclib from rapidsms.backends.irc import Backend bac...
6771b83ec65f015fa58191694ad068063f61672b
amazon.py
amazon.py
from osv import osv, fields import time import datetime import inspect import xmlrpclib import netsvc import os import logging import urllib2 import base64 from tools.translate import _ import httplib, ConfigParser, urlparse from xml.dom.minidom import parse, parseString from lxml import etree from xml.etree.ElementTre...
from osv import osv, fields class amazon_instance(osv.osv): _inherit = 'amazon.instance' def create_orders(self, cr, uid, instance_obj, shop_id, results): return super(amazon_instance, self).create_orders(cr, uid, instance_obj, shop_id, results, defaults={ "payment_channel": "amazon", ...
Simplify defaulting the sale and payment channels for Amazon sales.
Simplify defaulting the sale and payment channels for Amazon sales.
Python
agpl-3.0
ryepdx/sale_channels
from osv import osv, fields import time import datetime import inspect import xmlrpclib import netsvc import os import logging import urllib2 import base64 from tools.translate import _ import httplib, ConfigParser, urlparse from xml.dom.minidom import parse, parseString from lxml import etree from xml.etree.ElementTre...
from osv import osv, fields class amazon_instance(osv.osv): _inherit = 'amazon.instance' def create_orders(self, cr, uid, instance_obj, shop_id, results): return super(amazon_instance, self).create_orders(cr, uid, instance_obj, shop_id, results, defaults={ "payment_channel": "amazon", ...
<commit_before>from osv import osv, fields import time import datetime import inspect import xmlrpclib import netsvc import os import logging import urllib2 import base64 from tools.translate import _ import httplib, ConfigParser, urlparse from xml.dom.minidom import parse, parseString from lxml import etree from xml.e...
from osv import osv, fields class amazon_instance(osv.osv): _inherit = 'amazon.instance' def create_orders(self, cr, uid, instance_obj, shop_id, results): return super(amazon_instance, self).create_orders(cr, uid, instance_obj, shop_id, results, defaults={ "payment_channel": "amazon", ...
from osv import osv, fields import time import datetime import inspect import xmlrpclib import netsvc import os import logging import urllib2 import base64 from tools.translate import _ import httplib, ConfigParser, urlparse from xml.dom.minidom import parse, parseString from lxml import etree from xml.etree.ElementTre...
<commit_before>from osv import osv, fields import time import datetime import inspect import xmlrpclib import netsvc import os import logging import urllib2 import base64 from tools.translate import _ import httplib, ConfigParser, urlparse from xml.dom.minidom import parse, parseString from lxml import etree from xml.e...
66461c43b3a0229d02c58ad7aae4653bb638715c
students/crobison/session03/mailroom.py
students/crobison/session03/mailroom.py
# Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } def print_report(): print("This will print a report") ...
# Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } donations = {} for k, v in donors.items(): donations[k]...
Add function to list donors and total donations.
Add function to list donors and total donations.
Python
unlicense
UWPCE-PythonCert/IntroPython2016,weidnem/IntroPython2016,Baumelbi/IntroPython2016,weidnem/IntroPython2016,weidnem/IntroPython2016,UWPCE-PythonCert/IntroPython2016,Baumelbi/IntroPython2016,UWPCE-PythonCert/IntroPython2016
# Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } def print_report(): print("This will print a report") ...
# Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } donations = {} for k, v in donors.items(): donations[k]...
<commit_before># Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } def print_report(): print("This will pri...
# Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } donations = {} for k, v in donors.items(): donations[k]...
# Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } def print_report(): print("This will print a report") ...
<commit_before># Charles Robison # 2016.10.16 # Mailroom Lab #!/usr/bin/env python donors = { 'Smith':[100, 125, 100], 'Galloway':[50], 'Williams':[22, 43, 40, 3.25], 'Cruz':[101], 'Maples':[1.50, 225] } def print_report(): print("This will pri...
bb8d9aa91b6d1bf2a765113d5845402c059e6969
IPython/core/payloadpage.py
IPython/core/payloadpage.py
# encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and functions #-------...
# encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and functions #-------...
Remove leftover text key from our own payload creation
Remove leftover text key from our own payload creation
Python
bsd-3-clause
ipython/ipython,ipython/ipython
# encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and functions #-------...
# encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and functions #-------...
<commit_before># encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and fun...
# encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and functions #-------...
# encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and functions #-------...
<commit_before># encoding: utf-8 """A payload based version of page.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from IPython.core.getipython import get_ipython #----------------------------------------------------------------------------- # Classes and fun...
39e561b2675649279cbff4aa457216d12072160b
paws/request.py
paws/request.py
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
Use more sensible name for post data
Use more sensible name for post data
Python
bsd-3-clause
funkybob/paws
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
<commit_before>from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod...
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
<commit_before>from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod...
4b863a659e36b1fa9887847e9dbb133b1852cf9b
examples/miniapps/bundles/run.py
examples/miniapps/bundles/run.py
"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" config = providers....
"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" config = providers....
Update bundles example after configuration provider refactoring
Update bundles example after configuration provider refactoring
Python
bsd-3-clause
ets-labs/dependency_injector,ets-labs/python-dependency-injector,rmk135/objects,rmk135/dependency_injector
"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" config = providers....
"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" config = providers....
<commit_before>"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" conf...
"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" config = providers....
"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" config = providers....
<commit_before>"""Run 'Bundles' example application.""" import sqlite3 import boto3 from dependency_injector import containers from dependency_injector import providers from bundles.users import Users from bundles.photos import Photos class Core(containers.DeclarativeContainer): """Core container.""" conf...
d9c005669c65d65a18b0bd8527918c5dd3fa688c
manage/fabfile/ci.py
manage/fabfile/ci.py
from fabric.api import * @task @role('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install python-pip") ...
from fabric.api import * @task @roles('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install python-pip") ...
Fix typo in fab script
Fix typo in fab script
Python
bsd-2-clause
rinfo/rdl,rinfo/rdl,rinfo/rdl,rinfo/rdl,rinfo/rdl,rinfo/rdl
from fabric.api import * @task @role('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install python-pip") ...
from fabric.api import * @task @roles('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install python-pip") ...
<commit_before>from fabric.api import * @task @role('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install p...
from fabric.api import * @task @roles('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install python-pip") ...
from fabric.api import * @task @role('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install python-pip") ...
<commit_before>from fabric.api import * @task @role('ci') def install(): sudo("apt-get install git") sudo("apt-get install maven2") # TODO: maven3 sudo("apt-get install groovy") # TODO: groovy-1.8, or gradle... configure_groovy_grapes() sudo("apt-get install python-dev") sudo("apt-get install p...
1ed7d695eff134557990d8b1a5dffa51b6d1d2f6
distarray/run_tests.py
distarray/run_tests.py
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- """...
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- """...
Return returncode from shell command.
Return returncode from shell command.
Python
bsd-3-clause
enthought/distarray,RaoUmer/distarray,RaoUmer/distarray,enthought/distarray
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- """...
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- """...
<commit_before># encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # -----------------------------------------------------------------...
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- """...
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- """...
<commit_before># encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # -----------------------------------------------------------------...
e0cfd055540b5647b0bd5a4cfffb9c1a3399c721
tests/commands/load/test_load_coverage_qc_report_cmd.py
tests/commands/load/test_load_coverage_qc_report_cmd.py
# -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfile(coverage_qc_r...
# -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfile(coverage_qc_re...
Fix code style issues with Black
Fix code style issues with Black
Python
bsd-3-clause
Clinical-Genomics/scout,Clinical-Genomics/scout,Clinical-Genomics/scout
# -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfile(coverage_qc_r...
# -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfile(coverage_qc_re...
<commit_before># -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfil...
# -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfile(coverage_qc_re...
# -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfile(coverage_qc_r...
<commit_before># -*- coding: utf-8 -*- import os from scout.demo import coverage_qc_report from scout.commands import cli def test_load_coverage_qc_report(mock_app, case_obj): """Testing the load delivery report cli command""" # Make sure the path to delivery report is a valid path assert os.path.isfil...
b6a8c71be9595c1f2e8c76e9b9bbc49c73a9ec5c
backend/api-server/warehaus_api/auth/__init__.py
backend/api-server/warehaus_api/auth/__init__.py
from datetime import timedelta from logging import getLogger from flask import request from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_user logger = getLogger(__name__) def authenticate(username,...
from datetime import datetime from datetime import timedelta from logging import getLogger from flask import request from flask import current_app from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_us...
Fix payload_handler in api-server to generate proper JWTs
Fix payload_handler in api-server to generate proper JWTs
Python
agpl-3.0
warehaus/warehaus,labsome/labsome,warehaus/warehaus,labsome/labsome,labsome/labsome,warehaus/warehaus
from datetime import timedelta from logging import getLogger from flask import request from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_user logger = getLogger(__name__) def authenticate(username,...
from datetime import datetime from datetime import timedelta from logging import getLogger from flask import request from flask import current_app from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_us...
<commit_before>from datetime import timedelta from logging import getLogger from flask import request from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_user logger = getLogger(__name__) def authent...
from datetime import datetime from datetime import timedelta from logging import getLogger from flask import request from flask import current_app from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_us...
from datetime import timedelta from logging import getLogger from flask import request from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_user logger = getLogger(__name__) def authenticate(username,...
<commit_before>from datetime import timedelta from logging import getLogger from flask import request from flask_jwt import JWT from .models import User from .roles import roles from .roles import user_required from .roles import admin_required from .login import validate_user logger = getLogger(__name__) def authent...
9cbfed00905fb8b360b60cce1afc293b71a2aced
check_access.py
check_access.py
#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.argv) < 2: exi...
#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.argv) < 2: pri...
Print usage if not enough args
Print usage if not enough args
Python
mit
Duke-GCB/docker-wrapper,Duke-GCB/docker-wrapper
#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.argv) < 2: exi...
#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.argv) < 2: pri...
<commit_before>#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.arg...
#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.argv) < 2: pri...
#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.argv) < 2: exi...
<commit_before>#!/usr/bin/env python import os import sys from parse_docker_args import parse_mount def can_access(path, perm): mode = None if perm == 'r': mode = os.R_OK elif perm == 'w': mode = os.W_OK else: return False return os.access(path, mode) if __name__ == '__main__': if len(sys.arg...
f4dfcf91c11fd06b5b71135f888b6979548a5147
conveyor/__main__.py
conveyor/__main__.py
from __future__ import absolute_import from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main()
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main()
Bring the standard __future__ imports over
Bring the standard __future__ imports over
Python
bsd-2-clause
crateio/carrier
from __future__ import absolute_import from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main() Bring the standard __future__ imports over
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main()
<commit_before>from __future__ import absolute_import from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main() <commit_msg>Bring the standard __future__ imports over<commit_after>
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main()
from __future__ import absolute_import from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main() Bring the standard __future__ imports overfrom __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from .core import Conveyo...
<commit_before>from __future__ import absolute_import from .core import Conveyor def main(): Conveyor().run() if __name__ == "__main__": main() <commit_msg>Bring the standard __future__ imports over<commit_after>from __future__ import absolute_import from __future__ import division from __future__ import un...
fca88336777b9c47404e7b397d39ef8d3676b7b5
src/zone_iterator/__main__.py
src/zone_iterator/__main__.py
import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def main(): if HAS_COLOR: colors = [Fore.GREEN, Fore.MAGENTA, Fore.BLUE, Fore.CYAN, Fore.YELLO...
import argparse import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def maybe_compressed_file(filename): if filename[-2:] == 'gz': our_open = gzip...
Switch to using argparse for the main script.
Switch to using argparse for the main script.
Python
agpl-3.0
maxrp/zone_normalize
import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def main(): if HAS_COLOR: colors = [Fore.GREEN, Fore.MAGENTA, Fore.BLUE, Fore.CYAN, Fore.YELLO...
import argparse import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def maybe_compressed_file(filename): if filename[-2:] == 'gz': our_open = gzip...
<commit_before>import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def main(): if HAS_COLOR: colors = [Fore.GREEN, Fore.MAGENTA, Fore.BLUE, Fore.C...
import argparse import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def maybe_compressed_file(filename): if filename[-2:] == 'gz': our_open = gzip...
import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def main(): if HAS_COLOR: colors = [Fore.GREEN, Fore.MAGENTA, Fore.BLUE, Fore.CYAN, Fore.YELLO...
<commit_before>import gzip import sys from . import zone_iterator, zone_dict_to_str, ZONE_FMT_STR try: from colorama import Fore, init as colorama_init except ImportError: HAS_COLOR = False else: HAS_COLOR = True def main(): if HAS_COLOR: colors = [Fore.GREEN, Fore.MAGENTA, Fore.BLUE, Fore.C...
c1756ab481f3bf72ab33465c8eb1d5a3e729ce4e
model_logging/migrations/0003_data_migration.py
model_logging/migrations/0003_data_migration.py
# -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): LogEntry = apps.get_model(app, model) for entry in LogEntry.objects.all(): entry.data_temp = entry.data entry.save() class Migration(migrations.Migration): ...
# -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): try: from pgcrypto.fields import TextPGPPublicKeyField except ImportError: raise ImportError('Please install django-pgcrypto-fields to perform migration') ...
Add try, catch statement to ensure data migration can be performed.
Add try, catch statement to ensure data migration can be performed.
Python
bsd-2-clause
incuna/django-model-logging
# -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): LogEntry = apps.get_model(app, model) for entry in LogEntry.objects.all(): entry.data_temp = entry.data entry.save() class Migration(migrations.Migration): ...
# -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): try: from pgcrypto.fields import TextPGPPublicKeyField except ImportError: raise ImportError('Please install django-pgcrypto-fields to perform migration') ...
<commit_before># -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): LogEntry = apps.get_model(app, model) for entry in LogEntry.objects.all(): entry.data_temp = entry.data entry.save() class Migration(migrations...
# -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): try: from pgcrypto.fields import TextPGPPublicKeyField except ImportError: raise ImportError('Please install django-pgcrypto-fields to perform migration') ...
# -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): LogEntry = apps.get_model(app, model) for entry in LogEntry.objects.all(): entry.data_temp = entry.data entry.save() class Migration(migrations.Migration): ...
<commit_before># -*- coding: utf-8 -*- from django.db import migrations app = 'model_logging' model = 'LogEntry' def move_data(apps, schema_editor): LogEntry = apps.get_model(app, model) for entry in LogEntry.objects.all(): entry.data_temp = entry.data entry.save() class Migration(migrations...
ba57b3c016ed3bc3c8db9ccc3c637c2c58de1e1d
reddit/admin.py
reddit/admin.py
from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class SubmissionAdmin(admin.M...
from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class SubmissionAdmin(admin.M...
Remove commentsInLine for RedditUser because there is no longer foreignKey from Comment to RedditUser
Remove commentsInLine for RedditUser because there is no longer foreignKey from Comment to RedditUser
Python
apache-2.0
Nikola-K/django_reddit,Nikola-K/django_reddit,Nikola-K/django_reddit
from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class SubmissionAdmin(admin.M...
from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class SubmissionAdmin(admin.M...
<commit_before>from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class Submissi...
from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class SubmissionAdmin(admin.M...
from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class SubmissionAdmin(admin.M...
<commit_before>from django.contrib import admin from reddit.models import RedditUser,Submission,Comment,Vote # Register your models here. class SubmissionInline(admin.TabularInline): model = Submission max_num = 10 class CommentsInline(admin.StackedInline): model = Comment max_num = 10 class Submissi...
5c0a64eb2f580225c07f09494ac723da16b38d18
openedx/features/job_board/views.py
openedx/features/job_board/views.py
from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'jobs_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-created'] temp...
from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'job_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-created'] templ...
Change jobs_list object name to job_list
Change jobs_list object name to job_list
Python
agpl-3.0
philanthropy-u/edx-platform,philanthropy-u/edx-platform,philanthropy-u/edx-platform,philanthropy-u/edx-platform
from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'jobs_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-created'] temp...
from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'job_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-created'] templ...
<commit_before>from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'jobs_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-cre...
from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'job_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-created'] templ...
from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'jobs_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-created'] temp...
<commit_before>from django.views.generic.list import ListView from edxmako.shortcuts import render_to_response from .models import Job class JobListView(ListView): model = Job context_object_name = 'jobs_list' paginate_by = 10 template_name = 'features/job_board/job_list.html' ordering = ['-cre...
dd75314f203b907f25a7b7e158c7e5d988a5b6ae
neo/test/rawiotest/test_openephysbinaryrawio.py
neo/test/rawiotest/test_openephysbinaryrawio.py
import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ] entit...
import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ] entit...
Add new OE test folder
Add new OE test folder
Python
bsd-3-clause
apdavison/python-neo,JuliaSprenger/python-neo,NeuralEnsemble/python-neo,INM-6/python-neo
import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ] entit...
import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ] entit...
<commit_before>import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ...
import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ] entit...
import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ] entit...
<commit_before>import unittest from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO from neo.test.rawiotest.common_rawio_test import BaseTestRawIO class TestOpenEphysBinaryRawIO(BaseTestRawIO, unittest.TestCase): rawioclass = OpenEphysBinaryRawIO entities_to_download = [ 'openephysbinary' ...
7c9d2ace7de2727c43b0ee00f8f2280d8a465301
Python/brewcaskupgrade.py
Python/brewcaskupgrade.py
#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help='Pretend to ta...
#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help='Pretend to ta...
Check version for latest cask behaviour changed
Check version for latest cask behaviour changed
Python
cc0-1.0
boltomli/MyMacScripts,boltomli/MyMacScripts
#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help='Pretend to ta...
#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help='Pretend to ta...
<commit_before>#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help...
#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help='Pretend to ta...
#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help='Pretend to ta...
<commit_before>#! /usr/bin/env python # -*- coding: utf8 -*- import argparse import shutil from subprocess import check_output, run parser = argparse.ArgumentParser(description='Update every entries found in cask folder.') parser.add_argument('--pretend', dest='pretend', action='store_true', help...
703e61104317332d60bd0bde49652b8618cd0e6b
var/spack/packages/mrnet/package.py
var/spack/packages/mrnet/package.py
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False def install(self, spe...
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False depends_on("boost") ...
Make mrnet depend on boost.
Make mrnet depend on boost.
Python
lgpl-2.1
mfherbst/spack,iulian787/spack,tmerrick1/spack,LLNL/spack,mfherbst/spack,TheTimmy/spack,krafczyk/spack,LLNL/spack,krafczyk/spack,TheTimmy/spack,mfherbst/spack,TheTimmy/spack,krafczyk/spack,tmerrick1/spack,skosukhin/spack,EmreAtes/spack,lgarren/spack,matthiasdiener/spack,EmreAtes/spack,iulian787/spack,EmreAtes/spack,mat...
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False def install(self, spe...
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False depends_on("boost") ...
<commit_before>from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False def in...
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False depends_on("boost") ...
from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False def install(self, spe...
<commit_before>from spack import * class Mrnet(Package): """The MRNet Multi-Cast Reduction Network.""" homepage = "http://paradyn.org/mrnet" url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz" versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', } parallel = False def in...
9504529dd4b9140be0026d0b30a0e88e5dea5e25
rtrss/config.py
rtrss/config.py
import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(...
import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(...
Add default IP and PORT
Add default IP and PORT
Python
apache-2.0
notapresent/rtrss,notapresent/rtrss,notapresent/rtrss,notapresent/rtrss
import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(...
import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(...
<commit_before>import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %...
import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(...
import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %(levelname)s %(...
<commit_before>import os import logging import importlib # All configuration defaults are set in this module TRACKER_HOST = 'rutracker.org' # Timeone for the tracker times TZNAME = 'Europe/Moscow' LOGLEVEL = logging.INFO LOG_FORMAT_LOGENTRIES = '%(levelname)s %(name)s %(message)s' LOG_FORMAT_BRIEF = '%(asctime)s %...
87df9686444c46796475da06c67eeca01c4a46cc
scikits/audiolab/pysndfile/__init__.py
scikits/audiolab/pysndfile/__init__.py
from pysndfile import formatinfo, sndfile from pysndfile import supported_format, supported_endianness, \ supported_encoding from pysndfile import PyaudioException, PyaudioIOError from _sndfile import Sndfile, Format, available_file_formats, available_encodings
from _sndfile import Sndfile, Format, available_file_formats, available_encodings from compat import formatinfo, sndfile, PyaudioException, PyaudioIOError from pysndfile import supported_format, supported_endianness, \ supported_encoding
Use compat module instead of ctypes-based implementation.
Use compat module instead of ctypes-based implementation.
Python
lgpl-2.1
cournape/audiolab,cournape/audiolab,cournape/audiolab
from pysndfile import formatinfo, sndfile from pysndfile import supported_format, supported_endianness, \ supported_encoding from pysndfile import PyaudioException, PyaudioIOError from _sndfile import Sndfile, Format, available_file_formats, available_encodings Use compat module i...
from _sndfile import Sndfile, Format, available_file_formats, available_encodings from compat import formatinfo, sndfile, PyaudioException, PyaudioIOError from pysndfile import supported_format, supported_endianness, \ supported_encoding
<commit_before>from pysndfile import formatinfo, sndfile from pysndfile import supported_format, supported_endianness, \ supported_encoding from pysndfile import PyaudioException, PyaudioIOError from _sndfile import Sndfile, Format, available_file_formats, available_encodings <com...
from _sndfile import Sndfile, Format, available_file_formats, available_encodings from compat import formatinfo, sndfile, PyaudioException, PyaudioIOError from pysndfile import supported_format, supported_endianness, \ supported_encoding
from pysndfile import formatinfo, sndfile from pysndfile import supported_format, supported_endianness, \ supported_encoding from pysndfile import PyaudioException, PyaudioIOError from _sndfile import Sndfile, Format, available_file_formats, available_encodings Use compat module i...
<commit_before>from pysndfile import formatinfo, sndfile from pysndfile import supported_format, supported_endianness, \ supported_encoding from pysndfile import PyaudioException, PyaudioIOError from _sndfile import Sndfile, Format, available_file_formats, available_encodings <com...
c767ee0b4392c519335a6055f64bbbb5a500e997
api_tests/base/test_pagination.py
api_tests/base/test_pagination.py
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert_is_none(MaxSizePagination.page_size_query_param)
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert MaxSizePagination.page_size_query_param is None, 'Adding varia...
Add error message for future breakers-of-tests
Add error message for future breakers-of-tests
Python
apache-2.0
HalcyonChimera/osf.io,DanielSBrown/osf.io,HalcyonChimera/osf.io,TomBaxter/osf.io,crcresearch/osf.io,crcresearch/osf.io,alexschiller/osf.io,hmoco/osf.io,rdhyee/osf.io,caneruguz/osf.io,SSJohns/osf.io,laurenrevere/osf.io,icereval/osf.io,sloria/osf.io,emetsger/osf.io,felliott/osf.io,HalcyonChimera/osf.io,mattclark/osf.io,l...
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert_is_none(MaxSizePagination.page_size_query_param) Add error mes...
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert MaxSizePagination.page_size_query_param is None, 'Adding varia...
<commit_before># -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert_is_none(MaxSizePagination.page_size_query_param...
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert MaxSizePagination.page_size_query_param is None, 'Adding varia...
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert_is_none(MaxSizePagination.page_size_query_param) Add error mes...
<commit_before># -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from api.base.pagination import MaxSizePagination class TestMaxPagination(ApiTestCase): def test_no_query_param_alters_page_size(self): assert_is_none(MaxSizePagination.page_size_query_param...
d531ea281b546d31724c021011a7145d3095dbf8
SoftLayer/tests/CLI/modules/import_test.py
SoftLayer/tests/CLI/modules/import_test.py
""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unittest.TestCase): ...
""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unittest.TestCase): ...
Print modules being imported (for easier debugging)
Print modules being imported (for easier debugging)
Python
mit
allmightyspiff/softlayer-python,underscorephil/softlayer-python,cloudify-cosmo/softlayer-python,iftekeriba/softlayer-python,skraghu/softlayer-python,kyubifire/softlayer-python,nanjj/softlayer-python,Neetuj/softlayer-python,softlayer/softlayer-python,briancline/softlayer-python
""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unittest.TestCase): ...
""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unittest.TestCase): ...
<commit_before>""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unitte...
""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unittest.TestCase): ...
""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unittest.TestCase): ...
<commit_before>""" SoftLayer.tests.CLI.modules.import_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ from SoftLayer.tests import unittest from SoftLayer.CLI.modules import get_module_list from importlib import import_module class TestImportCLIModules(unitte...
39a743463f55c3cfbbea05b4d471d01f66dd93f8
permamodel/tests/test_perma_base.py
permamodel/tests/test_perma_base.py
""" test_perma_base.py tests of the perma_base component of permamodel """ from permamodel.components import frost_number import os import numpy as np from .. import permamodel_directory, data_directory, examples_directory def test_directory_names_are_set(): assert(permamodel_directory is not None)
""" test_perma_base.py tests of the perma_base component of permamodel """ import os from nose.tools import assert_true from .. import (permamodel_directory, data_directory, examples_directory, tests_directory) def test_permamodel_directory_is_set(): assert(permamodel_directory is not None) d...
Add unit tests for all package directories
Add unit tests for all package directories
Python
mit
permamodel/permamodel,permamodel/permamodel
""" test_perma_base.py tests of the perma_base component of permamodel """ from permamodel.components import frost_number import os import numpy as np from .. import permamodel_directory, data_directory, examples_directory def test_directory_names_are_set(): assert(permamodel_directory is not None) Add unit te...
""" test_perma_base.py tests of the perma_base component of permamodel """ import os from nose.tools import assert_true from .. import (permamodel_directory, data_directory, examples_directory, tests_directory) def test_permamodel_directory_is_set(): assert(permamodel_directory is not None) d...
<commit_before>""" test_perma_base.py tests of the perma_base component of permamodel """ from permamodel.components import frost_number import os import numpy as np from .. import permamodel_directory, data_directory, examples_directory def test_directory_names_are_set(): assert(permamodel_directory is not Non...
""" test_perma_base.py tests of the perma_base component of permamodel """ import os from nose.tools import assert_true from .. import (permamodel_directory, data_directory, examples_directory, tests_directory) def test_permamodel_directory_is_set(): assert(permamodel_directory is not None) d...
""" test_perma_base.py tests of the perma_base component of permamodel """ from permamodel.components import frost_number import os import numpy as np from .. import permamodel_directory, data_directory, examples_directory def test_directory_names_are_set(): assert(permamodel_directory is not None) Add unit te...
<commit_before>""" test_perma_base.py tests of the perma_base component of permamodel """ from permamodel.components import frost_number import os import numpy as np from .. import permamodel_directory, data_directory, examples_directory def test_directory_names_are_set(): assert(permamodel_directory is not Non...
1cdcacb8ab8e78c9b325f454382d591da10b06fd
senlin_dashboard/enabled/_50_senlin.py
senlin_dashboard/enabled/_50_senlin.py
# 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 writing, software # distributed under th...
# 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 writing, software # distributed under th...
Change senlin dashboard to not be the default dashboard
Change senlin dashboard to not be the default dashboard Change-Id: I81d492bf8998e74f5bf53b0226047a070069b060 Closes-Bug: #1754183
Python
apache-2.0
stackforge/senlin-dashboard,stackforge/senlin-dashboard,openstack/senlin-dashboard,openstack/senlin-dashboard,openstack/senlin-dashboard,stackforge/senlin-dashboard,openstack/senlin-dashboard
# 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 writing, software # distributed under th...
# 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 writing, software # distributed under th...
<commit_before># 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 writing, software # distr...
# 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 writing, software # distributed under th...
# 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 writing, software # distributed under th...
<commit_before># 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 writing, software # distr...
82217bab5263984c3507a68c1b94f9d315bafc63
src/masterfile/__init__.py
src/masterfile/__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__
# -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ __package_version__ = 'masterfile {}'.format(__version__)
Add __package_version__ for version description
Add __package_version__ for version description Example: "masterfile 0.1.0dev"
Python
mit
njvack/masterfile
# -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ Add __package_version__ for version description Example: "masterfile 0.1.0dev"
# -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ __package_version__ = 'masterfile {}'.format(__version__)
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ <commit_msg>Add __package_version__ for version description Example: "masterfile 0.1.0dev"<commit_after>
# -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ __package_version__ = 'masterfile {}'.format(__version__)
# -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ Add __package_version__ for version description Example: "masterfile 0.1.0dev"# -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import ...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ <commit_msg>Add __package_version__ for version description Example: "masterfile 0.1.0dev"<commit_after># -*- coding: utf-8 -*- from __future__ import...
8525465c4f428cc0df02df7eb4fca165a9af6bdc
knowledge_repo/utils/registry.py
knowledge_repo/utils/registry.py
from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registry = {} ...
from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registry = {} ...
Update a string with the latest formatting approach
Update a string with the latest formatting approach
Python
apache-2.0
airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo
from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registry = {} ...
from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registry = {} ...
<commit_before>from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registr...
from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registry = {} ...
from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registry = {} ...
<commit_before>from abc import ABCMeta import logging logger = logging.getLogger(__name__) class SubclassRegisteringABCMeta(ABCMeta): def __init__(cls, name, bases, dct): super(SubclassRegisteringABCMeta, cls).__init__(name, bases, dct) if not hasattr(cls, '_registry'): cls._registr...
b3b216a95c4254302776fdbb67bab948ba12d3d3
ddsc_worker/tasks.py
ddsc_worker/tasks.py
from __future__ import absolute_import from ddsc_worker.celery import celery @celery.task def add(x, y): return x + y @celery.task def mul(x, y): return x + y
from __future__ import absolute_import from ddsc_worker.celery import celery import time @celery.task def add(x, y): time.sleep(10) return x + y @celery.task def mul(x, y): time.sleep(2) return x * y
Add sleep to simulate work
Add sleep to simulate work
Python
mit
ddsc/ddsc-worker
from __future__ import absolute_import from ddsc_worker.celery import celery @celery.task def add(x, y): return x + y @celery.task def mul(x, y): return x + y Add sleep to simulate work
from __future__ import absolute_import from ddsc_worker.celery import celery import time @celery.task def add(x, y): time.sleep(10) return x + y @celery.task def mul(x, y): time.sleep(2) return x * y
<commit_before>from __future__ import absolute_import from ddsc_worker.celery import celery @celery.task def add(x, y): return x + y @celery.task def mul(x, y): return x + y <commit_msg>Add sleep to simulate work<commit_after>
from __future__ import absolute_import from ddsc_worker.celery import celery import time @celery.task def add(x, y): time.sleep(10) return x + y @celery.task def mul(x, y): time.sleep(2) return x * y
from __future__ import absolute_import from ddsc_worker.celery import celery @celery.task def add(x, y): return x + y @celery.task def mul(x, y): return x + y Add sleep to simulate workfrom __future__ import absolute_import from ddsc_worker.celery import celery import time @celery.task def add(x, y): ...
<commit_before>from __future__ import absolute_import from ddsc_worker.celery import celery @celery.task def add(x, y): return x + y @celery.task def mul(x, y): return x + y <commit_msg>Add sleep to simulate work<commit_after>from __future__ import absolute_import from ddsc_worker.celery import celery impor...
ee5cd9196fc273c74fce29e4ac9c3726d3da03b6
deployer/__init__.py
deployer/__init__.py
__version__ = '0.1.6' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL)
__version__ = '0.1.7' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL)
Change development version to 0.1.7
Change development version to 0.1.7
Python
mit
totem/cluster-deployer,totem/cluster-deployer,totem/cluster-deployer
__version__ = '0.1.6' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL) Change development version to 0.1.7
__version__ = '0.1.7' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL)
<commit_before>__version__ = '0.1.6' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL) <commit_msg>Change development version to 0.1.7<commit_after>
__version__ = '0.1.7' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL)
__version__ = '0.1.6' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL) Change development version to 0.1.7__version__ = '0.1.7' __author__ = 'sukrit' import logging from conf.appconfig ...
<commit_before>__version__ = '0.1.6' __author__ = 'sukrit' import logging from conf.appconfig import LOG_FORMAT, LOG_DATE, LOG_ROOT_LEVEL logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE, level=LOG_ROOT_LEVEL) <commit_msg>Change development version to 0.1.7<commit_after>__version__ = '0.1.7' __author__ = 'suk...
73344151ce39ebc093b7915d6625096ddc2a125d
git_update/__main__.py
git_update/__main__.py
#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): """Update rep...
#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): """Update rep...
Fix bux when using Git directory
main: Fix bux when using Git directory If a Git directory is passed in, it needs to be in a list of one.
Python
mit
e4r7hbug/git_update
#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): """Update rep...
#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): """Update rep...
<commit_before>#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): ...
#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): """Update rep...
#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): """Update rep...
<commit_before>#!/usr/bin/env python """Script for updating a directory of repositories.""" import logging import os import click from .actions import update_repo @click.command() @click.option('-d', '--debug', help='Set DEBUG level logging.', is_flag=True) @click.argument('dir', default='.') def main(**kwargs): ...
2dc56ab04ea17bea05654eaec12bb27b48b0b225
robotd/cvcapture.py
robotd/cvcapture.py
import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argument_c = _cvcaptur...
import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argument_c = _cvcaptur...
Raise a `RuntimeError` if the device cannot be opened
Raise a `RuntimeError` if the device cannot be opened
Python
mit
sourcebots/robotd,sourcebots/robotd
import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argument_c = _cvcaptur...
import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argument_c = _cvcaptur...
<commit_before>import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argumen...
import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argument_c = _cvcaptur...
import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argument_c = _cvcaptur...
<commit_before>import threading from robotd.native import _cvcapture class CaptureDevice(object): def __init__(self, path=None): if path is not None: argument_c = _cvcapture.ffi.new( 'char[]', path.encode('utf-8'), ) else: argumen...
5b88a7068a6b245d99ef5998bbf659480fb85199
cbc/environment.py
cbc/environment.py
import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME' in kwargs: ...
import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME' in kwargs: ...
Remove temp directory creation... not worth it
Remove temp directory creation... not worth it
Python
bsd-3-clause
jhunkeler/cbc,jhunkeler/cbc,jhunkeler/cbc
import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME' in kwargs: ...
import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME' in kwargs: ...
<commit_before>import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME...
import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME' in kwargs: ...
import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME' in kwargs: ...
<commit_before>import os from .exceptions import IncompleteEnv from tempfile import TemporaryDirectory import time class Environment(object): def __init__(self, *args, **kwargs): self.environ = os.environ.copy() self.config = {} self.cbchome = None if 'CBC_HOME...
c05ec7f6a869712ec49c2366016b325cf18f7433
tests/test_no_broken_links.py
tests/test_no_broken_links.py
# -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(): responses = [] for rsp in crawl('http://0.0.0.0:5757/', follow_external_links=Fals...
# -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(baseurl): responses = [] for rsp in crawl(baseurl, follow_external_links=False): ...
Use the pytest fixture for the URL
Use the pytest fixture for the URL
Python
mit
alexwlchan/alexwlchan.net,alexwlchan/alexwlchan.net,alexwlchan/alexwlchan.net,alexwlchan/alexwlchan.net,alexwlchan/alexwlchan.net
# -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(): responses = [] for rsp in crawl('http://0.0.0.0:5757/', follow_external_links=Fals...
# -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(baseurl): responses = [] for rsp in crawl(baseurl, follow_external_links=False): ...
<commit_before># -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(): responses = [] for rsp in crawl('http://0.0.0.0:5757/', follow_exte...
# -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(baseurl): responses = [] for rsp in crawl(baseurl, follow_external_links=False): ...
# -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(): responses = [] for rsp in crawl('http://0.0.0.0:5757/', follow_external_links=Fals...
<commit_before># -*- encoding: utf-8 """ This test checks that all the internal links in the site (links that point to other pages on the site) are pointing at working pages. """ from http_crawler import crawl def test_no_links_are_broken(): responses = [] for rsp in crawl('http://0.0.0.0:5757/', follow_exte...
c1473e77a9b92c9bdf292017cb2f46bf8695dfd5
afnumpy/lib/shape_base.py
afnumpy/lib/shape_base.py
import afnumpy import arrayfire import numpy from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') d = len(tup) shape = list(A.shape) ...
import afnumpy import arrayfire import numpy from IPython.core.debugger import Tracer from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') ...
Make sure to cast to int as this does not work on old numpy versions
Make sure to cast to int as this does not work on old numpy versions
Python
bsd-2-clause
FilipeMaia/afnumpy,daurer/afnumpy
import afnumpy import arrayfire import numpy from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') d = len(tup) shape = list(A.shape) ...
import afnumpy import arrayfire import numpy from IPython.core.debugger import Tracer from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') ...
<commit_before>import afnumpy import arrayfire import numpy from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') d = len(tup) shape =...
import afnumpy import arrayfire import numpy from IPython.core.debugger import Tracer from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') ...
import afnumpy import arrayfire import numpy from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') d = len(tup) shape = list(A.shape) ...
<commit_before>import afnumpy import arrayfire import numpy from .. import private_utils as pu def tile(A, reps): try: tup = tuple(reps) except TypeError: tup = (reps,) if(len(tup) > 4): raise NotImplementedError('Only up to 4 dimensions are supported') d = len(tup) shape =...
8f188022d3e1ede210cfac2177dd924c9afe8f23
tests/runalldoctests.py
tests/runalldoctests.py
import doctest import glob import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass testfiles = glob.glob('*.txt') for file in testfiles: doctest.testfile(file)
import doctest import getopt import glob import sys import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass def run(pattern): if pattern is None: testfiles = glob.glob('*.txt') else: testfiles = glob.glob(pattern) fo...
Add option to pick single test file from the runner
Add option to pick single test file from the runner git-svn-id: 150a648d6f30c8fc6b9d405c0558dface314bbdd@620 b426a367-1105-0410-b9ff-cdf4ab011145
Python
bsd-3-clause
kwilcox/OWSLib,bird-house/OWSLib,ocefpaf/OWSLib,b-cube/OWSLib,geographika/OWSLib,jaygoldfinch/OWSLib,tomkralidis/OWSLib,datagovuk/OWSLib,mbertrand/OWSLib,gfusca/OWSLib,KeyproOy/OWSLib,daf/OWSLib,dblodgett-usgs/OWSLib,geopython/OWSLib,jaygoldfinch/OWSLib,daf/OWSLib,kalxas/OWSLib,Jenselme/OWSLib,jachym/OWSLib,QuLogic/OWS...
import doctest import glob import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass testfiles = glob.glob('*.txt') for file in testfiles: doctest.testfile(file) Add option to pick single test file from the runner git-svn-id: 150a648d6f30c...
import doctest import getopt import glob import sys import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass def run(pattern): if pattern is None: testfiles = glob.glob('*.txt') else: testfiles = glob.glob(pattern) fo...
<commit_before>import doctest import glob import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass testfiles = glob.glob('*.txt') for file in testfiles: doctest.testfile(file) <commit_msg>Add option to pick single test file from the runner...
import doctest import getopt import glob import sys import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass def run(pattern): if pattern is None: testfiles = glob.glob('*.txt') else: testfiles = glob.glob(pattern) fo...
import doctest import glob import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass testfiles = glob.glob('*.txt') for file in testfiles: doctest.testfile(file) Add option to pick single test file from the runner git-svn-id: 150a648d6f30c...
<commit_before>import doctest import glob import pkg_resources try: pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass testfiles = glob.glob('*.txt') for file in testfiles: doctest.testfile(file) <commit_msg>Add option to pick single test file from the runner...
acb10d5bf03be9681b222951c1accb6d419f9b32
inboxen/tests/utils.py
inboxen/tests/utils.py
## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or #...
## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or #...
Update MockRequest to work with Django 1.9's session validation
Update MockRequest to work with Django 1.9's session validation touch #124
Python
agpl-3.0
Inboxen/Inboxen,Inboxen/Inboxen,Inboxen/Inboxen,Inboxen/Inboxen
## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or #...
## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or #...
<commit_before>## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or #...
## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or #...
<commit_before>## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of th...
7b5896700a6c7408d0b25bb4dde4942eaa9032bb
solum/tests/base.py
solum/tests/base.py
# -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 applic...
# -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 applic...
Support testscenarios by default in BaseTestCase
Support testscenarios by default in BaseTestCase This allows one to use the scenario framework easily from any test class. Change-Id: Ie736138fe2d1e1d38f225547dde54df3f4b21032
Python
apache-2.0
devdattakulkarni/test-solum,gilbertpilz/solum,gilbertpilz/solum,stackforge/solum,openstack/solum,ed-/solum,ed-/solum,gilbertpilz/solum,openstack/solum,stackforge/solum,ed-/solum,ed-/solum,devdattakulkarni/test-solum,gilbertpilz/solum
# -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 applic...
# -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 applic...
<commit_before># -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 req...
# -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 applic...
# -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 applic...
<commit_before># -*- coding: utf-8 -*- # # Copyright 2013 - Noorul Islam K M # # 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 req...
8c10646768818a56ee89ff857318463da838f813
connect_ffi.py
connect_ffi.py
from cffi import FFI ffi = FFI() #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open("spotify.processed.h") as file: header = file.read() ffi.cdef(header) ffi.cdef(""" void *malloc(size_t size); void exit(int status); """) C = ffi.dlopen(None) l...
import os from cffi import FFI ffi = FFI() library_name = "spotify.processed.h" library_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), libraryName) #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open(library_path) as file: heade...
Add complete path of spotify.processed.h
Add complete path of spotify.processed.h Add complete path of spotify.processed.h so it points to the same directory where is the file
Python
apache-2.0
chukysoria/spotify-connect-web,chukysoria/spotify-connect-web,chukysoria/spotify-connect-web,chukysoria/spotify-connect-web
from cffi import FFI ffi = FFI() #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open("spotify.processed.h") as file: header = file.read() ffi.cdef(header) ffi.cdef(""" void *malloc(size_t size); void exit(int status); """) C = ffi.dlopen(None) l...
import os from cffi import FFI ffi = FFI() library_name = "spotify.processed.h" library_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), libraryName) #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open(library_path) as file: heade...
<commit_before>from cffi import FFI ffi = FFI() #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open("spotify.processed.h") as file: header = file.read() ffi.cdef(header) ffi.cdef(""" void *malloc(size_t size); void exit(int status); """) C = ffi...
import os from cffi import FFI ffi = FFI() library_name = "spotify.processed.h" library_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), libraryName) #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open(library_path) as file: heade...
from cffi import FFI ffi = FFI() #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open("spotify.processed.h") as file: header = file.read() ffi.cdef(header) ffi.cdef(""" void *malloc(size_t size); void exit(int status); """) C = ffi.dlopen(None) l...
<commit_before>from cffi import FFI ffi = FFI() #Header generated with cpp spotify.h > spotify.processed.h && sed -i 's/__extension__//g' spotify.processed.h with open("spotify.processed.h") as file: header = file.read() ffi.cdef(header) ffi.cdef(""" void *malloc(size_t size); void exit(int status); """) C = ffi...
ede7158c611bf618ee03989d33c5fe6a091b7d66
tests/testapp/models.py
tests/testapp/models.py
from __future__ import absolute_import import sys from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible import rules @python_2_unicode_compatible class Book(models.Model): isbn = models.CharField(max_length=50, unique=True) title = model...
from __future__ import absolute_import import sys from django.conf import settings from django.db import models try: from django.utils.encoding import python_2_unicode_compatible except ImportError: def python_2_unicode_compatible(c): return c import rules @python_2_unicode_compatible class Book(m...
Add shim for python_2_unicode_compatible in tests
Add shim for python_2_unicode_compatible in tests
Python
mit
dfunckt/django-rules,dfunckt/django-rules,ticosax/django-rules,ticosax/django-rules,dfunckt/django-rules,ticosax/django-rules
from __future__ import absolute_import import sys from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible import rules @python_2_unicode_compatible class Book(models.Model): isbn = models.CharField(max_length=50, unique=True) title = model...
from __future__ import absolute_import import sys from django.conf import settings from django.db import models try: from django.utils.encoding import python_2_unicode_compatible except ImportError: def python_2_unicode_compatible(c): return c import rules @python_2_unicode_compatible class Book(m...
<commit_before>from __future__ import absolute_import import sys from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible import rules @python_2_unicode_compatible class Book(models.Model): isbn = models.CharField(max_length=50, unique=True) ...
from __future__ import absolute_import import sys from django.conf import settings from django.db import models try: from django.utils.encoding import python_2_unicode_compatible except ImportError: def python_2_unicode_compatible(c): return c import rules @python_2_unicode_compatible class Book(m...
from __future__ import absolute_import import sys from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible import rules @python_2_unicode_compatible class Book(models.Model): isbn = models.CharField(max_length=50, unique=True) title = model...
<commit_before>from __future__ import absolute_import import sys from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible import rules @python_2_unicode_compatible class Book(models.Model): isbn = models.CharField(max_length=50, unique=True) ...
0f546ce883bffa52d81ebfdc6eba005d6f2eca22
build.py
build.py
#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', target], ...
#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', target], ...
Use more explicit variable names.
Use more explicit variable names.
Python
isc
eliteraspberries/minipkg,eliteraspberries/minipkg
#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', target], ...
#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', target], ...
<commit_before>#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', t...
#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', target], ...
#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', target], ...
<commit_before>#!/usr/bin/env python import os import subprocess import sys def build(pkgpath): os.chdir(pkgpath) targets = [ 'build', 'package', 'install', 'clean', 'clean-depends', ] for target in targets: p = subprocess.Popen( ['bmake', t...
fa85cbfe499599e8a0d667f25acae7fedcc13fb2
invocations/testing.py
invocations/testing.py
from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'." }) def test(ctx, module=None, runner='spec'): """ Run a Spec or Nose-powered internal test suite. """ # Allow selecting specific submodule specific_m...
from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'.", 'opts': "Extra flags for the test runner", }) def test(ctx, module=None, runner='spec', opts=None): """ Run a Spec or Nose-powered internal test suite. ...
Add flag passthrough for 'test'
Add flag passthrough for 'test'
Python
bsd-2-clause
singingwolfboy/invocations,pyinvoke/invocations,mrjmad/invocations,alex/invocations
from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'." }) def test(ctx, module=None, runner='spec'): """ Run a Spec or Nose-powered internal test suite. """ # Allow selecting specific submodule specific_m...
from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'.", 'opts': "Extra flags for the test runner", }) def test(ctx, module=None, runner='spec', opts=None): """ Run a Spec or Nose-powered internal test suite. ...
<commit_before>from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'." }) def test(ctx, module=None, runner='spec'): """ Run a Spec or Nose-powered internal test suite. """ # Allow selecting specific submodule...
from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'.", 'opts': "Extra flags for the test runner", }) def test(ctx, module=None, runner='spec', opts=None): """ Run a Spec or Nose-powered internal test suite. ...
from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'." }) def test(ctx, module=None, runner='spec'): """ Run a Spec or Nose-powered internal test suite. """ # Allow selecting specific submodule specific_m...
<commit_before>from invoke import ctask as task @task(help={ 'module': "Just runs tests/STRING.py.", 'runner': "Use STRING to run tests instead of 'spec'." }) def test(ctx, module=None, runner='spec'): """ Run a Spec or Nose-powered internal test suite. """ # Allow selecting specific submodule...
2fa2a2741a4f8e48d92d476859f73d46dc84a19a
apps/curia_vista/testing/test_council.py
apps/curia_vista/testing/test_council.py
from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() def test___...
from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() def test___...
Make the testing coverage great again
Make the testing coverage great again
Python
agpl-3.0
rettichschnidi/politkarma,rettichschnidi/politkarma,rettichschnidi/politkarma,rettichschnidi/politkarma
from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() def test___...
from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() def test___...
<commit_before>from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() ...
from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() def test___...
from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() def test___...
<commit_before>from django.test import TestCase from apps.curia_vista.models import Council class TestCouncil(TestCase): def setUp(self): self.T = Council(id=1, updated='2010-12-26T13:07:49Z', abbreviation='NR', code='RAT_1_', type='N', name='Nationalrat') self.T.save() ...
7f711f7da0003cf6f0335f33fb358e91d4e91cf7
simpleadmindoc/management/commands/docgenapp.py
simpleadmindoc/management/commands/docgenapp.py
from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." def handle_app(self, app, **options): # check if simpleadmindoc directory is setup from django.db import models from simpleadmindoc.generat...
from optparse import make_option from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." option_list = AppCommand.option_list + ( make_option('--locale', '-l', default=None, dest='locale', help='...
Add option to set locale for created documentation
Add option to set locale for created documentation
Python
bsd-3-clause
bmihelac/django-simpleadmindoc,bmihelac/django-simpleadmindoc
from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." def handle_app(self, app, **options): # check if simpleadmindoc directory is setup from django.db import models from simpleadmindoc.generat...
from optparse import make_option from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." option_list = AppCommand.option_list + ( make_option('--locale', '-l', default=None, dest='locale', help='...
<commit_before>from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." def handle_app(self, app, **options): # check if simpleadmindoc directory is setup from django.db import models from simplea...
from optparse import make_option from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." option_list = AppCommand.option_list + ( make_option('--locale', '-l', default=None, dest='locale', help='...
from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." def handle_app(self, app, **options): # check if simpleadmindoc directory is setup from django.db import models from simpleadmindoc.generat...
<commit_before>from django.core.management.base import AppCommand class Command(AppCommand): help = "Generate sphinx documentation skeleton for given apps." def handle_app(self, app, **options): # check if simpleadmindoc directory is setup from django.db import models from simplea...
e858be9072b175545e17631ccd838f9f7d8a7e21
tensorflow_datasets/dataset_collections/longt5/longt5.py
tensorflow_datasets/dataset_collections/longt5/longt5.py
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 appl...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 appl...
Add homepage to LongT5 dataset collection
Add homepage to LongT5 dataset collection PiperOrigin-RevId: 479013251
Python
apache-2.0
tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 appl...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 appl...
<commit_before># coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 r...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 appl...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 appl...
<commit_before># coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 r...
af10508437be2001e9e12a369c4e8a973fd50ee8
astral/api/handlers/node.py
astral/api/handlers/node.py
from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import sys import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the list of known n...
from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the list of known nodes, ...
Clean up Node delete handler.
Clean up Node delete handler.
Python
mit
peplin/astral
from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import sys import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the list of known n...
from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the list of known nodes, ...
<commit_before>from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import sys import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the ...
from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the list of known nodes, ...
from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import sys import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the list of known n...
<commit_before>from astral.api.handlers.base import BaseHandler from astral.models.node import Node from astral.api.client import NodesAPI import sys import logging log = logging.getLogger(__name__) class NodeHandler(BaseHandler): def delete(self, node_uuid=None): """Remove the requesting node from the ...
75536b58ab934b3870236f2124dfb505e0a9299f
dvox/models/types.py
dvox/models/types.py
from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value))
from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value)) class StringEnum(String): """Store an enu...
Add type for storing enums
Add type for storing enums
Python
mit
numberoverzero/dvox
from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value)) Add type for storing enums
from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value)) class StringEnum(String): """Store an enu...
<commit_before>from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value)) <commit_msg>Add type for storing...
from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value)) class StringEnum(String): """Store an enu...
from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value)) Add type for storing enumsfrom bloop import Str...
<commit_before>from bloop import String class Position(String): """ stores [2, 3, 4] as '2:3:4' """ def dynamo_load(self, value): values = value.split(":") return list(map(int, values)) def dynamo_dump(self, value): return ":".join(map(str, value)) <commit_msg>Add type for storing...
46259730666b967675336e7bda5014b17419614d
test/parse_dive.py
test/parse_dive.py
#! /usr/bin/python import argparse from xml.dom import minidom parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) nodes = doc.get...
#! /usr/bin/python import argparse from xml.dom import minidom O2=21 H2=0 parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) ga...
Change the xml parser to output gas mixture content
Change the xml parser to output gas mixture content
Python
isc
AquaBSD/libbuhlmann,AquaBSD/libbuhlmann,AquaBSD/libbuhlmann
#! /usr/bin/python import argparse from xml.dom import minidom parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) nodes = doc.get...
#! /usr/bin/python import argparse from xml.dom import minidom O2=21 H2=0 parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) ga...
<commit_before>#! /usr/bin/python import argparse from xml.dom import minidom parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) ...
#! /usr/bin/python import argparse from xml.dom import minidom O2=21 H2=0 parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) ga...
#! /usr/bin/python import argparse from xml.dom import minidom parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) nodes = doc.get...
<commit_before>#! /usr/bin/python import argparse from xml.dom import minidom parser = argparse.ArgumentParser(description='Parse a dive in xml formt.') parser.add_argument('-f', '--file', required=True, dest='path', help='path to xml file') args = parser.parse_args() path = args.path doc = minidom.parse(path) ...
091b543fd8668d6f53bf126492aaaf47251d0672
src/ggrc_basic_permissions/roles/ProgramEditor.py
src/ggrc_basic_permissions/roles/ProgramEditor.py
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and unmap object...
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and unmap object...
Add support for program editor to create and update snapshots
Add support for program editor to create and update snapshots
Python
apache-2.0
selahssea/ggrc-core,plamut/ggrc-core,AleksNeStu/ggrc-core,VinnieJohns/ggrc-core,plamut/ggrc-core,selahssea/ggrc-core,selahssea/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,AleksNeStu/ggrc-core,VinnieJohns/ggrc-core,VinnieJohns/ggrc-core,plamut/ggrc-core,selahssea/ggrc-core,VinnieJohns/ggrc-core,AleksNeStu/ggrc-core
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and unmap object...
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and unmap object...
<commit_before># Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and...
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and unmap object...
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and unmap object...
<commit_before># Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> scope = "Private Program" description = """ A user with authorization to edit mapping objects related to an access controlled program.<br/><br/>When a person has this role they can map and...
6876b6584cd90cca60fc21a53967dc1dfee6f2b4
testing/models/test_epic.py
testing/models/test_epic.py
import pytest from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>'
import pytest try: from unittest import mock except ImportError: import mock from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>' ...
Add test for simbad query
Add test for simbad query
Python
mit
mindriot101/k2catalogue
import pytest from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>' Add test for simbad query
import pytest try: from unittest import mock except ImportError: import mock from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>' ...
<commit_before>import pytest from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>' <commit_msg>Add test for simbad query<commit_after>
import pytest try: from unittest import mock except ImportError: import mock from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>' ...
import pytest from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>' Add test for simbad queryimport pytest try: from unittest import m...
<commit_before>import pytest from k2catalogue import models @pytest.fixture def epic(): return models.EPIC(epic_id=12345, ra=12.345, dec=67.894, mag=None, campaign_id=1) def test_repr(epic): assert repr(epic) == '<EPIC: 12345>' <commit_msg>Add test for simbad query<commit_after>impo...
94eecbd714e82ce179ca9985f9dd89dc72995070
seleniumbase/fixtures/page_utils.py
seleniumbase/fixtures/page_utils.py
""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of quotes. """ ...
""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of quotes. """ ...
Add a method to extract the domain url from a full url
Add a method to extract the domain url from a full url
Python
mit
ktp420/SeleniumBase,mdmintz/SeleniumBase,possoumous/Watchers,seleniumbase/SeleniumBase,mdmintz/seleniumspot,possoumous/Watchers,mdmintz/SeleniumBase,possoumous/Watchers,ktp420/SeleniumBase,ktp420/SeleniumBase,mdmintz/SeleniumBase,ktp420/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/Selen...
""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of quotes. """ ...
""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of quotes. """ ...
<commit_before>""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of q...
""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of quotes. """ ...
""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of quotes. """ ...
<commit_before>""" This module contains useful utility methods. """ def jq_format(code): """ Use before throwing raw code such as 'div[tab="advanced"]' into jQuery. Selectors with quotes inside of quotes would otherwise break jQuery. This is similar to "json.dumps(value)", but with one less layer of q...
3492ae03c9cfc8322ba60522779c7c0eeb642dd3
server/models/event_subscription.py
server/models/event_subscription.py
"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, db.ForeignKey('u...
"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, db.ForeignKey('u...
Fix issue with deleting event subscriptions
Fix issue with deleting event subscriptions
Python
mit
bnotified/api,bnotified/api
"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, db.ForeignKey('u...
"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, db.ForeignKey('u...
<commit_before>"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, d...
"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, db.ForeignKey('u...
"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, db.ForeignKey('u...
<commit_before>"""This module contains the SQLAlchemy EventSubscription class definition.""" from server.models.db import db class EventSubscription(db.Model): """SQLAlchemy EventSubscription class definition.""" __tablename__ = 'event_subscriptions' user_id = db.Column( 'user_id', db.Integer, d...
7ad80225cd593689b33c59db0b8eb3e9cfd6e763
tests/noreferences_tests.py
tests/noreferences_tests.py
"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2020 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding references to section.""...
"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2021 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding references to section.""...
Remove deprecated "gen" parameter of NoReferencesBot
[tests] Remove deprecated "gen" parameter of NoReferencesBot Change-Id: I8140117cfc2278cfec751164a6d1d8f12bcaef84
Python
mit
wikimedia/pywikibot-core,wikimedia/pywikibot-core
"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2020 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding references to section.""...
"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2021 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding references to section.""...
<commit_before>"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2020 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding reference...
"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2021 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding references to section.""...
"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2020 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding references to section.""...
<commit_before>"""Test noreferences bot module.""" # # (C) Pywikibot team, 2018-2020 # # Distributed under the terms of the MIT license. # import pywikibot from scripts.noreferences import NoReferencesBot from tests.aspects import TestCase, unittest class TestAddingReferences(TestCase): """Test adding reference...
f14b1aa56b838469f63cec22c87e2e8c0c3f17c6
csp.py
csp.py
csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.ssl.fastly.net',...
csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.ssl.fastly.net',...
Allow more discourse hostnames to fix CSP error
Allow more discourse hostnames to fix CSP error
Python
apache-2.0
HTTPArchive/beta.httparchive.org,HTTPArchive/beta.httparchive.org,HTTPArchive/beta.httparchive.org
csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.ssl.fastly.net',...
csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.ssl.fastly.net',...
<commit_before>csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.s...
csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.ssl.fastly.net',...
csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.ssl.fastly.net',...
<commit_before>csp = { 'default-src': '\'self\'', 'style-src': [ '\'self\'', '\'unsafe-inline\'' ], 'script-src': [ '\'self\'', 'cdn.httparchive.org', 'www.google-analytics.com', 'use.fontawesome.com', 'cdn.speedcurve.com', 'spdcrv.global.s...
a1d8a81bbd25404b1109688bded9bea923ba6771
formly/tests/urls.py
formly/tests/urls.py
from django.conf.urls import include, url urlpatterns = [ url(r"^", include("formly.urls", namespace="formly")), ]
from django.conf.urls import include, url from django.views.generic import TemplateView urlpatterns = [ url(r"^home/", TemplateView.as_view(template_name="no-ie.html"), name="home"), url(r"^", include("formly.urls", namespace="formly")), ]
Add "home" url for testing
Add "home" url for testing
Python
bsd-3-clause
eldarion/formly,eldarion/formly
from django.conf.urls import include, url urlpatterns = [ url(r"^", include("formly.urls", namespace="formly")), ] Add "home" url for testing
from django.conf.urls import include, url from django.views.generic import TemplateView urlpatterns = [ url(r"^home/", TemplateView.as_view(template_name="no-ie.html"), name="home"), url(r"^", include("formly.urls", namespace="formly")), ]
<commit_before>from django.conf.urls import include, url urlpatterns = [ url(r"^", include("formly.urls", namespace="formly")), ] <commit_msg>Add "home" url for testing<commit_after>
from django.conf.urls import include, url from django.views.generic import TemplateView urlpatterns = [ url(r"^home/", TemplateView.as_view(template_name="no-ie.html"), name="home"), url(r"^", include("formly.urls", namespace="formly")), ]
from django.conf.urls import include, url urlpatterns = [ url(r"^", include("formly.urls", namespace="formly")), ] Add "home" url for testingfrom django.conf.urls import include, url from django.views.generic import TemplateView urlpatterns = [ url(r"^home/", TemplateView.as_view(template_name="no-ie.html"), ...
<commit_before>from django.conf.urls import include, url urlpatterns = [ url(r"^", include("formly.urls", namespace="formly")), ] <commit_msg>Add "home" url for testing<commit_after>from django.conf.urls import include, url from django.views.generic import TemplateView urlpatterns = [ url(r"^home/", TemplateV...
765864250faba841a2ee8f2fa669f57a25661737
testapp/testapp/urls.py
testapp/testapp/urls.py
"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
Add PDFDisplay view to the test app
Add PDFDisplay view to the test app
Python
isc
hobarrera/django-afip,hobarrera/django-afip
"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
<commit_before>"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='h...
"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
<commit_before>"""testapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='h...
e3d3893bf4cb8aa782efb05771339a0d59451fe9
xbrowse_server/base/management/commands/list_projects.py
xbrowse_server/base/management/commands/list_projects.py
from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to generate a ped file for a given project""" def handle(self, *args, **options): projects = Project.objects.all() for project in projects: ind...
from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to print out basic stats on some or all projects. Optionally takes a list of project_ids. """ def handle(self, *args, **options): if args: projects = [...
Print additional stats for each projects
Print additional stats for each projects
Python
agpl-3.0
ssadedin/seqr,macarthur-lab/seqr,macarthur-lab/seqr,ssadedin/seqr,ssadedin/seqr,macarthur-lab/seqr,macarthur-lab/xbrowse,macarthur-lab/xbrowse,macarthur-lab/xbrowse,ssadedin/seqr,ssadedin/seqr,macarthur-lab/seqr,macarthur-lab/xbrowse,macarthur-lab/seqr,macarthur-lab/xbrowse,macarthur-lab/xbrowse
from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to generate a ped file for a given project""" def handle(self, *args, **options): projects = Project.objects.all() for project in projects: ind...
from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to print out basic stats on some or all projects. Optionally takes a list of project_ids. """ def handle(self, *args, **options): if args: projects = [...
<commit_before>from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to generate a ped file for a given project""" def handle(self, *args, **options): projects = Project.objects.all() for project in projects: ...
from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to print out basic stats on some or all projects. Optionally takes a list of project_ids. """ def handle(self, *args, **options): if args: projects = [...
from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to generate a ped file for a given project""" def handle(self, *args, **options): projects = Project.objects.all() for project in projects: ind...
<commit_before>from django.core.management.base import BaseCommand from xbrowse_server.base.models import Project class Command(BaseCommand): """Command to generate a ped file for a given project""" def handle(self, *args, **options): projects = Project.objects.all() for project in projects: ...
870600482bd7d2b77542c169f78f125c17cec677
editorsnotes/api/serializers/activity.py
editorsnotes/api/serializers/activity.py
from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe class ActivitySeria...
from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe class ActivitySeria...
Fix bug in action serializer
Fix bug in action serializer Don't try to get URL of items that have been deleted
Python
agpl-3.0
editorsnotes/editorsnotes,editorsnotes/editorsnotes
from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe class ActivitySeria...
from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe class ActivitySeria...
<commit_before>from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe clas...
from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe class ActivitySeria...
from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe class ActivitySeria...
<commit_before>from rest_framework import serializers from editorsnotes.main.models.auth import (LogActivity, ADDITION, CHANGE, DELETION) VERSION_ACTIONS = { ADDITION: 'added', CHANGE: 'changed', DELETION: 'deleted' } # TODO: make these fields nested, maybe clas...
d5820bef80ea4bdb871380dbfe41db12290fc5f8
functest/opnfv_tests/features/odl_sfc.py
functest/opnfv_tests/features/odl_sfc.py
#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.core.feature_base...
#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.core.feature_base...
Make SFC test a python call to main()
Make SFC test a python call to main() Instead of python -> bash -> python, call the SFC test using the execute() method that is inherited from FeatureBase and it's a bash call by default. With this change, we call the SFC test using main() of run_tests.py of SFC repo and will have real time output. Change-Id: I6d5982...
Python
apache-2.0
mywulin/functest,opnfv/functest,mywulin/functest,opnfv/functest
#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.core.feature_base...
#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.core.feature_base...
<commit_before>#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.co...
#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.core.feature_base...
#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.core.feature_base...
<commit_before>#!/usr/bin/python # # Copyright (c) 2016 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import functest.co...
6fa0db63d12f11f0d11a77c2d0799cd506196b5b
chatterbot/utils/clean.py
chatterbot/utils/clean.py
import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # Remove consecut...
import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # Remove consecut...
Update python3 html parser depricated method.
Update python3 html parser depricated method.
Python
bsd-3-clause
Reinaesaya/OUIRL-ChatBot,gunthercox/ChatterBot,Gustavo6046/ChatterBot,Reinaesaya/OUIRL-ChatBot,maclogan/VirtualPenPal,davizucon/ChatterBot,vkosuri/ChatterBot
import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # Remove consecut...
import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # Remove consecut...
<commit_before>import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # ...
import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # Remove consecut...
import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # Remove consecut...
<commit_before>import re def clean_whitespace(text): """ Remove any extra whitespace and line breaks as needed. """ # Replace linebreaks with spaces text = text.replace("\n", " ").replace("\r", " ").replace("\t", " ") # Remove any leeding or trailing whitespace text = text.strip() # ...
36deb1b445ba631666a0e4870f4e46c566d3ea78
sms_939/controllers/sms_notification_controller.py
sms_939/controllers/sms_notification_controller.py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py...
CHANGE mnc route to POST message
CHANGE mnc route to POST message
Python
agpl-3.0
eicher31/compassion-switzerland,CompassionCH/compassion-switzerland,ecino/compassion-switzerland,eicher31/compassion-switzerland,CompassionCH/compassion-switzerland,ecino/compassion-switzerland,ecino/compassion-switzerland,CompassionCH/compassion-switzerland,eicher31/compassion-switzerland
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file ...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file ...
6e0e2a1e38506e85302197d4f700a924a609390c
pandas/compat/openpyxl_compat.py
pandas/compat/openpyxl_compat.py
""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is installed and is...
""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is installed and is...
Fix mismatched logic error in compatibility check
BUG: Fix mismatched logic error in compatibility check
Python
bsd-3-clause
pratapvardhan/pandas,nmartensen/pandas,cbertinato/pandas,jmmease/pandas,kdebrab/pandas,Winand/pandas,DGrady/pandas,MJuddBooth/pandas,jorisvandenbossche/pandas,jreback/pandas,jmmease/pandas,harisbal/pandas,DGrady/pandas,harisbal/pandas,gfyoung/pandas,jorisvandenbossche/pandas,jreback/pandas,jreback/pandas,cbertinato/pan...
""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is installed and is...
""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is installed and is...
<commit_before>""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is i...
""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is installed and is...
""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is installed and is...
<commit_before>""" Detect incompatible version of OpenPyXL GH7169 """ from distutils.version import LooseVersion start_ver = '1.6.1' stop_ver = '2.0.0' def is_compat(): """Detect whether the installed version of openpyxl is supported. Returns ------- compat : bool ``True`` if openpyxl is i...
a36e63037ce279d07a04074baf8c9f756dd8128a
wmtexe/cmi/make.py
wmtexe/cmi/make.py
import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', help='Project description file') args = parser.parse_args() try: with open(args.file, 'r') as fp: make_project(yaml.load(fp...
import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', type=argparse.FileType('r'), help='Project description file') args = parser.parse_args() try: make_project(yaml...
Read input file from stdin.
Read input file from stdin.
Python
mit
csdms/wmt-exe,csdms/wmt-exe,csdms/wmt-exe,csdms/wmt-exe
import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', help='Project description file') args = parser.parse_args() try: with open(args.file, 'r') as fp: make_project(yaml.load(fp...
import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', type=argparse.FileType('r'), help='Project description file') args = parser.parse_args() try: make_project(yaml...
<commit_before>import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', help='Project description file') args = parser.parse_args() try: with open(args.file, 'r') as fp: make_proje...
import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', type=argparse.FileType('r'), help='Project description file') args = parser.parse_args() try: make_project(yaml...
import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', help='Project description file') args = parser.parse_args() try: with open(args.file, 'r') as fp: make_project(yaml.load(fp...
<commit_before>import argparse import yaml from .bocca import make_project, ProjectExistsError def main(): parser = argparse.ArgumentParser() parser.add_argument('file', help='Project description file') args = parser.parse_args() try: with open(args.file, 'r') as fp: make_proje...
62c3fcd65b4c7d3cc4732885cf81640607a04480
marty/commands/remotes.py
marty/commands/remotes.py
import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [('<b>NAME</b>',...
import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [('<b>NAME</b>',...
Clean useless format string in remote command
Clean useless format string in remote command
Python
mit
NaPs/Marty
import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [('<b>NAME</b>',...
import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [('<b>NAME</b>',...
<commit_before>import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [...
import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [('<b>NAME</b>',...
import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [('<b>NAME</b>',...
<commit_before>import datetime import arrow from marty.commands import Command from marty.printer import printer class Remotes(Command): """ Show the list of configured remotes. """ help = 'Show the list of configured remotes' def run(self, args, config, storage, remotes): table_lines = [...
24a6519b7d6a9e961adff1b23a3d64231fc9d233
frappe/integrations/doctype/social_login_key/test_social_login_key.py
frappe/integrations/doctype/social_login_key/test_social_login_key.py
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestCase): def test...
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestCase): def test...
Add missing method required for test
test: Add missing method required for test - backported create_or_update_social_login_key from v13
Python
mit
vjFaLk/frappe,vjFaLk/frappe,vjFaLk/frappe,vjFaLk/frappe
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestCase): def test...
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestCase): def test...
<commit_before># -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestC...
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestCase): def test...
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestCase): def test...
<commit_before># -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe from frappe.integrations.doctype.social_login_key.social_login_key import BaseUrlNotSetError import unittest class TestSocialLoginKey(unittest.TestC...
2363cf9733006f08f2dc1061562bc29788206f21
fabfile.py
fabfile.py
from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): with cd("~/vagrant-installers"): run("git pull") @task def all(): "Run the task against all hosts." for _, value in env.roledefs.iteritems(): ...
from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): "Updates the installer generate code on the host." with cd("~/vagrant-installers"): run("git pull") @task def build(): "Builds the installer." ...
Add fab task to build
Add fab task to build
Python
mit
redhat-developer-tooling/vagrant-installers,mitchellh/vagrant-installers,chrisroberts/vagrant-installers,redhat-developer-tooling/vagrant-installers,chrisroberts/vagrant-installers,chrisroberts/vagrant-installers,mitchellh/vagrant-installers,redhat-developer-tooling/vagrant-installers,chrisroberts/vagrant-installers,ch...
from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): with cd("~/vagrant-installers"): run("git pull") @task def all(): "Run the task against all hosts." for _, value in env.roledefs.iteritems(): ...
from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): "Updates the installer generate code on the host." with cd("~/vagrant-installers"): run("git pull") @task def build(): "Builds the installer." ...
<commit_before>from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): with cd("~/vagrant-installers"): run("git pull") @task def all(): "Run the task against all hosts." for _, value in env.roledefs.it...
from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): "Updates the installer generate code on the host." with cd("~/vagrant-installers"): run("git pull") @task def build(): "Builds the installer." ...
from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): with cd("~/vagrant-installers"): run("git pull") @task def all(): "Run the task against all hosts." for _, value in env.roledefs.iteritems(): ...
<commit_before>from fabric.api import cd, env, run, task try: import fabfile_local _pyflakes = fabfile_local except ImportError: pass @task def update(): with cd("~/vagrant-installers"): run("git pull") @task def all(): "Run the task against all hosts." for _, value in env.roledefs.it...
6c74b18372d3945f909ad63f6f58e11e7658282a
openacademy/model/openacademy_session.py
openacademy/model/openacademy_session.py
# -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instruct...
# -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instruct...
Add domain or and ilike
[REF] openacademy: Add domain or and ilike
Python
apache-2.0
deivislaya/openacademy-project
# -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instruct...
# -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instruct...
<commit_before># -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seat...
# -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instruct...
# -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instruct...
<commit_before># -*- coding: utf-8 -*- from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seat...