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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68cd4b3f095e587e64bdaa505ea93efe81616501 | 3,459 | py | Python | a5dev/transfersh.py | ankitsainidev/a5dev | 5bc6ebce380e2b0e29f6cade71e3d3d9d8586109 | [
"MIT"
] | null | null | null | a5dev/transfersh.py | ankitsainidev/a5dev | 5bc6ebce380e2b0e29f6cade71e3d3d9d8586109 | [
"MIT"
] | null | null | null | a5dev/transfersh.py | ankitsainidev/a5dev | 5bc6ebce380e2b0e29f6cade71e3d3d9d8586109 | [
"MIT"
] | null | null | null |
import os
import sys
import zipfile
import requests
import datetime
import wget
def get_date_in_two_weeks():
"""
get maximum date of storage for file
:return: date in two weeks
"""
today = datetime.datetime.today()
date_in_two_weeks = today + datetime.timedelta(days=14)
return date_in_two... | 26.40458 | 77 | 0.641515 |
68cd7fda8b73a02b4268932ba3d89d31da85143d | 3,749 | py | Python | utils/isa.py | skilkis/GENX | 049267ba7751013517d49939e4ce387484959500 | [
"MIT"
] | 2 | 2019-01-08T13:53:29.000Z | 2019-02-05T06:17:18.000Z | utils/isa.py | skilkis/GENX | 049267ba7751013517d49939e4ce387484959500 | [
"MIT"
] | null | null | null | utils/isa.py | skilkis/GENX | 049267ba7751013517d49939e4ce387484959500 | [
"MIT"
] | null | null | null | from constants import Constants
import numpy as np
# TODO finish implementing all regions of the atmosphere
# function [T,Palt,rhoalt,a]=ISA(h)
# global Econst
# %Calculates the Temperature [K] using International Standard Atmosphere
# if(h>=0)&&(h<=11000);
# T=Econst.Temp0+(Econst.lambda*h);
# Palt=Econst.... | 42.123596 | 113 | 0.558816 |
68d00b8abf63bb6256ef3652a434e5b648392eca | 132 | py | Python | hello-world/hello_world/__init__.py | pyodide/pyodide-examples | 248f0a1de14ffccf3b1ff541b5965eedc2483051 | [
"MIT"
] | 1 | 2021-12-27T13:50:25.000Z | 2021-12-27T13:50:25.000Z | hello-world/hello_world/__init__.py | pyodide/pyodide-examples | 248f0a1de14ffccf3b1ff541b5965eedc2483051 | [
"MIT"
] | null | null | null | hello-world/hello_world/__init__.py | pyodide/pyodide-examples | 248f0a1de14ffccf3b1ff541b5965eedc2483051 | [
"MIT"
] | 1 | 2022-02-17T11:10:15.000Z | 2022-02-17T11:10:15.000Z | print("Initializing hello world module")
from .some_funcs import say_hello, repeat_string
__all__ = ["say_hello", "repeat_string"]
| 26.4 | 48 | 0.787879 |
68d060eba2ef13c447cb2bafe48baa5ae86d4e99 | 53 | py | Python | IEX_29id/mda/__init__.py | kellyjelly0904/macros_29id | 573946d13eee7f85da049ac666b5dd2d18d19bb1 | [
"MIT"
] | null | null | null | IEX_29id/mda/__init__.py | kellyjelly0904/macros_29id | 573946d13eee7f85da049ac666b5dd2d18d19bb1 | [
"MIT"
] | 1 | 2021-11-10T02:00:41.000Z | 2021-11-11T03:02:23.000Z | IEX_29id/mda/__init__.py | kellyjelly0904/macros_29id | 573946d13eee7f85da049ac666b5dd2d18d19bb1 | [
"MIT"
] | 2 | 2021-09-28T21:19:47.000Z | 2021-10-12T20:51:43.000Z | # This file is here to make this folder a package
| 10.6 | 49 | 0.716981 |
68d22cc5963cd6e9b806adaa804483913c7ddda9 | 8,826 | py | Python | d2matchdb.py | andrewlin16/d2matchdb | 4b231541f5a08083d97a521880ce6310fd69cac1 | [
"MIT"
] | 1 | 2019-07-25T13:13:45.000Z | 2019-07-25T13:13:45.000Z | d2matchdb.py | andrewlin16/d2matchdb | 4b231541f5a08083d97a521880ce6310fd69cac1 | [
"MIT"
] | null | null | null | d2matchdb.py | andrewlin16/d2matchdb | 4b231541f5a08083d97a521880ce6310fd69cac1 | [
"MIT"
] | 1 | 2018-09-06T18:54:33.000Z | 2018-09-06T18:54:33.000Z | # Dota 2 match scraper/local DB
# WebAPI info: http://dev.dota2.com/showthread.php?t=47115
# API details (may be old?): https://wiki.teamfortress.com/wiki/WebAPI#Dota_2
# imports
from functools import reduce
import d2mdb_const as const
import json
import os.path
import random
import requests
import sqlite3
import sys
... | 34.209302 | 181 | 0.721165 |
68d2bb13980e39d6ba56f05afa1906985dec08b8 | 11,183 | py | Python | Online_Search_Module.py | LuJunru/My_QA_Robot | f842fb8b51cded50285792f236a0d812373f47d3 | [
"MIT"
] | 19 | 2018-05-10T03:41:07.000Z | 2021-07-22T11:36:16.000Z | Online_Search_Module.py | LuJunru/My_QA_Robot | f842fb8b51cded50285792f236a0d812373f47d3 | [
"MIT"
] | 2 | 2018-10-09T08:13:27.000Z | 2019-05-09T20:40:18.000Z | Online_Search_Module.py | LuJunru/My_QA_Robot | f842fb8b51cded50285792f236a0d812373f47d3 | [
"MIT"
] | 7 | 2018-07-07T06:00:52.000Z | 2021-12-08T09:08:20.000Z | # -*- coding: utf-8 -*-
# @Author : Junru_Lu
# @File : Online_Search_Module.py
# @Software: PyCharm
# @Environment : Python 3.6+
#
from bs4 import BeautifulSoup
from urllib.parse import quote
import requests
#
import re
import os
#
import importlib, sys
importlib.reload(sys)
'''
'''
# ---------------------... | 47.587234 | 155 | 0.498256 |
68d3b22a58336ef88b11279b1b9195714e9a3308 | 350 | py | Python | invoicer/_units/forms.py | mtik00/invoicer | 6128202ca86823dc998b8ea661050702544b9b21 | [
"MIT"
] | null | null | null | invoicer/_units/forms.py | mtik00/invoicer | 6128202ca86823dc998b8ea661050702544b9b21 | [
"MIT"
] | 1 | 2021-08-04T23:32:15.000Z | 2021-08-04T23:32:15.000Z | invoicer/_units/forms.py | mtik00/invoicer | 6128202ca86823dc998b8ea661050702544b9b21 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, FloatField
from wtforms.validators import DataRequired
| 35 | 74 | 0.762857 |
68d4aa65d3bfe628d460fc7812a7481a60635970 | 7,768 | py | Python | django_cbtools/sync_gateway.py | smarttradeapp/django_couchbase | d96b32977bdb0dbf1a6e891ab29ea7b69ac6bed4 | [
"BSD-3-Clause"
] | 6 | 2016-06-23T08:21:43.000Z | 2018-07-19T09:42:32.000Z | django_cbtools/sync_gateway.py | smarttradeapp/django_cbtools | d96b32977bdb0dbf1a6e891ab29ea7b69ac6bed4 | [
"BSD-3-Clause"
] | 26 | 2015-10-17T08:59:36.000Z | 2021-06-10T17:48:41.000Z | django_cbtools/sync_gateway.py | smarttradeapp/django_couchbase | d96b32977bdb0dbf1a6e891ab29ea7b69ac6bed4 | [
"BSD-3-Clause"
] | 8 | 2015-11-28T13:47:19.000Z | 2020-12-15T12:58:00.000Z | import json
import logging
import requests
from requests.auth import HTTPBasicAuth
from django.conf import settings
logger = logging.getLogger(__name__)
| 35.962963 | 117 | 0.607364 |
68d4db48cd7efced20080ca32fe6dc3a1aa6264d | 799 | py | Python | data/test/python/68d4db48cd7efced20080ca32fe6dc3a1aa6264dfiles.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/test/python/68d4db48cd7efced20080ca32fe6dc3a1aa6264dfiles.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/test/python/68d4db48cd7efced20080ca32fe6dc3a1aa6264dfiles.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | from django.db import models
__all__ = ('PostSaveImageField',)
| 30.730769 | 75 | 0.663329 |
68d5cee9ebb5e1c1bd25e61f2e236a1d2418e447 | 11,172 | py | Python | tests/test_casefold_migration.py | clmnin/sydent | 867c569aabd0163952a239900f1353199ff373e2 | [
"Apache-2.0"
] | 220 | 2015-02-04T21:31:04.000Z | 2022-03-19T14:36:08.000Z | tests/test_casefold_migration.py | clmnin/sydent | 867c569aabd0163952a239900f1353199ff373e2 | [
"Apache-2.0"
] | 329 | 2015-09-22T09:44:05.000Z | 2022-03-29T15:20:24.000Z | tests/test_casefold_migration.py | clmnin/sydent | 867c569aabd0163952a239900f1353199ff373e2 | [
"Apache-2.0"
] | 85 | 2015-05-19T08:54:36.000Z | 2022-02-28T13:04:18.000Z | import json
import os.path
from unittest.mock import patch
from twisted.trial import unittest
from scripts.casefold_db import (
calculate_lookup_hash,
update_global_associations,
update_local_associations,
)
from sydent.util import json_decoder
from sydent.util.emailutils import sendEmail
from tests.utils... | 33.650602 | 109 | 0.502148 |
68d73c38a4b75247e3508965edda75784278bb36 | 727 | py | Python | app/services/interface.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 4 | 2018-01-29T05:51:32.000Z | 2018-02-08T05:18:47.000Z | app/services/interface.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 3 | 2018-01-30T21:41:09.000Z | 2018-01-31T18:20:01.000Z | app/services/interface.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 1 | 2019-03-29T19:32:28.000Z | 2019-03-29T19:32:28.000Z | import time
import pyautogui
time.sleep(5)
| 17.309524 | 43 | 0.636864 |
68d7949cbecdb41978f1fe1039a63c0c493e2b83 | 6,374 | py | Python | test_soundcard.py | bastibe/pysound | 186df407535bd86fa01b51661c97f5c5b8219598 | [
"BSD-3-Clause"
] | 490 | 2017-08-30T00:49:02.000Z | 2022-03-29T01:04:18.000Z | test_soundcard.py | bastibe/pysound | 186df407535bd86fa01b51661c97f5c5b8219598 | [
"BSD-3-Clause"
] | 137 | 2017-09-24T19:03:57.000Z | 2022-03-31T08:16:32.000Z | test_soundcard.py | bastibe/pysound | 186df407535bd86fa01b51661c97f5c5b8219598 | [
"BSD-3-Clause"
] | 63 | 2017-10-01T12:15:51.000Z | 2022-03-18T00:30:34.000Z | import sys
import soundcard
import numpy
import pytest
skip_if_not_linux = pytest.mark.skipif(sys.platform != 'linux', reason='Only implemented for PulseAudio so far')
ones = numpy.ones(1024)
signal = numpy.concatenate([[ones], [-ones]]).T
def test_loopback_playback(loopback_player, loopback_recorder):
loopback_... | 39.8375 | 112 | 0.690147 |
68d9153bed265d3cdde09cd8f562c640008e4d8f | 814 | py | Python | migrations/versions/c0e8d68e84fa_added_anomaly_config_to_kpi.py | eltociear/chaos_genius | eb3bc27181c8af4144b95e685386814109173164 | [
"MIT"
] | 320 | 2022-02-18T18:18:42.000Z | 2022-03-31T16:42:38.000Z | migrations/versions/c0e8d68e84fa_added_anomaly_config_to_kpi.py | eltociear/chaos_genius | eb3bc27181c8af4144b95e685386814109173164 | [
"MIT"
] | 115 | 2022-02-18T16:39:01.000Z | 2022-03-31T15:23:52.000Z | migrations/versions/c0e8d68e84fa_added_anomaly_config_to_kpi.py | eltociear/chaos_genius | eb3bc27181c8af4144b95e685386814109173164 | [
"MIT"
] | 18 | 2022-02-18T18:44:01.000Z | 2022-03-10T08:33:34.000Z | """added anomaly config to kpi
Revision ID: c0e8d68e84fa
Revises: abf0d4ab3bc9
Create Date: 2021-09-02 09:08:21.174195
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c0e8d68e84fa'
down_revision = 'abf0d4ab3bc9'
branch_labels = None
depends_on = None
| 26.258065 | 93 | 0.699017 |
68da264f2cfdcd5707af2f1031da22a94467e12b | 2,501 | py | Python | puzzler/puzzles/polyominoes45.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | puzzler/puzzles/polyominoes45.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | puzzler/puzzles/polyominoes45.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | 1 | 2022-01-02T16:54:14.000Z | 2022-01-02T16:54:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# $Id$
# Author: David Goodger <goodger@python.org>
# Copyright: (C) 1998-2015 by David J. Goodger
# License: GPL 2 (see __init__.py)
"""
Concrete pentomino & tetromino (polyominoes of order 4 & 5) puzzles.
"""
from puzzler.puzzles.polyominoes import Polyominoes45, OneSi... | 21.938596 | 76 | 0.612555 |
68dc4d792c858d03eb428e1a734ed975d802ebe0 | 674 | py | Python | panacea/panacea_app/urls.py | Panacea-4-U/Panacea | 1123c4e0637e5caf5842a780ded6f347ecc38d96 | [
"Apache-2.0"
] | null | null | null | panacea/panacea_app/urls.py | Panacea-4-U/Panacea | 1123c4e0637e5caf5842a780ded6f347ecc38d96 | [
"Apache-2.0"
] | null | null | null | panacea/panacea_app/urls.py | Panacea-4-U/Panacea | 1123c4e0637e5caf5842a780ded6f347ecc38d96 | [
"Apache-2.0"
] | 1 | 2022-02-13T16:44:38.000Z | 2022-02-13T16:44:38.000Z | from django.urls import path
from . import views
urlpatterns = [
path('', views.home,name='web-home'),
path('patient/<int:pk>/',views.pat_home,name='pat-home'),
path('landing', views.landingpage,name='landing-page'),
path('login-register', views.login_register,name='login-register'),
path('about_us... | 42.125 | 72 | 0.698813 |
68deccc056a4c851632e01a7ecb48de99d1cff65 | 16,252 | py | Python | wxPython/wxGlade-0.9.1/tests/testsupport_new.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | wxPython/wxGlade-0.9.1/tests/testsupport_new.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | wxPython/wxGlade-0.9.1/tests/testsupport_new.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z |
"""
@copyright: 2012-2016 Carsten Grohmann (as file __init__.py)
@copyright: 2016-2018 Dietmar Schwertberger
@license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY
"""
import os, sys
sys.path.insert(1, os.path.dirname(sys.path[0]))
import errno, fnmatch, glob, shutil, re
import unittest, difflib, log... | 41.459184 | 124 | 0.624231 |
68df4ff9bffd8e290cccf2cedba479723cfa9b87 | 3,127 | py | Python | cherrypicker/cli.py | Spacerat/cherrypicker | 199c7ab2a033231b387bce4660df35ba22fc5a21 | [
"MIT"
] | null | null | null | cherrypicker/cli.py | Spacerat/cherrypicker | 199c7ab2a033231b387bce4660df35ba22fc5a21 | [
"MIT"
] | null | null | null | cherrypicker/cli.py | Spacerat/cherrypicker | 199c7ab2a033231b387bce4660df35ba22fc5a21 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import sh
import click
import re
| 30.067308 | 119 | 0.610489 |
68df548e4248d1c3e8da7e5ae61685570defbde2 | 576 | py | Python | space_manager/branches/migrations/0011_branch_minimap_img.py | yoojat/Space-Manager | dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9 | [
"MIT"
] | null | null | null | space_manager/branches/migrations/0011_branch_minimap_img.py | yoojat/Space-Manager | dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9 | [
"MIT"
] | 1 | 2018-02-27T15:21:53.000Z | 2018-02-27T15:21:53.000Z | space_manager/branches/migrations/0011_branch_minimap_img.py | yoojat/Space-Manager | dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9 | [
"MIT"
] | 1 | 2018-02-16T08:31:30.000Z | 2018-02-16T08:31:30.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-05-03 14:34
from __future__ import unicode_literals
from django.db import migrations, models
import space_manager.branches.models
| 26.181818 | 127 | 0.668403 |
68e02c589e8f1a8db10b0ff06b4d124889110e3b | 4,726 | py | Python | Source/sobrevivente.py | wesferr/Zombicide | a4ebec16565cd5aa0bd02dfeb53b108b1daca70a | [
"MIT"
] | 1 | 2020-02-27T16:09:00.000Z | 2020-02-27T16:09:00.000Z | Source/sobrevivente.py | wesferr/Zombicide | a4ebec16565cd5aa0bd02dfeb53b108b1daca70a | [
"MIT"
] | null | null | null | Source/sobrevivente.py | wesferr/Zombicide | a4ebec16565cd5aa0bd02dfeb53b108b1daca70a | [
"MIT"
] | null | null | null | # Copyright (c) 2018 by Wesley Ferreira. All Rights Reserved.
from pygame import *
from pygame.locals import *
from spritesGame import *
from math import *
| 30.490323 | 114 | 0.470588 |
68e217a5de06b8634e03ceb0c929ab67a9c87db3 | 406 | py | Python | cv/migrations/0003_auto_20200826_1142.py | Shuhao99/2020Bridging-Coursework | e1e4c2aee7f6c626729023392fdd8854f3a76903 | [
"MIT"
] | null | null | null | cv/migrations/0003_auto_20200826_1142.py | Shuhao99/2020Bridging-Coursework | e1e4c2aee7f6c626729023392fdd8854f3a76903 | [
"MIT"
] | null | null | null | cv/migrations/0003_auto_20200826_1142.py | Shuhao99/2020Bridging-Coursework | e1e4c2aee7f6c626729023392fdd8854f3a76903 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.15 on 2020-08-26 03:42
from django.db import migrations, models
| 21.368421 | 53 | 0.6133 |
68e71d66b70b0dd3ade14e9039ddc396142859fd | 274 | py | Python | foo.py/bar.py | conradstorz/Sunset-Village-River-Bot | a8aca14776510a6c1a912f1be4e6cb9c4467d9be | [
"MIT"
] | null | null | null | foo.py/bar.py | conradstorz/Sunset-Village-River-Bot | a8aca14776510a6c1a912f1be4e6cb9c4467d9be | [
"MIT"
] | 3 | 2020-12-02T01:23:19.000Z | 2021-04-06T18:03:50.000Z | foo.py/bar.py | conradstorz/Sunset-Village-River-Bot | a8aca14776510a6c1a912f1be4e6cb9c4467d9be | [
"MIT"
] | null | null | null | print(f'This is the python code file bar.py and my name currently is:{__name__}')
if __name__ == 'bar':
print(f'I was imported as a module.')
print(f'bar.py __file__ variable:{__file__}')
print('If the slashes in the file path lean to the right then I am __main__')
| 45.666667 | 81 | 0.715328 |
68e8ab2bfd54518c739c30012b012e93c5a898d4 | 427 | py | Python | otter/json_schema/__init__.py | codebyravi/otter | d58077ba4af24a586ae0a0becaf6da96b716a597 | [
"Apache-2.0"
] | 20 | 2015-02-11T16:32:07.000Z | 2019-11-12T03:27:54.000Z | otter/json_schema/__init__.py | codebyravi/otter | d58077ba4af24a586ae0a0becaf6da96b716a597 | [
"Apache-2.0"
] | 1,145 | 2015-01-01T00:00:47.000Z | 2022-02-11T03:40:39.000Z | otter/json_schema/__init__.py | codebyravi/otter | d58077ba4af24a586ae0a0becaf6da96b716a597 | [
"Apache-2.0"
] | 29 | 2015-01-08T15:00:11.000Z | 2021-02-16T16:33:53.000Z | """
Draft 3 JSON schemas (http://tools.ietf.org/html/draft-zyp-json-schema-03)
of data that will be transmitted to and from otter.
"""
import functools
from jsonschema import Draft3Validator, validate, FormatChecker
# This is there since later modules need to add specific format validators to this.
format_checker = F... | 32.846154 | 90 | 0.798595 |
68e945c9f845d2478619cb725177ee66172da129 | 768 | py | Python | wikidump/wikidump/__init__.py | foxsquad/wikidump | 2e786820dcb505dc220597246d251d55d32fec64 | [
"MIT"
] | null | null | null | wikidump/wikidump/__init__.py | foxsquad/wikidump | 2e786820dcb505dc220597246d251d55d32fec64 | [
"MIT"
] | null | null | null | wikidump/wikidump/__init__.py | foxsquad/wikidump | 2e786820dcb505dc220597246d251d55d32fec64 | [
"MIT"
] | null | null | null | """Wikidump reader and processor module.
"""
import os
with open(os.path.join(
os.path.dirname(__file__),
'scripts',
'DUMP_VERSION')) as f:
DUMP_VERSION = f.readline().strip()
with open(os.path.join(
os.path.dirname(__file__),
'scripts',
'TORRENT_HASH')) as f:
... | 24 | 71 | 0.645833 |
68eb17fe8d008791a0fef854b9af4d27846c10b0 | 438 | py | Python | hirearefugee/userclass/migrations/0003_auto_20200812_1803.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | 1 | 2020-09-07T07:20:04.000Z | 2020-09-07T07:20:04.000Z | hirearefugee/userclass/migrations/0003_auto_20200812_1803.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | 2 | 2020-09-14T18:13:55.000Z | 2020-09-14T21:21:28.000Z | hirearefugee/userclass/migrations/0003_auto_20200812_1803.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1 on 2020-08-12 18:03
from django.conf import settings
from django.db import migrations
| 21.9 | 66 | 0.652968 |
68ed8384583d1de109a2b1dc0d3149036c65bfcd | 3,208 | py | Python | eeglib/tests/test_auxFunctions.py | Xiul109/eeglib | b447b3fece88502a958fa13f54a71feff73e69e5 | [
"MIT"
] | 20 | 2017-06-04T09:12:55.000Z | 2022-03-24T09:54:26.000Z | eeglib/tests/test_auxFunctions.py | ElsevierSoftwareX/SOFTX-D-21-00087 | 66ebbc826c6c29dfa1beee48520f921988ecc192 | [
"MIT"
] | 4 | 2021-05-31T07:36:47.000Z | 2022-03-16T16:59:37.000Z | eeglib/tests/test_auxFunctions.py | Xiul109/eeglib | b447b3fece88502a958fa13f54a71feff73e69e5 | [
"MIT"
] | 6 | 2018-10-25T08:29:37.000Z | 2022-03-27T13:08:47.000Z | import unittest
import numpy as np
from itertools import product
import eeglib.auxFunctions as aux
if __name__ == "__main__":
unittest.main()
| 35.644444 | 76 | 0.586035 |
68ed8e9d6da24e240ddc7acbaa035be28b31fb31 | 1,193 | py | Python | vathos/trainer/tpu_trainer.py | satyajitghana/ProjektDepth | 4dea3333cd3d8dbc43174a89494e1ff832714fc8 | [
"MIT"
] | 2 | 2020-06-03T08:50:00.000Z | 2020-12-17T14:49:45.000Z | vathos/trainer/tpu_trainer.py | satyajitghana/ProjektDepth | 4dea3333cd3d8dbc43174a89494e1ff832714fc8 | [
"MIT"
] | null | null | null | vathos/trainer/tpu_trainer.py | satyajitghana/ProjektDepth | 4dea3333cd3d8dbc43174a89494e1ff832714fc8 | [
"MIT"
] | 5 | 2020-05-21T03:12:46.000Z | 2021-05-06T17:51:33.000Z | from .base_trainer import BaseTrainer
import torch
import os
| 24.854167 | 75 | 0.63202 |
68ee1d34d968e0798620f762dad02bcc263fa759 | 3,464 | py | Python | chromecast/tools/build/package_test_deps.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chromecast/tools/build/package_test_deps.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chromecast/tools/build/package_test_deps.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | #!/usr/bin/env python
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Packages test dependencies as tar.gz file."""
import argparse
import json
import logging
import os
import sys
import tarfile
pa... | 31.779817 | 80 | 0.687356 |
68eee7aa3b47d93b19ed191e8a0f67696f548338 | 1,185 | py | Python | AtC_Beg_Con_071-080/ABC076/C.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_071-080/ABC076/C.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | AtC_Beg_Con_071-080/ABC076/C.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | import copy as cp
s = input()
t = input()
u = list(s)
v = list(t)
w = cp.deepcopy(u)
p = 0
q = 0
for h in range(len(u) - 1, -1, -1):
if q == 1:
break
if v[-1] == u[h]:
#w[i] = v[0]
for j in range(len(v)):
if (v[-1 - j] == u[h - j]) and h - j >= 0:
pass
... | 25.76087 | 77 | 0.291983 |
68eeecfde640c4457fb90168e562e2c873ed2b53 | 13,826 | py | Python | hls4ml/backends/fpga/fpga_types.py | jaemyungkim/hls4ml | c739c0e05885a7908cbe65cd5cfc62eb6b33fdd0 | [
"Apache-2.0"
] | 380 | 2018-03-12T19:54:35.000Z | 2020-11-09T11:34:18.000Z | hls4ml/backends/fpga/fpga_types.py | jaemyungkim/hls4ml | c739c0e05885a7908cbe65cd5cfc62eb6b33fdd0 | [
"Apache-2.0"
] | 174 | 2018-02-16T18:53:21.000Z | 2020-11-06T22:29:22.000Z | hls4ml/backends/fpga/fpga_types.py | jaemyungkim/hls4ml | c739c0e05885a7908cbe65cd5cfc62eb6b33fdd0 | [
"Apache-2.0"
] | 138 | 2018-02-24T00:44:00.000Z | 2020-11-04T17:33:57.000Z | import numpy as np
from hls4ml.model.types import CompressedType, NamedType, ExponentType, FixedPrecisionType, IntegerPrecisionType, XnorPrecisionType, ExponentPrecisionType, TensorVariable, PackedType, WeightVariable
#region Precision types
#endregion
#region Data types
#endregion
#region Variables
#region Arra... | 40.309038 | 198 | 0.709243 |
68f24f18187a4667d26d75fa21c50758ee48a13a | 3,516 | py | Python | tripleo_common/tests/actions/test_swifthelper.py | AllenJSebastian/tripleo-common | d510a30266e002e90c358e69cb720bfdfa736134 | [
"Apache-2.0"
] | 2 | 2016-05-25T14:55:27.000Z | 2020-04-13T09:53:09.000Z | tripleo_common/tests/actions/test_swifthelper.py | AllenJSebastian/tripleo-common | d510a30266e002e90c358e69cb720bfdfa736134 | [
"Apache-2.0"
] | null | null | null | tripleo_common/tests/actions/test_swifthelper.py | AllenJSebastian/tripleo-common | d510a30266e002e90c358e69cb720bfdfa736134 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Red Hat, Inc.
# 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 required by applicable law ... | 36.247423 | 78 | 0.687429 |
68f2efb6c2821fabb2f970dd8e2f370b2817b286 | 13,163 | py | Python | misty/ca.py | b1tninja/misty | bbd479b3a0b23d419e1810e7d4970cf34846fa27 | [
"Unlicense"
] | 1 | 2021-04-06T23:39:09.000Z | 2021-04-06T23:39:09.000Z | misty/ca.py | b1tninja/misty | bbd479b3a0b23d419e1810e7d4970cf34846fa27 | [
"Unlicense"
] | 1 | 2021-04-03T13:27:22.000Z | 2021-04-03T21:08:25.000Z | misty/ca.py | b1tninja/misty | bbd479b3a0b23d419e1810e7d4970cf34846fa27 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import datetime
import io
import json
import logging
import os
import os.path
import pprint
import sys
import zipfile
from contextlib import closing
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(os.path.basename(__file__))
ENCODING = 'utf-8'
CURRENT_... | 34.822751 | 220 | 0.609967 |
68f3a8745467c301c743a873cdae59b1918cd5b0 | 557 | py | Python | personalcrm/quote/migrations/0007_auto_20210131_1508.py | carlossgv/personalcrm-repo | 2fbe824a62d8976ce09817d75dfac7291ca3d28d | [
"MIT"
] | 2 | 2021-02-11T12:46:06.000Z | 2021-02-22T01:32:35.000Z | personalcrm/quote/migrations/0007_auto_20210131_1508.py | carlossgv/personalcrm-repo | 2fbe824a62d8976ce09817d75dfac7291ca3d28d | [
"MIT"
] | null | null | null | personalcrm/quote/migrations/0007_auto_20210131_1508.py | carlossgv/personalcrm-repo | 2fbe824a62d8976ce09817d75dfac7291ca3d28d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-31 15:08
from django.db import migrations, models
| 23.208333 | 59 | 0.576302 |
68f479fdc939d2ab992c654a156b661aea253c19 | 626 | py | Python | Algorithms/Easy/1154. Day of the Year/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | Algorithms/Easy/1154. Day of the Year/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | Algorithms/Easy/1154. Day of the Year/answer.py | KenWoo/Algorithm | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | [
"Apache-2.0"
] | null | null | null | from typing import List
if __name__ == "__main__":
s = Solution()
result = s.dayOfYear("2004-03-01")
print(result)
| 27.217391 | 71 | 0.479233 |
68f9361114cb2bfb34f389991f3680138e33eed4 | 1,438 | py | Python | solutions/day2.py | alanahanson/adventofcode2017 | b73e545a6cef356682228266f5344cd40303ee0c | [
"MIT"
] | null | null | null | solutions/day2.py | alanahanson/adventofcode2017 | b73e545a6cef356682228266f5344cd40303ee0c | [
"MIT"
] | null | null | null | solutions/day2.py | alanahanson/adventofcode2017 | b73e545a6cef356682228266f5344cd40303ee0c | [
"MIT"
] | null | null | null | from unittest import TestCase
if __name__ == '__main__':
main()
| 28.196078 | 90 | 0.639082 |
68fd66ea7023416a40fdbc8013526ad5d48a7950 | 1,904 | py | Python | test/lisa/qemu_test.py | rf972/lisa-qemu | c1a7f01451e01ff2503956f636306ec1000581dc | [
"Apache-2.0"
] | 2 | 2020-12-11T02:16:34.000Z | 2020-12-12T06:39:59.000Z | test/lisa/qemu_test.py | rf972/lisa-qemu | c1a7f01451e01ff2503956f636306ec1000581dc | [
"Apache-2.0"
] | 2 | 2020-12-08T12:05:54.000Z | 2020-12-30T02:09:15.000Z | test/lisa/qemu_test.py | rf972/lisa-qemu | c1a7f01451e01ff2503956f636306ec1000581dc | [
"Apache-2.0"
] | 6 | 2020-04-03T10:40:32.000Z | 2021-07-06T15:03:00.000Z | import logging
import os
from lisa.trace import FtraceCollector, Trace
from lisa.utils import setup_logging
from lisa.target import Target, TargetConf
from lisa.wlgen.rta import RTA, Periodic
from lisa.datautils import df_filter_task_ids
import pandas as pd
setup_logging()
target = Target.from_one_conf('conf/lisa/qemu... | 36.615385 | 121 | 0.705357 |
68fde3ad8bca8a935316b931dbeed03bfbbc6152 | 91,006 | py | Python | tests/test_core.py | netMedi/hl7apy | 50fc4f1e3a6edbbb4575a4e709ed804bcb62f83b | [
"MIT"
] | null | null | null | tests/test_core.py | netMedi/hl7apy | 50fc4f1e3a6edbbb4575a4e709ed804bcb62f83b | [
"MIT"
] | null | null | null | tests/test_core.py | netMedi/hl7apy | 50fc4f1e3a6edbbb4575a4e709ed804bcb62f83b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2018, CRS4
#
# 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... | 42.526168 | 248 | 0.655869 |
68fdedab8714215232ad67d3eb905ec4469d59d7 | 745 | py | Python | olea/models/mango.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 2 | 2020-06-18T03:25:52.000Z | 2020-06-18T07:33:45.000Z | olea/models/mango.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 15 | 2021-01-28T07:11:04.000Z | 2021-05-24T07:11:37.000Z | olea/models/mango.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | null | null | null | __all__ = ['Mango']
from sqlalchemy_ import BaseModel, Column, ForeignKey, UniqueConstraint, relationship
from sqlalchemy_.types import JSONB, DateTime, Integer, String
| 28.653846 | 85 | 0.691275 |
68fe436e27fea438ff6133317d1ad739f6808b26 | 7,181 | py | Python | vc3/model.py | ta1fukawa/vc-beta | c3a80c44be90f72bfe0bcac08f27c4882700c9b6 | [
"MIT"
] | null | null | null | vc3/model.py | ta1fukawa/vc-beta | c3a80c44be90f72bfe0bcac08f27c4882700c9b6 | [
"MIT"
] | null | null | null | vc3/model.py | ta1fukawa/vc-beta | c3a80c44be90f72bfe0bcac08f27c4882700c9b6 | [
"MIT"
] | null | null | null | import torch | 37.015464 | 178 | 0.612032 |
68ff08847fc77a443298c45f6122e4fd9ce8c996 | 4,239 | py | Python | tests/test_spider.py | TeamHG-Memex/domain-discovery-crawler | 171f16a0b18d30e23ae6793b011dcfbad8299240 | [
"MIT"
] | 16 | 2017-11-14T10:11:32.000Z | 2021-08-07T16:05:14.000Z | tests/test_spider.py | TeamHG-Memex/domain-discovery-crawler | 171f16a0b18d30e23ae6793b011dcfbad8299240 | [
"MIT"
] | null | null | null | tests/test_spider.py | TeamHG-Memex/domain-discovery-crawler | 171f16a0b18d30e23ae6793b011dcfbad8299240 | [
"MIT"
] | 9 | 2018-06-14T18:37:22.000Z | 2021-06-02T02:46:26.000Z | import json
from urllib.parse import quote
import pytest
from sklearn.externals import joblib
from twisted.web.resource import Resource
from twisted.web.util import redirectTo
from dd_crawler.spiders import DeepDeepSpider
from .mockserver import MockServer
from .utils import (
text_resource, get_path, inlineCallb... | 32.358779 | 80 | 0.609106 |
68ff5315511371696372cdef04cf8580d1f6d6e0 | 893 | py | Python | src/client.py | AntonioFuziy/VR_Robot | cc7ee03d9267cd2118d316b8b489d103a2129991 | [
"MIT"
] | null | null | null | src/client.py | AntonioFuziy/VR_Robot | cc7ee03d9267cd2118d316b8b489d103a2129991 | [
"MIT"
] | null | null | null | src/client.py | AntonioFuziy/VR_Robot | cc7ee03d9267cd2118d316b8b489d103a2129991 | [
"MIT"
] | null | null | null | import io
import socket
import struct
import time
import picamera
from IP import IP_ADDRESS
client_socket = socket.socket()
client_socket.connect((IP_ADDRESS, 8000))
connection = client_socket.makefile("wb")
try:
camera = picamera.PiCamera()
camera.vflip = True
camera.resolution = (500,480)
camera.start_prev... | 21.261905 | 55 | 0.618141 |
ec014541dfd983d4831db36bad13f0a4847aacca | 758 | py | Python | processing/un_wpp/inputs/download.py | fieldmaps/population-stats | a0728c180b17e7070bc9e5822b8deae2c5c334de | [
"MIT"
] | 1 | 2022-01-28T02:37:43.000Z | 2022-01-28T02:37:43.000Z | processing/un_wpp/inputs/download.py | fieldmaps/population-statistics | a0728c180b17e7070bc9e5822b8deae2c5c334de | [
"MIT"
] | null | null | null | processing/un_wpp/inputs/download.py | fieldmaps/population-statistics | a0728c180b17e7070bc9e5822b8deae2c5c334de | [
"MIT"
] | null | null | null | import requests
import pandas as pd
from .utils import DATA_URL, ADM0_URL, cwd, logging
logger = logging.getLogger(__name__)
data = cwd / '../../../inputs/un_wpp'
| 26.137931 | 52 | 0.647757 |
ec01ac21ae96a737759d256183069fac39c044ea | 350 | py | Python | 15/02/0.py | pylangstudy/201709 | 53d868786d7327a83bfa7f4149549c6f9855a6c6 | [
"CC0-1.0"
] | null | null | null | 15/02/0.py | pylangstudy/201709 | 53d868786d7327a83bfa7f4149549c6f9855a6c6 | [
"CC0-1.0"
] | 32 | 2017-09-01T00:52:17.000Z | 2017-10-01T00:30:02.000Z | 15/02/0.py | pylangstudy/201709 | 53d868786d7327a83bfa7f4149549c6f9855a6c6 | [
"CC0-1.0"
] | null | null | null | import bisect
breakpoints = [60, 70, 80, 90]
grades = 'FDCBA'
scores = [33, 99, 77, 70, 89, 90, 100]
print('breakpoints:', breakpoints)
print('grades:', grades)
print('scores:', scores)
print([grade(score) for score in scores])
| 26.923077 | 57 | 0.697143 |
ec02010e9b410cea80b91f17cb0e48f79a465f68 | 13,352 | py | Python | python/exfiles_similarity.py | unmtransinfo/Exfiles | 3c2373fe1f718d5e7f820f8e7bf95e7fe5153c13 | [
"BSD-2-Clause"
] | null | null | null | python/exfiles_similarity.py | unmtransinfo/Exfiles | 3c2373fe1f718d5e7f820f8e7bf95e7fe5153c13 | [
"BSD-2-Clause"
] | null | null | null | python/exfiles_similarity.py | unmtransinfo/Exfiles | 3c2373fe1f718d5e7f820f8e7bf95e7fe5153c13 | [
"BSD-2-Clause"
] | 1 | 2018-09-11T17:06:45.000Z | 2018-09-11T17:06:45.000Z | #!/usr/bin/env python3
"""exfiles_similarity.py
Expression profiles similarity computation.
- Author: Jeremy Yang
- Required: Python3, Pandas 0.22+
- Input expression profiles format expected: TSV, 2 columns of identifiers (ENSG, SEX) followed by multiple columns of expression values.
- File may be produced by g... | 44.358804 | 164 | 0.588601 |
ec026af3792c62bf8f0f1e9bc3599f2aee068302 | 27 | py | Python | main/networkmanager/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/networkmanager/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/networkmanager/update.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | pkgname = "NetworkManager"
| 13.5 | 26 | 0.777778 |
ec03f25704832abbc5df401f45c4b230b8a799f3 | 43,756 | py | Python | cogandmem/text.py | aemacdermid/cogandmem | e2d5fca4ee2b279146a4c64e7e6de1d28bd031ce | [
"MIT"
] | null | null | null | cogandmem/text.py | aemacdermid/cogandmem | e2d5fca4ee2b279146a4c64e7e6de1d28bd031ce | [
"MIT"
] | null | null | null | cogandmem/text.py | aemacdermid/cogandmem | e2d5fca4ee2b279146a4c64e7e6de1d28bd031ce | [
"MIT"
] | null | null | null | """
Functions for displaying text to the screen.
Text rendering in pygame does not allow for line breaks. This can lead to
issues when attempting to render text, particularly if one is unsure of the
width and height of a to-be-rendered string in a given font. The functions
here handle these difficulties.
This module ... | 42.440349 | 496 | 0.608831 |
ec0404e31dab469dc42f002d133e88fa0cc9cf9f | 5,747 | py | Python | scrape.py | GP-20/telegram_news_bot | 49a9b7a15668457a2bb2ed4fff1eaa6c9e89699b | [
"MIT"
] | null | null | null | scrape.py | GP-20/telegram_news_bot | 49a9b7a15668457a2bb2ed4fff1eaa6c9e89699b | [
"MIT"
] | null | null | null | scrape.py | GP-20/telegram_news_bot | 49a9b7a15668457a2bb2ed4fff1eaa6c9e89699b | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import requests
import datetime
import time
options = Options()
options.headless = True
time=datetime.datetime.now()
time=time.strftime("%d/%m/%Y %H:%M")
diario=scrape_diario()
universal=scrape... | 30.569149 | 82 | 0.615626 |
ec041b84d5ff3b3b634262773ef8feaafa547730 | 173 | py | Python | msp/datasets/__init__.py | bilalsp/msp | a336e9dfc3aa19352c21de5d3ce90d2b5c6f38c6 | [
"MIT"
] | 2 | 2021-12-26T02:40:19.000Z | 2022-01-14T05:44:48.000Z | msp/datasets/__init__.py | bilalsp/msp | a336e9dfc3aa19352c21de5d3ce90d2b5c6f38c6 | [
"MIT"
] | null | null | null | msp/datasets/__init__.py | bilalsp/msp | a336e9dfc3aa19352c21de5d3ce90d2b5c6f38c6 | [
"MIT"
] | null | null | null | """
The :mod:`mps.datasets` module includes utility to generate sample data.
"""
from msp.datasets._samples_generator import make_sparse_data
__all__ = ['make_sparse_data'] | 28.833333 | 72 | 0.786127 |
ec048d397af1f7a817ea4ebcd72652561060a46c | 2,945 | py | Python | humidor/sensors.py | sittingfrog/humidor | 606005c0b4444a5076ed9b0dff922bab7ead01a0 | [
"MIT"
] | null | null | null | humidor/sensors.py | sittingfrog/humidor | 606005c0b4444a5076ed9b0dff922bab7ead01a0 | [
"MIT"
] | null | null | null | humidor/sensors.py | sittingfrog/humidor | 606005c0b4444a5076ed9b0dff922bab7ead01a0 | [
"MIT"
] | null | null | null | import os
import json
import yaml
from datetime import datetime
from inkbird import InkbirdIBSTH
if __name__ == "__main__":
s = Sensors()
s.read_sensors()
| 34.244186 | 96 | 0.53073 |
ec055eebc44bbfef95ec6bc6d02a5ba6d8be2c7b | 5,384 | py | Python | tabular_ml_toolkit/preprocessor.py | psmathur/tabular_ml_toolkit | 46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1 | [
"Apache-2.0"
] | 1 | 2021-11-07T04:50:26.000Z | 2021-11-07T04:50:26.000Z | tabular_ml_toolkit/preprocessor.py | psmathur/tabular_ml_toolkit | 46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1 | [
"Apache-2.0"
] | null | null | null | tabular_ml_toolkit/preprocessor.py | psmathur/tabular_ml_toolkit | 46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_preprocessor.ipynb (unless otherwise specified).
__all__ = ['PreProcessor']
# Cell
from .dataframeloader import *
from .logger import *
# Cell
# hide
from sklearn.compose import ColumnTransformer, make_column_transformer
from sklearn.pipeline import Pipeline
from sklear... | 46.017094 | 119 | 0.676634 |
ec0706de5d3b575cec3a54d77c2886ee5e833609 | 9,228 | py | Python | lstm_as_approximation.py | iitis/qcontrol_lstm_approx | 0689df2cacc81c798a62bab5a1554e53fabceb89 | [
"MIT"
] | 5 | 2020-02-06T02:07:05.000Z | 2021-12-16T04:25:09.000Z | lstm_as_approximation.py | iitis/qcontrol_lstm_approx | 0689df2cacc81c798a62bab5a1554e53fabceb89 | [
"MIT"
] | null | null | null | lstm_as_approximation.py | iitis/qcontrol_lstm_approx | 0689df2cacc81c798a62bab5a1554e53fabceb89 | [
"MIT"
] | 2 | 2020-06-20T13:38:05.000Z | 2021-12-16T04:26:53.000Z | import os
from sys import argv, stdout
os.environ["CUDA_VISIBLE_DEVICES"]="-1"
import tensorflow as tf
import numpy as np
import scipy
import scipy.io
from itertools import product as prod
import time
from tensorflow.python.client import timeline
import cProfile
from sys import argv, stdout
from get_data import *
impo... | 36.330709 | 173 | 0.541612 |
ec0756bf5ca1071df830358d06155681925c3968 | 1,337 | py | Python | blue_green_assets/release_health_check.py | DNXLabs/docker-beanstalk-bluegreen | bcbf30ce6fb1e1c92f1e6c87a657add7bc03ae74 | [
"Apache-2.0"
] | 3 | 2022-03-29T16:33:17.000Z | 2022-03-31T01:36:39.000Z | blue_green_assets/release_health_check.py | DNXLabs/docker-beanstalk-bluegreen | bcbf30ce6fb1e1c92f1e6c87a657add7bc03ae74 | [
"Apache-2.0"
] | null | null | null | blue_green_assets/release_health_check.py | DNXLabs/docker-beanstalk-bluegreen | bcbf30ce6fb1e1c92f1e6c87a657add7bc03ae74 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
from time import strftime, sleep
import requests
import time | 33.425 | 75 | 0.769634 |
ec07a7fb00f7670dd530671b9ac2993161449b48 | 495 | py | Python | Python/code case/code case 79.py | amazing-2020/pdf | 8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d | [
"Apache-2.0"
] | 3 | 2021-01-01T13:08:24.000Z | 2021-02-03T09:27:56.000Z | Python/code case/code case 79.py | amazing-2020/pdf | 8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d | [
"Apache-2.0"
] | null | null | null | Python/code case/code case 79.py | amazing-2020/pdf | 8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d | [
"Apache-2.0"
] | null | null | null |
t = Test()
t.ptr()
t2 = Test2()
t2.ptr()
p = people('baidu', 10, 30)
p.speak()
| 14.142857 | 59 | 0.521212 |
ec08a77a7361cede39f79c1d8a9087df5f774999 | 2,912 | py | Python | text_tokenizers.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 17 | 2019-08-01T07:45:46.000Z | 2022-03-25T05:15:13.000Z | text_tokenizers.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 14 | 2020-05-30T16:18:28.000Z | 2021-06-24T08:08:19.000Z | text_tokenizers.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 6 | 2020-07-10T14:43:02.000Z | 2021-04-08T19:28:53.000Z | import re
import sentencepiece
import typing
from collections import defaultdict
class BPETokenizer:
def __init__(self, model_path: str, name: str):
self.bpe = sentencepiece.SentencePieceProcessor(model_file = model_path)
self.vocab = [self.bpe.id_to_piece(idx) for idx in range(self.bpe.get_piece... | 30.978723 | 128 | 0.644918 |
ec0b076d47c66cf0626e19abf3997711c193ec8f | 1,171 | py | Python | services/api-server/src/simcore_service_api_server/api/dependencies/services.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 25 | 2018-04-13T12:44:12.000Z | 2022-03-12T15:01:17.000Z | services/api-server/src/simcore_service_api_server/api/dependencies/services.py | colinRawlings/osparc-simcore | bf2f18d5bc1e574d5f4c238d08ad15156184c310 | [
"MIT"
] | 2,553 | 2018-01-18T17:11:55.000Z | 2022-03-31T16:26:40.000Z | services/api-server/src/simcore_service_api_server/api/dependencies/services.py | mrnicegyu11/osparc-simcore | b6fa6c245dbfbc18cc74a387111a52de9b05d1f4 | [
"MIT"
] | 20 | 2018-01-18T19:45:33.000Z | 2022-03-29T07:08:47.000Z | """ Dependences with any other services (except webserver)
"""
from typing import Callable, Type
from fastapi import HTTPException, Request, status
from ...utils.client_base import BaseServiceClientApi
def get_api_client(client_type: Type[BaseServiceClientApi]) -> Callable:
"""
Retrieves API client fro... | 33.457143 | 97 | 0.701964 |
ec0b8833358586c61838d39b98d99d94417de4a3 | 460 | py | Python | pycoin/symbols/mona.py | jaschadub/pycoin | 1e8d0d9fe20ce0347b97847bb529cd1bd84c7442 | [
"MIT"
] | 1,210 | 2015-01-02T13:36:28.000Z | 2022-03-30T00:52:22.000Z | pycoin/symbols/mona.py | impactog/pycoin | 3db6f82afa3054d8d07caca4909e1aed3de2fceb | [
"MIT"
] | 280 | 2015-01-05T23:16:47.000Z | 2022-02-22T22:02:17.000Z | pycoin/symbols/mona.py | impactog/pycoin | 3db6f82afa3054d8d07caca4909e1aed3de2fceb | [
"MIT"
] | 459 | 2015-01-10T00:15:57.000Z | 2022-03-16T12:04:40.000Z | from pycoin.networks.bitcoinish import create_bitcoinish_network
network = create_bitcoinish_network(
network_name="Monacoin", symbol="MONA", subnet_name="mainnet",
wif_prefix_hex="b0", sec_prefix="MONASEC:", address_prefix_hex="32", pay_to_script_prefix_hex="37",
bip32_prv_prefix_hex="0488ade4", bip32_pu... | 46 | 103 | 0.780435 |
ec0c809a1777f7f4d7cd38a0f0c627c6975ec5e6 | 2,105 | py | Python | C Project Files/py/postscriptNameMap.py | colinmford/font-production-project-template-glyphs | ee74ee217f32a6192cf27df122076d397aa1b743 | [
"MIT"
] | 1 | 2021-08-04T21:08:39.000Z | 2021-08-04T21:08:39.000Z | C Project Files/py/postscriptNameMap.py | colinmford/font-production-project-template-glyphs | ee74ee217f32a6192cf27df122076d397aa1b743 | [
"MIT"
] | null | null | null | C Project Files/py/postscriptNameMap.py | colinmford/font-production-project-template-glyphs | ee74ee217f32a6192cf27df122076d397aa1b743 | [
"MIT"
] | null | null | null | def generatePostscriptNameMap(glyphList):
"""
Generate a PostScript Name Map to be stored in the "public.postscriptNames" lib.
Used to rename glyphs during generation, like so:
{"indianrupee.tab": "uni20B9.tab"}
Args:
glyphList (list): A list of Glyph objects or a Font object (Defcon or F... | 35.677966 | 104 | 0.593349 |
ec0d6055b20b535fbbc6f681a55c55ec2597cdc8 | 3,687 | py | Python | android_test_inspector/latex_correlations_matrix.py | luiscruz/android_test_inspector | b1583eabf0783e53bbead4d37379e0c4f821f4f8 | [
"MIT"
] | 6 | 2020-10-31T09:17:40.000Z | 2020-11-09T13:54:04.000Z | android_test_inspector/latex_correlations_matrix.py | luiscruz/android_test_inspector | b1583eabf0783e53bbead4d37379e0c4f821f4f8 | [
"MIT"
] | null | null | null | android_test_inspector/latex_correlations_matrix.py | luiscruz/android_test_inspector | b1583eabf0783e53bbead4d37379e0c4f821f4f8 | [
"MIT"
] | 15 | 2020-10-28T00:41:51.000Z | 2020-11-09T15:57:12.000Z | import csv
import argparse
if __name__ == '__main__':
# ---------------
# ARGUMENTS
# ---------------
parser = argparse.ArgumentParser(
description="This program pretty-prints a CSV correlations matrix for usage in latex",
formatter_class=argparse.ArgumentDefaultsHelpFormatter
... | 27.721805 | 113 | 0.535937 |
ec0d95dfcdf72f9ccd16d6ea8948aebb0289dc22 | 1,553 | py | Python | ripiu/djangocms_aoxomoxoa/admin/options/grid_panel.py | ripiu/djangocms_aoxomoxoa | e801e49259fba739308daa37bc9bbd28ba0a8e27 | [
"BSD-3-Clause"
] | null | null | null | ripiu/djangocms_aoxomoxoa/admin/options/grid_panel.py | ripiu/djangocms_aoxomoxoa | e801e49259fba739308daa37bc9bbd28ba0a8e27 | [
"BSD-3-Clause"
] | null | null | null | ripiu/djangocms_aoxomoxoa/admin/options/grid_panel.py | ripiu/djangocms_aoxomoxoa | e801e49259fba739308daa37bc9bbd28ba0a8e27 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
| 30.45098 | 79 | 0.503542 |
ec0e9913d71004ece63d5e170d5ae3d67532155b | 4,412 | py | Python | DL_Models/torch_models/Modules.py | Zensho/CS91-Proj | 876d5e977800af42382f8c6398eb62ccff202497 | [
"MIT"
] | null | null | null | DL_Models/torch_models/Modules.py | Zensho/CS91-Proj | 876d5e977800af42382f8c6398eb62ccff202497 | [
"MIT"
] | null | null | null | DL_Models/torch_models/Modules.py | Zensho/CS91-Proj | 876d5e977800af42382f8c6398eb62ccff202497 | [
"MIT"
] | 1 | 2022-03-09T14:18:37.000Z | 2022-03-09T14:18:37.000Z | import torch.nn as nn
import math
| 38.365217 | 120 | 0.601541 |
ec0fa4f849b4d211abfec3d93bde5caf14d92597 | 1,743 | py | Python | raspberrypy/motor/L289N.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 1 | 2022-01-23T19:21:08.000Z | 2022-01-23T19:21:08.000Z | raspberrypy/motor/L289N.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 2 | 2020-07-22T17:20:33.000Z | 2020-07-23T00:30:55.000Z | raspberrypy/motor/L289N.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 2 | 2019-07-02T00:26:25.000Z | 2020-07-22T17:26:56.000Z | from ..utils.GPIO_utils import setup_output, output, GPIO_Base
from time import sleep
import random
| 27.234375 | 85 | 0.652324 |
ec108b707c4def11063253c01b4bc35bbc6042f2 | 223 | py | Python | Lecture_01/hw_01_05_.py | YouWatanabe/fp | 44d901a04ac7287c684bf2ad020733e41a41f266 | [
"MIT"
] | null | null | null | Lecture_01/hw_01_05_.py | YouWatanabe/fp | 44d901a04ac7287c684bf2ad020733e41a41f266 | [
"MIT"
] | null | null | null | Lecture_01/hw_01_05_.py | YouWatanabe/fp | 44d901a04ac7287c684bf2ad020733e41a41f266 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
lz, ret = leibniz(1000)
plt.plot(ret)
plt.show()
| 15.928571 | 39 | 0.573991 |
ec10c1e3a4796e71edbb53aa6a5d57d8e797d460 | 315 | py | Python | CHEFADV.py | akashsuper2000/codechef-archive | e0e4a7daf66812ab7aa3fe42132c3d067a72457b | [
"bzip2-1.0.6"
] | null | null | null | CHEFADV.py | akashsuper2000/codechef-archive | e0e4a7daf66812ab7aa3fe42132c3d067a72457b | [
"bzip2-1.0.6"
] | null | null | null | CHEFADV.py | akashsuper2000/codechef-archive | e0e4a7daf66812ab7aa3fe42132c3d067a72457b | [
"bzip2-1.0.6"
] | null | null | null | for i in range(int(input())):
n,m,x,y = [int(j) for j in input().split()]
if((n-1)%x==0 and (m-1)%y==0):
print('Chefirnemo')
elif(n-2>=0 and m-2>=0):
if((n-2)%x==0 and (m-2)%y==0):
print('Chefirnemo')
else:
print('Pofik')
else:
print('Pofik')
| 26.25 | 47 | 0.444444 |
ec10c94163981abf7ab0d09b96daaf312e18a335 | 479 | py | Python | shopcloud_django_toolbox/views.py | Talk-Point/shopcloud-django-toolbox | 78b937fd4feee2c862f12b85c9117c86ac2d7615 | [
"MIT"
] | null | null | null | shopcloud_django_toolbox/views.py | Talk-Point/shopcloud-django-toolbox | 78b937fd4feee2c862f12b85c9117c86ac2d7615 | [
"MIT"
] | null | null | null | shopcloud_django_toolbox/views.py | Talk-Point/shopcloud-django-toolbox | 78b937fd4feee2c862f12b85c9117c86ac2d7615 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.views.decorators.http import require_GET
| 22.809524 | 68 | 0.653445 |
ec10ee62b4a33eb795748660e631547aad46c65a | 6,653 | py | Python | fsm.py | Tattos/TOC-Project-2017 | 5e7b5603772583499b1339c9c963a8783f01f767 | [
"MIT"
] | null | null | null | fsm.py | Tattos/TOC-Project-2017 | 5e7b5603772583499b1339c9c963a8783f01f767 | [
"MIT"
] | null | null | null | fsm.py | Tattos/TOC-Project-2017 | 5e7b5603772583499b1339c9c963a8783f01f767 | [
"MIT"
] | null | null | null | # -- coding: UTF-8 --
from transitions.extensions import GraphMachine
global name
global reserve
| 43.201299 | 188 | 0.632948 |
ec12c5e43990e93dd5973a26cd375c935d1d422e | 29,947 | py | Python | header_common.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | header_common.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | header_common.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | ###################################################
# header_common.py
# This file contains common declarations.
# DO NOT EDIT THIS FILE!
###################################################
server_event_preset_message = 0
server_event_play_sound = 1
server_event_scene_prop_p... | 27.883613 | 170 | 0.631182 |
ec156505e91c441a8ad50c79db3df921782b1221 | 440 | py | Python | tests/resources/my_dummy_handlers/dummy_handler_multiple_args_too_few.py | stude1/robotframework-oxygen | e9845ab5d392d5d75d296d8cbca47f3a66659697 | [
"MIT"
] | 13 | 2020-05-15T08:30:13.000Z | 2022-01-24T01:10:29.000Z | tests/resources/my_dummy_handlers/dummy_handler_multiple_args_too_few.py | stude1/robotframework-oxygen | e9845ab5d392d5d75d296d8cbca47f3a66659697 | [
"MIT"
] | 23 | 2020-05-18T09:00:16.000Z | 2022-01-20T06:32:38.000Z | tests/resources/my_dummy_handlers/dummy_handler_multiple_args_too_few.py | stude1/robotframework-oxygen | e9845ab5d392d5d75d296d8cbca47f3a66659697 | [
"MIT"
] | 5 | 2020-08-21T07:08:18.000Z | 2021-11-29T18:04:46.000Z | from oxygen import BaseHandler
| 23.157895 | 66 | 0.625 |
ec1586b8f10e73509f56792bbd6c52902807c0eb | 335 | py | Python | clase2/primos.py | Jhoselyn-Carballo/computacion_para_ingenieria | 4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898 | [
"Apache-2.0"
] | null | null | null | clase2/primos.py | Jhoselyn-Carballo/computacion_para_ingenieria | 4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898 | [
"Apache-2.0"
] | null | null | null | clase2/primos.py | Jhoselyn-Carballo/computacion_para_ingenieria | 4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 1 09:38:18 2022
@author: JHOSS
"""
#CONTAR LOS NUMEROS PRIMOS DEL 1 AL 100
num = 1
while num <=100:
cont =1
x=0
while cont <= num:
if num % cont == 0:
x=x+1
cont = cont +1
if x==2:
print(num)
num = num +1
... | 14.565217 | 39 | 0.456716 |
ec179889f1b5082a2d32845c1a12ba05097cf005 | 2,041 | py | Python | src/utils.py | AdamRuddGH/crypto_get_latest_coins_lambda | 296b34e4f4f75412fa4ae759076430baf8719adb | [
"MIT"
] | null | null | null | src/utils.py | AdamRuddGH/crypto_get_latest_coins_lambda | 296b34e4f4f75412fa4ae759076430baf8719adb | [
"MIT"
] | null | null | null | src/utils.py | AdamRuddGH/crypto_get_latest_coins_lambda | 296b34e4f4f75412fa4ae759076430baf8719adb | [
"MIT"
] | null | null | null | """
Shared utilities. Mostly for time
"""
import arrow
import json
import re
def datetime_now():
"""
returns UTC now time
add .format('YYYY-MM-DD HH:mm:ss ZZ') to convert to ISO
add .format()
"""
return arrow.utcnow()
def epoch_to_timestamp(epoch_string):
"""
converts data from epoch ... | 25.5125 | 93 | 0.66193 |
ec187475e9c297665ae42158746fc88cffcf55f6 | 3,534 | py | Python | deep_qa-master/deep_qa/data/instances/sequence_tagging/tagging_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | 1 | 2017-04-11T13:03:55.000Z | 2017-04-11T13:03:55.000Z | deep_qa-master/deep_qa/data/instances/sequence_tagging/tagging_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | null | null | null | deep_qa-master/deep_qa/data/instances/sequence_tagging/tagging_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List, Any
import numpy
from overrides import overrides
from ..instance import TextInstance, IndexedInstance
from ...data_indexer import DataIndexer
| 42.071429 | 99 | 0.665535 |
ec18a5ae8ff3c875c8116ef1833aa8729d0acf31 | 348 | py | Python | day01_part1.py | jkbockstael/adventofcode-2020 | 94a4f818a6fb3f89370d37d2bd2223ef3023ab5a | [
"Unlicense"
] | 1 | 2020-12-02T10:03:08.000Z | 2020-12-02T10:03:08.000Z | day01_part1.py | jkbockstael/adventofcode-2020 | 94a4f818a6fb3f89370d37d2bd2223ef3023ab5a | [
"Unlicense"
] | null | null | null | day01_part1.py | jkbockstael/adventofcode-2020 | 94a4f818a6fb3f89370d37d2bd2223ef3023ab5a | [
"Unlicense"
] | null | null | null | # Advent of Code 2020 - Day 1 - Report Repair
# https://adventofcode.com/2020/day/1
import sys
if __name__ == "__main__":
print(part1(parse_input(sys.stdin.readlines())))
| 24.857143 | 74 | 0.681034 |
ec18af381f04c60608f7445c92c54531b795a35a | 494 | py | Python | readFromWrite.py | openNuke/toolkit | 3ee4d13865f8327532906d42af53a929a55e354c | [
"BSD-3-Clause"
] | 36 | 2015-11-01T20:13:18.000Z | 2021-06-24T22:01:07.000Z | readFromWrite.py | ZBYVFX/toolset | aaf213ddbaa0f924306271544b04760ddea7eee2 | [
"BSD-3-Clause"
] | 2 | 2015-10-19T09:04:34.000Z | 2015-12-16T13:58:03.000Z | readFromWrite.py | ZBYVFX/toolset | aaf213ddbaa0f924306271544b04760ddea7eee2 | [
"BSD-3-Clause"
] | 9 | 2015-06-15T17:38:20.000Z | 2021-05-23T06:05:13.000Z | #rafal kaniewski
# todo mov not working
import nuke
from PySide import QtGui
| 23.52381 | 84 | 0.678138 |
ec18e74200299d5c93a6b3f38c5d884a5d88a903 | 972 | py | Python | pyutil/iterators/intersection.py | SSouik/pyutil | d2250fb585679e49eb9056a3051bf239a58c2e8b | [
"MIT"
] | null | null | null | pyutil/iterators/intersection.py | SSouik/pyutil | d2250fb585679e49eb9056a3051bf239a58c2e8b | [
"MIT"
] | 21 | 2022-01-05T04:51:33.000Z | 2022-01-28T05:45:57.000Z | pyutil/iterators/intersection.py | SSouik/pyutil | d2250fb585679e49eb9056a3051bf239a58c2e8b | [
"MIT"
] | null | null | null | """
Author Samuel Souik
License MIT.
intersection.py
"""
from itertools import islice
| 20.680851 | 84 | 0.553498 |
ec1c799b1e47e5da04c6afaaf74aef8c07f2bf38 | 543 | py | Python | src/settings.py | psykzz/st3-gitblame | 42179a999d03b19d9f20b85d2f30fe5c288d0f59 | [
"MIT"
] | 28 | 2017-02-01T19:28:53.000Z | 2019-04-03T13:55:37.000Z | src/settings.py | frou/st3-gitblame | 154163dc5e08eb37a3f7181f500719d577b61cfa | [
"MIT"
] | 43 | 2019-04-07T14:07:55.000Z | 2022-01-29T22:20:09.000Z | src/settings.py | psykzz/st3-gitblame | 42179a999d03b19d9f20b85d2f30fe5c288d0f59 | [
"MIT"
] | 14 | 2017-02-10T22:00:35.000Z | 2019-04-01T17:45:43.000Z | import sublime
PKG_SETTINGS_KEY_CUSTOMBLAMEFLAGS = "custom_blame_flags"
PKG_SETTINGS_KEY_INLINE_BLAME_ENABLED = "inline_blame_enabled"
PKG_SETTINGS_KEY_INLINE_BLAME_DELAY = "inline_blame_delay"
| 36.2 | 88 | 0.801105 |
ec1cae15e2ec3117b3801e43d2253bbfac885ebf | 1,177 | py | Python | scripts/split_dataset.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | 5 | 2022-01-13T15:06:45.000Z | 2022-01-28T19:39:54.000Z | scripts/split_dataset.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | null | null | null | scripts/split_dataset.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | 1 | 2022-01-13T11:46:55.000Z | 2022-01-13T11:46:55.000Z | import json
with open('train.json','r') as f:
gt = json.load(f)
parse(gt)
| 19.949153 | 56 | 0.523364 |
ec1e32453819c8d4be3023c520b8fd7d15845a56 | 1,953 | py | Python | insanic/protocol.py | crazytruth/insanic | f9b61611317d873fe7688a5fd13eecb9a496ead5 | [
"MIT"
] | 4 | 2020-10-13T04:34:21.000Z | 2022-02-18T05:34:03.000Z | insanic/protocol.py | crazytruth/insanic | f9b61611317d873fe7688a5fd13eecb9a496ead5 | [
"MIT"
] | 1 | 2020-09-29T06:59:36.000Z | 2020-09-29T06:59:36.000Z | insanic/protocol.py | crazytruth/insanic | f9b61611317d873fe7688a5fd13eecb9a496ead5 | [
"MIT"
] | null | null | null | import time
from sanic.response import HTTPResponse
from sanic.server import HttpProtocol
from insanic.log import access_logger
| 34.263158 | 80 | 0.507937 |
ec1f2ee5219b5c68ec78fd02b208a221d7e1c648 | 395 | py | Python | recruiting/migrations/0002_adminresume_bottom_msg.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | 1 | 2018-04-10T11:47:16.000Z | 2018-04-10T11:47:16.000Z | recruiting/migrations/0002_adminresume_bottom_msg.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | recruiting/migrations/0002_adminresume_bottom_msg.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-15 22:20
from django.db import migrations, models
| 20.789474 | 60 | 0.597468 |
ec1f6cedba8311cdb465a824a6c11a9433cde1af | 162 | py | Python | django_robokassa/app.py | AlekseyA/django-robokassa | 825f5633f5bebe54aa2ea180573b2de683fd8589 | [
"MIT"
] | null | null | null | django_robokassa/app.py | AlekseyA/django-robokassa | 825f5633f5bebe54aa2ea180573b2de683fd8589 | [
"MIT"
] | null | null | null | django_robokassa/app.py | AlekseyA/django-robokassa | 825f5633f5bebe54aa2ea180573b2de683fd8589 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 23.142857 | 35 | 0.697531 |
ec21b5a8516b029995f799fb5dd969c7759c2b66 | 889 | py | Python | exchangelib/services/expand_dl.py | mishmashclone/ecederstrand-exchangelib | 1bbae0e527dc82a45bf3b5946b438d69de96c20f | [
"BSD-2-Clause"
] | null | null | null | exchangelib/services/expand_dl.py | mishmashclone/ecederstrand-exchangelib | 1bbae0e527dc82a45bf3b5946b438d69de96c20f | [
"BSD-2-Clause"
] | null | null | null | exchangelib/services/expand_dl.py | mishmashclone/ecederstrand-exchangelib | 1bbae0e527dc82a45bf3b5946b438d69de96c20f | [
"BSD-2-Clause"
] | null | null | null | from .common import EWSService
from ..errors import ErrorNameResolutionMultipleResults
from ..properties import Mailbox
from ..util import create_element, set_xml_value, MNS
| 40.409091 | 120 | 0.778403 |
ec2559e688303806cb68a95bcd504e2ac49bb987 | 3,950 | py | Python | data/scripts/summarize_buidlings.py | chihacknight/state-by-state-decarbonization | 59f25cb074a7b08b9f682929201af93f01490250 | [
"MIT"
] | 2 | 2022-02-09T03:10:24.000Z | 2022-02-09T14:19:51.000Z | data/scripts/summarize_buidlings.py | chihacknight/state-by-state-decarbonization | 59f25cb074a7b08b9f682929201af93f01490250 | [
"MIT"
] | 44 | 2022-02-09T15:28:40.000Z | 2022-03-30T19:48:14.000Z | data/scripts/summarize_buidlings.py | chihacknight/state-by-state-decarbonization | 59f25cb074a7b08b9f682929201af93f01490250 | [
"MIT"
] | 1 | 2022-03-14T06:10:07.000Z | 2022-03-14T06:10:07.000Z | # %%
import pandas as pd
# %%
# path to data, see
# res stock meta: https://data.openei.org/s3_viewer?bucket=oedi-data-lake&prefix=nrel-pds-building-stock%2Fend-use-load-profiles-for-us-building-stock%2F2021%2Fresstock_amy2018_release_1%2Ftimeseries_aggregates_metadata%2F
# com stock meta: https://data.openei.org/s3_vi... | 48.170732 | 222 | 0.71443 |
ec266ce3d5b6ec74ba50ae8d0e07947d975851bb | 22,445 | py | Python | build/lib/MCMTpy/utils/MomentTensor.py | OUCyf/MCMTpy | 0886f7f4a7c39ebb1de6db14dc86241cb28ceef1 | [
"MIT"
] | 22 | 2021-10-12T15:24:47.000Z | 2022-03-19T06:08:28.000Z | build/lib/MCMTpy/utils/MomentTensor.py | OUCyf/MCMTpy | 0886f7f4a7c39ebb1de6db14dc86241cb28ceef1 | [
"MIT"
] | null | null | null | build/lib/MCMTpy/utils/MomentTensor.py | OUCyf/MCMTpy | 0886f7f4a7c39ebb1de6db14dc86241cb28ceef1 | [
"MIT"
] | 2 | 2021-12-03T06:23:09.000Z | 2021-12-12T00:55:29.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 23 19:53:22 2021
@author: Fu Yin (yinfu@mail.ustc.edu.cn) at USTC
This script refers to some theories and codes of Obspy/MoPaD/Introduction to Seismology (Yongge Wan):
1) The MoPaD program (https://github.com/geophysics/MoPaD);
2) str_dip_ra... | 30.087131 | 161 | 0.523725 |
ec2672ae7bcadf74322cfd2f19354039f5fcb505 | 3,320 | py | Python | src/djlime/forms/widgets.py | freshlimestudio/djlime | 69e177d6e26fdf9cb520ac3316548d7d38b9690e | [
"BSD-3-Clause"
] | null | null | null | src/djlime/forms/widgets.py | freshlimestudio/djlime | 69e177d6e26fdf9cb520ac3316548d7d38b9690e | [
"BSD-3-Clause"
] | null | null | null | src/djlime/forms/widgets.py | freshlimestudio/djlime | 69e177d6e26fdf9cb520ac3316548d7d38b9690e | [
"BSD-3-Clause"
] | null | null | null | """
djlime.forms.widgets
~~~~~~~~~~~~~~
Extended django form widgets.
:copyright: (c) 2012 by Andrey Voronov.
:license: BSD, see LICENSE for more details.
"""
from itertools import chain
from django.forms import widgets
from django.forms.util import flatatt
from django.utils.encoding import force... | 37.727273 | 122 | 0.679819 |
ec26ce25392b66bace5b04d3ab23d087cf1ac662 | 6,640 | py | Python | nntoolbox/sequence/models/encoder.py | nhatsmrt/nn-toolbox | 689b9924d3c88a433f8f350b89c13a878ac7d7c3 | [
"Apache-2.0"
] | 16 | 2019-07-11T15:57:41.000Z | 2020-09-08T13:52:45.000Z | nntoolbox/sequence/models/encoder.py | nhatsmrt/nn-toolbox | 689b9924d3c88a433f8f350b89c13a878ac7d7c3 | [
"Apache-2.0"
] | 1 | 2022-01-18T22:21:57.000Z | 2022-01-18T22:21:57.000Z | nntoolbox/sequence/models/encoder.py | nhatsmrt/nn-toolbox | 689b9924d3c88a433f8f350b89c13a878ac7d7c3 | [
"Apache-2.0"
] | 1 | 2019-08-07T10:07:09.000Z | 2019-08-07T10:07:09.000Z | import torch
from torch import nn, Tensor
from typing import Tuple
from ..components import ResidualRNN
__all__ = ['Encoder', 'RNNEncoder', 'GRUEncoder']
# class ResidualGRUEncoder(RNNEncoder, GRUEncoder):
# def __init__(
# self, input_size, hidden_size, embedding_dim, device, bias=False,
# ... | 38.16092 | 126 | 0.626054 |
ec2784fa11213b2e0722999417e866beffaf7090 | 16,106 | py | Python | PR_BCI_team/Team_StarLab/DKHan/examples/eeg_dg/train_eval.py | PatternRecognition/OpenBMI | d9291ddb81f4319fb3764d7192e0363939a62ee9 | [
"MIT"
] | 217 | 2015-11-02T11:10:29.000Z | 2022-03-22T07:01:12.000Z | PR_BCI_team/Team_StarLab/DKHan/examples/eeg_dg/train_eval.py | deep-bci-g/OpenBMI | 75daf901b2dbe215852cbff243606dcfcd10f05c | [
"MIT"
] | 24 | 2015-11-02T11:10:45.000Z | 2021-09-08T11:10:33.000Z | PR_BCI_team/Team_StarLab/DKHan/examples/eeg_dg/train_eval.py | deep-bci-g/OpenBMI | 75daf901b2dbe215852cbff243606dcfcd10f05c | [
"MIT"
] | 112 | 2016-01-22T01:45:44.000Z | 2022-03-22T07:08:19.000Z | import torch
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
def train_crop(log_interval, model, device, train_loader, optimizer, scheduler, cuda, gpuidx, epoch=1):
criterion = torch.nn.NLLLoss()
lossfn = CroppedLoss(criterion)
model.train()
for batch_idx, dat... | 37.282407 | 134 | 0.593009 |
ec286e80af59f4eccb8146eeff506741d8b1caa5 | 1,162 | py | Python | sdk/core/azure-common/azure/common/cloud.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/core/azure-common/azure/common/cloud.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/core/azure-common/azure/common/cloud.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
def get_cli... | 37.483871 | 97 | 0.575731 |
ec287e053dfb55cd41256999bd075b3cfa49e676 | 4,061 | py | Python | udiYoDoorSensor.py | Panda88CO/udi-yolink | 50eaa6f505bfd2f27ef1bc41c580c03ede143f14 | [
"MIT"
] | null | null | null | udiYoDoorSensor.py | Panda88CO/udi-yolink | 50eaa6f505bfd2f27ef1bc41c580c03ede143f14 | [
"MIT"
] | null | null | null | udiYoDoorSensor.py | Panda88CO/udi-yolink | 50eaa6f505bfd2f27ef1bc41c580c03ede143f14 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Polyglot TEST v3 node server
MIT License
"""
from os import truncate
import sys
import time
from yolinkDoorSensorV2 import YoLinkDoorSens
try:
import udi_interface
logging = udi_interface.LOGGER
Custom = udi_interface.Custom
except ImportError:
import logging
logging.... | 29.642336 | 189 | 0.603053 |
ec28bf1b414feafecc56a9e59c1b0f7389ceed8e | 3,662 | py | Python | utils/vis_tool.py | elbert-xiao/RFCN-Pytorch | 481439bfc88b35a27c9c74aa64823c21dabb9c88 | [
"MIT"
] | 11 | 2021-02-10T11:41:54.000Z | 2021-08-11T12:45:47.000Z | utils/vis_tool.py | elbert-xiao/RFCN-Pytorch | 481439bfc88b35a27c9c74aa64823c21dabb9c88 | [
"MIT"
] | 1 | 2021-03-30T04:14:48.000Z | 2021-03-30T06:42:02.000Z | utils/vis_tool.py | elbert-xiao/RFCN-Pytorch | 481439bfc88b35a27c9c74aa64823c21dabb9c88 | [
"MIT"
] | 2 | 2021-03-20T01:54:06.000Z | 2021-05-21T04:22:46.000Z | import matplotlib
import numpy as np
import time
# matplotlib.use('Agg')
import matplotlib.pyplot as plt
VOC_BBOX_LABEL_NAMES = (
'fly',
'bike',
'bird',
'boat',
'pin',
'bus',
'c',
'cat',
'chair',
'cow',
'table',
'dog',
'horse',
'moto',
'p',
'plant',
... | 24.743243 | 99 | 0.564719 |
ec291a6b6790452f3e97a82363e5973cfb65a86a | 3,473 | py | Python | vega/app.py | YEZHIAN1996/pythonstudy | a8774ef97266e8ab0289484ef190d2ee55f1d37c | [
"Apache-2.0"
] | 1 | 2022-02-22T01:54:56.000Z | 2022-02-22T01:54:56.000Z | vega/app.py | YEZHIAN1996/pythonstudy | a8774ef97266e8ab0289484ef190d2ee55f1d37c | [
"Apache-2.0"
] | null | null | null | vega/app.py | YEZHIAN1996/pythonstudy | a8774ef97266e8ab0289484ef190d2ee55f1d37c | [
"Apache-2.0"
] | null | null | null | from colorama import Fore, Style
from getpass import getpass
from service.user_service import UserService
from service.news_service import NewsService
import mysql
import os
import sys
import time
__user_service = UserService()
__news_service = NewsService()
while 1:
os.system('clear')
print(Fore.LIGHTBLUE_EX,... | 43.4125 | 118 | 0.424417 |
ec29c175f6b9f37d0b9f63c7911bcae9864316ed | 2,440 | py | Python | deprecated/rcbu/common/activity_mixin.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 4 | 2015-02-10T14:28:12.000Z | 2016-12-26T22:52:07.000Z | deprecated/rcbu/common/activity_mixin.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 17 | 2015-01-22T21:58:36.000Z | 2018-01-25T19:47:43.000Z | deprecated/rcbu/common/activity_mixin.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 9 | 2015-01-26T19:25:45.000Z | 2018-11-01T20:14:12.000Z | import rcbu.common.status as status
import rcbu.common.activity as activity
from rcbu.common.http import Http
_predicates = {
"backup_history": lambda j: j['Type'] == 'Backup' and not _is_running(j),
"restore_history": lambda j: j['Type'] == 'Restore' and not _is_running(j),
"cleanup_history": lambda j: j... | 30.123457 | 79 | 0.678279 |
ec2a05caf70b6d5b3ac7425d6fe6c408d8020aaa | 2,362 | py | Python | xbox/webapi/api/provider/titlehub/models.py | OpenXbox/xbox-webapi-python | 1a5aeb1b1ce94f38b5dae7f6b59938bc9ec112b2 | [
"MIT"
] | 122 | 2018-03-17T05:20:35.000Z | 2022-03-30T23:30:14.000Z | xbox/webapi/api/provider/titlehub/models.py | OpenXbox/xbox-webapi-python | 1a5aeb1b1ce94f38b5dae7f6b59938bc9ec112b2 | [
"MIT"
] | 62 | 2018-03-27T14:17:11.000Z | 2022-03-30T16:36:03.000Z | xbox/webapi/api/provider/titlehub/models.py | OpenXbox/xbox-webapi-python | 1a5aeb1b1ce94f38b5dae7f6b59938bc9ec112b2 | [
"MIT"
] | 38 | 2018-05-09T19:17:48.000Z | 2022-02-03T06:55:04.000Z | from datetime import datetime
from enum import Enum
from typing import Any, List, Optional
from xbox.webapi.common.models import CamelCaseModel, PascalCaseModel
| 22.495238 | 69 | 0.723539 |
ec2bf9162b78137b2733f5b84b3dbb7d05de0458 | 429 | py | Python | other/_first.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | 1 | 2019-10-09T13:40:13.000Z | 2019-10-09T13:40:13.000Z | other/_first.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | null | null | null | other/_first.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
print("hello world")
# pthon
import keyword
print(keyword.kwlist)
#
'''
'''
"""
"""
print("")
#
print("you"
"are"
"my"
"friend")
# \
count = 23+ \
12+ \
34
print(count)
#
print(""*2)
# print()
print("",end="")
print("70")
#
a = b = c = 20... | 9.75 | 22 | 0.550117 |
ec2d58ee1b419c3690dbeeb738b66f3f075b0aea | 5,591 | py | Python | main.py | Sohone-Guo/Pointer-Generator | bed71a91966f5a538b06b37f7a55dcac1c875319 | [
"MIT"
] | 56 | 2019-03-16T09:49:57.000Z | 2021-09-20T08:24:29.000Z | main.py | Sohone-Guo/Pointer-Generator | bed71a91966f5a538b06b37f7a55dcac1c875319 | [
"MIT"
] | 10 | 2019-03-30T01:57:22.000Z | 2020-12-01T02:25:54.000Z | main.py | Sohone-Guo/Pointer-Generator | bed71a91966f5a538b06b37f7a55dcac1c875319 | [
"MIT"
] | 12 | 2019-04-02T12:25:40.000Z | 2020-10-09T16:06:49.000Z |
from lib.util.processing import processing
from lib.model.encoder import SimpleEncoder
from lib.model.decoder import AttentionDecoder
import torch
import random
if __name__ == "__main__":
# 1. Declare the hyperparameter
device, configure, word_index, index_word, train_loader, test_loader = processing... | 41.723881 | 149 | 0.569666 |
ec2dc0f4168d20d9003e906db9cc3804aa7cbf54 | 7,022 | py | Python | output/misc_func.py | jacobseiler/rsage | b3b0a3fa3c676eab188991e37d06894396bfc74f | [
"MIT"
] | 1 | 2019-05-23T04:11:32.000Z | 2019-05-23T04:11:32.000Z | output/misc_func.py | jacobseiler/rsage | b3b0a3fa3c676eab188991e37d06894396bfc74f | [
"MIT"
] | 7 | 2018-08-17T05:04:57.000Z | 2019-01-16T05:40:16.000Z | output/misc_func.py | jacobseiler/rsage | b3b0a3fa3c676eab188991e37d06894396bfc74f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import os
import matplotlib
matplotlib.use('Agg')
import pylab as plt
import numpy as np
from numpy.fft import fftn, ifftn
import scipy.integrate as integrate
from scipy import stats
import PlotScripts
import ReadScripts
import AllVars
def calculate_HI_f... | 31.348214 | 145 | 0.570778 |
ec30442221c5bdfc53a11ee9fdb22b47a1f5ad36 | 1,586 | py | Python | brl_gym/envs/mujoco/test_pusher_policy.py | gilwoolee/brl_gym | 9c0784e9928f12d2ee0528c79a533202d3afb640 | [
"BSD-3-Clause"
] | 2 | 2020-08-07T05:50:44.000Z | 2022-03-03T08:46:10.000Z | brl_gym/envs/mujoco/test_pusher_policy.py | gilwoolee/brl_gym | 9c0784e9928f12d2ee0528c79a533202d3afb640 | [
"BSD-3-Clause"
] | null | null | null | brl_gym/envs/mujoco/test_pusher_policy.py | gilwoolee/brl_gym | 9c0784e9928f12d2ee0528c79a533202d3afb640 | [
"BSD-3-Clause"
] | null | null | null | import julia
import numpy as np
import os.path as osp
import gym
from brl_gym.envs.mujoco import box_pusher
env = box_pusher.BoxPusher()
rlopt = "/home/gilwoo/School_Workspace/rlopt"
j = julia.Julia()
j.include(osp.join(rlopt, "_init.jl"))
j.include(osp.join(rlopt, "src/pg/Baseline.jl"))
j.include(osp.join(rlopt, "sr... | 27.824561 | 72 | 0.659521 |
ec318f2a5d510ddb8d5b7037fff0c57d1ec7fd4a | 25 | py | Python | GalleryMan/assets/__init__.py | 0xsapphir3/GalleryMan | b04f4ccdbb9004ed9e915d1cd0ddf36ccffe386c | [
"MIT"
] | 9 | 2021-08-21T01:05:13.000Z | 2022-01-26T15:06:32.000Z | GalleryMan/assets/__init__.py | AsianCat54x/galleryman | b04f4ccdbb9004ed9e915d1cd0ddf36ccffe386c | [
"MIT"
] | 1 | 2021-08-19T09:42:06.000Z | 2021-08-19T09:42:06.000Z | GalleryMan/assets/__init__.py | AsianCat54x/galleryman | b04f4ccdbb9004ed9e915d1cd0ddf36ccffe386c | [
"MIT"
] | 2 | 2021-08-19T08:13:00.000Z | 2021-08-24T18:27:10.000Z | # Nothing To See Here ._. | 25 | 25 | 0.68 |
ec31dc081c64e4b93e2b4eb0de983eafa7757e4c | 3,723 | py | Python | contentcuration/contentcuration/utils/cache.py | kollivier/studio | 9089780858ae9870421056b4e6e5659ae854db57 | [
"MIT"
] | 1 | 2019-03-30T18:14:25.000Z | 2019-03-30T18:14:25.000Z | contentcuration/contentcuration/utils/cache.py | kollivier/studio | 9089780858ae9870421056b4e6e5659ae854db57 | [
"MIT"
] | 2 | 2019-04-06T07:06:08.000Z | 2019-04-08T23:33:53.000Z | contentcuration/contentcuration/utils/cache.py | MisRob/studio | 92a5c780c8952f7d37db38952483ab7a28d3cb9d | [
"MIT"
] | null | null | null | import functools
import math
import random
import time
from django.core.cache import cache
DEFERRED_FLAG = "__DEFERRED"
def cache_stampede(expire, beta=1):
"""Cache decorator with cache stampede protection.
Based on http://www.vldb.org/pvldb/vol8/p886-vattani.pdf (research by
Vattani, A.; Chierichetti,... | 35.798077 | 91 | 0.643836 |
ec3416c60abd3578832e4a31787a9c2b8eb12e3d | 873 | py | Python | S8/objetos.py | Escannor/Algoritmia_21-2 | 284e35a040eae7aa1a0a6cb9336f0d4c2b782a48 | [
"MIT"
] | 1 | 2021-04-18T04:54:04.000Z | 2021-04-18T04:54:04.000Z | S8/objetos.py | Alexship896/Algoritmia_21-2 | 1ffb33fc2b93899d813e67d958e437d66a39070e | [
"MIT"
] | null | null | null | S8/objetos.py | Alexship896/Algoritmia_21-2 | 1ffb33fc2b93899d813e67d958e437d66a39070e | [
"MIT"
] | 1 | 2021-04-18T05:01:08.000Z | 2021-04-18T05:01:08.000Z | ## class <nombre_del_objeto>:
## def <metodo_del_objeto>(self):
# variable -> atributos
# funciones -> metodos
hola()
perro = Animal('perro')
perro.edad = 12
perro.raza = 'labrador'
luis = Persona('Luis')
luis.hola()
luis.agregarApellido('Perez')
pedro = Persona('Pedro')
pedro.hola()
pedro.agregarEdad... | 15.589286 | 47 | 0.647194 |
ec35506cc36e161432bb6fd95217b319bf686f85 | 2,444 | py | Python | dynamics/util/gaussianize.py | bodokaiser/complex-systems | 5e348d9cc382059b316ccc0a391183ba65aa8f3f | [
"Apache-2.0"
] | 2 | 2019-04-22T17:32:33.000Z | 2019-10-03T18:09:01.000Z | dynamics/util/gaussianize.py | bodokaiser/complex-systems | 5e348d9cc382059b316ccc0a391183ba65aa8f3f | [
"Apache-2.0"
] | null | null | null | dynamics/util/gaussianize.py | bodokaiser/complex-systems | 5e348d9cc382059b316ccc0a391183ba65aa8f3f | [
"Apache-2.0"
] | null | null | null | import numpy as np
from scipy.optimize import fmin
from scipy.stats import kurtosis
from scipy.special import lambertw
"""
The algorithm is based on [1]. The implementation is based on [2].
[1]: Georg Goergg, 2013 (https://arxiv.org/pdf/1010.2265.pdf)
[2]: Greg Ver Steeg, 2015 (https://github.com/gregversteeg/gaussi... | 25.195876 | 77 | 0.616203 |
ec363ba66c10f615ccd1efaa4439368d1082bab4 | 1,257 | py | Python | backend/portfolios/factories/certification_factory.py | NumanIbnMazid/numanibnmazid.com | 905e3afab285316d88bafa30dc080dfbb0611731 | [
"MIT"
] | 1 | 2022-01-28T18:20:19.000Z | 2022-01-28T18:20:19.000Z | backend/portfolios/factories/certification_factory.py | NumanIbnMazid/numanibnmazid.com | 905e3afab285316d88bafa30dc080dfbb0611731 | [
"MIT"
] | null | null | null | backend/portfolios/factories/certification_factory.py | NumanIbnMazid/numanibnmazid.com | 905e3afab285316d88bafa30dc080dfbb0611731 | [
"MIT"
] | null | null | null | import factory
from portfolios.models import Certification
from users.factories.user_factory import UserFactory
from factory.django import DjangoModelFactory
from utils.helpers import create_factory_data
| 33.972973 | 97 | 0.752586 |
ec3700a7f48e0ce9a2233d4b3ecb1973a3b8740c | 1,717 | py | Python | examples/py/factorization/parse_netflix.py | pnijhara/h2o4gpu | 6257112c134136471420b68241f57190a445b67d | [
"Apache-2.0"
] | 458 | 2017-09-20T08:32:10.000Z | 2022-02-28T18:40:57.000Z | examples/py/factorization/parse_netflix.py | pnijhara/h2o4gpu | 6257112c134136471420b68241f57190a445b67d | [
"Apache-2.0"
] | 461 | 2017-09-20T11:39:04.000Z | 2021-11-21T15:51:42.000Z | examples/py/factorization/parse_netflix.py | pnijhara/h2o4gpu | 6257112c134136471420b68241f57190a445b67d | [
"Apache-2.0"
] | 114 | 2017-09-20T12:08:07.000Z | 2021-11-29T14:15:40.000Z | import numpy as np
import scipy
from sklearn.model_selection import train_test_split
files = [
'../data/combined_data_1.txt',
'../data/combined_data_2.txt',
'../data/combined_data_3.txt',
'../data/combined_data_4.txt',
]
if __name__ == '__main__':
coo_row = []
coo_col = []
coo_val = []
... | 31.796296 | 88 | 0.601048 |
ec3aa0d3dbdedfe9a32ff3de2e04e3173e137571 | 1,862 | py | Python | src/esri/arcpy/SamplePythonToolbox.py | TrieuLe0801/Arcgis-python | 7b6c3d33bd7b9a6bea495f288a0d8015ffcc48b0 | [
"Apache-2.0"
] | null | null | null | src/esri/arcpy/SamplePythonToolbox.py | TrieuLe0801/Arcgis-python | 7b6c3d33bd7b9a6bea495f288a0d8015ffcc48b0 | [
"Apache-2.0"
] | null | null | null | src/esri/arcpy/SamplePythonToolbox.py | TrieuLe0801/Arcgis-python | 7b6c3d33bd7b9a6bea495f288a0d8015ffcc48b0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import arcpy
import os
import foo
| 34.481481 | 77 | 0.566058 |