hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
e0473dcab1e2b2649982bf87416c4fae41e639fb
9,579
py
Python
tests/users/test_views.py
amanbansal2709/ctfd
941335a5e205ca818ce1758076858b628e4fa05b
[ "Apache-2.0" ]
null
null
null
tests/users/test_views.py
amanbansal2709/ctfd
941335a5e205ca818ce1758076858b628e4fa05b
[ "Apache-2.0" ]
null
null
null
tests/users/test_views.py
amanbansal2709/ctfd
941335a5e205ca818ce1758076858b628e4fa05b
[ "Apache-2.0" ]
1
2021-12-23T14:11:15.000Z
2021-12-23T14:11:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from flask import url_for from tests.helpers import create_ctfd, destroy_ctfd, register_user, \ login_as_user, gen_challenge, gen_file, gen_page from CTFd.utils import set_config from CTFd.utils.encoding import hexencode from freezegun import freeze_time d...
37.417969
113
0.581794
be012a87690c24c6d9b7808790393e1aa6d01211
60,229
py
Python
vendor/github.com/tensorflow/tensorflow/tensorflow/contrib/feature_column/python/feature_column/sequence_feature_column_v2_test.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
5
2019-01-13T16:15:25.000Z
2019-07-07T16:17:32.000Z
vendor/github.com/tensorflow/tensorflow/tensorflow/contrib/feature_column/python/feature_column/sequence_feature_column_v2_test.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
13
2020-11-13T18:53:29.000Z
2022-03-12T00:33:00.000Z
vendor/github.com/tensorflow/tensorflow/tensorflow/contrib/feature_column/python/feature_column/sequence_feature_column_v2_test.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
2
2020-10-06T09:24:31.000Z
2020-12-20T15:10:56.000Z
# 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...
39.913188
102
0.59639
0e4607bd23d501288e254267b2c14a8c9e6a9c13
2,375
py
Python
menu.py
wangzqzero/calculator
94bf0c454672b88262ed87d090908a5ed1518fd3
[ "MIT" ]
null
null
null
menu.py
wangzqzero/calculator
94bf0c454672b88262ed87d090908a5ed1518fd3
[ "MIT" ]
null
null
null
menu.py
wangzqzero/calculator
94bf0c454672b88262ed87d090908a5ed1518fd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'menu.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, ...
37.109375
87
0.689263
efa935820302bf6dbf6104fcf32831a207e1a725
84
py
Python
server/admin/blueprints/user/__init__.py
Soopro/totoro
6be1af50496340ded9879a6450c8208ac9f97e72
[ "MIT" ]
null
null
null
server/admin/blueprints/user/__init__.py
Soopro/totoro
6be1af50496340ded9879a6450c8208ac9f97e72
[ "MIT" ]
null
null
null
server/admin/blueprints/user/__init__.py
Soopro/totoro
6be1af50496340ded9879a6450c8208ac9f97e72
[ "MIT" ]
1
2019-10-31T06:11:41.000Z
2019-10-31T06:11:41.000Z
# coding=utf-8 from __future__ import absolute_import from .views import blueprint
16.8
38
0.821429
59140081b11212c6be482c72a78ac9c17012d685
429
py
Python
examples/get-guild-data.py
FoxNerdSaysMoo/HypixelIO
aca8fd6535c0afb2bb733172db2dcbd68590118d
[ "MIT" ]
16
2020-10-28T01:49:31.000Z
2022-03-13T23:19:31.000Z
examples/get-guild-data.py
FoxNerdSaysMoo/HypixelIO
aca8fd6535c0afb2bb733172db2dcbd68590118d
[ "MIT" ]
20
2021-03-17T07:32:14.000Z
2022-03-07T02:48:00.000Z
examples/get-guild-data.py
FoxNerdSaysMoo/HypixelIO
aca8fd6535c0afb2bb733172db2dcbd68590118d
[ "MIT" ]
5
2020-10-21T13:53:27.000Z
2021-09-02T15:47:45.000Z
import os from textwrap import dedent import hypixelio as hp # Init the Client client = hp.Client(api_key=os.environ["HYPIXEL_KEY"]) # Get the guild object guild = client.get_guild(name="2k") # Get the essential data name, ranking, achievements = guild.NAME, guild.LEGACY_RANKING, guild.ACHIEVEMENTS # Print the dat...
18.652174
82
0.710956
13e92b5fe7535220488956da90722a2209116546
7,344
py
Python
xonsh/parsers/fstring_adaptor.py
wendellwt/xonsh
300dfc87170002e900c2878aaf3d67c3f8a765d7
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/parsers/fstring_adaptor.py
wendellwt/xonsh
300dfc87170002e900c2878aaf3d67c3f8a765d7
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/parsers/fstring_adaptor.py
wendellwt/xonsh
300dfc87170002e900c2878aaf3d67c3f8a765d7
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Implements helper class for parsing Xonsh syntax within f-strings.""" import re from ast import parse as pyparse from xonsh import ast from xonsh.lazyasd import lazyobject from xonsh.platform import PYTHON_VERSION_INFO @lazyobject def RE_FSTR_FIELD_WRAPPER(): if PYTHON_VERSION_INFO > (...
37.279188
88
0.519199
10f7ead58248484a0f768c418ea56836bc8b5fe4
6,245
py
Python
ddtrace/contrib/botocore/patch.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/botocore/patch.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
6
2021-06-29T14:58:43.000Z
2021-12-15T14:14:36.000Z
ddtrace/contrib/botocore/patch.py
KDWSS/dd-trace-py
6d859bec403347f7c1e7efd039210908b562741e
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-09-28T06:20:53.000Z
2020-09-28T06:20:53.000Z
""" Trace queries to aws api done via botocore client """ # 3p import base64 import json import botocore.client from ddtrace import config from ddtrace.vendor import wrapt # project from ...constants import ANALYTICS_SAMPLE_RATE_KEY from ...constants import SPAN_MEASURED_KEY from ...ext import SpanTypes from ...ext ...
35.282486
123
0.692074
aad1f0fbeb3828656409050b9b897c1a3ff5e384
4,211
py
Python
foolbox/models/mxnet_gluon.py
mkyybx/foolbox
00b2dcc5ed30b12f28431e9dabe4d2bbc214d444
[ "MIT" ]
4
2021-11-12T04:06:32.000Z
2022-01-27T09:01:41.000Z
foolbox/models/mxnet_gluon.py
pige2nd/foolbox
2daabba8355afce9dfbec3de8d71dadadcfbd10b
[ "MIT" ]
1
2022-02-22T14:00:59.000Z
2022-02-25T08:57:29.000Z
foolbox/models/mxnet_gluon.py
pige2nd/foolbox
2daabba8355afce9dfbec3de8d71dadadcfbd10b
[ "MIT" ]
2
2020-11-27T00:03:48.000Z
2020-11-27T00:08:04.000Z
from __future__ import absolute_import from .base import DifferentiableModel import numpy as np class MXNetGluonModel(DifferentiableModel): """Creates a :class:`Model` instance from an existing `MXNet Gluon` Block. Parameters ---------- block : `mxnet.gluon.Block` The Gluon Block representi...
34.516393
78
0.627642
8b0e5a1f263db58638424bb478a4a8134c61a03c
952
py
Python
dummy_settings.py
AnselmC/connection-tester
9a53b11e54be982d883c2db69613376a4b15aa7a
[ "MIT" ]
null
null
null
dummy_settings.py
AnselmC/connection-tester
9a53b11e54be982d883c2db69613376a4b15aa7a
[ "MIT" ]
null
null
null
dummy_settings.py
AnselmC/connection-tester
9a53b11e54be982d883c2db69613376a4b15aa7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- sender = 'your.adress@host.com' # Your address password = '#s0oPerSTr0nGpä$$\\/\\/ord' # Your password server_name = 'mail.host.com' # Your mail server address server_port = 587 # Your mail server port ISP = 'customer_service@isp.com' # Your ISP customer service addres...
52.888889
74
0.683824
825806276de0276aaa7cf46bb0f739e225fa3f54
26,056
py
Python
osx/devkit/plug-ins/scripted/swissArmyManip.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
10
2018-03-30T16:09:02.000Z
2021-12-07T07:29:19.000Z
osx/devkit/plug-ins/scripted/swissArmyManip.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
null
null
null
osx/devkit/plug-ins/scripted/swissArmyManip.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
#- # ========================================================================== # Copyright (C) 1995 - 2006 Autodesk, Inc. and/or its licensors. All # rights reserved. # # The coded instructions, statements, computer programs, and/or related # material (collectively the "Data") in these files contain unpublished # ...
34.194226
187
0.691971
3e83a9952365e9e3d2e29c25c0ebf78b14e2c8f7
3,004
py
Python
examples/gym_test.py
tawnkramer/donkey_gym
4ea670491eaef66178a1ffe3d672c7d4344c51bf
[ "MIT" ]
31
2018-10-20T22:00:53.000Z
2019-08-07T12:24:28.000Z
examples/gym_test.py
tawnkramer/donkey_gym
4ea670491eaef66178a1ffe3d672c7d4344c51bf
[ "MIT" ]
4
2018-12-18T23:09:51.000Z
2019-08-08T20:40:05.000Z
examples/gym_test.py
tawnkramer/donkey_gym
4ea670491eaef66178a1ffe3d672c7d4344c51bf
[ "MIT" ]
17
2018-11-04T20:36:02.000Z
2019-08-07T15:25:00.000Z
""" file: gym_test.py author: Tawn Kramer date: 20 October 2018 notes: This will do a basic test of gym_donkeycar environment by submitting random input for 3 episodes. """ import argparse import gym import gym_donkeycar # noqa: F401 NUM_EPISODES = 3 MAX_TIME_STEPS = 1000 def test_track(env_name, conf): ...
24.422764
113
0.579228
8fed8a29a6f33975bada7e22c9c246ed7976923f
4,292
py
Python
bquadform_utils.py
coinstudent2048/BQuadForm
d09b55b4f4d5004eaac41c5b19219c89f7ca441c
[ "MIT" ]
null
null
null
bquadform_utils.py
coinstudent2048/BQuadForm
d09b55b4f4d5004eaac41c5b19219c89f7ca441c
[ "MIT" ]
null
null
null
bquadform_utils.py
coinstudent2048/BQuadForm
d09b55b4f4d5004eaac41c5b19219c89f7ca441c
[ "MIT" ]
null
null
null
# Miscellaneous utilities for bquadform.py # # Use this code only for prototyping # integer square root (floor) # source: https://stackoverflow.com/a/53983683 def isqrt(n): if not isinstance(n, int): raise TypeError("input is not integer") if n > 0: x = 1 << (n.bit_length() + 1 >> 1) wh...
25.39645
63
0.45247
53f8d098ce583370597b4e7ca96c05dc04ffcf03
117
py
Python
tests/unit/core/test_urls.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
tests/unit/core/test_urls.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
tests/unit/core/test_urls.py
etienne86/oc_p13_team_spirit
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
[ "MIT" ]
null
null
null
""" This module contains the unit tests related to the urls in app ``core``. """ # from django.test import TestCase
16.714286
46
0.709402
ad14326992bd79ed996bbca8c3a7ca903cdaffc8
27,594
py
Python
databroker/headersource/core.py
danielballan/databroker
6eeafd63d1ecf691a06acd8d15a2ea27d381b8db
[ "BSD-3-Clause" ]
null
null
null
databroker/headersource/core.py
danielballan/databroker
6eeafd63d1ecf691a06acd8d15a2ea27d381b8db
[ "BSD-3-Clause" ]
8
2016-11-08T18:19:15.000Z
2017-04-06T13:13:55.000Z
databroker/headersource/core.py
stuartcampbell/databroker
b8cefd1a982a697bb679d8a2c1743751a42007d8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import copy import six import warnings import logging import numpy as np from ..utils import (apply_to_dict_recursively, sanitize_np, format_time as _format_time) logger = logging.getLogge...
29.41791
79
0.623179
3690a4ffe0d0e575e1a53c2715a7137520191697
25,475
py
Python
venv/lib/python3.7/site-packages/cvxpy/tests/test_dgp2dcp.py
JWThacker/Airbnb_project
f804495512f0f924d3048f788ed33ab230b4e02a
[ "MIT" ]
3,285
2015-01-03T04:02:29.000Z
2021-04-19T14:51:29.000Z
venv/lib/python3.7/site-packages/cvxpy/tests/test_dgp2dcp.py
JWThacker/Airbnb_project
f804495512f0f924d3048f788ed33ab230b4e02a
[ "MIT" ]
1,138
2015-01-01T19:40:14.000Z
2021-04-18T23:37:31.000Z
cvxpy/tests/test_dgp2dcp.py
phschiele/cvxpy
a43aed7447b87f6d0fbc6f71ae5c7b84183f3369
[ "ECL-2.0", "Apache-2.0" ]
765
2015-01-02T19:29:39.000Z
2021-04-20T00:50:43.000Z
import numpy as np import cvxpy import cvxpy.error as error import cvxpy.reductions.dgp2dcp.atom_canonicalizers as dgp_atom_canon from cvxpy.atoms.affine.add_expr import AddExpression from cvxpy.reductions import solution from cvxpy.settings import SOLVER_ERROR from cvxpy.tests.base_test import BaseTest SOLVER = cvxp...
41.557912
96
0.585162
8e8ee4d7cfe615c10af3b26de2069b96a6dd30a9
255
py
Python
2_intermediate/chapter11/practice/product.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
4
2021-03-01T00:32:45.000Z
2021-05-21T22:01:52.000Z
2_intermediate/chapter11/practice/product.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
29
2020-09-12T22:56:04.000Z
2021-09-25T17:08:42.000Z
2_intermediate/chapter11/practice/product.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
7
2021-02-25T01:50:55.000Z
2022-02-28T00:00:42.000Z
""" Product Write a function that takes a list of numbers as input and returns the product of all the numbers in the list. Use it to print the products of the following sets of numbers: -1, 5, 3, 2, 8 2.5, 3, 0 4, 3, 7, 10 """ # Insert your code here.
15
35
0.694118
6ee0540c30a8ab28e31bdbd93a4001cd443d508e
4,084
py
Python
Experiments/Tensorflow/Math/linear_algebra.py
merang/Deep-Learning-Experiments
c53b7ded52631996e560b33cdf30ce915b18d079
[ "MIT" ]
994
2017-01-17T11:56:51.000Z
2022-03-22T11:51:40.000Z
Experiments/Tensorflow/Math/linear_algebra.py
akiljames83/Deep-Learning-Experiments
8048b91f382667e9b43078460fb792b369f8af49
[ "MIT" ]
20
2017-06-01T01:30:16.000Z
2021-06-11T17:27:51.000Z
Experiments/Tensorflow/Math/linear_algebra.py
akiljames83/Deep-Learning-Experiments
8048b91f382667e9b43078460fb792b369f8af49
[ "MIT" ]
789
2017-02-16T08:53:14.000Z
2022-03-27T14:33:39.000Z
''' Linear Algebra on TensorFlow Author: Rowel Atienza Project: https://github.com/roatienza/Deep-Learning-Experiments ''' # On command line: python linear_algebra.py # Prerequisite: tensorflow (see tensorflow.org) from __future__ import print_function import tensorflow as tf import numpy as np # Square matrix A of ...
26.012739
87
0.602106
9c80fb41f32cf725238d88b1d24fb246edb8d6dd
3,037
py
Python
src/site_main/settings.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
2
2021-01-05T02:55:57.000Z
2021-04-16T15:49:08.000Z
src/site_main/settings.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
null
null
null
src/site_main/settings.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
1
2021-01-05T08:12:38.000Z
2021-01-05T08:12:38.000Z
""" Django settings for site_main project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os ...
28.92381
91
0.709582
786882e0f5b985cbeffca0b595f3f54275f0d144
5,286
py
Python
fiware_api_blueprint_renderer/src/drafter_postprocessing/data_structures.py
Lenijas/test-travisci
e83fafe9d46319c9eaf9938e00c49b52454b66df
[ "BSD-3-Clause" ]
1
2016-11-10T01:04:52.000Z
2016-11-10T01:04:52.000Z
fiware_api_blueprint_renderer/src/drafter_postprocessing/data_structures.py
Lenijas/test-travisci
e83fafe9d46319c9eaf9938e00c49b52454b66df
[ "BSD-3-Clause" ]
null
null
null
fiware_api_blueprint_renderer/src/drafter_postprocessing/data_structures.py
Lenijas/test-travisci
e83fafe9d46319c9eaf9938e00c49b52454b66df
[ "BSD-3-Clause" ]
null
null
null
from collections import deque from ..apib_extra_parse_utils import parse_property_member_declaration from ..apib_extra_parse_utils import get_indentation def parser_json_data_structures(json_content): """Retrieves data structures definition from JSON file and writes them in an easier to access format""" ...
40.976744
127
0.699962
40046f19043d30c1480b948c5c578edff30a2386
15,444
py
Python
src/evaluation_metrics/segmentation_metrics.py
LucasFidon/fetal-brain-segmentation-partial-supervision-miccai21
69506cbed21c7d04946020e0d09246610c8da6d4
[ "BSD-3-Clause" ]
1
2021-12-17T06:25:26.000Z
2021-12-17T06:25:26.000Z
src/evaluation_metrics/segmentation_metrics.py
LucasFidon/fetal-brain-segmentation-partial-supervision-miccai21
69506cbed21c7d04946020e0d09246610c8da6d4
[ "BSD-3-Clause" ]
null
null
null
src/evaluation_metrics/segmentation_metrics.py
LucasFidon/fetal-brain-segmentation-partial-supervision-miccai21
69506cbed21c7d04946020e0d09246610c8da6d4
[ "BSD-3-Clause" ]
null
null
null
""" @brief Evaluation metrics for segmentation applications. @author Lucas Fidon (lucas.fidon@kcl.ac.uk) @date 30 Oct 2019. """ import numpy as np from scipy import ndimage from evaluation_metrics import lookup_tables def _binarize(seg, fg_class=1): """ Binarize a segmentation with label 1 for pixels/vox...
41.516129
91
0.662652
04e7758438803fbd94e3bf7cf14273a9330f086d
1,382
py
Python
model-optimizer/extensions/front/caffe/ctcgreedydecoder_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/caffe/ctcgreedydecoder_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/extensions/front/caffe/ctcgreedydecoder_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
""" Copyright (C) 2018-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
32.904762
73
0.745297
3ed4ff79ff4a85080a6fb8aa70c12b087955073f
666
py
Python
carflux/src/agent.py
Deepak-r2dl/carflux
53e14a32897b9615a0b0d07bb99e5ebc9ce069f8
[ "MIT" ]
null
null
null
carflux/src/agent.py
Deepak-r2dl/carflux
53e14a32897b9615a0b0d07bb99e5ebc9ce069f8
[ "MIT" ]
null
null
null
carflux/src/agent.py
Deepak-r2dl/carflux
53e14a32897b9615a0b0d07bb99e5ebc9ce069f8
[ "MIT" ]
null
null
null
""" The agent class for Pacman """ from abc import ABC, abstractmethod class Agent(ABC): # Probably a bit risque. def __init__(self,**kwargs): for k, v in kwargs.items(): setattr(self,k,v) super().__init__() @abstractmethod # Observe world. Encode neighbourhood fi...
20.181818
58
0.605105
6396492d3df51ca8c247a8b5a93f435c1bceef25
7,646
py
Python
thermo/database.py
RoryKurek/thermo
985279467faa028234ab422a19b69385e5100149
[ "MIT" ]
380
2016-07-04T09:45:20.000Z
2022-03-20T18:09:45.000Z
thermo/database.py
RoryKurek/thermo
985279467faa028234ab422a19b69385e5100149
[ "MIT" ]
104
2016-07-10T20:47:12.000Z
2022-03-22T20:43:39.000Z
thermo/database.py
RoryKurek/thermo
985279467faa028234ab422a19b69385e5100149
[ "MIT" ]
96
2016-07-05T20:54:05.000Z
2022-02-23T03:06:02.000Z
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2018, 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
36.583732
99
0.598483
f344ff84a369fd623b708fe522a11d03759e7d3c
4,390
py
Python
hood/settings.py
NIelsen-Mudaki/neighbourhood
12e7a38188e00c1cbc7810745eda4d9d205ae0e1
[ "Unlicense" ]
null
null
null
hood/settings.py
NIelsen-Mudaki/neighbourhood
12e7a38188e00c1cbc7810745eda4d9d205ae0e1
[ "Unlicense" ]
null
null
null
hood/settings.py
NIelsen-Mudaki/neighbourhood
12e7a38188e00c1cbc7810745eda4d9d205ae0e1
[ "Unlicense" ]
null
null
null
""" Django settings for hood project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os impo...
26.287425
91
0.682916
0862370125d1625c58336c2d62a4a57deb52bbe0
1,234
py
Python
examples/blogprj/apps/blog/models.py
pimentech/django-mongoforms
6220e91e05d73a26e495460f98667e23dc16c5f6
[ "BSD-3-Clause" ]
1
2017-07-27T05:44:47.000Z
2017-07-27T05:44:47.000Z
examples/blogprj/apps/blog/models.py
pimentech/django-mongoforms
6220e91e05d73a26e495460f98667e23dc16c5f6
[ "BSD-3-Clause" ]
null
null
null
examples/blogprj/apps/blog/models.py
pimentech/django-mongoforms
6220e91e05d73a26e495460f98667e23dc16c5f6
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.template.defaultfilters import slugify from django.core.urlresolvers import reverse from mongoengine import * class BlogPost(Document): published = BooleanField(default=False) author = StringField(required=True) title = StringField(required=True) slug = StringField() c...
28.697674
74
0.579417
a35cf75d191f9eddfc81c4eb7b7eeedcabc1ef3e
13,034
py
Python
tools/tools/env/tools/Python27/Lib/site-packages/serial/urlhandler/protocol_socket.py
John-J-smith/myRTT
7b206d3984f3b70f825a0b9ec87750c153c2c0f1
[ "Apache-2.0" ]
1
2020-11-25T20:09:59.000Z
2020-11-25T20:09:59.000Z
serial/urlhandler/protocol_socket.py
gregkoul/pyserial
1ef8648ff3c4b4aeaeb3962ea8d1076a1e90ae74
[ "BSD-3-Clause" ]
null
null
null
serial/urlhandler/protocol_socket.py
gregkoul/pyserial
1ef8648ff3c4b4aeaeb3962ea8d1076a1e90ae74
[ "BSD-3-Clause" ]
2
2019-02-14T08:13:33.000Z
2019-04-23T21:47:48.000Z
#! python # # This module implements a simple socket based client. # It does not support changing any port parameters and will silently ignore any # requests to do so. # # The purpose of this module is that applications using pySerial can connect to # TCP/IP to serial port converters that do not support RFC 2217. # # T...
37.56196
102
0.569204
414027c6232843f2d07aa824dbc600b01a1be8f9
1,190
py
Python
00_PythonPrimer/pythonprimer.py
caspar/PhysicsLab
1b4d45d9e915a84ecb80a39498850463bbc2d3be
[ "MIT" ]
1
2016-05-08T19:42:20.000Z
2016-05-08T19:42:20.000Z
00_PythonPrimer/pythonprimer.py
caspar/PhysicsLab
1b4d45d9e915a84ecb80a39498850463bbc2d3be
[ "MIT" ]
null
null
null
00_PythonPrimer/pythonprimer.py
caspar/PhysicsLab
1b4d45d9e915a84ecb80a39498850463bbc2d3be
[ "MIT" ]
null
null
null
#Lab 0 #coding=utf-8 #Author Caspar Lant import numpy as np; import matplotlib.pyplot as plt; # load csv DATA = "SampleData-1.csv"; measurement, temperature, pressure, uncertainty, error = np.loadtxt(DATA, skiprows=5, unpack=True, delimiter=','); # plot data # plt.xlabel("Temperature ($^\circ$C)"); # plt.ylabel("Pres...
26.444444
126
0.582353
8619a4378c2a4f736f26de61a365992dfca06c8f
15,414
py
Python
Apps/phthreatminer/threatminer.py
mattsayar-splunk/phantom-apps
b719b78ded609ae3cbd62d7d2cc317db1a613d3b
[ "Apache-2.0" ]
74
2019-10-22T02:00:53.000Z
2022-03-15T12:56:13.000Z
Apps/phthreatminer/threatminer.py
mattsayar-splunk/phantom-apps
b719b78ded609ae3cbd62d7d2cc317db1a613d3b
[ "Apache-2.0" ]
375
2019-10-22T20:53:50.000Z
2021-11-09T21:28:43.000Z
Apps/phthreatminer/threatminer.py
mattsayar-splunk/phantom-apps
b719b78ded609ae3cbd62d7d2cc317db1a613d3b
[ "Apache-2.0" ]
175
2019-10-23T15:30:42.000Z
2021-11-05T21:33:31.000Z
# Copyright (c) 2019 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # # Threat Miner Class import requests import logging import json import time # Establish Logging. logging.basicConfig() logger = logging.getLogger('ThreatMiner') class threatMiner(): def __init__( ...
35.846512
79
0.542494
d273febec5691a9757874476ddec831c480f3597
16,511
py
Python
yolo3/model.py
tantao258/keras-yolo3
cf5222e419903fc6b9e2388a6fff65bc3e001e07
[ "MIT" ]
null
null
null
yolo3/model.py
tantao258/keras-yolo3
cf5222e419903fc6b9e2388a6fff65bc3e001e07
[ "MIT" ]
null
null
null
yolo3/model.py
tantao258/keras-yolo3
cf5222e419903fc6b9e2388a6fff65bc3e001e07
[ "MIT" ]
null
null
null
"""YOLO_v3 Model Defined in Keras.""" from functools import wraps import numpy as np import tensorflow as tf from keras import backend as K from keras.layers import Conv2D, Add, ZeroPadding2D, UpSampling2D, Concatenate, MaxPooling2D from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalizati...
39.594724
126
0.627582
da8931fcedd8fcaeee4024f2d348487d0795b706
17,380
py
Python
geoprisma/migrations/0001_initial.py
groupe-conseil-nutshimit-nippour/django-geoprisma
4732fdb8a0684eb4d7fd50aa43e11b454ee71d08
[ "BSD-3-Clause" ]
null
null
null
geoprisma/migrations/0001_initial.py
groupe-conseil-nutshimit-nippour/django-geoprisma
4732fdb8a0684eb4d7fd50aa43e11b454ee71d08
[ "BSD-3-Clause" ]
5
2020-02-12T00:23:17.000Z
2021-12-13T19:46:33.000Z
geoprisma/migrations/0001_initial.py
groupe-conseil-nutshimit-nippour/django-geoprisma
4732fdb8a0684eb4d7fd50aa43e11b454ee71d08
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.contrib.gis.db.models.fields class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='AccessFilter', field...
41.380952
135
0.521979
e1d66504ed6e3cf6f58939c3bb4e5af129e6eafc
5,561
py
Python
technix/de.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
1
2021-03-05T07:44:05.000Z
2021-03-05T07:44:05.000Z
technix/de.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
3
2017-06-04T03:01:31.000Z
2017-08-04T04:04:37.000Z
technix/de.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
null
null
null
from __future__ import print_function, division import os import sys sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "bigfatnoob" from utils.lib import O from utils.stats import Statistics import time from technix.tech_utils import Point, seed from utils import plotter from technix...
30.723757
119
0.655458
538eba307a72a7b359bf008d7e76bf9ff168a42f
296
py
Python
Exe10_valores_listas_intercalados.py
lucaslk122/Exercicios-com-lista
3e614a865f93afa2ff6a32f8da04abb0c0716cdc
[ "MIT" ]
null
null
null
Exe10_valores_listas_intercalados.py
lucaslk122/Exercicios-com-lista
3e614a865f93afa2ff6a32f8da04abb0c0716cdc
[ "MIT" ]
null
null
null
Exe10_valores_listas_intercalados.py
lucaslk122/Exercicios-com-lista
3e614a865f93afa2ff6a32f8da04abb0c0716cdc
[ "MIT" ]
null
null
null
lista1 =[] lista2 =[] lista = [] for i in range(10): lista1.append(int(input("Digite um valor para a primeira lista: "))) lista2.append(int(input("Digite um valor para a segunda lista: "))) lista.append(lista1[i]) lista.append(lista2[i]) print(lista1) print(lista2) print(lista)
22.769231
72
0.672297
ace1d0808da54be32089b17b4052b53fb8f1572f
32,295
py
Python
plugins/modules/oci_mysql_db_system_facts.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_mysql_db_system_facts.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_mysql_db_system_facts.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
41.245211
160
0.507168
ca4996994e1f60cce2245ca1aa2bdda3a183044b
738
py
Python
tools/distrib/python/grpcio_tools/grpc_version.py
wjbbupt/grpc
75f71aa4177f65de34b5d2674d83552f28bc0a07
[ "Apache-2.0" ]
1
2021-03-20T03:21:57.000Z
2021-03-20T03:21:57.000Z
tools/distrib/python/grpcio_tools/grpc_version.py
wjbbupt/grpc
75f71aa4177f65de34b5d2674d83552f28bc0a07
[ "Apache-2.0" ]
null
null
null
tools/distrib/python/grpcio_tools/grpc_version.py
wjbbupt/grpc
75f71aa4177f65de34b5d2674d83552f28bc0a07
[ "Apache-2.0" ]
1
2021-05-21T14:51:45.000Z
2021-05-21T14:51:45.000Z
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
38.842105
106
0.761518
665ec765dace39dd418d89982c5453e67dc6398f
4,044
py
Python
printing/src/printing_manager/console.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2016-10-30T09:51:06.000Z
2016-10-30T09:51:06.000Z
printing/src/printing_manager/console.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2015-12-29T18:51:07.000Z
2015-12-29T18:51:07.000Z
printing/src/printing_manager/console.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2018-01-26T12:54:13.000Z
2018-01-26T12:54:13.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Colony Framework # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Colony Framework. # # Hive Colony Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
32.352
96
0.607072
2835ebc0d4fcde493b00e4b7706c9269f8f1b8a6
2,162
py
Python
Login/app.py
alexis51151/FlaskEntrance
d0942467fffecf02e9da3cd49679a16545f24587
[ "Apache-2.0" ]
null
null
null
Login/app.py
alexis51151/FlaskEntrance
d0942467fffecf02e9da3cd49679a16545f24587
[ "Apache-2.0" ]
null
null
null
Login/app.py
alexis51151/FlaskEntrance
d0942467fffecf02e9da3cd49679a16545f24587
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, flash, redirect, url_for from flask_login import LoginManager, login_required, login_user # authentication from forms import LoginForm, RegistrationForm # secure login form from flask_debugtoolbar import DebugToolbarExtension # for debug # Imports from project files from mo...
26.365854
82
0.679926
574f420acc03054be825f5636ecfea911c2ea9df
190
py
Python
pkg/formatters/simple.py
zhutao100/markdown_articles_tool
9e7476567ac7b5c5cdf2dfd235f0663260d96aca
[ "MIT" ]
41
2020-09-22T12:21:24.000Z
2022-03-27T06:54:45.000Z
pkg/formatters/simple.py
zhutao100/markdown_articles_tool
9e7476567ac7b5c5cdf2dfd235f0663260d96aca
[ "MIT" ]
11
2020-11-10T02:40:08.000Z
2022-03-24T16:20:31.000Z
pkg/formatters/simple.py
zhutao100/markdown_articles_tool
9e7476567ac7b5c5cdf2dfd235f0663260d96aca
[ "MIT" ]
9
2021-02-20T00:23:06.000Z
2022-03-21T11:39:08.000Z
""" Simple formatter. """ class SimpleFormatter: """ Writes lines, "as is". """ format = 'md' @staticmethod def write(lines): return lines.encode('utf8')
11.875
35
0.547368
f05c5ea6f7b37e1748e5d6c249a13e1427557056
876
py
Python
doc/ioman/server.py
nandun/gxp
8dd9d396102e254cb4712fe572b64e398a5f069b
[ "BSD-3-Clause" ]
2
2020-03-16T11:37:13.000Z
2020-05-15T10:10:56.000Z
doc/ioman/server.py
nandun/gxp
8dd9d396102e254cb4712fe572b64e398a5f069b
[ "BSD-3-Clause" ]
null
null
null
doc/ioman/server.py
nandun/gxp
8dd9d396102e254cb4712fe572b64e398a5f069b
[ "BSD-3-Clause" ]
1
2017-05-12T02:42:35.000Z
2017-05-12T02:42:35.000Z
import socket,sys sys.path.append("../..") import ioman m = ioman.ioman() ch_sock = m.make_server_sock(socket.AF_INET, socket.SOCK_STREAM, ("",0), 1) ip,port = ch_sock.getsockname() print "server listening on %s, please connect to it (perhaps by 'nc localhost %d')" % (port, port) # wait for connection to come conn...
27.375
98
0.631279
68f6ea239fb4d1dada881ddefe09ea892649d1f5
3,886
py
Python
echo360/course.py
RenWal/echo360
076368f130a7458373d8ec15bff4a0bca8897449
[ "MIT" ]
null
null
null
echo360/course.py
RenWal/echo360
076368f130a7458373d8ec15bff4a0bca8897449
[ "MIT" ]
null
null
null
echo360/course.py
RenWal/echo360
076368f130a7458373d8ec15bff4a0bca8897449
[ "MIT" ]
null
null
null
import json import sys import selenium import logging from echo360.videos import EchoVideos _LOGGER = logging.getLogger(__name__) class EchoCourse(object): def __init__(self, uuid, hostname=None): self._course_id = "" self._course_name = "" self._uuid = uuid self._videos = None ...
34.087719
128
0.585178
494b83673231db880457d034807faecfa24ccdaf
1,006
py
Python
project/manage.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
1
2019-01-15T10:33:10.000Z
2019-01-15T10:33:10.000Z
project/manage.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
project/manage.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
import os import unittest from server import make_server from server.app import db from server.main.models import * from flask_script import Manager, Shell from flask_migrate import Migrate, MigrateCommand app = make_server("default") manager = Manager(app) migrate = Migrate(app, db) def make_shell_context(): ret...
22.863636
78
0.72167
7462fb7bf64a8f4181ced6c4fb74cdd978a6d338
4,052
py
Python
alipay/aop/api/request/AlipayPcreditHuabeiEnterpriseReimburseSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayPcreditHuabeiEnterpriseReimburseSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayPcreditHuabeiEnterpriseReimburseSyncRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayPcreditHuabeiEnterpriseReimburseSyncModel import AlipayPcreditHuabeiEnterpriseReimburseSyncModel class AlipayPcreditHuabeiEnte...
27.944828
148
0.65153
e07435d96097faedd51d0c9c7ebd3d328e0c66fc
2,080
py
Python
lib/surface/ai_platform/versions/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/ai_platform/versions/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/ai_platform/versions/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
32
74
0.786058
7a72997c3007231b0069cfaf8c558174c8bb46a9
396
py
Python
day5/day5a.py
lehoczkics/aoc2020
43e640694d05ffbb47568254aeba6d2b2a89ab04
[ "Unlicense" ]
null
null
null
day5/day5a.py
lehoczkics/aoc2020
43e640694d05ffbb47568254aeba6d2b2a89ab04
[ "Unlicense" ]
null
null
null
day5/day5a.py
lehoczkics/aoc2020
43e640694d05ffbb47568254aeba6d2b2a89ab04
[ "Unlicense" ]
null
null
null
#!/usr/bin/ebv pyhton3 import os mymax = 0 def btd(n): return int(n,2) with open("input1") as f: for line in f: # print(line) rowstr = line[0:7] colstr = line[7:11] # print(rowstr, "-", colstr) # print(btd(rowstr), "-", btd(colstr)) seatid = 8*btd(rowstr) + btd(c...
18
45
0.525253
20412dabe1d517197e3583ddb6069196a7f4fdf1
3,537
py
Python
ntpclient.py
rsmith-nl/scripts
4ad489bc637f20f2865c249025b24cb8aad887ca
[ "MIT" ]
25
2016-02-24T22:55:30.000Z
2022-01-18T08:39:09.000Z
ntpclient.py
rsmith-nl/scripts
4ad489bc637f20f2865c249025b24cb8aad887ca
[ "MIT" ]
4
2019-10-10T17:59:31.000Z
2020-09-04T08:31:15.000Z
ntpclient.py
rsmith-nl/scripts
4ad489bc637f20f2865c249025b24cb8aad887ca
[ "MIT" ]
11
2016-01-09T18:59:21.000Z
2020-10-27T07:00:10.000Z
#!/usr/bin/env python # file: ntpclient.py # vim:fileencoding=utf-8:fdm=marker:ft=python # # Copyright © 2018 R.F. Smith <rsmith@xs4all.nl>. # SPDX-License-Identifier: MIT # Created: 2017-11-16 19:33:50 +0100 # Last modified: 2020-04-01T20:30:30+0200 """ Simple NTP query program. This program does not strive for high a...
31.300885
123
0.620865
9a9ec65f26b15acbb68a9c5ce12df007438f5ae1
1,276
py
Python
Leetcode/src/Linked List/Palindrome_LinkedList.py
QuDong/Algorithm4
c15c27653d860a1cd90a42cf97f7586ced12b48f
[ "MIT" ]
6
2017-07-07T08:10:42.000Z
2019-12-25T21:42:40.000Z
Leetcode/src/Linked List/Palindrome_LinkedList.py
QuDong/Algorithm4
c15c27653d860a1cd90a42cf97f7586ced12b48f
[ "MIT" ]
null
null
null
Leetcode/src/Linked List/Palindrome_LinkedList.py
QuDong/Algorithm4
c15c27653d860a1cd90a42cf97f7586ced12b48f
[ "MIT" ]
1
2021-08-22T06:43:47.000Z
2021-08-22T06:43:47.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 21 10:20:24 2016 @author: dong.qu """ class ListNode(object): def __init__(self, x): self.val = x self.next = None head = ListNode(1) head.next = ListNode(2) head.next.next = ListNode(2) head.next.next.next = ListNode(1) #head.next.next.next....
19.044776
43
0.55094
d4294788fdda66c3d99a1e08534ae99be0caf812
5,632
py
Python
homeassistant/components/satel_integra/alarm_control_panel.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/satel_integra/alarm_control_panel.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
homeassistant/components/satel_integra/alarm_control_panel.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Support for Satel Integra alarm, using ETHM module.""" import asyncio from collections import OrderedDict import logging from satel_integra.satel_integra import AlarmState import homeassistant.components.alarm_control_panel as alarm from homeassistant.components.alarm_control_panel.const import ( SUPPORT_ALARM...
32.367816
86
0.665305
387dd2f5f55960e8757d847c6e921a5678e17113
2,457
py
Python
tools/deploy/caffe_export.py
UU-tracktech/fast-reid
8e367315fc3b95d326fc37a9bde7b83f90eaf825
[ "Apache-2.0" ]
null
null
null
tools/deploy/caffe_export.py
UU-tracktech/fast-reid
8e367315fc3b95d326fc37a9bde7b83f90eaf825
[ "Apache-2.0" ]
null
null
null
tools/deploy/caffe_export.py
UU-tracktech/fast-reid
8e367315fc3b95d326fc37a9bde7b83f90eaf825
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @author: xingyu liao @contact: sherlockliao01@gmail.com """ import argparse import logging import sys import torch sys.path.append('.') import pytorch_to_caffe from processor.pipeline.reidentification.fastreid.fastreid.config import get_cfg from processor.pipeline.reidentification.fastreid.fa...
28.569767
113
0.715914
353ae9f0ccfd6fb47bd14f6304a4a3ff1c2ea0a4
4,849
py
Python
marketdata/history.py
Haynie-Research-and-Development/stock-data
7bcef34cbee73d66fd222bfd3d562ef0409108c9
[ "Apache-2.0" ]
9
2020-12-09T08:31:16.000Z
2021-11-28T08:47:49.000Z
marketdata/history.py
Haynie-Research-and-Development/stock-data
7bcef34cbee73d66fd222bfd3d562ef0409108c9
[ "Apache-2.0" ]
1
2021-01-21T22:10:17.000Z
2021-01-21T22:10:17.000Z
marketdata/history.py
Haynie-Research-and-Development/stock-data
7bcef34cbee73d66fd222bfd3d562ef0409108c9
[ "Apache-2.0" ]
1
2020-08-20T20:35:33.000Z
2020-08-20T20:35:33.000Z
#********************************************************** #* CATEGORY SOFTWARE #* GROUP MARKET DATA #* AUTHOR LANCE HAYNIE <LANCE@HAYNIEMAIL.COM> #* FILE HISTORY.PY #********************************************************** #ETL Stock Market Data #Copyright 2020 Haynie IPHC, LLC #Developed by Haynie Research & Deve...
34.147887
139
0.518251
6a6fcc84ce162db3eebc3425bdd0b25fda9ace54
2,760
py
Python
kolibri/core/deviceadmin/management/commands/dbrestore.py
jonboiser/kolibri
8ea2febc1739ac772007aae4084f0226dfb4ed40
[ "MIT" ]
1
2021-03-26T03:44:24.000Z
2021-03-26T03:44:24.000Z
kolibri/core/deviceadmin/management/commands/dbrestore.py
jonboiser/kolibri
8ea2febc1739ac772007aae4084f0226dfb4ed40
[ "MIT" ]
5
2016-01-22T18:43:44.000Z
2019-07-25T20:34:16.000Z
kolibri/core/deviceadmin/management/commands/dbrestore.py
jonboiser/kolibri
8ea2febc1739ac772007aae4084f0226dfb4ed40
[ "MIT" ]
1
2019-11-12T14:00:30.000Z
2019-11-12T14:00:30.000Z
from __future__ import absolute_import, print_function, unicode_literals import logging import os import kolibri from django.core.management.base import BaseCommand, CommandError from kolibri.utils import server from ...utils import dbrestore, default_backup_folder, search_latest logger = logging.getLogger(__name__...
31.011236
79
0.582971
3e20e973929d9ccbe1ad0adee5301fc494dc6635
819
py
Python
profiles_project/urls.py
sachmesachi/profiles-rest-api
1717488d9accd358bc1521857472046a52368ca8
[ "MIT" ]
null
null
null
profiles_project/urls.py
sachmesachi/profiles-rest-api
1717488d9accd358bc1521857472046a52368ca8
[ "MIT" ]
null
null
null
profiles_project/urls.py
sachmesachi/profiles-rest-api
1717488d9accd358bc1521857472046a52368ca8
[ "MIT" ]
null
null
null
"""profiles_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
32.76
77
0.704518
21900d4ac92a6dbb8b05635203d2d1925e3a37a1
1,355
py
Python
book_init.py
Alwaysproblem/COMP9900-proj
34f10ca8c18c8e8f26b9ce5b7be39c1e05781597
[ "MIT" ]
3
2019-01-22T00:41:20.000Z
2022-03-03T15:23:09.000Z
book_init.py
Alwaysproblem/COMP9900-proj
34f10ca8c18c8e8f26b9ce5b7be39c1e05781597
[ "MIT" ]
null
null
null
book_init.py
Alwaysproblem/COMP9900-proj
34f10ca8c18c8e8f26b9ce5b7be39c1e05781597
[ "MIT" ]
null
null
null
import os, re, sqlite3, uuid conn = sqlite3.connect('book.db',detect_types=sqlite3.PARSE_DECLTYPES,check_same_thread=False) def create_table(): conn.execute("drop table if exists booking") conn.execute('''create table booking ( ID primary key not null, HouseID char(50),...
30.795455
113
0.573432
bb30f75fb05170045d8b43de9ca6df17649a432c
9,649
py
Python
docs/html/conf.py
grimreaper/pip
7420629800b10d117d3af3b668dbe99b475fcbc0
[ "MIT" ]
1
2019-12-20T05:27:25.000Z
2019-12-20T05:27:25.000Z
docs/html/conf.py
grimreaper/pip
7420629800b10d117d3af3b668dbe99b475fcbc0
[ "MIT" ]
7
2019-12-27T07:56:50.000Z
2022-01-25T03:41:39.000Z
docs/html/conf.py
grimreaper/pip
7420629800b10d117d3af3b668dbe99b475fcbc0
[ "MIT" ]
1
2020-02-14T16:53:19.000Z
2020-02-14T16:53:19.000Z
# -*- coding: utf-8 -*- # # pip documentation build configuration file, created by # sphinx-quickstart on Tue Apr 22 22:08:49 2008 # # This file is execfile()d with the current directory set to its containing dir # # Note that not all possible configuration values are present in this # autogenerated file. # # All confi...
33.044521
79
0.693025
6ee0f1a3a900846a7ac90bf878536619733799a9
284
py
Python
basic/MultipleElifs.py
tonper19/PythonDemos
633a40e282049e511fd965c0afe104e775a2f526
[ "MIT" ]
null
null
null
basic/MultipleElifs.py
tonper19/PythonDemos
633a40e282049e511fd965c0afe104e775a2f526
[ "MIT" ]
null
null
null
basic/MultipleElifs.py
tonper19/PythonDemos
633a40e282049e511fd965c0afe104e775a2f526
[ "MIT" ]
null
null
null
color = input("What's your favorite color?") if color == 'purple': print('excelent choice!') elif color == 'teal': print('not bad!') elif color == 'seafoam': print('mediocre') elif color == 'pure darkness': print('i like how you think') else: print('YOU MONSTER!')
25.818182
44
0.626761
8283758e7b4b37af5b61603eddfff0bb9fbd3020
754
py
Python
examples/bme280.py
kungpfui/python-i2cmod
57d9cc8de372aa38526c3503ceec0d8924665c04
[ "MIT" ]
null
null
null
examples/bme280.py
kungpfui/python-i2cmod
57d9cc8de372aa38526c3503ceec0d8924665c04
[ "MIT" ]
null
null
null
examples/bme280.py
kungpfui/python-i2cmod
57d9cc8de372aa38526c3503ceec0d8924665c04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Bosch Sensortec BME280 pressure, temperature and humidity sensor. `BME280 Datasheet <https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-12.pdf>` """ from i2cmod import BME280 def example(): """ Output data to screen """ with BM...
29
107
0.632626
122cc54134b401e83f297392b3b4722358f181c9
11,203
py
Python
kolibri/core/content/models.py
reubenjacob/kolibri
028bb2ad63e438c832ff657d37f7b05c3400f2da
[ "MIT" ]
null
null
null
kolibri/core/content/models.py
reubenjacob/kolibri
028bb2ad63e438c832ff657d37f7b05c3400f2da
[ "MIT" ]
3
2016-09-13T15:15:03.000Z
2018-10-06T15:54:44.000Z
kolibri/core/content/models.py
indirectlylit/kolibri
d00f070040fec63003c8e7f124ea89bc710a83c4
[ "MIT" ]
null
null
null
""" These models are used in the databases of content that get imported from Studio. Any fields added here (and not in base_models.py) are assumed to be locally calculated cached fields. If a field is intended to be imported from a content database generated by Studio, it should be added in base_models.py. *DEVELOPER...
33.845921
118
0.668392
319971e2b715159eadf6f48530ee23b336f2194e
5,648
py
Python
webwhatsapi/objects/message.py
uae0786/WhatsApp-Auto-Reply
f55c0e376663282cab78f81d01ab24b3cdb4e59d
[ "MIT" ]
3
2018-04-11T03:02:30.000Z
2018-05-19T13:26:31.000Z
webwhatsapi/objects/message.py
uae0786/WhatsApp-Auto-Reply
f55c0e376663282cab78f81d01ab24b3cdb4e59d
[ "MIT" ]
null
null
null
webwhatsapi/objects/message.py
uae0786/WhatsApp-Auto-Reply
f55c0e376663282cab78f81d01ab24b3cdb4e59d
[ "MIT" ]
7
2018-04-11T09:00:38.000Z
2021-01-23T08:58:46.000Z
from datetime import datetime import mimetypes import os import pprint from webwhatsapi.helper import safe_str pprint = pprint.PrettyPrinter(indent=4).pprint from webwhatsapi.objects.whatsapp_object import WhatsappObjectWithoutID, driver_needed from webwhatsapi.objects.contact import Contact class MessageMetaClass(ty...
32.837209
125
0.607649
bcc313d30a411be3bcf49632c6a04032b3428f6d
4,719
py
Python
landlab/components/stream_power/examples/perturb_sed_flux_dep.py
awickert/landlab
496de56717a5877db96f354a1b1285bfabe8b56f
[ "MIT" ]
1
2015-08-17T19:29:50.000Z
2015-08-17T19:29:50.000Z
landlab/components/stream_power/examples/perturb_sed_flux_dep.py
awickert/landlab
496de56717a5877db96f354a1b1285bfabe8b56f
[ "MIT" ]
1
2018-04-07T08:24:56.000Z
2018-04-07T13:52:03.000Z
landlab/components/stream_power/examples/perturb_sed_flux_dep.py
awickert/landlab
496de56717a5877db96f354a1b1285bfabe8b56f
[ "MIT" ]
2
2017-07-03T20:21:13.000Z
2018-09-06T23:58:19.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from six.moves import range from landlab.components.flow_routing import FlowRouter from landlab.components.stream_power import SedDepEroder from landlab import ModelParameterDictionary from landlab.plot import imshow from landlab.plot.video_out import Vide...
34.698529
103
0.706718
b38b02334bf41174bbfd8ff4ac807e8430936f4f
2,574
py
Python
pyActionRec/action_caffe.py
zhoutianyi1/caffe_feature
88405029404cb9b075f3057ce2f8ef2610a623a9
[ "BSD-2-Clause" ]
null
null
null
pyActionRec/action_caffe.py
zhoutianyi1/caffe_feature
88405029404cb9b075f3057ce2f8ef2610a623a9
[ "BSD-2-Clause" ]
null
null
null
pyActionRec/action_caffe.py
zhoutianyi1/caffe_feature
88405029404cb9b075f3057ce2f8ef2610a623a9
[ "BSD-2-Clause" ]
null
null
null
from .config import ANET_CFG import sys sys.path.append(ANET_CFG.CAFFE_ROOT+'/python') import caffe from caffe.io import oversample import numpy as np from utils.io import flow_stack_oversample import cv2 class CaffeNet(object): def __init__(self, net_proto, net_weights, device_id, input_size=None): c...
34.32
118
0.634421
b2e21a56382ee21307579eadd5fe8bcd77723a99
350
py
Python
assignment3/myapp/migrations/0012_alter_winsmodel_options.py
spencerleff/Spence-Tac-Toe
f85c29d37b4441055a1c93e729dffab0499a7626
[ "MIT" ]
null
null
null
assignment3/myapp/migrations/0012_alter_winsmodel_options.py
spencerleff/Spence-Tac-Toe
f85c29d37b4441055a1c93e729dffab0499a7626
[ "MIT" ]
null
null
null
assignment3/myapp/migrations/0012_alter_winsmodel_options.py
spencerleff/Spence-Tac-Toe
f85c29d37b4441055a1c93e729dffab0499a7626
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-09 01:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myapp', '0011_alter_winsmodel_options'), ] operations = [ migrations.AlterModelOptions( name='winsmodel', options={'ordering':...
19.444444
50
0.594286
f92bda7131e208a4f706610c79d6080eb6f7d565
543
py
Python
manage.py
ChenSunMac/EZonlineEdu
bae3dc82a357e7bc0e60dab1f2f1105343aa752e
[ "MIT" ]
null
null
null
manage.py
ChenSunMac/EZonlineEdu
bae3dc82a357e7bc0e60dab1f2f1105343aa752e
[ "MIT" ]
null
null
null
manage.py
ChenSunMac/EZonlineEdu
bae3dc82a357e7bc0e60dab1f2f1105343aa752e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "EZonlineEdu.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. ...
33.9375
75
0.688766
ea3735ed21cda47b20366ab9a2887e4217d15dc4
516
py
Python
osf/migrations/0191_abstractnode_external_registered_date.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
osf/migrations/0191_abstractnode_external_registered_date.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
osf/migrations/0191_abstractnode_external_registered_date.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-10-21 18:50 from __future__ import unicode_literals from django.db import migrations import osf.utils.fields class Migration(migrations.Migration): dependencies = [ ('osf', '0189_deleted_field_data'), ] operations = [ migrati...
23.454545
80
0.651163
7c4466dbfc48531f1e2bf47d8d750fd61050323d
783
py
Python
semantic_seg/tools/imports.py
Megvii-BaseDetection/DisAlign
a2fc3500a108cb83e3942293a5675c97ab3a2c6e
[ "Apache-2.0" ]
91
2021-03-29T08:58:00.000Z
2022-03-30T02:42:29.000Z
semantic_seg/tools/imports.py
Megvii-BaseDetection/DisAlign
a2fc3500a108cb83e3942293a5675c97ab3a2c6e
[ "Apache-2.0" ]
22
2021-04-07T02:40:52.000Z
2022-03-03T07:53:21.000Z
semantic_seg/tools/imports.py
Megvii-BaseDetection/DisAlign
a2fc3500a108cb83e3942293a5675c97ab3a2c6e
[ "Apache-2.0" ]
8
2021-08-02T03:43:32.000Z
2022-02-24T09:04:46.000Z
# Borrowed from cvpods: https://github.com/Megvii-BaseDetection/cvpods/blob/master/cvpods/utils/imports.py import importlib import os.path as osp def dynamic_import(config_path): """ Dynamic import a project. Args: config_name (str): module name config_path (str): the dir that contains th...
35.590909
106
0.678161
669bbd49b5ec36c8450e8d23d12d8926e0f08d2c
268
py
Python
EJERCICIOS/Ejercicio_4.py
DiegoC386/Taller-de-Estrucuras-de-Control-Repeticion
874fb29c5a50398290db631b6ad307c9ec228b1e
[ "MIT" ]
null
null
null
EJERCICIOS/Ejercicio_4.py
DiegoC386/Taller-de-Estrucuras-de-Control-Repeticion
874fb29c5a50398290db631b6ad307c9ec228b1e
[ "MIT" ]
null
null
null
EJERCICIOS/Ejercicio_4.py
DiegoC386/Taller-de-Estrucuras-de-Control-Repeticion
874fb29c5a50398290db631b6ad307c9ec228b1e
[ "MIT" ]
null
null
null
""" Calcular el término doceavo y la suma de los doce primeros términos de la sucesión: 6, 11, 16, 21. Respuesta: a12=61, suma=402. """ a1=int(input("Ingrese primer termino: ")) a12=int(input("Ingrese ultimo termino: ")) NumTer=12 Suma=((a1+a12)*NumTer)/2 print(Suma)
24.363636
58
0.708955
8e010105b490b29a6cf81ceaedaad83237dafa3e
828
py
Python
xonotic_radio/util.py
z/xonotic-radio-service
90ca68acbc12739bb634c4d66a2862326c7195d8
[ "MIT" ]
1
2021-02-17T20:20:28.000Z
2021-02-17T20:20:28.000Z
xonotic_radio/util.py
z/xonotic-radio-service
90ca68acbc12739bb634c4d66a2862326c7195d8
[ "MIT" ]
null
null
null
xonotic_radio/util.py
z/xonotic-radio-service
90ca68acbc12739bb634c4d66a2862326c7195d8
[ "MIT" ]
1
2016-05-05T13:12:30.000Z
2016-05-05T13:12:30.000Z
import configparser import time import sys import os def reporthook(count, block_size, total_size): global start_time if count == 0: start_time = time.time() return duration = time.time() - start_time progress_size = int(count * block_size) speed = int(progress_size / (1024 * dur...
25.090909
78
0.649758
130acbc4b3963e9a1c661c33e08469a5f9448b7c
2,393
py
Python
parse.py
jbbrokaw/table-of-authorities
758d4808403c88c909c24ff308c24be305242ebd
[ "MIT" ]
null
null
null
parse.py
jbbrokaw/table-of-authorities
758d4808403c88c909c24ff308c24be305242ebd
[ "MIT" ]
null
null
null
parse.py
jbbrokaw/table-of-authorities
758d4808403c88c909c24ff308c24be305242ebd
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals import re ALLOWED_SYMBOLS = {'&'} ABBREVIATIONS = {'Co.', 'U.S.', 'Corp.', 'Inc.', 'Dist.'} LOWERCASE_WORDS = {'the', 'a', 'an', 'and', 'of'} CLAUSE_ENDERS = {'.', ';'} def title_word(wor...
27.825581
68
0.568742
f02e332b3488e9c5bfee9e240621b56afa30e873
6,241
py
Python
msvd/train_model.py
WingsBrokenAngel/general-professional-learning-model
c4b892033b814b99c36f1f33b36df787f715ff14
[ "MIT" ]
39
2020-01-03T09:46:53.000Z
2022-01-26T14:00:31.000Z
msvd/train_model.py
WingsBrokenAngel/general-professional-learning-model
c4b892033b814b99c36f1f33b36df787f715ff14
[ "MIT" ]
7
2020-02-21T09:21:56.000Z
2020-10-13T05:59:15.000Z
msvd/train_model.py
WingsBrokenAngel/general-professional-learning-model
c4b892033b814b99c36f1f33b36df787f715ff14
[ "MIT" ]
13
2020-01-21T07:54:17.000Z
2021-11-27T10:02:34.000Z
# -*- coding: utf-8 -*- # Author: Haoran Chen # Date: 2019-09-17 import tensorflow as tf import pickle import numpy as np import sys from pprint import pprint from collections import defaultdict import time sys.path.append('..') from utils import * np.random.seed(42) data_dict = None model = None options = None METR...
39.251572
89
0.591412
457e20cb169349326f042d6e1bc0cb7e823985d2
496
py
Python
qupang/images/migrations/0004_auto_20190222_0010.py
kibinlee/qupang
3d9529c5079e0fd1b2c02dd5b237d2e784065ee3
[ "MIT" ]
null
null
null
qupang/images/migrations/0004_auto_20190222_0010.py
kibinlee/qupang
3d9529c5079e0fd1b2c02dd5b237d2e784065ee3
[ "MIT" ]
null
null
null
qupang/images/migrations/0004_auto_20190222_0010.py
kibinlee/qupang
3d9529c5079e0fd1b2c02dd5b237d2e784065ee3
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-02-21 15:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('images', '0003_auto_20190221_2330'), ] operations = [ migrations.RenameField( model_name='comment', old_name='Image', ...
20.666667
48
0.548387
f585af08941d1d1545220bda4887eda90f9f1745
4,523
py
Python
libs/yolo_io.py
yangjjie94/labelSeries
620372b7d21e410efb009500fdd6cdc668e92106
[ "MIT" ]
11
2018-10-17T08:57:27.000Z
2020-08-07T02:43:31.000Z
libs/yolo_io.py
yangjjie94/labelSeries
620372b7d21e410efb009500fdd6cdc668e92106
[ "MIT" ]
null
null
null
libs/yolo_io.py
yangjjie94/labelSeries
620372b7d21e410efb009500fdd6cdc668e92106
[ "MIT" ]
7
2018-08-13T01:51:02.000Z
2019-11-27T13:36:53.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import sys import os from xml.etree import ElementTree from xml.etree.ElementTree import Element, SubElement from lxml import etree import codecs TXT_EXT = '.txt' ENCODE_METHOD = 'utf-8' class YOLOWriter: def __init__(self, foldername, filename, imgSize, databaseSrc='...
32.078014
102
0.586115
cf295c7634d1e5d3f5fcad4c1172d59b932de150
2,136
py
Python
src/sco/code_gen/gen_operations_code.py
HARPLab/trajopt
40e2260d8f1e4d0a6a7a8997927bd65e5f36c3a4
[ "BSD-2-Clause" ]
250
2015-01-13T04:38:59.000Z
2022-03-09T15:52:54.000Z
src/sco/code_gen/gen_operations_code.py
HARPLab/trajopt
40e2260d8f1e4d0a6a7a8997927bd65e5f36c3a4
[ "BSD-2-Clause" ]
31
2015-08-19T13:14:56.000Z
2022-03-22T08:08:26.000Z
src/sco/code_gen/gen_operations_code.py
HARPLab/trajopt
40e2260d8f1e4d0a6a7a8997927bd65e5f36c3a4
[ "BSD-2-Clause" ]
118
2015-01-08T16:06:50.000Z
2022-03-19T11:44:00.000Z
addition_overloads = """ inline AffExpr operator+(const Var& x, double y) { return exprAdd(AffExpr(x), y); } inline AffExpr operator+(const AffExpr& x, double y) { return exprAdd(x, y); } inline QuadExpr operator+(const QuadExpr& x, double y) { return exprAdd(x, y); } inline AffExpr operator+(const Var& x, co...
22.967742
105
0.683989
1b7acf468bb0b56d3a499d5c9591f90799cfd99a
9,077
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dvmdb_folder.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dvmdb_folder.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dvmdb_folder.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2021 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
31.3
153
0.565936
6b85754033a054d088d7c35f4c4f0fa91ee23d2e
13,195
py
Python
v2.5.7/toontown/estate/BankGUI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/estate/BankGUI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/estate/BankGUI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.gui.DirectGui import * from panda3d.core import * from direct.directnotify import DirectNotifyGlobal from toontown.toonbase import ToontownGlobals from toontown.toonbase import TTLocalizer from direct.task.Task import Task class BankGui(DirectFrame): notify = DirectNotifyGlobal.directNotify.newCategory...
74.129213
301
0.363698
f21502b44f2b67fb195d72cdb7238766c635f7e7
793
py
Python
kentik_synth_client/synth_tests/ip.py
kentik/synth_tools
6551e9caf049e4592da4c28e23341d99fac08d58
[ "Apache-2.0" ]
2
2021-10-20T01:01:21.000Z
2022-02-21T22:02:26.000Z
kentik_synth_client/synth_tests/ip.py
kentik/synth_tools
6551e9caf049e4592da4c28e23341d99fac08d58
[ "Apache-2.0" ]
null
null
null
kentik_synth_client/synth_tests/ip.py
kentik/synth_tools
6551e9caf049e4592da4c28e23341d99fac08d58
[ "Apache-2.0" ]
1
2021-11-02T01:46:41.000Z
2021-11-02T01:46:41.000Z
from dataclasses import dataclass, field from typing import List, Type, TypeVar from kentik_synth_client.types import * from .base import PingTraceTest, PingTraceTestSettings, sort_ip_address_list @dataclass class IPTestSettings(PingTraceTestSettings): ip: dict = field(default_factory=dict) IPTestType = TypeV...
29.37037
114
0.752837
2528468d38953b37d009f0420915c8593a40d39e
11,271
py
Python
Bio/SeqIO/XdnaIO.py
gtsueng/biopython
4b2adc9f52ae1eda123744a8f4af7c2150505de1
[ "BSD-3-Clause" ]
1
2020-11-27T15:46:03.000Z
2020-11-27T15:46:03.000Z
Bio/SeqIO/XdnaIO.py
gtsueng/biopython
4b2adc9f52ae1eda123744a8f4af7c2150505de1
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqIO/XdnaIO.py
gtsueng/biopython
4b2adc9f52ae1eda123744a8f4af7c2150505de1
[ "BSD-3-Clause" ]
1
2021-01-07T07:55:09.000Z
2021-01-07T07:55:09.000Z
# Copyright 2017-2019 Damien Goutte-Gattat. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Bio.SeqIO su...
36.009585
132
0.62541
747cae9b64eb3032e71498dd3dad7880cdc010c4
760
bzl
Python
third_party/tf_runtime/workspace.bzl
zebrajr/tensorflow
d1f3ce8b2bc17e7c885266058dd9a4b74dc8e5e5
[ "Apache-2.0" ]
null
null
null
third_party/tf_runtime/workspace.bzl
zebrajr/tensorflow
d1f3ce8b2bc17e7c885266058dd9a4b74dc8e5e5
[ "Apache-2.0" ]
null
null
null
third_party/tf_runtime/workspace.bzl
zebrajr/tensorflow
d1f3ce8b2bc17e7c885266058dd9a4b74dc8e5e5
[ "Apache-2.0" ]
null
null
null
"""Provides the repository macro to import TFRT.""" load("//third_party:repo.bzl", "tf_http_archive") def repo(): """Imports TFRT.""" # Attention: tools parse and update these lines. TFRT_COMMIT = "0f09e1bfa72855b9f00c28dd95a95f848c42170c" TFRT_SHA256 = "21923a998212b9b1f3b05b4cf00f18c5e5c866b54fc603...
36.190476
126
0.680263
bb4cd6e251487ed0805a7f28bfb750bc1f2d0f4a
1,488
py
Python
back/disorders/migrations/0003_auto_20200721_2328.py
EDario333/idia
21cab7057f924c58ec098c27effcee1a8f0dc94e
[ "BSD-3-Clause" ]
null
null
null
back/disorders/migrations/0003_auto_20200721_2328.py
EDario333/idia
21cab7057f924c58ec098c27effcee1a8f0dc94e
[ "BSD-3-Clause" ]
5
2021-03-11T05:33:41.000Z
2022-02-27T10:21:50.000Z
back/disorders/migrations/0003_auto_20200721_2328.py
EDario333/idia
21cab7057f924c58ec098c27effcee1a8f0dc94e
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.13 on 2020-07-21 23:28 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('axis', '0003_auto_20200721_2328'), ('disorders', '0002_auto_20200618_2224'), ] operations ...
35.428571
169
0.617608
cda70354a39e1bd9a4dba44f74dd4f6d531d4f18
8,578
py
Python
src/dialognlu/models/base_joint_trans.py
hyydrra/dialog-nlu
1a2b8cd18fcdcc3ed6374b83ec23ebd9a1a6d25e
[ "Apache-2.0" ]
null
null
null
src/dialognlu/models/base_joint_trans.py
hyydrra/dialog-nlu
1a2b8cd18fcdcc3ed6374b83ec23ebd9a1a6d25e
[ "Apache-2.0" ]
null
null
null
src/dialognlu/models/base_joint_trans.py
hyydrra/dialog-nlu
1a2b8cd18fcdcc3ed6374b83ec23ebd9a1a6d25e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: mwahdan """ from .nlu_model import NLUModel from .callbacks import F1Metrics import tensorflow as tf import numpy as np import os import json class BaseJointTransformerModel(NLUModel): def __init__(self, config, trans_model=None, is_load=False): self....
45.147368
137
0.653183
b58767a1e21b363730493436c759a12504261ef2
6,986
py
Python
selfdrive/car/car_helpers.py
kss1930/1111
bb095b9b6055888acd14840b191f5332effdae40
[ "MIT" ]
null
null
null
selfdrive/car/car_helpers.py
kss1930/1111
bb095b9b6055888acd14840b191f5332effdae40
[ "MIT" ]
null
null
null
selfdrive/car/car_helpers.py
kss1930/1111
bb095b9b6055888acd14840b191f5332effdae40
[ "MIT" ]
null
null
null
import os from common.params import Params from common.basedir import BASEDIR from selfdrive.version import comma_remote, tested_branch from selfdrive.car.fingerprints import eliminate_incompatible_cars, all_known_cars from selfdrive.car.vin import get_vin, VIN_UNKNOWN from selfdrive.car.fw_versions import get_fw_versi...
35.825641
111
0.716576
0c723e7839651229b2059f11b1a698c979645367
457
py
Python
Python/ex035.py
MarcosRibas/Projeto100Exercicios
15c16eb0d9c4182d93e4bb83e11acad0728f5ec9
[ "MIT" ]
null
null
null
Python/ex035.py
MarcosRibas/Projeto100Exercicios
15c16eb0d9c4182d93e4bb83e11acad0728f5ec9
[ "MIT" ]
null
null
null
Python/ex035.py
MarcosRibas/Projeto100Exercicios
15c16eb0d9c4182d93e4bb83e11acad0728f5ec9
[ "MIT" ]
null
null
null
"""Ex035 Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triangulo.""" print('Analisador de Triângulos') r1 = float(input('Primeiro segmento: ')) r2 = float(input('Segundo segmento: ')) r3 = float(input('Terceiro segmento: ')) if r1 < r2 + r3 and r2 < r1 + r3...
45.7
117
0.713348
6573ae2cf643e1877809b1368bfddb221773239c
189
py
Python
test_funcs/torch2pytorch.py
ahmedshingaly/sketch2shape
128f83d760d215ec7fae35aeb1430512552f2b92
[ "MIT" ]
3
2020-04-07T06:54:47.000Z
2021-06-30T14:14:36.000Z
test_funcs/torch2pytorch.py
ahmedshingaly/sketch2shape
128f83d760d215ec7fae35aeb1430512552f2b92
[ "MIT" ]
1
2020-09-18T01:58:15.000Z
2020-09-18T01:58:15.000Z
test_funcs/torch2pytorch.py
ahmedshingaly/sketch2shape
128f83d760d215ec7fae35aeb1430512552f2b92
[ "MIT" ]
1
2020-09-18T01:58:47.000Z
2020-09-18T01:58:47.000Z
import torch from torch.utils.serialization import load_lua model_path = r"./models_cpu/" model_file = "car_G_cpu.pth.t7" full_path = model_path + model_file model = load_lua(model_file)
21
46
0.78836
a3d81a92715e62dedc56fa54ec582fa484b702e1
894
py
Python
tests/processor/unit/test_scale.py
yubessy/prepkit
5d2732c05288cd2e76d5d3f539210a91b01f5804
[ "MIT" ]
3
2018-01-21T07:21:27.000Z
2018-01-21T11:22:08.000Z
tests/processor/unit/test_scale.py
yubessy/prepkit
5d2732c05288cd2e76d5d3f539210a91b01f5804
[ "MIT" ]
null
null
null
tests/processor/unit/test_scale.py
yubessy/prepkit
5d2732c05288cd2e76d5d3f539210a91b01f5804
[ "MIT" ]
null
null
null
from pandas import Series from pandas.util.testing import assert_series_equal from prepkit.processor.unit.scale import Scale from ..._helper import array_float def test_process(): processor = Scale(minlim=-1, maxlim=1) target = Series([-2.0, -1.0, 0.0, 1.0, 2.0]) result = processor.process(target) e...
28.83871
63
0.692394
0b4c46064eaf3b0a3d4c6a81dd52354c1c6d6973
8,038
py
Python
miprometheus/problems/seq_to_seq/vqa/cog/cog_utils/json_to_img.py
vincentalbouy/mi-prometheus
99a0c94b0d0f3476fa021213b3246fda0db8b2db
[ "Apache-2.0" ]
null
null
null
miprometheus/problems/seq_to_seq/vqa/cog/cog_utils/json_to_img.py
vincentalbouy/mi-prometheus
99a0c94b0d0f3476fa021213b3246fda0db8b2db
[ "Apache-2.0" ]
null
null
null
miprometheus/problems/seq_to_seq/vqa/cog/cog_utils/json_to_img.py
vincentalbouy/mi-prometheus
99a0c94b0d0f3476fa021213b3246fda0db8b2db
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.497854
83
0.643941
ecf1c92f5cb87f2bd7fab685a58a363c73a32613
241
py
Python
Intermediate/map_function.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
Intermediate/map_function.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
Intermediate/map_function.py
BjornChrisnach/Python_6hour_course
0949387c2e423ed0ba7914db7c58af2f913bda1c
[ "MIT" ]
null
null
null
# map function nr3 li = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] def func(x): return x**x # newList = [] # for x in li: # newList.append(func(x)) # print(newList) # print(list(map(func, li))) print([func(x) for x in li if x % 2 == 0])
13.388889
42
0.53527
a57fcea3109f3848bde2b219f47aab5c16c848d0
90
py
Python
src/fermulerpy/__init__.py
Deepthi2001/fermulerpy
5721e2d027598063cb4f2fd3cb5cc79ffd22890b
[ "MIT" ]
null
null
null
src/fermulerpy/__init__.py
Deepthi2001/fermulerpy
5721e2d027598063cb4f2fd3cb5cc79ffd22890b
[ "MIT" ]
null
null
null
src/fermulerpy/__init__.py
Deepthi2001/fermulerpy
5721e2d027598063cb4f2fd3cb5cc79ffd22890b
[ "MIT" ]
null
null
null
""" ========== fermulerpy ========== Python for Number Theory """ __version__ = "0.1.v3"
10
24
0.511111
280ccef1a3f87d042a4365f6e7cc00c4c7d7f03a
539
py
Python
build.py
appimage-conan-community/conan-libappimage
8a616c55f921c3c512139c500fd1f20b763584ea
[ "MIT" ]
null
null
null
build.py
appimage-conan-community/conan-libappimage
8a616c55f921c3c512139c500fd1f20b763584ea
[ "MIT" ]
null
null
null
build.py
appimage-conan-community/conan-libappimage
8a616c55f921c3c512139c500fd1f20b763584ea
[ "MIT" ]
null
null
null
from cpt.packager import ConanMultiPackager if __name__ == "__main__": remotes = [("https://api.bintray.com/conan/bincrafters/public-conan", "yes", "bincrafters"), ("https://api.bintray.com/conan/conan-community/conan", "yes", "conan-community"), ("https://api.bintray.com/conan/appima...
44.916667
106
0.697588
abfb66b1df32bf1a267c99876d5493ed834d4b3a
2,069
py
Python
profiles_api/models.py
jacob-crider/profiles-rest-api
b153dd72fd8c40008967a9c72d0bccc6892d905d
[ "MIT" ]
null
null
null
profiles_api/models.py
jacob-crider/profiles-rest-api
b153dd72fd8c40008967a9c72d0bccc6892d905d
[ "MIT" ]
null
null
null
profiles_api/models.py
jacob-crider/profiles-rest-api
b153dd72fd8c40008967a9c72d0bccc6892d905d
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django.conf import settings class UserProfileManager(BaseUserManager): """Manager for user profiles""" def c...
28.342466
64
0.679072
e13cc0e78dbe71b6276f8f38ebdf62bf15454240
6,203
py
Python
nara_wpe/ntt_wpe.py
oucxlw/nara_wpe
a537e080bc419e5a01e7f83b81e5d8ae058c363c
[ "MIT" ]
344
2018-05-03T00:27:46.000Z
2022-03-28T02:13:54.000Z
nara_wpe/ntt_wpe.py
oucxlw/nara_wpe
a537e080bc419e5a01e7f83b81e5d8ae058c363c
[ "MIT" ]
47
2018-06-27T07:22:53.000Z
2022-02-12T01:18:39.000Z
nara_wpe/ntt_wpe.py
oucxlw/nara_wpe
a537e080bc419e5a01e7f83b81e5d8ae058c363c
[ "MIT" ]
135
2018-05-24T09:14:58.000Z
2022-03-25T02:55:17.000Z
from pathlib import Path from cached_property import cached_property import tempfile import numpy as np import soundfile as sf import click from pymatbridge import Matlab from nara_wpe import project_root def ntt_wrapper( y, taps=10, delay=3, iterations=3, sampling_rate=16000...
29.679426
79
0.516041
b218e09ffae6ab9785c80d4788f224506b18aa03
1,222
py
Python
meiduo_mall/apps/contents/utils.py
MarioKarting/Django_meiduo_project
ef06e70b1ddb6709983ebb644452c980afc29000
[ "MIT" ]
null
null
null
meiduo_mall/apps/contents/utils.py
MarioKarting/Django_meiduo_project
ef06e70b1ddb6709983ebb644452c980afc29000
[ "MIT" ]
null
null
null
meiduo_mall/apps/contents/utils.py
MarioKarting/Django_meiduo_project
ef06e70b1ddb6709983ebb644452c980afc29000
[ "MIT" ]
null
null
null
# !/usr/bin/env python # _*_ coding:utf-8 _*_ from collections import OrderedDict # 封装 商品三级分类查询的数据 函数 def get_categories(): # 1.1 获取频道表的数据 37个频道 goodschannel from apps.goods.models import GoodsChannel # channels = GoodsChannel.objects.order_by('group_id', 'sequence') channels = GoodsChannel.objects.a...
29.095238
70
0.587561
59382594e5677e91521c794a01f57618296bb724
19,227
py
Python
src/sagemaker/fw_utils.py
billdoors/sagemaker-python-sdk
2df8fb616cc3e28032aae5dccdc93a0c340b6d8b
[ "Apache-2.0" ]
null
null
null
src/sagemaker/fw_utils.py
billdoors/sagemaker-python-sdk
2df8fb616cc3e28032aae5dccdc93a0c340b6d8b
[ "Apache-2.0" ]
null
null
null
src/sagemaker/fw_utils.py
billdoors/sagemaker-python-sdk
2df8fb616cc3e28032aae5dccdc93a0c340b6d8b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2020 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" fil...
38.14881
186
0.680449
8523ebc612d1396c62ebce87cce9c107133cd6ed
3,883
py
Python
projects/steganography/dct.py
rossi2018/python-mini-projects
a85c140b990ec9d0fd491da5508fe188278032b0
[ "MIT" ]
2
2022-01-08T16:59:55.000Z
2022-01-08T17:34:28.000Z
projects/steganography/dct.py
rossi2018/python-mini-projects
a85c140b990ec9d0fd491da5508fe188278032b0
[ "MIT" ]
14
2022-02-13T10:28:48.000Z
2022-03-15T21:11:46.000Z
projects/steganography/dct.py
rossi2018/python-mini-projects
a85c140b990ec9d0fd491da5508fe188278032b0
[ "MIT" ]
2
2022-03-09T11:11:57.000Z
2022-03-09T16:23:32.000Z
#!/usr/bin/env python3 # # Copyright(C) 2021 wuyaoping # # DCT algorithm has great a robust but lower capacity. import numpy as np import os.path as osp import cv2 FLAG = '%' # Select a part location from the middle frequency LOC_MAX = (4, 1) LOC_MIN = (3, 2) # The difference between MAX and MIN, # bigger to improve ...
30.335938
87
0.567345
b0410c053cc907d954e523544f4d6943395d6ad6
1,008
py
Python
acq4/analysis/scripts/beamProfiler.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/analysis/scripts/beamProfiler.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/analysis/scripts/beamProfiler.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
from __future__ import print_function from acq4.util import Qt import acq4.Manager import acq4.util.imageAnalysis as imageAnalysis run = True man = acq4.Manager.getManager() cam = man.getDevice('Camera') frames = [] def collect(frame): global frames frames.append(frame) cam.sigNewFrame.connect(collect) ...
23.44186
77
0.574405
706c91fda1a1bbe5f4734eda54106940cbb307dd
1,027
py
Python
aceapi/events/__init__.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
28
2018-08-08T11:57:31.000Z
2022-01-12T23:06:18.000Z
aceapi/events/__init__.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
108
2018-08-08T12:35:06.000Z
2019-07-19T22:57:19.000Z
aceapi/events/__init__.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
16
2018-08-03T18:48:00.000Z
2021-11-09T00:35:35.000Z
# vim: sw=4:ts=4:et # # ACE API event routines from .. import db, json_result from flask import Blueprint, request, abort, Response from saq.database import Event events_bp = Blueprint('events', __name__, url_prefix='/events') @events_bp.route('/open', methods=['GET']) def get_open_events(): open_events = db.s...
29.342857
75
0.673807
5138ef622f4ef1e4d2efc241a66b5c6dcaddb8ac
1,288
py
Python
dymos/utils/indexing.py
kaushikponnapalli/dymos
3fba91d0fc2c0e8460717b1bec80774676287739
[ "Apache-2.0" ]
1
2021-07-19T17:03:49.000Z
2021-07-19T17:03:49.000Z
dymos/utils/indexing.py
kaushikponnapalli/dymos
3fba91d0fc2c0e8460717b1bec80774676287739
[ "Apache-2.0" ]
null
null
null
dymos/utils/indexing.py
kaushikponnapalli/dymos
3fba91d0fc2c0e8460717b1bec80774676287739
[ "Apache-2.0" ]
null
null
null
import numpy as np def get_src_indices_by_row(row_idxs, shape, flat=True): """ Provide the src_indices when connecting a vectorized variable from an output to an input. Indices are selected by choosing the first indices to be passed, corresponding to node index in Dymos. Parameters ---------...
34.810811
93
0.662267
b77939c6e2d24241c10370aabfa623112e5d908e
1,614
py
Python
kolibri/core/content/migrations/0014_auto_20181218_1132.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
545
2016-01-19T19:26:55.000Z
2022-03-20T00:13:04.000Z
kolibri/core/content/migrations/0014_auto_20181218_1132.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
8,329
2016-01-19T19:32:02.000Z
2022-03-31T21:23:12.000Z
kolibri/core/content/migrations/0014_auto_20181218_1132.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
493
2016-01-19T19:26:48.000Z
2022-03-28T14:35:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-12-18 19:32 from __future__ import unicode_literals from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [("content", "0013_auto_20180919_1142")] operations = [ migrations.Al...
36.681818
74
0.483271
7bf731b74d5704e848485eac41fc8f1f6c565b37
12,044
py
Python
we-word-embeddings-huth/SemanticModel.py
bastivkl/nh2020-curriculum
245a72af3f325495448cbf6c0c6baa2499d43d94
[ "CC-BY-4.0" ]
94
2020-06-27T19:04:11.000Z
2022-03-28T00:44:44.000Z
we-word-embeddings-huth/SemanticModel.py
bastivkl/nh2020-curriculum
245a72af3f325495448cbf6c0c6baa2499d43d94
[ "CC-BY-4.0" ]
13
2020-07-23T02:11:40.000Z
2020-09-09T21:28:36.000Z
we-word-embeddings-huth/SemanticModel.py
bastivkl/nh2020-curriculum
245a72af3f325495448cbf6c0c6baa2499d43d94
[ "CC-BY-4.0" ]
50
2020-07-15T03:37:49.000Z
2022-02-27T23:07:14.000Z
import tables import pickle import numpy as np import logging logger = logging.getLogger("SemanticModel") class SemanticModel(object): """This class defines a semantic vector-space model based on HAL or LSA with some prescribed preprocessing pipeline. It contains two important variables: vocab and da...
36.831804
107
0.578877
15ef45d6140a90270fa9569c605952a740c7de37
73
py
Python
virtual/lib/python3.6/site-packages/grappelli/__init__.py
silver230/Instachat
a0fce33648855c167259341adc06412c4fa3e9c5
[ "Unlicense" ]
null
null
null
virtual/lib/python3.6/site-packages/grappelli/__init__.py
silver230/Instachat
a0fce33648855c167259341adc06412c4fa3e9c5
[ "Unlicense" ]
null
null
null
virtual/lib/python3.6/site-packages/grappelli/__init__.py
silver230/Instachat
a0fce33648855c167259341adc06412c4fa3e9c5
[ "Unlicense" ]
null
null
null
VERSION = '2.12.1' default_app_config = 'grappelli.apps.GrappelliConfig'
24.333333
53
0.780822
2cdd59c1aef0d4f06004df7716ac1837eddef054
1,269
py
Python
dataset_scripts/dataset_selector_line.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
1
2019-06-02T22:27:31.000Z
2019-06-02T22:27:31.000Z
dataset_scripts/dataset_selector_line.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
null
null
null
dataset_scripts/dataset_selector_line.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
null
null
null
import sys from os import listdir from os.path import isfile, isdir import numpy as np import cv2 video = sys.argv[1] cap = cv2.VideoCapture(video) kernel = np.ones((10,10),np.uint8) kernel_black = np.ones((10,10),np.uint8) sensitivity = 0 lower_white = np.array([0,0,0]) upper_white = np.array([180,255,120]) while(Tru...
28.840909
77
0.631994
a59cc33e1be8318ebf85dde5c97df8d9674551ae
4,337
py
Python
libraries/mosek/9.3/tools/examples/python/qcqo1.py
TimDSF/SBSOS_ShapeSegmentation
e30495dcf71dc63d1d54f3b73132fcfa75d7647e
[ "MIT" ]
null
null
null
libraries/mosek/9.3/tools/examples/python/qcqo1.py
TimDSF/SBSOS_ShapeSegmentation
e30495dcf71dc63d1d54f3b73132fcfa75d7647e
[ "MIT" ]
null
null
null
libraries/mosek/9.3/tools/examples/python/qcqo1.py
TimDSF/SBSOS_ShapeSegmentation
e30495dcf71dc63d1d54f3b73132fcfa75d7647e
[ "MIT" ]
1
2022-02-24T02:51:35.000Z
2022-02-24T02:51:35.000Z
## # Copyright : Copyright (c) MOSEK ApS, Denmark. All rights reserved. # # File : qcqo1.py # # Purpose : Demonstrates how to solve small linear # optimization problem using the MOSEK Python API. ## import sys import mosek # Since the actual value of Infinity is ignores, we define it solely # fo...
31.427536
79
0.5181
a60efbeeacac9571a49618bc4c07a0676fd8261b
345
py
Python
stubs/micropython-esp8266-1_11/websocket_helper.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
38
2020-10-18T21:59:44.000Z
2022-03-17T03:03:28.000Z
stubs/micropython-esp8266-1_11/websocket_helper.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
stubs/micropython-esp8266-1_11/websocket_helper.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
6
2020-12-28T21:11:12.000Z
2022-02-06T04:07:50.000Z
""" Module: 'websocket_helper' on esp8266 v1.11 """ # MCU: (sysname='esp8266', nodename='esp8266', release='2.2.0-dev(9422289)', version='v1.11-8-g48dcbbe60 on 2019-05-29', machine='ESP module with ESP8266') # Stubber: 1.1.0 DEBUG = 0 binascii = None def client_handshake(): pass hashlib = None def server_handshake...
21.5625
155
0.689855
b2b8ee14a17a822ebb1f3dcae4b4a77efd7d590b
12,637
py
Python
discord/ui/select.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
discord/ui/select.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
discord/ui/select.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Copyright (c) 2021-present 404kuso Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
35.200557
104
0.64968
d313ccef5a2797bd5e255a4ccfc3c31a6defe85b
4,355
py
Python
.circleci/regenerate.py
fabibo3/pytorch3d
36b7656753ae759aed2eb7ffb432b6eca4d42fe2
[ "BSD-3-Clause" ]
null
null
null
.circleci/regenerate.py
fabibo3/pytorch3d
36b7656753ae759aed2eb7ffb432b6eca4d42fe2
[ "BSD-3-Clause" ]
null
null
null
.circleci/regenerate.py
fabibo3/pytorch3d
36b7656753ae759aed2eb7ffb432b6eca4d42fe2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. """ This script is adapted from the torchvision one. """ import os.path import jinja2 im...
27.389937
86
0.591963