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
7782dc0b8f7adac64fefe30db6e4e0b71d7f41a9
650
py
Python
App/Apis/like_blog.py
sajinchang/blog
5c8c7e41f6a038edb4dcfb73e254834781d31d0f
[ "Apache-2.0" ]
null
null
null
App/Apis/like_blog.py
sajinchang/blog
5c8c7e41f6a038edb4dcfb73e254834781d31d0f
[ "Apache-2.0" ]
null
null
null
App/Apis/like_blog.py
sajinchang/blog
5c8c7e41f6a038edb4dcfb73e254834781d31d0f
[ "Apache-2.0" ]
null
null
null
''' -*- coding: utf-8 -*- @Time : 18-12-1 4:19 @Author : SamSa @Site : @File : like_blog.py @Software: PyCharm @Statement: ''' from flask import session from flask_restful import Resource, reqparse from App.models.likeModel import Like parse = reqparse.RequestParser() parse.add_argument('blog_id')
21.666667
44
0.621538
778576c10bbe70454c010137342f7b1e385656b7
1,478
py
Python
config.py
Agasper/gaben
7418a79d0809c34b5ab63a2b201305f89445eb19
[ "MIT" ]
null
null
null
config.py
Agasper/gaben
7418a79d0809c34b5ab63a2b201305f89445eb19
[ "MIT" ]
null
null
null
config.py
Agasper/gaben
7418a79d0809c34b5ab63a2b201305f89445eb19
[ "MIT" ]
null
null
null
API_KEY = "" DONT_PRINT_USAGE_FOR = [] REP_DIRECTORY = "C:\\GabenStorage" MAX_UPLOAD_SIZE_MB = 300 UNITY = { "2017.2.0f3": "C:\\Program Files\\Unity\\Editor\\Unity.exe", "2017.4.3f1": "C:\\Program Files\\Unity2017.4.3\\Editor\\Unity.exe" } QUOTES = ["I'm a handsome man with a charming personality.", \ "If Nvid...
52.785714
109
0.696211
7786c106803d9e2cbd937d3ffdaefd0630b720b5
1,219
py
Python
unittest/scripts/auto/py_shell/scripts/util_help_norecord.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
119
2016-04-14T14:16:22.000Z
2022-03-08T20:24:38.000Z
unittest/scripts/auto/py_shell/scripts/util_help_norecord.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
9
2017-04-26T20:48:42.000Z
2021-09-07T01:52:44.000Z
unittest/scripts/auto/py_shell/scripts/util_help_norecord.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
51
2016-07-20T05:06:48.000Z
2022-03-09T01:20:53.000Z
#@ util help util.help() #@ util help, \? [USE:util help] \? util #@ util check_for_server_upgrade help util.help('check_for_server_upgrade') #@ util check_for_server_upgrade help, \? [USE:util check_for_server_upgrade help] \? check_for_server_upgrade # WL13807-TSFR_1_1 #@ util dump_instance help util.help('dump_i...
21.017241
82
0.73749
77876fcebd14360f0df45f06c5f1c5e81ef6d9e8
26,254
py
Python
Classes/Group.py
amiralirj/DarkHelper
386eea58eb6b9766d6f900a83f87eeac0b8f09c2
[ "MIT" ]
34
2021-08-05T12:41:18.000Z
2021-11-30T22:23:20.000Z
Classes/Group.py
amiralirj/DarkHelper
386eea58eb6b9766d6f900a83f87eeac0b8f09c2
[ "MIT" ]
2
2021-08-29T10:32:02.000Z
2021-08-31T12:10:29.000Z
Classes/Group.py
amiralirj/DarkHelper
386eea58eb6b9766d6f900a83f87eeac0b8f09c2
[ "MIT" ]
5
2021-08-07T07:41:44.000Z
2021-08-20T13:52:36.000Z
from datetime import datetime import sys sys.path.insert(1, r'C:\Users\ASUS\Desktop\sources\Telegram\werewolf\Darkhelper\2\V2\Databases') from Databases.Groups import GroupsPlayersBase , GroupsBase , GroupsControlBase from Databases.Groups.Bet import BetBase from Databases.Users import AdminsBase from Database...
33.487245
97
0.534585
77887b5f75a8007429ccd688b6a70274272382e7
2,297
py
Python
Powerswitch.py
NikBenson/LINDY-IPower-Stripe-Lite-web-scrapping
d403c535e84652563df86d6ea03c41386f6febe0
[ "Unlicense" ]
1
2020-05-15T16:23:17.000Z
2020-05-15T16:23:17.000Z
Powerswitch.py
NikBenson/LINDY-IPower-Stripe-Lite-web-scrapping
d403c535e84652563df86d6ea03c41386f6febe0
[ "Unlicense" ]
4
2020-05-15T17:00:03.000Z
2020-05-19T16:54:45.000Z
Powerswitch.py
NikBenson/LINDY-IPower-Stripe-Lite-web-scrapping
d403c535e84652563df86d6ea03c41386f6febe0
[ "Unlicense" ]
null
null
null
import requests from bs4 import BeautifulSoup import sys import re args = sys.argv page = None soup = None ## # @var Errorcode # @return void # # Error codes: # 1: wrong arguments # 400+: network connection error ## if __name__ == "__main__": main()
20.327434
158
0.531563
778a94b3c26348cfca0245b76d7da61e8630556c
643
py
Python
mocking/test_mock_2_sql.py
vishwanatham/Python-Testing
60c8325f982c356b1e0990a809e05efcbcb16f76
[ "Apache-2.0" ]
null
null
null
mocking/test_mock_2_sql.py
vishwanatham/Python-Testing
60c8325f982c356b1e0990a809e05efcbcb16f76
[ "Apache-2.0" ]
null
null
null
mocking/test_mock_2_sql.py
vishwanatham/Python-Testing
60c8325f982c356b1e0990a809e05efcbcb16f76
[ "Apache-2.0" ]
null
null
null
from unittest import mock from . import mock_2_sql # odbc.connect # connection.cursor() # cursor.execute() # results.description # results.fetchall
27.956522
65
0.7014
778c88cd5d96025a6220b688554a2542ff61c748
3,225
py
Python
pretix_hide_sold_out/management/commands/hide_sold_out.py
pretix-unofficial/pretix-hide-sold-out
9a529586e44e2a6f7fb2e60b0ae578805d725185
[ "Apache-2.0" ]
null
null
null
pretix_hide_sold_out/management/commands/hide_sold_out.py
pretix-unofficial/pretix-hide-sold-out
9a529586e44e2a6f7fb2e60b0ae578805d725185
[ "Apache-2.0" ]
null
null
null
pretix_hide_sold_out/management/commands/hide_sold_out.py
pretix-unofficial/pretix-hide-sold-out
9a529586e44e2a6f7fb2e60b0ae578805d725185
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta from django.core.management.base import BaseCommand from django.db.models import Q from django.utils.timezone import now from django_scopes import scopes_disabled from pretix.base.models import Event, Quota from pretix.base.services.quotas import QuotaAvailability
39.329268
88
0.487752
778e7c20b282230893c8d830986a05ad41c75dfa
479
py
Python
globus/afisha/admin.py
Ecmek/kino-globus
31d61da551ece237cbfed6b96f7fdf49b8c06c9f
[ "BSD-3-Clause" ]
3
2021-08-02T04:35:53.000Z
2021-08-17T07:29:53.000Z
globus/afisha/admin.py
Ecmek/kino-globus
31d61da551ece237cbfed6b96f7fdf49b8c06c9f
[ "BSD-3-Clause" ]
null
null
null
globus/afisha/admin.py
Ecmek/kino-globus
31d61da551ece237cbfed6b96f7fdf49b8c06c9f
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Cinema, ShowTime admin.site.register(Cinema, CinemaAdmin) admin.site.register(ShowTime, ShowTimeAdmin)
25.210526
72
0.713987
778fabd0a6e7a525243766bf0bbf78d0ca3b7e4f
1,958
py
Python
day05/main.py
Jachoooo/AdventOfCode2021
90b1a98d76a391e2e54b961be5f83c6f8e86dadb
[ "MIT" ]
null
null
null
day05/main.py
Jachoooo/AdventOfCode2021
90b1a98d76a391e2e54b961be5f83c6f8e86dadb
[ "MIT" ]
null
null
null
day05/main.py
Jachoooo/AdventOfCode2021
90b1a98d76a391e2e54b961be5f83c6f8e86dadb
[ "MIT" ]
null
null
null
import time import numpy as np from PIL import Image FILENAME="input.txt" if FILENAME=="test.txt": D=True SIZE=10 else: D=False SIZE=1000 starttime=time.time() print("\u001b[2J\u001b[0;0H") inputFile=open(FILENAME,'r') Coords=[] for line in inputFile: Coords.append([int(y) for x in line.strip()...
23.878049
86
0.564862
778fb71f12ae8c51f973cddbe8eaa78a2585d697
1,129
py
Python
techradarscraper/spiders/techradar.py
jcdenton/techradar-scraper
445a055b3355945a812a046913ac3ee038d26a8b
[ "MIT" ]
null
null
null
techradarscraper/spiders/techradar.py
jcdenton/techradar-scraper
445a055b3355945a812a046913ac3ee038d26a8b
[ "MIT" ]
null
null
null
techradarscraper/spiders/techradar.py
jcdenton/techradar-scraper
445a055b3355945a812a046913ac3ee038d26a8b
[ "MIT" ]
null
null
null
import scrapy import scrapy.spiders from techradarscraper.items import TechLoader if __name__ == '__main__': from scrapy.utils.project import get_project_settings settings = get_project_settings() settings.setdict({ 'LOG_LEVEL': 'INFO', 'OUTPUT_FILENAME': '../../out/techradar.json', ...
29.710526
65
0.651019
7791064a4d310761029e6775a24459c383307554
255
py
Python
doozerlib/constants.py
tnozicka/doozer
c5d4031293153679eacaf6c4d0bcb1fe5e0e2fac
[ "Apache-2.0" ]
null
null
null
doozerlib/constants.py
tnozicka/doozer
c5d4031293153679eacaf6c4d0bcb1fe5e0e2fac
[ "Apache-2.0" ]
null
null
null
doozerlib/constants.py
tnozicka/doozer
c5d4031293153679eacaf6c4d0bcb1fe5e0e2fac
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals # Environment variables to disable Git stdin prompts for username, password, etc GIT_NO_PROMPTS = { "GIT_SSH_COMMAND": "ssh -oBatchMode=yes", "GIT_TERMINAL_PROMPT": "0", }
28.333333
80
0.768627
7792f690421f8a62630cbb8841a774c5033b00bf
863
py
Python
bitsoapi/models/public/Trade.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
bitsoapi/models/public/Trade.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
bitsoapi/models/public/Trade.py
oxsoftdev/bitsoapi
daa15c8921f4e49e07f1a958e8837d3548db329d
[ "MIT" ]
null
null
null
from decimal import Decimal from .._BaseModel import BaseModel
30.821429
65
0.521437
7794a14d37662778db42c86b4ebd23351d7cb1ea
944
py
Python
day-16/part-1/badouralix.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
12
2020-11-30T19:22:18.000Z
2021-06-21T05:55:58.000Z
day-16/part-1/badouralix.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
13
2020-11-30T17:27:22.000Z
2020-12-22T17:43:13.000Z
day-16/part-1/badouralix.py
evqna/adventofcode-2020
526bb9c87057d02bda4de9647932a0e25bdb3a5b
[ "MIT" ]
3
2020-12-01T08:49:40.000Z
2022-03-26T21:47:38.000Z
from tool.runners.python import SubmissionPy
27.764706
64
0.422669
77952b3cbd476e2ae15072c2d6f0e3edf0e30600
2,200
py
Python
main_orchestrator.py
deib-polimi/FederatedLearningFramework
d6ab5cfb2f3c9cbe594aed1ff0a6a34499655718
[ "Artistic-1.0-cl8" ]
null
null
null
main_orchestrator.py
deib-polimi/FederatedLearningFramework
d6ab5cfb2f3c9cbe594aed1ff0a6a34499655718
[ "Artistic-1.0-cl8" ]
null
null
null
main_orchestrator.py
deib-polimi/FederatedLearningFramework
d6ab5cfb2f3c9cbe594aed1ff0a6a34499655718
[ "Artistic-1.0-cl8" ]
2
2021-02-10T13:30:41.000Z
2021-02-10T13:38:54.000Z
import os import federate_learning as fl from federate_learning.orchestrator.control_strategy import ControlType from federate_learning.orchestrator.control_strategy.control_strategy import Target from federate_learning.orchestrator.control_strategy.control_strategy_factory import ControlStrategyFactory num_rounds = i...
52.380952
107
0.609545
77973ca787dfcde727b1b886ead1679bee0bfb65
8,940
py
Python
satellite-processing/aggregate_cci_aatsr.py
tommibergman/gmdd-tm5-soa
20168c86caeb14aed72af72b14c3b8185700ddd8
[ "MIT" ]
null
null
null
satellite-processing/aggregate_cci_aatsr.py
tommibergman/gmdd-tm5-soa
20168c86caeb14aed72af72b14c3b8185700ddd8
[ "MIT" ]
null
null
null
satellite-processing/aggregate_cci_aatsr.py
tommibergman/gmdd-tm5-soa
20168c86caeb14aed72af72b14c3b8185700ddd8
[ "MIT" ]
null
null
null
import glob import subprocess from settings import rawoutput if __name__ == '__main__': main()
93.125
307
0.723937
7797ce59751ce5d6bc05d0053a85c22386ad66a5
2,234
py
Python
xu/src/python/Request/Adapter/ItemAdapter.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
xu/src/python/Request/Adapter/ItemAdapter.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
xu/src/python/Request/Adapter/ItemAdapter.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
import os from PyQt5.QtWidgets import QListWidget from xu.compa.Parapluie.src.ActionWidget import PWidget from xu.compa.Parapluie.src.Adapter import PListAdapter from xu.compa.xhash import XashList, XashHelp from xu.src.python.Model import XFile from xu.src.python.Model.ItemModel import ItemModel from xu.src.python.M...
33.343284
101
0.587735
77984a9436d4a3b5de5e37b9e6fe5e44d68889cf
2,175
py
Python
tests/utils.py
paul-serafimescu/growth-tracker
972dd1de534225a9be2e763045db560f420a844c
[ "MIT" ]
1
2021-07-28T04:21:12.000Z
2021-07-28T04:21:12.000Z
tests/utils.py
paul-serafimescu/growth-tracker
972dd1de534225a9be2e763045db560f420a844c
[ "MIT" ]
null
null
null
tests/utils.py
paul-serafimescu/growth-tracker
972dd1de534225a9be2e763045db560f420a844c
[ "MIT" ]
null
null
null
from django.test import TestCase, RequestFactory from django.contrib.auth.models import AbstractBaseUser, AnonymousUser from django.test.client import CONTENT_TYPE_RE from django.views import View from django.urls import resolve from abc import abstractclassmethod, ABCMeta from typing import Any, Callable, Union, Type ...
40.277778
139
0.694253
779a5acdc9da2c065c075fcace13341d5ba2d7ad
14,060
py
Python
app/views.py
epf23/SegundoParcial
08861c3429b33a12742eab32e4388b777d845e0a
[ "MIT" ]
null
null
null
app/views.py
epf23/SegundoParcial
08861c3429b33a12742eab32e4388b777d845e0a
[ "MIT" ]
2
2021-05-10T06:53:13.000Z
2021-06-02T00:17:20.000Z
app/views.py
epf23/SegundoParcial
08861c3429b33a12742eab32e4388b777d845e0a
[ "MIT" ]
null
null
null
# views.py #Importar conector MySQL import mysql.connector import requests import json from flask import render_template, request from flask_table import Table, Col from app import app ##Conexin a la BD inf_Activos_Fijos = mysql.connector.connect( host="localhost", user="root", passwd="admin", database="inf...
33.160377
427
0.655405
779bce1c76be2c01deed4def7205f36123af6290
17,395
py
Python
utils/qemu/main.py
JanDorniak99/memkind
249493e2a82bb7faff952acd795c16200da68255
[ "BSD-3-Clause" ]
null
null
null
utils/qemu/main.py
JanDorniak99/memkind
249493e2a82bb7faff952acd795c16200da68255
[ "BSD-3-Clause" ]
null
null
null
utils/qemu/main.py
JanDorniak99/memkind
249493e2a82bb7faff952acd795c16200da68255
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-2-Clause # Copyright (C) 2020 - 2021 Intel Corporation. import argparse import collections import fabric import functools import os import paramiko import pathlib import psutil import re import subprocess import sys import time import typing TCP_PORT = 10022 VNC_DEFAULT_PORT = 5900 VNC_...
34.651394
156
0.588732
779c18c2b516a68d46093b76fcd67c1fb65a3cd2
89
py
Python
mentorprise/backend_dev/__init__.py
CS261-Group-17/Mentoring-Site
b0425ec967c3241561ab8eb65cce75a35f3e5814
[ "MIT" ]
null
null
null
mentorprise/backend_dev/__init__.py
CS261-Group-17/Mentoring-Site
b0425ec967c3241561ab8eb65cce75a35f3e5814
[ "MIT" ]
null
null
null
mentorprise/backend_dev/__init__.py
CS261-Group-17/Mentoring-Site
b0425ec967c3241561ab8eb65cce75a35f3e5814
[ "MIT" ]
null
null
null
"""Needed for pylint to run correctly - GitHub actions will fail if you delete this"""
29.666667
79
0.730337
779d03ca3e0d0662556d8cbcd36d94ff27c5d5b6
2,336
py
Python
binarize.py
WinnieHAN/xcfg
70f3df72a815b543312ae82bb86f645eaf35447d
[ "MIT" ]
null
null
null
binarize.py
WinnieHAN/xcfg
70f3df72a815b543312ae82bb86f645eaf35447d
[ "MIT" ]
null
null
null
binarize.py
WinnieHAN/xcfg
70f3df72a815b543312ae82bb86f645eaf35447d
[ "MIT" ]
null
null
null
import sys, os import argparse, json from batchify import ( get_tags_tokens_lowercase, get_nonbinary_spans, get_nonbinary_spans_label, get_actions ) parser = argparse.ArgumentParser() parser.add_argument('--binarize', default=False, type=bool) parser.add_argument('--ifile', default=None, type=str...
32.901408
85
0.569777
779db1909e89a924773ce4c275b00bc51e3b47f1
572
py
Python
manage_room/migrations/0005_auto_20170129_0024.py
gaybro8777/coding-night-live
b10aeefbcb35fa388a18cb983638ed5983c1874b
[ "MIT" ]
73
2017-01-26T16:45:12.000Z
2021-07-05T20:27:38.000Z
manage_room/migrations/0005_auto_20170129_0024.py
gaybro8777/coding-night-live
b10aeefbcb35fa388a18cb983638ed5983c1874b
[ "MIT" ]
93
2017-01-25T18:28:02.000Z
2019-06-10T22:11:38.000Z
manage_room/migrations/0005_auto_20170129_0024.py
dduk-ddak/coding-night-live
be7b0b9a89a9a5332c0980dbc3698602266a1e8c
[ "MIT" ]
22
2017-02-12T12:51:17.000Z
2020-09-08T02:38:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-01-28 15:24 from __future__ import unicode_literals from django.db import migrations, models
22.88
64
0.59965
779ddd9588fb1634cac7f9efb6fe015b9494fabb
97
py
Python
server/config.py
cryptSky/hlsa_task8
ed0d8d9d69b5e8f3bdfa5964c66ce6dcf27f07c1
[ "MIT" ]
null
null
null
server/config.py
cryptSky/hlsa_task8
ed0d8d9d69b5e8f3bdfa5964c66ce6dcf27f07c1
[ "MIT" ]
null
null
null
server/config.py
cryptSky/hlsa_task8
ed0d8d9d69b5e8f3bdfa5964c66ce6dcf27f07c1
[ "MIT" ]
null
null
null
import os
16.166667
41
0.701031
779e9f40e92537973be64d2dc298cc911fe154df
11,165
py
Python
storyboard/tests/api/test_user_tokens.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
storyboard/tests/api/test_user_tokens.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
storyboard/tests/api/test_user_tokens.py
Sitcode-Zoograf/storyboard
5833f87e20722c524a1e4a0b8e1fb82206fb4e5c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # 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...
37.847458
79
0.628482
779fc28c39695eb6df6d6b4def228165b9c64ed4
367
py
Python
altimeter/qj/api/v1/api.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
48
2019-11-06T03:20:53.000Z
2022-02-22T21:10:45.000Z
altimeter/qj/api/v1/api.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
27
2020-01-07T23:48:30.000Z
2022-02-26T00:24:04.000Z
altimeter/qj/api/v1/api.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
21
2019-12-20T03:06:35.000Z
2021-12-15T23:26:00.000Z
"""V1 API router""" from fastapi import APIRouter from altimeter.qj.api.v1.endpoints.jobs import JOBS_ROUTER from altimeter.qj.api.v1.endpoints.result_sets import RESULT_SETS_ROUTER V1_ROUTER = APIRouter() V1_ROUTER.include_router(JOBS_ROUTER, prefix="/jobs", tags=["jobs"]) V1_ROUTER.include_router(RESULT_SETS_ROUTER...
36.7
89
0.80109
77a183af4339d21d85056b154e87b277a85c39f0
580
py
Python
PrepareSession.py
Brett777/Predict-Churn
1d6e5267a5e5165c1c9344103a86066751094404
[ "MIT" ]
12
2017-07-29T00:01:12.000Z
2021-01-10T17:37:17.000Z
PrepareSession.py
Brett777/Predict-Churn
1d6e5267a5e5165c1c9344103a86066751094404
[ "MIT" ]
null
null
null
PrepareSession.py
Brett777/Predict-Churn
1d6e5267a5e5165c1c9344103a86066751094404
[ "MIT" ]
8
2017-04-25T20:48:43.000Z
2019-02-22T18:39:22.000Z
import os os.system("sudo apt-get update") #os.system('sudo apt-get install openjdk-8-jre -y') os.system('wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz') os.system('tar -zxf jdk-8u131-lin...
48.333333
191
0.753448
77a42ebcd9ea4cb69ec051331476e944a4e33c5f
773
py
Python
procuret/tests/variants/with_supplier.py
Procuret/procuret-python
2f49cbd3454e33986c84a6c32c0f0ab8f60d4b82
[ "MIT" ]
null
null
null
procuret/tests/variants/with_supplier.py
Procuret/procuret-python
2f49cbd3454e33986c84a6c32c0f0ab8f60d4b82
[ "MIT" ]
null
null
null
procuret/tests/variants/with_supplier.py
Procuret/procuret-python
2f49cbd3454e33986c84a6c32c0f0ab8f60d4b82
[ "MIT" ]
1
2020-10-28T14:26:21.000Z
2020-10-28T14:26:21.000Z
""" Procuret Python Test With Supplier Module author: hugh@blinkybeach.com """ from procuret.ancillary.command_line import CommandLine from procuret.tests.variants.with_session import TestWithSession
22.735294
64
0.673997
77a6afd8f1955a99cb36bf0467221ed85c5339b1
6,566
py
Python
firedetectionserver/src/inferenceserver.py
aj-ames/NSAC-NULLPointers
36945b0f9678509213b9b17d93c36f2a3b92285c
[ "MIT" ]
1
2020-10-03T11:14:06.000Z
2020-10-03T11:14:06.000Z
firedetectionserver/src/inferenceserver.py
aj-ames/NSAC-NULLPointers
36945b0f9678509213b9b17d93c36f2a3b92285c
[ "MIT" ]
null
null
null
firedetectionserver/src/inferenceserver.py
aj-ames/NSAC-NULLPointers
36945b0f9678509213b9b17d93c36f2a3b92285c
[ "MIT" ]
null
null
null
from maven import Maven import numpy as np import ast import multiprocessing as mp import cv2 import random from PIL import Image from flask import Flask, request, jsonify flaskserver = Flask(__name__) num_classes = 94 thresh_conf = 0.2 global maven, athena global maven, athena maven = Maven() athena = Athena() if...
31.416268
90
0.542949
77a74863a6770339e1c20c1713fb635cf4583421
5,727
py
Python
tests/plugins/musicbrainz/test_mb_core.py
jtpavlock/moe
6f053c8c53f92686013657bda676b00f97edd230
[ "MIT" ]
14
2021-09-04T11:42:18.000Z
2022-02-04T05:11:46.000Z
tests/plugins/musicbrainz/test_mb_core.py
jtpavlock/Moe
6f053c8c53f92686013657bda676b00f97edd230
[ "MIT" ]
56
2021-05-26T00:00:46.000Z
2021-08-08T17:14:31.000Z
tests/plugins/musicbrainz/test_mb_core.py
jtpavlock/moe
6f053c8c53f92686013657bda676b00f97edd230
[ "MIT" ]
1
2021-07-22T21:55:21.000Z
2021-07-22T21:55:21.000Z
"""Tests the musicbrainz plugin.""" import datetime from unittest.mock import patch import musicbrainzngs # noqa: F401 import pytest import tests.plugins.musicbrainz.resources as mb_rsrc from moe.plugins import musicbrainz as moe_mb
36.246835
86
0.683953
77a8d6e727c876130667c55f98c00492271efba6
17,554
py
Python
pjrd/formulaSetupDialog.py
NAustinO/Nutrition-Assistant
520383cdb2c9c2d087ce6e425786b71235febd4b
[ "MIT" ]
1
2022-03-25T23:31:20.000Z
2022-03-25T23:31:20.000Z
pjrd/formulaSetupDialog.py
NAustinO/Nutrition-Assistant
520383cdb2c9c2d087ce6e425786b71235febd4b
[ "MIT" ]
null
null
null
pjrd/formulaSetupDialog.py
NAustinO/Nutrition-Assistant
520383cdb2c9c2d087ce6e425786b71235febd4b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'formulaSetupDialog.ui' ## ## Created by: Qt User Interface Compiler version 5.15.1 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! #######...
45.713542
331
0.69346
77aa3c252919fc66f6c546084c8eec911e8f3e1c
793
py
Python
utils/crop_image.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
2
2019-01-10T03:44:03.000Z
2019-05-24T08:50:14.000Z
utils/crop_image.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
utils/crop_image.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
""" @Time : 203/21/19 17:11 @Author : TaylorMei @Email : mhy845879017@gmail.com @Project : iccv @File : crop_image.py @Function: """ import os import numpy as np import skimage.io input_path = '/media/iccd/TAYLORMEI/depth/image' output_path = '/media/iccd/TAYLORMEI/depth/crop' if not os.path.exists(...
24.78125
74
0.633039
77ab3cbb077ea7c6aef028f303ea5fc868c7f50b
818
py
Python
configs/data/kittimots_motion_supp.py
MSiam/video_class_agnostic_segmentation
c4614fe675e8a5352012f603c15bc24fb43d690c
[ "Apache-2.0" ]
15
2021-03-30T07:01:52.000Z
2022-02-24T06:35:27.000Z
configs/data/kittimots_motion_supp.py
MSiam/video_class_agnostic_segmentation
c4614fe675e8a5352012f603c15bc24fb43d690c
[ "Apache-2.0" ]
1
2021-06-29T11:32:14.000Z
2021-06-29T14:18:32.000Z
configs/data/kittimots_motion_supp.py
MSiam/video_class_agnostic_segmentation
c4614fe675e8a5352012f603c15bc24fb43d690c
[ "Apache-2.0" ]
3
2021-05-11T13:48:45.000Z
2021-11-12T01:21:28.000Z
from configs.data.kittimots_motion import * data = dict( imgs_per_gpu=2, workers_per_gpu=0, train=dict( type=dataset_type, ann_file=data_root + 'annotations/KITTIMOTS_MOSeg_train.json', img_prefix=data_root + 'images/', flow_prefix=data_root + 'flow_suppressed/', pip...
34.083333
70
0.666259
77ac851550267c373f184de9966d3e44cba6878f
1,595
py
Python
tests/parlaclarin/parse_test.py
welfare-state-analytics/pyriksprot
a7dab9246c3d9bb1cf19543208bc72fbacb9e909
[ "MIT" ]
null
null
null
tests/parlaclarin/parse_test.py
welfare-state-analytics/pyriksprot
a7dab9246c3d9bb1cf19543208bc72fbacb9e909
[ "MIT" ]
19
2021-09-21T16:24:14.000Z
2022-03-31T10:06:50.000Z
tests/parlaclarin/parse_test.py
welfare-state-analytics/pyriksprot
a7dab9246c3d9bb1cf19543208bc72fbacb9e909
[ "MIT" ]
null
null
null
import os import pytest from pyriksprot import interface from pyriksprot.corpus import parlaclarin from ..utility import RIKSPROT_PARLACLARIN_FAKE_FOLDER, RIKSPROT_PARLACLARIN_FOLDER jj = os.path.join
27.033898
94
0.732915
77b049df9ac134f4a471c808d60f2cfe845a3b02
1,562
py
Python
youtube_easy_api/test_easy_wrapper.py
elichou/youtube_api_wrapper
3f60f6e6b2e6ce2b872d42f5b975eeda17aceca2
[ "MIT" ]
2
2020-09-01T20:46:36.000Z
2020-09-06T13:48:50.000Z
youtube_easy_api/test_easy_wrapper.py
elichou/youtube_api_wrapper
3f60f6e6b2e6ce2b872d42f5b975eeda17aceca2
[ "MIT" ]
1
2020-11-28T10:54:27.000Z
2020-12-01T10:43:41.000Z
youtube_easy_api/test_easy_wrapper.py
elichou/youtube_api_wrapper
3f60f6e6b2e6ce2b872d42f5b975eeda17aceca2
[ "MIT" ]
1
2021-09-30T16:08:35.000Z
2021-09-30T16:08:35.000Z
from youtube_easy_api.easy_wrapper import * PROJECT_PATH = os.path.abspath(os.path.join(os.path.abspath(__file__), os.pardir)) CREDENTIALS_PATH = '../../../Secrets/YouTube' f = open(os.path.join(CREDENTIALS_PATH, 'api.txt'), "r") API_KEY = f.read()
33.234043
84
0.742638
77b129b5d479815397258c26813a6279a03a1dcc
453
py
Python
dienstplan/dienste/admin.py
MikeTsenatek/DienstplanV2
618e398c91fe7e4038d42eb34008e4df5063fb42
[ "MIT" ]
null
null
null
dienstplan/dienste/admin.py
MikeTsenatek/DienstplanV2
618e398c91fe7e4038d42eb34008e4df5063fb42
[ "MIT" ]
null
null
null
dienstplan/dienste/admin.py
MikeTsenatek/DienstplanV2
618e398c91fe7e4038d42eb34008e4df5063fb42
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import DpDienste,DpBesatzung admin.site.register(DpDienste, DiensteAdmin)
22.65
80
0.737307
77b185a0879a7f3ca283e53e9b036125f162f299
125
py
Python
ideal_spot/__init__.py
rosspalmer/IdealSpot
2b8392794f2e866ed5700210284c33893b0d4816
[ "MIT" ]
1
2019-06-22T21:17:34.000Z
2019-06-22T21:17:34.000Z
ideal_spot/__init__.py
rosspalmer/IdealSpot
2b8392794f2e866ed5700210284c33893b0d4816
[ "MIT" ]
null
null
null
ideal_spot/__init__.py
rosspalmer/IdealSpot
2b8392794f2e866ed5700210284c33893b0d4816
[ "MIT" ]
null
null
null
from ideal_spot.evaluate import EvaluateSpots from ideal_spot.spots import Spot from ideal_spot.targets import WeatherTarget
31.25
45
0.88
77b694a95ca152eab87c73bfdb5acc92e950b178
778
py
Python
qiushibaike/middlewares.py
MarvinShawn/-luffy
20d66bc173e98c9b828282a2f722d81cb2b565d5
[ "MIT" ]
1
2018-02-26T04:43:47.000Z
2018-02-26T04:43:47.000Z
qiushibaike/middlewares.py
MarvinShawn/luffy
20d66bc173e98c9b828282a2f722d81cb2b565d5
[ "MIT" ]
null
null
null
qiushibaike/middlewares.py
MarvinShawn/luffy
20d66bc173e98c9b828282a2f722d81cb2b565d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from scrapy.http import HtmlResponse
29.923077
93
0.712082
77b75ef5b70b72a8fcecd1918e8072f524ec97fa
892
py
Python
query.py
IntimateMerger/dockerfile-aql
f1d4f36038a718857613516e9562b25910d070f0
[ "Apache-2.0" ]
null
null
null
query.py
IntimateMerger/dockerfile-aql
f1d4f36038a718857613516e9562b25910d070f0
[ "Apache-2.0" ]
null
null
null
query.py
IntimateMerger/dockerfile-aql
f1d4f36038a718857613516e9562b25910d070f0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time import aerospike from aerospike import predicates as p if __name__ == "__main__": if len(sys.argv) == 6: as_host = str(sys.argv[1]) ns_name = str(sys.argv[2]) st_name = str(sys.argv[3]) key_name = str(sys.argv[4])...
27.030303
84
0.565022
77b97cfe8cb7188fc56132de4e76018734d576ae
1,317
py
Python
parallel.py
ambimanus/demand-response-cohda
29b03f9fb264cd1e169ed2ed9a895df9558cb214
[ "MIT" ]
1
2017-05-04T16:18:23.000Z
2017-05-04T16:18:23.000Z
parallel.py
ambimanus/demand-response-cohda
29b03f9fb264cd1e169ed2ed9a895df9558cb214
[ "MIT" ]
null
null
null
parallel.py
ambimanus/demand-response-cohda
29b03f9fb264cd1e169ed2ed9a895df9558cb214
[ "MIT" ]
1
2020-07-26T18:07:31.000Z
2020-07-26T18:07:31.000Z
# coding=utf-8 from __future__ import division import sys import os import pickle from configuration import Configuration import main if __name__ == '__main__': runs = 10 params = [] for lag in range(0, 6): for seed in range(runs): cfg_dict = { 'title': 'lag%02d' % ...
24.388889
60
0.516325
77bc9d18897f9e2e8b8b8586dfd4784401b0f690
196
py
Python
cleanup_instances.py
MISP/dockerized_training_environment
de458b5ef62164da67e23985c768c01dc2ebcd58
[ "MIT" ]
7
2020-11-18T21:47:55.000Z
2022-03-09T20:46:56.000Z
cleanup_instances.py
MISP/dokerized_training_environment
835019c742247e302855e9e4d1192ee5d81616c8
[ "MIT" ]
null
null
null
cleanup_instances.py
MISP/dokerized_training_environment
835019c742247e302855e9e4d1192ee5d81616c8
[ "MIT" ]
2
2021-07-04T22:59:05.000Z
2021-07-19T12:22:17.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from misp_instances import MISPInstances if __name__ == '__main__': instances = MISPInstances() instances.cleanup_all_blacklisted_event()
19.6
45
0.719388
77bd451236783e0b666c7ee928e48672d43fb99d
980
py
Python
venv/lib/python3.5/site-packages/coalib/bears/meta.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/coalib/bears/meta.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/coalib/bears/meta.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
from collections import defaultdict from coalib.bearlib.aspects.collections import aspectlist
32.666667
78
0.638776
77be1133ac3b29f1d41f703b4d257c4fde7bced2
300
py
Python
code/utils/__init__.py
mrbarbasa/kaggle-spooky-author
a2ded542288efa0e85a25426722619ed2542d98b
[ "MIT" ]
1
2018-10-09T04:57:03.000Z
2018-10-09T04:57:03.000Z
code/utils/__init__.py
mrbarbasa/kaggle-spooky-author
a2ded542288efa0e85a25426722619ed2542d98b
[ "MIT" ]
null
null
null
code/utils/__init__.py
mrbarbasa/kaggle-spooky-author
a2ded542288efa0e85a25426722619ed2542d98b
[ "MIT" ]
null
null
null
from .format_time_str import format_time_str from .get_time_elapsed import get_time_elapsed from .load_data import load_data from .load_dictionary_from_file import load_dictionary_from_file from .save_dictionary_to_file import save_dictionary_to_file from .save_line_to_file import save_line_to_file
42.857143
64
0.9
77bee8e2483c2d80f064ce5b17e119bbfc2a392b
7,775
py
Python
pyail/api.py
ail-project/PyAIL
e0f28d1a8dc7ade5e2f943d9dd00ad3c2a2a1cc9
[ "BSD-2-Clause" ]
5
2020-05-27T21:18:54.000Z
2021-04-21T17:40:03.000Z
pyail/api.py
ail-project/PyAIL
e0f28d1a8dc7ade5e2f943d9dd00ad3c2a2a1cc9
[ "BSD-2-Clause" ]
null
null
null
pyail/api.py
ail-project/PyAIL
e0f28d1a8dc7ade5e2f943d9dd00ad3c2a2a1cc9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import logging import requests import sys import traceback from datetime import date, datetime from urllib.parse import urljoin from . import __version__, everything_broken from .core import encode_and_compress_data, get_data_sha256, ail_json_default from .e...
43.926554
204
0.639614
77bf2a587348db96cf1ee2fcdb711f47d1f4b9d7
12,875
py
Python
object_detector_app/utils/worker_utils.py
edrickwong/w3p
5537d15310ed1f77f06c3ecff4a9e17dd1f81657
[ "Unlicense" ]
null
null
null
object_detector_app/utils/worker_utils.py
edrickwong/w3p
5537d15310ed1f77f06c3ecff4a9e17dd1f81657
[ "Unlicense" ]
null
null
null
object_detector_app/utils/worker_utils.py
edrickwong/w3p
5537d15310ed1f77f06c3ecff4a9e17dd1f81657
[ "Unlicense" ]
null
null
null
import cv2 import multiprocessing import socket import tensorflow as tf import time from defaults import * from multiprocessing import Queue, Pool, Process from object_detector_utils import ObjectDetector from utils.app_utils import WebcamVideoStream from reference_objects_utils import ReferenceObjectsHelper # logger...
38.204748
126
0.623068
77bf7fb84e41c5677ab2b9f034f6eabf08d19bd2
271
py
Python
avalon/web/__init__.py
tshlabs/avalonms
2291f8457ca86f2e963d518abbdce04af02d9054
[ "MIT" ]
1
2015-11-09T05:26:57.000Z
2015-11-09T05:26:57.000Z
avalon/web/__init__.py
tshlabs/avalonms
2291f8457ca86f2e963d518abbdce04af02d9054
[ "MIT" ]
4
2015-02-08T20:14:54.000Z
2015-07-07T23:44:42.000Z
avalon/web/__init__.py
tshlabs/avalonms
2291f8457ca86f2e963d518abbdce04af02d9054
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Avalon Music Server # # Copyright 2012-2015 TSH Labs <projects@tshlabs.org> # # Available under the MIT license. See LICENSE for details. # """Avalon web endpoint handler package.""" from __future__ import absolute_import, unicode_literals
19.357143
59
0.730627
77bfd3cb46cb947511eabc820d9f8a235ca0bb4d
5,473
py
Python
mbs_app.py
megnergit/MunichBusService_Streamlit_S1
b4f4718beed08b50e3e155755e6ac2da619f1e6c
[ "MIT" ]
null
null
null
mbs_app.py
megnergit/MunichBusService_Streamlit_S1
b4f4718beed08b50e3e155755e6ac2da619f1e6c
[ "MIT" ]
null
null
null
mbs_app.py
megnergit/MunichBusService_Streamlit_S1
b4f4718beed08b50e3e155755e6ac2da619f1e6c
[ "MIT" ]
null
null
null
from pathlib import Path import pandas as pd import config from mbs.mbs import * import streamlit as st from streamlit_autorefresh import st_autorefresh import yaml # ==================================== # Authentication # ==================================== AK = config.API_KEY # not really necessary AKS = config.AP...
30.405556
77
0.514891
77c1d7ae0cdc06a1995cbd5e85e61f7537cd1054
17,322
py
Python
harvest/trader/tester.py
tfukaza/harvest
f9d5958ee0f1e11dc0255c80686981643205f1d9
[ "MIT" ]
83
2021-06-25T22:35:46.000Z
2022-03-30T23:34:00.000Z
harvest/trader/tester.py
tfukaza/harvest
f9d5958ee0f1e11dc0255c80686981643205f1d9
[ "MIT" ]
169
2021-06-26T03:57:02.000Z
2022-03-11T11:50:09.000Z
harvest/trader/tester.py
tfukaza/harvest
f9d5958ee0f1e11dc0255c80686981643205f1d9
[ "MIT" ]
20
2021-06-28T07:00:24.000Z
2022-03-22T21:23:36.000Z
# Builtins import datetime as dt from typing import Any, Dict, List, Tuple import os.path from pathlib import Path # External libraries import pandas as pd import numpy as np from tqdm import tqdm import pytz # Submodule imports from harvest.storage import PickleStorage import harvest.trader.trader as trader from har...
39.013514
117
0.541566
77c2220b2033ba3b299257e30d6fd82619ee794b
718
py
Python
babysploit/wpseku/lib/printer.py
kevinsegal/BabySploit
66bafc25e04e7512e8b87b161bd3b7201bb57b63
[ "MIT" ]
null
null
null
babysploit/wpseku/lib/printer.py
kevinsegal/BabySploit
66bafc25e04e7512e8b87b161bd3b7201bb57b63
[ "MIT" ]
null
null
null
babysploit/wpseku/lib/printer.py
kevinsegal/BabySploit
66bafc25e04e7512e8b87b161bd3b7201bb57b63
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # WPSeku - Wordpress Security Scanner # by Momo Outaadi (m4ll0k) from lib.colors import *
20.514286
45
0.601671
77c3213626a7d22127519dc8e1b3f49a54e0ec07
1,868
py
Python
healthbuddy_backend/rapidpro/serializers.py
Asfak06/health-buddy
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
[ "MIT" ]
null
null
null
healthbuddy_backend/rapidpro/serializers.py
Asfak06/health-buddy
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
[ "MIT" ]
null
null
null
healthbuddy_backend/rapidpro/serializers.py
Asfak06/health-buddy
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import ( Flow, DailyFlowRuns, Group, DailyGroupCount, Channel, DailyChannelCount, Label, )
24.578947
81
0.679872
77c7d522d57360f89bafeb1de251e1adca5fca07
21,842
py
Python
modeling/utils.py
juan-rodriguez-rivas/covmut
1d86ab032ebcb011d303adb094be0cf0acd74582
[ "MIT" ]
null
null
null
modeling/utils.py
juan-rodriguez-rivas/covmut
1d86ab032ebcb011d303adb094be0cf0acd74582
[ "MIT" ]
null
null
null
modeling/utils.py
juan-rodriguez-rivas/covmut
1d86ab032ebcb011d303adb094be0cf0acd74582
[ "MIT" ]
null
null
null
import numpy as np import gzip from Bio import SeqIO from pathlib import Path import os import subprocess import tarfile from io import BytesIO #for parallel computing from joblib import Parallel, delayed import multiprocessing num_cores_energy = multiprocessing.cpu_count() from tqdm import tqdm import pandas as pd imp...
44.758197
229
0.595687
77c83067f5c2eb85ae4c0b6169517c1b0e48167c
1,264
py
Python
cogdl/layers/gine_layer.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
cogdl/layers/gine_layer.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
cogdl/layers/gine_layer.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
import torch import torch.nn.functional as F from cogdl.utils import spmm from . import BaseLayer
30.829268
113
0.627373
77c8f96567fd8dd3290d0646d9d4b704264ddc8e
5,871
py
Python
twistdl/cli.py
JFryy/twist-moe-downloader
9903f387146f88242fb190a2925205757d2dac5e
[ "BSD-2-Clause" ]
33
2019-12-16T05:30:26.000Z
2021-07-14T07:29:14.000Z
twistdl/cli.py
JFryy/twist-moe-downloader
9903f387146f88242fb190a2925205757d2dac5e
[ "BSD-2-Clause" ]
15
2019-12-18T19:09:24.000Z
2021-02-17T21:52:44.000Z
twistdl/cli.py
JFryy/twist-moe-downloader
9903f387146f88242fb190a2925205757d2dac5e
[ "BSD-2-Clause" ]
11
2019-12-16T12:08:32.000Z
2021-07-27T16:38:23.000Z
import re import sys from PyInquirer import prompt from argparse import ArgumentParser from pathlib2 import Path from six.moves import filter from six.moves import input from six.moves import map from six.moves import range from tqdm import tqdm from twistdl import TwistDL
35.36747
124
0.598706
77c96ca5e743aed616951c057bea092269047bc4
785
py
Python
isiscb/isisdata/migrations/0061_auto_20170324_1929.py
bgopalachary/IsisCB
c28e3f504eea60ebeff38318d8bb2071abb28ebb
[ "MIT" ]
4
2016-01-25T20:35:33.000Z
2020-04-07T15:39:52.000Z
isiscb/isisdata/migrations/0061_auto_20170324_1929.py
bgopalachary/IsisCB
c28e3f504eea60ebeff38318d8bb2071abb28ebb
[ "MIT" ]
41
2015-08-19T17:34:41.000Z
2022-03-11T23:19:01.000Z
isiscb/isisdata/migrations/0061_auto_20170324_1929.py
bgopalachary/IsisCB
c28e3f504eea60ebeff38318d8bb2071abb28ebb
[ "MIT" ]
2
2020-11-25T20:18:18.000Z
2021-06-24T15:15:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-24 19:29 from __future__ import unicode_literals from django.db import migrations
24.53125
48
0.592357
77ca59cc663dfb0cfdf35a472864fa656e41633f
4,555
py
Python
qemu/tests/qemu-iotests/qcow2.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
qemu/tests/qemu-iotests/qcow2.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
qemu/tests/qemu-iotests/qcow2.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python3 # # Manipulations with qcow2 image # # Copyright (C) 2012 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your op...
25.734463
75
0.594072
77cb970ba8e0144097ddb18a91129b58ff4a61e3
196
py
Python
app/config/secure.py
xiaojieluo/flask_restapi_template
70b93c90d3cf9dd53a4dcbeb05bf2f67b81bfc01
[ "Apache-2.0" ]
null
null
null
app/config/secure.py
xiaojieluo/flask_restapi_template
70b93c90d3cf9dd53a4dcbeb05bf2f67b81bfc01
[ "Apache-2.0" ]
null
null
null
app/config/secure.py
xiaojieluo/flask_restapi_template
70b93c90d3cf9dd53a4dcbeb05bf2f67b81bfc01
[ "Apache-2.0" ]
null
null
null
SQLALCHEMY_DATABASE_URI = \ 'mysql+cymysql://root:00000000@localhost/ucar' SECRET_KEY = '***' SQLALCHEMY_TRACK_MODIFICATIONS = True MINA_APP = { 'AppID': '***', 'AppSecret': '***' }
17.818182
50
0.642857
77ccdee8931416244bf1a7a303a5dbd891ef4733
2,908
py
Python
db/models.py
hnzlmnn/dora
1c7375491af03d3ea8557e68b18afc6f916f65d7
[ "BSD-3-Clause" ]
6
2020-03-10T14:57:42.000Z
2021-05-19T19:14:54.000Z
db/models.py
hnzlmnn/dora
1c7375491af03d3ea8557e68b18afc6f916f65d7
[ "BSD-3-Clause" ]
null
null
null
db/models.py
hnzlmnn/dora
1c7375491af03d3ea8557e68b18afc6f916f65d7
[ "BSD-3-Clause" ]
3
2020-03-08T16:02:11.000Z
2020-07-24T10:56:01.000Z
import base64 import binascii from typing import Union from peewee import DatabaseProxy, Model, CharField, BooleanField, DateTimeField, IntegerField, ForeignKeyField, \ CompositeKey, DoesNotExist from db.fields import BytesField database_proxy = DatabaseProxy()
28.792079
139
0.615543
77cd7d1f17186cf12cf6e1afacd6359b0d178f58
268
py
Python
Platforms/Web/Processing/Api/__init__.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
2
2017-09-14T08:07:55.000Z
2021-05-18T05:05:05.000Z
Platforms/Web/Processing/Api/__init__.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
111
2018-04-15T14:32:14.000Z
2021-03-28T21:06:29.000Z
Platforms/Web/Processing/Api/__init__.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
1
2018-04-15T13:24:44.000Z
2018-04-15T13:24:44.000Z
import Platforms.Web.Processing.Api.Account as Account import Platforms.Web.Processing.Api.Admin as Admin import Platforms.Web.Processing.Api.Discord as Discord import Platforms.Web.Processing.Api.Twitch as Twitch import Platforms.Web.Processing.Api.errors as errors
38.285714
54
0.847015
77ce08d2e97b02ad8f56c59858aeebde6eada6c4
941
py
Python
onepanman_api/views/api/code.py
Capstone-onepanman/api-server
1a5174fbc441d2718f3963863590f634ba2014e1
[ "MIT" ]
null
null
null
onepanman_api/views/api/code.py
Capstone-onepanman/api-server
1a5174fbc441d2718f3963863590f634ba2014e1
[ "MIT" ]
12
2020-03-24T18:09:30.000Z
2022-03-12T00:15:07.000Z
onepanman_api/views/api/code.py
Capstone-onepanman/api-server
1a5174fbc441d2718f3963863590f634ba2014e1
[ "MIT" ]
null
null
null
import django_filters from rest_framework import viewsets from onepanman_api.models import Code from onepanman_api.serializers.code import CodeSerializer from rest_framework.mixins import ListModelMixin from rest_framework.response import Response from rest_framework.views import APIView
29.40625
74
0.744952
77cf9d65fb3058dca8900831798df5f3e3efc86c
2,689
py
Python
others/wordcloud/chinese.py
K-ona/template
a9ea81695b8d7eb512ac7bd54c76f14c7dcb30c4
[ "Apache-2.0" ]
null
null
null
others/wordcloud/chinese.py
K-ona/template
a9ea81695b8d7eb512ac7bd54c76f14c7dcb30c4
[ "Apache-2.0" ]
null
null
null
others/wordcloud/chinese.py
K-ona/template
a9ea81695b8d7eb512ac7bd54c76f14c7dcb30c4
[ "Apache-2.0" ]
null
null
null
import jieba from os import path from imageio import imread import matplotlib.pyplot as plt import os from wordcloud import WordCloud, ImageColorGenerator # get data directory (using getcwd() is needed to support running example in generated IPython notebook) d = os.getcwd() stopwords_path = d + '/wc_cn/stopwords_cn_...
28.305263
173
0.75939
77d140822abe3812bf1f24ca507cfe5cb3fc30c8
396
py
Python
api/api.py
Loupeznik/python-snippets
b0f980a663ac5e673060e109c6d5de0f43ac05e5
[ "MIT" ]
null
null
null
api/api.py
Loupeznik/python-snippets
b0f980a663ac5e673060e109c6d5de0f43ac05e5
[ "MIT" ]
null
null
null
api/api.py
Loupeznik/python-snippets
b0f980a663ac5e673060e109c6d5de0f43ac05e5
[ "MIT" ]
null
null
null
import requests ''' Makes a request to an API endpoint Takes authorization header if needed ''' url = "http://127.0.0.1:8000/api/test" payload={} headers = { 'Accept': 'application/json', 'Authorization': 'token' # Specify an access token if needed } response = requests.request("GET", url, headers=headers, data...
19.8
70
0.712121
77d586d8a485283ddae1a7482067b25ac7df8cd7
8,337
py
Python
dex/dexinfo.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
7
2018-06-14T10:40:47.000Z
2021-05-18T08:55:34.000Z
dex/dexinfo.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
1
2020-05-28T08:59:50.000Z
2020-05-28T08:59:50.000Z
dex/dexinfo.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
3
2018-02-28T02:08:06.000Z
2018-09-12T03:09:18.000Z
# -- coding: utf-8 -- import numpy as np import hashlib import zlib from section import *
26.382911
164
0.732997
77d66e14d713bc6998d6a77e5587d84eb4585cb9
255
py
Python
launch.py
rugleb/cad
0fd3732b57398e4eacfbc4872286254068d1754a
[ "MIT" ]
3
2019-01-28T14:20:23.000Z
2020-09-09T20:19:23.000Z
launch.py
rugleb/cad
0fd3732b57398e4eacfbc4872286254068d1754a
[ "MIT" ]
7
2019-01-15T08:30:59.000Z
2019-01-25T17:11:43.000Z
launch.py
rugleb/CAD
0fd3732b57398e4eacfbc4872286254068d1754a
[ "MIT" ]
1
2021-07-19T07:28:25.000Z
2021-07-19T07:28:25.000Z
#!/usr/bin/env python import sys from PyQt5.QtWidgets import QApplication from cad.application import Application if __name__ == '__main__': app = QApplication(sys.argv) workspace = Application() workspace.show() sys.exit(app.exec_())
18.214286
40
0.717647
77d9022afe96be8a342e54014d59fc1fa771756f
506
py
Python
events/migrations/0010_auto_20180528_2033.py
Akash1S/meethub
3517ec7b4e03ca1fe50e7053fd46349f0b31740c
[ "MIT" ]
428
2018-05-11T16:36:33.000Z
2022-02-05T15:29:23.000Z
events/migrations/0010_auto_20180528_2033.py
dmkibuka/meethub
296a1494ab6f2828b61f0b8e4ad80308306fc23a
[ "MIT" ]
15
2018-05-14T16:33:29.000Z
2021-06-09T17:28:14.000Z
events/migrations/0010_auto_20180528_2033.py
dmkibuka/meethub
296a1494ab6f2828b61f0b8e4ad80308306fc23a
[ "MIT" ]
53
2018-05-12T10:41:24.000Z
2022-02-23T12:15:33.000Z
# Generated by Django 2.0.4 on 2018-05-28 20:33 from django.db import migrations
20.24
47
0.547431
77daf6cdbbae093a434d465fa597fa57326476d1
21,478
py
Python
clone_scanner.py
m42e/weechat_scripts
a57af7181c8231d36f9a32d467d134ab4f7d10fd
[ "MIT" ]
null
null
null
clone_scanner.py
m42e/weechat_scripts
a57af7181c8231d36f9a32d467d134ab4f7d10fd
[ "MIT" ]
null
null
null
clone_scanner.py
m42e/weechat_scripts
a57af7181c8231d36f9a32d467d134ab4f7d10fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Clone Scanner, version 1.3 for WeeChat version 0.3 # Latest development version: https://github.com/FiXato/weechat_scripts # # A Clone Scanner that can manually scan channels and # automatically scans joins for users on the channel # with multiple nicknames from the same host. # # ...
47.941964
213
0.70365
77deb0766b9b60ebf2f409213849b02ab632367f
4,936
py
Python
tests/base/models.py
uditarora/pytorch-lightning
7245e48153909d9de8458b1f5b8b2bc740d80104
[ "Apache-2.0" ]
1
2020-06-01T01:58:05.000Z
2020-06-01T01:58:05.000Z
tests/base/models.py
uditarora/pytorch-lightning
7245e48153909d9de8458b1f5b8b2bc740d80104
[ "Apache-2.0" ]
null
null
null
tests/base/models.py
uditarora/pytorch-lightning
7245e48153909d9de8458b1f5b8b2bc740d80104
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from tests.base.datasets import TrialMNIST try: from test_tube import HyperOptArgumentParser except ImportError: # TODO: this should be discussed a...
31.43949
101
0.595016
77deb2cb383c89730b57c57b1815e7a78a3a5a29
2,034
py
Python
blog/views.py
KoukiNAGATA/kouchan-blog
51808388135eca32077ad05241a0587df0e08c25
[ "MIT" ]
null
null
null
blog/views.py
KoukiNAGATA/kouchan-blog
51808388135eca32077ad05241a0587df0e08c25
[ "MIT" ]
20
2021-08-02T13:18:22.000Z
2021-09-25T04:32:55.000Z
blog/views.py
KoukiNAGATA/kouchan-blog
51808388135eca32077ad05241a0587df0e08c25
[ "MIT" ]
null
null
null
from django.views.generic import DetailView, ListView from blog.models import Post
29.057143
58
0.642085
77dfbbe7905531759acb60bb984e4f4406f00308
659
py
Python
Acqiris_U1084A/Acqiris_U1084A-UpgradeCfg.py
roniwinik/Drivers
ba473bc21d1b5321da1e6caadec5b4d624282edc
[ "MIT" ]
48
2015-11-16T13:35:11.000Z
2022-02-24T11:02:14.000Z
Acqiris_U1084A/Acqiris_U1084A-UpgradeCfg.py
roniwinik/Drivers
ba473bc21d1b5321da1e6caadec5b4d624282edc
[ "MIT" ]
30
2015-11-16T14:37:46.000Z
2021-02-22T19:39:34.000Z
Acqiris_U1084A/Acqiris_U1084A-UpgradeCfg.py
roniwinik/Drivers
ba473bc21d1b5321da1e6caadec5b4d624282edc
[ "MIT" ]
61
2015-11-12T18:31:58.000Z
2022-03-04T12:59:35.000Z
#!/usr/bin/env python def upgradeDriverCfg(version, dValue={}, dOption=[]): """Upgrade the config given by the dict dValue and dict dOption to the latest version.""" # the dQuantUpdate dict contains rules for replacing missing quantities dQuantReplace = {} # update quantities depending on version ...
36.611111
75
0.658574
77e210d5c22c033bb15b659ea78d152f86e934fa
10,692
py
Python
tests/integration/test_integration_firewall_policy.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
8
2016-10-24T12:37:32.000Z
2019-06-01T10:00:18.000Z
tests/integration/test_integration_firewall_policy.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
109
2016-08-09T04:51:48.000Z
2020-02-11T02:33:35.000Z
tests/integration/test_integration_firewall_policy.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
14
2016-01-23T00:10:30.000Z
2021-07-07T21:13:56.000Z
import cloudpassage import json import os policy_file_name = "firewall.json" config_file_name = "portal.yaml.local" tests_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../")) config_file = os.path.join(tests_dir, "configs/", config_file_name) policy_file = os.path.join(tests_dir, 'policies/', policy_f...
42.939759
75
0.664516
77e50680eb12bd9eed87473be65e4bc691fbaca2
20,366
py
Python
aioes/client/cat.py
DavidCloudfind/aioes
4d68f7ae75cc22c03d9886c2613c6149cd41b6d5
[ "Apache-2.0" ]
90
2015-02-23T07:12:03.000Z
2018-02-23T08:28:25.000Z
aioes/client/cat.py
DavidCloudfind/aioes
4d68f7ae75cc22c03d9886c2613c6149cd41b6d5
[ "Apache-2.0" ]
88
2015-08-18T08:06:58.000Z
2018-02-01T07:31:51.000Z
aioes/client/cat.py
DavidCloudfind/aioes
4d68f7ae75cc22c03d9886c2613c6149cd41b6d5
[ "Apache-2.0" ]
35
2015-09-03T10:06:03.000Z
2017-12-07T22:43:26.000Z
import asyncio from .utils import NamespacedClient from .utils import _make_path default = object()
38.426415
104
0.598105
77e7008b7f69f43d016d1ac399b4066349fe58fb
126
py
Python
toad/nn/trainer/__init__.py
brianWeng0223/toad
edf2b956fb4237a647f039ea08618dc89c598e07
[ "MIT" ]
null
null
null
toad/nn/trainer/__init__.py
brianWeng0223/toad
edf2b956fb4237a647f039ea08618dc89c598e07
[ "MIT" ]
null
null
null
toad/nn/trainer/__init__.py
brianWeng0223/toad
edf2b956fb4237a647f039ea08618dc89c598e07
[ "MIT" ]
null
null
null
from .history import History from .callback import callback from .earlystop import earlystopping from .trainer import Trainer
25.2
36
0.84127
77e70ac3ee6c42119192b1d1fca552c3cb121a50
2,681
py
Python
examples/simple.py
hippke/pysyzygy
6904ad2c24ebb22fee41c862ca9208f2abdb87f7
[ "MIT" ]
8
2016-06-05T14:29:26.000Z
2020-05-19T15:36:51.000Z
examples/simple.py
hippke/pysyzygy
6904ad2c24ebb22fee41c862ca9208f2abdb87f7
[ "MIT" ]
3
2015-06-21T19:10:48.000Z
2018-11-18T06:40:16.000Z
examples/simple.py
hippke/pysyzygy
6904ad2c24ebb22fee41c862ca9208f2abdb87f7
[ "MIT" ]
6
2015-06-21T16:02:43.000Z
2019-06-05T05:47:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' :py:mod:`simple.py` - A simple light curve ------------------------------------------ Plots a simple light curve, the planet orbit as seen from the top and from the observer's viewpoint, and the orbital elements as a function of time: .. figure:: ../pysyzygy/img/simpl...
31.916667
82
0.588959
77e72d5f61a1f1a31c32a5a1b3e2b8bcf59e6c93
2,203
py
Python
returns/pointfree/__init__.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
null
null
null
returns/pointfree/__init__.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
null
null
null
returns/pointfree/__init__.py
internetimagery/returns
8f4f23bae6861fb3969a8d0c8979f96c5589fc61
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import from returns.pointfree.alt import alt as alt from returns.pointfree.apply import apply as apply from returns.pointfree.bimap import bimap as bimap from returns.pointfree.bind import bind as bind from returns.pointfree.bind_async import bind_async as bind_async from returns.pointfr...
48.955556
77
0.864276
77e73a8ea101b02a86ed5c85781bacaae5ca43b2
932
py
Python
Tkinter_Aula11_Gerenciador_de_Layout_GRID.py
LeandroTeodoroRJ/CursoTkinter
082e55f0f9441670ae697a6fc2740774120b0f48
[ "MIT" ]
null
null
null
Tkinter_Aula11_Gerenciador_de_Layout_GRID.py
LeandroTeodoroRJ/CursoTkinter
082e55f0f9441670ae697a6fc2740774120b0f48
[ "MIT" ]
null
null
null
Tkinter_Aula11_Gerenciador_de_Layout_GRID.py
LeandroTeodoroRJ/CursoTkinter
082e55f0f9441670ae697a6fc2740774120b0f48
[ "MIT" ]
1
2021-12-24T20:45:09.000Z
2021-12-24T20:45:09.000Z
#************************************************************************************************* # GERENCIADOR DE LAYOUT GRID #************************************************************************************************* #INCLUDES from tkinter import* #CONSTANTES E DEFINIES resoluc...
35.846154
98
0.54721
77e865cd0dc80d2ac759eb3499a0e94ded98f62d
5,043
py
Python
misc/tools/multitest/mconfig.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
11
2015-07-13T13:36:44.000Z
2021-11-15T08:07:25.000Z
misc/tools/multitest/mconfig.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
13
2015-03-21T14:08:31.000Z
2021-05-18T18:47:58.000Z
misc/tools/multitest/mconfig.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
12
2015-01-07T02:16:50.000Z
2021-05-18T08:25:31.000Z
''' Author: Salvatore Minutoli Create a configuration of Metashare nodes for testing. For each node appropriate features are collected in order to make them run on a single machine. ''' import os CONFIGS = [] dj_port = 18000 metashare_dir = '{0}/metashare'.format(os.environ['METASHARE_SW_DIR']) count = 0 dj_p...
32.960784
107
0.705334
77e901a7f8d4bc7381e7f0c1e50229660542c319
441
py
Python
Pell_Sequence/pell.py
RayhanHagel/Sequence
6781b0b1e82dbc3777ccb245a54b4afc50203582
[ "MIT" ]
null
null
null
Pell_Sequence/pell.py
RayhanHagel/Sequence
6781b0b1e82dbc3777ccb245a54b4afc50203582
[ "MIT" ]
null
null
null
Pell_Sequence/pell.py
RayhanHagel/Sequence
6781b0b1e82dbc3777ccb245a54b4afc50203582
[ "MIT" ]
null
null
null
# Pell Numbers Start = Pell() Start.void()
23.210526
76
0.54195
77ea29b23f4c578ecfebfd8c9262a868795d57c3
2,082
py
Python
aip_site/jinja/ext/tab.py
odsod/site-generator
651c79f569e3d225c486088e6589cd70f977e1b2
[ "Apache-2.0" ]
13
2020-10-29T19:18:14.000Z
2022-03-08T13:55:09.000Z
aip_site/jinja/ext/tab.py
odsod/site-generator
651c79f569e3d225c486088e6589cd70f977e1b2
[ "Apache-2.0" ]
10
2020-08-03T19:47:43.000Z
2022-02-15T10:53:17.000Z
aip_site/jinja/ext/tab.py
odsod/site-generator
651c79f569e3d225c486088e6589cd70f977e1b2
[ "Apache-2.0" ]
7
2020-08-07T23:59:12.000Z
2021-12-12T14:31:23.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.896552
76
0.620077
77ea7aa4a3179db41bee8ed7f328c3a86b2411b8
2,179
py
Python
modules/monte_carlo/bin/onramp_run.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
2
2016-09-09T04:19:01.000Z
2019-02-15T20:28:13.000Z
modules/monte_carlo/bin/onramp_run.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
67
2016-06-02T19:37:56.000Z
2018-02-22T05:23:45.000Z
modules/monte_carlo/bin/onramp_run.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
9
2015-06-22T22:10:22.000Z
2016-04-26T15:35:45.000Z
#!/usr/bin/env python # # Curriculum Module Run Script # - Run once per run of the module by a user # - Run inside job submission. So in an allocation. # - onramp_run_params.cfg file is available in current working directory # import os import sys from subprocess import call from configobj import ConfigObj # # Read t...
29.445946
155
0.607159
77eeeeaecaffb5cccc2f1500b691a6a344666269
384
py
Python
base/site-packages/mobileadmin/templatetags/mobile_admin_media.py
edisonlz/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
mobileadmin/templatetags/mobile_admin_media.py
jezdez-archive/django-mobileadmin
4d5874916ecca91610b9fbdf3c50b34c2567b83e
[ "BSD-3-Clause" ]
null
null
null
mobileadmin/templatetags/mobile_admin_media.py
jezdez-archive/django-mobileadmin
4d5874916ecca91610b9fbdf3c50b34c2567b83e
[ "BSD-3-Clause" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
from django.template import Library register = Library() def mobileadmin_media_prefix(): """ Returns the string contained in the setting MOBILEADMIN_MEDIA_PREFIX. """ try: from mobileadmin.conf import settings except ImportError: return '' return settings.MEDIA_PREFIX mobileadm...
25.6
73
0.742188
77f0ae0c56038069d63d9f0fe531cb58b6ec91d2
2,093
py
Python
pdfmetadata.py
Phexcom/pdfmetadata
f54fbe664d45b298c710d503afd41ba9c3d4da4e
[ "MIT" ]
null
null
null
pdfmetadata.py
Phexcom/pdfmetadata
f54fbe664d45b298c710d503afd41ba9c3d4da4e
[ "MIT" ]
null
null
null
pdfmetadata.py
Phexcom/pdfmetadata
f54fbe664d45b298c710d503afd41ba9c3d4da4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from PyPDF2 import PdfFileReader, PdfFileWriter import pprint import pickle # Modifying the metadata of a pdf file if __name__ == '__main__': while True: option = input("1. Get PDF Metadata\n2. Modify PDF Metadata\n") if option == "1": file = input('Enter pd...
24.916667
83
0.623985
77f0db72d836ba6b97019e6f581d5a3c55af879a
1,347
py
Python
contrib/tools/templates/extensions/extension/extension.py
Khan/reviewboard
51ec4261e67b8bf4e2cfa9a0894a97b16509ad33
[ "MIT" ]
1
2015-09-11T15:50:17.000Z
2015-09-11T15:50:17.000Z
contrib/tools/templates/extensions/extension/extension.py
Khan/reviewboard
51ec4261e67b8bf4e2cfa9a0894a97b16509ad33
[ "MIT" ]
null
null
null
contrib/tools/templates/extensions/extension/extension.py
Khan/reviewboard
51ec4261e67b8bf4e2cfa9a0894a97b16509ad33
[ "MIT" ]
null
null
null
# {{extension_name}} Extension for Review Board. from django.conf import settings from django.conf.urls.defaults import patterns, include from reviewboard.extensions.base import Extension {%- if dashboard_link is not none %} from reviewboard.extensions.hooks import DashboardHook, URLHook {% endif %} {%- if dashboard_l...
34.538462
71
0.643653
77f299aaccb2e293e2955e642aaac7da3760011a
104
py
Python
08.Iterators_and_generators/Lab/squares.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
08.Iterators_and_generators/Lab/squares.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
08.Iterators_and_generators/Lab/squares.py
nmoskova/Python-OOP
07327bcb93eee3a7db5d7c0bbdd1b54eb9e8b864
[ "MIT" ]
null
null
null
print(list(squares(5)))
13
23
0.442308
77f2dcc19f9a7579b9b6976a08659754e2ecf9ef
3,726
py
Python
apps/protein_function_prediction/DeepFRI/test.py
kanz76/PaddleHelix
f31c98db1f6d396f1ed1e51ae427028dcf3b0ae9
[ "Apache-2.0" ]
null
null
null
apps/protein_function_prediction/DeepFRI/test.py
kanz76/PaddleHelix
f31c98db1f6d396f1ed1e51ae427028dcf3b0ae9
[ "Apache-2.0" ]
null
null
null
apps/protein_function_prediction/DeepFRI/test.py
kanz76/PaddleHelix
f31c98db1f6d396f1ed1e51ae427028dcf3b0ae9
[ "Apache-2.0" ]
null
null
null
import os import random import argparse import time from datetime import datetime from tqdm import tqdm import paddle paddle.disable_static() import paddle.nn.functional as F import paddle.optimizer as optim from pgl.utils.data import Dataloader import numpy as np from models import DeepFRI from data_preprocessing i...
27.80597
164
0.663983
77f34f3e60a19e14304311a24cf1b6426d5ea4fd
421
py
Python
kernel/examples/handler/__init__.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
39
2021-10-12T01:43:27.000Z
2022-03-28T04:46:35.000Z
kernel/examples/handler/__init__.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
6
2021-10-14T02:11:47.000Z
2022-03-23T02:41:50.000Z
kernel/examples/handler/__init__.py
rinceyuan/WeFe
8482cb737cb7ba37b2856d184cd42c1bd35a6318
[ "Apache-2.0" ]
10
2021-10-14T09:36:03.000Z
2022-02-10T11:05:12.000Z
from pathlib import Path from ruamel import yaml with Path(__file__).parent.parent.joinpath("config.yaml").resolve().open("r") as fin: __DEFAULT_CONFIG: dict = yaml.safe_load(fin)
21.05
85
0.755344
77f3fb005629d43f754ea92f3d980821c34780fe
55,236
py
Python
kravatte/kravatte.py
inmcm/kravatte
21a6da899fe2707ff6128a89f83e3aeecf2ea68a
[ "MIT" ]
13
2018-04-16T19:56:50.000Z
2022-02-07T16:21:43.000Z
kravatte/kravatte.py
inmcm/kravatte
21a6da899fe2707ff6128a89f83e3aeecf2ea68a
[ "MIT" ]
2
2018-04-27T12:51:19.000Z
2018-11-25T16:55:49.000Z
kravatte/kravatte.py
inmcm/kravatte
21a6da899fe2707ff6128a89f83e3aeecf2ea68a
[ "MIT" ]
2
2018-08-20T06:40:08.000Z
2019-11-12T23:16:47.000Z
""" Kravatte Achouffe Cipher Suite: Encryption, Decryption, and Authentication Tools based on the Farfalle modes Copyright 2018 Michael Calvin McCoy see LICENSE file """ from multiprocessing import Pool from math import floor, ceil, log2 from typing import Tuple from os import cpu_count from ctypes import memset import...
43.254503
172
0.634695
77f4e418af722622970c7ce018e3cf661f1435fb
933
py
Python
radar/models/user.py
J4LP/radar
c54feac19dc0181223c74d780179095bbe53142a
[ "Unlicense", "MIT" ]
null
null
null
radar/models/user.py
J4LP/radar
c54feac19dc0181223c74d780179095bbe53142a
[ "Unlicense", "MIT" ]
null
null
null
radar/models/user.py
J4LP/radar
c54feac19dc0181223c74d780179095bbe53142a
[ "Unlicense", "MIT" ]
null
null
null
import arrow from sqlalchemy_utils import IPAddressType, ArrowType from radar.models import db
29.15625
72
0.699893
77f50892e04ac911f60ec5c32841b8bb91a6a457
1,598
py
Python
sermar/utils.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
null
null
null
sermar/utils.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
null
null
null
sermar/utils.py
dennereed/paleocore
d6da6c39cde96050ee4b9e7213ec1200530cbeee
[ "MIT" ]
null
null
null
from sermar.models import * def update_biology_fk(): """ Update collection foreign key in Biology objects :return: """ # Get all Biology Occurrences bios = Biology.objects.all() # Iterate through all bio objects counter = 0 for b in bios: # For each bio object... #...
32.612245
84
0.632666
77f644967f3e2a3c4a00d91aa43f9907ec53503e
1,134
py
Python
cal.py
chapmanjacobd/everydayvirtualvacation
e88e22cb9dd2d42d915639d07f2d28119bf995b6
[ "BSD-2-Clause" ]
32
2021-10-31T08:06:26.000Z
2022-02-16T14:17:12.000Z
cal.py
chapmanjacobd/everydayvirtualvacation
e88e22cb9dd2d42d915639d07f2d28119bf995b6
[ "BSD-2-Clause" ]
null
null
null
cal.py
chapmanjacobd/everydayvirtualvacation
e88e22cb9dd2d42d915639d07f2d28119bf995b6
[ "BSD-2-Clause" ]
3
2021-10-31T17:00:24.000Z
2021-10-31T23:07:53.000Z
from ics import Calendar, Event from datetime import date, timedelta from db import fetchall_dict from rich import print from flag import flag c = Calendar() cities = fetchall_dict( """ select u , c.n , concat_ws(', ', c.s,c.c) s , v.video from cities c JOIN videos v ON v.id = c.id order by (ra...
19.551724
75
0.630511
77f72a150ddbff6751f16b9d1519dfdf8b8451e6
1,095
py
Python
src/algo/api_nfdomains.py
jumperavocado/staketaxcsv
5e1b0420b7897f35e70d10f385c9e9e972f70560
[ "MIT" ]
140
2021-12-11T23:37:46.000Z
2022-03-29T23:04:36.000Z
src/algo/api_nfdomains.py
jumperavocado/staketaxcsv
5e1b0420b7897f35e70d10f385c9e9e972f70560
[ "MIT" ]
80
2021-12-17T15:13:47.000Z
2022-03-31T13:33:53.000Z
src/algo/api_nfdomains.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
52
2021-12-12T00:37:17.000Z
2022-03-29T23:25:09.000Z
import logging import requests from settings_csv import ALGO_NFDOMAINS # API documentation: https://editor.swagger.io/?url=https://api.testnet.nf.domains/info/openapi3.yaml
34.21875
102
0.612785
77f88ac50cfbfdde1e9224491dcbf265368f1fab
5,720
py
Python
gant/main.py
kshlm/gant
eabaa17ebfd31b1654ee1f27e7026f6d7b370609
[ "BSD-2-Clause" ]
null
null
null
gant/main.py
kshlm/gant
eabaa17ebfd31b1654ee1f27e7026f6d7b370609
[ "BSD-2-Clause" ]
null
null
null
gant/main.py
kshlm/gant
eabaa17ebfd31b1654ee1f27e7026f6d7b370609
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python from __future__ import unicode_literals, print_function from .utils.gant_ctx import GantCtx import os import click helpStr = """ Gant : The Gluster helper ant Creates GlusterFS development and testing environments using Docker Usage: gant [options] build-base [force] gant [options] b...
37.631579
78
0.658217
77f931744d12e59cfee289a9376b2a8d113bac9f
840
py
Python
ancfindersite/admin.py
kevko/ancfinder
1368604e9a17f70e2d3981b6c4258d6455555844
[ "CC0-1.0" ]
null
null
null
ancfindersite/admin.py
kevko/ancfinder
1368604e9a17f70e2d3981b6c4258d6455555844
[ "CC0-1.0" ]
null
null
null
ancfindersite/admin.py
kevko/ancfinder
1368604e9a17f70e2d3981b6c4258d6455555844
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 from django.contrib import admin from ancfindersite.models import * admin.site.register(Document)
31.111111
110
0.665476
77fa574079bff2cba7f0267eea287e361d42b7f6
6,945
py
Python
csse290-server/mainserver.py
RHIT-CSSE/SecurityClub
ee7fa1846f83a41e3503b81eaf0b32e63642abd2
[ "MIT" ]
null
null
null
csse290-server/mainserver.py
RHIT-CSSE/SecurityClub
ee7fa1846f83a41e3503b81eaf0b32e63642abd2
[ "MIT" ]
1
2017-05-28T03:04:12.000Z
2017-05-28T03:04:12.000Z
csse290-server/mainserver.py
RHIT-CSSE/SecurityClub
ee7fa1846f83a41e3503b81eaf0b32e63642abd2
[ "MIT" ]
null
null
null
# Author: Ishank Tandon # Date: January 29, 2017 import tornado.ioloop import tornado.web import tornado.httpserver import hashlib import base64 import json import mysql.connector as sql dbuser = 'csse' # Register a new user # Post a new message def make_app(): return tornado.web.Application([ (r"/shar...
34.552239
531
0.629662
77fb00fac61b0e50c989e6535f01bdd42d8c7f9f
5,399
py
Python
packets/Reader/PacketResolver.py
osukurikku/kuriso
ae6a6f2d87f2aa592c9fe105a6c01872a02cc057
[ "MIT" ]
6
2021-03-07T20:14:29.000Z
2022-03-10T20:28:20.000Z
packets/Reader/PacketResolver.py
osukurikku/kuriso
ae6a6f2d87f2aa592c9fe105a6c01872a02cc057
[ "MIT" ]
3
2021-04-20T17:18:58.000Z
2022-03-28T18:17:35.000Z
packets/Reader/PacketResolver.py
osukurikku/kuriso
ae6a6f2d87f2aa592c9fe105a6c01872a02cc057
[ "MIT" ]
4
2021-03-30T12:55:07.000Z
2022-03-10T09:01:16.000Z
from typing import List, Tuple from objects.TypedDicts import TypedPresence, TypedReadMatch from objects.constants.GameModes import GameModes from objects.constants.Modificators import Mods from objects.constants.Slots import SlotStatus, SlotTeams from objects.constants.multiplayer import MatchTypes, MatchScoringTypes...
33.74375
106
0.648268
77fba3bfdbce870f9968213b129911ed635849bf
368
py
Python
01_Language/01_Functions/python/preg_replace_callback.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
3
2020-06-28T07:42:51.000Z
2021-01-15T10:32:11.000Z
01_Language/01_Functions/python/preg_replace_callback.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
9
2021-03-10T22:45:40.000Z
2022-02-27T06:53:20.000Z
01_Language/01_Functions/python/preg_replace_callback.py
cliff363825/TwentyFour
09df59bd5d275e66463e343647f46027397d1233
[ "MIT" ]
1
2021-01-15T10:51:24.000Z
2021-01-15T10:51:24.000Z
# coding: utf-8 import re if __name__ == '__main__': text = 'April fools day is 04/01/2002\n' + \ 'Last christmas was 12/24/2001\n' print(preg_replace_callback(r'(\d{2}/\d{2}/)(\d{4})', lambda m: m.group(1) + str(int(m.group(2)) + 1), text))
24.533333
113
0.633152
77fbaffe827fd494fe1d8b83ddeadea0590d53bf
2,096
py
Python
XMAS2018/Krampus/solve.py
flawwan/CTF-Writeups
ee1741f91b869ece5e5a8335935213ac45c015a4
[ "MIT" ]
27
2018-10-08T13:12:54.000Z
2021-11-05T13:28:03.000Z
XMAS2018/Krampus/solve.py
flawwan/CTF-Writeups
ee1741f91b869ece5e5a8335935213ac45c015a4
[ "MIT" ]
3
2018-12-22T21:34:53.000Z
2019-02-09T10:25:41.000Z
XMAS2018/Krampus/solve.py
flawwan/CTF-Writeups
ee1741f91b869ece5e5a8335935213ac45c015a4
[ "MIT" ]
7
2018-10-09T03:46:12.000Z
2021-05-23T17:40:19.000Z
python from pwn import * import base64 import sys if len(sys.argv) == 2 and sys.argv[1] == "local": r = remote("0.0.0.0",2000) else: r = remote("199.247.6.180",14000) for i in range(5): r.readuntil("<You>:") r.sendline("1") dump() r.close
27.946667
121
0.632634
77fc085d04b7709e22eb732bec617f5d06b34521
1,304
py
Python
oxasl_ve/veaslc_cli_wrapper.py
ibme-qubic/oxasl_ve
51f0701573876042a7fc5f1b91c5085600c6e3c3
[ "Apache-2.0" ]
1
2021-01-20T12:06:31.000Z
2021-01-20T12:06:31.000Z
oxasl_ve/veaslc_cli_wrapper.py
physimals/oxasl_ve
f56ea316fddf8b59216a5df7a557bf0c3ea6972b
[ "Apache-2.0" ]
null
null
null
oxasl_ve/veaslc_cli_wrapper.py
physimals/oxasl_ve
f56ea316fddf8b59216a5df7a557bf0c3ea6972b
[ "Apache-2.0" ]
null
null
null
from fsl.wrappers import LOAD from oxasl_ve.wrappers import veaslc def veaslc_wrapper(wsp, data, roi): """ """ # Run the C code ret = veaslc(data, roi, out=LOAD, diff=wsp.iaf == "vediff", method=wsp.ifnone("veasl_method", "map"), veslocs=wsp.veslocs, ...
34.315789
60
0.480828
77fd4db6cdc4fe5d6253067b1c97bd1b28e96e66
2,391
py
Python
AMICO-NODDI/tool.py
RicardoRios46/microsuite
e81497932e6aee9ced180103402e26c1f8505ccc
[ "MIT" ]
null
null
null
AMICO-NODDI/tool.py
RicardoRios46/microsuite
e81497932e6aee9ced180103402e26c1f8505ccc
[ "MIT" ]
null
null
null
AMICO-NODDI/tool.py
RicardoRios46/microsuite
e81497932e6aee9ced180103402e26c1f8505ccc
[ "MIT" ]
null
null
null
import os import amico import numpy as np from dipy.io.gradients import read_bvals_bvecs from dipy.core.geometry import normalized_vector import shutil # AnalysisContext documentation: https://docs.qmenta.com/sdk/sdk.html
33.676056
88
0.636972
77ff14868e91ca5a2f5adc5ba747a98fa9a4b09d
2,509
py
Python
conans/client/generators/pkg_config.py
wahlm/conan
1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257
[ "MIT" ]
3
2016-11-11T01:09:44.000Z
2017-07-19T13:30:17.000Z
conans/client/generators/pkg_config.py
wahlm/conan
1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257
[ "MIT" ]
6
2017-06-14T11:40:15.000Z
2020-05-23T01:43:28.000Z
conans/client/generators/pkg_config.py
wahlm/conan
1afadb5cca9e1c688c7b37c69a0ff3c6a6dbe257
[ "MIT" ]
2
2017-11-29T14:05:22.000Z
2018-09-19T12:43:33.000Z
from conans.model import Generator """ PC FILE EXAMPLE: prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: my-project Description: Some brief but informative description Version: 1.2.3 Libs: -L${libdir} -lmy-project-1 -linkerflag Cflags: -I${includedir}/my-project-1 Requi...
34.847222
97
0.627342
ae008275aad4a3c3841e0552079ee9ee6fd8121a
376
py
Python
regular_expressions/web_scraper.py
jeffbarnette/Python-One-Liners
81180bb3a29de09a2a5f91576cbb9e424d23effe
[ "MIT" ]
null
null
null
regular_expressions/web_scraper.py
jeffbarnette/Python-One-Liners
81180bb3a29de09a2a5f91576cbb9e424d23effe
[ "MIT" ]
null
null
null
regular_expressions/web_scraper.py
jeffbarnette/Python-One-Liners
81180bb3a29de09a2a5f91576cbb9e424d23effe
[ "MIT" ]
null
null
null
"""Example of a Web Scraper using Regular Expressions""" # Dependencies import re # Data text_1 = "crypto-bot that is trading Bitcoin and other currencies" text_2 = "cryptographic encryption methods that can be cracked easily with quantum computers" # One-Liner pattern = re.compile("crypto(.{1,30})coin") # Result p...
25.066667
93
0.763298
ae01c35b4160a8d0afcc4a50d7e585f1b741742c
12,569
py
Python
.history/app/scrape_20201229173546.py
Super-Web112/python-scraping-for-hosting
202c73f6f0b0458889a3a8468eade31e909b85a7
[ "MIT" ]
null
null
null
.history/app/scrape_20201229173546.py
Super-Web112/python-scraping-for-hosting
202c73f6f0b0458889a3a8468eade31e909b85a7
[ "MIT" ]
null
null
null
.history/app/scrape_20201229173546.py
Super-Web112/python-scraping-for-hosting
202c73f6f0b0458889a3a8468eade31e909b85a7
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse, JsonResponse from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.support.ui import WebDriverWait f...
52.589958
859
0.565359
ae01d3a33e6af48e8310dc37f25de2de5772f8fd
1,210
py
Python
iris-model/get_data.py
eddymarts/Melbourne-Housing-ML
7ea6c6364d8ba3eccf187329121e6287914cec8a
[ "MIT" ]
null
null
null
iris-model/get_data.py
eddymarts/Melbourne-Housing-ML
7ea6c6364d8ba3eccf187329121e6287914cec8a
[ "MIT" ]
null
null
null
iris-model/get_data.py
eddymarts/Melbourne-Housing-ML
7ea6c6364d8ba3eccf187329121e6287914cec8a
[ "MIT" ]
null
null
null
import pandas as pd pd.options.display.max_columns = None from sklearn.preprocessing import OrdinalEncoder from sklearn import datasets import plotly.express as px import os, sys currentdir = os.path.dirname(os.path.realpath(__file__)) parentdir = os.path.dirname(currentdir) sys.path.append(parentdir) from utils.datase...
31.025641
120
0.668595