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 |
|---|---|---|---|---|---|---|---|---|
h2oai/h2o | py/jprobe.py | 8 | 20674 | #!/usr/bin/python
import random, jenkinsapi, getpass, re, os, argparse, shutil, json, logging, sys
import string
from jenkinsapi.jenkins import Jenkins
# only used when we wanted to see what objects were available (below)
# from see import see
DO_LAST_GOOD = True
# using the env variables to force jenkinsapi to use ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
646,
2196,
12,
29537,
1246,
12,
18354,
12,
295,
12,
747,
12,
7534,
12,
5145,
12,
2022,
12,
2050,
12,
984,
199,
646,
1059,
199,
504,
29537,
1246,
14,
25622,
492,
32516,
221,
199,
3,
1454,
1202,
... | [
2647,
15,
1393,
15,
1548,
199,
646,
2196,
12,
29537,
1246,
12,
18354,
12,
295,
12,
747,
12,
7534,
12,
5145,
12,
2022,
12,
2050,
12,
984,
199,
646,
1059,
199,
504,
29537,
1246,
14,
25622,
492,
32516,
221,
199,
3,
1454,
1202,
1380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
naritta/numpy | numpy/distutils/tests/test_npy_pkg_config.py | 70 | 3069 | from __future__ import division, absolute_import, print_function
import os
from tempfile import mkstemp
from numpy.testing import *
from numpy.distutils.npy_pkg_config import read_config, parse_flags
simple = """\
[meta]
Name = foo
Description = foo lib
Version = 0.1
[default]
cflags = -I/usr/include
libs = -L/usr/... | bsd-3-clause | [
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
747,
199,
504,
5549,
492,
333,
6080,
808,
199,
199,
504,
2680,
14,
4776,
492,
627,
199,
504,
2680,
14,
13350,
14,
20245,
63,
4600,
63,
888,
492... | [
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
747,
199,
504,
5549,
492,
333,
6080,
808,
199,
199,
504,
2680,
14,
4776,
492,
627,
199,
504,
2680,
14,
13350,
14,
20245,
63,
4600,
63,
888,
492,
158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
johnewart/django-ldap-wizard | django_ldap_wizard/views.py | 1 | 2059 | from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext, Template, Context, loader
from django.utils.safestring import mark_safe
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.conf import settings
from django.contrib.auth import auth... | bsd-3-clause | [
504,
1639,
14,
17469,
492,
3795,
63,
475,
63,
1310,
12,
664,
63,
785,
63,
269,
63,
5188,
199,
504,
1639,
14,
1160,
492,
22538,
12,
5458,
12,
9470,
12,
5077,
199,
504,
1639,
14,
1208,
14,
28389,
492,
2216,
63,
3489,
199,
504,
163... | [
1639,
14,
17469,
492,
3795,
63,
475,
63,
1310,
12,
664,
63,
785,
63,
269,
63,
5188,
199,
504,
1639,
14,
1160,
492,
22538,
12,
5458,
12,
9470,
12,
5077,
199,
504,
1639,
14,
1208,
14,
28389,
492,
2216,
63,
3489,
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... |
PauliusLabanauskis/AlgorithmsDataStructures | algo_pathfinding/main.py | 1 | 1083 | from graph_input import read_graph
def choose_node(reachable, explored):
for node in reachable:
if node not in explored:
return node
def find_path(start_node, goal_node, graph):
reachable = [start_node]
explored = set()
previous = {start_node: None}
while len(reachable) > 0:
... | unlicense | [
504,
3343,
63,
1210,
492,
1586,
63,
2180,
199,
199,
318,
11496,
63,
932,
8,
15837,
12,
15868,
581,
304,
272,
367,
1031,
315,
29542,
26,
267,
340,
1031,
440,
315,
15868,
581,
26,
288,
372,
1031,
199,
199,
318,
2342,
63,
515,
8,
9... | [
3343,
63,
1210,
492,
1586,
63,
2180,
199,
199,
318,
11496,
63,
932,
8,
15837,
12,
15868,
581,
304,
272,
367,
1031,
315,
29542,
26,
267,
340,
1031,
440,
315,
15868,
581,
26,
288,
372,
1031,
199,
199,
318,
2342,
63,
515,
8,
928,
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... |
sgml/popcorn_maker | vendor-local/lib/python/whoosh/lang/porter2.py | 117 | 8314 | """An implementation of the Porter2 stemming algorithm.
See http://snowball.tartarus.org/algorithms/english/stemmer.html
Adapted from pyporter2 by Michael Dirolf.
This algorithm is more correct but (at least in this implementation)
several times slower than the original porter algorithm as implemented
in stemming.por... | bsd-3-clause | [
624,
2493,
4514,
402,
314,
510,
3968,
18,
17408,
14566,
5563,
14,
199,
9295,
1455,
921,
27765,
8571,
14,
84,
580,
285,
527,
14,
1308,
15,
24365,
15,
17872,
15,
18446,
2626,
14,
1360,
199,
199,
2767,
18309,
687,
1134,
80,
3968,
18,
... | [
2493,
4514,
402,
314,
510,
3968,
18,
17408,
14566,
5563,
14,
199,
9295,
1455,
921,
27765,
8571,
14,
84,
580,
285,
527,
14,
1308,
15,
24365,
15,
17872,
15,
18446,
2626,
14,
1360,
199,
199,
2767,
18309,
687,
1134,
80,
3968,
18,
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... |
lemonad/methodiki | methodiki/methods/forms.py | 1 | 1932 | # -*- coding: utf-8 -*-
from django.forms import ModelForm, TextInput
from django.utils.translation import ugettext_lazy as _
from markitup.widgets import MarkItUpWidget
from taggit.forms import TagWidget
from common.forms import ModelFormRequestUser
from models import Method, MethodBonus
class MethodForm(ModelFormR... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
1639,
14,
3351,
492,
28455,
12,
4516,
3205,
199,
504,
1639,
14,
1208,
14,
6893,
492,
10366,
63,
6395,
465,
485,
199,
504,
2216,
390,
384,
14,
8583,
492,
7173,
7940,
1721,
3339,
199,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
1639,
14,
3351,
492,
28455,
12,
4516,
3205,
199,
504,
1639,
14,
1208,
14,
6893,
492,
10366,
63,
6395,
465,
485,
199,
504,
2216,
390,
384,
14,
8583,
492,
7173,
7940,
1721,
3339,
199,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tersmitten/ansible | lib/ansible/modules/cloud/azure/azure_rm_mariadbconfiguration.py | 12 | 8115 | #!/usr/bin/python
#
# Copyright (c) 2019 Zim Kalinowski, (@zikalino)
# Copyright (c) 2019 Matti Ranta, (@techknowlogick)
#
# 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_METADAT... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
67,
9,
20312,
3107,
1017,
1804,
279,
262,
19844,
12,
8593,
90,
3258,
279,
10175,
9,
199,
3,
1898,
334,
67,
9,
20312,
18619,
280,
820,
290,
502,
12,
8593,
266,
14823,
213... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
67,
9,
20312,
3107,
1017,
1804,
279,
262,
19844,
12,
8593,
90,
3258,
279,
10175,
9,
199,
3,
1898,
334,
67,
9,
20312,
18619,
280,
820,
290,
502,
12,
8593,
266,
14823,
2131,
793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
axilleas/ansible | lib/ansible/module_utils/cloudstack.py | 118 | 13221 | # -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the aut... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
334,
67,
9,
6900,
12,
10055,
5741,
3930,
332,
665,
1198,
32,
264,
685,
573,
332,
14,
846,
30,
199,
3,
199,
3,
961,
1233,
365,
1777,
402,
2622,
12,
1325,
365,
376,
12717,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
334,
67,
9,
6900,
12,
10055,
5741,
3930,
332,
665,
1198,
32,
264,
685,
573,
332,
14,
846,
30,
199,
3,
199,
3,
961,
1233,
365,
1777,
402,
2622,
12,
1325,
365,
376,
12717,
3931... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
anthonyfok/frescobaldi | frescobaldi_app/gadgets/drag.py | 1 | 4442 | # This file is part of the Frescobaldi project, http://www.frescobaldi.org/
#
# Copyright (c) 2011 - 2014 by Wilbert Berendsen
#
# 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
... | gpl-2.0 | [
3,
961,
570,
365,
1777,
402,
314,
481,
470,
331,
4982,
328,
2199,
12,
1455,
921,
1544,
14,
70,
470,
331,
4982,
328,
14,
1308,
15,
199,
3,
199,
3,
1898,
334,
67,
9,
7760,
446,
6927,
701,
644,
382,
12504,
6423,
16479,
2464,
199,
... | [
961,
570,
365,
1777,
402,
314,
481,
470,
331,
4982,
328,
2199,
12,
1455,
921,
1544,
14,
70,
470,
331,
4982,
328,
14,
1308,
15,
199,
3,
199,
3,
1898,
334,
67,
9,
7760,
446,
6927,
701,
644,
382,
12504,
6423,
16479,
2464,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
volkerha/DT211-3-Cloud | euler/e11.py | 1 | 2860 | grid = '08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80 24 47 32 60 ... | mit | [
3825,
275,
283,
2036,
12497,
6928,
15997,
10448,
4114,
8733,
6335,
8733,
13098,
28527,
22528,
24937,
14679,
14589,
3144,
5238,
8375,
21358,
19363,
12260,
12260,
8806,
6335,
5557,
19071,
6155,
12699,
5212,
10513,
5557,
6335,
16096,
11851,
1461... | [
275,
283,
2036,
12497,
6928,
15997,
10448,
4114,
8733,
6335,
8733,
13098,
28527,
22528,
24937,
14679,
14589,
3144,
5238,
8375,
21358,
19363,
12260,
12260,
8806,
6335,
5557,
19071,
6155,
12699,
5212,
10513,
5557,
6335,
16096,
11851,
14610,
961... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
milankl/swm | calc/misc/Re_hist_calc_bs_old.py | 1 | 4307 | ## HISTOGRAM COMPUTATIONS FOR REYNOLDS AND ROSSBY NUMBERS
from __future__ import print_function
# path
import os
path = '/home/mkloewer/python/swm/'
#path = os.path.dirname(os.getcwd()) + '/' # on level above
os.chdir(path) # change working directory
import time as tictoc
import numpy a... | gpl-3.0 | [
309,
869,
6225,
47,
10896,
16503,
934,
12969,
2381,
5363,
30644,
2228,
3177,
2401,
9769,
2300,
8285,
11576,
34,
3960,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
3,
931,
199,
646,
747,
199,
515,
275,
1994,
4219,
15,
3880... | [
869,
6225,
47,
10896,
16503,
934,
12969,
2381,
5363,
30644,
2228,
3177,
2401,
9769,
2300,
8285,
11576,
34,
3960,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
199,
3,
931,
199,
646,
747,
199,
515,
275,
1994,
4219,
15,
3880,
320... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rodrigolucianocosta/ControleEstoque | rOne/Storage101/django-localflavor/django-localflavor-1.3/tests/test_pl.py | 4 | 22841 | from __future__ import unicode_literals
from django.test import SimpleTestCase
from localflavor.pl.forms import (PLCountySelect, PLNationalIDCardNumberField, PLNIPField, PLPESELField,
PLPostalCodeField, PLProvinceSelect, PLREGONField)
class PLLocalFlavorTests(SimpleTestCase):
d... | gpl-3.0 | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
396,
492,
24424,
199,
199,
504,
560,
696,
276,
4271,
14,
1168,
14,
3351,
492,
334,
2749,
24532,
369,
5446,
12,
10092,
46,
6279,
998,
13832,
3259,
792,
12,
10092,
4... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
396,
492,
24424,
199,
199,
504,
560,
696,
276,
4271,
14,
1168,
14,
3351,
492,
334,
2749,
24532,
369,
5446,
12,
10092,
46,
6279,
998,
13832,
3259,
792,
12,
10092,
46,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Poofjunior/dxf2gcode | postpro/tspoptimisation.py | 1 | 16557 | # -*- coding: utf-8 -*-
############################################################################
#
# Copyright (C) 2008-2015
# Christian Kohlöffel
# Vinzenz Schulz
# Jean-Paul Schouwstra
#
# This file is part of DXF2GCODE.
#
# DXF2GCODE is free software: you can redistribute it and/or mod... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
2999,
199,
3949,
381,
202,
199,
3,
202,
199,
3,
257,
1898,
334,
35,
9,
9079,
13,
7806,
202,
199,
3,
259,
2799,
18824,
5653,
1804,
79,
15544,
14614,
556,
352,
202,
199,
3,
259,
28882,
5193,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
2999,
199,
3949,
381,
202,
199,
3,
202,
199,
3,
257,
1898,
334,
35,
9,
9079,
13,
7806,
202,
199,
3,
259,
2799,
18824,
5653,
1804,
79,
15544,
14614,
556,
352,
202,
199,
3,
259,
28882,
5193,
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... |
mujiansu/arangodb | 3rdParty/V8-4.3.61/third_party/python_26/Tools/versioncheck/pyversioncheck.py | 98 | 4051 | """pyversioncheck - Module to help with checking versions"""
import types
import rfc822
import urllib
import sys
# Verbose options
VERBOSE_SILENT=0 # Single-line reports per package
VERBOSE_NORMAL=1 # Single-line reports per package, more info if outdated
VERBOSE_EACHFILE=2 # Report on each URL chec... | apache-2.0 | [
624,
647,
1023,
1074,
446,
5673,
370,
1720,
543,
7907,
5459,
624,
199,
646,
2943,
199,
646,
18158,
10228,
199,
646,
4011,
199,
646,
984,
199,
199,
3,
5444,
2220,
1511,
199,
16075,
63,
51,
1193,
1309,
29,
16,
263,
327,
13050,
13,
6... | [
647,
1023,
1074,
446,
5673,
370,
1720,
543,
7907,
5459,
624,
199,
646,
2943,
199,
646,
18158,
10228,
199,
646,
4011,
199,
646,
984,
199,
199,
3,
5444,
2220,
1511,
199,
16075,
63,
51,
1193,
1309,
29,
16,
263,
327,
13050,
13,
604,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
iHateWEBos/shooter_kernel_34 | scripts/gcc-wrapper.py | 501 | 3410 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011-2012, Code Aurora Forum. 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 a... | gpl-2.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
7760,
13,
7409,
12,
5495,
437,
300,
11131,
2104,
453,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
334,
67,
9,
7760,
13,
7409,
12,
5495,
437,
300,
11131,
2104,
453,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yigitguler/django | tests/forms_tests/tests/test_util.py | 12 | 4366 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import copy
from django.core.exceptions import ValidationError
from django.forms.utils import flatatt, ErrorDict, ErrorList
from django.test import TestCase
from django.utils.safestring import mark_safe
from django.utils import six
from django.utils.tran... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
1331,
199,
199,
504,
1639,
14,
1018,
14,
3924,
492,
8505,
199,
504,
1639,
14,
3351,
14,
1208,
492,
6829,
6796,
12,
4520,
2141,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
1331,
199,
199,
504,
1639,
14,
1018,
14,
3924,
492,
8505,
199,
504,
1639,
14,
3351,
14,
1208,
492,
6829,
6796,
12,
4520,
2141,
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... |
seibert/numba | numba/roc/stubs.py | 4 | 2822 | from numba.core import types, typing, ir
_stub_error = NotImplementedError("This is a stub.")
def get_global_id(*args, **kargs):
"""
OpenCL get_global_id()
"""
raise _stub_error
def get_local_id(*args, **kargs):
"""
OpenCL get_local_id()
"""
raise _stub_error
def get_global_size(*... | bsd-2-clause | [
504,
1967,
2470,
14,
1018,
492,
2943,
12,
14090,
12,
8190,
199,
199,
63,
5811,
63,
705,
275,
4279,
480,
2765,
365,
282,
10098,
2685,
421,
199,
318,
664,
63,
2966,
63,
344,
2031,
589,
12,
1011,
24459,
304,
272,
408,
272,
3232,
1981... | [
1967,
2470,
14,
1018,
492,
2943,
12,
14090,
12,
8190,
199,
199,
63,
5811,
63,
705,
275,
4279,
480,
2765,
365,
282,
10098,
2685,
421,
199,
318,
664,
63,
2966,
63,
344,
2031,
589,
12,
1011,
24459,
304,
272,
408,
272,
3232,
1981,
664... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wldcordeiro/servo | tests/wpt/web-platform-tests/tools/pytest/_pytest/runner.py | 173 | 17105 | """ basic collect and runtest protocol implementations """
import bdb
import sys
from time import time
import py
import pytest
from _pytest._code.code import TerminalRepr, ExceptionInfo
def pytest_namespace():
return {
'fail' : fail,
'skip' : skip,
'importorskip' : importo... | mpl-2.0 | [
624,
5678,
8775,
436,
1255,
396,
4113,
12591,
408,
199,
646,
330,
697,
199,
646,
984,
199,
504,
900,
492,
900,
199,
199,
646,
1134,
199,
646,
4613,
199,
504,
485,
4462,
423,
600,
14,
600,
492,
20429,
279,
15713,
12,
2186,
2354,
42... | [
5678,
8775,
436,
1255,
396,
4113,
12591,
408,
199,
646,
330,
697,
199,
646,
984,
199,
504,
900,
492,
900,
199,
199,
646,
1134,
199,
646,
4613,
199,
504,
485,
4462,
423,
600,
14,
600,
492,
20429,
279,
15713,
12,
2186,
2354,
421,
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... |
rjschwei/azure-sdk-for-python | azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_assembly.py | 3 | 2832 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | [
3,
2803,
29,
1624,
13,
24,
199,
3,
24775,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
199,
3,
4190,
2556,
14,
199,
... | [
2803,
29,
1624,
13,
24,
199,
3,
24775,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
199,
3,
4190,
2556,
14,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
BlueCrystalLabs/bgfx | 3rdparty/scintilla/test/lexTests.py | 65 | 3416 | # -*- coding: utf-8 -*-
# Requires Python 2.7 or later
import io, os, sys, unittest
if sys.platform == "win32":
import XiteWin as Xite
else:
import XiteQt as Xite
keywordsHTML = [
b"b body content head href html link meta "
b"name rel script strong title type xmlns",
b"function",
b"sub"
]
class TestLexers(unitte... | bsd-2-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
15127,
2018,
499,
14,
23,
503,
2945,
199,
199,
646,
5890,
12,
747,
12,
984,
12,
2882,
199,
199,
692,
984,
14,
3246,
508,
298,
2676,
708,
582,
199,
198,
646,
1323,
1175,
8886,
465,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
15127,
2018,
499,
14,
23,
503,
2945,
199,
199,
646,
5890,
12,
747,
12,
984,
12,
2882,
199,
199,
692,
984,
14,
3246,
508,
298,
2676,
708,
582,
199,
198,
646,
1323,
1175,
8886,
465,
1323... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lightcn/odoo | addons/resource/__init__.py | 448 | 1086 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
258,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
258,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sh1nu11bi/RATDecoders | BlackShades.py | 8 | 5801 | #!/usr/bin/env python
'''
BlackShades RAT Decoder
Original Script by Brian Wallace (@botnet_hunter)
'''
__description__ = 'DarkComet Rat Config Extractor\nOriginal Script by Brian Wallace (@botnet_hunter)'
__author__ = 'Kevin Breen http://techanarchy.net'
__OrigionalCode__ = 'v1.0.0 by Brian Wallace (@botnet_hunter... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
2344,
199,
23405,
23527,
3424,
820,
619,
1487,
2693,
199,
199,
17286,
14914,
701,
699,
18429,
644,
279,
1071,
8593,
3018,
846,
63,
72,
7867,
9,
421,
199,
2344,
199,
199,
363,
1802,
363,
275... | [
2647,
15,
1393,
15,
1813,
2366,
199,
2344,
199,
23405,
23527,
3424,
820,
619,
1487,
2693,
199,
199,
17286,
14914,
701,
699,
18429,
644,
279,
1071,
8593,
3018,
846,
63,
72,
7867,
9,
421,
199,
2344,
199,
199,
363,
1802,
363,
275,
283,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tornadozou/tensorflow | tensorflow/contrib/signal/python/ops/spectral_ops.py | 15 | 7918 | # 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... |
pism/pism | examples/inverse/test_invssa_gn.py | 1 | 5837 | #! /usr/bin/env python3
#
# Copyright (C) 2012, 2014, 2015, 2016, 2017, 2018, 2019 David Maxwell
#
# This file is part of PISM.
#
# PISM 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 ... | gpl-3.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
199,
3,
1898,
334,
35,
9,
6029,
12,
6927,
12,
6900,
12,
7800,
12,
9708,
12,
14894,
12,
20312,
20232,
8228,
20501,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
510,
1311,
45,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
199,
3,
1898,
334,
35,
9,
6029,
12,
6927,
12,
6900,
12,
7800,
12,
9708,
12,
14894,
12,
20312,
20232,
8228,
20501,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
510,
1311,
45,
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... |
paramecio/pastafari | scripts/monit/debian_wheezy/alive.py | 1 | 4720 | #!/usr/bin/python3 -u
# A script for install alive script
import subprocess
import argparse
import re
import os
import shutil
import pwd
from subprocess import call
parser = argparse.ArgumentParser(description='A script for install alive script and cron')
parser.add_argument('--url', help='The url where notify tha... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
19,
446,
85,
199,
199,
3,
437,
2884,
367,
3907,
19708,
2884,
9948,
199,
646,
3873,
199,
646,
7534,
199,
646,
295,
199,
646,
747,
199,
646,
5145,
199,
646,
14374,
199,
504,
3873,
492,
1240,
199,
199,... | [
2647,
15,
1393,
15,
1548,
19,
446,
85,
199,
199,
3,
437,
2884,
367,
3907,
19708,
2884,
9948,
199,
646,
3873,
199,
646,
7534,
199,
646,
295,
199,
646,
747,
199,
646,
5145,
199,
646,
14374,
199,
504,
3873,
492,
1240,
199,
199,
2087,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
broferek/ansible | test/units/module_utils/test_database.py | 75 | 4393 | import pytest
from ansible.module_utils.database import (
pg_quote_identifier,
SQLParseError,
)
# These are all valid strings
# The results are based on interpreting the identifier as a table name
VALID = {
# User quoted
'"public.table"': '"public.table"',
'"public"."table"': '"public"."table"',
... | gpl-3.0 | [
646,
4613,
199,
199,
504,
3242,
14,
578,
63,
1208,
14,
4659,
492,
334,
272,
10275,
63,
3513,
63,
5364,
12,
272,
5385,
9123,
12,
199,
9,
199,
199,
3,
5723,
787,
1006,
1686,
3326,
199,
3,
710,
2058,
787,
4079,
641,
6421,
1337,
314... | [
4613,
199,
199,
504,
3242,
14,
578,
63,
1208,
14,
4659,
492,
334,
272,
10275,
63,
3513,
63,
5364,
12,
272,
5385,
9123,
12,
199,
9,
199,
199,
3,
5723,
787,
1006,
1686,
3326,
199,
3,
710,
2058,
787,
4079,
641,
6421,
1337,
314,
514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
macborowy/dajsiepoznac-feed | DajSiePoznacFeed-Server/tests/workers_tests/test_participant_worker.py | 1 | 2277 | import unittest
import mock
from crawler.src.controllers.worker import ParticipantsWorker
import webapp2
import webtest
from google.appengine.ext import testbed
import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
class ParticipantsWorkerTests(unittest.TestCase):
def setUp(self):
se... | mit | [
646,
2882,
199,
646,
1683,
199,
504,
29550,
14,
2164,
14,
20531,
14,
6599,
492,
2235,
20989,
12678,
199,
646,
24812,
18,
199,
646,
3330,
396,
199,
504,
6233,
14,
15358,
14,
832,
492,
511,
6123,
199,
646,
2050,
199,
199,
2921,
275,
... | [
2882,
199,
646,
1683,
199,
504,
29550,
14,
2164,
14,
20531,
14,
6599,
492,
2235,
20989,
12678,
199,
646,
24812,
18,
199,
646,
3330,
396,
199,
504,
6233,
14,
15358,
14,
832,
492,
511,
6123,
199,
646,
2050,
199,
199,
2921,
275,
2050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NGSchool2016/ngschool2016-materials | src/snpEff/scripts/gsa/checkGeneNames.py | 2 | 4985 | #!/usr/bin/env python
import sys
# Debug mode?
debug = False
#------------------------------------------------------------------------------
# Read genes file
#------------------------------------------------------------------------------
def readGenes(genesFile):
print >> sys.stderr, "Reading file " + genesFile
g... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
984,
199,
199,
3,
14245,
818,
31,
199,
1757,
275,
756,
199,
199,
20974,
199,
3,
5574,
3805,
397,
570,
199,
20974,
199,
318,
1586,
8168,
397,
8,
26965,
1173,
304,
199,
198,
1361,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
984,
199,
199,
3,
14245,
818,
31,
199,
1757,
275,
756,
199,
199,
20974,
199,
3,
5574,
3805,
397,
570,
199,
20974,
199,
318,
1586,
8168,
397,
8,
26965,
1173,
304,
199,
198,
1361,
4331,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
slohse/ansible | lib/ansible/modules/cloud/azure/azure_rm_appgateway.py | 4 | 35537 | #!/usr/bin/python
#
# Copyright (c) 2017 Zim Kalinowski, <zikalino@microsoft.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
67,
9,
9708,
3107,
1017,
1804,
279,
262,
19844,
12,
665,
90,
3258,
279,
10175,
32,
17040,
14,
957,
30,
199,
3,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
1898,
334,
67,
9,
9708,
3107,
1017,
1804,
279,
262,
19844,
12,
665,
90,
3258,
279,
10175,
32,
17040,
14,
957,
30,
199,
3,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tithen-Firion/youtube-dl | youtube_dl/extractor/ondemandkorea.py | 62 | 2036 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
ExtractorError,
js_to_json,
)
class OnDemandKoreaIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ondemandkorea\.com/(?P<id>[^/]+)\.html'
_GEO_COUNTRIES = ['US', 'CA']
_TEST = {
... | unlicense | [
3,
2803,
26,
2774,
13,
24,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
19783,
12,
272,
8586,
63,
475,
63,
1001,
12,
199,
9,
421,
199,
533,
4068,
872,... | [
2803,
26,
2774,
13,
24,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1275,
2330,
492,
21298,
199,
504,
2508,
1208,
492,
334,
272,
19783,
12,
272,
8586,
63,
475,
63,
1001,
12,
199,
9,
421,
199,
533,
4068,
872,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
t-neumann/slamdunk | bin/_preamble.py | 1 | 1062 | # Copyright (c) 2015 Tobias Neumann, Philipp Rescheneder.
#
# This file is part of Slamdunk.
#
# Slamdunk is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your ... | agpl-3.0 | [
3,
1898,
334,
67,
9,
6900,
377,
2873,
2241,
5612,
453,
1189,
12,
11308,
1638,
802,
3591,
335,
6349,
424,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
428,
416,
1064,
1778,
14,
199,
3,
221,
199,
3,
428,
416,
1064,
1778,
365,
2... | [
1898,
334,
67,
9,
6900,
377,
2873,
2241,
5612,
453,
1189,
12,
11308,
1638,
802,
3591,
335,
6349,
424,
14,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
428,
416,
1064,
1778,
14,
199,
3,
221,
199,
3,
428,
416,
1064,
1778,
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... |
jmartinezchaine/OpenERP | openerp/addons/base/test/test_ir_cron.py | 15 | 5020 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2011-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
7760,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
30... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
7760,
13,
2566,
11655,
7653,
428,
14,
33,
14,
665,
1014,
921,
1544,
14,
11267,
14,
957,
30,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zooba/PTVS | Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/pip/_vendor/html5lib/_trie/py.py | 1323 | 1775 | from __future__ import absolute_import, division, unicode_literals
from pip._vendor.six import text_type
from bisect import bisect_left
from ._base import Trie as ABCTrie
class Trie(ABCTrie):
def __init__(self, data):
if not all(isinstance(x, text_type) for x in data.keys()):
raise TypeError... | apache-2.0 | [
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
2649,
63,
5955,
199,
504,
7305,
423,
9884,
14,
4174,
492,
1318,
63,
466,
199,
199,
504,
19063,
492,
19063,
63,
3039,
199,
199,
504,
13653,
1095,
492,
377,
11317,
465,
14840,
1... | [
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
2649,
63,
5955,
199,
504,
7305,
423,
9884,
14,
4174,
492,
1318,
63,
466,
199,
199,
504,
19063,
492,
19063,
63,
3039,
199,
199,
504,
13653,
1095,
492,
377,
11317,
465,
14840,
1028,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rafaeltomesouza/frontend-class1 | aula2/a11/linkedin/client/.gradle/nodejs/node-v7.5.0-darwin-x64/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py | 2698 | 3270 | #!/usr/bin/env python
# Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Unit tests for the easy_xml.py file. """
import gyp.easy_xml as easy_xml
import unittest
import StringIO
class TestSequenceFunctions(... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
7760,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
3... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
7760,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pongem/python-bot-project | appengine/standard/botapp/env/lib/python2.7/site-packages/django/db/utils.py | 143 | 10368 | import os
import pkgutil
from importlib import import_module
from threading import local
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils import six
from django.utils._os import npath, upath
from django.utils.functional import cached_property
from django.utils.... | apache-2.0 | [
646,
747,
199,
646,
28728,
199,
504,
14802,
492,
492,
63,
578,
199,
504,
5796,
492,
2257,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
3924,
492,
11897,
199,
504,
1639,
14,
1208,
492,
3816,
199,
504,
163... | [
747,
199,
646,
28728,
199,
504,
14802,
492,
492,
63,
578,
199,
504,
5796,
492,
2257,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
3924,
492,
11897,
199,
504,
1639,
14,
1208,
492,
3816,
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... |
dd00/commandergenius | project/jni/python/src/Demo/scripts/lpwatch.py | 32 | 3200 | #! /usr/bin/env python
# Watch line printer queue(s).
# Intended for BSD 4.3 lpq.
import posix
import sys
import time
import string
DEF_PRINTER = 'psc'
DEF_DELAY = 10
def main():
delay = DEF_DELAY # XXX Use getopt() later
try:
thisuser = posix.environ['LOGNAME']
except:
thisuser = posix.... | lgpl-2.1 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
29075,
1004,
16639,
4126,
8,
83,
680,
199,
3,
1010,
6943,
367,
6289,
841,
14,
19,
13204,
81,
14,
199,
199,
646,
10694,
199,
646,
984,
199,
646,
900,
199,
646,
1059,
199,
1... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
29075,
1004,
16639,
4126,
8,
83,
680,
199,
3,
1010,
6943,
367,
6289,
841,
14,
19,
13204,
81,
14,
199,
199,
646,
10694,
199,
646,
984,
199,
646,
900,
199,
646,
1059,
199,
199,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
victoredwardocallaghan/xen | tools/python/xen/util/pci.py | 25 | 50406 | #!/usr/bin/env python
#
# PCI Device Information Class
# - Helps obtain information about which I/O resources a PCI device needs
#
# Author: Ryan Wilson <hap9@epoch.ncsc.mil>
import sys
import os, os.path
import errno
import resource
import re
import types
import struct
import time
import threading
from xen.util imp... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
510,
3553,
12272,
17064,
8089,
199,
3,
446,
869,
352,
1190,
3332,
2556,
3595,
1314,
473,
15,
47,
5944,
282,
510,
3553,
2243,
4839,
199,
3,
199,
3,
257,
6529,
26,
820,
89,
290... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
510,
3553,
12272,
17064,
8089,
199,
3,
446,
869,
352,
1190,
3332,
2556,
3595,
1314,
473,
15,
47,
5944,
282,
510,
3553,
2243,
4839,
199,
3,
199,
3,
257,
6529,
26,
820,
89,
290,
644,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pnecchi/Thesis | Code/Prototype/critic.py | 1 | 2591 | ################################################################################
# Description: Module containing various critic implementations
# Author: Pierpaolo Necchi
# Email: pierpaolo.necchi@gmail.com
# Date: dom 05 giu 2016 18:24:01 CEST
########################################################... | mit | [
13289,
199,
3,
11994,
26,
5673,
3035,
7750,
27825,
764,
12591,
199,
3,
6529,
26,
420,
510,
4446,
387,
79,
320,
653,
825,
13175,
199,
3,
11426,
26,
755,
299,
4446,
387,
79,
320,
14,
12453,
13175,
32,
6799,
14,
957,
199,
3,
6148,
... | [
199,
3,
11994,
26,
5673,
3035,
7750,
27825,
764,
12591,
199,
3,
6529,
26,
420,
510,
4446,
387,
79,
320,
653,
825,
13175,
199,
3,
11426,
26,
755,
299,
4446,
387,
79,
320,
14,
12453,
13175,
32,
6799,
14,
957,
199,
3,
6148,
26,
263... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ghisvail/vispy | vispy/visuals/transforms/tests/test_transforms.py | 17 | 6541 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
import numpy as np
import vispy.visuals.transforms as tr
from vispy.geometry import Rect
from vispy.testing import run_tests_if_main
NT = tr.NullTransform
ST = tr.STTransfor... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
334,
67,
9,
6900,
12,
812,
374,
647,
15290,
11682,
14,
199,
3,
17484,
1334,
314,
334,
1222,
9,
6289,
844,
14,
1666,
5113,
14,
2424,
367,
1655,
2256,
14,
199,
199,
646,
2680,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
334,
67,
9,
6900,
12,
812,
374,
647,
15290,
11682,
14,
199,
3,
17484,
1334,
314,
334,
1222,
9,
6289,
844,
14,
1666,
5113,
14,
2424,
367,
1655,
2256,
14,
199,
199,
646,
2680,
465,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
insomnia-lab/calibre | src/calibre/library/server/content.py | 3 | 10759 | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import re, os, posixpath
import cherrypy
from calibre import fit_image, guess_type
from calibre.utils.date import fromtim... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
6695,
26,
493,
2991,
29,
6610,
13,
24,
26,
1086,
29,
20,
26,
3519,
29,
20,
26,
1207,
26,
386,
26,
10329,
29,
20,
26,
5789,
199,
199,
363,
1682,
363,
257,
275,
283,
12006,
373,
19,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
6695,
26,
493,
2991,
29,
6610,
13,
24,
26,
1086,
29,
20,
26,
3519,
29,
20,
26,
1207,
26,
386,
26,
10329,
29,
20,
26,
5789,
199,
199,
363,
1682,
363,
257,
275,
283,
12006,
373,
19,
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,
1... |
TomBaxter/osf.io | osf/migrations/0024_migrate_subject_parents_to_parent.py | 28 | 3542 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.db import connection, migrations, models
from osf.models.validators import validate_subject_hierarchy_length
logger = logging.getLogger(__name__)
def add_custom_mapping_constraint(state, schema):
sql = """
ALTER T... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
2050,
199,
199,
504,
1639,
14,
697,
492,
1950,
12,
6180,
12,
1709,
199,
199,
504,
747,
70,
14,
992,
14,
11346,
492,
4107,
63,
5875,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
2050,
199,
199,
504,
1639,
14,
697,
492,
1950,
12,
6180,
12,
1709,
199,
199,
504,
747,
70,
14,
992,
14,
11346,
492,
4107,
63,
5875,
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... |
iuliat/nova | nova/tests/unit/scheduler/filters/test_retry_filters.py | 68 | 1929 | # 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... |
andjimrio/LTN | Application/service/item_services.py | 1 | 5173 | from collections import Counter
from django.utils import timezone
from django.shortcuts import get_object_or_404
from Application.models import Item, UserProfile, Section, Status
from Application.utilities.python_utilities import floor_log
from Application.service.profile_services import get_profile, get_keywords_by_... | mit | [
504,
5055,
492,
14427,
199,
199,
504,
1639,
14,
1208,
492,
7137,
199,
504,
1639,
14,
17469,
492,
664,
63,
785,
63,
269,
63,
5188,
199,
199,
504,
13515,
14,
992,
492,
7020,
12,
19037,
12,
15247,
12,
9795,
199,
504,
13515,
14,
16355... | [
5055,
492,
14427,
199,
199,
504,
1639,
14,
1208,
492,
7137,
199,
504,
1639,
14,
17469,
492,
664,
63,
785,
63,
269,
63,
5188,
199,
199,
504,
13515,
14,
992,
492,
7020,
12,
19037,
12,
15247,
12,
9795,
199,
504,
13515,
14,
16355,
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... |
devlaith/DEVLAITH-HL | tg/tg-test.py | 199 | 1450 | import tgl
import pprint
from functools import partial
our_id = 0
pp = pprint.PrettyPrinter(indent=4)
binlog_done = False;
def on_binlog_replay_end():
binlog_done = True;
def on_get_difference_end():
pass
def on_our_id(id):
our_id = id
return "Set ID: " + str(our_id)
def msg_cb(success, msg):
... | gpl-2.0 | [
646,
307,
3528,
199,
646,
10933,
199,
504,
9143,
492,
7417,
421,
199,
567,
63,
344,
275,
378,
199,
802,
275,
10933,
14,
27153,
14131,
8,
3724,
29,
20,
9,
199,
199,
1393,
793,
63,
4456,
275,
756,
27,
199,
199,
318,
641,
63,
1393,... | [
307,
3528,
199,
646,
10933,
199,
504,
9143,
492,
7417,
421,
199,
567,
63,
344,
275,
378,
199,
802,
275,
10933,
14,
27153,
14131,
8,
3724,
29,
20,
9,
199,
199,
1393,
793,
63,
4456,
275,
756,
27,
199,
199,
318,
641,
63,
1393,
793,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bykof/billomapy | billomapy/resources.py | 1 | 4081 | """
KEY and DATA_KEYS FOR THE API
"""
PROPERTY_VALUES = '-property-values'
PROPERTY_VALUE = '-property-value'
TAGS = '-tags'
TAG = '-tag'
ITEMS = '-items'
ITEM = '-item'
COMMENTS = '-comments'
COMMENT = '-comment'
PAYMENTS = '-payments'
PAYMENT = '-payment'
EMAIL_RECEIVERS = '-email-receivers'
EMAIL_RECEIVER = '-... | apache-2.0 | [
624,
199,
3078,
436,
7126,
63,
17434,
2381,
2334,
3261,
199,
624,
199,
199,
25091,
63,
15514,
275,
2475,
1829,
13,
1459,
7,
199,
25091,
63,
7041,
275,
2475,
1829,
13,
585,
7,
199,
199,
17626,
275,
2475,
2969,
7,
199,
6967,
275,
24... | [
199,
3078,
436,
7126,
63,
17434,
2381,
2334,
3261,
199,
624,
199,
199,
25091,
63,
15514,
275,
2475,
1829,
13,
1459,
7,
199,
25091,
63,
7041,
275,
2475,
1829,
13,
585,
7,
199,
199,
17626,
275,
2475,
2969,
7,
199,
6967,
275,
2475,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
BjerknesClimateDataCentre/QuinCe | external_scripts/NRT/salinity_data/prepare_salinity.py | 2 | 2681 | # Prepare a cut-down version of the World Ocean Atlas 2018 salinity
# data to use with the AddSalinityPreprocessor.
# Input files are 0.25° seasonal files for the years 2005-2017,
# available from https://www.nodc.noaa.gov/cgi-bin/OC5/woa18/woa18.pl
# Files are:
#
# woa18_A5B7_s13_04.nc - Winter (DJF) = Season 1
# wo... | gpl-3.0 | [
3,
17008,
282,
10415,
13,
2110,
1015,
402,
314,
13064,
593,
20867,
2854,
12536,
14894,
18641,
9624,
199,
3,
666,
370,
675,
543,
314,
2654,
27177,
9624,
16482,
14,
199,
199,
3,
6924,
1584,
787,
378,
14,
821,
127,
109,
14718,
279,
158... | [
17008,
282,
10415,
13,
2110,
1015,
402,
314,
13064,
593,
20867,
2854,
12536,
14894,
18641,
9624,
199,
3,
666,
370,
675,
543,
314,
2654,
27177,
9624,
16482,
14,
199,
199,
3,
6924,
1584,
787,
378,
14,
821,
127,
109,
14718,
279,
1584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
balloob/home-assistant | homeassistant/components/venstar/climate.py | 16 | 11240 | """Support for Venstar WiFi Thermostats."""
import logging
from venstarcolortouch import VenstarColorTouch
import voluptuous as vol
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateEntity
from homeassistant.components.climate.const import (
ATTR_HVAC_MODE,
ATTR_TARGET_TEMP_HIGH,
ATTR_T... | apache-2.0 | [
624,
11532,
367,
812,
287,
7848,
644,
73,
9047,
377,
2523,
2786,
1956,
1041,
199,
646,
2050,
199,
199,
504,
373,
287,
7848,
761,
361,
13087,
492,
812,
287,
7848,
4117,
52,
13087,
199,
646,
30291,
465,
5236,
199,
199,
504,
8846,
14,
... | [
11532,
367,
812,
287,
7848,
644,
73,
9047,
377,
2523,
2786,
1956,
1041,
199,
646,
2050,
199,
199,
504,
373,
287,
7848,
761,
361,
13087,
492,
812,
287,
7848,
4117,
52,
13087,
199,
646,
30291,
465,
5236,
199,
199,
504,
8846,
14,
4608,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yamila-moreno/nikola | nikola/data/themes/base/messages/messages_da.py | 6 | 1441 | # -*- encoding:utf-8 -*-
from __future__ import unicode_literals
MESSAGES = {
"%d min remaining to read": "%d min. tilbage at læse",
"(active)": "",
"Also available in:": "Fås også i:",
"Archive": "Arkiv",
"Categories": "Kategorier",
"Comments": "Kommentarer",
"LANGUAGE": "Dansk",
"Lang... | mit | [
3,
1882,
2644,
26,
1624,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
23229,
275,
469,
272,
2071,
68,
1748,
7971,
370,
1586,
582,
2071,
68,
1748,
14,
221,
2270,
66,
474,
737,
634,
128,
100,
261,
401,
27... | [
1882,
2644,
26,
1624,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
23229,
275,
469,
272,
2071,
68,
1748,
7971,
370,
1586,
582,
2071,
68,
1748,
14,
221,
2270,
66,
474,
737,
634,
128,
100,
261,
401,
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... |
mhvk/numpy | numpy/core/tests/test_memmap.py | 5 | 7469 | import sys
import os
import mmap
import pytest
from pathlib import Path
from tempfile import NamedTemporaryFile, TemporaryFile
from numpy import (
memmap, sum, average, product, ndarray, isscalar, add, subtract, multiply)
from numpy import arange, allclose, asarray
from numpy.testing import (
assert_, assert_... | bsd-3-clause | [
646,
984,
199,
646,
747,
199,
646,
21991,
199,
646,
4613,
199,
504,
32212,
492,
6912,
199,
504,
5549,
492,
31825,
12,
21791,
1173,
199,
199,
504,
2680,
492,
334,
272,
7573,
1130,
12,
3089,
12,
8095,
12,
3336,
12,
6800,
12,
365,
70... | [
984,
199,
646,
747,
199,
646,
21991,
199,
646,
4613,
199,
504,
32212,
492,
6912,
199,
504,
5549,
492,
31825,
12,
21791,
1173,
199,
199,
504,
2680,
492,
334,
272,
7573,
1130,
12,
3089,
12,
8095,
12,
3336,
12,
6800,
12,
365,
7033,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ychen820/microblog | flask/lib/python2.7/site-packages/openid/server/server.py | 142 | 65667 | # -*- test-case-name: openid.test.test_server -*-
"""OpenID server protocol and logic.
Overview
========
An OpenID server must perform three tasks:
1. Examine the incoming request to determine its nature and validity.
2. Make a decision about how to respond to this request.
3. Format th... | bsd-3-clause | [
3,
1882,
511,
13,
2546,
13,
354,
26,
24494,
14,
396,
14,
396,
63,
1000,
1882,
199,
624,
30244,
1654,
4113,
436,
9661,
14,
199,
199,
28077,
199,
763,
339,
1626,
25463,
1654,
1471,
5147,
7795,
6527,
26,
398,
413,
14,
1316,
455,
1132... | [
1882,
511,
13,
2546,
13,
354,
26,
24494,
14,
396,
14,
396,
63,
1000,
1882,
199,
624,
30244,
1654,
4113,
436,
9661,
14,
199,
199,
28077,
199,
763,
339,
1626,
25463,
1654,
1471,
5147,
7795,
6527,
26,
398,
413,
14,
1316,
455,
1132,
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... |
anant-dev/django | tests/indexes/models.py | 253 | 1714 | from django.db import connection, models
class CurrentTranslation(models.ForeignObject):
"""
Creates virtual relation to the translation with model cache enabled.
"""
# Avoid validation
requires_unique_target = False
def __init__(self, to, on_delete, from_fields, to_fields, **kwargs):
... | bsd-3-clause | [
504,
1639,
14,
697,
492,
1950,
12,
1709,
421,
199,
533,
9338,
18483,
8,
992,
14,
20931,
1692,
304,
272,
408,
272,
10560,
5791,
5850,
370,
314,
7761,
543,
1402,
2581,
5223,
14,
272,
408,
272,
327,
19503,
6411,
272,
5074,
63,
3235,
... | [
1639,
14,
697,
492,
1950,
12,
1709,
421,
199,
533,
9338,
18483,
8,
992,
14,
20931,
1692,
304,
272,
408,
272,
10560,
5791,
5850,
370,
314,
7761,
543,
1402,
2581,
5223,
14,
272,
408,
272,
327,
19503,
6411,
272,
5074,
63,
3235,
63,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
pcrews/rannsaka | test_files/2volumes_basic.py | 1 | 3456 | import os
import random
import time
import json
from locust import HttpLocust, TaskSet, task
from lib.baseTaskSet import baseTaskSet
# TODO - make these config-driven
from lib.openstack.keystone import get_auth_token
from lib.openstack.cinder import list_volumes
from lib.openstack.cinder import list_volumes_detail
f... | apache-2.0 | [
646,
747,
199,
646,
2196,
199,
646,
900,
199,
199,
646,
2022,
199,
504,
4355,
833,
492,
4760,
3040,
833,
12,
8495,
1084,
12,
2120,
199,
199,
504,
1973,
14,
1095,
4476,
1084,
492,
1300,
4476,
1084,
199,
199,
3,
3254,
446,
1852,
352... | [
747,
199,
646,
2196,
199,
646,
900,
199,
199,
646,
2022,
199,
504,
4355,
833,
492,
4760,
3040,
833,
12,
8495,
1084,
12,
2120,
199,
199,
504,
1973,
14,
1095,
4476,
1084,
492,
1300,
4476,
1084,
199,
199,
3,
3254,
446,
1852,
3520,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
grap/OpenUpgrade | addons/membership/membership.py | 9 | 28553 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
961,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
2014c2g5/2014c2 | exts/wsgi/static/Brython2.1.0-20140419-113919/Lib/unittest/result.py | 727 | 6397 | """Test result object"""
import io
import sys
import traceback
from . import util
from functools import wraps
__unittest = True
def failfast(method):
@wraps(method)
def inner(self, *args, **kw):
if getattr(self, 'failfast', False):
self.stop()
return method(self, *args, **kw)
... | gpl-2.0 | [
624,
774,
754,
909,
624,
199,
199,
646,
5890,
199,
646,
984,
199,
646,
5190,
199,
199,
504,
1275,
492,
4884,
199,
504,
9143,
492,
14018,
199,
199,
363,
2796,
275,
715,
199,
199,
318,
1433,
20803,
8,
765,
304,
272,
768,
13582,
8,
... | [
774,
754,
909,
624,
199,
199,
646,
5890,
199,
646,
984,
199,
646,
5190,
199,
199,
504,
1275,
492,
4884,
199,
504,
9143,
492,
14018,
199,
199,
363,
2796,
275,
715,
199,
199,
318,
1433,
20803,
8,
765,
304,
272,
768,
13582,
8,
765,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
fperez/cython | tests/run/test_call.py | 17 | 3139 | import unittest
# 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 paths.
class CFunctionCalls... | apache-2.0 | [
646,
2882,
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,
12,
1314,
883,
1133,... | [
2882,
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,
12,
1314,
883,
1133,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
brean/arduino-kivy-bluetooth | glue/protocols/__init__.py | 1 | 2145 | # -*- coding: utf-8 -*-
"""
provide classes for different connection protocols
(bluetooth, tcp/ip, ...)
"""
protocols = {}
class Protocol(object):
def __init__(self, name):
"""
basic protocol interface
"""
self.name = name
def write(self, data):
"""
write data ... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
20824,
3992,
367,
3365,
1950,
19230,
199,
8,
27172,
12,
14719,
15,
711,
12,
19172,
199,
624,
199,
16541,
275,
1052,
421,
199,
533,
11557,
8,
785,
304,
272,
347,
636,
826,
721,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
20824,
3992,
367,
3365,
1950,
19230,
199,
8,
27172,
12,
14719,
15,
711,
12,
19172,
199,
624,
199,
16541,
275,
1052,
421,
199,
533,
11557,
8,
785,
304,
272,
347,
636,
826,
721,
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... |
infoxchange/lettuce | tests/integration/lib/Django-1.3/django/template/loaders/app_directories.py | 229 | 2764 | """
Wrapper for loading templates from "templates" directories in INSTALLED_APPS
packages.
"""
import os
import sys
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.template.base import TemplateDoesNotExist
from django.template.loader import BaseLoader
from django.u... | gpl-3.0 | [
624,
199,
4590,
367,
8697,
7009,
687,
298,
5876,
2,
6602,
315,
31061,
63,
14219,
199,
5154,
14,
199,
624,
199,
199,
646,
747,
199,
646,
984,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
3924,
492,
11897,... | [
199,
4590,
367,
8697,
7009,
687,
298,
5876,
2,
6602,
315,
31061,
63,
14219,
199,
5154,
14,
199,
624,
199,
199,
646,
747,
199,
646,
984,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
3924,
492,
11897,
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... |
semgroup5-project/opendlv.scaledcars | thirdparty/cxxtest/doc/examples/test_examples.py | 50 | 2474 | #-------------------------------------------------------------------------
# CxxTest: A lightweight C++ unit testing library.
# Copyright (c) 2008 Sandia Corporation.
# This software is distributed under the LGPL License v3
# For more information, see the COPYING file in the top CxxTest directory.
# Under the terms of ... | gpl-2.0 | [
25812,
199,
3,
445,
2154,
774,
26,
437,
10540,
3463,
445,
4176,
4137,
5343,
3555,
14,
199,
3,
1898,
334,
67,
9,
9079,
29359,
2391,
11098,
14,
199,
3,
961,
2032,
365,
1854,
1334,
314,
32426,
844,
373,
19,
199,
3,
2104,
1655,
2556,
... | [
199,
3,
445,
2154,
774,
26,
437,
10540,
3463,
445,
4176,
4137,
5343,
3555,
14,
199,
3,
1898,
334,
67,
9,
9079,
29359,
2391,
11098,
14,
199,
3,
961,
2032,
365,
1854,
1334,
314,
32426,
844,
373,
19,
199,
3,
2104,
1655,
2556,
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,
1... |
quantumlib/Cirq | examples/quantum_fourier_transform.py | 1 | 2702 | """
Creates and simulates a circuit for Quantum Fourier Transform(QFT)
on a 4 qubit system.
In this example we demonstrate Fourier Transform on
(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) vector. To do the same, we prepare
the input state of the qubits as |0000>.
=== EXAMPLE OUTPUT ===
Circuit:
(0, 0): ─H───@^0.5───×───H──────... | apache-2.0 | [
624,
199,
10607,
436,
4389,
15409,
282,
20304,
367,
5843,
867,
453,
23843,
4446,
19463,
8,
49,
2161,
9,
199,
265,
282,
841,
2173,
2075,
2656,
14,
199,
199,
607,
642,
2893,
781,
23789,
18161,
23843,
4446,
19463,
641,
199,
8,
17,
12,
... | [
199,
10607,
436,
4389,
15409,
282,
20304,
367,
5843,
867,
453,
23843,
4446,
19463,
8,
49,
2161,
9,
199,
265,
282,
841,
2173,
2075,
2656,
14,
199,
199,
607,
642,
2893,
781,
23789,
18161,
23843,
4446,
19463,
641,
199,
8,
17,
12,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gangadharkadam/sher | erpnext/hr/report/employee_birthday/employee_birthday.py | 25 | 1331 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt
def execute(filters=None):
if not filters: filters = {}
columns = get_columns()
... | agpl-3.0 | [
3,
1898,
334,
67,
9,
6171,
12,
6001,
8144,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
844,
26,
1664,
1696,
1684,
844,
373,
19,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
6950,
1... | [
1898,
334,
67,
9,
6171,
12,
6001,
8144,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
844,
26,
1664,
1696,
1684,
844,
373,
19,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
6950,
199,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
giggsey/SickRage | lib/sqlalchemy/dialects/drizzle/mysqldb.py | 154 | 1270 | """
.. dialect:: drizzle+mysqldb
:name: MySQL-Python
:dbapi: mysqldb
:connectstring: drizzle+mysqldb://<user>:<password>@<host>[:<port>]/<dbname>
:url: http://sourceforge.net/projects/mysql-python
"""
from sqlalchemy.dialects.drizzle.base import (
DrizzleDialect,
DrizzleExecutionContext,
... | gpl-3.0 | [
624,
199,
703,
10982,
447,
20921,
17622,
11,
8644,
697,
272,
520,
354,
26,
11200,
13,
4718,
272,
520,
22103,
26,
12896,
697,
272,
520,
2242,
875,
26,
20921,
17622,
11,
8644,
697,
921,
28,
751,
30,
16875,
2060,
30,
32,
28,
1102,
30... | [
199,
703,
10982,
447,
20921,
17622,
11,
8644,
697,
272,
520,
354,
26,
11200,
13,
4718,
272,
520,
22103,
26,
12896,
697,
272,
520,
2242,
875,
26,
20921,
17622,
11,
8644,
697,
921,
28,
751,
30,
16875,
2060,
30,
32,
28,
1102,
30,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TalShafir/ansible | lib/ansible/modules/cloud/scaleway/scaleway_sshkey.py | 75 | 4776 | #!/usr/bin/python
#
# Scaleway SSH keys management module
#
# Copyright (C) 2018 Online SAS.
# https://www.scaleway.com
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
22869,
3316,
12027,
2883,
10041,
859,
199,
3,
199,
3,
1898,
334,
35,
9,
14894,
4068,
604,
26124,
14,
199,
3,
4178,
921,
1544,
14,
3467,
3316,
14,
957,
199,
3,
199,
3,
1664,
1696,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
22869,
3316,
12027,
2883,
10041,
859,
199,
3,
199,
3,
1898,
334,
35,
9,
14894,
4068,
604,
26124,
14,
199,
3,
4178,
921,
1544,
14,
3467,
3316,
14,
957,
199,
3,
199,
3,
1664,
1696,
1684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jrha/aquilon | tests/broker/test_update_cluster.py | 2 | 3584 | #!/usr/bin/env python2.6
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2011,2013 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
18,
14,
22,
199,
3,
1882,
286,
647,
13,
3724,
13,
1896,
26,
841,
27,
4363,
13,
8741,
13,
632,
26,
32644,
1882,
199,
3,
444,
26,
663,
26414,
25966,
29,
20,
20105,
29,
20,
26,
199,
3,
199,
... | [
2647,
15,
1393,
15,
1813,
2366,
18,
14,
22,
199,
3,
1882,
286,
647,
13,
3724,
13,
1896,
26,
841,
27,
4363,
13,
8741,
13,
632,
26,
32644,
1882,
199,
3,
444,
26,
663,
26414,
25966,
29,
20,
20105,
29,
20,
26,
199,
3,
199,
3,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zhaochao/fuel-web | tasklib/tasklib/tests/functional/test_run_exec.py | 4 | 2108 | # Copyright 2014 Mirantis, 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 | [
3,
259,
1898,
6927,
603,
723,
4466,
83,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
8... | [
259,
1898,
6927,
603,
723,
4466,
83,
12,
3277,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
hell03610/python-koans | python3/koans/about_regex.py | 34 | 4795 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
import re
class AboutRegex(Koan):
"""
These koans are based on the Ben's book: Regular Expressions in 10 minutes.
I found this books very useful so I decided to write a koans in order to practice everything I had learned from i... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
7876,
14,
7697,
290,
492,
627,
199,
646,
295,
199,
533,
25225,
5103,
8,
31305,
290,
304,
272,
408,
267,
5723,
20817,
796,
787,
4079,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
7876,
14,
7697,
290,
492,
627,
199,
646,
295,
199,
533,
25225,
5103,
8,
31305,
290,
304,
272,
408,
267,
5723,
20817,
796,
787,
4079,
641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ogenstad/ansible | lib/ansible/plugins/lookup/subelements.py | 64 | 6146 | # (c) 2013, Serge van Ginderachter <serge@vanginderachter.be>
# (c) 2012-17 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
DOCUMENTATION = """
lookup: subelements
... | gpl-3.0 | [
3,
334,
67,
9,
6171,
12,
3739,
303,
20744,
598,
262,
271,
345,
335,
351,
665,
332,
303,
32,
86,
621,
262,
271,
345,
335,
351,
14,
1235,
30,
199,
3,
334,
67,
9,
6029,
13,
1196,
2622,
7290,
199,
3,
1664,
1696,
1684,
844,
373,
... | [
334,
67,
9,
6171,
12,
3739,
303,
20744,
598,
262,
271,
345,
335,
351,
665,
332,
303,
32,
86,
621,
262,
271,
345,
335,
351,
14,
1235,
30,
199,
3,
334,
67,
9,
6029,
13,
1196,
2622,
7290,
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... |
andybab/Impala | tests/query_test/test_hbase_queries.py | 8 | 1079 | #!/usr/bin/env python
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
# Targeted Impala HBase Tests
#
import logging
import pytest
from tests.common.test_vector import *
from tests.common.impala_test_suite import *
class TestHBaseQueries(ImpalaTestSuite):
@classmethod
def get_workload(self):
return 'f... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
67,
9,
6029,
5980,
3786,
345,
12,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
377,
20174,
8362,
14774,
869,
1563,
6496,
199,
3,
199,
646,
2050,
199,
646,
4613,
199,
504,
2295,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
67,
9,
6029,
5980,
3786,
345,
12,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
377,
20174,
8362,
14774,
869,
1563,
6496,
199,
3,
199,
646,
2050,
199,
646,
4613,
199,
504,
2295,
14,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nozuono/calibre-webserver | src/calibre/ebooks/pdb/ereader/writer.py | 24 | 10728 | # -*- coding: utf-8 -*-
'''
Write content to ereader pdb file.
'''
__license__ = 'GPL v3'
__copyright__ = '2009, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en'
import re
import struct
import zlib
try:
from PIL import Image
Image
except ImportError:
import Image
import cSt... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
199,
3534,
1564,
370,
325,
5503,
10543,
570,
14,
199,
2344,
199,
199,
363,
1682,
363,
257,
275,
283,
12006,
373,
19,
7,
199,
363,
7307,
363,
275,
283,
8664,
12,
17815,
428,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
2344,
199,
3534,
1564,
370,
325,
5503,
10543,
570,
14,
199,
2344,
199,
199,
363,
1682,
363,
257,
275,
283,
12006,
373,
19,
7,
199,
363,
7307,
363,
275,
283,
8664,
12,
17815,
428,
595,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lsqtongxin/django | tests/template_tests/test_extends.py | 154 | 7062 | import os
from django.template import Context, Engine, TemplateDoesNotExist
from django.template.loader_tags import ExtendsError
from django.template.loaders.base import Loader
from django.test import SimpleTestCase, ignore_warnings
from django.utils.deprecation import RemovedInDjango20Warning
from .utils import ROOT... | bsd-3-clause | [
646,
747,
199,
199,
504,
1639,
14,
1160,
492,
9470,
12,
12580,
12,
27193,
199,
504,
1639,
14,
1160,
14,
3422,
63,
2969,
492,
11524,
795,
547,
199,
504,
1639,
14,
1160,
14,
16370,
14,
1095,
492,
22865,
199,
504,
1639,
14,
396,
492,... | [
747,
199,
199,
504,
1639,
14,
1160,
492,
9470,
12,
12580,
12,
27193,
199,
504,
1639,
14,
1160,
14,
3422,
63,
2969,
492,
11524,
795,
547,
199,
504,
1639,
14,
1160,
14,
16370,
14,
1095,
492,
22865,
199,
504,
1639,
14,
396,
492,
2442... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lsqtongxin/django | django/utils/log.py | 116 | 5216 | from __future__ import unicode_literals
import logging
import logging.config # needed when logging_config doesn't start with logging.config
import sys
import warnings
from copy import copy
from django.conf import settings
from django.core import mail
from django.core.mail import get_connection
from django.utils.depr... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2050,
199,
646,
2050,
14,
888,
221,
327,
4346,
1380,
2050,
63,
888,
3181,
1133,
1343,
543,
2050,
14,
888,
199,
646,
984,
199,
646,
3598,
199,
504,
1331,
492,
1331,
199,
199,... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
2050,
199,
646,
2050,
14,
888,
221,
327,
4346,
1380,
2050,
63,
888,
3181,
1133,
1343,
543,
2050,
14,
888,
199,
646,
984,
199,
646,
3598,
199,
504,
1331,
492,
1331,
199,
199,
504,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mchdks/python-social-auth | social/backends/soundcloud.py | 83 | 2156 | """
Soundcloud OAuth2 backend, docs at:
http://psa.matiasaguirre.net/docs/backends/soundcloud.html
"""
from social.p3 import urlencode
from social.backends.oauth import BaseOAuth2
class SoundcloudOAuth2(BaseOAuth2):
"""Soundcloud OAuth authentication backend"""
name = 'soundcloud'
AUTHORIZATION_URL = ... | bsd-3-clause | [
624,
199,
18670,
4091,
11715,
18,
4865,
12,
9149,
737,
26,
272,
1455,
921,
1190,
65,
14,
391,
280,
305,
643,
85,
723,
264,
14,
846,
15,
4757,
15,
7765,
15,
14990,
4091,
14,
1360,
199,
624,
199,
504,
20295,
14,
80,
19,
492,
16511... | [
199,
18670,
4091,
11715,
18,
4865,
12,
9149,
737,
26,
272,
1455,
921,
1190,
65,
14,
391,
280,
305,
643,
85,
723,
264,
14,
846,
15,
4757,
15,
7765,
15,
14990,
4091,
14,
1360,
199,
624,
199,
504,
20295,
14,
80,
19,
492,
16511,
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... |
mcgee/ns-3 | doc/manual/source/conf.py | 75 | 7047 | # -*- coding: utf-8 -*-
#
# ns-3 documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 14 09:00:39 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
700,
13,
19,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
377,
310,
13966,
4329,
21798,
26,
383,
26,
1355,
7129,
14,
199,
3,
199,
3,
961,
570,
365,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
700,
13,
19,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
377,
310,
13966,
4329,
21798,
26,
383,
26,
1355,
7129,
14,
199,
3,
199,
3,
961,
570,
365,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ardumont/pygit2 | test/test_repository.py | 1 | 21901 | # -*- coding: UTF-8 -*-
#
# Copyright 2010-2014 The pygit2 contributors
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
# as published by the Free Software Foundation.
#
# In addition to the permissions in the GNU General Public Li... | gpl-2.0 | [
3,
1882,
2803,
26,
9094,
13,
24,
1882,
199,
3,
199,
3,
1898,
7129,
13,
7280,
710,
1134,
3187,
18,
8417,
199,
3,
199,
3,
961,
570,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402... | [
1882,
2803,
26,
9094,
13,
24,
1882,
199,
3,
199,
3,
1898,
7129,
13,
7280,
710,
1134,
3187,
18,
8417,
199,
3,
199,
3,
961,
570,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
joericearchitect/site-joe-rice-architect | devops/deployment/ansible/ec2-inventory/ec2.py | 12 | 63782 | #!/usr/bin/env python
'''
EC2 external inventory script
=================================
Generates inventory that Ansible can understand by making API request to
AWS EC2 using the Boto library.
NOTE: This script assumes Ansible is being executed where the environment
variables needed for Boto have already been set:... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
2344,
199,
4220,
18,
5957,
8200,
2884,
199,
2486,
29,
199,
199,
20551,
8200,
626,
2622,
883,
20647,
701,
10663,
3261,
1056,
370,
199,
13226,
15352,
18,
1808,
314,
24411,
3555,
14,
199,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
2344,
199,
4220,
18,
5957,
8200,
2884,
199,
2486,
29,
199,
199,
20551,
8200,
626,
2622,
883,
20647,
701,
10663,
3261,
1056,
370,
199,
13226,
15352,
18,
1808,
314,
24411,
3555,
14,
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... |
techtonik/readthedocs.org | readthedocs/vcs_support/base.py | 34 | 4583 | import logging
import os
import shutil
import subprocess
from collections import namedtuple
from os.path import basename
log = logging.getLogger(__name__)
class VCSVersion(object):
"""
Represents a Version (tag or branch) in a VCS.
This class should only be instantiated in BaseVCS subclasses.
It c... | mit | [
646,
2050,
199,
646,
747,
199,
646,
5145,
199,
646,
3873,
199,
504,
5055,
492,
12863,
199,
504,
747,
14,
515,
492,
9593,
421,
199,
793,
275,
2050,
14,
5572,
3460,
354,
3368,
421,
199,
533,
23563,
3353,
8,
785,
304,
272,
408,
272,
... | [
2050,
199,
646,
747,
199,
646,
5145,
199,
646,
3873,
199,
504,
5055,
492,
12863,
199,
504,
747,
14,
515,
492,
9593,
421,
199,
793,
275,
2050,
14,
5572,
3460,
354,
3368,
421,
199,
533,
23563,
3353,
8,
785,
304,
272,
408,
272,
21591... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mybios/angle | src/tests/deqp_tests/generate_deqp_tests.py | 24 | 1253 | import os
import re
import sys
def ReadFileAsLines(filename):
"""Reads a file, removing blank lines and lines that start with #"""
file = open(filename, "r")
raw_lines = file.readlines()
file.close()
lines = []
for line in raw_lines:
line = line.strip()
if len(line) > 0 and not ... | bsd-3-clause | [
646,
747,
199,
646,
295,
199,
646,
984,
199,
199,
318,
5574,
1173,
2822,
9863,
8,
1501,
304,
272,
408,
23614,
282,
570,
12,
12881,
4596,
2385,
436,
2385,
626,
1343,
543,
327,
624,
272,
570,
275,
1551,
8,
1501,
12,
298,
82,
531,
... | [
747,
199,
646,
295,
199,
646,
984,
199,
199,
318,
5574,
1173,
2822,
9863,
8,
1501,
304,
272,
408,
23614,
282,
570,
12,
12881,
4596,
2385,
436,
2385,
626,
1343,
543,
327,
624,
272,
570,
275,
1551,
8,
1501,
12,
298,
82,
531,
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... |
pepeportela/edx-platform | lms/djangoapps/verify_student/tests/test_fake_software_secure.py | 10 | 2751 | """
Tests for the fake software secure response.
"""
from django.test import TestCase
from mock import patch
from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification
from student.tests.factories import UserFactory
from util.testing import UrlResetMixin
class SoftwareSecureFakeViewTest(UrlRes... | agpl-3.0 | [
624,
199,
2925,
367,
314,
4026,
2032,
11153,
1177,
14,
199,
624,
199,
199,
504,
1639,
14,
396,
492,
7640,
199,
504,
1683,
492,
3371,
199,
199,
504,
21577,
14,
16432,
14,
4712,
63,
5500,
14,
992,
492,
2290,
24117,
21258,
22595,
199,
... | [
199,
2925,
367,
314,
4026,
2032,
11153,
1177,
14,
199,
624,
199,
199,
504,
1639,
14,
396,
492,
7640,
199,
504,
1683,
492,
3371,
199,
199,
504,
21577,
14,
16432,
14,
4712,
63,
5500,
14,
992,
492,
2290,
24117,
21258,
22595,
199,
504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SomethingExplosive/android_external_chromium_org | third_party/tlslite/tlslite/Checker.py | 359 | 6301 | """Class for post-handshake certificate checking."""
from utils.cryptomath import hashAndBase64
from X509 import X509
from X509CertChain import X509CertChain
from errors import *
class Checker:
"""This class is passed to a handshake function to check the other
party's certificate chain.
If a handshake f... | bsd-3-clause | [
624,
2543,
367,
2963,
13,
11913,
5897,
7907,
1041,
199,
199,
504,
3778,
14,
10316,
3442,
492,
2631,
3325,
1563,
772,
199,
504,
1323,
6576,
492,
1323,
6576,
199,
504,
1323,
6576,
26464,
492,
1323,
6576,
26464,
199,
504,
2552,
492,
627,... | [
2543,
367,
2963,
13,
11913,
5897,
7907,
1041,
199,
199,
504,
3778,
14,
10316,
3442,
492,
2631,
3325,
1563,
772,
199,
504,
1323,
6576,
492,
1323,
6576,
199,
504,
1323,
6576,
26464,
492,
1323,
6576,
26464,
199,
504,
2552,
492,
627,
421,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Oweoqi/metagoofil | hachoir_parser/container/riff.py | 86 | 16938 | # -*- coding: UTF-8 -*-
"""
RIFF parser, able to parse:
* AVI video container
* WAV audio container
* CDA file
Documents:
- libavformat source code from ffmpeg library
http://ffmpeg.mplayerhq.hu/
- Video for Windows Programmer's Guide
http://www.opennet.ru/docs/formats/avi.txt
- What is an animated curso... | gpl-2.0 | [
3,
1882,
2803,
26,
9094,
13,
24,
1882,
199,
199,
624,
199,
6129,
1665,
1798,
12,
7688,
370,
2198,
26,
2043,
627,
437,
17655,
3991,
3970,
2043,
627,
644,
6087,
10491,
3970,
2043,
627,
445,
8980,
570,
199,
199,
26872,
26,
199,
13,
1... | [
1882,
2803,
26,
9094,
13,
24,
1882,
199,
199,
624,
199,
6129,
1665,
1798,
12,
7688,
370,
2198,
26,
2043,
627,
437,
17655,
3991,
3970,
2043,
627,
644,
6087,
10491,
3970,
2043,
627,
445,
8980,
570,
199,
199,
26872,
26,
199,
13,
1973,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ninapavlich/lesleyloraine | lesleyloraine/apps/email/migrations/0002_auto_20160205_2337.py | 3 | 1436 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('email', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='emailcategory',
name='a... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
6180,
12,
1709,
421,
199,
533,
12090,
8,
7685,
14,
9816,
304,
339,
5124,
275,
359,
267,
661,
2123,
297,
283... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
697,
492,
6180,
12,
1709,
421,
199,
533,
12090,
8,
7685,
14,
9816,
304,
339,
5124,
275,
359,
267,
661,
2123,
297,
283,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
arifsetiawan/edx-platform | lms/djangoapps/courseware/features/conditional.py | 102 | 4723 | # pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, steps
from nose.tools import assert_in, assert_true # pylint: disable=no-name-in-module
from common import i_am_registered_for_the_course, visit_scenario_item
from problems_setup import add_problem_to_course, answer... | agpl-3.0 | [
3,
4287,
26,
3507,
29,
4752,
13,
12485,
199,
3,
4287,
26,
3507,
29,
27913,
13,
7837,
13,
354,
199,
199,
504,
4691,
84,
3683,
492,
6701,
12,
7124,
199,
504,
11354,
14,
2537,
492,
702,
63,
262,
12,
702,
63,
2052,
221,
327,
4287,
... | [
4287,
26,
3507,
29,
4752,
13,
12485,
199,
3,
4287,
26,
3507,
29,
27913,
13,
7837,
13,
354,
199,
199,
504,
4691,
84,
3683,
492,
6701,
12,
7124,
199,
504,
11354,
14,
2537,
492,
702,
63,
262,
12,
702,
63,
2052,
221,
327,
4287,
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... |
lucywyman/slides | source/source/conf.py | 1 | 9886 | # -*- coding: utf-8 -*-
#
# slides documentation build configuration file, created by
# sphinx-quickstart on Wed Jul 1 21:05:39 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
27498,
3424,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
644,
379,
1603,
348,
221,
413,
7829,
26,
1717,
26,
1355,
6900,
14,
199,
3,
199,
3,
961,
5... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
27498,
3424,
3794,
1900,
2897,
570,
12,
2737,
701,
199,
3,
15882,
13,
28957,
641,
644,
379,
1603,
348,
221,
413,
7829,
26,
1717,
26,
1355,
6900,
14,
199,
3,
199,
3,
961,
570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bw2/gemini | gemini/vep.py | 4 | 11612 | #!/usr/bin/env python
#############
# CSQ: Consequence|Codons|Amino_acids|Gene|hgnc|Feature|EXON|polyphen|sift|Protein_position|BIOTYPE
# missense_variant|gAg/gTg|E/V|ENSG00000188157||ENST00000379370|12/36|probably_damaging(0.932)|deleterious(0.02)|728/2045_protein_coding
# nc_transcript_variant|||ENSG00000116254|CHD... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
516,
8776,
199,
199,
3,
17447,
49,
26,
1448,
4041,
92,
35,
364,
4654,
92,
33,
827,
79,
63,
645,
1580,
92,
39,
6349,
92,
72,
784,
67,
92,
5968,
92,
1438,
615,
92,
6023,
17579,
92,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
516,
8776,
199,
199,
3,
17447,
49,
26,
1448,
4041,
92,
35,
364,
4654,
92,
33,
827,
79,
63,
645,
1580,
92,
39,
6349,
92,
72,
784,
67,
92,
5968,
92,
1438,
615,
92,
6023,
17579,
92,
338,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
xianggong/m2c_unit_test | test/integer/mad_hi_ushortushortushort/compile.py | 1861 | 4430 | #!/usr/bin/python
import os
import subprocess
import re
def runCommand(command):
p = subprocess.Popen(command,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
p.wait()
return iter(p.stdout.readline, b'')
def dumpRunCommand(command,... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
199,
646,
747,
199,
646,
3873,
199,
646,
295,
421,
199,
318,
1255,
3110,
8,
1531,
304,
267,
299,
275,
3873,
14,
7942,
8,
1531,
12,
2490,
3839,
29,
5781,
14,
6089,
12,
2490,
4635,
29,
5781,
14... | [
2647,
15,
1393,
15,
1548,
199,
199,
646,
747,
199,
646,
3873,
199,
646,
295,
421,
199,
318,
1255,
3110,
8,
1531,
304,
267,
299,
275,
3873,
14,
7942,
8,
1531,
12,
2490,
3839,
29,
5781,
14,
6089,
12,
2490,
4635,
29,
5781,
14,
1385... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MartijnBraam/CouchPotatoServer | libs/rtorrent/err.py | 182 | 1638 | # Copyright (c) 2013 Chris Lucas, <chris@chrisjlucas.com>
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, ... | gpl-3.0 | [
3,
1898,
334,
67,
9,
6171,
2799,
5719,
491,
947,
305,
12,
665,
335,
5719,
32,
335,
5719,
74,
29918,
305,
14,
957,
30,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
199,
3,
282,
1331,
402,
642... | [
1898,
334,
67,
9,
6171,
2799,
5719,
491,
947,
305,
12,
665,
335,
5719,
32,
335,
5719,
74,
29918,
305,
14,
957,
30,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
199,
3,
282,
1331,
402,
642,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Panos512/invenio | modules/miscutil/lib/upgrades/invenio_2014_11_04_format_recjson.py | 5 | 1452 | ## -*- mode: python; coding: utf-8; -*-
##
## This file is part of Invenio.
## Copyright (C) 2014 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 (a... | gpl-2.0 | [
309,
1882,
818,
26,
2366,
27,
2803,
26,
2774,
13,
24,
27,
1882,
199,
309,
199,
309,
961,
570,
365,
1777,
402,
12235,
14,
199,
309,
1898,
334,
35,
9,
6927,
24354,
14,
199,
309,
199,
309,
12235,
365,
2867,
2032,
27,
1265,
883,
360... | [
1882,
818,
26,
2366,
27,
2803,
26,
2774,
13,
24,
27,
1882,
199,
309,
199,
309,
961,
570,
365,
1777,
402,
12235,
14,
199,
309,
1898,
334,
35,
9,
6927,
24354,
14,
199,
309,
199,
309,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
spthaolt/VTK | Examples/Modelling/Python/expCos.py | 8 | 2383 | #!/usr/bin/env python
# This example demonstrates how to use a programmable filter and how
# to use the special vtkDataSetToDataSet::GetOutputPort() methods
import vtk
from math import *
# We create a 100 by 100 point plane to sample
plane = vtk.vtkPlaneSource()
plane.SetXResolution(100)
plane.SetYResolution(100)
#... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
961,
2893,
23789,
31216,
4212,
370,
675,
282,
557,
7359,
461,
2457,
436,
4212,
199,
3,
370,
675,
314,
4539,
11144,
30720,
1378,
30720,
447,
30810,
342,
3102,
199,
199,
646,
11144,
1... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
961,
2893,
23789,
31216,
4212,
370,
675,
282,
557,
7359,
461,
2457,
436,
4212,
199,
3,
370,
675,
314,
4539,
11144,
30720,
1378,
30720,
447,
30810,
342,
3102,
199,
199,
646,
11144,
199,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Karaage-Cluster/karaage | karaage/projects/utils.py | 2 | 1729 | # Copyright 2010-2017, The University of Melbourne
# Copyright 2010-2017, Brian May
#
# This file is part of Karaage.
#
# Karaage 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... | gpl-3.0 | [
3,
1898,
7129,
13,
10680,
12,
710,
15904,
402,
603,
352,
656,
349,
69,
199,
3,
1898,
7129,
13,
10680,
12,
699,
18429,
10162,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1804,
17956,
474,
14,
199,
3,
199,
3,
1804,
17956,
474,
365,
... | [
1898,
7129,
13,
10680,
12,
710,
15904,
402,
603,
352,
656,
349,
69,
199,
3,
1898,
7129,
13,
10680,
12,
699,
18429,
10162,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
1804,
17956,
474,
14,
199,
3,
199,
3,
1804,
17956,
474,
365,
286... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Omegaphora/external_chromium_org_tools_gyp | pylib/gyp/xcode_ninja.py | 22 | 10034 | # Copyright (c) 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Xcode-ninja wrapper project file generator.
This updates the data structures passed to the Xcode gyp generator to build
with ninja instead. The Xcode project i... | bsd-3-clause | [
3,
1898,
334,
67,
9,
6927,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
624,
18442,
13,
867... | [
1898,
334,
67,
9,
6927,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
624,
18442,
13,
8675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
samklr/spark-timeseries | python/sparkts/test/test_timeseriesrdd.py | 6 | 5407 | from test_utils import PySparkTestCase
from sparkts.timeseriesrdd import *
from sparkts.timeseriesrdd import _TimeSeriesSerializer
from sparkts.datetimeindex import *
import pandas as pd
import numpy as np
from unittest import TestCase
from io import BytesIO
from pyspark.sql import SQLContext
class TimeSeriesSerialize... | apache-2.0 | [
504,
511,
63,
1208,
492,
1611,
27110,
1746,
199,
504,
15442,
1086,
14,
28551,
20533,
492,
627,
199,
504,
15442,
1086,
14,
28551,
20533,
492,
485,
30887,
7299,
199,
504,
15442,
1086,
14,
2083,
1080,
492,
627,
199,
646,
10634,
465,
6454... | [
511,
63,
1208,
492,
1611,
27110,
1746,
199,
504,
15442,
1086,
14,
28551,
20533,
492,
627,
199,
504,
15442,
1086,
14,
28551,
20533,
492,
485,
30887,
7299,
199,
504,
15442,
1086,
14,
2083,
1080,
492,
627,
199,
646,
10634,
465,
6454,
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... |
janslow/boto | boto/s3/key.py | 22 | 82475 | # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011, Nexenta Systems Inc.
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the... | mit | [
3,
1898,
334,
67,
9,
8315,
13,
7409,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
1898,
334,
67,
9,
7760,
12,
653,
476,
21335,
15285,
3277,
14,
199,
3,
1898,
334,
67,
9,
6029,
14347,
14,
957,
12,
3277,
14... | [
1898,
334,
67,
9,
8315,
13,
7409,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
1898,
334,
67,
9,
7760,
12,
653,
476,
21335,
15285,
3277,
14,
199,
3,
1898,
334,
67,
9,
6029,
14347,
14,
957,
12,
3277,
14,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DMCsys/smartalkaudio | oss-survey/xmms2-0.8DrO_o/doc/tutorial/python/tut2.py | 1 | 1951 | #!/usr/bin/env python
# XMMS2 - X Music Multiplexer System
# Copyright (C) 2003-2006 XMMS2 Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the Licens... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
221,
1323,
45,
3053,
18,
446,
1323,
28919,
9916,
14326,
32200,
6187,
199,
3,
221,
1898,
334,
35,
9,
13004,
13,
7968,
1323,
45,
3053,
18,
11682,
199,
3,
221,
199,
3,
221,
961,
3555,
3... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
221,
1323,
45,
3053,
18,
446,
1323,
28919,
9916,
14326,
32200,
6187,
199,
3,
221,
1898,
334,
35,
9,
13004,
13,
7968,
1323,
45,
3053,
18,
11682,
199,
3,
221,
199,
3,
221,
961,
3555,
365,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
twilio/twilio-python | twilio/rest/preview/understand/assistant/task/sample.py | 2 | 18621 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base... | mit | [
3,
2803,
29,
1624,
13,
24,
199,
82,
624,
199,
2765,
1233,
1990,
4046,
701,
199,
60,
1182,
485,
259,
485,
221,
485,
92,
257,
485,
221,
485,
199,
1204,
6110,
2862,
15,
1547,
9,
1547,
6113,
15,
92,
1204,
8,
15607,
221,
373,
17,
1... | [
2803,
29,
1624,
13,
24,
199,
82,
624,
199,
2765,
1233,
1990,
4046,
701,
199,
60,
1182,
485,
259,
485,
221,
485,
92,
257,
485,
221,
485,
199,
1204,
6110,
2862,
15,
1547,
9,
1547,
6113,
15,
92,
1204,
8,
15607,
221,
373,
17,
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... |
gaddman/ansible | lib/ansible/modules/network/aci/aci_config_rollback.py | 2 | 9612 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
9685,
503,
4178,
921,
1544,
14,
3689,
14,
1308,
15,
2383,
15,
11692,
13,
19,
14,
1... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
9685,
503,
4178,
921,
1544,
14,
3689,
14,
1308,
15,
2383,
15,
11692,
13,
19,
14,
16,
14,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tempbottle/kbengine | kbe/res/scripts/common/Lib/idlelib/ScrolledList.py | 76 | 4159 | from tkinter import *
class ScrolledList:
default = "(None)"
def __init__(self, master, **options):
# Create top frame, with scrollbar and listbox
self.master = master
self.frame = frame = Frame(master)
self.frame.pack(fill="both", expand=1)
self.vbar = vbar = Scrollba... | lgpl-3.0 | [
504,
22171,
492,
627,
199,
199,
533,
13916,
10504,
1296,
26,
339,
849,
275,
7340,
403,
2924,
339,
347,
636,
826,
721,
277,
12,
5288,
12,
1011,
1419,
304,
267,
327,
2790,
2746,
2787,
12,
543,
13704,
1700,
436,
769,
1977,
267,
291,
... | [
22171,
492,
627,
199,
199,
533,
13916,
10504,
1296,
26,
339,
849,
275,
7340,
403,
2924,
339,
347,
636,
826,
721,
277,
12,
5288,
12,
1011,
1419,
304,
267,
327,
2790,
2746,
2787,
12,
543,
13704,
1700,
436,
769,
1977,
267,
291,
14,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cuilishen/cuilishenMissionPlanner | Lib/lib2to3/btm_utils.py | 374 | 10011 | "Utility functions used by the btm_matcher module"
from . import pytree
from .pgen2 import grammar, token
from .pygram import pattern_symbols, python_symbols
syms = pattern_symbols
pysyms = python_symbols
tokens = grammar.opmap
token_labels = token
TYPE_ANY = -1
TYPE_ALTERNATIVES = -2
TYPE_GROUP = -3
class MinNode(... | gpl-3.0 | [
2,
17505,
3423,
1202,
701,
314,
330,
7574,
63,
16135,
859,
2,
199,
199,
504,
1275,
492,
23353,
199,
504,
1275,
80,
2268,
18,
492,
12528,
12,
1526,
199,
504,
1275,
647,
1679,
492,
3851,
63,
7450,
12,
2366,
63,
7450,
199,
199,
13807... | [
17505,
3423,
1202,
701,
314,
330,
7574,
63,
16135,
859,
2,
199,
199,
504,
1275,
492,
23353,
199,
504,
1275,
80,
2268,
18,
492,
12528,
12,
1526,
199,
504,
1275,
647,
1679,
492,
3851,
63,
7450,
12,
2366,
63,
7450,
199,
199,
13807,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jjshoe/ansible-modules-core | network/eos/eos_command.py | 5 | 5315 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jimi-c/ansible | lib/ansible/modules/monitoring/monit.py | 102 | 7631 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Darryl Stoflet <stoflet@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_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,
6171,
12,
577,
285,
651,
76,
9785,
70,
2723,
665,
270,
1618,
2723,
32,
6799,
14,
957,
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,
6171,
12,
577,
285,
651,
76,
9785,
70,
2723,
665,
270,
1618,
2723,
32,
6799,
14,
957,
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... |
jeanlinux/calibre | src/calibre/gui2/tag_browser/model.py | 11 | 60438 | #!/usr/bin/env python2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
from future_builtins import map
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'res... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
18,
199,
3,
6695,
26,
493,
2991,
29,
6610,
13,
24,
26,
1086,
29,
20,
26,
3519,
29,
20,
26,
1207,
26,
386,
26,
10329,
29,
20,
26,
5789,
199,
504,
636,
2443,
363,
492,
334,
2975,
63,
5955,
... | [
2647,
15,
1393,
15,
1813,
2366,
18,
199,
3,
6695,
26,
493,
2991,
29,
6610,
13,
24,
26,
1086,
29,
20,
26,
3519,
29,
20,
26,
1207,
26,
386,
26,
10329,
29,
20,
26,
5789,
199,
504,
636,
2443,
363,
492,
334,
2975,
63,
5955,
12,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
qgis/QGIS | python/plugins/db_manager/db_plugins/oracle/plugin.py | 29 | 22869 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Name : DB Manager
Description : Database manager plugin for QGIS (Oracle)
Date : Aug 27, 2014
copyright : (C) 2014 by Médéric RIBREUX
email : meder... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
15,
17623,
199,
985,
463,
520,
6249,
13537,
199,
5831,
3515,
520,
8692,
5256,
3589,
367,
27024,
334,
21202,
9,
199,
2506,
463,
520,
25298,
8087,
12,
6927,
199,
7307,
3322,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
624,
199,
15,
17623,
199,
985,
463,
520,
6249,
13537,
199,
5831,
3515,
520,
8692,
5256,
3589,
367,
27024,
334,
21202,
9,
199,
2506,
463,
520,
25298,
8087,
12,
6927,
199,
7307,
3322,
520,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.