hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
86f77106c10502d0d37cea800a21ab20ce83f638
1,218
py
Python
meregistro/apps/registro/models/EstablecimientoDomicilio.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/EstablecimientoDomicilio.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/EstablecimientoDomicilio.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from apps.registro.models.TipoDomicilio import TipoDomicilio from apps.registro.models.Localidad import Localidad from apps.registro.models.Establecimiento import Establecimiento from django.core.exceptions import ValidationError from apps.seguridad.audit import audi...
32.918919
85
0.76601
86f7b299e6e411fb0020928642f34720d9448cf2
301
py
Python
python_for_everybody/py2_p4i_old/6.5findslicestringextract.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
null
null
null
python_for_everybody/py2_p4i_old/6.5findslicestringextract.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
null
null
null
python_for_everybody/py2_p4i_old/6.5findslicestringextract.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
1
2020-04-18T16:09:04.000Z
2020-04-18T16:09:04.000Z
# 6.5 Write code using find() and string slicing (see section 6.10) to extract # the number at the end of the line below. # Convert the extracted value to a floating point number and print it out. text = "X-DSPAM-Confidence: 0.8475"; pos = text.find(':') text = float(text[pos+1:]) print text
27.363636
79
0.697674
86f7e1041ab1f4accc4c1f71bcc457ad4e75b7b3
6,672
py
Python
tools/lucid/engine.py
Petr-By/qtpyvis
0b9a151ee6b9a56b486c2bece9c1f03414629efc
[ "MIT" ]
3
2017-10-04T14:51:26.000Z
2017-10-22T09:35:50.000Z
tools/lucid/engine.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
13
2017-09-05T12:56:11.000Z
2017-11-22T10:38:27.000Z
tools/lucid/engine.py
CogSciUOS/DeepLearningToolbox
bf07578b9486d8c48e25df357bc4b9963b513b46
[ "MIT" ]
2
2017-09-24T21:39:42.000Z
2017-10-04T15:29:54.000Z
import logging logger = logging.getLogger(__name__) print(f"!!!!!!!!!! getEffectiveLevel: {logger.getEffectiveLevel()} !!!!!!!!!!!!!") from dltb.base.observer import Observable, change from network import Network, loader from network.lucid import Network as LucidNetwork # lucid.modelzoo.vision_models: # A module ...
30.190045
82
0.590528
86f8485704c303133a8ffd7f513a5c4076214c94
87,649
py
Python
synapse/storage/events.py
natamelo/synapse
3d870ecfc5353e455917166cb5c2bb8ba48a6ebd
[ "Apache-2.0" ]
null
null
null
synapse/storage/events.py
natamelo/synapse
3d870ecfc5353e455917166cb5c2bb8ba48a6ebd
[ "Apache-2.0" ]
null
null
null
synapse/storage/events.py
natamelo/synapse
3d870ecfc5353e455917166cb5c2bb8ba48a6ebd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # Copyright 2018-2019 New Vector Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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 Licens...
39.339767
89
0.578455
86f92c20143e35ec634b684ad280aeb864a0957c
3,074
py
Python
dev/buildtool/metrics.py
premm1983/Spinnaker
535f78b8f5402eea942c260cb9ca26682772a3e6
[ "Apache-2.0" ]
null
null
null
dev/buildtool/metrics.py
premm1983/Spinnaker
535f78b8f5402eea942c260cb9ca26682772a3e6
[ "Apache-2.0" ]
null
null
null
dev/buildtool/metrics.py
premm1983/Spinnaker
535f78b8f5402eea942c260cb9ca26682772a3e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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 a...
39.410256
77
0.754717
86f9d5c800a3592d64ffbc26d845ced72a00288c
4,005
py
Python
src/python/pants/backend/android/tasks/aapt_builder.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
11
2015-01-20T01:39:41.000Z
2019-08-08T07:27:44.000Z
src/python/pants/backend/android/tasks/aapt_builder.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
1
2016-03-15T20:35:18.000Z
2016-03-15T20:35:18.000Z
src/python/pants/backend/android/tasks/aapt_builder.py
fakeNetflix/square-repo-pants
28a018c7f47900aec4f576c81a52e0e4b41d9fec
[ "Apache-2.0" ]
5
2015-03-30T02:46:53.000Z
2018-03-08T20:10:43.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals) import os import sub...
41.71875
106
0.698127
86fafa9c771d30389c672ab69f2d0d2991d82592
4,967
py
Python
fat/fat_bert_nq/ppr/apr_lib.py
kiss2u/google-research
2cd66234656f9e2f4218ed90a2d8aa9cf3139093
[ "Apache-2.0" ]
1
2020-05-27T15:40:17.000Z
2020-05-27T15:40:17.000Z
fat/fat_bert_nq/ppr/apr_lib.py
kiss2u/google-research
2cd66234656f9e2f4218ed90a2d8aa9cf3139093
[ "Apache-2.0" ]
7
2021-08-25T16:15:53.000Z
2022-02-10T03:26:55.000Z
fat/fat_bert_nq/ppr/apr_lib.py
kiss2u/google-research
2cd66234656f9e2f4218ed90a2d8aa9cf3139093
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
35.478571
80
0.684518
86fc7c6a00ab6863dd9ce69648b4b5568994e8af
6,941
py
Python
src/optimal_gardening.py
evanlynch/optimal-gardening
447ca8575efac1ad5cdd975091f3cbb67721e167
[ "MIT" ]
null
null
null
src/optimal_gardening.py
evanlynch/optimal-gardening
447ca8575efac1ad5cdd975091f3cbb67721e167
[ "MIT" ]
null
null
null
src/optimal_gardening.py
evanlynch/optimal-gardening
447ca8575efac1ad5cdd975091f3cbb67721e167
[ "MIT" ]
null
null
null
import os import sys import time from IPython.display import Image import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sb sb.set_style("dark") #### Initial Setup #### #plant info plant_info = pd.read_csv('../data/plant_data.csv') plant_info.index.name = 'plant_index' plants = pla...
39.662857
168
0.711713
86fca5740e3caf795c7b7090059ab5992cec0e59
9,453
py
Python
adv_lib/utils/attack_utils.py
Daulbaev/adversarial-library
6f979a511ad78908374cd55855a9e2c5a874be7d
[ "BSD-3-Clause" ]
55
2020-11-25T10:47:48.000Z
2022-03-21T12:11:31.000Z
adv_lib/utils/attack_utils.py
Daulbaev/adversarial-library
6f979a511ad78908374cd55855a9e2c5a874be7d
[ "BSD-3-Clause" ]
4
2021-03-10T19:25:31.000Z
2021-08-06T00:10:49.000Z
adv_lib/utils/attack_utils.py
Daulbaev/adversarial-library
6f979a511ad78908374cd55855a9e2c5a874be7d
[ "BSD-3-Clause" ]
8
2020-11-26T08:42:04.000Z
2022-01-13T02:55:47.000Z
import warnings from collections import OrderedDict from distutils.version import LooseVersion from functools import partial from inspect import isclass from typing import Callable, Optional, Dict, Union import numpy as np import torch import tqdm from torch import Tensor, nn from torch.nn import functional as F from...
41.643172
117
0.66307
86fd1a571a9b46918806e9e8e71337c7e3431481
2,559
py
Python
thawSlumpChangeDet/polygons_compare.py
Summer0328/ChangeDet_DL-1
f2474ee4200d9ad093c0e5a27a94bfbd3bd038e7
[ "MIT" ]
3
2021-07-03T14:33:37.000Z
2021-08-03T20:35:32.000Z
thawSlumpChangeDet/polygons_compare.py
Summer0328/ChangeDet_DL-1
f2474ee4200d9ad093c0e5a27a94bfbd3bd038e7
[ "MIT" ]
null
null
null
thawSlumpChangeDet/polygons_compare.py
Summer0328/ChangeDet_DL-1
f2474ee4200d9ad093c0e5a27a94bfbd3bd038e7
[ "MIT" ]
2
2021-07-29T01:45:33.000Z
2021-08-10T09:13:58.000Z
#!/usr/bin/env python # Filename: polygons_cd """ introduction: compare two polygons in to shape file authors: Huang Lingcao email:huanglingcao@gmail.com add time: 26 February, 2020 """ import sys,os from optparse import OptionParser # added path of DeeplabforRS sys.path.insert(0, os.path.expanduser('~/codes/Pychar...
30.105882
108
0.709261
86ff60feba2c3198cb1453cbf355794a3010628a
195
py
Python
CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py
fcsiba/Smart-Cart
7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5
[ "MIT" ]
null
null
null
CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py
fcsiba/Smart-Cart
7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5
[ "MIT" ]
null
null
null
CV Model/Model - JupyterNotebook/mrcnn/tfliteconverter.py
fcsiba/Smart-Cart
7d45b9f2a2be2015936c2a61068b2fd8b6c95fe5
[ "MIT" ]
null
null
null
import tensorflow as tf # Convert the model. converter = tf.lite.TFLiteConverter.from_saved_model('model.py') tflite_model = converter.convert() open("trash_ai.tflite", "wb").write(tflite_model)
32.5
64
0.784615
86ffc174e23653c3f067117004b1a24f8234310f
711
py
Python
basicapp/cron.py
shivamsinghal212/Url-Shortener
4127a993272744f6f8592415314c8e8514d43153
[ "MIT" ]
null
null
null
basicapp/cron.py
shivamsinghal212/Url-Shortener
4127a993272744f6f8592415314c8e8514d43153
[ "MIT" ]
8
2020-06-05T18:23:15.000Z
2022-03-11T23:23:57.000Z
basicapp/cron.py
shivamsinghal212/Url-Shortener
4127a993272744f6f8592415314c8e8514d43153
[ "MIT" ]
null
null
null
from django_cron import CronJobBase, Schedule from .models import Link from django.utils import timezone
30.913043
65
0.610408
810028e77fa49197f58461ee88815f3bf00eba42
2,029
py
Python
weasyprint/tests/test_stacking.py
Smylers/WeasyPrint
25ce91a34755386b3350d898aa1638c349723b57
[ "BSD-3-Clause" ]
null
null
null
weasyprint/tests/test_stacking.py
Smylers/WeasyPrint
25ce91a34755386b3350d898aa1638c349723b57
[ "BSD-3-Clause" ]
null
null
null
weasyprint/tests/test_stacking.py
Smylers/WeasyPrint
25ce91a34755386b3350d898aa1638c349723b57
[ "BSD-3-Clause" ]
null
null
null
# coding: utf8 """ weasyprint.tests.stacking ------------------------- :copyright: Copyright 2011-2012 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import division, unicode_literals from ..stacking import StackingContext from .test_boxes impo...
25.683544
78
0.556925
8100832c0d5bc42056a44079c84eec3ee522ecd0
1,143
py
Python
django-magic-link/customers/views.py
industrydive/sourcelist
9db4ec5c9cb9246a644615ca401a3c8f8d560b6e
[ "MIT" ]
5
2017-10-28T17:17:35.000Z
2020-06-24T21:43:22.000Z
django-magic-link/customers/views.py
greglinch/sourcelist
8267bb060e55f036d6d2dd9648698a5b8e48c0b3
[ "MIT" ]
2
2020-02-11T21:50:49.000Z
2021-04-08T18:25:26.000Z
django-magic-link/customers/views.py
industrydive/sourcelist
9db4ec5c9cb9246a644615ca401a3c8f8d560b6e
[ "MIT" ]
2
2017-11-02T02:14:25.000Z
2019-05-28T15:35:44.000Z
from django.shortcuts import render from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from sesame import utils from django.core.mail import send_mail
31.75
107
0.630796
81014d9aa2fe1551a160b448cdc227329bca693d
3,079
py
Python
python-lib/config/dss_parameter.py
dataiku/dss-plugin-nlp-analysis
ff9dce56500dc8f28f83158afbdf7db01074ee38
[ "Apache-2.0" ]
1
2021-03-12T10:45:53.000Z
2021-03-12T10:45:53.000Z
python-lib/config/dss_parameter.py
dataiku/dss-plugin-nlp-analysis
ff9dce56500dc8f28f83158afbdf7db01074ee38
[ "Apache-2.0" ]
22
2021-03-01T18:49:54.000Z
2021-06-08T15:16:30.000Z
python-lib/config/dss_parameter.py
dataiku/dss-plugin-nlp-analysis
ff9dce56500dc8f28f83158afbdf7db01074ee38
[ "Apache-2.0" ]
1
2021-02-22T15:19:43.000Z
2021-02-22T15:19:43.000Z
from .custom_check import CustomCheck, CustomCheckError from typing import Any, List import logging logger = logging.getLogger(__name__)
33.835165
104
0.618383
81017170c94b85c3925c1875676b310a658ce79c
21,868
py
Python
misc/import_ch_zurich.py
mstarikov/transitfeed
c018d7b14f6fccaa670629c00c83a390b5461fc1
[ "Apache-2.0" ]
null
null
null
misc/import_ch_zurich.py
mstarikov/transitfeed
c018d7b14f6fccaa670629c00c83a390b5461fc1
[ "Apache-2.0" ]
null
null
null
misc/import_ch_zurich.py
mstarikov/transitfeed
c018d7b14f6fccaa670629c00c83a390b5461fc1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.4 # Copyright (C) 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
42.62768
94
0.559813
8101825b7fae5806f4a1d2d670c101bc508918db
5,681
py
Python
modules/documents.py
rotsee/protokollen
a001a1db86df57adcf5c53c95c4c2fae426340f1
[ "MIT", "Apache-2.0", "CC0-1.0", "Unlicense" ]
4
2015-03-22T20:23:36.000Z
2015-12-09T14:31:34.000Z
modules/documents.py
rotsee/protokollen
a001a1db86df57adcf5c53c95c4c2fae426340f1
[ "MIT", "Apache-2.0", "CC0-1.0", "Unlicense" ]
4
2015-03-24T10:42:00.000Z
2016-06-21T08:44:01.000Z
modules/documents.py
rotsee/protokollen
a001a1db86df57adcf5c53c95c4c2fae426340f1
[ "MIT", "Apache-2.0", "CC0-1.0", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """This module contains classes for documents, and lists of documents. Documents are defined by the document rules in settings.py A file can contain one or more document. However, a document can not be constructed from more than one file. This is a limitation, obvious in cases like ...
33.417647
80
0.582996
8101888cafdd6d738a67d105df6945c67e4d48e2
773
py
Python
tools/amp_segment/ina_speech_segmenter.py
saratkumar/galaxy
35cd0987239c1b006d6eaf70b4a03a58fb857a12
[ "CC-BY-3.0" ]
1
2020-03-11T15:17:32.000Z
2020-03-11T15:17:32.000Z
tools/amp_segment/ina_speech_segmenter.py
saratkumar/galaxy
35cd0987239c1b006d6eaf70b4a03a58fb857a12
[ "CC-BY-3.0" ]
72
2019-06-06T18:52:41.000Z
2022-02-17T02:53:18.000Z
tools/done/amp_segment/ina_speech_segmenter.py
AudiovisualMetadataPlatform/amp_mgms
593d4f4d40b597a7753cd152cd233976e6b28c75
[ "Apache-2.0" ]
1
2022-03-01T08:07:54.000Z
2022-03-01T08:07:54.000Z
#!/usr/bin/env python3 import os import os.path import shutil import subprocess import sys import tempfile import uuid import mgm_utils if __name__ == "__main__": main()
21.472222
83
0.742561
8102b4059df75e35791f0dfa9ba091b4276e3aff
12,313
py
Python
test/tracerEq/test_steady_adv-diff_mms.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
test/tracerEq/test_steady_adv-diff_mms.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
test/tracerEq/test_steady_adv-diff_mms.py
jhill1/thetis
1be5d28d5d0d7248f2bbce4986b3e886116e103a
[ "MIT" ]
null
null
null
""" Testing 3D tracer advection-diffusion equation with method of manufactured solution (MMS). """ from thetis import * import numpy from scipy import stats import pytest def run(setup, refinement, order, do_export=True, **options): """Run single test and return L2 error""" print_output('--- running {:} r...
37.769939
1,095
0.559165
810397b3d3caaed833502145ab5542c3eb653710
723
py
Python
csat/django/fields.py
GaretJax/csat
db63441136369436140a91c9657444353c8944e6
[ "MIT" ]
null
null
null
csat/django/fields.py
GaretJax/csat
db63441136369436140a91c9657444353c8944e6
[ "MIT" ]
7
2020-06-05T17:15:29.000Z
2022-02-11T03:38:15.000Z
csat/django/fields.py
GaretJax/csat
db63441136369436140a91c9657444353c8944e6
[ "MIT" ]
null
null
null
from lxml import etree from django import forms from django.db import models
28.92
74
0.60166
8104cf1d7fdf7aff507bf4b2cd4aa7b19708a446
15,658
py
Python
keras_cv_attention_models/yolox/yolox.py
RishabhSehgal/keras_cv_attention_models
c1e20e45815339d70a987ec7dd9e6f926b4eb21d
[ "MIT" ]
null
null
null
keras_cv_attention_models/yolox/yolox.py
RishabhSehgal/keras_cv_attention_models
c1e20e45815339d70a987ec7dd9e6f926b4eb21d
[ "MIT" ]
null
null
null
keras_cv_attention_models/yolox/yolox.py
RishabhSehgal/keras_cv_attention_models
c1e20e45815339d70a987ec7dd9e6f926b4eb21d
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras from keras_cv_attention_models.attention_layers import ( activation_by_name, batchnorm_with_activation, conv2d_no_bias, depthwise_conv2d_no_bias, add_pre_post_process, ) from keras_cv_attention_models import model_surgery from keras_cv_attention_m...
54.940351
156
0.709158
8104ee7a90ab52a7bdf79ad5abbc624a2b356482
4,064
py
Python
robot-server/tests/service/json_api/test_response.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
null
null
null
robot-server/tests/service/json_api/test_response.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
2
2022-02-15T03:28:35.000Z
2022-02-28T01:34:18.000Z
robot-server/tests/service/json_api/test_response.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
null
null
null
from pytest import raises from pydantic import ValidationError from robot_server.service.json_api.response import ( ResponseDataModel, ResponseModel, MultiResponseModel, ) from tests.service.helpers import ItemResponseModel
26.913907
78
0.483514
81050df4590617cea7e0daedc54d45bd783c7cfa
367
py
Python
stickmanZ/__main__.py
MichaelMcFarland98/cse210-project
9e5a45a75f465fe123e33712d3c19dd88e98246a
[ "MIT" ]
1
2021-07-24T00:40:14.000Z
2021-07-24T00:40:14.000Z
stickmanZ/__main__.py
MichaelMcFarland98/cse210-project
9e5a45a75f465fe123e33712d3c19dd88e98246a
[ "MIT" ]
null
null
null
stickmanZ/__main__.py
MichaelMcFarland98/cse210-project
9e5a45a75f465fe123e33712d3c19dd88e98246a
[ "MIT" ]
null
null
null
from game.game_view import GameView from game.menu_view import menu_view from game import constants import arcade SCREEN_WIDTH = constants.SCREEN_WIDTH SCREEN_HEIGHT = constants.SCREEN_HEIGHT SCREEN_TITLE = constants.SCREEN_TITLE window = arcade.Window(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE) start_view = menu_vi...
22.9375
65
0.836512
81053c6c0f8dac07d6cae3bc4a12cf5b1f575105
2,300
py
Python
neutron/db/migration/alembic_migrations/versions/mitaka/contract/c6c112992c9_rbac_qos_policy.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/db/migration/alembic_migrations/versions/mitaka/contract/c6c112992c9_rbac_qos_policy.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/db/migration/alembic_migrations/versions/mitaka/contract/c6c112992c9_rbac_qos_policy.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Copyright 2015 OpenStack Foundation # # 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 ...
33.333333
78
0.665652
8105a101c915deb0c3d41bd2462e33e9a3a8584e
1,200
py
Python
chapter5/ch5_gcp_subscriber.py
ericchou1/network-devops-kafka-up-and-running
c128cf7359ba40c3005a02d3033b16b67c196779
[ "Apache-2.0" ]
1
2021-12-30T08:55:09.000Z
2021-12-30T08:55:09.000Z
chapter5/ch5_gcp_subscriber.py
ericchou1/network-devops-kafka-up-and-running
c128cf7359ba40c3005a02d3033b16b67c196779
[ "Apache-2.0" ]
null
null
null
chapter5/ch5_gcp_subscriber.py
ericchou1/network-devops-kafka-up-and-running
c128cf7359ba40c3005a02d3033b16b67c196779
[ "Apache-2.0" ]
2
2021-11-22T09:56:30.000Z
2022-02-06T22:55:55.000Z
from concurrent.futures import TimeoutError from google.cloud import pubsub_v1 project_id = "pubsub-testing-331300" subscription_id = "test-sub" # Number of seconds the subscriber should listen for messages timeout = 5.0 subscriber = pubsub_v1.SubscriberClient() # The `subscription_path` method creates a fully qualif...
38.709677
82
0.766667
8107dd8d87df5ce3c83ed8d4993880ee03266544
2,136
py
Python
odoo-13.0/addons/google_drive/models/res_config_settings.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/google_drive/models/res_config_settings.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/google_drive/models/res_config_settings.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _
45.446809
142
0.69382
81081edbfb2a07d5868f34f5440db42fe2a2e90a
17,308
py
Python
dataloaders/loader.py
sanger640/attMPTI
a2784b784e0900f3603baa3779631da67bcd0562
[ "MIT" ]
93
2021-03-18T13:56:42.000Z
2022-03-30T03:31:35.000Z
dataloaders/loader.py
sanger640/attMPTI
a2784b784e0900f3603baa3779631da67bcd0562
[ "MIT" ]
20
2021-03-30T12:36:05.000Z
2022-03-28T09:01:34.000Z
dataloaders/loader.py
sanger640/attMPTI
a2784b784e0900f3603baa3779631da67bcd0562
[ "MIT" ]
14
2021-04-17T17:19:19.000Z
2022-03-09T13:49:30.000Z
""" Data Loader for Generating Tasks Author: Zhao Na, 2020 """ import os import random import math import glob import numpy as np import h5py as h5 import transforms3d from itertools import combinations import torch from torch.utils.data import Dataset def sample_K_pointclouds(data_path, num_point, pc_attribs, pc_...
46.526882
129
0.621389
8109517cd2448992084aac4cf51be9ed93b5e56f
467
py
Python
greendoge/types/condition_with_args.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
44
2021-07-06T10:09:06.000Z
2022-02-09T04:30:14.000Z
greendoge/types/condition_with_args.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
67
2021-07-06T11:57:18.000Z
2022-02-02T16:14:15.000Z
greendoge/types/condition_with_args.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
16
2021-07-06T10:36:37.000Z
2022-03-15T08:35:16.000Z
from dataclasses import dataclass from typing import List from greendoge.types.condition_opcodes import ConditionOpcode from greendoge.util.streamable import Streamable, streamable
25.944444
83
0.770878
810978ce9b3f6467c879457442fbbbac1342a8e8
3,065
py
Python
homeassistant/components/hunterdouglas_powerview/entity.py
pp81381/home-assistant
23e362faf387c1535be0abab81b30d8e4631df4b
[ "Apache-2.0" ]
null
null
null
homeassistant/components/hunterdouglas_powerview/entity.py
pp81381/home-assistant
23e362faf387c1535be0abab81b30d8e4631df4b
[ "Apache-2.0" ]
31
2020-07-23T07:13:38.000Z
2021-06-07T13:21:18.000Z
homeassistant/components/hunterdouglas_powerview/entity.py
pp81381/home-assistant
23e362faf387c1535be0abab81b30d8e4631df4b
[ "Apache-2.0" ]
null
null
null
"""The nexia integration base entity.""" from aiopvapi.resources.shade import ATTR_TYPE from homeassistant.const import ATTR_MODEL, ATTR_SW_VERSION import homeassistant.helpers.device_registry as dr from homeassistant.helpers.entity import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEnt...
32.606383
114
0.669494
810a3b9f5eeaf3e888067a624f744f48f465345b
9,244
py
Python
keycast_env/lib/python3.8/site-packages/Xlib/ext/res.py
daxter-army/key-cast
cadc88c6760839b37b7fef969294800d4c38fb1b
[ "MIT" ]
10
2021-09-15T16:29:59.000Z
2022-01-15T11:51:56.000Z
lib/Xlib/ext/res.py
ITZProGamerDieYT/SpeedrunningTimerLinux
4383c8fdfff476fdb81a99a1d6271218e6e9eee3
[ "CC-BY-3.0" ]
7
2021-09-16T06:21:44.000Z
2022-03-18T03:11:25.000Z
lib/Xlib/ext/res.py
ITZProGamerDieYT/SpeedrunningTimerLinux
4383c8fdfff476fdb81a99a1d6271218e6e9eee3
[ "CC-BY-3.0" ]
3
2021-09-20T13:08:43.000Z
2022-03-18T03:09:08.000Z
# Xlib.ext.res -- X-Resource extension module # # Copyright (C) 2021 Aleksei Bavshin <alebastr89@gmail.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2.1 ...
31.986159
83
0.609801
810a45957301a3d3e19c056d8cdd8e9cf5349711
1,690
py
Python
rubra/cmdline_args.py
scwatts/rubra
0be2c1e8d56badf134954baab9705f3aeb38d426
[ "MIT" ]
14
2015-04-13T04:10:43.000Z
2022-03-28T08:42:43.000Z
rubra/cmdline_args.py
afcarl/rubra
82905bbbd7077d201363b96ffbbc78c099095764
[ "MIT" ]
3
2016-12-27T17:24:04.000Z
2018-12-21T17:43:36.000Z
rubra/cmdline_args.py
afcarl/rubra
82905bbbd7077d201363b96ffbbc78c099095764
[ "MIT" ]
9
2015-04-29T03:00:16.000Z
2020-01-30T00:56:52.000Z
# Process the unix command line of the pipeline. import argparse from version import rubra_version parser = argparse.ArgumentParser( description='A bioinformatics pipeline system.') parser.add_argument( 'pipeline', metavar='PIPELINE_FILE', type=str, help='Your Ruffus pipeline stages (a Python mod...
26.825397
84
0.657396
810ae31f2bd87d1c18d17e372bfc5f6a1cddf8a3
268
py
Python
main.py
KH241/Geohashing
d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1
[ "CC0-1.0" ]
null
null
null
main.py
KH241/Geohashing
d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1
[ "CC0-1.0" ]
null
null
null
main.py
KH241/Geohashing
d5d51278776c4dc0e3d6e6c39cbd31c1f4442fc1
[ "CC0-1.0" ]
null
null
null
import webbrowser import config from Generator import Generator if __name__ == '__main__': main()
17.866667
67
0.735075
810b128cc1280e3c864be85f0fd7db633ecb097d
35,104
py
Python
knx-test.py
WAvdBeek/CoAPthon3
5aa9d6a6d9a2903d86b113da538df9bd970e6b44
[ "MIT" ]
1
2021-11-05T08:04:33.000Z
2021-11-05T08:04:33.000Z
knx-test.py
WAvdBeek/CoAPthon3
5aa9d6a6d9a2903d86b113da538df9bd970e6b44
[ "MIT" ]
1
2021-07-21T12:40:54.000Z
2021-07-21T14:42:42.000Z
knx-test.py
WAvdBeek/CoAPthon3
5aa9d6a6d9a2903d86b113da538df9bd970e6b44
[ "MIT" ]
1
2021-07-20T10:18:17.000Z
2021-07-20T10:18:17.000Z
#!/usr/bin/env python import getopt import socket import sys import cbor #from cbor2 import dumps, loads import json import time import traceback from coapthon.client.helperclient import HelperClient from coapthon.utils import parse_uri from coapthon import defines client = None paths = {} paths_extend = {} my_base ...
33.786333
149
0.546206
810b43515d14811ec32c14454930c4b55606640a
210
py
Python
SWIM-Executables/Windows/pyinstaller-2.0 for windows/PyInstaller/hooks/hook-PyQt4.phonon.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
47
2020-03-08T08:43:28.000Z
2022-03-18T18:51:55.000Z
SWIM-Executables/Windows/pyinstaller-2.0 for windows/PyInstaller/hooks/hook-PyQt4.phonon.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
null
null
null
SWIM-Executables/Windows/pyinstaller-2.0 for windows/PyInstaller/hooks/hook-PyQt4.phonon.py
alexsigaras/SWIM
1a35df8acb26bdcb307a1b8f60e9feba68ed1715
[ "MIT" ]
16
2020-03-08T08:43:30.000Z
2022-01-10T22:05:57.000Z
hiddenimports = ['sip', 'PyQt4.QtGui', 'PyQt4._qt'] from PyInstaller.hooks.hookutils import qt4_plugins_binaries
23.333333
63
0.757143
810b6e9e54a3c45eed3b42ac6920a9d12535f63c
6,579
py
Python
PyTradier/data.py
zlopez101/PyTradier
83397cf38bd636c471993b57fb71a12885affcb7
[ "MIT" ]
1
2021-04-30T23:59:20.000Z
2021-04-30T23:59:20.000Z
PyTradier/data.py
zlopez101/PyTradier
83397cf38bd636c471993b57fb71a12885affcb7
[ "MIT" ]
7
2021-05-08T00:47:59.000Z
2021-05-12T01:45:37.000Z
PyTradier/data.py
zlopez101/PyTradier
83397cf38bd636c471993b57fb71a12885affcb7
[ "MIT" ]
null
null
null
from PyTradier.base import BasePyTradier from typing import Union from datetime import datetime if __name__ == "__main__": from utils import printer data = MarketData() symbol = "AAPL" response = data.option_lookup(symbol) # response = data.option_strike(symbol, dates[0]) printer(response)
42.173077
289
0.637635
810c05c71eb3fa5c73eabbeb8e2c1122faa7ac10
3,528
py
Python
joulescope_ui/meter_widget.py
Axel-Jacobsen/pyjoulescope_ui
7d296b1ead0d36c6524dc399372f7888a340e9fa
[ "Apache-2.0" ]
1
2019-08-08T21:10:26.000Z
2019-08-08T21:10:26.000Z
joulescope_ui/meter_widget.py
Axel-Jacobsen/pyjoulescope_ui
7d296b1ead0d36c6524dc399372f7888a340e9fa
[ "Apache-2.0" ]
null
null
null
joulescope_ui/meter_widget.py
Axel-Jacobsen/pyjoulescope_ui
7d296b1ead0d36c6524dc399372f7888a340e9fa
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Jetperch 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
40.090909
122
0.693311
810c343fb0a1f912fe6668116ca4d1081009f872
7,677
py
Python
rpyc/core/service.py
bbonf/rpyc
2c66dd6936a0d9e6e36c1ba0cda1139676acf95c
[ "MIT" ]
null
null
null
rpyc/core/service.py
bbonf/rpyc
2c66dd6936a0d9e6e36c1ba0cda1139676acf95c
[ "MIT" ]
null
null
null
rpyc/core/service.py
bbonf/rpyc
2c66dd6936a0d9e6e36c1ba0cda1139676acf95c
[ "MIT" ]
null
null
null
""" Services are the heart of RPyC: each side of the connection exposes a *service*, which define the capabilities available to the other side. Note that the services by both parties need not be symmetric, e.g., one side may exposed *service A*, while the other may expose *service B*. As long as the two can interopera...
34.426009
86
0.64804
810c8d17b4b4f09855fad0d286b79401e57777c2
307
py
Python
tests/task/manager_test.py
altenia/taskmator
4090d414125614a57649c5c92a017c12a231a2ef
[ "MIT" ]
2
2015-06-06T04:59:53.000Z
2020-08-15T22:45:01.000Z
tests/task/manager_test.py
altenia/taskmator
4090d414125614a57649c5c92a017c12a231a2ef
[ "MIT" ]
1
2015-06-06T05:02:24.000Z
2015-06-06T05:02:24.000Z
tests/task/manager_test.py
altenia/taskmator
4090d414125614a57649c5c92a017c12a231a2ef
[ "MIT" ]
null
null
null
import unittest from testbase import TaskmatorTestBase from taskmator.task import core, util from taskmator import context if __name__ == '__main__': unittest.main()
17.055556
38
0.710098
810ccb8df33ca9c859d68156c3d23f37b798cbf1
1,301
py
Python
tests/components/zwave_js/test_discovery.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
1
2020-12-18T12:23:04.000Z
2020-12-18T12:23:04.000Z
tests/components/zwave_js/test_discovery.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
60
2020-07-06T15:10:30.000Z
2022-03-31T06:01:46.000Z
tests/components/zwave_js/test_discovery.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Test discovery of entities for device-specific schemas for the Z-Wave JS integration."""
34.236842
91
0.731745
810dcd1a1c119a6c004be66c020243fbafedf1ee
5,229
py
Python
boto3_type_annotations/boto3_type_annotations/guardduty/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations/boto3_type_annotations/guardduty/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations/boto3_type_annotations/guardduty/client.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Optional from botocore.client import BaseClient from typing import Dict from typing import Union from botocore.paginate import Paginator from botocore.waiter import Waiter from typing import List
35.331081
175
0.669344
810e20d4bc8d21dc6f3aae023a1133ca2d856392
1,218
py
Python
test/workload/tpch_loop_workload_test.py
ChenYi015/Raven
e732e03f8dd118ed805a143fc6916f0e5fc53c2c
[ "Apache-2.0" ]
1
2022-03-03T05:54:25.000Z
2022-03-03T05:54:25.000Z
test/workload/tpch_loop_workload_test.py
ChenYi015/Raven
e732e03f8dd118ed805a143fc6916f0e5fc53c2c
[ "Apache-2.0" ]
null
null
null
test/workload/tpch_loop_workload_test.py
ChenYi015/Raven
e732e03f8dd118ed805a143fc6916f0e5fc53c2c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Raven 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 applicable law or ...
26.478261
74
0.705255
810e3e3e48092c408dee59bf8a6eb974e84689eb
1,475
py
Python
Final-Project/server/art/serializers.py
wendy006/Web-Dev-Course
2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720
[ "MIT" ]
null
null
null
Final-Project/server/art/serializers.py
wendy006/Web-Dev-Course
2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720
[ "MIT" ]
null
null
null
Final-Project/server/art/serializers.py
wendy006/Web-Dev-Course
2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import *
35.97561
124
0.626441
810f24ca6e713fb7958aa28861ebd60291bab8c3
2,089
bzl
Python
google/cloud/google_cloud_cpp_common_unit_tests.bzl
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
null
null
null
google/cloud/google_cloud_cpp_common_unit_tests.bzl
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
null
null
null
google/cloud/google_cloud_cpp_common_unit_tests.bzl
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "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.245902
79
0.727621
8111119b844622ccdb3004ede98c4e13a46f452c
398
py
Python
api/tests/ver1/test_base.py
codacy-badger/politico-api
10d926bf34f12631cb19bb9c82ccded36557c790
[ "MIT" ]
null
null
null
api/tests/ver1/test_base.py
codacy-badger/politico-api
10d926bf34f12631cb19bb9c82ccded36557c790
[ "MIT" ]
null
null
null
api/tests/ver1/test_base.py
codacy-badger/politico-api
10d926bf34f12631cb19bb9c82ccded36557c790
[ "MIT" ]
null
null
null
import unittest from api import create_app
23.411765
49
0.640704
811134f08b2c67534a9093ee9d1a20f045af6b48
865
py
Python
socialdistribution/app/templatetags/filters.py
CMPUT404-Project-Group/CMPUT404-Group-Project
e541cc609f260d7221fe0be8975c5b2444d74af0
[ "W3C-20150513" ]
null
null
null
socialdistribution/app/templatetags/filters.py
CMPUT404-Project-Group/CMPUT404-Group-Project
e541cc609f260d7221fe0be8975c5b2444d74af0
[ "W3C-20150513" ]
44
2021-10-14T15:44:46.000Z
2021-12-05T00:57:23.000Z
socialdistribution/app/templatetags/filters.py
CMPUT404-Project-Group/Social-Distribution-CMPUT404-Group-Project
e541cc609f260d7221fe0be8975c5b2444d74af0
[ "W3C-20150513" ]
1
2021-12-07T01:14:14.000Z
2021-12-07T01:14:14.000Z
from django import template from django.template.defaultfilters import stringfilter from django.utils.safestring import SafeString import markdown import urllib register = template.Library()
23.378378
76
0.721387
81118158b2fe646b1e3b2899f2e0b74a521117c9
3,234
py
Python
alipay/aop/api/domain/MetroOdItem.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/domain/MetroOdItem.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/domain/MetroOdItem.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.constant.ParamConstants import * from alipay.aop.api.domain.CloudbusUserInfo import CloudbusUserInfo
26.95
70
0.548856
81145bece0e3560e4fd661b7085c6a1e4f6811f2
910
py
Python
djangocms_redirect/migrations/0003_auto_20190810_1009.py
vsalat/djangocms-redirect
a2577f08430b6b65ae4a51293f861b697bf4ab9d
[ "BSD-3-Clause" ]
null
null
null
djangocms_redirect/migrations/0003_auto_20190810_1009.py
vsalat/djangocms-redirect
a2577f08430b6b65ae4a51293f861b697bf4ab9d
[ "BSD-3-Clause" ]
null
null
null
djangocms_redirect/migrations/0003_auto_20190810_1009.py
vsalat/djangocms-redirect
a2577f08430b6b65ae4a51293f861b697bf4ab9d
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-10 08:09 from django.db import migrations, models
37.916667
239
0.679121
811898bc6c0124ca8489662af03fc5f7195a1876
5,191
py
Python
octopart/scrape_octopart.py
nicholaschiang/dl-datasheets
1c5ab2545a85c1ea7643fc655005259544617d90
[ "MIT" ]
null
null
null
octopart/scrape_octopart.py
nicholaschiang/dl-datasheets
1c5ab2545a85c1ea7643fc655005259544617d90
[ "MIT" ]
null
null
null
octopart/scrape_octopart.py
nicholaschiang/dl-datasheets
1c5ab2545a85c1ea7643fc655005259544617d90
[ "MIT" ]
1
2019-12-07T20:13:06.000Z
2019-12-07T20:13:06.000Z
#! /usr/bin/env python import sys import json import urllib import urllib2 import time import argparse import re # Category ID for Discrete Semiconductors > Transistors > BJTs TRANSISTOR_ID = b814751e89ff63d3 def find_total_hits(search_query): """ Function: find_total_hits -------------------- Return...
38.169118
97
0.571374
811909fd3d9bc00f5888c3293282a4df3cefdd8c
14,970
py
Python
extras/python/fogbench/__main__.py
foglamp/FogLAMP
918dff88b440e6ad580efdaa5f0fbdf4143a73d4
[ "Apache-2.0" ]
65
2017-05-15T21:55:04.000Z
2022-01-19T01:30:42.000Z
extras/python/fogbench/__main__.py
foglamp/FogLAMP
918dff88b440e6ad580efdaa5f0fbdf4143a73d4
[ "Apache-2.0" ]
576
2017-05-22T05:41:07.000Z
2020-02-13T07:48:58.000Z
extras/python/fogbench/__main__.py
foglamp/FogLAMP
918dff88b440e6ad580efdaa5f0fbdf4143a73d4
[ "Apache-2.0" ]
52
2017-05-09T22:45:47.000Z
2022-03-10T18:49:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END """ fogbench -- a Python script used to test FogLAMP. The objective is to simulate payloads for input, REST and other requests against one or more FogLAMP instances. This version of fogbench is meant ...
36.601467
122
0.638277
81197e9fdd38be14f8210f08e7cec2020796f260
19,888
py
Python
qiskit/ignis/mitigation/measurement/filters.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
182
2019-02-19T22:52:42.000Z
2022-02-28T05:48:07.000Z
qiskit/ignis/mitigation/measurement/filters.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
384
2019-02-19T21:30:18.000Z
2021-12-02T21:13:34.000Z
qiskit/ignis/mitigation/measurement/filters.py
paulineollitrault/qiskit-ignis
99f24ea6533cd284be4c44a48d43e54f62f05674
[ "Apache-2.0" ]
203
2019-02-19T21:06:27.000Z
2022-03-02T14:16:50.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
40.422764
100
0.569389
811a461fc321525abd67f11d9522903e94b00815
3,067
py
Python
2017/adv2017-1.py
fcharlier/AdventOfCode
6b2765da9e4d6f6b1f201897bb56043482a65bb2
[ "WTFPL" ]
null
null
null
2017/adv2017-1.py
fcharlier/AdventOfCode
6b2765da9e4d6f6b1f201897bb56043482a65bb2
[ "WTFPL" ]
null
null
null
2017/adv2017-1.py
fcharlier/AdventOfCode
6b2765da9e4d6f6b1f201897bb56043482a65bb2
[ "WTFPL" ]
null
null
null
#!/usr/bin/python def meh(captcha): """Returns the sum of the digits which match the next one in the captcha input string. >>> meh('1122') 3 >>> meh('1111') 4 >>> meh('1234') 0 >>> meh('91212129') 9 """ result = 0 for n in range(len(captcha)): if captcha[n]...
61.34
2,134
0.852625
811bbfb3266a619b867f934c6f82a6ecb7783e88
111,660
py
Python
pymatgen/analysis/graphs.py
Roy027/pymatgen
a4aa91d011033c1151b82335abd080e2b1a310d5
[ "MIT" ]
null
null
null
pymatgen/analysis/graphs.py
Roy027/pymatgen
a4aa91d011033c1151b82335abd080e2b1a310d5
[ "MIT" ]
null
null
null
pymatgen/analysis/graphs.py
Roy027/pymatgen
a4aa91d011033c1151b82335abd080e2b1a310d5
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Module for graph representations of crystals. """ import copy import logging import os.path import subprocess import warnings from collections import defaultdict, namedtuple from itertools import combinati...
37.748479
118
0.579393
811be09e8efd00c1aea606c4e23d536a962dbfd3
65
py
Python
maple/backend/singularity/__init__.py
akashdhruv/maple
11e562f51b18b2251ea507c629a1981b031d2f35
[ "MIT" ]
null
null
null
maple/backend/singularity/__init__.py
akashdhruv/maple
11e562f51b18b2251ea507c629a1981b031d2f35
[ "MIT" ]
5
2021-12-24T08:55:42.000Z
2022-02-13T16:59:30.000Z
maple/backend/singularity/__init__.py
akashdhruv/maple
11e562f51b18b2251ea507c629a1981b031d2f35
[ "MIT" ]
null
null
null
from . import image from . import container from . import system
16.25
23
0.769231
811c0a3b1e48996b84a2d4750219f62c35f29d83
1,064
py
Python
articles/views.py
Ahmed-skb/blogyfy
2cfa3d9503f1846ccd89c2bf1934293eb97ad44a
[ "MIT" ]
null
null
null
articles/views.py
Ahmed-skb/blogyfy
2cfa3d9503f1846ccd89c2bf1934293eb97ad44a
[ "MIT" ]
null
null
null
articles/views.py
Ahmed-skb/blogyfy
2cfa3d9503f1846ccd89c2bf1934293eb97ad44a
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from .models import Article from django.contrib.auth.decorators import login_required from . import forms
34.322581
81
0.693609
811c9730165b0d65d78610ed7c5cc6d9f073addc
5,039
py
Python
sifter/grammar/grammar.py
russell/sifter
03e85349fd2329439ae3f7eb3c1f484ba2ebf807
[ "BSD-2-Clause" ]
null
null
null
sifter/grammar/grammar.py
russell/sifter
03e85349fd2329439ae3f7eb3c1f484ba2ebf807
[ "BSD-2-Clause" ]
null
null
null
sifter/grammar/grammar.py
russell/sifter
03e85349fd2329439ae3f7eb3c1f484ba2ebf807
[ "BSD-2-Clause" ]
1
2020-08-19T06:30:47.000Z
2020-08-19T06:30:47.000Z
# Parser based on RFC 5228, especially the grammar as defined in section 8. All # references are to sections in RFC 5228 unless stated otherwise. import ply.yacc import sifter.grammar from sifter.grammar.lexer import tokens import sifter.handler import logging __all__ = ('parser',) def p_commands_list(p): """...
29.467836
81
0.581663
811ce2660d66f66cb91158b2b6a72ae00e0a02c5
3,904
py
Python
multidoc_mnb.py
dropofwill/author-attr-experiments
a90e2743591358a6253f3b3664f5e398517f84bc
[ "Unlicense" ]
2
2015-01-06T12:53:39.000Z
2018-02-01T13:57:09.000Z
multidoc_mnb.py
dropofwill/author-attr-experiments
a90e2743591358a6253f3b3664f5e398517f84bc
[ "Unlicense" ]
null
null
null
multidoc_mnb.py
dropofwill/author-attr-experiments
a90e2743591358a6253f3b3664f5e398517f84bc
[ "Unlicense" ]
null
null
null
from sklearn import datasets from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.feature_extraction.text import CountVectorizer from sklearn.cross_validation import train_test_split from sklearn.cross_validation import cross_val_score from sklearn.cross_validation import ShuffleSplit from sklearn....
27.111111
175
0.733863
811e73ee0c3fc584081650f0224040703f26ea00
386
py
Python
tabular/__init__.py
yamins81/tabular
1caf091c8c395960a9ad7078f95158b533cc52dd
[ "MIT" ]
6
2015-05-24T20:59:31.000Z
2021-05-31T14:34:18.000Z
tabular/__init__.py
yamins81/tabular
1caf091c8c395960a9ad7078f95158b533cc52dd
[ "MIT" ]
3
2016-06-17T20:02:27.000Z
2020-02-13T19:20:40.000Z
tabular/__init__.py
yamins81/tabular
1caf091c8c395960a9ad7078f95158b533cc52dd
[ "MIT" ]
8
2015-08-22T17:09:40.000Z
2022-02-10T14:47:40.000Z
import io import fast import spreadsheet import tab import utils import web from io import * from fast import * from spreadsheet import * from tab import * from utils import * from web import * __all__ = [] __all__.extend(io.__all__) __all__.extend(fast.__all__) __all__.extend(spreadsheet.__all__) __all__.extend(tab....
18.380952
35
0.795337
811eb205fb191ad48270915e49e393d586962cb9
26,184
py
Python
smipyping/_targetstable.py
KSchopmeyer/smipyping
9c60b3489f02592bd9099b8719ca23ae43a9eaa5
[ "MIT" ]
null
null
null
smipyping/_targetstable.py
KSchopmeyer/smipyping
9c60b3489f02592bd9099b8719ca23ae43a9eaa5
[ "MIT" ]
19
2017-10-18T15:31:25.000Z
2020-03-04T19:31:59.000Z
smipyping/_targetstable.py
KSchopmeyer/smipyping
9c60b3489f02592bd9099b8719ca23ae43a9eaa5
[ "MIT" ]
null
null
null
# (C) Copyright 2017 Inova Development 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 appl...
37.512894
80
0.588718
811f8f9936b98c79ae19160b05e347adf2265632
1,131
py
Python
dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Code/Framework/AzFramework/CodeGen/AzEBusInline.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
39
95
0.763042
812066ffbcb9013a2cc703f8d57626a63964c5af
9,057
py
Python
QUANTAXIS/QASU/crawl_eastmoney.py
QUANTAXISER/QUANTAXIS
6ebd727b2900e8910fa45814bf45eeffca395250
[ "MIT" ]
1
2018-09-09T02:55:10.000Z
2018-09-09T02:55:10.000Z
QUANTAXIS/QASU/crawl_eastmoney.py
frosthaoz/QUANTAXIS
f5f482418e5f6e23ac3530089b8d17300d931b48
[ "MIT" ]
null
null
null
QUANTAXIS/QASU/crawl_eastmoney.py
frosthaoz/QUANTAXIS
f5f482418e5f6e23ac3530089b8d17300d931b48
[ "MIT" ]
3
2018-11-29T07:07:56.000Z
2021-02-09T17:24:56.000Z
import os from QUANTAXIS.QASetting import QALocalize #from QUANTAXIS_CRAWLY.run_selenium_alone import (read_east_money_page_zjlx_to_sqllite, open_chrome_driver, close_chrome_dirver) from QUANTAXIS_CRAWLY.run_selenium_alone import * import urllib import pandas as pd import time from QUANTAXIS.QAUtil import (DATABASE) ...
30.392617
128
0.510765
8120aa4d76824186b0ed660869921ca64f9eaede
667
py
Python
wsgi.py
javicacheiro/salt-git-synchronizer-proxy
c93de5c0b26afe2b9ec72156497894df7f15d692
[ "Apache-2.0" ]
null
null
null
wsgi.py
javicacheiro/salt-git-synchronizer-proxy
c93de5c0b26afe2b9ec72156497894df7f15d692
[ "Apache-2.0" ]
null
null
null
wsgi.py
javicacheiro/salt-git-synchronizer-proxy
c93de5c0b26afe2b9ec72156497894df7f15d692
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import logging import sys from app import app as application # Set default log level for the general logger # each handler can then restrict the messages logged application.logger.setLevel(logging.INFO) setup_flask_logging() if __name__ == '__main__': application.run()
24.703704
64
0.721139
8120c7633f5990d446bca4c8a9b2275a25f1de63
202
py
Python
game/base/enemy.py
PythonixCoders/PyWeek29
5c7492466481dec40619272a3da7fa4b9a72c1d6
[ "MIT" ]
8
2020-03-15T14:58:46.000Z
2020-04-26T13:44:10.000Z
game/base/enemy.py
flipcoder/Butterfly-Destroyers
855b1981ea67796e0ce0d82b525a1cb75a9e358b
[ "MIT" ]
null
null
null
game/base/enemy.py
flipcoder/Butterfly-Destroyers
855b1981ea67796e0ce0d82b525a1cb75a9e358b
[ "MIT" ]
4
2020-03-23T12:38:55.000Z
2021-12-25T16:32:54.000Z
#!/usr/bin/env python from game.base.being import Being
20.2
46
0.648515
8120d71f9f5dd96debf5a9a973a1d872ce6a5597
561
py
Python
main/rates/migrations/0002_auto_20170625_1510.py
Hawk94/coin_tracker
082909e17308a8dd460225c1b035751d12a27106
[ "MIT" ]
null
null
null
main/rates/migrations/0002_auto_20170625_1510.py
Hawk94/coin_tracker
082909e17308a8dd460225c1b035751d12a27106
[ "MIT" ]
null
null
null
main/rates/migrations/0002_auto_20170625_1510.py
Hawk94/coin_tracker
082909e17308a8dd460225c1b035751d12a27106
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-25 15:10 from __future__ import unicode_literals from django.db import migrations
21.576923
48
0.568627
8120ff16ad9dc50c24922ea0574196c48067cace
2,357
py
Python
setup.py
dojeda/quetzal-openapi-client
d9d4dc99bb425a3f89dcbb80d5096f554bc42fff
[ "BSD-3-Clause" ]
null
null
null
setup.py
dojeda/quetzal-openapi-client
d9d4dc99bb425a3f89dcbb80d5096f554bc42fff
[ "BSD-3-Clause" ]
1
2019-09-17T09:11:01.000Z
2019-09-17T09:11:01.000Z
setup.py
dojeda/quetzal-openapi-client
d9d4dc99bb425a3f89dcbb80d5096f554bc42fff
[ "BSD-3-Clause" ]
1
2021-04-28T13:06:38.000Z
2021-04-28T13:06:38.000Z
# coding: utf-8 """ Quetzal API Quetzal: an API to manage data files and their associated metadata. OpenAPI spec version: 0.5.0 Contact: support@quetz.al Generated by: https://openapi-generator.tech """ from setuptools import setup, find_packages # noqa: H301 NAME = "quetzal-openapi-client" V...
32.287671
85
0.666101
81229a54be34a90af845ce0b0f142321ea5ad691
11,115
py
Python
youtube_dl/extractor/turner.py
jonyg80/youtube-dl
ef3a87fb77891329de1d3dbebfee53bf50645261
[ "Unlicense" ]
66,635
2019-03-10T21:34:18.000Z
2022-03-31T23:50:31.000Z
youtube_dl/extractor/turner.py
jonyg80/youtube-dl
ef3a87fb77891329de1d3dbebfee53bf50645261
[ "Unlicense" ]
10,936
2019-03-10T21:35:47.000Z
2022-03-31T23:46:52.000Z
youtube_dl/extractor/turner.py
jonyg80/youtube-dl
ef3a87fb77891329de1d3dbebfee53bf50645261
[ "Unlicense" ]
15,194
2019-03-10T21:09:27.000Z
2022-03-31T22:13:49.000Z
# coding: utf-8 from __future__ import unicode_literals import re from .adobepass import AdobePassIE from ..compat import compat_str from ..utils import ( fix_xml_ampersands, xpath_text, int_or_none, determine_ext, float_or_none, parse_duration, xpath_attr, update_url_query, Extrac...
42.586207
134
0.506163
81231c1bf7b40bb3a00ed96fce4e7257f1de32c5
1,188
py
Python
ml/sandbox/00-data.py
robk-dev/algo-trading
aa8d76ee739431ab24407fe094e0753c588dc8c6
[ "MIT" ]
1
2021-03-14T23:52:04.000Z
2021-03-14T23:52:04.000Z
ml/sandbox/00-data.py
robk-dev/algo-trading
aa8d76ee739431ab24407fe094e0753c588dc8c6
[ "MIT" ]
null
null
null
ml/sandbox/00-data.py
robk-dev/algo-trading
aa8d76ee739431ab24407fe094e0753c588dc8c6
[ "MIT" ]
null
null
null
from alpha_vantage.timeseries import TimeSeries from pprint import pprint import json import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('symbol', type=str, help="the stock symbol you want to download") parser.add_argument('time_window', type=str, choices=[...
34.941176
125
0.683502
8123847da358e93698586a58b0a106958f59df07
12,570
py
Python
tests/zpill.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
2,415
2018-12-04T00:37:58.000Z
2022-03-31T12:28:56.000Z
tests/zpill.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
3,272
2018-12-03T23:58:17.000Z
2022-03-31T21:15:32.000Z
tests/zpill.py
al3pht/cloud-custodian
ce6613d1b716f336384c5e308eee300389e6bf50
[ "Apache-2.0" ]
773
2018-12-06T09:43:23.000Z
2022-03-30T20:44:43.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import fnmatch from io import StringIO import json import os import shutil import zipfile import re from datetime import datetime, timedelta, tzinfo from distutils.util import strtobool import boto3 import placebo from botocore.response imp...
33.699732
93
0.605091
8123d51391f52c37336172ab4d3305871857e10f
16,865
py
Python
flexget/tests/test_next_series_seasons.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
flexget/tests/test_next_series_seasons.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
1
2017-10-09T23:06:44.000Z
2017-10-09T23:06:44.000Z
flexget/tests/test_next_series_seasons.py
metaMMA/Flexget
a38986422461d7935ead1e2b4ed4c88bcd0a90f5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import pytest from flexget.entry import Entry # TODO Add more standard tests
37.645089
116
0.520308
8123dd148da3e7a93c319e5be784b12da6c27afd
22,630
py
Python
pymatgen/analysis/wulff.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
1
2020-02-08T08:20:45.000Z
2020-02-08T08:20:45.000Z
pymatgen/analysis/wulff.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
null
null
null
pymatgen/analysis/wulff.py
hpatel1567/pymatgen
8304b25464206c74305214e45935df90bab95500
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module define a WulffShape class to generate the Wulff shape from a lattice, a list of indices and their corresponding surface energies, and the total area and volume of the wulff shape,the weighted su...
35.194401
107
0.576712
812522326c06afbf43f1bd6cee31bd8b7b273277
6,805
py
Python
app/sensor.py
sosprz/nettemp
334b3124263267c931bd7dc5c1bd8eb70614b4ef
[ "MIT" ]
51
2015-01-03T01:37:25.000Z
2021-11-03T18:07:42.000Z
app/sensor.py
sosprz/nettemp
334b3124263267c931bd7dc5c1bd8eb70614b4ef
[ "MIT" ]
18
2015-03-06T18:46:51.000Z
2021-04-02T08:02:01.000Z
app/sensor.py
sosprz/nettemp
334b3124263267c931bd7dc5c1bd8eb70614b4ef
[ "MIT" ]
51
2015-02-04T18:53:54.000Z
2022-02-16T20:40:45.000Z
from app import app from flask import Flask, request, jsonify, g import sqlite3 import os import json from random import randint from flask_jwt_extended import jwt_required import datetime from flask_mysqldb import MySQL mysql = MySQL()
27.439516
246
0.603527
812528562760727190e13a89643039e9938a674f
632
py
Python
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
1
2022-02-08T11:12:12.000Z
2022-02-08T11:12:12.000Z
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
1
2022-02-08T11:26:24.000Z
2022-02-08T11:26:24.000Z
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
null
null
null
from python_on_rails.either import as_either, Failure, Success def test_success_executes_bindings(): result = Success(1).bind(add_one).bind(times_five) assert isinstance(result, Success) assert result.value == 10 def test_a_failure_stops_the_execution_of_later_bindings(): result = Success("NaN").b...
25.28
93
0.726266
812594dced1920626bd6e5484a03e5c3aa5dda9e
1,943
py
Python
ServerSide/models.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
ServerSide/models.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
ServerSide/models.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. # Station # Customers # Items # Payments
32.932203
66
0.716933
81265c7215ed57cef680d0ec0a27f1c4d35a191a
5,340
bzl
Python
tao_compiler/mlir/disc/tests/glob_op_test.bzl
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
328
2021-12-20T03:29:35.000Z
2022-03-31T14:27:23.000Z
tao_compiler/mlir/disc/tests/glob_op_test.bzl
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
82
2021-12-20T09:15:16.000Z
2022-03-31T09:33:48.000Z
tao_compiler/mlir/disc/tests/glob_op_test.bzl
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
66
2021-12-21T17:28:27.000Z
2022-03-29T12:08:34.000Z
# Test definitions for Lit, the LLVM test runner. # # This is reusing the LLVM Lit test runner in the interim until the new build # rules are upstreamed. # TODO(b/136126535): remove this custom rule. """Lit runner globbing test """ load("//tensorflow:tensorflow.bzl", "filegroup") load("@bazel_skylib//lib:paths.bzl", "...
35.364238
94
0.639888
812723d2076c258aebc37a64fed06e3f495c2735
2,181
py
Python
build-scripts/PackageCheckHelpers.py
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
4
2016-01-18T20:49:23.000Z
2020-03-04T22:23:57.000Z
build-scripts/PackageCheckHelpers.py
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
2
2019-09-23T21:04:25.000Z
2020-01-31T18:10:17.000Z
build-scripts/PackageCheckHelpers.py
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
2
2021-04-01T20:53:12.000Z
2021-04-01T21:10:53.000Z
""" These are functions to add to the configure context. """ def __checkCanLink(context, source, source_type, message_libname, real_libs=[]): """ Check that source can be successfully compiled and linked against real_libs. Keyword arguments: source -- source to try to compile source_type -- type of source file, ...
22.484536
80
0.710683
81290326c9beb0af3fd98f2bdd52b65974d13cd3
12,950
py
Python
src/transformers/modeling_tf_pytorch_utils.py
ari-holtzman/transformers
8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4
[ "Apache-2.0" ]
5,129
2019-09-30T11:21:03.000Z
2022-03-31T22:35:12.000Z
src/transformers/modeling_tf_pytorch_utils.py
ari-holtzman/transformers
8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4
[ "Apache-2.0" ]
604
2019-10-05T00:39:46.000Z
2022-03-31T11:12:07.000Z
src/transformers/modeling_tf_pytorch_utils.py
ari-holtzman/transformers
8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4
[ "Apache-2.0" ]
1,034
2019-09-30T15:01:32.000Z
2022-03-31T06:14:50.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
39.242424
155
0.680386
81292f7ed0f85cfcaaa5e1e9abfd5ae7b048469d
4,906
py
Python
hail/python/test/hail/helpers.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
null
null
null
hail/python/test/hail/helpers.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
3
2017-06-16T18:10:45.000Z
2017-07-21T17:44:13.000Z
hail/python/test/hail/helpers.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
2
2018-01-30T00:50:52.000Z
2018-03-22T20:04:01.000Z
import os from timeit import default_timer as timer import unittest import pytest from decorator import decorator from hail.utils.java import Env import hail as hl from hail.backend.local_backend import LocalBackend _initialized = False _test_dir = os.environ.get('HAIL_TEST_RESOURCES_DIR', '../src/test/resources')...
28.858824
92
0.637994
812941051eea955290efb0cfdb0e29b4664e5ad1
2,728
py
Python
src/entity_linker/models/figer_model/labeling_model.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
10
2020-06-14T15:46:53.000Z
2021-04-29T15:02:23.000Z
src/entity_linker/models/figer_model/labeling_model.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
3
2021-08-25T16:16:45.000Z
2022-02-10T04:29:10.000Z
src/entity_linker/models/figer_model/labeling_model.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
1
2021-02-17T17:44:06.000Z
2021-02-17T17:44:06.000Z
""" Modifications copyright (C) 2020 Michael Strobl """ import time import tensorflow as tf import numpy as np from entity_linker.models.base import Model
40.716418
92
0.615836
8129c2d37ff5ea88cc0452e98c6e15446ea19cc4
329
py
Python
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
2
2020-03-25T14:41:53.000Z
2021-04-08T05:38:02.000Z
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
null
null
null
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import parmed as pmd import numpy as np from scipy.spatial import distance if len(sys.argv) < 2: print "Usage: molecular_diameter.py <mymolecule.mol2>" exit(1) mol = pmd.load_file(sys.argv[1]) crds = mol.coordinates dist = distance.cdist(crds, crds, 'euclidean') print np.max(dist...
19.352941
55
0.735562
812a80140e19ea007dd9ab25b6b57d63cc6eb659
2,425
py
Python
examples/text_classification/yelp_reviews_polarity/train.py
liorshk/simpletransformers
226cf4d11edf5157c1beafcc44aaa78f65ccc985
[ "Apache-2.0" ]
3,151
2019-10-05T11:14:44.000Z
2022-03-31T17:02:54.000Z
examples/text_classification/yelp_reviews_polarity/train.py
liorshk/simpletransformers
226cf4d11edf5157c1beafcc44aaa78f65ccc985
[ "Apache-2.0" ]
1,165
2019-10-05T14:48:55.000Z
2022-03-31T11:12:58.000Z
examples/text_classification/yelp_reviews_polarity/train.py
liorshk/simpletransformers
226cf4d11edf5157c1beafcc44aaa78f65ccc985
[ "Apache-2.0" ]
739
2019-10-06T15:11:54.000Z
2022-03-28T11:07:36.000Z
import sys import pandas as pd from simpletransformers.classification import ClassificationModel prefix = "data/" train_df = pd.read_csv(prefix + "train.csv", header=None) train_df.head() eval_df = pd.read_csv(prefix + "test.csv", header=None) eval_df.head() train_df[0] = (train_df[0] == 2).astype(int) eval_df[0]...
25.260417
80
0.68701
812b4e30304f24bb277705592e38799b83099f91
1,049
py
Python
LoadGraph.py
mahdi-zafarmand/SNA
a7188a2ceb63355183e470648f6ae4fa90a22faa
[ "MIT" ]
null
null
null
LoadGraph.py
mahdi-zafarmand/SNA
a7188a2ceb63355183e470648f6ae4fa90a22faa
[ "MIT" ]
null
null
null
LoadGraph.py
mahdi-zafarmand/SNA
a7188a2ceb63355183e470648f6ae4fa90a22faa
[ "MIT" ]
1
2020-10-28T01:52:36.000Z
2020-10-28T01:52:36.000Z
import networkx as nx import os.path
20.98
70
0.625357
812bc4e483e6787a26d9b7a22c0e31832c78af55
5,853
py
Python
mayan/apps/document_signatures/models.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_signatures/models.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_signatures/models.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
1
2021-04-30T09:44:14.000Z
2021-04-30T09:44:14.000Z
import logging import uuid from django.db import models from django.urls import reverse from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from model_utils.managers import InheritanceManager from mayan.apps.django_gpg.exceptions import VerificationError from mayan.ap...
34.02907
79
0.651973
812c3f30e6e3ff5facc02e59cfdcff8d05e984ea
2,226
py
Python
scripts/sync_reports_config.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
6
2018-11-03T22:43:35.000Z
2022-02-15T17:51:33.000Z
scripts/sync_reports_config.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
7
2016-12-07T22:19:37.000Z
2019-01-30T15:04:26.000Z
scripts/sync_reports_config.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
10
2017-04-10T21:40:22.000Z
2022-02-21T16:50:10.000Z
from ConfigParser import ConfigParser from sys import argv REPLACE_PROPERTIES = ["file_path", "database_connection", "new_file_path"] MAIN_SECTION = "app:main" if __name__ == '__main__': sync()
35.903226
88
0.700359
812c923f7680b63727b8c0d8a0b724feb7e64f73
1,448
py
Python
src/gausskernel/dbmind/xtuner/test/test_ssh.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/gausskernel/dbmind/xtuner/test/test_ssh.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/gausskernel/dbmind/xtuner/test/test_ssh.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE IS PROVIDED ON AN "AS IS...
33.674419
108
0.631215
812e0d88c6e6c1e7a35a42781edb6b394196778c
3,838
py
Python
models/utils.py
wyshi/Unsupervised-Structure-Learning
19b49320b46e5f7d990ab9e5b3054b331b86e59d
[ "Apache-2.0" ]
34
2019-06-25T06:21:03.000Z
2022-01-24T06:57:40.000Z
models/utils.py
wyshi/Unsupervised-Structure-Learning
19b49320b46e5f7d990ab9e5b3054b331b86e59d
[ "Apache-2.0" ]
3
2019-07-19T02:33:03.000Z
2021-11-03T09:06:25.000Z
models/utils.py
wyshi/Unsupervised-Structure-Learning
19b49320b46e5f7d990ab9e5b3054b331b86e59d
[ "Apache-2.0" ]
4
2019-06-25T06:46:12.000Z
2021-01-13T06:57:06.000Z
# Original work Copyright (C) 2017 Tiancheng Zhao, Carnegie Mellon University # Modified work Copyright 2018 Weiyan Shi. import tensorflow as tf import numpy as np from nltk.translate.bleu_score import sentence_bleu from nltk.translate.bleu_score import SmoothingFunction def get_bow(embedding, avg=False): ""...
38
132
0.680823
812eae9e0a007577935e4a756403808aa1018593
4,927
py
Python
gluoncv/data/transforms/block.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
5,447
2018-04-25T18:02:51.000Z
2022-03-31T00:59:49.000Z
gluoncv/data/transforms/block.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,566
2018-04-25T21:14:04.000Z
2022-03-31T06:42:42.000Z
gluoncv/data/transforms/block.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,345
2018-04-25T18:44:13.000Z
2022-03-30T19:32:53.000Z
# 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...
36.496296
99
0.628983
812fdf7c80ff79f192233383d15152b1c334cad3
3,631
py
Python
explore.py
lribiere/explore-mit-bih-arrhythmia-db
44eb2601ed437cb9766ae9cfd3c3553bf108d4f1
[ "MIT" ]
3
2020-02-26T20:01:11.000Z
2020-06-24T17:44:11.000Z
explore.py
lribiere/explore-mit-bih-arrhythmia-db
44eb2601ed437cb9766ae9cfd3c3553bf108d4f1
[ "MIT" ]
2
2020-07-01T09:38:58.000Z
2020-07-01T09:40:02.000Z
explore.py
lribiere/explore-mit-bih-arrhythmia-db
44eb2601ed437cb9766ae9cfd3c3553bf108d4f1
[ "MIT" ]
null
null
null
import plotly.graph_objects as go import streamlit as st import pandas as pd from utils import * import glob import wfdb import os ANNOTATIONS_COL_NAME = 'annotations' ''' # MIT-BIH Arrhythmia DB Exploration ''' record_ids = [os.path.basename(file)[:-4] for file in glob.glob('data/*.dat')] if len(record_ids) == 0: ...
44.82716
79
0.619664
8133672c14b4b385a9d7555f731ee05a987d9f73
143
py
Python
src/home_automation_hub/config.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
null
null
null
src/home_automation_hub/config.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
null
null
null
src/home_automation_hub/config.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
null
null
null
from .config_store import ConfigStore config = ConfigStore() config.set_mqtt_broker("mqtt", 1883) config.set_redis_config("redis", 6379, 0)
17.875
41
0.776224
81338229b9f75f52ae6ffcf7ef860588b32f5b97
3,915
py
Python
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import socket as csocket from struct import pack,unpack from website.contrib.communication.models import *
29.659091
110
0.527458
81353ee4f1a632a7e8022d2ce8c431b95559fb7b
12,262
py
Python
traitarm/reconstruction/visualize_recon.py
hzi-bifo/Model-T
197b52f6fe9b73e0411dbfc66f6d2a43081f5697
[ "Apache-2.0" ]
1
2021-04-07T16:10:55.000Z
2021-04-07T16:10:55.000Z
traitarm/reconstruction/visualize_recon.py
hzi-bifo/Model-T
197b52f6fe9b73e0411dbfc66f6d2a43081f5697
[ "Apache-2.0" ]
null
null
null
traitarm/reconstruction/visualize_recon.py
hzi-bifo/Model-T
197b52f6fe9b73e0411dbfc66f6d2a43081f5697
[ "Apache-2.0" ]
null
null
null
import pandas as pd import ete2 from ete2 import faces, Tree, AttrFace, TreeStyle import pylab from matplotlib.colors import hex2color, rgb2hex, hsv_to_rgb, rgb_to_hsv kelly_colors_hex = [ 0xFFB300, # Vivid Yellow 0x803E75, # Strong Purple 0xFF6800, # Vivid Orange 0xA6BDD7, # Very Light Blue 0xC100...
52.178723
485
0.621921
81367db3d2084fd41d74cdefdf3b14a53b5730ea
46,827
py
Python
scripts/misc/operator_condition_number_scipy.py
volpatto/firedrake_scripts
ba9c935bb0c9a6bbc6de69f476e42ad0ea8bb1c6
[ "MIT" ]
5
2019-01-19T14:18:51.000Z
2022-02-10T14:22:12.000Z
scripts/misc/operator_condition_number_scipy.py
volpatto/firedrake_scripts
ba9c935bb0c9a6bbc6de69f476e42ad0ea8bb1c6
[ "MIT" ]
null
null
null
scripts/misc/operator_condition_number_scipy.py
volpatto/firedrake_scripts
ba9c935bb0c9a6bbc6de69f476e42ad0ea8bb1c6
[ "MIT" ]
1
2021-06-14T07:32:26.000Z
2021-06-14T07:32:26.000Z
import attr from firedrake import * import numpy as np import matplotlib.pyplot as plt import matplotlib from scipy.linalg import svd from scipy.sparse.linalg import svds from scipy.sparse import csr_matrix from slepc4py import SLEPc import pandas as pd from tqdm import tqdm import os matplotlib.use('Agg') def plot...
30.807237
114
0.617528
81368cbcf7560067152788c0a732e279491b5a68
7,884
py
Python
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File :_time_domain_features.py @Time :2021/04/16 20:02:55 @Author :wlgls @Version :1.0 ''' import numpy as np def statistics(data, combined=True): """Statistical features include Power, Mean, Std, 1st differece, Normalized 1st difference, 2nd difference, Norm...
29.977186
291
0.597793
8137ad04173c8650a7a1905ad7cd6c799cdbd81c
39
py
Python
pymutual/__init__.py
kimballh/pymutual
7d7f588099eee7bdd669d613756509c6ab44a911
[ "MIT" ]
null
null
null
pymutual/__init__.py
kimballh/pymutual
7d7f588099eee7bdd669d613756509c6ab44a911
[ "MIT" ]
null
null
null
pymutual/__init__.py
kimballh/pymutual
7d7f588099eee7bdd669d613756509c6ab44a911
[ "MIT" ]
null
null
null
from .session import Session, MutualAPI
39
39
0.846154
81388e81430c58269d1e2c8e97af2f8dbcc4ac2d
936
py
Python
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import InputRequired, Email, ValidationError from models import User
40.695652
84
0.746795
81399676f0bd08a3b07c20a3a444ab0c8669d9d3
1,064
py
Python
plugins/barracuda_waf/komand_barracuda_waf/actions/create_security_policy/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/barracuda_waf/komand_barracuda_waf/actions/create_security_policy/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/barracuda_waf/komand_barracuda_waf/actions/create_security_policy/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json
17.16129
80
0.566729
813a4523ca5ed1d20d9dca5c73420720f380885a
1,090
py
Python
examples/dhc/rule_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
2
2019-05-22T08:24:38.000Z
2020-12-04T13:36:30.000Z
examples/dhc/rule_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
null
null
null
examples/dhc/rule_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
3
2018-09-15T13:40:40.000Z
2021-06-29T23:31:18.000Z
#!/usr/bin/python3 from pyspark.sql import SparkSession from haychecker.dhc.metrics import rule spark = SparkSession.builder.appName("rule_example").getOrCreate() df = spark.read.format("csv").option("header", "true").load("examples/resources/employees.csv") df.show() condition1 = {"column": "salary", "operator": ...
31.142857
95
0.678899
813a8ce209fa6c27b191963bd6e67321e4277566
10,579
py
Python
secure_message/common/utilities.py
uk-gov-mirror/ONSdigital.ras-secure-message
741eed651eea47dd1a13c7c93b1b1796584cdf2b
[ "MIT" ]
null
null
null
secure_message/common/utilities.py
uk-gov-mirror/ONSdigital.ras-secure-message
741eed651eea47dd1a13c7c93b1b1796584cdf2b
[ "MIT" ]
null
null
null
secure_message/common/utilities.py
uk-gov-mirror/ONSdigital.ras-secure-message
741eed651eea47dd1a13c7c93b1b1796584cdf2b
[ "MIT" ]
null
null
null
import collections import logging import urllib.parse from structlog import wrap_logger from secure_message.constants import MESSAGE_BY_ID_ENDPOINT, MESSAGE_LIST_ENDPOINT, MESSAGE_QUERY_LIMIT from secure_message.services.service_toggles import party, internal_user_service logger = wrap_logger(logging.getLogger(__nam...
43.714876
154
0.680121
813b149e48d21390532f6bf57e32e5f1ed05f482
8,353
py
Python
notegame/games/nonogram/core/renderer.py
notechats/notegame
3d9538b98cb6b0b240956b1271e028b22458fc54
[ "Apache-2.0" ]
null
null
null
notegame/games/nonogram/core/renderer.py
notechats/notegame
3d9538b98cb6b0b240956b1271e028b22458fc54
[ "Apache-2.0" ]
null
null
null
notegame/games/nonogram/core/renderer.py
notechats/notegame
3d9538b98cb6b0b240956b1271e028b22458fc54
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines various renderers for the game of nonogram """ from abc import ABC from sys import stdout from notetool.tool.log import logger from six import integer_types, itervalues, text_type from ..utils.iter import max_safe, pad from ..utils.other import two_powers from .common import BOX, ...
27.386885
81
0.587932
813bbe394d73b1fd28585f58879386377ceda809
9,047
py
Python
sympy/printing/lambdarepr.py
Carreau/sympy
168de33bb177936fa9517702b2c5a777b3989672
[ "BSD-3-Clause" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
sympy/printing/lambdarepr.py
Carreau/sympy
168de33bb177936fa9517702b2c5a777b3989672
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/lambdarepr.py
Carreau/sympy
168de33bb177936fa9517702b2c5a777b3989672
[ "BSD-3-Clause" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
from __future__ import print_function, division from .str import StrPrinter from sympy.utilities import default_sort_key # numexpr works by altering the string passed to numexpr.evaluate # rather than by populating a namespace. Thus a special printer... def lambdarepr(expr, **settings): """ Returns a stri...
34.139623
92
0.559191
813c2d5f4577a87860a81df5e212cf9b2d380367
1,690
py
Python
python/fill_na_v2.py
fredmell/CS229Project
b214127485ddc587b9fe3be253937ba8378f9db7
[ "MIT" ]
null
null
null
python/fill_na_v2.py
fredmell/CS229Project
b214127485ddc587b9fe3be253937ba8378f9db7
[ "MIT" ]
null
null
null
python/fill_na_v2.py
fredmell/CS229Project
b214127485ddc587b9fe3be253937ba8378f9db7
[ "MIT" ]
1
2020-06-01T00:36:06.000Z
2020-06-01T00:36:06.000Z
""" Fill na with most common of the whole column """ import numpy as np import pandas as pd import time import matplotlib.pyplot as plt from datetime import datetime import re from collections import Counter from statistics import median from tqdm import tqdm file = '/home/nicolasbievre/yelp_data.pkl' file_na = '/h...
23.472222
85
0.611243
813cbfb2b0206a03eec11ec90ba51dbd9b92d6bd
3,071
py
Python
GUI Applications/calc.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
GUI Applications/calc.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
GUI Applications/calc.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
from tkinter import Tk from tkinter import Entry from tkinter import Button from tkinter import StringVar t=Tk() t.title("Tarun Jaiswal") t.geometry("425x300") t.resizable(0,0) t.configure(background="black")#back ground color a=StringVar() e1=Entry(font=("",30),justify="right",textvariable=a) e1.place(x=0,y=...
33.021505
94
0.699772