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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33f0ba344a37591b7f4944804b11701aa4ff2ca0 | 6,973 | py | Python | campaign/backends/mailgun_api.py | tiktn/django-campaign | 7f6872a39d1b70d968a2384a6af87e7760fbca51 | [
"BSD-3-Clause"
] | 53 | 2015-01-28T09:42:57.000Z | 2022-03-26T15:32:16.000Z | campaign/backends/mailgun_api.py | tiktn/django-campaign | 7f6872a39d1b70d968a2384a6af87e7760fbca51 | [
"BSD-3-Clause"
] | 20 | 2015-02-11T02:47:12.000Z | 2022-03-18T03:06:54.000Z | campaign/backends/mailgun_api.py | tiktn/django-campaign | 7f6872a39d1b70d968a2384a6af87e7760fbca51 | [
"BSD-3-Clause"
] | 25 | 2015-04-29T15:55:17.000Z | 2022-01-21T15:46:51.000Z | from __future__ import unicode_literals
import logging
import json
import requests
from django.template import Context
from django.conf import settings
from django.urls import reverse
from django.contrib.sites.models import Site
from django import template
from campaign.backends.base import BaseBackend
from campaign.c... | 37.28877 | 122 | 0.625699 |
33f262ac354b5b387c54d37c6e16bd4e1f39f3dc | 1,444 | py | Python | GUI_tkinter_all/gui_oop_intro.py | dogancantorun8/python-application | 3ef972e52bb6950108cde36974ceaf5c3cde3667 | [
"MIT"
] | null | null | null | GUI_tkinter_all/gui_oop_intro.py | dogancantorun8/python-application | 3ef972e52bb6950108cde36974ceaf5c3cde3667 | [
"MIT"
] | null | null | null | GUI_tkinter_all/gui_oop_intro.py | dogancantorun8/python-application | 3ef972e52bb6950108cde36974ceaf5c3cde3667 | [
"MIT"
] | null | null | null | import tkinter as tk
root=tk.Tk() #rootu yarattm
root.geometry('600x480')
root.title('Sample TK ')
gui=GUI(root) #burada rootu gui classna vererek root zerinde yapacam tm configleri mastere vermi oldum
root.mainloop() | 39.027027 | 111 | 0.707756 |
33f2a1181b60f50c26fb109838c1de75fa98f910 | 160 | py | Python | services/scheduler/src/api/routes.py | dmenezesgabriel/celery-task-scheduler | 9f4cc02e0bb884bae2e86d89c3841dea6b9d726e | [
"MIT"
] | null | null | null | services/scheduler/src/api/routes.py | dmenezesgabriel/celery-task-scheduler | 9f4cc02e0bb884bae2e86d89c3841dea6b9d726e | [
"MIT"
] | 11 | 2020-09-15T12:15:51.000Z | 2020-11-03T01:18:46.000Z | services/scheduler/src/api/routes.py | dmenezesgabriel/celery-task-scheduler | 9f4cc02e0bb884bae2e86d89c3841dea6b9d726e | [
"MIT"
] | null | null | null | from flask import Blueprint, jsonify
bp = Blueprint("api", __name__, url_prefix="/api")
| 17.777778 | 50 | 0.68125 |
33f3de99c68b0762c69ffc423533d91bb34f53c2 | 4,053 | py | Python | Function/local_functions_20200813.py | JoneYu45/Global_investigation | 2d9d86111517919d1581d35f34c425f4fda729c0 | [
"MIT"
] | null | null | null | Function/local_functions_20200813.py | JoneYu45/Global_investigation | 2d9d86111517919d1581d35f34c425f4fda729c0 | [
"MIT"
] | null | null | null | Function/local_functions_20200813.py | JoneYu45/Global_investigation | 2d9d86111517919d1581d35f34c425f4fda729c0 | [
"MIT"
] | null | null | null | #Import modules
import numpy as np
from sklearn.linear_model import ElasticNetCV
import pandas as pd
import time
from joblib import Parallel, delayed
import multiprocessing
#Define functions | 44.538462 | 120 | 0.635332 |
33f3e2d22b81c258c7bdcf256c47921cf209baa9 | 16,634 | py | Python | tests/asr/test_speech_commands.py | borisdayma/NeMo | 88f6c5b93574adb219185d5ded14b6393c485ea0 | [
"Apache-2.0"
] | null | null | null | tests/asr/test_speech_commands.py | borisdayma/NeMo | 88f6c5b93574adb219185d5ded14b6393c485ea0 | [
"Apache-2.0"
] | null | null | null | tests/asr/test_speech_commands.py | borisdayma/NeMo | 88f6c5b93574adb219185d5ded14b6393c485ea0 | [
"Apache-2.0"
] | null | null | null | # ! /usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2020 NVIDIA. 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
#... | 41.899244 | 116 | 0.639113 |
33f4d47972d31539ed3a98ea5f8f901bb19e8986 | 2,314 | py | Python | sympycore/polynomials/tests/test_algebra.py | radovankavicky/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 96 | 2015-01-25T05:59:56.000Z | 2021-12-29T14:05:22.000Z | sympycore/polynomials/tests/test_algebra.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 3 | 2015-12-17T19:25:46.000Z | 2018-06-19T07:05:20.000Z | sympycore/polynomials/tests/test_algebra.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 36 | 2016-01-31T15:22:01.000Z | 2021-03-29T07:03:07.000Z |
from sympycore import *
P = PolynomialRing
| 39.896552 | 97 | 0.474071 |
33f527e6618f06c1a9c11b30446518af5b81e11c | 594 | py | Python | locale/pot/api/core/pointsets-7.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/core/pointsets-7.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/core/pointsets-7.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Label the Z position
values = grid.points[:, 2]
# Create plotting class and add the unstructured grid
plotter = pv.Plotter()
# color mesh according to z value
plotter.add_mesh(grid, scalars=values,
scalar_bar_args={'title': 'Z Position'},
show_edges=True)
# Add labels to points on ... | 31.263158 | 75 | 0.675084 |
33f6489ece71e9453add661efec4fd1216138fa6 | 5,676 | py | Python | paasta_tools/native_mesos_scheduler.py | yuanxu-li/paasta | 5b04f45659293f873c65111a9d1d0909aeed4019 | [
"Apache-2.0"
] | null | null | null | paasta_tools/native_mesos_scheduler.py | yuanxu-li/paasta | 5b04f45659293f873c65111a9d1d0909aeed4019 | [
"Apache-2.0"
] | null | null | null | paasta_tools/native_mesos_scheduler.py | yuanxu-li/paasta | 5b04f45659293f873c65111a9d1d0909aeed4019 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import argparse
import sys
import time
from time import sleep
from typing import Optional
from typing import Sequence
from typing import Tuple
from paasta_tools import mesos_tools
from paasta_tools.frameworks.native_scheduler import create_driver
from paasta_tools.frameworks.native_scheduler impo... | 39.692308 | 109 | 0.713354 |
33f7e13a9320dff2213752e8e1f1ef5a669b102b | 1,070 | py | Python | chapter8/8_25Creating Cached Instances/8_25.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | chapter8/8_25Creating Cached Instances/8_25.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | chapter8/8_25Creating Cached Instances/8_25.py | atigerboy/PythonCookBook | e9238c7676063b5077a7645707ecc51052063d8d | [
"MIT"
] | null | null | null | '''
weakref
weakref.WeakValueDictionary
'''
import logging
a = logging.getLogger('foo')
b = logging.getLogger('bar')
print( a is b )
c = logging.getLogger('foo')
print( a is c ) #True.same name logger is same instance
# The class in question
# Caching support
import weakref
_spam_cache = weakref.WeakValueDictionary()... | 21.4 | 55 | 0.626168 |
33f8b719e9ba98ddfcaba344177eff9b1a186f00 | 841 | py | Python | setup.py | danielkanzel/my_friend | f26b6d73211128128a3a70b9705881059f794959 | [
"Unlicense"
] | null | null | null | setup.py | danielkanzel/my_friend | f26b6d73211128128a3a70b9705881059f794959 | [
"Unlicense"
] | null | null | null | setup.py | danielkanzel/my_friend | f26b6d73211128128a3a70b9705881059f794959 | [
"Unlicense"
] | null | null | null | from setuptools import setup, find_packages
setup(name='my_friend',
version='0.1',
description="Python library to make my days better",
long_description='just 4 lulz',
classifiers=[],
keywords='',
author='Daniel Kanzel',
author_email='danersow@gmail.com',
url='',
l... | 30.035714 | 63 | 0.602854 |
33f9fcd070c093507534268a7e91b68253af14f5 | 1,254 | py | Python | inventory/settings/production.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 10 | 2015-02-16T17:12:44.000Z | 2021-06-04T18:14:01.000Z | inventory/settings/production.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 1 | 2021-09-20T01:17:38.000Z | 2021-09-20T01:17:50.000Z | inventory/settings/production.py | cnobile2012/inventory | bc09ccdead39a5cd758088dbfe5c56dec43c7e29 | [
"MIT"
] | 5 | 2015-09-09T02:01:33.000Z | 2021-05-29T09:09:14.000Z | from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'inventory',
'USER': 'inventory',
'PASSWORD': 'inventory',
'HOST': 'localhost',
'PORT': '',
}
}
#KEY_PREFIX = 'prod'
#KEY_FUNCTION = 'testsite.common.cachi... | 26.125 | 78 | 0.650718 |
33fca6b803aa07b91cf3c576d1059df9cb579535 | 3,986 | py | Python | console.py | maximilionus/pyspectator-x | 1265f1f39e7ca0534f9e6ffcd7087f2ebced3397 | [
"BSD-3-Clause"
] | 39 | 2017-02-27T15:21:21.000Z | 2021-12-31T03:23:43.000Z | console.py | maximilionus/pyspectator-x | 1265f1f39e7ca0534f9e6ffcd7087f2ebced3397 | [
"BSD-3-Clause"
] | 18 | 2017-07-09T00:16:28.000Z | 2021-12-03T21:01:38.000Z | console.py | maximilionus/pyspectator-x | 1265f1f39e7ca0534f9e6ffcd7087f2ebced3397 | [
"BSD-3-Clause"
] | 25 | 2017-03-05T07:59:34.000Z | 2021-12-15T15:22:58.000Z | import subprocess
import platform
from os import linesep
from time import sleep
from pyspectator.convert import UnitByte
CLEAR_CMD = 'cls' if platform.system() == 'Windows' else 'clear'
if __name__ == '__main__':
# Initialize computer instance
from pyspectator.computer import Computer
COMPUTER = Com... | 33.779661 | 79 | 0.607627 |
33fd0062b63d3540dad25bfc41a907a035a81d4c | 95 | py | Python | tests/scripts/python2-test.py | Honzys/clearml-agent | f58071fc74e2df9bdba8ca91569e0bfd70ad4f46 | [
"Apache-2.0"
] | 112 | 2019-10-29T10:36:20.000Z | 2020-12-19T08:08:27.000Z | tests/scripts/python2-test.py | Honzys/clearml-agent | f58071fc74e2df9bdba8ca91569e0bfd70ad4f46 | [
"Apache-2.0"
] | 53 | 2020-12-29T07:52:40.000Z | 2022-03-31T10:11:54.000Z | tests/scripts/python2-test.py | Honzys/clearml-agent | f58071fc74e2df9bdba8ca91569e0bfd70ad4f46 | [
"Apache-2.0"
] | 29 | 2019-10-29T13:06:29.000Z | 2020-12-19T08:09:24.000Z |
if __name__ == "__main__":
main()
| 11.875 | 26 | 0.526316 |
33feab5aa973cfa55aca4928158ae51920e92f2e | 11,500 | py | Python | scripts/bert/conversion_tools/convert_paddle_to_gluon.py | zburning/gluon-nlp | 101ce13bad3c26c802a4ff8ef47954fd2d0555d2 | [
"Apache-2.0"
] | 7 | 2019-12-05T02:49:07.000Z | 2020-08-17T01:11:59.000Z | scripts/bert/conversion_tools/convert_paddle_to_gluon.py | zburning/gluon-nlp | 101ce13bad3c26c802a4ff8ef47954fd2d0555d2 | [
"Apache-2.0"
] | null | null | null | scripts/bert/conversion_tools/convert_paddle_to_gluon.py | zburning/gluon-nlp | 101ce13bad3c26c802a4ff8ef47954fd2d0555d2 | [
"Apache-2.0"
] | 3 | 2021-03-12T04:41:00.000Z | 2021-03-12T04:41:24.000Z | #!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... | 44.921875 | 101 | 0.670783 |
33fece3a93d648aa9dc2fd580f1e130193907359 | 1,065 | py | Python | django-rgd-imagery/rgd_imagery/admin/processed.py | Kitware/ResonantGeoData | 6d111cbe1d57df2cd230edcf4724f6e33471f5ff | [
"Apache-2.0"
] | 3 | 2020-03-10T14:47:07.000Z | 2020-05-05T16:55:27.000Z | django-rgd-imagery/rgd_imagery/admin/processed.py | Kitware/ResonantGeoData | 6d111cbe1d57df2cd230edcf4724f6e33471f5ff | [
"Apache-2.0"
] | 13 | 2020-04-14T14:36:06.000Z | 2020-05-07T15:03:42.000Z | django-rgd-imagery/rgd_imagery/admin/processed.py | Kitware/ResonantGeoData | 6d111cbe1d57df2cd230edcf4724f6e33471f5ff | [
"Apache-2.0"
] | 1 | 2020-03-03T15:47:52.000Z | 2020-03-03T15:47:52.000Z | from django.contrib import admin
from django.contrib.gis.admin import OSMGeoAdmin
from rgd.admin.mixins import MODIFIABLE_FILTERS, TASK_EVENT_FILTERS, TASK_EVENT_READONLY, reprocess
from rgd_imagery.models import ProcessedImage, ProcessedImageGroup
| 27.307692 | 99 | 0.687324 |
d50148ac813ac58f82fe3db88377732cbe72a00c | 137 | py | Python | PythonExercicios/02-dados-e-contas/ex006.py | mateusmarinho/python3-cursoemvideo | 706d419865532e156fb80b8a873e18cb90d6e0da | [
"MIT"
] | null | null | null | PythonExercicios/02-dados-e-contas/ex006.py | mateusmarinho/python3-cursoemvideo | 706d419865532e156fb80b8a873e18cb90d6e0da | [
"MIT"
] | null | null | null | PythonExercicios/02-dados-e-contas/ex006.py | mateusmarinho/python3-cursoemvideo | 706d419865532e156fb80b8a873e18cb90d6e0da | [
"MIT"
] | null | null | null | n = int(input('Digite um nmero: '))
print('O dobro {}.\nO triplo {}.\nA raiz quadrada {:.2f}'.format(n * 2, n * 3, n ** (1/2)))
| 45.666667 | 98 | 0.540146 |
d5036b24bf1ba9544ffa7388314b414500db5c1b | 7,755 | py | Python | AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | AutomatedTesting/Gem/PythonTests/largeworlds/landscape_canvas/test_GraphComponentSync.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | """
Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
"""
C4705586 - Altering connections on graph nodes appropriately updates component properties
C22715182 - Compo... | 46.437126 | 155 | 0.680206 |
d507acaa5ff799bb80d565eb8620d6d539f4af7e | 115 | py | Python | src/files_manip.py | TaySai/First_python | 507734bce57afac5cdf1b29d59f8e2e824bc0f75 | [
"MIT"
] | null | null | null | src/files_manip.py | TaySai/First_python | 507734bce57afac5cdf1b29d59f8e2e824bc0f75 | [
"MIT"
] | null | null | null | src/files_manip.py | TaySai/First_python | 507734bce57afac5cdf1b29d59f8e2e824bc0f75 | [
"MIT"
] | null | null | null | import csv
with open('int.csv') as my_file:
read = csv.reader(my_file)
for row in read:
print(row)
| 19.166667 | 32 | 0.626087 |
d5081bfdbd40201a1c5ee69971c996b644b8d536 | 1,657 | py | Python | main.py | RSA-TEMPZ/VIEW-RACKS | 9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7 | [
"Apache-2.0"
] | null | null | null | main.py | RSA-TEMPZ/VIEW-RACKS | 9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7 | [
"Apache-2.0"
] | null | null | null | main.py | RSA-TEMPZ/VIEW-RACKS | 9948c3d8bb39e0d9d9313de7a29fc6ff35b488e7 | [
"Apache-2.0"
] | null | null | null | #imports
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
#variables
#these variables will be
#changed by the input funcation
Timer = 3
link = ''
views = 10
print('''____________________________________________________
... | 33.816327 | 87 | 0.491249 |
d50957df3bce439392a340db63f7eed8100060ea | 835 | py | Python | applications/graphpipe/graphpipe_demo.py | StijnMatsHendriks/adversarial_attack_demo | 956fd8a96c0c8abf1f4a3e0ffb9d83eeda79b8ff | [
"MIT"
] | 819 | 2019-06-10T08:33:28.000Z | 2022-03-29T10:55:25.000Z | applications/graphpipe/graphpipe_demo.py | awesomemachinelearning/AdvBox | ff784e90f107a43afdbec826c7e5365b9db90750 | [
"Apache-2.0"
] | 38 | 2019-07-11T01:57:41.000Z | 2022-03-15T06:59:21.000Z | applications/graphpipe/graphpipe_demo.py | awesomemachinelearning/AdvBox | ff784e90f107a43afdbec826c7e5365b9db90750 | [
"Apache-2.0"
] | 167 | 2019-06-12T09:11:34.000Z | 2022-03-28T15:54:46.000Z | #coding=utf-8
#graphpipe
#https://oracle.github.io/graphpipe/#/guide/user-guide/quickstart
#pip install graphpipe
#pip install pillow # needed for image manipulation
'''
#
docker run -it --rm \
-e https_proxy=${https_proxy} \
-p 9000:9000 \
sleepsonthefloor/graphpipe-tf:cpu \
--model=https://oracl... | 23.857143 | 75 | 0.71018 |
d50a6ea2da3b7fcb7f431124f710d9fb773bb4c9 | 142 | py | Python | Homework/Lesson_8/seventh.py | Torkvamedo/smx | a5aef4f430f56ac67100c505902f55e18fba5978 | [
"Unlicense"
] | null | null | null | Homework/Lesson_8/seventh.py | Torkvamedo/smx | a5aef4f430f56ac67100c505902f55e18fba5978 | [
"Unlicense"
] | null | null | null | Homework/Lesson_8/seventh.py | Torkvamedo/smx | a5aef4f430f56ac67100c505902f55e18fba5978 | [
"Unlicense"
] | null | null | null | import math
print(is_prime(13))
| 15.777778 | 38 | 0.535211 |
d50abffcd18bed58f6c21161425b857656235845 | 2,170 | py | Python | test/scenario_pubsub.py | coopernurse/radiator | 85e88fd7055e287c506405f9e5a34e6ddadf3d45 | [
"MIT"
] | 5 | 2015-06-26T03:26:18.000Z | 2018-02-21T17:07:37.000Z | test/scenario_pubsub.py | coopernurse/radiator | 85e88fd7055e287c506405f9e5a34e6ddadf3d45 | [
"MIT"
] | null | null | null | test/scenario_pubsub.py | coopernurse/radiator | 85e88fd7055e287c506405f9e5a34e6ddadf3d45 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Basic: 1 topic, 50 consumer/producer clients
# - Each consumer writes 10 messages
# - Each consumer gets all 10 messages
# - 1 consumer unsubs
# - 1 more message sent
# - Only the remaining 9 clients get the msg
#
import time
import helper
from radiator import Broker
consumers =... | 24.659091 | 80 | 0.611982 |
d50cfe4b7fdff37beacd8c1bde6eb8b8d4fb26b2 | 429 | py | Python | checkpasssword.py | Davidzhaojb/Python | 68e0f8cce2e30bcce9baf95fc992e3916835da60 | [
"MIT"
] | null | null | null | checkpasssword.py | Davidzhaojb/Python | 68e0f8cce2e30bcce9baf95fc992e3916835da60 | [
"MIT"
] | null | null | null | checkpasssword.py | Davidzhaojb/Python | 68e0f8cce2e30bcce9baf95fc992e3916835da60 | [
"MIT"
] | null | null | null | # "*"#"*"
#
count = 3
#
password = "fishc"
while count:
Password = input(":")
if Password == password:
print("")
break
elif '*' in Password:
print("'*'",count,"")
continue
else:
print(",",count-1,"")
count -= 1
print("")
| 23.833333 | 103 | 0.610723 |
d50d4d535730a15821107b585fb0b70fbba86f4a | 2,567 | py | Python | sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py | microsoft/bing-commerce-sdk-for-python | cf555ea0bb14792708617d2435dd5aab1c4cbe90 | [
"MIT"
] | 1 | 2020-05-04T09:58:07.000Z | 2020-05-04T09:58:07.000Z | sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py | microsoft/bing-commerce-sdk-for-python | cf555ea0bb14792708617d2435dd5aab1c4cbe90 | [
"MIT"
] | 2 | 2020-04-21T02:32:32.000Z | 2020-04-21T19:37:54.000Z | sdk/search/microsoft/bing/commerce/search/bing_commerce_search.py | microsoft/bing-commerce-sdk-for-python | cf555ea0bb14792708617d2435dd5aab1c4cbe90 | [
"MIT"
] | 4 | 2020-07-31T10:39:22.000Z | 2021-11-10T08:14:07.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
#... | 35.164384 | 90 | 0.664979 |
d50d9e2ca679df89c4e0a95ae7adb1bc28f9bbe3 | 4,126 | py | Python | pyclustering/cluster/mbsas.py | JosephChataignon/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 1,013 | 2015-01-26T19:50:14.000Z | 2022-03-31T07:38:48.000Z | pyclustering/cluster/mbsas.py | peterlau0626/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 542 | 2015-01-20T16:44:32.000Z | 2022-01-29T14:57:20.000Z | pyclustering/cluster/mbsas.py | peterlau0626/pyclustering | bf4f51a472622292627ec8c294eb205585e50f52 | [
"BSD-3-Clause"
] | 262 | 2015-03-19T07:28:12.000Z | 2022-03-30T07:28:24.000Z | """!
@brief Cluster analysis algorithm: MBSAS (Modified Basic Sequential Algorithmic Scheme).
@details Implementation based on paper @cite book::pattern_recognition::2009.
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
from pyclustering.core.mbsas_wrapper import mbsas ... | 34.966102 | 140 | 0.676442 |
d50db675488cc0120d66ef219cb9713d49a77950 | 126 | py | Python | core/models/py_utils/__init__.py | OctopusRice/LineNet | a03ce3bf741dc497ae6bc680cd779128bda1a34b | [
"BSD-3-Clause"
] | 1 | 2020-12-03T03:07:15.000Z | 2020-12-03T03:07:15.000Z | core/models/py_utils/__init__.py | OctopusRice/LineNet | a03ce3bf741dc497ae6bc680cd779128bda1a34b | [
"BSD-3-Clause"
] | 1 | 2019-08-23T09:27:33.000Z | 2019-08-29T01:46:12.000Z | core/models/py_utils/__init__.py | OctopusRice/LineNet | a03ce3bf741dc497ae6bc680cd779128bda1a34b | [
"BSD-3-Clause"
] | null | null | null | from ._cpools import TopPool, BottomPool, LeftPool, RightPool
from ._cpools_lines import HorizontalLinePool, VerticalLinePool
| 42 | 63 | 0.857143 |
d50e06f01333daeea1620e158ae353617743fd95 | 2,306 | py | Python | activitysim/example/extensions/data_exchange.py | ual/DOE-repo-deliverable | 4bafdd9a702a9a6466dd32ae62f440644d735d3c | [
"BSD-3-Clause"
] | null | null | null | activitysim/example/extensions/data_exchange.py | ual/DOE-repo-deliverable | 4bafdd9a702a9a6466dd32ae62f440644d735d3c | [
"BSD-3-Clause"
] | null | null | null | activitysim/example/extensions/data_exchange.py | ual/DOE-repo-deliverable | 4bafdd9a702a9a6466dd32ae62f440644d735d3c | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
# system vars
path_to_usim = '/home/mgardner/src/bayarea_urbansim/'
usim_data_dir = 'data/'
usim_output_dir = 'output/'
usim_h5_file = '2015_09_01_bayarea_v3.h5'
path_to_asim = '/home/mgardner/src/activitysim/'
asim_data_dir = 'example/data/'
asim_h5_file = 'mtc_asim.h5'
# load both data stores
us... | 41.927273 | 88 | 0.793148 |
d50e1c7d8231edcbe1246f3d5ced5e7928184531 | 433 | py | Python | loader/__init__.py | mmendiet/gate-decorator-pruning | ebff861626296638619f48cdf0ff8bf3c5eccc2f | [
"Apache-2.0"
] | 192 | 2019-09-18T10:02:16.000Z | 2022-03-24T16:31:18.000Z | loader/__init__.py | pawopawo/gate-decorator-pruning | d89021802fa56b1eba97921db3d8cadcacdd2073 | [
"Apache-2.0"
] | 25 | 2019-09-24T10:53:51.000Z | 2022-01-18T07:13:52.000Z | loader/__init__.py | pawopawo/gate-decorator-pruning | d89021802fa56b1eba97921db3d8cadcacdd2073 | [
"Apache-2.0"
] | 33 | 2019-09-19T02:21:58.000Z | 2022-03-31T10:04:20.000Z | import torchvision
from torch.utils.data import DataLoader
from torchvision import transforms
from PIL import Image
from config import cfg
from loader.cifar10 import get_cifar10
from loader.cifar100 import get_cifar100
from loader.imagenet import get_imagenet
| 21.65 | 40 | 0.741339 |
d50e3f18bc5365f3dc7c9e1baf034077011723f5 | 970 | py | Python | project_watson/utils.py | alexisgourdol/project_watson | 706378a51833534b5188ca705054074ec2bc4ee2 | [
"MIT"
] | 3 | 2020-09-07T09:06:30.000Z | 2020-09-22T10:27:26.000Z | project_watson/utils.py | alexisgourdol/project_watson | 706378a51833534b5188ca705054074ec2bc4ee2 | [
"MIT"
] | 6 | 2020-09-07T09:42:54.000Z | 2020-09-14T10:23:36.000Z | project_watson/utils.py | alexisgourdol/project_watson | 706378a51833534b5188ca705054074ec2bc4ee2 | [
"MIT"
] | null | null | null | import time
################
# DECORATORS #
################
def simple_time_tracker(method):
"""Time tracker to check the fitting times when training the models."""
return timed
def geocoder_here(adress, token=HERE_API_KEY):
"""
adress: 4 Av du General de Gaulle
==> {'Latitude': 48.85395, ... | 28.529412 | 83 | 0.570103 |
d50e69416441ec59cb3e6ea30d341781ca743940 | 2,712 | py | Python | libs/environments/gym.py | eeshakumar/hythe | 52ca795c8370ddfb2aa6fb87ff3f63a85c55f913 | [
"MIT"
] | null | null | null | libs/environments/gym.py | eeshakumar/hythe | 52ca795c8370ddfb2aa6fb87ff3f63a85c55f913 | [
"MIT"
] | null | null | null | libs/environments/gym.py | eeshakumar/hythe | 52ca795c8370ddfb2aa6fb87ff3f63a85c55f913 | [
"MIT"
] | null | null | null | import gym
from gym.envs.registration import register
from bark_ml.environments.single_agent_runtime import SingleAgentRuntime
from bark_ml.environments.blueprints.highway.highway import DiscreteHighwayBlueprint
from bark_ml.environments.blueprints.merging.merging import DiscreteMergingBlueprint
from bark_ml.environm... | 38.197183 | 99 | 0.643068 |
d50f0b1b425f7055c0a2f622927cba3c742a11b0 | 805 | py | Python | openapi_core/schema/security_schemes/models.py | eyadgaran/openapi-core | ff4a6c81eeda0e2274aa9dc03597779c141e5728 | [
"BSD-3-Clause"
] | null | null | null | openapi_core/schema/security_schemes/models.py | eyadgaran/openapi-core | ff4a6c81eeda0e2274aa9dc03597779c141e5728 | [
"BSD-3-Clause"
] | null | null | null | openapi_core/schema/security_schemes/models.py | eyadgaran/openapi-core | ff4a6c81eeda0e2274aa9dc03597779c141e5728 | [
"BSD-3-Clause"
] | 1 | 2022-01-19T21:23:56.000Z | 2022-01-19T21:23:56.000Z | """OpenAPI core security schemes models module"""
from openapi_core.schema.security_schemes.enums import (
SecuritySchemeType, ApiKeyLocation, HttpAuthScheme,
)
| 35 | 75 | 0.695652 |
d50f3f6b4b82627008988bf45869e704015aa14c | 3,589 | py | Python | 3_prg/4_py/84_dat/panTut10.py | wobweger/wro-h-base | a826227534fb3b74b45a9bea1651c403a0d1502d | [
"MIT"
] | null | null | null | 3_prg/4_py/84_dat/panTut10.py | wobweger/wro-h-base | a826227534fb3b74b45a9bea1651c403a0d1502d | [
"MIT"
] | null | null | null | 3_prg/4_py/84_dat/panTut10.py | wobweger/wro-h-base | a826227534fb3b74b45a9bea1651c403a0d1502d | [
"MIT"
] | null | null | null | # gotten from https://pbpython.com/improve-pandas-excel-output.html
"""
Show examples of modifying the Excel output generated by pandas
"""
import pandas as pd
import numpy as np
from xlsxwriter.utility import xl_rowcol_to_cell
df = pd.read_excel("../in/excel-comp-datav2.xlsx")
# We need the number of rows in order... | 35.534653 | 80 | 0.665924 |
d51062e86ee2d313db17fee23177b0806f0fa5c7 | 895 | py | Python | tests/test_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 1 | 2021-08-04T05:09:16.000Z | 2021-08-04T05:09:16.000Z | tests/test_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 4 | 2021-08-16T07:15:10.000Z | 2021-09-04T08:47:47.000Z | tests/test_formulas.py | mnishida/refractiveindex.info-Pandas | 05317271ee9e550287887536ee03485164949ba2 | [
"MIT"
] | 1 | 2021-08-04T05:09:13.000Z | 2021-08-04T05:09:13.000Z | import numpy as np
import numpy.testing as npt
import riip
from riip.formulas import formulas_cython_dict, formulas_numpy_dict
| 28.870968 | 67 | 0.52514 |
1d108170bdbd66d850dc91b904933812c15cd5c8 | 6,823 | py | Python | checkers/gallery/checker.py | vient/proctf-2019 | b7b954fff2396a7a7a83c90ec55d75bce4a3485c | [
"MIT"
] | 2 | 2020-04-22T19:36:16.000Z | 2020-09-16T07:45:54.000Z | checkers/gallery/checker.py | vient/proctf-2019 | b7b954fff2396a7a7a83c90ec55d75bce4a3485c | [
"MIT"
] | 3 | 2021-03-31T19:21:51.000Z | 2021-06-08T20:31:48.000Z | checkers/gallery/checker.py | leetchicken/proctf-2019 | b7b954fff2396a7a7a83c90ec55d75bce4a3485c | [
"MIT"
] | 3 | 2019-10-26T00:25:03.000Z | 2019-11-23T21:10:10.000Z | #!/usr/bin/env python3
import sys
import requests
import hashlib
import random
import re
import functools
import time
import json
import pathlib
import base64
import traceback
import PIL.Image
from io import BytesIO
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA25... | 28.668067 | 100 | 0.651913 |
1d10c3897441cb862e73f1ef89704a35b6ac4a35 | 1,569 | py | Python | plenum/test/monitoring/test_monitoring_params_with_zfn.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 1 | 2019-03-19T23:44:56.000Z | 2019-03-19T23:44:56.000Z | plenum/test/monitoring/test_monitoring_params_with_zfn.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 1 | 2019-03-20T14:57:22.000Z | 2019-03-20T15:01:55.000Z | plenum/test/monitoring/test_monitoring_params_with_zfn.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | null | null | null | import pytest
from plenum.common.throughput_measurements import RevivalSpikeResistantEMAThroughputMeasurement
from plenum.test.helper import get_key_from_req
nodeCount = 7
| 36.488372 | 95 | 0.753346 |
1d10fc4b27b6136c47a7bdee2bd28cad40658f1e | 1,929 | py | Python | oolearning/model_wrappers/RidgeRegressor.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | 1 | 2020-10-09T09:11:46.000Z | 2020-10-09T09:11:46.000Z | oolearning/model_wrappers/RidgeRegressor.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | 48 | 2018-04-09T01:30:31.000Z | 2021-06-13T03:25:59.000Z | oolearning/model_wrappers/RidgeRegressor.py | shane-kercheval/oo-learning | 9e3ebe5f7460179e23f6801bc01f1114bb896dea | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.linear_model import Ridge
from oolearning.model_wrappers.HyperParamsBase import HyperParamsBase
from oolearning.model_wrappers.ModelExceptions import MissingValueError
from oolearning.model_wrappers.ModelWrapperBase import ModelWrapperBase
from oolearning.model_wrapp... | 32.694915 | 109 | 0.67548 |
1d11f267496db1cb326dde77871d125bf62ade88 | 190 | py | Python | contest/abc140/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc140/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | contest/abc140/C.py | mola1129/atcoder | 1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db | [
"MIT"
] | null | null | null | n = int(input())
b = list(map(int, input().split()))
ans = [0] * n
ans[0] = b[0]
ans[1] = b[0]
for i in range(1, n - 1):
ans[i] = min(ans[i], b[i])
ans[i + 1] = b[i]
print(sum(ans))
| 19 | 35 | 0.484211 |
1d134a402fc45bc125b2b0be81bcc29b582b22ee | 59 | py | Python | mangrove/utils/__init__.py | mariot/mangrove | 376bca99818c6cc1d08b1c726f46b364c69b0cc7 | [
"BSD-3-Clause"
] | null | null | null | mangrove/utils/__init__.py | mariot/mangrove | 376bca99818c6cc1d08b1c726f46b364c69b0cc7 | [
"BSD-3-Clause"
] | null | null | null | mangrove/utils/__init__.py | mariot/mangrove | 376bca99818c6cc1d08b1c726f46b364c69b0cc7 | [
"BSD-3-Clause"
] | null | null | null |
from google_spreadsheets import GoogleSpreadsheetsClient
| 14.75 | 56 | 0.898305 |
1d13ffdd92866e672e85c762c9e0524a6d8a8a21 | 801 | py | Python | orcamentos/crm/tests/_test_model_seller.py | rg3915/orcamentos | 5cd8c4f6cbeabeb5e069c58f583c38f44c3af99a | [
"MIT"
] | 94 | 2016-01-27T14:35:05.000Z | 2022-02-22T00:01:02.000Z | orcamentos/crm/tests/_test_model_seller.py | pliniocefet/orcamentos | b84eaad7dbc49cb3ad13e037b12074b466b70a70 | [
"MIT"
] | 96 | 2015-07-31T21:50:28.000Z | 2021-06-24T15:31:10.000Z | orcamentos/crm/tests/_test_model_seller.py | pliniocefet/orcamentos | b84eaad7dbc49cb3ad13e037b12074b466b70a70 | [
"MIT"
] | 43 | 2015-07-28T12:09:48.000Z | 2021-08-06T18:20:55.000Z | from django.test import TestCase
from django.contrib.auth.models import User
from orcamentos.crm.models import Employee, Occupation
from .data import USER_DICT # , SELLER_DICT
# class SellerTest(TestCase):
# def setUp(self):
# self.user = User.objects.create(**USER_DICT)
# self.occupation = Occu... | 33.375 | 81 | 0.684145 |
1d15e7acb91ccd3de12d84ce5f5173fde7c621a7 | 73 | py | Python | python/api/pocapi/settings.py | osl-incubator/poc-api-multi-language | 79bcac5684f7c8397434d3efe55bc95d5791b967 | [
"MIT"
] | null | null | null | python/api/pocapi/settings.py | osl-incubator/poc-api-multi-language | 79bcac5684f7c8397434d3efe55bc95d5791b967 | [
"MIT"
] | null | null | null | python/api/pocapi/settings.py | osl-incubator/poc-api-multi-language | 79bcac5684f7c8397434d3efe55bc95d5791b967 | [
"MIT"
] | 1 | 2022-03-23T04:48:51.000Z | 2022-03-23T04:48:51.000Z | import os
POCAPI_URL = os.getenv("POCAPI_URL", "http://localhost:6666")
| 18.25 | 61 | 0.726027 |
1d164d92f8df106a33e5db8f4a80c18b71d6631d | 692 | py | Python | Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | Problems/Binary Tree/107. Binary Tree Level Order Traversal II.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/binary-tree-level-order-traversal-ii/
from typing import List
from collections import deque
| 23.862069 | 69 | 0.559249 |
1d1678d331abf9de5f08c748bfc58f17ba31170e | 51 | py | Python | sets1.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | 1 | 2018-07-02T03:37:03.000Z | 2018-07-02T03:37:03.000Z | sets1.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | sets1.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | a_set = {'red', 'blue', 'green'}
print(type(a_set)) | 25.5 | 32 | 0.607843 |
1d187bbc7e5fa4b6e07de45ddf33ac96bec48eae | 393 | py | Python | venta/urls.py | cor14095/backGaresa | 6dffcff513c1812a88315d16303b90996f6b98d7 | [
"MIT"
] | null | null | null | venta/urls.py | cor14095/backGaresa | 6dffcff513c1812a88315d16303b90996f6b98d7 | [
"MIT"
] | null | null | null | venta/urls.py | cor14095/backGaresa | 6dffcff513c1812a88315d16303b90996f6b98d7 | [
"MIT"
] | 1 | 2021-08-09T00:55:17.000Z | 2021-08-09T00:55:17.000Z | from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from .views import SalesViewSet
urlpatterns = [
path('', SalesViewSet.as_view({'get': 'listcode'})),
path('forecast/', SalesViewSet.as_view({'get': 'forecast'})),
path('product_factor/', SalesViewSet.as_view({'get': ... | 35.727273 | 77 | 0.745547 |
1d19cd709d43bcc2b8f554495c58d5b7a1afce89 | 5,453 | py | Python | rl_1.py | canbefine/CO2-heat-pump-system-optimization | 253b54b5bdfafbfde4776f0226e79e290fce43a9 | [
"MIT"
] | 1 | 2021-11-15T17:32:11.000Z | 2021-11-15T17:32:11.000Z | rl_1.py | canbefine/CO2-heat-pump-system-optimization | 253b54b5bdfafbfde4776f0226e79e290fce43a9 | [
"MIT"
] | null | null | null | rl_1.py | canbefine/CO2-heat-pump-system-optimization | 253b54b5bdfafbfde4776f0226e79e290fce43a9 | [
"MIT"
] | 1 | 2021-07-03T13:19:12.000Z | 2021-07-03T13:19:12.000Z | """
Note: This is a updated version from my previous code,
for the target network, I use moving average to soft replace target parameters instead using assign function.
By doing this, it has 20% speed up on my machine (CPU).
Deep Deterministic Policy Gradient (DDPG), Reinforcement Learning.
DDPG is Actor Critic ba... | 42.271318 | 113 | 0.61269 |
1d1ac581b59a0c2d9ffa10dc5dad9768f58e2cab | 3,376 | py | Python | packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/utils.py | exityan/PySyft | 35166c487a5be57f9ad28929ed88a8ba6bdd5aeb | [
"Apache-2.0"
] | 425 | 2019-09-22T06:14:53.000Z | 2022-03-30T02:17:34.000Z | packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/utils.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 352 | 2019-09-17T15:32:51.000Z | 2022-03-12T01:07:35.000Z | packages/grid/apps/domain/src/main/core/infrastructure/providers/azure/utils.py | Metrix1010/PySyft | 6477f64b63dc285059c3766deab3993653cead2e | [
"Apache-2.0"
] | 208 | 2019-09-18T18:32:10.000Z | 2022-03-24T01:10:11.000Z | # stdlib
import json
import subprocess
# third party
from PyInquirer import prompt
import click
# grid relative
from ...utils import Config
from ...utils import styles
def get_azure_config() -> Config:
"""Getting the configration required for deployment on AZURE.
Returns:
Config: Simple Config wi... | 25.575758 | 115 | 0.512737 |
1d1ad5700c7e709bb9104f588aba454d223ca272 | 8,930 | py | Python | sparv/core/preload.py | spraakbanken/sparv-pipeline | 7293d42c577afdaf01ce8a936743f8b83d6eb962 | [
"MIT"
] | 17 | 2018-09-21T07:01:45.000Z | 2022-02-24T23:26:49.000Z | sparv/core/preload.py | spraakbanken/sparv-pipeline | 7293d42c577afdaf01ce8a936743f8b83d6eb962 | [
"MIT"
] | 146 | 2018-11-13T19:13:25.000Z | 2022-03-31T09:57:56.000Z | sparv/core/preload.py | spraakbanken/sparv-pipeline | 7293d42c577afdaf01ce8a936743f8b83d6eb962 | [
"MIT"
] | 5 | 2019-02-14T00:50:38.000Z | 2021-03-29T15:37:41.000Z | """Sparv preloader."""
import logging
import multiprocessing
import pickle
import socket
import struct
import time
from contextlib import contextmanager
from pathlib import Path
from typing import Dict, Iterator
from rich.logging import RichHandler
from sparv.core import config, log_handler
from sparv.core.console im... | 30.168919 | 119 | 0.643673 |
1d1c5756061b18bbb1b7b5e25656572631739d00 | 1,273 | py | Python | setup.py | gawainguo/Flask-AC | 6b7c7ebe7721b1208d7596999ce29852a7e1879c | [
"MIT"
] | 3 | 2018-11-09T09:06:01.000Z | 2018-11-11T15:38:45.000Z | setup.py | gawainguo/Flask-AC | 6b7c7ebe7721b1208d7596999ce29852a7e1879c | [
"MIT"
] | 1 | 2018-11-11T15:39:04.000Z | 2018-11-15T02:31:32.000Z | setup.py | gawainguo/Flask-AC | 6b7c7ebe7721b1208d7596999ce29852a7e1879c | [
"MIT"
] | null | null | null | """
Flask-ac
--------
Flask-ac provide role based access control(rbac) for Flask.
This plugin implement tree-like permission structure for access control.
Flask-ac is not implement persistent storage of user, roles and permissions,
instead using self-defined loaders to load data from anywhere you want.
"""
from se... | 25.979592 | 76 | 0.666143 |
1d223111cfbe4ff9cf61540962d513bd338f369e | 269 | py | Python | Desafios/Desafio 14.py | VictorFBX/Python | cf2c5fcb86b161a25bae14eb9925af9b3852f4a5 | [
"MIT"
] | null | null | null | Desafios/Desafio 14.py | VictorFBX/Python | cf2c5fcb86b161a25bae14eb9925af9b3852f4a5 | [
"MIT"
] | null | null | null | Desafios/Desafio 14.py | VictorFBX/Python | cf2c5fcb86b161a25bae14eb9925af9b3852f4a5 | [
"MIT"
] | null | null | null | print('=== Desafio 15 ===')
print('Aluguel de carro')
d = int(input('Por quantos dias o carro foi alugado? '))
k = float(input('Qual a quantidade de quilometros percorridos?'))
rd = float(d*60)
rk = float(k*0,15)
r = float(rd + rk)
print(f'Voc tem a pagar R${r}')
| 20.692308 | 65 | 0.64684 |
1d22a169803d6261276634a269c2a3746b0505a5 | 3,387 | py | Python | lib/utils/views/tables.py | arkanister/minitickets | e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd | [
"Apache-2.0"
] | null | null | null | lib/utils/views/tables.py | arkanister/minitickets | e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd | [
"Apache-2.0"
] | 2 | 2015-03-13T19:37:21.000Z | 2018-06-20T23:06:41.000Z | lib/utils/views/tables.py | arkanister/minitickets | e74dd03f1bcaadf2b196a1ce69c7c959dc8925fd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.core.exceptions import ImproperlyConfigured
from django.utils.translation import ugettext as _
from django_tables2.views import SingleTableMixin as BaseSingleTableMixin
from .list import ListView
from .utils import TableActions
from ..html.icons.base import Icon
from ..tables.util... | 33.87 | 88 | 0.588131 |
1d23c85ef9eae66890a2576e320e829e63ded9b4 | 1,825 | py | Python | brainfuck.py | pfav/brainfuck | 093e4dc095b16b5409ef786a03faef6070db3b4c | [
"MIT"
] | null | null | null | brainfuck.py | pfav/brainfuck | 093e4dc095b16b5409ef786a03faef6070db3b4c | [
"MIT"
] | null | null | null | brainfuck.py | pfav/brainfuck | 093e4dc095b16b5409ef786a03faef6070db3b4c | [
"MIT"
] | null | null | null | import os
import sys
if __name__ == '__main__':
args = sys.argv[1:]
if len(args) < 1:
usage()
filename = args[0]
m = Machine(filename)
m.run()
| 28.515625 | 81 | 0.465205 |
1d2415810e07270813c6afdcc29d272aef24020d | 668 | py | Python | ITcoach/DataAnalysis-master/day01/code/page30.py | ww35133634/chenxusheng | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | [
"AFL-3.0"
] | null | null | null | ITcoach/DataAnalysis-master/day01/code/page30.py | ww35133634/chenxusheng | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | [
"AFL-3.0"
] | null | null | null | ITcoach/DataAnalysis-master/day01/code/page30.py | ww35133634/chenxusheng | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | [
"AFL-3.0"
] | null | null | null | # coding=utf-8
from matplotlib import pyplot as plt
from matplotlib import font_manager
my_font = font_manager.FontProperties(fname="/System/Library/Fonts/PingFang.ttc")
y_1 = [1,0,1,1,2,4,3,2,3,4,4,5,6,5,4,3,3,1,1,1]
y_2 = [1,0,3,1,2,2,3,3,2,1 ,2,1,1,1,1,1,1,1,1,1]
x = range(11,31)
#
plt.figure(figsize=(20,8),dpi=... | 21.548387 | 81 | 0.687126 |
1d25121bf6642b18ea19ea2d54bd4ec3807ae0af | 3,830 | py | Python | AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/EditorScripts/MeshSurfaceTagEmitter_DependentOnMeshComponent.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/EditorScripts/MeshSurfaceTagEmitter_DependentOnMeshComponent.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | AutomatedTesting/Gem/PythonTests/largeworlds/dyn_veg/EditorScripts/MeshSurfaceTagEmitter_DependentOnMeshComponent.py | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | """
Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import azlmbr.bus as bus
impo... | 39.484536 | 155 | 0.692689 |
1d2637ad7aaffc1418a08aa5a97b02603673de42 | 554 | py | Python | blog/qiniu.py | yqh231/heroku_site | 0d50b27a384901b5315f99f339a5e0dfb6df2b76 | [
"Apache-2.0"
] | 2 | 2017-05-02T10:18:16.000Z | 2019-04-19T10:07:45.000Z | blog/qiniu.py | yqh231/heroku_site | 0d50b27a384901b5315f99f339a5e0dfb6df2b76 | [
"Apache-2.0"
] | null | null | null | blog/qiniu.py | yqh231/heroku_site | 0d50b27a384901b5315f99f339a5e0dfb6df2b76 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from hashlib import sha1
import hmac
import base64
import datetime
import time
import os
| 27.7 | 70 | 0.66065 |
1d26647d4723f5235618279993d3fbddff95048d | 2,600 | py | Python | autohoot/einsum_ops/basic_ops.py | LinjianMa/AutoHOOT | 5f9b790afb15cf4ae97cd0929a1db65d7c0347b3 | [
"Apache-2.0"
] | 13 | 2020-11-16T03:35:50.000Z | 2022-03-02T05:20:16.000Z | autohoot/einsum_ops/basic_ops.py | LinjianMa/AutoHOOT | 5f9b790afb15cf4ae97cd0929a1db65d7c0347b3 | [
"Apache-2.0"
] | 19 | 2020-10-02T00:52:08.000Z | 2021-09-10T19:34:29.000Z | autohoot/einsum_ops/basic_ops.py | LinjianMa/AutoHOOT | 5f9b790afb15cf4ae97cd0929a1db65d7c0347b3 | [
"Apache-2.0"
] | 1 | 2020-10-10T18:26:00.000Z | 2020-10-10T18:26:00.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.666667 | 97 | 0.657692 |
1d267fee47b590f18e86beb01585b978947578b2 | 1,992 | py | Python | pyconde/accounts/urls.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T14:33:14.000Z | 2021-08-03T10:19:07.000Z | pyconde/accounts/urls.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | null | null | null | pyconde/accounts/urls.py | EuroPython/djep | afcccbdda483e5f6962ac97f0dc4c4c5ea67fd21 | [
"BSD-3-Clause"
] | 3 | 2015-08-30T09:45:03.000Z | 2017-04-08T12:15:22.000Z | from django.conf.urls import patterns, url
from . import forms
from . import views
urlpatterns = patterns('django.contrib.auth.views',
url(r'^login/$', 'login',
{'template_name': 'userprofiles/login.html',
'authentication_form': forms.AuthenticationForm},
name='auth_login'),
url(r'^p... | 46.325581 | 102 | 0.678213 |
1d273c127b987c5a9a4f09849a747810b4fba7f6 | 456 | py | Python | sync/apps.py | Semprini/reference-hub | d203bfc07c3f6a7a68a0af577dae438500dca920 | [
"Apache-2.0"
] | null | null | null | sync/apps.py | Semprini/reference-hub | d203bfc07c3f6a7a68a0af577dae438500dca920 | [
"Apache-2.0"
] | null | null | null | sync/apps.py | Semprini/reference-hub | d203bfc07c3f6a7a68a0af577dae438500dca920 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
from django.db.models.signals import post_save, post_delete
from django.conf import settings
| 26.823529 | 59 | 0.671053 |
1d27e0ec2cfcb3d79fec0c7c0ef9ea9efb7b7eba | 1,816 | py | Python | resistorCor.py | EduFreit4s/Python | fcefb055467f2ef1d8a2ce97d2da78ed9052f982 | [
"MIT"
] | null | null | null | resistorCor.py | EduFreit4s/Python | fcefb055467f2ef1d8a2ce97d2da78ed9052f982 | [
"MIT"
] | null | null | null | resistorCor.py | EduFreit4s/Python | fcefb055467f2ef1d8a2ce97d2da78ed9052f982 | [
"MIT"
] | null | null | null | # ===================================
# = https://github.com/EduFreit4s =
# ===================================
# TRADUZ CDIGO DE CORES DE RESISTORES DE QUATRO BANDAS
# OBS : SADA STRING
# TESTE
#print(resistorCor("amarelo","vermelho", "preto", "ouro")) | 36.32 | 97 | 0.47467 |
1d290cbaf08552e34dffc797e9f3c2b29932eb60 | 7,018 | py | Python | lib/execution_engine2/cruft.py | MrCreosote/execution_engine2 | 6017c7d3fb49d53428c51da5ef51a0bf788266cf | [
"MIT"
] | null | null | null | lib/execution_engine2/cruft.py | MrCreosote/execution_engine2 | 6017c7d3fb49d53428c51da5ef51a0bf788266cf | [
"MIT"
] | null | null | null | lib/execution_engine2/cruft.py | MrCreosote/execution_engine2 | 6017c7d3fb49d53428c51da5ef51a0bf788266cf | [
"MIT"
] | null | null | null | # # def _run_admin_command(self, command, params):
# # available_commands = ["cancel_job", "view_job_logs"]
# # if command not in available_commands:
# # raise ValueError(f"{command} not an admin command. See {available_commands} ")
# # commands = {"cancel_job": self.cancel_job, "view_job_logs": sel... | 38.773481 | 109 | 0.596894 |
1d29be1a771cd9e0590fc73466c60e3543600577 | 1,705 | py | Python | notifications/consumers.py | utkarsh23/endorsity-club | 7b3684856f9e14284d9998931b7124505376ca5a | [
"MIT"
] | null | null | null | notifications/consumers.py | utkarsh23/endorsity-club | 7b3684856f9e14284d9998931b7124505376ca5a | [
"MIT"
] | null | null | null | notifications/consumers.py | utkarsh23/endorsity-club | 7b3684856f9e14284d9998931b7124505376ca5a | [
"MIT"
] | null | null | null | import json
from asgiref.sync import async_to_sync
from channels.layers import get_channel_layer
from channels.generic.websocket import WebsocketConsumer
from notifications.models import Notification
| 29.396552 | 81 | 0.619355 |
1d2a1731e6b6041175df26b900dc8590efbb797a | 1,737 | py | Python | qutipy/protocols/apply_teleportation_channel.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | 19 | 2020-11-11T13:00:22.000Z | 2022-03-14T11:18:04.000Z | qutipy/protocols/apply_teleportation_channel.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | null | null | null | qutipy/protocols/apply_teleportation_channel.py | sumeetkhatri/QuTIPy | ca2a3344c1caa818504425496ea37278d80b1c44 | [
"Apache-2.0"
] | 1 | 2022-03-03T15:20:15.000Z | 2022-03-03T15:20:15.000Z | '''
This code is part of QuTIpy.
(c) Copyright Sumeet Khatri, 2021
This code is licensed under the Apache License, Version 2.0. You may
obtain a copy of this license in the LICENSE.txt file in the root directory
of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
Any modifications or derivative wor... | 33.403846 | 172 | 0.723086 |
1d2aa89261445c754be61bf1b35f8ba6bb1c3e45 | 3,061 | py | Python | ecg_client.py | jtorniainen/ecgnode | 9b03025b43417d126df2829e8ee16efdafb09c10 | [
"MIT"
] | null | null | null | ecg_client.py | jtorniainen/ecgnode | 9b03025b43417d126df2829e8ee16efdafb09c10 | [
"MIT"
] | null | null | null | ecg_client.py | jtorniainen/ecgnode | 9b03025b43417d126df2829e8ee16efdafb09c10 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Jari Torniainen <jari.torniainen@ttl.fi>
# Finnish Institute of Occupational Health
# Copyright 2015
#
# This code is released under the MIT license
# http://opensource.org/licenses/mit-license.php
#
# Please see the file LICENSE for details
import pygame
import reque... | 27.827273 | 108 | 0.644561 |
1d2bea8c6a7f20c4476edadefe36e9e239e2343f | 1,339 | py | Python | tests/test_models/test_utils/test_corrblock.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 481 | 2021-11-16T07:04:23.000Z | 2022-03-31T22:21:21.000Z | tests/test_models/test_utils/test_corrblock.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 72 | 2021-11-16T12:25:55.000Z | 2022-03-28T13:10:45.000Z | tests/test_models/test_utils/test_corrblock.py | hologerry/mmflow | 40caf064851bd95317424e31cc137c0007a2bece | [
"Apache-2.0"
] | 48 | 2021-11-16T06:48:46.000Z | 2022-03-30T12:46:40.000Z | # Copyright (c) OpenMMLab. All rights reserved.
from math import sqrt
import pytest
import torch
from mmflow.models.utils import CorrBlock
| 34.333333 | 79 | 0.651979 |
1d2cb6f583df1d724a5c905324ae339fd9c8521c | 2,154 | py | Python | defaultMetafileParser.py | gaybro8777/habitat | 8b42074c8897f58cbcc09886b7258a68a4ddf090 | [
"Apache-2.0"
] | 8 | 2016-04-30T15:28:12.000Z | 2021-12-30T20:54:47.000Z | defaultMetafileParser.py | gaybro8777/habitat | 8b42074c8897f58cbcc09886b7258a68a4ddf090 | [
"Apache-2.0"
] | 1 | 2021-12-30T21:09:56.000Z | 2021-12-30T21:09:56.000Z | defaultMetafileParser.py | sitedata/habitat | 8b42074c8897f58cbcc09886b7258a68a4ddf090 | [
"Apache-2.0"
] | 5 | 2016-06-09T16:41:09.000Z | 2022-02-18T04:51:49.000Z | '''
File: defaultMetafileParser.py
Copy this file as a starting point for a custom metadata file parser
and replace with customer version of parsebody (maintain signature).
Author: Ken Robbins, March 2016
Copyright 2016 Novartis Institutes for BioMedical Research
Licensed under the Apache License, Version 2.0... | 26.925 | 92 | 0.655989 |
1d2d1707eb4e6d8f44377b65afc47847232dfecf | 30,952 | py | Python | jsrows.py | codeforamerica/sheltraustin | a07ffd4b328a9d961347a85b49c95d8bf5ec1046 | [
"BSD-3-Clause"
] | null | null | null | jsrows.py | codeforamerica/sheltraustin | a07ffd4b328a9d961347a85b49c95d8bf5ec1046 | [
"BSD-3-Clause"
] | 1 | 2015-08-03T21:27:36.000Z | 2015-08-03T21:27:36.000Z | jsrows.py | codeforamerica/sheltraustin | a07ffd4b328a9d961347a85b49c95d8bf5ec1046 | [
"BSD-3-Clause"
] | 1 | 2021-04-17T10:13:29.000Z | 2021-04-17T10:13:29.000Z |
location = {loc : [ -97.732517999999999, 30.259606000000002 ], 'mental_health': 'N', 'med_service': 'Y', 'food': 'Y', 'private': 'N', 'shelter': 'N', 'subst_abuse_service': 'N', 'med_facility': 'Y', 'title': 'Manos De Cristo: Dental Clinic', 'address': '1201 E Cesar Chavez St, Austin, TX 78702, USA'}
db.austindb.inser... | 162.052356 | 374 | 0.655111 |
1d30f23c6727904b652bf46b8809b6b193789095 | 22,080 | py | Python | senlin/tests/apiv1/test_policies.py | tengqm/senlin | aa59c55c098abb13590bc4308c753338ce4a70f4 | [
"Apache-2.0"
] | 2 | 2015-02-11T23:02:13.000Z | 2021-03-26T06:39:58.000Z | senlin/tests/apiv1/test_policies.py | tengqm/senlin | aa59c55c098abb13590bc4308c753338ce4a70f4 | [
"Apache-2.0"
] | 2 | 2015-01-19T13:40:47.000Z | 2015-03-04T07:06:07.000Z | senlin/tests/apiv1/test_policies.py | tengqm/senlin | aa59c55c098abb13590bc4308c753338ce4a70f4 | [
"Apache-2.0"
] | 5 | 2015-01-13T14:53:04.000Z | 2015-03-13T02:54:06.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | 39.148936 | 79 | 0.546467 |
1d31b977564dc71e7940278a32776b4137bb4071 | 870 | py | Python | src/riotwatcher/_apis/valorant/ContentApi.py | acgandhi/Riot-Watcher | f8a7ea144a00fc62f9ffaee5bad3158f41251589 | [
"MIT"
] | null | null | null | src/riotwatcher/_apis/valorant/ContentApi.py | acgandhi/Riot-Watcher | f8a7ea144a00fc62f9ffaee5bad3158f41251589 | [
"MIT"
] | null | null | null | src/riotwatcher/_apis/valorant/ContentApi.py | acgandhi/Riot-Watcher | f8a7ea144a00fc62f9ffaee5bad3158f41251589 | [
"MIT"
] | null | null | null | from .. import BaseApi, NamedEndpoint
from .urls import ContentApiUrls
| 29 | 84 | 0.662069 |
1d3309bc274656018de222a60894266542029c04 | 230 | py | Python | setup.py | web-sys1/SeismicSonify | 9c0c3880bb403a94bb4f8ca937976e4fef849cbe | [
"MIT"
] | 26 | 2020-06-03T17:46:16.000Z | 2022-03-20T09:39:12.000Z | setup.py | web-sys1/SeismicSonify | 9c0c3880bb403a94bb4f8ca937976e4fef849cbe | [
"MIT"
] | 6 | 2021-12-01T19:32:56.000Z | 2022-02-23T22:25:14.000Z | setup.py | liamtoney/sonify | 28e03900fe75dfe7f93a5f0ae91fc5ad0ed1cc4e | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
from sonify import __version__
setup(
name='sonify',
version=__version__,
packages=find_packages(),
entry_points=dict(console_scripts='sonify = sonify.sonify:main'),
)
| 20.909091 | 69 | 0.747826 |
1d34590963f5f38d99527dbc1562cdf57a07186c | 2,811 | py | Python | ve/unit/test_in.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | ve/unit/test_in.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | ve/unit/test_in.py | cmarqu/pyvsc | c7ff708256b7cdce0eccab8b7d6e2037edbdc5fa | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 30.89011 | 99 | 0.506581 |
1d35816f874492c596c0c80e5339e40d5d0c398d | 5,284 | py | Python | build/lib/fab_addon_turbowidgets/widgets.py | lemeur/fab_addon_turbowidgets | 9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb | [
"MIT"
] | null | null | null | build/lib/fab_addon_turbowidgets/widgets.py | lemeur/fab_addon_turbowidgets | 9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb | [
"MIT"
] | null | null | null | build/lib/fab_addon_turbowidgets/widgets.py | lemeur/fab_addon_turbowidgets | 9ae89cb06b236af9ec2e81e86fcc3d5ccde040fb | [
"MIT"
] | null | null | null | import json
import logging
from flask_babel import lazy_gettext as _
from markupsafe import Markup
#from wtforms import widgets
from wtforms.widgets import html_params, HTMLString
from wtforms import SelectField
from wtforms.compat import izip, text_type
log = logging.getLogger(__name__)
DEFAULT_JSEDITOR_CONFIG = {
... | 31.640719 | 143 | 0.575511 |
1d36e906a5b1061cbbd34d130e802c023af6d395 | 3,780 | py | Python | wsgi_lineprof/formatter.py | ymyzk/wsgi_lineprof | 7aca9899f7d6c08747b17893b47ee8e92347ab9a | [
"MIT"
] | 48 | 2016-10-03T14:04:38.000Z | 2021-12-22T04:02:37.000Z | wsgi_lineprof/formatter.py | ymyzk/wsgi_lineprof | 7aca9899f7d6c08747b17893b47ee8e92347ab9a | [
"MIT"
] | 52 | 2016-11-30T16:13:24.000Z | 2021-10-16T15:56:53.000Z | wsgi_lineprof/formatter.py | ymyzk/wsgi_lineprof | 7aca9899f7d6c08747b17893b47ee8e92347ab9a | [
"MIT"
] | 3 | 2017-05-30T03:36:44.000Z | 2021-07-13T13:10:08.000Z | from abc import ABCMeta, abstractmethod
import inspect
import itertools
import linecache
from os import path
from typing import Any, cast, Dict, Sequence
import colorama
from wsgi_lineprof.stats import LineProfilerStat, LineProfilerStats
from wsgi_lineprof.types import Stream
| 35.327103 | 87 | 0.533333 |
1d370ce200f5d51b82bfad5cfc999bc9dd17a50f | 4,611 | py | Python | backup.py | 0xfadead/soundcloud-backup | 2132d6d21707577486d5632eca6b6194f02b7fa5 | [
"MIT"
] | null | null | null | backup.py | 0xfadead/soundcloud-backup | 2132d6d21707577486d5632eca6b6194f02b7fa5 | [
"MIT"
] | null | null | null | backup.py | 0xfadead/soundcloud-backup | 2132d6d21707577486d5632eca6b6194f02b7fa5 | [
"MIT"
] | null | null | null | import requests
import zipfile
import tempfile
import sys
import argparse
import time
CLIENT_ID = 'JlZIsxg2hY5WnBgtn3jfS0UYCl0K8DOg'
INFO_BASE_URL = 'https://api.soundcloud.com/resolve.json'
TRACKS_BASE_URL = 'https://api.soundcloud.com/users/{:d}/tracks'
LIMIT = 50 # the max track data SoundCloud will return
ARCHIV... | 31.367347 | 88 | 0.585556 |
1d3ab01e36180285711e2ffbcad7ba2b517d7211 | 5,564 | py | Python | distpy/workers/strainrate2summary.py | billmcchesney1/distpy | fa49d2a910b164514057ee75fa570397b7004159 | [
"MIT"
] | 23 | 2020-02-12T13:25:22.000Z | 2022-01-19T07:09:39.000Z | distpy/workers/strainrate2summary.py | billmcchesney1/distpy | fa49d2a910b164514057ee75fa570397b7004159 | [
"MIT"
] | 2 | 2020-03-09T11:24:00.000Z | 2020-09-14T10:50:51.000Z | distpy/workers/strainrate2summary.py | billmcchesney1/distpy | fa49d2a910b164514057ee75fa570397b7004159 | [
"MIT"
] | 11 | 2020-03-28T16:40:39.000Z | 2021-07-30T16:02:12.000Z | # (C) 2020, Schlumberger. Refer to LICENSE
import numpy
import datetime
import scipy.signal
import os
import distpy.io_help.io_helpers as io_helpers
import distpy.io_help.directory_services as directory_services
import distpy.calc.pub_command_set as pub_command_set
import distpy.calc.extra_numpy as extra_numpy
import... | 38.909091 | 143 | 0.640546 |
1d3b37227fa67f63b24e1ab4a3e9bca2332dd99a | 542 | py | Python | backend.py | LRAbbade/postal-validator | 4f705fdb766eee8e16f61a82cfef1b25f78a42a6 | [
"MIT"
] | 1 | 2019-08-13T20:48:03.000Z | 2019-08-13T20:48:03.000Z | backend.py | LRAbbade/postal-validator | 4f705fdb766eee8e16f61a82cfef1b25f78a42a6 | [
"MIT"
] | null | null | null | backend.py | LRAbbade/postal-validator | 4f705fdb766eee8e16f61a82cfef1b25f78a42a6 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, jsonify
from main import Validate
app = Flask(__name__)
if __name__ == '__main__':
app.run(host='0.0.0.0')
| 19.357143 | 58 | 0.586716 |
1d3e82a670bdb1776ae183cbe465aaa5f1d7f137 | 1,537 | py | Python | supports/pyload/src/pyload/plugins/downloaders/ShareplaceCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | 1 | 2020-04-02T17:03:39.000Z | 2020-04-02T17:03:39.000Z | supports/pyload/src/pyload/plugins/downloaders/ShareplaceCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | supports/pyload/src/pyload/plugins/downloaders/ShareplaceCom.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import re
import urllib.parse
from ..base.simple_downloader import SimpleDownloader
| 31.367347 | 82 | 0.594665 |
1d3f37cd6bdd6993696e9d21e1416800284f7f74 | 145 | py | Python | examples/subscriber.py | i2y/h2pubsub | 0d98b24b79fb932a3d832781ce4f950e32d20181 | [
"MIT"
] | 1 | 2016-06-14T21:54:34.000Z | 2016-06-14T21:54:34.000Z | examples/subscriber.py | i2y/h2pubsub | 0d98b24b79fb932a3d832781ce4f950e32d20181 | [
"MIT"
] | null | null | null | examples/subscriber.py | i2y/h2pubsub | 0d98b24b79fb932a3d832781ce4f950e32d20181 | [
"MIT"
] | null | null | null | from h2pubsub import Client
client = Client(address='localhost', port=443)
client.subscribe('/test')
while True:
print(client.receive())
| 14.5 | 46 | 0.724138 |
1d3fc716405a553729bd9e96eb9a365b1dce30fd | 87 | py | Python | python/01_Saying_Hello/saying_hello.py | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | 1 | 2021-11-04T11:49:46.000Z | 2021-11-04T11:49:46.000Z | python/01_Saying_Hello/saying_hello.py | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | 8 | 2019-12-16T09:37:36.000Z | 2020-07-02T06:00:30.000Z | python/01_Saying_Hello/saying_hello.py | lucifer1004/EFP | 3be9f22ef76957c0f3ebdc0dbb415cea1ede8da9 | [
"MIT"
] | null | null | null | name = input('What is your name? ')
print('Hello, {}, nice to meet you!'.format(name))
| 29 | 50 | 0.643678 |
1d4048ca3098d4827db9662975d9206ac1e37948 | 3,152 | py | Python | app/perm_app.py | StatML-dAI/dnn-inference | f17b6945dfff80118e25f1b39b56c3e4027b3b92 | [
"MIT"
] | 4 | 2020-12-08T18:53:31.000Z | 2021-11-23T11:29:17.000Z | app/perm_app.py | statmlben/dnn-inference | fef1cbe9382141dfe5c81e84a6bd39f7a17cd736 | [
"MIT"
] | null | null | null | app/perm_app.py | statmlben/dnn-inference | fef1cbe9382141dfe5c81e84a6bd39f7a17cd736 | [
"MIT"
] | 2 | 2022-02-17T15:57:42.000Z | 2022-02-20T11:50:45.000Z | from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from tensorflow.python.keras import backend as K
import numpy as np
import time
from numpy import linalg ... | 30.901961 | 115 | 0.695431 |
1d44201cc80a01ee7dce6e56338d1f7b7bb103f3 | 3,144 | py | Python | preprocess.py | Mblakey/MOLVAE-Tensorflow-2 | 55d37b9560450c1f3d83c3b0c852301bd7271659 | [
"MIT"
] | null | null | null | preprocess.py | Mblakey/MOLVAE-Tensorflow-2 | 55d37b9560450c1f3d83c3b0c852301bd7271659 | [
"MIT"
] | null | null | null | preprocess.py | Mblakey/MOLVAE-Tensorflow-2 | 55d37b9560450c1f3d83c3b0c852301bd7271659 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.utils import to_categorical
from sklearn.model_selection import train_test_split
file_dir = 'data/'
file_name = 'chembl_29_chemreps.txt'
Preprocess(file_dir,file_name,splitting=True) | 34.933333 | 104 | 0.672074 |
1d45f187ba9cc2962a4c50c91b9b536fbe900389 | 300 | py | Python | log_sample_normal/views.py | exexute/django_sample | 7608af6c9d52a3837dd714a878e8a3a298b17560 | [
"Apache-2.0"
] | null | null | null | log_sample_normal/views.py | exexute/django_sample | 7608af6c9d52a3837dd714a878e8a3a298b17560 | [
"Apache-2.0"
] | 1 | 2021-05-26T03:18:01.000Z | 2021-05-26T03:18:01.000Z | log_sample_normal/views.py | exexute/django_sample | 7608af6c9d52a3837dd714a878e8a3a298b17560 | [
"Apache-2.0"
] | null | null | null | from django.http import JsonResponse
from django.views import View
import logging
logger = logging.getLogger('sample_log')
| 23.076923 | 62 | 0.723333 |
1d4678ad04ea0836fb25388266d9121d37ee740d | 2,196 | py | Python | src/merge.py | mgarriott/PDFMerger | ae1167bf832cae947ac13b4625b7c50e1704da67 | [
"BSD-2-Clause"
] | 2 | 2019-05-31T17:04:33.000Z | 2021-05-16T17:29:04.000Z | src/merge.py | mgarriott/PDFMerger | ae1167bf832cae947ac13b4625b7c50e1704da67 | [
"BSD-2-Clause"
] | null | null | null | src/merge.py | mgarriott/PDFMerger | ae1167bf832cae947ac13b4625b7c50e1704da67 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
'''
Merge together a pdf document containing only front pages with a separate
document containing only back pages and save the result into a new document.
@author: Matt Garriott
'''
import argparse
import os
from pyPdf import PdfFileReader, PdfFileWriter
if __name__ == '__main__':
parser = ar... | 38.526316 | 115 | 0.674408 |
1d4760116a8feed0c99ce2b394d2997de58d3e57 | 935 | py | Python | src/MainAPP/migrations/0005_thermostats.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | null | null | null | src/MainAPP/migrations/0005_thermostats.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | 9 | 2017-11-21T15:45:18.000Z | 2022-02-11T03:37:54.000Z | src/MainAPP/migrations/0005_thermostats.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | 1 | 2020-07-22T02:24:17.000Z | 2020-07-22T02:24:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-26 10:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 33.392857 | 214 | 0.60107 |
1d492fa174915f915fc8c814aa3a7b4fc924cfe1 | 3,722 | py | Python | neurovault/apps/statmaps/tests/test_counter.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 68 | 2015-02-07T06:09:49.000Z | 2022-03-03T22:58:33.000Z | neurovault/apps/statmaps/tests/test_counter.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 436 | 2015-01-01T01:01:13.000Z | 2021-11-07T18:24:00.000Z | neurovault/apps/statmaps/tests/test_counter.py | abitrolly/NeuroVault | e62bc65c8e0e58bff55bb9fa7cf11193dc54d734 | [
"MIT"
] | 60 | 2015-01-10T23:31:26.000Z | 2021-08-10T06:39:57.000Z | import os.path
from django.contrib.auth.models import User
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase, Client
from neurovault.apps.statmaps.forms import NIDMResultsForm
from neurovault.apps.statmaps.models import Collection, StatisticMap, Comparison
from neurovault.... | 57.261538 | 143 | 0.68834 |
1d498e78b566a14f91a958cfce1f1978c77ba59a | 32,045 | py | Python | tests/test_ls.py | jain-aayush1123/here-location-services-python | 11ad5ef8273b4f243c43bc00ebd470f725b980bc | [
"Apache-2.0"
] | 16 | 2021-02-15T13:49:29.000Z | 2022-03-29T10:34:43.000Z | tests/test_ls.py | jain-aayush1123/here-location-services-python | 11ad5ef8273b4f243c43bc00ebd470f725b980bc | [
"Apache-2.0"
] | 8 | 2021-02-27T18:40:46.000Z | 2021-10-03T15:49:27.000Z | tests/test_ls.py | jain-aayush1123/here-location-services-python | 11ad5ef8273b4f243c43bc00ebd470f725b980bc | [
"Apache-2.0"
] | 11 | 2021-02-16T04:58:08.000Z | 2022-02-21T20:51:55.000Z | # Copyright (C) 2019-2021 HERE Europe B.V.
# SPDX-License-Identifier: Apache-2.0
import json
from datetime import datetime, timedelta
import pandas as pd
import pytest
import pytz
from geojson import FeatureCollection, Point
from geojson.geometry import LineString
from here_location_services import LS
from here_loca... | 32.077077 | 98 | 0.610298 |
1d4a7092fa4de80605dd946265c14ef7be1cd1c6 | 521 | py | Python | 03_estruturas_compostas/ex075.py | eltonrp/curso_python3_curso_em_video | 483e6a41262e09e539de3c1fc907d0fd9b1592b2 | [
"MIT"
] | null | null | null | 03_estruturas_compostas/ex075.py | eltonrp/curso_python3_curso_em_video | 483e6a41262e09e539de3c1fc907d0fd9b1592b2 | [
"MIT"
] | null | null | null | 03_estruturas_compostas/ex075.py | eltonrp/curso_python3_curso_em_video | 483e6a41262e09e539de3c1fc907d0fd9b1592b2 | [
"MIT"
] | null | null | null | lista = (int(input('Digite um nmero: ')),
int(input('Digite outro nmero: ')),
int(input('Digite mais um nmero: ')),
int(input('Digite o ltimo nmero: ')))
print(f'Voc digitou os valores {lista}')
print(f'O nmero 9 apareceu {lista.count(9)} vez(es)')
if 3 in lista:
print(f'O nmero 3 aparece... | 34.733333 | 64 | 0.610365 |
1d4aaaedaed33648bb853e2714233c79fd50b6e3 | 2,890 | py | Python | cmsplugin_filer_video/models.py | Zeerooth/cmsplugin-filer | e1083b3abbeeaa1e09a95548936ad70432a2cf31 | [
"BSD-3-Clause"
] | 5 | 2019-12-13T10:55:36.000Z | 2020-09-21T06:37:28.000Z | cmsplugin_filer_video/models.py | Zeerooth/cmsplugin-filer | e1083b3abbeeaa1e09a95548936ad70432a2cf31 | [
"BSD-3-Clause"
] | 1 | 2021-03-01T14:46:54.000Z | 2021-03-01T14:46:54.000Z | cmsplugin_filer_video/models.py | Zeerooth/cmsplugin-filer | e1083b3abbeeaa1e09a95548936ad70432a2cf31 | [
"BSD-3-Clause"
] | 8 | 2020-02-25T12:40:13.000Z | 2021-11-20T17:16:40.000Z | from __future__ import unicode_literals
from cms.models import CMSPlugin
from cmsplugin_filer_video import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from filer.fields.file import FilerFileField
from filer.fields.image import FilerImageField
from os.path import basena... | 34.404762 | 196 | 0.651211 |
1d4ada56e05db3d12c957fcb29e86567d6fe7e9d | 341 | py | Python | api/seq/urls.py | antonybholmes/edbw-django-app | 2268fa7f983347742ee55145269ef1222776a838 | [
"MIT"
] | null | null | null | api/seq/urls.py | antonybholmes/edbw-django-app | 2268fa7f983347742ee55145269ef1222776a838 | [
"MIT"
] | null | null | null | api/seq/urls.py | antonybholmes/edbw-django-app | 2268fa7f983347742ee55145269ef1222776a838 | [
"MIT"
] | null | null | null | from django.urls import path
from django.conf.urls import url
from django.urls import include
from api.seq import views
urlpatterns = [
path('chipseq/', include('api.seq.chipseq.urls')),
path('counts', views.counts, name='counts'),
path('mapped', views.mapped, name='mapped'),
path('type', views.data_t... | 26.230769 | 54 | 0.695015 |
1d4ae17041f29d8b2b01fbaeb51039292f4a9347 | 6,159 | py | Python | tests/tags_tests.py | yoursantu/indiannewsplus | 252f0367b43ec2edea636157bcf2d8a92dda6f3f | [
"MIT"
] | null | null | null | tests/tags_tests.py | yoursantu/indiannewsplus | 252f0367b43ec2edea636157bcf2d8a92dda6f3f | [
"MIT"
] | null | null | null | tests/tags_tests.py | yoursantu/indiannewsplus | 252f0367b43ec2edea636157bcf2d8a92dda6f3f | [
"MIT"
] | null | null | null | """Tests for tags of the ``multilingual_news``` application."""
from django.test import TestCase
from django.test.client import RequestFactory
from django.utils.translation import activate
from cms.api import add_plugin
from mixer.backend.django import mixer
from ..templatetags.multilingual_news_tags import (
get... | 38.018519 | 79 | 0.639552 |
1d4b3704523e5ede209ca40a8ab2c453344b2984 | 3,590 | py | Python | dwave_networkx/drawing/tests/test_chimera_layout.py | mstechly/dwave_networkx | c319222ba47c83d86bd9d0de045c497d37ffd8ad | [
"Apache-2.0"
] | null | null | null | dwave_networkx/drawing/tests/test_chimera_layout.py | mstechly/dwave_networkx | c319222ba47c83d86bd9d0de045c497d37ffd8ad | [
"Apache-2.0"
] | null | null | null | dwave_networkx/drawing/tests/test_chimera_layout.py | mstechly/dwave_networkx | c319222ba47c83d86bd9d0de045c497d37ffd8ad | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import unittest
import networkx as nx
import dwave_networkx as dnx
try:
import matplotlib.pyplot as plt
_plt = True
except ImportError:
_plt = False
try:
import numpy as np
_numpy = True
except ImportError:
_numpy = False
| 35.544554 | 77 | 0.614763 |
1d4eb77e993ae5d7ecbe885fa52cf0468a55034f | 6,634 | py | Python | priorgen/accuracy_utils.py | joshjchayes/PriorGen | 228be0b06dca29ad2ad33ae216f494eaead6161f | [
"MIT"
] | 1 | 2021-12-09T10:29:20.000Z | 2021-12-09T10:29:20.000Z | priorgen/accuracy_utils.py | joshjchayes/PriorGen | 228be0b06dca29ad2ad33ae216f494eaead6161f | [
"MIT"
] | null | null | null | priorgen/accuracy_utils.py | joshjchayes/PriorGen | 228be0b06dca29ad2ad33ae216f494eaead6161f | [
"MIT"
] | null | null | null | '''
accuracy_utils
Module for checking accuracy of retrieval
'''
from scipy.optimize import fsolve
from scipy.spatial import distance
import numpy as np
from ._scaler import Scaler
def _intercept_eqn(p, true_pos, retr_pos, errors):
'''
Function to pass to fsolve to find the intercept between the
line... | 39.023529 | 110 | 0.679379 |
1d4f74536ff6515a48d3969048610b4404195d0e | 715 | py | Python | dumpsec.py | fengjixuchui/Diff | 5a5fc56add03d9d21fad746d5f24584c5a1807a8 | [
"MIT"
] | 23 | 2018-09-19T11:46:18.000Z | 2022-02-09T01:15:07.000Z | dumpsec.py | fengjixuchui/Diff | 5a5fc56add03d9d21fad746d5f24584c5a1807a8 | [
"MIT"
] | 1 | 2020-05-06T01:31:06.000Z | 2020-05-06T15:07:12.000Z | dumpsec.py | fengjixuchui/Diff | 5a5fc56add03d9d21fad746d5f24584c5a1807a8 | [
"MIT"
] | 9 | 2018-09-19T16:07:45.000Z | 2021-02-27T17:51:33.000Z | import sys
try:
import pefile
except ImportError:
print 'You have to install pefile (pip install pefile)'
sys.exit()
if __name__ == "__main__":
main() | 28.6 | 107 | 0.67972 |
1d518bb241852d7660d529d7b5b0b7f7be5c652f | 1,708 | py | Python | djangocms_responsive_image/forms.py | febsn/djangocms-responsive-image | e7ab02a8ab4119d1a60aa21e50380072b53755ff | [
"MIT"
] | 2 | 2016-05-03T15:53:56.000Z | 2017-05-19T12:05:40.000Z | djangocms_responsive_image/forms.py | febsn/djangocms-responsive-image | e7ab02a8ab4119d1a60aa21e50380072b53755ff | [
"MIT"
] | null | null | null | djangocms_responsive_image/forms.py | febsn/djangocms-responsive-image | e7ab02a8ab4119d1a60aa21e50380072b53755ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from .models import ImagePlugin
from .conf import settings
| 34.16 | 89 | 0.649297 |
1d51a3a76cc8e751c6626a8d0cc5f4bfc08027a7 | 1,898 | py | Python | 6_API/resources/DbModels.py | misoA/DeepCalendar | 50cafc1e70f125f3b6b42cd88e1e9dd071676b49 | [
"MIT"
] | null | null | null | 6_API/resources/DbModels.py | misoA/DeepCalendar | 50cafc1e70f125f3b6b42cd88e1e9dd071676b49 | [
"MIT"
] | 3 | 2019-01-14T06:59:24.000Z | 2019-01-14T07:48:38.000Z | 6_API/resources/DbModels.py | misoA/DeepCalendar | 50cafc1e70f125f3b6b42cd88e1e9dd071676b49 | [
"MIT"
] | 5 | 2019-01-08T05:01:26.000Z | 2021-05-17T23:34:51.000Z | # -*- coding: utf-8 -*-
from sqlalchemy import MetaData, Table
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
# DB Model Auto Generate
engine = create_engine('mysql://{USER_NAME}:{PASSWORD}@{DB_END_POINT}:{DB_PORT}/{DB_NAME}?charset=utf8', echo=F... | 35.148148 | 116 | 0.742887 |
1d52719ed2516a3f8bd34a155778582c73bc5fcd | 1,898 | py | Python | python/arrays/first_non_repeating_integers.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | null | null | null | python/arrays/first_non_repeating_integers.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 11 | 2020-01-09T06:53:45.000Z | 2022-02-11T01:34:44.000Z | python/arrays/first_non_repeating_integers.py | suddi/coding-challenges | f31b53790084dce1ad0be65ec1d61bf177cddb39 | [
"MIT"
] | 1 | 2017-03-18T17:19:43.000Z | 2017-03-18T17:19:43.000Z | def solution(A): # O(N)
"""
Given an array find the first non-repeating integers in the array
>>> solution([3, 2, 3, 2, 5, 4, 3, 4])
5
>>> solution([3, 2, 3, 2, '%', 5, 4, 'd', 3, 4])
5
>>> solution([3, 2, 3, 2, 5, 4, 3, 4, 8])
5
>>... | 47.45 | 74 | 0.301897 |
1d52b010fc72c96e98bed9f723780c67116e3f6a | 2,741 | py | Python | db/db.py | kovalev-vxx/A-Q_teleBot | 2184237cc7811aa44caa31281d932a78f682aa9e | [
"MIT"
] | null | null | null | db/db.py | kovalev-vxx/A-Q_teleBot | 2184237cc7811aa44caa31281d932a78f682aa9e | [
"MIT"
] | null | null | null | db/db.py | kovalev-vxx/A-Q_teleBot | 2184237cc7811aa44caa31281d932a78f682aa9e | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, Boolean, create_engine
from sqlalchemy.engine.base import Engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy.orm.session import Session
from config import config
Base = declarative_base()
engine = creat... | 32.630952 | 90 | 0.630427 |
1d52dba3286ff40b1b601b6c256425c0907c82ca | 5,760 | py | Python | github_poster/loader/multiple_loader.py | Likenttt/GitHubPoster | cd1226de8ebcc0e7b1a9b9a9082ff4e8807d6710 | [
"MIT"
] | null | null | null | github_poster/loader/multiple_loader.py | Likenttt/GitHubPoster | cd1226de8ebcc0e7b1a9b9a9082ff4e8807d6710 | [
"MIT"
] | null | null | null | github_poster/loader/multiple_loader.py | Likenttt/GitHubPoster | cd1226de8ebcc0e7b1a9b9a9082ff4e8807d6710 | [
"MIT"
] | 1 | 2021-10-13T06:31:36.000Z | 2021-10-13T06:31:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import defaultdict
from github_poster.loader.base_loader import BaseLoader
| 27.042254 | 68 | 0.483333 |
1d533ac704007e352566535daa013459de87cb75 | 2,284 | py | Python | P2_image_captioning/model.py | arroqc/udacity | d531f99ac6379954ade3cb1c3b4ded1533ef6512 | [
"MIT"
] | null | null | null | P2_image_captioning/model.py | arroqc/udacity | d531f99ac6379954ade3cb1c3b4ded1533ef6512 | [
"MIT"
] | null | null | null | P2_image_captioning/model.py | arroqc/udacity | d531f99ac6379954ade3cb1c3b4ded1533ef6512 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torchvision.models as models
| 39.37931 | 125 | 0.580998 |
1d55ec0c123c6896d300cdeb5803b622b9e097e9 | 3,070 | py | Python | Labs/LinearRegression/plots.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 10 | 2016-10-18T19:54:25.000Z | 2021-10-09T20:12:38.000Z | Labs/LinearRegression/plots.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | null | null | null | Labs/LinearRegression/plots.py | jessicaleete/numerical_computing | cc71f51f35ca74d00e617af3d1a0223e19fb9a68 | [
"CC-BY-3.0"
] | 2 | 2017-05-14T16:07:59.000Z | 2020-06-20T09:05:06.000Z | import matplotlib
matplotlib.rcParams = matplotlib.rc_params_from_file('../../matplotlibrc')
import numpy as np
from matplotlib import pyplot as plt
from sklearn import linear_model
housing = np.load('housingprices.npy')
challenger = np.load('challenger.npy')
if __name__ == "__main__":
raw()
lin... | 27.909091 | 83 | 0.594137 |
1d5998826a48a0c705799b042d89f7c86bfa0a68 | 2,983 | py | Python | tests/corpora/test_dbl_bundle_text.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | null | null | null | tests/corpora/test_dbl_bundle_text.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | null | null | null | tests/corpora/test_dbl_bundle_text.py | johnml1135/machine.py | 7bfb668b81d6af476f7ee797900e111c3027d542 | [
"MIT"
] | null | null | null | from machine.scripture import VerseRef
from tests.corpora.dbl_bundle_test_environment import DblBundleTestEnvironment
| 43.867647 | 100 | 0.681193 |
1d5c64559255b57af22709eadd89e57c13a09bc1 | 3,210 | py | Python | funcs.py | iw4p/NimiPA | 3833b38416c6603955b972a8d9524330f1a739b0 | [
"MIT"
] | null | null | null | funcs.py | iw4p/NimiPA | 3833b38416c6603955b972a8d9524330f1a739b0 | [
"MIT"
] | null | null | null | funcs.py | iw4p/NimiPA | 3833b38416c6603955b972a8d9524330f1a739b0 | [
"MIT"
] | null | null | null | import zipfile
import os
import shutil
import plistlib
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
RootDir1 = ROOT_DIR + '/Extract'
# RootIcon = ROOT_DIR + '/Data/PNGs/AppIcon60x60@3x.png'
appName = ""
bundleID = ""
version = ""
buildNumber = ""
# ROOT_DIR = ""
# RootDir1 = ROOT_DIR + '/Extract'
# def ... | 30.865385 | 98 | 0.693769 |
1d5cac5d4783cdfd5fbf54c092cbac91dd82e976 | 2,565 | py | Python | task_mail.py | Noel-git/OSS_final | 1199c5c7ce054da01c9dfb33c2035540a7693550 | [
"BSD-3-Clause"
] | null | null | null | task_mail.py | Noel-git/OSS_final | 1199c5c7ce054da01c9dfb33c2035540a7693550 | [
"BSD-3-Clause"
] | null | null | null | task_mail.py | Noel-git/OSS_final | 1199c5c7ce054da01c9dfb33c2035540a7693550 | [
"BSD-3-Clause"
] | 1 | 2022-02-13T00:46:27.000Z | 2022-02-13T00:46:27.000Z | import urllib.request
import re
import numpy as np
import os, sys, time
import datetime
from bs4 import BeautifulSoup
import smtplib
from email.mime.text import MIMEText
from time import sleep
import random
from urllib.request import HTTPError
from urllib.request import URLError
| 27.580645 | 242 | 0.557115 |