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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d42b9da06d5cde89a6116d711fc6ae216256cabc | shell/view/home/IconLayout.py | shell/view/home/IconLayout.py | import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, icon, x, y):
i... | import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, icon, x, y):
i... | Use get/set_property rather than direct accessors | Use get/set_property rather than direct accessors
| Python | lgpl-2.1 | Daksh/sugar-toolkit-gtk3,manuq/sugar-toolkit-gtk3,tchx84/sugar-toolkit-gtk3,quozl/sugar-toolkit-gtk3,tchx84/sugar-toolkit-gtk3,i5o/sugar-toolkit-gtk3,puneetgkaur/backup_sugar_sugartoolkit,quozl/sugar-toolkit-gtk3,godiard/sugar-toolkit-gtk3,tchx84/debian-pkg-sugar-toolkit,tchx84/debian-pkg-sugar-toolkit,ceibal-tatu/suga... | import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, icon, x, y):
i... | import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, icon, x, y):
i... | <commit_before>import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, i... | import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, icon, x, y):
i... | import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, icon, x, y):
i... | <commit_before>import random
class IconLayout:
def __init__(self, width, height):
self._icons = []
self._width = width
self._height = height
def add_icon(self, icon):
self._icons.append(icon)
self._layout_icon(icon)
def remove_icon(self, icon):
self._icons.remove(icon)
def _is_valid_position(self, i... |
161cd07fca220494e675b1da674dbf57254a28b3 | scripts/spat_gencomms.py | scripts/spat_gencomms.py | import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 500000]
if len... | import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 500000]
if len... | Change to ensure that the Svals were handled as a list | Change to ensure that the Svals were handled as a list
| Python | mit | weecology/mete-spatial,weecology/mete-spatial,weecology/mete-spatial,weecology/mete-spatial | import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 500000]
if len... | import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 500000]
if len... | <commit_before>import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 5000... | import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 500000]
if len... | import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 500000]
if len... | <commit_before>import spat_community_generation as sg
import sys
Svals = [10, 11, 13, 14, 16, 18, 21, 23, 26, 30, 34, 38, 43, 48, 55, 62, 70,
78, 89, 100]
Nvals = [120, 186, 289, 447, 694, 1076, 1668, 2587, 4011, 6220, 9646, 14957,
23193, 35965, 55769, 86479, 134099, 207941, 322444, 5000... |
911094754fc908d99009c5cfec22ac9033ffd472 | my_account_helper/model/__init__.py | my_account_helper/model/__init__.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 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 __open... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emmanuel Mathier <emmanuel.mathier@gmail.ch>
#
# The licence is in the f... | Fix comment header on init | Fix comment header on init
| Python | agpl-3.0 | Secheron/compassion-switzerland,CompassionCH/compassion-switzerland,eicher31/compassion-switzerland,eicher31/compassion-switzerland,CompassionCH/compassion-switzerland,Secheron/compassion-switzerland,CompassionCH/compassion-switzerland,ecino/compassion-switzerland,MickSandoz/compassion-switzerland,ecino/compassion-swit... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 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 __open... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emmanuel Mathier <emmanuel.mathier@gmail.ch>
#
# The licence is in the f... | <commit_before># -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in ... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emmanuel Mathier <emmanuel.mathier@gmail.ch>
#
# The licence is in the f... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 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 __open... | <commit_before># -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in ... |
5c61d7f125078cb6b3bd0c5700ae9219baab0078 | webapp/tests/test_dashboard.py | webapp/tests/test_dashboard.py | from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('graphite.dashboard.views.dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
| from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
| Update reverse call to use named URL | Update reverse call to use named URL
| Python | apache-2.0 | redice/graphite-web,dbn/graphite-web,Skyscanner/graphite-web,penpen/graphite-web,lyft/graphite-web,esnet/graphite-web,bpaquet/graphite-web,atnak/graphite-web,section-io/graphite-web,kkdk5535/graphite-web,cosm0s/graphite-web,cgvarela/graphite-web,gwaldo/graphite-web,redice/graphite-web,edwardmlyte/graphite-web,atnak/gra... | from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('graphite.dashboard.views.dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
Update reverse call to use ... | from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
| <commit_before>from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('graphite.dashboard.views.dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
<commit_msg>... | from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
| from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('graphite.dashboard.views.dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
Update reverse call to use ... | <commit_before>from django.core.urlresolvers import reverse
from django.test import TestCase
class DashboardTest(TestCase):
def test_dashboard(self):
url = reverse('graphite.dashboard.views.dashboard')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
<commit_msg>... |
4124297475fb7d77bf492e721a74fcfa02547a14 | benchmark/bench_logger_level_low.py | benchmark/bench_logger_level_low.py | """Benchmarks too low logger levels"""
from logbook import Logger, ERROR
log = Logger('Test logger')
log.level = ERROR
def run():
for x in xrange(500):
log.warning('this is not handled')
| """Benchmarks too low logger levels"""
from logbook import Logger, StreamHandler, ERROR
from cStringIO import StringIO
log = Logger('Test logger')
log.level = ERROR
def run():
out = StringIO()
with StreamHandler(out):
for x in xrange(500):
log.warning('this is not handled')
| Create a stream handler even though it's not used to have the same overhead on both logbook and logging | Create a stream handler even though it's not used to have the same overhead on both logbook and logging
| Python | bsd-3-clause | DasIch/logbook,maykinmedia/logbook,alonho/logbook,fayazkhan/logbook,maykinmedia/logbook,Rafiot/logbook,dvarrazzo/logbook,mbr/logbook,mitsuhiko/logbook,dvarrazzo/logbook,RazerM/logbook,FintanH/logbook,omergertel/logbook,dommert/logbook,DasIch/logbook,alex/logbook,alonho/logbook,pombredanne/logbook,alonho/logbook,alex/lo... | """Benchmarks too low logger levels"""
from logbook import Logger, ERROR
log = Logger('Test logger')
log.level = ERROR
def run():
for x in xrange(500):
log.warning('this is not handled')
Create a stream handler even though it's not used to have the same overhead on both logbook and logging | """Benchmarks too low logger levels"""
from logbook import Logger, StreamHandler, ERROR
from cStringIO import StringIO
log = Logger('Test logger')
log.level = ERROR
def run():
out = StringIO()
with StreamHandler(out):
for x in xrange(500):
log.warning('this is not handled')
| <commit_before>"""Benchmarks too low logger levels"""
from logbook import Logger, ERROR
log = Logger('Test logger')
log.level = ERROR
def run():
for x in xrange(500):
log.warning('this is not handled')
<commit_msg>Create a stream handler even though it's not used to have the same overhead on both logboo... | """Benchmarks too low logger levels"""
from logbook import Logger, StreamHandler, ERROR
from cStringIO import StringIO
log = Logger('Test logger')
log.level = ERROR
def run():
out = StringIO()
with StreamHandler(out):
for x in xrange(500):
log.warning('this is not handled')
| """Benchmarks too low logger levels"""
from logbook import Logger, ERROR
log = Logger('Test logger')
log.level = ERROR
def run():
for x in xrange(500):
log.warning('this is not handled')
Create a stream handler even though it's not used to have the same overhead on both logbook and logging"""Benchmarks ... | <commit_before>"""Benchmarks too low logger levels"""
from logbook import Logger, ERROR
log = Logger('Test logger')
log.level = ERROR
def run():
for x in xrange(500):
log.warning('this is not handled')
<commit_msg>Create a stream handler even though it's not used to have the same overhead on both logboo... |
912b2e1f1ce3dbca94e8cdf869c9906c43d5cc8d | opentreemap/ecobenefits/__init__.py | opentreemap/ecobenefits/__init__.py | from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes)
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_codes:
... | from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes())
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_codes:
... | Fix typo that prevented instance creation | Fix typo that prevented instance creation
| Python | agpl-3.0 | recklessromeo/otm-core,RickMohr/otm-core,clever-crow-consulting/otm-core,RickMohr/otm-core,RickMohr/otm-core,maurizi/otm-core,recklessromeo/otm-core,maurizi/otm-core,RickMohr/otm-core,maurizi/otm-core,clever-crow-consulting/otm-core,recklessromeo/otm-core,recklessromeo/otm-core,clever-crow-consulting/otm-core,maurizi/o... | from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes)
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_codes:
... | from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes())
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_codes:
... | <commit_before>from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes)
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_... | from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes())
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_codes:
... | from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes)
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_codes:
... | <commit_before>from species import CODES
def all_region_codes():
return CODES.keys
def all_species_codes():
return species_codes_for_regions(all_region_codes)
def species_codes_for_regions(region_codes):
if region_codes is None:
return None
species_codes = []
for region_code in region_... |
b71db5eb72fd5529be060d5f90ad744f0ea0870e | library.py | library.py | class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['PersonalScansRequired']
self.progress ... | class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
if 'CurrentTarget' in data:
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['Persona... | Add is_active() method to the Library class | Add is_active() method to the Library class
| Python | mit | pabletos/Hubot-Warframe,pabletos/Hubot-Warframe | class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['PersonalScansRequired']
self.progress ... | class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
if 'CurrentTarget' in data:
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['Persona... | <commit_before>class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['PersonalScansRequired']
self... | class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
if 'CurrentTarget' in data:
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['Persona... | class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['PersonalScansRequired']
self.progress ... | <commit_before>class Library:
"""This class represents a simaris target and is initialized with
data in JSON format
"""
def __init__(self, data):
self.target = data['CurrentTarget']['EnemyType']
self.scans = data['CurrentTarget']['PersonalScansRequired']
self... |
5c6f277caf3496da5f10b0150abb2c3b856e6584 | nagare/services/prg.py | nagare/services/prg.py | # --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on`` (the default... | # --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on`` (the default... | Store in the current state, not the previous one | Store in the current state, not the previous one
| Python | bsd-3-clause | nagareproject/core,nagareproject/core | # --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on`` (the default... | # --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on`` (the default... | <commit_before># --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on... | # --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on`` (the default... | # --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on`` (the default... | <commit_before># --
# Copyright (c) 2008-2020 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
"""If the ``activated`` parameter of the ``[redirect_after_post]``
section is `on... |
175a8fa2aa595132cf6dbf8ed405bb0682ab95dd | mkdocs/gh_deploy.py | mkdocs/gh_deploy.py | import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subprocess.check_call(['... | import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subprocess.check_call([... | Fix build error caused by wrong indentation | Fix build error caused by wrong indentation
| Python | bsd-2-clause | fujita-shintaro/mkdocs,peter1000/mkdocs,waylan/mkdocs,fujita-shintaro/mkdocs,mlzummo/mkdocs,michaelmcandrew/mkdocs,jimporter/mkdocs,kubikusrubikus/mkdocs,samhatfield/mkdocs,d0ugal/mkdocs,williamjmorenor/mkdocs,ericholscher/mkdocs,jeoygin/mkdocs,michaelmcandrew/mkdocs,nicoddemus/mkdocs,tedmiston/mkdocs,cazzerson/mkdocs,... | import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subprocess.check_call(['... | import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subprocess.check_call([... | <commit_before>import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subproces... | import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subprocess.check_call([... | import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subprocess.check_call(['... | <commit_before>import subprocess
import os
def gh_deploy(config):
if not os.path.exists('.git'):
print 'Cannot deploy - this directory does not appear to be a git repository'
return
print "Copying '%s' to `gh-pages` branch and pushing to GitHub." % config['site_dir']
try:
subproces... |
c1d8bf0916e1f59610fc69f0b11909964755ee38 | pyaavso/formats/visual.py | pyaavso/formats/visual.py | from __future__ import unicode_literals
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-visual-file-forma... | from __future__ import unicode_literals
import pyaavso
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-v... | Write name and version to output file. | Write name and version to output file.
| Python | mit | zsiciarz/pyaavso | from __future__ import unicode_literals
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-visual-file-forma... | from __future__ import unicode_literals
import pyaavso
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-v... | <commit_before>from __future__ import unicode_literals
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-vi... | from __future__ import unicode_literals
import pyaavso
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-v... | from __future__ import unicode_literals
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-visual-file-forma... | <commit_before>from __future__ import unicode_literals
class VisualFormatWriter(object):
"""
A class responsible for writing observation data in AAVSO
`Visual File Format`_.
The API here mimics the ``csv`` module in Python standard library.
.. _`Visual File Format`: http://www.aavso.org/aavso-vi... |
533ed337dd5f6087ac059ed47f1a0ce344ce48ce | src/utils/playbook.py | src/utils/playbook.py | from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
with open(pla... | from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
with open(play... | Add util func to write content | Add util func to write content
| Python | bsd-3-clause | lozadaOmr/ansible-admin,lozadaOmr/ansible-admin,lozadaOmr/ansible-admin | from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
with open(pla... | from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
with open(play... | <commit_before>from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
... | from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
with open(play... | from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
with open(pla... | <commit_before>from django.conf import settings
from ansible.models import Playbook
import os
def content_loader(pk, slug):
playbook = Playbook.query_set.get(pk=pk)
playbook_dir = playbook.directory
# TODO: for now assume without validation
playbook_file = os.path.join(playbook_dir, slug + '.yml')
... |
313aee17c8e2e1c86b96b40017ac4618c66df463 | __init__.py | __init__.py | # -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test case plugins
CUR... | # -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test case plugins
CUR... | Generalize graph and some new example scripts | Generalize graph and some new example scripts
| Python | agpl-3.0 | openfisca/openfisca-tunisia,openfisca/openfisca-tunisia | # -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test case plugins
CUR... | # -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test case plugins
CUR... | <commit_before># -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test c... | # -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test case plugins
CUR... | # -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test case plugins
CUR... | <commit_before># -*- coding: utf-8 -*-
# This file is part of OpenFisca
# Copyright © 2012 Mahdi Ben Jelloul, Clément Schaff
# Licensed under the terms of the GPL License v3 or later version
# (see src/__init__.py for details)
# Model parameters
ENTITIES_INDEX = ['men', 'foy']
# Some variables needed by the test c... |
2b1b4ab1bfa494021197756d3877f38e1b290435 | server_common/helpers.py | server_common/helpers.py | import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper function to regis... | import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper function to regis... | Return empty dict if not defined rather than error | Return empty dict if not defined rather than error
| Python | bsd-3-clause | ISISComputingGroup/EPICS-inst_servers,ISISComputingGroup/EPICS-inst_servers | import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper function to regis... | import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper function to regis... | <commit_before>import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper fu... | import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper function to regis... | import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper function to regis... | <commit_before>import json
import os
import sys
from server_common.ioc_data_source import IocDataSource
from server_common.mysql_abstraction_layer import SQLAbstraction
from server_common.utilities import print_and_log, SEVERITY
def register_ioc_start(ioc_name, pv_database=None, prefix=None):
"""
A helper fu... |
fb4d11f1c96d48dd71bc12921763681149da4616 | eultheme/context_processors.py | eultheme/context_processors.py | import datetime
from django.conf import settings
from django.contrib.sites.models import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Template context pro... | import datetime
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Template context ... | Update to import for for Django 1.9 compatibility. | Update to import for for Django 1.9 compatibility.
| Python | apache-2.0 | emory-libraries/django-eultheme,emory-libraries/django-eultheme,emory-libraries/django-eultheme | import datetime
from django.conf import settings
from django.contrib.sites.models import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Template context pro... | import datetime
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Template context ... | <commit_before>import datetime
from django.conf import settings
from django.contrib.sites.models import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Templ... | import datetime
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Template context ... | import datetime
from django.conf import settings
from django.contrib.sites.models import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Template context pro... | <commit_before>import datetime
from django.conf import settings
from django.contrib.sites.models import get_current_site
from django.utils.functional import SimpleLazyObject
from django.utils.timezone import utc
from downtime.models import Period
from .models import Banner
def template_settings(request):
'''Templ... |
09fc3d53b2814f940bcaf7d6136ed2ce0595fb2f | hyperion/importers/tests/test_sph.py | hyperion/importers/tests/test_sph.py | import os
import h5py
import numpy as np
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10., N)
pz = np.random.uniform(-10., 10.... | import os
import h5py
import numpy as np
from numpy.testing import assert_allclose
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10... | Use assert_allclose for comparison of octree densities | Use assert_allclose for comparison of octree densities
| Python | bsd-2-clause | hyperion-rt/hyperion,bluescarni/hyperion,hyperion-rt/hyperion,hyperion-rt/hyperion,bluescarni/hyperion | import os
import h5py
import numpy as np
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10., N)
pz = np.random.uniform(-10., 10.... | import os
import h5py
import numpy as np
from numpy.testing import assert_allclose
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10... | <commit_before>import os
import h5py
import numpy as np
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10., N)
pz = np.random.un... | import os
import h5py
import numpy as np
from numpy.testing import assert_allclose
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10... | import os
import h5py
import numpy as np
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10., N)
pz = np.random.uniform(-10., 10.... | <commit_before>import os
import h5py
import numpy as np
from ..sph import construct_octree
DATA = os.path.join(os.path.dirname(__file__), 'data')
def test_construct_octree():
np.random.seed(0)
N = 5000
px = np.random.uniform(-10., 10., N)
py = np.random.uniform(-10., 10., N)
pz = np.random.un... |
30f32266a1f8ac698d9da5da79c88867e781084a | packages/reward-root-submitter/reward_root_submitter/config.py | packages/reward-root-submitter/reward_root_submitter/config.py | from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(SecretId=secret_id)... | from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(SecretId=secret_id)... | Set default logging to info | Set default logging to info
| Python | mit | cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack | from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(SecretId=secret_id)... | from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(SecretId=secret_id)... | <commit_before>from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(Secr... | from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(SecretId=secret_id)... | from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(SecretId=secret_id)... | <commit_before>from functools import lru_cache
import boto3
from pydantic import BaseSettings, Field, root_validator
@lru_cache
def get_secrets_client():
return boto3.client("secretsmanager")
@lru_cache
def get_secret(secret_id):
client = get_secrets_client()
secret_value = client.get_secret_value(Secr... |
fd96170fd15ccbe0b42463fe8d4ac78f511d10c7 | example/testtags/admin.py | example/testtags/admin.py | from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
admin.site.register(TestName, TestNameAdmin) | from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
## Testing a custom Default Alphabet
#DEFAULT_ALPHABET = 'ABC'
## Testing a blank alphabet-- only shows the characters in the database
#... | Put in some testing code to test the new overrides | Put in some testing code to test the new overrides
| Python | apache-2.0 | bltravis/django-alphabetfilter,affan2/django-alphabetfilter,affan2/django-alphabetfilter,affan2/django-alphabetfilter,bltravis/django-alphabetfilter,bltravis/django-alphabetfilter | from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
admin.site.register(TestName, TestNameAdmin)Put in some testing code to test the new overrides | from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
## Testing a custom Default Alphabet
#DEFAULT_ALPHABET = 'ABC'
## Testing a blank alphabet-- only shows the characters in the database
#... | <commit_before>from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
admin.site.register(TestName, TestNameAdmin)<commit_msg>Put in some testing code to test the new overrides<commit_after> | from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
## Testing a custom Default Alphabet
#DEFAULT_ALPHABET = 'ABC'
## Testing a blank alphabet-- only shows the characters in the database
#... | from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
admin.site.register(TestName, TestNameAdmin)Put in some testing code to test the new overridesfrom django.contrib import admin
from models import TestName
class... | <commit_before>from django.contrib import admin
from models import TestName
class TestNameAdmin(admin.ModelAdmin):
model = TestName
alphabet_filter = 'sorted_name'
admin.site.register(TestName, TestNameAdmin)<commit_msg>Put in some testing code to test the new overrides<commit_after>from django.contrib import... |
8165aa65e96d32ed908cdf8e3c475c28181e0d93 | hierarchical_auth/admin.py | hierarchical_auth/admin.py | from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group, User
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.forms import UserChangeForm
from mptt.forms import TreeNodeMultipleChoiceField
if getattr(settings, 'MPTT_USE_FEINC... | from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group
from django.contrib.auth.admin import GroupAdmin
from django.contrib.auth.forms import UserChangeForm
try:
User = settings.AUTH_USER_MODEL
except:
from django.contrib.auth.models import User
try... | Work with custom user models in django >= 1.5 | Work with custom user models in django >= 1.5
Work with Custom User Models introduced in django >= 1.5
Also tries to get a AUTH_USER_ADMIN_MODEL, not only AUTH_USER_MODEL | Python | bsd-3-clause | zhangguiyu/django-hierarchical-auth,digitalemagine/django-hierarchical-auth | from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group, User
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.forms import UserChangeForm
from mptt.forms import TreeNodeMultipleChoiceField
if getattr(settings, 'MPTT_USE_FEINC... | from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group
from django.contrib.auth.admin import GroupAdmin
from django.contrib.auth.forms import UserChangeForm
try:
User = settings.AUTH_USER_MODEL
except:
from django.contrib.auth.models import User
try... | <commit_before>from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group, User
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.forms import UserChangeForm
from mptt.forms import TreeNodeMultipleChoiceField
if getattr(settings, ... | from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group
from django.contrib.auth.admin import GroupAdmin
from django.contrib.auth.forms import UserChangeForm
try:
User = settings.AUTH_USER_MODEL
except:
from django.contrib.auth.models import User
try... | from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group, User
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.forms import UserChangeForm
from mptt.forms import TreeNodeMultipleChoiceField
if getattr(settings, 'MPTT_USE_FEINC... | <commit_before>from django.contrib import admin
from django.conf import settings
from django.contrib.auth.models import Group, User
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.forms import UserChangeForm
from mptt.forms import TreeNodeMultipleChoiceField
if getattr(settings, ... |
731e48b1b81e9249fc8bdd0f826c6e009559fcc3 | mempoke.py | mempoke.py | import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, value):
... | import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, value):
... | Add mechanism for defining MCU control structures | Add mechanism for defining MCU control structures
| Python | mit | fmfi-svt-deadlock/hw-testing,fmfi-svt-deadlock/hw-testing | import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, value):
... | import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, value):
... | <commit_before>import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, ... | import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, value):
... | import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, value):
... | <commit_before>import gdb
import struct
class DeviceMemory:
def __init__(self):
self.inferior = gdb.selected_inferior()
def __del__(self):
del self.inferior
def read(self, address):
return struct.unpack('I', self.inferior.read_memory(address, 4))[0]
def write(self, address, ... |
65cd0c8865761af434756b313c7e29b1904e647c | h2o-py/tests/testdir_algos/rf/pyunit_bigcatRF.py | h2o-py/tests/testdir_algos/rf/pyunit_bigcatRF.py | import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
... | import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
... | Add usage of nbins_cats to RF pyunit. | Add usage of nbins_cats to RF pyunit.
| Python | apache-2.0 | spennihana/h2o-3,h2oai/h2o-3,PawarPawan/h2o-v3,mathemage/h2o-3,datachand/h2o-3,mrgloom/h2o-3,printedheart/h2o-3,weaver-viii/h2o-3,weaver-viii/h2o-3,bospetersen/h2o-3,mathemage/h2o-3,h2oai/h2o-3,pchmieli/h2o-3,mathemage/h2o-3,datachand/h2o-3,YzPaul3/h2o-3,ChristosChristofidis/h2o-3,mathemage/h2o-3,mrgloom/h2o-3,madmax98... | import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
... | import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
... | <commit_before>import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predi... | import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
... | import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predictors of y = 0
... | <commit_before>import sys
sys.path.insert(1, "../../../")
import h2o
def bigcatRF(ip,port):
# Connect to h2o
h2o.init(ip,port)
# Training set has 100 categories from cat001 to cat100
# Categories cat001, cat003, ... are perfect predictors of y = 1
# Categories cat002, cat004, ... are perfect predi... |
392af193a2059bd7b25c3014fa8cbdf6fbade032 | pastas/version.py | pastas/version.py | # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.6b'
| # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.5.1'
| Update master branch to 0.9.5.1 | Update master branch to 0.9.5.1
| Python | mit | pastas/pasta,pastas/pastas,gwtsa/gwtsa | # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.6b'
Update master branch to 0.9.5.1 | # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.5.1'
| <commit_before># This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.6b'
<commit_msg>Update master branch to 0.9.5.1<commit_after> | # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.5.1'
| # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.6b'
Update master branch to 0.9.5.1# This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source... | <commit_before># This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.6b'
<commit_msg>Update master branch to 0.9.5.1<commit_after># This is the only location where the version will be written and changed.
# Based on h... |
973496ad5111e408ea4832962987098d8c9ca003 | example/example/urls.py | example/example/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
# Add an entry in you... | Add an entry in URLconf | Add an entry in URLconf
| Python | mit | dkdndes/django-flatpages-example | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
Add an entry in URLcon... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
# Add an entry in you... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
<commit... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
# Add an entry in you... | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
Add an entry in URLcon... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'example.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
<commit... |
afa3cd7c6e4c82f94eef7edd4bc8db609943226c | api/urls.py | api/urls.py | from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
]
| from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
url(r'^signup/$', views.SignupView.as_vie... | Add URL for signup api endpoint | Add URL for signup api endpoint
| Python | mit | p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles | from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
]
Add URL for signup api endpoint | from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
url(r'^signup/$', views.SignupView.as_vie... | <commit_before>from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
]
<commit_msg>Add URL for sig... | from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
url(r'^signup/$', views.SignupView.as_vie... | from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
]
Add URL for signup api endpointfrom django... | <commit_before>from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from . import views
urlpatterns = [
url(r'^learningcircles/$', views.LearningCircleListView.as_view(), name='api_learningcircles'),
]
<commit_msg>Add URL for sig... |
f59ac3cc752698ce1755d8953c8771dc978ae6b7 | opendebates/urls.py | opendebates/urls.py | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]
| from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView
urlpatterns = [
url(r'^$', RedirectView.as_view(url='https://opendebatecoalition.com', permanent=False)),
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'ope... | Add a (temporary) redirect to opendebatecoalition.com from / | Add a (temporary) redirect to opendebatecoalition.com from /
Temporary because permanent is really hard to take back, if you decide
later that you wanted something else.
| Python | apache-2.0 | caktus/django-opendebates,caktus/django-opendebates,caktus/django-opendebates,caktus/django-opendebates | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]
Add a (temporary) r... | from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView
urlpatterns = [
url(r'^$', RedirectView.as_view(url='https://opendebatecoalition.com', permanent=False)),
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'ope... | <commit_before>from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]
<com... | from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView
urlpatterns = [
url(r'^$', RedirectView.as_view(url='https://opendebatecoalition.com', permanent=False)),
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'ope... | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]
Add a (temporary) r... | <commit_before>from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^healthcheck.html$', 'opendebates.views.health_check', name='health_check'),
url(r'^(?P<prefix>[-\w]+)/', include('opendebates.prefixed_urls')),
]
<com... |
c6c397dab0e5549ddce59c388dbf0235bc6b44c3 | app/groups/utils.py | app/groups/utils.py | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a email to a group of people using a standard ... | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
from django.contrib.sites.models import Site
def send_group_email(request, to_email, subject, email_text_template, email_html_template):
"""Sends ... | Rename the function, and provide the "domain" context for url linking in the emails | Rename the function, and provide the "domain" context for url linking in the emails
| Python | bsd-3-clause | nikdoof/test-auth | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a email to a group of people using a standard ... | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
from django.contrib.sites.models import Site
def send_group_email(request, to_email, subject, email_text_template, email_html_template):
"""Sends ... | <commit_before>from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a email to a group of people us... | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
from django.contrib.sites.models import Site
def send_group_email(request, to_email, subject, email_text_template, email_html_template):
"""Sends ... | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a email to a group of people using a standard ... | <commit_before>from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from django.template.loader import get_template
from django.template import Context
def send_group_mail(request, to_email, subject, email_text_template, email_html_template):
"""Sends a email to a group of people us... |
aa0b61b44e631c3a12a16025e93d7e962de23c2f | fabix/system/crontab.py | fabix/system/crontab.py | # coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
sorted_crontab = fab.run... | # coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
# When user have no cron... | Remove duplicate lines from cron file without sorting | Remove duplicate lines from cron file without sorting
| Python | mit | vmalavolta/fabix | # coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
sorted_crontab = fab.run... | # coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
# When user have no cron... | <commit_before># coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
sorted_cr... | # coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
# When user have no cron... | # coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
sorted_crontab = fab.run... | <commit_before># coding: utf-8
import fabric.api as fab
import cuisine
def install(filename, user="root", append=False):
"""
Installs crontab from a given cronfile
"""
new_crontab = fab.run("mktemp fabixcron.XXXX")
cuisine.file_upload(new_crontab, filename)
if append is True:
sorted_cr... |
02da417b238256878cfab7c0adef8f86f5532b01 | tamper/randomcomments.py | tamper/randomcomments.py | #!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(payload, **kwargs)... | #!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(payload, **kwargs)... | Fix for a tamper script (in some cases comments were not inserted) | Fix for a tamper script (in some cases comments were not inserted)
| Python | mit | dtrip/.ubuntu,RexGene/monsu-server,RexGene/monsu-server,dtrip/.ubuntu | #!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(payload, **kwargs)... | #!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(payload, **kwargs)... | <commit_before>#!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(pay... | #!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(payload, **kwargs)... | #!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(payload, **kwargs)... | <commit_before>#!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.common import randomRange
from lib.core.data import kb
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOW
def tamper(pay... |
858c029ccadcbdb7365c6f7d28fa426bb11c9ab2 | appengine_config.py | appengine_config.py | # appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserver2.python impo... | # appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserver2.python.runt... | Fix issue with latest sdk: cannot import name sandbox | Fix issue with latest sdk: cannot import name sandbox
| Python | mit | egenerat/flight-manager,egenerat/flight-manager,egenerat/flight-manager,egenerat/flight-manager,egenerat/gae-django,egenerat/gae-django,egenerat/gae-django | # appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserver2.python impo... | # appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserver2.python.runt... | <commit_before># appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserv... | # appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserver2.python.runt... | # appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserver2.python impo... | <commit_before># appengine_config.py
from google.appengine.ext import vendor
# Add any libraries install in the "lib" folder.
vendor.add('lib')
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'):
import imp
import os.path
import inspect
from google.appengine.tools.devappserv... |
2b758185e0de0d41c5ecc9a5511308ee36c60c91 | Python_Data/smpl4.py | Python_Data/smpl4.py | '''
2.1 - Numpy Array library
'''
#!/usr/bin/env
import numpy as np
def main():
''''
# 1) Create two vectors 'a' and 'b', and sum them.
# Standart
n = 3
a = [x**2 for x in range(1, n + 1)]
b = [x**3 for x in range(1, n + 1)]
v = plainVectorAddition(a, b)
# Numpy
n = 3
a = np.ara... | '''
2.1 - Numpy Array library
- Sum of two vectors -
Usage: python smpl4.py n
Where 'n' specifies the size of the vector.
The program make performance comparisons and print the results.
'''
#!/usr/bin/env
import numpy as np
import sys
from datetime import datetime
def main():
size = int(sys.argv[1])
s... | Add file with linear algebra numpy operations | Add file with linear algebra numpy operations
| Python | unlicense | robotenique/RandomAccessMemory,robotenique/RandomAccessMemory,robotenique/RandomAccessMemory | '''
2.1 - Numpy Array library
'''
#!/usr/bin/env
import numpy as np
def main():
''''
# 1) Create two vectors 'a' and 'b', and sum them.
# Standart
n = 3
a = [x**2 for x in range(1, n + 1)]
b = [x**3 for x in range(1, n + 1)]
v = plainVectorAddition(a, b)
# Numpy
n = 3
a = np.ara... | '''
2.1 - Numpy Array library
- Sum of two vectors -
Usage: python smpl4.py n
Where 'n' specifies the size of the vector.
The program make performance comparisons and print the results.
'''
#!/usr/bin/env
import numpy as np
import sys
from datetime import datetime
def main():
size = int(sys.argv[1])
s... | <commit_before>'''
2.1 - Numpy Array library
'''
#!/usr/bin/env
import numpy as np
def main():
''''
# 1) Create two vectors 'a' and 'b', and sum them.
# Standart
n = 3
a = [x**2 for x in range(1, n + 1)]
b = [x**3 for x in range(1, n + 1)]
v = plainVectorAddition(a, b)
# Numpy
n = 3... | '''
2.1 - Numpy Array library
- Sum of two vectors -
Usage: python smpl4.py n
Where 'n' specifies the size of the vector.
The program make performance comparisons and print the results.
'''
#!/usr/bin/env
import numpy as np
import sys
from datetime import datetime
def main():
size = int(sys.argv[1])
s... | '''
2.1 - Numpy Array library
'''
#!/usr/bin/env
import numpy as np
def main():
''''
# 1) Create two vectors 'a' and 'b', and sum them.
# Standart
n = 3
a = [x**2 for x in range(1, n + 1)]
b = [x**3 for x in range(1, n + 1)]
v = plainVectorAddition(a, b)
# Numpy
n = 3
a = np.ara... | <commit_before>'''
2.1 - Numpy Array library
'''
#!/usr/bin/env
import numpy as np
def main():
''''
# 1) Create two vectors 'a' and 'b', and sum them.
# Standart
n = 3
a = [x**2 for x in range(1, n + 1)]
b = [x**3 for x in range(1, n + 1)]
v = plainVectorAddition(a, b)
# Numpy
n = 3... |
b83acdc08ed0211c8b53d8f8a158c4ac43c8587c | test/test_issue655.py | test/test_issue655.py | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | Remove test on serialisation (order is not fixed) | Remove test on serialisation (order is not fixed)
| Python | bsd-3-clause | RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | <commit_before>from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value ... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value = Literal(float... | <commit_before>from rdflib import Graph, Namespace, URIRef, Literal
from rdflib.compare import to_isomorphic
import unittest
class TestIssue655(unittest.TestCase):
def test_issue655(self):
PROV = Namespace('http://www.w3.org/ns/prov#')
bob = URIRef("http://example.org/object/Bob")
value ... |
1fe790a152d2397a4437a791bdb60db2aa823589 | tests/test_load_model.py | tests/test_load_model.py | """Test GitHub issue #4.
Diagram could not be loaded due to JuggleError (presumed cyclic
resolving of diagram items).
"""
from gi.repository import GLib, Gtk
from gaphor.storage.storage import load
class TestCyclicDiagram:
def test_bug(self, case, test_models):
"""Load file.
Thi... | # flake8: noqa F401,F811
"""Diagram could not be loaded due to JuggleError (presumed cyclic resolving of
diagram items)."""
from gi.repository import GLib, Gtk
from gaphor.diagram.tests.fixtures import (
element_factory,
event_manager,
modeling_language,
)
from gaphor.storage.storage import loa... | Convert load_model tests to pytest functions | Convert load_model tests to pytest functions
| Python | lgpl-2.1 | amolenaar/gaphor,amolenaar/gaphor | """Test GitHub issue #4.
Diagram could not be loaded due to JuggleError (presumed cyclic
resolving of diagram items).
"""
from gi.repository import GLib, Gtk
from gaphor.storage.storage import load
class TestCyclicDiagram:
def test_bug(self, case, test_models):
"""Load file.
Thi... | # flake8: noqa F401,F811
"""Diagram could not be loaded due to JuggleError (presumed cyclic resolving of
diagram items)."""
from gi.repository import GLib, Gtk
from gaphor.diagram.tests.fixtures import (
element_factory,
event_manager,
modeling_language,
)
from gaphor.storage.storage import loa... | <commit_before>"""Test GitHub issue #4.
Diagram could not be loaded due to JuggleError (presumed cyclic
resolving of diagram items).
"""
from gi.repository import GLib, Gtk
from gaphor.storage.storage import load
class TestCyclicDiagram:
def test_bug(self, case, test_models):
"""Load file.... | # flake8: noqa F401,F811
"""Diagram could not be loaded due to JuggleError (presumed cyclic resolving of
diagram items)."""
from gi.repository import GLib, Gtk
from gaphor.diagram.tests.fixtures import (
element_factory,
event_manager,
modeling_language,
)
from gaphor.storage.storage import loa... | """Test GitHub issue #4.
Diagram could not be loaded due to JuggleError (presumed cyclic
resolving of diagram items).
"""
from gi.repository import GLib, Gtk
from gaphor.storage.storage import load
class TestCyclicDiagram:
def test_bug(self, case, test_models):
"""Load file.
Thi... | <commit_before>"""Test GitHub issue #4.
Diagram could not be loaded due to JuggleError (presumed cyclic
resolving of diagram items).
"""
from gi.repository import GLib, Gtk
from gaphor.storage.storage import load
class TestCyclicDiagram:
def test_bug(self, case, test_models):
"""Load file.... |
8b7aef341aadefb859790684f41453f561813083 | tmi/views/__init__.py | tmi/views/__init__.py | from flask import g
from flask.ext.login import current_user
from tmi.core import app
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa
from tmi.views.admin import admin # noqa
from tmi.views.cards_api import blueprint as cards_api
@app.before_req... | from flask import g, request
from flask.ext.login import current_user
from werkzeug.exceptions import HTTPException
from tmi.core import app
from tmi.forms import Invalid
from tmi.util import jsonify
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa... | Handle errors with JSON messages. | Handle errors with JSON messages. | Python | mit | pudo/storyweb,pudo/storyweb | from flask import g
from flask.ext.login import current_user
from tmi.core import app
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa
from tmi.views.admin import admin # noqa
from tmi.views.cards_api import blueprint as cards_api
@app.before_req... | from flask import g, request
from flask.ext.login import current_user
from werkzeug.exceptions import HTTPException
from tmi.core import app
from tmi.forms import Invalid
from tmi.util import jsonify
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa... | <commit_before>from flask import g
from flask.ext.login import current_user
from tmi.core import app
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa
from tmi.views.admin import admin # noqa
from tmi.views.cards_api import blueprint as cards_api
... | from flask import g, request
from flask.ext.login import current_user
from werkzeug.exceptions import HTTPException
from tmi.core import app
from tmi.forms import Invalid
from tmi.util import jsonify
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa... | from flask import g
from flask.ext.login import current_user
from tmi.core import app
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa
from tmi.views.admin import admin # noqa
from tmi.views.cards_api import blueprint as cards_api
@app.before_req... | <commit_before>from flask import g
from flask.ext.login import current_user
from tmi.core import app
from tmi.assets import assets # noqa
from tmi.views.ui import ui # noqa
from tmi.views.auth import login, logout # noqa
from tmi.views.admin import admin # noqa
from tmi.views.cards_api import blueprint as cards_api
... |
f5f728074b257aac371fc59af8de02e440e57819 | furikura/desktop/unity.py | furikura/desktop/unity.py | import gi
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
def add_quicklist_item(item):
quick_l... | import gi
from threading import Timer
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
if count... | Apply "Urgent" icon animation on new message | Apply "Urgent" icon animation on new message
| Python | mit | benjamindean/furi-kura,benjamindean/furi-kura | import gi
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
def add_quicklist_item(item):
quick_l... | import gi
from threading import Timer
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
if count... | <commit_before>import gi
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
def add_quicklist_item(ite... | import gi
from threading import Timer
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
if count... | import gi
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
def add_quicklist_item(item):
quick_l... | <commit_before>import gi
gi.require_version('Unity', '7.0')
from gi.repository import Unity, Dbusmenu
launcher = Unity.LauncherEntry.get_for_desktop_id("furikura.desktop")
def update_counter(count):
launcher.set_property("count", count)
launcher.set_property("count_visible", True)
def add_quicklist_item(ite... |
a02258643b4109ba862f8f927a8a2612b81c2a36 | ghtools/command/browse.py | ghtools/command/browse.py | from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='URL to browse')... | from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='URL to browse')... | Add missed json to json() tweak | Add missed json to json() tweak
| Python | mit | alphagov/ghtools | from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='URL to browse')... | from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='URL to browse')... | <commit_before>from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='... | from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='URL to browse')... | from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='URL to browse')... | <commit_before>from __future__ import print_function
import json
from argh import ArghParser, arg
from ghtools import cli
from ghtools.api import GithubAPIClient
parser = ArghParser(description="Browse the GitHub API")
@arg('github', nargs='?', help='GitHub instance nickname (e.g "enterprise")')
@arg('url', help='... |
3b5ad132f3670d1c1210190ecd7b41a379fbd10e | trakt/core/helpers.py | trakt/core/helpers.py | import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Return python datetime object
return dt.datetime
| import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Convert to UTC
dt = dt.to('UTC')
# Return naive datetime object
return dt.naive
| Convert all datetime properties to UTC | Convert all datetime properties to UTC
| Python | mit | shad7/trakt.py,fuzeman/trakt.py | import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Return python datetime object
return dt.datetime
Convert all datetime properties to UTC | import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Convert to UTC
dt = dt.to('UTC')
# Return naive datetime object
return dt.naive
| <commit_before>import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Return python datetime object
return dt.datetime
<commit_msg>Convert all datetime properties to UTC<commit_after> | import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Convert to UTC
dt = dt.to('UTC')
# Return naive datetime object
return dt.naive
| import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Return python datetime object
return dt.datetime
Convert all datetime properties to UTCimport arrow
def to_datetime(value):
if value is None:
return None
... | <commit_before>import arrow
def to_datetime(value):
if value is None:
return None
# Parse ISO8601 datetime
dt = arrow.get(value)
# Return python datetime object
return dt.datetime
<commit_msg>Convert all datetime properties to UTC<commit_after>import arrow
def to_datetime(value):
i... |
5e3b712c4c2eac7227d6e894ce05db6f1ede074a | hgtools/tests/conftest.py | hgtools/tests/conftest.py | import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def hg_repo(tmpdir):
tmpdir.chdir()
mgr = managers.MercurialManager()
_ensure_present(mgr)
mgr._invoke('init', '.')
os.makedirs('bar')
touch('bar/baz')
mgr... | import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def tmpdir_as_cwd(tmpdir):
with tmpdir.as_cwd():
yield tmpdir
@pytest.fixture
def hg_repo(tmpdir_as_cwd):
mgr = managers.MercurialManager()
_ensure_present... | Fix test failures by restoring working directory in fixtures. | Fix test failures by restoring working directory in fixtures.
| Python | mit | jaraco/hgtools | import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def hg_repo(tmpdir):
tmpdir.chdir()
mgr = managers.MercurialManager()
_ensure_present(mgr)
mgr._invoke('init', '.')
os.makedirs('bar')
touch('bar/baz')
mgr... | import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def tmpdir_as_cwd(tmpdir):
with tmpdir.as_cwd():
yield tmpdir
@pytest.fixture
def hg_repo(tmpdir_as_cwd):
mgr = managers.MercurialManager()
_ensure_present... | <commit_before>import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def hg_repo(tmpdir):
tmpdir.chdir()
mgr = managers.MercurialManager()
_ensure_present(mgr)
mgr._invoke('init', '.')
os.makedirs('bar')
touch(... | import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def tmpdir_as_cwd(tmpdir):
with tmpdir.as_cwd():
yield tmpdir
@pytest.fixture
def hg_repo(tmpdir_as_cwd):
mgr = managers.MercurialManager()
_ensure_present... | import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def hg_repo(tmpdir):
tmpdir.chdir()
mgr = managers.MercurialManager()
_ensure_present(mgr)
mgr._invoke('init', '.')
os.makedirs('bar')
touch('bar/baz')
mgr... | <commit_before>import os
import pytest
from hgtools import managers
def _ensure_present(mgr):
try:
mgr.version()
except Exception:
pytest.skip()
@pytest.fixture
def hg_repo(tmpdir):
tmpdir.chdir()
mgr = managers.MercurialManager()
_ensure_present(mgr)
mgr._invoke('init', '.')
os.makedirs('bar')
touch(... |
f953a5e6b52301defc3aee1f191507ed7005caa1 | azurerm/restfns.py | azurerm/restfns.py | # restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint, access_token)
... | # restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint, access_token)
... | Fix REST function comments for POST | Fix REST function comments for POST
| Python | mit | gbowerman/azurerm | # restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint, access_token)
... | # restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint, access_token)
... | <commit_before># restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint,... | # restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint, access_token)
... | # restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint, access_token)
... | <commit_before># restfns - REST functions for azurerm
import requests
# do_get(endpoint, access_token)
# do an HTTP GET request and return JSON
def do_get(endpoint, access_token):
headers = {"Authorization": 'Bearer ' + access_token}
return requests.get(endpoint, headers=headers).json()
# do_delete(endpoint,... |
cf83c92ee2160a9d27d18347137b55b4a111228d | zvm/zcpu.py | zvm/zcpu.py | #
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Zcpu class"
... | #
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Zcpu class"
... | Make the CPU use lovely decorator syntax for registering opcode implementations. | Make the CPU use lovely decorator syntax for registering opcode implementations.
| Python | bsd-3-clause | sussman/zvm,sussman/zvm | #
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Zcpu class"
... | #
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Zcpu class"
... | <commit_before>#
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Z... | #
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Zcpu class"
... | #
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Zcpu class"
... | <commit_before>#
# A class which represents the CPU itself, the brain of the virtual
# machine. It ties all the systems together and runs the story.
#
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
class ZCpuError(Exception):
"General exception for Z... |
e5b98d072017c8a70cf033cdb34233b2d0a56b2e | pyfirmata/boards.py | pyfirmata/boards.py | BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54)),
'an... | BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54)),
'an... | Correct class name of arduino nano | Correct class name of arduino nano
| Python | mit | JoseU/pyFirmata,tino/pyFirmata | BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54)),
'an... | BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54)),
'an... | <commit_before>BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54... | BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54)),
'an... | BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54)),
'an... | <commit_before>BOARDS = {
'arduino': {
'digital': tuple(x for x in range(14)),
'analog': tuple(x for x in range(6)),
'pwm': (3, 5, 6, 9, 10, 11),
'use_ports': True,
'disabled': (0, 1) # Rx, Tx, Crystal
},
'arduino_mega': {
'digital': tuple(x for x in range(54... |
c2eccb4ce1259830dd641d19624358af83c09549 | webcomix/comic_spider.py | webcomix/comic_spider.py | from urllib.parse import urljoin
import scrapy
class ComicSpider(scrapy.Spider):
name = "My spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_selector = kwarg... | from urllib.parse import urljoin
import click
import scrapy
class ComicSpider(scrapy.Spider):
name = "Comic Spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_... | Copy logging from previous version and only yield item to pipeline if a comic image was found | Copy logging from previous version and only yield item to pipeline if a comic image was found
| Python | mit | J-CPelletier/webcomix,J-CPelletier/webcomix,J-CPelletier/WebComicToCBZ | from urllib.parse import urljoin
import scrapy
class ComicSpider(scrapy.Spider):
name = "My spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_selector = kwarg... | from urllib.parse import urljoin
import click
import scrapy
class ComicSpider(scrapy.Spider):
name = "Comic Spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_... | <commit_before>from urllib.parse import urljoin
import scrapy
class ComicSpider(scrapy.Spider):
name = "My spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_s... | from urllib.parse import urljoin
import click
import scrapy
class ComicSpider(scrapy.Spider):
name = "Comic Spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_... | from urllib.parse import urljoin
import scrapy
class ComicSpider(scrapy.Spider):
name = "My spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_selector = kwarg... | <commit_before>from urllib.parse import urljoin
import scrapy
class ComicSpider(scrapy.Spider):
name = "My spider"
def __init__(self, *args, **kwargs):
self.start_urls = kwargs.get('start_urls') or []
self.next_page_selector = kwargs.get('next_page_selector', None)
self.comic_image_s... |
e1c9828354036279469260ab498d8c979baa1562 | code/get_licenses.py | code/get_licenses.py | #!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8'), rights]
def ... | #!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8'), rights]
def ... | Remove quotes from header line | Remove quotes from header line
| Python | mit | Datafable/gbif-data-licenses,Datafable/gbif-data-licenses,Datafable/gbif-data-licenses | #!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8'), rights]
def ... | #!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8'), rights]
def ... | <commit_before>#!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8')... | #!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8'), rights]
def ... | #!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8'), rights]
def ... | <commit_before>#!/usr/bin/python
import requests
import json
import csv
import sys
def parse_dataset_metadata(dataset):
if 'rights' in dataset.keys():
rights = dataset['rights'].encode('utf-8').strip()
rights = rights.replace("\n", "")
else:
rights = 'not supplied'
return [dataset['key'].encode('utf-8')... |
1a6344ea1fac51a8024e1803a0391662d4ab81e0 | pyeda/boolalg/vexpr.py | pyeda/boolalg/vexpr.py | """
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dimensions, filled with Expres... | """
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from warnings import warn
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dim... | Add deprecation warning to bitvec function | Add deprecation warning to bitvec function
| Python | bsd-2-clause | pombredanne/pyeda,GtTmy/pyeda,karissa/pyeda,sschnug/pyeda,sschnug/pyeda,cjdrake/pyeda,sschnug/pyeda,cjdrake/pyeda,GtTmy/pyeda,GtTmy/pyeda,karissa/pyeda,pombredanne/pyeda,karissa/pyeda,cjdrake/pyeda,pombredanne/pyeda | """
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dimensions, filled with Expres... | """
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from warnings import warn
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dim... | <commit_before>"""
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dimensions, fil... | """
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from warnings import warn
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dim... | """
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dimensions, filled with Expres... | <commit_before>"""
Boolean Vector Logic Expressions
This module is deprecated.
The functionality has been superceded by the bfarray module.
Interface Functions:
bitvec
"""
from pyeda.boolalg import expr
from pyeda.boolalg import bfarray
def bitvec(name, *dims):
"""Return a new array of given dimensions, fil... |
2339fa64974184c8174917be305c45a34013bae9 | easy/lowest_unique/lowest_unique.py | easy/lowest_unique/lowest_unique.py | import sys
def lowest_unique(int_list):
numbers = {}
for index in range(len(int_list)):
group = numbers.setdefault(int(int_list[index]), [])
group.append(index)
for number in numbers:
retval = numbers[number]
if len(retval) == 1:
return retval[0] + 1
return ... | import sys
def lowest_unique(int_list):
numbers = {}
for index, number in enumerate(int_list):
group = numbers.setdefault(int(number), [])
group.append(index)
for number in sorted(numbers.keys()):
retval = numbers[number]
if len(retval) == 1:
return retval[0] + ... | Improve solution by using enumerate | Improve solution by using enumerate
| Python | mit | MikeDelaney/CodeEval | import sys
def lowest_unique(int_list):
numbers = {}
for index in range(len(int_list)):
group = numbers.setdefault(int(int_list[index]), [])
group.append(index)
for number in numbers:
retval = numbers[number]
if len(retval) == 1:
return retval[0] + 1
return ... | import sys
def lowest_unique(int_list):
numbers = {}
for index, number in enumerate(int_list):
group = numbers.setdefault(int(number), [])
group.append(index)
for number in sorted(numbers.keys()):
retval = numbers[number]
if len(retval) == 1:
return retval[0] + ... | <commit_before>import sys
def lowest_unique(int_list):
numbers = {}
for index in range(len(int_list)):
group = numbers.setdefault(int(int_list[index]), [])
group.append(index)
for number in numbers:
retval = numbers[number]
if len(retval) == 1:
return retval[0] ... | import sys
def lowest_unique(int_list):
numbers = {}
for index, number in enumerate(int_list):
group = numbers.setdefault(int(number), [])
group.append(index)
for number in sorted(numbers.keys()):
retval = numbers[number]
if len(retval) == 1:
return retval[0] + ... | import sys
def lowest_unique(int_list):
numbers = {}
for index in range(len(int_list)):
group = numbers.setdefault(int(int_list[index]), [])
group.append(index)
for number in numbers:
retval = numbers[number]
if len(retval) == 1:
return retval[0] + 1
return ... | <commit_before>import sys
def lowest_unique(int_list):
numbers = {}
for index in range(len(int_list)):
group = numbers.setdefault(int(int_list[index]), [])
group.append(index)
for number in numbers:
retval = numbers[number]
if len(retval) == 1:
return retval[0] ... |
a5faf69efd3a53b937b0bd27d42ad0ca8b0af9a9 | centinel/backend.py | centinel/backend.py | import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_experiments():
... | import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_experiments():
... | Add ability to submit results | Add ability to submit results
| Python | mit | iclab/centinel,JASONews/centinel,lianke123321/centinel,Ashish1805/centinel,lianke123321/centinel,iclab/centinel,iclab/centinel,ben-jones/centinel,rpanah/centinel,lianke123321/centinel,rpanah/centinel,rpanah/centinel | import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_experiments():
... | import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_experiments():
... | <commit_before>import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_ex... | import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_experiments():
... | import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_experiments():
... | <commit_before>import requests
import config
def request(slug):
url = "%s%s" % (config.server_url, slug)
req = requests.get(url)
if req.status_code != requests.codes.ok:
raise req.raise_for_status()
return req.json()
def get_recommended_versions():
return request("/versions")
def get_ex... |
de4f395d75d7307a79d8db44399a6feaa0118c0a | wrappers/python/setup.py | wrappers/python/setup.py | from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK f... | from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK f... | Fix pytest version in python wrapper deps. | Fix pytest version in python wrapper deps.
Signed-off-by: Sergey Minaev <322af3f2df10918c6ef5280f56be0b711278b1ae@dsr-company.com>
| Python | apache-2.0 | anastasia-tarasova/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy-sdk,Artemkaaas/indy-sdk,peacekeeper/indy-sdk,peacekeeper/indy-sdk,anastasia-tarasova/indy-sdk,srottem/indy-sdk,peacekeeper/indy-sdk,srottem/indy-sdk,peacekeeper/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy... | from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK f... | from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK f... | <commit_before>from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the... | from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK f... | from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK f... | <commit_before>from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the... |
cd621061773b7eafcea9358c9b762663a070ccc5 | cc/license/jurisdiction.py | cc/license/jurisdiction.py | import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
'''@param short_name can be e.g. mx'''
model = rdf_helper.init_model(
rdf_helper.JURI_RDF_PATH)
... | import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
"""Creates an object representing a jurisdiction.
short_name is a (usually) two-letter code representing
... | Add documentation and make Jurisdiction calls not fail when some of the values aren't found. | Add documentation and make Jurisdiction calls not fail when some of the values aren't found.
| Python | mit | creativecommons/cc.license,creativecommons/cc.license | import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
'''@param short_name can be e.g. mx'''
model = rdf_helper.init_model(
rdf_helper.JURI_RDF_PATH)
... | import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
"""Creates an object representing a jurisdiction.
short_name is a (usually) two-letter code representing
... | <commit_before>import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
'''@param short_name can be e.g. mx'''
model = rdf_helper.init_model(
rdf_helper.JURI_... | import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
"""Creates an object representing a jurisdiction.
short_name is a (usually) two-letter code representing
... | import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
'''@param short_name can be e.g. mx'''
model = rdf_helper.init_model(
rdf_helper.JURI_RDF_PATH)
... | <commit_before>import RDF
import zope.interface
import interfaces
import rdf_helper
class Jurisdiction(object):
zope.interface.implements(interfaces.IJurisdiction)
def __init__(self, short_name):
'''@param short_name can be e.g. mx'''
model = rdf_helper.init_model(
rdf_helper.JURI_... |
d8f1b1151ff917cad924bd6f8fac330602c259c9 | warreport/__main__.py | warreport/__main__.py | import asyncio
import logging
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.gather(
battle_mo... | import asyncio
import logging
import os
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
gathered_future = asyncio.gather(
batt... | Make another try at graceful exiting. | Make another try at graceful exiting.
This still does use os._exit() after all coroutines have finished, but it's significantly less spaghetti code, and it makes it nicer to exit the program.
| Python | mit | daboross/screeps-warreport | import asyncio
import logging
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.gather(
battle_mo... | import asyncio
import logging
import os
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
gathered_future = asyncio.gather(
batt... | <commit_before>import asyncio
import logging
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.gather(
... | import asyncio
import logging
import os
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
gathered_future = asyncio.gather(
batt... | import asyncio
import logging
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.gather(
battle_mo... | <commit_before>import asyncio
import logging
from warreport import battle_monitor, battle_reporting
logger = logging.getLogger("warreport")
def main():
logger.info("Starting main loop.")
logger.debug("Debug logging enabled.")
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.gather(
... |
9c39105f2dcb296590e895aaf35de5d4c3105ddb | ephypype/commands/tests/test_cli.py | ephypype/commands/tests/test_cli.py | """Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
def test_input_linear():
"""Test input node with Linear plugin (serial workflow execu... | """Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import matplotlib # noqa
matplotlib.use('Agg') # noqa; for testing don't use X server
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
d... | FIX matplotlib backend problem in cli tests | FIX matplotlib backend problem in cli tests
| Python | bsd-3-clause | neuropycon/ephypype | """Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
def test_input_linear():
"""Test input node with Linear plugin (serial workflow execu... | """Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import matplotlib # noqa
matplotlib.use('Agg') # noqa; for testing don't use X server
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
d... | <commit_before>"""Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
def test_input_linear():
"""Test input node with Linear plugin (serial... | """Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import matplotlib # noqa
matplotlib.use('Agg') # noqa; for testing don't use X server
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
d... | """Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
def test_input_linear():
"""Test input node with Linear plugin (serial workflow execu... | <commit_before>"""Test neuropycon command line interface"""
# Authors: Dmitrii Altukhov <daltuhov@hse.ru>
#
# License: BSD (3-clause)
import os
import os.path as op
from ephypype.commands import neuropycon
from click.testing import CliRunner
def test_input_linear():
"""Test input node with Linear plugin (serial... |
3204b2d5110a1a5cd16bad36ba5d5e916741fd2b | sensomatic/ui/persistence/models.py | sensomatic/ui/persistence/models.py | from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.select(Sensor.value)... | from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateTimeField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.select(Sensor.va... | Store datetime instead of only date | Store datetime instead of only date
| Python | mit | rrader/sens-o-matic,rrader/sens-o-matic,rrader/sens-o-matic | from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.select(Sensor.value)... | from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateTimeField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.select(Sensor.va... | <commit_before>from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.selec... | from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateTimeField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.select(Sensor.va... | from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.select(Sensor.value)... | <commit_before>from peewee import *
db = SqliteDatabase('sensors.db')
class Sensor(Model):
name = CharField()
value = CharField()
timestamp = DateField()
class Meta:
database = db # This model uses the "people.db" database.
def get_last_record(sensor_name):
records = list(Sensor.selec... |
92d25e86620fcdc415e94d5867cc22a95f88ca3a | mint/rest/db/awshandler.py | mint/rest/db/awshandler.py | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userlevel = None):
... | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userlevel = None):
... | Fix typo when setting up handler. | Fix typo when setting up handler.
| Python | apache-2.0 | sassoftware/mint,sassoftware/mint,sassoftware/mint,sassoftware/mint,sassoftware/mint | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userlevel = None):
... | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userlevel = None):
... | <commit_before>#
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userle... | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userlevel = None):
... | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userlevel = None):
... | <commit_before>#
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import amiperms
class AWSHandler(object):
def __init__(self, cfg, db):
self.db = db
self.amiPerms = amiperms.AMIPermissionsManager(cfg, db)
def notify_UserProductRemoved(self, event, userId, projectId, userle... |
09b2fe8b248e70300470fcf71f6df0741376c548 | misc/disassemble_linear.py | misc/disassemble_linear.py | import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines):
res = ''
for line in lines:
op = proc.CPU_CONF['parse_line'](line)
if op is None:
continue
res += '{:04X}'.format(op['pc']) + ' - ' + dis.disassembl... | import argparse
import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines, keep_logs=False):
res = []
for line in lines:
op, gline = proc.CPU_CONF['parse_line'](line), ''
if keep_logs:
gline += line + (' | DIS: ' if ... | Fix and enhance disassemble miscellaneous script. | Fix and enhance disassemble miscellaneous script.
| Python | bsd-3-clause | fmichea/bracoujl | import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines):
res = ''
for line in lines:
op = proc.CPU_CONF['parse_line'](line)
if op is None:
continue
res += '{:04X}'.format(op['pc']) + ' - ' + dis.disassembl... | import argparse
import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines, keep_logs=False):
res = []
for line in lines:
op, gline = proc.CPU_CONF['parse_line'](line), ''
if keep_logs:
gline += line + (' | DIS: ' if ... | <commit_before>import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines):
res = ''
for line in lines:
op = proc.CPU_CONF['parse_line'](line)
if op is None:
continue
res += '{:04X}'.format(op['pc']) + ' - ' +... | import argparse
import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines, keep_logs=False):
res = []
for line in lines:
op, gline = proc.CPU_CONF['parse_line'](line), ''
if keep_logs:
gline += line + (' | DIS: ' if ... | import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines):
res = ''
for line in lines:
op = proc.CPU_CONF['parse_line'](line)
if op is None:
continue
res += '{:04X}'.format(op['pc']) + ' - ' + dis.disassembl... | <commit_before>import sys
import time
import bracoujl.processor.gb_z80 as proc
dis = proc.CPU_CONF['disassembler']()
def disassemble(lines):
res = ''
for line in lines:
op = proc.CPU_CONF['parse_line'](line)
if op is None:
continue
res += '{:04X}'.format(op['pc']) + ' - ' +... |
e0063c0d5604372c1a07a179f5206a0a27570817 | package_reviewer/check/repo/check_semver_tags.py | package_reviewer/check/repo/check_semver_tags.py | import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found. See http://semver.org."
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
m... | import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found"
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
msg += " (semantic versio... | Change message of semver tag check | Change message of semver tag check
| Python | mit | packagecontrol/st_package_reviewer,packagecontrol/package_reviewer | import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found. See http://semver.org."
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
m... | import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found"
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
msg += " (semantic versio... | <commit_before>import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found. See http://semver.org."
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
... | import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found"
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
msg += " (semantic versio... | import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found. See http://semver.org."
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
m... | <commit_before>import re
from . import RepoChecker
class CheckSemverTags(RepoChecker):
def check(self):
if not self.semver_tags:
msg = "No semantic version tags found. See http://semver.org."
for tag in self.tags:
if re.search(r"(v|^)\d+\.\d+$", tag.name):
... |
d3163d8a7695da9687f82d9d40c6767322998fc2 | python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_collections.py | python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep-py3/test_collections.py | # Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..taintlib... | # Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..taintlib... | Add iterable-unpacking in for test | Python: Add iterable-unpacking in for test
| Python | mit | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql | # Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..taintlib... | # Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..taintlib... | <commit_before># Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
... | # Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..taintlib... | # Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..taintlib... | <commit_before># Add taintlib to PATH so it can be imported during runtime without any hassle
import sys; import os; sys.path.append(os.path.dirname(os.path.dirname((__file__))))
from taintlib import *
# This has no runtime impact, but allows autocomplete to work
from typing import TYPE_CHECKING
if TYPE_CHECKING:
... |
679abfdd2b6a3c4d18170d93bfd42d73c47ff9c5 | phasm/typing.py | phasm/typing.py | """
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
OrientedRead = 'p... | """
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
OrientedRead = 'p... | Change Node type a bit | Change Node type a bit
In a reconstructed assembly graph sometimes the nodes can be str
| Python | mit | AbeelLab/phasm,AbeelLab/phasm | """
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
OrientedRead = 'p... | """
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
OrientedRead = 'p... | <commit_before>"""
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
Or... | """
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
OrientedRead = 'p... | """
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
OrientedRead = 'p... | <commit_before>"""
Several type aliases used througout PHASM
-----------------------------------------
This is a separate module to prevent circular imports.
"""
from typing import Mapping, Set, Callable, Union, Tuple, Iterable
# Pairwise local alignments
OrientedDNASegment = 'phasm.alignments.OrientedDNASegment'
Or... |
fea07e0fe53049963a744b52c38a9abdfeb1c09e | commands.py | commands.py | from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURCE_FULL_FILEPATH... | from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURCE_FULL_FILEPATH... | Revert "Started exploring using argument but realizing this is a rabbit hole" | Revert "Started exploring using argument but realizing this is a rabbit hole"
This reverts commit b899d5613c0f4425aa4cc69bac9561b503ba83d4.
| Python | unlicense | twolfson/sublime-edit-command-palette,twolfson/sublime-edit-command-palette,twolfson/sublime-edit-command-palette | from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURCE_FULL_FILEPATH... | from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURCE_FULL_FILEPATH... | <commit_before>from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURC... | from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURCE_FULL_FILEPATH... | from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURCE_FULL_FILEPATH... | <commit_before>from os import path
import shutil
import sublime
import sublime_plugin
SUBLIME_ROOT = path.normpath(path.join(sublime.packages_path(), '..'))
COMMANDS_FILEPATH = path.join('Packages', 'User', 'Commands.sublime-commands')
COMMANDS_FULL_FILEPATH = path.join(SUBLIME_ROOT, COMMANDS_FILEPATH)
COMMANDS_SOURC... |
b21c5a1b0f8d176cdd59c8131a316f142540d9ec | materials.py | materials.py | import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.parse(c[0])
... | import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.parse(c[0])
... | Remove replacement of commas by points | Remove replacement of commas by points
| Python | mit | cocreature/pytracer | import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.parse(c[0])
... | import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.parse(c[0])
... | <commit_before>import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.pa... | import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.parse(c[0])
... | import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.parse(c[0])
... | <commit_before>import color
def parse(mat_node):
materials = []
for node in mat_node:
materials.append(Material(node))
class Material:
''' it’s a material
'''
def __init__(self, node):
for c in node:
if c.tag == 'ambient':
self.ambient_color = color.pa... |
2fe72f41b1b62cf770869b8d3ccefeef1096ea11 | conftest.py | conftest.py | # -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run environment:
... | # -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run environment:
... | FIX when pytest-html is not installed. | FIX when pytest-html is not installed.
| Python | bsd-2-clause | Abdoctor/behave,Abdoctor/behave,jenisys/behave,jenisys/behave | # -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run environment:
... | # -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run environment:
... | <commit_before># -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run... | # -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run environment:
... | # -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run environment:
... | <commit_before># -*- coding: UTF-8 -*-
"""
Configure pytest environment.
Add project-specific information.
.. seealso::
* https://github.com/pytest-dev/pytest-html
"""
import behave
import pytest
@pytest.fixture(autouse=True)
def _annotate_environment(request):
"""Add project-specific information to test-run... |
6df2a6e82a04c6cb19a789c55f758d0958a9b690 | nipype/interfaces/setup.py | nipype/interfaces/setup.py | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ == '__main__':
from numpy.dist... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_subpackage('fsl')
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ ... | Add fsl subpackage on install. | Add fsl subpackage on install.
git-svn-id: 24f545668198cdd163a527378499f2123e59bf9f@1050 ead46cd0-7350-4e37-8683-fc4c6f79bf00
| Python | bsd-3-clause | glatard/nipype,rameshvs/nipype,arokem/nipype,wanderine/nipype,wanderine/nipype,FredLoney/nipype,dmordom/nipype,arokem/nipype,Leoniela/nipype,blakedewey/nipype,wanderine/nipype,dmordom/nipype,FCP-INDI/nipype,FredLoney/nipype,gerddie/nipype,FCP-INDI/nipype,christianbrodbeck/nipype,iglpdc/nipype,mick-d/nipype,satra/NiPype... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ == '__main__':
from numpy.dist... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_subpackage('fsl')
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ ... | <commit_before>def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ == '__main__':
... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_subpackage('fsl')
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ ... | def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ == '__main__':
from numpy.dist... | <commit_before>def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('interfaces', parent_package, top_path)
config.add_data_dir('tests')
config.add_data_dir('script_templates')
return config
if __name__ == '__main__':
... |
1f6fb7bb0e20cafbe4392bf8a0cafa3e9fa2fbc1 | main.py | main.py | #!/usr/bin/python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
# TODO encrypt buf
# TODO send to wlan0
... | #!/usr/bin/env python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
... | Change shebang to use python from environment. Fix Indentation. | Change shebang to use python from environment. Fix Indentation.
| Python | mit | adrian-nicolau/ipsec-poc,adrian-nicolau/ipsec-poc | #!/usr/bin/python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
# TODO encrypt buf
# TODO send to wlan0
... | #!/usr/bin/env python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
... | <commit_before>#!/usr/bin/python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
# TODO encrypt buf
# TODO s... | #!/usr/bin/env python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
... | #!/usr/bin/python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
# TODO encrypt buf
# TODO send to wlan0
... | <commit_before>#!/usr/bin/python
from pytun import TunTapDevice
from binascii import hexlify
if __name__ == '__main__':
tun = TunTapDevice(name='ipsec-tun')
tun.up()
tun.persist(True)
while True:
try:
buf = tun.read(tun.mtu)
print hexlify(buf[4:])
IPpayload = buf[4:]
# TODO encrypt buf
# TODO s... |
6267fa5d9a3ff2573dc33a23d3456942976b0b7e | cyder/base/models.py | cyder/base/models.py | from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created = models.DateTim... | from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created = models.DateTim... | Add help_text to interface 'expire' field | Add help_text to interface 'expire' field
| Python | bsd-3-clause | OSU-Net/cyder,zeeman/cyder,drkitty/cyder,zeeman/cyder,OSU-Net/cyder,murrown/cyder,OSU-Net/cyder,murrown/cyder,murrown/cyder,drkitty/cyder,drkitty/cyder,OSU-Net/cyder,akeym/cyder,murrown/cyder,akeym/cyder,akeym/cyder,drkitty/cyder,zeeman/cyder,zeeman/cyder,akeym/cyder | from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created = models.DateTim... | from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created = models.DateTim... | <commit_before>from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created =... | from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created = models.DateTim... | from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created = models.DateTim... | <commit_before>from django.db import models
from django.utils.safestring import mark_safe
from cyder.base.utils import classproperty
class BaseModel(models.Model):
"""
Base class for models to abstract some common features.
* Adds automatic created and modified fields to the model.
"""
created =... |
2150f99461e4790477ad90483a7f716f09679ef1 | p025.py | p025.py | #!/usr/bin/env python3
"""Solves problem xxx from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
return res... | #!/usr/bin/env python3
"""Solves problem 025 from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
return res... | Fix comment in previous commit. | Fix comment in previous commit.
| Python | mit | janhenke/project-euler | #!/usr/bin/env python3
"""Solves problem xxx from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
return res... | #!/usr/bin/env python3
"""Solves problem 025 from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
return res... | <commit_before>#!/usr/bin/env python3
"""Solves problem xxx from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
... | #!/usr/bin/env python3
"""Solves problem 025 from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
return res... | #!/usr/bin/env python3
"""Solves problem xxx from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
return res... | <commit_before>#!/usr/bin/env python3
"""Solves problem xxx from the Project Euler website"""
from common.fibonacci import fibonacci_numbers_until_n_digits
def solve():
"""Solve the problem and return the result"""
fibonacci_numbers = fibonacci_numbers_until_n_digits(1000)
result = len(fibonacci_numbers)
... |
f29a6b205a872d7df63e8c45b5829959c98de227 | comics/comics/pcweenies.py | comics/comics/pcweenies.py | from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase):
history_c... | from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase):
history_c... | Update CSS selector which matched two img elements | Update CSS selector which matched two img elements
| Python | agpl-3.0 | klette/comics,jodal/comics,jodal/comics,datagutten/comics,jodal/comics,datagutten/comics,jodal/comics,klette/comics,klette/comics,datagutten/comics,datagutten/comics | from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase):
history_c... | from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase):
history_c... | <commit_before>from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase)... | from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase):
history_c... | from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase):
history_c... | <commit_before>from comics.aggregator.crawler import CrawlerBase, CrawlerResult
from comics.meta.base import MetaBase
class Meta(MetaBase):
name = 'The PC Weenies'
language = 'en'
url = 'http://www.pcweenies.com/'
start_date = '1998-10-21'
rights = 'Krishna M. Sadasivam'
class Crawler(CrawlerBase)... |
5f0f1da10ebc01d95bb8659f5dc7782e57365b53 | .conda/to_cargoport.py | .conda/to_cargoport.py | #!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
else:
re... | #!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
else:
gu... | Fix download issue for a few packages | Fix download issue for a few packages
| Python | mit | erasche/community-package-cache,erasche/community-package-cache,gregvonkuster/cargo-port,gregvonkuster/cargo-port,galaxyproject/cargo-port,galaxyproject/cargo-port,erasche/community-package-cache,gregvonkuster/cargo-port | #!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
else:
re... | #!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
else:
gu... | <commit_before>#!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
e... | #!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
else:
gu... | #!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
else:
re... | <commit_before>#!/usr/bin/env python
import sys
import yaml
def extDetect(url):
if url.endswith('.tar.gz'):
return '.tar.gz'
elif url.endswith('.tgz'):
return '.tar.gz'
elif url.endswith('.tar.bz2'):
return '.tar.bz2'
elif url.endswith('.tar.xz'):
return '.tar.xz'
e... |
54f53815653f807c17c33e9d3262d9d3a31abfcf | scripts/fill_events.py | scripts/fill_events.py | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
today = datetime.now()
ke... | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
keywords = ['foo', 'bar', ... | Print info about keywords when loading sample data | Print info about keywords when loading sample data
| Python | mit | thobbs/logsandra | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
today = datetime.now()
ke... | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
keywords = ['foo', 'bar', ... | <commit_before>#!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
today = da... | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
keywords = ['foo', 'bar', ... | #!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
today = datetime.now()
ke... | <commit_before>#!/usr/bin/env python
import sys
import os
sys.path.append(os.path.join(os.path.dirname('__file__'), '..', 'src'))
from random import randint
from datetime import datetime, timedelta
from logsandra.model.client import CassandraClient
client = CassandraClient('test', 'localhost', 9160, 3)
today = da... |
6ad647899d044cb46be6172cbea9c93a369ddc78 | pymanopt/solvers/theano_functions/comp_diff.py | pymanopt/solvers/theano_functions/comp_diff.py | # Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'argument' and re... | # Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'argument' and re... | Use `compile` function for `gradient` function | Use `compile` function for `gradient` function
Signed-off-by: Niklas Koep <342d5290239d9c5264c8f98185afedb99596601a@gmail.com>
| Python | bsd-3-clause | j-towns/pymanopt,nkoep/pymanopt,pymanopt/pymanopt,tingelst/pymanopt,nkoep/pymanopt,pymanopt/pymanopt,nkoep/pymanopt | # Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'argument' and re... | # Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'argument' and re... | <commit_before># Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'a... | # Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'argument' and re... | # Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'argument' and re... | <commit_before># Module containing functions to compile and differentiate Theano graphs.
import theano.tensor as T
import theano
# Compile objective function defined in Theano.
def compile(objective, argument):
return theano.function([argument], objective)
# Compute the gradient of 'objective' with respect to 'a... |
48e4203bc87fda407d0e5f804c854b53f7bf54fc | lemon/publications/managers.py | lemon/publications/managers.py | from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
return self... | from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
return self... | Fix handling of the _db attribute on the PublicationManager in get_query_set | Fix handling of the _db attribute on the PublicationManager in get_query_set
| Python | bsd-3-clause | trilan/lemon,trilan/lemon,trilan/lemon | from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
return self... | from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
return self... | <commit_before>from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
... | from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
return self... | from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
return self... | <commit_before>from django.db import models
from lemon.publications.querysets import PublicationQuerySet
class PublicationManager(models.Manager):
def expired(self):
return self.get_query_set().expired()
def future(self):
return self.get_query_set().future()
def enabled(self):
... |
3c4565dcf6222af0e3b7cabf5c52f9ab18488be2 | tests/test_main.py | tests/test_main.py | from cookiecutter.main import is_repo_url, expand_abbreviations
def test_is_repo_url():
"""Verify is_repo_url works."""
assert is_repo_url('gitolite@server:team/repo') is True
assert is_repo_url('git@github.com:audreyr/cookiecutter.git') is True
assert is_repo_url('https://github.com/audreyr/cookiecut... | # -*- coding: utf-8 -*-
import pytest
from cookiecutter.main import is_repo_url, expand_abbreviations
@pytest.fixture(params=[
'gitolite@server:team/repo',
'git@github.com:audreyr/cookiecutter.git',
'https://github.com/audreyr/cookiecutter.git',
'https://bitbucket.org/pokoli/cookiecutter.hg',
])
def... | Refactor tests for is_repo_url to be parametrized | Refactor tests for is_repo_url to be parametrized
| Python | bsd-3-clause | luzfcb/cookiecutter,terryjbates/cookiecutter,michaeljoseph/cookiecutter,willingc/cookiecutter,pjbull/cookiecutter,stevepiercy/cookiecutter,hackebrot/cookiecutter,dajose/cookiecutter,Springerle/cookiecutter,dajose/cookiecutter,stevepiercy/cookiecutter,terryjbates/cookiecutter,audreyr/cookiecutter,pjbull/cookiecutter,aud... | from cookiecutter.main import is_repo_url, expand_abbreviations
def test_is_repo_url():
"""Verify is_repo_url works."""
assert is_repo_url('gitolite@server:team/repo') is True
assert is_repo_url('git@github.com:audreyr/cookiecutter.git') is True
assert is_repo_url('https://github.com/audreyr/cookiecut... | # -*- coding: utf-8 -*-
import pytest
from cookiecutter.main import is_repo_url, expand_abbreviations
@pytest.fixture(params=[
'gitolite@server:team/repo',
'git@github.com:audreyr/cookiecutter.git',
'https://github.com/audreyr/cookiecutter.git',
'https://bitbucket.org/pokoli/cookiecutter.hg',
])
def... | <commit_before>from cookiecutter.main import is_repo_url, expand_abbreviations
def test_is_repo_url():
"""Verify is_repo_url works."""
assert is_repo_url('gitolite@server:team/repo') is True
assert is_repo_url('git@github.com:audreyr/cookiecutter.git') is True
assert is_repo_url('https://github.com/au... | # -*- coding: utf-8 -*-
import pytest
from cookiecutter.main import is_repo_url, expand_abbreviations
@pytest.fixture(params=[
'gitolite@server:team/repo',
'git@github.com:audreyr/cookiecutter.git',
'https://github.com/audreyr/cookiecutter.git',
'https://bitbucket.org/pokoli/cookiecutter.hg',
])
def... | from cookiecutter.main import is_repo_url, expand_abbreviations
def test_is_repo_url():
"""Verify is_repo_url works."""
assert is_repo_url('gitolite@server:team/repo') is True
assert is_repo_url('git@github.com:audreyr/cookiecutter.git') is True
assert is_repo_url('https://github.com/audreyr/cookiecut... | <commit_before>from cookiecutter.main import is_repo_url, expand_abbreviations
def test_is_repo_url():
"""Verify is_repo_url works."""
assert is_repo_url('gitolite@server:team/repo') is True
assert is_repo_url('git@github.com:audreyr/cookiecutter.git') is True
assert is_repo_url('https://github.com/au... |
d312815697a3457ee0b3d12da9d07c0cab7a5622 | media.py | media.py | # media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
runt... | # media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
runt... | Change Movie parameter from production_company to production_companies | Change Movie parameter from production_company to production_companies
| Python | mit | vishallama/udacity-fullstack-movie-trailer,vishallama/udacity-fullstack-movie-trailer | # media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
runt... | # media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
runt... | <commit_before># media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
... | # media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
runt... | # media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
runt... | <commit_before># media.py
class Movie(object):
def __init__(self,
title,
storyline,
poster_image_url,
trailer_youtube_url,
lead_actors,
release_date,
mpaa_rating,
language,
... |
4b6bb7b7d258a9f130b7d10f390f44dec855cc19 | admin/src/gui/NewScoville.py | admin/src/gui/NewScoville.py | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as... | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as... | Revert "added constructor (testcommit for new git interface)" | Revert "added constructor (testcommit for new git interface)"
This reverts commit d5c0252b75e97103d61c3203e2a8d04a061c8a2f.
| Python | agpl-3.0 | skarphed/skarphed,skarphed/skarphed | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as... | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as... | <commit_before>#!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Publi... | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as... | #!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as... | <commit_before>#!/usr/bin/python
#-*- coding: utf-8 -*-
###########################################################
# Copyright 2011 Daniel 'grindhold' Brendle and Team
#
# This file is part of Scoville.
#
# Scoville is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Publi... |
f5c8c9909a8b7288503f1ed3dcd87c5e59d3817c | settings.py | settings.py | import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdConfig(Config):
... | import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdConfig(Config):
... | Use environment db url, otherwise a service specific one. | Use environment db url, otherwise a service specific one.
| Python | mit | jawrainey/atc,jawrainey/atc | import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdConfig(Config):
... | import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdConfig(Config):
... | <commit_before>import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdCo... | import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdConfig(Config):
... | import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdConfig(Config):
... | <commit_before>import os
class Config(object):
"""
The shared configuration settings for the flask app.
"""
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__)))
CSRF_ENABLED = True
CSRF_SESSION_KEY = "supersecretpassword"
SECRET_KEY = 'supersecretpassword'
class ProdCo... |
8a43c573ebb606cfc6436396f2062fb9f00189d2 | asynctnt/__init__.py | asynctnt/__init__.py | from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.5'
| from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.6'
| Fix schema refetch bug. Version increase | Fix schema refetch bug. Version increase
| Python | apache-2.0 | igorcoding/asynctnt,igorcoding/asynctnt,igorcoding/asynctnt | from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.5'
Fix schema refetch bug. Version increase | from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.6'
| <commit_before>from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.5'
<commit_msg>Fix schema refetch bug. Version increase<commit_after> | from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.6'
| from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.5'
Fix schema refetch bug. Version increasefrom .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.6'
| <commit_before>from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.5'
<commit_msg>Fix schema refetch bug. Version increase<commit_after>from .connection import Connection, connect
from .iproto.protocol import Iterator, Response
__version__ = '0.1.6'
|
589598a9fc3871fe534e4dde60b61c9a0a56e224 | legistar/ext/pupa/orgs.py | legistar/ext/pupa/orgs.py | import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the associated keys are... | import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the associated keys are... | Remove cruft copied from Memberships adapter | Remove cruft copied from Memberships adapter
| Python | bsd-3-clause | opencivicdata/python-legistar-scraper,datamade/python-legistar-scraper | import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the associated keys are... | import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the associated keys are... | <commit_before>import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the asso... | import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the associated keys are... | import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the associated keys are... | <commit_before>import pupa.scrape
from legistar.utils.itemgenerator import make_item
from legistar.ext.pupa.base import Adapter, Converter
class OrgsAdapter(Adapter):
'''Converts legistar data into a pupa.scrape.Person instance.
Note the make_item methods are popping values out the dict,
because the asso... |
42d06a15dd30e770dfccfccbd20fbf9bba52494d | platforms/m3/programming/goc_gdp_test.py | platforms/m3/programming/goc_gdp_test.py | #!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl_handle.append(... | #!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl_handle.append(... | Update gdp test to open random images | Update gdp test to open random images
| Python | apache-2.0 | lab11/M-ulator,lab11/M-ulator,lab11/M-ulator,lab11/M-ulator,lab11/M-ulator,lab11/M-ulator,lab11/M-ulator | #!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl_handle.append(... | #!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl_handle.append(... | <commit_before>#!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl... | #!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl_handle.append(... | #!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl_handle.append(... | <commit_before>#!/usr/bin/env python2
import code
try:
import Image
except ImportError:
from PIL import Image
import gdp
gdp.gdp_init()
gcl_name = gdp.GDP_NAME("edu.umich.eecs.m3.test01")
gcl_handle = gdp.GDP_GCL(gcl_name, gdp.GDP_MODE_RA)
#j = Image.open('/tmp/capture1060.jpeg')
#d = {"data": j.tostring()}
#gcl... |
e29039cf5b1cd0b40b8227ef73c2d5327450c162 | app/core/servicemanager.py | app/core/servicemanager.py | """
Contains components that manage services, their sequences and interdependence (later)
"""
import threading
import logging
logger = logging.getLogger(__name__)
class ServiceManager(threading.Thread):
"""
Sequentially starts services using service.service_start(). When a new
service is activated, vie... | """
Contains components that manage services, their sequences and interdependence.
"""
import importlib
import logging
from collections import namedtuple
from app.core.toposort import toposort
logger = logging.getLogger(__name__)
Module = namedtuple('Module', ["name", "deps", "meta"])
def list_modules(module):
... | Use toposort for sequencing services. | Use toposort for sequencing services.
| Python | mit | supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer | """
Contains components that manage services, their sequences and interdependence (later)
"""
import threading
import logging
logger = logging.getLogger(__name__)
class ServiceManager(threading.Thread):
"""
Sequentially starts services using service.service_start(). When a new
service is activated, vie... | """
Contains components that manage services, their sequences and interdependence.
"""
import importlib
import logging
from collections import namedtuple
from app.core.toposort import toposort
logger = logging.getLogger(__name__)
Module = namedtuple('Module', ["name", "deps", "meta"])
def list_modules(module):
... | <commit_before>"""
Contains components that manage services, their sequences and interdependence (later)
"""
import threading
import logging
logger = logging.getLogger(__name__)
class ServiceManager(threading.Thread):
"""
Sequentially starts services using service.service_start(). When a new
service is... | """
Contains components that manage services, their sequences and interdependence.
"""
import importlib
import logging
from collections import namedtuple
from app.core.toposort import toposort
logger = logging.getLogger(__name__)
Module = namedtuple('Module', ["name", "deps", "meta"])
def list_modules(module):
... | """
Contains components that manage services, their sequences and interdependence (later)
"""
import threading
import logging
logger = logging.getLogger(__name__)
class ServiceManager(threading.Thread):
"""
Sequentially starts services using service.service_start(). When a new
service is activated, vie... | <commit_before>"""
Contains components that manage services, their sequences and interdependence (later)
"""
import threading
import logging
logger = logging.getLogger(__name__)
class ServiceManager(threading.Thread):
"""
Sequentially starts services using service.service_start(). When a new
service is... |
fc1505865f919764aa066e5e43dcde1bc7e760b2 | frappe/patches/v13_0/rename_desk_page_to_workspace.py | frappe/patches/v13_0/rename_desk_page_to_workspace.py | import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_doc('DocType', ... | import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_doc('DocType', ... | Rename Desk Link only if it exists | fix(Patch): Rename Desk Link only if it exists
| Python | mit | frappe/frappe,StrellaGroup/frappe,StrellaGroup/frappe,saurabh6790/frappe,StrellaGroup/frappe,mhbu50/frappe,almeidapaulopt/frappe,yashodhank/frappe,saurabh6790/frappe,mhbu50/frappe,frappe/frappe,yashodhank/frappe,almeidapaulopt/frappe,mhbu50/frappe,saurabh6790/frappe,almeidapaulopt/frappe,almeidapaulopt/frappe,yashodhan... | import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_doc('DocType', ... | import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_doc('DocType', ... | <commit_before>import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_... | import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_doc('DocType', ... | import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_doc('DocType', ... | <commit_before>import frappe
from frappe.model.rename_doc import rename_doc
def execute():
if frappe.db.exists("DocType", "Desk Page"):
if frappe.db.exists('DocType', 'Workspace'):
# this patch was not added initially, so this page might still exist
frappe.delete_doc('DocType', 'Desk Page')
else:
rename_... |
bac71c099f0196d5ab74a8ec08cedc32ab008e1c | graphite/post-setup-graphite-web.py | graphite/post-setup-graphite-web.py | #!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_settings.py
settings... | #!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_settings.py
settings... | Check if admin user exists before creating one | Check if admin user exists before creating one
| Python | mit | rvernica/Dockerfile,rvernica/docker-library,rvernica/docker-library | #!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_settings.py
settings... | #!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_settings.py
settings... | <commit_before>#!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_setti... | #!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_settings.py
settings... | #!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_settings.py
settings... | <commit_before>#!/usr/bin/env python
import os
import random
import string
import sys
from django.utils.crypto import get_random_string
## Check if the script was already executed
flag_filename = '/opt/graphite/post-setup-complete'
if os.path.isfile(flag_filename):
sys.exit(0)
## Add SECRET_KEY to local_setti... |
828fec30b5b1deddcca79eae8fd1029bd5bd7b54 | py/desispec/io/__init__.py | py/desispec/io/__init__.py | #
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import findfile, get_exposures, get_files, rawdata_root, specprod_root
from .fra... | #
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import (findfile, get_exposures, get_files, rawdata_root,
specprod_root, va... | Add validate_night to public API | Add validate_night to public API
| Python | bsd-3-clause | desihub/desispec,gdhungana/desispec,timahutchinson/desispec,gdhungana/desispec,desihub/desispec,timahutchinson/desispec | #
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import findfile, get_exposures, get_files, rawdata_root, specprod_root
from .fra... | #
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import (findfile, get_exposures, get_files, rawdata_root,
specprod_root, va... | <commit_before>#
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import findfile, get_exposures, get_files, rawdata_root, specprod... | #
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import (findfile, get_exposures, get_files, rawdata_root,
specprod_root, va... | #
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import findfile, get_exposures, get_files, rawdata_root, specprod_root
from .fra... | <commit_before>#
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
desispec.io
===========
Tools for data and metadata I/O.
"""
# help with 2to3 support
from __future__ import absolute_import, division
from .meta import findfile, get_exposures, get_files, rawdata_root, specprod... |
6699526ab04684ca9af3f6eb0f5361221e46e195 | src/purkinje/purkinje.py | src/purkinje/purkinje.py | #!/usr/bin/env python
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
app = get_app()
app.debug = DEBUG
# ap... | #!/usr/bin/env python
import gevent.monkey
gevent.monkey.patch_all()
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
... | Apply gevent monkey patching, so it will get invoked when main is called via the entry point script and not via shell script | Apply gevent monkey patching, so it will get invoked when main
is called via the entry point script and not via shell script
| Python | mit | bbiskup/purkinje,bbiskup/purkinje,bbiskup/purkinje,bbiskup/purkinje | #!/usr/bin/env python
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
app = get_app()
app.debug = DEBUG
# ap... | #!/usr/bin/env python
import gevent.monkey
gevent.monkey.patch_all()
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
... | <commit_before>#!/usr/bin/env python
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
app = get_app()
app.debug =... | #!/usr/bin/env python
import gevent.monkey
gevent.monkey.patch_all()
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
... | #!/usr/bin/env python
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
app = get_app()
app.debug = DEBUG
# ap... | <commit_before>#!/usr/bin/env python
from gevent.wsgi import WSGIServer
import werkzeug.serving
from werkzeug.debug import DebuggedApplication
from app import get_app
APP_PORT = 5000
DEBUG = True
@werkzeug.serving.run_with_reloader
def main():
"""Starts web application
"""
app = get_app()
app.debug =... |
a15513ee5fc45cb974129a9097ab0a7dbb9769fc | apps/metricsmanager/api.py | apps/metricsmanager/api.py | from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers import *
from .formu... | from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers import *
from .formula import validate_formula
class Me... | Change formula validation error to consistent form | Change formula validation error to consistent form
| Python | agpl-3.0 | almey/policycompass-services,mmilaprat/policycompass-services,mmilaprat/policycompass-services,policycompass/policycompass-services,almey/policycompass-services,almey/policycompass-services,policycompass/policycompass-services,policycompass/policycompass-services,mmilaprat/policycompass-services | from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers import *
from .formu... | from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers import *
from .formula import validate_formula
class Me... | <commit_before>from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers impor... | from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers import *
from .formula import validate_formula
class Me... | from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers import *
from .formu... | <commit_before>from rest_framework.views import APIView
from rest_framework.reverse import reverse
from rest_framework.response import Response
from rest_framework import generics
from rest_framework import generics, status
from django.core.exceptions import ValidationError
from .models import *
from .serializers impor... |
ae5a0b42ed6e0e44868e7a0e0a4d5901e2cf9e6b | src/info_retrieval/info_retrieval.py | src/info_retrieval/info_retrieval.py | # LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document collection
def... | # LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document collection
def... | Fix semicolon :/ in info_retriever | Fix semicolon :/ in info_retriever
| Python | mit | amkahn/question-answering,amkahn/question-answering | # LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document collection
def... | # LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document collection
def... | <commit_before># LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document col... | # LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document collection
def... | # LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document collection
def... | <commit_before># LING 573 Question Answering System
# Code last updated 4/17/14 by Clara Gordon
# This code implements an InfoRetriever for the question answering system.
from pymur import *
from general_classes import *
class InfoRetriever:
# builds a QueryEnvironment associated with the indexed document col... |
caf4c29bada9d5b819d028469424ec195ffbc144 | tests/test_redefine_colors.py | tests/test_redefine_colors.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
assert not colorise.can_redefine_colors()
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
| Test color redefinition on nix | Test color redefinition on nix
| Python | bsd-3-clause | MisanthropicBit/colorise | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
Test color redefinition on nix | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
assert not colorise.can_redefine_colors()
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
| <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
<commit_msg>Test color redefinit... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
assert not colorise.can_redefine_colors()
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
Test color redefinition on nix#!/usr/bin/env py... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test redefinition of colors."""
import colorise
import pytest
@pytest.mark.skip_on_windows
def test_redefine_colors_error():
with pytest.raises(colorise.error.NotSupportedError):
colorise.redefine_colors({})
<commit_msg>Test color redefinit... |
6d2f9bfbe1011c04e014016171d98fef1d12e840 | tests/test_samtools_python.py | tests/test_samtools_python.py | import pysam
def test_idxstats_parse():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov():
bam_filename = "./pysam_data/ex1.bam"
bed_filename = "./pysam_data/ex1.bed"
lin... | import pysam
def test_idxstats_parse_old_style_output():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename, old_style_output=True)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov_old_style_output():
bam_filename = "./pysam_data/... | Add test for both new and old style output | Add test for both new and old style output
| Python | mit | pysam-developers/pysam,kyleabeauchamp/pysam,pysam-developers/pysam,TyberiusPrime/pysam,bioinformed/pysam,TyberiusPrime/pysam,bioinformed/pysam,TyberiusPrime/pysam,pysam-developers/pysam,bioinformed/pysam,kyleabeauchamp/pysam,TyberiusPrime/pysam,kyleabeauchamp/pysam,kyleabeauchamp/pysam,kyleabeauchamp/pysam,pysam-develo... | import pysam
def test_idxstats_parse():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov():
bam_filename = "./pysam_data/ex1.bam"
bed_filename = "./pysam_data/ex1.bed"
lin... | import pysam
def test_idxstats_parse_old_style_output():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename, old_style_output=True)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov_old_style_output():
bam_filename = "./pysam_data/... | <commit_before>import pysam
def test_idxstats_parse():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov():
bam_filename = "./pysam_data/ex1.bam"
bed_filename = "./pysam_data/e... | import pysam
def test_idxstats_parse_old_style_output():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename, old_style_output=True)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov_old_style_output():
bam_filename = "./pysam_data/... | import pysam
def test_idxstats_parse():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov():
bam_filename = "./pysam_data/ex1.bam"
bed_filename = "./pysam_data/ex1.bed"
lin... | <commit_before>import pysam
def test_idxstats_parse():
bam_filename = "./pysam_data/ex2.bam"
lines = pysam.idxstats(bam_filename)
for line in lines:
_seqname, _seqlen, nmapped, _nunmapped = line.split()
def test_bedcov():
bam_filename = "./pysam_data/ex1.bam"
bed_filename = "./pysam_data/e... |
1ff19fcd0bcbb396b7cb676c5dddf8d3c8652419 | live/components/misc.py | live/components/misc.py | from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the component
... | from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the component
... | Update timed_callback to support collision callbacks. | Update timed_callback to support collision callbacks.
| Python | lgpl-2.1 | GalanCM/BGELive | from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the component
... | from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the component
... | <commit_before>from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the... | from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the component
... | from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the component
... | <commit_before>from live.helpers import Timer
def timed(fun, time, next_fun=None):
"""A component that runs another component for a fixed length of time. Can optionally be given a follow-up component for chaining.
:param callable fun: The component to be run:
:param number time: The amount of time to run the... |
28ac2b259d89c168f1e822fe087c66f2f618321a | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitaille@cfa.harvard... | #!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitaille@cfa.harvard... | Add sedfitter.source to list of sub-packages to install (otherwise results in ImportError) | Add sedfitter.source to list of sub-packages to install (otherwise results in ImportError) | Python | bsd-2-clause | astrofrog/sedfitter | #!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitaille@cfa.harvard... | #!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitaille@cfa.harvard... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitai... | #!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitaille@cfa.harvard... | #!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitaille@cfa.harvard... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
scripts = ['sed_fit', 'sed_plot', 'sed_filter_output', 'sed_fitinfo2data', 'sed_fitinfo2ascii']
setup(name='sedfitter',
version='0.1.1',
description='SED Fitter in python',
author='Thomas Robitaille',
author_email='trobitai... |
3ef25d7105226aadebc5db46ac8c9c290d527164 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | Update dictionary to same pin as API for Horton | chore(pins): Update dictionary to same pin as API for Horton
- Update dictionary to the same pin as the API uses
| Python | apache-2.0 | NCI-GDC/gdcdatamodel,NCI-GDC/gdcdatamodel | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | <commit_before>from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | <commit_before>from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.... |
1a12f250088d92544a277e3d683dc397687a4188 | setup.py | setup.py | #!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 app... | #!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 app... | Add mock as a dep | Add mock as a dep
| Python | apache-2.0 | ccassler/DeploymentManager,tbeckham/DeploymentManager,tbeckham/DeploymentManager,ccassler/DeploymentManager,tbeckham/DeploymentManager,ccassler/DeploymentManager | #!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 app... | #!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 app... | <commit_before>#!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 ... | #!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 app... | #!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 app... | <commit_before>#!/usr/bin/env python
# Copyright 2009-2014 Eucalyptus Systems, Inc.
# 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 ... |
8cbbf6b4b4b1cc87f25b2047e183dd1bfd7dc8a0 | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | Remove incorrect note about global reqs | Remove incorrect note about global reqs
| Python | apache-2.0 | Frostman/SalaryZenAggregator_Old,Frostman/SalaryZenAggregator | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... |
b6af395f816609801e1973b56c61dc5fc52d49d0 | setup.py | setup.py | #!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="18.12",
description=("Eris maintains an up-to-da... | #!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="20.04",
description=("Eris maintains an up-to-da... | Bring version number up to date. | Bring version number up to date.
| Python | artistic-2.0 | ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil | #!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="18.12",
description=("Eris maintains an up-to-da... | #!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="20.04",
description=("Eris maintains an up-to-da... | <commit_before>#!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="18.12",
description=("Eris mainta... | #!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="20.04",
description=("Eris maintains an up-to-da... | #!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="18.12",
description=("Eris maintains an up-to-da... | <commit_before>#!/usr/bin/env python3.8
# Copyright (C) 2017-2019 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="eris",
version="18.12",
description=("Eris mainta... |
ad579b09e691811a39714f816721bba615dcc651 | setup.py | setup.py | """Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.1',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
... | """Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.2',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
... | Use local upload for release | Use local upload for release
| Python | mit | Lif3line/nina_helper_package_mk2 | """Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.1',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
... | """Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.2',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
... | <commit_before>"""Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.1',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell... | """Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.2',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
... | """Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.1',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
... | <commit_before>"""Utiltiy functions for workign on the NinaPro Databases (1 & 2)."""
from setuptools import setup, find_packages
setup(name='nina_helper',
version='2.1',
description='Utiltiy functions for workign on the NinaPro Databases (1 & 2)',
author='Lif3line',
author_email='adamhartwell... |
4c1ec733615b0fd21677f8b4e9a8acd9381dff53 | setup.py | setup.py | from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx", sources, extra_compile_args=['-O3'])]
setup(
name = "FastxIO",
version = '0.0.0',
packages ... | from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx",
sources,
extra_compile_args=['-O3'],
... | Add -lz to cython flags. | Add -lz to cython flags.
| Python | mit | mckinsel/FastxIO,mckinsel/FastxIO | from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx", sources, extra_compile_args=['-O3'])]
setup(
name = "FastxIO",
version = '0.0.0',
packages ... | from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx",
sources,
extra_compile_args=['-O3'],
... | <commit_before>from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx", sources, extra_compile_args=['-O3'])]
setup(
name = "FastxIO",
version = '0.0.0'... | from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx",
sources,
extra_compile_args=['-O3'],
... | from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx", sources, extra_compile_args=['-O3'])]
setup(
name = "FastxIO",
version = '0.0.0',
packages ... | <commit_before>from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# Cython extensions
sources = ["FastxIO/fastx.pyx", "FastxIO/reverse_complement.c"]
extensions = [Extension("FastxIO.fastx", sources, extra_compile_args=['-O3'])]
setup(
name = "FastxIO",
version = '0.0.0'... |
b5523a7f3bfd67eac646ee1313bcbb6c9e069f8c | setup.py | setup.py | # Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | # Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | Make stetho agent when install stetho | Make stetho agent when install stetho
| Python | apache-2.0 | unitedstack/stetho,unitedstack/stetho,openstack/steth,openstack/steth | # Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | # Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | <commit_before># Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | # Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | # Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | <commit_before># Copyright 2015 UnitedStack, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... |
c8bf52d51a5cc678160add7db937ed92aaa6bb09 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | Update to point to release/horton | chore(pins): Update to point to release/horton
- Update to point to release/horton of gdcdictionary
| Python | apache-2.0 | NCI-GDC/gdcdatamodel,NCI-GDC/gdcdatamodel | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | <commit_before>from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.4.2',
],
... | <commit_before>from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'psqlgraph',
'gdcdictionary',
'cdisutils',
'python-dateutil==2.... |
873572d6731d35647dca90b4aea4d7f26866f676 | setup.py | setup.py | from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
... | from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
... | Add optional named parameters dependencies for vertica-python | Add optional named parameters dependencies for vertica-python
This will allow to play nicely with sqlalchemy-vertica-python and safrs
Ref: https://github.com/vertica/vertica-python/pull/247 | Python | mit | LocusEnergy/sqlalchemy-vertica-python | from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
... | from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
... | <commit_before>from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-ve... | from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
... | from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
... | <commit_before>from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-ve... |
4a7221a67b23933a2e9314f3bbd2b886d7276b7d | setup.py | setup.py | #!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
author="Cameron Davidson-Pilon",
author_email="c... | #!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
license='MIT License',
author="Cameron Davidson-... | Add license to package metadata | Add license to package metadata | Python | mit | CamDavidsonPilon/autograd-gamma | #!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
author="Cameron Davidson-Pilon",
author_email="c... | #!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
license='MIT License',
author="Cameron Davidson-... | <commit_before>#!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
author="Cameron Davidson-Pilon",
... | #!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
license='MIT License',
author="Cameron Davidson-... | #!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
author="Cameron Davidson-Pilon",
author_email="c... | <commit_before>#!/usr/bin/env python
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="autograd-gamma",
version="0.4.2",
description="Autograd compatible approximations to the gamma family of functions",
author="Cameron Davidson-Pilon",
... |
d2cc077bfce9bef654a8ef742996e5aca8858fc7 | setup.py | setup.py | from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
'Topic :: C... | from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
'Topic :: C... | Install default dotfiles with package | Install default dotfiles with package
| Python | mit | jreese/pyranha | from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
'Topic :: C... | from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
'Topic :: C... | <commit_before>from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
... | from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
'Topic :: C... | from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
'Topic :: C... | <commit_before>from distutils.core import setup
setup(name='Pyranha',
description='Elegant IRC client',
version='0.1',
author='John Reese',
author_email='john@noswap.com',
url='https://github.com/jreese/pyranha',
classifiers=['License :: OSI Approved :: MIT License',
... |
eb2827a94e477c64eeb67076288007326c34a2f9 | setup.py | setup.py | """setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
description='Send JSON-R... | """setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
description='Send JSON-R... | Add aiohttpClient plus example usage | Add aiohttpClient plus example usage
Closes #20
| Python | mit | bcb/jsonrpcclient | """setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
description='Send JSON-R... | """setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
description='Send JSON-R... | <commit_before>"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
descripti... | """setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
description='Send JSON-R... | """setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
description='Send JSON-R... | <commit_before>"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.rst', 'r', 'utf-8') as f:
__README = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
__HISTORY = f.read()
setup(
name='jsonrpcclient',
version='2.2.4',
descripti... |
6ca0407f1666a67478832bc72f0ac740cb699598 | setup.py | setup.py | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.6'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'... | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.5'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'... | Revert to installing PyNeuroML without version specification | Revert to installing PyNeuroML without version specification
| Python | mit | joebowen/ChannelWorm,joebowen/ChannelWorm,VahidGh/ChannelWorm,openworm/ChannelWorm,joebowen/ChannelWorm,joebowen/ChannelWormDjango,openworm/ChannelWorm,joebowen/ChannelWorm,gsarma/ChannelWorm,VahidGh/ChannelWorm,openworm/ChannelWorm,joebowen/ChannelWormDjango,joebowen/ChannelWormDjango,cheelee/ChannelWorm,gsarma/Channe... | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.6'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'... | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.5'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'... | <commit_before>from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.6'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciu... | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.5'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'... | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.6'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'... | <commit_before>from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML>=0.0.6'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciu... |
2e9808561c55a729fef493b03e5bcdd13422a92c | setup.py | setup.py | """
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
from setuptools import setup
setup(
setup_requi... | """
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
import os
from setuptools import setup
# pbr does ... | Stop pbr from writing ChangeLog and AUTHORS | Stop pbr from writing ChangeLog and AUTHORS
| Python | apache-2.0 | edx/edx-lint | """
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
from setuptools import setup
setup(
setup_requi... | """
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
import os
from setuptools import setup
# pbr does ... | <commit_before>"""
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
from setuptools import setup
setup(
... | """
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
import os
from setuptools import setup
# pbr does ... | """
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
from setuptools import setup
setup(
setup_requi... | <commit_before>"""
edx-lint
========
A collection of code quality tools:
- A few pylint plugins to check for quality issues pylint misses.
- A command-line tool to generate config files like pylintrc from a master
file (part of edx_lint), and a repo-specific tweaks file.
"""
from setuptools import setup
setup(
... |
0b5e16ad77aebdde05dbffef78265755c779bb8b | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | Make it work with new tg Jinja quickstart | Make it work with new tg Jinja quickstart
| Python | mit | TurboGears/tgext.admin,TurboGears/tgext.admin | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(nam... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(name='tgext.admin'... | <commit_before>from setuptools import setup, find_packages
import os
version = '0.5.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read()
except IOError:
README = CHANGES = ''
setup(nam... |
a890b8099779aaece5cb3a963c9b86bb3f8156f7 | setup.py | setup.py | from setuptools import setup, find_packages
from itertools import imap, ifilter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.value.s, parse(buf).body)),
if... | from setuptools import setup, find_packages
try:
from itertools import imap, ifilter
except ImportError:
imap = map
ifilter = filter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.valu... | Use native `map`, `filter` for Python 3 | Use native `map`, `filter` for Python 3
| Python | mit | muhasturk/gitim | from setuptools import setup, find_packages
from itertools import imap, ifilter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.value.s, parse(buf).body)),
if... | from setuptools import setup, find_packages
try:
from itertools import imap, ifilter
except ImportError:
imap = map
ifilter = filter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.valu... | <commit_before>from setuptools import setup, find_packages
from itertools import imap, ifilter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.value.s, parse(buf).body)),
... | from setuptools import setup, find_packages
try:
from itertools import imap, ifilter
except ImportError:
imap = map
ifilter = filter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.valu... | from setuptools import setup, find_packages
from itertools import imap, ifilter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.value.s, parse(buf).body)),
if... | <commit_before>from setuptools import setup, find_packages
from itertools import imap, ifilter
from os import path
from ast import parse
if __name__ == '__main__':
package_name = 'gitim'
get_vals = lambda var0, var1: imap(lambda buf: next(imap(lambda e: e.value.s, parse(buf).body)),
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.