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 |
|---|---|---|---|---|---|---|---|---|
lispc/Paddle | v1_api_demo/quick_start/dataprovider_emb.py | 10 | 1953 | # Copyright (c) 2016 PaddlePaddle 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 applic... | apache-2.0 | [
3,
1898,
334,
67,
9,
7800,
510,
20101,
48,
20101,
6642,
14,
2900,
5924,
5702,
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,... | [
1898,
334,
67,
9,
7800,
510,
20101,
48,
20101,
6642,
14,
2900,
5924,
5702,
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,
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... |
asadziach/tensorflow | tensorflow/contrib/learn/python/learn/learn_io/pandas_io.py | 92 | 4535 | # Copyright 2016 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... | apache-2.0 | [
3,
1898,
7800,
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,
7800,
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... |
tareqalayan/pytest | _pytest/monkeypatch.py | 1 | 9043 | """ monkeypatching and mocking functionality. """
from __future__ import absolute_import, division, print_function
import os
import sys
import re
import six
from _pytest.fixtures import fixture
RE_IMPORT_ERROR_NAME = re.compile("^No module named (.*)$")
@fixture
def monkeypatch():
"""The returned ``monkeypatch... | mit | [
624,
17309,
316,
436,
1683,
316,
9330,
14,
221,
408,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
870,
63,
1593,
199,
199,
646,
747,
199,
646,
984,
199,
646,
295,
199,
646,
3816,
199,
504,
485,
4462,
14,
8769,
492... | [
17309,
316,
436,
1683,
316,
9330,
14,
221,
408,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
870,
63,
1593,
199,
199,
646,
747,
199,
646,
984,
199,
646,
295,
199,
646,
3816,
199,
504,
485,
4462,
14,
8769,
492,
109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mpobrien/see | see.py | 1 | 6339 | #!/usr/bin/env python
"""
see
A human alternative to dir().
>>> from see import see
>>> help(see)
Copyright (c) 2009 Liam Cooke
http://inky.github.com/see/
Licensed under the GNU General Public License v3. {{{
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
624,
199,
3239,
199,
33,
11779,
13943,
370,
2935,
1252,
339,
1306,
687,
1937,
492,
1937,
272,
1306,
1720,
8,
3239,
9,
199,
199,
7384,
334,
67,
9,
8937,
491,
17741,
445,
1534,
415,
19... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
624,
199,
3239,
199,
33,
11779,
13943,
370,
2935,
1252,
339,
1306,
687,
1937,
492,
1937,
272,
1306,
1720,
8,
3239,
9,
199,
199,
7384,
334,
67,
9,
8937,
491,
17741,
445,
1534,
415,
199,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bkillenit/AbletonAPI | python-api-materials/code/Hack_LiveCurses/rpyc/utils/ssh.py | 3 | 10267 | import os
from subprocess import Popen, PIPE
from rpyc.lib import safe_import
from rpyc.lib.compat import BYTES_LITERAL
signal = safe_import("signal")
# modified from the stdlib pipes module for windows
_safechars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@%_-+=:,./'
_funnychars = '"`$\\'
def s... | mit | [
646,
747,
199,
504,
3873,
492,
13995,
12,
22773,
199,
504,
519,
11357,
14,
773,
492,
5048,
63,
646,
199,
504,
519,
11357,
14,
773,
14,
5819,
492,
6515,
15472,
63,
21692,
199,
4653,
275,
5048,
63,
646,
480,
4653,
531,
199,
199,
3,
... | [
747,
199,
504,
3873,
492,
13995,
12,
22773,
199,
504,
519,
11357,
14,
773,
492,
5048,
63,
646,
199,
504,
519,
11357,
14,
773,
14,
5819,
492,
6515,
15472,
63,
21692,
199,
4653,
275,
5048,
63,
646,
480,
4653,
531,
199,
199,
3,
6042,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
crepererum/invenio | invenio/legacy/bibdocfile/config.py | 12 | 2801 | # This file is part of Invenio.
# Copyright (C) 2012 CERN.
#
# Invenio 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 of the
# License, or (at your option) any later version.
#
# Invenio is d... | gpl-2.0 | [
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
6029,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
... | [
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
6029,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JASchilz/RoverMUD | simple_universe/attachments/ooc_commands.py | 1 | 1072 | from basics import BaseAttachment
class OOCComands(BaseAttachment):
character = False
def __init__(self, character):
self.character = character
self.action_matrix = [
["help", self.do_help,
"Open the help screen, or receive help on a specific command. \
... | apache-2.0 | [
504,
5678,
83,
492,
3523,
22662,
199,
199,
533,
593,
47,
2571,
676,
5915,
8,
1563,
22662,
304,
339,
4528,
275,
756,
339,
347,
636,
826,
721,
277,
12,
4528,
304,
267,
291,
14,
10856,
275,
4528,
398,
291,
14,
1287,
63,
3642,
275,
... | [
5678,
83,
492,
3523,
22662,
199,
199,
533,
593,
47,
2571,
676,
5915,
8,
1563,
22662,
304,
339,
4528,
275,
756,
339,
347,
636,
826,
721,
277,
12,
4528,
304,
267,
291,
14,
10856,
275,
4528,
398,
291,
14,
1287,
63,
3642,
275,
359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ylatuya/Flumotion | flumotion/test/test_component.py | 4 | 5295 | # -*- Mode: Python; test-case-name: flumotion.test.test_component -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Flumotion - a streaming media server
# Copyright (C) 2004,2005,2006,2007 Fluendo, S.L. (www.fluendo.com).
# All rights reserved.
# This file may be distributed and/or modified under the terms of
# the GNU General Publi... | gpl-2.0 | [
3,
1882,
4900,
26,
2018,
27,
511,
13,
2546,
13,
354,
26,
2717,
453,
23193,
14,
396,
14,
396,
63,
3173,
1882,
199,
3,
1321,
26,
338,
26,
386,
26,
3519,
29,
20,
26,
10329,
29,
20,
26,
1086,
29,
20,
199,
3,
199,
3,
11040,
453,
... | [
1882,
4900,
26,
2018,
27,
511,
13,
2546,
13,
354,
26,
2717,
453,
23193,
14,
396,
14,
396,
63,
3173,
1882,
199,
3,
1321,
26,
338,
26,
386,
26,
3519,
29,
20,
26,
10329,
29,
20,
26,
1086,
29,
20,
199,
3,
199,
3,
11040,
453,
231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
appliedx/edx-platform | common/lib/capa/capa/safe_exec/tests/test_lazymod.py | 152 | 1667 | """Test lazymod.py"""
import sys
import unittest
from capa.safe_exec.lazymod import LazyModule
class ModuleIsolation(object):
"""
Manage changes to sys.modules so that we can roll back imported modules.
Create this object, it will snapshot the currently imported modules. When
you call `clean_up()`,... | agpl-3.0 | [
624,
774,
9617,
1494,
14,
647,
624,
199,
199,
646,
984,
199,
646,
2882,
199,
199,
504,
28068,
14,
3489,
63,
1628,
14,
6395,
1494,
492,
22373,
2377,
421,
199,
533,
5673,
1831,
10410,
8,
785,
304,
272,
408,
272,
14944,
4493,
370,
98... | [
774,
9617,
1494,
14,
647,
624,
199,
199,
646,
984,
199,
646,
2882,
199,
199,
504,
28068,
14,
3489,
63,
1628,
14,
6395,
1494,
492,
22373,
2377,
421,
199,
533,
5673,
1831,
10410,
8,
785,
304,
272,
408,
272,
14944,
4493,
370,
984,
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... |
nophead/Skeinforge50plus | fabmetheus_utilities/geometry/geometry_utilities/evaluate_fundamentals/_math.py | 13 | 2590 | """
Boolean geometry utilities.
"""
from __future__ import absolute_import
#Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
import __init__
from fabmetheus_utilities import euclidean
import math
__author__ ... | agpl-3.0 | [
624,
199,
4082,
3400,
15841,
14,
199,
199,
624,
199,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
3,
9346,
965,
370,
506,
8439,
1642,
2952,
652,
965,
1233,
370,
18092,
314,
2366,
6519,
2382,
3847,
8925,
2793,
1133,
1736,
340,
... | [
199,
4082,
3400,
15841,
14,
199,
199,
624,
199,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
3,
9346,
965,
370,
506,
8439,
1642,
2952,
652,
965,
1233,
370,
18092,
314,
2366,
6519,
2382,
3847,
8925,
2793,
1133,
1736,
340,
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... |
kushG/osf.io | website/addons/dataverse/views/crud.py | 1 | 13076 | # -*- coding: utf-8 -*-
import os
import httplib
import logging
import datetime
import requests
from bs4 import BeautifulSoup
from flask import request, make_response
from framework.flask import redirect
from framework.exceptions import HTTPError
from framework.utils import secure_filename
from framework.auth.utils ... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
646,
747,
199,
646,
8809,
199,
646,
2050,
199,
646,
2197,
199,
199,
646,
4145,
199,
504,
9922,
20,
492,
17132,
199,
504,
7209,
492,
1056,
12,
1852,
63,
1310,
199,
199,
504,
10059,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
646,
747,
199,
646,
8809,
199,
646,
2050,
199,
646,
2197,
199,
199,
646,
4145,
199,
504,
9922,
20,
492,
17132,
199,
504,
7209,
492,
1056,
12,
1852,
63,
1310,
199,
199,
504,
10059,
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... |
dsolimando/Hot | hot-jython-modules/src/main/resources/test/test_inspect.py | 9 | 19658 | import sys
import types
import unittest
import inspect
import datetime
from test.test_support import TESTFN, run_unittest, is_jython
from test import inspect_fodder as mod
from test import inspect_fodder2 as mod2
from test import test_support
# Functions tested in this suite:
# ismodule, isclass, ismethod, isfunctio... | gpl-3.0 | [
646,
984,
199,
646,
2943,
199,
646,
2882,
199,
646,
6485,
199,
646,
2197,
199,
199,
504,
511,
14,
396,
63,
4058,
492,
25788,
12,
1255,
63,
2796,
12,
365,
63,
27179,
199,
199,
504,
511,
492,
6485,
63,
70,
364,
424,
465,
3413,
199... | [
984,
199,
646,
2943,
199,
646,
2882,
199,
646,
6485,
199,
646,
2197,
199,
199,
504,
511,
14,
396,
63,
4058,
492,
25788,
12,
1255,
63,
2796,
12,
365,
63,
27179,
199,
199,
504,
511,
492,
6485,
63,
70,
364,
424,
465,
3413,
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... |
SublimeText/PackageDev | plugins/settings/known_settings.py | 1 | 29813 | import collections
import logging
import os
import re
import textwrap
import time
import weakref
import sublime
from sublime_lib import encodings, ResourcePath
from ..lib.weakmethod import WeakMethodProxy
from ..lib import get_setting
from .region_math import VALUE_SCOPE, get_value_region_at, get_last_key_name_from
... | mit | [
646,
5055,
199,
646,
2050,
199,
646,
747,
199,
646,
295,
199,
646,
13390,
199,
646,
900,
199,
646,
13852,
199,
199,
646,
1007,
18687,
199,
504,
1007,
18687,
63,
773,
492,
14134,
12,
7337,
2042,
421,
199,
504,
2508,
773,
14,
10350,
... | [
5055,
199,
646,
2050,
199,
646,
747,
199,
646,
295,
199,
646,
13390,
199,
646,
900,
199,
646,
13852,
199,
199,
646,
1007,
18687,
199,
504,
1007,
18687,
63,
773,
492,
14134,
12,
7337,
2042,
421,
199,
504,
2508,
773,
14,
10350,
765,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AndreyKedo/My_project_blog | node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py | 2767 | 2174 | # Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Applies a fix to CR LF TAB handling in xml.dom.
Fixes this: http://code.google.com/p/chromium/issues/detail?id=76293
Working around this: http://bugs.python.or... | gpl-3.0 | [
3,
1898,
334,
67,
9,
7760,
4475,
3277,
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,
624,
2640,
6528,
28... | [
1898,
334,
67,
9,
7760,
4475,
3277,
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,
624,
2640,
6528,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mcgonagle/ansible_f5 | library_old/bigip_gtm_facts.py | 4 | 16069 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2016 F5 Networks 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
# ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
7800,
481,
21,
17138,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
7800,
481,
21,
17138,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ntt-sic/keystone | keystone/openstack/common/db/sqlalchemy/migration.py | 6 | 10075 | # coding: utf-8
#
# Copyright (c) 2013 OpenStack Foundation
# 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
#
# Unle... | apache-2.0 | [
3,
2803,
26,
2774,
13,
24,
199,
3,
199,
3,
1898,
334,
67,
9,
6171,
14260,
2752,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
... | [
2803,
26,
2774,
13,
24,
199,
3,
199,
3,
1898,
334,
67,
9,
6171,
14260,
2752,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ghickman/django | django/core/management/commands/shell.py | 6 | 4104 | import os
import warnings
from django.core.management.base import BaseCommand
from django.utils.deprecation import RemovedInDjango20Warning
class Command(BaseCommand):
help = "Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available."
requires_system_checks = False
... | bsd-3-clause | [
646,
747,
199,
646,
3598,
199,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
199,
504,
1639,
14,
1208,
14,
15383,
492,
23687,
1165,
3849,
421,
199,
533,
5817,
8,
25150,
304,
272,
1720,
275,
298,
16291,
282,
2018,
12777,
... | [
747,
199,
646,
3598,
199,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
199,
504,
1639,
14,
1208,
14,
15383,
492,
23687,
1165,
3849,
421,
199,
533,
5817,
8,
25150,
304,
272,
1720,
275,
298,
16291,
282,
2018,
12777,
12693... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cbertinato/pandas | pandas/io/excel/_openpyxl.py | 1 | 14098 | from pandas.io.excel._base import ExcelWriter
from pandas.io.excel._util import _validate_freeze_panes
class _OpenpyxlWriter(ExcelWriter):
engine = 'openpyxl'
supported_extensions = ('.xlsx', '.xlsm')
def __init__(self, path, engine=None, mode='w', **engine_kwargs):
# Use the openpyxl module as t... | bsd-3-clause | [
504,
10634,
14,
2308,
14,
28330,
423,
1095,
492,
27832,
6261,
199,
504,
10634,
14,
2308,
14,
28330,
423,
1974,
492,
485,
3502,
63,
18459,
63,
10384,
397,
421,
199,
533,
485,
4299,
647,
15455,
6261,
8,
920,
6067,
6261,
304,
272,
6869... | [
10634,
14,
2308,
14,
28330,
423,
1095,
492,
27832,
6261,
199,
504,
10634,
14,
2308,
14,
28330,
423,
1974,
492,
485,
3502,
63,
18459,
63,
10384,
397,
421,
199,
533,
485,
4299,
647,
15455,
6261,
8,
920,
6067,
6261,
304,
272,
6869,
275... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
saurabh6790/medsynaptic-lib | core/doctype/property_setter/property_setter.py | 34 | 2382 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
def autoname(self):
self.doc.name = self.doc.doc_type + "-" \
+ (self.doc.f... | mit | [
3,
1898,
334,
67,
9,
6171,
12,
6001,
8144,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
10697,
844,
14,
1666,
4190,
14,
2424,
9948,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
23154,
199,
199,
533,
5454,
804,
26,
... | [
1898,
334,
67,
9,
6171,
12,
6001,
8144,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
10697,
844,
14,
1666,
4190,
14,
2424,
9948,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
23154,
199,
199,
533,
5454,
804,
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... |
PanDAWMS/panda-mon-qa | pandamonqa/qasuite/BSXPath.py | 3 | 80212 | # -*- coding: utf-8 -*-
"""
BSXPath.py: XPathEvaluator Extension for BeautifulSoup
"""
__version__ = '0.01e' # based on JavaScript-XPath 0.1.11 (c) 2007 Cybozu Labs, Inc. (http://coderepos.org/share/wiki/JavaScript-XPath)
__date__ = '2009-04-12'
__license__ = 'MIT-style license'
__author__ = 'furyu' ... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
11087,
27645,
14,
647,
26,
1323,
2042,
10006,
16530,
13282,
367,
17132,
199,
199,
624,
199,
363,
1023,
363,
275,
283,
16,
14,
614,
69,
7,
3777,
327,
4079,
641,
15250,
13,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
11087,
27645,
14,
647,
26,
1323,
2042,
10006,
16530,
13282,
367,
17132,
199,
199,
624,
199,
363,
1023,
363,
275,
283,
16,
14,
614,
69,
7,
3777,
327,
4079,
641,
15250,
13,
276... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RRZE-HPC/pycachesim | setup.py | 1 | 4792 | #!/usr/bin/env python
from __future__ import absolute_import
from setuptools.extension import Extension
from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
import os
import io
import re
#import numpy
here = os.path.abspath(os.... | agpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
199,
504,
9116,
14,
3435,
492,
13282,
199,
504,
9116,
492,
3272,
12,
2342,
63,
5154,
221,
327,
16763,
16602,
9116,
1806,
7065,
199,
504,
6010,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
199,
504,
9116,
14,
3435,
492,
13282,
199,
504,
9116,
492,
3272,
12,
2342,
63,
5154,
221,
327,
16763,
16602,
9116,
1806,
7065,
199,
504,
6010,
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... |
martinwicke/tensorflow | tensorflow/python/client/device_lib.py | 149 | 1308 | # Copyright 2016 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... | apache-2.0 | [
3,
1898,
7800,
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,
7800,
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... |
wxthon/googletest | scripts/upload_gtest.py | 1963 | 2851 | #!/usr/bin/env python
#
# Copyright 2009, 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... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8937,
12,
4475,
3277,
14,
199,
3,
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,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8937,
12,
4475,
3277,
14,
199,
3,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
peterm-itr/edx-platform | lms/djangoapps/mobile_api/tests.py | 8 | 1648 | """
Tests for mobile API utilities
"""
import ddt
from rest_framework.test import APITestCase
from courseware.tests.factories import UserFactory
from student import auth
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from xmodule.modulestore.tests.factories import CourseFactory
from .utils i... | agpl-3.0 | [
624,
199,
2925,
367,
21305,
3261,
15841,
199,
624,
199,
199,
646,
366,
3583,
199,
504,
4618,
63,
4857,
14,
396,
492,
10319,
649,
27309,
199,
199,
504,
20736,
14,
2219,
14,
15406,
492,
16047,
199,
504,
6474,
492,
1790,
199,
199,
504,... | [
199,
2925,
367,
21305,
3261,
15841,
199,
624,
199,
199,
646,
366,
3583,
199,
504,
4618,
63,
4857,
14,
396,
492,
10319,
649,
27309,
199,
199,
504,
20736,
14,
2219,
14,
15406,
492,
16047,
199,
504,
6474,
492,
1790,
199,
199,
504,
9872... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kbdick/RecycleTracker | recyclecollector/scrap/gdata-2.0.18/src/gdata/contentforshopping/client.py | 29 | 31884 | #!/usr/bin/python
#
# Copyright (C) 2010-2011 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... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
7129,
13,
8128,
4475,
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... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
7129,
13,
8128,
4475,
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,
570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kalahbrown/HueBigSQL | desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/tests/__init__.py | 44 | 1749 | # django-openid-auth - OpenID integration for django.contrib.auth
#
# Copyright (C) 2009-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 of source code must retain the above ... | 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,
8937,
13,
6965,
6855,
7174,
12126,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
... | [
1639,
13,
15403,
13,
1178,
446,
221,
25463,
13150,
367,
1639,
14,
2828,
14,
1178,
199,
3,
199,
3,
1898,
334,
35,
9,
8937,
13,
6965,
6855,
7174,
12126,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
40223136/w11-2 | static/Brython3.1.0-20150301-090019/Lib/browser/object_storage.py | 627 | 1315 | import pickle
class __UnProvided():
pass
class ObjectStorage():
def __init__(self, storage):
self.storage = storage
def __delitem__(self, key):
del self.storage[pickle.dumps(key)]
def __getitem__(self, key):
return pickle.loads(self.storage[pickle.dumps(key)])
def __se... | gpl-3.0 | [
646,
5927,
199,
199,
533,
636,
1358,
919,
11923,
837,
272,
986,
421,
199,
533,
6935,
6408,
837,
339,
347,
636,
826,
721,
277,
12,
4887,
304,
267,
291,
14,
3494,
275,
4887,
339,
347,
636,
13228,
721,
277,
12,
790,
304,
267,
2150,
... | [
5927,
199,
199,
533,
636,
1358,
919,
11923,
837,
272,
986,
421,
199,
533,
6935,
6408,
837,
339,
347,
636,
826,
721,
277,
12,
4887,
304,
267,
291,
14,
3494,
275,
4887,
339,
347,
636,
13228,
721,
277,
12,
790,
304,
267,
2150,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
andrewyoung1991/abjad | abjad/tools/layouttools/test/test_layouttools_set_line_breaks_by_line_duration_ge.py | 2 | 2235 | # -*- encoding: utf-8 -*-
from abjad import *
def test_layouttools_set_line_breaks_by_line_duration_ge_01():
r'''Iterate classes in expr and accumulate duration.
Add line break after every total le line duration.
'''
staff = Staff()
staff.append(Measure((2, 8), "c'8 d'8"))
staff.append(Measur... | gpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
504,
282,
468,
350,
492,
627,
421,
199,
318,
511,
63,
4209,
2537,
63,
409,
63,
604,
63,
18566,
63,
991,
63,
604,
63,
5553,
63,
303,
63,
614,
837,
272,
519,
2344,
3315,
323,
3992,
315... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
504,
282,
468,
350,
492,
627,
421,
199,
318,
511,
63,
4209,
2537,
63,
409,
63,
604,
63,
18566,
63,
991,
63,
604,
63,
5553,
63,
303,
63,
614,
837,
272,
519,
2344,
3315,
323,
3992,
315,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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/hw_proxy/__openerp__.py | 313 | 1675 | # -*- 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... |
yorvic/.vim | bundle/python-mode/pylibs/pylama/checkers/pylint/logilab/common/modutils.py | 1 | 21802 | # -*- coding: utf-8 -*-
# copyright 2003-2012 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 Genera... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
4248,
13004,
13,
7409,
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,
15... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
4248,
13004,
13,
7409,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ImpalaToGo/ImpalaToGo | thirdparty/gtest-1.6.0/xcode/Scripts/versiongenerate.py | 3088 | 4536 | #!/usr/bin/env python
#
# Copyright 2008, 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... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
9079,
12,
4475,
3277,
14,
199,
3,
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,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
9079,
12,
4475,
3277,
14,
199,
3,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
blacklin/kbengine | kbe/res/scripts/common/Lib/ensurepip/__init__.py | 67 | 6388 | import os
import os.path
import pkgutil
import sys
import tempfile
__all__ = ["version", "bootstrap"]
_SETUPTOOLS_VERSION = "2.1"
_PIP_VERSION = "1.5.6"
# pip currently requires ssl support, so we try to provide a nicer
# error message when that is missing (http://bugs.python.org/issue19744)
_MISSING_SSL_MESSAGE ... | lgpl-3.0 | [
646,
747,
199,
646,
747,
14,
515,
199,
646,
28728,
199,
646,
984,
199,
646,
5549,
421,
199,
363,
452,
363,
275,
2097,
1023,
401,
298,
11146,
937,
421,
199,
63,
20836,
20261,
63,
4612,
275,
298,
18,
14,
17,
2,
199,
199,
63,
48,
... | [
747,
199,
646,
747,
14,
515,
199,
646,
28728,
199,
646,
984,
199,
646,
5549,
421,
199,
363,
452,
363,
275,
2097,
1023,
401,
298,
11146,
937,
421,
199,
63,
20836,
20261,
63,
4612,
275,
298,
18,
14,
17,
2,
199,
199,
63,
48,
1772,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
roqu3/Kernel-2.6.35.14-P500 | tools/perf/scripts/python/syscall-counts-by-pid.py | 944 | 1744 | # system call counts, by pid
# (c) 2010, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Displays system-wide system call totals, broken down by syscall.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os
import sys
sys.path.append(... | gpl-2.0 | [
3,
2656,
1240,
8242,
12,
701,
4422,
199,
3,
334,
67,
9,
7129,
12,
21644,
29385,
665,
29453,
32,
6799,
14,
957,
30,
199,
3,
3909,
1334,
314,
2895,
402,
314,
1664,
14629,
844,
1015,
499,
199,
3,
199,
3,
28750,
2656,
13,
13062,
265... | [
2656,
1240,
8242,
12,
701,
4422,
199,
3,
334,
67,
9,
7129,
12,
21644,
29385,
665,
29453,
32,
6799,
14,
957,
30,
199,
3,
3909,
1334,
314,
2895,
402,
314,
1664,
14629,
844,
1015,
499,
199,
3,
199,
3,
28750,
2656,
13,
13062,
2656,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zhoffice/minos | client/package.py | 5 | 8146 | import argparse
import glob
import hashlib
import os
import pprint
import subprocess
import yaml
import deploy_config
from log import Log
from tank_client import TankClient
def check_directory(path):
if not os.path.exists(path):
Log.print_critical(
'Directory doesn''t exist: ' + path)
if not os.path... | apache-2.0 | [
646,
7534,
199,
646,
5739,
199,
646,
8337,
199,
646,
747,
199,
646,
10933,
199,
646,
3873,
199,
646,
8864,
199,
199,
646,
12287,
63,
888,
199,
199,
504,
943,
492,
5297,
199,
504,
307,
3580,
63,
1258,
492,
377,
3580,
3041,
421,
199... | [
7534,
199,
646,
5739,
199,
646,
8337,
199,
646,
747,
199,
646,
10933,
199,
646,
3873,
199,
646,
8864,
199,
199,
646,
12287,
63,
888,
199,
199,
504,
943,
492,
5297,
199,
504,
307,
3580,
63,
1258,
492,
377,
3580,
3041,
421,
199,
318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kennedyshead/home-assistant | tests/components/nut/test_config_flow.py | 2 | 11140 | """Test the Network UPS Tools (NUT) config flow."""
from unittest.mock import patch
from homeassistant import config_entries, data_entry_flow, setup
from homeassistant.components.nut.const import DOMAIN
from homeassistant.const import CONF_RESOURCES, CONF_SCAN_INTERVAL
from .util import _get_mock_pynutclient
from t... | apache-2.0 | [
624,
774,
314,
7220,
738,
5067,
23228,
334,
46,
934,
9,
1101,
6369,
1041,
199,
199,
504,
2882,
14,
1805,
492,
3371,
199,
199,
504,
8846,
492,
1101,
63,
3189,
12,
666,
63,
2373,
63,
1659,
12,
3272,
199,
504,
8846,
14,
4608,
14,
7... | [
774,
314,
7220,
738,
5067,
23228,
334,
46,
934,
9,
1101,
6369,
1041,
199,
199,
504,
2882,
14,
1805,
492,
3371,
199,
199,
504,
8846,
492,
1101,
63,
3189,
12,
666,
63,
2373,
63,
1659,
12,
3272,
199,
504,
8846,
14,
4608,
14,
78,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
moreati/pandashells | pandashells/lib/arg_lib.py | 7 | 6681 | from pandashells.lib import config_lib
def _check_for_recognized_args(*args):
"""
Raise an error if unrecognized argset is specified
"""
allowed_arg_set = set([
'io_in',
'io_out',
'example',
'xy_plotting',
'decorating',
])
in_arg_set = set(args)
unr... | bsd-2-clause | [
504,
299,
460,
1119,
6840,
14,
773,
492,
1101,
63,
773,
421,
199,
318,
485,
1074,
63,
509,
63,
13221,
63,
589,
2031,
589,
304,
272,
408,
272,
14771,
376,
1125,
340,
24718,
1680,
409,
365,
2013,
272,
408,
272,
4370,
63,
1273,
63,
... | [
299,
460,
1119,
6840,
14,
773,
492,
1101,
63,
773,
421,
199,
318,
485,
1074,
63,
509,
63,
13221,
63,
589,
2031,
589,
304,
272,
408,
272,
14771,
376,
1125,
340,
24718,
1680,
409,
365,
2013,
272,
408,
272,
4370,
63,
1273,
63,
409,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
andybak/hendrix | hendrix/test/testproject/settings.py | 4 | 1047 |
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
ALLOWED_HOSTS = []
TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en-us'
USE_I18N = True
USE_L10N... | mit | [
199,
5287,
275,
715,
199,
7433,
63,
5287,
275,
10990,
199,
199,
27260,
275,
469,
272,
283,
885,
356,
469,
267,
283,
15956,
356,
283,
1176,
14,
697,
14,
7765,
3130,
267,
283,
2339,
356,
3260,
267,
283,
3791,
356,
3260,
267,
283,
90... | [
5287,
275,
715,
199,
7433,
63,
5287,
275,
10990,
199,
199,
27260,
275,
469,
272,
283,
885,
356,
469,
267,
283,
15956,
356,
283,
1176,
14,
697,
14,
7765,
3130,
267,
283,
2339,
356,
3260,
267,
283,
3791,
356,
3260,
267,
283,
9032,
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... |
mm112287/2015cd_midterm | static/Brython3.1.1-20150328-091302/Lib/unittest/test/test_case.py | 738 | 51689 | import difflib
import pprint
import pickle
import re
import sys
import warnings
import weakref
import inspect
from copy import deepcopy
from test import support
import unittest
from .support import (
TestEquality, TestHashing, LoggingResult,
ResultWithNoStartTestRunStopTestRun
)
class Test(object):
"Ke... | gpl-3.0 | [
646,
27070,
199,
646,
10933,
199,
646,
5927,
199,
646,
295,
199,
646,
984,
199,
646,
3598,
199,
646,
13852,
199,
646,
6485,
199,
199,
504,
1331,
492,
14800,
199,
504,
511,
492,
2291,
199,
199,
646,
2882,
199,
199,
504,
1275,
4058,
... | [
27070,
199,
646,
10933,
199,
646,
5927,
199,
646,
295,
199,
646,
984,
199,
646,
3598,
199,
646,
13852,
199,
646,
6485,
199,
199,
504,
1331,
492,
14800,
199,
504,
511,
492,
2291,
199,
199,
646,
2882,
199,
199,
504,
1275,
4058,
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... |
avedaee/DIRAC | Interfaces/scripts/dirac-wms-job-parameters.py | 8 | 1186 | #!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-wms-job-delete
# Author : Stuart Paterson
########################################################################
"""
Retrieve parameters associated to the given DIRAC job
"""
__RCSID__ = "$I... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3949,
199,
3,
2672,
11664,
2632,
4,
199,
3,
3814,
520,
259,
487,
6457,
13,
30297,
13,
2423,
13,
1807,
199,
3,
6529,
520,
221,
1933,
85,
580,
510,
6618,
834,
199,
3949,
199,
624,
523,
13... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3949,
199,
3,
2672,
11664,
2632,
4,
199,
3,
3814,
520,
259,
487,
6457,
13,
30297,
13,
2423,
13,
1807,
199,
3,
6529,
520,
221,
1933,
85,
580,
510,
6618,
834,
199,
3949,
199,
624,
523,
13939,
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... |
sdague/home-assistant | homeassistant/components/aprs/device_tracker.py | 17 | 5575 | """Support for APRS device tracking."""
import logging
import threading
import aprslib
from aprslib import ConnectionError as AprsConnectionError, LoginError
import geopy.distance
import voluptuous as vol
from homeassistant.components.device_tracker import PLATFORM_SCHEMA
from homeassistant.const import (
ATTR_G... | apache-2.0 | [
624,
11532,
367,
437,
3311,
51,
2243,
15161,
1041,
199,
199,
646,
2050,
199,
646,
5796,
199,
199,
646,
2771,
2393,
773,
199,
504,
2771,
2393,
773,
492,
25417,
465,
13450,
2393,
20349,
12,
16430,
547,
199,
646,
2312,
927,
14,
5590,
1... | [
11532,
367,
437,
3311,
51,
2243,
15161,
1041,
199,
199,
646,
2050,
199,
646,
5796,
199,
199,
646,
2771,
2393,
773,
199,
504,
2771,
2393,
773,
492,
25417,
465,
13450,
2393,
20349,
12,
16430,
547,
199,
646,
2312,
927,
14,
5590,
199,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tanglei528/glance | glance/tests/unit/common/test_property_utils.py | 1 | 23549 | # Copyright 2013 OpenStack Foundation.
# 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 req... | apache-2.0 | [
3,
1898,
6171,
14260,
2752,
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,
440,
675,
642,
570,
871,
315,
4151,
543,
... | [
1898,
6171,
14260,
2752,
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,
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... |
ppasq/geonode | geonode/base/management/commands/delete_orphaned_thumbs.py | 18 | 1091 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# 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 ... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3949,
3,
199,
3,
199,
3,
1898,
334,
35,
9,
7800,
4403,
10748,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3949,
3,
199,
3,
199,
3,
1898,
334,
35,
9,
7800,
4403,
10748,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mykoz/ThinkStats2 | code/thinkstats2.py | 68 | 68825 | """This file contains code for use with "Think Stats" and
"Think Bayes", both by Allen B. Downey, available from greenteapress.com
Copyright 2014 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
"""This file contains class definitions for:
H... | gpl-3.0 | [
624,
2765,
570,
3509,
1233,
367,
675,
543,
298,
2719,
2292,
29062,
2,
436,
199,
2,
2719,
2292,
29434,
397,
401,
3865,
701,
4580,
552,
699,
14,
577,
583,
23263,
12,
2808,
687,
12431,
266,
439,
753,
14,
957,
199,
199,
7384,
6927,
45... | [
2765,
570,
3509,
1233,
367,
675,
543,
298,
2719,
2292,
29062,
2,
436,
199,
2,
2719,
2292,
29434,
397,
401,
3865,
701,
4580,
552,
699,
14,
577,
583,
23263,
12,
2808,
687,
12431,
266,
439,
753,
14,
957,
199,
199,
7384,
6927,
4580,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
paulorauber/nn | examples/rnn.py | 1 | 2389 | import numpy as np
from sklearn.utils import check_random_state
from nn.model.recurrent import RecurrentNetwork
random_state = check_random_state(None)
def nback(n, k, length):
"""Random n-back targets given n, number of digits k and sequence length"""
Xi = random_state.randint(k, size=length)
yi = np.ze... | mit | [
646,
2680,
465,
980,
199,
504,
6357,
14,
1208,
492,
1104,
63,
2355,
63,
929,
199,
199,
504,
11542,
14,
1238,
14,
31897,
492,
799,
1818,
4491,
199,
199,
2355,
63,
929,
275,
1104,
63,
2355,
63,
929,
8,
403,
9,
199,
199,
318,
302,
... | [
2680,
465,
980,
199,
504,
6357,
14,
1208,
492,
1104,
63,
2355,
63,
929,
199,
199,
504,
11542,
14,
1238,
14,
31897,
492,
799,
1818,
4491,
199,
199,
2355,
63,
929,
275,
1104,
63,
2355,
63,
929,
8,
403,
9,
199,
199,
318,
302,
894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MoamerEncsConcordiaCa/tensorflow | tensorflow/contrib/ndlstm/python/lstm1d_test.py | 94 | 4122 | # Copyright 2016 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 applicable ... | apache-2.0 | [
3,
1898,
7800,
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,
7800,
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... |
cldershem/osf.io | website/mailchimp_utils.py | 16 | 2747 | # -*- coding: utf-8 -*-
import mailchimp
from framework import sentry
from framework.tasks import app
from framework.auth.core import User
from framework.tasks.handlers import queued_task
from framework.auth.signals import user_confirmed
from framework.transactions.context import transaction
from website import set... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
646,
6016,
335,
3236,
199,
199,
504,
10059,
492,
26230,
199,
504,
10059,
14,
5054,
492,
1145,
199,
504,
10059,
14,
1178,
14,
1018,
492,
2876,
199,
504,
10059,
14,
5054,
14,
5586,
49... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
646,
6016,
335,
3236,
199,
199,
504,
10059,
492,
26230,
199,
504,
10059,
14,
5054,
492,
1145,
199,
504,
10059,
14,
1178,
14,
1018,
492,
2876,
199,
504,
10059,
14,
5054,
14,
5586,
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... |
k4cg/Rezeptionistin | plugins/temperature.py | 1 | 1851 | # coding: utf8
import socket
import urllib2
import json
from plugin import Plugin
class Temperature(Plugin):
def __init__(self, config=None):
try:
self.wunderground = config.get('Temperature', 'wunderground')
except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
print "Temperature w... | mit | [
3,
2803,
26,
2774,
24,
199,
199,
646,
2838,
199,
646,
4011,
18,
199,
646,
2022,
199,
504,
3589,
492,
11349,
199,
199,
533,
12540,
7899,
8,
5061,
304,
819,
347,
636,
826,
721,
277,
12,
1101,
29,
403,
304,
272,
862,
26,
489,
291,
... | [
2803,
26,
2774,
24,
199,
199,
646,
2838,
199,
646,
4011,
18,
199,
646,
2022,
199,
504,
3589,
492,
11349,
199,
199,
533,
12540,
7899,
8,
5061,
304,
819,
347,
636,
826,
721,
277,
12,
1101,
29,
403,
304,
272,
862,
26,
489,
291,
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... |
blockc/fabric | bddtests/peer/configuration_pb2.py | 17 | 4136 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: peer/configuration.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflectio... | apache-2.0 | [
3,
17065,
701,
314,
4113,
3335,
6365,
14,
221,
3506,
2845,
24981,
1,
199,
3,
1350,
26,
9104,
15,
4758,
14,
2625,
199,
199,
646,
984,
199,
63,
66,
29,
1274,
14,
1023,
63,
815,
59,
16,
61,
28,
19,
436,
334,
2734,
671,
26,
88,
... | [
17065,
701,
314,
4113,
3335,
6365,
14,
221,
3506,
2845,
24981,
1,
199,
3,
1350,
26,
9104,
15,
4758,
14,
2625,
199,
199,
646,
984,
199,
63,
66,
29,
1274,
14,
1023,
63,
815,
59,
16,
61,
28,
19,
436,
334,
2734,
671,
26,
88,
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... |
sbidoul/pip | tests/unit/test_locations.py | 4 | 5324 | """
locations.py tests
"""
import getpass
import os
import shutil
import sys
import tempfile
from unittest.mock import Mock
import pytest
from pip._internal.locations import SCHEME_KEYS, get_scheme
if sys.platform == 'win32':
pwd = Mock()
else:
import pwd
def _get_scheme_dict(*args, **kwargs):
scheme ... | mit | [
624,
199,
8022,
14,
647,
2295,
199,
199,
624,
199,
646,
18354,
199,
646,
747,
199,
646,
5145,
199,
646,
984,
199,
646,
5549,
199,
504,
2882,
14,
1805,
492,
4420,
199,
199,
646,
4613,
199,
199,
504,
7305,
423,
4672,
14,
8022,
492,
... | [
199,
8022,
14,
647,
2295,
199,
199,
624,
199,
646,
18354,
199,
646,
747,
199,
646,
5145,
199,
646,
984,
199,
646,
5549,
199,
504,
2882,
14,
1805,
492,
4420,
199,
199,
646,
4613,
199,
199,
504,
7305,
423,
4672,
14,
8022,
492,
428,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
2013Commons/HUE-SHARK | desktop/core/ext-py/Django-1.2.3/django/contrib/messages/storage/base.py | 399 | 6134 | from django.conf import settings
from django.utils.encoding import force_unicode, StrAndUnicode
from django.contrib.messages import constants, utils
LEVEL_TAGS = utils.get_level_tags()
class Message(StrAndUnicode):
"""
Represents an actual message that can be stored in any of the supported
storage class... | apache-2.0 | [
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1208,
14,
2991,
492,
3542,
63,
2975,
12,
8303,
3325,
7087,
199,
504,
1639,
14,
2828,
14,
3431,
492,
5262,
12,
3778,
421,
199,
11817,
63,
17626,
275,
3778,
14,
362,
63,
1896,
63,
... | [
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1208,
14,
2991,
492,
3542,
63,
2975,
12,
8303,
3325,
7087,
199,
504,
1639,
14,
2828,
14,
3431,
492,
5262,
12,
3778,
421,
199,
11817,
63,
17626,
275,
3778,
14,
362,
63,
1896,
63,
2969,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Drvanon/Game | venv/lib/python3.3/site-packages/werkzeug/serving.py | 309 | 27668 | # -*- coding: utf-8 -*-
"""
werkzeug.serving
~~~~~~~~~~~~~~~~
There are many ways to serve a WSGI application. While you're developing
it you usually don't want a full blown webserver like Apache but a simple
standalone one. From Python 2.5 onwards there is the `wsgiref`_ server in
the standa... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
14717,
272,
18294,
339,
6006,
787,
5002,
15217,
370,
14062,
282,
9279,
4223,
14,
221,
22117,
1265,
3984,
477,
3419,
4073,
272,
652,
1265,
9987,
2793,
1133,
2934,
282,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
14717,
272,
18294,
339,
6006,
787,
5002,
15217,
370,
14062,
282,
9279,
4223,
14,
221,
22117,
1265,
3984,
477,
3419,
4073,
272,
652,
1265,
9987,
2793,
1133,
2934,
282,
2615,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shootstar/novatest | nova/api/openstack/compute/plugins/v3/rescue.py | 4 | 3531 | # Copyright 2011 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 or a... | apache-2.0 | [
3,
257,
1898,
7760,
14260,
2752,
199,
3,
199,
3,
257,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
257,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
333... | [
257,
1898,
7760,
14260,
2752,
199,
3,
199,
3,
257,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
257,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
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... |
wemanuel/smry | server-auth/ls/google-cloud-sdk/.install/.backup/lib/googlecloudapis/container/v1/container_v1_messages.py | 4 | 19560 | """Generated message classes for container version v1.
The Google Container Engine API is used for building and managing container
based applications, powered by the open source Kubernetes technology.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from protorpc import messages as _messages
... | apache-2.0 | [
624,
12706,
1245,
3992,
367,
3970,
1015,
373,
17,
14,
199,
199,
1918,
4475,
15395,
12580,
3261,
365,
1202,
367,
10015,
436,
28453,
3970,
199,
6788,
13103,
12,
13131,
16179,
701,
314,
1551,
1350,
28723,
1565,
24731,
14,
199,
624,
199,
... | [
12706,
1245,
3992,
367,
3970,
1015,
373,
17,
14,
199,
199,
1918,
4475,
15395,
12580,
3261,
365,
1202,
367,
10015,
436,
28453,
3970,
199,
6788,
13103,
12,
13131,
16179,
701,
314,
1551,
1350,
28723,
1565,
24731,
14,
199,
624,
199,
3,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
t-wissmann/qutebrowser | qutebrowser/misc/savemanager.py | 1 | 8427 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2015-2020 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser 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 S... | gpl-3.0 | [
3,
6695,
26,
18133,
29,
1548,
570,
2991,
29,
1624,
13,
24,
23014,
29,
20,
5584,
29,
20,
10844,
26,
199,
199,
3,
1898,
6900,
13,
13934,
11040,
269,
5653,
699,
6558,
72,
262,
334,
1918,
27154,
9,
665,
1198,
32,
392,
31127,
14,
130... | [
6695,
26,
18133,
29,
1548,
570,
2991,
29,
1624,
13,
24,
23014,
29,
20,
5584,
29,
20,
10844,
26,
199,
199,
3,
1898,
6900,
13,
13934,
11040,
269,
5653,
699,
6558,
72,
262,
334,
1918,
27154,
9,
665,
1198,
32,
392,
31127,
14,
1308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
les69/calvin-base | calvin/actorstore/systemactors/net/UDPListener.py | 2 | 3328 | # -*- coding: utf-8 -*-
# Copyright (c) 2015 Ericsson AB
#
# 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,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
6900,
662,
1567,
385,
265,
14840,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
67... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
6900,
662,
1567,
385,
265,
14840,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
guozhangwang/kafka | tests/kafkatest/services/log_compaction_tester.py | 3 | 4139 | # 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"); you may not use ... | apache-2.0 | [
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
14857,
12378,... | [
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
14857,
12378,
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... |
agopalak/football_pred | pre_proc/proc_data.py | 1 | 4667 |
import sys
import yaml
import re
import datetime as DT
import logging
from rainbow_logging_handler import RainbowLoggingHandler
import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn_pandas import DataFrameMapper
# Capturing current module. Needed to call getattr on this module
this_m... | mit | [
199,
646,
984,
199,
646,
8864,
199,
646,
295,
199,
646,
2197,
465,
19852,
199,
199,
646,
2050,
199,
504,
660,
262,
22856,
63,
4806,
63,
2232,
492,
820,
1581,
22856,
14054,
2461,
199,
199,
646,
10634,
465,
6454,
199,
646,
2680,
465,
... | [
646,
984,
199,
646,
8864,
199,
646,
295,
199,
646,
2197,
465,
19852,
199,
199,
646,
2050,
199,
504,
660,
262,
22856,
63,
4806,
63,
2232,
492,
820,
1581,
22856,
14054,
2461,
199,
199,
646,
10634,
465,
6454,
199,
646,
2680,
465,
980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Kongsea/tensorflow | tensorflow/python/eager/graph_only_ops.py | 69 | 2363 | # Copyright 2017 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... | apache-2.0 | [
3,
1898,
9708,
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,
9708,
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... |
petrutlucian94/nova | nova/tests/unit/virt/xenapi/test_volumeops.py | 65 | 24052 | # Copyright (c) 2012 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 | [
3,
1898,
334,
67,
9,
6029,
445,
390,
1904,
15285,
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,
259,
440,
675,
642,
570,
871,
315,
4151,
5... | [
1898,
334,
67,
9,
6029,
445,
390,
1904,
15285,
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,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
amir-qayyum-khan/edx-platform | common/lib/xmodule/xmodule/assetstore/assetmgr.py | 148 | 2171 | """
Asset Manager
Interface allowing course asset saving/retrieving.
Handles:
- saving asset in the BlobStore -and- saving asset metadata in course modulestore.
- retrieving asset metadata from course modulestore -and- returning URL to asset -or- asset bytes.
Phase 1: Checks to see if an asset's metadata can be f... | agpl-3.0 | [
624,
199,
19979,
13537,
199,
199,
4267,
17266,
2518,
8977,
13369,
15,
11235,
69,
4007,
14,
199,
23555,
26,
523,
446,
13369,
8977,
315,
314,
31745,
5502,
446,
460,
13,
13369,
8977,
3341,
315,
2518,
10996,
14,
523,
446,
23812,
8977,
334... | [
199,
19979,
13537,
199,
199,
4267,
17266,
2518,
8977,
13369,
15,
11235,
69,
4007,
14,
199,
23555,
26,
523,
446,
13369,
8977,
315,
314,
31745,
5502,
446,
460,
13,
13369,
8977,
3341,
315,
2518,
10996,
14,
523,
446,
23812,
8977,
3341,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
terhorst/psmcpp | test/unit/scrm_sim.py | 2 | 4001 | #!/usr/bin/env python2.7
from __future__ import print_function, division
from subprocess import check_output
from math import log
import random
import numpy as np
import itertools
import os
import json
from collections import Counter, namedtuple, defaultdict
from phylogenies import leaves, newick2tree, parent_of
from ... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
18,
14,
23,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
504,
3873,
492,
1104,
63,
1199,
199,
504,
3473,
492,
943,
199,
646,
2196,
199,
646,
2680,
465,
980,
199,
646,
7975,
1... | [
2647,
15,
1393,
15,
1813,
2366,
18,
14,
23,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
504,
3873,
492,
1104,
63,
1199,
199,
504,
3473,
492,
943,
199,
646,
2196,
199,
646,
2680,
465,
980,
199,
646,
7975,
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... |
level12/blazeweb | tests/apps/blazewebtestapp/components/tests/views.py | 2 | 5636 | from blazeweb.globals import rg
from blazeweb.content import getcontent
from blazeweb.utils import redirect
from blazeweb.views import View, forward, jsonify
from werkzeug.exceptions import ServiceUnavailable
from formencode.validators import UnicodeString, Int
class Rvb(View):
def default(self):
# this ... | bsd-3-clause | [
504,
330,
416,
90,
546,
2871,
14,
8473,
492,
23136,
199,
504,
330,
416,
90,
546,
2871,
14,
1317,
492,
664,
1317,
199,
504,
330,
416,
90,
546,
2871,
14,
1208,
492,
4660,
199,
504,
330,
416,
90,
546,
2871,
14,
4196,
492,
10935,
12... | [
330,
416,
90,
546,
2871,
14,
8473,
492,
23136,
199,
504,
330,
416,
90,
546,
2871,
14,
1317,
492,
664,
1317,
199,
504,
330,
416,
90,
546,
2871,
14,
1208,
492,
4660,
199,
504,
330,
416,
90,
546,
2871,
14,
4196,
492,
10935,
12,
756... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
daviddoria/PointGraphsPhase1 | Utilities/vtkTclTest2Py/mccases.py | 10 | 1065 | """This is python equivalent of Wrapping/Tcl/vtktesting/mccases.tcl.
Used for setting vertex values for clipping, cutting, and contouring tests.
This script is used while running python tests translated from Tcl."""
def case1 ( scalars, IN, OUT, caseLabel ):
scalars.InsertValue(0,IN )
scalars.InsertValue(1,OUT... | bsd-3-clause | [
624,
2765,
365,
2366,
7353,
402,
644,
15521,
15,
29175,
15,
11919,
4776,
15,
77,
2055,
3274,
14,
23644,
14,
199,
9167,
367,
4260,
12759,
1338,
367,
5053,
3637,
12,
10415,
1337,
12,
436,
406,
475,
4039,
2295,
14,
199,
2765,
2884,
365... | [
2765,
365,
2366,
7353,
402,
644,
15521,
15,
29175,
15,
11919,
4776,
15,
77,
2055,
3274,
14,
23644,
14,
199,
9167,
367,
4260,
12759,
1338,
367,
5053,
3637,
12,
10415,
1337,
12,
436,
406,
475,
4039,
2295,
14,
199,
2765,
2884,
365,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nicklhy/mxnet | tests/nightly/dist_lenet.py | 52 | 1839 | #!/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
# "L... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
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... |
jamiefolsom/edx-platform | lms/djangoapps/teams/management/commands/reindex_course_team.py | 34 | 2408 | """ Management command to update course_teams' search index. """
from django.core.management import BaseCommand, CommandError
from django.core.exceptions import ObjectDoesNotExist
from django.conf import settings
from optparse import make_option
from textwrap import dedent
from teams.models import CourseTeam
class C... | agpl-3.0 | [
624,
8259,
1414,
370,
1678,
2518,
63,
19048,
7,
2754,
1478,
14,
408,
199,
504,
1639,
14,
1018,
14,
8110,
492,
22239,
12,
14393,
199,
504,
1639,
14,
1018,
14,
3924,
492,
24803,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
8691,
4... | [
8259,
1414,
370,
1678,
2518,
63,
19048,
7,
2754,
1478,
14,
408,
199,
504,
1639,
14,
1018,
14,
8110,
492,
22239,
12,
14393,
199,
504,
1639,
14,
1018,
14,
3924,
492,
24803,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
8691,
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,
1... |
Ali-aqrabawi/ezclinic | lib/django/contrib/auth/management/commands/changepassword.py | 65 | 2685 | from __future__ import unicode_literals
import getpass
from django.contrib.auth import get_user_model
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions import ValidationError
from django.core.management.base import BaseCommand, CommandError
from django.db import DEFAULT... | mit | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
18354,
199,
199,
504,
1639,
14,
2828,
14,
1178,
492,
664,
63,
751,
63,
1238,
199,
504,
1639,
14,
2828,
14,
1178,
14,
2060,
63,
6136,
492,
4107,
63,
2060,
199,
504,
1639,
1... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
18354,
199,
199,
504,
1639,
14,
2828,
14,
1178,
492,
664,
63,
751,
63,
1238,
199,
504,
1639,
14,
2828,
14,
1178,
14,
2060,
63,
6136,
492,
4107,
63,
2060,
199,
504,
1639,
14,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DaniilLeksin/gc | wx/tools/Editra/src/syntax/_inno.py | 3 | 7749 | ###############################################################################
# Name: inno.py #
# Purpose: Syntax configuration module for Inno Setup Scripts #
# Author: Cody Precord <cprecord@editra.org> #
... | apache-2.0 | [
11490,
199,
3,
2812,
26,
315,
889,
14,
647,
2476,
17388,
327,
199,
3,
23177,
4070,
26,
18377,
2897,
859,
367,
1010,
889,
12439,
14914,
83,
463,
327,
199,
3,
6529,
26,
445,
1351,
510,
3059,
665,
67,
657,
1577,
32,
6297,
1239,
14,
... | [
199,
3,
2812,
26,
315,
889,
14,
647,
2476,
17388,
327,
199,
3,
23177,
4070,
26,
18377,
2897,
859,
367,
1010,
889,
12439,
14914,
83,
463,
327,
199,
3,
6529,
26,
445,
1351,
510,
3059,
665,
67,
657,
1577,
32,
6297,
1239,
14,
1308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mylukin/Creeper | requests/packages/urllib3/packages/ordered_dict.py | 2040 | 8935 | # Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and pypy.
# Passes Python2.7's test suite and incorporates all the latest updates.
# Copyright 2009 Raymond Hettinger, released under the MIT License.
# http://code.activestate.com/recipes/576693/
try:
from thread import get_ident as _get_iden... | apache-2.0 | [
3,
10257,
719,
402,
8773,
342,
1021,
626,
7858,
641,
2018,
499,
14,
20,
12,
499,
14,
21,
12,
499,
14,
22,
12,
499,
14,
23,
436,
1134,
647,
14,
199,
3,
510,
1916,
2018,
18,
14,
23,
1159,
511,
5241,
436,
30147,
2335,
1006,
314,
... | [
10257,
719,
402,
8773,
342,
1021,
626,
7858,
641,
2018,
499,
14,
20,
12,
499,
14,
21,
12,
499,
14,
22,
12,
499,
14,
23,
436,
1134,
647,
14,
199,
3,
510,
1916,
2018,
18,
14,
23,
1159,
511,
5241,
436,
30147,
2335,
1006,
314,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
thefinn93/CouchPotatoServer | libs/git/ref_container.py | 122 | 2242 | # Copyright (c) 2009, Rotem Yaari <vmalloc@gmail.com>
# 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 li... | gpl-3.0 | [
3,
1898,
334,
67,
9,
8937,
12,
6848,
563,
1488,
65,
759,
665,
86,
23981,
32,
6799,
14,
957,
30,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
... | [
1898,
334,
67,
9,
8937,
12,
6848,
563,
1488,
65,
759,
665,
86,
23981,
32,
6799,
14,
957,
30,
199,
3,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zstackio/zstack-woodpecker | integrationtest/vm/virtualrouter/test_update_vm_cpu_memory2.py | 2 | 1813 | '''
Test change cpu and memory configuration when VM is running
@author: quarkonics
'''
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.test_state as test_state
#import zstackwoodpecker.operations.host_operations as host_ops
import zstackwoodpe... | apache-2.0 | [
2344,
202,
199,
774,
1570,
5033,
436,
4402,
2897,
1380,
7525,
365,
3879,
202,
199,
32,
2502,
26,
2173,
1096,
265,
2932,
202,
199,
2344,
202,
199,
646,
1315,
2340,
22736,
321,
22043,
14,
396,
63,
1974,
465,
511,
63,
1974,
202,
199,
... | [
202,
199,
774,
1570,
5033,
436,
4402,
2897,
1380,
7525,
365,
3879,
202,
199,
32,
2502,
26,
2173,
1096,
265,
2932,
202,
199,
2344,
202,
199,
646,
1315,
2340,
22736,
321,
22043,
14,
396,
63,
1974,
465,
511,
63,
1974,
202,
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... |
mdshuai/UATFramework | steps/common.py | 3 | 3982 | '''Common test methods'''
from behave import *
@given(u'"{host}" hosts from dynamic inventory')
def step_impl(context, host):
context.inventory = "dynamic"
context.target_host = host
@given(u'"{host}" hosts from static inventory')
def step_impl(context, host):
context.inventory = "static"
context.ta... | gpl-2.0 | [
2344,
7844,
511,
3102,
2344,
199,
199,
504,
24062,
492,
627,
199,
199,
32,
11809,
8,
85,
4065,
91,
1102,
7063,
7057,
687,
8336,
8200,
358,
199,
318,
3650,
63,
5472,
8,
1100,
12,
1591,
304,
272,
1067,
14,
7212,
275,
298,
7764,
2,
... | [
7844,
511,
3102,
2344,
199,
199,
504,
24062,
492,
627,
199,
199,
32,
11809,
8,
85,
4065,
91,
1102,
7063,
7057,
687,
8336,
8200,
358,
199,
318,
3650,
63,
5472,
8,
1100,
12,
1591,
304,
272,
1067,
14,
7212,
275,
298,
7764,
2,
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... |
vabs22/zulip | docs/conf.py | 5 | 9917 | # -*- coding: utf-8 -*-
#
# zulip-contributor-docs documentation build configuration file, created by
# sphinx-quickstart on Mon Aug 17 16:24:04 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenera... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1315,
11294,
13,
16833,
13,
4757,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
10953,
25298,
5557,
3193,
26,
1194,
26,
966,
6900,
14,
199,
3,
199,
3,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1315,
11294,
13,
16833,
13,
4757,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
10953,
25298,
5557,
3193,
26,
1194,
26,
966,
6900,
14,
199,
3,
199,
3,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PlayUAV/MissionPlanner | Lib/site-packages/numpy/ma/bench.py | 51 | 6658 | #!"C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\bin\Debug\ipy.exe"
# encoding: utf-8
import timeit
#import IPython.ipapi
#ip = IPython.ipapi.get()
#from IPython import ipmagic
import numpy
#from numpy import ma
#from numpy.ma import filled
#from numpy.ma.testutils import assert_equal
... | gpl-3.0 | [
3168,
2,
35,
3427,
12117,
60,
526,
71,
60,
26872,
60,
15039,
13225,
7129,
60,
24286,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1393,
60,
7084,
60,
73,
647,
14,
5803,
2,
199,
3,
2644,
26,
2... | [
2,
35,
3427,
12117,
60,
526,
71,
60,
26872,
60,
15039,
13225,
7129,
60,
24286,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1393,
60,
7084,
60,
73,
647,
14,
5803,
2,
199,
3,
2644,
26,
2774,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dimroc/tensorflow-mnist-tutorial | lib/python3.6/site-packages/tensorflow/contrib/metrics/python/metrics/classification.py | 23 | 2583 | # Copyright 2016 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... | apache-2.0 | [
3,
1898,
7800,
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,
7800,
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... |
asajeffrey/servo | components/script/dom/bindings/codegen/parser/tests/test_empty_sequence_default_value.py | 15 | 1132 | import WebIDL
def WebIDLTest(parser, harness):
threw = False
try:
parser.parse("""
interface X {
const sequence<long> foo = [];
};
""")
results = parser.finish()
except Exception as x:
threw = True
harness.ok(threw, "Constant canno... | mpl-2.0 | [
646,
22817,
199,
199,
318,
22817,
774,
8,
2087,
12,
20458,
304,
272,
28176,
275,
756,
272,
862,
26,
267,
1798,
14,
1122,
4852,
288,
3217,
1323,
469,
1598,
950,
3414,
28,
2809,
30,
3925,
275,
22750,
288,
16735,
267,
7857,
398,
2058,
... | [
22817,
199,
199,
318,
22817,
774,
8,
2087,
12,
20458,
304,
272,
28176,
275,
756,
272,
862,
26,
267,
1798,
14,
1122,
4852,
288,
3217,
1323,
469,
1598,
950,
3414,
28,
2809,
30,
3925,
275,
22750,
288,
16735,
267,
7857,
398,
2058,
275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tiotao/morpherpy | env/Lib/site-packages/sqlalchemy/util/_collections.py | 7 | 24509 | # util/_collections.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Collection classes and helpers."""
import itertools
import weakref
import ope... | mit | [
3,
4884,
15607,
7882,
14,
647,
199,
3,
1898,
334,
35,
9,
11811,
13,
6965,
314,
14303,
11462,
436,
8417,
665,
3239,
10610,
570,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
14303,
436,
365,
14286,
1334,
199,
3,
314,
10697,
844,
... | [
4884,
15607,
7882,
14,
647,
199,
3,
1898,
334,
35,
9,
11811,
13,
6965,
314,
14303,
11462,
436,
8417,
665,
3239,
10610,
570,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
14303,
436,
365,
14286,
1334,
199,
3,
314,
10697,
844,
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... |
amazinger2013/OpenSesame | libqtopensesame/sketchpad_elements/_textline.py | 2 | 2960 | #-*- coding:utf-8 -*-
"""
This file is part of openexp.
openexp 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.
openexp is distributed in ... | gpl-3.0 | [
3,
13,
1837,
2803,
26,
1624,
13,
24,
1882,
199,
199,
624,
199,
2765,
570,
365,
1777,
402,
1551,
1474,
14,
199,
199,
1490,
1474,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
390,
1334,
314,
2895,
402,
314,
... | [
13,
1837,
2803,
26,
1624,
13,
24,
1882,
199,
199,
624,
199,
2765,
570,
365,
1777,
402,
1551,
1474,
14,
199,
199,
1490,
1474,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
390,
1334,
314,
2895,
402,
314,
1664,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pubnub/Zopkio | zopkio/reporters/html_reporter.py | 3 | 10389 | # Copyright 2014 LinkedIn Corp.
#
# 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.... | apache-2.0 | [
3,
1898,
6927,
10967,
379,
607,
22304,
14,
199,
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722... | [
1898,
6927,
10967,
379,
607,
22304,
14,
199,
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
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... |
jindongh/kombu | kombu/transport/virtual/exchange.py | 33 | 4580 | """
kombu.transport.virtual.exchange
================================
Implementations of the standard exchanges defined
by the AMQ protocol (excluding the `headers` exchange).
"""
from __future__ import absolute_import
from kombu.utils import escape_regex
import re
class ExchangeType(object):
"""Implements t... | bsd-3-clause | [
624,
199,
75,
676,
464,
14,
5545,
14,
2065,
14,
14197,
199,
2486,
199,
199,
26924,
1298,
402,
314,
4465,
444,
6627,
3247,
199,
991,
314,
437,
14449,
4113,
221,
334,
476,
4923,
314,
658,
2139,
64,
15343,
680,
199,
199,
624,
199,
50... | [
199,
75,
676,
464,
14,
5545,
14,
2065,
14,
14197,
199,
2486,
199,
199,
26924,
1298,
402,
314,
4465,
444,
6627,
3247,
199,
991,
314,
437,
14449,
4113,
221,
334,
476,
4923,
314,
658,
2139,
64,
15343,
680,
199,
199,
624,
199,
504,
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... |
alexeyum/scikit-learn | sklearn/decomposition/tests/test_incremental_pca.py | 297 | 8265 | """Tests for Incremental PCA."""
import numpy as np
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import assert_raises
from sklearn import datasets
from sklearn.decomposition import PCA, IncrementalPCA
iris = datasets.load... | bsd-3-clause | [
624,
2925,
367,
14684,
25266,
1041,
199,
646,
2680,
465,
980,
199,
199,
504,
6357,
14,
1208,
14,
4776,
492,
702,
63,
4398,
63,
1452,
199,
504,
6357,
14,
1208,
14,
4776,
492,
702,
63,
1144,
63,
4398,
63,
1452,
199,
504,
6357,
14,
... | [
2925,
367,
14684,
25266,
1041,
199,
646,
2680,
465,
980,
199,
199,
504,
6357,
14,
1208,
14,
4776,
492,
702,
63,
4398,
63,
1452,
199,
504,
6357,
14,
1208,
14,
4776,
492,
702,
63,
1144,
63,
4398,
63,
1452,
199,
504,
6357,
14,
1208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gcd0318/django | django/core/files/images.py | 429 | 2428 | """
Utility functions for handling images.
Requires Pillow as you might imagine.
"""
import struct
import zlib
from django.core.files import File
class ImageFile(File):
"""
A mixin for use alongside django.core.files.base.File, which provides
additional features for dealing with images.
"""
def ... | bsd-3-clause | [
624,
199,
17505,
3423,
367,
7252,
5935,
14,
199,
199,
18153,
18130,
674,
465,
1265,
5594,
18884,
2598,
14,
199,
624,
199,
646,
2702,
199,
646,
12472,
199,
199,
504,
1639,
14,
1018,
14,
1725,
492,
3814,
421,
199,
533,
6047,
1173,
8,
... | [
199,
17505,
3423,
367,
7252,
5935,
14,
199,
199,
18153,
18130,
674,
465,
1265,
5594,
18884,
2598,
14,
199,
624,
199,
646,
2702,
199,
646,
12472,
199,
199,
504,
1639,
14,
1018,
14,
1725,
492,
3814,
421,
199,
533,
6047,
1173,
8,
1173,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yize/grunt-tps | tasks/lib/python/Lib/python2.7/test/test_whichdb.py | 91 | 1799 | #! /usr/bin/env python
"""Test script for the whichdb module
based on test_anydbm.py
"""
import os
import test.test_support
import unittest
import whichdb
import glob
_fname = test.test_support.TESTFN
# Silence Py3k warning
anydbm = test.test_support.import_module('anydbm', deprecated=True)
def _delete_files():
... | mit | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
624,
774,
2884,
367,
314,
1314,
697,
859,
2043,
4079,
641,
511,
63,
1629,
20666,
14,
647,
199,
624,
199,
199,
646,
747,
199,
646,
511,
14,
396,
63,
4058,
199,
646,
2882,
199,
646,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
624,
774,
2884,
367,
314,
1314,
697,
859,
2043,
4079,
641,
511,
63,
1629,
20666,
14,
647,
199,
624,
199,
199,
646,
747,
199,
646,
511,
14,
396,
63,
4058,
199,
646,
2882,
199,
646,
1314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
heihei1252/lightblue-0.4 | src/mac/_macutil.py | 68 | 9048 | # Copyright (c) 2009 Bea Lam. All rights reserved.
#
# This file is part of LightBlue.
#
# LightBlue 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 l... | gpl-3.0 | [
3,
1898,
334,
67,
9,
8937,
13787,
491,
455,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
29684,
15617,
14,
199,
3,
199,
3,
29684,
15617,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
... | [
1898,
334,
67,
9,
8937,
13787,
491,
455,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
29684,
15617,
14,
199,
3,
199,
3,
29684,
15617,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
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... |
jtrebosc/JTutils | TSpy/zeroim3D.py | 1 | 1091 | # -*- coding: utf-8 -*-
import sys
import os
PYTHONPATH=os.getenv("PYTHONPATH","not_defined")
if "not_defined" in PYTHONPATH:
MSG("cannot acces to PYTHONPATH environment. It's required for accessing to brukerPARIO lib" )
EXIT()
#add the Library path for importing brukerPARIO
sys.path.append(PYTHONPATH)
import bruke... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
984,
199,
199,
646,
747,
199,
29266,
29,
736,
14,
12959,
480,
29266,
2266,
1397,
63,
4037,
531,
199,
692,
298,
1397,
63,
4037,
2,
315,
31176,
26,
199,
198,
9740,
480,
11250,
1066,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
984,
199,
199,
646,
747,
199,
29266,
29,
736,
14,
12959,
480,
29266,
2266,
1397,
63,
4037,
531,
199,
692,
298,
1397,
63,
4037,
2,
315,
31176,
26,
199,
198,
9740,
480,
11250,
1066,
823,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dstockwell/catapult | third_party/Paste/paste/util/threadedprint.py | 50 | 8210 | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
threadedprint.py
================
:author: Ian Bicking
:date: 12 Jul 2004
Multi-threaded printing; allows the output produced via print to be
se... | bsd-3-clause | [
3,
334,
67,
9,
11811,
473,
290,
699,
2000,
316,
436,
8417,
27,
5313,
367,
510,
9209,
334,
1014,
921,
1548,
16586,
14,
1308,
9,
199,
3,
3909,
1334,
314,
10697,
4190,
26,
1455,
921,
1544,
14,
16374,
14,
1308,
15,
2383,
15,
1147,
1... | [
334,
67,
9,
11811,
473,
290,
699,
2000,
316,
436,
8417,
27,
5313,
367,
510,
9209,
334,
1014,
921,
1548,
16586,
14,
1308,
9,
199,
3,
3909,
1334,
314,
10697,
4190,
26,
1455,
921,
1544,
14,
16374,
14,
1308,
15,
2383,
15,
1147,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RoanokeHobby/Robots | CamJamRobot/9-avoidance.py | 1 | 4715 | # CamJam EduKit 3 - Robotics
# Worksheet 9 – Obstacle Avoidance
# Copyright (c) 2016 CamJam-EduKit
# The MIT License (MIT)
import RPi.GPIO as GPIO # Import the GPIO Library
import time # Import the Time library
# Set the GPIO modes
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
# Set variables for the GPIO motor pin... | gpl-3.0 | [
3,
445,
455,
42,
455,
662,
2033,
14591,
650,
446,
6848,
656,
7769,
199,
3,
9361,
5069,
1749,
27430,
242,
17985,
270,
12550,
19503,
554,
199,
3,
1898,
334,
67,
9,
7800,
445,
455,
42,
455,
13,
37,
2033,
14591,
199,
3,
710,
10697,
... | [
445,
455,
42,
455,
662,
2033,
14591,
650,
446,
6848,
656,
7769,
199,
3,
9361,
5069,
1749,
27430,
242,
17985,
270,
12550,
19503,
554,
199,
3,
1898,
334,
67,
9,
7800,
445,
455,
42,
455,
13,
37,
2033,
14591,
199,
3,
710,
10697,
844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
noironetworks/neutron | neutron/tests/unit/common/moved_globals_code1.py | 9 | 1026 | # 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
# distributed under the... | apache-2.0 | [
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,
282,
1331,
402,
314,
844,
737,
199,
3,
199,
... | [
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,
282,
1331,
402,
314,
844,
737,
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... |
aburan28/blaze | blaze/tests/test_get_set.py | 7 | 1665 | from __future__ import absolute_import, division, print_function
import blaze
from blaze.datadescriptor import dd_as_py
import numpy as np
import unittest
from blaze.py2help import skip
from blaze.tests.common import MayBeUriTest
class getitem(unittest.TestCase):
caps={'compress': False} # the default is non-co... | bsd-3-clause | [
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
870,
63,
1593,
199,
199,
646,
330,
416,
806,
199,
504,
330,
416,
806,
14,
576,
4120,
492,
13972,
63,
305,
63,
647,
199,
646,
2680,
465,
980,
199,
646,
2882,
199,
504,
330,
... | [
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
870,
63,
1593,
199,
199,
646,
330,
416,
806,
199,
504,
330,
416,
806,
14,
576,
4120,
492,
13972,
63,
305,
63,
647,
199,
646,
2680,
465,
980,
199,
646,
2882,
199,
504,
330,
416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
chokribr/invenio | invenio/legacy/bibclassify/engine.py | 4 | 27111 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2013, 2014, 2015 CERN.
#
# Invenio 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 of th... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
10219,
12,
9079,
12,
8937,
12,
7129,
12,
7760,
12,
6171,
12,
6927,
12,
6900,
24354,
14,
199,
3,
199,
3,
12... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
10219,
12,
9079,
12,
8937,
12,
7129,
12,
7760,
12,
6171,
12,
6927,
12,
6900,
24354,
14,
199,
3,
199,
3,
12235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sharpbitmessage/PyBitmessage | regenerateaddresses.py | 1 | 8348 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'regenerateaddresses.ui'
#
# Created: Thu Jan 24 15:52:24 2013
# by: PyQt4 UI code generator 4.9.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
ex... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
8204,
4514,
4046,
687,
7664,
8574,
570,
283,
1135,
22978,
7423,
14,
1907,
7,
199,
3,
199,
3,
18208,
26,
3868,
85,
17474,
5504,
4114,
26,
2528,
26,
1194,
6171,
199,
3,
420,
701,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
8204,
4514,
4046,
687,
7664,
8574,
570,
283,
1135,
22978,
7423,
14,
1907,
7,
199,
3,
199,
3,
18208,
26,
3868,
85,
17474,
5504,
4114,
26,
2528,
26,
1194,
6171,
199,
3,
420,
701,
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... |
emchristiansen/gtest-sbt-cpp | test/gtest_test_utils.py | 408 | 10444 | #!/usr/bin/env python
#
# Copyright 2006, 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... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8315,
12,
4475,
3277,
14,
199,
3,
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,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8315,
12,
4475,
3277,
14,
199,
3,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Akshay0724/scikit-learn | sklearn/gaussian_process/tests/test_kernels.py | 3 | 12567 | """Testing for kernels for Gaussian processes."""
# Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# License: BSD 3 clause
from sklearn.externals.funcsigs import signature
import numpy as np
from sklearn.gaussian_process.kernels import _approx_fprime
from sklearn.metrics.pairwise \
import PAIRWISE_K... | bsd-3-clause | [
624,
9029,
367,
26091,
367,
17131,
10358,
1041,
199,
199,
3,
6529,
26,
17474,
869,
500,
25844,
10072,
5193,
665,
74,
14038,
32,
262,
10928,
30298,
14,
5411,
13,
10205,
1410,
14,
271,
30,
199,
3,
844,
26,
6289,
650,
8502,
199,
199,
... | [
9029,
367,
26091,
367,
17131,
10358,
1041,
199,
199,
3,
6529,
26,
17474,
869,
500,
25844,
10072,
5193,
665,
74,
14038,
32,
262,
10928,
30298,
14,
5411,
13,
10205,
1410,
14,
271,
30,
199,
3,
844,
26,
6289,
650,
8502,
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... |
supersven/intellij-community | python/lib/Lib/site-packages/django/utils/unittest/compatibility.py | 575 | 2096 | import os
import sys
try:
from functools import wraps
except ImportError:
# only needed for Python 2.4
def wraps(_):
def _wraps(func):
return func
return _wraps
__unittest = True
def _relpath_nt(path, start=os.path.curdir):
"""Return a relative version of a path"""
if... | apache-2.0 | [
646,
747,
199,
646,
984,
199,
199,
893,
26,
272,
687,
9143,
492,
14018,
199,
2590,
3545,
26,
272,
327,
1454,
4346,
367,
2018,
499,
14,
20,
272,
347,
14018,
1547,
304,
267,
347,
485,
13582,
8,
1532,
304,
288,
372,
2562,
267,
372,
... | [
747,
199,
646,
984,
199,
199,
893,
26,
272,
687,
9143,
492,
14018,
199,
2590,
3545,
26,
272,
327,
1454,
4346,
367,
2018,
499,
14,
20,
272,
347,
14018,
1547,
304,
267,
347,
485,
13582,
8,
1532,
304,
288,
372,
2562,
267,
372,
485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jay-tyler/ansible | lib/ansible/playbook/taggable.py | 128 | 3278 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# 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) an... | gpl-3.0 | [
3,
334,
67,
9,
6029,
13,
7280,
12,
16922,
22453,
665,
22333,
14,
24247,
32,
6799,
14,
957,
30,
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... | [
334,
67,
9,
6029,
13,
7280,
12,
16922,
22453,
665,
22333,
14,
24247,
32,
6799,
14,
957,
30,
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pselle/calibre | src/calibre/ebooks/lrf/input.py | 14 | 14450 | #!/usr/bin/env python2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import with_statement
__license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import textwrap, operator
from copy import deepcopy, copy
from lxml import etree
f... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
18,
199,
3,
6695,
26,
493,
2991,
29,
6610,
13,
24,
26,
1086,
29,
20,
26,
3519,
29,
20,
26,
1207,
26,
386,
26,
10329,
29,
20,
26,
5789,
199,
504,
636,
2443,
363,
492,
543,
63,
6242,
199,
... | [
2647,
15,
1393,
15,
1813,
2366,
18,
199,
3,
6695,
26,
493,
2991,
29,
6610,
13,
24,
26,
1086,
29,
20,
26,
3519,
29,
20,
26,
1207,
26,
386,
26,
10329,
29,
20,
26,
5789,
199,
504,
636,
2443,
363,
492,
543,
63,
6242,
199,
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... |
EliasTouil/simpleBlog | simpleBlog/Lib/sre_compile.py | 123 | 19817 | # -*- coding: utf-8 -*-
#
# Secret Labs' Regular Expression Engine
#
# convert template to internal format
#
# Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
#
# See the sre.py file for information on usage and redistribution.
#
"""Internal support module for sre"""
import _sre, sys
import sre_parse... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
23580,
491,
2101,
7,
18528,
22013,
12580,
199,
3,
199,
3,
3957,
1978,
370,
5007,
1475,
199,
3,
199,
3,
1898,
334,
67,
9,
9013,
23,
13,
8339,
701,
23580,
491,
2101,
14840,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
23580,
491,
2101,
7,
18528,
22013,
12580,
199,
3,
199,
3,
3957,
1978,
370,
5007,
1475,
199,
3,
199,
3,
1898,
334,
67,
9,
9013,
23,
13,
8339,
701,
23580,
491,
2101,
14840,
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... |
EmadMokhtar/halaqat | students/forms.py | 1 | 6022 | from crispy_forms.helper import FormHelper
from crispy_forms.layout import HTML, Div, Layout
from django import forms
from django.utils.translation import ugettext_lazy as _
from students.models import Student
class StudentForm(forms.ModelForm):
dob = forms.DateField(widget=forms.DateInput(
... | mit | [
504,
286,
5719,
647,
63,
3351,
14,
3676,
492,
8204,
4433,
199,
504,
286,
5719,
647,
63,
3351,
14,
4209,
492,
4163,
12,
32077,
12,
25604,
199,
504,
1639,
492,
4513,
199,
504,
1639,
14,
1208,
14,
6893,
492,
10366,
63,
6395,
465,
485... | [
286,
5719,
647,
63,
3351,
14,
3676,
492,
8204,
4433,
199,
504,
286,
5719,
647,
63,
3351,
14,
4209,
492,
4163,
12,
32077,
12,
25604,
199,
504,
1639,
492,
4513,
199,
504,
1639,
14,
1208,
14,
6893,
492,
10366,
63,
6395,
465,
485,
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... |
punchagan/zulip | zerver/views/zephyr.py | 2 | 2717 | import base64
import logging
import re
import shlex
import subprocess
from typing import Optional
import orjson
from django.conf import settings
from django.http import HttpRequest, HttpResponse
from django.utils.translation import gettext as _
from zerver.decorator import authenticated_json_view
from zerver.lib.ccac... | apache-2.0 | [
646,
1300,
772,
199,
646,
2050,
199,
646,
295,
199,
646,
16701,
199,
646,
3873,
199,
504,
14090,
492,
4879,
199,
199,
646,
503,
1001,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1014,
492,
20730,
12,
6183,
199,
504,
1... | [
1300,
772,
199,
646,
2050,
199,
646,
295,
199,
646,
16701,
199,
646,
3873,
199,
504,
14090,
492,
4879,
199,
199,
646,
503,
1001,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1014,
492,
20730,
12,
6183,
199,
504,
1639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
maurizi/otm-core | opentreemap/exporter/user.py | 12 | 4354 | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import csv
import json
from datetime import datetime
from contextlib import contextmanager
from django.core.exceptions import ValidationError
from django.db.models import Q
from tre... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
504,
636,
2443,
363,
492,
4629,
199,
199,
646,
7392,
199,
646,
2022,
199,
199,
504,
2197,
4... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
504,
636,
2443,
363,
492,
4629,
199,
199,
646,
7392,
199,
646,
2022,
199,
199,
504,
2197,
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... |
Vvucinic/Wander | venv_2_7/lib/python2.7/site-packages/numpy/distutils/fcompiler/lahey.py | 229 | 1438 | from __future__ import division, absolute_import, print_function
import os
from numpy.distutils.fcompiler import FCompiler
compilers = ['LaheyFCompiler']
class LaheyFCompiler(FCompiler):
compiler_type = 'lahey'
description = 'Lahey/Fujitsu Fortran 95 Compiler'
version_pattern = r'Lahey/Fujitsu Fortran... | artistic-2.0 | [
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
747,
199,
199,
504,
2680,
14,
13350,
14,
32070,
492,
481,
9131,
199,
199,
32593,
275,
788,
7833,
426,
89,
38,
9131,
418,
199,
199,
533,
7964,
4... | [
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
747,
199,
199,
504,
2680,
14,
13350,
14,
32070,
492,
481,
9131,
199,
199,
32593,
275,
788,
7833,
426,
89,
38,
9131,
418,
199,
199,
533,
7964,
426,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.