repo_name stringlengths 6 100 | path stringlengths 4 294 | copies stringclasses 981
values | size stringlengths 4 6 | content stringlengths 606 896k | license stringclasses 15
values | input_ids listlengths 1.02k 1.02k | labels listlengths 1.02k 1.02k | attention_mask listlengths 1.02k 1.02k |
|---|---|---|---|---|---|---|---|---|
BenHenning/oppia | core/controllers/profile_test.py | 14 | 9059 | # Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 | [
3,
1898,
6927,
710,
593,
802,
4674,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,... | [
1898,
6927,
710,
593,
802,
4674,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Maspear/odoo | addons/website_certification/__openerp__.py | 320 | 1562 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | agpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
30... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
30,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NazarethCollege/heweb2017-devops-presentation | sites/tweetheat/src/backend/vendor/src/github.com/youtube/vitess/py/vtdb/dbapi.py | 12 | 1628 | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | mit | [
3,
1898,
9708,
4475,
3277,
14,
199,
3,
221,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
1443,
... | [
1898,
9708,
4475,
3277,
14,
199,
3,
221,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
1443,
3332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Eficent/odoomrp-wip | mrp_bom_component_change/models/mrp_bom_change.py | 10 | 3058 | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from openerp import models, fields, api, exceptions, _
from... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
2104,
4248,
436,
4190,
949,
7724,
12,
1937,
636,
11267,
4343,
647,
570,
315,
1738,
2082,
199,
4605,
199,
504,
5166,
492,
1709,
12,
1504,
12,
2986,
12,
4967,
12,
485,
199,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
2104,
4248,
436,
4190,
949,
7724,
12,
1937,
636,
11267,
4343,
647,
570,
315,
1738,
2082,
199,
4605,
199,
504,
5166,
492,
1709,
12,
1504,
12,
2986,
12,
4967,
12,
485,
199,
504,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WholeGrainGoats/servo | tests/unit/net/cookie_http_state_utils.py | 111 | 5965 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import subprocess
import tempfile
REPO = "https://github.com/abarth/http-state.git"
TEST_FILE = "cookie_http_... | mpl-2.0 | [
3,
961,
5800,
5495,
8204,
365,
5420,
370,
314,
2895,
402,
314,
17728,
1684,
199,
3,
844,
12,
373,
14,
499,
14,
16,
14,
982,
282,
1331,
402,
314,
28481,
1990,
440,
1854,
543,
642,
199,
3,
570,
12,
2047,
883,
3332,
1373,
737,
1455... | [
961,
5800,
5495,
8204,
365,
5420,
370,
314,
2895,
402,
314,
17728,
1684,
199,
3,
844,
12,
373,
14,
499,
14,
16,
14,
982,
282,
1331,
402,
314,
28481,
1990,
440,
1854,
543,
642,
199,
3,
570,
12,
2047,
883,
3332,
1373,
737,
1455,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
manuelm/pyload | module/plugins/hooks/WindowsPhoneNotify.py | 5 | 2885 | # -*- coding: utf-8 -*-
import httplib
import time
from module.plugins.internal.Notifier import Notifier
class WindowsPhoneNotify(Notifier):
__name__ = "WindowsPhoneNotify"
__type__ = "hook"
__version__ = "0.17"
__status__ = "testing"
__config__ = [("activated" , "bool", "Activated... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
646,
8809,
199,
646,
900,
199,
199,
504,
859,
14,
5265,
14,
4672,
14,
26884,
492,
3091,
11612,
421,
199,
533,
5417,
15199,
8645,
8,
26884,
304,
272,
636,
354,
363,
259,
275,
298,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
646,
8809,
199,
646,
900,
199,
199,
504,
859,
14,
5265,
14,
4672,
14,
26884,
492,
3091,
11612,
421,
199,
533,
5417,
15199,
8645,
8,
26884,
304,
272,
636,
354,
363,
259,
275,
298,
8647,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GustavoRD78/78Kernel-ZL-283 | Documentation/target/tcm_mod_builder.py | 4981 | 41422 | #!/usr/bin/python
# The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD
#
# Copyright (c) 2010 Rising Tide Systems
# Copyright (c) 2010 Linux-iSCSI.org
#
# Author: nab@kernel.org
#
import os, sys
import subprocess as sub
import string
import re
import optparse
tcm_dir = ""
fabric_ops... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
710,
28526,
373,
20,
3510,
13,
3922,
2630,
859,
10152,
2884,
367,
19016,
15,
1375,
21792,
11365,
63,
8816,
199,
3,
199,
3,
1898,
334,
67,
9,
7129,
820,
11136,
377,
2655,
15285,
199,
3,
1898,... | [
2647,
15,
1393,
15,
1548,
199,
3,
710,
28526,
373,
20,
3510,
13,
3922,
2630,
859,
10152,
2884,
367,
19016,
15,
1375,
21792,
11365,
63,
8816,
199,
3,
199,
3,
1898,
334,
67,
9,
7129,
820,
11136,
377,
2655,
15285,
199,
3,
1898,
334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
krishna-pandey-git/django | tests/field_deconstruction/tests.py | 69 | 18115 | from __future__ import unicode_literals
from django.db import models
from django.test import SimpleTestCase, override_settings
from django.utils import six
class FieldDeconstructionTests(SimpleTestCase):
"""
Tests the deconstruct() method on all core fields.
"""
def test_name(self):
"""
... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
1709,
199,
504,
1639,
14,
396,
492,
24424,
12,
4278,
63,
1751,
199,
504,
1639,
14,
1208,
492,
3816,
421,
199,
533,
5024,
872,
12708,
2925,
8,
17968,
304,... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
1709,
199,
504,
1639,
14,
396,
492,
24424,
12,
4278,
63,
1751,
199,
504,
1639,
14,
1208,
492,
3816,
421,
199,
533,
5024,
872,
12708,
2925,
8,
17968,
304,
272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
krishna-pandey-git/django | tests/template_tests/syntax_tests/test_if_changed.py | 162 | 10422 | from django.template import Context, Engine
from django.test import SimpleTestCase
from ..utils import setup
class IfChangedTagTests(SimpleTestCase):
libraries = {'custom': 'template_tests.templatetags.custom'}
@setup({'ifchanged01': '{% for n in num %}{% ifchanged %}{{ n }}{% endifchanged %}{% endfor %}'})... | bsd-3-clause | [
504,
1639,
14,
1160,
492,
9470,
12,
12580,
199,
504,
1639,
14,
396,
492,
24424,
199,
199,
504,
2508,
1208,
492,
3272,
421,
199,
533,
982,
6970,
1931,
2925,
8,
17968,
304,
272,
8363,
275,
791,
4229,
356,
283,
1160,
63,
2219,
14,
11... | [
1639,
14,
1160,
492,
9470,
12,
12580,
199,
504,
1639,
14,
396,
492,
24424,
199,
199,
504,
2508,
1208,
492,
3272,
421,
199,
533,
982,
6970,
1931,
2925,
8,
17968,
304,
272,
8363,
275,
791,
4229,
356,
283,
1160,
63,
2219,
14,
1160,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
h3biomed/ansible | test/units/modules/network/nxos/test_nxos_bgp_af.py | 38 | 4391 | # (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | gpl-3.0 | [
3,
334,
67,
9,
7800,
9572,
13002,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
169... | [
334,
67,
9,
7800,
9572,
13002,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DistributedSystemsGroup/YELP-DS | Blending.py | 2 | 2128 | #!/usr/bin/env python
# encoding: utf-8
"""
This code implemented review texts classication by using Support Vector Machine, Support Vector Regression,
Decision Tree and Random Forest, the evaluation function has been implemented as well.
"""
from time import gmtime, strftime
from sklearn import ensemble, svm
impor... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2644,
26,
2774,
13,
24,
199,
199,
624,
199,
2765,
1233,
6366,
11248,
24857,
11534,
1063,
701,
1808,
12502,
11388,
18722,
12,
12502,
11388,
13262,
12,
221,
199,
872,
3688,
12178,
436,
9571,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2644,
26,
2774,
13,
24,
199,
199,
624,
199,
2765,
1233,
6366,
11248,
24857,
11534,
1063,
701,
1808,
12502,
11388,
18722,
12,
12502,
11388,
13262,
12,
221,
199,
872,
3688,
12178,
436,
9571,
21684... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
adrianholovaty/django | tests/regressiontests/localflavor/se/tests.py | 33 | 6441 | # -*- coding: utf-8 -*-
from django.contrib.localflavor.se.forms import (SECountySelect,
SEOrganisationNumberField, SEPersonalIdentityNumberField,
SEPostalCodeField)
import datetime
from django.test import SimpleTestCase
class SELocalFlavorTests(SimpleTestCase):
def setUp(self):
# Mocking dateti... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
1639,
14,
2828,
14,
320,
696,
276,
4271,
14,
261,
14,
3351,
492,
334,
899,
24532,
369,
5446,
12,
272,
5795,
11014,
13181,
3259,
792,
12,
5795,
7344,
279,
10193,
3259,
792,
12,
272,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
1639,
14,
2828,
14,
320,
696,
276,
4271,
14,
261,
14,
3351,
492,
334,
899,
24532,
369,
5446,
12,
272,
5795,
11014,
13181,
3259,
792,
12,
5795,
7344,
279,
10193,
3259,
792,
12,
272,
579... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
VeritasOS/cloud-custodian | c7n/resources/shield.py | 2 | 1371 | # Copyright 2016 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | [
3,
1898,
7800,
22516,
6910,
7309,
21813,
12,
20376,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3... | [
1898,
7800,
22516,
6910,
7309,
21813,
12,
20376,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mlperf/training_results_v0.7 | Google/benchmarks/maskrcnn/implementations/maskrcnn-research-TF-tpu-v3-1024/eval_multiprocess.py | 2 | 4040 | # Copyright 2018 Google. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | apache-2.0 | [
3,
1898,
14894,
4475,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
... | [
1898,
14894,
4475,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
artiya4u/thefuck | tests/rules/test_git_add.py | 20 | 1461 | import pytest
from thefuck.rules.git_add import match, get_new_command
from tests.utils import Command
@pytest.fixture
def did_not_match(target, did_you_forget=True):
error = ("error: pathspec '{}' did not match any "
"file(s) known to git.".format(target))
if did_you_forget:
error = ("{}... | mit | [
646,
4613,
199,
504,
314,
70,
10112,
14,
4423,
14,
3187,
63,
525,
492,
1336,
12,
664,
63,
1222,
63,
1531,
199,
504,
2295,
14,
1208,
492,
5817,
421,
199,
32,
4462,
14,
5997,
199,
318,
8103,
63,
1397,
63,
1431,
8,
1375,
12,
8103,
... | [
4613,
199,
504,
314,
70,
10112,
14,
4423,
14,
3187,
63,
525,
492,
1336,
12,
664,
63,
1222,
63,
1531,
199,
504,
2295,
14,
1208,
492,
5817,
421,
199,
32,
4462,
14,
5997,
199,
318,
8103,
63,
1397,
63,
1431,
8,
1375,
12,
8103,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
partofthething/home-assistant | homeassistant/components/xiaomi_miio/air_quality.py | 7 | 7075 | """Support for Xiaomi Mi Air Quality Monitor (PM2.5)."""
import logging
from miio import AirQualityMonitor, Device, DeviceException
import voluptuous as vol
from homeassistant.components.air_quality import PLATFORM_SCHEMA, AirQualityEntity
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_TOKEN
from homeassi... | mit | [
624,
11532,
367,
1323,
4674,
676,
73,
603,
73,
22102,
24108,
26504,
334,
10793,
18,
14,
21,
10477,
199,
646,
2050,
199,
199,
504,
10684,
2308,
492,
22102,
19436,
13189,
12,
12272,
12,
12272,
1726,
199,
646,
30291,
465,
5236,
199,
199,... | [
11532,
367,
1323,
4674,
676,
73,
603,
73,
22102,
24108,
26504,
334,
10793,
18,
14,
21,
10477,
199,
646,
2050,
199,
199,
504,
10684,
2308,
492,
22102,
19436,
13189,
12,
12272,
12,
12272,
1726,
199,
646,
30291,
465,
5236,
199,
199,
504,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ElvisLouis/code | work/ML/tensorflow/practice/word2vec.py | 1 | 19527 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | gpl-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
codexns/sublime-coverage | st2_windows_x64/coverage/config.py | 16 | 12628 | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
"""Config file for coverage.py"""
import collections
import os
import re
import sys
from coverage.backward import configparser, iitems, string_class
from coverage... | apache-2.0 | [
3,
3909,
1334,
314,
3668,
844,
26,
1455,
921,
1544,
14,
3796,
14,
1308,
15,
2383,
15,
3961,
13,
18,
14,
16,
199,
3,
2104,
2436,
26,
4178,
921,
25668,
14,
1308,
15,
7439,
15,
10828,
647,
15,
2164,
15,
885,
15,
4609,
4047,
14,
2... | [
3909,
1334,
314,
3668,
844,
26,
1455,
921,
1544,
14,
3796,
14,
1308,
15,
2383,
15,
3961,
13,
18,
14,
16,
199,
3,
2104,
2436,
26,
4178,
921,
25668,
14,
1308,
15,
7439,
15,
10828,
647,
15,
2164,
15,
885,
15,
4609,
4047,
14,
2424,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yglazko/socorro | webapp-django/crashstats/auth/management/commands/makesuperuser.py | 11 | 1163 | import sys
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
def get_input(text):
return raw_input(text).strip()
class Command(BaseCommand):
help = 'emailaddress [, otheremailaddress, ...]'
def handle(self, *args, **options):
if not ... | mpl-2.0 | [
646,
984,
199,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
12,
14393,
421,
199,
318,
664,
63,
1210,
8,
505,
304,
272,
372,
3066,
63,
1210,
8,
505,
680,
1913,
... | [
984,
199,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
12,
14393,
421,
199,
318,
664,
63,
1210,
8,
505,
304,
272,
372,
3066,
63,
1210,
8,
505,
680,
1913,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
basepi/hubble | hubblestack/files/hubblestack_nova/pkgng_audit.py | 2 | 1111 | # -*- encoding: utf-8 -*-
'''
Hubble Nova plugin for FreeBSD pkgng audit
'''
from __future__ import absolute_import
import logging
log = logging.getLogger(__name__)
def __virtual__():
if 'FreeBSD' not in __grains__['os']:
return False, 'This audit module only runs on FreeBSD'
return True
def audit(... | apache-2.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
2344,
199,
15338,
830,
28184,
3589,
367,
2868,
15400,
3803,
784,
71,
13968,
199,
2344,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
646,
2050,
199,
199,
793,
275,
2050,
14,
5572,
3... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
2344,
199,
15338,
830,
28184,
3589,
367,
2868,
15400,
3803,
784,
71,
13968,
199,
2344,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
646,
2050,
199,
199,
793,
275,
2050,
14,
5572,
3460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
skyddv/neutron | neutron/objects/qos/rule.py | 11 | 2193 | # Copyright 2015 Huawei Technologies India Pvt Ltd, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | apache-2.0 | [
3,
1898,
6900,
869,
1458,
21431,
19215,
1010,
2391,
29053,
12126,
12,
3277,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
... | [
1898,
6900,
869,
1458,
21431,
19215,
1010,
2391,
29053,
12126,
12,
3277,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
eXistenZNL/SickRage | lib/guessit/date.py | 33 | 4436 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# GuessIt - A library for guessing information from filenames
# Copyright (c) 2013 Nicolas Wack <wackou@gmail.com>
#
# GuessIt is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free ... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
24570,
7940,
446,
437,
3555,
367,
9519,
316,
2556,
687,
6203,
199,
3,
1898,
334,
67,
9,
6171,
30650,
761,
305,
644,
564,
665,
87,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
24570,
7940,
446,
437,
3555,
367,
9519,
316,
2556,
687,
6203,
199,
3,
1898,
334,
67,
9,
6171,
30650,
761,
305,
644,
564,
665,
87,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
almeidapaulopt/frappe | frappe/utils/verified_command.py | 9 | 2216 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import hmac
from six.moves.urllib.parse import urlencode
from frappe import _
import frappe
import frappe.utils
from six import string_types
def get_signed_params(params):
"""S... | mit | [
3,
1898,
334,
67,
9,
6900,
12,
481,
5034,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
10697,
844,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
20330,
199,
504,
3816,
14,
4912,
14,
... | [
1898,
334,
67,
9,
6900,
12,
481,
5034,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
10697,
844,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
20330,
199,
504,
3816,
14,
4912,
14,
4078,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mayavanand/RMMAFinalProject | azimuth/model_comparison.py | 1 | 31399 | import predict as pd
import copy
import os
import numpy as np
import util
import shutil
import pickle
import pylab as plt
import pandas
import local_multiprocessing
import load_data
import features.featurization as feat
def check_feature_set_dims(feature_sets):
F2 = None
for set in feature_sets.keys():
... | bsd-3-clause | [
646,
12610,
465,
6454,
199,
646,
1331,
199,
646,
747,
199,
646,
2680,
465,
980,
199,
646,
4884,
199,
646,
5145,
199,
646,
5927,
199,
646,
19199,
465,
4488,
199,
646,
10634,
199,
646,
2257,
63,
25725,
199,
646,
2248,
63,
576,
199,
... | [
12610,
465,
6454,
199,
646,
1331,
199,
646,
747,
199,
646,
2680,
465,
980,
199,
646,
4884,
199,
646,
5145,
199,
646,
5927,
199,
646,
19199,
465,
4488,
199,
646,
10634,
199,
646,
2257,
63,
25725,
199,
646,
2248,
63,
576,
199,
646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
LiveZenLK/CeygateERP | addons/account/wizard/account_financial_report.py | 43 | 2809 | # -*- coding: utf-8 -*-
from openerp import api, fields, models
class AccountingReport(models.TransientModel):
_name = "accounting.report"
_inherit = "account.common.report"
_description = "Accounting Report"
@api.model
def _get_account_report(self):
reports = []
if self._context... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
5166,
492,
2986,
12,
1504,
12,
1709,
421,
199,
533,
9973,
316,
7457,
8,
992,
14,
14612,
14928,
1685,
304,
272,
485,
354,
275,
298,
21609,
14,
3070,
2,
272,
485,
6486,
275,
29... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
5166,
492,
2986,
12,
1504,
12,
1709,
421,
199,
533,
9973,
316,
7457,
8,
992,
14,
14612,
14928,
1685,
304,
272,
485,
354,
275,
298,
21609,
14,
3070,
2,
272,
485,
6486,
275,
298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
phoebe-project/phoebe2-docs | 2.1/tutorials/saving_and_loading.py | 1 | 2914 | #!/usr/bin/env python
# coding: utf-8
# Saving and Loading
# ============================
#
# Setup
# -----------------------------
# Let's first make sure we have the latest version of PHOEBE 2.1 installed. (You can comment out this line if you don't use pip for your installation or don't want to update to the late... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2803,
26,
2774,
13,
24,
199,
199,
3,
428,
5519,
436,
3835,
5384,
199,
3,
16248,
21326,
199,
3,
221,
199,
3,
12439,
199,
3,
10652,
8684,
199,
199,
3,
12230,
1159,
1642,
1852,
3238,
78... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2803,
26,
2774,
13,
24,
199,
199,
3,
428,
5519,
436,
3835,
5384,
199,
3,
16248,
21326,
199,
3,
221,
199,
3,
12439,
199,
3,
10652,
8684,
199,
199,
3,
12230,
1159,
1642,
1852,
3238,
781,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ivanamihalek/smallmol | gmx_lib/solvent_equilibration.py | 1 | 2572 | import os, subprocess
import grompp
#########################################
# this is a hack to find all restraint files
# we have available
def itp_files(params):
proc = subprocess.Popen(["bash", "-c", "grep include ../%s/*top | grep -v %s"%(params.rundirs.top_dir,params.physical.forcefield)],
stdout=subproc... | gpl-2.0 | [
646,
747,
12,
3873,
199,
199,
646,
486,
293,
17901,
199,
199,
26634,
3,
199,
3,
642,
365,
282,
11176,
370,
2342,
1006,
4618,
3156,
1584,
199,
3,
781,
1172,
2808,
199,
318,
652,
80,
63,
1725,
8,
1162,
304,
199,
198,
4687,
275,
38... | [
747,
12,
3873,
199,
199,
646,
486,
293,
17901,
199,
199,
26634,
3,
199,
3,
642,
365,
282,
11176,
370,
2342,
1006,
4618,
3156,
1584,
199,
3,
781,
1172,
2808,
199,
318,
652,
80,
63,
1725,
8,
1162,
304,
199,
198,
4687,
275,
3873,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
robmagee/django-cms | cms/test_utils/project/sampleapp/cms_apps.py | 32 | 1467 | from cms.app_base import CMSApp
from cms.test_utils.project.sampleapp.cms_menus import SampleAppMenu, StaticMenu3
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
class SampleApp(CMSApp):
name = _("Sample App")
urls = ["cms.test_utils.project.sampleapp.urls"]
... | bsd-3-clause | [
504,
19240,
14,
571,
63,
1095,
492,
29554,
2640,
199,
504,
19240,
14,
396,
63,
1208,
14,
1715,
14,
3271,
571,
14,
10781,
63,
30969,
492,
15227,
2640,
5977,
12,
13599,
5977,
19,
199,
504,
19240,
14,
571,
3664,
63,
2293,
492,
1145,
... | [
19240,
14,
571,
63,
1095,
492,
29554,
2640,
199,
504,
19240,
14,
396,
63,
1208,
14,
1715,
14,
3271,
571,
14,
10781,
63,
30969,
492,
15227,
2640,
5977,
12,
13599,
5977,
19,
199,
504,
19240,
14,
571,
3664,
63,
2293,
492,
1145,
3664,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Distrotech/qtwebkit | Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py | 119 | 3847 | # Copyright (c) 2010 Google 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 copyright
# notice, this list of conditions and the ... | lgpl-3.0 | [
3,
1898,
334,
67,
9,
7129,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
334,
67,
9,
7129,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
joopert/home-assistant | homeassistant/components/demo/fan.py | 2 | 2955 | """Demo fan platform that has a fake fan."""
from homeassistant.const import STATE_OFF
from homeassistant.components.fan import (
SPEED_HIGH,
SPEED_LOW,
SPEED_MEDIUM,
SUPPORT_DIRECTION,
SUPPORT_OSCILLATE,
SUPPORT_SET_SPEED,
FanEntity,
)
FULL_SUPPORT = SUPPORT_SET_SPEED | SUPPORT_OSCILLATE ... | apache-2.0 | [
624,
21493,
13758,
4298,
626,
965,
282,
4026,
13758,
1041,
199,
504,
8846,
14,
1297,
492,
11377,
63,
7517,
199,
199,
504,
8846,
14,
4608,
14,
12269,
492,
334,
272,
428,
1510,
1149,
63,
17624,
12,
272,
428,
1510,
1149,
63,
5896,
12,
... | [
21493,
13758,
4298,
626,
965,
282,
4026,
13758,
1041,
199,
504,
8846,
14,
1297,
492,
11377,
63,
7517,
199,
199,
504,
8846,
14,
4608,
14,
12269,
492,
334,
272,
428,
1510,
1149,
63,
17624,
12,
272,
428,
1510,
1149,
63,
5896,
12,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Distrotech/scons | build/scons/build/lib/SCons/Tool/packaging/src_zip.py | 2 | 1733 | """SCons.Tool.Packaging.zip
The zip SRC packager.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Soft... | mit | [
624,
18521,
14,
5157,
14,
2305,
7407,
14,
3065,
199,
199,
1918,
3482,
428,
8205,
1706,
1456,
14,
199,
624,
199,
199,
3,
199,
3,
1898,
334,
67,
9,
12521,
12,
14790,
12,
13004,
12,
8353,
12,
11811,
12,
8315,
12,
10219,
12,
9079,
1... | [
18521,
14,
5157,
14,
2305,
7407,
14,
3065,
199,
199,
1918,
3482,
428,
8205,
1706,
1456,
14,
199,
624,
199,
199,
3,
199,
3,
1898,
334,
67,
9,
12521,
12,
14790,
12,
13004,
12,
8353,
12,
11811,
12,
8315,
12,
10219,
12,
9079,
12,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jonhadfield/creds | setup.py | 1 | 2702 | #!/usr/bin/env python
import os
import re
import sys
# from codecs import open
from setuptools import (setup, find_packages)
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]
def initialize_options(sel... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
747,
199,
646,
295,
199,
646,
984,
199,
3,
687,
6010,
492,
1551,
199,
199,
504,
9116,
492,
334,
2758,
12,
2342,
63,
5154,
9,
199,
504,
9116,
14,
1531,
14,
396,
492,
511,
465,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
747,
199,
646,
295,
199,
646,
984,
199,
3,
687,
6010,
492,
1551,
199,
199,
504,
9116,
492,
334,
2758,
12,
2342,
63,
5154,
9,
199,
504,
9116,
14,
1531,
14,
396,
492,
511,
465,
1379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
BizzCloud/PosBox | addons/mail/mail_message.py | 12 | 47038 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010-today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
7129,
13,
8136,
7653,
13950,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
18956,
199,
3,
199,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
7129,
13,
8136,
7653,
13950,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
18956,
199,
3,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wlof/gameoflife | gameoflife/gamenumpy.py | 1 | 6610 | # -*- coding: utf-8 -*-
# This file is part of gameoflife.
# Copyright 2015, wlof.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the r... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
961,
570,
365,
1777,
402,
9219,
1618,
13602,
14,
199,
3,
1898,
6900,
12,
336,
320,
70,
14,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
961,
570,
365,
1777,
402,
9219,
1618,
13602,
14,
199,
3,
1898,
6900,
12,
336,
320,
70,
14,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
1240... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jimsimon/sky_engine | third_party/jinja2/__init__.py | 238 | 2270 | # -*- coding: utf-8 -*-
"""
jinja2
~~~~~~
Jinja2 is a template engine written in pure Python. It provides a
Django inspired non-XML syntax but supports inline expressions and
an optional sandboxed environment.
Nutshell
--------
Here a small example of a Jinja2 template::
{% ... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10321,
18,
272,
221,
2878,
1714,
339,
17300,
18,
365,
282,
1978,
6869,
5313,
315,
15111,
2018,
14,
221,
2779,
6571,
282,
272,
5634,
315,
8721,
581,
2222,
13,
4317,
6302,
1325,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10321,
18,
272,
221,
2878,
1714,
339,
17300,
18,
365,
282,
1978,
6869,
5313,
315,
15111,
2018,
14,
221,
2779,
6571,
282,
272,
5634,
315,
8721,
581,
2222,
13,
4317,
6302,
1325,
5171,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
grnet/snf-image-creator | image_creator/distro/linux.py | 2 | 38531 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2011-2018 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Thi... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
7760,
13,
12682,
21772,
7278,
428,
14,
33,
14,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
7760,
13,
12682,
21772,
7278,
428,
14,
33,
14,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rocky/python-xdis | xdis/opcodes/opcode_27pypy.py | 1 | 2029 | # (C) Copyright 2017, 2020 by Rocky Bernstein
"""
PYPY 2.7 opcodes
This is a like Python 2.7's opcode.py with some classification
of stack usage.
"""
import xdis.opcodes.opcode_27 as opcode_27
from xdis.opcodes.base import (
def_op,
extended_format_ATTR,
extended_format_CALL_FUNCTION,
extended_format_... | gpl-2.0 | [
3,
334,
35,
9,
1898,
9708,
12,
25455,
701,
820,
766,
89,
23207,
561,
15859,
199,
624,
199,
4521,
4521,
499,
14,
23,
27388,
199,
199,
2765,
365,
282,
2839,
2018,
499,
14,
23,
1159,
10508,
14,
647,
543,
2005,
12505,
199,
1618,
3464,... | [
334,
35,
9,
1898,
9708,
12,
25455,
701,
820,
766,
89,
23207,
561,
15859,
199,
624,
199,
4521,
4521,
499,
14,
23,
27388,
199,
199,
2765,
365,
282,
2839,
2018,
499,
14,
23,
1159,
10508,
14,
647,
543,
2005,
12505,
199,
1618,
3464,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
alrusdi/lettuce | tests/integration/lib/Django-1.2.5/django/db/backends/oracle/base.py | 44 | 30653 | """
Oracle database backend for Django.
Requires cx_Oracle: http://cx-oracle.sourceforge.net/
"""
import datetime
import sys
import time
from decimal import Decimal
def _setup_environment(environ):
import platform
# Cygwin requires some special voodoo to set the environment variables
# properly so that... | gpl-3.0 | [
624,
199,
21202,
3050,
4865,
367,
5634,
14,
199,
199,
18153,
17280,
63,
21202,
26,
1455,
921,
11859,
13,
16404,
14,
22943,
14,
846,
15,
199,
624,
421,
199,
646,
2197,
199,
646,
984,
199,
646,
900,
199,
504,
6107,
492,
6345,
421,
1... | [
199,
21202,
3050,
4865,
367,
5634,
14,
199,
199,
18153,
17280,
63,
21202,
26,
1455,
921,
11859,
13,
16404,
14,
22943,
14,
846,
15,
199,
624,
421,
199,
646,
2197,
199,
646,
984,
199,
646,
900,
199,
504,
6107,
492,
6345,
421,
199,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
fasaxc/felix | calico/felix/test/stub_ipsets.py | 1 | 4497 | # -*- coding: utf-8 -*-
# Copyright 2014 Metaswitch Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
6927,
10072,
305,
3111,
17138,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
6927,
10072,
305,
3111,
17138,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
chipster/chipster | ext/applications/apache-activemq-5.10.0/examples/stomp/python/stompest/sync/publisher.py | 9 | 1679 | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); ... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
624,
199,
31661,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
16833,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3749,
1736,
367,
4722,
2556,
12602,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
624,
199,
31661,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
16833,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3749,
1736,
367,
4722,
2556,
12602,
4248,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
repotvsupertuga/tvsupertuga.repository | script.module.tulip/lib/tulip/url_dispatcher.py | 1 | 4656 | # -*- coding: utf-8 -*-
'''
Tulip routine libraries, based on lambda's lamlib
Url dispatcher module thanks to tknorris
Author Twilight0
License summary below, for more details please read license.txt file
This program is free software: you can redistribute it and/or modify
it unde... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
272,
377,
11294,
12981,
8363,
12,
4079,
641,
2400,
1159,
25917,
773,
272,
20503,
17475,
859,
2419,
6080,
370,
10157,
6505,
5719,
272,
6529,
377,
87,
1638,
913,
16,
398,
844,
621... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
272,
377,
11294,
12981,
8363,
12,
4079,
641,
2400,
1159,
25917,
773,
272,
20503,
17475,
859,
2419,
6080,
370,
10157,
6505,
5719,
272,
6529,
377,
87,
1638,
913,
16,
398,
844,
6212,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
m4rx9/rna-pdb-tools | rna_tools/tools/rna_refinement/rna_refinement.py | 2 | 6344 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""rna_refinement - RNA refinement with QRNAS.
Models of RNA 3D structures obtained by modeling methods often suffer from local inaccuracies such as clashes or physically improbable bond lengths, backbone conformations, or sugar puckers. To ensure high quality of models, a pr... | mit | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
82,
3540,
63,
1121,
1132,
434,
446,
820,
7170,
2984,
1132,
434,
543,
1413,
15303,
1179,
14,
199,
199,
20474,
402,
820,
7170,
650,
36,
13955... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
82,
3540,
63,
1121,
1132,
434,
446,
820,
7170,
2984,
1132,
434,
543,
1413,
15303,
1179,
14,
199,
199,
20474,
402,
820,
7170,
650,
36,
13955,
1588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mailosaurapp/mailosaur-python | tests/emails_test.py | 1 | 7625 | import os
from datetime import datetime
from unittest import TestCase
from .mailer import Mailer
from mailosaur import MailosaurClient
from mailosaur.models import SearchCriteria, MailosaurException
class EmailsTest(TestCase):
@classmethod
def setUpClass(cls):
api_key = os.getenv('MAILOSAUR_API_KEY')
... | mit | [
646,
747,
199,
504,
2197,
492,
2197,
199,
504,
2882,
492,
7640,
199,
504,
1275,
391,
3566,
492,
16593,
3566,
199,
504,
610,
11737,
2231,
300,
492,
603,
5789,
320,
2231,
300,
3041,
199,
504,
610,
11737,
2231,
300,
14,
992,
492,
8730,... | [
747,
199,
504,
2197,
492,
2197,
199,
504,
2882,
492,
7640,
199,
504,
1275,
391,
3566,
492,
16593,
3566,
199,
504,
610,
11737,
2231,
300,
492,
603,
5789,
320,
2231,
300,
3041,
199,
504,
610,
11737,
2231,
300,
14,
992,
492,
8730,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DylanMcCall/rhythmbox-songinfo-context-menu | plugins/lyrics/LyricWikiParser.py | 3 | 2039 | # -*- Mode: python; coding: utf-8; tab-width: 8; indent-tabs-mode: t; -*-
#
# Copyright (C) 2007 Jonathan Matthew
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your ... | gpl-2.0 | [
3,
1882,
4900,
26,
2366,
27,
2803,
26,
2774,
13,
24,
27,
5174,
13,
2063,
26,
1695,
27,
4363,
13,
8741,
13,
632,
26,
307,
27,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
1603,
265,
1619,
290,
18619,
29640,
199,
3,
199,
3,
... | [
1882,
4900,
26,
2366,
27,
2803,
26,
2774,
13,
24,
27,
5174,
13,
2063,
26,
1695,
27,
4363,
13,
8741,
13,
632,
26,
307,
27,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
1603,
265,
1619,
290,
18619,
29640,
199,
3,
199,
3,
961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
maximinus/wargame | wargame-examples/04_tweens/chained-tweens.py | 1 | 1109 | #!/usr/bin/env python
import os
import pygame
import wargame.engine
from wargame.scene import Scene
from wargame.nodes import ImageNode
from wargame.tweens import ChainedTween, MoveTween
# example of moving Node2d
def game():
resources = os.path.join(os.getcwd(), '../')
controller = wargame.engine.init(re... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
747,
199,
646,
9193,
199,
199,
646,
336,
1273,
313,
14,
3908,
199,
504,
336,
1273,
313,
14,
10436,
492,
18055,
69,
199,
504,
336,
1273,
313,
14,
2415,
492,
6047,
1716,
199,
504,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
747,
199,
646,
9193,
199,
199,
646,
336,
1273,
313,
14,
3908,
199,
504,
336,
1273,
313,
14,
10436,
492,
18055,
69,
199,
504,
336,
1273,
313,
14,
2415,
492,
6047,
1716,
199,
504,
336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
chirilo/kuma | vendor/packages/logilab/common/visitor.py | 93 | 3444 | # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... | mpl-2.0 | [
3,
4248,
13004,
13,
8128,
5051,
1193,
1217,
428,
14,
33,
14,
334,
1262,
374,
12,
28671,
7140,
395,
1006,
4481,
4644,
14,
199,
3,
8966,
1455,
921,
1544,
14,
793,
24142,
14,
4391,
15,
1553,
6016,
475,
26,
7811,
32,
793,
24142,
14,
... | [
4248,
13004,
13,
8128,
5051,
1193,
1217,
428,
14,
33,
14,
334,
1262,
374,
12,
28671,
7140,
395,
1006,
4481,
4644,
14,
199,
3,
8966,
1455,
921,
1544,
14,
793,
24142,
14,
4391,
15,
1553,
6016,
475,
26,
7811,
32,
793,
24142,
14,
4391... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
annapowellsmith/openpresc | openprescribing/pipeline/tests/test_pipeline.py | 1 | 16563 | import mock
import os
import json
from django.conf import settings
from django.test import TestCase, override_settings
from pipeline.models import TaskLog
from pipeline.runner import load_tasks, run_task, in_progress
class PipelineTests(TestCase):
def setUp(self):
# Load tasks
self.tasks = load_... | mit | [
646,
1683,
199,
646,
747,
199,
646,
2022,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
396,
492,
7640,
12,
4278,
63,
1751,
199,
199,
504,
7679,
14,
992,
492,
8495,
2445,
199,
504,
7679,
14,
5933,
492,
2248,
63,
... | [
1683,
199,
646,
747,
199,
646,
2022,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
396,
492,
7640,
12,
4278,
63,
1751,
199,
199,
504,
7679,
14,
992,
492,
8495,
2445,
199,
504,
7679,
14,
5933,
492,
2248,
63,
5054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rajsadho/django | tests/multiple_database/tests.py | 44 | 94129 | from __future__ import unicode_literals
import datetime
import pickle
from operator import attrgetter
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.core import management
from django.db import DEFAULT_DB_ALIAS, connections, router, transaction
from ... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2197,
199,
646,
5927,
199,
504,
4182,
492,
21829,
199,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
2828,
14,
10778,
14,
992,
492,
14501,
199,... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2197,
199,
646,
5927,
199,
504,
4182,
492,
21829,
199,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
2828,
14,
10778,
14,
992,
492,
14501,
199,
504,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mayuroks/schedulord | server.py | 1 | 1861 | from flask import Flask, request, jsonify
from werkzeug.utils import secure_filename
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.restless import APIManager
import os
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/schedulord.db'
app.config['UPLOA... | mit | [
504,
7209,
492,
16704,
12,
1056,
12,
23819,
199,
504,
10380,
14,
1208,
492,
11153,
63,
1501,
199,
504,
7209,
14,
832,
14,
14536,
492,
14303,
199,
504,
7209,
14,
832,
14,
3911,
2003,
492,
10319,
1469,
290,
1456,
199,
646,
747,
421,
... | [
7209,
492,
16704,
12,
1056,
12,
23819,
199,
504,
10380,
14,
1208,
492,
11153,
63,
1501,
199,
504,
7209,
14,
832,
14,
14536,
492,
14303,
199,
504,
7209,
14,
832,
14,
3911,
2003,
492,
10319,
1469,
290,
1456,
199,
646,
747,
421,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MapLarge/flat-file-feeds | directory_feed_constructor.py | 1 | 4075 | """
Classname: DirectoryFeedConstructor
Description: Creates a feed for an internal directory type of feed
Authored by: MapLarge, Inc. (Scott Rowles)
Change Log:
"""
"""
Define all the imports for the site_feed_constructor class
"""
import os
import re
import sys
import datetime as dt
import codecs
import uuid
impor... | mit | [
624,
199,
2543,
354,
26,
15191,
7658,
11447,
199,
5831,
26,
10560,
282,
4733,
367,
376,
5007,
2082,
730,
402,
4733,
199,
2817,
2908,
701,
26,
9672,
17149,
12,
3277,
14,
334,
51,
331,
6215,
15231,
2978,
9,
199,
4001,
5297,
26,
221,
... | [
199,
2543,
354,
26,
15191,
7658,
11447,
199,
5831,
26,
10560,
282,
4733,
367,
376,
5007,
2082,
730,
402,
4733,
199,
2817,
2908,
701,
26,
9672,
17149,
12,
3277,
14,
334,
51,
331,
6215,
15231,
2978,
9,
199,
4001,
5297,
26,
221,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
samsu/neutron | db/migration/alembic_migrations/cisco_init_ops.py | 17 | 8038 | # Copyright 2014 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | [
3,
1898,
6927,
14260,
2752,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
19... | [
1898,
6927,
14260,
2752,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AustinWise/mongrel2 | examples/python/mongrel2/config/model.py | 92 | 7490 | from storm.locals import *
database = None
store = None
TABLES = ["server", "host", "route", "proxy", "directory", "handler",
"setting"]
def load_db(spec):
global database
global store
if not store:
database = create_database(spec)
store = Store(database)
return st... | bsd-3-clause | [
504,
410,
1025,
14,
9350,
492,
627,
199,
199,
4659,
275,
488,
199,
1617,
275,
488,
199,
199,
10129,
11344,
275,
2097,
1000,
401,
298,
1102,
401,
298,
4449,
401,
298,
3280,
401,
298,
3619,
401,
298,
2232,
401,
2116,
298,
6031,
937,
... | [
410,
1025,
14,
9350,
492,
627,
199,
199,
4659,
275,
488,
199,
1617,
275,
488,
199,
199,
10129,
11344,
275,
2097,
1000,
401,
298,
1102,
401,
298,
4449,
401,
298,
3280,
401,
298,
3619,
401,
298,
2232,
401,
2116,
298,
6031,
937,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
taotie12010/bigfour | lms/djangoapps/commerce/utils.py | 107 | 1296 | """Utilities to assist with commerce tasks."""
import logging
log = logging.getLogger(__name__)
def audit_log(name, **kwargs):
"""DRY helper used to emit an INFO-level log message.
Messages logged with this function are used to construct an audit trail. Log messages
should be emitted immediately after ... | agpl-3.0 | [
624,
22905,
370,
465,
11734,
543,
2414,
25192,
6527,
1041,
199,
646,
2050,
421,
199,
793,
275,
2050,
14,
5572,
3460,
354,
3368,
421,
199,
318,
13968,
63,
793,
8,
354,
12,
1011,
958,
304,
272,
408,
4564,
57,
5922,
1202,
370,
8689,
... | [
22905,
370,
465,
11734,
543,
2414,
25192,
6527,
1041,
199,
646,
2050,
421,
199,
793,
275,
2050,
14,
5572,
3460,
354,
3368,
421,
199,
318,
13968,
63,
793,
8,
354,
12,
1011,
958,
304,
272,
408,
4564,
57,
5922,
1202,
370,
8689,
376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jamesbeebop/CouchPotatoServer | couchpotato/core/media/_base/providers/torrent/torrentleech.py | 33 | 5128 | import traceback
from bs4 import BeautifulSoup
from couchpotato.core.helpers.variable import tryInt
from couchpotato.core.logger import CPLog
from couchpotato.core.media._base.providers.torrent.base import TorrentProvider
import six
log = CPLog(__name__)
class Base(TorrentProvider):
urls = {
'test': '... | gpl-3.0 | [
646,
5190,
199,
199,
504,
9922,
20,
492,
17132,
199,
504,
28877,
30780,
14,
1018,
14,
7546,
14,
1975,
492,
862,
3241,
199,
504,
28877,
30780,
14,
1018,
14,
2921,
492,
19701,
2445,
199,
504,
28877,
30780,
14,
1018,
14,
4603,
423,
109... | [
5190,
199,
199,
504,
9922,
20,
492,
17132,
199,
504,
28877,
30780,
14,
1018,
14,
7546,
14,
1975,
492,
862,
3241,
199,
504,
28877,
30780,
14,
1018,
14,
2921,
492,
19701,
2445,
199,
504,
28877,
30780,
14,
1018,
14,
4603,
423,
1095,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JamesLinEngineer/RKMC | addons/script.module.liveresolver/lib/liveresolver/resolvers/castamp.py | 2 | 1440 | # -*- coding: utf-8 -*-
import re,urllib,urlparse,base64
from liveresolver.modules import client,constants
from liveresolver.modules.log_utils import log
def resolve(url):
try:
id = urlparse.parse_qs(urlparse.urlparse(url).query)['c'][0]
try:
referer = urlparse.parse_qs(url... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
8065,
199,
646,
295,
12,
4078,
12,
10290,
12,
1095,
772,
202,
199,
504,
12166,
7717,
14,
3112,
492,
1890,
12,
5559,
202,
199,
504,
12166,
7717,
14,
3112,
14,
793,
63,
1208,
492,
943,
202,
1... | [
1882,
2803,
26,
2774,
13,
24,
1882,
8065,
199,
646,
295,
12,
4078,
12,
10290,
12,
1095,
772,
202,
199,
504,
12166,
7717,
14,
3112,
492,
1890,
12,
5559,
202,
199,
504,
12166,
7717,
14,
3112,
14,
793,
63,
1208,
492,
943,
202,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
marscher/cython | Cython/Build/Tests/TestInline.py | 20 | 2071 | import os, tempfile
from Cython.Shadow import inline
from Cython.Build.Inline import safe_type
from Cython.TestUtils import CythonTest
try:
import numpy
has_numpy = True
except:
has_numpy = False
test_kwds = dict(force=True, quiet=True)
global_value = 100
class TestInline(CythonTest):
def setUp(self... | apache-2.0 | [
646,
747,
12,
5549,
199,
504,
26741,
14,
23574,
492,
8308,
199,
504,
26741,
14,
3425,
14,
10307,
492,
5048,
63,
466,
199,
504,
26741,
14,
774,
7535,
492,
26741,
774,
199,
199,
893,
26,
272,
492,
2680,
272,
965,
63,
4714,
275,
715,... | [
747,
12,
5549,
199,
504,
26741,
14,
23574,
492,
8308,
199,
504,
26741,
14,
3425,
14,
10307,
492,
5048,
63,
466,
199,
504,
26741,
14,
774,
7535,
492,
26741,
774,
199,
199,
893,
26,
272,
492,
2680,
272,
965,
63,
4714,
275,
715,
199,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nitinitprof/odoo | addons/purchase_requisition/wizard/bid_line_qty.py | 374 | 1711 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
961,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
danielquinn/spirithunter | src/aspects/arbiters/celestial.py | 1 | 3517 | import ephem
from .base import Arbiter
from ..models import Facet, Element
class CelestialArbiter(Arbiter):
WEIGHT_DAY = 5
WEIGHT_NIGHT = 5
WEIGHT_MOON_FULL = 5
WEIGHT_MOON_NEW = 5
WEIGHT_MERCURY = 1
WEIGHT_VENUS = 1
WEIGHT_MARS = 1
WEIGHT_JUPITER = 1
WEIGHT_SATURN = 1
WEIGHT... | agpl-3.0 | [
646,
5442,
27037,
199,
199,
504,
1275,
1095,
492,
1952,
66,
1661,
199,
504,
2508,
992,
492,
21459,
84,
12,
6566,
421,
199,
533,
445,
8081,
270,
2380,
1596,
66,
1661,
8,
1596,
66,
1661,
304,
339,
644,
37,
2830,
63,
11655,
275,
959,... | [
5442,
27037,
199,
199,
504,
1275,
1095,
492,
1952,
66,
1661,
199,
504,
2508,
992,
492,
21459,
84,
12,
6566,
421,
199,
533,
445,
8081,
270,
2380,
1596,
66,
1661,
8,
1596,
66,
1661,
304,
339,
644,
37,
2830,
63,
11655,
275,
959,
272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
darjeeling/django | django/conf/locale/it/formats.py | 65 | 2012 | # This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y' # 25 Ottobre 2006
TIME_FORMAT = 'H:i' # 14:30
DATETIME_FORMAT = 'l d F Y H:i' # Mercoledì ... | bsd-3-clause | [
3,
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
1434,
1475,
6302,
12,
199,
3,
1937,
1455,
921,
4757,
14,
14013,
14,
957,
15,
287,
15,
2374,
15,
112... | [
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
1434,
1475,
6302,
12,
199,
3,
1937,
1455,
921,
4757,
14,
14013,
14,
957,
15,
287,
15,
2374,
15,
1121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
codekaki/odoo | addons/note/tests/test_note.py | 427 | 1686 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2013-TODAY OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
6171,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
11267,
14,
957,
30,
199,
3... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
6171,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
11267,
14,
957,
30,
199,
3,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
all-of-us/raw-data-repository | rdr_service/lib_fhir/fhirclient_4_0_0/models/medicinalproduct_tests.py | 1 | 3848 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import medicinalproduct
from .fhirdate import FHIRDate
class MedicinalProductTests(unittest.TestCase):
def instantiate_from(self... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
221,
17065,
687,
481,
40,
3927,
841,
14,
16,
14,
16,
13,
65,
2481,
825,
22,
1024,
17,
66,
641,
20312,
13,
1717,
13,
1780,
14,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
221,
17065,
687,
481,
40,
3927,
841,
14,
16,
14,
16,
13,
65,
2481,
825,
22,
1024,
17,
66,
641,
20312,
13,
1717,
13,
1780,
14,
199,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
landlab/landlab | tests/components/flow_accum/conftest.py | 3 | 7713 | import os
import numpy as np
import pytest
from landlab import RasterModelGrid
XX = RasterModelGrid.BAD_INDEX
@pytest.fixture
def dans_grid1():
"""
Create a 5x5 test grid.
This is a sheet flow test.
"""
mg = RasterModelGrid((5, 5), xy_spacing=(10.0, 10.0))
this_dir = os.path.abspath(os.pat... | mit | [
646,
747,
199,
199,
646,
2680,
465,
980,
199,
646,
4613,
199,
199,
504,
20078,
5561,
492,
820,
2311,
1685,
7900,
199,
199,
2483,
275,
820,
2311,
1685,
7900,
14,
9439,
63,
10215,
421,
199,
32,
4462,
14,
5997,
199,
318,
366,
796,
63... | [
747,
199,
199,
646,
2680,
465,
980,
199,
646,
4613,
199,
199,
504,
20078,
5561,
492,
820,
2311,
1685,
7900,
199,
199,
2483,
275,
820,
2311,
1685,
7900,
14,
9439,
63,
10215,
421,
199,
32,
4462,
14,
5997,
199,
318,
366,
796,
63,
382... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
idlead/scikit-learn | examples/linear_model/plot_lasso_lars.py | 363 | 1080 | #!/usr/bin/env python
"""
=====================
Lasso path using LARS
=====================
Computes Lasso Path along the regularization parameter using the LARS
algorithm on the diabetes dataset. Each color represents a different
feature of the coefficient vector, and this is displayed as a function
of the regulariza... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
624,
199,
1280,
19989,
199,
27537,
931,
1808,
491,
689,
51,
199,
1280,
19989,
199,
199,
22594,
29029,
6912,
3180,
314,
21095,
2725,
1808,
314,
491,
689,
51,
199,
8833,
641,
314,
487,
26290,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
624,
199,
1280,
19989,
199,
27537,
931,
1808,
491,
689,
51,
199,
1280,
19989,
199,
199,
22594,
29029,
6912,
3180,
314,
21095,
2725,
1808,
314,
491,
689,
51,
199,
8833,
641,
314,
487,
26290,
4789,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
treejames/viewfinder | marketing/tornado/netutil.py | 32 | 18082 | #!/usr/bin/env python
#
# Copyright 2011 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7760,
27107,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7760,
27107,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sunqm/pyscf | examples/scf/41-hf_with_given_densityfit_ints.py | 2 | 1697 | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Input Cholesky decomposed integrals for SCF module by overwriting the _cderi attribute.
See also:
examples/df/40-precompute_df_ints.py
'''
import tempfile
import h5py
from pyscf import gto, df, scf
mol = gto.M(atom='H 0 0 0; F 0 0 1', basis='... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
6529,
26,
1413,
1017,
316,
25625,
665,
79,
338,
82,
541,
14,
11846,
32,
6799,
14,
957,
30,
199,
3,
199,
199,
2344,
199,
3205,
8802,
19881,
477,
7784,
939,
17806,
2551,
367,
4... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
6529,
26,
1413,
1017,
316,
25625,
665,
79,
338,
82,
541,
14,
11846,
32,
6799,
14,
957,
30,
199,
3,
199,
199,
2344,
199,
3205,
8802,
19881,
477,
7784,
939,
17806,
2551,
367,
428,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rperier/linux-rockchip | scripts/gdb/linux/tasks.py | 630 | 2892 | #
# gdb helper commands and functions for Linux kernel debugging
#
# task & thread tools
#
# Copyright (c) Siemens AG, 2011-2013
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
#
# This work is licensed under the terms of the GNU GPL version 2.
#
import gdb
from linux import utils
task_type = utils.CachedType(... | gpl-2.0 | [
3,
199,
3,
12124,
5922,
3718,
436,
3423,
367,
10130,
5114,
10201,
199,
3,
199,
3,
221,
2120,
1253,
2462,
7249,
199,
3,
199,
3,
1898,
334,
67,
9,
428,
1873,
278,
561,
26787,
12,
7760,
13,
6965,
199,
3,
199,
3,
6642,
26,
199,
3,... | [
199,
3,
12124,
5922,
3718,
436,
3423,
367,
10130,
5114,
10201,
199,
3,
199,
3,
221,
2120,
1253,
2462,
7249,
199,
3,
199,
3,
1898,
334,
67,
9,
428,
1873,
278,
561,
26787,
12,
7760,
13,
6965,
199,
3,
199,
3,
6642,
26,
199,
3,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
archen/django | tests/custom_pk/fields.py | 33 | 1629 | import random
import string
from django.db import models
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class MyWrapper(object):
def __init__(self, value):
self.value = value
def __repr__(self):
return "<%s: %s>" % (sel... | bsd-3-clause | [
646,
2196,
199,
646,
1059,
199,
199,
504,
1639,
14,
697,
492,
1709,
199,
504,
1639,
14,
1208,
492,
3816,
199,
504,
1639,
14,
1208,
14,
2991,
492,
2366,
63,
18,
63,
2975,
63,
6490,
421,
199,
32,
1548,
63,
18,
63,
2975,
63,
6490,
... | [
2196,
199,
646,
1059,
199,
199,
504,
1639,
14,
697,
492,
1709,
199,
504,
1639,
14,
1208,
492,
3816,
199,
504,
1639,
14,
1208,
14,
2991,
492,
2366,
63,
18,
63,
2975,
63,
6490,
421,
199,
32,
1548,
63,
18,
63,
2975,
63,
6490,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Johnetordoff/osf.io | osf/migrations/0126_update_social_data_format.py | 11 | 2570 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-25 20:39
from __future__ import unicode_literals
import logging
from tqdm import tqdm
from django.db import migrations, connection
logger = logging.getLogger(__name__)
FIELDS_TO_MIGRATE = [
'github',
'linkedIn',
'twitter'
]
class Migra... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
17065,
701,
5634,
413,
14,
845,
14,
969,
641,
14894,
13,
1780,
13,
821,
3388,
26,
1355,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2050,
199,
504,
307,
81,
6428,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
17065,
701,
5634,
413,
14,
845,
14,
969,
641,
14894,
13,
1780,
13,
821,
3388,
26,
1355,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2050,
199,
504,
307,
81,
6428,
492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lepistone/odoo | addons/hr_holidays/report/holidays_summary_report.py | 42 | 10487 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
961,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ncos/lisa | src/lisa_drive/scripts/venv/lib/python3.5/site-packages/pip-10.0.1-py3.5.egg/pip/_vendor/__init__.py | 5 | 4841 | """
pip._vendor is for vendoring dependencies of pip to prevent needing pip to
depend on something external.
Files inside of pip._vendor should be considered immutable and should only be
updated to versions from upstream.
"""
from __future__ import absolute_import
import glob
import os.path
import sys
#... | mit | [
624,
202,
199,
9983,
423,
9884,
365,
367,
373,
500,
6854,
5124,
402,
7305,
370,
7981,
1929,
316,
7305,
370,
202,
199,
26434,
641,
6020,
5957,
14,
2999,
199,
5535,
6272,
402,
7305,
423,
9884,
1077,
506,
8652,
17092,
436,
1077,
1454,
... | [
202,
199,
9983,
423,
9884,
365,
367,
373,
500,
6854,
5124,
402,
7305,
370,
7981,
1929,
316,
7305,
370,
202,
199,
26434,
641,
6020,
5957,
14,
2999,
199,
5535,
6272,
402,
7305,
423,
9884,
1077,
506,
8652,
17092,
436,
1077,
1454,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
santisiri/popego | envs/ALPHA-POPEGO/lib/python2.5/site-packages/utils-0.2-py2.5.egg/utils/reflection.py | 4 | 2749 | # -*- coding: utf-8 -*-
__docformat__='restructuredtext'
import types, os
def pathToObject(path):
if ':' in path:
modulePath,attrs = path.split(':',1)
needsCall = False
if attrs.endswith('()'):
attrs = attrs[:-2]
needsCall = True
attrs = attrs.split(".")
... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
363,
21841,
363,
534,
26854,
7,
199,
646,
2943,
12,
747,
199,
199,
318,
931,
1378,
1692,
8,
515,
304,
272,
340,
10871,
315,
931,
26,
267,
859,
2042,
12,
3288,
275,
931,
14,
1294,
16451... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
363,
21841,
363,
534,
26854,
7,
199,
646,
2943,
12,
747,
199,
199,
318,
931,
1378,
1692,
8,
515,
304,
272,
340,
10871,
315,
931,
26,
267,
859,
2042,
12,
3288,
275,
931,
14,
1294,
16451,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CopeX/odoo | addons/account/tests/test_reconciliation.py | 179 | 14166 | from openerp.tests.common import TransactionCase
import time
class TestReconciliation(TransactionCase):
"""Tests for reconciliation (account.tax)
Test used to check that when doing a sale or purchase invoice in a different currency,
the result will be balanced.
"""
def setUp(self):
super(... | agpl-3.0 | [
504,
5166,
14,
2219,
14,
2330,
492,
18244,
1538,
199,
646,
900,
199,
199,
533,
1379,
497,
388,
29685,
8,
10161,
1538,
304,
272,
408,
2925,
367,
24711,
29685,
334,
2048,
14,
5530,
9,
339,
1379,
1202,
370,
1104,
626,
1380,
9689,
282,
... | [
5166,
14,
2219,
14,
2330,
492,
18244,
1538,
199,
646,
900,
199,
199,
533,
1379,
497,
388,
29685,
8,
10161,
1538,
304,
272,
408,
2925,
367,
24711,
29685,
334,
2048,
14,
5530,
9,
339,
1379,
1202,
370,
1104,
626,
1380,
9689,
282,
13590... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kutuhal/oracle-r12-accounting | lib/django/contrib/gis/geos/prototypes/coordseq.py | 103 | 3171 | from ctypes import POINTER, c_double, c_int, c_uint
from django.contrib.gis.geos.libgeos import CS_PTR, GEOM_PTR
from django.contrib.gis.geos.prototypes.errcheck import (
GEOSException, last_arg_byref,
)
from django.contrib.gis.geos.prototypes.threadsafe import GEOSFunc
# ## Error-checking routines specific to c... | bsd-3-clause | [
504,
5577,
492,
6569,
12,
286,
63,
3157,
12,
286,
63,
442,
12,
286,
63,
1635,
199,
199,
504,
1639,
14,
2828,
14,
5668,
14,
12151,
14,
773,
12151,
492,
17447,
63,
14528,
12,
8991,
7474,
63,
14528,
199,
504,
1639,
14,
2828,
14,
56... | [
5577,
492,
6569,
12,
286,
63,
3157,
12,
286,
63,
442,
12,
286,
63,
1635,
199,
199,
504,
1639,
14,
2828,
14,
5668,
14,
12151,
14,
773,
12151,
492,
17447,
63,
14528,
12,
8991,
7474,
63,
14528,
199,
504,
1639,
14,
2828,
14,
5668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DataDog/moto | tests/test_ec2/test_tags.py | 2 | 8756 | from __future__ import unicode_literals
import itertools
import boto
from boto.exception import EC2ResponseError
import sure # noqa
from moto import mock_ec2
from nose.tools import assert_raises
@mock_ec2
def test_add_tag():
conn = boto.connect_ec2('the_key', 'the_secret')
reservation = conn.run_instances(... | apache-2.0 | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
7975,
199,
199,
646,
6055,
199,
504,
6055,
14,
1971,
492,
15352,
18,
19712,
199,
646,
3238,
221,
327,
8151,
199,
199,
504,
333,
3459,
492,
1683,
63,
825,
18,
199,
504,
11354,
14,... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
7975,
199,
199,
646,
6055,
199,
504,
6055,
14,
1971,
492,
15352,
18,
19712,
199,
646,
3238,
221,
327,
8151,
199,
199,
504,
333,
3459,
492,
1683,
63,
825,
18,
199,
504,
11354,
14,
2537... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vecnet/vnetsource | simulation_models/model_id.py | 2 | 1655 | """
The ID constants for all known simulation models.
Example::
from simulation_models import model_id
def my_function(sim_model, ...):
if sim_model == model_id.OPEN_MALARIA:
# do something special for OpenMalaria
...
else:
# handle all other simulation mod... | mpl-2.0 | [
624,
199,
1918,
2870,
5262,
367,
1006,
6040,
17625,
1709,
14,
199,
199,
9846,
447,
339,
687,
17625,
63,
992,
492,
1402,
63,
344,
339,
347,
3002,
63,
1593,
8,
5206,
63,
1238,
12,
2263,
304,
267,
340,
4389,
63,
1238,
508,
1402,
63,
... | [
199,
1918,
2870,
5262,
367,
1006,
6040,
17625,
1709,
14,
199,
199,
9846,
447,
339,
687,
17625,
63,
992,
492,
1402,
63,
344,
339,
347,
3002,
63,
1593,
8,
5206,
63,
1238,
12,
2263,
304,
267,
340,
4389,
63,
1238,
508,
1402,
63,
344,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wolverineav/horizon | openstack_dashboard/test/integration_tests/regions/baseregion.py | 13 | 2649 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | [
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
259,
282,
1331,
402,
314,
844,
737,... | [
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
259,
282,
1331,
402,
314,
844,
737,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
EraYaN/CouchPotatoServer | libs/rtorrent/file.py | 174 | 3566 | # Copyright (c) 2013 Chris Lucas, <chris@chrisjlucas.com>
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, ... | gpl-3.0 | [
3,
1898,
334,
67,
9,
6171,
2799,
5719,
491,
947,
305,
12,
665,
335,
5719,
32,
335,
5719,
74,
29918,
305,
14,
957,
30,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
199,
3,
282,
1331,
402,
642... | [
1898,
334,
67,
9,
6171,
2799,
5719,
491,
947,
305,
12,
665,
335,
5719,
32,
335,
5719,
74,
29918,
305,
14,
957,
30,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
199,
3,
282,
1331,
402,
642,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sanjeevtripurari/hue | desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/urls.py | 44 | 1696 | # django-openid-auth - OpenID integration for django.contrib.auth
#
# Copyright (C) 2007 Simon Willison
# Copyright (C) 2008-2013 Canonical Ltd.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions o... | apache-2.0 | [
3,
1639,
13,
15403,
13,
1178,
446,
221,
25463,
13150,
367,
1639,
14,
2828,
14,
1178,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
10751,
265,
644,
8148,
834,
199,
3,
1898,
334,
35,
9,
9079,
13,
6965,
6855,
7174,
12126,
14,
199,
3,
... | [
1639,
13,
15403,
13,
1178,
446,
221,
25463,
13150,
367,
1639,
14,
2828,
14,
1178,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
10751,
265,
644,
8148,
834,
199,
3,
1898,
334,
35,
9,
9079,
13,
6965,
6855,
7174,
12126,
14,
199,
3,
199,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
andela-ooladayo/django | django/contrib/sessions/middleware.py | 104 | 2642 | import time
from importlib import import_module
from django.conf import settings
from django.utils.cache import patch_vary_headers
from django.utils.http import cookie_date
class SessionMiddleware(object):
def __init__(self):
engine = import_module(settings.SESSION_ENGINE)
self.SessionStore = eng... | bsd-3-clause | [
646,
900,
199,
504,
14802,
492,
492,
63,
578,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1208,
14,
1637,
492,
3371,
63,
21989,
63,
2139,
199,
504,
1639,
14,
1208,
14,
1014,
492,
5494,
63,
602,
421,
199,
533,
8... | [
900,
199,
504,
14802,
492,
492,
63,
578,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1208,
14,
1637,
492,
3371,
63,
21989,
63,
2139,
199,
504,
1639,
14,
1208,
14,
1014,
492,
5494,
63,
602,
421,
199,
533,
8596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
40223149/2015cd_midterm | static/Brython3.1.1-20150328-091302/Lib/xml/etree/ElementPath.py | 785 | 9477 | #
# ElementTree
# $Id: ElementPath.py 3375 2008-02-13 08:05:08Z fredrik $
#
# limited xpath support for element trees
#
# history:
# 2003-05-23 fl created
# 2003-05-28 fl added support for // etc
# 2003-08-27 fl fixed parsing of periods in element names
# 2007-09-10 fl new selection engine
# 2007-09-12 fl fix... | gpl-3.0 | [
3,
199,
3,
13139,
199,
3,
2672,
1304,
26,
6566,
2042,
14,
647,
650,
9946,
9079,
13,
996,
13,
969,
19363,
26,
1717,
26,
2036,
58,
289,
581,
25844,
2672,
199,
3,
199,
3,
13988,
14462,
2291,
367,
1819,
14416,
199,
3,
199,
3,
7994,
... | [
199,
3,
13139,
199,
3,
2672,
1304,
26,
6566,
2042,
14,
647,
650,
9946,
9079,
13,
996,
13,
969,
19363,
26,
1717,
26,
2036,
58,
289,
581,
25844,
2672,
199,
3,
199,
3,
13988,
14462,
2291,
367,
1819,
14416,
199,
3,
199,
3,
7994,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
polyaxon/polyaxon | sdks/python/http_client/v1/polyaxon_sdk/models/v1_preset.py | 1 | 8969 | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
14894,
13,
22150,
16869,
1219,
265,
12,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
14894,
13,
22150,
16869,
1219,
265,
12,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ppmt/Crust | flask/lib/python2.7/site-packages/setuptools/command/easy_install.py | 18 | 85008 | #!/usr/bin/env python
"""
Easy Install
------------
A tool for doing automatic download/extract/build of distutils-based Python
packages. For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.
__ https://pythonhosted.org/setuptools/easy_install.html
"""
from... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
624,
199,
28326,
13276,
199,
4559,
199,
199,
33,
4744,
367,
9689,
4834,
5235,
15,
5005,
15,
1506,
402,
7065,
13,
6788,
2018,
199,
5154,
14,
221,
2104,
16212,
3794,
12,
1937,
314,
23073... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
624,
199,
28326,
13276,
199,
4559,
199,
199,
33,
4744,
367,
9689,
4834,
5235,
15,
5005,
15,
1506,
402,
7065,
13,
6788,
2018,
199,
5154,
14,
221,
2104,
16212,
3794,
12,
1937,
314,
23073,
1895... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
factorlibre/OCB | addons/edi/models/res_company.py | 437 | 3186 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2011-2012 OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
7760,
13,
7409,
7653,
428,
14,
33,
14,
665,
1014,
921,
11267,
14,
957,
30,
199,
3,
199,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
7760,
13,
7409,
7653,
428,
14,
33,
14,
665,
1014,
921,
11267,
14,
957,
30,
199,
3,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
buddly27/champollion | source/champollion/parser/js_data.py | 1 | 2654 | # :coding: utf-8
import re
import functools
from .helper import collapse_all
from .helper import get_docstring
#: Regular Expression pattern for data
_DATA_PATTERN = re.compile(
r"(?P<start_regex>(\n|^)) *(?P<export>export +)?(?P<default>default +)?"
r"(?P<type>(const|let|var)) (?P<name>[\w._-]+) *= *(?P<va... | apache-2.0 | [
3,
520,
1523,
26,
2774,
13,
24,
199,
199,
646,
295,
199,
646,
9143,
199,
199,
504,
1275,
3676,
492,
24311,
63,
452,
199,
504,
1275,
3676,
492,
664,
63,
12485,
421,
199,
12573,
18528,
22013,
3851,
367,
666,
199,
63,
3998,
63,
10764... | [
520,
1523,
26,
2774,
13,
24,
199,
199,
646,
295,
199,
646,
9143,
199,
199,
504,
1275,
3676,
492,
24311,
63,
452,
199,
504,
1275,
3676,
492,
664,
63,
12485,
421,
199,
12573,
18528,
22013,
3851,
367,
666,
199,
63,
3998,
63,
10764,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ooici/marine-integrations | mi/dataset/driver/dofst_k/wfp/test/test_driver.py | 1 | 24458 | """
@package mi.dataset.driver.dofst_k.wfp.test.test_driver
@file marine-integrations/mi/dataset/driver/dofst_k/wfp/driver.py
@author Emily Hahn
@brief Test cases for dofst_k_wfp driver
USAGE:
Make tests verbose and provide stdout
* From the IDK
$ bin/dsa/test_driver
$ bin/dsa/test_driver -i [-t test... | bsd-2-clause | [
624,
199,
32,
2491,
10684,
14,
5214,
14,
3090,
14,
1117,
15624,
63,
75,
14,
87,
3997,
14,
396,
14,
396,
63,
3090,
199,
32,
493,
7557,
1132,
13,
5707,
926,
852,
15,
2664,
15,
5214,
15,
3090,
15,
1117,
15624,
63,
75,
15,
87,
399... | [
199,
32,
2491,
10684,
14,
5214,
14,
3090,
14,
1117,
15624,
63,
75,
14,
87,
3997,
14,
396,
14,
396,
63,
3090,
199,
32,
493,
7557,
1132,
13,
5707,
926,
852,
15,
2664,
15,
5214,
15,
3090,
15,
1117,
15624,
63,
75,
15,
87,
3997,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
henjo/pyoa | oaTools/oaExUtl22.py | 1 | 3804 | #
#********************************************************************
#* Copyright (C) 2004 LSI Logic Corporation. *
#* All Rights Reserved. *
#********************************************************************
#
# Sample Test program to try O... | apache-2.0 | [
3,
202,
199,
3,
12360,
1116,
202,
199,
15002,
1898,
334,
35,
9,
8353,
491,
2684,
5297,
530,
11098,
14,
12788,
627,
202,
199,
15002,
260,
2900,
5924,
5702,
14,
32542,
627,
202,
199,
3,
12360,
1116,
202,
199,
3,
202,
199,
3,
15227,
... | [
202,
199,
3,
12360,
1116,
202,
199,
15002,
1898,
334,
35,
9,
8353,
491,
2684,
5297,
530,
11098,
14,
12788,
627,
202,
199,
15002,
260,
2900,
5924,
5702,
14,
32542,
627,
202,
199,
3,
12360,
1116,
202,
199,
3,
202,
199,
3,
15227,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mediapop/django-spreedly | tests/run_tasks.py | 1 | 2567 | #!/usr/bin/env python
import os
import sys
from argparse import ArgumentParser
from path import path
from django.conf import settings
from django.core.management import call_command
from site_conf import DICT_CONF
def conf():
settings.configure(**DICT_CONF)
def run_tests():
"""
Setup the environment ... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
646,
747,
199,
646,
984,
199,
199,
504,
7534,
492,
27615,
199,
504,
931,
492,
931,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
8110,
492,
1240,
63,
1531,
199,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
646,
747,
199,
646,
984,
199,
199,
504,
7534,
492,
27615,
199,
504,
931,
492,
931,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
8110,
492,
1240,
63,
1531,
199,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bubenkoff/pytest | _pytest/terminal.py | 3 | 19986 | """ terminal reporting of the full testing process.
This is a good source for looking at the various reporting hooks.
"""
import pytest
import pluggy
import py
import sys
import time
import platform
def pytest_addoption(parser):
group = parser.getgroup("terminal reporting", "reporting", after="general")
grou... | mit | [
624,
11167,
17290,
402,
314,
2615,
5343,
2112,
14,
199,
199,
2765,
365,
282,
6954,
1350,
367,
10023,
737,
314,
7750,
17290,
12604,
14,
199,
624,
199,
646,
4613,
199,
646,
14202,
4312,
199,
646,
1134,
199,
646,
984,
199,
646,
900,
19... | [
11167,
17290,
402,
314,
2615,
5343,
2112,
14,
199,
199,
2765,
365,
282,
6954,
1350,
367,
10023,
737,
314,
7750,
17290,
12604,
14,
199,
624,
199,
646,
4613,
199,
646,
14202,
4312,
199,
646,
1134,
199,
646,
984,
199,
646,
900,
199,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rnirmal/cinder | cinder/tests/test_iscsi.py | 4 | 3795 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | apache-2.0 | [
3,
6695,
26,
20849,
29,
20,
20105,
29,
20,
25966,
29,
20,
199,
199,
3,
1898,
7760,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
... | [
6695,
26,
20849,
29,
20,
20105,
29,
20,
25966,
29,
20,
199,
199,
3,
1898,
7760,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
xsynergy510x/android_external_chromium_org | chrome/common/extensions/docs/server2/manifest_features.py | 122 | 1683 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''
Provides a Manifest Feature abstraction, similar to but more strict than the
Feature schema (see feature_utility.py).
Each Manifest Feature has a 'level... | bsd-3-clause | [
3,
1898,
6171,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
2344,
199,
17473,
282,
4688... | [
1898,
6171,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
2344,
199,
17473,
282,
4688,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DLance96/ox-dashboard | dashboard/migrations/0022_auto_20160622_0418.py | 1 | 1940 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0021_auto_20160622_0219'),
]
operations = [
migrations.CreateModel(
name='Excuse',
fiel... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
6180,
12,
1709,
421,
199,
533,
12090,
8,
7685,
14,
9816,
304,
339,
5124,
275,
359,
267,
661,
9743,
297,
283... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
6180,
12,
1709,
421,
199,
533,
12090,
8,
7685,
14,
9816,
304,
339,
5124,
275,
359,
267,
661,
9743,
297,
283,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ptitjano/bokeh | bokeh/tests/test_document.py | 2 | 34158 | from __future__ import absolute_import, print_function
import pytest
import unittest
from copy import copy
import bokeh.document as document
from bokeh.io import curdoc
from bokeh.model import Model
from bokeh.models import ColumnDataSource
from bokeh.core.properties import Int, Instance, String, DistanceSpec
class... | bsd-3-clause | [
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
4613,
199,
646,
2882,
199,
199,
504,
1331,
492,
1331,
199,
199,
646,
25214,
14,
3554,
465,
2213,
199,
504,
25214,
14,
2308,
492,
1094,
1301,
199,
504,
2521... | [
636,
2443,
363,
492,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
4613,
199,
646,
2882,
199,
199,
504,
1331,
492,
1331,
199,
199,
646,
25214,
14,
3554,
465,
2213,
199,
504,
25214,
14,
2308,
492,
1094,
1301,
199,
504,
25214,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bdol/bdol-ml | neural_networks/mlp_dpp_dropout/MLP.py | 1 | 18692 | import ConfigParser
import ast
import cPickle as pickle
import dpp
import numpy as np
import os
import shutil
import sys
import time
import uuid
def save_state(params, paramsFilename):
pickle.dump(params, open(paramsFilename, "wb"))
return 0
def rectified_linear(X):
return np.maximum(X, 0.0)
def d_rectified_l... | lgpl-3.0 | [
646,
14196,
199,
646,
6073,
199,
646,
17572,
465,
5927,
199,
646,
366,
802,
199,
646,
2680,
465,
980,
199,
646,
747,
199,
646,
5145,
199,
646,
984,
199,
646,
900,
199,
646,
5377,
199,
199,
318,
3354,
63,
929,
8,
1162,
12,
1862,
... | [
14196,
199,
646,
6073,
199,
646,
17572,
465,
5927,
199,
646,
366,
802,
199,
646,
2680,
465,
980,
199,
646,
747,
199,
646,
5145,
199,
646,
984,
199,
646,
900,
199,
646,
5377,
199,
199,
318,
3354,
63,
929,
8,
1162,
12,
1862,
8117,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
andreif/django | tests/template_tests/syntax_tests/test_spaceless.py | 521 | 1766 | from django.test import SimpleTestCase
from ..utils import setup
class SpacelessTagTests(SimpleTestCase):
@setup({'spaceless01': "{% spaceless %} <b> <i> text </i> </b> {% endspaceless %}"})
def test_spaceless01(self):
output = self.engine.render_to_string('spaceless01')
self.assertEqu... | bsd-3-clause | [
504,
1639,
14,
396,
492,
24424,
199,
199,
504,
2508,
1208,
492,
3272,
421,
199,
533,
19326,
2003,
1931,
2925,
8,
17968,
304,
339,
768,
2758,
3252,
2638,
2003,
614,
356,
22704,
4601,
2003,
3674,
665,
66,
30,
259,
665,
73,
30,
1318,
... | [
1639,
14,
396,
492,
24424,
199,
199,
504,
2508,
1208,
492,
3272,
421,
199,
533,
19326,
2003,
1931,
2925,
8,
17968,
304,
339,
768,
2758,
3252,
2638,
2003,
614,
356,
22704,
4601,
2003,
3674,
665,
66,
30,
259,
665,
73,
30,
1318,
3068,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
goldsborough/.emacs | .emacs.d/.python-environments/default/lib/python3.5/encodings/cp1250.py | 272 | 13686 | """ Python Character Mapping Codec cp1250 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1250.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,in... | mit | [
624,
2018,
17660,
12340,
13732,
7667,
26572,
4046,
687,
283,
32362,
15,
27839,
4149,
15,
17233,
51,
2161,
15,
20509,
15,
2890,
26572,
14,
17715,
7,
543,
486,
2143,
67,
14,
647,
14,
199,
199,
624,
23662,
199,
199,
646,
6010,
199,
199... | [
2018,
17660,
12340,
13732,
7667,
26572,
4046,
687,
283,
32362,
15,
27839,
4149,
15,
17233,
51,
2161,
15,
20509,
15,
2890,
26572,
14,
17715,
7,
543,
486,
2143,
67,
14,
647,
14,
199,
199,
624,
23662,
199,
199,
646,
6010,
199,
199,
568... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TuinfeesT/TuinWolk | tuinwolk/tests/algorithm_test.py | 1 | 5015 | import random, string, sys
GROWTH_RATE = 2 # we only place repo's in locations that support at least GROWTH_RATE times the size of the repo
CHIP_RATE = 0.9 # if a repo has no locations that support GROWTH_RATE * repo.local_size, we chip off a bit off the desired size to see if we can find a repo anyway
MAX_SERVERS = 1... | mit | [
646,
2196,
12,
1059,
12,
984,
199,
199,
39,
11415,
2080,
63,
16553,
275,
499,
327,
781,
1454,
4192,
3831,
1159,
315,
9918,
626,
2291,
737,
5210,
598,
11415,
2080,
63,
16553,
5431,
314,
1568,
402,
314,
3831,
199,
1244,
1772,
63,
1655... | [
2196,
12,
1059,
12,
984,
199,
199,
39,
11415,
2080,
63,
16553,
275,
499,
327,
781,
1454,
4192,
3831,
1159,
315,
9918,
626,
2291,
737,
5210,
598,
11415,
2080,
63,
16553,
5431,
314,
1568,
402,
314,
3831,
199,
1244,
1772,
63,
16553,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
doganov/edx-platform | openedx/core/djangoapps/user_api/preferences/views.py | 60 | 10869 | """
NOTE: this API is WIP and has not yet been approved. Do not use this API
without talking to Christina or Andy.
For more information, see:
https://openedx.atlassian.net/wiki/display/TNL/User+API
"""
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import stat... | agpl-3.0 | [
624,
199,
19855,
26,
642,
3261,
365,
644,
1772,
436,
965,
440,
5966,
2757,
30055,
14,
4226,
440,
675,
642,
3261,
199,
7395,
22811,
316,
370,
2799,
18824,
13765,
503,
6061,
89,
14,
199,
199,
1858,
1655,
2556,
12,
1937,
26,
199,
2859,... | [
199,
19855,
26,
642,
3261,
365,
644,
1772,
436,
965,
440,
5966,
2757,
30055,
14,
4226,
440,
675,
642,
3261,
199,
7395,
22811,
316,
370,
2799,
18824,
13765,
503,
6061,
89,
14,
199,
199,
1858,
1655,
2556,
12,
1937,
26,
199,
2859,
921,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
christophlsa/odoo | openerp/cli/server.py | 187 | 5869 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
961,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kuriositeetti/wamp-tikki | venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py | 1776 | 6840 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer. All R... | mit | [
6565,
16427,
5113,
8068,
11945,
199,
3,
710,
12769,
5495,
365,
17728,
29347,
5960,
17842,
1233,
14,
199,
3,
199,
3,
710,
6026,
9607,
402,
314,
12769,
5495,
365,
199,
3,
20433,
18686,
11098,
14,
199,
3,
20825,
2737,
701,
314,
6026,
9... | [
16427,
5113,
8068,
11945,
199,
3,
710,
12769,
5495,
365,
17728,
29347,
5960,
17842,
1233,
14,
199,
3,
199,
3,
710,
6026,
9607,
402,
314,
12769,
5495,
365,
199,
3,
20433,
18686,
11098,
14,
199,
3,
20825,
2737,
701,
314,
6026,
9607,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Brazelton-Lab/bio_utils | bio_utils/blast_tools/filter_b6_evalue.py | 1 | 3410 | #! /usr/bin/env python3
from __future__ import print_function
"""Writes lines from the B6/M8 file under the given E-value to output
Usage:
b6_evalue_filter.py --b6 <b6 file> --e_value <max e_value>
--output <output file>
Copyright:
filter_b6_evalue.py filter lines of B6/M8 file by ... | gpl-3.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
624,
20908,
2385,
687,
314,
699,
22,
15,
45,
24,
570,
1334,
314,
1627,
662,
13,
585,
370,
1072,
199,
199,
7692,
26,
339... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
624,
20908,
2385,
687,
314,
699,
22,
15,
45,
24,
570,
1334,
314,
1627,
662,
13,
585,
370,
1072,
199,
199,
7692,
26,
339,
330,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.