hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
05002c3b63654f0905f0357d78128acf8d0998a1
1,155
py
Python
ipmi-figures/results/merge_csv.py
hichamjanati/mwe
cc9a20e76ac94b7031f8d83c7b959d1eac374fe9
[ "BSD-2-Clause" ]
2
2019-05-30T21:28:48.000Z
2019-11-05T16:02:17.000Z
ipmi-figures/results/merge_csv.py
hichamjanati/mwe
cc9a20e76ac94b7031f8d83c7b959d1eac374fe9
[ "BSD-2-Clause" ]
null
null
null
ipmi-figures/results/merge_csv.py
hichamjanati/mwe
cc9a20e76ac94b7031f8d83c7b959d1eac374fe9
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd import os from time import ctime dataset = "camcan" if os.path.exists("/home/parietal/"): results_path = "/home/parietal/hjanati/csvs/%s/" % dataset else: data_path = "~/Dropbox/neuro_transport/code/mtw_experiments/meg/" data_path = os.path.expanduser(data_path) results_path = data...
31.216216
82
0.581818
import pandas as pd import os from time import ctime dataset = "camcan" if os.path.exists("/home/parietal/"): results_path = "/home/parietal/hjanati/csvs/%s/" % dataset else: data_path = "~/Dropbox/neuro_transport/code/mtw_experiments/meg/" data_path = os.path.expanduser(data_path) results_path = data...
0
0
0
0
0
0
0
0
0
744b24ae6ebb4de7c96858d86ffe8667cd8b8644
791
py
Python
btcadvisor-back/api/urls.py
DavidTF85/btcadvisor-back
9340913b67eb82655ef5ebc21af6f697db886d71
[ "BSD-3-Clause" ]
null
null
null
btcadvisor-back/api/urls.py
DavidTF85/btcadvisor-back
9340913b67eb82655ef5ebc21af6f697db886d71
[ "BSD-3-Clause" ]
null
null
null
btcadvisor-back/api/urls.py
DavidTF85/btcadvisor-back
9340913b67eb82655ef5ebc21af6f697db886d71
[ "BSD-3-Clause" ]
null
null
null
""" api/urls.py """ from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from rest_framework.authtoken.views import obtain_auth_token from api import views urlpatterns = [ #---------------------------# # UNPROTECTED API ENDPOINTS # # ----------------------...
29.296296
77
0.65866
""" api/urls.py """ from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from rest_framework.authtoken.views import obtain_auth_token from api import views urlpatterns = [ #---------------------------# # UNPROTECTED API ENDPOINTS # # ----------------------...
0
0
0
0
0
0
0
0
0
9b284ece554f8a4c437f258d747a80898181b100
1,932
py
Python
our_data/views.py
leoromanini/covid-django_rest-spark-example
752ac4f1eb8b1525f89420e67e02305b25ae192a
[ "MIT" ]
1
2021-04-29T19:05:24.000Z
2021-04-29T19:05:24.000Z
our_data/views.py
leoromanini/covid-django_rest-spark-example
752ac4f1eb8b1525f89420e67e02305b25ae192a
[ "MIT" ]
null
null
null
our_data/views.py
leoromanini/covid-django_rest-spark-example
752ac4f1eb8b1525f89420e67e02305b25ae192a
[ "MIT" ]
null
null
null
from django.shortcuts import HttpResponse from .models import Report from .spark_funcs import process_json_data, get_json_covid_our_data def update_database(request): """ API endpoint that executes database update. """ json_data = get_json_covid_our_data() df = process_json_data(json_data) f...
40.25
92
0.652174
from django.shortcuts import render, HttpResponse from .models import Report from .spark_funcs import process_json_data, get_json_covid_our_data from .serializers import ReportSerializer from rest_framework import viewsets from rest_framework import permissions class ReportViewSet(viewsets.ModelViewSet): """ ...
0
0
0
285
0
0
0
59
89
07df5331bfbacb79aafe4ae5060cfc42d11e176d
8,203
py
Python
modelci/hub/utils.py
HuaizhengZhang/ML-Model-CI
8866f752f2afbd206876d74388c0e0ddc98f262a
[ "Apache-2.0" ]
null
null
null
modelci/hub/utils.py
HuaizhengZhang/ML-Model-CI
8866f752f2afbd206876d74388c0e0ddc98f262a
[ "Apache-2.0" ]
null
null
null
modelci/hub/utils.py
HuaizhengZhang/ML-Model-CI
8866f752f2afbd206876d74388c0e0ddc98f262a
[ "Apache-2.0" ]
null
null
null
import re from pathlib import Path from typing import Union import tensorrtserver.api.model_config_pb2 as model_config from tensorrtserver.api import ServerStatusContext from modelci.types.bo import Framework, Engine, ModelVersion from modelci.types.trtis_objects import ModelInputFormat, ServerStatus, ModelStatus de...
36.620536
115
0.641229
import re from collections import defaultdict from enum import unique, Enum from pathlib import Path from typing import Union import numpy as np import tensorflow as tf import tensorrtserver.api.model_config_pb2 as model_config import torch from tensorrtserver.api import ServerStatusContext from modelci.types.bo impo...
0
245
0
0
0
2,356
0
22
203
a89e08018bb2353626ed438848fb2416d97f2887
26
py
Python
src/smugapi/__init__.py
threatsimple/smugapi
0e2e5ecb3c3076b9b8dd8342371de21fa9c4a8c4
[ "MIT" ]
null
null
null
src/smugapi/__init__.py
threatsimple/smugapi
0e2e5ecb3c3076b9b8dd8342371de21fa9c4a8c4
[ "MIT" ]
null
null
null
src/smugapi/__init__.py
threatsimple/smugapi
0e2e5ecb3c3076b9b8dd8342371de21fa9c4a8c4
[ "MIT" ]
null
null
null
version = "__VERSION__"
6.5
23
0.692308
version = "__VERSION__"
0
0
0
0
0
0
0
0
0
afcaa68a88387622db7a3939e8d7e34f6165eb0c
22,611
py
Python
Main.py
Saikat299792458/YT-Downloader
5fdc0bdd798f6a47ea2d9dd6e8a01ae131bdbc84
[ "MIT" ]
null
null
null
Main.py
Saikat299792458/YT-Downloader
5fdc0bdd798f6a47ea2d9dd6e8a01ae131bdbc84
[ "MIT" ]
null
null
null
Main.py
Saikat299792458/YT-Downloader
5fdc0bdd798f6a47ea2d9dd6e8a01ae131bdbc84
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Main.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing.
52.953162
113
0.698642
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Main.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCor...
12
0
0
22,218
0
0
0
19
73
45675533bb2ac54653d03e5e52c1b229134c3c87
1,749
py
Python
bmw/bmw/pipelines.py
chlbupt/scrapy_demp
6324cb4bdd7fc714f829c7f74c47dbf57244a0c0
[ "bzip2-1.0.6" ]
null
null
null
bmw/bmw/pipelines.py
chlbupt/scrapy_demp
6324cb4bdd7fc714f829c7f74c47dbf57244a0c0
[ "bzip2-1.0.6" ]
null
null
null
bmw/bmw/pipelines.py
chlbupt/scrapy_demp
6324cb4bdd7fc714f829c7f74c47dbf57244a0c0
[ "bzip2-1.0.6" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
36.4375
89
0.666667
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html import os from urllib import request from scrapy.pipelines.images import ImagesPipeline from bmw import settings class BmwPi...
0
0
0
1,395
0
0
0
25
134
793266eb5b6f71a1475b3ba5b066cb3ccac05f80
325
py
Python
src/atomstoys/__init__.py
craabreu/atomstoys
878da463f21d3443f74b2ad803ecd8dd047c25dc
[ "MIT" ]
null
null
null
src/atomstoys/__init__.py
craabreu/atomstoys
878da463f21d3443f74b2ad803ecd8dd047c25dc
[ "MIT" ]
null
null
null
src/atomstoys/__init__.py
craabreu/atomstoys
878da463f21d3443f74b2ad803ecd8dd047c25dc
[ "MIT" ]
null
null
null
__version__ = '0.0.0'
23.214286
64
0.624615
__version__ = '0.0.0' from ._atomstoys import ffi as _ffi from ._atomstoys import lib as _lib def longest(args): args = [_ffi.new('char[]', arg) for arg in args] result = _lib.longest(len(args), _ffi.new('char *[]', args)) if result == _ffi.NULL: return '' else: return _ffi.string(res...
0
0
0
0
0
206
0
28
68
bfc3bbbb4920414359279e3d1fe322faf16df70a
4,516
py
Python
TCP/server.py
RouquinBlanc/tuto_python
ca92453162a91b725bbcb1479c18d0527ddc2215
[ "MIT" ]
null
null
null
TCP/server.py
RouquinBlanc/tuto_python
ca92453162a91b725bbcb1479c18d0527ddc2215
[ "MIT" ]
null
null
null
TCP/server.py
RouquinBlanc/tuto_python
ca92453162a91b725bbcb1479c18d0527ddc2215
[ "MIT" ]
null
null
null
import asyncio import logging logger = logging.getLogger(__name__) user_cnt = 0 HELP = "%Commandes: !help, !quit, !join:pseudo, !list\n" if __name__ == '__main__': asyncio.run(main())
32.724638
114
0.505314
import asyncio import functools import logging logger = logging.getLogger(__name__) user_cnt = 0 HELP = "%Commandes: !help, !quit, !join:pseudo, !list\n" def broadcast(room, msg): for pseudo, writer in room.values(): writer.write(msg) def unicast(room, msg, users): for pseudo, writer in room.valu...
12
0
4,004
0
0
200
0
-5
114
58c88afaa3dbfb9154f789c417326a3460d42e68
6,825
py
Python
views/loginmain.py
iahmadhere/voice-controlled-departmental-noticeboard
bfe6fa83f03c947676191f7456bc0e30f30b1bb2
[ "MIT" ]
10
2021-11-20T07:25:34.000Z
2021-12-13T05:12:01.000Z
views/loginmain.py
iahmadhere/voice-controlled-departmental-noticeboard
bfe6fa83f03c947676191f7456bc0e30f30b1bb2
[ "MIT" ]
3
2021-12-03T18:37:36.000Z
2022-01-06T18:25:46.000Z
views/loginmain.py
iahmadhere/voice-controlled-departmental-noticeboard
bfe6fa83f03c947676191f7456bc0e30f30b1bb2
[ "MIT" ]
6
2021-11-21T09:00:26.000Z
2021-12-11T06:36:35.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'loginmain.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtWidgets ...
47.068966
184
0.694799
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'loginmain.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
0
0
0
6,240
0
0
0
15
23
b36112ff4969c47cd8af87f3ca8e14181ac3436c
864
py
Python
zeus/api/resources/build_failures.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
221
2017-07-03T17:29:21.000Z
2021-12-07T19:56:59.000Z
zeus/api/resources/build_failures.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
298
2017-07-04T18:08:14.000Z
2022-03-03T22:24:51.000Z
zeus/api/resources/build_failures.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
24
2017-07-15T13:46:45.000Z
2020-08-16T16:14:45.000Z
from ..schemas import AggregateFailureReasonSchema failurereasons_schema = AggregateFailureReasonSchema(many=True)
30.857143
84
0.679398
from zeus.config import db from zeus.db.func import array_agg_row from zeus.models import Build, FailureReason from .base_build import BaseBuildResource from ..schemas import AggregateFailureReasonSchema failurereasons_schema = AggregateFailureReasonSchema(many=True) class BuildFailuresResource(BaseBuildResource): ...
0
0
0
570
0
0
0
65
112
2ff921e9027d088957043c416f9aff0ddc223ffb
4,177
py
Python
utils/blender_utils.py
ChrizH/data-science-learning
c5770955256ef535e22346f977fb070db98a135d
[ "Apache-2.0" ]
1
2021-09-22T20:32:05.000Z
2021-09-22T20:32:05.000Z
utils/blender_utils.py
ChrizH/data-science-learning
c5770955256ef535e22346f977fb070db98a135d
[ "Apache-2.0" ]
null
null
null
utils/blender_utils.py
ChrizH/data-science-learning
c5770955256ef535e22346f977fb070db98a135d
[ "Apache-2.0" ]
1
2021-09-22T20:31:55.000Z
2021-09-22T20:31:55.000Z
import bpy is_blender_28 = bpy.app.version[1] >= 80 def delete_all(obj_type: str='MESH'): """Delete all objects of the given type from the current scene""" for obj in bpy.data.objects: if is_blender_28: pass else: obj.hide = False obj.select = obj.type == ...
26.27044
116
0.696912
import bpy import bmesh is_blender_28 = bpy.app.version[1] >= 80 def delete_all(obj_type: str='MESH'): """Delete all objects of the given type from the current scene""" for obj in bpy.data.objects: if is_blender_28: pass else: obj.hide = False obj.select =...
0
0
0
0
0
1,912
0
-9
159
da4e9dcc23ea8b3870d9b91f9df161e7d74e5830
1,759
py
Python
apps/fractional_cover/utils/create_color_scale_png.py
pinkerltm/datacube-ui
325d404a994d49c23922e7de10c7ab244b78500b
[ "Apache-2.0" ]
null
null
null
apps/fractional_cover/utils/create_color_scale_png.py
pinkerltm/datacube-ui
325d404a994d49c23922e7de10c7ab244b78500b
[ "Apache-2.0" ]
null
null
null
apps/fractional_cover/utils/create_color_scale_png.py
pinkerltm/datacube-ui
325d404a994d49c23922e7de10c7ab244b78500b
[ "Apache-2.0" ]
1
2021-06-08T14:06:55.000Z
2021-06-08T14:06:55.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib.path import Path from matplotlib.patches import PathPatch plt.figure(figsize=(5,5)) # Determine the x and y values to use for sample points. num_edge_pts = 50 # Change this to change the resolution of the result. xy_rng = (0, 1) pt_sp = (xy_rng[1] - x...
39.088889
71
0.677089
import numpy as np import matplotlib.pyplot as plt from matplotlib.path import Path from matplotlib.patches import PathPatch plt.figure(figsize=(5,5)) # Determine the x and y values to use for sample points. num_edge_pts = 50 # Change this to change the resolution of the result. xy_rng = (0, 1) pt_sp = (xy_rng[1] - x...
0
0
0
0
0
0
0
0
0
6fd2262096be30713d05194cbd8406452f35f068
4,876
py
Python
tests/parser_test.py
Dmitriy1594/TelegramParser
163c5d26798b302bf37754f95e2d6623f23a13a8
[ "MIT" ]
1
2021-07-14T19:56:50.000Z
2021-07-14T19:56:50.000Z
tests/parser_test.py
dromakin/TelegramParser
163c5d26798b302bf37754f95e2d6623f23a13a8
[ "MIT" ]
null
null
null
tests/parser_test.py
dromakin/TelegramParser
163c5d26798b302bf37754f95e2d6623f23a13a8
[ "MIT" ]
null
null
null
import configparser from telethon.sync import TelegramClient from telethon import connection # json # # # config = configparser.ConfigParser() config.read("/Users/romakindmitriy/PycharmProjects/TelegramParser/configs/config.ini") # api_id = int(config['Telegram']['api_id']) api_hash = confi...
37.221374
96
0.654635
import configparser import json from telethon.sync import TelegramClient from telethon import connection # для корректного переноса времени сообщений в json from datetime import date, datetime # классы для работы с каналами from telethon.tl.functions.channels import GetParticipantsRequest from telethon.tl.types impo...
1,252
0
2,584
0
0
0
0
121
179
31e319b9d7eead7336bb81d046fbd8aa0bcd95c9
1,214
py
Python
datadownloader/APIClient/MeetupClient.py
abhishek9sharma/MeetupDataCollection
dc528a4490e3b288022fe2943045e2f9df8a2b8b
[ "MIT" ]
null
null
null
datadownloader/APIClient/MeetupClient.py
abhishek9sharma/MeetupDataCollection
dc528a4490e3b288022fe2943045e2f9df8a2b8b
[ "MIT" ]
null
null
null
datadownloader/APIClient/MeetupClient.py
abhishek9sharma/MeetupDataCollection
dc528a4490e3b288022fe2943045e2f9df8a2b8b
[ "MIT" ]
null
null
null
__author__ = 'abhisheksh'
24.77551
86
0.670511
__author__ = 'abhisheksh' import json import meetup.api import pandas as pd class MeetUpClient: def __init__(self,config=None): if(config is None): self.config=self.ReadDefaultConfig() else: self.config=config self.InitClient() def InitClient(self): ...
0
0
0
1,110
0
0
0
-15
90
0ee277313e9c6fa3f289937e4fb6c75132739d2e
6,277
py
Python
sgf_wrapper.py
scghfc/debug-mugo
4357a58e31390a35581eb9dcf4d0e430fda5a958
[ "Apache-2.0" ]
null
null
null
sgf_wrapper.py
scghfc/debug-mugo
4357a58e31390a35581eb9dcf4d0e430fda5a958
[ "Apache-2.0" ]
null
null
null
sgf_wrapper.py
scghfc/debug-mugo
4357a58e31390a35581eb9dcf4d0e430fda5a958
[ "Apache-2.0" ]
null
null
null
""" Code to extract a series of positions + their next moves from an SGF. Most of the complexity here is dealing with two features of SGF: - Stones can be added via "play move" or "add move", the latter being used to configure L+D puzzles, but also for initial handicap placement. - Plays don't necessarily alternate ...
35.463277
138
0.675641
""" Code to extract a series of positions + their next moves from an SGF. Most of the complexity here is dealing with two features of SGF: - Stones can be added via "play move" or "add move", the latter being used to configure L+D puzzles, but also for initial handicap placement. - Plays don't necessarily alternate ...
0
0
0
604
1,955
1,162
0
28
295
aec0203723f6e626120fd292d6f4086b2a8aab36
2,382
py
Python
Incident-Response/Tools/cyphon/cyphon/cyphon/forms.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/cyphon/cyphon/cyphon/forms.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/cyphon/cyphon/cyphon/forms.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2019 ControlScan, Inc. # # This file is part of Cyphon Engine. # # Cyphon Engine is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # Cyphon En...
28.023529
71
0.693535
# -*- coding: utf-8 -*- # Copyright 2017-2019 ControlScan, Inc. # # This file is part of Cyphon Engine. # # Cyphon Engine is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # Cyphon En...
0
0
0
1,149
0
0
0
57
112
b3364e91abd494d69c0b08186dfb39230a8966e6
1,387
py
Python
leet/plan/data_structures/graph/data_structures/graphs/bfs_print.py
manojkumar-github/DataStructures-DynamicProgramming-in-Python-JAVA-Cplusplus
16722a60c4c744ad3d240469b28f5d6ab6e9c25d
[ "MIT" ]
null
null
null
leet/plan/data_structures/graph/data_structures/graphs/bfs_print.py
manojkumar-github/DataStructures-DynamicProgramming-in-Python-JAVA-Cplusplus
16722a60c4c744ad3d240469b28f5d6ab6e9c25d
[ "MIT" ]
null
null
null
leet/plan/data_structures/graph/data_structures/graphs/bfs_print.py
manojkumar-github/DataStructures-DynamicProgramming-in-Python-JAVA-Cplusplus
16722a60c4c744ad3d240469b28f5d6ab6e9c25d
[ "MIT" ]
null
null
null
""" BFS - Breadth First Search 1) In graphs - we may visit same node more than once 2) Use a boolean array 3) DefaultDict - Representation """ if __name__ == "__main__": g = Graph() g.add_edge(0, 1) g.add_edge(0, 2) g.add_edge(1, 2) g.add_edge(2, 0) g.add_edge(2, 3) g.add_edge(3, 3) pri...
28.895833
65
0.610671
""" BFS - Breadth First Search 1) In graphs - we may visit same node more than once 2) Use a boolean array 3) DefaultDict - Representation """ from collections import defaultdict class Graph(object): def __init__(self): # default dictionary to store graphs self.graph = defaultdict(list) def a...
0
0
0
902
0
0
0
14
46
2dd6c9b4bc456272ea86ff0b286f5cbd24b26f2e
3,740
py
Python
tei.py
jfkist/tei_corpus_analysis
1fcfdb74f8741b805a88a6c56230d2a2a3c111b9
[ "MIT" ]
null
null
null
tei.py
jfkist/tei_corpus_analysis
1fcfdb74f8741b805a88a6c56230d2a2a3c111b9
[ "MIT" ]
null
null
null
tei.py
jfkist/tei_corpus_analysis
1fcfdb74f8741b805a88a6c56230d2a2a3c111b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' FILE: AUTHOR: jan ''' if __name__=='__main__': main()
28.333333
106
0.544652
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' FILE: AUTHOR: jan ''' import re import xml.etree.ElementTree as ET from functools import cached_property class XmlStr: def __init__(self, xml_str): self._str = re.sub(r"\\'", "'", str(xml_str)) #self._xml = ET.fromstring(xml_str) ...
0
1,459
0
1,978
0
-1
0
17
167
34fe3b6d4c2ee6354c3a4880eccd1e60fdbf3de9
984
py
Python
germanet/export_tensorflow.py
Merve40/nball4tree
00a6adcb2673a751178b04896930ad4237bd5b20
[ "MIT" ]
null
null
null
germanet/export_tensorflow.py
Merve40/nball4tree
00a6adcb2673a751178b04896930ad4237bd5b20
[ "MIT" ]
null
null
null
germanet/export_tensorflow.py
Merve40/nball4tree
00a6adcb2673a751178b04896930ad4237bd5b20
[ "MIT" ]
null
null
null
def export(w2v, ws_child, out_dir): """ Exports the word-to-vec file to tsv files as input for tensorflow. :param w2v: word-to-vec file :param ws_child: tree file :param out_dir: output directory for the files to generate """ if not out_dir.endswith('/'): out_dir = out_dir+'/' ...
29.818182
70
0.541667
def export(w2v, ws_child, out_dir): """ Exports the word-to-vec file to tsv files as input for tensorflow. :param w2v: word-to-vec file :param ws_child: tree file :param out_dir: output directory for the files to generate """ if not out_dir.endswith('/'): out_dir = out_dir+'/' ...
0
0
0
0
0
0
0
0
0
f469b352f4770ce8a84b8abf8645c3867a05f901
8,723
py
Python
colorizer.py
Kronuz/Text-Marker
651c1ab999f2088191c225cf5008cafd6dbf1dda
[ "MIT" ]
97
2018-07-05T06:52:11.000Z
2022-03-06T18:43:32.000Z
colorizer.py
Kronuz/Text-Marker
651c1ab999f2088191c225cf5008cafd6dbf1dda
[ "MIT" ]
24
2018-07-01T15:59:21.000Z
2022-03-04T13:16:38.000Z
colorizer.py
Kronuz/Color-Highlight
c50f256468305125f9db5804658d2084a8c94bf4
[ "MIT" ]
18
2018-10-07T05:53:11.000Z
2021-03-30T20:56:41.000Z
from __future__ import print_function import sys import plistlib from .colors import names_to_hex, xterm_to_hex DEFAULT_COLOR_SCHEME = 'Monokai.sublime-color-scheme' all_names_to_hex = dict(names_to_hex, **xterm_to_hex) log = Log() if sys.version_info[0] == 3: if not hasattr(plistlib, 'loads'): plist...
32.427509
136
0.520578
from __future__ import print_function import os import re import sys import json import errno import plistlib import datetime import sublime from .colors import names_to_hex, xterm_to_hex, xterm8_to_hex, xterm8b_to_hex, xterm8f_to_hex DEFAULT_COLOR_SCHEME = 'Monokai.sublime-color-scheme' all_names_to_hex = dict(na...
0
0
0
7,422
0
460
0
-9
249
49222c4a18405f7652853f995d9d05d3bc96fcba
7,334
py
Python
pong.py
nmg322/Pong
dceba52af7148abb13f067ef63636e680102a971
[ "MIT" ]
null
null
null
pong.py
nmg322/Pong
dceba52af7148abb13f067ef63636e680102a971
[ "MIT" ]
null
null
null
pong.py
nmg322/Pong
dceba52af7148abb13f067ef63636e680102a971
[ "MIT" ]
null
null
null
import pygame if __name__ == "__main__": # Initilize PyGame pygame.init() # Set screen size SCREEN_SIZE = pygame.display.Info().current_w, pygame.display.Info().current_h # Object dimensions PADDLE1_WIDTH = SCREEN_SIZE[1]//10 PADDLE1_HEIGHT = SCREEN_SIZE[0]//100 PADDLE2_WIDTH = SC...
36.487562
136
0.581947
import sys import random import pygame class Pong: def __init__(self): # Create screen self.screen = pygame.display.set_mode(SCREEN_SIZE, pygame.FULLSCREEN) pygame.display.set_caption("Atari Pong") self.clock = pygame.time.Clock() if pygame.font: self.font = ...
0
0
0
6,326
0
0
0
-19
67
f0b60186a7bceae7cabee1132eb82389a1736634
4,913
py
Python
src/App/FactoryDispatcher.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:27.000Z
2018-11-30T12:39:27.000Z
src/App/FactoryDispatcher.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
null
null
null
src/App/FactoryDispatcher.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:34.000Z
2018-11-30T12:39:34.000Z
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
29.244048
78
0.637899
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
0
0
0
3,210
0
0
0
131
267
164ff011ecfc5a3653d5ec287adb22ba3f87eb16
1,829
py
Python
epublib/epub.py
takuan-osho/epublib
99a2a2ce6b326b8118f322371279465026c793e7
[ "MIT" ]
1
2015-12-06T14:40:36.000Z
2015-12-06T14:40:36.000Z
epublib/epub.py
takuan-osho/epublib
99a2a2ce6b326b8118f322371279465026c793e7
[ "MIT" ]
2
2016-02-07T06:12:33.000Z
2016-02-10T14:50:47.000Z
epublib/epub.py
takuan-osho/epublib
99a2a2ce6b326b8118f322371279465026c793e7
[ "MIT" ]
3
2016-02-10T13:55:31.000Z
2020-06-15T06:36:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
30.483333
80
0.61345
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os from datetime import date from .templates import template_container_xml class Book(object): def __init__(self, title='', lang='en', author='', publisher='', copyright_desc='', package_doc_name='content.opf', ...
0
171
0
1,462
0
0
0
16
114
74ecdd76e559212318830819b9716649ee1c825a
506
py
Python
script/getfuncs.py
dkkloimwieder/bl602-re
ed05fb4072a649efec11cc242edfa8478ebf7dfc
[ "Apache-2.0" ]
68
2020-10-29T22:25:47.000Z
2022-03-27T09:01:37.000Z
script/getfuncs.py
dkkloimwieder/bl602-re
ed05fb4072a649efec11cc242edfa8478ebf7dfc
[ "Apache-2.0" ]
19
2020-10-29T23:07:08.000Z
2022-03-28T07:20:59.000Z
script/getfuncs.py
dkkloimwieder/bl602-re
ed05fb4072a649efec11cc242edfa8478ebf7dfc
[ "Apache-2.0" ]
23
2020-10-29T23:46:57.000Z
2022-01-10T03:26:58.000Z
#!/usr/bin/env python3 import sys src = open('../blobs/bl602_demo_wifi.ghidra.c').readlines() feature = 'DAT_44c0' if len(sys.argv) == 2: feature = sys.argv[1] outs = [] for i in sys.stdin.readlines(): fname, begin, end = i.strip().split(' ') begin = int(begin) - 1 end = int(end) slocal = src[begi...
22
59
0.571146
#!/usr/bin/env python3 import sys src = open('../blobs/bl602_demo_wifi.ghidra.c').readlines() feature = 'DAT_44c0' if len(sys.argv) == 2: feature = sys.argv[1] outs = [] for i in sys.stdin.readlines(): fname, begin, end = i.strip().split(' ') begin = int(begin) - 1 end = int(end) slocal = src[begi...
0
0
0
0
0
0
0
0
0
5f61ddd704da8a8fd0a0900aa222fb11c9f501bc
287
py
Python
Python/app.python/aula10/aula10a.py
jacksontenorio8/python
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
[ "MIT" ]
null
null
null
Python/app.python/aula10/aula10a.py
jacksontenorio8/python
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
[ "MIT" ]
null
null
null
Python/app.python/aula10/aula10a.py
jacksontenorio8/python
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
[ "MIT" ]
null
null
null
from datetime import date data_atual = date.today()#guarda a dada atual #print(data_atual.strftime('%d/%m/%y'))#converte a data em uma str que o programador quiser data_atual_str = data_atual.strftime('%A %B %Y') print(type(data_atual)) print(data_atual_str) print(type(data_atual_str))
35.875
91
0.770035
from datetime import date data_atual = date.today()#guarda a dada atual #print(data_atual.strftime('%d/%m/%y'))#converte a data em uma str que o programador quiser data_atual_str = data_atual.strftime('%A %B %Y') print(type(data_atual)) print(data_atual_str) print(type(data_atual_str))
0
0
0
0
0
0
0
0
0
32fd60bfa95fc402f18dbdd1d8d7b124e1ce89ce
6,935
py
Python
mintbot.py
athornton1618/mintbot
c5918c7f9204377755e3547c8bf3cc397aa97cca
[ "MIT" ]
1
2021-09-07T14:57:16.000Z
2021-09-07T14:57:16.000Z
mintbot.py
athornton1618/mintbot
c5918c7f9204377755e3547c8bf3cc397aa97cca
[ "MIT" ]
null
null
null
mintbot.py
athornton1618/mintbot
c5918c7f9204377755e3547c8bf3cc397aa97cca
[ "MIT" ]
null
null
null
#mintbot.py #Automatically queries Intuit Mint for display on 5in Raspberry Pi Screen #Copyright A. Thornton 2021 import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': #First call to Mint API Net_Worth = try_mint() Running_nw = Net_Worth*np.ones(60) #show last month, upda...
40.319767
134
0.59553
#mintbot.py #Automatically queries Intuit Mint for display on 5in Raspberry Pi Screen #Copyright A. Thornton 2021 import tkinter as tk import pandas as pd import os import mintapi import time import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import numpy as np ...
0
0
0
3,595
0
2,287
0
10
215
72d116c7a5947ffd4dca8d0092976da91c8296e0
1,622
py
Python
src/layer_enforcer/interfaces.py
ZipFile/layer-enforcer
1dfe744f53fd53dd9d18cd9a6faa717f0558f141
[ "BSD-2-Clause" ]
1
2021-06-01T07:03:12.000Z
2021-06-01T07:03:12.000Z
src/layer_enforcer/interfaces.py
ZipFile/layer-enforcer
1dfe744f53fd53dd9d18cd9a6faa717f0558f141
[ "BSD-2-Clause" ]
null
null
null
src/layer_enforcer/interfaces.py
ZipFile/layer-enforcer
1dfe744f53fd53dd9d18cd9a6faa717f0558f141
[ "BSD-2-Clause" ]
null
null
null
from typing import AbstractSet EMPTY_SET: AbstractSet[str] = frozenset()
27.965517
88
0.681258
from abc import ABCMeta, abstractmethod from dataclasses import dataclass, field from typing import AbstractSet, Iterable, Iterator, List, Optional, Protocol, Set, Tuple EMPTY_SET: AbstractSet[str] = frozenset() @dataclass(frozen=True) class Layer: name: str parent: Optional["Layer"] = field(compare=False, d...
0
937
0
248
0
0
0
95
262
0cd8a733f49a217cb81062ae5fe269d19890f3a1
65,641
py
Python
archive_api/tests/test_api.py
NGEET/ngt-archive
978b26b7617b5c465046121838c000c4c46022f4
[ "BSD-3-Clause-LBNL" ]
10
2017-04-15T14:43:22.000Z
2021-05-06T21:56:42.000Z
archive_api/tests/test_api.py
NGEET/ngt-archive
978b26b7617b5c465046121838c000c4c46022f4
[ "BSD-3-Clause-LBNL" ]
53
2017-06-13T20:45:26.000Z
2022-03-24T17:39:19.000Z
archive_api/tests/test_api.py
NGEET/ngt-archive
978b26b7617b5c465046121838c000c4c46022f4
[ "BSD-3-Clause-LBNL" ]
3
2017-06-16T17:34:15.000Z
2021-03-30T17:35:10.000Z
from __future__ import print_function, unicode_literals # Mock methods def get_max_size(size): """ Return a get_size method for the size given""" return get_size()
55.769754
932
0.554059
from __future__ import print_function, unicode_literals import json from unittest import mock from unittest.mock import PropertyMock import os import shutil from django.contrib.auth.models import User from django.core import mail from django.test import Client from django.test import override_settings from os.path im...
0
52,969
0
11,865
0
14
0
137
476
fa02591c28bce7e7ed7b22ad6b01d537b2c1c2d9
961
py
Python
src/utils.py
nishgaba-ai/computer-vision
00bf3fff95c5b2f31eaca7a67b7e7e74f65a7595
[ "MIT" ]
null
null
null
src/utils.py
nishgaba-ai/computer-vision
00bf3fff95c5b2f31eaca7a67b7e7e74f65a7595
[ "MIT" ]
3
2020-03-24T17:07:14.000Z
2021-02-02T22:13:39.000Z
src/utils.py
nishgaba-ai/computer-vision
00bf3fff95c5b2f31eaca7a67b7e7e74f65a7595
[ "MIT" ]
null
null
null
import numpy as np def euclideanDistance(src, targ): ''' Calculates euclidean distance between two arrays ''' try: return np.linalg.norm(a-b) except: return "Error while calculating the euclidean distances for the above data types" def isStringPalindrome(data): ''' ...
22.348837
90
0.6077
import numpy as np def euclideanDistance(src, targ): ''' Calculates euclidean distance between two arrays ''' try: return np.linalg.norm(a-b) except: return "Error while calculating the euclidean distances for the above data types" def isStringPalindrome(data): ''' ...
0
0
0
0
0
0
0
0
0
b43e5f2098930256669cd57134570d21b8dbb252
98,062
py
Python
pysnmp-with-texts/ALCATEL-IND1-SYSTEM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ALCATEL-IND1-SYSTEM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ALCATEL-IND1-SYSTEM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ALCATEL-IND1-SYSTEM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-SYSTEM-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
157.909823
10,518
0.785687
# # PySNMP MIB module ALCATEL-IND1-SYSTEM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-SYSTEM-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
0
0
0
3,296
0
0
0
0
229
b7f3e6611afc5afbc2f5caa1317aec7be7338446
1,268
py
Python
day3/ex25_netmiko.py
tdouris1/pynet_test
6c68161a5759c2d82b14dc92fec70fda1aba679c
[ "Apache-2.0" ]
null
null
null
day3/ex25_netmiko.py
tdouris1/pynet_test
6c68161a5759c2d82b14dc92fec70fda1aba679c
[ "Apache-2.0" ]
null
null
null
day3/ex25_netmiko.py
tdouris1/pynet_test
6c68161a5759c2d82b14dc92fec70fda1aba679c
[ "Apache-2.0" ]
1
2020-06-03T08:41:10.000Z
2020-06-03T08:41:10.000Z
#!/usr/bin/env python """Exercises using Netmiko""" from getpass import getpass from netmiko import ConnectHandler def save_file(filename, show_run): """Save the show run to a file""" with open(filename, "w") as f: f.write(show_run) def main(): """Exercises using Netmiko""" rtr1_pass = getpass...
26.416667
60
0.594637
#!/usr/bin/env python """Exercises using Netmiko""" from getpass import getpass from netmiko import ConnectHandler def save_file(filename, show_run): """Save the show run to a file""" with open(filename, "w") as f: f.write(show_run) def main(): """Exercises using Netmiko""" rtr1_pass = getpass...
0
0
0
0
0
0
0
0
0
2af7a3ba3c544ebe4c23678c3943564d12cc8943
223
py
Python
examples/package/office/api.py
kitchoi/packaging-static-checker
1f555286318cd909a48abcfc5b521fda3117b25a
[ "MIT" ]
1
2020-10-01T08:26:58.000Z
2020-10-01T08:26:58.000Z
examples/package/office/api.py
kitchoi/packaging-static-checker
1f555286318cd909a48abcfc5b521fda3117b25a
[ "MIT" ]
1
2020-10-01T07:05:51.000Z
2020-10-01T07:05:51.000Z
examples/package/office/api.py
kitchoi/packaging-static-checker
1f555286318cd909a48abcfc5b521fda3117b25a
[ "MIT" ]
1
2020-10-01T04:41:21.000Z
2020-10-01T04:41:21.000Z
# This is allowed # This is NOT allowed # This is allowed # This is NOT allowed
15.928571
38
0.762332
# This is allowed from ..person import api as person_api # This is NOT allowed from ..person import _reading # This is allowed from ._legal import api as legal_api # This is NOT allowed from ._legal import _compliance
0
0
0
0
0
0
0
50
88
637793cf380b51be56dba9515edb1f033e3272ce
1,347
py
Python
amaz.py
BhagirathSarvaiya/Amazon_product_price_tracker
210d224dee5dcf12044676067777e113b68eb46e
[ "MIT" ]
null
null
null
amaz.py
BhagirathSarvaiya/Amazon_product_price_tracker
210d224dee5dcf12044676067777e113b68eb46e
[ "MIT" ]
null
null
null
amaz.py
BhagirathSarvaiya/Amazon_product_price_tracker
210d224dee5dcf12044676067777e113b68eb46e
[ "MIT" ]
null
null
null
import time email_id = "Enter your Email address over here" email_pass = "Enter your password over here" URL = "Enter the URL of the product here" x = 1 prev = 0 while x: x, prev = check_price(prev) if x == 1: time.sleep(1440) else: time.sleep(10080)
27.489796
139
0.659985
import time import requests from bs4 import BeautifulSoup import smtplib from email.message import EmailMessage email_id = "Enter your Email address over here" email_pass = "Enter your password over here" URL = "Enter the URL of the product here" def check_price(prev): headers = { "User-Agent": "Instruct...
0
0
0
0
0
917
0
12
134
c5a84b86868195151906348328648820f2db1c5c
2,221
py
Python
source/lib/gui/misc.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
source/lib/gui/misc.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
source/lib/gui/misc.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
# misc.py, GUI helper functions for QT lab environment # Reinier Heeres, <reinier@heeres.eu>, 2008 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at you...
34.169231
76
0.663665
# misc.py, GUI helper functions for QT lab environment # Reinier Heeres, <reinier@heeres.eu>, 2008 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at you...
0
0
0
0
0
0
0
0
0
39a4694d19378b3ba7d1c4bf9a362bc1a8c1e494
37,870
py
Python
wopmars/Reader.py
aitgon/WopMars
9d500954a7501bdf51e74da85f56b5dad86ea9ee
[ "MIT" ]
null
null
null
wopmars/Reader.py
aitgon/WopMars
9d500954a7501bdf51e74da85f56b5dad86ea9ee
[ "MIT" ]
null
null
null
wopmars/Reader.py
aitgon/WopMars
9d500954a7501bdf51e74da85f56b5dad86ea9ee
[ "MIT" ]
2
2017-09-28T14:36:14.000Z
2021-08-19T23:06:49.000Z
try: from yaml import CLoader as Loader except ImportError:
62.286184
206
0.56245
import importlib import re import os import yaml from yaml.constructor import ConstructorError from wopmars.utils.various import get_current_time try: from yaml import CLoader as Loader except ImportError: from yaml import Loader from sqlalchemy.orm.exc import NoResultFound, ObjectDeletedError from wopmars...
24
2,356
0
34,545
0
0
0
445
449
cece98488f9511d2c0083eb811b36c0cd273ee01
1,024
py
Python
app/main/controller/auth_controller.py
raekw0n/raspi-mon-api
ea82f3424a4a5b7ddfe63b37a1a01e5c06c545d2
[ "MIT" ]
null
null
null
app/main/controller/auth_controller.py
raekw0n/raspi-mon-api
ea82f3424a4a5b7ddfe63b37a1a01e5c06c545d2
[ "MIT" ]
null
null
null
app/main/controller/auth_controller.py
raekw0n/raspi-mon-api
ea82f3424a4a5b7ddfe63b37a1a01e5c06c545d2
[ "MIT" ]
null
null
null
from app.main.representation.auth import AuthRepresentation api = AuthRepresentation.api user_auth = AuthRepresentation.user_auth auth_details = AuthRepresentation.auth_details
26.947368
60
0.735352
from flask import request from flask_restx import Resource from app.main.service.auth_service import * from app.main.representation.auth import AuthRepresentation from app.main.decorator.auth_decorator import token_required api = AuthRepresentation.api user_auth = AuthRepresentation.user_auth auth_details = AuthRepre...
0
609
0
0
0
0
0
76
158
b19e96edfe21eef82c9c86fd152b1cfa92d209d0
11,497
py
Python
pyocd/core/memory_map.py
aabadie/pyOCD
5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d
[ "Apache-2.0" ]
null
null
null
pyocd/core/memory_map.py
aabadie/pyOCD
5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d
[ "Apache-2.0" ]
null
null
null
pyocd/core/memory_map.py
aabadie/pyOCD
5c05b0fd2d04c9de5400c3d026d13f8822d3ce3d
[ "Apache-2.0" ]
null
null
null
""" mbed CMSIS-DAP debugger Copyright (c) 2015-2018 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 ...
32.754986
200
0.623989
""" mbed CMSIS-DAP debugger Copyright (c) 2015-2018 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 ...
0
3,145
0
6,635
0
398
0
4
311
9f708f7ec163ceb6c10a0f74e0bf95037a15c9e8
1,080
py
Python
JSON/json_example.py
jgraber/PythonFriday
879f10934dc6949785e5a799bfc3ca9a2a4434d4
[ "MIT" ]
5
2021-02-22T08:39:55.000Z
2022-03-14T03:54:36.000Z
JSON/json_example.py
jgraber/PythonFriday
879f10934dc6949785e5a799bfc3ca9a2a4434d4
[ "MIT" ]
null
null
null
JSON/json_example.py
jgraber/PythonFriday
879f10934dc6949785e5a799bfc3ca9a2a4434d4
[ "MIT" ]
null
null
null
if __name__ == '__main__': save() load()
22.5
44
0.425
import json def example(): # You collect and combine data in an # arbitrarily nested data structure: data = [ { 'name': "Rebecca Stephenson", 'phone': "(154) 221-8558", 'zipCode': "900185", 'country': "South Korea", 'options': ['a','b','c...
0
0
0
0
0
949
0
-10
91
2c91547cdd3769ca0f85752d662fe07daf55e5a3
26,065
py
Python
ChromeController/manager.py
awesome-archive/ChromeController
fc9d280092e38e8c46ad814cebe7a7bfe83fe473
[ "BSD-3-Clause" ]
null
null
null
ChromeController/manager.py
awesome-archive/ChromeController
fc9d280092e38e8c46ad814cebe7a7bfe83fe473
[ "BSD-3-Clause" ]
null
null
null
ChromeController/manager.py
awesome-archive/ChromeController
fc9d280092e38e8c46ad814cebe7a7bfe83fe473
[ "BSD-3-Clause" ]
null
null
null
import pprint import ChromeController.filter_funcs as filter_funcs # We use the generated wrapper. If you want a different version, use the CLI interface to update. DEFAULT_TIMEOUT_SECS = 10
33.762953
184
0.686476
import distutils.spawn import os.path import sys import subprocess import pprint import json import base64 import signal import pprint import time import http.cookiejar import urllib.parse import ChromeController.filter_funcs as filter_funcs from ChromeController.cr_exceptions import ChromeResponseNotReceived from Ch...
0
0
0
25,324
0
0
0
166
377
9e8a73278f0e1a0748292ba468d04c52bdebdfe2
2,405
py
Python
src/triangulum/rendering/entities/scene.py
PolarNick239/Triangulum3D
85c6a44f5c8f620bdc58164bd50ff89e1897f59d
[ "MIT" ]
10
2016-09-18T01:38:46.000Z
2021-11-18T17:30:28.000Z
src/triangulum/rendering/entities/scene.py
PolarNick239/Triangulum3D
85c6a44f5c8f620bdc58164bd50ff89e1897f59d
[ "MIT" ]
1
2018-06-20T05:48:19.000Z
2018-06-20T09:19:56.000Z
src/triangulum/rendering/entities/scene.py
PolarNick239/Triangulum3D
85c6a44f5c8f620bdc58164bd50ff89e1897f59d
[ "MIT" ]
12
2015-11-29T03:22:37.000Z
2020-07-14T03:08:52.000Z
# # Copyright (c) 2015, Nikolay Polyarnyi # All rights reserved. #
29.691358
76
0.626611
# # Copyright (c) 2015, Nikolay Polyarnyi # All rights reserved. # import numpy as np from triangulum.rendering.entities.abstract import Renderable from triangulum.rendering.entities.points_cloud import PointsCloud from triangulum.rendering.entities.camera import Camera from triangulum.rendering.entities.stripes_proj...
0
774
0
1,257
0
0
0
171
135
b0b1314e2143f996130a909257b177a8bcda4c89
6,896
py
Python
tpDcc/libs/qt/widgets/action.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
3
2019-08-26T05:56:12.000Z
2019-10-03T11:35:53.000Z
tpDcc/libs/qt/widgets/action.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
null
null
null
tpDcc/libs/qt/widgets/action.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
1
2019-11-10T20:45:07.000Z
2019-11-10T20:45:07.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that defines that implements different types of actions """ from __future__ import print_function, division, absolute_import
26.320611
88
0.616734
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that defines that implements different types of actions """ from __future__ import print_function, division, absolute_import from Qt.QtCore import Qt from Qt.QtWidgets import QSizePolicy, QFrame, QMenu, QWidgetAction from tpDcc.libs.qt.widgets import layouts...
0
0
0
6,344
0
0
0
107
252
0a92d9e2e182f5abf504eb88c93ce8d09861a72a
34,780
py
Python
cupy_setup_build.py
mrkwjc/cupy
ae9705dcc8b59ed05a6c91fdfb401b71f7c2b224
[ "MIT" ]
null
null
null
cupy_setup_build.py
mrkwjc/cupy
ae9705dcc8b59ed05a6c91fdfb401b71f7c2b224
[ "MIT" ]
null
null
null
cupy_setup_build.py
mrkwjc/cupy
ae9705dcc8b59ed05a6c91fdfb401b71f7c2b224
[ "MIT" ]
null
null
null
import copy import os from os import path import shutil import sys import pkg_resources import setuptools from install import build from install.build import PLATFORM_DARWIN from install.build import PLATFORM_LINUX from install.build import PLATFORM_WIN32 required_cython_version = pkg_resources.parse_version('0.28....
33.668925
79
0.57674
import argparse import copy from distutils import ccompiler from distutils import errors from distutils import msvccompiler from distutils import sysconfig from distutils import unixccompiler import os from os import path import shutil import sys import pkg_resources import setuptools from setuptools.command import bu...
0
0
0
6,290
0
6,255
0
82
543
eccd5e9438058fc1a388b1c632a4066bcb657bca
16,449
py
Python
isi_mip/pages/blocks.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
isi_mip/pages/blocks.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
isi_mip/pages/blocks.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
from wagtail.embeds.blocks import EmbedBlock from wagtail.contrib.table_block.blocks import TableBlock from isi_mip.contrib.blocks import HeadingBlock, HRBlock, ImageBlock, RichTextBlock, MonospaceTextBlock BASE_BLOCKS = [ ('heading', HeadingBlock()), ('rich_text', RichTextBlock()), ('horizontal_ruler',...
35.147436
159
0.621375
from django.utils import formats from wagtail.core.blocks import CharBlock, StructBlock, TextBlock, StreamBlock, PageChooserBlock, \ URLBlock, DateBlock, ListBlock, BooleanBlock from wagtail.documents.blocks import DocumentChooserBlock from wagtail.embeds.blocks import EmbedBlock from wagtail.images.blocks import I...
0
0
0
14,391
0
0
0
252
662
6a4c301c0ee66090ed42856f41d37ef5b59ff26b
6,060
py
Python
pyha/simulation/plotter.py
gasparka/pyha
60d9bbfd6075e7548d670d05317d64bc2a1a19ee
[ "Apache-2.0" ]
6
2017-05-18T18:57:07.000Z
2020-08-06T11:23:34.000Z
pyha/simulation/plotter.py
gasparka/pyha
60d9bbfd6075e7548d670d05317d64bc2a1a19ee
[ "Apache-2.0" ]
607
2017-05-10T12:51:54.000Z
2022-03-31T18:08:15.000Z
pyha/simulation/plotter.py
gasparka/pyha
60d9bbfd6075e7548d670d05317d64bc2a1a19ee
[ "Apache-2.0" ]
1
2019-03-20T13:57:46.000Z
2019-03-20T13:57:46.000Z
figsize = (9.75, 5)
37.177914
118
0.60462
import matplotlib.pyplot as plt import numpy as np from pyha.common.util import is_float, is_complex from pyha.cores.util import SQNR from pyha.simulation.tracer import Tracer figsize = (9.75, 5) def plot_time_domain(simulations, name='Time domain'): simulations["MODEL"] = np.array(simulations["MODEL"]) sim...
0
0
0
0
0
5,718
0
66
249
baa8458fd6254a60012643af6e7a0debdc87c4a2
13,095
py
Python
src/cross_section_measurement/98_fit_cross_checks.py
jjacob/DailyPythonScripts
cd6c515c6242d1f3b44e97c8ad05946721b6a36a
[ "Apache-2.0" ]
null
null
null
src/cross_section_measurement/98_fit_cross_checks.py
jjacob/DailyPythonScripts
cd6c515c6242d1f3b44e97c8ad05946721b6a36a
[ "Apache-2.0" ]
null
null
null
src/cross_section_measurement/98_fit_cross_checks.py
jjacob/DailyPythonScripts
cd6c515c6242d1f3b44e97c8ad05946721b6a36a
[ "Apache-2.0" ]
null
null
null
from config import CMS from optparse import OptionParser from config import XSectionConfig from tools.file_utilities import make_folder_if_not_exists from matplotlib import rc rc( 'font', **CMS.font ) rc( 'text', usetex = True ) if __name__ == '__main__': parser = OptionParser() parser.add_option( "-p", "--pat...
55.021008
193
0.599236
from config import CMS from optparse import OptionParser from config import XSectionConfig from tools.file_utilities import read_data_from_JSON, make_folder_if_not_exists from tools.plotting import Histogram_properties from matplotlib import pyplot as plt from matplotlib import rc rc( 'font', **CMS.font ) rc( 'text', ...
0
0
0
0
0
7,898
0
152
202
a221db16eb2c9ac04bee8221b6a2d026af46c540
2,728
py
Python
visualSHARK/management/commands/create_project_stats.py
benjaminLedel/visualSHARK_topicShark
0b2455224e092f2dcba32951e29e70efa8de9cfd
[ "Apache-2.0" ]
1
2021-12-14T13:21:07.000Z
2021-12-14T13:21:07.000Z
visualSHARK/management/commands/create_project_stats.py
benjaminLedel/visualSHARK_topicShark
0b2455224e092f2dcba32951e29e70efa8de9cfd
[ "Apache-2.0" ]
19
2017-09-28T12:45:11.000Z
2022-02-10T06:50:04.000Z
visualSHARK/management/commands/create_project_stats.py
benjaminLedel/visualSHARK_topicShark
0b2455224e092f2dcba32951e29e70efa8de9cfd
[ "Apache-2.0" ]
2
2018-01-11T14:55:06.000Z
2020-11-10T15:34:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*-
44
113
0.604472
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import date from django.core.management.base import BaseCommand from visualSHARK.models import VCSSystem, Commit, Project, File, Issue, MailingList, Message, IssueSystem from visualSHARK.models import ProjectStats class Command(BaseCommand): help = 'C...
0
0
0
2,427
0
0
0
140
114
9ccea65c672e53a1bdc512c164348fad22108aa7
2,100
py
Python
open-hackathon-server/test/unittest/expr/test_expr_mgr.py
Fendoe/open-hackathon-o
39689ab7a9a4d41b6a2d35a61e28a022705c60b8
[ "MIT" ]
null
null
null
open-hackathon-server/test/unittest/expr/test_expr_mgr.py
Fendoe/open-hackathon-o
39689ab7a9a4d41b6a2d35a61e28a022705c60b8
[ "MIT" ]
null
null
null
open-hackathon-server/test/unittest/expr/test_expr_mgr.py
Fendoe/open-hackathon-o
39689ab7a9a4d41b6a2d35a61e28a022705c60b8
[ "MIT" ]
1
2019-04-03T19:47:22.000Z
2019-04-03T19:47:22.000Z
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
39.622642
88
0.697619
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
0
0
0
328
0
0
0
156
199
f13ef9d59830a67043996632dda7fe78ecb070bf
4,540
py
Python
dude/info.py
stephan-cr/dude
79e9f91ec4063a7bebaabbe32ff42136eb11af62
[ "MIT" ]
null
null
null
dude/info.py
stephan-cr/dude
79e9f91ec4063a7bebaabbe32ff42136eb11af62
[ "MIT" ]
null
null
null
dude/info.py
stephan-cr/dude
79e9f91ec4063a7bebaabbe32ff42136eb11af62
[ "MIT" ]
null
null
null
# Copyright (c) 2010, 2011 Diogo Becker # Distributed under the MIT License # See accompanying file LICENSE """ Dude output for experiments """ HEAD = '~'*80 HEAD2 = '~'*80 LINE = '-'*80
30.469799
107
0.57467
# Copyright (c) 2010, 2011 Diogo Becker # Distributed under the MIT License # See accompanying file LICENSE """ Dude output for experiments """ import utils import os import core import sys HEAD = '~'*80 HEAD2 = '~'*80 LINE = '-'*80 class PBar: """ A simple progress bar. Based on example at http://snipp...
0
0
0
659
0
3,460
0
-42
272
fa7b49d4ed0d86719b5164c46d5e106a7bb63b9f
701
py
Python
geom/SinCosTan.py
JesterOrNot/python_calc
3e939046930eca2204f8354d9f221f6127d2db91
[ "MIT" ]
1
2019-07-22T19:42:15.000Z
2019-07-22T19:42:15.000Z
geom/SinCosTan.py
JesterOrNot/python_calc
3e939046930eca2204f8354d9f221f6127d2db91
[ "MIT" ]
1
2019-07-23T17:49:48.000Z
2019-07-23T17:52:14.000Z
geom/SinCosTan.py
JesterOrNot/python_calc
3e939046930eca2204f8354d9f221f6127d2db91
[ "MIT" ]
1
2019-07-23T17:45:40.000Z
2019-07-23T17:45:40.000Z
#! /usr/bin/python3.7 # soh cah toa main()
23.366667
71
0.584879
#! /usr/bin/python3.7 # soh cah toa def sin(): o = float(input('What is the oppisite?: ')) h = float(input("What is the hypotnuse?: ")) s = o / h print("sin = {}".format(s)) def cos(): a = float(input('What is the ajacent?: ')) h = float(input("What is the hypotnuse?: ")) c = a / h print('cos = {}'.format(c))...
0
0
0
0
0
569
0
0
88
b7e34b14490ac0921958794273d65fbb6369923d
796
py
Python
setup.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
null
null
null
setup.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
null
null
null
setup.py
astronomical-data-processing/curig
4d0e944b8c67e99106e56decda00c9c424002625
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='curig', version='0.1', author="LIU Honghao", author_email="stein.h.liu@gmail.com", description="GPU version of NUFFT and Radio astronomy gridder package", packages=['curig'], package_dir={'curig': 'python/curagridder'}, package_data={'curig...
25.677419
75
0.660804
import os import subprocess from setuptools import setup from distutils.command.install import install as _install class install(_install): def run(self): subprocess.call(['make', 'clean']) subprocess.call(['make', 'python']) _install.run(self) setup( name='curig', version='0...
0
0
0
136
0
0
0
20
90
fe84713f6efa4f7ffe43dfdf8729b8f62fc1c10a
1,770
py
Python
_common/custom/custom_qiskit_noise_model.py
daniel-mills-cqc/QC-App-Oriented-Benchmarks
826a9b5403daa703abbdc375c69300e751a44f80
[ "Apache-2.0" ]
3
2022-02-23T13:20:13.000Z
2022-03-18T02:13:26.000Z
_common/custom/custom_qiskit_noise_model.py
daniel-mills-cqc/QC-App-Oriented-Benchmarks
826a9b5403daa703abbdc375c69300e751a44f80
[ "Apache-2.0" ]
2
2021-11-28T04:35:57.000Z
2021-11-28T04:49:23.000Z
_common/custom/custom_qiskit_noise_model.py
daniel-mills-cqc/QC-App-Oriented-Benchmarks
826a9b5403daa703abbdc375c69300e751a44f80
[ "Apache-2.0" ]
null
null
null
# # Define a custom noise model to be used during execution of Qiskit Aer simulator # # Note: this custom definition is the same as the default noise model provided # The code is provided here for users to copy to their own file and customize
43.170732
107
0.728249
# # Define a custom noise model to be used during execution of Qiskit Aer simulator # # Note: this custom definition is the same as the default noise model provided # The code is provided here for users to copy to their own file and customize from qiskit.providers.aer.noise import NoiseModel, ReadoutError from qiskit...
0
0
0
0
0
1,367
0
91
68
12943ae211aa5fb3e3b887191d28b55989d53d41
7,867
py
Python
QUANTAXIS/QAPubSub/producer.py
B34nK0/QUANTAXIS
94162f0f863682e443ef8ae11f5b54da6f93421b
[ "MIT" ]
6,322
2017-03-22T09:34:20.000Z
2022-03-31T05:26:45.000Z
QUANTAXIS/QAPubSub/producer.py
B34nK0/QUANTAXIS
94162f0f863682e443ef8ae11f5b54da6f93421b
[ "MIT" ]
690
2018-01-02T06:44:54.000Z
2022-03-25T02:06:22.000Z
QUANTAXIS/QAPubSub/producer.py
B34nK0/QUANTAXIS
94162f0f863682e443ef8ae11f5b54da6f93421b
[ "MIT" ]
2,183
2018-01-02T10:32:10.000Z
2022-03-30T00:57:31.000Z
#!/usr/bin/env python 3 ######### ######### if __name__ == '__main__': import datetime p = publisher(exchange='z3') while True: print(1) p.pub('{}'.format(datetime.datetime.now()))
46.550296
229
0.513283
#!/usr/bin/env python 3 import pika from QUANTAXIS.QAPubSub.base import base_ps from QUANTAXIS.QAPubSub.setting import (qapubsub_ip, qapubsub_password, qapubsub_port, qapubsub_user) ######### 生产者 ######### class publisher(base_ps): def __init__(self, host=qapubsub_ip, port=qapubs...
495
0
0
7,230
0
0
0
122
135
9675deb80145f6156710864780cb4303ee2ed57b
736
py
Python
tests/test_doit_tasks/test_file_search.py
KyleKing/calcipy
c10d78cce727b04b6d4f633859659cdcda832630
[ "MIT" ]
6
2021-02-03T20:07:09.000Z
2022-02-27T12:31:07.000Z
tests/test_doit_tasks/test_file_search.py
KyleKing/calcipy
c10d78cce727b04b6d4f633859659cdcda832630
[ "MIT" ]
65
2020-12-11T02:36:59.000Z
2022-03-05T21:15:07.000Z
tests/test_doit_tasks/test_file_search.py
KyleKing/calcipy
c10d78cce727b04b6d4f633859659cdcda832630
[ "MIT" ]
3
2021-06-05T13:46:14.000Z
2021-11-30T10:34:34.000Z
"""Test doit_tasks/file_search.py.""" from calcipy.doit_tasks.doit_globals import DG from calcipy.doit_tasks.file_search import find_project_files_by_suffix def test_find_project_files_by_suffix(): """Test find_project_files_by_suffix.""" result = find_project_files_by_suffix(DG.meta.path_project, DG.meta.ig...
46
113
0.713315
"""Test doit_tasks/file_search.py.""" from calcipy.doit_tasks.doit_globals import DG from calcipy.doit_tasks.file_search import find_project_files_by_suffix def test_find_project_files_by_suffix(): """Test find_project_files_by_suffix.""" result = find_project_files_by_suffix(DG.meta.path_project, DG.meta.ig...
0
0
0
0
0
0
0
0
0
f9594aa2b008a90079a1192c3008b304dada46b1
1,620
py
Python
inside/losses.py
jacenkow/inside
8b277e2744233a23eb8f55a29417135729fc531d
[ "Apache-2.0" ]
6
2020-08-26T13:15:15.000Z
2021-08-02T22:07:49.000Z
inside/losses.py
SLEEP-CO/inside
6f860420644b50b78981158a59ceed8cdbd209bf
[ "Apache-2.0" ]
13
2020-09-25T22:26:45.000Z
2022-03-12T00:47:04.000Z
inside/losses.py
SLEEP-CO/inside
6f860420644b50b78981158a59ceed8cdbd209bf
[ "Apache-2.0" ]
2
2020-10-07T17:11:57.000Z
2021-05-22T13:20:14.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Grzegorz Jacenkw. # # 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 ...
35.217391
79
0.691975
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Grzegorz Jacenków. # # 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...
2
343
0
490
0
0
0
41
113
08a4c684965f513593862994c67dddc0def76dd6
1,066
py
Python
cnn_policy.py
ChunJyeBehBeh/learning-to-drive-in-5-minutes
c5446db28df4f7f4342e7fad6e4bdffba7bf4c39
[ "MIT" ]
null
null
null
cnn_policy.py
ChunJyeBehBeh/learning-to-drive-in-5-minutes
c5446db28df4f7f4342e7fad6e4bdffba7bf4c39
[ "MIT" ]
null
null
null
cnn_policy.py
ChunJyeBehBeh/learning-to-drive-in-5-minutes
c5446db28df4f7f4342e7fad6e4bdffba7bf4c39
[ "MIT" ]
null
null
null
from stable_baselines import SAC from stable_baselines.common.policies import register_policy import gym # There already exists an environment generator # that will make and wrap atari environments correctly env = gym.make("MountainCarContinuous-v0") register_policy('CustomSACPolicy', CustomSACPolicy) model = SAC('Cu...
35.533333
72
0.67636
from stable_baselines.common.cmd_util import make_atari_env from stable_baselines import SAC from stable_baselines.sac.policies import FeedForwardPolicy as SACPolicy from stable_baselines.common.policies import register_policy import tensorflow as tf import gym # There already exists an environment generator # that wi...
0
0
0
316
0
0
0
91
89
e06754f094167c43841b0aa5bafc0bce4c2b3173
985
py
Python
mdl_parsers/Scanner.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
mdl_parsers/Scanner.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
mdl_parsers/Scanner.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
"""A selection of utilities to allow for fast scanning of a mol file""" from __future__ import generators import re FIELDPAT = re.compile(">\s+<([^>]+)>\s+\(*([^)]*)")
24.625
72
0.485279
"""A selection of utilities to allow for fast scanning of a mol file""" from __future__ import generators import re def molSplitter(file): """(file) -> for m in molSplitter(file) ... do something with mol""" lines = [] for line in file: if line.find("$$$$") == 0: yield "\n".join(lines) ...
0
0
0
0
249
501
0
0
65
a2c295893762dcb6aa4d279f8aa5d392c2ffa1a2
2,672
py
Python
accounting/accounting/report/profit_and_loss/profit_and_loss.py
sumaiya2908/Accounting-App-Frappe
48588b97f47ce76b0e7c0da153632ac8055efb84
[ "MIT" ]
1
2021-12-18T12:06:25.000Z
2021-12-18T12:06:25.000Z
accounting/accounting/report/profit_and_loss/profit_and_loss.py
sumaiya2908/Accounting-App-Frappe
48588b97f47ce76b0e7c0da153632ac8055efb84
[ "MIT" ]
5
2021-07-26T14:01:15.000Z
2021-09-12T12:47:43.000Z
accounting/accounting/report/profit_and_loss/profit_and_loss.py
sumaiya2908/Accounting-App-Frappe
48588b97f47ce76b0e7c0da153632ac8055efb84
[ "MIT" ]
null
null
null
# Copyright (c) 2013, summayya and contributors # For license information, please see license.txt # def get_data(filters): # company = filters.company # data = frappe.db.sql(f"""SELECT account, balance from `tabGL Entry` where company = \'{company}\'""") # return data # def get_chart(): # chart = { # "data":...
27.833333
141
0.670659
# Copyright (c) 2013, summayya and contributors # For license information, please see license.txt import frappe from frappe import _, _dict def execute(filters=None): columns = get_columns() income_accounts = frappe.get_list("Account", pluck = "name", filters = {"root_type": "Income", "is_group": 0, "company": filt...
0
0
0
0
0
2,076
0
-2
137
fee91d6c265bb71f837e68e35a74c4d9204c2ed3
2,120
py
Python
scripts/demo.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
scripts/demo.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
scripts/demo.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
import pytz india_timezone = pytz.timezone('Asia/Kolkata') #india_timezone.localize(datetime.strptime('Sep 1 2017 12:01AM', '%b %d %Y %I:%M%p'))
29.444444
86
0.512264
from coreapp.models import * from datetime import datetime, date, timedelta from django.contrib.auth.models import Group, User, Permission import pytz india_timezone = pytz.timezone('Asia/Kolkata') #india_timezone.localize(datetime.strptime('Sep 1 2017 12:01AM', '%b %d %Y %I:%M%p')) def addData(): #delete all t...
0
0
0
0
0
1,788
0
73
111
04c36af18cedbb8bbbe42a12d7882de53a9b55b5
1,499
py
Python
metricsSource/graphiteMetric.py
luigiberrettini/metrics-exporter
9a53a7f4eb53ce29c873539dae263d8384ca17f0
[ "MIT" ]
null
null
null
metricsSource/graphiteMetric.py
luigiberrettini/metrics-exporter
9a53a7f4eb53ce29c873539dae263d8384ca17f0
[ "MIT" ]
null
null
null
metricsSource/graphiteMetric.py
luigiberrettini/metrics-exporter
9a53a7f4eb53ce29c873539dae263d8384ca17f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3
39.447368
126
0.655103
#!/usr/bin/env python3 import logging import csv class GraphiteMetric: def __init__(self, item_to_load, to_graphite_date, session): self.logger = logging.getLogger(__name__) self.metric_name = item_to_load['name'] self.metric_target = item_to_load['target'].replace("{","{{").replace("}","}...
0
84
538
805
0
0
0
-18
68
75ba359d842b8cd05980746d0e1008b5278499c4
9,453
py
Python
main.py
AnonymusRaccoon/Nemo
8a2e6f05c0e604a64c9b53572f62d36bf9347ddb
[ "MIT" ]
null
null
null
main.py
AnonymusRaccoon/Nemo
8a2e6f05c0e604a64c9b53572f62d36bf9347ddb
[ "MIT" ]
null
null
null
main.py
AnonymusRaccoon/Nemo
8a2e6f05c0e604a64c9b53572f62d36bf9347ddb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import nemo import config number_emojis = ["1", "2", "3", "4", "5", "6", "7", "8", "9"] nemo = nemo.Nemo() if __name__ == "__main__": nemo.run(config.TOKEN)
35.011111
118
0.726013
#!/usr/bin/env python3 import asyncio import nemo import helper import config import discord from discord.ext.commands import has_permissions number_emojis = ["1⃣", "2⃣", "3⃣", "4⃣", "5⃣", "6⃣", "7⃣", "8⃣", "9⃣"] nemo = nemo.Nemo() @nemo.command("!") @has_permissions(administrator=True) async def setup(*, message:...
33
8,032
473
0
0
296
0
5
433
23fce6af04fb33e69ce5e346fec8ef7bf941f0d6
925
py
Python
setup.py
dimonf/beancount2dataframe
ff4e8d10f2635876223617a18ec73fe8ffcc09de
[ "MIT" ]
3
2019-10-24T07:24:06.000Z
2020-12-26T10:07:50.000Z
setup.py
dimonf/beancount2dataframe
ff4e8d10f2635876223617a18ec73fe8ffcc09de
[ "MIT" ]
1
2021-06-28T20:35:06.000Z
2021-06-28T20:35:06.000Z
setup.py
dimonf/beancount2dataframe
ff4e8d10f2635876223617a18ec73fe8ffcc09de
[ "MIT" ]
1
2020-07-18T19:38:33.000Z
2020-07-18T19:38:33.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() requirements = ["beancount","pandas"] setuptools.setup( name="beancount2dataframe", version="0.0.1", author="Dmitri Kourbatsky", author_email="camel109@gmail.com", decription="pandas driver t...
31.896552
70
0.629189
import setuptools with open("README.md", "r") as fh: long_description = fh.read() requirements = ["beancount","pandas"] setuptools.setup( name="beancount2dataframe", version="0.0.1", author="Dmitri Kourbatsky", author_email="camel109@gmail.com", decription="pandas driver t...
0
0
0
0
0
0
0
0
0
4ebddc443754381e6998e9f1842e11fa4865e807
2,110
py
Python
ax/utils/common/tests/test_logger.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
1
2022-02-10T10:51:40.000Z
2022-02-10T10:51:40.000Z
ax/utils/common/tests/test_logger.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
ax/utils/common/tests/test_logger.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. BASE_LOGGER_NAME = f"ax.{__name__}"
37.678571
85
0.677251
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from tempfile import NamedTemporaryFile from unittest.mock import patch from ax.utils.common.logger i...
0
0
0
1,644
0
0
0
90
135
fcc80623f21f7dac34e338d96916857254414f1e
239
py
Python
rerecoMonitor/DataVolume/vandyLocalSize/test.py
tuos/PbPbRun2018
b8d42d2b9e692323d68bf8541ebd089d6b27f6c0
[ "MIT" ]
null
null
null
rerecoMonitor/DataVolume/vandyLocalSize/test.py
tuos/PbPbRun2018
b8d42d2b9e692323d68bf8541ebd089d6b27f6c0
[ "MIT" ]
null
null
null
rerecoMonitor/DataVolume/vandyLocalSize/test.py
tuos/PbPbRun2018
b8d42d2b9e692323d68bf8541ebd089d6b27f6c0
[ "MIT" ]
null
null
null
import re size = [] with open("allSize.txt") as inFile: for line in inFile: z = re.match(r'(.*)T ', line) if z: # print((z.groups())) # print z.group()[:-2] size.append(float(z.group()[:-2])) print sum(size)
14.9375
40
0.535565
import re size = [] with open("allSize.txt") as inFile: for line in inFile: z = re.match(r'(.*)T ', line) if z: # print((z.groups())) # print z.group()[:-2] size.append(float(z.group()[:-2])) print sum(size)
0
0
0
0
0
0
0
0
0
dcc3aecc3d7ce1464f5a582af34b6c859ea01ba8
3,003
py
Python
integrations/tensorflow/bindings/python/pyiree/tf/support/tf_utils_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/bindings/python/pyiree/tf/support/tf_utils_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
integrations/tensorflow/bindings/python/pyiree/tf/support/tf_utils_test.py
rise-lang/iree
46ad3fe392d38ce3df6eff7826cc1ab331a40b72
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.15534
78
0.684316
# Lint as: python3 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
1,865
0
176
0
0
0
16
234
f1c3a2a49f162db4b1312d3313f866d95fcbe2ae
418
py
Python
wiki_categories/extract_ids_from_spraqle.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
1
2019-05-25T12:12:39.000Z
2019-05-25T12:12:39.000Z
wiki_categories/extract_ids_from_spraqle.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
wiki_categories/extract_ids_from_spraqle.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
import json data = None with open('sparql_result.json', 'r') as f: data = json.load(f) print(data['head']) food_ids_list = data['results']['bindings'] ids = [] for doc in food_ids_list: current_id = doc['id']['value'] ids.append(current_id) print(len(ids)) f = open('article_ids.csv', 'w') with f: ...
18.173913
43
0.598086
import json data = None with open('sparql_result.json', 'r') as f: data = json.load(f) print(data['head']) food_ids_list = data['results']['bindings'] ids = [] for doc in food_ids_list: current_id = doc['id']['value'] ids.append(current_id) print(len(ids)) f = open('article_ids.csv', 'w') with f: ...
0
0
0
0
0
0
0
0
0
45824a5bdec3c2a5f337902a825a66704012539c
1,563
py
Python
examples/test_izi.py
francbelf/python_izi
b198a48ede79c2d06fcd40ef4d0b2883387aa6bd
[ "BSD-3-Clause" ]
null
null
null
examples/test_izi.py
francbelf/python_izi
b198a48ede79c2d06fcd40ef4d0b2883387aa6bd
[ "BSD-3-Clause" ]
null
null
null
examples/test_izi.py
francbelf/python_izi
b198a48ede79c2d06fcd40ef4d0b2883387aa6bd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Jun 4 19:25:01 2018 @author: francesco """ import time from izi.izi import izi import matplotlib.pyplot as plt plt.ion() timestart = time.process_time() #%% #THIS IS THE TEST data shown in Fig 1 of Blanc et al., 2015 #fluxes from HII region NGC0925 +...
25.622951
74
0.668586
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Jun 4 19:25:01 2018 @author: francesco """ import numpy as np import time from izi.izi import izi import matplotlib.pyplot as plt plt.ion() timestart = time.process_time() #%% #THIS IS THE TEST data shown in Fig 1 of Blanc et al., 2015 #fluxes from H...
0
0
0
0
0
0
0
-3
22
c3d2e913310d0008b1e8ec5047fbe5cece2024fe
10,290
py
Python
learning/ecc/GraphConvModule.py
aliabdelkader/superpoint_graph
7ac66d9e960f84014100bf087b996aa5dc9342c7
[ "MIT" ]
9
2020-02-21T12:39:20.000Z
2022-03-07T01:54:41.000Z
learning/ecc/GraphConvModule.py
aliabdelkader/superpoint_graph
7ac66d9e960f84014100bf087b996aa5dc9342c7
[ "MIT" ]
null
null
null
learning/ecc/GraphConvModule.py
aliabdelkader/superpoint_graph
7ac66d9e960f84014100bf087b996aa5dc9342c7
[ "MIT" ]
1
2020-12-04T04:22:50.000Z
2020-12-04T04:22:50.000Z
""" Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs https://github.com/mys007/ecc https://arxiv.org/abs/1704.02901 2017 Martin Simonovsky """ from __future__ import division from __future__ import print_function import torch.nn as nn
44.934498
379
0.611565
""" Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs https://github.com/mys007/ecc https://arxiv.org/abs/1704.02901 2017 Martin Simonovsky """ from __future__ import division from __future__ import print_function from builtins import range import torch import torch...
0
0
0
9,718
0
0
0
42
215
f43628fb62173c33a240f2b1269001e96575ae9f
3,870
py
Python
cookbook/case_studies/feature_engineering/feast_integration/feast_dataobjects.py
YmirKhang/flytesnacks
4fc322987567bf959ce6a9feb7bd5c9f39eb3a9d
[ "Apache-2.0" ]
null
null
null
cookbook/case_studies/feature_engineering/feast_integration/feast_dataobjects.py
YmirKhang/flytesnacks
4fc322987567bf959ce6a9feb7bd5c9f39eb3a9d
[ "Apache-2.0" ]
null
null
null
cookbook/case_studies/feature_engineering/feast_integration/feast_dataobjects.py
YmirKhang/flytesnacks
4fc322987567bf959ce6a9feb7bd5c9f39eb3a9d
[ "Apache-2.0" ]
null
null
null
""" Feature Store Dataclass ----------------------- This dataclass provides a unified interface to access Feast methods from within a feature store. """
35.833333
155
0.697674
""" Feature Store Dataclass ----------------------- This dataclass provides a unified interface to access Feast methods from within a feature store. """ import os from dataclasses import dataclass from datetime import datetime from typing import Any, Dict, List, Optional, Union import pandas as pd from dataclasses_...
0
3,049
0
0
0
0
0
286
378
f137566cc67c8e94049ae6d8b93ba541e69913c6
1,127
py
Python
functions.py
ImJustTatan/borg
f9a13adcfde1cd591928955e55e7bc45185c4500
[ "MIT" ]
null
null
null
functions.py
ImJustTatan/borg
f9a13adcfde1cd591928955e55e7bc45185c4500
[ "MIT" ]
null
null
null
functions.py
ImJustTatan/borg
f9a13adcfde1cd591928955e55e7bc45185c4500
[ "MIT" ]
null
null
null
############### functions for borg # functions # by tatan ############### from termcolor import colored, cprint import colorama import random colorama.init() larrow = colored('>', 'green', attrs=['bold']) # for user input actmessages = colored('\nCurrently available actions:', 'green', attrs=['bold']) def plinpu...
28.897436
111
0.640639
############### functions for borg # functions # by tatan ############### from termcolor import colored, cprint import colorama import random colorama.init() larrow = colored('>', 'green', attrs=['bold']) # for user input actmessages = colored('\nCurrently available actions:', 'green', attrs=['bold']) def plinpu...
0
0
0
0
0
0
0
0
0
57fd37a84b3fbd552c14105c29b6ee53292d0c0e
1,094
py
Python
cmaki_generator/save_package.py
makiolo/npm-mas-mas
1d0812bb73dbeddca3c94f3c2c99b160971a37ed
[ "MIT" ]
null
null
null
cmaki_generator/save_package.py
makiolo/npm-mas-mas
1d0812bb73dbeddca3c94f3c2c99b160971a37ed
[ "MIT" ]
null
null
null
cmaki_generator/save_package.py
makiolo/npm-mas-mas
1d0812bb73dbeddca3c94f3c2c99b160971a37ed
[ "MIT" ]
null
null
null
import os import sys import logging import argparse import utils import subprocess if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--name', required=True, dest='name', help='name package', default=None) parser.add_argument('--version', required=True, dest='version', help=...
34.1875
112
0.703839
import os import sys import logging import argparse import urllib import csv import utils import subprocess if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--name', required=True, dest='name', help='name package', default=None) parser.add_argument('--version', required=Tr...
0
0
0
0
0
0
0
-19
44
755f632dc8b1ec82f565458aeb061f15d8538e2f
551
py
Python
Diagnostics/local/movie_make.py
Zhuo-Liu/Gkeyll_IAT
48fc10fd4ca5e521853bfa561e2b5e9efd29b93c
[ "MIT" ]
null
null
null
Diagnostics/local/movie_make.py
Zhuo-Liu/Gkeyll_IAT
48fc10fd4ca5e521853bfa561e2b5e9efd29b93c
[ "MIT" ]
null
null
null
Diagnostics/local/movie_make.py
Zhuo-Liu/Gkeyll_IAT
48fc10fd4ca5e521853bfa561e2b5e9efd29b93c
[ "MIT" ]
null
null
null
import cv2 import glob file_array = [] img_array = [] for filename in glob.glob('./Diagnostics/local/Ratio/mass400/dist_function/IAT_E2_f1D_*.png'): file_array.append(filename) file_array.sort() for filename in file_array[:]: img = cv2.imread(filename) height, width, layers = img.shape size = (width,h...
23.956522
94
0.722323
import cv2 import numpy as np import glob file_array = [] img_array = [] for filename in glob.glob('./Diagnostics/local/Ratio/mass400/dist_function/IAT_E2_f1D_*.png'): file_array.append(filename) file_array.sort() for filename in file_array[:]: img = cv2.imread(filename) height, width, layers = img.shape ...
0
0
0
0
0
0
0
-3
22
cdce55e295502e96c3cb834e0b40789e79b625d0
2,803
py
Python
pyss/mpi/algorithm/rayleigh_ritz.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
pyss/mpi/algorithm/rayleigh_ritz.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
pyss/mpi/algorithm/rayleigh_ritz.py
ibara1454/pyss
69b47d89f88f04876bdabd504d202a1ced7bb5e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import scipy import scipy.linalg from pyss.mpi.util.operation import hv def rayleigh_ritz(p, a, b, cv, comm, left=False, right=True, check_finite=True, homogeneous_eigvals=False): """ Rayleigh-Ritz Procedure using MPI parallelism. Parameter...
39.478873
79
0.628255
#!/usr/bin/env python # -*- coding: utf-8 -*- import scipy import scipy.linalg from pyss.mpi.util.operation import hv def rayleigh_ritz(p, a, b, cv, comm, left=False, right=True, check_finite=True, homogeneous_eigvals=False): """ Rayleigh-Ritz Procedure using MPI parallelism. Parameter...
0
0
0
0
0
0
0
0
0
3ae83d173fdc7e48623bb8056468989f142a2a95
605
py
Python
wldata_backup/migrations/0006_auto_20210219_2005.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
wldata_backup/migrations/0006_auto_20210219_2005.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
7
2021-06-04T23:45:15.000Z
2022-03-12T00:44:14.000Z
wldata_backup/migrations/0006_auto_20210219_2005.py
jakariapervez/cmis6
de279e5c586a77745ddd3d471599784606d50d15
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-02-19 14:05
25.208333
71
0.61157
# Generated by Django 3.1 on 2021-02-19 14:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wldata', '0005_gaugelocation_danger_level'), ] operations = [ migrations.AlterField( model_name='gaugelocation', name=...
0
0
0
493
0
0
0
19
46
36af44733749998a028e823f7edbc9d00f425760
1,797
py
Python
lor/generators/task/task_generator.py
adamkewley/lor
335be1d3c6e324eb9dca40b8fd707418481ac09a
[ "Apache-2.0" ]
2
2018-04-13T09:56:17.000Z
2018-04-13T12:29:11.000Z
lor/generators/task/task_generator.py
adamkewley/lor
335be1d3c6e324eb9dca40b8fd707418481ac09a
[ "Apache-2.0" ]
null
null
null
lor/generators/task/task_generator.py
adamkewley/lor
335be1d3c6e324eb9dca40b8fd707418481ac09a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 ...
35.235294
118
0.666667
# -*- coding: utf-8 -*- # # 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 ...
0
0
0
1,126
0
0
0
12
90
b27076f53f8b77cc22ac8cd1c947b8111f78c834
2,414
py
Python
please-pass-the-coded-messages.py
CiaranMcAndrew/foobar
d4a3b4607f1aaaa76485dfc7d1ac2ca9bb813559
[ "MIT" ]
null
null
null
please-pass-the-coded-messages.py
CiaranMcAndrew/foobar
d4a3b4607f1aaaa76485dfc7d1ac2ca9bb813559
[ "MIT" ]
null
null
null
please-pass-the-coded-messages.py
CiaranMcAndrew/foobar
d4a3b4607f1aaaa76485dfc7d1ac2ca9bb813559
[ "MIT" ]
null
null
null
''' Please Pass the Coded Messages ============================== You need to pass a message to the bunny prisoners, but to avoid detection, the code you agreed to use is... obscure, to say the least. The bunnies are given food on standard-issue prison plates that are stamped with the numbers 0-9 for easier sorting...
29.439024
105
0.675642
''' Please Pass the Coded Messages ============================== You need to pass a message to the bunny prisoners, but to avoid detection, the code you agreed to use is... obscure, to say the least. The bunnies are given food on standard-issue prison plates that are stamped with the numbers 0-9 for easier sorting...
0
0
0
0
0
330
0
13
45
cf317bfc2180c3362594810e19da1461a7abf4ba
2,641
py
Python
dtoolbioimage/derived_dataset.py
JIC-Image-Analysis/dtoolbioimage
c662ac1b6bfd77e153682627aab3e74d31ae0569
[ "MIT" ]
null
null
null
dtoolbioimage/derived_dataset.py
JIC-Image-Analysis/dtoolbioimage
c662ac1b6bfd77e153682627aab3e74d31ae0569
[ "MIT" ]
8
2020-03-24T16:30:11.000Z
2022-03-11T23:36:42.000Z
dtoolbioimage/derived_dataset.py
JIC-Image-Analysis/dtoolbioimage
c662ac1b6bfd77e153682627aab3e74d31ae0569
[ "MIT" ]
null
null
null
try: from StringIO import StringIO except ImportError:
25.892157
87
0.672851
import os import shutil import tempfile from pathlib import Path try: from StringIO import StringIO except ImportError: from io import StringIO import dtoolcore from ruamel.yaml import YAML def proto_dataset_from_base_uri(name, base_uri): admin_metadata = dtoolcore.generate_admin_metadata(name) p...
0
45
0
1,975
0
371
0
-19
207
fa872c0adbda54bf7eb964cd1f52de2331f7a8c9
2,604
py
Python
trafpy/benchmarker/gen_new_slots_dict.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
4
2020-08-28T18:24:11.000Z
2020-11-13T07:26:18.000Z
trafpy/benchmarker/gen_new_slots_dict.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
4
2020-09-14T11:31:09.000Z
2020-09-21T16:00:20.000Z
trafpy/benchmarker/gen_new_slots_dict.py
cwfparsonson/trafpy
23b27abb2352990522b21dc1b14f0310abf84a17
[ "Apache-2.0" ]
null
null
null
from trafpy.generator.src import builder from trafpy.generator.src.tools import load_data_from_json, unpickle_data import glob import json import time from sqlitedict import SqliteDict import os if __name__ == '__main__': ''' Take path to previously generated json demand data file(s) and organise into ...
38.865672
130
0.600998
from trafpy.generator.src import builder from trafpy.generator.src.demand import Demand from trafpy.generator.src.tools import load_data_from_json, unpickle_data import glob import json import time from sqlitedict import SqliteDict import os if __name__ == '__main__': ''' Take path to previously generated ...
0
0
0
0
0
0
0
25
22
0217e171dc5975c6197dcecc571c5615993ff986
773
py
Python
python/python-algorithm-intervew/9-stack-queue/21-remove-duplicate-letters-1.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/python-algorithm-intervew/9-stack-queue/21-remove-duplicate-letters-1.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/python-algorithm-intervew/9-stack-queue/21-remove-duplicate-letters-1.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" * . 1 - "bcabc" - "abc" 2 - "cbacdcbc" - "acdb" """ if __name__ == '__main__': solution = Solution() param = "cbacdcb" print(solution.removeDuplicateLetters(param))
21.472222
83
0.569211
""" * 중복 문자 제거 중복된 문자를 제외하고 사전식 순서로 나열하라. 예제 1 - 입력 "bcabc" - 출력 "abc" 예제 2 - 입력 "cbacdcbc" - 출력 "acdb" """ class Solution: def removeDuplicateLetters(self, s: str) -> str: # 중복을 제거한 제일 먼저오는 알파벳 순서를 가져오기 위한 set sorted_set = sorted(set(s)) # 집합으로 정렬 for char in sorted_set: ...
288
0
0
457
0
0
0
0
23
c82ccc97c913bf90a5f082b510183884867e4b90
3,585
py
Python
punica/cli/tool_cmd.py
karimb9/punica-python
d396f36ff98ec6a9f889cfb7bfeede724477673e
[ "MIT" ]
null
null
null
punica/cli/tool_cmd.py
karimb9/punica-python
d396f36ff98ec6a9f889cfb7bfeede724477673e
[ "MIT" ]
null
null
null
punica/cli/tool_cmd.py
karimb9/punica-python
d396f36ff98ec6a9f889cfb7bfeede724477673e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
33.194444
96
0.567364
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import click from punica.tool.tool import Tool from .main import main @main.group('tool', invoke_without_command=True) @click.pass_context def tool_cmd(ctx): """ Data format conversion tool """ if ctx.invoked_subcommand is None: print('Usage: pu...
0
3,389
0
0
0
0
0
4
137
4245e7efa670ec5e20ee5b4517a1adc94cda8ce8
2,048
py
Python
server/galaxyls/services/xsd/service.py
galaxyproject/galaxy-language-server
f4355d35609e18d53998f999d11964026ca2b04f
[ "Apache-2.0" ]
17
2020-10-30T22:06:24.000Z
2022-02-11T13:06:34.000Z
server/galaxyls/services/xsd/service.py
galaxyproject/galaxy-language-server
f4355d35609e18d53998f999d11964026ca2b04f
[ "Apache-2.0" ]
85
2020-11-01T12:28:20.000Z
2022-01-31T12:40:34.000Z
server/galaxyls/services/xsd/service.py
galaxyproject/galaxy-language-server
f4355d35609e18d53998f999d11964026ca2b04f
[ "Apache-2.0" ]
4
2020-11-18T18:07:05.000Z
2022-02-25T18:33:36.000Z
"""Utilities to validate Galaxy xml tool wrappers and extract information from the XSD schema. """ from pygls.lsp.types import MarkupContent, MarkupKind from .constants import MSG_NO_DOCUMENTATION_AVAILABLE NO_DOC_MARKUP = MarkupContent(kind=MarkupKind.Markdown, value=MSG_NO_DOCUMENTATION_AVAILABLE)
38.641509
93
0.717773
"""Utilities to validate Galaxy xml tool wrappers and extract information from the XSD schema. """ from typing import List from lxml import etree from pygls.lsp.types import Diagnostic, MarkupContent, MarkupKind from ..context import XmlContext from ..xml.document import XmlDocument from .constants import MSG_NO_DOC...
0
0
0
1,481
0
0
0
106
158
bdb0ce36450bf7cbc9e82e9e811920a4dddfad7a
769
py
Python
hpcde/packages/foss/package.py
hpcde/spack-repos
1ef11db1362c9c1e6261fc4e3796602c0a8a3286
[ "MIT" ]
1
2021-01-06T07:45:29.000Z
2021-01-06T07:45:29.000Z
hpcde/packages/foss/package.py
hpcde/spack-repos
1ef11db1362c9c1e6261fc4e3796602c0a8a3286
[ "MIT" ]
null
null
null
hpcde/packages/foss/package.py
hpcde/spack-repos
1ef11db1362c9c1e6261fc4e3796602c0a8a3286
[ "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT)
28.481481
73
0.686606
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Foss(BundlePackage): """GNU Compiler Collection (GCC) based compiler toolchain, includ...
0
0
0
526
0
0
0
-2
46
df87b78987f27fb72b44878c3437dab340f0a028
19,454
py
Python
findobj/utils/scale_img.py
larrybradley/findobj
c9dba82c9dca846b48263530a76bdb78b6a7d840
[ "BSD-3-Clause" ]
1
2018-09-21T02:26:53.000Z
2018-09-21T02:26:53.000Z
findobj/utils/scale_img.py
larrybradley/findobj
c9dba82c9dca846b48263530a76bdb78b6a7d840
[ "BSD-3-Clause" ]
null
null
null
findobj/utils/scale_img.py
larrybradley/findobj
c9dba82c9dca846b48263530a76bdb78b6a7d840
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np from astropy.stats import sigma_clip __all__ = ['find_imgcuts', 'img_stats', 'rescale_img', 'scale_linear', 'scale_s...
35.630037
89
0.624242
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np from astropy.stats import sigma_clip __all__ = ['find_imgcuts', 'img_stats', 'rescale_img', 'scale_linear', 'scale_s...
0
0
0
0
0
0
0
0
0
d325878a2d20f2bedf5e8fb2f6d48645220019c8
1,565
py
Python
EncoderDecoder.py
taisa831/Chainer-Slack-Twitter-Dialogue
57fffc3da6e720ce8e16464ccf56598ebe7aed79
[ "Unlicense", "MIT" ]
null
null
null
EncoderDecoder.py
taisa831/Chainer-Slack-Twitter-Dialogue
57fffc3da6e720ce8e16464ccf56598ebe7aed79
[ "Unlicense", "MIT" ]
null
null
null
EncoderDecoder.py
taisa831/Chainer-Slack-Twitter-Dialogue
57fffc3da6e720ce8e16464ccf56598ebe7aed79
[ "Unlicense", "MIT" ]
null
null
null
#'!/usr/bin/env python #-*- coding:utf-8 -*- #!/usr/bin/python3
32.604167
90
0.646006
#'!/usr/bin/env python #-*- coding:utf-8 -*- #!/usr/bin/python3 from chainer import Chain, functions, links from Encoder import Encoder from Decoder import Decoder import numpy as np from util.Common_function import CommonFunction class EncoderDecoder(Chain): def __init__(self, vocab_size, embed_size, hidden_size...
0
245
0
1,064
0
0
0
57
134
5d6106f5b6d6b892b89c4f039c74ef1176e5cd01
250
py
Python
hard_way/ex15.py
kodywilson/lp3thw
bd8f399e807b3a6a9d0ab9aed538ba1a5f4ada8a
[ "MIT" ]
null
null
null
hard_way/ex15.py
kodywilson/lp3thw
bd8f399e807b3a6a9d0ab9aed538ba1a5f4ada8a
[ "MIT" ]
null
null
null
hard_way/ex15.py
kodywilson/lp3thw
bd8f399e807b3a6a9d0ab9aed538ba1a5f4ada8a
[ "MIT" ]
null
null
null
import sys script = sys.argv[0] filename = sys.argv[1] txt = open(filename) print(f"Here's your file {filename}:") print(txt.read()) print("Type the filename again:") file_again = input("> ") txt_again = open(file_again) print(txt_again.read())
15.625
38
0.696
import sys script = sys.argv[0] filename = sys.argv[1] txt = open(filename) print(f"Here's your file {filename}:") print(txt.read()) print("Type the filename again:") file_again = input("> ") txt_again = open(file_again) print(txt_again.read())
0
0
0
0
0
0
0
0
0
daf5da926cc17d83c52ac28d2f45bae28c56c1da
12,493
py
Python
covid19uk/model_spec.py
chrism0dwk/covid19uk
bd5ca69df5f2dd7b6e62ab8a78ed55a5ef8fcfd3
[ "MIT" ]
10
2020-03-21T22:36:24.000Z
2021-05-23T22:47:13.000Z
covid19uk/model_spec.py
chrism0dwk/covid19uk
bd5ca69df5f2dd7b6e62ab8a78ed55a5ef8fcfd3
[ "MIT" ]
14
2020-03-27T19:24:51.000Z
2021-07-21T12:41:23.000Z
covid19uk/model_spec.py
chrism0dwk/covid19uk
bd5ca69df5f2dd7b6e62ab8a78ed55a5ef8fcfd3
[ "MIT" ]
13
2020-03-21T17:17:20.000Z
2021-05-06T22:50:18.000Z
"""Implements the COVID SEIR model as a TFP Joint Distribution""" import pandas as pd import geopandas as gp import numpy as np import xarray import tensorflow as tf import tensorflow_probability as tfp from covid19uk.util import impute_previous_cases from covid19uk.data import AreaCodeData from covid19uk.data impor...
33.856369
84
0.579765
"""Implements the COVID SEIR model as a TFP Joint Distribution""" import pandas as pd import geopandas as gp import numpy as np import xarray import tensorflow as tf import tensorflow_probability as tfp from gemlib.distributions import DiscreteTimeStateTransitionModel from covid19uk.util import impute_previous_cases...
0
0
0
0
0
8,019
0
44
119
73920f0956d505c52269ee915364405d24a4ef33
459
py
Python
src/common/yolo/utils/autoanchor.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/common/yolo/utils/autoanchor.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
src/common/yolo/utils/autoanchor.py
wenksi/pren-robo-cube-ipcv
e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f
[ "MIT" ]
null
null
null
# Auto-anchor utils
38.25
100
0.6122
# Auto-anchor utils def check_anchor_order(m): # Check anchor order against stride order for YOLOv5 Detect() module m, and correct if necessary a = m.anchor_grid.prod(-1).view(-1) # anchor area da = a[-1] - a[0] # delta a ds = m.stride[-1] - m.stride[0] # delta s if da.sign() != ds.sign(): # sa...
0
0
0
0
0
416
0
0
23
dbd6c500b2f9e384a27508cd39a2c538de2654fd
862
py
Python
Create Spatial File/Vector/create_wkt_line.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
60
2015-01-12T08:36:19.000Z
2021-12-20T11:06:25.000Z
Create Spatial File/Vector/create_wkt_line.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
null
null
null
Create Spatial File/Vector/create_wkt_line.py
MBoustani/Geothon
07a499d4ac0bb767677cd59b301022ad2ab16136
[ "Apache-2.0" ]
20
2015-02-20T03:05:17.000Z
2021-12-27T16:18:45.000Z
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Vector/create_wkt_line.py Description: This code creates a wkt line from multi-points. Author: Maziyar Boustani (github.com/MBoustani) ''' try: import ogr except ImportError: from osgeo import ogr ...
27.806452
62
0.732019
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Vector/create_wkt_line.py Description: This code creates a wkt line from multi-points. Author: Maziyar Boustani (github.com/MBoustani) ''' try: import ogr except ImportError: from osgeo import ogr ...
0
0
0
0
0
0
0
0
0
152318e5cc5129feda19931661e3268b1f0a16ef
3,119
py
Python
core/src/zeit/retresco/metrics.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/retresco/metrics.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/retresco/metrics.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
import logging import prometheus_client import zeit.cms.cli import zeit.find.interfaces REGISTRY = prometheus_client.CollectorRegistry() log = logging.getLogger(__name__) IMPORTERS = [ Gauge('vivi_recent_news_published_total', [ {'term': {'payload.workflow.product-id': 'News'}}, {'range': {'p...
33.180851
78
0.646682
from zeit.cms.interfaces import ICMSContent from zeit.content.article.interfaces import IArticle import argparse import logging import prometheus_client import zeit.cms.cli import zeit.find.interfaces import zeit.retresco.interfaces import zope.component REGISTRY = prometheus_client.CollectorRegistry() log = logging....
0
1,569
0
216
0
0
0
57
202
56e56b1ede2a7685bdd26592941c678b6c81fdb6
4,102
py
Python
poptions/MonteCarlo.py
Talha-Tariq/poptions
4bc54b7c31ec57a3b1094aafdd103c7d0a711519
[ "MIT" ]
27
2021-12-06T21:56:56.000Z
2022-03-13T20:44:30.000Z
poptions/MonteCarlo.py
Talha-Tariq/poptions
4bc54b7c31ec57a3b1094aafdd103c7d0a711519
[ "MIT" ]
null
null
null
poptions/MonteCarlo.py
Talha-Tariq/poptions
4bc54b7c31ec57a3b1094aafdd103c7d0a711519
[ "MIT" ]
7
2021-12-06T23:13:31.000Z
2021-12-18T04:00:58.000Z
# Assumptions: # The stock price volatility is equal to the implied volatility and remains constant. # Geometric Brownian Motion is used to model the stock price. # Risk-free interest rates remain constant. # The Black-Scholes Model is used to price options contracts. # Dividend yield is not considered. # Commissions ...
33.900826
104
0.562165
import numpy as np from numba import jit # Assumptions: # The stock price volatility is equal to the implied volatility and remains constant. # Geometric Brownian Motion is used to model the stock price. # Risk-free interest rates remain constant. # The Black-Scholes Model is used to price options contracts. # Dividen...
0
0
0
0
0
3,605
0
-3
67
189ce35cd1313d5e0de042ec0a93e667c39833e0
3,394
py
Python
tests/unit/manager/default/test_provider_wrapper.py
jqxin2006/poppy
10636e6255c7370172422afece4a5c3d95c1e937
[ "Apache-2.0" ]
null
null
null
tests/unit/manager/default/test_provider_wrapper.py
jqxin2006/poppy
10636e6255c7370172422afece4a5c3d95c1e937
[ "Apache-2.0" ]
null
null
null
tests/unit/manager/default/test_provider_wrapper.py
jqxin2006/poppy
10636e6255c7370172422afece4a5c3d95c1e937
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
42.425
78
0.678845
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
0
0
0
2,609
0
0
0
42
158
c474602a6b0fb44f29ea3f41a0d154440b5a779d
2,463
py
Python
gazoo_device/tests/unit_tests/nrf52840_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/nrf52840_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/nrf52840_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.695652
80
0.736906
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
251
0
978
0
0
0
73
90
8a5a12babd933843f8220c6c929e51ea4fab36f1
496
py
Python
wagtail/wagtailcore/urls.py
ollywillans/wagtail
5f332a1ca8907172c0a5b4a6a820e17dabbb403b
[ "BSD-3-Clause" ]
1
2019-04-22T08:49:30.000Z
2019-04-22T08:49:30.000Z
wagtail/wagtailcore/urls.py
cybernetics/wagtail
d8c0a0ef9b7c33fa23d0653e892ee3813df5f8ec
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailcore/urls.py
cybernetics/wagtail
d8c0a0ef9b7c33fa23d0653e892ee3813df5f8ec
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, url urlpatterns = patterns( 'wagtail.wagtailcore.views', # All front-end views are handled through Wagtail's core.views.serve mechanism. # Here we match a (possibly empty) list of path segments, each followed by # a '/'. If a trailing slash is not present, we leav...
41.333333
83
0.689516
from django.conf.urls import patterns, url urlpatterns = patterns( 'wagtail.wagtailcore.views', # All front-end views are handled through Wagtail's core.views.serve mechanism. # Here we match a (possibly empty) list of path segments, each followed by # a '/'. If a trailing slash is not present, we leav...
0
0
0
0
0
0
0
0
0
ffff032ab189c08a2db3d7bf59bc9f01511e54c9
2,079
py
Python
farm/utils.py
delimitry/ctf-exploit-farm
c651bbc1769eade83e647a099a903398bdd0f692
[ "MIT" ]
20
2018-01-29T19:28:47.000Z
2022-02-23T03:06:51.000Z
farm/utils.py
delimitry/ctf-exploit-farm
c651bbc1769eade83e647a099a903398bdd0f692
[ "MIT" ]
2
2017-12-03T16:21:11.000Z
2018-10-31T05:44:05.000Z
farm/utils.py
delimitry/ctf-exploit-farm
c651bbc1769eade83e647a099a903398bdd0f692
[ "MIT" ]
7
2018-01-29T19:28:49.000Z
2020-05-18T13:34:25.000Z
import csv import importlib import re __all__ = [ 'camel_case_to_underscore', 'import_type', 'import_module_from_file', 'read_teams_from_file', ] first_cap_re = re.compile('(.)([A-Z][a-z]+)') all_cap_re = re.compile('([a-z0-9])([A-Z])') def read_teams_from_file(file_name: str): """ Reads tea...
31.029851
139
0.642136
import csv import importlib import importlib.util import re __all__ = [ 'camel_case_to_underscore', 'import_type', 'import_module_from_file', 'read_teams_from_file', ] first_cap_re = re.compile('(.)([A-Z][a-z]+)') all_cap_re = re.compile('([a-z0-9])([A-Z])') def camel_case_to_underscore(name: str): ...
0
0
0
0
0
735
0
0
91
f78d30612c44065d424d81dd5cc53d6cef4d2533
46,720
py
Python
src/zc/relation/catalog.py
zopefoundation/zc.relation
14b5b04b87ca86b71b04e80f0b0ed2dd29223bf4
[ "ZPL-2.1" ]
null
null
null
src/zc/relation/catalog.py
zopefoundation/zc.relation
14b5b04b87ca86b71b04e80f0b0ed2dd29223bf4
[ "ZPL-2.1" ]
9
2016-08-02T12:31:05.000Z
2021-04-30T14:53:28.000Z
src/zc/relation/catalog.py
zopefoundation/zc.relation
14b5b04b87ca86b71b04e80f0b0ed2dd29223bf4
[ "ZPL-2.1" ]
5
2015-04-03T06:48:08.000Z
2020-02-17T10:40:14.000Z
############################################################################## # # Copyright (c) 2006-2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
39.260504
79
0.531956
############################################################################## # # Copyright (c) 2006-2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
0
43,295
0
603
0
934
0
-8
361
3cc0d62440fb4a866eaee27a2016aaa625e29140
1,255
py
Python
conditions/migrations/0012_auto_20190907_1422.py
surajsjain/smart-aquaponics-backend
f4361bc9511f71be8e969c29773f464b4cf6440f
[ "MIT" ]
4
2019-11-14T15:28:20.000Z
2021-03-26T04:43:43.000Z
conditions/migrations/0012_auto_20190907_1422.py
surajsjain/smart-aquaponics-backend
f4361bc9511f71be8e969c29773f464b4cf6440f
[ "MIT" ]
7
2020-06-05T22:46:25.000Z
2022-02-10T09:37:55.000Z
conditions/migrations/0012_auto_20190907_1422.py
surajsjain/smart-aquaponics-backend
f4361bc9511f71be8e969c29773f464b4cf6440f
[ "MIT" ]
2
2020-02-21T06:05:30.000Z
2021-03-26T04:43:48.000Z
# Generated by Django 2.2.4 on 2019-09-07 14:22
31.375
98
0.588048
# Generated by Django 2.2.4 on 2019-09-07 14:22 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('conditions', '0011_auto_20190907_1232'), ] operations = [ migrations.AddField( model_name='actuatoroverride', ...
0
0
0
1,125
0
0
0
13
68
aea86b020334fac5fc66db6ce9f553c1899b6243
6,874
py
Python
tests/integration/session/test_sign_out_and_exit.py
uk-gov-mirror/ONSdigital.eq-questionnaire-runner
4684bc560bfc7a169e279846fb341a188decb374
[ "MIT" ]
null
null
null
tests/integration/session/test_sign_out_and_exit.py
uk-gov-mirror/ONSdigital.eq-questionnaire-runner
4684bc560bfc7a169e279846fb341a188decb374
[ "MIT" ]
null
null
null
tests/integration/session/test_sign_out_and_exit.py
uk-gov-mirror/ONSdigital.eq-questionnaire-runner
4684bc560bfc7a169e279846fb341a188decb374
[ "MIT" ]
null
null
null
SIGN_OUT_URL_PATH = "/sign-out" SIGNED_OUT_URL_PATH = "/signed-out" ACCOUNT_SERVICE_LOG_OUT_URL = "http://localhost/logout" ACCOUNT_SERVICE_LOG_OUT_URL_PATH = "/logout"
41.660606
88
0.743672
from app.helpers.template_helpers import ( CENSUS_CY_BASE_URL, CENSUS_EN_BASE_URL, CENSUS_NIR_BASE_URL, ) from tests.integration.integration_test_case import IntegrationTestCase SIGN_OUT_URL_PATH = "/sign-out" SIGNED_OUT_URL_PATH = "/signed-out" ACCOUNT_SERVICE_LOG_OUT_URL = "http://localhost/logout" ACCOU...
0
0
0
6,370
0
0
0
146
182
e2a2d1d92b5f5687ce67fd525d1ce8be88460cf5
5,302
py
Python
vmchecker/generic_executor.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
19
2015-08-31T22:53:45.000Z
2020-07-15T12:02:13.000Z
vmchecker/generic_executor.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
28
2015-01-18T13:26:47.000Z
2021-06-29T13:51:09.000Z
vmchecker/generic_executor.py
calin-iorgulescu/vmchecker
050ec96495974f76c615e827ea68e2fc6430b1e9
[ "MIT" ]
16
2015-04-20T06:04:22.000Z
2017-04-15T19:39:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """The definition of the base classes Host and VM which provide the necessary primitives to interact with a vm and test a submission bundle.""" from __future__ import with_statement # Use simplejson or Python 2.6 json, prefer simplejson. try: import simplejson as js...
31.372781
131
0.602037
#!/usr/bin/env python # -*- coding: utf-8 -*- """The definition of the base classes Host and VM which provide the necessary primitives to interact with a vm and test a submission bundle.""" from __future__ import with_statement # Use simplejson or Python 2.6 json, prefer simplejson. try: import simplejson as js...
0
0
0
4,646
0
0
0
-4
256
2b59207c91c2c6b9ae04c048ac885f19712be832
7,048
py
Python
reconstruction_sw/code/viz_volumetric.py
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
null
null
null
reconstruction_sw/code/viz_volumetric.py
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
null
null
null
reconstruction_sw/code/viz_volumetric.py
Saafke/4dm
68e235164afb1f127def35e9c15ca883ec1426d4
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np import os import json import quaternion as quat import utils ################################################### ############### MAIN ################################################### do_white_background = False do_save = False dataset_name = 'easy' mesh_folder = '../results...
36.708333
112
0.520573
import open3d as o3d import numpy as np import os import json import quaternion as quat import utils ################################################### ############### MAIN ################################################### do_white_background = False do_save = False dataset_name = 'easy' mesh_folder = '../results...
0
0
0
0
0
0
0
0
0
481372bb195e22e6ff82bf9a40265e9aba39a40f
3,669
py
Python
mediation/bin/generate_cm_table_sql_from_csv.py
gitter-badger/bts-ce
f27be848ebc23b57c4767ffcd70fdc608281c649
[ "Apache-2.0" ]
null
null
null
mediation/bin/generate_cm_table_sql_from_csv.py
gitter-badger/bts-ce
f27be848ebc23b57c4767ffcd70fdc608281c649
[ "Apache-2.0" ]
1
2018-05-08T12:53:20.000Z
2018-05-08T12:53:20.000Z
mediation/bin/generate_cm_table_sql_from_csv.py
gitter-badger/bts-ce
f27be848ebc23b57c4767ffcd70fdc608281c649
[ "Apache-2.0" ]
1
2019-04-12T14:48:47.000Z
2019-04-12T14:48:47.000Z
# Generate table creation sql # # generate_table_sql.py schema parser_output_dir # Assumes that <schema>_hist exists # # Example: python generate_table_sql.py zte_cm_2g "data\cm\zte\gsm\parsed\in" # # Change log: # 23/11/2017 Make columns below text fields for Ericsson 2G cnaiv2 dumps # INTERNAL_CELL.UHPRIOTHR, # INT...
32.758929
120
0.683838
# Generate table creation sql # # generate_table_sql.py schema parser_output_dir # Assumes that <schema>_hist exists # # Example: python generate_table_sql.py zte_cm_2g "data\cm\zte\gsm\parsed\in" # # Change log: # 23/11/2017 Make columns below text fields for Ericsson 2G cnaiv2 dumps # INTERNAL_CELL.UHPRIOTHR, # INT...
0
0
0
0
0
0
0
0
0