hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
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.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
5afe5bfa12b0d62897f347a918c6c93f3a565284
5,619
py
Python
zsync_network.py
disenone/zsync
bcd914e33a88ab505ddabb3dca7c440998bbfdb0
[ "MIT" ]
null
null
null
zsync_network.py
disenone/zsync
bcd914e33a88ab505ddabb3dca7c440998bbfdb0
[ "MIT" ]
null
null
null
zsync_network.py
disenone/zsync
bcd914e33a88ab505ddabb3dca7c440998bbfdb0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import zmq import cPickle from zsync_logger import MYLOGGER as logging from collections import deque import zhelpers import time
26.504717
96
0.559352
# -*- coding: utf-8 -*- import zmq import cPickle from zsync_logger import MYLOGGER as logging from collections import deque import zhelpers import time class RpcCaller(object): def __init__(self, transceiver, sock, funcName, identity=None): self.transceiver = transceiver self.sock = sock ...
4,688
16
758
3239fc9853cc1f58c6863c9ff8360459339c32c3
545
py
Python
users/views.py
Swannbm/Consensus-online
a75385b9155e35ce3ce8d92e21f6dbac7a30223a
[ "CC0-1.0" ]
null
null
null
users/views.py
Swannbm/Consensus-online
a75385b9155e35ce3ce8d92e21f6dbac7a30223a
[ "CC0-1.0" ]
null
null
null
users/views.py
Swannbm/Consensus-online
a75385b9155e35ce3ce8d92e21f6dbac7a30223a
[ "CC0-1.0" ]
null
null
null
from django.views.generic import TemplateView, DetailView, CreateView from .models import User
21.8
69
0.73578
from django.views.generic import TemplateView, DetailView, CreateView from .models import User class Connectview(TemplateView): template_name = "users/connect.html" class Disconnectview(TemplateView): template_name = "users/connect.html" class ProfilView(DetailView): model = User context_object_n...
0
353
92
70a5b576ca8c9091512c00e88bce2182dbca683f
574
py
Python
data_structure/imaging_metrics.py
sly9/VoyagerTelegramBot
0ea033e2e8b5bdea3f54d2e89aa7e191a5ee3545
[ "MIT" ]
12
2021-11-14T00:35:39.000Z
2022-01-15T01:42:39.000Z
data_structure/imaging_metrics.py
sly9/VoyagerTelegramBot
0ea033e2e8b5bdea3f54d2e89aa7e191a5ee3545
[ "MIT" ]
26
2021-11-13T00:26:22.000Z
2022-03-12T06:10:46.000Z
data_structure/imaging_metrics.py
sly9/VoyagerTelegramBot
0ea033e2e8b5bdea3f54d2e89aa7e191a5ee3545
[ "MIT" ]
5
2021-11-02T21:49:04.000Z
2022-01-09T02:29:15.000Z
from dataclasses import dataclass @dataclass @dataclass @dataclass @dataclass
18.516129
57
0.695122
from dataclasses import dataclass @dataclass class GuidingMetrics: error_x: float = 0 error_y: float = 0 unit: str = 'pixel' @dataclass class FocusingMetrics: position: float = 0 hfd: float = 0 temperature: float = 0 filter_name: str = 'Ha' filter_color: str = '#FFFFFF' @dataclass ...
0
400
88
07fe11420127afd35cacac96f7d748593a165715
419
py
Python
classifier/beer/forms.py
RafaelBernardes/beer-classifier
68edb99a231d7090d0d6d384de712b4792b3b7d0
[ "MIT" ]
null
null
null
classifier/beer/forms.py
RafaelBernardes/beer-classifier
68edb99a231d7090d0d6d384de712b4792b3b7d0
[ "MIT" ]
null
null
null
classifier/beer/forms.py
RafaelBernardes/beer-classifier
68edb99a231d7090d0d6d384de712b4792b3b7d0
[ "MIT" ]
null
null
null
from django import forms
52.375
73
0.73747
from django import forms class BeerForm(forms.Form): IBU = forms.DecimalField(max_digits=5, decimal_places=3, label='IBU') SRM = forms.DecimalField(max_digits=5, decimal_places=3, label='SRM') OG = forms.DecimalField(max_digits=5, decimal_places=3, label='OG') FG = forms.DecimalField(max_digits=5, deci...
0
372
23
5ce30781b8e14bb52e953842fdc800ce3dad1397
1,211
py
Python
tests/test_ld.py
kateya/clade
f2c091be8055156ab3e6ce6b8f855c4b01d2b6f3
[ "Apache-2.0" ]
11
2018-10-15T08:46:00.000Z
2022-02-14T14:03:15.000Z
tests/test_ld.py
kateya/clade
f2c091be8055156ab3e6ce6b8f855c4b01d2b6f3
[ "Apache-2.0" ]
136
2018-08-07T11:11:29.000Z
2022-03-31T19:02:21.000Z
tests/test_ld.py
kateya/clade
f2c091be8055156ab3e6ce6b8f855c4b01d2b6f3
[ "Apache-2.0" ]
6
2018-11-09T12:52:39.000Z
2022-02-19T20:34:25.000Z
# Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # htt...
31.051282
79
0.689513
# Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # htt...
473
0
23
acf59c7529ebaf9b43006db311dd17abf02180e3
338
py
Python
week04/myproject/rent/admin.py
fuengfa/CS459
cf8b8dcdb94ebcb894551174e5223b857425e1f6
[ "BSD-2-Clause" ]
null
null
null
week04/myproject/rent/admin.py
fuengfa/CS459
cf8b8dcdb94ebcb894551174e5223b857425e1f6
[ "BSD-2-Clause" ]
null
null
null
week04/myproject/rent/admin.py
fuengfa/CS459
cf8b8dcdb94ebcb894551174e5223b857425e1f6
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from rent.models import Rent,Car # Register your models here. admin.site.register(Rent,RentAdmin) admin.site.register(Car,CarAdmin)
22.533333
49
0.789941
from django.contrib import admin from rent.models import Rent,Car # Register your models here. class RentAdmin(admin.ModelAdmin): list_display=[f.name for f in Rent._meta.fields] admin.site.register(Rent,RentAdmin) class CarAdmin(admin.ModelAdmin): list_display=[f.name for f in Car._meta.fields] admin.site.regist...
0
124
46
92152b17b6a5b1ccdcde6fa9a4cc1a8a589edfda
3,205
py
Python
mailersend/webhooks/__init__.py
mtthidoteu/mailersend-python
af9991847a5f4894a88037bc0778217611621a9f
[ "MIT" ]
8
2020-12-18T10:18:27.000Z
2022-02-24T07:43:27.000Z
mailersend/webhooks/__init__.py
mtthidoteu/mailersend-python
af9991847a5f4894a88037bc0778217611621a9f
[ "MIT" ]
14
2021-02-02T09:07:58.000Z
2022-03-17T10:35:03.000Z
mailersend/webhooks/__init__.py
mtthidoteu/mailersend-python
af9991847a5f4894a88037bc0778217611621a9f
[ "MIT" ]
7
2021-04-09T12:34:00.000Z
2022-02-04T15:06:35.000Z
""" Handles /webhooks endpoint Doc: https://developers.mailersend.com/api/v1/webhooks.html """ import requests from mailersend.base import base data = {} class NewWebhook(base.NewAPIClient): """ Instantiates the /webhooks endpoint object """ def __init__(self): """ NewWebhook constr...
23.566176
82
0.55975
""" Handles /webhooks endpoint Doc: https://developers.mailersend.com/api/v1/webhooks.html """ import requests from mailersend.base import base data = {} class NewWebhook(base.NewAPIClient): """ Instantiates the /webhooks endpoint object """ def __init__(self): """ NewWebhook constr...
0
0
0
4a378a2798c29cc35bf9d04f4078a28eb79b8531
1,184
py
Python
invenio_records_resources/services/records/links.py
inveniosoftware/invenio-resources
f1fb9a849d03af1d6ec4cddfc4e140a06788783b
[ "MIT" ]
null
null
null
invenio_records_resources/services/records/links.py
inveniosoftware/invenio-resources
f1fb9a849d03af1d6ec4cddfc4e140a06788783b
[ "MIT" ]
19
2020-05-18T12:04:54.000Z
2020-07-13T06:19:27.000Z
invenio_records_resources/services/records/links.py
inveniosoftware/invenio-resources
f1fb9a849d03af1d6ec4cddfc4e140a06788783b
[ "MIT" ]
5
2020-04-28T09:07:43.000Z
2020-07-01T14:43:01.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020-2021 CERN. # Copyright (C) 2020-2021 Northwestern University. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Utility for rendering URI template links.""" from ..ba...
28.190476
76
0.591216
# -*- coding: utf-8 -*- # # Copyright (C) 2020-2021 CERN. # Copyright (C) 2020-2021 Northwestern University. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Utility for rendering URI template links.""" from ..ba...
0
0
0
b99da5339d7812793a5063a3f3c797bca067a632
6,421
py
Python
gui/views/ui/Motors_widget.py
Saldenisov/pyconlyse
1de301b4a4c15ee0bd19034aa8d5da1beacfd124
[ "MIT" ]
null
null
null
gui/views/ui/Motors_widget.py
Saldenisov/pyconlyse
1de301b4a4c15ee0bd19034aa8d5da1beacfd124
[ "MIT" ]
null
null
null
gui/views/ui/Motors_widget.py
Saldenisov/pyconlyse
1de301b4a4c15ee0bd19034aa8d5da1beacfd124
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Motors_widget.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
54.880342
100
0.732752
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Motors_widget.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_StepMotorsWidgetWindow(object): def setupUi(self, stepmotor...
6,079
19
76
6f989f580d5cef746641d09f4611e8bccd59dbca
1,106
py
Python
faceutils/faceplusplus.py
CelineWang1027/PSGAN
33f246c8b4cf616929c01963476eb0d3f9d57132
[ "MIT" ]
570
2020-03-19T17:09:12.000Z
2022-03-31T16:54:27.000Z
faceutils/faceplusplus.py
CelineWang1027/PSGAN
33f246c8b4cf616929c01963476eb0d3f9d57132
[ "MIT" ]
35
2020-03-24T05:25:05.000Z
2022-02-27T06:48:08.000Z
faceutils/faceplusplus.py
CelineWang1027/PSGAN
33f246c8b4cf616929c01963476eb0d3f9d57132
[ "MIT" ]
112
2020-03-20T08:00:43.000Z
2022-03-03T03:35:55.000Z
#!/usr/bin/python # -*- encoding: utf-8 -*- from io import BytesIO import time import base64 import json import requests key = "-fd9YqPnrLnmugQGAhQoimCkQd0t8N8L" secret = "0GLyRIHDnrjKSlDuflLPO8a6U32hyDUy" beautify.url = 'https://api-cn.faceplusplus.com/facepp/v2/beautify' rank.url = 'https://api-cn.faceplusplus...
25.136364
70
0.638336
#!/usr/bin/python # -*- encoding: utf-8 -*- from io import BytesIO import time import base64 import json import requests key = "-fd9YqPnrLnmugQGAhQoimCkQd0t8N8L" secret = "0GLyRIHDnrjKSlDuflLPO8a6U32hyDUy" def encode(image: 'PIL.Image') -> str: with BytesIO() as output_buf: image.save(output_buf, format...
694
0
69
8c32ae202dcab0d85ad0396bf18b6333f947a38f
4,221
py
Python
fynance/features/roll_functions.py
ArthurBernard/Fynance
efd9a2e6f8eddcff017d828972236312f6f24084
[ "MIT" ]
19
2018-12-13T18:52:51.000Z
2021-09-03T00:33:47.000Z
fynance/features/roll_functions.py
ArthurBernard/Fynance
efd9a2e6f8eddcff017d828972236312f6f24084
[ "MIT" ]
null
null
null
fynance/features/roll_functions.py
ArthurBernard/Fynance
efd9a2e6f8eddcff017d828972236312f6f24084
[ "MIT" ]
6
2019-05-31T16:51:51.000Z
2021-07-29T21:31:25.000Z
#!/usr/bin/env python3 # coding: utf-8 # @Author: ArthurBernard # @Email: arthur.bernard.92@gmail.com # @Date: 2020-09-18 21:15:59 # @Last modified by: ArthurBernard # @Last modified time: 2020-09-18 22:21:22 """ Rolling functions. """ # Built-in packages # Third party packages import numpy as np # Local packages f...
27.057692
79
0.49538
#!/usr/bin/env python3 # coding: utf-8 # @Author: ArthurBernard # @Email: arthur.bernard.92@gmail.com # @Date: 2020-09-18 21:15:59 # @Last modified by: ArthurBernard # @Last modified time: 2020-09-18 22:21:22 """ Rolling functions. """ # Built-in packages # Third party packages import numpy as np # Local packages f...
238
0
46
3386462628a718e28730883b2a94c009a498da4c
7,002
py
Python
tests/msodde/test_basic.py
InQuest/oletools
e9dca546b053f7c7a8be921255a7bc0361e22425
[ "MIT", "Unlicense" ]
null
null
null
tests/msodde/test_basic.py
InQuest/oletools
e9dca546b053f7c7a8be921255a7bc0361e22425
[ "MIT", "Unlicense" ]
null
null
null
tests/msodde/test_basic.py
InQuest/oletools
e9dca546b053f7c7a8be921255a7bc0361e22425
[ "MIT", "Unlicense" ]
2
2021-04-26T00:28:41.000Z
2021-08-01T16:18:21.000Z
""" Test some basic behaviour of msodde.py Ensure that - doc and docx are read without error - garbage returns error return status - dde-links are found where appropriate """ from __future__ import print_function import unittest from oletools import msodde from tests.test_utils import DATA_BASE_DIR as BASE_DIR impor...
41.928144
92
0.596829
""" Test some basic behaviour of msodde.py Ensure that - doc and docx are read without error - garbage returns error return status - dde-links are found where appropriate """ from __future__ import print_function import unittest from oletools import msodde from tests.test_utils import DATA_BASE_DIR as BASE_DIR impor...
0
0
0
7060640169cf70472f35a8527d67430e9373a503
4,873
py
Python
Batch_Change_Place2D_GUI.py
AWACC2020/miscellaneous-scripts-for-Autodesk-Maya
7995c63a94e2f4508d16b1383296542530afb732
[ "MIT" ]
null
null
null
Batch_Change_Place2D_GUI.py
AWACC2020/miscellaneous-scripts-for-Autodesk-Maya
7995c63a94e2f4508d16b1383296542530afb732
[ "MIT" ]
null
null
null
Batch_Change_Place2D_GUI.py
AWACC2020/miscellaneous-scripts-for-Autodesk-Maya
7995c63a94e2f4508d16b1383296542530afb732
[ "MIT" ]
null
null
null
# -!- coding: utf-8 -!- # Author : AWACS # Time : 2020/06/12 # ------------------------------------ """ batch change place2dTexture Node for texture in Hypershade Editor, if you think the default command that come with maya: ---(hold middle mouse button + Ctrl key ,and drag a place2dTexture to the texture...
39.298387
112
0.672071
# -!- coding: utf-8 -!- # Author : AWACS # Time : 2020/06/12 # ------------------------------------ """ batch change place2dTexture Node for texture in Hypershade Editor, if you think the default command that come with maya: ---(hold middle mouse button + Ctrl key ,and drag a place2dTexture to the texture...
3,357
0
125
ef30c02cef9cdc5224e56c8c64dd5d8af9b69c68
918
py
Python
Duong/AirTop.py
nhatduong01/MathModelAss
0dc288c55de00ab60c9aa71b8d28ec66e7db1584
[ "Unlicense" ]
null
null
null
Duong/AirTop.py
nhatduong01/MathModelAss
0dc288c55de00ab60c9aa71b8d28ec66e7db1584
[ "Unlicense" ]
null
null
null
Duong/AirTop.py
nhatduong01/MathModelAss
0dc288c55de00ab60c9aa71b8d28ec66e7db1584
[ "Unlicense" ]
null
null
null
U_scr = 0.5 K_scr = 40 T_air = 298.15 T_top = 303.15 g = 9.8 p_air = air_density(T_air) p_top = air_density(T_top) p_mean_air = (p_air + p_top)/2 input_tuple = (U_scr, K_scr, T_air, T_top, g, p_mean_air, p_air, p_top) # The tuple order is U_ src, K_Scr , T_air, T_top, gravitational coefficient,p_mean_air, ...
30.6
118
0.6939
def air_density(temperature): return 101325/(287*temperature) U_scr = 0.5 K_scr = 40 T_air = 298.15 T_top = 303.15 g = 9.8 p_air = air_density(T_air) p_top = air_density(T_top) p_mean_air = (p_air + p_top)/2 input_tuple = (U_scr, K_scr, T_air, T_top, g, p_mean_air, p_air, p_top) # The tuple order is ...
449
0
73
835df54b55d95ba6e029e2face4087974cd3c222
788
py
Python
acapy_plugin_toolbox/holder/v0_1/messages/pres_list.py
mepeltier/aries-acapy-plugin-toolbox
69cb760c2e802095440759166c8f6a2d69ca7281
[ "Apache-2.0" ]
13
2020-03-17T11:29:47.000Z
2022-03-17T19:56:50.000Z
acapy_plugin_toolbox/holder/v0_1/messages/pres_list.py
frostyfrog/aries-acapy-plugin-toolbox
17ded7e482e8bf95091c97a271d0b9f16643daef
[ "Apache-2.0" ]
36
2020-02-13T18:23:18.000Z
2022-03-01T20:06:59.000Z
acapy_plugin_toolbox/holder/v0_1/messages/pres_list.py
cjhowland/aries-acapy-plugin-toolbox
1501b1f6152623421df9064d96b646f8b47d5afc
[ "Apache-2.0" ]
23
2019-11-20T18:16:37.000Z
2022-03-26T08:23:33.000Z
from marshmallow import fields from ....decorators.pagination import Page from ....util import expand_message_class from .base import AdminHolderMessage @expand_message_class class PresList(AdminHolderMessage): """Presentation get list response message.""" message_type = "presentations-list" class Fiel...
27.172414
84
0.652284
from marshmallow import fields from ....decorators.pagination import Page from ....util import expand_message_class from .base import AdminHolderMessage @expand_message_class class PresList(AdminHolderMessage): """Presentation get list response message.""" message_type = "presentations-list" class Fiel...
127
0
27
76dfcc447d4f671cd6308e8514ab4ced63226fac
1,778
py
Python
scripts/db_update/update_04a_to_05.py
rhinoman/wikifeat
1fc2c0c40fb412e64d60224a20ffda646c25eddc
[ "BSD-3-Clause" ]
118
2015-08-06T15:44:22.000Z
2022-03-27T22:00:19.000Z
scripts/db_update/update_04a_to_05.py
rhinoman/wikifeat
1fc2c0c40fb412e64d60224a20ffda646c25eddc
[ "BSD-3-Clause" ]
62
2015-08-05T02:22:09.000Z
2020-07-25T15:12:51.000Z
scripts/db_update/update_04a_to_05.py
rhinoman/wikifeat
1fc2c0c40fb412e64d60224a20ffda646c25eddc
[ "BSD-3-Clause" ]
9
2015-11-05T00:30:40.000Z
2020-03-11T17:27:43.000Z
#!/usr/bin/env python3 """ Update Wikifeat couchdb databases from 0.4.0a to 0.5.0 Note: Requires python3 Changes: 1. Added getImageFileIndex view to wiki design documents """ import json import common import sys wiki_ddoc = 'wikit' getImageFileIndex = dict() getImageFileIndex['map'] = """ functio...
26.939394
78
0.683352
#!/usr/bin/env python3 """ Update Wikifeat couchdb databases from 0.4.0a to 0.5.0 Note: Requires python3 Changes: 1. Added getImageFileIndex view to wiki design documents """ import json import common import sys wiki_ddoc = 'wikit' getImageFileIndex = dict() getImageFileIndex['map'] = """ functio...
0
0
0
67155589e90f5a5efbcc8ba552364bbd06fdd1da
4,244
py
Python
demo_binary_logistic_regression.py
JyotinderSingh/TinyFlow-Deep-Learning-Framework
1a57f273d05cf1ac940da61fa4713c5265b4c46d
[ "MIT" ]
null
null
null
demo_binary_logistic_regression.py
JyotinderSingh/TinyFlow-Deep-Learning-Framework
1a57f273d05cf1ac940da61fa4713c5265b4c46d
[ "MIT" ]
1
2020-07-05T08:10:16.000Z
2020-07-05T13:53:27.000Z
demo_binary_logistic_regression.py
JyotinderSingh/TinyFlow-Deep-Learning-Framework
1a57f273d05cf1ac940da61fa4713c5265b4c46d
[ "MIT" ]
1
2020-05-12T15:27:00.000Z
2020-05-12T15:27:00.000Z
# Binary Logistic Regression Demo import numpy as np from TinyFlow.Datasets import spiral_data from TinyFlow.Metrics import model_accuracy_sigmoid from TinyFlow.Layers import Layer_Dense from TinyFlow.Activations import Activation_ReLU, Activation_Sigmoid from TinyFlow.Loss import Loss_BinaryCrossEntropy from TinyFlow....
33.68254
180
0.761074
# Binary Logistic Regression Demo import numpy as np from TinyFlow.Datasets import spiral_data from TinyFlow.Metrics import model_accuracy_sigmoid from TinyFlow.Layers import Layer_Dense from TinyFlow.Activations import Activation_ReLU, Activation_Sigmoid from TinyFlow.Loss import Loss_BinaryCrossEntropy from TinyFlow....
0
0
0
122ec9d4f375db1141b39b38f4d2b9ed772a0817
5,163
py
Python
models/imagenet/fbnet_v2.py
a1004123217/pytorch-mobile
97974af3259a2073efbc334d57841efbd3eaadfb
[ "MIT" ]
null
null
null
models/imagenet/fbnet_v2.py
a1004123217/pytorch-mobile
97974af3259a2073efbc334d57841efbd3eaadfb
[ "MIT" ]
null
null
null
models/imagenet/fbnet_v2.py
a1004123217/pytorch-mobile
97974af3259a2073efbc334d57841efbd3eaadfb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ FBNet classification models Example code to create the model: from mobile_cv.model_zoo.models.fbnet_v2 import fbnet model = fbnet("fbnet_cse", pretrained=True) model.eval() Full example code is available at ...
29.843931
83
0.675576
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ FBNet classification models Example code to create the model: from mobile_cv.model_zoo.models.fbnet_v2 import fbnet model = fbnet("fbnet_cse", pretrained=True) model.eval() Full example code is available at ...
2,596
106
222
1531d0b47665f5afed6b70413c566b13a32964a5
1,029
py
Python
format_dataset/prepare_train_image.py
Srinjoycode/Binary-Segmentation-with-Spatial-Attention
851008319eb8f6a351eccd4698b29a4335c1cf2a
[ "MIT" ]
null
null
null
format_dataset/prepare_train_image.py
Srinjoycode/Binary-Segmentation-with-Spatial-Attention
851008319eb8f6a351eccd4698b29a4335c1cf2a
[ "MIT" ]
null
null
null
format_dataset/prepare_train_image.py
Srinjoycode/Binary-Segmentation-with-Spatial-Attention
851008319eb8f6a351eccd4698b29a4335c1cf2a
[ "MIT" ]
null
null
null
""" Author: @ayushmankumar7 Paste this file (prepare_train_mask.py) in "leftImg8bit_trainvaltest/leftImg8bit". There are 3 folder in this directory - test, train, val. Paste the file inside the folder containing the 3 folders. In Command Prompt or Terminal : python prepare_train_image.py Link for th...
22.866667
101
0.664723
""" Author: @ayushmankumar7 Paste this file (prepare_train_mask.py) in "leftImg8bit_trainvaltest/leftImg8bit". There are 3 folder in this directory - test, train, val. Paste the file inside the folder containing the 3 folders. In Command Prompt or Terminal : python prepare_train_image.py Link for th...
0
0
0
523fb495858e870283566cb905b011d71bc3ecd8
902
py
Python
driver/tests.py
toelapiut/uber-pool
94354982e65ef379f0bd9bc6e2268038d823bd6e
[ "MIT" ]
null
null
null
driver/tests.py
toelapiut/uber-pool
94354982e65ef379f0bd9bc6e2268038d823bd6e
[ "MIT" ]
6
2020-06-05T17:47:14.000Z
2021-09-07T23:49:07.000Z
driver/tests.py
toelapiut/uber-pool
94354982e65ef379f0bd9bc6e2268038d823bd6e
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import * from django.contrib.auth.models import User # Create your tests here. # test for checking instance # test for saving # test for deleting Driver or Editor
32.214286
71
0.706208
from django.test import TestCase from .models import * from django.contrib.auth.models import User # Create your tests here. class DriverRiderTest(TestCase): def setUp(self): user=User.objects.get(id).all() self.driver_rider = Driver_Or_Rider(user_id=user, selection=1) # test for checking ins...
539
11
127
f87a2cdc73539bf080b32360d07d64f6c3b9361d
3,502
py
Python
.leetcode/653.two-sum-iv-input-is-a-bst.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/653.two-sum-iv-input-is-a-bst.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/653.two-sum-iv-input-is-a-bst.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=653 lang=python3 # # [653] Two Sum IV - Input is a BST # # https://leetcode.com/problems/two-sum-iv-input-is-a-bst/description/ # # algorithms # Easy (57.56%) # Likes: 2752 # Dislikes: 175 # Total Accepted: 248.7K # Total Submissions: 430.4K # Testcase Example: '[5,3,6,2,4,null,7]\n9' # # G...
20.6
79
0.538835
# @lc app=leetcode id=653 lang=python3 # # [653] Two Sum IV - Input is a BST # # https://leetcode.com/problems/two-sum-iv-input-is-a-bst/description/ # # algorithms # Easy (57.56%) # Likes: 2752 # Dislikes: 175 # Total Accepted: 248.7K # Total Submissions: 430.4K # Testcase Example: '[5,3,6,2,4,null,7]\n9' # # G...
606
-6
48
a26837c48b8d0500a693fa629a875483a0ab8788
1,030
py
Python
674. Longest Continuous Increasing Subsequence.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
6
2017-10-30T05:35:46.000Z
2020-12-15T06:51:52.000Z
674. Longest Continuous Increasing Subsequence.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
1
2017-10-30T04:11:31.000Z
2017-10-30T05:46:24.000Z
674. Longest Continuous Increasing Subsequence.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
2
2020-09-03T07:14:02.000Z
2021-05-21T19:19:57.000Z
# Given an unsorted array of integers, find the length of longest continuous increasing subsequence. # Example 1: # Input: [1,3,5,4,7] # Output: 3 # Explanation: The longest continuous increasing subsequence is [1,3,5], its length is 3. # Even though [1,3,5,7] is also an increasing subsequence, it's not a continuous ...
33.225806
119
0.607767
# Given an unsorted array of integers, find the length of longest continuous increasing subsequence. # Example 1: # Input: [1,3,5,4,7] # Output: 3 # Explanation: The longest continuous increasing subsequence is [1,3,5], its length is 3. # Even though [1,3,5,7] is also an increasing subsequence, it's not a continuous ...
0
452
22
b621b340b3bf805ccbd5a5e482ec56cab024df3a
3,428
py
Python
lexer.py
gggfox/compiler_proyect
d6c1836a0c83777e58cdc6da2a54a504a8d5b633
[ "MIT" ]
null
null
null
lexer.py
gggfox/compiler_proyect
d6c1836a0c83777e58cdc6da2a54a504a8d5b633
[ "MIT" ]
null
null
null
lexer.py
gggfox/compiler_proyect
d6c1836a0c83777e58cdc6da2a54a504a8d5b633
[ "MIT" ]
null
null
null
''' ############################# # Gerardo Galan Garzafox # # A00821196 # # # # alebrije_lexer.py # # Created_at 2021-09-25 # # # ############################# ''' import sys import ply.lex as lex reserved = { 'program' : 'PROGRAM...
18.73224
61
0.483664
''' ############################# # Gerardo Galan Garzafox # # A00821196 # # # # alebrije_lexer.py # # Created_at 2021-09-25 # # # ############################# ''' import sys import ply.lex as lex reserved = { 'program' : 'PROGRAM...
95
0
23
bfaf0bced0b2389168b820ab55515998d5b5034c
927
py
Python
travel_distance_map/test/test_primitives.py
pdyban/travel_distance_map
4e36fcee5fcb6a1682001aaff93912482deb05e7
[ "MIT" ]
1
2020-07-02T20:13:21.000Z
2020-07-02T20:13:21.000Z
travel_distance_map/test/test_primitives.py
pdyban/travel_distance_map
4e36fcee5fcb6a1682001aaff93912482deb05e7
[ "MIT" ]
null
null
null
travel_distance_map/test/test_primitives.py
pdyban/travel_distance_map
4e36fcee5fcb6a1682001aaff93912482deb05e7
[ "MIT" ]
null
null
null
import unittest from travel_distance_map import GPSPoint, Position
37.08
78
0.693635
import unittest from travel_distance_map import GPSPoint, Position class TestGPSPoint(unittest.TestCase): def test_distance_utf(self): point1 = GPSPoint(52.5219216, 13.411026) # Alexanderplatz point2 = GPSPoint(52.5201169, 13.3865786) # Friedrichstrasse dist = point1.distance_utf(point2)...
699
34
125
3c07eb9eef1a936fa8dc25341e9b95d69849db4f
17,241
py
Python
otherlanguage/encoder.py
tanreinama/aMLP-japanese
ee16377c023d113d769645a3139e26093873628b
[ "MIT" ]
5
2021-11-13T09:50:58.000Z
2022-03-01T07:59:18.000Z
otherlanguage/encoder.py
tanreinama/aMLP-japanese
ee16377c023d113d769645a3139e26093873628b
[ "MIT" ]
1
2022-02-03T23:44:26.000Z
2022-02-09T03:56:39.000Z
otherlanguage/encoder.py
tanreinama/aMLP-japanese
ee16377c023d113d769645a3139e26093873628b
[ "MIT" ]
null
null
null
import numpy as np import re import json import os if __name__=='__main__': import argparse import os import json from tqdm import tqdm import pickle from multiprocessing import Pool parser = argparse.ArgumentParser() parser.add_argument("--src_dir", help="source dir", required=True ) ...
44.321337
272
0.461574
import numpy as np import re import json import os class SWEEncoder_wholeword: def __init__(self, bpe, emoji): self.bpe = bpe self.swe = {} for idx, wd in enumerate(self.bpe): self.swe[wd] = idx self.emoji = emoji self.maxlen = np.max([len(w) for w in self.swe.ke...
16,332
5
363
b6eb5c56e22104678f8c01cd791cd6ffda925e43
1,293
py
Python
ads/migrations/0004_auto_20160511_2048.py
japsu/tracontent
169fe84c49c1a30133e927f1be50abba171ebe68
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
ads/migrations/0004_auto_20160511_2048.py
japsu/tracontent
169fe84c49c1a30133e927f1be50abba171ebe68
[ "PostgreSQL", "Unlicense", "MIT" ]
7
2020-11-26T18:41:07.000Z
2022-01-18T09:27:00.000Z
ads/migrations/0004_auto_20160511_2048.py
tracon/tracontent
65bd8c15b7909a90ebe5ed28cbbf66683a4e3c2c
[ "MIT", "PostgreSQL", "Unlicense" ]
null
null
null
from django.db import migrations, models
34.945946
179
0.612529
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ads', '0003_auto_20160218_2343'), ] operations = [ migrations.AlterField( model_name='banner', name='active', field=models.BooleanField(default=True, hel...
0
1,242
23
e2738087b399be494d8837b975acf1175c29954c
400
py
Python
setup.py
AlanCristhian/symbexpr
2dae9990d0f28d428015c9644e140928357517cc
[ "MIT" ]
null
null
null
setup.py
AlanCristhian/symbexpr
2dae9990d0f28d428015c9644e140928357517cc
[ "MIT" ]
null
null
null
setup.py
AlanCristhian/symbexpr
2dae9990d0f28d428015c9644e140928357517cc
[ "MIT" ]
null
null
null
"""Insall script.""" from setuptools import setup setup( name="symbexpr", version="0.0.1a1", py_modules=["symbexpr"], zip_safe=True, author="Alan Cristhian", author_email="alan.cristh@gmail.com", description="Systems of equalities, inequalities and constraints.", license="MIT", ke...
22.222222
71
0.675
"""Insall script.""" from setuptools import setup setup( name="symbexpr", version="0.0.1a1", py_modules=["symbexpr"], zip_safe=True, author="Alan Cristhian", author_email="alan.cristh@gmail.com", description="Systems of equalities, inequalities and constraints.", license="MIT", ke...
0
0
0
1ca19b47ad72b8b73290bd4f6a6cc00321ac9ce7
50,797
py
Python
osh/cmd_parse.py
afunsten/oil
e52071e10a78157db1e4f0befc439a36ca1cbc01
[ "Apache-2.0" ]
1
2019-01-25T01:15:51.000Z
2019-01-25T01:15:51.000Z
osh/cmd_parse.py
afunsten/oil
e52071e10a78157db1e4f0befc439a36ca1cbc01
[ "Apache-2.0" ]
null
null
null
osh/cmd_parse.py
afunsten/oil
e52071e10a78157db1e4f0befc439a36ca1cbc01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Andy Chu. 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 """ cmd_parse.py - Parse h...
29.227273
82
0.647755
#!/usr/bin/env python # Copyright 2016 Andy Chu. 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 """ cmd_parse.py - Parse h...
4,225
0
172
f4e69fb510368b9bfea693ac6496cf38c17f73ce
26,178
py
Python
desdeo_tools/scalarization/GLIDE_II.py
giomara-larraga/desdeo-tools
be3c96933c4db3180560617e12578851d5958aa3
[ "MIT" ]
null
null
null
desdeo_tools/scalarization/GLIDE_II.py
giomara-larraga/desdeo-tools
be3c96933c4db3180560617e12578851d5958aa3
[ "MIT" ]
null
null
null
desdeo_tools/scalarization/GLIDE_II.py
giomara-larraga/desdeo-tools
be3c96933c4db3180560617e12578851d5958aa3
[ "MIT" ]
null
null
null
from abc import abstractmethod from typing import Union import numpy as np class GLIDEError(Exception): """Raised when an error related to the ASF classes is encountered. """ class GLIDEBase: """ Implements the non-differentiable variant of GLIDE-II as proposed in Ruiz, Francisco, Mariano Luqu...
31.92439
107
0.626404
from abc import abstractmethod from typing import Union import numpy as np class GLIDEError(Exception): """Raised when an error related to the ASF classes is encountered. """ class GLIDEBase: """ Implements the non-differentiable variant of GLIDE-II as proposed in Ruiz, Francisco, Mariano Luqu...
12,916
0
2,116
d4adcc8efbf8e3a1a5d6c3fdf0e7eff6f06a8b13
2,037
py
Python
tests/simulation.py
ajansen-tub/pyoma
83d4a74a54ecf7456f715b5d1c429b801bd5fd07
[ "MIT" ]
5
2021-06-15T10:03:17.000Z
2022-03-06T23:11:13.000Z
tests/simulation.py
ajansen-tub/pyoma
83d4a74a54ecf7456f715b5d1c429b801bd5fd07
[ "MIT" ]
1
2022-01-31T00:39:32.000Z
2022-02-23T19:19:56.000Z
tests/simulation.py
ajansen-tub/pyoma
83d4a74a54ecf7456f715b5d1c429b801bd5fd07
[ "MIT" ]
3
2021-06-29T08:24:33.000Z
2021-12-21T04:18:22.000Z
import numpy as np from statespace_model import solver from scipy.spatial.distance import cdist from pyomac.misc import mac_value, err_rel
30.402985
117
0.635739
import numpy as np from statespace_model import solver from scipy.spatial.distance import cdist from pyomac.misc import mac_value, err_rel def generate_impulse_data(m, k, c_damp): # simulation parameters fs = 300 time_step = 1 / fs t_end = 60 t = np.arange(0, t_end, time_step) # force vector...
1,826
0
69
ad4979c86f4b8879362215c1a922cce4b2191e12
622
py
Python
provisional_test.py
lleene/pybooru
72a539c94b8326478cf2491e1d954b80b709cda8
[ "MIT" ]
79
2015-02-04T12:32:03.000Z
2022-03-22T09:17:15.000Z
provisional_test.py
lleene/pybooru
72a539c94b8326478cf2491e1d954b80b709cda8
[ "MIT" ]
38
2016-05-18T19:20:24.000Z
2022-03-30T20:02:08.000Z
provisional_test.py
lleene/pybooru
72a539c94b8326478cf2491e1d954b80b709cda8
[ "MIT" ]
30
2015-02-04T13:09:19.000Z
2022-03-21T15:52:50.000Z
# encoding: utf-8 from __future__ import print_function from pybooru import Danbooru from pybooru import Moebooru konachan = Moebooru("konachan") kona_tags = konachan.tag_list(order='date') print(konachan.last_call) kona_post = konachan.post_list() print(konachan.last_call) lolibooru = Moebooru("lolibooru") kona_ta...
23.923077
46
0.797428
# encoding: utf-8 from __future__ import print_function from pybooru import Danbooru from pybooru import Moebooru konachan = Moebooru("konachan") kona_tags = konachan.tag_list(order='date') print(konachan.last_call) kona_post = konachan.post_list() print(konachan.last_call) lolibooru = Moebooru("lolibooru") kona_ta...
0
0
0
a8d18cd1b0879ac04d924bee0cdf72d87be5cdf6
124
py
Python
2020/examples-in-class-2020-10-29/input_example_birth_year.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2021-02-04T16:59:11.000Z
2021-02-04T16:59:11.000Z
2020/examples-in-class-2020-10-29/input_example_birth_year.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
null
null
null
2020/examples-in-class-2020-10-29/input_example_birth_year.py
ati-ozgur/course-python
38237d120043c07230658b56dc3aeb01c3364933
[ "Apache-2.0" ]
1
2019-10-30T14:37:48.000Z
2019-10-30T14:37:48.000Z
str_year = input("what is your birth year:") year = int(str_year) age = 2020-year-1 print(f"hello, your age is {age}")
12.4
44
0.66129
str_year = input("what is your birth year:") year = int(str_year) age = 2020-year-1 print(f"hello, your age is {age}")
0
0
0
a8da378b3730c38346625872662739f1fb28f6fa
2,730
py
Python
neurostore/auth.py
neurostuff/python-neurostore
0859c92a58e7d468c2268cff663814e4251aec15
[ "MIT" ]
null
null
null
neurostore/auth.py
neurostuff/python-neurostore
0859c92a58e7d468c2268cff663814e4251aec15
[ "MIT" ]
2
2022-02-10T01:35:38.000Z
2022-02-10T01:58:44.000Z
neurostore/auth.py
neurostuff/python-neurostore
0859c92a58e7d468c2268cff663814e4251aec15
[ "MIT" ]
null
null
null
import threading import base64 import hashlib import webbrowser import secrets from time import sleep from werkzeug.serving import make_server from flask import Flask, request global_dict = { 'received_callback': False, 'received_state': None, 'authorization_code': None, 'error_message': None } a...
29.354839
104
0.682418
import threading import base64 import hashlib import webbrowser import secrets from time import sleep from werkzeug.serving import make_server from flask import Flask, request global_dict = { 'received_callback': False, 'received_state': None, 'authorization_code': None, 'error_message': None } a...
1,192
0
150
b80acfb2cbd14eab86a240f780997c286516eb72
1,628
py
Python
src/pas/plugins/ldap/setuphandlers.py
b-freitas/pas.plugins.ldap
10c6e82bfd6704a5032594afa87df61a73d4c636
[ "BSD-3-Clause" ]
8
2016-07-01T21:28:18.000Z
2020-04-03T07:14:29.000Z
src/pas/plugins/ldap/setuphandlers.py
b-freitas/pas.plugins.ldap
10c6e82bfd6704a5032594afa87df61a73d4c636
[ "BSD-3-Clause" ]
94
2015-02-10T11:14:08.000Z
2022-02-14T21:56:57.000Z
src/pas/plugins/ldap/setuphandlers.py
b-freitas/pas.plugins.ldap
10c6e82bfd6704a5032594afa87df61a73d4c636
[ "BSD-3-Clause" ]
18
2015-08-17T14:06:36.000Z
2022-03-01T02:29:36.000Z
# -*- coding: utf-8 -*- from pas.plugins.ldap.plugin import LDAPPlugin from zope.component.hooks import getSite TITLE = "LDAP plugin (pas.plugins.ldap)" def remove_persistent_import_step(context): """Remove broken persistent import step. profile/import_steps.xml defined an import step with id "pas.plug...
32.56
78
0.701474
# -*- coding: utf-8 -*- from pas.plugins.ldap.plugin import LDAPPlugin from zope.component.hooks import getSite TITLE = "LDAP plugin (pas.plugins.ldap)" def remove_persistent_import_step(context): """Remove broken persistent import step. profile/import_steps.xml defined an import step with id "pas.plug...
691
0
46
8189aa7203e800f8a1c5d1651c18c894affa0f7b
3,744
py
Python
lcm/pub/nfvi/vim/api/openstack/image.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
4
2018-08-29T02:51:38.000Z
2021-11-16T11:36:11.000Z
lcm/pub/nfvi/vim/api/openstack/image.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
null
null
null
lcm/pub/nfvi/vim/api/openstack/image.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
1
2019-05-12T08:21:19.000Z
2019-05-12T08:21:19.000Z
# Copyright 2016 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.990654
112
0.662126
# Copyright 2016 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
2,703
21
191
69ae863712a666e0148aa5138903bddda6f729ce
13,934
py
Python
yamp/__init__.py
MaxHalford/yamp
6cdcbedb089fb0fe977807de27835d55d774d1af
[ "MIT" ]
9
2021-08-21T16:25:52.000Z
2021-11-05T17:29:51.000Z
yamp/__init__.py
MaxHalford/yamp
6cdcbedb089fb0fe977807de27835d55d774d1af
[ "MIT" ]
null
null
null
yamp/__init__.py
MaxHalford/yamp
6cdcbedb089fb0fe977807de27835d55d774d1af
[ "MIT" ]
null
null
null
"""This script is responsible for building the API reference. The API reference is located in docs/api. The script scans through all the modules, classes, and functions. It processes the __doc__ of each object and formats it so that MkDocs can process it in turn. """ import argparse import functools import importlib i...
33.17619
100
0.551672
"""This script is responsible for building the API reference. The API reference is located in docs/api. The script scans through all the modules, classes, and functions. It processes the __doc__ of each object and formats it so that MkDocs can process it in turn. """ import argparse import functools import importlib i...
6,887
-5
199
0c0584c26d480ad99ffc72964cfc768284862ef6
510
py
Python
run_several.py
davidmalmstrom/neural_collaborative_filtering
d3d93100d990381f9ef1a10ec37b455b31d38de7
[ "Apache-2.0" ]
null
null
null
run_several.py
davidmalmstrom/neural_collaborative_filtering
d3d93100d990381f9ef1a10ec37b455b31d38de7
[ "Apache-2.0" ]
null
null
null
run_several.py
davidmalmstrom/neural_collaborative_filtering
d3d93100d990381f9ef1a10ec37b455b31d38de7
[ "Apache-2.0" ]
null
null
null
# Script to run several runs after each other. The runs are specified by the run-configurations # located in the folder runs/several_runs/ import sys import os sys.path.append('..') import run_script run_files = os.listdir("runs/several_runs/") run_files.sort() for run_file_name in run_files: try: run_...
28.333333
96
0.692157
# Script to run several runs after each other. The runs are specified by the run-configurations # located in the folder runs/several_runs/ import sys import os sys.path.append('..') import run_script run_files = os.listdir("runs/several_runs/") run_files.sort() for run_file_name in run_files: try: run_...
0
0
0
99fb5558318029de7c4cecca9289a377a4ffa18d
1,209
py
Python
Questions/models.py
shubh242/E-Learning-App
07320b1f1aba31602c3056398ffae16f2fa6f9ae
[ "MIT" ]
null
null
null
Questions/models.py
shubh242/E-Learning-App
07320b1f1aba31602c3056398ffae16f2fa6f9ae
[ "MIT" ]
null
null
null
Questions/models.py
shubh242/E-Learning-App
07320b1f1aba31602c3056398ffae16f2fa6f9ae
[ "MIT" ]
null
null
null
from django.db import models from Client.models import Student, Parent, Teacher, Subject, Course from django.contrib.auth.models import User
37.78125
80
0.757651
from django.db import models from Client.models import Student, Parent, Teacher, Subject, Course from django.contrib.auth.models import User class Post(models.Model): question = models.TextField(max_length=100) user = models.ForeignKey(User, on_delete=models.CASCADE) subject = models.ManyToManyField(Subjec...
26
948
92
4a93d368e16d2a2855df80d717de7d6c6e8d7596
789
py
Python
src/syft/core/common/storeable_object.py
dnabanita7/PySyft
ce2510e65f5bad382e88806bcde30fa38c3c76c4
[ "Apache-2.0" ]
2
2018-07-23T20:34:10.000Z
2020-08-01T09:09:09.000Z
packages/syft/src/syft/core/common/storeable_object.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
5
2020-09-11T05:47:12.000Z
2020-10-13T08:36:17.000Z
packages/syft/src/syft/core/common/storeable_object.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
1
2021-05-22T17:11:42.000Z
2021-05-22T17:11:42.000Z
# stdlib from typing import List from typing import Optional # syft relative from .serde.serializable import Serializable from .uid import UID
19.725
51
0.653992
# stdlib from typing import List from typing import Optional # syft relative from .serde.serializable import Serializable from .uid import UID class AbstractStorableObject(Serializable): data: object id: UID search_permissions: dict @property def icon(self) -> str: return "🗂️" @pr...
299
327
23
ba644b5b04f381a01d7ff2350879bad2562214c3
19,384
py
Python
sdk/python/pulumi_gcp/bigquery/data_transfer_config.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/bigquery/data_transfer_config.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/bigquery/data_transfer_config.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
56.023121
187
0.672255
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
175
18,765
23
1383972698cf45b51067c65b9ab1a3a6664f2f26
435
py
Python
src/ralph/ui/templatetags/di.py
vi4m/ralph
2af767ee23d89be9e6cec0a537350a1ce8840bd1
[ "Apache-2.0" ]
1
2018-09-01T14:14:08.000Z
2018-09-01T14:14:08.000Z
src/ralph/ui/templatetags/di.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T10:03:45.000Z
2019-08-14T10:03:45.000Z
src/ralph/ui/templatetags/di.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T09:59:42.000Z
2019-08-14T09:59:42.000Z
# -*- coding: utf-8 -*- """Tags for dependency injection.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django import template from ralph.util.di import get_extra_data register = template.Library() @regi...
22.894737
54
0.774713
# -*- coding: utf-8 -*- """Tags for dependency injection.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django import template from ralph.util.di import get_extra_data register = template.Library() @regi...
77
0
22
e15d9bdc2db3278d0f18e8f36e5453aebac6080a
4,110
py
Python
data/test/python/e15d9bdc2db3278d0f18e8f36e5453aebac6080acollect.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/python/e15d9bdc2db3278d0f18e8f36e5453aebac6080acollect.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/python/e15d9bdc2db3278d0f18e8f36e5453aebac6080acollect.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
import sys import os.path from urlparse import urljoin import time import urllib2 from bs4 import BeautifulSoup
38.411215
113
0.513869
import sys import os.path from urlparse import urljoin import time import urllib2 from bs4 import BeautifulSoup class Collector: def __init__(self): pass def download_2015_excel(self, local_save_dir_base): uri = 'http://ontario.ca/sites/default/files/pssd_compendium_2014.xlsx' res...
3,855
-5
138
ab3a14612ad0e1a79bdbfb12fbc3a9ccec664355
2,827
py
Python
sdk/python/pulumi_azure_native/mixedreality/v20210301preview/list_remote_rendering_account_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/mixedreality/v20210301preview/list_remote_rendering_account_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/mixedreality/v20210301preview/list_remote_rendering_account_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
35.78481
181
0.692961
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
617
69
75
6f45b5dedd82dae3a3e46637a927226c8b7c8cfa
2,081
py
Python
gea/migrations/0008_auto_20210324_1808.py
quijot/gea-package
1b75578cbf72bc1823e5190c30b2f47f6b4e4e8e
[ "MIT" ]
null
null
null
gea/migrations/0008_auto_20210324_1808.py
quijot/gea-package
1b75578cbf72bc1823e5190c30b2f47f6b4e4e8e
[ "MIT" ]
3
2020-02-11T21:26:49.000Z
2021-01-26T17:14:17.000Z
gea/migrations/0008_auto_20210324_1808.py
quijot/gea-package
1b75578cbf72bc1823e5190c30b2f47f6b4e4e8e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-24 21:08 from django.db import migrations, models import django.db.models.deletion
33.031746
122
0.582412
# Generated by Django 3.1.5 on 2021-03-24 21:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('gea', '0007_auto_20210324_1222'), ] operations = [ migrations.RemoveField( model_name='persona'...
0
1,940
23
2bd6a02145154ea659db2ea27fe0a3202a37d8e1
2,303
py
Python
app/core/admin.py
nguyenlinh171/recipe-app-api
339feb3df6aed6d424a19ca0748a49cd6ed173be
[ "MIT" ]
null
null
null
app/core/admin.py
nguyenlinh171/recipe-app-api
339feb3df6aed6d424a19ca0748a49cd6ed173be
[ "MIT" ]
null
null
null
app/core/admin.py
nguyenlinh171/recipe-app-api
339feb3df6aed6d424a19ca0748a49cd6ed173be
[ "MIT" ]
null
null
null
from core import models from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin """Need to import the default Django user admin, need to change some of the class variables to support our custom user admin using email instead of username""" from django.utils.translation import ...
42.648148
74
0.684325
from core import models from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin """Need to import the default Django user admin, need to change some of the class variables to support our custom user admin using email instead of username""" from django.utils.translation import ...
0
0
0
1c56cafe82e08f64b415f37d537e652b5bfed036
13,271
py
Python
src/compas_slicer/pre_processing/preprocessing_utils/compound_target.py
Spiritdude/compas_slicer
58dedfbebd123258506174453d5f73d18d745819
[ "MIT" ]
14
2021-01-02T10:48:15.000Z
2022-03-18T17:18:31.000Z
src/compas_slicer/pre_processing/preprocessing_utils/compound_target.py
Spiritdude/compas_slicer
58dedfbebd123258506174453d5f73d18d745819
[ "MIT" ]
34
2021-01-19T10:33:09.000Z
2022-03-14T07:37:45.000Z
src/compas_slicer/pre_processing/preprocessing_utils/compound_target.py
compas-dev/compas_slicer
58dedfbebd123258506174453d5f73d18d745819
[ "MIT" ]
9
2021-01-02T10:49:09.000Z
2022-03-22T18:35:55.000Z
import numpy as np import math from compas.datastructures import Mesh import compas_slicer.utilities as utils import logging import networkx as nx from compas_slicer.slicers.slice_utilities import create_graph_from_mesh_vkeys from compas_slicer.pre_processing.preprocessing_utils.geodesics import get_igl_EXACT_geodesic_...
42.672026
131
0.644789
import numpy as np import math from compas.datastructures import Mesh import compas_slicer.utilities as utils import logging import networkx as nx from compas_slicer.slicers.slice_utilities import create_graph_from_mesh_vkeys from compas_slicer.pre_processing.preprocessing_utils.geodesics import get_igl_EXACT_geodesic_...
1,891
0
50
5df8cfab48c8a542b687ba3e02010cc5e9fd9c28
1,134
py
Python
new_app/models.py
2141040025/Aplicacion-CRUD-Django
e760e7e02db7a2a4841d899af0e199db60d804b7
[ "MIT" ]
null
null
null
new_app/models.py
2141040025/Aplicacion-CRUD-Django
e760e7e02db7a2a4841d899af0e199db60d804b7
[ "MIT" ]
null
null
null
new_app/models.py
2141040025/Aplicacion-CRUD-Django
e760e7e02db7a2a4841d899af0e199db60d804b7
[ "MIT" ]
null
null
null
#---------------------------------- # Models / new_app #---------------------------------- from django.db import models #------------------------------------------------------------------------- #------------------------------------------------------------------------- #-----------------------------------------...
28.35
74
0.561728
#---------------------------------- # Models / new_app #---------------------------------- from django.db import models #------------------------------------------------------------------------- class Profesor(models.Model): departamento = models.ForeignKey('Departamento') nombre = models.CharField(max_length=...
66
647
69
0a04442bce0b91eab5c47f08077b28c7f389a3b9
1,152
py
Python
mars/optimization/logical/chunk/core.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
1
2022-02-02T03:03:48.000Z
2022-02-02T03:03:48.000Z
mars/optimization/logical/chunk/core.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
mars/optimization/logical/chunk/core.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.315789
74
0.758681
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
288
0
46
55a1c2e8e33a01773c12f7d7af11c55f7b8e5f83
2,065
py
Python
caterpillar_log.py
redrose2100/caterpillar_log
c2782c4836cd817e58a9a3ff1548067453604986
[ "MulanPSL-1.0" ]
1
2021-12-02T05:34:43.000Z
2021-12-02T05:34:43.000Z
caterpillar_log.py
redrose2100/caterpillar_log
c2782c4836cd817e58a9a3ff1548067453604986
[ "MulanPSL-1.0" ]
null
null
null
caterpillar_log.py
redrose2100/caterpillar_log
c2782c4836cd817e58a9a3ff1548067453604986
[ "MulanPSL-1.0" ]
null
null
null
import logging import platform from pathlib import Path logger = Log("caterpillar_log")
42.142857
108
0.651332
import logging import platform from pathlib import Path class Log(object): def __init__(self, name="logger", console_level=logging.INFO, file_level=logging.INFO, log_fmt="%(asctime)s | %(levelname)s | %(pathname)s:%(lineno)s | %(message)s", log_dir=""): """ Log 类初始化函数 :pa...
0
2,053
23
fd38435ffe0a6ffb640283b85de483604576f371
613
py
Python
labs/sort04/sorted04.py
queenskid/MyCode
20756ebd1826ba7cb1cf9b06374e6aa568996bd1
[ "MIT" ]
3
2018-05-21T18:16:47.000Z
2018-05-23T16:45:04.000Z
labs/sort04/sorted04.py
queenskid/MyCode
20756ebd1826ba7cb1cf9b06374e6aa568996bd1
[ "MIT" ]
null
null
null
labs/sort04/sorted04.py
queenskid/MyCode
20756ebd1826ba7cb1cf9b06374e6aa568996bd1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 us_invasion = [{'ip':'10.10.1.2', 'un':'john', 'pw':'allstar'}, {'ip':'10.10.1.3', 'un':'paul', 'pw':'iils20s3'}, {'ip':'10.10.1.4', 'un':'george', 'pw':'hunkydoryzory'}, {'ip':'10.10.1.5', 'un':'stuart', 'pw':'alta3'}, {'ip':'10.10.1.6', 'un':'pete', 'pw':'a8dd827z3'}] listbyusername = sorted(...
40.866667
270
0.636215
#!/usr/bin/env python3 us_invasion = [{'ip':'10.10.1.2', 'un':'john', 'pw':'allstar'}, {'ip':'10.10.1.3', 'un':'paul', 'pw':'iils20s3'}, {'ip':'10.10.1.4', 'un':'george', 'pw':'hunkydoryzory'}, {'ip':'10.10.1.5', 'un':'stuart', 'pw':'alta3'}, {'ip':'10.10.1.6', 'un':'pete', 'pw':'a8dd827z3'}] def byUserName(x): r...
16
0
23
b210ee8b14926078d8a74fa81fafd9e32ebef3a1
1,104
py
Python
flaskapp/src/forms.py
manojnuvvala/smile_maker_proposal
4b5ab60ad229a7829f929da380e3707e74963c0c
[ "MIT" ]
null
null
null
flaskapp/src/forms.py
manojnuvvala/smile_maker_proposal
4b5ab60ad229a7829f929da380e3707e74963c0c
[ "MIT" ]
6
2021-11-08T14:15:29.000Z
2021-11-10T14:46:06.000Z
flaskapp/src/forms.py
manojnuvvala/smile_maker_proposal
4b5ab60ad229a7829f929da380e3707e74963c0c
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import ValidationError from wtforms.validators import Required, Email, EqualTo from wtforms import StringField, PasswordField, SubmitField from .models import User
32.470588
81
0.702899
from flask_wtf import FlaskForm from wtforms import ValidationError from wtforms.validators import Required, Email, EqualTo from wtforms import StringField, PasswordField, SubmitField from .models import User class RegistrationForm(FlaskForm): email = StringField("Your Email Address", validators=[Required(), Ema...
161
661
69
31053edd052434562fd40c778b05bed6ad5788bd
1,068
py
Python
Python3/362.design-hit-counter.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/362.design-hit-counter.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/362.design-hit-counter.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=362 lang=python3 # # [362] Design Hit Counter # import collections # @lc code=start # Your HitCounter object will be instantiated and called as such: # obj = HitCounter() # ls = [[1],[2],[3],[300],[301]] # for param in ls: # obj.hit(param[0]) # print(obj.q) # # param_2 = obj.getHits(t...
23.733333
74
0.568352
# # @lc app=leetcode id=362 lang=python3 # # [362] Design Hit Counter # import collections # @lc code=start class HitCounter: def __init__(self): """ Initialize your data structure here. """ self.data = collections.deque() def hit(self, timestamp: 'int') -> 'N...
0
700
22
ded2c09c9e6d9c88f165bbf17b8eb3d06f047025
1,080
py
Python
tkinter/thread-is_alive/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
tkinter/thread-is_alive/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
tkinter/thread-is_alive/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
# date: 2019.07.09 # https://stackoverflow.com/questions/56951383/tkinter-disable-buttons-while-thread-is-running/56953613#56953613 import tkinter as tk from threading import Thread import time #----------------------------------------------------- # counter displayed when thread is running counter ...
19.636364
112
0.585185
# date: 2019.07.09 # https://stackoverflow.com/questions/56951383/tkinter-disable-buttons-while-thread-is-running/56953613#56953613 import tkinter as tk from threading import Thread import time def long_running_function(): print('start sleep') time.sleep(3) print('end sleep') def start_thread(): glo...
558
0
70
5951381581d5be53a894913789659792e0670778
794
py
Python
libdoc_sample/MyLibrary.py
thinkAmi-sandbox/RobotFramework-sample
86455e912ac132350b8aacb430de9f060b9d722a
[ "Unlicense" ]
9
2017-12-20T23:10:33.000Z
2020-11-27T06:22:05.000Z
libdoc_sample/MyLibrary.py
thinkAmi-sandbox/RobotFramework-sample
86455e912ac132350b8aacb430de9f060b9d722a
[ "Unlicense" ]
1
2021-06-01T22:03:43.000Z
2021-06-01T22:03:43.000Z
libdoc_sample/MyLibrary.py
thinkAmi-sandbox/RobotFramework-sample
86455e912ac132350b8aacb430de9f060b9d722a
[ "Unlicense" ]
2
2018-05-21T00:16:11.000Z
2019-11-04T13:43:57.000Z
from robot.api import logger class MyLibrary: """マイライブラリ | =タイトル= | =もう一つタイトル= | | 1行1列目 | 1行2列目 | | | 1列目が空白 | | 2列目が空白 | | = カスタムセクション = ここがカスタムセクション = 次のセクション = `カスタムセクション` へのリンク セクションへのリンク - `introduction` - `importing` - `shortcuts` - `keywords` ...
14.178571
56
0.540302
from robot.api import logger class MyLibrary: """マイライブラリ | =タイトル= | =もう一つタイトル= | | 1行1列目 | 1行2列目 | | | 1列目が空白 | | 2列目が空白 | | = カスタムセクション = ここがカスタムセクション = 次のセクション = `カスタムセクション` へのリンク セクションへのリンク - `introduction` - `importing` - `shortcuts` - `keywords` ...
54
0
54
9537bc4d62126af3c4dd206e1dfaa74a82c40530
4,284
py
Python
Turnauswertung-py3/Turnauswertung/settings.py
naechtner/turn-events
2c71f8ceb5d6f8280c6c19a6467922a834ae0b02
[ "MIT" ]
null
null
null
Turnauswertung-py3/Turnauswertung/settings.py
naechtner/turn-events
2c71f8ceb5d6f8280c6c19a6467922a834ae0b02
[ "MIT" ]
11
2015-06-20T11:51:10.000Z
2017-01-09T07:09:04.000Z
Turnauswertung-py3/Turnauswertung/settings.py
naechtner/turn-events
2c71f8ceb5d6f8280c6c19a6467922a834ae0b02
[ "MIT" ]
null
null
null
""" Django settings for auswertung project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...)...
26.775
73
0.704248
""" Django settings for auswertung project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...)...
0
0
0
4c0de6ade1ec780ff6d7e01a203723368aba4aac
2,026
py
Python
homeassistant/components/telegram_bot/polling.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/telegram_bot/polling.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/telegram_bot/polling.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Support for Telegram bot using polling.""" import logging from telegram import Update from telegram.error import NetworkError, RetryAfter, TelegramError, TimedOut from telegram.ext import CallbackContext, TypeHandler, Updater from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP from...
33.213115
96
0.715202
"""Support for Telegram bot using polling.""" import logging from telegram import Update from telegram.error import NetworkError, RetryAfter, TelegramError, TimedOut from telegram.ext import CallbackContext, TypeHandler, Updater from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP from...
0
0
0
93f42d3bd93aa26629da14f358f8e057c18aa7ff
2,972
py
Python
HackerEarth_problems/Xenny and Partially Sorted Strings/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
HackerEarth_problems/Xenny and Partially Sorted Strings/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
HackerEarth_problems/Xenny and Partially Sorted Strings/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' Problem: Xenny and Partially Sorted Strings Accept number of testcases as t for each test case: Given 3 integers N, K, M for each test case. Do the following steps- Accept all N number of strings and store them in a list sort the list by only considering first m charcaters in every element of l...
51.241379
128
0.711642
''' Problem: Xenny and Partially Sorted Strings Accept number of testcases as t for each test case: Given 3 integers N, K, M for each test case. Do the following steps- Accept all N number of strings and store them in a list sort the list by only considering first m charcaters in every element of l...
0
0
0
f5e0368f160b8e1c7d9533f93c2f4c2fa8013e01
3,562
py
Python
store/api/handlers/query/available_orders.py
alexadastra/backendschool2021
9b51c70f1f7a9b5bec032c8b62ff35a33f614c67
[ "MIT" ]
null
null
null
store/api/handlers/query/available_orders.py
alexadastra/backendschool2021
9b51c70f1f7a9b5bec032c8b62ff35a33f614c67
[ "MIT" ]
null
null
null
store/api/handlers/query/available_orders.py
alexadastra/backendschool2021
9b51c70f1f7a9b5bec032c8b62ff35a33f614c67
[ "MIT" ]
null
null
null
from store.api.handlers.base import BaseView from http import HTTPStatus from typing import Generator from datetime import datetime from aiohttp.web_response import Response from aiohttp.web_exceptions import HTTPNotFound from aiohttp_apispec import docs, request_schema, response_schema from sqlalchemy import and_, or...
45.088608
119
0.686412
from store.api.handlers.base import BaseView from http import HTTPStatus from typing import Generator from datetime import datetime from aiohttp.web_response import Response from aiohttp.web_exceptions import HTTPNotFound from aiohttp_apispec import docs, request_schema, response_schema from sqlalchemy import and_, or...
2,770
79
23
5535fd9792414199f146a72f014a74bda5dbffd2
10,212
py
Python
NEST/second_level/src/topologies/extensor_cpg_concept_sbs.py
late-goodbye/memristive-spinal-cord
f6d7bca154fb4cab503f416fa01b8dc9b0a7d046
[ "MIT" ]
null
null
null
NEST/second_level/src/topologies/extensor_cpg_concept_sbs.py
late-goodbye/memristive-spinal-cord
f6d7bca154fb4cab503f416fa01b8dc9b0a7d046
[ "MIT" ]
null
null
null
NEST/second_level/src/topologies/extensor_cpg_concept_sbs.py
late-goodbye/memristive-spinal-cord
f6d7bca154fb4cab503f416fa01b8dc9b0a7d046
[ "MIT" ]
null
null
null
from enum import Enum from nest import Create, Connect from the_second_level.src.tools.multimeter import add_multimeter
34.734694
119
0.546906
from enum import Enum from nest import Create, Connect from the_second_level.src.tools.multimeter import add_multimeter class Params(Enum): NUM_SUBLEVELS = 6 NUM_SPIKES = 6 RATE = 40 SIMULATION_TIME = 175. INH_COEF = 1. PLOT_SLICES_SHIFT = 8. # ms TO_PLOT = { 'node1.1': 'Node 1.1'...
8,429
1,394
266
c5c8a2aac624541b391bc84ed88422229fdafc2d
2,109
py
Python
demisto_sdk/commands/common/content/tests/objects/abstract_objects/yaml_object_test.py
nericksen/demisto-sdk
27c870997597209f196a36358e30e896ca69fbb9
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/content/tests/objects/abstract_objects/yaml_object_test.py
nericksen/demisto-sdk
27c870997597209f196a36358e30e896ca69fbb9
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/content/tests/objects/abstract_objects/yaml_object_test.py
nericksen/demisto-sdk
27c870997597209f196a36358e30e896ca69fbb9
[ "MIT" ]
null
null
null
import pytest from demisto_sdk.commands.common.constants import PACKS_DIR, PLAYBOOKS_DIR from demisto_sdk.commands.common.content.errors import (ContentInitializeError, ContentSerializeError) from demisto_sdk.commands.common.content.objects.abstract_objects impor...
39.055556
104
0.705073
import pytest from demisto_sdk.commands.common.constants import PACKS_DIR, PLAYBOOKS_DIR from demisto_sdk.commands.common.content.errors import (ContentInitializeError, ContentSerializeError) from demisto_sdk.commands.common.content.objects.abstract_objects impor...
1,074
192
99
3e4d395c491972acbf25456942062fe1ab0efbe6
3,018
py
Python
tools/sparrow/binfiletool.py
sics-iot/sparrow
3ab386ccd80293928da7d5a98c2b7a9ef5fb96f9
[ "BSD-3-Clause" ]
26
2016-07-15T06:18:27.000Z
2021-12-15T19:54:49.000Z
tools/sparrow/binfiletool.py
sics-iot/sparrow
3ab386ccd80293928da7d5a98c2b7a9ef5fb96f9
[ "BSD-3-Clause" ]
34
2016-08-16T09:55:55.000Z
2018-02-19T09:53:47.000Z
tools/sparrow/binfiletool.py
sics-iot/sparrow
3ab386ccd80293928da7d5a98c2b7a9ef5fb96f9
[ "BSD-3-Clause" ]
16
2016-08-21T06:38:29.000Z
2021-11-28T22:02:44.000Z
#!/usr/bin/env python # # Copyright (c) 2016, SICS, Swedish ICT # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, t...
40.24
117
0.733267
#!/usr/bin/env python # # Copyright (c) 2016, SICS, Swedish ICT # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, t...
0
0
0
e161dd801ed9c09d1d2f4a17b19cd271ea31abb7
1,262
py
Python
libutils/primes.py
nicknaym530/android_system_core
9f6b99e7aa5eda0391f973a69e97921824de7502
[ "MIT" ]
8,865
2017-03-13T03:27:32.000Z
2022-03-31T12:57:44.000Z
libutils/primes.py
nicknaym530/android_system_core
9f6b99e7aa5eda0391f973a69e97921824de7502
[ "MIT" ]
359
2017-03-13T06:37:22.000Z
2022-01-27T14:31:43.000Z
libutils/primes.py
nicknaym530/android_system_core
9f6b99e7aa5eda0391f973a69e97921824de7502
[ "MIT" ]
1,709
2017-03-13T02:29:13.000Z
2022-03-31T12:57:48.000Z
#!/usr/bin/env python2.6 # # Copyright (C) 2011 The Android Open Source Project # # 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 ...
26.291667
75
0.684628
#!/usr/bin/env python2.6 # # Copyright (C) 2011 The Android Open Source Project # # 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 ...
112
0
23
78104853e3b07d47b418bdf8759412a8ee2b5fa5
2,175
py
Python
samples/patterns.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
samples/patterns.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
samples/patterns.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
""" In this file, I am messing around with using generator functions to handle things like pattern matching in LifeEventRules and timestep sizes when handling level-of-detail changes """ from abc import abstractmethod from typing import Generator, List, Protocol, Tuple from dataclasses import dataclass from neighborly....
24.438202
76
0.664368
""" In this file, I am messing around with using generator functions to handle things like pattern matching in LifeEventRules and timestep sizes when handling level-of-detail changes """ from abc import abstractmethod from typing import Generator, List, Protocol, Tuple from dataclasses import dataclass from neighborly....
1,130
277
136
42d22cceabcb1eaaaa88e412012bd0ae040d3ad4
3,228
py
Python
app/preprocessing_utils.py
Sylvariane/ncc-sezam
b0b24c14e07a774cc95e52a09d4a833fc68b955d
[ "MIT" ]
2
2021-10-16T08:16:01.000Z
2021-10-16T08:18:26.000Z
app/preprocessing_utils.py
Sylvariane/ncc-sezam
b0b24c14e07a774cc95e52a09d4a833fc68b955d
[ "MIT" ]
null
null
null
app/preprocessing_utils.py
Sylvariane/ncc-sezam
b0b24c14e07a774cc95e52a09d4a833fc68b955d
[ "MIT" ]
1
2021-12-20T19:16:48.000Z
2021-12-20T19:16:48.000Z
""" This file implements different preprocessing utils functions. """ import pandas as pd import re from stopwords import stopwords_nltk, stopwords_specific import spacy import unicodedata def preprocess_string(nlp, input_string): """ Wraps all operations to ensure common normalization. """ processed_...
27.12605
75
0.653036
""" This file implements different preprocessing utils functions. """ import pandas as pd import re from stopwords import stopwords_nltk, stopwords_specific import spacy import unicodedata def preprocess_string(nlp, input_string): """ Wraps all operations to ensure common normalization. """ processed_...
0
0
0
6a82091195b6c3c72d4d13558f0e7dd10bb2ea34
7,261
py
Python
model/modules/checkpoint_activations.py
RenShuhuai-Andy/WMT18-English-Chinese-Machine-Translation
509eb0ab423160784baaeb449033a7933dc58ced
[ "MIT" ]
8
2021-06-08T10:53:16.000Z
2022-03-30T11:13:48.000Z
hippop_transformer/model/modules/checkpoint_activations.py
RenShuhuai-Andy/HippopTransformer
1b8397b50b4ef35893c8dfa4e9f1efd9e7270540
[ "MIT" ]
null
null
null
hippop_transformer/model/modules/checkpoint_activations.py
RenShuhuai-Andy/HippopTransformer
1b8397b50b4ef35893c8dfa4e9f1efd9e7270540
[ "MIT" ]
1
2021-03-10T07:38:53.000Z
2021-03-10T07:38:53.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, List, Tuple, Union import torch import torch.utils.checkpoint as checkpoint from fairseq import utils def ch...
36.487437
98
0.652665
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict, List, Tuple, Union import torch import torch.utils.checkpoint as checkpoint from fairseq import utils def ch...
4,592
0
125
9a010192a9dd0a5c6d8fdfbb670fcd51a1b7877b
574
py
Python
civic_jabber_ingest/models/contact.py
civic-jabber/data-ingest
bf44c6041ad947547ceede535124c5db004d2f43
[ "MIT" ]
null
null
null
civic_jabber_ingest/models/contact.py
civic-jabber/data-ingest
bf44c6041ad947547ceede535124c5db004d2f43
[ "MIT" ]
26
2020-10-03T21:08:11.000Z
2020-12-22T22:39:35.000Z
civic_jabber_ingest/models/contact.py
civic-jabber/data-ingest
bf44c6041ad947547ceede535124c5db004d2f43
[ "MIT" ]
null
null
null
from dataclasses import dataclass from civic_jabber_ingest.models.base import DataModel from civic_jabber_ingest.utils.xml import get_jinja_template @dataclass
24.956522
60
0.695122
from dataclasses import dataclass from civic_jabber_ingest.models.base import DataModel from civic_jabber_ingest.utils.xml import get_jinja_template @dataclass class Contact(DataModel): first_name: str = None last_name: str = None agency: str = None address: str = None city: str = None state:...
146
243
22
d25229d1a0cc8a230825096b11afe272fdca3534
6,632
py
Python
tests/fixtures/doaj/e65469_doaj_json.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
tests/fixtures/doaj/e65469_doaj_json.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
tests/fixtures/doaj/e65469_doaj_json.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
# coding=utf-8 from collections import OrderedDict EXPECTED = OrderedDict( [ ( "bibjson", OrderedDict( [ ( "abstract", "The inflammatory environment of demyelinated lesions in multiple sclerosis (MS)...
54.809917
1,242
0.375452
# coding=utf-8 from collections import OrderedDict EXPECTED = OrderedDict( [ ( "bibjson", OrderedDict( [ ( "abstract", "The inflammatory environment of demyelinated lesions in multiple sclerosis (MS)...
0
0
0
a8e3224b84936329ff6db86c5a7e78635d188e74
869
py
Python
tensorflow_blade/tf_blade/util/tf2onnx_import_helper.py
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
328
2021-12-20T03:29:35.000Z
2022-03-31T14:27:23.000Z
tensorflow_blade/tf_blade/util/tf2onnx_import_helper.py
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
82
2021-12-20T09:15:16.000Z
2022-03-31T09:33:48.000Z
tensorflow_blade/tf_blade/util/tf2onnx_import_helper.py
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
66
2021-12-21T17:28:27.000Z
2022-03-29T12:08:34.000Z
# Copyright 2022 The BladeDISC 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 ...
37.782609
74
0.756041
# Copyright 2022 The BladeDISC 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 ...
0
0
0
782d2d0fd1174706f95dd685af843c816e06171a
803
py
Python
prophet_gcp/ml_engine_utils.py
SpikeLab-CL/paralell_prophet
c04b069ae27eb8645dd10e0cf9992415e585ba62
[ "WTFPL" ]
7
2018-10-18T18:06:27.000Z
2021-11-02T19:53:31.000Z
prophet_gcp/ml_engine_utils.py
SpikeLab-CL/paralell_prophet
c04b069ae27eb8645dd10e0cf9992415e585ba62
[ "WTFPL" ]
null
null
null
prophet_gcp/ml_engine_utils.py
SpikeLab-CL/paralell_prophet
c04b069ae27eb8645dd10e0cf9992415e585ba62
[ "WTFPL" ]
5
2020-01-23T22:03:00.000Z
2022-02-17T08:28:51.000Z
import subprocess import os import sys def download_file_from_storage(gs_file_path): """download a file from GCS into ml-engine running container Arguments: gs_ile_path: string path to the MOJO file. Returns: string: path of the downloaded file """ file_name = "{0}"...
32.12
92
0.646326
import subprocess import os import sys def download_file_from_storage(gs_file_path): """download a file from GCS into ml-engine running container Arguments: gs_ile_path: string path to the MOJO file. Returns: string: path of the downloaded file """ file_name = "{0}"...
0
0
0
a6f540a2b4b02a1e13ec399b8ca55d39e0adf3a7
1,506
py
Python
2017-04-06 - Pythonic Code Through 5 Examples/tip4_generators/gen.py
skolbin-ssi/WintellectWebinars
63612580c7c2f7d0c6dca930abba5696b2f40286
[ "Apache-2.0" ]
8
2019-01-24T19:22:29.000Z
2019-06-11T17:00:56.000Z
2017-04-06 - Pythonic Code Through 5 Examples/tip4_generators/gen.py
skolbin-ssi/WintellectWebinars
63612580c7c2f7d0c6dca930abba5696b2f40286
[ "Apache-2.0" ]
28
2021-03-10T08:24:07.000Z
2022-03-02T07:26:39.000Z
2017-04-06 - Pythonic Code Through 5 Examples/tip4_generators/gen.py
skolbin-ssi/WintellectWebinars
63612580c7c2f7d0c6dca930abba5696b2f40286
[ "Apache-2.0" ]
2
2018-01-23T11:24:44.000Z
2019-06-06T18:27:32.000Z
import csv import os from purchases import Purchase if __name__ == '__main__': main()
18.825
71
0.549137
import csv import os from purchases import Purchase def fibonacci_blocking(limit): nums = [] current, nxt = 0, 1 for _ in range(1, limit): current, nxt = nxt, current + nxt nums.append(current) return nums def fibonacci(): current, nxt = 0, 1 while True: current, nx...
1,317
0
92
f204c48ff95fbc3bd96c2c4fa5b53379356e0442
4,632
py
Python
models/gpu_model.py
jdp527/DL_Text_Classification
b354c3523f39deab64ad6d574e5847332ad8390c
[ "MIT" ]
24
2018-04-14T20:08:46.000Z
2021-08-01T09:06:47.000Z
models/gpu_model.py
jdp527/DL_Text_Classification
b354c3523f39deab64ad6d574e5847332ad8390c
[ "MIT" ]
2
2018-04-21T19:36:18.000Z
2018-04-28T22:31:20.000Z
models/gpu_model.py
jdp527/DL_Text_Classification
b354c3523f39deab64ad6d574e5847332ad8390c
[ "MIT" ]
2
2018-05-15T05:38:29.000Z
2019-09-03T10:08:12.000Z
''' Collection of Text Classification Keras Algorithms for Toxic Comment Classification Challenge. https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge ''' # Keras from keras.layers import (Dense, Input, Bidirectional, Activation, Dropout, Embedding, Flatten, CuDNNLSTM, CuDNNGRU, ...
38.92437
116
0.682211
''' Collection of Text Classification Keras Algorithms for Toxic Comment Classification Challenge. https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge ''' # Keras from keras.layers import (Dense, Input, Bidirectional, Activation, Dropout, Embedding, Flatten, CuDNNLSTM, CuDNNGRU, ...
0
0
0
10fc1af9e52081f2aa8dc9407d8ad7c4a5b2e7c5
9,415
py
Python
chat_server.py
nixpal/Terminal-ChatServer
2447ba2db220c7fd3092fee957de264d20b89124
[ "MIT" ]
null
null
null
chat_server.py
nixpal/Terminal-ChatServer
2447ba2db220c7fd3092fee957de264d20b89124
[ "MIT" ]
null
null
null
chat_server.py
nixpal/Terminal-ChatServer
2447ba2db220c7fd3092fee957de264d20b89124
[ "MIT" ]
1
2021-07-23T02:57:41.000Z
2021-07-23T02:57:41.000Z
#!/usr/bin/python import socket from thread import * import threading from terminaltables import AsciiTable from chat_module import * reset="\033[0;0m" red="\033[38;5;9m" byellow="\033[38;5;3m" yellowb="\033[38;5;11m" blue="\033[38;5;27m" purple="\033[1;33;35m" cyan="\033[38;5;6m" white="\033[38;5;7m" orange="\033[3...
32.91958
149
0.481041
#!/usr/bin/python import socket from thread import * import threading from terminaltables import AsciiTable from chat_module import * reset="\033[0;0m" red="\033[38;5;9m" byellow="\033[38;5;3m" yellowb="\033[38;5;11m" blue="\033[38;5;27m" purple="\033[1;33;35m" cyan="\033[38;5;6m" white="\033[38;5;7m" orange="\033[3...
7,937
0
138
cea009eb8599a0f7cad6fdba7b5641d450f7c636
52,451
py
Python
korok.py
spiolynn/log-processing
dbc99a97b7a1163d6e1bb3e6e47b9d47df69578b
[ "MIT" ]
3
2019-07-15T00:42:07.000Z
2019-07-29T07:32:01.000Z
korok.py
spiolynn/log-processing
dbc99a97b7a1163d6e1bb3e6e47b9d47df69578b
[ "MIT" ]
null
null
null
korok.py
spiolynn/log-processing
dbc99a97b7a1163d6e1bb3e6e47b9d47df69578b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/7/11 10:32 # @Author : hoo # @Site : # @File : korok.py # @Software: PyCharm Community Edition ''' 2019/7/9 : 日志清理脚本 ''' import codecs import glob import traceback import tarfile import subprocess import sys import datetime import time import shutil import os import l...
35.705242
116
0.480029
# -*- coding: utf-8 -*- # @Time : 2019/7/11 10:32 # @Author : hoo # @Site : # @File : korok.py # @Software: PyCharm Community Edition ''' 2019/7/9 : 日志清理脚本 ''' import codecs import glob import traceback import tarfile import subprocess import sys import datetime import time import shutil import os import l...
38,718
11,678
46
172e48614760c2fed05e8b7e2fafcdcdf70e7a08
264
py
Python
imgaug/tests/doc_test.py
costajob/image_augmenter
a39a1b62c02526573788d691b94eee7ad13d49e9
[ "MIT" ]
2
2019-10-26T21:44:01.000Z
2020-11-12T06:32:17.000Z
imgaug/tests/doc_test.py
costajob/image_augmenter
a39a1b62c02526573788d691b94eee7ad13d49e9
[ "MIT" ]
6
2019-10-23T08:34:55.000Z
2022-03-11T23:42:27.000Z
imgaug/tests/doc_test.py
costajob/image_augmenter
a39a1b62c02526573788d691b94eee7ad13d49e9
[ "MIT" ]
null
null
null
import doctest from pkgutil import iter_modules
26.4
82
0.69697
import doctest from pkgutil import iter_modules def load_tests(loader, tests, ignore): modules = [name for _, name, _ in iter_modules(['imgaug']) if name != 'tests'] for mod in modules: tests.addTests(doctest.DocTestSuite(mod)) return tests
191
0
23
d2e168284d43ab79217bafd2f060d67b9b6df3e8
317
py
Python
tfpromote/version.py
billtrust/terraform-promote
bd54fc8aaef6988bc2ce0ab14ddde077f133c0b7
[ "MIT" ]
4
2020-12-17T05:47:58.000Z
2022-03-16T13:46:34.000Z
tfpromote/version.py
billtrust/terraform-promote
bd54fc8aaef6988bc2ce0ab14ddde077f133c0b7
[ "MIT" ]
null
null
null
tfpromote/version.py
billtrust/terraform-promote
bd54fc8aaef6988bc2ce0ab14ddde077f133c0b7
[ "MIT" ]
null
null
null
__version__ = '0.2.9' __title__ = 'tfpromote' __description__ = 'Compare and promote Terraform files from dev to prod environments.' __url__ = 'https://github.com/billtrust/terraform-promote' __author__ = 'Doug Kerwin' __author_email__ = 'dkerwin@billtrust.com' __license__ = 'MIT' __keywords__ = ['terraform']
39.625
87
0.753943
__version__ = '0.2.9' __title__ = 'tfpromote' __description__ = 'Compare and promote Terraform files from dev to prod environments.' __url__ = 'https://github.com/billtrust/terraform-promote' __author__ = 'Doug Kerwin' __author_email__ = 'dkerwin@billtrust.com' __license__ = 'MIT' __keywords__ = ['terraform']
0
0
0
feaea07a171ac30bdc6ccc6ffccc971901356e5f
5,106
py
Python
zorg_emic/emic2.py
zorg-framework/zorg-emic
34d49897131cf7773b2b0f46e1e0a796911144e3
[ "MIT" ]
3
2016-03-25T15:40:11.000Z
2017-04-22T03:05:16.000Z
zorg_emic/emic2.py
zorg-framework/zorg-emic
34d49897131cf7773b2b0f46e1e0a796911144e3
[ "MIT" ]
null
null
null
zorg_emic/emic2.py
zorg-framework/zorg-emic
34d49897131cf7773b2b0f46e1e0a796911144e3
[ "MIT" ]
null
null
null
from zorg.driver import Driver from multiprocessing import Queue from threading import Thread import time
27.75
75
0.533294
from zorg.driver import Driver from multiprocessing import Queue from threading import Thread import time class Emic2(Driver): def __init__(self, options, connection): super(Emic2, self).__init__(options, connection) self.currentAction = 'idle' self.queue = Queue() self.thread = ...
1,367
3,609
23
c9e06b3be13469f6ff313565de884b77d100f2da
28,760
py
Python
jumpscale/sals/vdc/proxy.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/sals/vdc/proxy.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/sals/vdc/proxy.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
import random import uuid import os import gevent from jumpscale.clients.explorer.models import NextAction, WorkloadType from jumpscale.loader import j from jumpscale.sals.reservation_chatflow import deployer from jumpscale.sals.reservation_chatflow.deployer import DeploymentFailed from .base_component import VDCBase...
41.500722
178
0.578999
import random import uuid import os import gevent from jumpscale.clients.explorer.models import NextAction, WorkloadType from jumpscale.loader import j from jumpscale.sals.reservation_chatflow import deployer from jumpscale.sals.reservation_chatflow.deployer import DeploymentFailed from .base_component import VDCBase...
17,885
9,584
23
19dfbf03a31338c1c9570f4f0c2a4a31c04fc290
1,496
py
Python
urmovie/urls.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/urls.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
urmovie/urls.py
xuyangliu/UR
8a3c94dd6b6f16bf233167333464c0429ad269d8
[ "Apache-2.0" ]
null
null
null
"""UR URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based view...
40.432432
94
0.70254
"""UR URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based view...
0
0
0
660211f47fb3b9811a63ab733b4ba1b3c7297670
341
py
Python
final.py
tecind/wallpaper-changer
ffe65da635f5c59548ebd1d238ac748070f3cde7
[ "MIT" ]
null
null
null
final.py
tecind/wallpaper-changer
ffe65da635f5c59548ebd1d238ac748070f3cde7
[ "MIT" ]
null
null
null
final.py
tecind/wallpaper-changer
ffe65da635f5c59548ebd1d238ac748070f3cde7
[ "MIT" ]
null
null
null
import os from os.path import isfile, join import time import ctypes folderpath = r"E:\All Projects\Auto Wallpaper" all_files = [ f for f in os.listdir(folderpath) if isfile(join(folderpath, f))] for image in all_files: print(image) ctypes.windll.user32.SystemParametersInfoW(20, 0, folderpath+ "\\" + image, ...
24.357143
82
0.72434
import os from os.path import isfile, join import time import ctypes folderpath = r"E:\All Projects\Auto Wallpaper" all_files = [ f for f in os.listdir(folderpath) if isfile(join(folderpath, f))] for image in all_files: print(image) ctypes.windll.user32.SystemParametersInfoW(20, 0, folderpath+ "\\" + image, ...
0
0
0
06cb52e8eb547edf7ac66c5c42b3c1cc2c4098ba
7,779
py
Python
data/experiments/sock-echo/post-processing/plot_results.py
di-unipi-socc/yRCA
9c75df2fb38a8bff198885008216eb644ccaf734
[ "Apache-2.0" ]
null
null
null
data/experiments/sock-echo/post-processing/plot_results.py
di-unipi-socc/yRCA
9c75df2fb38a8bff198885008216eb644ccaf734
[ "Apache-2.0" ]
null
null
null
data/experiments/sock-echo/post-processing/plot_results.py
di-unipi-socc/yRCA
9c75df2fb38a8bff198885008216eb644ccaf734
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import os import re plotsDir = "plots" # function to add an output, if experiment and value are both defined # function to parse a csv timeFile # with lines s.t. "experiment,logFile,elapsedTime,fileSize,timePerMB" # function to adapt a given "experimentValue" # - ...
33.675325
114
0.59185
import matplotlib.pyplot as plt import numpy as np import os import re plotsDir = "plots" def parseOutputs(outputsFile): out = { } out["count"] = {} out["roots"] = {} out["accuracy"] = {} outputs = open(outputsFile) experiment = None value = None count = None nFailures = None ...
6,011
0
156
ed9343bfb5b3ee8263500da7447ed1563a0c1cf8
10,469
py
Python
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
1
2022-02-18T16:31:27.000Z
2022-02-18T16:31:27.000Z
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
tutorials/05-dcr/plot_fwd_2_dcr2d.py
ElliotCheung/simpeg
ce5bde154179ca63798a62a12787a7ec3535472c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ DC Resistivity Forward Simulation in 2.5D ========================================= Here we use the module *SimPEG.electromagnetics.static.resistivity* to predict DC resistivity data and plot using a pseudosection. In this tutorial, we focus on the following: - How to define the survey...
31.250746
88
0.66845
# -*- coding: utf-8 -*- """ DC Resistivity Forward Simulation in 2.5D ========================================= Here we use the module *SimPEG.electromagnetics.static.resistivity* to predict DC resistivity data and plot using a pseudosection. In this tutorial, we focus on the following: - How to define the survey...
0
0
0
e37e584958a6aca16c3f35896e29d1a83d9ee805
1,023
py
Python
tools/clang-tidy.py
qftphys/Simulate-the-non-equilibrium-dynamics-of-Fermionic-systems
48d36fecbe4bc12af90f104cdf1f9f68352c508c
[ "MIT" ]
2
2021-01-18T14:35:43.000Z
2022-03-22T15:12:49.000Z
tools/clang-tidy.py
f-koehler/ieompp
48d36fecbe4bc12af90f104cdf1f9f68352c508c
[ "MIT" ]
null
null
null
tools/clang-tidy.py
f-koehler/ieompp
48d36fecbe4bc12af90f104cdf1f9f68352c508c
[ "MIT" ]
null
null
null
#!/bin/env python3 from os import walk from os.path import abspath, dirname, join, realpath, splitext from subprocess import call from sys import argv, stderr checks = [ "clang-analyzer-*", "cppcoreguidelines-*", "llvm-namespace-comment", "modernize-*", "performance-*", "readability-*", ] if _...
26.230769
80
0.514174
#!/bin/env python3 from os import walk from os.path import abspath, dirname, join, realpath, splitext from subprocess import call from sys import argv, stderr checks = [ "clang-analyzer-*", "cppcoreguidelines-*", "llvm-namespace-comment", "modernize-*", "performance-*", "readability-*", ] if _...
0
0
0
9953aba771c62a8b944af6fde0c4471fab6ddade
2,949
py
Python
simclr/datasets.py
k-stacke/ssl-pathology
d440ce11712a5c1b6631d698dc3cafe7c04e2786
[ "Apache-2.0" ]
2
2021-12-22T15:18:02.000Z
2022-03-10T11:46:38.000Z
simclr/datasets.py
k-stacke/ssl-pathology
d440ce11712a5c1b6631d698dc3cafe7c04e2786
[ "Apache-2.0" ]
null
null
null
simclr/datasets.py
k-stacke/ssl-pathology
d440ce11712a5c1b6631d698dc3cafe7c04e2786
[ "Apache-2.0" ]
null
null
null
import random from PIL import Image import lmdb import h5py import numpy as np import torch from torch.utils.data import Dataset import torchvision from torchvision.transforms import transforms
28.631068
95
0.596134
import random from PIL import Image import lmdb import h5py import numpy as np import torch from torch.utils.data import Dataset import torchvision from torchvision.transforms import transforms class ImagePatchesDataset(Dataset): def __init__(self, opt, dataframe, image_dir, transform=None, label_enum=None): ...
1,894
703
153
46359266b32939e9cfad0757def494294aa7883d
11,105
py
Python
datasets/augments.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
datasets/augments.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
datasets/augments.py
milesgray/ImageFunctions
35e4423b94149b0ba291eafb0cd98260a70d5f31
[ "Apache-2.0" ]
null
null
null
import pathlib import numbers import random from typing import Any, Optional import numpy as np import torch from torch import Tensor from torch.jit.annotations import List, Tuple import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader from torchvision import transforms import torchvision.data...
37.140468
140
0.585592
import pathlib import numbers import random from typing import Any, Optional import numpy as np import torch from torch import Tensor from torch.jit.annotations import List, Tuple import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader from torchvision import transforms import torchvision.data...
4,263
3,838
312
a8405610799ce8775ba88ab0f6c2fc30b7ca9b2a
3,389
py
Python
examples/raw_data_processing/a_02_basic_filters.py
NREL/flasc
ac734892efc1bc7684e2393ffa1ce7a97a54efa1
[ "Apache-2.0" ]
3
2022-01-23T19:33:32.000Z
2022-03-14T10:29:36.000Z
examples/raw_data_processing/a_02_basic_filters.py
NREL/flasc
ac734892efc1bc7684e2393ffa1ce7a97a54efa1
[ "Apache-2.0" ]
2
2022-03-02T20:45:30.000Z
2022-03-22T18:49:24.000Z
examples/raw_data_processing/a_02_basic_filters.py
NREL/flasc
ac734892efc1bc7684e2393ffa1ce7a97a54efa1
[ "Apache-2.0" ]
4
2022-02-17T18:40:36.000Z
2022-03-24T05:44:31.000Z
# Copyright 2021 NREL # 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, software # distri...
37.655556
79
0.680732
# Copyright 2021 NREL # 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, software # distri...
287
0
23
4e8a26df0a152db97762d1ac8668ece5643de1eb
4,878
py
Python
scrappybara/langmodel/language_model.py
cd109/scrappybara
691385e3eb18eac4c5bec58950166b4c03c75a4b
[ "MIT" ]
null
null
null
scrappybara/langmodel/language_model.py
cd109/scrappybara
691385e3eb18eac4c5bec58950166b4c03c75a4b
[ "MIT" ]
null
null
null
scrappybara/langmodel/language_model.py
cd109/scrappybara
691385e3eb18eac4c5bec58950166b4c03c75a4b
[ "MIT" ]
1
2020-10-20T03:36:59.000Z
2020-10-20T03:36:59.000Z
import math from scrappybara.langmodel.token_context import TokenContext from scrappybara.preprocessing.tokenizer import Tokenizer from scrappybara.utils.files import txt_file_reader from scrappybara.utils.mutables import append_to_dict_list
44.345455
111
0.616851
import math from scrappybara.langmodel.token_context import TokenContext from scrappybara.preprocessing.tokenizer import Tokenizer from scrappybara.utils.files import txt_file_reader from scrappybara.utils.mutables import append_to_dict_list class LanguageModel(object): def __init__(self, *min_counts): ...
819
3,792
23
066f467a09fc460769496e0b2d2881cc8b22ebdf
10,036
py
Python
py/instalog/plugins/input_socket.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/instalog/plugins/input_socket.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/instalog/plugins/input_socket.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
#!/usr/bin/env python3 # # Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Input socket plugin. Waits for events from an output socket plugin running on another Instalog node. See socket_common.py fo...
32.478964
80
0.65564
#!/usr/bin/env python3 # # Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Input socket plugin. Waits for events from an output socket plugin running on another Instalog node. See socket_common.py fo...
425
2,876
48
72af4e1f9e46cb1826d0b6d934a94d322b2baf6f
669
py
Python
attic/gym_copter/__init__.py
sendera99/gym-copter
08ac2bc4e7e43a58d93af14f7a618a9bdda78e79
[ "MIT" ]
14
2019-11-03T05:17:46.000Z
2022-02-26T05:37:32.000Z
attic/gym_copter/__init__.py
sendera99/gym-copter
08ac2bc4e7e43a58d93af14f7a618a9bdda78e79
[ "MIT" ]
77
2020-05-17T01:56:29.000Z
2021-06-19T02:46:52.000Z
attic/gym_copter/__init__.py
sendera99/gym-copter
08ac2bc4e7e43a58d93af14f7a618a9bdda78e79
[ "MIT" ]
6
2020-01-01T07:22:15.000Z
2021-05-11T17:45:33.000Z
''' Copyright (C) 2019 Simon D. Levy MIT License ''' from gym.envs.registration import register register( id='Lander-v0', entry_point='gym_copter.envs:Lander2D', max_episode_steps=2000 ) register( id='Lander3D-v0', entry_point='gym_copter.envs:Lander3D', max_episode_steps=20...
17.605263
52
0.665172
''' Copyright (C) 2019 Simon D. Levy MIT License ''' from gym.envs.registration import register register( id='Lander-v0', entry_point='gym_copter.envs:Lander2D', max_episode_steps=2000 ) register( id='Lander3D-v0', entry_point='gym_copter.envs:Lander3D', max_episode_steps=20...
0
0
0
7f73ad566fc4754a6ab01da18fd42eede682a194
12,890
py
Python
tests/evolve_population.py
sebastiengilbert73/gp_stop_signs
651170d2be05bc08869e1990b98a8292dc6a1799
[ "MIT" ]
1
2021-12-18T23:22:11.000Z
2021-12-18T23:22:11.000Z
tests/evolve_population.py
sebastiengilbert73/gp_stop_signs
651170d2be05bc08869e1990b98a8292dc6a1799
[ "MIT" ]
null
null
null
tests/evolve_population.py
sebastiengilbert73/gp_stop_signs
651170d2be05bc08869e1990b98a8292dc6a1799
[ "MIT" ]
null
null
null
import ast import logging import argparse import xml.etree.ElementTree as ET import cv2 import vision_genprog.tasks.image_processing as image_processing import vision_genprog.semanticSegmentersPop as semanticSegmentersPop import os import ast import synthetic_heatmap.generators.stop_sign as stop_sign logging.basicConf...
57.544643
214
0.723662
import ast import logging import argparse import xml.etree.ElementTree as ET import cv2 import vision_genprog.tasks.image_processing as image_processing import vision_genprog.semanticSegmentersPop as semanticSegmentersPop import os import ast import synthetic_heatmap.generators.stop_sign as stop_sign logging.basicConf...
8,854
0
92
a8ce1c766bdc35aa3ff590928db9ee364e92c9bf
1,355
py
Python
perplex/console.py
ofek/perplex
339284ac7c54500ebf15eadbeb721d079b61f017
[ "Apache-2.0", "MIT" ]
null
null
null
perplex/console.py
ofek/perplex
339284ac7c54500ebf15eadbeb721d079b61f017
[ "Apache-2.0", "MIT" ]
1
2019-02-04T03:55:43.000Z
2019-02-04T03:55:43.000Z
perplex/console.py
ofek/perplex
339284ac7c54500ebf15eadbeb721d079b61f017
[ "Apache-2.0", "MIT" ]
null
null
null
import sys from textwrap import indent as __indent_text import click CONTEXT_SETTINGS = {'help_option_names': ['-h', '--help']} UNKNOWN_OPTIONS = {'help_option_names': [], 'ignore_unknown_options': True} DEFAULT_INDENT = 4
27.653061
84
0.672325
import sys from textwrap import indent as __indent_text import click CONTEXT_SETTINGS = {'help_option_names': ['-h', '--help']} UNKNOWN_OPTIONS = {'help_option_names': [], 'ignore_unknown_options': True} DEFAULT_INDENT = 4 def indent_text(text, indent): return __indent_text(text, ' ' * (DEFAULT_INDENT if indent...
962
0
161
9579172d20e06597026d0e3b84c37a566bf42c90
5,503
py
Python
warpseq/notation/note_parser.py
simian-terminal/warpseq
f61e68d1e6a9ad15a5e0c899237be784bcff7093
[ "Apache-2.0" ]
3
2021-01-22T01:20:20.000Z
2022-03-10T20:58:42.000Z
warpseq/notation/note_parser.py
simianterminal/warpseq
f61e68d1e6a9ad15a5e0c899237be784bcff7093
[ "Apache-2.0" ]
1
2020-08-13T00:28:28.000Z
2020-08-13T00:28:28.000Z
warpseq/notation/note_parser.py
simianterminal/warpseq
f61e68d1e6a9ad15a5e0c899237be784bcff7093
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------ # Warp Sequencer # (C) 2020 Michael DeHaan <michael@michaeldehaan.net> & contributors # Apache2 Licensed # ------------------------------------------------------------------ # uses the code in smart.py or literal.py to evaluate a symbol that # might ...
29.116402
126
0.531528
# ------------------------------------------------------------------ # Warp Sequencer # (C) 2020 Michael DeHaan <michael@michaeldehaan.net> & contributors # Apache2 Licensed # ------------------------------------------------------------------ # uses the code in smart.py or literal.py to evaluate a symbol that # might ...
2,065
2,257
46
825bbdd6e2c230a5f9d91998cf96c86e20e2c234
10,887
py
Python
cogs/fun/serverinfo.py
noaione/naoTimes
39f3f1ae434baf4ff9f3ed4a19cbfd69f76f881d
[ "MIT" ]
5
2019-06-14T01:29:46.000Z
2021-02-08T08:21:24.000Z
cogs/fun/serverinfo.py
naoTimesdev/naoTimes
39f3f1ae434baf4ff9f3ed4a19cbfd69f76f881d
[ "MIT" ]
21
2021-03-26T08:31:45.000Z
2022-03-26T10:15:25.000Z
cogs/fun/serverinfo.py
noaione/naoTimes
39f3f1ae434baf4ff9f3ed4a19cbfd69f76f881d
[ "MIT" ]
4
2019-06-26T14:18:09.000Z
2021-02-08T08:21:39.000Z
import logging from typing import Literal import arrow import discord from discord.ext import commands from naotimes.bot import naoTimesBot from naotimes.context import naoTimesContext from naotimes.converters import StealedEmote IconLiteral = Literal[ "mfa_none", "mfa_low", "mfa_medium", "mfa_high...
42.034749
141
0.604758
import logging from typing import Literal import arrow import discord from discord.ext import commands from naotimes.bot import naoTimesBot from naotimes.context import naoTimesContext from naotimes.converters import StealedEmote def humanize_size(num, mul=1024.0, suffix="B"): for unit in ["", "Ki", "Mi", "Gi",...
10,309
303
92
22fe8140a853e2665e9f05c4d14792ff02e2d81a
4,702
py
Python
osbot_aws/helpers/Lambda_Package.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
osbot_aws/helpers/Lambda_Package.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
osbot_aws/helpers/Lambda_Package.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
import os import importlib import pbx_gs_python_utils # needed for dependency import from osbot_aws.Globals import Globals from pbx_gs_python_utils.utils.Files import Files from osbot_aws.tmp_utils.Temp_Files import Temp_Files from osbot_aws.apis.Lambda import Lamb...
42.36036
151
0.618248
import os import importlib import pbx_gs_python_utils # needed for dependency import from osbot_aws.Globals import Globals from pbx_gs_python_utils.utils.Files import Files from osbot_aws.tmp_utils.Temp_Files import Temp_Files from osbot_aws.apis.Lambda import Lamb...
3,689
595
23
51839f269df7ae03472ba65de055ebac95e5ea7b
6,480
py
Python
dji_asdk_to_python/mission_control/waypoint/waypoint_mission_operator.py
msanchezc/dji-asdk-to-python
cf3e56691524624314a28f5ebc6f3f59cbd4d8cb
[ "BSD-3-Clause" ]
null
null
null
dji_asdk_to_python/mission_control/waypoint/waypoint_mission_operator.py
msanchezc/dji-asdk-to-python
cf3e56691524624314a28f5ebc6f3f59cbd4d8cb
[ "BSD-3-Clause" ]
null
null
null
dji_asdk_to_python/mission_control/waypoint/waypoint_mission_operator.py
msanchezc/dji-asdk-to-python
cf3e56691524624314a28f5ebc6f3f59cbd4d8cb
[ "BSD-3-Clause" ]
2
2021-01-05T13:25:25.000Z
2022-01-29T06:02:35.000Z
from dji_asdk_to_python.utils.message_builder import MessageBuilder from dji_asdk_to_python.errors import DJIError from dji_asdk_to_python.utils.shared import checkParameters from dji_asdk_to_python.utils.socket_utils import SocketUtils
30.280374
117
0.605401
from dji_asdk_to_python.utils.message_builder import MessageBuilder from dji_asdk_to_python.errors import DJIError from dji_asdk_to_python.utils.shared import checkParameters from dji_asdk_to_python.utils.socket_utils import SocketUtils class WaypointMissionOperator: def __init__(self, app_ip): self.app_i...
35
6,184
23
69629f19814a96f977f1888e6f76aeae98a42e1a
1,065
py
Python
plunk/sb/pydantic_for_front/pydantic_streamlit_input.py
otosense/plunk
dccce4fcac548d937147de7d05639ead66fe5ef3
[ "Apache-2.0" ]
null
null
null
plunk/sb/pydantic_for_front/pydantic_streamlit_input.py
otosense/plunk
dccce4fcac548d937147de7d05639ead66fe5ef3
[ "Apache-2.0" ]
1
2022-02-07T22:25:53.000Z
2022-02-07T22:25:53.000Z
plunk/sb/pydantic_for_front/pydantic_streamlit_input.py
otosense/plunk
dccce4fcac548d937147de7d05639ead66fe5ef3
[ "Apache-2.0" ]
null
null
null
# streamlit run pydantic_streamlit_input.py import streamlit as st from pydantic import BaseModel from typing import List, Dict import streamlit_pydantic as sp from pydantic import BaseModel, Field, HttpUrl from enum import Enum st.title("Use of pydantic for complex inputs") data = sp.pydantic_input(key="my_form"...
22.659574
64
0.676995
# streamlit run pydantic_streamlit_input.py import streamlit as st from pydantic import BaseModel from typing import List, Dict import streamlit_pydantic as sp from pydantic import BaseModel, Field, HttpUrl from enum import Enum class SelectionValue(str, Enum): FOO = "foo" BAR = "bar" class NestedData(Base...
0
626
69
265958c170e78d4c4ebdf0d711457cfd0edddbb5
2,638
py
Python
src/openlets/settings/__init__.py
dnephin/openLETS
e5d14de1c4483dc2c47900ce521151c39b881543
[ "BSD-3-Clause" ]
6
2015-10-30T08:08:42.000Z
2021-07-26T17:12:08.000Z
src/openlets/settings/__init__.py
dnephin/openLETS
e5d14de1c4483dc2c47900ce521151c39b881543
[ "BSD-3-Clause" ]
null
null
null
src/openlets/settings/__init__.py
dnephin/openLETS
e5d14de1c4483dc2c47900ce521151c39b881543
[ "BSD-3-Clause" ]
4
2017-09-21T20:07:07.000Z
2020-10-18T02:32:14.000Z
# Django settings for openlets project. import os # Environment path should match settings/<module name> ENVIRONMENT = os.environ.get('OPENLETS_ENV', 'dev') if ENVIRONMENT == 'dev': from .dev import * elif ENVIRONMENT == 'stage': from .stage import * elif ENVIRONMENT == 'prod': from .prod import * else: raise Imp...
28.989011
79
0.756255
# Django settings for openlets project. import os # Environment path should match settings/<module name> ENVIRONMENT = os.environ.get('OPENLETS_ENV', 'dev') if ENVIRONMENT == 'dev': from .dev import * elif ENVIRONMENT == 'stage': from .stage import * elif ENVIRONMENT == 'prod': from .prod import * else: raise Imp...
0
0
0
6e5e38a416d68035c6732c4ed32a7568bd3dcd82
1,137
py
Python
lightly/models/__init__.py
lightly-ai/lightly
0b98bda640d13d842fd13f9354271d0cef116ba5
[ "MIT" ]
1,515
2020-10-05T13:04:17.000Z
2022-03-31T16:14:55.000Z
lightly/models/__init__.py
lightly-ai/lightly
0b98bda640d13d842fd13f9354271d0cef116ba5
[ "MIT" ]
628
2020-10-14T11:38:51.000Z
2022-03-31T14:40:54.000Z
lightly/models/__init__.py
lightly-ai/lightly
0b98bda640d13d842fd13f9354271d0cef116ba5
[ "MIT" ]
108
2020-10-17T08:31:06.000Z
2022-03-20T16:44:22.000Z
"""The lightly.models package provides model implementations. *Note that the high-level building blocks will be deprecated with lightly version 1.2.0. Instead, use low-level building blocks to build the models yourself. Have a look at the benchmark code to see a reference implementation:* `lightly benchmarks <https:...
37.9
112
0.819701
"""The lightly.models package provides model implementations. *Note that the high-level building blocks will be deprecated with lightly version 1.2.0. Instead, use low-level building blocks to build the models yourself. Have a look at the benchmark code to see a reference implementation:* `lightly benchmarks <https:...
0
0
0
b5698f415ec536a1b26ca4dda1be8db3b1ca905e
227
py
Python
commands/lcd.py
bad-hombres/thug-shell
02aabd0c3023ac84b24077fc963fe1a35f0298e7
[ "MIT" ]
null
null
null
commands/lcd.py
bad-hombres/thug-shell
02aabd0c3023ac84b24077fc963fe1a35f0298e7
[ "MIT" ]
null
null
null
commands/lcd.py
bad-hombres/thug-shell
02aabd0c3023ac84b24077fc963fe1a35f0298e7
[ "MIT" ]
null
null
null
import os def server_lcd(cmd, data): """Changes the local directory Usage: lcd /dir """ pass
11.947368
36
0.581498
import os def client_lcd(cmd): pass def server_lcd(cmd, data): """Changes the local directory Usage: lcd /dir """ pass def server_lcd_custom(cmd): d = " ".join(cmd.split(" ")[1:]) os.chdir(d)
67
0
46
0c55fcc0a8d78ae463daee6c916428383f8d0bd4
1,337
py
Python
tdw_image_dataset/image_position.py
alters-mit/tdw_image_dataset
1f6fccaa8057080c1fc3fb289bdea0d53712aea1
[ "MIT" ]
1
2022-02-03T15:06:49.000Z
2022-02-03T15:06:49.000Z
tdw_image_dataset/image_position.py
alters-mit/tdw_image_dataset
1f6fccaa8057080c1fc3fb289bdea0d53712aea1
[ "MIT" ]
1
2022-02-03T15:52:53.000Z
2022-02-03T16:00:06.000Z
tdw_image_dataset/image_position.py
alters-mit/tdw_image_dataset
1f6fccaa8057080c1fc3fb289bdea0d53712aea1
[ "MIT" ]
null
null
null
from typing import Dict class ImagePosition: """ The positions and rotations of the avatar and object for an image. Positions are stored as (x, y, z) dictionaries, for example: `{"x": 0, "y": 0, "z": 0}`. Rotations are stored as (x, y, z, w) dictionaries, for example: `{"x": 0, "y": 0, "z": 0, "w": 1...
34.282051
103
0.583396
from typing import Dict class ImagePosition: """ The positions and rotations of the avatar and object for an image. Positions are stored as (x, y, z) dictionaries, for example: `{"x": 0, "y": 0, "z": 0}`. Rotations are stored as (x, y, z, w) dictionaries, for example: `{"x": 0, "y": 0, "z": 0, "w": 1...
0
0
0
a6f78d66d6881f93206e9742562d77cb69de942d
4,117
py
Python
tests/run_visual_test_framed_text.py
underwatergrasshopper/PyUnderGUI
9a3107bbcf04168eb131a6dae5d50ff35b00ea7f
[ "MIT" ]
null
null
null
tests/run_visual_test_framed_text.py
underwatergrasshopper/PyUnderGUI
9a3107bbcf04168eb131a6dae5d50ff35b00ea7f
[ "MIT" ]
null
null
null
tests/run_visual_test_framed_text.py
underwatergrasshopper/PyUnderGUI
9a3107bbcf04168eb131a6dae5d50ff35b00ea7f
[ "MIT" ]
null
null
null
import TestKit from UnderGUI import * from UnderGUI._Private import * from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * ################################################################################ WIDTH = 800 HEIGHT = 600 g = Global() ################################...
30.954887
173
0.617197
import TestKit from UnderGUI import * from UnderGUI._Private import * from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * ################################################################################ WIDTH = 800 HEIGHT = 600 class Global: is_redraw = False s...
2,755
230
142