hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
daa5713f591bda079dae43ed4b025ec5547d445b
166
py
Python
scripts/portal/timeSeal02.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/timeSeal02.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/timeSeal02.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
SEAL_CHECKER = 9300535 SEAL_OF_TIME = 2159367 if not sm.hasQuest(25672): sm.createQuestWithQRValue(25672, "1") sm.showFieldEffect("lightning/screenMsg/6", 0)
27.666667
50
0.753012
SEAL_CHECKER = 9300535 SEAL_OF_TIME = 2159367 if not sm.hasQuest(25672): sm.createQuestWithQRValue(25672, "1") sm.showFieldEffect("lightning/screenMsg/6", 0)
0
0
0
6be40d46faaa138af2d309cdb15bbfccb0f0f64f
475
py
Python
Templates/Template-1.py
CodeKnight626/codeBot
d56224b79193c17f949e9e99b7ab0b990dfd6c92
[ "Apache-2.0" ]
null
null
null
Templates/Template-1.py
CodeKnight626/codeBot
d56224b79193c17f949e9e99b7ab0b990dfd6c92
[ "Apache-2.0" ]
null
null
null
Templates/Template-1.py
CodeKnight626/codeBot
d56224b79193c17f949e9e99b7ab0b990dfd6c92
[ "Apache-2.0" ]
null
null
null
import discord #Libreria de discord client = discord.Client() # Evento que se llama cuando el bot inicia sesión @client.event # Evento que se llama cuando se recibe un mensaje @client.event client.run("Tu token aqui")
25
57
0.711579
import discord #Libreria de discord client = discord.Client() # Evento que se llama cuando el bot inicia sesión @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) # Evento que se llama cuando se recibe un mensaje @client.event async def on_message(message): if message.a...
210
0
44
12a18aea017ffa0a14958524f458897493e2bfdf
539
py
Python
src/functions.py
zefe/python
8373130bbfa35f2d1328288523db23c20ea4f55a
[ "MIT" ]
null
null
null
src/functions.py
zefe/python
8373130bbfa35f2d1328288523db23c20ea4f55a
[ "MIT" ]
null
null
null
src/functions.py
zefe/python
8373130bbfa35f2d1328288523db23c20ea4f55a
[ "MIT" ]
null
null
null
# Divisas if __name__ == '__main__': run()
24.5
93
0.671614
# Divisas def run(): print('C A L C U L A D O R A D E D I V I S A S') print('Convietr de pesos mexicanos a pesos colombianos') print('') amount = float(input('Ingreasa la cantidad de pesos mexicanos que quieres convertir: ')) result = foreing_exchange_calculator(amount) print('${} pesos mex...
444
0
46
41f729f5fd23ec704d6194684d719cbc5c40b89a
10,532
py
Python
which.py
WeiFoo/WHICH
df8dbc50b219aefc54ba6371ef6788095b46a948
[ "MIT" ]
null
null
null
which.py
WeiFoo/WHICH
df8dbc50b219aefc54ba6371ef6788095b46a948
[ "MIT" ]
20
2015-04-29T01:13:27.000Z
2015-05-29T01:27:25.000Z
which.py
WeiFoo/WHICH
df8dbc50b219aefc54ba6371ef6788095b46a948
[ "MIT" ]
null
null
null
# __author__ = 'WeiFu' from __future__ import print_function, division import sys, pdb, random from ruler import * from Abcd import * import numpy as np import matplotlib.pyplot as plt from sklearn.tree import DecisionTreeRegressor from tuner import * from processarff import * from sk import rdivDemo import weka.core.j...
33.864952
120
0.636346
# __author__ = 'WeiFu' from __future__ import print_function, division import sys, pdb, random from ruler import * from Abcd import * import numpy as np import matplotlib.pyplot as plt from sklearn.tree import DecisionTreeRegressor from tuner import * from processarff import * from sk import rdivDemo import weka.core.j...
8,317
0
437
7d1f1ec839e6ec50e8a4a860444246ac22141aca
4,062
py
Python
logster-parsers/SlapdLogster.py
kalaksi/sensu-plugins
a3121010cddd46fc5a5566fb9bd7938c1f9f2405
[ "MIT" ]
null
null
null
logster-parsers/SlapdLogster.py
kalaksi/sensu-plugins
a3121010cddd46fc5a5566fb9bd7938c1f9f2405
[ "MIT" ]
null
null
null
logster-parsers/SlapdLogster.py
kalaksi/sensu-plugins
a3121010cddd46fc5a5566fb9bd7938c1f9f2405
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # Copyright (c) 2016 kalaksi@users.noreply.github.com # ...
50.148148
208
0.55613
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # Copyright (c) 2016 kalaksi@users.noreply.github.com # ...
1,922
0
81
6a3a039cf8076b41b5f4a96777e26a62ab17cca2
240
py
Python
tests/context.py
RonaldTheodoro/ygoprodeck-api-client
2a64411e08f1b7e32cc60aca5ccd5b5369a4b380
[ "MIT" ]
1
2020-04-09T22:55:05.000Z
2020-04-09T22:55:05.000Z
tests/context.py
RonaldTheodoro/ygoprodeck-api-client
2a64411e08f1b7e32cc60aca5ccd5b5369a4b380
[ "MIT" ]
10
2018-12-08T02:48:47.000Z
2021-10-02T20:18:10.000Z
tests/context.py
RonaldTheodoro/ygoprodeck-api-client
2a64411e08f1b7e32cc60aca5ccd5b5369a4b380
[ "MIT" ]
2
2018-12-08T05:46:54.000Z
2021-05-24T23:25:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ tests.context ~~~~~~~~~~~~~~~~~~~~~~ Add the ygoprodeck module to the tests context. """ import sys from settings import settings sys.path.append(settings.base_dir) import ygoprodeck
12.631579
47
0.65
#!/usr/bin/env python # -*- coding: utf-8 -*- """ tests.context ~~~~~~~~~~~~~~~~~~~~~~ Add the ygoprodeck module to the tests context. """ import sys from settings import settings sys.path.append(settings.base_dir) import ygoprodeck
0
0
0
849a5efdcd94f84937a26a5069763e91262f63a1
370
py
Python
lucia/city/tasks/research.py
LuxAI-Gamers/LucIA
ac0dd691780f4af6a5cfb778ae1882c256020b04
[ "MIT" ]
1
2021-11-21T22:24:46.000Z
2021-11-21T22:24:46.000Z
lucia/city/tasks/research.py
LuxAI-Gamers/LucIA
ac0dd691780f4af6a5cfb778ae1882c256020b04
[ "MIT" ]
null
null
null
lucia/city/tasks/research.py
LuxAI-Gamers/LucIA
ac0dd691780f4af6a5cfb778ae1882c256020b04
[ "MIT" ]
null
null
null
from ...bh_trees import Task
19.473684
70
0.616216
from ...bh_trees import Task class Research(Task): def __init__(self): super(Research, self).__init__() def run(self): object = self._blackboard.get_value('object') research = object.research() if research: actions = self._blackboard.append_values(actions=researc...
262
0
77
acabde74e58123908bb6db7007a6aa06d198218d
793
py
Python
ctpbee/json/__init__.py
yutiansut/ctpbee
02ceb3d4456a54b1b4f8066a2662c4b8fac1027f
[ "MIT" ]
null
null
null
ctpbee/json/__init__.py
yutiansut/ctpbee
02ceb3d4456a54b1b4f8066a2662c4b8fac1027f
[ "MIT" ]
null
null
null
ctpbee/json/__init__.py
yutiansut/ctpbee
02ceb3d4456a54b1b4f8066a2662c4b8fac1027f
[ "MIT" ]
3
2019-11-21T03:38:14.000Z
2022-02-14T08:09:11.000Z
from ctpbee.json.pollen import Pollen loads = Pollen.loads dumps = Pollen.dumps if __name__ == '__main__': from ctpbee.constant import * t = SubscribeRequest(symbol='1', exchange=Status.ALLTRADED, datetime=datetime.now()) tick = {'float2': 53.12321, 'int': (123, "123", t, Status.ALLTRADED, 2...
29.37037
88
0.510719
from ctpbee.json.pollen import Pollen loads = Pollen.loads dumps = Pollen.dumps if __name__ == '__main__': from ctpbee.constant import * t = SubscribeRequest(symbol='1', exchange=Status.ALLTRADED, datetime=datetime.now()) tick = {'float2': 53.12321, 'int': (123, "123", t, Status.ALLTRADED, 2...
0
0
0
ed83595a224bf334d5261e08f0dd4def4f8f1b7b
19,980
py
Python
egs/wsj/s5/steps/cleanup/internal/modify_ctm_edits.py
IcyW/SMIIP
c05fcdcd77837e254998a899c4ae50cf1bfbe497
[ "Apache-2.0" ]
61
2017-10-03T17:30:36.000Z
2020-08-17T16:01:26.000Z
egs/wsj/s5/steps/cleanup/internal/modify_ctm_edits.py
Acidburn0zzz/kaldi
134cf7ee5c9604a431080db14cf6dc19f6524047
[ "Apache-2.0" ]
1
2018-12-12T16:04:59.000Z
2019-01-25T17:15:00.000Z
egs/wsj/s5/steps/cleanup/internal/modify_ctm_edits.py
Acidburn0zzz/kaldi
134cf7ee5c9604a431080db14cf6dc19f6524047
[ "Apache-2.0" ]
10
2017-10-04T05:46:19.000Z
2021-04-08T12:54:20.000Z
#!/usr/bin/env python # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 from __future__ import print_function import argparse import logging import sys from collections import defaultdict """ This script reads and writes the 'ctm-edits' file that is prod...
45.306122
97
0.646446
#!/usr/bin/env python # Copyright 2016 Vimal Manohar # 2016 Johns Hopkins University (author: Daniel Povey) # Apache 2.0 from __future__ import print_function import argparse import logging import sys from collections import defaultdict """ This script reads and writes the 'ctm-edits' file that is prod...
12,943
0
158
c682a2796b145c76b83189c8765fa8816a7e59a6
4,618
py
Python
src/spyd/game/room/room_map_mode_state.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
4
2015-05-05T16:44:42.000Z
2020-10-27T09:45:23.000Z
src/spyd/game/room/room_map_mode_state.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
null
null
null
src/spyd/game/room/room_map_mode_state.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
2
2016-12-13T22:21:08.000Z
2020-03-14T16:44:20.000Z
from twisted.internet import defer from cube2common.constants import INTERMISSIONLEN from spyd.game.client.exceptions import GenericError from spyd.game.gamemode import gamemodes from spyd.game.map.map_rotation import MapRotation from spyd.protocol import swh
35.523077
128
0.66544
from twisted.internet import defer from cube2common.constants import INTERMISSIONLEN from spyd.game.client.exceptions import GenericError from spyd.game.gamemode import gamemodes from spyd.game.map.map_rotation import MapRotation from spyd.protocol import swh class RoomMapModeState(object): def __init__(self, ro...
3,862
471
23
527884993045334d555f2ba30503a0c47602c556
339
py
Python
sdp/xiaoaiskill/admin.py
liutianfang/skill-dev-platform
37e76232869ae6eaf23d88398d2e52e7e0a5a80f
[ "Apache-2.0" ]
3
2018-08-31T02:43:39.000Z
2018-12-23T23:59:23.000Z
sdp/xiaoaiskill/admin.py
liutianfang/skill-dev-platform
37e76232869ae6eaf23d88398d2e52e7e0a5a80f
[ "Apache-2.0" ]
5
2020-06-05T18:50:52.000Z
2022-03-11T23:28:58.000Z
sdp/xiaoaiskill/admin.py
liutianfang/skill-dev-platform
37e76232869ae6eaf23d88398d2e52e7e0a5a80f
[ "Apache-2.0" ]
1
2018-09-13T08:51:41.000Z
2018-09-13T08:51:41.000Z
from django.contrib import admin from django.contrib import admin from xiaoaiskill.models import * admin.site.register(MI_Log, MI_Whereis_LogAdmin) admin.site.register(MI_Device) admin.site.register(MI_DeviceOwner)
26.076923
74
0.79056
from django.contrib import admin from django.contrib import admin from xiaoaiskill.models import * class MI_Whereis_LogAdmin(admin.ModelAdmin): list_display = ("pk",'create_time','request',"response","ip","exmsg",) admin.site.register(MI_Log, MI_Whereis_LogAdmin) admin.site.register(MI_Device) admin.site.regis...
0
98
23
a909608250f6e1df44425da131396682cb259b93
1,050
py
Python
peering/migrations/0083_move_email_to_messaging.py
maznu/peering-manager
d249fcf530f4cc48b39429badb79bc203e0148ba
[ "Apache-2.0" ]
127
2017-10-12T00:27:45.000Z
2020-08-07T11:13:55.000Z
peering/migrations/0083_move_email_to_messaging.py
maznu/peering-manager
d249fcf530f4cc48b39429badb79bc203e0148ba
[ "Apache-2.0" ]
247
2017-12-26T12:55:34.000Z
2020-08-08T11:57:35.000Z
peering/migrations/0083_move_email_to_messaging.py
maznu/peering-manager
d249fcf530f4cc48b39429badb79bc203e0148ba
[ "Apache-2.0" ]
63
2017-10-13T06:46:05.000Z
2020-08-08T00:41:57.000Z
# Generated by Django 3.2.11 on 2022-01-07 22:05 from django.db import migrations
37.5
86
0.728571
# Generated by Django 3.2.11 on 2022-01-07 22:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [("peering", "0082_move_autonomoussystem_contacts")] database_operations = [migrations.AlterModelTable("Email", "messaging_email")] state_operations = [migrations.Delet...
436
507
23
5cabbd73e2925a6b52abc03307e5edfb7b079d87
822
py
Python
ska-tmc/ska-tmc-cspmasterleafnode-mid/src/ska_tmc_cspmasterleafnode_mid/device_data.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
3
2019-01-10T11:49:36.000Z
2019-07-19T03:32:52.000Z
ska-tmc/ska-tmc-cspmasterleafnode-mid/src/ska_tmc_cspmasterleafnode_mid/device_data.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
19
2019-01-07T14:50:26.000Z
2019-10-02T13:25:23.000Z
ska-tmc/ska-tmc-cspmasterleafnode-mid/src/ska_tmc_cspmasterleafnode_mid/device_data.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
1
2018-12-21T13:39:23.000Z
2018-12-21T13:39:23.000Z
class DeviceData: """ This class represents the CSP master as functional device. It mainly comprise the data common across various functions of a CSP master. """ __instance = None def __init__(self): """Private constructor of the class""" if DeviceData.__instance != None: ...
30.444444
97
0.641119
class DeviceData: """ This class represents the CSP master as functional device. It mainly comprise the data common across various functions of a CSP master. """ __instance = None def __init__(self): """Private constructor of the class""" if DeviceData.__instance != None: ...
102
0
26
2523a0487bc75245a0f34d644b00cf44e670fc0e
990
py
Python
cgcrepair/core/corpus/cwe_parser.py
epicosy/cgc-repair
f347a29ef482019563402684e585080836d3d093
[ "MIT" ]
null
null
null
cgcrepair/core/corpus/cwe_parser.py
epicosy/cgc-repair
f347a29ef482019563402684e585080836d3d093
[ "MIT" ]
null
null
null
cgcrepair/core/corpus/cwe_parser.py
epicosy/cgc-repair
f347a29ef482019563402684e585080836d3d093
[ "MIT" ]
null
null
null
from typing import List, Union from cgcrepair.utils.parse.cwe import cwe_from_info, main_cwe, get_name, top_parent
30
90
0.6
from typing import List, Union from cgcrepair.utils.parse.cwe import cwe_from_info, main_cwe, get_name, top_parent class CWEParser: def __init__(self, description: str, level: int = 3): self.description = description self.main = None self.level = level def cwe_ids(self, number: bool =...
749
-5
130
a3de2e002a5c726b74b23e2eb3b1f176feb6e207
1,366
py
Python
arrow/middleware/auth/http.py
effordsbeard/arrowstack
33f2eff3be07cf65e38610f0701743e775c1bbc6
[ "MIT" ]
1
2018-10-12T11:43:07.000Z
2018-10-12T11:43:07.000Z
arrow/middleware/auth/http.py
effordsbeard/arrowstack
33f2eff3be07cf65e38610f0701743e775c1bbc6
[ "MIT" ]
null
null
null
arrow/middleware/auth/http.py
effordsbeard/arrowstack
33f2eff3be07cf65e38610f0701743e775c1bbc6
[ "MIT" ]
null
null
null
import base64
30.355556
96
0.571742
import base64 class HttpAuth(object): def __init__(self, username=None, password=None, users=None, auth_func=None): if not users: users = {} users[username] = password self.users = users self.auth_func = auth_func def __call__(self, req, res): auth_hea...
1,245
2
104
cb24bca0d283586de51576f9798c5ace2f535ce7
1,157
py
Python
tests/test_transforms.py
kmodin/quflow
c12bf42929c349e059d85a8d0ff5830b838e8c91
[ "MIT" ]
null
null
null
tests/test_transforms.py
kmodin/quflow
c12bf42929c349e059d85a8d0ff5830b838e8c91
[ "MIT" ]
null
null
null
tests/test_transforms.py
kmodin/quflow
c12bf42929c349e059d85a8d0ff5830b838e8c91
[ "MIT" ]
null
null
null
import numpy as np import pytest import quflow as qf @pytest.mark.parametrize("f", [get_fun(), get_fun(N=128), get_fun(N=256)[:128, :255]]) @pytest.mark.parametrize("omega_real", [get_random_omega_real(), get_random_omega_real(128)]) @pytest.mark.parametrize("omega_complex", [get_random_omega_complex(), get_ra...
28.925
102
0.743302
import numpy as np import pytest import quflow as qf def get_fun(N=501): theta, phi = qf.sphgrid(N) f = np.sin(phi)**2*np.sin(theta/2) return f def get_random_omega_real(N=17): return np.random.randn(N**2) def get_random_omega_complex(N=17): return qf.shr2shc(get_random_omega_real(N)) @pytes...
676
0
135
c5878b6f3946fbbc760914ab0bb8dab5b27bb7ef
5,311
py
Python
lab_07/main.py
migregal/bmstu_iu7_cg
b336e6058329656863d6066d69aabeb5aaef8014
[ "MIT" ]
null
null
null
lab_07/main.py
migregal/bmstu_iu7_cg
b336e6058329656863d6066d69aabeb5aaef8014
[ "MIT" ]
null
null
null
lab_07/main.py
migregal/bmstu_iu7_cg
b336e6058329656863d6066d69aabeb5aaef8014
[ "MIT" ]
null
null
null
import sys from copy import deepcopy from PyQt5 import QtWidgets from PyQt5 import uic from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from funcs import * from simple_cut import simple_cut # Класс главного окна # Отслеживание передвижения мыши if __name__ == '__main__': ...
29.505556
80
0.567313
import sys from copy import deepcopy from PyQt5 import QtWidgets from PyQt5 import uic from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from funcs import * from simple_cut import simple_cut # Класс главного окна class Window(QMainWindow): def __init__(self): QWidget.__...
4,588
24
339
959c9786634416f76e5af9a4e4d0557746d5d2df
283
py
Python
recommendations/users/urls.py
batalova90/recommendations
6a006b792f5b8aae6ad1a5c54b7cd81e4c53ae80
[ "MIT" ]
null
null
null
recommendations/users/urls.py
batalova90/recommendations
6a006b792f5b8aae6ad1a5c54b7cd81e4c53ae80
[ "MIT" ]
null
null
null
recommendations/users/urls.py
batalova90/recommendations
6a006b792f5b8aae6ad1a5c54b7cd81e4c53ae80
[ "MIT" ]
null
null
null
from django.contrib.auth.views import LogoutView from django.urls import path from . import views urlpatterns = [ path('logout/', LogoutView.as_view(template_name='users/logged_out.html'), name='logout'), path('signup/', views.SignUp.as_view(), name='signup') ]
21.769231
78
0.70318
from django.contrib.auth.views import LogoutView from django.urls import path from . import views urlpatterns = [ path('logout/', LogoutView.as_view(template_name='users/logged_out.html'), name='logout'), path('signup/', views.SignUp.as_view(), name='signup') ]
0
0
0
0c6ef210d7da12a90e4d6ae5831bdbd4c6f0f39b
12,962
py
Python
moztrap/model/library/api.py
bobsilverberg/moztrap
9f51f098b03f365b8101be2e2c9a38486a43314c
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/library/api.py
bobsilverberg/moztrap
9f51f098b03f365b8101be2e2c9a38486a43314c
[ "BSD-2-Clause" ]
null
null
null
moztrap/model/library/api.py
bobsilverberg/moztrap
9f51f098b03f365b8101be2e2c9a38486a43314c
[ "BSD-2-Clause" ]
null
null
null
from tastypie import http, fields from tastypie.exceptions import ImmediateHttpResponse from tastypie.resources import ModelResource, ALL, ALL_WITH_RELATIONS from ..core.api import (ProductVersionResource, ProductResource, UserResource) from .models import CaseVersion, Case, Suite, CaseStep, Su...
31.158654
83
0.612637
from tastypie import http, fields from tastypie.exceptions import ImmediateHttpResponse from tastypie.resources import ModelResource, ALL, ALL_WITH_RELATIONS from ..core.api import (ProductVersionResource, ProductResource, UserResource) from .models import CaseVersion, Case, Suite, CaseStep, Su...
20
2,546
215
1bfe241b43b3ad59ad7f4c55395602c668570444
1,348
py
Python
lbpi/wrappers/ensembles/ensembles_copy.py
nairvinayv/random_scripts
6e1cc8d82cf61ae245108a69ffa1359f636f37f7
[ "MIT" ]
null
null
null
lbpi/wrappers/ensembles/ensembles_copy.py
nairvinayv/random_scripts
6e1cc8d82cf61ae245108a69ffa1359f636f37f7
[ "MIT" ]
null
null
null
lbpi/wrappers/ensembles/ensembles_copy.py
nairvinayv/random_scripts
6e1cc8d82cf61ae245108a69ffa1359f636f37f7
[ "MIT" ]
null
null
null
import os import shutil import sys dirr = sys.argv[1] # this should be the path for a common folder from forms flags = sys.argv[2] print(dirr) def folders_target(): """ Make multiple target folders for receptor """ if not os.path.exists('{}/ensembles'.format(dirr)): os.path.join(os.mkdir...
16.439024
93
0.577151
import os import shutil import sys dirr = sys.argv[1] # this should be the path for a common folder from forms flags = sys.argv[2] print(dirr) def folders_target(): """ Make multiple target folders for receptor """ if not os.path.exists('{}/ensembles'.format(dirr)): os.path.join(os.mkdir...
0
0
0
624018f1a61d00e55e13767dd664755a55e6d5b5
6,666
py
Python
test.py
buriedms/-3D-ResNets-Paddle
2b8e51faa03e86be7308cb0706b4d41d24570ebb
[ "MIT" ]
1
2022-02-28T00:48:16.000Z
2022-02-28T00:48:16.000Z
test.py
buriedms/-3D-ResNets-Paddle
2b8e51faa03e86be7308cb0706b4d41d24570ebb
[ "MIT" ]
null
null
null
test.py
buriedms/-3D-ResNets-Paddle
2b8e51faa03e86be7308cb0706b4d41d24570ebb
[ "MIT" ]
1
2022-02-28T00:48:20.000Z
2022-02-28T00:48:20.000Z
import paddle import time import os import sys import json from opts import parse_opts from model import generate_model from mean import get_mean, get_std from spatial_transforms import ( Compose, Normalize, Scale, CenterCrop, CornerCrop, MultiScaleCornerCrop, MultiScaleRandomCrop, RandomHorizontalFlip, ToTens...
34.184615
80
0.636064
import paddle import time import os import sys import json from opts import parse_opts from model import generate_model from mean import get_mean, get_std from spatial_transforms import ( Compose, Normalize, Scale, CenterCrop, CornerCrop, MultiScaleCornerCrop, MultiScaleRandomCrop, RandomHorizontalFlip, ToTens...
5,911
0
92
6d841ec89fca6bdcf9485738eb500bfbfe999af1
346
py
Python
blog/App/views/__init__.py
caoluyang8/blog
98b702e7b038036986895fac4daefccd90c22bdc
[ "BSD-2-Clause" ]
null
null
null
blog/App/views/__init__.py
caoluyang8/blog
98b702e7b038036986895fac4daefccd90c22bdc
[ "BSD-2-Clause" ]
null
null
null
blog/App/views/__init__.py
caoluyang8/blog
98b702e7b038036986895fac4daefccd90c22bdc
[ "BSD-2-Clause" ]
null
null
null
from .main import main #首页蓝本 from .user import user #用户处理的蓝本对象 from .posts import posts from .owncenter import center blueprintConfig = [ (main,''), (user,''), (posts,''), (center,''), ] #注册蓝本
19.222222
59
0.684971
from .main import main #首页蓝本 from .user import user #用户处理的蓝本对象 from .posts import posts from .owncenter import center blueprintConfig = [ (main,''), (user,''), (posts,''), (center,''), ] #注册蓝本 def register_blueprint(app): for blueprint,prefix in blueprintConfig: app.register_blueprint(bl...
112
0
22
2cf89d6f0c52f8a3936d5f44f7dd186b241c5cce
589
py
Python
src/remote_blink.py
RochesterMakerSpace/Raspberry-Pi-class
eef4b5de958571eced00d00db18edca4d7d34c94
[ "MIT" ]
null
null
null
src/remote_blink.py
RochesterMakerSpace/Raspberry-Pi-class
eef4b5de958571eced00d00db18edca4d7d34c94
[ "MIT" ]
null
null
null
src/remote_blink.py
RochesterMakerSpace/Raspberry-Pi-class
eef4b5de958571eced00d00db18edca4d7d34c94
[ "MIT" ]
null
null
null
from gpiozero import LED from gpiozero.pins.pigpio import PiGPIOFactory from time import sleep # Change localhost to Raspberry Pi host and run # this program on a remote computer factory = PiGPIOFactory(host='localhost') led = LED(21, pin_factory=factory) try: # toggle the led forever while True: led....
23.56
65
0.706282
from gpiozero import LED from gpiozero.pins.pigpio import PiGPIOFactory from time import sleep # Change localhost to Raspberry Pi host and run # this program on a remote computer factory = PiGPIOFactory(host='localhost') led = LED(21, pin_factory=factory) try: # toggle the led forever while True: led....
0
0
0
5f76a2f4a84049efe77d3b7b628525f29b3f92b6
2,824
py
Python
package/src/masonry/utils.py
MrKriss/stonemason
d78becc9168c2566b31b48c9a951e2823bc98362
[ "MIT" ]
2
2017-11-13T17:40:52.000Z
2021-05-08T15:58:28.000Z
package/src/masonry/utils.py
MrKriss/masonry
d78becc9168c2566b31b48c9a951e2823bc98362
[ "MIT" ]
3
2017-09-03T22:58:37.000Z
2017-09-12T21:45:27.000Z
package/src/masonry/utils.py
MrKriss/stonemason
d78becc9168c2566b31b48c9a951e2823bc98362
[ "MIT" ]
null
null
null
import json import logging import os import shlex import subprocess from itertools import dropwhile from pathlib import Path from clint.textui import colored, indent, puts def load_application_data(location=None): """Return the stored application data on where templates live""" if not location: loc...
28.24
92
0.693343
import json import logging import os import shlex import subprocess from itertools import dropwhile from pathlib import Path from clint.textui import colored, indent, puts def load_application_data(location=None): """Return the stored application data on where templates live""" if not location: loc...
423
0
49
236f56ebee647da1e638c0c765b9af34368035f1
6,025
py
Python
gfapy/alignment/cigar.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
44
2017-03-18T08:08:04.000Z
2021-11-10T16:11:15.000Z
gfapy/alignment/cigar.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
22
2017-04-04T21:20:31.000Z
2022-03-09T19:05:30.000Z
gfapy/alignment/cigar.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
5
2017-07-07T02:56:56.000Z
2020-09-30T20:10:49.000Z
import re import gfapy class CIGAR(list): """ Representation of the contents of a CIGAR string. Each operation is represented by a :class:`CIGAR.Operation <gfapy.alignment.cigar.CIGAR.Operation>`, which specifies an operation length and operation symbol. Instances are usually created from their string re...
30.583756
80
0.61195
import re import gfapy class CIGAR(list): """ Representation of the contents of a CIGAR string. Each operation is represented by a :class:`CIGAR.Operation <gfapy.alignment.cigar.CIGAR.Operation>`, which specifies an operation length and operation symbol. Instances are usually created from their string re...
445
0
185
442e7e55cc3c82406b780fb1efbd567afcfc80d5
3,653
py
Python
go_nn.py
ejmejm/GoHeuristics
9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe
[ "Apache-2.0" ]
1
2017-07-18T22:24:30.000Z
2017-07-18T22:24:30.000Z
go_nn.py
ejmejm/GoHeuristics
9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe
[ "Apache-2.0" ]
null
null
null
go_nn.py
ejmejm/GoHeuristics
9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import time import board3d as go_board import matplotlib.pyplot as plt import global_vars_go as gvg import models.cnn batch_size = gvg.process_batch_size # How many board states (not full games) to send to GPU at once, about 200 is the limit of this GPU's RAM # Source: https...
48.065789
141
0.658363
import tensorflow as tf import numpy as np import time import board3d as go_board import matplotlib.pyplot as plt import global_vars_go as gvg import models.cnn batch_size = gvg.process_batch_size # How many board states (not full games) to send to GPU at once, about 200 is the limit of this GPU's RAM def train_netwo...
3,174
0
68
07c7ed0e82580e02f8fc7ae7c19aaf4b7078ddf1
9,607
py
Python
main/views.py
jhdulaney/oh-dataselfie-source
ea40129ae01a14e86e8f87eb62948c23ae2dc30e
[ "MIT" ]
null
null
null
main/views.py
jhdulaney/oh-dataselfie-source
ea40129ae01a14e86e8f87eb62948c23ae2dc30e
[ "MIT" ]
5
2019-05-09T14:44:40.000Z
2021-06-10T20:39:04.000Z
main/views.py
jhdulaney/oh-dataselfie-source
ea40129ae01a14e86e8f87eb62948c23ae2dc30e
[ "MIT" ]
2
2018-07-13T00:06:22.000Z
2018-12-27T18:19:28.000Z
import json import logging try: from urllib2 import HTTPError except ImportError: from urllib.error import HTTPError from django.conf import settings from django.contrib.auth import login, logout from django.shortcuts import redirect, render from django.contrib import messages from django.utils.safestring impo...
35.713755
79
0.640991
import json import logging try: from urllib2 import HTTPError except ImportError: from urllib.error import HTTPError from django.conf import settings from django.contrib.auth import login, logout from django.shortcuts import redirect, render from django.contrib import messages from django.utils.safestring impo...
2,983
0
161
ef31d0cec9f6459d47be8bfaa11b135ea2c9a8f9
3,542
py
Python
tests/test_workers.py
toastdriven/alligator
2bb41e0cf0a57baf90a9c15b3bb01bd74438bc69
[ "BSD-3-Clause" ]
21
2015-01-01T02:06:25.000Z
2022-03-19T13:57:42.000Z
tests/test_workers.py
toastdriven/alligator
2bb41e0cf0a57baf90a9c15b3bb01bd74438bc69
[ "BSD-3-Clause" ]
2
2015-01-07T07:38:53.000Z
2015-01-07T07:39:01.000Z
tests/test_workers.py
toastdriven/alligator
2bb41e0cf0a57baf90a9c15b3bb01bd74438bc69
[ "BSD-3-Clause" ]
7
2015-01-03T19:45:14.000Z
2022-03-19T13:57:44.000Z
import os import unittest from unittest import mock from alligator.gator import Gator from alligator.workers import Worker ALLOW_SLOW = bool(os.environ.get("ALLIGATOR_SLOW", False)) CONN_STRING = os.environ.get("ALLIGATOR_CONN") FILENAME = "/tmp/alligator_test_workers.txt" @unittest.skipIf(not ALLOW_SLOW, "Sk...
28.796748
71
0.65415
import os import unittest from unittest import mock from alligator.gator import Gator from alligator.workers import Worker ALLOW_SLOW = bool(os.environ.get("ALLIGATOR_SLOW", False)) CONN_STRING = os.environ.get("ALLIGATOR_CONN") FILENAME = "/tmp/alligator_test_workers.txt" def touch_file(): with open(FILENAME,...
2,878
19
298
3fa00e78910eee773dfd47ebe1a32119bd178d04
345
py
Python
apps/webmarks/upload/urls.py
EricMuller/mynote-backend
69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7
[ "MIT" ]
1
2017-04-26T10:24:21.000Z
2017-04-26T10:24:21.000Z
apps/webmarks/upload/urls.py
EricMuller/mynotes-backend
69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7
[ "MIT" ]
5
2020-06-05T18:16:39.000Z
2022-01-13T00:45:49.000Z
apps/webmarks/upload/urls.py
EricMuller/webmarks-rest-api
69bc39b8cfad52d6c42003cfa7bd629f3e8eccb7
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf.urls import include from rest_framework import routers from webmarks.bookmarks import viewsets apiRouter = routers.DefaultRouter() apiRouter.register(r'upload', viewsets.FileUploaderViewSet) urlpatterns = [ # API V1 url(r'v1/', include(apiRouter.urls, namesp...
23
68
0.776812
from django.conf.urls import url from django.conf.urls import include from rest_framework import routers from webmarks.bookmarks import viewsets apiRouter = routers.DefaultRouter() apiRouter.register(r'upload', viewsets.FileUploaderViewSet) urlpatterns = [ # API V1 url(r'v1/', include(apiRouter.urls, namesp...
0
0
0
b2f55a72355b229af932ac8ad82b7589a66ce05b
26,979
py
Python
orbitize/plot.py
sblunt/orbitize
665ca4843d10ee1593665254354d934f37e1b5fc
[ "BSD-3-Clause-Clear" ]
60
2018-01-12T17:16:53.000Z
2022-02-14T01:39:39.000Z
orbitize/plot.py
sblunt/orbitize
665ca4843d10ee1593665254354d934f37e1b5fc
[ "BSD-3-Clause-Clear" ]
278
2018-01-12T17:25:47.000Z
2022-03-31T21:28:27.000Z
orbitize/plot.py
sblunt/orbitize
665ca4843d10ee1593665254354d934f37e1b5fc
[ "BSD-3-Clause-Clear" ]
49
2018-10-30T19:34:05.000Z
2021-10-31T13:28:45.000Z
import numpy as np import corner import warnings import itertools import astropy.units as u import astropy.constants as consts from astropy.time import Time import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.collections import LineCollection import matplotlib.colors as colors from erfa import E...
44.815615
166
0.585715
import numpy as np import corner import warnings import itertools import astropy.units as u import astropy.constants as consts from astropy.time import Time import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.collections import LineCollection import matplotlib.colors as colors from erfa import E...
0
0
0
29cf3ca08014999c12eddf1018f67e6c18064f76
155
py
Python
src/assets/scene_config/console/5/solution.py
DataArt/kiddo
58fc41bd8d1ee93c9af464179fe6e3c0d6150b50
[ "Apache-2.0" ]
12
2020-10-01T12:37:26.000Z
2022-01-11T09:00:24.000Z
src/assets/scene_config/console/5/solution.py
ra1amx/kiddo
dfb1c9324152a14edc62e1e89f7b108bc69b7d63
[ "Apache-2.0" ]
1
2021-01-15T07:15:54.000Z
2021-01-15T07:15:54.000Z
src/assets/scene_config/console/5/solution.py
ra1amx/kiddo
dfb1c9324152a14edc62e1e89f7b108bc69b7d63
[ "Apache-2.0" ]
2
2020-10-16T09:27:33.000Z
2021-07-11T13:19:31.000Z
import console x = console.get_value("x") y = console.get_value("y") if x >= 0: console.set_value("c", x + y) else: console.set_value("c", x * y)
17.222222
33
0.612903
import console x = console.get_value("x") y = console.get_value("y") if x >= 0: console.set_value("c", x + y) else: console.set_value("c", x * y)
0
0
0
dd2ae237043f5511cbae8bbc3116d9709f19e8cc
240
py
Python
setup.py
davidmeijer/mol2html
606d4cccc93fc0505779342e76a0166cef32377a
[ "MIT" ]
1
2021-11-30T14:15:09.000Z
2021-11-30T14:15:09.000Z
setup.py
davidmeijer/mol2html
606d4cccc93fc0505779342e76a0166cef32377a
[ "MIT" ]
null
null
null
setup.py
davidmeijer/mol2html
606d4cccc93fc0505779342e76a0166cef32377a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from mol2html.__version__ import __version__ setup( name='mol2html', version=__version__, pacakges=find_packages(), author='David Meijer', author_email='david.meijer@wur.nl' )
24
44
0.745833
from setuptools import setup, find_packages from mol2html.__version__ import __version__ setup( name='mol2html', version=__version__, pacakges=find_packages(), author='David Meijer', author_email='david.meijer@wur.nl' )
0
0
0
fa203b374d6b8852ccb15e6949867b415cb5fd6d
1,349
py
Python
alien_game/settings.py
Brucehanyf/python_tutorial
fc5c888ac818ad6e8fda9ee7fbcc3ecbca94436b
[ "Apache-2.0" ]
null
null
null
alien_game/settings.py
Brucehanyf/python_tutorial
fc5c888ac818ad6e8fda9ee7fbcc3ecbca94436b
[ "Apache-2.0" ]
null
null
null
alien_game/settings.py
Brucehanyf/python_tutorial
fc5c888ac818ad6e8fda9ee7fbcc3ecbca94436b
[ "Apache-2.0" ]
null
null
null
# 设置类 class Settings(): '''存储外星人入侵所有的设置的类 ''' def __init__(self): """ 初始化游戏的设置 """ # 屏幕设置 self.screen_width = 600 self.screen_height = 600 self.bg_color = (230, 230, 230) # 飞船移动的速度设置 self.ship_speed_factor = 1.5 self.ship_limit = 3 #子弹设置...
26.45098
68
0.595256
# 设置类 class Settings(): '''存储外星人入侵所有的设置的类 ''' def __init__(self): """ 初始化游戏的设置 """ # 屏幕设置 self.screen_width = 600 self.screen_height = 600 self.bg_color = (230, 230, 230) # 飞船移动的速度设置 self.ship_speed_factor = 1.5 self.ship_limit = 3 #子弹设置...
0
0
0
26357af55397b9f718b1c3fddda93b2341102317
3,081
py
Python
app/lib/qiniu/auth.py
zhongxinghong/pkuyouth
9262346b3c88109ca731387095d5678071a05d60
[ "Apache-2.0" ]
1
2018-06-19T04:00:35.000Z
2018-06-19T04:00:35.000Z
app/lib/qiniu/auth.py
zhongxinghong/PKUyouth
9262346b3c88109ca731387095d5678071a05d60
[ "Apache-2.0" ]
null
null
null
app/lib/qiniu/auth.py
zhongxinghong/PKUyouth
9262346b3c88109ca731387095d5678071a05d60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # filename: app/lib/qiniu/auth.py import time import simplejson as json import hmac from hashlib import sha1 from urllib.parse import urlparse from requests.auth import AuthBase try: from .util import to_bytes, urlsafe_base64_encode except (ImportError,SystemError,...
32.431579
106
0.635508
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # filename: app/lib/qiniu/auth.py import time import simplejson as json import hmac from hashlib import sha1 from urllib.parse import urlparse from requests.auth import AuthBase try: from .util import to_bytes, urlsafe_base64_encode except (ImportError,SystemError,...
2,346
3
343
0ad4f0e064a2c13e6139134cba5c7ab58eb899c1
2,423
py
Python
services/auth/app/payments/views.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
services/auth/app/payments/views.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
services/auth/app/payments/views.py
Counter0021/Anti-Freelancer-microservices-back-end
e55481e0a4353107036cd5ba664fee57e29c7597
[ "MIT" ]
null
null
null
import uuid from fastapi import status, HTTPException from sqlalchemy.ext.asyncio import AsyncSession from app import requests from app.crud import payment_crud, user_crud from app.models import User from config import PUBLIC_QIWI_KEY async def pay(db: AsyncSession, user: User, amount: int) -> dict[str, str]: "...
35.632353
117
0.675609
import uuid from fastapi import status, HTTPException from sqlalchemy.ext.asyncio import AsyncSession from app import requests from app.crud import payment_crud, user_crud from app.models import User from config import PUBLIC_QIWI_KEY async def pay(db: AsyncSession, user: User, amount: int) -> dict[str, str]: "...
0
0
0
ef18948fdb78fa3068ca12b44f03bba8440d1b43
7,594
py
Python
Testes com Pygame/scrolling_plataformer.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
Testes com Pygame/scrolling_plataformer.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
Testes com Pygame/scrolling_plataformer.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
#! /usr/bin/python import pygame from pygame import * WIN_WIDTH = 800 WIN_HEIGHT = 640 HALF_WIDTH = int(WIN_WIDTH / 2) HALF_HEIGHT = int(WIN_HEIGHT / 2) DISPLAY = (WIN_WIDTH, WIN_HEIGHT) DEPTH = 32 FLAGS = 0 CAMERA_SLACK = 30 if __name__ == "__main__": main()
32.732759
78
0.454306
#! /usr/bin/python import pygame from pygame import * WIN_WIDTH = 800 WIN_HEIGHT = 640 HALF_WIDTH = int(WIN_WIDTH / 2) HALF_HEIGHT = int(WIN_HEIGHT / 2) DISPLAY = (WIN_WIDTH, WIN_HEIGHT) DEPTH = 32 FLAGS = 0 CAMERA_SLACK = 30 def main(): global cameraX, cameraY pygame.init() screen = pygame.display.set_...
6,856
21
449
33f621e85f116a0cc71456be34809b20fbefd5d3
2,121
py
Python
ssrm_test/test_jupyter_notebooks.py
michaellindon/ssrm
c44f5382471a2c2ddea4bf597072304745af8578
[ "Apache-2.0" ]
null
null
null
ssrm_test/test_jupyter_notebooks.py
michaellindon/ssrm
c44f5382471a2c2ddea4bf597072304745af8578
[ "Apache-2.0" ]
null
null
null
ssrm_test/test_jupyter_notebooks.py
michaellindon/ssrm
c44f5382471a2c2ddea4bf597072304745af8578
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Optimizely Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
35.35
82
0.715229
# Copyright 2020 Optimizely Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
572
0
23
82526c0dd834ab826582f8c46cdfe3cfd94bc82e
6,390
py
Python
pythonfiles/testphone_pythonfiles/test_phone/test/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
1
2022-03-04T01:03:50.000Z
2022-03-04T01:03:50.000Z
pythonfiles/testphone_pythonfiles/test_phone/test/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
null
null
null
pythonfiles/testphone_pythonfiles/test_phone/test/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
1
2022-03-04T01:03:53.000Z
2022-03-04T01:03:53.000Z
from tkinter import * from tkinter import filedialog # from tkinter.filedialog import FileDialog from traceback import * from win32com.client import Dispatch import time,eyed3,threading name = [] root =Tk() root.geometry("1000x385") root.title('本地音乐播放器') wmp = Dispatch("WMPlayer.OCX") canvas = Canvas(root,width =20...
34.540541
125
0.700939
from tkinter import * from tkinter import filedialog # from tkinter.filedialog import FileDialog from traceback import * from win32com.client import Dispatch import time,eyed3,threading name = [] def openfile(index = [1]): global total,name filenames = filedialog.askopenfilenames(title = "音乐播放器",filetypes =[("mp...
2,065
0
378
44ee42bf9ff9030f86932367a57942656a472290
1,826
py
Python
consolemenu/items/submenu_item.py
Tyler887/console-menu
1f1df62524aa4a8be08c343802bce9dbc21cfa01
[ "MIT" ]
230
2018-04-30T18:03:31.000Z
2022-03-26T17:35:22.000Z
consolemenu/items/submenu_item.py
Tyler887/console-menu
1f1df62524aa4a8be08c343802bce9dbc21cfa01
[ "MIT" ]
53
2018-09-07T13:51:31.000Z
2022-03-31T08:56:27.000Z
consolemenu/items/submenu_item.py
Tyler887/console-menu
1f1df62524aa4a8be08c343802bce9dbc21cfa01
[ "MIT" ]
51
2018-10-28T07:48:06.000Z
2022-03-06T12:57:16.000Z
from consolemenu.items import MenuItem class SubmenuItem(MenuItem): """ A menu item to open a submenu """ def __init__(self, text, submenu, menu=None, should_exit=False): """ :ivar str text: The text shown for this menu item :ivar ConsoleMenu submenu: The submenu to be opened ...
28.53125
99
0.601862
from consolemenu.items import MenuItem class SubmenuItem(MenuItem): """ A menu item to open a submenu """ def __init__(self, text, submenu, menu=None, should_exit=False): """ :ivar str text: The text shown for this menu item :ivar ConsoleMenu submenu: The submenu to be opened ...
0
0
0
58a2e095dd52fbf9150d60febf9321dd76634b0e
14,932
py
Python
code/scripts/dataset.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
1
2021-11-28T09:29:33.000Z
2021-11-28T09:29:33.000Z
code/scripts/dataset.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
code/scripts/dataset.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
import os import torch import torchvision.transforms as transforms from PIL import Image import pandas as pd from skimage import io, transform import numpy as np from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils from torch.utils.data.sampler import WeightedRandomSampler # f...
40.797814
130
0.567975
import os import torch import torchvision.transforms as transforms from PIL import Image import pandas as pd from skimage import io, transform import numpy as np from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils from torch.utils.data.sampler import WeightedRandomSampler class...
13,976
9
174
a57f663fc645eda54af2f6bb152a3cf3577ccdc4
233
py
Python
Spider/db.py
aspxcor/Ming-Dynasty-Knowledge-Graph
576cbbd86ca61d415d18bb5d6c60feac56357693
[ "MIT" ]
3
2021-12-12T12:11:45.000Z
2022-02-09T03:12:58.000Z
Spider/db.py
aspxcor/Ming-Dynasty-Knowledge-Graph
576cbbd86ca61d415d18bb5d6c60feac56357693
[ "MIT" ]
null
null
null
Spider/db.py
aspxcor/Ming-Dynasty-Knowledge-Graph
576cbbd86ca61d415d18bb5d6c60feac56357693
[ "MIT" ]
1
2022-02-09T03:13:00.000Z
2022-02-09T03:13:00.000Z
import pymysql import dbExe a="*" b="kg.validRelationship" db=dbExe.db() # db.add(Table="validRelationship",names="(valid)",values=r'("父子4")') # db.delete(Table="validRelationship",name="valid",value=r'"父子4"') print(db.select(a,b))
23.3
69
0.703863
import pymysql import dbExe a="*" b="kg.validRelationship" db=dbExe.db() # db.add(Table="validRelationship",names="(valid)",values=r'("父子4")') # db.delete(Table="validRelationship",name="valid",value=r'"父子4"') print(db.select(a,b))
0
0
0
cda652031409758da610e6b0915e4a658f41312d
1,794
py
Python
2020/01/code.py
irobin591/advent-of-code-2019
279c28a2863558bd014b289802fff4b444c5d6cf
[ "MIT" ]
null
null
null
2020/01/code.py
irobin591/advent-of-code-2019
279c28a2863558bd014b289802fff4b444c5d6cf
[ "MIT" ]
null
null
null
2020/01/code.py
irobin591/advent-of-code-2019
279c28a2863558bd014b289802fff4b444c5d6cf
[ "MIT" ]
null
null
null
# Advent of Code 2020 # Day 01 # Author: irobin591 import os import doctest with open(os.path.join(os.path.dirname(__file__), "input.txt"), 'r') as input_file: input_data = input_file.read() # Prep Input input_data = list(map(int, input_data.strip().split('\n'))) # print(input_data) def part1(input_data): ...
24.916667
83
0.584727
# Advent of Code 2020 # Day 01 # Author: irobin591 import os import doctest with open(os.path.join(os.path.dirname(__file__), "input.txt"), 'r') as input_file: input_data = input_file.read() # Prep Input input_data = list(map(int, input_data.strip().split('\n'))) # print(input_data) def part1(input_data): ...
0
0
0
6d67dce8b62b3d80e3629c6790b99aedc88608e3
2,034
py
Python
tocador mp3 python/tocador_mp3_python.py
Koalapvh13/python_exercises
5dc12dfa886edaccc54727d1866438f20a83d4d0
[ "MIT" ]
null
null
null
tocador mp3 python/tocador_mp3_python.py
Koalapvh13/python_exercises
5dc12dfa886edaccc54727d1866438f20a83d4d0
[ "MIT" ]
null
null
null
tocador mp3 python/tocador_mp3_python.py
Koalapvh13/python_exercises
5dc12dfa886edaccc54727d1866438f20a83d4d0
[ "MIT" ]
null
null
null
import pygame import os version = '2.0 (Beta)' update = 'March 6th, 2018' playlist() os.system("pause")
30.818182
120
0.333333
import pygame import os version = '2.0 (Beta)' update = 'March 6th, 2018' def playlist(): print( "+-----------------------------------------------------------------------------------------------------------+") print( "| ...
1,904
0
23
b5e3c96d790f5b5539d92549c83a1e60f902dba2
6,531
py
Python
clubhouse/parser.py
j-martin/clubhouse
45975e337905d701a2d4725133f0f9f85e5da076
[ "MIT" ]
2
2019-04-12T09:29:06.000Z
2019-05-03T12:00:03.000Z
clubhouse/parser.py
j-martin/clubhouse
45975e337905d701a2d4725133f0f9f85e5da076
[ "MIT" ]
1
2018-11-05T23:39:11.000Z
2018-11-05T23:39:11.000Z
clubhouse/parser.py
mahmoudimus/clubhouse
adaf97197b557e9cb6bf4eecd2b80a581987c7dc
[ "MIT" ]
4
2018-10-22T23:55:06.000Z
2019-12-01T03:47:23.000Z
""" Parses https://clubhouse.io/api/rest/v2/ and generates a JSON payload of their resources that can be used as basis of a client library. """ import argparse import logging import sys import re from typing import Dict from collections import OrderedDict, deque from lxml import html from unidecode import unidecode f...
30.661972
94
0.59409
""" Parses https://clubhouse.io/api/rest/v2/ and generates a JSON payload of their resources that can be used as basis of a client library. """ import argparse import logging import sys import re from typing import Dict from collections import OrderedDict, deque from lxml import html from unidecode import unidecode f...
5,686
0
207
123426310c510e0cb92a84aaba3b535adbdd3d41
202
py
Python
List_files.py
HawkingLaugh/Whisky-Related-Project
83fd415f9350eac214315d50387676766019b7f0
[ "MIT" ]
null
null
null
List_files.py
HawkingLaugh/Whisky-Related-Project
83fd415f9350eac214315d50387676766019b7f0
[ "MIT" ]
null
null
null
List_files.py
HawkingLaugh/Whisky-Related-Project
83fd415f9350eac214315d50387676766019b7f0
[ "MIT" ]
null
null
null
import pathlib from os import listdir from os.path import isfile, join
28.857143
76
0.712871
import pathlib from os import listdir from os.path import isfile, join def get_files(my_path): # path = input('Paths: ') filename = [f for f in listdir(path=my_path) if isfile(join(my_path,f))]
109
0
23
dc8143457a2ac5bfe1b4efd724c65cef8d03a12a
349
py
Python
app.py
edusan7/cdk-serverless-pipeline-starter-template
299fa1dffc9b1dc2cf52a6703eb36dd56a3c49db
[ "Apache-2.0" ]
9
2019-10-20T21:02:43.000Z
2021-02-16T10:19:08.000Z
app.py
edusan7/cdk-serverless-pipeline-starter-template
299fa1dffc9b1dc2cf52a6703eb36dd56a3c49db
[ "Apache-2.0" ]
null
null
null
app.py
edusan7/cdk-serverless-pipeline-starter-template
299fa1dffc9b1dc2cf52a6703eb36dd56a3c49db
[ "Apache-2.0" ]
9
2019-10-13T15:39:45.000Z
2021-05-26T16:38:57.000Z
#!/usr/bin/env python3 from aws_cdk import core import os from serverless_pipeline.serverless_pipeline_stack import ServerlessPipelineStack app = core.App() ServerlessPipelineStack(app, "serverless-pipeline", env=core.Environment( account=os.getenv('AWS_CDK_DEFAULT_ACCOUNT'), region=os.getenv('AWS_CDK_DEFAU...
21.8125
81
0.790831
#!/usr/bin/env python3 from aws_cdk import core import os from serverless_pipeline.serverless_pipeline_stack import ServerlessPipelineStack app = core.App() ServerlessPipelineStack(app, "serverless-pipeline", env=core.Environment( account=os.getenv('AWS_CDK_DEFAULT_ACCOUNT'), region=os.getenv('AWS_CDK_DEFAU...
0
0
0
afc0c3b7f24a969259ab6ea8035fa90bfaf7cfad
39
py
Python
cat/log/__init__.py
e12005490/CAT
f322f885360439327221fb51e23ed42d8fdeda00
[ "BSD-3-Clause" ]
2
2021-06-23T14:27:27.000Z
2021-07-04T13:44:03.000Z
cat/log/__init__.py
e12005490/CAT
f322f885360439327221fb51e23ed42d8fdeda00
[ "BSD-3-Clause" ]
null
null
null
cat/log/__init__.py
e12005490/CAT
f322f885360439327221fb51e23ed42d8fdeda00
[ "BSD-3-Clause" ]
1
2020-12-02T21:03:32.000Z
2020-12-02T21:03:32.000Z
from cat.log.log import enable_logging
19.5
38
0.846154
from cat.log.log import enable_logging
0
0
0
4167bbe9554b86bc903c8c9aadc9881a3baf49c5
446
py
Python
pra subir/pythonexercicios/ex42.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
pra subir/pythonexercicios/ex42.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
pra subir/pythonexercicios/ex42.py
daianebandeira88/curso-python
763f5f36b6d7329549ad861c63acc3c84aade887
[ "MIT" ]
null
null
null
r1=float(input('primeiro segmento')) r2=float(input('segundo segmento')) r3=float(input('terceiro segmento')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print('os segmentos acima podem formar um triangulo ' ,end='') if r1 == r2 and r2 == r3: print('EQUILATERO') elif r1 != r2 != r3 != r1: ...
34.307692
66
0.616592
r1=float(input('primeiro segmento')) r2=float(input('segundo segmento')) r3=float(input('terceiro segmento')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print('os segmentos acima podem formar um triangulo ' ,end='') if r1 == r2 and r2 == r3: print('EQUILATERO') elif r1 != r2 != r3 != r1: ...
0
0
0
05a2aabcad9d2b7c91c1ea7c34e4db3da03cbad5
1,322
py
Python
Python3/1170.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/1170.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/1170.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 72 ms submission __________________________________________________________________________________________________ sample 136 ms submission _________________________________________________________________________...
48.962963
107
0.688351
__________________________________________________________________________________________________ sample 72 ms submission class Solution: def numSmallerByLeadingCount(self, queries: List[str], words: List[str]) -> List[int]: def score(word): return word.count(min(word)) word_s...
892
-12
96
45df30d3c79310cce01ab793fba5834771916f6a
362
py
Python
kb/admin.py
movermeyer/django-kb
3c3246761f4f6d60221049f46ce9702fd56384a8
[ "BSD-3-Clause" ]
7
2015-04-17T12:01:29.000Z
2021-06-21T01:54:15.000Z
kb/admin.py
movermeyer/django-kb
3c3246761f4f6d60221049f46ce9702fd56384a8
[ "BSD-3-Clause" ]
null
null
null
kb/admin.py
movermeyer/django-kb
3c3246761f4f6d60221049f46ce9702fd56384a8
[ "BSD-3-Clause" ]
3
2015-04-17T16:21:42.000Z
2018-06-06T13:34:03.000Z
from __future__ import unicode_literals from django.contrib import admin from .article.admin import ArticleAdmin from .category.admin import CategoryAdmin from .vote.admin import VoteAdmin from .models import Article, Category, Vote admin.site.register(Article, ArticleAdmin) admin.site.register(Category, CategoryAd...
25.857143
44
0.831492
from __future__ import unicode_literals from django.contrib import admin from .article.admin import ArticleAdmin from .category.admin import CategoryAdmin from .vote.admin import VoteAdmin from .models import Article, Category, Vote admin.site.register(Article, ArticleAdmin) admin.site.register(Category, CategoryAd...
0
0
0
c7d46243836354e254c8dae539d0806a6b6d09a9
1,989
py
Python
bin/nback_derivative.py
willstrawson/adie_ongoingthoughts
a9ba9e8e4326fd528db72eac8ed5cc932fc490b5
[ "MIT" ]
1
2021-06-04T15:39:14.000Z
2021-06-04T15:39:14.000Z
bin/nback_derivative.py
willstrawson/adie_ongoingthoughts
a9ba9e8e4326fd528db72eac8ed5cc932fc490b5
[ "MIT" ]
27
2020-11-30T11:13:00.000Z
2021-05-02T07:58:37.000Z
bin/nback_derivative.py
willstrawson/adie_ongoingthoughts
a9ba9e8e4326fd528db72eac8ed5cc932fc490b5
[ "MIT" ]
4
2020-11-27T13:49:31.000Z
2021-04-28T15:51:09.000Z
from os import sep from pathlib import Path import json import pandas as pd from adie.nback import ( read_log, compile_performance, compile_probes, compile_ses, ) bids_dir = Path("__file__").parent # this file is in BIDS_data/code sub_probes = [] sub_beh = [] sub_ses = [] for p in bids_dir.glob("su...
25.177215
76
0.65812
from os import sep from pathlib import Path import json import pandas as pd from adie.nback import ( read_log, compile_performance, compile_probes, compile_ses, ) bids_dir = Path("__file__").parent # this file is in BIDS_data/code sub_probes = [] sub_beh = [] sub_ses = [] for p in bids_dir.glob("su...
0
0
0
4a707d2752561152bbc9cff59f79e54377f195b6
17,209
py
Python
lib/mk/autoconf/make_example_metamakefiles.py
rmrsk/Chombo-3.3
f2119e396460c1bb19638effd55eb71c2b35119e
[ "BSD-3-Clause-LBNL" ]
8
2019-08-07T12:34:08.000Z
2021-07-16T01:12:57.000Z
lib/mk/autoconf/make_example_metamakefiles.py
rmrsk/Chombo-3.3
f2119e396460c1bb19638effd55eb71c2b35119e
[ "BSD-3-Clause-LBNL" ]
1
2021-01-07T11:26:51.000Z
2021-01-07T11:26:51.000Z
lib/mk/autoconf/make_example_metamakefiles.py
rmrsk/Chombo-3.3
f2119e396460c1bb19638effd55eb71c2b35119e
[ "BSD-3-Clause-LBNL" ]
6
2020-03-08T18:17:48.000Z
2021-12-25T15:11:08.000Z
""" This script attempts to generate a complete autoconf/automake/libtool-based build system for any project that wants to use the Chombo library. To use it, type python make_example_metamakefiles.py <rootdir> where rootdir is the root directory of your project. Your project can contain C++ sources (with suffixes ....
41.46747
113
0.615085
""" This script attempts to generate a complete autoconf/automake/libtool-based build system for any project that wants to use the Chombo library. To use it, type python make_example_metamakefiles.py <rootdir> where rootdir is the root directory of your project. Your project can contain C++ sources (with suffixes ....
4,395
-5
171
a08c38d6c8319f07b9477a4539b2eeedf4490472
1,375
py
Python
radioepg/migrations/0023_auto_20210505_2116.py
mervij/radiodns
01543cf1e4de8de335af0301616e089c35fc67f8
[ "Apache-2.0" ]
null
null
null
radioepg/migrations/0023_auto_20210505_2116.py
mervij/radiodns
01543cf1e4de8de335af0301616e089c35fc67f8
[ "Apache-2.0" ]
8
2021-05-17T10:54:28.000Z
2021-06-08T12:02:37.000Z
radioepg/migrations/0023_auto_20210505_2116.py
mervij/radiodns
01543cf1e4de8de335af0301616e089c35fc67f8
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.1 on 2021-05-05 18:16 from django.db import migrations, models
31.25
91
0.579636
# Generated by Django 3.2.1 on 2021-05-05 18:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('radioepg', '0022_service_logo'), ] operations = [ migrations.AddField( model_name='service', name='logo112', ...
0
1,261
23
ee1c8f7bb7be58d86f5522c7f5df1b0d12eaa0db
1,329
py
Python
test/testbase/dummy.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
6
2018-08-10T17:11:10.000Z
2020-04-29T07:05:36.000Z
test/testbase/dummy.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
58
2018-08-13T08:36:08.000Z
2021-07-07T08:32:52.000Z
test/testbase/dummy.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
7
2018-08-10T12:53:18.000Z
2021-11-08T05:15:42.000Z
""" Copyright 2017 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
32.414634
72
0.54778
""" Copyright 2017 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
577
1
76
4bead50296bd25e856c7c5c341f7f4ccd6db5412
6,281
py
Python
ficapi/fictoken.py
riceball-k/ficapi
98387d98252f4e438a7c136b59dbefe1425718f0
[ "Apache-2.0" ]
null
null
null
ficapi/fictoken.py
riceball-k/ficapi
98387d98252f4e438a7c136b59dbefe1425718f0
[ "Apache-2.0" ]
null
null
null
ficapi/fictoken.py
riceball-k/ficapi
98387d98252f4e438a7c136b59dbefe1425718f0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 riceball-k # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.767773
79
0.574431
# Copyright 2021 riceball-k # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
0
0
0
c3a4c4d5fa877feaf2babdef850a2c1ecda90814
4,769
py
Python
WebKit/Tools/Scripts/webkitpy/common/system/executive_mock.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
1
2019-06-18T06:52:54.000Z
2019-06-18T06:52:54.000Z
WebKit/Tools/Scripts/webkitpy/common/system/executive_mock.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
WebKit/Tools/Scripts/webkitpy/common/system/executive_mock.py
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2011 Google Inc. 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 must retain the above copyright # notice, this list of conditions and the f...
39.413223
104
0.651499
# Copyright (C) 2011 Google Inc. 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 must retain the above copyright # notice, this list of conditions and the f...
2,733
15
313
fac72f5de4eca19b50e505af1e0929ed2f6b7d44
250
py
Python
p15.py
daicang/Euler
c00114d588351b6f2c637937558a35738d56345b
[ "MIT" ]
null
null
null
p15.py
daicang/Euler
c00114d588351b6f2c637937558a35738d56345b
[ "MIT" ]
null
null
null
p15.py
daicang/Euler
c00114d588351b6f2c637937558a35738d56345b
[ "MIT" ]
null
null
null
# Lattice path through 20 * 20 grids print solve(20, 20)
16.666667
43
0.452
# Lattice path through 20 * 20 grids def solve(x0, y0): x, y = x0 + 1, y0 + 1 l = [[1] * x] * y for i in range(1, x): for j in range(1, y): l[i][j] = l[i-1][j] + l[i][j-1] return l[x0][y0] print solve(20, 20)
167
0
23
6701dd775ed2c2e99d08413a997a7eec1946f37d
1,103
py
Python
src/arbiterd/common/nova.py
valleedelisle/arbiterd
18d6babbc3eab9eac6f35fd0babf1658cab4863e
[ "Apache-2.0" ]
null
null
null
src/arbiterd/common/nova.py
valleedelisle/arbiterd
18d6babbc3eab9eac6f35fd0babf1658cab4863e
[ "Apache-2.0" ]
6
2021-12-01T13:18:21.000Z
2022-01-31T23:50:24.000Z
src/arbiterd/common/nova.py
valleedelisle/arbiterd
18d6babbc3eab9eac6f35fd0babf1658cab4863e
[ "Apache-2.0" ]
1
2022-01-21T18:45:03.000Z
2022-01-21T18:45:03.000Z
# -*- coding: utf-8 -*- # Copyright 2021 - 2021, Sean Mooney and the arbiterd contributors # SPDX-License-Identifier: Apache-2.0 import configparser import typing as ty from arbiterd.common import cpu
26.902439
71
0.692656
# -*- coding: utf-8 -*- # Copyright 2021 - 2021, Sean Mooney and the arbiterd contributors # SPDX-License-Identifier: Apache-2.0 import configparser import typing as ty from arbiterd.common import cpu def parse_nova_conf(nova_conf: str) -> configparser.ConfigParser: config = configparser.ConfigParser(interpolati...
805
0
92
92d497e92371584ebd1df6bf0aa6c2bb39ad029b
9,266
py
Python
retrograde/modules/gra_afch/__init__.py
Software-Knife-and-Tool/retrograde
1c9be80eb42e3bf395feba2fd99b9a29bef15925
[ "MIT" ]
null
null
null
retrograde/modules/gra_afch/__init__.py
Software-Knife-and-Tool/retrograde
1c9be80eb42e3bf395feba2fd99b9a29bef15925
[ "MIT" ]
44
2020-11-22T19:56:59.000Z
2021-06-15T22:42:01.000Z
retrograde/modules/gra_afch/__init__.py
Software-Knife-and-Tool/retrograde
1c9be80eb42e3bf395feba2fd99b9a29bef15925
[ "MIT" ]
null
null
null
########## ## ## SPDX-License-Identifier: MIT ## ## Copyright (c) 2017-2022 James M. Putnam <putnamjm.design@gmail.com> ## ########## ########## ## ## gra-afch controller ## ########### """Manage GRA-AFCH NCS31X hardware See module ncs31x for display/clock interface. Classes: GraAfch Functions: dump(obje...
29.509554
79
0.514246
########## ## ## SPDX-License-Identifier: MIT ## ## Copyright (c) 2017-2022 James M. Putnam <putnamjm.design@gmail.com> ## ########## ########## ## ## gra-afch controller ## ########### """Manage GRA-AFCH NCS31X hardware See module ncs31x for display/clock interface. Classes: GraAfch Functions: dump(obje...
2,628
0
434
85f464a00257f88848ce98d9706db18bf15eb15d
2,998
py
Python
meissner/__main__.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
1
2022-01-27T10:16:46.000Z
2022-01-27T10:16:46.000Z
meissner/__main__.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
null
null
null
meissner/__main__.py
terrylove19/meissner
14cedb73aa86172aac7af4031aa4670d26acc8ef
[ "MIT" ]
null
null
null
""" .@@# (@&*%@@@/,%@@@# #&@@@@&. .@@# /&@@@@&* /&@@@@&* (@&*%@@@( *%@@@@&/ .@@&*&@. (@@&((&@@@(/&@@, #@@#/(&@@. .@@# #@@(///(, .@@%////, (@@&(/#@@# #@@&//#@@( .@@@@@%. (@@. /@@* ,@@/ .&@@%%%&@@* .@@# ...
37.475
111
0.548699
""" .@@# (@&*%@@@/,%@@@# #&@@@@&. .@@# /&@@@@&* /&@@@@&* (@&*%@@@( *%@@@@&/ .@@&*&@. (@@&((&@@@(/&@@, #@@#/(&@@. .@@# #@@(///(, .@@%////, (@@&(/#@@# #@@&//#@@( .@@@@@%. (@@. /@@* ,@@/ .&@@%%%&@@* .@@# ...
259
93
23
99161f4405050317dc8d31e92ba3ec2ce76eea68
2,235
py
Python
certifiable/__init__.py
sys-git/certifiable
a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8
[ "MIT" ]
null
null
null
certifiable/__init__.py
sys-git/certifiable
a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8
[ "MIT" ]
311
2017-09-14T22:34:21.000Z
2022-03-27T18:30:17.000Z
certifiable/__init__.py
sys-git/certifiable
a3c33c0d4f3ac2c53be9eded3fae633fa5f697f8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: latin-1 -*- # ____ ____ ____ ______ ______ ____ ______ ____ __ ____ # /\ _`\ /\ _`\ /\ _`\ /\__ _/\__ _\/\ _`\ /\ _ \/\ _`\ /\ \ /\ _`\ # \ \ \/\_\ \ \L\_\ \ \L\ \/_/\ \\/_/\ \/\ \ \L\_\ \ \L\ \ \ \L\ \ \ \ \ \ \L\_\ # \ \ \/_/\ \ _\L\ \ , ...
33.358209
97
0.587472
#!/usr/bin/env python # -*- coding: latin-1 -*- # ____ ____ ____ ______ ______ ____ ______ ____ __ ____ # /\ _`\ /\ _`\ /\ _`\ /\__ _/\__ _\/\ _`\ /\ _ \/\ _`\ /\ \ /\ _`\ # \ \ \/\_\ \ \L\_\ \ \L\ \/_/\ \\/_/\ \/\ \ \L\_\ \ \L\ \ \ \L\ \ \ \ \ \ \L\_\ # \ \ \/_/\ \ _\L\ \ , ...
0
0
0
07bfae00eeb43316afb302e4aa036a13d9396e3c
1,345
py
Python
example/compat.py
mattkatz/dynaconf
5f79f18ce031fcef7631b66b9eb0c311c6424d01
[ "MIT" ]
null
null
null
example/compat.py
mattkatz/dynaconf
5f79f18ce031fcef7631b66b9eb0c311c6424d01
[ "MIT" ]
null
null
null
example/compat.py
mattkatz/dynaconf
5f79f18ce031fcef7631b66b9eb0c311c6424d01
[ "MIT" ]
null
null
null
from dynaconf import LazySettings settings = LazySettings( DYNACONF_NAMESPACE='FOO', DYNACONF_SETTINGS_MODULE='foo.py', PROJECT_ROOT='/tmp', DYNACONF_SILENT_ERRORS=True, DYNACONF_ALWAYS_FRESH_VARS=['BAR'] ) assert settings.ENV_FOR_DYNACONF == 'FOO' assert settings.SETTINGS_MODULE_FOR_DYNACONF == ...
29.888889
56
0.81487
from dynaconf import LazySettings settings = LazySettings( DYNACONF_NAMESPACE='FOO', DYNACONF_SETTINGS_MODULE='foo.py', PROJECT_ROOT='/tmp', DYNACONF_SILENT_ERRORS=True, DYNACONF_ALWAYS_FRESH_VARS=['BAR'] ) assert settings.ENV_FOR_DYNACONF == 'FOO' assert settings.SETTINGS_MODULE_FOR_DYNACONF == ...
0
0
0
8688294bfc8d813dfe57824b275879de0265537b
4,475
py
Python
scripts/make_iso_input_file.py
marwahaha/MIST_codes
116fc4f85f985c869e225eaae1e023251629dee8
[ "MIT" ]
17
2016-05-19T01:49:11.000Z
2022-03-31T14:56:21.000Z
scripts/make_iso_input_file.py
arjanbik/MIST_codes
116fc4f85f985c869e225eaae1e023251629dee8
[ "MIT" ]
3
2016-05-25T15:44:38.000Z
2021-08-11T13:30:56.000Z
scripts/make_iso_input_file.py
arjanbik/MIST_codes
116fc4f85f985c869e225eaae1e023251629dee8
[ "MIT" ]
25
2016-11-18T19:30:00.000Z
2021-09-09T15:14:22.000Z
""" Generates the input file to the MIST isochrone code. Use in either the eep or iso mode. Args: runname: the name of the grid mode: determine if the the file is to make isochrones or eeps Returns: None Example: >>> make_iso_input_file('MIST_v0.1', 'eeps') """ import glob import os im...
40.681818
137
0.607151
""" Generates the input file to the MIST isochrone code. Use in either the eep or iso mode. Args: runname: the name of the grid mode: determine if the the file is to make isochrones or eeps Returns: None Example: >>> make_iso_input_file('MIST_v0.1', 'eeps') """ import glob import os im...
4,115
0
23
df05cf12de434b7a4cb11b97a3c9f0048e5c8171
2,752
py
Python
iotawallet/gui/send.py
scottbelden/iotawallet
4b495b4a94ea7ad2ca593515e9dda10ffe8bb476
[ "MIT" ]
null
null
null
iotawallet/gui/send.py
scottbelden/iotawallet
4b495b4a94ea7ad2ca593515e9dda10ffe8bb476
[ "MIT" ]
null
null
null
iotawallet/gui/send.py
scottbelden/iotawallet
4b495b4a94ea7ad2ca593515e9dda10ffe8bb476
[ "MIT" ]
null
null
null
import wx from ..wallet import Wallet SPACER = (0, 0)
34.835443
80
0.590843
import wx from ..wallet import Wallet SPACER = (0, 0) class SendTab(wx.Panel): # type: ignore def __init__(self, parent: wx.Window, wallet: Wallet) -> None: super().__init__(parent) self.wallet = wallet self.create_send_tab() def create_send_tab(se...
2,519
19
157
7a52120f4b6f320604b136fce855e1da180aabaa
1,997
py
Python
testsuite/tests/apicast/policy/test_default_credentials_policy.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
5
2021-11-04T14:09:24.000Z
2021-12-23T13:48:36.000Z
testsuite/tests/apicast/policy/test_default_credentials_policy.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
41
2021-11-03T14:27:21.000Z
2022-03-29T14:46:16.000Z
testsuite/tests/apicast/policy/test_default_credentials_policy.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
12
2021-11-03T17:28:31.000Z
2021-11-30T12:28:25.000Z
"Rewrite spec/functional_specs/policies/default_credentials_spec.rb" import pytest from threescale_api.resources import Service from testsuite import rawobj from testsuite.utils import blame @pytest.fixture(scope="module") def application(application, service): "Application with default_credentials policy conf...
35.035088
99
0.751627
"Rewrite spec/functional_specs/policies/default_credentials_spec.rb" import pytest from threescale_api.resources import Service from testsuite import rawobj from testsuite.utils import blame @pytest.fixture(scope="module") def application(application, service): "Application with default_credentials policy conf...
0
0
0
b242ac360de6a7a7086d7b7218d722b4c0236654
1,798
py
Python
packages/tractography/mristudio_to_swc.py
justi/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
12
2015-03-11T22:07:17.000Z
2016-01-29T21:24:29.000Z
packages/tractography/mristudio_to_swc.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
213
2015-01-30T16:02:57.000Z
2016-01-29T21:45:02.000Z
packages/tractography/mristudio_to_swc.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
5
2015-02-04T13:58:12.000Z
2016-01-29T21:24:46.000Z
#!/usr/bin/env python # Copyright 2014 Open Connectome Project (http://openconnecto.me) # # 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 # #...
29
107
0.67297
#!/usr/bin/env python # Copyright 2014 Open Connectome Project (http://openconnecto.me) # # 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 # #...
222
0
48
88172972b739ccfbabb46955126f913724d499b3
251
py
Python
lab/lab00.py
dani3lwinter/IML.HUJI
46b5e001b92d7bac3b7efa2278d0236b69159895
[ "MIT" ]
null
null
null
lab/lab00.py
dani3lwinter/IML.HUJI
46b5e001b92d7bac3b7efa2278d0236b69159895
[ "MIT" ]
null
null
null
lab/lab00.py
dani3lwinter/IML.HUJI
46b5e001b92d7bac3b7efa2278d0236b69159895
[ "MIT" ]
null
null
null
import sys import numpy as np sys.path.append("../") from utils import * print(find_closest([1, 24, 12, 13, 14], 10))
13.944444
44
0.649402
import sys import numpy as np sys.path.append("../") from utils import * def create_cartesian_product(vec1, vec2): pass def find_closest(a, n): a = np.array(a) return np.min(np.abs(a-n)) print(find_closest([1, 24, 12, 13, 14], 10))
82
0
46
1044eaf84965eeda15c2a91692f1484268ad0443
1,078
py
Python
src/ggrc_basic_permissions/migrations/versions/20150317135354_27432edbe6d4_add_unique_constraint_for_user_roles.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
null
null
null
src/ggrc_basic_permissions/migrations/versions/20150317135354_27432edbe6d4_add_unique_constraint_for_user_roles.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
12
2015-01-08T14:50:19.000Z
2017-11-29T19:37:53.000Z
src/ggrc_basic_permissions/migrations/versions/20150317135354_27432edbe6d4_add_unique_constraint_for_user_roles.py
mikecb/ggrc-core
1cda560cb0920021416e07740c6cca1acba56268
[ "ECL-2.0", "Apache-2.0" ]
1
2015-01-08T13:25:09.000Z
2015-01-08T13:25:09.000Z
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: anze@reciprocitylabs.com # Maintained By: anze@reciprocitylabs.com """add unique constraint for user roles Revision ID: 27432edbe6d4 Revises: 3bb...
29.135135
218
0.746753
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: anze@reciprocitylabs.com # Maintained By: anze@reciprocitylabs.com """add unique constraint for user roles Revision ID: 27432edbe6d4 Revises: 3bb...
508
0
46
bedbe0574b32d7f8277a0a2417b43d49adbec00b
4,947
py
Python
tests/test.py
emielv-stu/python-postcodes-io
012412825afbb462f5e1e144bf93200794558576
[ "MIT" ]
16
2019-01-07T21:17:46.000Z
2022-03-25T18:37:35.000Z
tests/test.py
thewamz/python-postcodes-io
a4e91c88b7dbf6ed63eceba2746227d1873c7c54
[ "MIT" ]
1
2019-11-12T08:45:59.000Z
2019-11-12T08:45:59.000Z
tests/test.py
thewamz/python-postcodes-io
a4e91c88b7dbf6ed63eceba2746227d1873c7c54
[ "MIT" ]
4
2019-11-20T21:58:43.000Z
2021-05-17T12:40:02.000Z
import unittest import postcodes_io_api import random
52.62766
120
0.681423
import unittest import postcodes_io_api import random class PostcodeIOTest(unittest.TestCase): def setUp(self): self.api_client = postcodes_io_api.Api() self.latitude = 51.466324 self.longitude = -0.173606 self.VALID_OUTCODES = ['KT19', 'HA9', 'SW19', 'IV2', 'PH16'] self.V...
4,318
550
23
2b7bc498ae4838f9d7d50e516a343f3a09283220
873
py
Python
zedenv/__init__.py
benyanke/zedenv
ca91d05fe74357b786b1a013f18351658e2a4a51
[ "BSD-3-Clause" ]
null
null
null
zedenv/__init__.py
benyanke/zedenv
ca91d05fe74357b786b1a013f18351658e2a4a51
[ "BSD-3-Clause" ]
null
null
null
zedenv/__init__.py
benyanke/zedenv
ca91d05fe74357b786b1a013f18351658e2a4a51
[ "BSD-3-Clause" ]
null
null
null
# __init__.py import subprocess __version__ = '0.2.0' def vcs_release(version: str): """ If in git repo, get git version """ try: git_hash = subprocess.check_output( ['git', 'rev-parse', '--short', 'HEAD'], universal_newlines=True, stderr=subprocess.PIPE) except s...
24.942857
85
0.627721
# __init__.py import subprocess __version__ = '0.2.0' def vcs_release(version: str): """ If in git repo, get git version """ try: git_hash = subprocess.check_output( ['git', 'rev-parse', '--short', 'HEAD'], universal_newlines=True, stderr=subprocess.PIPE) except s...
0
0
0
d821c28e1486dd2deb72a873e7ce437b4a192669
3,533
py
Python
flavio/physics/bdecays/bvll/amplitudes.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
61
2016-03-09T16:19:39.000Z
2022-03-30T00:55:51.000Z
flavio/physics/bdecays/bvll/amplitudes.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
167
2016-03-15T15:25:57.000Z
2022-02-27T22:19:22.000Z
flavio/physics/bdecays/bvll/amplitudes.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
57
2016-03-15T14:24:23.000Z
2022-01-14T01:00:03.000Z
"""Functions for constructing the helicity amplitudes""" from flavio.physics.bdecays.common import lambda_K, beta_l from math import sqrt, pi from flavio.physics.bdecays.wilsoncoefficients import wctot_dict, get_wceff from flavio.physics.running import running from flavio.config import config from flavio.physics.bdeca...
41.081395
121
0.680442
"""Functions for constructing the helicity amplitudes""" from flavio.physics.bdecays.common import lambda_K, beta_l from math import sqrt, pi from flavio.physics.bdecays.wilsoncoefficients import wctot_dict, get_wceff from flavio.physics.running import running from flavio.config import config from flavio.physics.bdeca...
2,634
0
159
606b47acd58fd4dd17c55fc84eba614a90158647
84
py
Python
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/unit_test_part/__init__.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/unit_test_part/__init__.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/unit_test_part/__init__.py
lmnotran/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
""" Test code used for unit tests lives here. Do not put production code here. """
14
41
0.702381
""" Test code used for unit tests lives here. Do not put production code here. """
0
0
0
e7d7276e87a2a43529f72b73e6e9c977003f554f
19,554
py
Python
mingle/utilities/phoenix_utils.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2018-09-04T19:06:44.000Z
2018-09-04T19:06:44.000Z
mingle/utilities/phoenix_utils.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
85
2017-03-25T22:37:02.000Z
2022-03-01T16:49:14.000Z
mingle/utilities/phoenix_utils.py
jason-neal/companion_simulations
b5773e5539011d492b7128d0dd2778041ce50d52
[ "MIT" ]
1
2017-08-18T10:56:39.000Z
2017-08-18T10:56:39.000Z
"""Phoenix Utilities. Some functions to deal with phoenix models i.e. searching for models with certain parameters Jason Neal, January 2017 """ import glob import itertools import logging import os import warnings import Starfish import numpy as np from Starfish.grid_tools import HDF5Interface from astropy.io import...
36.144177
123
0.644267
"""Phoenix Utilities. Some functions to deal with phoenix models i.e. searching for models with certain parameters Jason Neal, January 2017 """ import glob import itertools import logging import os import warnings import Starfish import numpy as np from Starfish.grid_tools import HDF5Interface from astropy.io import...
3,082
0
161
5d71a6fd59057f44b5149d32337e46b4adc3d7e9
8,062
py
Python
ahmia/solr_grouping_backend.py
keyboardcowboy42/ahmia
a474a30e77f002ddf2be771dbe5ee7371a3c0ec8
[ "BSD-3-Clause" ]
176
2015-01-12T10:27:28.000Z
2022-02-01T16:43:12.000Z
ahmia/solr_grouping_backend.py
keyboardcowboy42/ahmia
a474a30e77f002ddf2be771dbe5ee7371a3c0ec8
[ "BSD-3-Clause" ]
17
2015-01-05T11:58:51.000Z
2022-03-02T14:54:14.000Z
ahmia/solr_grouping_backend.py
keyboardcowboy42/ahmia
a474a30e77f002ddf2be771dbe5ee7371a3c0ec8
[ "BSD-3-Clause" ]
80
2015-01-07T14:43:36.000Z
2020-11-09T01:03:51.000Z
# encoding: utf-8 """Experimental Solr Grouping / Field Collapsing backend for Haystack 2.0""" # NOTE: You must be running the latest Pysolr master - no PyPI release yet! # See https://gist.github.com/3750774 for the current version of this code # See http://wiki.apache.org/solr/FieldCollapsing for the Solr feature doc...
39.326829
110
0.632721
# encoding: utf-8 """Experimental Solr Grouping / Field Collapsing backend for Haystack 2.0""" # NOTE: You must be running the latest Pysolr master - no PyPI release yet! # See https://gist.github.com/3750774 for the current version of this code # See http://wiki.apache.org/solr/FieldCollapsing for the Solr feature doc...
5,459
1,472
250
cbdab3e6e4d30e8dd46dc3d9430542aa328f9c5e
743
py
Python
digits-knn.py
WuzipengYL/2-scikit-learn-intro
afd1011d2fad77e85724f9d12591bc3574d3c51e
[ "Apache-2.0" ]
null
null
null
digits-knn.py
WuzipengYL/2-scikit-learn-intro
afd1011d2fad77e85724f9d12591bc3574d3c51e
[ "Apache-2.0" ]
null
null
null
digits-knn.py
WuzipengYL/2-scikit-learn-intro
afd1011d2fad77e85724f9d12591bc3574d3c51e
[ "Apache-2.0" ]
null
null
null
## 这里我们用K-近邻估计来判断手写数字的扫描图像来判断数字是多少。 from sklearn import datasets from sklearn.neighbors import KNeighborsClassifier ## 导入数据 digits = datasets.load_digits() X_digits = digits.data y_digits = digits.target n_samples = len(X_digits) ## 拆分训练集和测试集 #X_train = X_digits[:.9 * n_samples] #y_train = y_digits[:.9 * n_samples...
20.081081
50
0.732167
## 这里我们用K-近邻估计来判断手写数字的扫描图像来判断数字是多少。 from sklearn import datasets from sklearn.neighbors import KNeighborsClassifier ## 导入数据 digits = datasets.load_digits() X_digits = digits.data y_digits = digits.target n_samples = len(X_digits) ## 拆分训练集和测试集 #X_train = X_digits[:.9 * n_samples] #y_train = y_digits[:.9 * n_samples...
0
0
0
d7ac50a8eb587719728dbff277531c620447d436
6,381
py
Python
DB/Database.py
fefelson/FelsonSports
bc0c16d63b19ffe4d468dcda5ab224013abe23fa
[ "MIT" ]
null
null
null
DB/Database.py
fefelson/FelsonSports
bc0c16d63b19ffe4d468dcda5ab224013abe23fa
[ "MIT" ]
null
null
null
DB/Database.py
fefelson/FelsonSports
bc0c16d63b19ffe4d468dcda5ab224013abe23fa
[ "MIT" ]
null
null
null
import os import sqlite3 import unicodedata import tarfile import json import shutil from .. import Environ as ENV from abc import ABCMeta, abstractmethod from itertools import chain from pprint import pprint ################################################################################ ###########################...
31.126829
166
0.542548
import os import sqlite3 import unicodedata import tarfile import json import shutil from .. import Environ as ENV from abc import ABCMeta, abstractmethod from itertools import chain from pprint import pprint ################################################################################ ###########################...
4,783
0
530
afa2e8424b7013cdb4acfc58337a742581335e8a
667
py
Python
modulo 1/d004/tipoprimitivo.py
rafa-evangelista/PYTHON
761ec7e01f1617263bc023a6b82b599a936275ee
[ "MIT" ]
null
null
null
modulo 1/d004/tipoprimitivo.py
rafa-evangelista/PYTHON
761ec7e01f1617263bc023a6b82b599a936275ee
[ "MIT" ]
null
null
null
modulo 1/d004/tipoprimitivo.py
rafa-evangelista/PYTHON
761ec7e01f1617263bc023a6b82b599a936275ee
[ "MIT" ]
null
null
null
p = (input('Digite algo: ')) print('A variável ', p, ' é alfabética? ', (p.isalpha())) print('A variável ', p, ' é numérica? ', (p.isnumeric())) print('A variável ', p, ' é alfanumérica? ', (p.isalnum())) print('A variável ', p, ' é dígito? ', (p.isdigit())) print('A variável ', p, ' é minúscula? ', (p.islower())) prin...
55.583333
65
0.584708
p = (input('Digite algo: ')) print('A variável ', p, ' é alfabética? ', (p.isalpha())) print('A variável ', p, ' é numérica? ', (p.isnumeric())) print('A variável ', p, ' é alfanumérica? ', (p.isalnum())) print('A variável ', p, ' é dígito? ', (p.isdigit())) print('A variável ', p, ' é minúscula? ', (p.islower())) prin...
0
0
0
552e612284da911df93384aaa96e4ceeb40333db
274
py
Python
06/quad_eq.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
06/quad_eq.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
06/quad_eq.py
Siketyan/Programming-I
0749c1ae045d53cd8a67f0de7ab13c26030ddd74
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # 2次方程式の解を求める import math print("2次方程式の係数を入れてください") a = float(input("a = ")) b = float(input("b = ")) c = float(input("c = ")) d = math.sqrt((b * b) - (4 * a * c)) x1 = (- b + d) / (2 * a) x2 = (- b - d) / (2 * a) print("解は %6.2f と %6.2f です。" %(x1, x2))
17.125
39
0.489051
# coding: utf-8 # 2次方程式の解を求める import math print("2次方程式の係数を入れてください") a = float(input("a = ")) b = float(input("b = ")) c = float(input("c = ")) d = math.sqrt((b * b) - (4 * a * c)) x1 = (- b + d) / (2 * a) x2 = (- b - d) / (2 * a) print("解は %6.2f と %6.2f です。" %(x1, x2))
0
0
0
0ad14b8593a4e18a694b203872fa03d40ab663c8
1,415
py
Python
armory/baseline_models/keras/resnet50.py
KyleBittner/armory
7e403d6aa9f8f60f34365de06cd990697a1c5b1c
[ "MIT" ]
1
2021-06-17T23:05:58.000Z
2021-06-17T23:05:58.000Z
armory/baseline_models/keras/resnet50.py
KyleBittner/armory
7e403d6aa9f8f60f34365de06cd990697a1c5b1c
[ "MIT" ]
null
null
null
armory/baseline_models/keras/resnet50.py
KyleBittner/armory
7e403d6aa9f8f60f34365de06cd990697a1c5b1c
[ "MIT" ]
null
null
null
""" ResNet50 CNN model for 244x244x3 image classification """ from typing import Optional import tensorflow as tf from art.classifiers import KerasClassifier from tensorflow.keras.applications.resnet50 import ResNet50 from tensorflow.keras.layers import Lambda from tensorflow.keras.models import Model IMAGENET_MEANS...
33.690476
115
0.737102
""" ResNet50 CNN model for 244x244x3 image classification """ from typing import Optional import tensorflow as tf from art.classifiers import KerasClassifier from tensorflow.keras.applications.resnet50 import ResNet50 from tensorflow.keras.layers import Lambda from tensorflow.keras.models import Model IMAGENET_MEANS...
0
0
0
4b59942824827c6641bf0499d42429470c8035b4
93,027
py
Python
src/python/attic/evenblocks.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
10
2017-09-30T14:31:42.000Z
2021-12-12T07:52:05.000Z
src/python/attic/evenblocks.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
56
2017-04-11T15:47:15.000Z
2019-10-11T15:50:35.000Z
src/python/attic/evenblocks.py
BBN-Q/pyqgl2
7acc8b244ee7799c21df03ecff8325e15cdb94d3
[ "Apache-2.0" ]
3
2019-06-20T07:08:39.000Z
2020-10-24T19:29:05.000Z
# Copyright 2016 by Raytheon BBN Technologies Corp. All Rights Reserved. # Note: This code is QGL not QGL2 # This file contains code to replace Barrier instructions with appropriate Id() # pulses to make channels line up without using a Wait where possible. # Where not possible, it replaces the Barrier with Sync the...
46.374377
411
0.602331
# Copyright 2016 by Raytheon BBN Technologies Corp. All Rights Reserved. # Note: This code is QGL not QGL2 # This file contains code to replace Barrier instructions with appropriate Id() # pulses to make channels line up without using a Wait where possible. # Where not possible, it replaces the Barrier with Sync the...
14,937
0
503
4193f67ee2419bbcb7536b678b831e08fb18ef71
6,459
py
Python
rlpyt/models/curiosity/disagreement.py
williamd4112/curiosity_baselines
45939f3f24c53cfff5153ef012486a6a058660be
[ "MIT" ]
null
null
null
rlpyt/models/curiosity/disagreement.py
williamd4112/curiosity_baselines
45939f3f24c53cfff5153ef012486a6a058660be
[ "MIT" ]
3
2021-09-08T03:31:49.000Z
2022-03-12T00:59:45.000Z
rlpyt/models/curiosity/disagreement.py
williamd4112/curiosity_baselines
45939f3f24c53cfff5153ef012486a6a058660be
[ "MIT" ]
null
null
null
import torch from torch import nn import numpy as np import cv2 from rlpyt.utils.tensor import infer_leading_dims, restore_leading_dims, valid_mean from rlpyt.models.curiosity.encoders import * from rlpyt.models.curiosity.forward_models import * class Disagreement(nn.Module): """Curiosity model for intrinsically...
45.808511
155
0.650875
import torch from torch import nn import numpy as np import cv2 from rlpyt.utils.tensor import infer_leading_dims, restore_leading_dims, valid_mean from rlpyt.models.curiosity.encoders import * from rlpyt.models.curiosity.forward_models import * class Disagreement(nn.Module): """Curiosity model for intrinsically...
5,826
0
108
8f33c883632dd88e193a16cb271b82e81a1d018a
1,778
py
Python
ppjson.py
nightjuggler/peaks
9ef7596295648e070eb5b62c88564423916d84fa
[ "MIT" ]
1
2021-01-16T17:54:03.000Z
2021-01-16T17:54:03.000Z
ppjson.py
nightjuggler/peaks
9ef7596295648e070eb5b62c88564423916d84fa
[ "MIT" ]
null
null
null
ppjson.py
nightjuggler/peaks
9ef7596295648e070eb5b62c88564423916d84fa
[ "MIT" ]
null
null
null
# # ppjson.py - Pretty Print JSON # import sys level = 0 write = sys.stdout.write if __name__ == '__main__': main()
14.224
81
0.602362
# # ppjson.py - Pretty Print JSON # import sys def log(message, *formatArgs): print(message.format(*formatArgs), file=sys.stderr) level = 0 write = sys.stdout.write def writeTab(): write('\t' * level) def ppDict(o): global level, write n = len(o) if n == 0: write('{}') return if n == 1: write('{') fo...
1,521
0
138
7d3920167f2ff85fc145bda37fe2ad2ff4f17034
4,915
py
Python
src/cnrg/src/part_info.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
5
2020-03-13T02:54:03.000Z
2022-03-18T02:33:12.000Z
src/cnrg/src/part_info.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
2
2021-11-10T19:47:00.000Z
2022-02-10T01:24:59.000Z
src/cnrg/src/part_info.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
1
2021-05-24T21:54:44.000Z
2021-05-24T21:54:44.000Z
""" Partial info extraction and generation Partial boundary information containing node level info on boundary degree """ import random import networkx as nx import numpy as np from src.cnrg.src.LightMultiGraph import LightMultiGraph from src.cnrg.src.globals import find_boundary_edges def set_boundary_degrees_o...
34.612676
115
0.62238
""" Partial info extraction and generation Partial boundary information containing node level info on boundary degree """ import random import networkx as nx import numpy as np from src.cnrg.src.LightMultiGraph import LightMultiGraph from src.cnrg.src.globals import find_boundary_edges def set_boundary_degrees(g,...
401
0
23
3f4dea2d62030d0f427afb8a404d1182031975f7
11,515
py
Python
crowd_anki/config/config_ui.py
lukas-mertens/CrowdAnki
2961f9c073bc799f192235414408907632fc8211
[ "MIT" ]
null
null
null
crowd_anki/config/config_ui.py
lukas-mertens/CrowdAnki
2961f9c073bc799f192235414408907632fc8211
[ "MIT" ]
null
null
null
crowd_anki/config/config_ui.py
lukas-mertens/CrowdAnki
2961f9c073bc799f192235414408907632fc8211
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_files/config.ui' # # Created by: PyQt5 UI code generator 5.13.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
94.385246
635
0.730873
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_files/config.ui' # # Created by: PyQt5 UI code generator 5.13.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog...
11,187
3
76
e0142fa4ec05646b0e86910d593bf4e001e44504
8,615
py
Python
Utils/visualize_object_survey.py
arafin-lab/model_inversion_experiments
8e491f22ae847d8d0f2f31caed6ad0078c9b6a49
[ "Apache-2.0" ]
101
2018-10-26T14:39:19.000Z
2022-03-28T11:38:45.000Z
Utils/visualize_object_survey.py
zhampel/cyphercat
4029ae8683b9056013e6424d8931afe79afa618e
[ "Apache-2.0" ]
32
2018-10-10T23:02:04.000Z
2019-11-11T21:30:57.000Z
Utils/visualize_object_survey.py
zhampel/cyphercat
4029ae8683b9056013e6424d8931afe79afa618e
[ "Apache-2.0" ]
49
2018-10-05T17:54:49.000Z
2022-02-10T07:47:25.000Z
#!/usr/bin/python3 """ Set of functions used to call a series of algorithms used to visualize the object localization of a pre-trained network in PyTorch. The different algorithms are discussed in several papers, while the implementation is based, roughly, on work in the following repository (https://github.com/sar-...
32.509434
117
0.643645
#!/usr/bin/python3 """ Set of functions used to call a series of algorithms used to visualize the object localization of a pre-trained network in PyTorch. The different algorithms are discussed in several papers, while the implementation is based, roughly, on work in the following repository (https://github.com/sar-...
772
0
135
042732899e68080fe08c8f52ede7a73a878819ff
1,696
py
Python
tdclient/account_api.py
minchuang/td-client-python
6cf6dfbb60119f400274491d3e942d4f9fbcebd6
[ "Apache-2.0" ]
2
2019-02-22T11:56:17.000Z
2019-02-25T10:09:46.000Z
tdclient/account_api.py
minchuang/td-client-python
6cf6dfbb60119f400274491d3e942d4f9fbcebd6
[ "Apache-2.0" ]
null
null
null
tdclient/account_api.py
minchuang/td-client-python
6cf6dfbb60119f400274491d3e942d4f9fbcebd6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from __future__ import unicode_literals import time
33.92
79
0.514151
#!/usr/bin/env python from __future__ import print_function from __future__ import unicode_literals import time class AccountAPI(object): #### ## Account API ## def show_account(self): """ TODO: add docstring """ with self.get("/v3/account/show") as res: c...
0
1,559
23
467a08261626d9203c64f1475b1888f09feb9de9
34
py
Python
old/src/baseline_agents/Kait/__init__.py
horacioMartinez/L2RPN
11e13a60a568b8ad7f9c6de060ac8c41784ced96
[ "MIT" ]
2
2021-10-17T08:41:42.000Z
2021-12-22T18:39:39.000Z
old/src/baseline_agents/Kait/__init__.py
horacioMartinez/L2RPN
11e13a60a568b8ad7f9c6de060ac8c41784ced96
[ "MIT" ]
null
null
null
old/src/baseline_agents/Kait/__init__.py
horacioMartinez/L2RPN
11e13a60a568b8ad7f9c6de060ac8c41784ced96
[ "MIT" ]
null
null
null
from .submission import make_agent
34
34
0.882353
from .submission import make_agent
0
0
0
65921663e4f5728ae00968077e25c8c27650608e
1,507
py
Python
debuggee/debugvis.py
jroweboy/vscode-lldb
6d556023ad2e87971d977a66915876950a21207b
[ "MIT" ]
null
null
null
debuggee/debugvis.py
jroweboy/vscode-lldb
6d556023ad2e87971d977a66915876950a21207b
[ "MIT" ]
null
null
null
debuggee/debugvis.py
jroweboy/vscode-lldb
6d556023ad2e87971d977a66915876950a21207b
[ "MIT" ]
null
null
null
import io import lldb import debugger import base64 import numpy as np import matplotlib import matplotlib.pyplot as plt
35.046512
125
0.680159
import io import lldb import debugger import base64 import numpy as np import matplotlib import matplotlib.pyplot as plt def show(): image_bytes = io.BytesIO() plt.savefig(image_bytes, format='png', bbox_inches='tight') document = '<html><img src="data:image/png;base64,%s"></html>' % base64.b64encode(image...
1,271
0
115
439c5921c6284cb5fda23c030ae8a9d98952293a
89
py
Python
aawards/apps.py
seron-ux/Awards
e6cbe17a890e44b0d1d88c48d5c6c27656b50bfb
[ "MIT" ]
null
null
null
aawards/apps.py
seron-ux/Awards
e6cbe17a890e44b0d1d88c48d5c6c27656b50bfb
[ "MIT" ]
null
null
null
aawards/apps.py
seron-ux/Awards
e6cbe17a890e44b0d1d88c48d5c6c27656b50bfb
[ "MIT" ]
null
null
null
from django.apps import AppConfig
14.833333
33
0.752809
from django.apps import AppConfig class AawardsConfig(AppConfig): name = 'aawards'
0
31
23
7523dddeccce7c26beff51912adb1dd4fceff950
11,210
py
Python
logging_automation.py
aws-samples/aws-centeralized-logging-with-datadog
f1fb778664915b645a0fec5c56a34654ac761233
[ "MIT-0" ]
3
2020-02-05T03:52:33.000Z
2021-10-30T01:41:04.000Z
logging_automation.py
aws-samples/aws-centeralized-logging-with-datadog
f1fb778664915b645a0fec5c56a34654ac761233
[ "MIT-0" ]
null
null
null
logging_automation.py
aws-samples/aws-centeralized-logging-with-datadog
f1fb778664915b645a0fec5c56a34654ac761233
[ "MIT-0" ]
6
2018-09-06T05:48:07.000Z
2021-10-30T01:40:56.000Z
# Copyright 2008-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at # http://aws.amazon.com/apache2.0/ # or in the "license" file accompanying...
46.322314
268
0.632739
# Copyright 2008-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at # http://aws.amazon.com/apache2.0/ # or in the "license" file accompanying...
8,570
0
92
04ed3e193b41cca7d967ab45758a87d8c8d2d08a
3,726
py
Python
examples/main.py
2020-ICT-insdeout/ICT-insideout
abccd30552f8f67bd7699fa38608d50bf920fff9
[ "MIT" ]
null
null
null
examples/main.py
2020-ICT-insdeout/ICT-insideout
abccd30552f8f67bd7699fa38608d50bf920fff9
[ "MIT" ]
null
null
null
examples/main.py
2020-ICT-insdeout/ICT-insideout
abccd30552f8f67bd7699fa38608d50bf920fff9
[ "MIT" ]
1
2022-03-16T05:59:22.000Z
2022-03-16T05:59:22.000Z
''' strates how to use `CNN` model from `speechemotionrecognition` package ''' from keras.utils import np_utils import pulsectl import serial import time import os import sys import collections import webrtcvad import signal import subprocess import socket as sk import numpy as np from common import e...
32.4
134
0.627751
''' strates how to use `CNN` model from `speechemotionrecognition` package ''' from keras.utils import np_utils import pulsectl import serial import time import os import sys import collections import webrtcvad import signal import subprocess import socket as sk import numpy as np from common import e...
2,980
0
75
7ca9789ce165ed243be6718a78e0afd7a24e5147
2,868
py
Python
src/python/pants/backend/native/register.py
billybecker/pants
ee101f3e360b712aceb9dacf7723aaf9b5567f04
[ "Apache-2.0" ]
94
2015-01-15T21:24:20.000Z
2022-02-16T16:55:43.000Z
src/python/pants/backend/native/register.py
billybecker/pants
ee101f3e360b712aceb9dacf7723aaf9b5567f04
[ "Apache-2.0" ]
5
2020-07-18T01:04:43.000Z
2021-05-10T08:40:56.000Z
src/python/pants/backend/native/register.py
billybecker/pants
ee101f3e360b712aceb9dacf7723aaf9b5567f04
[ "Apache-2.0" ]
47
2015-02-25T02:20:07.000Z
2022-03-21T00:59:16.000Z
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.backend.native.config.environment import create_native_environment_rules from ...
43.454545
97
0.791492
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.backend.native.config.environment import create_native_environment_rules from ...
1,099
0
92
e9cf7acd97a40ffdbac1b4a42da7f8b511a0e314
1,167
py
Python
problem_118.py
renxiaoyi/project_euler
2566482209cd225fce39887fe869f839cf88330e
[ "Unlicense" ]
null
null
null
problem_118.py
renxiaoyi/project_euler
2566482209cd225fce39887fe869f839cf88330e
[ "Unlicense" ]
null
null
null
problem_118.py
renxiaoyi/project_euler
2566482209cd225fce39887fe869f839cf88330e
[ "Unlicense" ]
null
null
null
import itertools import petools def Part(full, segs): """full: sorted digit string; segs: list of sorted digit strings.""" if full in segs: yield [full] for i in range(len(segs)): seg = segs[i] if Contains(full, seg): for p in Part(Diff(full, seg), segs[i+1:]): yield [seg] + p d...
18.822581
70
0.579263
import itertools import petools def Combine(t): ret = 0 for i in t: ret *= 10 ret += i return ret def NumOfPrimesCat(s): if len(s) == 0: return 0 if len(s) == 1: return int(s[0] in [2, 3, 5, 7]) if sum(s) % 3 == 0: return 0 if all([x % 2 == 0 for x in s]): return 0 ret = 0 ...
441
0
92
f279e6211e391d537fb9e731f2aeec719f8d25f0
696
py
Python
vspax/com_worker.py
thingsroot/power_vsp
fae50959b859a4562ac90167531a7a617025643a
[ "MIT" ]
null
null
null
vspax/com_worker.py
thingsroot/power_vsp
fae50959b859a4562ac90167531a7a617025643a
[ "MIT" ]
null
null
null
vspax/com_worker.py
thingsroot/power_vsp
fae50959b859a4562ac90167531a7a617025643a
[ "MIT" ]
null
null
null
import logging import threading import pythoncom import win32com.client import time from vspax import *
22.451613
47
0.617816
import logging import threading import pythoncom import win32com.client import time from vspax import * class COM_Worker(threading.Thread): def __init__(self, handler): threading.Thread.__init__(self) self._handler = handler self._thread_stop = False def run(self): try: ...
474
14
103
2e04ea60aafff8e6b9dde9ec44246cf083f3dd7e
8,957
py
Python
collectors/networktraffic.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
1
2020-04-12T21:05:46.000Z
2020-04-12T21:05:46.000Z
collectors/networktraffic.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
null
null
null
collectors/networktraffic.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
null
null
null
import httplib # Used only for handling httplib.HTTPException (case #26701) import os import sys import platform import re import urllib import urllib2 import traceback import time from StringIO import StringIO from kunai.log import logger from kunai.collector import Collector
40.899543
142
0.515351
import httplib # Used only for handling httplib.HTTPException (case #26701) import os import sys import platform import re import urllib import urllib2 import traceback import time from StringIO import StringIO from kunai.log import logger from kunai.collector import Collector class NetworkTraffic(Collector): d...
8,616
11
49
cb14bed8fd4d80b5e2ad2efaf1d46a5dee88e7c8
16,824
py
Python
rmgpy/kinetics/kineticsdataTest.py
mbprend/RMG-Py
29e111d683f2daa0b376417be60e76b32ce8a993
[ "MIT" ]
null
null
null
rmgpy/kinetics/kineticsdataTest.py
mbprend/RMG-Py
29e111d683f2daa0b376417be60e76b32ce8a993
[ "MIT" ]
null
null
null
rmgpy/kinetics/kineticsdataTest.py
mbprend/RMG-Py
29e111d683f2daa0b376417be60e76b32ce8a993
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
46.86351
116
0.599144
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
0
0
0
fba2b02af14665d0ddace29de0d5019383f51be5
350
py
Python
requests_test/request_test_3.py
waws520waws/waws_spider
c6a5988121f32619a5c5134c09fdfd556c696fe7
[ "MIT" ]
null
null
null
requests_test/request_test_3.py
waws520waws/waws_spider
c6a5988121f32619a5c5134c09fdfd556c696fe7
[ "MIT" ]
null
null
null
requests_test/request_test_3.py
waws520waws/waws_spider
c6a5988121f32619a5c5134c09fdfd556c696fe7
[ "MIT" ]
null
null
null
# encoding:utf-8 """ requests 的POST方法 注意post方式中传递的参数是data,而get 是params """ import requests data = {"user":"admin","pwd":"admin"} headers = {"User-Agent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0);"} url = "https://httpbin.org/post" req = requests.post(url,data=data,headers=headers) print(req.co...
26.923077
92
0.702857
# encoding:utf-8 """ requests 的POST方法 注意post方式中传递的参数是data,而get 是params """ import requests data = {"user":"admin","pwd":"admin"} headers = {"User-Agent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0);"} url = "https://httpbin.org/post" req = requests.post(url,data=data,headers=headers) print(req.co...
0
0
0
5f8cca5795d2a214e46ae5e039dd2b525827f58f
1,260
py
Python
TapeEquilibrium.py
Cynthyah/Exercises
4c458cb518d8e77f2c51a9dd8d36eb4e4c73364c
[ "MIT" ]
null
null
null
TapeEquilibrium.py
Cynthyah/Exercises
4c458cb518d8e77f2c51a9dd8d36eb4e4c73364c
[ "MIT" ]
null
null
null
TapeEquilibrium.py
Cynthyah/Exercises
4c458cb518d8e77f2c51a9dd8d36eb4e4c73364c
[ "MIT" ]
null
null
null
# A non-empty array A consisting of N integers is given. Array A represents numbers on a tape. # Any integer P, such that 0 < P < N, splits this tape into two non-empty parts: # A[0], A[1], ..., A[P − 1] and A[P], A[P + 1], ..., A[N − 1]. # The difference between the two parts is the value of: |(A[0] + A[1] + ... + A[P...
31.5
125
0.560317
# A non-empty array A consisting of N integers is given. Array A represents numbers on a tape. # Any integer P, such that 0 < P < N, splits this tape into two non-empty parts: # A[0], A[1], ..., A[P − 1] and A[P], A[P + 1], ..., A[N − 1]. # The difference between the two parts is the value of: |(A[0] + A[1] + ... + A[P...
323
0
23
b3198f38460196e85f4db1f61f3cb0834ada74e4
6,370
py
Python
ridt/tests/systemtests/test_st02.py
riskaware-ltd/ridt
c0288a2f814b2749bdf73de7157f7477ca271aff
[ "MIT" ]
null
null
null
ridt/tests/systemtests/test_st02.py
riskaware-ltd/ridt
c0288a2f814b2749bdf73de7157f7477ca271aff
[ "MIT" ]
9
2020-09-18T08:22:39.000Z
2021-07-20T09:39:59.000Z
ridt/tests/systemtests/test_st02.py
riskaware-ltd/ridt
c0288a2f814b2749bdf73de7157f7477ca271aff
[ "MIT" ]
1
2021-06-22T21:53:20.000Z
2021-06-22T21:53:20.000Z
import unittest import os import json from ridt.config import ConfigFileParser from ridt.config.ridtconfig import ConsistencyError from ridt.config.configfileparser import ConfigFileParserValidationError class ST02(unittest.TestCase): """System Test 02. The objective is to able to parse monitor points/...
39.079755
101
0.619466
import unittest import os import json from ridt.config import ConfigFileParser from ridt.config.ridtconfig import ConsistencyError from ridt.config.configfileparser import ConfigFileParserValidationError class ST02(unittest.TestCase): """System Test 02. The objective is to able to parse monitor points/...
93
0
27
feadbcdbbac786c3b04fd65e5a611ba0ead397a6
693
py
Python
setup.py
smkia/neuroCombat
d1a70c5f93284ec32a29bf2ba8c5addeea1089c7
[ "MIT" ]
null
null
null
setup.py
smkia/neuroCombat
d1a70c5f93284ec32a29bf2ba8c5addeea1089c7
[ "MIT" ]
null
null
null
setup.py
smkia/neuroCombat
d1a70c5f93284ec32a29bf2ba8c5addeea1089c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( author="Jean-Philippe Fortin, Nick Cullen, Tim Robert-Fitzgerald", author_email='fortin946@gmail.com,', classifiers=[ 'License :: OSI Approved :: MIT Lice...
26.653846
73
0.676768
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( author="Jean-Philippe Fortin, Nick Cullen, Tim Robert-Fitzgerald", author_email='fortin946@gmail.com,', classifiers=[ 'License :: OSI Approved :: MIT Lice...
0
0
0