hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
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
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
4cc9c8edfe702c912f8657df41c4c8c831edd77a
5,471
py
Python
tests/conftest.py
TommasoBelluzzo/PyDTMC
ba6aac67940156cb14b05a906d9ced9b387d1e65
[ "MIT" ]
43
2019-03-18T11:19:52.000Z
2022-02-21T15:25:11.000Z
tests/conftest.py
TommasoBelluzzo/PyDTMC
ba6aac67940156cb14b05a906d9ced9b387d1e65
[ "MIT" ]
7
2019-07-08T19:44:03.000Z
2021-07-06T11:08:28.000Z
tests/conftest.py
TommasoBelluzzo/PyDTMC
ba6aac67940156cb14b05a906d9ced9b387d1e65
[ "MIT" ]
18
2019-07-05T16:27:49.000Z
2022-02-02T21:24:19.000Z
# -*- coding: utf-8 -*- ########### # IMPORTS # ########### # Standard from os.path import ( abspath as _os_abspath, dirname as _os_dirname, isfile as _os_isfile, join as _os_join ) from json import ( load as _json_load ) ############# # CONSTANTS # ############# _replacements = [ ('NaN'...
27.492462
140
0.61561
4cc9e781c10a825149e73361b05a57d1750ea78f
1,428
py
Python
game-ai-ui/video/video.py
yugendra/game-ai-ui
3209ca39475ca3781662e43c86ffe509784a52f3
[ "Apache-2.0" ]
null
null
null
game-ai-ui/video/video.py
yugendra/game-ai-ui
3209ca39475ca3781662e43c86ffe509784a52f3
[ "Apache-2.0" ]
null
null
null
game-ai-ui/video/video.py
yugendra/game-ai-ui
3209ca39475ca3781662e43c86ffe509784a52f3
[ "Apache-2.0" ]
1
2018-05-22T12:13:02.000Z
2018-05-22T12:13:02.000Z
import logging import re import os import mimetypes from flask import Response LOG = logging.getLogger(__name__) MB = 1 << 20 BUFF_SIZE = 10 * MB
23.8
61
0.570728
4ccb69dec50ffbff4817a4e9cbaedb4a7551f21e
270
py
Python
src/py/PrjRestfulApiService/RestfulApiService.py
PrQiang/aods
b743754740f5b5bb4217f06fd790dffa303f871f
[ "MIT" ]
2
2020-12-14T14:24:56.000Z
2021-06-16T09:22:13.000Z
example/PrjRestfulApiService/RestfulApiService.py
PrQiang/aods
b743754740f5b5bb4217f06fd790dffa303f871f
[ "MIT" ]
1
2020-12-30T10:25:27.000Z
2020-12-30T10:25:44.000Z
example/PrjRestfulApiService/RestfulApiService.py
PrQiang/aods
b743754740f5b5bb4217f06fd790dffa303f871f
[ "MIT" ]
1
2021-06-16T09:22:17.000Z
2021-06-16T09:22:17.000Z
import socketserver, threading from RestfulApiHandler import RestfulApiHandler if __name__ == "__main__": server = socketserver.ThreadingTCPServer(('0.0.0.0', 32002), RestfulApiHandler) t = threading.Thread(target= server.serve_forever, args = ()) t.start()
38.571429
83
0.748148
4cccd7d1f2855b57b5553b54acf96bb9e987eb7f
292
py
Python
studio/urls.py
mrashidov/ColdWaterWebSite
0d52860e8bb21f77aec744e3891364957ac75399
[ "MIT" ]
null
null
null
studio/urls.py
mrashidov/ColdWaterWebSite
0d52860e8bb21f77aec744e3891364957ac75399
[ "MIT" ]
null
null
null
studio/urls.py
mrashidov/ColdWaterWebSite
0d52860e8bb21f77aec744e3891364957ac75399
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^task$', views.ShowTask.as_view(), name='show_task'), url(r'^task/add/$', views.AddTask.as_view(),name='add_task'), url(r'^(?P<slug>[\w\-]+)$', views.ShowTask.as_view(), name='show'), ]
29.2
71
0.619863
4ccfcbd5467abde88fe98348a63720b73520fcc5
4,344
py
Python
pycryptomkt/client.py
smaass/pycryptomkt
02cb5ff114947090fc10c2120c4c89f479d82f08
[ "MIT" ]
null
null
null
pycryptomkt/client.py
smaass/pycryptomkt
02cb5ff114947090fc10c2120c4c89f479d82f08
[ "MIT" ]
null
null
null
pycryptomkt/client.py
smaass/pycryptomkt
02cb5ff114947090fc10c2120c4c89f479d82f08
[ "MIT" ]
null
null
null
import hashlib import hmac import requests import time from functools import reduce
25.255814
75
0.580801
4cd052c6a05d57bb861358a08e06ee51ac5c5637
69
py
Python
venv/Lib/site-packages/openpyxl/formula/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
26
2021-01-22T08:40:45.000Z
2022-03-19T12:09:39.000Z
venv/Lib/site-packages/openpyxl/formula/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
5
2021-08-06T09:41:32.000Z
2021-08-17T08:37:47.000Z
venv/Lib/site-packages/openpyxl/formula/__init__.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
12
2021-04-06T02:32:20.000Z
2022-03-21T16:30:29.000Z
# Copyright (c) 2010-2021 openpyxl from .tokenizer import Tokenizer
17.25
34
0.782609
4cd0870f8e1c2e5c492adaf82b4a9329b5b17f1d
5,925
py
Python
zplane.py
m1ch/pysim
58b806d55585d785156813afa572741bfca6e3f1
[ "MIT" ]
null
null
null
zplane.py
m1ch/pysim
58b806d55585d785156813afa572741bfca6e3f1
[ "MIT" ]
null
null
null
zplane.py
m1ch/pysim
58b806d55585d785156813afa572741bfca6e3f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Combination of http://scipy-central.org/item/52/1/zplane-function and http://www.dsprelated.com/showcode/244.php with my own modifications """ # Copyright (c) 2011 Christopher Felton # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Le...
32.377049
90
0.585485
4cd33a36e5a202d2c15a3e020cfd9f9644dce14d
81
py
Python
lino_book/projects/igen/__init__.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
3
2016-08-25T05:58:09.000Z
2019-12-05T11:13:45.000Z
lino_book/projects/igen/__init__.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
18
2016-11-12T21:38:58.000Z
2019-12-03T17:54:38.000Z
lino_book/projects/igen/__init__.py
lino-framework/lino_book
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
[ "BSD-2-Clause" ]
9
2016-10-15T11:12:33.000Z
2021-09-22T04:37:37.000Z
""" igen stands for "invoice generator". The project is currently inactive. """
13.5
36
0.716049
4cd50bc65a9dffb20e6d862af0cb7471f35a384d
70
py
Python
code/arc028_1_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/arc028_1_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/arc028_1_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
N,A,B=map(int,input().split()) print("Ant" if 0<N%(A+B)<=A else "Bug")
35
39
0.585714
4cd53feef0e51a343960a8e8ab7d831aca62ac7a
30,518
py
Python
assembly_examiner.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
assembly_examiner.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
assembly_examiner.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
import string import math from codestat_token import Token from codestat_tokenizer import Tokenizer from token_builders import ( InvalidTokenBuilder, NullTokenBuilder, WhitespaceTokenBuilder, NewlineTokenBuilder, EscapedStringTokenBuilder, PrefixedStringTokenBuilder, IntegerTokenBuilder, IntegerExponen...
34.060268
233
0.543614
4cd5a6c75e223d3abe361d5bb54c6c56d248951a
307
py
Python
learning/bs/bs2.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
2
2019-06-23T07:17:30.000Z
2019-07-06T15:15:42.000Z
learning/bs/bs2.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
null
null
null
learning/bs/bs2.py
Nephrin/Tut
9454be28fd37c155d0b4e97876196f8d33ccf8e5
[ "Apache-2.0" ]
1
2019-06-23T07:17:43.000Z
2019-06-23T07:17:43.000Z
if __name__=="__main__": main();
18.058824
43
0.517915
4cd722ff9dd1a9f34e8ee2680df4379e934645c7
207
py
Python
{{cookiecutter.project_name}}/resources/admin.py
phalt/cookicutter-django-api
01c7ffea8805a05e704819d21f20fe48cec436c0
[ "BSD-3-Clause" ]
16
2015-04-04T20:50:00.000Z
2017-08-18T19:18:02.000Z
{{cookiecutter.project_name}}/resources/admin.py
phalt/cookicutter-django-api
01c7ffea8805a05e704819d21f20fe48cec436c0
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_name}}/resources/admin.py
phalt/cookicutter-django-api
01c7ffea8805a05e704819d21f20fe48cec436c0
[ "BSD-3-Clause" ]
4
2015-04-24T03:51:50.000Z
2020-02-10T13:47:02.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import ( BaseModel ) classes = [BaseModel] for c in classes: admin.site.register(c)
13.8
39
0.705314
4cd9e96ed0f6636dc77519153d4e814c1b90af2d
1,118
py
Python
moocng/contact/models.py
OpenMOOC/moocng
1e3dafb84aa1838c881df0c9bcca069e47c7f52d
[ "Apache-2.0" ]
36
2015-01-10T06:00:36.000Z
2020-03-19T10:06:59.000Z
moocng/contact/models.py
OpenMOOC/moocng
1e3dafb84aa1838c881df0c9bcca069e47c7f52d
[ "Apache-2.0" ]
3
2015-10-01T17:59:32.000Z
2018-09-04T03:32:17.000Z
moocng/contact/models.py
OpenMOOC/moocng
1e3dafb84aa1838c881df0c9bcca069e47c7f52d
[ "Apache-2.0" ]
17
2015-01-13T03:46:58.000Z
2020-07-05T06:29:51.000Z
# Copyright 2013 UNED # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
29.421053
74
0.71288
4cda412ef162b3f72b00e281488be9d02ef6682d
172
py
Python
nameko_mongoengine/__init__.py
ketgo/nameko-mongoengine
94b4a41dfa845cec8b48f874c0b64658a1c4bef6
[ "Apache-2.0" ]
2
2019-12-06T17:51:44.000Z
2020-02-20T22:38:38.000Z
nameko_mongoengine/__init__.py
ketgo/nameko-mongoengine
94b4a41dfa845cec8b48f874c0b64658a1c4bef6
[ "Apache-2.0" ]
1
2022-03-07T02:32:45.000Z
2022-03-07T06:45:43.000Z
nameko_mongoengine/__init__.py
ketgo/nameko-mongoengine
94b4a41dfa845cec8b48f874c0b64658a1c4bef6
[ "Apache-2.0" ]
null
null
null
""" MongoEngine dependency provider """ from __future__ import absolute_import from .mongo_engine import MongoEngine __all__ = ["MongoEngine", ] # pragma: no cover
17.2
47
0.744186
4cda8215848bfc1e46d422423beea22294f3245f
1,717
py
Python
search_for_similar_images__perceptual_hash__phash/ui/SearchForSimilarSettingsWidget.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
search_for_similar_images__perceptual_hash__phash/ui/SearchForSimilarSettingsWidget.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
search_for_similar_images__perceptual_hash__phash/ui/SearchForSimilarSettingsWidget.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from PyQt5.QtWidgets import QWidget, QFormLayout, QComboBox, QSpinBox, QCheckBox from PyQt5.QtCore import QSettings, pyqtSignal from common import IMAGE_HASH_ALGO, DEFAULT_IMAGE_HASH_ALGO, DEFAULT_IMAGE_HASH_MAX_SCORE
29.101695
89
0.675015
4cdadb09f1bb690b5cf67fc0d25f299913c44ad2
128
py
Python
app/auth_app/blueprint.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
app/auth_app/blueprint.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
app/auth_app/blueprint.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
1
2020-02-12T09:21:15.000Z
2020-02-12T09:21:15.000Z
from flask import Blueprint auth_blueprint = Blueprint( 'auth_blueprint', __name__, template_folder='templates' )
14.222222
31
0.726563
4cdc30990721503a59591c44c05564a326c709e4
47
py
Python
Python/Topics/Bytes basics/Ord() application/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
5
2020-08-29T15:15:31.000Z
2022-03-01T18:22:34.000Z
Python/Topics/Bytes basics/Ord() application/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
null
null
null
Python/Topics/Bytes basics/Ord() application/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
1
2020-12-02T11:13:14.000Z
2020-12-02T11:13:14.000Z
a = input() b= input() print(ord(a) + ord(b))
9.4
22
0.531915
4cdd1fd0a18fed3da4d3c58601225a03c0e5fbd6
1,571
py
Python
test.py
ThomDietrich/singletonify-python
11cc56237095544c61c4d45bb61f1a7824da19dc
[ "MIT" ]
3
2018-10-08T07:01:15.000Z
2019-12-12T03:48:53.000Z
test.py
ThomDietrich/singletonify-python
11cc56237095544c61c4d45bb61f1a7824da19dc
[ "MIT" ]
1
2021-05-19T00:04:48.000Z
2021-06-01T17:11:05.000Z
test.py
ThomDietrich/singletonify-python
11cc56237095544c61c4d45bb61f1a7824da19dc
[ "MIT" ]
1
2021-06-01T16:35:57.000Z
2021-06-01T16:35:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from pytest import raises from singletonify import singleton
16.536842
74
0.54233
4cdd5fc3021ddb28a615b5faa80ee7587dea639a
2,166
py
Python
vika/services/svc_crypto.py
jtprogru/vika
6bf59dbad169cdb3a10f354e6df0c99cb5d98988
[ "WTFPL" ]
null
null
null
vika/services/svc_crypto.py
jtprogru/vika
6bf59dbad169cdb3a10f354e6df0c99cb5d98988
[ "WTFPL" ]
null
null
null
vika/services/svc_crypto.py
jtprogru/vika
6bf59dbad169cdb3a10f354e6df0c99cb5d98988
[ "WTFPL" ]
null
null
null
from coinmarketcapapi import CoinMarketCapAPI, CoinMarketCapAPIError from pycoingecko import CoinGeckoAPI from vika.config import COIN_MARKET_CAP_API_KEY
33.323077
93
0.625115
4cdde0fb0db22226b5857fab163db859a979f97e
7,440
py
Python
sf2_to_dex.py
rupa/sf2_to_dex
d7e074b0332d668385b4a955e3509dd4fbe0f55c
[ "MIT" ]
null
null
null
sf2_to_dex.py
rupa/sf2_to_dex
d7e074b0332d668385b4a955e3509dd4fbe0f55c
[ "MIT" ]
null
null
null
sf2_to_dex.py
rupa/sf2_to_dex
d7e074b0332d668385b4a955e3509dd4fbe0f55c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ cleanup and refactor -> pretty much a rewrite soundfonts are messy, you gotta kind of figure out where the note names and velocities are in sample name. usually the pitch info is wack """ from chunk import Chunk import logging import os import re import struct import wave logging.basicConfi...
30.617284
86
0.510618
4cdfad127953dd829561e4a0404e4a6449e304d9
4,126
py
Python
src/slack.py
planetrics/aws-iam-key-rotator
890c28d80e062dfc569e6577bc48fac23dc0b1a0
[ "MIT" ]
null
null
null
src/slack.py
planetrics/aws-iam-key-rotator
890c28d80e062dfc569e6577bc48fac23dc0b1a0
[ "MIT" ]
null
null
null
src/slack.py
planetrics/aws-iam-key-rotator
890c28d80e062dfc569e6577bc48fac23dc0b1a0
[ "MIT" ]
null
null
null
import os import json import logging import requests logger = logging.getLogger('slack') logger.setLevel(logging.INFO)
36.513274
189
0.335676
4ce0ef437d59c0cf917eb22170bf3eac536d5e80
1,509
py
Python
src/core/structs.py
lasse-aagren/poezio
38399f2cae9ffad42c4f2756802bbceaa60d0e92
[ "Zlib" ]
null
null
null
src/core/structs.py
lasse-aagren/poezio
38399f2cae9ffad42c4f2756802bbceaa60d0e92
[ "Zlib" ]
null
null
null
src/core/structs.py
lasse-aagren/poezio
38399f2cae9ffad42c4f2756802bbceaa60d0e92
[ "Zlib" ]
null
null
null
""" Module defining structures useful to the core class and related methods """ import collections # http://xmpp.org/extensions/xep-0045.html#errorstatus ERROR_AND_STATUS_CODES = { '401': 'A password is required', '403': 'Permission denied', '404': 'The room doesnt exist', '405': 'Your are not allowed ...
30.18
73
0.58383
4ce10c58d708a32523b675746af1ff74ba6e03e0
895
py
Python
easy-todo-backend/module/user/handler.py
hubenchang0515/EasyTodo
b3cde21090f76401c0649a760b152ebbdd1d4fbe
[ "MIT" ]
null
null
null
easy-todo-backend/module/user/handler.py
hubenchang0515/EasyTodo
b3cde21090f76401c0649a760b152ebbdd1d4fbe
[ "MIT" ]
null
null
null
easy-todo-backend/module/user/handler.py
hubenchang0515/EasyTodo
b3cde21090f76401c0649a760b152ebbdd1d4fbe
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from ..common import app, db, getJson from .model import User from .method import *
33.148148
100
0.634637
4ce1e5e3825fda71c1d79c7d91358a7fb5966bfa
4,326
py
Python
contrib/bin_wrapper.py
brikkho-net/windmill
994bd992b17f3f2d6f6b276fe17391fea08f32c3
[ "Apache-2.0" ]
61
2015-03-16T18:36:06.000Z
2021-12-02T10:08:17.000Z
contrib/bin_wrapper.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
8
2015-03-10T10:01:26.000Z
2020-05-18T10:51:24.000Z
contrib/bin_wrapper.py
admc/windmill
4304ee7258eb0c2814f215d8ce90abf02b1f737f
[ "Apache-2.0" ]
14
2015-01-29T16:28:33.000Z
2021-09-04T11:19:48.000Z
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
34.608
101
0.676144
4ce2cf2e72ae8243f6c91430c43ebdb5bcdbda2f
634
py
Python
tsheets/models/user_permissions_set.py
eturpin/api_python
fac15d06ef2510972ed3c812bb16a675d4e30e3c
[ "MIT" ]
6
2018-12-16T19:53:57.000Z
2020-11-22T12:36:57.000Z
tsheets/models/user_permissions_set.py
eturpin/api_python
fac15d06ef2510972ed3c812bb16a675d4e30e3c
[ "MIT" ]
6
2019-02-01T13:51:59.000Z
2020-11-23T22:42:57.000Z
tsheets/models/user_permissions_set.py
eturpin/api_python
fac15d06ef2510972ed3c812bb16a675d4e30e3c
[ "MIT" ]
8
2018-12-16T19:53:48.000Z
2021-11-24T17:08:04.000Z
from tsheets.model import Model from datetime import date, datetime UserPermissionsSet.add_field("admin", bool) UserPermissionsSet.add_field("mobile", bool) UserPermissionsSet.add_field("status_box", bool) UserPermissionsSet.add_field("reports", bool) UserPermissionsSet.add_field("manage_timesheets", bool) UserPermi...
33.368421
58
0.834385
4ce456f58b59cb287e63e3fc893ff6046bbcd1b1
474
py
Python
backpack/extensions/secondorder/diag_ggn/conv1d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
395
2019-10-04T09:37:52.000Z
2022-03-29T18:00:56.000Z
backpack/extensions/secondorder/diag_ggn/conv1d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
78
2019-10-11T18:56:43.000Z
2022-03-23T01:49:54.000Z
backpack/extensions/secondorder/diag_ggn/conv1d.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
50
2019-10-03T16:31:10.000Z
2022-03-15T19:36:14.000Z
from backpack.core.derivatives.conv1d import Conv1DDerivatives from backpack.extensions.secondorder.diag_ggn.convnd import ( BatchDiagGGNConvND, DiagGGNConvND, )
29.625
84
0.751055
4ce462d62058170799793cdc170a8f43baf76ca6
1,088
py
Python
api/scripts/test/test_generate_promoter_terminator.py
IsaacLuo/webexe
aec0582b8669f7e941b8a14df1a9154993470f05
[ "MIT" ]
null
null
null
api/scripts/test/test_generate_promoter_terminator.py
IsaacLuo/webexe
aec0582b8669f7e941b8a14df1a9154993470f05
[ "MIT" ]
6
2021-03-02T00:34:35.000Z
2022-03-24T14:26:50.000Z
api/scripts/test/test_generate_promoter_terminator.py
IsaacLuo/webexe
aec0582b8669f7e941b8a14df1a9154993470f05
[ "MIT" ]
null
null
null
import subprocess import pytest import os import json
32.969697
142
0.662684
4ce5ee6ba6e39b98743bd5a01fdada0a46b8373a
89
py
Python
config/airflow_config_property.py
ranjeettyadav/ranjeettyadav
13325501bc8abc27f352d2b6e3cbe9b8dd321232
[ "MIT" ]
null
null
null
config/airflow_config_property.py
ranjeettyadav/ranjeettyadav
13325501bc8abc27f352d2b6e3cbe9b8dd321232
[ "MIT" ]
null
null
null
config/airflow_config_property.py
ranjeettyadav/ranjeettyadav
13325501bc8abc27f352d2b6e3cbe9b8dd321232
[ "MIT" ]
null
null
null
project_dm = 'dmgcp-ingestion-poc' location = 'US' bq_connection_id= 'my_gcp_connection'
22.25
37
0.786517
4ce6266278571310e4c8afa8c6e017f931de9d26
1,478
py
Python
tests/model/template/test_read_include.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
1
2020-02-13T18:57:53.000Z
2020-02-13T18:57:53.000Z
tests/model/template/test_read_include.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
46
2020-02-14T22:14:33.000Z
2021-06-10T21:17:49.000Z
tests/model/template/test_read_include.py
scailfin/rob-core
791383085181747cf41c30f6cd13f6762e438d8a
[ "MIT" ]
3
2021-05-06T15:22:29.000Z
2021-06-01T16:19:36.000Z
# This file is part of the Reproducible and Reusable Data Analysis Workflow # Server (flowServ). # # Copyright (C) 2019-2021 NYU. # # flowServ is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Unit tests for reading a workflow templat...
35.190476
94
0.717185
4ce69af3f9f9960cf7540e83c34640cd731c18f4
4,058
py
Python
vf.py
polydojo/vf
457b6f26c06f44c9adcab2ea04c48eafb677c323
[ "MIT" ]
null
null
null
vf.py
polydojo/vf
457b6f26c06f44c9adcab2ea04c48eafb677c323
[ "MIT" ]
null
null
null
vf.py
polydojo/vf
457b6f26c06f44c9adcab2ea04c48eafb677c323
[ "MIT" ]
null
null
null
""" VF: Validation Functions (for Python dicts.) Copyright (c) 2020 Polydojo, Inc. SOFTWARE LICENSING ------------------ The software is released "AS IS" under the MIT License, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Kindly see LICENSE.txt for more details. NO TRADEMARK RIGHTS ------------------- The above...
33.53719
66
0.506407
4ce7dce48f6457b8561f7776f1bda9d9903b5e23
792
py
Python
application/account/forms.py
fgronqvist/votingbooth
45d8505e2380f3f49938b8a7b8343e6a067a86d8
[ "Unlicense" ]
null
null
null
application/account/forms.py
fgronqvist/votingbooth
45d8505e2380f3f49938b8a7b8343e6a067a86d8
[ "Unlicense" ]
2
2018-10-03T15:59:05.000Z
2018-10-21T19:08:07.000Z
application/account/forms.py
fgronqvist/votingbooth
45d8505e2380f3f49938b8a7b8343e6a067a86d8
[ "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, validators from wtforms.fields.html5 import EmailField
46.588235
104
0.736111
4ce94970f8650ca31e2796829e3d3df224319f92
823
py
Python
setup.py
Bouke/mvvm
f05d4bfd2817c372f335705977bff6afd6c979be
[ "MIT" ]
3
2018-06-29T07:12:54.000Z
2021-05-30T10:24:14.000Z
setup.py
Bouke/mvvm
f05d4bfd2817c372f335705977bff6afd6c979be
[ "MIT" ]
null
null
null
setup.py
Bouke/mvvm
f05d4bfd2817c372f335705977bff6afd6c979be
[ "MIT" ]
3
2017-03-01T01:23:06.000Z
2017-10-27T02:33:48.000Z
from setuptools import setup, find_packages version = '0.0.1' setup(name='mvvm', version=version, description='Model-View-ViewModel framework for Python, based on Wx', long_description=open('README.rst').read(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended...
32.92
81
0.609964
4ce975fb2a7c077d40e8b8fc8ab1568e48fcfdd5
603
py
Python
mundo_2/ex037.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
mundo_2/ex037.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
mundo_2/ex037.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
from os import system, name system('cls' if name == 'nt' else 'clear') dsc = ('''DESAFIO 037: Escreva um programa que leia um nmero inteiro qualquer e pea para o usurio escolher qual ser a base de converso: - 1 para binrio - 2 para octal - 3 para hexadecimal ''') n = int(input('Digite um nmero: ')) print('1: binrio')...
25.125
62
0.6534
4cebc8d8c5709c45d465740aef28dc7747b5c871
4,234
py
Python
tables.py
sadaszewski/scimd
3f8cad382e4891cd710c8e4e9c48aa4d56130040
[ "BSD-2-Clause" ]
null
null
null
tables.py
sadaszewski/scimd
3f8cad382e4891cd710c8e4e9c48aa4d56130040
[ "BSD-2-Clause" ]
null
null
null
tables.py
sadaszewski/scimd
3f8cad382e4891cd710c8e4e9c48aa4d56130040
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (C) 2015, Stanislaw Adaszewski # s.adaszewski@gmail.com # http://algoholic.eu # # License: 2-clause BSD # from markdown import Extension from markdown.blockprocessors import BlockProcessor from markdown.util import etree import numpy as np from collections import defaultdict import numpy.core.defchararr...
39.570093
102
0.467879
4cec6669f8861c5d6808c43e630416fb7bc66a24
1,538
py
Python
agronet_be/AgronetApp/views/orderDetailView.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-06T00:39:08.000Z
2021-10-06T00:39:08.000Z
agronet_be/AgronetApp/views/orderDetailView.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
null
null
null
agronet_be/AgronetApp/views/orderDetailView.py
lauraC4MP0/Prueba-github
291fc266fc0a8efc80ab36dd6eb4bff3e98e7c1f
[ "MIT" ]
1
2021-10-03T13:39:31.000Z
2021-10-03T13:39:31.000Z
from django.conf import settings from django.db.models.query import QuerySet from rest_framework import views from rest_framework.response import Response from AgronetApp.serializers import orderDetailSerializer from AgronetApp.serializers.orderDetailSerializer import OrderDetailSerializer from AgronetApp.models.orderD...
42.722222
117
0.751625
4ced33f2e305fc01ed18bf724293146d776b1f32
1,012
py
Python
predict.py
kadn/carla-imitation
874030f4f4d726f80e739721fb704489672da9b0
[ "MIT" ]
null
null
null
predict.py
kadn/carla-imitation
874030f4f4d726f80e739721fb704489672da9b0
[ "MIT" ]
null
null
null
predict.py
kadn/carla-imitation
874030f4f4d726f80e739721fb704489672da9b0
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from network import make_network from data_provider import DataProvider from tensorflow.core.protobuf import saver_pb2 import time import os from IPython import embed with tf.Session(config=tf.ConfigProto(log_device_placement=True)) as sess: network = make_network() ...
29.764706
74
0.677866
4cee63421a6a0026a74361c99866ca8a1654719f
494
py
Python
App0/migrations/0019_auto_20210118_0317.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/migrations/0019_auto_20210118_0317.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
App0/migrations/0019_auto_20210118_0317.py
LTSana/lost-empire
495397345f1226b025434e37c5e1703273f475a8
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-18 01:17 from django.db import migrations, models import gdstorage.storage
24.7
133
0.645749
4ceea5f4cec9bb94754cc5da49b08837bb9ff83a
119
py
Python
baseline/exp3_2d3ds/models/__init__.py
COATZ/ugscnn
23feb8465863aa473048ca40ede651356d977ac3
[ "MIT" ]
null
null
null
baseline/exp3_2d3ds/models/__init__.py
COATZ/ugscnn
23feb8465863aa473048ca40ede651356d977ac3
[ "MIT" ]
null
null
null
baseline/exp3_2d3ds/models/__init__.py
COATZ/ugscnn
23feb8465863aa473048ca40ede651356d977ac3
[ "MIT" ]
null
null
null
from .duc_hdc import * from .fcn8s import * from .fcn8s_sphe import * from .u_net import * from .u_net_sphe import *
23.8
26
0.731092
4cef81cfd3c231e8447459975ee732e4f8082b19
4,422
py
Python
tests/test_dm2-xnat-upload.py
gabiherman/datman
dcbca4981ff7bb1be536d6c62c3b27786cabdef9
[ "Apache-2.0" ]
null
null
null
tests/test_dm2-xnat-upload.py
gabiherman/datman
dcbca4981ff7bb1be536d6c62c3b27786cabdef9
[ "Apache-2.0" ]
null
null
null
tests/test_dm2-xnat-upload.py
gabiherman/datman
dcbca4981ff7bb1be536d6c62c3b27786cabdef9
[ "Apache-2.0" ]
null
null
null
import os import unittest import importlib import logging import zipfile from nose.tools import raises from mock import patch, MagicMock import datman import datman.xnat import datman.scanid # Disable all logging for the duration of testing logging.disable(logging.CRITICAL) upload = importlib.import_module('bin.dm_...
40.568807
79
0.661918
4cf0924837acecb1d2d66dfcb3f08a377e503f09
7,513
py
Python
digideep/environment/common/vec_env/subproc_vec_env.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
11
2019-03-09T23:54:02.000Z
2020-09-05T20:47:55.000Z
log_sessions/cartpole_8_5_05_1/modules/digideep/environment/common/vec_env/subproc_vec_env.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
1
2021-09-30T01:15:57.000Z
2021-09-30T01:15:57.000Z
digideep/environment/common/vec_env/subproc_vec_env.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
null
null
null
""" The MIT License Copyright (c) 2017 OpenAI (http://openai.com) 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, modify...
38.528205
128
0.615467
4cf0f488113cf847a420ceaef66021526af038d1
9,796
py
Python
sni/api/routers/corporation.py
altaris/seat-navy-issue
0595cdd25503e9702b847f083fbb6d5cb92b6829
[ "MIT" ]
1
2021-06-03T22:07:52.000Z
2021-06-03T22:07:52.000Z
sni/api/routers/corporation.py
r0kym/seat-navy-issue
dfd12df1230f68de7b7b05c1004e901be5046ad5
[ "MIT" ]
1
2020-07-06T13:59:09.000Z
2020-07-06T16:42:20.000Z
sni/api/routers/corporation.py
r0kym/seat-navy-issue
dfd12df1230f68de7b7b05c1004e901be5046ad5
[ "MIT" ]
1
2020-10-29T15:01:03.000Z
2020-10-29T15:01:03.000Z
""" Corporation management paths """ from datetime import datetime from typing import Dict, Iterator, List, Optional from fastapi import APIRouter, Depends import pydantic as pdt from sni.esi.scope import EsiScope, esi_scope_set_to_hex from sni.esi.token import tracking_status, TrackingStatus from sni.uac.clearance ...
29.957187
88
0.703655
4cf16cd9ea3ef1049b453f14c5dd39b3b590b2d4
2,454
py
Python
LeanIX/__init__.py
JeffGebhart/leanix-python-library
15449231b7ae0cbd96a1645192cdc57464924b4e
[ "MIT" ]
4
2020-04-28T12:34:15.000Z
2021-12-29T19:57:26.000Z
LeanIX/__init__.py
JeffGebhart/leanix-python-library
15449231b7ae0cbd96a1645192cdc57464924b4e
[ "MIT" ]
4
2020-05-06T13:26:13.000Z
2021-04-03T21:23:36.000Z
LeanIX/__init__.py
JeffGebhart/leanix-python-library
15449231b7ae0cbd96a1645192cdc57464924b4e
[ "MIT" ]
2
2020-06-04T10:54:44.000Z
2021-12-29T19:57:33.000Z
import requests import json from .Graph import Graph from .FactSheets import FactSheets from .Users import Users from .Metrics import Metrics from .Polls import Polls
36.088235
122
0.602689
4cf2e7e17245c8fd56f6374f295774ac71d456f6
5,752
py
Python
python/database.py
pm1997/othello
0dcebdf273d6e4a6b3c6216702bfc4b9a45bfa36
[ "MIT" ]
null
null
null
python/database.py
pm1997/othello
0dcebdf273d6e4a6b3c6216702bfc4b9a45bfa36
[ "MIT" ]
null
null
null
python/database.py
pm1997/othello
0dcebdf273d6e4a6b3c6216702bfc4b9a45bfa36
[ "MIT" ]
null
null
null
import os import numpy as np from constants import DATABASE_FILE_NAME, PLAYER_ONE, PLAYER_TWO, POSITION_TO_DATABASE from Agents.random import Random from othello import Othello import multiprocessing as mp db = Database()
39.129252
106
0.619784
4cf3f361510485e9fff924874f05f2ada3c665d8
5,114
py
Python
servo/controller.py
MrAI-NDHU/drive_away_pigeons
e10419e9ca9035760ed5e20b26825a972fd18ec4
[ "MIT" ]
1
2019-06-01T04:06:37.000Z
2019-06-01T04:06:37.000Z
servo/controller.py
MrAI-NDHU/servo_controller
42344044c3248a398b834248cf331893c0fedfa2
[ "MIT" ]
null
null
null
servo/controller.py
MrAI-NDHU/servo_controller
42344044c3248a398b834248cf331893c0fedfa2
[ "MIT" ]
null
null
null
import logging import math import time from typing import Dict, List from servo import Servo
39.953125
78
0.555729
4cf469984a513806e0e1e0c8ae654d64324c3888
990
py
Python
euler-50.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
euler-50.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
euler-50.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
euler_50()
26.052632
66
0.493939
4cf728f753dc109f252e6d8c8d313c5faac370b8
785
py
Python
scripts/rpc/cmd_parser.py
5cs/spdk
edd27df26d0764a6486333a431f40efe49521af3
[ "BSD-3-Clause" ]
2,107
2015-09-23T01:53:51.000Z
2022-03-29T09:55:13.000Z
scripts/rpc/cmd_parser.py
5cs/spdk
edd27df26d0764a6486333a431f40efe49521af3
[ "BSD-3-Clause" ]
2,382
2015-09-24T02:36:59.000Z
2022-03-31T22:53:45.000Z
scripts/rpc/cmd_parser.py
5cs/spdk
edd27df26d0764a6486333a431f40efe49521af3
[ "BSD-3-Clause" ]
916
2015-09-23T03:04:41.000Z
2022-03-31T05:45:04.000Z
args_global = ['server_addr', 'port', 'timeout', 'verbose', 'dry_run', 'conn_retries', 'is_server', 'rpc_plugin', 'called_rpc_name', 'func', 'client']
24.53125
86
0.596178
4cf793269fc1e46f707bfa6b409a7afeda8934b0
606
py
Python
neighbor/models.py
ShaviyaVictor/nyumbakumi-
933d825844da139998867594c1e21b09ba5c8e63
[ "MIT" ]
null
null
null
neighbor/models.py
ShaviyaVictor/nyumbakumi-
933d825844da139998867594c1e21b09ba5c8e63
[ "MIT" ]
null
null
null
neighbor/models.py
ShaviyaVictor/nyumbakumi-
933d825844da139998867594c1e21b09ba5c8e63
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User # Create your models here.
26.347826
62
0.759076
4cf7e3c7c267bf3db92b14c32b49d8243411b974
1,237
py
Python
MetroX_CircuitPython/ir_sensor/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
MetroX_CircuitPython/ir_sensor/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
MetroX_CircuitPython/ir_sensor/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Brent Rubell for Adafruit Industries # # SPDX-License-Identifier: MIT """ 'ir_sensor.py'. ================================================= control a LED with an IR Remote requires: - adafruit_irremote library """ import adafruit_irremote import board import digitalio import pulseio l...
23.788462
67
0.666128
4cf8442cf94ad2853dab8f12b88955925757d43c
71
py
Python
pyheos/__init__.py
WebSpider/pyheos
1a352d46d2b899a1a78d72b52771585da634f9b8
[ "Apache-2.0" ]
1
2018-08-29T08:08:03.000Z
2018-08-29T08:08:03.000Z
pyheos/__init__.py
WebSpider/pyheos
1a352d46d2b899a1a78d72b52771585da634f9b8
[ "Apache-2.0" ]
1
2018-09-08T07:40:19.000Z
2018-09-08T07:50:32.000Z
pyheos/__init__.py
WebSpider/pyheos
1a352d46d2b899a1a78d72b52771585da634f9b8
[ "Apache-2.0" ]
null
null
null
from .heos import * __author__ = 'Nils Vogels' __version__ = '20180701'
23.666667
26
0.746479
4cfa5a64d9c761e08234b1f78daae57a9df75fb5
891
py
Python
samples/CMU_MoCap_Angles.py
jutanke/pak
6f3be954ef68804ebe622cafe46f033ccf6eb2e7
[ "MIT" ]
20
2018-09-19T06:52:01.000Z
2020-10-02T11:18:00.000Z
samples/CMU_MoCap_Angles.py
jutanke/pak
6f3be954ef68804ebe622cafe46f033ccf6eb2e7
[ "MIT" ]
2
2018-06-22T08:22:39.000Z
2020-07-20T06:50:59.000Z
samples/CMU_MoCap_Angles.py
justayak/pak
6f3be954ef68804ebe622cafe46f033ccf6eb2e7
[ "MIT" ]
3
2020-01-12T08:51:09.000Z
2020-10-06T05:47:24.000Z
import json; from pprint import pprint Settings = json.load(open('settings.txt')) import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import sys sys.path.insert(0,'../') from pak.datasets.CMU_MoCap import CMU_MoCap import pak.datasets.CMU_MoCap as cmu data = CMU_MoCap(Settings['...
24.081081
66
0.684624
4cfcacd6574609d0c73077a10761daad4bb01dec
6,249
py
Python
bin/deploy.py
daniarherikurniawan/hillview
6dca7261f160364c491c97a4723d2d8dd5950eb3
[ "Apache-2.0" ]
1
2020-07-25T03:04:23.000Z
2020-07-25T03:04:23.000Z
bin/deploy.py
daniarherikurniawan/hillview
6dca7261f160364c491c97a4723d2d8dd5950eb3
[ "Apache-2.0" ]
null
null
null
bin/deploy.py
daniarherikurniawan/hillview
6dca7261f160364c491c97a4723d2d8dd5950eb3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """This python program deploys the files needed by the Hillview service on the machines specified in the configuration file.""" # pylint: disable=invalid-name from argparse import ArgumentParser import tempfile import os.path from hillviewCommon import ClusterConfiguration, get_config, get_l...
41.111842
91
0.678509
4cfcde29c9ac5aec7a0ddf37cfbc7746d563e594
126
py
Python
nbody/setup.py
libka-b/cython-playground
8652b5af46b03d30e1c95187aa77f02f4588b0cd
[ "MIT" ]
null
null
null
nbody/setup.py
libka-b/cython-playground
8652b5af46b03d30e1c95187aa77f02f4588b0cd
[ "MIT" ]
null
null
null
nbody/setup.py
libka-b/cython-playground
8652b5af46b03d30e1c95187aa77f02f4588b0cd
[ "MIT" ]
null
null
null
from distutils.core import setup from Cython.Build import cythonize setup(name="nbody", ext_modules=cythonize("nbody.pyx"))
21
55
0.793651
9800cea79f063843dec0db495c3ac332aebe744e
837
py
Python
xv_leak_tools/test_components/firewall/windows/windows_firewall.py
RDTCREW/expressvpn_leak_testing
da710573ccbe6472c4e4588058d9ec887e61e0a9
[ "MIT" ]
null
null
null
xv_leak_tools/test_components/firewall/windows/windows_firewall.py
RDTCREW/expressvpn_leak_testing
da710573ccbe6472c4e4588058d9ec887e61e0a9
[ "MIT" ]
null
null
null
xv_leak_tools/test_components/firewall/windows/windows_firewall.py
RDTCREW/expressvpn_leak_testing
da710573ccbe6472c4e4588058d9ec887e61e0a9
[ "MIT" ]
null
null
null
from xv_leak_tools.log import L from xv_leak_tools.exception import XVEx from xv_leak_tools.test_components.firewall.firewall import Firewall
34.875
81
0.703704
98014c1e42f4fbb2a89bc5013d0619e3883fc25d
1,272
py
Python
PythonTutor/session-10/stockprice.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
null
null
null
PythonTutor/session-10/stockprice.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
1
2020-02-14T13:24:01.000Z
2020-02-14T13:24:01.000Z
PythonTutor/session-10/stockprice.py
krishnamanchikalapudi/examples.py
7a373d24df06b8882d07b850435b268a24317b1e
[ "MIT" ]
2
2020-02-14T13:21:20.000Z
2021-06-30T00:50:33.000Z
import urllib3 from beautifulsoup4 import beautifulsoup4 as bs #Test # print get_historical_data('amzn', 15) # https://query1.finance.yahoo.com/v7/finance/download/WFC?period1=1561874153&period2=1593496553&interval=1d&events=history # https://query1.finance.yahoo.com/v7/finance/download/WFC?period1=1561874369&period...
45.428571
124
0.757075
9801e4aa71a88a3fbe7c467138d27dadd01c0840
13,667
py
Python
scripts/warp/warp.py
lfmontesanto/WoloxAndroidBootsrap
5e910bcf75c3c730096fc2beaad0fcea8355d24d
[ "MIT" ]
9
2018-10-10T14:11:48.000Z
2021-08-25T14:11:14.000Z
scripts/warp/warp.py
lfmontesanto/WoloxAndroidBootsrap
5e910bcf75c3c730096fc2beaad0fcea8355d24d
[ "MIT" ]
10
2019-07-22T20:02:09.000Z
2019-08-13T14:41:38.000Z
scripts/warp/warp.py
lfmontesanto/WoloxAndroidBootsrap
5e910bcf75c3c730096fc2beaad0fcea8355d24d
[ "MIT" ]
10
2019-04-11T00:23:47.000Z
2022-03-07T18:54:32.000Z
#!/usr/bin/python import os, glob, hashlib, pickle, argparse, shutil, ntpath import os, glob, hashlib, pickle, argparse, shutil, multiprocessing, signal, sys from multiprocessing import Pool from functools import partial ######################### Classes ############################## #################################...
36.640751
124
0.655813
9806a9bda8cab4a2b412b1e85490eb2a071b19ed
888
py
Python
moviecritic/models.py
mdameenh/elysia
ff173f036d13c179191a75c3d54e47314435bc28
[ "BSD-3-Clause" ]
null
null
null
moviecritic/models.py
mdameenh/elysia
ff173f036d13c179191a75c3d54e47314435bc28
[ "BSD-3-Clause" ]
3
2020-02-11T23:32:55.000Z
2021-06-10T19:02:19.000Z
moviecritic/models.py
mdameenh/elysia
ff173f036d13c179191a75c3d54e47314435bc28
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import ArrayField # Create your models here.
42.285714
81
0.734234
9806d568292fc34f46e2f6473bf682841aa7e86b
399
py
Python
djangular/tests/utils.py
jianglb-alibaba/djangular-0.2.7
d1e2d188cf4ab8ae757bd9bc3069ffef8f0fc753
[ "Apache-2.0" ]
145
2015-01-01T12:09:30.000Z
2022-01-28T13:59:50.000Z
djangular/tests/utils.py
jianglb-alibaba/djangular-0.2.7
d1e2d188cf4ab8ae757bd9bc3069ffef8f0fc753
[ "Apache-2.0" ]
25
2015-01-07T11:42:21.000Z
2016-12-14T19:23:45.000Z
djangular/tests/utils.py
jianglb-alibaba/djangular-0.2.7
d1e2d188cf4ab8ae757bd9bc3069ffef8f0fc753
[ "Apache-2.0" ]
40
2015-02-07T13:23:09.000Z
2022-01-28T13:59:53.000Z
import os from djangular import utils from django.test import SimpleTestCase
26.6
77
0.761905
980702341198aa7e69a66076a811f979a1f20f3d
816
py
Python
BA1E.py
tyleryasaka/rosalind-solutions
bfd6178450523587c75a5fa42c8af617a2c0cae0
[ "MIT" ]
null
null
null
BA1E.py
tyleryasaka/rosalind-solutions
bfd6178450523587c75a5fa42c8af617a2c0cae0
[ "MIT" ]
null
null
null
BA1E.py
tyleryasaka/rosalind-solutions
bfd6178450523587c75a5fa42c8af617a2c0cae0
[ "MIT" ]
null
null
null
datasetFile = open("datasets/rosalind_ba1e.txt", "r") genome = datasetFile.readline().strip() otherArgs = datasetFile.readline().strip() k, L, t = map(lambda x: int(x), otherArgs.split(" ")) solution = " ".join(findClumps(genome, k, L, t)) outputFile = open("output/rosalind_ba1e.txt", "a") outputFile.write(solution)
31.384615
53
0.584559
98070a04422061ac22173ccd227116ef553e0ba2
1,790
py
Python
src/wee/urls.py
dipkakwani/wee_app
a0f15053ec64a49611d759eaae6d780d608bea46
[ "MIT" ]
2
2016-11-18T18:43:10.000Z
2018-10-17T18:31:52.000Z
src/wee/urls.py
dipkakwani/wee_app
a0f15053ec64a49611d759eaae6d780d608bea46
[ "MIT" ]
null
null
null
src/wee/urls.py
dipkakwani/wee_app
a0f15053ec64a49611d759eaae6d780d608bea46
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls.static import static from userModule.views import home from userModule.views import userSettings from userModule.views import logout from groupModule.views import createGroup from groupModule.views import group fr...
37.291667
83
0.663128
98084799ad8be61ab260536f6d3ffcf5c84ac7c4
858
py
Python
src/encoded/searches/responses.py
procha2/encoded
e9f122362b71f3b8641023b8d2d5ad531d3484b7
[ "MIT" ]
102
2015-05-20T01:17:43.000Z
2022-03-07T06:03:55.000Z
src/encoded/searches/responses.py
procha2/encoded
e9f122362b71f3b8641023b8d2d5ad531d3484b7
[ "MIT" ]
901
2015-01-07T23:11:57.000Z
2022-03-18T13:56:12.000Z
src/encoded/searches/responses.py
procha2/encoded
e9f122362b71f3b8641023b8d2d5ad531d3484b7
[ "MIT" ]
65
2015-02-06T23:00:26.000Z
2022-01-22T07:58:44.000Z
from encoded.searches.mixins import CartAggsToFacetsMixin from snosearch.responses import BasicQueryResponseWithFacets from snosearch.responses import BasicMatrixResponseWithFacets
39
99
0.79021
98091677a4abdf5ae7609e479582ef5c7e59c7ee
4,215
py
Python
unit-tests/live/frames/test-t2ff-sensor.py
ksvbka/librealsense
72ada08ab2f6e9876d47135eea12325963205a04
[ "Apache-2.0" ]
6,457
2016-01-21T03:56:07.000Z
2022-03-31T11:57:15.000Z
unit-tests/live/frames/test-t2ff-sensor.py
ksvbka/librealsense
72ada08ab2f6e9876d47135eea12325963205a04
[ "Apache-2.0" ]
8,393
2016-01-21T09:47:28.000Z
2022-03-31T22:21:42.000Z
unit-tests/live/frames/test-t2ff-sensor.py
ksvbka/librealsense
72ada08ab2f6e9876d47135eea12325963205a04
[ "Apache-2.0" ]
4,874
2016-01-21T09:20:08.000Z
2022-03-31T15:18:00.000Z
# License: Apache 2.0. See LICENSE file in root directory. # Copyright(c) 2021 Intel Corporation. All Rights Reserved. # test:device L500* # test:device D400* import pyrealsense2 as rs from rspy.stopwatch import Stopwatch from rspy import test, log import time import platform # Start depth + color streams and measur...
39.392523
143
0.66382
980de4c0b0b2bdc8da8fd8f2177a3dbda0b77669
525
py
Python
example/serializers.py
divipayhq/drf_model_pusher
37f2d7c61839f641675da8db2bd4ec4932d4bd47
[ "MIT" ]
5
2018-07-23T00:21:29.000Z
2020-01-16T15:42:10.000Z
example/serializers.py
divipayhq/drf_model_pusher
37f2d7c61839f641675da8db2bd4ec4932d4bd47
[ "MIT" ]
39
2018-07-25T03:42:25.000Z
2021-12-20T03:51:13.000Z
example/serializers.py
divipayhq/drf_model_pusher
37f2d7c61839f641675da8db2bd4ec4932d4bd47
[ "MIT" ]
3
2018-10-02T16:29:34.000Z
2022-02-22T03:04:50.000Z
from rest_framework import serializers from example.models import MyPublicModel, MyPrivateModel, MyPresenceModel
23.863636
73
0.721905
980e80bc65953c70a1323e043e388be210aa7e04
5,033
py
Python
spektral/layers/convolutional/graph_conv.py
msaroufim/spektral
6881e6650602b2f98b09516f490c185678075bc8
[ "MIT" ]
1
2020-06-25T02:08:40.000Z
2020-06-25T02:08:40.000Z
spektral/layers/convolutional/graph_conv.py
msaroufim/spektral
6881e6650602b2f98b09516f490c185678075bc8
[ "MIT" ]
null
null
null
spektral/layers/convolutional/graph_conv.py
msaroufim/spektral
6881e6650602b2f98b09516f490c185678075bc8
[ "MIT" ]
null
null
null
from tensorflow.keras import activations, initializers, regularizers, constraints from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer from spektral.layers import ops from spektral.utils import localpooling_filter
39.629921
82
0.617326
980f19d193d1b32136b75cbaadce101f548347ae
31
py
Python
test.py
s-rohil/infrastructure-as-a-code
9919a9ea4a0a4f92cf7859cdc1919962ed6ba345
[ "MIT" ]
null
null
null
test.py
s-rohil/infrastructure-as-a-code
9919a9ea4a0a4f92cf7859cdc1919962ed6ba345
[ "MIT" ]
null
null
null
test.py
s-rohil/infrastructure-as-a-code
9919a9ea4a0a4f92cf7859cdc1919962ed6ba345
[ "MIT" ]
null
null
null
Test Dummy code to make commit
10.333333
25
0.806452
980f957ee23d0d452e8c9e89e704668d40c8799c
28,488
py
Python
pyBirdcagebuilder.py
umcu7tcoillab/pyBirdcagebuilder
ae4ee3c6f41888e358cd390e9ec996f3ad9b07b7
[ "MIT" ]
null
null
null
pyBirdcagebuilder.py
umcu7tcoillab/pyBirdcagebuilder
ae4ee3c6f41888e358cd390e9ec996f3ad9b07b7
[ "MIT" ]
null
null
null
pyBirdcagebuilder.py
umcu7tcoillab/pyBirdcagebuilder
ae4ee3c6f41888e358cd390e9ec996f3ad9b07b7
[ "MIT" ]
2
2020-09-01T15:51:18.000Z
2022-03-08T03:15:41.000Z
#!/usr/bin/env python3 """ Description: pyBirdcagebuilder is a program that calculates ideal capacitor values for birdcage coil designs. This program is based on the original Birdcage Builder program provided by PennState Health. (https://research.med.psu.edu/departments/center-for-nmr-research/software/birdca...
42.329866
193
0.726271
9811d96bc8f9c0a47fda662e895dddafdce0f7bd
1,057
py
Python
tests/semver/constraints/test_multi_constraint.py
batisteo/poetry
0667c67a9ebcc9250ad8d70f74f0905cc9f20ab2
[ "MIT" ]
null
null
null
tests/semver/constraints/test_multi_constraint.py
batisteo/poetry
0667c67a9ebcc9250ad8d70f74f0905cc9f20ab2
[ "MIT" ]
null
null
null
tests/semver/constraints/test_multi_constraint.py
batisteo/poetry
0667c67a9ebcc9250ad8d70f74f0905cc9f20ab2
[ "MIT" ]
null
null
null
from poetry.semver.constraints.constraint import Constraint from poetry.semver.constraints.multi_constraint import MultiConstraint
30.2
70
0.708609
981358a60d12ba10bedc463e2907dbad81cfa191
1,683
py
Python
epuap_watchdog/institutions/serializers.py
ad-m/epuap-watchdog
ff2dbbfe6c999e825dbf3f2bf2a94d8baa0a08ea
[ "MIT" ]
2
2017-07-30T16:41:41.000Z
2020-03-28T12:20:56.000Z
epuap_watchdog/institutions/serializers.py
ad-m/epuap-watchdog
ff2dbbfe6c999e825dbf3f2bf2a94d8baa0a08ea
[ "MIT" ]
5
2017-07-18T12:13:46.000Z
2017-07-28T15:48:38.000Z
epuap_watchdog/institutions/serializers.py
ad-m/epuap-watchdog
ff2dbbfe6c999e825dbf3f2bf2a94d8baa0a08ea
[ "MIT" ]
null
null
null
from rest_framework import serializers from teryt_tree.rest_framework_ext.serializers import JednostkaAdministracyjnaSerializer from .models import RESP, REGONError, REGON, JSTConnection, Institution, ESP
32.365385
107
0.69697
9813904cd1f0fe02015ac63d50232c8db9af77e9
21,950
py
Python
ross/fluid_flow/fluid_flow_coefficients.py
hiagopinacio/ross
1bc84061f23df455d9e37cb11b244ac795c836ad
[ "MIT" ]
1
2020-01-21T02:05:21.000Z
2020-01-21T02:05:21.000Z
ross/fluid_flow/fluid_flow_coefficients.py
hiagopinacio/ross
1bc84061f23df455d9e37cb11b244ac795c836ad
[ "MIT" ]
null
null
null
ross/fluid_flow/fluid_flow_coefficients.py
hiagopinacio/ross
1bc84061f23df455d9e37cb11b244ac795c836ad
[ "MIT" ]
1
2020-01-20T23:19:24.000Z
2020-01-20T23:19:24.000Z
import warnings from math import isnan import numpy as np from scipy import integrate from ross.fluid_flow.fluid_flow_geometry import move_rotor_center def calculate_oil_film_force(fluid_flow_object, force_type=None): """This function calculates the forces of the oil film in the N and T directions, ie in the ...
39.266547
113
0.579954
981440fe7da5408c2f393c5c158c741ef85a08d1
486
py
Python
dashboard/admin.py
AliBigdeli/Django-Metric-Monitoring-App
a251dc9c4eab26561029437ad437f43bffc479f7
[ "MIT" ]
null
null
null
dashboard/admin.py
AliBigdeli/Django-Metric-Monitoring-App
a251dc9c4eab26561029437ad437f43bffc479f7
[ "MIT" ]
null
null
null
dashboard/admin.py
AliBigdeli/Django-Metric-Monitoring-App
a251dc9c4eab26561029437ad437f43bffc479f7
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Device,Metric admin.site.register(Device, DeviceAdmin) admin.site.register(Metric, MetricAdmin)
28.588235
71
0.709877
98154190061bb9767d88942e0de497d9e1a07137
1,071
py
Python
tryTimer.py
Timaos123/maintian_PlatoUtils
6e3396ea303e2ac9b17b2eaa6d7c5db57ed1dc45
[ "MIT" ]
null
null
null
tryTimer.py
Timaos123/maintian_PlatoUtils
6e3396ea303e2ac9b17b2eaa6d7c5db57ed1dc45
[ "MIT" ]
null
null
null
tryTimer.py
Timaos123/maintian_PlatoUtils
6e3396ea303e2ac9b17b2eaa6d7c5db57ed1dc45
[ "MIT" ]
null
null
null
import time import numpy as np import gc a=[] start=time.time() for i in range(10000000): a.extend([[i,i+1,i+2]]) end=time.time() print(end-start) a=[] start=time.time() for i in range(10000000): a.append([i,i+1,i+2]) end=time.time() print(end-start) a=[] start=time.time() gc.disable() for i in range(1000000...
16.734375
31
0.630252
9815ebb912152a391b7b3289618744e5e4cc1f23
818
py
Python
migrations/versions/a45942d815f_added_upload_table.py
green-mercury/SampleManagerWeb
6dd2c9557e0285e1270c84375ebd6f8d10e422a4
[ "Apache-2.0" ]
4
2020-01-28T11:21:32.000Z
2020-01-29T09:09:02.000Z
migrations/versions/a45942d815f_added_upload_table.py
green-mercury/SampleManagerWeb
6dd2c9557e0285e1270c84375ebd6f8d10e422a4
[ "Apache-2.0" ]
5
2021-06-02T03:09:36.000Z
2022-03-12T00:49:43.000Z
migrations/versions/a45942d815f_added_upload_table.py
HolgerGraef/MSM
6dd2c9557e0285e1270c84375ebd6f8d10e422a4
[ "Apache-2.0" ]
null
null
null
"""added upload table Revision ID: a45942d815f Revises: 1de13fd625b1 Create Date: 2016-03-07 12:00:50.283535 """ # revision identifiers, used by Alembic. revision = 'a45942d815f' down_revision = '1de13fd625b1' from alembic import op import sqlalchemy as sa
24.787879
63
0.677262
9818a800cb69cee7cd1d2943f67320ac45add3c8
956
py
Python
core/tests/test_views.py
honno/ascii-forever
8364219db115229fa9eb0b059e9c0611dcb689cf
[ "MIT" ]
null
null
null
core/tests/test_views.py
honno/ascii-forever
8364219db115229fa9eb0b059e9c0611dcb689cf
[ "MIT" ]
null
null
null
core/tests/test_views.py
honno/ascii-forever
8364219db115229fa9eb0b059e9c0611dcb689cf
[ "MIT" ]
null
null
null
from django.urls import reverse from pytest import mark from core.models import * urls = [reverse(name) for name in ["core:index", "core:arts"]]
25.837838
82
0.694561
981a4012f0e9207383228850425145d6abe23671
168
py
Python
constants/nodetype.py
vladzaharia/meshnet
87a48c678094870cc273f4940f122e899eb1f5e1
[ "MIT" ]
1
2021-02-16T05:29:03.000Z
2021-02-16T05:29:03.000Z
constants/nodetype.py
vladzaharia/meshnet
87a48c678094870cc273f4940f122e899eb1f5e1
[ "MIT" ]
1
2021-02-16T06:23:08.000Z
2021-02-16T06:23:08.000Z
constants/nodetype.py
vladzaharia/meshnet
87a48c678094870cc273f4940f122e899eb1f5e1
[ "MIT" ]
null
null
null
# Node types TYPE_NODE = b'\x10' TYPE_NODE_NR = b'\x11' # Gateway types TYPE_GATEWAY = b'\x20' TYPE_GATEWAY_TIME = b'\x21' # Special types TYPE_PROVISIONING = b'\xFF'
16.8
27
0.714286
981c4fce270cc5bfa4ae7432956bd7590c48d09a
1,232
py
Python
commissioning/log2cases/parselog.py
dobos/pysynphot
5d2e0b52ceda78890940ac9239c2d88e149e0bed
[ "BSD-3-Clause" ]
24
2015-01-04T23:38:21.000Z
2022-02-01T00:11:07.000Z
commissioning/log2cases/parselog.py
dobos/pysynphot
5d2e0b52ceda78890940ac9239c2d88e149e0bed
[ "BSD-3-Clause" ]
126
2015-01-29T14:50:37.000Z
2022-02-15T01:58:13.000Z
commissioning/log2cases/parselog.py
dobos/pysynphot
5d2e0b52ceda78890940ac9239c2d88e149e0bed
[ "BSD-3-Clause" ]
25
2015-02-09T12:12:02.000Z
2021-09-09T13:06:54.000Z
"""This script *replaces* the processlog.csh shell script. It has more sophisticated logic to add the etc test name to the pysynphot command as another keyword-value pair. Modified to parse the modified line, then write a dictionary that will be read by the gencases tool. """ import sys,re, pickle from pysynphot impo...
29.333333
70
0.575487
981cc398c8251fbd0b8066f2be2d71a32ba021d7
5,561
py
Python
src/hypergraph_nets/reducers.py
yutian-zhao/STRIPS-HGN
2b5024335fe0f1518c4a2bab76983c504df09726
[ "MIT" ]
null
null
null
src/hypergraph_nets/reducers.py
yutian-zhao/STRIPS-HGN
2b5024335fe0f1518c4a2bab76983c504df09726
[ "MIT" ]
null
null
null
src/hypergraph_nets/reducers.py
yutian-zhao/STRIPS-HGN
2b5024335fe0f1518c4a2bab76983c504df09726
[ "MIT" ]
null
null
null
import torch # import time # from torch_scatter import scatter # Maybe see if this is good: https://github.com/rusty1s/pytorch_scatter # My implementation is quite suboptimal # def time_fun(f, iter, *args): # start_time = time.perf_counter() # start = time.time() # for i in range(iter): # f(*args)...
37.322148
126
0.664089
e21853ab6ec1a8c3451b991676d774192dce2fde
211
py
Python
examples/button.py
Akuli/tkinder
c360fbfe086ca09cdd856a8636de05b24e1b7093
[ "MIT" ]
23
2019-01-15T00:07:30.000Z
2022-01-18T06:19:18.000Z
examples/button.py
Akuli/tkinder
c360fbfe086ca09cdd856a8636de05b24e1b7093
[ "MIT" ]
12
2019-01-13T19:51:52.000Z
2021-05-17T17:55:51.000Z
examples/button.py
Akuli/pythotk
c360fbfe086ca09cdd856a8636de05b24e1b7093
[ "MIT" ]
7
2019-01-13T19:48:26.000Z
2021-04-21T13:30:21.000Z
import teek window = teek.Window() button = teek.Button(window, "Click me", command=on_click) button.pack() window.on_delete_window.connect(teek.quit) teek.run()
16.230769
58
0.720379
e2187da14d04338260778b407902ef0160f842f8
5,378
py
Python
docarray/array/mixins/find.py
fastflair/docarray
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
[ "Apache-2.0" ]
null
null
null
docarray/array/mixins/find.py
fastflair/docarray
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
[ "Apache-2.0" ]
null
null
null
docarray/array/mixins/find.py
fastflair/docarray
0bbdbc816b2f4a3b399779f6816875fbc1dfe862
[ "Apache-2.0" ]
null
null
null
import abc from typing import overload, Optional, Union, Dict, List, Tuple, Callable, TYPE_CHECKING import numpy as np from ...math import ndarray from ...score import NamedScore if TYPE_CHECKING: from ...types import T, ArrayType from ... import Document, DocumentArray
33.403727
118
0.551134
e21a888a401f8d1f617db8d771f21b250370c0bb
1,569
py
Python
zgres/systemd.py
jinty/zgres
88730e94bb543ec4d48c27523d02e3136b332173
[ "MIT" ]
12
2015-11-08T21:29:52.000Z
2018-10-25T04:45:58.000Z
zgres/systemd.py
jinty/zgres
88730e94bb543ec4d48c27523d02e3136b332173
[ "MIT" ]
null
null
null
zgres/systemd.py
jinty/zgres
88730e94bb543ec4d48c27523d02e3136b332173
[ "MIT" ]
6
2015-10-25T05:59:12.000Z
2021-01-06T08:02:46.000Z
import os from subprocess import check_call, call def write_service(service_name, contents): """Write a service file in a "safe" manner. If the contents of the file are the same as what is desired to be written, do nothing. First writes to a temporary file in the same directory as the target, the...
38.268293
103
0.67559
e21afb57aa8ccce52815f0ad4d4f545a41684adb
512
py
Python
native/java/lang/double.py
wonderyue/TinyJVM
5559730ab2aad35963fce977fb9b3ea78eb9a8e2
[ "MIT" ]
null
null
null
native/java/lang/double.py
wonderyue/TinyJVM
5559730ab2aad35963fce977fb9b3ea78eb9a8e2
[ "MIT" ]
null
null
null
native/java/lang/double.py
wonderyue/TinyJVM
5559730ab2aad35963fce977fb9b3ea78eb9a8e2
[ "MIT" ]
null
null
null
import struct def double_to_raw_long_bits(frame): """ public static native long doubleToRawLongBits(double value); """ value = frame.get_local_double(0) b = struct.pack("d", value) i = struct.unpack("l", b)[0] frame.push_operand_long(i) def long_bits_to_double(frame): """ public ...
23.272727
64
0.65625
e21b633cad6ae7e10b4918cae9d3ced7f0c2f856
224
py
Python
materiais/admin.py
lucgbrl/ecossistema-django
a374662be7e93a1f57b7318487074aa0bd905043
[ "MIT" ]
null
null
null
materiais/admin.py
lucgbrl/ecossistema-django
a374662be7e93a1f57b7318487074aa0bd905043
[ "MIT" ]
null
null
null
materiais/admin.py
lucgbrl/ecossistema-django
a374662be7e93a1f57b7318487074aa0bd905043
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post, Material, Video, Section # Register your models here. admin.site.register(Post) admin.site.register(Section) admin.site.register(Material) admin.site.register(Video)
32
50
0.8125
e21e9fda6c4a55682bbf0defc32a4a12f38a5131
6,493
py
Python
utils.py
ericqian1/poker_sim
0825b9d1e3e93dc4af37cf44568bd0baf6c5868a
[ "MIT" ]
null
null
null
utils.py
ericqian1/poker_sim
0825b9d1e3e93dc4af37cf44568bd0baf6c5868a
[ "MIT" ]
null
null
null
utils.py
ericqian1/poker_sim
0825b9d1e3e93dc4af37cf44568bd0baf6c5868a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 4 13:54:27 2019 @author: eric.qian """ from collections import Counter from itertools import combinations # Numeric hand rankings, higher integer value is stronger hand HAND_RANKINGS = {0: 'High Card', 1: 'One Pair', 2: 'T...
31.066986
119
0.538118
e21eb67206281500e398b6199cc031ce513a61af
1,713
py
Python
tests/types/test_boolean.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
3
2020-09-21T02:13:58.000Z
2021-09-18T02:32:56.000Z
tests/types/test_boolean.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
null
null
null
tests/types/test_boolean.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
2
2020-12-29T15:09:50.000Z
2022-01-04T16:19:48.000Z
from pytest import fixture, raises from py61850.types import Boolean # === DECODE === def test_byte_true_min_raw_value(): assert Boolean(b'\x01').raw_value == b'\x01' def test_byte_true_min_value(): assert Boolean(b'\x01').value is True def test_byte_true_max_raw_value(): assert Boolean(b'\xFF').ra...
15.861111
51
0.664332
e21f915c5f29fa2f88567990fe37ec71534110ac
129
py
Python
demo/cat.py
zbentley/useful-bash
d1d9f4bde3d53564c037f6ef18e0bbaa2144ffa3
[ "MIT" ]
5
2017-07-27T13:50:15.000Z
2021-08-14T18:52:52.000Z
demo/cat.py
zbentley/useful-bash
d1d9f4bde3d53564c037f6ef18e0bbaa2144ffa3
[ "MIT" ]
1
2020-09-18T18:04:29.000Z
2020-09-19T23:02:28.000Z
demo/cat.py
zbentley/useful-bash
d1d9f4bde3d53564c037f6ef18e0bbaa2144ffa3
[ "MIT" ]
1
2020-09-19T23:15:25.000Z
2020-09-19T23:15:25.000Z
#!/usr/bin/env python import sys with open(sys.argv[1], 'r') as f: for line in f.readlines(): sys.stdout.write(line)
21.5
33
0.627907
e220e53720f2fd8d160f1ff08fa40187d3250585
40,539
py
Python
orgediting.py
waynezhang/orgextended
853ae89f937d302c2dd9dad3ae98aa5c2485faaa
[ "MIT" ]
null
null
null
orgediting.py
waynezhang/orgextended
853ae89f937d302c2dd9dad3ae98aa5c2485faaa
[ "MIT" ]
null
null
null
orgediting.py
waynezhang/orgextended
853ae89f937d302c2dd9dad3ae98aa5c2485faaa
[ "MIT" ]
null
null
null
import sublime import sublime_plugin import datetime import re from pathlib import Path import os import fnmatch import OrgExtended.orgparse.loader as loader import OrgExtended.orgparse.node as node import OrgExtended.orgparse.date as orgdate from OrgExtended.orgparse.sublimenode import * import OrgExtended.orgutil....
41.535861
197
0.574681
e221b1914e820e512f676c3a926c07afe30f2d05
526
py
Python
examples/verilator/main.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
33
2018-06-11T22:58:23.000Z
2021-11-22T04:16:36.000Z
examples/verilator/main.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
90
2017-08-31T01:12:13.000Z
2021-09-17T04:07:07.000Z
examples/verilator/main.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
12
2017-09-01T03:25:36.000Z
2020-10-14T21:43:12.000Z
from magma import * from magma.verilator.verilator import compile as compileverilator from mantle.verilog.gates import And, XOr #main = DefineCircuit('main', "a", In(Bit), "b", In(Bit), "c", In(Bit), "d", Out(Bit), 'CLK', In(Bit)) main = DefineCircuit('main', "a", In(Bit), "b", In(Bit), "c", In(Bit), "d", Out(Bit)) t ...
26.3
102
0.638783
e222ff90231f967a2d2347ddf5dcea5c451c243b
3,908
py
Python
models/model.py
andersro93/School.ICT441.TextGenerator
e2efe2253a3cb24a196358d0074209340503069a
[ "MIT" ]
null
null
null
models/model.py
andersro93/School.ICT441.TextGenerator
e2efe2253a3cb24a196358d0074209340503069a
[ "MIT" ]
null
null
null
models/model.py
andersro93/School.ICT441.TextGenerator
e2efe2253a3cb24a196358d0074209340503069a
[ "MIT" ]
null
null
null
from nt import DirEntry import os import self as self from keras import Model as KerasModel
27.138889
94
0.58956
e22361b6b85eb5d012588be5245ff521ec8b6afb
930
py
Python
GmailWrapper_JE/venv/Lib/site-packages/requests_oauthlib/compliance_fixes/fitbit.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
GmailWrapper_JE/venv/Lib/site-packages/requests_oauthlib/compliance_fixes/fitbit.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
GmailWrapper_JE/venv/Lib/site-packages/requests_oauthlib/compliance_fixes/fitbit.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
""" The Fitbit API breaks from the OAuth2 RFC standard by returning an "errors" object list, rather than a single "error" string. This puts hooks in place so that oauthlib can process an error in the results from access token and refresh token responses. This is necessary to prevent getting the generic red herring ...
35.769231
80
0.708602
e2246947e66e0b1245fc29fca7409f6373480374
1,609
py
Python
merge_intervals.py
KevinLuo41/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
19
2015-01-19T19:36:09.000Z
2020-03-18T03:10:12.000Z
merge_intervals.py
CodingVault/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
null
null
null
merge_intervals.py
CodingVault/LeetCodeInPython
051e1aab9bab17b0d63b4ca73473a7a00899a16a
[ "Apache-2.0" ]
12
2015-04-25T14:20:38.000Z
2020-09-27T04:59:59.000Z
#!/usr/bin/env python # encoding: utf-8 """ merge_intervals.py Created by Shengwei on 2014-07-07. """ # https://oj.leetcode.com/problems/merge-intervals/ # tags: medium, array, interval """ Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],...
27.741379
65
0.573027
e226e53adb49fe2e348b71d72b9e0931ef0a41cb
3,495
py
Python
pesto-orm/pesto_orm/dialect/mysql/domain.py
Dreampie/pesto
3d48637c61396cdc3a5427b8f51378c06c2473d7
[ "Apache-2.0" ]
13
2020-05-22T09:32:48.000Z
2021-09-09T09:57:43.000Z
pesto-orm/pesto_orm/dialect/mysql/domain.py
Dreampie/pesto
3d48637c61396cdc3a5427b8f51378c06c2473d7
[ "Apache-2.0" ]
null
null
null
pesto-orm/pesto_orm/dialect/mysql/domain.py
Dreampie/pesto
3d48637c61396cdc3a5427b8f51378c06c2473d7
[ "Apache-2.0" ]
2
2020-05-25T18:05:20.000Z
2020-05-25T18:50:22.000Z
# coding=utf-8 import re import traceback from pesto_common.config.configer import Configer from pesto_common.log.logger_factory import LoggerFactory from pesto_orm.core.base import db_config from pesto_orm.core.executor import ExecutorFactory from pesto_orm.core.model import BaseModel from pesto_orm.core.repository i...
29.369748
155
0.650358
e2280586bc7cd2b0488f23077c0f84da82148064
10,454
py
Python
surround/tests/experiment_reader_test.py
ScottyB/surround
f9a86f5b5677de7bd5763d26de4a6f18c36f2a4d
[ "BSD-3-Clause" ]
null
null
null
surround/tests/experiment_reader_test.py
ScottyB/surround
f9a86f5b5677de7bd5763d26de4a6f18c36f2a4d
[ "BSD-3-Clause" ]
null
null
null
surround/tests/experiment_reader_test.py
ScottyB/surround
f9a86f5b5677de7bd5763d26de4a6f18c36f2a4d
[ "BSD-3-Clause" ]
null
null
null
import os import re import unittest import shutil import subprocess import logging import zipfile from io import BytesIO from ..experiment.file_storage_driver import FileStorageDriver from ..experiment.experiment_reader import ExperimentReader from ..experiment.experiment_writer import ExperimentWriter
41.816
185
0.668261
e228a846a1a3922a30fabd5f090ee4a98bd3e4e7
1,806
py
Python
quickmail/commands/clear.py
avikumar15/quick-mail-cli
4282fb62794671de89d5d8efc3697b0a0d540230
[ "MIT" ]
7
2021-03-20T06:22:44.000Z
2021-11-03T14:43:18.000Z
quickmail/commands/clear.py
avikumar15/quick-email-cli
4282fb62794671de89d5d8efc3697b0a0d540230
[ "MIT" ]
2
2021-11-04T03:21:57.000Z
2021-11-04T03:24:06.000Z
quickmail/commands/clear.py
avikumar15/quick-mail-cli
4282fb62794671de89d5d8efc3697b0a0d540230
[ "MIT" ]
null
null
null
from __future__ import print_function import os from argparse import ArgumentParser, Namespace from zope.interface import implementer from quickmail.commands import ICommand from quickmail.utils.misc import quick_mail_dir, heavy_tick, quick_mail_template_dir
43
127
0.643965
e22911017f694984b51868ace74cab9c0ac7a861
1,247
py
Python
python/int_questions/intersection.py
kellyjovan/algoholics-anon
0aec27a3cb8b54a60348c7c6f82f251355f7d698
[ "MIT" ]
17
2019-06-07T16:50:18.000Z
2021-12-27T16:40:13.000Z
python/cracking-coding/linked_list/intersection.py
ChristianEdwardPadilla/algoholics-anon
ee95348227caceffc621ef0962db7e81a2efd996
[ "MIT" ]
5
2020-01-31T16:01:49.000Z
2021-10-20T07:13:58.000Z
python/cracking-coding/linked_list/intersection.py
ChristianEdwardPadilla/algoholics-anon
ee95348227caceffc621ef0962db7e81a2efd996
[ "MIT" ]
9
2019-06-04T14:33:42.000Z
2020-08-14T13:14:19.000Z
# Have no idea how to do this # import sys # sys.path.insert(0, '../../data_structures') # import node def intersection(l1: Node, l2: Node) -> Node: l1_end, len1 = get_tail(l1) l2_end, len2 = get_tail(l2) if l1_end != l2_end: return None if len1 > len2: l1 = move_head(l1, len1 - len...
19.793651
45
0.580593
e22a7e102c77cfb0c69aac520a8607ca2b2c88b3
550
py
Python
bank_bot/tests/conftest.py
Tengro/larp_bankbot
22d5ea49d5f507da74fb3b1f106c24ad52cb9e68
[ "MIT" ]
3
2019-07-27T15:20:49.000Z
2019-10-14T13:10:55.000Z
bank_bot/tests/conftest.py
Tengro/larp_bankbot
22d5ea49d5f507da74fb3b1f106c24ad52cb9e68
[ "MIT" ]
1
2021-06-01T23:55:12.000Z
2021-06-01T23:55:12.000Z
bank_bot/tests/conftest.py
Tengro/larp_bankbot
22d5ea49d5f507da74fb3b1f106c24ad52cb9e68
[ "MIT" ]
null
null
null
import os import pytest from bank_bot.banking_system import Database
25
71
0.703636
e22cdecef594a7a4d01026c734e302cfb7902186
673
py
Python
django/users/migrations/0004_auto_20160408_1032.py
BD2KGenomics/brca-website
243bee560d5714f7cf5d98d06c83be345f1a11b4
[ "Apache-2.0" ]
5
2016-01-12T01:29:50.000Z
2017-03-10T08:34:52.000Z
django/users/migrations/0004_auto_20160408_1032.py
BD2KGenomics/brca-website-deprecated
243bee560d5714f7cf5d98d06c83be345f1a11b4
[ "Apache-2.0" ]
141
2015-08-06T18:51:37.000Z
2017-04-03T20:41:30.000Z
django/users/migrations/0004_auto_20160408_1032.py
BD2KGenomics/brca-website-deprecated
243bee560d5714f7cf5d98d06c83be345f1a11b4
[ "Apache-2.0" ]
8
2015-08-08T00:32:18.000Z
2016-07-29T16:05:44.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-08 10:32 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone
24.925926
74
0.616642
e22ed24dd1982b59d460dc15a81e37cb147cdf17
582
py
Python
src/page_object_pattern/test_template.py
paulbodean88/automation-design-patterns
b160f317a0c0a1de409908f938fbeab0772c8147
[ "MIT" ]
14
2017-07-25T10:11:06.000Z
2022-03-25T10:17:25.000Z
src/page_object_pattern/test_template.py
paulbodean88/automation-design-patterns
b160f317a0c0a1de409908f938fbeab0772c8147
[ "MIT" ]
3
2017-07-23T17:19:14.000Z
2017-07-24T19:54:52.000Z
src/page_object_pattern/test_template.py
paulbodean88/automation-design-patterns
b160f317a0c0a1de409908f938fbeab0772c8147
[ "MIT" ]
5
2019-08-29T02:35:04.000Z
2020-02-24T14:39:09.000Z
""" Description: - Test Template class. Methods: - test setup - test teardown - test implementation @author: Paul Bodean @date: 26/12/2017 """ import unittest from selenium import webdriver
18.1875
66
0.603093
e22fce042441cdd77adbcb54853ba9d70a939d7d
14,940
py
Python
gmacpyutil/gmacpyutil/profiles_test.py
rgayon/macops
1181ca269c9ae3235c1e9e7ae1bad4755b33c299
[ "Apache-2.0" ]
758
2015-01-05T19:48:20.000Z
2022-02-18T10:44:52.000Z
gmacpyutil/gmacpyutil/profiles_test.py
rgayon/macops
1181ca269c9ae3235c1e9e7ae1bad4755b33c299
[ "Apache-2.0" ]
161
2015-04-17T21:15:42.000Z
2019-05-27T03:05:19.000Z
gmacpyutil/gmacpyutil/profiles_test.py
rgayon/macops
1181ca269c9ae3235c1e9e7ae1bad4755b33c299
[ "Apache-2.0" ]
106
2015-01-20T21:21:00.000Z
2022-03-04T00:15:41.000Z
"""Tests for profiles module.""" import mock from google.apputils import basetest import profiles if __name__ == '__main__': basetest.main()
40.16129
79
0.71178
e23054b80783b903c8f24c3008cf90e547c8f3cc
835
py
Python
Hackerearth Set/NaviAndMath.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2019-02-26T14:06:53.000Z
2019-02-27T17:13:01.000Z
Hackerearth Set/NaviAndMath.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
null
null
null
Hackerearth Set/NaviAndMath.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2017-12-26T07:59:57.000Z
2018-06-24T03:35:05.000Z
# NAVI AND MATH mod = 1000000007 for i in range(int(input().strip())): ans = "Case #" + str(i+1) + ': ' N = int(input().strip()) Arr = [int(a) for a in input().strip().split()] mask = 3 maxx = -1 #ct = 0 while mask<(1<<N): p = 0 sm = 0 ml = 1 #ct += 1 ...
21.973684
51
0.42515
e23065a0cac10137de0062f9b29000d28da9f538
10,241
py
Python
hw2/stud/models/absa_classifier.py
LeonardoEmili/Aspect-Based-Sentiment-Analysis
d6a37132931401c1a6d4a53208055cc507e2a7a8
[ "MIT" ]
6
2021-09-19T20:35:54.000Z
2022-03-20T08:07:30.000Z
hw2/stud/models/absa_classifier.py
LeonardoEmili/Aspect-Based-Sentiment-Analysis
d6a37132931401c1a6d4a53208055cc507e2a7a8
[ "MIT" ]
null
null
null
hw2/stud/models/absa_classifier.py
LeonardoEmili/Aspect-Based-Sentiment-Analysis
d6a37132931401c1a6d4a53208055cc507e2a7a8
[ "MIT" ]
null
null
null
from typing import * from dataclasses import asdict from transformers import BertModel from torch.nn.utils.rnn import pad_sequence from stud.models.ner_classifier import NERClassifier from stud.models.polarity_classifier import PolarityClassifier from stud.constants import LOGGER_TRAIN_LOSS, LOGGER_VALID_LOSS, LOGGER_T...
40.003906
128
0.650229
e2307c5662b8b852eaadcd3190cbb2fd42ef7f6a
4,596
py
Python
license_plate_images_generator.py
aboerzel/ANPR-keras
c49fe4031752227d99d4acccccb35f6cb896db68
[ "MIT" ]
6
2019-07-24T05:18:27.000Z
2020-04-25T12:45:04.000Z
license_plate_images_generator.py
aboerzel/ANPR-keras
c49fe4031752227d99d4acccccb35f6cb896db68
[ "MIT" ]
null
null
null
license_plate_images_generator.py
aboerzel/ANPR-keras
c49fe4031752227d99d4acccccb35f6cb896db68
[ "MIT" ]
2
2019-03-23T05:16:15.000Z
2020-06-22T03:12:38.000Z
import argparse import json import os.path import random import re import time import cv2 import numpy as np import requests from PIL import Image from config import config ap = argparse.ArgumentParser() ap.add_argument("-i", "--items", default="60000", help="Number of items to generate") ap.add_argument("-o", "--...
41.405405
326
0.625109
e230b228e297b8e956c0badf85c55a74344705b8
4,697
py
Python
SUIBE_DID_Data_Manager/weidentity/localweid.py
SUIBE-Blockchain/SUIBE_DID_Data_Manager
d38f3f37463f36802eb6acb578f8e17faf878c79
[ "MIT" ]
null
null
null
SUIBE_DID_Data_Manager/weidentity/localweid.py
SUIBE-Blockchain/SUIBE_DID_Data_Manager
d38f3f37463f36802eb6acb578f8e17faf878c79
[ "MIT" ]
2
2020-10-21T07:05:43.000Z
2020-10-22T17:10:53.000Z
SUIBE_DID_Data_Manager/weidentity/localweid.py
SUIBE-Blockchain/SUIBE_DID_Data_Manager
d38f3f37463f36802eb6acb578f8e17faf878c79
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- import os from eth_account import Account import sha3 import base64 import hashlib from ecdsa import SigningKey, SECP256k1 DID_TYPE = ["weid"] def ethtype_to_int_priv_pubv(priv, pubv): """ priv pubv weidentity :param priv: type: bytes :param pubv: type: hex :return: pr...
28.295181
76
0.629764