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
Code4SA/mapit
mapit_gb/controls/2014-05.py
3
11399
# A control file for importing May 2014 Boundary-Line. # This control file assumes previous Boundary-Lines have been imported, # because it uses that information. If this is a first import, use the # first-gss control file. def code_version(): return 'gss' def check(name, type, country, geometry): """Shoul...
agpl-3.0
[ 3, 437, 3304, 570, 367, 16306, 10162, 6927, 21972, 695, 13, 3049, 14, 199, 199, 3, 961, 3304, 570, 15194, 4136, 21972, 695, 13, 9863, 1172, 2757, 8439, 12, 199, 3, 2952, 652, 4440, 626, 2556, 14, 982, 642, 365, 282, 1642, 492, 12,...
[ 437, 3304, 570, 367, 16306, 10162, 6927, 21972, 695, 13, 3049, 14, 199, 199, 3, 961, 3304, 570, 15194, 4136, 21972, 695, 13, 9863, 1172, 2757, 8439, 12, 199, 3, 2952, 652, 4440, 626, 2556, 14, 982, 642, 365, 282, 1642, 492, 12, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Carmezim/tensorflow
tensorflow/python/tools/saved_model_cli_test.py
20
17777
# 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...
esdalmaijer/PyGaze
pygaze/_logfile/baselogfile.py
1
3346
# -*- coding: utf-8 -*- # # This file is part of PyGaze - the open-source toolbox for eye tracking # # PyGaze is a Python module for easily creating gaze contingent experiments # or other software (as well as non-gaze contingent experiments/software) # Copyright (C) 2012-2013 Edwin S. Dalmaijer # # ...
gpl-3.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 202, 199, 3, 202, 199, 3, 961, 570, 365, 1777, 402, 1611, 17295, 806, 446, 314, 1551, 13, 1365, 4744, 1977, 367, 25892, 15161, 202, 199, 3, 202, 199, 3, 259, 1611, 17295, 806, 365, 282, 201...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 202, 199, 3, 202, 199, 3, 961, 570, 365, 1777, 402, 1611, 17295, 806, 446, 314, 1551, 13, 1365, 4744, 1977, 367, 25892, 15161, 202, 199, 3, 202, 199, 3, 259, 1611, 17295, 806, 365, 282, 2018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mlhenderson/transform
plugins/scripts/upload/trns_transform_FASTA_DNA_Assembly_to_KBaseGenomes_ContigSet.py
3
14066
#!/usr/bin/env python # standard library imports import os import sys import logging import re import hashlib # 3rd party imports import simplejson # KBase imports import biokbase.Transform.script_utils as script_utils # transformation method that can be called if this module is imported # Note the logger has diff...
mit
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 199, 3, 4465, 3555, 8925, 199, 646, 747, 199, 646, 984, 199, 646, 2050, 199, 646, 295, 199, 646, 8337, 199, 199, 3, 650, 6883, 17135, 8925, 199, 646, 13804, 199, 199, 3, 1804, 1563, 8925,...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 199, 3, 4465, 3555, 8925, 199, 646, 747, 199, 646, 984, 199, 646, 2050, 199, 646, 295, 199, 646, 8337, 199, 199, 3, 650, 6883, 17135, 8925, 199, 646, 13804, 199, 199, 3, 1804, 1563, 8925, 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...
nicupavel/wifi
wifi/scan.py
1
5377
from __future__ import division import re import textwrap import wifi.subprocess_compat as subprocess from wifi.utils import db2dbm from wifi.exceptions import InterfaceError class Cell(object): """ Presents a Python interface to the output of iwlist. """ def __init__(self): self.bitrates =...
bsd-2-clause
[ 504, 636, 2443, 363, 492, 4629, 199, 199, 646, 295, 199, 646, 13390, 199, 199, 646, 7912, 14, 5781, 63, 5819, 465, 3873, 199, 504, 7912, 14, 1208, 492, 1592, 18, 20666, 199, 504, 7912, 14, 3924, 492, 14816, 547, 421, 199, 533, 248...
[ 636, 2443, 363, 492, 4629, 199, 199, 646, 295, 199, 646, 13390, 199, 199, 646, 7912, 14, 5781, 63, 5819, 465, 3873, 199, 504, 7912, 14, 1208, 492, 1592, 18, 20666, 199, 504, 7912, 14, 3924, 492, 14816, 547, 421, 199, 533, 24834, 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...
piotrb5e3/ComfyMS-backend
posts/tests/test_views/test_unpublish.py
1
1710
from django.core.urlresolvers import reverse from django.contrib.auth.models import User from rest_framework import status from rest_framework.test import APITestCase from rest_framework_jwt import utils from posts.models import Post from posts.tests.factory import create_post class TestPost(APITestCase): unpu...
apache-2.0
[ 504, 1639, 14, 1018, 14, 16522, 492, 3837, 199, 504, 1639, 14, 2828, 14, 1178, 14, 992, 492, 2876, 199, 199, 504, 4618, 63, 4857, 492, 2004, 199, 504, 4618, 63, 4857, 14, 396, 492, 10319, 649, 27309, 199, 199, 504, 4618, 63, 4857,...
[ 1639, 14, 1018, 14, 16522, 492, 3837, 199, 504, 1639, 14, 2828, 14, 1178, 14, 992, 492, 2876, 199, 199, 504, 4618, 63, 4857, 492, 2004, 199, 504, 4618, 63, 4857, 14, 396, 492, 10319, 649, 27309, 199, 199, 504, 4618, 63, 4857, 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...
titienmiami/mmc.repository
plugin.video.tvalacarta/servers/modovideo.py
1
2571
# -*- coding: iso-8859-1 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Conector para modovideo # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import re, urlparse, urllib, urllib2 import os from ...
gpl-2.0
[ 3, 1882, 2803, 26, 11601, 13, 4830, 13, 17, 1882, 199, 17807, 4559, 199, 3, 4837, 317, 6327, 645, 29549, 446, 1323, 28994, 11349, 199, 3, 445, 368, 630, 12665, 3413, 79, 3722, 199, 3, 1455, 921, 11486, 14, 84, 637, 645, 29549, 14,...
[ 1882, 2803, 26, 11601, 13, 4830, 13, 17, 1882, 199, 17807, 4559, 199, 3, 4837, 317, 6327, 645, 29549, 446, 1323, 28994, 11349, 199, 3, 445, 368, 630, 12665, 3413, 79, 3722, 199, 3, 1455, 921, 11486, 14, 84, 637, 645, 29549, 14, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
sampadsaha5/sympy
sympy/functions/elementary/tests/test_piecewise.py
11
18755
from sympy import ( adjoint, And, Basic, conjugate, diff, expand, Eq, Function, I, Integral, integrate, Interval, lambdify, log, Max, Min, oo, Or, pi, Piecewise, piecewise_fold, Rational, solve, symbols, transpose, cos, exp, Abs, Not, Symbol, S ) from sympy.printing import srepr from sympy.utilities.pyt...
bsd-3-clause
[ 504, 5840, 492, 334, 272, 24132, 12, 6061, 12, 10082, 12, 27246, 12, 3915, 12, 6544, 12, 21779, 12, 6801, 12, 473, 12, 272, 23095, 12, 21494, 12, 18766, 12, 27593, 29552, 12, 943, 12, 8228, 12, 10195, 12, 16390, 12, 4236, 12, 6682...
[ 5840, 492, 334, 272, 24132, 12, 6061, 12, 10082, 12, 27246, 12, 3915, 12, 6544, 12, 21779, 12, 6801, 12, 473, 12, 272, 23095, 12, 21494, 12, 18766, 12, 27593, 29552, 12, 943, 12, 8228, 12, 10195, 12, 16390, 12, 4236, 12, 6682, 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...
rockho-team/shuup-shipping-table
shuup_shipping_table_tests/settings.py
1
3686
# -*- coding: utf-8 -*- import os import tempfile SECRET_KEY = "x" INSTALLED_APPS = ( # django 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.staticfiles', # shuup themes 'shuup.th...
agpl-3.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 646, 747, 199, 646, 5549, 199, 199, 12961, 63, 3078, 275, 298, 88, 2, 421, 199, 15942, 63, 14219, 275, 334, 272, 327, 1639, 272, 283, 1176, 14, 2828, 14, 2113, 297, 272, 283, 1176, 14,...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 646, 747, 199, 646, 5549, 199, 199, 12961, 63, 3078, 275, 298, 88, 2, 421, 199, 15942, 63, 14219, 275, 334, 272, 327, 1639, 272, 283, 1176, 14, 2828, 14, 2113, 297, 272, 283, 1176, 14, 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...
Salat-Cx65/python-for-android
python-build/python-libs/gdata/tests/atom_test.py
87
26717
#!/usr/bin/python # -*-*- encoding: utf-8 -*-*- # # 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 # # Unle...
apache-2.0
[ 3381, 2647, 15, 1393, 15, 1548, 199, 3, 1882, 1837, 2644, 26, 2774, 13, 24, 1882, 1837, 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,...
[ 2647, 15, 1393, 15, 1548, 199, 3, 1882, 1837, 2644, 26, 2774, 13, 24, 1882, 1837, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
bitcoinapi/bootstrap
test-infra/s3_cache.py
2166
5734
#!/usr/bin/env python2.7 # pylint: disable=C0301 from __future__ import absolute_import, unicode_literals, print_function, division from sys import argv from os import environ, stat, chdir, remove as _delete_file from os.path import dirname, basename, abspath, realpath, expandvars from hashlib import sha256 from subpr...
mit
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 18, 14, 23, 199, 3, 4287, 26, 3507, 29, 35, 1644, 614, 199, 504, 636, 2443, 363, 492, 3679, 63, 646, 12, 2649, 63, 5955, 12, 870, 63, 1593, 12, 4629, 199, 199, 504, 984, 492, 9238, 199, 50...
[ 2647, 15, 1393, 15, 1813, 2366, 18, 14, 23, 199, 3, 4287, 26, 3507, 29, 35, 1644, 614, 199, 504, 636, 2443, 363, 492, 3679, 63, 646, 12, 2649, 63, 5955, 12, 870, 63, 1593, 12, 4629, 199, 199, 504, 984, 492, 9238, 199, 504, 747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
drewsetski/koding
go/src/vendor/github.com/mitchellh/packer/vendor/github.com/ugorji/go/codec/test.py
1516
4019
#!/usr/bin/env python # This will create golden files in a directory passed to it. # A Test calls this internally to create the golden files # So it can process them (so we don't have to checkin the files). # Ensure msgpack-python and cbor are installed first, using: # sudo apt-get install python-dev # sudo apt-g...
apache-2.0
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 199, 3, 961, 911, 1218, 17631, 1584, 315, 282, 2082, 3032, 370, 652, 14, 199, 3, 437, 1379, 4882, 642, 14448, 370, 1218, 314, 17631, 1584, 199, 3, 2002, 652, 883, 2112, 3062, 334, 1152, 7...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 199, 3, 961, 911, 1218, 17631, 1584, 315, 282, 2082, 3032, 370, 652, 14, 199, 3, 437, 1379, 4882, 642, 14448, 370, 1218, 314, 17631, 1584, 199, 3, 2002, 652, 883, 2112, 3062, 334, 1152, 781, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
cschoonover91/librenms
lib/influxdb-php/vendor/guzzlehttp/guzzle/docs/conf.py
46
2006
import sys, os from sphinx.highlighting import lexers from pygments.lexers.web import PhpLexer lexers['php'] = PhpLexer(startinline=True, linenos=1) lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1) primary_domain = 'php' extensions = [] templates_path = ['_templates'] source_suffix = '.rst' master_d...
gpl-3.0
[ 646, 984, 12, 747, 199, 504, 15882, 14, 14337, 316, 492, 7103, 1192, 199, 504, 13277, 14, 12245, 14, 2520, 492, 11308, 80, 5838, 421, 199, 12245, 459, 8624, 418, 275, 11308, 80, 5838, 8, 928, 6460, 29, 549, 12, 10165, 736, 29, 17,...
[ 984, 12, 747, 199, 504, 15882, 14, 14337, 316, 492, 7103, 1192, 199, 504, 13277, 14, 12245, 14, 2520, 492, 11308, 80, 5838, 421, 199, 12245, 459, 8624, 418, 275, 11308, 80, 5838, 8, 928, 6460, 29, 549, 12, 10165, 736, 29, 17, 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...
thoughtpalette/thoughts.thoughtpalette.com
node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/pygments/styles/perldoc.py
364
2175
# -*- coding: utf-8 -*- """ pygments.styles.perldoc ~~~~~~~~~~~~~~~~~~~~~~~ Style similar to the style used in the `perldoc`_ code blocks. .. _perldoc: http://perldoc.perl.org/ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from...
mit
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 272, 13277, 14, 12955, 14, 22805, 1301, 272, 18294, 2878, 23597, 339, 19442, 8545, 370, 314, 3449, 1202, 315, 314, 658, 22805, 1301, 18417, 1233, 5664, 14, 339, 2508, 485, 22805, 1301, ...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 272, 13277, 14, 12955, 14, 22805, 1301, 272, 18294, 2878, 23597, 339, 19442, 8545, 370, 314, 3449, 1202, 315, 314, 658, 22805, 1301, 18417, 1233, 5664, 14, 339, 2508, 485, 22805, 1301, 26,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
nikitasingh981/scikit-learn
examples/text/hashing_vs_dict_vectorizer.py
93
3243
""" =========================================== FeatureHasher and DictVectorizer Comparison =========================================== Compares FeatureHasher and DictVectorizer by using both to vectorize text documents. The example demonstrates syntax and speed only; it doesn't actually do anything useful with the e...
bsd-3-clause
[ 624, 199, 2486, 21326, 199, 5968, 13415, 436, 7448, 26165, 3599, 5447, 199, 2486, 21326, 199, 199, 2404, 11044, 13407, 13415, 436, 7448, 26165, 701, 1808, 3865, 370, 5477, 794, 199, 505, 8247, 14, 199, 199, 1918, 2893, 23789, 31216, 630...
[ 199, 2486, 21326, 199, 5968, 13415, 436, 7448, 26165, 3599, 5447, 199, 2486, 21326, 199, 199, 2404, 11044, 13407, 13415, 436, 7448, 26165, 701, 1808, 3865, 370, 5477, 794, 199, 505, 8247, 14, 199, 199, 1918, 2893, 23789, 31216, 6302, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
samthor/intellij-community
python/lib/Lib/encodings/cp437.py
593
34820
""" Python Character Mapping Codec cp437 generated from 'VENDORS/MICSFT/PC/CP437.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_map) def decode(self,input,errors='strict...
apache-2.0
[ 624, 2018, 17660, 12340, 13732, 7667, 21717, 4046, 687, 283, 27839, 4149, 15, 17233, 51, 2161, 15, 4222, 15, 2890, 21717, 14, 17715, 7, 543, 486, 2143, 67, 14, 647, 14, 199, 199, 624, 23662, 199, 199, 646, 6010, 199, 199, 5680, 1373...
[ 2018, 17660, 12340, 13732, 7667, 21717, 4046, 687, 283, 27839, 4149, 15, 17233, 51, 2161, 15, 4222, 15, 2890, 21717, 14, 17715, 7, 543, 486, 2143, 67, 14, 647, 14, 199, 199, 624, 23662, 199, 199, 646, 6010, 199, 199, 5680, 13732, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
sunlianqiang/kbengine
kbe/res/scripts/common/Lib/test/test_call.py
182
3159
import unittest from test import support # The test cases here cover several paths through the function calling # code. They depend on the METH_XXX flag that is used to define a C # function, which can't be verified from Python. If the METH_XXX decl # for a C function changes, these tests may not cover the right pat...
lgpl-3.0
[ 646, 2882, 199, 504, 511, 492, 2291, 199, 199, 3, 710, 511, 5560, 2348, 8486, 9978, 3792, 4012, 314, 805, 6358, 199, 3, 1233, 14, 221, 9322, 11687, 641, 314, 19357, 40, 63, 13933, 3305, 626, 365, 1202, 370, 5627, 282, 445, 199, 3,...
[ 2882, 199, 504, 511, 492, 2291, 199, 199, 3, 710, 511, 5560, 2348, 8486, 9978, 3792, 4012, 314, 805, 6358, 199, 3, 1233, 14, 221, 9322, 11687, 641, 314, 19357, 40, 63, 13933, 3305, 626, 365, 1202, 370, 5627, 282, 445, 199, 3, 805,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
svanschalkwyk/datafari
windows/python/Lib/test/test_grp.py
45
3291
"""Test script for the grp module.""" import unittest from test import test_support grp = test_support.import_module('grp') class GroupDatabaseTestCase(unittest.TestCase): def check_value(self, value): # check that a grp tuple has the entries and # attributes promised by the docs self.as...
apache-2.0
[ 624, 774, 2884, 367, 314, 18598, 859, 1041, 199, 199, 646, 2882, 199, 504, 511, 492, 511, 63, 4058, 199, 199, 12599, 275, 511, 63, 4058, 14, 646, 63, 578, 360, 12599, 358, 199, 199, 533, 5611, 7243, 1746, 8, 2796, 14, 1746, 304, ...
[ 774, 2884, 367, 314, 18598, 859, 1041, 199, 199, 646, 2882, 199, 504, 511, 492, 511, 63, 4058, 199, 199, 12599, 275, 511, 63, 4058, 14, 646, 63, 578, 360, 12599, 358, 199, 199, 533, 5611, 7243, 1746, 8, 2796, 14, 1746, 304, 339, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
cloudera/hue
desktop/core/ext-py/docutils-0.14/docutils/languages/lt.py
16
1940
# -*- coding: utf-8 -*- # $Id: lt.py 7911 2015-08-31 08:23:06Z milde $ # Author: Dalius Dobravolskas <dalius.do...@gmail.com> # Copyright: This module has been placed in the public domain. # New language mappings are welcome. Before doing a new translation, please # read <http://docutils.sf.net/docs/howto/i18n.html>....
apache-2.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 2672, 1304, 26, 22146, 14, 647, 13734, 845, 6900, 13, 2036, 13, 2192, 19363, 26, 1789, 26, 1690, 58, 333, 24446, 2672, 199, 3, 6529, 26, 577, 10874, 527, 577, 2873, 345, 5650, 1339, ...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 2672, 1304, 26, 22146, 14, 647, 13734, 845, 6900, 13, 2036, 13, 2192, 19363, 26, 1789, 26, 1690, 58, 333, 24446, 2672, 199, 3, 6529, 26, 577, 10874, 527, 577, 2873, 345, 5650, 1339, 305,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
tomik/akimot
other/tagui/board_widget.py
1
6768
from PyQt4 import QtGui from PyQt4 import QtCore import sys sys.path.append('..') from aei import board ANIMATE_ONE = 0.2 DIRECTIONS = {'n' : -8, 'w' : -1, 'e' : 1, 's': 8} MAX_MOVE_INTERVAL = 1500 STEP_INTERVAL = 300 ERROR = -1 BSIDE = 8 BSIZE = 64 COL_EMPTY = 2 COLORS = ['Gold', 'Silver', ''] PIECE_EMPTY_STR...
gpl-3.0
[ 504, 14084, 20, 492, 5928, 199, 504, 14084, 20, 492, 10565, 199, 199, 646, 984, 221, 199, 1274, 14, 515, 14, 740, 24893, 358, 199, 199, 504, 16951, 73, 492, 13811, 9948, 199, 32560, 1951, 63, 4817, 275, 378, 14, 18, 199, 6098, 282...
[ 14084, 20, 492, 5928, 199, 504, 14084, 20, 492, 10565, 199, 199, 646, 984, 221, 199, 1274, 14, 515, 14, 740, 24893, 358, 199, 199, 504, 16951, 73, 492, 13811, 9948, 199, 32560, 1951, 63, 4817, 275, 378, 14, 18, 199, 6098, 2823, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
robert-kisteleki/ripe-atlas-tools
tests/commands/report.py
3
22948
# coding=utf-8 # Copyright (c) 2015 RIPE NCC # # 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 later version. # # This program is dist...
gpl-3.0
[ 3, 2803, 29, 1624, 13, 24, 199, 199, 3, 1898, 334, 67, 9, 6900, 820, 41, 1510, 653, 2571, 199, 3, 199, 3, 961, 2240, 365, 2867, 2032, 26, 1265, 883, 3604, 652, 436, 15, 269, 2811, 199, 3, 652, 1334, 314, 2895, 402, 314, 1664, ...
[ 2803, 29, 1624, 13, 24, 199, 199, 3, 1898, 334, 67, 9, 6900, 820, 41, 1510, 653, 2571, 199, 3, 199, 3, 961, 2240, 365, 2867, 2032, 26, 1265, 883, 3604, 652, 436, 15, 269, 2811, 199, 3, 652, 1334, 314, 2895, 402, 314, 1664, 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...
RomainBrault/scikit-learn
sklearn/neighbors/graph.py
36
6650
"""Nearest Neighbors graph functions""" # Author: Jake Vanderplas <vanderplas@astro.washington.edu> # # License: BSD 3 clause (C) INRIA, University of Amsterdam from .base import KNeighborsMixin, RadiusNeighborsMixin from .unsupervised import NearestNeighbors def _check_params(X, metric, p, metric_params): """C...
bsd-3-clause
[ 624, 4698, 9540, 5612, 7398, 3343, 3423, 624, 199, 199, 3, 6529, 26, 1603, 1728, 812, 11438, 1168, 305, 665, 86, 11438, 1168, 305, 32, 1810, 293, 14, 87, 1119, 31673, 14, 8654, 30, 199, 3, 199, 3, 844, 26, 6289, 650, 8502, 334, ...
[ 4698, 9540, 5612, 7398, 3343, 3423, 624, 199, 199, 3, 6529, 26, 1603, 1728, 812, 11438, 1168, 305, 665, 86, 11438, 1168, 305, 32, 1810, 293, 14, 87, 1119, 31673, 14, 8654, 30, 199, 3, 199, 3, 844, 26, 6289, 650, 8502, 334, 35, 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...
kch8qx/osf.io
website/project/views/contributor.py
1
27505
# -*- coding: utf-8 -*- import httplib as http from flask import request from modularodm.exceptions import ValidationError, ValidationValueError from framework import forms from framework import status from framework.auth import cas from framework.auth import User, get_user from framework.auth.core import generate_c...
apache-2.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 199, 646, 8809, 465, 1455, 199, 199, 504, 7209, 492, 1056, 199, 504, 3413, 2238, 364, 77, 14, 3924, 492, 8505, 12, 19381, 3393, 199, 199, 504, 10059, 492, 4513, 199, 504, 10059, 492, 200...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 199, 646, 8809, 465, 1455, 199, 199, 504, 7209, 492, 1056, 199, 504, 3413, 2238, 364, 77, 14, 3924, 492, 8505, 12, 19381, 3393, 199, 199, 504, 10059, 492, 4513, 199, 504, 10059, 492, 2004, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
kumar303/addons-server
src/olympia/users/tasks.py
7
1425
from django.core.files.storage import default_storage as storage import olympia.core.logger from olympia.amo.celery import task from olympia.amo.decorators import set_modified_on from olympia.amo.templatetags.jinja_helpers import user_media_path from olympia.amo.utils import resize_image from .models import UserProf...
bsd-3-clause
[ 504, 1639, 14, 1018, 14, 1725, 14, 3494, 492, 849, 63, 3494, 465, 4887, 199, 199, 646, 312, 590, 311, 4674, 14, 1018, 14, 2921, 199, 199, 504, 312, 590, 311, 4674, 14, 4393, 14, 23593, 492, 2120, 199, 504, 312, 590, 311, 4674, 1...
[ 1639, 14, 1018, 14, 1725, 14, 3494, 492, 849, 63, 3494, 465, 4887, 199, 199, 646, 312, 590, 311, 4674, 14, 1018, 14, 2921, 199, 199, 504, 312, 590, 311, 4674, 14, 4393, 14, 23593, 492, 2120, 199, 504, 312, 590, 311, 4674, 14, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
rajul/sugar
src/jarabe/journal/journalactivity.py
6
17405
# Copyright (C) 2006, Red Hat, Inc. # Copyright (C) 2007, One Laptop Per Child # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later ...
gpl-2.0
[ 3, 1898, 334, 35, 9, 8315, 12, 9572, 13002, 12, 3277, 14, 199, 3, 1898, 334, 35, 9, 10219, 12, 7309, 491, 439, 2119, 3492, 12988, 199, 3, 199, 3, 961, 2240, 365, 2867, 2032, 27, 1265, 883, 3604, 652, 436, 15, 269, 2811, 199, 3...
[ 1898, 334, 35, 9, 8315, 12, 9572, 13002, 12, 3277, 14, 199, 3, 1898, 334, 35, 9, 10219, 12, 7309, 491, 439, 2119, 3492, 12988, 199, 3, 199, 3, 961, 2240, 365, 2867, 2032, 27, 1265, 883, 3604, 652, 436, 15, 269, 2811, 199, 3, 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...
geekboxzone/lollipop_external_chromium_org_third_party_WebKit
Source/build/scripts/name_utilities.py
32
3069
# Copyright (C) 2013 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, 6171, 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, 6171, 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...
DailyActie/Surrogate-Model
01-codes/numpy-master/numpy/polynomial/polynomial.py
1
52763
""" Objects for dealing with polynomials. This module provides a number of objects (mostly functions) useful for dealing with polynomials, including a `Polynomial` class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with polynomial objects is in the do...
mit
[ 624, 199, 11188, 367, 23654, 543, 27599, 14, 199, 199, 2765, 859, 6571, 282, 1329, 402, 2251, 334, 2786, 590, 3423, 9, 2997, 367, 199, 21245, 316, 543, 27599, 12, 5893, 282, 658, 5858, 8887, 64, 1021, 626, 199, 287, 12029, 15409, 31...
[ 199, 11188, 367, 23654, 543, 27599, 14, 199, 199, 2765, 859, 6571, 282, 1329, 402, 2251, 334, 2786, 590, 3423, 9, 2997, 367, 199, 21245, 316, 543, 27599, 12, 5893, 282, 658, 5858, 8887, 64, 1021, 626, 199, 287, 12029, 15409, 314, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
BGCECSE2015/CADO
PYTHON/Extraction/WorkUnstructuredGrid/Ugrid_to_Python.py
1
2002
#!/usr/bin/env python # -*- coding: utf-8 -*- # print "Start" from vtk import * from vtk.util.numpy_support import vtk_to_numpy import itertools as it import cPickle import getopt,sys import numpy as np # The source file: INPUT print "Starting the Input reading" try: opts, args = getopt.getopt(sys.argv[1:], "ho:v", ...
bsd-3-clause
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 199, 199, 1361, 298, 3162, 2, 199, 504, 11144, 492, 627, 199, 504, 11144, 14, 1974, 14, 4714, 63, 4058, 492, 11144, 63, 475, 63, 4714, 199...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 199, 199, 1361, 298, 3162, 2, 199, 504, 11144, 492, 627, 199, 504, 11144, 14, 1974, 14, 4714, 63, 4058, 492, 11144, 63, 475, 63, 4714, 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...
ajyoon/brown
tests/test_models/test_beat.py
1
3692
import unittest from fractions import Fraction import pytest from brown.models.beat import Beat class TestBeat(unittest.TestCase): def test_init_from_numerator_denominator(self): dur = Beat(1, 4) assert(dur.numerator == 1) assert(dur.denominator == 4) def test_init_from_existing_be...
gpl-3.0
[ 646, 2882, 199, 504, 28213, 2452, 492, 17980, 199, 199, 646, 4613, 199, 199, 504, 330, 18406, 14, 992, 14, 12522, 492, 6423, 292, 421, 199, 533, 1379, 3655, 292, 8, 2796, 14, 1746, 304, 339, 347, 511, 63, 826, 63, 504, 63, 19398, ...
[ 2882, 199, 504, 28213, 2452, 492, 17980, 199, 199, 646, 4613, 199, 199, 504, 330, 18406, 14, 992, 14, 12522, 492, 6423, 292, 421, 199, 533, 1379, 3655, 292, 8, 2796, 14, 1746, 304, 339, 347, 511, 63, 826, 63, 504, 63, 19398, 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...
micahcochran/geopandas
geopandas/_version.py
3
16750
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
bsd-3-clause
[ 199, 3, 961, 570, 22577, 370, 4526, 282, 1015, 1329, 315, 1350, 14416, 15884, 687, 199, 3, 6135, 13, 6404, 17641, 334, 10180, 465, 5204, 2741, 701, 12869, 83, 5235, 13, 504, 13, 1450, 199, 3, 3878, 680, 11839, 17641, 83, 334, 11730,...
[ 3, 961, 570, 22577, 370, 4526, 282, 1015, 1329, 315, 1350, 14416, 15884, 687, 199, 3, 6135, 13, 6404, 17641, 334, 10180, 465, 5204, 2741, 701, 12869, 83, 5235, 13, 504, 13, 1450, 199, 3, 3878, 680, 11839, 17641, 83, 334, 11730, 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...
edx/edxanalytics
src/util/playback.py
1
1385
import logging, logging.handlers import sys logging.handlers.HTTPHandler('','',method='GET') logger = logging.getLogger('simple_example') # http_handler = logging.handlers.HTTPHandler('127.0.0.1:9022', '/event', method='GET') http_handler = logging.handlers.HTTPHandler('127.0.0.1:9999', '/httpevent', method='GET') ...
agpl-3.0
[ 646, 2050, 12, 2050, 14, 5586, 199, 646, 984, 199, 199, 4806, 14, 5586, 14, 2856, 2461, 360, 1673, 297, 765, 534, 2970, 358, 199, 2921, 275, 2050, 14, 5572, 360, 4129, 63, 2694, 358, 221, 199, 3, 1455, 63, 2232, 275, 2050, 14, 5...
[ 2050, 12, 2050, 14, 5586, 199, 646, 984, 199, 199, 4806, 14, 5586, 14, 2856, 2461, 360, 1673, 297, 765, 534, 2970, 358, 199, 2921, 275, 2050, 14, 5572, 360, 4129, 63, 2694, 358, 221, 199, 3, 1455, 63, 2232, 275, 2050, 14, 5586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
zycdragonball/tensorflow
tensorflow/contrib/learn/python/learn/estimators/linear_test.py
58
71789
# 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...
anryko/ansible
lib/ansible/modules/network/f5/bigip_profile_tcp.py
19
21522
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
gpl-3.0
[ 3381, 2647, 15, 1393, 15, 1548, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 199, 3, 1898, 26, 334, 67, 9, 9708, 12, 481, 21, 17138, 3277, 14, 199, 3, 1664, 1696, 1684, 844, 373, 19, 14, 16, 334, 3239, 9685, 503, 4178, ...
[ 2647, 15, 1393, 15, 1548, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 199, 3, 1898, 26, 334, 67, 9, 9708, 12, 481, 21, 17138, 3277, 14, 199, 3, 1664, 1696, 1684, 844, 373, 19, 14, 16, 334, 3239, 9685, 503, 4178, 921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
sfcta/BikeRouter
Bike Model/route_model/traversal/single_source_dijkstra.py
2
4066
import heapq, random def single_source_dijkstra(G,source,varname,exclude_group=[],target=None,weights={},link_randomizer=None,allow_centroids=False,target_type=0,verbose=False): #for hash table targets, target_type 0 means all must be reached, target_type 1 means any can be reached and function will return node reac...
gpl-3.0
[ 646, 13295, 81, 12, 2196, 199, 199, 318, 2849, 63, 1365, 63, 328, 17421, 14183, 8, 39, 12, 1365, 12, 16043, 12, 5473, 63, 923, 6034, 1375, 29, 403, 12, 4916, 10324, 1073, 63, 2355, 1793, 29, 403, 12, 3306, 63, 2946, 26188, 29, 7...
[ 13295, 81, 12, 2196, 199, 199, 318, 2849, 63, 1365, 63, 328, 17421, 14183, 8, 39, 12, 1365, 12, 16043, 12, 5473, 63, 923, 6034, 1375, 29, 403, 12, 4916, 10324, 1073, 63, 2355, 1793, 29, 403, 12, 3306, 63, 2946, 26188, 29, 797, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
souravbadami/oppia
core/domain/visualization_registry_test.py
1
4415
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
apache-2.0
[ 3, 2803, 26, 2774, 13, 24, 199, 3, 199, 3, 1898, 6927, 710, 593, 802, 4674, 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...
[ 2803, 26, 2774, 13, 24, 199, 3, 199, 3, 1898, 6927, 710, 593, 802, 4674, 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, 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...
hurricup/intellij-community
python/lib/Lib/site-packages/django/contrib/gis/gdal/datasource.py
321
4734
""" DataSource is a wrapper for the OGR Data Source object, which provides an interface for reading vector geometry data from many different file formats (including ESRI shapefiles). When instantiating a DataSource object, use the filename of a GDAL-supported data source. For example, a SHP file or a TIGER/Line...
apache-2.0
[ 624, 199, 24300, 365, 282, 4975, 367, 314, 10904, 3918, 5800, 909, 12, 1314, 6571, 199, 376, 3217, 367, 7664, 5477, 3400, 666, 687, 5002, 3365, 570, 199, 6752, 334, 15768, 10427, 6129, 2215, 1725, 680, 421, 3979, 9034, 1958, 282, 2430...
[ 199, 24300, 365, 282, 4975, 367, 314, 10904, 3918, 5800, 909, 12, 1314, 6571, 199, 376, 3217, 367, 7664, 5477, 3400, 666, 687, 5002, 3365, 570, 199, 6752, 334, 15768, 10427, 6129, 2215, 1725, 680, 421, 3979, 9034, 1958, 282, 24300, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JBonsink/GSOC-2013
tools/ns-allinone-3.14.1/pybindgen-0.15.0.809/pybindgen/typehandlers/inttype.py
2
29713
# docstrings not needed here (the type handler interfaces are fully # documented in base.py) # pylint: disable-msg=C0111 import struct assert struct.calcsize('i') == 4 # assumption is made that sizeof(int) == 4 for all platforms pybindgen runs on from base import ReturnValue, Parameter, PointerParameter, PointerRetu...
gpl-3.0
[ 3, 20964, 440, 4346, 2348, 334, 1589, 730, 3016, 8386, 787, 9999, 199, 3, 22751, 315, 1300, 14, 647, 9, 199, 3, 4287, 26, 3507, 13, 1328, 29, 35, 28107, 199, 199, 646, 2702, 199, 479, 2702, 14, 21691, 360, 73, 358, 508, 841, 327...
[ 20964, 440, 4346, 2348, 334, 1589, 730, 3016, 8386, 787, 9999, 199, 3, 22751, 315, 1300, 14, 647, 9, 199, 3, 4287, 26, 3507, 13, 1328, 29, 35, 28107, 199, 199, 646, 2702, 199, 479, 2702, 14, 21691, 360, 73, 358, 508, 841, 327, 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...
likaiwalkman/phantomjs
src/qt/qtwebkit/Tools/Scripts/webkitpy/common/config/committers_unittest.py
121
20173
# Copyright (C) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
bsd-3-clause
[ 3, 1898, 334, 35, 9, 8937, 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, 8937, 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...
timsneath/notepad2
scintilla/qt/ScintillaEdit/WidgetGen.py
65
7794
#!/usr/bin/env python # WidgetGen.py - regenerate the ScintillaWidgetCpp.cpp and ScintillaWidgetCpp.h files # Check that API includes all gtkscintilla2 functions import sys import os import getopt scintillaDirectory = "../.." scintillaScriptsDirectory = os.path.join(scintillaDirectory, "scripts") sys.path.append(scin...
bsd-3-clause
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 16905, 8168, 14, 647, 446, 30943, 314, 13916, 30128, 3339, 19705, 14, 5910, 436, 13916, 30128, 3339, 19705, 14, 72, 1584, 199, 3, 2670, 626, 3261, 6952, 1006, 8116, 551, 30128, 18, 3423, ...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 16905, 8168, 14, 647, 446, 30943, 314, 13916, 30128, 3339, 19705, 14, 5910, 436, 13916, 30128, 3339, 19705, 14, 72, 1584, 199, 3, 2670, 626, 3261, 6952, 1006, 8116, 551, 30128, 18, 3423, 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...
2014c2g9/c2g9
wsgi/static/Brython2.1.0-20140419-113919/Lib/random.py
104
25660
"""Random variable generators. integers -------- uniform within range sequences --------- pick random element pick random sample generate random permutation distributions on the real line: ------------------------------ uniform ...
gpl-2.0
[ 624, 3883, 1750, 16952, 14, 339, 9446, 272, 3001, 1779, 14818, 4453, 1425, 339, 8013, 272, 3001, 13, 1779, 3732, 2196, 1819, 1779, 3732, 2196, 2690, 1779, 3550, 2196, 22966, 339, 10208, 641, 314, 3363, 1004, 26, 272, 10652, 10965, 1779,...
[ 3883, 1750, 16952, 14, 339, 9446, 272, 3001, 1779, 14818, 4453, 1425, 339, 8013, 272, 3001, 13, 1779, 3732, 2196, 1819, 1779, 3732, 2196, 2690, 1779, 3550, 2196, 22966, 339, 10208, 641, 314, 3363, 1004, 26, 272, 10652, 10965, 1779, 1481...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jscn/django
tests/unmanaged_models/models.py
66
3764
""" Models can have a ``managed`` attribute, which specifies whether the SQL code is generated for the table on various manage.py operations. """ from django.db import models from django.utils.encoding import python_2_unicode_compatible # All of these models are created in the database by Django. @python_2_unicod...
bsd-3-clause
[ 624, 199, 20474, 883, 1172, 282, 1124, 11122, 1040, 2225, 12, 1314, 9314, 3775, 314, 5385, 1233, 199, 374, 4046, 367, 314, 1817, 641, 7750, 9635, 14, 647, 5331, 14, 199, 624, 199, 199, 504, 1639, 14, 697, 492, 1709, 199, 504, 1639, ...
[ 199, 20474, 883, 1172, 282, 1124, 11122, 1040, 2225, 12, 1314, 9314, 3775, 314, 5385, 1233, 199, 374, 4046, 367, 314, 1817, 641, 7750, 9635, 14, 647, 5331, 14, 199, 624, 199, 199, 504, 1639, 14, 697, 492, 1709, 199, 504, 1639, 14, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LChristakis/chalice-hunter
lib/python3.4/site-packages/setuptools/package_index.py
84
38798
"""PyPI and direct package downloading""" import sys import os import re import shutil import socket import base64 import hashlib from functools import wraps from pkg_resources import ( CHECKOUT_DIST, Distribution, BINARY_DIST, normalize_path, SOURCE_DIST, require, Environment, find_distributions, safe_name, s...
mit
[ 624, 2713, 2252, 436, 4125, 2559, 25937, 624, 199, 646, 984, 199, 646, 747, 199, 646, 295, 199, 646, 5145, 199, 646, 2838, 199, 646, 1300, 772, 199, 646, 8337, 199, 504, 9143, 492, 14018, 199, 199, 504, 5496, 63, 4435, 492, 334, 2...
[ 2713, 2252, 436, 4125, 2559, 25937, 624, 199, 646, 984, 199, 646, 747, 199, 646, 295, 199, 646, 5145, 199, 646, 2838, 199, 646, 1300, 772, 199, 646, 8337, 199, 504, 9143, 492, 14018, 199, 199, 504, 5496, 63, 4435, 492, 334, 272, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
m-housh/asyncio-utils
tests/test_asyncio_utils.py
1
3526
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_asyncio_utils ---------------------------------- Tests for ``asyncio_utils`` module. """ import pytest import collections from asyncio_utils import * pytestmark = pytest.mark.asyncio async def test_aiter(): async def gen(): yield 1 async fo...
mit
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 199, 396, 63, 19343, 63, 1208, 199, 1444, 306, 199, 199, 2925, 367, 1124, 19343, 63, 1208, 1040, 221, 859, 14, 199, 624, 199, 199, 646, ...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 199, 396, 63, 19343, 63, 1208, 199, 1444, 306, 199, 199, 2925, 367, 1124, 19343, 63, 1208, 1040, 221, 859, 14, 199, 624, 199, 199, 646, 4613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
xxsergzzxx/python-for-android
python3-alpha/python3-src/Tools/pybench/NewInstances.py
92
1561
from pybench import Test # Check for new-style class support: try: class c(object): pass except NameError: raise ImportError ### class CreateNewInstances(Test): version = 2.0 operations = 3 + 7 + 4 rounds = 60000 def test(self): class c(object): pass cl...
apache-2.0
[ 504, 1134, 16571, 492, 1379, 199, 199, 3, 2670, 367, 892, 13, 2487, 1021, 2291, 26, 199, 893, 26, 272, 1021, 286, 8, 785, 304, 267, 986, 199, 2590, 12746, 26, 272, 746, 3545, 199, 199, 5680, 199, 199, 533, 2790, 4665, 18194, 8, ...
[ 1134, 16571, 492, 1379, 199, 199, 3, 2670, 367, 892, 13, 2487, 1021, 2291, 26, 199, 893, 26, 272, 1021, 286, 8, 785, 304, 267, 986, 199, 2590, 12746, 26, 272, 746, 3545, 199, 199, 5680, 199, 199, 533, 2790, 4665, 18194, 8, 774, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
luken/pcitweak
pcitweak/devices.py
1
5490
import os, re from config import PCIConfigSpace, PCIConfigSpaceAccess class PCIDeviceAddress: def __init__(self, domain=None, bus=None, device=None, func=None): self.domain = domain self.bus = bus self.device = device self.func = func def __str__(self): return "%04x:%02...
mit
[ 646, 747, 12, 295, 199, 504, 1101, 492, 510, 3553, 2028, 7643, 12, 510, 3553, 2028, 7643, 3946, 199, 199, 533, 510, 3553, 2510, 1476, 26, 272, 347, 636, 826, 721, 277, 12, 2881, 29, 403, 12, 10414, 29, 403, 12, 2243, 29, 403, 12...
[ 747, 12, 295, 199, 504, 1101, 492, 510, 3553, 2028, 7643, 12, 510, 3553, 2028, 7643, 3946, 199, 199, 533, 510, 3553, 2510, 1476, 26, 272, 347, 636, 826, 721, 277, 12, 2881, 29, 403, 12, 10414, 29, 403, 12, 2243, 29, 403, 12, 256...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
FNCS/ns-3.26
src/flow-monitor/examples/flowmon-parse-results.py
20
6138
from __future__ import division import sys import os try: from xml.etree import cElementTree as ElementTree except ImportError: from xml.etree import ElementTree def parse_time_ns(tm): if tm.endswith('ns'): return long(tm[:-4]) raise ValueError(tm) class FiveTuple(object): __slots__ = ['...
gpl-2.0
[ 504, 636, 2443, 363, 492, 4629, 199, 646, 984, 199, 646, 747, 199, 893, 26, 272, 687, 2748, 14, 9464, 492, 286, 15325, 465, 13139, 199, 2590, 3545, 26, 272, 687, 2748, 14, 9464, 492, 13139, 199, 199, 318, 2198, 63, 521, 63, 561, ...
[ 636, 2443, 363, 492, 4629, 199, 646, 984, 199, 646, 747, 199, 893, 26, 272, 687, 2748, 14, 9464, 492, 286, 15325, 465, 13139, 199, 2590, 3545, 26, 272, 687, 2748, 14, 9464, 492, 13139, 199, 199, 318, 2198, 63, 521, 63, 561, 8, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
100Shapes/wagtail
wagtail/contrib/wagtailroutablepage/tests.py
1
3029
from django.test import TestCase from wagtail.wagtailcore.models import Page from wagtail.tests.models import RoutablePageTest, routable_page_external_view class TestRoutablePage(TestCase): def setUp(self): self.home_page = Page.objects.get(id=2) self.routable_page = self.home_page.add_child(inst...
bsd-3-clause
[ 504, 1639, 14, 396, 492, 7640, 199, 199, 504, 7328, 14, 31439, 14, 992, 492, 10331, 199, 504, 7328, 14, 2219, 14, 992, 492, 30790, 461, 3276, 774, 12, 882, 2964, 63, 1606, 63, 5159, 63, 1345, 421, 199, 533, 1379, 7595, 461, 3276, ...
[ 1639, 14, 396, 492, 7640, 199, 199, 504, 7328, 14, 31439, 14, 992, 492, 10331, 199, 504, 7328, 14, 2219, 14, 992, 492, 30790, 461, 3276, 774, 12, 882, 2964, 63, 1606, 63, 5159, 63, 1345, 421, 199, 533, 1379, 7595, 461, 3276, 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...
yoosw/printrun_golconda
setup.py
12
5945
#!/usr/bin/env python # This file is part of the Printrun suite. # # Printrun 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. # # Prin...
gpl-3.0
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 199, 3, 961, 570, 365, 1777, 402, 314, 9101, 1065, 5241, 14, 199, 3, 199, 3, 9101, 1065, 365, 2867, 2032, 26, 1265, 883, 3604, 652, 436, 15, 269, 2811, 199, 3, 652, 1334, 314, 2895, 402...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 199, 3, 961, 570, 365, 1777, 402, 314, 9101, 1065, 5241, 14, 199, 3, 199, 3, 9101, 1065, 365, 2867, 2032, 26, 1265, 883, 3604, 652, 436, 15, 269, 2811, 199, 3, 652, 1334, 314, 2895, 402, 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...
yqzhang/OpenANN
benchmarks/iris/benchmark.py
5
3308
## \page IrisBenchmark Iris Flower Dataset # # The iris dataset is a standard machine learning dataset. # See e.g. the <a href="http://en.wikipedia.org/wiki/Iris_flower_data_set" # target=_blank>Wikipedia article</a> for more details. # # You can start the benchmark with the script: # \verbatim # python benchmark...
gpl-3.0
[ 309, 971, 1606, 473, 5719, 18644, 473, 5719, 481, 2325, 20284, 199, 3, 199, 3, 221, 710, 12192, 4789, 365, 282, 4465, 6844, 9328, 4789, 14, 199, 3, 221, 1666, 325, 14, 71, 14, 314, 665, 65, 4369, 628, 1014, 921, 287, 14, 13961, ...
[ 971, 1606, 473, 5719, 18644, 473, 5719, 481, 2325, 20284, 199, 3, 199, 3, 221, 710, 12192, 4789, 365, 282, 4465, 6844, 9328, 4789, 14, 199, 3, 221, 1666, 325, 14, 71, 14, 314, 665, 65, 4369, 628, 1014, 921, 287, 14, 13961, 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, 1...
ChronoMonochrome/android_external_chromium_org
build/android/pylib/utils/flakiness_dashboard_results_uploader.py
59
7781
# 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. """Uploads the results to the flakiness dashboard server.""" import logging import os import shutil import subprocess import sys import tempfile import ...
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, 199, 624, 1721, 36...
[ 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, 199, 624, 1721, 3640, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
0jpq0/kbengine
kbe/src/lib/python/Lib/test/test_heapq.py
111
14475
"""Unittests for heapq.""" import sys import random import unittest from test import support from unittest import TestCase, skipUnless py_heapq = support.import_fresh_module('heapq', blocked=['_heapq']) c_heapq = support.import_fresh_module('heapq', fresh=['_heapq']) # _heapq.nlargest/nsmallest are saved in heapq._...
lgpl-3.0
[ 624, 1358, 1770, 83, 367, 13295, 81, 1041, 199, 199, 646, 984, 199, 646, 2196, 199, 646, 2882, 199, 199, 504, 511, 492, 2291, 199, 504, 2882, 492, 7640, 12, 3372, 5524, 199, 199, 647, 63, 12492, 81, 275, 2291, 14, 646, 63, 25488, ...
[ 1358, 1770, 83, 367, 13295, 81, 1041, 199, 199, 646, 984, 199, 646, 2196, 199, 646, 2882, 199, 199, 504, 511, 492, 2291, 199, 504, 2882, 492, 7640, 12, 3372, 5524, 199, 199, 647, 63, 12492, 81, 275, 2291, 14, 646, 63, 25488, 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...
joegomes/deepchem
deepchem/models/tensorflow_models/lr.py
2
9592
# -*- coding: utf-8 -*- """ Created on Tue Nov 08 14:10:02 2016 @author: Zhenqin Wu """ import tensorflow as tf import numpy as np import os import time from deepchem.metrics import from_one_hot from deepchem.models.tensorflow_models import TensorflowGraph from deepchem.models.tensorflow_models import TensorflowGraph...
mit
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 199, 10502, 641, 377, 310, 3091, 86, 19363, 4329, 26, 709, 26, 996, 7800, 199, 199, 32, 2502, 26, 3107, 16800, 81, 262, 644, 85, 199, 624, 199, 646, 3228, 465, 2833, 199, 646, 268...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 199, 10502, 641, 377, 310, 3091, 86, 19363, 4329, 26, 709, 26, 996, 7800, 199, 199, 32, 2502, 26, 3107, 16800, 81, 262, 644, 85, 199, 624, 199, 646, 3228, 465, 2833, 199, 646, 2680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
tkingless/webtesting
venvs/tutorials/lib/python2.7/site-packages/pip/_vendor/pyparsing.py
75
158096
# module pyparsing.py # # Copyright (c) 2003-2015 Paul T. McGuire # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, cop...
mit
[ 3, 859, 23943, 14, 647, 199, 3, 199, 3, 1898, 334, 67, 9, 13004, 13, 7806, 221, 28574, 377, 14, 22895, 4324, 264, 199, 3, 199, 3, 8779, 365, 11882, 10009, 12, 2867, 402, 11204, 12, 370, 1263, 4954, 12408, 199, 3, 282, 1331, 402,...
[ 859, 23943, 14, 647, 199, 3, 199, 3, 1898, 334, 67, 9, 13004, 13, 7806, 221, 28574, 377, 14, 22895, 4324, 264, 199, 3, 199, 3, 8779, 365, 11882, 10009, 12, 2867, 402, 11204, 12, 370, 1263, 4954, 12408, 199, 3, 282, 1331, 402, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WeblateOrg/weblate
weblate/accounts/notifications.py
1
25871
# # Copyright © 2012 - 2021 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <https://weblate.org/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lice...
gpl-3.0
[ 3, 199, 3, 1898, 22405, 103, 6029, 446, 499, 15385, 603, 1158, 279, 221, 129, 235, 73, 2411, 130, 248, 665, 77, 1158, 279, 32, 559, 8210, 14, 957, 30, 199, 3, 199, 3, 961, 570, 365, 1777, 402, 6001, 750, 665, 2859, 921, 2520, ...
[ 199, 3, 1898, 22405, 103, 6029, 446, 499, 15385, 603, 1158, 279, 221, 129, 235, 73, 2411, 130, 248, 665, 77, 1158, 279, 32, 559, 8210, 14, 957, 30, 199, 3, 199, 3, 961, 570, 365, 1777, 402, 6001, 750, 665, 2859, 921, 2520, 750, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
pornmailbox/linux-hi3518
tools/perf/scripts/python/syscall-counts.py
1996
1700
# system call counts # (c) 2010, Tom Zanussi <tzanussi@gmail.com> # Licensed under the terms of the GNU GPL License version 2 # # Displays system-wide system call totals, broken down by syscall. # If a [comm] arg is specified, only syscalls called by [comm] are displayed. import os import sys sys.path.append(os.envir...
gpl-2.0
[ 3, 2656, 1240, 8242, 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, 2656, 1240, 23576, ...
[ 2656, 1240, 8242, 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, 2656, 1240, 23576, 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...
fritzo/googlemock
test/gmock_output_test.py
986
5999
#!/usr/bin/env python # # Copyright 2008, 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...
bsd-3-clause
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 199, 3, 1898, 9079, 12, 4475, 3277, 14, 199, 3, 2900, 4481, 4644, 14, 199, 3, 199, 3, 10114, 436, 675, 315, 1350, 436, 3366, 4513, 12, 543, 503, 1928, 199, 3, 7100, 12, 787, 8211, ...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 199, 3, 1898, 9079, 12, 4475, 3277, 14, 199, 3, 2900, 4481, 4644, 14, 199, 3, 199, 3, 10114, 436, 675, 315, 1350, 436, 3366, 4513, 12, 543, 503, 1928, 199, 3, 7100, 12, 787, 8211, 2741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
aspinuso/dispel4py
dispel4py/storm/storm_submission.py
4
10651
# Copyright (c) The University of Edinburgh 2014 # # 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 agr...
apache-2.0
[ 3, 1898, 334, 67, 9, 710, 15904, 402, 17379, 262, 30735, 3561, 6927, 199, 3, 221, 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...
[ 1898, 334, 67, 9, 710, 15904, 402, 17379, 262, 30735, 3561, 6927, 199, 3, 221, 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, 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...
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Tools/Scripts/parseentities.py
44
1719
#!/usr/bin/env python """ Utility for parsing HTML entity definitions available from: http://www.w3.org/ as e.g. http://www.w3.org/TR/REC-html40/HTMLlat1.ent Input is read from stdin, output is written to stdout in form of a Python snippet defining a dictionary "entitydefs" mapping literal ent...
gpl-3.0
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 624, 20511, 367, 6057, 4163, 4642, 10269, 2808, 687, 26, 2541, 1455, 921, 1544, 14, 87, 19, 14, 1308, 15, 465, 325, 14, 71, 14, 489, 1455, 921, 1544, 14, 87, 19, 14, 1308, 15, 1766, 15,...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 624, 20511, 367, 6057, 4163, 4642, 10269, 2808, 687, 26, 2541, 1455, 921, 1544, 14, 87, 19, 14, 1308, 15, 465, 325, 14, 71, 14, 489, 1455, 921, 1544, 14, 87, 19, 14, 1308, 15, 1766, 15, 9481,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
asgard-lab/neutron
neutron/tests/common/net_helpers.py
1
20604
# Copyright (c) 2015 Thales Services SAS # # 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 l...
apache-2.0
[ 3, 1898, 334, 67, 9, 6900, 3868, 7098, 21813, 26124, 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, 3868, 7098, 21813, 26124, 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...
calfonso/ansible
lib/ansible/modules/identity/ipa/ipa_role.py
94
10522
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
gpl-3.0
[ 3381, 2647, 15, 1393, 15, 1548, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 1898, 26, 334, 67, 9, 9708, 12, 2622, 7290, 199, 3, 1664, 1696, 1684, 844, 373, 19, 14, 16, 11, 334, 3239, 9685, 503, 4178, 921, 1544, 14, 368...
[ 2647, 15, 1393, 15, 1548, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 1898, 26, 334, 67, 9, 9708, 12, 2622, 7290, 199, 3, 1664, 1696, 1684, 844, 373, 19, 14, 16, 11, 334, 3239, 9685, 503, 4178, 921, 1544, 14, 3689, 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...
richard-willowit/odoo
addons/account_voucher/__manifest__.py
36
1684
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name' : 'Sale & Purchase Vouchers', 'version' : '1.0', 'summary': 'Manage your debts and credits thanks to simple sale/purchase receipts', 'description': """ TODO old description: Invoicing & Payments...
gpl-3.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 14320, 402, 28935, 14, 1666, 5113, 570, 367, 2615, 4248, 436, 32572, 2436, 14, 199, 199, 91, 272, 283, 354, 7, 520, 283, 30005, 1253, 23177, 6703, 812, 13087, 1192, 297, 272, 283, 102...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 14320, 402, 28935, 14, 1666, 5113, 570, 367, 2615, 4248, 436, 32572, 2436, 14, 199, 199, 91, 272, 283, 354, 7, 520, 283, 30005, 1253, 23177, 6703, 812, 13087, 1192, 297, 272, 283, 1023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
aerkalov/booktype-scrolls
scripts/replace/replace_in_chapter.py
1
2053
#!/usr/bin/env python # This file is part of booktype-scrolls. # Copyright (c) 2012 Aleksandar Erkalovic <aleksandar.erkalovic@sourcefabric.org> # # Booktype is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundati...
agpl-3.0
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 961, 570, 365, 1777, 402, 6719, 466, 13, 551, 8459, 478, 14, 199, 3, 1898, 334, 67, 9, 6029, 6832, 6080, 460, 285, 221, 539, 75, 12201, 31629, 665, 1895, 6080, 460, 285, 14, 281, 75,...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 961, 570, 365, 1777, 402, 6719, 466, 13, 551, 8459, 478, 14, 199, 3, 1898, 334, 67, 9, 6029, 6832, 6080, 460, 285, 221, 539, 75, 12201, 31629, 665, 1895, 6080, 460, 285, 14, 281, 75, 12201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PeterKietzmann/RIOT
dist/tools/compile_and_test_for_board/compile_and_test_for_board.py
8
25004
#! /usr/bin/env python3 """ This script handles building all applications and tests for one board and also execute tests if they are available. An incremental build can selected using `--incremental` to not rerun successful compilation and tests. But then it should be run on a fixed version of the repository as no ve...
lgpl-2.1
[ 3168, 1182, 2647, 15, 1393, 15, 1813, 2366, 19, 199, 199, 624, 199, 2765, 2884, 10022, 10015, 1006, 13103, 436, 2295, 367, 1373, 13811, 436, 2597, 199, 2526, 2295, 340, 2985, 787, 2808, 14, 199, 199, 2493, 16316, 1900, 883, 4895, 1808...
[ 1182, 2647, 15, 1393, 15, 1813, 2366, 19, 199, 199, 624, 199, 2765, 2884, 10022, 10015, 1006, 13103, 436, 2295, 367, 1373, 13811, 436, 2597, 199, 2526, 2295, 340, 2985, 787, 2808, 14, 199, 199, 2493, 16316, 1900, 883, 4895, 1808, 658,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Signbank/Auslan-signbank
signbank/dictionary/migrations/0033_auto__del_field_gloss_InSuppBook__del_field_gloss_NotBkDBOnly__del_fie.py
2
9592
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Gloss.InSuppBook' db.delete_column('dictionary_gloss', 'InSuppBook') # Deleting f...
bsd-3-clause
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 646, 2197, 199, 504, 12919, 14, 697, 492, 1592, 199, 504, 12919, 14, 86, 18, 492, 24765, 199, 504, 1639, 14, 697, 492, 1709, 421, 199, 533, 12090, 8, 24822, 304, 339, 347, 17465, 8, 27...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 646, 2197, 199, 504, 12919, 14, 697, 492, 1592, 199, 504, 12919, 14, 86, 18, 492, 24765, 199, 504, 1639, 14, 697, 492, 1709, 421, 199, 533, 12090, 8, 24822, 304, 339, 347, 17465, 8, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
gvaf/breakpad
src/testing/gtest/test/gtest_env_var_test.py
7
3711
#!/usr/bin/env python # # Copyright 2008, 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...
bsd-3-clause
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 199, 3, 1898, 9079, 12, 4475, 3277, 14, 199, 3, 2900, 4481, 4644, 14, 199, 3, 199, 3, 10114, 436, 675, 315, 1350, 436, 3366, 4513, 12, 543, 503, 1928, 199, 3, 7100, 12, 787, 8211, ...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 199, 3, 1898, 9079, 12, 4475, 3277, 14, 199, 3, 2900, 4481, 4644, 14, 199, 3, 199, 3, 10114, 436, 675, 315, 1350, 436, 3366, 4513, 12, 543, 503, 1928, 199, 3, 7100, 12, 787, 8211, 2741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
faturita/ShinkeyBot
NeoCortex/PILServer.py
1
1155
import io import socket import struct from PIL import Image # Start a socket listening for connections on 0.0.0.0:8000 (0.0.0.0 means # all interfaces) server_socket = socket.socket() server_socket.bind(('0.0.0.0', 8000)) server_socket.listen(0) # Accept a single connection and make a file-like object out of it conne...
mit
[ 646, 5890, 199, 646, 2838, 199, 646, 2702, 199, 504, 14937, 492, 6047, 199, 199, 3, 7707, 282, 2838, 22721, 367, 6947, 641, 378, 14, 16, 14, 16, 14, 16, 26, 15214, 334, 16, 14, 16, 14, 16, 14, 16, 4910, 199, 3, 1006, 8386, 9, ...
[ 5890, 199, 646, 2838, 199, 646, 2702, 199, 504, 14937, 492, 6047, 199, 199, 3, 7707, 282, 2838, 22721, 367, 6947, 641, 378, 14, 16, 14, 16, 14, 16, 26, 15214, 334, 16, 14, 16, 14, 16, 14, 16, 4910, 199, 3, 1006, 8386, 9, 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...
Trinitaria/namebench
libnamebench/data_sources.py
173
15580
#!/usr/bin/env python # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
apache-2.0
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 1898, 8937, 4475, 3277, 14, 2900, 5924, 5702, 14, 199, 3, 199, 3, 3909, 1334, 314, 3668, 844, 12, 3394, 499, 14, 16, 334, 1589, 298, 3761, 3547, 199, 3, 1265, 1443, 440, 675, 642, 57...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 1898, 8937, 4475, 3277, 14, 2900, 5924, 5702, 14, 199, 3, 199, 3, 3909, 1334, 314, 3668, 844, 12, 3394, 499, 14, 16, 334, 1589, 298, 3761, 3547, 199, 3, 1265, 1443, 440, 675, 642, 570, 871...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
tornadozou/tensorflow
tensorflow/contrib/distributions/python/kernel_tests/bijectors/softmax_centered_test.py
70
4301
# 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...
sinkuri256/python-for-android
python3-alpha/python3-src/Lib/tkinter/test/test_ttk/test_style.py
54
2792
import unittest import tkinter from tkinter import ttk from test.support import requires, run_unittest import tkinter.test.support as support requires('gui') class StyleTest(unittest.TestCase): def setUp(self): self.style = ttk.Style() def test_configure(self): style = self.style s...
apache-2.0
[ 646, 2882, 199, 646, 22171, 199, 504, 22171, 492, 28431, 199, 504, 511, 14, 4058, 492, 5074, 12, 1255, 63, 2796, 199, 199, 646, 22171, 14, 396, 14, 4058, 465, 2291, 199, 199, 6537, 360, 5885, 358, 199, 199, 533, 19442, 774, 8, 279...
[ 2882, 199, 646, 22171, 199, 504, 22171, 492, 28431, 199, 504, 511, 14, 4058, 492, 5074, 12, 1255, 63, 2796, 199, 199, 646, 22171, 14, 396, 14, 4058, 465, 2291, 199, 199, 6537, 360, 5885, 358, 199, 199, 533, 19442, 774, 8, 2796, 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...
mahak/cinder
cinder/tests/unit/volume/drivers/vmware/fake.py
2
1187
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
apache-2.0
[ 3, 259, 3909, 1334, 314, 3668, 844, 12, 3394, 499, 14, 16, 334, 1589, 298, 3761, 3547, 1265, 1443, 199, 3, 259, 440, 675, 642, 570, 871, 315, 4151, 543, 314, 844, 14, 2047, 1443, 3332, 199, 3, 259, 282, 1331, 402, 314, 844, 737,...
[ 259, 3909, 1334, 314, 3668, 844, 12, 3394, 499, 14, 16, 334, 1589, 298, 3761, 3547, 1265, 1443, 199, 3, 259, 440, 675, 642, 570, 871, 315, 4151, 543, 314, 844, 14, 2047, 1443, 3332, 199, 3, 259, 282, 1331, 402, 314, 844, 737, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ChronoMonochrome/android_external_chromium_org
chrome/common/extensions/docs/server2/caching_file_system_test.py
23
8818
#!/usr/bin/env python # 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 os import sys import unittest from caching_file_system import CachingFileSystem from file_system import StatInfo from loca...
bsd-3-clause
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 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, ...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 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, 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...
mohittahiliani/tcp-eval-suite-ns3
src/point-to-point-layout/bindings/modulegen__gcc_ILP32.py
28
477247
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
gpl-2.0
[ 504, 1134, 31297, 492, 5673, 12, 3814, 3034, 17111, 12, 1215, 12, 9151, 12, 7246, 533, 12, 14330, 421, 199, 646, 1134, 31297, 14, 1751, 199, 646, 3598, 199, 199, 533, 4520, 2461, 8, 647, 31297, 14, 1751, 14, 25933, 304, 272, 347, ...
[ 1134, 31297, 492, 5673, 12, 3814, 3034, 17111, 12, 1215, 12, 9151, 12, 7246, 533, 12, 14330, 421, 199, 646, 1134, 31297, 14, 1751, 199, 646, 3598, 199, 199, 533, 4520, 2461, 8, 647, 31297, 14, 1751, 14, 25933, 304, 272, 347, 2429, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
pomegranited/edx-platform
lms/djangoapps/instructor/tests/test_api_email_localization.py
64
3576
# -*- coding: utf-8 -*- """ Unit tests for the localization of emails sent by instructor.api methods. """ from django.core import mail from django.core.urlresolvers import reverse from nose.plugins.attrib import attr from courseware.tests.factories import InstructorFactory from lang_pref import LANGUAGE_KEY from stud...
agpl-3.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 199, 5072, 2295, 367, 314, 2257, 2072, 402, 14931, 4847, 701, 17724, 14, 1246, 3102, 14, 199, 624, 199, 199, 504, 1639, 14, 1018, 492, 6016, 199, 504, 1639, 14, 1018, 14, 16522, 492...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 624, 199, 5072, 2295, 367, 314, 2257, 2072, 402, 14931, 4847, 701, 17724, 14, 1246, 3102, 14, 199, 624, 199, 199, 504, 1639, 14, 1018, 492, 6016, 199, 504, 1639, 14, 1018, 14, 16522, 492, 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...
melbit-kevinwessel/ansible-modules-core
database/mysql/mysql_user.py
24
17625
#!/usr/bin/python # (c) 2012, Mark Theunissen <mark.theunissen@gmail.com> # Sponsored by Four Kitchens http://fourkitchens.com. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software...
gpl-3.0
[ 3381, 2647, 15, 1393, 15, 1548, 199, 199, 3, 334, 67, 9, 6029, 12, 7173, 710, 324, 374, 2464, 665, 1657, 14, 1589, 324, 374, 2464, 32, 6799, 14, 957, 30, 199, 3, 428, 678, 1152, 581, 701, 23843, 1804, 9414, 8764, 1455, 921, 1367...
[ 2647, 15, 1393, 15, 1548, 199, 199, 3, 334, 67, 9, 6029, 12, 7173, 710, 324, 374, 2464, 665, 1657, 14, 1589, 324, 374, 2464, 32, 6799, 14, 957, 30, 199, 3, 428, 678, 1152, 581, 701, 23843, 1804, 9414, 8764, 1455, 921, 13672, 606...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mindw/numpy
numpy/doc/byteswapping.py
110
5349
""" ============================= Byteswapping and byte order ============================= Introduction to byte ordering and ndarrays ========================================== The ``ndarray`` is an object that provide a python array interface to data in memory. It often happens that the memory that you want to v...
bsd-3-clause
[ 624, 199, 199, 1280, 9152, 199, 9879, 87, 3262, 436, 3696, 1865, 199, 1280, 9152, 199, 199, 3241, 293, 5199, 370, 3696, 7794, 436, 302, 4460, 4814, 199, 2486, 17575, 199, 199, 1918, 1124, 8237, 1040, 365, 376, 909, 626, 5647, 282, 2...
[ 199, 199, 1280, 9152, 199, 9879, 87, 3262, 436, 3696, 1865, 199, 1280, 9152, 199, 199, 3241, 293, 5199, 370, 3696, 7794, 436, 302, 4460, 4814, 199, 2486, 17575, 199, 199, 1918, 1124, 8237, 1040, 365, 376, 909, 626, 5647, 282, 2366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MichaelNedzelsky/intellij-community
python/lib/Lib/site-packages/django/contrib/localflavor/kw/forms.py
310
1988
""" Kuwait-specific Form helpers """ import re from datetime import date from django.core.validators import EMPTY_VALUES from django.forms import ValidationError from django.forms.fields import Field, RegexField from django.utils.translation import gettext as _ id_re = re.compile(r'^(?P<initial>\d{1})(?P<yy>\d\d)(?P<...
apache-2.0
[ 624, 199, 31487, 2573, 13, 6100, 8204, 10897, 199, 624, 199, 646, 295, 199, 504, 2197, 492, 1434, 199, 199, 504, 1639, 14, 1018, 14, 11346, 492, 16589, 63, 15514, 199, 504, 1639, 14, 3351, 492, 8505, 199, 504, 1639, 14, 3351, 14, ...
[ 199, 31487, 2573, 13, 6100, 8204, 10897, 199, 624, 199, 646, 295, 199, 504, 2197, 492, 1434, 199, 199, 504, 1639, 14, 1018, 14, 11346, 492, 16589, 63, 15514, 199, 504, 1639, 14, 3351, 492, 8505, 199, 504, 1639, 14, 3351, 14, 955, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
newville/scikit-image
skimage/feature/tests/test_blob.py
4
4824
import numpy as np from skimage.draw import circle from skimage.feature import blob_dog, blob_log, blob_doh import math from numpy.testing import assert_raises def test_blob_dog(): r2 = math.sqrt(2) img = np.ones((512, 512)) img3 = np.ones((5, 5, 5)) xs, ys = circle(400, 130, 5) img[xs, ys] = 255...
bsd-3-clause
[ 646, 2680, 465, 980, 199, 504, 2386, 1569, 14, 5485, 492, 17990, 199, 504, 2386, 1569, 14, 4445, 492, 9182, 63, 13889, 12, 9182, 63, 793, 12, 9182, 63, 1117, 72, 199, 646, 3473, 199, 504, 2680, 14, 4776, 492, 702, 63, 3536, 421, ...
[ 2680, 465, 980, 199, 504, 2386, 1569, 14, 5485, 492, 17990, 199, 504, 2386, 1569, 14, 4445, 492, 9182, 63, 13889, 12, 9182, 63, 793, 12, 9182, 63, 1117, 72, 199, 646, 3473, 199, 504, 2680, 14, 4776, 492, 702, 63, 3536, 421, 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...
vanhonit/xmario_center
test/gtk3/test_views.py
3
1739
#!/usr/bin/python from gi.repository import Gtk, GObject import unittest from testutils import setup_test_env setup_test_env() TIMEOUT=300 class TestViews(unittest.TestCase): def test_viewswitcher(self): from softwarecenter.ui.gtk3.panes.viewswitcher import get_test_window_viewswitcher win = ge...
gpl-3.0
[ 3381, 2647, 15, 1393, 15, 1548, 199, 199, 504, 18895, 14, 8421, 492, 11424, 12, 31264, 199, 646, 2882, 199, 199, 504, 511, 1208, 492, 3272, 63, 396, 63, 1813, 199, 2758, 63, 396, 63, 1813, 342, 199, 199, 8899, 29, 5863, 199, 199, ...
[ 2647, 15, 1393, 15, 1548, 199, 199, 504, 18895, 14, 8421, 492, 11424, 12, 31264, 199, 646, 2882, 199, 199, 504, 511, 1208, 492, 3272, 63, 396, 63, 1813, 199, 2758, 63, 396, 63, 1813, 342, 199, 199, 8899, 29, 5863, 199, 199, 533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
tyagiarpit/servo
tests/wpt/css-tests/css-text-decor-3_dev/xhtml1print/support/generate-text-emphasis-position-property-tests.py
841
3343
#!/usr/bin/env python # - * - coding: UTF-8 - * - """ This script generates tests text-emphasis-position-property-001 ~ 006 which cover all possible values of text-emphasis-position property with all combination of three main writing modes and two orientations. Only test files are generated by this script. It also out...
mpl-2.0
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 199, 3, 446, 627, 446, 2803, 26, 9094, 13, 24, 446, 627, 446, 199, 199, 624, 199, 2765, 2884, 12821, 2295, 1318, 13, 28907, 13, 3124, 13, 1829, 13, 4587, 6146, 378, 1690, 199, 6777, 8486, 1006...
[ 2647, 15, 1393, 15, 1813, 2366, 199, 3, 446, 627, 446, 2803, 26, 9094, 13, 24, 446, 627, 446, 199, 199, 624, 199, 2765, 2884, 12821, 2295, 1318, 13, 28907, 13, 3124, 13, 1829, 13, 4587, 6146, 378, 1690, 199, 6777, 8486, 1006, 3962...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
alon/polinax
libs/external_libs/python-openid-2.1.1/openid/test/test_consumer.py
10
75107
import urlparse import cgi import time import warnings from openid.message import Message, OPENID_NS, OPENID2_NS, IDENTIFIER_SELECT, \ OPENID1_NS, BARE_NS from openid import cryptutil, dh, oidutil, kvform from openid.store.nonce import mkNonce, split as splitNonce from openid.consumer.discover import OpenIDServic...
gpl-2.0
[ 646, 7097, 199, 646, 16004, 199, 646, 900, 199, 646, 3598, 199, 199, 504, 24494, 14, 1188, 492, 6430, 12, 24164, 998, 63, 2709, 12, 24164, 998, 18, 63, 2709, 12, 26179, 16910, 63, 4859, 12, 971, 1362, 24164, 998, 17, 63, 2709, 12,...
[ 7097, 199, 646, 16004, 199, 646, 900, 199, 646, 3598, 199, 199, 504, 24494, 14, 1188, 492, 6430, 12, 24164, 998, 63, 2709, 12, 24164, 998, 18, 63, 2709, 12, 26179, 16910, 63, 4859, 12, 971, 1362, 24164, 998, 17, 63, 2709, 12, 699,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
tiran/sssd
src/sbus/codegen/sbus_Template.py
6
9834
# # Authors: # Pavel Brezina <pbrezina@redhat.com> # # Copyright (C) 2017 Red Hat # # 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 yo...
gpl-3.0
[ 3, 199, 3, 257, 6642, 26, 199, 3, 755, 10164, 1090, 699, 25409, 13765, 665, 3317, 25409, 13765, 32, 17164, 14, 957, 30, 199, 3, 199, 3, 257, 1898, 334, 35, 9, 9708, 9572, 13002, 199, 3, 199, 3, 257, 961, 2240, 365, 2867, 2032, ...
[ 199, 3, 257, 6642, 26, 199, 3, 755, 10164, 1090, 699, 25409, 13765, 665, 3317, 25409, 13765, 32, 17164, 14, 957, 30, 199, 3, 199, 3, 257, 1898, 334, 35, 9, 9708, 9572, 13002, 199, 3, 199, 3, 257, 961, 2240, 365, 2867, 2032, 27, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IljaKosynkin/ResourcesManager
ResourceManager/scripts/MappingParser.py
1
3815
import re classes_reg = re.compile(r'(.+?)(<?->)(.+)') variable_reg = re.compile(r'(.+?)(,.+?)?(<?->)([^,]+)(,.+)?') class_reg = re.compile(r'(class|struct)([^:{]+?)(:[^{]+?){([^}]+?)}', re.DOTALL) class_var_reg = re.compile(r'(let|var)([^:=]+?)(:[^=]+)(=.+?)?') class Direction: ONE_WAY = 0 TWO_WAY = 1 ...
apache-2.0
[ 646, 295, 199, 199, 2888, 63, 1135, 275, 295, 14, 2014, 8, 82, 6774, 11198, 5130, 28, 31, 5118, 5130, 6977, 5942, 199, 1975, 63, 1135, 275, 295, 14, 2014, 8, 82, 6774, 11198, 5130, 12, 11198, 5547, 27530, 31, 5118, 9, 7059, 12, ...
[ 295, 199, 199, 2888, 63, 1135, 275, 295, 14, 2014, 8, 82, 6774, 11198, 5130, 28, 31, 5118, 5130, 6977, 5942, 199, 1975, 63, 1135, 275, 295, 14, 2014, 8, 82, 6774, 11198, 5130, 12, 11198, 5547, 27530, 31, 5118, 9, 7059, 12, 2807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
kiith-sa/QGIS
python/plugins/processing/tests/qgis_interface.py
8
3356
# -*- coding: utf-8 -*- """ InaSAFE Disaster risk assessment tool developed by AusAid - **QGIS plugin implementation.** Contact : ole.moller.nielsen@gmail.com .. note:: 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 ...
gpl-2.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 199, 624, 199, 607, 65, 27657, 5289, 2311, 22633, 28273, 4744, 477, 27813, 701, 437, 527, 33, 344, 446, 199, 538, 31329, 3589, 4514, 14, 538, 199, 199, 14499, 520, 312, 274, 14, 16924, 1...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 199, 624, 199, 607, 65, 27657, 5289, 2311, 22633, 28273, 4744, 477, 27813, 701, 437, 527, 33, 344, 446, 199, 538, 31329, 3589, 4514, 14, 538, 199, 199, 14499, 520, 312, 274, 14, 16924, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
keithlee/shakeAppPyDev
django/core/management/commands/flush.py
249
3437
from optparse import make_option from django.conf import settings from django.db import connections, router, transaction, models, DEFAULT_DB_ALIAS from django.core.management import call_command from django.core.management.base import NoArgsCommand, CommandError from django.core.management.color import no_style from d...
bsd-3-clause
[ 504, 8691, 492, 1852, 63, 1422, 199, 199, 504, 1639, 14, 2190, 492, 2202, 199, 504, 1639, 14, 697, 492, 6947, 12, 6197, 12, 6008, 12, 1709, 12, 6186, 63, 2846, 63, 12644, 199, 504, 1639, 14, 1018, 14, 8110, 492, 1240, 63, 1531, ...
[ 8691, 492, 1852, 63, 1422, 199, 199, 504, 1639, 14, 2190, 492, 2202, 199, 504, 1639, 14, 697, 492, 6947, 12, 6197, 12, 6008, 12, 1709, 12, 6186, 63, 2846, 63, 12644, 199, 504, 1639, 14, 1018, 14, 8110, 492, 1240, 63, 1531, 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...
dlazz/ansible
lib/ansible/modules/system/dconf.py
5
13112
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Branko Majic <branko@majic.rs> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
gpl-3.0
[ 3381, 2647, 15, 1393, 15, 1548, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 199, 3, 334, 67, 9, 9708, 12, 699, 4648, 79, 603, 9091, 530, 665, 66, 4648, 79, 32, 31611, 530, 14, 2393, 30, 199, 3, 1664, 1696, 1684, 844, 373,...
[ 2647, 15, 1393, 15, 1548, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 199, 3, 334, 67, 9, 9708, 12, 699, 4648, 79, 603, 9091, 530, 665, 66, 4648, 79, 32, 31611, 530, 14, 2393, 30, 199, 3, 1664, 1696, 1684, 844, 373, 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...
christiandev/l10n-brazil
__unported__/l10n_br_account_product/account_product_fiscal_classification.py
2
15143
# -*- encoding: utf-8 -*- ############################################################################### # # # Copyright (C) 2012 Renato Lima - Akretion # # ...
agpl-3.0
[ 3, 1882, 2644, 26, 2774, 13, 24, 1882, 199, 11490, 199, 3, 6208, 3777, 327, 199, 3, 1898, 334, 35, 9, 6029, 221, 10055, 11318, 491, 11744, 446, 437, 75, 264, 296, 22456, 327, 199, 3, 6208, 3777, 327, 199, 3, 2765, 2240, 365, 286...
[ 1882, 2644, 26, 2774, 13, 24, 1882, 199, 11490, 199, 3, 6208, 3777, 327, 199, 3, 1898, 334, 35, 9, 6029, 221, 10055, 11318, 491, 11744, 446, 437, 75, 264, 296, 22456, 327, 199, 3, 6208, 3777, 327, 199, 3, 2765, 2240, 365, 2867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ThinkingBridge/platform_external_chromium_org
build/android/pylib/gtest/test_package_apk.py
23
4809
# 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. """Defines TestPackageApk to help run APK-based native tests.""" import logging import os import shlex import sys import tempfile import time from pyli...
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, 199, 624, 23891, 1...
[ 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, 199, 624, 23891, 1379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
dvliman/jaikuengine
.google_appengine/lib/django-1.4/tests/regressiontests/generic_views/urls.py
29
10284
from __future__ import absolute_import from django.conf.urls import patterns, url from django.views.decorators.cache import cache_page from django.views.generic import TemplateView from . import views urlpatterns = patterns('', # base #(r'^about/login-required/$', # views.DecoratedAboutView()), ...
apache-2.0
[ 504, 636, 2443, 363, 492, 3679, 63, 646, 199, 199, 504, 1639, 14, 2190, 14, 3603, 492, 7970, 12, 1166, 199, 504, 1639, 14, 4196, 14, 11582, 14, 1637, 492, 2581, 63, 1606, 199, 504, 1639, 14, 4196, 14, 6767, 492, 5458, 2768, 199, ...
[ 636, 2443, 363, 492, 3679, 63, 646, 199, 199, 504, 1639, 14, 2190, 14, 3603, 492, 7970, 12, 1166, 199, 504, 1639, 14, 4196, 14, 11582, 14, 1637, 492, 2581, 63, 1606, 199, 504, 1639, 14, 4196, 14, 6767, 492, 5458, 2768, 199, 199, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
gauribhoite/personfinder
app/subscribe.py
5
9574
#!/usr/bin/python2.7 # 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 or ...
apache-2.0
[ 3381, 2647, 15, 1393, 15, 1548, 18, 14, 23, 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, 4...
[ 2647, 15, 1393, 15, 1548, 18, 14, 23, 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, 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...
alexei-matveev/ase-local
doc/exercises/siesta1/answer1.py
3
1197
# -*- coding: utf-8 -*- # creates: ener.png distance.png angle.png import os import matplotlib matplotlib.use('Agg') import pylab as plt e_s = [0.01,0.1,0.2,0.3,0.4,0.5] E = [-463.2160, -462.9633, -462.4891, -462.0551, -461.5426, -461.1714] d = [1.1131, 1.1046, 1.0960, 1.0901, 1.0857, 1.0810] alpha = [100....
gpl-2.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 8491, 26, 221, 655, 281, 14, 4524, 6033, 14, 4524, 9324, 14, 4524, 199, 646, 747, 199, 646, 8027, 199, 16440, 14, 1180, 360, 7248, 358, 199, 646, 19199, 465, 4488, 421, 199, 69, 63,...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 8491, 26, 221, 655, 281, 14, 4524, 6033, 14, 4524, 9324, 14, 4524, 199, 646, 747, 199, 646, 8027, 199, 16440, 14, 1180, 360, 7248, 358, 199, 646, 19199, 465, 4488, 421, 199, 69, 63, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jeffcharles/Open-Source-at-Laurier-Website
wluopensource/osl_comments/moderation.py
1
1725
from django.contrib import comments from django.contrib.comments.moderation import CommentModerator, Moderator from django.core.exceptions import ObjectDoesNotExist from osl_comments import signals from osl_comments.models import CommentsBannedFromIpAddress class OslCommentModerator(CommentModerator): email_notif...
bsd-3-clause
[ 504, 1639, 14, 2828, 492, 6786, 199, 504, 1639, 14, 2828, 14, 6223, 14, 632, 1754, 492, 6819, 1385, 9043, 12, 4900, 9043, 199, 504, 1639, 14, 1018, 14, 3924, 492, 24803, 199, 199, 504, 747, 76, 63, 6223, 492, 10166, 199, 504, 747,...
[ 1639, 14, 2828, 492, 6786, 199, 504, 1639, 14, 2828, 14, 6223, 14, 632, 1754, 492, 6819, 1385, 9043, 12, 4900, 9043, 199, 504, 1639, 14, 1018, 14, 3924, 492, 24803, 199, 199, 504, 747, 76, 63, 6223, 492, 10166, 199, 504, 747, 76, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
dpo/nlpy
nlpy/tools/norms.py
3
2495
import numpy as np from numpy import infty from numpy.linalg import norm def norm1(x): if len(x) > 0: return norm(x,ord=1) return 0.0 def norm2(x): if len(x) > 0: return norm(x) return 0.0 def normp(x,p): if len(x) > 0: return norm(x,ord=p) return 0.0 def norm_infty(x...
gpl-3.0
[ 646, 2680, 465, 980, 199, 504, 2680, 492, 10739, 369, 199, 504, 2680, 14, 10096, 492, 6316, 199, 199, 318, 6316, 17, 8, 88, 304, 272, 340, 822, 8, 88, 9, 690, 378, 26, 267, 372, 6316, 8, 88, 12, 2181, 29, 17, 9, 272, 372, 37...
[ 2680, 465, 980, 199, 504, 2680, 492, 10739, 369, 199, 504, 2680, 14, 10096, 492, 6316, 199, 199, 318, 6316, 17, 8, 88, 304, 272, 340, 822, 8, 88, 9, 690, 378, 26, 267, 372, 6316, 8, 88, 12, 2181, 29, 17, 9, 272, 372, 378, 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...
rookdev/pyes
docs/_ext/applyxrefs.py
91
2153
"""Adds xref targets to the top of files.""" import sys import os testing = False DONT_TOUCH = ( './index.txt', ) def target_name(fn): if fn.endswith('.txt'): fn = fn[:-4] return '_' + fn.lstrip('./').replace('/', '-') def process_file(fn, lines): lines.insert(0, '\n') lin...
bsd-3-clause
[ 624, 14995, 671, 1121, 4545, 370, 314, 2746, 402, 1584, 1041, 199, 199, 646, 984, 199, 646, 747, 199, 199, 4776, 275, 756, 199, 199, 31874, 63, 2566, 53, 1244, 275, 334, 267, 21526, 1080, 14, 2424, 297, 267, 776, 421, 199, 318, 13...
[ 14995, 671, 1121, 4545, 370, 314, 2746, 402, 1584, 1041, 199, 199, 646, 984, 199, 646, 747, 199, 199, 4776, 275, 756, 199, 199, 31874, 63, 2566, 53, 1244, 275, 334, 267, 21526, 1080, 14, 2424, 297, 267, 776, 421, 199, 318, 1347, 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...
MayankGo/ec2-api
ec2api/api/common.py
1
14867
# Copyright 2014 # The Cloudscaling Group, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
apache-2.0
[ 3, 1898, 6927, 199, 3, 710, 8142, 12153, 5611, 12, 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, 543, 314, 844, ...
[ 1898, 6927, 199, 3, 710, 8142, 12153, 5611, 12, 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, 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...
misdess/bitcoin
qa/rpc-tests/mempool_spendcoinbase.py
133
2724
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test spending coinbase transactions. # The coinbase transaction in block N can appear in block # N+100... ...
mit
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 18, 199, 3, 1898, 334, 67, 9, 6927, 710, 21158, 11672, 19782, 199, 3, 17484, 1334, 314, 10697, 2032, 4190, 12, 1937, 314, 23073, 199, 3, 570, 9685, 503, 1455, 921, 1544, 14, 16374, 14, 1308, 1...
[ 2647, 15, 1393, 15, 1813, 2366, 18, 199, 3, 1898, 334, 67, 9, 6927, 710, 21158, 11672, 19782, 199, 3, 17484, 1334, 314, 10697, 2032, 4190, 12, 1937, 314, 23073, 199, 3, 570, 9685, 503, 1455, 921, 1544, 14, 16374, 14, 1308, 15, 238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
willzhang05/postgrestesting1
postgrestesting1/lib/python3.5/site-packages/psycopg2/tests/testutils.py
6
10400
# testutils.py - utility module for psycopg2 testing. # # Copyright (C) 2010-2011 Daniele Varrazzo <daniele.varrazzo@gmail.com> # # psycopg2 is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either vers...
mit
[ 3, 511, 1208, 14, 647, 446, 11420, 859, 367, 15492, 18, 5343, 14, 199, 199, 3, 199, 3, 1898, 334, 35, 9, 7129, 13, 8128, 24747, 1873, 274, 21084, 345, 4348, 79, 221, 665, 24863, 1873, 274, 14, 1391, 345, 4348, 79, 32, 6799, 14, ...
[ 511, 1208, 14, 647, 446, 11420, 859, 367, 15492, 18, 5343, 14, 199, 199, 3, 199, 3, 1898, 334, 35, 9, 7129, 13, 8128, 24747, 1873, 274, 21084, 345, 4348, 79, 221, 665, 24863, 1873, 274, 14, 1391, 345, 4348, 79, 32, 6799, 14, 957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
llonchj/sentry
tests/sentry/plugins/interfaces/test_releasehook.py
29
1132
""" sentry.plugins.base.structs ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function __all__ = ['ReleaseHook'] from sentry.models import Release from sentry.plug...
bsd-3-clause
[ 624, 199, 3870, 14, 5265, 14, 1095, 14, 23253, 199, 9753, 4919, 23597, 199, 199, 26, 7307, 26, 334, 67, 9, 7129, 13, 6965, 701, 314, 428, 2373, 11682, 12, 1937, 10610, 367, 1655, 2436, 14, 199, 26, 1682, 26, 6289, 12, 1937, 5113, ...
[ 199, 3870, 14, 5265, 14, 1095, 14, 23253, 199, 9753, 4919, 23597, 199, 199, 26, 7307, 26, 334, 67, 9, 7129, 13, 6965, 701, 314, 428, 2373, 11682, 12, 1937, 10610, 367, 1655, 2436, 14, 199, 26, 1682, 26, 6289, 12, 1937, 5113, 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...
huahbo/pyamg
pyamg/util/tests/test_BSR_utils.py
2
2205
from numpy import array, ravel from scipy import mat from scipy.sparse import bsr_matrix from pyamg.util.BSR_utils import BSR_Get_Row, BSR_Row_WriteScalar,\ BSR_Row_WriteVect from numpy.testing import TestCase, assert_equal class TestBSRUtils(TestCase): def test_BSR_Get_Row(self): indptr = array([0, ...
mit
[ 504, 2680, 492, 1625, 12, 660, 1090, 199, 504, 7026, 492, 2530, 199, 504, 7026, 14, 4421, 492, 330, 5474, 63, 3642, 199, 504, 1134, 455, 71, 14, 1974, 14, 34, 5943, 63, 1208, 492, 699, 5943, 63, 1002, 63, 5810, 12, 699, 5943, 63...
[ 2680, 492, 1625, 12, 660, 1090, 199, 504, 7026, 492, 2530, 199, 504, 7026, 14, 4421, 492, 330, 5474, 63, 3642, 199, 504, 1134, 455, 71, 14, 1974, 14, 34, 5943, 63, 1208, 492, 699, 5943, 63, 1002, 63, 5810, 12, 699, 5943, 63, 581...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
kybriainfotech/iSocioCRM
addons/hw_posbox_homepage/controllers/main.py
27
8253
# -*- coding: utf-8 -*- import logging import os import time import werkzeug import subprocess from os import listdir import openerp from openerp import http from openerp.http import request from openerp.tools.translate import _ _logger = logging.getLogger(__name__) index_style = """ <style> body...
agpl-3.0
[ 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 646, 2050, 199, 646, 747, 199, 646, 900, 199, 646, 10380, 199, 646, 3873, 199, 504, 747, 492, 27483, 199, 199, 646, 5166, 199, 504, 5166, 492, 1455, 199, 504, 5166, 14, 1014, 492, 1056, ...
[ 1882, 2803, 26, 2774, 13, 24, 1882, 199, 646, 2050, 199, 646, 747, 199, 646, 900, 199, 646, 10380, 199, 646, 3873, 199, 504, 747, 492, 27483, 199, 199, 646, 5166, 199, 504, 5166, 492, 1455, 199, 504, 5166, 14, 1014, 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...
SamiHiltunen/invenio-communities
requirements.py
148
5904
#!/usr/bin/env python2 # # -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015 CERN. # # Invenio is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (...
gpl-2.0
[ 3381, 2647, 15, 1393, 15, 1813, 2366, 18, 199, 3, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 199, 3, 961, 570, 365, 1777, 402, 12235, 14, 199, 3, 1898, 334, 35, 9, 6900, 24354, 14, 199, 3, 199, 3, 12235, 365, 2867, ...
[ 2647, 15, 1393, 15, 1813, 2366, 18, 199, 3, 199, 3, 1882, 2803, 26, 2774, 13, 24, 1882, 199, 3, 199, 3, 961, 570, 365, 1777, 402, 12235, 14, 199, 3, 1898, 334, 35, 9, 6900, 24354, 14, 199, 3, 199, 3, 12235, 365, 2867, 2032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...