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
0e4a635e9170ad9b8a8a8afc6c4cd3c8f6f35138
738
py
Python
scr/visualization.py
luyuliu/congestion_detector
46f2bfb37d8c52a9803645625e5249b18b322cd6
[ "Unlicense" ]
2
2017-11-30T21:27:53.000Z
2018-02-09T19:32:42.000Z
scr/visualization.py
luyuliu/congestion_detector
46f2bfb37d8c52a9803645625e5249b18b322cd6
[ "Unlicense" ]
null
null
null
scr/visualization.py
luyuliu/congestion_detector
46f2bfb37d8c52a9803645625e5249b18b322cd6
[ "Unlicense" ]
null
null
null
import numpy as np import pandas as pd #timestamp=input("Enter a timestamp: ") start=1512031920 end=1512073980 if __name__=='__main__': timestamp=start stop_info=pd.read_csv("D:\\Luyu\\congestion_detector\\GTFS_sorted\\stops_sorted_sim.csv") for b in range(int((end-start)/60-10)): try: ...
30.75
124
0.635501
import numpy as np import pandas as pd #timestamp=input("Enter a timestamp: ") start=1512031920 end=1512073980 if __name__=='__main__': timestamp=start stop_info=pd.read_csv("D:\\Luyu\\congestion_detector\\GTFS_sorted\\stops_sorted_sim.csv") for b in range(int((end-start)/60-10)): try: ...
0
0
0
0
0
0
0
0
0
4b97df933d9efd5f634847fa353f462a2876c7a9
2,046
py
Python
tests/test_cle_city_council.py
PaulR-Docs/city-scrapers-cle
00f5db64b64e1ea0ddfa3b7f53d1f5db26c1042d
[ "MIT" ]
14
2019-10-18T15:33:43.000Z
2021-12-17T17:15:36.000Z
tests/test_cle_city_council.py
PaulR-Docs/city-scrapers-cle
00f5db64b64e1ea0ddfa3b7f53d1f5db26c1042d
[ "MIT" ]
35
2020-01-16T15:56:46.000Z
2022-03-19T18:41:42.000Z
tests/test_cle_city_council.py
PaulR-Docs/city-scrapers-cle
00f5db64b64e1ea0ddfa3b7f53d1f5db26c1042d
[ "MIT" ]
13
2019-09-16T18:44:45.000Z
2022-02-22T20:59:26.000Z
import json from operator import itemgetter from os.path import dirname, join from freezegun import freeze_time from city_scrapers.spiders.cle_city_council import CleCityCouncilSpider freezer = freeze_time("2019-09-09") freezer.start() with open( join(dirname(__file__), "files", "cle_city_council.json"), "r", en...
22.988764
133
0.687683
import json from datetime import datetime from operator import itemgetter from os.path import dirname, join import pytest # noqa from city_scrapers_core.constants import COMMITTEE, PASSED from freezegun import freeze_time from city_scrapers.spiders.cle_city_council import CleCityCouncilSpider freezer = freeze_time(...
0
0
0
0
0
1,087
0
37
374
bcb1659b5324e626bfd2b16ba191cba06330c52e
24,613
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/network/cloudengine/ce_vxlan_arp.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/network/cloudengine/ce_vxlan_arp.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/network/plugins/modules/network/cloudengine/ce_vxlan_arp.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible 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 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
35.722787
110
0.595173
#!/usr/bin/python # # This file is part of Ansible # # Ansible 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 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
0
0
0
16,803
0
0
0
150
89
2122a8445c214faad8ef4bffdf26e13330c645d2
5,862
py
Python
classification/torch_codes/main_30.py
sansastra/uncertainty_edl_graph
21c20bef323b520f6031ca54c2eb1fd020841f9d
[ "Apache-2.0" ]
4
2021-08-09T20:46:22.000Z
2022-03-23T15:58:30.000Z
classification/torch_codes/main_30.py
sansastra/uncertainty_edl_graph
21c20bef323b520f6031ca54c2eb1fd020841f9d
[ "Apache-2.0" ]
null
null
null
classification/torch_codes/main_30.py
sansastra/uncertainty_edl_graph
21c20bef323b520f6031ca54c2eb1fd020841f9d
[ "Apache-2.0" ]
1
2021-11-02T14:29:51.000Z
2021-11-02T14:29:51.000Z
import torch.nn as nn import torch.optim as optim #from data import dataloaders, digit_one if __name__ == "__main__": main()
40.708333
152
0.628113
import torch import torch.nn as nn import torch.optim as optim import numpy as np import argparse from matplotlib import pyplot as plt from PIL import Image from helpers import get_device, rotate_img, one_hot_embedding #from data import dataloaders, digit_one from train import train_model from test import test_data ...
0
0
0
0
0
5,241
0
200
289
7da07c43a66a0a72f7638802e21b18ce3cdf0643
1,313
py
Python
contests/20210220/abc192/c/main.py
yamap55/atcoder_python
eb000b8df3037a2bba3d3527014bc12770018cb6
[ "MIT" ]
null
null
null
contests/20210220/abc192/c/main.py
yamap55/atcoder_python
eb000b8df3037a2bba3d3527014bc12770018cb6
[ "MIT" ]
7
2021-01-23T06:51:03.000Z
2021-07-26T15:05:44.000Z
contests/20210220/abc192/c/main.py
yamap55/atcoder_python
eb000b8df3037a2bba3d3527014bc12770018cb6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys LI = lambda: list(map(int, sys.stdin.buffer.readline().split())) I = lambda: int(sys.stdin.buffer.readline()) LS = lambda: sys.stdin.buffer.readline().rstrip().decode("utf-8").split() S = lambda: sys.stdin.buffer.readline().rstrip().decode("utf-8") IR = lambda n: [I() for _ in range(...
25.745098
103
0.644326
#!/usr/bin/env python3 import sys from bisect import bisect, bisect_left, bisect_right, insort, insort_left, insort_right # type: ignore from collections import Counter, defaultdict, deque # type: ignore from fractions import gcd # type: ignore from heapq import heapify, heappop, heappush, heappushpop, heapreplace, ...
0
0
0
0
0
189
0
204
259
349cc29bff5b6c284c1d4c3e0fcaa57020a9ebcc
7,419
py
Python
qmctorch/utils/plot_data.py
NLESC-JCER/QMCTorch
c56472cd3e9cc59f2e01a880e674b7270d2cdc2b
[ "Apache-2.0" ]
16
2020-06-26T17:43:38.000Z
2022-03-03T14:16:02.000Z
qmctorch/utils/plot_data.py
NLESC-JCER/QMCTorch
c56472cd3e9cc59f2e01a880e674b7270d2cdc2b
[ "Apache-2.0" ]
57
2020-05-01T07:13:49.000Z
2021-07-13T19:51:55.000Z
qmctorch/utils/plot_data.py
NLESC-JCER/QMCTorch
c56472cd3e9cc59f2e01a880e674b7270d2cdc2b
[ "Apache-2.0" ]
3
2020-07-30T09:56:04.000Z
2021-08-12T02:55:45.000Z
import matplotlib.pyplot as plt import numpy as np from matplotlib import cm from .stat_utils import (blocking, correlation_coefficient, fit_correlation_coefficient, integrated_autocorrelation_time) def plot_energy(local_energy, e0=None, show_variance=False): """Plot the evolution of the energy Args: ...
27.786517
102
0.598868
import matplotlib.pyplot as plt import numpy as np from matplotlib import cm from .stat_utils import (blocking, correlation_coefficient, fit_correlation_coefficient, integrated_autocorrelation_time) def plot_energy(local_energy, e0=None, show_variance=False): """...
0
0
0
0
0
0
0
50
0
76771ee2e361626ab54ae60fd42c73d9961a2862
1,170
py
Python
cpy.py
iamcarlosmunoz/cpy
3e22a6a439a0b6366a8460cdbb367540503f1fb2
[ "MIT" ]
null
null
null
cpy.py
iamcarlosmunoz/cpy
3e22a6a439a0b6366a8460cdbb367540503f1fb2
[ "MIT" ]
null
null
null
cpy.py
iamcarlosmunoz/cpy
3e22a6a439a0b6366a8460cdbb367540503f1fb2
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
22.075472
59
0.6
import argparse from pathlib import Path from sys import stderr class CpError(Exception): pass def copy_directory(src: Path, dest: Path): print("cp directory") def copy_file(src: Path, dest: Path): if dest.is_dir(): dest = dest / src.name if dest.is_file(): raise CpError(f"Cannot over...
0
0
0
13
0
908
0
-2
204
2d180fc40d82c6d817e3c7eab6676d36e463e941
2,953
py
Python
py_tutorials/classes.py
CylonOven/squish
2bab13ee581c26e7a0065d69a33186a0a7a01b21
[ "MIT" ]
null
null
null
py_tutorials/classes.py
CylonOven/squish
2bab13ee581c26e7a0065d69a33186a0a7a01b21
[ "MIT" ]
null
null
null
py_tutorials/classes.py
CylonOven/squish
2bab13ee581c26e7a0065d69a33186a0a7a01b21
[ "MIT" ]
null
null
null
f = Foo("Indrek") f.hello() #hello Indrek g = Foo("Ginger") g.hello() #hello Ginger g.class_value == f.class_value print(g.name) #ginger print(f.name) #Indrek #True Foo("lel","Y",#is assigned to the kword parameter y in the __init__ 1,2,3,4,5,6,7,"lel", #These are assigned to args, args is a tuple or list or som...
41.591549
191
0.651879
class Foo(): class_value = "class Value that is the same across all instances" def __init__(self, name, y = "default value, this is a kwarg", *args, **kws): """ init method, called when creating the instance of the class""" self.instance_value = "self is the isntance of the class" y = y ...
0
675
0
1,595
0
0
0
0
22
d6c7c52e2f32739e1a6494380c2414dafa4919a7
1,728
py
Python
3dUsing.py
erfanzar/AR-ML-FOR-REPLACEING
e3f0a32203b8b97f889e6f0e948261114df5aa54
[ "MIT" ]
1
2022-03-16T09:05:28.000Z
2022-03-16T09:05:28.000Z
3dUsing.py
erfanzar/AR-ML-FOR-REPLACEING
e3f0a32203b8b97f889e6f0e948261114df5aa54
[ "MIT" ]
null
null
null
3dUsing.py
erfanzar/AR-ML-FOR-REPLACEING
e3f0a32203b8b97f889e6f0e948261114df5aa54
[ "MIT" ]
null
null
null
from curses import window # from slt import mesh import glfw # ym = mesh.Mesh.from_file('somefile.stl') # data = np.zeros(100 , dtype=mesh.Mesh.dtype) # ym = mesh.Mesh(data,remove_empty_areas=False) if not glfw.init(): raise Exception("GLFW Can not pass initation's") windows = glfw.create_window(1270,780,'...
30.315789
80
0.756944
from curses import window from sklearn import exceptions import slt # from slt import mesh import numpy as np import glfw # ym = mesh.Mesh.from_file('somefile.stl') # data = np.zeros(100 , dtype=mesh.Mesh.dtype) # ym = mesh.Mesh(data,remove_empty_areas=False) if not glfw.init(): raise Exception("GLFW Can no...
0
0
0
0
0
0
0
-5
67
7eddf78dd43680c705659f1816a307f223c4d35b
1,286
py
Python
tests/formats/test_coinbasettr.py
robertkarl/yabc
400957bcc500d364dc86b2ef41c5f65da82efbdc
[ "MIT" ]
14
2019-08-13T20:06:50.000Z
2021-07-05T06:41:36.000Z
tests/formats/test_coinbasettr.py
robertkarl/yabc
400957bcc500d364dc86b2ef41c5f65da82efbdc
[ "MIT" ]
15
2019-04-18T22:33:20.000Z
2020-01-30T01:35:27.000Z
tests/formats/test_coinbasettr.py
robertkarl/yabc
400957bcc500d364dc86b2ef41c5f65da82efbdc
[ "MIT" ]
null
null
null
""" Simple check that we can parse data from TaxTransactionReport files. """ # Copyright (c) 2019. Robert Karl. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root for license information.
35.722222
91
0.658631
""" Simple check that we can parse data from TaxTransactionReport files. """ # Copyright (c) 2019. Robert Karl. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root for license information. import unittest from yabc import transaction from yabc.formats import coinbasettr class Co...
0
0
0
952
0
0
0
16
91
d74b5589a03f6a2f3daa4ab0ac86764c9894455a
1,209
py
Python
migrations/versions/7508b84b248e_add_toast_and_bananas.py
reed-only/flask_app
52010732478d4faa9318a7d76cbf2802671e8378
[ "MIT" ]
2
2017-12-17T19:55:16.000Z
2018-01-13T01:00:16.000Z
migrations/versions/7508b84b248e_add_toast_and_bananas.py
reed-only/flask_app
52010732478d4faa9318a7d76cbf2802671e8378
[ "MIT" ]
null
null
null
migrations/versions/7508b84b248e_add_toast_and_bananas.py
reed-only/flask_app
52010732478d4faa9318a7d76cbf2802671e8378
[ "MIT" ]
null
null
null
"""Add toast and bananas Revision ID: 7508b84b248e Revises: Create Date: 2018-01-28 01:21:05.577259 """ # revision identifiers, used by Alembic. revision = '7508b84b248e' down_revision = None branch_labels = None depends_on = None
24.673469
69
0.612076
"""Add toast and bananas Revision ID: 7508b84b248e Revises: Create Date: 2018-01-28 01:21:05.577259 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7508b84b248e' down_revision = None branch_labels = None depends_on = None def upgrade(): op.create_table(...
0
0
0
0
0
878
0
3
90
887e27050a8e9f8ca52a0b80ff1075673320194a
3,685
py
Python
mobile/models.py
hyperoslo/django-mobile
7ce65c51b45c167d096021852ce8f367732eb754
[ "MIT" ]
3
2016-10-04T08:03:26.000Z
2017-06-30T10:25:35.000Z
mobile/models.py
hyperoslo/django-mobile
7ce65c51b45c167d096021852ce8f367732eb754
[ "MIT" ]
1
2021-04-30T09:51:29.000Z
2021-04-30T09:51:29.000Z
mobile/models.py
hyperoslo/django-mobile
7ce65c51b45c167d096021852ce8f367732eb754
[ "MIT" ]
2
2016-10-04T08:03:28.000Z
2017-09-21T02:12:56.000Z
# encoding: utf-8
34.12037
84
0.67517
# encoding: utf-8 from django.db import models from backends import backend from settings import DEFAULT_INTERNATIONAL_PREFIX, SHORT_CODE class OutgoingSMS(models.Model): recipient = models.CharField('mottaker', max_length=255) sender = models.CharField('avsender', max_length=255, default=SHORT_CODE) me...
2
0
0
3,448
0
0
0
54
160
46dfeb04aff11d56c4e5f14d7d933a6e43bd65d5
19,866
py
Python
canvassyncer/__main__.py
yihuajack/Canvas-Syncer
31ef3358e69f80787a77a9c360791b0ee47df8cc
[ "MIT" ]
null
null
null
canvassyncer/__main__.py
yihuajack/Canvas-Syncer
31ef3358e69f80787a77a9c360791b0ee47df8cc
[ "MIT" ]
null
null
null
canvassyncer/__main__.py
yihuajack/Canvas-Syncer
31ef3358e69f80787a77a9c360791b0ee47df8cc
[ "MIT" ]
null
null
null
import os import requests from functools import partial __version__ = "1.2.9" CONFIG_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".canvassyncer.json") MAX_DOWNLOAD_COUNT = 8 _sentinel = object() print = partial(print, flush=True) if __name__ == "__main__": run(...
38.574757
141
0.52245
import argparse import json import os import re import traceback import requests import requests.exceptions import threading import time import urllib3.exceptions from datetime import timezone, datetime from functools import partial from queue import Queue from requests.adapters import HTTPAdapter from threading import...
0
63
0
14,530
0
4,514
0
15
422
0cd23feb2e45604be436049640a0db6ebe094ce6
311
py
Python
app/home/views/mall.py
ThanlonSmith/computer-bysj
760005980f1fb8f83ca369ae40061ec38f5058ef
[ "Apache-2.0" ]
1
2019-10-20T16:22:49.000Z
2019-10-20T16:22:49.000Z
app/home/views/mall.py
ThanlonSmith/computer-bysj
760005980f1fb8f83ca369ae40061ec38f5058ef
[ "Apache-2.0" ]
1
2021-09-29T17:42:36.000Z
2021-09-29T17:42:36.000Z
app/home/views/mall.py
ThanlonSmith/computer-bysj
760005980f1fb8f83ca369ae40061ec38f5058ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/10/24 5:31 # @Author : Thanlon # @Wechat18512152005 # @Email : thanlon@sina.com # @File : mall.py # @Software: PyCharm from .. import home_bp
25.916667
45
0.662379
# -*- coding: utf-8 -*- # @Time : 2019/10/24 下午5:31 # @Author : Thanlon # @Wechat:18512152005 # @Email : thanlon@sina.com # @File : mall.py # @Software: PyCharm from .. import home_bp from flask import render_template @home_bp.route('/v1/mall') def mall(): return render_template('/home/mall.html')
9
63
0
0
0
0
0
12
44
d165686e8d91336e018a62e806ac028898dce8b0
1,639
py
Python
TiltBrushConverter.py
queenvictoria/TiltBrushConverter
e90bf0b8e388a411b4448e8965bdaf3ec446bc8b
[ "Apache-2.0" ]
39
2016-04-23T18:20:06.000Z
2022-01-05T07:18:51.000Z
TiltBrushConverter.py
queenvictoria/TiltBrushConverter
e90bf0b8e388a411b4448e8965bdaf3ec446bc8b
[ "Apache-2.0" ]
2
2016-06-17T18:50:45.000Z
2021-03-14T19:58:50.000Z
TiltBrushConverter.py
queenvictoria/TiltBrushConverter
e90bf0b8e388a411b4448e8965bdaf3ec446bc8b
[ "Apache-2.0" ]
9
2016-05-06T06:28:12.000Z
2022-01-05T07:19:09.000Z
if __name__ == '__main__': main()
32.78
106
0.672971
from PySide import QtGui, QtCore import sys class ConversionTypeSelection(QtGui.QWidget): def __init__(self): super(ConversionTypeSelection, self).__init__() self.setWindowTitle('Tilt Brush Converter') self.setWindowFlags(QtCore.Qt.Window | QtCore.Qt.WindowTitleHint | QtCore.Qt.CustomizeWin...
0
0
0
1,392
0
117
0
0
90
b404f817fb64d0dbdbce0d13b10b504b8a4e3ba7
2,268
py
Python
Primitive Root/Primitive-Root.py
TanmoySG/RSA-Algorithm
cba1b4ba8e96c6eb1bd67097e47ed7763185fb63
[ "MIT" ]
3
2020-05-05T11:07:08.000Z
2021-11-03T13:19:05.000Z
Primitive Root/Primitive-Root.py
TanmoySG/RSA-Algorithm
cba1b4ba8e96c6eb1bd67097e47ed7763185fb63
[ "MIT" ]
1
2022-03-12T18:13:12.000Z
2022-03-12T18:13:12.000Z
Primitive Root/Primitive-Root.py
TanmoySG/RSA-Algorithm
cba1b4ba8e96c6eb1bd67097e47ed7763185fb63
[ "MIT" ]
1
2020-10-01T01:19:39.000Z
2020-10-01T01:19:39.000Z
#!/usr/bin/env python # coding: utf-8 # # Primitive Roots # ## About # In modular arithmetic, a branch of number theory, a number g is a primitive root modulo n if every number a coprime to n is congruent to a power of g modulo n. That is, g is a primitive root modulo n if for every integer a coprime to n, there is ...
33.850746
297
0.522928
#!/usr/bin/env python # coding: utf-8 # # Primitive Roots # ## About # In modular arithmetic, a branch of number theory, a number g is a primitive root modulo n if every number a coprime to n is congruent to a power of g modulo n. That is, g is a primitive root modulo n if for every integer a coprime to n, there is ...
3
0
0
0
0
1,100
0
0
68
86266f191b48ea0ed32321a5b2fb5eb094b6a5af
13,305
py
Python
mlhub/constants.py
JingjingShii/mlhub
6d15b98d08eadc36728fc2e65cd73d92249b53ee
[ "MIT" ]
null
null
null
mlhub/constants.py
JingjingShii/mlhub
6d15b98d08eadc36728fc2e65cd73d92249b53ee
[ "MIT" ]
null
null
null
mlhub/constants.py
JingjingShii/mlhub
6d15b98d08eadc36728fc2e65cd73d92249b53ee
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # mlhub - Machine Learning Model Repository # # A command line tool for managing machine learning models. # # Copyright 2018 (c) Graham.Williams@togaware.com All rights reserved. # # This file is part of mlhub. # # MIT License # # Permission is hereby granted, free of charge, to any person obtainin...
34.738903
95
0.534837
#!/usr/bin/python3 # # mlhub - Machine Learning Model Repository # # A command line tool for managing machine learning models. # # Copyright 2018 (c) Graham.Williams@togaware.com All rights reserved. # # This file is part of mlhub. # # MIT License # # Permission is hereby granted, free of charge, to any person obtainin...
0
0
0
0
0
0
0
0
0
d2d115923b6a2452be9277904e92cf5fd108eaf7
4,616
py
Python
FictionTools/amitools/amitools/rom/romsplitter.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
FictionTools/amitools/amitools/rom/romsplitter.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
FictionTools/amitools/amitools/rom/romsplitter.py
polluks/Puddle-BuildTools
c1762d53a33002b62d8cffe3db129505a387bec3
[ "BSD-2-Clause" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
import amitools.util.DataDir as DataDir
32.737589
85
0.569757
import fnmatch import struct from . import kickrom from . import remusfile import amitools.util.DataDir as DataDir from amitools.binfmt.BinImage import ( BinImage, Segment, Relocations, Reloc, BIN_IMAGE_TYPE_HUNK, SEGMENT_TYPE_CODE, ) class RomSplitter: def __init__(self, split_data_path=...
0
0
0
4,332
0
0
0
109
134
6070792adf444fdd211d04ec96ffd15c660b0a97
610
py
Python
tests/unit/test_eval.py
YounessDataV/batch9_dyslexia
ec40ac0b79e7269ddc543e55ddc7a241ca313524
[ "MIT" ]
null
null
null
tests/unit/test_eval.py
YounessDataV/batch9_dyslexia
ec40ac0b79e7269ddc543e55ddc7a241ca313524
[ "MIT" ]
null
null
null
tests/unit/test_eval.py
YounessDataV/batch9_dyslexia
ec40ac0b79e7269ddc543e55ddc7a241ca313524
[ "MIT" ]
null
null
null
from pathlib import Path test_path = Path(__file__).resolve().parents[1]
26.521739
72
0.719672
from pathlib import Path from dyslexia.eval.eval_utils import eval_txt_file, eval_folder test_path = Path(__file__).resolve().parents[1] def test_eval_txt_file(): truth_path = test_path / "data" / "truth" / "example1.txt" hypothesis_path = test_path / "data" / "hypothesis" / "example1.txt" eval_dict = e...
0
0
0
0
0
424
0
42
68
4e0a4fe22dc14973b5faaa54873b0aa70f241f55
56,655
py
Python
inventory/inventory/doctype/packing_list_delivery/packing_list_delivery.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
inventory/inventory/doctype/packing_list_delivery/packing_list_delivery.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
inventory/inventory/doctype/packing_list_delivery/packing_list_delivery.py
riconova92/inventory
7cc4f49bda31f802af36ee4ea6eb43092b5094a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Myme and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe form_grid_templates = { "packing_list_data": "templates/includes/packing_list_delivery.html" }
28.200597
213
0.647145
# -*- coding: utf-8 -*- # Copyright (c) 2015, Myme and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import msgprint import frappe.utils from frappe.utils import cstr, flt, getdate, comma_and,...
0
34,026
0
21,871
0
0
0
82
385
77bf9ea1d6cb72de8a24444e4d2df6ffeb63c968
2,680
py
Python
tests/test_userlist.py
domdfcoding/domdf_python_tools
eb15c744eac3005e13fae8d8a5582e955137cf22
[ "MIT" ]
null
null
null
tests/test_userlist.py
domdfcoding/domdf_python_tools
eb15c744eac3005e13fae8d8a5582e955137cf22
[ "MIT" ]
57
2020-06-16T15:48:20.000Z
2022-03-31T08:35:09.000Z
tests/test_userlist.py
domdfcoding/domdf_python_tools
eb15c744eac3005e13fae8d8a5582e955137cf22
[ "MIT" ]
null
null
null
# From https://raw.githubusercontent.com/python/cpython/master/Lib/test/test_userlist.py # Licensed under the Python Software Foundation License Version 2. # Copyright 2001-2020 Python Software Foundation. All rights reserved. # Copyright 2000 BeOpen.com. All rights reserved. # Copyright 1995-2000 Corporation ...
24.144144
92
0.640299
# From https://raw.githubusercontent.com/python/cpython/master/Lib/test/test_userlist.py # Licensed under the Python Software Foundation License Version 2. # Copyright © 2001-2020 Python Software Foundation. All rights reserved. # Copyright © 2000 BeOpen.com. All rights reserved. # Copyright © 1995-2000 Corporati...
8
511
0
1,373
0
0
0
87
157
2ebb11454142af6917f148ceec5577b6caee3a2c
3,761
py
Python
scripts/slideshow.py
horoshenkih/harbour-space-text-mining-course
d10ce5ad6f9326013905213301ee574dd1403bcb
[ "MIT" ]
2
2020-05-18T15:18:16.000Z
2022-03-14T04:19:08.000Z
scripts/slideshow.py
horoshenkih/harbour-space-text-mining-course
d10ce5ad6f9326013905213301ee574dd1403bcb
[ "MIT" ]
6
2020-11-13T18:45:49.000Z
2022-02-14T19:10:39.000Z
scripts/slideshow.py
horoshenkih/harbour-space-text-mining-course
d10ce5ad6f9326013905213301ee574dd1403bcb
[ "MIT" ]
1
2020-06-05T16:36:39.000Z
2020-06-05T16:36:39.000Z
from nbconvert.preprocessors import TagRemovePreprocessor import re PY_CODE_REGEX = re.compile(r'^#@slideshow\s+(.+)$') MARKDOWN_CODE_REGEX = re.compile(r'^<!--@slideshow\s+(.+)-->$') ALLOWED_SLIDE_TYPES = "slide subslide fragment skip notes".split() TagRemovePreprocessor.enabled = True TagRemovePreprocessor.remove...
39.589474
127
0.613932
from argparse import ArgumentParser import json import os import sys import shutil import tempfile from nbconvert.nbconvertapp import NbConvertApp from nbconvert.preprocessors import TagRemovePreprocessor from nbconvert.exporters import TemplateExporter import re PY_CODE_REGEX = re.compile(r'^#@slideshow\s+(.+)$') MAR...
0
0
0
169
0
2,892
0
20
222
cf3d4691d7788d99db5d81191a150dab38a0b68a
1,675
py
Python
alsa/crack_maths.py
nialov/ALSA
65204bb43bba03daf600de9ed4825c4602ea73af
[ "MIT" ]
null
null
null
alsa/crack_maths.py
nialov/ALSA
65204bb43bba03daf600de9ed4825c4602ea73af
[ "MIT" ]
null
null
null
alsa/crack_maths.py
nialov/ALSA
65204bb43bba03daf600de9ed4825c4602ea73af
[ "MIT" ]
null
null
null
""" Mathematical utilities. """ def linear_converter(orig_range, new_range, ignore_errors=False): """ Return a function that converts points within orig_range to points in new_range. """ assert ( len(orig_range) == 2 ), f"argument orig_range must be a list-like with len 2. Was given {len(o...
29.385965
89
0.578507
""" Mathematical utilities. """ import numpy as np def linear_converter(orig_range, new_range, ignore_errors=False): """ Return a function that converts points within orig_range to points in new_range. """ assert ( len(orig_range) == 2 ), f"argument orig_range must be a list-like with len ...
0
0
0
0
468
376
0
-3
72
7d558ba1d9db46906979c04d344b71794530234d
149
py
Python
server/utility/save_log.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
1
2016-07-14T14:45:56.000Z
2016-07-14T14:45:56.000Z
server/utility/save_log.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
server/utility/save_log.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
import sys from ext.debugger.elt.logger import LogClient c = LogClient(connect=True) if len(sys.argv) > 1: c.log_dir = sys.argv[1] c.save_log()
18.625
45
0.718121
import sys from ext.debugger.elt.logger import LogClient c = LogClient(connect=True) if len(sys.argv) > 1: c.log_dir = sys.argv[1] c.save_log()
0
0
0
0
0
0
0
0
0
9e98ee1d189d7969eb1c5af1c5a90bced1c74bae
21,060
py
Python
util/util.py
wswdx/C2F-FWN
967ef386e062beb3166cd7b1884212ad5804ef24
[ "MIT" ]
39
2020-12-17T02:20:47.000Z
2022-02-07T12:47:04.000Z
util/util.py
wswdx/C2F-FWN
967ef386e062beb3166cd7b1884212ad5804ef24
[ "MIT" ]
8
2020-12-30T16:39:13.000Z
2021-03-01T03:57:25.000Z
util/util.py
wswdx/C2F-FWN
967ef386e062beb3166cd7b1884212ad5804ef24
[ "MIT" ]
7
2020-12-20T23:03:51.000Z
2022-03-05T11:19:35.000Z
from __future__ import print_function import numpy as np from PIL import Image # Converts a Tensor into a Numpy array # |imtype|: the desired type of the converted numpy array def uint82bin(n, count=8): """returns the binary of integer n, count refers to amount of bits""" return ''.join([str((n >> y) & 1) for...
46.696231
352
0.622887
from __future__ import print_function import torch import numpy as np from PIL import Image import inspect, re import numpy as np import os import collections from PIL import Image import cv2 from collections import OrderedDict import flowiz as fz def save_all_tensors_cloth(opt, real_input_1, real_input_2, fg_tps, fg_...
0
0
0
577
0
19,528
0
-29
634
c371a55aa70eb2d6a6e6277f8270955709c8f554
117
py
Python
test_git01.py
sclee200/rapa_detect_line
d12696fb57396a0e8434ac7af2fdc14b91d2e8d2
[ "Apache-2.0" ]
null
null
null
test_git01.py
sclee200/rapa_detect_line
d12696fb57396a0e8434ac7af2fdc14b91d2e8d2
[ "Apache-2.0" ]
null
null
null
test_git01.py
sclee200/rapa_detect_line
d12696fb57396a0e8434ac7af2fdc14b91d2e8d2
[ "Apache-2.0" ]
null
null
null
import os os.getcwd() print('line5') print('line6') print('line7') print('Line 7') print('Line 8') print('line9')
9.75
15
0.649573
import os os.getcwd() print('line5') print('line6') print('line7') print('Line 7') print('Line 8') print('line9')
0
0
0
0
0
0
0
0
0
9618402faa79a32783c54ae331e8ab5916c90e77
776
py
Python
Exercicios/EX018.py
rodrigojleandro/PYTHON
6fc49693576398d4e97f5695788939f8c50deb2a
[ "MIT" ]
null
null
null
Exercicios/EX018.py
rodrigojleandro/PYTHON
6fc49693576398d4e97f5695788939f8c50deb2a
[ "MIT" ]
null
null
null
Exercicios/EX018.py
rodrigojleandro/PYTHON
6fc49693576398d4e97f5695788939f8c50deb2a
[ "MIT" ]
null
null
null
############################################################################################################### # DESAFIO: 018 # TTULO: Seno, cosseno e tangente # AULA: 08 # EXERCCIO: Faa um programa que leia um ngulo qualquer e mostre na tela o valor do seno, cosseno e tangente # desse ngulo. ######################...
33.73913
111
0.485825
############################################################################################################### # DESAFIO: 018 # TÍTULO: Seno, cosseno e tangente # AULA: 08 # EXERCÍCIO: Faça um programa que leia um ângulo qualquer e mostre na tela o valor do seno, cosseno e tangente # desse ângulo. #################...
18
0
0
0
0
0
0
0
0
52ae08780314f9c63203d1eb7f10df4304ceac19
1,251
py
Python
loaders/seattle_label_generate_script.py
jaehobang/cs7643_project
7ec3d1934fc462ba230bd0615c939e7de00dc10c
[ "Apache-2.0" ]
null
null
null
loaders/seattle_label_generate_script.py
jaehobang/cs7643_project
7ec3d1934fc462ba230bd0615c939e7de00dc10c
[ "Apache-2.0" ]
null
null
null
loaders/seattle_label_generate_script.py
jaehobang/cs7643_project
7ec3d1934fc462ba230bd0615c939e7de00dc10c
[ "Apache-2.0" ]
null
null
null
""" Script to generate annotations for SEATTLE """ import sys sys.argv=[''] ## note ada-03 is '/nethome/jbang36/eva_jaeho' ## ada-01 is '/nethome/jbang36/eva_storage' sys.path.append('/nethome/jbang36/eva_jaeho') sys.path.append('/nethome/jbang36/eva_storage') import time #import utils.helpers as helpers from...
27.8
89
0.804157
""" Script to generate annotations for SEATTLE """ import os import sys sys.argv=[''] ## note ada-03 is '/nethome/jbang36/eva_jaeho' ## ada-01 is '/nethome/jbang36/eva_storage' sys.path.append('/nethome/jbang36/eva_jaeho') sys.path.append('/nethome/jbang36/eva_storage') import time import numpy as np #import...
0
0
0
0
0
0
0
151
200
cec3532b09238c621ef90f5e3a0705777fd39354
9,228
py
Python
apps/shop/models.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
apps/shop/models.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
7
2020-06-05T23:36:01.000Z
2022-01-13T01:42:07.000Z
apps/shop/models.py
asmuratbek/oobamarket
1053976a13ea84b9aabfcbbcbcffd79549ce9538
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from django.db.models.signals import post_save # Create your models here. SOCIAL_LINKS = ( ('facebook', u'Facebook.com'), ('vk', u'Vk.com'), ('ok', u'Odnoklassniki.ru'), ('instagram', u'Instagram.com') ) DAYS = ( ('monday', ""), ('tuesday...
37.209677
110
0.695817
# coding=utf-8 from __future__ import unicode_literals from ckeditor_uploader.fields import RichTextUploadingField from django.core.mail import send_mail from django.db import models from django.db.models.signals import post_save from django.urls import reverse from django.utils.translation import ugettext as _ from sl...
1,032
0
0
7,412
0
122
0
243
382
6cbaf5f8e16ab1eeb5700f5fc50b1dd4c706489f
3,036
py
Python
src/py/wxyz_datagrid/src/wxyz/datagrid/widget_stylegrid.py
dfreeman06/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
1
2021-06-20T12:21:27.000Z
2021-06-20T12:21:27.000Z
src/py/wxyz_datagrid/src/wxyz/datagrid/widget_stylegrid.py
nrbgt/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
null
null
null
src/py/wxyz_datagrid/src/wxyz/datagrid/widget_stylegrid.py
nrbgt/wxyz
663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd
[ "BSD-3-Clause" ]
null
null
null
""" A styled grid """ # pylint: disable=R0903,C0103,W0703,R0901
31.625
80
0.699934
""" A styled grid """ # pylint: disable=R0903,C0103,W0703,R0901 from wxyz.core.base import T, W, WXYZBase from wxyz.html.widget_color import AlphaColor, EmptyAlphaColor from ._version import module_name, module_version from .widget_datagrid import DataGrid @W.register class CellRenderer(WXYZBase): """ [0.1.6]/ce...
0
2,658
0
0
0
0
0
105
204
95940c8812ffa710770ed4608653c897b01ae097
206
py
Python
api/admin.py
AktanKasymaliev/hacker_news
c970d194d1a8219cdbd67368bf5991babeb5f6ce
[ "MIT" ]
null
null
null
api/admin.py
AktanKasymaliev/hacker_news
c970d194d1a8219cdbd67368bf5991babeb5f6ce
[ "MIT" ]
null
null
null
api/admin.py
AktanKasymaliev/hacker_news
c970d194d1a8219cdbd67368bf5991babeb5f6ce
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. admin.site.register(Post) admin.site.register(UpvotePost) admin.site.register(Comment) admin.site.register(ReplyComment)
22.888889
33
0.81068
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Post) admin.site.register(UpvotePost) admin.site.register(Comment) admin.site.register(ReplyComment)
0
0
0
0
0
0
0
0
22
43a8eec28a2774ccf488c91d1331635523bdf00d
4,628
py
Python
src/pyams_file/interfaces/__init__.py
Py-AMS/pyams-file
a5155791787ba38e221896e9ce7d33177ae8a05b
[ "ZPL-2.1" ]
null
null
null
src/pyams_file/interfaces/__init__.py
Py-AMS/pyams-file
a5155791787ba38e221896e9ce7d33177ae8a05b
[ "ZPL-2.1" ]
null
null
null
src/pyams_file/interfaces/__init__.py
Py-AMS/pyams-file
a5155791787ba38e221896e9ce7d33177ae8a05b
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # 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. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
28.745342
98
0.670484
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # 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. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
0
87
0
3,149
0
0
0
197
434
1958cadd795dfe40f593aa359f0329a228fbbfea
4,007
py
Python
scopetools/star.py
SingleronBio/SCOPE-tools
b2552c9e04b1a86d9d8610f670cc33622545d6f9
[ "Apache-2.0" ]
14
2020-05-26T03:48:32.000Z
2021-07-14T03:55:54.000Z
scopetools/star.py
SingleronBio/CeleScope
b2552c9e04b1a86d9d8610f670cc33622545d6f9
[ "Apache-2.0" ]
2
2020-06-22T12:44:13.000Z
2020-06-28T04:41:52.000Z
scopetools/star.py
SingleronBio/CeleScope
b2552c9e04b1a86d9d8610f670cc33622545d6f9
[ "Apache-2.0" ]
2
2020-06-23T07:15:14.000Z
2020-08-01T07:23:34.000Z
# -*- coding: utf-8 -*- from .utils import getlogger logger = getlogger(__name__) logger.setLevel(10)
45.022472
224
0.639381
# -*- coding: utf-8 -*- import sys import re from .report import Reporter from .utils import getlogger, CommandWrapper logger = getlogger(__name__) logger.setLevel(10) class STARLogger(object): def __init__(self, star_log, picard_log, sample): self.star_log = star_log self.picard_log = picard_lo...
0
0
0
2,150
0
1,639
0
0
113
0f1f3d5c04b4667c7680c2b47c990de451eeec67
366
py
Python
setup.py
satyanshukla/Deep4Cast
52d41f82f1b9ac3c7417ffbfabc32cc9d8505bfb
[ "BSD-3-Clause" ]
null
null
null
setup.py
satyanshukla/Deep4Cast
52d41f82f1b9ac3c7417ffbfabc32cc9d8505bfb
[ "BSD-3-Clause" ]
null
null
null
setup.py
satyanshukla/Deep4Cast
52d41f82f1b9ac3c7417ffbfabc32cc9d8505bfb
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup( name='deep4cast', version='0.1b', description='package for forecasting and anomaly detection using deep learning', url='https://github.com/MSRDL/Deep4Cat', author='Microsoft', author_email='ktran@microsoft.com', license='BSD', packages=['deep4cast'], ...
24.4
84
0.685792
from setuptools import setup setup( name='deep4cast', version='0.1b', description='package for forecasting and anomaly detection using deep learning', url='https://github.com/MSRDL/Deep4Cat', author='Microsoft', author_email='ktran@microsoft.com', license='BSD', packages=['deep4cast'], ...
0
0
0
0
0
0
0
0
0
af4beb91e2fd55a96d1ac1a8af129086523d7b2f
3,190
py
Python
mrisc32-trace-tool.py
mrisc32/mrisc32-simulator
7b80e0ee34232fe06a142711a1972545be962e39
[ "Zlib" ]
null
null
null
mrisc32-trace-tool.py
mrisc32/mrisc32-simulator
7b80e0ee34232fe06a142711a1972545be962e39
[ "Zlib" ]
10
2021-01-10T10:55:21.000Z
2022-01-12T20:33:56.000Z
mrisc32-trace-tool.py
mrisc32/mrisc32-simulator
7b80e0ee34232fe06a142711a1972545be962e39
[ "Zlib" ]
1
2021-07-15T13:43:36.000Z
2021-07-15T13:43:36.000Z
#!/usr/bin/env python3 # -*- mode: python; tab-width: 4; indent-tabs-mode: nil; -*- # ------------------------------------------------------------------------------------------------- # Copyright (c) 2019 Marcus Geelnard # # This software is provided 'as-is', without any express or implied warranty. In no event will th...
37.97619
105
0.566144
#!/usr/bin/env python3 # -*- mode: python; tab-width: 4; indent-tabs-mode: nil; -*- # ------------------------------------------------------------------------------------------------- # Copyright (c) 2019 Marcus Geelnard # # This software is provided 'as-is', without any express or implied warranty. In no event will th...
0
0
0
0
0
1,714
0
-14
114
4e1b53233fb6f1f82b99520ac5fa4c052ee5114a
573
py
Python
python/02-strings/11-capitalize.py
atalaydev/hacker-rank
494f1cd1f4e299f6b622afe2c1b338ad82dd5d29
[ "MIT" ]
null
null
null
python/02-strings/11-capitalize.py
atalaydev/hacker-rank
494f1cd1f4e299f6b622afe2c1b338ad82dd5d29
[ "MIT" ]
null
null
null
python/02-strings/11-capitalize.py
atalaydev/hacker-rank
494f1cd1f4e299f6b622afe2c1b338ad82dd5d29
[ "MIT" ]
null
null
null
#!/bin/python3 import os # Complete the solve function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') s = input() result = solve(s) fptr.write(result + '\n') fptr.close()
17.90625
61
0.558464
#!/bin/python3 import math import os import random import re import sys def iterate(i): for value in i: try: if value[0].isalpha(): yield value.capitalize() else: yield value except Exception: yield value # Complete the solve f...
0
0
0
0
199
54
0
-41
134
6d28779197892790ad3f6007fab950e37e82b7fb
2,418
py
Python
python/dpmmSampler.py
jstraub/dpMM
538c432d5f98c040d5c1adb072e545e38f97fc69
[ "MIT-feh" ]
11
2015-04-27T15:14:01.000Z
2021-11-18T00:19:18.000Z
python/dpmmSampler.py
jstraub/dpMM
538c432d5f98c040d5c1adb072e545e38f97fc69
[ "MIT-feh" ]
null
null
null
python/dpmmSampler.py
jstraub/dpMM
538c432d5f98c040d5c1adb072e545e38f97fc69
[ "MIT-feh" ]
6
2015-07-02T12:46:20.000Z
2022-03-30T04:39:30.000Z
# Copyright (c) 2015, Julian Straub <jstraub@csail.mit.edu> # Licensed under the MIT license. See the license file LICENSE. import numpy as np import subprocess as subp import matplotlib.pyplot as plt import re, argparse, os parser = argparse.ArgumentParser(description = 'DpMM sampler') parser.add_argument('-i','--i...
31.815789
159
0.664599
# Copyright (c) 2015, Julian Straub <jstraub@csail.mit.edu> # Licensed under the MIT license. See the license file LICENSE. import numpy as np import subprocess as subp import matplotlib.pyplot as plt import re, argparse, os parser = argparse.ArgumentParser(description = 'DpMM sampler') parser.add_argument('-i','--i...
0
0
0
0
0
0
0
0
0
2209b8f35aa4b81806a8017df2f71942f3c1a87a
814
py
Python
indexer/delete.py
roysmith/wp-search-tools
a51b6c372f8e2199f3e5f589341e0c0ee218b596
[ "MIT" ]
null
null
null
indexer/delete.py
roysmith/wp-search-tools
a51b6c372f8e2199f3e5f589341e0c0ee218b596
[ "MIT" ]
1
2022-01-21T23:57:25.000Z
2022-01-21T23:57:25.000Z
indexer/delete.py
roysmith/wp-search-tools
a51b6c372f8e2199f3e5f589341e0c0ee218b596
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from configparser import ConfigParser import os from pathlib import Path from opensearchpy import OpenSearch config = ConfigParser() config.read(Path.home() / '.elasticsearch.ini') config.read(Path(os.environ['SEARCH_TOOLS']) / 'wp_search_tools/indexer/config.ini') user = config.get('elastic...
29.071429
84
0.751843
#!/usr/bin/env python3 from configparser import ConfigParser import os from pathlib import Path from opensearchpy import OpenSearch config = ConfigParser() config.read(Path.home() / '.elasticsearch.ini') config.read(Path(os.environ['SEARCH_TOOLS']) / 'wp_search_tools/indexer/config.ini') user = config.get('elastic...
0
0
0
0
0
0
0
0
0
598423c57a7778ec5d5d1e8307f4ead9de633ae2
2,996
py
Python
backend/routers/users.py
mezgoodle/meziblog
ce5bf18a0af34d3350862d5ece658cce7a992fcd
[ "MIT" ]
1
2022-03-02T10:24:55.000Z
2022-03-02T10:24:55.000Z
backend/routers/users.py
mezgoodle/meziblog
ce5bf18a0af34d3350862d5ece658cce7a992fcd
[ "MIT" ]
7
2022-02-28T14:53:19.000Z
2022-03-17T12:27:26.000Z
backend/routers/users.py
mezgoodle/meziblog
ce5bf18a0af34d3350862d5ece658cce7a992fcd
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter(prefix="/user", tags=["users"])
30.571429
85
0.726302
from fastapi import APIRouter, HTTPException, Depends, Query, status from sqlmodel import Session from pydantic import EmailStr from database import UserRead, UserUpdate, get_session, User from config import ADMINS_EMAILS from oauth import get_current_user from crud.operations import ( get_objects, get_object...
0
2,437
0
0
0
0
0
199
272
2f9ab892a2ae757550780ec237a0b3022ab73a5a
12,412
py
Python
script/srt2bilibili.py
damahan/fuckbilibili.github.io
285c7e12469622091d23077a4bed79d40851eff2
[ "MIT" ]
8
2015-12-02T02:49:02.000Z
2017-11-02T13:25:05.000Z
script/srt2bilibili.py
damahan/fuckbilibili.github.io
285c7e12469622091d23077a4bed79d40851eff2
[ "MIT" ]
null
null
null
script/srt2bilibili.py
damahan/fuckbilibili.github.io
285c7e12469622091d23077a4bed79d40851eff2
[ "MIT" ]
8
2016-11-06T13:19:05.000Z
2021-02-19T02:47:33.000Z
#!/usr/bin/env python #coding:utf-8 # Author: Beining --<ACICFG> # Purpose: A batch poster of srt file to danmaku on Bilibili. # Created: 11/23/2014 # srt2Bilibili is licensed under GNUv2 license ''' srt2Bilibili 0.02.2 alpha Beining@ACICFG cnbeining[at]gmail.com http://www.cnbeining.com https://github.com/cnbeining/s...
35.361823
279
0.536094
#!/usr/bin/env python #coding:utf-8 # Author: Beining --<ACICFG> # Purpose: A batch poster of srt file to danmaku on Bilibili. # Created: 11/23/2014 # srt2Bilibili is licensed under GNUv2 license ''' srt2Bilibili 0.02.2 alpha Beining@ACICFG cnbeining[at]gmail.com http://www.cnbeining.com https://github.com/cnbeining/s...
0
0
0
0
0
0
0
-4
45
8c6a282568c0010a958e84ec1c16365d552f83ea
2,635
py
Python
python/ray/rllib/a3c/torchpolicy.py
salah-man/ray
117107cb157e0b6c8ddc00d55e3d6ba317242a2f
[ "Apache-2.0" ]
1
2018-06-25T08:00:51.000Z
2018-06-25T08:00:51.000Z
python/ray/rllib/a3c/torchpolicy.py
salah-man/ray
117107cb157e0b6c8ddc00d55e3d6ba317242a2f
[ "Apache-2.0" ]
1
2018-01-26T05:11:04.000Z
2018-01-26T05:11:04.000Z
python/ray/rllib/a3c/torchpolicy.py
salah-man/ray
117107cb157e0b6c8ddc00d55e3d6ba317242a2f
[ "Apache-2.0" ]
1
2020-10-16T08:42:32.000Z
2020-10-16T08:42:32.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function
31.746988
78
0.632258
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch from ray.rllib.a3c.policy import Policy from threading import Lock class TorchPolicy(Policy): """The policy base class for Torch. The model is a separate object than the policy. This co...
0
0
0
2,420
0
0
0
14
91
7fbebf780d053dff7411f08d78926f808c92c102
13,428
py
Python
lib/python/treadmill/tests/restclient_test.py
ms-petrugarstea/treadmill
4c813baf8831918744b5af020938c8a51ed15c72
[ "Apache-2.0" ]
1
2017-02-27T15:11:00.000Z
2017-02-27T15:11:00.000Z
lib/python/treadmill/tests/restclient_test.py
godsarmy/treadmill
4c813baf8831918744b5af020938c8a51ed15c72
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/tests/restclient_test.py
godsarmy/treadmill
4c813baf8831918744b5af020938c8a51ed15c72
[ "Apache-2.0" ]
null
null
null
"""Unit test for treadmill.restclient. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest if __name__ == '__main__': unittest.main()
42.900958
79
0.626527
"""Unit test for treadmill.restclient. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import mock import simplejson.scanner as sjs import requests from six.moves import http_client from treadmi...
0
12,289
0
725
0
0
0
18
136
2dbd11350ab16f18f9919a310ee4149b2979c7e0
35,416
py
Python
mcpython/client/rendering/model/BoxModel.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
2
2019-11-02T05:26:11.000Z
2019-11-03T08:52:18.000Z
mcpython/client/rendering/model/BoxModel.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
25
2019-11-02T05:24:29.000Z
2022-02-09T14:09:08.000Z
mcpython/client/rendering/model/BoxModel.py
mcpython4-coding/core
8698efe93f5a25421bfa508d769d8fdc8e9ce24c
[ "CC0-1.0", "MIT" ]
5
2019-11-09T05:36:06.000Z
2021-11-28T13:07:08.000Z
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
33.37983
117
0.53905
""" mcpython - a minecraft clone written in python licenced under the MIT-licence (https://github.com/mcpython4-coding/core) Contributors: uuk, xkcdjerry (inactive) Based on the game of fogleman (https://github.com/fogleman/Minecraft), licenced under the MIT-licence Original game "minecraft" by Mojang Studios (www.m...
0
34,060
0
0
0
0
0
246
423
0acdbcd9f501929263f382206587c4d0941a44de
464
py
Python
connectome/setup.py
fratim/skeletons
e627849efbff2c2ed427c3416640f8db2eed5dec
[ "MIT" ]
1
2019-11-19T21:19:31.000Z
2019-11-19T21:19:31.000Z
connectome/setup.py
fratim/skeletons
e627849efbff2c2ed427c3416640f8db2eed5dec
[ "MIT" ]
null
null
null
connectome/setup.py
fratim/skeletons
e627849efbff2c2ed427c3416640f8db2eed5dec
[ "MIT" ]
null
null
null
from distutils.core import setup, Extension from Cython.Build import cythonize import numpy as np extensions = [ Extension( name='wiring', include_dirs=[np.get_include()], sources=['wiring.pyx', 'cpp-thinning.cpp', 'cpp-refinement.cpp', 'cpp-MinBinaryHeap.cpp', 'cpp-anchorpoints.cpp'], ...
24.421053
122
0.644397
from distutils.core import setup, Extension from Cython.Build import cythonize import numpy as np extensions = [ Extension( name='wiring', include_dirs=[np.get_include()], sources=['wiring.pyx', 'cpp-thinning.cpp', 'cpp-refinement.cpp', 'cpp-MinBinaryHeap.cpp', 'cpp-anchorpoints.cpp'], ...
0
0
0
0
0
0
0
0
0
7d28ad5e795ed3020ffd4f0ad4178427d57de682
1,236
py
Python
auctions/migrations/0002_bids_listings.py
nmk0462/commerce
a5dee3a63d986bf8630cccc859f372133d5084f9
[ "MIT" ]
14
2020-07-26T07:45:54.000Z
2022-03-31T00:05:58.000Z
auctions/migrations/0002_bids_listings.py
nmk0462/commerce
a5dee3a63d986bf8630cccc859f372133d5084f9
[ "MIT" ]
null
null
null
auctions/migrations/0002_bids_listings.py
nmk0462/commerce
a5dee3a63d986bf8630cccc859f372133d5084f9
[ "MIT" ]
17
2020-07-20T06:22:12.000Z
2021-04-12T11:12:09.000Z
# Generated by Django 3.0.8 on 2020-07-11 10:41
34.333333
114
0.536408
# Generated by Django 3.0.8 on 2020-07-11 10:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auctions', '0001_initial'), ] operations = [ migrations.CreateModel( name='Bids', fields=[ ('id', mo...
0
0
0
1,122
0
0
0
19
46
d62424838189d65161029025d84173a65f6203cb
48
py
Python
gnn_agglomeration/experiment.py
bentaculum/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
2
2021-05-19T01:56:52.000Z
2021-07-08T20:50:38.000Z
gnn_agglomeration/experiment.py
benjamin9555/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
14
2019-07-17T19:23:09.000Z
2021-02-02T22:01:49.000Z
gnn_agglomeration/experiment.py
benjamin9555/gnn_agglomeration
e5b8a693ba78433b8a3721ac3102630c2a79a1e4
[ "MIT" ]
2
2019-07-17T20:14:03.000Z
2019-07-27T16:20:52.000Z
from sacred import Experiment ex = Experiment()
16
29
0.791667
from sacred import Experiment ex = Experiment()
0
0
0
0
0
0
0
0
0
c87900d5d15e72c21793f889952bd590dac9bc28
4,069
py
Python
venv3/lib/python3.8/site-packages/tests/script/test_release_notes.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
94
2016-05-23T17:13:11.000Z
2021-12-03T23:06:45.000Z
venv3/lib/python3.8/site-packages/tests/script/test_release_notes.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
39
2016-05-19T17:57:53.000Z
2020-12-26T09:57:21.000Z
venv3/lib/python3.8/site-packages/tests/script/test_release_notes.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
15
2016-05-23T20:22:37.000Z
2019-12-27T21:13:04.000Z
import pytest pytestmark = pytest.mark.slow version_file_content = """ major = 1 minor = 0 patch = 0 """ config_file_content_single_file = """ __config_version__ = 1 GLOBALS = { 'serializer': { 'semver': '{{major}}.{{minor}}.{{patch}}', } } FILES = ["README.md"] VERSION = ['major', 'minor', 'patch...
20.654822
73
0.64463
import pytest pytestmark = pytest.mark.slow version_file_content = """ major = 1 minor = 0 patch = 0 """ config_file_content_single_file = """ __config_version__ = 1 GLOBALS = { 'serializer': { 'semver': '{{major}}.{{minor}}.{{patch}}', } } FILES = ["README.md"] VERSION = ['major', 'minor', 'patch...
0
0
0
0
0
2,754
0
0
92
ec91b47e9d8aaea923f5db017f3846d51ccba9c9
10,323
py
Python
tests/unit/environment/knapsack_v2/heuristic_test.py
AndreMaz/transformer-pointer-critic
97cfa1e667514a5651d855d6ffd498ac49339c00
[ "MIT" ]
5
2021-12-11T20:51:16.000Z
2021-12-16T06:10:03.000Z
tests/unit/environment/knapsack_v2/heuristic_test.py
AndreMaz/transformer-pointer-critic
97cfa1e667514a5651d855d6ffd498ac49339c00
[ "MIT" ]
1
2021-12-12T21:25:38.000Z
2021-12-12T21:25:38.000Z
tests/unit/environment/knapsack_v2/heuristic_test.py
AndreMaz/transformer-pointer-critic
97cfa1e667514a5651d855d6ffd498ac49339c00
[ "MIT" ]
null
null
null
import sys sys.path.append('.')
25.116788
110
0.512157
import sys sys.path.append('.') import unittest import numpy as np from environment.custom.knapsack_v2.heuristic.factory import WasteReductionHeuristic, ORTools, RandomHeuristic from environment.custom.knapsack_v2.misc.utils import compute_stats class TestORToolsHeuristics(unittest.TestCase): def setUp(self) -> N...
0
0
0
10,006
0
0
0
126
158
f7e7b16c514aaf57d0590cf91409fbc1b60f38c5
1,878
pyde
Python
loesungen_in_python/05-funktionen/aufgabe_W_5_12_sanduhr/aufgabe_W_5_12_sanduhr.pyde
gtuthey/loesungen
31af695adc6b947cbb84749594bf5469dcb37d52
[ "MIT" ]
11
2019-04-24T07:19:00.000Z
2022-03-12T08:30:12.000Z
loesungen_in_python/05-funktionen/aufgabe_W_5_12_sanduhr/aufgabe_W_5_12_sanduhr.pyde
gtuthey/loesungen
31af695adc6b947cbb84749594bf5469dcb37d52
[ "MIT" ]
3
2018-04-30T07:12:46.000Z
2022-02-02T09:02:10.000Z
loesungen_in_python/05-funktionen/aufgabe_W_5_12_sanduhr/aufgabe_W_5_12_sanduhr.pyde
gtuthey/loesungen
31af695adc6b947cbb84749594bf5469dcb37d52
[ "MIT" ]
21
2018-04-04T11:27:11.000Z
2022-03-12T08:30:18.000Z
# Funktion zur Ausgabe einer Sanduhr auf der Konsole # Die maximale Breite wird als Integer-Wert an die # Funktion bergeben. Die Funktion hat keinen Rckgabewert # Startpunkt des Hauptprogramms # Hier wird die implementierte Funktion zu Demonstrations- und # Testzwecken aufgerufen. printSandglass(8)
39.957447
72
0.591587
# Funktion zur Ausgabe einer Sanduhr auf der Konsole # Die maximale Breite wird als Integer-Wert an die # Funktion übergeben. Die Funktion hat keinen Rückgabewert def printSandglass(sWidth): if(sWidth > 2): # nur wenn die Bereite > 2 ist sHeight = sWidth # Höhe wird mit Breite initialisiert ...
20
0
0
0
0
1,542
0
0
22
9496da457d103256f6fae031c4a5a72d425d8d4b
583
py
Python
setup.py
Kennu76/HashtagCreator
80ecb2c85426d632a23c456763d0c73b87a1e63e
[ "BSD-2-Clause" ]
null
null
null
setup.py
Kennu76/HashtagCreator
80ecb2c85426d632a23c456763d0c73b87a1e63e
[ "BSD-2-Clause" ]
null
null
null
setup.py
Kennu76/HashtagCreator
80ecb2c85426d632a23c456763d0c73b87a1e63e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # File copeid from https://github.com/kennethreitz/setup.py from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='HashtagCreator', version='0.1.0', description='Simple Python...
22.423077
83
0.686106
# -*- coding: utf-8 -*- # File copeid from https://github.com/kennethreitz/setup.py from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='HashtagCreator', version='0.1.0', description='Simple Python...
0
0
0
0
0
0
0
0
0
ff8cc1aea2007f9e4415e0512131c3720ff5da98
1,105
py
Python
code/hub_transfer/download_eu.py
Stochastik-TU-Ilmenau/covid19-forecast-hub-de
384d9ed2d84e9733f630973fb1a43b079f2b57a1
[ "MIT" ]
31
2020-05-20T15:38:57.000Z
2022-02-13T01:31:33.000Z
code/hub_transfer/download_eu.py
Stochastik-TU-Ilmenau/covid19-forecast-hub-de
384d9ed2d84e9733f630973fb1a43b079f2b57a1
[ "MIT" ]
777
2020-05-18T14:55:53.000Z
2022-03-29T20:43:17.000Z
code/hub_transfer/download_eu.py
Stochastik-TU-Ilmenau/covid19-forecast-hub-de
384d9ed2d84e9733f630973fb1a43b079f2b57a1
[ "MIT" ]
65
2020-05-20T07:42:36.000Z
2021-11-20T21:25:23.000Z
# -*- coding: utf-8 -*- """ Created on Mon May 10 14:10:33 2021 @author: Jannik """ import requests import pandas as pd from datetime import datetime, date, timedelta from pathlib import Path # list all forecast files already present in the eu hub url = "https://api.github.com/repos/epiforecasts/covid19-forecast-hub...
34.53125
128
0.636199
# -*- coding: utf-8 -*- """ Created on Mon May 10 14:10:33 2021 @author: Jannik """ import requests import pandas as pd from datetime import datetime, date, timedelta from pathlib import Path # list all forecast files already present in the eu hub url = "https://api.github.com/repos/epiforecasts/covid19-forecast-hub...
0
0
0
0
0
0
0
0
0
335628597ac2014048cd46057c49faf1c4670025
4,880
py
Python
examples/10.light_texture.py
blaine141/NVISII
1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24
[ "Apache-2.0" ]
149
2021-02-09T11:35:23.000Z
2022-03-29T10:06:22.000Z
examples/10.light_texture.py
blaine141/NVISII
1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24
[ "Apache-2.0" ]
66
2020-05-28T18:53:21.000Z
2021-02-07T05:34:14.000Z
examples/10.light_texture.py
blaine141/NVISII
1675bb9bb74a1fe441bbb10ca98ea5cc4b0e4e24
[ "Apache-2.0" ]
14
2021-02-09T08:51:44.000Z
2022-03-11T00:39:21.000Z
import nvisii opt = lambda: None opt.spp = 400 opt.width = 500 opt.height = 500 opt.noise = False opt.out = '10_light_texture.png' # # # # # # # # # # # # # # # # # # # # # # # # # nvisii.initialize(headless = True, verbose = True) if not opt.noise is True: nvisii.enable_denoiser() camera = nvisii.entity.cre...
29.575758
68
0.680533
import nvisii import random opt = lambda: None opt.spp = 400 opt.width = 500 opt.height = 500 opt.noise = False opt.out = '10_light_texture.png' # # # # # # # # # # # # # # # # # # # # # # # # # nvisii.initialize(headless = True, verbose = True) if not opt.noise is True: nvisii.enable_denoiser() camera = nvi...
0
0
0
0
0
0
0
-8
22
4bf0cdc5fd20df2029c730c945b87dc1eac260a6
9,872
py
Python
network/views.py
maxwelldemaio/Network
c38c0b60cb15d0a60a8e4d757c14a5c31d002197
[ "MIT" ]
null
null
null
network/views.py
maxwelldemaio/Network
c38c0b60cb15d0a60a8e4d757c14a5c31d002197
[ "MIT" ]
3
2021-03-30T14:10:34.000Z
2021-06-04T23:48:40.000Z
network/views.py
maxwelldemaio/Network
c38c0b60cb15d0a60a8e4d757c14a5c31d002197
[ "MIT" ]
1
2021-09-10T00:08:29.000Z
2021-09-10T00:08:29.000Z
import json from django.contrib import messages from django.core.paginator import Paginator, EmptyPage from django.db.models import F from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from .models import User, UserFollowing, Posts def index...
35.257143
131
0.619125
from datetime import datetime import json from django import forms from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.core.paginator import Paginator, EmptyPage from django.db import IntegrityError from django.db.models import F from django.http import HttpRespo...
0
0
0
94
0
1,569
0
64
181
94c9adf449303b61983da041ce974b5732947e2b
1,387
py
Python
src/overriding_declared_variable_checker.py
hyu1834/Static-Variable-Scope-Analyzer-for-Python-Programming-Language
7cf4da67caec0f88b77bbaf3eed4065e255497bf
[ "Apache-2.0" ]
null
null
null
src/overriding_declared_variable_checker.py
hyu1834/Static-Variable-Scope-Analyzer-for-Python-Programming-Language
7cf4da67caec0f88b77bbaf3eed4065e255497bf
[ "Apache-2.0" ]
null
null
null
src/overriding_declared_variable_checker.py
hyu1834/Static-Variable-Scope-Analyzer-for-Python-Programming-Language
7cf4da67caec0f88b77bbaf3eed4065e255497bf
[ "Apache-2.0" ]
null
null
null
# Author: Hiu Hong Yu && Ming-Hung Lu # University of California, Davis # Winter 2017 - ECS 240 - Zhendong Su #Standard Libraries #3rd Party Libraries #Local Libraries
31.522727
85
0.707282
# Author: Hiu Hong Yu && Ming-Hung Lu # University of California, Davis # Winter 2017 - ECS 240 - Zhendong Su #Standard Libraries #3rd Party Libraries #Local Libraries import variable_table class Overridding_Declared_Variable_Checker: def __init__(self): # __declared_var_list contains entries keyed by "level" ...
0
0
0
1,171
0
0
0
0
45
adcaf7c7f5975e5de4a9ba3beee78037c9783554
1,198
py
Python
prody/tests/atomic/test_hierview.py
grandevelia/ProDy
7c725640a94c16543423c0756388998cb86a97ae
[ "MIT" ]
210
2015-01-26T08:17:56.000Z
2022-03-30T01:40:34.000Z
prody/tests/atomic/test_hierview.py
grandevelia/ProDy
7c725640a94c16543423c0756388998cb86a97ae
[ "MIT" ]
555
2015-01-05T21:51:54.000Z
2022-03-31T16:51:41.000Z
prody/tests/atomic/test_hierview.py
grandevelia/ProDy
7c725640a94c16543423c0756388998cb86a97ae
[ "MIT" ]
99
2015-02-09T18:00:39.000Z
2022-03-07T12:52:51.000Z
"""This module contains unit tests for fragmenting function and methods.""" from numpy import arange from numpy.random import shuffle from prody.tests.datafiles import pathDatafile AG = prody.parsePDB(pathDatafile('pdb3mht.pdb')) SHUFFLED = arange(len(AG)) shuffle(SHUFFLED) SHUFFLED = AtomMap(AG, SHUFFLED) RTER = pr...
24.958333
76
0.706177
"""This module contains unit tests for fragmenting function and methods.""" from prody.tests import TestCase from numpy import arange from numpy.random import shuffle from prody import * from prody.tests.datafiles import pathDatafile AG = prody.parsePDB(pathDatafile('pdb3mht.pdb')) SHUFFLED = arange(len(AG)) shuffl...
0
0
0
734
0
0
0
9
92
1f8f960f999d945f0ae45e0ed42ab8232e05b828
412
pyw
Python
src/QIEDDE.pyw
SilverousBlack/Customizable-Dictionary
0725953c61b196944de2f66d32154d1eddf4032e
[ "MIT" ]
null
null
null
src/QIEDDE.pyw
SilverousBlack/Customizable-Dictionary
0725953c61b196944de2f66d32154d1eddf4032e
[ "MIT" ]
null
null
null
src/QIEDDE.pyw
SilverousBlack/Customizable-Dictionary
0725953c61b196944de2f66d32154d1eddf4032e
[ "MIT" ]
null
null
null
""" Quick-Insert-Export (QIE) Dictionary Data Engine Library Copyright (c) 2020 SilverousBlack, volantebjb License: MIT ----- ----- ----- ----- ----- """
22.888889
56
0.752427
""" Quick-Insert-Export (QIE) Dictionary Data Engine Library Copyright (c) 2020 SilverousBlack, volantebjb License: MIT ----- ----- ----- ----- ----- """ from QIE_Core import * from LanguageIdentityEntry import * from TranslationEntry import * from TranslationDictionary import * from LanguageIdentityCollection impor...
0
0
0
0
0
0
0
79
176
95e07d026a33583f6dc247552aa10bb3a6ab0979
342
py
Python
test.py
lobadic/gladiatus-api
819351b7f771ba70f2fd3800986fb2143bbaf92f
[ "MIT" ]
3
2019-02-14T17:43:42.000Z
2019-11-27T15:12:25.000Z
test.py
lobadic/gladiatus-api
819351b7f771ba70f2fd3800986fb2143bbaf92f
[ "MIT" ]
null
null
null
test.py
lobadic/gladiatus-api
819351b7f771ba70f2fd3800986fb2143bbaf92f
[ "MIT" ]
null
null
null
import character from selenium import webdriver import time driver = webdriver.Chrome() login(driver, character) goto_country(driver) time.sleep(1) goto(select_bar.event_zone(driver)) while True: time.sleep(60)
11.032258
35
0.769006
import character from select_bar import * from selenium import webdriver import pickle import time import os import msg from login import * from complete_movements import * driver = webdriver.Chrome() login(driver, character) goto_country(driver) time.sleep(1) goto(select_bar.event_zone(driver)) while Tr...
0
0
0
0
0
0
0
-19
133
851eb3b01fc05359defcd79a79da1cdab1358706
322
py
Python
server.py
cloxichjc/python-web
5949472af291053243c2f4348a20795ca62f9ddb
[ "Apache-2.0" ]
null
null
null
server.py
cloxichjc/python-web
5949472af291053243c2f4348a20795ca62f9ddb
[ "Apache-2.0" ]
null
null
null
server.py
cloxichjc/python-web
5949472af291053243c2f4348a20795ca62f9ddb
[ "Apache-2.0" ]
null
null
null
# server.py # coding:utf-8 # wsgiref from wsgiref.simple_server import make_server # application: from wsgi import application # IP8000application: httpd = make_server('', 8000, application) print("Serving HTTP on port 8000...") # HTTP: httpd.serve_forever() print("Listening")
24.769231
45
0.785714
# server.py # coding:utf-8 # 从wsgiref模块导入 from wsgiref.simple_server import make_server # 导入我们自己编写的application函数: from wsgi import application # 创建一个服务器,IP地址为空,端口是8000,处理函数是application: httpd = make_server('', 8000, application) print("Serving HTTP on port 8000...") # 开始监听HTTP请求: httpd.serve_forever() print("Listening...
132
0
0
0
0
0
0
0
0
c3bddc363a76b919efa9754fec64b35cdf4562e8
3,166
py
Python
cannlytics/lims/certificates.py
mathematicalmichael/cannlytics
acc2b8c73fd3689283b41bd275a1885fe37153a6
[ "MIT" ]
null
null
null
cannlytics/lims/certificates.py
mathematicalmichael/cannlytics
acc2b8c73fd3689283b41bd275a1885fe37153a6
[ "MIT" ]
null
null
null
cannlytics/lims/certificates.py
mathematicalmichael/cannlytics
acc2b8c73fd3689283b41bd275a1885fe37153a6
[ "MIT" ]
null
null
null
""" CoA Generation | Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 2/6/2021 Updated: 7/15/2021 License: MIT LIcense <https://opensource.org/licenses/MIT> TODO: - Allow users to create CoA's with a myriad of templates! (.docx, .xlsx, etc.) - Import any docx template styed with Django format...
21.834483
105
0.669615
""" CoA Generation | Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 2/6/2021 Updated: 7/15/2021 License: MIT LIcense <https://opensource.org/licenses/MIT> TODO: - Allow users to create CoA's with a myriad of templates! (.docx, .xlsx, etc.) - Import any docx template styed with Django format...
0
0
0
0
0
0
0
40
22
e507fcf5fdbd08ae67c689021f5d6d4a56ba99fc
1,648
py
Python
extreme_feedback_tts/extreme_feedback_app.py
pavelhromada/extreme-feedback-tts
3718ad861d4a6872d3dc46a3c047e3c57e5f603b
[ "Unlicense" ]
null
null
null
extreme_feedback_tts/extreme_feedback_app.py
pavelhromada/extreme-feedback-tts
3718ad861d4a6872d3dc46a3c047e3c57e5f603b
[ "Unlicense" ]
null
null
null
extreme_feedback_tts/extreme_feedback_app.py
pavelhromada/extreme-feedback-tts
3718ad861d4a6872d3dc46a3c047e3c57e5f603b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
29.963636
91
0.641383
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import time import logging from .configuration import Configuration from .build_info import BuildInfo from .build_status_audio_presenter import AudioPresenter from .build_status_gui_presenter import GuiPresenter class ExtremeFeedbackApp: '''Entry point to ...
0
0
0
1,354
0
0
0
68
178
75fce695be73b251e84e1959b83368f2eed73371
1,513
py
Python
PPDP/migrations/0007_auto_20160112_2008.py
qiyuangong/ppdpes
d79e995340227d90dbbc225dbacfda41b4522884
[ "MIT" ]
null
null
null
PPDP/migrations/0007_auto_20160112_2008.py
qiyuangong/ppdpes
d79e995340227d90dbbc225dbacfda41b4522884
[ "MIT" ]
null
null
null
PPDP/migrations/0007_auto_20160112_2008.py
qiyuangong/ppdpes
d79e995340227d90dbbc225dbacfda41b4522884
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-12 12:08 from __future__ import unicode_literals
33.622222
110
0.603437
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-12 12:08 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('PPDP', '0006_auto_20160112_1945'), ] ...
0
0
0
1,283
0
0
0
29
90
1cc1141066269ae6cd5303320e12fed70ed0026b
6,776
py
Python
dist/py/proto/devices/device_pb2.py
ate362/ubii-msg-formats
f96058dc1091886c47761fbba1a3033bcf180b4c
[ "BSD-3-Clause" ]
2
2021-01-29T12:49:01.000Z
2021-03-06T13:35:49.000Z
dist/py/proto/devices/device_pb2.py
ate362/ubii-msg-formats
f96058dc1091886c47761fbba1a3033bcf180b4c
[ "BSD-3-Clause" ]
null
null
null
dist/py/proto/devices/device_pb2.py
ate362/ubii-msg-formats
f96058dc1091886c47761fbba1a3033bcf180b4c
[ "BSD-3-Clause" ]
2
2021-05-14T14:06:33.000Z
2022-02-21T21:25:35.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/devices/device.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
37.644444
652
0.744835
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/devices/device.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflect...
0
0
0
0
0
0
0
0
0
2a2b85425d95eb73aebc3aa43df72ba212e85cdd
162
py
Python
python/src/algorithm/coding/itertools/combinations_with_r.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/algorithm/coding/itertools/combinations_with_r.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/algorithm/coding/itertools/combinations_with_r.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
import itertools S, r = input().split(' ') S = list(S) S.sort() r = int(r) C = itertools.combinations_with_replacement(S, r) for i in C: print(*i, sep='')
13.5
49
0.617284
import itertools S, r = input().split(' ') S = list(S) S.sort() r = int(r) C = itertools.combinations_with_replacement(S, r) for i in C: print(*i, sep='')
0
0
0
0
0
0
0
0
0
c510f3458cddb6844f60dcd872bd61548d81ddce
1,454
py
Python
TempApp/writeRecord.py
JC-FusionCustom/raspberrypi
3f435b347b9347d342f583b187f42e28b63871ea
[ "MIT" ]
1
2018-11-28T21:18:16.000Z
2018-11-28T21:18:16.000Z
TempApp/writeRecord.py
JC-FusionCustom/raspberrypi
3f435b347b9347d342f583b187f42e28b63871ea
[ "MIT" ]
null
null
null
TempApp/writeRecord.py
JC-FusionCustom/raspberrypi
3f435b347b9347d342f583b187f42e28b63871ea
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import sqlite3 import Adafruit_DHT import socket import datetime # Required variables dbfile = '/root/TempApp/temperature.db' table = 'temperature' device_name = socket.gethostname() process_ts = datetime.datetime.now() # sqlite3 connection to the temperature database conn = sqlite3.conn...
30.291667
78
0.727648
#!/usr/bin/python import sys import sqlite3 import Adafruit_DHT import socket import datetime # Required variables dbfile = '/root/TempApp/temperature.db' table = 'temperature' device_name = socket.gethostname() process_ts = datetime.datetime.now() # sqlite3 connection to the temperature database conn = sqlite3.conn...
0
0
0
0
0
0
0
0
0
138bfa27d8073cb61e565b3e0195d9941b928ad2
53
py
Python
__init__.py
slovanos/ShootEmUp
654902649e8df5fd9e17a3ed159ad1bea820ec6c
[ "MIT" ]
null
null
null
__init__.py
slovanos/ShootEmUp
654902649e8df5fd9e17a3ed159ad1bea820ec6c
[ "MIT" ]
null
null
null
__init__.py
slovanos/ShootEmUp
654902649e8df5fd9e17a3ed159ad1bea820ec6c
[ "MIT" ]
null
null
null
__author__ = 'slovanos' # from code import something
17.666667
28
0.773585
__author__ = 'slovanos' # from code import something
0
0
0
0
0
0
0
0
0
50dd2ffb76aec844da5a7ca116777ed5f5c24bff
4,441
py
Python
hashget/utils.py
pombredanne/gitlab.com-yaroslaff-hashget
19b6ff40a8f45dd59c057e17473a702a531c864d
[ "MIT" ]
1
2021-03-08T14:01:04.000Z
2021-03-08T14:01:04.000Z
hashget/utils.py
pombredanne/gitlab.com-yaroslaff-hashget
19b6ff40a8f45dd59c057e17473a702a531c864d
[ "MIT" ]
null
null
null
hashget/utils.py
pombredanne/gitlab.com-yaroslaff-hashget
19b6ff40a8f45dd59c057e17473a702a531c864d
[ "MIT" ]
null
null
null
import os from tempfile import mkdtemp import patoolib unpack_suffixes = [ '.deb', '.gz', '.xz', '.bz2', '.zip', '.whl' ] def recursive_unpack(path, udir='/tmp', recursive=True, top_level=True): """ Recursively unpack archive and all archives in content Deletes symlinks """ if to...
25.819767
174
0.54875
import os import shutil import hashlib from tempfile import mkdtemp import patoolib import time import datetime unpack_suffixes = [ '.deb', '.gz', '.xz', '.bz2', '.zip', '.whl' ] def sha1sum(filename): h = hashlib.sha1() b = bytearray(128*1024) mv = memoryview(b) with open(filename, 'rb', buffering=...
0
0
0
422
468
2,246
0
-31
329
604560ad8d8db77a85baa061f266515da9286c18
4,446
py
Python
opsworkstool/parts.py
rubelw/opsworks-tool
923dfc22ac96ccd7b928b344424cbf3850346f7c
[ "Apache-2.0" ]
null
null
null
opsworkstool/parts.py
rubelw/opsworks-tool
923dfc22ac96ccd7b928b344424cbf3850346f7c
[ "Apache-2.0" ]
null
null
null
opsworkstool/parts.py
rubelw/opsworks-tool
923dfc22ac96ccd7b928b344424cbf3850346f7c
[ "Apache-2.0" ]
null
null
null
region = None stage = None account = None lambda_name = None the_api = """ theAPI: Type: AWS::ApiGateway::RestApi DependsOn: LambdaFunction Properties: Description: LambdaTool created this AWS ApiGateway RestApi thing Body: swagger: "2.0" info: version: "2017-11-15T16...
34.2
164
0.512371
region = None stage = None account = None lambda_name = None the_api = """ theAPI: Type: AWS::ApiGateway::RestApi DependsOn: LambdaFunction Properties: Description: LambdaTool created this AWS ApiGateway RestApi thing Body: swagger: "2.0" info: version: "2017-11-15T16...
0
0
0
0
0
193
0
0
23
addcf5f50891eaa8039106ffda43ca444a933bb1
3,376
py
Python
website/notifications/tasks.py
alexschiller/osf.io
4122d4be152c6189142c2ebb19cfdee09c77035d
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
website/notifications/tasks.py
alexschiller/osf.io
4122d4be152c6189142c2ebb19cfdee09c77035d
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
website/notifications/tasks.py
alexschiller/osf.io
4122d4be152c6189142c2ebb19cfdee09c77035d
[ "Apache-2.0" ]
null
null
null
""" Tasks for making even transactional emails consolidated. """ from django.db import connection from osf.models import (NotificationDigest) from modularodm import Q from website.notifications.utils import NotificationsDict def get_users_emails(send_type): """Get all emails that need to be sent. :param sen...
29.614035
95
0.587382
""" Tasks for making even transactional emails consolidated. """ from django.db import connection from osf.models import ( OSFUser as User, NotificationDigest, ) from framework.celery_tasks import app as celery_app from framework.sentry import log_exception from modularodm import Q from website import mails fro...
0
926
0
0
0
0
0
84
89
2988f302c99b1bae2c46e15352c14139705b294e
3,327
py
Python
app/libs/poi_search/es_search_street.py
zhangadrian/mini-shop-server
3a1f29784b707d14f2435322cdc2efdaab4ec85e
[ "MIT" ]
1
2020-09-25T09:23:06.000Z
2020-09-25T09:23:06.000Z
app/libs/poi_search/es_search_street.py
zhangadrian/mini-shop-server
3a1f29784b707d14f2435322cdc2efdaab4ec85e
[ "MIT" ]
null
null
null
app/libs/poi_search/es_search_street.py
zhangadrian/mini-shop-server
3a1f29784b707d14f2435322cdc2efdaab4ec85e
[ "MIT" ]
null
null
null
# coding: utf-8 # from elasticsearch import Elasticsearch es = Elasticsearch([{'host':'127.0.0.1', 'port': 9200}]) INDEX_NAME = "index_street_info" def query_all(): """Queries all matches in Elasticsearch, to be used further for suggesting product names when a user is not aware of them. """ q...
25.992188
79
0.42621
# coding: utf-8 # 搜索 import os import sys import codecs from elasticsearch import Elasticsearch es = Elasticsearch([{'host':'127.0.0.1', 'port': 9200}]) INDEX_NAME = "index_street_info" def query_all(): """Queries all matches in Elasticsearch, to be used further for suggesting product names when a us...
6
0
0
0
0
2,758
0
-31
159
c4581a8234bbfcaee2f8b4f208314050f5a86268
2,773
py
Python
day18.py
RoBaaaT/advent-of-code-2020
4f0c8c95488219352aa679bddb6dc32e8ee38566
[ "MIT" ]
null
null
null
day18.py
RoBaaaT/advent-of-code-2020
4f0c8c95488219352aa679bddb6dc32e8ee38566
[ "MIT" ]
null
null
null
day18.py
RoBaaaT/advent-of-code-2020
4f0c8c95488219352aa679bddb6dc32e8ee38566
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
29.5
93
0.467003
#!/usr/bin/env python3 import sys def apply_op(val, op, operand): if op == '+': return val + operand elif op == '*': return val * operand else: raise RuntimeError(f'Unknown operator "{op}"') def evaluate_expression(expr): result = 0 o = 0 op = '+' # parse left-to-r...
0
0
0
0
0
2,540
0
0
138
ecc4b587a29f2a5b9731c06c622a5e960c297b47
165
py
Python
Django3/Views/admin.py
erlankg0/Django3.2
c73f3b32046bed16c8f9321fcac290ce3df236ed
[ "BSD-3-Clause" ]
null
null
null
Django3/Views/admin.py
erlankg0/Django3.2
c73f3b32046bed16c8f9321fcac290ce3df236ed
[ "BSD-3-Clause" ]
null
null
null
Django3/Views/admin.py
erlankg0/Django3.2
c73f3b32046bed16c8f9321fcac290ce3df236ed
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Author, Book, Publisher admin.site.register(Author) admin.site.register(Book) admin.site.register(Publisher)
18.333333
43
0.806061
from django.contrib import admin from .models import Author, Book, Publisher admin.site.register(Author) admin.site.register(Book) admin.site.register(Publisher)
0
0
0
0
0
0
0
0
0
43bf71f1dcb0a9d184d7dcd3fd4c140f60041b9c
393
py
Python
dialogs/__init__.py
kwahome/delivery-bot
70b4c6c77d1fe6743b2c5d776315452c5ee85d53
[ "MIT" ]
null
null
null
dialogs/__init__.py
kwahome/delivery-bot
70b4c6c77d1fe6743b2c5d776315452c5ee85d53
[ "MIT" ]
null
null
null
dialogs/__init__.py
kwahome/delivery-bot
70b4c6c77d1fe6743b2c5d776315452c5ee85d53
[ "MIT" ]
null
null
null
from .cancel_and_help_dialog import CancelAndHelpDialog from .create_delivery_dialog import CreateDeliveryDialog from .list_deliveries_dialog import ListDeliveriesDialog from .salutation_dialog import SalutationDialog from .main_dialog import MainDialog __all__ = [ "CancelAndHelpDialog", "CreateDeliveryDialog"...
28.071429
56
0.816794
from .cancel_and_help_dialog import CancelAndHelpDialog from .create_delivery_dialog import CreateDeliveryDialog from .list_deliveries_dialog import ListDeliveriesDialog from .salutation_dialog import SalutationDialog from .main_dialog import MainDialog __all__ = [ "CancelAndHelpDialog", "CreateDeliveryDialog"...
0
0
0
0
0
0
0
0
0
b7b6f5521f9cdbef095e6e054b7db077c67ccc2c
13,947
py
Python
pada/libs/base.py
eleveyuan/kada
45811783170193b8949b58eb63f5a9f243f2d880
[ "MIT" ]
4
2022-03-01T12:27:41.000Z
2022-03-02T11:23:43.000Z
pada/libs/base.py
eleveyuan/kada
45811783170193b8949b58eb63f5a9f243f2d880
[ "MIT" ]
2
2022-02-27T09:08:30.000Z
2022-03-01T12:33:30.000Z
pada/libs/base.py
eleveyuan/kada
45811783170193b8949b58eb63f5a9f243f2d880
[ "MIT" ]
1
2022-03-01T12:32:47.000Z
2022-03-01T12:32:47.000Z
# -*- coding: utf-8 -*- __all__ = ( 'BaseTransformer', 'ConditionalTransformer', 'GroupedFunctionTransformer', 'GroupwiseTransformer', 'NoFitMixin', 'SimpleFunctionTransformer', 'SubsetTransformer', ) """ base class copy from ballat directly """
37.796748
79
0.617911
# -*- coding: utf-8 -*- from typing import Callable, Optional import funcy as fy import numpy as np import pandas as pd import sklearn.base from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import FunctionTransformer from sklearn.utils.validation import check_is_fitted from sklearn_pa...
0
0
0
12,919
0
0
0
247
497
53f8f1223b99729c48a74e3a6ffd4f085a774546
7,184
py
Python
docs/conf.py
jack1142/Mutiny
586dc7131c0d9eba98a271601a446e00792e8cde
[ "ECL-2.0", "Apache-2.0" ]
20
2021-08-18T20:46:16.000Z
2022-01-06T22:53:25.000Z
docs/conf.py
jack1142/Mutiny
586dc7131c0d9eba98a271601a446e00792e8cde
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/conf.py
jack1142/Mutiny
586dc7131c0d9eba98a271601a446e00792e8cde
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2021 Jakub Kuczys (https://github.com/jack1142) # # 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 applicab...
31.508772
86
0.66662
# Copyright 2021 Jakub Kuczys (https://github.com/jack1142) # # 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 applicab...
0
0
0
0
614
1,497
0
67
249
258857fe1949273796a5735ece9a6a87a79182f7
1,113
py
Python
kubestrike/jwt_token_converter.py
tpoindessous/kubestrike
7fb3a80d1f961b974e0f9360399185ab7b7f1fcf
[ "MIT" ]
779
2021-01-14T22:21:34.000Z
2022-03-30T07:22:57.000Z
kubestrike/jwt_token_converter.py
tpoindessous/kubestrike
7fb3a80d1f961b974e0f9360399185ab7b7f1fcf
[ "MIT" ]
19
2021-01-14T14:49:25.000Z
2022-02-14T11:35:08.000Z
kubestrike/jwt_token_converter.py
tpoindessous/kubestrike
7fb3a80d1f961b974e0f9360399185ab7b7f1fcf
[ "MIT" ]
73
2021-01-27T17:52:54.000Z
2022-03-21T13:28:45.000Z
import base64 def decode_base64_jwt_token(base64_token): ''' decode ''' return decode_jwt_token_data(decode_base64_bytes_to_string(decode_base64(base64_token))) def decode_jwt_token_data(jwt_token): ''' split token ''' splitted_string = jwt_token.split(".") decoded_data_base64 = ...
25.295455
92
0.67655
import base64 import yaml def decode_base64_jwt_token(base64_token): ''' decode ''' return decode_jwt_token_data(decode_base64_bytes_to_string(decode_base64(base64_token))) def decode_jwt_token_data(jwt_token): ''' split token ''' splitted_string = jwt_token.split(".") decoded_d...
0
0
0
0
0
0
0
-10
23
4a8b66a170687dcd0b7c242a8e7fa7c4f548baf3
8,800
py
Python
core/core/vtg/emg/modelTranslator/__init__.py
mutilin/klever
52877601e252279375091e049d096d8b302717a6
[ "Apache-2.0" ]
null
null
null
core/core/vtg/emg/modelTranslator/__init__.py
mutilin/klever
52877601e252279375091e049d096d8b302717a6
[ "Apache-2.0" ]
63
2019-01-24T15:17:55.000Z
2020-02-20T13:15:18.000Z
core/core/vtg/emg/modelTranslator/__init__.py
mutilin/klever
52877601e252279375091e049d096d8b302717a6
[ "Apache-2.0" ]
1
2019-10-11T07:27:10.000Z
2019-10-11T07:27:10.000Z
# # Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
50.867052
118
0.700568
# # Copyright (c) 2018 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # h...
0
0
0
0
0
0
0
0
0
787764e7279e587cb760534db805075fa388eb6c
4,183
py
Python
hommat.py
rpls/glfwexample
37ff7d0e31c1c7aa037dbe1e68243261a81fe37f
[ "Unlicense" ]
1
2021-06-28T19:16:14.000Z
2021-06-28T19:16:14.000Z
hommat.py
rpls/glfwexample
37ff7d0e31c1c7aa037dbe1e68243261a81fe37f
[ "Unlicense" ]
null
null
null
hommat.py
rpls/glfwexample
37ff7d0e31c1c7aa037dbe1e68243261a81fe37f
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # Hommat - a tiny library for homogenous matrices/coordinates. # Authors: # - Richard Petri <dasricht at gmail.com> # # This is free and unencumbered software released into the public domain. # # Anyone is ...
41.83
139
0.544107
# -*- coding: utf-8 -*- ############################################################################## # # Hommat - a tiny library for homogenous matrices/coordinates. # Authors: # - Richard Petri <dasricht at gmail.com> # # This is free and unencumbered software released into the public domain. # # Anyone is ...
0
0
0
0
0
0
0
0
0
ea1e93550a17b1ac115441b033b3ad424711555e
9,656
py
Python
autotf/model/ResNet.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
8
2018-03-07T06:58:16.000Z
2019-01-30T07:49:44.000Z
autotf/model/ResNet.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
null
null
null
autotf/model/ResNet.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
1
2018-03-31T09:06:12.000Z
2018-03-31T09:06:12.000Z
# -*- coding=utf-8 -*- from __future__ import division, print_function, absolute_import
37.71875
125
0.569698
# -*- coding=utf-8 -*- from __future__ import division, print_function, absolute_import from base_model import BaseModel from util import * import tensorflow as tf import pickle class ResNet(BaseModel): default_param = { "loss": "square_loss", "metrics": ["loss"], "optimizer": "sgd", ...
57
0
0
9,433
0
0
0
2
113
7806bc50f3c4bc9ef32d3e1a5dcbfea1687a4314
3,574
py
Python
fandogh_cli/config.py
behroozmirzaie7/fandogh-cli
e23d5c761a85b539b1c5f80bd9c6fd7bd2e5f9f0
[ "MIT" ]
131
2018-05-14T21:00:40.000Z
2022-03-29T10:00:54.000Z
fandogh_cli/config.py
behroozmirzaie7/fandogh-cli
e23d5c761a85b539b1c5f80bd9c6fd7bd2e5f9f0
[ "MIT" ]
130
2018-05-14T19:43:18.000Z
2021-08-28T08:52:04.000Z
fandogh_cli/config.py
behroozmirzaie7/fandogh-cli
e23d5c761a85b539b1c5f80bd9c6fd7bd2e5f9f0
[ "MIT" ]
37
2018-05-15T05:59:56.000Z
2022-03-08T05:26:54.000Z
try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: _config_repository = {} clusters = get_user_config().get('clusters', None)
28.822581
109
0.639899
import os from yaml import load, dump, FullLoader from fandogh_cli.utils import makedirs try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper class ConfigRepository: def __init__(self, configuration_file=None, configurations=None): if conf...
0
0
0
1,261
0
1,761
0
33
345
e3757df8b12d972825af5f97befb6c2a710770aa
704
py
Python
timeseries/get_data.py
alexeyqu/zadolbali_corpus
dd12dc915106948ccce26562b3f139913123f867
[ "MIT" ]
null
null
null
timeseries/get_data.py
alexeyqu/zadolbali_corpus
dd12dc915106948ccce26562b3f139913123f867
[ "MIT" ]
null
null
null
timeseries/get_data.py
alexeyqu/zadolbali_corpus
dd12dc915106948ccce26562b3f139913123f867
[ "MIT" ]
null
null
null
if __name__ == "__main__": session = loadSession() res = session.query(Story).all() with open('data.csv', 'w') as data: for story in res: data.write('{0}\t{1}\t{2}\t{3}\n'.format(story.id, story.published, story.tags, story.likes))
30.608696
105
0.661932
from sqlalchemy import create_engine, MetaData, Table from sqlalchemy.orm import mapper, sessionmaker class Story(object): pass def loadSession(): dbPath = '../corpus/stories.sqlite' engine = create_engine('sqlite:///%s' % dbPath, echo=True) bookmarks = Table('stories', MetaData(engine), autoload=T...
0
0
0
8
0
282
0
58
91
01505072ccf2fd37cd1bd48bf1276e5827191a34
2,898
py
Python
mathphys/functions.py
lnls-fac/mathphys
7ba181daf428e55c8122c5e6992d5c8fdf51d099
[ "MIT" ]
2
2015-04-13T23:25:07.000Z
2015-04-13T23:47:44.000Z
mathphys/functions.py
lnls-fac/mathphys
7ba181daf428e55c8122c5e6992d5c8fdf51d099
[ "MIT" ]
6
2015-04-16T04:28:35.000Z
2015-09-29T13:26:34.000Z
mathphys/functions.py
lnls-fac/mathphys
7ba181daf428e55c8122c5e6992d5c8fdf51d099
[ "MIT" ]
2
2015-09-29T05:13:02.000Z
2020-10-28T13:25:37.000Z
"""Useful functions.""" import os as _os from collections import namedtuple as _namedtuple from functools import partial as _partial import pickle as _pickle import numpy as _np def generate_random_numbers(n_part, dist_type='exp', cutoff=3): """Generate random numbers with a cutted off dist_type distribution. ...
31.5
78
0.646653
"""Useful functions.""" import os as _os from collections import namedtuple as _namedtuple from functools import partial as _partial import pickle as _pickle import numpy as _np def generate_random_numbers(n_part, dist_type='exp', cutoff=3): """Generate random numbers with a cutted off dist_type distribution. ...
0
0
0
0
0
0
0
0
0
603844d9677eee25975b991a3ca46d1c6c641c47
9,184
py
Python
enviromentplots.py
malvela/ML
391930e7cc290e42fbb89641f092422aee5db245
[ "MIT" ]
null
null
null
enviromentplots.py
malvela/ML
391930e7cc290e42fbb89641f092422aee5db245
[ "MIT" ]
null
null
null
enviromentplots.py
malvela/ML
391930e7cc290e42fbb89641f092422aee5db245
[ "MIT" ]
null
null
null
import pandas as pd from glob import glob waves08 = sorted(glob('environment/environment/waves/wmb-sued/wmb-sued_2019-08-**.csv')) waves09 = sorted(glob('environment/environment/waves/wmb-sued/wmb-sued_2019-09-**.csv')) waves10 = sorted(glob('environment/environment/waves/wmb-sued/wmb-sued_2019-10-**.csv')) waves11 =...
61.637584
718
0.665941
import numpy as np import pandas as pd import matplotlib.pyplot as plt from glob import glob import seaborn as sn waves08 = sorted(glob('environment/environment/waves/wmb-sued/wmb-sued_2019-08-**.csv')) waves09 = sorted(glob('environment/environment/waves/wmb-sued/wmb-sued_2019-09-**.csv')) waves10 = sorted(glob('env...
0
0
0
0
0
0
0
6
66
5b8b16b65071ce2f07622d678cef841184ef3181
3,306
py
Python
cryptofeed_werks/exchanges/ftx/api.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/exchanges/ftx/api.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/exchanges/ftx/api.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
from .constants import MAX_RESULTS def get_ftx_api_pagination_id(timestamp, last_data=[], data=[]): """ FTX API is seriously donkey balls. If more than 100 trades at same timestamp, the next timestamp is same as first. In such case, the pagination_id needs to be adjusted a small amount until unique ...
30.611111
85
0.641863
import json import time from decimal import Decimal import httpx from cryptofeed_werks.controllers import HTTPX_ERRORS, iter_api from cryptofeed_werks.lib import parse_datetime from .constants import API_URL, BTC, MAX_RESULTS, MIN_ELAPSED_PER_REQUEST def get_ftx_api_url(url, pagination_id): url += f"?limit={MA...
0
0
0
0
0
2,221
0
84
318
60bb5fbb87f452ed4409c8d1795eece2b3477f5b
1,158
py
Python
mytrain/my_split.py
JinkelaCrops/t2t-learning
5d9b5a5164af763c24f1cbce9d97561e9f2b772c
[ "Apache-2.0" ]
5
2019-03-28T03:52:32.000Z
2021-02-24T07:09:26.000Z
mytrain/my_split.py
JinkelaCrops/t2t-learning
5d9b5a5164af763c24f1cbce9d97561e9f2b772c
[ "Apache-2.0" ]
null
null
null
mytrain/my_split.py
JinkelaCrops/t2t-learning
5d9b5a5164af763c24f1cbce9d97561e9f2b772c
[ "Apache-2.0" ]
2
2018-08-07T03:43:09.000Z
2019-12-09T06:41:40.000Z
from processutils.textfilter import DataSplit import argparse parser = argparse.ArgumentParser(description="my_split.py") parser.add_argument('-f', "--file_prefix") parser.add_argument('--train_name', default="train") parser.add_argument('--valid_name', default="valid") parser.add_argument("--valid_size", default=1000...
36.1875
97
0.689983
from processutils.textfilter import DataSplit import argparse parser = argparse.ArgumentParser(description="my_split.py") parser.add_argument('-f', "--file_prefix") parser.add_argument('--train_name', default="train") parser.add_argument('--valid_name', default="valid") parser.add_argument("--valid_size", default=1000...
0
0
0
0
0
0
0
0
0
ea4a8c543e5b7176623dcaccbbbb793cfa0d63a8
170
py
Python
web-app/linkage/datasets/apps.py
bcgov-c/ligo
e637f5c388c9fa1ecb5e3f5295382618c1d9f830
[ "Apache-2.0" ]
2
2018-07-13T18:31:04.000Z
2019-04-18T06:20:20.000Z
web-app/linkage/datasets/apps.py
bcgov-c/ligo
e637f5c388c9fa1ecb5e3f5295382618c1d9f830
[ "Apache-2.0" ]
11
2018-07-06T23:50:33.000Z
2022-03-11T23:21:27.000Z
web-app/linkage/datasets/apps.py
bcgov-c/ligo
e637f5c388c9fa1ecb5e3f5295382618c1d9f830
[ "Apache-2.0" ]
1
2018-06-05T20:05:34.000Z
2018-06-05T20:05:34.000Z
from __future__ import unicode_literals
18.888889
39
0.776471
from __future__ import unicode_literals from django.apps import AppConfig class DatasetsConfig(AppConfig): name = 'linkage.datasets' verbose_name = "Datasets"
0
0
0
71
0
0
0
12
46
619dba347ddfc95f3faee84657b92d5e68b08023
626
py
Python
my_producer.py
ericchou1/devnetcreate2021-kafka-real-time-data-streaming-for-network-engineers
726862f5116c3db0d3b8f120909c1673fa9db905
[ "MIT" ]
1
2021-10-21T12:24:22.000Z
2021-10-21T12:24:22.000Z
my_producer.py
ericchou1/devnetcreate2021-kafka-real-time-data-streaming-for-network-engineers
726862f5116c3db0d3b8f120909c1673fa9db905
[ "MIT" ]
null
null
null
my_producer.py
ericchou1/devnetcreate2021-kafka-real-time-data-streaming-for-network-engineers
726862f5116c3db0d3b8f120909c1673fa9db905
[ "MIT" ]
null
null
null
from confluent_kafka import Producer import socket import json from datetime import datetime # check https://github.com/confluentinc/examples/blob/6.2.0-post/clients/cloud/python/producer.py for ack examples conf = {'bootstrap.servers': "kafka-1:9092", 'client.id': socket.gethostname()} producer = Producer(conf) for...
25.04
114
0.634185
from confluent_kafka import Producer import socket import json from datetime import datetime # check https://github.com/confluentinc/examples/blob/6.2.0-post/clients/cloud/python/producer.py for ack examples conf = {'bootstrap.servers': "kafka-1:9092", 'client.id': socket.gethostname()} producer = Producer(conf) for...
0
0
0
0
0
0
0
0
0
c5dd915da1718c573bd1489fb012a2465fb7c2c6
2,293
py
Python
tests/test_dwi_run.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
null
null
null
tests/test_dwi_run.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
null
null
null
tests/test_dwi_run.py
alex-reardon/ANTsPyMM
ecedca733bac15f0200649070fc0412b16f82ed6
[ "Apache-2.0" ]
1
2021-11-05T18:02:53.000Z
2021-11-05T18:02:53.000Z
import os import unittest os.environ["TF_NUM_INTEROP_THREADS"] = "8" os.environ["TF_NUM_INTRAOP_THREADS"] = "8" os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = "8" import antspymm import ants testingClass = unittest.TestCase( ) islocal = False id1 = "I1499279_Anon_20210819142214_5" id2 = "I1499337_Anon_202108191...
37.590164
81
0.726995
import sys, os import unittest os.environ["TF_NUM_INTEROP_THREADS"] = "8" os.environ["TF_NUM_INTRAOP_THREADS"] = "8" os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = "8" import tempfile import shutil import tensorflow as tf import antspymm import antspyt1w import antspynet import ants testingClass = unittest.Tes...
0
0
0
0
0
0
0
-17
111
c9c24cbe2208597db73d7e6a9f313990c3490424
1,721
py
Python
installer/varsdata.py
janitha09/pacbot
045cc1181a416d8cc4c9ca41b9cf43635f875002
[ "Apache-2.0" ]
null
null
null
installer/varsdata.py
janitha09/pacbot
045cc1181a416d8cc4c9ca41b9cf43635f875002
[ "Apache-2.0" ]
null
null
null
installer/varsdata.py
janitha09/pacbot
045cc1181a416d8cc4c9ca41b9cf43635f875002
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import json filename = 'terraform_input.json' with open(filename, 'r') as data_file: data = json.load(data_file)
28.683333
94
0.596165
#! /usr/bin/env python import json import jsonRead import time filename = 'terraform_input.json' with open(filename, 'r') as data_file: data = json.load(data_file) def _get_variable_list(key): return data['resources'][key] def _get_method_list(key): return data[key]['methods'] def _get_execution_order...
0
0
0
0
0
1,433
0
-16
159
4cf03ee33c59cfa90064e0b94320422641c63caf
1,694
py
Python
accounts/views.py
ashishkr619/dukaan_main
b236b498b95f62160959b5e84bb642a0be6063b0
[ "MIT" ]
null
null
null
accounts/views.py
ashishkr619/dukaan_main
b236b498b95f62160959b5e84bb642a0be6063b0
[ "MIT" ]
null
null
null
accounts/views.py
ashishkr619/dukaan_main
b236b498b95f62160959b5e84bb642a0be6063b0
[ "MIT" ]
null
null
null
# from .renderers import UserJSONRenderer
36.042553
89
0.755018
from rest_framework import status from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView from rest_framework import viewsets from django.views.decorators.csrf import csrf_exempt from django.utils.decorators import method_decorator from .seri...
0
124
0
1,077
0
0
0
205
244
ef9065252b8dcff7797f28558d388ceff9ce762a
18,574
py
Python
pysnmp/ASCEND-MIBSS7NMI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ASCEND-MIBSS7NMI-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ASCEND-MIBSS7NMI-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 ASCEND-MIBSS7NMI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBSS7NMI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:12:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
170.40367
3,109
0.802681
# # PySNMP MIB module ASCEND-MIBSS7NMI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBSS7NMI-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:12:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
0
0
0
21
0
0
0
0
22
8e243c44fa533f3a8a2ef530be8543a373abfc76
953
py
Python
209. Minimum Size Subarray Sum/MinimumSizeSubarraySum_TwoPointer.py
ChenboYang97/leetcode
73fd32cd93a4d96b2e9044c32ff43c9eb486c601
[ "MIT" ]
null
null
null
209. Minimum Size Subarray Sum/MinimumSizeSubarraySum_TwoPointer.py
ChenboYang97/leetcode
73fd32cd93a4d96b2e9044c32ff43c9eb486c601
[ "MIT" ]
null
null
null
209. Minimum Size Subarray Sum/MinimumSizeSubarraySum_TwoPointer.py
ChenboYang97/leetcode
73fd32cd93a4d96b2e9044c32ff43c9eb486c601
[ "MIT" ]
null
null
null
if __name__ == '__main__': target = 7 nums = [2, 3, 1, 2, 4, 3] assert(Solution().minSubArrayLen(target,nums) == 2) target = 4 nums = [1, 4, 4] assert(Solution().minSubArrayLen(target,nums) == 1) target = 11 nums = [1, 1, 1, 1, 1, 1, 1, 1] assert(Solution().minSubArrayLen(...
27.228571
67
0.501574
import math class Solution: def minSubArrayLen(self, target: int, nums: list[int]) -> int: start = 0 sum_subarray = 0 length = 0 min_length = math.inf for end in range(len(nums)): sum_subarray += nums[end] end += 1 while sum...
0
0
0
575
0
0
0
-10
48
c7bcfba2d3f7fea15a75e668c60298beab160567
6,078
py
Python
game/components/consumable.py
HexDecimal/7drl-2022
755949875cc11e288908eccaee102c7ca0e43777
[ "CC0-1.0" ]
null
null
null
game/components/consumable.py
HexDecimal/7drl-2022
755949875cc11e288908eccaee102c7ca0e43777
[ "CC0-1.0" ]
null
null
null
game/components/consumable.py
HexDecimal/7drl-2022
755949875cc11e288908eccaee102c7ca0e43777
[ "CC0-1.0" ]
null
null
null
from __future__ import annotations import game.actions import game.color import game.combat import game.components.ai import game.components.inventory import game.engine import game.entity import game.exceptions
36.178571
107
0.647581
from __future__ import annotations from typing import Optional import game.actions import game.color import game.combat import game.components.ai import game.components.inventory import game.engine import game.entity import game.exceptions import game.input_handlers from game.node import Node from game.typing import ...
0
195
0
5,427
0
0
0
34
204
e9e7884a3ebeeb767febbd2085017d80642cd247
384
py
Python
part01-e01_hello_world/test/test_hello_world.py
alekshiidenhovi/Helsinki-University-Data-Analysis-with-Python
bc27fa585d22d630a38312ee7c4b2173d5b80d12
[ "MIT" ]
null
null
null
part01-e01_hello_world/test/test_hello_world.py
alekshiidenhovi/Helsinki-University-Data-Analysis-with-Python
bc27fa585d22d630a38312ee7c4b2173d5b80d12
[ "MIT" ]
null
null
null
part01-e01_hello_world/test/test_hello_world.py
alekshiidenhovi/Helsinki-University-Data-Analysis-with-Python
bc27fa585d22d630a38312ee7c4b2173d5b80d12
[ "MIT" ]
2
2022-02-14T20:07:29.000Z
2022-03-11T07:30:23.000Z
#!/usr/bin/env python3 import unittest from tmc.utils import load module_name="src.hello_world" main = load(module_name, "main") if __name__ == '__main__': unittest.main()
15.36
55
0.671875
#!/usr/bin/env python3 import unittest from tmc import points from tmc.utils import load, get_stdout module_name="src.hello_world" main = load(module_name, "main") @points('p01-01.1') class HelloWorld(unittest.TestCase): def test_first(self): main() self.assertEqual(get_stdout(), "Hello,...
0
138
0
0
0
0
0
13
46
dbf78881642591e3e9dfc4fa1efd74574e8b9c1a
43,530
py
Python
plugin/sublime_lldb.py
filcab/SublimeLLDB
0a3ab46a0b4697668876639012080be0003de84c
[ "BSD-2-Clause-FreeBSD" ]
12
2015-02-11T20:54:17.000Z
2020-10-11T18:41:33.000Z
plugin/sublime_lldb.py
filcab/SublimeLLDB
0a3ab46a0b4697668876639012080be0003de84c
[ "BSD-2-Clause-FreeBSD" ]
4
2015-03-05T16:06:00.000Z
2017-05-10T13:05:59.000Z
plugin/sublime_lldb.py
filcab/SublimeLLDB
0a3ab46a0b4697668876639012080be0003de84c
[ "BSD-2-Clause-FreeBSD" ]
17
2015-01-22T16:43:03.000Z
2020-05-12T15:56:26.000Z
# -*- mode: python; coding: utf-8 -*- import re # import these specific names without the prefix _initialized = False _is_debugging = False _os_not_supported = False _macosx_is_too_old = False _did_not_find_debugserver = False _default_lldb_window_layout = { "cols": [0.0, 1.0], # start, end ...
36.094527
129
0.588835
# -*- mode: python; coding: utf-8 -*- import re import os import sys import atexit import datetime import threading import sublime import sublime_plugin import lldb import lldbutil import lldb_wrappers from monitors import LLDBUIUpdater from lldb_wrappers import thread_created from debug import debug, debugPlugin,...
0
9,178
0
26,702
0
3,735
0
1,096
1,532
69a3ac36af7c897a5d8f8d6dc9f6600a625115f2
670
py
Python
alanine_example/train_data/feat.py
msultan/SML_CV
bb134e8e068590b200f9b5b705458488955ee49c
[ "MIT" ]
19
2018-02-28T17:49:32.000Z
2022-02-20T03:07:01.000Z
alanine_example/train_data/feat.py
EnderAraujo/SML_CV
bb134e8e068590b200f9b5b705458488955ee49c
[ "MIT" ]
7
2018-08-08T16:34:41.000Z
2020-04-01T00:17:31.000Z
alanine_example/train_data/feat.py
EnderAraujo/SML_CV
bb134e8e068590b200f9b5b705458488955ee49c
[ "MIT" ]
3
2018-11-07T09:11:16.000Z
2020-08-11T14:16:14.000Z
from msmbuilder.utils import load, dump from msmbuilder.featurizer import DihedralFeaturizer import pandas as pd trj_list = load("traj_list.pkl") print("Found %d trajs"%len(trj_list)) f=DihedralFeaturizer(sincos=False) dump(f,"raw_featurizer.pkl") feat = f.transform(trj_list) dump(feat, "raw_features.pkl") f=Di...
22.333333
52
0.789552
from msmbuilder.utils import load,dump from msmbuilder.featurizer import DihedralFeaturizer import os, glob from msmbuilder.decomposition import tICA import mdtraj as md import pandas as pd from msmbuilder.msm import MarkovStateModel from msmbuilder.cluster import KMeans trj_list = load("traj_list.pkl") print("Foun...
0
0
0
0
0
0
0
49
111
6749278b59d2b324c46cebc14c155d7c2f7f8a4d
9,254
py
Python
src/handlers/institution_handlers.py
SAMcCARDC/RAiD-API
d4308d11f0cfc70bb905eedc7a1b0da2f9ab1122
[ "MIT" ]
4
2017-04-30T11:26:49.000Z
2020-01-31T03:44:16.000Z
src/handlers/institution_handlers.py
SAMcCARDC/RAiD-API
d4308d11f0cfc70bb905eedc7a1b0da2f9ab1122
[ "MIT" ]
1
2018-07-23T05:31:50.000Z
2018-07-23T05:31:50.000Z
src/handlers/institution_handlers.py
SAMcCARDC/RAiD-API
d4308d11f0cfc70bb905eedc7a1b0da2f9ab1122
[ "MIT" ]
2
2019-12-10T06:39:38.000Z
2021-11-22T04:18:20.000Z
import os import sys import logging import datetime import boto3 from boto3.dynamodb.conditions import Key, Attr import json import urllib from helpers import web_helpers from helpers import raid_helpers import settings # Set Logging Level logger = logging.getLogger() logger.setLevel(logging.ERROR) def get_institut...
38.239669
125
0.628269
import os import sys import logging import datetime import boto3 from boto3.dynamodb.conditions import Key, Attr import json import urllib from helpers import web_helpers from helpers import raid_helpers import settings # Set Logging Level logger = logging.getLogger() logger.setLevel(logging.ERROR) def get_institut...
0
0
0
0
0
0
0
0
0
f4a389b3b38fb1189fc8cbd20d10aca7f2931fe5
2,866
py
Python
gravity.py
ForrestHurley/nBodySystem
72e77665f5e181811a111872debd50eb9b263fa2
[ "MIT" ]
null
null
null
gravity.py
ForrestHurley/nBodySystem
72e77665f5e181811a111872debd50eb9b263fa2
[ "MIT" ]
null
null
null
gravity.py
ForrestHurley/nBodySystem
72e77665f5e181811a111872debd50eb9b263fa2
[ "MIT" ]
null
null
null
import numpy as np if __name__ == "__main__": test_gravity = particle_particle(np.array([10,0,0,0])) print(test_gravity.get_acceleration(np.array([[0,0,0],[1,1,1],[10,0,0],[20,0,0]])))
39.260274
104
0.659456
import numpy as np from itertools import permutations, product class gravity(object): def __init__(self, masses, max_acceleration = 1e4, verbose = True): self.G = 1 #6.6719199e-11 #https://www.nature.com/articles/nature13433 self.masses = masses self.max_acceleration = max_acceleration ...
0
0
0
2,536
0
0
0
22
114
e6dd7225042ad071f47562067db21b1dac8bd0f0
39
py
Python
elasticsearch_client/esconfig.py
sLeeNguyen/smart-parking
0ff10171c0a5f264de3e75c20aef565f75db8fa4
[ "Apache-2.0" ]
null
null
null
elasticsearch_client/esconfig.py
sLeeNguyen/smart-parking
0ff10171c0a5f264de3e75c20aef565f75db8fa4
[ "Apache-2.0" ]
null
null
null
elasticsearch_client/esconfig.py
sLeeNguyen/smart-parking
0ff10171c0a5f264de3e75c20aef565f75db8fa4
[ "Apache-2.0" ]
null
null
null
ES_HOST = "localhost" ES_PORT = "9200"
13
21
0.692308
ES_HOST = "localhost" ES_PORT = "9200"
0
0
0
0
0
0
0
0
0
2931cd35d398e2a36cc2229b72bbf9e8332e55b0
999
py
Python
bin/checker.py
ADKosm/LMutex
7b4bb125fec7345ac26dc9e4bf71803d0232ad59
[ "MIT" ]
null
null
null
bin/checker.py
ADKosm/LMutex
7b4bb125fec7345ac26dc9e4bf71803d0232ad59
[ "MIT" ]
null
null
null
bin/checker.py
ADKosm/LMutex
7b4bb125fec7345ac26dc9e4bf71803d0232ad59
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os data = [] for file in os.listdir('log'): with open("log/{0}".format(file), 'r') as log: for line in log: data.append(Event(line)) data.sort(key=lambda x: x.time) checkAcuireReleaseIntersect(data) checkAquireAfterRequest(data) print ("All tests were passed!")
23.232558
50
0.545546
#!/usr/bin/python3 import os class Event: def __init__(self, line): spline = line.split() self.id = int(spline[1]) self.type = int(spline[2]) self.time = int(spline[3]) def checkAcuireReleaseIntersect(events): lockNum = 0 for e in events: if e.type == 6: # Acquire ...
0
0
0
154
0
459
0
0
69
cd4a3a197b93a5704437b2c84b9c583eb7c824ca
1,087
py
Python
setup.py
casimp/lightct
e42933350de8e85f561397fb1aeeb76243106998
[ "MIT" ]
3
2016-03-20T12:46:44.000Z
2020-12-09T20:06:01.000Z
setup.py
casimp/lightct
e42933350de8e85f561397fb1aeeb76243106998
[ "MIT" ]
4
2016-03-20T12:09:07.000Z
2017-07-28T15:08:34.000Z
setup.py
casimp/lightct
e42933350de8e85f561397fb1aeeb76243106998
[ "MIT" ]
1
2020-12-11T13:33:24.000Z
2020-12-11T13:33:24.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup with open('description') as readme_file: long_description = readme_file.read() setup( name='lightct', version='0.1.0', author='C. Simpson, L.Courtois', author_email='c.a.simpson01@gmail.com', package...
33.96875
71
0.645814
try: from setuptools import setup except ImportError: from distutils.core import setup with open('description') as readme_file: long_description = readme_file.read() setup( name='lightct', version='0.1.0', author='C. Simpson, L.Courtois', author_email='c.a.simpson01@gmail.com', package...
0
0
0
0
0
0
0
0
0