repo_name
stringlengths
7
65
path
stringlengths
5
185
copies
stringlengths
1
4
size
stringlengths
4
6
content
stringlengths
977
990k
license
stringclasses
14 values
hash
stringlengths
32
32
line_mean
float64
7.18
99.4
line_max
int64
31
999
alpha_frac
float64
0.25
0.95
ratio
float64
1.5
7.84
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
foxmask/django-th
th_evernote/evernote_mgr.py
1
6411
# coding: utf-8 from django.core.cache import caches from django.utils.translation import ugettext as _ from django_th.models import update_result import evernote.edam.type.ttypes as Types from evernote.edam.error.ttypes import EDAMSystemException, EDAMUserException from evernote.edam.error.ttypes import EDAMErrorCod...
bsd-3-clause
4f15b94f401e6f0809c7fb7607578666
31.876923
109
0.545313
4.279706
false
false
false
false
foxmask/django-th
th_wallabag/tests.py
1
4472
# coding: utf-8 from django.test import RequestFactory from django_th.tests.test_main import MainTest import requests from th_wallabag.models import Wallabag from th_wallabag.forms import WallabagProviderForm, WallabagConsumerForm from th_wallabag.my_wallabag import ServiceWallabag from unittest.mock import patch ...
bsd-3-clause
5a540343233dd7c437212c80d351e820
31.405797
78
0.553891
3.851852
false
true
false
false
foxmask/django-th
th_slack/migrations/0001_initial.py
1
1279
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('django_th', '__first__'), ] operations = [ migrations.CreateModel( name='Slack', fields=[ ...
bsd-3-clause
2b284c274aac172321e546806f1c782a
35.542857
114
0.549648
4.235099
false
false
false
false
foxmask/django-th
django_th/management/commands/send_digest.py
1
1222
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals import arrow from django.conf import settings from django.core.management.base import BaseCommand from django.core.mail import send_mail from django.template.loader import render_to_string from django_th.models import Digest class Command...
bsd-3-clause
728e77f9bc7081baa59cb1b709137304
30.333333
96
0.639935
3.867089
false
false
false
false
foxmask/django-th
th_trello/migrations/0001_initial.py
1
1116
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('django_th', '__first__'), ] operations = [ migrations.CreateModel( name='Trello', fields=[ ...
bsd-3-clause
5abf616ea84006336dfb64aa502ea8e5
35
114
0.544803
4.275862
false
false
false
false
foxmask/django-th
th_evernote/migrations/0001_initial.py
1
1174
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('django_th', '__first__'), ] operations = [ migrations.CreateModel( name='Evernote', fields=[ ...
bsd-3-clause
73d6d66c555eb35b3d003b81cc640a21
32.542857
114
0.531516
4.430189
false
false
false
false
foxmask/django-th
django_th/models/__init__.py
1
8161
# coding: utf-8 import arrow from django.conf import settings from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.utils.timezone import now from dja...
bsd-3-clause
08999420de43edc1cf4f3bf6441f61e9
32.584362
108
0.599069
4.018218
false
false
false
false
foxmask/django-th
django_th/settings.py
1
8573
# Django settings for django_th project. import os from django.urls import reverse_lazy import environ ROOT_DIR = environ.Path(__file__) - 1 APPS_DIR = ROOT_DIR.path('django_th') env = environ.Env() env_file = str(ROOT_DIR.path('.env')) # print('Loading : {}'.format(env_file)) env.read_env(env_file) # print('The .en...
bsd-3-clause
74900ba88982fbca05e1737b4385535b
31.473485
82
0.628485
3.635708
false
false
false
false
pld/bamboo
bamboo/controllers/abstract_controller.py
2
5059
import cherrypy from bamboo.lib.exceptions import ArgumentError from bamboo.lib.jsontools import JSONError from bamboo.lib.mongo import dump_mongo_json from bamboo.models.dataset import Dataset class AbstractController(object): """Abstract controller class for web facing controllers. Attributes: - ERRO...
bsd-3-clause
8e45d8ffe95867bc095820dd72cc2627
36.474074
79
0.633524
4.422203
false
false
false
false
pld/bamboo
bamboo/controllers/datasets.py
2
26617
import urllib2 from external import bearcart from pandas import concat import vincent from bamboo.controllers.abstract_controller import AbstractController from bamboo.core.aggregations import AGGREGATIONS from bamboo.core.frame import df_to_csv_string, NonUniqueJoinError from bamboo.core.merge import merge_dataset_i...
bsd-3-clause
c1dab840938615d99d0c026e68db0cf0
38.845808
79
0.599354
4.364874
false
false
false
false
pld/bamboo
bamboo/core/frame.py
2
3202
from cStringIO import StringIO from pandas import Series from bamboo.lib.mongo import MONGO_ID_ENCODED # reserved bamboo keys BAMBOO_RESERVED_KEY_PREFIX = '^^' DATASET_ID = BAMBOO_RESERVED_KEY_PREFIX + 'dataset_id' INDEX = BAMBOO_RESERVED_KEY_PREFIX + 'index' PARENT_DATASET_ID = BAMBOO_RESERVED_KEY_PREFIX + 'parent...
bsd-3-clause
909ac3847195f08c7d5905fa02b9341f
27.846847
79
0.664272
3.304438
false
false
false
false
pld/bamboo
bamboo/lib/schema_builder.py
2
8261
from datetime import datetime import numpy as np import re from bamboo.core.frame import RESERVED_KEYS from bamboo.core.parser import Parser from bamboo.lib.exceptions import ArgumentError from bamboo.lib.mongo import reserve_encoded CARDINALITY = 'cardinality' OLAP_TYPE = 'olap_type' SIMPLETYPE = 'simpletype' LABEL...
bsd-3-clause
cd42cd7b915e9d0ae5d691056439dcd3
29.260073
78
0.616632
3.702824
false
false
false
false
pld/bamboo
bamboo/tests/core/test_calculator.py
2
1944
from bamboo.core.parser import Parser from bamboo.core.calculator import calculate_columns from bamboo.lib.datetools import now, recognize_dates from bamboo.models.calculation import Calculation from bamboo.models.dataset import Dataset from bamboo.tests.test_base import TestBase class TestCalculator(TestBase): ...
bsd-3-clause
15818cdacb93acbdd609ee8e6ed050b5
35
77
0.62963
3.731286
false
true
false
false
bmun/huxley
huxley/api/tests/test_delegate.py
1
35347
# Copyright (c) 2011-2022 Berkeley Model United Nations. All rights reserved. # Use of this source code is governed by a BSD License (see LICENSE). from django.core.exceptions import ValidationError from huxley.accounts.models import User from huxley.api import tests from huxley.api.tests import auto from huxley.util...
bsd-3-clause
956a0dca9a677009a5d78663d2a03288
42.15873
80
0.5951
4.067549
false
true
false
false
bmun/huxley
huxley/core/admin/assignment.py
1
5982
# Copyright (c) 2011-2022 Berkeley Model United Nations. All rights reserved. # Use of this source code is governed by a BSD License (see LICENSE). import csv from django.conf import settings from django.conf.urls import url from django.urls import reverse from django.contrib import admin, messages from django.http i...
bsd-3-clause
499007a9877dc9376ca415a15866d9a3
35.699387
137
0.559846
4.64441
false
false
false
false
bmun/huxley
huxley/api/serializers/delegate.py
1
3648
# Copyright (c) 2011-2022 Berkeley Model United Nations. All rights reserved. # Use of this source code is governed by a BSD License (see LICENSE). from datetime import datetime from django.contrib.auth.base_user import BaseUserManager from django.core.mail import send_mail from rest_framework import serializers fro...
bsd-3-clause
13b984eac4dfb05ed9f829d327cbabb7
37
92
0.538925
4.659004
false
false
false
false
bmun/huxley
huxley/core/migrations/0044_auto_20200821_1042.py
1
1748
# Generated by Django 2.2.6 on 2020-08-21 10:42 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('core', '0043_auto_20200820_1401'), ] operations = [ migrations.RenameField( model_name='conference'...
bsd-3-clause
518f56b72187d2f6d9c83cafc9a6e5c2
30.781818
70
0.570366
4.380952
false
false
false
false
bmun/huxley
huxley/api/tests/test_rubric.py
1
12651
# Copyright (c) 2011-2022 Berkeley Model United Nations. All rights reserved. # Use of this source code is governed by a BSD License (see LICENSE). from django.core.exceptions import ValidationError from huxley.accounts.models import User from huxley.api import tests from huxley.api.tests import auto from huxley.util...
bsd-3-clause
25aff9b294a172422145a137fa51c091
44.836957
78
0.61758
3.458447
false
true
false
false
bmun/huxley
huxley/invoice_automation/src/model/registration.py
1
1155
import datetime from huxley.invoice_automation.src.model.conference import Conference from huxley.invoice_automation.src.model.payment_method import PaymentMethod from huxley.invoice_automation.src.model.school import School class Registration: """ Represents a school's registration for a particular conferen...
bsd-3-clause
eb395ac345f532e3d5f10c559a37fb46
32
76
0.668398
4.657258
false
false
false
false
python-social-auth/social-core
social_core/backends/professionali.py
1
1864
""" Professionaly OAuth 2.0 support. This contribution adds support for professionaly.ru OAuth 2.0. Username is retrieved from the identity returned by server. """ from time import time from ..utils import parse_qs from .oauth import BaseOAuth2 class ProfessionaliOAuth2(BaseOAuth2): name = "professionali" I...
bsd-3-clause
c67ba4bbf701061b522024d59f27df47
32.890909
78
0.581545
3.626459
false
false
false
false
python-social-auth/social-core
social_core/backends/box.py
1
2150
""" Box.net OAuth2 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/box.html """ from .oauth import BaseOAuth2 class BoxOAuth2(BaseOAuth2): """Box.net OAuth authentication backend""" name = "box" AUTHORIZATION_URL = "https://www.box.com/api/oauth2/authorize" ACCESS_T...
bsd-3-clause
095404df3cff13de2b3f9c3fea4acf93
36.068966
83
0.599535
3.631757
false
false
false
false
python-social-auth/social-core
social_core/tests/backends/test_slack.py
1
1841
import json from .oauth import OAuth2Test class SlackOAuth2Test(OAuth2Test): backend_path = "social_core.backends.slack.SlackOAuth2" user_data_url = "https://slack.com/api/users.identity" access_token_body = json.dumps({"access_token": "foobar", "token_type": "bearer"}) user_data_body = json.dumps( ...
bsd-3-clause
c074580741cb0891b0ca0698b1ab0957
29.180328
87
0.546985
3.533589
false
true
false
false
python-social-auth/social-core
social_core/backends/mineid.py
1
1222
from .oauth import BaseOAuth2 class MineIDOAuth2(BaseOAuth2): """MineID OAuth2 authentication backend""" name = "mineid" _AUTHORIZATION_URL = "%(scheme)s://%(host)s/oauth/authorize" _ACCESS_TOKEN_URL = "%(scheme)s://%(host)s/oauth/access_token" ACCESS_TOKEN_METHOD = "POST" SCOPE_SEPARATOR = "...
bsd-3-clause
5260061b1b310ae0c094ccef8eedce68
32.027027
82
0.61784
3.385042
false
false
false
false
python-social-auth/social-core
social_core/backends/wunderlist.py
1
1030
from .oauth import BaseOAuth2 class WunderlistOAuth2(BaseOAuth2): """Wunderlist OAuth2 authentication backend""" name = "wunderlist" AUTHORIZATION_URL = "https://www.wunderlist.com/oauth/authorize" ACCESS_TOKEN_URL = "https://www.wunderlist.com/oauth/access_token" ACCESS_TOKEN_METHOD = "POST" ...
bsd-3-clause
363f0b4ecc5732fbba4c85887a874969
37.148148
86
0.625243
3.564014
false
false
false
false
python-social-auth/social-core
social_core/backends/live.py
1
1563
""" Live OAuth2 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/live.html """ from .oauth import BaseOAuth2 class LiveOAuth2(BaseOAuth2): name = "live" AUTHORIZATION_URL = "https://login.live.com/oauth20_authorize.srf" ACCESS_TOKEN_URL = "https://login.live.com/oauth20_t...
bsd-3-clause
a3cf620c1628734ce3214a1a5ecac9b5
33.733333
86
0.571977
3.576659
false
false
false
false
python-social-auth/social-core
social_core/backends/azuread_tenant.py
1
4520
import base64 from cryptography.hazmat.backends import default_backend from cryptography.x509 import load_der_x509_certificate from jwt import DecodeError, ExpiredSignatureError from jwt import decode as jwt_decode from jwt import get_unverified_header from ..exceptions import AuthTokenError from .azuread import Azur...
bsd-3-clause
60f68a6e5b078c7568dbc5633c246ea0
34.590551
108
0.669027
3.824027
false
false
false
false
python-social-auth/social-core
social_core/backends/uber.py
1
1351
""" Uber OAuth2 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/uber.html """ from .oauth import BaseOAuth2 class UberOAuth2(BaseOAuth2): name = "uber" ID_KEY = "uuid" SCOPE_SEPARATOR = " " AUTHORIZATION_URL = "https://login.uber.com/oauth/authorize" ACCESS_TOKEN...
bsd-3-clause
55c057dd55504462a17cbeea7c5349ad
30.418605
77
0.551443
3.794944
false
false
false
false
python-social-auth/social-core
social_core/backends/udata.py
1
1126
""" Udata related backends. Docs at: https://python-social-auth.readthedocs.io/en/latest/backends/udata.html """ from .oauth import BaseOAuth2 class UdataBaseOAuth2(BaseOAuth2): """Udata base OAuth authentication backend.""" SCOPE_SEPARATOR = "," REDIRECT_STATE = False DEFAULT_SCOPE = ["default"...
bsd-3-clause
abaaaaa7423b9307f4c27309d3cfe2fc
29.432432
87
0.642096
3.391566
false
false
false
false
python-social-auth/social-core
social_core/backends/yahoo.py
1
5357
""" Yahoo OpenId, OAuth1 and OAuth2 backends, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/yahoo.html """ from requests.auth import HTTPBasicAuth from ..utils import handle_http_errors from .oauth import BaseOAuth1, BaseOAuth2 class YahooOAuth(BaseOAuth1): """Yahoo OAuth authenticati...
bsd-3-clause
f223236cf6ef7c5be5c0b7e58d9b3437
35.691781
88
0.591376
3.699586
false
false
false
false
python-social-auth/social-core
social_core/store.py
1
2571
import pickle import time from openid.store.interface import OpenIDStore as BaseOpenIDStore from openid.store.nonce import SKEW class OpenIdStore(BaseOpenIDStore): """Storage class""" def __init__(self, strategy): """Init method""" super().__init__() self.strategy = strategy ...
bsd-3-clause
2c4aeeae6673cb476293cd0166910af1
31.1375
81
0.607157
4.221675
false
false
false
false
python-social-auth/social-core
social_core/backends/twilio.py
1
1384
""" Twilio auth backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/twilio.html """ from re import sub from urllib.parse import urlencode from .base import BaseAuth class TwilioAuth(BaseAuth): name = "twilio" ID_KEY = "AccountSid" def get_user_details(self, response): ...
bsd-3-clause
6e4d17db1ae3578ae6ba3979ba2ca92e
32.756098
76
0.613439
3.876751
false
false
false
false
python-social-auth/social-core
social_core/backends/trello.py
1
1504
""" Trello OAuth1 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/trello.html """ from .oauth import BaseOAuth1 class TrelloOAuth(BaseOAuth1): """Trello OAuth authentication backend""" name = "trello" ID_KEY = "username" AUTHORIZATION_URL = "https://trello.com/1/OA...
bsd-3-clause
87942a17ae00bd6efd60bcf99ce861e3
30.333333
87
0.59109
3.677262
false
false
false
false
python-social-auth/social-core
social_core/backends/chatwork.py
1
2096
""" Chatwork OAuth2 backend """ import base64 from .oauth import BaseOAuth2 class ChatworkOAuth2(BaseOAuth2): """Chatwork OAuth authentication backend""" name = "chatwork" API_URL = "https://api.chatwork.com/v2" AUTHORIZATION_URL = "https://www.chatwork.com/packages/oauth2/login.php" ACCESS_TOKE...
bsd-3-clause
11062b778c681b593f1cfb870cefbc20
32.806452
83
0.582061
3.638889
false
false
false
false
lincolnloop/django-debug-logging
docs/conf.py
1
7264
# -*- coding: utf-8 -*- # # django-debug-logging documentation build configuration file, created by # sphinx-quickstart on Wed Nov 30 09:06:54 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
bsd-3-clause
c836ee58dc10ca6a94a486272fdea1f5
31.868778
80
0.710765
3.740474
false
true
false
false
nephila/djangocms-installer
djangocms_installer/share/starting_page.py
1
1792
import json def create_pages(): from cms.api import add_plugin, create_page, publish_page from cms.models import Placeholder from django.conf import settings from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ placeholder = {} with open("st...
bsd-3-clause
f28946ddc8c58dc9abaae7a747ab2e5d
34.137255
100
0.664063
4
false
false
false
false
strands-project/mongodb_store
mongodb_store/scripts/mongodb_play.py
1
13451
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import rospy import mongodb_store.util as mg_util import sys import time import pymongo from multiprocessing import Process import calendar import datetime import threading import multiprocessing from rosgraph_msgs.msg import Clock imp...
bsd-3-clause
1383bb071c58534abe6613d42dc43d43
32.543641
247
0.626199
3.894325
false
false
false
false
jazzband/django-constance
tests/storage.py
2
4334
from datetime import datetime, date, time, timedelta from decimal import Decimal from constance import settings from constance.base import Config class StorageTestsMixin: def setUp(self): self.config = Config() super().setUp() def test_store(self): self.assertEqual(self.config.INT_V...
bsd-3-clause
ab13b2a2df6df60fc4bff1280bdced12
44.621053
101
0.661052
3.567078
false
true
false
false
matthiask/django-content-editor
tests/testapp/admin.py
1
1121
from django import forms from django.contrib import admin from django.db import models from content_editor.admin import ( ContentEditor, ContentEditorInline, allow_regions, deny_regions, ) from .models import Article, Download, RichText, Thing class RichTextarea(forms.Textarea): def __init__(sel...
bsd-3-clause
17c5e3868c23908da555d20f47b9932b
23.911111
88
0.662801
3.749164
false
false
false
false
ubernostrum/django-registration
tests/urls/view_tests.py
1
1433
""" URLs used in the unit tests for django-registration. You should not attempt to use these URLs in any sort of real or development environment. """ from django.urls import path from django.views.generic.base import TemplateView from django_registration.backends.activation.views import RegistrationView from ..vie...
bsd-3-clause
5d2b0ea3c185c92f8e6b6d30a54719f6
27.098039
87
0.650384
4.395706
false
true
false
false
python-babel/babel
babel/support.py
1
23066
""" babel.support ~~~~~~~~~~~~~ Several classes and functions that help with integrating and using Babel in applications. .. note: the code in this module is not used by Babel itself :copyright: (c) 2013-2022 by the Babel Team. :license: BSD, see LICENSE for more details. """ import gett...
bsd-3-clause
af98ddc76936cd5bb138130a5adfafa2
36.024077
96
0.597676
4.402749
false
false
false
false
python-babel/babel
babel/localtime/__init__.py
1
1697
""" babel.localtime ~~~~~~~~~~~~~~~ Babel specific fork of tzlocal to determine the local timezone of the system. :copyright: (c) 2013-2022 by the Babel Team. :license: BSD, see LICENSE for more details. """ import sys import pytz import time from datetime import timedelta from datetime impor...
bsd-3-clause
039d56458e675711bc2a58d1d605590f
21.626667
66
0.638774
3.68913
false
false
false
false
python-babel/babel
babel/messages/catalog.py
1
32665
""" babel.messages.catalog ~~~~~~~~~~~~~~~~~~~~~~ Data structures for message catalogs. :copyright: (c) 2013-2022 by the Babel Team. :license: BSD, see LICENSE for more details. """ import re from collections import OrderedDict from datetime import datetime, time as time_ from difflib import get...
bsd-3-clause
6d06ff2d58de64c67928bea36838db02
36.850521
110
0.560753
4.288997
false
false
false
false
python-babel/babel
tests/messages/test_js_extract.py
1
4582
from io import BytesIO import pytest from babel.messages import extract def test_simple_extract(): buf = BytesIO(b"""\ msg1 = _('simple') msg2 = gettext('simple') msg3 = ngettext('s', 'p', 42) """) messages = \ list(extract.extract('javascript', buf, extract.DEFAULT_KEYWORDS, ...
bsd-3-clause
17bea868c7b181ed0d63f4f8a66bbe7c
29.118421
106
0.5699
3.228491
false
true
false
false
mozilla/betafarm
vendor-local/lib/python/requests/structures.py
46
1728
# -*- coding: utf-8 -*- """ requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. """ class CaseInsensitiveDict(dict): """Case-insensitive Dictionary For example, ``headers['content-encoding']`` will return the value of a ``'Content-Encoding'`` response header.""" @property...
bsd-3-clause
04967624a3af6d4540ebb4046a650b2c
25.181818
78
0.570602
3.918367
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/selectable/registry.py
4
2020
from django.utils.encoding import force_unicode from selectable.base import LookupBase, ModelLookup from selectable.exceptions import (LookupAlreadyRegistered, LookupNotRegistered, LookupInvalid) class LookupRegistry(object): def __init__(self): self._registry = {} ...
bsd-3-clause
954e3e3debe605c1822506380ce539c0
28.275362
99
0.633168
4.665127
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/south/management/commands/startmigration.py
37
2068
""" Now-obsolete startmigration command. """ from optparse import make_option from django.core.management.base import BaseCommand from django.core.management.color import no_style class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--model', action='append', dest='added_mod...
bsd-3-clause
e0da205c8bb343f89cb33f0438584001
65.741935
179
0.688588
4.372093
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/south/db/mysql.py
15
6766
from django.db import connection from django.conf import settings from south.db import generic class DatabaseOperations(generic.DatabaseOperations): """ MySQL implementation of database operations. MySQL is an 'interesting' database; it has no DDL transaction support, among other things. This ca...
bsd-3-clause
24462745b701f62c1420aa539dbf6b06
39.035503
103
0.566213
4.095642
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/example/core/admin.py
1
1499
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django import forms import selectable.forms as selectable from example.core.models import Fruit, Farm from example.core.lookups import FruitLookup, OwnerLookup class FarmAdminForm(forms....
bsd-3-clause
9f73d58445cf381552396b5b1ba595c2
27.283019
91
0.694463
3.728856
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/chardet/hebrewprober.py
216
13240
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Shy Shalom # Portions created by the Initial Developer are Copyright (C) 2005 # the Initial Developer. All Rights Reserved. #...
bsd-3-clause
20c26c56ea8b4973ed81226e6be22a4f
48.219331
99
0.690785
4.008477
false
false
false
false
mozilla/betafarm
apps/users/views.py
1
5968
import json from django.contrib import auth, messages from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator from django.http import HttpResponse, Http404 from django.shortcuts import get_object_or_404, redirect from django.utils.decorators import method_decorator from dj...
bsd-3-clause
e9e27de06623dd1dbe85c666d1db8b5d
32.155556
78
0.620979
3.994645
false
false
false
false
mozilla/betafarm
apps/users/migrations/0004_auto__add_field_profile_staff__add_field_profile_featured.py
2
5424
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Profile.staff' db.add_column('users_profile', 'staff', self.gf('django.db.models.fields.Bo...
bsd-3-clause
83076a1e3e5955d3a836dd8b29eefed4
62.811765
182
0.557338
3.748445
false
false
false
false
mozilla/betafarm
apps/feeds/migrations/0006_auto__chg_field_entry_url.py
2
8249
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Entry.url' db.alter_column('feeds_entry', 'url', self.gf('django.db.models.fields.URLFie...
bsd-3-clause
ab0b4b3dbec6ea0977b7bf7bee9c0098
70.730435
182
0.549279
3.664594
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/requests/defaults.py
6
1190
# -*- coding: utf-8 -*- """ requests.defaults ~~~~~~~~~~~~~~~~~ This module provides the Requests configuration defaults. Configurations: :base_headers: Default HTTP headers. :verbose: Stream to write request logging to. :max_redirects: Maximum number of redirects allowed within a request.s :keep_alive: Reuse HTTP ...
bsd-3-clause
654a5336c88b95b695018bd8b176694c
26.045455
99
0.69916
3.639144
false
false
true
false
mozilla/betafarm
vendor-local/lib/python/south/exceptions.py
21
4520
from traceback import format_exception class SouthError(RuntimeError): pass class BrokenMigration(SouthError): def __init__(self, migration, exc_info): self.migration = migration self.exc_info = exc_info if self.exc_info: self.traceback = ''.join(format_exception(*self.exc...
bsd-3-clause
bf106ce3cbaa10871b1bb25e4bcbd386
31.992701
144
0.62146
4.105359
false
false
false
false
mozilla/betafarm
apps/innovate/utils.py
1
3771
import bleach import feedparser import hashlib import math import os import logging import time from PIL import Image from django.conf import settings from django.core.cache import cache from django.core.files.storage import FileSystemStorage from projects.utils import FeedEntryParser logger = logging.getLogger(__...
bsd-3-clause
1560ae54ba5302a58849a51391b962f3
31.230769
76
0.609918
3.679024
false
false
false
false
mozilla/betafarm
apps/projects/migrations/0012_auto__del_field_link_subscribe__del_field_link_subscription.py
1
8959
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Link.subscribe' db.delete_column('projects_link', 'subscribe') # Deleting field...
bsd-3-clause
2cc55fa723975a57afe28dfc7eec9fd6
71.25
195
0.556089
3.706661
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/south/tests/fakeapp/models.py
199
1626
# -*- coding: UTF-8 -*- from django.db import models from django.contrib.auth.models import User as UserAlias def default_func(): return "yays" # An empty case. class Other1(models.Model): pass # Nastiness. class HorribleModel(models.Model): "A model to test the edge cases of model parsing" ZERO, O...
bsd-3-clause
b05bc4021b48db1c90e01091cffbffbc
28.290909
73
0.640994
3.484848
false
false
false
false
mozilla/betafarm
apps/projects/migrations/0008_auto__chg_field_link_project.py
2
10018
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding M2M table for field followers on 'Project' db.create_table('projects_project_followers', ( ('...
bsd-3-clause
51e92528a606d60ef6766349f7aed461
71.071942
182
0.549511
3.708997
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/south/management/commands/convert_to_south.py
16
3675
""" Quick conversion command module. """ from optparse import make_option import sys from django.core.management.base import BaseCommand from django.core.management.color import no_style from django.conf import settings from django.db import models from django.core import management from django.core.exceptions import...
bsd-3-clause
aa418f85255d4a5f65df5f2feaa5adf7
38.516129
143
0.622313
4.470803
false
false
false
false
mozilla/betafarm
vendor-local/lib/python/south/tests/db.py
15
16948
import unittest from south.db import db from django.db import connection, models # Create a list of error classes from the various database libraries errors = [] try: from psycopg2 import ProgrammingError errors.append(ProgrammingError) except ImportError: pass errors = tuple(errors) class TestOperations...
bsd-3-clause
c0f4734aea4d246c219514bff2042066
37.782609
177
0.575938
4.063294
false
true
false
false
mozilla/betafarm
apps/commons/helpers.py
9
1799
import cgi import datetime import urllib import urlparse from django.conf import settings from django.template import defaultfilters from django.utils.html import strip_tags from jingo import register import jinja2 from .urlresolvers import reverse # Yanking filters from Django. register.filter(strip_tags) registe...
bsd-3-clause
c5374643b382a93df7b4fbc8062e20bb
25.455882
76
0.687604
3.779412
false
false
false
false
pymanopt/pymanopt
pymanopt/manifolds/psd.py
1
10629
import numpy as np import scipy.linalg from pymanopt.manifolds.manifold import Manifold, RetrAsExpMixin class _PSDFixedRank(Manifold): def __init__(self, n, k, name, dimension): self._n = n self._k = k super().__init__(name, dimension) @property def typical_dist(self): re...
bsd-3-clause
b16b66f4289fdf79c693c33724578954
37.51087
80
0.622918
3.512558
false
false
false
false
pymanopt/pymanopt
examples/low_rank_matrix_approximation.py
1
3122
import autograd.numpy as np import tensorflow as tf import torch import pymanopt from examples._tools import ExampleRunner from pymanopt.manifolds import FixedRankEmbedded from pymanopt.optimizers import ConjugateGradient SUPPORTED_BACKENDS = ("autograd", "numpy", "pytorch", "tensorflow") def create_cost_and_deriv...
bsd-3-clause
6513c708444ede5e6eb605008331177d
26.875
71
0.571429
3.551763
false
false
false
false
pymanopt/pymanopt
pymanopt/optimizers/particle_swarm.py
1
7533
import time import numpy as np from pymanopt import tools from pymanopt.optimizers.optimizer import Optimizer, OptimizerResult from pymanopt.tools import printer class ParticleSwarm(Optimizer): """Particle swarm optimization (PSO) method. Perform optimization using the derivative-free particle swarm optimi...
bsd-3-clause
6c3b8b2638e2993a22dacfa6ee664795
34.871429
79
0.540024
4.641405
false
false
false
false
pymanopt/pymanopt
pymanopt/tools/__init__.py
1
1919
import functools import typing class ndarraySequenceMixin: # The following attributes ensure that operations on sequences of # np.ndarrays with scalar numpy data types such as np.float64 don't attempt # to vectorize the scalar variable. Refer to # # https://docs.scipy.org/doc/numpy/reference/a...
bsd-3-clause
b21a95fd4836a6bd1fd834a4895ddf1c
29.460317
79
0.657634
4.254989
false
false
false
false
ros/catkin
test/network_tests/test_unstable.py
1
5805
#!/usr/bin/env python3 import os import shutil import tempfile from test.utils import MAKE_CMD from test.utils import MOCK_DIR from test.utils import PYTHON_INSTALL_PATH from test.utils import assert_exists from test.utils import create_catkin_workspace from test.utils import succeed from .network_test_utils import A...
bsd-3-clause
f3ab870df6d79458b58496b7460d51d0
40.170213
86
0.519035
4.152361
false
true
false
false
ros/catkin
test/unit_tests/test_find_in_workspace.py
1
7589
import os import shutil import tempfile import unittest from mock import Mock try: import catkin from catkin.find_in_workspaces import find_in_workspaces, _get_valid_search_dirs from catkin.workspace import CATKIN_MARKER_FILE except ImportError as impe: raise ImportError( 'Please adjust your p...
bsd-3-clause
b1daf615d087d2a16c01cb2347bde542
52.06993
198
0.549611
3.731072
false
true
false
false
ros/catkin
python/catkin/tidy_xml.py
1
3402
# Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
bsd-3-clause
384afa36d729dc1bea7725e20c869a46
36.384615
85
0.683422
3.677838
false
false
false
false
uwescience/myria-web
appengine/networkx/generators/tests/test_small.py
77
6393
#!/usr/bin/env python from nose.tools import * from networkx import * from networkx.algorithms.isomorphism.isomorph import graph_could_be_isomorphic is_isomorphic=graph_could_be_isomorphic """Generators - Small ===================== Some small graphs """ null=null_graph() class TestGeneratorsSmall(): def test_...
bsd-3-clause
74acefea925182b93ae6c790c8e54a8a
34.320442
78
0.560144
3.053009
false
false
false
false
uwescience/myria-web
appengine/networkx/algorithms/mst.py
35
7390
# -*- coding: utf-8 -*- """ Computes minimum spanning tree of a weighted graph. """ # Copyright (C) 2009-2010 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # Loïc Séguin-C. <loicseguin@gmail.com> # All rights reserved. # BSD license. __al...
bsd-3-clause
ec2d18748cbdb50bcf5ad839743811a7
28.086614
78
0.596102
3.557053
false
false
false
false
uwescience/myria-web
appengine/networkx/utils/union_find.py
44
2491
""" Union-find data structure. """ # Copyright (C) 2004-2011 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import networkx as nx class UnionFind: """Union-find data structure. Each unionFind inst...
bsd-3-clause
63d20746cf05e94d5279f65fa5b47b64
32.213333
80
0.617423
3.935229
false
false
false
false
gmr/rabbitpy
tests/exchange_tests.py
1
3293
""" Test the rabbitpy.exchange classes """ import mock from pamqp import specification from rabbitpy import exchange from . import helpers class TxTests(helpers.TestCase): @mock.patch('rabbitpy.exchange.Exchange._rpc') def test_bind_sends_exchange_declare(self, rpc): rpc.return_value = specificati...
bsd-3-clause
845ef0bbe67b52f2b8542ceacbdf2629
34.408602
68
0.648041
3.776376
false
true
false
false
sshwsfc/xadmin
xadmin/plugins/inline.py
10
17661
import copy import inspect from django import forms from django.forms.formsets import all_valid, DELETION_FIELD_NAME from django.forms.models import inlineformset_factory, BaseInlineFormSet, modelform_defines_fields from django.contrib.contenttypes.forms import BaseGenericInlineFormSet, generic_inlineformset_factory fr...
bsd-3-clause
337f4669bb11a30124111d5f3d21c7e0
35.116564
123
0.600249
4.099582
false
false
false
false
sshwsfc/xadmin
xadmin/plugins/export.py
10
9555
import io import datetime import sys from future.utils import iteritems from django.http import HttpResponse from django.template import loader from django.utils import six from django.utils.encoding import force_text, smart_text from django.utils.html import escape from django.utils.translation import ugettext as _ f...
bsd-3-clause
53a443d632f5c061bf521b628bd58730
37.373494
146
0.55866
3.793172
false
false
false
false
sshwsfc/xadmin
xadmin/plugins/bookmark.py
10
8578
from django.contrib.contenttypes.models import ContentType from django.core.urlresolvers import reverse from django.db import transaction from django.db.models import Q from django.forms import ModelChoiceField from django.http import QueryDict from django.template import loader from django.utils.decorators import met...
bsd-3-clause
b9acadea070ba7c5b3f33d2c8b93980a
35.347458
131
0.568781
3.872686
false
false
false
false
sshwsfc/xadmin
setup.py
3
1920
#!/usr/bin/env python from io import open from setuptools import setup # version_tuple = __import__('xadmin').VERSION # version = ".".join([str(v) for v in version_tuple]) setup( name='xadmin', version='0.6.1', description='Drop-in replacement of Django admin comes with lots of goodies, fully extensible wi...
bsd-3-clause
1e12c98d3e8600eac0bf3ad5d9e9d904
36.647059
158
0.602604
3.735409
false
false
false
false
sshwsfc/xadmin
xadmin/plugins/aggregation.py
48
2408
from django.db.models import FieldDoesNotExist, Avg, Max, Min, Count, Sum from django.utils.translation import ugettext as _ from xadmin.sites import site from xadmin.views import BaseAdminPlugin, ListAdminView from xadmin.views.list import ResultRow, ResultItem from xadmin.util import display_for_field AGGREGATE_ME...
bsd-3-clause
e5572433128467b35a0f4f4b1d005fe2
33.898551
130
0.590947
3.774295
false
false
false
false
sshwsfc/xadmin
xadmin/sites.py
9
15155
import sys from functools import update_wrapper from future.utils import iteritems from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.models.base import ModelBase from django.utils import six from django.views.decorators.cache import never_cache from django.template....
bsd-3-clause
cbb3f073eee54c5ff7aa19131cf0b217
40.749311
133
0.586539
4.326292
false
false
false
false
django-haystack/pysolr
get-solr-download-url.py
3
1918
#!/usr/bin/env python # encoding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals import sys from itertools import chain import requests # Try to import urllib from the Python 3 reorganized stdlib first: try: from urllib.parse import urljoin except ImportError: try: ...
bsd-3-clause
73ef88ecdd3768e84a7f63c46fcb8113
28.060606
82
0.690824
3.468354
false
true
false
false
etianen/django-reversion
setup.py
1
1690
from setuptools import setup, find_packages from reversion import __version__ # Load in babel support, if available. try: from babel.messages import frontend as babel cmdclass = { "compile_catalog": babel.compile_catalog, "extract_messages": babel.extract_messages, "init_catalog": babe...
bsd-3-clause
6edd0ad5432cc0aefdf2b6138c740396
30.296296
110
0.624852
4.043062
false
false
false
false
dbcli/pgcli
pgcli/pgtoolbar.py
1
2472
from pkg_resources import packaging import prompt_toolkit from prompt_toolkit.key_binding.vi_state import InputMode from prompt_toolkit.application import get_app parse_version = packaging.version.parse vi_modes = { InputMode.INSERT: "I", InputMode.NAVIGATION: "N", InputMode.REPLACE: "R", InputMode.I...
bsd-3-clause
3bc65e2091c0830bcf6b2a3561bf0f0d
31.96
88
0.576861
3.779817
false
false
false
false
dbcli/pgcli
pgcli/packages/parseutils/__init__.py
1
1728
import sqlparse BASE_KEYWORDS = [ "drop", "shutdown", "delete", "truncate", "alter", "unconditional_update", ] ALL_KEYWORDS = BASE_KEYWORDS + ["update"] def query_starts_with(formatted_sql, prefixes): """Check if the query starts with any item from *prefixes*.""" prefixes = [prefix.l...
bsd-3-clause
330d4f1a5e242272578306b794efcf6c
28.793103
89
0.617477
4.056338
false
false
false
false
dbcli/pgcli
tests/metadata.py
1
8896
from functools import partial from itertools import product from pgcli.packages.parseutils.meta import FunctionMetadata, ForeignKey from prompt_toolkit.completion import Completion from prompt_toolkit.document import Document from unittest.mock import Mock import pytest parametrize = pytest.mark.parametrize qual = ["...
bsd-3-clause
b8acfc82ae1ffd3305e6ce1ff009767d
33.886275
88
0.585094
3.841105
false
false
false
false
dbcli/pgcli
pgcli/packages/parseutils/tables.py
1
6603
import sqlparse from collections import namedtuple from sqlparse.sql import IdentifierList, Identifier, Function from sqlparse.tokens import Keyword, DML, Punctuation TableReference = namedtuple( "TableReference", ["schema", "name", "alias", "is_function"] ) TableReference.ref = property( lambda self: self.ali...
bsd-3-clause
1c901f64138d8f23fbd473544f39868a
39.018182
87
0.582008
4.407877
false
false
false
false
dbcli/pgcli
tests/test_smart_completion_multiple_schemata.py
1
24915
import itertools from metadata import ( MetaData, alias, name_join, fk_join, join, schema, table, function, wildcard_expansion, column, get_result, result_set, qual, no_qual, parametrize, ) from utils import completions_to_set metadata = { "tables": { ...
bsd-3-clause
3aa69ed2de391c99fc43abb292d1c1d8
31.912814
123
0.61778
3.614012
false
true
false
false
dbcli/pgcli
tests/test_main.py
1
15556
import os import platform from unittest import mock import pytest try: import setproctitle except ImportError: setproctitle = None from pgcli.main import ( obfuscate_process_password, format_output, PGCli, OutputSettings, COLOR_CODE_REGEX, ) from pgcli.pgexecute import PGExecute from pgsp...
bsd-3-clause
74497bcdffd138aa86b863d3c565d0d4
31.571429
283
0.580624
3.304348
false
true
false
false
dbcli/pgcli
tests/features/steps/wrappers.py
1
2063
import re import pexpect from pgcli.main import COLOR_CODE_REGEX import textwrap try: from StringIO import StringIO except ImportError: from io import StringIO def expect_exact(context, expected, timeout): timedout = False try: context.cli.expect_exact(expected, timeout=timeout) except pe...
bsd-3-clause
4a5930f7d0e1a1dd290711dac8c7542e
26.878378
86
0.564712
3.907197
false
false
false
false
dbcli/pgcli
tests/conftest.py
1
1104
import os import pytest from utils import ( POSTGRES_HOST, POSTGRES_PORT, POSTGRES_USER, POSTGRES_PASSWORD, create_db, db_connection, drop_tables, ) import pgcli.pgexecute @pytest.fixture(scope="function") def connection(): create_db("_test_db") connection = db_connection("_test_db...
bsd-3-clause
017309f86ebf98b59f083fe56412a018
20.230769
77
0.675725
3.549839
false
true
false
false
dbcli/pgcli
release.py
1
3104
#!/usr/bin/env python """A script to publish a release of pgcli to PyPI.""" import io from optparse import OptionParser import re import subprocess import sys import click DEBUG = False CONFIRM_STEPS = False DRY_RUN = False def skip_step(): """ Asks for user's response whether to run a step. Default is yes...
bsd-3-clause
647f6a181d9705a9821e1a2d173b9ae8
21.992593
86
0.587307
3.48764
false
false
false
false
tarbell-project/tarbell
setup.py
1
2186
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys from setuptools import setup, find_packages from tarbell import __VERSION__ as VERSION APP_NAME = 'tarbell' settings = dict() # Publish Helper. if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() settings.upda...
bsd-3-clause
c733d1ecfd169ede03a87e9811c3ff40
30.2
339
0.619505
3.477707
false
false
true
false
tarbell-project/tarbell
tarbell/s3.py
2
3645
# -*- coding: utf-8 -*- import hashlib import gzip import mimetypes import os import shutil import sys import tempfile from boto.exception import S3ResponseError from boto.s3.connection import S3Connection, OrdinaryCallingFormat from boto.s3.key import Key from clint.textui import puts from .utils import show_error ...
bsd-3-clause
8d97afae9b37aa43551939fdc68a905d
32.136364
111
0.577503
3.844937
false
false
false
false
giampaolo/psutil
psutil/tests/test_process.py
2
61821
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests for psutil.Process class.""" import collections import errno import getpass import itertools import os import signal impo...
bsd-3-clause
3dfd3ceaaadbe24800ec7c76503e6898
37.856694
79
0.556753
3.951234
false
true
false
false
giampaolo/psutil
scripts/internal/download_wheels_github.py
3
2933
#!/usr/bin/env python3 # Copyright (c) 2009 Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Script which downloads wheel files hosted on GitHub: https://github.com/giampaolo/psutil/actions It needs an access token string...
bsd-3-clause
ab2324eb80e528d7ff609af8410b3f1e
27.475728
78
0.652915
3.255272
false
false
false
false
giampaolo/psutil
psutil/__init__.py
2
87339
# -*- coding: utf-8 -*- # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """psutil is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, ...
bsd-3-clause
aeba14588d034ad1cd180838931a9f76
35.059893
79
0.56083
4.27234
false
false
false
false
giampaolo/psutil
psutil/_compat.py
3
15018
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Module which provides compatibility with older Python versions. This is more future-compatible rather than the opposite (prefer latest Python 3 way of d...
bsd-3-clause
9e7ac26d3c108a0f66ecad3f14694ba3
32.373333
78
0.499933
4.645221
false
false
false
false
giampaolo/psutil
scripts/pstree.py
3
1693
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Similar to 'ps aux --forest' on Linux, prints the process list as a tree structure. $ python3 scripts/pstree.py 0 ? |- 1 init ...
bsd-3-clause
3984158b8b06994d094c1cd372aeba5d
22.513889
72
0.617247
3.200378
false
false
false
false
giampaolo/psutil
scripts/top.py
3
7516
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ A clone of top / htop. Author: Giampaolo Rodola' <g.rodola@gmail.com> $ python3 scripts/top.py CPU0 [|||| ...
bsd-3-clause
c504eafea3f792964759991525b50614
29.184739
78
0.512773
3.220223
false
false
false
false
xia2/xia2
src/xia2/Modules/Scaler/rebatch.py
1
3438
# Replacement for CCP4 program rebatch, using cctbx Python. from __future__ import annotations import itertools from cctbx.array_family import flex from iotbx import mtz def compact_batches(batches): """Pack down batches to lists of continuous batches.""" return [ [x[1] for x in g] for k,...
bsd-3-clause
0a737fc3354b36aa59ace03479cf536e
28.135593
86
0.611984
3.661342
false
false
false
false
xia2/xia2
src/xia2/Modules/SSX/data_reduction_simple.py
1
4473
from __future__ import annotations import logging from pathlib import Path from xia2.Handlers.Streams import banner from xia2.Modules.SSX.data_reduction_base import BaseDataReduction from xia2.Modules.SSX.data_reduction_programs import ( assess_for_indexing_ambiguities, check_consistent_space_group, cosym...
bsd-3-clause
2c08603e5d6f42ab59fdd9c347b0fae7
37.230769
91
0.602951
3.899738
false
false
false
false
xia2/xia2
src/xia2/lib/NMolLib.py
1
5961
# NMol per ASU Calculations based on the Kantardjieff & Rupp method. # # Implementing the cell volume calculations of Kantardjieff and Rupp, # Protein Science volume 12, 2002. Uses "nmol-params.dat" from # http://www-structure.llnl.gov/mattprob # # Relies on $XIA2_ROOT/Data/nmol-params.dat from __future__ import anno...
bsd-3-clause
5b878034ad55f2ee47e1529d9bdfe0ee
27.385714
88
0.621037
3.335758
false
false
false
false