hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
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
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
133970a76e20a754ee1d096deb6c10cb81b36a92
8,478
py
Python
data_tests/models.py
VersBersh/django-data-tests
b3e49ff196e88e75a5beafcb2ba4852422ca11ae
[ "MIT" ]
null
null
null
data_tests/models.py
VersBersh/django-data-tests
b3e49ff196e88e75a5beafcb2ba4852422ca11ae
[ "MIT" ]
null
null
null
data_tests/models.py
VersBersh/django-data-tests
b3e49ff196e88e75a5beafcb2ba4852422ca11ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging logger = logging.getLogger(__name__)
41.356098
121
0.657348
# -*- coding: utf-8 -*- import logging from django.contrib.contenttypes import fields from django.contrib.contenttypes.models import ContentType from django.db import models from django.urls import reverse from django.utils.encoding import python_2_unicode_compatible from model_utils.models import TimeStampedModel f...
0
8,021
0
0
0
0
0
175
202
6d13d4748bf5166dfde213bf6f7a68ed27f169b7
1,990
py
Python
coding_exercises/rockpaperscissors.py
adymon/Practice-Coding-Exercises
285e17ccd89068bd683d3d6674eb61ee687c37b5
[ "MIT" ]
null
null
null
coding_exercises/rockpaperscissors.py
adymon/Practice-Coding-Exercises
285e17ccd89068bd683d3d6674eb61ee687c37b5
[ "MIT" ]
null
null
null
coding_exercises/rockpaperscissors.py
adymon/Practice-Coding-Exercises
285e17ccd89068bd683d3d6674eb61ee687c37b5
[ "MIT" ]
null
null
null
""" Description: !!!ROCK!!! ###PAPERS### ***SCISSORS*** s beats p beats r, r beats s Usage: >>Enter your choice : rock You Choose: rock Computer Choose: paper Computer wins User total win count is : 0 Computer total win count is : 1 >>Enter your choice: """ from random import randint print("@@@ Welcome @@@ \n !!!ROCK!...
25.189873
110
0.560804
""" Description: !!!ROCK!!! ###PAPERS### ***SCISSORS*** s beats p beats r, r beats s Usage: >>Enter your choice : rock You Choose: rock Computer Choose: paper Computer wins User total win count is : 0 Computer total win count is : 1 >>Enter your choice: """ from random import randint print("@@@ Welcome @@@ \n !!!ROCK!...
0
0
0
0
0
0
0
0
0
736a77859aa632ca8f4c061eba0ed2eee0d57567
2,322
py
Python
zilean/datasets/cache/moves.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
zilean/datasets/cache/moves.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
zilean/datasets/cache/moves.py
A-Hilaly/zilean
2b2e87969a0d8064e8b92b07c346a4006f93c795
[ "Apache-2.0" ]
null
null
null
def cachemove(module=None, _class=None): """ Decorator to zilean intern function except .zileancache """ return wrap_func
32.704225
65
0.403962
import time from greww.data import MysqlPen as M from zilean.data.basics import ZileanCache class ZileanMoves(ZileanCache): __slots__ = ["_data"] table = "zilean_moves_history" fields = ["move_id", "timed_at", "module", "class", "function", ...
0
696
0
353
0
993
0
26
115
653aa66f944f6d5c38b26a617315b9223ffca152
2,661
py
Python
vgg.py
YYue000/doge
6d69084c79e69e35eba8e8c7d8fbf3d68d25393a
[ "MIT" ]
null
null
null
vgg.py
YYue000/doge
6d69084c79e69e35eba8e8c7d8fbf3d68d25393a
[ "MIT" ]
null
null
null
vgg.py
YYue000/doge
6d69084c79e69e35eba8e8c7d8fbf3d68d25393a
[ "MIT" ]
1
2017-12-04T13:45:37.000Z
2017-12-04T13:45:37.000Z
import keras width = 224 height = 224 if __name__ == "__main__": train() predict()
28.308511
110
0.626456
import os import keras from keras.models import Sequential from keras.layers import Dense from keras.applications.vgg16 import VGG16 import keras.preprocessing.image import numpy as np from util import TRAIN_PATH, TEST_PATH, OUTPUT_PATH, labels, all_labels, list_images width = 224 height = 224 def image2feature_vg...
0
0
0
0
0
2,212
0
103
247
08ebcdf56020420591b6dc690271632fd452f215
204
py
Python
annotations/urls.py
connectik/digital-manifesto
497e5ad1d154525be28802e012e2443c7d4b386b
[ "MIT" ]
null
null
null
annotations/urls.py
connectik/digital-manifesto
497e5ad1d154525be28802e012e2443c7d4b386b
[ "MIT" ]
null
null
null
annotations/urls.py
connectik/digital-manifesto
497e5ad1d154525be28802e012e2443c7d4b386b
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from django.conf.urls import url, include from . import api_urls urlpatterns = [ url(r'^api/', include(api_urls, namespace='api')) ]
20.4
56
0.75
from __future__ import absolute_import, unicode_literals from django.conf.urls import url, include from . import views, api_urls urlpatterns = [ url(r'^api/', include(api_urls, namespace='api')) ]
0
0
0
0
0
0
0
7
0
0b0753d547b4cd9a74bf520352f38697bebf283c
1,088
py
Python
PlanIt/tests/test_cost_handling.py
awoodwa/PlanIt
91f952c67a127ca786affd49da0557e6a5132816
[ "MIT" ]
null
null
null
PlanIt/tests/test_cost_handling.py
awoodwa/PlanIt
91f952c67a127ca786affd49da0557e6a5132816
[ "MIT" ]
5
2020-03-09T18:08:18.000Z
2020-03-18T22:33:18.000Z
PlanIt/tests/test_cost_handling.py
awoodwa/PlanIt
91f952c67a127ca786affd49da0557e6a5132816
[ "MIT" ]
null
null
null
from .. import cost_handling def test_cost_of_wind(): ''' This function tests the cost_of_wind(turbines) function to make sure that the result is of the correct type and matches the known value for 3 turbines. ''' test = cost_handling.cost_of_wind(3) result = 3900000.0 assert type(tes...
30.222222
77
0.642463
from .. import cost_handling def test_cost_of_wind(): ''' This function tests the cost_of_wind(turbines) function to make sure that the result is of the correct type and matches the known value for 3 turbines. ''' test = cost_handling.cost_of_wind(3) result = 3900000.0 assert type(tes...
0
0
0
0
0
0
0
0
0
8bda8c96b69fc9f8f7cf334a32e13b0e64fb0f0d
3,824
py
Python
Sound.py
gitletH/piano
bf559ebcfc20515ac2127778b8eb636d9a4eaaeb
[ "MIT" ]
null
null
null
Sound.py
gitletH/piano
bf559ebcfc20515ac2127778b8eb636d9a4eaaeb
[ "MIT" ]
null
null
null
Sound.py
gitletH/piano
bf559ebcfc20515ac2127778b8eb636d9a4eaaeb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pygame pygame.mixer.init(44100, -16, 2, 4096) keyNumbers = [89,90,91,92,93,94,95,96,97,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71...
50.315789
825
0.61454
#!/usr/bin/env python import math import os import pygame import numpy as np from scipy.io import wavfile pygame.mixer.init(44100, -16, 2, 4096) keyNumbers = [89,90,91,92,93,94,95,96,97,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,4...
0
0
0
0
0
1,715
0
-18
201
dccb9a1a52ae3a12a86e78bf81af64b379e13f7d
718
py
Python
bin/s6130_mem.py
radiolok/robotron_s6130
92f5d9fb70db89fb2fbd28d2245291b33fdd592b
[ "BSD-2-Clause" ]
null
null
null
bin/s6130_mem.py
radiolok/robotron_s6130
92f5d9fb70db89fb2fbd28d2245291b33fdd592b
[ "BSD-2-Clause" ]
null
null
null
bin/s6130_mem.py
radiolok/robotron_s6130
92f5d9fb70db89fb2fbd28d2245291b33fdd592b
[ "BSD-2-Clause" ]
null
null
null
ROM = { "ROM" : [ { "startAddr" : 0x0000, "endAddr" : 0x07ff }, { "startAddr" : 0x0800, "endAddr" : 0x0fff }, { "startAddr" : 0x1000, "endAddr" : 0x17ff }, { "startAddr" : 0x1800, "endAddr" : 0x1fff ...
18.894737
53
0.388579
import sys ROM = { "ROM" : [ { "startAddr" : 0x0000, "endAddr" : 0x07ff }, { "startAddr" : 0x0800, "endAddr" : 0x0fff }, { "startAddr" : 0x1000, "endAddr" : 0x17ff }, { "startAddr" : 0x1800, "endAddr" : 0x...
0
0
0
0
0
0
0
-11
23
0a351e78eded9cad890c46074183a0e94562ea6e
6,880
py
Python
RLBotPack/Necto/bot.py
lucas-emery/RLBotPack
0e2f63dce48e72a1c28f9ace6361e8386b60c753
[ "MIT" ]
null
null
null
RLBotPack/Necto/bot.py
lucas-emery/RLBotPack
0e2f63dce48e72a1c28f9ace6361e8386b60c753
[ "MIT" ]
null
null
null
RLBotPack/Necto/bot.py
lucas-emery/RLBotPack
0e2f63dce48e72a1c28f9ace6361e8386b60c753
[ "MIT" ]
null
null
null
import numpy as np from rlbot.agents.base_agent import SimpleControllerState KICKOFF_CONTROLS = ( 11 * 4 * [SimpleControllerState(throttle=1, boost=True)] + 4 * 4 * [SimpleControllerState(throttle=1, boost=True, steer=-1)] + 2 * 4 * [SimpleControllerState(throttle=1, jump=True, boost=True)] ...
42.208589
120
0.590407
import numpy as np import torch from rlbot.agents.base_agent import BaseAgent, SimpleControllerState from rlbot.utils.structures.game_data_struct import GameTickPacket from rlgym_compat import GameState from agent import Agent from necto_obs import NectoObsBuilder KICKOFF_CONTROLS = ( 11 * 4 * [SimpleControll...
0
0
0
5,875
0
0
0
78
134
d2c1b978a0cdd041c0ccac02fc62dfc08af817ab
873
py
Python
examples/automlbechmark/prepare_datasets/prepare_bank_marketing.py
jianzhnie/AutoTabular
fb407300adf97532a26d33f7442d2a606fa30512
[ "Apache-2.0" ]
48
2021-09-06T08:09:26.000Z
2022-03-28T13:02:54.000Z
examples/automlbechmark/prepare_datasets/prepare_bank_marketing.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
null
null
null
examples/automlbechmark/prepare_datasets/prepare_bank_marketing.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
7
2021-09-23T07:28:46.000Z
2021-10-02T21:15:18.000Z
import os from pathlib import Path import pandas as pd from sklearn.model_selection import train_test_split pd.options.display.max_columns = 100 SEED = 2 ROOT_DIR = Path('./') RAW_DATA_DIR = ROOT_DIR / 'data/raw_data/bank_marketing' PROCESSED_DATA_DIR = ROOT_DIR / 'data/processed_data/bank_marketing' if not os.path...
30.103448
71
0.761741
import os from pathlib import Path import pandas as pd from sklearn.model_selection import train_test_split pd.options.display.max_columns = 100 SEED = 2 ROOT_DIR = Path('./') RAW_DATA_DIR = ROOT_DIR / 'data/raw_data/bank_marketing' PROCESSED_DATA_DIR = ROOT_DIR / 'data/processed_data/bank_marketing' if not os.path...
0
0
0
0
0
0
0
0
0
4caefff1734de680301252d55a5a3ade33111eff
608
py
Python
040_Aquele_classico_de_media.py
fabioeomedeiros/Python-Base
ef9c1c66b3221f71d1c8dcaf4c2f86503712e9f1
[ "MIT" ]
null
null
null
040_Aquele_classico_de_media.py
fabioeomedeiros/Python-Base
ef9c1c66b3221f71d1c8dcaf4c2f86503712e9f1
[ "MIT" ]
null
null
null
040_Aquele_classico_de_media.py
fabioeomedeiros/Python-Base
ef9c1c66b3221f71d1c8dcaf4c2f86503712e9f1
[ "MIT" ]
null
null
null
#040_Aquele_classico_de_media.py n1 = float(input("1 nota: ")) n2 = float(input("2 nota: ")) n3 = float(input("3 nota: ")) m1 = (n1 + n2 + n3) / 3 if (0 < m1 < 4): print(f"A mdia {m1:.2f} e o aluno est REPROVADO") elif (4 <= m1 < 7): print(f"A mdia {m1:.2f} e o aluno dever fazer a PROVA FINAL") nf = floa...
32
69
0.582237
#040_Aquele_classico_de_media.py n1 = float(input("1º nota: ")) n2 = float(input("2ª nota: ")) n3 = float(input("3ª nota: ")) m1 = (n1 + n2 + n3) / 3 if (0 < m1 < 4): print(f"A média é {m1:.2f} e o aluno está REPROVADO") elif (4 <= m1 < 7): print(f"A média é {m1:.2f} e o aluno deverá fazer a PROVA FINAL") ...
34
0
0
0
0
0
0
0
0
cc2f34032b67d48a494fdb4ec4d600c5f9deb42c
6,902
py
Python
examples/gen_example.py
hastly/momoko
d882ad2d14013022be13d03cd65b2e54e0113989
[ "MIT" ]
228
2015-01-03T07:59:13.000Z
2022-02-19T03:09:27.000Z
examples/gen_example.py
hastly/momoko
d882ad2d14013022be13d03cd65b2e54e0113989
[ "MIT" ]
61
2015-01-25T18:46:39.000Z
2020-06-10T02:51:23.000Z
examples/gen_example.py
hastly/momoko
d882ad2d14013022be13d03cd65b2e54e0113989
[ "MIT" ]
56
2015-01-06T02:54:06.000Z
2021-01-23T00:48:57.000Z
#!/usr/bin/env python """ This example uses Tornado's gen_. .. _gen: http://www.tornadoweb.org/documentation/gen.html """ from __future__ import print_function import os import tornado.web import tornado.ioloop import tornado.options db_database = os.environ.get('MOMOKO_TEST_DB', 'momoko_test') db_user = os.envi...
30.539823
88
0.579252
#!/usr/bin/env python """ This example uses Tornado's gen_. .. _gen: http://www.tornadoweb.org/documentation/gen.html """ from __future__ import print_function import os import tornado.web import tornado.ioloop import tornado.options from tornado import gen import tornado.httpserver import momoko db_database = ...
0
2,959
0
900
0
1,513
0
-2
479
183c881e768301410a0039fb62d411c8e0fe0880
1,486
py
Python
fetchArt.py
parkchamchi/dailyArt
51d77a228e3240c5bcab760c176257b9fdbaea16
[ "MIT" ]
null
null
null
fetchArt.py
parkchamchi/dailyArt
51d77a228e3240c5bcab760c176257b9fdbaea16
[ "MIT" ]
null
null
null
fetchArt.py
parkchamchi/dailyArt
51d77a228e3240c5bcab760c176257b9fdbaea16
[ "MIT" ]
null
null
null
#Fetch art from the Metropolitan Museum of Art API apiurl = "https://collectionapi.metmuseum.org/public/collection/v1/objects" #This version only fetches European paintings
24.766667
76
0.68035
#Fetch art from the Metropolitan Museum of Art API import urllib.request as urlreq import json import random apiurl = "https://collectionapi.metmuseum.org/public/collection/v1/objects" #This version only fetches European paintings def fetchArt(): #Get the objectID generator itr = getObjectIDGenerator()...
0
0
0
0
804
367
0
-8
143
2b6dac0d161ca17932c195c3932f06f193620b89
5,601
py
Python
install/app_store/tk-framework-qtwidgets/v2.6.5/python/playback_label/playback_label.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.5/python/playback_label/playback_label.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.5/python/playback_label/playback_label.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2015 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
34.78882
113
0.611676
# Copyright (c) 2015 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
0
148
0
4,903
0
0
0
28
69
d115dd472051422252e81758965caa61c88905d6
4,238
py
Python
116.populating-next-right-pointers-in-each-node.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
116.populating-next-right-pointers-in-each-node.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
116.populating-next-right-pointers-in-each-node.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=116 lang=python # # [116] Populating Next Right Pointers in Each Node # # https://leetcode.com/problems/populating-next-right-pointers-in-each-node/description/ # # algorithms # Medium (36.78%) # Likes: 1013 # Dislikes: 87 # Total Accepted: 246.7K # Total Submissions: 648.8K # Testcase Exa...
30.489209
402
0.547192
# # @lc app=leetcode id=116 lang=python # # [116] Populating Next Right Pointers in Each Node # # https://leetcode.com/problems/populating-next-right-pointers-in-each-node/description/ # # algorithms # Medium (36.78%) # Likes: 1013 # Dislikes: 87 # Total Accepted: 246.7K # Total Submissions: 648.8K # Testcase Exa...
16
0
0
1,845
0
0
0
0
45
e015a45e8d2415047c87e44b3d4199b1444e5ceb
1,167
py
Python
networking_bgpvpn/neutron/db/migration/alembic_migrations/versions/rocky/expand/7a9482036ecd_add_standard_attributes.py
sapcc/networking-bgpvpn
902f817dc49bb19dfbda51ba85b3d0702542e859
[ "Apache-2.0" ]
null
null
null
networking_bgpvpn/neutron/db/migration/alembic_migrations/versions/rocky/expand/7a9482036ecd_add_standard_attributes.py
sapcc/networking-bgpvpn
902f817dc49bb19dfbda51ba85b3d0702542e859
[ "Apache-2.0" ]
null
null
null
networking_bgpvpn/neutron/db/migration/alembic_migrations/versions/rocky/expand/7a9482036ecd_add_standard_attributes.py
sapcc/networking-bgpvpn
902f817dc49bb19dfbda51ba85b3d0702542e859
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OpenStack Fundation # # 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 o...
31.540541
78
0.706084
# Copyright 2018 OpenStack Fundation # # 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 o...
0
0
0
0
0
261
0
3
68
12d4918f29e26daab0d4dfc4968dd4263bd3766d
5,979
py
Python
fkie_node_manager_daemon/src/fkie_node_manager_daemon/url.py
arpg/multimaster_fkie
fa7eb29c9f3fc8b5dff883ab55bfbc8d696dcad1
[ "BSD-3-Clause" ]
1
2021-12-17T17:16:52.000Z
2021-12-17T17:16:52.000Z
arpl_ws/src/multimaster_fkie/fkie_node_manager_daemon/src/fkie_node_manager_daemon/url.py
xjh19971/Autonomous-Drone-Inspection-with-DRL
5b9777212f5385259728e7a9451fcd242f2f1ce2
[ "MIT" ]
null
null
null
arpl_ws/src/multimaster_fkie/fkie_node_manager_daemon/src/fkie_node_manager_daemon/url.py
xjh19971/Autonomous-Drone-Inspection-with-DRL
5b9777212f5385259728e7a9451fcd242f2f1ce2
[ "MIT" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2018, Fraunhofer FKIE/CMS, Alexander Tiderko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code mu...
36.457317
102
0.685399
# Software License Agreement (BSD License) # # Copyright (c) 2018, Fraunhofer FKIE/CMS, Alexander Tiderko # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code mu...
0
0
0
0
0
0
0
0
0
ad362c621546d5baef7aa0ccaddaa3e976113c91
4,063
py
Python
gen_spec_files/check_cld_fits.py
DavidSAmundsen/socrates_tools
b2c43eb979a96a9b80a87fa09e3e17e6af5fb2b3
[ "MIT" ]
2
2018-12-09T19:50:38.000Z
2020-01-08T20:21:03.000Z
gen_spec_files/check_cld_fits.py
DavidSAmundsen/socrates_tools
b2c43eb979a96a9b80a87fa09e3e17e6af5fb2b3
[ "MIT" ]
null
null
null
gen_spec_files/check_cld_fits.py
DavidSAmundsen/socrates_tools
b2c43eb979a96a9b80a87fa09e3e17e6af5fb2b3
[ "MIT" ]
1
2018-05-09T12:51:52.000Z
2018-05-09T12:51:52.000Z
# spec_file = '/home/damundse/Spectral_files/sp_lw_dsa_arcc/sp_lw_350_dsa_arcc' spec_file = '/home/damundse/Spectral_files/sp_sw_dsa_ar/sp_sw_280_dsa_ar_trappist1' n_point = 1000 plot_on = False # Find number of spectral bands fin = open(spec_file, 'r') while True: line = fin.readline() if line[:19] == '*BLOCK: ...
27.086667
83
0.657396
from pylab import * def read_cld_data(spec_file, cld_type = 'drop'): if cld_type == 'drop': n_param = 16 block_id = '*BLOCK: TYPE = 10' elif cld_type == 'ice': n_param = 14 block_id = '*BLOCK: TYPE = 12' else: raise ValueError('Cloud type not recognised.') # Find drop/ice data fin =...
0
0
0
0
0
2,311
0
-2
114
cda12d5137d295c075c05f9b6d70df5f0e819215
4,346
py
Python
webstack/backend/app/app/api/api_v1/endpoints/utils.py
wifinigel/webstack
2539132815d6e842f537f03b40f98e40dd4184bd
[ "BSD-3-Clause" ]
null
null
null
webstack/backend/app/app/api/api_v1/endpoints/utils.py
wifinigel/webstack
2539132815d6e842f537f03b40f98e40dd4184bd
[ "BSD-3-Clause" ]
null
null
null
webstack/backend/app/app/api/api_v1/endpoints/utils.py
wifinigel/webstack
2539132815d6e842f537f03b40f98e40dd4184bd
[ "BSD-3-Clause" ]
null
null
null
from dbus import Interface, SystemBus from dbus.exceptions import DBusException from fastapi import APIRouter router = APIRouter() def check_service_status(service): """ queries systemd through dbus to see if the service is running """ service_running = False bus = SystemBus() systemd = bus.get_objec...
27.1625
85
0.640359
import json import platform from socket import gethostname import psutil from dbus import Interface, SystemBus from dbus.exceptions import DBusException from fastapi import APIRouter router = APIRouter() def check_service_status(service): """ queries systemd through dbus to see if the service is running """ ...
0
1,545
0
0
0
403
0
-15
204
82c5e1e9ea305c7812e28e8920120a8a2986b57e
29,925
py
Python
sfepy/discrete/iga/iga.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
sfepy/discrete/iga/iga.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
sfepy/discrete/iga/iga.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
""" Isogeometric analysis utilities. Notes ----- The functions :func:`compute_bezier_extraction_1d()` and :func:`eval_nurbs_basis_tp()` implement the algorithms described in [1]. [1] Michael J. Borden, Michael A. Scott, John A. Evans, Thomas J. R. Hughes: Isogeometric finite element data structures based on Bezie...
29.599407
79
0.53741
""" Isogeometric analysis utilities. Notes ----- The functions :func:`compute_bezier_extraction_1d()` and :func:`eval_nurbs_basis_tp()` implement the algorithms described in [1]. [1] Michael J. Borden, Michael A. Scott, John A. Evans, Thomas J. R. Hughes: Isogeometric finite element data structures based on Bezie...
0
0
0
0
0
2,002
0
0
83
0eb8a780305b832589622837b477a19f86355324
2,007
py
Python
src/shut/commands/license.py
ndejong/shut
ec5ddac123b325805959cf0c184c3de12f9237e1
[ "MIT" ]
null
null
null
src/shut/commands/license.py
ndejong/shut
ec5ddac123b325805959cf0c184c3de12f9237e1
[ "MIT" ]
null
null
null
src/shut/commands/license.py
ndejong/shut
ec5ddac123b325805959cf0c184c3de12f9237e1
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2020 Niklas Rosenstein # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, mo...
37.867925
83
0.748879
# -*- coding: utf8 -*- # Copyright (c) 2020 Niklas Rosenstein # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, mo...
0
666
0
0
0
0
0
36
136
8cead5b79b91c1975809a3a32b89119badfb0eff
6,867
py
Python
lmchar.py
pbloem/python-stuff
db50fc52bcd59245c826013f196eb63319b326bc
[ "MIT" ]
null
null
null
lmchar.py
pbloem/python-stuff
db50fc52bcd59245c826013f196eb63319b326bc
[ "MIT" ]
null
null
null
lmchar.py
pbloem/python-stuff
db50fc52bcd59245c826013f196eb63319b326bc
[ "MIT" ]
null
null
null
from keras.models import Sequential, Model from keras.layers import Dense, Conv2D, Flatten, Input, Reshape import numpy as np import matplotlib matplotlib.use('Agg') from argparse import ArgumentParser INDEX_FROM = 3 CHECK = 5 def sample(preds, temperature=1.): """ Sample an index from a probability vector ...
29.346154
120
0.58934
import keras import keras.backend as K from keras.preprocessing import sequence from keras.datasets import imdb from keras.models import Sequential, Model from keras.layers import \ Dense, Activation, Conv2D, MaxPool2D, Dropout, Flatten, Input, Reshape, LSTM, Embedding, RepeatVector,\ TimeDistributed, Bidirect...
0
0
0
0
0
3,130
0
405
451
9a2604ae9ce806eb033fc9675218c8259dbc2b6e
359
py
Python
Olympiad Solutions/URI/1103.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/URI/1103.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/URI/1103.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1103 #!/usr/bin/env python2.7 # encoding : utf-8 while True: a,b,c,d = [int(i) for i in raw_input().split(" ")] if a== 0 and b==0 and c== 0 and d == 0: break else : inicial = a*60 + b final = c*60 + d if final <= inicial: ...
23.933333
72
0.623955
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1103 #!/usr/bin/env python2.7 # encoding : utf-8 while True: a,b,c,d = [int(i) for i in raw_input().split(" ")] if a== 0 and b==0 and c== 0 and d == 0: break else : inicial = a*60 + b final = c*60 + d if final <= inicial: ...
0
0
0
0
0
0
0
0
0
4940bca1546a2f7c7efbafded5aa2513e835089c
13,312
py
Python
h/streamer.py
balupton/h
c6358bbe2abc5a04bf0d3fa5f6b711b41ca16c04
[ "MIT" ]
null
null
null
h/streamer.py
balupton/h
c6358bbe2abc5a04bf0d3fa5f6b711b41ca16c04
[ "MIT" ]
null
null
null
h/streamer.py
balupton/h
c6358bbe2abc5a04bf0d3fa5f6b711b41ca16c04
[ "MIT" ]
null
null
null
try: import simplejson as json except ImportError: import operator import logging log = logging.getLogger(__name__) filter_schema = { "type": "object", "properties": { "name": {"type": "string", "optional": True}, "match_policy": { "type": "string", "enum": ["incl...
34.397933
104
0.535231
try: import simplejson as json except ImportError: import json import operator import traceback from datetime import datetime, timedelta from urlparse import urlparse import transaction from dateutil.tz import tzutc from jsonpointer import resolve_pointer from jsonschema import validate from pyramid.event...
0
1,920
0
8,129
0
1,249
0
115
459
8f6469c1abc54d4dd839df4b26eb394ddc92fe7b
360
py
Python
com/tml/pysyntax/CommonModule.py
tianmlin19/FirstPython
e95e74787e333231d2993b8956098535225d09e1
[ "Apache-2.0" ]
null
null
null
com/tml/pysyntax/CommonModule.py
tianmlin19/FirstPython
e95e74787e333231d2993b8956098535225d09e1
[ "Apache-2.0" ]
null
null
null
com/tml/pysyntax/CommonModule.py
tianmlin19/FirstPython
e95e74787e333231d2993b8956098535225d09e1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- 'python' from datetime import datetime now = datetime.now() print(now) dt = datetime(2018, 12, 13, 18, 51, 26) print(dt) # timestamp() print(now.timestamp()) strptime = datetime.strptime('2018-12-13 15:26:25', '%Y-%m-%d %H:%M:%S') print(strptime) print(now.strftime('%a,...
21.176471
72
0.661111
#!/usr/bin/env python3 # -*- coding: utf-8 -*- 'python内建模块' from datetime import datetime now = datetime.now() print(now) dt = datetime(2018, 12, 13, 18, 51, 26) print(dt) # 使用timestamp()获取的是小数,小数部分表示的是毫秒数 print(now.timestamp()) strptime = datetime.strptime('2018-12-13 15:26:25', '%Y-%m-%d %H:%M:%S') print(strptime) ...
72
0
0
0
0
0
0
0
0
e435fd652554beeaebe5e48b105ac04c926b141a
10,214
py
Python
BayesRho.py
benavoli/BKRtests
e2a4e6cb175b4d5368dac84e2e52acaa919d27d9
[ "BSD-3-Clause" ]
null
null
null
BayesRho.py
benavoli/BKRtests
e2a4e6cb175b4d5368dac84e2e52acaa919d27d9
[ "BSD-3-Clause" ]
null
null
null
BayesRho.py
benavoli/BKRtests
e2a4e6cb175b4d5368dac84e2e52acaa919d27d9
[ "BSD-3-Clause" ]
null
null
null
#import scipy.stats as stats #import nystrom
37.141818
152
0.507245
import numpy as np #import scipy.stats as stats import matplotlib.pyplot as plt import seaborn as snb from numpy import matlib as mb #import nystrom import scipy as sp from sklearn.metrics.pairwise import rbf_kernel import editdistance def rbf(X=[],Y=[],ell=1.0): if (X==[]): return 'rbf' else: ...
0
0
0
6,556
0
3,226
0
37
346
73568921fece904e2f0889d4c2e36844dbdc77cf
33,647
py
Python
polynomials_on_simplices/polynomial/polynomials_simplex_lagrange_basis.py
FAndersson/polynomials_on_simplices
f015a4772c817bfa99b0d6b726667a38a174b064
[ "MIT" ]
1
2021-03-17T11:41:21.000Z
2021-03-17T11:41:21.000Z
polynomials_on_simplices/polynomial/polynomials_simplex_lagrange_basis.py
FAndersson/polynomials_on_simplices
f015a4772c817bfa99b0d6b726667a38a174b064
[ "MIT" ]
null
null
null
polynomials_on_simplices/polynomial/polynomials_simplex_lagrange_basis.py
FAndersson/polynomials_on_simplices
f015a4772c817bfa99b0d6b726667a38a174b064
[ "MIT" ]
null
null
null
r"""Polynomials on an m-dimensional simplex T with values in :math:`\mathbb{R}^n`, expressed using the Lagrange basis. .. math:: l(x) = \sum_{\substack{\nu \in \mathbb{N}_0^m \\ |\nu| \leq r}} a_{\nu} l_{\nu, r}(x) = \sum_{\nu} a_{\nu} (\bar{l}_{\nu, r} \circ \Phi^{-1})(x), where :math:`a_{\nu} \in \mathbb{R...
42.699239
123
0.645585
r"""Polynomials on an m-dimensional simplex T with values in :math:`\mathbb{R}^n`, expressed using the Lagrange basis. .. math:: l(x) = \sum_{\substack{\nu \in \mathbb{N}_0^m \\ |\nu| \leq r}} a_{\nu} l_{\nu, r}(x) = \sum_{\nu} a_{\nu} (\bar{l}_{\nu, r} \circ \Phi^{-1})(x), where :math:`a_{\nu} \in \mathbb{R...
0
628
0
12,065
0
64
0
409
188
ca5756799f91a45f25bb5321253589901acd750f
1,405
py
Python
data_processing/pyloadABF.py
niklasbrake/Nav2020
475454fcff5a67d442e1c07a41c743ca60974d7f
[ "CC-BY-4.0" ]
null
null
null
data_processing/pyloadABF.py
niklasbrake/Nav2020
475454fcff5a67d442e1c07a41c743ca60974d7f
[ "CC-BY-4.0" ]
null
null
null
data_processing/pyloadABF.py
niklasbrake/Nav2020
475454fcff5a67d442e1c07a41c743ca60974d7f
[ "CC-BY-4.0" ]
null
null
null
import os import pyabf import numpy as np import mat4py as m4p import sys # Get directory containing folders for each experiment folder = sys.argv[1] # This is the list of experiment folders SubSubFolders = np.array(os.listdir(folder)) # Turn it into a full file path # SubFolders = np.core.defchararray.add(DataDirecto...
39.027778
74
0.634164
import os import pyabf import numpy as np import mat4py as m4p import sys # Get directory containing folders for each experiment folder = sys.argv[1] # This is the list of experiment folders SubSubFolders = np.array(os.listdir(folder)) # Turn it into a full file path # SubFolders = np.core.defchararray.add(DataDirecto...
0
0
0
0
0
0
0
0
0
968df650ff1eee347f39695eb833cf02582d73b5
1,339
py
Python
toolkit/file_modified.py
zloether/toolkit
5040b7bc64d2a4d5b7d7ec2595af8865e45530f5
[ "MIT" ]
null
null
null
toolkit/file_modified.py
zloether/toolkit
5040b7bc64d2a4d5b7d7ec2595af8865e45530f5
[ "MIT" ]
null
null
null
toolkit/file_modified.py
zloether/toolkit
5040b7bc64d2a4d5b7d7ec2595af8865e45530f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # file_modified.py # takes input file or string and returns file modified date # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import os.path, sys parent_dir = os.path.abspath...
31.139535
82
0.436146
#!/usr/bin/env python # file_modified.py # takes input file or string and returns file modified date # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import os.path, sys parent_dir = os.path.abspath...
0
0
0
0
0
304
0
-10
44
0bde25ad8ac5bcbd6abc0791506ac8f80565ce8c
2,867
py
Python
brighteyes/xrandr.py
xkortex/brighteyes
de00ea85ef302733b9ff2d1b730909ec9853fa48
[ "MIT" ]
null
null
null
brighteyes/xrandr.py
xkortex/brighteyes
de00ea85ef302733b9ff2d1b730909ec9853fa48
[ "MIT" ]
null
null
null
brighteyes/xrandr.py
xkortex/brighteyes
de00ea85ef302733b9ff2d1b730909ec9853fa48
[ "MIT" ]
null
null
null
"""Wrapper class for xrandr usage: xrandr [options] where options are: --display <display> or -d <display> --help -o <normal,inverted,left,right,0,1,2,3> or --orientation <normal,inverted,left,right,0,1,2,3> -q or --query -s <size>/<width>x<height> or --size <size>/<width>x<height> -r ...
27.834951
113
0.56226
"""Wrapper class for xrandr usage: xrandr [options] where options are: --display <display> or -d <display> --help -o <normal,inverted,left,right,0,1,2,3> or --orientation <normal,inverted,left,right,0,1,2,3> -q or --query -s <size>/<width>x<height> or --size <size>/<width>x<height> -r ...
0
0
0
856
0
0
0
-16
91
75a96beced0532d3be1e6d6f45e08faa9ed43f8d
3,902
py
Python
junk/test3.py
imlieing/LHDroneAITest2Code
f0012e0f9950f4ed04185fa80d8871b79259292e
[ "MIT" ]
null
null
null
junk/test3.py
imlieing/LHDroneAITest2Code
f0012e0f9950f4ed04185fa80d8871b79259292e
[ "MIT" ]
null
null
null
junk/test3.py
imlieing/LHDroneAITest2Code
f0012e0f9950f4ed04185fa80d8871b79259292e
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.layers import LeakyReLU import numpy as np import cv2 import matplotlib.pyplot as plt import load_data # gray = cv2.cvtColor(mod[0], cv2.COLOR_BGR2GRAY) # sh(cv2.d...
31.216
113
0.590723
from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.layers import LeakyReLU import keras.backend as K import numpy as np import cv2 import json import matplotlib.pyplot as plt import datetime import load_data de...
0
0
0
0
0
106
0
-12
119
72fa8317bf42c078aba5be23530461b5e66a4162
4,839
py
Python
Splunk_TA_google/bin/google_ta_common/google_conf.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
Splunk_TA_google/bin/google_ta_common/google_conf.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
Splunk_TA_google/bin/google_ta_common/google_conf.py
chenziliang/google
f06340ee58fb48bac995d5ab16bec4ccccaa3d7a
[ "MIT" ]
null
null
null
from splunktalib.common import log logger = log.Logs().get_logger("main") import splunktalib.modinput as modinput
35.580882
79
0.616656
import base64 import json from splunktalib.common import log logger = log.Logs().get_logger("main") import splunktalib.modinput as modinput import splunktalib.conf_manager.ta_conf_manager as tcm import splunktalib.common.util as utils import splunktalib.hec_config as hc import google_ta_common.google_consts as ggc ...
0
93
0
4,403
0
0
0
70
155
190c5ef5eaff9efdbc0452a0b275f090918a0813
4,487
py
Python
src/OTLMOW/OTLModel/Datatypes/KlSignalisatieReferentiepuntType.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Datatypes/KlSignalisatieReferentiepuntType.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Datatypes/KlSignalisatieReferentiepuntType.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 # Generated with OTLEnumerationCreator. To modify: extend, do not edit
109.439024
259
0.620682
# coding=utf-8 from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlSignalisatieReferentiepuntType(KeuzelijstField): """Een keuzelijst om het refe...
0
0
0
4,234
0
0
0
98
66
e89c40d11f3ea99db83312ef63f2c4e642a883e6
2,842
py
Python
git_interface/log.py
enchant97/python-git-interface
0ac236f35610ec17f34e07d00e3dc7b9349a07b4
[ "MIT" ]
null
null
null
git_interface/log.py
enchant97/python-git-interface
0ac236f35610ec17f34e07d00e3dc7b9349a07b4
[ "MIT" ]
1
2021-12-10T09:59:06.000Z
2021-12-10T09:59:06.000Z
git_interface/log.py
enchant97/python-git-interface
0ac236f35610ec17f34e07d00e3dc7b9349a07b4
[ "MIT" ]
1
2021-10-10T07:20:09.000Z
2021-10-10T07:20:09.000Z
""" Methods for using the 'log' command """ __all__ = ["get_logs"]
34.240964
91
0.656228
""" Methods for using the 'log' command """ import re from collections.abc import Coroutine, Iterator from datetime import datetime from pathlib import Path from typing import Any, Optional from .constants import EMPTY_REPO_RE, UNKNOWN_REV_RE from .datatypes import Log from .exceptions import (GitException, NoCommitsE...
0
0
1,903
0
0
409
0
191
268
6fe29ff5d3936a5e1532f64c85a7a2705ddca08a
394
py
Python
mirari/INT/migrations/0018_handbook_is_active.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/INT/migrations/0018_handbook_is_active.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/INT/migrations/0018_handbook_is_active.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-10-02 21:32
20.736842
52
0.606599
# Generated by Django 2.0.5 on 2018-10-02 21:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('INT', '0017_remove_handbook_is_active'), ] operations = [ migrations.AddField( model_name='handbook', name='is_activ...
0
0
0
280
0
0
0
19
46
da3e26b6bf2f1c774077d0c8926a9d1765d4264e
202
py
Python
src/ir/context.py
ssarangi/python_type_inference
d04c4021b8a3f971015703f78f5742b002fbe9dd
[ "MIT" ]
null
null
null
src/ir/context.py
ssarangi/python_type_inference
d04c4021b8a3f971015703f78f5742b002fbe9dd
[ "MIT" ]
null
null
null
src/ir/context.py
ssarangi/python_type_inference
d04c4021b8a3f971015703f78f5742b002fbe9dd
[ "MIT" ]
null
null
null
__author__ = 'sarangis'
28.857143
117
0.683168
__author__ = 'sarangis' class Context: """ The main context for Spider JIT. This will hold all the global information needed for the module being built. """ def __init__(self): pass
0
0
0
156
0
0
0
0
23
e4b502eabc0a65c10896b659c3b775fa01e83075
412
py
Python
mainpage/migrations/0003_auto_20180614_1953.py
EnzioKam/nusmm
ffd3c42b063ebbdefb4ab7114e216575a6b7ea2a
[ "MIT" ]
2
2018-06-04T09:12:12.000Z
2018-06-05T12:18:06.000Z
mainpage/migrations/0003_auto_20180614_1953.py
EnzioKam/nusmm
ffd3c42b063ebbdefb4ab7114e216575a6b7ea2a
[ "MIT" ]
4
2018-06-17T11:35:33.000Z
2018-07-13T08:53:25.000Z
mainpage/migrations/0003_auto_20180614_1953.py
EnzioKam/nusmm
ffd3c42b063ebbdefb4ab7114e216575a6b7ea2a
[ "MIT" ]
3
2018-06-07T11:21:53.000Z
2018-06-30T18:44:01.000Z
# Generated by Django 2.0.6 on 2018-06-14 19:53
22.888889
106
0.616505
# Generated by Django 2.0.6 on 2018-06-14 19:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mainpage', '0002_auto_20180603_2346'), ] operations = [ migrations.AlterUniqueTogether( name='mapping', unique_together={('n...
0
0
0
306
0
0
0
11
46
b5cbce3dd507552b5904cd734e9b084fd6722043
109
py
Python
samples/kaldi-asr-yesno/ml_model/utils/sort.py
h2floh/MLOpsManufacturing-1
3fcf15ef80600540450d16eae57b853d88a83063
[ "Apache-2.0" ]
20
2020-11-09T08:20:13.000Z
2021-12-03T06:15:45.000Z
samples/kaldi-asr-yesno/ml_model/utils/sort.py
h2floh/MLOpsManufacturing-1
3fcf15ef80600540450d16eae57b853d88a83063
[ "Apache-2.0" ]
55
2020-10-20T02:18:56.000Z
2021-07-26T04:52:23.000Z
samples/kaldi-asr-yesno/ml_model/utils/sort.py
h2floh/MLOpsManufacturing-1
3fcf15ef80600540450d16eae57b853d88a83063
[ "Apache-2.0" ]
10
2020-11-26T05:47:57.000Z
2022-03-23T20:26:00.000Z
#!/usr/bin/python import sys lst = sys.stdin.readlines() lst.sort() for item in lst: print (item[:-1])
9.083333
27
0.642202
#!/usr/bin/python import sys lst = sys.stdin.readlines() lst.sort() for item in lst: print (item[:-1])
0
0
0
0
0
0
0
0
0
8537057b5bd23138e994ed4bc8c2a4aed9b16c4c
547
py
Python
lib/module/merge.py
ouc-ocean-group/LDPS
81a609d6330a43f05ae0c6513f99d167dcecb49b
[ "MIT" ]
4
2020-02-21T19:38:18.000Z
2020-08-03T06:24:48.000Z
lib/module/merge.py
BigHeartDB/LDPS
81a609d6330a43f05ae0c6513f99d167dcecb49b
[ "MIT" ]
1
2020-04-13T18:22:43.000Z
2020-11-04T14:58:58.000Z
lib/module/merge.py
BigHeartDB/LDPS
81a609d6330a43f05ae0c6513f99d167dcecb49b
[ "MIT" ]
1
2020-02-24T07:09:55.000Z
2020-02-24T07:09:55.000Z
import torch.nn as nn
34.1875
94
0.621572
import torch import torch.nn as nn import torch.nn.functional as F class MergeModule(nn.Module): def __init__(self): super(MergeModule, self).__init__() def forward(self, xs): x3 = F.interpolate(xs[3], size=xs[0].size()[-2:], mode="bilinear", align_corners=True) x2 = F.interpolate(xs[...
0
0
0
456
0
0
0
1
67
dc6397eb257a7e6f3dc314fd11fa2c907c66c324
27,049
py
Python
Stacking/Stacking_Classify_adult.py
Anfany/Machine-Learning-for-Beginner
1022ee7ce4d387da5e5fd8c3b66ac9b1bfc1974c
[ "MIT" ]
397
2018-05-28T02:07:32.000Z
2022-03-30T09:53:37.000Z
Stacking/Stacking_Classify_adult.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
4
2019-01-14T16:41:02.000Z
2021-03-11T13:23:06.000Z
Stacking/Stacking_Classify_adult.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
235
2018-06-28T05:31:40.000Z
2022-03-11T03:20:07.000Z
# -*- codingutf-8 -*- # &Author AnFany # Stacking # 6AdaBoostGBDTLightGBMXGBoostCatBoost # BP # # import matplotlib.pyplot as plt from pylab import mpl mpl.rcParams['font.sans-serif'] = ['FangSong'] # mpl.rcParams['axes.unicode_minus'] = False # from matplotlib.ticker import MultipleLocato...
34.545338
120
0.557174
# -*- coding:utf-8 -*- # &Author AnFany # 两层的Stacking分类 # 第一层6个模型:随机森林,AdaBoost,GBDT,LightGBM,XGBoost,CatBoost # 第二层模型:BP神经网络分类 # 引入数据文件 import adult_Stacking_Data as adult # 引入绘图库包 import matplotlib.pyplot as plt from pylab import mpl mpl.rcParams['font.sans-serif'] = ['FangSong'] # 中文字体名称 mpl...
8,559
0
0
18,621
0
1,309
0
190
359
454ad5a0a444e2669159b1fa3c751a660d689340
3,402
py
Python
newyear.py
LEGEND-LX/PYTHONBOT.py.pkg
897b05528990acf76fbb2a05538429cd5d178733
[ "CC0-1.0" ]
2
2021-09-09T06:50:21.000Z
2021-10-01T16:59:30.000Z
newyear.py
LEGEND-LX/PYTHONBOT.py.pkg
897b05528990acf76fbb2a05538429cd5d178733
[ "CC0-1.0" ]
null
null
null
newyear.py
LEGEND-LX/PYTHONBOT.py.pkg
897b05528990acf76fbb2a05538429cd5d178733
[ "CC0-1.0" ]
null
null
null
#made by shivam patel from telethon import events
21.807692
122
0.220459
#made by shivam patel from telethon import events import asyncio from LEGENDBOT.utils import admin_cmd, edit_or_reply, sudo_cmd from userbot import bot as newyear from telethon import events from userbot.cmdhelp import CmdHelp @newyear.on(admin_cmd(pattern=r"newyear")) async def _(event): if event.fw...
2,330
2,527
0
0
0
0
0
67
167
52e0892721bf384710b78c30f306c900d3b6890a
1,996
py
Python
vgae/main.py
coodest/GAug
ef6ab307e3dfd3e9e0a653d385dc1f41963f9ba8
[ "MIT" ]
97
2020-12-02T22:24:34.000Z
2022-03-14T06:46:58.000Z
vgae/main.py
coodest/GAug
ef6ab307e3dfd3e9e0a653d385dc1f41963f9ba8
[ "MIT" ]
6
2020-12-02T21:57:53.000Z
2021-12-08T20:19:49.000Z
vgae/main.py
coodest/GAug
ef6ab307e3dfd3e9e0a653d385dc1f41963f9ba8
[ "MIT" ]
15
2020-12-23T10:55:10.000Z
2022-01-28T05:49:14.000Z
import torch.nn as nn if __name__ == "__main__": args = get_args() main(args)
34.413793
108
0.67986
import os import sys import pickle import argparse import numpy as np import torch import torch.nn as nn from utils import * from models import * from dataloader import DataLoader def get_args(): parser = argparse.ArgumentParser(description='VGAE') parser.add_argument('--cuda', type=int, default=-1) parse...
0
0
0
0
0
1,705
0
-40
245
ec5b42518873c2c433e3ce8ebd673b95839fad00
2,236
py
Python
Integration/Sensor_registration/sensor_upload.py
gaurav-kc/IOT_Platform
2fe770dff4927979919ef2ece966e5f0da467849
[ "MIT" ]
3
2021-07-12T05:20:27.000Z
2021-07-14T01:32:29.000Z
Integration/Sensor_registration/sensor_upload.py
gaurav-kc/IOT_Platform
2fe770dff4927979919ef2ece966e5f0da467849
[ "MIT" ]
null
null
null
Integration/Sensor_registration/sensor_upload.py
gaurav-kc/IOT_Platform
2fe770dff4927979919ef2ece966e5f0da467849
[ "MIT" ]
1
2020-05-19T10:13:13.000Z
2020-05-19T10:13:13.000Z
from flask import Flask from flask_restful import Api import requests ''' Sensor manager - 5050 Sensor Registration - 5051 Action Manager - 5052 Scheduler - 5053 Server LCM - 5054 Service LCM - 8080 Monitoring - 5055 Request Manager- 5056, 5057 Deployment - 5058 ''' app = Flask(__name__) api = Api(app) UPLOAD_FOLDE...
27.268293
90
0.633274
from flask import Flask, request, render_template,jsonify from flask_restful import Resource, Api import json import requests import os import requests ''' Sensor manager - 5050 Sensor Registration - 5051 Action Manager - 5052 Scheduler - 5053 Server LCM - 5054 Service LCM - 8080 Monitoring - 5055 Request Manager- 50...
0
1,394
0
0
0
117
0
16
112
5353c2493ed2c5a79bc1c5e0d6a0e73ab5a30b3d
514
py
Python
applications/migrations/0016_application_major.py
hackkosice/registration
086103571638706e80b9215ab9f7d57e18ebf13e
[ "MIT" ]
4
2019-02-04T21:21:34.000Z
2021-03-25T01:49:21.000Z
applications/migrations/0016_application_major.py
hackkosice/registration
086103571638706e80b9215ab9f7d57e18ebf13e
[ "MIT" ]
null
null
null
applications/migrations/0016_application_major.py
hackkosice/registration
086103571638706e80b9215ab9f7d57e18ebf13e
[ "MIT" ]
1
2018-11-19T10:17:19.000Z
2018-11-19T10:17:19.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2018-10-28 11:40 from __future__ import unicode_literals
23.363636
70
0.624514
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2018-10-28 11:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('applications', '0015_auto_20181028_0149'), ] operations = [ migrations.AddF...
0
0
0
335
0
0
0
19
46
49b215433a2fb5444f44eba5dff1f53a452671f3
1,115
py
Python
paddlehub/utils/platform.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
8,360
2019-01-18T10:46:45.000Z
2022-03-31T14:50:02.000Z
paddlehub/utils/platform.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,158
2019-04-11T09:22:43.000Z
2022-03-31T12:12:09.000Z
paddlehub/utils/platform.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,677
2019-04-09T15:07:40.000Z
2022-03-31T06:41:10.000Z
# coding:utf-8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
30.972222
74
0.713901
# coding:utf-8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
0
0
0
0
0
391
0
-17
114
388b018ebd1b388737175fe310aa6f06a8703b18
14,460
py
Python
tests/test_crd.py
rberrelleza/chaostoolkit-kubernetes
cb77bc13cfae866fda9a015873ce0430e4cb0b6a
[ "Apache-2.0" ]
null
null
null
tests/test_crd.py
rberrelleza/chaostoolkit-kubernetes
cb77bc13cfae866fda9a015873ce0430e4cb0b6a
[ "Apache-2.0" ]
null
null
null
tests/test_crd.py
rberrelleza/chaostoolkit-kubernetes
cb77bc13cfae866fda9a015873ce0430e4cb0b6a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
30
85
0.608022
# -*- coding: utf-8 -*- import json from tempfile import NamedTemporaryFile from unittest.mock import MagicMock, patch, ANY import pytest from kubernetes.client.rest import ApiException from chaoslib.exceptions import ActivityFailed from chaosk8s.crd.actions import create_custom_object, \ create_cluster_custom_ob...
0
13,728
0
0
0
0
0
266
431
483a4a078f54a2793e1b85fec89f224d2a0a24a7
1,961
py
Python
tools/parse_page.py
DeMaximilianster/DarkestDungeonResponseBot
f0b5cb64aed6a3e705546d4306aa37b20b9d55a4
[ "MIT" ]
13
2019-07-15T12:24:21.000Z
2022-01-08T14:13:49.000Z
tools/parse_page.py
DeMaximilianster/DarkestDungeonResponseBot
f0b5cb64aed6a3e705546d4306aa37b20b9d55a4
[ "MIT" ]
4
2021-01-22T06:01:55.000Z
2021-03-06T12:54:54.000Z
tools/parse_page.py
DeMaximilianster/DarkestDungeonResponseBot
f0b5cb64aed6a3e705546d4306aa37b20b9d55a4
[ "MIT" ]
3
2019-07-15T12:24:27.000Z
2021-11-07T22:50:08.000Z
# Parses Narrator voice lines (https://darkestdungeon.gamepedia.com/Narrator) and creates json database for use if __name__ == '__main__': main()
37
111
0.584906
# Parses Narrator voice lines (https://darkestdungeon.gamepedia.com/Narrator) and creates json database for use from bs4 import BeautifulSoup as beautifulSoup from urllib.request import (urlopen, urlparse, urlunparse, urlretrieve) import json import responses_constants as const def stripString(string): return st...
6
0
0
0
0
1,590
0
79
136
b5e32523edccb2daf4edb2ddf037d3a0b5b623fc
651
py
Python
mysearch.py
forember/sctrails
e748e29b8ea62b6172cf83b234d3aeba181b2154
[ "MIT" ]
null
null
null
mysearch.py
forember/sctrails
e748e29b8ea62b6172cf83b234d3aeba181b2154
[ "MIT" ]
null
null
null
mysearch.py
forember/sctrails
e748e29b8ea62b6172cf83b234d3aeba181b2154
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import re length_re = re.compile(r'^\s*([0-9.]+)\s*miles\s*$') difficulties = ["Easy", "Moderate", "Difficult", "Strenuous"] trails = json.load(open('data.json')) for trail in trails: trail['length'] = float(length_re.match(trail['length']).group(1)) trail['difficulty'] = diffic...
28.304348
87
0.688172
#!/usr/bin/env python3 import json import re length_re = re.compile(r'^\s*([0-9.]+)\s*miles\s*$') difficulties = ["Easy", "Moderate", "Difficult", "Strenuous"] def print_json(obj): print(json.dumps(obj, indent=2, sort_keys=True)) trails = json.load(open('data.json')) for trail in trails: trail['length'] = float(...
0
0
0
0
0
50
0
0
23
055386e9842b4ec00ab9bac4ecbcc9b739c9baf4
2,550
py
Python
ginjinn/commandline/argument_parser/new.py
AGOberprieler/GinJinn2
527feac125f476165e332277823c11016565f99d
[ "Apache-2.0" ]
17
2021-07-24T20:55:58.000Z
2022-02-09T05:15:04.000Z
ginjinn/commandline/argument_parser/new.py
AGOberprieler/GinJinn2
527feac125f476165e332277823c11016565f99d
[ "Apache-2.0" ]
1
2021-12-21T06:33:56.000Z
2022-02-05T13:57:53.000Z
ginjinn/commandline/argument_parser/new.py
AGOberprieler/GinJinn2
527feac125f476165e332277823c11016565f99d
[ "Apache-2.0" ]
null
null
null
''' ginjinn new parser ''' import argparse from os.path import join, basename import pkg_resources import glob def setup_new_parser(subparsers): '''setup_new_parser Setup parser for the ginjinn new subcommand. Parameters ---------- subparsers An object returned by argparse.ArgumentParse...
28.977273
97
0.662353
''' ginjinn new parser ''' import argparse from os.path import join, basename import pkg_resources import glob def setup_new_parser(subparsers): '''setup_new_parser Setup parser for the ginjinn new subcommand. Parameters ---------- subparsers An object returned by argparse.ArgumentParse...
0
0
0
0
0
0
0
0
0
c529ed7c1e27c06f81aa5af6c937fb4b4c8f5f5a
14,053
py
Python
tests/test_app.py
pgjones/quart
68a5bc4e98a07d903e7bfe148c1b7faa260f4334
[ "MIT" ]
1,085
2017-11-12T10:56:50.000Z
2022-03-31T15:14:26.000Z
tests/test_app.py
pgjones/quart
68a5bc4e98a07d903e7bfe148c1b7faa260f4334
[ "MIT" ]
139
2017-12-04T09:22:48.000Z
2022-03-26T08:34:07.000Z
tests/test_app.py
pgjones/quart
68a5bc4e98a07d903e7bfe148c1b7faa260f4334
[ "MIT" ]
92
2017-12-08T09:55:02.000Z
2022-03-29T20:45:44.000Z
from __future__ import annotations from quart.wrappers import Response TEST_RESPONSE = Response("") try: from unittest.mock import AsyncMock except ImportError: # Python < 3.8
28.797131
100
0.631253
from __future__ import annotations import asyncio from typing import AsyncGenerator, NoReturn, Optional, Set, Union import pytest from _pytest.monkeypatch import MonkeyPatch from hypercorn.typing import HTTPScope, WebsocketScope from werkzeug.datastructures import Headers from werkzeug.exceptions import InternalServe...
0
11,908
23
17
0
726
0
334
837
1aef95bf283d7fd58b467eb0379f7cc4a2f9650c
1,051
py
Python
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
null
null
null
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
1
2021-10-01T07:14:36.000Z
2021-10-01T07:14:36.000Z
Yotube Downloader.py
vishal8888a8/GUI-youtube-downloader
f1454da9534e4f40e84258b9600c0fe82cd0c39f
[ "MIT" ]
null
null
null
#main download part #getting the link as string #window properties window = Tk() window.geometry("573x400") window.title("YouTube Downloader") window.configure(background="#e0db31") #logo set-up logo = PhotoImage(file="logo.png") l1 = Label(window,image=logo,bg="#962383",anchor="center").pack() #s...
23.355556
81
0.687916
from pytube import YouTube from tkinter import * #main download part def download(link): obj = YouTube(link) dl = obj.streams.get_highest_resolution() print("Downloading in proccess") dl.download() print("Downloading completed!") #getting the link as string def get_class(): link...
0
0
0
0
0
199
0
5
92
5c054fc75e23532f9320a25b45f6836f65986920
11,364
py
Python
generate_map_series.py
Geo-CEG/arcmap_2maps_per_page
76881d30ff29dfc1c090e56b4a48d97f0a0bd5b2
[ "MIT" ]
2
2017-07-31T01:43:30.000Z
2018-02-22T22:02:07.000Z
generate_map_series.py
Geo-CEG/arcmap_2maps_per_page
76881d30ff29dfc1c090e56b4a48d97f0a0bd5b2
[ "MIT" ]
null
null
null
generate_map_series.py
Geo-CEG/arcmap_2maps_per_page
76881d30ff29dfc1c090e56b4a48d97f0a0bd5b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys, os, json import arcpy """ See the README.md file for complete information! """ f2_hgt = max_height = 0 def get_frames(mxd): """ Return a list frames[] with the dataframes we need for this project. Side effect: find the positions ...
30.964578
98
0.55491
#!/usr/bin/env python from __future__ import print_function import sys, os, json import arcpy from utils import dictlist """ See the README.md file for complete information! """ f2_hgt = max_height = 0 def usage(): print("""Usage: python generate_map_series.py <settings.json> where "<settings.json>" ...
0
0
0
890
0
1,024
0
5
123
e4710b8e0f57069b70f514e9629ec64b45b88b5c
2,086
py
Python
weird_fsm/FSM_weird.py
zignig/tinybx_stuff
5c62665c87c30fb7eb34a651992041bbdef10b0b
[ "MIT" ]
5
2019-03-30T01:08:13.000Z
2020-05-04T06:02:41.000Z
weird_fsm/FSM_weird.py
zignig/tinybx_stuff
5c62665c87c30fb7eb34a651992041bbdef10b0b
[ "MIT" ]
null
null
null
weird_fsm/FSM_weird.py
zignig/tinybx_stuff
5c62665c87c30fb7eb34a651992041bbdef10b0b
[ "MIT" ]
1
2020-05-04T06:02:17.000Z
2020-05-04T06:02:17.000Z
from nmigen.cli import pysim # Does not hit the "BOUNCE" state if the m.next = "NEXT" is hanging # second example has an m.Else() and it works as I expected if __name__ == "__main__": fsmw = FSM_weird() with pysim.Simulator(fsmw, vcd_file=open("fsm_weird.vcd", "w")) as sim: sim.add_clock(10) ...
27.090909
78
0.533078
from nmigen import * from nmigen.cli import pysim from nmigen.back.pysim import Tick from nmigen.hdl.rec import Layout # Does not hit the "BOUNCE" state if the m.next = "NEXT" is hanging # second example has an m.Else() and it works as I expected class FSM_weird(Elaboratable): def __init__(self): self.co...
0
0
0
1,412
0
0
0
24
112
ee3248bdce6bac716ed73298ac5c1a53271c5640
974
py
Python
#Isaiah Lawlor - Lab Two.py
RyanJones2002/CMPT-120L-201-22S
8fd281cd3f355fc3604a4c26123bc0ba0e21a98f
[ "MIT" ]
null
null
null
#Isaiah Lawlor - Lab Two.py
RyanJones2002/CMPT-120L-201-22S
8fd281cd3f355fc3604a4c26123bc0ba0e21a98f
[ "MIT" ]
null
null
null
#Isaiah Lawlor - Lab Two.py
RyanJones2002/CMPT-120L-201-22S
8fd281cd3f355fc3604a4c26123bc0ba0e21a98f
[ "MIT" ]
null
null
null
#Isaiah Lawlor - Lab Two # Strings # assigned outputs to 'speak' when input is inserted by user name = "Isaiah Lawlor" # Integers # This is a numeric value that is assigned as the particular output for a command inserted by the user age = 21 # Floats # another numeric value that has is represented with a decimal pla...
21.173913
102
0.764887
#Isaiah Lawlor - Lab Two # Strings # assigned outputs to 'speak' when input is inserted by user name = "Isaiah Lawlor" # Integers # This is a numeric value that is assigned as the particular output for a command inserted by the user age = 21 # Floats # another numeric value that has is represented with a decimal pla...
0
0
0
0
0
0
0
0
0
2926e49aa788e9ae1dfd3d342685bb4bdee03492
3,347
py
Python
create_snet_config.py
ferrouswheel/face-services
aee98448bfd4ba54c72540a8bd1b54b122af7de2
[ "MIT" ]
1
2018-12-07T03:30:34.000Z
2018-12-07T03:30:34.000Z
create_snet_config.py
ferrouswheel/face-services
aee98448bfd4ba54c72540a8bd1b54b122af7de2
[ "MIT" ]
null
null
null
create_snet_config.py
ferrouswheel/face-services
aee98448bfd4ba54c72540a8bd1b54b122af7de2
[ "MIT" ]
null
null
null
config_template = { "DAEMON_LISTENING_PORT": None, "ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io/", "AGENT_CONTRACT_ADDRESS": None, "PASSTHROUGH_ENDPOINT": None, "PASSTHROUGH_ENABLED": True, "BLOCKCHAIN_ENABLED": True, "LOG_LEVEL": 10, "PRIVATE_KEY": None, } agent_contracts ...
35.989247
127
0.637586
import os import sys import json import pathlib import argparse import getpass from services import registry config_template = { "DAEMON_LISTENING_PORT": None, "ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io/", "AGENT_CONTRACT_ADDRESS": None, "PASSTHROUGH_ENDPOINT": None, "PASSTHROUGH_ENA...
0
0
0
0
0
2,490
0
-45
202
386c2787b07bbbb21548916bba358654d7112ce3
324
py
Python
web/app/ponthe/api/resources/__init__.py
adriensade/Galeries
2a1b53d5fa07621fa3e41b10e26af9dd32b0e874
[ "MIT" ]
null
null
null
web/app/ponthe/api/resources/__init__.py
adriensade/Galeries
2a1b53d5fa07621fa3e41b10e26af9dd32b0e874
[ "MIT" ]
1
2021-01-05T03:43:06.000Z
2021-01-05T03:43:06.000Z
web/app/ponthe/api/resources/__init__.py
adriensade/Galeries
2a1b53d5fa07621fa3e41b10e26af9dd32b0e874
[ "MIT" ]
3
2020-09-09T17:50:01.000Z
2021-07-29T19:48:49.000Z
from flask import Blueprint from flask_restplus import Api resources_api = Blueprint('api.resources', __name__) api = Api(resources_api)
21.6
75
0.799383
from flask import Blueprint from flask_login import login_required from flask_restplus import Api resources_api = Blueprint('api.resources', __name__) @resources_api.before_request # login nécessaire pour tout le blueprint @login_required def before_request(): pass api = Api(resources_api) from . import rou...
2
100
0
0
0
0
0
16
68
f017af29c562fd030b4013afd1b3c91ac7b9ba68
5,529
py
Python
tape/models/modeling_onehot.py
StephanHeijl/tape
ec631ca53217686605477cf31af4fb8846ff660f
[ "BSD-3-Clause" ]
null
null
null
tape/models/modeling_onehot.py
StephanHeijl/tape
ec631ca53217686605477cf31af4fb8846ff660f
[ "BSD-3-Clause" ]
null
null
null
tape/models/modeling_onehot.py
StephanHeijl/tape
ec631ca53217686605477cf31af4fb8846ff660f
[ "BSD-3-Clause" ]
null
null
null
import logging import torch.nn as nn logger = logging.getLogger(__name__)
34.773585
94
0.714053
import logging import typing import torch import torch.nn as nn import torch.nn.functional as F from .modeling_utils import ProteinConfig from .modeling_utils import ProteinModel from .modeling_utils import ValuePredictionHead from .modeling_utils import SequenceClassificationHead from .modeling_utils import SequenceT...
0
2,983
0
1,902
0
0
0
180
382
6569ffbb6d396e8ec850e844e082e4708d9e4f49
553
py
Python
mods/mcpython/Item/concret.py
uuk0/mcpython-a-minecraft-clone-in-python
c16cd66f319efdeec4130e1a43f5a857caf1ea13
[ "MIT" ]
2
2020-04-23T16:25:51.000Z
2020-08-27T17:56:16.000Z
mods/mcpython/Item/concret.py
uuk0/mcpython-a-minecraft-clone-in-python
c16cd66f319efdeec4130e1a43f5a857caf1ea13
[ "MIT" ]
null
null
null
mods/mcpython/Item/concret.py
uuk0/mcpython-a-minecraft-clone-in-python
c16cd66f319efdeec4130e1a43f5a857caf1ea13
[ "MIT" ]
null
null
null
for id in range(0, 16): handler.register(Concret) handler.register(ConcretPowder)
25.136364
79
0.609403
from .Item import * for id in range(0, 16): class Concret(Item): def getName(self): return "minecraft:concret_" + str(id) def getTexturFile(self): return "./assets/textures/items/concret_" + str(id) + ".png" handler.register(Concret) class ConcretPowder(Item): ...
0
0
0
386
0
0
0
-2
76
9a36f606629cbd358aa7fe281d7a4871d65f7aec
2,354
py
Python
kodexa/selectors/lextab.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
1
2020-08-31T09:32:39.000Z
2020-08-31T09:32:39.000Z
kodexa/selectors/lextab.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
13
2020-04-08T10:53:26.000Z
2022-03-30T09:51:29.000Z
kodexa/selectors/lextab.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
1
2020-04-12T13:10:51.000Z
2020-04-12T13:10:51.000Z
# lextab.py. This file automatically created by PLY (version 3.11). Don't edit! _tabversion = '3.10' _lextokens = set(('ABBREV_AXIS_AT', 'ABBREV_PATH_SEP', 'ABBREV_STEP_PARENT', 'ABBREV_STEP_SELF', 'AND_OP', 'AXISNAME', 'AXIS_SEP', 'CLOSE_BRACKET', 'CLOSE_PAREN', 'COLON', 'COMMA', 'DIV_OP', 'DOLLAR', 'EQUAL_OP', '...
214
1,629
0.607477
# lextab.py. This file automatically created by PLY (version 3.11). Don't edit! _tabversion = '3.10' _lextokens = set(('ABBREV_AXIS_AT', 'ABBREV_PATH_SEP', 'ABBREV_STEP_PARENT', 'ABBREV_STEP_SELF', 'AND_OP', 'AXISNAME', 'AXIS_SEP', 'CLOSE_BRACKET', 'CLOSE_PAREN', 'COLON', 'COMMA', 'DIV_OP', 'DOLLAR', 'EQUAL_OP', '...
0
0
0
0
0
0
0
0
0
f1cb59f2aa2534c9b605191d311ab5ce437a4d36
1,732
py
Python
getTextFromPdf/__init__.py
riccardodl/hackaton
039fd93d1397883262c3d6104b1cb30132db14af
[ "MIT" ]
null
null
null
getTextFromPdf/__init__.py
riccardodl/hackaton
039fd93d1397883262c3d6104b1cb30132db14af
[ "MIT" ]
1
2021-09-26T14:57:44.000Z
2021-09-28T14:47:30.000Z
getTextFromPdf/__init__.py
riccardodl/mydro
039fd93d1397883262c3d6104b1cb30132db14af
[ "MIT" ]
null
null
null
#from ..shared_code import database
29.355932
83
0.571594
import logging #from ..shared_code import database import azure.functions as func import csv import os def main(req: func.HttpRequest) -> func.HttpResponse: logging.info('Python HTTP trigger function processed a request.') barcode = req.params.get('barcode') if not barcode: return...
0
0
0
990
0
578
0
-21
142
4878427a44a618a4f71ea81dc23a9f7c0577db78
1,400
py
Python
color_setup.py
minyiky/micropython-nano-gui
62cd35300a7c8a115d60ce6222c2c25bee88dfba
[ "MIT" ]
null
null
null
color_setup.py
minyiky/micropython-nano-gui
62cd35300a7c8a115d60ce6222c2c25bee88dfba
[ "MIT" ]
null
null
null
color_setup.py
minyiky/micropython-nano-gui
62cd35300a7c8a115d60ce6222c2c25bee88dfba
[ "MIT" ]
null
null
null
# color_setup.py Customise for your hardware config # Released under the MIT License (MIT). See LICENSE. # Copyright (c) 2020 Peter Hinch # As written, supports: # Adafruit 1.5" 128*128 OLED display: https://www.adafruit.com/product/1431 # Adafruit 1.27" 128*96 display https://www.adafruit.com/product/1673 # Edit the...
31.111111
75
0.717857
# color_setup.py Customise for your hardware config # Released under the MIT License (MIT). See LICENSE. # Copyright (c) 2020 Peter Hinch # As written, supports: # Adafruit 1.5" 128*128 OLED display: https://www.adafruit.com/product/1431 # Adafruit 1.27" 128*96 display https://www.adafruit.com/product/1673 # Edit the...
0
0
0
0
0
0
0
0
0
c635f76e30ac35831cae0eb52cc03c89084937df
17,603
py
Python
music_dl/song_download_view.py
jmf11493/MusicDownloader
a1a81ebcb81e308ba8eb5b2988d555538a8f5b85
[ "MIT" ]
1
2020-11-23T23:03:37.000Z
2020-11-23T23:03:37.000Z
music_dl/song_download_view.py
jmf11493/MusicDownloader
a1a81ebcb81e308ba8eb5b2988d555538a8f5b85
[ "MIT" ]
null
null
null
music_dl/song_download_view.py
jmf11493/MusicDownloader
a1a81ebcb81e308ba8eb5b2988d555538a8f5b85
[ "MIT" ]
null
null
null
''' Created on Aug 5, 2020 @author: Jeff ''' import PyQt5 from PyQt5 import QtCore #Fixes scaling issues on high res monitors if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'): PyQt5.QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'): PyQ...
55.181818
141
0.723115
''' Created on Aug 5, 2020 @author: Jeff ''' import PyQt5 from PyQt5 import QtCore, QtGui, QtWidgets import datetime import pyperclip #Fixes scaling issues on high res monitors if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'): PyQt5.QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) if ...
0
0
0
17,133
0
0
0
7
67
b0b2259596b94f62d88beb02963a3a8b7e67d1cd
17,224
py
Python
sbpl_perception/src/scripts/tools/fat_dataset/image_node.py
Tacha-S/perception
aefbb5612c84b46a745c7db4fe860a2456d6e7ef
[ "BSD-3-Clause" ]
17
2020-07-08T06:38:22.000Z
2021-09-20T01:18:12.000Z
sbpl_perception/src/scripts/tools/fat_dataset/image_node.py
Tacha-S/perception
aefbb5612c84b46a745c7db4fe860a2456d6e7ef
[ "BSD-3-Clause" ]
116
2019-03-10T23:02:44.000Z
2021-07-22T15:28:14.000Z
sbpl_perception/src/scripts/tools/fat_dataset/image_node.py
Tacha-S/perception
aefbb5612c84b46a745c7db4fe860a2456d6e7ef
[ "BSD-3-Clause" ]
4
2019-12-08T23:20:36.000Z
2021-06-02T09:32:30.000Z
#!/usr/bin/env python # Copyright (c) 2018 NVIDIA Corporation. All rights reserved. # This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. # https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode """ This file starts a ROS node to run DOPE, listening to ...
47.060109
134
0.617569
#!/usr/bin/env python # Copyright (c) 2018 NVIDIA Corporation. All rights reserved. # This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. # https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode """ This file starts a ROS node to run DOPE, listening to ...
0
0
0
14,479
0
1,493
0
55
509
11e3a27eae4108d6df665dbc31ac6480b3623932
13,736
py
Python
vendor/packages/translate-toolkit/translate/storage/poheader.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/translate-toolkit/translate/storage/poheader.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/translate-toolkit/translate/storage/poheader.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2002-2009 Zuza Software Foundation # # This file is part of the Translate Toolkit. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; e...
37.632877
113
0.593987
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2002-2009 Zuza Software Foundation # # This file is part of the Translate Toolkit. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; e...
0
0
0
10,815
0
0
0
12
45
04f8918cd5c17c29ccf6e674945fb34501013389
24,030
py
Python
spyne/test/util/test_address.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
786
2015-01-04T10:46:28.000Z
2022-03-31T19:24:35.000Z
spyne/test/util/test_address.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
248
2015-01-01T21:52:47.000Z
2022-03-09T08:55:04.000Z
spyne/test/util/test_address.py
edustaff/spyne
27f2061325d29a55803fb47b1b37978ab21ea240
[ "BSD-3-Clause" ]
210
2015-01-10T14:20:31.000Z
2022-03-09T08:38:43.000Z
#!/usr/bin/env python # # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ve...
37.546875
117
0.622846
#!/usr/bin/env python # # spyne - Copyright (C) Spyne contributors. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ve...
0
0
0
21,790
0
0
0
32
138
4eee8c95361210f45c648d71b01bb81440788c41
1,261
py
Python
kbf2launcher.py
lrobidou/kbf
443da37c9c9c450292bb43bd149c2a32fde1acf0
[ "BSD-2-Clause" ]
null
null
null
kbf2launcher.py
lrobidou/kbf
443da37c9c9c450292bb43bd149c2a32fde1acf0
[ "BSD-2-Clause" ]
null
null
null
kbf2launcher.py
lrobidou/kbf
443da37c9c9c450292bb43bd149c2a32fde1acf0
[ "BSD-2-Clause" ]
null
null
null
size_factors = [3, 5, 7, 9, 15, 18, 21, 24] if __name__ == "__main__": main()
26.829787
314
0.636003
import os import json size_factors = [3, 5, 7, 9, 15, 18, 21, 24] def exe_2kbf(): for size_factor in size_factors: cmd = ( "./memused.sh ./build/thirdparty/libbf/bin/kbf2only /groups/genscale/NGSdatasets/metagenomics/hmp/SRS014107_SRS016349_fasta/SRS014107.denovo_duplicates_marked.trimmed.1....
0
0
0
0
0
1,081
0
-22
113
1f674cdb92e3f35240553b16c0a9ec32289d2783
45
py
Python
settings/timing_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/timing_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/timing_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
lxd.adjust_timing_tool = False lxd.offset = 0
22.5
30
0.8
lxd.adjust_timing_tool = False lxd.offset = 0
0
0
0
0
0
0
0
0
0
76bf550b548b28e252440c8627507b6adffba57b
1,130
py
Python
src/modular/promedioCapi.py
GokoshiJr/algoritmos2-py
106dcbed31739309c193a77c671522aac17f6e45
[ "MIT" ]
null
null
null
src/modular/promedioCapi.py
GokoshiJr/algoritmos2-py
106dcbed31739309c193a77c671522aac17f6e45
[ "MIT" ]
null
null
null
src/modular/promedioCapi.py
GokoshiJr/algoritmos2-py
106dcbed31739309c193a77c671522aac17f6e45
[ "MIT" ]
null
null
null
# 14. Leer un lote de N nmeros y determine el promedio de mltiplos de 7 que contengan, # cuntos son capicas (Si el nmero y su inverso son iguales). # Ejemplo: Si N = 8 [49, 2, 7, 34, 55, 105, 121, 53] # Promedio de Mltiplos de 7: 53.67 # Cantidad de Capicas: 4 numeros = [49, 2, 7, 34, 55, 105, 121, 53] mostr...
30.540541
90
0.558407
# 14. Leer un lote de N números y determine el promedio de múltiplos de 7 que contengan, # cuántos son capicúas (Si el número y su inverso son iguales). # Ejemplo: Si N = 8 [49, 2, 7, 34, 55, 105, 121, 53] # → Promedio de Múltiplos de 7: 53.67 # Cantidad de Capicúas: 4 def capicua(numero): aux = numero ...
17
0
0
0
0
714
0
0
75
d9d60dec6f6fe77ca8fac9ef0d7b7186f5e55c75
2,275
py
Python
markdown-html.py
jd-0001/markdown-html-action
c32f5d6429d878184927e063aa042460a7764774
[ "MIT" ]
null
null
null
markdown-html.py
jd-0001/markdown-html-action
c32f5d6429d878184927e063aa042460a7764774
[ "MIT" ]
null
null
null
markdown-html.py
jd-0001/markdown-html-action
c32f5d6429d878184927e063aa042460a7764774
[ "MIT" ]
null
null
null
#!/bin/python3 print("- Markdown-HTML -") import markdown, natsort, os, json, pathlib REPO_PATH = pathlib.Path(os.environ['GITHUB_WORKSPACE']) INPUT_LIST = json.loads(os.environ['INPUT_INPUT_FILES']) OUTPUT_LIST = json.loads(os.environ['INPUT_OUTPUT_FILES']) EXCLUDE_DUPLICATES : bool = json.loads(os.environ['INPUT_E...
43.75
133
0.717363
#!/bin/python3 print("- Markdown-HTML -") import markdown, natsort, os, json, pathlib REPO_PATH = pathlib.Path(os.environ['GITHUB_WORKSPACE']) INPUT_LIST = json.loads(os.environ['INPUT_INPUT_FILES']) OUTPUT_LIST = json.loads(os.environ['INPUT_OUTPUT_FILES']) EXCLUDE_DUPLICATES : bool = json.loads(os.environ['INPUT_E...
0
0
0
0
0
0
0
0
0
d03f0c3ea3c7a1f67c7cc9c54bd8715c8caa71e3
4,570
py
Python
app-testing/src/menus/robots_list.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
235
2017-10-27T20:37:27.000Z
2022-03-30T14:09:49.000Z
app-testing/src/menus/robots_list.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
8,425
2017-10-26T15:25:43.000Z
2022-03-31T23:54:26.000Z
app-testing/src/menus/robots_list.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
130
2017-11-09T21:02:37.000Z
2022-03-15T18:01:24.000Z
"""Model for the list of robots.""" import logging from typing import Tuple from selenium.webdriver.common.by import By logger = logging.getLogger(__name__) def get_robot_toggle_selector(name: str) -> Tuple[str, str]: """Get the locator Tuple for a robot's toggle by name of the robot.""" return (By.XPATH, f"...
38.728814
86
0.657768
"""Model for the list of robots.""" import logging from typing import Tuple from selenium.common.exceptions import TimeoutException from selenium.webdriver.chrome.webdriver import WebDriver from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.su...
0
1,357
0
1,966
0
0
0
208
156
7c8375bcfe43cb6e617e5e6c55e4b8541b7e46d9
916
py
Python
setup.py
nstebbins/benosman-models
5adee44eca4f326c3b0a1cc7eee2049cff2a8dff
[ "MIT" ]
null
null
null
setup.py
nstebbins/benosman-models
5adee44eca4f326c3b0a1cc7eee2049cff2a8dff
[ "MIT" ]
1
2018-12-12T19:41:30.000Z
2018-12-18T20:22:36.000Z
setup.py
nstebbins/neuralkernel
5adee44eca4f326c3b0a1cc7eee2049cff2a8dff
[ "MIT" ]
null
null
null
from codecs import open from os import path from setuptools import setup, find_packages # adding README here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='neuralkernel', version='0.0.8', description='neu...
30.533333
79
0.675764
from codecs import open from os import path from setuptools import setup, find_packages # adding README here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='neuralkernel', version='0.0.8', description='neu...
0
0
0
0
0
0
0
0
0
8acdbdf251549520d2ff1fb05705bd2a39585cf2
1,391
py
Python
todo_app/home/views.py
almamunx/Django-app
4a5519cef0791d8659af242857fd703d5dde48ad
[ "MIT" ]
null
null
null
todo_app/home/views.py
almamunx/Django-app
4a5519cef0791d8659af242857fd703d5dde48ad
[ "MIT" ]
1
2020-08-10T16:50:48.000Z
2020-08-10T16:50:48.000Z
todo_app/home/views.py
almamunx/Django-app
4a5519cef0791d8659af242857fd703d5dde48ad
[ "MIT" ]
null
null
null
# Create your views here.
28.387755
73
0.631919
from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse from django.forms import modelform_factory from home.models import Todo # Create your views here. def index(request): tasks = Todo.objects.all() return render(request, "home/index.html", {"tasks" : tasks}) ...
0
0
0
0
0
1,072
0
86
203
b09ea09cff1ec08fe91e02a757ec9d81fff5de5d
2,908
py
Python
A2FTC.py
eddykay310/ABI-2-FASTA-consolidator
3e7606f102ee8ff8dc21489e6f49e5db10c0ec45
[ "BSD-2-Clause" ]
null
null
null
A2FTC.py
eddykay310/ABI-2-FASTA-consolidator
3e7606f102ee8ff8dc21489e6f49e5db10c0ec45
[ "BSD-2-Clause" ]
null
null
null
A2FTC.py
eddykay310/ABI-2-FASTA-consolidator
3e7606f102ee8ff8dc21489e6f49e5db10c0ec45
[ "BSD-2-Clause" ]
null
null
null
import os from Bio import SeqIO import shutil import subprocess import webbrowser # Converts files from abi to fasta homeDIR = os.getcwd() counter = 0 sourcefiles = os.listdir(homeDIR) destinationpath = f"{homeDIR}\FASTA" for filename in os.listdir(homeDIR): if filename.endswith(".ab1"): count = SeqIO.convert(fi...
32.674157
150
0.673659
import os from Bio import SeqIO import shutil import subprocess import webbrowser # Converts files from abi to fasta homeDIR = os.getcwd() counter = 0 sourcefiles = os.listdir(homeDIR) destinationpath = f"{homeDIR}\FASTA" for filename in os.listdir(homeDIR): if filename.endswith(".ab1"): count = SeqIO.convert(fi...
0
0
0
0
0
0
0
0
0
814346e9ac19ac6a9280c5bf00d3aef147a9d1a8
1,234
py
Python
tests/python/pants_test/backend/graph_info/tasks/test_cloc_integration.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/graph_info/tasks/test_cloc_integration.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/graph_info/tasks/test_cloc_integration.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE).
44.071429
99
0.43517
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from textwrap import dedent from pants.testutil.pants_run_integration_test import PantsRunIntegrationTest class ClocIntegrationTest(PantsRunIntegrationTest): def test_cloc(self): ...
0
0
0
971
0
0
0
62
69
af3f561850ed8f429e086b4017179b23212b038b
266
py
Python
1047.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-09-21T18:50:20.000Z
2021-12-14T13:07:31.000Z
1047.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
1047.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
st,sm,et,em=map(int,input().split()) rt=et-st if rt<0:rt=24+(et-st) rm=em-sm if rm<0: rm=60+(em-sm) rt-=1 if et==st and em==sm:print("O JOGO DUROU 24 HORA(S) E 0 MINUTO(S)") else: if rt<0:rt=24+rt print(f"O JOGO DUROU {rt} HORA(S) E {rm} MINUTO(S)")
22.166667
67
0.590226
st,sm,et,em=map(int,input().split()) rt=et-st if rt<0:rt=24+(et-st) rm=em-sm if rm<0: rm=60+(em-sm) rt-=1 if et==st and em==sm:print("O JOGO DUROU 24 HORA(S) E 0 MINUTO(S)") else: if rt<0:rt=24+rt print(f"O JOGO DUROU {rt} HORA(S) E {rm} MINUTO(S)")
0
0
0
0
0
0
0
0
0
09cad5f4ae4c9b724922bb8525108f8c8fe3600d
355
py
Python
be/manage.py
moyui/EducationalSystem
441cb674e8c8736c87464823aa01fa12f928eafd
[ "MIT" ]
1
2019-09-04T11:18:29.000Z
2019-09-04T11:18:29.000Z
be/manage.py
moyui/EducationalSystem
441cb674e8c8736c87464823aa01fa12f928eafd
[ "MIT" ]
null
null
null
be/manage.py
moyui/EducationalSystem
441cb674e8c8736c87464823aa01fa12f928eafd
[ "MIT" ]
null
null
null
import os from app import create_app from ext import db from flask_script import Manager from flask_migrate import Migrate, MigrateCommand import app.model app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) manager = Manager(app) manager.add_command('db', MigrateCommand) if __name_...
19.722222
56
0.769014
import os from app import create_app from ext import db from flask_script import Manager from flask_migrate import Migrate, MigrateCommand import app.model app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) manager = Manager(app) manager.add_command('db', MigrateCommand) if __name_...
0
0
0
0
0
0
0
0
0
209fa211cae90bab5dfff15b501bac9794716b9b
1,931
py
Python
lcs/lcs.py
vsoch/algorithms
ebba4cb609b475633d1f5e45fbf218471b64327e
[ "BSD-3-Clause" ]
1
2020-07-04T15:45:15.000Z
2020-07-04T15:45:15.000Z
lcs/lcs.py
vsoch/algorithms
ebba4cb609b475633d1f5e45fbf218471b64327e
[ "BSD-3-Clause" ]
8
2018-04-09T18:58:40.000Z
2020-09-08T16:34:08.000Z
lcs/lcs.py
vsoch/algorithms
ebba4cb609b475633d1f5e45fbf218471b64327e
[ "BSD-3-Clause" ]
2
2018-04-09T17:15:40.000Z
2020-11-14T13:34:57.000Z
#!/usr/bin/env python # longest common subsequence X = "AGGTAB" Y = "GXTXAYB" print ("Length of Longest Common Subsequence is ", lcs(X , Y, len(X), len(Y))) # least common subsequence X = "AGGTAB" Y = "GXTXAYB" print ("Length of Least Common Subsequence is ", lcs(X , Y, len(X), len(Y))) # longest increasing sub...
24.75641
78
0.564474
#!/usr/bin/env python # longest common subsequence def lcs(A, B, n, m): # X is a sequence A # Y is a sequence, B # n is the starting index into A # m is the starting index into B # Case 1, one of them doesn't have length if n == 0 or m == 0: return 0 # Case 2: the last two chara...
0
0
0
0
0
1,427
0
0
69
b5f79a2242c0c9dadec624046f54532b118c01c0
102
py
Python
PyCharm/Primer_13.py
tamaranesterenko/Python.LR_11
6858c25e7513eac8e157a74a14835012df0f5701
[ "MIT" ]
null
null
null
PyCharm/Primer_13.py
tamaranesterenko/Python.LR_11
6858c25e7513eac8e157a74a14835012df0f5701
[ "MIT" ]
null
null
null
PyCharm/Primer_13.py
tamaranesterenko/Python.LR_11
6858c25e7513eac8e157a74a14835012df0f5701
[ "MIT" ]
null
null
null
one_or_many(1) one_or_many('1', 1, 2, 'abc') one_or_many()
12.75
30
0.598039
def one_or_many(*a): print(a) one_or_many(1) one_or_many('1', 1, 2, 'abc') one_or_many()
0
0
0
0
0
13
0
0
23
5d03fcbd62ec3ec9cd1327b830cd5f7da997ee1d
19,268
py
Python
src/estimators/stratified_sketch.py
PrivacyAmp/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
20
2020-03-30T22:39:32.000Z
2022-03-09T06:32:14.000Z
src/estimators/stratified_sketch.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
41
2020-05-01T01:09:38.000Z
2021-10-15T17:53:31.000Z
src/estimators/stratified_sketch.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
8
2020-06-18T22:33:14.000Z
2021-05-03T13:39:12.000Z
# Copyright 2020 The Private Cardinality Estimation Framework Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
36.014953
94
0.664054
# Copyright 2020 The Private Cardinality Estimation Framework Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
0
4,102
0
14,090
0
0
0
191
247
627bb93d6282def4ba0f9153c0fb72036913ef79
11,162
py
Python
pyflocker/ciphers/backends/cryptography_/RSA.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
pyflocker/ciphers/backends/cryptography_/RSA.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
pyflocker/ciphers/backends/cryptography_/RSA.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
from __future__ import annotations import typing from ... import base, exc def generate(bits: int, e: int = 65537) -> RSAPrivateKey: """ Generate a private key with given key modulus ``bits`` and public exponent ``e`` (default 65537). Recommended size of ``bits`` > 1024. Args: bits: T...
29.143603
79
0.591202
from __future__ import annotations import typing from functools import partial import cryptography.exceptions as bkx from cryptography.hazmat.primitives import serialization as serial from cryptography.hazmat.primitives.asymmetric import rsa, utils from cryptography.hazmat.primitives.serialization import ( Encodi...
0
2,276
0
7,042
0
0
0
231
315
185cb129fa4c0d410827a6bd45bbab22368918a1
1,282
py
Python
main.py
JackStarr91/HelloRobot2
7a07253b5657759cd2d3cd3d47fd9723954ca3c6
[ "MIT" ]
null
null
null
main.py
JackStarr91/HelloRobot2
7a07253b5657759cd2d3cd3d47fd9723954ca3c6
[ "MIT" ]
null
null
null
main.py
JackStarr91/HelloRobot2
7a07253b5657759cd2d3cd3d47fd9723954ca3c6
[ "MIT" ]
null
null
null
p = Piggy() try: menu() except(KeyboardInterrupt, SystemExit): stop()
20.349206
90
0.49454
from gopigo import * import time class Piggy(object): def __init__(self): print("I AM ALIVE") def pulse(self): """check for obstacles, drive fixed amount forward""" look = us_dist(15) # store the distance reading if look > 80: fwd() time.sleep(1) ...
0
0
0
847
0
249
0
-12
116
5cbecc716ff94792c77202d936aeb5c4c4ab1629
393
py
Python
Easy/String Mask/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Easy/String Mask/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Easy/String Mask/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
import sys lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: word, pattern = line.split(' ') for i in range(len(pattern)): insert = word[i].lower() if pattern[i] == '0' else word[i].upper() word = w...
30.230769
79
0.501272
import sys lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: word, pattern = line.split(' ') for i in range(len(pattern)): insert = word[i].lower() if pattern[i] == '0' else word[i].upper() word = w...
0
0
0
0
0
0
0
0
0
973b56be16d52fd92c9d33d0e72c257fbd226980
7,676
py
Python
script/ngram-server.py
cesine/phonetisaurus
d50d503f39f42cb71c5fd270e26463f54a66cd3c
[ "BSD-3-Clause", "BSD-2-Clause", "Apache-2.0" ]
2
2016-10-25T12:59:33.000Z
2019-10-04T20:51:05.000Z
script/ngram-server.py
cesine/phonetisaurus
d50d503f39f42cb71c5fd270e26463f54a66cd3c
[ "BSD-3-Clause", "BSD-2-Clause", "Apache-2.0" ]
1
2017-07-20T19:30:04.000Z
2019-10-04T21:09:30.000Z
script/ngram-server.py
cesine/phonetisaurus
d50d503f39f42cb71c5fd270e26463f54a66cd3c
[ "BSD-3-Clause", "BSD-2-Clause", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) Twisted Matrix Laboratories. # Transformed into a cheesy ngram-server by JRN # See LICENSE for details. # # Copyright (c) [2014-], Yandex, LLC # Author: jorono@yandex-team.ru (Josef Robert Novak) # All rights reserved. # # Redistribution and use in source and binary forms, with o...
39.772021
85
0.592496
#!/usr/bin/env python # Copyright (c) Twisted Matrix Laboratories. # Transformed into a cheesy ngram-server by JRN # See LICENSE for details. # # Copyright (c) [2014-], Yandex, LLC # Author: jorono@yandex-team.ru (Josef Robert Novak) # All rights reserved. # # Redistribution and use in source and binary forms, with o...
0
0
0
2,448
0
620
0
0
113
fe7a35b32e0811ea7af958efa1ce9f98330c9b18
109
py
Python
Mundo 1/ex016.py
sandenbergmelo/ExerciciosPython
049958801823b1b9b23b0e80f6f1bcf8cd272efe
[ "MIT" ]
1
2021-05-12T18:44:11.000Z
2021-05-12T18:44:11.000Z
Mundo 1/ex016.py
sandenbergmelo/ExerciciosPython
049958801823b1b9b23b0e80f6f1bcf8cd272efe
[ "MIT" ]
null
null
null
Mundo 1/ex016.py
sandenbergmelo/ExerciciosPython
049958801823b1b9b23b0e80f6f1bcf8cd272efe
[ "MIT" ]
null
null
null
from math import trunc n = float(input('Digite um valor: ')) print(f'A poro inteira de {n} {trunc(n)}')
21.8
46
0.669725
from math import trunc n = float(input('Digite um valor: ')) print(f'A porção inteira de {n} é {trunc(n)}')
6
0
0
0
0
0
0
0
0
c9bbb53448ff5e11aa6bc91a100feece21597b65
284
py
Python
chaos-test/chaostest/chaostest/utils/chaos_custom_exception.py
sumitnagal/litmus-python
3aef8ad917df41b175018603a373829f5682a587
[ "Apache-2.0" ]
8
2020-04-17T06:34:30.000Z
2021-12-18T10:54:50.000Z
byoc/chaostest/chaostest/utils/chaos_custom_exception.py
oumkale/test-python
1f3d3e42ffbe1bf5ed9df8a0c6038e50129b2c4d
[ "Apache-2.0" ]
15
2020-04-18T06:01:53.000Z
2022-02-15T08:56:25.000Z
byoc/chaostest/chaostest/utils/chaos_custom_exception.py
oumkale/test-python
1f3d3e42ffbe1bf5ed9df8a0c6038e50129b2c4d
[ "Apache-2.0" ]
12
2020-04-17T05:14:27.000Z
2022-03-29T19:24:20.000Z
__author__ = 'Vijay_Thomas@intuit.com'
23.666667
62
0.697183
__author__ = 'Vijay_Thomas@intuit.com' class ChaosTestException(Exception): def __init__(self, message): self.message = message super(ChaosTestException, self).__init__(self.message) def __str__(self): return "Chaos test exception=" + self.message
0
0
0
221
0
0
0
0
23
c50874a5504e6b2bb41369525f0ee773694745e1
10,200
py
Python
alipay/aop/api/domain/VoucherItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/VoucherItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/VoucherItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from alipay.aop.api.domain.VoucherTimeRule import VoucherTimeRule
36.042403
93
0.613333
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.VoucherTimeRule import VoucherTimeRule from alipay.aop.api.domain.VoucherSingleItemInfo import VoucherSingleItemInfo from alipay.aop.api.domain.PromoInfo import PromoInfo from alipa...
0
3,991
0
5,807
0
0
0
153
134
740df48c6f9e9e943d0b263430722890ea90be48
660
py
Python
var.py
Slainlight/Pyglet-Game-Template
957aede8221e6d8677ad719ed12a4be0ecc04366
[ "MIT" ]
null
null
null
var.py
Slainlight/Pyglet-Game-Template
957aede8221e6d8677ad719ed12a4be0ecc04366
[ "MIT" ]
null
null
null
var.py
Slainlight/Pyglet-Game-Template
957aede8221e6d8677ad719ed12a4be0ecc04366
[ "MIT" ]
null
null
null
from pyglet.window import key import pyglet import assets # Window caption = "Colors" #icon = pyglet.image.load("Assets/mario.png") wWidth, wHeight = 1280, 720 window = pyglet.window.Window(wWidth,wHeight) window.set_caption(caption) window.set_icon(assets.icon) # Keyboard keys = key.KeyStateHandler(...
18.333333
53
0.728788
from pyglet.window import key import pyglet import directories import assets # Window caption = "Colors" #icon = pyglet.image.load("Assets/mario.png") wWidth, wHeight = 1280, 720 window = pyglet.window.Window(wWidth,wHeight) window.set_caption(caption) window.set_icon(assets.icon) # Keyboard keys ...
0
0
0
0
0
0
0
-3
25
32a5104f70cf9a6022ee3734815fc97241255f92
6,303
py
Python
gffMergeOverlaps.py
mcsimenc/GenomicsScripts
a9c169ef30ddbdedc8537ad20627ba0df322db1f
[ "MIT" ]
1
2021-11-19T10:30:16.000Z
2021-11-19T10:30:16.000Z
gffMergeOverlaps.py
mcsimenc/GenomicsScripts
a9c169ef30ddbdedc8537ad20627ba0df322db1f
[ "MIT" ]
1
2021-11-01T19:06:36.000Z
2021-11-01T19:06:36.000Z
gffMergeOverlaps.py
mcsimenc/GenomicsScripts
a9c169ef30ddbdedc8537ad20627ba0df322db1f
[ "MIT" ]
1
2021-07-11T18:32:19.000Z
2021-07-11T18:32:19.000Z
#!/usr/bin/env python3 import sys def mergeCoords(A, B): """Takes two tuples of coordinates A and B as arguments; A must have a start coordinate before or equal to the start coordinate of B. If they do not overlap then A and B are returned as input and if they overlap the minimum and maximum values...
36.224138
82
0.568301
#!/usr/bin/env python3 import sys def help(): print(""" Usage: ------------ mergeGFF-Overlaps.py < file.gff > output.gff Description: ------------ Combines overlapping features in the input GFF3 file into a single feature. Score and attributes are removed. Commented lines are i...
0
0
0
2,830
0
472
0
0
46
0a1d90657c833aca8e33481efcee423b95646c0c
51,536
py
Python
Rebuttal/RuntimeSpeedUpComparison/2 Without Caching/learn_2.py
sunyi000/SafeLearner
bf93268c9107f3404696b9212accaace1a0e76ee
[ "Apache-2.0" ]
6
2019-10-03T04:18:17.000Z
2020-12-18T16:13:34.000Z
Rebuttal/RuntimeSpeedUpComparison/2 Without Caching/learn_2.py
sunyi000/SafeLearner
bf93268c9107f3404696b9212accaace1a0e76ee
[ "Apache-2.0" ]
null
null
null
Rebuttal/RuntimeSpeedUpComparison/2 Without Caching/learn_2.py
sunyi000/SafeLearner
bf93268c9107f3404696b9212accaace1a0e76ee
[ "Apache-2.0" ]
2
2019-10-16T21:13:04.000Z
2022-02-02T14:00:54.000Z
from __future__ import print_function # from sympy.parsing.sympy_parser import parse_expr # from sympy import lambdify, symbols # from numericSS import numericSS # Numeric Safe Sample
43.343987
1,603
0.439887
from __future__ import print_function from problog.logic import Var, Term, Constant from itertools import product from logging import getLogger from problog.util import Timer import logging from getSQLQuery import getSQLQuery # from sympy.parsing.sympy_parser import parse_expr # from sympy import lambdify, symbols fro...
0
324
0
50,563
0
0
0
71
379
63bb09c133d4116b5976ef0e31655ce5a0fe9ba1
299
py
Python
arp_test.py
cleoPinoli/demo_wakeonlan
42b464763139308b69bf8e68ac5446a4ab9ed0ee
[ "MIT" ]
null
null
null
arp_test.py
cleoPinoli/demo_wakeonlan
42b464763139308b69bf8e68ac5446a4ab9ed0ee
[ "MIT" ]
null
null
null
arp_test.py
cleoPinoli/demo_wakeonlan
42b464763139308b69bf8e68ac5446a4ab9ed0ee
[ "MIT" ]
null
null
null
# checks if the scanned IP address equals the target
24.916667
73
0.561873
import os # checks if the scanned IP address equals the target def arp_request(target_ip): with os.popen('arp -a') as f: data = f.read() import re for line in re.findall('([-.0-9]+)\s+([-0-9a-f]{17})\s+(\w+)', data): if line[0] == target_ip: return line[1]
0
0
0
0
0
212
0
-12
44
c0a27e3844cf3b6bdaac643499b728353fd7def6
1,619
py
Python
checkImageSize/py/main.py
zhengpj95/work_pro_tools
086394ad313e983a6890f6f6275b3009e48416cd
[ "MIT" ]
null
null
null
checkImageSize/py/main.py
zhengpj95/work_pro_tools
086394ad313e983a6890f6f6275b3009e48416cd
[ "MIT" ]
null
null
null
checkImageSize/py/main.py
zhengpj95/work_pro_tools
086394ad313e983a6890f6f6275b3009e48416cd
[ "MIT" ]
null
null
null
if __name__ == '__main__': obj = readJson() if obj is None: print('not obj data') else: result = readDirList() writeResult()
24.164179
105
0.554046
import json import os def readJson(): file = open('./config.json', 'r') content = file.read() obj = json.loads(content) file.close() return obj def readDirList(): # print('start to read ' + obj['root']) result = [] # os.walk第二个参数表示是自定向下,还是自下向定 # os.walk返回三元数组(root, dirs, files) ...
201
0
0
0
0
1,271
0
-22
136
4a3cc3ca7c033fb4adda429ba38f6e3352f106b7
9,975
py
Python
gnn_agglomeration/pyg_datasets/hemibrain_graph.py
bentaculum/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
2
2021-05-19T01:56:52.000Z
2021-07-08T20:50:38.000Z
gnn_agglomeration/pyg_datasets/hemibrain_graph.py
benjamin9555/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
14
2019-07-17T19:23:09.000Z
2021-02-02T22:01:49.000Z
gnn_agglomeration/pyg_datasets/hemibrain_graph.py
benjamin9555/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
2
2019-07-17T20:14:03.000Z
2019-07-27T16:20:52.000Z
import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO)
38.81323
155
0.609925
import torch from torch_geometric.data import Data import logging import numpy as np from abc import ABC, abstractmethod import time from time import time as now from funlib.segment.arrays import replace_values from gnn_agglomeration import utils logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) cl...
0
1,034
0
8,601
0
0
0
56
200
0765a45dd8a24a23007e110daefa432375578e7d
1,981
py
Python
tests/pyconjp_domains/fixtures/factories__category_factory.py
pyconjp/talks.domain.2021
e5c2558c552ebec40d683f84816375eeafe55705
[ "MIT" ]
null
null
null
tests/pyconjp_domains/fixtures/factories__category_factory.py
pyconjp/talks.domain.2021
e5c2558c552ebec40d683f84816375eeafe55705
[ "MIT" ]
7
2021-09-29T14:11:21.000Z
2021-10-10T10:19:35.000Z
tests/pyconjp_domains/fixtures/factories__category_factory.py
pyconjp/talks.domain.2021
e5c2558c552ebec40d683f84816375eeafe55705
[ "MIT" ]
null
null
null
from pyconjp_domains.talks import Category categories_raw_data = [ { "id": 30061, "title": "Track", "items": [ {"id": 80001, "name": "Track1"}, {"id": 80002, "name": "Track2"}, {"id": 80003, "name": "Track3"}, {"id": 80004, "name": "Track4"}, ...
24.158537
65
0.4947
from pyconjp_domains.talks import Category categories_raw_data = [ { "id": 30061, "title": "Track", "items": [ {"id": 80001, "name": "Track1"}, {"id": 80002, "name": "Track2"}, {"id": 80003, "name": "Track3"}, {"id": 80004, "name": "Track4"}, ...
63
0
0
0
0
0
0
0
0
f31b463dcf2489ad89f9a464143e3327f9b699c6
330
py
Python
_modules/tachyon.py
nokia/saltstack-formulas
41f46dbb91622dc0eb05bfba5d2d4a0a10d4c130
[ "Apache-2.0" ]
9
2016-04-12T05:22:55.000Z
2022-03-01T14:48:07.000Z
_modules/tachyon.py
nokia/saltstack-formulas
41f46dbb91622dc0eb05bfba5d2d4a0a10d4c130
[ "Apache-2.0" ]
null
null
null
_modules/tachyon.py
nokia/saltstack-formulas
41f46dbb91622dc0eb05bfba5d2d4a0a10d4c130
[ "Apache-2.0" ]
5
2016-02-28T03:45:33.000Z
2021-11-05T14:55:01.000Z
def masters(): """Gets tachyon masters :return: """ return __salt__['search.mine_by_host']('roles:tachyon.master') def is_primary_master(): """Checks whether current host is the first one created as tachyon master :return: """ return __salt__['search.is_primary_host']('roles:tachyon...
20.625
77
0.672727
def masters(): """Gets tachyon masters :return: """ return __salt__['search.mine_by_host']('roles:tachyon.master') def is_primary_master(): """Checks whether current host is the first one created as tachyon master :return: """ return __salt__['search.is_primary_host']('roles:tachyon...
0
0
0
0
0
0
0
0
0
d1db53d91d4f8c39e6746fe0bdf712f57f636383
41,609
py
Python
scipy/signal/signaltools.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/signal/signaltools.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/signal/signaltools.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
# Author: Travis Oliphant # 1999 -- 2002 import warnings import sigtools from scipy import linalg from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2, fftn, ifftn, fftfreq from numpy import polyadd, polymul, polydiv, polysub, roots, poly, polyval, polyder, cast, asarray, isscalar, atleast_1d, ones, real, real...
30.505132
84
0.540364
# Author: Travis Oliphant # 1999 -- 2002 import warnings import sigtools from scipy import linalg from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2, fftn, \ ifftn, fftfreq from numpy import polyadd, polymul, polydiv, polysub, roots, \ poly, polyval, polyder, cast, asarray, isscalar, atleast_...
0
0
0
0
0
2,509
0
60
115
4111867e97185975d62c05d920fea9aa699391dd
915
py
Python
app/__init__.py
leskeylevy/flaskBackend
1cada27072517234f37991a3ef655f8c63d13867
[ "MIT" ]
null
null
null
app/__init__.py
leskeylevy/flaskBackend
1cada27072517234f37991a3ef655f8c63d13867
[ "MIT" ]
null
null
null
app/__init__.py
leskeylevy/flaskBackend
1cada27072517234f37991a3ef655f8c63d13867
[ "MIT" ]
null
null
null
from flask_restx import Api from flask import Blueprint from .main.controller.user_controller import api as user_ns from .main.controller.auth_controller import api as auth_ns from .main.controller.blog_controller import api as blog_ns from .main.controller.comments_controller import api as comments_ns from .main.cont...
38.125
69
0.777049
from flask_restx import Api from flask import Blueprint from .main.controller.user_controller import api as user_ns from .main.controller.auth_controller import api as auth_ns from .main.controller.blog_controller import api as blog_ns from .main.controller.comments_controller import api as comments_ns from .main.cont...
0
0
0
0
0
0
0
0
0
aaad8d4ac7acfa4d22c850d4b88688c4aba62eef
155
py
Python
src/genie/libs/parser/iosxe/tests/ShowTenantOmpRoutesVpnAdvertised/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowTenantOmpRoutesVpnAdvertised/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowTenantOmpRoutesVpnAdvertised/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output={'vpn': {'1002': {'prefix': ['10.111.2.0/24', '10.154.2.0/24', '10.51.2.0/24']}}}
51.666667
61
0.348387
expected_output={'vpn': {'1002': {'prefix': ['10.111.2.0/24', '10.154.2.0/24', '10.51.2.0/24']}}}
0
0
0
0
0
0
0
0
0
abc1f8a45799e41ababcbe64c025aaa41f7241e7
658
py
Python
1405/a2q1.py
hughxie/class-code
7819633936571e91d9808c3a30f89131443c5ee7
[ "MIT" ]
3
2017-12-12T03:41:29.000Z
2018-04-10T03:01:57.000Z
1405/a2q1.py
hughxie/class-code
7819633936571e91d9808c3a30f89131443c5ee7
[ "MIT" ]
1
2017-11-27T03:10:16.000Z
2017-11-27T03:10:55.000Z
1405/a2q1.py
hughxie/class-code
7819633936571e91d9808c3a30f89131443c5ee7
[ "MIT" ]
null
null
null
#HUGHXIE #a2q1.py import random #get random number between 1 and 100 number = (random.randint(1,100)) #TEST print(str(number)) #initial guess guess = input("Enter guess: ") while True: #checks if input is valid if guess.isdigit()==True and int(guess)<101: if (int(guess) > number): guess = i...
26.32
66
0.591185
#HUGHXIE #a2q1.py import random #get random number between 1 and 100 number = (random.randint(1,100)) #TEST print(str(number)) #initial guess guess = input("Enter guess: ") while True: #checks if input is valid if guess.isdigit()==True and int(guess)<101: if (int(guess) > number): guess = i...
0
0
0
0
0
0
0
0
0
c5097b15b801bf26562a6d9c38539c831b9a433d
1,382
py
Python
company_service/close_sender.py
companyService/crawler_code
1fdaa455ab6db5dcd39a6deaa6e58e05ebb18229
[ "MIT" ]
null
null
null
company_service/close_sender.py
companyService/crawler_code
1fdaa455ab6db5dcd39a6deaa6e58e05ebb18229
[ "MIT" ]
null
null
null
company_service/close_sender.py
companyService/crawler_code
1fdaa455ab6db5dcd39a6deaa6e58e05ebb18229
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Author: jimin.huang # # Created Time: 20150207 170129 #
32.904762
90
0.609986
# -*- coding: utf-8 -*- # # Author: jimin.huang # # Created Time: 2015年02月07日 星期六 17时01分29秒 # from scrapy import signals from scrapy.mail import MailSender from scrapy.exceptions import NotConfigured class CloseSender(object): def __init__(self, stats, recipients, mail): self.stats = stats sel...
51
356
0
790
0
0
0
40
90
5ee14c52c2557296e9b7a2cf478a35e9fe5542fa
2,442
py
Python
pbjam/jar.py
lmcarboneau/PBjam
3c57614b2b79e5113b10aa5bab2d23a9ffe0b279
[ "MIT" ]
null
null
null
pbjam/jar.py
lmcarboneau/PBjam
3c57614b2b79e5113b10aa5bab2d23a9ffe0b279
[ "MIT" ]
1
2020-05-21T15:02:32.000Z
2020-05-21T15:02:32.000Z
pbjam/jar.py
lmcarboneau/PBjam
3c57614b2b79e5113b10aa5bab2d23a9ffe0b279
[ "MIT" ]
null
null
null
""" This module contains general purpose functions that are used throughout PBjam. """ from . import PACKAGEDIR import os import numpy as np def get_priorpath(): """ Get default prior path name Returns ------- prior_file : str Default path to the prior in the package directory structure...
23.037736
78
0.570025
""" This module contains general purpose functions that are used throughout PBjam. """ from . import PACKAGEDIR import os import numpy as np def get_priorpath(): """ Get default prior path name Returns ------- prior_file : str Default path to the prior in the package directory structure...
0
0
0
0
0
0
0
0
0