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 |
|---|---|---|---|---|---|---|---|---|
bhargav2408/python-for-android | python3-alpha/extra_modules/gdata/spreadsheet/service.py | 47 | 16862 | #!/usr/bin/python
#
# Copyright (C) 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
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,
87... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
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,
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... |
hdmetor/scikit-learn | examples/text/hashing_vs_dict_vectorizer.py | 284 | 3265 | """
===========================================
FeatureHasher and DictVectorizer Comparison
===========================================
Compares FeatureHasher and DictVectorizer by using both to vectorize
text documents.
The example demonstrates syntax and speed only; it doesn't actually do
anything useful with the e... | bsd-3-clause | [
624,
199,
2486,
21326,
199,
5968,
13415,
436,
7448,
26165,
3599,
5447,
199,
2486,
21326,
199,
199,
2404,
11044,
13407,
13415,
436,
7448,
26165,
701,
1808,
3865,
370,
5477,
794,
199,
505,
8247,
14,
199,
199,
1918,
2893,
23789,
31216,
630... | [
199,
2486,
21326,
199,
5968,
13415,
436,
7448,
26165,
3599,
5447,
199,
2486,
21326,
199,
199,
2404,
11044,
13407,
13415,
436,
7448,
26165,
701,
1808,
3865,
370,
5477,
794,
199,
505,
8247,
14,
199,
199,
1918,
2893,
23789,
31216,
6302,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
xmindltd/xmind-sdk-python | xmind/core/saver.py | 5 | 1401 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
xmind.core.saver
~~~~~~~~~~~~~~~~~
:copyright:
:license:
"""
__author__ = "aiqi@xmind.net <Woody Ai>"
import codecs
from . import const
from .. import utils
class WorkbookSaver(object):
def __init__(self, workbook):
""" Save `WorkbookD... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
13,
1837,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
272,
17725,
688,
14,
1018,
14,
21166,
272,
18294,
94,
339,
520,
7307,
26,
272,
520,
1682,
26,
199,
199,
624,
199,
199,
363,
250... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
13,
1837,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
272,
17725,
688,
14,
1018,
14,
21166,
272,
18294,
94,
339,
520,
7307,
26,
272,
520,
1682,
26,
199,
199,
624,
199,
199,
363,
2502,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bguillot/OpenUpgrade | addons/fleet/fleet.py | 33 | 47691 | # -*- 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... |
nhomar/odoo | addons/pad/py_etherpad/__init__.py | 505 | 7804 | """Module to talk to EtherpadLite API."""
import json
import urllib
import urllib2
class EtherpadLiteClient:
"""Client to talk to EtherpadLite API."""
API_VERSION = 1 # TODO probably 1.1 sometime soon
CODE_OK = 0
CODE_INVALID_PARAMETERS = 1
CODE_INTERNAL_ERROR = 2
CODE_INVALID_FUNCTION = 3
... | agpl-3.0 | [
624,
2377,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
1041,
199,
199,
646,
2022,
199,
646,
4011,
199,
646,
4011,
18,
421,
199,
533,
662,
728,
6226,
19375,
3041,
26,
272,
408,
3041,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
10... | [
2377,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
1041,
199,
199,
646,
2022,
199,
646,
4011,
199,
646,
4011,
18,
421,
199,
533,
662,
728,
6226,
19375,
3041,
26,
272,
408,
3041,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
1041,
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... |
viewdy/phantomjs2 | src/qt/qtwebkit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py | 122 | 6074 | # Copyright (C) 2012 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 ... | bsd-3-clause | [
3,
1898,
334,
35,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
334,
35,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
peiyuwang/pants | tests/python/pants_test/backend/jvm/tasks/test_jvm_platform_analysis_integration.py | 21 | 4718 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from conte... | apache-2.0 | [
3,
2803,
29,
1624,
13,
24,
199,
3,
1898,
6900,
510,
2285,
2199,
8417,
334,
3239,
6483,
14,
1064,
680,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
3239,
5113,
680,
199,
199,
504,
636,
2443,
363,
492,
334,
6116... | [
2803,
29,
1624,
13,
24,
199,
3,
1898,
6900,
510,
2285,
2199,
8417,
334,
3239,
6483,
14,
1064,
680,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
3239,
5113,
680,
199,
199,
504,
636,
2443,
363,
492,
334,
6116,
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... |
jcai19/smm_gem5 | tests/configs/memtest-ruby.py | 9 | 4768 | # Copyright (c) 2006-2007 The Regents of The University of Michigan
# Copyright (c) 2010 Advanced Micro Devices, 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 co... | bsd-3-clause | [
3,
1898,
334,
67,
9,
8315,
13,
9488,
710,
5044,
24871,
402,
710,
15904,
402,
603,
1158,
528,
290,
199,
3,
1898,
334,
67,
9,
7129,
32445,
27022,
12272,
83,
12,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
... | [
1898,
334,
67,
9,
8315,
13,
9488,
710,
5044,
24871,
402,
710,
15904,
402,
603,
1158,
528,
290,
199,
3,
1898,
334,
67,
9,
7129,
32445,
27022,
12272,
83,
12,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
abhiatgithub/shogun-toolbox | examples/undocumented/python_modular/graphical/converter_fastica_bss.py | 36 | 1108 | """
Blind Source Separation using the FastICA Algorithm with Shogun
Based on the example from scikit-learn
http://scikit-learn.org/
Kevin Hughes 2013
"""
import numpy as np
import pylab as pl
from shogun.Features import RealFeatures
from shogun.Converter import FastICA
# Generate sample data
np.random.seed(0)
n_... | gpl-3.0 | [
624,
199,
34,
24491,
5800,
27504,
425,
1808,
314,
22613,
948,
33,
23823,
543,
428,
526,
17924,
199,
199,
20409,
641,
314,
2893,
687,
6276,
6065,
13,
4643,
199,
1014,
921,
551,
3258,
390,
13,
4643,
14,
1308,
15,
199,
199,
1136,
11908... | [
199,
34,
24491,
5800,
27504,
425,
1808,
314,
22613,
948,
33,
23823,
543,
428,
526,
17924,
199,
199,
20409,
641,
314,
2893,
687,
6276,
6065,
13,
4643,
199,
1014,
921,
551,
3258,
390,
13,
4643,
14,
1308,
15,
199,
199,
1136,
11908,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
proxysh/Safejumper-for-Mac | buildmac/Resources/env/lib/python2.7/encodings/uu_codec.py | 57 | 3772 | """ Python 'uu_codec' Codec - UU content transfer encoding
Unlike most of the other codecs which target Unicode, this codec
will return Python string objects for both encode and decode.
Written by Marc-Andre Lemburg (mal@lemburg.com). Some details were
adapted from uu.py which was written by Lance Ell... | gpl-2.0 | [
624,
2018,
283,
17031,
63,
9276,
7,
13732,
446,
738,
53,
1564,
9307,
2644,
339,
25059,
4750,
402,
314,
1163,
6010,
1314,
1347,
6140,
12,
642,
9076,
272,
911,
372,
2018,
1059,
2251,
367,
3865,
3752,
436,
4849,
14,
339,
27694,
701,
60... | [
2018,
283,
17031,
63,
9276,
7,
13732,
446,
738,
53,
1564,
9307,
2644,
339,
25059,
4750,
402,
314,
1163,
6010,
1314,
1347,
6140,
12,
642,
9076,
272,
911,
372,
2018,
1059,
2251,
367,
3865,
3752,
436,
4849,
14,
339,
27694,
701,
603,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sebrandon1/nova | nova/api/openstack/compute/server_migrations.py | 7 | 7291 | # Copyright 2016 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | [
3,
1898,
7800,
14260,
2752,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,... | [
1898,
7800,
14260,
2752,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
motian/ngxtop | ngxtop/ngxtop.py | 9 | 13509 | """ngxtop - ad-hoc query for nginx access log.
Usage:
ngxtop [options]
ngxtop [options] (print|top|avg|sum) <var> ...
ngxtop info
ngxtop [options] query <query> ...
Options:
-l <file>, --access-log <file> access log file to parse.
-f <format>, --log-format <format> log format as specify in l... | mit | [
624,
2753,
400,
411,
446,
1503,
13,
20402,
1827,
367,
302,
19101,
2879,
943,
14,
199,
199,
7692,
26,
272,
28810,
400,
411,
359,
1419,
61,
272,
28810,
400,
411,
359,
1419,
61,
334,
1361,
92,
2119,
92,
8595,
92,
1838,
9,
665,
1391,
... | [
2753,
400,
411,
446,
1503,
13,
20402,
1827,
367,
302,
19101,
2879,
943,
14,
199,
199,
7692,
26,
272,
28810,
400,
411,
359,
1419,
61,
272,
28810,
400,
411,
359,
1419,
61,
334,
1361,
92,
2119,
92,
8595,
92,
1838,
9,
665,
1391,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bl8/bockbuild | profiles/monodevelop-mac-dev/monodevelop-mac-dev.py | 2 | 1573 | #!/usr/bin/python -B
import os
import sys
sys.path.append ('../..')
from bockbuild.darwinprofile import DarwinProfile
from packages import MonoDevelopMacDevPackages
abs_pathself = os.path.realpath (os.path.abspath (sys.argv[0]))
class MonoDevelopMacDevProfile (DarwinProfile, MonoDevelopMacDevPackages):
def __init... | mit | [
3381,
2647,
15,
1393,
15,
1548,
446,
34,
199,
199,
646,
747,
199,
646,
984,
199,
199,
1274,
14,
515,
14,
740,
661,
5093,
703,
358,
199,
199,
504,
330,
766,
1506,
14,
13245,
2913,
492,
577,
22822,
5736,
199,
504,
6117,
492,
10953,
... | [
2647,
15,
1393,
15,
1548,
446,
34,
199,
199,
646,
747,
199,
646,
984,
199,
199,
1274,
14,
515,
14,
740,
661,
5093,
703,
358,
199,
199,
504,
330,
766,
1506,
14,
13245,
2913,
492,
577,
22822,
5736,
199,
504,
6117,
492,
10953,
79,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ff94315/hiwifi-openwrt-HC5661-HC5761 | staging_dir/host/lib64/scons-2.1.0/SCons/PathList.py | 21 | 8422 | #
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# with... | gpl-2.0 | [
3,
199,
3,
1898,
334,
67,
9,
12521,
12,
14790,
12,
13004,
12,
8353,
12,
11811,
12,
8315,
12,
10219,
12,
9079,
12,
8937,
12,
7129,
12,
7760,
710,
8218,
2752,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,... | [
199,
3,
1898,
334,
67,
9,
12521,
12,
14790,
12,
13004,
12,
8353,
12,
11811,
12,
8315,
12,
10219,
12,
9079,
12,
8937,
12,
7129,
12,
7760,
710,
8218,
2752,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
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... |
cmende/pytelefoob0t | plugins/8ball/__init__.py | 1 | 1199 | # Copyright 2017 Christoph Mende
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | [
3,
221,
1898,
9708,
2799,
322,
2379,
72,
603,
287,
271,
199,
3,
199,
3,
221,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
221,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
... | [
221,
1898,
9708,
2799,
322,
2379,
72,
603,
287,
271,
199,
3,
199,
3,
221,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
221,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
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... |
greyhwndz/rethinkdb | external/v8_3.30.33.16/build/gyp/pylib/gyp/generator/eclipse.py | 437 | 11894 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""GYP backend that generates Eclipse CDT settings files.
This backend DOES NOT generate Eclipse CDT projects. Instead, it generates XML
files that can be importe... | agpl-3.0 | [
3,
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
624,
14884,
4865,
6... | [
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
624,
14884,
4865,
626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shanksauce/mintr | mintr/__init__.py | 1 | 1862 | import requests
import time
import re
from pprint import pprint
auth_headers = {}
def _validate_credentials(fn):
def wrapper(*args):
def is_not_populated(d,r):
return reduce(
lambda x,y: x or y,
map(lambda k: k not in d or not d[k], r)
)
if is_not_populated(auth_headers, ('cookie... | mit | [
646,
4145,
199,
646,
900,
199,
646,
295,
199,
504,
10933,
492,
10933,
199,
199,
1178,
63,
2139,
275,
1052,
199,
199,
318,
485,
3502,
63,
6942,
8,
2324,
304,
523,
347,
4975,
2031,
589,
304,
272,
347,
365,
63,
1397,
63,
21440,
8,
... | [
4145,
199,
646,
900,
199,
646,
295,
199,
504,
10933,
492,
10933,
199,
199,
1178,
63,
2139,
275,
1052,
199,
199,
318,
485,
3502,
63,
6942,
8,
2324,
304,
523,
347,
4975,
2031,
589,
304,
272,
347,
365,
63,
1397,
63,
21440,
8,
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,
1... |
npuichigo/ttsflow | third_party/tensorflow/tensorflow/contrib/framework/python/ops/checkpoint_ops_test.py | 23 | 34323 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
9708,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
9708,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ashray/VTK-EVM | ThirdParty/Twisted/twisted/internet/test/test_pollingfile.py | 41 | 1276 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.internet._pollingfile}.
"""
from twisted.python.runtime import platform
from twisted.trial.unittest import TestCase
if platform.isWindows():
from twisted.internet import _pollingfile
else:
_pollingfile = None
c... | bsd-3-clause | [
3,
1898,
334,
67,
9,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
199,
199,
624,
199,
2925,
367,
491,
91,
12145,
14,
4901,
423,
17154,
493,
5565,
199,
624,
199,
199,
504,
7390,
14,
1548,
14,
7726,
492,
4298,
199,
5... | [
1898,
334,
67,
9,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
199,
199,
624,
199,
2925,
367,
491,
91,
12145,
14,
4901,
423,
17154,
493,
5565,
199,
624,
199,
199,
504,
7390,
14,
1548,
14,
7726,
492,
4298,
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... |
davidtrem/ThunderStorm | thunderstorm/lightning/utils.py | 1 | 5027 | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2013 Trémouilles David
#This file is part of Thunderstorm.
#
#ThunderStrom is free software: you can redistribute it and/or modify
#it under the terms of the GNU Lesser General Public License as published by
#the Free Software Foundation, either version 3 of the License, o... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
35,
9,
7129,
13,
6965,
28814,
5741,
573,
85,
382,
2978,
20232,
199,
199,
3,
2765,
570,
365,
1777,
402,
3868,
7138,
26949,
14,
199,
3,
199,
3,
2719,
7138,
933,
417,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
35,
9,
7129,
13,
6965,
28814,
5741,
573,
85,
382,
2978,
20232,
199,
199,
3,
2765,
570,
365,
1777,
402,
3868,
7138,
26949,
14,
199,
3,
199,
3,
2719,
7138,
933,
417,
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... |
qedi-r/home-assistant | tests/components/logbook/test_init.py | 4 | 58510 | """The tests for the logbook component."""
# pylint: disable=protected-access,invalid-name
import logging
from datetime import timedelta, datetime
import unittest
import pytest
import voluptuous as vol
from homeassistant.components import sun
import homeassistant.core as ha
from homeassistant.const import (
ATTR_... | apache-2.0 | [
624,
1918,
2295,
367,
314,
943,
2706,
3931,
1041,
199,
3,
4287,
26,
3507,
29,
6798,
13,
2732,
12,
3197,
13,
354,
199,
646,
2050,
199,
504,
2197,
492,
6871,
12,
2197,
199,
646,
2882,
199,
199,
646,
4613,
199,
646,
30291,
465,
5236,... | [
1918,
2295,
367,
314,
943,
2706,
3931,
1041,
199,
3,
4287,
26,
3507,
29,
6798,
13,
2732,
12,
3197,
13,
354,
199,
646,
2050,
199,
504,
2197,
492,
6871,
12,
2197,
199,
646,
2882,
199,
199,
646,
4613,
199,
646,
30291,
465,
5236,
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... |
MicroPyramid/forex-python | setup.py | 1 | 1589 | import io
import os
from setuptools import setup, find_packages
VERSION = '1.6'
long_description_text = """Forex Python is a Free Foreign exchange rates and currency conversion.
Features:
List all currency rates.
BitCoin price for all curuncies.
Converting amount to BitCoins.
Get historical rates for any day since 199... | mit | [
646,
5890,
199,
646,
747,
199,
504,
9116,
492,
3272,
12,
2342,
63,
5154,
199,
199,
4612,
275,
283,
17,
14,
22,
7,
199,
2809,
63,
1802,
63,
505,
275,
408,
13099,
88,
2018,
365,
282,
2868,
481,
2692,
15343,
24434,
436,
9952,
8603,
... | [
5890,
199,
646,
747,
199,
504,
9116,
492,
3272,
12,
2342,
63,
5154,
199,
199,
4612,
275,
283,
17,
14,
22,
7,
199,
2809,
63,
1802,
63,
505,
275,
408,
13099,
88,
2018,
365,
282,
2868,
481,
2692,
15343,
24434,
436,
9952,
8603,
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... |
KaranToor/MA450 | google-cloud-sdk/lib/surface/deployment_manager/runtime_configs/create.py | 2 | 2929 | # Copyright 2016 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 ag... | apache-2.0 | [
3,
1898,
7800,
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,
7800,
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... |
URXtech/scrapy | tests/test_spidermiddleware_httperror.py | 125 | 6935 | from unittest import TestCase
from testfixtures import LogCapture
from twisted.trial.unittest import TestCase as TrialTestCase
from twisted.internet import defer
from scrapy.utils.test import get_crawler
from tests.mockserver import MockServer
from scrapy.http import Response, Request
from scrapy.spiders import Spide... | bsd-3-clause | [
504,
2882,
492,
7640,
199,
199,
504,
511,
8769,
492,
5297,
16640,
199,
504,
7390,
14,
14443,
14,
2796,
492,
7640,
465,
377,
1383,
1746,
199,
504,
7390,
14,
4901,
492,
10133,
199,
199,
504,
18918,
14,
1208,
14,
396,
492,
664,
63,
2... | [
2882,
492,
7640,
199,
199,
504,
511,
8769,
492,
5297,
16640,
199,
504,
7390,
14,
14443,
14,
2796,
492,
7640,
465,
377,
1383,
1746,
199,
504,
7390,
14,
4901,
492,
10133,
199,
199,
504,
18918,
14,
1208,
14,
396,
492,
664,
63,
23972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
answer-huang/StatisticsCodeLines | statistics.py | 1 | 3024 | #coding=utf-8
__author__ = 'answer-huang'
import sys
reload(sys)
sys.setdefaultencoding('utf8')
"""
代码行统计工具
"""
import wx
from MyInfo import AboutMe
from AHDropTarget import AHDropTarget
import os
class AHFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, -1, title, wx... | mit | [
3,
1523,
29,
1624,
13,
24,
199,
363,
2502,
363,
275,
283,
5934,
13,
10616,
621,
7,
199,
199,
646,
984,
199,
9233,
8,
1274,
9,
199,
1274,
14,
409,
27205,
28139,
360,
1624,
24,
358,
199,
199,
624,
199,
10635,
12609,
9360,
254,
140... | [
1523,
29,
1624,
13,
24,
199,
363,
2502,
363,
275,
283,
5934,
13,
10616,
621,
7,
199,
199,
646,
984,
199,
9233,
8,
1274,
9,
199,
1274,
14,
409,
27205,
28139,
360,
1624,
24,
358,
199,
199,
624,
199,
10635,
12609,
9360,
254,
14082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
xjljian/huawei-kernel-3.4 | tools/perf/scripts/python/net_dropmonitor.py | 4235 | 1554 | # Monitor the system for dropped packets and proudce a report of drop locations and counts
import os
import sys
sys.path.append(os.environ['PERF_EXEC_PATH'] + \
'/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
from perf_trace_context import *
from Core import *
from Util import *
drop_log = {}
kallsyms = []
def... | gpl-2.0 | [
3,
26504,
314,
2656,
367,
17481,
14593,
436,
557,
1181,
301,
282,
3622,
402,
5978,
9918,
436,
8242,
199,
199,
646,
747,
199,
646,
984,
199,
199,
1274,
14,
515,
14,
740,
8,
736,
14,
2314,
459,
17038,
63,
10276,
63,
3243,
418,
435,
... | [
26504,
314,
2656,
367,
17481,
14593,
436,
557,
1181,
301,
282,
3622,
402,
5978,
9918,
436,
8242,
199,
199,
646,
747,
199,
646,
984,
199,
199,
1274,
14,
515,
14,
740,
8,
736,
14,
2314,
459,
17038,
63,
10276,
63,
3243,
418,
435,
971... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yanheven/nova | nova/virt/xenapi/agent.py | 44 | 18780 | # Copyright (c) 2010 Citrix Systems, Inc.
# Copyright 2010-2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | apache-2.0 | [
3,
1898,
334,
67,
9,
7129,
445,
390,
1904,
15285,
12,
3277,
14,
199,
3,
1898,
7129,
13,
7409,
14260,
2752,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
... | [
1898,
334,
67,
9,
7129,
445,
390,
1904,
15285,
12,
3277,
14,
199,
3,
1898,
7129,
13,
7409,
14260,
2752,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nop33/indico | indico/modules/events/views.py | 2 | 12813 | # This file is part of Indico.
# Copyright (C) 2002 - 2017 European Organization for Nuclear Research (CERN).
#
# Indico 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 (a... | gpl-3.0 | [
3,
961,
570,
365,
1777,
402,
1010,
27347,
14,
199,
3,
1898,
334,
35,
9,
14790,
446,
9708,
31615,
290,
18863,
367,
653,
947,
4025,
26993,
334,
35,
14482,
680,
199,
3,
199,
3,
1010,
27347,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
... | [
961,
570,
365,
1777,
402,
1010,
27347,
14,
199,
3,
1898,
334,
35,
9,
14790,
446,
9708,
31615,
290,
18863,
367,
653,
947,
4025,
26993,
334,
35,
14482,
680,
199,
3,
199,
3,
1010,
27347,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JiYouMCC/python | renzongxian/0022/0022.py | 40 | 1696 | # Source:https://github.com/Show-Me-the-Code/show-me-the-code
# Author:renzongxian
# Date:2014-12-24
# Python 3.4
"""
第 0022 题: iPhone 6、iPhone 6 Plus 早已上市开卖。请查看你写得 第 0005 题的代码是否可以复用。
"""
from PIL import Image
import os
import sys
def resize_image(image, t_weight, t_height):
im = Image.open(image)
weight,... | mit | [
3,
5800,
26,
2859,
921,
5031,
14,
957,
15,
6824,
13,
1352,
13,
1589,
13,
3034,
15,
2384,
13,
278,
13,
1589,
13,
600,
199,
3,
6529,
26,
828,
90,
951,
88,
5653,
199,
3,
6148,
26,
7280,
13,
713,
13,
1194,
199,
3,
2018,
650,
14,... | [
5800,
26,
2859,
921,
5031,
14,
957,
15,
6824,
13,
1352,
13,
1589,
13,
3034,
15,
2384,
13,
278,
13,
1589,
13,
600,
199,
3,
6529,
26,
828,
90,
951,
88,
5653,
199,
3,
6148,
26,
7280,
13,
713,
13,
1194,
199,
3,
2018,
650,
14,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CERNDocumentServer/cds | cds/modules/records/api.py | 2 | 8723 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017, 2018 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
9708,
12,
14894,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
199,
3,
436,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
9708,
12,
14894,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
199,
3,
436,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
klahnakoski/ActiveData | vendor/mo_testing/fuzzytestcase.py | 1 | 9712 | # encoding: utf-8
#
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Contact: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import unicode_literals
impor... | mpl-2.0 | [
3,
2644,
26,
2774,
13,
24,
199,
3,
199,
3,
199,
3,
961,
5800,
5495,
8204,
365,
5420,
370,
314,
2895,
402,
314,
17728,
1684,
199,
3,
844,
12,
373,
14,
499,
14,
16,
14,
982,
282,
1331,
402,
314,
28481,
1990,
440,
1854,
543,
642,... | [
2644,
26,
2774,
13,
24,
199,
3,
199,
3,
199,
3,
961,
5800,
5495,
8204,
365,
5420,
370,
314,
2895,
402,
314,
17728,
1684,
199,
3,
844,
12,
373,
14,
499,
14,
16,
14,
982,
282,
1331,
402,
314,
28481,
1990,
440,
1854,
543,
642,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
endlessm/chromium-browser | third_party/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/setup.py | 31 | 14001 | # -*- coding: ascii -*-
#
# Copyright 2007 - 2013
# Andr\xe9 Malo or his licensors, as applicable
#
# 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/LICENS... | bsd-3-clause | [
3,
1882,
2803,
26,
13294,
1882,
199,
3,
199,
3,
1898,
10219,
446,
6171,
199,
3,
6061,
82,
60,
1845,
25,
603,
12201,
503,
17049,
23854,
17564,
12,
465,
3964,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,... | [
1882,
2803,
26,
13294,
1882,
199,
3,
199,
3,
1898,
10219,
446,
6171,
199,
3,
6061,
82,
60,
1845,
25,
603,
12201,
503,
17049,
23854,
17564,
12,
465,
3964,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bearstech/ansible | lib/ansible/plugins/action/eos_config.py | 126 | 4193 | #
# Copyright 2015 Peter Sprygada <psprygada@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, either version 3 of the License, or
# (at your option) any... | gpl-3.0 | [
3,
199,
3,
1898,
6900,
22912,
8360,
651,
71,
10641,
665,
80,
681,
651,
71,
10641,
32,
4853,
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,... | [
199,
3,
1898,
6900,
22912,
8360,
651,
71,
10641,
665,
80,
681,
651,
71,
10641,
32,
4853,
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,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jackkiej/SickRage | lib/sqlalchemy/orm/exc.py | 79 | 5433 | # orm/exc.py
# Copyright (C) 2005-2014 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
"""SQLAlchemy ORM exceptions."""
from .. import exc as sa_exc, util
NO_STATE = (AttributeE... | gpl-3.0 | [
3,
9813,
15,
2804,
14,
647,
199,
3,
1898,
334,
35,
9,
11811,
13,
7280,
314,
14303,
11462,
436,
8417,
665,
3239,
10610,
570,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
14303,
436,
365,
14286,
1334,
199,
3,
314,
10697,
844,
26,... | [
9813,
15,
2804,
14,
647,
199,
3,
1898,
334,
35,
9,
11811,
13,
7280,
314,
14303,
11462,
436,
8417,
665,
3239,
10610,
570,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
14303,
436,
365,
14286,
1334,
199,
3,
314,
10697,
844,
26,
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... |
ipcamit/ipcamit.github.io | node_modules/pygmentize-bundled/vendor/pygments/pygments/lexers/math.py | 291 | 93298 | # -*- coding: utf-8 -*-
"""
pygments.lexers.math
~~~~~~~~~~~~~~~~~~~~
Lexers for math languages.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.util import shebang_matches
from pygments.lexer import Lexer, Re... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12245,
14,
3442,
272,
18294,
2878,
339,
491,
476,
1192,
367,
3473,
10815,
14,
339,
520,
7307,
26,
1898,
8315,
13,
6965,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
2... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12245,
14,
3442,
272,
18294,
2878,
339,
491,
476,
1192,
367,
3473,
10815,
14,
339,
520,
7307,
26,
1898,
8315,
13,
6965,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PopCap/GameIdea | Engine/Extras/Maya_AnimationRiggingTools/MayaTools/General/Scripts/perforceUtils.py | 1 | 32585 | import maya.cmds as cmds
from P4 import P4,P4Exception
import os, cPickle
from functools import partial
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
def p4_getLatestRevision(fileName, *args):
fileArg = fileName
#try to connect
p4 = P4()
try:
... | bsd-2-clause | [
646,
1443,
65,
14,
12975,
465,
11465,
202,
202,
199,
504,
510,
20,
492,
510,
20,
12,
48,
20,
1726,
202,
202,
199,
646,
747,
12,
17572,
202,
202,
199,
504,
9143,
492,
7417,
202,
2999,
202,
199,
3,
327,
327,
327,
327,
327,
327,
... | [
1443,
65,
14,
12975,
465,
11465,
202,
202,
199,
504,
510,
20,
492,
510,
20,
12,
48,
20,
1726,
202,
202,
199,
646,
747,
12,
17572,
202,
202,
199,
504,
9143,
492,
7417,
202,
2999,
202,
199,
3,
327,
327,
327,
327,
327,
327,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
linegroup/topicsketch | twokenize.py | 8 | 12993 | # -*- coding: utf-8 -*-
"""
Twokenize -- a tokenizer designed for Twitter text in English and some other European languages.
This tokenizer code has gone through a long history:
(1) Brendan O'Connor wrote original version in Python, http://github.com/brendano/tweetmotif
TweetMotif: Exploratory Search and Topic ... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
22879,
2858,
794,
1553,
282,
14803,
19829,
367,
19259,
1318,
315,
20144,
436,
2005,
1163,
31615,
290,
10815,
14,
199,
2765,
14803,
1233,
965,
21737,
4012,
282,
1846,
7994,
26,
199,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
22879,
2858,
794,
1553,
282,
14803,
19829,
367,
19259,
1318,
315,
20144,
436,
2005,
1163,
31615,
290,
10815,
14,
199,
2765,
14803,
1233,
965,
21737,
4012,
282,
1846,
7994,
26,
199,
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... |
benschmaus/catapult | third_party/google-endpoints/strict_rfc3339.py | 10 | 6150 | # Copyright 2012 (C) Daniel Richman, Adam Greig
#
# This file is part of strict_rfc3339.
#
# strict_rfc3339 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... | bsd-3-clause | [
3,
1898,
6029,
334,
35,
9,
24747,
14769,
30846,
1237,
12,
4431,
455,
598,
264,
528,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
7478,
63,
8973,
29536,
14,
199,
3,
199,
3,
7478,
63,
8973,
29536,
365,
2867,
2032,
26,
1265,
883,
3604... | [
1898,
6029,
334,
35,
9,
24747,
14769,
30846,
1237,
12,
4431,
455,
598,
264,
528,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
7478,
63,
8973,
29536,
14,
199,
3,
199,
3,
7478,
63,
8973,
29536,
365,
2867,
2032,
26,
1265,
883,
3604,
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... |
yongshengwang/builthue | desktop/core/ext-py/Paste-1.7.2/paste/wsgiwrappers.py | 27 | 22165 | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""WSGI Wrappers for a Request and Response
The WSGIRequest and WSGIResponse objects are light wrappers to make it easier
to deal with an incoming req... | apache-2.0 | [
3,
334,
67,
9,
11811,
473,
290,
699,
2000,
316,
436,
8417,
27,
5313,
367,
510,
9209,
334,
1014,
921,
1548,
16586,
14,
1308,
9,
199,
3,
3909,
1334,
314,
10697,
4190,
26,
1455,
921,
1544,
14,
16374,
14,
1308,
15,
2383,
15,
1147,
1... | [
334,
67,
9,
11811,
473,
290,
699,
2000,
316,
436,
8417,
27,
5313,
367,
510,
9209,
334,
1014,
921,
1548,
16586,
14,
1308,
9,
199,
3,
3909,
1334,
314,
10697,
4190,
26,
1455,
921,
1544,
14,
16374,
14,
1308,
15,
2383,
15,
1147,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
liangazhou/django-rdp | packages/Django-1.8.6/tests/template_backends/test_utils.py | 351 | 1521 | from django.core.exceptions import ImproperlyConfigured
from django.template import engines
from django.test import SimpleTestCase, override_settings
class TemplateStringsTests(SimpleTestCase):
@override_settings(TEMPLATES=[{
'BACKEND': 'raise.import.error',
}])
def test_backend_import_error(self... | apache-2.0 | [
504,
1639,
14,
1018,
14,
3924,
492,
11897,
199,
504,
1639,
14,
1160,
492,
28156,
199,
504,
1639,
14,
396,
492,
24424,
12,
4278,
63,
1751,
421,
199,
533,
5458,
12672,
2925,
8,
17968,
304,
339,
768,
4415,
63,
1751,
8,
25437,
1524,
9... | [
1639,
14,
1018,
14,
3924,
492,
11897,
199,
504,
1639,
14,
1160,
492,
28156,
199,
504,
1639,
14,
396,
492,
24424,
12,
4278,
63,
1751,
421,
199,
533,
5458,
12672,
2925,
8,
17968,
304,
339,
768,
4415,
63,
1751,
8,
25437,
1524,
91,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
a10networks/a10sdk-python | a10sdk/core/sflow/sflow_polling.py | 2 | 3657 | from a10sdk.common.A10BaseClass import A10BaseClass
class EthList(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param eth_end: {"type": "number", "description": "Ethernet interface to sample", "format": "interface"}
:param eth_start: {"type": "number", "descriptio... | apache-2.0 | [
504,
282,
709,
9277,
14,
2330,
14,
33,
709,
1563,
2543,
492,
437,
709,
1563,
2543,
421,
199,
533,
662,
273,
1296,
8,
33,
709,
1563,
2543,
304,
2286,
408,
2765,
1021,
1630,
440,
2291,
17101,
3383,
29474,
8749,
675,
1676,
14,
339,
5... | [
282,
709,
9277,
14,
2330,
14,
33,
709,
1563,
2543,
492,
437,
709,
1563,
2543,
421,
199,
533,
662,
273,
1296,
8,
33,
709,
1563,
2543,
304,
2286,
408,
2765,
1021,
1630,
440,
2291,
17101,
3383,
29474,
8749,
675,
1676,
14,
339,
520,
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... |
angstwad/ansible | lib/ansible/module_utils/openswitch.py | 4 | 7084 | #
# (c) 2015 Peter Sprygada, <psprygada@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, either version 3 of the License, or
# (at your option) any late... | gpl-3.0 | [
3,
199,
3,
334,
67,
9,
6900,
22912,
8360,
651,
71,
10641,
12,
665,
80,
681,
651,
71,
10641,
32,
4853,
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,
6... | [
199,
3,
334,
67,
9,
6900,
22912,
8360,
651,
71,
10641,
12,
665,
80,
681,
651,
71,
10641,
32,
4853,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jhd/spunout | flask/lib/python2.7/site-packages/werkzeug/testsuite/datastructures.py | 145 | 28212 | # -*- coding: utf-8 -*-
"""
werkzeug.testsuite.datastructures
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests the functionality of the provided Werkzeug
datastructures.
TODO:
- FileMultiDict
- Immutable types undertested
- Split up dict tests
:copyright: (c) 2014 by Armin Ronacher.... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
14239,
14,
23004,
272,
18294,
9753,
94,
339,
6496,
314,
9330,
402,
314,
2741,
22798,
272,
666,
13547,
14,
339,
3254,
26,
339,
446,
257,
3814,
21365,
272,
446,
257,
2... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
14239,
14,
23004,
272,
18294,
9753,
94,
339,
6496,
314,
9330,
402,
314,
2741,
22798,
272,
666,
13547,
14,
339,
3254,
26,
339,
446,
257,
3814,
21365,
272,
446,
257,
25609,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ShoRit/shipping-costs-sample | v2/lib/python2.7/site-packages/werkzeug/contrib/cache.py | 84 | 30341 | # -*- coding: utf-8 -*-
"""
werkzeug.contrib.cache
~~~~~~~~~~~~~~~~~~~~~~
The main problem with dynamic Web sites is, well, they're dynamic. Each
time a user requests a page, the webserver executes a lot of code, queries
the database, renders templates until the visitor gets the page he sees.
... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
2828,
14,
1637,
272,
18294,
2878,
1714,
339,
710,
2446,
5160,
543,
8336,
6001,
15424,
365,
12,
5521,
12,
2985,
3984,
8336,
14,
221,
7048,
272,
900,
282,
922,
4145,
2... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
10380,
14,
2828,
14,
1637,
272,
18294,
2878,
1714,
339,
710,
2446,
5160,
543,
8336,
6001,
15424,
365,
12,
5521,
12,
2985,
3984,
8336,
14,
221,
7048,
272,
900,
282,
922,
4145,
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... |
xfournet/intellij-community | python/testData/MockSdk2.7/Lib/re.py | 113 | 12984 | #
# Secret Labs' Regular Expression Engine
#
# re-compatible interface for the sre matching engine
#
# Copyright (c) 1998-2001 by Secret Labs AB. All rights reserved.
#
# This version of the SRE library can be redistributed under CNRI's
# Python 1.6 license. For any other use, please contact Secret Labs
# AB (info@py... | apache-2.0 | [
3,
199,
3,
23580,
491,
2101,
7,
18528,
22013,
12580,
199,
3,
199,
3,
295,
13,
6490,
3217,
367,
314,
25877,
4877,
6869,
199,
3,
199,
3,
1898,
334,
67,
9,
19960,
13,
8339,
701,
23580,
491,
2101,
14840,
14,
221,
2900,
4481,
4644,
1... | [
199,
3,
23580,
491,
2101,
7,
18528,
22013,
12580,
199,
3,
199,
3,
295,
13,
6490,
3217,
367,
314,
25877,
4877,
6869,
199,
3,
199,
3,
1898,
334,
67,
9,
19960,
13,
8339,
701,
23580,
491,
2101,
14840,
14,
221,
2900,
4481,
4644,
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... |
aarchiba/numpy | numpy/linalg/tests/test_regression.py | 78 | 3097 | """ Test functions for linalg module
"""
from __future__ import division, absolute_import, print_function
import numpy as np
from numpy import linalg, arange, float64, array, dot, transpose
from numpy.testing import (
TestCase, run_module_suite, assert_equal, assert_array_equal,
assert_array_almost_equal, asse... | bsd-3-clause | [
624,
1379,
3423,
367,
16727,
859,
199,
624,
199,
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
2680,
465,
980,
199,
504,
2680,
492,
16727,
12,
20461,
12,
2069,
772,
12,
1625,
12,
6308,
12,
... | [
1379,
3423,
367,
16727,
859,
199,
624,
199,
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
2680,
465,
980,
199,
504,
2680,
492,
16727,
12,
20461,
12,
2069,
772,
12,
1625,
12,
6308,
12,
16992,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
toomuchcookies/pgu | examples/tilevid5.py | 13 | 7123 | """<title>tutorial on how to add Sprite collision hit handlers, custom painting</title>"""
import pygame
from pygame.rect import Rect
from pygame.locals import *
import math
import random
# the following line is not needed if pgu is installed
import sys; sys.path.insert(0, "..")
from pgu import tilevid, timer
SW,SH... | lgpl-2.1 | [
624,
28,
1213,
30,
23561,
641,
4212,
370,
1050,
8360,
752,
25061,
9793,
8297,
12,
3537,
32055,
316,
1108,
1213,
11193,
199,
199,
646,
9193,
199,
504,
9193,
14,
1201,
492,
21536,
199,
504,
9193,
14,
9350,
492,
627,
199,
646,
3473,
19... | [
28,
1213,
30,
23561,
641,
4212,
370,
1050,
8360,
752,
25061,
9793,
8297,
12,
3537,
32055,
316,
1108,
1213,
11193,
199,
199,
646,
9193,
199,
504,
9193,
14,
1201,
492,
21536,
199,
504,
9193,
14,
9350,
492,
627,
199,
646,
3473,
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... |
priomsrb/vimswitch | vimswitch/UpdateProfileAction.py | 1 | 1247 | from .Action import Action
from .Settings import getSettings
from .SwitchProfileAction import createSwitchProfileAction
class UpdateProfileAction(Action):
def __init__(self, settings, switchProfileAction):
Action.__init__(self)
self.settings = settings
self.switchProfileAction = switchProf... | gpl-2.0 | [
504,
1275,
3310,
492,
10033,
199,
504,
1275,
5268,
492,
664,
5268,
199,
504,
1275,
10167,
5736,
3310,
492,
1218,
10167,
5736,
3310,
421,
199,
533,
6162,
5736,
3310,
8,
3310,
304,
272,
347,
636,
826,
721,
277,
12,
2202,
12,
6258,
573... | [
1275,
3310,
492,
10033,
199,
504,
1275,
5268,
492,
664,
5268,
199,
504,
1275,
10167,
5736,
3310,
492,
1218,
10167,
5736,
3310,
421,
199,
533,
6162,
5736,
3310,
8,
3310,
304,
272,
347,
636,
826,
721,
277,
12,
2202,
12,
6258,
5736,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
indico/indico | indico/modules/events/registration/models/invitations.py | 1 | 3543 | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from uuid import uuid4
from sqlalchemy.dialects.postgresql import UUID
from indico.core.db import db
fro... | mit | [
3,
961,
570,
365,
1777,
402,
1010,
27347,
14,
199,
3,
1898,
334,
35,
9,
14790,
446,
499,
15385,
24354,
199,
3,
199,
3,
1010,
27347,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402... | [
961,
570,
365,
1777,
402,
1010,
27347,
14,
199,
3,
1898,
334,
35,
9,
14790,
446,
499,
15385,
24354,
199,
3,
199,
3,
1010,
27347,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402,
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... |
gdementen/PyTables | examples/array2.py | 13 | 1029 | from __future__ import print_function
import numpy as np
import tables
# Open a new empty HDF5 file
fileh = tables.open_file("array2.h5", mode="w")
# Shortcut to the root group
root = fileh.root
# Create an array
a = np.array([1, 2.7182818284590451, 3.141592], float)
print("About to write array:", a)
print(" with sh... | bsd-3-clause | [
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
646,
2680,
465,
980,
199,
646,
6716,
199,
199,
3,
3232,
282,
892,
2701,
24521,
21,
570,
199,
493,
72,
275,
6716,
14,
1490,
63,
493,
480,
1144,
18,
14,
72,
21,
401,
818,
628,
87,
53... | [
636,
2443,
363,
492,
870,
63,
1593,
199,
646,
2680,
465,
980,
199,
646,
6716,
199,
199,
3,
3232,
282,
892,
2701,
24521,
21,
570,
199,
493,
72,
275,
6716,
14,
1490,
63,
493,
480,
1144,
18,
14,
72,
21,
401,
818,
628,
87,
531,
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... |
TeachAtTUM/edx-platform | cms/djangoapps/contentstore/features/pages.py | 13 | 5052 | # pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
# pylint: disable=no-member
from lettuce import step, world
from nose.tools import assert_equal, assert_in
CSS_FOR_TAB_ELEMENT = "li[data-tab-id='{0}'] input.toggle-checkbox"
@step(u'I go to the pages page$'... | agpl-3.0 | [
3,
4287,
26,
3507,
29,
4752,
13,
12485,
199,
3,
4287,
26,
3507,
29,
27913,
13,
7837,
13,
354,
199,
3,
4287,
26,
3507,
29,
8618,
13,
2094,
199,
3,
4287,
26,
3507,
29,
889,
13,
1114,
199,
199,
504,
4691,
84,
3683,
492,
3650,
12,... | [
4287,
26,
3507,
29,
4752,
13,
12485,
199,
3,
4287,
26,
3507,
29,
27913,
13,
7837,
13,
354,
199,
3,
4287,
26,
3507,
29,
8618,
13,
2094,
199,
3,
4287,
26,
3507,
29,
889,
13,
1114,
199,
199,
504,
4691,
84,
3683,
492,
3650,
12,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
BigBrother1984/android_external_chromium_org | chrome_frame/combine_libs.py | 79 | 3272 | #!/usr/bin/env python
# Copyright (c) 2011 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.
# TODO(slightlyoff): move to using shared version of this script.
'''This script makes it easy to combine libs and object files to... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
67,
9,
7760,
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,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
67,
9,
7760,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pniedzielski/fb-hackathon-2013-11-21 | src/repl.it/jsrepl/extern/python/reloop-closured/lib/python2.7/distutils/msvccompiler.py | 250 | 23637 | """distutils.msvccompiler
Contains MSVCCompiler, an implementation of the abstract CCompiler class
for the Microsoft Visual Studio.
"""
# Written by Perry Stoll
# hacked by Robin Becker and Thomas Heller to do a better job of
# finding DevStudio (through the registry)
__revision__ = "$Id$"
import sys
import os
im... | agpl-3.0 | [
624,
13350,
14,
19875,
5772,
199,
199,
6906,
11694,
30926,
12,
376,
4514,
402,
314,
9006,
445,
9131,
1021,
199,
509,
314,
15332,
14702,
13225,
14,
199,
624,
199,
199,
3,
27694,
701,
3492,
651,
1933,
14385,
199,
3,
11176,
379,
701,
6... | [
13350,
14,
19875,
5772,
199,
199,
6906,
11694,
30926,
12,
376,
4514,
402,
314,
9006,
445,
9131,
1021,
199,
509,
314,
15332,
14702,
13225,
14,
199,
624,
199,
199,
3,
27694,
701,
3492,
651,
1933,
14385,
199,
3,
11176,
379,
701,
6848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ajroussel/shell-nouns-data | src/extractor.py | 1 | 3851 | #!/usr/bin/env python3
import os
import argparse
import pickle
from lxml import etree
from sys import argv
from objects import *
## returns a list of ints
def to_index(s):
outlist = list()
spl1 = s.split(',')
try:
for item in spl1:
spl2 = item.split('..')
start = int(spl2... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
646,
747,
199,
646,
7534,
199,
646,
5927,
199,
504,
14490,
492,
7559,
199,
504,
984,
492,
9238,
199,
199,
504,
2251,
492,
627,
199,
199,
309,
2529,
282,
769,
402,
14526,
221,
199... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
646,
747,
199,
646,
7534,
199,
646,
5927,
199,
504,
14490,
492,
7559,
199,
504,
984,
492,
9238,
199,
199,
504,
2251,
492,
627,
199,
199,
309,
2529,
282,
769,
402,
14526,
221,
199,
318,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
stackforge/monasca-api | monasca_api/common/repositories/alarm_definitions_repository.py | 3 | 2376 | # Copyright 2014,2016 Hewlett Packard Enterprise Development Company, L.P.
#
# 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 b... | apache-2.0 | [
3,
1898,
6927,
12,
9261,
27849,
9954,
1005,
29949,
15290,
15878,
12,
491,
14,
48,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
31... | [
1898,
6927,
12,
9261,
27849,
9954,
1005,
29949,
15290,
15878,
12,
491,
14,
48,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
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... |
Thor77/youtube-dl | youtube_dl/extractor/slideshare.py | 8 | 2124 | from __future__ import unicode_literals
import re
import json
from .common import InfoExtractor
from ..compat import (
compat_urlparse,
)
from ..utils import (
ExtractorError,
get_element_by_id,
)
class SlideshareIE(InfoExtractor):
_VALID_URL = r'https?://www\.slideshare\.net/[^/]+?/(?P<title>.+?)($... | unlicense | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
646,
2022,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
5819,
492,
334,
272,
8434,
63,
10290,
12,
199,
9,
199,
504,
2508,
1208,
492,
334,
272,
19783,
12,... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
646,
2022,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
5819,
492,
334,
272,
8434,
63,
10290,
12,
199,
9,
199,
504,
2508,
1208,
492,
334,
272,
19783,
12,
272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kevinr/750book-web | 750book-web-env/lib/python2.7/site-packages/pinax/apps/tagging_utils/widgets.py | 3 | 1602 | from django import forms
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.safestring import mark_safe
class TagAutoCompleteInput(forms.TextInput):
class Media:
css = {
"all": (settings.STATIC_URL + "pinax/css/jquery.autocomplete.css",)
... | mit | [
504,
1639,
492,
4513,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
16522,
492,
3837,
199,
504,
1639,
14,
1208,
14,
28389,
492,
2216,
63,
3489,
4388,
199,
533,
8053,
3358,
14175,
3205,
8,
3351,
14,
18362,
304,
... | [
1639,
492,
4513,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
16522,
492,
3837,
199,
504,
1639,
14,
1208,
14,
28389,
492,
2216,
63,
3489,
4388,
199,
533,
8053,
3358,
14175,
3205,
8,
3351,
14,
18362,
304,
2286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Lab603/PicEncyclopedias | jni-build/jni/include/tensorflow/python/framework/tensor_shape_test.py | 7 | 15975 | # 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... | mit | [
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... |
CybOXProject/python-cybox | cybox/__init__.py | 1 | 4103 | # Copyright (c) 2020, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from mixbox import entities
from mixbox.vendor import six
from .version import __version__ # noqa
#: Mapping of xsi:types to implementation/extension classes
_EXTENSION_MAP = {}
def _lookup_unprefixed(typename)... | bsd-3-clause | [
3,
1898,
334,
67,
9,
25455,
12,
710,
10697,
907,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
1666,
5113,
14,
2424,
367,
4890,
2895,
14,
199,
199,
504,
13667,
1977,
492,
9045,
199,
504,
13667,
1977,
14,
9884,
492,
3816,
199,
199,
504,... | [
1898,
334,
67,
9,
25455,
12,
710,
10697,
907,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
1666,
5113,
14,
2424,
367,
4890,
2895,
14,
199,
199,
504,
13667,
1977,
492,
9045,
199,
504,
13667,
1977,
14,
9884,
492,
3816,
199,
199,
504,
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... |
TwinkleChawla/nova | nova/tests/unit/cast_as_call.py | 77 | 1837 | # Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | apache-2.0 | [
3,
1898,
6171,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
... | [
1898,
6171,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Yukarumya/Yukarum-Redfoxes | python/pystache/pystache/common.py | 48 | 2022 | # coding: utf-8
"""
Exposes functionality needed throughout the project.
"""
from sys import version_info
def _get_string_types():
# TODO: come up with a better solution for this. One of the issues here
# is that in Python 3 there is no common base class for unicode strings
# and byte strings, and ... | mpl-2.0 | [
3,
2803,
26,
2774,
13,
24,
199,
199,
624,
199,
920,
10553,
9330,
4346,
23088,
314,
2199,
14,
199,
199,
624,
199,
199,
504,
984,
492,
1015,
63,
815,
199,
199,
318,
485,
362,
63,
875,
63,
1313,
837,
272,
327,
3254,
26,
11492,
1536... | [
2803,
26,
2774,
13,
24,
199,
199,
624,
199,
920,
10553,
9330,
4346,
23088,
314,
2199,
14,
199,
199,
624,
199,
199,
504,
984,
492,
1015,
63,
815,
199,
199,
318,
485,
362,
63,
875,
63,
1313,
837,
272,
327,
3254,
26,
11492,
1536,
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... |
julianprabhakar/eden_car | tests/unit_tests/modules/s3/s3gis/OpenStreetMap.py | 43 | 1171 |
s3gis_tests = load_module("tests.unit_tests.modules.s3.s3gis")
def test_OpenStreetMap():
s3gis_tests.layer_test(
db,
db.gis_layer_openstreetmap,
dict(
enabled = True,
name = "test OSM layer",
url1 = "http://otile1.example.com/tiles/1.0.0/osm/",
... | mit | [
199,
83,
19,
5668,
63,
2219,
275,
2248,
63,
578,
480,
2219,
14,
3248,
63,
2219,
14,
3112,
14,
83,
19,
14,
83,
19,
5668,
531,
199,
199,
318,
511,
63,
4299,
933,
7936,
2956,
837,
272,
308,
19,
5668,
63,
2219,
14,
1897,
63,
396,
... | [
83,
19,
5668,
63,
2219,
275,
2248,
63,
578,
480,
2219,
14,
3248,
63,
2219,
14,
3112,
14,
83,
19,
14,
83,
19,
5668,
531,
199,
199,
318,
511,
63,
4299,
933,
7936,
2956,
837,
272,
308,
19,
5668,
63,
2219,
14,
1897,
63,
396,
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... |
hifly/OpenUpgrade | addons/base_report_designer/openerp_sxw2rml/__init__.py | 423 | 1091 | # -*- 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... | agpl-3.0 | [
3,
1882,
2803,
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,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
... | [
1882,
2803,
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,
6542,
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... |
wschaeferB/autopsy | test/script/tskdbdiff.py | 2 | 39751 | # Requires python3
import re
import sqlite3
import subprocess
import shutil
import os
import codecs
import datetime
import sys
import psycopg2
import psycopg2.extras
import socket
import csv
class TskDbDiff(object):
"""Compares two TSK/Autospy SQLite databases.
Attributes:
gold_artifacts:
aut... | apache-2.0 | [
3,
15127,
2366,
19,
199,
199,
646,
295,
199,
646,
11723,
19,
199,
646,
3873,
199,
646,
5145,
199,
646,
747,
199,
646,
6010,
199,
646,
2197,
199,
646,
984,
199,
646,
15492,
18,
199,
646,
15492,
18,
14,
9975,
199,
646,
2838,
199,
... | [
15127,
2366,
19,
199,
199,
646,
295,
199,
646,
11723,
19,
199,
646,
3873,
199,
646,
5145,
199,
646,
747,
199,
646,
6010,
199,
646,
2197,
199,
646,
984,
199,
646,
15492,
18,
199,
646,
15492,
18,
14,
9975,
199,
646,
2838,
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... |
munnerz/CouchPotatoServer | libs/tornado/options.py | 79 | 20184 | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8937,
27107,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8937,
27107,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
patricmutwiri/pombola | pombola/info/admin.py | 2 | 1448 | from django.conf import settings
from django.contrib import admin
import autocomplete_light
import models
from pombola.slug_helpers.admin import StricterSlugFieldMixin
class LabelAdmin(admin.ModelAdmin):
search_fields = [ 'name' ]
list_display = [ 'name', 'slug' ]
prepopulated_fields = {'slug': ['name... | agpl-3.0 | [
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
492,
4628,
199,
199,
646,
2599,
4883,
63,
4040,
199,
199,
646,
1709,
199,
199,
504,
299,
24370,
22205,
14,
5464,
63,
7546,
14,
2113,
492,
428,
13929,
351,
17315,
4256,
199,
... | [
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
492,
4628,
199,
199,
646,
2599,
4883,
63,
4040,
199,
199,
646,
1709,
199,
199,
504,
299,
24370,
22205,
14,
5464,
63,
7546,
14,
2113,
492,
428,
13929,
351,
17315,
4256,
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... |
chouseknecht/ansible | lib/ansible/modules/identity/keycloak/keycloak_group.py | 12 | 11972 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2019, Adam Goossens <adam.goossens@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
20312,
12,
4431,
455,
3971,
736,
22891,
665,
27679,
14,
1939,
736,
22891,
32,
6799,
14,
957,
30,
199,
3,
1664,
1696,
1684... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
20312,
12,
4431,
455,
3971,
736,
22891,
665,
27679,
14,
1939,
736,
22891,
32,
6799,
14,
957,
30,
199,
3,
1664,
1696,
1684,
844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pgmillon/ansible | lib/ansible/modules/cloud/vmware/vmware_host_facts.py | 1 | 11491 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Wei Gao <gaowei3@qq.com>
# Copyright: (c) 2018, Ansible Project
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
9708,
12,
2136,
73,
598,
8035,
665,
5294,
583,
24708,
19,
32,
16672,
14,
957,
30,
199,
3,
1898,
26,
334,
67,
9,
1... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
9708,
12,
2136,
73,
598,
8035,
665,
5294,
583,
24708,
19,
32,
16672,
14,
957,
30,
199,
3,
1898,
26,
334,
67,
9,
14894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
silkyar/570_Big_Little | src/arch/x86/isa/insts/simd128/integer/shift/right_logical_shift.py | 91 | 4565 | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | bsd-3-clause | [
3,
1898,
334,
67,
9,
10219,
710,
27849,
13,
29471,
15290,
15878,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
710,
4190,
5084,
16879,
1454,
370,
4248,
315,
314,
2032,
436,
10989,
199,
3,
440,
506,
950,
431,
68,
465,
16085,
316,
... | [
1898,
334,
67,
9,
10219,
710,
27849,
13,
29471,
15290,
15878,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
710,
4190,
5084,
16879,
1454,
370,
4248,
315,
314,
2032,
436,
10989,
199,
3,
440,
506,
950,
431,
68,
465,
16085,
316,
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... |
evaschalde/odoo | addons/stock_landed_costs/__openerp__.py | 220 | 1914 | # -*- 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... |
mlsecproject/gglsbl-rest | config.py | 1 | 1443 | from os import environ
import logging.config
from apscheduler.schedulers.background import BackgroundScheduler
from multiprocessing import cpu_count
from subprocess import Popen
logging.config.fileConfig('logging.conf')
bind = "0.0.0.0:5000"
workers = int(environ.get('WORKERS', cpu_count() * 8 + 1))
timeout = int(en... | apache-2.0 | [
504,
747,
492,
6160,
199,
199,
646,
2050,
14,
888,
199,
504,
282,
1190,
5085,
14,
7211,
2393,
14,
7451,
492,
10257,
3928,
11251,
199,
504,
12866,
492,
5033,
63,
835,
199,
504,
3873,
492,
13995,
199,
199,
4806,
14,
888,
14,
493,
20... | [
747,
492,
6160,
199,
199,
646,
2050,
14,
888,
199,
504,
282,
1190,
5085,
14,
7211,
2393,
14,
7451,
492,
10257,
3928,
11251,
199,
504,
12866,
492,
5033,
63,
835,
199,
504,
3873,
492,
13995,
199,
199,
4806,
14,
888,
14,
493,
2028,
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... |
lumig242/Hue-Integration-with-CDAP | desktop/core/ext-py/Django-1.6.10/django/contrib/auth/tests/test_models.py | 104 | 6290 | import warnings
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.models import (Group, User, SiteProfileNotAvailable,
UserManager)
from django.contrib.auth.tests.custom_user import IsActiveTestUser1
from django.contrib.auth.tests.utils import skipIfCustomUser... | apache-2.0 | [
646,
3598,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
14,
1178,
492,
664,
63,
751,
63,
1238,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
334,
2448,
12,
2876,
12,
11666,
5736,
1763,
11464,
12,
272,
... | [
3598,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
14,
1178,
492,
664,
63,
751,
63,
1238,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
334,
2448,
12,
2876,
12,
11666,
5736,
1763,
11464,
12,
272,
2876,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
estaban/pyload | module/plugins/hoster/UnrestrictLi.py | 1 | 4420 | # -*- coding: utf-8 -*-
############################################################################
# This program 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 Foundation, either version 3 of ... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3949,
381,
199,
3,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
258,
327,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
4265,
1696,
1684,
844,
465,
3698,
3... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3949,
381,
199,
3,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
258,
327,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
4265,
1696,
1684,
844,
465,
3698,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mrquim/mrquimrepo | script.module.youtube.dl/lib/youtube_dl/extractor/bbc.py | 9 | 54001 | # coding: utf-8
from __future__ import unicode_literals
import re
import itertools
from .common import InfoExtractor
from ..utils import (
clean_html,
dict_get,
ExtractorError,
float_or_none,
get_element_by_class,
int_or_none,
parse_duration,
parse_iso8601,
try_get,
unescapeHTM... | gpl-2.0 | [
3,
2803,
26,
2774,
13,
24,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
646,
7975,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
3633,
63,
1360,
12,
272,
1211,
63,
362,
12... | [
2803,
26,
2774,
13,
24,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
646,
7975,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
3633,
63,
1360,
12,
272,
1211,
63,
362,
12,
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... |
JanSchulz/multi-package-feedstock | recipes/python-2.7.8/run_test.py | 1 | 1289 | import platform
import os
import sys
import subprocess
from pprint import pprint
print('Python version:', platform.python_version())
print('max unicode:', sys.maxunicode)
print('architecture:', platform.architecture())
print('sys.version:', sys.version)
print('platform.machine():', platform.machine())
import _bisect
... | bsd-3-clause | [
646,
4298,
199,
646,
747,
199,
646,
984,
199,
646,
3873,
199,
504,
10933,
492,
10933,
199,
199,
1361,
360,
4718,
1015,
6536,
4298,
14,
1548,
63,
1023,
1012,
199,
1361,
360,
988,
2649,
6536,
984,
14,
988,
2975,
9,
199,
1361,
360,
1... | [
4298,
199,
646,
747,
199,
646,
984,
199,
646,
3873,
199,
504,
10933,
492,
10933,
199,
199,
1361,
360,
4718,
1015,
6536,
4298,
14,
1548,
63,
1023,
1012,
199,
1361,
360,
988,
2649,
6536,
984,
14,
988,
2975,
9,
199,
1361,
360,
19134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GiovanniConserva/TestDeploy | venv/Lib/site-packages/django/db/backends/sqlite3/base.py | 323 | 18115 | """
SQLite3 backend for django.
Works with either the pysqlite2 module or the sqlite3 module in the
standard library.
"""
from __future__ import unicode_literals
import datetime
import decimal
import re
import warnings
from django.conf import settings
from django.db import utils
from django.db.backends import utils ... | bsd-3-clause | [
624,
199,
4657,
1175,
19,
4865,
367,
1639,
14,
199,
199,
25348,
543,
1902,
314,
10382,
29498,
18,
859,
503,
314,
11723,
19,
859,
315,
314,
199,
6807,
3555,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646... | [
199,
4657,
1175,
19,
4865,
367,
1639,
14,
199,
199,
25348,
543,
1902,
314,
10382,
29498,
18,
859,
503,
314,
11723,
19,
859,
315,
314,
199,
6807,
3555,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
aularon/meld | meld/vc/mercurial.py | 6 | 5772 | # Copyright (C) 2002-2005 Stephen Kennedy <stevek@gnome.org>
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions an... | gpl-2.0 | [
3,
1898,
334,
35,
9,
14790,
13,
9397,
17854,
17579,
1804,
287,
7439,
89,
665,
1597,
432,
75,
32,
784,
1377,
14,
1308,
30,
199,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,... | [
1898,
334,
35,
9,
14790,
13,
9397,
17854,
17579,
1804,
287,
7439,
89,
665,
1597,
432,
75,
32,
784,
1377,
14,
1308,
30,
199,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
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... |
gaurav38/QosRouting | pox/openflow/__init__.py | 5 | 11451 | # Copyright 2011 James McCauley
#
# 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 writi... | apache-2.0 | [
3,
1898,
7760,
1603,
14015,
22895,
3630,
443,
89,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
... | [
1898,
7760,
1603,
14015,
22895,
3630,
443,
89,
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,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kenshay/ImageScript | ProgramData/SystemFiles/opencv/sources/modules/ts/misc/run.py | 5 | 41856 | #!/usr/bin/env python
import sys, os, platform, xml, re, tempfile, glob, datetime, getpass, shutil
from optparse import OptionParser
from subprocess import Popen, PIPE
hostos = os.name # 'nt', 'posix'
hostmachine = platform.machine() # 'x86', 'AMD64', 'x86_64'
errorCode = 0
SIMD_DETECTION_PROGRAM="""
#if __SSE5__
#... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
984,
12,
747,
12,
4298,
12,
2748,
12,
295,
12,
5549,
12,
5739,
12,
2197,
12,
18354,
12,
5145,
199,
504,
8691,
492,
13491,
199,
504,
3873,
492,
13995,
12,
22773,
199,
199,
1102,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
984,
12,
747,
12,
4298,
12,
2748,
12,
295,
12,
5549,
12,
5739,
12,
2197,
12,
18354,
12,
5145,
199,
504,
8691,
492,
13491,
199,
504,
3873,
492,
13995,
12,
22773,
199,
199,
1102,
736,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kcartier/tensorflow-toe-in-the-water | tensorflow/python/ops/nn_grad.py | 3 | 7922 | """Gradients for operators defined in nn_ops.py."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import control_flow_ops
from tensorflow.py... | apache-2.0 | [
624,
9942,
83,
367,
10211,
3247,
315,
11542,
63,
1483,
14,
647,
1041,
199,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
504,
636,
2443,
363,
492,
4629,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
504,
3228,
14,
... | [
9942,
83,
367,
10211,
3247,
315,
11542,
63,
1483,
14,
647,
1041,
199,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
504,
636,
2443,
363,
492,
4629,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
504,
3228,
14,
1548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mikeh69/JammerDetect | src/audio_tones.py | 1 | 3644 | import math #import needed modules
import pyaudio #sudo apt-get install python-pyaudio
import struct
import pickle
from time import sleep
PyAudio = pyaudio.PyAudio #initialize pyaudio
#See http://en.wikipedia.org/wiki/Bit_rate#Audio
BITRATE = 48000 #number of frames per second - 44.1kHz does not work pro... | mit | [
646,
3473,
258,
327,
646,
4346,
4621,
199,
646,
1134,
8130,
258,
327,
12095,
20932,
13,
362,
3907,
2366,
13,
647,
8130,
199,
646,
2702,
199,
646,
5927,
199,
504,
900,
492,
9435,
199,
199,
2713,
15484,
275,
1134,
8130,
14,
2713,
1548... | [
3473,
258,
327,
646,
4346,
4621,
199,
646,
1134,
8130,
258,
327,
12095,
20932,
13,
362,
3907,
2366,
13,
647,
8130,
199,
646,
2702,
199,
646,
5927,
199,
504,
900,
492,
9435,
199,
199,
2713,
15484,
275,
1134,
8130,
14,
2713,
15484,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
StephaneP/volatility | volatility/plugins/fileparam.py | 57 | 1840 | # Volatility
#
# Authors:
# Mike Auty <mike.auty@gmail.com>
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your op... | gpl-2.0 | [
3,
28367,
199,
3,
199,
3,
6642,
26,
199,
3,
603,
7455,
437,
19974,
665,
2664,
415,
14,
6898,
89,
32,
6799,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
28367,
14,
199,
3,
199,
3,
28367,
365,
2867,
2032,
27,
1265,
8... | [
28367,
199,
3,
199,
3,
6642,
26,
199,
3,
603,
7455,
437,
19974,
665,
2664,
415,
14,
6898,
89,
32,
6799,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
28367,
14,
199,
3,
199,
3,
28367,
365,
2867,
2032,
27,
1265,
883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
percy-g2/Novathor_xperia_u8500 | 6.1.1.B.0.253/external/webkit/Source/WebKit2/Scripts/webkit2/messages_unittest.py | 15 | 24676 | # Copyright (C) 2010 Apple 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:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | gpl-2.0 | [
3,
1898,
334,
35,
9,
7129,
21257,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
199,
3,
787,
7647,
26,
... | [
1898,
334,
35,
9,
7129,
21257,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
199,
3,
787,
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... |
mirkobronzi/finance-analyzer | lib/entries.py | 1 | 3600 | """
classes Entry and Entries
"""
__author__ = 'bronzi'
from datetime import datetime
import re
#TODO: should be configurable
PUNCTUATION_REMOVER = re.compile("[0-9,\.#\-_/']")
SPACE_REMOVER = re.compile(" +")
def string_to_float(string):
"""
simply convert a string into a float
string : basestring
... | gpl-3.0 | [
624,
199,
2888,
11855,
436,
23450,
1996,
199,
624,
199,
199,
363,
2502,
363,
275,
283,
66,
2641,
16079,
7,
421,
199,
504,
2197,
492,
2197,
199,
646,
295,
199,
199,
3,
11768,
26,
1077,
506,
30241,
199,
48,
1734,
1028,
53,
2594,
63,... | [
199,
2888,
11855,
436,
23450,
1996,
199,
624,
199,
199,
363,
2502,
363,
275,
283,
66,
2641,
16079,
7,
421,
199,
504,
2197,
492,
2197,
199,
646,
295,
199,
199,
3,
11768,
26,
1077,
506,
30241,
199,
48,
1734,
1028,
53,
2594,
63,
907,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cousteaulecommandant/youtube-dl | youtube_dl/extractor/appleconnect.py | 139 | 1848 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
str_to_int,
ExtractorError
)
class AppleConnectIE(InfoExtractor):
_VALID_URL = r'https?://itunes\.apple\.com/\w{0,2}/?post/idsa\.(?P<id>[\w-]+)'
_TEST = {
'url': 'https://itunes.app... | unlicense | [
3,
2803,
26,
2774,
13,
24,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
620,
63,
475,
63,
442,
12,
272,
19783,
199,
9,
421,
199,
533,
21257,
8631,
433... | [
2803,
26,
2774,
13,
24,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
620,
63,
475,
63,
442,
12,
272,
19783,
199,
9,
421,
199,
533,
21257,
8631,
4332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
reactormonk/eve-wspace | evewspace/Map/migrations/0005_auto__add_field_wormhole_eol_time.py | 17 | 17431 | # -*- 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 'Wormhole.eol_time'
db.add_column('Map_wormhole', 'eol_time',
self.gf('... | 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... |
CloudServer/nova | nova/api/openstack/compute/contrib/used_limits.py | 62 | 3281 | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | [
3,
1898,
6029,
14260,
2752,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
19... | [
1898,
6029,
14260,
2752,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mrrrgn/olympia | apps/bandwagon/tests/test_models.py | 9 | 9602 | import datetime
import itertools
import random
import mock
from nose.tools import eq_
import amo
import amo.tests
from access.models import Group
from addons.models import Addon, AddonRecommendation
from bandwagon.models import (Collection, CollectionAddon, CollectionUser,
CollectionWatc... | bsd-3-clause | [
646,
2197,
199,
646,
7975,
199,
646,
2196,
199,
199,
646,
1683,
199,
504,
11354,
14,
2537,
492,
3850,
63,
199,
199,
646,
30235,
199,
646,
30235,
14,
2219,
199,
504,
2879,
14,
992,
492,
5611,
199,
504,
21293,
14,
992,
492,
29366,
1... | [
2197,
199,
646,
7975,
199,
646,
2196,
199,
199,
646,
1683,
199,
504,
11354,
14,
2537,
492,
3850,
63,
199,
199,
646,
30235,
199,
646,
30235,
14,
2219,
199,
504,
2879,
14,
992,
492,
5611,
199,
504,
21293,
14,
992,
492,
29366,
12,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
simone-campagna/sheru | packages/sheru/main.py | 1 | 5020 | # -*- coding: utf-8 -*-
#
# Copyright 2015 Simone Campagna
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
6900,
10751,
368,
24569,
643,
3540,
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,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
6900,
10751,
368,
24569,
643,
3540,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
msabramo/ansible | lib/ansible/modules/network/iosxr/iosxr_command.py | 15 | 7240 | #!/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 distribut... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gangadhar-kadam/helpdesk-erpnext | erpnext/patches/v5_4/notify_system_managers_regarding_wrong_tax_calculation.py | 45 | 1433 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.email import sendmail_to_system_managers
from frappe.utils import get_link_to_form
def execute():
wrong_records = []
for... | agpl-3.0 | [
3,
1898,
334,
67,
9,
6171,
12,
6001,
8144,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
844,
26,
1664,
1696,
1684,
844,
373,
19,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
6950,
1... | [
1898,
334,
67,
9,
6171,
12,
6001,
8144,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
844,
26,
1664,
1696,
1684,
844,
373,
19,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
6950,
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... |
ilpianista/ansible | lib/ansible/module_utils/facts/namespace.py | 172 | 2366 | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | gpl-3.0 | [
3,
961,
1233,
365,
1777,
402,
2622,
12,
1325,
365,
376,
12717,
3931,
14,
199,
3,
961,
6770,
570,
17440,
12,
436,
642,
570,
17440,
1454,
12,
365,
6289,
18233,
14,
199,
3,
18167,
1265,
2218,
1808,
642,
17440,
12,
1314,
365,
12169,
1... | [
961,
1233,
365,
1777,
402,
2622,
12,
1325,
365,
376,
12717,
3931,
14,
199,
3,
961,
6770,
570,
17440,
12,
436,
642,
570,
17440,
1454,
12,
365,
6289,
18233,
14,
199,
3,
18167,
1265,
2218,
1808,
642,
17440,
12,
1314,
365,
12169,
18774,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jiangzhixiao/odoo | addons/payment_authorize/models/authorize.py | 201 | 6963 | # -*- coding: utf-'8' "-*-"
import hashlib
import hmac
import logging
import time
import urlparse
from openerp import api, fields, models
from openerp.addons.payment.models.payment_acquirer import ValidationError
from openerp.addons.payment_authorize.controllers.main import AuthorizeController
from openerp.tools.floa... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
15668,
24,
7,
3905,
1837,
2,
199,
199,
646,
8337,
199,
646,
20330,
199,
646,
2050,
199,
646,
900,
199,
646,
7097,
199,
199,
504,
5166,
492,
2986,
12,
1504,
12,
1709,
199,
504,
5166,
14,
10788,
14,
7948,
... | [
1882,
2803,
26,
2774,
15668,
24,
7,
3905,
1837,
2,
199,
199,
646,
8337,
199,
646,
20330,
199,
646,
2050,
199,
646,
900,
199,
646,
7097,
199,
199,
504,
5166,
492,
2986,
12,
1504,
12,
1709,
199,
504,
5166,
14,
10788,
14,
7948,
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... |
serviceagility/boto | boto/pyami/installers/ubuntu/installer.py | 153 | 3545 | # Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy,... | mit | [
3,
1898,
334,
67,
9,
8315,
12,
9488,
12,
9300,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
282,
199,
3,
1331,
402,
642,
20... | [
1898,
334,
67,
9,
8315,
12,
9488,
12,
9300,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
282,
199,
3,
1331,
402,
642,
2032,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Si-elegans/Web-based_GUI_Tools | spirit/forms/comment_like.py | 1 | 1042 | #-*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext as _
from spirit.models.comment_like import CommentLike
class LikeForm(forms.ModelForm):
class Meta:
model = CommentLike
fields = []
def __init__(self, user=None, comment=None, *args, **kwargs):
... | apache-2.0 | [
3,
13,
1837,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
1639,
492,
4513,
199,
504,
1639,
14,
1208,
14,
6893,
492,
10366,
465,
485,
199,
199,
504,
19441,
11133,
14,
992,
14,
3349,
63,
2930,
492,
6819,
12545,
421,
199,
533,
16485,... | [
13,
1837,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
1639,
492,
4513,
199,
504,
1639,
14,
1208,
14,
6893,
492,
10366,
465,
485,
199,
199,
504,
19441,
11133,
14,
992,
14,
3349,
63,
2930,
492,
6819,
12545,
421,
199,
533,
16485,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NeuroDataDesign/seelviz | Flask/env/lib/python2.7/site-packages/pip/_vendor/packaging/_structures.py | 1152 | 1416 | # 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
class Infinity(object):
def __repr__(self):
return "Infinity... | apache-2.0 | [
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... |
moyogo/tachyfont | run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/tables/sbixBitmapSet.py | 7 | 4944 | from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
from fontTools.misc import sstruct
from fontTools.misc.textTools import readHex
from .sbixBitmap import *
import struct
sbixBitmapSetHeaderFormat = """
>
size: H # 00 28
resolution: H # 00 ... | apache-2.0 | [
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
12,
3679,
63,
646,
199,
504,
5023,
11654,
14,
9923,
14,
647,
1789,
492,
627,
199,
504,
5023,
11654,
14,
9923,
492,
308,
1820,
199,
504,
5023,
11654,
14,
9923,
14,
505,
11654,
492,... | [
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
12,
3679,
63,
646,
199,
504,
5023,
11654,
14,
9923,
14,
647,
1789,
492,
627,
199,
504,
5023,
11654,
14,
9923,
492,
308,
1820,
199,
504,
5023,
11654,
14,
9923,
14,
505,
11654,
492,
1586... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nttks/edx-platform | lms/djangoapps/pdfgen/tests/test_api.py | 1 | 6717 | """Tests for the pdfgen API. """
from datetime import datetime
from mock import patch
from django.test import RequestFactory
from certificates import api as certs_api
from certificates.models import CertificateGenerationConfiguration, CertificateStatuses, GeneratedCertificate
from certificates.tests.factories import ... | agpl-3.0 | [
624,
2925,
367,
314,
11249,
2268,
3261,
14,
408,
199,
504,
2197,
492,
2197,
199,
504,
1683,
492,
3371,
199,
199,
504,
1639,
14,
396,
492,
18638,
199,
199,
504,
14512,
492,
2986,
465,
25949,
63,
1246,
199,
504,
14512,
14,
992,
492,
... | [
2925,
367,
314,
11249,
2268,
3261,
14,
408,
199,
504,
2197,
492,
2197,
199,
504,
1683,
492,
3371,
199,
199,
504,
1639,
14,
396,
492,
18638,
199,
199,
504,
14512,
492,
2986,
465,
25949,
63,
1246,
199,
504,
14512,
14,
992,
492,
12904,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mccheung/kbengine | kbe/src/lib/python/Lib/test/test_importlib/frozen/test_finder.py | 81 | 2209 | from .. import abc
from .. import util
machinery = util.import_importlib('importlib.machinery')
import unittest
class FindSpecTests(abc.FinderTests):
"""Test finding frozen modules."""
def find(self, name, path=None):
finder = self.machinery.FrozenImporter
return finder.find_spec(name, pat... | lgpl-3.0 | [
504,
2508,
492,
13022,
199,
504,
2508,
492,
4884,
199,
199,
14121,
20067,
275,
4884,
14,
646,
63,
25893,
360,
25893,
14,
14121,
20067,
358,
199,
199,
646,
2882,
421,
199,
533,
6668,
5307,
2925,
8,
3175,
14,
11791,
2925,
304,
339,
40... | [
2508,
492,
13022,
199,
504,
2508,
492,
4884,
199,
199,
14121,
20067,
275,
4884,
14,
646,
63,
25893,
360,
25893,
14,
14121,
20067,
358,
199,
199,
646,
2882,
421,
199,
533,
6668,
5307,
2925,
8,
3175,
14,
11791,
2925,
304,
339,
408,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zaccoz/odoo | addons/fetchmail/res_config.py | 437 | 5234 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
7409,
7653,
428,
14,
33,
14,
8642,
1014,
921,
11267,
14,
957,
10121,
199,
3,
1... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
7409,
7653,
428,
14,
33,
14,
8642,
1014,
921,
11267,
14,
957,
10121,
199,
3,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.