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
eb994bad8556c750f2c27f83117e7d32899d9427
tests.py
tests.py
""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest class TwitterSATestCase(unittest.TestCase): def setUp(self): TwitterSA.app.config['TESTING'] = True self.app = TwitterSA.app.test_client() ...
""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest try: import cPickle as pickle except ImportError: import pickle DATA_SOURCES = [ 'lib/noslang.p' ] class TwitterSATestCase(unittest.TestCase): de...
Add validate data sources test
Add validate data sources test
Python
mit
jayelm/twittersa,jayelm/twittersa
""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest class TwitterSATestCase(unittest.TestCase): def setUp(self): TwitterSA.app.config['TESTING'] = True self.app = TwitterSA.app.test_client() ...
""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest try: import cPickle as pickle except ImportError: import pickle DATA_SOURCES = [ 'lib/noslang.p' ] class TwitterSATestCase(unittest.TestCase): de...
<commit_before>""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest class TwitterSATestCase(unittest.TestCase): def setUp(self): TwitterSA.app.config['TESTING'] = True self.app = TwitterSA.app.tes...
""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest try: import cPickle as pickle except ImportError: import pickle DATA_SOURCES = [ 'lib/noslang.p' ] class TwitterSATestCase(unittest.TestCase): de...
""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest class TwitterSATestCase(unittest.TestCase): def setUp(self): TwitterSA.app.config['TESTING'] = True self.app = TwitterSA.app.test_client() ...
<commit_before>""" Tests for TwitterSA These tests might be overkill, it's my first time messing around with unit tests. Jesse Mu """ import TwitterSA import unittest class TwitterSATestCase(unittest.TestCase): def setUp(self): TwitterSA.app.config['TESTING'] = True self.app = TwitterSA.app.tes...
3cf7ca56ac156154dc08433955fff4b15e7eb331
mpd_mypy.py
mpd_mypy.py
#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(mpdclient.list("artist"))
#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(str(artist).lower() for artist in mpdclient.list("artist") if art...
Apply filters on artists to clean duplicates
Apply filters on artists to clean duplicates
Python
bsd-2-clause
Anthony25/mpd_muspy
#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(mpdclient.list("artist")) Apply filters on artists to clean duplicates
#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(str(artist).lower() for artist in mpdclient.list("artist") if art...
<commit_before>#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(mpdclient.list("artist")) <commit_msg>Apply filters on artists...
#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(str(artist).lower() for artist in mpdclient.list("artist") if art...
#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(mpdclient.list("artist")) Apply filters on artists to clean duplicates#!/usr/...
<commit_before>#!/usr/bin/python import mpd SERVER = "localhost" PORT = 6600 def connect(mpdclient): """ Handle connection to the mpd server """ mpdclient.connect(SERVER, PORT) mpdclient = mpd.MPDClient() connect(mpdclient) bands = set(mpdclient.list("artist")) <commit_msg>Apply filters on artists...
d837a194e29b867443a3758bb4c159afe193e798
enumfields/fields.py
enumfields/fields.py
from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: choices = en...
from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: choices = en...
Revert "Add South introspection rules"
Revert "Add South introspection rules" They weren't correct. This reverts commit b7235e2fc4b28271e0dce8d812faa4a46ed84aea.
Python
mit
suutari-ai/django-enumfields,jessamynsmith/django-enumfields,bxm156/django-enumfields,jackyyf/django-enumfields
from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: choices = en...
from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: choices = en...
<commit_before>from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: ...
from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: choices = en...
from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: choices = en...
<commit_before>from django.core.exceptions import ValidationError from django.db import models import six class EnumFieldMixin(six.with_metaclass(models.SubfieldBase)): def __init__(self, enum, choices=None, max_length=10, **options): self.enum = enum if not choices: try: ...
5e12fbf432331f1cc6f16c85e9535c12e5584ecc
neuroimaging/setup.py
neuroimaging/setup.py
import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('data_io') config.add_subpa...
import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('externals') config.add_sub...
Change neuroimaging package list data_io to io.
Change neuroimaging package list data_io to io.
Python
bsd-3-clause
alexis-roche/nipy,alexis-roche/register,arokem/nipy,alexis-roche/register,alexis-roche/niseg,nipy/nireg,nipy/nipy-labs,nipy/nireg,arokem/nipy,alexis-roche/nipy,alexis-roche/register,arokem/nipy,alexis-roche/nireg,bthirion/nipy,nipy/nipy-labs,alexis-roche/nireg,bthirion/nipy,bthirion/nipy,alexis-roche/nipy,arokem/nipy,a...
import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('data_io') config.add_subpa...
import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('externals') config.add_sub...
<commit_before>import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('data_io') c...
import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('externals') config.add_sub...
import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('data_io') config.add_subpa...
<commit_before>import os def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('neuroimaging', parent_package, top_path) config.add_subpackage('algorithms') config.add_subpackage('core') config.add_subpackage('data_io') c...
e8454180e4ec612e5c76ab0ec5f149adcaadf026
runtests.py
runtests.py
#!/usr/bin/env python from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', # Our app and ...
#!/usr/bin/env python import django from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', ...
Make testrunner work with Django 1.7).
Make testrunner work with Django 1.7).
Python
bsd-3-clause
helber/django-dbsettings,helber/django-dbsettings,zlorf/django-dbsettings,sciyoshi/django-dbsettings,johnpaulett/django-dbsettings,nwaxiomatic/django-dbsettings,DjangoAdminHackers/django-dbsettings,zlorf/django-dbsettings,winfieldco/django-dbsettings,DjangoAdminHackers/django-dbsettings,johnpaulett/django-dbsettings,wi...
#!/usr/bin/env python from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', # Our app and ...
#!/usr/bin/env python import django from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', ...
<commit_before>#!/usr/bin/env python from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', ...
#!/usr/bin/env python import django from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', ...
#!/usr/bin/env python from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', # Our app and ...
<commit_before>#!/usr/bin/env python from django.conf import settings from django.core.management import call_command INSTALLED_APPS = ( # Required contrib apps. 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django.contrib.sessions', ...
6b7f3ac5bc8c753eb77e975003eb3ee626491774
SLClearOldLists.py
SLClearOldLists.py
# -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'SoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html', n) if r: ...
# -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'\ASoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html\Z', n) if r...
Fix file name matching when clearing old lists
Fix file name matching when clearing old lists
Python
mit
gousaiyang/SoftwareList,gousaiyang/SoftwareList
# -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'SoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html', n) if r: ...
# -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'\ASoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html\Z', n) if r...
<commit_before># -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'SoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html', n) ...
# -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'\ASoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html\Z', n) if r...
# -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'SoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html', n) if r: ...
<commit_before># -*- coding: utf-8 -*- import os import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'SoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html', n) ...
f9b079b7956419ec324234dbad11d073bed70dd8
users/views.py
users/views.py
from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users.""" query...
from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users.""" query...
Use Python 3 style for super
Use Python 3 style for super
Python
bsd-3-clause
FreeMusicNinja/api.freemusic.ninja
from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users.""" query...
from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users.""" query...
<commit_before>from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users...
from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users.""" query...
from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users.""" query...
<commit_before>from django.shortcuts import redirect from rest_framework import viewsets from .models import User from .permissions import IsUserOrReadOnly from .serializers import AuthenticatedUserSerializer, UserSerializer class UserViewSet(viewsets.ModelViewSet): """API endpoint for viewing and editing users...
2dc6c076c1d5dce2623ba49eb42a239f31c37547
roc/roc_curve.py
roc/roc_curve.py
import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser.add_argument("-...
import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser.add_argument("-...
Load clients and impostors data
Load clients and impostors data
Python
mit
maigimenez/bio,maigimenez/bio,maigimenez/bio
import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser.add_argument("-...
import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser.add_argument("-...
<commit_before>import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser....
import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser.add_argument("-...
import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser.add_argument("-...
<commit_before>import argparse import numpy def load_default(): print "TODO: load default scores" return None, None def get_data(): """ Get scores data. If there are no arguments in command line load default """ parser = argparse.ArgumentParser(description="Solve the ROC curve") parser....
8a452925f4d630c5f29d2aab9e565798b4a6284c
sardine/const.py
sardine/const.py
# v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108.
# v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108.46435
Expand wavenumber conversion factor out to a few decimal places.
Expand wavenumber conversion factor out to a few decimal places.
Python
bsd-2-clause
grollins/sardine,grollins/sardine
# v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108. Expand wavenumber conversion factor out to a few decimal places.
# v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108.46435
<commit_before># v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108. <commit_msg>Expand wavenumber conversion factor out to a few decimal places.<commit_after>
# v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108.46435
# v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108. Expand wavenumber conversion factor out to a few decimal places.# v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108.46435
<commit_before># v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108. <commit_msg>Expand wavenumber conversion factor out to a few decimal places.<commit_after># v = 108 * sqrt(k/m) cm^-1 CM_CONVERSION_FACTOR = 108.46435
f9791b4b19b2cf304e322db0a40c95ad4632d5a8
screenshooter.py
screenshooter.py
import time from selenium import webdriver starttime=time.time() url = 'http://applemusic.tumblr.com/beats1' while True: driver = webdriver.PhantomJS() driver.set_window_size(1920, 1080) driver.get(url) driver.save_screenshot('page.jpg') print('Screenie taken @ ' + str(time.time()) ) time.sleep(...
import time import os import logging as logger from selenium import webdriver starttime=time.time() logger.basicConfig(filename='screenshooter.log',level=logger.DEBUG) url = 'http://applemusic.tumblr.com/beats1' while True: #driver = webdriver.PhantomJS() #driver.set_window_size(1920, 1080) #driver.get(url)...
Update service for covers and music
Update service for covers and music
Python
mit
duramato/Beats-Metadata
import time from selenium import webdriver starttime=time.time() url = 'http://applemusic.tumblr.com/beats1' while True: driver = webdriver.PhantomJS() driver.set_window_size(1920, 1080) driver.get(url) driver.save_screenshot('page.jpg') print('Screenie taken @ ' + str(time.time()) ) time.sleep(...
import time import os import logging as logger from selenium import webdriver starttime=time.time() logger.basicConfig(filename='screenshooter.log',level=logger.DEBUG) url = 'http://applemusic.tumblr.com/beats1' while True: #driver = webdriver.PhantomJS() #driver.set_window_size(1920, 1080) #driver.get(url)...
<commit_before>import time from selenium import webdriver starttime=time.time() url = 'http://applemusic.tumblr.com/beats1' while True: driver = webdriver.PhantomJS() driver.set_window_size(1920, 1080) driver.get(url) driver.save_screenshot('page.jpg') print('Screenie taken @ ' + str(time.time()) ) ...
import time import os import logging as logger from selenium import webdriver starttime=time.time() logger.basicConfig(filename='screenshooter.log',level=logger.DEBUG) url = 'http://applemusic.tumblr.com/beats1' while True: #driver = webdriver.PhantomJS() #driver.set_window_size(1920, 1080) #driver.get(url)...
import time from selenium import webdriver starttime=time.time() url = 'http://applemusic.tumblr.com/beats1' while True: driver = webdriver.PhantomJS() driver.set_window_size(1920, 1080) driver.get(url) driver.save_screenshot('page.jpg') print('Screenie taken @ ' + str(time.time()) ) time.sleep(...
<commit_before>import time from selenium import webdriver starttime=time.time() url = 'http://applemusic.tumblr.com/beats1' while True: driver = webdriver.PhantomJS() driver.set_window_size(1920, 1080) driver.get(url) driver.save_screenshot('page.jpg') print('Screenie taken @ ' + str(time.time()) ) ...
78854858ebeb3fe92df82e203880e177a205051a
apps/mommy/management/commands/mommy-task-run.py
apps/mommy/management/commands/mommy-task-run.py
from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): args = 'name of job' help = 'run a job' @staticmethod def print_job_names(): possible_jobs = [] for task, _ in mommy.schedule.tasks.items(): possible_jobs.append(task.__...
from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): help = 'run a job' def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) mommy.autodiscover() def add_arguments(self, parser): parser.add_argument('job', help=...
Use add_arguments instead of deprecated .args
Use add_arguments instead of deprecated .args
Python
mit
dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4
from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): args = 'name of job' help = 'run a job' @staticmethod def print_job_names(): possible_jobs = [] for task, _ in mommy.schedule.tasks.items(): possible_jobs.append(task.__...
from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): help = 'run a job' def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) mommy.autodiscover() def add_arguments(self, parser): parser.add_argument('job', help=...
<commit_before>from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): args = 'name of job' help = 'run a job' @staticmethod def print_job_names(): possible_jobs = [] for task, _ in mommy.schedule.tasks.items(): possible_jobs...
from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): help = 'run a job' def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) mommy.autodiscover() def add_arguments(self, parser): parser.add_argument('job', help=...
from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): args = 'name of job' help = 'run a job' @staticmethod def print_job_names(): possible_jobs = [] for task, _ in mommy.schedule.tasks.items(): possible_jobs.append(task.__...
<commit_before>from django.core.management.base import BaseCommand from apps import mommy class Command(BaseCommand): args = 'name of job' help = 'run a job' @staticmethod def print_job_names(): possible_jobs = [] for task, _ in mommy.schedule.tasks.items(): possible_jobs...
7e1a490aa4ab490ef2d53c0f73593ed5bd405920
ftp.py
ftp.py
#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("192.168.56.101", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim(" ") s_strin...
#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("127.0.0.1", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim(" ") s_string("an...
Use more predictable demo IP address
Use more predictable demo IP address
Python
mit
jtpereyda/boofuzz-ftp
#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("192.168.56.101", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim(" ") s_strin...
#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("127.0.0.1", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim(" ") s_string("an...
<commit_before>#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("192.168.56.101", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim("...
#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("127.0.0.1", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim(" ") s_string("an...
#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("192.168.56.101", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim(" ") s_strin...
<commit_before>#!/usr/bin/env python # Designed for use with boofuzz v0.0.1-dev3 from boofuzz import * def main(): session = sessions.Session( target=sessions.Target( connection=SocketConnection("192.168.56.101", 8021, proto='tcp'))) s_initialize("user") s_string("USER") s_delim("...
14557e20e2e813a83c05d5733fb2998857527460
Differ.py
Differ.py
file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] resultado = "".join( x for x,y in zip(modified, pi) if x != y) resultado2 = "".join( x for x,y in zip(pi, modified) if x != y) print "[Differ:] print '\n---...
#!/usr/bin/python # Script to Check the difference in 2 files # 1 fevereiro de 2015 # https://github.com/thezakman file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] result...
Check Diff of 2 files
Check Diff of 2 files
Python
artistic-2.0
thezakman/CTF-Scripts,thezakman/CTF-Scripts
file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] resultado = "".join( x for x,y in zip(modified, pi) if x != y) resultado2 = "".join( x for x,y in zip(pi, modified) if x != y) print "[Differ:] print '\n---...
#!/usr/bin/python # Script to Check the difference in 2 files # 1 fevereiro de 2015 # https://github.com/thezakman file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] result...
<commit_before> file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] resultado = "".join( x for x,y in zip(modified, pi) if x != y) resultado2 = "".join( x for x,y in zip(pi, modified) if x != y) print "[Differ...
#!/usr/bin/python # Script to Check the difference in 2 files # 1 fevereiro de 2015 # https://github.com/thezakman file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] result...
file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] resultado = "".join( x for x,y in zip(modified, pi) if x != y) resultado2 = "".join( x for x,y in zip(pi, modified) if x != y) print "[Differ:] print '\n---...
<commit_before> file1 = raw_input('[file1:] ') modified = open(file1,"r").readlines()[0] file2 = raw_input('[file2:] ') pi = open(file2, "r").readlines()[0] # [:len(modified)] resultado = "".join( x for x,y in zip(modified, pi) if x != y) resultado2 = "".join( x for x,y in zip(pi, modified) if x != y) print "[Differ...
234dd098ccca89c0a547f6d6cf5175a39b3b429b
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', url='http://compmusic.upf.edu', install_requires=[...
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', author_email='compmusic@upf.edu', url='http://comp...
Add author info to package config
Add author info to package config
Python
agpl-3.0
MTG/pycompmusic
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', url='http://compmusic.upf.edu', install_requires=[...
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', author_email='compmusic@upf.edu', url='http://comp...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', url='http://compmusic.upf.edu', ins...
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', author_email='compmusic@upf.edu', url='http://comp...
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', url='http://compmusic.upf.edu', install_requires=[...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import versioneer setup(name='pycompmusic', version=versioneer.get_version(), description='Tools for playing with the compmusic collection', author='CompMusic / MTG UPF', url='http://compmusic.upf.edu', ins...
ba8615cb7d895ce883d5126b557c29a69e2f93e0
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', version='0.1.2', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', version='0.1.2', ...
Add URL in package info
Add URL in package info
Python
bsd-3-clause
bipsandbytes/django-api
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', version='0.1.2', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', version='0.1.2', ...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', versi...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', version='0.1.2', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', version='0.1.2', ...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-api', versi...
79c0568b600443e0b86097a6e60ee0526a2b8db3
setup.py
setup.py
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url='https://githu...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url='https://githu...
Update GitHub repos from blancltd to developersociety
Update GitHub repos from blancltd to developersociety
Python
bsd-2-clause
blancltd/blanc-basic-podcast
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url='https://githu...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url='https://githu...
<commit_before>#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url='https://githu...
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url='https://githu...
<commit_before>#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-podcast', version='0.3', description='Blanc Basic Podcast for Django', long_description=readme, url...
afe3cd41e5224e5de5aa37ee8ef2b0fa485cb1b0
setup.py
setup.py
from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.3', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers=[ 'Pro...
from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.4.0', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers=[ 'P...
CHANGE - Updates version to 0.4.0
CHANGE - Updates version to 0.4.0
Python
mit
AartGoossens/athletic_pandas
from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.3', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers=[ 'Pro...
from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.4.0', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers=[ 'P...
<commit_before>from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.3', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers...
from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.4.0', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers=[ 'P...
from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.3', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers=[ 'Pro...
<commit_before>from distutils.core import setup setup( name = 'athletic_pandas', packages = ['athletic_pandas'], version = '0.3', description = 'Workout analysis', author='Aart Goossens', author_email='aart@goossens.me', url='https://github.com/AartGoossens/athletic_pandas', classifiers...
800b9faf318bd5fd403ae9beef8bddb35e82802a
setup.py
setup.py
#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=__author__, ...
#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=__author__, ...
Add pathlib as a dependency.
Add pathlib as a dependency. This is only required for python<=3.2, after which pathlib is included in the standard library.
Python
mit
kalekundert/fcmcmp
#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=__author__, ...
#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=__author__, ...
<commit_before>#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=_...
#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=__author__, ...
#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=__author__, ...
<commit_before>#!/usr/bin/env python3 try: from setuptools import setup except ImportError: from distutils.core import setup with open('fcmcmp/__meta__.py') as file: exec(file.read()) with open('README.rst') as file: readme = file.read() setup( name='fcmcmp', version=__version__, author=_...
c9278c030620a0b56e88130a745ee21315b904bf
setup.py
setup.py
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
Upgrade ldap3 0.9.9.2 => 1.0.2
Upgrade ldap3 0.9.9.2 => 1.0.2
Python
mit
wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
<commit_before>import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https:/...
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
<commit_before>import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a10', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https:/...
c90a76dd2f8b7ccfd081267b3d246d47a18df2e2
setup.py
setup.py
from distutils.core import setup setup(name='lattice', version='0.8', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['lattice'] )
from setuptools import setup, find_packages setup(name='lattice', version='0.9', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['lattice']...
Include junit.jar in the final EGG package installation
Include junit.jar in the final EGG package installation
Python
apache-2.0
jerryzhenleicai/lattice,jerryzhenleicai/lattice,jerryzhenleicai/lattice
from distutils.core import setup setup(name='lattice', version='0.8', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['lattice'] ) I...
from setuptools import setup, find_packages setup(name='lattice', version='0.9', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['lattice']...
<commit_before> from distutils.core import setup setup(name='lattice', version='0.8', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['latt...
from setuptools import setup, find_packages setup(name='lattice', version='0.9', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['lattice']...
from distutils.core import setup setup(name='lattice', version='0.8', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['lattice'] ) I...
<commit_before> from distutils.core import setup setup(name='lattice', version='0.8', description='Java Build tool in Python', author='Zhenlei Cai', author_email='jpenguin@gmail.com', url='http://www.python.org/sigs/distutils-sig/', include_package_data = True, packages=['latt...
055b939e8e906c5c03130680edb8f7e5642e9141
setup.py
setup.py
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts', 'jinja2'] setup(name='substance', version=__version__, ...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts=0.3.3', 'jinja2'] setup(name='substance', version=__versio...
Use 0.3.3 hosts mgmt plugin because 0.3.4 is borked.
Use 0.3.3 hosts mgmt plugin because 0.3.4 is borked.
Python
apache-2.0
turbulent/substance,turbulent/substance
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts', 'jinja2'] setup(name='substance', version=__version__, ...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts=0.3.3', 'jinja2'] setup(name='substance', version=__versio...
<commit_before>from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts', 'jinja2'] setup(name='substance', version...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts=0.3.3', 'jinja2'] setup(name='substance', version=__versio...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts', 'jinja2'] setup(name='substance', version=__version__, ...
<commit_before>from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() execfile('substance/_version.py') install_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 'tinydb', 'python_hosts', 'jinja2'] setup(name='substance', version...
b5a049b1b7b4c2d759aafc38ef2f9af148396bbd
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', version='0.1', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', version='0.1.1'...
Update do version 0.1.1 which should hopefully trigger automatic pypi deployment
Update do version 0.1.1 which should hopefully trigger automatic pypi deployment
Python
bsd-3-clause
Azelphur-Servers/django-game-info
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', version='0.1', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', version='0.1.1'...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', version='0.1.1'...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', version='0.1', ...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-game-info', ...
e2e4b0b10dcc0cd98b0e87e63db073dd2f27882f
setup.py
setup.py
#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Python (in dataframe...
#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Python (in dataframe...
Add download URL for PyPI
Add download URL for PyPI
Python
mit
iamaziz/PyDataset
#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Python (in dataframe...
#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Python (in dataframe...
<commit_before>#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Pytho...
#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Python (in dataframe...
#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Python (in dataframe...
<commit_before>#!/usr/bin/env python # Author: Aziz Alto # email: iamaziz.alto@gmail.com try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pydataset', description=("Provides instant access to many popular datasets right from " "Pytho...
9481843728077b8445d5e2323b40d322760064b9
setup.py
setup.py
#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, f...
#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, f...
Update nexus requirement so pip stops complaining.
Update nexus requirement so pip stops complaining.
Python
apache-2.0
brilliant-org/nexus-memcache,brilliant-org/nexus-memcache,brilliant-org/nexus-memcache
#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, f...
#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, f...
<commit_before>#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools ...
#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, f...
#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, f...
<commit_before>#!/usr/bin/env python # Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools ...
6377a1a50293c2b62eb5e29c936998ad09995c7a
service/inchi.py
service/inchi.py
import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request = requests.get('%s/service/chemical/cjson/?q=inchi~eq~%s' % (config['baseUrl'], inchi)) if request.st...
import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request_url = '%s/service/chemical/cjson?q=inchi~eq~%s' % (config['baseUrl'], inchi) request = requests.get(re...
Fix URL for fetch CJSON
Fix URL for fetch CJSON
Python
bsd-3-clause
OpenChemistry/mongochemweb,OpenChemistry/mongochemweb
import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request = requests.get('%s/service/chemical/cjson/?q=inchi~eq~%s' % (config['baseUrl'], inchi)) if request.st...
import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request_url = '%s/service/chemical/cjson?q=inchi~eq~%s' % (config['baseUrl'], inchi) request = requests.get(re...
<commit_before>import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request = requests.get('%s/service/chemical/cjson/?q=inchi~eq~%s' % (config['baseUrl'], inchi)) ...
import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request_url = '%s/service/chemical/cjson?q=inchi~eq~%s' % (config['baseUrl'], inchi) request = requests.get(re...
import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request = requests.get('%s/service/chemical/cjson/?q=inchi~eq~%s' % (config['baseUrl'], inchi)) if request.st...
<commit_before>import requests import json from subprocess import Popen, PIPE import tempfile import os import sys config = {} with open ('../config/conversion.json') as fp: config = json.load(fp) def to_cml(inchi): request = requests.get('%s/service/chemical/cjson/?q=inchi~eq~%s' % (config['baseUrl'], inchi)) ...
79678296fa20cbfa11aa9a58496de09a71e88ac4
setup.py
setup.py
# -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class CustomInstallCommand(install): """Install as noteboook extension""" def insta...
# -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class InstallCommand(install): """Install as noteboook extension""" develop = False ...
Add suport for development installs.
Add suport for development installs.
Python
bsd-3-clause
jdfreder/ipython-flightwidgets,jdfreder/ipython-flightwidgets
# -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class CustomInstallCommand(install): """Install as noteboook extension""" def insta...
# -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class InstallCommand(install): """Install as noteboook extension""" develop = False ...
<commit_before># -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class CustomInstallCommand(install): """Install as noteboook extension""...
# -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class InstallCommand(install): """Install as noteboook extension""" develop = False ...
# -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class CustomInstallCommand(install): """Install as noteboook extension""" def insta...
<commit_before># -*- coding: utf-8 -*- try: from setuptools import setup from setuptools.command.install import install except ImportError: from distutils.core import setup from distutils.core.command.install import install class CustomInstallCommand(install): """Install as noteboook extension""...
309a8c9a39ddfa01d2e3c24aab0bc50a84121f4e
setup.py
setup.py
import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='https://github.com/...
import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='https://github.com...
Add newline to format imports properly.
Add newline to format imports properly.
Python
bsd-3-clause
benspaulding/django-shortwave
import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='https://github.com/...
import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='https://github.com...
<commit_before>import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='http...
import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='https://github.com...
import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='https://github.com/...
<commit_before>import os from distutils.core import setup from shortwave import VERSION def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-shortwave', version=VERSION, description='Shortwave command file management for Django apps.', url='http...
92abc4715e001be7f4729612c31616e0d63c3a2e
setup.py
setup.py
from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer Network', au...
from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer Network', au...
Update paramiko dependency for vulnerability
Update paramiko dependency for vulnerability
Python
mit
carbonblack/cb-event-duplicator
from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer Network', au...
from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer Network', au...
<commit_before>from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer N...
from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer Network', au...
from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer Network', au...
<commit_before>from setuptools import setup setup( name='cb-event-duplicator', version='1.2.0', packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'], url='https://github.com/carbonblack/cb-event-duplicator', license='MIT', author='Bit9 + Carbon Black Developer N...
74a09fe1aa31db15501d260749dba12e227f91cb
setup.py
setup.py
__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportError: long_des...
__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportError: long_des...
Drop EOL Python 3.3, add 3.6
Drop EOL Python 3.3, add 3.6
Python
apache-2.0
fmoo/python-editor
__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportError: long_des...
__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportError: long_des...
<commit_before>__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportErro...
__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportError: long_des...
__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportError: long_des...
<commit_before>__VERSION__ = '1.0.3' from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except OSError: # Stolen from pypandoc: if pandoc is not installed, fallback to using raw contents long_description = open('README.md').read() except ImportErro...
dbbf69546f10cc7e197a61212f728f6f7b303398
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.1', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko','logging'], author='Nicolas Thomas', author_email='nthomas@fo...
#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.2', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko'], author='Nicolas Thomas', author_email='nthomas@fortinet.com...
Remove explicit deps to logging to avoir pip3 mess
Remove explicit deps to logging to avoir pip3 mess
Python
apache-2.0
thomnico/fortigateconf,thomnico/fortiosapi,thomnico/fortiosapi
#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.1', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko','logging'], author='Nicolas Thomas', author_email='nthomas@fo...
#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.2', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko'], author='Nicolas Thomas', author_email='nthomas@fortinet.com...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.1', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko','logging'], author='Nicolas Thomas', author_em...
#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.2', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko'], author='Nicolas Thomas', author_email='nthomas@fortinet.com...
#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.1', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko','logging'], author='Nicolas Thomas', author_email='nthomas@fo...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='fortigateconf', version='0.4.1', description='Python modules to interact with Fortigate configuration rest and ssh', install_requires=['requests','paramiko','logging'], author='Nicolas Thomas', author_em...
2cf9a67d578161943ea5c624a88e9114a89d7ccd
setup.py
setup.py
#!/usr/bin/env python """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: README = readme_file.read() setup( name='backl...
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from __future__ import absolute_import from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: ...
Make ordering consistent with keysmith
Make ordering consistent with keysmith
Python
lgpl-2.1
dmtucker/backlog
#!/usr/bin/env python """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: README = readme_file.read() setup( name='backl...
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from __future__ import absolute_import from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: ...
<commit_before>#!/usr/bin/env python """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: README = readme_file.read() setup( ...
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from __future__ import absolute_import from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: ...
#!/usr/bin/env python """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: README = readme_file.read() setup( name='backl...
<commit_before>#!/usr/bin/env python """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import backlog with open('README.rst') as readme_file: README = readme_file.read() setup( ...
70ba345d2c1bf8a695656406359c081611d01f90
setup.py
setup.py
from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README README.md', ...
from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README README.md', ...
Change package to geobuf, matching the module name.
Change package to geobuf, matching the module name.
Python
isc
mapbox/pygeobuf
from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README README.md', ...
from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README README.md', ...
<commit_before>from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README R...
from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README README.md', ...
from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README README.md', ...
<commit_before>from codecs import open as codecs_open import distutils.log import os.path import shutil from setuptools import setup, find_packages import subprocess # Try to convert README markdown to restructured text using pandoc. try: subprocess.call( 'pandoc --from=markdown --to=rst --output=README R...
a1796f2cd30efae9f2dda77c4386f8bef9ca459f
setup.py
setup.py
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.14', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', license='Apach...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.15', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', license='Apach...
Include all gin files in pip package.
Include all gin files in pip package. PiperOrigin-RevId: 318120480
Python
apache-2.0
tensorflow/mesh,tensorflow/mesh
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.14', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', license='Apach...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.15', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', license='Apach...
<commit_before>"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.14', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', ...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.15', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', license='Apach...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.14', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', license='Apach...
<commit_before>"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.1.14', description='Mesh TensorFlow', author='Google Inc.', author_email='no-reply@google.com', url='http://github.com/tensorflow/mesh', ...
5118c78a3a89424e0577d538b2f85b1753284344
setup.py
setup.py
import os import re from setuptools import setup, find_packages def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f.readlines(): m = re.match(r"__version__ = '(.*?)'", line) if m: return m.group(1) raise Valu...
import os import re import sys from setuptools import setup, find_packages PY_VER = sys.version_info if PY_VER >= (3, 4): pass else: raise RuntimeError("Only support Python version >= 3.4") def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f...
Support only python >= 3.4
Support only python >= 3.4
Python
apache-2.0
anti-social/gitlab-merge-request
import os import re from setuptools import setup, find_packages def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f.readlines(): m = re.match(r"__version__ = '(.*?)'", line) if m: return m.group(1) raise Valu...
import os import re import sys from setuptools import setup, find_packages PY_VER = sys.version_info if PY_VER >= (3, 4): pass else: raise RuntimeError("Only support Python version >= 3.4") def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f...
<commit_before>import os import re from setuptools import setup, find_packages def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f.readlines(): m = re.match(r"__version__ = '(.*?)'", line) if m: return m.group(1)...
import os import re import sys from setuptools import setup, find_packages PY_VER = sys.version_info if PY_VER >= (3, 4): pass else: raise RuntimeError("Only support Python version >= 3.4") def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f...
import os import re from setuptools import setup, find_packages def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f.readlines(): m = re.match(r"__version__ = '(.*?)'", line) if m: return m.group(1) raise Valu...
<commit_before>import os import re from setuptools import setup, find_packages def get_version(): with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f: for line in f.readlines(): m = re.match(r"__version__ = '(.*?)'", line) if m: return m.group(1)...
7c0d5465e282b3a55dc67a8b94f7451cbd470351
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_requires.append('r...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_requires.append('r...
Update algoliasearch requirement to >=1.7.1 (Unreachable host algolia error fix)
Update algoliasearch requirement to >=1.7.1 (Unreachable host algolia error fix)
Python
mit
Iceberg-Marketplace/Iceberg-API-PYTHON,izberg-marketplace/izberg-api-python
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_requires.append('r...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_requires.append('r...
<commit_before>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_req...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_requires.append('r...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_requires.append('r...
<commit_before>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup import os import sys if sys.version < '3': execfile(os.path.join('icebergsdk', 'version.py')) else: exec(open("icebergsdk/version.py").read()) install_requires = [] install_req...
225af65498426edce75ffbc0ab80ad1757446d0e
setup.py
setup.py
from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url='https://github...
from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url='https://github...
Revert "Revert "Upgrade to jenkinsapi==0.2.29""
Revert "Revert "Upgrade to jenkinsapi==0.2.29"" This reverts commit 35ffadfd1adb1a02875e0e0cfcf1c67f229e2ba9.
Python
mit
Wikia/jenkins-webhooks
from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url='https://github...
from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url='https://github...
<commit_before>from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url=...
from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url='https://github...
from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url='https://github...
<commit_before>from setuptools import setup from webhooks import __version__ with open('README.rst') as f: long_description = f.read() setup( name='webhooks', version=__version__, description='Flask app for triggering Jenkins builds by GitHub webhooks', long_description=long_description, url=...
a4d2d4c4520dfffc1c5501db671805760933b126
setup.py
setup.py
from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', 'SQLAlch...
from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', 'SQLAlch...
Add forgotten dependency on mock
Add forgotten dependency on mock
Python
mit
nobita-isc/annotator-store,nobita-isc/annotator-store,ningyifan/annotator-store,openannotation/annotator-store,nobita-isc/annotator-store,happybelly/annotator-store,nobita-isc/annotator-store
from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', 'SQLAlch...
from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', 'SQLAlch...
<commit_before>from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', ...
from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', 'SQLAlch...
from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', 'SQLAlch...
<commit_before>from setuptools import setup, find_packages from annotator import __version__, __license__, __author__ setup( name = 'annotator', version = __version__, packages = find_packages(), install_requires = [ 'Flask==0.8', 'Flask-WTF==0.5.2', 'Flask-SQLAlchemy==0.15', ...
2498f0184e9cf0496fdf1e33c8aa4fe4aa643502
stats.py
stats.py
#!/usr/bin/python # encoding: utf-8 from __future__ import with_statement import argparse, re, sys def filter(args): bytes_extractor = re.compile(r"([0-9]+) bytes") with args.output: with args.input: for line in args.input: if line.find("avr-size") >= 0: ...
#!/usr/bin/python # encoding: utf-8 # In order to use this script from shell: # > make CONF=UNO clean-examples # > make CONF=UNO examples >tempsizes # > cat tempsizes | ./stats.py >sizes # > rm tempsizes # Then sizes file can be opened in LibreOffice Calc from __future__ import with_statement import argparse, re, sys...
Document python script to extract program sizes from make output.
Document python script to extract program sizes from make output.
Python
lgpl-2.1
jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib
#!/usr/bin/python # encoding: utf-8 from __future__ import with_statement import argparse, re, sys def filter(args): bytes_extractor = re.compile(r"([0-9]+) bytes") with args.output: with args.input: for line in args.input: if line.find("avr-size") >= 0: ...
#!/usr/bin/python # encoding: utf-8 # In order to use this script from shell: # > make CONF=UNO clean-examples # > make CONF=UNO examples >tempsizes # > cat tempsizes | ./stats.py >sizes # > rm tempsizes # Then sizes file can be opened in LibreOffice Calc from __future__ import with_statement import argparse, re, sys...
<commit_before>#!/usr/bin/python # encoding: utf-8 from __future__ import with_statement import argparse, re, sys def filter(args): bytes_extractor = re.compile(r"([0-9]+) bytes") with args.output: with args.input: for line in args.input: if line.find("avr-size") >= 0: ...
#!/usr/bin/python # encoding: utf-8 # In order to use this script from shell: # > make CONF=UNO clean-examples # > make CONF=UNO examples >tempsizes # > cat tempsizes | ./stats.py >sizes # > rm tempsizes # Then sizes file can be opened in LibreOffice Calc from __future__ import with_statement import argparse, re, sys...
#!/usr/bin/python # encoding: utf-8 from __future__ import with_statement import argparse, re, sys def filter(args): bytes_extractor = re.compile(r"([0-9]+) bytes") with args.output: with args.input: for line in args.input: if line.find("avr-size") >= 0: ...
<commit_before>#!/usr/bin/python # encoding: utf-8 from __future__ import with_statement import argparse, re, sys def filter(args): bytes_extractor = re.compile(r"([0-9]+) bytes") with args.output: with args.input: for line in args.input: if line.find("avr-size") >= 0: ...
cfaed02921ba1c46c45f726aa4a008f4fa1cd66f
partner_academic_title/models/partner_academic_title.py
partner_academic_title/models/partner_academic_title.py
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can redistribute it an...
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can redistribute it an...
Add translate=True on academic title name
Add translate=True on academic title name
Python
agpl-3.0
brain-tec/partner-contact,brain-tec/partner-contact
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can redistribute it an...
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can redistribute it an...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can red...
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can redistribute it an...
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can redistribute it an...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # This file is part of partner_academic_title, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # partner_academic_title is free software: # you can red...
848a6b0fbca65679205ae47d130c7ff53c155f98
feedback/models.py
feedback/models.py
from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey(User, null=Tru...
from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey(User, null=Tru...
Allow the user to be editable (for admin interface).
Allow the user to be editable (for admin interface).
Python
bsd-3-clause
gabrielhurley/django-user-feedback
from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey(User, null=Tru...
from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey(User, null=Tru...
<commit_before>from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey...
from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey(User, null=Tru...
from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey(User, null=Tru...
<commit_before>from django.conf import settings from django.db import models from django.contrib.auth.models import User FEEDBACK_TYPES = ( ('bug', 'Bug'), ('feature', 'Feature'), ('support', 'Support request'), ) class Feedback(models.Model): feedback = models.TextField() user = models.ForeignKey...
d2fe3bbf4f97ef5ece4c6c69e531e261eeed75b1
stoq/plugins/archiver.py
stoq/plugins/archiver.py
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
Remove @abstracmethod from archive method as well
Remove @abstracmethod from archive method as well
Python
apache-2.0
PUNCH-Cyber/stoq
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
<commit_before>#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # 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 # # Un...
<commit_before>#!/usr/bin/env python3 # Copyright 2014-2018 PUNCH Cyber Analytics Group # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
f20966d6d29371f7bb947317ee1d93a470accd6e
settings.py
settings.py
import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' LANGUAGE_CODE ...
import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' LANGUAGE_CODE ...
Fix tests not passing for Django 2.X
Fix tests not passing for Django 2.X
Python
mit
SectorLabs/django-localized-fields,SectorLabs/django-localized-fields,SectorLabs/django-localized-fields
import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' LANGUAGE_CODE ...
import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' LANGUAGE_CODE ...
<commit_before>import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' ...
import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' LANGUAGE_CODE ...
import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' LANGUAGE_CODE ...
<commit_before>import dj_database_url DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = 'this is my secret key' # NOQA TEST_RUNNER = 'django.test.runner.DiscoverRunner' DATABASES = { 'default': dj_database_url.config(default='postgres:///localized_fields') } DATABASES['default']['ENGINE'] = 'psqlextra.backend' ...
2f4483440a98f34b650ea09a75f6dc941548f8b2
zeus/vcs/db.py
zeus/vcs/db.py
import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def connect(self): ...
import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def connect(self): ...
Disable asyncpg prepared statement cache
Disable asyncpg prepared statement cache
Python
apache-2.0
getsentry/zeus,getsentry/zeus,getsentry/zeus,getsentry/zeus
import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def connect(self): ...
import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def connect(self): ...
<commit_before>import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def co...
import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def connect(self): ...
import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def connect(self): ...
<commit_before>import asyncpg class Database: def __init__(self, host: str, port: int, user: str, password: str, database: str): self.host = host self.port = port self.user = user self.password = password self.database = database self._conn = None async def co...
24d51efaf80993352d82038d059c4435857fcd67
test/backend/test_job.py
test/backend/test_job.py
import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.Job, 'RUNNING') ...
import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.Job, 'RUNNING') ...
Update to match new format for param.txt.
Update to match new format for param.txt.
Python
lgpl-2.1
salilab/cryptosite-web,salilab/cryptosite-web
import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.Job, 'RUNNING') ...
import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.Job, 'RUNNING') ...
<commit_before>import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.J...
import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.Job, 'RUNNING') ...
import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.Job, 'RUNNING') ...
<commit_before>import unittest import cryptosite import saliweb.test import saliweb.backend import os class JobTests(saliweb.test.TestCase): """Check custom CryptoSite Job class""" def test_run_first_stepok(self): """Test successful run method, first step""" j = self.make_test_job(cryptosite.J...
a30fa66345ab54b62af98fb428ce0cd4515525f6
proselint/__init__.py
proselint/__init__.py
"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ['tools']
"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ('tools')
Make __all__ immutable to stop pep257 from complaining.
Make __all__ immutable to stop pep257 from complaining.
Python
bsd-3-clause
amperser/proselint,amperser/proselint,amperser/proselint,amperser/proselint,amperser/proselint
"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ['tools'] Make __all__ immutable to stop pep257 from complaining.
"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ('tools')
<commit_before>"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ['tools'] <commit_msg>Make __all__ immutable to stop pep257 from complaining.<commit_after>
"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ('tools')
"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ['tools'] Make __all__ immutable to stop pep257 from complaining."""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ('tools')
<commit_before>"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ['tools'] <commit_msg>Make __all__ immutable to stop pep257 from complaining.<commit_after>"""Proselint applies advice from great writers to your writing.""" from . import tools __all__ = ('tools')
c76be093ca2fe226d43e2f6ef908dfc7dbf1faf1
keys.py
keys.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
#!/usr/bin/env python3 # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', access_key...
Remove flickr key, add forecast.io key
Remove flickr key, add forecast.io key
Python
mit
bman4789/weatherBot,bman4789/weatherBot,BrianMitchL/weatherBot
#!/usr/bin/env python # -*- coding: utf-8 -*- # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
#!/usr/bin/env python3 # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', access_key...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxx...
#!/usr/bin/env python3 # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', access_key...
#!/usr/bin/env python # -*- coding: utf-8 -*- # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # weatherBot keys # Copyright 2015 Brian Mitchell under the MIT license # See the GitHub repository: https://github.com/bman4789/weatherBot import os keys = dict( consumer_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', consumer_secret='xxxxxxxxxxxxxxx...
4516b3b47d77badccaa5da020a7ec34f2fe2a88e
main.py
main.py
""" The main beast. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass
""" The main beast is alive. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass
Test to see if user is correct
Test to see if user is correct
Python
mit
dodgyrabbit/midi-light-py
""" The main beast. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass Test to see if user is correct
""" The main beast is alive. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass
<commit_before>""" The main beast. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass <commit_msg>Test to see if user...
""" The main beast is alive. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass
""" The main beast. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass Test to see if user is correct""" The main bea...
<commit_before>""" The main beast. """ from lib.Mock_DotStar import Adafruit_DotStar import time strip = Adafruit_DotStar(88) strip.begin() strip.show() try: while True: time.sleep(1) except KeyboardInterrupt: ## Close mock library (which should close window) pass <commit_msg>Test to see if user...
f64447ca0e1442552b4a854fec5a8f847d2165cd
numpy/_array_api/_types.py
numpy/_array_api/_types.py
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tuple', 'Union', '...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tuple', 'Union', '...
Use the array API types for the array API type annotations
Use the array API types for the array API type annotations
Python
mit
cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tuple', 'Union', '...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tuple', 'Union', '...
<commit_before>""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tup...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tuple', 'Union', '...
""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tuple', 'Union', '...
<commit_before>""" This file defines the types for type annotations. These names aren't part of the module namespace, but they are used in the annotations in the function signatures. The functions in the module are only valid for inputs that match the given type annotations. """ __all__ = ['Literal', 'Optional', 'Tup...
263ffc507d693854aec3fe826964b3c9031cdad8
s4v1.py
s4v1.py
from s3v3 import * import csv def write_to_file(filename, data_sample): example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). example.writerows(data_sample) # write ro...
from s3v3 import * import csv # ORIGINAL VERSION - Leaves file open # def write_to_file(filename, data_sample): # example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). ...
Update export csv function to close file when finished
Update export csv function to close file when finished
Python
mit
alexmilesyounger/ds_basics
from s3v3 import * import csv def write_to_file(filename, data_sample): example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). example.writerows(data_sample) # write ro...
from s3v3 import * import csv # ORIGINAL VERSION - Leaves file open # def write_to_file(filename, data_sample): # example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). ...
<commit_before>from s3v3 import * import csv def write_to_file(filename, data_sample): example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). example.writerows(data_sam...
from s3v3 import * import csv # ORIGINAL VERSION - Leaves file open # def write_to_file(filename, data_sample): # example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). ...
from s3v3 import * import csv def write_to_file(filename, data_sample): example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). example.writerows(data_sample) # write ro...
<commit_before>from s3v3 import * import csv def write_to_file(filename, data_sample): example = csv.writer(open(filename, 'w', encoding='utf-8'), dialect='excel') # example is the variable of the new file that is open and which we can write to (using utf-8 encoding and an excel dialect). example.writerows(data_sam...
419bf4377e2b26434e576ff07e540a818bb2c330
experiments/2013-09-08.py
experiments/2013-09-08.py
Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, max_jobs...
Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, max_jobs...
Change to random seed of that experiment
Change to random seed of that experiment
Python
mit
jamesrobertlloyd/gpss-research,codeaudit/gpss-research,ekamioka/gpss-research,ElbaKramer/gpss-research,ElbaKramer/gpss-research,jamesrobertlloyd/gpss-research,jamesrobertlloyd/gpss-research,codeaudit/gpss-research,jamesrobertlloyd/gpss-research,ekamioka/gpss-research,ElbaKramer/gpss-research,ekamioka/gpss-research,code...
Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, max_jobs...
Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, max_jobs...
<commit_before>Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, ...
Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, max_jobs...
Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, max_jobs...
<commit_before>Experiment(description='Deeper with two types of per and 5 full_iters for good measure', data_dir='../data/tsdlr/', max_depth=12, random_order=False, k=1, debug=False, local_computation=False, n_rand=9, sd=4, ...
c2aaf1f325ba44406acacd3935a4897c833dc16c
django-row-tracker.py
django-row-tracker.py
import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts to the screen ...
import argparse import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts...
Add argument handling for path and project name
Add argument handling for path and project name
Python
bsd-3-clause
shearichard/django-row-tracker
import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts to the screen ...
import argparse import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts...
<commit_before>import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts ...
import argparse import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts...
import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts to the screen ...
<commit_before>import sys from django.core.management import setup_environ import settings setup_environ(settings) from django.db.utils import DatabaseError from django.db.transaction import rollback_unless_managed from django.db import models def get_model_info(): ''' Dump all models and their row counts ...
9efd7f63f12affffb58b7e243777432a331e91f2
examples/add_command_line_argument.py
examples/add_command_line_argument.py
from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( '--custom-argument', help="It's working" ) @events.init.add_listener def _(environment, **kw): print("Custom argument supplied: %...
from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( "--my-argument", type=str, env_var="LOCUST_MY_ARGUMENT", default="", help="It's working" ) @events.init.add_...
Add type, env var and default value to custom argument example. And rename it so that nobody thinks the "custom" in the name has a specific meaning.
Add type, env var and default value to custom argument example. And rename it so that nobody thinks the "custom" in the name has a specific meaning.
Python
mit
mbeacom/locust,mbeacom/locust,locustio/locust,locustio/locust,mbeacom/locust,locustio/locust,locustio/locust,mbeacom/locust
from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( '--custom-argument', help="It's working" ) @events.init.add_listener def _(environment, **kw): print("Custom argument supplied: %...
from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( "--my-argument", type=str, env_var="LOCUST_MY_ARGUMENT", default="", help="It's working" ) @events.init.add_...
<commit_before>from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( '--custom-argument', help="It's working" ) @events.init.add_listener def _(environment, **kw): print("Custom argum...
from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( "--my-argument", type=str, env_var="LOCUST_MY_ARGUMENT", default="", help="It's working" ) @events.init.add_...
from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( '--custom-argument', help="It's working" ) @events.init.add_listener def _(environment, **kw): print("Custom argument supplied: %...
<commit_before>from locust import HttpUser, TaskSet, task, between from locust import events @events.init_command_line_parser.add_listener def _(parser): parser.add_argument( '--custom-argument', help="It's working" ) @events.init.add_listener def _(environment, **kw): print("Custom argum...
2a37edaef3be06ab97bb1561b51d7977909e4abe
feed_sources/CTTransit.py
feed_sources/CTTransit.py
"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/uploads_GTFS/' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' class CTTransit(FeedSource): """Fetch PATH feed.""" def _...
"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/sites/default/files/gtfs/googlect_transit.zip' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' HARTFORD_URL = 'http://www.hartford...
Update CT Transit feed fetcher
Update CT Transit feed fetcher CT Transit has changed their URLs.
Python
mit
azavea/gtfs-feed-fetcher
"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/uploads_GTFS/' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' class CTTransit(FeedSource): """Fetch PATH feed.""" def _...
"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/sites/default/files/gtfs/googlect_transit.zip' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' HARTFORD_URL = 'http://www.hartford...
<commit_before>"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/uploads_GTFS/' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' class CTTransit(FeedSource): """Fetch PATH fee...
"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/sites/default/files/gtfs/googlect_transit.zip' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' HARTFORD_URL = 'http://www.hartford...
"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/uploads_GTFS/' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' class CTTransit(FeedSource): """Fetch PATH feed.""" def _...
<commit_before>"""Fetch CT Transit (Connecticut) feeds.""" import logging from FeedSource import FeedSource LOG = logging.getLogger(__name__) BASE_URL = 'http://www.cttransit.com/uploads_GTFS/' SHORELINE_EAST_URL = 'http://www.shorelineeast.com/google_transit.zip' class CTTransit(FeedSource): """Fetch PATH fee...
0148b417a9ce8531383f2fb4e5500d9b32794f2c
byceps/services/party/settings_service.py
byceps/services/party/settings_service.py
""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...typing import PartyID from .models.setting import Setting as DbSetting from .transfer.models import Pa...
""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...database import db from ...typing import PartyID from .models.setting import Setting as DbSetting from...
Add service functions to create a party setting and to obtain one's value
Add service functions to create a party setting and to obtain one's value
Python
bsd-3-clause
homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps
""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...typing import PartyID from .models.setting import Setting as DbSetting from .transfer.models import Pa...
""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...database import db from ...typing import PartyID from .models.setting import Setting as DbSetting from...
<commit_before>""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...typing import PartyID from .models.setting import Setting as DbSetting from .transfer.m...
""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...database import db from ...typing import PartyID from .models.setting import Setting as DbSetting from...
""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...typing import PartyID from .models.setting import Setting as DbSetting from .transfer.models import Pa...
<commit_before>""" byceps.services.party.settings_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from typing import Optional from ...typing import PartyID from .models.setting import Setting as DbSetting from .transfer.m...
9773ae4c85ec2ada555fe22ab4b54620c4d9bd8e
_lib/wordpress_post_processor.py
_lib/wordpress_post_processor.py
import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads(resp.content) ...
import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads(resp.content) ...
Update to new multiauthor taxonomy name
Update to new multiauthor taxonomy name
Python
cc0-1.0
jimmynotjim/cfgov-refresh,kurtw/cfgov-refresh,kurtw/cfgov-refresh,imuchnik/cfgov-refresh,kurtrwall/cfgov-refresh,kurtw/cfgov-refresh,imuchnik/cfgov-refresh,kurtrwall/cfgov-refresh,jimmynotjim/cfgov-refresh,jimmynotjim/cfgov-refresh,imuchnik/cfgov-refresh,kurtrwall/cfgov-refresh,imuchnik/cfgov-refresh
import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads(resp.content) ...
import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads(resp.content) ...
<commit_before>import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads...
import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads(resp.content) ...
import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads(resp.content) ...
<commit_before>import sys import json import requests from string import Template import dateutil.parser def posts_at_url(url): current_page = 1 max_page = sys.maxint while current_page <= max_page: resp = requests.get(url, params={'json':1,'page':current_page}) results = json.loads...
4bd9a94243ddc01d86ded2d592c339e464ec42fc
dedupe/convenience.py
dedupe/convenience.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe.core.randomPair...
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe.core.randomPair...
Update dataSample to index on the ints returned by random_pairs
Update dataSample to index on the ints returned by random_pairs
Python
mit
01-/dedupe,tfmorris/dedupe,01-/dedupe,nmiranda/dedupe,datamade/dedupe,neozhangthe1/dedupe,pombredanne/dedupe,tfmorris/dedupe,datamade/dedupe,dedupeio/dedupe,nmiranda/dedupe,pombredanne/dedupe,davidkunio/dedupe,dedupeio/dedupe-examples,davidkunio/dedupe,neozhangthe1/dedupe,dedupeio/dedupe
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe.core.randomPair...
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe.core.randomPair...
<commit_before>#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe....
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe.core.randomPair...
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe.core.randomPair...
<commit_before>#!/usr/bin/python # -*- coding: utf-8 -*- """ Convenience functions for in memory deduplication """ import collections import dedupe.core def dataSample(data, sample_size): '''Randomly sample pairs of records from a data dictionary''' data_list = data.values() random_pairs = dedupe....
5529900f5f9642f460a78ce58a2c74e021e35266
gaphor/misc/tests/test_gidlethread.py
gaphor/misc/tests/test_gidlethread.py
from gaphor.misc.gidlethread import GIdleThread def test_wait_with_timeout(): # GIVEN a running gidlethread def counter(max): for x in range(max): yield x t = GIdleThread(counter(20000)) t.start() assert t.is_alive() # WHEN waiting for 0.01 sec timeout wait_result = t....
import pytest from gaphor.misc.gidlethread import GIdleThread def counter(count): for x in range(count): yield x @pytest.fixture def gidle_counter(request): # Setup GIdle Thread with 0.01 sec timeout t = GIdleThread(counter(request.param)) t.start() assert t.is_alive() wait_result =...
Update test to use fixtures and parameterization
Update test to use fixtures and parameterization Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me>
Python
lgpl-2.1
amolenaar/gaphor,amolenaar/gaphor
from gaphor.misc.gidlethread import GIdleThread def test_wait_with_timeout(): # GIVEN a running gidlethread def counter(max): for x in range(max): yield x t = GIdleThread(counter(20000)) t.start() assert t.is_alive() # WHEN waiting for 0.01 sec timeout wait_result = t....
import pytest from gaphor.misc.gidlethread import GIdleThread def counter(count): for x in range(count): yield x @pytest.fixture def gidle_counter(request): # Setup GIdle Thread with 0.01 sec timeout t = GIdleThread(counter(request.param)) t.start() assert t.is_alive() wait_result =...
<commit_before>from gaphor.misc.gidlethread import GIdleThread def test_wait_with_timeout(): # GIVEN a running gidlethread def counter(max): for x in range(max): yield x t = GIdleThread(counter(20000)) t.start() assert t.is_alive() # WHEN waiting for 0.01 sec timeout w...
import pytest from gaphor.misc.gidlethread import GIdleThread def counter(count): for x in range(count): yield x @pytest.fixture def gidle_counter(request): # Setup GIdle Thread with 0.01 sec timeout t = GIdleThread(counter(request.param)) t.start() assert t.is_alive() wait_result =...
from gaphor.misc.gidlethread import GIdleThread def test_wait_with_timeout(): # GIVEN a running gidlethread def counter(max): for x in range(max): yield x t = GIdleThread(counter(20000)) t.start() assert t.is_alive() # WHEN waiting for 0.01 sec timeout wait_result = t....
<commit_before>from gaphor.misc.gidlethread import GIdleThread def test_wait_with_timeout(): # GIVEN a running gidlethread def counter(max): for x in range(max): yield x t = GIdleThread(counter(20000)) t.start() assert t.is_alive() # WHEN waiting for 0.01 sec timeout w...
2ce4e16979e095f1885f35cd767b0625dcd424c6
defender/test_urls.py
defender/test_urls.py
from django.conf.urls import patterns, include from django.contrib import admin urlpatterns = patterns( '', (r'^admin/', include(admin.site.urls)), )
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), ]
Use url method instead of patterns in test URLs setup.
Use url method instead of patterns in test URLs setup.
Python
apache-2.0
kencochrane/django-defender,kencochrane/django-defender
from django.conf.urls import patterns, include from django.contrib import admin urlpatterns = patterns( '', (r'^admin/', include(admin.site.urls)), ) Use url method instead of patterns in test URLs setup.
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), ]
<commit_before>from django.conf.urls import patterns, include from django.contrib import admin urlpatterns = patterns( '', (r'^admin/', include(admin.site.urls)), ) <commit_msg>Use url method instead of patterns in test URLs setup.<commit_after>
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', include(admin.site.urls)), ]
from django.conf.urls import patterns, include from django.contrib import admin urlpatterns = patterns( '', (r'^admin/', include(admin.site.urls)), ) Use url method instead of patterns in test URLs setup.from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admi...
<commit_before>from django.conf.urls import patterns, include from django.contrib import admin urlpatterns = patterns( '', (r'^admin/', include(admin.site.urls)), ) <commit_msg>Use url method instead of patterns in test URLs setup.<commit_after>from django.conf.urls import url, include from django.contrib impo...
8b2f95dd8399d5c354769c860e2b955c3fe212b0
semesterpage/forms.py
semesterpage/forms.py
from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ self_chosen_c...
from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ self_chosen_c...
Make it more clear that users should enter courses
Make it more clear that users should enter courses
Python
mit
afriestad/WikiLinks,afriestad/WikiLinks,afriestad/WikiLinks
from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ self_chosen_c...
from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ self_chosen_c...
<commit_before>from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ ...
from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ self_chosen_c...
from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ self_chosen_c...
<commit_before>from django import forms from django.utils.translation import ugettext_lazy as _ from dal import autocomplete from .models import Course, Options class OptionsForm(forms.ModelForm): """ A form solely used for autocompleting Courses in the admin, using django-autocomplete-light, """ ...
5cf0e2e9d68d2e0fca3780608f33d5d8cdaef8a9
admin/metrics/views.py
admin/metrics/views.py
from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS from admin.base.utils import OSFAdmin class MetricsView(OSFAdmin, TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_metrics.html' ...
from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS class MetricsView(TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_metrics.html' permission_required = 'admin.view_metrics' de...
Remove one more reference to old group permissions
Remove one more reference to old group permissions
Python
apache-2.0
erinspace/osf.io,adlius/osf.io,hmoco/osf.io,Johnetordoff/osf.io,cslzchen/osf.io,cslzchen/osf.io,saradbowman/osf.io,icereval/osf.io,icereval/osf.io,leb2dg/osf.io,icereval/osf.io,sloria/osf.io,caseyrollins/osf.io,sloria/osf.io,Nesiehr/osf.io,Johnetordoff/osf.io,cslzchen/osf.io,felliott/osf.io,monikagrabowska/osf.io,brian...
from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS from admin.base.utils import OSFAdmin class MetricsView(OSFAdmin, TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_metrics.html' ...
from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS class MetricsView(TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_metrics.html' permission_required = 'admin.view_metrics' de...
<commit_before>from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS from admin.base.utils import OSFAdmin class MetricsView(OSFAdmin, TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_met...
from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS class MetricsView(TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_metrics.html' permission_required = 'admin.view_metrics' de...
from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS from admin.base.utils import OSFAdmin class MetricsView(OSFAdmin, TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_metrics.html' ...
<commit_before>from django.views.generic import TemplateView from django.contrib.auth.mixins import PermissionRequiredMixin from admin.base.settings import KEEN_CREDENTIALS from admin.base.utils import OSFAdmin class MetricsView(OSFAdmin, TemplateView, PermissionRequiredMixin): template_name = 'metrics/osf_met...
d1917d20f3aa26380e1e617f50b380142905d745
engines/string_template_engine.py
engines/string_template_engine.py
#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False, ...
#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False, *...
Transform values in string.Template engine before substitution.
Transform values in string.Template engine before substitution.
Python
mit
blubberdiblub/eztemplate
#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False, ...
#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False, *...
<commit_before>#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, t...
#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False, *...
#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False, ...
<commit_before>#!/usr/bin/env python """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, t...
5455e9c0fa81eef47f57cab046a162e56a8b822c
platformio_api/__main__.py
platformio_api/__main__.py
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, sync_libs)...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit import requests from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, ...
Fix URLLIb3 Insecure Platform Warning
Fix URLLIb3 Insecure Platform Warning
Python
apache-2.0
platformio/platformio-api,orgkhnargh/platformio-api
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, sync_libs)...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit import requests from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, ...
<commit_before># Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, ...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit import requests from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, ...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, sync_libs)...
<commit_before># Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from sys import exit as sys_exit from click import echo, group, version_option from platformio_api import __version__ from platformio_api.crawler import (process_pending_libs, rotate_libs_dlstats, ...
b1bc34e9a83cb3af5dd11baa1236f2b65ab823f9
cspreports/models.py
cspreports/models.py
# STANDARD LIB import json #LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) modified = models.D...
#LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe # CSP REPORTS from cspreports import utils class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) mod...
Make `CSPReport.json_as_html` use the robust `utils.format_report` for formatting.
Make `CSPReport.json_as_html` use the robust `utils.format_report` for formatting.
Python
mit
adamalton/django-csp-reports
# STANDARD LIB import json #LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) modified = models.D...
#LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe # CSP REPORTS from cspreports import utils class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) mod...
<commit_before># STANDARD LIB import json #LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) modi...
#LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe # CSP REPORTS from cspreports import utils class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) mod...
# STANDARD LIB import json #LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) modified = models.D...
<commit_before># STANDARD LIB import json #LIBRARIES from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe class CSPReport(models.Model): class Meta(object): ordering = ('-created',) created = models.DateTimeField(auto_now_add=True) modi...
5183ad354943e81787010e3f108b1e819b9f703d
quran_tafseer/serializers.py
quran_tafseer/serializers.py
from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name'] class TafseerTextSerializer(serializers.ModelSerializer): tafseer_id = ...
from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name', 'language', 'author', 'book_name'] class TafseerTextSerializer(serializers....
Add meta data to Serializer
[FIX] Add meta data to Serializer
Python
mit
EmadMokhtar/tafseer_api
from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name'] class TafseerTextSerializer(serializers.ModelSerializer): tafseer_id = ...
from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name', 'language', 'author', 'book_name'] class TafseerTextSerializer(serializers....
<commit_before>from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name'] class TafseerTextSerializer(serializers.ModelSerializer): ...
from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name', 'language', 'author', 'book_name'] class TafseerTextSerializer(serializers....
from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name'] class TafseerTextSerializer(serializers.ModelSerializer): tafseer_id = ...
<commit_before>from django.urls import reverse from rest_framework import serializers from .models import Tafseer, TafseerText class TafseerSerializer(serializers.ModelSerializer): class Meta: model = Tafseer fields = ['id', 'name'] class TafseerTextSerializer(serializers.ModelSerializer): ...
a5d99bdff21c4819891d09d8b29800508929dcf4
hxl/filters/__init__.py
hxl/filters/__init__.py
""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass def run_script(...
""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass def run_script(...
Fix exception syntax for Python3.
Fix exception syntax for Python3.
Python
unlicense
HXLStandard/libhxl-python,HXLStandard/libhxl-python
""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass def run_script(...
""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass def run_script(...
<commit_before>""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass ...
""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass def run_script(...
""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass def run_script(...
<commit_before>""" Filter submodule for libhxl. David Megginson Started February 2015 License: Public Domain Documentation: https://github.com/HXLStandard/libhxl-python/wiki """ import sys from hxl import HXLException from hxl.model import HXLDataProvider, HXLColumn class HXLFilterException(HXLException): pass ...
0be6ab488b74d628229c54a42117f5e69497737b
armstrong/apps/articles/admin.py
armstrong/apps/articles/admin.py
from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from .models import Article class ArticleAdmin(VersionAdmin): fieldsets = ( (None, { 'fields': ('title', 'summary', 'body', 'primary_section', 'sect...
from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from armstrong.core.arm_sections.admin import SectionTreeAdminMixin from .models import Article class ArticleAdmin(SectionTreeAdminMixin, VersionAdmin): fieldsets = ( (None, { ...
Add support for displaying with tree sections properly
Add support for displaying with tree sections properly
Python
apache-2.0
armstrong/armstrong.apps.articles,armstrong/armstrong.apps.articles
from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from .models import Article class ArticleAdmin(VersionAdmin): fieldsets = ( (None, { 'fields': ('title', 'summary', 'body', 'primary_section', 'sect...
from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from armstrong.core.arm_sections.admin import SectionTreeAdminMixin from .models import Article class ArticleAdmin(SectionTreeAdminMixin, VersionAdmin): fieldsets = ( (None, { ...
<commit_before>from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from .models import Article class ArticleAdmin(VersionAdmin): fieldsets = ( (None, { 'fields': ('title', 'summary', 'body', 'primary_...
from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from armstrong.core.arm_sections.admin import SectionTreeAdminMixin from .models import Article class ArticleAdmin(SectionTreeAdminMixin, VersionAdmin): fieldsets = ( (None, { ...
from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from .models import Article class ArticleAdmin(VersionAdmin): fieldsets = ( (None, { 'fields': ('title', 'summary', 'body', 'primary_section', 'sect...
<commit_before>from django.contrib import admin from reversion.admin import VersionAdmin from armstrong.core.arm_content.admin import fieldsets from .models import Article class ArticleAdmin(VersionAdmin): fieldsets = ( (None, { 'fields': ('title', 'summary', 'body', 'primary_...
319bdba73d0ccecb229454272bb9bb12c226335a
cineapp/fields.py
cineapp/fields.py
# -*- coding: utf-8 -*- from wtforms import fields, widgets # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) html_string += ("""<script> ...
# -*- coding: utf-8 -*- from wtforms import fields, widgets from flask import Markup # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) htm...
Fix unwanted escape for CKEditor display
Fix unwanted escape for CKEditor display Fixes: #117
Python
mit
ptitoliv/cineapp,ptitoliv/cineapp,ptitoliv/cineapp
# -*- coding: utf-8 -*- from wtforms import fields, widgets # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) html_string += ("""<script> ...
# -*- coding: utf-8 -*- from wtforms import fields, widgets from flask import Markup # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) htm...
<commit_before># -*- coding: utf-8 -*- from wtforms import fields, widgets # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) html_string +...
# -*- coding: utf-8 -*- from wtforms import fields, widgets from flask import Markup # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) htm...
# -*- coding: utf-8 -*- from wtforms import fields, widgets # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) html_string += ("""<script> ...
<commit_before># -*- coding: utf-8 -*- from wtforms import fields, widgets # Define wtforms widget and field class CKTextAreaWidget(widgets.TextArea): def __call__(self, field, **kwargs): kwargs.setdefault('class_', 'ckeditor') html_string = super(CKTextAreaWidget, self).__call__(field, **kwargs) html_string +...
7d5fa6a8eda793ff4cc2183992949a095d65c1b0
app/enums/registration_fields.py
app/enums/registration_fields.py
class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_times'
class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_times' jenkin...
Add jenkins_url to valid registration fields
Add jenkins_url to valid registration fields
Python
mit
futuresimple/triggear
class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_times' Add jenkin...
class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_times' jenkin...
<commit_before>class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_ti...
class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_times' jenkin...
class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_times' Add jenkin...
<commit_before>class RegistrationFields: repository = 'repository' job = 'job' labels = 'labels' requested_params = 'requested_params' branch_restrictions = 'branch_restrictions' change_restrictions = 'change_restrictions' file_restrictions = 'file_restrictions' missed_times = 'missed_ti...
a6e7f053c151fc343f0dd86010b159e21c0948b5
accountsplus/forms.py
accountsplus/forms.py
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
Fix how we are reading user name
Fix how we are reading user name
Python
mit
foundertherapy/django-users-plus,foundertherapy/django-users-plus
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
<commit_before>from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm...
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
<commit_before>from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm...
7c4442099eb3d00f0c14381d1091e45daf8e9179
all/newterm/_posix.py
all/newterm/_posix.py
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string of an executabl...
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string of an executabl...
Fix a bug launching a posix executable
Fix a bug launching a posix executable
Python
mit
codexns/newterm
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string of an executabl...
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string of an executabl...
<commit_before># coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string ...
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string of an executabl...
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string of an executabl...
<commit_before># coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import sys import os import subprocess def launch_executable(executable, args, cwd, env=None): """ Launches an executable with optional arguments :param executable: A unicode string ...
5e67e16d17d06a0f4d307a035ca6b62f094995c6
network/api/serializers.py
network/api/serializers.py
from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'observation', 'gro...
from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'observation', 'gro...
Adjust API to TLE code changes
Adjust API to TLE code changes
Python
agpl-3.0
cshields/satnogs-network,cshields/satnogs-network,cshields/satnogs-network,cshields/satnogs-network
from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'observation', 'gro...
from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'observation', 'gro...
<commit_before>from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'obs...
from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'observation', 'gro...
from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'observation', 'gro...
<commit_before>from rest_framework import serializers from network.base.models import Data class DataSerializer(serializers.ModelSerializer): class Meta: model = Data fields = ('id', 'start', 'end', 'observation', 'ground_station', 'payload') read_only_fields = ['id', 'start', 'end', 'obs...
84e2e931ea83c25154fbcf749c797faae19ba8af
src/test_heap.py
src/test_heap.py
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
Test left and right method, almost identical to get test
Test left and right method, almost identical to get test
Python
mit
regenalgrant/datastructures
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
<commit_before># _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low....
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
<commit_before># _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low....
72dcc89d96935ba4336ebafed5252628ecf92ed4
stables/views.py
stables/views.py
u""" 🐴 ✔ ✘ ▏ """ from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models class BadgeView(RedirectView): permanent = False def get_redirect_url(self, *args, **kwargs): st...
u""" 🐴 ✔ ✘ ▏ """ from django.db.models import Q from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models def badge_escape(val): return quote(val.replace('-', '--')) class BadgeView(R...
Update badge view with new model schema.
Update badge view with new model schema.
Python
mit
django-stables/django-stables,django-stables/django-stables
u""" 🐴 ✔ ✘ ▏ """ from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models class BadgeView(RedirectView): permanent = False def get_redirect_url(self, *args, **kwargs): st...
u""" 🐴 ✔ ✘ ▏ """ from django.db.models import Q from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models def badge_escape(val): return quote(val.replace('-', '--')) class BadgeView(R...
<commit_before>u""" 🐴 ✔ ✘ ▏ """ from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models class BadgeView(RedirectView): permanent = False def get_redirect_url(self, *args, **kwar...
u""" 🐴 ✔ ✘ ▏ """ from django.db.models import Q from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models def badge_escape(val): return quote(val.replace('-', '--')) class BadgeView(R...
u""" 🐴 ✔ ✘ ▏ """ from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models class BadgeView(RedirectView): permanent = False def get_redirect_url(self, *args, **kwargs): st...
<commit_before>u""" 🐴 ✔ ✘ ▏ """ from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.views.generic.base import RedirectView from urllib.parse import quote from . import models class BadgeView(RedirectView): permanent = False def get_redirect_url(self, *args, **kwar...
df95ed08135b74eb29e2e20b11a2f3cbdc76e967
bitHopper/Website/Worker_Page.py
bitHopper/Website/Worker_Page.py
from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers pools_workers ...
from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers import logging @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers ...
Fix a bug, forgot to import logging
Fix a bug, forgot to import logging
Python
mit
c00w/bitHopper,c00w/bitHopper
from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers pools_workers ...
from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers import logging @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers ...
<commit_before>from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers ...
from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers import logging @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers ...
from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers pools_workers ...
<commit_before>from bitHopper.Website import app, flask import btcnet_info import bitHopper.Configuration.Workers @app.route("/worker", methods=['POST', 'GET']) def worker(): #Check if this is a form submission handle_worker_post(flask.request.form) #Get a list of currently configured workers ...
376b327379caeb0845007c3a0e7c33e1f15869f0
flatisfy/constants.py
flatisfy/constants.py
# coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trustable if two ba...
# coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trustable if two ba...
Drop support for entreparticuliers Weboob module
Drop support for entreparticuliers Weboob module
Python
mit
Phyks/Flatisfy,Phyks/Flatisfy,Phyks/Flatisfy,Phyks/Flatisfy
# coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trustable if two ba...
# coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trustable if two ba...
<commit_before># coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trus...
# coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trustable if two ba...
# coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trustable if two ba...
<commit_before># coding: utf-8 """ Constants used across the app. """ from __future__ import absolute_import, print_function, unicode_literals # Some backends give more infos than others. Here is the precedence we want to # use. First is most important one, last is the one that will always be # considered as less trus...
27c3b70967e36a6f419f089ba22e8394d39981e1
api/views/share.py
api/views/share.py
from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models import Source ...
from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models import Source ...
Revert "Don't use a streaming response for icons"
Revert "Don't use a streaming response for icons" This reverts commit 6d7b15550b9a62af4220cf73ff77d7c967cec6d8.
Python
apache-2.0
aaxelb/SHARE,CenterForOpenScience/SHARE,aaxelb/SHARE,CenterForOpenScience/SHARE,aaxelb/SHARE,CenterForOpenScience/SHARE
from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models import Source ...
from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models import Source ...
<commit_before>from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models...
from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models import Source ...
from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models import Source ...
<commit_before>from rest_framework import views from rest_framework.response import Response from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.decorators.http import require_GET from django.views.generic.base import RedirectView from share.models...
fe36e76dd7fcdc6249ccf36bfadcdbb909078536
apps/concept/management/commands/update_concept_totals.py
apps/concept/management/commands/update_concept_totals.py
from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept in Concept.obj...
from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept in Concept.obj...
Add management functions for migration
Add management functions for migration
Python
bsd-3-clause
mfitzp/smrtr,mfitzp/smrtr
from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept in Concept.obj...
from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept in Concept.obj...
<commit_before>from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept...
from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept in Concept.obj...
from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept in Concept.obj...
<commit_before>from optparse import make_option import sys from django.core.management.base import BaseCommand from concept.models import Concept class Command(BaseCommand): args = "" help = "Update concept total_question counts (post db import)" def handle(self, *args, **options): for concept...
4b65c5ac47ecbaec8e1578074d9650c342b294e5
apps/offline/views.py
apps/offline/views.py
# -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.objects.all() ...
# -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.objects.all() ...
Remove option to filter Offline on the actual files
Remove option to filter Offline on the actual files
Python
mit
dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4
# -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.objects.all() ...
# -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.objects.all() ...
<commit_before># -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.ob...
# -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.objects.all() ...
# -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.objects.all() ...
<commit_before># -*- encoding: utf-8 -*- from django.shortcuts import render # API v1 from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from apps.offline.models import Issue from apps.offline.serializers import OfflineIssueSerializer def main(request): issues = Issue.ob...
5ac83deb88c8ae34a361c9a5b60dcb16fea77b35
custom/inddex/reports/master_data_file.py
custom/inddex/reports/master_data_file.py
from django.utils.functional import cached_property from memoized import memoized from custom.inddex.food import FoodData from custom.inddex.ucr_data import FoodCaseData from custom.inddex.utils import BaseGapsSummaryReport class MasterDataFileSummaryReport(BaseGapsSummaryReport): title = 'Output 1 - Master Dat...
from django.utils.functional import cached_property from corehq.apps.reports.datatables import DataTablesColumn, DataTablesHeader from corehq.apps.reports.generic import GenericTabularReport from corehq.apps.reports.standard import CustomProjectReport, DatespanMixin from custom.inddex.filters import ( CaseOwnersFi...
Make it a normal report
Make it a normal report No need to override a bunch of stuff, assemble filters and configs through inheritance, use a custom template, etcetera
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
from django.utils.functional import cached_property from memoized import memoized from custom.inddex.food import FoodData from custom.inddex.ucr_data import FoodCaseData from custom.inddex.utils import BaseGapsSummaryReport class MasterDataFileSummaryReport(BaseGapsSummaryReport): title = 'Output 1 - Master Dat...
from django.utils.functional import cached_property from corehq.apps.reports.datatables import DataTablesColumn, DataTablesHeader from corehq.apps.reports.generic import GenericTabularReport from corehq.apps.reports.standard import CustomProjectReport, DatespanMixin from custom.inddex.filters import ( CaseOwnersFi...
<commit_before>from django.utils.functional import cached_property from memoized import memoized from custom.inddex.food import FoodData from custom.inddex.ucr_data import FoodCaseData from custom.inddex.utils import BaseGapsSummaryReport class MasterDataFileSummaryReport(BaseGapsSummaryReport): title = 'Output...
from django.utils.functional import cached_property from corehq.apps.reports.datatables import DataTablesColumn, DataTablesHeader from corehq.apps.reports.generic import GenericTabularReport from corehq.apps.reports.standard import CustomProjectReport, DatespanMixin from custom.inddex.filters import ( CaseOwnersFi...
from django.utils.functional import cached_property from memoized import memoized from custom.inddex.food import FoodData from custom.inddex.ucr_data import FoodCaseData from custom.inddex.utils import BaseGapsSummaryReport class MasterDataFileSummaryReport(BaseGapsSummaryReport): title = 'Output 1 - Master Dat...
<commit_before>from django.utils.functional import cached_property from memoized import memoized from custom.inddex.food import FoodData from custom.inddex.ucr_data import FoodCaseData from custom.inddex.utils import BaseGapsSummaryReport class MasterDataFileSummaryReport(BaseGapsSummaryReport): title = 'Output...
40a63fd8ca5dd574e729b9f531664ce384aa404c
app/schedule/tasks.py
app/schedule/tasks.py
from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): def load_sms_clas...
from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): def load_sms_clas...
Increase retry count and add countdown to retry method
Increase retry count and add countdown to retry method
Python
agpl-3.0
agendaodonto/server,agendaodonto/server
from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): def load_sms_clas...
from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): def load_sms_clas...
<commit_before>from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): de...
from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): def load_sms_clas...
from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): def load_sms_clas...
<commit_before>from datetime import datetime from importlib import import_module import pytz from django.conf import settings from app.schedule.celery import celery_app from app.schedule.libs.sms import DeviceNotFoundError @celery_app.task(bind=True) def send_message(self, to, message, sg_user, sg_password): de...
d9b5a78b36729bdb3ce11c8626d00b57555fb356
core/views.py
core/views.py
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
Allow only the user-data fetching
Refactor: Allow only the user-data fetching
Python
bsd-2-clause
pinry/pinry,pinry/pinry,lapo-luchini/pinry,lapo-luchini/pinry,lapo-luchini/pinry,lapo-luchini/pinry,pinry/pinry,pinry/pinry
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
<commit_before>from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin fro...
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
<commit_before>from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin fro...
c86d5c928cdefd09aca102b2a5c37f662e1426a6
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/tests/factories.py
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/users/tests/factories.py
from feder.users import models import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PosteGnerationMethodCall('set_password', 'password') ...
import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PostGenerationMethodCall('set_password', 'password') class Meta: model = 'us...
Fix typo & import in UserFactory
Fix typo & import in UserFactory
Python
bsd-3-clause
andresgz/cookiecutter-django,gappsexperts/cookiecutter-django,asyncee/cookiecutter-django,gappsexperts/cookiecutter-django,calculuscowboy/cookiecutter-django,aleprovencio/cookiecutter-django,ddiazpinto/cookiecutter-django,asyncee/cookiecutter-django,drxos/cookiecutter-django-dokku,thisjustin/cookiecutter-django,aleprov...
from feder.users import models import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PosteGnerationMethodCall('set_password', 'password') ...
import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PostGenerationMethodCall('set_password', 'password') class Meta: model = 'us...
<commit_before>from feder.users import models import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PosteGnerationMethodCall('set_password', 'p...
import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PostGenerationMethodCall('set_password', 'password') class Meta: model = 'us...
from feder.users import models import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PosteGnerationMethodCall('set_password', 'password') ...
<commit_before>from feder.users import models import factory class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: 'user-{0}'.format(n)) email = factory.Sequence(lambda n: 'user-{0}@example.com'.format(n)) password = factory.PosteGnerationMethodCall('set_password', 'p...
98f638e5a42765a284a4fd006190507efee5363a
runtests.py
runtests.py
#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.utils import get_runner from django.conf import settings d...
#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.runner import DiscoverRunner from django.conf import settin...
Use the new test runner
Use the new test runner
Python
bsd-2-clause
knagra/farnsworth,knagra/farnsworth,knagra/farnsworth,knagra/farnsworth
#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.utils import get_runner from django.conf import settings d...
#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.runner import DiscoverRunner from django.conf import settin...
<commit_before>#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.utils import get_runner from django.conf imp...
#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.runner import DiscoverRunner from django.conf import settin...
#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.utils import get_runner from django.conf import settings d...
<commit_before>#!/usr/bin/env python import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings") this_dir = os.path.abspath(os.path.dirname(__file__)) if this_dir not in sys.path: sys.path.insert(0, this_dir) import django from django.test.utils import get_runner from django.conf imp...
9d1a21e046bac48719e6f396a55489bffe631cf7
runtests.py
runtests.py
#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', INSTALLED_A...
#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', INSTALLED_A...
Add in django.contrib.auth to the default test runner
Add in django.contrib.auth to the default test runner
Python
bsd-3-clause
Dunedan/django-lockdown,Dunedan/django-lockdown
#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', INSTALLED_A...
#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', INSTALLED_A...
<commit_before>#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', ...
#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', INSTALLED_A...
#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', INSTALLED_A...
<commit_before>#!/usr/bin/env python import os, sys from django.conf import settings def runtests(*test_args): if not test_args: test_args = ['lockdown'] parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) settings.configure( DATABASE_ENGINE='sqlite3', ...
b0e614ea7ac59b6b869155b9ac8ea370cb56f83d
cardinal/decorators.py
cardinal/decorators.py
import functools def command(triggers): def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line): def wrap(f): @functools.wraps(f) def inner(*args, ...
import functools def command(triggers): if isinstance(triggers, basestring): triggers = [triggers] def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line)...
Allow for single trigger in @command decorator
Allow for single trigger in @command decorator
Python
mit
BiohZn/Cardinal,JohnMaguire/Cardinal
import functools def command(triggers): def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line): def wrap(f): @functools.wraps(f) def inner(*args, ...
import functools def command(triggers): if isinstance(triggers, basestring): triggers = [triggers] def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line)...
<commit_before>import functools def command(triggers): def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line): def wrap(f): @functools.wraps(f) de...
import functools def command(triggers): if isinstance(triggers, basestring): triggers = [triggers] def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line)...
import functools def command(triggers): def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line): def wrap(f): @functools.wraps(f) def inner(*args, ...
<commit_before>import functools def command(triggers): def wrap(f): @functools.wraps(f) def inner(*args, **kwargs): return f(*args, **kwargs) inner.commands = triggers return inner return wrap def help(line): def wrap(f): @functools.wraps(f) de...
67c90087bad42d54b44044c3d1afae02538c456f
tests/logging.py
tests/logging.py
import os def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) with open(groomer.logger.log_path, 'r')...
import os from datetime import datetime def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) test_log....
Add time information to test logs
Add time information to test logs
Python
bsd-3-clause
CIRCL/PyCIRCLean,Rafiot/PyCIRCLean,Rafiot/PyCIRCLean,CIRCL/PyCIRCLean
import os def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) with open(groomer.logger.log_path, 'r')...
import os from datetime import datetime def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) test_log....
<commit_before>import os def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) with open(groomer.logger...
import os from datetime import datetime def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) test_log....
import os def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) with open(groomer.logger.log_path, 'r')...
<commit_before>import os def save_logs(groomer, test_description): divider = ('=' * 10 + '{}' + '=' * 10 + '\n') test_log_path = 'tests/test_logs/{}.log'.format(test_description) with open(test_log_path, 'w+') as test_log: test_log.write(divider.format('TEST LOG')) with open(groomer.logger...
2aac8cafc0675d38cabcc137d063de0119b3ff3d
game.py
game.py
import pygame, sys """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): def update(self): "Handle input." for event in pygame.event.get(): if event.type == pygame.QUIT: return False elif event.type == pygame.KEYDO...
import pygame, sys from board import Board """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): pygame.init() self.screen = pygame.display.set_mode((600,600)) self.background = pygame.Surface(self.screen.get_size()) self.bac...
Create screen and draw board to screen.
Create screen and draw board to screen.
Python
mit
isaacarvestad/four-in-a-row
import pygame, sys """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): def update(self): "Handle input." for event in pygame.event.get(): if event.type == pygame.QUIT: return False elif event.type == pygame.KEYDO...
import pygame, sys from board import Board """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): pygame.init() self.screen = pygame.display.set_mode((600,600)) self.background = pygame.Surface(self.screen.get_size()) self.bac...
<commit_before>import pygame, sys """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): def update(self): "Handle input." for event in pygame.event.get(): if event.type == pygame.QUIT: return False elif event.type ...
import pygame, sys from board import Board """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): pygame.init() self.screen = pygame.display.set_mode((600,600)) self.background = pygame.Surface(self.screen.get_size()) self.bac...
import pygame, sys """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): def update(self): "Handle input." for event in pygame.event.get(): if event.type == pygame.QUIT: return False elif event.type == pygame.KEYDO...
<commit_before>import pygame, sys """ A simple four in a row game. Author: Isaac Arvestad """ class Game: def __init__(self): def update(self): "Handle input." for event in pygame.event.get(): if event.type == pygame.QUIT: return False elif event.type ...
00208e088ea62eb3c405e22f54a96e6e46869844
pubsub/backend/rabbitmq.py
pubsub/backend/rabbitmq.py
from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandler): def __...
from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandler): def __...
Add the possiblity to pass a conf file to Publisher and Subscriber class
Add the possiblity to pass a conf file to Publisher and Subscriber class Closes #20
Python
mit
WeLikeAlpacas/Qpaca,WeLikeAlpacas/python-pubsub,csarcom/python-pubsub
from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandler): def __...
from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandler): def __...
<commit_before>from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandl...
from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandler): def __...
from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandler): def __...
<commit_before>from gevent import monkey monkey.patch_all() import uuid from kombu.mixins import ConsumerMixin from pubsub.backend.base import BaseSubscriber, BasePublisher from pubsub.helpers import get_config from pubsub.backend.handlers import RabbitMQHandler class RabbitMQPublisher(BasePublisher, RabbitMQHandl...
147257537f1233759dd89a291d6e40b95450ed5e
src/wrapt/__init__.py
src/wrapt/__init__.py
__version_info__ = ('1', '13', '3') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, function_wra...
__version_info__ = ('1', '14', '0dev1') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, function...
Increment version to 1.14.0dev1 for new changes.
Increment version to 1.14.0dev1 for new changes.
Python
bsd-2-clause
GrahamDumpleton/wrapt,GrahamDumpleton/wrapt
__version_info__ = ('1', '13', '3') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, function_wra...
__version_info__ = ('1', '14', '0dev1') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, function...
<commit_before>__version_info__ = ('1', '13', '3') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, ...
__version_info__ = ('1', '14', '0dev1') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, function...
__version_info__ = ('1', '13', '3') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, function_wra...
<commit_before>__version_info__ = ('1', '13', '3') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy, resolve_path, apply_patch, wrap_object, wrap_object_attribute, ...
1acb0e5db755b0d4cc389ed32f740d7e65218a5e
celestial/views.py
celestial/views.py
from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Planet def get_...
from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Planet def get_...
Order planets by distance form their star.
Order planets by distance form their star.
Python
mit
Floppy/kepler-explorer,Floppy/kepler-explorer,Floppy/kepler-explorer
from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Planet def get_...
from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Planet def get_...
<commit_before>from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Plan...
from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Planet def get_...
from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Planet def get_...
<commit_before>from django.views.generic import ListView, DetailView from .models import Planet, SolarSystem class SystemMixin(object): model = SolarSystem def get_queryset(self): return super(SystemMixin, self).get_queryset().filter(radius__isnull=False) class PlanetMixin(object): model = Plan...
ade031dc91d75de8ce290fa4b6652c2f46a3171e
streak-podium/read.py
streak-podium/read.py
def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(strip(x) for x in f) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github org members, not a place...
def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github ...
Fix bug ... .strip() is a method not a function
Fix bug ... .strip() is a method not a function
Python
mit
supermitch/streak-podium,jollyra/hubot-commit-streak,jollyra/hubot-commit-streak,jollyra/hubot-streak-podium,jollyra/hubot-streak-podium,supermitch/streak-podium
def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(strip(x) for x in f) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github org members, not a place...
def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github ...
<commit_before>def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(strip(x) for x in f) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github org membe...
def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github ...
def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(strip(x) for x in f) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github org members, not a place...
<commit_before>def input_file(filename): """ Return username list, assuming on username per line. """ with open(filename, 'r') as f: return list(strip(x) for x in f) def org_members(org_name): """ Return all members from a Github organization. """ # TODO: Return github org membe...
8858cf1f0b87026ce913a19c4e5df415409cfd79
streak-podium/read.py
streak-podium/read.py
import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ ...
import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ ...
Handle None for org or file with default org name
Handle None for org or file with default org name
Python
mit
supermitch/streak-podium,jollyra/hubot-commit-streak,jollyra/hubot-streak-podium,jollyra/hubot-commit-streak,supermitch/streak-podium,jollyra/hubot-streak-podium
import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ ...
import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ ...
<commit_before>import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_na...
import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ ...
import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_name): """ ...
<commit_before>import logging import requests def input_file(filename): """ Read a file and return list of usernames. Assumes one username per line and ignores blank lines. """ with open(filename, 'r') as f: return list(line.strip() for line in f if line.strip()) def org_members(org_na...
b9f8012084a0f7faae4b1a820b25ceb93b29e04c
install_steps/create_bosh_cert.py
install_steps/create_bosh_cert.py
from subprocess import call from os import makedirs from shutil import copy def do_step(context): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh") with open('bosh_cert.pem', 'r') as tmpfile: ssh_ce...
from subprocess import call from os import makedirs from os import path from shutil import copy def do_step(context): if not path.isdir("bosh/manifests"): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh...
Check to see if manifests path exists
Check to see if manifests path exists
Python
apache-2.0
cf-platform-eng/bosh-azure-template,cf-platform-eng/bosh-azure-template
from subprocess import call from os import makedirs from shutil import copy def do_step(context): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh") with open('bosh_cert.pem', 'r') as tmpfile: ssh_ce...
from subprocess import call from os import makedirs from os import path from shutil import copy def do_step(context): if not path.isdir("bosh/manifests"): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh...
<commit_before>from subprocess import call from os import makedirs from shutil import copy def do_step(context): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh") with open('bosh_cert.pem', 'r') as tmpfile:...
from subprocess import call from os import makedirs from os import path from shutil import copy def do_step(context): if not path.isdir("bosh/manifests"): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh...
from subprocess import call from os import makedirs from shutil import copy def do_step(context): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh") with open('bosh_cert.pem', 'r') as tmpfile: ssh_ce...
<commit_before>from subprocess import call from os import makedirs from shutil import copy def do_step(context): makedirs("bosh/manifests") # Generate the private key and certificate call("sh create_cert.sh", shell=True) copy("bosh.key", "./bosh/bosh") with open('bosh_cert.pem', 'r') as tmpfile:...
9109e3803b139c349d17b9b413b0ff9d5b965b55
hassio/addons/util.py
hassio/addons/util.py
"""Util addons functions.""" import hashlib import pathlib import re import unicodedata RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') def slugify(text): """Slugify a given text.""" text = unicodedata.normalize('NFKD', text) text = text.lower() text = text.replace(" ", "_") text = RE_SLUGIFY.sub("", tex...
"""Util addons functions.""" import hashlib import pathlib import re RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') RE_SHA1 = re.compile(r"[a-f0-9]{40}") def get_hash_from_repository(repo): """Generate a hash from repository.""" key = repo.lower().encode() return hashlib.sha1(key).hexdigest()[:8] def extract_...
Use in every case a hash for addon name
Use in every case a hash for addon name
Python
bsd-3-clause
pvizeli/hassio,pvizeli/hassio
"""Util addons functions.""" import hashlib import pathlib import re import unicodedata RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') def slugify(text): """Slugify a given text.""" text = unicodedata.normalize('NFKD', text) text = text.lower() text = text.replace(" ", "_") text = RE_SLUGIFY.sub("", tex...
"""Util addons functions.""" import hashlib import pathlib import re RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') RE_SHA1 = re.compile(r"[a-f0-9]{40}") def get_hash_from_repository(repo): """Generate a hash from repository.""" key = repo.lower().encode() return hashlib.sha1(key).hexdigest()[:8] def extract_...
<commit_before>"""Util addons functions.""" import hashlib import pathlib import re import unicodedata RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') def slugify(text): """Slugify a given text.""" text = unicodedata.normalize('NFKD', text) text = text.lower() text = text.replace(" ", "_") text = RE_SLUG...
"""Util addons functions.""" import hashlib import pathlib import re RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') RE_SHA1 = re.compile(r"[a-f0-9]{40}") def get_hash_from_repository(repo): """Generate a hash from repository.""" key = repo.lower().encode() return hashlib.sha1(key).hexdigest()[:8] def extract_...
"""Util addons functions.""" import hashlib import pathlib import re import unicodedata RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') def slugify(text): """Slugify a given text.""" text = unicodedata.normalize('NFKD', text) text = text.lower() text = text.replace(" ", "_") text = RE_SLUGIFY.sub("", tex...
<commit_before>"""Util addons functions.""" import hashlib import pathlib import re import unicodedata RE_SLUGIFY = re.compile(r'[^a-z0-9_]+') def slugify(text): """Slugify a given text.""" text = unicodedata.normalize('NFKD', text) text = text.lower() text = text.replace(" ", "_") text = RE_SLUG...
dcd3e4f5ded298b79b40d16a9f0274752ed96ad1
linter.py
linter.py
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an interface to cpp...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an interface to cpp...
Add support to C files
Add support to C files
Python
mit
SublimeLinter/SublimeLinter-cppcheck,ftoulemon/SublimeLinter-cppcheck
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an interface to cpp...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an interface to cpp...
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an i...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an interface to cpp...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an interface to cpp...
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by NotSqrt # Copyright (c) 2013 NotSqrt # # License: MIT # """This module exports the Cppcheck plugin class.""" from SublimeLinter.lint import Linter, util class Cppcheck(Linter): """Provides an i...
f3668e36e93d990213c4c8ab1db6dea26328b4eb
AFQ/utils/volume.py
AFQ/utils/volume.py
import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations on the ROI to ...
import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations on the ROI to ...
Set the Gaussian threshold to 0.
Set the Gaussian threshold to 0.
Python
bsd-2-clause
yeatmanlab/pyAFQ,arokem/pyAFQ,arokem/pyAFQ,yeatmanlab/pyAFQ
import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations on the ROI to ...
import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations on the ROI to ...
<commit_before>import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations...
import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations on the ROI to ...
import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations on the ROI to ...
<commit_before>import scipy.ndimage as ndim from skimage.filters import gaussian from skimage.morphology import convex_hull_image def patch_up_roi(roi, sigma=0.5, truncate=2): """ After being non-linearly transformed, ROIs tend to have holes in them. We perform a couple of computational geometry operations...
301a70469dba6fdfe8d72d3d70fa75e4146756c6
integration-test/843-normalize-underscore.py
integration-test/843-normalize-underscore.py
# http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aerialway', 'aerialw...
# http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aerialway', 'aerialw...
Simplify test to check for no aerialway property
Simplify test to check for no aerialway property
Python
mit
mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource
# http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aerialway', 'aerialw...
# http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aerialway', 'aerialw...
<commit_before># http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aeria...
# http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aerialway', 'aerialw...
# http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aerialway', 'aerialw...
<commit_before># http://www.openstreetmap.org/way/219071307 assert_has_feature( 16, 10478, 25338, 'roads', { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' }) # http://www.openstreetmap.org/way/258020271 assert_has_feature( 16, 11077, 25458, 'roads', { 'id': 258020271, 'kind': 'aeria...
a2fef3f2090f0df5425cf21a70d24c77224eae17
tests/cyclus_tools.py
tests/cyclus_tools.py
#! /usr/bin/env python from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator cmd = [cyclus, ...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
Add a check if the target output directories exist
Add a check if the target output directories exist
Python
bsd-3-clause
rwcarlsen/cycamore,Baaaaam/cyCLASS,jlittell/cycamore,jlittell/cycamore,gonuke/cycamore,jlittell/cycamore,Baaaaam/cyCLASS,rwcarlsen/cycamore,Baaaaam/cyBaM,cyclus/cycaless,jlittell/cycamore,Baaaaam/cyBaM,rwcarlsen/cycamore,Baaaaam/cycamore,gonuke/cycamore,Baaaaam/cyBaM,gonuke/cycamore,cyclus/cycaless,rwcarlsen/cycamore,B...
#! /usr/bin/env python from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator cmd = [cyclus, ...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
<commit_before>#! /usr/bin/env python from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator ...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
#! /usr/bin/env python from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator cmd = [cyclus, ...
<commit_before>#! /usr/bin/env python from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator ...
7bf477f2ce728ed4af4163a0a96f9ec1b3b76d8d
tests/cyclus_tools.py
tests/cyclus_tools.py
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
Correct a bug in creating directories as needed for output.
Correct a bug in creating directories as needed for output.
Python
bsd-3-clause
Baaaaam/cyBaM,Baaaaam/cyBaM,Baaaaam/cyBaM,rwcarlsen/cycamore,rwcarlsen/cycamore,gonuke/cycamore,Baaaaam/cycamore,Baaaaam/cyBaM,jlittell/cycamore,rwcarlsen/cycamore,jlittell/cycamore,cyclus/cycaless,gonuke/cycamore,Baaaaam/cyCLASS,jlittell/cycamore,gonuke/cycamore,jlittell/cycamore,Baaaaam/cycamore,gonuke/cycamore,cyclu...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
<commit_before>#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generat...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generator # ma...
<commit_before>#! /usr/bin/env python import os from tools import check_cmd def run_cyclus(cyclus, cwd, sim_files): """Runs cyclus with various inputs and creates output databases """ for sim_input, sim_output in sim_files: holdsrtn = [1] # needed because nose does not send() to test generat...
ad31b6f0226ecd642289f54ec649964aeb9b5799
tests/sanity_tests.py
tests/sanity_tests.py
import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'rb') iso...
import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'rb') iso...
Clean up more in tests
Clean up more in tests
Python
mit
flxf/isomedia
import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'rb') iso...
import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'rb') iso...
<commit_before>import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'r...
import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'rb') iso...
import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'rb') iso...
<commit_before>import filecmp import os import tempfile import unittest import isomedia TESTDATA = os.path.join(os.path.dirname(__file__), 'testdata') class TestSanity(unittest.TestCase): def test_sanity(self): mp4filename = os.path.join(TESTDATA, 'loop_circle.mp4') mp4file = open(mp4filename, 'r...