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 |
|---|---|---|---|---|---|---|---|---|
Jorge-Rodriguez/ansible | test/units/modules/network/nos/test_nos_facts.py | 30 | 2127 | #
# (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 later version.
#
# Ans... | gpl-3.0 | [
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,
199,
3,
652,
1334,
314,
2895,
402... | [
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,
199,
3,
652,
1334,
314,
2895,
402,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nisse3000/pymatgen | pymatgen/analysis/tests/test_transition_state.py | 4 | 3285 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import os
import unittest
import warnings
from pymatgen.util.testing import PymatgenTest
from pymatgen.analysis.transition_state import NEBAnalysis
import json... | mit | [
3,
2803,
26,
2774,
13,
24,
199,
3,
1898,
334,
67,
9,
1611,
30649,
15290,
11682,
14,
199,
3,
17484,
1334,
314,
2895,
402,
314,
10697,
844,
14,
199,
199,
504,
636,
2443,
363,
492,
4629,
12,
2649,
63,
5955,
199,
199,
646,
747,
199,... | [
2803,
26,
2774,
13,
24,
199,
3,
1898,
334,
67,
9,
1611,
30649,
15290,
11682,
14,
199,
3,
17484,
1334,
314,
2895,
402,
314,
10697,
844,
14,
199,
199,
504,
636,
2443,
363,
492,
4629,
12,
2649,
63,
5955,
199,
199,
646,
747,
199,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
osmanbaskaya/formality-classifier-cnn | build_model.py | 2 | 1627 | import sys
import data
import codecs
import cPickle
import os
from model import create_logistic_model, create_regression_model, train_model
fn = sys.argv[1]
model_output_dir = sys.argv[2]
problem_type = sys.argv[3]
use_pretrained_embeddings = True if sys.argv[4].lower() == 'true' else False
print >> sys.stderr, fn, ... | mit | [
646,
984,
199,
646,
666,
199,
646,
6010,
199,
646,
17572,
199,
646,
747,
199,
504,
1402,
492,
1218,
63,
23452,
63,
1238,
12,
1218,
63,
12513,
63,
1238,
12,
3560,
63,
1238,
421,
199,
2324,
275,
984,
14,
3020,
59,
17,
61,
199,
123... | [
984,
199,
646,
666,
199,
646,
6010,
199,
646,
17572,
199,
646,
747,
199,
504,
1402,
492,
1218,
63,
23452,
63,
1238,
12,
1218,
63,
12513,
63,
1238,
12,
3560,
63,
1238,
421,
199,
2324,
275,
984,
14,
3020,
59,
17,
61,
199,
1238,
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... |
a1d3s/linux-bpi | tools/perf/scripts/python/netdev-times.py | 1544 | 15191 | # 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... |
sadanandb/pmt | src/context/client/create_set_asset.py | 6 | 2651 | ###########################################################
#
# Copyright (c) 2005, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permi... | epl-1.0 | [
26207,
5680,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
12,
23150,
387,
87,
21580,
199,
3,
9326,
2900,
5924,
5702,
199,
3,
199,
3,
3611,
20076,
775,
4392,
1621,
18623,
14,
221,
961,
2032,
365,
557,
1359,
386,
695,
370,
199,
3,
231... | [
5680,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
12,
23150,
387,
87,
21580,
199,
3,
9326,
2900,
5924,
5702,
199,
3,
199,
3,
3611,
20076,
775,
4392,
1621,
18623,
14,
221,
961,
2032,
365,
557,
1359,
386,
695,
370,
199,
3,
23150,
387... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
chirilo/phantomjs | src/qt/qtwebkit/Source/ThirdParty/gtest/scripts/gen_gtest_pred_impl.py | 294 | 21993 | #!/usr/bin/env python
#
# Copyright 2006, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8315,
12,
4475,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
8315,
12,
4475,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tesla-Redux/android_external_skia | tools/skpdiff/generate_pmetric_tables.py | 179 | 4156 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
from math import *
COPYRIGHT = '''/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/'''
HELP = '// To regenerate SkPMetricUtil_generated.h, si... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
3473,
492,
627,
421,
199,
32324,
5716,
275,
1449,
6331,
199,
627,
1898,
6171,
4475,
3277,
14,... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
3473,
492,
627,
421,
199,
32324,
5716,
275,
1449,
6331,
199,
627,
1898,
6171,
4475,
3277,
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... |
vmindru/ansible | lib/ansible/modules/cloud/vmware/vmware_host_package_facts.py | 47 | 4254 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata... | 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,
14894,
12,
8351,
5812,
6532,
386,
1804,
305,
300,
271,
665,
1151,
305,
300,
271,
32,
17164,
14,
957,
30,
199,
3,
16... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
14894,
12,
8351,
5812,
6532,
386,
1804,
305,
300,
271,
665,
1151,
305,
300,
271,
32,
17164,
14,
957,
30,
199,
3,
1664,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
remoteur/ospurge | ospurge/ospurge.py | 2 | 34513 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# This software is released under the MIT License.
#
# Copyright (c) 2014 Cloudwatt
#
# 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... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
2032,
365,
14286,
1334,
314,
10697,
844,
14,
199,
3,
199,
3,
1898,
334,
67,
9,
6927,
8142,
87,
6796,
199,
3,
199,
3,
8779,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
2032,
365,
14286,
1334,
314,
10697,
844,
14,
199,
3,
199,
3,
1898,
334,
67,
9,
6927,
8142,
87,
6796,
199,
3,
199,
3,
8779,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
samklr/mesos-cli | tests/integration/test_completion.py | 2 | 2442 | # 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... |
mnahm5/django-estore | Lib/site-packages/awscli/customizations/configure/configure.py | 1 | 5970 | # Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | mit | [
3,
1898,
7800,
14347,
14,
957,
12,
3277,
14,
503,
2399,
29172,
2335,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3471,
2047,
199,
3,
1443,
440,
675,
642,
570... | [
1898,
7800,
14347,
14,
957,
12,
3277,
14,
503,
2399,
29172,
2335,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3471,
2047,
199,
3,
1443,
440,
675,
642,
570,
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... |
mihirskulkarni/Marathi_entropy | vishwakosh_book.py | 1 | 2497 | """This file downloads a particular volume of Marathi Vishwakosh (https://marathivishwakosh.maharashtra.gov.in/) and saves the pages spread across twenty files using a modulo of 20 to the number of Vishkosh page entry.
Run using 'python vishwkosh_book.py volume' from terminal where volume is the Volume of Vishwakosh y... | mit | [
624,
2765,
570,
28242,
282,
6770,
3301,
402,
16794,
1619,
73,
812,
2453,
758,
7697,
609,
334,
2859,
921,
4584,
1619,
1003,
2453,
758,
7697,
609,
14,
391,
8210,
305,
517,
345,
14,
16294,
14,
262,
24793,
436,
23050,
314,
6497,
308,
89... | [
2765,
570,
28242,
282,
6770,
3301,
402,
16794,
1619,
73,
812,
2453,
758,
7697,
609,
334,
2859,
921,
4584,
1619,
1003,
2453,
758,
7697,
609,
14,
391,
8210,
305,
517,
345,
14,
16294,
14,
262,
24793,
436,
23050,
314,
6497,
308,
8984,
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... |
ProfessorX/Config | .PyCharm30/system/python_stubs/-1247972723/gtk/_gtk/Button.py | 1 | 10341 | # encoding: utf-8
# module gtk._gtk
# from /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/_gtk.so
# by generator 1.135
# no doc
# imports
import atk as __atk
import gio as __gio
import gobject as __gobject
import gobject._gobject as __gobject__gobject
from Bin import Bin
from Activatable import Activatable
class But... | gpl-2.0 | [
3,
2644,
26,
2774,
13,
24,
199,
3,
859,
8116,
423,
12275,
199,
3,
687,
1182,
2647,
15,
773,
15,
1548,
18,
14,
23,
15,
2686,
13,
5154,
15,
12275,
13,
18,
14,
16,
15,
12275,
15607,
12275,
14,
1152,
199,
3,
701,
4306,
413,
14,
... | [
2644,
26,
2774,
13,
24,
199,
3,
859,
8116,
423,
12275,
199,
3,
687,
1182,
2647,
15,
773,
15,
1548,
18,
14,
23,
15,
2686,
13,
5154,
15,
12275,
13,
18,
14,
16,
15,
12275,
15607,
12275,
14,
1152,
199,
3,
701,
4306,
413,
14,
8312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nerith/servo | tests/wpt/web-platform-tests/tools/pywebsocket/src/test/test_dispatch.py | 488 | 13127 | #!/usr/bin/env python
#
# Copyright 2011, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | mpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7760,
12,
4475,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
1898,
7760,
12,
4475,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
googleapis/oauth2client | tests/contrib/test_sqlalchemy.py | 21 | 4827 | # Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | [
3,
1898,
7800,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
... | [
1898,
7800,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
notmatthancock/notmatthancock.github.io | code/py/region_growing/test_rg_c_nbhds.py | 1 | 1325 | import numpy as np
import time
import region_growing_python as rgp
import region_growing as rgc
from mayavi import mlab
nx = 61; ny = 51; nz = 71;
tx = np.linspace(-3,3,nx)
ty = np.linspace(-3,3,ny)
tz = np.linspace(-3,3,nz)
x,y,z = np.meshgrid(tx,ty,tz)
w = x**4 - 5*x**2 + y**4 - 5*y**2 + z**4 - 5*z**2
vol = -np.... | mit | [
646,
2680,
465,
980,
199,
646,
900,
199,
646,
4897,
63,
22890,
316,
63,
1548,
465,
519,
4927,
199,
646,
4897,
63,
22890,
316,
465,
519,
9493,
199,
504,
1443,
7194,
492,
333,
5561,
199,
199,
7343,
275,
17017,
27,
25758,
275,
8026,
... | [
2680,
465,
980,
199,
646,
900,
199,
646,
4897,
63,
22890,
316,
63,
1548,
465,
519,
4927,
199,
646,
4897,
63,
22890,
316,
465,
519,
9493,
199,
504,
1443,
7194,
492,
333,
5561,
199,
199,
7343,
275,
17017,
27,
25758,
275,
8026,
27,
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... |
wpoely86/vsc-base | lib/vsc/utils/docs.py | 2 | 2359 | # #
# Copyright 2015-2015 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | lgpl-2.1 | [
3,
327,
199,
3,
1898,
6900,
13,
7806,
598,
72,
484,
15904,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
373,
551,
13,
1095,
12,
199,
3,
20657,
2737,
701,
314,
869,
4222,
8099,
402,
598,
72,
484,
15904,
334,
1014,
921,
1518,
484,
... | [
327,
199,
3,
1898,
6900,
13,
7806,
598,
72,
484,
15904,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
373,
551,
13,
1095,
12,
199,
3,
20657,
2737,
701,
314,
869,
4222,
8099,
402,
598,
72,
484,
15904,
334,
1014,
921,
1518,
484,
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... |
lingcheng99/Algorithm | UnorderedList.py | 1 | 2979 | """
Implement Unordered List, or linked list, in python.
The building block is the class Node.
Refer to http://interactivepython.org/runestone/static/pythonds/BasicDS/ImplementinganUnorderedListLinkedLists.html
With added functions append(),index(),insert(),pop()
"""
class Node:
def __init__(self,initdata):
... | mit | [
624,
199,
26924,
1910,
8235,
3820,
12,
503,
10632,
769,
12,
315,
2366,
14,
199,
1918,
10015,
1853,
365,
314,
1021,
5013,
14,
199,
497,
2412,
370,
1455,
921,
13543,
1548,
14,
1308,
15,
1065,
597,
368,
15,
1986,
15,
1548,
795,
15,
6... | [
199,
26924,
1910,
8235,
3820,
12,
503,
10632,
769,
12,
315,
2366,
14,
199,
1918,
10015,
1853,
365,
314,
1021,
5013,
14,
199,
497,
2412,
370,
1455,
921,
13543,
1548,
14,
1308,
15,
1065,
597,
368,
15,
1986,
15,
1548,
795,
15,
6845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gangadhar-kadam/lgnlvefrape | frappe/core/report/permitted_documents_for_user/permitted_documents_for_user.py | 32 | 1678 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _, throw
import frappe.utils.user
from frappe.permissions import check_admin_or_system_manager
from frappe.model.db_schema import type_map
def... | mit | [
3,
1898,
334,
67,
9,
6171,
12,
6001,
8144,
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,
199,
646,
6950,
199,
504,
6950,
492,
5501,
7978,... | [
1898,
334,
67,
9,
6171,
12,
6001,
8144,
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,
199,
646,
6950,
199,
504,
6950,
492,
5501,
7978,
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... |
orgito/ansible | lib/ansible/module_utils/common/dict_transformations.py | 27 | 5003 | # -*- coding: utf-8 -*-
# Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import re
from copy import deepcopy
def camel_dict_to_snake_dict(camel_d... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
14894,
12,
2622,
7290,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
9685,
503,
4178,
921,
1544,
14,
3689,
14,
1308,
15,
2383,
15,
1169... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
1898,
26,
334,
67,
9,
14894,
12,
2622,
7290,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
3239,
9685,
503,
4178,
921,
1544,
14,
3689,
14,
1308,
15,
2383,
15,
11692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lastweek/gem5 | tests/configs/rubytest-ruby.py | 10 | 4114 | # Copyright (c) 2006-2007 The Regents of The University of Michigan
# Copyright (c) 2009 Advanced Micro Devices, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source co... | bsd-3-clause | [
3,
1898,
334,
67,
9,
8315,
13,
9488,
710,
5044,
24871,
402,
710,
15904,
402,
603,
1158,
528,
290,
199,
3,
1898,
334,
67,
9,
8937,
32445,
27022,
12272,
83,
12,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
... | [
1898,
334,
67,
9,
8315,
13,
9488,
710,
5044,
24871,
402,
710,
15904,
402,
603,
1158,
528,
290,
199,
3,
1898,
334,
67,
9,
8937,
32445,
27022,
12272,
83,
12,
3277,
14,
199,
3,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JasonDean-1/Script-Python-WebServer | www/transwarp/db.py | 16 | 13973 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Michael Liao'
'''
Database operation module.
'''
import time, uuid, functools, threading, logging
# Dict object:
class Dict(dict):
'''
Simple dict but support access as x.y style.
>>> d1 = Dict()
>>> d1['x'] = 100
>>> d1.x
100
... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
363,
2502,
363,
275,
283,
45,
11781,
491,
18939,
7,
199,
199,
2344,
199,
7243,
3439,
859,
14,
199,
2344,
199,
199,
646,
900,
12,
5377,
1... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
363,
2502,
363,
275,
283,
45,
11781,
491,
18939,
7,
199,
199,
2344,
199,
7243,
3439,
859,
14,
199,
2344,
199,
199,
646,
900,
12,
5377,
12,
914... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CopeX/odoo | addons/point_of_sale/account_bank_statement.py | 313 | 2159 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2008 PC Solutions (<http://pcsol.be>). All Rights Reserved
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
9300,
510,
35,
17991,
8653,
8642,
1014,
921,
80,
1259,
393,
14,
1235,
10121,
2900,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
9300,
510,
35,
17991,
8653,
8642,
1014,
921,
80,
1259,
393,
14,
1235,
10121,
2900,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
avneesh91/django | tests/admin_docs/models.py | 244 | 1941 | """
Models for testing various aspects of the djang.contrib.admindocs app
"""
from django.db import models
class Company(models.Model):
name = models.CharField(max_length=200)
class Group(models.Model):
name = models.CharField(max_length=200)
class Family(models.Model):
last_name = models.CharField(m... | bsd-3-clause | [
624,
199,
20474,
367,
5343,
7750,
17435,
83,
402,
314,
366,
851,
14,
2828,
14,
14464,
688,
14851,
1145,
199,
624,
199,
199,
504,
1639,
14,
697,
492,
1709,
421,
199,
533,
15878,
8,
992,
14,
1685,
304,
272,
536,
275,
1709,
14,
2183,... | [
199,
20474,
367,
5343,
7750,
17435,
83,
402,
314,
366,
851,
14,
2828,
14,
14464,
688,
14851,
1145,
199,
624,
199,
199,
504,
1639,
14,
697,
492,
1709,
421,
199,
533,
15878,
8,
992,
14,
1685,
304,
272,
536,
275,
1709,
14,
2183,
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... |
JioCloud/nova | nova/tests/unit/virt/libvirt/test_dmcrypt.py | 47 | 2461 | # Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory
# 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/l... | apache-2.0 | [
3,
1898,
334,
67,
9,
6927,
710,
7135,
25338,
869,
411,
75,
3617,
15904,
15,
2640,
1857,
24309,
17378,
16871,
31671,
199,
3,
2900,
5924,
5702,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
... | [
1898,
334,
67,
9,
6927,
710,
7135,
25338,
869,
411,
75,
3617,
15904,
15,
2640,
1857,
24309,
17378,
16871,
31671,
199,
3,
2900,
5924,
5702,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
376... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
nicklhy/mxnet | python/mxnet/registry.py | 28 | 4653 | # 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... |
lrowe/experimental.cssselect | src/experimental/cssselect.py | 1 | 32885 | # Copyright (c) 2004 Ian Bicking. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the fo... | bsd-3-clause | [
3,
1898,
334,
67,
9,
8353,
473,
290,
699,
2000,
316,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
... | [
1898,
334,
67,
9,
8353,
473,
290,
699,
2000,
316,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
10114,
436,
675,
315,
1350,
436,
3366,
4513,
12,
543,
503,
1928,
199,
3,
7100,
12,
787,
8211,
2741,
626,
314,
2569,
3704,
787,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
comradealain/project_SM | simulation.py | 1 | 2956 | import random
def generateTBA(rda):
if rda == 0:
return 4
elif rda >= 1 and rda <= 25:
return 1
elif rda >= 26 and rda <= 65:
return 2
elif rda >= 66 and rda <= 85:
return 3
else:
return 4
def ward_1_service_time(rds):
if rds == 0:
return 6
elif rds >= 1 and rds <= 20:
return 4
e... | apache-2.0 | [
646,
2196,
199,
199,
318,
3550,
52,
4134,
8,
82,
983,
304,
199,
198,
692,
519,
983,
508,
378,
26,
507,
198,
1107,
841,
8299,
198,
4164,
519,
983,
2356,
413,
436,
519,
983,
2695,
5661,
26,
6722,
372,
413,
8299,
198,
4164,
519,
98... | [
2196,
199,
199,
318,
3550,
52,
4134,
8,
82,
983,
304,
199,
198,
692,
519,
983,
508,
378,
26,
507,
198,
1107,
841,
8299,
198,
4164,
519,
983,
2356,
413,
436,
519,
983,
2695,
5661,
26,
6722,
372,
413,
8299,
198,
4164,
519,
983,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cschenck/blender_sim | fluid_sim_deps/blender-2.69/2.69/scripts/addons/add_mesh_extra_objects/add_mesh_polysphere.py | 1 | 3014 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | gpl-3.0 | [
3,
22906,
16427,
14629,
5113,
8068,
22906,
199,
3,
199,
3,
221,
961,
2240,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
221,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
199,
3,
221,
465,
3267,
... | [
22906,
16427,
14629,
5113,
8068,
22906,
199,
3,
199,
3,
221,
961,
2240,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
221,
2811,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
199,
3,
221,
465,
3267,
701... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
OptiPop/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... |
jumpstarter-io/glance | glance/api/v2/model/metadef_tag.py | 20 | 1139 | # Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# 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,
334,
67,
9,
6927,
27849,
13,
29471,
15290,
15878,
12,
491,
14,
48,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4... | [
1898,
334,
67,
9,
6927,
27849,
13,
29471,
15290,
15878,
12,
491,
14,
48,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ocadotechnology/boto | boto/s3/cors.py | 240 | 8941 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without ... | mit | [
3,
1898,
334,
67,
9,
6029,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
1898,
334,
67,
9,
6029,
14347,
14,
957,
12,
3277,
14,
503,
2399,
29172,
2335,
14,
221,
2900,
5924,
5702,
199,
3,
199,
3,
8779,
365,
... | [
1898,
334,
67,
9,
6029,
603,
9414,
598,
26272,
1455,
921,
71,
26272,
14,
1308,
15,
199,
3,
1898,
334,
67,
9,
6029,
14347,
14,
957,
12,
3277,
14,
503,
2399,
29172,
2335,
14,
221,
2900,
5924,
5702,
199,
3,
199,
3,
8779,
365,
11882... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
shub0/algorithm-data-structure | python/find_all_anagrams_in_a_string.py | 1 | 1819 | '''
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.
Strings consists of lowercase English letters only and the length of both strings s and p will not be larger than 20,100.
The order of output does not matter.
Example 1:
Input:
s: "cbaebabacd" p: "abc"
Output:
[0, 6]
E... | bsd-3-clause | [
2344,
199,
13735,
282,
1059,
308,
436,
282,
2222,
13,
1667,
1059,
299,
12,
2342,
1006,
314,
1343,
4918,
402,
299,
1159,
376,
643,
345,
706,
315,
308,
14,
199,
199,
12672,
18581,
402,
12141,
20144,
14435,
1454,
436,
314,
2582,
402,
3... | [
199,
13735,
282,
1059,
308,
436,
282,
2222,
13,
1667,
1059,
299,
12,
2342,
1006,
314,
1343,
4918,
402,
299,
1159,
376,
643,
345,
706,
315,
308,
14,
199,
199,
12672,
18581,
402,
12141,
20144,
14435,
1454,
436,
314,
2582,
402,
3865,
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... |
mrb/letsencrypt | letsencrypt/plugins/null.py | 17 | 1439 | """Null plugin."""
import logging
import zope.component
import zope.interface
from letsencrypt import interfaces
from letsencrypt.plugins import common
logger = logging.getLogger(__name__)
class Installer(common.Plugin):
"""Null installer."""
zope.interface.implements(interfaces.IInstaller)
zope.inter... | apache-2.0 | [
624,
8849,
3589,
1041,
199,
646,
2050,
199,
199,
646,
20110,
14,
3173,
199,
646,
20110,
14,
3266,
199,
199,
504,
4691,
31561,
492,
8386,
199,
504,
4691,
31561,
14,
5265,
492,
2863,
421,
199,
2921,
275,
2050,
14,
5572,
3460,
354,
336... | [
8849,
3589,
1041,
199,
646,
2050,
199,
199,
646,
20110,
14,
3173,
199,
646,
20110,
14,
3266,
199,
199,
504,
4691,
31561,
492,
8386,
199,
504,
4691,
31561,
14,
5265,
492,
2863,
421,
199,
2921,
275,
2050,
14,
5572,
3460,
354,
3368,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jondo/shogun | examples/undocumented/python_modular/regression_chaidtree_modular.py | 21 | 1195 | #!/usr/bin/env python
from numpy import array, dtype, int32
# set input attribute as continuous i.e. 2
feattypes = array([2],dtype=int32)
parameter_list = [[500,50,15,0.2,feattypes]]
def regression_chaidtree_modular(num_train=500,num_test=50,x_range=15,noise_var=0.2,ft=feattypes):
try:
from modshogun import RealF... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
504,
2680,
492,
1625,
12,
2152,
12,
1109,
708,
199,
199,
3,
663,
1324,
2225,
465,
19922,
284,
14,
69,
14,
499,
199,
11873,
1313,
275,
1625,
779,
18,
467,
2271,
29,
442,
708,
9,
199,
199... | [
2647,
15,
1393,
15,
1813,
2366,
199,
504,
2680,
492,
1625,
12,
2152,
12,
1109,
708,
199,
199,
3,
663,
1324,
2225,
465,
19922,
284,
14,
69,
14,
499,
199,
11873,
1313,
275,
1625,
779,
18,
467,
2271,
29,
442,
708,
9,
199,
199,
5329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
getvasanth/QtSpeech | festival/speech_tools/wrappers/python/EST_Wave.py | 2 | 7329 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
# This file is compatible with both classic and new-style classes.
from sys import version_info
if version_info >= (... | lgpl-3.0 | [
3,
961,
570,
1990,
5847,
4046,
701,
26480,
334,
1014,
921,
1544,
14,
9676,
14,
1308,
680,
199,
3,
3394,
413,
14,
19,
14,
2167,
199,
3,
199,
3,
4226,
440,
1852,
4493,
370,
642,
570,
7444,
1265,
5715,
4052,
1265,
787,
9689,
306,
8... | [
961,
570,
1990,
5847,
4046,
701,
26480,
334,
1014,
921,
1544,
14,
9676,
14,
1308,
680,
199,
3,
3394,
413,
14,
19,
14,
2167,
199,
3,
199,
3,
4226,
440,
1852,
4493,
370,
642,
570,
7444,
1265,
5715,
4052,
1265,
787,
9689,
306,
8951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kiyukuta/chainer | chainer/datasets/dict_dataset.py | 7 | 1331 | import six
class DictDataset(object):
"""Dataset of a dictionary of datasets.
It combines multiple datasets into one dataset. Each example is represented
by a dictionary mapping a key to an example of the corresponding dataset.
Args:
datasets: Underlying datasets. The keys are used as the k... | mit | [
646,
3816,
421,
199,
533,
7448,
9271,
8,
785,
304,
339,
408,
9271,
402,
282,
2600,
402,
13148,
14,
339,
2779,
5300,
3746,
3663,
13148,
1901,
1373,
4789,
14,
7048,
2893,
365,
11159,
272,
701,
282,
2600,
4412,
282,
790,
370,
376,
2893... | [
3816,
421,
199,
533,
7448,
9271,
8,
785,
304,
339,
408,
9271,
402,
282,
2600,
402,
13148,
14,
339,
2779,
5300,
3746,
3663,
13148,
1901,
1373,
4789,
14,
7048,
2893,
365,
11159,
272,
701,
282,
2600,
4412,
282,
790,
370,
376,
2893,
402... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Vvucinic/Wander | venv_2_7/lib/python2.7/site-packages/pip/_vendor/lockfile/__init__.py | 475 | 9162 | """
lockfile.py - Platform-independent advisory file locks.
Requires Python 2.5 unless you apply 2.4.diff
Locking is done on a per-thread basis instead of a per-process basis.
Usage:
>>> lock = LockFile('somefile')
>>> try:
... lock.acquire()
... except AlreadyLocked:
... print 'somefile', 'is locked already... | artistic-2.0 | [
624,
199,
26204,
14,
647,
446,
16078,
13,
26083,
1503,
5068,
1089,
570,
23340,
14,
199,
199,
18153,
2018,
499,
14,
21,
7444,
1265,
4838,
499,
14,
20,
14,
3028,
199,
6432,
316,
365,
4224,
641,
282,
1126,
13,
2671,
5597,
3140,
402,
... | [
199,
26204,
14,
647,
446,
16078,
13,
26083,
1503,
5068,
1089,
570,
23340,
14,
199,
199,
18153,
2018,
499,
14,
21,
7444,
1265,
4838,
499,
14,
20,
14,
3028,
199,
6432,
316,
365,
4224,
641,
282,
1126,
13,
2671,
5597,
3140,
402,
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... |
redhat-openstack/django | django/conf/locale/sl/formats.py | 200 | 2120 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd. F Y'
TIME_FORMAT = 'H:i:s'
DAT... | bsd-3-clause | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
143... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
1434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jaredks/euler | 011/011.py | 1 | 2013 | from operator import mul
grid = '''
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91
22 31 16 71 51 67 63 89 41 92 36 54 22 40 4... | bsd-3-clause | [
504,
4182,
492,
19207,
199,
199,
3825,
275,
1449,
199,
2036,
12497,
6928,
15997,
10448,
4114,
8733,
6335,
8733,
13098,
28527,
22528,
24937,
14679,
14589,
3144,
5238,
8375,
21358,
19363,
199,
1887,
12260,
8806,
6335,
5557,
19071,
6155,
12699... | [
4182,
492,
19207,
199,
199,
3825,
275,
1449,
199,
2036,
12497,
6928,
15997,
10448,
4114,
8733,
6335,
8733,
13098,
28527,
22528,
24937,
14679,
14589,
3144,
5238,
8375,
21358,
19363,
199,
1887,
12260,
8806,
6335,
5557,
19071,
6155,
12699,
521... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
batxes/4c2vhic | SHH_WT_models/SHH_WT_models_final_output_0.1_-0.1_11000/SHH_WT_models26485.py | 4 | 17581 | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | gpl-3.0 | [
646,
485,
10992,
199,
646,
682,
1036,
345,
199,
893,
26,
523,
492,
682,
1036,
345,
14,
1065,
3110,
199,
2590,
26,
523,
986,
199,
504,
15018,
2042,
492,
3608,
409,
465,
6605,
199,
893,
26,
523,
687,
15018,
2042,
492,
26903,
63,
108... | [
485,
10992,
199,
646,
682,
1036,
345,
199,
893,
26,
523,
492,
682,
1036,
345,
14,
1065,
3110,
199,
2590,
26,
523,
986,
199,
504,
15018,
2042,
492,
3608,
409,
465,
6605,
199,
893,
26,
523,
687,
15018,
2042,
492,
26903,
63,
1084,
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... |
vladnicoara/SDLive-Blog | documentor/libraries/Sphinx-1.1.3-py3.2/sphinx/util/texescape.py | 2 | 2680 | # -*- coding: utf-8 -*-
"""
sphinx.util.texescape
~~~~~~~~~~~~~~~~~~~~~
TeX escaping helper.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
tex_replacements = [
# map TeX special chars
('$', r'\$'),
('%', r'\%'),
('&', ... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
15882,
14,
1974,
14,
3858,
3765,
272,
18294,
2878,
94,
339,
5773,
56,
21375,
5922,
14,
339,
520,
7307,
26,
1898,
10219,
13,
8128,
701,
314,
10229,
8099,
12,
1937,
10610,
14,
27... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
272,
15882,
14,
1974,
14,
3858,
3765,
272,
18294,
2878,
94,
339,
5773,
56,
21375,
5922,
14,
339,
520,
7307,
26,
1898,
10219,
13,
8128,
701,
314,
10229,
8099,
12,
1937,
10610,
14,
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... |
XiaosongWei/chromium-crosswalk | content/browser/devtools/protocol/devtools_protocol_handler_generator.py | 6 | 25134 | #!/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.
import sys
import string
import json
blink_protocol_path = sys.argv[1]
browser_protocol_path = sys.argv[2]
output_cc_path = sys.argv[3... | 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... |
scottdangelo/RemoveVolumeMangerLocks | cinder/api/views/types.py | 28 | 1450 | # Copyright 2012 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | apache-2.0 | [
3,
1898,
6029,
9572,
13002,
12,
3277,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
... | [
1898,
6029,
9572,
13002,
12,
3277,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kenorb-contrib/BitTorrent | twisted/internet/gtk2reactor.py | 2 | 9930 | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
This module provides support for Twisted to interact with the glib/gtk2 mainloop.
In order to use this support, simply do the following::
| from twisted.internet import gtk2reactor
| gtk2reactor.install()
Then use twist... | gpl-3.0 | [
3,
1898,
334,
67,
9,
12521,
13,
15431,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
421,
199,
624,
199,
2765,
859,
6571,
2291,
367,
17078,
370,
17232,
543,
314,
486,
773,
15,
12275,
18,
2446,
3813,
14,
199,
199,
607,... | [
1898,
334,
67,
9,
12521,
13,
15431,
17078,
8449,
26640,
14,
199,
3,
1666,
5113,
367,
2436,
14,
421,
199,
624,
199,
2765,
859,
6571,
2291,
367,
17078,
370,
17232,
543,
314,
486,
773,
15,
12275,
18,
2446,
3813,
14,
199,
199,
607,
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... |
espressopp/espressopp | src/analysis/Energy.py | 1 | 3336 | # Copyright (C) 2012,2013,2016
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of ... | gpl-3.0 | [
3,
221,
1898,
334,
35,
9,
6029,
12,
6965,
12,
9261,
199,
3,
420,
8228,
32427,
346,
1010,
25585,
367,
16869,
2626,
26993,
199,
3,
221,
1898,
334,
35,
9,
9079,
12,
8664,
12,
6542,
12,
8128,
199,
3,
420,
8228,
13,
13375,
346,
13,
... | [
221,
1898,
334,
35,
9,
6029,
12,
6965,
12,
9261,
199,
3,
420,
8228,
32427,
346,
1010,
25585,
367,
16869,
2626,
26993,
199,
3,
221,
1898,
334,
35,
9,
9079,
12,
8664,
12,
6542,
12,
8128,
199,
3,
420,
8228,
13,
13375,
346,
13,
607,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kidaa30/spacewalk | client/rhel/rhnlib/rhn/rpclib.py | 3 | 23949 | #
# This module contains all the RPC-related functions the RHN code uses
#
# Copyright (c) 2005--2015 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTAB... | gpl-2.0 | [
3,
199,
3,
961,
859,
3509,
1006,
314,
11785,
13,
2407,
3423,
314,
820,
23084,
1233,
4440,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
306,
7806,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
961,
2032,
365,
18233,
370,
1265,
1334,
314... | [
199,
3,
961,
859,
3509,
1006,
314,
11785,
13,
2407,
3423,
314,
820,
23084,
1233,
4440,
199,
3,
199,
3,
1898,
334,
67,
9,
11811,
306,
7806,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
961,
2032,
365,
18233,
370,
1265,
1334,
314,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RyanChinSang/ECNG3020-ORSS4SCVI | BETA/TestCode/OpenCV/APP-HaarCasObjDet.py | 1 | 1432 | import cv2
import winsound
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
cap = cv2.VideoCapture(0)
while 1:
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gra... | gpl-3.0 | [
646,
6277,
18,
199,
646,
29431,
1034,
199,
199,
1409,
63,
15377,
275,
6277,
18,
14,
35,
305,
9490,
8508,
360,
2411,
285,
15377,
63,
70,
2641,
502,
276,
7984,
63,
885,
14,
1652,
358,
199,
15240,
63,
15377,
275,
6277,
18,
14,
35,
... | [
6277,
18,
199,
646,
29431,
1034,
199,
199,
1409,
63,
15377,
275,
6277,
18,
14,
35,
305,
9490,
8508,
360,
2411,
285,
15377,
63,
70,
2641,
502,
276,
7984,
63,
885,
14,
1652,
358,
199,
15240,
63,
15377,
275,
6277,
18,
14,
35,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wangxiangyu/horizon | horizon/test/tests/middleware.py | 61 | 2400 | # Copyright 2012 OpenStack Foundation
# 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 requ... | apache-2.0 | [
3,
1898,
6029,
14260,
2752,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,... | [
1898,
6029,
14260,
2752,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
259,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
1265,
1443,
199,
3,
259,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
bulislaw/mbed-os | tools/test/targets/target_test.py | 17 | 1446 | #!/usr/bin/env python
"""
mbed
Copyright (c) 2017-2017 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
624,
199,
333,
6123,
199,
1898,
334,
67,
9,
9708,
13,
10680,
27155,
23954,
421,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
1265,
1443,
440,
675,
6... | [
2647,
15,
1393,
15,
1813,
2366,
199,
624,
199,
333,
6123,
199,
1898,
334,
67,
9,
9708,
13,
10680,
27155,
23954,
421,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
1265,
1443,
440,
675,
642,
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... |
thenewguy/wagtail | wagtail/wagtailsearch/views/queries.py | 6 | 1771 | from django.shortcuts import render
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib.auth.decorators import permission_required
from wagtail.wagtailadmin.modal_workflow import render_modal_workflow
from wagtail.wagtailadmin.forms import SearchForm
from wagtail.wagtailsearch... | bsd-3-clause | [
504,
1639,
14,
17469,
492,
3795,
199,
504,
1639,
14,
1018,
14,
22073,
492,
28006,
8566,
12,
9630,
3276,
12,
10331,
1763,
2493,
2674,
199,
504,
1639,
14,
2828,
14,
1178,
14,
11582,
492,
4983,
63,
2427,
199,
199,
504,
7328,
14,
30874,... | [
1639,
14,
17469,
492,
3795,
199,
504,
1639,
14,
1018,
14,
22073,
492,
28006,
8566,
12,
9630,
3276,
12,
10331,
1763,
2493,
2674,
199,
504,
1639,
14,
2828,
14,
1178,
14,
11582,
492,
4983,
63,
2427,
199,
199,
504,
7328,
14,
30874,
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... |
ludmilamarian/invenio | invenio/utils/memoise.py | 18 | 1488 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2013 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later... | gpl-2.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
6171,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
2... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
961,
570,
365,
1777,
402,
12235,
14,
199,
3,
1898,
334,
35,
9,
6171,
24354,
14,
199,
3,
199,
3,
12235,
365,
2867,
2032,
27,
1265,
883,
3604,
652,
436,
15,
269,
199,
3,
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... |
instantchow/home-assistant | tests/components/sensor/test_template.py | 2 | 3987 | """The test for the Template sensor platform."""
import homeassistant.components.sensor as sensor
from tests.common import get_test_home_assistant
class TestTemplateSensor:
"""Test the Template sensor."""
def setup_method(self, method):
"""Setup things to be run when tests are started."""
se... | mit | [
624,
1918,
511,
367,
314,
5458,
8778,
4298,
1041,
199,
646,
8846,
14,
4608,
14,
8956,
465,
8778,
199,
199,
504,
2295,
14,
2330,
492,
664,
63,
396,
63,
4219,
63,
7310,
421,
199,
533,
1379,
4231,
10160,
26,
272,
408,
774,
314,
5458,... | [
1918,
511,
367,
314,
5458,
8778,
4298,
1041,
199,
646,
8846,
14,
4608,
14,
8956,
465,
8778,
199,
199,
504,
2295,
14,
2330,
492,
664,
63,
396,
63,
4219,
63,
7310,
421,
199,
533,
1379,
4231,
10160,
26,
272,
408,
774,
314,
5458,
8778... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JWarmenhoven/seaborn | seaborn/external/six.py | 1 | 22856 | """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2014 Benjamin Peterson
#
# 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 with... | bsd-3-clause | [
624,
22905,
367,
3575,
1233,
626,
7858,
641,
2018,
499,
436,
650,
624,
199,
199,
3,
1898,
334,
67,
9,
7129,
13,
7280,
26844,
16997,
262,
22912,
834,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
495... | [
22905,
367,
3575,
1233,
626,
7858,
641,
2018,
499,
436,
650,
624,
199,
199,
3,
1898,
334,
67,
9,
7129,
13,
7280,
26844,
16997,
262,
22912,
834,
199,
3,
199,
3,
8779,
365,
11882,
10009,
12,
2867,
402,
11204,
12,
370,
1263,
4954,
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... |
mrunge/horizon | openstack_dashboard/dashboards/project/access_and_security/tabs.py | 7 | 5158 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
# Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use t... | apache-2.0 | [
3,
1898,
6029,
1910,
5703,
24230,
598,
27639,
465,
11159,
701,
314,
199,
3,
30660,
402,
314,
20548,
437,
281,
265,
3844,
7769,
436,
19326,
9516,
4633,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
1898,
6029,
653,
2871,
7586,
... | [
1898,
6029,
1910,
5703,
24230,
598,
27639,
465,
11159,
701,
314,
199,
3,
30660,
402,
314,
20548,
437,
281,
265,
3844,
7769,
436,
19326,
9516,
4633,
14,
199,
3,
2900,
5924,
5702,
14,
199,
3,
199,
3,
1898,
6029,
653,
2871,
7586,
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... |
cytec/SickRage | lib/guessit/rules/processors.py | 22 | 6025 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Processors
"""
from collections import defaultdict
import copy
import six
from rebulk import Rebulk, Rule, CustomRule, POST_PROCESS, PRE_PROCESS, AppendMatch, RemoveMatch
from guessit.rules.common.words import iter_words
from .common.formatters import cleanup
from .co... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
3498,
1384,
199,
624,
199,
504,
5055,
492,
10018,
199,
646,
1331,
199,
199,
646,
3816,
199,
199,
504,
295,
9377,
492,
799,
9377,
12,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
3498,
1384,
199,
624,
199,
504,
5055,
492,
10018,
199,
646,
1331,
199,
199,
646,
3816,
199,
199,
504,
295,
9377,
492,
799,
9377,
12,
11949,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Azure/azure-sdk-for-python | tools/azure-devtools/src/azure_devtools/scenario_tests/base.py | 1 | 8281 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | [
3,
5620,
777,
4559,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
4190,
2556,
14,
199,
3,
5620,
777,
4559,
199,
199,
50... | [
5620,
777,
4559,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
4190,
2556,
14,
199,
3,
5620,
777,
4559,
199,
199,
504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
linhdh/SnakeRepellerOnMbed50 | mbed-os/tools/compliance/ioper_test_target_id.py | 106 | 5090 | """
mbed SDK
Copyright (c) 2011-2015 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | gpl-2.0 | [
624,
199,
3665,
15610,
199,
7384,
334,
67,
9,
7760,
13,
7806,
27155,
23954,
199,
199,
31661,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
13297,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
... | [
199,
3665,
15610,
199,
7384,
334,
67,
9,
7760,
13,
7806,
27155,
23954,
199,
199,
31661,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
13297,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
kevalds51/sympy | sympy/matrices/expressions/tests/test_transpose.py | 71 | 1194 | from sympy.functions import adjoint, conjugate, transpose
from sympy.matrices.expressions import MatrixSymbol, Adjoint, trace, Transpose
from sympy.matrices import eye, Matrix
from sympy import symbols, S
from sympy import refine, Q
n, m, l, k, p = symbols('n m l k p', integer=True)
A = MatrixSymbol('A', n, m)
B = Mat... | bsd-3-clause | [
504,
5840,
14,
5777,
492,
24132,
12,
27246,
12,
16992,
199,
504,
5840,
14,
19032,
14,
15264,
492,
8449,
8169,
12,
4431,
10153,
12,
3307,
12,
6266,
4070,
199,
504,
5840,
14,
19032,
492,
25892,
12,
8449,
199,
504,
5840,
492,
6698,
12,... | [
5840,
14,
5777,
492,
24132,
12,
27246,
12,
16992,
199,
504,
5840,
14,
19032,
14,
15264,
492,
8449,
8169,
12,
4431,
10153,
12,
3307,
12,
6266,
4070,
199,
504,
5840,
14,
19032,
492,
25892,
12,
8449,
199,
504,
5840,
492,
6698,
12,
428,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mezz64/home-assistant | tests/components/sleepiq/test_sensor.py | 5 | 1493 | """The tests for SleepIQ sensor platform."""
import homeassistant.components.sleepiq.sensor as sleepiq
from homeassistant.setup import async_setup_component
from tests.async_mock import MagicMock
from tests.components.sleepiq.test_init import mock_responses
CONFIG = {"username": "foo", "password": "bar"}
async def ... | apache-2.0 | [
624,
1918,
2295,
367,
428,
3614,
23559,
8778,
4298,
1041,
199,
646,
8846,
14,
4608,
14,
83,
18387,
1038,
81,
14,
8956,
465,
308,
18387,
1038,
81,
199,
504,
8846,
14,
2758,
492,
5316,
63,
2758,
63,
3173,
199,
199,
504,
2295,
14,
41... | [
1918,
2295,
367,
428,
3614,
23559,
8778,
4298,
1041,
199,
646,
8846,
14,
4608,
14,
83,
18387,
1038,
81,
14,
8956,
465,
308,
18387,
1038,
81,
199,
504,
8846,
14,
2758,
492,
5316,
63,
2758,
63,
3173,
199,
199,
504,
2295,
14,
4146,
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... |
welenofsky/python_koans | python3/koans/about_proxy_object_project.py | 82 | 4104 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Project: Create a Proxy Class
#
# In this assignment, create a proxy class (one is started for you
# below). You should be able to initialize the proxy object with any
# object. Any attributes called on the proxy object should be forwarded
# to the target object. As e... | mit | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
7290,
26,
2790,
282,
12373,
8089,
199,
3,
199,
3,
1010,
642,
9801,
12,
1218,
282,
4566,
1021,
334,
368,
365,
8239,
367,
1265,
199,
3,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
7290,
26,
2790,
282,
12373,
8089,
199,
3,
199,
3,
1010,
642,
9801,
12,
1218,
282,
4566,
1021,
334,
368,
365,
8239,
367,
1265,
199,
3,
5084,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
OpenCanada/website | core/migrations/0021_streampage.py | 1 | 10814 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import wagtail.core.blocks
import wagtail.embeds.blocks
import wagtail.images.blocks
from django.db import migrations, models
import articles.fields
import interactives.models
class Migration(migrations.Migration):
dependencies = [
('core'... | mit | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
7328,
14,
1018,
14,
4166,
199,
646,
7328,
14,
6427,
83,
14,
4166,
199,
646,
7328,
14,
4782,
14,
4166,
199,
504,
1639,
14,
697,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
646,
7328,
14,
1018,
14,
4166,
199,
646,
7328,
14,
6427,
83,
14,
4166,
199,
646,
7328,
14,
4782,
14,
4166,
199,
504,
1639,
14,
697,
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... |
Conservatory/quark | pymouse/build/lib.linux-x86_64-2.7/pymouse/__init__.py | 7 | 1119 | # -*- coding: iso-8859-1 -*-
# Copyright 2010 Pepijn de Vos
#
# 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... | gpl-2.0 | [
3,
1882,
2803,
26,
11601,
13,
4830,
13,
17,
1882,
199,
199,
3,
257,
1898,
7129,
11379,
1038,
24016,
477,
812,
736,
199,
3,
199,
3,
257,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
257,
... | [
1882,
2803,
26,
11601,
13,
4830,
13,
17,
1882,
199,
199,
3,
257,
1898,
7129,
11379,
1038,
24016,
477,
812,
736,
199,
3,
199,
3,
257,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
257,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
boooka/GeoPowerOff | venv/lib/python2.7/site-packages/django/conf/locale/sl/formats.py | 200 | 2120 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd. F Y'
TIME_FORMAT = 'H:i:s'
DAT... | apache-2.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
143... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
3,
961,
570,
365,
1854,
1334,
314,
2011,
4190,
465,
314,
5634,
2559,
14,
199,
3,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
199,
3,
710,
20841,
4807,
3326,
675,
314,
5634,
1434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tafaRU/odoo | addons/payment_ogone/controllers/main.py | 389 | 1179 | # -*- coding: utf-8 -*-
import logging
import pprint
import werkzeug
from openerp import http, SUPERUSER_ID
from openerp.http import request
_logger = logging.getLogger(__name__)
class OgoneController(http.Controller):
_accept_url = '/payment/ogone/test/accept'
_decline_url = '/payment/ogone/test/decline'
... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
2050,
199,
646,
10933,
199,
646,
10380,
199,
199,
504,
5166,
492,
1455,
12,
12824,
63,
998,
199,
504,
5166,
14,
1014,
492,
1056,
199,
199,
63,
2921,
275,
2050,
14,
5572,
3460,
354,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
646,
2050,
199,
646,
10933,
199,
646,
10380,
199,
199,
504,
5166,
492,
1455,
12,
12824,
63,
998,
199,
504,
5166,
14,
1014,
492,
1056,
199,
199,
63,
2921,
275,
2050,
14,
5572,
3460,
354,
336... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
aabdin01/concourse | concourse-driver-python/concourse/concourse.py | 7 | 49719 | __author__ = "Jeff Nelson"
__copyright__ = "Copyright 2015, Cinchapi Inc."
__license__ = "Apache, Version 2.0"
from thrift import Thrift
from thrift.transport import TSocket
from thriftapi import ConcourseService
from thriftapi.shared.ttypes import *
from utils import *
from collections import OrderedDict
import ujson... | apache-2.0 | [
363,
2502,
363,
275,
298,
42,
3609,
653,
352,
834,
2,
199,
363,
7307,
363,
275,
298,
7384,
6900,
12,
445,
28494,
1246,
3277,
2122,
199,
363,
1682,
363,
275,
298,
28993,
12,
3394,
499,
14,
16,
2,
199,
199,
504,
17199,
492,
3868,
... | [
2502,
363,
275,
298,
42,
3609,
653,
352,
834,
2,
199,
363,
7307,
363,
275,
298,
7384,
6900,
12,
445,
28494,
1246,
3277,
2122,
199,
363,
1682,
363,
275,
298,
28993,
12,
3394,
499,
14,
16,
2,
199,
199,
504,
17199,
492,
3868,
6501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ignatenkobrain/dnf | dnf/yum/misc.py | 1 | 17291 | # misc.py
# Copyright (C) 2012-2014 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope th... | gpl-2.0 | [
3,
18576,
14,
647,
199,
3,
1898,
334,
35,
9,
6029,
13,
7280,
221,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
961,
1331,
31816,
471,
6285,
365,
6326,
2808,
370,
29165,
13809,
316,
370,
675,
12,
199,
3,
2811,
12,
1331,
12,
503,
... | [
18576,
14,
647,
199,
3,
1898,
334,
35,
9,
6029,
13,
7280,
221,
9572,
13002,
12,
3277,
14,
199,
3,
199,
3,
961,
1331,
31816,
471,
6285,
365,
6326,
2808,
370,
29165,
13809,
316,
370,
675,
12,
199,
3,
2811,
12,
1331,
12,
503,
3604,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
thjashin/tensorflow | tensorflow/python/training/session_run_hook.py | 31 | 9435 | # 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... |
fernandog/osmc | package/mediacenter-addon-osmc/src/script.module.osmcsetting.networking/resources/lib/osmc_bluetooth_agent.py | 15 | 7110 | #!usr/bin/python
from optparse import OptionParser
import traceback
import dbus
import dbus.service
import dbus.mainloop.glib
try:
from gi.repository import GObject
except ImportError:
import gobject as GObject
import bluezutils
import json
PEXPECT_SOL = 'SOL@'
PEXPECT_EOL = '@EOL'
BUS_NAME = 'org.bluez'
AGE... | gpl-2.0 | [
3168,
2647,
15,
1393,
15,
1548,
199,
199,
504,
8691,
492,
13491,
199,
646,
5190,
199,
646,
21140,
199,
646,
21140,
14,
1364,
199,
646,
21140,
14,
22644,
14,
30816,
199,
893,
26,
272,
687,
18895,
14,
8421,
492,
31264,
199,
2590,
3545... | [
2647,
15,
1393,
15,
1548,
199,
199,
504,
8691,
492,
13491,
199,
646,
5190,
199,
646,
21140,
199,
646,
21140,
14,
1364,
199,
646,
21140,
14,
22644,
14,
30816,
199,
893,
26,
272,
687,
18895,
14,
8421,
492,
31264,
199,
2590,
3545,
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... |
TribeMedia/synapse | synapse/storage/search.py | 2 | 21943 | # -*- coding: utf-8 -*-
# Copyright 2015, 2016 OpenMarket Ltd
#
# 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,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
6900,
12,
7800,
3232,
21667,
12126,
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,... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
1898,
6900,
12,
7800,
3232,
21667,
12126,
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,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
us-ignite/us_ignite | us_ignite/visualize/views.py | 1 | 4853 | from collections import Counter
from itertools import chain, combinations
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.http import urlquote
from django.template.response import TemplateResponse
from us_ignite.apps.models import Application, Domain
from us_ignite.acti... | bsd-3-clause | [
504,
5055,
492,
14427,
199,
504,
7975,
492,
6036,
12,
15821,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
16522,
492,
3837,
199,
504,
1639,
14,
1208,
14,
1014,
492,
1166,
3513,
199,
504,
1639,
14,
1160,
... | [
5055,
492,
14427,
199,
504,
7975,
492,
6036,
12,
15821,
199,
199,
504,
1639,
14,
2190,
492,
2202,
199,
504,
1639,
14,
1018,
14,
16522,
492,
3837,
199,
504,
1639,
14,
1208,
14,
1014,
492,
1166,
3513,
199,
504,
1639,
14,
1160,
14,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
gajim/gajim | setup.py | 1 | 6382 | #!/usr/bin/env python3
import os
import sys
if sys.version_info < (3, 7):
sys.exit('Gajim needs Python 3.7+')
from setuptools import setup, find_packages
from setuptools import Command
from setuptools.command.build_py import build_py as _build
from setuptools.command.install import install as _install
from distu... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
646,
747,
199,
646,
984,
199,
199,
692,
984,
14,
1023,
63,
815,
665,
334,
19,
12,
1520,
304,
272,
984,
14,
2224,
360,
39,
9091,
1017,
4839,
2018,
650,
14,
23,
13854,
199,
199,
... | [
2647,
15,
1393,
15,
1813,
2366,
19,
199,
199,
646,
747,
199,
646,
984,
199,
199,
692,
984,
14,
1023,
63,
815,
665,
334,
19,
12,
1520,
304,
272,
984,
14,
2224,
360,
39,
9091,
1017,
4839,
2018,
650,
14,
23,
13854,
199,
199,
504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Workday/OpenFrame | tools/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/ANY/__init__.py | 243 | 1191 | # Copyright (C) 2003-2007, 2009, 2010 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 ... | bsd-3-clause | [
3,
1898,
334,
35,
9,
13004,
13,
9488,
12,
8937,
12,
7129,
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,
19... | [
1898,
334,
35,
9,
13004,
13,
9488,
12,
8937,
12,
7129,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
HazyResearch/snorkel | snorkel/learning/structure/gen_learning.py | 2 | 12973 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import *
from .constants import *
from numba import jit
import numpy as np
class DependencySelector(object):
"""
Fast method for identifying depen... | apache-2.0 | [
504,
636,
2443,
363,
492,
3679,
63,
646,
199,
504,
636,
2443,
363,
492,
4629,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
504,
12963,
492,
627,
199,
199,
504,
1275,
5559,
492,
... | [
636,
2443,
363,
492,
3679,
63,
646,
199,
504,
636,
2443,
363,
492,
4629,
199,
504,
636,
2443,
363,
492,
870,
63,
1593,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
504,
12963,
492,
627,
199,
199,
504,
1275,
5559,
492,
627,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ruleant/weblate | weblate/trans/migrations/0043_auto__add_vote__add_unique_vote_suggestion_user.py | 2 | 18461 | # -*- coding: utf-8 -*-
#
# Copyright © 2012 - 2014 Michal Čihař <michal@cihar.com>
#
# This file is part of Weblate <http://weblate.org/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... | gpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
22405,
103,
6029,
446,
6927,
603,
1158,
279,
221,
129,
235,
73,
2411,
130,
248,
665,
77,
1158,
279,
32,
559,
8210,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
22405,
103,
6029,
446,
6927,
603,
1158,
279,
221,
129,
235,
73,
2411,
130,
248,
665,
77,
1158,
279,
32,
559,
8210,
14,
957,
30,
199,
3,
199,
3,
961,
570,
365,
1777,
402... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
whn09/tensorflow | tensorflow/examples/learn/iris_custom_decay_dnn.py | 30 | 2039 | # 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 appl... | apache-2.0 | [
3,
221,
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
221,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
221,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,... | [
221,
1898,
7800,
710,
9134,
6642,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
221,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
221,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
anuragpapineni/Hearthbreaker-evolved-agent | hearthbreaker/cards/minions/warrior.py | 2 | 2859 | from hearthbreaker.effects.minion import Buff, IncreaseArmor, GiveCharge
import hearthbreaker.targeting
from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY
from hearthbreaker.game_objects import MinionCard, Minion, WeaponCard, Weapon
class ArathiWeaponsmith(MinionCard):
def __init__(self):
su... | mit | [
504,
946,
19677,
4785,
281,
14,
27626,
14,
827,
1636,
492,
699,
3043,
12,
1010,
16772,
1596,
12416,
12,
25495,
31539,
199,
646,
946,
19677,
4785,
281,
14,
1375,
316,
199,
504,
946,
19677,
4785,
281,
14,
5559,
492,
9502,
63,
6885,
12... | [
946,
19677,
4785,
281,
14,
27626,
14,
827,
1636,
492,
699,
3043,
12,
1010,
16772,
1596,
12416,
12,
25495,
31539,
199,
646,
946,
19677,
4785,
281,
14,
1375,
316,
199,
504,
946,
19677,
4785,
281,
14,
5559,
492,
9502,
63,
6885,
12,
445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
aperigault/ansible | lib/ansible/modules/crypto/acme/acme_inspect.py | 20 | 12317 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2018 Felix Fontein (@felixfontein)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
334,
67,
9,
14894,
7949,
20528,
481,
265,
15859,
8593,
771,
317,
1949,
265,
15859,
9,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
199,
3,
334,
67,
9,
14894,
7949,
20528,
481,
265,
15859,
8593,
771,
317,
1949,
265,
15859,
9,
199,
3,
1664,
1696,
1684,
844,
373,
19,
14,
16,
11,
334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
garrettjonesgoogle/api-client-staging | generated/python/gapic-google-iam-admin-v1/google/cloud/gapic/iam_admin/v1/enums.py | 8 | 2472 | # Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | bsd-3-clause | [
3,
1898,
7800,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
... | [
1898,
7800,
4475,
3277,
14,
2900,
4481,
4644,
14,
199,
3,
199,
3,
3909,
1334,
314,
3668,
844,
12,
3394,
499,
14,
16,
334,
1589,
298,
3761,
3547,
199,
3,
1265,
1443,
440,
675,
642,
570,
871,
315,
4151,
543,
314,
844,
14,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
chirilo/remo | vendor-local/lib/python/rest_framework/authentication.py | 8 | 5945 | """
Provides various authentication policies.
"""
from __future__ import unicode_literals
import base64
from django.contrib.auth import authenticate
from django.middleware.csrf import CsrfViewMiddleware
from django.utils.translation import ugettext_lazy as _
from rest_framework import exceptions, HTTP_HEADER_ENCODING
f... | bsd-3-clause | [
624,
199,
17473,
7750,
6299,
14118,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
1300,
772,
199,
504,
1639,
14,
2828,
14,
1178,
492,
12895,
199,
504,
1639,
14,
5754,
14,
10088,
492,
22145,
25322,
199,
504,
... | [
199,
17473,
7750,
6299,
14118,
14,
199,
624,
199,
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
1300,
772,
199,
504,
1639,
14,
2828,
14,
1178,
492,
12895,
199,
504,
1639,
14,
5754,
14,
10088,
492,
22145,
25322,
199,
504,
1639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
eclecticitguy/pynet_paid | class3/ex1_cfg_change_checker.py | 1 | 1466 | #!/usr/bin/env python
from snmp_helper import snmp_get_oid_v3,snmp_extract
from time import localtime, asctime
COMMUNITY_STRING = 'galileo'
SNMP_PORT = 161
SYS_NAME = '1.3.6.1.2.1.1.5.0'
SYS_UPTIME = '1.3.6.1.2.1.1.3.0'
RUN_LAST_CHANGED = '1.3.6.1.4.1.9.9.43.1.1.1.0'
SYS_TIME_SEC = 100
DEBUG = True
class NetworkDevi... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
199,
504,
20143,
63,
3676,
492,
20143,
63,
362,
63,
1170,
63,
86,
19,
12,
15523,
63,
5005,
199,
504,
900,
492,
2257,
521,
12,
16635,
521,
199,
199,
5378,
1734,
1922,
63,
5353,
275,
283,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
199,
504,
20143,
63,
3676,
492,
20143,
63,
362,
63,
1170,
63,
86,
19,
12,
15523,
63,
5005,
199,
504,
900,
492,
2257,
521,
12,
16635,
521,
199,
199,
5378,
1734,
1922,
63,
5353,
275,
283,
27074,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
yugangw-msft/autorest | src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/auto_rest_url_mutli_collection_format_test_service.py | 5 | 2307 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | [
3,
2803,
29,
1624,
13,
24,
199,
3,
24775,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
199,
3,
4190,
2556,
14,
199,
... | [
2803,
29,
1624,
13,
24,
199,
3,
24775,
199,
3,
1898,
334,
67,
9,
15332,
11098,
14,
2900,
4481,
4644,
14,
199,
3,
3909,
1334,
314,
10697,
844,
14,
1666,
844,
14,
2424,
315,
314,
2199,
1738,
367,
199,
3,
4190,
2556,
14,
199,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
petewarden/tensorflow | tensorflow/lite/python/convert_saved_model.py | 17 | 7669 | # 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... |
JohnAdders/domoticz | plugins/examples/HTTP.py | 9 | 7970 | # Google Home page example
#
# Author: Dnpwwo, 2017 - 2018
#
# Demonstrates HTTP/HTTPS connectivity.
# After connection it performs a GET on www.google.com and receives a 302 (Page Moved) response
# It then does a subsequent GET on the Location specified in the 302 response and receives a 200 response.
#
"""
<pl... | gpl-3.0 | [
3,
4475,
14621,
2034,
2893,
199,
3,
199,
3,
6529,
26,
577,
1590,
978,
79,
12,
9708,
446,
14894,
199,
3,
199,
3,
257,
1487,
2106,
31216,
3101,
15,
14921,
20170,
14,
199,
3,
257,
12836,
1950,
652,
18628,
282,
9576,
641,
221,
20732,
... | [
4475,
14621,
2034,
2893,
199,
3,
199,
3,
6529,
26,
577,
1590,
978,
79,
12,
9708,
446,
14894,
199,
3,
199,
3,
257,
1487,
2106,
31216,
3101,
15,
14921,
20170,
14,
199,
3,
257,
12836,
1950,
652,
18628,
282,
9576,
641,
221,
20732,
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... |
31415us/trajectory | py/env/lib/python2.7/site-packages/shapely/geometry/linestring.py | 3 | 8309 | """Line strings and related utilities
"""
from ctypes import c_double, cast, POINTER
from ctypes import ArgumentError
from shapely.coords import required
from shapely.geos import lgeos, TopologicalError
from shapely.geometry.base import BaseGeometry, geom_factory
from shapely.geometry.proxy import CachingGeometryProx... | mit | [
624,
3049,
3326,
436,
4048,
15841,
199,
624,
199,
199,
504,
5577,
492,
286,
63,
3157,
12,
9106,
12,
6569,
199,
504,
5577,
492,
5886,
547,
199,
199,
504,
2215,
590,
14,
8032,
492,
1415,
199,
504,
2215,
590,
14,
12151,
492,
634,
121... | [
3049,
3326,
436,
4048,
15841,
199,
624,
199,
199,
504,
5577,
492,
286,
63,
3157,
12,
9106,
12,
6569,
199,
504,
5577,
492,
5886,
547,
199,
199,
504,
2215,
590,
14,
8032,
492,
1415,
199,
504,
2215,
590,
14,
12151,
492,
634,
12151,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
markrawlingson/SickRage | lib/hachoir_parser/image/bmp.py | 95 | 6682 | """
Microsoft Bitmap picture parser.
- file extension: ".bmp"
Author: Victor Stinner
Creation: 16 december 2005
"""
from hachoir_parser import Parser
from hachoir_core.field import (FieldSet,
UInt8, UInt16, UInt32, Bits,
String, RawBytes, Enum,
PaddingBytes, NullBytes, createPaddingField)
from hachoir_cor... | gpl-3.0 | [
624,
199,
12940,
10199,
1130,
24945,
1798,
14,
199,
13,
570,
3329,
26,
3680,
22308,
2,
199,
199,
5949,
26,
6561,
630,
428,
1346,
1372,
199,
13921,
26,
3193,
477,
26381,
11811,
199,
624,
199,
199,
504,
394,
21301,
63,
2087,
492,
1019... | [
199,
12940,
10199,
1130,
24945,
1798,
14,
199,
13,
570,
3329,
26,
3680,
22308,
2,
199,
199,
5949,
26,
6561,
630,
428,
1346,
1372,
199,
13921,
26,
3193,
477,
26381,
11811,
199,
624,
199,
199,
504,
394,
21301,
63,
2087,
492,
10191,
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... |
ksrajkumar/openerp-6.1 | openerp/addons/point_of_sale/wizard/pos_receipt.py | 9 | 2286 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
6542,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
199,
3,
199,
3,
259,
961,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
semonte/intellij-community | python/helpers/coveragepy/coverage/backunittest.py | 95 | 1515 | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
"""Implementations of unittest features from the future."""
# Use unittest2 if it's available, otherwise unittest. This gives us
# back-ported features for 2.6.
t... | apache-2.0 | [
3,
3909,
1334,
314,
3668,
844,
26,
1455,
921,
1544,
14,
3796,
14,
1308,
15,
2383,
15,
3961,
13,
18,
14,
16,
199,
3,
2104,
2436,
26,
4178,
921,
25668,
14,
1308,
15,
7439,
15,
10828,
647,
15,
2164,
15,
885,
15,
4609,
4047,
14,
2... | [
3909,
1334,
314,
3668,
844,
26,
1455,
921,
1544,
14,
3796,
14,
1308,
15,
2383,
15,
3961,
13,
18,
14,
16,
199,
3,
2104,
2436,
26,
4178,
921,
25668,
14,
1308,
15,
7439,
15,
10828,
647,
15,
2164,
15,
885,
15,
4609,
4047,
14,
2424,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Malpp/Mouse | main.py | 1 | 1323 | import win32api, win32con, win32gui, sys
from flask import Flask, send_from_directory, request
def click():
(x,y) = win32gui.GetCursorPos()
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
def rclick():
(x,y) = win32gui.GetC... | mit | [
646,
4747,
708,
1246,
12,
4747,
708,
388,
12,
4747,
708,
5885,
12,
984,
202,
199,
504,
7209,
492,
16704,
12,
3222,
63,
504,
63,
3619,
12,
1056,
2999,
199,
318,
8968,
837,
1128,
334,
88,
12,
89,
9,
275,
4747,
708,
5885,
14,
1002,... | [
4747,
708,
1246,
12,
4747,
708,
388,
12,
4747,
708,
5885,
12,
984,
202,
199,
504,
7209,
492,
16704,
12,
3222,
63,
504,
63,
3619,
12,
1056,
2999,
199,
318,
8968,
837,
1128,
334,
88,
12,
89,
9,
275,
4747,
708,
5885,
14,
1002,
8993... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mscuthbert/abjad | abjad/tools/rhythmmakertools/Talea.py | 1 | 4052 | # -*- encoding: utf-8 -*-
from abjad.tools import datastructuretools
from abjad.tools import durationtools
from abjad.tools import mathtools
from abjad.tools.abctools import AbjadValueObject
class Talea(AbjadValueObject):
'''Talea.
.. container:: example
::
>>> talea = rhythmmakertools... | gpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
504,
282,
468,
350,
14,
2537,
492,
666,
6976,
2537,
199,
504,
282,
468,
350,
14,
2537,
492,
7373,
2537,
199,
504,
282,
468,
350,
14,
2537,
492,
3473,
2537,
199,
504,
282,
468,
350,
14,... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
504,
282,
468,
350,
14,
2537,
492,
666,
6976,
2537,
199,
504,
282,
468,
350,
14,
2537,
492,
7373,
2537,
199,
504,
282,
468,
350,
14,
2537,
492,
3473,
2537,
199,
504,
282,
468,
350,
14,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
hothHowler/pymc3 | pymc3/theanof.py | 13 | 5296 | from .vartypes import typefilter, continuous_types
from theano import theano, scalar, tensor as t
from theano.gof.graph import inputs
from .memoize import memoize
from .blocking import ArrayOrdering
__all__ = ['gradient', 'hessian', 'hessian_diag', 'inputvars', 'cont_inputs', 'jacobian', 'CallableTensor', 'join_nonsh... | apache-2.0 | [
504,
1275,
1391,
1313,
492,
730,
1541,
12,
19922,
63,
1313,
199,
504,
14377,
492,
14377,
12,
6917,
12,
221,
2345,
465,
307,
199,
504,
14377,
14,
71,
1618,
14,
2180,
492,
4153,
199,
504,
1275,
11979,
794,
492,
11955,
794,
199,
504,
... | [
1275,
1391,
1313,
492,
730,
1541,
12,
19922,
63,
1313,
199,
504,
14377,
492,
14377,
12,
6917,
12,
221,
2345,
465,
307,
199,
504,
14377,
14,
71,
1618,
14,
2180,
492,
4153,
199,
504,
1275,
11979,
794,
492,
11955,
794,
199,
504,
1275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
berkeley-stat159/project-beta | code/utils/vmt_utils.py | 4 | 3559 | # General utility functions for vm_tools
"""
These functions are meant to manipulate and reshape data, to facilitate bootstrapping,
Statistical functions (those concerned with prediction accuracy, significance levels)
"""
import numpy as np
def _svd(M,**kwargs):
"""
same as np.linagle.svd() function
add e... | bsd-3-clause | [
3,
1696,
11420,
3423,
367,
4169,
63,
2537,
199,
624,
199,
20676,
3423,
787,
18329,
370,
27232,
436,
21460,
666,
12,
370,
30242,
1051,
323,
8498,
14183,
3637,
12,
221,
199,
3391,
30364,
3423,
334,
273,
3362,
406,
2247,
7439,
543,
12044... | [
1696,
11420,
3423,
367,
4169,
63,
2537,
199,
624,
199,
20676,
3423,
787,
18329,
370,
27232,
436,
21460,
666,
12,
370,
30242,
1051,
323,
8498,
14183,
3637,
12,
221,
199,
3391,
30364,
3423,
334,
273,
3362,
406,
2247,
7439,
543,
12044,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SHASHANKB/spark | examples/src/main/python/sql/streaming/structured_network_wordcount.py | 76 | 2534 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | [
3,
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
148... | [
199,
3,
3909,
370,
314,
3668,
2290,
2752,
334,
14950,
9,
1334,
1373,
503,
1655,
199,
3,
11615,
4190,
14024,
14,
221,
1666,
314,
12840,
570,
1854,
543,
199,
3,
642,
1736,
367,
4722,
2556,
12602,
4248,
12715,
14,
199,
3,
710,
14857,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ChristianKniep/QNIB | serverfiles/usr/local/lib/networkx-1.6/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality_subset.py | 75 | 7708 | #!/usr/bin/env python
from nose.tools import *
from nose import SkipTest
import networkx
from nose.plugins.attrib import attr
from networkx import edge_current_flow_betweenness_centrality \
as edge_current_flow
from networkx import edge_current_flow_betweenness_centrality_subset \
as edge_current_flow_subset
... | gpl-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
504,
11354,
14,
2537,
492,
627,
199,
504,
11354,
492,
18795,
199,
646,
24313,
199,
504,
11354,
14,
5265,
14,
6640,
492,
1921,
199,
199,
504,
24313,
492,
6275,
63,
1818,
63,
1659,
63,
13007,... | [
2647,
15,
1393,
15,
1813,
2366,
199,
504,
11354,
14,
2537,
492,
627,
199,
504,
11354,
492,
18795,
199,
646,
24313,
199,
504,
11354,
14,
5265,
14,
6640,
492,
1921,
199,
199,
504,
24313,
492,
6275,
63,
1818,
63,
1659,
63,
13007,
4171,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
zhangwengame/shadowsocks | shadowsocks/crypto/rc4_md5.py | 1042 | 1339 | #!/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... |
2rs2ts/moto | moto/ec2/utils.py | 3 | 17955 | from __future__ import unicode_literals
import random
import re
import six
EC2_RESOURCE_TO_PREFIX = {
'customer-gateway': 'cgw',
'dhcp-options': 'dopt',
'image': 'ami',
'instance': 'i',
'internet-gateway': 'igw',
'nat-gateway': 'nat',
'network-acl': 'acl',
'network-acl-subnet-assoc': 'a... | apache-2.0 | [
504,
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
2196,
199,
646,
295,
199,
646,
3816,
199,
199,
4220,
18,
63,
14110,
63,
2566,
63,
6351,
275,
469,
272,
283,
10178,
13,
7019,
356,
283,
67,
8392,
297,
272,
283,
10801,
13,
1419,
... | [
636,
2443,
363,
492,
2649,
63,
5955,
199,
646,
2196,
199,
646,
295,
199,
646,
3816,
199,
199,
4220,
18,
63,
14110,
63,
2566,
63,
6351,
275,
469,
272,
283,
10178,
13,
7019,
356,
283,
67,
8392,
297,
272,
283,
10801,
13,
1419,
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... |
fangxingli/hue | desktop/core/ext-py/pysaml2-2.4.0/src/saml2/aes.py | 34 | 3421 | #!/usr/bin/env python
import os
from Crypto import Random
from Crypto.Cipher import AES
from base64 import b64encode, b64decode
__author__ = 'rolandh'
POSTFIX_MODE = {
"cbc": AES.MODE_CBC,
"cfb": AES.MODE_CFB,
"ecb": AES.MODE_CFB,
}
BLOCK_SIZE = 16
class AESCipher(object):
def __init__(self, key, i... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
646,
747,
199,
504,
18855,
492,
9571,
199,
504,
18855,
14,
21967,
492,
19093,
199,
504,
1300,
772,
492,
330,
772,
2143,
12,
330,
772,
2708,
199,
199,
363,
2502,
363,
275,
283,
8459,
460,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
646,
747,
199,
504,
18855,
492,
9571,
199,
504,
18855,
14,
21967,
492,
19093,
199,
504,
1300,
772,
492,
330,
772,
2143,
12,
330,
772,
2708,
199,
199,
363,
2502,
363,
275,
283,
8459,
460,
72,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ondras/TeaJS | deps/v8/third_party/icu/source/test/depstest/depstest.py | 14 | 6906 | #! /usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011, International Business Machines
# Corporation and others. All Rights Reserved.
#
# file name: depstest.py
#
# created on: 2011may24
"""ICU dependency tester.
This probably works only on Linux.
The exit code is 0 if everything is fine, 1 for errors, 2... | bsd-3-clause | [
3168,
1182,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
7760,
12,
28220,
23813,
30611,
3746,
199,
3,
11098,
436,
11789,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
570,
... | [
1182,
2647,
15,
1393,
15,
1548,
199,
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
3,
199,
3,
1898,
334,
35,
9,
7760,
12,
28220,
23813,
30611,
3746,
199,
3,
11098,
436,
11789,
14,
2900,
5924,
5702,
14,
199,
3,
199,
3,
570,
536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Vegasvikk/django-cms | cms/utils/django_load.py | 25 | 3794 | # -*- coding: utf-8 -*-
"""
This is revision from 3058ab9d9d4875589638cc45e84b59e7e1d7c9c3 of
https://github.com/ojii/django-load.
ANY changes to this file, be it upstream fixes or changes for the cms *must* be
documented clearly within this file with comments.
For documentation on how to use the functions described ... | bsd-3-clause | [
3,
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
2765,
365,
6974,
687,
650,
18009,
371,
25,
68,
25,
68,
27931,
1229,
12031,
1703,
2055,
2322,
69,
1349,
66,
1427,
69,
23,
69,
17,
68,
23,
67,
25,
67,
19,
402,
199,
2859,
921... | [
1882,
2803,
26,
2774,
13,
24,
1882,
199,
624,
199,
2765,
365,
6974,
687,
650,
18009,
371,
25,
68,
25,
68,
27931,
1229,
12031,
1703,
2055,
2322,
69,
1349,
66,
1427,
69,
23,
69,
17,
68,
23,
67,
25,
67,
19,
402,
199,
2859,
921,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
aviciimaxwell/odoo | addons/anonymization/anonymization.py | 77 | 28690 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... | agpl-3.0 | [
3,
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
2900,
5924,
5702,
199,
... | [
1882,
2644,
26,
2774,
13,
24,
1882,
199,
4605,
199,
3,
199,
3,
259,
7653,
12,
3232,
5800,
8259,
9274,
199,
3,
259,
1898,
334,
35,
9,
8353,
13,
8664,
11947,
12361,
8642,
1014,
921,
9864,
14,
1235,
10121,
2900,
5924,
5702,
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.