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
f557c20678de706d9e714e1d903b482b7e886e3b
keras_contrib/backend/cntk_backend.py
keras_contrib/backend/cntk_backend.py
from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: Tensor or variab...
from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: Tensor or variab...
Add moments op to CNTK backend, and associated tests
Add moments op to CNTK backend, and associated tests
Python
mit
keras-team/keras-contrib,keras-team/keras-contrib,farizrahman4u/keras-contrib,keras-team/keras-contrib
from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: Tensor or variab...
from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: Tensor or variab...
<commit_before>from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: T...
from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: Tensor or variab...
from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: Tensor or variab...
<commit_before>from keras.backend import cntk_backend as KCN from keras.backend.cntk_backend import logsumexp import cntk as C import numpy as np def clip(x, min_value, max_value): """Element-wise value clipping. If min_value > max_value, clipping range is [min_value,min_value]. # Arguments x: T...
52da8be7ffe6ea2ba09acf3ce44b9a79758b115b
glance/version.py
glance/version.py
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Remove runtime dep on python pbr
Remove runtime dep on python pbr
Python
apache-2.0
redhat-openstack/glance,redhat-openstack/glance
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
<commit_before># Copyright 2012 OpenStack Foundation # # 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 ...
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
<commit_before># Copyright 2012 OpenStack Foundation # # 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 ...
94b73811a4986dee5ac32fe1d91f377828a5bca5
mnemosyne/app/__init__.py
mnemosyne/app/__init__.py
import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() # by_uuid API # app.router.add_route('GET', '/applications', mnemosyne.applications.index) application.router.add_route('GET', '/trace/{traceUuid}', by_uuid.getTrace) application.router.add_route('GET...
import os import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() class DirectoryIndex(aiohttp.web.StaticRoute): def handle(self, request): filename = request.match_info['filename'] if not filename: filename = 'index.html'...
Add static route serving files
Add static route serving files Custom static file handler resolves `/` to `/index.html`.
Python
agpl-3.0
jgraichen/mnemosyne,jgraichen/mnemosyne,jgraichen/mnemosyne
import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() # by_uuid API # app.router.add_route('GET', '/applications', mnemosyne.applications.index) application.router.add_route('GET', '/trace/{traceUuid}', by_uuid.getTrace) application.router.add_route('GET...
import os import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() class DirectoryIndex(aiohttp.web.StaticRoute): def handle(self, request): filename = request.match_info['filename'] if not filename: filename = 'index.html'...
<commit_before>import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() # by_uuid API # app.router.add_route('GET', '/applications', mnemosyne.applications.index) application.router.add_route('GET', '/trace/{traceUuid}', by_uuid.getTrace) application.router...
import os import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() class DirectoryIndex(aiohttp.web.StaticRoute): def handle(self, request): filename = request.match_info['filename'] if not filename: filename = 'index.html'...
import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() # by_uuid API # app.router.add_route('GET', '/applications', mnemosyne.applications.index) application.router.add_route('GET', '/trace/{traceUuid}', by_uuid.getTrace) application.router.add_route('GET...
<commit_before>import aiohttp import aiohttp.web from mnemosyne.app import by_time, by_uuid application = aiohttp.web.Application() # by_uuid API # app.router.add_route('GET', '/applications', mnemosyne.applications.index) application.router.add_route('GET', '/trace/{traceUuid}', by_uuid.getTrace) application.router...
66c1bcdb242b30658d323832af04ee814432bdc9
hackernews_scrapy/items.py
hackernews_scrapy/items.py
# -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() crawled_at = scrapy.Field()
# -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() url = scrapy.Field()
Add url field to HackernewsScrapyItem and remove "crawled_at"
Add url field to HackernewsScrapyItem and remove "crawled_at"
Python
mit
mdsrosa/hackernews_scrapy
# -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() crawled_at = scrapy.Field() Add url field to HackernewsScrapyItem and remove "crawled_at"
# -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() url = scrapy.Field()
<commit_before># -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() crawled_at = scrapy.Field() <commit_msg>Add url field to HackernewsScrapyItem and remove "crawled_at"<commit_after>
# -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() url = scrapy.Field()
# -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() crawled_at = scrapy.Field() Add url field to HackernewsScrapyItem and remove "crawled_at"# -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() url = s...
<commit_before># -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item): title = scrapy.Field() crawled_at = scrapy.Field() <commit_msg>Add url field to HackernewsScrapyItem and remove "crawled_at"<commit_after># -*- coding: utf-8 -*- import scrapy class HackernewsScrapyItem(scrapy.Item...
11d4059cf5c66e6de648c675bb049825901479cf
code/array_map.py
code/array_map.py
arr = [1, 5, 10, 20] print(*map(lambda num: num * 2, arr))
arr = [1, 5, 10, 20] print([num * 2 for num in arr])
Use more consistent example for map
Use more consistent example for map There is a `map` function in pythin, but for simple single expression calculations, list comprehensions are much better suited. While map works well if there is a function, you can pass.
Python
mit
Evmorov/ruby-coffeescript,evmorov/lang-compare,evmorov/lang-compare,evmorov/lang-compare,evmorov/lang-compare,Evmorov/ruby-coffeescript,evmorov/lang-compare,Evmorov/ruby-coffeescript,evmorov/lang-compare
arr = [1, 5, 10, 20] print(*map(lambda num: num * 2, arr)) Use more consistent example for map There is a `map` function in pythin, but for simple single expression calculations, list comprehensions are much better suited. While map works well if there is a function, you can pass.
arr = [1, 5, 10, 20] print([num * 2 for num in arr])
<commit_before>arr = [1, 5, 10, 20] print(*map(lambda num: num * 2, arr)) <commit_msg>Use more consistent example for map There is a `map` function in pythin, but for simple single expression calculations, list comprehensions are much better suited. While map works well if there is a function, you can pass.<commit_af...
arr = [1, 5, 10, 20] print([num * 2 for num in arr])
arr = [1, 5, 10, 20] print(*map(lambda num: num * 2, arr)) Use more consistent example for map There is a `map` function in pythin, but for simple single expression calculations, list comprehensions are much better suited. While map works well if there is a function, you can pass.arr = [1, 5, 10, 20] print([num * 2 f...
<commit_before>arr = [1, 5, 10, 20] print(*map(lambda num: num * 2, arr)) <commit_msg>Use more consistent example for map There is a `map` function in pythin, but for simple single expression calculations, list comprehensions are much better suited. While map works well if there is a function, you can pass.<commit_af...
546ff329d4a792ddfb0576c78cf6d3e4f2321727
scripts/build_profile_docs.py
scripts/build_profile_docs.py
#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== The following pr...
#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== The following pr...
Fix typo in profile doc description build
Fix typo in profile doc description build
Python
mit
PyCQA/isort,PyCQA/isort
#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== The following pr...
#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== The following pr...
<commit_before>#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== T...
#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== The following pr...
#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== The following pr...
<commit_before>#! /bin/env python import os from typing import Any, Dict, Generator, Iterable, Type from isort.profiles import profiles OUTPUT_FILE = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), "../docs/configuration/profiles.md") ) HEADER = """Built-in Profile for isort ======== T...
75f0db346adfcf53f71ff69aa61c163a84116e0e
seaworthy/tests/test_utils.py
seaworthy/tests/test_utils.py
from testtools.assertions import assert_that from testtools.matchers import Equals from seaworthy.utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo'))
from testtools.assertions import assert_that from testtools.matchers import Equals from ..utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo'))
Fix the import order lint error
Fix the import order lint error
Python
bsd-3-clause
praekeltfoundation/seaworthy
from testtools.assertions import assert_that from testtools.matchers import Equals from seaworthy.utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo')) Fix the import order lint error
from testtools.assertions import assert_that from testtools.matchers import Equals from ..utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo'))
<commit_before>from testtools.assertions import assert_that from testtools.matchers import Equals from seaworthy.utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo')) <commit_msg>Fix the import order lint error<commit_aft...
from testtools.assertions import assert_that from testtools.matchers import Equals from ..utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo'))
from testtools.assertions import assert_that from testtools.matchers import Equals from seaworthy.utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo')) Fix the import order lint errorfrom testtools.assertions import asser...
<commit_before>from testtools.assertions import assert_that from testtools.matchers import Equals from seaworthy.utils import resource_name def test_resource_name(): # Dummy test so that pytest passes assert_that(resource_name('foo'), Equals('test_foo')) <commit_msg>Fix the import order lint error<commit_aft...
21ab1204c1cb35a5d9b95124040e160f4f5edabd
solitude/settings/__init__.py
solitude/settings/__init__.py
from local import *
from .base import * try: from .local import * except ImportError, exc: exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]]) raise exc
Revert "some random settings changes"
Revert "some random settings changes" This reverts commit 640eb2be2e32413718e93c1b8c77279ab5152170.
Python
bsd-3-clause
muffinresearch/solitude,muffinresearch/solitude
from local import * Revert "some random settings changes" This reverts commit 640eb2be2e32413718e93c1b8c77279ab5152170.
from .base import * try: from .local import * except ImportError, exc: exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]]) raise exc
<commit_before>from local import * <commit_msg>Revert "some random settings changes" This reverts commit 640eb2be2e32413718e93c1b8c77279ab5152170.<commit_after>
from .base import * try: from .local import * except ImportError, exc: exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]]) raise exc
from local import * Revert "some random settings changes" This reverts commit 640eb2be2e32413718e93c1b8c77279ab5152170.from .base import * try: from .local import * except ImportError, exc: exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]]) raise exc
<commit_before>from local import * <commit_msg>Revert "some random settings changes" This reverts commit 640eb2be2e32413718e93c1b8c77279ab5152170.<commit_after>from .base import * try: from .local import * except ImportError, exc: exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]]) ...
481028f075bf46696b8adc5904663e97bc883c52
notfound.py
notfound.py
from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIApplication([('/.*', NotFo...
from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): self.error(404) path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIA...
Return HTTP Status Code 404 for not found errors
Return HTTP Status Code 404 for not found errors
Python
mit
mback2k/appengine-oauth-profile,mback2k/appengine-oauth-profile
from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIApplication([('/.*', NotFo...
from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): self.error(404) path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIA...
<commit_before>from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIApplication...
from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): self.error(404) path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIA...
from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIApplication([('/.*', NotFo...
<commit_before>from google.appengine.ext.webapp import template import webapp2 import os class NotFound(webapp2.RequestHandler): def get(self): path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html') self.response.out.write(template.render(path, {})) app = webapp2.WSGIApplication...
b77e2fa27e8e2cae133cc2bc0e2f130b999b83c5
pythonFlaskStarter/app/welcome.py
pythonFlaskStarter/app/welcome.py
# Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
# Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
Fix bad encoding in boilerplate
Fix bad encoding in boilerplate
Python
apache-2.0
javed120183/testingrepo,rvennam/starter-apps,javed120183/testingrepo,rvennam/starter-apps,rvennam/starter-apps,rvennam/starter-apps
# Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
# Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
<commit_before># Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
# Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
# Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
<commit_before># Copyright 2015 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
91d63e50df5bc8b9fe7d98b28efd541bafd0bc08
blankspot/node_registration/urls.py
blankspot/node_registration/urls.py
from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') )
from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') )
Replace \t by spaces for indention
Replace \t by spaces for indention
Python
agpl-3.0
frlan/blankspot
from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') ) Replace \t by spaces for indention
from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') )
<commit_before>from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') ) <commit_msg>Replace \t by spaces for indention<commit_after...
from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') )
from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') ) Replace \t by spaces for indentionfrom django.conf.urls import patterns, u...
<commit_before>from django.conf.urls import patterns, url from node_registration import views urlpatterns = patterns('', url(r'^add/$', views.PositionCreate.as_view(), name='position-add'), url(r'^list', views.ListPosition.as_view(), name='position-list') ) <commit_msg>Replace \t by spaces for indention<commit_after...
a136f7046b8df661713d3bcf6a7681894210def2
ricker/__init__.py
ricker/__init__.py
""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_import
""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_import from .ricker import ricker
Make ricker funciton available in the top level.
Make ricker funciton available in the top level.
Python
mit
gatechzhu/ricker
""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_importMake ricker funciton available in the top level.
""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_import from .ricker import ricker
<commit_before>""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_import<commit_msg>Make ricker funciton available in the top level.<commit_after>
""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_import from .ricker import ricker
""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_importMake ricker funciton available in the top level.""" Ricker wavelet generator for seismic simulation =============================================== "...
<commit_before>""" Ricker wavelet generator for seismic simulation =============================================== """ from __future__ import division, print_function, absolute_import<commit_msg>Make ricker funciton available in the top level.<commit_after>""" Ricker wavelet generator for seismic simulation =========...
5307e9d879a5432db5f54fd61ea0060b6526a1a6
sundaytasks/example/test_plugin.py
sundaytasks/example/test_plugin.py
from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): #print("plugin:",plugin['receiver']) response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response, sort_keys=True...
from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response, sort_keys=True, indent=4, separators=(',', ': '))) ...
Clear old method of calling plugins
Clear old method of calling plugins
Python
apache-2.0
olafura/sundaytasks-py
from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): #print("plugin:",plugin['receiver']) response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response, sort_keys=True...
from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response, sort_keys=True, indent=4, separators=(',', ': '))) ...
<commit_before>from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): #print("plugin:",plugin['receiver']) response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response,...
from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response, sort_keys=True, indent=4, separators=(',', ': '))) ...
from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): #print("plugin:",plugin['receiver']) response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response, sort_keys=True...
<commit_before>from tornado import gen, ioloop from tornado.ioloop import IOLoop import sys from pkg_resources import iter_entry_points import json @gen.coroutine def main(plugin): #print("plugin:",plugin['receiver']) response = yield plugin['receiver']("Prufa") print("Results: \n%s" % json.dumps(response,...
f50ef6d331afa5a55467a104bc307edbdb2cd650
tests/test_auth.py
tests/test_auth.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.user import UserConfig from polyaxon_client.auth import AuthClient faker = Faker() class TestAuthClient(TestCase): ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json import uuid from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.authentication import CredentialsConfig from polyaxon_schemas.user import UserConfig from polyaxon_client.auth ...
Fix auth tests and add login test
Fix auth tests and add login test
Python
apache-2.0
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.user import UserConfig from polyaxon_client.auth import AuthClient faker = Faker() class TestAuthClient(TestCase): ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json import uuid from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.authentication import CredentialsConfig from polyaxon_schemas.user import UserConfig from polyaxon_client.auth ...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.user import UserConfig from polyaxon_client.auth import AuthClient faker = Faker() class TestAuthClient(T...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json import uuid from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.authentication import CredentialsConfig from polyaxon_schemas.user import UserConfig from polyaxon_client.auth ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.user import UserConfig from polyaxon_client.auth import AuthClient faker = Faker() class TestAuthClient(TestCase): ...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json from unittest import TestCase import httpretty from faker import Faker from polyaxon_schemas.user import UserConfig from polyaxon_client.auth import AuthClient faker = Faker() class TestAuthClient(T...
89bec483ce88fb1a310d4dd06220ace412148257
tests/test_auth.py
tests/test_auth.py
from __future__ import absolute_import import random import unittest from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test getting access token auth...
from __future__ import absolute_import import random import unittest from six.moves import input from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test gett...
Update auth tests to be compatible with Python 3
Update auth tests to be compatible with Python 3
Python
mit
svven/tweepy,tweepy/tweepy
from __future__ import absolute_import import random import unittest from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test getting access token auth...
from __future__ import absolute_import import random import unittest from six.moves import input from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test gett...
<commit_before>from __future__ import absolute_import import random import unittest from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test getting access tok...
from __future__ import absolute_import import random import unittest from six.moves import input from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test gett...
from __future__ import absolute_import import random import unittest from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test getting access token auth...
<commit_before>from __future__ import absolute_import import random import unittest from .config import * from tweepy import API, OAuthHandler class TweepyAuthTests(unittest.TestCase): def testoauth(self): auth = OAuthHandler(oauth_consumer_key, oauth_consumer_secret) # test getting access tok...
d604128015826444be4585c7204030840e9efc88
tests/test_java.py
tests/test_java.py
def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0
def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 def test_java_certs_exist(File): assert File("/etc/ssl/certs/java/cacerts").exists
Add test to make sure SSL certs are installed.
Add test to make sure SSL certs are installed.
Python
apache-2.0
azavea/ansible-java,flibbertigibbet/ansible-java
def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 Add test to make sure SSL certs are installed.
def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 def test_java_certs_exist(File): assert File("/etc/ssl/certs/java/cacerts").exists
<commit_before>def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 <commit_msg>Add test to make sure SSL certs are installed.<commit_after>
def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 def test_java_certs_exist(File): assert File("/etc/ssl/certs/java/cacerts").exists
def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 Add test to make sure SSL certs are installed.def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 def test_java_certs_exist(File): assert File...
<commit_before>def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 <commit_msg>Add test to make sure SSL certs are installed.<commit_after>def test_java_exists(Command): version_result = Command("java -version") assert version_result.rc == 0 def tes...
1db05fb528295456e2127be5ba5225d697655676
metashare/accounts/urls.py
metashare/accounts/urls.py
from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', 'reset'), ...
from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', 'reset'), ...
Manage default editor group on a single page
Manage default editor group on a single page
Python
bsd-3-clause
zeehio/META-SHARE,MiltosD/CEF-ELRC,zeehio/META-SHARE,MiltosD/CEFELRC,MiltosD/CEF-ELRC,zeehio/META-SHARE,MiltosD/CEFELRC,MiltosD/CEF-ELRC,MiltosD/CEF-ELRC,JuliBakagianni/CEF-ELRC,MiltosD/CEFELRC,MiltosD/CEFELRC,zeehio/META-SHARE,JuliBakagianni/META-SHARE,JuliBakagianni/CEF-ELRC,JuliBakagianni/META-SHARE,JuliBakagianni/C...
from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', 'reset'), ...
from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', 'reset'), ...
<commit_before>from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', ...
from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', 'reset'), ...
from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', 'reset'), ...
<commit_before>from django.conf.urls.defaults import patterns from metashare.settings import DJANGO_BASE urlpatterns = patterns('metashare.accounts.views', (r'create/$', 'create'), (r'confirm/(?P<uuid>[0-9a-f]{32})/$', 'confirm'), (r'contact/$', 'contact'), (r'reset/(?:(?P<uuid>[0-9a-f]{32})/)?$', ...
29978337158d06c6c761294fd1e3c5c54de847ae
src/webassets/filter/uglifyjs.py
src/webassets/filter/uglifyjs.py
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
Fix misspelled UglifyJS filter class name
Fix misspelled UglifyJS filter class name
Python
bsd-2-clause
scorphus/webassets,heynemann/webassets,glorpen/webassets,john2x/webassets,JDeuce/webassets,wijerasa/webassets,glorpen/webassets,0x1997/webassets,aconrad/webassets,JDeuce/webassets,aconrad/webassets,john2x/webassets,heynemann/webassets,florianjacob/webassets,wijerasa/webassets,glorpen/webassets,aconrad/webassets,heynema...
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
<commit_before>"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by se...
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by setting ``UGLIFYJ...
<commit_before>"""Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_. UglifyJS is an external tool written for NodeJS; this filter assumes that the ``uglifyjs`` executable is in the path. Otherwise, you may define a ``UGLIFYJS_BIN`` setting. Additional options may be passed to ``uglifyjs`` by se...
722228a023aca35660bc493b812727f6c665b3cb
posts.py
posts.py
import json import pprint import requests def sample_valid_reddit_response(): r = requests.get('http://www.reddit.com/r/cscareerquestions/top.json') response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response() return response_json def save_samp...
import json import pprint import requests SAMPLE_REDDIT_URL = 'http://www.reddit.com/r/cscareerquestions/top.json' def sample_valid_reddit_response(): r = requests.get(SAMPLE_REDDIT_URL) response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response...
Make reddit url a constant
Make reddit url a constant
Python
mit
RossCarriga/repost-data
import json import pprint import requests def sample_valid_reddit_response(): r = requests.get('http://www.reddit.com/r/cscareerquestions/top.json') response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response() return response_json def save_samp...
import json import pprint import requests SAMPLE_REDDIT_URL = 'http://www.reddit.com/r/cscareerquestions/top.json' def sample_valid_reddit_response(): r = requests.get(SAMPLE_REDDIT_URL) response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response...
<commit_before>import json import pprint import requests def sample_valid_reddit_response(): r = requests.get('http://www.reddit.com/r/cscareerquestions/top.json') response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response() return response_json...
import json import pprint import requests SAMPLE_REDDIT_URL = 'http://www.reddit.com/r/cscareerquestions/top.json' def sample_valid_reddit_response(): r = requests.get(SAMPLE_REDDIT_URL) response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response...
import json import pprint import requests def sample_valid_reddit_response(): r = requests.get('http://www.reddit.com/r/cscareerquestions/top.json') response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response() return response_json def save_samp...
<commit_before>import json import pprint import requests def sample_valid_reddit_response(): r = requests.get('http://www.reddit.com/r/cscareerquestions/top.json') response_json = r.json() if 'data' not in response_json: print("Trying again") response_json = sample_valid_reddit_response() return response_json...
d3d5c0c6d13b6cf84b8a7e12e40e9740ca960529
spillway/mixins.py
spillway/mixins.py
from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class class Defaul...
from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class class Defaul...
Use request.data to access file uploads
Use request.data to access file uploads
Python
bsd-3-clause
kuzmich/django-spillway,barseghyanartur/django-spillway,bkg/django-spillway
from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class class Defaul...
from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class class Defaul...
<commit_before>from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class ...
from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class class Defaul...
from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class class Defaul...
<commit_before>from rest_framework.exceptions import ValidationError class ModelSerializerMixin(object): """Provides generic model serializer classes to views.""" model_serializer_class = None def get_serializer_class(self): if self.serializer_class: return self.serializer_class ...
7a5cb8ba82b79372226f9ac4ba3a71e4209cdd72
sheldon/storage.py
sheldon/storage.py
# -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ class Storage: pass
# -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ from .utils import logger # We will catch all import exceptions in bot.py from redis import StrictRedis class Storage: def __init__(self, bot): ...
Create init of Storage class
Create init of Storage class
Python
mit
lises/sheldon
# -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ class Storage: passCreate init of Storage class
# -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ from .utils import logger # We will catch all import exceptions in bot.py from redis import StrictRedis class Storage: def __init__(self, bot): ...
<commit_before># -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ class Storage: pass<commit_msg>Create init of Storage class<commit_after>
# -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ from .utils import logger # We will catch all import exceptions in bot.py from redis import StrictRedis class Storage: def __init__(self, bot): ...
# -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ class Storage: passCreate init of Storage class# -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gma...
<commit_before># -*- coding: utf-8 -*- """ Interface to Redis-storage. @author: Seva Zhidkov @contact: zhidkovseva@gmail.com @license: The MIT license Copyright (C) 2015 """ class Storage: pass<commit_msg>Create init of Storage class<commit_after># -*- coding: utf-8 -*- """ Interface to Redis-storage. @autho...
7cc8699f7100cfc969b1b76efbcc47e1fafb2363
paiji2_shoutbox/models.py
paiji2_shoutbox/models.py
from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = models.ForeignKey( ...
from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = models.ForeignKey( ...
Remove save method for auto_now_add=True
Remove save method for auto_now_add=True
Python
agpl-3.0
rezometz/django-paiji2-shoutbox,rezometz/django-paiji2-shoutbox
from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = models.ForeignKey( ...
from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = models.ForeignKey( ...
<commit_before>from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = mode...
from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = models.ForeignKey( ...
from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = models.ForeignKey( ...
<commit_before>from django.db import models from django.utils.translation import ugettext as _ from django.utils.timezone import now try: from django.contrib.auth import get_user_model User = get_user_model() except: from django.contrib.auth.models import User class Note(models.Model): author = mode...
f4a73fcc591d877003e9963f087d2473568bfa9d
python/ql/test/experimental/query-tests/Security/CWE-079/sendgrid_via_mail_send_post_request_body_bad.py
python/ql/test/experimental/query-tests/Security/CWE-079/sendgrid_via_mail_send_post_request_body_bad.py
# This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library. import sendgrid import os sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value": "<html><p>He...
import sendgrid import os from flask import request, Flask app = Flask(__name__) @app.route("/sendgrid") def send(): sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value": "<html>{}</html>"...
Add RFS to `sendgrid` test
Add RFS to `sendgrid` 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
# This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library. import sendgrid import os sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value": "<html><p>He...
import sendgrid import os from flask import request, Flask app = Flask(__name__) @app.route("/sendgrid") def send(): sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value": "<html>{}</html>"...
<commit_before># This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library. import sendgrid import os sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value...
import sendgrid import os from flask import request, Flask app = Flask(__name__) @app.route("/sendgrid") def send(): sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value": "<html>{}</html>"...
# This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library. import sendgrid import os sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value": "<html><p>He...
<commit_before># This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library. import sendgrid import os sg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) data = { "content": [ { "type": "text/html", "value...
00a05d86e83f95ecab589313459212a6d6ec4355
setup.py
setup.py
from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwarf/curious', ...
from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwarf/curious', ...
Update `curio` pin to 0.6.0.
Update `curio` pin to 0.6.0. Signed-off-by: Laura <07c342be6e560e7f43842e2e21b774e61d85f047@veriny.tf>
Python
mit
SunDwarf/curious
from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwarf/curious', ...
from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwarf/curious', ...
<commit_before>from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwar...
from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwarf/curious', ...
from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwarf/curious', ...
<commit_before>from setuptools import setup setup( name='discord-curious', version='0.2.0.post1', packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice', 'curious.ext.loapi', 'curious.ext.paginator'], url='https://github.com/SunDwar...
bace6c5562b8c085858824168ba3ed4bf73fe3ae
setup.py
setup.py
#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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 U...
#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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 U...
Add missing dependency on pyparsing and six
Add missing dependency on pyparsing and six Signed-off-by: Christophe Vu-Brugier <1930e27f67e1e10d51770b88cb06d386f1aa46ae@fastmail.fm>
Python
apache-2.0
agrover/configshell-fb,cvubrugier/configshell-fb
#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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 U...
#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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 U...
<commit_before>#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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...
#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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 U...
#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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 U...
<commit_before>#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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...
6fed8b08e280b88a491ca6c04e0a2c429e7f493f
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung', author_em...
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung', author_em...
Include 'models' subdirectory in package
Include 'models' subdirectory in package
Python
bsd-3-clause
headcr4sh/django-banking
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung', author_em...
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung', author_em...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung'...
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung', author_em...
#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung', author_em...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup from distutils.core import setup setup( name='django-banking', version='0.1-dev', description='Banking (SWIFT) classes for Python/Django', long_description=open('README').read(), author='Benjamin P. Jung'...
7375a9c8adbc14932af2638cf1067c379457da48
setup.py
setup.py
""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup setup( name='nubo', version='0.4', url='http://...
""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup install_requires = [ 'setuptools', 'apach...
Add importlib to install_requires if necessary
Add importlib to install_requires if necessary
Python
bsd-3-clause
ema/nubo
""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup setup( name='nubo', version='0.4', url='http://...
""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup install_requires = [ 'setuptools', 'apach...
<commit_before>""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup setup( name='nubo', version='0.4', ...
""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup install_requires = [ 'setuptools', 'apach...
""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup setup( name='nubo', version='0.4', url='http://...
<commit_before>""" nubo ---- An easy way to deploy Linux VMs on different cloud providers. Links ````` * `GitHub Repository <https://github.com/ema/nubo>`_ * `Development Version <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_ """ from setuptools import setup setup( name='nubo', version='0.4', ...
d237dd2c68ed083d65d69b31d0a1905262a9edca
setup.py
setup.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import os from Cython.Build import cythonize if (os.name == "nt"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-default', ...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import platform from Cython.Build import cythonize os_name = platform.system() if (os_name == "Windows"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wn...
Add compile arg for building on MacOS Catalina / Xcode 11.2
Add compile arg for building on MacOS Catalina / Xcode 11.2
Python
bsd-3-clause
sot/Chandra.Time,sot/Chandra.Time,sot/Chandra.Time
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import os from Cython.Build import cythonize if (os.name == "nt"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-default', ...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import platform from Cython.Build import cythonize os_name = platform.system() if (os_name == "Windows"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wn...
<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import os from Cython.Build import cythonize if (os.name == "nt"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import platform from Cython.Build import cythonize os_name = platform.system() if (os_name == "Windows"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wn...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import os from Cython.Build import cythonize if (os.name == "nt"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-default', ...
<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import os from Cython.Build import cythonize if (os.name == "nt"): compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE'] else: compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-...
0ae34253829e0d51049edf5f7d270b404bc22354
setup.py
setup.py
import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', description='Authenti...
import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', description='Authenti...
Remove reference to email from short description
Remove reference to email from short description
Python
mit
relekang/django-nopassword,smajda/django-nopassword,relekang/django-nopassword,mjumbewu/django-nopassword,smajda/django-nopassword,mjumbewu/django-nopassword
import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', description='Authenti...
import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', description='Authenti...
<commit_before>import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', descri...
import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', description='Authenti...
import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', description='Authenti...
<commit_before>import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' setup( name="django-nopassword", version='1.1.0', url='http://github.com/relekang/django-nopassword', author='Rolf Erik Lekang', author_email='me@rolflekang.com', descri...
78a596ba34a3a8a7435dd6ca997e6b6cb79fbdd6
setup.py
setup.py
#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fetch', mai...
#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fetch', mai...
Add croniter dependency. Sort deps.
Add croniter dependency. Sort deps.
Python
apache-2.0
GeoscienceAustralia/fetch,GeoscienceAustralia/fetch
#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fetch', mai...
#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fetch', mai...
<commit_before>#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fe...
#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fetch', mai...
#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fetch', mai...
<commit_before>#!/usr/bin/env python2.7 from __future__ import print_function from distutils.core import setup import os version = '1.0.0b' # Append TeamCity build number if it gives us one. if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'): version += '' + os.environ['TC_BUILD_NUMBER'] setup(name='fe...
ee4bda5802a601485027a3ea91607dc5077ca73d
setup.py
setup.py
import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_package_dir = os.path...
import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_package_dir = os.path...
Set maximum bounds for both plots to provide a common scale for comparison between the different scenarios.
Set maximum bounds for both plots to provide a common scale for comparison between the different scenarios.
Python
bsd-2-clause
CI-WATER/tethysapp-canned_gssha,CI-WATER/tethysapp-canned_gssha,CI-WATER/tethysapp-canned_gssha
import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_package_dir = os.path...
import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_package_dir = os.path...
<commit_before>import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_packag...
import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_package_dir = os.path...
import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_package_dir = os.path...
<commit_before>import os import sys from setuptools import setup, find_packages from tethys_apps.app_installation import custom_develop_command, custom_install_command ### Apps Definition ### app_package = 'canned_gssha' release_package = 'tethysapp-' + app_package app_class = 'canned_gssha.app:CannedGSSHA' app_packag...
8f86b354b3ceff46363e3121bb1f553a8ff8b301
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup import os.path import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() ## Get long_descri...
#!/usr/bin/env python from setuptools import setup import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() with open('README.md') as f: long...
Add test suit and requirements.
Add test suit and requirements.
Python
apache-2.0
edgeware/python-circuit
#!/usr/bin/env python from distutils.core import setup import os.path import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() ## Get long_descri...
#!/usr/bin/env python from setuptools import setup import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() with open('README.md') as f: long...
<commit_before>#!/usr/bin/env python from distutils.core import setup import os.path import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() ## ...
#!/usr/bin/env python from setuptools import setup import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() with open('README.md') as f: long...
#!/usr/bin/env python from distutils.core import setup import os.path import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() ## Get long_descri...
<commit_before>#!/usr/bin/env python from distutils.core import setup import os.path import versioneer versioneer.versionfile_source = "circuit/_version.py" versioneer.versionfile_build = "circuit/_version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "" commands = versioneer.get_cmdclass().copy() ## ...
1d0e6420e0e37921381c30b0247c0f5f27c72a1f
setup.py
setup.py
from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.7.1", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library', author='...
from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.8.0", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library', author='...
Increment version number 0.8.0 Set field support
Increment version number 0.8.0 Set field support
Python
mit
mathewmarcus/marshmallow-pynamodb
from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.7.1", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library', author='...
from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.8.0", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library', author='...
<commit_before>from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.7.1", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library...
from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.8.0", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library', author='...
from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.7.1", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library', author='...
<commit_before>from setuptools import setup, find_packages setup( name="marshmallow-pynamodb", version="0.7.1", packages=find_packages(exclude=('*test*',)), package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'}, description='PynamoDB integration with the marshmallow (de)serialization library...
c529b8d4979f5fae6984d2bcd6d2aa40d181e097
setup.py
setup.py
import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for working with Map...
import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for working with Map...
Add schemas folder to package
Add schemas folder to package
Python
mit
geographika/mappyfile,geographika/mappyfile
import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for working with Map...
import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for working with Map...
<commit_before>import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for w...
import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for working with Map...
import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for working with Map...
<commit_before>import re from setuptools import setup __version__,= re.findall('__version__ = "(.*)"', open('mappyfile/__init__.py').read()) def readme(): with open('README.rst') as f: return f.read() setup(name='mappyfile', version=__version__, description='A pure Python MapFile parser for w...
766e33416df08b6cdcdb236a335afbc6bd7acc06
setup.py
setup.py
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
Add explicit Python 3.6 support
Add explicit Python 3.6 support
Python
mit
kefir500/ghstats
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
<commit_before>from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long...
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
<commit_before>from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.1.1', packages=['ghstats'], description='GitHub Release download count and other statistics.', long...
e05b6484938f65338882a86c9ce2d71df6e5272b
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from distutils.core import setup setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser for eRegulation...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser for ...
Use find_packages() to ensure the whole regparser gets installed
Use find_packages() to ensure the whole regparser gets installed
Python
cc0-1.0
grapesmoker/regulations-parser
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from distutils.core import setup setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser for eRegulation...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser for ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os from distutils.core import setup setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser for ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from distutils.core import setup setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser for eRegulation...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os from distutils.core import setup setup( name='regulations-parser', url='https://github.com/cfpb/regulations-parser', author='CFPB', author_email='tech@cfpb.gov', license='CC0', version='0.1.0', description='eCFR Parser ...
3766a8638094fc7bbf8bfb529312a0741049376b
spyder_memory_profiler/__init__.py
spyder_memory_profiler/__init__.py
# -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.dev0' # ============================================================================= # The following statements are required to register this 3rd p...
# -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.0' # ============================================================================= # The following statements are required to register this 3rd part...
Change version number to 0.2.0
Change version number to 0.2.0
Python
mit
jitseniesen/spyder-memory-profiler,spyder-ide/spyder.memory_profiler,jitseniesen/spyder-memory-profiler
# -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.dev0' # ============================================================================= # The following statements are required to register this 3rd p...
# -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.0' # ============================================================================= # The following statements are required to register this 3rd part...
<commit_before># -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.dev0' # ============================================================================= # The following statements are required to regi...
# -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.0' # ============================================================================= # The following statements are required to register this 3rd part...
# -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.dev0' # ============================================================================= # The following statements are required to register this 3rd p...
<commit_before># -*- coding: utf-8 -*- # # Copyright © 2013 Spyder Project Contributors # Licensed under the terms of the MIT License # (see LICENSE.txt for details) __version__ = '0.2.dev0' # ============================================================================= # The following statements are required to regi...
137d3c0394309dfb22a407eda5b80bc312482c1d
setup.py
setup.py
from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", url="https://zcfd.zenotech.com/", packages=["zutil", "zutil.post", "zutil.analysis", "...
from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", license="MIT", url="https://zcfd.zenotech.com/", project_urls={ "Sourc...
Add license and Source Code url
Add license and Source Code url
Python
mit
zCFD/zutil
from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", url="https://zcfd.zenotech.com/", packages=["zutil", "zutil.post", "zutil.analysis", "...
from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", license="MIT", url="https://zcfd.zenotech.com/", project_urls={ "Sourc...
<commit_before>from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", url="https://zcfd.zenotech.com/", packages=["zutil", "zutil.post", "zut...
from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", license="MIT", url="https://zcfd.zenotech.com/", project_urls={ "Sourc...
from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", url="https://zcfd.zenotech.com/", packages=["zutil", "zutil.post", "zutil.analysis", "...
<commit_before>from distutils.core import setup setup(name="zutil", version='0.1.5', description="Utilities used for generating zCFD control dictionaries", author="Zenotech", author_email="support@zenotech.com", url="https://zcfd.zenotech.com/", packages=["zutil", "zutil.post", "zut...
0e801cf96a7dee047f935b32c931eabe135035ea
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Gets direct media...
#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Gets direct media...
Update classifiers to show ISC license
Update classifiers to show ISC license
Python
isc
garg10may/yturl
#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Gets direct media...
#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Gets direct media...
<commit_before>#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Ge...
#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Gets direct media...
#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Gets direct media...
<commit_before>#!/usr/bin/env python from setuptools import setup with open('README.rst') as readme_f: README = readme_f.read() with open('tests/requirements.txt') as test_requirements_f: TEST_REQUIREMENTS = test_requirements_f.readlines() setup( name="yturl", version="1.18.0", description="Ge...
9af9144f9026e84ce04f9cdd5ce738b015247c12
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
Fix compatible bug: file() -> open().
Fix compatible bug: file() -> open().
Python
mit
PytLab/catplot
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
<commit_before>#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotl...
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
<commit_before>#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotl...
d978f9c54d3509a5fd8ef3b287d2c3dfa7683d77
setup.py
setup.py
#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.document', ...
#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.document', ...
Upgrade to a newer gevent for OSX Yosemity compat
Upgrade to a newer gevent for OSX Yosemity compat See https://github.com/gevent/gevent/issues/656
Python
mit
ErinCall/catsnap,ErinCall/catsnap,ErinCall/catsnap
#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.document', ...
#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.document', ...
<commit_before>#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.docu...
#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.document', ...
#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.document', ...
<commit_before>#!/usr/bin/python from setuptools import setup setup(name="catsnap", version="6.0.0", description="catalog and store images", author="Erin Call", author_email="hello@erincall.com", url="https://github.com/ErinCall/", packages=['catsnap', 'catsnap.docu...
976167045131263dc52ff57315f08783a318a9df
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup(use_scm_version=True)
#!/usr/bin/env python from setuptools import setup setup(name='django-s3file', use_scm_version=True)
Add package name for github usage report
Add package name for github usage report
Python
mit
codingjoe/django-s3file,codingjoe/django-s3file,codingjoe/django-s3file
#!/usr/bin/env python from setuptools import setup setup(use_scm_version=True) Add package name for github usage report
#!/usr/bin/env python from setuptools import setup setup(name='django-s3file', use_scm_version=True)
<commit_before>#!/usr/bin/env python from setuptools import setup setup(use_scm_version=True) <commit_msg>Add package name for github usage report<commit_after>
#!/usr/bin/env python from setuptools import setup setup(name='django-s3file', use_scm_version=True)
#!/usr/bin/env python from setuptools import setup setup(use_scm_version=True) Add package name for github usage report#!/usr/bin/env python from setuptools import setup setup(name='django-s3file', use_scm_version=True)
<commit_before>#!/usr/bin/env python from setuptools import setup setup(use_scm_version=True) <commit_msg>Add package name for github usage report<commit_after>#!/usr/bin/env python from setuptools import setup setup(name='django-s3file', use_scm_version=True)
83f62bd5993ba253183f120567a2a42108c4b7b4
setup.py
setup.py
from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='mahjong', packages=['mahjong'], version='1.0.1', description='Mahjong hands calcula...
from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. Right now it supports only japanese version (riichi mahjong). MCR (chinese version) in plans You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='m...
Add missed packages tot he build script
Add missed packages tot he build script
Python
mit
MahjongRepository/mahjong
from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='mahjong', packages=['mahjong'], version='1.0.1', description='Mahjong hands calcula...
from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. Right now it supports only japanese version (riichi mahjong). MCR (chinese version) in plans You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='m...
<commit_before>from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='mahjong', packages=['mahjong'], version='1.0.1', description='Mahjon...
from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. Right now it supports only japanese version (riichi mahjong). MCR (chinese version) in plans You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='m...
from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='mahjong', packages=['mahjong'], version='1.0.1', description='Mahjong hands calcula...
<commit_before>from distutils.core import setup description = """ A python module for calculating riichi mahjong hands: yaku, han and fu. You can find usage examples here https://github.com/MahjongRepository/mahjong """ setup( name='mahjong', packages=['mahjong'], version='1.0.1', description='Mahjon...
70189c54cfbe07b819fcd23fbe213be9de5b4db2
setup.py
setup.py
from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.4', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api client sdk spreadsh...
from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.5', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api client sdk spreadsh...
Add required packages for lib to work and update version
Add required packages for lib to work and update version
Python
mit
andreffs18/sheetsu-python
from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.4', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api client sdk spreadsh...
from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.5', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api client sdk spreadsh...
<commit_before>from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.4', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api clie...
from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.5', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api client sdk spreadsh...
from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.4', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api client sdk spreadsh...
<commit_before>from setuptools import setup, find_packages setup( name='sheetsu', version='0.0.4', description='Sheetsu Python client', url='http://github.com/andreffs18/sheetsu-python', author='Andre Silva', author_email='andreffs18@gmail.com', license='MIT', keywords='sheetsu api clie...
4bf26b6d976171b5a388134ad9716af639f15a3b
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', ] tests_require = [] testing_requires = tests_require + [ 'no...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', 'google-api-python-client', ] tests_require = [] testing_r...
Add the Google API client as a requirement
Add the Google API client as a requirement
Python
isc
GuardedRisk/Google-Apps-Auditing
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', ] tests_require = [] testing_requires = tests_require + [ 'no...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', 'google-api-python-client', ] tests_require = [] testing_r...
<commit_before>import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', ] tests_require = [] testing_requires = tests_requ...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', 'google-api-python-client', ] tests_require = [] testing_r...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', ] tests_require = [] testing_requires = tests_require + [ 'no...
<commit_before>import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'oauth2client', ] tests_require = [] testing_requires = tests_requ...
05bfc141b279dc8f30089e8b72502f9042a2ff3b
setup.py
setup.py
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distutils.core import ...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distutils.core import ...
Use move version for sutup.py
Use move version for sutup.py
Python
mit
genestack/python-client
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distutils.core import ...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distutils.core import ...
<commit_before>#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distuti...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distutils.core import ...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distutils.core import ...
<commit_before>#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Genestack Limited # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED # The copyright notice above does not evidence any # actual or intended publication of such source code. # from distuti...
cc92b1770acdc5a34eb32c596c0b2ece6bf32b0f
qiprofile_rest/server/settings.py
qiprofile_rest/server/settings.py
# This file specifies the Eve configuration. import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DBNAME = 'qiprofile_test...
"""This ``settings`` file specifies the Eve configuration.""" import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DB...
Allow MONGO_HOST env var override.
Allow MONGO_HOST env var override.
Python
bsd-2-clause
ohsu-qin/qirest,ohsu-qin/qiprofile-rest
# This file specifies the Eve configuration. import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DBNAME = 'qiprofile_test...
"""This ``settings`` file specifies the Eve configuration.""" import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DB...
<commit_before># This file specifies the Eve configuration. import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DBNAME = ...
"""This ``settings`` file specifies the Eve configuration.""" import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DB...
# This file specifies the Eve configuration. import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DBNAME = 'qiprofile_test...
<commit_before># This file specifies the Eve configuration. import os # The run environment default is production. # Modify this by setting the NODE_ENV environment variable. env = os.getenv('NODE_ENV') or 'production' # The MongoDB database. if env == 'production': MONGO_DBNAME = 'qiprofile' else: MONGO_DBNAME = ...
8cab1d360218f6d8075bad08fd38ef90c75e5549
turbustat/tests/setup_package.py
turbustat/tests/setup_package.py
def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz'] }
def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz', 'coveragerc'] }
Add coveragerc to package data
Add coveragerc to package data
Python
mit
e-koch/TurbuStat,Astroua/TurbuStat
def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz'] } Add coveragerc to package data
def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz', 'coveragerc'] }
<commit_before> def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz'] } <commit_msg>Add coveragerc to package data<commit_after>
def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz', 'coveragerc'] }
def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz'] } Add coveragerc to package data def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz', 'coveragerc'] ...
<commit_before> def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz'] } <commit_msg>Add coveragerc to package data<commit_after> def get_package_data(): return { _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz', ...
9371b962e43d6876ff8f902283d3fb1963c076d3
pytest-{{cookiecutter.plugin_name}}/pytest_{{cookiecutter.plugin_name}}.py
pytest-{{cookiecutter.plugin_name}}/pytest_{{cookiecutter.plugin_name}}.py
# -*- coding: utf-8 -*- import pytest def pytest_addoption(parser): group = parser.getgroup('{{cookiecutter.plugin_name}}') group.addoption( '--foo', action='store_const', dest='foo', help='alias for --foo' )
Implement a very basic plugin to add an option
Implement a very basic plugin to add an option
Python
mit
luzfcb/cookiecutter-pytest-plugin,s0undt3ch/cookiecutter-pytest-plugin,pytest-dev/cookiecutter-pytest-plugin
Implement a very basic plugin to add an option
# -*- coding: utf-8 -*- import pytest def pytest_addoption(parser): group = parser.getgroup('{{cookiecutter.plugin_name}}') group.addoption( '--foo', action='store_const', dest='foo', help='alias for --foo' )
<commit_before><commit_msg>Implement a very basic plugin to add an option<commit_after>
# -*- coding: utf-8 -*- import pytest def pytest_addoption(parser): group = parser.getgroup('{{cookiecutter.plugin_name}}') group.addoption( '--foo', action='store_const', dest='foo', help='alias for --foo' )
Implement a very basic plugin to add an option# -*- coding: utf-8 -*- import pytest def pytest_addoption(parser): group = parser.getgroup('{{cookiecutter.plugin_name}}') group.addoption( '--foo', action='store_const', dest='foo', help='alias for --foo' )
<commit_before><commit_msg>Implement a very basic plugin to add an option<commit_after># -*- coding: utf-8 -*- import pytest def pytest_addoption(parser): group = parser.getgroup('{{cookiecutter.plugin_name}}') group.addoption( '--foo', action='store_const', dest='foo', help='...
6d1626327f3577a86cdd3c54e5732b65e59a3402
test2.py
test2.py
import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index, item in enumer...
#notes: will do it using oop. import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the varia...
Add an additional layer for the for loop
Add an additional layer for the for loop
Python
mit
zhang96/JSONWithPython
import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index, item in enumer...
#notes: will do it using oop. import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the varia...
<commit_before>import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index,...
#notes: will do it using oop. import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the varia...
import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index, item in enumer...
<commit_before>import json import itertools with open('products.json') as data_file: data = json.load(data_file) products = data['products'] products_temp = [] for index, item in enumerate(products): products_temp.append(item) products = products_temp products_temp = [] # delete the variable for index,...
8c5007bd5a1f898ca0987e7b79b8dd8f0a2642c5
pfamserver/api.py
pfamserver/api.py
from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) class QueryAPI(Resource): def get(self, query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] output = run(cmd, stdout=PIPE).communicate()[0] ...
from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) def db(query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] return run(cmd, stdout=PIPE).communicate()[0] class QueryAPI(Resource): def get(self, q...
Check variations little variations if the query fails.
Check variations little variations if the query fails.
Python
agpl-3.0
ecolell/pfamserver,ecolell/pfamserver,ecolell/pfamserver
from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) class QueryAPI(Resource): def get(self, query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] output = run(cmd, stdout=PIPE).communicate()[0] ...
from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) def db(query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] return run(cmd, stdout=PIPE).communicate()[0] class QueryAPI(Resource): def get(self, q...
<commit_before>from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) class QueryAPI(Resource): def get(self, query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] output = run(cmd, stdout=PIPE).co...
from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) def db(query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] return run(cmd, stdout=PIPE).communicate()[0] class QueryAPI(Resource): def get(self, q...
from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) class QueryAPI(Resource): def get(self, query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] output = run(cmd, stdout=PIPE).communicate()[0] ...
<commit_before>from application import app from flask.ext.restful import Api, Resource import os from subprocess import Popen as run, PIPE api = Api(app) class QueryAPI(Resource): def get(self, query): cmd = ['./hmmer/binaries/esl-afetch', 'Pfam-A.full', query] output = run(cmd, stdout=PIPE).co...
f019cb2f0e3604b264aeb55a3a01641f998d27d7
test/fuzz/gen-dict.py
test/fuzz/gen-dict.py
import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): find_literals(l...
import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): find_literals(l...
Handle non-ascii characters when generating fuzzing dictionary
Handle non-ascii characters when generating fuzzing dictionary This caused a failure when generating the dictionary for `tree-sitter-agda`.
Python
mit
tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter
import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): find_literals(l...
import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): find_literals(l...
<commit_before>import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): ...
import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): find_literals(l...
import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): find_literals(l...
<commit_before>import json import sys def find_literals(literals, node): '''Recursively find STRING literals in the grammar definition''' if type(node) is dict: if 'type' in node and node['type'] == 'STRING' and 'value' in node: literals.add(node['value']) for key, value in node.iteritems(): ...
6dd5a006892b1ba51c7f4f338693bf780293b897
dedupe/_typing.py
dedupe/_typing.py
import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal else: from ty...
import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal else: from ty...
Remove use of "unsure" from TrainingData type
Remove use of "unsure" from TrainingData type The "unsure" key isn't used anywhere else
Python
mit
dedupeio/dedupe,dedupeio/dedupe
import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal else: from ty...
import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal else: from ty...
<commit_before>import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal el...
import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal else: from ty...
import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal else: from ty...
<commit_before>import numpy import sys from typing import (Iterator, Tuple, Mapping, Union, Iterable, List, Any) if sys.version_info >= (3, 8): from typing import TypedDict, Protocol, Literal el...
476338ba2edce4ff78f9451ae9cca6a2c91f787b
opps/core/admin/article.py
opps/core/admin/article.py
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImage fk_name = 'post' raw_id_fields = ['...
# -*- coding: utf-8 -*- from django.contrib.sites.models import Site from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImag...
Fix field set on post admin, opps core
Fix field set on post admin, opps core
Python
mit
YACOWS/opps,jeanmask/opps,opps/opps,jeanmask/opps,opps/opps,opps/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,williamroot/opps
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImage fk_name = 'post' raw_id_fields = ['...
# -*- coding: utf-8 -*- from django.contrib.sites.models import Site from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImag...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImage fk_name = 'post' raw...
# -*- coding: utf-8 -*- from django.contrib.sites.models import Site from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImag...
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImage fk_name = 'post' raw_id_fields = ['...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from django import forms from opps.core.models import Post, PostImage from opps.core.models import Image from redactor.widgets import RedactorEditor class PostImageInline(admin.TabularInline): model = PostImage fk_name = 'post' raw...
c9ed6fe84b7f55ba2e9dc75d9ddf8cb0e7f9eb8c
pixelmap/pixel.py
pixelmap/pixel.py
"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 7, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self): """Pixel constructor""" self.id = next(self.new_id) def __str__(self): return str(self.id) ...
"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 11, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self, data=None): """Pixel constructor""" self.id = next(self.new_id) self.data = data def __str__(s...
Add data dict as Pixel member.
Add data dict as Pixel member.
Python
mit
yebra06/pixelmap
"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 7, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self): """Pixel constructor""" self.id = next(self.new_id) def __str__(self): return str(self.id) ...
"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 11, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self, data=None): """Pixel constructor""" self.id = next(self.new_id) self.data = data def __str__(s...
<commit_before>"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 7, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self): """Pixel constructor""" self.id = next(self.new_id) def __str__(self): return s...
"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 11, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self, data=None): """Pixel constructor""" self.id = next(self.new_id) self.data = data def __str__(s...
"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 7, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self): """Pixel constructor""" self.id = next(self.new_id) def __str__(self): return str(self.id) ...
<commit_before>"""Pixel A pixel data structure with it's own uid that makes a Pixelmap. Last updated: March 7, 2017 """ from itertools import count class Pixel: new_id = count(1) def __init__(self): """Pixel constructor""" self.id = next(self.new_id) def __str__(self): return s...
8a7b6be29b3a839ba8e5c2cb33322d90d51d5fc4
karbor/tests/unit/conf_fixture.py
karbor/tests/unit/conf_fixture.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
Fix loading 'provider_config_dir' opt error
Fix loading 'provider_config_dir' opt error When run unit test using 'ostestr --pdb' command. it may get an error that can not find the config opt 'provider_config_dir'. Change-Id: Ibc1c693a1531c791ad434ff56ee349ba3afb3d63 Closes-Bug: #1649443
Python
apache-2.0
openstack/smaug,openstack/smaug
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
117c3e6c1f301c4e5c07e22b3c76f330b18ea36e
bin/create_contour_data.py
bin/create_contour_data.py
#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_name) filepat...
#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_name) assert ...
Create tiles in create contour command
Create tiles in create contour command
Python
mit
bartromgens/nsmaps,bartromgens/nsmaps,bartromgens/nsmaps
#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_name) filepat...
#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_name) assert ...
<commit_before>#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_na...
#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_name) assert ...
#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_name) filepat...
<commit_before>#!/usr/bin/env python3 import sys import os sys.path.append('../nsmaps') import nsmaps DATA_DIR = './website/nsmaps-data' def test(): stations = nsmaps.station.Stations(DATA_DIR) departure_station_name = 'Utrecht Centraal' departure_station = stations.find_station(departure_station_na...
5dc6488f5d7d0eb1d78b9c2edbb61b177cec6109
run.py
run.py
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' #os.environ['APP_SETTINGS'] = 'config.DebugProductionConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
Add line to easily uncomment and switch back and forth to production settings locally
Add line to easily uncomment and switch back and forth to production settings locally
Python
agpl-3.0
paulocheque/guides-cms,pluralsight/guides-cms,paulocheque/guides-cms,paulocheque/guides-cms,pluralsight/guides-cms,pluralsight/guides-cms
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() Add line to easily uncomment and switch back and forth to production sett...
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' #os.environ['APP_SETTINGS'] = 'config.DebugProductionConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
<commit_before>#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() <commit_msg>Add line to easily uncomment and switch back a...
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' #os.environ['APP_SETTINGS'] = 'config.DebugProductionConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() Add line to easily uncomment and switch back and forth to production sett...
<commit_before>#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() <commit_msg>Add line to easily uncomment and switch back a...
e2541a9de3b4239f8f3cb7cc06dd9e7f48dd18a9
objectTopGroup.py
objectTopGroup.py
#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* issworld2000@yahoo...
#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* issworld2000@yahoo...
Return the top most group name of an object
Return the top most group name of an object
Python
unlicense
stgeorges/pythonscripts
#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* issworld2000@yahoo...
#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* issworld2000@yahoo...
<commit_before>#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* iss...
#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* issworld2000@yahoo...
#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* issworld2000@yahoo...
<commit_before>#**********************************************************************************************# #********* Return the top most group name of an object ****************************************# #********* by Djordje Spasic ******************************************************************# #********* iss...
a28c3e9614cc8ab82ed0d1796d68a5b03906f801
seleniumbase/config/proxy_list.py
seleniumbase/config/proxy_list.py
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
Update the sample proxy list
Update the sample proxy list
Python
mit
mdmintz/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
<commit_before>""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:passwor...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
<commit_before>""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:passwor...
9d59bca61b2836e7db3c50d5558a46aa2dbaea08
tests/run_tests.py
tests/run_tests.py
#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology # # This progr...
#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology # # This progr...
Add crack test to test runner.
Add crack test to test runner.
Python
lgpl-2.1
libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy
#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology # # This progr...
#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology # # This progr...
<commit_before>#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology...
#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology # # This progr...
#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology # # This progr...
<commit_before>#! /usr/bin/env python # ====================================================================== # matscipy - Python materials science tools # https://github.com/libAtoms/matscipy # # Copyright (2014) James Kermode, King's College London # Lars Pastewka, Karlsruhe Institute of Technology...
6d942a84da5f9a07ea1fac96ec0667ded623be60
tests/test_util.py
tests/test_util.py
import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): def test_enviro...
import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): def test_enviro...
Remove assert_called for Python 3.5 compatibility
fix: Remove assert_called for Python 3.5 compatibility
Python
mit
chezou/tabula-py
import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): def test_enviro...
import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): def test_enviro...
<commit_before>import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): ...
import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): def test_enviro...
import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): def test_enviro...
<commit_before>import unittest import tabula try: FileNotFoundError from unittest.mock import patch, MagicMock from urllib.request import Request except NameError: FileNotFoundError = IOError from mock import patch, MagicMock from urllib2 import Request class TestUtil(unittest.TestCase): ...
5d4210ceb34773dffce7d0bb27f38115bb8e1a9f
tests/testcases.py
tests/testcases.py
from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.client ...
from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.client ...
Fix tests when there is an image with int tag
Fix tests when there is an image with int tag
Python
apache-2.0
mosquito/docker-compose,thaJeztah/docker.github.io,thaJeztah/docker.github.io,bsmr-docker/compose,gdevillele/docker.github.io,BSWANG/denverdino.github.io,jiekechoo/compose,jgrowl/compose,docker/docker.github.io,brunocascio/compose,ZJaffee/compose,gdevillele/docker.github.io,LuisBosquez/docker.github.io,kojiromike/compo...
from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.client ...
from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.client ...
<commit_before>from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): ...
from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.client ...
from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.client ...
<commit_before>from __future__ import unicode_literals from __future__ import absolute_import from fig.packages.docker import Client from fig.service import Service from fig.cli.utils import docker_url from . import unittest class DockerClientTestCase(unittest.TestCase): @classmethod def setUpClass(cls): ...
8c97ffed1531315dd50639c40b0bccad0fc1ef2d
textual_runtime.py
textual_runtime.py
# Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while self.state["cont...
# Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while self.state["cont...
Add ability to drop discs on slots
Add ability to drop discs on slots
Python
mit
misterwilliam/connect-four
# Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while self.state["cont...
# Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while self.state["cont...
<commit_before># Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while s...
# Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while self.state["cont...
# Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while self.state["cont...
<commit_before># Runtime for managing the interactive component of the game. Allows user to play the game # through a text based interface. from game import DiscState class TextualRuntime: def __init__(self, game): self.game = game self.state = { "continue": True } def start(self): while s...
46c7798003ce2eef60440860cc305372bd73a57d
salt/returners/cassandra_return.py
salt/returners/cassandra_return.py
''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class='UTF8Type'; ''...
''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class='UTF8Type'; ''...
Debug statement used the wrong variable.
Debug statement used the wrong variable.
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class='UTF8Type'; ''...
''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class='UTF8Type'; ''...
<commit_before>''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class...
''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class='UTF8Type'; ''...
''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class='UTF8Type'; ''...
<commit_before>''' Return data to a Cassandra ColumFamily Here's an example Keyspace/ColumnFamily setup that works with this returner:: create keyspace salt; use salt; create column family returns with key_validation_class='UTF8Type' and comparator='UTF8Type' and default_validation_class...
566739e88098eb40da26bd0930ac2d65ffdb999c
src/nyc_trees/apps/core/helpers.py
src/nyc_trees/apps/core/helpers.py
def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): return user.is_authenticated() and (user.is_census_admin or group.admin == user) def user_has_online_training(user): return user.is_authe...
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import division from apps.users.models import TrustedMapper def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): ret...
Hide "Request Individual Mapper Status" button if approved
Hide "Request Individual Mapper Status" button if approved There's no point to showing this button once you have been approved as an individual mapper for this group.
Python
agpl-3.0
RickMohr/nyc-trees,kdeloach/nyc-trees,azavea/nyc-trees,maurizi/nyc-trees,kdeloach/nyc-trees,RickMohr/nyc-trees,kdeloach/nyc-trees,azavea/nyc-trees,azavea/nyc-trees,kdeloach/nyc-trees,maurizi/nyc-trees,RickMohr/nyc-trees,maurizi/nyc-trees,RickMohr/nyc-trees,kdeloach/nyc-trees,azavea/nyc-trees,azavea/nyc-trees,maurizi/ny...
def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): return user.is_authenticated() and (user.is_census_admin or group.admin == user) def user_has_online_training(user): return user.is_authe...
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import division from apps.users.models import TrustedMapper def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): ret...
<commit_before> def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): return user.is_authenticated() and (user.is_census_admin or group.admin == user) def user_has_online_training(user): retur...
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import division from apps.users.models import TrustedMapper def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): ret...
def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): return user.is_authenticated() and (user.is_census_admin or group.admin == user) def user_has_online_training(user): return user.is_authe...
<commit_before> def user_is_census_admin(user): return user.is_authenticated() and user.is_census_admin def user_is_group_admin(user, group): return user.is_authenticated() and (user.is_census_admin or group.admin == user) def user_has_online_training(user): retur...
0e2635c01205c3359c3eabf7369453c3886c304a
photo/qt/overviewWindow.py
photo/qt/overviewWindow.py
"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): def __init__(self, image, scale): super(ThumbnailWidget, self).__init__() pixmap = image.getPixmap() size = sca...
"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): ThumbnailSize = QtCore.QSize(128, 128) def __init__(self, image): super(ThumbnailWidget, self).__init__() pixmap =...
Use a fixed thumbnail size rather then a relative scale.
Use a fixed thumbnail size rather then a relative scale.
Python
apache-2.0
RKrahl/photo-tools
"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): def __init__(self, image, scale): super(ThumbnailWidget, self).__init__() pixmap = image.getPixmap() size = sca...
"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): ThumbnailSize = QtCore.QSize(128, 128) def __init__(self, image): super(ThumbnailWidget, self).__init__() pixmap =...
<commit_before>"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): def __init__(self, image, scale): super(ThumbnailWidget, self).__init__() pixmap = image.getPixmap() ...
"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): ThumbnailSize = QtCore.QSize(128, 128) def __init__(self, image): super(ThumbnailWidget, self).__init__() pixmap =...
"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): def __init__(self, image, scale): super(ThumbnailWidget, self).__init__() pixmap = image.getPixmap() size = sca...
<commit_before>"""An overview window showing thumbnails of the image set. """ from __future__ import division import math from PySide import QtCore, QtGui class ThumbnailWidget(QtGui.QLabel): def __init__(self, image, scale): super(ThumbnailWidget, self).__init__() pixmap = image.getPixmap() ...
44faefd4bd0bfa3dede8686903759a033c1072d6
flask_simple_serializer/response.py
flask_simple_serializer/response.py
import json from flask import Response as SimpleResponse from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be application/json. ...
from flask import Response as SimpleResponse from flask import json from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be applicati...
Replace json for flask.json to manage the Response
Replace json for flask.json to manage the Response
Python
mit
marcosschroh/Flask-Simple-Serializer
import json from flask import Response as SimpleResponse from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be application/json. ...
from flask import Response as SimpleResponse from flask import json from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be applicati...
<commit_before>import json from flask import Response as SimpleResponse from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be appl...
from flask import Response as SimpleResponse from flask import json from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be applicati...
import json from flask import Response as SimpleResponse from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be application/json. ...
<commit_before>import json from flask import Response as SimpleResponse from .status_codes import HTTP_200_OK from .serializers import BaseSerializer class Response(SimpleResponse): def __init__(self, data, headers=None, status_code=HTTP_200_OK): """ For now the content/type always will be appl...
c51ec70a8e71f2e8e7a0d0bb4f0712b379af0505
src/victims_web/plugin/__init__.py
src/victims_web/plugin/__init__.py
# This file is part of victims-web. # # Copyright (C) 2013 The Victims Project # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
Add helper method to plugin pkg to handle configs
Add helper method to plugin pkg to handle configs
Python
agpl-3.0
victims/victims-web,jasinner/victims-web,victims/victims-web,jasinner/victims-web
Add helper method to plugin pkg to handle configs
# This file is part of victims-web. # # Copyright (C) 2013 The Victims Project # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
<commit_before><commit_msg>Add helper method to plugin pkg to handle configs<commit_after>
# This file is part of victims-web. # # Copyright (C) 2013 The Victims Project # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
Add helper method to plugin pkg to handle configs# This file is part of victims-web. # # Copyright (C) 2013 The Victims Project # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either ve...
<commit_before><commit_msg>Add helper method to plugin pkg to handle configs<commit_after># This file is part of victims-web. # # Copyright (C) 2013 The Victims Project # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by ...
3f17f454172d15e9279e00ccc2acfb931bf685f1
transmutagen/tests/test_origen.py
transmutagen/tests/test_origen.py
import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f.read(), {'arra...
import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f.read(), {'arra...
Add a sanity test for the data
Add a sanity test for the data
Python
bsd-3-clause
ergs/transmutagen,ergs/transmutagen
import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f.read(), {'arra...
import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f.read(), {'arra...
<commit_before>import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f...
import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f.read(), {'arra...
import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f.read(), {'arra...
<commit_before>import os from itertools import combinations import numpy as np from ..tape9utils import origen_to_name DATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir, os.path.pardir, os.path.pardir, 'docker', 'data')) def load_data(datafile): with open(datafile) as f: return eval(f...
905690beacad9731bb113bdbeedf0ed2c7df3160
profile_audfprint_match.py
profile_audfprint_match.py
import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10)
import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "fpdbase.pklz", "--density", "200", "query.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10)
Update profile for local data.
Update profile for local data.
Python
mit
dpwe/audfprint
import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10) Update profile for local data.
import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "fpdbase.pklz", "--density", "200", "query.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10)
<commit_before>import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10) <commit_msg>Update profile for local data....
import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "fpdbase.pklz", "--density", "200", "query.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10)
import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10) Update profile for local data.import audfprint import cPr...
<commit_before>import audfprint import cProfile import pstats argv = ["audfprint", "match", "-d", "tmp.fpdb", "--density", "200", "query.mp3", "query2.mp3"] cProfile.run('audfprint.main(argv)', 'fpmstats') p = pstats.Stats('fpmstats') p.sort_stats('time') p.print_stats(10) <commit_msg>Update profile for local data....
c3a06fc8a1c8b1bb2b24b929fd158ae1602836f6
cobra/topology/__init__.py
cobra/topology/__init__.py
from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from reporter_metabolites import * del __name, __modules
from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from .reporter_metabolites import * del __name, __modules
Fix import issue in cobra.topology
Fix import issue in cobra.topology Signed-off-by: Vivek Rai <6965dcfed9719c822a5fc29f0dbf450e6c3f778e@gmail.com>
Python
lgpl-2.1
JuBra/cobrapy,aebrahim/cobrapy,zakandrewking/cobrapy,JuBra/cobrapy,jeicher/cobrapy,zakandrewking/cobrapy,aebrahim/cobrapy,jeicher/cobrapy
from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from reporter_metabolites import * del __name, __modules Fix import issue in cobra.topology Signed-off-by: Vivek Rai <6965dcfed9...
from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from .reporter_metabolites import * del __name, __modules
<commit_before>from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from reporter_metabolites import * del __name, __modules <commit_msg>Fix import issue in cobra.topology Signed-of...
from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from .reporter_metabolites import * del __name, __modules
from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from reporter_metabolites import * del __name, __modules Fix import issue in cobra.topology Signed-off-by: Vivek Rai <6965dcfed9...
<commit_before>from os import name as __name from sys import modules as __modules from warnings import warn if __name == 'java': warn("%s is not yet supported on jython"%__modules[__name__]) else: from reporter_metabolites import * del __name, __modules <commit_msg>Fix import issue in cobra.topology Signed-of...
e7998648c42d5bcccec7239d13521a5b77a738af
src/utils/indices.py
src/utils/indices.py
import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index. Primary index with dynamic template. Secondary index with static mappings...
import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index with dynamic template. Run it on an open index to update dynamic mapping. ...
Allow setup function to update dynamic mapping
Allow setup function to update dynamic mapping
Python
mit
Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI
import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index. Primary index with dynamic template. Secondary index with static mappings...
import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index with dynamic template. Run it on an open index to update dynamic mapping. ...
<commit_before>import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index. Primary index with dynamic template. Secondary index with ...
import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index with dynamic template. Run it on an open index to update dynamic mapping. ...
import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index. Primary index with dynamic template. Secondary index with static mappings...
<commit_before>import json import os from elasticsearch import Elasticsearch from elasticsearch_dsl import Index from model import APIDoc def exists(): return Index(APIDoc.Index.name).exists() def setup(): """ Setup Elasticsearch Index. Primary index with dynamic template. Secondary index with ...
3a8ff4ce62c2a0f3e7ebc61284894fc69ec36b79
django_sqs/message.py
django_sqs/message.py
import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawMessage): ""...
import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawMessage): ""...
Raise ValueError on get_body instead of random exception when initializing ModelInstanceMessage.
Raise ValueError on get_body instead of random exception when initializing ModelInstanceMessage.
Python
bsd-3-clause
mpasternacki/django-sqs
import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawMessage): ""...
import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawMessage): ""...
<commit_before>import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawM...
import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawMessage): ""...
import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawMessage): ""...
<commit_before>import base64 try: import json except ImportError: try: import simplejson as json except ImportError: import django.utils.simplejson as json import boto.sqs.message from django.contrib.contenttypes.models import ContentType class ModelInstanceMessage(boto.sqs.message.RawM...
9b0618d3b52c74bf2abd65a581807087cbaa2ca4
grammpy_transforms/NongeneratingSymbolsRemove/nongeneratingSymbolsRemove.py
grammpy_transforms/NongeneratingSymbolsRemove/nongeneratingSymbolsRemove.py
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def _copy_grammar(grammar): return Grammar(terminals=(item.s for item in grammar.terms()), nonterminals=grammar.nonterms(), ...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from copy import copy from grammpy import Grammar def _copy_grammar(grammar): return copy(grammar) def remove_nongenerating_symbol(grammar: Grammar, transform_grammar=False) -> Grammar: ...
Switch to new version of grammpy (1.1.2) and use copy method
Switch to new version of grammpy (1.1.2) and use copy method
Python
mit
PatrikValkovic/grammpy
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def _copy_grammar(grammar): return Grammar(terminals=(item.s for item in grammar.terms()), nonterminals=grammar.nonterms(), ...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from copy import copy from grammpy import Grammar def _copy_grammar(grammar): return copy(grammar) def remove_nongenerating_symbol(grammar: Grammar, transform_grammar=False) -> Grammar: ...
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def _copy_grammar(grammar): return Grammar(terminals=(item.s for item in grammar.terms()), nonterminals=grammar.nonterms(), ...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from copy import copy from grammpy import Grammar def _copy_grammar(grammar): return copy(grammar) def remove_nongenerating_symbol(grammar: Grammar, transform_grammar=False) -> Grammar: ...
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def _copy_grammar(grammar): return Grammar(terminals=(item.s for item in grammar.terms()), nonterminals=grammar.nonterms(), ...
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 23.06.2017 16:39 :Licence GNUv3 Part of grammpy-transforms """ from grammpy import Grammar def _copy_grammar(grammar): return Grammar(terminals=(item.s for item in grammar.terms()), nonterminals=grammar.nonterms(), ...
50dce60963c6817eb0dded8c4fc23047e7b54d6e
runtests.py
runtests.py
#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity = 0 if "-v" in...
#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity = 0 if "-v" in...
Split out running unit and functional tests
Split out running unit and functional tests
Python
apache-2.0
google/oauth2client,clancychilds/oauth2client,google/oauth2client,clancychilds/oauth2client,googleapis/google-api-python-client,googleapis/oauth2client,googleapis/oauth2client,jonparrott/oauth2client,jonparrott/oauth2client,googleapis/google-api-python-client
#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity = 0 if "-v" in...
#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity = 0 if "-v" in...
<commit_before>#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity...
#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity = 0 if "-v" in...
#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity = 0 if "-v" in...
<commit_before>#!/usr/bin/env python import glob import logging import os import sys import unittest from trace import fullmodname try: from tests.utils import cleanup except: def cleanup(): pass sys.path.insert(0, os.getcwd()) verbosity = 1 if "-q" in sys.argv or '--quiet' in sys.argv: verbosity...
0f21ef4fe5a1e95668f5fdbeda4d8a37da65484f
trombi/__init__.py
trombi/__init__.py
# Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute,...
# Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute,...
Add version information under trombi module
Add version information under trombi module
Python
mit
inoi/trombi
# Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute,...
# Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute,...
<commit_before># Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
# Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute,...
# Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute,...
<commit_before># Copyright (c) 2010 Inoi Oy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publi...
4c11a3c8f0cd82ebee3269e76450562aa8d2b8c3
troposphere/sns.py
troposphere/sns.py
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): props = { ...
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): props = { ...
Add missing properties to SNS::Subscription
Add missing properties to SNS::Subscription
Python
bsd-2-clause
johnctitus/troposphere,ikben/troposphere,cloudtools/troposphere,johnctitus/troposphere,ikben/troposphere,cloudtools/troposphere,pas256/troposphere,pas256/troposphere
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): props = { ...
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): props = { ...
<commit_before># Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): ...
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): props = { ...
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): props = { ...
<commit_before># Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject, AWSProperty try: from awacs.aws import Policy policytypes = (dict, Policy) except ImportError: policytypes = dict, class Subscription(AWSProperty): ...
6038bcd507c43eb86e04c6a32abf9b8249c8872e
tests/server/handlers/test_zip.py
tests/server/handlers/test_zip.py
import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): def setUp(self): super().setUp() identity_future = asyncio.Future() identity_future.se...
import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): @testing.gen_test def test_download_stream(self): data = b'freddie brian john roger' strea...
Remove deprecated test setup and teardown code
Remove deprecated test setup and teardown code
Python
apache-2.0
rdhyee/waterbutler,kwierman/waterbutler,hmoco/waterbutler,CenterForOpenScience/waterbutler,cosenal/waterbutler,Ghalko/waterbutler,rafaeldelucena/waterbutler,felliott/waterbutler,icereval/waterbutler,RCOSDP/waterbutler,TomBaxter/waterbutler,chrisseto/waterbutler,Johnetordoff/waterbutler
import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): def setUp(self): super().setUp() identity_future = asyncio.Future() identity_future.se...
import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): @testing.gen_test def test_download_stream(self): data = b'freddie brian john roger' strea...
<commit_before>import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): def setUp(self): super().setUp() identity_future = asyncio.Future() ide...
import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): @testing.gen_test def test_download_stream(self): data = b'freddie brian john roger' strea...
import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): def setUp(self): super().setUp() identity_future = asyncio.Future() identity_future.se...
<commit_before>import asyncio import io import zipfile from unittest import mock from tornado import testing from waterbutler.core import streams from tests import utils class TestZipHandler(utils.HandlerTestCase): def setUp(self): super().setUp() identity_future = asyncio.Future() ide...
e9c23c7a0c622e8db29d066f1cd1a679dc6eb1bf
salt/grains/external_ip.py
salt/grains/external_ip.py
# -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain
# -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain, this file should be removed in the Boron release
Add note to remove file
Add note to remove file
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain Add note to remove file
# -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain, this file should be removed in the Boron release
<commit_before># -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain <commit_msg>Add note to remove file<commit_after>
# -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain, this file should be removed in the Boron release
# -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain Add note to remove file# -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain, this file should be removed in the Boron release
<commit_before># -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain <commit_msg>Add note to remove file<commit_after># -*- coding: utf-8 -*- # This file is here to ensure that upgrades of salt remove the external_ip # grain, this file should be removed in the Boron...
8ecaaa14cba2a84606dc6d31f0c16c09dbfae017
server/LikeLines/debug.py
server/LikeLines/debug.py
""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type="submit" value=...
""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type="submit" value=...
Fix incorrect redirect in clear_all
Fix incorrect redirect in clear_all
Python
mit
ShinNoNoir/likelines-player,ShinNoNoir/likelines-player,ShinNoNoir/likelines-player
""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type="submit" value=...
""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type="submit" value=...
<commit_before>""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type=...
""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type="submit" value=...
""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type="submit" value=...
<commit_before>""" Debug Blueprints. """ from flask import Blueprint, current_app, redirect, jsonify, url_for, request debug_pages = Blueprint('debug', __name__) @debug_pages.route("/clear_all", methods=['GET', 'POST']) def clear_all(): if request.method == 'GET': return '<form method="POST"><input type=...
35a9de1ba8f6c1bcb6ae35c9f965657de973412f
tokenizers/sentiment_tokenizer.py
tokenizers/sentiment_tokenizer.py
from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ Replace re...
from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ Replace re...
Use map to loop instead of mapping a list
Use map to loop instead of mapping a list
Python
apache-2.0
chuajiesheng/twitter-sentiment-analysis
from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ Replace re...
from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ Replace re...
<commit_before>from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ ...
from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ Replace re...
from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ Replace re...
<commit_before>from nltk.sentiment.util import mark_negation from nltk.util import trigrams import re import validators from .happy_tokenizer import Tokenizer class SentimentTokenizer(object): def __init__(self): self.tknzr = Tokenizer() @staticmethod def reduce_lengthening(text): """ ...
3c7e6e1f02b9d73497cb49359d542d3fa4c9a85f
utils/rc_sensor.py
utils/rc_sensor.py
#!/usr/bin/env python import rcsensor print(rcsensor.get_count(200, 10, 22))
#!/usr/bin/env python from common.rcsensor import rcsensor as rcsensor class RcSensor(object): def __init__(self, gpio, cycles=200, discharge_delay=10): if gpio is None: raise ValueError("Must supply gpio value") self.gpio = gpio self.cycles = cycles self.discharge_de...
Create a RC sensor class object
Create a RC sensor class object
Python
mit
mecworks/garden_pi,mecworks/garden_pi,mecworks/garden_pi,mecworks/garden_pi
#!/usr/bin/env python import rcsensor print(rcsensor.get_count(200, 10, 22)) Create a RC sensor class object
#!/usr/bin/env python from common.rcsensor import rcsensor as rcsensor class RcSensor(object): def __init__(self, gpio, cycles=200, discharge_delay=10): if gpio is None: raise ValueError("Must supply gpio value") self.gpio = gpio self.cycles = cycles self.discharge_de...
<commit_before>#!/usr/bin/env python import rcsensor print(rcsensor.get_count(200, 10, 22)) <commit_msg>Create a RC sensor class object<commit_after>
#!/usr/bin/env python from common.rcsensor import rcsensor as rcsensor class RcSensor(object): def __init__(self, gpio, cycles=200, discharge_delay=10): if gpio is None: raise ValueError("Must supply gpio value") self.gpio = gpio self.cycles = cycles self.discharge_de...
#!/usr/bin/env python import rcsensor print(rcsensor.get_count(200, 10, 22)) Create a RC sensor class object#!/usr/bin/env python from common.rcsensor import rcsensor as rcsensor class RcSensor(object): def __init__(self, gpio, cycles=200, discharge_delay=10): if gpio is None: raise ValueE...
<commit_before>#!/usr/bin/env python import rcsensor print(rcsensor.get_count(200, 10, 22)) <commit_msg>Create a RC sensor class object<commit_after>#!/usr/bin/env python from common.rcsensor import rcsensor as rcsensor class RcSensor(object): def __init__(self, gpio, cycles=200, discharge_delay=10): ...
d697266e41f2e073c801221b7da46455a0ef1116
dimod/package_info.py
dimod/package_info.py
# Copyright 2018 D-Wave 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 applicable law or...
# Copyright 2018 D-Wave 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 applicable law or...
Update version 0.9.4 -> 0.9.5
Update version 0.9.4 -> 0.9.5 New Features ------------ * `BQM.normalize` now returns the value the BQM was scaled by * `SampleSet.relabel_variables` no longer blocks for unresolved sample sets * `FileView` has a new parameter, `ignore_variables` that treats the BQM as integer-labelled * `ScaleComposite` no longe...
Python
apache-2.0
dwavesystems/dimod,dwavesystems/dimod
# Copyright 2018 D-Wave 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 applicable law or...
# Copyright 2018 D-Wave 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 applicable law or...
<commit_before># Copyright 2018 D-Wave 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 ap...
# Copyright 2018 D-Wave 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 applicable law or...
# Copyright 2018 D-Wave 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 applicable law or...
<commit_before># Copyright 2018 D-Wave 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 ap...
a5e8f6af93debd98b626ee382a843d5dedbf70f8
test/benchmarks/general/blocks/read_sigproc.py
test/benchmarks/general/blocks/read_sigproc.py
from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): def run_benchmark(self): with bf.Pipeline() as pipeline: fil_...
""" Test the sigproc read function """ from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): """ Test the sigproc read function """ ...
Add docstrings for sigproc benchmarks
Add docstrings for sigproc benchmarks
Python
bsd-3-clause
ledatelescope/bifrost,ledatelescope/bifrost,ledatelescope/bifrost,ledatelescope/bifrost
from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): def run_benchmark(self): with bf.Pipeline() as pipeline: fil_...
""" Test the sigproc read function """ from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): """ Test the sigproc read function """ ...
<commit_before>from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): def run_benchmark(self): with bf.Pipeline() as pipeline: ...
""" Test the sigproc read function """ from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): """ Test the sigproc read function """ ...
from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): def run_benchmark(self): with bf.Pipeline() as pipeline: fil_...
<commit_before>from timeit import default_timer as timer import bifrost as bf from bifrost import pipeline as bfp from bifrost import blocks as blocks from bifrost_benchmarks import PipelineBenchmarker class SigprocBenchmarker(PipelineBenchmarker): def run_benchmark(self): with bf.Pipeline() as pipeline: ...
9a2cc99b068b2aaa572f52b4516852b239577c34
dummyserver/server.py
dummyserver/server.py
#!/usr/bin/python import threading, socket """ Dummy server using for unit testing """ class Server(threading.Thread): def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = port self....
#!/usr/bin/python import threading, socket class Server(threading.Thread): """ Dummy server using for unit testing """ def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = port ...
Put docstring inside Server class
Put docstring inside Server class
Python
apache-2.0
psf/requests
#!/usr/bin/python import threading, socket """ Dummy server using for unit testing """ class Server(threading.Thread): def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = port self....
#!/usr/bin/python import threading, socket class Server(threading.Thread): """ Dummy server using for unit testing """ def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = port ...
<commit_before>#!/usr/bin/python import threading, socket """ Dummy server using for unit testing """ class Server(threading.Thread): def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = por...
#!/usr/bin/python import threading, socket class Server(threading.Thread): """ Dummy server using for unit testing """ def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = port ...
#!/usr/bin/python import threading, socket """ Dummy server using for unit testing """ class Server(threading.Thread): def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = port self....
<commit_before>#!/usr/bin/python import threading, socket """ Dummy server using for unit testing """ class Server(threading.Thread): def __init__(self, handler, host='localhost', port=8021): threading.Thread.__init__(self) self.handler = handler self.host = host self.port = por...
47352af38ace09af3572bc63d8c1da4d27cafb86
app/notify_client/job_api_client.py
app/notify_client/job_api_client.py
from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
Add limit_days query param to the get_job endpoint.
Add limit_days query param to the get_job endpoint.
Python
mit
alphagov/notifications-admin,gov-cjwaszczuk/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,gov-cjwaszczuk/notifications-admin,gov-cjwaszczuk/notifications-admin,alphagov/notifications-admin,gov-cjwaszczuk/notifications-admin
from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
<commit_before> from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
<commit_before> from notifications_python_client.base import BaseAPIClient from app.notify_client import _attach_current_user class JobApiClient(BaseAPIClient): def __init__(self, base_url=None, client_id=None, secret=None): super(self.__class__, self).__init__(base_url=base_url or 'base_url', ...
aa6cf034e41f9426e6b4688ffe832f802efb7864
fbalerts.py
fbalerts.py
''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' url = 'https://www.facebook.com/feeds/notifications.php?id=' + \ p...
''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' base_url = 'https://www.facebook.com/feeds/notifications.php?id={0}&vi...
Use new string formatting method
Use new string formatting method
Python
mit
studenton/facebook-alerts
''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' url = 'https://www.facebook.com/feeds/notifications.php?id=' + \ p...
''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' base_url = 'https://www.facebook.com/feeds/notifications.php?id={0}&vi...
<commit_before>''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' url = 'https://www.facebook.com/feeds/notifications.php...
''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' base_url = 'https://www.facebook.com/feeds/notifications.php?id={0}&vi...
''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' url = 'https://www.facebook.com/feeds/notifications.php?id=' + \ p...
<commit_before>''' Check your Facebook notifications on command line. Author: Amit Chaudhary ( studenton.com@gmail.com ) ''' import json # Configuration notifications = 5 # Number of Notifications profile_id = '1XXXXXXXXXXXXXX' token = 'write token here' url = 'https://www.facebook.com/feeds/notifications.php...
afa76e2643ed75c6864d2281afd3e220b848e487
iscc_bench/textid/unicode_blocks.py
iscc_bench/textid/unicode_blocks.py
# -*- coding: utf-8 -*- """Blocks of unicode ranges""" from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): blocks = {} data = requests.get(URL).text for line in data.splitlines(): if line and not line.startswith('#'): ...
# -*- coding: utf-8 -*- """Blocks of unicode ranges""" import unicodedata from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): """Load and parse unicode blocks from unicode standard""" blocks = {} data = requests.get(URL).text f...
Add various unicode spec helper functions
Add various unicode spec helper functions
Python
bsd-2-clause
coblo/isccbench
# -*- coding: utf-8 -*- """Blocks of unicode ranges""" from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): blocks = {} data = requests.get(URL).text for line in data.splitlines(): if line and not line.startswith('#'): ...
# -*- coding: utf-8 -*- """Blocks of unicode ranges""" import unicodedata from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): """Load and parse unicode blocks from unicode standard""" blocks = {} data = requests.get(URL).text f...
<commit_before># -*- coding: utf-8 -*- """Blocks of unicode ranges""" from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): blocks = {} data = requests.get(URL).text for line in data.splitlines(): if line and not line.startsw...
# -*- coding: utf-8 -*- """Blocks of unicode ranges""" import unicodedata from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): """Load and parse unicode blocks from unicode standard""" blocks = {} data = requests.get(URL).text f...
# -*- coding: utf-8 -*- """Blocks of unicode ranges""" from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): blocks = {} data = requests.get(URL).text for line in data.splitlines(): if line and not line.startswith('#'): ...
<commit_before># -*- coding: utf-8 -*- """Blocks of unicode ranges""" from pprint import pprint import requests URL = "https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt" def load_blocks(): blocks = {} data = requests.get(URL).text for line in data.splitlines(): if line and not line.startsw...
0f5a632d625d65f4edf9e31efa75708a79eee16c
CaseStudies/glass/Implementations/Python_Simplified/Implementation/readTable.py
CaseStudies/glass/Implementations/Python_Simplified/Implementation/readTable.py
""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ import numpy as np def read_num_col(filename): with open(filename, 'rb') as f: num_col = [f.readline()] num_col = np.genfromtxt(num_col, delimi...
""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ def read_num_col(filename): with open(filename, "r") as f: line = f.readline() z_array = line.split(",")[1::2] z_array = [float(i) for i in z...
Remove numpy dependency from glassbr python code
Remove numpy dependency from glassbr python code
Python
bsd-2-clause
JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software
""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ import numpy as np def read_num_col(filename): with open(filename, 'rb') as f: num_col = [f.readline()] num_col = np.genfromtxt(num_col, delimi...
""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ def read_num_col(filename): with open(filename, "r") as f: line = f.readline() z_array = line.split(",")[1::2] z_array = [float(i) for i in z...
<commit_before>""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ import numpy as np def read_num_col(filename): with open(filename, 'rb') as f: num_col = [f.readline()] num_col = np.genfromtxt(...
""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ def read_num_col(filename): with open(filename, "r") as f: line = f.readline() z_array = line.split(",")[1::2] z_array = [float(i) for i in z...
""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ import numpy as np def read_num_col(filename): with open(filename, 'rb') as f: num_col = [f.readline()] num_col = np.genfromtxt(num_col, delimi...
<commit_before>""" This module implements a portion of the Input Format Module. In this case the input is the tabular data necessary for the different interpolations. """ import numpy as np def read_num_col(filename): with open(filename, 'rb') as f: num_col = [f.readline()] num_col = np.genfromtxt(...
ea6c57de01f420bdd344194e5529a0e91036c634
greenfan/management/commands/create-job-from-testspec.py
greenfan/management/commands/create-job-from-testspec.py
# # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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...
# # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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...
Allow us to create both virtual and physical jobs
Allow us to create both virtual and physical jobs
Python
apache-2.0
sorenh/python-django-greenfan,sorenh/python-django-greenfan
# # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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...
# # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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...
<commit_before># # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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/l...
# # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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...
# # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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...
<commit_before># # Copyright 2012 Cisco Systems, Inc. # # Author: Soren Hansen <sorhanse@cisco.com> # # 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/l...
bfc94287cc5886495851733a45872a8979900435
lily/notes/migrations/0010_remove_polymorphic_cleanup.py
lily/notes/migrations/0010_remove_polymorphic_cleanup.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate'), ] operations = [ migrations.AlterField( ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields # Comment for testing migrations in Travis continuous deployment. class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate')...
Test migrations with continuous deployment.
Test migrations with continuous deployment.
Python
agpl-3.0
HelloLily/hellolily,HelloLily/hellolily,HelloLily/hellolily,HelloLily/hellolily
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate'), ] operations = [ migrations.AlterField( ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields # Comment for testing migrations in Travis continuous deployment. class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate')...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate'), ] operations = [ migrations.Alter...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields # Comment for testing migrations in Travis continuous deployment. class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate')...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate'), ] operations = [ migrations.AlterField( ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('notes', '0009_remove_polymorphic_data_migrate'), ] operations = [ migrations.Alter...
bc3e31838fd1b5eec3c4ca17f5fab4588ac87904
tests/client/test_TelnetClient.py
tests/client/test_TelnetClient.py
import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect(self, socket_mock): def callback(raw_message): pass client = TelnetClient() client.r...
import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect_disconnect(self, socket_mock): client = TelnetClient() client.connect() client.sock.connect.asser...
Update to receiver version 0.2.6
Update to receiver version 0.2.6 Update to receiver version 0.2.6 Better testing
Python
agpl-3.0
glidernet/python-ogn-client
import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect(self, socket_mock): def callback(raw_message): pass client = TelnetClient() client.r...
import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect_disconnect(self, socket_mock): client = TelnetClient() client.connect() client.sock.connect.asser...
<commit_before>import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect(self, socket_mock): def callback(raw_message): pass client = TelnetClient() ...
import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect_disconnect(self, socket_mock): client = TelnetClient() client.connect() client.sock.connect.asser...
import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect(self, socket_mock): def callback(raw_message): pass client = TelnetClient() client.r...
<commit_before>import unittest import unittest.mock as mock from ogn.client.client import TelnetClient class TelnetClientTest(unittest.TestCase): @mock.patch('ogn.client.client.socket') def test_connect(self, socket_mock): def callback(raw_message): pass client = TelnetClient() ...
05f0969ee8b9374c2fe5bce2c753fb4619432f0d
tests/integration/runners/jobs.py
tests/integration/runners/jobs.py
# -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def test_active(self)...
# -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def test_active(self)...
Fix the output now that we are using the default output (nested) instead of hard coding it to yaml
Fix the output now that we are using the default output (nested) instead of hard coding it to yaml
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def test_active(self)...
# -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def test_active(self)...
<commit_before># -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def te...
# -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def test_active(self)...
# -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def test_active(self)...
<commit_before># -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class ManageTest(integration.ShellCase): ''' Test the manage runner ''' def te...
ba6f29106ba6b8957d82cf042753e4b48a671da6
waterbutler/providers/osfstorage/metadata.py
waterbutler/providers/osfstorage/metadata.py
from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property def path(self): ...
from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property def path(self): ...
Return User and download count
Return User and download count
Python
apache-2.0
rdhyee/waterbutler,hmoco/waterbutler,CenterForOpenScience/waterbutler,Johnetordoff/waterbutler,TomBaxter/waterbutler,kwierman/waterbutler,RCOSDP/waterbutler,Ghalko/waterbutler,icereval/waterbutler,cosenal/waterbutler,felliott/waterbutler,chrisseto/waterbutler,rafaeldelucena/waterbutler
from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property def path(self): ...
from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property def path(self): ...
<commit_before>from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property d...
from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property def path(self): ...
from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property def path(self): ...
<commit_before>from waterbutler.core import metadata class BaseOsfStorageMetadata: @property def provider(self): return 'osfstorage' class OsfStorageFileMetadata(BaseOsfStorageMetadata, metadata.BaseFileMetadata): @property def name(self): return self.raw['name'] @property d...
be86fc3f3c7ec9dc213f8f527da59d5578be8b2a
irma/fileobject/handler.py
irma/fileobject/handler.py
from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if id: ...
from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if id: ...
Delete method added in FileObject
Delete method added in FileObject
Python
apache-2.0
hirokihamasaki/irma,hirokihamasaki/irma,quarkslab/irma,hirokihamasaki/irma,hirokihamasaki/irma,quarkslab/irma,hirokihamasaki/irma,quarkslab/irma,quarkslab/irma
from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if id: ...
from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if id: ...
<commit_before>from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if i...
from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if id: ...
from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if id: ...
<commit_before>from irma.database.nosqlhandler import NoSQLDatabase from bson import ObjectId class FileObject(object): _uri = None _dbname = None _collection = None def __init__(self, dbname=None, id=None): if dbname: self._dbname = dbname self._dbfile = None if i...
010c87de588009371adbab8a234de78d9da4ebbd
fullcalendar/admin.py
fullcalendar/admin.py
from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(StackedDynamicInlineA...
from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(StackedDynamicInlineA...
Fix Django system check error for a editable field that is not displayed
Fix Django system check error for a editable field that is not displayed This error, "CommandError: System check identified some issues: ERRORS: <class 'fullcalendar.admin.EventAdmin'>: (admin.E122) The value of 'list_editable[0]' refers to 'status', which is not an attribute of 'events.Event'." was given for Django >...
Python
mit
jonge-democraten/mezzanine-fullcalendar
from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(StackedDynamicInlineA...
from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(StackedDynamicInlineA...
<commit_before>from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(Stacke...
from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(StackedDynamicInlineA...
from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(StackedDynamicInlineA...
<commit_before>from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from mezzanine.core.admin import StackedDynamicInlineAdmin, DisplayableAdmin from fullcalendar.models import * class EventCategoryAdmin(admin.ModelAdmin): list_display = ('name',) class OccurrenceInline(Stacke...
4a85ecaaae1452e74acc485d032f00e8bedace47
cmsplugin_filer_link/cms_plugins.py
cmsplugin_filer_link/cms_plugins.py
from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' model = File...
from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' model = File...
Add "page_link" to "raw_id_fields" to prevent the run of "decompress"
Add "page_link" to "raw_id_fields" to prevent the run of "decompress" Same issue as the already merged pull request for issue #106 however this applies to cmsfiler_link
Python
bsd-3-clause
stefanfoulis/cmsplugin-filer,creimers/cmsplugin-filer,wlanslovenija/cmsplugin-filer,jschneier/cmsplugin-filer,creimers/cmsplugin-filer,divio/cmsplugin-filer,yvess/cmsplugin-filer,brightinteractive/cmsplugin-filer,yvess/cmsplugin-filer,nephila/cmsplugin-filer,jschneier/cmsplugin-filer,stefanfoulis/cmsplugin-filer,sephii...
from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' model = File...
from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' model = File...
<commit_before>from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' ...
from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' model = File...
from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' model = File...
<commit_before>from __future__ import unicode_literals from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ from django.conf import settings from .models import FilerLinkPlugin class FilerLinkPlugin(CMSPluginBase): module = 'Filer' ...
c25b7820ccd52b943586af42d09ce53c3633ed96
cmsplugin_simple_markdown/models.py
cmsplugin_simple_markdown/models.py
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE...
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE...
Add some tiny docstring to the unicode method
Add some tiny docstring to the unicode method
Python
bsd-3-clause
Alir3z4/cmsplugin-simple-markdown,Alir3z4/cmsplugin-simple-markdown
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE...
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE...
<commit_before>import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = loc...
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE...
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE...
<commit_before>import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = loc...
79ac1550b5acd407b2a107e694c66cccfbc0be89
alerts/lib/deadman_alerttask.py
alerts/lib/deadman_alerttask.py
from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def __init__(self): self.deadman = True def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return self.main_query.e...
from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return self.main_query.execute(self.es, indices=self.event_indices, size=1)
Remove deadman alerttask init method
Remove deadman alerttask init method
Python
mpl-2.0
jeffbryner/MozDef,gdestuynder/MozDef,mozilla/MozDef,mpurzynski/MozDef,mozilla/MozDef,Phrozyn/MozDef,jeffbryner/MozDef,jeffbryner/MozDef,Phrozyn/MozDef,mpurzynski/MozDef,gdestuynder/MozDef,Phrozyn/MozDef,mpurzynski/MozDef,mpurzynski/MozDef,gdestuynder/MozDef,Phrozyn/MozDef,mozilla/MozDef,jeffbryner/MozDef,mozilla/MozDef...
from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def __init__(self): self.deadman = True def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return self.main_query.e...
from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return self.main_query.execute(self.es, indices=self.event_indices, size=1)
<commit_before>from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def __init__(self): self.deadman = True def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return se...
from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return self.main_query.execute(self.es, indices=self.event_indices, size=1)
from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def __init__(self): self.deadman = True def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return self.main_query.e...
<commit_before>from alerttask import AlertTask class DeadmanAlertTask(AlertTask): def __init__(self): self.deadman = True def executeSearchEventsSimple(self): # We override this method to specify the size as 1 # since we only care about if ANY events are found or not return se...