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 |
|---|---|---|---|---|---|---|---|---|
pedrobaeza/OpenUpgrade | addons/base_import_module/tests/test_module/__openerp__.py | 377 | 1290 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | [
3,
1882,
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,
6171,
13,
31982,
7653,
13950,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
10121,
199,
3,
199,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
6171,
13,
31982,
7653,
13950,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
10121,
199,
3,
199,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wskplho/sl4a | python-build/python-libs/python-twitter/twitter.py | 89 | 70251 | #!/usr/bin/python2.4
#
# Copyright 2007 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... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
18,
14,
20,
199,
3,
199,
3,
1898,
10219,
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,
... | [
2647,
15,
1393,
15,
1548,
18,
14,
20,
199,
3,
199,
3,
1898,
10219,
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,
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... |
dkarakats/edx-platform | common/test/acceptance/pages/studio/component_editor.py | 65 | 5068 | from bok_choy.page_object import PageObject
from selenium.webdriver.common.keys import Keys
from utils import click_css
from selenium.webdriver.support.ui import Select
class BaseComponentEditorView(PageObject):
"""
A base :class:`.PageObject` for the component and visibility editors.
This class assumes ... | agpl-3.0 | [
504,
330,
745,
63,
2239,
89,
14,
1606,
63,
785,
492,
10331,
1692,
199,
504,
19481,
14,
17946,
14,
2330,
14,
1612,
492,
17276,
199,
504,
3778,
492,
8968,
63,
3919,
199,
504,
19481,
14,
17946,
14,
4058,
14,
1907,
492,
9496,
421,
199... | [
330,
745,
63,
2239,
89,
14,
1606,
63,
785,
492,
10331,
1692,
199,
504,
19481,
14,
17946,
14,
2330,
14,
1612,
492,
17276,
199,
504,
3778,
492,
8968,
63,
3919,
199,
504,
19481,
14,
17946,
14,
4058,
14,
1907,
492,
9496,
421,
199,
533... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cappatar/knesset-data-pipelines | datapackage_pipelines_knesset/members/processors/load_members.py | 1 | 1419 | from datapackage_pipelines_knesset.common.base_processors.add_resource import AddResourceBaseProcessor
# only loads members with the following positionId:
SUPPORTED_POSITION_IDS = [43, 61]
class Processor(AddResourceBaseProcessor):
def _get_schema(self, resource_descriptor):
return resource_descriptor.ge... | mit | [
504,
666,
2491,
63,
4990,
1278,
63,
75,
17775,
409,
14,
2330,
14,
1095,
63,
10547,
14,
525,
63,
1927,
492,
2654,
4031,
1563,
10438,
199,
199,
3,
1454,
14404,
7556,
543,
314,
2569,
3421,
1304,
26,
199,
15925,
63,
15717,
63,
20857,
... | [
666,
2491,
63,
4990,
1278,
63,
75,
17775,
409,
14,
2330,
14,
1095,
63,
10547,
14,
525,
63,
1927,
492,
2654,
4031,
1563,
10438,
199,
199,
3,
1454,
14404,
7556,
543,
314,
2569,
3421,
1304,
26,
199,
15925,
63,
15717,
63,
20857,
275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
trafi/gyp | test/mac/gyptest-loadable-module.py | 54 | 1280 | #!/usr/bin/env python
# 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.
"""
Tests that a loadable_module target is built correctly.
"""
import TestGyp
import os
import struct
import sys
if sys.platform == 'dar... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
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,
3... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
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,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bertucho/epic-movie-quotes-quiz | dialogos/build/Twisted/twisted/logger/test/test_io.py | 11 | 7231 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Test cases for L{twisted.logger._io}.
"""
from __future__ import print_function
import sys
from twisted.trial import unittest
from .._levels import LogLevel
from .._logger import Logger
from .._observer import LogPublisher
from .._io impor... | mit | [
3,
1898,
334,
67,
9,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
199,
199,
624,
199,
774,
5560,
367,
491,
91,
12145,
14,
2921,
423,
2308,
5565,
199,
624,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199... | [
1898,
334,
67,
9,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
199,
199,
624,
199,
774,
5560,
367,
491,
91,
12145,
14,
2921,
423,
2308,
5565,
199,
624,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Midrya/chromium | third_party/gsutil/gslib/commands/getlogging.py | 51 | 5500 | # Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | bsd-3-clause | [
3,
1898,
7760,
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,
7760,
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... |
surjit84/pmtk3 | matlabTools/metaTools/googlecode_upload.py | 304 | 8912 | #!/usr/bin/env python
#
# Copyright 2006, 2007 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8315,
12,
10219,
4475,
3277,
14,
2900,
5924,
5702,
14,
199,
3,
6529,
26,
366,
11438,
834,
32,
3098,
14,
957,
334,
36,
17204,
1626,
424,
834,
9,
199,
3,
199,
3,
14914,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8315,
12,
10219,
4475,
3277,
14,
2900,
5924,
5702,
14,
199,
3,
6529,
26,
366,
11438,
834,
32,
3098,
14,
957,
334,
36,
17204,
1626,
424,
834,
9,
199,
3,
199,
3,
14914,
367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sarvex/tensorflow | tensorflow/python/kernel_tests/functional_ops_test.py | 9 | 47969 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pgmillon/ansible | lib/ansible/modules/remote_management/redfish/idrac_redfish_command.py | 12 | 5893 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2018 Dell EMC Inc.
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
... | 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,
14894,
577,
1697,
662,
7608,
3277,
14,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
5113,
503,
4178,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
14894,
577,
1697,
662,
7608,
3277,
14,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
5113,
503,
4178,
921,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
coolbho3k/kernel-roth | tools/perf/scripts/python/futex-contention.py | 11261 | 1486 | # futex contention
# (c) 2010, Arnaldo Carvalho de Melo <acme@redhat.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Translation of:
#
# http://sourceware.org/systemtap/wiki/WSFutexContention
#
# to perf python scripting.
#
# Measures futex contention
import os, sys
sys.path.append(os.environ['PER... | gpl-2.0 | [
3,
289,
18173,
406,
9553,
199,
3,
334,
67,
9,
7129,
12,
1952,
78,
279,
1117,
14243,
637,
526,
477,
3194,
320,
665,
18107,
32,
17164,
14,
957,
30,
199,
3,
3909,
1334,
314,
2895,
402,
314,
1664,
14629,
844,
1015,
499,
199,
3,
199,... | [
289,
18173,
406,
9553,
199,
3,
334,
67,
9,
7129,
12,
1952,
78,
279,
1117,
14243,
637,
526,
477,
3194,
320,
665,
18107,
32,
17164,
14,
957,
30,
199,
3,
3909,
1334,
314,
2895,
402,
314,
1664,
14629,
844,
1015,
499,
199,
3,
199,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
imbasimba/astroquery | astroquery/skyview/tests/test_skyview.py | 2 | 2963 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import os.path
import types
import pytest
from astropy import coordinates
from astropy import units as u
from ...utils import commons
from ...utils.testing_tools import MockResponse
from ...skyview import SkyView
objcoords = {'Eta Carinae': coordinates.... | bsd-3-clause | [
3,
3909,
1334,
282,
650,
13,
8501,
6289,
3449,
4190,
446,
1937,
5113,
14,
8332,
199,
646,
747,
14,
515,
199,
646,
2943,
199,
199,
646,
4613,
199,
504,
28753,
492,
8983,
199,
504,
28753,
492,
6204,
465,
399,
199,
199,
504,
2263,
12... | [
3909,
1334,
282,
650,
13,
8501,
6289,
3449,
4190,
446,
1937,
5113,
14,
8332,
199,
646,
747,
14,
515,
199,
646,
2943,
199,
199,
646,
4613,
199,
504,
28753,
492,
8983,
199,
504,
28753,
492,
6204,
465,
399,
199,
199,
504,
2263,
1208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
exu/poligon | python/python_koans/python3/koans/about_comprehension.py | 56 | 2234 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
class AboutComprehension(Koan):
def test_creating_lists_with_list_comprehensions(self):
feast = ['lambs', 'sloths', 'orangutans', 'breakfast cereals',
'fruit bats']
comprehension = [delicacy.capitalize() for de... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
7876,
14,
7697,
290,
492,
627,
421,
199,
533,
25225,
2404,
31379,
8,
31305,
290,
304,
2378,
347,
511,
63,
20358,
63,
6717,
63,
1045,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
7876,
14,
7697,
290,
492,
627,
421,
199,
533,
25225,
2404,
31379,
8,
31305,
290,
304,
2378,
347,
511,
63,
20358,
63,
6717,
63,
1045,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dermoth/gramps | gramps/gui/editors/displaytabs/locationmodel.py | 11 | 1690 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at you... | gpl-2.0 | [
3,
199,
3,
10268,
13408,
446,
282,
598,
15263,
19616,
39,
2826,
3635,
4079,
15599,
2548,
89,
2240,
199,
3,
199,
3,
1898,
334,
35,
9,
12293,
13,
7968,
221,
7529,
27075,
653,
14,
2900,
316,
10670,
199,
3,
199,
3,
961,
2240,
365,
2... | [
199,
3,
10268,
13408,
446,
282,
598,
15263,
19616,
39,
2826,
3635,
4079,
15599,
2548,
89,
2240,
199,
3,
199,
3,
1898,
334,
35,
9,
12293,
13,
7968,
221,
7529,
27075,
653,
14,
2900,
316,
10670,
199,
3,
199,
3,
961,
2240,
365,
2867,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
warriorframework/warriorframework | warrior/WarriorCore/iterative_parallel_kw_driver.py | 1 | 4275 | '''
Copyright 2017, Fujitsu Network Communications, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | apache-2.0 | [
2344,
199,
7384,
9708,
12,
481,
17189,
1405,
85,
7220,
18686,
12,
3277,
14,
199,
31661,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
13297,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
... | [
199,
7384,
9708,
12,
481,
17189,
1405,
85,
7220,
18686,
12,
3277,
14,
199,
31661,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
13297,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
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... |
ales-erjavec/orange | Orange/OrangeCanvas/gui/tests/test_toolgrid.py | 6 | 2920 | from PyQt4.QtGui import QAction, QToolButton
from .. import test
from ..toolgrid import ToolGrid
class TestToolGrid(test.QAppTestCase):
def test_tool_grid(self):
w = ToolGrid()
w.show()
self.app.processEvents()
def buttonsOrderedVisual():
# Process layout events so t... | gpl-3.0 | [
504,
14084,
20,
14,
10604,
492,
1413,
3310,
12,
1413,
5157,
4259,
199,
199,
504,
2508,
492,
511,
199,
504,
2508,
3557,
3825,
492,
15650,
7900,
421,
199,
533,
1379,
5157,
7900,
8,
396,
14,
49,
2640,
1746,
304,
272,
347,
511,
63,
35... | [
14084,
20,
14,
10604,
492,
1413,
3310,
12,
1413,
5157,
4259,
199,
199,
504,
2508,
492,
511,
199,
504,
2508,
3557,
3825,
492,
15650,
7900,
421,
199,
533,
1379,
5157,
7900,
8,
396,
14,
49,
2640,
1746,
304,
272,
347,
511,
63,
3557,
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... |
smices/mWorkerService | src/lib/baidubce/http/handler.py | 2 | 2816 | # Copyright (c) 2014 Baidu.com, 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 ... | mit | [
3,
1898,
334,
67,
9,
6927,
699,
21745,
85,
14,
957,
12,
3277,
14,
2900,
5924,
5702,
202,
199,
3,
202,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
440,
675,
642,
570,
202,
... | [
1898,
334,
67,
9,
6927,
699,
21745,
85,
14,
957,
12,
3277,
14,
2900,
5924,
5702,
202,
199,
3,
202,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
440,
675,
642,
570,
202,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
valentinmetraux/hierophis | hierophis/maths/statistics/basic.py | 1 | 2080 | #!/usr/bin/env python
# -*- coding: utf 8 -*-
"""
Utility functions.
:copyright: 2015 Agile Geoscience
:license: Apache 2.0
"""
import numpy as np
import scipy.signal
def rms(a):
"""
Calculates the RMS of an array.
:param a: An array.
:returns: The RMS of the array.
"""
return np.sqrt(np.s... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
1695,
1882,
199,
624,
199,
17505,
3423,
14,
199,
199,
26,
7307,
26,
6900,
21582,
441,
8875,
9907,
4894,
199,
26,
1682,
26,
3668,
499,
14,
16,
199,
624,
199,
646,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
1695,
1882,
199,
624,
199,
17505,
3423,
14,
199,
199,
26,
7307,
26,
6900,
21582,
441,
8875,
9907,
4894,
199,
26,
1682,
26,
3668,
499,
14,
16,
199,
624,
199,
646,
2680,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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/ImageScripter | ProgramData/SystemFiles/Python/Lib/test/sample_doctest.py | 228 | 1037 | """This is a sample module that doesn't really test anything all that
interesting.
It simply has a few tests, some of which succeed and some of which fail.
It's important that the numbers remain constant as another test is
testing the running of these tests.
>>> 2+2
4
"""
def foo():
"""
>>> 2+2
5
... | gpl-3.0 | [
624,
2765,
365,
282,
2690,
859,
626,
3181,
1133,
7710,
511,
7003,
1006,
626,
2043,
19604,
14,
199,
199,
7940,
9329,
965,
282,
9284,
2295,
12,
2005,
402,
1314,
17961,
436,
2005,
402,
1314,
2449,
14,
199,
199,
7940,
1159,
11012,
626,
... | [
2765,
365,
282,
2690,
859,
626,
3181,
1133,
7710,
511,
7003,
1006,
626,
2043,
19604,
14,
199,
199,
7940,
9329,
965,
282,
9284,
2295,
12,
2005,
402,
1314,
17961,
436,
2005,
402,
1314,
2449,
14,
199,
199,
7940,
1159,
11012,
626,
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... |
kubaszostak/gdal-dragndrop | osgeo/apps/Python27/Lib/encodings/utf_16_be.py | 103 | 1079 | """ Python 'utf-16-be' Codec
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
import codecs
### Codec APIs
encode = codecs.utf_16_be_encode
def decode(input, errors='strict'):
return codecs.utf_16_be_decode(input, errors, True)
class... | mit | [
624,
2018,
283,
1624,
13,
975,
13,
1235,
7,
13732,
8065,
199,
32329,
701,
603,
9912,
13,
3325,
264,
7005,
32649,
334,
2174,
32,
274,
32649,
14,
957,
680,
2999,
199,
8,
67,
9,
1898,
445,
46,
6129,
12,
2900,
5924,
5702,
14,
4825,
... | [
2018,
283,
1624,
13,
975,
13,
1235,
7,
13732,
8065,
199,
32329,
701,
603,
9912,
13,
3325,
264,
7005,
32649,
334,
2174,
32,
274,
32649,
14,
957,
680,
2999,
199,
8,
67,
9,
1898,
445,
46,
6129,
12,
2900,
5924,
5702,
14,
4825,
3408,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
eXcomm/cjdns | node_build/dependencies/libuv/build/gyp/pylib/gyp/generator/ninja.py | 16 | 89501 | # Copyright (c) 2013 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.
import collections
import copy
import hashlib
import json
import multiprocessing
import os.path
import re
import signal
import subprocess
import sys
import gyp
imp... | gpl-3.0 | [
3,
1898,
334,
67,
9,
6171,
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,
646,
5055,
199,
646... | [
1898,
334,
67,
9,
6171,
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,
646,
5055,
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,
1... |
kiall/designate-py3 | designate/storage/impl_sqlalchemy/migrate_repo/versions/066_add_update_status_index.py | 8 | 1469 | # Copyright (c) 2015 Rackspace Inc.
#
# Author: Tim Simmons <tim.simmons@rackspace.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | apache-2.0 | [
3,
1898,
334,
67,
9,
6900,
32679,
3277,
14,
199,
3,
199,
3,
6529,
26,
26244,
428,
20066,
4654,
665,
2906,
14,
338,
596,
4654,
32,
8085,
2638,
14,
957,
30,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,... | [
1898,
334,
67,
9,
6900,
32679,
3277,
14,
199,
3,
199,
3,
6529,
26,
26244,
428,
20066,
4654,
665,
2906,
14,
338,
596,
4654,
32,
8085,
2638,
14,
957,
30,
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... |
all-of-us/raw-data-repository | tests/api_tests/test_ppi_data_check_api.py | 1 | 2788 | from rdr_service.model.code import CodeType
from tests.helpers.unittest_base import BaseTestCase
class CheckPpiDataApiTest(BaseTestCase):
def setUp(self):
super(CheckPpiDataApiTest, self).setUp(with_consent_codes=True)
self.participant_summary = self.data_generator.create_database_participant_sum... | bsd-3-clause | [
504,
519,
5012,
63,
1364,
14,
1238,
14,
600,
492,
5495,
804,
199,
504,
2295,
14,
7546,
14,
2796,
63,
1095,
492,
3523,
1746,
421,
199,
533,
2670,
48,
1038,
1451,
7394,
774,
8,
20760,
304,
272,
347,
3613,
8,
277,
304,
267,
1613,
8... | [
519,
5012,
63,
1364,
14,
1238,
14,
600,
492,
5495,
804,
199,
504,
2295,
14,
7546,
14,
2796,
63,
1095,
492,
3523,
1746,
421,
199,
533,
2670,
48,
1038,
1451,
7394,
774,
8,
20760,
304,
272,
347,
3613,
8,
277,
304,
267,
1613,
8,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rosemead/namebench | nb_third_party/dns/rdtypes/txtbase.py | 248 | 2986 | # Copyright (C) 2006, 2007, 2009, 2010 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED... | apache-2.0 | [
3,
1898,
334,
35,
9,
8315,
12,
10219,
12,
8937,
12,
7129,
653,
676,
262,
453,
12,
3277,
14,
199,
3,
199,
3,
8779,
370,
675,
12,
1331,
12,
2811,
12,
436,
11207,
642,
2032,
436,
2399,
199,
3,
3794,
367,
1263,
12016,
543,
503,
19... | [
1898,
334,
35,
9,
8315,
12,
10219,
12,
8937,
12,
7129,
653,
676,
262,
453,
12,
3277,
14,
199,
3,
199,
3,
8779,
370,
675,
12,
1331,
12,
2811,
12,
436,
11207,
642,
2032,
436,
2399,
199,
3,
3794,
367,
1263,
12016,
543,
503,
1928,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CanalTP/navitia | source/log_analyzer/log_analyzer.py | 2 | 7813 | #! /usr/bin/python3
import plotly
from sortedcontainers import SortedKeyList
import re, os, argparse
kraken_regex = re.compile(r".* - Api : (.+), worker : (.+), request : (.+), start : (\d+), end : (\d+)")
jormun_regex = re.compile(r".*Task : (.+), request : (.+), start : (.+), end : (.+)")
generate_id_regex = re.... | agpl-3.0 | [
3168,
1182,
2647,
15,
1393,
15,
1548,
19,
199,
646,
5137,
590,
199,
504,
3355,
13577,
492,
27432,
1197,
1296,
199,
646,
295,
12,
747,
12,
7534,
421,
199,
75,
345,
917,
63,
3821,
275,
295,
14,
2014,
8,
82,
1674,
10,
446,
13986,
5... | [
1182,
2647,
15,
1393,
15,
1548,
19,
199,
646,
5137,
590,
199,
504,
3355,
13577,
492,
27432,
1197,
1296,
199,
646,
295,
12,
747,
12,
7534,
421,
199,
75,
345,
917,
63,
3821,
275,
295,
14,
2014,
8,
82,
1674,
10,
446,
13986,
520,
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... |
wooga/airflow | airflow/example_dags/example_nested_branch_dag.py | 1 | 2019 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | [
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
199,
3,
12602,
4248,
12715,
14,
221,
710... | [
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
199,
3,
12602,
4248,
12715,
14,
221,
710,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mxOBS/deb-pkg_xbmc-imx6 | addons/service.xbmc.versioncheck/service.py | 17 | 4169 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Team-XBMC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
258,
1898,
334,
35,
9,
6171,
11682,
13,
20806,
7608,
199,
3,
199,
3,
259,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
1... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
258,
1898,
334,
35,
9,
6171,
11682,
13,
20806,
7608,
199,
3,
199,
3,
259,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dendisuhubdy/tensorflow | tensorflow/python/kernel_tests/sparse_tensor_dense_matmul_op_test.py | 61 | 15941 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mojolab/LivingData | lib/livdatops.py | 1 | 1153 | import pandas
def getColRenameDict(mergersheet,sheet):
colrenamedict={}
originalcolnames=mergersheet[sheet].fillna("NA")
newcolnames=mergersheet[mergersheet.columns[0]]
for i in range(0,len(originalcolnames)):
colrenamedict[originalcolnames[i]]=newcolnames[i]
# if originalcolnames[i]!="NA":
# colrenamedict[... | apache-2.0 | [
646,
10634,
199,
199,
318,
664,
2001,
16843,
2141,
8,
2626,
836,
5069,
12,
5069,
304,
199,
198,
761,
8165,
807,
7622,
199,
198,
5043,
761,
1247,
29,
2626,
836,
5069,
59,
5069,
1055,
4498,
3540,
480,
7170,
531,
199,
198,
1222,
761,
... | [
10634,
199,
199,
318,
664,
2001,
16843,
2141,
8,
2626,
836,
5069,
12,
5069,
304,
199,
198,
761,
8165,
807,
7622,
199,
198,
5043,
761,
1247,
29,
2626,
836,
5069,
59,
5069,
1055,
4498,
3540,
480,
7170,
531,
199,
198,
1222,
761,
1247,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
katyhuff/moose | framework/contrib/nsiqcppstyle/rules/RULE_10_1_B_do_not_use_bufferoverflow_risky_function_for_windows.py | 43 | 2942 | """
Do not use buffer overflow risky functions in window env.
if they're found, this rule reports a violation.
== Buffer Overflow Risky Function List in Window ==
- strcat()
- wcscat()
- lstrcat()
- strcat()
- StrCatBuff()
- _tcscat()
- _ftcscat()
- strncat()
- StrNCat()
- strcpy()
- wcscpy()
-... | lgpl-2.1 | [
624,
199,
2585,
440,
675,
3335,
15784,
8012,
12267,
3423,
315,
4353,
2589,
14,
199,
692,
2985,
3984,
1911,
12,
642,
2332,
13924,
282,
1321,
10410,
14,
199,
199,
389,
26661,
7259,
1659,
820,
374,
10562,
6801,
3820,
315,
15689,
508,
523... | [
199,
2585,
440,
675,
3335,
15784,
8012,
12267,
3423,
315,
4353,
2589,
14,
199,
692,
2985,
3984,
1911,
12,
642,
2332,
13924,
282,
1321,
10410,
14,
199,
199,
389,
26661,
7259,
1659,
820,
374,
10562,
6801,
3820,
315,
15689,
508,
523,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jollyroger/debian-buildbot | buildbot/test/unit/test_steps_package_rpm_rpmbuild.py | 3 | 2875 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | [
3,
961,
570,
365,
1777,
402,
6516,
3018,
14,
221,
6516,
3018,
365,
2867,
2032,
26,
1265,
883,
199,
3,
3604,
652,
436,
15,
269,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
199,
3,
844,
465,
3267,
701,
314,
2868,
2290,
... | [
961,
570,
365,
1777,
402,
6516,
3018,
14,
221,
6516,
3018,
365,
2867,
2032,
26,
1265,
883,
199,
3,
3604,
652,
436,
15,
269,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
199,
3,
844,
465,
3267,
701,
314,
2868,
2290,
2752... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CSC-IT-Center-for-Science/pouta-blueprints | pebbles/views/authorize_instances.py | 1 | 3153 | from flask import abort, request, Response, Blueprint
import datetime
import logging
import re
from pebbles.models import InstanceToken
from pebbles.server import restful
authorize_instances = Blueprint('authorize_instances', __name__)
class AuthorizeInstancesView(restful.Resource):
def get(self):
toke... | mit | [
504,
7209,
492,
12004,
12,
1056,
12,
7232,
12,
22447,
1361,
199,
199,
646,
2197,
199,
646,
2050,
199,
646,
295,
199,
199,
504,
299,
2871,
830,
83,
14,
992,
492,
10066,
3264,
199,
504,
299,
2871,
830,
83,
14,
1000,
492,
4618,
1893,... | [
7209,
492,
12004,
12,
1056,
12,
7232,
12,
22447,
1361,
199,
199,
646,
2197,
199,
646,
2050,
199,
646,
295,
199,
199,
504,
299,
2871,
830,
83,
14,
992,
492,
10066,
3264,
199,
504,
299,
2871,
830,
83,
14,
1000,
492,
4618,
1893,
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... |
superchilli/webapp | venv/lib/python2.7/site-packages/pygments/token.py | 365 | 5662 | # -*- coding: utf-8 -*-
"""
pygments.token
~~~~~~~~~~~~~~
Basic token types and the standard tokens.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
class _TokenType(tuple):
parent = None
def split(self):
buf = []
... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
1418,
272,
32202,
1714,
339,
10082,
1526,
2943,
436,
314,
4465,
4645,
14,
339,
520,
7307,
26,
1898,
8315,
13,
6965,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
272,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
1418,
272,
32202,
1714,
339,
10082,
1526,
2943,
436,
314,
4465,
4645,
14,
339,
520,
7307,
26,
1898,
8315,
13,
6965,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
272,
520,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
danmit/django-calaccess-raw-data | example/toolbox/management/commands/createfielddocissues.py | 29 | 5833 | import os
import time
import calculate
from github import Github
from django.conf import settings
from calaccess_raw import get_model_list
from calaccess_raw.management.commands import CalAccessCommand
from django.contrib.humanize.templatetags.humanize import intcomma
class Command(CalAccessCommand):
help = 'Crea... | mit | [
646,
747,
199,
646,
900,
199,
646,
8671,
199,
504,
12869,
492,
598,
4049,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
3213,
2732,
63,
1773,
492,
664,
63,
1238,
63,
513,
199,
504,
3213,
2732,
63,
1773,
14,
8110,
14,
4405,
492,
... | [
747,
199,
646,
900,
199,
646,
8671,
199,
504,
12869,
492,
598,
4049,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
3213,
2732,
63,
1773,
492,
664,
63,
1238,
63,
513,
199,
504,
3213,
2732,
63,
1773,
14,
8110,
14,
4405,
492,
8256,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
andrius-preimantas/odoo | addons/hr_contract/base_action_rule.py | 389 | 2646 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2013 OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of th... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
6171,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
30,
199,
3,
199,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
6171,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
30,
199,
3,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sudheesh001/oh-mainline | vendor/packages/python-openid/openid/__init__.py | 139 | 1623 | """
This package is an implementation of the OpenID specification in
Python. It contains code for both server and consumer
implementations. For information on implementing an OpenID consumer,
see the C{L{openid.consumer.consumer}} module. For information on
implementing an OpenID server, see the C{L{openid.server.se... | agpl-3.0 | [
624,
199,
2765,
2559,
365,
376,
4514,
402,
314,
25463,
8929,
315,
199,
4718,
14,
221,
2779,
3509,
1233,
367,
3865,
1654,
436,
9790,
199,
21463,
1298,
14,
221,
2104,
2556,
641,
18234,
376,
25463,
9790,
12,
199,
3239,
314,
445,
91,
44... | [
199,
2765,
2559,
365,
376,
4514,
402,
314,
25463,
8929,
315,
199,
4718,
14,
221,
2779,
3509,
1233,
367,
3865,
1654,
436,
9790,
199,
21463,
1298,
14,
221,
2104,
2556,
641,
18234,
376,
25463,
9790,
12,
199,
3239,
314,
445,
91,
44,
91,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
groovecoder/kuma | vendor/packages/translate/convert/test_po2html.py | 26 | 5722 | #!/usr/bin/env python
from pytest import mark
from translate.convert import po2html, test_convert
from translate.misc import wStringIO
class TestPO2Html:
def converthtml(self, posource, htmltemplate, includefuzzy=False):
"""helper to exercise the command line function"""
inputfile = wStringIO.S... | mpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
504,
4613,
492,
2216,
199,
199,
504,
9028,
14,
3916,
492,
1115,
18,
1360,
12,
511,
63,
3916,
199,
504,
9028,
14,
9923,
492,
336,
6424,
421,
199,
533,
1379,
1512,
18,
12957,
26,
339,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
504,
4613,
492,
2216,
199,
199,
504,
9028,
14,
3916,
492,
1115,
18,
1360,
12,
511,
63,
3916,
199,
504,
9028,
14,
9923,
492,
336,
6424,
421,
199,
533,
1379,
1512,
18,
12957,
26,
339,
347,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
weiqiangdragonite/blog_tmp | python/baidu/myip.py | 1 | 1085 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# http://ip.taobao.com/instructions.php
import socket
#
common_headers = \
"Host: ip.taobao.com\r\n" + \
"Connection: Keep-Alive\r\n" + \
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" + \
"User-Agent: Mozilla/5.0 (X11; Lin... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1455,
921,
711,
14,
502,
79,
2470,
79,
14,
957,
15,
20718,
14,
8624,
199,
199,
646,
2838,
421,
199,
3,
199,
2330,
63,
2139,
275,
97... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1455,
921,
711,
14,
502,
79,
2470,
79,
14,
957,
15,
20718,
14,
8624,
199,
199,
646,
2838,
421,
199,
3,
199,
2330,
63,
2139,
275,
971,
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... |
NKSG/ns3 | bindings/python/apidefs/gcc-LP64/ns3_module_core.py | 4 | 220109 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
def register_types(module):
root_module = module.get_root()
## log.h: ns3::LogLevel [enumeration]
module.add_enum('LogLevel', ['LOG_NONE', 'LOG_ERROR', 'LOG_LEVEL_ERROR', 'LOG_WARN', 'LOG_LEVEL_WARN', 'LOG_DEBUG', 'LOG_L... | gpl-2.0 | [
504,
1134,
31297,
492,
5673,
12,
3814,
3034,
17111,
12,
1215,
12,
9151,
12,
7246,
533,
12,
14330,
199,
199,
318,
2274,
63,
1313,
8,
578,
304,
272,
1738,
63,
578,
275,
859,
14,
362,
63,
1231,
342,
2286,
925,
943,
14,
72,
26,
700,... | [
1134,
31297,
492,
5673,
12,
3814,
3034,
17111,
12,
1215,
12,
9151,
12,
7246,
533,
12,
14330,
199,
199,
318,
2274,
63,
1313,
8,
578,
304,
272,
1738,
63,
578,
275,
859,
14,
362,
63,
1231,
342,
2286,
925,
943,
14,
72,
26,
700,
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... |
dhanababum/accessdb | accessdb/utils.py | 1 | 8395 | # -*- coding: utf-8 -*-
# Copyright 2017 Dhana Babu
#
# 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... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
9708,
577,
72,
6738,
699,
371,
85,
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... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
9708,
577,
72,
6738,
699,
371,
85,
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,
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... |
jimsize/PySolFC | pysollib/games/harp.py | 1 | 13061 | #!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
# ---------------------------------------------------------------------------##
#
# Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
# Copyright (C) 2003 Mt. Hood Playing Card Co.
# Copyright (C) 2005-2009 Skomoroh
#
# This program is free softwa... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
818,
26,
2366,
27,
2803,
26,
2774,
13,
24,
27,
1882,
199,
3,
5620,
13715,
309,
199,
3,
199,
3,
1898,
334,
35,
9,
19960,
13,
17919,
7173,
527,
481,
1312,
90,
1323,
28396,
7135,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
818,
26,
2366,
27,
2803,
26,
2774,
13,
24,
27,
1882,
199,
3,
5620,
13715,
309,
199,
3,
199,
3,
1898,
334,
35,
9,
19960,
13,
17919,
7173,
527,
481,
1312,
90,
1323,
28396,
7135,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
iafan/zing | tests/forms/project.py | 1 | 1228 | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
# Copyright (C) Zing contributors.
#
# This file is a part of the Zing project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pyte... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
4376,
24629,
8417,
14,
199,
3,
1898,
334,
35,
9,
3107,
316,
8417,
14,
199,
3,
199,
3,
961,
570,
365,
282,
1777,
402,
314,
3107,
316,
2199,
14,
2779,
36... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
4376,
24629,
8417,
14,
199,
3,
1898,
334,
35,
9,
3107,
316,
8417,
14,
199,
3,
199,
3,
961,
570,
365,
282,
1777,
402,
314,
3107,
316,
2199,
14,
2779,
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... |
etherkit/OpenBeacon2 | client/linux-arm/venv/lib/python3.6/site-packages/PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py | 1 | 6760 | #-----------------------------------------------------------------------------
# Copyright (c) 2005-2020, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is in the file COPYING.txt... | gpl-3.0 | [
18045,
199,
3,
1898,
334,
67,
9,
11811,
13,
13934,
12,
1611,
27598,
15290,
11682,
14,
199,
3,
199,
3,
17484,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
334,
1023,
499,
199,
3,
503,
2945,
9,
543,
1919,
367,
29573,
4655,
314,... | [
199,
3,
1898,
334,
67,
9,
11811,
13,
13934,
12,
1611,
27598,
15290,
11682,
14,
199,
3,
199,
3,
17484,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
334,
1023,
499,
199,
3,
503,
2945,
9,
543,
1919,
367,
29573,
4655,
314,
8498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cindyyu/kuma | vendor/packages/translate/tools/test_podebug.py | 25 | 6654 | # -*- coding: utf-8 -*-
from translate.storage import base, po, xliff
from translate.tools import podebug
PO_DOC = """
msgid "This is a %s test, hooray."
msgstr ""
"""
XLIFF_DOC = """<?xml version='1.0' encoding='utf-8'?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.1" version="1.1">
<file original="NoName" ... | mpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
9028,
14,
3494,
492,
1300,
12,
1115,
12,
671,
317,
556,
199,
504,
9028,
14,
2537,
492,
299,
380,
1266,
421,
199,
1512,
63,
16618,
275,
408,
199,
15245,
298,
2765,
365,
282,
4... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
9028,
14,
3494,
492,
1300,
12,
1115,
12,
671,
317,
556,
199,
504,
9028,
14,
2537,
492,
299,
380,
1266,
421,
199,
1512,
63,
16618,
275,
408,
199,
15245,
298,
2765,
365,
282,
450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JenSte/pyqtgraph | examples/optics/pyoptic.py | 18 | 18439 | # -*- coding: utf-8 -*-
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
import numpy as np
import csv, gzip, os
from pyqtgraph import Point
class GlassDB:
"""
Database of dispersion coefficients for Schott glasses
+ Corning 7980
"""
def __init__(self, fileName='schott_glasses.csv'):
... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
27149,
2180,
465,
10275,
199,
504,
27149,
2180,
14,
4238,
492,
5928,
12,
10565,
199,
646,
2680,
465,
980,
199,
646,
7392,
12,
11756,
12,
747,
199,
504,
27149,
2180,
492,
7584,
199,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
27149,
2180,
465,
10275,
199,
504,
27149,
2180,
14,
4238,
492,
5928,
12,
10565,
199,
646,
2680,
465,
980,
199,
646,
7392,
12,
11756,
12,
747,
199,
504,
27149,
2180,
492,
7584,
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... |
xyzz/vcmi-build | project/jni/python/src/Demo/scripts/newslist.py | 32 | 11360 | #! /usr/bin/env python
#######################################################################
# Newslist $Revision: 66429 $
#
# Syntax:
# newslist [ -a ]
#
# This is a program to create a directory full of HTML pages
# which between them contain links to all the newsgroups available
# on your server.
#
# The -a op... | lgpl-2.1 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3060,
14776,
199,
3,
30951,
513,
221,
2672,
12714,
26,
1227,
772,
1398,
2672,
199,
3,
199,
3,
18377,
26,
199,
3,
259,
19497,
513,
359,
446,
65,
1622,
199,
3,
199,
3,
961,
365,
282... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3060,
14776,
199,
3,
30951,
513,
221,
2672,
12714,
26,
1227,
772,
1398,
2672,
199,
3,
199,
3,
18377,
26,
199,
3,
259,
19497,
513,
359,
446,
65,
1622,
199,
3,
199,
3,
961,
365,
282,
2240... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
javachengwc/hue | desktop/core/ext-py/guppy-0.1.10/guppy/etc/RE.py | 37 | 18932 | #._cv_part guppy.etc.RE
from guppy.etc.RE_Rect import chooserects
from guppy.etc.IterPermute import iterpermute
class InfiniteError(Exception):
pass
class WordsMemo:
def __init__(self, re, ch):
self.re = re
self.ch = ch
self.xs = {}
self.N = 0
def get_words_of_length(self, N):
# Return a list of wo... | apache-2.0 | [
3,
423,
5107,
63,
2064,
486,
384,
647,
14,
6839,
14,
907,
199,
199,
504,
486,
384,
647,
14,
6839,
14,
907,
63,
8252,
492,
11496,
23411,
199,
504,
486,
384,
647,
14,
6839,
14,
3315,
2623,
12423,
492,
2740,
8220,
938,
199,
199,
53... | [
423,
5107,
63,
2064,
486,
384,
647,
14,
6839,
14,
907,
199,
199,
504,
486,
384,
647,
14,
6839,
14,
907,
63,
8252,
492,
11496,
23411,
199,
504,
486,
384,
647,
14,
6839,
14,
3315,
2623,
12423,
492,
2740,
8220,
938,
199,
199,
533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
foromer4/scrapy | scrapy/utils/benchserver.py | 38 | 1332 | import random
from six.moves.urllib.parse import urlencode
from twisted.web.server import Site
from twisted.web.resource import Resource
from twisted.internet import reactor
class Root(Resource):
isLeaf = True
def getChild(self, name, request):
return self
def render(self, request):
tot... | bsd-3-clause | [
646,
2196,
199,
504,
3816,
14,
4912,
14,
4078,
14,
1122,
492,
16511,
199,
504,
7390,
14,
2520,
14,
1000,
492,
11666,
199,
504,
7390,
14,
2520,
14,
1927,
492,
7337,
199,
504,
7390,
14,
4901,
492,
9655,
421,
199,
533,
12826,
8,
4031... | [
2196,
199,
504,
3816,
14,
4912,
14,
4078,
14,
1122,
492,
16511,
199,
504,
7390,
14,
2520,
14,
1000,
492,
11666,
199,
504,
7390,
14,
2520,
14,
1927,
492,
7337,
199,
504,
7390,
14,
4901,
492,
9655,
421,
199,
533,
12826,
8,
4031,
304... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
macauleycheng/AOS_OF_Example | 04-VxLAN/04-AccessToNetworkPortFloodByMcast/edit_config.py | 4 | 8282 | import pkg_resources
pkg_resources.require("ncclient==0.4.3")
from ncclient import manager
import ncclient
#due to ofconfig design problem, it need fill port feature
#but we won't use it currently.
#of-agent nexthop 2 destination user-input-dst-mac ethernet 1/2 vid 2
config_nexthop_ucast_xml="""
<confi... | apache-2.0 | [
646,
5496,
63,
4435,
202,
199,
4600,
63,
4435,
14,
4365,
480,
7966,
1258,
389,
16,
14,
20,
14,
19,
531,
202,
199,
504,
12698,
1258,
492,
5256,
202,
199,
646,
12698,
1258,
8065,
199,
3,
11933,
370,
402,
888,
12899,
5160,
12,
652,
... | [
5496,
63,
4435,
202,
199,
4600,
63,
4435,
14,
4365,
480,
7966,
1258,
389,
16,
14,
20,
14,
19,
531,
202,
199,
504,
12698,
1258,
492,
5256,
202,
199,
646,
12698,
1258,
8065,
199,
3,
11933,
370,
402,
888,
12899,
5160,
12,
652,
1929,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
381426068/ardupilot | Tools/autotest/param_metadata/htmlemit.py | 148 | 2754 | #!/usr/bin/env python
import re
from param import *
from emit import Emit
import cgi
# Emit docs in a form acceptable to the APM wordpress docs site
class HtmlEmit(Emit):
def __init__(self):
html_fname = 'Parameters.html'
self.f = open(html_fname, mode='w')
self.preamble = '''<!-- Dyn... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
295,
199,
504,
1215,
492,
627,
199,
504,
8689,
492,
662,
1147,
199,
646,
16004,
199,
199,
3,
662,
1147,
9149,
315,
282,
1824,
14712,
370,
314,
10319,
45,
4349,
2915,
9149,
4770,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
295,
199,
504,
1215,
492,
627,
199,
504,
8689,
492,
662,
1147,
199,
646,
16004,
199,
199,
3,
662,
1147,
9149,
315,
282,
1824,
14712,
370,
314,
10319,
45,
4349,
2915,
9149,
4770,
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... |
BT-fgarbely/odoo | addons/account_budget/report/crossovered_budget_report.py | 315 | 8657 | # -*- 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... |
chadnetzer/numpy-gaurdro | numpy/linalg/setup.py | 6 | 1339 |
import sys
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_info
config = Configuration('linalg',parent_package,top_path)
config.add_data_dir('tests')
# Configure lapack_lite
lapack_info = get_... | bsd-3-clause | [
199,
646,
984,
199,
199,
318,
2897,
8,
1708,
63,
2491,
4581,
2119,
63,
515,
29,
403,
304,
272,
687,
2680,
14,
13350,
14,
9923,
63,
1974,
492,
11595,
272,
687,
2680,
14,
13350,
14,
2253,
63,
815,
492,
664,
63,
815,
272,
1101,
275... | [
646,
984,
199,
199,
318,
2897,
8,
1708,
63,
2491,
4581,
2119,
63,
515,
29,
403,
304,
272,
687,
2680,
14,
13350,
14,
9923,
63,
1974,
492,
11595,
272,
687,
2680,
14,
13350,
14,
2253,
63,
815,
492,
664,
63,
815,
272,
1101,
275,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nugget/home-assistant | homeassistant/components/apcupsd/sensor.py | 2 | 7313 | """Support for APCUPSd sensors."""
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
import homeassistant.helpers.config_validation as cv
from homeassistant.components import apcupsd
from homeassistant.const import (TEMP_CELSIUS, CONF_RESOURCES, POWER_WATT)
from homea... | apache-2.0 | [
624,
11532,
367,
437,
4222,
2160,
51,
68,
19678,
1041,
199,
646,
2050,
199,
199,
646,
30291,
465,
5236,
199,
199,
504,
8846,
14,
4608,
14,
8956,
492,
21966,
63,
10926,
199,
646,
8846,
14,
7546,
14,
888,
63,
6136,
465,
6277,
199,
5... | [
11532,
367,
437,
4222,
2160,
51,
68,
19678,
1041,
199,
646,
2050,
199,
199,
646,
30291,
465,
5236,
199,
199,
504,
8846,
14,
4608,
14,
8956,
492,
21966,
63,
10926,
199,
646,
8846,
14,
7546,
14,
888,
63,
6136,
465,
6277,
199,
504,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
all-of-us/raw-data-repository | rdr_service/alembic/versions/72365b7c0037_add_gender_identity_enums.py | 1 | 1232 | """add gender identity enums
Revision ID: 72365b7c0037
Revises: 9c957ce496bf
Create Date: 2019-06-05 08:56:34.278852
"""
import model.utils
import sqlalchemy as sa
from alembic import op
from rdr_service.participant_enums import GenderIdentity
# revision identifiers, used by Alembic.
revision = "72365b7c0037"
down_... | bsd-3-clause | [
624,
525,
24395,
8503,
28441,
199,
199,
12714,
2870,
26,
1520,
10008,
21,
66,
23,
67,
32399,
199,
497,
433,
874,
26,
1749,
67,
25926,
301,
18105,
4361,
199,
2499,
6148,
26,
20312,
13,
1690,
13,
1717,
19363,
26,
1367,
26,
1082,
14,
... | [
525,
24395,
8503,
28441,
199,
199,
12714,
2870,
26,
1520,
10008,
21,
66,
23,
67,
32399,
199,
497,
433,
874,
26,
1749,
67,
25926,
301,
18105,
4361,
199,
2499,
6148,
26,
20312,
13,
1690,
13,
1717,
19363,
26,
1367,
26,
1082,
14,
1465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
guozhangwang/kafka | tests/kafkatest/services/trogdor/network_partition_fault_spec.py | 17 | 1816 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | [
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
14857,
12378,... | [
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
14857,
12378,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gunny26/datalogger | datalogger/Test_DataLogger.py | 1 | 4699 | #!/usr/bin/python2
from __future__ import print_function
import unittest
import logging
logging.basicConfig(level=logging.INFO)
import datetime
import gzip
import json
import os
# own modules
from DataLogger import DataLogger as DataLogger
from Timeseries import Timeseries as Timeseries
from TimeseriesArray import Time... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
18,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
646,
2882,
199,
646,
2050,
199,
4806,
14,
19602,
8,
1896,
29,
4806,
14,
4531,
9,
199,
646,
2197,
199,
646,
11756,
199,
646,
2022,
199,
646,
7... | [
2647,
15,
1393,
15,
1548,
18,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
646,
2882,
199,
646,
2050,
199,
4806,
14,
19602,
8,
1896,
29,
4806,
14,
4531,
9,
199,
646,
2197,
199,
646,
11756,
199,
646,
2022,
199,
646,
747,
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... |
thaskell1/volatility | volatility/plugins/addrspaces/intel.py | 8 | 11081 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
# Copyright (C) 2004,2005,2006 4tphi Research
#
# Authors:
# {npetroni,awalters}@4tphi.net (Nick Petroni and AAron Walters)
# Michael Cohen <scudette@users.sourceforge.net>
# Mike Auty <mike.auty@gmail.com>
#
# This file is part of Volatility.
#
# Volatility ... | gpl-2.0 | [
3,
28367,
199,
3,
1898,
334,
35,
9,
10219,
13,
6965,
28367,
2752,
199,
3,
1898,
334,
35,
9,
8353,
12,
9397,
12,
7968,
841,
683,
5812,
26993,
199,
3,
199,
3,
6642,
26,
199,
3,
469,
78,
321,
454,
265,
73,
12,
10084,
31185,
93,
... | [
28367,
199,
3,
1898,
334,
35,
9,
10219,
13,
6965,
28367,
2752,
199,
3,
1898,
334,
35,
9,
8353,
12,
9397,
12,
7968,
841,
683,
5812,
26993,
199,
3,
199,
3,
6642,
26,
199,
3,
469,
78,
321,
454,
265,
73,
12,
10084,
31185,
93,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RossBrunton/django | tests/admin_ordering/tests.py | 279 | 6702 | from __future__ import unicode_literals
from django.contrib import admin
from django.contrib.admin.options import ModelAdmin
from django.contrib.auth.models import User
from django.test import RequestFactory, TestCase
from .models import (
Band, DynOrderingBandAdmin, Song, SongInlineDefaultOrdering,
SongInlin... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
2828,
492,
4628,
199,
504,
1639,
14,
2828,
14,
2113,
14,
1419,
492,
30093,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
396,
492,
... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
2828,
492,
4628,
199,
504,
1639,
14,
2828,
14,
2113,
14,
1419,
492,
30093,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
396,
492,
18638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MetrodataTeam/incubator-airflow | scripts/perf/dags/perf_dag_1.py | 44 | 1350 | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
144... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
1443,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
igemsoftware/SYSU-Software2013 | project/Python27/Lib/cookielib.py | 80 | 64452 | """HTTP cookie handling for web clients.
This module has (now fairly distant) origins in Gisle Aas' Perl module
HTTP::Cookies, from the libwww-perl library.
Docstrings, comments and debug strings in this code refer to the
attributes of the HTTP cookie system as cookie-attributes, to distinguish
them clearly from Pyth... | mit | [
624,
2856,
5494,
7252,
367,
3330,
13431,
14,
199,
199,
2765,
859,
965,
334,
2131,
28092,
590,
2917,
867,
9,
2306,
3617,
315,
598,
374,
274,
437,
305,
7,
3492,
76,
859,
199,
2856,
447,
967,
5635,
12,
687,
314,
1973,
1544,
13,
22805... | [
2856,
5494,
7252,
367,
3330,
13431,
14,
199,
199,
2765,
859,
965,
334,
2131,
28092,
590,
2917,
867,
9,
2306,
3617,
315,
598,
374,
274,
437,
305,
7,
3492,
76,
859,
199,
2856,
447,
967,
5635,
12,
687,
314,
1973,
1544,
13,
22805,
355... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
trankmichael/scipy | scipy/integrate/setup.py | 90 | 3250 | #!/usr/bin/env python
from __future__ import division, print_function, absolute_import
from os.path import join
from scipy._build_utils import numpy_nodepr_api
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
504,
636,
2443,
363,
492,
4629,
12,
870,
63,
1593,
12,
3679,
63,
646,
199,
199,
504,
747,
14,
515,
492,
4263,
199,
199,
504,
7026,
423,
1506,
63,
1208,
492,
2680,
63,
932,
2700,
63,
124... | [
2647,
15,
1393,
15,
1813,
2366,
199,
504,
636,
2443,
363,
492,
4629,
12,
870,
63,
1593,
12,
3679,
63,
646,
199,
199,
504,
747,
14,
515,
492,
4263,
199,
199,
504,
7026,
423,
1506,
63,
1208,
492,
2680,
63,
932,
2700,
63,
1246,
421... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pidydx/grr | grr/checks/sysctl_test.py | 2 | 1498 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for sysctl checks."""
from grr.lib import flags
from grr.lib import test_lib
from grr.lib.checks import checks_test_lib
from grr.parsers import linux_sysctl_parser
class SysctlTests(checks_test_lib.HostCheckTest):
@classmethod
def setUpClass(cls):
cls.L... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
2925,
367,
984,
8077,
5920,
1041,
199,
199,
504,
31118,
14,
773,
492,
3285,
199,
504,
31118,
14,
773,
492,
511,
63,
773,
199,
504,
31118,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
2925,
367,
984,
8077,
5920,
1041,
199,
199,
504,
31118,
14,
773,
492,
3285,
199,
504,
31118,
14,
773,
492,
511,
63,
773,
199,
504,
31118,
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... |
rhurkes/chasegame | venv/lib/python2.7/site-packages/pip/index.py | 45 | 40374 | """Routines related to PyPI, indexes"""
import sys
import os
import re
import mimetypes
import posixpath
from pip.log import logger
from pip.util import Inf, normalize_name, splitext, is_prerelease
from pip.exceptions import (DistributionNotFound, BestVersionAlreadyInstalled,
InstallationE... | mit | [
624,
7595,
3746,
4048,
370,
24330,
12,
10507,
624,
199,
199,
646,
984,
199,
646,
747,
199,
646,
295,
199,
646,
13290,
199,
646,
15454,
199,
199,
504,
7305,
14,
793,
492,
2512,
199,
504,
7305,
14,
1974,
492,
1010,
70,
12,
7666,
63,... | [
7595,
3746,
4048,
370,
24330,
12,
10507,
624,
199,
199,
646,
984,
199,
646,
747,
199,
646,
295,
199,
646,
13290,
199,
646,
15454,
199,
199,
504,
7305,
14,
793,
492,
2512,
199,
504,
7305,
14,
1974,
492,
1010,
70,
12,
7666,
63,
354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vtraag/leidenalg | tests/test_VertexPartition.py | 1 | 8491 | import unittest
import igraph as ig
import leidenalg
import random
from copy import deepcopy
from ddt import ddt, data, unpack
#%%
def name_object(obj, name):
obj.__name__ = name
return obj
graphs = [
###########################################################################
# Zachary karate network
... | gpl-3.0 | [
646,
2882,
199,
646,
284,
2180,
465,
284,
71,
199,
646,
1026,
9281,
6731,
199,
646,
2196,
199,
504,
1331,
492,
14800,
199,
199,
504,
366,
3583,
492,
366,
3583,
12,
666,
12,
7787,
199,
199,
3,
8530,
199,
199,
318,
536,
63,
785,
8... | [
2882,
199,
646,
284,
2180,
465,
284,
71,
199,
646,
1026,
9281,
6731,
199,
646,
2196,
199,
504,
1331,
492,
14800,
199,
199,
504,
366,
3583,
492,
366,
3583,
12,
666,
12,
7787,
199,
199,
3,
8530,
199,
199,
318,
536,
63,
785,
8,
111... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
azverkan/scons | test/MSVS/vs-6.0-files.py | 5 | 2715 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
636,
32324,
5716,
363,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
199,
3,
282,
1331,
402,
642,
2032,
436,
4568,
3794,
1584,
334,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
636,
32324,
5716,
363,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
199,
3,
282,
1331,
402,
642,
2032,
436,
4568,
3794,
1584,
334,
1589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wdv4758h/ZipPy | lib-python/3/test/test_getopt.py | 173 | 6968 | # test_getopt.py
# David Goodger <dgoodger@bigfoot.com> 2000-08-19
from test.support import verbose, run_doctest, run_unittest, EnvironmentVarGuard
import unittest
import getopt
sentinel = object()
class GetoptTests(unittest.TestCase):
def setUp(self):
self.env = EnvironmentVarGuard()
if "POSIXL... | bsd-3-clause | [
3,
511,
63,
18907,
14,
647,
199,
3,
20232,
22311,
836,
665,
68,
8302,
836,
32,
5076,
11407,
14,
957,
30,
12293,
13,
2036,
13,
1167,
199,
199,
504,
511,
14,
4058,
492,
3376,
12,
1255,
63,
11390,
12,
1255,
63,
2796,
12,
9711,
5894... | [
511,
63,
18907,
14,
647,
199,
3,
20232,
22311,
836,
665,
68,
8302,
836,
32,
5076,
11407,
14,
957,
30,
12293,
13,
2036,
13,
1167,
199,
199,
504,
511,
14,
4058,
492,
3376,
12,
1255,
63,
11390,
12,
1255,
63,
2796,
12,
9711,
5894,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
joshfriend/memegen | tests/test_routes_templates.py | 1 | 2217 | # pylint: disable=unused-variable
# pylint: disable=misplaced-comparison-constant
from .conftest import load
def describe_get():
def when_default_text(client):
response = client.get("/templates/iw")
assert 200 == response.status_code
assert dict(
name="Insanity Wolf",
... | mit | [
3,
4287,
26,
3507,
29,
8618,
13,
1975,
199,
3,
4287,
26,
3507,
29,
1292,
2778,
68,
13,
8547,
13,
4083,
199,
199,
504,
1275,
22454,
492,
2248,
421,
199,
318,
13743,
63,
362,
837,
339,
347,
1380,
63,
885,
63,
505,
8,
1258,
304,
... | [
4287,
26,
3507,
29,
8618,
13,
1975,
199,
3,
4287,
26,
3507,
29,
1292,
2778,
68,
13,
8547,
13,
4083,
199,
199,
504,
1275,
22454,
492,
2248,
421,
199,
318,
13743,
63,
362,
837,
339,
347,
1380,
63,
885,
63,
505,
8,
1258,
304,
267,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
markeTIC/OCB | addons/account/tests/test_account_move_closed_period.py | 136 | 1615 | from datetime import date
from openerp.tests.common import TransactionCase
from openerp.osv.orm import except_orm
class TestPeriodState(TransactionCase):
"""
Forbid creation of Journal Entries for a closed period.
"""
def setUp(self):
super(TestPeriodState, self).setUp()
cr, uid = sel... | agpl-3.0 | [
504,
2197,
492,
1434,
199,
199,
504,
5166,
14,
2219,
14,
2330,
492,
18244,
1538,
199,
504,
5166,
14,
4795,
14,
1025,
492,
871,
63,
1025,
199,
199,
533,
1379,
15518,
2223,
8,
10161,
1538,
304,
272,
408,
272,
2104,
17949,
7143,
402,
... | [
2197,
492,
1434,
199,
199,
504,
5166,
14,
2219,
14,
2330,
492,
18244,
1538,
199,
504,
5166,
14,
4795,
14,
1025,
492,
871,
63,
1025,
199,
199,
533,
1379,
15518,
2223,
8,
10161,
1538,
304,
272,
408,
272,
2104,
17949,
7143,
402,
22142,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ahmednuaman/django-angular | setup.py | 13 | 1246 | import os
from setuptools import setup, find_packages
from djangular import __version__
DESCRIPTION = 'Let Django play well with AngularJS'
CLASSIFIERS = [
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operati... | mit | [
646,
747,
199,
504,
9116,
492,
3272,
12,
2342,
63,
5154,
199,
504,
366,
851,
2238,
492,
636,
1023,
363,
199,
199,
17705,
275,
283,
15314,
5634,
5232,
5521,
543,
1626,
71,
2238,
11378,
7,
199,
199,
31163,
1976,
3960,
275,
359,
272,
... | [
747,
199,
504,
9116,
492,
3272,
12,
2342,
63,
5154,
199,
504,
366,
851,
2238,
492,
636,
1023,
363,
199,
199,
17705,
275,
283,
15314,
5634,
5232,
5521,
543,
1626,
71,
2238,
11378,
7,
199,
199,
31163,
1976,
3960,
275,
359,
272,
283,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zahanm/foodpedia | django/conf/locale/sk/formats.py | 232 | 1288 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j. F Y'
TIME_FORMAT = 'G:i:s'
DATETIME_FORMAT = 'j. F Y G:i:s'
YEAR_MONTH... | bsd-3-clause | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
1434,
1475,
6302,
12,
199,
3,
1937,
1455,
921,
475... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
1434,
1475,
6302,
12,
199,
3,
1937,
1455,
921,
4757,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Duke-NSOE/GeoHAT | GeoHat_V10/Scripts/networkx/tests/benchmark.py | 37 | 10636 | from timeit import Timer
# This is gratefully modeled after the benchmarks found in
# the numpy svn repository. http://svn.scipy.org/svn/numpy/trunk
class Benchmark(object):
"""
Benchmark a method or simple bit of code using different Graph classes.
If the test code is the same for each graph class, the... | cc0-1.0 | [
504,
900,
390,
492,
22287,
199,
199,
3,
961,
365,
486,
1866,
5836,
818,
1146,
2410,
314,
12338,
83,
1911,
315,
221,
199,
3,
314,
2680,
11327,
7611,
14,
221,
1455,
921,
6836,
14,
14248,
14,
1308,
15,
6836,
15,
4714,
15,
13409,
199,... | [
900,
390,
492,
22287,
199,
199,
3,
961,
365,
486,
1866,
5836,
818,
1146,
2410,
314,
12338,
83,
1911,
315,
221,
199,
3,
314,
2680,
11327,
7611,
14,
221,
1455,
921,
6836,
14,
14248,
14,
1308,
15,
6836,
15,
4714,
15,
13409,
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... |
aquavitae/rst2pdf | rst2pdf/tests/testcases/sphinx-issue284/sphinx/conf.py | 4 | 8455 | # -*- coding: utf-8 -*-
#
# Foobar documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 11 10:37:39 2009.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
8024,
1700,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
644,
379,
3091,
86,
4119,
1616,
26,
1401,
26,
1355,
8937,
14,
199,
3,
199,
3,
961,
570,
36... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
8024,
1700,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
644,
379,
3091,
86,
4119,
1616,
26,
1401,
26,
1355,
8937,
14,
199,
3,
199,
3,
961,
570,
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... |
IEMLdev/ieml-api | ieml/usl/decoration/path.py | 2 | 20479 | from collections import defaultdict
from itertools import chain
from ieml.commons import OrderedEnum, monitor_decorator
from ieml.dictionary.script import Script
from ieml.usl.constants import FLEXION_SCRIPTS
from ieml.usl.syntagmatic_function import SyntagmaticFunction, SyntagmaticRole
from ieml.usl.usl import USL
fr... | gpl-3.0 | [
504,
5055,
492,
10018,
199,
504,
7975,
492,
6036,
199,
199,
504,
13446,
757,
14,
2330,
83,
492,
17649,
5081,
12,
8372,
63,
11547,
199,
504,
13446,
757,
14,
9086,
14,
1579,
492,
14914,
199,
504,
13446,
757,
14,
527,
76,
14,
5559,
4... | [
5055,
492,
10018,
199,
504,
7975,
492,
6036,
199,
199,
504,
13446,
757,
14,
2330,
83,
492,
17649,
5081,
12,
8372,
63,
11547,
199,
504,
13446,
757,
14,
9086,
14,
1579,
492,
14914,
199,
504,
13446,
757,
14,
527,
76,
14,
5559,
492,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Suninus/zulip | analytics/management/commands/user_stats.py | 113 | 1609 | from __future__ import absolute_import
import datetime
import pytz
from django.core.management.base import BaseCommand
from zerver.models import UserProfile, Realm, Stream, Message
class Command(BaseCommand):
help = "Generate statistics on user activity."
def add_arguments(self, parser):
parser.add_... | apache-2.0 | [
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
199,
646,
2197,
199,
646,
15444,
199,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
199,
504,
19959,
14,
992,
492,
19037,
12,
27715,
12,
8271,
12,
6430,
199,
199,
533,
5817... | [
636,
2443,
363,
492,
3679,
63,
646,
199,
199,
646,
2197,
199,
646,
15444,
199,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
199,
504,
19959,
14,
992,
492,
19037,
12,
27715,
12,
8271,
12,
6430,
199,
199,
533,
5817,
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... |
DashaChuk/PyMySQL | pymysql/cursors.py | 7 | 15432 | # -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import
import re
import warnings
from ._compat import range_type, text_type, PY2
from . import err
#: Regular expression for :meth:`Cursor.executemany`.
#: executemany only suports simple bulk insert.
#: You can use it to load large dataset.
RE... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
3679,
63,
646,
199,
646,
295,
199,
646,
3598,
199,
199,
504,
13653,
5819,
492,
1425,
63,
466,
12,
1318,
63,
466,
12,
7843,
18,
199,
199,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
3679,
63,
646,
199,
646,
295,
199,
646,
3598,
199,
199,
504,
13653,
5819,
492,
1425,
63,
466,
12,
1318,
63,
466,
12,
7843,
18,
199,
199,
504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bitemyapp/pgcli | tests/utils.py | 17 | 2002 | import pytest
import psycopg2
import psycopg2.extras
from pgcli.main import format_output
from pgcli.pgexecute import register_json_typecasters
# TODO: should this be somehow be divined from environment?
POSTGRES_USER, POSTGRES_HOST = 'postgres', 'localhost'
def db_connection(dbname=None):
conn = psycopg2.connec... | bsd-3-clause | [
646,
4613,
199,
646,
15492,
18,
199,
646,
15492,
18,
14,
9975,
199,
504,
10275,
2764,
14,
973,
492,
1475,
63,
1199,
199,
504,
10275,
2764,
14,
80,
2145,
825,
938,
492,
2274,
63,
1001,
63,
466,
9765,
878,
199,
199,
3,
3254,
26,
1... | [
4613,
199,
646,
15492,
18,
199,
646,
15492,
18,
14,
9975,
199,
504,
10275,
2764,
14,
973,
492,
1475,
63,
1199,
199,
504,
10275,
2764,
14,
80,
2145,
825,
938,
492,
2274,
63,
1001,
63,
466,
9765,
878,
199,
199,
3,
3254,
26,
1077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
victormlourenco/red_kernel_lge_v500 | Documentation/networking/cxacru-cf.py | 14668 | 1626 | #!/usr/bin/env python
# Copyright 2009 Simon Arlott
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program i... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
8937,
10751,
265,
1952,
1653,
84,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
652,
199,
3,
1334,
314,
2895,
402,
314,
1664,
1696,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
8937,
10751,
265,
1952,
1653,
84,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
652,
199,
3,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kwlzn/pants | src/python/pants/backend/jvm/tasks/jvm_compile/execution_graph.py | 23 | 11428 | # 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 Queue as queu... | 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... |
rasertux/importacsv | vendor/mysql/connector/django/features.py | 22 | 4331 | # MySQL Connector/Python - MySQL driver written in Python.
# New file added for Django 1.8
import django
if django.VERSION >= (1, 8):
from django.db.backends.base.features import BaseDatabaseFeatures
else:
from django.db.backends import BaseDatabaseFeatures
from django.utils.functional import cached_property
... | gpl-3.0 | [
3,
11200,
13482,
2406,
15,
4718,
446,
11200,
5253,
5313,
315,
2018,
14,
199,
199,
3,
7053,
570,
3483,
367,
5634,
413,
14,
24,
199,
199,
646,
1639,
199,
692,
1639,
14,
4612,
2356,
334,
17,
12,
1695,
304,
272,
687,
1639,
14,
697,
... | [
11200,
13482,
2406,
15,
4718,
446,
11200,
5253,
5313,
315,
2018,
14,
199,
199,
3,
7053,
570,
3483,
367,
5634,
413,
14,
24,
199,
199,
646,
1639,
199,
692,
1639,
14,
4612,
2356,
334,
17,
12,
1695,
304,
272,
687,
1639,
14,
697,
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... |
mustafat/odoo-1 | addons/account/report/account_balance.py | 198 | 5905 | # -*- 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... |
ioanpocol/superdesk-core | superdesk/storage/amazon_media_storage.py | 2 | 12253 | # -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014, 2015, 2016 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
27,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
17897,
10368,
14,
199,
3,
199,
3,
1898,
6171,
12,
6927,
12,
6900,
12,
7800,
5800,
4991,
1315,
14,
85,
14,
436,
8417,
14,
199,
3,
199,
3,
21... | [
1882,
2803,
26,
2774,
13,
24,
27,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
17897,
10368,
14,
199,
3,
199,
3,
1898,
6171,
12,
6927,
12,
6900,
12,
7800,
5800,
4991,
1315,
14,
85,
14,
436,
8417,
14,
199,
3,
199,
3,
2104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
direvus/ansible | lib/ansible/modules/network/aci/aci_interface_policy_fc.py | 10 | 6142 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 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_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
9685,
503,
4178,
921,
1544,
14,
3689,
14,
1308,
15,
2383,
15,
11692,
13,
19,
14,
1... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
9685,
503,
4178,
921,
1544,
14,
3689,
14,
1308,
15,
2383,
15,
11692,
13,
19,
14,
16,
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... |
zsoltdudas/lis-tempest | tempest/tests/test_hacking.py | 3 | 7788 | # Copyright 2014 Matthew Treinish
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | [
3,
1898,
6927,
18619,
29640,
377,
264,
262,
2453,
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... | [
1898,
6927,
18619,
29640,
377,
264,
262,
2453,
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,
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... |
FlaPer87/django-nonrel | tests/regressiontests/makemessages/extraction.py | 14 | 3452 | import os
import re
import shutil
from django.test import TestCase
from django.core import management
LOCALE='de'
class ExtractorTests(TestCase):
PO_FILE='locale/%s/LC_MESSAGES/django.po' % LOCALE
def setUp(self):
self._cwd = os.getcwd()
self.test_dir = os.path.abspath(os.path.dirname(__file... | bsd-3-clause | [
646,
747,
199,
646,
295,
199,
646,
5145,
199,
504,
1639,
14,
396,
492,
7640,
199,
504,
1639,
14,
1018,
492,
10041,
199,
199,
20828,
534,
271,
7,
199,
199,
533,
18925,
2925,
8,
1746,
304,
339,
3625,
63,
3817,
534,
5508,
3149,
83,
... | [
747,
199,
646,
295,
199,
646,
5145,
199,
504,
1639,
14,
396,
492,
7640,
199,
504,
1639,
14,
1018,
492,
10041,
199,
199,
20828,
534,
271,
7,
199,
199,
533,
18925,
2925,
8,
1746,
304,
339,
3625,
63,
3817,
534,
5508,
3149,
83,
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... |
JIC-CSB/dtoolcore | docs/source/conf.py | 1 | 5148 | # -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
# If extensi... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
22711,
342,
68,
543,
314,
1453,
2082,
663,
370,
2399,
199,
3,
3035,
2935,
14,
199,
3,
199,
3,
3390,
626,
440,
1006,
3962,
2897,
1338,
787,
3451,
315,
642,
1... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
22711,
342,
68,
543,
314,
1453,
2082,
663,
370,
2399,
199,
3,
3035,
2935,
14,
199,
3,
199,
3,
3390,
626,
440,
1006,
3962,
2897,
1338,
787,
3451,
315,
642,
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... |
lucasosouza/berkeleyAI | tutorial/testParser.py | 49 | 2990 | # testParser.py
# -------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu... | mit | [
3,
511,
2842,
14,
647,
199,
3,
3001,
9858,
199,
3,
491,
530,
25843,
17064,
26,
221,
2047,
787,
2867,
370,
675,
503,
12247,
3520,
11336,
367,
199,
3,
3988,
947,
6279,
12901,
2741,
626,
334,
17,
9,
1265,
886,
440,
11207,
503,
2780,
... | [
511,
2842,
14,
647,
199,
3,
3001,
9858,
199,
3,
491,
530,
25843,
17064,
26,
221,
2047,
787,
2867,
370,
675,
503,
12247,
3520,
11336,
367,
199,
3,
3988,
947,
6279,
12901,
2741,
626,
334,
17,
9,
1265,
886,
440,
11207,
503,
2780,
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... |
wbsavage/shinken | shinken/modules/logstore_null.py | 3 | 2366 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2012:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redis... | agpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
35,
9,
8937,
13,
7409,
26,
199,
3,
259,
598,
371,
397,
1603,
69,
290,
12,
302,
439,
285,
9405,
32,
6799,
14,
957,
199,
... | [
2647,
15,
1393,
15,
1548,
199,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
35,
9,
8937,
13,
7409,
26,
199,
3,
259,
598,
371,
397,
1603,
69,
290,
12,
302,
439,
285,
9405,
32,
6799,
14,
957,
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... |
aswinpj/Pygments | pygments/lexers/_csound_builtins.py | 23 | 21643 | # -*- coding: utf-8 -*-
"""
pygments.lexers._csound_builtins
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
# Opcodes in Csound 6.05 from
# csound --list-opcodes
# except
# cggoto <http://www.csounds.... | bsd-2-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12245,
423,
1259,
1034,
63,
10372,
272,
18294,
9753,
339,
520,
7307,
26,
1898,
8315,
13,
7806,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
272,
520,
1682,
26,
6289,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12245,
423,
1259,
1034,
63,
10372,
272,
18294,
9753,
339,
520,
7307,
26,
1898,
8315,
13,
7806,
701,
314,
14493,
8099,
12,
1937,
10610,
14,
272,
520,
1682,
26,
6289,
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... |
nomadcube/scikit-learn | examples/covariance/plot_sparse_cov.py | 300 | 5078 | """
======================================
Sparse inverse covariance estimation
======================================
Using the GraphLasso estimator to learn a covariance and sparse precision
from a small number of samples.
To estimate a probabilistic model (e.g. a Gaussian model), estimating the
precision matrix, t... | bsd-3-clause | [
624,
199,
2486,
23476,
199,
8629,
11484,
13263,
27156,
199,
2486,
23476,
199,
199,
10369,
314,
11513,
27537,
8943,
370,
12537,
282,
13263,
436,
5178,
7151,
199,
504,
282,
7425,
1329,
402,
5845,
14,
199,
199,
1378,
14497,
282,
5128,
1467... | [
199,
2486,
23476,
199,
8629,
11484,
13263,
27156,
199,
2486,
23476,
199,
199,
10369,
314,
11513,
27537,
8943,
370,
12537,
282,
13263,
436,
5178,
7151,
199,
504,
282,
7425,
1329,
402,
5845,
14,
199,
199,
1378,
14497,
282,
5128,
14677,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Jimmy-Morzaria/scikit-learn | sklearn/utils/tests/test_murmurhash.py | 261 | 2836 | # Author: Olivier Grisel <olivier.grisel@ensta.org>
#
# License: BSD 3 clause
import numpy as np
from sklearn.externals.six import b, u
from sklearn.utils.murmurhash import murmurhash3_32
from numpy.testing import assert_array_almost_equal
from numpy.testing import assert_array_equal
from nose.tools import assert_equa... | bsd-3-clause | [
3,
6529,
26,
593,
317,
26645,
598,
322,
5891,
665,
23711,
26645,
14,
7928,
5891,
32,
287,
1207,
14,
1308,
30,
199,
3,
199,
3,
844,
26,
6289,
650,
8502,
199,
199,
646,
2680,
465,
980,
199,
504,
6357,
14,
24688,
14,
4174,
492,
330... | [
6529,
26,
593,
317,
26645,
598,
322,
5891,
665,
23711,
26645,
14,
7928,
5891,
32,
287,
1207,
14,
1308,
30,
199,
3,
199,
3,
844,
26,
6289,
650,
8502,
199,
199,
646,
2680,
465,
980,
199,
504,
6357,
14,
24688,
14,
4174,
492,
330,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
romankagan/DDBWorkbench | python/lib/Lib/encodings/cp850.py | 593 | 34361 | """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP850.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_map)
def decode(self,input,errors='strict'):
... | apache-2.0 | [
624,
2018,
17660,
12340,
13732,
4046,
687,
283,
27839,
4149,
15,
17233,
51,
2161,
15,
4222,
15,
2890,
21419,
14,
17715,
7,
543,
486,
2143,
67,
14,
647,
14,
199,
199,
624,
23662,
199,
199,
646,
6010,
199,
199,
5680,
13732,
15913,
199... | [
2018,
17660,
12340,
13732,
4046,
687,
283,
27839,
4149,
15,
17233,
51,
2161,
15,
4222,
15,
2890,
21419,
14,
17715,
7,
543,
486,
2143,
67,
14,
647,
14,
199,
199,
624,
23662,
199,
199,
646,
6010,
199,
199,
5680,
13732,
15913,
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... |
PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame | Chapter 12/heavyfogtank.py.py | 3 | 2293 | from math import radians
from OpenGL.GL import *
from OpenGL.GLU import *
import pygame
from pygame.locals import *
# Import the Model3D class
import model3d
SCREEN_SIZE = (800, 600)
def resize(width, height):
glViewport(0, 0, width, height)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
gluPerspect... | mit | [
504,
3473,
492,
26874,
199,
199,
504,
24374,
14,
2226,
492,
627,
199,
504,
24374,
14,
20935,
492,
627,
199,
199,
646,
9193,
199,
504,
9193,
14,
9350,
492,
627,
199,
199,
3,
3161,
314,
5822,
19,
36,
1021,
199,
646,
1402,
19,
68,
... | [
3473,
492,
26874,
199,
199,
504,
24374,
14,
2226,
492,
627,
199,
504,
24374,
14,
20935,
492,
627,
199,
199,
646,
9193,
199,
504,
9193,
14,
9350,
492,
627,
199,
199,
3,
3161,
314,
5822,
19,
36,
1021,
199,
646,
1402,
19,
68,
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... |
freedomtan/tensorflow | tensorflow/python/platform/benchmark_test.py | 17 | 2860 | # Copyright 2019 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,
20312,
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,
20312,
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,
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... |
hfp/tensorflow-xsmm | tensorflow/contrib/boosted_trees/estimator_batch/custom_loss_head.py | 87 | 3030 | # 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... |
SaschaMester/delicium | tools/telemetry/telemetry/internal/util/path.py | 13 | 1600 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
from telemetry.core import util
# TODO(dtu): Move these functions from core.util to here.
GetBaseDir = util.GetBaseDir
GetTelemetryDir = util.Ge... | bsd-3-clause | [
3,
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
646,
747,
199,
199,
504,
... | [
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
646,
747,
199,
199,
504,
17298... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
alvarofierroclavero/scikit-learn | sklearn/ensemble/forest.py | 176 | 62555 | """Forest of trees-based ensemble methods
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls the ... | bsd-3-clause | [
624,
21668,
402,
14416,
13,
6788,
19965,
3102,
199,
199,
52,
526,
261,
3102,
2387,
2196,
11257,
10329,
436,
30503,
590,
2196,
1759,
14416,
14,
199,
199,
1918,
859,
5523,
365,
314,
2569,
26,
199,
199,
13,
710,
1124,
1563,
21668,
1040,
... | [
21668,
402,
14416,
13,
6788,
19965,
3102,
199,
199,
52,
526,
261,
3102,
2387,
2196,
11257,
10329,
436,
30503,
590,
2196,
1759,
14416,
14,
199,
199,
1918,
859,
5523,
365,
314,
2569,
26,
199,
199,
13,
710,
1124,
1563,
21668,
1040,
1300,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
alex/boto | boto/rds/parametergroup.py | 170 | 7037 | # Copyright (c) 2006-2009 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, modi... | mit | [
3,
1898,
334,
67,
9,
8315,
13,
8664,
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,
436,
4... | [
1898,
334,
67,
9,
8315,
13,
8664,
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,
436,
4568,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jlegendary/nupic | examples/prediction/experiments/confidenceTest/1/description.py | 17 | 2027 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | gpl-3.0 | [
3,
20359,
199,
3,
22783,
16078,
367,
8883,
24024,
27799,
334,
21988,
26769,
9,
199,
3,
1898,
334,
35,
9,
6171,
12,
22783,
12,
3277,
14,
221,
4158,
1265,
1172,
376,
25025,
199,
3,
543,
22783,
12,
3277,
2020,
367,
282,
7396,
4190,
3... | [
20359,
199,
3,
22783,
16078,
367,
8883,
24024,
27799,
334,
21988,
26769,
9,
199,
3,
1898,
334,
35,
9,
6171,
12,
22783,
12,
3277,
14,
221,
4158,
1265,
1172,
376,
25025,
199,
3,
543,
22783,
12,
3277,
2020,
367,
282,
7396,
4190,
367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SCIP-Interfaces/PySCIPOpt | examples/unfinished/portfolio_soco.py | 2 | 2434 | """
portfolio_soco.py: modified markowitz model for portfolio optimization.
Approach: use second-order cone optimization.
Copyright (c) by Joao Pedro PEDROSO, Masahiro MURAMATSU and Mikio KUBO, 2012
"""
from pyscipopt import Model, quicksum, multidict
import math
def phi_inv(p):
"""phi_inv: inverse of gaussian ... | mit | [
624,
199,
719,
27165,
63,
1152,
331,
14,
647,
26,
221,
6042,
2216,
583,
23751,
1402,
367,
1844,
27165,
13712,
14,
199,
199,
25923,
1225,
26,
675,
3499,
13,
1648,
286,
368,
13712,
14,
199,
199,
7384,
334,
67,
9,
701,
7135,
8035,
51... | [
199,
719,
27165,
63,
1152,
331,
14,
647,
26,
221,
6042,
2216,
583,
23751,
1402,
367,
1844,
27165,
13712,
14,
199,
199,
25923,
1225,
26,
675,
3499,
13,
1648,
286,
368,
13712,
14,
199,
199,
7384,
334,
67,
9,
701,
7135,
8035,
510,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yosshy/nova | nova/tests/unit/cells/test_cells_utils.py | 9 | 7506 | # Copyright (c) 2012 Rackspace Hosting
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | apache-2.0 | [
3,
1898,
334,
67,
9,
6029,
32679,
10891,
316,
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,
... | [
1898,
334,
67,
9,
6029,
32679,
10891,
316,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.