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 |
|---|---|---|---|---|---|---|---|---|
potatolondon/django-mediagenerator | mediagenerator/utils.py | 1 | 4864 | import functools
import threading
from . import settings as media_settings
from .settings import (GLOBAL_MEDIA_DIRS, PRODUCTION_MEDIA_URL,
IGNORE_APP_MEDIA_DIRS, MEDIA_GENERATORS, DEV_MEDIA_URL,
GENERATED_MEDIA_NAMES_MODULE)
from django.conf import settings
from django.core.exceptions import ImproperlyConfigure... | bsd-3-clause | [
646,
9143,
199,
646,
5796,
199,
504,
1275,
492,
2202,
465,
5898,
63,
1751,
199,
504,
1275,
1751,
492,
334,
13808,
63,
13669,
63,
14455,
12,
3611,
4980,
5430,
63,
13669,
63,
2632,
12,
272,
27499,
5788,
63,
7121,
63,
13669,
63,
14455,... | [
9143,
199,
646,
5796,
199,
504,
1275,
492,
2202,
465,
5898,
63,
1751,
199,
504,
1275,
1751,
492,
334,
13808,
63,
13669,
63,
14455,
12,
3611,
4980,
5430,
63,
13669,
63,
2632,
12,
272,
27499,
5788,
63,
7121,
63,
13669,
63,
14455,
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... |
erdc/proteus | proteus/tests/surface_tension/rising_bubble_rans3p/pressure_n.py | 1 | 1214 | from __future__ import absolute_import
from proteus import *
from proteus.default_n import *
try:
from .pressure_p import *
except:
from pressure_p import *
triangleOptions = triangleOptions
femSpaces = {0:pbasis}
stepController=FixedStep
#matrix type
numericalFluxType = NumericalFlux.ConstantAdvection_exteri... | mit | [
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
504,
557,
266,
527,
492,
627,
199,
504,
557,
266,
527,
14,
885,
63,
78,
492,
627,
199,
893,
26,
272,
687,
1275,
21999,
63,
80,
492,
627,
199,
2590,
26,
272,
687,
25471,
63,
80,
492... | [
636,
2443,
363,
492,
3679,
63,
646,
199,
504,
557,
266,
527,
492,
627,
199,
504,
557,
266,
527,
14,
885,
63,
78,
492,
627,
199,
893,
26,
272,
687,
1275,
21999,
63,
80,
492,
627,
199,
2590,
26,
272,
687,
25471,
63,
80,
492,
627... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kxliugang/edx-platform | lms/djangoapps/courseware/migrations/0007_allow_null_version_in_history.py | 114 | 7638 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'StudentModuleHistory.version'
db.alter_column('courseware_studentmodulehistory', 'version... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
2197,
199,
504,
12919,
14,
697,
492,
1592,
199,
504,
12919,
14,
86,
18,
492,
24765,
199,
504,
1639,
14,
697,
492,
1709,
421,
199,
533,
12090,
8,
24822,
304,
339,
347,
17465,
8,
27... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
2197,
199,
504,
12919,
14,
697,
492,
1592,
199,
504,
12919,
14,
86,
18,
492,
24765,
199,
504,
1639,
14,
697,
492,
1709,
421,
199,
533,
12090,
8,
24822,
304,
339,
347,
17465,
8,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bnbowman/HlaTools | src/pbhla/fasta/subset_sequences.py | 1 | 1114 | #! /usr/bin/env python
import sys
from pbcore.io.FastaIO import FastaReader, FastaWriter
from pbhla.fasta.utils import write_fasta
def subset_sequences( fasta_file, summary_file, output_file ):
seq_ids = identify_sequences( summary_file )
sequences = subset_sequence_records( fasta_file, seq_ids )
write_f... | bsd-3-clause | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
984,
199,
199,
504,
10446,
1018,
14,
2308,
14,
1906,
1207,
2090,
492,
10859,
1207,
5929,
12,
10859,
1207,
6261,
199,
504,
10446,
72,
416,
14,
20309,
14,
1208,
492,
2218,
63,... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
984,
199,
199,
504,
10446,
1018,
14,
2308,
14,
1906,
1207,
2090,
492,
10859,
1207,
5929,
12,
10859,
1207,
6261,
199,
504,
10446,
72,
416,
14,
20309,
14,
1208,
492,
2218,
63,
20309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
harshita-gupta/Harvard-FRSEM-Catalog-2016-17 | flask/lib/python2.7/site-packages/sqlalchemy/testing/plugin/plugin_base.py | 7 | 17335 | # plugin/plugin_base.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Testing extensions.
this module is designed to work as a testing-framework... | mit | [
3,
3589,
15,
2718,
63,
1095,
14,
647,
199,
3,
1898,
334,
35,
9,
11811,
13,
9261,
314,
14303,
11462,
436,
8417,
199,
3,
665,
3239,
10610,
570,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
14303,
436,
365,
14286,
1334,
199,
3,
... | [
3589,
15,
2718,
63,
1095,
14,
647,
199,
3,
1898,
334,
35,
9,
11811,
13,
9261,
314,
14303,
11462,
436,
8417,
199,
3,
665,
3239,
10610,
570,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
14303,
436,
365,
14286,
1334,
199,
3,
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... |
LoHChina/nova | nova/tests/functional/v3/test_used_limits.py | 36 | 1457 | # Copyright 2012 Nebula, Inc.
# Copyright 2013 IBM Corp.
#
# 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 | [
3,
1898,
6029,
653,
2871,
7586,
12,
3277,
14,
199,
3,
1898,
6171,
26202,
22304,
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,... | [
1898,
6029,
653,
2871,
7586,
12,
3277,
14,
199,
3,
1898,
6171,
26202,
22304,
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,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
spark-test/spark | python/pyspark/sql/tests/test_column.py | 4 | 7120 | # -*- encoding: utf-8 -*-
#
# 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 ... | apache-2.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wanglongqi/sympy | sympy/combinatorics/permutations.py | 40 | 77752 | from __future__ import print_function, division
import random
from collections import defaultdict
from sympy.core import Basic
from sympy.core.compatibility import is_sequence, reduce, range
from sympy.utilities.iterables import (flatten, has_variety, minlex,
has_dups, runs)
from sympy.polys.polytools import lcm
... | bsd-3-clause | [
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
199,
646,
2196,
199,
504,
5055,
492,
10018,
199,
199,
504,
5840,
14,
1018,
492,
10082,
199,
504,
5840,
14,
1018,
14,
15390,
492,
365,
63,
4041,
12,
7114,
12,
1425,
199,
504,
... | [
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
199,
646,
2196,
199,
504,
5055,
492,
10018,
199,
199,
504,
5840,
14,
1018,
492,
10082,
199,
504,
5840,
14,
1018,
14,
15390,
492,
365,
63,
4041,
12,
7114,
12,
1425,
199,
504,
5840,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
run2/citytour | 4symantec/Lib/encodings/cp861.py | 593 | 34889 | """ Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP861.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'):
... | mit | [
624,
2018,
17660,
12340,
13732,
4046,
687,
283,
27839,
4149,
15,
17233,
51,
2161,
15,
4222,
15,
2890,
16253,
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,
16253,
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... |
dedalusdev/docker-registry | tests/mock_s3.py | 35 | 1940 | # -*- coding: utf-8 -*-
'''Monkeypatch s3 Storage preventing parallel key stream read in unittesting.
It is called from lib/storage/s3'''
import six
from docker_registry.core import exceptions
import docker_registry.drivers.s3 as s3
from docker_registry.testing import utils
@six.add_metaclass(utils.monkeypatch_... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
6671,
498,
2068,
308,
19,
10533,
7981,
316,
9861,
790,
2547,
1586,
315,
2882,
316,
14,
2043,
2779,
365,
2797,
687,
1973,
15,
3494,
15,
83,
19,
2344,
199,
199,
646,
3816,
199,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
6671,
498,
2068,
308,
19,
10533,
7981,
316,
9861,
790,
2547,
1586,
315,
2882,
316,
14,
2043,
2779,
365,
2797,
687,
1973,
15,
3494,
15,
83,
19,
2344,
199,
199,
646,
3816,
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... |
wiki-ai/revscoring | revscoring/scoring/models/util.py | 2 | 1246 | import json
import numpy
def normalize(v):
if isinstance(v, numpy.bool_):
return bool(v)
elif isinstance(v, numpy.ndarray):
return [normalize(item) for item in v]
elif v == numpy.NaN:
return "NaN"
elif v == numpy.NINF:
return "-Infinity"
elif v == numpy.PINF:
... | mit | [
646,
2022,
199,
199,
646,
2680,
421,
199,
318,
7666,
8,
86,
304,
272,
340,
1228,
8,
86,
12,
2680,
14,
2245,
7822,
267,
372,
2155,
8,
86,
9,
272,
916,
1228,
8,
86,
12,
2680,
14,
8237,
304,
267,
372,
359,
7721,
8,
1053,
9,
367... | [
2022,
199,
199,
646,
2680,
421,
199,
318,
7666,
8,
86,
304,
272,
340,
1228,
8,
86,
12,
2680,
14,
2245,
7822,
267,
372,
2155,
8,
86,
9,
272,
916,
1228,
8,
86,
12,
2680,
14,
8237,
304,
267,
372,
359,
7721,
8,
1053,
9,
367,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nhenezi/kuma | vendor/packages/html5lib/src/html5lib/filters/optionaltags.py | 129 | 10415 | import _base
class Filter(_base.Filter):
def slider(self):
previous1 = previous2 = None
for token in self.source:
if previous1 is not None:
yield previous2, previous1, token
previous2 = previous1
previous1 = token
yield previous2, previous... | mpl-2.0 | [
646,
485,
1095,
199,
199,
533,
9388,
1547,
1095,
14,
4131,
304,
272,
347,
31608,
8,
277,
304,
267,
4136,
17,
275,
4136,
18,
275,
488,
267,
367,
1526,
315,
291,
14,
1365,
26,
288,
340,
4136,
17,
365,
440,
488,
26,
355,
1995,
4136... | [
485,
1095,
199,
199,
533,
9388,
1547,
1095,
14,
4131,
304,
272,
347,
31608,
8,
277,
304,
267,
4136,
17,
275,
4136,
18,
275,
488,
267,
367,
1526,
315,
291,
14,
1365,
26,
288,
340,
4136,
17,
365,
440,
488,
26,
355,
1995,
4136,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dnozay/lettuce | tests/integration/lib/Django-1.2.5/django/contrib/gis/db/backends/postgis/adapter.py | 311 | 1165 | """
This object provides quoting for GEOS geometries into PostgreSQL/PostGIS.
"""
from psycopg2 import Binary
from psycopg2.extensions import ISQLQuote
class PostGISAdapter(object):
def __init__(self, geom):
"Initializes on the geometry."
# Getting the WKB (in string form, to allow easy pickling ... | gpl-3.0 | [
624,
199,
961,
909,
6571,
18593,
367,
11920,
24883,
1901,
20175,
15,
6564,
11092,
14,
199,
624,
199,
199,
504,
15492,
18,
492,
14161,
199,
504,
15492,
18,
14,
5359,
492,
2281,
2940,
12838,
199,
199,
533,
20929,
10200,
8,
785,
304,
2... | [
199,
961,
909,
6571,
18593,
367,
11920,
24883,
1901,
20175,
15,
6564,
11092,
14,
199,
624,
199,
199,
504,
15492,
18,
492,
14161,
199,
504,
15492,
18,
14,
5359,
492,
2281,
2940,
12838,
199,
199,
533,
20929,
10200,
8,
785,
304,
272,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shinrain/tornado | demos/websocket/chatdemo.py | 14 | 3172 | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8937,
27107,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8937,
27107,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ychen820/microblog | y/google-cloud-sdk/platform/google_appengine/lib/django-1.2/django/forms/widgets.py | 45 | 29994 | """
HTML Widget classes
"""
import django.utils.copycompat as copy
from itertools import chain
from django.conf import settings
from django.utils.datastructures import MultiValueDict, MergeDict
from django.utils.html import escape, conditional_escape
from django.utils.translation import ugettext
from django.utils.enco... | bsd-3-clause | [
624,
199,
4943,
16905,
3992,
199,
624,
199,
199,
646,
1639,
14,
1208,
14,
1574,
5819,
465,
1331,
199,
504,
7975,
492,
6036,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1208,
14,
23004,
492,
6879,
24811,
12,
14076,
2141,... | [
199,
4943,
16905,
3992,
199,
624,
199,
199,
646,
1639,
14,
1208,
14,
1574,
5819,
465,
1331,
199,
504,
7975,
492,
6036,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1208,
14,
23004,
492,
6879,
24811,
12,
14076,
2141,
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... |
maiklos-mirrors/jfx78 | modules/web/src/main/native/Tools/Scripts/webkitpy/tool/commands/perfalizer.py | 123 | 8751 | # Copyright (c) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | gpl-2.0 | [
3,
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Techcable/TechBot | plugins/amazon.py | 12 | 3863 | import requests
import re
from bs4 import BeautifulSoup
from cloudbot import hook
from cloudbot.util import web, formatting, colors
SEARCH_URL = "http://www.amazon.{}/s/"
REGION = "com"
AMAZON_RE = re.compile(""".*ama?zo?n\.(com|co\.uk|com\.au|de|fr|ca|cn|es|it)/.*/(?:exec/obidos/ASIN/|o/|gp/product/|
(?:(?:[^"\'/]... | gpl-3.0 | [
646,
4145,
199,
646,
295,
199,
504,
9922,
20,
492,
17132,
199,
199,
504,
2463,
8301,
357,
492,
5759,
199,
504,
2463,
8301,
357,
14,
1974,
492,
3330,
12,
10803,
12,
9229,
421,
199,
15962,
63,
2632,
275,
298,
1014,
921,
1544,
14,
15... | [
4145,
199,
646,
295,
199,
504,
9922,
20,
492,
17132,
199,
199,
504,
2463,
8301,
357,
492,
5759,
199,
504,
2463,
8301,
357,
14,
1974,
492,
3330,
12,
10803,
12,
9229,
421,
199,
15962,
63,
2632,
275,
298,
1014,
921,
1544,
14,
15144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
melgor/melgor.github.io | node_modules/pygmentize-bundled/vendor/pygments/build-3.3/pygments/lexers/foxpro.py | 335 | 26220 | # -*- coding: utf-8 -*-
"""
pygments.lexers.foxpro
~~~~~~~~~~~~~~~~~~~~~~
Simple lexer for Microsoft Visual FoxPro source code.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer
from pygm... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12245,
14,
9849,
496,
272,
18294,
2878,
1714,
339,
5870,
10426,
367,
15332,
14702,
481,
19131,
919,
1350,
1233,
14,
339,
520,
7307,
26,
1898,
8315,
13,
6965,
701,
314,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
13277,
14,
12245,
14,
9849,
496,
272,
18294,
2878,
1714,
339,
5870,
10426,
367,
15332,
14702,
481,
19131,
919,
1350,
1233,
14,
339,
520,
7307,
26,
1898,
8315,
13,
6965,
701,
314,
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... |
tmerr/bank_wrangler | bank_wrangler/bank/fidelity.py | 1 | 2374 | """
Uses OFX to fetch a 3 month window of transactions from Fidelity.
Other possibibilities:
* Download and parse statement PDFs.
Last 10 years are available, 1 month at a time.
* Download CSVs from Portfolio > Activity & Orders > History > Download.
Last 5 years are available, 3 months at a time.
"""
from io im... | gpl-3.0 | [
624,
199,
21896,
1634,
56,
370,
5267,
282,
650,
5794,
4353,
402,
15809,
687,
481,
2655,
5075,
14,
199,
199,
8632,
2086,
6637,
1892,
5462,
26,
199,
10,
17955,
436,
2198,
5164,
15537,
83,
14,
523,
15237,
1616,
17399,
787,
2808,
12,
41... | [
199,
21896,
1634,
56,
370,
5267,
282,
650,
5794,
4353,
402,
15809,
687,
481,
2655,
5075,
14,
199,
199,
8632,
2086,
6637,
1892,
5462,
26,
199,
10,
17955,
436,
2198,
5164,
15537,
83,
14,
523,
15237,
1616,
17399,
787,
2808,
12,
413,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
alajara/servo | tests/wpt/web-platform-tests/tools/html5lib/html5lib/trie/datrie.py | 785 | 1166 | from __future__ import absolute_import, division, unicode_literals
from datrie import Trie as DATrie
from six import text_type
from ._base import Trie as ABCTrie
class Trie(ABCTrie):
def __init__(self, data):
chars = set()
for key in data.keys():
if not isinstance(key, text_type):
... | mpl-2.0 | [
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
2649,
63,
5955,
199,
199,
504,
6394,
11317,
492,
377,
11317,
465,
17971,
11317,
199,
504,
3816,
492,
1318,
63,
466,
199,
199,
504,
13653,
1095,
492,
377,
11317,
465,
14840,
1028... | [
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
2649,
63,
5955,
199,
199,
504,
6394,
11317,
492,
377,
11317,
465,
17971,
11317,
199,
504,
3816,
492,
1318,
63,
466,
199,
199,
504,
13653,
1095,
492,
377,
11317,
465,
14840,
1028,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
40223137/2015cd_midterm | static/Brython3.1.1-20150328-091302/Lib/xml/sax/xmlreader.py | 824 | 12612 | """An XML Reader is the SAX 2 name for an XML parser. XML Parsers
should be based on this code. """
from . import handler
from ._exceptions import SAXNotSupportedException, SAXNotRecognizedException
# ===== XMLREADER =====
class XMLReader:
"""Interface for reading an XML document using callbacks.
XMLReade... | gpl-3.0 | [
624,
2493,
4692,
23099,
365,
314,
19310,
499,
536,
367,
376,
4692,
1798,
14,
4692,
10191,
83,
199,
5626,
506,
4079,
641,
642,
1233,
14,
408,
199,
199,
504,
1275,
492,
3016,
199,
199,
504,
13653,
3924,
492,
19310,
26077,
1726,
12,
19... | [
2493,
4692,
23099,
365,
314,
19310,
499,
536,
367,
376,
4692,
1798,
14,
4692,
10191,
83,
199,
5626,
506,
4079,
641,
642,
1233,
14,
408,
199,
199,
504,
1275,
492,
3016,
199,
199,
504,
13653,
3924,
492,
19310,
26077,
1726,
12,
19310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
giggsey/SickRage | lib/unidecode/x060.py | 250 | 4642 | data = (
'Huai ', # 0x00
'Tai ', # 0x01
'Song ', # 0x02
'Wu ', # 0x03
'Ou ', # 0x04
'Chang ', # 0x05
'Chuang ', # 0x06
'Ju ', # 0x07
'Yi ', # 0x08
'Bao ', # 0x09
'Chao ', # 0x0a
'Min ', # 0x0b
'Pei ', # 0x0c
'Zuo ', # 0x0d
'Zen ', # 0x0e
'Yang ', # 0x0f
'Kou ', # 0x10
... | gpl-3.0 | [
576,
275,
334,
199,
7,
40,
1458,
73,
1656,
259,
327,
378,
88,
383,
199,
7,
52,
5789,
1656,
259,
327,
378,
88,
614,
199,
7,
51,
951,
1656,
259,
327,
378,
88,
996,
199,
7,
25728,
1656,
259,
327,
378,
88,
1644,
199,
7,
47,
85,
... | [
275,
334,
199,
7,
40,
1458,
73,
1656,
259,
327,
378,
88,
383,
199,
7,
52,
5789,
1656,
259,
327,
378,
88,
614,
199,
7,
51,
951,
1656,
259,
327,
378,
88,
996,
199,
7,
25728,
1656,
259,
327,
378,
88,
1644,
199,
7,
47,
85,
1656,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
imsparsh/python-for-android | python3-alpha/python3-src/Tools/pynche/Switchboard.py | 116 | 4797 | """Switchboard class.
This class is used to coordinate updates among all Viewers. Every Viewer must
conform to the following interface:
- it must include a method called update_yourself() which takes three
arguments; the red, green, and blue values of the selected color.
- When a Viewer selects a colo... | apache-2.0 | [
624,
10167,
3576,
1021,
14,
199,
199,
2765,
1021,
365,
1202,
370,
10021,
7029,
16885,
1006,
10935,
1192,
14,
221,
18414,
10935,
281,
1471,
199,
388,
964,
370,
314,
2569,
3217,
26,
339,
446,
652,
1471,
2387,
282,
1083,
2797,
1678,
63,
... | [
10167,
3576,
1021,
14,
199,
199,
2765,
1021,
365,
1202,
370,
10021,
7029,
16885,
1006,
10935,
1192,
14,
221,
18414,
10935,
281,
1471,
199,
388,
964,
370,
314,
2569,
3217,
26,
339,
446,
652,
1471,
2387,
282,
1083,
2797,
1678,
63,
12695... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dhivyap/ansible | lib/ansible/modules/network/check_point/cp_mgmt_assign_global_assignment.py | 20 | 2701 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Ansible module to manage Check Point Firewall (c) 2019
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
2622,
859,
370,
9635,
2670,
7584,
15967,
7567,
334,
67,
9,
20312,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
2622,
859,
370,
9635,
2670,
7584,
15967,
7567,
334,
67,
9,
20312,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cowai/jottalib | src/jottalib/jottafuse.py | 2 | 13210 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''Mount your JottaCloud files locally and use it with your normal file tools'''
#
# This file is part of jottafs.
#
# jottafs 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 Softwar... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
2344,
24467,
2195,
1603,
357,
502,
9089,
1584,
17738,
436,
675,
652,
543,
2195,
3293,
570,
7249,
2344,
199,
3,
199,
3,
961,
570,
365,
1777,
402... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
2344,
24467,
2195,
1603,
357,
502,
9089,
1584,
17738,
436,
675,
652,
543,
2195,
3293,
570,
7249,
2344,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
eleonrk/SickRage | lib/feedparser/namespaces/admin.py | 43 | 2368 | # Support for the administrative elements extension
# Copyright 2010-2015 Kurt McKee <contactme@kurtmckee.org>
# Copyright 2002-2008 Mark Pilgrim
# All rights reserved.
#
# This file is a part of feedparser.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided th... | gpl-3.0 | [
3,
12502,
367,
314,
4628,
25124,
4008,
3329,
199,
3,
1898,
7129,
13,
7806,
1804,
20471,
22895,
43,
1024,
665,
7811,
278,
32,
75,
300,
7574,
346,
1024,
14,
1308,
30,
199,
3,
1898,
14790,
13,
9300,
7173,
19641,
199,
3,
2900,
4481,
4... | [
12502,
367,
314,
4628,
25124,
4008,
3329,
199,
3,
1898,
7129,
13,
7806,
1804,
20471,
22895,
43,
1024,
665,
7811,
278,
32,
75,
300,
7574,
346,
1024,
14,
1308,
30,
199,
3,
1898,
14790,
13,
9300,
7173,
19641,
199,
3,
2900,
4481,
4644,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
konstruktoid/ansible-upstream | lib/ansible/modules/cloud/amazon/ec2_vpc_igw_facts.py | 19 | 4756 | #!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1898,
26,
2622,
7290,
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,
2424,
9,
199... | [
2647,
15,
1393,
15,
1548,
199,
3,
1898,
26,
2622,
7290,
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,
2424,
9,
199,
199,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
fishscene/streamlink | src/streamlink/logger.py | 41 | 1656 | import sys
from threading import Lock
class Logger(object):
Levels = ["none", "error", "warning", "info", "debug"]
Format = "[{module}][{level}] {msg}\n"
def __init__(self):
self.output = sys.stdout
self.level = 0
self.lock = Lock()
def new_module(self, module):
retu... | bsd-2-clause | [
646,
984,
199,
199,
504,
5796,
492,
15536,
421,
199,
533,
15996,
8,
785,
304,
272,
20400,
83,
275,
2097,
3592,
401,
298,
705,
401,
298,
3764,
401,
298,
815,
401,
298,
1757,
937,
272,
9701,
275,
7369,
91,
578,
93,
1527,
91,
1896,
... | [
984,
199,
199,
504,
5796,
492,
15536,
421,
199,
533,
15996,
8,
785,
304,
272,
20400,
83,
275,
2097,
3592,
401,
298,
705,
401,
298,
3764,
401,
298,
815,
401,
298,
1757,
937,
272,
9701,
275,
7369,
91,
578,
93,
1527,
91,
1896,
11049,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kost/volatility | volatility/plugins/overlays/windows/xp_sp3_x86_vtypes.py | 58 | 291918 | ntkrnlmp_types = {
'LIST_ENTRY64' : [ 0x10, {
'Flink' : [ 0x0, ['unsigned long long']],
'Blink' : [ 0x8, ['unsigned long long']],
} ],
'LIST_ENTRY32' : [ 0x8, {
'Flink' : [ 0x0, ['unsigned long']],
'Blink' : [ 0x4, ['unsigned long']],
} ],
'_LIST_ENTRY' : [ 0x8, {
'Flink' : [ 0x0, ['pointer', ... | gpl-2.0 | [
343,
16779,
7530,
311,
63,
1313,
275,
469,
523,
283,
4924,
63,
7285,
772,
7,
520,
359,
378,
88,
709,
12,
469,
272,
283,
38,
1073,
7,
520,
359,
378,
88,
16,
12,
788,
2244,
1846,
1846,
2157,
272,
283,
34,
1073,
7,
520,
359,
378,... | [
16779,
7530,
311,
63,
1313,
275,
469,
523,
283,
4924,
63,
7285,
772,
7,
520,
359,
378,
88,
709,
12,
469,
272,
283,
38,
1073,
7,
520,
359,
378,
88,
16,
12,
788,
2244,
1846,
1846,
2157,
272,
283,
34,
1073,
7,
520,
359,
378,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
apple/swift-clang | tools/scan-build-py/libscanbuild/report.py | 32 | 17684 | # -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
""" This module is responsible to generate 'index.html' for the report.
The input for this step i... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
14320,
402,
314,
491,
28631,
7290,
12,
1334,
314,
3668,
844,
373,
18,
14,
16,
543,
491,
28631,
24873,
14,
199,
3,
1666,
4178,
921,
29257,
14,
1308,
15,
3961,
14,
2424,
367,
4190,
25... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
14320,
402,
314,
491,
28631,
7290,
12,
1334,
314,
3668,
844,
373,
18,
14,
16,
543,
491,
28631,
24873,
14,
199,
3,
1666,
4178,
921,
29257,
14,
1308,
15,
3961,
14,
2424,
367,
4190,
2556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
piyushroshan/xen-4.3.2 | tools/tests/utests/ut_xend/ut_image.py | 42 | 5072 | #===========================================================================
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope tha... | gpl-2.0 | [
14813,
21326,
199,
3,
961,
3555,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402,
1015,
499,
14,
17,
402,
314,
1664,
6401,
1696,
1684,
199,
3,
844,
465,
3267,
701,
314,
2868,
2290,
... | [
21326,
199,
3,
961,
3555,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402,
1015,
499,
14,
17,
402,
314,
1664,
6401,
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... |
rupran/ansible | test/units/playbook/test_helpers.py | 60 | 19182 | # (c) 2016, Adrian Likins <alikins@redhat.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | gpl-3.0 | [
3,
334,
67,
9,
7800,
12,
4431,
18429,
491,
3258,
3617,
665,
279,
3258,
3617,
32,
17164,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269... | [
334,
67,
9,
7800,
12,
4431,
18429,
491,
3258,
3617,
665,
279,
3258,
3617,
32,
17164,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
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... |
TheAltcoinBoard/XAB-withoutSecp256k1 | share/qt/extract_strings_qt.py | 7 | 1854 | #!/usr/bin/python
'''
Extract _("...") strings for translation and convert to Qt4 stringdefs so that
they can be picked up by Qt linguist.
'''
from subprocess import Popen, PIPE
import glob
OUT_CPP="src/qt/bitcoinstrings.cpp"
EMPTY=['""']
def parse_po(text):
"""
Parse 'po' format produced by xget... | mit | [
3381,
2647,
15,
1393,
15,
1548,
202,
199,
2344,
202,
199,
12147,
3824,
12594,
3326,
367,
7761,
436,
3957,
370,
3959,
20,
1059,
8710,
880,
626,
202,
199,
29002,
883,
506,
29438,
1536,
701,
3959,
634,
14659,
631,
14,
202,
199,
2344,
2... | [
2647,
15,
1393,
15,
1548,
202,
199,
2344,
202,
199,
12147,
3824,
12594,
3326,
367,
7761,
436,
3957,
370,
3959,
20,
1059,
8710,
880,
626,
202,
199,
29002,
883,
506,
29438,
1536,
701,
3959,
634,
14659,
631,
14,
202,
199,
2344,
202,
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... |
FInAT/FInAT | finat/restricted.py | 1 | 8971 | from functools import singledispatch
from itertools import chain
import FIAT
from FIAT.polynomial_set import mis
import finat
from finat.fiat_elements import FiatElement
from finat.physically_mapped import PhysicallyMappedElement
# Sentinel for when restricted element is empty
null_element = object()
@singledispa... | mit | [
504,
9143,
492,
2849,
6052,
199,
504,
7975,
492,
6036,
199,
199,
646,
15435,
619,
199,
504,
15435,
619,
14,
22104,
63,
409,
492,
3201,
199,
199,
646,
2583,
292,
199,
504,
2583,
292,
14,
329,
292,
63,
5527,
492,
31574,
292,
2162,
1... | [
9143,
492,
2849,
6052,
199,
504,
7975,
492,
6036,
199,
199,
646,
15435,
619,
199,
504,
15435,
619,
14,
22104,
63,
409,
492,
3201,
199,
199,
646,
2583,
292,
199,
504,
2583,
292,
14,
329,
292,
63,
5527,
492,
31574,
292,
2162,
199,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
quozl/terminal-activity | terminal.py | 1 | 22474 | # Copyright (C) 2007, Eduardo Silva <edsiper@gmail.com>.
# Copyright (C) 2008, One Laptop Per Child
# Copyright (C) 2009, Simon Schampijer
#
# 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; eithe... | gpl-2.0 | [
3,
1898,
334,
35,
9,
10219,
12,
662,
2033,
1005,
79,
428,
382,
3042,
665,
379,
338,
529,
32,
6799,
14,
957,
10827,
199,
3,
1898,
334,
35,
9,
9079,
12,
7309,
491,
439,
2119,
3492,
12988,
199,
3,
1898,
334,
35,
9,
8937,
12,
1075... | [
1898,
334,
35,
9,
10219,
12,
662,
2033,
1005,
79,
428,
382,
3042,
665,
379,
338,
529,
32,
6799,
14,
957,
10827,
199,
3,
1898,
334,
35,
9,
9079,
12,
7309,
491,
439,
2119,
3492,
12988,
199,
3,
1898,
334,
35,
9,
8937,
12,
10751,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GehenHe/Recognize-Face-on-Android | tensorflow/contrib/distributions/python/ops/beta.py | 11 | 11466 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zenodo/zenodo | zenodo/modules/records/serializers/schemas/pidrelations.py | 7 | 1981 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
9708,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
199,
3,
436,
15,
269,
2... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
9708,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
199,
3,
436,
15,
269,
2811,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
leohmoraes/weblate | weblate/trans/machine/base.py | 4 | 7113 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2015 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# 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, eithe... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
22405,
103,
6029,
446,
6900,
603,
1158,
279,
221,
129,
235,
73,
2411,
130,
248,
665,
77,
1158,
279,
32,
559,
8210,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
22405,
103,
6029,
446,
6900,
603,
1158,
279,
221,
129,
235,
73,
2411,
130,
248,
665,
77,
1158,
279,
32,
559,
8210,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jackkiej/SickRage | lib/sqlalchemy/interfaces.py | 79 | 10918 | # sqlalchemy/interfaces.py
# Copyright (C) 2007-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
# Copyright (C) 2007 Jason Kirtland jek@discorporate.us
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Deprecated core ev... | gpl-3.0 | [
3,
8335,
15,
7436,
14,
647,
199,
3,
1898,
334,
35,
9,
10219,
13,
7280,
314,
14303,
11462,
436,
8417,
665,
3239,
10610,
570,
30,
199,
3,
1898,
334,
35,
9,
10219,
1603,
2660,
1804,
723,
5019,
460,
1335,
5711,
32,
6409,
269,
7314,
... | [
8335,
15,
7436,
14,
647,
199,
3,
1898,
334,
35,
9,
10219,
13,
7280,
314,
14303,
11462,
436,
8417,
665,
3239,
10610,
570,
30,
199,
3,
1898,
334,
35,
9,
10219,
1603,
2660,
1804,
723,
5019,
460,
1335,
5711,
32,
6409,
269,
7314,
323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
defance/edx-platform | lms/djangoapps/lti_provider/views.py | 94 | 5813 | """
LTI Provider view functions
"""
from django.conf import settings
from django.http import HttpResponseBadRequest, HttpResponseForbidden, Http404
from django.views.decorators.csrf import csrf_exempt
import logging
from lti_provider.outcomes import store_outcome_parameters
from lti_provider.models import LtiConsumer... | agpl-3.0 | [
624,
199,
44,
13247,
18489,
2455,
3423,
199,
624,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1014,
492,
6183,
12380,
12,
6183,
17454,
12,
4760,
5188,
199,
504,
1639,
14,
4196,
14,
11582,
14,
10088,
492,
19213,
63,... | [
199,
44,
13247,
18489,
2455,
3423,
199,
624,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1014,
492,
6183,
12380,
12,
6183,
17454,
12,
4760,
5188,
199,
504,
1639,
14,
4196,
14,
11582,
14,
10088,
492,
19213,
63,
2525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
projectcalico/calico-nova | nova/db/migration.py | 6 | 2212 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | apache-2.0 | [
3,
1898,
7129,
1910,
5703,
24230,
598,
27639,
465,
11159,
701,
314,
199,
3,
30660,
402,
314,
20548,
437,
281,
265,
3844,
7769,
436,
19326,
9516,
4633,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
8... | [
1898,
7129,
1910,
5703,
24230,
598,
27639,
465,
11159,
701,
314,
199,
3,
30660,
402,
314,
20548,
437,
281,
265,
3844,
7769,
436,
19326,
9516,
4633,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
losnikitos/googleads-python-lib | examples/dfp/v201502/user_team_association_service/delete_user_team_associations.py | 4 | 2762 | #!/usr/bin/python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
6900,
4475,
3277,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
6900,
4475,
3277,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ennoborg/gramps | gramps/plugins/gramplet/calendargramplet.py | 2 | 2757 | # Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2009 Douglas S. Blank <doug.blank@gmail.com>
#
# 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 Lic... | gpl-2.0 | [
3,
10268,
13408,
446,
282,
598,
15263,
19616,
39,
2826,
3635,
4079,
15599,
2548,
89,
2240,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
13,
8664,
221,
577,
810,
3528,
305,
428,
14,
699,
1983,
665,
68,
810,
71,
14,
2500,
32,
6799,
14... | [
10268,
13408,
446,
282,
598,
15263,
19616,
39,
2826,
3635,
4079,
15599,
2548,
89,
2240,
199,
3,
199,
3,
1898,
334,
35,
9,
10219,
13,
8664,
221,
577,
810,
3528,
305,
428,
14,
699,
1983,
665,
68,
810,
71,
14,
2500,
32,
6799,
14,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bathepawan/workload-automation | wlauto/workloads/power_loadtest/__init__.py | 5 | 4947 | # Copyright 2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | apache-2.0 | [
3,
259,
1898,
6900,
27155,
23954,
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,
3332... | [
259,
1898,
6900,
27155,
23954,
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,
3332,
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... |
andyzsf/django | tests/resolve_url/tests.py | 33 | 2850 | from __future__ import unicode_literals
import warnings
from django.core.urlresolvers import NoReverseMatch
from django.contrib.auth.views import logout
from django.shortcuts import resolve_url
from django.test import TestCase, override_settings
from django.utils.deprecation import RemovedInDjango20Warning
from .mode... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
3598,
199,
199,
504,
1639,
14,
1018,
14,
16522,
492,
32036,
199,
504,
1639,
14,
2828,
14,
1178,
14,
4196,
492,
22079,
199,
504,
1639,
14,
17469,
492,
7512,
63,
633,
199,
504,
163... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
3598,
199,
199,
504,
1639,
14,
1018,
14,
16522,
492,
32036,
199,
504,
1639,
14,
2828,
14,
1178,
14,
4196,
492,
22079,
199,
504,
1639,
14,
17469,
492,
7512,
63,
633,
199,
504,
1639,
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... |
NikNitro/Python-iBeacon-Scan | sympy/solvers/ode.py | 7 | 330554 | r"""
This module contains :py:meth:`~sympy.solvers.ode.dsolve` and different helper
functions that it uses.
:py:meth:`~sympy.solvers.ode.dsolve` solves ordinary differential equations.
See the docstring on the various functions for their uses. Note that partial
differential equations support is in ``pde.py``. Note t... | gpl-3.0 | [
82,
624,
199,
2765,
859,
3509,
520,
647,
26,
5247,
6054,
18132,
14,
11263,
83,
14,
380,
14,
795,
3344,
64,
436,
3365,
5922,
199,
5777,
626,
652,
4440,
14,
199,
199,
26,
647,
26,
5247,
6054,
18132,
14,
11263,
83,
14,
380,
14,
795... | [
624,
199,
2765,
859,
3509,
520,
647,
26,
5247,
6054,
18132,
14,
11263,
83,
14,
380,
14,
795,
3344,
64,
436,
3365,
5922,
199,
5777,
626,
652,
4440,
14,
199,
199,
26,
647,
26,
5247,
6054,
18132,
14,
11263,
83,
14,
380,
14,
795,
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... |
jupiterben/shooter-player | Thirdparty/jsoncpp/test/rununittests.py | 249 | 2507 | import sys
import os
import os.path
import subprocess
from glob import glob
import optparse
VALGRIND_CMD = 'valgrind --tool=memcheck --leak-check=yes --undef-value-errors=yes'
class TestProxy(object):
def __init__( self, test_exe_path, use_valgrind=False ):
self.test_exe_path = os.path.normpath( os.path.a... | gpl-2.0 | [
646,
984,
199,
646,
747,
199,
646,
747,
14,
515,
199,
646,
3873,
199,
504,
5739,
492,
5739,
199,
646,
8691,
199,
199,
3204,
3975,
3192,
63,
9744,
275,
283,
637,
21510,
1553,
3557,
29,
5286,
1074,
1553,
28212,
13,
1074,
29,
5066,
1... | [
984,
199,
646,
747,
199,
646,
747,
14,
515,
199,
646,
3873,
199,
504,
5739,
492,
5739,
199,
646,
8691,
199,
199,
3204,
3975,
3192,
63,
9744,
275,
283,
637,
21510,
1553,
3557,
29,
5286,
1074,
1553,
28212,
13,
1074,
29,
5066,
1553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vlitvak/fieldtrip | realtime/src/buffer/python/FieldTrip.py | 7 | 17758 | """
FieldTrip buffer (V1) client in pure Python
(C) 2010 S. Klanke
"""
# We need socket, struct, and numpy
import socket
import struct
import numpy
VERSION = 1
PUT_HDR = 0x0101
PUT_DAT = 0x0102
PUT_EVT = 0x0103
PUT_OK = 0x0104
PUT_ERR = 0x0105
GET_HDR ... | gpl-2.0 | [
624,
199,
792,
32220,
3335,
334,
54,
17,
9,
1890,
315,
15111,
2018,
199,
199,
8,
35,
9,
7129,
428,
14,
1804,
1502,
415,
199,
624,
199,
199,
3,
2136,
1929,
2838,
12,
2702,
12,
436,
2680,
199,
646,
2838,
199,
646,
2702,
199,
646,
... | [
199,
792,
32220,
3335,
334,
54,
17,
9,
1890,
315,
15111,
2018,
199,
199,
8,
35,
9,
7129,
428,
14,
1804,
1502,
415,
199,
624,
199,
199,
3,
2136,
1929,
2838,
12,
2702,
12,
436,
2680,
199,
646,
2838,
199,
646,
2702,
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... |
siutanwong/scikit-learn | examples/cluster/plot_mini_batch_kmeans.py | 265 | 4081 | """
====================================================================
Comparison of the K-Means and MiniBatchKMeans clustering algorithms
====================================================================
We want to compare the performance of the MiniBatchKMeans and KMeans:
the MiniBatchKMeans is faster, but give... | bsd-3-clause | [
624,
199,
5695,
532,
199,
25834,
402,
314,
1804,
13,
21190,
436,
24954,
8842,
43,
21190,
19454,
18036,
199,
5695,
532,
199,
199,
6004,
2934,
370,
6540,
314,
10238,
402,
314,
24954,
8842,
43,
21190,
436,
1804,
21190,
26,
199,
1589,
249... | [
199,
5695,
532,
199,
25834,
402,
314,
1804,
13,
21190,
436,
24954,
8842,
43,
21190,
19454,
18036,
199,
5695,
532,
199,
199,
6004,
2934,
370,
6540,
314,
10238,
402,
314,
24954,
8842,
43,
21190,
436,
1804,
21190,
26,
199,
1589,
24954,
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... |
StephaneP/volatility | volatility/plugins/mac/route.py | 44 | 3443 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | gpl-2.0 | [
3,
28367,
199,
3,
1898,
334,
35,
9,
10219,
13,
6965,
28367,
2752,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
28367,
14,
199,
3,
199,
3,
28367,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
31... | [
28367,
199,
3,
1898,
334,
35,
9,
10219,
13,
6965,
28367,
2752,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
28367,
14,
199,
3,
199,
3,
28367,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
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... |
GhostThrone/django | tests/known_related_objects/tests.py | 363 | 6425 | from __future__ import unicode_literals
from django.test import TestCase
from .models import Organiser, Pool, PoolStyle, Tournament
class ExistingRelatedInstancesTests(TestCase):
@classmethod
def setUpTestData(cls):
cls.t1 = Tournament.objects.create(name='Tourney 1')
cls.t2 = Tournament.ob... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
396,
492,
7640,
199,
199,
504,
1275,
992,
492,
13125,
290,
25696,
12,
15553,
12,
15553,
6609,
12,
4005,
23474,
421,
199,
533,
1316,
26958,
13885,
18194,
2925,
8,
174... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
396,
492,
7640,
199,
199,
504,
1275,
992,
492,
13125,
290,
25696,
12,
15553,
12,
15553,
6609,
12,
4005,
23474,
421,
199,
533,
1316,
26958,
13885,
18194,
2925,
8,
1746,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
epitron/youtube-dl | youtube_dl/extractor/abc.py | 13 | 7543 | from __future__ import unicode_literals
import hashlib
import hmac
import re
import time
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
ExtractorError,
js_to_json,
int_or_none,
parse_iso8601,
try_get,
unescapeHTML,
update_url_query,
)
class ABCIE(... | unlicense | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
8337,
199,
646,
20330,
199,
646,
295,
199,
646,
900,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
5819,
492,
8434,
63,
495,
199,
504,
2508,
1208,
492,
334,
272,
19... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
8337,
199,
646,
20330,
199,
646,
295,
199,
646,
900,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
5819,
492,
8434,
63,
495,
199,
504,
2508,
1208,
492,
334,
272,
19783,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Yen-Chung-En/2015cdb_g1_0623-2 | static/Brython3.1.1-20150328-091302/Lib/unittest/test/test_suite.py | 791 | 12066 | import unittest
import sys
from .support import LoggingResult, TestEquality
### Support code for Test_TestSuite
################################################################
class Test(object):
class Foo(unittest.TestCase):
def test_1(self): pass
def test_2(self): pass
def test_3(self... | gpl-3.0 | [
646,
2882,
199,
199,
646,
984,
199,
504,
1275,
4058,
492,
19928,
2889,
12,
1379,
22977,
421,
199,
5680,
12502,
1233,
367,
1379,
63,
10591,
199,
3060,
199,
199,
533,
1379,
8,
785,
304,
272,
1021,
8024,
8,
2796,
14,
1746,
304,
267,
... | [
2882,
199,
199,
646,
984,
199,
504,
1275,
4058,
492,
19928,
2889,
12,
1379,
22977,
421,
199,
5680,
12502,
1233,
367,
1379,
63,
10591,
199,
3060,
199,
199,
533,
1379,
8,
785,
304,
272,
1021,
8024,
8,
2796,
14,
1746,
304,
267,
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... |
traveloka/ansible | lib/ansible/modules/cloud/amazon/ec2_lc_facts.py | 23 | 7243 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This is a free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This Ansible library is distri... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
365,
282,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
365,
282,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WangYueFt/jieba | jieba/finalseg/__init__.py | 58 | 2709 | from __future__ import absolute_import, unicode_literals
import re
import os
import marshal
import sys
from .._compat import *
MIN_FLOAT = -3.14e100
PROB_START_P = "prob_start.p"
PROB_TRANS_P = "prob_trans.p"
PROB_EMIT_P = "prob_emit.p"
PrevStatus = {
'B': 'ES',
'M': 'MB',
'S': 'SE',
'E': 'BM'
}
d... | mit | [
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
2649,
63,
5955,
199,
646,
295,
199,
646,
747,
199,
646,
21985,
199,
646,
984,
199,
504,
1275,
423,
5819,
492,
627,
199,
199,
4896,
63,
11783,
275,
446,
19,
14,
1079,
69,
1960,
199,
19... | [
636,
2443,
363,
492,
3679,
63,
646,
12,
2649,
63,
5955,
199,
646,
295,
199,
646,
747,
199,
646,
21985,
199,
646,
984,
199,
504,
1275,
423,
5819,
492,
627,
199,
199,
4896,
63,
11783,
275,
446,
19,
14,
1079,
69,
1960,
199,
199,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
delving/nave | nave/void/migrations/0010_auto_20151111_1409.py | 1 | 5725 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.utils.timezone
import django_extensions.db.fields
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_nam... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
1639,
14,
1208,
14,
7145,
199,
646,
1639,
63,
5359,
14,
697,
14,
955,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
1639,
14,
1208,
14,
7145,
199,
646,
1639,
63,
5359,
14,
697,
14,
955,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
697... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
emergenzeHack/emergenzeHack.github.io | node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py | 1569 | 23354 | #!/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.
"""Utility functions to perform Xcode-style build steps.
These functions are executed via gyp-mac-tool when using the Makefile generator.
""... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
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,
5... | [
2647,
15,
1393,
15,
1813,
2366,
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,
5113,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RossBrunton/django | django/contrib/gis/geos/prototypes/predicates.py | 339 | 1496 | """
This module houses the GEOS ctypes prototype functions for the
unary and binary predicate operations on geometries.
"""
from ctypes import c_char, c_char_p, c_double
from django.contrib.gis.geos.libgeos import GEOM_PTR, GEOSFuncFactory
from django.contrib.gis.geos.prototypes.errcheck import check_predicate
# #... | bsd-3-clause | [
624,
199,
961,
859,
394,
810,
874,
314,
11920,
5577,
19393,
3423,
367,
314,
199,
21603,
436,
3366,
11944,
5331,
641,
24883,
14,
199,
624,
199,
504,
5577,
492,
286,
63,
1560,
12,
286,
63,
1560,
63,
80,
12,
286,
63,
3157,
199,
199,
... | [
199,
961,
859,
394,
810,
874,
314,
11920,
5577,
19393,
3423,
367,
314,
199,
21603,
436,
3366,
11944,
5331,
641,
24883,
14,
199,
624,
199,
504,
5577,
492,
286,
63,
1560,
12,
286,
63,
1560,
63,
80,
12,
286,
63,
3157,
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... |
MikeAmy/django | django/db/models/aggregates.py | 79 | 4984 | """
Classes to represent the definitions of aggregate functions.
"""
from django.core.exceptions import FieldError
from django.db.models.expressions import Func, Star
from django.db.models.fields import FloatField, IntegerField
__all__ = [
'Aggregate', 'Avg', 'Count', 'Max', 'Min', 'StdDev', 'Sum', 'Variance',
]
... | bsd-3-clause | [
624,
199,
15711,
370,
2954,
314,
10269,
402,
9531,
3423,
14,
199,
624,
199,
504,
1639,
14,
1018,
14,
3924,
492,
27691,
199,
504,
1639,
14,
697,
14,
992,
14,
15264,
492,
28794,
12,
1933,
285,
199,
504,
1639,
14,
697,
14,
992,
14,
... | [
199,
15711,
370,
2954,
314,
10269,
402,
9531,
3423,
14,
199,
624,
199,
504,
1639,
14,
1018,
14,
3924,
492,
27691,
199,
504,
1639,
14,
697,
14,
992,
14,
15264,
492,
28794,
12,
1933,
285,
199,
504,
1639,
14,
697,
14,
992,
14,
955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
google/google-ctf | third_party/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/test_asyncore.py | 9 | 22912 | import asyncore
import unittest
import select
import os
import socket
import sys
import time
import warnings
import errno
from test import test_support
from test.test_support import TESTFN, run_unittest, unlink
from StringIO import StringIO
try:
import threading
except ImportError:
threading ... | apache-2.0 | [
646,
30328,
202,
199,
646,
2882,
202,
199,
646,
3504,
202,
199,
646,
747,
202,
199,
646,
2838,
202,
199,
646,
984,
202,
199,
646,
900,
202,
199,
646,
3598,
202,
199,
646,
7554,
2999,
199,
504,
511,
492,
511,
63,
4058,
202,
199,
... | [
30328,
202,
199,
646,
2882,
202,
199,
646,
3504,
202,
199,
646,
747,
202,
199,
646,
2838,
202,
199,
646,
984,
202,
199,
646,
900,
202,
199,
646,
3598,
202,
199,
646,
7554,
2999,
199,
504,
511,
492,
511,
63,
4058,
202,
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... |
mdworks2016/work_development | Python/20_Third_Certification/venv/lib/python3.7/site-packages/pip/_vendor/msgpack/fallback.py | 21 | 37133 | """Fallback pure Python implementation of msgpack"""
from datetime import datetime as _DateTime
import sys
import struct
PY2 = sys.version_info[0] == 2
if PY2:
int_types = (int, long)
def dict_iteritems(d):
return d.iteritems()
else:
int_types = int
unicode = str
xrange = range
de... | apache-2.0 | [
624,
21860,
15111,
2018,
4514,
402,
26635,
624,
199,
199,
504,
2197,
492,
2197,
465,
485,
3926,
199,
646,
984,
199,
646,
2702,
421,
199,
4521,
18,
275,
984,
14,
1023,
63,
815,
59,
16,
61,
508,
499,
199,
692,
7843,
18,
26,
272,
1... | [
21860,
15111,
2018,
4514,
402,
26635,
624,
199,
199,
504,
2197,
492,
2197,
465,
485,
3926,
199,
646,
984,
199,
646,
2702,
421,
199,
4521,
18,
275,
984,
14,
1023,
63,
815,
59,
16,
61,
508,
499,
199,
692,
7843,
18,
26,
272,
1109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yaroslavvb/tensorflow | tensorflow/python/ops/partitioned_variables.py | 132 | 12318 | # 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... |
z1gm4/desarrollo_web_udp | env/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py | 175 | 17495 | # -*- coding: utf-8 -*-
"""
requests.adapters
~~~~~~~~~~~~~~~~~
This module contains the transport adapters that Requests uses to define
and maintain connections.
"""
import os.path
import socket
from .models import Response
from .packages.urllib3.poolmanager import PoolManager, proxy_from_url
from .packages.urllib... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
6615,
14,
21680,
199,
9753,
94,
199,
199,
2765,
859,
3509,
314,
7773,
1503,
12552,
626,
20260,
4440,
370,
5627,
199,
460,
11075,
6947,
14,
199,
624,
199,
199,
646,
747,
14... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
6615,
14,
21680,
199,
9753,
94,
199,
199,
2765,
859,
3509,
314,
7773,
1503,
12552,
626,
20260,
4440,
370,
5627,
199,
460,
11075,
6947,
14,
199,
624,
199,
199,
646,
747,
14,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
YachaoLiu/rk3288_kernel | tools/perf/scripts/python/sched-migration.py | 11215 | 11670 | #!/usr/bin/python
#
# Cpu task migration overview toy
#
# Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com>
#
# perf script event handlers have been generated by perf script -g python
#
# This software is distributed under the terms of the GNU General
# Public License ("GPL") version 2 as published by the Fre... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
445,
3165,
2120,
8367,
23503,
31239,
199,
3,
199,
3,
1898,
334,
35,
9,
7129,
481,
21919,
1567,
2136,
374,
1235,
22043,
665,
70,
1129,
374,
24554,
32,
6799,
14,
957,
30,
199,
3,
199... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
445,
3165,
2120,
8367,
23503,
31239,
199,
3,
199,
3,
1898,
334,
35,
9,
7129,
481,
21919,
1567,
2136,
374,
1235,
22043,
665,
70,
1129,
374,
24554,
32,
6799,
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... |
Zhongqilong/kbengine | kbe/res/scripts/common/Lib/webbrowser.py | 81 | 21421 | #! /usr/bin/env python3
"""Interfaces for launching and remotely controlling Web browsers."""
# Maintained by Georg Brandl.
import os
import shlex
import shutil
import sys
import subprocess
__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
class Error(Exception):
pass
_browsers = {} ... | lgpl-3.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
624,
18680,
367,
10623,
316,
436,
3982,
590,
30350,
6001,
23776,
1041,
199,
3,
16593,
8368,
379,
701,
5346,
1308,
699,
3759,
76,
14,
199,
199,
646,
747,
199,
646,
16701,
199,
646,... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
624,
18680,
367,
10623,
316,
436,
3982,
590,
30350,
6001,
23776,
1041,
199,
3,
16593,
8368,
379,
701,
5346,
1308,
699,
3759,
76,
14,
199,
199,
646,
747,
199,
646,
16701,
199,
646,
5145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JimCircadian/ansible | lib/ansible/modules/clustering/pacemaker_cluster.py | 73 | 7080 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Mathieu Bultel <mbultel@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
7800,
12,
21066,
29364,
699,
348,
14146,
665,
887,
348,
14146,
32,
17164,
14,
957,
30,
199,
3,
1664,
1696,
1684,
844,... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
7800,
12,
21066,
29364,
699,
348,
14146,
665,
887,
348,
14146,
32,
17164,
14,
957,
30,
199,
3,
1664,
1696,
1684,
844,
373,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
redhatrises/freeipa | ipaclient/remote_plugins/2_164/sudocmdgroup.py | 16 | 14989 | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
# pylint: disable=unused-import
import six
from . import Command, Method, Object
from ipalib import api, parameters, output
from ipalib.parameters import DefaultFrom
from ipalib.plugable import Registry
from ipalib.text import _
from ipapython.dn ... | gpl-3.0 | [
3,
199,
3,
1898,
334,
35,
9,
7800,
221,
2868,
1772,
33,
23212,
1937,
9685,
367,
4190,
199,
3,
199,
199,
3,
4287,
26,
3507,
29,
8618,
13,
646,
199,
646,
3816,
199,
199,
504,
1275,
492,
5817,
12,
9075,
12,
6935,
199,
504,
3384,
... | [
199,
3,
1898,
334,
35,
9,
7800,
221,
2868,
1772,
33,
23212,
1937,
9685,
367,
4190,
199,
3,
199,
199,
3,
4287,
26,
3507,
29,
8618,
13,
646,
199,
646,
3816,
199,
199,
504,
1275,
492,
5817,
12,
9075,
12,
6935,
199,
504,
3384,
25530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rahuldhote/odoo | addons/sale_service/__openerp__.py | 260 | 2447 | # -*- 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... |
chauhanmohit/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/resources/python_unittests.py | 130 | 1524 | #
# Copyright (C) 2011 Google Inc. All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# T... | bsd-3-clause | [
3,
199,
3,
1898,
334,
35,
9,
7760,
4475,
3277,
14,
221,
2900,
4481,
4644,
14,
199,
3,
199,
3,
961,
3555,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
11243,
1696,
... | [
199,
3,
1898,
334,
35,
9,
7760,
4475,
3277,
14,
221,
2900,
4481,
4644,
14,
199,
3,
199,
3,
961,
3555,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
11243,
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... |
devigned/autorest | src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/product.py | 14 | 3026 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | [
3,
2803,
29,
1624,
13,
24,
199,
3,
24775,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
199,
3,
4190,
2556,
14,
199,
... | [
2803,
29,
1624,
13,
24,
199,
3,
24775,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
199,
3,
4190,
2556,
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... |
daafgo/CourseBuilder-Xapi | tools/etl/etl_lib.py | 10 | 7662 | # Copyright 2013 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 ... | apache-2.0 | [
3,
1898,
6171,
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,
6171,
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... |
kennedyshead/home-assistant | homeassistant/components/islamic_prayer_times/__init__.py | 2 | 6894 | """The islamic_prayer_times component."""
from datetime import timedelta
import logging
from prayer_times_calculator import PrayerTimesCalculator, exceptions
from requests.exceptions import ConnectionError as ConnError
import voluptuous as vol
from homeassistant.config_entries import SOURCE_IMPORT
from homeassistant.... | apache-2.0 | [
624,
1918,
365,
416,
15003,
63,
80,
803,
281,
63,
4508,
3931,
1041,
199,
504,
2197,
492,
6871,
199,
646,
2050,
199,
199,
504,
299,
803,
281,
63,
4508,
63,
28838,
492,
510,
803,
281,
17687,
20000,
12,
4967,
199,
504,
4145,
14,
3924... | [
1918,
365,
416,
15003,
63,
80,
803,
281,
63,
4508,
3931,
1041,
199,
504,
2197,
492,
6871,
199,
646,
2050,
199,
199,
504,
299,
803,
281,
63,
4508,
63,
28838,
492,
510,
803,
281,
17687,
20000,
12,
4967,
199,
504,
4145,
14,
3924,
492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
google-research/falken | service/learner/brains/brain_cache.py | 1 | 3449 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | [
3,
1898,
499,
15385,
4475,
20376,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
1443,
3332... | [
1898,
499,
15385,
4475,
20376,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
1443,
3332,
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... |
shyaken/cp.eaemcb | controllers/ldap/admin.py | 2 | 6571 | # Author: Zhang Huangbin <zhb@iredmail.org>
import web
import settings
from libs import languages
from libs.ldaplib import decorators, admin, domain as domainlib, connUtils
session = web.config.get('_session')
#
# Admin related.
#
class List:
@decorators.require_global_admin
@decorators.require_login
d... | gpl-2.0 | [
3,
6529,
26,
3107,
27304,
869,
85,
621,
1393,
665,
3951,
66,
32,
16139,
1198,
14,
1308,
30,
199,
199,
646,
3330,
199,
646,
2202,
199,
504,
20314,
492,
10815,
199,
504,
20314,
14,
9642,
773,
492,
20419,
12,
4628,
12,
2881,
465,
288... | [
6529,
26,
3107,
27304,
869,
85,
621,
1393,
665,
3951,
66,
32,
16139,
1198,
14,
1308,
30,
199,
199,
646,
3330,
199,
646,
2202,
199,
504,
20314,
492,
10815,
199,
504,
20314,
14,
9642,
773,
492,
20419,
12,
4628,
12,
2881,
465,
2881,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PennartLoettring/Poettrix | rootfs/usr/lib/python3.4/test/multibytecodec_support.py | 12 | 14592 | #
# multibytecodec_support.py
# Common Unittest Routines for CJK codecs
#
import codecs
import os
import re
import sys
import unittest
from http.client import HTTPException
from test import support
from io import BytesIO
class TestBase:
encoding = '' # codec name
codec = None # codec tupl... | gpl-2.0 | [
3,
199,
3,
3510,
4414,
9276,
63,
4058,
14,
647,
199,
3,
257,
13964,
1910,
1770,
30790,
3746,
367,
445,
25575,
6010,
199,
3,
199,
199,
646,
6010,
199,
646,
747,
199,
646,
295,
199,
646,
984,
199,
646,
2882,
199,
504,
1455,
14,
12... | [
199,
3,
3510,
4414,
9276,
63,
4058,
14,
647,
199,
3,
257,
13964,
1910,
1770,
30790,
3746,
367,
445,
25575,
6010,
199,
3,
199,
199,
646,
6010,
199,
646,
747,
199,
646,
295,
199,
646,
984,
199,
646,
2882,
199,
504,
1455,
14,
1258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SnappleCap/oh-mainline | vendor/packages/requests-oauthlib/requests_oauthlib/oauth1_session.py | 25 | 16131 | from __future__ import unicode_literals
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
import logging
from oauthlib.common import add_params_to_uri
from oauthlib.common import urldecode as _urldecode
from oauthlib.oauth1 import (
SIGNATURE_HMAC, SIGNATURE_RSA, SI... | agpl-3.0 | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
893,
26,
272,
687,
7097,
492,
7097,
199,
2590,
3545,
26,
272,
687,
4011,
14,
1122,
492,
7097,
199,
199,
646,
2050,
199,
199,
504,
9725,
773,
14,
2330,
492,
1050,
63,
1162,
63,
... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
893,
26,
272,
687,
7097,
492,
7097,
199,
2590,
3545,
26,
272,
687,
4011,
14,
1122,
492,
7097,
199,
199,
646,
2050,
199,
199,
504,
9725,
773,
14,
2330,
492,
1050,
63,
1162,
63,
475,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
20uf/ansible | test/integration/cleanup_rax.py | 71 | 6516 | #!/usr/bin/env python
import os
import re
import yaml
import argparse
try:
import pyrax
HAS_PYRAX = True
except ImportError:
HAS_PYRAX = False
def rax_list_iterator(svc, *args, **kwargs):
method = kwargs.pop('method', 'list')
items = getattr(svc, method)(*args, **kwargs)
while items:
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
747,
199,
646,
295,
199,
646,
8864,
199,
646,
7534,
199,
199,
893,
26,
272,
492,
23944,
272,
7509,
63,
4521,
2847,
56,
275,
715,
199,
2590,
3545,
26,
272,
7509,
63,
4521,
2847,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
747,
199,
646,
295,
199,
646,
8864,
199,
646,
7534,
199,
199,
893,
26,
272,
492,
23944,
272,
7509,
63,
4521,
2847,
56,
275,
715,
199,
2590,
3545,
26,
272,
7509,
63,
4521,
2847,
56,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mastak/Spirit | spirit/topic/private/views.py | 7 | 6200 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.contrib.auth import get_user_model
from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http impor... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
2828,
14,
1178,
14,
11582,
492,
4676,
63,
2427,
199,
504,
1639,
14,
1018,
14,
16522,
492,
3837,
199,
504,
1639,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
2828,
14,
1178,
14,
11582,
492,
4676,
63,
2427,
199,
504,
1639,
14,
1018,
14,
16522,
492,
3837,
199,
504,
1639,
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... |
reiven/pungabot | modules/module_alias.py | 1 | 1945 | # -*- coding: utf-8 -*-
import sys
aliases = {}
def init(config):
dbCursor.execute("SELECT alias, command FROM ALIASES")
for alias, command in dbCursor.fetchall():
config_alias(alias, command)
def config_alias(alias, command):
mod = globals()
aliases[alias] = command
mod['command_' + al... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
984,
199,
199,
8602,
275,
1052,
421,
199,
318,
4205,
8,
888,
304,
272,
1592,
8993,
14,
2526,
480,
4859,
5162,
12,
1414,
4442,
437,
2673,
21983,
531,
272,
367,
5162,
12,
1414,
315,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
984,
199,
199,
8602,
275,
1052,
421,
199,
318,
4205,
8,
888,
304,
272,
1592,
8993,
14,
2526,
480,
4859,
5162,
12,
1414,
4442,
437,
2673,
21983,
531,
272,
367,
5162,
12,
1414,
315,
1592... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sadanandb/pmt | src/pyasm/widget/annotate_wdg.py | 6 | 11694 | ###########################################################
#
# Copyright (c) 2005, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permi... | epl-1.0 | [
26207,
5680,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
12,
23150,
387,
87,
21580,
199,
3,
9326,
2900,
5924,
5702,
199,
3,
199,
3,
3611,
20076,
775,
4392,
1621,
18623,
14,
221,
961,
2032,
365,
557,
1359,
386,
695,
370,
199,
3,
231... | [
5680,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
12,
23150,
387,
87,
21580,
199,
3,
9326,
2900,
5924,
5702,
199,
3,
199,
3,
3611,
20076,
775,
4392,
1621,
18623,
14,
221,
961,
2032,
365,
557,
1359,
386,
695,
370,
199,
3,
23150,
387... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gptech/ansible | lib/ansible/modules/windows/win_domain.py | 24 | 2003 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Red Hat, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your ... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
334,
67,
9,
9708,
12,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
334,
67,
9,
9708,
12,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
iohannez/gnuradio | gr-wavelet/python/wavelet/__init__.py | 7 | 1101 | #
# Copyright 2011 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)
# any later version.
#
#... | gpl-3.0 | [
3,
199,
3,
1898,
7760,
2868,
2290,
2752,
12,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1664,
13514,
199,
3,
199,
3,
1664,
13514,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
... | [
199,
3,
1898,
7760,
2868,
2290,
2752,
12,
3277,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1664,
13514,
199,
3,
199,
3,
1664,
13514,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NavarraBiomed/cientifika | cientifika_app/models.py | 2 | 14864 | # coding: utf-8
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note... | gpl-2.0 | [
3,
2803,
26,
2774,
13,
24,
199,
199,
3,
961,
365,
376,
2599,
13,
10176,
5634,
1402,
859,
14,
199,
3,
2047,
7171,
1172,
370,
886,
314,
2569,
10250,
370,
3633,
642,
1536,
26,
199,
3,
258,
627,
799,
285,
1842,
1709,
7,
1865,
199,
... | [
2803,
26,
2774,
13,
24,
199,
199,
3,
961,
365,
376,
2599,
13,
10176,
5634,
1402,
859,
14,
199,
3,
2047,
7171,
1172,
370,
886,
314,
2569,
10250,
370,
3633,
642,
1536,
26,
199,
3,
258,
627,
799,
285,
1842,
1709,
7,
1865,
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... |
Opentrons/labware | api/src/opentrons/drivers/serial_communication.py | 3 | 3983 | import serial # type: ignore
from serial.tools import list_ports # type: ignore
import contextlib
import logging
log = logging.getLogger(__name__)
RECOVERY_TIMEOUT = 10
DEFAULT_SERIAL_TIMEOUT = 5
DEFAULT_WRITE_TIMEOUT = 30
class SerialNoResponse(Exception):
pass
def get_ports_by_name(device_name):
'''Re... | apache-2.0 | [
646,
3012,
221,
327,
730,
26,
3686,
199,
504,
3012,
14,
2537,
492,
769,
63,
5203,
221,
327,
730,
26,
3686,
199,
646,
15502,
199,
646,
2050,
199,
199,
793,
275,
2050,
14,
5572,
3460,
354,
3368,
199,
199,
907,
19052,
57,
63,
8899,
... | [
3012,
221,
327,
730,
26,
3686,
199,
504,
3012,
14,
2537,
492,
769,
63,
5203,
221,
327,
730,
26,
3686,
199,
646,
15502,
199,
646,
2050,
199,
199,
793,
275,
2050,
14,
5572,
3460,
354,
3368,
199,
199,
907,
19052,
57,
63,
8899,
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... |
abergeron/pylearn2 | pylearn2/scripts/tests/test_dbm.py | 37 | 3931 | """
Tests scripts in the DBM folder
"""
import os
import pylearn2.scripts.dbm.show_negative_chains as negative_chains
import pylearn2.scripts.dbm.show_reconstructions as show_reconstruct
import pylearn2.scripts.dbm.show_samples as show_samples
import pylearn2.scripts.dbm.top_filters as top_filters
from pylearn2.config... | bsd-3-clause | [
624,
199,
2925,
10554,
315,
314,
6249,
45,
4922,
199,
624,
199,
199,
646,
747,
199,
646,
27959,
18,
14,
6429,
14,
20666,
14,
2384,
63,
7371,
63,
17419,
465,
6946,
63,
17419,
199,
646,
27959,
18,
14,
6429,
14,
20666,
14,
2384,
63,
... | [
199,
2925,
10554,
315,
314,
6249,
45,
4922,
199,
624,
199,
199,
646,
747,
199,
646,
27959,
18,
14,
6429,
14,
20666,
14,
2384,
63,
7371,
63,
17419,
465,
6946,
63,
17419,
199,
646,
27959,
18,
14,
6429,
14,
20666,
14,
2384,
63,
25981... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vongochung/buiquocviet | django/contrib/gis/admin/options.py | 83 | 5247 | from django.contrib.admin import ModelAdmin
from django.contrib.gis.admin.widgets import OpenLayersWidget
from django.contrib.gis.gdal import OGRGeomType
from django.contrib.gis.db import models
class GeoModelAdmin(ModelAdmin):
"""
The administration options class for Geographic models. Map settings
may be... | bsd-3-clause | [
504,
1639,
14,
2828,
14,
2113,
492,
30093,
199,
504,
1639,
14,
2828,
14,
5668,
14,
2113,
14,
8583,
492,
3232,
16862,
3339,
199,
504,
1639,
14,
2828,
14,
5668,
14,
11600,
492,
25756,
199,
504,
1639,
14,
2828,
14,
5668,
14,
697,
492... | [
1639,
14,
2828,
14,
2113,
492,
30093,
199,
504,
1639,
14,
2828,
14,
5668,
14,
2113,
14,
8583,
492,
3232,
16862,
3339,
199,
504,
1639,
14,
2828,
14,
5668,
14,
11600,
492,
25756,
199,
504,
1639,
14,
2828,
14,
5668,
14,
697,
492,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jupierce/openshift-tools | ansible/roles/lib_yaml_editor/build/ansible/yedit.py | 10 | 6223 | #pylint: skip-file
def get_curr_value(invalue, val_type):
'''return the current value'''
if invalue == None:
return None
curr_value = invalue
if val_type == 'yaml':
curr_value = yaml.load(invalue)
elif val_type == 'json':
curr_value = json.loads(invalue)
return curr_va... | apache-2.0 | [
3,
26324,
26,
3372,
13,
493,
199,
199,
318,
664,
63,
9808,
63,
585,
8,
262,
585,
12,
1139,
63,
466,
304,
272,
1449,
1107,
314,
1453,
574,
2344,
272,
340,
315,
585,
508,
488,
26,
267,
372,
488,
339,
8230,
63,
585,
275,
315,
585... | [
26324,
26,
3372,
13,
493,
199,
199,
318,
664,
63,
9808,
63,
585,
8,
262,
585,
12,
1139,
63,
466,
304,
272,
1449,
1107,
314,
1453,
574,
2344,
272,
340,
315,
585,
508,
488,
26,
267,
372,
488,
339,
8230,
63,
585,
275,
315,
585,
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... |
KasenJ/CommunityPython | code/push/google/protobuf/text_format.py | 1 | 22190 | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions o... | gpl-2.0 | [
3,
11557,
699,
3043,
1192,
446,
4475,
1159,
666,
1640,
1461,
1475,
199,
3,
1898,
9079,
4475,
3277,
14,
221,
2900,
4481,
4644,
14,
199,
3,
1455,
921,
600,
14,
3098,
14,
957,
15,
80,
15,
7204,
15,
199,
3,
199,
3,
10114,
436,
675,
... | [
11557,
699,
3043,
1192,
446,
4475,
1159,
666,
1640,
1461,
1475,
199,
3,
1898,
9079,
4475,
3277,
14,
221,
2900,
4481,
4644,
14,
199,
3,
1455,
921,
600,
14,
3098,
14,
957,
15,
80,
15,
7204,
15,
199,
3,
199,
3,
10114,
436,
675,
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... |
2013Commons/hue | desktop/core/ext-py/PyYAML-3.09/lib/yaml/events.py | 985 | 2445 |
# Abstract classes.
class Event(object):
def __init__(self, start_mark=None, end_mark=None):
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
attributes = [key for key in ['anchor', 'tag', 'implicit', 'value']
if hasattr(self, key)]
argu... | apache-2.0 | [
199,
3,
11836,
3992,
14,
199,
199,
533,
6763,
8,
785,
304,
272,
347,
636,
826,
721,
277,
12,
1343,
63,
1657,
29,
403,
12,
1284,
63,
1657,
29,
403,
304,
267,
291,
14,
928,
63,
1657,
275,
1343,
63,
1657,
267,
291,
14,
500,
63,
... | [
3,
11836,
3992,
14,
199,
199,
533,
6763,
8,
785,
304,
272,
347,
636,
826,
721,
277,
12,
1343,
63,
1657,
29,
403,
12,
1284,
63,
1657,
29,
403,
304,
267,
291,
14,
928,
63,
1657,
275,
1343,
63,
1657,
267,
291,
14,
500,
63,
1657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ketjow4/NOV | Lib/site-packages/scipy/cluster/setup.py | 51 | 1313 | #!"C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\bin\Debug\ipy.exe"
import sys
from os.path import join
if sys.version_info[0] >= 3:
DEFINE_MACROS = [("SCIPY_PY3K", None)]
else:
DEFINE_MACROS = []
def configuration(parent_package = '', top_path = None):
from numpy.distuti... | gpl-3.0 | [
3168,
2,
35,
3427,
12117,
60,
526,
71,
60,
26872,
60,
15039,
13225,
7129,
60,
24286,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1393,
60,
7084,
60,
73,
647,
14,
5803,
2,
199,
646,
984,
199,
... | [
2,
35,
3427,
12117,
60,
526,
71,
60,
26872,
60,
15039,
13225,
7129,
60,
24286,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1596,
11048,
73,
1653,
1352,
5294,
60,
1393,
60,
7084,
60,
73,
647,
14,
5803,
2,
199,
646,
984,
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... |
ManjusakaSL/Practice | second/sunspots_roto.py | 1 | 1140 | from reportlab.lib import colors
from reportlab.graphics.shapes import *
from reportlab.graphics import renderPDF
data = [
# Year Month Predicted High Low
(2007, 8, 113.2, 114.2, 112.2),
(2007, 9, 112.8, 115.8, 109.8),
(2007, 10, 111.0, 116.0, 106.0),
(2007, 11, 109.8, ... | gpl-3.0 | [
504,
21773,
14,
773,
492,
9229,
199,
504,
21773,
14,
15707,
14,
9069,
492,
627,
199,
504,
21773,
14,
15707,
492,
3795,
7638,
199,
199,
576,
275,
359,
199,
3,
259,
28497,
221,
28835,
221,
5543,
328,
1522,
221,
16332,
221,
21766,
272,... | [
21773,
14,
773,
492,
9229,
199,
504,
21773,
14,
15707,
14,
9069,
492,
627,
199,
504,
21773,
14,
15707,
492,
3795,
7638,
199,
199,
576,
275,
359,
199,
3,
259,
28497,
221,
28835,
221,
5543,
328,
1522,
221,
16332,
221,
21766,
272,
334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Adel-Magebinary/odoo | addons/survey/wizard/survey_email_compose_message.py | 57 | 10954 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010-Today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
7129,
13,
31982,
7653,
13950,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
18956,
199,
3,
199,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
7129,
13,
31982,
7653,
13950,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
18956,
199,
3,
199,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
paulcalabro/zato | code/zato-server/test/zato/server/connection/http_soap/test_outgoing.py | 5 | 24189 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2013 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
import httplib, ssl
from datetime import datetime
from logging import ge... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
7384,
334,
35,
9,
6171,
577,
759,
527,
90,
32753,
79,
74,
350,
665,
795,
2133,
737,
1315,
11318,
14,
2308,
30,
199,
199,
31661,
1334,
491,
28863,
19,
12,
1937,
5113,
14,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
7384,
334,
35,
9,
6171,
577,
759,
527,
90,
32753,
79,
74,
350,
665,
795,
2133,
737,
1315,
11318,
14,
2308,
30,
199,
199,
31661,
1334,
491,
28863,
19,
12,
1937,
5113,
14,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
x2nie/odoo | openerp/modules/db.py | 442 | 6037 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you ca... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
259,
1898,
334... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
259,
1898,
334,
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... |
zstackio/zstack-woodpecker | integrationtest/vm/perf/vm/test_reboot_vm_simple_scheduler_with_max_threads.py | 2 | 1675 | '''
New Perf Test for rebooting KVM VMs which were stopped.
The reboot number will depend on the environment variable: ZSTACK_TEST_NUM
This case's max thread is 1000
@author: Carl
'''
import os
import time
import zstackwoodpecker.operations.resource_operations as res_ops
import zstackwoodpecker.test_lib as test_lib
f... | apache-2.0 | [
2344,
199,
4665,
31778,
1379,
367,
19457,
316,
1804,
6849,
30641,
1314,
4898,
15248,
14,
199,
1918,
19457,
1329,
911,
11687,
641,
314,
3734,
1750,
26,
3107,
17014,
63,
2864,
63,
7125,
199,
2765,
1930,
1159,
1390,
2462,
365,
5198,
199,
... | [
199,
4665,
31778,
1379,
367,
19457,
316,
1804,
6849,
30641,
1314,
4898,
15248,
14,
199,
1918,
19457,
1329,
911,
11687,
641,
314,
3734,
1750,
26,
3107,
17014,
63,
2864,
63,
7125,
199,
2765,
1930,
1159,
1390,
2462,
365,
5198,
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... |
karlnapf/shogun | examples/undocumented/python/kernel_comm_word_string.py | 4 | 1411 | #!/usr/bin/env python
from tools.load import LoadMatrix
import shogun as sg
lm=LoadMatrix()
traindat = lm.load_dna('../data/fm_train_dna.dat')
testdat = lm.load_dna('../data/fm_test_dna.dat')
parameter_list = [[traindat,testdat,4,0,False, False],[traindat,testdat,4,0,False,False]]
def kernel_comm_word_string (fm_trai... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
504,
7249,
14,
912,
492,
7190,
6443,
199,
646,
930,
17924,
465,
12578,
199,
14344,
29,
6200,
6443,
342,
199,
199,
1239,
688,
292,
275,
24546,
14,
912,
63,
21075,
24592,
576,
15,
10886,
63,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
504,
7249,
14,
912,
492,
7190,
6443,
199,
646,
930,
17924,
465,
12578,
199,
14344,
29,
6200,
6443,
342,
199,
199,
1239,
688,
292,
275,
24546,
14,
912,
63,
21075,
24592,
576,
15,
10886,
63,
2834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
OsirisSPS/osiris-sps | client/share/plugins/AF9A4C281070FDB0F34CF417CDB168AB38C8A388/lib/encodings/cp1026.py | 593 | 13369 | """ Python Character Mapping Codec cp1026 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP1026.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,inp... | gpl-3.0 | [
624,
2018,
17660,
12340,
13732,
7667,
32351,
4046,
687,
283,
32362,
15,
27839,
4149,
15,
17233,
51,
2161,
15,
37,
6265,
36,
948,
15,
2890,
32351,
14,
17715,
7,
543,
486,
2143,
67,
14,
647,
14,
199,
199,
624,
23662,
199,
199,
646,
... | [
2018,
17660,
12340,
13732,
7667,
32351,
4046,
687,
283,
32362,
15,
27839,
4149,
15,
17233,
51,
2161,
15,
37,
6265,
36,
948,
15,
2890,
32351,
14,
17715,
7,
543,
486,
2143,
67,
14,
647,
14,
199,
199,
624,
23662,
199,
199,
646,
6010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Leblantoine/nanocloud | photon/merge_libs_wrapper.py | 5 | 5944 | import os
import sys
import vs_toolchain
if sys.platform == 'win32':
vs_toolchain.GetToolchainDir()
os.environ['PATH'] += os.pathsep + os.environ['GYP_MSVS_OVERRIDE_PATH'] + '\\VC\\bin'
#!/usr/bin/env python
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is ... | agpl-3.0 | [
646,
747,
199,
646,
984,
199,
646,
8118,
63,
22572,
199,
199,
692,
984,
14,
3246,
508,
283,
2676,
708,
356,
272,
8118,
63,
22572,
14,
1002,
5157,
4429,
3567,
342,
272,
747,
14,
2314,
459,
3243,
418,
847,
747,
14,
17843,
435,
747,
... | [
747,
199,
646,
984,
199,
646,
8118,
63,
22572,
199,
199,
692,
984,
14,
3246,
508,
283,
2676,
708,
356,
272,
8118,
63,
22572,
14,
1002,
5157,
4429,
3567,
342,
272,
747,
14,
2314,
459,
3243,
418,
847,
747,
14,
17843,
435,
747,
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... |
jay-johnson/kubernetes | cluster/juju/charms/trusty/kubernetes-master/hooks/setup.py | 149 | 1410 | #!/usr/bin/env python
# Copyright 2015 The Kubernetes 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
#
# Unle... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
6900,
710,
28723,
6642,
2900,
4481,
4644,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
6900,
710,
28723,
6642,
2900,
4481,
4644,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
margamanterola/Cinnamon | files/usr/share/cinnamon/cinnamon-settings/bin/tweenEquations.py | 16 | 7813 | """
made with the file cjs/tweener/equations.js
Original copyright notice of the source file:
Copyright 2008 litl, LLC.
Equations
Main equations for the Tweener class
@author Zeh Fernando, Nate Chatellier
@version 1.0.2
Disclaimer for Robert Penner's Easing ... | gpl-2.0 | [
624,
272,
6326,
543,
314,
570,
286,
3596,
15,
84,
1129,
727,
15,
15788,
1298,
14,
3596,
339,
12769,
4248,
4245,
402,
314,
1350,
570,
26,
339,
1898,
9079,
28649,
76,
12,
20376,
14,
339,
662,
392,
1298,
272,
11298,
26426,
367,
314,
... | [
272,
6326,
543,
314,
570,
286,
3596,
15,
84,
1129,
727,
15,
15788,
1298,
14,
3596,
339,
12769,
4248,
4245,
402,
314,
1350,
570,
26,
339,
1898,
9079,
28649,
76,
12,
20376,
14,
339,
662,
392,
1298,
272,
11298,
26426,
367,
314,
377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.