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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c9707dc1574081d46ce438a0fbd3d659ca252fc | 7,985 | py | Python | openverse_catalog/dags/providers/provider_api_scripts/science_museum.py | yavik-kapadia/openverse-catalog | 853766f2176a96450f456a9fd6675e134c0866e1 | [
"MIT"
] | 25 | 2021-05-06T20:53:45.000Z | 2022-03-30T23:18:50.000Z | openverse_catalog/dags/providers/provider_api_scripts/science_museum.py | yavik-kapadia/openverse-catalog | 853766f2176a96450f456a9fd6675e134c0866e1 | [
"MIT"
] | 272 | 2021-05-17T05:53:00.000Z | 2022-03-31T23:57:20.000Z | openverse_catalog/dags/providers/provider_api_scripts/science_museum.py | yavik-kapadia/openverse-catalog | 853766f2176a96450f456a9fd6675e134c0866e1 | [
"MIT"
] | 13 | 2021-06-12T07:09:06.000Z | 2022-03-29T17:39:13.000Z | import logging
from common.licenses import get_license_info
from common.loader import provider_details as prov
from common.requester import DelayedRequester
from common.storage.image import ImageStore
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s: %(message)s", level=logging.INFO
)
logger ... | 30.830116 | 87 | 0.628053 |
1c97af3344054a3843093ee257c735adccd419f3 | 1,089 | py | Python | digitaltape.py | heerdyes/tapegame | d6e0c6f81fe9c7c85a54edbd037be318ff7ed391 | [
"Artistic-2.0"
] | null | null | null | digitaltape.py | heerdyes/tapegame | d6e0c6f81fe9c7c85a54edbd037be318ff7ed391 | [
"Artistic-2.0"
] | null | null | null | digitaltape.py | heerdyes/tapegame | d6e0c6f81fe9c7c85a54edbd037be318ff7ed391 | [
"Artistic-2.0"
] | null | null | null | # tape variables
TS_MAX=1000
# the digital tape model
| 26.560976 | 86 | 0.602388 |
1c980836374b3fb5fedf0a12599c8c546395b546 | 422 | py | Python | webhook-cdk/lambda/vars.py | ncalteen/github-webhook-lambda-example | 414daf1a70343abf207ff37dc4a9d65d6892197d | [
"MIT"
] | null | null | null | webhook-cdk/lambda/vars.py | ncalteen/github-webhook-lambda-example | 414daf1a70343abf207ff37dc4a9d65d6892197d | [
"MIT"
] | null | null | null | webhook-cdk/lambda/vars.py | ncalteen/github-webhook-lambda-example | 414daf1a70343abf207ff37dc4a9d65d6892197d | [
"MIT"
] | 1 | 2022-03-29T14:42:25.000Z | 2022-03-29T14:42:25.000Z | import json
# Output must be returned in the format mentioned below:
# https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format
lambda_response = {
"isBase64Encoded": False,
"statusCode": 200,
"headers": {
... | 26.375 | 152 | 0.668246 |
1c988d19204c6f421dff8e8f0c696fe6f0e5ec4f | 3,737 | py | Python | gym_unblockme/envs/unblockme_render.py | fedingo/gym-unblockme | a4dd20a7608122e09862d681259111e2634f3d4b | [
"MIT"
] | 3 | 2019-02-12T15:53:17.000Z | 2019-07-03T12:00:32.000Z | gym_unblockme/envs/unblockme_render.py | fedingo/gym-unblockme | a4dd20a7608122e09862d681259111e2634f3d4b | [
"MIT"
] | null | null | null | gym_unblockme/envs/unblockme_render.py | fedingo/gym-unblockme | a4dd20a7608122e09862d681259111e2634f3d4b | [
"MIT"
] | null | null | null | import pygame
import time
import numpy as np
import sys
gray = (150, 150, 150)
white = (255, 255, 255)
black = (0, 0, 0, )
red_block = (255, 0, 0)
red_border = (76, 0, 19)
block_color = (255, 128, 0)
border_color = (165,42,42)
screen = None
SIDE = 50
BORDER = 5
MARGIN = 5
LINE = 1
h_switch = True
## Render fun... | 36.637255 | 116 | 0.557399 |
1c98d508fd84565e1b07d0b60db1b387344d3b53 | 2,852 | py | Python | scaffolds/__init__.py | chhsiao1981/frontend_template | fcd68c47d9ba3b04c8eb59c684c93baa20a688aa | [
"MIT"
] | null | null | null | scaffolds/__init__.py | chhsiao1981/frontend_template | fcd68c47d9ba3b04c8eb59c684c93baa20a688aa | [
"MIT"
] | null | null | null | scaffolds/__init__.py | chhsiao1981/frontend_template | fcd68c47d9ba3b04c8eb59c684c93baa20a688aa | [
"MIT"
] | null | null | null | # API
from pyramid.scaffolds import PyramidTemplate
import os
import re
import logging
| 29.102041 | 141 | 0.678822 |
1c990cbd7a7616bc0cdb891dffbb562850c5ab57 | 21,364 | py | Python | phy/cluster/tests/test_supervisor.py | mikailweston/phy | d774cb989152a4b7344ac9b70c79c204a5036763 | [
"BSD-3-Clause"
] | null | null | null | phy/cluster/tests/test_supervisor.py | mikailweston/phy | d774cb989152a4b7344ac9b70c79c204a5036763 | [
"BSD-3-Clause"
] | null | null | null | phy/cluster/tests/test_supervisor.py | mikailweston/phy | d774cb989152a4b7344ac9b70c79c204a5036763 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test GUI component."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
#from contextlib import contextmanager
from pytest import yield_fixture, fixture, raises
import ... | 27.460154 | 92 | 0.637521 |
1c9997692782ea5187e69a11b0059d2cc2e4c11c | 2,733 | py | Python | Source/CommandManager.py | SOBotics/Botpy | 8e3eb48fcc2a46fd60f4d49832941fa1b71bc223 | [
"WTFPL"
] | 5 | 2017-09-19T10:19:33.000Z | 2020-10-11T13:29:43.000Z | Source/CommandManager.py | SOBotics/Botpy | 8e3eb48fcc2a46fd60f4d49832941fa1b71bc223 | [
"WTFPL"
] | 33 | 2018-05-14T09:05:06.000Z | 2020-04-20T08:48:59.000Z | Source/CommandManager.py | SOBotics/Botpy | 8e3eb48fcc2a46fd60f4d49832941fa1b71bc223 | [
"WTFPL"
] | 1 | 2017-09-27T10:40:34.000Z | 2017-09-27T10:40:34.000Z | #
# CommandManager.py
# Botpy
#
# Created by Ashish Ahuja on 4th September 2017.
#
#
import threading
import chatexchange as ce
| 35.038462 | 98 | 0.555799 |
1c9a0955e72ca504725f135176d44e72aae8607c | 1,237 | py | Python | tests/periodicities/gen_makefile.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 377 | 2016-10-13T20:52:44.000Z | 2022-03-29T18:04:14.000Z | tests/periodicities/gen_makefile.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 160 | 2016-10-13T16:11:53.000Z | 2022-03-28T04:21:34.000Z | tests/periodicities/gen_makefile.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 63 | 2017-03-09T14:51:18.000Z | 2022-03-27T20:52:57.000Z | import os
import glob
subdirs = glob.glob("tests/periodicities/*");
subdirs = ['tests/periodicities/Month',
'tests/periodicities/Minute',
'tests/periodicities/Week',
'tests/periodicities/Business_Hour',
'tests/periodicities/Business_Day',
'tests/periodicities/Seco... | 32.552632 | 89 | 0.5481 |
1c9a500d9b0aad2641a02cde2360c7ed9e056cc6 | 3,494 | py | Python | test/test_util_registry.py | SimulatedANeal/carpedm | 22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89 | [
"MIT"
] | 2 | 2020-09-30T04:59:06.000Z | 2021-03-30T20:42:44.000Z | test/test_util_registry.py | SimulatedANeal/carpedm | 22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89 | [
"MIT"
] | null | null | null | test/test_util_registry.py | SimulatedANeal/carpedm | 22bd5d28cfff50d7462e2a8e1b8dc1675e2a4c89 | [
"MIT"
] | 1 | 2018-05-25T07:15:16.000Z | 2018-05-25T07:15:16.000Z | #
# Copyright (C) 2018 Neal Digre.
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
#
#
# Portions of this module are copied or lightly modified from the
# Tensor2Tensor registry_test module, so here is their license:
#
# Copyright 2018 The Tensor... | 29.361345 | 79 | 0.697195 |
1c9a93508b958132a0c4b43ee8f248a5003366fb | 383 | py | Python | pay-api/migrations/versions/8f7565cf50c1_.py | stevenc987/sbc-pay | 04f02f362f88a30c082b0643583b8d0ebff6063f | [
"Apache-2.0"
] | null | null | null | pay-api/migrations/versions/8f7565cf50c1_.py | stevenc987/sbc-pay | 04f02f362f88a30c082b0643583b8d0ebff6063f | [
"Apache-2.0"
] | null | null | null | pay-api/migrations/versions/8f7565cf50c1_.py | stevenc987/sbc-pay | 04f02f362f88a30c082b0643583b8d0ebff6063f | [
"Apache-2.0"
] | null | null | null | """empty message
Revision ID: 8f7565cf50c1
Revises: 872760122cc9, 8652bf9c03ff
Create Date: 2020-10-02 11:11:49.823678
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8f7565cf50c1'
down_revision = ('872760122cc9', '8652bf9c03ff')
branch_labels = None
depends_o... | 15.32 | 48 | 0.741514 |
1c9adb0e11b484554e5e9a324f68f256e624b588 | 13,217 | py | Python | iotronic/wamp/agent.py | smartmeio/stack4things-openstack-iotronic | 3e5782eb1fb33b7c3c8c9362e24d30241153c371 | [
"Apache-2.0"
] | 1 | 2021-11-04T09:43:49.000Z | 2021-11-04T09:43:49.000Z | iotronic/wamp/agent.py | smartmeio/stack4things-openstack-iotronic | 3e5782eb1fb33b7c3c8c9362e24d30241153c371 | [
"Apache-2.0"
] | null | null | null | iotronic/wamp/agent.py | smartmeio/stack4things-openstack-iotronic | 3e5782eb1fb33b7c3c8c9362e24d30241153c371 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 MDSLAB - University of Messina
# All Rights Reserved.
#
# 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
#
# U... | 31.544153 | 81 | 0.557464 |
1c9ae3c6c99371fef5bc7aaa5ea9deed848c23c0 | 1,406 | py | Python | src/export_to_poseviz.py | anibali/metro-pose3d | dd0c8a82ae271ce69441d216d615428e5ab1d5d1 | [
"MIT"
] | 52 | 2020-03-10T05:18:02.000Z | 2021-12-23T04:03:38.000Z | src/export_to_poseviz.py | anibali/metro-pose3d | dd0c8a82ae271ce69441d216d615428e5ab1d5d1 | [
"MIT"
] | 2 | 2020-03-30T08:08:06.000Z | 2020-03-31T04:26:10.000Z | src/export_to_poseviz.py | anibali/metro-pose3d | dd0c8a82ae271ce69441d216d615428e5ab1d5d1 | [
"MIT"
] | 7 | 2020-04-02T09:02:00.000Z | 2020-12-12T07:11:07.000Z | #!/usr/bin/env python3
import argparse
import logging
import sys
import numpy as np
import util
if __name__ == '__main__':
main()
| 29.914894 | 94 | 0.69559 |
1c9b5d5805105a181cbbe52dc9cadbd70001e7f9 | 1,606 | py | Python | xcube/core/gen2/local/helpers.py | bcdev/xcube | 9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3 | [
"MIT"
] | 97 | 2018-06-26T13:02:55.000Z | 2022-03-26T21:03:13.000Z | xcube/core/gen2/local/helpers.py | bcdev/xcube | 9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3 | [
"MIT"
] | 524 | 2018-11-09T12:00:08.000Z | 2022-03-31T17:00:13.000Z | xcube/core/gen2/local/helpers.py | bcdev/xcube | 9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3 | [
"MIT"
] | 15 | 2019-07-09T08:46:03.000Z | 2022-02-07T18:47:34.000Z | # The MIT License (MIT)
# Copyright (c) 2021 by the xcube development team and contributors
#
# 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... | 41.179487 | 81 | 0.71731 |
98bad417651d09071c208452c18aa4573b275f66 | 1,683 | py | Python | core/log.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | core/log.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | core/log.py | dl-stuff/dl9 | 1cbe98afc53a1de9d413797fb130946acc4b6ba4 | [
"MIT"
] | null | null | null | """Simulation logs"""
from __future__ import annotations # default once 3.10
import sys
from enum import Enum
from typing import Type, TYPE_CHECKING
if TYPE_CHECKING:
from core.timeline import Timeline
| 25.119403 | 97 | 0.60309 |
98bba1bb3ab4288928a1669d17e724ae9a0d33c2 | 3,760 | py | Python | zipline/__init__.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | zipline/__init__.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | zipline/__init__.py | chalant/pluto | e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc | [
"Apache-2.0"
] | null | null | null | # #
# # Copyright 2015 Quantopian, Inc.
# #
# # Licensed under the Apache License, Version 2.0 (the "License");
# # you may not use this file except in compliance with the License.
# # You may obtain a copy of the License at
# #
# # http://www.apache.org/licenses/LICENSE-2.0
# #
# # Unless required by applicable la... | 29.147287 | 80 | 0.668617 |
98bbff443455dac48b3d58e95d525a9389d58413 | 7,896 | py | Python | smarts/core/utils/traffic_history_service.py | c-h-a-r-l-i-e/SMARTS | 6cb8ffda74e235c25d63b74313623b2e03e402f7 | [
"MIT"
] | null | null | null | smarts/core/utils/traffic_history_service.py | c-h-a-r-l-i-e/SMARTS | 6cb8ffda74e235c25d63b74313623b2e03e402f7 | [
"MIT"
] | null | null | null | smarts/core/utils/traffic_history_service.py | c-h-a-r-l-i-e/SMARTS | 6cb8ffda74e235c25d63b74313623b2e03e402f7 | [
"MIT"
] | null | null | null | # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#
# 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 us... | 37.245283 | 90 | 0.630699 |
98bd00128cc88c306abd43b1058840e641926a91 | 195 | py | Python | src/basics/sql_lite/update_data.py | FoxNeo/MyPythonProjects | 3499ef0853f0087f6f143e1633b0a88a3d7b9818 | [
"MIT"
] | null | null | null | src/basics/sql_lite/update_data.py | FoxNeo/MyPythonProjects | 3499ef0853f0087f6f143e1633b0a88a3d7b9818 | [
"MIT"
] | null | null | null | src/basics/sql_lite/update_data.py | FoxNeo/MyPythonProjects | 3499ef0853f0087f6f143e1633b0a88a3d7b9818 | [
"MIT"
] | null | null | null | import sqlite3
connect = sqlite3.connect("production.db")
cursor = connect.cursor()
cursor.execute("UPDATE PERSON SET edad = 19 WHERE nombre = 'Conker'")
connect.commit()
connect.close()
| 24.375 | 70 | 0.723077 |
98bd3099195cf49ba522ba023294ea3a974ffe7f | 1,599 | py | Python | calvin/runtime/south/plugins/media/defaultimpl/image.py | josrolgil/exjobbCalvin | 976459eaa50246586360c049b9880d753623d574 | [
"Apache-2.0"
] | 1 | 2016-05-10T22:36:31.000Z | 2016-05-10T22:36:31.000Z | calvin/runtime/south/plugins/media/defaultimpl/image.py | josrolgil/exjobbCalvin | 976459eaa50246586360c049b9880d753623d574 | [
"Apache-2.0"
] | null | null | null | calvin/runtime/south/plugins/media/defaultimpl/image.py | josrolgil/exjobbCalvin | 976459eaa50246586360c049b9880d753623d574 | [
"Apache-2.0"
] | null | null | null | import pygame
from StringIO import StringIO
import cv2
import os
import numpy
| 26.65 | 69 | 0.56035 |
98bd3fd17ab9f4b238b6d43814353c33f950c7b3 | 3,340 | py | Python | durin/models.py | mlodic/django-rest-durin | b31a7257fb9765a4928c08bb1e68e80f48159229 | [
"MIT"
] | null | null | null | durin/models.py | mlodic/django-rest-durin | b31a7257fb9765a4928c08bb1e68e80f48159229 | [
"MIT"
] | null | null | null | durin/models.py | mlodic/django-rest-durin | b31a7257fb9765a4928c08bb1e68e80f48159229 | [
"MIT"
] | null | null | null | import binascii
from os import urandom
import humanize
from django.conf import settings
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from durin.settings import durin_settings
from durin.signals import token_renewed
User = settings.AUTH_USER_MO... | 26.299213 | 82 | 0.606886 |
98be793b0386d37224cb563ae56376daaaeb6f10 | 507 | py | Python | linter.py | CudaText-addons/cuda_lint_htmltidy | afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c | [
"MIT"
] | null | null | null | linter.py | CudaText-addons/cuda_lint_htmltidy | afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c | [
"MIT"
] | null | null | null | linter.py | CudaText-addons/cuda_lint_htmltidy | afcf1dbfaa2dfc2d63e1ded4781d5f3e4b40a21c | [
"MIT"
] | null | null | null | # Copyright (c) 2013 Aparajita Fishman
# Change for CudaLint: Alexey T.
# License: MIT
import os
from cuda_lint import Linter, util
if os.name=='nt':
_exe = os.path.join(os.path.dirname(__file__), 'tidy_win32', 'tidy')
else:
_exe = 'tidy'
| 26.684211 | 115 | 0.627219 |
98bf3939045052dd4fba91a19ad1fdf6be1101a5 | 640 | py | Python | PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Dstruct/Basic/inter2.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | "set operations for multiple sequences"
| 33.684211 | 68 | 0.504688 |
98bf61f5f3abef89b085be204210156d6a5477f5 | 3,006 | py | Python | airtech_api/utils/error_messages/serialization_errors.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | 1 | 2019-04-04T12:27:55.000Z | 2019-04-04T12:27:55.000Z | airtech_api/utils/error_messages/serialization_errors.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | 34 | 2019-03-26T11:18:17.000Z | 2022-02-10T08:12:36.000Z | airtech_api/utils/error_messages/serialization_errors.py | chidioguejiofor/airtech-api | 45d77da0cc4230dd3cb7ab4cbb5168a9239850f5 | [
"MIT"
] | null | null | null | msg_dict = {
'resource_not_found':
'The resource you specified was not found',
'invalid_gender':
"The gender you specified is invalid!!",
'many_invalid_fields':
'Some errors occured while validating some fields. Please check and try again',
'unique':
'The {} you inputted already exists',... | 42.338028 | 83 | 0.706254 |
98c098366590ca27e9adc66a721c84a992752bc9 | 109 | py | Python | blog/be/server/serialization/__init__.py | kamko/lnu_ht19_4ME310_final_project | ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e | [
"MIT"
] | null | null | null | blog/be/server/serialization/__init__.py | kamko/lnu_ht19_4ME310_final_project | ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e | [
"MIT"
] | 2 | 2020-06-07T19:02:54.000Z | 2020-06-07T19:03:02.000Z | blog/be/server/serialization/__init__.py | kamko/lnu_ht19_4ME310_final_project | ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e | [
"MIT"
] | null | null | null | from .marshmallow import ma
from .schemas import ArticleSchema
__all__ = [
'ma',
'ArticleSchema'
]
| 12.111111 | 34 | 0.688073 |
98c0a5642acac614148ed6f1d7bcaa9979233d3b | 8,950 | py | Python | scripts/fast_queue.py | ourresearch/openalex-guts | f6c3e9992361e4bb1dbe76fbfb644c80f081319a | [
"MIT"
] | 48 | 2021-11-20T08:17:53.000Z | 2022-03-19T13:57:15.000Z | scripts/fast_queue.py | ourresearch/openalex-guts | f6c3e9992361e4bb1dbe76fbfb644c80f081319a | [
"MIT"
] | null | null | null | scripts/fast_queue.py | ourresearch/openalex-guts | f6c3e9992361e4bb1dbe76fbfb644c80f081319a | [
"MIT"
] | 2 | 2022-01-04T16:28:48.000Z | 2022-02-05T21:25:01.000Z | import argparse
from time import sleep, time
from collections import defaultdict
from sqlalchemy import orm, text, insert, delete
from sqlalchemy.orm import selectinload
import models
from app import db
from app import logger
from scripts.queue import JsonWorks, JsonAuthors, JsonConcepts, JsonInstitutions, JsonVenues... | 42.216981 | 149 | 0.639777 |
98c14c64fb91ce8b039d5c03cf8ab0036d83b74c | 3,810 | py | Python | cogs/memes.py | Code-Cecilia/botman-rewrite | 9d8baeebf267c62df975d2f209e85589b81934af | [
"MIT"
] | 2 | 2022-02-21T14:10:15.000Z | 2022-02-21T14:10:50.000Z | cogs/memes.py | Code-Cecilia/botman-rewrite | 9d8baeebf267c62df975d2f209e85589b81934af | [
"MIT"
] | null | null | null | cogs/memes.py | Code-Cecilia/botman-rewrite | 9d8baeebf267c62df975d2f209e85589b81934af | [
"MIT"
] | null | null | null | import json
import discord
from discord.ext import commands
from assets import internet_funcs
from assets.list_funcs import chunks
| 38.877551 | 109 | 0.574803 |
98c1adf25f25e2b996bb3df26aef461028014a20 | 55 | py | Python | examples/forest_fire/run.py | fire-suppression-abm/mesa | 8498eea3e5d4a739aee3b003107a0e7de59c5026 | [
"Apache-2.0"
] | 1,704 | 2015-02-01T17:59:44.000Z | 2022-03-30T13:25:47.000Z | examples/forest_fire/run.py | fire-suppression-abm/mesa | 8498eea3e5d4a739aee3b003107a0e7de59c5026 | [
"Apache-2.0"
] | 1,048 | 2015-01-12T01:16:05.000Z | 2022-03-31T11:44:33.000Z | examples/forest_fire/run.py | fire-suppression-abm/mesa | 8498eea3e5d4a739aee3b003107a0e7de59c5026 | [
"Apache-2.0"
] | 831 | 2015-03-04T13:41:25.000Z | 2022-03-30T14:33:17.000Z | from forest_fire.server import server
server.launch()
| 13.75 | 37 | 0.818182 |
98c1fbeb0d5441c90960a350fd079ea801185651 | 2,298 | py | Python | scripts/collect_timelines1.py | tedhchen/twitter_timeline_tools | bc21e8c7c4e976409281e2697e1ec75044648eb8 | [
"MIT"
] | null | null | null | scripts/collect_timelines1.py | tedhchen/twitter_timeline_tools | bc21e8c7c4e976409281e2697e1ec75044648eb8 | [
"MIT"
] | null | null | null | scripts/collect_timelines1.py | tedhchen/twitter_timeline_tools | bc21e8c7c4e976409281e2697e1ec75044648eb8 | [
"MIT"
] | null | null | null | # Prep
import json, configparser, pickle, csv, logging, os
import pandas as pd
from tweepy import AppAuthHandler, API, Cursor
# Reading in configuation
params = configparser.ConfigParser()
params.read('config.ini')
# Functions
# Takes config file and returns authenticated api object
# Get relevant user ids
# takes ... | 31.479452 | 150 | 0.700174 |
98c28b91f69f483e365aff3baa53ce90ba90427d | 937 | py | Python | aquarius/app/auth_util.py | oceanprotocol/provider-backend | f9e36e3d6b880de548c6b92c38d10d76daf369ba | [
"Apache-2.0"
] | null | null | null | aquarius/app/auth_util.py | oceanprotocol/provider-backend | f9e36e3d6b880de548c6b92c38d10d76daf369ba | [
"Apache-2.0"
] | 1 | 2018-08-15T09:57:01.000Z | 2018-08-15T09:57:01.000Z | aquarius/app/auth_util.py | oceanprotocol/provider-backend | f9e36e3d6b880de548c6b92c38d10d76daf369ba | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from eth_utils import is_address
from web3 import Web3
def compare_eth_addresses(address, checker, logger):
"""
Compare two addresses and return TRUE if there is a match
:param str address: Address
:param str checker... | 31.233333 | 77 | 0.71825 |
98c37885dc6ddaa81fc5bc670f8b3da95afaa94e | 673 | py | Python | oscar/lib/python2.7/site-packages/phonenumbers/data/region_DJ.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/data/region_DJ.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/data/region_DJ.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | """Auto-generated file, do not edit by hand. DJ metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_DJ = PhoneMetadata(id='DJ', country_code=253, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[27]\\d{7}', possible_length=(8,)),
... | 74.777778 | 132 | 0.708767 |
98c56839c6c8ff2db03c4e3a4f565347728ce5e0 | 4,541 | py | Python | llvm-7.0.0.src/utils/unicode-case-fold.py | sillywalk/grazz | a0adb1a90d41ff9006d8c1476546263f728b3c83 | [
"Apache-2.0"
] | 171 | 2018-09-17T13:15:12.000Z | 2022-03-18T03:47:04.000Z | llvm-7.0.0.src/utils/unicode-case-fold.py | sillywalk/grazz | a0adb1a90d41ff9006d8c1476546263f728b3c83 | [
"Apache-2.0"
] | 51 | 2019-10-23T11:55:08.000Z | 2021-12-21T06:32:11.000Z | llvm-7.0.0.src/utils/unicode-case-fold.py | sillywalk/grazz | a0adb1a90d41ff9006d8c1476546263f728b3c83 | [
"Apache-2.0"
] | 35 | 2018-09-18T07:46:53.000Z | 2022-03-27T07:59:48.000Z | #!/usr/bin/env python
"""
Unicode case folding database conversion utility
Parses the database and generates a C++ function which implements the case
folding algorithm. The database entries are of the form:
<code>; <status>; <mapping>; # <name>
<status> can be one of four characters:
C - Common mappings
S - ma... | 32.905797 | 89 | 0.618146 |
98c615953ef0bbcfd93b9c52b023ec8e35bea466 | 115,101 | py | Python | trade_remedies_caseworker/cases/views.py | uktrade/trade-remedies-caseworker | fece9fde3cb241d96cbc1aaf7188d976f8621600 | [
"MIT"
] | 1 | 2020-08-27T09:53:00.000Z | 2020-08-27T09:53:00.000Z | trade_remedies_caseworker/cases/views.py | uktrade/trade-remedies-caseworker | fece9fde3cb241d96cbc1aaf7188d976f8621600 | [
"MIT"
] | 7 | 2020-10-14T16:23:42.000Z | 2021-09-24T14:18:47.000Z | trade_remedies_caseworker/cases/views.py | uktrade/trade-remedies-caseworker | fece9fde3cb241d96cbc1aaf7188d976f8621600 | [
"MIT"
] | null | null | null | import itertools
import json
import logging
import re
from django.views.generic import TemplateView
from django.http import HttpResponse
from django.views import View
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from django.views.decorators.csrf import csrf_exempt
from django.short... | 41.063503 | 150 | 0.574391 |
98c73bdbed560b9a7619895e79b9cc268edc26d3 | 10,352 | py | Python | analyze-ir-signal.py | hnw/analyze-ir-signal | f810c0ced955ec70c5e4c0d3556efa0a6d0d3138 | [
"MIT"
] | null | null | null | analyze-ir-signal.py | hnw/analyze-ir-signal | f810c0ced955ec70c5e4c0d3556efa0a6d0d3138 | [
"MIT"
] | null | null | null | analyze-ir-signal.py | hnw/analyze-ir-signal | f810c0ced955ec70c5e4c0d3556efa0a6d0d3138 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
from sklearn.neighbors import KernelDensity
# Relative tolerance (in percent) for some comparisons on measured data.
TOLERANCE = 25
# Lower tolerance for comparison of measured data
LTOL = 100 - TOLERANCE
# Upper tolerance for comparison of measured data
UTOL = 100 + TOLERANCE... | 57.511111 | 1,100 | 0.681897 |
98c872b368191fe4e11021c3430aca414eab1a34 | 2,698 | py | Python | mmdet/models/emod_ops/ar_module.py | zhenglab/EMOD | 68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89 | [
"Apache-2.0"
] | 2 | 2020-12-09T08:40:04.000Z | 2021-07-27T08:44:46.000Z | mmdet/models/emod_ops/ar_module.py | zhenglab/EMOD | 68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89 | [
"Apache-2.0"
] | null | null | null | mmdet/models/emod_ops/ar_module.py | zhenglab/EMOD | 68bef744a99d0ec4eef8f3cc6b1f5ab3c0807d89 | [
"Apache-2.0"
] | null | null | null | import torch
from torch import nn
from mmcv.cnn.utils import constant_init, kaiming_init
| 29.326087 | 81 | 0.546331 |
98c9bbdcbfc1d4a76b6ddc9df442f68e0236c7a7 | 519 | py | Python | prayer_times_v2.py | danish09/request_api | 67aac9079cb30fc0069a9273c8b4074122ea4d3b | [
"MIT"
] | null | null | null | prayer_times_v2.py | danish09/request_api | 67aac9079cb30fc0069a9273c8b4074122ea4d3b | [
"MIT"
] | null | null | null | prayer_times_v2.py | danish09/request_api | 67aac9079cb30fc0069a9273c8b4074122ea4d3b | [
"MIT"
] | null | null | null | import json
import requests
from datetime import datetime
from playsound import playsound
tday=datetime.today().strftime('%Y-%m-%d')
right_now=datetime.today().strftime('%I-%M-%p')
response = requests.get("https://www.londonprayertimes.com/api/times/?format=json&key=0239f686-4423-408e-9a0c-7968a403d197&year=&mont... | 23.590909 | 137 | 0.693642 |
98ca5c7bd9f6d4e14adea6a5004535831845ac15 | 6,763 | py | Python | pokemon/pokemon_tests/test_serializers.py | pessman/pokemon_utils | cbe06ebe323cb38a35846274d812bdbe8d0ae8ca | [
"MIT"
] | 1 | 2019-03-11T04:12:50.000Z | 2019-03-11T04:12:50.000Z | pokemon/pokemon_tests/test_serializers.py | pessman/pokemon_utils | cbe06ebe323cb38a35846274d812bdbe8d0ae8ca | [
"MIT"
] | null | null | null | pokemon/pokemon_tests/test_serializers.py | pessman/pokemon_utils | cbe06ebe323cb38a35846274d812bdbe8d0ae8ca | [
"MIT"
] | 2 | 2019-03-13T03:17:29.000Z | 2019-04-04T20:06:50.000Z | import pytest
from django.test import TestCase
from rest_framework import serializers as drf_serializers
from pokemon import models, serializers
| 32.990244 | 67 | 0.546799 |
98ca9c54fc93a4a5630df7be404c28ca3e935a2c | 4,962 | py | Python | sqlpuzzle/_common/argsparser.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 8 | 2015-03-19T11:25:32.000Z | 2020-09-02T11:30:10.000Z | sqlpuzzle/_common/argsparser.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 7 | 2015-03-23T14:34:28.000Z | 2022-02-21T12:36:01.000Z | sqlpuzzle/_common/argsparser.py | Dundee/python-sqlpuzzle | 260524922a0645c9bf94a9779195f93ef2c78cba | [
"MIT"
] | 4 | 2018-11-28T21:59:27.000Z | 2020-01-05T01:50:08.000Z | from sqlpuzzle.exceptions import InvalidArgumentException
__all__ = ('parse_args',)
# pylint: disable=dangerous-default-value,keyword-arg-before-vararg
def parse_args(options={}, *args, **kwds):
"""
Parser of arguments.
dict options {
int min_items: Min of required items to fold one tuple. (defa... | 33.755102 | 112 | 0.620314 |
98cab2bad7becb5d77b33c01de7f7ffa0e4c8c44 | 16,809 | py | Python | reviewboard/webapi/tests/test_review_screenshot_comment.py | ParikhKadam/reviewboard | 7395902e4c181bcd1d633f61105012ffb1d18e1b | [
"MIT"
] | 921 | 2015-01-01T15:26:28.000Z | 2022-03-29T11:30:38.000Z | reviewboard/webapi/tests/test_review_screenshot_comment.py | ParikhKadam/reviewboard | 7395902e4c181bcd1d633f61105012ffb1d18e1b | [
"MIT"
] | 5 | 2015-03-17T18:57:47.000Z | 2020-10-02T13:24:31.000Z | reviewboard/webapi/tests/test_review_screenshot_comment.py | ParikhKadam/reviewboard | 7395902e4c181bcd1d633f61105012ffb1d18e1b | [
"MIT"
] | 285 | 2015-01-12T06:24:36.000Z | 2022-03-29T11:03:50.000Z | from __future__ import unicode_literals
from django.contrib.auth.models import User
from djblets.webapi.errors import PERMISSION_DENIED
from reviewboard.reviews.models import ScreenshotComment
from reviewboard.webapi.resources import resources
from reviewboard.webapi.tests.base import BaseWebAPITestCase
from reviewbo... | 41.198529 | 79 | 0.636861 |
98caf2eb8158bde50b1d44dd5a0629d9a33340c7 | 1,163 | py | Python | qbapi/app.py | dimddev/qb | fbf9f4cac8aaf14243229e3193960da7114bb7ba | [
"BSD-3-Clause"
] | null | null | null | qbapi/app.py | dimddev/qb | fbf9f4cac8aaf14243229e3193960da7114bb7ba | [
"BSD-3-Clause"
] | null | null | null | qbapi/app.py | dimddev/qb | fbf9f4cac8aaf14243229e3193960da7114bb7ba | [
"BSD-3-Clause"
] | null | null | null | """
Command line tool
"""
import asyncio
from qbapi.request import create_request
from qbapi.services.clients import Producer, Consumer
| 21.943396 | 66 | 0.638005 |
98cd18a83142f071207fd03be7967e2e0520ebe6 | 9,063 | py | Python | test/test_literal.py | hrnciar/rdflib | d507fdac93be2ec3e35882e3efaa5e7c7349fa93 | [
"BSD-3-Clause"
] | null | null | null | test/test_literal.py | hrnciar/rdflib | d507fdac93be2ec3e35882e3efaa5e7c7349fa93 | [
"BSD-3-Clause"
] | null | null | null | test/test_literal.py | hrnciar/rdflib | d507fdac93be2ec3e35882e3efaa5e7c7349fa93 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import datetime
import rdflib # needed for eval(repr(...)) below
from rdflib.term import Literal, URIRef, _XSD_DOUBLE, bind, _XSD_BOOLEAN
from rdflib.namespace import XSD
if __name__ == "__main__":
unittest.main()
| 33.69145 | 98 | 0.580051 |
98cd74ddbd3fcee3b46641490c05dc6a010713cd | 2,472 | py | Python | src/messages/text/ruling.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | 2 | 2020-02-27T13:15:07.000Z | 2020-09-19T15:19:29.000Z | src/messages/text/ruling.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | src/messages/text/ruling.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | import telegram
from emoji import emojize
from .base import TextMessageBase
| 44.142857 | 121 | 0.607605 |
98cecf3619ad0f5f809b91b86260d60284ee57d7 | 14,312 | py | Python | extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py | pyaf/severstal-steel-defect-detection | 68a0df4164e84803b6cba78597a079d3736b4e00 | [
"MIT"
] | null | null | null | extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py | pyaf/severstal-steel-defect-detection | 68a0df4164e84803b6cba78597a079d3736b4e00 | [
"MIT"
] | null | null | null | extras/20190910/code/dummy_11a/resnet18_unet_softmax_01/train.py | pyaf/severstal-steel-defect-detection | 68a0df4164e84803b6cba78597a079d3736b4e00 | [
"MIT"
] | null | null | null | import os
os.environ['CUDA_VISIBLE_DEVICES']='0'
from common import *
from dataset import *
from model import *
#------------------------------------
# main #################################################################
if __name__ == '__main__':
print( '%s: calling main function ... ' % os.path.bas... | 33.995249 | 180 | 0.523896 |
98d09bdc81e45d8b676af2c3e285dd5d038ee1da | 1,283 | py | Python | city_coord_download.py | Yuchen971/Chinese-city-level-geojson | 51f8d3d336f3e335b15bbf37882a9f248f0e6461 | [
"MIT"
] | null | null | null | city_coord_download.py | Yuchen971/Chinese-city-level-geojson | 51f8d3d336f3e335b15bbf37882a9f248f0e6461 | [
"MIT"
] | null | null | null | city_coord_download.py | Yuchen971/Chinese-city-level-geojson | 51f8d3d336f3e335b15bbf37882a9f248f0e6461 | [
"MIT"
] | null | null | null | import requests
import os
get_json('/Users/yuchenli/Downloads/city_geojson-master', 100000) | 44.241379 | 87 | 0.626656 |
98d0ac63dc3b2801dd2a6ec85e229c55affc71b1 | 703 | py | Python | myproject/core/clusterAnalysis.py | xiaoxiansheng19/data_analysis | 9e05aada3f545472500e04225d8537b7f0f90a85 | [
"MIT"
] | null | null | null | myproject/core/clusterAnalysis.py | xiaoxiansheng19/data_analysis | 9e05aada3f545472500e04225d8537b7f0f90a85 | [
"MIT"
] | null | null | null | myproject/core/clusterAnalysis.py | xiaoxiansheng19/data_analysis | 9e05aada3f545472500e04225d8537b7f0f90a85 | [
"MIT"
] | null | null | null | # from sklearn.cluster import DBSCAN,KMeans
#
#
# def run(data,radius=300):
# res={}
# # epsilon=0.001, min_samples=200
# epsilon = radius / 100000
# # epsilon = 0.003
# min_samples = 100
# db = DBSCAN(eps=epsilon, min_samples=min_samples)
# # eps
# # min_samples,,
# y_pred = db.fit... | 33.47619 | 76 | 0.627312 |
98d0b391f82dbbbda80cf6f637cf8415548b806e | 1,881 | py | Python | verticapy/tests/vDataFrame/test_vDF_create.py | sitingren/VerticaPy | aa18f4f1277e264005de2d1a8646c28acd1ba137 | [
"Apache-2.0"
] | null | null | null | verticapy/tests/vDataFrame/test_vDF_create.py | sitingren/VerticaPy | aa18f4f1277e264005de2d1a8646c28acd1ba137 | [
"Apache-2.0"
] | null | null | null | verticapy/tests/vDataFrame/test_vDF_create.py | sitingren/VerticaPy | aa18f4f1277e264005de2d1a8646c28acd1ba137 | [
"Apache-2.0"
] | null | null | null | # (c) Copyright [2018-2021] Micro Focus or one of its affiliates.
# 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 applicabl... | 34.2 | 88 | 0.725678 |
98d33c72cdff1bb8b3302772a68873ef14217bfa | 353 | py | Python | Solutions/beta/beta_is_it_an_isogram.py | citrok25/Codewars-1 | dc641c5079e2e8b5955eb027fd15427e5bdb2e26 | [
"MIT"
] | 46 | 2017-08-24T09:27:57.000Z | 2022-02-25T02:24:33.000Z | Solutions/beta/beta_is_it_an_isogram.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | null | null | null | Solutions/beta/beta_is_it_an_isogram.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | 35 | 2017-08-01T22:09:48.000Z | 2022-02-18T17:21:37.000Z | import re
from collections import Counter
| 32.090909 | 67 | 0.430595 |
98d39e717fc52a479b273f0813ba804a39854ac0 | 1,011 | py | Python | p23_Merge_k_Sorted_Lists.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p23_Merge_k_Sorted_Lists.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p23_Merge_k_Sorted_Lists.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | '''
- Leetcode problem: 23
- Difficulty: Hard
- Brief problem description:
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
Example:
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
- Solution Summary:
- Used Resources:
--- Bo Zhou
'''
# ... | 20.22 | 98 | 0.565776 |
98d3b83719bd7419b5fbeccf9de154866fb50efc | 117 | py | Python | flocx_ui/content/flocx/views.py | whitel/flocx-ui | 3887882f1a7a650850bda9d7627cf6ebcc6c32e8 | [
"Apache-2.0"
] | null | null | null | flocx_ui/content/flocx/views.py | whitel/flocx-ui | 3887882f1a7a650850bda9d7627cf6ebcc6c32e8 | [
"Apache-2.0"
] | null | null | null | flocx_ui/content/flocx/views.py | whitel/flocx-ui | 3887882f1a7a650850bda9d7627cf6ebcc6c32e8 | [
"Apache-2.0"
] | null | null | null | from django.views import generic | 29.25 | 44 | 0.811966 |
98d56156be74bebcd376e40f41b92a8ab49e898e | 5,833 | py | Python | wificontrol/utils/networkstranslate.py | patrislav1/pywificontrol | 1edf9cdb95158804033dba8fcb860e5214ded10f | [
"BSD-3-Clause"
] | 1 | 2019-02-12T14:08:08.000Z | 2019-02-12T14:08:08.000Z | wificontrol/utils/networkstranslate.py | patrislav1/pywificontrol | 1edf9cdb95158804033dba8fcb860e5214ded10f | [
"BSD-3-Clause"
] | null | null | null | wificontrol/utils/networkstranslate.py | patrislav1/pywificontrol | 1edf9cdb95158804033dba8fcb860e5214ded10f | [
"BSD-3-Clause"
] | 2 | 2018-12-05T15:55:22.000Z | 2019-01-28T03:44:21.000Z | # Written by Ivan Sapozhkov and Denis Chagin <denis.chagin@emlid.com>
#
# Copyright (c) 2016, Emlid Limited
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code ... | 36.006173 | 113 | 0.603806 |
98d57c6c79fbcfbe80f6e85abd3550ed59d42da1 | 22,613 | py | Python | src/LaminariaCore.py | MrKelpy/IFXG | 695865a8140fdf258a643ee29d6439a59037bc99 | [
"MIT"
] | null | null | null | src/LaminariaCore.py | MrKelpy/IFXG | 695865a8140fdf258a643ee29d6439a59037bc99 | [
"MIT"
] | null | null | null | src/LaminariaCore.py | MrKelpy/IFXG | 695865a8140fdf258a643ee29d6439a59037bc99 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module is distributed as part of the Laminaria Core (Python Version).
Get the Source Code in GitHub:
https://github.com/MrKelpy/LaminariaCore
The LaminariaCore is Open Source and distributed under the
MIT License
"""
# Built-in Imports
import datetime
import random
import asyncio
impo... | 35.388106 | 139 | 0.618007 |
98d580323bddffeab7acfa9058f08c58277e005a | 1,280 | py | Python | examples/api/default_value.py | clamdad/atom | 45d8a2e696002914dd5b71c150edbe54e9ba1e59 | [
"BSD-3-Clause-Clear"
] | 222 | 2015-01-01T10:16:41.000Z | 2022-03-15T21:28:08.000Z | examples/api/default_value.py | clamdad/atom | 45d8a2e696002914dd5b71c150edbe54e9ba1e59 | [
"BSD-3-Clause-Clear"
] | 100 | 2015-01-28T16:26:04.000Z | 2022-03-29T07:17:44.000Z | examples/api/default_value.py | clamdad/atom | 45d8a2e696002914dd5b71c150edbe54e9ba1e59 | [
"BSD-3-Clause-Clear"
] | 45 | 2015-01-05T14:08:13.000Z | 2022-01-31T14:17:20.000Z | # --------------------------------------------------------------------------------------
# Copyright (c) 2013-2021, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# --------------------------------------... | 24.615385 | 88 | 0.604688 |
98d5c4c121e4fde76563c5c0ac59d5c2ef8f0cbc | 23,139 | py | Python | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2017-03-28T06:41:51.000Z | 2017-03-28T06:41:51.000Z | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | null | null | null | linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Codec/YUV4MPEG.py | mdavid/nuxleus | 653f1310d8bf08eaa5a7e3326c2349e56a6abdc2 | [
"BSD-3-Clause"
] | 1 | 2016-12-13T21:08:58.000Z | 2016-12-13T21:08:58.000Z | #!/usr/bin/env python
#
# Copyright (C) 2007 British Broadcasting Corporation and Kamaelia Contributors(1)
# All Rights Reserved.
#
# You may only modify and redistribute this under the terms of any of the
# following licenses(2): Mozilla Public License, V1.1, GNU General
# Public License, V2.0, GNU Lesser General ... | 35.543779 | 107 | 0.563075 |
98d7520f9994f6836e73faaf42f63009eee0dc64 | 697 | py | Python | project/cli/event.py | DanielGrams/gsevp | e94034f7b64de76f38754b56455e83092378261f | [
"MIT"
] | 1 | 2021-06-01T14:49:18.000Z | 2021-06-01T14:49:18.000Z | project/cli/event.py | DanielGrams/gsevp | e94034f7b64de76f38754b56455e83092378261f | [
"MIT"
] | 286 | 2020-12-04T14:13:00.000Z | 2022-03-09T19:05:16.000Z | project/cli/event.py | DanielGrams/gsevpt | a92f71694388e227e65ed1b24446246ee688d00e | [
"MIT"
] | null | null | null | import click
from flask.cli import AppGroup
from project import app, db
from project.dateutils import berlin_tz
from project.services.event import (
get_recurring_events,
update_event_dates_with_recurrence_rule,
)
event_cli = AppGroup("event")
app.cli.add_command(event_cli)
| 24.034483 | 72 | 0.746055 |
98d900684301053ffd4e6344e16abaa1c0d10ed9 | 3,647 | py | Python | test/functional/examples/test_examples.py | ymn1k/testplan | b1bde8495c449d75a74a7fe4e7c6501b0476f833 | [
"Apache-2.0"
] | null | null | null | test/functional/examples/test_examples.py | ymn1k/testplan | b1bde8495c449d75a74a7fe4e7c6501b0476f833 | [
"Apache-2.0"
] | null | null | null | test/functional/examples/test_examples.py | ymn1k/testplan | b1bde8495c449d75a74a7fe4e7c6501b0476f833 | [
"Apache-2.0"
] | 1 | 2019-09-11T09:13:18.000Z | 2019-09-11T09:13:18.000Z | import os
import re
import sys
import subprocess
import pytest
from testplan.common.utils.path import change_directory
import platform
ON_WINDOWS = platform.system() == 'Windows'
KNOWN_EXCEPTIONS = [
"TclError: Can't find a usable init\.tcl in the following directories:", # Matplotlib module improperly installe... | 34.733333 | 166 | 0.636413 |
98db431598c035c6864fd313e00c493666f532f6 | 1,223 | py | Python | peco/template/template.py | Tikubonn/peco | c77fc163ad31d3c271d299747914ce4ef3386987 | [
"MIT"
] | null | null | null | peco/template/template.py | Tikubonn/peco | c77fc163ad31d3c271d299747914ce4ef3386987 | [
"MIT"
] | null | null | null | peco/template/template.py | Tikubonn/peco | c77fc163ad31d3c271d299747914ce4ef3386987 | [
"MIT"
] | null | null | null |
from io import StringIO
| 23.519231 | 66 | 0.555192 |
98dc08bcdfcddaf7d2d055024948658ae151bf17 | 2,342 | py | Python | mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 5 | 2016-01-05T12:21:35.000Z | 2020-10-28T17:06:02.000Z | mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 209 | 2015-06-12T09:39:41.000Z | 2022-03-21T16:01:19.000Z | mtp_api/apps/credit/tests/test_views/test_credit_list/test_security_credit_list/test_credit_list_with_blank_string_filters.py | ministryofjustice/mtp-api | b1c34c29e4aa9f48598cb060abe1368ae7686e0b | [
"MIT"
] | 1 | 2021-04-11T06:19:23.000Z | 2021-04-11T06:19:23.000Z | from core import getattr_path
from rest_framework import status
from credit.tests.test_views.test_credit_list.test_security_credit_list import SecurityCreditListTestCase
| 36.59375 | 105 | 0.634927 |
98dc59660d9259931f06beb23b9db7e987e199a4 | 3,800 | py | Python | vipermonkey/core/filetype.py | lap1nou/ViperMonkey | 631d242f43108226bb25ed91e773a274012dc8c2 | [
"Unlicense"
] | 874 | 2016-09-29T08:19:00.000Z | 2022-03-28T03:34:16.000Z | vipermonkey/core/filetype.py | Mercury-180/ViperMonkey | 1045dadcf7bebedc126ca36d25475e413196d053 | [
"Unlicense"
] | 94 | 2016-09-30T17:03:36.000Z | 2022-03-01T17:25:26.000Z | vipermonkey/core/filetype.py | Mercury-180/ViperMonkey | 1045dadcf7bebedc126ca36d25475e413196d053 | [
"Unlicense"
] | 186 | 2016-09-29T10:59:37.000Z | 2022-03-26T10:20:38.000Z | """
Check for Office file types
ViperMonkey is a specialized engine to parse, analyze and interpret Microsoft
VBA macros (Visual Basic for Applications), mainly for malware analysis.
Author: Philippe Lagadec - http://www.decalage.info
License: BSD, see source code or documentation
Project Repository:
https://github.... | 33.043478 | 84 | 0.678158 |
98dec69515aeffc54b77de9f6161248b53aa1b30 | 2,699 | py | Python | packs/kubernetes/tests/test_third_party_resource.py | userlocalhost2000/st2contrib | 1a5f759e76401743ed9023d298a3d767e3885db1 | [
"Apache-2.0"
] | 164 | 2015-01-17T16:08:33.000Z | 2021-08-03T02:34:07.000Z | packs/kubernetes/tests/test_third_party_resource.py | userlocalhost2000/st2contrib | 1a5f759e76401743ed9023d298a3d767e3885db1 | [
"Apache-2.0"
] | 442 | 2015-01-01T11:19:01.000Z | 2017-09-06T23:26:17.000Z | packs/kubernetes/tests/test_third_party_resource.py | userlocalhost2000/st2contrib | 1a5f759e76401743ed9023d298a3d767e3885db1 | [
"Apache-2.0"
] | 202 | 2015-01-13T00:37:40.000Z | 2020-11-07T11:30:10.000Z | from st2tests.base import BaseSensorTestCase
from third_party_resource import ThirdPartyResource
| 40.283582 | 90 | 0.567247 |
98df6d63c240e8262eac8f0396a8b8f0ecd76ac8 | 10,728 | py | Python | PrometheusScrapper/scrapper.py | masterchef/webscraper | f47220e941980e2a6dda593d74696062784062e1 | [
"MIT"
] | null | null | null | PrometheusScrapper/scrapper.py | masterchef/webscraper | f47220e941980e2a6dda593d74696062784062e1 | [
"MIT"
] | null | null | null | PrometheusScrapper/scrapper.py | masterchef/webscraper | f47220e941980e2a6dda593d74696062784062e1 | [
"MIT"
] | null | null | null | import datetime
import getpass
import logging
import os
import pathlib
import platform
import re
import smtplib
import sys
from contextlib import contextmanager
from email.message import EmailMessage
from functools import wraps
import azure.functions as func
import click
import gspread
import pandas as pd
from apsched... | 34.495177 | 175 | 0.646905 |
98e0601566ba652e64eedad746be214634e5e438 | 17,357 | py | Python | MrWorldwide.py | AnonymousHacker1279/MrWorldwide | a782194e1ebe3a1cd73409e3d4dc9946700bcc0e | [
"MIT"
] | null | null | null | MrWorldwide.py | AnonymousHacker1279/MrWorldwide | a782194e1ebe3a1cd73409e3d4dc9946700bcc0e | [
"MIT"
] | null | null | null | MrWorldwide.py | AnonymousHacker1279/MrWorldwide | a782194e1ebe3a1cd73409e3d4dc9946700bcc0e | [
"MIT"
] | null | null | null | from PyQt6.QtWidgets import QApplication, QWidget, QFileDialog
import PyQt6.QtCore as QtCore
import PyQt6.QtGui as QtGui
import sys, time, json, requests, traceback, configparser, os
import MrWorldwideUI, ConfigurationUI, UpdateManagerUI
version = "v1.0.0"
def readConfigurationFile(config):
try:
configFile = open... | 37.008529 | 399 | 0.75157 |
98e15c2d42b427bf4ffb23842980cd80d4cd57bf | 7,429 | py | Python | tools/az_cli.py | google/cloud-forensics-utls | 719093b4a229e5e97c30d93faabb1ccf3b6ee422 | [
"Apache-2.0"
] | null | null | null | tools/az_cli.py | google/cloud-forensics-utls | 719093b4a229e5e97c30d93faabb1ccf3b6ee422 | [
"Apache-2.0"
] | null | null | null | tools/az_cli.py | google/cloud-forensics-utls | 719093b4a229e5e97c30d93faabb1ccf3b6ee422 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 35.208531 | 79 | 0.679768 |
98e581895367116db85fb5bcc24f1ed7b42ed751 | 2,181 | py | Python | bbio/bbio.py | timgates42/PyBBIO | 0d46115059ed7ec0c17afb6dd7ed2f507b4f2b8a | [
"MIT"
] | 102 | 2015-01-29T04:28:49.000Z | 2022-01-03T18:27:50.000Z | bbio/bbio.py | timgates42/PyBBIO | 0d46115059ed7ec0c17afb6dd7ed2f507b4f2b8a | [
"MIT"
] | 62 | 2015-01-29T11:05:13.000Z | 2019-12-03T04:30:34.000Z | bbio/bbio.py | timgates42/PyBBIO | 0d46115059ed7ec0c17afb6dd7ed2f507b4f2b8a | [
"MIT"
] | 58 | 2015-02-10T14:31:18.000Z | 2022-03-29T13:24:03.000Z | """
PyBBIO - bbio.py
Copyright (c) 2012-2015 - Alexander Hiam <alex@graycat.io>
Released under the MIT license
https://github.com/graycatlabs/PyBBIO
"""
import sys, atexit
from .platform import platform_init, platform_cleanup
from .common import ADDITIONAL_CLEANUP, util_init
def bbio_init():
""" Pre-run initia... | 32.073529 | 85 | 0.692343 |
98e5e44eba98b059fc30bc12fb7cf43b26e82f78 | 365 | py | Python | app/models/endeavors.py | theLaborInVain/kdm-manager-api | fa8744c9b8a739262d1b94900648254cc69d16e1 | [
"MIT"
] | 2 | 2020-03-04T13:43:45.000Z | 2020-11-03T20:34:21.000Z | app/models/endeavors.py | theLaborInVain/kdm-manager-api | fa8744c9b8a739262d1b94900648254cc69d16e1 | [
"MIT"
] | 64 | 2019-07-19T19:19:50.000Z | 2022-03-03T21:19:28.000Z | app/models/endeavors.py | theLaborInVain/kdm-manager-api | fa8744c9b8a739262d1b94900648254cc69d16e1 | [
"MIT"
] | null | null | null | """
The Endeavors asset collection has a number of irregular assets. Be careful
writing any custom code here.
"""
from app.assets import endeavors
from app import models
| 20.277778 | 79 | 0.706849 |
98e710a1b1cb3e42d4cbdb66250958e21888c440 | 804 | py | Python | interface/inter5.py | CeciliaDornelas/Python | 883959ed2e10cd8e8ace2b640e1944edc0c1d8a3 | [
"MIT"
] | null | null | null | interface/inter5.py | CeciliaDornelas/Python | 883959ed2e10cd8e8ace2b640e1944edc0c1d8a3 | [
"MIT"
] | null | null | null | interface/inter5.py | CeciliaDornelas/Python | 883959ed2e10cd8e8ace2b640e1944edc0c1d8a3 | [
"MIT"
] | null | null | null | import sys
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QLabel, QGridLayout, QWidget
from PyQt5.QtCore import QSize
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
mainWin = HelloWindow()
mainWin.show()
sys.exit( app.exec_() )
| 26.8 | 69 | 0.691542 |
98e753afbcdb25feef4bb770897b167108c721b5 | 1,523 | py | Python | setup.py | notwa/scipybiteopt | 62e1510789b680483ad867984849af215a9848c5 | [
"MIT"
] | null | null | null | setup.py | notwa/scipybiteopt | 62e1510789b680483ad867984849af215a9848c5 | [
"MIT"
] | null | null | null | setup.py | notwa/scipybiteopt | 62e1510789b680483ad867984849af215a9848c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import numpy
from setuptools import setup, Extension
#include markdown description in pip page
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# https://g... | 35.418605 | 119 | 0.670387 |
98e97be18c63f8ef9e8f59a9c1da5ea5229f6454 | 2,619 | py | Python | qiskit_experiments/data_processing/__init__.py | yoshida-ryuhei/qiskit-experiments | 82561acf86b407dcda0a9ec69fe18de2b0a592a2 | [
"Apache-2.0"
] | null | null | null | qiskit_experiments/data_processing/__init__.py | yoshida-ryuhei/qiskit-experiments | 82561acf86b407dcda0a9ec69fe18de2b0a592a2 | [
"Apache-2.0"
] | null | null | null | qiskit_experiments/data_processing/__init__.py | yoshida-ryuhei/qiskit-experiments | 82561acf86b407dcda0a9ec69fe18de2b0a592a2 | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 31.178571 | 97 | 0.71974 |
98e9db17617d3ce2f8dbdda50ebfbe93ce11f25b | 10,064 | py | Python | models/pointnet2_sem_seg_msg_haptic.py | yufeiwang63/Pointnet_Pointnet2_pytorch | f9078a71b973c13ae7ffa897e142dc7b1e8e88be | [
"MIT"
] | null | null | null | models/pointnet2_sem_seg_msg_haptic.py | yufeiwang63/Pointnet_Pointnet2_pytorch | f9078a71b973c13ae7ffa897e142dc7b1e8e88be | [
"MIT"
] | null | null | null | models/pointnet2_sem_seg_msg_haptic.py | yufeiwang63/Pointnet_Pointnet2_pytorch | f9078a71b973c13ae7ffa897e142dc7b1e8e88be | [
"MIT"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
from haptic.Pointnet_Pointnet2_pytorch.models.pointnet2_utils import PointNetSetAbstractionMsg,PointNetFeaturePropagation
if __name__ == '__main__':
import torch
model = get_model(13)
xyz = torch.rand(6, 9, 2048)
(model(xyz)) | 54.695652 | 207 | 0.64527 |
98eaf0ff524a7491427b7b19f617c3c6aaefc6a4 | 100 | py | Python | backend/src/notifications/admin.py | YujithIsura/request-management | 3c683274881ef7798779e03a24042034edcd941c | [
"MIT"
] | 3 | 2021-11-21T20:46:00.000Z | 2021-12-02T14:47:18.000Z | notification/admin.py | lautarianoo/django_social_network | ec83af7267f830a2463cb591138dae1a088f9a4e | [
"BSD-3-Clause"
] | 169 | 2020-04-09T08:39:25.000Z | 2021-09-03T01:07:01.000Z | notification/admin.py | lautarianoo/django_social_network | ec83af7267f830a2463cb591138dae1a088f9a4e | [
"BSD-3-Clause"
] | 13 | 2020-04-05T20:53:11.000Z | 2022-02-28T14:52:17.000Z | from django.contrib import admin
from .models import Notification
admin.site.register(Notification) | 25 | 33 | 0.85 |
98eb89e6efe4554abbe1506f10c8ccfbcb3dedf8 | 2,234 | py | Python | HoverSlam.py | GiantWaffleCode/WafflePython | d3e85ce6d9c792e7338eb825307f7bb48113742a | [
"MIT"
] | 13 | 2020-10-13T00:19:21.000Z | 2020-12-31T02:38:58.000Z | HoverSlam.py | GiantWaffleCode/WafflePython | d3e85ce6d9c792e7338eb825307f7bb48113742a | [
"MIT"
] | null | null | null | HoverSlam.py | GiantWaffleCode/WafflePython | d3e85ce6d9c792e7338eb825307f7bb48113742a | [
"MIT"
] | 10 | 2020-10-13T00:19:52.000Z | 2020-12-31T02:39:42.000Z | import krpc
import time
import math
from simple_pid import PID
conn = krpc.connect(name="UI Test")
vessel = conn.space_center.active_vessel
kerbin_frame = vessel.orbit.body.reference_frame
orb_frame = vessel.orbital_reference_frame
srf_frame = vessel.surface_reference_frame
surface_gravity = vessel.orbit.body.surface_... | 33.848485 | 91 | 0.705461 |
98ee2fa044a20258e55e590fef0af310684f4e34 | 433 | py | Python | tests/unit_tests/cx_core/integration/integration_test.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | 204 | 2020-01-18T10:12:13.000Z | 2022-03-27T09:40:17.000Z | tests/unit_tests/cx_core/integration/integration_test.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | 329 | 2020-01-17T17:18:53.000Z | 2022-03-29T11:20:30.000Z | tests/unit_tests/cx_core/integration/integration_test.py | clach04/controllerx | b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe | [
"MIT"
] | 66 | 2020-01-19T20:17:21.000Z | 2022-03-13T15:03:41.000Z | from cx_core import integration as integration_module
from cx_core.controller import Controller
| 27.0625 | 75 | 0.678984 |
98ee487f9a2345f91b85bcae94f9855580455dc1 | 478 | py | Python | asystem-adoc/src/main/template/python/script_util.py | ggear/asystem_archive | b97f67218e8aa60991fba386c9e73d27d20d6c47 | [
"Apache-2.0"
] | null | null | null | asystem-adoc/src/main/template/python/script_util.py | ggear/asystem_archive | b97f67218e8aa60991fba386c9e73d27d20d6c47 | [
"Apache-2.0"
] | 2 | 2021-03-25T21:27:09.000Z | 2022-02-11T03:38:48.000Z | asystem-adoc/src/main/template/python/script_util.py | ggear/asystem_archive | b97f67218e8aa60991fba386c9e73d27d20d6c47 | [
"Apache-2.0"
] | null | null | null | ###############################################################################
#
# Python script utilities as included from the cloudera-framework-assembly,
# do not edit directly
#
###############################################################################
import os
import re
| 29.875 | 79 | 0.433054 |
98ee7596428318903272a404f3751220eec8a490 | 11,760 | py | Python | datapackage_pipelines/web/server.py | gperonato/datapackage-pipelines | 72b98918db1c19590586a3a85c5b087227cbbc3b | [
"MIT"
] | 109 | 2016-09-01T08:41:55.000Z | 2021-11-10T10:08:35.000Z | datapackage_pipelines/web/server.py | gperonato/datapackage-pipelines | 72b98918db1c19590586a3a85c5b087227cbbc3b | [
"MIT"
] | 144 | 2016-08-30T16:26:50.000Z | 2021-04-18T09:06:12.000Z | datapackage_pipelines/web/server.py | gperonato/datapackage-pipelines | 72b98918db1c19590586a3a85c5b087227cbbc3b | [
"MIT"
] | 34 | 2016-09-05T12:46:53.000Z | 2022-03-05T01:53:49.000Z | import datetime
import os
from io import BytesIO
import logging
from functools import wraps
from copy import deepcopy
from collections import Counter
import slugify
import yaml
import mistune
import requests
from flask import \
Blueprint, Flask, render_template, abort, send_file, make_response
from flask_cors imp... | 33.696275 | 79 | 0.631463 |
98eec9960afb05f934f3e80b57d22d6b3147c3f1 | 1,425 | py | Python | MoveSim/code/models/losses.py | tobinsouth/privacy-preserving-synthetic-mobility-data | fd4d1851b47e3e7304761a894b460e8345fae5db | [
"MIT"
] | null | null | null | MoveSim/code/models/losses.py | tobinsouth/privacy-preserving-synthetic-mobility-data | fd4d1851b47e3e7304761a894b460e8345fae5db | [
"MIT"
] | null | null | null | MoveSim/code/models/losses.py | tobinsouth/privacy-preserving-synthetic-mobility-data | fd4d1851b47e3e7304761a894b460e8345fae5db | [
"MIT"
] | null | null | null | # coding: utf-8
import numpy as np
import torch.nn as nn
| 27.403846 | 67 | 0.523509 |
98ef6a5aa62915725ae521746cef94f51adfcf47 | 1,316 | py | Python | board/game.py | petthauk/chess_ml | 2a66ca8511fd4eef71607a7f56417d039d94dbf9 | [
"MIT"
] | null | null | null | board/game.py | petthauk/chess_ml | 2a66ca8511fd4eef71607a7f56417d039d94dbf9 | [
"MIT"
] | null | null | null | board/game.py | petthauk/chess_ml | 2a66ca8511fd4eef71607a7f56417d039d94dbf9 | [
"MIT"
] | null | null | null | import pygame as pg
from pygame.locals import *
import sys
import board.chess_board as board
w = 60 * 8
h = 60 * 8
if __name__ == "__main__":
# Launch main-function if running this script
game = Game()
game.run()
| 24.830189 | 73 | 0.458207 |
98efb4404db7ca8bc8ddf99fbe40494ec2e70aa1 | 2,515 | py | Python | pix2pix/Dataset_util.py | Atharva-Phatak/Season-Tranfer | d6a0d4d42e396677920ffb81ab0086b0aa05d3c3 | [
"MIT"
] | 2 | 2019-07-02T14:00:15.000Z | 2019-07-11T15:50:41.000Z | pix2pix/Dataset_util.py | Atharva-Phatak/Season-Tranfer | d6a0d4d42e396677920ffb81ab0086b0aa05d3c3 | [
"MIT"
] | null | null | null | pix2pix/Dataset_util.py | Atharva-Phatak/Season-Tranfer | d6a0d4d42e396677920ffb81ab0086b0aa05d3c3 | [
"MIT"
] | null | null | null | #importing libraries
import torch
import torch.utils.data as data
import os
import random
from PIL import Image
| 36.985294 | 150 | 0.553082 |
98efd5c91e56c42872a45ff29528b847156d1400 | 20,126 | py | Python | crslab/system/C2CRS_System.py | Zyh716/WSDM2022-C2CRS | 8ef2fa7c44bdba1799ab79f379ae7394bd468c02 | [
"MIT"
] | 4 | 2022-03-24T02:14:50.000Z | 2022-03-30T02:28:19.000Z | crslab/system/C2CRS_System.py | RUCAIBox/WSDM2022-C2CRS | 8ef2fa7c44bdba1799ab79f379ae7394bd468c02 | [
"MIT"
] | null | null | null | crslab/system/C2CRS_System.py | RUCAIBox/WSDM2022-C2CRS | 8ef2fa7c44bdba1799ab79f379ae7394bd468c02 | [
"MIT"
] | 2 | 2022-03-23T02:24:24.000Z | 2022-03-28T12:45:43.000Z | # @Time : 2022/1/1
# @Author : Yuanhang Zhou
# @email : sdzyh002@gmail.com
import os
from math import floor
import torch
from loguru import logger
from typing import List, Dict
from copy import copy, deepcopy
import pickle
import os
import numpy
import ipdb
from crslab.config import PRETRAIN_PATH, SAVE_P... | 42.549683 | 154 | 0.622131 |
98efe77eec76324cc9234c09e5f48bc8417b9d98 | 1,198 | py | Python | morepath/__init__.py | hugovk/morepath | 5596f9ce43ee4e5cd73eaa2ab9ef37825f88ae28 | [
"BSD-3-Clause"
] | 314 | 2015-01-01T01:42:52.000Z | 2022-01-07T21:46:15.000Z | morepath/__init__.py | hugovk/morepath | 5596f9ce43ee4e5cd73eaa2ab9ef37825f88ae28 | [
"BSD-3-Clause"
] | 369 | 2015-01-02T19:10:40.000Z | 2021-07-03T04:37:27.000Z | morepath/__init__.py | hugovk/morepath | 5596f9ce43ee4e5cd73eaa2ab9ef37825f88ae28 | [
"BSD-3-Clause"
] | 37 | 2015-01-11T09:22:02.000Z | 2021-07-02T20:48:20.000Z | # flake8: noqa
"""This is the main public API of Morepath.
Additional public APIs can be imported from the :mod:`morepath.error`
and :mod:`morepath.pdbsupport` modules. For custom directive
implementations that interact with core directives for grouping or
subclassing purposes, or that need to use one of the Morepath
... | 37.4375 | 76 | 0.810518 |
98f2204e0eeff6cafe4a1031fc879a4bec0db151 | 37 | py | Python | src/AuShadha/demographics/email_and_fax/dijit_fields_constants.py | GosthMan/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 46 | 2015-03-04T14:19:47.000Z | 2021-12-09T02:58:46.000Z | src/AuShadha/demographics/email_and_fax/dijit_fields_constants.py | aytida23/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 2 | 2015-06-05T10:29:04.000Z | 2015-12-06T16:54:10.000Z | src/AuShadha/demographics/email_and_fax/dijit_fields_constants.py | aytida23/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 24 | 2015-03-23T01:38:11.000Z | 2022-01-24T16:23:42.000Z | EMAIL_AND_FAX_FORM_CONSTANTS = {
} | 12.333333 | 32 | 0.756757 |
98f428d0ea0b7f44539193898ee9647b5c6c689f | 2,242 | py | Python | marketDataRetrieval.py | amertx/Monte-Carlo-Simulation | 6c3a616bc67e668d80a73247ca279e10f6d46cd5 | [
"MIT"
] | null | null | null | marketDataRetrieval.py | amertx/Monte-Carlo-Simulation | 6c3a616bc67e668d80a73247ca279e10f6d46cd5 | [
"MIT"
] | null | null | null | marketDataRetrieval.py | amertx/Monte-Carlo-Simulation | 6c3a616bc67e668d80a73247ca279e10f6d46cd5 | [
"MIT"
] | null | null | null | #Prediction model using an instance of the Monte Carlo simulation and Brownian Motion equation
#import of libraries
import numpy as np
import pandas as pd
from pandas_datareader import data as wb
import matplotlib.pyplot as plt
from scipy.stats import norm
#ticker selection
| 29.116883 | 118 | 0.711864 |
98f43fcd4c7844a9b69d2baa890a95f4841f18e8 | 31,716 | py | Python | HelloDeepSpeed/train_bert_ds.py | mrwyattii/DeepSpeedExamples | 6bd444a7c62e9d7d320dd4c1e1142062f50c861d | [
"MIT"
] | null | null | null | HelloDeepSpeed/train_bert_ds.py | mrwyattii/DeepSpeedExamples | 6bd444a7c62e9d7d320dd4c1e1142062f50c861d | [
"MIT"
] | null | null | null | HelloDeepSpeed/train_bert_ds.py | mrwyattii/DeepSpeedExamples | 6bd444a7c62e9d7d320dd4c1e1142062f50c861d | [
"MIT"
] | null | null | null | """
Modified version of train_bert.py that adds DeepSpeed
"""
import os
import datetime
import json
import pathlib
import re
import string
from functools import partial
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, TypeVar, Union
import random
import datasets
import fire
import logging
impo... | 36.836237 | 95 | 0.576334 |
98f5a9225473ea31a925278ee4add1b0f458f788 | 825 | py | Python | programming/leetcode/linkedLists/PalindromeLinkedList/PalindromeLinkedList.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:42:58.000Z | 2021-01-03T06:42:58.000Z | programming/leetcode/linkedLists/PalindromeLinkedList/PalindromeLinkedList.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | null | null | null | programming/leetcode/linkedLists/PalindromeLinkedList/PalindromeLinkedList.py | vamsitallapudi/Coderefer-Python-Projects | a7acc682251661e296c64533f4a85d47e6eedda2 | [
"Apache-2.0"
] | null | null | null | # Given a singly linked list, determine if it is a palindrome.
# Definition for singly-linked list.
| 22.916667 | 62 | 0.530909 |
98f70d5ddc8fc406905d54058613214bd95d62ce | 290 | py | Python | __init__.py | CloudCIX/rolly | 8fafd655cb82881ae2cf75a475904cddc39e2f9a | [
"Apache-2.0"
] | 6 | 2019-12-09T16:13:21.000Z | 2020-07-16T11:42:33.000Z | __init__.py | CloudCIX/rolly | 8fafd655cb82881ae2cf75a475904cddc39e2f9a | [
"Apache-2.0"
] | null | null | null | __init__.py | CloudCIX/rolly | 8fafd655cb82881ae2cf75a475904cddc39e2f9a | [
"Apache-2.0"
] | 1 | 2021-01-02T09:44:39.000Z | 2021-01-02T09:44:39.000Z | """
Rocky is a CLI based provisioning and management tool for CloudCIX Cloud software.
Rocky is designed to operate in an out of band (OOB) network, serarated from other CloudCIX networks.
Rocky's purpose is to facilitate monitoring, testing, debug and recovery
"""
__version__ = '0.3.5'
| 32.222222 | 101 | 0.772414 |
98f808b42f55c190413c10c0ee75bee408ae97c6 | 1,671 | py | Python | calculator.py | harshitbansal373/Python-Games | 4e879b0a97b4b420ed6d440cd2d6a0332a2109b7 | [
"MIT"
] | null | null | null | calculator.py | harshitbansal373/Python-Games | 4e879b0a97b4b420ed6d440cd2d6a0332a2109b7 | [
"MIT"
] | null | null | null | calculator.py | harshitbansal373/Python-Games | 4e879b0a97b4b420ed6d440cd2d6a0332a2109b7 | [
"MIT"
] | null | null | null | from tkinter import *
import time
root=Tk()
root.title('Calculator')
root.config(bg='wheat')
s=''
text=StringVar()
f=Frame(root,bg='#dcdde1')
e=Entry(f,textvariable=text,bg='#f5f6fa',fg='#353b48',font='roboto 34 bold',justify='right',relief=RAISED)
e.pack(side=LEFT,padx=10,pady=10,expand=YES,fill=BOTH)
f.pack(side=TOP... | 25.318182 | 125 | 0.668462 |
98f8ea06315deb6bd9599f36bf3f99bf2965db61 | 8,280 | py | Python | src/Main.py | OlavH96/Master | f98476063e579b7b2a80b81a2c0ca4005f5fce80 | [
"MIT"
] | null | null | null | src/Main.py | OlavH96/Master | f98476063e579b7b2a80b81a2c0ca4005f5fce80 | [
"MIT"
] | null | null | null | src/Main.py | OlavH96/Master | f98476063e579b7b2a80b81a2c0ca4005f5fce80 | [
"MIT"
] | null | null | null | import glob
import os
import keras
import tensorflow as tf
from keras.models import load_model
from keras.callbacks import ModelCheckpoint
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import src.util.Files as Files
from src.util.ImageLoader import load_images_generator, resize_image, load... | 35.844156 | 139 | 0.620411 |
98f921edc0f4676c7070bf0e769ce5e1dab739bb | 1,353 | py | Python | daproli/manipulation.py | ermshaua/daproli | c1f7aeec431d9c60ae06eeac23455c1a03bc82cf | [
"BSD-3-Clause"
] | null | null | null | daproli/manipulation.py | ermshaua/daproli | c1f7aeec431d9c60ae06eeac23455c1a03bc82cf | [
"BSD-3-Clause"
] | null | null | null | daproli/manipulation.py | ermshaua/daproli | c1f7aeec431d9c60ae06eeac23455c1a03bc82cf | [
"BSD-3-Clause"
] | null | null | null | from .utils import _get_return_type
def windowed(data, size, step=1, ret_type=None):
'''
dp.windowed applies a window function to a collection of data items.
Parameters
-----------
:param data: an iterable collection of data
:param size: the window size
:param step: the window step
:p... | 30.066667 | 81 | 0.610495 |
98fc678951f86f4c4317fc775c6ba763f66da302 | 8,717 | py | Python | ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py | gcxtx/ambari | 133d9c4661b21182482c25f96c3f0bf0a9740a9f | [
"Apache-2.0"
] | 1 | 2021-05-06T06:24:04.000Z | 2021-05-06T06:24:04.000Z | ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py | gcxtx/ambari | 133d9c4661b21182482c25f96c3f0bf0a9740a9f | [
"Apache-2.0"
] | null | null | null | ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py | gcxtx/ambari | 133d9c4661b21182482c25f96c3f0bf0a9740a9f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 46.367021 | 141 | 0.494207 |
98fd965b02157810b02af85a0eee51f0f9a9f9e1 | 5,040 | py | Python | Udacity P3 Additional Files/model.py | sayeayed/Udacity-Project4 | da39d0013d35d90818f9aa24ef097e185e705489 | [
"MIT"
] | null | null | null | Udacity P3 Additional Files/model.py | sayeayed/Udacity-Project4 | da39d0013d35d90818f9aa24ef097e185e705489 | [
"MIT"
] | null | null | null | Udacity P3 Additional Files/model.py | sayeayed/Udacity-Project4 | da39d0013d35d90818f9aa24ef097e185e705489 | [
"MIT"
] | null | null | null | import os
import csv
import numpy as np
from sklearn.utils import shuffle
## Read in frame data
samples = []
with open('/../opt/carnd_p3/data/driving_log.csv') as csvfile: #open the log file
reader = csv.reader(csvfile) #as a readable csv
for line in reader:
samples.append(line) #add each line of th... | 48.461538 | 222 | 0.709127 |
98fe28b6ed135c40a04274c069f20df97e941299 | 2,357 | py | Python | utils/wavelengthfit_prim.py | GeminiDRSoftware/GHOSTDR | 79cd1ac81a7458e06668d6dac51fc6f9c9c61b31 | [
"BSD-3-Clause"
] | 1 | 2019-09-05T15:29:25.000Z | 2019-09-05T15:29:25.000Z | utils/wavelengthfit_prim.py | GeminiDRSoftware/GHOSTDR | 79cd1ac81a7458e06668d6dac51fc6f9c9c61b31 | [
"BSD-3-Clause"
] | null | null | null | utils/wavelengthfit_prim.py | GeminiDRSoftware/GHOSTDR | 79cd1ac81a7458e06668d6dac51fc6f9c9c61b31 | [
"BSD-3-Clause"
] | 2 | 2017-10-10T23:23:53.000Z | 2022-02-15T23:28:22.000Z | #!/usr/bin/env python3
""" A script containing the basic principles of the extraction primitive inner
workings"""
from __future__ import division, print_function
from ghostdr import polyfit
import numpy as pn
# Firstly, let's find all the needed files
fitsdir='/Users/mireland/data/ghost/cal_frames/'
#Define the f... | 35.712121 | 107 | 0.801018 |
98ff5d19bcbfb3d13ae61a0ad4df7649e741ec52 | 1,506 | py | Python | time_management/test/kronos_test.py | AyushRawal/time-management | a8876f7b681da837c41f17cf896eaa895017f17f | [
"MIT"
] | 1 | 2021-11-15T19:35:51.000Z | 2021-11-15T19:35:51.000Z | time_management/test/kronos_test.py | AyushRawal/time-management | a8876f7b681da837c41f17cf896eaa895017f17f | [
"MIT"
] | null | null | null | time_management/test/kronos_test.py | AyushRawal/time-management | a8876f7b681da837c41f17cf896eaa895017f17f | [
"MIT"
] | null | null | null | import unittest
import datetime
import kronos
string_format_time = "%Y-%m-%d %H:%M:%S"
date_time_str = "2020-07-19 18:14:21"
| 41.833333 | 83 | 0.717131 |
98ffa0f6e3c8edf444c1fa0391cb1792a90df5ec | 1,368 | py | Python | mfc/mfc.py | FuelCellUAV/FC_datalogger | 1b4b4fecb6a842f3ba685115db01a50cca7596c7 | [
"CC0-1.0"
] | null | null | null | mfc/mfc.py | FuelCellUAV/FC_datalogger | 1b4b4fecb6a842f3ba685115db01a50cca7596c7 | [
"CC0-1.0"
] | null | null | null | mfc/mfc.py | FuelCellUAV/FC_datalogger | 1b4b4fecb6a842f3ba685115db01a50cca7596c7 | [
"CC0-1.0"
] | null | null | null | ##!/usr/bin/env python3
# Mass Flow Controller Arduino driver
# Copyright (C) 2015 Simon Howroyd, Jason James
#
# 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 3 o... | 32.571429 | 101 | 0.638889 |
c70208d0f7ec90b8fef96ebe7d673c28540df5bc | 2,558 | py | Python | odm/dialects/postgresql/green.py | quantmind/pulsar-odm | 5955c20beca0a89270c2b390335838deb7d5915e | [
"BSD-3-Clause"
] | 16 | 2015-02-17T22:23:48.000Z | 2020-08-08T09:35:53.000Z | odm/dialects/postgresql/green.py | quantmind/pulsar-odm | 5955c20beca0a89270c2b390335838deb7d5915e | [
"BSD-3-Clause"
] | 11 | 2015-02-25T11:37:09.000Z | 2016-03-04T12:08:11.000Z | odm/dialects/postgresql/green.py | quantmind/pulsar-odm | 5955c20beca0a89270c2b390335838deb7d5915e | [
"BSD-3-Clause"
] | 3 | 2017-02-27T10:24:31.000Z | 2020-10-08T05:43:15.000Z | from asyncio import Future
from greenlet import getcurrent
import psycopg2
from psycopg2 import * # noqa
from psycopg2 import extensions, OperationalError
__version__ = psycopg2.__version__
def psycopg2_wait_callback(conn):
"""A wait callback to allow greenlet to work with Psycopg.
The caller must be from... | 29.744186 | 76 | 0.67631 |
c70375d862917fab136e0bc4321aa240c2c6c44e | 27,984 | py | Python | test/test_replica_set_connection.py | h4ck3rm1k3/mongo-python-driver | dfaadd53e86a62c72ca8a7564fdacb30cd0ac01c | [
"Apache-2.0"
] | 1 | 2019-04-27T20:15:11.000Z | 2019-04-27T20:15:11.000Z | test/test_replica_set_connection.py | h4ck3rm1k3/mongo-python-driver | dfaadd53e86a62c72ca8a7564fdacb30cd0ac01c | [
"Apache-2.0"
] | null | null | null | test/test_replica_set_connection.py | h4ck3rm1k3/mongo-python-driver | dfaadd53e86a62c72ca8a7564fdacb30cd0ac01c | [
"Apache-2.0"
] | null | null | null | # Copyright 2011-2012 10gen, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 36.966975 | 85 | 0.611885 |
c703e56a113105edf215384785217acba5d2eb75 | 2,177 | py | Python | jqi/cmd.py | jan-g/jqi | f304f9fda33ac9b9eae98848d2a64acbe0893131 | [
"CC-BY-3.0",
"Apache-2.0"
] | 3 | 2020-04-15T13:40:59.000Z | 2021-06-30T10:09:33.000Z | jqi/cmd.py | jan-g/jqi | f304f9fda33ac9b9eae98848d2a64acbe0893131 | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | jqi/cmd.py | jan-g/jqi | f304f9fda33ac9b9eae98848d2a64acbe0893131 | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | import argparse_helper as argparse
import config_dir
import sys
from .editor import Editor
if __name__ == '__main__':
main("-f", "foo", "/tmp/x")
| 31.550725 | 109 | 0.601746 |
c704254fb8b8187007babe4836f7f7b5682b3b65 | 888 | py | Python | setup.py | ASKBOT/python-import-utils | 9cc317cc2a42dd46d41d53e8209203ccfe528c11 | [
"BSD-2-Clause"
] | 1 | 2015-07-19T10:36:42.000Z | 2015-07-19T10:36:42.000Z | setup.py | ASKBOT/python-import-utils | 9cc317cc2a42dd46d41d53e8209203ccfe528c11 | [
"BSD-2-Clause"
] | null | null | null | setup.py | ASKBOT/python-import-utils | 9cc317cc2a42dd46d41d53e8209203ccfe528c11 | [
"BSD-2-Clause"
] | null | null | null | import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import import_utils
setup(
name = "import-utils",
version = import_utils.__version__,
description = 'A module that supports simple programmatic module imports',
packages = find_packages(),
author = 'Evgeny.Fadeev... | 30.62069 | 78 | 0.647523 |
c704a4dc1d06546eaf240da05c092e6fa0ab7b9d | 1,704 | py | Python | visual_dynamics/policies/random_offset_camera_target_policy.py | alexlee-gk/visual_dynamics | 90227bb0d0aebb1989117b5c25ca311655ca7cc7 | [
"MIT"
] | 30 | 2017-04-05T12:55:09.000Z | 2022-03-14T14:31:31.000Z | visual_dynamics/policies/random_offset_camera_target_policy.py | alexlee-gk/visual_dynamics | 90227bb0d0aebb1989117b5c25ca311655ca7cc7 | [
"MIT"
] | 1 | 2017-06-19T02:39:03.000Z | 2017-06-19T02:39:03.000Z | visual_dynamics/policies/random_offset_camera_target_policy.py | alexlee-gk/visual_dynamics | 90227bb0d0aebb1989117b5c25ca311655ca7cc7 | [
"MIT"
] | 13 | 2017-04-05T12:55:09.000Z | 2021-03-16T01:59:12.000Z | import numpy as np
from visual_dynamics.policies import CameraTargetPolicy
| 47.333333 | 112 | 0.629695 |
c70662701931e0df30976bfadaca0ac6c230e738 | 1,401 | py | Python | Day3/Day3.py | ErAgOn-AmAnSiRoHi/Advent-of-Code-2021 | 0f0d59483d93f6fce4aa06fb36101aea08b02fc3 | [
"MIT"
] | null | null | null | Day3/Day3.py | ErAgOn-AmAnSiRoHi/Advent-of-Code-2021 | 0f0d59483d93f6fce4aa06fb36101aea08b02fc3 | [
"MIT"
] | null | null | null | Day3/Day3.py | ErAgOn-AmAnSiRoHi/Advent-of-Code-2021 | 0f0d59483d93f6fce4aa06fb36101aea08b02fc3 | [
"MIT"
] | null | null | null | with open("inputday3.txt") as f:
data = [x for x in f.read().split()]
gamma = ""
epsilon = ""
for b in range(0, len(data[0])):
one = 0
zero = 0
for c in range(0, len(data)):
if data[c][b] == '0':
zero += 1
else:
one += 1
if zero > one:
... | 18.932432 | 41 | 0.417559 |
c706f98a7ed12b68d12a292394d4a9f058dbea40 | 12,449 | py | Python | keras2pytorch_dataset.py | MPCAICDM/MPCA | c996435a0578ea4160f934bc01041c2ef23468f3 | [
"MIT"
] | null | null | null | keras2pytorch_dataset.py | MPCAICDM/MPCA | c996435a0578ea4160f934bc01041c2ef23468f3 | [
"MIT"
] | null | null | null | keras2pytorch_dataset.py | MPCAICDM/MPCA | c996435a0578ea4160f934bc01041c2ef23468f3 | [
"MIT"
] | null | null | null | from __future__ import print_function
from PIL import Image
import os
import os.path
import numpy as np
import sys
from misc import AverageMeter
from eval_accuracy import simple_accuracy
if sys.version_info[0] == 2:
import cPickle as pickle
else:
import pickle
import torch.utils.data as data
import torch
from ... | 34.969101 | 139 | 0.618684 |
c7075ad8e2a1229e14b617586ca8b05a9f86dd2f | 1,920 | py | Python | mir/tools/mir_repo_utils.py | fenrir-z/ymir-cmd | 6fbffd3c1ff5dd1c9a44b55de411523b50567661 | [
"Apache-2.0"
] | 1 | 2022-01-12T03:12:47.000Z | 2022-01-12T03:12:47.000Z | mir/tools/mir_repo_utils.py | fenrir-z/ymir-cmd | 6fbffd3c1ff5dd1c9a44b55de411523b50567661 | [
"Apache-2.0"
] | null | null | null | mir/tools/mir_repo_utils.py | fenrir-z/ymir-cmd | 6fbffd3c1ff5dd1c9a44b55de411523b50567661 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import os
from typing import Optional
from mir import scm
from mir.tools import mir_storage
| 32.542373 | 110 | 0.655729 |
c70864a5d3c270e78a0bc9da8738245a6e27664f | 3,624 | py | Python | utils/edit_utils.py | ermekaitygulov/STIT | 93dca8d589b555fa99a5c5438a8517a52d8898c3 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 6 | 2022-03-11T23:42:12.000Z | 2022-03-28T09:39:25.000Z | utils/edit_utils.py | bycloudai/STIT-Windows | cadb2a01457bfd1c90bcd8d220587b48e1c2327a | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | utils/edit_utils.py | bycloudai/STIT-Windows | cadb2a01457bfd1c90bcd8d220587b48e1c2327a | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | import argparse
import math
import os
import pickle
from typing import List
import cv2
import numpy as np
import torch
from PIL import Image, ImageDraw, ImageFont
import configs.paths_config
from configs import paths_config
from training.networks import SynthesisBlock
| 32.648649 | 117 | 0.683499 |
c7087550ae8556b1933bc7961a3ed0e9783aaa07 | 6,845 | py | Python | conll_df/conll_df.py | interrogator/conll-df | 35611f295e3f8230f574142151e3a19098edfdca | [
"MIT"
] | 27 | 2017-03-17T15:39:16.000Z | 2021-11-23T09:10:10.000Z | conll_df/conll_df.py | interrogator/conll-df | 35611f295e3f8230f574142151e3a19098edfdca | [
"MIT"
] | 2 | 2017-11-21T05:33:04.000Z | 2018-09-22T13:05:06.000Z | conll_df/conll_df.py | interrogator/conll-df | 35611f295e3f8230f574142151e3a19098edfdca | [
"MIT"
] | 8 | 2017-03-17T14:59:34.000Z | 2022-02-25T19:09:27.000Z | import pandas as pd
# UD 1.0
CONLL_COLUMNS = ['i', 'w', 'l', 'p', 'n', 'm', 'g', 'f', 'd', 'c']
# UD 2.0
CONLL_COLUMNS_V2 = ['i', 'w', 'l', 'x', 'p', 'm', 'g', 'f', 'e', 'o']
# possible morphological attributes
MORPH_ATTS = ['type',
'animacy',
#'gender',
'number'
... | 30.154185 | 100 | 0.512491 |
c708da26fb5e59e5b2a82edc62ad3d6177cc9df2 | 2,491 | py | Python | scripts/postgres_to_lmdb_bars_60m.py | alexanu/atpy | 3f4b5cfe7de7633ef053d2feaddae421806a9799 | [
"MIT"
] | 24 | 2018-03-22T06:22:11.000Z | 2022-03-14T09:04:44.000Z | scripts/postgres_to_lmdb_bars_60m.py | alexanu/atpy | 3f4b5cfe7de7633ef053d2feaddae421806a9799 | [
"MIT"
] | null | null | null | scripts/postgres_to_lmdb_bars_60m.py | alexanu/atpy | 3f4b5cfe7de7633ef053d2feaddae421806a9799 | [
"MIT"
] | 9 | 2018-03-22T06:22:11.000Z | 2020-09-19T16:47:13.000Z | #!/bin/python3
import argparse
import datetime
import functools
import logging
import os
import psycopg2
from dateutil.relativedelta import relativedelta
from atpy.data.cache.lmdb_cache import *
from atpy.data.cache.postgres_cache import BarsInPeriodProvider
from atpy.data.cache.postgres_cache import request_adjustm... | 43.701754 | 158 | 0.733842 |