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
bca0fa8e74628a1e3b4d12b48aced9b11ac7d4e9
775
py
Python
lasercut/laser_cut.py
willdickson/teensy_to_autodriver_mount
6c0cc48701850b4afd77b0c4ce3a3d1152bb8219
[ "CC-BY-4.0" ]
null
null
null
lasercut/laser_cut.py
willdickson/teensy_to_autodriver_mount
6c0cc48701850b4afd77b0c4ce3a3d1152bb8219
[ "CC-BY-4.0" ]
null
null
null
lasercut/laser_cut.py
willdickson/teensy_to_autodriver_mount
6c0cc48701850b4afd77b0c4ce3a3d1152bb8219
[ "CC-BY-4.0" ]
null
null
null
import os import sys from py2gcode import gcode_cmd from py2gcode import cnc_laser dxfFileName = sys.argv[1] prog = gcode_cmd.GCodeProg() prog.add(gcode_cmd.GenericStart()) prog.add(gcode_cmd.Space()) param = { 'fileName' : dxfFileName, 'layers' : ['vector'], 'dxfTypes' : ['LINE...
23.484848
49
0.618065
c24d3e83922ef9a56591594b9d80af9bb6a30ce2
6,153
py
Python
system_test/system_test_env.py
mthak/test_kafka
5ad9bd376951c0167038609a9afc4ef9e8329a39
[ "Apache-2.0" ]
6
2015-02-23T05:17:54.000Z
2018-05-11T09:36:24.000Z
system_test/system_test_env.py
mthak/test_kafka
5ad9bd376951c0167038609a9afc4ef9e8329a39
[ "Apache-2.0" ]
31
2019-09-09T03:06:25.000Z
2021-05-03T12:29:32.000Z
system_test/system_test_env.py
mthak/test_kafka
5ad9bd376951c0167038609a9afc4ef9e8329a39
[ "Apache-2.0" ]
5
2017-08-23T02:50:05.000Z
2020-09-11T11:25:03.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...
44.266187
113
0.675443
4f50e2d175e110602a125a0c85f853d363b8c394
14,370
py
Python
kubernetes/client/models/v1_node_system_info.py
henrywu2019/python
fb7214144395c05349e70a58ea129576f6b11fc4
[ "Apache-2.0" ]
4,417
2018-01-13T04:30:48.000Z
2022-03-31T15:33:59.000Z
kubernetes/client/models/v1_node_system_info.py
g1f1/python-1
da6076070b2ada0e048e060943b94358213c414b
[ "Apache-2.0" ]
1,414
2018-01-12T19:31:56.000Z
2022-03-31T22:01:02.000Z
kubernetes/client/models/v1_node_system_info.py
g1f1/python-1
da6076070b2ada0e048e060943b94358213c414b
[ "Apache-2.0" ]
2,854
2018-01-14T08:57:33.000Z
2022-03-31T01:41:56.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.21 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
37.324675
274
0.653236
abe6cf25e2c23c55ae15fb8e915e9c56ea873299
2,786
py
Python
4 text_predict.py
dreamer221/text_cnn_model_pb
e532e6106d2e877867e09e7ef1d18d6ad6a56d49
[ "MIT" ]
null
null
null
4 text_predict.py
dreamer221/text_cnn_model_pb
e532e6106d2e877867e09e7ef1d18d6ad6a56d49
[ "MIT" ]
null
null
null
4 text_predict.py
dreamer221/text_cnn_model_pb
e532e6106d2e877867e09e7ef1d18d6ad6a56d49
[ "MIT" ]
null
null
null
# encoding:utf-8 from text_model import * import tensorflow as tf import tensorflow.contrib.keras as kr from loader import read_vocab import jieba import re import codecs def predict(sentences): _, word_to_id = read_vocab(config.vocab_filename) input_x2 = process_file(sentences, word_to_id, max_length=config....
31.659091
107
0.574659
ff947dc2f3910d5af576dc984c25dc93b1389941
3,329
py
Python
pypureclient/flasharray/FA_2_6/models/reference.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_6/models/reference.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_6/models/reference.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
28.211864
105
0.534695
4ca7134325c720758954d975d40b7b1a7b081637
1,262
py
Python
Old/src/com/basic/filter.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
Old/src/com/basic/filter.py
exchris/Pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
1
2018-11-27T09:58:54.000Z
2018-11-27T09:58:54.000Z
Old/src/com/basic/filter.py
exchris/pythonlearn
174f38a86cf1c85d6fc099005aab3568e7549cd0
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- ''' 和map()类似,filter()也接收一个函数和一个序列。 和map()不同的是,filter()把传入的函数依次作用于每个元素,然后根据返回值是True还是False决定保留还是丢弃该元素 例如:在一个list中,删掉偶数,只保留奇数,可以这么写 ''' def is_odd(n) : return n % 2 == 1 odd = list(filter(is_odd, [1,2,4,5,6,9,10,15])) print(odd) # 打印奇数 # 把一个序列中的空字符串删掉,可以这么写: def not_empty(s) : return s ...
20.031746
85
0.62916
1acd17c3fbbe93a0d37e50590a9e52d78ace5fb4
19,795
py
Python
lib/storage.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
lib/storage.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
lib/storage.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
4
2018-07-07T16:35:50.000Z
2018-12-25T16:02:52.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
36.862197
136
0.551149
4ce81f0531e45823c68b1ec70784052df3bdccf4
456
py
Python
project/app/urls.py
NPriyajit/DevChroma-Django-WebApp
b89a8ac36913ec8c56be537c53ce91c0b7719b51
[ "MIT" ]
null
null
null
project/app/urls.py
NPriyajit/DevChroma-Django-WebApp
b89a8ac36913ec8c56be537c53ce91c0b7719b51
[ "MIT" ]
null
null
null
project/app/urls.py
NPriyajit/DevChroma-Django-WebApp
b89a8ac36913ec8c56be537c53ce91c0b7719b51
[ "MIT" ]
null
null
null
from django.urls import path, include from app import views urlpatterns = [ path('',views.home,name="home"), path('blog',views.handleblog,name="handleblog"), path('contact',views.contact,name="contact"), path('about',views.about,name="about"), path('services',views.services,name="services"), pa...
32.571429
55
0.679825
f0dbae5ae8cd43b05ce41fee080e206f14b03718
177
py
Python
fineName.py
yuhengfdada/Document-Image-Rectification-with-Deep-Learning
22070270fe21e06c5aa08a839531a3d6fabb1592
[ "MIT" ]
2
2020-08-19T03:21:09.000Z
2022-03-25T07:37:55.000Z
fineName.py
yuhengfdada/Document-Image-Rectification-with-Deep-Learning
22070270fe21e06c5aa08a839531a3d6fabb1592
[ "MIT" ]
null
null
null
fineName.py
yuhengfdada/Document-Image-Rectification-with-Deep-Learning
22070270fe21e06c5aa08a839531a3d6fabb1592
[ "MIT" ]
1
2020-09-17T09:41:30.000Z
2020-09-17T09:41:30.000Z
'''from pathlib import Path p = Path('.') li = list(p.glob('*.png')) f = open('test.txt','w') for i, file in enumerate(li): f.write(file.stem) f.write('\n') f.close()'''
22.125
29
0.570621
5be7b2afbd354463434547c58a484c4567ed5801
2,360
py
Python
qtpyvcp/widgets/dialogs/probesim_dialog.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
71
2018-12-13T20:31:18.000Z
2022-03-26T08:44:22.000Z
qtpyvcp/widgets/dialogs/probesim_dialog.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
78
2019-01-10T18:16:33.000Z
2022-03-18T19:30:49.000Z
qtpyvcp/widgets/dialogs/probesim_dialog.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
38
2018-10-10T19:02:26.000Z
2022-01-30T04:38:14.000Z
# Copyright (c) 2018 Kurt Jacobson # <kurtcjacobson@gmail.com> # # This file is part of QtPyVCP. # # QtPyVCP is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or #...
29.5
75
0.676695
83f7616435bb56d0fd5629fd572d5eff240ddcaf
412
py
Python
scipy/optimize/cython_optimize/setup.py
jcharlong/scipy
153467a9174b0c6f4b90ffeed5871e5018658108
[ "BSD-3-Clause" ]
9,095
2015-01-02T18:24:23.000Z
2022-03-31T20:35:31.000Z
scipy/optimize/cython_optimize/setup.py
jcharlong/scipy
153467a9174b0c6f4b90ffeed5871e5018658108
[ "BSD-3-Clause" ]
11,500
2015-01-01T01:15:30.000Z
2022-03-31T23:07:35.000Z
scipy/optimize/cython_optimize/setup.py
jcharlong/scipy
153467a9174b0c6f4b90ffeed5871e5018658108
[ "BSD-3-Clause" ]
5,838
2015-01-05T11:56:42.000Z
2022-03-31T23:21:19.000Z
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('cython_optimize', parent_package, top_path) config.add_data_files('*.pxd') config.add_extension('_zeros', sources='_zeros.c') return config if __name__ == '__main__': ...
29.428571
71
0.730583
8f7b2f64fef2b0e38c810ab3276965e0b22e0fe4
7,739
py
Python
tensorflow-posenet-keras/quantize_graph_image_keras.py
hulop/CNNLocalizationTF
90903916d2c7b95ec9e3851db4919fc0e1485bbf
[ "MIT" ]
2
2018-08-10T21:15:18.000Z
2021-12-22T17:29:41.000Z
tensorflow-posenet-keras/quantize_graph_image_keras.py
hulop/CNNLocalizationTF
90903916d2c7b95ec9e3851db4919fc0e1485bbf
[ "MIT" ]
null
null
null
tensorflow-posenet-keras/quantize_graph_image_keras.py
hulop/CNNLocalizationTF
90903916d2c7b95ec9e3851db4919fc0e1485bbf
[ "MIT" ]
4
2018-08-09T16:38:15.000Z
2021-04-11T19:54:20.000Z
############################################################################## #The MIT License (MIT) # #Copyright (c) 2018 IBM Corporation, Carnegie Mellon University and others # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "So...
58.628788
132
0.689495
e59327dd1ec2e1a01859200b9392d06f686c7415
1,032
py
Python
src/hand.py
davidjayfrancis/blackjack-in-python
342bf2752fa6cd0af6777d5a702ad1eefc325387
[ "MIT" ]
null
null
null
src/hand.py
davidjayfrancis/blackjack-in-python
342bf2752fa6cd0af6777d5a702ad1eefc325387
[ "MIT" ]
null
null
null
src/hand.py
davidjayfrancis/blackjack-in-python
342bf2752fa6cd0af6777d5a702ad1eefc325387
[ "MIT" ]
null
null
null
class Hand: def __init__(self, stay=False): self.stay = stay self.cards = [] def drawCard(self, deck): self.cards.append(deck.dealCard()) def displayHand(self): return f"{[f'{card.num}{card.face},' for card in self.cards]}" # Corner case to be resol...
24.571429
70
0.390504
40fedb9e9ef950cc83e2be88afdfa044f5068cef
1,051
py
Python
plugins/Vibe/__init__.py
koalasthegreat/Automata
c2dd271c9e8028759ba7f4fe94ab9c4be340dd25
[ "MIT" ]
null
null
null
plugins/Vibe/__init__.py
koalasthegreat/Automata
c2dd271c9e8028759ba7f4fe94ab9c4be340dd25
[ "MIT" ]
null
null
null
plugins/Vibe/__init__.py
koalasthegreat/Automata
c2dd271c9e8028759ba7f4fe94ab9c4be340dd25
[ "MIT" ]
null
null
null
import nextcord from nextcord.ext import commands from Plugin import AutomataPlugin VIBE_IMAGE = "https://s3.gifyu.com/images/catvibe.gif" VIBIER_IMAGE = "https://s3.gifyu.com/images/ezgif.com-gif-maker-174e18faa852a3028.gif" VIBIEST_IMAGE = "https://s3.gifyu.com/images/ezgif.com-gif-maker-2664260aedaea9638.gif" VIBE...
36.241379
87
0.675547
9897370ae60d27a240085479a81ddd4b3b7a3fb3
750
py
Python
socketclusterclient/Emitter.py
sacOO7/socketcluster-client-python
aac7f395847f32c031a94815526167d337c54ce7
[ "MIT" ]
51
2016-12-09T14:35:16.000Z
2021-09-24T21:39:43.000Z
socketclusterclient/Emitter.py
sacOO7/socketcluster-client-python
aac7f395847f32c031a94815526167d337c54ce7
[ "MIT" ]
19
2017-01-03T10:41:42.000Z
2021-04-29T06:33:57.000Z
socketclusterclient/Emitter.py
sacOO7/socketcluster-client-python
aac7f395847f32c031a94815526167d337c54ce7
[ "MIT" ]
19
2017-02-06T18:43:29.000Z
2021-09-26T02:15:17.000Z
class emitter(object): def on(self, key, function): self.map[key] = function def onchannel(self, key, function): self.map[key] = function def onack(self, key, function): self.mapack[key] = function def execute(self, key, object): if key in self.map: functi...
24.193548
43
0.554667
c51b66d2122bf3db9393237448d93e706be36e10
7,898
py
Python
bin/parse_cutadapt.py
mr-c/eclip
833a389b773e12492d316e61db802dd353404f4f
[ "BSD-3-Clause" ]
null
null
null
bin/parse_cutadapt.py
mr-c/eclip
833a389b773e12492d316e61db802dd353404f4f
[ "BSD-3-Clause" ]
null
null
null
bin/parse_cutadapt.py
mr-c/eclip
833a389b773e12492d316e61db802dd353404f4f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # transitionning to python2/python3 support # uncomment from this compatibility import list, as py3/py2 support progresses from __future__ import print_function from __future__ import division # from __future__ import absolute_import # from __future__ import unicode_literals # from future impor...
39.09901
94
0.592808
0a852f0e9db20cc5a9de040748f68bb35742682e
5,965
py
Python
csiread/_type.py
benjaminjacobreji/csiread
58c62fc8ff818271f3c9ff84361361d83629df1a
[ "MIT" ]
null
null
null
csiread/_type.py
benjaminjacobreji/csiread
58c62fc8ff818271f3c9ff84361361d83629df1a
[ "MIT" ]
null
null
null
csiread/_type.py
benjaminjacobreji/csiread
58c62fc8ff818271f3c9ff84361361d83629df1a
[ "MIT" ]
null
null
null
import numpy as np def init_dtype_picoscenes(pl_size): dt_ieee80211_mac_frame_header_frame_control_field = np.dtype([ ('Version', np.uint8), ('Type', np.uint8), ('SubType', np.uint8), ('ToDS', np.uint8), ('FromDS', np.uint8), ('MoreFrags', np.uint8), ('Retry...
28.956311
76
0.506454
6e9f65f31ea2eef47b74cfb10c4226cdd45b05c1
51,872
py
Python
NodeGraphQt/base/graph.py
githeshuai/NodeGraphQt
1291f72804fd2fe4f20aae446c483b8412a88dc5
[ "MIT" ]
null
null
null
NodeGraphQt/base/graph.py
githeshuai/NodeGraphQt
1291f72804fd2fe4f20aae446c483b8412a88dc5
[ "MIT" ]
null
null
null
NodeGraphQt/base/graph.py
githeshuai/NodeGraphQt
1291f72804fd2fe4f20aae446c483b8412a88dc5
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import json import os import re import copy import gc from .. import QtCore, QtWidgets, QtGui from .commands import (NodeAddedCmd, NodeRemovedCmd, NodeMovedCmd, PortConnectedCmd) from .factory import NodeFacto...
31.687233
114
0.571214
37b12337a7ef361d68cafe5a8fd78ff9c57a689c
18,819
py
Python
log_complete/model_542.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete/model_542.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete/model_542.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
91.354369
710
0.806525
51e3eab22fc98e26de4431fb6a35fcb993079975
1,031
py
Python
setup.py
wesleyit/sample_python_package
21d0cad1db304e7f2ec6b236dad6eb144cc16d3d
[ "MIT" ]
1
2020-11-20T21:28:30.000Z
2020-11-20T21:28:30.000Z
setup.py
wesleyit/sample_python_package
21d0cad1db304e7f2ec6b236dad6eb144cc16d3d
[ "MIT" ]
null
null
null
setup.py
wesleyit/sample_python_package
21d0cad1db304e7f2ec6b236dad6eb144cc16d3d
[ "MIT" ]
null
null
null
import io import os import re from setuptools import find_packages from setuptools import setup def read(filename): filename = os.path.join(os.path.dirname(__file__), filename) text_type = type(u"") with io.open(filename, mode="r", encoding='utf-8') as fd: f = r':[a-z]+:`~?(.*?)`' return ...
28.638889
68
0.637245
76e608f0fd23f64a9b109e67089edd53d9ce59c5
238
py
Python
src/rendere/eml/eml_utils.py
PASTAplus/rendere
63cc5effae4118fa20545339c2f0b0ebbee35271
[ "Apache-2.0" ]
null
null
null
src/rendere/eml/eml_utils.py
PASTAplus/rendere
63cc5effae4118fa20545339c2f0b0ebbee35271
[ "Apache-2.0" ]
5
2021-04-01T02:12:50.000Z
2022-03-14T01:40:58.000Z
src/rendere/eml/eml_utils.py
PASTAplus/rendere
63cc5effae4118fa20545339c2f0b0ebbee35271
[ "Apache-2.0" ]
1
2020-09-22T21:47:31.000Z
2020-09-22T21:47:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :Mod: eml_utils :Synopsis: :Author: servilla :Created: 3/25/20 """ import daiquiri logger = daiquiri.getLogger(__name__) def clean(text): return " ".join(text.split())
10.347826
37
0.617647
50c533f043cbf4af4b7ff1a5630fa44d4d3e74f1
2,036
py
Python
tests/conftest.py
drawjk705/us-pls
6b9a696b18c18de81b279862f182fb990604b998
[ "MIT" ]
null
null
null
tests/conftest.py
drawjk705/us-pls
6b9a696b18c18de81b279862f182fb990604b998
[ "MIT" ]
null
null
null
tests/conftest.py
drawjk705/us-pls
6b9a696b18c18de81b279862f182fb990604b998
[ "MIT" ]
null
null
null
import inspect from typing import Dict, cast from unittest.mock import MagicMock import pandas import pytest import requests from pytest import FixtureRequest, MonkeyPatch from pytest_mock.plugin import MockerFixture from tests import utils # pyright: reportPrivateUsage=false # pandas mocks @pytest.fixture def moc...
30.848485
88
0.74165
f0337781578bba2c9fe19a563e38eeecac72e122
2,074
py
Python
Finals Practice/6.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
Finals Practice/6.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
Finals Practice/6.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
class Student: def __init__(self,name,ID): self.name = name self.ID = ID def Details(self): return "Name: "+self.name+"\n"+"ID: "+self.ID+"\n" #Write your code here class CSEStudent(Student): def __init__(self, name, ID,sem): super().__init__(name, ID) self.sem = s...
26.935065
81
0.460463
46e1e5bd87c51704c5d75cd0d9012a45133e6f6b
1,790
py
Python
setup.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
1
2020-02-04T20:59:03.000Z
2020-02-04T20:59:03.000Z
setup.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
3
2020-06-09T16:37:01.000Z
2021-08-30T00:31:12.000Z
setup.py
pedrofran12/hpim_dm
fe949294b5e75ab544dcd40ff51ceafc1d3b2f0c
[ "MIT" ]
1
2020-11-23T06:47:46.000Z
2020-11-23T06:47:46.000Z
import sys from setuptools import setup, find_packages # we only support Python 3 version >= 3.3 if len(sys.argv) >= 2 and sys.argv[1] == "install" and sys.version_info < (3, 3): raise SystemExit("Python 3.3 or higher is required") dependencies = open("requirements.txt", "r").read().splitlines() setup( name=...
35.098039
83
0.622905
f1d99d13a2aef0e1ac895bd3c7ad2ce4949a6f13
16,079
py
Python
log_mito/model_727.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_727.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito/model_727.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
87.863388
710
0.80347
d53a9bdb546eed37813770c33ab6f7c458ecbbea
8,721
py
Python
external/rocksdb/tools/advisor/test/test_db_options_parser.py
cashbitecrypto/cashbite
991200dc37234caa74c603cb8aee094cbd7ce429
[ "BSD-3-Clause" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
external/rocksdb/tools/advisor/test/test_db_options_parser.py
cashbitecrypto/cashbite
991200dc37234caa74c603cb8aee094cbd7ce429
[ "BSD-3-Clause" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
external/rocksdb/tools/advisor/test/test_db_options_parser.py
cashbitecrypto/cashbite
991200dc37234caa74c603cb8aee094cbd7ce429
[ "BSD-3-Clause" ]
1,731
2017-12-09T15:09:43.000Z
2022-03-30T18:23:38.000Z
# Copyright (c) 2011-present, Facebook, Inc. All rights reserved. # This source code is licensed under both the GPLv2 (found in the # COPYING file in the root directory) and Apache 2.0 License # (found in the LICENSE.Apache file in the root directory). from advisor.db_log_parser import NO_COL_FAMILY from advisor.d...
40.18894
79
0.595803
5617134b605bded511fbc236c6c29c75ba13e157
2,654
py
Python
test/pyaz/mariadb/server/firewall_rule/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
test/pyaz/mariadb/server/firewall_rule/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
9
2021-09-24T16:37:24.000Z
2021-12-24T00:39:19.000Z
test/pyaz/mariadb/server/firewall_rule/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
import json, subprocess from .... pyaz_utils import get_cli_name, get_params def create(resource_group, server_name, name, start_ip_address, end_ip_address): params = get_params(locals()) command = "az mariadb server firewall-rule create " + params print(command) output = subprocess.run(command, sh...
35.864865
142
0.67257
5861f804ce95c74d096e68006505940e3d79a978
17,175
py
Python
fast_io/core.py
TarunKurella/micropython-async
45f51dd18de78caebb97c6445f47c178d00175a3
[ "MIT" ]
2
2019-07-20T11:33:22.000Z
2019-07-20T11:33:35.000Z
fast_io/core.py
TarunKurella/micropython-async
45f51dd18de78caebb97c6445f47c178d00175a3
[ "MIT" ]
null
null
null
fast_io/core.py
TarunKurella/micropython-async
45f51dd18de78caebb97c6445f47c178d00175a3
[ "MIT" ]
null
null
null
# uasyncio.core fast_io # (c) 2014-2018 Paul Sokolovsky. MIT license. # This is a fork of official MicroPython uasynco. It is recommended to use # the official version unless the specific features of this fork are required. # Changes copyright (c) Peter Hinch 2018, 2019 # Code at https://github.com/peterhinch/micropy...
37.095032
130
0.556623
97c80505f26c630f80edd6e36be8433347786cc5
344
py
Python
setup.py
marcelogomess/glpi_api
395c913de5d7c8add74973eca0e232041606c224
[ "BSD-2-Clause" ]
null
null
null
setup.py
marcelogomess/glpi_api
395c913de5d7c8add74973eca0e232041606c224
[ "BSD-2-Clause" ]
null
null
null
setup.py
marcelogomess/glpi_api
395c913de5d7c8add74973eca0e232041606c224
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup setup( name='glpi_api', version='0.0.1', packages=['requests'], url='https://github.com/marcelogomess/glpi_api.git', license='BSD 2', author='marcelogomess', author_email='celo.gomess@gmail.com', description='Just a app to start with glpi api communitaci...
26.461538
83
0.686047
417fd1524c308419afcf07cfce29d03273fc209d
1,558
py
Python
backend/model/migrate/versions/4ac191f72d8_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/4ac191f72d8_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/4ac191f72d8_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Change primary to unique constraint Revision ID: 4ac191f72d8 Revises: 2baf554c632 Create Date: 2015-07-29 22:20:58.116493 """ # revision identifiers, used by Alembic. revision = '4ac191f72d8' down_revision = '2baf554c632' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa from ...
25.129032
127
0.70475
f8175a901299c04e915fcf6d51f547f2f21811e3
3,813
py
Python
identity_provider/api.py
PSauerborn/monty
9c0a1097b243803bdf37ca5dbc03983d3d4e77c0
[ "MIT" ]
2
2020-09-12T13:25:04.000Z
2021-09-04T06:53:09.000Z
identity_provider/api.py
PSauerborn/monty
9c0a1097b243803bdf37ca5dbc03983d3d4e77c0
[ "MIT" ]
null
null
null
identity_provider/api.py
PSauerborn/monty
9c0a1097b243803bdf37ca5dbc03983d3d4e77c0
[ "MIT" ]
null
null
null
"""Module containing API functions""" import logging import json from bottle import Bottle, request, response, abort from config import LISTEN_ADDRESS, LISTEN_PORT from data_models import dataclass_response, extract_request_body, HTTPResponse, NewUserRequest, \ TokenRequest from persistence import create_new_use...
36.663462
122
0.713611
275258e32c158aba11479dccbc2edde11606786b
5,577
py
Python
elecsus/tests/fitting_tests.py
fsponciano/ElecSus
c79444edb18154906caddf438c7e33b02865fa66
[ "Apache-2.0" ]
22
2016-07-11T15:25:18.000Z
2021-10-04T08:16:33.000Z
elecsus/tests/fitting_tests.py
Quantum-Light-and-Matter/ElecSus
c79444edb18154906caddf438c7e33b02865fa66
[ "Apache-2.0" ]
8
2019-08-12T09:46:21.000Z
2021-07-29T09:01:10.000Z
elecsus/tests/fitting_tests.py
Quantum-Light-and-Matter/ElecSus
c79444edb18154906caddf438c7e33b02865fa66
[ "Apache-2.0" ]
20
2016-06-09T14:35:14.000Z
2021-09-30T13:43:46.000Z
""" Series of tests and example code to run elecsus via the API Last updated 2018-07-04 MAZ """ # py 2.7 compatibility from __future__ import (division, print_function, absolute_import) import matplotlib.pyplot as plt import numpy as np import time import sys sys.path.append('../') import elecsus_methods as EM sys.p...
34.214724
153
0.69177
bd03bfb1cdb326b40ef4fd6c8c424f9065594e49
1,307
py
Python
src/experiment/run_exp.py
nilax97/DL-Sys-Perf-Project
bb6d2e8587272e37903f0f7e30ba38f98690c899
[ "MIT" ]
null
null
null
src/experiment/run_exp.py
nilax97/DL-Sys-Perf-Project
bb6d2e8587272e37903f0f7e30ba38f98690c899
[ "MIT" ]
1
2022-02-09T23:43:36.000Z
2022-02-09T23:43:36.000Z
src/experiment/run_exp.py
nilax97/DL-Sys-Perf-Project
bb6d2e8587272e37903f0f7e30ba38f98690c899
[ "MIT" ]
null
null
null
import os import pickle import numpy as np from experiment.create_config import get_params from experiment.ranges import get_ranges from experiment.create_config import create_base_params,create_config from experiment.utils import run_model def run_experiment(model_type,folder): if not os.path.exists(folder): ...
42.16129
104
0.6557
c2f2079c858435a8db576319ee725dbab1c86d9e
16,051
py
Python
bot/exts/evergreen/battleship.py
imranshaji7/sir-lancebot
67caea1f737f86c2394cc9a280acbfe71588c917
[ "MIT" ]
1
2021-08-31T12:52:15.000Z
2021-08-31T12:52:15.000Z
bot/exts/evergreen/battleship.py
imranshaji7/sir-lancebot
67caea1f737f86c2394cc9a280acbfe71588c917
[ "MIT" ]
null
null
null
bot/exts/evergreen/battleship.py
imranshaji7/sir-lancebot
67caea1f737f86c2394cc9a280acbfe71588c917
[ "MIT" ]
null
null
null
import asyncio import logging import random import re import typing from dataclasses import dataclass from functools import partial import discord from discord.ext import commands from bot.bot import Bot from bot.constants import Colours log = logging.getLogger(__name__) @dataclass class Square: """Each square...
35.74833
111
0.581521
54004b674b456d2919a9660c30a39c30ecf04c16
1,842
py
Python
api/migrations/0003_auto_20180519_2341.py
hueyjj/MangoMountain
5b1df750d620a8967f48e41d5e38286b92ccfa93
[ "MIT" ]
null
null
null
api/migrations/0003_auto_20180519_2341.py
hueyjj/MangoMountain
5b1df750d620a8967f48e41d5e38286b92ccfa93
[ "MIT" ]
null
null
null
api/migrations/0003_auto_20180519_2341.py
hueyjj/MangoMountain
5b1df750d620a8967f48e41d5e38286b92ccfa93
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-20 06:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20180517_2354'), ] operations = [ migrations.RemoveField( model_...
31.220339
115
0.547774
a6b1a614d0c53dcd4cd0b8920ec79f5f103f1098
334
py
Python
src/utils/strings/streams.py
JoelLefkowitz/templ8
c377e9aeb24d9a4ffa6ffba08afc0e2da258ac3f
[ "MIT" ]
1
2021-08-03T17:33:24.000Z
2021-08-03T17:33:24.000Z
src/utils/strings/streams.py
JoelLefkowitz/templ8
c377e9aeb24d9a4ffa6ffba08afc0e2da258ac3f
[ "MIT" ]
null
null
null
src/utils/strings/streams.py
JoelLefkowitz/templ8
c377e9aeb24d9a4ffa6ffba08afc0e2da258ac3f
[ "MIT" ]
null
null
null
def indent_lines(string: str, indent: str) -> str: return indent + string.replace("\n", "\n" + indent) if string else "" def truncate_lines(string: str, limit: int) -> str: return "\n".join( [ line[:limit] + "..." if len(line) > limit else line for line in string.split("\n") ...
27.833333
73
0.541916
6849d403cf6e333f2670b11fe6d4d27032d2905e
593
py
Python
scripts/quest/q20820s.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
2
2020-04-15T03:16:07.000Z
2020-08-12T23:28:32.000Z
scripts/quest/q20820s.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/quest/q20820s.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
3
2020-08-25T06:55:25.000Z
2020-12-01T13:07:43.000Z
# Start of The City of Ereve KIMU = 1102004 sm.setSpeakerID(KIMU) sm.removeEscapeButton() sm.sendNext("Welcome to Ereve! This is the safest and most peaceful place in all of Maple World. " "Empress Cygnus keeps it nice all the time!\r\n" "You're #b#h ##k, right? Here to join the #p1064023# Knights. I'm your guide, #p"...
42.357143
145
0.74199
4903f2f6d28938c4bc3e0eb67787b41eb5d51052
5,137
py
Python
phase_1/Extracting_morgan.py
fgentile89/Deep-Docking-NonAutomated
cbde2df913f6f0e5e151cc0913e20f8443a788ed
[ "MIT" ]
21
2021-03-05T23:46:07.000Z
2022-03-26T09:23:09.000Z
phase_1/Extracting_morgan.py
fgentile89/Deep-Docking-NonAutomated
cbde2df913f6f0e5e151cc0913e20f8443a788ed
[ "MIT" ]
14
2021-04-07T11:03:28.000Z
2022-01-14T22:42:08.000Z
phase_1/Extracting_morgan.py
fgentile89/Deep-Docking-NonAutomated
cbde2df913f6f0e5e151cc0913e20f8443a788ed
[ "MIT" ]
9
2021-03-16T08:32:12.000Z
2022-02-10T02:03:29.000Z
# Reads the ids found in sampling and finds the corresponding morgan fingerprint import argparse import glob parser = argparse.ArgumentParser() parser.add_argument('-pt', '--protein_name', required=True, help='Name of the DD project') parser.add_argument('-fp', '--file_path', required=True, help='Path to the project d...
34.246667
137
0.553631
0c974cece4952a3761c7933ee950860c8ab2c3ed
8,483
py
Python
backupper/connect/ftpstorage.py
dolfinsbizou/backupper
f8f1047e880c802ba70bf6264a2e13ba604f8b1f
[ "MIT" ]
null
null
null
backupper/connect/ftpstorage.py
dolfinsbizou/backupper
f8f1047e880c802ba70bf6264a2e13ba604f8b1f
[ "MIT" ]
null
null
null
backupper/connect/ftpstorage.py
dolfinsbizou/backupper
f8f1047e880c802ba70bf6264a2e13ba604f8b1f
[ "MIT" ]
null
null
null
import os from ftplib import FTP from .utils import * _all_ = ["FTPStorage"] class FTPStorage(AbstractStorageContext): """ FTP storage system. A handy wrapper for ftplib.FTP methods. """ CONNEXION_TYPE = "ftp" def __init__(self, host, user="anonymous", passwd=""): if not ho...
36.407725
215
0.583048
fcdb495602744fe6a676fd14096b50428889d3ee
14,242
py
Python
funcgen.py
thomaseichhorn/funcgen
8bd99012780e312ef6a9db6d5da2b3187496dab7
[ "MIT" ]
1
2021-01-20T21:26:49.000Z
2021-01-20T21:26:49.000Z
funcgen.py
thomaseichhorn/funcgen
8bd99012780e312ef6a9db6d5da2b3187496dab7
[ "MIT" ]
null
null
null
funcgen.py
thomaseichhorn/funcgen
8bd99012780e312ef6a9db6d5da2b3187496dab7
[ "MIT" ]
null
null
null
import sys, os, glob, serial import curses import time from jds6600 import jds6600 from math import * def draw_menu ( stdscr, theport ) : # Require minimum terminal size height, width = stdscr.getmaxyx ( ) if ( height < 24 or width < 80 ) : curses.endwin ( ) print ( "The required minimum terminal size is 80 co...
30.562232
188
0.613678
c1161d4e68a1c1c9f8e577c79a429a8bf650d2d9
9,411
py
Python
src/pythae/models/nn/default_architectures.py
clementchadebec/benchmark_VAE
943e231f9e5dfa40b4eec14d4536f1c229ad9be1
[ "Apache-2.0" ]
143
2021-10-17T08:43:33.000Z
2022-03-31T11:10:53.000Z
src/pythae/models/nn/default_architectures.py
louis-j-vincent/benchmark_VAE
943e231f9e5dfa40b4eec14d4536f1c229ad9be1
[ "Apache-2.0" ]
6
2022-01-21T17:40:09.000Z
2022-03-16T13:09:22.000Z
src/pythae/models/nn/default_architectures.py
louis-j-vincent/benchmark_VAE
943e231f9e5dfa40b4eec14d4536f1c229ad9be1
[ "Apache-2.0" ]
18
2021-12-16T15:17:08.000Z
2022-03-15T01:30:13.000Z
from typing import List import numpy as np import torch import torch.nn as nn from pythae.models.nn import (BaseDecoder, BaseDiscriminator, BaseEncoder, BaseMetric) from ..base.base_utils import ModelOutput class Encoder_AE_MLP(BaseEncoder): def __init__(self, args: dict): ...
29.781646
100
0.563915
e632e99a6559935d550ea8383ffe5a51185b1334
7,812
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/isissrlbdescriptorlist_1eec075b53920dfd5040006478718f6a.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
uhd_restpy/testplatform/sessions/ixnetwork/topology/isissrlbdescriptorlist_1eec075b53920dfd5040006478718f6a.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
uhd_restpy/testplatform/sessions/ixnetwork/topology/isissrlbdescriptorlist_1eec075b53920dfd5040006478718f6a.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
38.865672
194
0.665003
54b1feeda82dd02f635a8fa1ef6ba907114ea80a
3,857
py
Python
pyfolio/interesting_periods.py
vantoshkin/pyfolio
7733d8cc4a9532f90f2322846aba84145e2d8a35
[ "Apache-2.0" ]
null
null
null
pyfolio/interesting_periods.py
vantoshkin/pyfolio
7733d8cc4a9532f90f2322846aba84145e2d8a35
[ "Apache-2.0" ]
null
null
null
pyfolio/interesting_periods.py
vantoshkin/pyfolio
7733d8cc4a9532f90f2322846aba84145e2d8a35
[ "Apache-2.0" ]
1
2022-03-24T21:37:17.000Z
2022-03-24T21:37:17.000Z
# # Copyright 2016 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
40.177083
92
0.654654
120909f8acb9e642018f879c1a7496a5b8ad471f
194
py
Python
tests/test_settings.py
davidszotten/speccify
7c3f114d3a5f2c1a4cb7538df0319c66c1c70cb0
[ "Apache-2.0" ]
5
2021-06-28T14:02:01.000Z
2021-12-20T13:04:09.000Z
tests/test_settings.py
davidszotten/speccify
7c3f114d3a5f2c1a4cb7538df0319c66c1c70cb0
[ "Apache-2.0" ]
null
null
null
tests/test_settings.py
davidszotten/speccify
7c3f114d3a5f2c1a4cb7538df0319c66c1c70cb0
[ "Apache-2.0" ]
1
2021-06-25T12:08:11.000Z
2021-06-25T12:08:11.000Z
INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.contenttypes", ] SECRET_KEY = "secret" REST_FRAMEWORK = { "DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema", }
17.636364
65
0.71134
4f02fc9eac259b5c21ad8782e4e3798cec850b88
7,517
py
Python
tests/integration/order/creator_tests.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
2
2015-12-11T00:19:15.000Z
2021-11-14T19:44:42.000Z
tests/integration/order/creator_tests.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
null
null
null
tests/integration/order/creator_tests.py
akiyoko/oscar_sandbox
b384f1c0b5f297fd4b84509a575f6766a48630a5
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D from django.test import TestCase from django.test.utils import override_settings from mock import Mock from oscar.apps.catalogue.models import ProductClass, Product from oscar.apps.offer.utils import Applicator from oscar.apps.order.models import Order from oscar.apps.order.utils impo...
39.772487
78
0.680724
d2ec5b53aa1564536c44c9b81730ecd3a45192f5
18,563
py
Python
rest_framework_json_api/serializers.py
SafaAlfulaij/django-rest-framework-json-api
1187411af4bfb05adc06e49bac88528a56fe1aa0
[ "BSD-2-Clause" ]
null
null
null
rest_framework_json_api/serializers.py
SafaAlfulaij/django-rest-framework-json-api
1187411af4bfb05adc06e49bac88528a56fe1aa0
[ "BSD-2-Clause" ]
null
null
null
rest_framework_json_api/serializers.py
SafaAlfulaij/django-rest-framework-json-api
1187411af4bfb05adc06e49bac88528a56fe1aa0
[ "BSD-2-Clause" ]
null
null
null
import warnings from collections import OrderedDict from collections.abc import Mapping import inflection from django.core.exceptions import ObjectDoesNotExist from django.db.models.query import QuerySet from django.utils.module_loading import import_string as import_class_from_dotted_path from django.utils.translatio...
37.425403
97
0.650972
fd18a99e555fabbcc57f19f487ef3875e4eb2ad8
12,549
py
Python
tests/test_file_io.py
Dufy24/flake
1256a64f388eb177859c7660558a651e18b7d7d1
[ "Apache-2.0" ]
1
2020-07-22T18:44:12.000Z
2020-07-22T18:44:12.000Z
tests/test_file_io.py
Dufy24/flake
1256a64f388eb177859c7660558a651e18b7d7d1
[ "Apache-2.0" ]
null
null
null
tests/test_file_io.py
Dufy24/flake
1256a64f388eb177859c7660558a651e18b7d7d1
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os import shutil import tempfile import unittest import uuid from contextlib import contextmanager from typing import Generator, Optional from unittest.mock import MagicMock, patch from fvcore.common import file_io from fvcore.common.file_...
38.027273
87
0.622042
585c5cd744ff60ef8cf99817c42efe9069556e5c
60
py
Python
src/Learn/Cozy/LearnCSharp/K/Details/Script.py
zpublic/cozy
dde5f2bcf7482e2e5042f9e51266d9fd272e1456
[ "WTFPL" ]
48
2015-04-11T13:25:45.000Z
2022-03-28T08:27:40.000Z
src/Learn/Cozy/LearnCSharp/K/Details/Script.py
ToraiRei/cozy
c8197d9c6531f1864d6063ae149db53b669241f0
[ "WTFPL" ]
4
2016-04-06T09:30:57.000Z
2022-02-26T01:21:18.000Z
src/Learn/Cozy/LearnCSharp/K/Details/Script.py
ToraiRei/cozy
c8197d9c6531f1864d6063ae149db53b669241f0
[ "WTFPL" ]
33
2015-06-03T10:06:54.000Z
2020-12-15T00:50:28.000Z
import clr import sys def GetPaths(): return sys.path
10
19
0.7
da069719d3440989d504ba53a66ed6d130819412
15,928
py
Python
parlai/core/dict.py
kimiyoung/ParlAI
d7dbeb88e796593ec41a090ba69c6c7f78ad59d7
[ "BSD-3-Clause" ]
2
2017-09-30T23:23:44.000Z
2021-07-08T17:12:58.000Z
parlai/core/dict.py
kimiyoung/ParlAI
d7dbeb88e796593ec41a090ba69c6c7f78ad59d7
[ "BSD-3-Clause" ]
null
null
null
parlai/core/dict.py
kimiyoung/ParlAI
d7dbeb88e796593ec41a090ba69c6c7f78ad59d7
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # 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. An additional grant # of patent rights can be found in the PATENTS file in the same directory. """Contains code for parsin...
38.754258
85
0.587456
712d3e7be4eb892f2ffa469267a9373b98904d8d
7,734
py
Python
viadot/tasks/sharepoint.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/tasks/sharepoint.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/tasks/sharepoint.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
from typing import List import os import copy import json import pandas as pd from prefect import Task from prefect.utilities.tasks import defaults_from_attrs from prefect.utilities import logging from prefect.tasks.secrets import PrefectSecret from ..exceptions import ValidationError from ..sources import Sharepoint ...
34.070485
140
0.602793
34f6c243d7a9fc4e7afb333e59e2514c4e920527
839
py
Python
test_news.py
dagolde1/Ella
1c5e33dadf6c053412ffbf56a44b6bcb987c7e2f
[ "MIT" ]
null
null
null
test_news.py
dagolde1/Ella
1c5e33dadf6c053412ffbf56a44b6bcb987c7e2f
[ "MIT" ]
null
null
null
test_news.py
dagolde1/Ella
1c5e33dadf6c053412ffbf56a44b6bcb987c7e2f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from maria import testutils, diagnose from . import news class TestGmailPlugin(unittest.TestCase): def setUp(self): self.plugin = testutils.get_plugin_instance( news.NewsPlugin) def test_is_valid_method(self): self.assertTrue(sel...
34.958333
73
0.64124
5d3fdbd1fd563cefa7d8e2dcee36e1f921876eff
1,714
py
Python
setup.py
wrensuess/prospector
08173f84ddfc2b031c78822344fc821778d35bae
[ "MIT" ]
94
2016-10-12T19:29:58.000Z
2022-03-24T13:25:39.000Z
setup.py
wrensuess/prospector
08173f84ddfc2b031c78822344fc821778d35bae
[ "MIT" ]
168
2016-04-15T20:01:34.000Z
2022-03-31T21:03:07.000Z
setup.py
wrensuess/prospector
08173f84ddfc2b031c78822344fc821778d35bae
[ "MIT" ]
53
2016-07-14T07:19:11.000Z
2022-03-21T03:10:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import re import glob #import subprocess try: from setuptools import setup setup except ImportError: from distutils.core import setup setup #githash = subprocess.check_output(["git", "log", "--format=%h"], universal_newlines=True).spli...
32.339623
105
0.603851
0841fb3303a6e4f23a006fdcaac99cfb873f00ea
1,743
py
Python
petra_viewer/widgets/tests_browser.py
yamedvedya/data_viewer
c6238b71edcf0178ebe8ab8f9bf6e56e41cd4916
[ "MIT" ]
null
null
null
petra_viewer/widgets/tests_browser.py
yamedvedya/data_viewer
c6238b71edcf0178ebe8ab8f9bf6e56e41cd4916
[ "MIT" ]
null
null
null
petra_viewer/widgets/tests_browser.py
yamedvedya/data_viewer
c6238b71edcf0178ebe8ab8f9bf6e56e41cd4916
[ "MIT" ]
null
null
null
# Created by matveyev at 09.11.2021 from PyQt5 import QtWidgets, QtCore from petra_viewer.widgets.abstract_widget import AbstractWidget from petra_viewer.data_sources.test_datasets.test_datasets import SardanaPeak1, SardanaPeak2, HeavySardana, \ ASAPO2DPeak, ASAPO3DPeak, ASAPO4DPeak, BeamView from petra_viewer....
37.891304
119
0.658635
25750ef68e1bfdee76890b4da5a4b1c328a84783
651
py
Python
pandas_ta/overlap/__init__.py
cloudlakecho/pandas-ta
f361621d614cd4ca67800c99be27cc908c0fce96
[ "MIT" ]
1
2020-06-18T10:19:12.000Z
2020-06-18T10:19:12.000Z
pandas_ta/overlap/__init__.py
ajmal017/pandas-ta
98099f71de7c4a8b293b8de4dd62fa2399e5a12a
[ "MIT" ]
null
null
null
pandas_ta/overlap/__init__.py
ajmal017/pandas-ta
98099f71de7c4a8b293b8de4dd62fa2399e5a12a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .dema import dema from .ema import ema from .fwma import fwma from .hl2 import hl2 from .hlc3 import hlc3 from .hma import hma from .kama import kama from .ichimoku import ichimoku from .linreg import linreg from .midpoint import midpoint from .midprice import midprice from .ohlc4 import oh...
24.111111
34
0.780338
49d98cd20907d160bb3e593d76a81b51eb9c19e9
923
py
Python
spira/param/field/typed_bool.py
cloudcalvin/spira
2dcaef188f2bc8c3839e1b5ff0be027e0cd4908c
[ "MIT" ]
null
null
null
spira/param/field/typed_bool.py
cloudcalvin/spira
2dcaef188f2bc8c3839e1b5ff0be027e0cd4908c
[ "MIT" ]
1
2021-10-17T10:18:04.000Z
2021-10-17T10:18:04.000Z
spira/param/field/typed_bool.py
cloudcalvin/spira
2dcaef188f2bc8c3839e1b5ff0be027e0cd4908c
[ "MIT" ]
null
null
null
from spira.core.descriptor import DataFieldDescriptor class BoolField(DataFieldDescriptor): def __init__(self, default=False, **kwargs): if default is None: kwargs['default'] = None else: kwargs['default'] = bool(default) super().__init__(**kwargs) def __set__(s...
27.147059
64
0.561213
be062af74b88f1748abb23e09b1cfd3eb91089ed
3,208
py
Python
zeppelin_viz/nvd3/charts/multiBarChart.py
bernhard-42/Zeppelin-Visualizations
f95eb8b948e71dd0266aacac6ac5be480a6dc656
[ "Apache-2.0" ]
2
2017-04-06T10:53:22.000Z
2017-07-12T09:32:50.000Z
zeppelin_viz/nvd3/charts/multiBarChart.py
bernhard-42/Zeppelin-Visualizations
f95eb8b948e71dd0266aacac6ac5be480a6dc656
[ "Apache-2.0" ]
1
2019-01-23T13:48:36.000Z
2019-01-23T13:48:36.000Z
zeppelin_viz/nvd3/charts/multiBarChart.py
bernhard-42/Zeppelin-Visualizations
f95eb8b948e71dd0266aacac6ac5be480a6dc656
[ "Apache-2.0" ]
2
2017-03-18T13:16:17.000Z
2018-07-03T12:06:37.000Z
# Copyright 2017 Bernhard Walter # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
34.869565
139
0.539589
18fe678159fc47222a2a81d7cc0ce2aecfb8d2bc
1,130
py
Python
tensorflow_datasets/image_classification/imagenet_v2_test.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
3,380
2018-09-11T05:03:31.000Z
2022-03-31T20:04:57.000Z
tensorflow_datasets/image_classification/imagenet_v2_test.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
3,142
2018-09-14T10:09:00.000Z
2022-03-31T18:25:44.000Z
tensorflow_datasets/image_classification/imagenet_v2_test.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
1,438
2018-09-16T13:58:22.000Z
2022-03-31T11:19:54.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
30.540541
74
0.754867
68926fffa271f608a7904741f11ab309f11bebf9
4,590
py
Python
calendarserver/tools/test/test_resources.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
462
2016-08-14T17:43:24.000Z
2022-03-17T07:38:16.000Z
calendarserver/tools/test/test_resources.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
72
2016-09-01T23:19:35.000Z
2020-02-05T02:09:26.000Z
calendarserver/tools/test/test_resources.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
171
2016-08-16T03:50:30.000Z
2022-03-26T11:49:55.000Z
## # Copyright (c) 2005-2017 Apple 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 l...
37.622951
76
0.627669
e89af5eb1196d29385b20c41450a6b370532d786
23,609
py
Python
mmdet/demos/visualization_tools.py
yizhe-ang/MMSceneGraph
d4daec3d7930d6fe1efe75b9c0a265c8be0b70ba
[ "MIT" ]
24
2021-10-14T03:28:28.000Z
2022-03-29T09:30:04.000Z
mmdet/demos/visualization_tools.py
yizhe-ang/MMSceneGraph
d4daec3d7930d6fe1efe75b9c0a265c8be0b70ba
[ "MIT" ]
4
2021-12-14T15:04:49.000Z
2022-02-19T09:54:42.000Z
mmdet/demos/visualization_tools.py
yizhe-ang/MMSceneGraph
d4daec3d7930d6fe1efe75b9c0a265c8be0b70ba
[ "MIT" ]
4
2021-10-31T11:23:06.000Z
2021-12-17T06:38:50.000Z
# --------------------------------------------------------------- # visualization.py # Set-up time: 2020/11/4 20:57 # Copyright (c) 2020 ICT # Licensed under The MIT License [see LICENSE for details] # Written by Kenneth-Wong (Wenbin-Wang) @ VIPL.ICT # Contact: wenbin.wang@vipl.ict.ac.cn [OR] nkwangwenbin@gmail.c...
45.931907
120
0.520945
5194364f6e5ac4848362a414df28dd1eee160653
3,784
py
Python
idcharger.py
perolse/idcharger
2e501cc459ea08146066deff83ee6650d7786dc8
[ "Apache-2.0" ]
null
null
null
idcharger.py
perolse/idcharger
2e501cc459ea08146066deff83ee6650d7786dc8
[ "Apache-2.0" ]
null
null
null
idcharger.py
perolse/idcharger
2e501cc459ea08146066deff83ee6650d7786dc8
[ "Apache-2.0" ]
1
2021-12-27T14:41:07.000Z
2021-12-27T14:41:07.000Z
import requests from settings import Settings import logging import threading import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) class IdCharger: def __init__(self, settings): self.settings = settings self.loginUrl = '/api/v1/auth/login' self.refreshUrl = '/...
39.010309
89
0.581924
894c290a08c1d11649b0cbeac40974bed420f61c
4,451
py
Python
tests/integration/taskrouter/v1/workspace/task_queue/test_task_queue_statistics.py
fefi95/twilio-python
b9bfea293b6133fe84d4d8d3ac4e2a75381c3881
[ "MIT" ]
1
2019-12-30T21:46:55.000Z
2019-12-30T21:46:55.000Z
tests/integration/taskrouter/v1/workspace/task_queue/test_task_queue_statistics.py
fefi95/twilio-python
b9bfea293b6133fe84d4d8d3ac4e2a75381c3881
[ "MIT" ]
null
null
null
tests/integration/taskrouter/v1/workspace/task_queue/test_task_queue_statistics.py
fefi95/twilio-python
b9bfea293b6133fe84d4d8d3ac4e2a75381c3881
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class TaskQueueStatisticsTestCa...
41.212963
161
0.457425
561fdb9e6a8fdda68e47a3447768b3e8fbf21e75
14,126
py
Python
Roles/avl-settings/main.py
andycavatorta/oratio
f407797e3ea6d2956e577ec98c64486b04d90946
[ "MIT" ]
1
2017-12-04T17:29:37.000Z
2017-12-04T17:29:37.000Z
Roles/avl-settings/main.py
andycavatorta/oratio
f407797e3ea6d2956e577ec98c64486b04d90946
[ "MIT" ]
null
null
null
Roles/avl-settings/main.py
andycavatorta/oratio
f407797e3ea6d2956e577ec98c64486b04d90946
[ "MIT" ]
null
null
null
""" pin info: analog potentiometers are read via MCP3008 chip connected via SPI MCP3008 ADC chip #1 pin 21: SPI MISO pin 19: SPI MOSI pin 23: SPI Serial Clock pin 38: Chip Select MCP3008 ADC chip #2 pin 21: SPI MISO pin 19: SPI MOSI pin 23: SPI Serial Clock pin 40: Chip Select ...
34.20339
159
0.555854
07727ba5bfc4bf508a8dfcde7cfee0a7b6e70c4e
9,587
py
Python
nzme_skynet/core/proxy/browserproxy.py
MilindThakur/nzme-skynet
7175edbf625e46ce1489c97f171a8717eaf0be7e
[ "BSD-3-Clause" ]
2
2019-09-27T22:06:35.000Z
2019-12-04T15:48:58.000Z
nzme_skynet/core/proxy/browserproxy.py
MilindThakur/nzme-skynet
7175edbf625e46ce1489c97f171a8717eaf0be7e
[ "BSD-3-Clause" ]
4
2020-03-24T18:29:48.000Z
2021-03-29T22:15:24.000Z
nzme_skynet/core/proxy/browserproxy.py
MilindThakur/nzme-skynet
7175edbf625e46ce1489c97f171a8717eaf0be7e
[ "BSD-3-Clause" ]
1
2020-10-21T20:03:59.000Z
2020-10-21T20:03:59.000Z
# coding=utf-8 import json import time import os from browsermobproxy import Server from browsermobproxy import Client from haralyzer import HarParser from nzme_skynet.core.driver.driverregistry import DriverRegistry from nzme_skynet.core.driver.enums.drivertypes import DriverTypes from nzme_skynet.core.driver.basedr...
34.861818
116
0.607594
bf2be8f0b1abe6d134723319ea2ade871df5041f
8,229
py
Python
scripts/lib/tools.py
thorunna/UD
ac27262e49691daecf3016fa9386e603252a45a6
[ "Apache-2.0" ]
1
2020-10-05T12:40:39.000Z
2020-10-05T12:40:39.000Z
scripts/lib/tools.py
thorunna/UD
ac27262e49691daecf3016fa9386e603252a45a6
[ "Apache-2.0" ]
null
null
null
scripts/lib/tools.py
thorunna/UD
ac27262e49691daecf3016fa9386e603252a45a6
[ "Apache-2.0" ]
null
null
null
import string import re import requests import json from lib.rules import relation_NP, relation_IP, relation_CP, abbr_map from lib.reader import IndexedCorpusTree def determine_relations(mod_tag, mod_func, head_tag, head_func): if mod_tag in ["NP", "NX", "WNX"]: # -ADV, -CMP, -PRN, -SBJ, -OB1, -OB2, -OB...
31.288973
113
0.510633
ee243c2f4c3ffc7c9f5ae44fa41fb33fabe5f861
228
py
Python
db/python_mongo_gfs.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
db/python_mongo_gfs.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
db/python_mongo_gfs.py
sdyz5210/python
78f9999f94d92d9ca7fde6f18acec7d3abd422ef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # python v2.7.6 from pymongo import MongoClient import gridfs db = MongoClient().summergfs fs = gridfs.GridFS(db) fs.put("/Users/mac/Documents/workspaces/github/python/high/a.jpg")
22.8
66
0.723684
a4c99b19c3ff57c1adb51a836bf8a2844b93d2fa
6,653
py
Python
tst/rpc/full_node_rpc_client.py
TST-Group-BE/flax-blockchain
ed850df4f28ef4b6f71c175c8b6d07d27f7b3cd5
[ "Apache-2.0" ]
null
null
null
tst/rpc/full_node_rpc_client.py
TST-Group-BE/flax-blockchain
ed850df4f28ef4b6f71c175c8b6d07d27f7b3cd5
[ "Apache-2.0" ]
null
null
null
tst/rpc/full_node_rpc_client.py
TST-Group-BE/flax-blockchain
ed850df4f28ef4b6f71c175c8b6d07d27f7b3cd5
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List, Optional, Tuple from tst.consensus.block_record import BlockRecord from tst.rpc.rpc_client import RpcClient from tst.types.blockchain_format.sized_bytes import bytes32 from tst.types.coin_record import CoinRecord from tst.types.full_block import FullBlock from tst.types.spend_bundle impo...
43.48366
115
0.658951
0aea17fdaae207fa49ab099ef1b725b16319069f
3,577
py
Python
mootdx/server.py
skanda-huayan/mootdx-1
73f07be7d031b2f05ce3e42330294417e614e7b0
[ "MIT" ]
null
null
null
mootdx/server.py
skanda-huayan/mootdx-1
73f07be7d031b2f05ce3e42330294417e614e7b0
[ "MIT" ]
null
null
null
mootdx/server.py
skanda-huayan/mootdx-1
73f07be7d031b2f05ce3e42330294417e614e7b0
[ "MIT" ]
1
2021-11-22T15:55:23.000Z
2021-11-22T15:55:23.000Z
import asyncio import functools import json import socket import time from functools import partial from mootdx.consts import CONFIG from mootdx.consts import EX_HOSTS from mootdx.consts import GP_HOSTS from mootdx.consts import HQ_HOSTS from mootdx.logger import log from mootdx.utils import get_config_path hosts = {...
26.69403
106
0.572267
c65bb08bc31597c765261bd189c458285d8152b9
12,598
py
Python
crosshair/util.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
785
2019-09-28T14:47:48.000Z
2022-03-24T15:04:03.000Z
crosshair/util.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
111
2019-10-19T14:43:03.000Z
2022-03-29T07:23:32.000Z
crosshair/util.py
samuelchassot/CrossHair
4eac7a23e470567cc23e6d0916ce6dd6820eacd8
[ "MIT" ]
36
2018-05-12T03:31:29.000Z
2022-03-02T14:07:16.000Z
import builtins import collections import contextlib import dataclasses import dis import importlib.util import inspect import functools import math import os import pathlib import re import sys import threading import time import traceback import types from types import TracebackType import typing from typing import (...
26.861407
87
0.626449
7cb63687735a335a296acb58732ed51cffb7c432
58,384
py
Python
holoviews/core/dimension.py
TheoMathurin/holoviews
0defcef994d6dd6d2054f75a0e332d02d121f8b0
[ "BSD-3-Clause" ]
864
2019-11-13T08:18:27.000Z
2022-03-31T13:36:13.000Z
holoviews/core/dimension.py
chrinide/holoviews
e1234a60ae0809ac561c204b1998dff0452b2bf0
[ "BSD-3-Clause" ]
1,117
2019-11-12T16:15:59.000Z
2022-03-30T22:57:59.000Z
holoviews/core/dimension.py
chrinide/holoviews
e1234a60ae0809ac561c204b1998dff0452b2bf0
[ "BSD-3-Clause" ]
180
2019-11-19T16:44:44.000Z
2022-03-28T22:49:18.000Z
""" Provides Dimension objects for tracking the properties of a value, axis or map dimension. Also supplies the Dimensioned abstract baseclass for classes that accept Dimension values. """ import re import datetime as dt import weakref from operator import itemgetter from collections import defaultdict, Counter from i...
40.600834
100
0.602888
2437819d891e245092147a7835d9287fcb89c249
1,631
py
Python
diagnostic/controllerslocal.py
sjjhsjjh/blender-driver
7e164f4049f1bb7292c835c084eaed5faf7be5fd
[ "MIT" ]
2
2017-08-21T13:42:05.000Z
2020-06-14T11:02:43.000Z
diagnostic/controllerslocal.py
sjjhsjjh/blender-driver
7e164f4049f1bb7292c835c084eaed5faf7be5fd
[ "MIT" ]
null
null
null
diagnostic/controllerslocal.py
sjjhsjjh/blender-driver
7e164f4049f1bb7292c835c084eaed5faf7be5fd
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2017 Jim Hawkins. MIT licensed, see https://opensource.org/licenses/MIT # Part of Blender Driver, see https://github.com/sjjhsjjh/blender-driver """Python module for the Blender Games Engine controller interface. This module is a diagnostic and demonstration version of the proper blender_driver....
31.365385
77
0.726548
b6c3567d49a36ad4b4182fd330ff17c219c76594
780
py
Python
dashboard/views/admin_allegation_request_analysis_view.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
16
2016-05-20T09:03:32.000Z
2020-09-13T14:23:06.000Z
dashboard/views/admin_allegation_request_analysis_view.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
2
2016-05-24T01:44:14.000Z
2016-06-17T22:19:45.000Z
dashboard/views/admin_allegation_request_analysis_view.py
invinst/CPDB
c2d8ae8888b13d956cc1068742f18d45736d4121
[ "Apache-2.0" ]
2
2016-10-10T16:14:19.000Z
2020-10-26T00:17:02.000Z
import json from django.http import HttpResponse from django.views.generic import View from dashboard.query_builders import AllegationDocumentQueryBuilder, DOCUMENT_REQUEST_FILTERS from document.models import Document class AdminAllegationRequestAnalysisView(View): def get(self, request): document_type ...
33.913043
94
0.724359
42da7ad13f0bb7028784b6bd98c5db8636f3278d
3,384
py
Python
whats_fresh/whats_fresh_api/tests/views/entry/test_inline_video.py
osu-cass/whats-fresh-api
0ace76c3d7d423e95d5e3b3c7cd0f74abcf975bd
[ "Apache-2.0" ]
4
2015-08-20T19:38:03.000Z
2016-01-20T18:52:24.000Z
whats_fresh/whats_fresh_api/tests/views/entry/test_inline_video.py
osu-cass/whats-fresh-api
0ace76c3d7d423e95d5e3b3c7cd0f74abcf975bd
[ "Apache-2.0" ]
39
2015-01-08T23:50:47.000Z
2021-01-05T20:19:15.000Z
whats_fresh/whats_fresh_api/tests/views/entry/test_inline_video.py
osu-cass/whats-fresh-api
0ace76c3d7d423e95d5e3b3c7cd0f74abcf975bd
[ "Apache-2.0" ]
8
2015-03-07T23:52:30.000Z
2015-12-25T04:25:23.000Z
from django.test import TestCase from django.core.urlresolvers import reverse from whats_fresh.whats_fresh_api.models import Video from django.contrib.auth.models import User, Group class InlineVideoTestCase(TestCase): """ Test that the Inline Video form works as expected. Things tested: URLs re...
34.886598
77
0.621158
ca255ef32e3ef71f6a6b06002c3f1969698657c4
382
py
Python
events/wagtail_hooks.py
kinaklub/next.filmfest.by
b537c0d2dac4195e9e7b460c569007d20a5954e7
[ "Unlicense" ]
7
2016-07-18T07:37:37.000Z
2022-03-23T08:12:04.000Z
events/wagtail_hooks.py
kinaklub/next.filmfest.by
b537c0d2dac4195e9e7b460c569007d20a5954e7
[ "Unlicense" ]
119
2015-11-08T07:16:44.000Z
2022-03-11T23:25:53.000Z
events/wagtail_hooks.py
kinaklub/next.filmfest.by
b537c0d2dac4195e9e7b460c569007d20a5954e7
[ "Unlicense" ]
3
2016-07-21T17:22:31.000Z
2016-10-04T08:38:48.000Z
from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register from events.models import Venue class VenueModelAdmin(ModelAdmin): model = Venue menu_label = 'Venues' menu_icon = 'site' menu_order = 270 list_display = ('name_en', 'name_be', 'name_ru') search_fields = ('name_en',...
25.466667
78
0.732984
31ca0b14cf180998d2e1b96bd8b34032a31724f3
820
py
Python
https_example.py
Abhi256207/ECEx73hw4-1
913ae3e3317074cdc4388c7dea5d6a1f7fb793a1
[ "MIT" ]
null
null
null
https_example.py
Abhi256207/ECEx73hw4-1
913ae3e3317074cdc4388c7dea5d6a1f7fb793a1
[ "MIT" ]
null
null
null
https_example.py
Abhi256207/ECEx73hw4-1
913ae3e3317074cdc4388c7dea5d6a1f7fb793a1
[ "MIT" ]
null
null
null
# ABHIMANYU MANI : Inser your name here import socket, ssl context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) context.verify_mode = ssl.CERT_REQUIRED context.check_hostname = True context.load_default_certs() s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ssl_sock = context.wrap_socket(s, server_hostname='https://g...
31.538462
143
0.706098
ba7b6c04280557ec59c1a25690d161e2cd66283e
916
py
Python
nowdawn/precipitation.py
fossabot/pyNowDawn
ac553872afe3303cce1e4b98c9dc533de809b37b
[ "MIT" ]
null
null
null
nowdawn/precipitation.py
fossabot/pyNowDawn
ac553872afe3303cce1e4b98c9dc533de809b37b
[ "MIT" ]
null
null
null
nowdawn/precipitation.py
fossabot/pyNowDawn
ac553872afe3303cce1e4b98c9dc533de809b37b
[ "MIT" ]
null
null
null
"""""" #!/usr/bin/env python # -*- coding: utf-8 -*- class Precipitation: """""" def __init__(self, intensity=None, unit="C", precip_type=None, probability=0.0): """""" self.intensity = intensity self.unit = unit self.precip_type = precip_type self.probability = pro...
23.487179
84
0.522926
f1e1d691bb260dd7367ccb861fc5db0fb75baf6d
1,751
py
Python
hdp-ambari-mpack-3.1.4.0/stacks/HDP/3.0/services/DRUID/package/scripts/service_check.py
dropoftruth/dfhz_hdp_mpack
716f0396dce25803365c1aed9904b74fbe396f79
[ "Apache-2.0" ]
2
2020-07-23T03:28:33.000Z
2022-02-20T15:39:50.000Z
hdp-ambari-mpack-3.1.4.0/stacks/HDP/3.0/services/DRUID/package/scripts/service_check.py
dropoftruth/dfhz_hdp_mpack
716f0396dce25803365c1aed9904b74fbe396f79
[ "Apache-2.0" ]
13
2019-06-05T07:47:00.000Z
2019-12-29T08:29:27.000Z
hdp-ambari-mpack-3.1.4.0/stacks/HDP/3.0/services/DRUID/package/scripts/service_check.py
dropoftruth/dfhz_hdp_mpack
716f0396dce25803365c1aed9904b74fbe396f79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ 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");...
38.911111
129
0.758424
0739b5dc4601775deaf2bd48478258f51255bfc3
7,413
py
Python
gatkcwlgenerator/main.py
wtsi-hgi/PY
36f8d95a2fae310795bdf6f16169363b7450fc68
[ "MIT" ]
8
2017-10-12T06:36:30.000Z
2020-06-09T15:32:07.000Z
gatkcwlgenerator/main.py
wtsi-hgi/PY
36f8d95a2fae310795bdf6f16169363b7450fc68
[ "MIT" ]
17
2017-09-08T10:59:12.000Z
2020-04-08T18:07:05.000Z
gatkcwlgenerator/main.py
wtsi-hgi/PY
36f8d95a2fae310795bdf6f16169363b7450fc68
[ "MIT" ]
1
2017-11-22T04:02:23.000Z
2017-11-22T04:02:23.000Z
#!/bin/python import argparse import json import logging import os import shutil import sys import time from typing import * import coloredlogs from ruamel import yaml from .gatk_tool_to_cwl import gatk_tool_to_cwl from .common import GATKVersion from .web_to_gatk_tool import get_tool_name, get_gatk_links, get_gatk_...
37.251256
145
0.689599
0eb4adb10e3b18d26555a787d77a8eb4d26172b5
4,850
py
Python
DNSIR/database/genDB.py
aasensio/DeepLearning
71838115ce93e0ca96c8314cff3f07de1d64c235
[ "MIT" ]
null
null
null
DNSIR/database/genDB.py
aasensio/DeepLearning
71838115ce93e0ca96c8314cff3f07de1d64c235
[ "MIT" ]
null
null
null
DNSIR/database/genDB.py
aasensio/DeepLearning
71838115ce93e0ca96c8314cff3f07de1d64c235
[ "MIT" ]
null
null
null
import numpy as np # import matplotlib.pyplot as pl # import sys from mpi4py import MPI from enum import IntEnum import pyiacsun as ps import h5py # from ipdb import set_trace as stop class tags(IntEnum): READY = 0 DONE = 1 EXIT = 2 START = 3 nBlocks = 100 nSizeBlock = 1000 n_profiles = nBlocks * nS...
33.916084
160
0.610103
1a92536e42f876a46180e65d19d00f55dce68e90
3,882
py
Python
scripts/logreg_sgd_sklearn.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
2
2021-08-22T14:40:18.000Z
2021-12-07T02:46:00.000Z
scripts/logreg_sgd_sklearn.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
9
2021-03-31T20:18:21.000Z
2022-03-12T00:52:47.000Z
scripts/logreg_sgd_sklearn.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-06-21T01:18:07.000Z
2021-06-21T01:18:07.000Z
# Compare various online solvers (SGD, SAG) on various classification # datasets using multinomial logisti regression with L2 regularizer. #https://scikit-learn.org/stable/modules/linear_model.html import numpy as np import sklearn.preprocessing from sklearn.linear_model import LogisticRegression from sklearn.linea...
31.819672
138
0.724369
d9b6f4c8c643e993be08f63f6807df196ca6613d
82
py
Python
chapter 2/sampleCode6.py
DTAIEB/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
15
2018-06-01T19:18:32.000Z
2021-11-28T03:31:35.000Z
chapter 2/sampleCode6.py
chshychen/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
1
2018-12-17T02:01:42.000Z
2018-12-17T02:01:42.000Z
chapter 2/sampleCode6.py
chshychen/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
10
2018-09-23T02:45:45.000Z
2022-03-12T15:32:05.000Z
import pixiedust data_url = "https://server/path" pixiedust.wrangleData(data_url)
20.5
32
0.804878
0b20997a3bb3bb0fe51dc01edde8eab7df18bfe8
585
py
Python
unifier/apps/core/management/commands/mangahost_replace.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
6
2021-03-25T14:55:36.000Z
2021-05-25T15:12:41.000Z
unifier/apps/core/management/commands/mangahost_replace.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
6
2021-02-19T12:32:26.000Z
2021-03-25T16:54:40.000Z
unifier/apps/core/management/commands/mangahost_replace.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from unifier.apps.core.models import Platform class Command(BaseCommand): def handle(self, *args, **kwargs): platform = Platform.objects.get(name="mangahost") mangas = platform.mangas.all() for manga in mangas: chapters = man...
34.411765
91
0.623932
6f3ce44e2c355080ed0497aad7527ccfda3cad89
21,728
py
Python
lib/util.py
ComputerCraftr/openswap
7de04aa80dab79bebe4b64483011dad70a48694c
[ "MIT" ]
16
2018-11-05T13:19:02.000Z
2021-04-06T12:11:49.000Z
lib/util.py
ComputerCraftr/openswap
7de04aa80dab79bebe4b64483011dad70a48694c
[ "MIT" ]
9
2018-09-19T03:37:26.000Z
2019-04-17T21:58:27.000Z
lib/util.py
ComputerCraftr/openswap
7de04aa80dab79bebe4b64483011dad70a48694c
[ "MIT" ]
5
2018-11-05T13:19:02.000Z
2020-10-20T09:15:54.000Z
# Electrum - lightweight Bitcoin client # Copyright (C) 2011 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
30.388811
127
0.631719
c1d870e5d9fef04cb6490f24c2366421f312e4d5
1,874
py
Python
quantum-ugly-duckling-main/nqrng.py
rochisha0/quantum-ugly-duckling
9cd3164b49240a2342172c8c09950f1f51904793
[ "Apache-2.0" ]
11
2020-10-08T15:26:11.000Z
2021-05-02T21:25:26.000Z
quantum-ugly-duckling-main/nqrng.py
rochisha0/quantum-ugly-duckling
9cd3164b49240a2342172c8c09950f1f51904793
[ "Apache-2.0" ]
null
null
null
quantum-ugly-duckling-main/nqrng.py
rochisha0/quantum-ugly-duckling
9cd3164b49240a2342172c8c09950f1f51904793
[ "Apache-2.0" ]
4
2020-10-08T17:44:32.000Z
2022-01-29T22:35:16.000Z
import numpy as np from qiskit import execute, QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit.providers.aer import QasmSimulator # Import from Qiskit Aer noise module from qiskit.providers.aer.noise import NoiseModel from qiskit.providers.aer.noise import QuantumError, ReadoutError from qiskit.provider...
27.970149
79
0.668623
9129caa54ebab33e726d5ea215c9ff222d5f22a6
3,230
py
Python
parakeet/exps/gan_vocoder/parallelwave_gan/synthesize.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
parakeet/exps/gan_vocoder/parallelwave_gan/synthesize.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
parakeet/exps/gan_vocoder/parallelwave_gan/synthesize.py
zh794390558/DeepSpeech
34178893327ad359cb816e55d7c66a10244fa08a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
32.959184
119
0.647678
357afa8566a6f81b0e5c826845be0eef4537c6d7
704
py
Python
components/google-cloud/google_cloud_pipeline_components/version.py
droctothorpe/pipelines
c1142f02e62425a6a5ef9ecb5392420b1e5fbe48
[ "Apache-2.0" ]
null
null
null
components/google-cloud/google_cloud_pipeline_components/version.py
droctothorpe/pipelines
c1142f02e62425a6a5ef9ecb5392420b1e5fbe48
[ "Apache-2.0" ]
null
null
null
components/google-cloud/google_cloud_pipeline_components/version.py
droctothorpe/pipelines
c1142f02e62425a6a5ef9ecb5392420b1e5fbe48
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow 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 applicabl...
41.411765
74
0.761364
8cd12937c3e9d4285f62088062eb15d5e0aea9f5
1,888
py
Python
msgraph-cli-extensions/beta/compliance_beta/setup.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/compliance_beta/setup.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/compliance_beta/setup.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
32
94
0.636123
9e9e546d9e39da66be90019c1476ae687fe867c3
399
py
Python
backend/src/apps/Interactions/Models.py
HirataYoshiki/Ticketter
3884ba2f6d5329ca1f4f18530fc169b7b8b65e27
[ "MIT" ]
null
null
null
backend/src/apps/Interactions/Models.py
HirataYoshiki/Ticketter
3884ba2f6d5329ca1f4f18530fc169b7b8b65e27
[ "MIT" ]
null
null
null
backend/src/apps/Interactions/Models.py
HirataYoshiki/Ticketter
3884ba2f6d5329ca1f4f18530fc169b7b8b65e27
[ "MIT" ]
null
null
null
from db import Base,engine from sqlalchemy import Column, Integer, String, Boolean, DateTime,ForeignKey from sqlalchemy.orm import relationship class Interactions(Base): __tablename__ = "interactions" interactionid = Column(Integer, primary_key = True, autoincrement = True) ticketid = Column(Integer) from_ =...
30.692308
76
0.769424
f4de9fa7c58c2285a88a25a72b76b13ec9ba6bc5
14,320
py
Python
pysnmp-with-texts/ZHNFIREWALL.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZHNFIREWALL.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZHNFIREWALL.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZHNFIREWALL (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZHNFIREWALL # Produced by pysmi-0.3.4 at Wed May 1 15:46:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
123.448276
1,477
0.782402
0c9d911582a005b4fe537c72862724b82f99df75
4,809
py
Python
orangecontrib/wavepy2/widgets/imaging/ow_sgt_calculate_2nd_order_component_of_the_phase_1.py
APS-XSD-OPT-Group/OASYS1-WavePy2
f1147104f99f44bb850ad5668d1c9997d4880a3a
[ "BSD-3-Clause" ]
null
null
null
orangecontrib/wavepy2/widgets/imaging/ow_sgt_calculate_2nd_order_component_of_the_phase_1.py
APS-XSD-OPT-Group/OASYS1-WavePy2
f1147104f99f44bb850ad5668d1c9997d4880a3a
[ "BSD-3-Clause" ]
null
null
null
orangecontrib/wavepy2/widgets/imaging/ow_sgt_calculate_2nd_order_component_of_the_phase_1.py
APS-XSD-OPT-Group/OASYS1-WavePy2
f1147104f99f44bb850ad5668d1c9997d4880a3a
[ "BSD-3-Clause" ]
null
null
null
# ######################################################################### # Copyright (c) 2020, UChicago Argonne, LLC. All rights reserved. # # # # Copyright 2020. UChicago Argonne, LLC. This software was produced # # under U.S. Gov...
61.653846
137
0.568933
f50fe2b56a64978dc21a49ed644035d15c626c9f
1,659
py
Python
python/oneflow/test/modules/test_allreduce.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_allreduce.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_allreduce.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 agr...
31.903846
75
0.684147
ff268083f98891d5829a57e16549529b5e78563c
3,825
py
Python
analysis/analysis_utils.py
tginart/competing-ai
75c456854e4770adf8be7cd56e58177d50f74a24
[ "Apache-2.0" ]
2
2021-03-10T23:46:31.000Z
2021-04-13T00:41:12.000Z
analysis/analysis_utils.py
tginart/competing-ai
75c456854e4770adf8be7cd56e58177d50f74a24
[ "Apache-2.0" ]
null
null
null
analysis/analysis_utils.py
tginart/competing-ai
75c456854e4770adf8be7cd56e58177d50f74a24
[ "Apache-2.0" ]
null
null
null
import torch import torch import torch.nn.functional as F import numpy as np import pickle import glob import os import re import sys import multiprocessing from joblib import Parallel, delayed sys.path.insert(0,'..') from data import * from agent import * from auction import * from user import * from simulator impor...
26.93662
78
0.624575
4b36ef60f452194c2c206bee4c930481645d13e1
2,259
py
Python
masterArtistNameCorrection.py
tgadf/musicnames
71c4cbc8dbb68860e9688b47c4889ea559d6e22c
[ "MIT" ]
null
null
null
masterArtistNameCorrection.py
tgadf/musicnames
71c4cbc8dbb68860e9688b47c4889ea559d6e22c
[ "MIT" ]
null
null
null
masterArtistNameCorrection.py
tgadf/musicnames
71c4cbc8dbb68860e9688b47c4889ea559d6e22c
[ "MIT" ]
null
null
null
from convertByteString import convertByteString class masterArtistNameCorrection: def __init__(self, debug=False): self.debug = debug self.cbs = convertByteString() ## Test assert self.clean("3/3") == "3-3" assert self.clean("...Hello") == "Hello" def director...
24.824176
53
0.376273
b8fa6ffe23e58b0c2249e2b803723cad9ee543b1
9,222
py
Python
procedures/datasetBuilder.py
tilacyn/CT-GAN
92640099a9ea771e2851b32a7b8c292876efd163
[ "MIT" ]
null
null
null
procedures/datasetBuilder.py
tilacyn/CT-GAN
92640099a9ea771e2851b32a7b8c292876efd163
[ "MIT" ]
null
null
null
procedures/datasetBuilder.py
tilacyn/CT-GAN
92640099a9ea771e2851b32a7b8c292876efd163
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Yisroel Mirsky # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
48.282723
165
0.639666
5018913c352ec47afecd8b332cfa1d3d960cefc4
4,473
py
Python
bot/bot_handlers/register.py
alimahdiyar/Developing-Community-Web
a663a687e0f286f197d4a7bf347f67cd130275f7
[ "MIT" ]
2
2018-06-02T12:30:00.000Z
2018-07-19T14:41:39.000Z
bot/bot_handlers/register.py
Developing-Community/Developing-Community-Web
a663a687e0f286f197d4a7bf347f67cd130275f7
[ "MIT" ]
5
2021-06-08T19:09:00.000Z
2022-03-11T23:25:14.000Z
bot/bot_handlers/register.py
Developing-Community/web
a663a687e0f286f197d4a7bf347f67cd130275f7
[ "MIT" ]
2
2018-05-27T14:58:34.000Z
2018-05-27T15:03:04.000Z
from django.contrib.auth import get_user_model from bot.bot_strings import bot_commands, bot_messages, bot_keyboards from bot.models import TelegramUserInputKeys, TelegramUserInput, MenuState from web import settings User = get_user_model() # TODO: validate email, username and password to have only valid characters...
41.416667
105
0.674939
c8195473907b16e959adac6522ac7be5ac39a826
265
py
Python
Python/treehopper/libraries/sensors/magnetic/__init__.py
ehailey1/treehopper-sdk
c242f939a93d93da11ff79577666130c15aecec7
[ "MIT" ]
3
2018-03-16T07:00:42.000Z
2022-03-27T00:39:55.000Z
Python/treehopper/libraries/sensors/magnetic/__init__.py
ehailey1/treehopper-sdk
c242f939a93d93da11ff79577666130c15aecec7
[ "MIT" ]
16
2016-08-12T18:51:04.000Z
2021-04-16T16:14:07.000Z
Python/treehopper/libraries/sensors/magnetic/__init__.py
ehailey1/treehopper-sdk
c242f939a93d93da11ff79577666130c15aecec7
[ "MIT" ]
6
2015-11-04T15:53:49.000Z
2020-06-25T18:34:47.000Z
""" Compasses, Hall effect sensors, and 3D magnetic position sensors """ ## @namespace treehopper.libraries.sensors.magnetic from treehopper.libraries.sensors.magnetic.ak8975 import Ak8975 from treehopper.libraries.sensors.magnetic.magnetometer import Magnetometer
37.857143
75
0.833962
baf6402a6215ee73ac3e09300ffdc174d8421763
13,907
py
Python
import_data/celery_fitbit.py
cjb/quantified-flu
c925c95704de846aab16273807ebc75f52024816
[ "MIT" ]
null
null
null
import_data/celery_fitbit.py
cjb/quantified-flu
c925c95704de846aab16273807ebc75f52024816
[ "MIT" ]
null
null
null
import_data/celery_fitbit.py
cjb/quantified-flu
c925c95704de846aab16273807ebc75f52024816
[ "MIT" ]
null
null
null
""" Asynchronous tasks that update data in Open Humans. These tasks: 1. delete any current files in OH if they match the planned upload filename 2. adds a data file """ import logging import json import tempfile import requests import arrow from datetime import datetime from quantified_flu.settings import rr from r...
37.997268
106
0.548501
86c3281e44592959e34696bef99fd7dcfe0ccd66
683
py
Python
tests/test_math.py
mlestep/octo_tribble
887bf40095ff99797f7e39282b82eb3b05067e88
[ "BSD-3-Clause" ]
null
null
null
tests/test_math.py
mlestep/octo_tribble
887bf40095ff99797f7e39282b82eb3b05067e88
[ "BSD-3-Clause" ]
null
null
null
tests/test_math.py
mlestep/octo_tribble
887bf40095ff99797f7e39282b82eb3b05067e88
[ "BSD-3-Clause" ]
null
null
null
""" Testing for the math.py module """ import octo_tribble as ot import pytest def test_add(): assert ot.math.add(5, 2) == 7 assert ot.math.add(2, 5) == 7 testdata = [ (2, 5, 10), (1, 2, 2), (11, 9, 99), (11, 0, 0), (0, 0, 0), ] @pytest.mark.parametrize("a,b,expected", testdata) def test...
17.973684
61
0.573939
7fb5301113467ba5428b0759d577892f77146142
20,921
py
Python
API/src/main/resources/Lib/xlrd/compdoc.py
MiguelDomingues/SikuliX1
4ff932ae616b1c1fd5409f6e8fbf6c4615aa52f3
[ "MIT" ]
4
2021-04-27T10:48:39.000Z
2022-02-13T12:04:04.000Z
API/src/main/resources/Lib/xlrd/compdoc.py
MiguelDomingues/SikuliX1
4ff932ae616b1c1fd5409f6e8fbf6c4615aa52f3
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/xlrd/compdoc.py
MiguelDomingues/SikuliX1
4ff932ae616b1c1fd5409f6e8fbf6c4615aa52f3
[ "MIT" ]
null
null
null
# -*- coding: cp1252 -*- ## ## # No part of the content of this file was derived from the works of David Giffin. # 2008-11-04 SJM Avoid assertion error when -1 used instead of -2 for first_SID of empty SCSS [Frank Hoffsuemmer] # 2007-09-08 SJM Warning message if sector sizes are extremely large. # 2007-05-07 SJM Mea...
44.607676
159
0.551312
db985022d65a2c62821d236de1b742fc821e15c0
3,433
py
Python
python/Stream_Cipher/Transportation_Cipher.py
sys41x4/Cryptography_Scripts
85afa55e2534068d53ee7bcf384d567f56fa06bc
[ "MIT" ]
null
null
null
python/Stream_Cipher/Transportation_Cipher.py
sys41x4/Cryptography_Scripts
85afa55e2534068d53ee7bcf384d567f56fa06bc
[ "MIT" ]
null
null
null
python/Stream_Cipher/Transportation_Cipher.py
sys41x4/Cryptography_Scripts
85afa55e2534068d53ee7bcf384d567f56fa06bc
[ "MIT" ]
null
null
null
class Transportation_Cipher: def print_table(table): longest_cols = [ (max([len(str(row[i])) for row in table]) + 1) for i in range(len(table[0])) ] row_format = "".join(["{:>" + str(longest_col) + "}" for longest_col in longest_cols]) print('MATRIX:\n') for row_num in rang...
25.058394
109
0.656277
5f958fe1376df57f90a624ab897905ad97db5f77
382
py
Python
Trakttv.bundle/Contents/Libraries/Shared/plugin/core/libraries/tests/cryptography_.py
disrupted/Trakttv.bundle
24712216c71f3b22fd58cb5dd89dad5bb798ed60
[ "RSA-MD" ]
1,346
2015-01-01T14:52:24.000Z
2022-03-28T12:50:48.000Z
Trakttv.bundle/Contents/Libraries/Shared/plugin/core/libraries/tests/cryptography_.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
474
2015-01-01T10:27:46.000Z
2022-03-21T12:26:16.000Z
Trakttv.bundle/Contents/Libraries/Shared/plugin/core/libraries/tests/cryptography_.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
from plugin.core.libraries.tests.core.base import BaseTest class Cryptography(BaseTest): name = 'cryptography' optional = True @staticmethod def test_import(): import cryptography.hazmat.bindings.openssl.binding return { 'versions': { 'cryptography': getat...
22.470588
74
0.615183