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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4d0e95505acc0778edf0c0cfa6593332a693d19f | 7,813 | py | Python | Common/EDACommon.py | MlGroupsWJ/Customer-Satisfication | bae0d3691613f078c88f926fee8d1d0684cb6f88 | [
"Apache-2.0"
] | null | null | null | Common/EDACommon.py | MlGroupsWJ/Customer-Satisfication | bae0d3691613f078c88f926fee8d1d0684cb6f88 | [
"Apache-2.0"
] | null | null | null | Common/EDACommon.py | MlGroupsWJ/Customer-Satisfication | bae0d3691613f078c88f926fee8d1d0684cb6f88 | [
"Apache-2.0"
] | null | null | null | # -*- coding:UTF-8 -*-
import pandas as pd
from minepy import MINE
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.ensemble import ExtraTreesClassifier
import xgboost as xgb
import operator
from sklearn.utils import shuffle
from Common.ModelCommon import ModelCV
from sklearn import svm
import numpy a... | 32.419087 | 114 | 0.64879 |
4d1789b7a180d686bba726991622611824a7655a | 11,166 | py | Python | spekev2_verification_testsuite/test_drm_system_specific_system_id_elements.py | amphied/speke-reference-server | 7b589a333fb3c619c6f7e53483d43de9a588f7b7 | [
"Apache-2.0"
] | null | null | null | spekev2_verification_testsuite/test_drm_system_specific_system_id_elements.py | amphied/speke-reference-server | 7b589a333fb3c619c6f7e53483d43de9a588f7b7 | [
"Apache-2.0"
] | null | null | null | spekev2_verification_testsuite/test_drm_system_specific_system_id_elements.py | amphied/speke-reference-server | 7b589a333fb3c619c6f7e53483d43de9a588f7b7 | [
"Apache-2.0"
] | null | null | null | import xml.etree.ElementTree as ET
import pytest
from .helpers import utils
def test_widevine_pssh_cpd_no_rotation(widevine_pssh_cpd_response):
root_cpix = ET.fromstring(widevine_pssh_cpd_response)
drm_system_list_element = root_cpix.find('./{urn:dashif:org:cpix}DRMSystemList')
drm_system_elements = dr... | 57.854922 | 117 | 0.732581 |
4d1842ad937506e0139c4548364f4972688cf066 | 606 | py | Python | lgtv_rs232/commands/power.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | lgtv_rs232/commands/power.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | lgtv_rs232/commands/power.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | from enum import Enum
| 20.2 | 81 | 0.671617 |
4d188e480cc959a97285226a6ee540747e54cbfc | 3,661 | py | Python | aioruuvitag/scanner_windows.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | 7 | 2019-11-08T07:30:05.000Z | 2022-02-20T21:58:44.000Z | aioruuvitag/scanner_windows.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | null | null | null | aioruuvitag/scanner_windows.py | hulttis/ruuvigw | 914eb657e3f2792cecf6848dfa7607ad45f17ab4 | [
"MIT"
] | 1 | 2021-06-19T16:52:55.000Z | 2021-06-19T16:52:55.000Z | # -*- coding: utf-8 -*-
"""
Perform Bluetooth LE Scan.
Based on https://github.com/hbldh/bleak/blob/master/bleak/backends/dotnet/discovery.py by
Created by hbldh <henrik.blidh@nedomkull.com>
"""
import logging
logger = logging.getLogger('bleak_scanner')
import asyncio
import queue
from bleak.backends.device import ... | 34.537736 | 99 | 0.571429 |
4d1921977ff8cb85df1411e9a16a739fa19af1b7 | 2,354 | py | Python | GUI/app.py | YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles | dbdfb1157c6448720bcf18135789c91c0940bdb4 | [
"MIT"
] | 1 | 2020-09-09T13:59:34.000Z | 2020-09-09T13:59:34.000Z | GUI/app.py | YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles | dbdfb1157c6448720bcf18135789c91c0940bdb4 | [
"MIT"
] | 1 | 2020-09-10T05:28:02.000Z | 2020-09-10T05:28:02.000Z | GUI/app.py | YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles | dbdfb1157c6448720bcf18135789c91c0940bdb4 | [
"MIT"
] | 1 | 2020-09-09T13:59:37.000Z | 2020-09-09T13:59:37.000Z | import tkinter as tk
from PIL import Image, ImageTk
import numpy as np
import os
import time
app=MyAPP()
| 35.134328 | 98 | 0.621071 |
4d193b99e7c955296baf206f87610d82e0c31d15 | 1,568 | py | Python | lib/surface/api_gateway/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/surface/api_gateway/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/surface/api_gateway/__init__.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. 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
#
# Unless requir... | 34.844444 | 78 | 0.769133 |
4d19e5d928407169ece619db02a32249f6803443 | 1,350 | py | Python | 028_dict.py | MikePolyakov/python_book | 497681e8a167918a19ae737960c9c86ebffa9e91 | [
"MIT"
] | null | null | null | 028_dict.py | MikePolyakov/python_book | 497681e8a167918a19ae737960c9c86ebffa9e91 | [
"MIT"
] | null | null | null | 028_dict.py | MikePolyakov/python_book | 497681e8a167918a19ae737960c9c86ebffa9e91 | [
"MIT"
] | null | null | null | countries = {'Russia' : 'Europe', 'Germany' : 'Europe', 'Australia' : 'Australia'}
sqrs = {}
sqrs[1] = 1
sqrs[2] = 4
sqrs[10] = 100
print(sqrs)
myDict = dict([['key1', 'value1'], ('key2', 'value2')])
print(myDict)
phones = {'police' : 102, 'ambulance' : 103, 'firefighters' : 101}
print(phones['police'])
phones = {'... | 28.723404 | 82 | 0.625185 |
4d1a042ce335839faa6fa2c218bbf1f71877225d | 1,203 | py | Python | solutions/10. Regular Expression Matching.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | solutions/10. Regular Expression Matching.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | solutions/10. Regular Expression Matching.py | JacopoPan/leetcode-top100-liked-questions | 03dc05f087d05805d54b7585ce740338f3128833 | [
"MIT"
] | null | null | null | """
Runtime: 47 ms, faster than 89.57% of Python3 online submissions for Regular Expression Matching.
Memory Usage: 15.2 MB, less than 6.45% of Python3 online submissions for Regular Expression Matching.
"""
from typing import List
from typing import Optional
if __name__ == "__main__":
main()
| 29.341463 | 101 | 0.502078 |
4d1aec75f55686cedd085e55848b278b516e591c | 166 | py | Python | Mundo2/Desafio019.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | Mundo2/Desafio019.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | Mundo2/Desafio019.py | Marcoakira/Desafios_Python_do_Curso_Guanabara | c49b774148a2232f8f3c21b83e3dc97610480757 | [
"MIT"
] | null | null | null | #Desafio019 ( aplicao randomica para determinar que aluno vai no quadro.
import random
al01 = str('joao'),('maria'),('pdro'),('paula')
print(random.choice(al01))
| 27.666667 | 74 | 0.722892 |
4d1b446c03d9bd0f9bcfdda12df328d24d3b6854 | 3,807 | py | Python | jdll-tutorial/ansible/library/book.py | Spredzy/jdll-ansible | 767ab383c9efb676c3d9923159172f42d221fd2f | [
"Apache-2.0"
] | null | null | null | jdll-tutorial/ansible/library/book.py | Spredzy/jdll-ansible | 767ab383c9efb676c3d9923159172f42d221fd2f | [
"Apache-2.0"
] | null | null | null | jdll-tutorial/ansible/library/book.py | Spredzy/jdll-ansible | 767ab383c9efb676c3d9923159172f42d221fd2f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from ansible.module_utils.basic import *
from jdll import API
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
'version': '1.0'}
DOCUMENTATION = '''
---
module: book
author: "Yanis Guenane (@Spredzy)"
version_added: "2.3"
short_descript... | 25.38 | 127 | 0.561334 |
4d1d08adbb5e362ba1318dc99aee5c3a36e6c489 | 2,679 | py | Python | main.py | CyberPunk-Josh/Lab-app | aa3a5cf77a176bde3156d0f69a1f4018a503ca6f | [
"MIT"
] | null | null | null | main.py | CyberPunk-Josh/Lab-app | aa3a5cf77a176bde3156d0f69a1f4018a503ca6f | [
"MIT"
] | null | null | null | main.py | CyberPunk-Josh/Lab-app | aa3a5cf77a176bde3156d0f69a1f4018a503ca6f | [
"MIT"
] | null | null | null | from menu_design import *
from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtCore import Qt, QEasingCurve
# Local files
from reologicalOne.reological import RModel
from reologicalTwo.reologicalDB import RModelDB
from density.density import Density
import sys
# class for menu
if __name__ == "... | 30.793103 | 95 | 0.655842 |
4d1e11fe07c9e17482225346b3bf314a5354caa6 | 360 | py | Python | create_table_from_word/table_columns.py | yongli82/CodeGenerator | 4ca9255c3c4c5392e45815fd20f605ccbbfd2325 | [
"MIT"
] | null | null | null | create_table_from_word/table_columns.py | yongli82/CodeGenerator | 4ca9255c3c4c5392e45815fd20f605ccbbfd2325 | [
"MIT"
] | null | null | null | create_table_from_word/table_columns.py | yongli82/CodeGenerator | 4ca9255c3c4c5392e45815fd20f605ccbbfd2325 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import ExcelUtil
from jinja2 import Template
import re
| 18.947368 | 83 | 0.730556 |
4d1e4f9713b73667b272d5c41483d8a89a98e904 | 1,024 | py | Python | web/detector/dog_detector.py | PaulNWms/dog-project | 4d70bcd39aa3ea0a8744efc42c53f031fbf63b64 | [
"MIT"
] | null | null | null | web/detector/dog_detector.py | PaulNWms/dog-project | 4d70bcd39aa3ea0a8744efc42c53f031fbf63b64 | [
"MIT"
] | 13 | 2020-01-28T22:15:35.000Z | 2022-03-11T23:57:35.000Z | web_app/detector/dog_detector.py | Brijesh-Chandra/Dog-Breed-Identifier | b3c918ad148b072d49b358629cba146079bf3dc3 | [
"MIT"
] | null | null | null | from keras.preprocessing import image
import keras.applications.resnet50 as resnet50
import numpy as np
app = None
| 29.257143 | 85 | 0.723633 |
4d1e62b7359e72d9ef996cfa45b2930243bf6b7d | 1,124 | py | Python | camp_real_engine/plugins/regexp.py | vassik/camp-realize | be65af18dd6deb800695988700730d2c3fb279cf | [
"MIT"
] | null | null | null | camp_real_engine/plugins/regexp.py | vassik/camp-realize | be65af18dd6deb800695988700730d2c3fb279cf | [
"MIT"
] | null | null | null | camp_real_engine/plugins/regexp.py | vassik/camp-realize | be65af18dd6deb800695988700730d2c3fb279cf | [
"MIT"
] | null | null | null | import re
from camp_real_engine.abstract.abc_subst_realizer import ABC_subst_realizer
from camp_real_engine.model.realization import RegExpFileSubstNode
from camp_real_engine.dao.daos import FileContentCommiter
from camp_real_engine.abstract.abc_real_data_model import ABCSubstitutionNode
| 34.060606 | 97 | 0.825623 |
4d20e11d53db6d88edbeea07f1facb38a4748d8a | 2,131 | py | Python | mouse_burrows/scripts/show_info.py | david-zwicker/cv-mouse-burrows | 906476f49ff9711cd672feca5f70efedaab82b01 | [
"BSD-3-Clause"
] | 1 | 2016-03-06T05:16:38.000Z | 2016-03-06T05:16:38.000Z | mouse_burrows/scripts/show_info.py | david-zwicker/cv-mouse-burrows | 906476f49ff9711cd672feca5f70efedaab82b01 | [
"BSD-3-Clause"
] | null | null | null | mouse_burrows/scripts/show_info.py | david-zwicker/cv-mouse-burrows | 906476f49ff9711cd672feca5f70efedaab82b01 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python2
'''
Created on Sep 21, 2016
@author: David Zwicker <dzwicker@seas.harvard.edu>
'''
from __future__ import division
import argparse
import sys
import os
# add the root of the video-analysis project to the path
script_path = os.path.split(os.path.realpath(__file__))[0]
package_path = os.path.ab... | 27.675325 | 78 | 0.6687 |
4d220c47f8915f484fcada1de144cddca671bb25 | 25,729 | py | Python | google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 41.700162 | 171 | 0.653309 |
4d237d356a17f205a24800037a5d0a053ed6c426 | 563 | py | Python | todo/urls.py | fidele000/Ftodo-RestAPI-Django | 8c695503e04a3957920910acb9f1bb823ece4287 | [
"MIT"
] | null | null | null | todo/urls.py | fidele000/Ftodo-RestAPI-Django | 8c695503e04a3957920910acb9f1bb823ece4287 | [
"MIT"
] | null | null | null | todo/urls.py | fidele000/Ftodo-RestAPI-Django | 8c695503e04a3957920910acb9f1bb823ece4287 | [
"MIT"
] | null | null | null | from django.urls import path
from rest_framework import viewsets
from rest_framework import routers
from . import views
from django.urls import include
from rest_framework.routers import DefaultRouter
router=DefaultRouter()
router.register('hello-viewset',views.HelloViewSet,basename='hello-viewset')
router.register('p... | 33.117647 | 76 | 0.801066 |
4d23e4d034125a3f8c2a16ba07229fdc1c90a016 | 257 | py | Python | toontown/estate/DistributedPlantBaseAI.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 99 | 2019-11-02T22:25:00.000Z | 2022-02-03T03:48:00.000Z | toontown/estate/DistributedPlantBaseAI.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 42 | 2019-11-03T05:31:08.000Z | 2022-03-16T22:50:32.000Z | toontown/estate/DistributedPlantBaseAI.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 57 | 2019-11-03T07:47:37.000Z | 2022-03-22T00:41:49.000Z | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
| 42.833333 | 82 | 0.879377 |
4d240f3eb85f0adcecd00489cbe4d3ad31ec57c5 | 27 | py | Python | test.py | justin-th/linux-pasword-protect | feba8712d5bc25c417cb7297aac9c0d23566378e | [
"MIT"
] | null | null | null | test.py | justin-th/linux-pasword-protect | feba8712d5bc25c417cb7297aac9c0d23566378e | [
"MIT"
] | null | null | null | test.py | justin-th/linux-pasword-protect | feba8712d5bc25c417cb7297aac9c0d23566378e | [
"MIT"
] | null | null | null | import os
print(os.curdir) | 9 | 16 | 0.777778 |
4d242ba823cf6de6e20e2768b1f065a06d916125 | 302 | py | Python | setup.py | samuel-spak/thermostate | 906d1e0b79289cd51cde510c797f007674b8bdcd | [
"BSD-3-Clause"
] | 6 | 2020-03-31T14:25:23.000Z | 2022-03-10T14:56:29.000Z | setup.py | samuel-spak/thermostate | 906d1e0b79289cd51cde510c797f007674b8bdcd | [
"BSD-3-Clause"
] | 35 | 2017-01-26T15:31:19.000Z | 2022-03-14T16:32:00.000Z | setup.py | samuel-spak/thermostate | 906d1e0b79289cd51cde510c797f007674b8bdcd | [
"BSD-3-Clause"
] | 15 | 2017-02-08T20:07:38.000Z | 2022-03-14T09:15:35.000Z | from setuptools import setup
from pathlib import Path
from typing import Dict
HERE = Path(__file__).parent
version: Dict[str, str] = {}
version_file = HERE / "src" / "thermostate" / "_version.py"
exec(version_file.read_text(), version)
setup(version=version["__version__"], package_dir={"": "src"})
| 25.166667 | 62 | 0.731788 |
4d242e01b427dcb6b1bf2d2cc3562c29ca378947 | 78,627 | py | Python | fps2c__ - Copy.py | GeorgeLoo/FPS | 775bf173437d2feb09bc91b7f842226a8c752980 | [
"MIT"
] | 1 | 2022-02-21T12:07:42.000Z | 2022-02-21T12:07:42.000Z | fps2c__ - Copy.py | GeorgeLoo/FPS | 775bf173437d2feb09bc91b7f842226a8c752980 | [
"MIT"
] | null | null | null | fps2c__ - Copy.py | GeorgeLoo/FPS | 775bf173437d2feb09bc91b7f842226a8c752980 | [
"MIT"
] | null | null | null |
'''
_
_._ _..._ .-', _.._(`))
'-. ` ' /-._.-' ',/
) \ '.
/ _ _ | \
| a a / |
\ .-. ;
'-('' ).-' ,' ;
'-; | .'
\ \ /
| 7 .__ _... | 31.114761 | 118 | 0.525176 |
4d246a042f4d01726d7da3a16c2ca45068a1a3cb | 2,462 | py | Python | exercises/networking_v2/roles/ansible-network.network-engine/lib/network_engine/plugins/template/__init__.py | rcalvaga/linklight | bb6364272c167c017cb2ee0790015143df29fa19 | [
"MIT"
] | 1 | 2020-03-29T17:35:59.000Z | 2020-03-29T17:35:59.000Z | exercises/networking_v2/roles/ansible-network.network-engine/lib/network_engine/plugins/template/__init__.py | rcalvaga/linklight | bb6364272c167c017cb2ee0790015143df29fa19 | [
"MIT"
] | null | null | null | exercises/networking_v2/roles/ansible-network.network-engine/lib/network_engine/plugins/template/__init__.py | rcalvaga/linklight | bb6364272c167c017cb2ee0790015143df29fa19 | [
"MIT"
] | 1 | 2020-03-30T11:00:47.000Z | 2020-03-30T11:00:47.000Z | # (c) 2018, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import (absolute_import, division, p... | 34.676056 | 92 | 0.620634 |
4d24ec942e343c870cf4c7c64a35ce9e7ec32816 | 748 | py | Python | test/try_closures.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 21 | 2019-10-13T14:11:32.000Z | 2021-12-14T02:42:12.000Z | test/try_closures.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 1 | 2020-01-07T13:14:46.000Z | 2020-01-09T16:58:07.000Z | test/try_closures.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 1 | 2020-08-13T16:17:09.000Z | 2020-08-13T16:17:09.000Z | from Redy.Opt import feature, constexpr
import timeit
print(f1(1)(2))
print(f2(1)(2))
# 3
# 3
# mk closure
print(timeit.timeit("f(1)", globals=dict(f=f1)))
print(timeit.timeit("f(1)", globals=dict(f=f2)))
# 0.15244655999958923
# 0.16590227899905585
f1_ = f1(2)
f2_ = f2(2)
print(timeit.timeit("f(1)", globals=dic... | 15.914894 | 52 | 0.639037 |
4d2521ea6310ee9cc5f131827f5a83488f594d5f | 66 | py | Python | python/testData/refactoring/move/docstringTypes/before/src/b.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/refactoring/move/docstringTypes/before/src/b.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/move/docstringTypes/before/src/b.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def f(x):
'''Does nothing.
:type x: a.C
'''
pass
| 9.428571 | 20 | 0.409091 |
4d2554382ea5d2316a7d1a204e1adf6165ec8877 | 195 | py | Python | datapack/validate.py | emorgan00/EasyDatapacks | 535bf30a23e4e8fa22ff827bc6c223f91a0228ed | [
"MIT"
] | 35 | 2019-06-23T22:35:56.000Z | 2022-02-23T18:09:25.000Z | datapack/validate.py | emorgan00/EasyDatapacks | 535bf30a23e4e8fa22ff827bc6c223f91a0228ed | [
"MIT"
] | 5 | 2019-07-08T04:54:21.000Z | 2022-03-24T12:44:19.000Z | datapack/validate.py | emorgan00/EasyDatapacks | 535bf30a23e4e8fa22ff827bc6c223f91a0228ed | [
"MIT"
] | 5 | 2019-06-24T04:09:15.000Z | 2022-02-22T03:50:41.000Z | # this should accept a command as a string, and raturn a string detailing the issue
# if <command> is not a valid vanilla minecraft command. None otherwise.
| 27.857143 | 83 | 0.753846 |
4d26e4038ffff6b5c711d810347580c7c6e22de3 | 44 | py | Python | Python/Tutorial - 2/strings.py | JC2295/FCC_Tutorial_Projects | 990e1221b2177acb9e4db0264adab518620404a0 | [
"MIT"
] | null | null | null | Python/Tutorial - 2/strings.py | JC2295/FCC_Tutorial_Projects | 990e1221b2177acb9e4db0264adab518620404a0 | [
"MIT"
] | null | null | null | Python/Tutorial - 2/strings.py | JC2295/FCC_Tutorial_Projects | 990e1221b2177acb9e4db0264adab518620404a0 | [
"MIT"
] | null | null | null | print("One")
print("Two")
print("Three")
| 6.285714 | 14 | 0.590909 |
4d272df6572584be280304452391a2a0947eefaa | 4,220 | py | Python | frontend/Two_Dim_System.py | Pugavkomm/NS-analyst | 698af0e94f57b431fd77c17c49d4a23f11d21d3f | [
"MIT"
] | null | null | null | frontend/Two_Dim_System.py | Pugavkomm/NS-analyst | 698af0e94f57b431fd77c17c49d4a23f11d21d3f | [
"MIT"
] | null | null | null | frontend/Two_Dim_System.py | Pugavkomm/NS-analyst | 698af0e94f57b431fd77c17c49d4a23f11d21d3f | [
"MIT"
] | null | null | null | """AI is creating summary for
"""
from frontend import main_window
from PyQt5 import QtWidgets
from frontend import input_system
from PyQt5.QtWidgets import QInputDialog, qApp
from qt_material import apply_stylesheet
style_sheets = ['dark_amber.xml',
'dark_blue.xml',
'dark_cyan.xml',
... | 45.869565 | 119 | 0.667536 |
4d283228992f8ac0459bba73af7effe988be2fc1 | 1,525 | py | Python | get_board_array.py | SuperStormer/minesweeper-bot | b503752ef4f4c1650ea48609dcebf0757d5ad209 | [
"MIT"
] | null | null | null | get_board_array.py | SuperStormer/minesweeper-bot | b503752ef4f4c1650ea48609dcebf0757d5ad209 | [
"MIT"
] | 2 | 2022-01-13T00:50:34.000Z | 2022-03-11T23:26:44.000Z | get_board_array.py | SuperStormer/minesweeper-bot | b503752ef4f4c1650ea48609dcebf0757d5ad209 | [
"MIT"
] | null | null | null | import mss
import numpy as np
from PIL import Image
from config import BOARD_HEIGHT, BOARD_WIDTH
CELL_SIZE = 22
BOARD_X = 14
BOARD_Y = 111
COLOR_CODES = {
(0, 0, 255): 1,
(0, 123, 0): 2,
(255, 0, 0): 3,
(0, 0, 123): 4,
(123, 0, 0): 5,
(0, 123, 123): 6,
(0, 0, 0): 7,
(123, 123, 123): 8,
(189, 189, 189): 0 #uno... | 32.446809 | 123 | 0.662951 |
4d293734f2f02cf252d19002878c81331dcad9c7 | 963 | py | Python | Challenges/13/tests/test_stack_and_queue_brackets.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/13/tests/test_stack_and_queue_brackets.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/13/tests/test_stack_and_queue_brackets.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | import pytest
from stack_and_queue_brackets.stack_and_queue_brackets import validate_brackets
| 20.0625 | 79 | 0.688474 |
4d2a55ccfddd9dd9215b0c629a81b67391bf257c | 360 | py | Python | tts/symbols.py | entn-at/tn2-wg | 00f59da91a1e23020b20210ea62d838e20c049f2 | [
"BSD-3-Clause"
] | 38 | 2019-07-03T21:40:57.000Z | 2021-11-30T15:59:20.000Z | tts/symbols.py | entn-at/tn2-wg | 00f59da91a1e23020b20210ea62d838e20c049f2 | [
"BSD-3-Clause"
] | 4 | 2019-08-20T12:19:10.000Z | 2021-07-29T11:20:59.000Z | tts/symbols.py | entn-at/tn2-wg | 00f59da91a1e23020b20210ea62d838e20c049f2 | [
"BSD-3-Clause"
] | 11 | 2019-07-04T09:17:27.000Z | 2021-11-14T21:05:04.000Z | """ from https://github.com/keithito/tacotron """
_pad = '_'
#_punctuation = '!\'(),.:;? '
_punctuation = '!",.:;? '
_special = '-'
#_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
_letters = ""
symbols = [_pad] + list(_special) + list(_punctuation) + list(_letters)
| 32.727273 | 79 | 0.711111 |
4d2be9274f40cf5428dff78da1531be1cba5e3f0 | 28 | py | Python | tests/fixtures/pkg1/pkg2/pkg3/pkg4/pkg5/__init__.py | shashankrnr32/pytkdocs | bf04764f1608970643932329c9f6c8c63a0c5632 | [
"0BSD"
] | 21 | 2021-02-20T05:20:52.000Z | 2022-03-04T20:57:16.000Z | tests/fixtures/pkg1/pkg2/pkg3/pkg4/pkg5/__init__.py | shashankrnr32/pytkdocs | bf04764f1608970643932329c9f6c8c63a0c5632 | [
"0BSD"
] | 84 | 2020-03-22T15:29:56.000Z | 2021-02-09T21:47:11.000Z | tests/fixtures/pkg1/pkg2/pkg3/pkg4/pkg5/__init__.py | shashankrnr32/pytkdocs | bf04764f1608970643932329c9f6c8c63a0c5632 | [
"0BSD"
] | 21 | 2020-04-09T13:56:23.000Z | 2021-01-19T19:18:42.000Z | """Hello from the abyss."""
| 14 | 27 | 0.607143 |
4d2c6196de9f0ffebba719e30abbaf48e28d2d23 | 5,719 | py | Python | test/test_tdodbc.py | Teradata/PyTd | 5e960ed4c380c4f8ae84d582ad779a87adce5ae1 | [
"MIT"
] | 133 | 2015-07-27T22:12:58.000Z | 2021-08-31T05:26:38.000Z | test/test_tdodbc.py | Teradata/PyTd | 5e960ed4c380c4f8ae84d582ad779a87adce5ae1 | [
"MIT"
] | 121 | 2015-07-30T18:03:03.000Z | 2021-08-09T13:46:37.000Z | test/test_tdodbc.py | Teradata/PyTd | 5e960ed4c380c4f8ae84d582ad779a87adce5ae1 | [
"MIT"
] | 57 | 2015-07-27T10:41:08.000Z | 2021-04-26T08:58:57.000Z | # The MIT License (MIT)
#
# Copyright (c) 2015 by Teradata
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | 43.656489 | 79 | 0.616541 |
4d2d2acea9bb79c046b8abea693dc31ff18efd72 | 143 | py | Python | submissions/abc035/a.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/abc035/a.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/abc035/a.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | import sys
input = sys.stdin.readline
w, h = map(int, input().split())
if w / h == 4 / 3:
ans = '4:3'
else:
ans = '16:9'
print(ans)
| 11.916667 | 32 | 0.538462 |
4d2da9056c6d973976290183ad18c7e824e87fbe | 1,029 | py | Python | setup.py | JosiahBradley/mod2win | f3636faea8cce041be2d9933574aa1ccd4b818ac | [
"Apache-2.0"
] | null | null | null | setup.py | JosiahBradley/mod2win | f3636faea8cce041be2d9933574aa1ccd4b818ac | [
"Apache-2.0"
] | null | null | null | setup.py | JosiahBradley/mod2win | f3636faea8cce041be2d9933574aa1ccd4b818ac | [
"Apache-2.0"
] | null | null | null | import setuptools
long_description = ""
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
author='Josiah Bradley',
author_email='JosiahBradley@gmail.com',
name="mod2win",
url="https://github.com/JosiahBradley/mod2win",
version="0.0.1",
entry_points={
... | 31.181818 | 63 | 0.640428 |
4d2f1c615c504ceda8bcf1bd0cf231a9e5310a56 | 4,914 | py | Python | release/stubs.min/Autodesk/Revit/UI/Plumbing.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 182 | 2017-06-27T02:26:15.000Z | 2022-03-30T18:53:43.000Z | release/stubs.min/Autodesk/Revit/UI/Plumbing.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 28 | 2017-06-27T13:38:23.000Z | 2022-03-15T11:19:44.000Z | release/stubs.min/Autodesk/Revit/UI/Plumbing.py | htlcnn/ironpython-stubs | 780d829e2104b2789d5f4d6f32b0ec9f2930ca03 | [
"MIT"
] | 67 | 2017-06-28T09:43:59.000Z | 2022-03-20T21:17:10.000Z | # encoding: utf-8
# module Autodesk.Revit.UI.Plumbing calls itself Plumbing
# from RevitAPIUI,Version=17.0.0.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
| 28.905882 | 215 | 0.71571 |
4d2f795e5817013dda3708c8ac386c1a237e9181 | 240 | py | Python | src/base/apps.py | jhernandez18p/mobyapp | 4add7bd3b3f1e933bbb6941674bf84f4c4462685 | [
"MIT"
] | null | null | null | src/base/apps.py | jhernandez18p/mobyapp | 4add7bd3b3f1e933bbb6941674bf84f4c4462685 | [
"MIT"
] | 7 | 2020-06-05T17:31:06.000Z | 2022-03-11T23:16:34.000Z | src/base/apps.py | jhernandez18p/mobyapp | 4add7bd3b3f1e933bbb6941674bf84f4c4462685 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.db.models.signals import post_migrate
from django.utils.translation import gettext_lazy as _
| 26.666667 | 54 | 0.766667 |
4d31fdb12184ec34b1dcc98d224f9491db93ddd4 | 708 | py | Python | migrations/versions/010_Add_uploader_link_to_upload.py | LCBRU/lbrc_upload | be42fef97b67c1f25329db52ae3a88eb293a1203 | [
"MIT"
] | null | null | null | migrations/versions/010_Add_uploader_link_to_upload.py | LCBRU/lbrc_upload | be42fef97b67c1f25329db52ae3a88eb293a1203 | [
"MIT"
] | null | null | null | migrations/versions/010_Add_uploader_link_to_upload.py | LCBRU/lbrc_upload | be42fef97b67c1f25329db52ae3a88eb293a1203 | [
"MIT"
] | null | null | null | from sqlalchemy import MetaData, Table, Index, Column, Integer
meta = MetaData()
| 28.32 | 82 | 0.75565 |
4d32026c6758449b672d084b5b5fc4c71016f623 | 3,380 | py | Python | redbot/resource/active_check/base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | null | null | null | redbot/resource/active_check/base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | null | null | null | redbot/resource/active_check/base.py | Malvoz/redbot | 0edef8d4efefddde49d36cd97e471fc187837169 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Subrequests to do things like range requests, content negotiation checks,
and validation.
This is the base class for all subrequests.
"""
from abc import ABCMeta, abstractmethod
from configparser import SectionProxy
from typing import List, Tuple, Type, Union, TYPE_CHECKING
from redbot.res... | 32.190476 | 97 | 0.657988 |
4d3223ccf8b9ace60c35ba3ab835c0690408e671 | 92 | py | Python | demo/demo14.py | LXG-Shadow/SongRecogn | e02363db5dc40b6128c46f19249044c94e5ba425 | [
"Apache-2.0"
] | 22 | 2019-02-25T20:58:58.000Z | 2021-07-15T01:45:00.000Z | demo/demo14.py | aynakeya/SongRecogn | e02363db5dc40b6128c46f19249044c94e5ba425 | [
"Apache-2.0"
] | 4 | 2021-04-07T13:27:44.000Z | 2021-06-15T17:32:04.000Z | demo/demo14.py | aynakeya/SongRecogn | e02363db5dc40b6128c46f19249044c94e5ba425 | [
"Apache-2.0"
] | 4 | 2020-05-16T14:08:24.000Z | 2021-06-07T08:59:07.000Z | import getopt
a = "asdf asdf"
option,args = getopt.getopt(a,"","")
print(option,type(args))
| 18.4 | 36 | 0.684783 |
4d360ecaf65d937ea0be727ba4568099673793e8 | 41 | py | Python | eyap/utils/ghtools/__init__.py | emin63/eyap | 783bdede298e63bbafee81b50cd1e899c43f5847 | [
"BSD-3-Clause"
] | null | null | null | eyap/utils/ghtools/__init__.py | emin63/eyap | 783bdede298e63bbafee81b50cd1e899c43f5847 | [
"BSD-3-Clause"
] | 2 | 2017-07-17T03:50:32.000Z | 2017-08-05T02:39:36.000Z | eyap/utils/ghtools/__init__.py | emin63/eyap | 783bdede298e63bbafee81b50cd1e899c43f5847 | [
"BSD-3-Clause"
] | null | null | null | """Additional GitHub specific tools.
"""
| 13.666667 | 36 | 0.707317 |
4d36ab2ecf64dbe104d9ad83b84b202b59495ecf | 13,674 | py | Python | page_api.py | tomkludy/md_to_conf | 3b03f1c68eea1f8a6d788afab0add63f6d4dcf46 | [
"MIT"
] | null | null | null | page_api.py | tomkludy/md_to_conf | 3b03f1c68eea1f8a6d788afab0add63f6d4dcf46 | [
"MIT"
] | null | null | null | page_api.py | tomkludy/md_to_conf | 3b03f1c68eea1f8a6d788afab0add63f6d4dcf46 | [
"MIT"
] | null | null | null | """
# --------------------------------------------------------------------------------------------------
# Page APIs
# --------------------------------------------------------------------------------------------------
"""
import os
import tempfile
import re
import json
import collections
import mimetypes
import urllib... | 36.270557 | 114 | 0.546365 |
4d37f40cf39b5e290df6e5f9680f28b3b0ec78f5 | 5,918 | py | Python | testing/tests/data_handling/test_predict.py | JSKenyon/QuartiCal | 2113855b080cfecc4a1c77cc9dad346ef3619716 | [
"MIT"
] | null | null | null | testing/tests/data_handling/test_predict.py | JSKenyon/QuartiCal | 2113855b080cfecc4a1c77cc9dad346ef3619716 | [
"MIT"
] | null | null | null | testing/tests/data_handling/test_predict.py | JSKenyon/QuartiCal | 2113855b080cfecc4a1c77cc9dad346ef3619716 | [
"MIT"
] | 1 | 2022-03-18T14:30:04.000Z | 2022-03-18T14:30:04.000Z | from copy import deepcopy
import pytest
from quartical.data_handling.predict import (parse_sky_models,
daskify_sky_model_dict,
get_support_tables)
import dask.array as da
import numpy as np
from numpy.testing import assert_array_a... | 32.163043 | 79 | 0.622339 |
4d391ca815462113e85dde20f4caa4e28b604358 | 300 | py | Python | HACKERRANK_Numpy/concatenated.py | StefaniaSferragatta/ADM2020-HW1 | 8f85ac1c8dd4bff52c5c17987c9e96b209a93830 | [
"MIT"
] | null | null | null | HACKERRANK_Numpy/concatenated.py | StefaniaSferragatta/ADM2020-HW1 | 8f85ac1c8dd4bff52c5c17987c9e96b209a93830 | [
"MIT"
] | null | null | null | HACKERRANK_Numpy/concatenated.py | StefaniaSferragatta/ADM2020-HW1 | 8f85ac1c8dd4bff52c5c17987c9e96b209a93830 | [
"MIT"
] | null | null | null | import numpy
N,M,P = map(int,input().split())
p_cols1 =numpy.array([input().split() for _ in range(N)],int)
p_cols1.shape = (N,P)
p_cols2 =numpy.array([input().split() for _ in range(M)],int)
p_cols2.shape = (M,P)
concatenated = numpy.concatenate((p_cols1, p_cols2), axis = 0)
print(concatenated)
| 25 | 62 | 0.686667 |
4d3a0734d340535665b3ebc270eb897a3c7611c7 | 4,171 | py | Python | Discord Status Changer.py | vragonx/DiscordStatusChanger | 376a78e5653f99d266a0a45ac3ecc8d71159bd49 | [
"Apache-2.0"
] | null | null | null | Discord Status Changer.py | vragonx/DiscordStatusChanger | 376a78e5653f99d266a0a45ac3ecc8d71159bd49 | [
"Apache-2.0"
] | null | null | null | Discord Status Changer.py | vragonx/DiscordStatusChanger | 376a78e5653f99d266a0a45ac3ecc8d71159bd49 | [
"Apache-2.0"
] | 1 | 2021-06-06T07:24:14.000Z | 2021-06-06T07:24:14.000Z | from colorama import Fore, init, Style
import requests
import random
import ctypes
import time
import os
ctypes.windll.kernel32.SetConsoleTitleW('Discord Status Changer')
init(convert=True, autoreset=True)
SuccessCounter = 0
ErrorCounter = 0
os.system('cls')
print(Fore.RED + '\n[' + Fore.WHITE + Style.BR... | 45.336957 | 176 | 0.562455 |
4d3c620a15280505542a7dd73460b5056d95dccf | 1,269 | py | Python | hw1/feature_summary.py | doochi/gct634-ai613-2021 | af12a1ea9c622fca17928f8431cc0983470f97db | [
"MIT"
] | 9 | 2021-09-04T04:11:47.000Z | 2022-01-06T13:00:32.000Z | hw1/feature_summary.py | doochi/gct634-ai613-2021 | af12a1ea9c622fca17928f8431cc0983470f97db | [
"MIT"
] | null | null | null | hw1/feature_summary.py | doochi/gct634-ai613-2021 | af12a1ea9c622fca17928f8431cc0983470f97db | [
"MIT"
] | 19 | 2021-09-12T10:13:09.000Z | 2022-01-28T01:37:42.000Z | # GCT634 (2018) HW1
#
# Mar-18-2018: initial version
#
# Juhan Nam
#
import sys
import os
import numpy as np
import matplotlib.pyplot as plt
data_path = './dataset/'
mfcc_path = './mfcc/'
MFCC_DIM = 20
if __name__ == '__main__':
train_data = mean_mfcc('train')
valid_data = mean_mfcc('valid')
... | 18.940299 | 82 | 0.597321 |
4d3c97fcf24ccce0fd906a45948aebe7fed32f87 | 6,685 | py | Python | package/kedro_viz/services/layers.py | pascalwhoop/kedro-viz | 5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d | [
"BSD-3-Clause-Clear",
"Apache-2.0"
] | 246 | 2019-07-08T15:27:34.000Z | 2022-01-09T18:47:11.000Z | package/kedro_viz/services/layers.py | pascalwhoop/kedro-viz | 5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d | [
"BSD-3-Clause-Clear",
"Apache-2.0"
] | 222 | 2019-07-08T14:07:13.000Z | 2022-01-06T19:19:27.000Z | package/kedro_viz/services/layers.py | pascalwhoop/kedro-viz | 5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d | [
"BSD-3-Clause-Clear",
"Apache-2.0"
] | 53 | 2019-07-14T14:06:47.000Z | 2021-12-06T22:21:46.000Z | # Copyright 2021 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS",... | 48.093525 | 100 | 0.698579 |
4d3cec7b76ef0e1f26a6a2ea0b4008e98f8e6357 | 6,941 | py | Python | fixed_width_gen.py | pradnyaalc/fixed_width_file_generation | 989eb34f57a6061f89c4889ec1c3db3a45b86723 | [
"Apache-2.0"
] | null | null | null | fixed_width_gen.py | pradnyaalc/fixed_width_file_generation | 989eb34f57a6061f89c4889ec1c3db3a45b86723 | [
"Apache-2.0"
] | null | null | null | fixed_width_gen.py | pradnyaalc/fixed_width_file_generation | 989eb34f57a6061f89c4889ec1c3db3a45b86723 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# importing libraries
import json
from copy import deepcopy
from decimal import Decimal
import time
if __name__ == '__main__':
main()
| 33.370192 | 121 | 0.53998 |
4d3cfc02ebd8ee1182122794d381b0a0a452d148 | 855 | py | Python | 52digest.py | Ferdandez/homework | 07df8e0c63e93773e7fc354bfb4e6ae301d49124 | [
"MIT"
] | null | null | null | 52digest.py | Ferdandez/homework | 07df8e0c63e93773e7fc354bfb4e6ae301d49124 | [
"MIT"
] | null | null | null | 52digest.py | Ferdandez/homework | 07df8e0c63e93773e7fc354bfb4e6ae301d49124 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# 52digest.py
import re
import sys
# Write a program that performs an EcoRI digest on the SARS-COV2 genome
# The program should have 2 arguments
# 1. The genome file
# 2. The restriction pattern
# The output should be the sizes of the restriction fragments
originseen = False
seq = ''
dige... | 19 | 71 | 0.679532 |
4d3d62f955634f9c834d309435153be67f95acc0 | 2,394 | py | Python | yt_dlp/extractor/willow.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 80 | 2021-05-25T11:33:49.000Z | 2022-03-29T20:36:53.000Z | yt_dlp/extractor/willow.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 53 | 2017-04-12T19:53:18.000Z | 2022-02-22T10:33:13.000Z | yt_dlp/extractor/willow.py | mrBliss/yt-dlp | aecd021656b672dbb617e5bae54a8986f9c4ebaf | [
"Unlicense"
] | 22 | 2021-05-07T05:01:27.000Z | 2022-03-26T19:10:54.000Z | # coding: utf-8
from ..utils import ExtractorError
from .common import InfoExtractor
| 40.576271 | 125 | 0.581036 |
4d3d9898f84561406d75802e9d8427f790dcd648 | 32 | py | Python | vesicashapi/vesicash.py | vesicash/vesicash-python-sdk | 0a665e302b88c4eeb316a635c5485c9c3c1fffeb | [
"Apache-2.0"
] | null | null | null | vesicashapi/vesicash.py | vesicash/vesicash-python-sdk | 0a665e302b88c4eeb316a635c5485c9c3c1fffeb | [
"Apache-2.0"
] | null | null | null | vesicashapi/vesicash.py | vesicash/vesicash-python-sdk | 0a665e302b88c4eeb316a635c5485c9c3c1fffeb | [
"Apache-2.0"
] | 1 | 2021-04-20T14:54:40.000Z | 2021-04-20T14:54:40.000Z | """ Entry point defined here """ | 32 | 32 | 0.65625 |
4d3e1930813427009e7819522279ea71f06fd637 | 4,044 | py | Python | src/dissregarded/NetArivalsDeparturesHoures.py | sebastian-konicz/WRM | e60aafada7bb85df955a7e1357f33fe5846f4e6c | [
"MIT"
] | 1 | 2019-11-02T18:24:19.000Z | 2019-11-02T18:24:19.000Z | src/dissregarded/NetArivalsDeparturesHoures.py | sebastian-konicz/WRM | e60aafada7bb85df955a7e1357f33fe5846f4e6c | [
"MIT"
] | 7 | 2020-03-24T17:48:28.000Z | 2022-03-12T00:05:13.000Z | src/dissregarded/NetArivalsDeparturesHoures.py | sebastian-konicz/WRM | e60aafada7bb85df955a7e1357f33fe5846f4e6c | [
"MIT"
] | null | null | null | import folium
from folium.plugins import MarkerCluster
import pandas as pd
import datetime
from pathlib import Path
# pd.options.display.max_columns = 50
if __name__ == "__main__":
project_dir = str(Path(__file__).resolve().parents[2])
main(project_dir) | 42.568421 | 121 | 0.638477 |
4d3ee1ccb8692f8cfb3b7d31686fa015b7d46982 | 5,470 | py | Python | bin/lineage_parser.py | brianlee99/UVP | 5b7ff26c09d84760d4220268f34fb4814848eb4a | [
"MIT"
] | null | null | null | bin/lineage_parser.py | brianlee99/UVP | 5b7ff26c09d84760d4220268f34fb4814848eb4a | [
"MIT"
] | null | null | null | bin/lineage_parser.py | brianlee99/UVP | 5b7ff26c09d84760d4220268f34fb4814848eb4a | [
"MIT"
] | null | null | null | #! /usr/bin/python
import sys
""" This script accepts the final annotation file and the lineage marker SNPs file """
""" and infers the lineage and possible sublineage classification of the isolate """
""" it requires a sample ID name (string) and an output file name(string) """
"""
Author: Matthew Ezewudo
CPTR ReS... | 36.466667 | 131 | 0.518464 |
4d3ef71c75b3b75d2218b109a8f46905d02e164e | 10,038 | py | Python | rdr_service/offline/metrics_export.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 39 | 2017-10-13T19:16:27.000Z | 2021-09-24T16:58:21.000Z | rdr_service/offline/metrics_export.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 312 | 2017-09-08T15:42:13.000Z | 2022-03-23T18:21:40.000Z | rdr_service/offline/metrics_export.py | all-of-us/raw-data-repository | d28ad957557587b03ff9c63d55dd55e0508f91d8 | [
"BSD-3-Clause"
] | 19 | 2017-09-15T13:58:00.000Z | 2022-02-07T18:33:20.000Z | from rdr_service import clock, config
from rdr_service.code_constants import EHR_CONSENT_QUESTION_CODE, PPI_SYSTEM, RACE_QUESTION_CODE, UNMAPPED
from rdr_service.dao.code_dao import CodeDao
from rdr_service.dao.database_utils import get_sql_and_params_for_array, replace_isodate
from rdr_service.dao.hpo_dao import HPODa... | 41.139344 | 117 | 0.724846 |
4d3f64220d8ff34f2c9e4737de791b02b5323b50 | 701 | py | Python | fundata/dota2/player/player_detail.py | mengyuanhumy/fundata | e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32 | [
"MIT"
] | null | null | null | fundata/dota2/player/player_detail.py | mengyuanhumy/fundata | e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32 | [
"MIT"
] | null | null | null | fundata/dota2/player/player_detail.py | mengyuanhumy/fundata | e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ...client import get_api_client
def get_player_detail_stats(player_id):
"""
player_idID int
dict
"""
if get_player_data_status(player_id)==2:
client=get_api_client()
uri="/fundata-dota2-free/v2/player/"+str(player_id)+"/detail_stats"
return client.api(uri,{})
else:
print("p... | 22.612903 | 69 | 0.71184 |
4d40d6894572ebb56bff51cbd51d17f087ba2234 | 2,454 | py | Python | ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/package/scripts/resourcemanager.py | panfeiyy/ambari | 24077510723ede93d3024784f0b04422adaf56d6 | [
"Apache-2.0"
] | 16 | 2018-05-24T10:28:24.000Z | 2021-08-05T03:13:26.000Z | ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/package/scripts/resourcemanager.py | panfeiyy/ambari | 24077510723ede93d3024784f0b04422adaf56d6 | [
"Apache-2.0"
] | 3 | 2021-05-09T12:37:16.000Z | 2022-03-02T10:13:24.000Z | ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/package/scripts/resourcemanager.py | panfeiyy/ambari | 24077510723ede93d3024784f0b04422adaf56d6 | [
"Apache-2.0"
] | 17 | 2018-07-06T08:57:00.000Z | 2021-11-04T11:00:36.000Z | """
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"); you may not use this ... | 24.058824 | 94 | 0.711899 |
4d4284d5a0b58c47616dd4e99223550ab8085447 | 166 | py | Python | src/core/command.py | cfmcdonald-78/Hexcrawler | 79ca4ab9327abf08de1743612c23eb89aa53a2b9 | [
"MIT"
] | null | null | null | src/core/command.py | cfmcdonald-78/Hexcrawler | 79ca4ab9327abf08de1743612c23eb89aa53a2b9 | [
"MIT"
] | null | null | null | src/core/command.py | cfmcdonald-78/Hexcrawler | 79ca4ab9327abf08de1743612c23eb89aa53a2b9 | [
"MIT"
] | 1 | 2021-12-01T01:38:12.000Z | 2021-12-01T01:38:12.000Z | '''
Created on Jul 19, 2012
@author: Chris
''' | 12.769231 | 29 | 0.554217 |
4d42f4da01153d9efccca4d19cc6efc9b683c41b | 8,039 | py | Python | gui/trimGui.py | lhalb/gfmanager | 449f071b3239faa672b7f06122dfc9bc23e68d79 | [
"MIT"
] | 1 | 2022-01-18T12:53:17.000Z | 2022-01-18T12:53:17.000Z | gui/trimGui.py | lhalb/gfmanager | 449f071b3239faa672b7f06122dfc9bc23e68d79 | [
"MIT"
] | null | null | null | gui/trimGui.py | lhalb/gfmanager | 449f071b3239faa672b7f06122dfc9bc23e68d79 | [
"MIT"
] | null | null | null | from PyQt5 import QtGui, QtWidgets
import seaborn as sns
from gui import trimming as tri
from gui import boxes as BOX
import matplotlib.image as mpimg
from math import floor, ceil
| 32.812245 | 105 | 0.619729 |
4d47790f7b2c6a08485b7da418683620a521d5cf | 1,178 | py | Python | __init__.py | hankangkangjim/djlog | cfdac281be811adc3fc1b91672c0230cc575722f | [
"MIT"
] | null | null | null | __init__.py | hankangkangjim/djlog | cfdac281be811adc3fc1b91672c0230cc575722f | [
"MIT"
] | null | null | null | __init__.py | hankangkangjim/djlog | cfdac281be811adc3fc1b91672c0230cc575722f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
| 29.45 | 78 | 0.618846 |
4d48c769d2260ad0c3c0d32734d1d092109092b3 | 6,697 | py | Python | manilaclient/tests/unit/common/test_httpclient.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | manilaclient/tests/unit/common/test_httpclient.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | manilaclient/tests/unit/common/test_httpclient.py | mail2nsrajesh/python-manilaclient | 37bf2d9b4be277ece01e9ff782234d264ed4fd56 | [
"CNRI-Python",
"Apache-1.1"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 32.043062 | 78 | 0.626101 |
4d4909137a8281abf00add12e7109af6453220fd | 1,421 | py | Python | intro_to_algos_2020_mit/ps3/tests.py | venu-gopal-myneni/assignments | 871148ccaa6291539623fc7d3f9704cb497fbcb6 | [
"MIT"
] | 1 | 2022-02-26T13:52:31.000Z | 2022-02-26T13:52:31.000Z | assignments/ps3-template/tests.py | tallamjr/mit-6006 | c2aa6bb48edef5800c0779ba2eebd697d44249b5 | [
"MIT"
] | null | null | null | assignments/ps3-template/tests.py | tallamjr/mit-6006 | c2aa6bb48edef5800c0779ba2eebd697d44249b5 | [
"MIT"
] | null | null | null | import unittest
from count_anagram_substrings import count_anagram_substrings
tests = (
(
(
'esleastealaslatet',
('tesla',),
),
(3,),
),
(
(
'lrldrrrllddrrlllrddd',
('ldl', 'rld'),
),
(1, 3),
),
(
... | 25.375 | 115 | 0.553835 |
4d49fb464c7f3d5acfcbeab36ee17a5c9322cb65 | 9,387 | py | Python | sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py | eugval/sim2real_dynamics_simulation | 2ed175803faa38792f6becc2dc91f44ae71ed9c2 | [
"MIT"
] | 16 | 2020-07-28T14:35:44.000Z | 2021-11-28T01:50:51.000Z | sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py | eugval/sim2real_dynamics_simulation | 2ed175803faa38792f6becc2dc91f44ae71ed9c2 | [
"MIT"
] | 1 | 2020-11-26T07:58:30.000Z | 2020-12-01T04:40:28.000Z | sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py | eugval/sim2real_dynamics_simulation | 2ed175803faa38792f6becc2dc91f44ae71ed9c2 | [
"MIT"
] | 2 | 2020-10-18T01:38:49.000Z | 2021-12-31T10:56:41.000Z | """
System Identification (SI)
https://arxiv.org/abs/1702.02453
Examples of two types:
1. Off-line SI: in sim2real_policies.sys_id.common.utils
2. On-line SI
"""
from sim2real_policies.sys_id.common.operations import *
from sim2real_policies.sys_id.common.utils import *
from sim2real_policies.utils.rl_utils import lo... | 45.567961 | 155 | 0.629914 |
4d4c6f6195152d60976c1000937ec76667e66f99 | 2,099 | py | Python | rasp_camera.py | BrianDau/doorbell_dash | 940877c5019b39639e7de0081a616d20c8b5a0fc | [
"MIT"
] | 11 | 2017-04-12T13:27:39.000Z | 2021-05-16T16:27:15.000Z | rasp_camera.py | BrianDau/doorbell_dash | 940877c5019b39639e7de0081a616d20c8b5a0fc | [
"MIT"
] | null | null | null | rasp_camera.py | BrianDau/doorbell_dash | 940877c5019b39639e7de0081a616d20c8b5a0fc | [
"MIT"
] | 1 | 2019-01-10T18:33:42.000Z | 2019-01-10T18:33:42.000Z | import picamera
from time import sleep
IMG_WIDTH = 800
IMG_HEIGHT = 600
IMAGE_DIR = "/home/pi/Desktop/"
IMG = "snap.jpg"
# https://www.raspberrypi.org/learning/tweeting-babbage/worksheet/
######################################################
# picamera default values:
#############################################... | 26.910256 | 66 | 0.549786 |
4d4d0ea614818e4dfdde9e585c36b4fdaeb09ea4 | 4,720 | py | Python | catalogue_flask/model.py | ScottWales/catalogue-flask | 4a9e659875fee6e831e6c31018c9f9d7285dc845 | [
"Apache-2.0"
] | null | null | null | catalogue_flask/model.py | ScottWales/catalogue-flask | 4a9e659875fee6e831e6c31018c9f9d7285dc845 | [
"Apache-2.0"
] | null | null | null | catalogue_flask/model.py | ScottWales/catalogue-flask | 4a9e659875fee6e831e6c31018c9f9d7285dc845 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2017 ARC Centre of Excellence for Climate Systems Science
# author: Scott Wales <scott.wales@unimelb.edu.au>
#
# 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... | 31.052632 | 98 | 0.661441 |
4d4daf56e54bd88f232ffc4ff205ca0bd68de320 | 1,823 | py | Python | userbot/core/vcbot/controls.py | Rewtio/Mikoo-Userbot | 418f0017241fa65bdf7f99c84381317cb4dbeb55 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2022-03-03T01:31:48.000Z | 2022-03-26T00:15:41.000Z | userbot/core/vcbot/controls.py | Rewtio/Mikoo-Userbot | 418f0017241fa65bdf7f99c84381317cb4dbeb55 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2022-03-16T02:54:27.000Z | 2022-03-17T09:17:12.000Z | userbot/core/vcbot/controls.py | Rewtio/Mikoo-Userbot | 418f0017241fa65bdf7f99c84381317cb4dbeb55 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2022-03-16T02:41:38.000Z | 2022-03-16T02:41:38.000Z | # Mikoo - UserBot
# Copyright (c) 2022 Mikoo-Userbot
# Credits: @divarvian || https://github.com/divarvian
#
# This file is a part of < https://github.com/divarvian/Mikoo-Userbot/ >
# t.me/MikooUserbot & t.me/MikooUserbot
from pytgcalls.types.input_stream import AudioPiped, AudioVideoPiped
from pytgcalls.types.input_... | 27.208955 | 80 | 0.623149 |
4d4ffc6370941aaa5377e63ac70bab0e9216c2d5 | 5,614 | py | Python | src/jaeger/jaeger.py | Novartis/JAEGER | 9f9441d97bb956d88b73e2d24edb65322420c251 | [
"Apache-2.0"
] | 9 | 2021-12-27T15:49:43.000Z | 2022-03-29T10:17:55.000Z | src/jaeger/jaeger.py | Novartis/JAEGER | 9f9441d97bb956d88b73e2d24edb65322420c251 | [
"Apache-2.0"
] | null | null | null | src/jaeger/jaeger.py | Novartis/JAEGER | 9f9441d97bb956d88b73e2d24edb65322420c251 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2021 Novartis Institutes for BioMedical Research 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... | 31.539326 | 110 | 0.685073 |
4d50bed8c76e8e60cc01b8081cea63dca711f207 | 805 | py | Python | test/test_vlan_group.py | nrfta/python-netbox-client | 68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8 | [
"MIT"
] | null | null | null | test/test_vlan_group.py | nrfta/python-netbox-client | 68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8 | [
"MIT"
] | null | null | null | test/test_vlan_group.py | nrfta/python-netbox-client | 68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
NetBox API
API to access NetBox # noqa: E501
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import netbox_client
from netbox_client.models.vlan_group import VLANGroup ... | 19.634146 | 79 | 0.680745 |
4d52174dea07f449946604a9e3b3a0ae9531e302 | 436 | py | Python | build/lib/more/scikit_helper/common.py | ngupta23/more | c8d867d280c5c88be7d1ddfac37ff670a2dcaa29 | [
"MIT"
] | 6 | 2019-07-18T20:26:30.000Z | 2021-06-10T17:20:19.000Z | more/scikit_helper/common.py | ngupta23/more | c8d867d280c5c88be7d1ddfac37ff670a2dcaa29 | [
"MIT"
] | null | null | null | more/scikit_helper/common.py | ngupta23/more | c8d867d280c5c88be7d1ddfac37ff670a2dcaa29 | [
"MIT"
] | null | null | null | # For Time Logging
import time
from contextlib import contextmanager
import logging
| 22.947368 | 71 | 0.651376 |
4d52bec8cefe73d9a93266481e15f6cb3b5e3a2d | 416 | py | Python | preprocess/rename.py | pprp/faster-rcnn.Supernova | 583bc9f6efd80d5a7fa88189a1c817d92d6018a6 | [
"MIT"
] | 15 | 2019-04-19T12:40:09.000Z | 2020-06-03T07:56:37.000Z | preprocess/rename.py | Zxl19990529/faster-rcnn.Supernova | 583bc9f6efd80d5a7fa88189a1c817d92d6018a6 | [
"MIT"
] | 2 | 2019-04-19T13:21:44.000Z | 2020-06-03T07:49:31.000Z | preprocess/rename.py | Zxl19990529/faster-rcnn.Supernova | 583bc9f6efd80d5a7fa88189a1c817d92d6018a6 | [
"MIT"
] | 5 | 2019-04-19T13:06:22.000Z | 2021-01-19T03:31:58.000Z | import os
import shutil
path = './ALL/'
outpath = "./rename/"
outb = "./b/"
outc = "./c/"
for f in os.listdir(path):
print(f)
name,ext = os.path.splitext(f)
a,ext2 = name.split('_')
if ext2.endswith('b'):
print(outb+f)
shutil.copy(path+f,outb+f)
elif ext2.endswith('c'):
prin... | 21.894737 | 38 | 0.567308 |
4d54d76c9267e5c02660af45e6cfbf3a771acab1 | 970 | py | Python | FALL/core/port_scanner.py | DevanshRaghav75/FALL | 643c19db18d76b850e427c026ff54dae547e69a5 | [
"MIT"
] | 1 | 2021-06-22T10:43:12.000Z | 2021-06-22T10:43:12.000Z | FALL/core/port_scanner.py | DevanshRaghav75/FALL | 643c19db18d76b850e427c026ff54dae547e69a5 | [
"MIT"
] | 2 | 2021-06-23T01:47:59.000Z | 2021-06-25T12:07:02.000Z | FALL/core/port_scanner.py | DevanshRaghav75/FALL | 643c19db18d76b850e427c026ff54dae547e69a5 | [
"MIT"
] | null | null | null | import socket
import threading
import concurrent.futures
from colorama import Fore, Style | 31.290323 | 159 | 0.609278 |
4d54e80804f63b1496a93c52549fb653034591c2 | 3,720 | py | Python | ui/main_window.py | Iorveth/min_surfaces_modelling | 279a091e12f98c0a7fc8054c6eadaafaec5a1258 | [
"MIT"
] | null | null | null | ui/main_window.py | Iorveth/min_surfaces_modelling | 279a091e12f98c0a7fc8054c6eadaafaec5a1258 | [
"MIT"
] | null | null | null | ui/main_window.py | Iorveth/min_surfaces_modelling | 279a091e12f98c0a7fc8054c6eadaafaec5a1258 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.12.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 50.958904 | 190 | 0.706452 |
4d551b7eecd229efc3cad0fcf4d4e3f7b53e292a | 2,056 | py | Python | pyecharts/charts/scatter.py | chfw/pyecharts | 51de9d6f17946a356ff8b94c62a70404e4f55266 | [
"MIT"
] | 16 | 2018-01-24T00:56:15.000Z | 2022-03-18T09:00:42.000Z | pyecharts/charts/scatter.py | chfw/bryecharts | 51de9d6f17946a356ff8b94c62a70404e4f55266 | [
"MIT"
] | null | null | null | pyecharts/charts/scatter.py | chfw/bryecharts | 51de9d6f17946a356ff8b94c62a70404e4f55266 | [
"MIT"
] | 4 | 2018-01-21T17:49:49.000Z | 2021-03-13T22:08:49.000Z | #!/usr/bin/env python
# coding=utf-8
from pyecharts.chart import Chart
from pyecharts.option import get_all_options
| 27.413333 | 70 | 0.543288 |
4d556c14bf4ff80e91105975794bd70a02997423 | 1,799 | py | Python | alice.py | Tigven/benedict | c15620e7df573ad05cd25628d7cf55f6558968b8 | [
"MIT"
] | 1 | 2019-05-08T15:33:21.000Z | 2019-05-08T15:33:21.000Z | alice.py | Tigven/benedict | c15620e7df573ad05cd25628d7cf55f6558968b8 | [
"MIT"
] | null | null | null | alice.py | Tigven/benedict | c15620e7df573ad05cd25628d7cf55f6558968b8 | [
"MIT"
] | null | null | null | import json
class AliceResponse(object):
| 24.310811 | 70 | 0.591996 |
4d5681b659a285c56598406e0b757f35ff94c449 | 869 | py | Python | pythonSEC/Utils/useapi.py | hpcc-systems/EDGAR-SEC-Filings | 1727820ffa2216ed2447bb6a265a54ef6503f001 | [
"Apache-2.0"
] | 1 | 2020-08-02T13:08:14.000Z | 2020-08-02T13:08:14.000Z | pythonSEC/Utils/useapi.py | hpcc-systems/EDGAR-SEC-Filings | 1727820ffa2216ed2447bb6a265a54ef6503f001 | [
"Apache-2.0"
] | null | null | null | pythonSEC/Utils/useapi.py | hpcc-systems/EDGAR-SEC-Filings | 1727820ffa2216ed2447bb6a265a54ef6503f001 | [
"Apache-2.0"
] | null | null | null | import yfinance as yf
import pandas as pd
import Utils
from Utils import scrape_utils
| 36.208333 | 134 | 0.698504 |
4d56ddb615e06e9e1805753500a2cd6d9b81e048 | 8,014 | py | Python | src/pymor/reductors/parabolic.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/reductors/parabolic.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/reductors/parabolic.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2016 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
from pymor.core.interfaces import ImmutableInterface
from pymor.core.logger im... | 48.569697 | 114 | 0.671949 |
4d572a2dac2905d58624d731de31416194c06588 | 3,050 | py | Python | frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py | ektai/erp2Dodock | 5ad64b01cba9b07437f9a27751101258679379e8 | [
"MIT"
] | null | null | null | frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py | ektai/erp2Dodock | 5ad64b01cba9b07437f9a27751101258679379e8 | [
"MIT"
] | null | null | null | frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py | ektai/erp2Dodock | 5ad64b01cba9b07437f9a27751101258679379e8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
from frappe.utils import get_datetime
from frappe.core.doctype.scheduled_job_type.scheduled_job_type import sync_jobs | 45.522388 | 138 | 0.754754 |
4d57caac42b99c0bec97612a491e63a139339081 | 1,750 | py | Python | projects/2_bike_share_data/menu_text.py | ssi112/programming-data-science-python | 6f70743a89f286f5eb4c13765098f18cf050d7a7 | [
"MIT"
] | 1 | 2020-10-20T20:34:53.000Z | 2020-10-20T20:34:53.000Z | projects/2_bike_share_data/menu_text.py | ssi112/programming-data-science-python | 6f70743a89f286f5eb4c13765098f18cf050d7a7 | [
"MIT"
] | null | null | null | projects/2_bike_share_data/menu_text.py | ssi112/programming-data-science-python | 6f70743a89f286f5eb4c13765098f18cf050d7a7 | [
"MIT"
] | null | null | null | # menu_text.py
#
# simple python menu
# https://stackoverflow.com/questions/19964603/creating-a-menu-in-python
#
city_menu = { '1': 'Chicago',
'2': 'New York',
'3': 'Washington',
'x': 'Exit'}
month_menu = {'0': 'All',
'1': 'January',
'2': 'February... | 26.515152 | 72 | 0.489714 |
4d5862aa5b9a7ab6497cf927fcc9eb557781d081 | 213 | py | Python | src/books/api.py | lukecyx/lms | eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c | [
"MIT"
] | null | null | null | src/books/api.py | lukecyx/lms | eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c | [
"MIT"
] | null | null | null | src/books/api.py | lukecyx/lms | eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c | [
"MIT"
] | null | null | null | from src.books.models import Book
from src.books.schema import BookOut
from ninja import Router
router = Router()
| 17.75 | 40 | 0.746479 |
4d5afb3a4a38cc784e6e3fd2bab719ca1b2bdd90 | 6,545 | py | Python | loldib/getratings/models/NA/na_khazix/na_khazix_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_khazix/na_khazix_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_khazix/na_khazix_sup.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
| 15.695444 | 46 | 0.766692 |
4d5be74386b958660be296261cac18d84c28239e | 297 | py | Python | tests/data/expected/main/main_jsonschema_ids/id.py | roadsync/datamodel-code-generator | c22ea471d46300771c15cfaf21864cbe23bfbba4 | [
"MIT"
] | null | null | null | tests/data/expected/main/main_jsonschema_ids/id.py | roadsync/datamodel-code-generator | c22ea471d46300771c15cfaf21864cbe23bfbba4 | [
"MIT"
] | null | null | null | tests/data/expected/main/main_jsonschema_ids/id.py | roadsync/datamodel-code-generator | c22ea471d46300771c15cfaf21864cbe23bfbba4 | [
"MIT"
] | null | null | null | # generated by datamodel-codegen:
# filename: Organization.schema.json
# timestamp: 1985-10-26T08:21:00+00:00
from __future__ import annotations
from pydantic import BaseModel, Field
| 24.75 | 79 | 0.750842 |
4d5d0cd3a4c4b3b0b3187dfacf67f623810fd0f8 | 776 | py | Python | tablo/migrations/0006_alter_geom_col_type.py | consbio/tablo | 8d70bd3fe3449c3298ad69cc7c85bb2d8e83fad8 | [
"BSD-3-Clause"
] | 4 | 2017-04-26T10:30:56.000Z | 2019-06-13T03:20:44.000Z | tablo/migrations/0006_alter_geom_col_type.py | nrdsdata/tablo | 628bcde8071229485438def01ff3b0da0ef9e502 | [
"BSD-3-Clause"
] | 23 | 2016-07-18T21:40:29.000Z | 2019-06-04T20:08:57.000Z | tablo/migrations/0006_alter_geom_col_type.py | nrdsdata/tablo | 628bcde8071229485438def01ff3b0da0ef9e502 | [
"BSD-3-Clause"
] | 3 | 2016-11-21T18:47:33.000Z | 2019-05-15T23:29:56.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from tablo import GEOM_FIELD_NAME, WEB_MERCATOR_SRID
forward_sql = """
DO
$$
DECLARE
table_name name;
BEGIN
FOR table_name IN
SELECT tablo_featureservicelayer.table FROM tablo_... | 23.515152 | 118 | 0.657216 |
4d5d0e78c95a6644e5c54d7d327b95b2ebfd2692 | 23,755 | py | Python | tests/test_atise.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | tests/test_atise.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | tests/test_atise.py | tkg-framework/TKG-framework | 98586b7199bda0e96d74b2ea02c62226901822cc | [
"MIT",
"Unlicense"
] | null | null | null | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.functional as F
from torch.nn.init import xavier_normal_
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
import numpy as np
from numpy.random import RandomState
f... | 39.52579 | 144 | 0.540097 |
4d5dd414ac863f8b7e031913598446b42eb6a1d4 | 1,265 | py | Python | tests/security_test.py | smarkets/bravado-core | 5d9c7eff417118462893c08accc40e27b066e2f6 | [
"BSD-3-Clause"
] | null | null | null | tests/security_test.py | smarkets/bravado-core | 5d9c7eff417118462893c08accc40e27b066e2f6 | [
"BSD-3-Clause"
] | null | null | null | tests/security_test.py | smarkets/bravado-core | 5d9c7eff417118462893c08accc40e27b066e2f6 | [
"BSD-3-Clause"
] | 1 | 2022-03-26T12:14:35.000Z | 2022-03-26T12:14:35.000Z | # -*- coding: utf-8 -*-
import pytest
from six import iteritems
| 39.53125 | 88 | 0.679842 |
4d6009ffc4ef0b627d157000658c61a9b68d4726 | 3,555 | py | Python | training/data_splits.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | training/data_splits.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | training/data_splits.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | import json
from typing import Union, Optional, Tuple, List
import numpy as np
from sklearn.feature_extraction import DictVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer, TfidfTransformer
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import Stan... | 41.337209 | 211 | 0.663854 |
4d6063eae63c8ba714bea0a997b134856f495196 | 31,868 | py | Python | GAPP.py | timhartley/GAPP | ddd3b3c29b50bc5a9eb3d7f84403e425072145bb | [
"Apache-2.0"
] | null | null | null | GAPP.py | timhartley/GAPP | ddd3b3c29b50bc5a9eb3d7f84403e425072145bb | [
"Apache-2.0"
] | null | null | null | GAPP.py | timhartley/GAPP | ddd3b3c29b50bc5a9eb3d7f84403e425072145bb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#Sorts based on top 50 CMetric, all callPaths - CMetric
#, all call paths - call path count and all samples
from __future__ import print_function
from bcc import BPF, PerfType, PerfSWConfig
from bcc import BPF
import sys
import ctypes as ct # For mapping the 'C' structure to Python
import argparse #... | 34.414687 | 197 | 0.614096 |
4d610d4a0f33ed82366186a1ab547fe19c1f9cea | 4,484 | py | Python | data/activitynet_feature_cuhk/data_process.py | NEUdeep/BSN | e987cc159976ebe54027b562d833a92a5aadf864 | [
"MIT"
] | 1 | 2021-04-21T08:09:59.000Z | 2021-04-21T08:09:59.000Z | data/activitynet_feature_cuhk/data_process.py | NEUdeep/BSN | e987cc159976ebe54027b562d833a92a5aadf864 | [
"MIT"
] | null | null | null | data/activitynet_feature_cuhk/data_process.py | NEUdeep/BSN | e987cc159976ebe54027b562d833a92a5aadf864 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
import numpy as np
import scipy
import pandas as pd
import pandas
import numpy
import json
videoDict=getDatasetDict()
videoNameList=videoDict.keys()
random.shuffle(videoNameList)
col_names=[]
for i in range(400):
col_names.append("f"+str(i))
for videoName in videoNameList:
... | 32.970588 | 103 | 0.674398 |
4d616609d3a6fbee45f8cfdcce708b41d046091c | 1,622 | py | Python | examples/cloud-test.py | Ferris-Labs/ferris-cli | 6a34706ab9163471bf2e03f31ba4018143f26d51 | [
"Apache-2.0"
] | null | null | null | examples/cloud-test.py | Ferris-Labs/ferris-cli | 6a34706ab9163471bf2e03f31ba4018143f26d51 | [
"Apache-2.0"
] | 1 | 2020-12-15T13:18:40.000Z | 2020-12-15T13:18:40.000Z | examples/cloud-test.py | Integration-Alpha/ferris-cli | 6a34706ab9163471bf2e03f31ba4018143f26d51 | [
"Apache-2.0"
] | null | null | null | from cloudevents.sdk.event import v03
import json
from ferris_cli.ferris_cli import CloudEventsAPI
import uuid
import os
import consul
from ferris_cli.ferris_cli import ApplicationConfigurator
from datetime import datetime
platform_environment = ApplicationConfigurator().get('ferris.env')
broker = f"kafka://{platfor... | 28.45614 | 106 | 0.7127 |
4d65330a040ed957f51a1f95089f84709aa653c7 | 2,355 | py | Python | REL_dashboarSERVIDORES.py | tiagotouso/TALENTOS_HUMANOS | c391f7d7a331d5f8b186b27af6a9b61448620cc6 | [
"MIT"
] | null | null | null | REL_dashboarSERVIDORES.py | tiagotouso/TALENTOS_HUMANOS | c391f7d7a331d5f8b186b27af6a9b61448620cc6 | [
"MIT"
] | null | null | null | REL_dashboarSERVIDORES.py | tiagotouso/TALENTOS_HUMANOS | c391f7d7a331d5f8b186b27af6a9b61448620cc6 | [
"MIT"
] | null | null | null | '''
GERADOR DE RELATRIO DOS SERVIDORES (DASHBOARD SERVIDORES)
'''
from SQL import sqlpandas
from MENSAGEM import mensagemInformacao, mensagemErro
from AUXILIAR import salvarPandas
def dashboardServidores():
'''
FUNO PARA CRIAR OS DASHDOARD
ENTRA
ENTRA NULL
SAI
PLANILHA COM OS DADOS PA... | 32.260274 | 120 | 0.525265 |
4d656673d216ce0be4fe64d21204d4348b38598e | 60 | py | Python | pyroombaadapter/__init__.py | ymollard/PyRoombaAdapter | a4b63e9b97ac2e27a8b472f596a1111eb3c254b9 | [
"MIT"
] | null | null | null | pyroombaadapter/__init__.py | ymollard/PyRoombaAdapter | a4b63e9b97ac2e27a8b472f596a1111eb3c254b9 | [
"MIT"
] | null | null | null | pyroombaadapter/__init__.py | ymollard/PyRoombaAdapter | a4b63e9b97ac2e27a8b472f596a1111eb3c254b9 | [
"MIT"
] | null | null | null | from pyroombaadapter.pyroombaadapter import PyRoombaAdapter
| 30 | 59 | 0.916667 |
4d66d1254740f9bb3086a9048334ac1404d1dea1 | 2,189 | py | Python | torchkit/head/localfc/curricularface.py | sarvex/TFace | b3d8a1392816e0d941425c30ad843d185e286431 | [
"PSF-2.0"
] | 764 | 2021-05-26T15:40:25.000Z | 2022-03-30T03:26:31.000Z | torchkit/head/localfc/curricularface.py | Charlee-du/TFace | 490cf90a1f042b86d7d03042f26d0a7cf6b1f0c0 | [
"PSF-2.0"
] | 45 | 2021-06-07T12:57:19.000Z | 2022-03-25T16:04:54.000Z | torchkit/head/localfc/curricularface.py | Charlee-du/TFace | 490cf90a1f042b86d7d03042f26d0a7cf6b1f0c0 | [
"PSF-2.0"
] | 139 | 2021-06-04T09:25:21.000Z | 2022-03-31T22:49:23.000Z | from __future__ import print_function
from __future__ import division
import torch
import torch.nn as nn
from torch.nn import Parameter
import math
from torchkit.util.utils import l2_norm
from torchkit.head.localfc.common import calc_logits
| 37.741379 | 108 | 0.634536 |
4d69852609dac731ffb1bbf364bfde4e5a34166e | 390 | py | Python | lmsapi/api_cash/views.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | lmsapi/api_cash/views.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | lmsapi/api_cash/views.py | orkasolutions-develop/lms-api-new | c9e5a2d98874a4a7415002397048258526a94644 | [
"MIT"
] | null | null | null | from core.views import BaseViewSet
from .models import Cash
from .serializers import CashSerializer
| 27.857143 | 66 | 0.717949 |
4d6a8be82f4b05e6fd5305e91364bc1db446eb68 | 3,730 | py | Python | front_end/migration_scripts/1_to_2.py | zacheliason/CodeBuddy | 18694771ccbb74e6966e08f1247aadda2d5d06f7 | [
"MIT"
] | null | null | null | front_end/migration_scripts/1_to_2.py | zacheliason/CodeBuddy | 18694771ccbb74e6966e08f1247aadda2d5d06f7 | [
"MIT"
] | 11 | 2020-06-12T19:13:12.000Z | 2021-08-28T23:47:57.000Z | front_end/migration_scripts/1_to_2.py | zacheliason/CodeBuddy | 18694771ccbb74e6966e08f1247aadda2d5d06f7 | [
"MIT"
] | 3 | 2020-05-12T16:54:16.000Z | 2021-04-30T16:19:46.000Z | import atexit
import sqlite3
import traceback
#################
import sys
sys.path.append('/app')
from helper import *
settings_dict = load_yaml_dict(read_file("/Settings.yaml"))
conn = sqlite3.connect(f"/database/{settings_dict['db_name']}", isolation_level=None, detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_C... | 41.910112 | 146 | 0.571314 |
4d6aba53be016dfafeb618c7972f5e2504c99521 | 809 | py | Python | examples/example_tbl.py | alexmaragko/pyPAHdb | 54cbf11748185d800e06cde603e93275bdd059f4 | [
"BSD-3-Clause"
] | 4 | 2018-03-13T23:44:48.000Z | 2022-01-28T15:27:24.000Z | examples/example_tbl.py | alexmaragko/pyPAHdb | 54cbf11748185d800e06cde603e93275bdd059f4 | [
"BSD-3-Clause"
] | 35 | 2018-03-14T22:47:03.000Z | 2021-10-21T12:08:38.000Z | examples/example_tbl.py | alexmaragko/pyPAHdb | 54cbf11748185d800e06cde603e93275bdd059f4 | [
"BSD-3-Clause"
] | 6 | 2018-03-13T17:50:17.000Z | 2021-07-16T02:42:50.000Z | #!/usr/bin/env python3
"""
example.py
Example of using pypahdb to decompose an astronomical PAH spectrum.
"""
import pkg_resources
from pypahdb.decomposer import Decomposer
from pypahdb.observation import Observation
if __name__ == '__main__':
# The sample data (IPAC table).
file_path = 'resources/sample_... | 27.896552 | 78 | 0.754017 |
4d6b1faba00fbb5e279ded48969722c18dfa7079 | 10,448 | py | Python | homeassistant/components/zha/core/registries.py | headcode/home-assistant | ef338fa8803c9691c545cb335503723d271c652c | [
"Apache-2.0"
] | null | null | null | homeassistant/components/zha/core/registries.py | headcode/home-assistant | ef338fa8803c9691c545cb335503723d271c652c | [
"Apache-2.0"
] | null | null | null | homeassistant/components/zha/core/registries.py | headcode/home-assistant | ef338fa8803c9691c545cb335503723d271c652c | [
"Apache-2.0"
] | null | null | null | """
Mapping registries for Zigbee Home Automation.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/zha/
"""
from .const import (
DEVICE_CLASS, SINGLE_INPUT_CLUSTER_DEVICE_CLASS,
SINGLE_OUTPUT_CLUSTER_DEVICE_CLASS, COMPONENT_CLUSTERS, HUMIDITY,
... | 38.411765 | 77 | 0.656011 |
4d6b39d23d412e44e53a7dcf8c8b360f9c624422 | 3,292 | py | Python | contrib/EISeg/eiseg/data/base.py | haoyuying/PaddleSeg | 6607d88df39500330a7b6ed160b4626d9f38df66 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-08-04T02:47:33.000Z | 2021-08-04T02:47:33.000Z | contrib/EISeg/eiseg/data/base.py | isshf/PaddleSeg | 6607d88df39500330a7b6ed160b4626d9f38df66 | [
"Apache-2.0"
] | null | null | null | contrib/EISeg/eiseg/data/base.py | isshf/PaddleSeg | 6607d88df39500330a7b6ed160b4626d9f38df66 | [
"Apache-2.0"
] | 2 | 2021-08-04T02:48:50.000Z | 2021-11-16T08:13:41.000Z | import random
import pickle
import cv2
import numpy as np
import paddle
import paddleseg.transforms as T
from .points_sampler import MultiPointSampler
| 33.591837 | 110 | 0.630316 |
4d6be0364dfeb7a10616e3c99f46ad7c4e3cb501 | 1,008 | py | Python | handler/createThumbnail.py | brainlife/ezbids | 886c69942d19d59dc48d5049f226bd7bb98a8cb8 | [
"MIT"
] | 7 | 2020-08-07T20:46:27.000Z | 2022-03-21T12:08:20.000Z | handler/createThumbnail.py | brainlife/ezbids | 886c69942d19d59dc48d5049f226bd7bb98a8cb8 | [
"MIT"
] | 36 | 2020-10-18T15:17:17.000Z | 2022-03-31T14:41:26.000Z | handler/createThumbnail.py | brainlife/ezbids | 886c69942d19d59dc48d5049f226bd7bb98a8cb8 | [
"MIT"
] | 4 | 2020-07-29T16:48:55.000Z | 2021-11-17T22:13:19.000Z | #!/usr/bin/env python3
"""
Created on Wed Feb 17 08:32:55 2021
Deface anatomical image(s)
@author: dlevitas
"""
import os, sys
import nibabel as nib
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.style.use('dark_background')
from math import floor
os.environ[ 'MPLCONFIGDIR' ] = '/tmp... | 24.585366 | 71 | 0.717262 |
4d6cac5c33887bd192cb3cbbad427835d929fc30 | 4,511 | py | Python | IPython/core/events.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | 1 | 2020-12-18T01:07:55.000Z | 2020-12-18T01:07:55.000Z | IPython/core/events.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | IPython/core/events.py | pyarnold/ipython | c4797f7f069d0a974ddfa1e4251c7550c809dba0 | [
"BSD-3-Clause-Clear"
] | null | null | null | """Infrastructure for registering and firing callbacks on application events.
Unlike :mod:`IPython.core.hooks`, which lets end users set single functions to
be called at specific times, or a collection of alternative methods to try,
callbacks are designed to be used by extension authors. A number of callbacks
can be r... | 30.275168 | 94 | 0.643095 |
4d6e2c5b304d30fabd691d7b3a8dc9cf98b02a31 | 290 | py | Python | api/routes/topic.py | quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS | 445de0d169fd2b0005726f8d12b5844ea3a69ca4 | [
"Unlicense"
] | null | null | null | api/routes/topic.py | quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS | 445de0d169fd2b0005726f8d12b5844ea3a69ca4 | [
"Unlicense"
] | null | null | null | api/routes/topic.py | quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS | 445de0d169fd2b0005726f8d12b5844ea3a69ca4 | [
"Unlicense"
] | null | null | null | from app import app
from services import TopicServices
from flask import jsonify, request | 32.222222 | 48 | 0.737931 |
4d6eb4361eb99ba59182cf00398ec7253f4ded06 | 4,602 | py | Python | test/functional/feature_uaclient.py | syedrizwanmy/bitcoin-abc | 1241ef50e90d183421504fd783b9fd4dd6c1386a | [
"MIT"
] | 1,266 | 2017-05-02T07:02:29.000Z | 2022-03-31T17:15:44.000Z | test/functional/feature_uaclient.py | EGYVOICE/bitcoin-abc-avalanche | e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c | [
"MIT"
] | 426 | 2017-05-07T12:40:52.000Z | 2022-03-29T18:12:01.000Z | test/functional/feature_uaclient.py | EGYVOICE/bitcoin-abc-avalanche | e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c | [
"MIT"
] | 721 | 2017-05-07T10:36:11.000Z | 2022-03-15T09:07:48.000Z | #!/usr/bin/env python3
# Copyright (c) 2021 The Bitcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the -uaclientname and -uaclientversion option."""
import re
from test_framework.test_framework import Bitc... | 48.442105 | 156 | 0.63342 |
4d6f1a664c1307c758152f80bcc30999ef1ce302 | 5,619 | py | Python | tests/test_dispersion_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 1 | 2021-08-04T05:09:16.000Z | 2021-08-04T05:09:16.000Z | tests/test_dispersion_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 4 | 2021-08-16T07:15:10.000Z | 2021-09-04T08:47:47.000Z | tests/test_dispersion_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 1 | 2021-08-04T05:09:13.000Z | 2021-08-04T05:09:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import annotations
import unittest
import numpy as np
import numpy.testing as npt
import pandas as pd
from riip.material import RiiMaterial
if __name__ == "__main__":
unittest.main()
| 36.487013 | 88 | 0.433707 |
4d71a5d711522e37eda93e8de3bbe07019f81e95 | 3,832 | py | Python | neutron/tests/unit/services/logapi/rpc/test_server.py | mcadariu/neutron | 35494af5a25efb8b314941ab85b44923654f6acc | [
"Apache-2.0"
] | 1 | 2018-07-04T07:59:31.000Z | 2018-07-04T07:59:31.000Z | neutron/tests/unit/services/logapi/rpc/test_server.py | ljzjohnson/neutron | d78664321482c15981a09642985a540195e754e3 | [
"Apache-2.0"
] | null | null | null | neutron/tests/unit/services/logapi/rpc/test_server.py | ljzjohnson/neutron | d78664321482c15981a09642985a540195e754e3 | [
"Apache-2.0"
] | 1 | 2018-08-28T17:13:16.000Z | 2018-08-28T17:13:16.000Z | # Copyright (c) 2017 Fujitsu Limited
# 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
#
# Unless requi... | 40.765957 | 79 | 0.686587 |