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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0343d8a19a30189bafdda72fb63bd75d656dfc89 | 1,061 | py | Python | image_collection/migrations/0004_auto_20160113_0458.py | bitmazk/django-image-collection | 73b05ff825d74bdab64609b531d5305f9332b702 | [
"MIT"
] | null | null | null | image_collection/migrations/0004_auto_20160113_0458.py | bitmazk/django-image-collection | 73b05ff825d74bdab64609b531d5305f9332b702 | [
"MIT"
] | null | null | null | image_collection/migrations/0004_auto_20160113_0458.py | bitmazk/django-image-collection | 73b05ff825d74bdab64609b531d5305f9332b702 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import image_collection.models
| 33.15625 | 193 | 0.629595 |
0344447ad9ea2ba9e5f78647ef0e90f1b7786110 | 7,913 | py | Python | hw1/hollygrimm_behavior_cloner.py | andyk/homework | 6f31240e7b16bb94992a87fc764839591bd034af | [
"MIT"
] | null | null | null | hw1/hollygrimm_behavior_cloner.py | andyk/homework | 6f31240e7b16bb94992a87fc764839591bd034af | [
"MIT"
] | null | null | null | hw1/hollygrimm_behavior_cloner.py | andyk/homework | 6f31240e7b16bb94992a87fc764839591bd034af | [
"MIT"
] | null | null | null | # Copying Holly Grimm's solution https://github.com/hollygrimm/cs294-homework/blob/master/hw1/bc.py
# Copy and pasting and merging it into a copy of my behavior_cloner.py code.
import argparse
import pickle
import os
import sys
import tensorflow.compat.v1 as tf
import numpy as np
from sklearn.model_selection import tr... | 41.429319 | 121 | 0.647289 |
03470a7c37dd728524a1ea76f0cbdccac1e546fa | 4,397 | py | Python | tree/generate.py | xi-studio/DiscreteNN | 85468da14bddfe4cbe2e07071454cdbc52ef915f | [
"MIT"
] | 1 | 2019-08-15T09:43:21.000Z | 2019-08-15T09:43:21.000Z | tree/generate.py | xi-studio/DiscreteNN | 85468da14bddfe4cbe2e07071454cdbc52ef915f | [
"MIT"
] | null | null | null | tree/generate.py | xi-studio/DiscreteNN | 85468da14bddfe4cbe2e07071454cdbc52ef915f | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
import torch
import torch.utils.data
from torch import nn, optim
from torch.nn import functional as F
from torchvision import datasets, transforms
from torchvision.utils import save_image
import numpy as np
parser = argparse.ArgumentParser(description='VAE MNIST ... | 28.185897 | 83 | 0.56766 |
0347e93cbe7693fc7a1ee576744efea58d5d82da | 4,760 | py | Python | wepy/io/yahoo.py | Jul13/wepy | 3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7 | [
"Apache-2.0"
] | null | null | null | wepy/io/yahoo.py | Jul13/wepy | 3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7 | [
"Apache-2.0"
] | null | null | null | wepy/io/yahoo.py | Jul13/wepy | 3f6acc7ecb4c9bcadf366d7ed1752660838d9dd7 | [
"Apache-2.0"
] | null | null | null | # Author: Gheorghe Postelnicu
from datetime import date
import pandas as pd
from io import BytesIO
from urllib.request import urlopen
| 36.335878 | 112 | 0.563655 |
0348bfc3aede7a83ba1e69a06410cf061126d983 | 1,192 | py | Python | corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | from django.db import migrations, models
| 39.733333 | 129 | 0.567114 |
0349c26375f078381cec8ba16ba182742669965f | 397 | py | Python | tests/data_elements/test_person_name.py | GalBenZvi/dicom_parser | fc3e892ebf99c4e5d62cb5e7de7df341baf445fe | [
"MIT"
] | 11 | 2020-08-08T21:41:54.000Z | 2021-07-27T12:48:31.000Z | tests/data_elements/test_person_name.py | GalBenZvi/dicom_parser | fc3e892ebf99c4e5d62cb5e7de7df341baf445fe | [
"MIT"
] | 45 | 2020-03-03T14:32:16.000Z | 2021-07-30T16:42:17.000Z | tests/data_elements/test_person_name.py | GalBenZvi/dicom_parser | fc3e892ebf99c4e5d62cb5e7de7df341baf445fe | [
"MIT"
] | 6 | 2021-10-19T09:19:22.000Z | 2022-03-13T19:26:10.000Z | """
Definition of the :class:`PersonNameTestCase` class.
"""
from dicom_parser.data_elements.person_name import PersonName
from tests.test_data_element import DataElementTestCase
| 23.352941 | 63 | 0.755668 |
034a4ded8103d6d6dff5e4e2de1713b5fd8b65e6 | 1,627 | py | Python | physalia/fixtures/models.py | luiscruz/physalia | 364951d94e02b60092785db46a8c7a7299ffe2a4 | [
"MIT"
] | 13 | 2017-02-14T10:35:43.000Z | 2021-12-11T17:33:36.000Z | physalia/fixtures/models.py | luiscruz/physalia | 364951d94e02b60092785db46a8c7a7299ffe2a4 | [
"MIT"
] | 3 | 2020-02-27T12:07:21.000Z | 2021-07-25T12:52:36.000Z | physalia/fixtures/models.py | luiscruz/physalia | 364951d94e02b60092785db46a8c7a7299ffe2a4 | [
"MIT"
] | 3 | 2019-10-06T14:01:58.000Z | 2020-03-13T15:40:30.000Z | """Fixtures for models module."""
from physalia.models import Measurement
import numpy
def create_measurement(use_case='login',
app_pkg='com.package',
duration=2,
energy_consumption=30):
"""Fake data for measurement."""
return Measurement(
... | 33.204082 | 70 | 0.543331 |
034a6ddc353111fc7c294d34a5c01f3d0f1260d3 | 1,621 | py | Python | DL_Models/tf_models/Xception/Xception.py | Zensho/CS91-Proj | 876d5e977800af42382f8c6398eb62ccff202497 | [
"MIT"
] | null | null | null | DL_Models/tf_models/Xception/Xception.py | Zensho/CS91-Proj | 876d5e977800af42382f8c6398eb62ccff202497 | [
"MIT"
] | null | null | null | DL_Models/tf_models/Xception/Xception.py | Zensho/CS91-Proj | 876d5e977800af42382f8c6398eb62ccff202497 | [
"MIT"
] | 1 | 2022-03-09T14:18:37.000Z | 2022-03-09T14:18:37.000Z | import tensorflow as tf
from config import config
from utils.utils import *
import logging
from DL_Models.tf_models.ConvNet import ConvNet
| 60.037037 | 164 | 0.732264 |
034fd7638dab87452398628fd889166df2e7b69c | 909 | py | Python | src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py | BlockResearchGroup/compas_3gs | 66bd1545ce0f0034bd629753da9b8cd45fff6abd | [
"MIT"
] | 9 | 2020-04-29T03:21:45.000Z | 2022-01-23T02:54:27.000Z | src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py | BlockResearchGroup/compas_3gs | 66bd1545ce0f0034bd629753da9b8cd45fff6abd | [
"MIT"
] | 8 | 2020-01-30T15:17:17.000Z | 2021-09-28T16:56:42.000Z | src/compas_3gs/ui/Rhino/3GS/dev/TGS_settings_cmd.py | BlockResearchGroup/compas_3gs | 66bd1545ce0f0034bd629753da9b8cd45fff6abd | [
"MIT"
] | 5 | 2020-03-31T12:53:29.000Z | 2020-12-07T21:57:50.000Z | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import scriptcontext as sc
import compas_rhino
from compas_3gs.rhino import SettingsForm
from compas_3gs.rhino import ForceVolMeshObject
from compas_3gs.rhino import FormNetworkObject
__commandname__ = "TGS... | 23.921053 | 124 | 0.624862 |
0354caf01e13d2c8ffb045f382e909588ad189a5 | 786 | py | Python | setup.py | rrosajp/xdcc | e8ffa143cd48745824d077a686bfc0b3f0af6193 | [
"MIT"
] | 7 | 2020-06-03T06:24:23.000Z | 2022-03-09T13:00:54.000Z | setup.py | thiagotps/xdcc | e8ffa143cd48745824d077a686bfc0b3f0af6193 | [
"MIT"
] | 3 | 2020-09-26T12:52:43.000Z | 2022-01-22T23:17:19.000Z | setup.py | rrosajp/xdcc | e8ffa143cd48745824d077a686bfc0b3f0af6193 | [
"MIT"
] | 4 | 2020-09-26T01:17:00.000Z | 2022-02-06T19:22:04.000Z | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="xdcc",
version="0.0.3",
author="Thiago T. P. Silva",
author_email="thiagoteodoro501@gmail.com",
description="A simple XDCC downloader written in python3",
long_description=long_descrip... | 30.230769 | 66 | 0.661578 |
035543c446ab93f942c4299a0b653ef67467158d | 9,319 | py | Python | draw-tsp-path.py | wenderlemes/gcc218_trabalho_pratico | e57aab3c1ebcbe92683052994de646d0f76e8eb8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | draw-tsp-path.py | wenderlemes/gcc218_trabalho_pratico | e57aab3c1ebcbe92683052994de646d0f76e8eb8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | draw-tsp-path.py | wenderlemes/gcc218_trabalho_pratico | e57aab3c1ebcbe92683052994de646d0f76e8eb8 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | """Modified code from https://developers.google.com/optimization/routing/tsp#or-tools """
# Copyright Matthew Mack (c) 2020 under CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/
from __future__ import print_function
import math
from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_sol... | 36.402344 | 111 | 0.65962 |
0355954797eb9e1fe29d671274bf1dbde8b9e917 | 1,162 | py | Python | tests/test_billing.py | payload-code/payload-python | d7c07c679781021ff6e27c13feae22dec0f7c1bc | [
"MIT"
] | 5 | 2020-07-11T14:07:53.000Z | 2021-10-30T20:05:14.000Z | tests/test_billing.py | payload-code/payload-python | d7c07c679781021ff6e27c13feae22dec0f7c1bc | [
"MIT"
] | 5 | 2019-12-21T17:46:09.000Z | 2021-08-14T16:26:39.000Z | tests/test_billing.py | payload-code/payload-python | d7c07c679781021ff6e27c13feae22dec0f7c1bc | [
"MIT"
] | 2 | 2019-09-16T07:32:07.000Z | 2021-01-07T11:42:42.000Z | import pytest
import payload as pl
from .fixtures import Fixtures
| 29.794872 | 70 | 0.722892 |
0356a1edf61d31074a4a2069b0d6dd1a80c5ea43 | 5,415 | py | Python | planners/simple.py | vincekurtz/quadruped_drake | 0fed14eeb7ba33144ab740bc9afa412398f70b7e | [
"MIT"
] | 9 | 2020-09-24T19:40:49.000Z | 2022-03-23T17:24:53.000Z | planners/simple.py | vincekurtz/quadruped_drake | 0fed14eeb7ba33144ab740bc9afa412398f70b7e | [
"MIT"
] | 1 | 2022-03-15T18:42:44.000Z | 2022-03-21T14:43:34.000Z | planners/simple.py | vincekurtz/quadruped_drake | 0fed14eeb7ba33144ab740bc9afa412398f70b7e | [
"MIT"
] | 1 | 2021-03-30T00:06:20.000Z | 2021-03-30T00:06:20.000Z | import numpy as np
from pydrake.all import *
| 38.678571 | 97 | 0.597599 |
0357185cdbc8f0ba6e573ad391b048407dabd43e | 1,027 | py | Python | script/shaderutil.py | xzfn/toy | 5d4f6e631c662634a059a4a178174032b01cc81a | [
"MIT"
] | null | null | null | script/shaderutil.py | xzfn/toy | 5d4f6e631c662634a059a4a178174032b01cc81a | [
"MIT"
] | null | null | null | script/shaderutil.py | xzfn/toy | 5d4f6e631c662634a059a4a178174032b01cc81a | [
"MIT"
] | null | null | null |
import os
import shadercompiler
| 31.121212 | 65 | 0.666991 |
0358f73562d2122131efd6aa840de358e08667b3 | 4,060 | py | Python | accounting/migrations/0001_initial.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-10-25T13:08:04.000Z | 2020-01-05T11:29:18.000Z | accounting/migrations/0001_initial.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 9 | 2020-05-10T10:13:56.000Z | 2022-03-11T23:33:52.000Z | accounting/migrations/0001_initial.py | bobjiangps/django-blog | 6afd36fa96c5a027546575b362b0a481c5d7c1a5 | [
"MIT"
] | 3 | 2019-02-11T02:55:51.000Z | 2020-01-05T11:29:20.000Z | # Generated by Django 2.2.13 on 2021-01-22 17:41
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
| 45.617978 | 150 | 0.57069 |
035a2fb7d90dd4fec6b4d13bde7778a72b148576 | 373 | py | Python | acess phone.py | Soosai007/Python-projects- | 3cd61e7019a77ccf46a7805827bef2ac6371af3a | [
"MIT"
] | null | null | null | acess phone.py | Soosai007/Python-projects- | 3cd61e7019a77ccf46a7805827bef2ac6371af3a | [
"MIT"
] | null | null | null | acess phone.py | Soosai007/Python-projects- | 3cd61e7019a77ccf46a7805827bef2ac6371af3a | [
"MIT"
] | null | null | null | import urllib.request
import cv2
import numpy as np
import time
URL = "http://192.168.1.3:8080/shot.jpg"
while True:
img_arr = np.array(bytearray(urllib.request.urlopen(URL).read()),dtype=np.uint8)
img = cv2.imdecode(img_arr,-1)
cv2.imshow('IPWebcam',img)
q = cv2.waitKey(1)
if q == ord("q"... | 23.3125 | 85 | 0.632708 |
035a72cf11a14ddfaed1b39b4cd2c2f14c4da51e | 2,046 | py | Python | GeneralizeDEMConsole.py | tsamsonov/generalize-dem | 4e180944cd3488654240d47464cf8a0b8a7bc640 | [
"Python-2.0",
"OLDAP-2.7"
] | 16 | 2017-07-10T15:28:41.000Z | 2021-12-30T16:25:06.000Z | GeneralizeDEMConsole.py | tsamsonov/Small-Scale-Terrain-Generalization | 4e180944cd3488654240d47464cf8a0b8a7bc640 | [
"Python-2.0",
"OLDAP-2.7"
] | 4 | 2017-07-17T13:35:25.000Z | 2019-12-02T20:15:28.000Z | GeneralizeDEMConsole.py | tsamsonov/generalize-dem | 4e180944cd3488654240d47464cf8a0b8a7bc640 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | import sys
import time
import arcpy
import traceback
import GeneralizeDEM
if __name__ == '__main__':
# SET PARAMETERS HERE
# --------------------------------------------------------------------
demdataset = 'X:/Work/Scripts & Tools/MY/DEMGEN/mistral'
marine = 'X:/Work/Scripts & Tools/MY/DEMGEN/DEMGENE... | 31.476923 | 79 | 0.540078 |
035bef3fbb61b8fe7c70ea62e4f07f8bb9692def | 559 | py | Python | lang/jquery_python/read/json_python_read.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | 3 | 2015-05-12T16:44:27.000Z | 2021-02-09T00:39:24.000Z | lang/jquery_python/read/json_python_read.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | lang/jquery_python/read/json_python_read.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | #! /usr/bin/python3
# -*- coding: utf-8 -*-
#
# json_python_read.py
#
# Jul/25/2014
#
# ---------------------------------------------------------------------
import sys
sys.path.append ("/var/www/data_base/common/python_common")
#
from file_io import file_to_str_proc
#
# --------------------------------------------... | 23.291667 | 71 | 0.429338 |
035c76dc73552701e77d5f647636dafc183b09c4 | 534 | py | Python | reports/migrations/0097_auto_20171006_0951.py | CMU-TRP/podd-api | 6eb5c4598f848f75d131287163cd9babf2a0a0fc | [
"MIT"
] | 3 | 2020-04-26T06:28:50.000Z | 2021-04-05T08:02:26.000Z | reports/migrations/0097_auto_20171006_0951.py | CMU-TRP/podd-api | 6eb5c4598f848f75d131287163cd9babf2a0a0fc | [
"MIT"
] | 10 | 2020-06-05T17:36:10.000Z | 2022-03-11T23:16:42.000Z | reports/migrations/0097_auto_20171006_0951.py | CMU-TRP/podd-api | 6eb5c4598f848f75d131287163cd9babf2a0a0fc | [
"MIT"
] | 5 | 2021-04-08T08:43:49.000Z | 2021-11-27T06:36:46.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 25.428571 | 130 | 0.644195 |
035ca68338c7107344756496893369eeae016a6c | 513 | py | Python | server/functions/calcdistance.py | yrpmsg/SCSV15 | bbe953d676c082f4a30c4d5e0e0cbfcc624d969c | [
"Apache-2.0"
] | null | null | null | server/functions/calcdistance.py | yrpmsg/SCSV15 | bbe953d676c082f4a30c4d5e0e0cbfcc624d969c | [
"Apache-2.0"
] | null | null | null | server/functions/calcdistance.py | yrpmsg/SCSV15 | bbe953d676c082f4a30c4d5e0e0cbfcc624d969c | [
"Apache-2.0"
] | null | null | null | from math import radians, cos, sin, asin, sqrt, floor, pow
import math
lat1 = 11.00461011
lon1 = 76.95691543
lat2 = 11.0070471
lon2 = 76.96110704
lon1 = radians(lon1)
lon2 = radians(lon2)
lat1 = radians(lat1)
lat2 = radians(lat2)
# Haversine formula
dlon = lon2 - lon1
dlat = lat2 - lat1
a = sin(... | 19 | 63 | 0.62768 |
035cf0e95ad473da5f8cd509f8390672c271dc26 | 3,106 | py | Python | xmppserver/xmpp/mechanisms.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | xmppserver/xmpp/mechanisms.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | xmppserver/xmpp/mechanisms.py | ovekaaven/django-xmpp-server | aa391173b4cdfc98e2f6de29d24aa4273b3620c3 | [
"MIT"
] | null | null | null | from slixmpp.exceptions import XMPPError
from ..conf import settings
mechanisms = {}
def get_sasl_by_name(name):
return mechanisms.get(name, None)
| 26.775862 | 75 | 0.603348 |
035fd4e11ff8cdfd3b51151077ef144b5f439568 | 108 | py | Python | Python/basic/django/minimal/echo/views.py | caa06d9c/Python-examples | 9d90b9a9adfc343f9fdfab814cfc2b05219d6920 | [
"MIT"
] | 5 | 2019-10-28T09:56:26.000Z | 2021-09-03T04:51:18.000Z | Python/basic/django/minimal/echo/views.py | caa06d9c/Python-examples | 9d90b9a9adfc343f9fdfab814cfc2b05219d6920 | [
"MIT"
] | null | null | null | Python/basic/django/minimal/echo/views.py | caa06d9c/Python-examples | 9d90b9a9adfc343f9fdfab814cfc2b05219d6920 | [
"MIT"
] | 4 | 2019-10-28T09:56:30.000Z | 2021-09-03T04:51:23.000Z | from django.http import HttpResponse
| 18 | 48 | 0.787037 |
0362625fd6644541d017afd28f886693da68a5e3 | 7,625 | py | Python | arcade/examples/sprite_rotate_tank.py | DragonMoffon/arcade | 98fb1809363ccc537d6852be487aeae0b5fb7fb8 | [
"MIT"
] | null | null | null | arcade/examples/sprite_rotate_tank.py | DragonMoffon/arcade | 98fb1809363ccc537d6852be487aeae0b5fb7fb8 | [
"MIT"
] | null | null | null | arcade/examples/sprite_rotate_tank.py | DragonMoffon/arcade | 98fb1809363ccc537d6852be487aeae0b5fb7fb8 | [
"MIT"
] | null | null | null | """
Sprite Rotation With A Tank.
Vehicles or tower defense turrets can have parts
that can rotate toward targets.
These parts are usually represented with separate sprites
drawn relative to attachment points on the main body.
Because these sprites are usually asymmetrical,
we have to rotate them around
their attachme... | 37.377451 | 106 | 0.610098 |
03636efc34bffdf5e5bc02cd6599c5ce0ac214e9 | 4,913 | py | Python | api/modules/github/views.py | prabhakar267/travel-mate-server | 2e0aa7c6ac9963c1ee95bda5966be01293935ded | [
"MIT"
] | 43 | 2018-05-23T10:03:40.000Z | 2021-09-02T15:55:52.000Z | api/modules/github/views.py | prabhakar267/travel-mate-server | 2e0aa7c6ac9963c1ee95bda5966be01293935ded | [
"MIT"
] | 141 | 2018-05-24T16:03:12.000Z | 2021-04-30T23:47:59.000Z | api/modules/github/views.py | prabhakar267/travel-mate-server | 2e0aa7c6ac9963c1ee95bda5966be01293935ded | [
"MIT"
] | 77 | 2018-06-13T13:51:31.000Z | 2021-06-16T16:10:18.000Z | import datetime
import requests
import requests_cache
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from api.commonresponses import DOWNSTREAM_ERROR_RESPONSE
from api.modules.github import constants
from api.modules.github.github_response... | 36.664179 | 101 | 0.612864 |
0363aea6f2b2de0d16d88b97f4debf89e249ba5b | 1,574 | py | Python | pythonfiles/testphone_pythonfiles/test_phone/music/test.py | Huyuxuan-github/wica | f87b22ce4c773ce96b9e583ebcd5bf36469e32c7 | [
"WTFPL"
] | 1 | 2022-03-04T01:03:50.000Z | 2022-03-04T01:03:50.000Z | pythonfiles/testphone_pythonfiles/test_phone/music/test.py | Huyuxuan-github/wica | f87b22ce4c773ce96b9e583ebcd5bf36469e32c7 | [
"WTFPL"
] | null | null | null | pythonfiles/testphone_pythonfiles/test_phone/music/test.py | Huyuxuan-github/wica | f87b22ce4c773ce96b9e583ebcd5bf36469e32c7 | [
"WTFPL"
] | 1 | 2022-03-04T01:03:53.000Z | 2022-03-04T01:03:53.000Z | import os
# import pygame
from mutagen.mp3 import MP3
import time
from classuiui import MyFrame1
import wx
# import thread
import threading
import multiprocessing
from playsound import playsound
from test001 import MyFrame1
# file="cd&&cd music&&cd&&StarSky.mp3"
# os.system(file)
# pygame.mixer.init()
# audio = MP3("... | 21.561644 | 130 | 0.629606 |
03653eb422190ef08509f026b301a5cf2cb389bc | 787 | py | Python | demo/testout.py | yvr1037/fenghuo-project-of-mmdet | 7d51c087aa36fd39c8e844fbbe15a28e952a22a5 | [
"Apache-2.0"
] | 2 | 2021-12-24T13:22:51.000Z | 2022-01-23T15:36:22.000Z | demo/testout.py | yvr1037/fenghuo-project-of-mmdet | 7d51c087aa36fd39c8e844fbbe15a28e952a22a5 | [
"Apache-2.0"
] | null | null | null | demo/testout.py | yvr1037/fenghuo-project-of-mmdet | 7d51c087aa36fd39c8e844fbbe15a28e952a22a5 | [
"Apache-2.0"
] | null | null | null | import mmcv
import os
import numpy as np
from mmcv.runner import load_checkpoint
from mmdet.models import build_detector
from mmdet.apis import init_detector, inference_detector
import torch
# device = torch.device("cpu")
# os.environ["CUDA_VISIBLE_DEVICES"]=""
# import pdb; pdb.set_trace()
config_file = '../configs/... | 32.791667 | 93 | 0.787802 |
036543a1fbcdcc35bf430e0b5d4150196450f6d6 | 4,910 | py | Python | mkpy3/mkpy3_finder_chart_survey_fits_image_get_v1.py | KenMighell/mkpy3 | 598126136b43fa93bc4aded5db65a1251d60a9ba | [
"MIT"
] | null | null | null | mkpy3/mkpy3_finder_chart_survey_fits_image_get_v1.py | KenMighell/mkpy3 | 598126136b43fa93bc4aded5db65a1251d60a9ba | [
"MIT"
] | null | null | null | mkpy3/mkpy3_finder_chart_survey_fits_image_get_v1.py | KenMighell/mkpy3 | 598126136b43fa93bc4aded5db65a1251d60a9ba | [
"MIT"
] | 1 | 2020-11-01T18:37:53.000Z | 2020-11-01T18:37:53.000Z | #!/usr/bin/env python3
# file://mkpy3_finder_chart_survey_fits_image_get_v1.py
# Kenneth Mighell
# SETI Institute
# =============================================================================
def mkpy3_finder_chart_survey_fits_image_get_v1(
ra_deg=None,
dec_deg=None,
radius_arcmin=None,
survey=No... | 26.684783 | 87 | 0.627495 |
0366c6b949b300f8072c9d5d7dfdc2a101c2a39c | 1,737 | py | Python | marathontcp.py | StevenPG/JMXMarathonDataAggregator | a976edc2ea27255dca36f584923e3a06dbdec8c6 | [
"MIT"
] | null | null | null | marathontcp.py | StevenPG/JMXMarathonDataAggregator | a976edc2ea27255dca36f584923e3a06dbdec8c6 | [
"MIT"
] | null | null | null | marathontcp.py | StevenPG/JMXMarathonDataAggregator | a976edc2ea27255dca36f584923e3a06dbdec8c6 | [
"MIT"
] | null | null | null | """
marathontcp.py
Author: Steven Gantz
Date: 11/22/2016
These two classes are used as custom TCP Servers and its accompanying
handler that defines each request. These class are what forward the data
from the preset /metrics endpoints in the scaled marathon instances directly
to the TCP servers running from this appli... | 40.395349 | 110 | 0.727691 |
03672787b107ccc21fb75165c7801c0b958f1461 | 4,600 | py | Python | tests/test_io.py | Laharah/horcrux | 68f7c6aad0678b39bae888f0dfeb9d1926501a53 | [
"MIT"
] | null | null | null | tests/test_io.py | Laharah/horcrux | 68f7c6aad0678b39bae888f0dfeb9d1926501a53 | [
"MIT"
] | null | null | null | tests/test_io.py | Laharah/horcrux | 68f7c6aad0678b39bae888f0dfeb9d1926501a53 | [
"MIT"
] | null | null | null | import pytest
import io
import random
from copy import deepcopy
from horcrux import io as hio
from horcrux.hrcx_pb2 import StreamBlock
from horcrux.sss import Share, Point
def test_init_horcrux():
h = hio.Horcrux(io.BytesIO())
def test_horcrux__write_bytes(hx):
hx._write_bytes(b'123')
assert hx.str... | 27.218935 | 88 | 0.668696 |
0369ea60607087cd24210a21d5453a467593c1f0 | 1,817 | py | Python | template/diff.py | Nauja/Entropy | e418a7db68a55f17fb3e6c0c3b5018aed7002d4d | [
"MIT"
] | null | null | null | template/diff.py | Nauja/Entropy | e418a7db68a55f17fb3e6c0c3b5018aed7002d4d | [
"MIT"
] | null | null | null | template/diff.py | Nauja/Entropy | e418a7db68a55f17fb3e6c0c3b5018aed7002d4d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
A Pandoc filter to create non-code diffs. `add` and `rm` are the classes that
can be added to a `Div` or a `Span`. `add` colors the text green, and `rm`
colors the text red. For HTML, `add` also underlines the text, and `rm` also
strikes out the text.
# Example
## `Div`
Unchanged portion... | 25.236111 | 79 | 0.555861 |
036a6e6b57ea2d5221b7c56f2e175c6cb9c0ca3b | 1,304 | py | Python | paxful/exceptions.py | tholness/Paxful-API-Wrapper | c66620aa2ef40b97f2794998c63a6bd7504cea3c | [
"MIT"
] | null | null | null | paxful/exceptions.py | tholness/Paxful-API-Wrapper | c66620aa2ef40b97f2794998c63a6bd7504cea3c | [
"MIT"
] | null | null | null | paxful/exceptions.py | tholness/Paxful-API-Wrapper | c66620aa2ef40b97f2794998c63a6bd7504cea3c | [
"MIT"
] | 3 | 2020-08-09T17:02:06.000Z | 2021-04-13T17:45:39.000Z | from __future__ import absolute_import, unicode_literals
| 28.977778 | 61 | 0.692485 |
036aded2a5c768db98446d290a146373009c9d4d | 382 | py | Python | examples/mesoscope_anatomical_high_mag.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | examples/mesoscope_anatomical_high_mag.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | examples/mesoscope_anatomical_high_mag.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | """
Displays anatomical data from the mesoscope
"""
from skimage.io import imread
from napari import Viewer, gui_qt
stack = imread('data/mesoscope/anatomical/volume_zoomed.tif')
with gui_qt():
# create an empty viewer
viewer = Viewer()
# add the image
layer = viewer.add_image(stack, name='stack', c... | 22.470588 | 112 | 0.698953 |
036b561ed932ab60b4b97fb19bd96ddc0a940784 | 246 | py | Python | lab_restful/app/models/Paper.py | afish1001/lab_server | c6a2b09834d73078ab52e2965849cd41ba795b4b | [
"MIT"
] | null | null | null | lab_restful/app/models/Paper.py | afish1001/lab_server | c6a2b09834d73078ab52e2965849cd41ba795b4b | [
"MIT"
] | null | null | null | lab_restful/app/models/Paper.py | afish1001/lab_server | c6a2b09834d73078ab52e2965849cd41ba795b4b | [
"MIT"
] | null | null | null | from .. import utils
from ..config import table
paper = Paper()
| 16.4 | 66 | 0.642276 |
036bed92a5a2372689c9a48c62d3c2e337ec2c9b | 1,459 | py | Python | cogs/logs.py | CoffeeOrg/Coffee | 73bf194c3811bb9cf776a0a4db4c6234e471d5ce | [
"MIT"
] | 6 | 2021-02-06T05:43:40.000Z | 2021-08-01T22:55:33.000Z | cogs/logs.py | elfw/Coffee | e83868a323084b96b0df3f916090dd17ce34de93 | [
"MIT"
] | 2 | 2021-02-06T07:18:10.000Z | 2021-02-06T18:42:07.000Z | cogs/logs.py | elfw/Coffee | e83868a323084b96b0df3f916090dd17ce34de93 | [
"MIT"
] | 10 | 2021-02-06T03:31:26.000Z | 2021-09-22T04:00:23.000Z | import discord
from discord.ext import commands
from utils.database import sqlite, create_tables
| 29.77551 | 154 | 0.651131 |
036c2e095d7edeb0d2e2e4cd895d6ea7fe8b4740 | 1,679 | py | Python | DataProcessor.py | harrys17451/CryptocurrencyPrediction | 4833130c59618f0b1d060596fd39a290e9a6ed97 | [
"MIT"
] | 669 | 2017-12-31T01:50:30.000Z | 2022-03-30T00:01:57.000Z | DataProcessor.py | mildronize/CryptocurrencyPrediction | 7ec542bcd6bf960b115638484737f097120badcd | [
"MIT"
] | 11 | 2018-01-08T15:40:55.000Z | 2021-11-30T08:00:49.000Z | DataProcessor.py | mildronize/CryptocurrencyPrediction | 7ec542bcd6bf960b115638484737f097120badcd | [
"MIT"
] | 262 | 2018-01-01T14:51:13.000Z | 2022-03-17T16:59:55.000Z |
# coding: utf-8
# In[2]:
import pandas as pd
import numpy as np
import h5py
# In[24]:
input_step_size = 50
output_size = 30
sliding_window = False
file_name= 'bitcoin2012_2017_50_30_prediction.h5'
# In[19]:
df = pd.read_csv('data/bitstampUSD_1-min_data_2012-01-01_to_2017-05-31.csv').dropna().tail(1000000)
... | 23.647887 | 99 | 0.705777 |
036ce936f710a0a2ff80b56468ee08342b668842 | 776 | py | Python | github api example.py | LincT/PythonExamples | a0b61e8c60cd0754f2406b6b72fcd562667c9bb0 | [
"MIT"
] | null | null | null | github api example.py | LincT/PythonExamples | a0b61e8c60cd0754f2406b6b72fcd562667c9bb0 | [
"MIT"
] | null | null | null | github api example.py | LincT/PythonExamples | a0b61e8c60cd0754f2406b6b72fcd562667c9bb0 | [
"MIT"
] | null | null | null | import requests
if __name__ == '__main__':
main()
| 29.846154 | 166 | 0.693299 |
036da6e027a7036bf7b62f5adb2656c36fb9601d | 325 | py | Python | elibrary/migrations/0011_remove_book_tag.py | soma115/wikikracja | 7715ca1daa4ca09888e1c7389ed5f8a2df29898b | [
"MIT"
] | 7 | 2016-02-21T17:25:54.000Z | 2021-10-09T19:36:10.000Z | elibrary/migrations/0011_remove_book_tag.py | soma115/wikikracja | 7715ca1daa4ca09888e1c7389ed5f8a2df29898b | [
"MIT"
] | 19 | 2020-02-11T23:55:01.000Z | 2022-03-31T18:11:56.000Z | elibrary/migrations/0011_remove_book_tag.py | soma115/wikikracja | 7715ca1daa4ca09888e1c7389ed5f8a2df29898b | [
"MIT"
] | 3 | 2016-01-20T22:34:58.000Z | 2020-09-16T07:45:42.000Z | # Generated by Django 3.1.12 on 2021-09-18 12:55
from django.db import migrations
| 18.055556 | 48 | 0.587692 |
036e27bede50c08e0bbb36a280baf4f71cc05bf8 | 15,933 | py | Python | tools/test/scenarios/bin/tapiHelper.py | cornell-netlab/onos | 19c32ac12d1ac3b58403cc8b763c6a0666702cb6 | [
"Apache-2.0"
] | 2 | 2019-04-02T03:48:49.000Z | 2021-02-03T20:01:27.000Z | tools/test/scenarios/bin/tapiHelper.py | cornell-netlab/onos | 19c32ac12d1ac3b58403cc8b763c6a0666702cb6 | [
"Apache-2.0"
] | 13 | 2020-03-04T22:56:25.000Z | 2022-03-02T04:24:17.000Z | tools/test/scenarios/bin/tapiHelper.py | cornell-netlab/onos | 19c32ac12d1ac3b58403cc8b763c6a0666702cb6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import requests
import json
import random
from sets import Set
#
# Creates client-side connectivity json
#
#
# Creates line-side connectivity json
#
#
# Obtains TAPI context through restconf
#
#
# Check if the node is transponder.
# True - transponder
# False - OLS
#
#
# Parse src and dst ... | 40.853846 | 136 | 0.62813 |
036e3669e539c1ee359752125217465762d9b017 | 4,151 | py | Python | scripts/text/text_particles.py | mou3adb/spread_the_particle | 6cc666fded62f07380ed1e3ed52969c436295906 | [
"MIT"
] | 4 | 2020-08-18T18:33:05.000Z | 2021-05-18T23:55:56.000Z | scripts/text/text_particles.py | mou3adb/spread_the_particle | 6cc666fded62f07380ed1e3ed52969c436295906 | [
"MIT"
] | null | null | null | scripts/text/text_particles.py | mou3adb/spread_the_particle | 6cc666fded62f07380ed1e3ed52969c436295906 | [
"MIT"
] | 2 | 2021-03-03T18:57:06.000Z | 2021-05-18T20:43:44.000Z | """
The outfile structure is the following:
diameter density
birth lifetime
is_captured stuck_to_geometry theta
(blank line)
Re Ur
(blank line)
n_trajectory
x1 y1 up1 vp1 Uf1 Vf1 gradpx1 gradpy1 ap_x1 ap_y1 af_x1 af_y1
x2 y2 up2 vp2 Uf2 Vf2 gradpx2 gradpy2 ap_x2 ap_y2 af_x2 af_y2
...
xNt yNt upNt vpNt UfNt VfNt gradpx... | 25.466258 | 79 | 0.578897 |
0371b2e5e808a3335687f6bb1d019e4b4c60e31e | 1,610 | py | Python | 01_Modelos_Supervisionados/1.2_Analise_Discriminante_Linear_e_Quadratica/1.2.3_Formulacao_Matematica_de_Reducao_de_Dimensionalidade_LDA.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 01_Modelos_Supervisionados/1.2_Analise_Discriminante_Linear_e_Quadratica/1.2.3_Formulacao_Matematica_de_Reducao_de_Dimensionalidade_LDA.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | 01_Modelos_Supervisionados/1.2_Analise_Discriminante_Linear_e_Quadratica/1.2.3_Formulacao_Matematica_de_Reducao_de_Dimensionalidade_LDA.py | BrunoBertti/Scikit_Learning | 4b9e10ff7909f3728ac1e8bba19f5fd779340bc4 | [
"MIT"
] | null | null | null | ########## 1.2.3. Formulao matemtica de reduo de dimensionalidade LDA ##########
# Primeiro note que K significa que \mu_k so vetores em \mathcal{R}^d, e eles esto em um subespao afim H de dimenso no mximo K - 1 (2 pontos esto em uma linha, 3 pontos esto em um plano, etc.) ).
# Como mencionado acima, podemos... | 161 | 479 | 0.778261 |
03740eb7b2e0fb107f339fc022308a8b7f886123 | 3,195 | py | Python | csrv/model/deck.py | mrroach/CentralServer | e377c65d8f3adf5a2d3273acd4f459be697aea56 | [
"Apache-2.0"
] | null | null | null | csrv/model/deck.py | mrroach/CentralServer | e377c65d8f3adf5a2d3273acd4f459be697aea56 | [
"Apache-2.0"
] | null | null | null | csrv/model/deck.py | mrroach/CentralServer | e377c65d8f3adf5a2d3273acd4f459be697aea56 | [
"Apache-2.0"
] | 1 | 2020-09-20T11:26:20.000Z | 2020-09-20T11:26:20.000Z | """A collection of cards."""
import random
from csrv.model import cards
from csrv.model.cards import card_info
# This import is just to pull in all the card definitions
import csrv.model.cards.corp
import csrv.model.cards.runner
| 35.10989 | 114 | 0.699531 |
03766bbc82ca9d0b806101dbc0e7af7f9c47c209 | 476 | py | Python | data_structures_and_algorithms/04_menu.py | dileepabandara/return-python | fc269d577eade231bc9e3813654ce9c5848837ca | [
"MIT"
] | 1 | 2022-01-12T17:44:51.000Z | 2022-01-12T17:44:51.000Z | data_structures_and_algorithms/04_menu.py | dileepabandara/return-python | fc269d577eade231bc9e3813654ce9c5848837ca | [
"MIT"
] | null | null | null | data_structures_and_algorithms/04_menu.py | dileepabandara/return-python | fc269d577eade231bc9e3813654ce9c5848837ca | [
"MIT"
] | null | null | null | ans = True
while ans:
print("""
1.Add a Student
2.Delete a Student
3.Look Up Student Record
4.Exit/Quit
""")
ans = input("What would you like to do? ")
if ans == "1":
print("\nStudent Added")
elif ans == "2":
print("\n Student Deleted")
elif ans == "3":
pr... | 22.666667 | 46 | 0.521008 |
0376ebb01bd1aa62d9b4075181468b5d09068e7f | 525 | py | Python | libok.py | txt/se4dm | c38c742039eaa7a15730eb655c4eed067c8a5409 | [
"Unlicense"
] | null | null | null | libok.py | txt/se4dm | c38c742039eaa7a15730eb655c4eed067c8a5409 | [
"Unlicense"
] | 9 | 2015-10-30T12:46:53.000Z | 2015-11-25T03:27:49.000Z | libok.py | txt/se4dm | c38c742039eaa7a15730eb655c4eed067c8a5409 | [
"Unlicense"
] | 2 | 2018-06-22T15:23:44.000Z | 2020-11-05T01:47:54.000Z | from __future__ import print_function, division
import sys
sys.dont_write_bytecode = True
from lib import *
| 22.826087 | 50 | 0.491429 |
037803daf8f26a1fd6b807cb352e059357d3aa0d | 734 | py | Python | setup.py | ignalex/HAP-python | 855577cfcde1bf2f8562caf9fbefda3e4fa8b497 | [
"Apache-2.0"
] | 1 | 2018-09-23T20:44:46.000Z | 2018-09-23T20:44:46.000Z | setup.py | ignalex/HAP-python | 855577cfcde1bf2f8562caf9fbefda3e4fa8b497 | [
"Apache-2.0"
] | 1 | 2019-10-02T11:12:13.000Z | 2019-10-02T11:12:13.000Z | setup.py | ilyamordasov/HAP-python | 698eb612c35b5672c4aab9d7896093924cbd358c | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
import pyhap.const as pyhap_const
PROJECT_NAME = 'HAP-python'
URL = 'https://github.com/ikalchev/{}'.format(PROJECT_NAME)
PROJECT_URLS = {
'Bug Reports': '{}/issues'.format(URL),
'Documentation': 'http://hap-python.readthedocs.io/en/latest/',
'Source': '{}/tree/master'.format... | 27.185185 | 71 | 0.709809 |
037a4b8c8dc9b844a65be270c4263033b7498224 | 1,291 | py | Python | experiments/2014_PLOS-Comp-Bio_Wikidemics-feasibility/scrape_mmwr.py | casmlab/quac | f7b037b15f5ff0db1b9669159f645040abce1766 | [
"ECL-2.0",
"Apache-2.0"
] | 34 | 2015-01-10T05:44:02.000Z | 2021-05-18T02:57:19.000Z | experiments/2014_PLOS-Comp-Bio_Wikidemics-feasibility/scrape_mmwr.py | casmlab/quac | f7b037b15f5ff0db1b9669159f645040abce1766 | [
"ECL-2.0",
"Apache-2.0"
] | 14 | 2015-02-15T21:58:09.000Z | 2020-06-05T18:31:47.000Z | experiments/2014_PLOS-Comp-Bio_Wikidemics-feasibility/scrape_mmwr.py | casmlab/quac | f7b037b15f5ff0db1b9669159f645040abce1766 | [
"ECL-2.0",
"Apache-2.0"
] | 19 | 2015-02-08T02:24:15.000Z | 2020-11-07T13:39:55.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Scrape the MMWR morbidity tables at http://wonder.cdc.gov/mmwr/mmwrmorb.asp. No processing is done;
we simply save the files for potential offline processing.
"""
# Copyright (c) Los Alamos National Security, LLC and others.
from __future__ import print_function, d... | 32.275 | 130 | 0.670023 |
037b522742c7eb6098ac17119575246e7a1d22e3 | 6,970 | py | Python | cluster_status.py | jtimberlake/hyper-kube-config | d624f81e04d1560b584bb7b748451dd5181e15bf | [
"MIT"
] | 29 | 2018-10-11T17:34:33.000Z | 2019-10-09T04:24:22.000Z | cluster_status.py | silvermullet/kube-auth-store | a9c6966fe7b29e0bf80f9e40027310fd4a07dbc3 | [
"MIT"
] | 14 | 2018-12-18T18:14:19.000Z | 2019-10-19T18:38:12.000Z | cluster_status.py | silvermullet/kube-auth-store | a9c6966fe7b29e0bf80f9e40027310fd4a07dbc3 | [
"MIT"
] | 6 | 2018-11-06T09:32:40.000Z | 2019-10-17T18:18:08.000Z | import json
import logging
import os
import traceback
from boto3.dynamodb.conditions import Attr, Key
import storage
from util import lambda_result
logger = logging.getLogger('cluster_status')
if os.environ.get('DEBUG'):
logger.setLevel(logging.DEBUG)
def set_cluster_status(event, context):
"""Set the sta... | 32.877358 | 79 | 0.628264 |
037cb54aac999a27c21c13f841feb80028eba68f | 1,366 | py | Python | ote_sdk/ote_sdk/utils/labels_utils.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | null | null | null | ote_sdk/ote_sdk/utils/labels_utils.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | null | null | null | ote_sdk/ote_sdk/utils/labels_utils.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | 1 | 2020-12-13T22:13:51.000Z | 2020-12-13T22:13:51.000Z | """
This module implements utilities for labels
"""
# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from typing import List, Optional
from ote_sdk.entities.label import LabelEntity
from ote_sdk.entities.label_schema import LabelSchemaEntity
from ote_sdk.entities.scored_label impor... | 27.32 | 78 | 0.7306 |
cee01dc4ca892acb2cf457702c9a788e7276faf5 | 614 | py | Python | DSA/Python/src/dsa/lib/math/nums/tests/test_three_sum.py | JackieMa000/problems | c521558830a0bbf67f94109af92d7be4397d0a43 | [
"BSD-3-Clause"
] | null | null | null | DSA/Python/src/dsa/lib/math/nums/tests/test_three_sum.py | JackieMa000/problems | c521558830a0bbf67f94109af92d7be4397d0a43 | [
"BSD-3-Clause"
] | 1 | 2020-10-23T04:06:56.000Z | 2020-10-23T04:06:56.000Z | DSA/Python/src/dsa/lib/math/nums/tests/test_three_sum.py | JackieMa000/problems | c521558830a0bbf67f94109af92d7be4397d0a43 | [
"BSD-3-Clause"
] | null | null | null | import unittest
from typing import List
from dsa.lib.math.nums.three_sum import ThreeSum
| 30.7 | 72 | 0.571661 |
cee3692c9f60cfa65662bb7421bd3d405f7b7920 | 4,329 | py | Python | meggie/actions/spectrum_plot/controller/spectrum.py | Teekuningas/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2020-04-29T08:57:11.000Z | 2021-01-15T21:21:51.000Z | meggie/actions/spectrum_plot/controller/spectrum.py | Teekuningas/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2019-05-03T10:31:16.000Z | 2021-05-06T14:59:55.000Z | meggie/actions/spectrum_plot/controller/spectrum.py | cibr-jyu/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2020-12-12T09:57:00.000Z | 2020-12-20T17:12:05.000Z | """ Contains functions for plot spectrum action
"""
import mne
import numpy as np
import matplotlib.pyplot as plt
from meggie.utilities.plotting import color_cycle
from meggie.utilities.plotting import create_channel_average_plot
from meggie.utilities.channels import average_to_channel_groups
from meggie.utilities.c... | 30.921429 | 85 | 0.612151 |
cee4ceb0af01d56f99e0400de26b6a95df4511da | 70 | py | Python | torchrl/runners/__init__.py | srikarym/torchrl | fee98e78ac1657a2c9a4063dd8d63ba207a121e2 | [
"Apache-2.0"
] | 3 | 2019-02-27T19:00:32.000Z | 2020-07-19T03:18:28.000Z | torchrl/runners/__init__.py | srikarym/torchrl | fee98e78ac1657a2c9a4063dd8d63ba207a121e2 | [
"Apache-2.0"
] | null | null | null | torchrl/runners/__init__.py | srikarym/torchrl | fee98e78ac1657a2c9a4063dd8d63ba207a121e2 | [
"Apache-2.0"
] | null | null | null | from .base_runner import BaseRunner
from .gym_runner import GymRunner
| 23.333333 | 35 | 0.857143 |
cee59d1b21ebd4c01ff98f1b398ff22e296663a6 | 7,733 | py | Python | data/cyclesps.py | DawyD/UNet-PS-4D | bdd31308854dbd5f309aec9bcc1f7a35f267481d | [
"MIT"
] | 1 | 2021-12-06T17:20:36.000Z | 2021-12-06T17:20:36.000Z | data/cyclesps.py | DawyD/UNet-PS-4D | bdd31308854dbd5f309aec9bcc1f7a35f267481d | [
"MIT"
] | null | null | null | data/cyclesps.py | DawyD/UNet-PS-4D | bdd31308854dbd5f309aec9bcc1f7a35f267481d | [
"MIT"
] | 3 | 2021-12-06T08:09:42.000Z | 2022-03-12T08:09:34.000Z | """
DataGenerator for CyclesPS Dataset
This file use substantial portion of code from the original CNN-PS repository https://github.com/satoshi-ikehata/CNN-PS/
"""
import numpy as np
import cv2
import os
import gc
from data.datagenerator import DataGenerator
from data.utils import rotate_images
from misc.projections ... | 40.915344 | 120 | 0.557869 |
cee7987780f9d6caf6c5e3e7b2bc8abfa821e3a8 | 2,105 | py | Python | p1_basic/day22_26oop/day26/04_异常处理.py | dong-pro/fullStackPython | 5ad8662f7b57f14c8529e7eaf64290eeda773557 | [
"Apache-2.0"
] | 1 | 2020-04-03T01:32:05.000Z | 2020-04-03T01:32:05.000Z | p1_basic/day22_26oop/day26/04_异常处理.py | dong-pro/fullStackPython | 5ad8662f7b57f14c8529e7eaf64290eeda773557 | [
"Apache-2.0"
] | null | null | null | p1_basic/day22_26oop/day26/04_异常处理.py | dong-pro/fullStackPython | 5ad8662f7b57f14c8529e7eaf64290eeda773557 | [
"Apache-2.0"
] | null | null | null | import os
def new_func(path, prev):
"""
pathprev
1000,
1001,
1002,
1003,
...
:return:
"""
response = {'code': 1000, 'data': None}
try:
if not os.path.exists(path):
raise ExistsError()
if not prev:
raise KeyInvalidE... | 21.262626 | 45 | 0.535392 |
cee901804439796dcdaf795233ffadc0af103dcb | 183 | py | Python | hackerrank/Python/Hex Color Code/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Python/Hex Color Code/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Python/Hex Color Code/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import re
for _ in range(0, int(input())):
matches = re.findall(r'(#(?:[\da-f]{3}){1,2})(?!\w)(?=.*;)', input(), re.IGNORECASE)
if matches:
print(*matches, sep='\n')
| 26.142857 | 88 | 0.513661 |
ceea1cba85bb3d624953e8ecf28fb6d54fd02614 | 4,429 | py | Python | code/vocabulary.py | TimothyBenger/knausj_talon | 10c2440fb3646abda1adc84ca9fd230f752eb353 | [
"MIT"
] | null | null | null | code/vocabulary.py | TimothyBenger/knausj_talon | 10c2440fb3646abda1adc84ca9fd230f752eb353 | [
"MIT"
] | null | null | null | code/vocabulary.py | TimothyBenger/knausj_talon | 10c2440fb3646abda1adc84ca9fd230f752eb353 | [
"MIT"
] | null | null | null | from talon import Context, Module
from .user_settings import get_list_from_csv
mod = Module()
ctx = Context()
mod.list("vocabulary", desc="additional vocabulary words")
# Default words that will need to be capitalized (particularly under w2l).
# NB. These defaults and those later in this file are ONLY used when
# a... | 29.925676 | 121 | 0.64326 |
ceeab48dfbbd65bcb363f2bc14497327bbed9e95 | 451 | py | Python | api/src/controllers/utils.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/src/controllers/utils.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | api/src/controllers/utils.py | debbie-chan/SPM | f84e62779347579287aee8a2e832f72dcc53b8dd | [
"MIT"
] | null | null | null | import json
from bson import ObjectId
from datetime import datetime, date
| 25.055556 | 70 | 0.643016 |
ceed5b9c4d3963ebe8a8bb9c365ef1238097db1b | 390 | py | Python | tests/basics/try_reraise.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | 7 | 2019-10-18T13:41:39.000Z | 2022-03-15T17:27:57.000Z | tests/basics/try_reraise.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | null | null | null | tests/basics/try_reraise.py | geowor01/micropython | 7fb13eeef4a85f21cae36f1d502bcc53880e1815 | [
"MIT"
] | 2 | 2020-06-23T09:10:15.000Z | 2020-12-22T06:42:14.000Z | # Reraising last exception with raise w/o args
try:
f()
print("FAIL")
raise SystemExit
except ValueError as e:
pass
# Can reraise only in except block
try:
raise
print("FAIL")
raise SystemExit
except RuntimeError:
print("PASS")
| 15 | 46 | 0.602564 |
ceee787626ea63b9ebed145fa361e93cb187c722 | 494 | py | Python | molecule/default/tests/test_role.py | gantsign/ansible-role-git-credential-manager | 63c9d20389447ea9a38b56a6198a385fdebe1718 | [
"MIT"
] | 3 | 2018-09-04T15:53:22.000Z | 2020-06-13T17:22:47.000Z | molecule/default/tests/test_role.py | gantsign/ansible_role_git_credential_manager | b718d4133a272f766719acca5afa8e1999a4588d | [
"MIT"
] | 1 | 2018-09-04T16:02:20.000Z | 2018-09-05T14:45:34.000Z | molecule/default/tests/test_role.py | gantsign/ansible_role_git_credential_manager | b718d4133a272f766719acca5afa8e1999a4588d | [
"MIT"
] | null | null | null | import re
| 30.875 | 76 | 0.688259 |
ceef88b42a5304577b2b39be8918b4680ae52465 | 9,605 | py | Python | upetem_service.py | myroslav/robot_tests.broker.upetem | 323314259faa60618113fbc37b5e1f1d79c2192b | [
"Apache-2.0"
] | null | null | null | upetem_service.py | myroslav/robot_tests.broker.upetem | 323314259faa60618113fbc37b5e1f1d79c2192b | [
"Apache-2.0"
] | null | null | null | upetem_service.py | myroslav/robot_tests.broker.upetem | 323314259faa60618113fbc37b5e1f1d79c2192b | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from datetime import datetime, timedelta
import dateutil.parser
import pytz
import urllib
TZ = pytz.timezone('Europe/Kiev')
| 30.785256 | 158 | 0.639771 |
ceefdd4f273021acf57a211bf9db5e4727c86333 | 1,638 | py | Python | sway/tiling-indicator.py | iziGor/scripts | 0076711ab6c423d97c2dad72119fbd57e27fb250 | [
"BSD-2-Clause"
] | null | null | null | sway/tiling-indicator.py | iziGor/scripts | 0076711ab6c423d97c2dad72119fbd57e27fb250 | [
"BSD-2-Clause"
] | null | null | null | sway/tiling-indicator.py | iziGor/scripts | 0076711ab6c423d97c2dad72119fbd57e27fb250 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
""" Show split layout indicator
Usage:
./tiling-indicator.py
Suppoused to be used inside waybar or polybar.
Config example:
Waybar:
"custom/ws": {
"exec": "python -u $HOME/.config/sway/scripts/tiling-indicator-2.py 2> /dev/null
}
Polybar:
[module/layout]
type = custom/script
exec... | 22.135135 | 93 | 0.582418 |
cef07786e7e7ac506670e6c1114e7cf83e1eb3a0 | 5,822 | py | Python | cogs/tags.py | Chrovo/Productivity | 4bdb7eecfb8ae16b013ce58a1b0421f8f791499e | [
"MIT"
] | null | null | null | cogs/tags.py | Chrovo/Productivity | 4bdb7eecfb8ae16b013ce58a1b0421f8f791499e | [
"MIT"
] | null | null | null | cogs/tags.py | Chrovo/Productivity | 4bdb7eecfb8ae16b013ce58a1b0421f8f791499e | [
"MIT"
] | null | null | null | from typing import Optional
import discord
import asyncpg
from discord.ext import commands
from .utils.pagination import create_paginated_embed | 39.605442 | 124 | 0.5663 |
cef1f91b5f6b4d828f87bc4bbe7d153aead9af59 | 1,078 | py | Python | app.py | lblod/contact-hub-harvester | 75895a1920b3bae10f61e4f284499e2b23927609 | [
"MIT"
] | 1 | 2021-06-08T07:58:24.000Z | 2021-06-08T07:58:24.000Z | app.py | lblod/contact-hub-harvester | 75895a1920b3bae10f61e4f284499e2b23927609 | [
"MIT"
] | null | null | null | app.py | lblod/contact-hub-harvester | 75895a1920b3bae10f61e4f284499e2b23927609 | [
"MIT"
] | null | null | null | import sys
import mapping.organization as org
import mapping.contact as contact
import mapping.worship as worship
import mapping.central as central
import mapping.national as national
import mapping.codelist as codelist
import mapping.vocabulary as vocab
import mapping.location as location
import mapping.local_admin_... | 26.292683 | 51 | 0.681818 |
cef4a8a3cb987de3e3d820dc98bcefb1e7cbe272 | 2,815 | py | Python | ML_CW2/assgn_2/task_1.py | ShellySrivastava/Machine-Learning | bfdea30c06abe4228c103ae525adcf990015983f | [
"MIT"
] | null | null | null | ML_CW2/assgn_2/task_1.py | ShellySrivastava/Machine-Learning | bfdea30c06abe4228c103ae525adcf990015983f | [
"MIT"
] | null | null | null | ML_CW2/assgn_2/task_1.py | ShellySrivastava/Machine-Learning | bfdea30c06abe4228c103ae525adcf990015983f | [
"MIT"
] | null | null | null | import numpy as np
import os
import matplotlib.pyplot as plt
from print_values import *
from plot_data_all_phonemes import *
from plot_data import *
# File that contains the data
data_npy_file = 'data/PB_data.npy'
# Loading data from .npy file
data = np.load(data_npy_file, allow_pickle=True)
data = np.ndarray.tolist(... | 34.329268 | 157 | 0.694494 |
cef51d1bebab54bc43146e3a95ff04dc8d153fb9 | 459 | py | Python | students/migrations/0006_auto_20200403_2355.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | students/migrations/0006_auto_20200403_2355.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | students/migrations/0006_auto_20200403_2355.py | Davy-71993/MySchool | fa02c8ec19d71873fc0d714cf652d8ad05f2f0e7 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2020-04-03 20:55
from django.db import migrations
| 19.125 | 47 | 0.538126 |
cef53f21d6ccfd1533b28e30e6717c9396761c37 | 4,027 | py | Python | terminalgame/world.py | naslundx/terminalgame | d855ec33ff8a057b1308ad30c54f138343baf56f | [
"MIT"
] | null | null | null | terminalgame/world.py | naslundx/terminalgame | d855ec33ff8a057b1308ad30c54f138343baf56f | [
"MIT"
] | null | null | null | terminalgame/world.py | naslundx/terminalgame | d855ec33ff8a057b1308ad30c54f138343baf56f | [
"MIT"
] | null | null | null | import curses
from contextlib import contextmanager
from time import sleep
from typing import List, Tuple, TYPE_CHECKING
from .actions import Action
from .properties import Property
if TYPE_CHECKING:
from .object import Object
| 31.217054 | 83 | 0.48746 |
cef7afd517df5ca0ce5466fa5f955c031bbbb177 | 223 | py | Python | src/projects/tests/factories/package.py | unikubehq/projects | 0df69eafa2a0d2664a22c7a5866d4512ac4d57fe | [
"Apache-2.0"
] | 1 | 2021-10-05T13:17:03.000Z | 2021-10-05T13:17:03.000Z | src/projects/tests/factories/package.py | unikubehq/projects | 0df69eafa2a0d2664a22c7a5866d4512ac4d57fe | [
"Apache-2.0"
] | 48 | 2021-07-06T07:24:36.000Z | 2022-03-24T08:27:30.000Z | src/projects/tests/factories/package.py | unikubehq/projects | 0df69eafa2a0d2664a22c7a5866d4512ac4d57fe | [
"Apache-2.0"
] | null | null | null | import factory
from projects.tests.factories.project import ProjectFactory
| 20.272727 | 59 | 0.766816 |
cef7c80ce2c92bb1a2333400473042e3222f6983 | 1,012 | py | Python | data/data-pipeline/data_pipeline/etl/constants.py | vim-usds/justice40-tool | 6691df3e318b531b0e05454a79b8560b7d307b36 | [
"CC0-1.0"
] | null | null | null | data/data-pipeline/data_pipeline/etl/constants.py | vim-usds/justice40-tool | 6691df3e318b531b0e05454a79b8560b7d307b36 | [
"CC0-1.0"
] | null | null | null | data/data-pipeline/data_pipeline/etl/constants.py | vim-usds/justice40-tool | 6691df3e318b531b0e05454a79b8560b7d307b36 | [
"CC0-1.0"
] | null | null | null | DATASET_LIST = [
{
"name": "tree_equity_score",
"module_dir": "tree_equity_score",
"class_name": "TreeEquityScoreETL",
},
{
"name": "census_acs",
"module_dir": "census_acs",
"class_name": "CensusACSETL",
},
{
"name": "ejscreen",
"module... | 23.534884 | 51 | 0.528656 |
cef85293a8bebf5de04a9c7c28c2ecb0f768bbf3 | 129 | py | Python | alcor/models/__init__.py | wolvespack/alcor | dcc6b029ab7e6eb96b65b7b996cf335c3b030649 | [
"MIT"
] | 2 | 2017-05-02T11:36:46.000Z | 2017-05-02T14:01:16.000Z | alcor/models/__init__.py | wolvespack/alcor | dcc6b029ab7e6eb96b65b7b996cf335c3b030649 | [
"MIT"
] | 14 | 2017-10-15T20:13:23.000Z | 2017-12-03T17:00:30.000Z | alcor/models/__init__.py | wolvespack/alcor | dcc6b029ab7e6eb96b65b7b996cf335c3b030649 | [
"MIT"
] | null | null | null | from .group import Group
from .star import (STAR_PARAMETERS_NAMES,
GalacticDiskType,
Star)
| 25.8 | 41 | 0.581395 |
cef8e48081ec1240c8d15a802e15c821eaaffb84 | 1,064 | py | Python | cfc_app/migrations/0005_auto_20201024_0139.py | ephyle/Legit-Info | 7f3845563a64299aa64e4fdba75949276ed9a711 | [
"BSD-2-Clause",
"CC-BY-4.0",
"Apache-2.0"
] | 44 | 2020-10-19T13:06:10.000Z | 2022-01-23T10:56:31.000Z | cfc_app/migrations/0005_auto_20201024_0139.py | ephyle/Legit-Info | 7f3845563a64299aa64e4fdba75949276ed9a711 | [
"BSD-2-Clause",
"CC-BY-4.0",
"Apache-2.0"
] | 111 | 2020-10-20T22:12:58.000Z | 2022-03-28T00:25:13.000Z | cfc_app/migrations/0005_auto_20201024_0139.py | ephyle/Legit-Info | 7f3845563a64299aa64e4fdba75949276ed9a711 | [
"BSD-2-Clause",
"CC-BY-4.0",
"Apache-2.0"
] | 31 | 2021-02-08T22:32:37.000Z | 2022-03-11T10:57:29.000Z | # Generated by Django 3.0.8 on 2020-10-24 01:39
from django.db import migrations, models
| 27.282051 | 67 | 0.56391 |
cefa905aac2153e51d910363e7adb666340184b1 | 1,955 | py | Python | e2e/test_get.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | e2e/test_get.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | e2e/test_get.py | sturzl/guet | b8c453f07968b689b303e20e7a31b405c02c54ef | [
"Apache-2.0"
] | null | null | null | from e2e import DockerTest
| 38.333333 | 89 | 0.658824 |
cefb3f843b82b1bef9a3afd4b8e0d08adb19182d | 175 | py | Python | code/eda.py | rodriggs/twosigmafinancial | a8ad216a71e4bb3fbfbd606281b101b845eae961 | [
"MIT"
] | null | null | null | code/eda.py | rodriggs/twosigmafinancial | a8ad216a71e4bb3fbfbd606281b101b845eae961 | [
"MIT"
] | null | null | null | code/eda.py | rodriggs/twosigmafinancial | a8ad216a71e4bb3fbfbd606281b101b845eae961 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import h5py
# docker run -it kagglegym
# python
# >>> import kagglegym
# >>> kagglegym.test()
train = pd.read_hdf("../data/train.h5")
| 15.909091 | 39 | 0.691429 |
cefe60a9049748b68fc54c632b52a7d08d5a4d7b | 442 | py | Python | w3r-basic-1-50.py | WLi-syd/python | e8bd743535a1eca3493ea7f74a7475d1fb49de98 | [
"CNRI-Python"
] | null | null | null | w3r-basic-1-50.py | WLi-syd/python | e8bd743535a1eca3493ea7f74a7475d1fb49de98 | [
"CNRI-Python"
] | null | null | null | w3r-basic-1-50.py | WLi-syd/python | e8bd743535a1eca3493ea7f74a7475d1fb49de98 | [
"CNRI-Python"
] | null | null | null | # 50. Write a Python program to print without newline or space.
# Question:
# Input:
# Output:
# Solution: https://www.w3resource.com/python-exercises/python-basic-exercise-50.php
# Ideas:
"""
1. Badly phrased qquestion. Question should be using for loop to generate 10 off "*" and print them in one line.
"""
# St... | 15.241379 | 114 | 0.624434 |
ceffd051d030d11340ed2510ffc0183d9860e640 | 1,559 | py | Python | chris_backend/servicefiles/models.py | rudolphpienaar/ChRIS_ultron_backEnd | 5de4e255fb151ac7a6f900327704831da11dcd1f | [
"MIT"
] | null | null | null | chris_backend/servicefiles/models.py | rudolphpienaar/ChRIS_ultron_backEnd | 5de4e255fb151ac7a6f900327704831da11dcd1f | [
"MIT"
] | null | null | null | chris_backend/servicefiles/models.py | rudolphpienaar/ChRIS_ultron_backEnd | 5de4e255fb151ac7a6f900327704831da11dcd1f | [
"MIT"
] | null | null | null |
from django.db import models
import django_filters
from django_filters.rest_framework import FilterSet
REGISTERED_SERVICES = ['PACS']
| 35.431818 | 89 | 0.667736 |
cefff0cd7583924688b44d3f4da180ddf1bf3140 | 1,813 | py | Python | lesion_tool/waimea.py | alaurent4/nighres | ffb4a478a224190ffe0112f7e4d214ad6825716e | [
"Apache-2.0"
] | null | null | null | lesion_tool/waimea.py | alaurent4/nighres | ffb4a478a224190ffe0112f7e4d214ad6825716e | [
"Apache-2.0"
] | null | null | null | lesion_tool/waimea.py | alaurent4/nighres | ffb4a478a224190ffe0112f7e4d214ad6825716e | [
"Apache-2.0"
] | 1 | 2019-01-21T10:53:38.000Z | 2019-01-21T10:53:38.000Z | #!/usr/bin/env python
"""
"""
from xml.etree.ElementTree import Element
import xml.etree.ElementTree as etree
import xml.dom.minidom
import re
import sys
import getopt
import os
from time import gmtime, strftime
from nipype import config, logging
from nighres.lesion_tool.lesion_pipeline import Lesion_extractor
i... | 29.241935 | 117 | 0.529509 |
3002f09ad0b6466dc363ed3ed13747fd93bb53e6 | 2,208 | py | Python | system/__init__.py | JHUAPL/meta-system | d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03 | [
"Apache-2.0"
] | 5 | 2021-07-30T00:59:59.000Z | 2022-03-23T16:52:46.000Z | system/__init__.py | JHUAPL/meta-system | d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03 | [
"Apache-2.0"
] | null | null | null | system/__init__.py | JHUAPL/meta-system | d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03 | [
"Apache-2.0"
] | null | null | null | # **********************************************************************
# Copyright (C) 2020 Johns Hopkins University Applied Physics Laboratory
#
# All Rights Reserved.
# For any other permission, please contact the Legal Office at JHU/APL.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# y... | 32.955224 | 87 | 0.682065 |
30030def9ba42ea5610ba31e8842674e5faf76f9 | 80 | py | Python | demo/py/constants.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | 1 | 2019-02-03T08:41:52.000Z | 2019-02-03T08:41:52.000Z | demo/py/constants.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | demo/py/constants.py | arjunsatyapal/lantern | 073e1f86c6ef9234ab654af035e3870cb22f0dc4 | [
"Apache-2.0"
] | null | null | null | # Constants
DEFAULT_TITLE = 'Khan Academy'
HOME_DOMAIN = 'www.khanacademy.org'
| 16 | 35 | 0.7625 |
3003b7db9f50c73f072be5e7001460eee57f2c46 | 1,950 | py | Python | indexes/utils/dataset.py | war-and-peace/dss | 8980477fc118b4f6fc2724427ba101c80eeb69d3 | [
"MIT"
] | null | null | null | indexes/utils/dataset.py | war-and-peace/dss | 8980477fc118b4f6fc2724427ba101c80eeb69d3 | [
"MIT"
] | 6 | 2021-02-24T21:40:27.000Z | 2021-03-11T21:35:28.000Z | indexes/utils/dataset.py | war-and-peace/dss | 8980477fc118b4f6fc2724427ba101c80eeb69d3 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# Copyright (c) Abdurasul Rakhimov 24.2.2021.
# ------------------------------------------------------------------------------
import numpy as np
from overrides import overrides
| 29.545455 | 117 | 0.567179 |
3004b0eda50f3f009063212317a8fd0157f3b144 | 369 | py | Python | tools/configen/example/gen/configen/samples/user/conf/User.py | wpc/hydra | 43b8a0f06eaf80f75810cc249e1eaa8a211e39c4 | [
"MIT"
] | 1 | 2021-02-23T00:00:20.000Z | 2021-02-23T00:00:20.000Z | tools/configen/example/gen/configen/samples/user/conf/User.py | wpc/hydra | 43b8a0f06eaf80f75810cc249e1eaa8a211e39c4 | [
"MIT"
] | null | null | null | tools/configen/example/gen/configen/samples/user/conf/User.py | wpc/hydra | 43b8a0f06eaf80f75810cc249e1eaa8a211e39c4 | [
"MIT"
] | null | null | null | # Generated by configen, do not edit.
# See https://github.com/facebookresearch/hydra/tree/master/tools/configen
# fmt: off
# isort:skip_file
# flake8: noqa
from dataclasses import dataclass
from typing import *
from omegaconf import MISSING
| 20.5 | 74 | 0.742547 |
3004c3f59cd9236cf1638000226994613db59de2 | 733 | py | Python | src/kinect/Kinect.py | florianletsch/kinect-juggling | f320cc0b55adf65d338d25986a03106a7e3f46ef | [
"Unlicense",
"MIT"
] | 7 | 2015-11-27T09:53:32.000Z | 2021-01-13T17:35:54.000Z | src/kinect/Kinect.py | florianletsch/kinect-juggling | f320cc0b55adf65d338d25986a03106a7e3f46ef | [
"Unlicense",
"MIT"
] | null | null | null | src/kinect/Kinect.py | florianletsch/kinect-juggling | f320cc0b55adf65d338d25986a03106a7e3f46ef | [
"Unlicense",
"MIT"
] | null | null | null | import time
import numpy as np
from freenect import sync_get_depth as get_depth, sync_get_video as get_video
| 31.869565 | 78 | 0.604366 |
30050dc99f412b59d4c595ff2aeb87a711b709c5 | 1,262 | py | Python | main.py | hakierspejs/corononews | f1103da57d5c39694649bf7d7ba7748541dcfbe0 | [
"WTFPL"
] | null | null | null | main.py | hakierspejs/corononews | f1103da57d5c39694649bf7d7ba7748541dcfbe0 | [
"WTFPL"
] | null | null | null | main.py | hakierspejs/corononews | f1103da57d5c39694649bf7d7ba7748541dcfbe0 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
import flask
import requests
import lxml.html
import logging
app = flask.Flask(__name__)
LOGGER = logging.getLogger(__name__)
HN_BASE_URL = 'https://news.ycombinator.com/'
if __name__ == '__main__':
logging.basicConfig(level='INFO')
app.run(host='0.0.0.0')
| 28.681818 | 72 | 0.568938 |
3007056835a3f4cdbc36d9cf5d7aec07fbd6a6ae | 7,134 | py | Python | code/func/func.py | lindenmp/neurodev_long | d6efc6b2e212bc6fc0669c80efcfa0b67d1e4b06 | [
"MIT"
] | null | null | null | code/func/func.py | lindenmp/neurodev_long | d6efc6b2e212bc6fc0669c80efcfa0b67d1e4b06 | [
"MIT"
] | 5 | 2020-03-24T17:56:29.000Z | 2021-12-13T20:35:48.000Z | code/func/func.py | lindenmp/neurodev_long | d6efc6b2e212bc6fc0669c80efcfa0b67d1e4b06 | [
"MIT"
] | null | null | null | # Functions for project: NormativeNeuroDev_Longitudinal
# Linden Parkes, 2019
# lindenmp@seas.upenn.edu
from IPython.display import clear_output
import numpy as np
import scipy as sp
from scipy import stats
import pandas as pd
from statsmodels.stats import multitest
| 36.963731 | 123 | 0.528595 |
3007a5e506648223a9acc7a03be0c3a03d473f6f | 15,808 | py | Python | sympy/simplify/sqrtdenest.py | goodok/sympy | de84ed2139125a755ea7b6ba91d945d9fbbe5ed9 | [
"BSD-3-Clause"
] | 2 | 2015-05-11T12:26:38.000Z | 2016-08-19T00:11:03.000Z | sympy/simplify/sqrtdenest.py | goodok/sympy | de84ed2139125a755ea7b6ba91d945d9fbbe5ed9 | [
"BSD-3-Clause"
] | null | null | null | sympy/simplify/sqrtdenest.py | goodok/sympy | de84ed2139125a755ea7b6ba91d945d9fbbe5ed9 | [
"BSD-3-Clause"
] | null | null | null | from sympy.functions import sqrt, sign, root
from sympy.core import S, Wild, sympify, Mul, Add, Expr
from sympy.core.function import expand_multinomial, expand_mul
from sympy.core.symbol import Dummy
from sympy.polys import Poly, PolynomialError
from sympy.core.function import count_ops
def is_sqrt(expr):
"""Retu... | 32.459959 | 79 | 0.546748 |
3007da11fc7ae07380226f4b542b097442751381 | 17,074 | py | Python | backend/modules/doc/views/doc.py | YouFacai/iWiki | 7a2cbb514f25b72932b0212f6165cdb426243243 | [
"MIT"
] | null | null | null | backend/modules/doc/views/doc.py | YouFacai/iWiki | 7a2cbb514f25b72932b0212f6165cdb426243243 | [
"MIT"
] | null | null | null | backend/modules/doc/views/doc.py | YouFacai/iWiki | 7a2cbb514f25b72932b0212f6165cdb426243243 | [
"MIT"
] | null | null | null | import datetime
import os
import shutil
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.cache import cache
from django.db import transaction, IntegrityError
from django.db.models import Q, F
from django.http import FileResponse
from django.utils.encoding import escape_u... | 38.541761 | 103 | 0.602554 |
3007e107fbb9661b8e7f7e4c1d4a01f5c735b272 | 21,175 | py | Python | python/cli/report_study.py | mediumroast/mr_sdk | 55c7a13c5cef73e677297026b41b7ec23855391f | [
"Apache-2.0"
] | 1 | 2021-10-06T02:46:48.000Z | 2021-10-06T02:46:48.000Z | python/cli/report_study.py | mediumroast/mr_sdk | 55c7a13c5cef73e677297026b41b7ec23855391f | [
"Apache-2.0"
] | 3 | 2021-10-16T03:34:07.000Z | 2022-02-23T05:10:12.000Z | python/cli/report_study.py | mediumroast/mr_sdk | 55c7a13c5cef73e677297026b41b7ec23855391f | [
"Apache-2.0"
] | null | null | null | #!/bin/env python3
import sys
import argparse
import configparser
import docx
from docx import Document
from docx.shared import Pt, Inches
from docx.enum.dml import MSO_THEME_COLOR_INDEX
from docx.enum.section import WD_ORIENT, WD_SECTION
from datetime import datetime
from mediumroast.api.high_level import Auth as au... | 39.653558 | 143 | 0.648501 |
300d26a47173ec68c9cbc913d71ba1fd8d873df4 | 17,388 | py | Python | hubcheck/browser/browser.py | codedsk/hubcheck | 2ff506eb56ba00f035300862f8848e4168452a17 | [
"MIT"
] | 1 | 2016-02-13T13:42:23.000Z | 2016-02-13T13:42:23.000Z | hubcheck/browser/browser.py | codedsk/hubcheck | 2ff506eb56ba00f035300862f8848e4168452a17 | [
"MIT"
] | null | null | null | hubcheck/browser/browser.py | codedsk/hubcheck | 2ff506eb56ba00f035300862f8848e4168452a17 | [
"MIT"
] | null | null | null | import pprint
import logging
import datetime
from selenium import webdriver
import hubcheck.conf
# block websites that make linkcheck slow
# these are usually blocked by the workspace firewall
# mozillalabs comes from using a nightly version of firefox browser
# many of the others are from login authentication site... | 45.046632 | 93 | 0.41868 |
300da26c3c232a2570a4579306f4ee78357682ca | 4,278 | py | Python | python/caty/jsontools/selector/parser.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/jsontools/selector/parser.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/caty/jsontools/selector/parser.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null |
from topdown import *
from caty.jsontools import stdjson
from caty.jsontools import xjson
from caty.jsontools.selector import stm as default_factory
from caty.core.spectypes import UNDEFINED
from caty.core.language import name_token
| 31.688889 | 115 | 0.542076 |
300f199f66802964a7132356800aed7b1a0be7f9 | 7,057 | py | Python | appengine/gae_defer_manager/deferred_manager/tests.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 6 | 2018-07-31T16:48:07.000Z | 2020-02-01T03:17:51.000Z | appengine/gae_defer_manager/deferred_manager/tests.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 41 | 2018-08-07T16:43:07.000Z | 2020-06-05T18:54:50.000Z | appengine/gae_defer_manager/deferred_manager/tests.py | meedan/montage | 4da0116931edc9af91f226876330645837dc9bcc | [
"Apache-2.0"
] | 1 | 2018-08-07T16:40:18.000Z | 2018-08-07T16:40:18.000Z | # -*- coding: utf8 -*-
import datetime
import mock
import os
import unittest
import webapp2
from google.appengine.ext import testbed, deferred
from google.appengine.api import queueinfo
from . import models
from .handler import application
from .wrapper import defer
TESTCONFIG_DIR = os.path.join(
os.path.dirnam... | 34.257282 | 102 | 0.69803 |
3010ae6e12181dbe483e73b05d5e55639ba72b1f | 240 | py | Python | backend/categories/models.py | cristianemoyano/django-react-webapp | c91d263f58b0d66a8c260e095d0ec6cee66f8afd | [
"MIT"
] | null | null | null | backend/categories/models.py | cristianemoyano/django-react-webapp | c91d263f58b0d66a8c260e095d0ec6cee66f8afd | [
"MIT"
] | null | null | null | backend/categories/models.py | cristianemoyano/django-react-webapp | c91d263f58b0d66a8c260e095d0ec6cee66f8afd | [
"MIT"
] | null | null | null | from django.db import models
| 17.142857 | 56 | 0.633333 |
30113171dc48ed74cadebf84f1f1fd11cb8f6566 | 4,023 | py | Python | BdBG.py | rongjiewang/BdBG | b4a8fab0fa083aecab10f15431e37b0445722007 | [
"MIT"
] | 2 | 2018-11-21T06:39:34.000Z | 2018-11-21T06:43:53.000Z | BdBG.py | rongjiewang/BdBG | b4a8fab0fa083aecab10f15431e37b0445722007 | [
"MIT"
] | null | null | null | BdBG.py | rongjiewang/BdBG | b4a8fab0fa083aecab10f15431e37b0445722007 | [
"MIT"
] | null | null | null | """MIT License
Copyright (c) 2018 rongjiewang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | 36.243243 | 126 | 0.653492 |
30119e15a78b5e7aea8cf1c27d45b2140994ce7e | 10,820 | py | Python | web/lib/console.py | jonathanverner/brython-jinja2 | cec6e16de1750203a858d0acf590f230fc3bf848 | [
"BSD-3-Clause"
] | 2 | 2020-09-13T17:51:55.000Z | 2020-11-25T18:47:12.000Z | web/lib/console.py | jonathanverner/brython-jinja2 | cec6e16de1750203a858d0acf590f230fc3bf848 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T19:18:15.000Z | 2021-06-01T21:48:12.000Z | web/lib/console.py | jonathanverner/brython-jinja2 | cec6e16de1750203a858d0acf590f230fc3bf848 | [
"BSD-3-Clause"
] | null | null | null | """
This module provides the interactive Python console.
"""
import sys
import traceback
from browser import window
| 39.926199 | 139 | 0.539464 |
30124f8335d73ee7802841f7737a00cbfad26c9f | 1,333 | py | Python | lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | null | null | null | lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | null | null | null | lldb/test/API/functionalities/breakpoint/breakpoint_on_overload/TestBreakOnOverload.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | null | null | null | """
Test setting a breakpoint on an overloaded function by name.
"""
import re
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
| 35.078947 | 72 | 0.685671 |
30142c5188e376313f7d79178393a7007c7faa25 | 2,611 | py | Python | Intermedio/28 Pomodoro/main.py | YosafatM/100-days-of-Python | e81ab663b7aacb7a904f27a4e6774837cf3594a1 | [
"MIT"
] | null | null | null | Intermedio/28 Pomodoro/main.py | YosafatM/100-days-of-Python | e81ab663b7aacb7a904f27a4e6774837cf3594a1 | [
"MIT"
] | null | null | null | Intermedio/28 Pomodoro/main.py | YosafatM/100-days-of-Python | e81ab663b7aacb7a904f27a4e6774837cf3594a1 | [
"MIT"
] | null | null | null | from tkinter import *
# ---------------------------- CONSTANTS ------------------------------- #
PINK = "#e2979c"
RED = "#e7305b"
GREEN = "#9bdeac"
YELLOW = "#f7f5dd"
FONT_NAME = "Courier"
WORK_MIN = 25
SHORT_BREAK_MIN = 5
LONG_BREAK_MIN = 20
is_counting = False
reps = 0
timer = None
# ---------------------------- ... | 27.484211 | 99 | 0.573727 |
301761f399153aa6d426b47322db15a73620a802 | 1,983 | py | Python | ImageAnalyses/tests_maps.py | nicholst/narps | 0a9d71a5ab435b40dcd50fea82d2961a43f0a3fc | [
"MIT"
] | 30 | 2019-07-17T22:27:02.000Z | 2021-12-21T11:38:12.000Z | ImageAnalyses/tests_maps.py | nicholst/narps | 0a9d71a5ab435b40dcd50fea82d2961a43f0a3fc | [
"MIT"
] | 21 | 2019-07-18T14:26:14.000Z | 2020-01-20T17:59:19.000Z | ImageAnalyses/tests_maps.py | nicholst/narps | 0a9d71a5ab435b40dcd50fea82d2961a43f0a3fc | [
"MIT"
] | 12 | 2019-07-20T06:14:21.000Z | 2021-09-25T00:35:29.000Z | # tests for narps code
# - currently these are all just smoke tests
import pytest
import os
import pandas
from narps import Narps
from AnalyzeMaps import mk_overlap_maps,\
mk_range_maps, mk_std_maps,\
mk_correlation_maps_unthresh, analyze_clusters,\
plot_distance_from_mean, get_thresh_similarity
from MetaA... | 24.182927 | 70 | 0.753404 |
3017c55b6cc7146b6404407438f7cdac4217ef3c | 2,529 | py | Python | dtcwt/plotting.py | santosh653/dtcwt | 01d9e87dc9abfa244a89c1f05aebf3dec6999f3a | [
"BSD-2-Clause"
] | 61 | 2015-01-04T09:21:29.000Z | 2022-03-07T16:25:02.000Z | dtcwt/plotting.py | santosh653/dtcwt | 01d9e87dc9abfa244a89c1f05aebf3dec6999f3a | [
"BSD-2-Clause"
] | 17 | 2015-04-02T13:37:07.000Z | 2018-03-07T09:57:57.000Z | dtcwt/plotting.py | santosh653/dtcwt | 01d9e87dc9abfa244a89c1f05aebf3dec6999f3a | [
"BSD-2-Clause"
] | 26 | 2015-04-16T06:22:16.000Z | 2021-12-07T09:17:44.000Z | """
Convenience functions for plotting DTCWT-related objects.
"""
from __future__ import absolute_import
import numpy as np
from matplotlib.pyplot import *
__all__ = (
'overlay_quiver',
)
def overlay_quiver(image, vectorField, level, offset):
"""Overlays nicely coloured quiver plot of complex coefficients ... | 34.643836 | 145 | 0.670621 |
30183648f14231172bd2966dd1817ea75267e595 | 428 | py | Python | src/grokcore/registries/tests/registries/global.py | zopefoundation/grokcore.registries | 90c5221867e07c0194df36f13fa4dda5f3a4923c | [
"ZPL-2.1"
] | null | null | null | src/grokcore/registries/tests/registries/global.py | zopefoundation/grokcore.registries | 90c5221867e07c0194df36f13fa4dda5f3a4923c | [
"ZPL-2.1"
] | null | null | null | src/grokcore/registries/tests/registries/global.py | zopefoundation/grokcore.registries | 90c5221867e07c0194df36f13fa4dda5f3a4923c | [
"ZPL-2.1"
] | null | null | null | import grokcore.component as grok
from grokcore.component.interfaces import IContext
import grokcore.view as view
from zope.interface import Interface
from grokcore.registries.tests.registries.interfaces import IExample
| 23.777778 | 68 | 0.773364 |
301a3402ce430cb702ae2f205a2ed74937b55dc4 | 2,481 | py | Python | graphdata/loglog.py | whalenpt/graphdata | d169150f860551d2049342ecf310dc1783987266 | [
"MIT"
] | null | null | null | graphdata/loglog.py | whalenpt/graphdata | d169150f860551d2049342ecf310dc1783987266 | [
"MIT"
] | null | null | null | graphdata/loglog.py | whalenpt/graphdata | d169150f860551d2049342ecf310dc1783987266 | [
"MIT"
] | null | null | null |
from graphdata.shared.shared1D import AuxPlotLabelLL1D
from graphdata.shared.shared1D import ProcessData1D
from graphdata.shared.shared1D import LoadData1D
from graphdata.shared.figsizes import LogLogSize
from graphdata.shared.shared import ExtendDictionary
from graphdata.shared.shared import ProcessComplex
from gr... | 29.535714 | 96 | 0.646514 |
301d726bb49a99005fdbccd8050406dd9847256c | 5,387 | py | Python | integration-testing/tests/suites/test_premium_account.py | pwei1018/bcrs-testing | 318845dede6ce5994b74b976d01f36a503036551 | [
"Apache-2.0"
] | 2 | 2020-10-23T22:08:34.000Z | 2021-10-19T19:37:21.000Z | integration-testing/tests/suites/test_premium_account.py | pwei1018/bcrs-testing | 318845dede6ce5994b74b976d01f36a503036551 | [
"Apache-2.0"
] | 6 | 2020-09-29T23:05:34.000Z | 2022-01-29T20:59:08.000Z | integration-testing/tests/suites/test_premium_account.py | pwei1018/bcrs-testing | 318845dede6ce5994b74b976d01f36a503036551 | [
"Apache-2.0"
] | 10 | 2020-09-29T23:05:46.000Z | 2021-11-29T23:07:10.000Z | import datetime
import json
import requests
import pytest
import random
from tests.suites.test_payment import TestPayment
from tests.utilities.settings import get_settings, get_test_data, setup_access_data
| 51.304762 | 138 | 0.634305 |
302088ce171e1ce5fee7f69b6466cc5d52936180 | 3,960 | py | Python | dingtalk/python/alibabacloud_dingtalk/workrecord_1_0/client.py | yndu13/dingtalk-sdk | 700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f | [
"Apache-2.0"
] | 15 | 2020-08-27T04:10:26.000Z | 2022-03-07T06:25:42.000Z | dingtalk/python/alibabacloud_dingtalk/workrecord_1_0/client.py | yndu13/dingtalk-sdk | 700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f | [
"Apache-2.0"
] | 1 | 2020-09-27T01:30:46.000Z | 2021-12-29T09:15:34.000Z | dingtalk/python/alibabacloud_dingtalk/workrecord_1_0/client.py | yndu13/dingtalk-sdk | 700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f | [
"Apache-2.0"
] | 5 | 2020-08-27T04:07:44.000Z | 2021-12-03T02:55:20.000Z | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_d... | 44.494382 | 150 | 0.716162 |
30220c4e2730501b7f29fa25506bdd0fdf76716c | 16,677 | py | Python | ehr_ml/clmbr/__init__.py | som-shahlab/ehr_ml | 4f83ac5b882916a175f0d242b38d914d00bf8a7c | [
"MIT"
] | 4 | 2021-03-12T21:41:37.000Z | 2021-06-25T16:49:52.000Z | ehr_ml/clmbr/__init__.py | som-shahlab/ehr_ml | 4f83ac5b882916a175f0d242b38d914d00bf8a7c | [
"MIT"
] | 22 | 2020-11-19T00:04:27.000Z | 2022-03-02T18:16:08.000Z | ehr_ml/clmbr/__init__.py | som-shahlab/ehr_ml | 4f83ac5b882916a175f0d242b38d914d00bf8a7c | [
"MIT"
] | 2 | 2021-05-12T13:11:46.000Z | 2021-10-15T18:30:14.000Z | from __future__ import annotations
import argparse
import pickle
import numpy as np
import json
import logging
import math
import glob
import random
import os
import sys
import datetime
import time
from functools import partial
from pathlib import Path
from collections import defaultdict
from shutil import copyfile
f... | 32.009597 | 128 | 0.59651 |
30246a2f75b29a8ba062fda27b38c1e541c4ddd0 | 190 | py | Python | exercicios nivel 4/06-PA.py | Carlosxc-dev/LINGUAGEM_PYTHON | 5d512038d9c841dea96e4ccea18da76265318199 | [
"MIT"
] | 1 | 2021-11-25T00:29:07.000Z | 2021-11-25T00:29:07.000Z | exercicios nivel 4/06-PA.py | Carlosxc-dev/LINGUAGEM_PYTHON | 5d512038d9c841dea96e4ccea18da76265318199 | [
"MIT"
] | null | null | null | exercicios nivel 4/06-PA.py | Carlosxc-dev/LINGUAGEM_PYTHON | 5d512038d9c841dea96e4ccea18da76265318199 | [
"MIT"
] | null | null | null | prim = int(input('primeiro termo: '))
raz = int(input('razao: '))
dec = prim + (10 - 1) * raz
for c in range(prim, dec + raz, raz):
print(' {}'.format(c,), end=' ->')
print('acabou')
| 19 | 38 | 0.547368 |
302482d09ddf1f774c52862c7051a379cb2cfac1 | 8,215 | py | Python | scenarios.py | Sanghyun-Hong/DeepSloth | 92b3d0d3ef3f974d8bce7b4b4a1828776227e3c6 | [
"MIT"
] | 9 | 2020-12-16T04:55:57.000Z | 2022-01-13T08:28:11.000Z | scenarios.py | Sanghyun-Hong/DeepSloth | 92b3d0d3ef3f974d8bce7b4b4a1828776227e3c6 | [
"MIT"
] | null | null | null | scenarios.py | Sanghyun-Hong/DeepSloth | 92b3d0d3ef3f974d8bce7b4b4a1828776227e3c6 | [
"MIT"
] | 1 | 2021-10-11T06:21:04.000Z | 2021-10-11T06:21:04.000Z | """
A script that partitions the dataset for transferability scenarios
"""
# basics
import numpy as np
from PIL import Image
# torch...
import torch
# custom libs
import utils
# ------------------------------------------------------------------------------
# Misc. functions
# ---------------------------------... | 45.893855 | 216 | 0.667925 |