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 |
|---|---|---|---|---|---|---|---|---|
patrick-nicholson/spark | python/pyspark/statcounter.py | 130 | 5115 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | [
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
148... | [
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
14857,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
suiyuan2009/tensorflow | tensorflow/python/kernel_tests/conv1d_test.py | 97 | 2169 | # 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... |
joelddiaz/openshift-tools | openshift/installer/vendored/openshift-ansible-3.10.0-0.29.0/roles/lib_utils/test/test_load_and_handle_cert.py | 78 | 2030 | '''
Unit tests for the load_and_handle_cert method
'''
import datetime
import os
import sys
import pytest
MODULE_PATH = os.path.realpath(os.path.join(__file__, os.pardir, os.pardir, 'library'))
sys.path.insert(1, MODULE_PATH)
# pylint: disable=import-error,wrong-import-position,missing-docstring
# pylint: disable=i... | apache-2.0 | [
2344,
199,
12008,
2295,
367,
314,
2248,
63,
460,
63,
2479,
63,
4736,
1083,
199,
2344,
199,
646,
2197,
199,
646,
747,
199,
646,
984,
199,
199,
646,
4613,
199,
199,
10001,
63,
3243,
275,
747,
14,
515,
14,
11091,
8,
736,
14,
515,
1... | [
199,
12008,
2295,
367,
314,
2248,
63,
460,
63,
2479,
63,
4736,
1083,
199,
2344,
199,
646,
2197,
199,
646,
747,
199,
646,
984,
199,
199,
646,
4613,
199,
199,
10001,
63,
3243,
275,
747,
14,
515,
14,
11091,
8,
736,
14,
515,
14,
904... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WhireCrow/openwrt-mt7620 | staging_dir/target-mipsel_r2_uClibc-0.9.33.2/usr/lib/python2.7/encodings/__init__.py | 406 | 5698 | """ Standard "encodings" Package
Standard Python encoding modules are stored in this package
directory.
Codec modules must have names corresponding to normalized encoding
names as defined in the normalize_encoding() function below, e.g.
'utf-8' must be implemented by the module 'utf_8.py'.
Ea... | gpl-2.0 | [
624,
9739,
298,
21138,
2,
15665,
339,
9739,
2018,
2644,
4621,
787,
5489,
315,
642,
2559,
272,
2082,
14,
339,
13732,
4621,
1471,
1172,
1561,
5226,
370,
9657,
2644,
272,
1561,
465,
3247,
315,
314,
7666,
63,
2991,
342,
805,
5084,
12,
3... | [
9739,
298,
21138,
2,
15665,
339,
9739,
2018,
2644,
4621,
787,
5489,
315,
642,
2559,
272,
2082,
14,
339,
13732,
4621,
1471,
1172,
1561,
5226,
370,
9657,
2644,
272,
1561,
465,
3247,
315,
314,
7666,
63,
2991,
342,
805,
5084,
12,
325,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
brunolimawd/talk-nodebots-roll-out | node_modules/node-sass/node_modules/node-gyp/gyp/tools/pretty_gyp.py | 2618 | 4756 | #!/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.
"""Pretty-prints the contents of a GYP file."""
import sys
import re
# Regex to remove comments when we're counting braces.
COMMENT_RE = ... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
3... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
frossigneux/blazar | climate/api/root.py | 2 | 1499 | # Copyright (c) 2014 Bull.
#
# 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, sof... | apache-2.0 | [
3,
1898,
334,
67,
9,
6927,
699,
979,
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,
2047,
... | [
1898,
334,
67,
9,
6927,
699,
979,
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,
2047,
1443... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
brchiu/tensorflow | tensorflow/python/debug/cli/command_parser.py | 79 | 17451 | # 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... |
hybrideagle/django | django/contrib/gis/geos/prototypes/io.py | 309 | 9480 | import threading
from ctypes import POINTER, Structure, byref, c_char, c_char_p, c_int, c_size_t
from django.contrib.gis.geos.base import GEOSBase
from django.contrib.gis.geos.libgeos import GEOM_PTR, GEOSFuncFactory
from django.contrib.gis.geos.prototypes.errcheck import (
check_geom, check_sized_string, check_st... | bsd-3-clause | [
646,
5796,
199,
504,
5577,
492,
6569,
12,
21730,
12,
15968,
12,
286,
63,
1560,
12,
286,
63,
1560,
63,
80,
12,
286,
63,
442,
12,
286,
63,
890,
63,
84,
199,
199,
504,
1639,
14,
2828,
14,
5668,
14,
12151,
14,
1095,
492,
11920,
15... | [
5796,
199,
504,
5577,
492,
6569,
12,
21730,
12,
15968,
12,
286,
63,
1560,
12,
286,
63,
1560,
63,
80,
12,
286,
63,
442,
12,
286,
63,
890,
63,
84,
199,
199,
504,
1639,
14,
2828,
14,
5668,
14,
12151,
14,
1095,
492,
11920,
1563,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lynndotconfig/server-tools | base_optional_quick_create/model.py | 41 | 2507 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2013 Agile Business Group sagl (<http://www.agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public Licen... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
1898,
334,
35,
9,
6171,
21582,
441,
23813,
5611,
308,
643,
76,
8642,
1014,
921,
1544,
14,
643,
441,
6856,
14,
957,
18956,
199,
3,
199,
3,
259,
961,
2240,
3... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
1898,
334,
35,
9,
6171,
21582,
441,
23813,
5611,
308,
643,
76,
8642,
1014,
921,
1544,
14,
643,
441,
6856,
14,
957,
18956,
199,
3,
199,
3,
259,
961,
2240,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
niklasberglund/freesprints | source/freesprints/__init__.py | 1 | 9191 | import pygame, sys
import pygame.font
from pygame.locals import *
import logging
import fs_menu
import helpers as helpers
import plugins
import os.path
import race
import hardware
import defaults
import logging
from rainbow_logging_handler import RainbowLoggingHandler
DISPLAY_RESOLUTION = (1024, 768)
# platform-speci... | mit | [
646,
9193,
12,
984,
199,
646,
9193,
14,
4246,
199,
504,
9193,
14,
9350,
492,
627,
199,
646,
2050,
199,
646,
7449,
63,
4470,
199,
646,
10897,
465,
10897,
199,
646,
8963,
199,
646,
747,
14,
515,
199,
646,
21209,
199,
646,
14991,
199... | [
9193,
12,
984,
199,
646,
9193,
14,
4246,
199,
504,
9193,
14,
9350,
492,
627,
199,
646,
2050,
199,
646,
7449,
63,
4470,
199,
646,
10897,
465,
10897,
199,
646,
8963,
199,
646,
747,
14,
515,
199,
646,
21209,
199,
646,
14991,
199,
646... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kingvuplus/PE-gui | e2reactor.py | 29 | 5262 | # enigma2 reactor: based on pollreactor, which is
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Maintainer: U{Felix Domke<mailto:tmbinc@elitedvb.net>}
"""
# System imports
import select, errno, sys
# Twisted imports
from twisted.python import log, failure
from twisted.interne... | gpl-2.0 | [
3,
655,
27021,
18,
9655,
26,
4079,
641,
11271,
13544,
12,
1314,
365,
199,
3,
1898,
334,
67,
9,
12521,
13,
15431,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
421,
199,
624,
199,
11903,
8368,
281,
26,
738,
91,
3456,
... | [
655,
27021,
18,
9655,
26,
4079,
641,
11271,
13544,
12,
1314,
365,
199,
3,
1898,
334,
67,
9,
12521,
13,
15431,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
421,
199,
624,
199,
11903,
8368,
281,
26,
738,
91,
3456,
2052... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pburdet/hyperspy | hyperspy/_signals/eds.py | 1 | 21939 | # -*- coding: utf-8 -*-
# Copyright 2007-2011 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
10219,
13,
8128,
710,
21344,
51,
647,
19782,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
221,
21344,
51,
647,
14,
199,
3,
199,
3,
221,
21344,
51,
647,
365,
2867,
2032,
26,
126... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
10219,
13,
8128,
710,
21344,
51,
647,
19782,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
221,
21344,
51,
647,
14,
199,
3,
199,
3,
221,
21344,
51,
647,
365,
2867,
2032,
26,
1265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
matrix65536/kosmosfs | src/python/kfscp/kfscp.py | 11 | 8528 | #
# $Id$
#
# Copyright 2006 Kosmix Corp.
#
# Author: Blake Lewis (Kosmix Corp.)
#
# This file is part of Kosmos File System (KFS).
#
# 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://w... | apache-2.0 | [
3,
199,
3,
2672,
1304,
4,
199,
3,
199,
3,
1898,
8315,
1804,
736,
13979,
22304,
14,
199,
3,
199,
3,
6529,
26,
699,
416,
415,
491,
546,
374,
334,
43,
736,
13979,
22304,
4959,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1804,
736,
... | [
199,
3,
2672,
1304,
4,
199,
3,
199,
3,
1898,
8315,
1804,
736,
13979,
22304,
14,
199,
3,
199,
3,
6529,
26,
699,
416,
415,
491,
546,
374,
334,
43,
736,
13979,
22304,
4959,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1804,
736,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gurneyalex/OpenUpgrade | addons/project/tests/__init__.py | 121 | 1126 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2013-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
6171,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
23813,
24636,
199,
3,
259,
1898,
334,
67,
9,
6171,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
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... |
dansomething/vim-snippets | pythonx/vimsnippets.py | 41 | 2928 | """Helper methods used in UltiSnips snippets."""
import string, vim
def complete(tab, opts):
"""
get options that start with tab
:param tab: query string
:param opts: list that needs to be completed
:return: a string that start with tab
"""
msg = "({0})"
if tab:
opts = [m[len... | mit | [
624,
4433,
3102,
1202,
315,
738,
21934,
20821,
6142,
19484,
1041,
199,
199,
646,
1059,
12,
6695,
199,
199,
318,
4890,
8,
2902,
12,
3999,
304,
272,
408,
272,
664,
1511,
626,
1343,
543,
5174,
339,
520,
635,
5174,
26,
1827,
1059,
272,
... | [
4433,
3102,
1202,
315,
738,
21934,
20821,
6142,
19484,
1041,
199,
199,
646,
1059,
12,
6695,
199,
199,
318,
4890,
8,
2902,
12,
3999,
304,
272,
408,
272,
664,
1511,
626,
1343,
543,
5174,
339,
520,
635,
5174,
26,
1827,
1059,
272,
520,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ajm-asiaa/test | carta/scriptedClient/tests/test_image.py | 6 | 1942 | import os
import time
import Image
import carta.cartavis as cartavis
import pyautogui
import ImageUtil
def test_saveImage(cartavisInstance, cleanSlate):
"""
Test that an image can be saved from the GUI.
"""
cartavisInstance.setImageLayout()
i = cartavisInstance.getImageViews()
filename = '/tmp... | gpl-2.0 | [
646,
747,
221,
199,
646,
900,
199,
646,
6047,
199,
646,
9590,
502,
14,
7007,
502,
5068,
465,
9590,
502,
5068,
199,
646,
1134,
6898,
974,
1907,
199,
646,
6047,
9562,
199,
199,
318,
511,
63,
2117,
3491,
8,
7007,
502,
5068,
3244,
12,... | [
747,
221,
199,
646,
900,
199,
646,
6047,
199,
646,
9590,
502,
14,
7007,
502,
5068,
465,
9590,
502,
5068,
199,
646,
1134,
6898,
974,
1907,
199,
646,
6047,
9562,
199,
199,
318,
511,
63,
2117,
3491,
8,
7007,
502,
5068,
3244,
12,
3633... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
hujiajie/chromium-crosswalk | third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests_unittest.py | 13 | 3176 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import flakytests
from webkitpy.common.checkout.scm.scm_mock import MockSCM
from webkitpy.layout_tests.layout_package import bot_test_expectations
from webk... | bsd-3-clause | [
3,
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
646,
17566,
10562,
2219,
19... | [
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
646,
17566,
10562,
2219,
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... |
jagguli/intellij-community | python/lib/Lib/site-packages/django/db/models/related.py | 231 | 3157 | from django.utils.encoding import smart_unicode
from django.db.models.fields import BLANK_CHOICE_DASH
class BoundRelatedObject(object):
def __init__(self, related_object, field_mapping, original):
self.relation = related_object
self.field_mappings = field_mapping[related_object.name]
def templ... | apache-2.0 | [
504,
1639,
14,
1208,
14,
2991,
492,
11179,
63,
2975,
199,
504,
1639,
14,
697,
14,
992,
14,
955,
492,
699,
10825,
43,
63,
22544,
63,
29019,
199,
199,
533,
21972,
13885,
1692,
8,
785,
304,
272,
347,
636,
826,
721,
277,
12,
4048,
6... | [
1639,
14,
1208,
14,
2991,
492,
11179,
63,
2975,
199,
504,
1639,
14,
697,
14,
992,
14,
955,
492,
699,
10825,
43,
63,
22544,
63,
29019,
199,
199,
533,
21972,
13885,
1692,
8,
785,
304,
272,
347,
636,
826,
721,
277,
12,
4048,
63,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
stevedh/queryutils | queryutils/user.py | 1 | 2181 |
from json import JSONEncoder
class User(object):
def __init__(self, name):
self.name = name
self.sessions = {}
self.queries = []
class VerboseUserEncoder(JSONEncoder):
def encode(self, obj):
user_dict = {}
user_dict['name'] = obj.name
session_dict = {}
... | bsd-3-clause | [
199,
504,
2022,
492,
4840,
6679,
199,
199,
533,
2876,
8,
785,
304,
2286,
347,
636,
826,
721,
277,
12,
536,
304,
267,
291,
14,
354,
275,
536,
267,
291,
14,
11676,
275,
1052,
267,
291,
14,
10590,
275,
942,
199,
199,
533,
5444,
222... | [
504,
2022,
492,
4840,
6679,
199,
199,
533,
2876,
8,
785,
304,
2286,
347,
636,
826,
721,
277,
12,
536,
304,
267,
291,
14,
354,
275,
536,
267,
291,
14,
11676,
275,
1052,
267,
291,
14,
10590,
275,
942,
199,
199,
533,
5444,
2220,
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... |
daavery/audacity | lib-src/lv2/lv2/waflib/Configure.py | 181 | 9880 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import os,shlex,sys,time
from waflib import ConfigSet,Utils,Options,Logs,Context,Build,Errors
try:
from urllib import request
except ImportError:
from urllib import urlopen
... | gpl-2.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2644,
26,
2774,
13,
24,
199,
3,
14750,
1,
4226,
440,
5283,
1,
1455,
921,
21500,
14,
31864,
14,
957,
15,
3187,
15,
4757,
15,
21500,
2706,
15,
4780,
14,
1360,
20930,
2873,
24522,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
2644,
26,
2774,
13,
24,
199,
3,
14750,
1,
4226,
440,
5283,
1,
1455,
921,
21500,
14,
31864,
14,
957,
15,
3187,
15,
4757,
15,
21500,
2706,
15,
4780,
14,
1360,
20930,
2873,
24522,
63,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Gagnon06/StrategyIA | RULEngine/Communication/protobuf/google/protobuf/internal/message_test.py | 6 | 29543 | #! /usr/bin/python
#
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# https://developers.google.com/protocol-buffers/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
... | mit | [
3168,
1182,
2647,
15,
1393,
15,
1548,
199,
3,
199,
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,
4178,
921,
23826,
14,
3098,
14,
957,
15,
... | [
1182,
2647,
15,
1393,
15,
1548,
199,
3,
199,
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,
4178,
921,
23826,
14,
3098,
14,
957,
15,
3922,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ejpbruel/servo | tests/wpt/web-platform-tests/websockets/handlers/echo_wsh.py | 163 | 1219 | #!/usr/bin/python
from mod_pywebsocket import msgutil
from mod_pywebsocket import common
_GOODBYE_MESSAGE = u'Goodbye'
def web_socket_do_extra_handshake(request):
# This example handler accepts any request. See origin_check_wsh.py for how
# to reject access from untrusted scripts based on origin value.
if... | mpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
504,
3413,
63,
21387,
492,
1499,
1974,
199,
504,
3413,
63,
21387,
492,
2863,
199,
199,
63,
17316,
2846,
57,
37,
63,
8272,
275,
399,
7,
20652,
16481,
7,
199,
199,
318,
3330,
63,
3450,
63,
1117,
... | [
2647,
15,
1393,
15,
1548,
199,
504,
3413,
63,
21387,
492,
1499,
1974,
199,
504,
3413,
63,
21387,
492,
2863,
199,
199,
63,
17316,
2846,
57,
37,
63,
8272,
275,
399,
7,
20652,
16481,
7,
199,
199,
318,
3330,
63,
3450,
63,
1117,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
js0701/chromium-crosswalk | third_party/simplejson/ordered_dict.py | 1039 | 3370 | """Drop-in replacement for collections.OrderedDict by Raymond Hettinger
http://code.activestate.com/recipes/576693/
"""
from UserDict import DictMixin
# Modified from original to support Python 2.4, see
# http://code.google.com/p/simplejson/issues/detail?id=53
try:
all
except NameError:
def all(seq):
... | bsd-3-clause | [
624,
11070,
13,
262,
8343,
367,
5055,
14,
16882,
701,
30703,
2106,
68,
869,
386,
1337,
281,
199,
199,
1014,
921,
600,
14,
32595,
14,
957,
15,
25200,
15,
1641,
1272,
3129,
15,
199,
199,
624,
199,
504,
32241,
492,
7448,
4256,
199,
1... | [
11070,
13,
262,
8343,
367,
5055,
14,
16882,
701,
30703,
2106,
68,
869,
386,
1337,
281,
199,
199,
1014,
921,
600,
14,
32595,
14,
957,
15,
25200,
15,
1641,
1272,
3129,
15,
199,
199,
624,
199,
504,
32241,
492,
7448,
4256,
199,
199,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mbroadst/debian-qpid-proton | examples/python/proton_tornado.py | 12 | 3592 | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
255... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
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... |
LeMeteore/python_koans-1 | python3/libs/colorama/winterm.py | 523 | 4206 | # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
from . import win32
# from wincon.h
class WinColor(object):
BLACK = 0
BLUE = 1
GREEN = 2
CYAN = 3
RED = 4
MAGENTA = 5
YELLOW = 6
GREY = 7
# from wincon.h
class WinStyle(object):
NORMAL = 0... | mit | [
3,
1898,
1603,
265,
1619,
290,
869,
580,
15515,
6171,
14,
6289,
650,
13,
16009,
4190,
12,
1937,
5113,
570,
14,
199,
504,
1275,
492,
4747,
708,
421,
199,
3,
687,
4747,
388,
14,
72,
199,
533,
13036,
4117,
8,
785,
304,
272,
26774,
... | [
1898,
1603,
265,
1619,
290,
869,
580,
15515,
6171,
14,
6289,
650,
13,
16009,
4190,
12,
1937,
5113,
570,
14,
199,
504,
1275,
492,
4747,
708,
421,
199,
3,
687,
4747,
388,
14,
72,
199,
533,
13036,
4117,
8,
785,
304,
272,
26774,
257,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jeffreyjinfeng/scrapy | scrapy/pipelines/media.py | 122 | 4947 | from __future__ import print_function
import logging
from collections import defaultdict
from twisted.internet.defer import Deferred, DeferredList
from twisted.python.failure import Failure
from scrapy.utils.defer import mustbe_deferred, defer_result
from scrapy.utils.request import request_fingerprint
from scrapy.ut... | bsd-3-clause | [
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
646,
2050,
199,
504,
5055,
492,
10018,
199,
504,
7390,
14,
4901,
14,
11610,
492,
17448,
12,
17448,
1296,
199,
504,
7390,
14,
1548,
14,
5328,
492,
20367,
199,
199,
504,
18918,
14,
... | [
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
646,
2050,
199,
504,
5055,
492,
10018,
199,
504,
7390,
14,
4901,
14,
11610,
492,
17448,
12,
17448,
1296,
199,
504,
7390,
14,
1548,
14,
5328,
492,
20367,
199,
199,
504,
18918,
14,
1208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
carolFrohlich/nipype | nipype/pipeline/plugins/tests/test_debug.py | 2 | 1618 | # -*- coding: utf-8 -*-
import os
import nipype.interfaces.base as nib
from tempfile import mkdtemp
from shutil import rmtree
from nipype.testing import assert_raises, assert_false
import nipype.pipeline.engine as pe
class InputSpec(nib.TraitedSpec):
input1 = nib.traits.Int(desc='a random int')
input2 = nib.... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
747,
199,
646,
302,
711,
514,
14,
7436,
14,
1095,
465,
302,
1892,
199,
504,
5549,
492,
31781,
199,
504,
5145,
492,
20978,
199,
199,
504,
302,
711,
514,
14,
4776,
492,
702,
63,
353... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
747,
199,
646,
302,
711,
514,
14,
7436,
14,
1095,
465,
302,
1892,
199,
504,
5549,
492,
31781,
199,
504,
5145,
492,
20978,
199,
199,
504,
302,
711,
514,
14,
4776,
492,
702,
63,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sigma-random/peach | Peach/Agent/network.py | 3 | 6903 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import sys
import threading
import os
import re
import socket
from Peach.agent import Monitor
try:
def search_file... | mpl-2.0 | [
3,
961,
5800,
5495,
8204,
365,
5420,
370,
314,
2895,
402,
314,
17728,
1684,
199,
3,
844,
12,
373,
14,
499,
14,
16,
14,
982,
282,
1331,
402,
314,
28481,
1990,
440,
1854,
543,
642,
199,
3,
570,
12,
2047,
883,
3332,
1373,
737,
1455... | [
961,
5800,
5495,
8204,
365,
5420,
370,
314,
2895,
402,
314,
17728,
1684,
199,
3,
844,
12,
373,
14,
499,
14,
16,
14,
982,
282,
1331,
402,
314,
28481,
1990,
440,
1854,
543,
642,
199,
3,
570,
12,
2047,
883,
3332,
1373,
737,
1455,
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... |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/test/test_class.py | 86 | 18371 | "Test the functionality of Python classes implementing operators."
import unittest
from test import test_support
testmeths = [
# Binary operations
"add",
"radd",
"sub",
"rsub",
"mul",
"rmul",
"div",
"rdiv",
"mod",
"rmod",
"divmod",
"rdivmod",
"pow",
"rpow",
... | gpl-3.0 | [
2,
774,
314,
9330,
402,
2018,
3992,
18234,
10211,
2122,
199,
199,
646,
2882,
199,
199,
504,
511,
492,
511,
63,
4058,
199,
199,
396,
5247,
83,
275,
359,
199,
199,
3,
14161,
5331,
272,
298,
525,
401,
272,
298,
22958,
401,
272,
298,
... | [
774,
314,
9330,
402,
2018,
3992,
18234,
10211,
2122,
199,
199,
646,
2882,
199,
199,
504,
511,
492,
511,
63,
4058,
199,
199,
396,
5247,
83,
275,
359,
199,
199,
3,
14161,
5331,
272,
298,
525,
401,
272,
298,
22958,
401,
272,
298,
954... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DANCEcollaborative/forum-xblock | XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/django/db/models/options.py | 92 | 21544 | import re
from bisect import bisect
from django.conf import settings
from django.db.models.related import RelatedObject
from django.db.models.fields.related import ManyToManyRel
from django.db.models.fields import AutoField, FieldDoesNotExist
from django.db.models.fields.proxy import OrderWrt
from django.db.models.loa... | mit | [
646,
295,
199,
504,
19063,
492,
19063,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
697,
14,
992,
14,
2407,
492,
20116,
1692,
199,
504,
1639,
14,
697,
14,
992,
14,
955,
14,
2407,
492,
15517,
6749,
5640,
199,
504,
... | [
295,
199,
504,
19063,
492,
19063,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
697,
14,
992,
14,
2407,
492,
20116,
1692,
199,
504,
1639,
14,
697,
14,
992,
14,
955,
14,
2407,
492,
15517,
6749,
5640,
199,
504,
1639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wdv4758h/ZipPy | lib-python/3/fileinput.py | 5 | 14366 | """Helper class to quickly write a loop over all standard input files.
Typical use is:
import fileinput
for line in fileinput.input():
process(line)
This iterates over the lines of all files listed in sys.argv[1:],
defaulting to sys.stdin if the list is empty. If a filename is '-' it
is also replace... | bsd-3-clause | [
624,
4433,
1021,
370,
23661,
2218,
282,
4438,
1806,
1006,
4465,
1324,
1584,
14,
199,
199,
26876,
675,
365,
26,
339,
492,
570,
1210,
272,
367,
1004,
315,
570,
1210,
14,
1210,
837,
267,
2112,
8,
604,
9,
199,
199,
2765,
2740,
2335,
1... | [
4433,
1021,
370,
23661,
2218,
282,
4438,
1806,
1006,
4465,
1324,
1584,
14,
199,
199,
26876,
675,
365,
26,
339,
492,
570,
1210,
272,
367,
1004,
315,
570,
1210,
14,
1210,
837,
267,
2112,
8,
604,
9,
199,
199,
2765,
2740,
2335,
1806,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
infosiftr/openxenmanager | window_host.py | 2 | 27126 | # -----------------------------------------------------------------------
# OpenXenManager
#
# Copyright (C) 2009 Alberto Gonzalez Rodriguez alberto@pesadilla.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 Soft... | gpl-2.0 | [
3,
5620,
12797,
199,
3,
3232,
30643,
2988,
199,
3,
199,
3,
1898,
334,
35,
9,
8937,
4580,
605,
475,
598,
265,
90,
1895,
90,
820,
364,
322,
71,
310,
90,
741,
605,
475,
32,
321,
2231,
22429,
416,
14,
1308,
199,
3,
961,
2240,
365,... | [
5620,
12797,
199,
3,
3232,
30643,
2988,
199,
3,
199,
3,
1898,
334,
35,
9,
8937,
4580,
605,
475,
598,
265,
90,
1895,
90,
820,
364,
322,
71,
310,
90,
741,
605,
475,
32,
321,
2231,
22429,
416,
14,
1308,
199,
3,
961,
2240,
365,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mahendra-r/edx-platform | common/test/acceptance/tests/video/test_video_events.py | 50 | 13897 | """Ensure videos emit proper events"""
import datetime
import json
import ddt
import unittest
from ..helpers import EventsTestMixin
from .test_video_module import VideoBaseTest
from ...pages.lms.video.video import _parse_time_str
from openedx.core.lib.tests.assertions.events import assert_event_matches, assert_event... | agpl-3.0 | [
624,
13913,
22010,
8689,
5576,
4474,
624,
199,
199,
646,
2197,
199,
646,
2022,
199,
646,
366,
3583,
199,
646,
2882,
199,
199,
504,
2508,
7546,
492,
27982,
22060,
199,
504,
1275,
396,
63,
3722,
63,
578,
492,
15709,
23170,
199,
504,
2... | [
13913,
22010,
8689,
5576,
4474,
624,
199,
199,
646,
2197,
199,
646,
2022,
199,
646,
366,
3583,
199,
646,
2882,
199,
199,
504,
2508,
7546,
492,
27982,
22060,
199,
504,
1275,
396,
63,
3722,
63,
578,
492,
15709,
23170,
199,
504,
2263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
FederatedAI/FATE | python/federatedml/statistic/intersect/rsa_cache/redis_adaptor.py | 2 | 2586 | #
# Copyright 2019 The FATE 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 appli... | apache-2.0 | [
3,
199,
3,
221,
1898,
20312,
710,
481,
1951,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
221,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
221,
1265,
1443,
440,
675,
642,
570,
871,
... | [
199,
3,
221,
1898,
20312,
710,
481,
1951,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
221,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
221,
1265,
1443,
440,
675,
642,
570,
871,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lmazuel/azure-sdk-for-python | azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/operation.py | 2 | 1096 | # 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... |
ajhager/copycat | copycat/workspace/string.py | 1 | 12784 | # Copyright (c) 2007-2017 Joseph Hager.
#
# Copycat is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License,
# as published by the Free Software Foundation.
#
# Copycat is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; with... | gpl-2.0 | [
3,
1898,
334,
67,
9,
10219,
13,
10680,
1603,
3362,
838,
869,
1456,
14,
199,
3,
199,
3,
11247,
3385,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
1015,
499,
402,
314,
1664,
169... | [
1898,
334,
67,
9,
10219,
13,
10680,
1603,
3362,
838,
869,
1456,
14,
199,
3,
199,
3,
11247,
3385,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
1015,
499,
402,
314,
1664,
1696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
noahlittle/noahlittle.github.io | iCTRL/var/mobile/pentest/exploits/iCTRL/cupp/cupp.py | 1 | 55986 | #!/usr/bin/python
#
# [Program]
#
# CUPP 3.1
# Common User Passwords Profiler
#
#
#
# [Author]
#
# Muris Kurgas aka j0rgan
# j0rgan [at] remote-exploit [dot] org
# http://www.remote-exploit.org
# http://www.azuzi.me
#
#
#
# [License]
#
# This program is free software; you can redistribute it and/or modify
# ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
221,
359,
9184,
61,
199,
3,
199,
3,
221,
445,
2160,
48,
650,
14,
17,
199,
3,
221,
13964,
2876,
8325,
3148,
14386,
82,
199,
3,
199,
3,
199,
3,
199,
3,
221,
359,
5949,
61,
199,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
221,
359,
9184,
61,
199,
3,
199,
3,
221,
445,
2160,
48,
650,
14,
17,
199,
3,
221,
13964,
2876,
8325,
3148,
14386,
82,
199,
3,
199,
3,
199,
3,
199,
3,
221,
359,
5949,
61,
199,
3,
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... |
Feverup/ansible-modules-extras | notification/typetalk.py | 54 | 3717 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
BozhkoAlexander/mtasa-blue | vendor/google-breakpad/src/tools/gyp/test/builddir/gyptest-all.py | 185 | 2706 | #!/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.
"""
Verify the settings that cause a set of programs to be created in
a specific build directory, and that no intermediate built files
get c... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
3... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
6029,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kajgan/e2 | lib/python/Components/Converter/ConditionalShowHide.py | 53 | 1460 | from enigma import eTimer
from Converter import Converter
class ConditionalShowHide(Converter, object):
def __init__(self, argstr):
Converter.__init__(self, argstr)
args = argstr.split(',')
self.invert = "Invert" in args
self.blink = "Blink" in args
if self.blink:
self.blinktime = len(args) == 2 and args... | gpl-2.0 | [
504,
655,
27021,
492,
325,
7929,
199,
504,
11801,
351,
492,
11801,
351,
199,
199,
533,
24191,
6824,
18224,
8,
11907,
12,
909,
304,
199,
198,
318,
636,
826,
721,
277,
12,
22494,
304,
507,
198,
11907,
855,
826,
721,
277,
12,
22494,
... | [
655,
27021,
492,
325,
7929,
199,
504,
11801,
351,
492,
11801,
351,
199,
199,
533,
24191,
6824,
18224,
8,
11907,
12,
909,
304,
199,
198,
318,
636,
826,
721,
277,
12,
22494,
304,
507,
198,
11907,
855,
826,
721,
277,
12,
22494,
9,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bealdav/OCB | addons/share/wizard/__init__.py | 448 | 1067 | # -*- 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... |
uranusjr/django | django/contrib/admin/templatetags/admin_urls.py | 26 | 1773 | from urllib.parse import parse_qsl, urlparse, urlunparse
from django import template
from django.contrib.admin.utils import quote
from django.urls import Resolver404, get_script_prefix, resolve
from django.utils.http import urlencode
register = template.Library()
@register.filter
def admin_urlname(value, arg):
... | bsd-3-clause | [
504,
4011,
14,
1122,
492,
2198,
63,
26714,
12,
7097,
12,
30111,
199,
199,
504,
1639,
492,
1978,
199,
504,
1639,
14,
2828,
14,
2113,
14,
1208,
492,
6313,
199,
504,
1639,
14,
3603,
492,
26046,
5188,
12,
664,
63,
1579,
63,
1861,
12,
... | [
4011,
14,
1122,
492,
2198,
63,
26714,
12,
7097,
12,
30111,
199,
199,
504,
1639,
492,
1978,
199,
504,
1639,
14,
2828,
14,
2113,
14,
1208,
492,
6313,
199,
504,
1639,
14,
3603,
492,
26046,
5188,
12,
664,
63,
1579,
63,
1861,
12,
7512,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ISCDtoolbox/FaciLe | pipeline/createDatabase.py | 1 | 2873 | import os
import sys
import numpy as np
from copy import deepcopy
import argparse
#Parallel
import subprocess as sp
import multiprocessing as mp
sys.path.append(os.path.join(os.path.dirname(__file__),"../projects/tools"))
import msh
import executable_paths as exe
def parse():
parser = argparse.ArgumentParser(de... | gpl-3.0 | [
646,
747,
199,
646,
984,
199,
646,
2680,
465,
980,
199,
504,
1331,
492,
14800,
199,
646,
7534,
199,
199,
3,
25721,
199,
646,
3873,
465,
2249,
199,
646,
12866,
465,
6118,
421,
199,
1274,
14,
515,
14,
740,
8,
736,
14,
515,
14,
904... | [
747,
199,
646,
984,
199,
646,
2680,
465,
980,
199,
504,
1331,
492,
14800,
199,
646,
7534,
199,
199,
3,
25721,
199,
646,
3873,
465,
2249,
199,
646,
12866,
465,
6118,
421,
199,
1274,
14,
515,
14,
740,
8,
736,
14,
515,
14,
904,
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... |
thaim/ansible | test/units/modules/network/check_point/test_cp_mgmt_access_layer_facts.py | 19 | 2859 | # Ansible module to manage CheckPoint 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 option) any later version.
#
# Ansible is dist... | mit | [
3,
2622,
859,
370,
9635,
2670,
3428,
15967,
7567,
334,
67,
9,
20312,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
3267,
... | [
2622,
859,
370,
9635,
2670,
3428,
15967,
7567,
334,
67,
9,
20312,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
3267,
701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
blackzw/openwrt_sdk_dev1 | staging_dir/host/lib/python2.7/email/quoprimime.py | 246 | 10848 | # Copyright (C) 2001-2006 Python Software Foundation
# Author: Ben Gertzfield
# Contact: email-sig@python.org
"""Quoted-printable content transfer encoding per RFCs 2045-2047.
This module handles the content transfer encoding method defined in RFC 2045
to encode US ASCII-like 8-bit data called `quoted-printable'. It... | gpl-2.0 | [
3,
1898,
334,
35,
9,
12521,
13,
7968,
2018,
2290,
2752,
199,
3,
6529,
26,
26844,
22261,
3903,
698,
199,
3,
18684,
26,
3031,
13,
4093,
32,
1548,
14,
1308,
199,
199,
624,
24115,
13,
20557,
1564,
9307,
2644,
1126,
7329,
83,
499,
1261... | [
1898,
334,
35,
9,
12521,
13,
7968,
2018,
2290,
2752,
199,
3,
6529,
26,
26844,
22261,
3903,
698,
199,
3,
18684,
26,
3031,
13,
4093,
32,
1548,
14,
1308,
199,
199,
624,
24115,
13,
20557,
1564,
9307,
2644,
1126,
7329,
83,
499,
12618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
weimingtom/python-for-android | python3-alpha/python3-src/Lib/multiprocessing/process.py | 45 | 9778 | #
# Module providing the `Process` class which emulates `threading.Thread`
#
# multiprocessing/process.py
#
# Copyright (c) 2006-2008, R Oudkerk
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#... | apache-2.0 | [
3,
199,
3,
5673,
13070,
314,
658,
3498,
64,
1021,
1314,
17423,
2335,
658,
12562,
14,
4436,
64,
199,
3,
199,
3,
12866,
15,
1412,
14,
647,
199,
3,
199,
3,
1898,
334,
67,
9,
8315,
13,
9300,
12,
820,
593,
1181,
2570,
75,
199,
3,
... | [
199,
3,
5673,
13070,
314,
658,
3498,
64,
1021,
1314,
17423,
2335,
658,
12562,
14,
4436,
64,
199,
3,
199,
3,
12866,
15,
1412,
14,
647,
199,
3,
199,
3,
1898,
334,
67,
9,
8315,
13,
9300,
12,
820,
593,
1181,
2570,
75,
199,
3,
2900... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
iain-peddie/well-behaved-python | tests/WellBehavedPythonTests/Discovery/ModuleExaminerTests.py | 1 | 3114 | #!/usr/bin/env python3
# Copyright 2013 Iain Peddie inr314159@hotmail.com
#
# This file is part of WellBehavedPython
#
# WellBehavedPython 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 v... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
3,
1898,
6171,
473,
1581,
510,
379,
15130,
315,
82,
8988,
9327,
32,
8885,
1198,
14,
957,
199,
3,
221,
199,
3,
259,
961,
570,
365,
1777,
402,
644,
1697,
3655,
72,
4292,
4718,
19... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
3,
1898,
6171,
473,
1581,
510,
379,
15130,
315,
82,
8988,
9327,
32,
8885,
1198,
14,
957,
199,
3,
221,
199,
3,
259,
961,
570,
365,
1777,
402,
644,
1697,
3655,
72,
4292,
4718,
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... |
HBehrens/feedsanitizer | django/utils/autoreload.py | 71 | 4279 | # Autoreloading launcher.
# Borrowed from Peter Hunt and the CherryPy project (http://www.cherrypy.org).
# Some taken from Ian Bicking's Paste (http://pythonpaste.org/).
#
# Portions copyright (c) 2004, CherryPy Team (team@cherrypy.org)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with ... | mit | [
3,
27722,
720,
8786,
28757,
14,
199,
3,
699,
19598,
379,
687,
22912,
869,
638,
436,
314,
30992,
27794,
2199,
334,
1014,
921,
1544,
14,
23438,
14,
1308,
680,
199,
3,
6601,
9394,
687,
473,
290,
699,
2000,
316,
1159,
510,
9209,
334,
... | [
27722,
720,
8786,
28757,
14,
199,
3,
699,
19598,
379,
687,
22912,
869,
638,
436,
314,
30992,
27794,
2199,
334,
1014,
921,
1544,
14,
23438,
14,
1308,
680,
199,
3,
6601,
9394,
687,
473,
290,
699,
2000,
316,
1159,
510,
9209,
334,
1014,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MapofLife/MOL | app/mapreduce/lib/pipeline/handlers.py | 65 | 1049 | #!/usr/bin/env python
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7129,
4475,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7129,
4475,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
m3z/HT | openstack_dashboard/dashboards/admin/instances/tests.py | 1 | 6158 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | [
3,
6695,
26,
20849,
29,
20,
20105,
29,
20,
25966,
29,
20,
199,
199,
3,
1898,
6029,
653,
2871,
7586,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
... | [
6695,
26,
20849,
29,
20,
20105,
29,
20,
25966,
29,
20,
199,
199,
3,
1898,
6029,
653,
2871,
7586,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
40223226/2015cd_midterm | static/Brython3.1.1-20150328-091302/Lib/urllib/parse.py | 735 | 35170 | """Parse (absolute and relative) URLs.
urlparse module is based upon the following RFC specifications.
RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding
and L. Masinter, January 2005.
RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
and L.Masinter, Decemb... | gpl-3.0 | [
624,
4003,
334,
6116,
436,
3847,
9,
10867,
14,
199,
199,
10290,
859,
365,
4079,
12188,
314,
2569,
7329,
28754,
14,
199,
199,
14468,
10551,
1184,
334,
18472,
1272,
304,
298,
12421,
7337,
473,
8577,
2,
701,
377,
14,
23207,
8715,
13,
4... | [
4003,
334,
6116,
436,
3847,
9,
10867,
14,
199,
199,
10290,
859,
365,
4079,
12188,
314,
2569,
7329,
28754,
14,
199,
199,
14468,
10551,
1184,
334,
18472,
1272,
304,
298,
12421,
7337,
473,
8577,
2,
701,
377,
14,
23207,
8715,
13,
44,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mrquim/repository.mrquim | plugin.video.Rising.Tides/commonresolvers.py | 186 | 31372 | # -*- coding: utf-8 -*-
'''
Genesis Add-on
Copyright (C) 2014 lambda
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any ... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
272,
598,
6349,
2316,
2654,
13,
265,
272,
1898,
334,
35,
9,
6927,
2400,
339,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
272,
652,
1334,
314,
2... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
272,
598,
6349,
2316,
2654,
13,
265,
272,
1898,
334,
35,
9,
6927,
2400,
339,
961,
2240,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
272,
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... |
danielneis/osf.io | website/addons/osfstorage/views.py | 10 | 8711 | from __future__ import unicode_literals
import httplib
import logging
from modularodm import Q
from modularodm.storage.base import KeyExistsException
from flask import request
from framework.auth import Auth
from framework.exceptions import HTTPError
from framework.auth.decorators import must_be_signed
from websit... | apache-2.0 | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
8809,
199,
646,
2050,
199,
199,
504,
3413,
2238,
364,
77,
492,
1413,
199,
504,
3413,
2238,
364,
77,
14,
3494,
14,
1095,
492,
2606,
7965,
1726,
199,
199,
504,
7209,
492,
1056... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
8809,
199,
646,
2050,
199,
199,
504,
3413,
2238,
364,
77,
492,
1413,
199,
504,
3413,
2238,
364,
77,
14,
3494,
14,
1095,
492,
2606,
7965,
1726,
199,
199,
504,
7209,
492,
1056,
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... |
hainm/MSMs | code/sandbox/tica_kde_svm.py | 3 | 2319 | from sklearn.covariance import EllipticEnvelope
import sklearn.neighbors
from sklearn.svm import OneClassSVM
import os
from msmbuilder import example_datasets, cluster, msm, featurizer, lumping, utils, dataset, decomposition
sysname = os.path.split(os.getcwd())[-1]
dt = 0.25
tica_lagtime = 400
regularization_string = ... | gpl-2.0 | [
504,
6357,
14,
15024,
492,
27761,
764,
28278,
199,
646,
6357,
14,
11113,
199,
504,
6357,
14,
16820,
492,
7309,
2543,
29389,
199,
646,
747,
199,
504,
333,
3300,
5649,
492,
2893,
63,
12281,
12,
4350,
12,
333,
3300,
12,
13953,
300,
179... | [
6357,
14,
15024,
492,
27761,
764,
28278,
199,
646,
6357,
14,
11113,
199,
504,
6357,
14,
16820,
492,
7309,
2543,
29389,
199,
646,
747,
199,
504,
333,
3300,
5649,
492,
2893,
63,
12281,
12,
4350,
12,
333,
3300,
12,
13953,
300,
1793,
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... |
dariemp/odoo | addons/survey/wizard/__init__.py | 385 | 1026 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | agpl-3.0 | [
3,
1882,
2644,
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,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
30... | [
1882,
2644,
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,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
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,
1... |
QualiSystems/Azure-Shell | package/cloudshell/cp/azure/domain/common/vm_details_provider.py | 1 | 5896 | from azure.mgmt.compute.models import StorageAccountTypes
from cloudshell.cp.core.models import VmDetailsProperty, VmDetailsData, VmDetailsNetworkInterface
from cloudshell.cp.azure.domain.vm_management.operations.deploy_operation import get_ip_from_interface_name
class VmDetailsProvider(object):
def __init__(sel... | apache-2.0 | [
504,
13601,
14,
9752,
14,
3357,
14,
992,
492,
10533,
6009,
4100,
199,
504,
8002,
5641,
14,
1850,
14,
1018,
14,
992,
492,
812,
77,
11347,
3697,
12,
812,
77,
11347,
1451,
12,
812,
77,
11347,
4491,
4267,
199,
199,
504,
8002,
5641,
14... | [
13601,
14,
9752,
14,
3357,
14,
992,
492,
10533,
6009,
4100,
199,
504,
8002,
5641,
14,
1850,
14,
1018,
14,
992,
492,
812,
77,
11347,
3697,
12,
812,
77,
11347,
1451,
12,
812,
77,
11347,
4491,
4267,
199,
199,
504,
8002,
5641,
14,
185... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
fengjian/libinjection | src/sqlparse2c.py | 3 | 3800 | #!/usr/bin/env python
#
# Copyright 2012, 2013 Nick Galbreath
# nickg@client9.com
# BSD License -- see COPYING.txt for details
#
"""
Converts a libinjection JSON data file to a C header (.h) file
"""
import sys
def toc(obj):
""" main routine """
print """
#ifndef LIBINJECTION_SQLI_DATA_H
#define LIBINJEC... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
221,
1898,
6029,
12,
6171,
653,
2000,
598,
279,
10205,
1619,
199,
3,
221,
14900,
71,
32,
1258,
25,
14,
957,
199,
3,
221,
6289,
844,
1553,
1937,
9685,
14,
2424,
367,
2436,
199... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
221,
1898,
6029,
12,
6171,
653,
2000,
598,
279,
10205,
1619,
199,
3,
221,
14900,
71,
32,
1258,
25,
14,
957,
199,
3,
221,
6289,
844,
1553,
1937,
9685,
14,
2424,
367,
2436,
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... |
Peddle/hue | desktop/core/ext-py/cryptography-1.3.1/src/_cffi_src/openssl/hmac.py | 7 | 2910 | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
INCLUDES = """
#include <openssl/hmac.h>
"""
TYPES = """
typedef ... HMA... | apache-2.0 | [
3,
961,
570,
365,
21164,
18233,
1334,
314,
2895,
402,
314,
3668,
844,
12,
3394,
199,
3,
499,
14,
16,
12,
436,
314,
6289,
844,
14,
1666,
314,
5113,
570,
315,
314,
1738,
402,
642,
7611,
199,
3,
367,
4890,
2436,
14,
199,
199,
504,
... | [
961,
570,
365,
21164,
18233,
1334,
314,
2895,
402,
314,
3668,
844,
12,
3394,
199,
3,
499,
14,
16,
12,
436,
314,
6289,
844,
14,
1666,
314,
5113,
570,
315,
314,
1738,
402,
642,
7611,
199,
3,
367,
4890,
2436,
14,
199,
199,
504,
636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
geekboxzone/lollipop_external_chromium_org | chrome/test/chromedriver/embed_mobile_devices_in_cpp.py | 43 | 1418 | #!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Embeds standalone JavaScript snippets in C++ code.
The script requires the OverridesView file from WebKit that lists the known
mobi... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
inconvergent/differential-cloud | modules/helpers.py | 1 | 1866 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
def get_args():
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
'--procs',
type=int,
default=4,
help='number of processors.'
)
parser.add_argument(
'--nearl',
type=float,
de... | mit | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
421,
199,
318,
664,
63,
589,
837,
819,
492,
7534,
819,
1798,
275,
7534,
14,
10730,
342,
523,
1798,
14... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
421,
199,
318,
664,
63,
589,
837,
819,
492,
7534,
819,
1798,
275,
7534,
14,
10730,
342,
523,
1798,
14,
525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SpaceHotDog/Flask_API | test_bucketlist.py | 1 | 3171 | # test_bucketlist.py
import unittest
import os
import json
from app import create_app, db
class BucketlistTestCase(unittest.TestCase):
"""This class represents the bucketlist test case"""
def setUp(self):
"""Define test variables and initialize app."""
self.app = create_app(config_name="testi... | unlicense | [
3,
511,
63,
4623,
513,
14,
647,
199,
199,
646,
2882,
199,
646,
747,
199,
646,
2022,
199,
504,
1145,
492,
1218,
63,
571,
12,
1592,
199,
199,
533,
31479,
513,
1746,
8,
2796,
14,
1746,
304,
272,
408,
2765,
1021,
8469,
314,
5315,
51... | [
511,
63,
4623,
513,
14,
647,
199,
199,
646,
2882,
199,
646,
747,
199,
646,
2022,
199,
504,
1145,
492,
1218,
63,
571,
12,
1592,
199,
199,
533,
31479,
513,
1746,
8,
2796,
14,
1746,
304,
272,
408,
2765,
1021,
8469,
314,
5315,
513,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
fyfcauc/android_external_chromium-org | tools/telemetry/telemetry/core/util.py | 23 | 4884 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import inspect
import logging
import os
import socket
import sys
import time
class TimeoutException(Exception):
pass
def GetBaseDir():
main_module... | bsd-3-clause | [
3,
1898,
334,
67,
9,
6029,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
646,
6485,
199,
64... | [
1898,
334,
67,
9,
6029,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
646,
6485,
199,
646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
apacha/OMR-Datasets | omrdatasettools/OmrDataset.py | 1 | 11026 | from enum import Enum, auto
from typing import Dict
class OmrDataset(Enum):
"""
The available OMR datasets that can be automatically downloaded with Downloader.py
"""
#: The Audiveris OMR dataset from https://github.com/Audiveris/omr-dataset-tools, Copyright 2017 by Hervé Bitteur under AGPL-3.0 l... | mit | [
504,
4952,
492,
11305,
12,
2599,
199,
504,
14090,
492,
7448,
421,
199,
533,
593,
13118,
9271,
8,
5081,
304,
272,
408,
267,
710,
2808,
593,
22153,
13148,
626,
883,
506,
5847,
13557,
543,
13392,
3422,
14,
647,
272,
408,
339,
6079,
710... | [
4952,
492,
11305,
12,
2599,
199,
504,
14090,
492,
7448,
421,
199,
533,
593,
13118,
9271,
8,
5081,
304,
272,
408,
267,
710,
2808,
593,
22153,
13148,
626,
883,
506,
5847,
13557,
543,
13392,
3422,
14,
647,
272,
408,
339,
6079,
710,
437... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
hastexo/edx-platform | lms/djangoapps/course_api/blocks/transformers/tests/test_milestones.py | 7 | 8893 | """
Tests for ProctoredExamTransformer.
"""
import ddt
from milestones.tests.utils import MilestonesTestCaseMixin
from mock import Mock, patch
from nose.plugins.attrib import attr
from gating import api as lms_gating_api
from lms.djangoapps.course_blocks.transformers.tests.helpers import CourseStructureTestCase
from o... | agpl-3.0 | [
624,
199,
2925,
367,
2165,
319,
2908,
920,
455,
19761,
14,
199,
624,
199,
646,
366,
3583,
199,
504,
333,
24156,
14,
2219,
14,
1208,
492,
603,
24156,
1746,
4256,
199,
504,
1683,
492,
4420,
12,
3371,
199,
504,
11354,
14,
5265,
14,
6... | [
199,
2925,
367,
2165,
319,
2908,
920,
455,
19761,
14,
199,
624,
199,
646,
366,
3583,
199,
504,
333,
24156,
14,
2219,
14,
1208,
492,
603,
24156,
1746,
4256,
199,
504,
1683,
492,
4420,
12,
3371,
199,
504,
11354,
14,
5265,
14,
6640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
almeidapaulopt/erpnext | erpnext/stock/__init__.py | 23 | 1794 | from __future__ import unicode_literals
import frappe
install_docs = [
{"doctype":"Role", "role_name":"Stock Manager", "name":"Stock Manager"},
{"doctype":"Role", "role_name":"Item Manager", "name":"Item Manager"},
{"doctype":"Role", "role_name":"Stock User", "name":"Stock User"},
{"doctype":"Role", "role_name":"Q... | gpl-3.0 | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
6950,
199,
199,
3174,
63,
4757,
275,
359,
199,
198,
6641,
6356,
5122,
7422,
401,
298,
3756,
63,
354,
5122,
17103,
13537,
401,
298,
354,
5122,
17103,
13537,
6018,
199,
198,
6641,
63... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
6950,
199,
199,
3174,
63,
4757,
275,
359,
199,
198,
6641,
6356,
5122,
7422,
401,
298,
3756,
63,
354,
5122,
17103,
13537,
401,
298,
354,
5122,
17103,
13537,
6018,
199,
198,
6641,
6356,
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... |
james08m/PiPhona | log.py | 2 | 1282 | __author__ = 'J08M'
import pickle
from utilities import *
# Log class
class Log:
def __init__(self):
self.logs = ["Create log"]
self.size = 1
# Add a string to the logs list
def add(self, log):
self.logs.append("[" + getTimeToSecondes() + "] " + log)
self.size ... | gpl-3.0 | [
363,
2502,
363,
275,
283,
42,
2036,
45,
7,
202,
199,
646,
5927,
202,
199,
504,
15841,
492,
627,
2999,
199,
3,
5297,
1021,
202,
199,
533,
5297,
26,
1128,
347,
636,
826,
721,
277,
304,
1039,
291,
14,
7270,
275,
2097,
2499,
943,
93... | [
2502,
363,
275,
283,
42,
2036,
45,
7,
202,
199,
646,
5927,
202,
199,
504,
15841,
492,
627,
2999,
199,
3,
5297,
1021,
202,
199,
533,
5297,
26,
1128,
347,
636,
826,
721,
277,
304,
1039,
291,
14,
7270,
275,
2097,
2499,
943,
937,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mixturemodel-flow/tensorflow | tensorflow/contrib/stat_summarizer/python/stat_summarizer_test.py | 123 | 2884 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 | [
3,
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
khrapovs/datastorage | datastorage/compustat.py | 1 | 2589 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Short interest dynamics
"""
from __future__ import print_function, division
import os
import zipfile
import datetime as dt
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
path = os.getenv("HOME") + '/Dropbox/Research/data/Compustat/data/'
#... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
10039,
13518,
31388,
2932,
199,
199,
624,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
199,
646,
747,
199,
646,
10392... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
10039,
13518,
31388,
2932,
199,
199,
624,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
12,
4629,
199,
199,
646,
747,
199,
646,
10392,
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... |
sgraham/nope | third_party/colorama/src/colorama/tests/ansitowin32_test.py | 5 | 6445 | # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
try:
# python3
from io import StringIO
except ImportError:
# python2
import StringIO
try:
# with unittest2 installed, presumably is Python <= 2.6
from unittest2 import TestCase, main
except ImportError:
# without uni... | bsd-3-clause | [
3,
1898,
1603,
265,
1619,
290,
869,
580,
15515,
6171,
14,
6289,
650,
13,
16009,
4190,
12,
1937,
5113,
570,
14,
199,
893,
26,
272,
327,
2366,
19,
272,
687,
5890,
492,
5228,
199,
2590,
3545,
26,
272,
327,
2366,
18,
272,
492,
5228,
... | [
1898,
1603,
265,
1619,
290,
869,
580,
15515,
6171,
14,
6289,
650,
13,
16009,
4190,
12,
1937,
5113,
570,
14,
199,
893,
26,
272,
327,
2366,
19,
272,
687,
5890,
492,
5228,
199,
2590,
3545,
26,
272,
327,
2366,
18,
272,
492,
5228,
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... |
nanditav/15712-TensorFlow | tensorflow/tensorboard/backend/handler.py | 14 | 21208 | # 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... |
Yethiel/re-volt-addon | io_revolt/parameters_in.py | 1 | 4567 | """
Name: parameters_in
Purpose: Importing cars using the parameters.txt file
Description:
Imports entire cars using the carinfo module.
"""
if "bpy" in locals():
import imp
imp.reload(common)
imp.reload(carinfo)
imp.reload(prm_in)
import os
import bpy
import bmesh
from mathutil... | gpl-3.0 | [
624,
202,
199,
985,
26,
259,
2633,
63,
262,
202,
199,
14959,
4070,
26,
3161,
316,
286,
4291,
1808,
314,
2633,
14,
2424,
570,
2999,
199,
5831,
26,
202,
199,
32447,
8039,
286,
4291,
1808,
314,
9590,
815,
859,
14,
2999,
199,
624,
299... | [
202,
199,
985,
26,
259,
2633,
63,
262,
202,
199,
14959,
4070,
26,
3161,
316,
286,
4291,
1808,
314,
2633,
14,
2424,
570,
2999,
199,
5831,
26,
202,
199,
32447,
8039,
286,
4291,
1808,
314,
9590,
815,
859,
14,
2999,
199,
624,
2999,
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... |
wolcomm/rptk | rptk/base.py | 1 | 3743 | # Copyright (c) 2018 Workonline Communications (Pty) Ltd. All rights reserved.
#
# The contents of this file are licensed under the Apache License version 2.0
# (the "License"); you may not use this file except in compliance with the
# License.
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | [
3,
1898,
334,
67,
9,
14894,
9361,
15178,
18686,
334,
48,
369,
9,
12126,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
710,
4072,
402,
642,
570,
787,
18233,
1334,
314,
3668,
844,
1015,
499,
14,
16,
199,
3,
334,
1589,
298,
3761,
3547,... | [
1898,
334,
67,
9,
14894,
9361,
15178,
18686,
334,
48,
369,
9,
12126,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
710,
4072,
402,
642,
570,
787,
18233,
1334,
314,
3668,
844,
1015,
499,
14,
16,
199,
3,
334,
1589,
298,
3761,
3547,
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... |
tigerneil/deepy | experiments/attention_models/first_glimpse.py | 5 | 1691 | import time
import logging
from deepy import TrainerConfig
from deepy.dataset import MnistDataset, MiniBatches
from deepy.trainers import LearningRateAnnealer
from first_glimpse_model import get_network
from first_glimpse_trainer import FirstGlimpseTrainer
from deepy.utils import Timer
logging.basicConfig(level=loggi... | mit | [
646,
900,
199,
646,
2050,
199,
199,
504,
27646,
647,
492,
16732,
281,
2028,
199,
504,
27646,
647,
14,
5214,
492,
603,
78,
631,
9271,
12,
24954,
8842,
397,
199,
504,
27646,
647,
14,
2834,
1192,
492,
29127,
6621,
2493,
685,
29706,
199... | [
900,
199,
646,
2050,
199,
199,
504,
27646,
647,
492,
16732,
281,
2028,
199,
504,
27646,
647,
14,
5214,
492,
603,
78,
631,
9271,
12,
24954,
8842,
397,
199,
504,
27646,
647,
14,
2834,
1192,
492,
29127,
6621,
2493,
685,
29706,
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... |
grevutiu-gabriel/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/port/__init__.py | 129 | 1865 | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | [
3,
1898,
334,
35,
9,
7129,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
334,
35,
9,
7129,
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... |
jusdng/odoo | openerp/tools/cache.py | 226 | 6865 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 OpenERP (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
6171,
7653,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
10121,
199,
3,
199,
3,
259,
961,
22... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
6171,
7653,
8642,
1014,
921,
1544,
14,
11267,
14,
957,
10121,
199,
3,
199,
3,
259,
961,
2240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
eltonkent/android-quill | jni/libhpdf-2.3.0RC2/if/python/demo/raw_image_demo.py | 32 | 3894 | ###
## * << Haru Free PDF Library 2.0.0 >> -- raw_image_demo.c
## *
## * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
## *
## * Permission to use, copy, modify, distribute and sell this software
## * and its documentation for any purpose is hereby granted without fee,
## * provided that ... | gpl-3.0 | [
5680,
202,
199,
309,
627,
5213,
25378,
85,
2868,
15537,
11243,
499,
14,
16,
14,
16,
4331,
1553,
3066,
63,
1569,
63,
8768,
14,
67,
202,
199,
309,
627,
202,
199,
309,
627,
1898,
334,
67,
9,
21300,
13,
7968,
17415,
5812,
1804,
25264,... | [
202,
199,
309,
627,
5213,
25378,
85,
2868,
15537,
11243,
499,
14,
16,
14,
16,
4331,
1553,
3066,
63,
1569,
63,
8768,
14,
67,
202,
199,
309,
627,
202,
199,
309,
627,
1898,
334,
67,
9,
21300,
13,
7968,
17415,
5812,
1804,
25264,
665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
stylianos-kampakis/scikit-learn | sklearn/externals/joblib/logger.py | 359 | 5135 | """
Helpers for logging.
This module needs much love to become useful.
"""
# Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org>
# Copyright (c) 2008 Gael Varoquaux
# License: BSD Style, 3 clauses.
from __future__ import print_function
import time
import sys
import os
import shutil
import logging
impo... | bsd-3-clause | [
624,
199,
4433,
83,
367,
2050,
14,
199,
199,
2765,
859,
4839,
8298,
560,
432,
370,
8649,
2997,
14,
199,
624,
199,
199,
3,
6529,
26,
9647,
352,
21084,
79,
392,
10962,
665,
5294,
352,
6308,
2729,
79,
392,
10962,
737,
6590,
17667,
19... | [
199,
4433,
83,
367,
2050,
14,
199,
199,
2765,
859,
4839,
8298,
560,
432,
370,
8649,
2997,
14,
199,
624,
199,
199,
3,
6529,
26,
9647,
352,
21084,
79,
392,
10962,
665,
5294,
352,
6308,
2729,
79,
392,
10962,
737,
6590,
17667,
1961,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
platinhom/DailyTools | scripts/ESES_ElementArea.py | 1 | 3679 | #! /usr/bin/env python
# -*- coding: utf8 -*-
# Author: Platinhom; Last Updated: 2015-09-10
# Calculate each element surface area by MS_Intersection and also match the atomic area results to the pqr file.
# Usage: python ESES_ElementArea.py file.pqr
#
# Need: MS_Intersection (partition version)
# Note: Only for PQR fo... | gpl-2.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
24,
1882,
199,
3,
6529,
26,
510,
10378,
526,
77,
27,
15237,
6162,
68,
26,
6900,
13,
1643,
13,
709,
199,
199,
3,
12707,
1924,
1819,
13195,
9150,
701,
14282,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
24,
1882,
199,
3,
6529,
26,
510,
10378,
526,
77,
27,
15237,
6162,
68,
26,
6900,
13,
1643,
13,
709,
199,
199,
3,
12707,
1924,
1819,
13195,
9150,
701,
14282,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ea4gja/mrig | mrig/mrig.py | 1 | 1349 | #!/usr/bin/env python
#
# File: mrig.py
# Version: 1.0
#
# mrig: main program
# Copyright (c) 2016 German EA4GJA
#
# 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 Licen... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
3814,
26,
333,
322,
71,
14,
647,
199,
3,
3394,
26,
413,
14,
16,
199,
3,
199,
3,
333,
322,
71,
26,
2446,
2240,
199,
3,
1898,
334,
67,
9,
7800,
22261,
1237,
662,
33,
20,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
3814,
26,
333,
322,
71,
14,
647,
199,
3,
3394,
26,
413,
14,
16,
199,
3,
199,
3,
333,
322,
71,
26,
2446,
2240,
199,
3,
1898,
334,
67,
9,
7800,
22261,
1237,
662,
33,
20,
39,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
israeltobias/DownMedia | youtube-dl/youtube_dl/extractor/cracked.py | 170 | 3213 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
parse_iso8601,
str_to_int,
)
class CrackedIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?cracked\.com/video_(?P<id>\d+)_[\da-z-]+\.html'
_TESTS = [{
'url': 'http://www.cracked.com/... | gpl-3.0 | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
2198,
63,
4595,
15363,
12,
272,
620,
63,
475,
63,
442,
12,
199,
9,
421,
199,
533,
445,
808... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
295,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
2198,
63,
4595,
15363,
12,
272,
620,
63,
475,
63,
442,
12,
199,
9,
421,
199,
533,
445,
8085,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
paulashford1975/clearfog-388-kernel-4.5.4 | tools/perf/scripts/python/failed-syscalls-by-pid.py | 1996 | 2233 | # failed system call counts, by pid
# (c) 2010, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Displays system-wide failed system call totals, broken down by pid.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os
import sys
sys.pa... | gpl-2.0 | [
3,
3405,
2656,
1240,
8242,
12,
701,
4422,
199,
3,
334,
67,
9,
7129,
12,
21644,
29385,
665,
29453,
32,
6799,
14,
957,
30,
199,
3,
3909,
1334,
314,
2895,
402,
314,
1664,
14629,
844,
1015,
499,
199,
3,
199,
3,
28750,
2656,
13,
1306... | [
3405,
2656,
1240,
8242,
12,
701,
4422,
199,
3,
334,
67,
9,
7129,
12,
21644,
29385,
665,
29453,
32,
6799,
14,
957,
30,
199,
3,
3909,
1334,
314,
2895,
402,
314,
1664,
14629,
844,
1015,
499,
199,
3,
199,
3,
28750,
2656,
13,
13062,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
syl20bnr/nupic | tests/integration/py2/nupic/opf/opf_description_template_test/experiments/gym/description.py | 17 | 1447 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2014, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | gpl-3.0 | [
3,
20359,
199,
3,
22783,
16078,
367,
8883,
24024,
27799,
334,
21988,
26769,
9,
199,
3,
1898,
334,
35,
9,
6927,
12,
22783,
12,
3277,
14,
221,
4158,
1265,
1172,
376,
25025,
199,
3,
543,
22783,
12,
3277,
2020,
367,
282,
7396,
4190,
3... | [
20359,
199,
3,
22783,
16078,
367,
8883,
24024,
27799,
334,
21988,
26769,
9,
199,
3,
1898,
334,
35,
9,
6927,
12,
22783,
12,
3277,
14,
221,
4158,
1265,
1172,
376,
25025,
199,
3,
543,
22783,
12,
3277,
2020,
367,
282,
7396,
4190,
367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dongritengfei/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/watchlist/watchlist.py | 132 | 3393 | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | [
3,
1898,
334,
35,
9,
7760,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
7647,
26,
... | [
1898,
334,
35,
9,
7760,
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... |
mattt416/neutron | neutron/tests/functional/agent/l3/test_keepalived_state_change.py | 24 | 2853 | # Copyright (c) 2015 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | [
3,
1898,
334,
67,
9,
6900,
9572,
13002,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
... | [
1898,
334,
67,
9,
6900,
9572,
13002,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
openfun/configuration | playbooks/callback_plugins/sqs.py | 41 | 5868 | # Copyright 2013 John Jarvis <john@jarv.org>
#
# 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 versio... | agpl-3.0 | [
3,
1898,
6171,
17815,
1603,
285,
5068,
665,
20216,
32,
7338,
86,
14,
1308,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1... | [
1898,
6171,
17815,
1603,
285,
5068,
665,
20216,
32,
7338,
86,
14,
1308,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nirmeshk/oh-mainline | vendor/packages/gdata/tests/gdata_tests/calendar_test.py | 41 | 39080 | #!/usr/bin/python
#
# Copyright (C) 2006 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | agpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
8315,
4475,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
8315,
4475,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
salomon1184/bite-project | deps/gdata-python-client/src/gdata/acl/data.py | 98 | 1893 | #!/usr/bin/python
#
# Copyright (C) 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
8937,
4475,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
35,
9,
8937,
4475,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
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... |
sunlianqiang/kbengine | kbe/src/lib/python/Lib/test/test_crashers.py | 116 | 1210 | # Tests that the crashers in the Lib/test/crashers directory actually
# do crash the interpreter as expected
#
# If a crasher is fixed, it should be moved elsewhere in the test suite to
# ensure it continues to work correctly.
import unittest
import glob
import os.path
import test.support
from test.script_helper impor... | lgpl-3.0 | [
3,
6496,
626,
314,
12420,
1192,
315,
314,
8003,
15,
396,
15,
14807,
1192,
2082,
5965,
199,
3,
886,
12420,
314,
12693,
465,
1420,
199,
3,
199,
3,
982,
282,
12420,
281,
365,
6317,
12,
652,
1077,
506,
12155,
25320,
315,
314,
511,
524... | [
6496,
626,
314,
12420,
1192,
315,
314,
8003,
15,
396,
15,
14807,
1192,
2082,
5965,
199,
3,
886,
12420,
314,
12693,
465,
1420,
199,
3,
199,
3,
982,
282,
12420,
281,
365,
6317,
12,
652,
1077,
506,
12155,
25320,
315,
314,
511,
5241,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TuSimple/mxnet | example/sparse/matrix_factorization/data.py | 14 | 2340 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | [
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
199,
3,
12602,
4248,
12715,
14,
221,
710,
14857,
... | [
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
199,
3,
12602,
4248,
12715,
14,
221,
710,
14857,
1237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
munnerz/CouchPotatoServer | libs/CodernityDB/hash_index.py | 81 | 33813 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011-2013 Codernity (http://codernity.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/L... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
7760,
13,
6965,
5495,
11641,
1209,
334,
1014,
921,
2693,
78,
1209,
14,
957,
9,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
7760,
13,
6965,
5495,
11641,
1209,
334,
1014,
921,
2693,
78,
1209,
14,
957,
9,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
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... |
csmengwan/autorest | AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/availability_sets.py | 5 | 3247 | # 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... |
girving/tensorflow | tensorflow/contrib/distributions/python/kernel_tests/vector_sinh_arcsinh_diag_test.py | 25 | 10036 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
9708,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
9708,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jamezpolley/pip | pip/_vendor/html5lib/serializer/htmlserializer.py | 436 | 12855 | from __future__ import absolute_import, division, unicode_literals
from pip._vendor.six import text_type
try:
from functools import reduce
except ImportError:
pass
from ..constants import voidElements, booleanAttributes, spaceCharacters
from ..constants import rcdataElements, entities, xmlEntities
from .. imp... | mit | [
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
2649,
63,
5955,
199,
504,
7305,
423,
9884,
14,
4174,
492,
1318,
63,
466,
199,
199,
893,
26,
272,
687,
9143,
492,
7114,
199,
2590,
3545,
26,
272,
986,
199,
199,
504,
2508,
55... | [
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
2649,
63,
5955,
199,
504,
7305,
423,
9884,
14,
4174,
492,
1318,
63,
466,
199,
199,
893,
26,
272,
687,
9143,
492,
7114,
199,
2590,
3545,
26,
272,
986,
199,
199,
504,
2508,
5559,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
citrix-openstack-build/oslo.concurrency | oslo/concurrency/openstack/common/fixture/logging.py | 73 | 1117 | # 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 agreed to in writing, softw... | apache-2.0 | [
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
282,
... | [
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
2047,
1443,
3332,
199,
3,
282,
1331,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vyos/wpa | wpa_supplicant/examples/wpas-dbus-new-getall.py | 114 | 1742 | #!/usr/bin/python
import dbus
import sys, os
import time
import gobject
def main():
bus = dbus.SystemBus()
wpas_obj = bus.get_object("fi.w1.wpa_supplicant1",
"/fi/w1/wpa_supplicant1")
props = wpas_obj.GetAll("fi.w1.wpa_supplicant1",
dbus_interface=dbus.PROPERTIES_IFACE)
print "GetAll(fi.w1.wpa_supplican... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
199,
646,
21140,
199,
646,
984,
12,
747,
199,
646,
900,
199,
646,
25595,
199,
199,
318,
2446,
837,
199,
198,
5610,
275,
21140,
14,
3989,
12106,
342,
199,
198,
14649,
305,
63,
1113,
275,
10414,
... | [
2647,
15,
1393,
15,
1548,
199,
199,
646,
21140,
199,
646,
984,
12,
747,
199,
646,
900,
199,
646,
25595,
199,
199,
318,
2446,
837,
199,
198,
5610,
275,
21140,
14,
3989,
12106,
342,
199,
198,
14649,
305,
63,
1113,
275,
10414,
14,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ppwwyyxx/tensorflow | tensorflow/python/keras/optimizers.py | 3 | 30372 | # 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... |
zhjunlang/kbengine | kbe/res/scripts/common/Lib/lib2to3/pgen2/token.py | 77 | 1264 | #! /usr/bin/env python3
"""Token constants (from "token.h")."""
# Taken from Python (r53757) and modified to include some tokens
# originally monkeypatched in by pgen2.tokenize
#--start constants--
ENDMARKER = 0
NAME = 1
NUMBER = 2
STRING = 3
NEWLINE = 4
INDENT = 5
DEDENT = 6
LPAR = 7
RPAR = 8
LSQB = 9
RSQB = 10
... | lgpl-3.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
624,
3264,
5262,
334,
504,
298,
1418,
14,
72,
531,
1041,
199,
199,
3,
221,
32316,
917,
687,
2018,
334,
82,
24416,
1641,
9,
436,
6042,
370,
2387,
2005,
4645,
199,
3,
257,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
624,
3264,
5262,
334,
504,
298,
1418,
14,
72,
531,
1041,
199,
199,
3,
221,
32316,
917,
687,
2018,
334,
82,
24416,
1641,
9,
436,
6042,
370,
2387,
2005,
4645,
199,
3,
257,
20657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rledisez/shinken | contrib/livestatus/splitlivelogs.py | 18 | 2388 | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | agpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
35,
9,
8937,
13,
7280,
26,
199,
3,
259,
598,
371,
397,
1603,
69,
290,
12,
302,
439,
285,
9405,
32,
6799,
14,
957,
199,
3,
259,
22261,
8726,
7964,
527,
332,
12,
22261,
87... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
35,
9,
8937,
13,
7280,
26,
199,
3,
259,
598,
371,
397,
1603,
69,
290,
12,
302,
439,
285,
9405,
32,
6799,
14,
957,
199,
3,
259,
22261,
8726,
7964,
527,
332,
12,
22261,
8726,
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... |
spatialdev/onadata | onadata/apps/logger/migrations/0020_auto__chg_field_instance_uuid.py | 13 | 8321 | # encoding: 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 'Instance.uuid'
db.alter_column('odk_logger_instance', 'uuid', self.gf('django.db.models.... | bsd-2-clause | [
3,
2644,
26,
2774,
13,
24,
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,
199,
199,
533,
12090,
8,
24822,
304,
339,
347,
17465,
8,
277,
12,
9813,... | [
2644,
26,
2774,
13,
24,
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,
199,
199,
533,
12090,
8,
24822,
304,
339,
347,
17465,
8,
277,
12,
9813,
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... |
mmcdermo/helpinghand | server/venv/lib/python2.7/site-packages/django/contrib/flatpages/tests/test_views.py | 207 | 5659 | import os
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.flatpages.models import FlatPage
from django.test import TestCase
from django.test.utils import override_settings
@override_settings(
LOGIN_URL='/... | mit | [
646,
747,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
2828,
14,
1178,
14,
2219,
14,
1208,
492,
3372,
3917,
31482,
199,
504,
1639,
14,
2828,
14,
29974,
14,
992,
... | [
747,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
14,
1178,
14,
992,
492,
2876,
199,
504,
1639,
14,
2828,
14,
1178,
14,
2219,
14,
1208,
492,
3372,
3917,
31482,
199,
504,
1639,
14,
2828,
14,
29974,
14,
992,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.