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 |
|---|---|---|---|---|---|---|---|---|
russss/Diamond | src/collectors/dseopscenter/dseopscenter.py | 16 | 7115 | # coding=utf-8
"""
Collect the DataStax OpsCenter metrics
"""
import urllib2
import datetime
try:
import json
except ImportError:
import simplejson as json
import diamond.collector
class DseOpsCenterCollector(diamond.collector.Collector):
last_run_time = 0
column_families = None
last_schema_sy... | mit | [
3,
2803,
29,
1624,
13,
24,
199,
199,
624,
199,
25023,
314,
3918,
3391,
88,
593,
1190,
13551,
7186,
199,
624,
199,
199,
646,
4011,
18,
199,
646,
2197,
199,
199,
893,
26,
272,
492,
2022,
199,
2590,
3545,
26,
272,
492,
13804,
465,
... | [
2803,
29,
1624,
13,
24,
199,
199,
624,
199,
25023,
314,
3918,
3391,
88,
593,
1190,
13551,
7186,
199,
624,
199,
199,
646,
4011,
18,
199,
646,
2197,
199,
199,
893,
26,
272,
492,
2022,
199,
2590,
3545,
26,
272,
492,
13804,
465,
2022,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
adityacs/ansible | lib/ansible/modules/network/avi/avi_virtualservice.py | 8 | 20685 | #!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 16.3.8
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
18208,
641,
25298,
5661,
12,
7800,
199,
3,
768,
2502,
26,
9647,
300,
1214,
820,
1810,
31114,
334,
926,
270,
31114,
32,
31808,
14,
957,
9,
199,
3,
3515,
662,
1567,
1626,
424,
834,
3... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
18208,
641,
25298,
5661,
12,
7800,
199,
3,
768,
2502,
26,
9647,
300,
1214,
820,
1810,
31114,
334,
926,
270,
31114,
32,
31808,
14,
957,
9,
199,
3,
3515,
662,
1567,
1626,
424,
834,
334,
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... |
tpsatish95/Python-Workshop | Python Environment Setup/Alternate/1. Python/1. Installer/Python-3.4.0(Linux)/Tools/stringbench/stringbench.py | 51 | 44018 |
# Various microbenchmarks comparing unicode and byte string performance
# Please keep this file both 2.x and 3.x compatible!
import timeit
import itertools
import operator
import re
import sys
import datetime
import optparse
VERSION = '2.0'
def p(*args):
sys.stdout.write(' '.join(str(s) for s in args) + '\n')
... | apache-2.0 | [
199,
3,
21107,
1785,
9967,
11861,
83,
20234,
2649,
436,
3696,
1059,
10238,
199,
3,
7754,
4215,
642,
570,
3865,
499,
14,
88,
436,
650,
14,
88,
9025,
1,
199,
199,
646,
900,
390,
199,
646,
7975,
199,
646,
4182,
199,
646,
295,
199,
... | [
3,
21107,
1785,
9967,
11861,
83,
20234,
2649,
436,
3696,
1059,
10238,
199,
3,
7754,
4215,
642,
570,
3865,
499,
14,
88,
436,
650,
14,
88,
9025,
1,
199,
199,
646,
900,
390,
199,
646,
7975,
199,
646,
4182,
199,
646,
295,
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... |
cneill/designate | designate/plugin.py | 8 | 4112 | # Copyright 2012 Bouvet ASA
#
# Author: Endre Karlson <endre.karlson@bouvet.no>
#
# 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 ... | apache-2.0 | [
3,
1898,
6029,
699,
810,
28350,
437,
4251,
199,
3,
199,
3,
6529,
26,
9599,
264,
1804,
285,
478,
265,
665,
500,
264,
14,
75,
285,
478,
265,
32,
656,
9154,
386,
14,
889,
30,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
... | [
1898,
6029,
699,
810,
28350,
437,
4251,
199,
3,
199,
3,
6529,
26,
9599,
264,
1804,
285,
478,
265,
665,
500,
264,
14,
75,
285,
478,
265,
32,
656,
9154,
386,
14,
889,
30,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yury-s/v8-inspector | Source/chrome/tools/telemetry/telemetry/results/csv_pivot_table_output_formatter_unittest.py | 20 | 3349 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import StringIO
import unittest
from telemetry import page as page_module
from telemetry.page import page_set
from telemetry.results import csv_piv... | bsd-3-clause | [
3,
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
646,
747,
199,
646,
5228,
199,
... | [
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
646,
747,
199,
646,
5228,
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... |
Cinntax/home-assistant | homeassistant/components/uscis/sensor.py | 2 | 2273 | """Support for USCIS Case Status."""
import logging
from datetime import timedelta
import voluptuous as vol
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.helpers import config_validation as cv
from... | apache-2.0 | [
624,
11532,
367,
738,
5153,
1311,
12425,
9795,
1041,
199,
199,
646,
2050,
199,
504,
2197,
492,
6871,
199,
646,
30291,
465,
5236,
199,
199,
504,
8846,
14,
7546,
14,
4502,
492,
17680,
199,
504,
8846,
14,
1974,
492,
3868,
12301,
199,
5... | [
11532,
367,
738,
5153,
1311,
12425,
9795,
1041,
199,
199,
646,
2050,
199,
504,
2197,
492,
6871,
199,
646,
30291,
465,
5236,
199,
199,
504,
8846,
14,
7546,
14,
4502,
492,
17680,
199,
504,
8846,
14,
1974,
492,
3868,
12301,
199,
504,
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... |
fransklaver/linux | tools/perf/scripts/python/failed-syscalls-by-pid.py | 1996 | 2233 | # failed 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 failed system call totals, broken down by pid.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os
import sys
sys.pa... | gpl-2.0 | [
3,
3405,
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,
1306... | [
3405,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
takeshineshiro/swift | test/probe/brain.py | 8 | 8163 | #!/usr/bin/python -u
# 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
# ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
446,
85,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
1443,
3332,... | [
2647,
15,
1393,
15,
1548,
446,
85,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
1443,
3332,
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... |
seblefevre/testerman | core/snmp/pysnmp/proto/secmod/rfc3414/auth/hmacsha.py | 2 | 3023 | try:
from hashlib import sha1
except ImportError:
import sha
sha1 = sha.new
import string
from pysnmp.proto.secmod.rfc3414.auth import base
from pysnmp.proto import error
_twelveZeros = '\x00'*12
_fortyFourZeros = '\x00'*44
# 7.2.4
class HmacSha(base.AbstractAuthenticationService):
serviceID = (1, 3,... | gpl-2.0 | [
893,
26,
272,
687,
8337,
492,
7793,
17,
199,
2590,
3545,
26,
272,
492,
7793,
272,
7793,
17,
275,
7793,
14,
1222,
199,
646,
1059,
199,
504,
10382,
78,
311,
14,
2625,
14,
3321,
1494,
14,
8973,
1082,
1079,
14,
1178,
492,
1300,
199,
... | [
26,
272,
687,
8337,
492,
7793,
17,
199,
2590,
3545,
26,
272,
492,
7793,
272,
7793,
17,
275,
7793,
14,
1222,
199,
646,
1059,
199,
504,
10382,
78,
311,
14,
2625,
14,
3321,
1494,
14,
8973,
1082,
1079,
14,
1178,
492,
1300,
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... |
asimshankar/tensorflow | tensorflow/python/kernel_tests/zero_division_test.py | 6 | 2466 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
astaninger/speakout | venv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/specifiers.py | 1107 | 28025 | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
import abc
import functools
import itertools
import re
from ._compat impo... | mit | [
3,
961,
570,
365,
21164,
18233,
1334,
314,
2895,
402,
314,
3668,
844,
12,
3394,
199,
3,
499,
14,
16,
12,
436,
314,
6289,
844,
14,
1666,
314,
5113,
570,
315,
314,
1738,
402,
642,
7611,
199,
3,
367,
4890,
2436,
14,
199,
504,
636,
... | [
961,
570,
365,
21164,
18233,
1334,
314,
2895,
402,
314,
3668,
844,
12,
3394,
199,
3,
499,
14,
16,
12,
436,
314,
6289,
844,
14,
1666,
314,
5113,
570,
315,
314,
1738,
402,
642,
7611,
199,
3,
367,
4890,
2436,
14,
199,
504,
636,
244... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
openiitbombayx/edx-platform | cms/djangoapps/course_creators/views.py | 230 | 3176 | """
Methods for interacting programmatically with the user creator table.
"""
from course_creators.models import CourseCreator
from student.roles import CourseCreatorRole
from student import auth
def add_user_with_status_unrequested(user):
"""
Adds a user to the course creator table with status 'unrequested'.... | agpl-3.0 | [
624,
199,
10385,
367,
17232,
316,
2240,
17174,
543,
314,
922,
14875,
1817,
14,
199,
624,
199,
504,
2518,
63,
1353,
2750,
14,
992,
492,
5531,
17523,
199,
504,
6474,
14,
8050,
492,
5531,
17523,
7422,
199,
504,
6474,
492,
1790,
421,
19... | [
199,
10385,
367,
17232,
316,
2240,
17174,
543,
314,
922,
14875,
1817,
14,
199,
624,
199,
504,
2518,
63,
1353,
2750,
14,
992,
492,
5531,
17523,
199,
504,
6474,
14,
8050,
492,
5531,
17523,
7422,
199,
504,
6474,
492,
1790,
421,
199,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vtexier/duniter-python-api | duniterpy/key/encryption_key.py | 1 | 1634 | """
duniter public and private keys
@author: inso
"""
import libnacl.public
from pylibscrypt import scrypt
from .base58 import Base58Encoder
from .signing_key import _ensure_bytes
SEED_LENGTH = 32 # Length of the key
crypto_sign_BYTES = 64
SCRYPT_PARAMS = {'N': 4096,
'r': 16,
'p':... | gpl-3.0 | [
624,
199,
68,
324,
1661,
4575,
436,
5726,
2883,
199,
199,
32,
2502,
26,
315,
1152,
199,
624,
199,
199,
646,
1973,
7745,
14,
3455,
199,
504,
29219,
551,
13656,
492,
308,
4997,
199,
504,
1275,
1095,
2010,
492,
3523,
2010,
6679,
199,
... | [
199,
68,
324,
1661,
4575,
436,
5726,
2883,
199,
199,
32,
2502,
26,
315,
1152,
199,
624,
199,
199,
646,
1973,
7745,
14,
3455,
199,
504,
29219,
551,
13656,
492,
308,
4997,
199,
504,
1275,
1095,
2010,
492,
3523,
2010,
6679,
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... |
tmerrick1/spack | var/spack/repos/builtin/packages/py-packaging/package.py | 5 | 2098 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | [
4605,
199,
3,
1898,
334,
67,
9,
6171,
13,
12682,
12,
7964,
29590,
491,
4380,
6878,
20548,
13863,
12,
20376,
14,
199,
3,
2165,
16584,
737,
314,
7964,
29590,
491,
4380,
6878,
20548,
16871,
31671,
14,
199,
3,
199,
3,
961,
570,
365,
1... | [
199,
3,
1898,
334,
67,
9,
6171,
13,
12682,
12,
7964,
29590,
491,
4380,
6878,
20548,
13863,
12,
20376,
14,
199,
3,
2165,
16584,
737,
314,
7964,
29590,
491,
4380,
6878,
20548,
16871,
31671,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Igalia/skia | platform_tools/android/bin/gyp_to_android.py | 44 | 8982 | #!/usr/bin/python
# Copyright 2014 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Script for generating the Android framework's version of Skia from gyp
files.
"""
import argparse
import os
import shutil
import sys
import tempfile
# Find the t... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1548,
199,
199,
3,
1898,
6927,
4475,
3277,
14,
199,
3,
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... | [
2647,
15,
1393,
15,
1548,
199,
199,
3,
1898,
6927,
4475,
3277,
14,
199,
3,
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,
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... |
mr-ice/pipython | InteractiveProgramming/concentration.py | 1 | 7657 | # implementation of card game - Memory
# I originally coded this with timers for hiding the cards instead of hiding them
# on a mouse click. And I removed cards that matched instead of leaving them face up.
# I thought it worked pretty well but it didn't meet the requirements of the grading
# rubrick, so I had to mak... | mit | [
3,
4514,
402,
12564,
9219,
446,
15825,
199,
199,
3,
473,
20657,
1233,
68,
642,
543,
900,
2393,
367,
27276,
316,
314,
27181,
3140,
402,
27276,
316,
3062,
199,
3,
641,
282,
12817,
8968,
14,
221,
6061,
473,
4829,
27181,
626,
7838,
3140... | [
4514,
402,
12564,
9219,
446,
15825,
199,
199,
3,
473,
20657,
1233,
68,
642,
543,
900,
2393,
367,
27276,
316,
314,
27181,
3140,
402,
27276,
316,
3062,
199,
3,
641,
282,
12817,
8968,
14,
221,
6061,
473,
4829,
27181,
626,
7838,
3140,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sbates130272/fio-stuff | tools/cpuperf.py | 1 | 3479 | #!/usr/bin/env python
from __future__ import print_function
from __future__ import unicode_literals
import os
import sys
import subprocess as sp
import time
def get_ps_data(options):
try:
data = sp.check_output(["ps", "-C", options.command, "-o" "%cpu=,%mem="])
if options.multithread:
... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
747,
199,
646,
984,
199,
646,
3873,
465,
2249,
199,
646,
900,
199,
199,
318,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
747,
199,
646,
984,
199,
646,
3873,
465,
2249,
199,
646,
900,
199,
199,
318,
664,
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... |
ovnicraft/odoo | addons/l10n_no/__init__.py | 693 | 1057 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | agpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
258,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
258,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jhrozek/samba-ldb-mdb | python/samba/tests/dcerpc/registry.py | 51 | 1887 | # Unix SMB/CIFS implementation.
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2008
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) a... | gpl-3.0 | [
3,
13074,
2389,
34,
15,
3553,
7079,
4514,
14,
199,
3,
1898,
334,
35,
9,
1603,
352,
2626,
5444,
889,
79,
7879,
665,
74,
352,
2626,
32,
21693,
14,
1308,
30,
9079,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
27,
1265,
883,
3604,
... | [
13074,
2389,
34,
15,
3553,
7079,
4514,
14,
199,
3,
1898,
334,
35,
9,
1603,
352,
2626,
5444,
889,
79,
7879,
665,
74,
352,
2626,
32,
21693,
14,
1308,
30,
9079,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TheWylieStCoyote/gnuradio | gr-qtgui/examples/pyqt_example_f.py | 3 | 5397 | #!/usr/bin/env python
#
# Copyright 2011,2012,2015 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#
from __future__ import print_function
from __future__ import unicode_literals
from gnuradio import gr, filter
from gnuradio import blocks
import sys
tr... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7760,
12,
7409,
12,
7806,
2868,
2290,
2752,
12,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1664,
13514,
199,
3,
199,
3,
6988,
19596,
13,
3761,
13,
7544,
26,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7760,
12,
7409,
12,
7806,
2868,
2290,
2752,
12,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1664,
13514,
199,
3,
199,
3,
6988,
19596,
13,
3761,
13,
7544,
26,
14629,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
carljm/django | tests/backends/test_creation.py | 26 | 3755 | import copy
import unittest
from contextlib import contextmanager
from django.db import DEFAULT_DB_ALIAS, connection, connections
from django.db.backends.base.creation import (
TEST_DATABASE_PREFIX, BaseDatabaseCreation,
)
from django.db.backends.postgresql.creation import DatabaseCreation
from django.test import ... | bsd-3-clause | [
646,
1331,
199,
646,
2882,
199,
504,
15502,
492,
27608,
199,
199,
504,
1639,
14,
697,
492,
6186,
63,
2846,
63,
12644,
12,
1950,
12,
6947,
199,
504,
1639,
14,
697,
14,
7765,
14,
1095,
14,
8782,
492,
334,
272,
7393,
63,
17873,
63,
... | [
1331,
199,
646,
2882,
199,
504,
15502,
492,
27608,
199,
199,
504,
1639,
14,
697,
492,
6186,
63,
2846,
63,
12644,
12,
1950,
12,
6947,
199,
504,
1639,
14,
697,
14,
7765,
14,
1095,
14,
8782,
492,
334,
272,
7393,
63,
17873,
63,
6351,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RomanZWang/osf.io | website/addons/googledrive/client.py | 26 | 1530 | # -*- coding: utf-8 -*-
from framework.exceptions import HTTPError
from website.util.client import BaseClient
from website.addons.googledrive import settings
class GoogleAuthClient(BaseClient):
def userinfo(self, access_token):
return self._make_request(
'GET',
self._build_url(se... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
10059,
14,
3924,
492,
15050,
199,
199,
504,
10691,
14,
1974,
14,
1258,
492,
3523,
3041,
199,
504,
10691,
14,
10788,
14,
28069,
1146,
6053,
492,
2202,
421,
199,
533,
4475,
2817,
3041,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
10059,
14,
3924,
492,
15050,
199,
199,
504,
10691,
14,
1974,
14,
1258,
492,
3523,
3041,
199,
504,
10691,
14,
10788,
14,
28069,
1146,
6053,
492,
2202,
421,
199,
533,
4475,
2817,
3041,
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... |
jmighion/ansible | lib/ansible/inventory/manager.py | 4 | 22984 | # (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... |
i4Ds/IRE | IREMedia/libraries/OpenCV/samples/python2/gaussian_mix.py | 7 | 1822 | #!/usr/bin/env python
import numpy as np
from numpy import random
import cv2
def make_gaussians(cluster_n, img_size):
points = []
ref_distrs = []
for i in xrange(cluster_n):
mean = (0.1 + 0.8*random.rand(2)) * img_size
a = (random.rand(2, 2)-0.5)*img_size*0.1
cov = np.dot(a.T, a) +... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
2680,
465,
980,
199,
504,
2680,
492,
2196,
199,
646,
6277,
18,
199,
199,
318,
1852,
63,
5294,
17759,
796,
8,
4201,
63,
78,
12,
6050,
63,
890,
304,
272,
4501,
275,
942,
272,
29... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
2680,
465,
980,
199,
504,
2680,
492,
2196,
199,
646,
6277,
18,
199,
199,
318,
1852,
63,
5294,
17759,
796,
8,
4201,
63,
78,
12,
6050,
63,
890,
304,
272,
4501,
275,
942,
272,
2984,
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... |
fe11x/dpark | dpark/moosefs/master.py | 14 | 10945 | import os
import socket
import threading
import Queue
import time
import struct
import logging
from consts import *
from utils import *
logger = logging.getLogger(__name__)
# mfsmaster need to been patched with dcache
ENABLE_DCACHE = False
class StatInfo:
def __init__(self, totalspace, availspace, trashspace,
... | bsd-3-clause | [
646,
747,
199,
646,
2838,
199,
646,
5796,
199,
646,
10703,
199,
646,
900,
199,
646,
2702,
199,
646,
2050,
199,
199,
504,
950,
83,
492,
627,
199,
504,
3778,
492,
627,
199,
199,
2921,
275,
2050,
14,
5572,
3460,
354,
3368,
199,
199,
... | [
747,
199,
646,
2838,
199,
646,
5796,
199,
646,
10703,
199,
646,
900,
199,
646,
2702,
199,
646,
2050,
199,
199,
504,
950,
83,
492,
627,
199,
504,
3778,
492,
627,
199,
199,
2921,
275,
2050,
14,
5572,
3460,
354,
3368,
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... |
mrunge/horizon | openstack_dashboard/dashboards/admin/hypervisors/compute/tables.py | 8 | 2749 | # 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 th... | apache-2.0 | [
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
282,
1331,
402,
314,
844,
737,
199,
3,
199,
... | [
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
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... |
huggingface/transformers | tests/test_generation_flax_utils.py | 1 | 9361 | # Copyright 2021 The HuggingFace Team. 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 applicabl... | apache-2.0 | [
3,
1898,
499,
15385,
710,
869,
1518,
1540,
13414,
11682,
14,
2900,
4481,
4644,
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,
... | [
1898,
499,
15385,
710,
869,
1518,
1540,
13414,
11682,
14,
2900,
4481,
4644,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
maropu/spark | examples/src/main/python/sql/streaming/structured_network_wordcount.py | 27 | 2500 | #
# 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 us... | apache-2.0 | [
3,
199,
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,
148... | [
199,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jonasschnelli/bitcoin | test/functional/rpc_deprecated.py | 6 | 3063 | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test deprecation of RPC calls."""
from test_framework.test_framework import BitcoinTestFramework
from t... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
1898,
334,
67,
9,
9708,
13,
14982,
710,
21158,
11672,
19782,
199,
3,
17484,
1334,
314,
10697,
2032,
4190,
12,
1937,
314,
23073,
199,
3,
570,
9685,
503,
1455,
921,
1544,
14,
16374,
... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
1898,
334,
67,
9,
9708,
13,
14982,
710,
21158,
11672,
19782,
199,
3,
17484,
1334,
314,
10697,
2032,
4190,
12,
1937,
314,
23073,
199,
3,
570,
9685,
503,
1455,
921,
1544,
14,
16374,
14,
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... |
pexip/os-pyasn1 | tests/type/test_univ.py | 6 | 62254 | #
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
import math
import pickle
import sys
try:
import unittest2 as unittest
except ImportError:
import unittest
from tests.base import BaseTestCase
from pya... | bsd-2-clause | [
3,
199,
3,
961,
570,
365,
1777,
402,
1134,
6228,
17,
2032,
14,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
13,
10680,
12,
473,
590,
65,
662,
1337,
1618,
665,
13800,
1618,
32,
6799,
14,
957,
30,
199,
3,
844,
26,
1455,
921,
5167,
... | [
199,
3,
961,
570,
365,
1777,
402,
1134,
6228,
17,
2032,
14,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
13,
10680,
12,
473,
590,
65,
662,
1337,
1618,
665,
13800,
1618,
32,
6799,
14,
957,
30,
199,
3,
844,
26,
1455,
921,
5167,
2421... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
momm3/WelcomeBot | welcomebot/Lib/hmac.py | 27 | 5057 | """HMAC (Keyed-Hashing for Message Authentication) Python module.
Implements the HMAC algorithm as described by RFC 2104.
"""
import warnings as _warnings
from _operator import _compare_digest as compare_digest
import hashlib as _hashlib
trans_5C = bytes((x ^ 0x5C) for x in range(256))
trans_36 = bytes((x ^ 0x36) fo... | mit | [
624,
23034,
334,
1197,
379,
13,
3476,
316,
367,
6430,
15995,
9,
2018,
859,
14,
199,
199,
29452,
314,
29817,
5563,
465,
11736,
701,
7329,
499,
6785,
14,
199,
624,
199,
199,
646,
3598,
465,
485,
5451,
199,
504,
485,
3856,
492,
485,
... | [
23034,
334,
1197,
379,
13,
3476,
316,
367,
6430,
15995,
9,
2018,
859,
14,
199,
199,
29452,
314,
29817,
5563,
465,
11736,
701,
7329,
499,
6785,
14,
199,
624,
199,
199,
646,
3598,
465,
485,
5451,
199,
504,
485,
3856,
492,
485,
5785,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mcardillo55/django | tests/many_to_one/models.py | 128 | 2623 | """
Many-to-one relationships
To define a many-to-one relationship, use ``ForeignKey()``.
"""
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Reporter(models.Model):
first_name = models.CharFiel... | bsd-3-clause | [
624,
199,
4089,
13,
475,
13,
368,
20045,
199,
199,
1378,
5627,
282,
5002,
13,
475,
13,
368,
8931,
12,
675,
1124,
3190,
28566,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
1709,
199,
... | [
199,
4089,
13,
475,
13,
368,
20045,
199,
199,
1378,
5627,
282,
5002,
13,
475,
13,
368,
8931,
12,
675,
1124,
3190,
28566,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
1709,
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... |
WSDC-NITWarangal/django | django/views/static.py | 300 | 5129 | """
Views and functions for serving static files. These are only to be used
during development, and SHOULD NOT be used in a production setting.
"""
from __future__ import unicode_literals
import mimetypes
import os
import posixpath
import re
import stat
from django.http import (
FileResponse, Http404, HttpRespons... | bsd-3-clause | [
624,
199,
21180,
436,
3423,
367,
22701,
2955,
1584,
14,
5723,
787,
1454,
370,
506,
1202,
199,
27868,
16367,
12,
436,
428,
31909,
2845,
506,
1202,
315,
282,
9920,
4260,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199... | [
199,
21180,
436,
3423,
367,
22701,
2955,
1584,
14,
5723,
787,
1454,
370,
506,
1202,
199,
27868,
16367,
12,
436,
428,
31909,
2845,
506,
1202,
315,
282,
9920,
4260,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nikolas/edx-platform | openedx/core/djangoapps/credit/api/provider.py | 12 | 15368 | """
API for initiating and tracking requests for credit from a provider.
"""
import datetime
import logging
import pytz
import uuid
from django.db import transaction
from lms.djangoapps.django_comment_client.utils import JsonResponse
from openedx.core.djangoapps.credit.exceptions import (
UserIsNotEligible,
... | agpl-3.0 | [
624,
199,
3735,
367,
11023,
1958,
436,
15161,
4145,
367,
16630,
687,
282,
5022,
14,
199,
624,
199,
199,
646,
2197,
199,
646,
2050,
199,
646,
15444,
199,
646,
5377,
199,
199,
504,
1639,
14,
697,
492,
6008,
199,
504,
21577,
14,
16432,... | [
199,
3735,
367,
11023,
1958,
436,
15161,
4145,
367,
16630,
687,
282,
5022,
14,
199,
624,
199,
199,
646,
2197,
199,
646,
2050,
199,
646,
15444,
199,
646,
5377,
199,
199,
504,
1639,
14,
697,
492,
6008,
199,
504,
21577,
14,
16432,
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... |
drazenzadravec/nequeo | Tools/MySql/python-2.1.3/lib/mysql/connector/constants.py | 17 | 23017 | # MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptio... | gpl-2.0 | [
3,
11200,
13482,
2406,
15,
4718,
446,
11200,
5253,
5313,
315,
2018,
14,
199,
3,
1898,
334,
67,
9,
8937,
12,
6927,
12,
15309,
436,
15,
269,
2399,
29172,
2335,
14,
2900,
4481,
4644,
14,
199,
199,
3,
11200,
13482,
2406,
15,
4718,
365... | [
11200,
13482,
2406,
15,
4718,
446,
11200,
5253,
5313,
315,
2018,
14,
199,
3,
1898,
334,
67,
9,
8937,
12,
6927,
12,
15309,
436,
15,
269,
2399,
29172,
2335,
14,
2900,
4481,
4644,
14,
199,
199,
3,
11200,
13482,
2406,
15,
4718,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TEDICpy/write-it | contactos/migrations/0002_auto__add_field_contact_is_bounced.py | 2 | 2566 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Contact.is_bounced'
db.add_column(u'contactos_contact', 'is_bounced',
... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
2197,
199,
504,
12919,
14,
697,
492,
1592,
199,
504,
12919,
14,
86,
18,
492,
24765,
199,
504,
1639,
14,
697,
492,
1709,
421,
199,
533,
12090,
8,
24822,
304,
339,
347,
17465,
8,
27... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
2197,
199,
504,
12919,
14,
697,
492,
1592,
199,
504,
12919,
14,
86,
18,
492,
24765,
199,
504,
1639,
14,
697,
492,
1709,
421,
199,
533,
12090,
8,
24822,
304,
339,
347,
17465,
8,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Jaemu/haiku.py | nltk/cluster/em.py | 5 | 9530 | # Natural Language Toolkit: Expectation Maximization Clusterer
#
# Copyright (C) 2001-2012 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
from __future__ import print_function
import numpy
from util import VectorSpaceClusterer
class EM... | apache-2.0 | [
3,
653,
292,
4889,
8466,
15650,
6065,
26,
15100,
425,
8228,
1017,
2072,
8465,
527,
266,
3859,
199,
3,
199,
3,
1898,
334,
35,
9,
12521,
13,
7409,
24719,
15263,
7290,
199,
3,
6529,
26,
377,
4964,
269,
1849,
6164,
665,
502,
331,
6164... | [
653,
292,
4889,
8466,
15650,
6065,
26,
15100,
425,
8228,
1017,
2072,
8465,
527,
266,
3859,
199,
3,
199,
3,
1898,
334,
35,
9,
12521,
13,
7409,
24719,
15263,
7290,
199,
3,
6529,
26,
377,
4964,
269,
1849,
6164,
665,
502,
331,
6164,
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... |
lanfker/tdma_imac | .waf-1.6.7-0a94702c61504c487a251b8d0a04ca9a/waflib/Tools/d.py | 4 | 1957 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/svn/docs/wafbook/single.html#_obtaining_the_waf_file
import os,sys
from waflib import Utils,Task,Errors
from waflib.TaskGen import taskgen_method,feature,after_method,before_method,extension
from waflib.Configure import conf
fro... | gpl-2.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2644,
26,
2774,
13,
24,
199,
3,
14750,
1,
4226,
440,
5283,
1,
1455,
921,
21500,
14,
31864,
14,
957,
15,
6836,
15,
4757,
15,
21500,
2706,
15,
4780,
14,
1360,
20930,
2873,
24522,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2644,
26,
2774,
13,
24,
199,
3,
14750,
1,
4226,
440,
5283,
1,
1455,
921,
21500,
14,
31864,
14,
957,
15,
6836,
15,
4757,
15,
21500,
2706,
15,
4780,
14,
1360,
20930,
2873,
24522,
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,
1... |
andersonresende/django | tests/admin_ordering/tests.py | 37 | 6765 | from __future__ import unicode_literals
from django.contrib import admin
from django.contrib.admin.options import ModelAdmin
from django.contrib.auth.models import User
from django.test import TestCase, RequestFactory
from .models import (Band, Song, SongInlineDefaultOrdering,
SongInlineNewOrdering, DynOrderingBa... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
2828,
492,
4628,
199,
504,
1639,
14,
2828,
14,
2113,
14,
1419,
492,
30093,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
396,
492,
... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
2828,
492,
4628,
199,
504,
1639,
14,
2828,
14,
2113,
14,
1419,
492,
30093,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
396,
492,
7640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bugralevent/linux | tools/perf/scripts/python/failed-syscalls-by-pid.py | 1996 | 2233 | # failed 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 failed system call totals, broken down by pid.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os
import sys
sys.pa... | gpl-2.0 | [
3,
3405,
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,
1306... | [
3405,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GeekTrainer/Flask | Work/TriviaMVA/TriviaMVA/env/Lib/site-packages/werkzeug/datastructures.py | 146 | 86337 | # -*- coding: utf-8 -*-
"""
werkzeug.datastructures
~~~~~~~~~~~~~~~~~~~~~~~
This module provides mixins and classes with an immutable interface.
:copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import re
import sys
import cod... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
23004,
272,
18294,
2878,
23597,
339,
961,
859,
6571,
13667,
3617,
436,
3992,
543,
376,
17092,
3217,
14,
339,
520,
7307,
26,
334,
67,
9,
6927,
701,
314,
22798,
11682,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
23004,
272,
18294,
2878,
23597,
339,
961,
859,
6571,
13667,
3617,
436,
3992,
543,
376,
17092,
3217,
14,
339,
520,
7307,
26,
334,
67,
9,
6927,
701,
314,
22798,
11682,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
alexcuellar/odoo | addons/account/wizard/account_report_central_journal.py | 378 | 1697 | # -*- 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... |
freestyle4568/Clothes-match | feature_analysis/src/fp_growth.py | 1 | 6357 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Created on Sep 20, 2015
@author: freestyle4568
'''
"""
this progarm is to test fp-growth algorithm
user guide: result_list, support_data_dict = fptree(dataset, min_support)
该函数返回列表格式的result_list, 元素为列表, [[1元素项集], [2元素项集]]
子列表元素为固定集合 -- frozenset({, , ,})
support_data... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
199,
10502,
641,
428,
1545,
3388,
12,
6900,
199,
199,
32,
2502,
26,
20673,
20953,
11419,
24,
199,
2344,
199,
624,
199,
3749,
132... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
199,
10502,
641,
428,
1545,
3388,
12,
6900,
199,
199,
32,
2502,
26,
20673,
20953,
11419,
24,
199,
2344,
199,
624,
199,
3749,
13205,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rixrix/servo | tests/wpt/css-tests/css-fonts-3_dev/xhtml1/reference/support/fonts/makegsubfonts.py | 820 | 14309 |
import os
import textwrap
from xml.etree import ElementTree
from fontTools.ttLib import TTFont, newTable
from fontTools.misc.psCharStrings import T2CharString
from fontTools.ttLib.tables.otTables import GSUB,\
ScriptList, ScriptRecord, Script, DefaultLangSys,\
FeatureList, FeatureRecord, Feature,\
LookupLi... | mpl-2.0 | [
199,
646,
747,
199,
646,
13390,
199,
504,
2748,
14,
9464,
492,
13139,
199,
504,
5023,
11654,
14,
6215,
4728,
492,
377,
6145,
1888,
12,
892,
3186,
199,
504,
5023,
11654,
14,
9923,
14,
1190,
1610,
12672,
492,
377,
18,
1610,
1558,
199,... | [
646,
747,
199,
646,
13390,
199,
504,
2748,
14,
9464,
492,
13139,
199,
504,
5023,
11654,
14,
6215,
4728,
492,
377,
6145,
1888,
12,
892,
3186,
199,
504,
5023,
11654,
14,
9923,
14,
1190,
1610,
12672,
492,
377,
18,
1610,
1558,
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... |
analyseuc3m/ANALYSE-v1 | cms/djangoapps/contentstore/features/common.py | 60 | 12732 | # pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
import os
from lettuce import world, step
from nose.tools import assert_true, assert_in
from django.conf import settings
from student.roles import CourseStaffRole, CourseInstructorRole, GlobalStaff
from student.models import get_user
from sel... | agpl-3.0 | [
3,
4287,
26,
3507,
29,
4752,
13,
12485,
199,
3,
4287,
26,
3507,
29,
27913,
13,
7837,
13,
354,
199,
199,
646,
747,
199,
504,
4691,
84,
3683,
492,
6701,
12,
3650,
199,
504,
11354,
14,
2537,
492,
702,
63,
2052,
12,
702,
63,
262,
... | [
4287,
26,
3507,
29,
4752,
13,
12485,
199,
3,
4287,
26,
3507,
29,
27913,
13,
7837,
13,
354,
199,
199,
646,
747,
199,
504,
4691,
84,
3683,
492,
6701,
12,
3650,
199,
504,
11354,
14,
2537,
492,
702,
63,
2052,
12,
702,
63,
262,
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... |
rahuldan/sympy | sympy/ntheory/modular.py | 108 | 7676 | from __future__ import print_function, division
from sympy.core.numbers import igcdex, igcd
from sympy.core.mul import prod
from sympy.core.compatibility import as_int, reduce
from sympy.ntheory.primetest import isprime
from sympy.polys.domains import ZZ
from sympy.polys.galoistools import gf_crt, gf_crt1, gf_crt2
d... | bsd-3-clause | [
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
199,
504,
5840,
14,
1018,
14,
10548,
492,
284,
9493,
731,
12,
284,
22795,
199,
504,
5840,
14,
1018,
14,
3703,
492,
12441,
199,
504,
5840,
14,
1018,
14,
15390,
492,
465,
63,
... | [
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
199,
504,
5840,
14,
1018,
14,
10548,
492,
284,
9493,
731,
12,
284,
22795,
199,
504,
5840,
14,
1018,
14,
3703,
492,
12441,
199,
504,
5840,
14,
1018,
14,
15390,
492,
465,
63,
442,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Ripley6811/TAIMAU | src/frames/po/prodselectf.py | 1 | 12013 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import Tix
import tkMessageBox
from utils import settings
from utils import calendar_tixradiobutton as date_picker
from utils.symbols import U_TOOLS, U_TRUCK
def main(_):
"""List products for creating orders.
Enter prices and order amounts and save as a multiple... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
25984,
199,
646,
10157,
13695,
199,
199,
504,
3778,
492,
2202,
199,
504,
3778,
492,
11234,
63,
31625,
12841,
2873,
2471,
465,
1434,
63,
4510... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
25984,
199,
646,
10157,
13695,
199,
199,
504,
3778,
492,
2202,
199,
504,
3778,
492,
11234,
63,
31625,
12841,
2873,
2471,
465,
1434,
63,
4510,
281,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ldtp/ldtp2 | ldtpd/xmlrpc_daemon.py | 3 | 4888 | """
LDTP v2 xml rpc daemon.
@author: Eitan Isaacson <eitan@ascender.com>
@author: Nagappan Alagappan <nagappan@gmail.com>
@copyright: Copyright (c) 2009 Eitan Isaacson
@copyright: Copyright (c) 2009-13 Nagappan Alagappan
@license: LGPL
http://ldtp.freedesktop.org
This file may be distributed and/or modified under th... | lgpl-2.1 | [
624,
199,
6533,
6495,
373,
18,
2748,
8985,
11128,
14,
199,
199,
32,
2502,
26,
662,
390,
290,
473,
2231,
645,
834,
665,
69,
390,
290,
32,
305,
2497,
424,
14,
957,
30,
199,
32,
2502,
26,
653,
643,
571,
290,
437,
1823,
571,
290,
... | [
199,
6533,
6495,
373,
18,
2748,
8985,
11128,
14,
199,
199,
32,
2502,
26,
662,
390,
290,
473,
2231,
645,
834,
665,
69,
390,
290,
32,
305,
2497,
424,
14,
957,
30,
199,
32,
2502,
26,
653,
643,
571,
290,
437,
1823,
571,
290,
665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RunningLight/machinekit | configs/sim/axis/remap/iocontrol-removed/python/embedding.py | 28 | 1709 | # a tour of accessing interpreter internals
def call_stack(self,*args):
print "------- interpreter call stack: "
for i in range(self.call_level):
s = self.sub_context[i]
print "%d: position=%d sequence_number=%d filename=%s subname=%s context_status=%x" % (i, s.position, s.sequence_number,s.fil... | lgpl-2.1 | [
3,
282,
370,
300,
402,
18549,
12693,
5007,
83,
199,
199,
318,
1240,
63,
2340,
8,
277,
19166,
589,
304,
272,
870,
298,
12797,
12693,
1240,
3464,
26,
298,
272,
367,
284,
315,
1425,
8,
277,
14,
1250,
63,
1896,
304,
267,
308,
275,
2... | [
282,
370,
300,
402,
18549,
12693,
5007,
83,
199,
199,
318,
1240,
63,
2340,
8,
277,
19166,
589,
304,
272,
870,
298,
12797,
12693,
1240,
3464,
26,
298,
272,
367,
284,
315,
1425,
8,
277,
14,
1250,
63,
1896,
304,
267,
308,
275,
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... |
eformat/vertx-web | vertx-web/src/test/sockjs-protocol/venv/lib/python2.7/site-packages/unittest2/test/test_case.py | 13 | 51351 | import contextlib
from copy import deepcopy
import difflib
import gc
import pickle
import pprint
import re
import sys
import logging
import six
from six import b, u
import unittest2
import unittest2 as unittest
from unittest2.test.support import (
OldTestResult, EqualityMixin, HashingMixin, LoggingResult,
Le... | apache-2.0 | [
646,
15502,
199,
504,
1331,
492,
14800,
199,
646,
27070,
199,
646,
9486,
199,
646,
5927,
199,
646,
10933,
199,
646,
295,
199,
646,
984,
199,
646,
2050,
199,
199,
646,
3816,
199,
504,
3816,
492,
330,
12,
399,
199,
199,
646,
2882,
1... | [
15502,
199,
504,
1331,
492,
14800,
199,
646,
27070,
199,
646,
9486,
199,
646,
5927,
199,
646,
10933,
199,
646,
295,
199,
646,
984,
199,
646,
2050,
199,
199,
646,
3816,
199,
504,
3816,
492,
330,
12,
399,
199,
199,
646,
2882,
18,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mathhun/scipy_2015_sklearn_tutorial | notebooks/figures/plot_kneighbors_regularization.py | 25 | 1363 | import numpy as np
import matplotlib.pyplot as plt
from sklearn.neighbors import KNeighborsRegressor
def make_dataset(n_samples=100):
rnd = np.random.RandomState(42)
x = np.linspace(-3, 3, n_samples)
y_no_noise = np.sin(4 * x) + x
y = y_no_noise + rnd.normal(size=len(x))
return x, y
def plot_re... | cc0-1.0 | [
646,
2680,
465,
980,
199,
646,
8027,
14,
13563,
465,
4488,
199,
199,
504,
6357,
14,
11113,
492,
1804,
20011,
15155,
421,
199,
318,
1852,
63,
5214,
8,
78,
63,
3356,
29,
1960,
304,
272,
20665,
275,
980,
14,
2355,
14,
15726,
8,
2260,... | [
2680,
465,
980,
199,
646,
8027,
14,
13563,
465,
4488,
199,
199,
504,
6357,
14,
11113,
492,
1804,
20011,
15155,
421,
199,
318,
1852,
63,
5214,
8,
78,
63,
3356,
29,
1960,
304,
272,
20665,
275,
980,
14,
2355,
14,
15726,
8,
2260,
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... |
UoMCS/syllabus-visualisation | add_initial_data.py | 1 | 5971 | #!/usr/bin/python
from __future__ import print_function
import sys
import os
import glob
import itertools
import argparse
from flask import Flask
import openpyxl
import requests
from server.app import app
from server.models import *
from server.api import get_categories
# Expected spreadsheet headers
HEADERS = [('... | mit | [
3381,
2647,
15,
1393,
15,
1548,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
646,
984,
199,
646,
747,
199,
646,
5739,
199,
646,
7975,
199,
646,
7534,
199,
199,
504,
7209,
492,
16704,
199,
646,
1551,
647,
15455,
199... | [
2647,
15,
1393,
15,
1548,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
646,
984,
199,
646,
747,
199,
646,
5739,
199,
646,
7975,
199,
646,
7534,
199,
199,
504,
7209,
492,
16704,
199,
646,
1551,
647,
15455,
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... |
openstack/nova | nova/tests/unit/policies/test_lock_server.py | 3 | 10320 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | [
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
259,
282,
1331,
402,
314,
844,
737,... | [
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
259,
282,
1331,
402,
314,
844,
737,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
aptrishu/coala | coalib/results/result_actions/IgnoreResultAction.py | 6 | 4593 | from coalib.bearlib.languages import Language
from coalib.bearlib.languages.Language import UnknownLanguageError
from coalib.results.result_actions.ResultAction import ResultAction
from coalib.results.Result import Result
from coalib.results.Diff import Diff
from coala_utils.FileUtils import detect_encoding
from os.pat... | agpl-3.0 | [
504,
512,
25530,
14,
31796,
773,
14,
13209,
492,
8466,
199,
504,
512,
25530,
14,
31796,
773,
14,
13209,
14,
8493,
492,
14831,
8493,
547,
199,
504,
512,
25530,
14,
2604,
14,
1099,
63,
3723,
14,
2889,
3310,
492,
10695,
3310,
199,
504,... | [
512,
25530,
14,
31796,
773,
14,
13209,
492,
8466,
199,
504,
512,
25530,
14,
31796,
773,
14,
13209,
14,
8493,
492,
14831,
8493,
547,
199,
504,
512,
25530,
14,
2604,
14,
1099,
63,
3723,
14,
2889,
3310,
492,
10695,
3310,
199,
504,
512,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jlegendary/orange | Orange/data/utils.py | 6 | 8732 | #from __future__ import absolute_import
from Orange.core import TransformValue, \
Ordinal2Continuous, \
Discrete2Continuous, \
NormalizeContinuous, \
MapIntValue
import random
import math
from operator import itemgetter
from collections import defaultdict
from Orange.data import Table, Domain, Inst... | gpl-3.0 | [
3,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
199,
504,
593,
1842,
14,
1018,
492,
19463,
1110,
12,
971,
272,
4236,
68,
1582,
18,
24593,
7514,
12,
971,
272,
5289,
7564,
18,
24593,
7514,
12,
971,
272,
21017,
24593,
7514,
12,
971,... | [
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
199,
504,
593,
1842,
14,
1018,
492,
19463,
1110,
12,
971,
272,
4236,
68,
1582,
18,
24593,
7514,
12,
971,
272,
5289,
7564,
18,
24593,
7514,
12,
971,
272,
21017,
24593,
7514,
12,
971,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
partp/gtg-services | tests/tools/test_dates.py | 2 | 5285 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Getting Things GNOME! - a personal organizer for the GNOME desktop
# Copyright (c) 2008-2014 - Lionel Dricot & Bertrand Rousseau
#
# This program is free software: you can redistribute it and/or modify it under
# t... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
13722,
199,
3,
20703,
3868,
780,
598,
2826,
3635,
1,
446,
282,
25994,
20765,
1793,
367,
314,
598,
2826,
3635,
19763,
199,
3,
1898,
334,
67,
9,
9079,
13,
7280,
446,
491,
1636,
352,
5... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
13722,
199,
3,
20703,
3868,
780,
598,
2826,
3635,
1,
446,
282,
25994,
20765,
1793,
367,
314,
598,
2826,
3635,
19763,
199,
3,
1898,
334,
67,
9,
9079,
13,
7280,
446,
491,
1636,
352,
577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kernc/networkx | networkx/drawing/tests/test_layout.py | 43 | 1870 | """Unit tests for layout functions."""
import sys
from nose import SkipTest
from nose.tools import assert_equal
import networkx as nx
class TestLayout(object):
numpy=1 # nosetests attribute, use nosetests -a 'not numpy' to skip test
@classmethod
def setupClass(cls):
global numpy
try:
... | bsd-3-clause | [
624,
5072,
2295,
367,
7054,
3423,
1041,
199,
646,
984,
199,
504,
11354,
492,
18795,
199,
504,
11354,
14,
2537,
492,
702,
63,
1452,
199,
646,
24313,
465,
8484,
199,
199,
533,
1379,
4798,
8,
785,
304,
272,
2680,
29,
17,
327,
11354,
... | [
5072,
2295,
367,
7054,
3423,
1041,
199,
646,
984,
199,
504,
11354,
492,
18795,
199,
504,
11354,
14,
2537,
492,
702,
63,
1452,
199,
646,
24313,
465,
8484,
199,
199,
533,
1379,
4798,
8,
785,
304,
272,
2680,
29,
17,
327,
11354,
2219,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Alignak-monitoring-contrib/alignak-webui | alignak_webui/plugins/grafana/grafana.py | 1 | 1479 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2018:
# Frederic Mohier, frederic.mohier@alignak.net
#
# This file is part of (WebUI).
#
# (WebUI) is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software F... | agpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
6900,
13,
12682,
26,
199,
3,
257,
481,
21919,
1567,
3930,
31184,
12,
20673,
271,
1567,
14,
573,
31184,
32,
5743,
1151,
14... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
6900,
13,
12682,
26,
199,
3,
257,
481,
21919,
1567,
3930,
31184,
12,
20673,
271,
1567,
14,
573,
31184,
32,
5743,
1151,
14,
846,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jhawkesworth/ansible-modules-core | windows/win_stat.py | 66 | 1711 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
326... | [
2647,
15,
1393,
15,
1548,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
3267,
701... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cortedeltimo/SickRage | lib/sqlalchemy/testing/suite/test_reflection.py | 76 | 19615 |
import sqlalchemy as sa
from sqlalchemy import exc as sa_exc
from sqlalchemy import types as sql_types
from sqlalchemy import inspect
from sqlalchemy import MetaData, Integer, String
from sqlalchemy.engine.reflection import Inspector
from sqlalchemy.testing import engines, fixtures
from sqlalchemy.testing.schema impo... | gpl-3.0 | [
199,
199,
646,
8335,
465,
2937,
199,
504,
8335,
492,
3178,
465,
2937,
63,
2804,
199,
504,
8335,
492,
2943,
465,
3875,
63,
1313,
199,
504,
8335,
492,
6485,
199,
504,
8335,
492,
24905,
12,
7225,
12,
2624,
199,
504,
8335,
14,
3908,
1... | [
199,
646,
8335,
465,
2937,
199,
504,
8335,
492,
3178,
465,
2937,
63,
2804,
199,
504,
8335,
492,
2943,
465,
3875,
63,
1313,
199,
504,
8335,
492,
6485,
199,
504,
8335,
492,
24905,
12,
7225,
12,
2624,
199,
504,
8335,
14,
3908,
14,
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... |
leifurhauks/grpc | tools/buildgen/plugins/expand_bin_attrs.py | 31 | 2515 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | [
3,
1898,
6900,
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,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
6900,
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,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GNOME/pygtk | examples/pygtk-demo/demos/colorsel.py | 6 | 2059 | #!/usr/bin/env python
"""Color Selector
GtkColorSelection lets the user choose a color. GtkColorSelectionDialog is a
prebuilt dialog containing a GtkColorSelection."""
import pygtk
pygtk.require('2.0')
import gtk
class ColorSelectorDemo(gtk.Window):
color = gtk.gdk.color_parse("blue")
def __init__(self, par... | lgpl-2.1 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
624,
4117,
3240,
3283,
199,
199,
18891,
4117,
7713,
19083,
314,
922,
11496,
282,
3164,
14,
11424,
4117,
7713,
5619,
365,
282,
199,
657,
11730,
9592,
3035,
282,
11424,
4117,
7713,
1041,
199,
1... | [
2647,
15,
1393,
15,
1813,
2366,
199,
624,
4117,
3240,
3283,
199,
199,
18891,
4117,
7713,
19083,
314,
922,
11496,
282,
3164,
14,
11424,
4117,
7713,
5619,
365,
282,
199,
657,
11730,
9592,
3035,
282,
11424,
4117,
7713,
1041,
199,
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... |
0Chencc/CTFCrackTools | Lib/Lib/email/charset.py | 180 | 16043 | # Copyright (C) 2001-2006 Python Software Foundation
# Author: Ben Gertzfield, Barry Warsaw
# Contact: email-sig@python.org
__all__ = [
'Charset',
'add_alias',
'add_charset',
'add_codec',
]
import codecs
import email.base64mime
import email.quoprimime
from email import errors
from email.encoders ... | gpl-3.0 | [
3,
1898,
334,
35,
9,
12521,
13,
7968,
2018,
2290,
2752,
199,
3,
6529,
26,
26844,
22261,
3903,
698,
12,
12377,
651,
644,
285,
2231,
87,
199,
3,
18684,
26,
3031,
13,
4093,
32,
1548,
14,
1308,
199,
199,
363,
452,
363,
275,
359,
272... | [
1898,
334,
35,
9,
12521,
13,
7968,
2018,
2290,
2752,
199,
3,
6529,
26,
26844,
22261,
3903,
698,
12,
12377,
651,
644,
285,
2231,
87,
199,
3,
18684,
26,
3031,
13,
4093,
32,
1548,
14,
1308,
199,
199,
363,
452,
363,
275,
359,
272,
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... |
thombashi/pingparsing | pingparsing/_cmd_maker.py | 1 | 7021 | import abc
import math
from typing import List, Optional
import humanreadable as hr
from subprocrunner.typing import Command
from typepy import Integer
from ._typing import PingAddOpts
DEFAULT_DEADLINE = 3
class PingCmdMaker(metaclass=abc.ABCMeta):
def __init__(
self,
count: Optional[int] = No... | mit | [
646,
13022,
199,
646,
3473,
199,
504,
14090,
492,
3820,
12,
4879,
199,
199,
646,
11779,
11875,
465,
16140,
199,
504,
1007,
4687,
5933,
14,
29747,
492,
5817,
199,
504,
730,
647,
492,
7225,
199,
199,
504,
13653,
29747,
492,
510,
316,
... | [
13022,
199,
646,
3473,
199,
504,
14090,
492,
3820,
12,
4879,
199,
199,
646,
11779,
11875,
465,
16140,
199,
504,
1007,
4687,
5933,
14,
29747,
492,
5817,
199,
504,
730,
647,
492,
7225,
199,
199,
504,
13653,
29747,
492,
510,
316,
1123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
hdinsight/hue | desktop/core/ext-py/django-extensions-1.5.0/django_extensions/utils/dia2django.py | 37 | 10304 | # -*- coding: UTF-8 -*-
##Author Igor Támara igor@tamarapatino.org
##Use this little program as you wish, if you
#include it in your work, let others know you
#are using it preserving this note, you have
#the right to make derivative works, Use it
#at your own risk.
#Tested to work on(etch testing 13-08-2007):
# Pytho... | apache-2.0 | [
3,
1882,
2803,
26,
9094,
13,
24,
1882,
199,
309,
5949,
473,
2904,
377,
11302,
4584,
65,
284,
2904,
32,
84,
455,
285,
439,
292,
10175,
14,
1308,
199,
309,
6119,
642,
12050,
2240,
465,
1265,
13809,
12,
340,
1265,
199,
3,
2613,
652,
... | [
1882,
2803,
26,
9094,
13,
24,
1882,
199,
309,
5949,
473,
2904,
377,
11302,
4584,
65,
284,
2904,
32,
84,
455,
285,
439,
292,
10175,
14,
1308,
199,
309,
6119,
642,
12050,
2240,
465,
1265,
13809,
12,
340,
1265,
199,
3,
2613,
652,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bastik/youtube-dl | youtube_dl/extractor/academicearth.py | 95 | 1399 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
class AcademicEarthCourseIE(InfoExtractor):
_VALID_URL = r'^https?://(?:www\.)?academicearth\.org/playlists/(?P<id>[^?#/]+)'
IE_NAME = 'AcademicEarth:Course'
_TEST = {
'url': 'http://academicearth.org/playlists/l... | unlicense | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
199,
504,
1275,
2330,
492,
21298,
421,
199,
533,
437,
9490,
15003,
37,
19677,
6979,
4332,
8,
18283,
304,
272,
485,
5600,
63,
2632,
275,
519,
4289,
2859,
24524,
1544,... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
199,
504,
1275,
2330,
492,
21298,
421,
199,
533,
437,
9490,
15003,
37,
19677,
6979,
4332,
8,
18283,
304,
272,
485,
5600,
63,
2632,
275,
519,
4289,
2859,
24524,
1544,
2031... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
frederick-masterton/django | django/utils/2to3_fixes/fix_unicode.py | 349 | 1181 | """Fixer for __unicode__ methods.
Uses the django.utils.encoding.python_2_unicode_compatible decorator.
"""
from __future__ import unicode_literals
from lib2to3 import fixer_base
from lib2to3.fixer_util import find_indentation, Name, syms, touch_import
from lib2to3.pgen2 import token
from lib2to3.pytree import Leaf,... | bsd-3-clause | [
624,
11985,
281,
367,
636,
2975,
363,
3102,
14,
199,
199,
21896,
314,
1639,
14,
1208,
14,
2991,
14,
1548,
63,
18,
63,
2975,
63,
6490,
7531,
14,
199,
624,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1973,
1... | [
11985,
281,
367,
636,
2975,
363,
3102,
14,
199,
199,
21896,
314,
1639,
14,
1208,
14,
2991,
14,
1548,
63,
18,
63,
2975,
63,
6490,
7531,
14,
199,
624,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1973,
18,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cloudbase/neutron | neutron/server/wsgi_pecan.py | 9 | 1026 | #!/usr/bin/env python
# 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 wr... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
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... |
eric-stanley/robotframework | utest/utils/test_robottime.py | 4 | 17337 | import unittest
import re
import time
import datetime
from robot.utils.asserts import (assert_equal, assert_raises_with_msg,
assert_true, assert_not_none)
from robot.utils.robottime import (timestr_to_secs, secs_to_timestr, get_time,
parse_time, form... | apache-2.0 | [
646,
2882,
199,
646,
295,
199,
646,
900,
199,
646,
2197,
199,
199,
504,
14544,
14,
1208,
14,
479,
83,
492,
334,
479,
63,
1452,
12,
702,
63,
3536,
63,
1045,
63,
1328,
12,
639,
702,
63,
2052,
12,
702,
63,
1397,
63,
3592,
9,
199,... | [
2882,
199,
646,
295,
199,
646,
900,
199,
646,
2197,
199,
199,
504,
14544,
14,
1208,
14,
479,
83,
492,
334,
479,
63,
1452,
12,
702,
63,
3536,
63,
1045,
63,
1328,
12,
639,
702,
63,
2052,
12,
702,
63,
1397,
63,
3592,
9,
199,
199,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shanglt/youtube-dl | youtube_dl/extractor/laola1tv.py | 122 | 3030 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import random
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
xpath_text,
)
class Laola1TvIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?laola1\.tv/(?P<lang>[a-z]+)-(?P<portal>[a-z]+)/.*?/(?P<id>[0-9]... | unlicense | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2196,
199,
646,
295,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
19783,
12,
272,
14462,
63,
505,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2196,
199,
646,
295,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
19783,
12,
272,
14462,
63,
505,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shurihell/testasia | openedx/core/djangoapps/credit/tasks.py | 60 | 7836 | """
This file contains celery tasks for credit course views.
"""
from celery import task
from celery.utils.log import get_task_logger
from django.conf import settings
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey, UsageKey
from openedx.core.djangoapps.credit.api import set_credit_... | agpl-3.0 | [
624,
199,
2765,
570,
3509,
22748,
6527,
367,
16630,
2518,
6858,
14,
199,
624,
199,
199,
504,
22748,
492,
2120,
199,
504,
22748,
14,
1208,
14,
793,
492,
664,
63,
1765,
63,
2921,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
15058,
... | [
199,
2765,
570,
3509,
22748,
6527,
367,
16630,
2518,
6858,
14,
199,
624,
199,
199,
504,
22748,
492,
2120,
199,
504,
22748,
14,
1208,
14,
793,
492,
664,
63,
1765,
63,
2921,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
15058,
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... |
justyns/emacs-for-python | python-libs/rope/base/oi/runmod.py | 32 | 7600 |
def __rope_start_everything():
import os
import sys
import socket
import cPickle as pickle
import marshal
import inspect
import types
import threading
class _MessageSender(object):
def send_data(self, data):
pass
class _SocketSender(_MessageSender):
... | gpl-3.0 | [
199,
318,
636,
293,
321,
63,
928,
63,
14287,
2127,
837,
272,
492,
747,
272,
492,
984,
272,
492,
2838,
272,
492,
17572,
465,
5927,
272,
492,
21985,
272,
492,
6485,
272,
492,
2943,
272,
492,
5796,
339,
1021,
485,
2209,
28002,
8,
785... | [
318,
636,
293,
321,
63,
928,
63,
14287,
2127,
837,
272,
492,
747,
272,
492,
984,
272,
492,
2838,
272,
492,
17572,
465,
5927,
272,
492,
21985,
272,
492,
6485,
272,
492,
2943,
272,
492,
5796,
339,
1021,
485,
2209,
28002,
8,
785,
304... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tsdmgz/ansible | lib/ansible/plugins/connection/local.py | 73 | 6815 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015, 2017 Toshio Kuratomi <tkuratomi@ansible.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, eithe... | gpl-3.0 | [
3,
334,
67,
9,
6029,
12,
16922,
22453,
665,
22333,
14,
24247,
32,
6799,
14,
957,
30,
199,
3,
334,
67,
9,
6900,
12,
9708,
4005,
609,
2308,
1804,
300,
4188,
73,
665,
2663,
300,
4188,
73,
32,
4853,
14,
957,
30,
199,
3,
199,
3,
... | [
334,
67,
9,
6029,
12,
16922,
22453,
665,
22333,
14,
24247,
32,
6799,
14,
957,
30,
199,
3,
334,
67,
9,
6900,
12,
9708,
4005,
609,
2308,
1804,
300,
4188,
73,
665,
2663,
300,
4188,
73,
32,
4853,
14,
957,
30,
199,
3,
199,
3,
961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ibab/tensorflow | tensorflow/contrib/__init__.py | 5 | 1621 | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | [
3,
1898,
6900,
4475,
3277,
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,
... | [
1898,
6900,
4475,
3277,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
qifeigit/scikit-learn | examples/decomposition/plot_pca_3d.py | 354 | 2432 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
=========================================================
Principal components analysis (PCA)
=========================================================
These figures aid in illustrating how a point cloud
can be very flat in one direction--which is where PCA
comes in to ch... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
12813,
15495,
199,
31729,
7323,
11284,
334,
23852,
9,
199,
12813,
15495,
199,
199,
20676,
6085,
1482,
23939,
315,
22907,
11409,
1958,
4212... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
12813,
15495,
199,
31729,
7323,
11284,
334,
23852,
9,
199,
12813,
15495,
199,
199,
20676,
6085,
1482,
23939,
315,
22907,
11409,
1958,
4212,
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... |
sammyt/p3 | tests/p3_select_all_vows.py | 1 | 3512 | from p3 import P3
from pyvows import Vows, expect
import lxml
from lxml.etree import ElementBase
from lxml.html import builder as E
from lxml.html import fromstring, tostring
from lxml.cssselect import CSSSelector
@Vows.batch
class SelectionSelectAll(Vows.Context):
class SelectBody(Vows.Context):
"""se... | mit | [
504,
299,
19,
492,
510,
19,
199,
504,
1134,
86,
27649,
492,
812,
27649,
12,
4282,
199,
199,
646,
14490,
199,
199,
504,
14490,
14,
9464,
492,
6566,
1563,
199,
504,
14490,
14,
1360,
492,
6545,
465,
662,
199,
504,
14490,
14,
1360,
49... | [
299,
19,
492,
510,
19,
199,
504,
1134,
86,
27649,
492,
812,
27649,
12,
4282,
199,
199,
646,
14490,
199,
199,
504,
14490,
14,
9464,
492,
6566,
1563,
199,
504,
14490,
14,
1360,
492,
6545,
465,
662,
199,
504,
14490,
14,
1360,
492,
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... |
alex/sqlalchemy | lib/sqlalchemy/sql/sqltypes.py | 2 | 51062 | # sql/sqltypes.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
"""SQL specific types.
"""
import datetime as dt
import codecs
from .type_api impor... | mit | [
3,
3875,
15,
3009,
1313,
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,
84... | [
3875,
15,
3009,
1313,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
menardorama/ReadyNAS-Add-ons | headphones-1.0.0/files/etc/apps/headphones/lib/unidecode/x0c5.py | 253 | 4581 | data = (
'sseum', # 0x00
'sseub', # 0x01
'sseubs', # 0x02
'sseus', # 0x03
'sseuss', # 0x04
'sseung', # 0x05
'sseuj', # 0x06
'sseuc', # 0x07
'sseuk', # 0x08
'sseut', # 0x09
'sseup', # 0x0a
'sseuh', # 0x0b
'ssyi', # 0x0c
'ssyig', # 0x0d
'ssyigg', # 0x0e
'ssyigs', # 0x0f
'ss... | gpl-2.0 | [
576,
275,
334,
199,
1159,
261,
453,
297,
259,
327,
378,
88,
383,
199,
1159,
261,
456,
297,
259,
327,
378,
88,
614,
199,
1159,
261,
30327,
297,
259,
327,
378,
88,
996,
199,
1159,
261,
527,
297,
259,
327,
378,
88,
1644,
199,
1159,... | [
275,
334,
199,
1159,
261,
453,
297,
259,
327,
378,
88,
383,
199,
1159,
261,
456,
297,
259,
327,
378,
88,
614,
199,
1159,
261,
30327,
297,
259,
327,
378,
88,
996,
199,
1159,
261,
527,
297,
259,
327,
378,
88,
1644,
199,
1159,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JVillella/tensorflow | tensorflow/python/layers/layers.py | 41 | 2376 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sonyahanson/assaytools | examples/ipynbs/data-analysis/spectra/2015-12-18/xml2png4scans-spectra.py | 8 | 5636 | # This script takes xml data file output from the Tecan Infinite m1000 Pro plate reader
# and makes quick and dirty images of the raw data.
# But with scans and not just singlet reads.
# This script specifically combines four spectrum scripts (AB, CD, EF, GH) into a single dataframe and plot.
# The same procedure can... | lgpl-2.1 | [
3,
961,
2884,
6181,
2748,
666,
570,
1072,
687,
314,
377,
825,
290,
1010,
8005,
333,
5279,
2165,
299,
750,
7002,
199,
3,
436,
7704,
12530,
436,
14650,
5935,
402,
314,
3066,
666,
14,
199,
199,
3,
11017,
543,
4061,
796,
436,
440,
295... | [
961,
2884,
6181,
2748,
666,
570,
1072,
687,
314,
377,
825,
290,
1010,
8005,
333,
5279,
2165,
299,
750,
7002,
199,
3,
436,
7704,
12530,
436,
14650,
5935,
402,
314,
3066,
666,
14,
199,
199,
3,
11017,
543,
4061,
796,
436,
440,
2951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MycChiu/tensorflow | tensorflow/python/ops/gradient_checker.py | 82 | 14406 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
openhatch/oh-mainline | vendor/packages/gdata/tests/gdata_tests/blogger/live_client_test.py | 39 | 5831 | #!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | agpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
334,
35,
9,
8937,
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,
57... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
334,
35,
9,
8937,
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,
871... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
crmccreary/openerp_server | openerp/addons/sale/report/__init__.py | 10 | 1082 | # -*- 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... |
ess/dd-agent | checks.d/go_expvar.py | 26 | 7086 | # stdlib
from collections import defaultdict
import re
# 3rd party
import requests
# project
from checks import AgentCheck
DEFAULT_MAX_METRICS = 350
PATH = "path"
ALIAS = "alias"
TYPE = "type"
TAGS = "tags"
GAUGE = "gauge"
RATE = "rate"
DEFAULT_TYPE = GAUGE
SUPPORTED_TYPES = {
GAUGE: AgentCheck.gauge,
RAT... | bsd-3-clause | [
3,
26678,
199,
504,
5055,
492,
10018,
199,
646,
295,
199,
199,
3,
650,
6883,
17135,
199,
646,
4145,
199,
199,
3,
2199,
199,
504,
5920,
492,
19866,
1799,
199,
199,
3472,
63,
4283,
63,
30476,
275,
31921,
199,
3243,
275,
298,
515,
2,... | [
26678,
199,
504,
5055,
492,
10018,
199,
646,
295,
199,
199,
3,
650,
6883,
17135,
199,
646,
4145,
199,
199,
3,
2199,
199,
504,
5920,
492,
19866,
1799,
199,
199,
3472,
63,
4283,
63,
30476,
275,
31921,
199,
3243,
275,
298,
515,
2,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
egyp7/Subterfuge | modules/harvester/harvester.py | 4 | 5071 | #!/usr/bin/python
import os
import re
import sys
sys.path.append('/usr/share/subterfuge')
import time
import datetime
import urllib
#Ignore Deprication Warnings
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
from django.conf import settings
settings.configure(
DATABASES = {
'de... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
646,
747,
199,
646,
295,
199,
646,
984,
199,
1274,
14,
515,
14,
740,
2336,
2647,
15,
6251,
15,
954,
351,
13499,
303,
358,
199,
646,
900,
199,
646,
2197,
199,
646,
4011,
8330,
327,
9495,
1487,
... | [
2647,
15,
1393,
15,
1548,
199,
646,
747,
199,
646,
295,
199,
646,
984,
199,
1274,
14,
515,
14,
740,
2336,
2647,
15,
6251,
15,
954,
351,
13499,
303,
358,
199,
646,
900,
199,
646,
2197,
199,
646,
4011,
8330,
327,
9495,
1487,
1359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rowillia/buck | third-party/py/unittest2/unittest2/test/test_functiontestcase.py | 122 | 5570 | import unittest2
from unittest2.test.support import LoggingResult
class Test_FunctionTestCase(unittest2.TestCase):
# "Return the number of tests represented by the this test object. For
# unittest2.TestCase instances, this will always be 1"
def test_countTestCases(self):
test = unittest2.Functio... | apache-2.0 | [
646,
2882,
18,
199,
199,
504,
2882,
18,
14,
396,
14,
4058,
492,
19928,
2889,
421,
199,
533,
1379,
63,
3481,
1746,
8,
2796,
18,
14,
1746,
304,
339,
327,
298,
1767,
314,
1329,
402,
2295,
11159,
701,
314,
642,
511,
909,
14,
2104,
2... | [
2882,
18,
199,
199,
504,
2882,
18,
14,
396,
14,
4058,
492,
19928,
2889,
421,
199,
533,
1379,
63,
3481,
1746,
8,
2796,
18,
14,
1746,
304,
339,
327,
298,
1767,
314,
1329,
402,
2295,
11159,
701,
314,
642,
511,
909,
14,
2104,
272,
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... |
OpenTrons/opentrons-api | api/src/opentrons/calibration_storage/types.py | 2 | 1757 | import typing
from dataclasses import dataclass
from datetime import datetime
from os import PathLike
CalibrationID = typing.NewType('CalibrationID', str)
StrPath = typing.Union[str, PathLike]
AttitudeMatrix = typing.List[typing.List[float]]
PipetteOffset = typing.List[float]
class TipLengthCalNotFound(Exception):... | apache-2.0 | [
646,
14090,
199,
199,
504,
666,
2888,
492,
666,
533,
199,
504,
2197,
492,
2197,
199,
504,
747,
492,
6912,
12545,
421,
199,
26015,
1754,
998,
275,
14090,
14,
4665,
804,
360,
26015,
1754,
998,
297,
620,
9,
199,
2848,
2042,
275,
14090,... | [
14090,
199,
199,
504,
666,
2888,
492,
666,
533,
199,
504,
2197,
492,
2197,
199,
504,
747,
492,
6912,
12545,
421,
199,
26015,
1754,
998,
275,
14090,
14,
4665,
804,
360,
26015,
1754,
998,
297,
620,
9,
199,
2848,
2042,
275,
14090,
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... |
sysbot/pastedown | vendor/pygments/pygments/styles/default.py | 26 | 2532 | # -*- coding: utf-8 -*-
"""
pygments.styles.default
~~~~~~~~~~~~~~~~~~~~~~~
The default highlighting style.
:copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Keyword, Name, Com... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12955,
14,
885,
272,
18294,
2878,
23597,
339,
710,
849,
22437,
3449,
14,
339,
520,
7307,
26,
1898,
8315,
13,
7409,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
272,
5... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12955,
14,
885,
272,
18294,
2878,
23597,
339,
710,
849,
22437,
3449,
14,
339,
520,
7307,
26,
1898,
8315,
13,
7409,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
272,
520,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zaina/nova | nova/network/opts.py | 51 | 1529 | # 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 Li... | apache-2.0 | [
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
440,
199,
3,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
282,
1331,
199,
3,
402,
314,
844,
737,
199,
3,
199,
... | [
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
440,
199,
3,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
282,
1331,
199,
3,
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... |
petemounce/ansible-modules-extras | cloud/amazon/ec2_eni.py | 10 | 14272 | #!/usr/bin/python
#
# This is a 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.
#
# This Ansible library is distributed in the hope that i... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
961,
365,
282,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
3267,
701,
199,
3,
314,
2868,
2290,
275... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
961,
365,
282,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
3267,
701,
199,
3,
314,
2868,
2290,
2752,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
hickerson/bbn | fable/fable_sources/libtbx/lzw.py | 1 | 25535 | """
A stream friendly, simple compression library, built around
iterators. See L{compress} and L{decompress} for the easiest way to
get started.
After the TIFF implementation of LZW, as described at
U{http://www.fileformat.info/format/tiff/corion-lzw.htm}
In an even-nuttier-shell, lzw compresses input bytes with int... | mit | [
624,
199,
33,
2547,
21428,
12,
3486,
10291,
3555,
12,
6137,
6818,
199,
1661,
2750,
14,
1666,
491,
91,
6447,
93,
436,
491,
91,
14954,
93,
367,
314,
9600,
73,
597,
4340,
370,
199,
362,
8239,
14,
199,
199,
10881,
314,
377,
24150,
451... | [
199,
33,
2547,
21428,
12,
3486,
10291,
3555,
12,
6137,
6818,
199,
1661,
2750,
14,
1666,
491,
91,
6447,
93,
436,
491,
91,
14954,
93,
367,
314,
9600,
73,
597,
4340,
370,
199,
362,
8239,
14,
199,
199,
10881,
314,
377,
24150,
4514,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
smeissner/eden | modules/tests/suite.py | 4 | 10356 | # This script is designed to be run as a Web2Py application:
# python web2py.py -S eden -M -R applications/eden/modules/tests/suite.py
# or
# python web2py.py -S eden -M -R applications/eden/modules/tests/suite.py -A testscript
import sys
import re
import time
import unittest
import argparse
def loadAllTests():
... | mit | [
3,
961,
2884,
365,
19829,
370,
506,
1255,
465,
282,
6001,
18,
2713,
4223,
26,
199,
3,
2366,
3330,
18,
647,
14,
647,
446,
51,
325,
848,
446,
45,
446,
50,
13103,
15,
69,
848,
15,
3112,
15,
2219,
15,
5768,
14,
647,
199,
3,
503,
... | [
961,
2884,
365,
19829,
370,
506,
1255,
465,
282,
6001,
18,
2713,
4223,
26,
199,
3,
2366,
3330,
18,
647,
14,
647,
446,
51,
325,
848,
446,
45,
446,
50,
13103,
15,
69,
848,
15,
3112,
15,
2219,
15,
5768,
14,
647,
199,
3,
503,
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... |
wangxhere/python-wpa-supplicant | docs/source/conf.py | 2 | 9398 | # -*- coding: utf-8 -*-
#
# python-wpa-supplicant documentation build configuration file, created by
# sphinx-quickstart on Wed Jun 3 14:30:47 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
# autogenerat... | mpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
2366,
13,
87,
387,
13,
8621,
606,
867,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
644,
379,
1603,
324,
221,
650,
4329,
26,
1216,
26,
2417,
6900,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
2366,
13,
87,
387,
13,
8621,
606,
867,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
644,
379,
1603,
324,
221,
650,
4329,
26,
1216,
26,
2417,
6900,
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... |
ctk3b/mdtraj | mdtraj/formats/lh5.py | 11 | 17930 | ##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2014 Stanford University and the Authors
#
# Authors: Robert McGibbon, Kyle A. Beauchamp
# Contributors:
#
# MDTraj ... | lgpl-2.1 | [
4605,
199,
3,
15830,
2437,
74,
26,
437,
2018,
11243,
367,
3835,
5384,
12,
428,
5519,
12,
436,
4688,
711,
20529,
199,
3,
260,
3930,
10251,
2238,
577,
4019,
2932,
12643,
963,
6112,
14,
199,
3,
1898,
6029,
13,
7280,
1933,
290,
18090,
... | [
199,
3,
15830,
2437,
74,
26,
437,
2018,
11243,
367,
3835,
5384,
12,
428,
5519,
12,
436,
4688,
711,
20529,
199,
3,
260,
3930,
10251,
2238,
577,
4019,
2932,
12643,
963,
6112,
14,
199,
3,
1898,
6029,
13,
7280,
1933,
290,
18090,
15904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
xhteam/external-chromium | googleurl/PRESUBMIT.py | 93 | 3371 | #!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for googleurl.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details o... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1898,
334,
67,
9,
8937,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5... | [
2647,
15,
1393,
15,
1548,
199,
3,
1898,
334,
67,
9,
8937,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
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... |
paolodedios/tensorflow | tensorflow/lite/python/metrics_interface.py | 6 | 1570 | # Lint as: python2, python3
# Copyright 2021 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
#
... | apache-2.0 | [
3,
491,
442,
465,
26,
2366,
18,
12,
2366,
19,
199,
3,
1898,
499,
15385,
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,
14... | [
491,
442,
465,
26,
2366,
18,
12,
2366,
19,
199,
3,
1898,
499,
15385,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pombredanne/teamwork | w2/static/Brython2.0.0-20140209-164925/Lib/http/cookies.py | 735 | 20810 | #!/usr/bin/env python3
#
####
# Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software
# and its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
199,
199,
381,
199,
3,
1898,
12293,
701,
377,
73,
573,
273,
89,
593,
7,
45,
4598,
89,
665,
280,
573,
32,
279,
453,
14,
1147,
14,
8654,
30,
199,
3,
199,
3,
4483,
2900,
5924,
5... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
199,
199,
381,
199,
3,
1898,
12293,
701,
377,
73,
573,
273,
89,
593,
7,
45,
4598,
89,
665,
280,
573,
32,
279,
453,
14,
1147,
14,
8654,
30,
199,
3,
199,
3,
4483,
2900,
5924,
5702,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
madongfly/grpc | src/python/grpcio/grpc/framework/foundation/relay.py | 23 | 5651 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | [
3,
1898,
6900,
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,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
6900,
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,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MakMukhi/grpc | test/http2_test/test_rst_during_data.py | 26 | 2707 | # Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | [
3,
1898,
7800,
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,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
7800,
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,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JackieJ/UCLA-robomagellan-2011 | glados_sensors/src/glados_sensors/msg/_imu.py | 2 | 3254 | """autogenerated by genmsg_py from imu.msg. Do not edit."""
import roslib.message
import struct
class imu(roslib.message.Message):
_md5sum = "4ed31225b8988ef9b0cd0b234eb0aa9b"
_type = "glados_sensors/imu"
_has_header = False #flag to mark the presence of a Header object
_full_text = """float32 bearing
float32... | gpl-2.0 | [
624,
6898,
16741,
701,
3805,
1328,
63,
647,
687,
3416,
85,
14,
1328,
14,
4226,
440,
5283,
1041,
199,
646,
882,
83,
773,
14,
1188,
199,
646,
2702,
421,
199,
533,
3416,
85,
8,
4796,
773,
14,
1188,
14,
2209,
304,
523,
485,
1064,
21... | [
6898,
16741,
701,
3805,
1328,
63,
647,
687,
3416,
85,
14,
1328,
14,
4226,
440,
5283,
1041,
199,
646,
882,
83,
773,
14,
1188,
199,
646,
2702,
421,
199,
533,
3416,
85,
8,
4796,
773,
14,
1188,
14,
2209,
304,
523,
485,
1064,
21,
183... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.