hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
d57370505dd6c699ee24135375eff7199d64f441
1,058
py
Python
metricsML/MetricsML.py
Elscha/MetricsML
2ecbc42ad7bd2465f4f75658f44452ea5c552c3b
[ "Apache-2.0" ]
null
null
null
metricsML/MetricsML.py
Elscha/MetricsML
2ecbc42ad7bd2465f4f75658f44452ea5c552c3b
[ "Apache-2.0" ]
null
null
null
metricsML/MetricsML.py
Elscha/MetricsML
2ecbc42ad7bd2465f4f75658f44452ea5c552c3b
[ "Apache-2.0" ]
null
null
null
''' Created on 03.12.2018 @author: el-sharkawy ''' from metricsML import DataConvertor from metricsML import MachineLearning from metricsML import Normalizator import numpy as np ### File Operations ### def convertTwoCSVFiles(folder="data/", goodfile="all_good_output.csv", badfile="all_error_output.csv"): DataCon...
37.785714
142
0.793951
0
0
0
0
0
0
0
0
226
0.213611
d573e4185d520f3b0945c93a25dc8a1b391318cd
51
py
Python
unsplash_get/__init__.py
streanger/unsplash_get
9de91c973fb9c449db9795fdd83cae7843f6f1e8
[ "MIT" ]
3
2020-07-23T11:33:31.000Z
2020-08-31T23:06:56.000Z
unsplash_get/__init__.py
streanger/unsplash_get
9de91c973fb9c449db9795fdd83cae7843f6f1e8
[ "MIT" ]
null
null
null
unsplash_get/__init__.py
streanger/unsplash_get
9de91c973fb9c449db9795fdd83cae7843f6f1e8
[ "MIT" ]
null
null
null
from .unsplash_get import save_img, search, example
51
51
0.843137
0
0
0
0
0
0
0
0
0
0
d5749c06941decb603c446b4a6e5e526c6140f9d
2,099
py
Python
sqlib.py
OwnerHunter/round2bot
634bf2592216903c12636becdd91141d4b0588f7
[ "MIT" ]
null
null
null
sqlib.py
OwnerHunter/round2bot
634bf2592216903c12636becdd91141d4b0588f7
[ "MIT" ]
null
null
null
sqlib.py
OwnerHunter/round2bot
634bf2592216903c12636becdd91141d4b0588f7
[ "MIT" ]
null
null
null
import sqlite3 class Table: def __init__(self, table, columns: tuple): self.conn = sqlite3.connect('data.db') self.c = self.conn.cursor() self.table = table self.columns = columns def get(self, id_str, columns: str='*'): self.c.execute("SELECT {0} FROM {1} WHERE id=:id...
30.42029
102
0.519771
1,933
0.920915
0
0
0
0
0
0
286
0.136255
d57570a3a363af59763a311ae6f93a074dbbc0af
454
py
Python
HRserver/app.py
Tinformant/HalliganReviews
adf15793c4cb963aa53e0b20ce3790e1f45ed1da
[ "MIT" ]
3
2020-06-09T21:31:54.000Z
2020-06-10T02:13:37.000Z
HRserver/app.py
Jarvis7923/HalliganReviews
adf15793c4cb963aa53e0b20ce3790e1f45ed1da
[ "MIT" ]
5
2020-06-09T22:43:14.000Z
2022-02-27T10:10:30.000Z
HRserver/app.py
Jarvis7923/HalliganReviews
adf15793c4cb963aa53e0b20ce3790e1f45ed1da
[ "MIT" ]
3
2020-06-03T02:00:07.000Z
2021-04-13T15:44:46.000Z
from flask import Flask from flask_restful import Api from resources.searchRes import searchRes from resources.reviewRes import reviewRes from resources.detailRes import detailRes from resources.manage import manageRes app = Flask(__name__) api = Api(app) api.add_resource(searchRes, '/courses/<name>') api.add_resour...
26.705882
46
0.801762
0
0
0
0
0
0
0
0
44
0.096916
d5766034b6755a99fc3c93ef4f55c3a9891d426c
2,259
py
Python
tests/test_client.py
bluethon/flasky-learn
db2e966e9b32fa7c0d34472a24c048cc27a0ff39
[ "MIT" ]
1
2017-10-22T02:36:18.000Z
2017-10-22T02:36:18.000Z
tests/test_client.py
bluethon/flasky-learn
db2e966e9b32fa7c0d34472a24c048cc27a0ff39
[ "MIT" ]
null
null
null
tests/test_client.py
bluethon/flasky-learn
db2e966e9b32fa7c0d34472a24c048cc27a0ff39
[ "MIT" ]
2
2017-10-26T08:18:57.000Z
2018-09-04T02:17:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : 2016-07-14 15:27 # @Author : Bluethon (j5088794@gmail.com) # @Link : http://github.com/bluethon import re import unittest from flask import url_for from app import create_app, db from app.models import User, Role class FlaskClientTestCase(unittest...
32.73913
81
0.611775
2,152
0.882329
0
0
0
0
0
0
871
0.357114
d578d5f1779229089045f31733bae711e4fd76ce
867
py
Python
vagrancy/__init__.py
seeraven/vagrancyCtrl
1908ab913dd896a45cc0582ebf356eba071fb2ab
[ "BSD-3-Clause-Clear" ]
null
null
null
vagrancy/__init__.py
seeraven/vagrancyCtrl
1908ab913dd896a45cc0582ebf356eba071fb2ab
[ "BSD-3-Clause-Clear" ]
null
null
null
vagrancy/__init__.py
seeraven/vagrancyCtrl
1908ab913dd896a45cc0582ebf356eba071fb2ab
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- """ Module for accessing a vagrancy instance. Vagrancy stores the boxes for different versions and different providers in the following way: - Each box has a unique name consisting of ``<username>/<name>``. - Each box has one or more versions. The version can be anything like a semanti...
36.125
85
0.707036
0
0
0
0
0
0
0
0
865
0.997693
d579c5b3c6c69430ad1dba477769dc68edc6b543
3,114
py
Python
plagiarismdetector/tokenizer.py
singhay/plagiarism-detector
fca69af56974bb1ff6e62cfa81eea521df659b61
[ "MIT" ]
null
null
null
plagiarismdetector/tokenizer.py
singhay/plagiarism-detector
fca69af56974bb1ff6e62cfa81eea521df659b61
[ "MIT" ]
1
2018-02-27T02:34:26.000Z
2018-02-27T02:34:26.000Z
plagiarismdetector/tokenizer.py
singhay/plagiarism-detector
fca69af56974bb1ff6e62cfa81eea521df659b61
[ "MIT" ]
null
null
null
import re class TreebankWordTokenizer: """ The Treebank tokenizer uses regular expressions to tokenize text as in Penn Treebank. This is the method that is invoked by ``tokenize()``. This tokenizer performs the following steps: - split standard contractions, e.g. ``don't`` -> ``do n't`` and ``th...
35.793103
97
0.477521
3,101
0.995825
0
0
0
0
0
0
1,613
0.517983
d57a504252f56e17f3bbc279ef28f03c57999728
45
py
Python
platform/core/polyaxon/libs/repos/git/exceptions.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/libs/repos/git/exceptions.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/polyaxon/libs/repos/git/exceptions.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
class GitCloneException(Exception): pass
15
35
0.777778
44
0.977778
0
0
0
0
0
0
0
0
d57c7e00fb1f3b54590c0aed7560a46aa3cf7ab3
628
py
Python
test_project/rename_forward/urls.py
epoiate/django-autocomplete-light
6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886
[ "MIT" ]
1,368
2015-01-03T09:52:33.000Z
2022-03-27T09:06:00.000Z
test_project/rename_forward/urls.py
epoiate/django-autocomplete-light
6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886
[ "MIT" ]
919
2015-01-01T05:17:48.000Z
2022-03-25T22:41:14.000Z
test_project/rename_forward/urls.py
epoiate/django-autocomplete-light
6cefd5ea73d1ef2c1c800cd1fdcf6cc6fbe27886
[ "MIT" ]
469
2015-01-19T21:40:30.000Z
2022-03-26T17:27:40.000Z
from dal import autocomplete from django.conf.urls import url from .models import TModel class LinkedDataView(autocomplete.Select2QuerySetView): def get_queryset(self): qs = super(LinkedDataView, self).get_queryset() possessor = self.forwarded.get('possessor', None) secret = self.forwar...
20.258065
57
0.632166
396
0.630573
0
0
0
0
0
0
51
0.08121
d57d8c0b27441b3e6a130ef67c3109a4e8ff4d0b
1,319
py
Python
script/data_annotation/annotate_cluster.py
carushi/Catactor
27d35261249daf695659f2f329aa470922f60922
[ "MIT" ]
null
null
null
script/data_annotation/annotate_cluster.py
carushi/Catactor
27d35261249daf695659f2f329aa470922f60922
[ "MIT" ]
null
null
null
script/data_annotation/annotate_cluster.py
carushi/Catactor
27d35261249daf695659f2f329aa470922f60922
[ "MIT" ]
null
null
null
import os import pandas as pd import sys gse_number = sys.argv[1] for dirpath, dnames, fnames in os.walk("./"+gse_number+'/'): all = None for fname in fnames: tail = 'celltype_annotation' if tail in fname: continue if 'cell_ng' in fname and 'meta' in fname: df = ...
43.966667
139
0.595148
0
0
0
0
0
0
0
0
232
0.175891
d57e3da3875c01e0d6644b979fd57f301a325ded
3,137
py
Python
pentestly-master/modules/pentestly/login.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
8
2019-02-17T20:11:46.000Z
2019-10-18T06:27:16.000Z
pentestly-master/modules/pentestly/login.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
null
null
null
pentestly-master/modules/pentestly/login.py
Marzooq13579/Hack-Gadgets
4b9351c4465f3e01fb0390b1e86dfe7c26237a19
[ "MIT" ]
4
2019-02-17T23:00:18.000Z
2019-10-18T06:27:14.000Z
from __future__ import print_function import sys import os from libs.pentestlymodule import PentestlyModule class Module(PentestlyModule): meta = { 'name': 'User Login', 'author': 'Cory Duplantis (@ctfhacker)', 'description': 'Attempts to login to all hosts with port 445 using given crede...
39.708861
125
0.555308
3,025
0.964297
0
0
0
0
0
0
766
0.244182
d57ffd90b51e46dfbf8af28cb4ecc6af09fd1c10
194
py
Python
Python/11.container-with-most-water.py
Mo-Shakib/LeetCode
a3f1cfda648d9abf504e9d79697f1ca433c48460
[ "Apache-2.0" ]
1
2022-01-10T01:10:03.000Z
2022-01-10T01:10:03.000Z
Python/11.container-with-most-water.py
Mo-Shakib/LeetCode
a3f1cfda648d9abf504e9d79697f1ca433c48460
[ "Apache-2.0" ]
3
2022-01-10T18:24:21.000Z
2022-01-10T22:38:38.000Z
Python/11.container-with-most-water.py
Mo-Shakib/LeetCode
a3f1cfda648d9abf504e9d79697f1ca433c48460
[ "Apache-2.0" ]
2
2022-01-10T05:06:22.000Z
2022-01-14T06:20:09.000Z
# # @lc app=leetcode id=11 lang=python3 # # [11] Container With Most Water # # @lc code=start class Solution: def maxArea(self, height: List[int]) -> int: # @lc code=end
13.857143
48
0.592784
64
0.329897
0
0
0
0
0
0
102
0.525773
d581a27c402119743d0fd709f001a408b09eda63
1,092
py
Python
blink_dl.py
CodeYouMust/blink_cam_vision
de5838e35d15a4ba3d4cd38b633e3f35decbafc5
[ "BSD-3-Clause" ]
1
2019-09-07T21:31:03.000Z
2019-09-07T21:31:03.000Z
blink_dl.py
CodeYouMust/blink_cam_vision
de5838e35d15a4ba3d4cd38b633e3f35decbafc5
[ "BSD-3-Clause" ]
null
null
null
blink_dl.py
CodeYouMust/blink_cam_vision
de5838e35d15a4ba3d4cd38b633e3f35decbafc5
[ "BSD-3-Clause" ]
null
null
null
from fire import Fire from cameras.blink_api import BlinkApi import time from util.polite_access import PoliteAccess POLITE_DL_WAIT_SECONDS = 60 * 1.5 polite = PoliteAccess('blink-api-access') def dl_blink_videos(user, pwd, fldr): x = BlinkApi() x.login(user, pwd) x.dl_all_videos(fldr) polite.set_acc...
25.395349
78
0.690476
0
0
0
0
0
0
0
0
160
0.14652
d581c7865172c3d3afbc5893affb2782540a00a3
5,177
py
Python
pymapadmin/grpc/admin_grpc.py
icgood/pymap-admin
6cde908af84f52d4cd591a80503a19f784e47a35
[ "MIT" ]
2
2021-11-17T22:28:46.000Z
2021-11-18T14:47:07.000Z
pymapadmin/grpc/admin_grpc.py
icgood/pymap-admin
6cde908af84f52d4cd591a80503a19f784e47a35
[ "MIT" ]
null
null
null
pymapadmin/grpc/admin_grpc.py
icgood/pymap-admin
6cde908af84f52d4cd591a80503a19f784e47a35
[ "MIT" ]
null
null
null
# Generated by the Protocol Buffers compiler. DO NOT EDIT! # source: pymapadmin/grpc/admin.proto # plugin: grpclib.plugin.main import abc import typing import grpclib.const import grpclib.client if typing.TYPE_CHECKING: import grpclib.server import pymapadmin.grpc.admin_pb2 class SystemBase(abc.ABC): @abc....
35.703448
157
0.639946
4,878
0.942245
0
0
1,101
0.212671
957
0.184856
1,134
0.219046
d583ddd9da1e8a66b1c4175158f5b3a31784216e
622
py
Python
component/logging_.py
laashub-sua/businesser
5c50daa561fe35c74d1ce1a2ba0e645f769a165c
[ "Apache-2.0" ]
1
2020-12-17T10:56:44.000Z
2020-12-17T10:56:44.000Z
component/logging_.py
laashub-sua/businesser
5c50daa561fe35c74d1ce1a2ba0e645f769a165c
[ "Apache-2.0" ]
1
2020-12-30T05:53:34.000Z
2020-12-30T05:53:34.000Z
component/logging_.py
laashub-sua/businesser
5c50daa561fe35c74d1ce1a2ba0e645f769a165c
[ "Apache-2.0" ]
null
null
null
import logging import os from logging.handlers import TimedRotatingFileHandler logging.basicConfig( level=logging.INFO ) def do_init(): from __init__ import app if not os.path.exists("logs"): os.mkdir("logs") formatter = logging.Formatter( "[%(asctime)s][%(filename)s:%(lineno)d][%(le...
23.923077
90
0.672026
0
0
0
0
0
0
0
0
119
0.191318
d58403c1fa4c0290dcdfef391ce8c75ae48bc48f
944
py
Python
backend/user/filters.py
sonpham08/dj_angular
17881978726969c31c61febc51f4b8a552323873
[ "MIT" ]
null
null
null
backend/user/filters.py
sonpham08/dj_angular
17881978726969c31c61febc51f4b8a552323873
[ "MIT" ]
9
2020-06-05T21:28:57.000Z
2022-02-12T12:30:39.000Z
backend/user/filters.py
sonpham08/dj_angular
17881978726969c31c61febc51f4b8a552323873
[ "MIT" ]
null
null
null
import django_filters from .models import User import coreapi import coreschema from django_filters.rest_framework import DjangoFilterBackend class UserFilter(DjangoFilterBackend): """ Overrides get_schema_fields() to show filter_fields in Swagger. """ def get_schema_fields(self, view): assert...
28.606061
70
0.608051
800
0.847458
0
0
0
0
0
0
265
0.28072
d5845720b89f922c6865488be9b0fe6954b474be
1,089
py
Python
ejemplos/7 hola mundo con imagenes/hola.py
gentooza/taller-licenciado-software
421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac
[ "CC-BY-3.0" ]
null
null
null
ejemplos/7 hola mundo con imagenes/hola.py
gentooza/taller-licenciado-software
421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac
[ "CC-BY-3.0" ]
null
null
null
ejemplos/7 hola mundo con imagenes/hola.py
gentooza/taller-licenciado-software
421ab6d23a945ef71b5a31c9d0a1c47b75a3ebac
[ "CC-BY-3.0" ]
null
null
null
#!/bin/python3 ''' Copyright 2022 Joaquín Cuéllar. This file is part of Hola Mundo Especial. Hola Mundo Especial 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 ...
33
102
0.724518
0
0
0
0
0
0
0
0
829
0.759853
d5846b72013188d68b2e5949bd8de4747ea8754d
1,824
py
Python
plugins/holland.lib.lvm/tests/xfs/test_snapshot.py
a5a351e7/holland
58a12a5ce10206eed9434ab42b02217de29784bb
[ "BSD-3-Clause" ]
1
2019-06-06T01:07:34.000Z
2019-06-06T01:07:34.000Z
plugins/holland.lib.lvm/tests/xfs/test_snapshot.py
a5a351e7/holland
58a12a5ce10206eed9434ab42b02217de29784bb
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.lib.lvm/tests/xfs/test_snapshot.py
a5a351e7/holland
58a12a5ce10206eed9434ab42b02217de29784bb
[ "BSD-3-Clause" ]
2
2015-12-04T12:17:59.000Z
2022-03-23T07:22:02.000Z
import shutil from nose.tools import * from holland.lib.lvm import LogicalVolume from holland.lib.lvm.snapshot import * from tests.constants import * class TestSnapshot(object): def setup(self): self.tmpdir = tempfile.mkdtemp() def teardown(self): shutil.rmtree(self.tmpdir) def test_snap...
34.415094
98
0.616776
1,672
0.916667
0
0
0
0
0
0
297
0.162829
d585e6b9ba2ab30b151e86f51487d51f7096feb6
4,094
py
Python
src/lecture10/output.py
wakky927/Computational-Engineering-B
3720d96668a32dc73f38ed0bc8afe4705452de9e
[ "MIT" ]
1
2021-05-03T09:11:35.000Z
2021-05-03T09:11:35.000Z
src/lecture10/output.py
wakky927/Computational-Engineering-B
3720d96668a32dc73f38ed0bc8afe4705452de9e
[ "MIT" ]
null
null
null
src/lecture10/output.py
wakky927/Computational-Engineering-B
3720d96668a32dc73f38ed0bc8afe4705452de9e
[ "MIT" ]
null
null
null
import os import numpy as np def grid(xp, yp, m, n, dt): os.makedirs(f'../../data/lecture10/dt_{round(dt, 3)}/{m}_{n}', exist_ok=True) grid_mat = np.stack([xp, yp]) np.savetxt( f'../../data/lecture10/dt_{round(dt, 3)}/{m}_{n}/grid.csv', grid_mat, delimiter=',', fmt='%.10f'...
28.430556
79
0.445774
0
0
0
0
0
0
0
0
1,752
0.427943
d586e0b9a83c43e39d9998f70d6cc8f9eb25632d
1,655
py
Python
mmaction/core/utils/dist_utils.py
sovrasov/mmaction2
055625bf6d6e06e9f811cc4f8b0332c18cebc98c
[ "Apache-2.0" ]
null
null
null
mmaction/core/utils/dist_utils.py
sovrasov/mmaction2
055625bf6d6e06e9f811cc4f8b0332c18cebc98c
[ "Apache-2.0" ]
null
null
null
mmaction/core/utils/dist_utils.py
sovrasov/mmaction2
055625bf6d6e06e9f811cc4f8b0332c18cebc98c
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import torch.distributed as dist from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors, _take_tensors from mmcv.runner import OptimizerHook def _allreduce_coalesced(tensors, world_size, bucket_size_mb=-1): if bucket_size_mb > 0: bucket_size_bytes = ...
34.479167
96
0.693656
432
0.261027
0
0
0
0
0
0
21
0.012689
d586f302acc1562c0c4ae689fc7c91008984ede8
469
py
Python
app/assets.py
tobymccann/flask-base
3a93a9171b07d97036d144df7c45397735789431
[ "MIT" ]
null
null
null
app/assets.py
tobymccann/flask-base
3a93a9171b07d97036d144df7c45397735789431
[ "MIT" ]
null
null
null
app/assets.py
tobymccann/flask-base
3a93a9171b07d97036d144df7c45397735789431
[ "MIT" ]
null
null
null
from flask_assets import Bundle app_css = Bundle('app.scss', filters='scss', output='css/app.css') app_js = Bundle('app.js', filters='jsmin', output='js/app.js') vendor_css = Bundle('vendor/semantic.css', 'vendor/components/*.css', output='css/vendor.css') vendor_js = Bundle('vendor/jquery-3.1.1.min.js', 'vendor/se...
42.636364
108
0.684435
0
0
0
0
0
0
0
0
258
0.550107
d5874bed0cd3c033a4979987b99271b1f947ea02
375
py
Python
ea_server/model/ea_function_model.py
tamirho/evo-delivery
02bc62401d63f5321fa4bc1ee9a83409f9948c97
[ "MIT" ]
null
null
null
ea_server/model/ea_function_model.py
tamirho/evo-delivery
02bc62401d63f5321fa4bc1ee9a83409f9948c97
[ "MIT" ]
15
2022-01-27T09:58:59.000Z
2022-03-29T17:19:18.000Z
ea_server/model/ea_function_model.py
tamirho/evo-delivery
02bc62401d63f5321fa4bc1ee9a83409f9948c97
[ "MIT" ]
1
2021-12-26T11:38:50.000Z
2021-12-26T11:38:50.000Z
from dataclasses import dataclass from typing import Callable, List # class representation of possible kwarg of a Deap function @dataclass class KwargModel: name: str type: str description: str # class representation of possible EA functions to choose @dataclass class EaFunctionModel: function: Call...
19.736842
59
0.762667
161
0.429333
0
0
183
0.488
0
0
116
0.309333
d58793b80ef5f72c4f7f559049461feeea80ac8d
107
py
Python
tutorials/prompt/placeholder.py
chouette254/quo
8979afd118e77d3d0f93f9fbe8711efada7158c5
[ "MIT" ]
5
2021-06-17T21:06:39.000Z
2022-03-11T06:45:51.000Z
tutorials/prompt/placeholder.py
chouette254/quo
8979afd118e77d3d0f93f9fbe8711efada7158c5
[ "MIT" ]
39
2021-07-19T19:36:18.000Z
2022-02-23T14:55:08.000Z
tutorials/prompt/placeholder.py
secretuminc/quo
c4f77d52f015c612d32ed0fc2fc79545af598f10
[ "MIT" ]
1
2021-05-31T17:19:15.000Z
2021-05-31T17:19:15.000Z
import quo from quo.widget.placeholder import * s = quo.Elicit() s.elicit("You said :", placeholder=grey)
17.833333
40
0.728972
0
0
0
0
0
0
0
0
12
0.11215
d587af9d25e5c593cce6ae428161bb61a3dfe55f
735
py
Python
scripts/uwds3_core_node.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
1
2021-06-08T02:55:15.000Z
2021-06-08T02:55:15.000Z
scripts/uwds3_core_node.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
null
null
null
scripts/uwds3_core_node.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import rospy import tf2_ros from tf2_ros import Buffer, TransformListener import numpy as np from sensor_msgs.msg import CameraInfo, Image, JointState from uwds3_msgs.msg import SceneChangesStamped from uwds3_core.underworlds_core import UnderworldsCore import message_filt...
26.25
57
0.721088
328
0.446259
0
0
0
0
0
0
122
0.165986
d58809adbdbf2a2fc2b413121b0fd593f92bae53
518
py
Python
pavo_cristatus/symbol_signature_replacer/__init__.py
MATTHEWFRAZER/pavo_cristatus
a4b96c0eb6c454fbe38d2092e29f63457a4ee955
[ "MIT" ]
null
null
null
pavo_cristatus/symbol_signature_replacer/__init__.py
MATTHEWFRAZER/pavo_cristatus
a4b96c0eb6c454fbe38d2092e29f63457a4ee955
[ "MIT" ]
null
null
null
pavo_cristatus/symbol_signature_replacer/__init__.py
MATTHEWFRAZER/pavo_cristatus
a4b96c0eb6c454fbe38d2092e29f63457a4ee955
[ "MIT" ]
null
null
null
from pavo_cristatus.dependency_injection.ploceidae_configurator import pavo_cristatus_dependency_wrapper from picidae import lazily_echo, access_attribute from pavo_cristatus.symbol_signature_replacer import symbol_signature_replacer dependency_module_name = "symbol_signature_replacer" __all__ = [dependency_module_n...
39.846154
116
0.839768
0
0
0
0
0
0
0
0
40
0.07722
d589965f796bd5e6baad650eddf2a9493846b256
3,438
py
Python
scripts/getPrototypeInfo.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
4
2016-06-03T18:41:43.000Z
2020-04-17T20:28:58.000Z
scripts/getPrototypeInfo.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
scripts/getPrototypeInfo.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # Copyright (c) 2014-2022 The Voxie Authors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
36.967742
100
0.689645
0
0
0
0
0
0
0
0
1,662
0.483421
d589a037968bcf740aed2dcef5dbc252418fcbd4
1,782
py
Python
apollo/components/event/models.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/components/event/models.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/components/event/models.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
import uuid from datetime import datetime import time import simplejson as json from blinker import signal from cassandra.cqlengine import columns, ValidationError from cassandra.cqlengine.models import Model from .general import ACTIONS_MAP class Event(Model): """ Event """ __table_name__ = 'event' ...
26.597015
88
0.662177
1,530
0.858586
0
0
637
0.357464
0
0
207
0.116162
d58a3c01fcf5f3a56967acb56a0aa33122e205fa
78
py
Python
nordestao/tests/fixtures.py
intelivix/pyne-workshop-scraping-web
c0696b669934eef2dbda81da3b7c058810041fa5
[ "MIT" ]
null
null
null
nordestao/tests/fixtures.py
intelivix/pyne-workshop-scraping-web
c0696b669934eef2dbda81da3b7c058810041fa5
[ "MIT" ]
null
null
null
nordestao/tests/fixtures.py
intelivix/pyne-workshop-scraping-web
c0696b669934eef2dbda81da3b7c058810041fa5
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def fixture_exemplo(): return 'not none'
9.75
22
0.717949
0
0
0
0
60
0.769231
0
0
10
0.128205
d58bfd0e20ee60c02c3420764a7d8d41f3f95eee
387
py
Python
2-4.bool_opr.py
iwhgao/python_practise
b85e5ffd8703faa04c5f1bd03c09ea4522e238f2
[ "Apache-2.0" ]
1
2017-08-30T09:06:41.000Z
2017-08-30T09:06:41.000Z
2-4.bool_opr.py
iwhgao/python_practise
b85e5ffd8703faa04c5f1bd03c09ea4522e238f2
[ "Apache-2.0" ]
null
null
null
2-4.bool_opr.py
iwhgao/python_practise
b85e5ffd8703faa04c5f1bd03c09ea4522e238f2
[ "Apache-2.0" ]
1
2018-10-08T06:13:51.000Z
2018-10-08T06:13:51.000Z
#!/usr/bin/python # -*- coding:utf-8 -*- # --------------------------- # Author: deangao # Copyright: 2016 deangao # Version: v1.0.0 # Created: 2016/2/15 # --------------------------- __author__ = 'deangao' ''' 布尔值操作-只要是一些逻辑运算操作 ''' # ---产生bool值--- bool1 = True bool2 = (2 > 3) print bool1, bool2 # ---逻辑运算--- # --...
13.821429
29
0.5323
0
0
0
0
0
0
0
0
300
0.683371
d58d09288e8a693fa23a5cc7bf11d95086946be2
11,038
py
Python
src/sos/substep_executor.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
null
null
null
src/sos/substep_executor.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
null
null
null
src/sos/substep_executor.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center # Distributed under the terms of the 3-clause BSD License. import contextlib import subprocess import sys import os from io import StringIO import zmq from .controller import close_socket, create_socket, send_messa...
35.152866
90
0.590959
0
0
232
0.021018
259
0.023464
0
0
4,018
0.364015
d58d12ad60defa24864c4dcc70d63506876a50bc
830
py
Python
pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
pytorch-frontend/caffe2/python/test/fakefp16_transform_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest from caffe2.python.fakefp16_transform_lib import fakeFp16FuseOps from caffe2.python import core class Transformer(unittest.TestCase): def test_fuse(self): net_swish = core.Net("tes...
33.2
71
0.654217
605
0.728916
0
0
0
0
0
0
107
0.128916
d58e3dacf06c22cbf3e53b3c6fce879593ab1ce8
12,546
py
Python
bert_ptrnet_coqa.py
yumere/for-QuAC
af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3
[ "MIT" ]
2
2019-07-30T15:38:24.000Z
2019-08-08T15:49:13.000Z
bert_ptrnet_coqa.py
yumere/for-QuAC
af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3
[ "MIT" ]
null
null
null
bert_ptrnet_coqa.py
yumere/for-QuAC
af1594a0856e20a526e3c3f383b1f8fbfdf7ddd3
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import argparse import logging import os import math import numpy as np import torch from pytorch_transformers import AdamW, WarmupLinearSchedule from pytorch_transformers import BertTokenizer from pytorch_transformers.modeling_bert import BertPreTraine...
45.129496
155
0.640682
3,419
0.272517
0
0
0
0
0
0
1,347
0.107365
d58e44cff21b274169bf4e894702c779f915b4ea
2,192
py
Python
sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
1
2021-04-05T17:38:42.000Z
2021-04-05T17:38:42.000Z
sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-containerregistry/samples/sample_repository_actions.py
romahamu/azure-sdk-for-python
a57c9f73b9121f79d317e1679b81fd460d6a25b8
[ "MIT" ]
1
2021-12-18T20:01:22.000Z
2021-12-18T20:01:22.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
35.934426
94
0.662865
1,711
0.780566
0
0
0
0
0
0
562
0.256387
d58f37dc64174329c72118114782bf793424350d
15,588
py
Python
python/ray/rllib/ddpg/models.py
songqing/ray
166000b089ee15d44635ebca00f12320f51ce587
[ "Apache-2.0" ]
1
2018-06-25T08:00:51.000Z
2018-06-25T08:00:51.000Z
python/ray/rllib/ddpg/models.py
songqing/ray
166000b089ee15d44635ebca00f12320f51ce587
[ "Apache-2.0" ]
1
2018-01-26T05:11:04.000Z
2018-01-26T05:11:04.000Z
python/ray/rllib/ddpg/models.py
songqing/ray
166000b089ee15d44635ebca00f12320f51ce587
[ "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 import numpy as np import tensorflow as tf import tensorflow.contrib.layers as layers from ray.rllib.models import ModelCatalog def _build_p_network(registry, inputs, dim_actions, config): """ map a...
39.765306
79
0.608417
11,780
0.75571
0
0
0
0
0
0
2,209
0.141712
d590209692c1d7210deccd9547439bea4bd197cf
51,866
py
Python
MindSPONGE/mindsponge/md/simulation.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
3
2021-11-10T06:17:50.000Z
2022-03-21T14:25:30.000Z
MindSPONGE/mindsponge/md/simulation.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
null
null
null
MindSPONGE/mindsponge/md/simulation.py
mindspore-ai/mindscience
b5269245915695de2d99fb290fef662c241db189
[ "Apache-2.0" ]
1
2021-12-05T11:41:29.000Z
2021-12-05T11:41:29.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
62.71584
120
0.578433
50,414
0.971855
0
0
0
0
0
0
2,623
0.050565
d593ab3607b07be083ccac7468de89c6a5f553aa
346
py
Python
download_wmt16_en_de_data.py
kgarg8/NMT-RNN
3c97f94dc244e7fbe188204793651ade36f4dced
[ "MIT" ]
1
2021-10-01T15:03:35.000Z
2021-10-01T15:03:35.000Z
download_wmt16_en_de_data.py
kgarg8/NMT-RNN
3c97f94dc244e7fbe188204793651ade36f4dced
[ "MIT" ]
null
null
null
download_wmt16_en_de_data.py
kgarg8/NMT-RNN
3c97f94dc244e7fbe188204793651ade36f4dced
[ "MIT" ]
null
null
null
from datasets import load_dataset dataset = load_dataset('wmt16', 'de-en') base = 'data/wmt16_en_de/' with open(base + 'test.en','w') as en: for data in dataset['test']['translation']: en.write(data['en']+'\n') with open(base + 'test.de','w') as de: for data in dataset['test']['translation']: ...
28.833333
47
0.615607
0
0
0
0
0
0
0
0
111
0.320809
d594e3e8fe7c45b6ff37f0de5953a37cae49e1bc
1,771
py
Python
WordVectorFetcher.py
whosxavierwu/Chinese-Word-Vectors
7841eb6a4ec235662828b3cb13f45956c28f2a3c
[ "Apache-2.0" ]
null
null
null
WordVectorFetcher.py
whosxavierwu/Chinese-Word-Vectors
7841eb6a4ec235662828b3cb13f45956c28f2a3c
[ "Apache-2.0" ]
null
null
null
WordVectorFetcher.py
whosxavierwu/Chinese-Word-Vectors
7841eb6a4ec235662828b3cb13f45956c28f2a3c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Created by: wuzewei # Created on: 2019/3/25 0025 from gensim.models import KeyedVectors import numpy as np from pyhanlp import HanLP class WordVectorFetcher: def __init__(self, filename): self.wv_filename = filename self.wv = None def init(self): self.wv = Ke...
33.415094
126
0.667984
985
0.47333
0
0
0
0
0
0
804
0.386353
d59522b920665ba6dfb6d6975bb0f59df3dd2148
732
py
Python
scipy/fftpack/helper.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/fftpack/helper.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/fftpack/helper.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
__all__ = ['fftshift', 'ifftshift', 'fftfreq', 'rfftfreq'] from numpy import array from numpy.fft.helper import fftshift, ifftshift, fftfreq def rfftfreq(n, d=1.0): """ rfftfreq(n, d=1.0) -> f DFT sample frequencies (for usage with rfft,irfft). The returned float array contains the frequency bins in ...
34.857143
86
0.61612
0
0
0
0
0
0
0
0
472
0.644809
d595973d050f83ac64d0631fb100031b6ece759a
158
py
Python
micro_shop/staff/urls.py
SlavaSkvortsov/micro-shop
fd8ac23550da9be277a9234464fdab1213356f3d
[ "MIT" ]
1
2021-06-17T15:11:03.000Z
2021-06-17T15:11:03.000Z
micro_shop/staff/urls.py
SlavaSkvortsov/micro-shop
fd8ac23550da9be277a9234464fdab1213356f3d
[ "MIT" ]
7
2020-06-30T11:25:28.000Z
2021-06-09T18:51:55.000Z
micro_shop/staff/urls.py
SlavaSkvortsov/micro-shop
fd8ac23550da9be277a9234464fdab1213356f3d
[ "MIT" ]
5
2020-10-02T20:01:43.000Z
2021-06-21T08:57:29.000Z
from django.urls import path from .views import UserProfileUpdate urlpatterns = [ path('<int:pk>/', UserProfileUpdate.as_view(), name='profile_url') ]
17.555556
70
0.727848
0
0
0
0
0
0
0
0
24
0.151899
d5984597e026da67fe45ea35e3d5d4f7f24dc819
1,083
py
Python
common_functions.py
KirillYabl/Comics_publisher
85df6020f24fc5984f28ce0f875485e4f421f3a2
[ "MIT" ]
null
null
null
common_functions.py
KirillYabl/Comics_publisher
85df6020f24fc5984f28ce0f875485e4f421f3a2
[ "MIT" ]
null
null
null
common_functions.py
KirillYabl/Comics_publisher
85df6020f24fc5984f28ce0f875485e4f421f3a2
[ "MIT" ]
null
null
null
import requests def load_image(url, path): """Load image by url to file. Params -------------------------------------------- :param url: str Url with image. :param path: str Path, where image will be saved. -------------------------------------------- """ response = request...
25.186047
69
0.597415
0
0
0
0
0
0
0
0
583
0.538319
d599ecfbc81eccc7acb2cf1afb0c4d9b6fde3f7a
736
py
Python
input_output/gpio_input.py
rakibulmdalam/IOT-Hardware-Abstraction-Layer
4d344a82aa94ae561a7c2889f942c6a892e6810e
[ "MIT" ]
1
2018-06-12T15:40:45.000Z
2018-06-12T15:40:45.000Z
input_output/gpio_input.py
UyumazHakan/Hardware-Abstraction-Platform
52f13df333351516a88497e4a655ee1333abe7eb
[ "MIT" ]
null
null
null
input_output/gpio_input.py
UyumazHakan/Hardware-Abstraction-Platform
52f13df333351516a88497e4a655ee1333abe7eb
[ "MIT" ]
null
null
null
from .gpio_input_output import * from time import sleep from threading import Timer, Thread class GPIOInput(GPIOInputOutput): def __init__(self, config): super(GPIOInput, self).__init__(config) if self.config["gpiopullupdown"] != "none": GPIO.setup(self.pin, GPIO.IN, \ pull_up_down = GPIO.PUD_UP if self.co...
27.259259
86
0.736413
640
0.869565
0
0
0
0
0
0
42
0.057065
d59beefcb5d771dbc0b133551011f217f29ab97f
964
py
Python
os_scrapy_linkextractor/lx_extensions/regex.py
Ghamster0/scrapy-linkextractor
11cd09c30e1a0d7f18474f240dc974488fb17c63
[ "MIT" ]
2
2020-07-20T03:54:01.000Z
2020-07-29T12:00:59.000Z
os_scrapy_linkextractor/lx_extensions/regex.py
Ghamster0/os-scrapy-linkextractor
11cd09c30e1a0d7f18474f240dc974488fb17c63
[ "MIT" ]
1
2020-07-21T03:14:02.000Z
2020-07-21T03:14:02.000Z
os_scrapy_linkextractor/lx_extensions/regex.py
Ghamster0/os-scrapy-linkextractor
11cd09c30e1a0d7f18474f240dc974488fb17c63
[ "MIT" ]
1
2020-07-21T01:17:56.000Z
2020-07-21T01:17:56.000Z
from os_scrapy_linkextractor.linkextractors.regex import RegexLinkExtractor from os_scrapy_linkextractor.lx_extensions import LinkExtractorExtension class ReLinkExtractorExtension(LinkExtractorExtension): def __init__(self): self.name = "re" super(ReLinkExtractorExtension, self).__init__(RegexLink...
34.428571
88
0.640041
812
0.842324
0
0
69
0.071577
0
0
79
0.08195
d59cd017a36d985975d03a9f718909fa314e7e24
475
py
Python
01_binary_search.py
burakaslantas/Grokking-Algorithms
2ecf73a683b11288d419cc1d8dc665ab2240e8bc
[ "MIT" ]
null
null
null
01_binary_search.py
burakaslantas/Grokking-Algorithms
2ecf73a683b11288d419cc1d8dc665ab2240e8bc
[ "MIT" ]
null
null
null
01_binary_search.py
burakaslantas/Grokking-Algorithms
2ecf73a683b11288d419cc1d8dc665ab2240e8bc
[ "MIT" ]
null
null
null
def binary_search(array, searched_value): start = 0 end = len(array) - 1 while(start <= end): mid = (start + end) // 2 guess = array[mid] if(searched_value == guess): return mid elif(searched_value < guess): end = mid - 1 elif(searched_value >...
22.619048
41
0.555789
0
0
0
0
0
0
0
0
0
0
d59d2c94661a033f56d6a553671b7ccc14da900f
1,210
py
Python
variables.py
FoRavel/test-python
8c4f01a7f1acd2c85893f7d53880a8c26ff62a24
[ "Unlicense" ]
null
null
null
variables.py
FoRavel/test-python
8c4f01a7f1acd2c85893f7d53880a8c26ff62a24
[ "Unlicense" ]
null
null
null
variables.py
FoRavel/test-python
8c4f01a7f1acd2c85893f7d53880a8c26ff62a24
[ "Unlicense" ]
null
null
null
#Exercice 4 t1=[100,28,31,1,31,30,31,31,30,31,30,31] #a)Compter nombre éléments non nuls compteur = 0 for i in range(len(t1)): if t1[i] != 0: compteur = compteur + 1 print(compteur) #b)Le plus grand élément max = max(t1) #c)La position p du plus petit élément plusPetit = min(t1) p = 0 for i in range(len(...
20.862069
83
0.642975
0
0
0
0
0
0
0
0
386
0.316913
d5a0090aa43ff53c9b28a557356175161cf42d2f
736
py
Python
falseSubmission.py
suhailnajeeb/pneumothorax-lungnet
eb3cafcef74e3840a5b013727d6cb39d0062f7ee
[ "MIT" ]
null
null
null
falseSubmission.py
suhailnajeeb/pneumothorax-lungnet
eb3cafcef74e3840a5b013727d6cb39d0062f7ee
[ "MIT" ]
null
null
null
falseSubmission.py
suhailnajeeb/pneumothorax-lungnet
eb3cafcef74e3840a5b013727d6cb39d0062f7ee
[ "MIT" ]
null
null
null
import pandas as pd import glob2 import os PATH_VAL = '..\\Data\\dicom-images-test\\' CSVFILE = '..\\Data\\kanvari.csv' SUBCSV = '..\\out\\submission.csv' val = glob2.glob(os.path.join(PATH_VAL,'**/*.dcm')) df = pd.read_csv('..\\Data\\kanvari.csv') ids = [] rles = [] # Issue: f = '1.2.276.0.7230010.3.1.4.8323329....
20.444444
69
0.558424
0
0
0
0
0
0
0
0
234
0.317935
d5a07c9caf586abadb82cefa679b347214d86c90
12,967
py
Python
aizynthfinder/analysis/routes.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
219
2020-06-15T08:04:53.000Z
2022-03-31T09:02:47.000Z
aizynthfinder/analysis/routes.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
56
2020-08-14T14:50:42.000Z
2022-03-22T12:49:06.000Z
aizynthfinder/analysis/routes.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
58
2020-06-15T13:36:42.000Z
2022-03-21T06:18:02.000Z
""" Module containing classes to store and manipulate collections of synthetic routes. """ from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from route_distances.clustering import ClusteringHelper from route_distances.route_distances import route_distances_calculator from aizynthf...
37.915205
102
0.632529
12,168
0.938382
0
0
1,786
0.137734
0
0
4,121
0.317807
d5a1131395736b2e09683a257a59f8aeb1dd31b9
15,570
py
Python
specutils/manipulation/resample.py
parejkoj/specutils
53a00def68882d9e91044d00a043f1bff1a046fd
[ "BSD-3-Clause" ]
null
null
null
specutils/manipulation/resample.py
parejkoj/specutils
53a00def68882d9e91044d00a043f1bff1a046fd
[ "BSD-3-Clause" ]
null
null
null
specutils/manipulation/resample.py
parejkoj/specutils
53a00def68882d9e91044d00a043f1bff1a046fd
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod import numpy as np from scipy.interpolate import CubicSpline from astropy.units import Quantity from astropy.nddata import StdDevUncertainty, VarianceUncertainty, InverseVariance from ..spectra import Spectrum1D __all__ = ['ResamplerBase', 'FluxConservingResampler', 'Li...
38.06846
108
0.634297
15,179
0.974888
0
0
1,193
0.076622
0
0
9,488
0.609377
d5a1f8e45bc2fd24ac139bfff6fce49d306cde0d
907
py
Python
gmso/tests/test_gsd.py
zijiewu3/gmso
49217ca8daa6c8b01f6bc667d271a321b6f6f16a
[ "MIT" ]
1
2020-11-08T23:50:09.000Z
2020-11-08T23:50:09.000Z
gmso/tests/test_gsd.py
zijiewu3/gmso
49217ca8daa6c8b01f6bc667d271a321b6f6f16a
[ "MIT" ]
null
null
null
gmso/tests/test_gsd.py
zijiewu3/gmso
49217ca8daa6c8b01f6bc667d271a321b6f6f16a
[ "MIT" ]
null
null
null
import unyt as u import pytest from gmso.formats.gsd import write_gsd from gmso.external.convert_parmed import from_parmed from gmso.tests.base_test import BaseTest from gmso.utils.io import get_fn from gmso.utils.io import import_, has_gsd, has_parmed if has_parmed: pmd = import_('parmed') @pytest.mark.skipif(...
30.233333
69
0.702315
472
0.520397
0
0
606
0.668137
0
0
166
0.183021
d5a265575d027993c7c43d372f8dbcbce4bf1072
3,283
py
Python
src/utils/utilities.py
ShivangMathur1/Face-Recognition-System
3a7eb1af8830d6c36218652ed30edd8a49b7bb4d
[ "MIT" ]
null
null
null
src/utils/utilities.py
ShivangMathur1/Face-Recognition-System
3a7eb1af8830d6c36218652ed30edd8a49b7bb4d
[ "MIT" ]
3
2022-01-15T06:46:26.000Z
2022-02-23T11:14:03.000Z
src/utils/utilities.py
ShivangMathur1/Face-Recognition-System
3a7eb1af8830d6c36218652ed30edd8a49b7bb4d
[ "MIT" ]
3
2022-01-11T08:33:15.000Z
2022-02-21T09:26:26.000Z
from json import load import os from datetime import datetime import cv2 import requests def get_user_id(name, creds): student_url = 'http://127.0.0.1:8080/api/students' student_details = requests.get(student_url, data={'first_name': name}, auth=(creds[0], creds[1]), params={'first_name': name}).json() if ...
33.845361
163
0.570819
0
0
0
0
0
0
0
0
992
0.302163
d5a43ee3c91d95efecf4342234f30ff3f2618e78
3,584
py
Python
tests/test_models/test_stylegan1.py
shinya7y/mmgeneration
c3b9e0af29d0117e27b18b712b0ddbf343275859
[ "Apache-2.0" ]
1
2021-05-27T13:04:41.000Z
2021-05-27T13:04:41.000Z
tests/test_models/test_stylegan1.py
shinya7y/mmgeneration
c3b9e0af29d0117e27b18b712b0ddbf343275859
[ "Apache-2.0" ]
null
null
null
tests/test_models/test_stylegan1.py
shinya7y/mmgeneration
c3b9e0af29d0117e27b18b712b0ddbf343275859
[ "Apache-2.0" ]
null
null
null
import math import pytest import torch from mmgen.models import build_model # from mmgen.models.gans import StyleGANV1 class TestStyleGANV1: @classmethod def setup_class(cls): cls.generator_cfg = dict( type='StyleGANv1Generator', out_size=32, style_channels=512) cls.discriminat...
37.333333
79
0.538225
3,459
0.965123
0
0
2,400
0.669643
0
0
360
0.100446
d5a5bfc69f63922f80d7abc5218c00111e9972c6
7,658
py
Python
generated-libraries/python/netapp/active_directory/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/active_directory/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/active_directory/__init__.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.connection import NaConnection from active_directory_account_get_iter_key_td import ActiveDirectoryAccountGetIterKeyTd # 1 properties from active_directory_account_config import ActiveDirectoryAccountConfig # 5 properties class ActiveDirectoryConnection(NaConnection): def active_directory_account_...
51.743243
156
0.644685
7,422
0.969183
0
0
0
0
0
0
5,237
0.68386
d5a5d9f285d99e4d51d173ac72c21fd4c540fc07
7,891
py
Python
script/src/page_categories/page_categories.py
ncatlab/nlab
8e35d93f6e34dd3d21c59bbb76b40b334365deda
[ "Ruby" ]
78
2015-05-14T06:27:13.000Z
2022-03-27T16:35:09.000Z
script/src/page_categories/page_categories.py
ncatlab/nlab
8e35d93f6e34dd3d21c59bbb76b40b334365deda
[ "Ruby" ]
10
2019-03-17T14:48:41.000Z
2021-12-02T16:30:36.000Z
script/src/page_categories/page_categories.py
ncatlab/nlab
8e35d93f6e34dd3d21c59bbb76b40b334365deda
[ "Ruby" ]
11
2018-01-17T19:36:06.000Z
2022-03-22T17:32:37.000Z
#!/usr/bin/python3.7 """ API for listing all page categories for a given web, and for checking whether a given string defines a page category in this web --- To use, set up (if it is not already in place) a virtual environment as follows. python3 -m venv venv source venv/bin/activate pip3 install MySQ...
30.70428
80
0.637435
57
0.007223
0
0
0
0
0
0
3,157
0.400076
d5a7137f1791e922a3801b5fb27951f1e74fe687
4,329
py
Python
evaluation/check_grammaticality_preservation.py
demelin/wsd_biases_for_nmt
cd0bccfd653d5f5ee9286a98791944f876b97f1b
[ "MIT" ]
2
2020-12-02T09:59:09.000Z
2022-02-18T19:58:48.000Z
evaluation/check_grammaticality_preservation.py
demelin/wsd_biases_for_nmt
cd0bccfd653d5f5ee9286a98791944f876b97f1b
[ "MIT" ]
null
null
null
evaluation/check_grammaticality_preservation.py
demelin/wsd_biases_for_nmt
cd0bccfd653d5f5ee9286a98791944f876b97f1b
[ "MIT" ]
1
2021-03-26T08:06:01.000Z
2021-03-26T08:06:01.000Z
import sys import json import argparse import language_tool_python import numpy as np def check_grammar(adversarial_samples_path): """ Checks grammar preservation between natural seed sentences and adversarial samples that have been derived from them. """ # Read in attractor phrase table print('Read...
41.228571
133
0.594133
0
0
0
0
0
0
0
0
977
0.225687
d5a9730e5e604235c70d82217d7abcd958783532
2,967
py
Python
scripts/mosh.py
wmodes/blackrockstation
8134322517803d225b936958a2d4ad16e286397a
[ "MIT" ]
1
2021-04-18T06:46:07.000Z
2021-04-18T06:46:07.000Z
scripts/mosh.py
wmodes/blackrockstation
8134322517803d225b936958a2d4ad16e286397a
[ "MIT" ]
null
null
null
scripts/mosh.py
wmodes/blackrockstation
8134322517803d225b936958a2d4ad16e286397a
[ "MIT" ]
null
null
null
import os import sys import getopt #Load file and create temp files inputfile = 'blank' outputfile = 'blank' filters = 'blank' def printhelp(): print('py -3 mosh.py -i input.bmp -f [ffmpeg filters] -o output.bmp\npy -3 mosh.py --input=input.bmp --filter=[ffmpeg filters] --output=output.bmp\n[ffmpeg filters]:\...
31.56383
237
0.559488
0
0
0
0
0
0
0
0
1,079
0.363667
d5aa4545a646814ef6af3187191b63fb5876eb06
1,294
py
Python
test/unit/gen_libs/prt_msg.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/unit/gen_libs/prt_msg.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/unit/gen_libs/prt_msg.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: prt_msg.py Description: Unit testing of prt_msg in gen_libs.py. Usage: test/unit/gen_libs/prt_msg.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < (2, 7): import unittest2 as unit...
15.780488
76
0.630603
760
0.587326
0
0
336
0.25966
0
0
669
0.517002
d5aa8ee377904ab5a674241f789900ee6b5dc751
6,432
py
Python
src/train.py
shabnam-b/crosslingual-nlp
ccd91baaea23004eab9c4d871910945ca3e61ab7
[ "MIT" ]
64
2019-11-25T09:33:29.000Z
2022-03-31T22:38:21.000Z
src/train.py
shabnam-b/crosslingual-nlp
ccd91baaea23004eab9c4d871910945ca3e61ab7
[ "MIT" ]
2
2022-02-14T05:46:10.000Z
2022-02-18T20:40:02.000Z
src/train.py
shabnam-b/crosslingual-nlp
ccd91baaea23004eab9c4d871910945ca3e61ab7
[ "MIT" ]
7
2021-04-02T07:00:36.000Z
2022-03-28T15:08:50.000Z
import os from argparse import ArgumentParser import pytorch_lightning as pl import util from enumeration import Task from model import Aligner, Classifier, DependencyParser, Model, Tagger def main(hparams): if hparams.cache_dataset: if not hparams.cache_path: hparams.cache_path = os.path.jo...
41.766234
86
0.684546
0
0
0
0
0
0
0
0
810
0.125933
d5abcbe8cfb21a7294348cb0c5948348bf4ecebf
338
py
Python
docs/components_page/components/breadcrumb/simple.py
glsdown/dash-bootstrap-components
0ebea4f7de43975f6e3a2958359c4480ae1d4927
[ "Apache-2.0" ]
776
2019-02-07T19:36:59.000Z
2022-03-31T05:53:04.000Z
docs/components_page/components/breadcrumb/simple.py
glsdown/dash-bootstrap-components
0ebea4f7de43975f6e3a2958359c4480ae1d4927
[ "Apache-2.0" ]
350
2019-02-05T10:42:19.000Z
2022-03-31T19:23:35.000Z
docs/components_page/components/breadcrumb/simple.py
glsdown/dash-bootstrap-components
0ebea4f7de43975f6e3a2958359c4480ae1d4927
[ "Apache-2.0" ]
219
2019-02-10T13:46:25.000Z
2022-03-23T17:03:39.000Z
import dash_bootstrap_components as dbc breadcrumb = dbc.Breadcrumb( items=[ {"label": "Docs", "href": "/docs", "external_link": True}, { "label": "Components", "href": "/docs/components", "external_link": True, }, {"label": "Breadcrumb", "active"...
24.142857
66
0.511834
0
0
0
0
0
0
0
0
126
0.372781
d5ae335355bc99ca0c56f7196c057bea2de78e07
1,599
py
Python
tests/test_util_math.py
mirochaj/ares
b3335ad30435ee0d7f17d0110aa164a35f252d78
[ "MIT" ]
10
2020-03-26T01:08:10.000Z
2021-12-04T13:02:10.000Z
tests/test_util_math.py
mirochaj/ares
b3335ad30435ee0d7f17d0110aa164a35f252d78
[ "MIT" ]
25
2020-06-08T14:52:28.000Z
2022-03-08T02:30:54.000Z
tests/test_util_math.py
mirochaj/ares
b3335ad30435ee0d7f17d0110aa164a35f252d78
[ "MIT" ]
8
2020-03-24T14:11:25.000Z
2021-11-06T06:32:59.000Z
""" test_util_stats.py Author: Jordan Mirocha Affiliation: McGill Created on: Tue 24 Mar 2020 22:11:31 EDT Description: """ import numpy as np from scipy.interpolate import interp1d from ares.util.Math import interp1d_wrapper, forward_difference, \ central_difference, five_pt_stencil, LinearNDInterpolator, smo...
23.865672
69
0.619762
0
0
0
0
0
0
0
0
284
0.177611
d5aec803a6617ec14a27790815813f0c6e3a1936
175
py
Python
mailer/cleaner.py
AgooDev/Automatic
b3d162aa0447a9fce340eac9604e9ff395967d11
[ "BSD-3-Clause" ]
2
2016-05-20T22:14:48.000Z
2016-05-20T22:14:50.000Z
mailer/cleaner.py
AgooDev/Automatic
b3d162aa0447a9fce340eac9604e9ff395967d11
[ "BSD-3-Clause" ]
null
null
null
mailer/cleaner.py
AgooDev/Automatic
b3d162aa0447a9fce340eac9604e9ff395967d11
[ "BSD-3-Clause" ]
null
null
null
# Imports import json with open('../config/config.json') as config: data = json.load(config) historyPath = data['mailer']['paths']['history'] # Check if folder exists
15.909091
48
0.68
0
0
0
0
0
0
0
0
80
0.457143
d5af38e5eeb161d0d352eaa24c10832386dba330
6,398
py
Python
Scripts/convertor2.py
hyller/GladiatorFirmware
535de3f74a773614648279ceb7cab06714c2cec2
[ "Unlicense" ]
1
2015-09-17T07:00:59.000Z
2015-09-17T07:00:59.000Z
Scripts/convertor2.py
hyller/GladiatorFirmware
535de3f74a773614648279ceb7cab06714c2cec2
[ "Unlicense" ]
null
null
null
Scripts/convertor2.py
hyller/GladiatorFirmware
535de3f74a773614648279ceb7cab06714c2cec2
[ "Unlicense" ]
null
null
null
# 1. Extract crash address form reset information in internal log # 2. According the crash address to find the crash function by search IAR map file # 3. Output the crash address and function name to file # NOTE: map file should in UTF-8 format import csv import os import sys import os.path code_list = [] co...
46.362319
125
0.479056
0
0
0
0
0
0
0
0
1,627
0.254298
d5b04b9b27666fa97a4c16c1aed953d2ea9e8b60
824
py
Python
1st_week/06_find_first_unique_character_sparta_ver.py
ysong0504/algorithm
76bfef16bd5bdc13b7ad260ee5f4e9dc62316403
[ "MIT" ]
null
null
null
1st_week/06_find_first_unique_character_sparta_ver.py
ysong0504/algorithm
76bfef16bd5bdc13b7ad260ee5f4e9dc62316403
[ "MIT" ]
null
null
null
1st_week/06_find_first_unique_character_sparta_ver.py
ysong0504/algorithm
76bfef16bd5bdc13b7ad260ee5f4e9dc62316403
[ "MIT" ]
null
null
null
def find_not_repeating_first_character(string): alphabet_occurrence_array = [0] * 26 for char in string: if not char.isalpha(): continue arr_index = ord(char) - ord("a") alphabet_occurrence_array[arr_index] += 1 not_repeating_character_array = [] for index in range...
29.428571
71
0.661408
0
0
0
0
0
0
0
0
134
0.154734
633433b979d95716a0827e164f37cd9e29c19d6a
1,782
py
Python
simulator.py
baumrasen/JSN-SR04T-Serial-Simulator
883ffac31dce1d9a7456af8282fc1bc24a09d0a9
[ "MIT" ]
null
null
null
simulator.py
baumrasen/JSN-SR04T-Serial-Simulator
883ffac31dce1d9a7456af8282fc1bc24a09d0a9
[ "MIT" ]
null
null
null
simulator.py
baumrasen/JSN-SR04T-Serial-Simulator
883ffac31dce1d9a7456af8282fc1bc24a09d0a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import time import serial # create serial ser = serial.Serial( port='/dev/ttyAMA1', #Replace ttyAMA1 for your needs baudrate = 9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, timeout=0.05 ) # edit here for...
23.76
102
0.530864
0
0
0
0
0
0
0
0
723
0.405724
633477a8a78066ac7ae776d824603b118e7b3ca3
2,688
py
Python
binary_image_classifier/simple_keras.py
bsaikiran535/catsdogs
07a0b15bc5e65cd68d355feb64a622b279b78fd4
[ "MIT" ]
null
null
null
binary_image_classifier/simple_keras.py
bsaikiran535/catsdogs
07a0b15bc5e65cd68d355feb64a622b279b78fd4
[ "MIT" ]
null
null
null
binary_image_classifier/simple_keras.py
bsaikiran535/catsdogs
07a0b15bc5e65cd68d355feb64a622b279b78fd4
[ "MIT" ]
null
null
null
from IPython import embed from keras.layers import Conv2D, Activation, MaxPooling2D, Flatten, Dense, Dropout from keras.models import Sequential from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array TRAIN_PATH = '/Users/sai/dev/datasets/catsdogs-kaggle/data2/train/' # Constants NUM_CHANNELS...
25.358491
88
0.649926
0
0
0
0
0
0
0
0
418
0.155506
63348b523a1e8dad3500b346984e69a09705dc2d
1,326
py
Python
NicBot/cogs/db/utils.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
NicBot/cogs/db/utils.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
NicBot/cogs/db/utils.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
from json import dump, load from os import getcwd, mkdir from os.path import exists from ...errors import UpdateNewFile def mkconfig(file: str): cwd = getcwd().replace('\\', '/') dirs = ( file .replace('\\', '/') .replace(cwd, '') .strip('./') .split('/') ) _...
22.862069
63
0.436652
0
0
0
0
0
0
0
0
249
0.187783
633516036af3a4c3e8ae99b1bb4a34061f655d7d
959
py
Python
Reacher-PyBullet/00_Random_Gym.py
hyunjun529/Learn-OpenAI-GYM
51e1f3dc4cdfa7582690fc8338918aeb9671f4e3
[ "MIT" ]
null
null
null
Reacher-PyBullet/00_Random_Gym.py
hyunjun529/Learn-OpenAI-GYM
51e1f3dc4cdfa7582690fc8338918aeb9671f4e3
[ "MIT" ]
null
null
null
Reacher-PyBullet/00_Random_Gym.py
hyunjun529/Learn-OpenAI-GYM
51e1f3dc4cdfa7582690fc8338918aeb9671f4e3
[ "MIT" ]
null
null
null
import gym from gym import wrappers env = gym.make('Reacher-v1') env.reset() env.render() outdir = './log/' f_act = open(outdir + 'log_act.txt', 'w') f_obs = open(outdir + 'log_obs.txt', 'w') f_rwd = open(outdir + 'log_rwd.txt', 'w') f_info = open(outdir + 'log_info.txt', 'w') env = wrappers.Monitor(env, directory=...
25.236842
68
0.606882
0
0
0
0
0
0
0
0
230
0.239833
633589fb97c7e506f46870a065a0488ff3565e70
20
py
Python
ckan_cloud_operator/providers/ckan/deployment/drone/constants.py
pdelboca/ckan-cloud-operator
20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61
[ "MIT" ]
14
2019-11-18T12:01:03.000Z
2021-09-15T15:29:50.000Z
ckan_cloud_operator/providers/ckan/deployment/drone/constants.py
pdelboca/ckan-cloud-operator
20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61
[ "MIT" ]
52
2019-09-09T14:22:41.000Z
2021-09-29T08:29:24.000Z
ckan_cloud_operator/providers/ckan/deployment/drone/constants.py
pdelboca/ckan-cloud-operator
20d7e6ed8cc2f5cfce5bc6295cb5487156a53f61
[ "MIT" ]
8
2019-10-05T12:46:25.000Z
2021-09-15T15:13:05.000Z
PROVIDER_ID='drone'
10
19
0.8
0
0
0
0
0
0
0
0
7
0.35
63359a3288cdf817808c76a0f398a98386d7b22c
1,815
py
Python
run_pipeline_beaco2n.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
run_pipeline_beaco2n.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
run_pipeline_beaco2n.py
openghg/gather
0096cfe66b0093cdd294fa2a67c060d7fc28d2fa
[ "Apache-2.0" ]
null
null
null
""" This can be used to run the whole data scrape, process and export pipeline. If you just want to run a single state see the scripts in the beaco2n/ directory. """ import argparse from gather.pipeline import run_beaco2n if __name__ == "__main__": example_text = """Usage: $ python run_pipeline_beaco2n.py --...
34.245283
126
0.710744
0
0
0
0
0
0
0
0
1,131
0.62314
633602ac685ea404ebc217673c3a63149c5038b0
3,412
py
Python
app/forms.py
nickma101/2bij3
d0a74cc1457470c711e97138865abd86aa320b5a
[ "MIT" ]
null
null
null
app/forms.py
nickma101/2bij3
d0a74cc1457470c711e97138865abd86aa320b5a
[ "MIT" ]
null
null
null
app/forms.py
nickma101/2bij3
d0a74cc1457470c711e97138865abd86aa320b5a
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm import wtforms from wtforms import StringField, PasswordField, BooleanField, RadioField, SelectField, SubmitField, SelectMultipleField, TextAreaField, widgets, IntegerField from wtforms.validators import DataRequired, ValidationError, Email, EqualTo, InputRequired, Length, NumberRange f...
46.108108
219
0.723916
2,993
0.877198
0
0
0
0
0
0
753
0.220692
63375c19200ea5c4ad796897e81df65ed7bb6676
3,176
py
Python
phosphodisco/tests/test_classes.py
ruggleslab/phosphodisco-1
4663e2c97b96304483234a80bc9b35befbf92795
[ "MIT" ]
1
2020-10-30T18:08:58.000Z
2020-10-30T18:08:58.000Z
phosphodisco/tests/test_classes.py
ruggleslab/phosphodisco-1
4663e2c97b96304483234a80bc9b35befbf92795
[ "MIT" ]
5
2020-09-09T21:53:44.000Z
2021-11-09T00:43:06.000Z
phosphodisco/tests/test_classes.py
ruggleslab/phosphodisco-1
4663e2c97b96304483234a80bc9b35befbf92795
[ "MIT" ]
3
2020-05-11T14:46:31.000Z
2021-08-20T19:22:34.000Z
import phosphodisco as phdc import numpy as np import pandas as pd seed = 5 np.random.seed(seed) prot = pd.util.testing.makeDataFrame() phospho = pd.util.testing.makeDataFrame() phospho.index = pd.MultiIndex.from_tuples( [(prot.index[np.random.randint(0, 15)], ind) for ind in phospho.index] ) def test_classes_r...
34.901099
112
0.68199
0
0
0
0
0
0
0
0
1,437
0.452456
6337fe4a780a9017d4452a00d6c6cd11afc30a4d
6,500
py
Python
parsl/tests/configs/user_opts.py
vkhodygo/parsl
ce2552caed9d223c3d8a84c16f830abc5f926331
[ "Apache-2.0" ]
1
2020-11-21T17:32:09.000Z
2020-11-21T17:32:09.000Z
parsl/tests/configs/user_opts.py
vkhodygo/parsl
ce2552caed9d223c3d8a84c16f830abc5f926331
[ "Apache-2.0" ]
null
null
null
parsl/tests/configs/user_opts.py
vkhodygo/parsl
ce2552caed9d223c3d8a84c16f830abc5f926331
[ "Apache-2.0" ]
1
2022-03-09T10:51:12.000Z
2022-03-09T10:51:12.000Z
""" Specification of user-specific configuration options. The fields must be configured separately for each user. To disable any associated configurations, comment out the entry. User specific overrides that should not go in version control can be set by creating a file called local_user_opts.py, which declares a dic...
39.156627
149
0.616769
0
0
0
0
0
0
0
0
5,597
0.861077
6338d410ae60bec391fb5bbc9bdfc0b712ca6028
1,771
py
Python
controller/notebook_menu.py
tuannguyendang/montypython
c0b8ff7a8130e811ba16bfab8d5e013eac37f432
[ "Apache-2.0" ]
null
null
null
controller/notebook_menu.py
tuannguyendang/montypython
c0b8ff7a8130e811ba16bfab8d5e013eac37f432
[ "Apache-2.0" ]
null
null
null
controller/notebook_menu.py
tuannguyendang/montypython
c0b8ff7a8130e811ba16bfab8d5e013eac37f432
[ "Apache-2.0" ]
null
null
null
import sys from model import NoteBook class NoteBookMenu: def __init__(self): self.notebook = NoteBook() self.choices = { "1": self.show_notes, "2": self.search_note, "3": self.add_note, "4": self.modify_note, "5": self.quit, } ...
24.260274
78
0.52061
1,675
0.945793
0
0
0
0
0
0
373
0.210615
6339d0b5926989fda79429ab96aca5d2ce51621f
5,500
py
Python
prey_and_pred_size.py
gimon0330/Natural-Selection-Simulator
171a34a901e6d863a8fb179a862e7dc4bc84e495
[ "Apache-2.0" ]
1
2021-11-12T12:33:36.000Z
2021-11-12T12:33:36.000Z
prey_and_pred_size.py
gimon0330/Natural-Selection-Simulator
171a34a901e6d863a8fb179a862e7dc4bc84e495
[ "Apache-2.0" ]
null
null
null
prey_and_pred_size.py
gimon0330/Natural-Selection-Simulator
171a34a901e6d863a8fb179a862e7dc4bc84e495
[ "Apache-2.0" ]
null
null
null
import pygame, random, time, sys, math pygame.init() SCREEN_WIDTH = 1080 SCREEN_HEIGHT = 720 screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) pygame.display.set_caption("이미지 불러오기") clock = pygame.time.Clock() screen.fill((255,255,255)) class Predetor(pygame.sprite.Sprite): def ...
29.72973
124
0.535091
2,212
0.399422
0
0
0
0
0
0
656
0.118454
6339f1ab281fecc21a9c0911b00b070cc3487a59
1,300
py
Python
Homework3.py
msalum/Phyton-TkInter
b4ee45f6703d0a584970e059438e92ac8dcb0f9f
[ "MIT" ]
null
null
null
Homework3.py
msalum/Phyton-TkInter
b4ee45f6703d0a584970e059438e92ac8dcb0f9f
[ "MIT" ]
null
null
null
Homework3.py
msalum/Phyton-TkInter
b4ee45f6703d0a584970e059438e92ac8dcb0f9f
[ "MIT" ]
null
null
null
from tkinter import * import tkinter.scrolledtext as scrl from tkinter import messagebox import tkinter.filedialog as tkfd def showAbout(): helloText = "Hello World" messagebox.showinfo("", helloText) # SAVE def saveAs(): fileContent = content.get(1.0, END) fileName = tkfd.asksaveasfile(mode='w', d...
20
128
0.672308
0
0
0
0
0
0
0
0
230
0.176923
633abef67a261f6f9857eba9e728f553af7a9bfd
4,403
py
Python
moto/mediapackage/responses.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
1
2021-12-12T04:23:06.000Z
2021-12-12T04:23:06.000Z
moto/mediapackage/responses.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
4
2017-09-30T07:52:52.000Z
2021-12-13T06:56:55.000Z
moto/mediapackage/responses.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
2
2021-11-24T08:05:43.000Z
2021-11-25T16:18:48.000Z
from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import mediapackage_backends import json class MediaPackageResponse(BaseResponse): SERVICE_NAME = "mediapackage" @property def mediapackage_backend(self): return mediapackage_backends[self.region] ...
40.768519
84
0.684988
4,261
0.967749
0
0
95
0.021576
0
0
415
0.094254
633af4736f589b2ac6076fac4005749e84b59aa5
1,453
py
Python
gsnodegraph/graph/btn.py
iwoithe/gsnodegraph
54450c6703ac9f75b69f39c8a4490cab7d9a965a
[ "Apache-2.0" ]
14
2021-05-19T15:45:24.000Z
2022-03-29T21:31:52.000Z
gsnodegraph/graph/btn.py
iwoithe/gsnodegraph
54450c6703ac9f75b69f39c8a4490cab7d9a965a
[ "Apache-2.0" ]
9
2021-05-02T02:34:12.000Z
2022-02-18T16:46:22.000Z
gsnodegraph/graph/btn.py
iwoithe/gsnodegraph
54450c6703ac9f75b69f39c8a4490cab7d9a965a
[ "Apache-2.0" ]
2
2021-09-28T22:18:23.000Z
2021-11-21T20:55:32.000Z
import wx from gsnodegraph.constants import (BTN_NORMAL_COLOR, BTN_CLICKED_COLOR, BTN_FOCUSED_COLOR) from gsnodegraph.assets import ICON_ADD_NODE class AddNodeBtn(object): def __init__(self, parent): self.parent = parent self.bitmap = ICON_ADD_NODE.GetBitmap()...
25.946429
77
0.61872
1,267
0.871989
0
0
0
0
0
0
0
0
633cbdf44eb8244abef9d93cca4e8be91fd33dc8
259
py
Python
Lib/async/test/test_daytime.py
pyparallel/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
Lib/async/test/test_daytime.py
tpn/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
Lib/async/test/test_daytime.py
tpn/pyparallel
11e8c6072d48c8f13641925d17b147bf36ee0ba3
[ "PSF-2.0" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
import async import async.services QOTD_IP = '10.211.55.3' QOTD_PORT = 20017 QOTD_DATA = b'An apple a day keeps the doctor away.\r\n' server = async.server('10.211.55.3', 20013) async.register(transport=server, protocol=async.services.Daytime) async.run()
21.583333
65
0.749035
0
0
0
0
0
0
0
0
70
0.27027
633cfa8e0c87a2f94a51376a2674ae1d228de67a
1,211
py
Python
dev_tools/text_translate.py
Torivon/MiniAdventure
a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4
[ "MIT" ]
5
2015-12-20T15:07:50.000Z
2021-08-12T18:20:53.000Z
dev_tools/text_translate.py
Torivon/MiniAdventure
a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4
[ "MIT" ]
86
2016-01-07T22:28:53.000Z
2016-12-13T19:19:28.000Z
dev_tools/text_translate.py
Torivon/MiniAdventure
a0f9873e5a3ae772ef9dc47cfaa944a48fae6bb4
[ "MIT" ]
3
2016-01-09T04:15:52.000Z
2016-12-31T02:47:18.000Z
import sys import struct if len(sys.argv) == 1: sys.exit("Must include a file to process") with open(sys.argv[1]) as input_file: header_file = "" data_file = "" text_dict = {} count = 0 for line in input_file.readlines(): if count == 0: header_file = line.strip() ...
25.229167
57
0.501239
0
0
0
0
0
0
0
0
101
0.083402
633f13ba50e5024214a5521c3bb7da838e21a64e
918
py
Python
backee/model/items.py
pruh/backee
3e88d799a50f75033ae15d6c16655da8ae791886
[ "MIT" ]
null
null
null
backee/model/items.py
pruh/backee
3e88d799a50f75033ae15d6c16655da8ae791886
[ "MIT" ]
2
2020-01-22T22:21:02.000Z
2020-01-22T22:28:37.000Z
backee/model/items.py
pruh/backee
3e88d799a50f75033ae15d6c16655da8ae791886
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Tuple, Dict, Optional from abc import ABC, abstractmethod from backee.model.db_connectors import DbConnector from backee.model.rotation_strategy import RotationStrategy @dataclass class BackupItem(ABC): rotation_strategy: Optional[RotationStrategy] @prope...
17.653846
59
0.724401
625
0.680828
0
0
680
0.740741
0
0
26
0.028322
633fe84973c2e35383e77383db0029a500fbf5d1
578
py
Python
daemon.py
hyoungseok/corona
19c327ab338c64335fe7f5352b8a07de7f65a153
[ "Apache-2.0" ]
null
null
null
daemon.py
hyoungseok/corona
19c327ab338c64335fe7f5352b8a07de7f65a153
[ "Apache-2.0" ]
null
null
null
daemon.py
hyoungseok/corona
19c327ab338c64335fe7f5352b8a07de7f65a153
[ "Apache-2.0" ]
null
null
null
import os import re import time import util start_pattern = re.compile("^start_[a-zA-Z0-9]+$") print(f"startDaemon={int(time.time())}") while os.path.exists(f"state/daemon"): time.sleep(5) print(f"aliveCheck={int(time.time())}") file_list = os.listdir("state") start_match = list(filter(start_pattern....
27.52381
66
0.650519
0
0
0
0
0
0
0
0
188
0.32526
634048ca3fe820c1580baa3d86d72e8e2f474b56
352
py
Python
django_eveonline_group_states/migrations/0003_remove_groupstate_default.py
KryptedGaming/django-group-states
2c37ca53604eef5ca77c2bd0c8bce018387e090b
[ "MIT" ]
null
null
null
django_eveonline_group_states/migrations/0003_remove_groupstate_default.py
KryptedGaming/django-group-states
2c37ca53604eef5ca77c2bd0c8bce018387e090b
[ "MIT" ]
1
2020-11-24T05:01:30.000Z
2020-12-29T16:09:11.000Z
django_eveonline_group_states/migrations/0003_remove_groupstate_default.py
KryptedGaming/django-eveonline-group-states
2c37ca53604eef5ca77c2bd0c8bce018387e090b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-11-05 14:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('django_eveonline_group_states', '0002_groupstate_name'), ] operations = [ migrations.RemoveField( model_name='groupstate', n...
19.555556
66
0.619318
267
0.758523
0
0
0
0
0
0
121
0.34375
63411ef904c5bb1a60b8f39984a7821e83fe65a2
2,868
py
Python
Project-:-Mars-Crater/code.py
sureshchaudhari13/ga-learner-dsmp-repo
0a2d726b1f7be8c31592f5650e7dbd3f23cdb609
[ "MIT" ]
null
null
null
Project-:-Mars-Crater/code.py
sureshchaudhari13/ga-learner-dsmp-repo
0a2d726b1f7be8c31592f5650e7dbd3f23cdb609
[ "MIT" ]
null
null
null
Project-:-Mars-Crater/code.py
sureshchaudhari13/ga-learner-dsmp-repo
0a2d726b1f7be8c31592f5650e7dbd3f23cdb609
[ "MIT" ]
null
null
null
# import libraries import warnings warnings.filterwarnings('ignore') from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler import pandas as pd # Code starts here # Read the data df = pd.read_csv(filepath_or_buffer=path,compression='zip') print(df.head()) # Dependent vari...
21.89313
126
0.766736
0
0
0
0
0
0
0
0
934
0.325662
63418a81f50d1bd2426bb311f19ae09d97821011
63
py
Python
test.py
jessicafinnie/ExampleForClass
df675e5889b7851518bd14419057288b24187551
[ "MIT" ]
null
null
null
test.py
jessicafinnie/ExampleForClass
df675e5889b7851518bd14419057288b24187551
[ "MIT" ]
null
null
null
test.py
jessicafinnie/ExampleForClass
df675e5889b7851518bd14419057288b24187551
[ "MIT" ]
null
null
null
# Testing commit, push, pull in PyCharm print("Hello, world!")
21
39
0.714286
0
0
0
0
0
0
0
0
54
0.857143
63430951fe67dd703e48e204907feb9ad2486b73
345
py
Python
sispo/plugins/plugins.py
oknuutti/sispo
c54019fca4e941a83cc78eda1356b8441bd04d17
[ "BSD-2-Clause" ]
null
null
null
sispo/plugins/plugins.py
oknuutti/sispo
c54019fca4e941a83cc78eda1356b8441bd04d17
[ "BSD-2-Clause" ]
null
null
null
sispo/plugins/plugins.py
oknuutti/sispo
c54019fca4e941a83cc78eda1356b8441bd04d17
[ "BSD-2-Clause" ]
null
null
null
import importlib def try_plugins(plugin_name, settings, env): for plugin in plugin_name: ##Create error checking here spec = importlib.util.spec_from_file_location("JetCreator", plugin) foo = importlib.util.module_from_spec(spec) spec.loader.exec_module(foo) ...
31.363636
75
0.663768
0
0
0
0
0
0
0
0
40
0.115942
6343280840016ec3b7f24d4262cab88630fb8ed2
1,309
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/blend_color.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension EXT.blend_color Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_EXT_blend_color' _DEPRECATED = False GL_CONSTANT_COLOR_EXT ...
42.225806
96
0.811306
0
0
0
0
0
0
0
0
461
0.352177
63439e6172bf80edaf0341030b779950b0eec1a7
165
py
Python
python_runtime/exonum_runtime/merkledb/indices/__init__.py
alekseysidorov/exonum-python-backend
fae38042acba4c7fd9ca05f6afa1e9bec54dd86d
[ "Apache-2.0" ]
2
2019-10-06T17:23:08.000Z
2019-10-07T09:35:59.000Z
python_runtime/exonum_runtime/merkledb/indices/__init__.py
alekseysidorov/exonum-python-backend
fae38042acba4c7fd9ca05f6afa1e9bec54dd86d
[ "Apache-2.0" ]
null
null
null
python_runtime/exonum_runtime/merkledb/indices/__init__.py
alekseysidorov/exonum-python-backend
fae38042acba4c7fd9ca05f6afa1e9bec54dd86d
[ "Apache-2.0" ]
1
2020-01-18T09:29:30.000Z
2020-01-18T09:29:30.000Z
"""TODO""" from .list_index import ListIndex from .map_index import MapIndex from .proof_list_index import ProofListIndex from .proof_map_index import ProofMapIndex
27.5
44
0.836364
0
0
0
0
0
0
0
0
10
0.060606
63446e4d927fb53761761a122344b0bc8d13ee0c
46
py
Python
captum/__init__.py
ashkan-software/captum
b8b7d4b10a9646e4da827635d6947499fbde3326
[ "BSD-3-Clause" ]
1
2020-02-02T19:23:01.000Z
2020-02-02T19:23:01.000Z
captum/__init__.py
ashkan-software/captum
b8b7d4b10a9646e4da827635d6947499fbde3326
[ "BSD-3-Clause" ]
7
2020-09-07T15:59:35.000Z
2022-02-26T19:34:09.000Z
captum/__init__.py
orionr/captum-2
06009a0c68e56f549964a132ba9c4c4f418af7bd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 __version__ = "0.2.0"
11.5
22
0.652174
0
0
0
0
0
0
0
0
29
0.630435
63470210edc52e9575d1a514bb0b181522c66e68
1,857
py
Python
utilities/mininet/test_topo.py
osinstom/p4rt-ovs
c3b1c38d47ea47175b38f92a9f0064ca15bb28e4
[ "Apache-2.0" ]
1
2020-04-29T20:35:07.000Z
2020-04-29T20:35:07.000Z
utilities/mininet/test_topo.py
osinstom/p4rt-ovs
c3b1c38d47ea47175b38f92a9f0064ca15bb28e4
[ "Apache-2.0" ]
null
null
null
utilities/mininet/test_topo.py
osinstom/p4rt-ovs
c3b1c38d47ea47175b38f92a9f0064ca15bb28e4
[ "Apache-2.0" ]
null
null
null
import argparse from mininet.net import Mininet from mininet.topo import Topo from mininet.topolib import TreeTopo from mininet.log import setLogLevel from mininet.cli import CLI from mininet.node import OVSSwitch from p4rtovs_mininet import P4rtOVSSwitch class TestTopo(Topo): def __init__(self, *args, **opts):...
24.116883
102
0.630587
386
0.207862
0
0
0
0
0
0
616
0.331718
63483a1b74f7107fb533b7c581ef3d45942dcd1a
310
py
Python
src/dolphindb/month.py
premprabhat/api-python-cpp
8543c91ba6b0ea26e07dd27e9a0f6a8654384a03
[ "Apache-2.0" ]
1
2021-08-28T04:02:12.000Z
2021-08-28T04:02:12.000Z
src/dolphindb/month.py
premprabhat/api-python-cpp
8543c91ba6b0ea26e07dd27e9a0f6a8654384a03
[ "Apache-2.0" ]
null
null
null
src/dolphindb/month.py
premprabhat/api-python-cpp
8543c91ba6b0ea26e07dd27e9a0f6a8654384a03
[ "Apache-2.0" ]
1
2022-01-27T11:11:12.000Z
2022-01-27T11:11:12.000Z
class month(object): def __init__(self, year=None, month = None): self.__year = year self.__month = month def __str__(self): if self.__month > 9: return str(self.__year) + '-' + str(self.__month) + 'M' return str(self.__year) + '-0' + str(self.__month) + 'M'
38.75
67
0.564516
310
1
0
0
0
0
0
0
13
0.041935
63495a91beceb69204b6a7d9ec3a3f68467b0207
4,611
py
Python
peaksIdentification/plotter.py
andreagia/peaks-identification
ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a
[ "MIT" ]
null
null
null
peaksIdentification/plotter.py
andreagia/peaks-identification
ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a
[ "MIT" ]
null
null
null
peaksIdentification/plotter.py
andreagia/peaks-identification
ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import plotly.express as px import pandas as pd # from scipy.spatial import distance_matrix import plotly.graph_objects as go from peaksIdentification.postprocessing import sliding_avg import numpy as np def plotplot(spettro_old, spettro_new, associations): print(associations) ...
27.446429
112
0.52288
0
0
0
0
0
0
0
0
1,588
0.344394
6349f6b9df91ef831b4fab9e98c2dfc2a30fb406
50
py
Python
jellyConnect/__init_.py
jay4842/jellyDatabaseConnector
6d5528db245e25b2d4ef19148337635596703145
[ "MIT" ]
null
null
null
jellyConnect/__init_.py
jay4842/jellyDatabaseConnector
6d5528db245e25b2d4ef19148337635596703145
[ "MIT" ]
null
null
null
jellyConnect/__init_.py
jay4842/jellyDatabaseConnector
6d5528db245e25b2d4ef19148337635596703145
[ "MIT" ]
null
null
null
from connection import * from queryEngine import *
25
25
0.82
0
0
0
0
0
0
0
0
0
0
634b5edb577cf025eb6e507290b5b9b48d5eaebf
2,776
py
Python
fault/value_utils.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
31
2018-07-16T15:03:14.000Z
2022-03-10T08:36:09.000Z
fault/value_utils.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
216
2018-07-18T20:00:34.000Z
2021-10-05T17:40:47.000Z
fault/value_utils.py
makaimann/fault
8c805415f398e64971d18fbd3014bc0b59fb38b8
[ "BSD-3-Clause" ]
10
2019-02-17T00:56:58.000Z
2021-11-05T13:31:37.000Z
import fault import magma import magma as m from magma.protocol_type import MagmaProtocol from hwtypes import BitVector, Bit, FPVector from fault.value import AnyValue, UnknownValue, HiZ from fault.ms_types import RealType from fault.array import Array from fault.select_path import SelectPath from hwtypes.adt import En...
31.545455
80
0.668588
0
0
0
0
0
0
0
0
122
0.043948
634ed0d52bdd4c99e5cef73d6d695c8443f52073
752
py
Python
minicom.py
nepeat/minicom-tone-gen
e03c627a86075f3ad7af0f576a683634504dd910
[ "MIT" ]
null
null
null
minicom.py
nepeat/minicom-tone-gen
e03c627a86075f3ad7af0f576a683634504dd910
[ "MIT" ]
null
null
null
minicom.py
nepeat/minicom-tone-gen
e03c627a86075f3ad7af0f576a683634504dd910
[ "MIT" ]
1
2021-12-18T02:04:04.000Z
2021-12-18T02:04:04.000Z
from playsound import playsound import tonemap def displayMessage(message): shift = False # whether the "shift" for special characters is currently on or off, starts off chars = list(message.upper()) for i in range(len(chars)): current_letter = tonemap.tonemap.get(chars[i]) if current_let...
37.6
98
0.630319
0
0
0
0
0
0
0
0
210
0.279255
634ed756936c1307192650998b99ba8d51030a09
717
py
Python
ps1/ps1b.py
willcohen/mit-6.00sc-python
68d83c4baff918aed56e5ec6e634b620ed986d8e
[ "MIT" ]
null
null
null
ps1/ps1b.py
willcohen/mit-6.00sc-python
68d83c4baff918aed56e5ec6e634b620ed986d8e
[ "MIT" ]
null
null
null
ps1/ps1b.py
willcohen/mit-6.00sc-python
68d83c4baff918aed56e5ec6e634b620ed986d8e
[ "MIT" ]
null
null
null
# Problem Set 1 outstanding = float(raw_input('''Enter the outstanding balance on your credit card: ''')) interestrate = float(raw_input('''Enter the annual credit card interest rate as a decimal: ''')) minpay = 0 balance = outstanding while balance > 0: minpay += 10 updatedbalance = outstanding for x in ...
28.68
72
0.666667
0
0
0
0
0
0
0
0
226
0.315202
6350381060c9588e76e613d273657138ea46c5c5
6,311
py
Python
ledgereth/__main__.py
unparalleled-js/ledger-eth-lib
ec9e4d0e801c98d09e5c8b04983e12540cff1650
[ "MIT" ]
10
2020-10-26T05:46:47.000Z
2022-03-07T22:28:50.000Z
ledgereth/__main__.py
unparalleled-js/ledger-eth-lib
ec9e4d0e801c98d09e5c8b04983e12540cff1650
[ "MIT" ]
13
2020-02-04T09:08:45.000Z
2022-03-21T00:05:28.000Z
ledgereth/__main__.py
unparalleled-js/ledger-eth-lib
ec9e4d0e801c98d09e5c8b04983e12540cff1650
[ "MIT" ]
6
2020-02-04T18:22:56.000Z
2022-03-01T13:44:51.000Z
import argparse import sys from enum import IntEnum from eth_utils import decode_hex, encode_hex from ledgereth import ( create_transaction, find_account, get_account_by_path, get_accounts, sign_message, sign_typed_data_draft, ) from ledgereth.comms import init_dongle class ExitCodes(IntEnum...
25.447581
86
0.61369
88
0.013944
0
0
0
0
0
0
1,882
0.298209
63504c8288f6b3e29c374e6692908482fa639432
1,324
py
Python
src/es/utils/nodes.py
DefenseStorm/es-cli
ad48c778dc426d5504fff7c36e9a2d61aeafb85f
[ "MIT" ]
null
null
null
src/es/utils/nodes.py
DefenseStorm/es-cli
ad48c778dc426d5504fff7c36e9a2d61aeafb85f
[ "MIT" ]
2
2018-09-17T18:18:44.000Z
2019-01-30T22:01:21.000Z
src/es/utils/nodes.py
DefenseStorm/es-cli
ad48c778dc426d5504fff7c36e9a2d61aeafb85f
[ "MIT" ]
1
2018-09-07T17:19:08.000Z
2018-09-07T17:19:08.000Z
import argparse import os import re import requests import subprocess from . import config as es_config def _match_to_node(match): return {"node": match.group("node"), "node-type": match.group("nodetype"), "zone": match.group("zone")} def _get_nodes_by_type(nodetype): env = es_conf...
34.842105
100
0.664653
0
0
0
0
0
0
0
0
323
0.243958
6353578656d78a5bb7c9aaf1ae55612bd73bf0e5
6,840
py
Python
run_klue.py
tucan9389/KLUE-baseline
add61158e61f86adfca65087237443828b650090
[ "Apache-2.0" ]
71
2021-07-29T11:34:50.000Z
2022-03-21T08:17:21.000Z
run_klue.py
tucan9389/KLUE-baseline
add61158e61f86adfca65087237443828b650090
[ "Apache-2.0" ]
3
2021-08-20T14:19:58.000Z
2021-12-03T06:42:27.000Z
run_klue.py
tucan9389/KLUE-baseline
add61158e61f86adfca65087237443828b650090
[ "Apache-2.0" ]
16
2021-08-01T02:29:11.000Z
2022-02-25T07:51:03.000Z
import argparse import logging import os import sys from pathlib import Path from typing import List, Optional, Dict, Any import pytorch_lightning as pl from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint from pytorch_lightning.loggers import CSVLogger from klue_baseline import KLUE_TASKS from klue...
34.029851
176
0.660088
0
0
0
0
0
0
0
0
1,813
0.265058
63537ba60e3a4d8d1007a7de63eba806a0202456
1,917
py
Python
common/net_simple.py
scotty1373/Torcs_PPO
864e30e7d02bef852907cd2abb9bba7a0630b53a
[ "MIT" ]
3
2022-01-07T09:04:42.000Z
2022-02-06T16:32:56.000Z
common/net_simple.py
scotty1373/Torcs_PPO
864e30e7d02bef852907cd2abb9bba7a0630b53a
[ "MIT" ]
null
null
null
common/net_simple.py
scotty1373/Torcs_PPO
864e30e7d02bef852907cd2abb9bba7a0630b53a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import torch from torch import nn from torch.distributions import Normal class Actor_Model(nn.Module): def __init__(self, state_dim): super(Actor_Model, self).__init__() self.Dense1 = nn.Linear(state_dim, 512) self.Dense1act = nn.ReLU(inplace=True) ...
35.5
70
0.661972
1,801
0.939489
0
0
0
0
0
0
23
0.011998
63554d60d7544ece34d46b37302c0ae72070b00c
6,489
py
Python
CV1_assignment1/problem3_.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
CV1_assignment1/problem3_.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
CV1_assignment1/problem3_.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # Plot 2D points def displaypoints2d(points): plt.figure(0) plt.plot(points[0, :], points[1, :], '.b') plt.xlabel('Screen X') plt.ylabel('Screen Y') # Plot 3D points def displaypoints3d(points): fig = plt.figure(1) ax = fig.add_subplot(111, ...
22.375862
108
0.602404
0
0
0
0
0
0
0
0
3,813
0.58761
6355cd9fc41a16ef9af937885f1b13913544530d
2,370
py
Python
OpenFOAM-wrapper/run_foam_single.py
Lenferd/ANSYS-OpenFOAM
b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16
[ "MIT" ]
null
null
null
OpenFOAM-wrapper/run_foam_single.py
Lenferd/ANSYS-OpenFOAM
b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16
[ "MIT" ]
null
null
null
OpenFOAM-wrapper/run_foam_single.py
Lenferd/ANSYS-OpenFOAM
b133cfa48aff7e734ccbd1f3b7fd6d6de029fe16
[ "MIT" ]
null
null
null
import os from executor.executor import Executor from argparse import ArgumentParser from configs.mesh import add_mesh_switch_arguments from configs.mesh import SimpleBlockMeshConfig, SimpleBlockMeshArguments from configs.mesh import RailMeshArguments, RailMeshConfig from configs.fragmentation import FragmentationConf...
39.5
102
0.781435
0
0
0
0
0
0
0
0
267
0.112658
63561da871584dc80cc681224fdd788cac77302f
892
py
Python
lms/pshell.py
mattdricker/lms
40b8a04f95e69258c6c0d7ada543f4b527918ecf
[ "BSD-2-Clause" ]
38
2017-12-30T23:49:53.000Z
2022-02-15T21:07:49.000Z
lms/pshell.py
mattdricker/lms
40b8a04f95e69258c6c0d7ada543f4b527918ecf
[ "BSD-2-Clause" ]
1,733
2017-11-09T18:46:05.000Z
2022-03-31T11:05:50.000Z
lms/pshell.py
mattdricker/lms
40b8a04f95e69258c6c0d7ada543f4b527918ecf
[ "BSD-2-Clause" ]
10
2018-07-11T17:12:46.000Z
2022-01-07T20:00:23.000Z
import sys from contextlib import suppress from transaction.interfaces import NoTransaction from lms import models def setup(env): sys.path = ["."] + sys.path from tests import factories # pylint:disable=import-outside-toplevel sys.path = sys.path[1:] request = env["request"] request.tm.beg...
23.473684
86
0.64574
0
0
772
0.865471
0
0
0
0
265
0.297085