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 |
|---|---|---|---|---|---|---|---|---|
Laufire/ec | tests/test_utils.py | 1 | 1168 | r"""
Test ec.utils.
"""
import unittest
from ec.utils import get, static, custom, walk
from support.helpers import RawInputHook as RIH, expect_exception
# Tests
class TestUtils(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_get(self):
Inputs = 'a', 1
RIH.values(*I... | bsd-3-clause | [
82,
624,
199,
774,
7062,
14,
1208,
14,
199,
624,
199,
646,
2882,
199,
199,
504,
7062,
14,
1208,
492,
664,
12,
2955,
12,
3537,
12,
12778,
199,
199,
504,
2291,
14,
7546,
492,
13480,
3205,
8481,
465,
820,
19824,
12,
4282,
63,
1971,
... | [
624,
199,
774,
7062,
14,
1208,
14,
199,
624,
199,
646,
2882,
199,
199,
504,
7062,
14,
1208,
492,
664,
12,
2955,
12,
3537,
12,
12778,
199,
199,
504,
2291,
14,
7546,
492,
13480,
3205,
8481,
465,
820,
19824,
12,
4282,
63,
1971,
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... |
ric2b/Vivaldi-browser | chromium/native_client_sdk/src/doc/conf.py | 103 | 6018 | # Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# -*- coding: utf-8 -*-
#
# Native Client documentation build configuration file, created by
# sphinx-quickstart on Thu Aug 15 11:31:06 2013.
#
# This fi... | bsd-3-clause | [
3,
1898,
334,
67,
9,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
3,
1882,
2803... | [
1898,
334,
67,
9,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
199,
199,
3,
1882,
2803,
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... |
lepistone/account-financial-reporting | __unported__/account_financial_report_webkit_xls/__init__.py | 37 | 1249 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Copyright (c) 2013 Noviat nv/sa (www.noviat.com). All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under... | agpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
199,
3,
259,
1898,
334,
67,
9,
6171,
3091,
433,
292,
26510,
15,
2231,
334,
1544,
14,
889,
433,
292,
14,
957,
680,... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
199,
3,
259,
1898,
334,
67,
9,
6171,
3091,
433,
292,
26510,
15,
2231,
334,
1544,
14,
889,
433,
292,
14,
957,
680,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CARocha/estudiocafe | lugar/models.py | 2 | 1837 | # -*- coding: UTF-8 -*-
from django.db import models
class Pais(models.Model):
nombre = models.CharField(max_length=200)
class Meta:
verbose_name=u'Pais'
verbose_name_plural=u'Paises'
def __unicode__(self):
return self.nombre
class Departamento(models.Model):
id = models.Int... | mit | [
3,
1882,
2803,
26,
9094,
13,
24,
1882,
199,
199,
504,
1639,
14,
697,
492,
1709,
199,
199,
533,
10164,
374,
8,
992,
14,
1685,
304,
272,
17468,
10205,
275,
1709,
14,
2183,
8,
988,
63,
1267,
29,
1840,
9,
339,
1021,
6288,
26,
267,
... | [
1882,
2803,
26,
9094,
13,
24,
1882,
199,
199,
504,
1639,
14,
697,
492,
1709,
199,
199,
533,
10164,
374,
8,
992,
14,
1685,
304,
272,
17468,
10205,
275,
1709,
14,
2183,
8,
988,
63,
1267,
29,
1840,
9,
339,
1021,
6288,
26,
267,
3376... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DualSpark/ansible | v1/ansible/cache/base.py | 159 | 1241 | # (c) 2014, Brian Coca, Josh Drake, et al
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | gpl-3.0 | [
3,
334,
67,
9,
6927,
12,
699,
18429,
445,
679,
65,
12,
7135,
609,
577,
345,
415,
12,
10844,
741,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
2622,
199,
3,
199,
3,
2622,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
... | [
334,
67,
9,
6927,
12,
699,
18429,
445,
679,
65,
12,
7135,
609,
577,
345,
415,
12,
10844,
741,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mike-perdide/gitbuster | gitbuster/q_git_delegate.py | 1 | 4118 | # q_git_delegate.py
# Copyright (C) 2010 Julien Miotte <miotte.julien@gmail.com>
#
# This module is part of gitbuster and is released under the GPLv3
# License: http://www.gnu.org/licenses/gpl-3.0.txt
#
from PyQt4.QtCore import QDateTime, QVariant, Qt, SIGNAL, QRect
from PyQt4.QtGui import QDateTimeEdit, QItemDelegate... | gpl-3.0 | [
3,
1894,
63,
3187,
63,
15286,
14,
647,
199,
3,
1898,
334,
35,
9,
7129,
1603,
13987,
287,
603,
73,
357,
266,
665,
2664,
357,
266,
14,
74,
13987,
287,
32,
6799,
14,
957,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
6135,
5610,
... | [
1894,
63,
3187,
63,
15286,
14,
647,
199,
3,
1898,
334,
35,
9,
7129,
1603,
13987,
287,
603,
73,
357,
266,
665,
2664,
357,
266,
14,
74,
13987,
287,
32,
6799,
14,
957,
30,
199,
3,
199,
3,
961,
859,
365,
1777,
402,
6135,
5610,
351... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Novasoft-India/OperERP-AM-Motors | openerp/addons/account_bank_statement_extensions/res_partner_bank.py | 52 | 1601 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under ... | agpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
199,
3,
259,
1898,
334,
67,
9,
7760,
3091,
433,
292,
26510,
15,
2231,
334,
1544,
14,
889,
433,
292,
14,
1235,
680... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
199,
3,
259,
1898,
334,
67,
9,
7760,
3091,
433,
292,
26510,
15,
2231,
334,
1544,
14,
889,
433,
292,
14,
1235,
680,
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... |
WorkingOfTimtohyZhang/shadowsocks | tests/coverage_server.py | 1072 | 1655 | #!/usr/bin/env python
#
# Copyright 2015 clowwindy
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
6900,
286,
674,
11530,
89,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
6900,
286,
674,
11530,
89,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
440,
675,
642,
570,
871,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
heesub/linux | scripts/gdb/linux/lists.py | 509 | 3631 | #
# gdb helper commands and functions for Linux kernel debugging
#
# list tools
#
# Copyright (c) Thiebaud Weksteen, 2015
#
# Authors:
# Thiebaud Weksteen <thiebaud@weksteen.fr>
#
# This work is licensed under the terms of the GNU GPL version 2.
#
import gdb
from linux import utils
list_head = utils.CachedType("st... | gpl-2.0 | [
3,
199,
3,
12124,
5922,
3718,
436,
3423,
367,
10130,
5114,
10201,
199,
3,
199,
3,
221,
769,
7249,
199,
3,
199,
3,
1898,
334,
67,
9,
3868,
1873,
2470,
1181,
2136,
75,
1597,
287,
12,
6900,
199,
3,
199,
3,
6642,
26,
199,
3,
221,
... | [
199,
3,
12124,
5922,
3718,
436,
3423,
367,
10130,
5114,
10201,
199,
3,
199,
3,
221,
769,
7249,
199,
3,
199,
3,
1898,
334,
67,
9,
3868,
1873,
2470,
1181,
2136,
75,
1597,
287,
12,
6900,
199,
3,
199,
3,
6642,
26,
199,
3,
221,
386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
hofschroeer/gnuradio | gr-blocks/python/blocks/qa_tag_share.py | 12 | 2402 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versio... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
221,
199,
3,
1898,
9708,
2868,
2290,
2752,
12,
3277,
14,
199,
3,
221,
199,
3,
961,
570,
365,
1777,
402,
1664,
13514,
199,
3,
221,
199,
3... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
221,
199,
3,
1898,
9708,
2868,
2290,
2752,
12,
3277,
14,
199,
3,
221,
199,
3,
961,
570,
365,
1777,
402,
1664,
13514,
199,
3,
221,
199,
3,
1664... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dmlc/tvm | tutorials/language/scan.py | 3 | 6333 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | [
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
199,
3,
12602,
4248,
12715,
14,
221,
710,
14857,
... | [
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
199,
3,
503,
1655,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
199,
3,
1854,
543,
642,
1736,
367,
4722,
2556,
199,
3,
12602,
4248,
12715,
14,
221,
710,
14857,
1237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
r0b0/virt-manager | src/virtManager/console.py | 2 | 42104 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2008 Red Hat, Inc.
# Copyright (C) 2006 Daniel P. Berrange <berrange@redhat.com>
# Copyright (C) 2010 Marc-André Lureau <marcandre.lureau@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
8315,
13,
9300,
9572,
13002,
12,
3277,
14,
199,
3,
1898,
334,
35,
9,
8315,
24747,
14769,
510,
14,
699,
1508,
618,
665,
605,
1842,
32,
17164,
14,
957,
30,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
8315,
13,
9300,
9572,
13002,
12,
3277,
14,
199,
3,
1898,
334,
35,
9,
8315,
24747,
14769,
510,
14,
699,
1508,
618,
665,
605,
1842,
32,
17164,
14,
957,
30,
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... |
SetBased/py-stratum | pystratum/command/LoaderCommand.py | 1 | 3242 | """
PyStratum
"""
import configparser
from pydoc import locate
from cleo import Command, Input, Output
from pystratum.RoutineLoader import RoutineLoader
from pystratum.style.PyStratumStyle import PyStratumStyle
class LoaderCommand(Command):
"""
Command for loading stored routines into a MySQL/MsSQL/PgSQL in... | mit | [
624,
199,
2713,
2848,
5729,
199,
624,
199,
646,
21230,
199,
504,
29164,
492,
16592,
199,
199,
504,
15158,
79,
492,
5817,
12,
6924,
12,
7242,
199,
504,
1134,
495,
5729,
14,
32599,
5455,
492,
820,
13242,
5455,
199,
199,
504,
1134,
495... | [
199,
2713,
2848,
5729,
199,
624,
199,
646,
21230,
199,
504,
29164,
492,
16592,
199,
199,
504,
15158,
79,
492,
5817,
12,
6924,
12,
7242,
199,
504,
1134,
495,
5729,
14,
32599,
5455,
492,
820,
13242,
5455,
199,
199,
504,
1134,
495,
572... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
m-lab/operator | tools/get-mlab-sshconfig.py | 5 | 14623 | #!/usr/bin/env python
import getpass
import xmlrpclib
import os
import sys
import re
import ssl
SESSION_DIR=os.environ['HOME'] + "/.ssh"
SESSION_FILE=SESSION_DIR + "/ssh_mlab_session"
API_URL = "https://boot.planet-lab.org/PLCAPI/"
VERBOSE=False
DEBUG=False
SEVEN_DAYS=60*60*24*7
SSL_CONTEXT = ssl.SSLContext(ssl.PROTO... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
18354,
199,
646,
19122,
199,
646,
747,
199,
646,
984,
199,
646,
295,
199,
646,
6149,
199,
199,
12763,
63,
3022,
29,
736,
14,
2314,
459,
9524,
418,
435,
3286,
14,
5510,
2,
199,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
646,
18354,
199,
646,
19122,
199,
646,
747,
199,
646,
984,
199,
646,
295,
199,
646,
6149,
199,
199,
12763,
63,
3022,
29,
736,
14,
2314,
459,
9524,
418,
435,
3286,
14,
5510,
2,
199,
12763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
luaduck/suds | soapclient.py | 1 | 6841 |
###
# This file is part of Soap.
#
# Soap is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, version 2.
#
# Soap is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without ev... | gpl-2.0 | [
202,
199,
5680,
202,
199,
3,
961,
570,
365,
1777,
402,
2002,
439,
14,
202,
199,
3,
202,
199,
3,
2002,
439,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
652,
1334,
314,
202,
199,
3,
2895,
402,
314,
1664,
1696,
... | [
199,
5680,
202,
199,
3,
961,
570,
365,
1777,
402,
2002,
439,
14,
202,
199,
3,
202,
199,
3,
2002,
439,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
2811,
652,
1334,
314,
202,
199,
3,
2895,
402,
314,
1664,
1696,
1684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cloudnull/skylab | skylab/executable.py | 1 | 9051 | # =============================================================================
# Copyright [2013] [Kevin Carter]
# License Information :
# This software has no warranty, it is provided 'as is'. It is your
# responsibility to validate the behavior of the routines and its accuracy
# using the code provided. Consult the ... | gpl-3.0 | [
3,
26237,
199,
3,
1898,
359,
6965,
61,
359,
1136,
11908,
14243,
351,
61,
199,
3,
844,
17064,
520,
199,
3,
961,
2032,
965,
949,
3750,
12,
652,
365,
2741,
283,
305,
365,
1370,
2779,
365,
2195,
199,
3,
9163,
4783,
370,
4107,
314,
5... | [
26237,
199,
3,
1898,
359,
6965,
61,
359,
1136,
11908,
14243,
351,
61,
199,
3,
844,
17064,
520,
199,
3,
961,
2032,
965,
949,
3750,
12,
652,
365,
2741,
283,
305,
365,
1370,
2779,
365,
2195,
199,
3,
9163,
4783,
370,
4107,
314,
5953,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
utecuy/edx-platform | lms/djangoapps/teams/migrations/0004_auto__add_field_courseteam_discussion_topic_id__add_field_courseteam_l.py | 46 | 6547 | # -*- coding: utf-8 -*-
import pytz
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'CourseTeam.last_activity_at'
db.add_column('t... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
15444,
199,
504,
12919,
14,
1208,
492,
2197,
63,
1208,
465,
2197,
199,
504,
12919,
14,
697,
492,
1592,
199,
504,
12919,
14,
86,
18,
492,
24765,
199,
504,
1639,
14,
697,
492,
1709,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
15444,
199,
504,
12919,
14,
1208,
492,
2197,
63,
1208,
465,
2197,
199,
504,
12919,
14,
697,
492,
1592,
199,
504,
12919,
14,
86,
18,
492,
24765,
199,
504,
1639,
14,
697,
492,
1709,
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... |
rcorrieri/dnspython | dns/entropy.py | 8 | 3885 | # Copyright (C) 2009, 2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND... | isc | [
3,
1898,
334,
35,
9,
8937,
12,
7760,
653,
676,
262,
453,
12,
3277,
14,
199,
3,
199,
3,
8779,
370,
675,
12,
1331,
12,
2811,
12,
436,
11207,
642,
2032,
436,
2399,
199,
3,
3794,
367,
1263,
12016,
543,
503,
1928,
14751,
365,
11882,
... | [
1898,
334,
35,
9,
8937,
12,
7760,
653,
676,
262,
453,
12,
3277,
14,
199,
3,
199,
3,
8779,
370,
675,
12,
1331,
12,
2811,
12,
436,
11207,
642,
2032,
436,
2399,
199,
3,
3794,
367,
1263,
12016,
543,
503,
1928,
14751,
365,
11882,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rjschof/gem5 | src/arch/x86/isa/insts/simd64/integer/save_and_restore_state.py | 91 | 2168 | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | bsd-3-clause | [
3,
1898,
334,
67,
9,
10219,
710,
27849,
13,
29471,
15290,
15878,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
710,
4190,
5084,
16879,
1454,
370,
4248,
315,
314,
2032,
436,
10989,
199,
3,
440,
506,
950,
431,
68,
465,
16085,
316,
... | [
1898,
334,
67,
9,
10219,
710,
27849,
13,
29471,
15290,
15878,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
710,
4190,
5084,
16879,
1454,
370,
4248,
315,
314,
2032,
436,
10989,
199,
3,
440,
506,
950,
431,
68,
465,
16085,
316,
282,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
abdellatifkarroum/odoo | openerp/addons/test_impex/tests/test_import.py | 154 | 30429 | # -*- coding: utf-8 -*-
import openerp.modules.registry
import openerp
from openerp.tests import common
from openerp.tools.misc import mute_logger
def ok(n):
""" Successful import of ``n`` records
:param int n: number of records which should have been imported
"""
return n, 0, 0, 0
def error(row, me... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
5166,
14,
3112,
14,
5189,
199,
646,
5166,
199,
199,
504,
5166,
14,
2219,
492,
2863,
199,
504,
5166,
14,
2537,
14,
9923,
492,
333,
938,
63,
2921,
199,
199,
318,
4112,
8,
78,
304,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
5166,
14,
3112,
14,
5189,
199,
646,
5166,
199,
199,
504,
5166,
14,
2219,
492,
2863,
199,
504,
5166,
14,
2537,
14,
9923,
492,
333,
938,
63,
2921,
199,
199,
318,
4112,
8,
78,
304,
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... |
Habasari/sms-tools | lectures/08-Sound-transformations/plots-code/stftFiltering-orchestra.py | 18 | 1677 | import numpy as np
import time, os, sys
import matplotlib.pyplot as plt
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../../software/models/'))
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../../software/transformations/'))
import utilFunctions as UF
impo... | agpl-3.0 | [
646,
2680,
465,
980,
199,
646,
900,
12,
747,
12,
984,
199,
646,
8027,
14,
13563,
465,
4488,
199,
1274,
14,
515,
14,
740,
8,
736,
14,
515,
14,
904,
8,
736,
14,
515,
14,
3475,
8,
736,
14,
515,
14,
11091,
3460,
493,
22159,
283,
... | [
2680,
465,
980,
199,
646,
900,
12,
747,
12,
984,
199,
646,
8027,
14,
13563,
465,
4488,
199,
1274,
14,
515,
14,
740,
8,
736,
14,
515,
14,
904,
8,
736,
14,
515,
14,
3475,
8,
736,
14,
515,
14,
11091,
3460,
493,
22159,
283,
29866,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zsiciarz/django | tests/generic_views/test_dates.py | 26 | 34915 | import datetime
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase, override_settings, skipUnlessDBFeature
from django.test.utils import requires_tz_support
from django.utils import timezone
from .models import Artist, Author, Book, BookSigning, Page
def _make_books(n, base_dat... | bsd-3-clause | [
646,
2197,
199,
199,
504,
1639,
14,
1018,
14,
3924,
492,
11897,
199,
504,
1639,
14,
396,
492,
7640,
12,
4278,
63,
1751,
12,
3372,
5524,
18093,
199,
504,
1639,
14,
396,
14,
1208,
492,
5074,
63,
3903,
63,
4058,
199,
504,
1639,
14,
... | [
2197,
199,
199,
504,
1639,
14,
1018,
14,
3924,
492,
11897,
199,
504,
1639,
14,
396,
492,
7640,
12,
4278,
63,
1751,
12,
3372,
5524,
18093,
199,
504,
1639,
14,
396,
14,
1208,
492,
5074,
63,
3903,
63,
4058,
199,
504,
1639,
14,
1208,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
google/resultstoreui | resultstoreui/resultstoreapi/cloud/devtools/resultstore_v2/proto/resultstore_download_pb2.py | 2 | 77293 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/devtools/resultstore_v2/proto/resultstore_download.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
... | apache-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
17065,
701,
314,
4113,
3335,
6365,
14,
221,
3506,
2845,
24981,
1,
199,
3,
1350,
26,
6233,
15,
4091,
15,
32355,
15,
1099,
1617,
63,
86,
18,
15,
2625,
15,
1099,
1617,
63,
4249,
14,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
17065,
701,
314,
4113,
3335,
6365,
14,
221,
3506,
2845,
24981,
1,
199,
3,
1350,
26,
6233,
15,
4091,
15,
32355,
15,
1099,
1617,
63,
86,
18,
15,
2625,
15,
1099,
1617,
63,
4249,
14,
2625,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jolyonb/edx-platform | openedx/core/djangoapps/util/tests/test_update_fixtures.py | 6 | 1877 | # -*- coding: utf-8 -*-
"""
Tests of the update_fixtures management command for bok-choy test database
initialization.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import pytest
from django.contrib.sites.models import Site
from django.core.management import call_com... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
2925,
402,
314,
1678,
63,
8769,
10041,
1414,
367,
330,
745,
13,
2239,
89,
511,
3050,
199,
27876,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
870... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
2925,
402,
314,
1678,
63,
8769,
10041,
1414,
367,
330,
745,
13,
2239,
89,
511,
3050,
199,
27876,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
4629,
12,
870,
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... |
scorphus/django | django/db/models/manager.py | 301 | 10722 | import copy
import inspect
from importlib import import_module
from django.db import router
from django.db.models.query import QuerySet
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible
def ensure_default_manager(cls):
"""
Ensures that a Model subclass contains a defa... | bsd-3-clause | [
646,
1331,
199,
646,
6485,
199,
504,
14802,
492,
492,
63,
578,
199,
199,
504,
1639,
14,
697,
492,
6197,
199,
504,
1639,
14,
697,
14,
992,
14,
1131,
492,
18397,
199,
504,
1639,
14,
1208,
492,
3816,
199,
504,
1639,
14,
1208,
14,
2... | [
1331,
199,
646,
6485,
199,
504,
14802,
492,
492,
63,
578,
199,
199,
504,
1639,
14,
697,
492,
6197,
199,
504,
1639,
14,
697,
14,
992,
14,
1131,
492,
18397,
199,
504,
1639,
14,
1208,
492,
3816,
199,
504,
1639,
14,
1208,
14,
2991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shsingh/ansible | lib/ansible/module_utils/facts/virtual/sunos.py | 199 | 5481 | # 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 distributed in the hope that ... | gpl-3.0 | [
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,
3267,
701,
199,
3,
314,
2868,
2290,
2752... | [
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,
3267,
701,
199,
3,
314,
2868,
2290,
2752,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ryfeus/lambda-packs | Tensorflow_LightGBM_Scipy_nightly/source/numpy/distutils/lib2def.py | 193 | 3512 | from __future__ import division, absolute_import, print_function
import re
import sys
import os
import subprocess
__doc__ = """This module generates a DEF file from the symbols in
an MSVC-compiled DLL import library. It correctly discriminates between
data and functions. The data is collected from the output of the... | mit | [
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
295,
199,
646,
984,
199,
646,
747,
199,
646,
3873,
199,
199,
363,
1301,
363,
275,
408,
2765,
859,
12821,
282,
23566,
570,
687,
314,
6698,
315,
... | [
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
295,
199,
646,
984,
199,
646,
747,
199,
646,
3873,
199,
199,
363,
1301,
363,
275,
408,
2765,
859,
12821,
282,
23566,
570,
687,
314,
6698,
315,
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... |
komsas/partner-contact | passport/__init__.py | 35 | 1077 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2013-2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and... | agpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
961,
859,
4248,
334,
35,
9,
6171,
13,
7280,
428,
1214,
19142,
13,
667,
3621,
10130,
199,
3,
259,
8642,
1014,
... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
961,
859,
4248,
334,
35,
9,
6171,
13,
7280,
428,
1214,
19142,
13,
667,
3621,
10130,
199,
3,
259,
8642,
1014,
921,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
HyperBaton/ansible | lib/ansible/modules/network/slxos/slxos_vlan.py | 38 | 9666 | #!/usr/bin/python
#
# (c) 2018 Extreme Networks Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
334,
67,
9,
14894,
7255,
17817,
17138,
3277,
14,
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,
28... | [
2647,
15,
1393,
15,
1548,
199,
3,
199,
3,
334,
67,
9,
14894,
7255,
17817,
17138,
3277,
14,
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,
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... |
0k/OpenUpgrade | addons/pad/py_etherpad/__init__.py | 505 | 7804 | """Module to talk to EtherpadLite API."""
import json
import urllib
import urllib2
class EtherpadLiteClient:
"""Client to talk to EtherpadLite API."""
API_VERSION = 1 # TODO probably 1.1 sometime soon
CODE_OK = 0
CODE_INVALID_PARAMETERS = 1
CODE_INTERNAL_ERROR = 2
CODE_INVALID_FUNCTION = 3
... | agpl-3.0 | [
624,
2377,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
1041,
199,
199,
646,
2022,
199,
646,
4011,
199,
646,
4011,
18,
421,
199,
533,
662,
728,
6226,
19375,
3041,
26,
272,
408,
3041,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
10... | [
2377,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
1041,
199,
199,
646,
2022,
199,
646,
4011,
199,
646,
4011,
18,
421,
199,
533,
662,
728,
6226,
19375,
3041,
26,
272,
408,
3041,
370,
22811,
370,
662,
728,
6226,
19375,
3261,
1041,
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... |
ujenmr/ansible | lib/ansible/modules/network/aci/aci_bd.py | 22 | 15040 | #!/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... |
dracos/django | tests/forms_tests/field_tests/test_floatfield.py | 34 | 4392 | from django.forms import FloatField, NumberInput, ValidationError
from django.test import SimpleTestCase
from django.test.utils import override_settings
from django.utils import formats, translation
from . import FormFieldAssertionsMixin
class FloatFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
def test_f... | bsd-3-clause | [
504,
1639,
14,
3351,
492,
11140,
792,
12,
4860,
3205,
12,
8505,
199,
504,
1639,
14,
396,
492,
24424,
199,
504,
1639,
14,
396,
14,
1208,
492,
4278,
63,
1751,
199,
504,
1639,
14,
1208,
492,
6752,
12,
7761,
199,
199,
504,
1275,
492,
... | [
1639,
14,
3351,
492,
11140,
792,
12,
4860,
3205,
12,
8505,
199,
504,
1639,
14,
396,
492,
24424,
199,
504,
1639,
14,
396,
14,
1208,
492,
4278,
63,
1751,
199,
504,
1639,
14,
1208,
492,
6752,
12,
7761,
199,
199,
504,
1275,
492,
8204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ptonner/GPy | GPy/testing/examples_tests.py | 15 | 3721 | # Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import unittest
import numpy as np
import GPy
import inspect
import pkgutil
import os
import random
from nose.tools import nottest
import sys
import itertools
class ExamplesTests(unittest.TestCase):
de... | bsd-3-clause | [
3,
1898,
334,
67,
9,
6029,
12,
598,
2713,
11462,
334,
3239,
10610,
14,
2424,
680,
199,
3,
3909,
1334,
314,
6289,
650,
13,
8501,
4190,
334,
3239,
5113,
14,
2424,
9,
199,
199,
646,
2882,
199,
646,
2680,
465,
980,
199,
646,
598,
27... | [
1898,
334,
67,
9,
6029,
12,
598,
2713,
11462,
334,
3239,
10610,
14,
2424,
680,
199,
3,
3909,
1334,
314,
6289,
650,
13,
8501,
4190,
334,
3239,
5113,
14,
2424,
9,
199,
199,
646,
2882,
199,
646,
2680,
465,
980,
199,
646,
598,
2713,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
KaranToor/MA450 | google-cloud-sdk/.install/.backup/platform/gsutil/third_party/boto/tests/integration/sdb/__init__.py | 761 | 1104 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modi... | apache-2.0 | [
3,
1898,
334,
67,
9,
8315,
13,
8128,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
282,
199,
3,
1331,
402,
642,
2032,
436,
4... | [
1898,
334,
67,
9,
8315,
13,
8128,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
282,
199,
3,
1331,
402,
642,
2032,
436,
4568,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tomasreimers/tensorflow-emscripten | tensorflow/python/kernel_tests/pad_op_test.py | 66 | 8461 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
huiren/ece511 | src/cpu/DummyChecker.py | 69 | 2259 | # Copyright (c) 2010-2011 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functional... | bsd-3-clause | [
3,
1898,
334,
67,
9,
7129,
13,
8128,
27155,
23954,
199,
3,
2900,
4481,
4644,
199,
3,
199,
3,
710,
4190,
5084,
16879,
1454,
370,
4248,
315,
314,
2032,
436,
10989,
199,
3,
440,
506,
950,
431,
68,
465,
16085,
316,
282,
4190,
370,
1... | [
1898,
334,
67,
9,
7129,
13,
8128,
27155,
23954,
199,
3,
2900,
4481,
4644,
199,
3,
199,
3,
710,
4190,
5084,
16879,
1454,
370,
4248,
315,
314,
2032,
436,
10989,
199,
3,
440,
506,
950,
431,
68,
465,
16085,
316,
282,
4190,
370,
1263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ezbake/ezbake-common-python | security/test/test_tokencache.py | 2 | 3597 | # Copyright (C) 2013-2014 Computer Sciences Corporation
#
# 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 a... | apache-2.0 | [
3,
257,
1898,
334,
35,
9,
6171,
13,
7280,
3599,
2699,
16578,
25231,
11098,
199,
3,
199,
3,
257,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
257,
1265,
1443,
440,
675,
642,
570,
871,
315... | [
257,
1898,
334,
35,
9,
6171,
13,
7280,
3599,
2699,
16578,
25231,
11098,
199,
3,
199,
3,
257,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
257,
1265,
1443,
440,
675,
642,
570,
871,
315,
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... |
VisheshHanda/production_backup | erpnext/utilities/page/leaderboard/leaderboard.py | 12 | 6774 | # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals, print_function
import frappe
import json
from operator import itemgetter
from frappe.utils import add_to_date
from erpnext.accounts.party import get_dashboard_info
from erpnext.a... | gpl-3.0 | [
3,
1898,
334,
67,
9,
9708,
12,
481,
5034,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
10697,
844,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
12,
870,
63,
1593,
199,
646,
6950,
199,
646,
20... | [
1898,
334,
67,
9,
9708,
12,
481,
5034,
19215,
29053,
14,
12126,
14,
436,
23212,
199,
3,
10697,
844,
14,
1666,
4190,
14,
2424,
199,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
12,
870,
63,
1593,
199,
646,
6950,
199,
646,
2022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kmaglione/amo-validator | validator/testcases/javascript/obsolete.py | 1 | 3693 | from __future__ import absolute_import, print_function, unicode_literals
from .jstypes import Hook, Interfaces
OBSOLETE_EXTENSION_MANAGER = {
'on_get': 'This interface is part of the obsolete extension manager '
'interface, which is not available in any remotely modern '
'version of F... | bsd-3-clause | [
504,
636,
2443,
363,
492,
3679,
63,
646,
12,
870,
63,
1593,
12,
2649,
63,
5955,
199,
199,
504,
1275,
74,
20615,
83,
492,
24837,
12,
6551,
4309,
421,
199,
5488,
15096,
5248,
63,
15498,
63,
28541,
275,
469,
272,
283,
265,
63,
362,
... | [
636,
2443,
363,
492,
3679,
63,
646,
12,
870,
63,
1593,
12,
2649,
63,
5955,
199,
199,
504,
1275,
74,
20615,
83,
492,
24837,
12,
6551,
4309,
421,
199,
5488,
15096,
5248,
63,
15498,
63,
28541,
275,
469,
272,
283,
265,
63,
362,
356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tchellomello/home-assistant | homeassistant/components/roomba/sensor.py | 1 | 1696 | """Sensor for checking the battery level of Roomba."""
import logging
from homeassistant.components.vacuum import STATE_DOCKED
from homeassistant.const import DEVICE_CLASS_BATTERY, PERCENTAGE
from homeassistant.helpers.icon import icon_for_battery_level
from .const import BLID, DOMAIN, ROOMBA_SESSION
from .irobot_bas... | apache-2.0 | [
624,
10160,
367,
7907,
314,
330,
13891,
2166,
402,
6848,
676,
2470,
1041,
199,
646,
2050,
199,
199,
504,
8846,
14,
4608,
14,
15367,
19805,
492,
11377,
63,
25190,
1149,
199,
504,
8846,
14,
1297,
492,
11643,
63,
6885,
63,
28839,
1157,
... | [
10160,
367,
7907,
314,
330,
13891,
2166,
402,
6848,
676,
2470,
1041,
199,
646,
2050,
199,
199,
504,
8846,
14,
4608,
14,
15367,
19805,
492,
11377,
63,
25190,
1149,
199,
504,
8846,
14,
1297,
492,
11643,
63,
6885,
63,
28839,
1157,
57,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NikolaYolov/invenio_backup | modules/webbasket/lib/webbasket_regression_tests.py | 17 | 8707 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2006, 2007, 2008, 2010, 2011 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
## Licens... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
309,
199,
309,
961,
570,
365,
1777,
402,
12235,
14,
199,
309,
1898,
334,
35,
9,
8315,
12,
10219,
12,
9079,
12,
7129,
12,
7760,
24354,
14,
199,
309,
199,
309,
12235,
365,
2867,
2032,
27... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
309,
199,
309,
961,
570,
365,
1777,
402,
12235,
14,
199,
309,
1898,
334,
35,
9,
8315,
12,
10219,
12,
9079,
12,
7129,
12,
7760,
24354,
14,
199,
309,
199,
309,
12235,
365,
2867,
2032,
27,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
michalliu/OpenWrt-Firefly-Libraries | staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python3.4/xmlrpc/client.py | 9 | 48129 | #
# XML-RPC CLIENT LIBRARY
# $Id$
#
# an XML-RPC client interface for Python.
#
# the marshalling and response parser code can also be used to
# implement XML-RPC servers.
#
# Notes:
# this version is designed to work with Python 2.1 or newer.
#
# History:
# 1999-01-14 fl Created
# 1999-01-15 fl Changed dateTime to u... | gpl-2.0 | [
3,
199,
3,
4692,
13,
8171,
14214,
1309,
25764,
50,
4392,
199,
3,
2672,
1304,
4,
199,
3,
199,
3,
376,
4692,
13,
8171,
1890,
3217,
367,
2018,
14,
199,
3,
199,
3,
314,
7557,
609,
26039,
436,
1177,
1798,
1233,
883,
2597,
506,
1202,
... | [
199,
3,
4692,
13,
8171,
14214,
1309,
25764,
50,
4392,
199,
3,
2672,
1304,
4,
199,
3,
199,
3,
376,
4692,
13,
8171,
1890,
3217,
367,
2018,
14,
199,
3,
199,
3,
314,
7557,
609,
26039,
436,
1177,
1798,
1233,
883,
2597,
506,
1202,
370... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AsimmHirani/ISpyPi | tensorflow/contrib/tensorflow-master/tensorflow/examples/how_tos/reading_data/fully_connected_reader.py | 52 | 7416 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
frreiss/tensorflow-fred | tensorflow/python/distribute/distribute_coordinator_test.py | 8 | 36873 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
6900,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DreamerKing/LightweightHtmlWidgets | publish-rc/v1.0/files/Ipy.Lib/tokenize.py | 122 | 16465 | """Tokenization help for Python programs.
generate_tokens(readline) is a generator that breaks a stream of
text into Python tokens. It accepts a readline-like method which is called
repeatedly to get the next line of input (or "" for EOF). It generates
5-tuples with these members:
the token type (see token.py)
... | gpl-3.0 | [
624,
3264,
2072,
1720,
367,
2018,
18572,
14,
199,
199,
4208,
63,
4504,
8,
6407,
9,
365,
282,
4306,
626,
18277,
282,
2547,
402,
199,
505,
1901,
2018,
4645,
14,
221,
2779,
11479,
282,
14441,
13,
2930,
1083,
1314,
365,
2797,
199,
7593,... | [
3264,
2072,
1720,
367,
2018,
18572,
14,
199,
199,
4208,
63,
4504,
8,
6407,
9,
365,
282,
4306,
626,
18277,
282,
2547,
402,
199,
505,
1901,
2018,
4645,
14,
221,
2779,
11479,
282,
14441,
13,
2930,
1083,
1314,
365,
2797,
199,
7593,
590,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
adammenges/statsmodels | statsmodels/tools/tests/test_tools.py | 26 | 18818 | """
Test functions for models.tools
"""
from statsmodels.compat.python import lrange, range
import numpy as np
from numpy.random import standard_normal
from numpy.testing import (assert_equal, assert_array_equal,
assert_almost_equal, assert_string_equal, TestCase)
from nose.tools import (asse... | bsd-3-clause | [
624,
199,
774,
3423,
367,
1709,
14,
2537,
199,
624,
199,
504,
5020,
992,
14,
5819,
14,
1548,
492,
634,
1842,
12,
1425,
199,
646,
2680,
465,
980,
199,
504,
2680,
14,
2355,
492,
4465,
63,
3302,
199,
504,
2680,
14,
4776,
492,
334,
... | [
199,
774,
3423,
367,
1709,
14,
2537,
199,
624,
199,
504,
5020,
992,
14,
5819,
14,
1548,
492,
634,
1842,
12,
1425,
199,
646,
2680,
465,
980,
199,
504,
2680,
14,
2355,
492,
4465,
63,
3302,
199,
504,
2680,
14,
4776,
492,
334,
479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zhufangxing/ndnCDN | src/visualizer/bindings/modulegen__gcc_ILP32.py | 82 | 361459 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... | gpl-2.0 | [
504,
1134,
31297,
492,
5673,
12,
3814,
3034,
17111,
12,
1215,
12,
9151,
12,
7246,
533,
12,
14330,
421,
199,
646,
1134,
31297,
14,
1751,
199,
646,
3598,
199,
199,
533,
4520,
2461,
8,
647,
31297,
14,
1751,
14,
25933,
304,
272,
347,
... | [
1134,
31297,
492,
5673,
12,
3814,
3034,
17111,
12,
1215,
12,
9151,
12,
7246,
533,
12,
14330,
421,
199,
646,
1134,
31297,
14,
1751,
199,
646,
3598,
199,
199,
533,
4520,
2461,
8,
647,
31297,
14,
1751,
14,
25933,
304,
272,
347,
2429,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
heli522/scikit-learn | examples/neighbors/plot_approximate_nearest_neighbors_scalability.py | 225 | 5719 | """
============================================
Scalability of Approximate Nearest Neighbors
============================================
This example studies the scalability profile of approximate 10-neighbors
queries using the LSHForest with ``n_estimators=20`` and ``n_candidates=200``
when varying the number of sa... | bsd-3-clause | [
624,
199,
2486,
5769,
199,
10249,
3616,
402,
13450,
8221,
6897,
5612,
9540,
5612,
7398,
199,
2486,
5769,
199,
199,
2765,
2893,
410,
14525,
397,
314,
5269,
3616,
4690,
402,
19917,
1616,
13,
11113,
199,
10590,
1808,
314,
491,
3234,
21668,... | [
199,
2486,
5769,
199,
10249,
3616,
402,
13450,
8221,
6897,
5612,
9540,
5612,
7398,
199,
2486,
5769,
199,
199,
2765,
2893,
410,
14525,
397,
314,
5269,
3616,
4690,
402,
19917,
1616,
13,
11113,
199,
10590,
1808,
314,
491,
3234,
21668,
543,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sebast1219/Monocle | web_sanic.py | 3 | 6230 | #!/usr/bin/env python3
from pkg_resources import resource_filename
from time import time
from sanic import Sanic
from sanic.response import html, json
from jinja2 import Environment, PackageLoader, Markup
from asyncpg import create_pool
from monocle import sanitized as conf
from monocle.bounds import center
from mon... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
504,
5496,
63,
4435,
492,
2073,
63,
1501,
199,
504,
900,
492,
900,
199,
199,
504,
28698,
530,
492,
29359,
530,
199,
504,
28698,
530,
14,
1310,
492,
3517,
12,
2022,
199,
504,
1032... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
504,
5496,
63,
4435,
492,
2073,
63,
1501,
199,
504,
900,
492,
900,
199,
199,
504,
28698,
530,
492,
29359,
530,
199,
504,
28698,
530,
14,
1310,
492,
3517,
12,
2022,
199,
504,
10321,
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... |
ryfeus/lambda-packs | LightGBM_sklearn_scipy_numpy/source/numpy/lib/tests/test__version.py | 126 | 2125 | """Tests for the NumpyVersion class.
"""
from __future__ import division, absolute_import, print_function
from numpy.testing import assert_, run_module_suite, assert_raises
from numpy.lib import NumpyVersion
def test_main_versions():
assert_(NumpyVersion('1.8.0') == '1.8.0')
for ver in ['1.9.0', '2.0.0', '1... | mit | [
624,
2925,
367,
314,
20535,
3353,
1021,
14,
199,
199,
624,
199,
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
504,
2680,
14,
4776,
492,
702,
3131,
1255,
63,
578,
63,
5768,
12,
702,
63,
3536,
199... | [
2925,
367,
314,
20535,
3353,
1021,
14,
199,
199,
624,
199,
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
504,
2680,
14,
4776,
492,
702,
3131,
1255,
63,
578,
63,
5768,
12,
702,
63,
3536,
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... |
pvreman/cobbler | cobbler/collection_repos.py | 3 | 2847 | """
Repositories in cobbler are way to create a local mirror of a yum repository.
When used in conjunction with a mirrored kickstart tree (see "cobbler import")
outside bandwidth needs can be reduced and/or eliminated.
Copyright 2006-2009, Red Hat, Inc
Michael DeHaan <mdehaan@redhat.com>
This program is free software... | gpl-2.0 | [
624,
199,
11334,
15529,
315,
512,
26722,
787,
4340,
370,
1218,
282,
2257,
15216,
402,
282,
24717,
7611,
14,
199,
11423,
1202,
315,
22888,
543,
282,
333,
27533,
1022,
18938,
3123,
334,
3239,
298,
331,
26722,
492,
531,
199,
22431,
20434,
... | [
199,
11334,
15529,
315,
512,
26722,
787,
4340,
370,
1218,
282,
2257,
15216,
402,
282,
24717,
7611,
14,
199,
11423,
1202,
315,
22888,
543,
282,
333,
27533,
1022,
18938,
3123,
334,
3239,
298,
331,
26722,
492,
531,
199,
22431,
20434,
4839,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 | test/mac/gyptest-strip-default.py | 232 | 2448 | #!/usr/bin/env python
# Copyright (c) 2013 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that the default STRIP_STYLEs match between different generators.
"""
import TestGyp
import re
import subprocess
import sys
i... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
6171,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
3... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
1898,
334,
67,
9,
6171,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
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... |
bcopeland/speccy | scanner.py | 1 | 9599 | #!/usr/bin/python
from multiprocessing import Value
from threading import Thread, Lock
import os
import time
class Scanner(object):
interface = None
freqlist = None
process = None
debugfs_dir = None
is_ath10k = False
lock = None
run = True
def dev_to_phy(self, dev):
f = open(... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
504,
12866,
492,
1594,
199,
504,
5796,
492,
11086,
12,
15536,
199,
646,
747,
199,
646,
900,
421,
199,
533,
28628,
8,
785,
304,
339,
3217,
275,
488,
272,
9220,
513,
275,
488,
272,
2112,
275,
488... | [
2647,
15,
1393,
15,
1548,
199,
504,
12866,
492,
1594,
199,
504,
5796,
492,
11086,
12,
15536,
199,
646,
747,
199,
646,
900,
421,
199,
533,
28628,
8,
785,
304,
339,
3217,
275,
488,
272,
9220,
513,
275,
488,
272,
2112,
275,
488,
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... |
aequitas/CouchPotato | library/minify/js.py | 10 | 7663 | #!/usr/bin/python
# This code is original from jsmin by Douglas Crockford, it was translated to
# Python by Baruch Even. The original code had the following copyright and
# license.
#
# /* jsmin.c
# 2007-05-22
#
# Copyright (c) 2002 Douglas Crockford (www.crockford.com)
#
# Permission is hereby granted, free of ch... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
199,
3,
961,
1233,
365,
3379,
687,
8586,
827,
701,
577,
810,
3528,
305,
445,
24892,
18090,
12,
652,
1990,
14598,
370,
199,
3,
2018,
701,
12377,
2133,
22207,
14,
710,
3379,
1233,
10530,
314,
2569,... | [
2647,
15,
1393,
15,
1548,
199,
199,
3,
961,
1233,
365,
3379,
687,
8586,
827,
701,
577,
810,
3528,
305,
445,
24892,
18090,
12,
652,
1990,
14598,
370,
199,
3,
2018,
701,
12377,
2133,
22207,
14,
710,
3379,
1233,
10530,
314,
2569,
4248,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rainwoodman/pmesh | pmesh/coarray.py | 2 | 10040 | """
CoArray/MPI in Python
This is a failed attempt to implement the CoArray 1.0 standard:
http://caf.rice.edu/documentation/index.html
The implementation uses the MPI 1.0 subset, mostly because I am
not quite familar with MPI.Win objects and how they interact
with numpy. mpi4py also has a... | gpl-3.0 | [
624,
272,
1849,
3836,
15,
28983,
315,
2018,
339,
961,
365,
282,
3405,
7427,
370,
5669,
314,
1849,
3836,
413,
14,
16,
4465,
26,
398,
1455,
921,
27956,
14,
322,
301,
14,
8654,
15,
9970,
15,
1080,
14,
1360,
339,
710,
4514,
4440,
314,... | [
272,
1849,
3836,
15,
28983,
315,
2018,
339,
961,
365,
282,
3405,
7427,
370,
5669,
314,
1849,
3836,
413,
14,
16,
4465,
26,
398,
1455,
921,
27956,
14,
322,
301,
14,
8654,
15,
9970,
15,
1080,
14,
1360,
339,
710,
4514,
4440,
314,
2602... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zaffra/Donate | django/core/cache/__init__.py | 16 | 2924 | """
Caching framework.
This package defines set of cache backends that all conform to a simple API.
In a nutshell, a cache is a set of values -- which can be any object that
may be pickled -- identified by string keys. For the complete API, see
the abstract BaseCache class in django.core.cache.backends.base.
Client ... | bsd-3-clause | [
624,
199,
35,
23302,
10059,
14,
199,
199,
2765,
2559,
7890,
663,
402,
2581,
14745,
626,
1006,
26449,
370,
282,
3486,
3261,
14,
199,
607,
282,
302,
337,
5641,
12,
282,
2581,
365,
282,
663,
402,
1338,
1553,
1314,
883,
506,
1263,
909,
... | [
199,
35,
23302,
10059,
14,
199,
199,
2765,
2559,
7890,
663,
402,
2581,
14745,
626,
1006,
26449,
370,
282,
3486,
3261,
14,
199,
607,
282,
302,
337,
5641,
12,
282,
2581,
365,
282,
663,
402,
1338,
1553,
1314,
883,
506,
1263,
909,
626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
halaszk/universal7420 | tools/perf/scripts/python/netdev-times.py | 11271 | 15048 | # Display a process of packets and processed time.
# It helps us to investigate networking or network device.
#
# options
# tx: show only tx chart
# rx: show only rx chart
# dev=: show only thing related to specified device
# debug: work with debug mode. It shows buffer status.
import os
import sys
sys.path.append(os... | gpl-2.0 | [
3,
12175,
282,
2112,
402,
14593,
436,
7686,
900,
14,
199,
3,
2779,
22577,
2739,
370,
315,
27174,
323,
2784,
316,
503,
2784,
2243,
14,
199,
3,
199,
3,
1511,
199,
3,
4773,
26,
2498,
1454,
4773,
10943,
199,
3,
12951,
26,
2498,
1454,
... | [
12175,
282,
2112,
402,
14593,
436,
7686,
900,
14,
199,
3,
2779,
22577,
2739,
370,
315,
27174,
323,
2784,
316,
503,
2784,
2243,
14,
199,
3,
199,
3,
1511,
199,
3,
4773,
26,
2498,
1454,
4773,
10943,
199,
3,
12951,
26,
2498,
1454,
129... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jacques/connector | test/feedvalidator/feedvalidator/formatter/base.py | 2 | 2272 | """$Id: base.py 511 2006-03-07 05:19:10Z rubys $"""
__author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>"
__version__ = "$Revision: 511 $"
__date__ = "$Date: 2006-03-07 18:19:10 +1300 (Tue, 07 Mar 2006) $"
__copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim"
__license... | gpl-2.0 | [
624,
4,
1304,
26,
1300,
14,
647,
959,
845,
8315,
13,
1644,
13,
1780,
22528,
26,
1167,
26,
709,
58,
519,
456,
588,
2672,
624,
199,
199,
363,
2502,
363,
275,
298,
51,
455,
820,
10972,
665,
1014,
921,
1058,
8122,
316,
590,
14,
846,... | [
4,
1304,
26,
1300,
14,
647,
959,
845,
8315,
13,
1644,
13,
1780,
22528,
26,
1167,
26,
709,
58,
519,
456,
588,
2672,
624,
199,
199,
363,
2502,
363,
275,
298,
51,
455,
820,
10972,
665,
1014,
921,
1058,
8122,
316,
590,
14,
846,
3133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zieckey/sdhash | sdhash-ui/cherrypy/test/test_caching.py | 36 | 13042 | import datetime
import gzip
from itertools import count
import os
curdir = os.path.join(os.getcwd(), os.path.dirname(__file__))
import sys
import threading
import time
import urllib
import cherrypy
from cherrypy._cpcompat import next, ntob, quote, xrange
from cherrypy.lib import httputil
gif_bytes = ntob('GIF89a\x01\... | apache-2.0 | [
646,
2197,
199,
646,
11756,
199,
504,
7975,
492,
2338,
199,
646,
747,
199,
15594,
275,
747,
14,
515,
14,
904,
8,
736,
14,
9458,
1062,
747,
14,
515,
14,
3475,
3460,
493,
8964,
199,
646,
984,
199,
646,
5796,
199,
646,
900,
199,
64... | [
2197,
199,
646,
11756,
199,
504,
7975,
492,
2338,
199,
646,
747,
199,
15594,
275,
747,
14,
515,
14,
904,
8,
736,
14,
9458,
1062,
747,
14,
515,
14,
3475,
3460,
493,
8964,
199,
646,
984,
199,
646,
5796,
199,
646,
900,
199,
646,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
opticron/asterisk-testsuite-temporary | contrib/scripts/rlmi_demo.py | 5 | 3166 | #!/usr/bin/env python
"""Demonstration of parsing and printing RLMI XML document.
This script is meant to demonstrate how, given an RLMI XML document, one can use
the pyxb-generated rlmi module to parse the XML document into easy-to peruse
objects. The XML document used in this demo is from RFC 4662, section 5.1.
Thi... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
624,
872,
2106,
270,
1754,
402,
6057,
436,
16116,
820,
44,
10709,
4692,
2213,
14,
199,
199,
2765,
2884,
365,
18329,
370,
23789,
18161,
4212,
12,
1627,
376,
820,
44,
10709,
4692,
2213,
12,
1... | [
2647,
15,
1393,
15,
1813,
2366,
199,
624,
872,
2106,
270,
1754,
402,
6057,
436,
16116,
820,
44,
10709,
4692,
2213,
14,
199,
199,
2765,
2884,
365,
18329,
370,
23789,
18161,
4212,
12,
1627,
376,
820,
44,
10709,
4692,
2213,
12,
1373,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tavendo/AutobahnPython | autobahn/twisted/test/test_application_runner.py | 3 | 5064 | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Crossbar.io Technologies GmbH
#
# 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 ... | mit | [
11490,
199,
3,
199,
3,
710,
10697,
844,
334,
13965,
9,
199,
3,
199,
3,
1898,
334,
67,
9,
28965,
1700,
14,
2308,
19215,
23428,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
282,
1331,
... | [
199,
3,
199,
3,
710,
10697,
844,
334,
13965,
9,
199,
3,
199,
3,
1898,
334,
67,
9,
28965,
1700,
14,
2308,
19215,
23428,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
12408,
282,
1331,
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... |
kretusmaximus/MicroFTP.py | microftp/common_view.py | 1 | 2633 | # -*- coding: utf-8 -*-
import Tkinter
import tkFont
class Window(Tkinter.Tk):
def __init__(self, parent):
Tkinter.Tk.__init__(self,parent)
self.parent = parent
def initialize(self):
pass
class Listbox(Tkinter.Listbox):
def autowidth(self, maxwidth):
f = tkFont.Font(font... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
16826,
199,
646,
10157,
6986,
421,
199,
533,
15689,
8,
15189,
1058,
14,
15189,
304,
272,
347,
636,
826,
721,
277,
12,
1676,
304,
267,
16826,
14,
15189,
855,
826,
721,
277,
12,
1708,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
16826,
199,
646,
10157,
6986,
421,
199,
533,
15689,
8,
15189,
1058,
14,
15189,
304,
272,
347,
636,
826,
721,
277,
12,
1676,
304,
267,
16826,
14,
15189,
855,
826,
721,
277,
12,
1708,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mm112287/2015cda-24 | static/Brython3.1.1-20150328-091302/Lib/os.py | 635 | 35582 | r"""OS routines for Mac, NT, or Posix depending on what system we're on.
This exports:
- all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc.
- os.path is either posixpath or ntpath
- os.name is either 'posix', 'nt', 'os2' or 'ce'.
- os.curdir is a string representing the current directory ('.' or... | gpl-3.0 | [
82,
624,
3100,
14975,
367,
10444,
12,
23350,
12,
503,
4376,
4174,
10298,
641,
4052,
2656,
781,
3984,
641,
14,
199,
199,
2765,
22609,
26,
523,
446,
1006,
3423,
687,
10694,
12,
13377,
12,
747,
18,
12,
503,
10142,
12,
325,
14,
71,
14... | [
624,
3100,
14975,
367,
10444,
12,
23350,
12,
503,
4376,
4174,
10298,
641,
4052,
2656,
781,
3984,
641,
14,
199,
199,
2765,
22609,
26,
523,
446,
1006,
3423,
687,
10694,
12,
13377,
12,
747,
18,
12,
503,
10142,
12,
325,
14,
71,
14,
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... |
sanjeevtripurari/hue | desktop/core/ext-py/python-ldap-2.3.13/Demo/Lib/ldap/async/deltree.py | 40 | 2633 | import ldap,ldap.async
class DeleteLeafs(ldap.async.AsyncSearchHandler):
"""
Class for deleting entries which are results of a search.
DNs of Non-leaf entries are collected in DeleteLeafs.nonLeafEntries.
"""
_entryResultTypes = ldap.async._entryResultTypes
def __init__(self,l):
ldap.async.AsyncSear... | apache-2.0 | [
646,
13727,
12,
9642,
14,
4146,
199,
199,
533,
8496,
2553,
65,
2319,
8,
9642,
14,
4146,
14,
12807,
5278,
2461,
304,
523,
408,
523,
8089,
367,
13794,
4811,
1314,
787,
2058,
402,
282,
2754,
14,
12244,
577,
2438,
402,
10172,
13,
8914,
... | [
13727,
12,
9642,
14,
4146,
199,
199,
533,
8496,
2553,
65,
2319,
8,
9642,
14,
4146,
14,
12807,
5278,
2461,
304,
523,
408,
523,
8089,
367,
13794,
4811,
1314,
787,
2058,
402,
282,
2754,
14,
12244,
577,
2438,
402,
10172,
13,
8914,
4811,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wfxiang08/changes | tests/changes/api/serializer/models/test_source.py | 2 | 1686 | from datetime import datetime
from changes.api.serializer import serialize
from changes.config import db
from changes.models import Source
from changes.testutils import TestCase
class SourceCrumblerTest(TestCase):
def test_simple(self):
repo = self.create_repo()
revision = self.create_revision(re... | apache-2.0 | [
504,
2197,
492,
2197,
199,
199,
504,
4493,
14,
1246,
14,
8349,
492,
8437,
199,
504,
4493,
14,
888,
492,
1592,
199,
504,
4493,
14,
992,
492,
5800,
199,
504,
4493,
14,
396,
1208,
492,
7640,
421,
199,
533,
5800,
17345,
453,
830,
82,
... | [
2197,
492,
2197,
199,
199,
504,
4493,
14,
1246,
14,
8349,
492,
8437,
199,
504,
4493,
14,
888,
492,
1592,
199,
504,
4493,
14,
992,
492,
5800,
199,
504,
4493,
14,
396,
1208,
492,
7640,
421,
199,
533,
5800,
17345,
453,
830,
82,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mariosky/evo-drawings | venv/lib/python2.7/site-packages/django/contrib/admindocs/middleware.py | 327 | 1197 | from django.conf import settings
from django import http
class XViewMiddleware(object):
"""
Adds an X-View header to internal HEAD requests -- used by the documentation system.
"""
def process_view(self, request, view_func, view_args, view_kwargs):
"""
If the request method is HEAD and ... | agpl-3.0 | [
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
492,
1455,
199,
199,
533,
1323,
24060,
8,
785,
304,
272,
408,
272,
15747,
376,
1323,
13,
2768,
1406,
370,
5007,
13053,
4145,
1553,
1202,
701,
314,
3794,
2656,
14,
272,
408,
272,
347,
... | [
1639,
14,
2190,
492,
2202,
199,
504,
1639,
492,
1455,
199,
199,
533,
1323,
24060,
8,
785,
304,
272,
408,
272,
15747,
376,
1323,
13,
2768,
1406,
370,
5007,
13053,
4145,
1553,
1202,
701,
314,
3794,
2656,
14,
272,
408,
272,
347,
2112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
distributed-system-analysis/pbench | server/bin/pbench-server-prep-shim-002.py | 1 | 12572 | #!/usr/bin/env python3
# -*- mode: python -*-
# This script is used to prepare the tarballs that a version 002 client
# submits for further processing. It copies the tarballs and their MD5
# sums to the archive (after checking) and sets the state links, so
# that the dispatch script will pick them up and get the ball
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
1882,
818,
26,
2366,
1882,
199,
199,
3,
961,
2884,
365,
1202,
370,
9275,
314,
17641,
83,
626,
282,
1015,
378,
996,
1890,
199,
3,
11482,
83,
367,
9848,
6661,
14,
2779,
6866,
314,
... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
3,
1882,
818,
26,
2366,
1882,
199,
199,
3,
961,
2884,
365,
1202,
370,
9275,
314,
17641,
83,
626,
282,
1015,
378,
996,
1890,
199,
3,
11482,
83,
367,
9848,
6661,
14,
2779,
6866,
314,
17641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jart/tensorflow | tensorflow/contrib/cloud/python/ops/bigquery_reader_ops_test.py | 75 | 9668 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | [
3,
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
... | [
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Donkyhotay/MoonPy | zope/rdb/tests/test_gadflyphantom.py | 1 | 2917 | ##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | gpl-3.0 | [
4605,
199,
3,
199,
3,
1898,
334,
67,
9,
14790,
3107,
13458,
11098,
436,
23212,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
961,
2032,
365,
5420,
370,
314,
1727,
1356,
402,
314,
3107,
13458,
1684,
844,
12,
199,
3,
3394,
499... | [
199,
3,
199,
3,
1898,
334,
67,
9,
14790,
3107,
13458,
11098,
436,
23212,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
961,
2032,
365,
5420,
370,
314,
1727,
1356,
402,
314,
3107,
13458,
1684,
844,
12,
199,
3,
3394,
499,
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... |
kaushik94/sympy | sympy/integrals/tests/test_integrals.py | 2 | 59772 | from sympy import (
Abs, acos, acosh, Add, And, asin, asinh, atan, Ci, cos, sinh, cosh,
tanh, Derivative, diff, DiracDelta, E, Ei, Eq, exp, erf, erfc, erfi,
EulerGamma, Expr, factor, Function, gamma, gammasimp, I, Idx, im, IndexedBase,
integrate, Interval, Lambda, LambertW, log, Matrix, Max, meijerg, Mi... | bsd-3-clause | [
504,
5840,
492,
334,
272,
20319,
12,
282,
5197,
12,
282,
15106,
12,
2654,
12,
6061,
12,
465,
262,
12,
465,
17695,
12,
31393,
12,
445,
73,
12,
9794,
12,
9829,
72,
12,
512,
609,
12,
272,
20162,
72,
12,
18674,
27418,
12,
3915,
12,
... | [
5840,
492,
334,
272,
20319,
12,
282,
5197,
12,
282,
15106,
12,
2654,
12,
6061,
12,
465,
262,
12,
465,
17695,
12,
31393,
12,
445,
73,
12,
9794,
12,
9829,
72,
12,
512,
609,
12,
272,
20162,
72,
12,
18674,
27418,
12,
3915,
12,
3757,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/tests/tslibs/test_libfrequencies.py | 2 | 2889 | import pytest
from pandas._libs.tslibs.frequencies import (
INVALID_FREQ_ERR_MSG,
_period_str_to_code,
get_rule_month,
is_subperiod,
is_superperiod,
)
from pandas.tseries import offsets
@pytest.mark.parametrize(
"obj,expected",
[
("W", "DEC"),
(offsets.Week(), "DEC"),
... | apache-2.0 | [
646,
4613,
199,
199,
504,
10634,
423,
8450,
14,
1086,
8450,
14,
70,
17085,
492,
334,
272,
29901,
63,
38,
14583,
63,
2666,
63,
9740,
12,
272,
485,
5191,
63,
495,
63,
475,
63,
600,
12,
272,
664,
63,
2200,
63,
4482,
12,
272,
365,
... | [
4613,
199,
199,
504,
10634,
423,
8450,
14,
1086,
8450,
14,
70,
17085,
492,
334,
272,
29901,
63,
38,
14583,
63,
2666,
63,
9740,
12,
272,
485,
5191,
63,
495,
63,
475,
63,
600,
12,
272,
664,
63,
2200,
63,
4482,
12,
272,
365,
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... |
ZeroZeng/RongZeng | Assignment4/ec2-54-201-254-197.us-west-2.compute.amazonaws.com/myproject.py | 2 | 8213 | # coding=utf-8
import os
import json
import requests
import random
from flask import Flask, request, Response
import time
application = Flask(__name__)
# FILL THESE IN WITH YOUR INFO
my_bot_name = 'rong_bot' #e.g. zac_bot
my_slack_username = 'rong' #e.g. zac.wentzell
slack_inbound_url = 'https://hooks.slack.com/s... | mit | [
3,
2803,
29,
1624,
13,
24,
199,
646,
747,
199,
646,
2022,
199,
646,
4145,
199,
646,
2196,
199,
199,
504,
7209,
492,
16704,
12,
1056,
12,
7232,
199,
646,
900,
421,
199,
3578,
275,
16704,
3460,
354,
3368,
199,
199,
3,
481,
14961,
... | [
2803,
29,
1624,
13,
24,
199,
646,
747,
199,
646,
2022,
199,
646,
4145,
199,
646,
2196,
199,
199,
504,
7209,
492,
16704,
12,
1056,
12,
7232,
199,
646,
900,
421,
199,
3578,
275,
16704,
3460,
354,
3368,
199,
199,
3,
481,
14961,
4221,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zhuochenKIDD/FrameworkBenchmarks | frameworks/Python/AsyncIO/yocto_http/hello/services/redis.py | 108 | 1447 | from operator import itemgetter
import asyncio
from random import randint
@asyncio.coroutine
def get_random_record(container):
idx = randint(1, 10000)
random_number = yield from container.engines['redis'].get('world:%i' % idx)
return {'Id': idx, 'RandomNumber': random_number}
@asyncio.coroutine
def get_r... | bsd-3-clause | [
504,
4182,
492,
1242,
7416,
199,
646,
16195,
199,
504,
2196,
492,
29722,
421,
199,
32,
19343,
14,
16675,
199,
318,
664,
63,
2355,
63,
3059,
8,
3600,
304,
272,
4280,
275,
29722,
8,
17,
12,
11630,
9,
272,
2196,
63,
1955,
275,
1995,
... | [
4182,
492,
1242,
7416,
199,
646,
16195,
199,
504,
2196,
492,
29722,
421,
199,
32,
19343,
14,
16675,
199,
318,
664,
63,
2355,
63,
3059,
8,
3600,
304,
272,
4280,
275,
29722,
8,
17,
12,
11630,
9,
272,
2196,
63,
1955,
275,
1995,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
noppelmax/boxup_gmailunread | boxup_gmailunread/boxup_gmailunread.py | 2 | 1955 | #!/bin/python
import ConfigParser
import os
import logging
import imaplib
import time
import signal
from boxup_types import Colorcodes
from boxup_types import MatrixData
# Load from config file
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger("boxup_gmailunread")
logger.info("Reading config-file..... | gpl-2.0 | [
3381,
1393,
15,
1548,
199,
199,
646,
14196,
199,
646,
747,
199,
646,
2050,
199,
646,
23646,
773,
199,
646,
900,
199,
646,
4673,
199,
199,
504,
5689,
384,
63,
1313,
492,
11581,
6021,
199,
504,
5689,
384,
63,
1313,
492,
8449,
1451,
... | [
1393,
15,
1548,
199,
199,
646,
14196,
199,
646,
747,
199,
646,
2050,
199,
646,
23646,
773,
199,
646,
900,
199,
646,
4673,
199,
199,
504,
5689,
384,
63,
1313,
492,
11581,
6021,
199,
504,
5689,
384,
63,
1313,
492,
8449,
1451,
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,
1... |
brianwrf/mongo-python-driver | bson/regex.py | 21 | 4266 | # Copyright 2013-2015 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | apache-2.0 | [
3,
1898,
6171,
13,
7806,
28458,
12,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
20... | [
1898,
6171,
13,
7806,
28458,
12,
3277,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
2047,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
susansls/zulip | analytics/lib/counts.py | 5 | 16695 | from django.conf import settings
from django.db import connection, models
from django.db.models import F
from django.utils import timezone
from analytics.models import InstallationCount, RealmCount, \
UserCount, StreamCount, BaseCount, FillState, Anomaly, installation_epoch
from zerver.models import Realm, UserPro... | apache-2.0 | [
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
697,
492,
1950,
12,
1709,
199,
504,
1639,
14,
697,
14,
992,
492,
481,
199,
504,
1639,
14,
1208,
492,
7137,
199,
199,
504,
30159,
14,
992,
492,
26866,
2353,
12,
27715,
2353,
12,
... | [
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
697,
492,
1950,
12,
1709,
199,
504,
1639,
14,
697,
14,
992,
492,
481,
199,
504,
1639,
14,
1208,
492,
7137,
199,
199,
504,
30159,
14,
992,
492,
26866,
2353,
12,
27715,
2353,
12,
971,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
willhardy/django | django/contrib/gis/sitemaps/views.py | 144 | 2365 | from __future__ import unicode_literals
from django.apps import apps
from django.contrib.gis.db.models.fields import GeometryField
from django.contrib.gis.db.models.functions import AsKML, Transform
from django.contrib.gis.shortcuts import render_to_kml, render_to_kmz
from django.core.exceptions import FieldDoesNotExi... | bsd-3-clause | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
5181,
492,
8686,
199,
504,
1639,
14,
2828,
14,
5668,
14,
697,
14,
992,
14,
955,
492,
30490,
199,
504,
1639,
14,
2828,
14,
5668,
14,
697,
14,
992,
14,
5777,
492,
... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
504,
1639,
14,
5181,
492,
8686,
199,
504,
1639,
14,
2828,
14,
5668,
14,
697,
14,
992,
14,
955,
492,
30490,
199,
504,
1639,
14,
2828,
14,
5668,
14,
697,
14,
992,
14,
5777,
492,
3709,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CVML/cvxpy | examples/flows/commodity_flow.py | 12 | 2470 | from cvxpy import *
import create_graph as g
from max_flow import Edge, Node
import pickle
import random as r
import cvxopt
# Multi-commodity flow.
COMMODITIES = 5 # Number of commodities.
r.seed(1)
class MultiEdge(Edge):
""" An undirected, capacity limited edge with multiple commodities. """
def __init__(sel... | gpl-3.0 | [
504,
6277,
88,
647,
492,
627,
199,
646,
1218,
63,
2180,
465,
486,
199,
504,
1390,
63,
1659,
492,
25155,
12,
5013,
199,
646,
5927,
199,
646,
2196,
465,
519,
199,
646,
6277,
88,
2992,
199,
199,
3,
6879,
13,
957,
3729,
369,
6369,
1... | [
6277,
88,
647,
492,
627,
199,
646,
1218,
63,
2180,
465,
486,
199,
504,
1390,
63,
1659,
492,
25155,
12,
5013,
199,
646,
5927,
199,
646,
2196,
465,
519,
199,
646,
6277,
88,
2992,
199,
199,
3,
6879,
13,
957,
3729,
369,
6369,
14,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kingvuplus/gui_test2 | lib/python/Plugins/SystemPlugins/FastScan/plugin.py | 59 | 13191 | # -*- coding: utf-8 -*-
from os import path as os_path, walk as os_walk, unlink as os_unlink
from Plugins.Plugin import PluginDescriptor
from Screens.Screen import Screen
from Screens.MessageBox import MessageBox
from Components.config import config, ConfigSelection, ConfigYesNo, getConfigListEntry, ConfigSubsection,... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
747,
492,
931,
465,
747,
63,
515,
12,
12778,
465,
747,
63,
7757,
12,
17002,
465,
747,
63,
7162,
199,
199,
504,
30317,
14,
5061,
492,
11349,
4311,
199,
199,
504,
29372,
14,
9616,
4... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
747,
492,
931,
465,
747,
63,
515,
12,
12778,
465,
747,
63,
7757,
12,
17002,
465,
747,
63,
7162,
199,
199,
504,
30317,
14,
5061,
492,
11349,
4311,
199,
199,
504,
29372,
14,
9616,
492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
renyi533/tensorflow | tensorflow/python/estimator/exporter.py | 41 | 1274 | # Copyright 2018 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,
14894,
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,
14894,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shams169/pythonProject | ContactsDir/env/lib/python3.6/site-packages/click/types.py | 196 | 18864 | import os
import stat
from ._compat import open_stream, text_type, filename_to_ui, \
get_filesystem_encoding, get_streerror, _get_argv_encoding, PY2
from .exceptions import BadParameter
from .utils import safecall, LazyFile
class ParamType(object):
"""Helper for converting values through types. The followin... | mit | [
646,
747,
199,
646,
5672,
199,
199,
504,
13653,
5819,
492,
1551,
63,
1745,
12,
1318,
63,
466,
12,
1788,
63,
475,
63,
1907,
12,
971,
272,
664,
63,
11381,
63,
2991,
12,
664,
63,
270,
264,
705,
12,
485,
362,
63,
3020,
63,
2991,
1... | [
747,
199,
646,
5672,
199,
199,
504,
13653,
5819,
492,
1551,
63,
1745,
12,
1318,
63,
466,
12,
1788,
63,
475,
63,
1907,
12,
971,
272,
664,
63,
11381,
63,
2991,
12,
664,
63,
270,
264,
705,
12,
485,
362,
63,
3020,
63,
2991,
12,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CFDEMproject/LAMMPS | tools/eff/bohr2ang.py | 57 | 2023 | Info="""
Module name: bohr2ang.py
Author: (c) Andres Jaramillo-Botero
California Institute of Technology
ajaramil@caltech.edu
Project: pEFF
Version: August 2009
Usage: python bohr2ang.py
>>Name of data file (bohr): [datafile]
Results:
creates a datafile with extension .ang in real units
"""
import os
currdir=os.g... | gpl-2.0 | [
2354,
11916,
199,
2377,
536,
26,
1234,
6271,
18,
621,
14,
647,
9948,
199,
5949,
26,
334,
67,
9,
6061,
470,
1603,
285,
455,
382,
320,
13,
34,
1583,
293,
199,
6584,
73,
509,
22042,
1010,
25585,
402,
21580,
199,
65,
7338,
455,
382,
... | [
11916,
199,
2377,
536,
26,
1234,
6271,
18,
621,
14,
647,
9948,
199,
5949,
26,
334,
67,
9,
6061,
470,
1603,
285,
455,
382,
320,
13,
34,
1583,
293,
199,
6584,
73,
509,
22042,
1010,
25585,
402,
21580,
199,
65,
7338,
455,
382,
32,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MERKAT0R/gmail-backup-com | svc/scripting/conversions.py | 26 | 4057 | # Copyright (C) 2008 Jan Svec and Filip Jurcicek
#
# YOU USE THIS TOOL ON YOUR OWN RISK!
#
# email: info@gmail-backup.com
#
#
# Disclaimer of Warranty
# ----------------------
#
# Unless required by applicable law or agreed to in writing, licensor provides
# this tool (and each contributor provides its contributio... | gpl-3.0 | [
3,
1898,
334,
35,
9,
9079,
17474,
428,
6046,
436,
481,
1638,
80,
1603,
300,
559,
301,
75,
199,
3,
221,
199,
3,
1488,
22050,
4815,
5749,
2296,
2228,
5258,
1488,
11237,
593,
3705,
820,
22481,
1,
199,
3,
221,
199,
3,
3031,
26,
2256... | [
1898,
334,
35,
9,
9079,
17474,
428,
6046,
436,
481,
1638,
80,
1603,
300,
559,
301,
75,
199,
3,
221,
199,
3,
1488,
22050,
4815,
5749,
2296,
2228,
5258,
1488,
11237,
593,
3705,
820,
22481,
1,
199,
3,
221,
199,
3,
3031,
26,
2256,
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... |
ollie314/kuma | kuma/users/tests/test_tasks.py | 3 | 6195 | import mock
from waffle.models import Switch
from django.conf import settings
from django.contrib import messages as django_messages
from django.core import mail
from django.test import RequestFactory
from allauth.account.models import EmailAddress
from allauth.account.signals import user_signed_up
from kuma.users.t... | mpl-2.0 | [
646,
1683,
199,
504,
336,
9181,
274,
14,
992,
492,
17711,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
492,
3788,
465,
1639,
63,
3431,
199,
504,
1639,
14,
1018,
492,
6016,
199,
504,
1639,
14,
396,
492,
18638... | [
1683,
199,
504,
336,
9181,
274,
14,
992,
492,
17711,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
2828,
492,
3788,
465,
1639,
63,
3431,
199,
504,
1639,
14,
1018,
492,
6016,
199,
504,
1639,
14,
396,
492,
18638,
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... |
Jusedawg/SickRage | lib/js2py/prototypes/jsregexp.py | 54 | 1252 |
class RegExpPrototype:
def toString():
flags = u''
if this.glob:
flags += u'g'
if this.ignore_case:
flags += u'i'
if this.multiline:
flags += u'm'
v = this.value if this.value else '(?:)'
return u'/%s/'%v + flags
def test(stri... | gpl-3.0 | [
199,
533,
5044,
4527,
25565,
26,
272,
347,
370,
1558,
837,
267,
3285,
275,
399,
891,
267,
340,
642,
14,
6463,
26,
288,
3285,
847,
399,
7,
71,
7,
267,
340,
642,
14,
4247,
63,
2546,
26,
288,
3285,
847,
399,
7,
73,
7,
267,
340,
... | [
533,
5044,
4527,
25565,
26,
272,
347,
370,
1558,
837,
267,
3285,
275,
399,
891,
267,
340,
642,
14,
6463,
26,
288,
3285,
847,
399,
7,
71,
7,
267,
340,
642,
14,
4247,
63,
2546,
26,
288,
3285,
847,
399,
7,
73,
7,
267,
340,
642,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ekalosak/numpy | numpy/core/tests/test_extint128.py | 94 | 5759 | from __future__ import division, absolute_import, print_function
import sys
import itertools
import contextlib
import operator
import numpy as np
import numpy.core.multiarray_tests as mt
from numpy.compat import long
from numpy.testing import assert_raises, assert_equal
INT64_MAX = np.iinfo(np.int64).max
INT64_MIN... | bsd-3-clause | [
504,
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
984,
199,
646,
7975,
199,
646,
15502,
199,
646,
4182,
199,
199,
646,
2680,
465,
980,
199,
646,
2680,
14,
1018,
14,
23698,
63,
2219,
465,
19592,
... | [
636,
2443,
363,
492,
4629,
12,
3679,
63,
646,
12,
870,
63,
1593,
199,
199,
646,
984,
199,
646,
7975,
199,
646,
15502,
199,
646,
4182,
199,
199,
646,
2680,
465,
980,
199,
646,
2680,
14,
1018,
14,
23698,
63,
2219,
465,
19592,
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... |
ruo91/letsencrypt | acme/acme/jose/interfaces_test.py | 33 | 3627 | """Tests for acme.jose.interfaces."""
import unittest
class JSONDeSerializableTest(unittest.TestCase):
# pylint: disable=too-many-instance-attributes
def setUp(self):
from acme.jose.interfaces import JSONDeSerializable
# pylint: disable=missing-docstring,invalid-name
class Basic(JSO... | apache-2.0 | [
624,
2925,
367,
32433,
14,
743,
261,
14,
7436,
1041,
199,
646,
2882,
421,
199,
533,
4840,
872,
3571,
14065,
774,
8,
2796,
14,
1746,
304,
272,
327,
4287,
26,
3507,
29,
7354,
13,
3479,
13,
842,
13,
2987,
339,
347,
3613,
8,
277,
30... | [
2925,
367,
32433,
14,
743,
261,
14,
7436,
1041,
199,
646,
2882,
421,
199,
533,
4840,
872,
3571,
14065,
774,
8,
2796,
14,
1746,
304,
272,
327,
4287,
26,
3507,
29,
7354,
13,
3479,
13,
842,
13,
2987,
339,
347,
3613,
8,
277,
304,
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... |
abomyi/django | tests/utils_tests/test_inspect.py | 157 | 1161 | import unittest
from django.utils import inspect
class Person(object):
def no_arguments(self):
return None
def one_argument(self, something):
return something
def just_args(self, *args):
return args
def all_kinds(self, name, address='home', age=25, *args, **kwargs):
... | bsd-3-clause | [
646,
2882,
199,
199,
504,
1639,
14,
1208,
492,
6485,
421,
199,
533,
8028,
8,
785,
304,
272,
347,
949,
63,
4958,
8,
277,
304,
267,
372,
488,
339,
347,
1373,
63,
2094,
8,
277,
12,
6020,
304,
267,
372,
6020,
339,
347,
2951,
63,
5... | [
2882,
199,
199,
504,
1639,
14,
1208,
492,
6485,
421,
199,
533,
8028,
8,
785,
304,
272,
347,
949,
63,
4958,
8,
277,
304,
267,
372,
488,
339,
347,
1373,
63,
2094,
8,
277,
12,
6020,
304,
267,
372,
6020,
339,
347,
2951,
63,
589,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shsingh/ansible | lib/ansible/modules/net_tools/nmcli.py | 9 | 54861 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Chris Long <alcamie@gmail.com> <chlong@redhat.com>
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__met... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
6900,
12,
2799,
5719,
19944,
665,
279,
15176,
1873,
32,
6799,
14,
957,
30,
665,
335,
2809,
32,
17164,
14,
957,
30,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
6900,
12,
2799,
5719,
19944,
665,
279,
15176,
1873,
32,
6799,
14,
957,
30,
665,
335,
2809,
32,
17164,
14,
957,
30,
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... |
yhfudev/docsis3ns3 | bindings/python/ns3modulegen.py | 199 | 6413 |
LOCAL_MODULES = [
#'my_extra_api_definitions',
]
import sys
import os
sys.path.insert(0, sys.argv[2])
from pybindgen import FileCodeSink, write_preamble
from pybindgen.module import MultiSectionFactory
import pybindgen.settings
pybindgen.settings.deprecated_virtuals = False
from ns3modulegen_generated i... | gpl-2.0 | [
199,
7486,
63,
21194,
275,
359,
272,
17384,
1662,
63,
2911,
63,
1246,
63,
15388,
297,
272,
1622,
4388,
199,
646,
984,
199,
646,
747,
199,
199,
1274,
14,
515,
14,
3176,
8,
16,
12,
984,
14,
3020,
59,
18,
566,
199,
199,
504,
1134,
... | [
7486,
63,
21194,
275,
359,
272,
17384,
1662,
63,
2911,
63,
1246,
63,
15388,
297,
272,
1622,
4388,
199,
646,
984,
199,
646,
747,
199,
199,
1274,
14,
515,
14,
3176,
8,
16,
12,
984,
14,
3020,
59,
18,
566,
199,
199,
504,
1134,
31297... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ArcherSys/ArcherSys | Lib/test/testcodec.py | 1 | 3278 | <<<<<<< HEAD
<<<<<<< HEAD
""" Test Codecs (used by test_charmapcodec)
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright 2000 Guido van Rossum.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,e... | mit | [
31275,
8999,
28,
13053,
199,
31275,
8999,
28,
13053,
199,
624,
1379,
5495,
1259,
334,
2972,
701,
511,
63,
13391,
9276,
9,
199,
199,
32329,
701,
603,
9912,
13,
3325,
264,
7005,
32649,
334,
2174,
32,
274,
32649,
14,
957,
680,
199,
199... | [
8999,
28,
13053,
199,
31275,
8999,
28,
13053,
199,
624,
1379,
5495,
1259,
334,
2972,
701,
511,
63,
13391,
9276,
9,
199,
199,
32329,
701,
603,
9912,
13,
3325,
264,
7005,
32649,
334,
2174,
32,
274,
32649,
14,
957,
680,
199,
199,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Just-D/panda3d | direct/src/tkwidgets/AppShell.py | 9 | 22036 | """
AppShell provides a GUI application framework.
This is an adaption of AppShell.py found in Python and Tkinter Programming
by John E. Grayson which is a streamlined adaptation of GuiAppD.py, originally
created by Doug Hellmann (doughellmann@mindspring.com).
"""
__all__ = ['AppShell']
from direct.showbase.DirectObj... | bsd-3-clause | [
624,
199,
2640,
8529,
6571,
282,
17160,
4223,
10059,
14,
199,
2765,
365,
376,
1503,
439,
296,
402,
4693,
8529,
14,
647,
1911,
315,
2018,
436,
16826,
2165,
9258,
199,
991,
17815,
662,
14,
598,
4814,
265,
1314,
365,
282,
2547,
23058,
... | [
199,
2640,
8529,
6571,
282,
17160,
4223,
10059,
14,
199,
2765,
365,
376,
1503,
439,
296,
402,
4693,
8529,
14,
647,
1911,
315,
2018,
436,
16826,
2165,
9258,
199,
991,
17815,
662,
14,
598,
4814,
265,
1314,
365,
282,
2547,
23058,
19520,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kmoocdev2/edx-platform | lms/djangoapps/grades/tests/test_transformer.py | 9 | 18585 | """
Test the behavior of the GradesTransformer
"""
import datetime
import random
from copy import deepcopy
import ddt
import pytz
from lms.djangoapps.course_blocks.api import get_course_blocks
from lms.djangoapps.course_blocks.transformers.tests.helpers import CourseStructureTestCase
from openedx.core.djangoapps.con... | agpl-3.0 | [
624,
199,
774,
314,
5953,
402,
314,
10268,
3424,
19761,
199,
624,
199,
199,
646,
2197,
199,
646,
2196,
199,
504,
1331,
492,
14800,
199,
199,
646,
366,
3583,
199,
646,
15444,
199,
199,
504,
21577,
14,
16432,
14,
1972,
63,
4166,
14,
... | [
199,
774,
314,
5953,
402,
314,
10268,
3424,
19761,
199,
624,
199,
199,
646,
2197,
199,
646,
2196,
199,
504,
1331,
492,
14800,
199,
199,
646,
366,
3583,
199,
646,
15444,
199,
199,
504,
21577,
14,
16432,
14,
1972,
63,
4166,
14,
1246,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kaku289/paparazzi | sw/airborne/test/ahrs/ahrs_utils.py | 86 | 4923 | #! /usr/bin/env python
# Copyright (C) 2011 Antoine Drouin
#
# This file is part of Paparazzi.
#
# Paparazzi 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, or (at your option)
# any later ... | gpl-2.0 | [
3168,
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
221,
1898,
334,
35,
9,
7760,
437,
29680,
1132,
577,
7930,
262,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
510,
439,
17956,
4348,
73,
14,
199,
3,
199,
3,
510,
439,
17956,
... | [
1182,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
3,
221,
1898,
334,
35,
9,
7760,
437,
29680,
1132,
577,
7930,
262,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
510,
439,
17956,
4348,
73,
14,
199,
3,
199,
3,
510,
439,
17956,
4348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
andfoy/margffoy-tuay-server | env/lib/python2.7/site-packages/django/core/management/commands/runfcgi.py | 120 | 1073 | import argparse
import warnings
from django.core.management.base import BaseCommand
from django.utils.deprecation import RemovedInDjango19Warning
class Command(BaseCommand):
help = "Runs this project as a FastCGI application. Requires flup."
def add_arguments(self, parser):
parser.add_argument('args... | gpl-2.0 | [
646,
7534,
199,
646,
3598,
199,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
199,
504,
1639,
14,
1208,
14,
15383,
492,
23687,
1167,
3849,
421,
199,
533,
5817,
8,
25150,
304,
272,
1720,
275,
298,
16291,
642,
2199,
465,
... | [
7534,
199,
646,
3598,
199,
199,
504,
1639,
14,
1018,
14,
8110,
14,
1095,
492,
22239,
199,
504,
1639,
14,
1208,
14,
15383,
492,
23687,
1167,
3849,
421,
199,
533,
5817,
8,
25150,
304,
272,
1720,
275,
298,
16291,
642,
2199,
465,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MarkTseng/django-farmersale | farmersale-env/lib/python2.7/site-packages/django/contrib/gis/geos/prototypes/coordseq.py | 79 | 3118 | from ctypes import c_double, c_int, c_uint, POINTER
from django.contrib.gis.geos.libgeos import GEOM_PTR, CS_PTR
from django.contrib.gis.geos.prototypes.errcheck import last_arg_byref, GEOSException
from django.contrib.gis.geos.prototypes.threadsafe import GEOSFunc
## Error-checking routines specific to coordinate se... | mit | [
504,
5577,
492,
286,
63,
3157,
12,
286,
63,
442,
12,
286,
63,
1635,
12,
6569,
199,
504,
1639,
14,
2828,
14,
5668,
14,
12151,
14,
773,
12151,
492,
8991,
7474,
63,
14528,
12,
17447,
63,
14528,
199,
504,
1639,
14,
2828,
14,
5668,
1... | [
5577,
492,
286,
63,
3157,
12,
286,
63,
442,
12,
286,
63,
1635,
12,
6569,
199,
504,
1639,
14,
2828,
14,
5668,
14,
12151,
14,
773,
12151,
492,
8991,
7474,
63,
14528,
12,
17447,
63,
14528,
199,
504,
1639,
14,
2828,
14,
5668,
14,
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... |
ebrelsford/django-moderation | setup.py | 1 | 1044 | from setuptools import setup, find_packages
import os
version = '0.3.2'
setup(name='django-moderation',
version=version,
description="Generic Django objects moderation application",
long_description=open("README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).r... | bsd-3-clause | [
504,
9116,
492,
3272,
12,
2342,
63,
5154,
199,
646,
747,
199,
199,
1023,
275,
283,
16,
14,
19,
14,
18,
7,
199,
199,
2758,
8,
354,
534,
1176,
13,
632,
1754,
297,
489,
1015,
29,
1023,
12,
489,
1369,
628,
9417,
5634,
2251,
818,
1... | [
9116,
492,
3272,
12,
2342,
63,
5154,
199,
646,
747,
199,
199,
1023,
275,
283,
16,
14,
19,
14,
18,
7,
199,
199,
2758,
8,
354,
534,
1176,
13,
632,
1754,
297,
489,
1015,
29,
1023,
12,
489,
1369,
628,
9417,
5634,
2251,
818,
1754,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
google/skia | infra/bots/recipe_modules/doxygen/resources/generate_and_upload_doxygen.py | 18 | 2385 | #!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Generate Doxygen documentation."""
import datetime
import os
import shutil
import subprocess
import sys
DOXYFILE_BASENAME = 'Do... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
6927,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mydongistiny/external_chromium_org | tools/deep_memory_profiler/accumulate.py | 100 | 9536 | #!/usr/bin/env python
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# A script to accumulate values from the 'dmprof cat' command into CSV or else.
#
# Usage:
# ./accumulate.py -f <format> -t <template... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
6171,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
6171,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5113,
570,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
akx/coffin | tests/test_env.py | 1 | 1798 | """Test construction of the implicitly provided JinjaEnvironment,
in the common.py module.
"""
from coffin.common import get_env
from django.test.utils import override_settings
def test_i18n():
with override_settings(USE_I18N=True):
assert get_env().from_string('{{ _("test") }}').render() == 'test'
cla... | bsd-3-clause | [
624,
774,
14538,
402,
314,
19796,
2741,
17300,
8263,
12,
199,
262,
314,
2863,
14,
647,
859,
14,
199,
624,
199,
199,
504,
512,
556,
262,
14,
2330,
492,
664,
63,
1813,
199,
504,
1639,
14,
396,
14,
1208,
492,
4278,
63,
1751,
421,
1... | [
774,
14538,
402,
314,
19796,
2741,
17300,
8263,
12,
199,
262,
314,
2863,
14,
647,
859,
14,
199,
624,
199,
199,
504,
512,
556,
262,
14,
2330,
492,
664,
63,
1813,
199,
504,
1639,
14,
396,
14,
1208,
492,
4278,
63,
1751,
421,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.