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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5e2b817212060ef7c5fee7505c4febd057adc71 | 5,827 | py | Python | collection/cp/algorithms-master/python/binary_tree.py | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/algorithms-master/python/binary_tree.py | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/algorithms-master/python/binary_tree.py | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | """
Binary Tree and basic properties
1. In-Order Traversal
2. Pre-Order Traversal
3. Post-Order Traversal
4. Level-Order Traversal
"""
from collections import deque
def main():
"""
Tree Structure:
1
/ \
2 3
/ \
4 5
"""
tree = BinaryTree(1)
tre... | 33.488506 | 120 | 0.579372 |
d5e30ec5517ff0e5f54798d022557ddc8306de32 | 445 | py | Python | custom_components/vaddio_conferenceshot/const.py | rohankapoorcom/vaddio_conferenceshot | 71744710df10f77e21e9e7568e3f6c7175b0d11d | [
"Apache-2.0"
] | null | null | null | custom_components/vaddio_conferenceshot/const.py | rohankapoorcom/vaddio_conferenceshot | 71744710df10f77e21e9e7568e3f6c7175b0d11d | [
"Apache-2.0"
] | null | null | null | custom_components/vaddio_conferenceshot/const.py | rohankapoorcom/vaddio_conferenceshot | 71744710df10f77e21e9e7568e3f6c7175b0d11d | [
"Apache-2.0"
] | null | null | null | import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PATH, CONF_USERNAME
DOMAIN = "vaddio_conferenceshot"
DATA_SCHEMA = vol.Schema(
{
vol.Required(CONF_HOST): cv.string,
vol.Required(CONF_USERNAME): cv.string,... | 24.722222 | 82 | 0.750562 |
d5e3869d32d3fe51b72766bc724a95897a33b8c9 | 32,841 | py | Python | lightonml/opu.py | lightonai/lightonml | 451327cccecdca4e8ec65df30f30d3fd8ad2194f | [
"Apache-2.0"
] | 27 | 2021-02-24T15:37:20.000Z | 2022-01-12T00:28:22.000Z | lightonml/opu.py | lightonai/lightonml | 451327cccecdca4e8ec65df30f30d3fd8ad2194f | [
"Apache-2.0"
] | 4 | 2021-02-26T12:58:21.000Z | 2021-09-10T09:54:49.000Z | lightonml/opu.py | lightonai/lightonml | 451327cccecdca4e8ec65df30f30d3fd8ad2194f | [
"Apache-2.0"
] | 9 | 2021-02-26T15:58:32.000Z | 2021-06-21T09:18:48.000Z | # Copyright (c) 2020 LightOn, All Rights Reserved.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
"""
This module contains the OPU class
"""
import time
from math import sqrt
import pkg_resources
from lightonml.encoding.base import NoEnco... | 44.319838 | 114 | 0.645595 |
d5e4c8d6143747e9fa0113815e838834d857b208 | 1,022 | py | Python | example/shovel/bar.py | demiurgestudios/shovel | 3db497164907d3765fae182959147d19064671c7 | [
"MIT"
] | 202 | 2015-01-12T13:47:29.000Z | 2022-02-09T19:13:36.000Z | example/shovel/bar.py | demiurgestudios/shovel | 3db497164907d3765fae182959147d19064671c7 | [
"MIT"
] | 14 | 2017-04-09T17:04:53.000Z | 2021-05-16T11:08:34.000Z | example/shovel/bar.py | demiurgestudios/shovel | 3db497164907d3765fae182959147d19064671c7 | [
"MIT"
] | 22 | 2015-09-11T18:35:10.000Z | 2021-05-16T11:04:56.000Z | from shovel import task | 27.621622 | 65 | 0.614481 |
d5e5a12f0690f68a0f2da693b51965dfe681eeea | 22,938 | py | Python | scripts/external_libs/scapy-2.4.3/scapy/config.py | timgates42/trex-core | efe94752fcb2d0734c83d4877afe92a3dbf8eccd | [
"Apache-2.0"
] | 956 | 2015-06-24T15:04:55.000Z | 2022-03-30T06:25:04.000Z | scripts/external_libs/scapy-2.4.3/scapy/config.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 782 | 2015-09-20T15:19:00.000Z | 2022-03-31T23:52:05.000Z | scripts/external_libs/scapy-2.4.3/scapy/config.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 429 | 2015-06-27T19:34:21.000Z | 2022-03-23T11:02:51.000Z | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
Implementation of the configuration object.
"""
from __future__ import absolute_import
from __future__ import print_funct... | 33.584187 | 122 | 0.624161 |
d5e70f438163ee68472f800dcc1f45bfb446e30f | 5,797 | py | Python | tests/base/test_server.py | Prodigy123/rasa_nlu_zh | b85717063a493f6b148504ee550a0642c6c379ae | [
"Apache-2.0"
] | 4 | 2017-07-20T03:06:29.000Z | 2021-04-20T03:25:17.000Z | tests/base/test_server.py | imsakshi/rasa_nlu | 6dafc37825b99139248fdea9e9745f416734d4dd | [
"Apache-2.0"
] | null | null | null | tests/base/test_server.py | imsakshi/rasa_nlu | 6dafc37825b99139248fdea9e9745f416734d4dd | [
"Apache-2.0"
] | 2 | 2017-10-03T00:56:22.000Z | 2018-08-15T10:41:41.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import tempfile
import pytest
import time
from treq.testing import StubTreq
from rasa_nlu.config import RasaNLUConfig
import json
import io
fr... | 32.205556 | 104 | 0.656719 |
d5e7507528f57c95fde0e247aa2531f1d8579112 | 15,277 | py | Python | bugsnag/configuration.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | null | null | null | bugsnag/configuration.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | null | null | null | bugsnag/configuration.py | ForroKulcs/bugsnag-python | 107c1add31a2202cc08ef944aa00ab96996b247a | [
"MIT"
] | null | null | null | import os
import platform
import socket
import sysconfig
from typing import List, Any, Tuple, Union
import warnings
from bugsnag.sessiontracker import SessionMiddleware
from bugsnag.middleware import DefaultMiddleware, MiddlewareStack
from bugsnag.utils import (fully_qualified_class_name, validate_str_setter,
... | 31.695021 | 99 | 0.636185 |
d5e7f6433ef2aafee2885217cc2a65201e60c31e | 587 | py | Python | secret_injector/secret.py | failk8s/failk8s-operator | 457890a09a2551b9002eec73386b11a37469569f | [
"Apache-2.0"
] | null | null | null | secret_injector/secret.py | failk8s/failk8s-operator | 457890a09a2551b9002eec73386b11a37469569f | [
"Apache-2.0"
] | null | null | null | secret_injector/secret.py | failk8s/failk8s-operator | 457890a09a2551b9002eec73386b11a37469569f | [
"Apache-2.0"
] | null | null | null | import kopf
from .functions import global_logger, reconcile_secret
| 30.894737 | 67 | 0.67632 |
d5e86c6edc684a9da3a98d63325e3f3c6ab77abb | 25,390 | py | Python | src/py/gee/utils.py | openforis/collectearthonline | 1af48e373c393a1d8c48b17472f6aa6c41f65769 | [
"MIT"
] | null | null | null | src/py/gee/utils.py | openforis/collectearthonline | 1af48e373c393a1d8c48b17472f6aa6c41f65769 | [
"MIT"
] | null | null | null | src/py/gee/utils.py | openforis/collectearthonline | 1af48e373c393a1d8c48b17472f6aa6c41f65769 | [
"MIT"
] | null | null | null | import datetime
import os
import ee
import math
import sys
import json
from ee.ee_exception import EEException
from gee.inputs import getLandsat, getS1
########## Helper functions ##########
########## Helper routes ##########
########## ee.Image ##########
########## ee.ImageCollecti... | 38.704268 | 130 | 0.605593 |
d5e8cedec4a5704ab1636f88d9b806e93b86ff8a | 1,186 | py | Python | userManagement/management/urls.py | shubhamguptaorg/user_managementl | ad98e0e4886d9b0547b05ae424c10d8f6268d470 | [
"MIT"
] | null | null | null | userManagement/management/urls.py | shubhamguptaorg/user_managementl | ad98e0e4886d9b0547b05ae424c10d8f6268d470 | [
"MIT"
] | 4 | 2021-03-19T03:22:44.000Z | 2022-03-11T23:58:10.000Z | userManagement/management/urls.py | shubhamguptaorg/user_managementl | ad98e0e4886d9b0547b05ae424c10d8f6268d470 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path,include
from django.views.generic import TemplateView
from .views import Index,SignUp,UserDashboard,AdminDashboard,logout,showAdminData,deleteuser,activeUser,deactiveUser,UserDetailEdit,uploadImage
# from .views import Index,UserDashboard,SignUp,AdminDashboa... | 49.416667 | 143 | 0.764755 |
d5e96b9312873b5f396a18010caddd4d11bd8888 | 16,962 | py | Python | sickbeard/lib/hachoir_parser/container/riff.py | Branlala/docker-sickbeardfr | 3ac85092dc4cc8a4171fb3c83e9682162245e13e | [
"MIT"
] | null | null | null | sickbeard/lib/hachoir_parser/container/riff.py | Branlala/docker-sickbeardfr | 3ac85092dc4cc8a4171fb3c83e9682162245e13e | [
"MIT"
] | null | null | null | sickbeard/lib/hachoir_parser/container/riff.py | Branlala/docker-sickbeardfr | 3ac85092dc4cc8a4171fb3c83e9682162245e13e | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""
RIFF parser, able to parse:
* AVI video container
* WAV audio container
* CDA file
Documents:
- libavformat source code from ffmpeg library
http://ffmpeg.mplayerhq.hu/
- Video for Windows Programmer's Guide
http://www.opennet.ru/docs/formats/avi.txt
- What is an animated curso... | 38.55 | 103 | 0.614432 |
d5eae8227c1380d3fce1267b4a1949ca968db82b | 1,041 | py | Python | Utils.py | MartinEngen/NaiveBayesianClassifier | a28813708a4d2adcdcd629e6d4d8b4f438a9c799 | [
"MIT"
] | null | null | null | Utils.py | MartinEngen/NaiveBayesianClassifier | a28813708a4d2adcdcd629e6d4d8b4f438a9c799 | [
"MIT"
] | null | null | null | Utils.py | MartinEngen/NaiveBayesianClassifier | a28813708a4d2adcdcd629e6d4d8b4f438a9c799 | [
"MIT"
] | null | null | null | import os
import re
def get_subfolder_paths(folder_relative_path: str) -> list:
"""
Gets all subfolders of a given path
:param folder_relative_path: Relative path of folder to find subfolders of
:return: list of relative paths to any subfolders
"""
return [f.path for f in os.scandir(folder_rel... | 30.617647 | 83 | 0.659942 |
d5eb56662663b212c6709a52f8fbe61a75880b3c | 800 | py | Python | tools/ldbc_benchmark/neo4j/load_scripts/time_index.py | carlboudreau007/ecosys | d415143837a85ceb6213a0f0588128a86a4a3984 | [
"Apache-2.0"
] | 245 | 2018-04-07T00:14:56.000Z | 2022-03-28T05:51:35.000Z | tools/ldbc_benchmark/neo4j/load_scripts/time_index.py | carlboudreau007/ecosys | d415143837a85ceb6213a0f0588128a86a4a3984 | [
"Apache-2.0"
] | 47 | 2018-04-02T16:41:22.000Z | 2022-03-24T01:40:46.000Z | tools/ldbc_benchmark/neo4j/load_scripts/time_index.py | carlboudreau007/ecosys | d415143837a85ceb6213a0f0588128a86a4a3984 | [
"Apache-2.0"
] | 140 | 2018-08-09T15:54:47.000Z | 2022-03-30T12:44:48.000Z | from datetime import datetime
with open('/home/neo4j/neo4j-community-3.5.1/logs/debug.log', 'r') as log:
begin = []
end = []
for line in log:
if 'Index population started' in line:
begin.append(line[:23])
elif 'Index creation finished' in line:
end.append(line[:23])
if len(begin) == 0 or le... | 34.782609 | 77 | 0.6175 |
d5ec93a99d9c113668c2693c8d65499328f692cd | 1,489 | py | Python | zf-setup.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | null | null | null | zf-setup.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | null | null | null | zf-setup.py | Ziki2001/new-school-sdk | b606e666888e1c9813e2f1a6a64bbede3744026e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
:file: setup.py
:author: -Farmer
:url: https://blog.farmer233.top
:date: 2021/09/20 11:11:54
'''
from os import path
from setuptools import setup, find_packages
basedir = path.abspath(path.dirname(__file__))
with open(path.join(basedir, "README.md"), encoding='utf-8') as f... | 26.589286 | 70 | 0.620551 |
d5ecb68fc8ba51b00e1a946759c8f1a77d41211f | 1,635 | py | Python | RunIt/airt/poker_cards.py | antx-code/funcode | a8a9b99274e169562771b488a3a9551277ef4b99 | [
"MIT"
] | 3 | 2021-09-27T08:07:07.000Z | 2022-03-11T04:46:30.000Z | RunIt/airt/poker_cards.py | antx-code/funcode | a8a9b99274e169562771b488a3a9551277ef4b99 | [
"MIT"
] | null | null | null | RunIt/airt/poker_cards.py | antx-code/funcode | a8a9b99274e169562771b488a3a9551277ef4b99 | [
"MIT"
] | null | null | null | # Square => sq => RGB(Blue)
# Plum => pl => RGB(Green)
# Spade => sp => RGB(Black)
# Heart => he => RGB(Red)
init_poker = {
'local': {
'head': [-1, -1, -1],
'mid': [-1, -1, -1, -1, -1],
'tail': [-1, -1, -1, -1, -1],
'drop': [-1, -1, -1, -1],
... | 14.469027 | 40 | 0.263609 |
d5edbea518993ed30402ca6ed7151f569ce035ff | 42 | py | Python | main.py | reflective21/iportfolio | 39db626a9754c1df44ac698f3d8988fdc4e7c6d5 | [
"MIT"
] | null | null | null | main.py | reflective21/iportfolio | 39db626a9754c1df44ac698f3d8988fdc4e7c6d5 | [
"MIT"
] | null | null | null | main.py | reflective21/iportfolio | 39db626a9754c1df44ac698f3d8988fdc4e7c6d5 | [
"MIT"
] | null | null | null | name = "David Asiru Adetomiwa"
print(name) | 21 | 30 | 0.761905 |
d5edd2119227be04c5621c163a6292b04c441de0 | 10,716 | py | Python | tcex/services/api_service.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | null | null | null | tcex/services/api_service.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | null | null | null | tcex/services/api_service.py | kdeltared/tcex | 818c0d09256764f871e42d9ca5916f92d941d882 | [
"Apache-2.0"
] | null | null | null | """TcEx Framework API Service module."""
# standard library
import json
import sys
import threading
import traceback
from io import BytesIO
from typing import Any
from .common_service import CommonService
| 38.271429 | 100 | 0.535741 |
d5ee43eaf3c3033dcd289654572ab9b3e0e7b99a | 1,540 | py | Python | mmpose/core/optimizer/builder.py | vsatyakumar/mmpose | 2fffccb19dad3b59184b41be94653f75523b8585 | [
"Apache-2.0"
] | 1 | 2021-05-06T08:40:13.000Z | 2021-05-06T08:40:13.000Z | mmpose/core/optimizer/builder.py | CV-IP/mmpose | 3ef8e6dbbeb6262b7ed6c51faa74b83c23f4c6a1 | [
"Apache-2.0"
] | null | null | null | mmpose/core/optimizer/builder.py | CV-IP/mmpose | 3ef8e6dbbeb6262b7ed6c51faa74b83c23f4c6a1 | [
"Apache-2.0"
] | null | null | null | from mmcv.runner import build_optimizer
def build_optimizers(model, cfgs):
"""Build multiple optimizers from configs.
If `cfgs` contains several dicts for optimizers, then a dict for each
constructed optimizers will be returned.
If `cfgs` only contains one optimizer config, the constructed optimizer
... | 29.056604 | 78 | 0.635065 |
d5eeb5cec1758e31f96e4ef111f8b5ec32383697 | 1,189 | py | Python | register/views.py | angel-vazquez25/My-Backlog-Handler | 60880cfc6bcc5a7fb2d5c752c11bdfe741f76531 | [
"MIT"
] | 3 | 2021-05-11T20:56:41.000Z | 2022-03-15T01:26:13.000Z | register/views.py | angel-vazquez25/My-Backlog-Handler | 60880cfc6bcc5a7fb2d5c752c11bdfe741f76531 | [
"MIT"
] | null | null | null | register/views.py | angel-vazquez25/My-Backlog-Handler | 60880cfc6bcc5a7fb2d5c752c11bdfe741f76531 | [
"MIT"
] | 1 | 2021-05-19T15:46:32.000Z | 2021-05-19T15:46:32.000Z | import datetime
from django.contrib.auth import logout
from django.shortcuts import render, redirect
from .forms import RegisterForm
from django.http import HttpResponse
from django.contrib.auth.forms import AuthenticationForm
from django.conf import settings
from django.contrib.auth import authenticate, login
from dj... | 33.971429 | 91 | 0.641716 |
d5eefeb4c414f13bc2793346ebb57b29f5de79db | 572 | py | Python | forum/migrations/0001_initial.py | Aerodlyn/mu | 2c3b95e5a83d0f651dd8ad287b471803e1fec3a1 | [
"MIT"
] | 1 | 2021-06-25T22:27:39.000Z | 2021-06-25T22:27:39.000Z | forum/migrations/0001_initial.py | Aerodlyn/mu | 2c3b95e5a83d0f651dd8ad287b471803e1fec3a1 | [
"MIT"
] | 1 | 2022-03-12T00:55:31.000Z | 2022-03-12T00:55:31.000Z | forum/migrations/0001_initial.py | Aerodlyn/mu | 2c3b95e5a83d0f651dd8ad287b471803e1fec3a1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-26 01:27
from django.db import migrations, models
| 23.833333 | 93 | 0.552448 |
d5efef002e68abbec6057f8677301ab26bdc9a66 | 16,846 | py | Python | custom_train.py | shirley-wu/text_to_table | 44cb100b8ff2543b5b4efe1461502c00c34ef846 | [
"MIT"
] | 3 | 2022-03-17T05:55:23.000Z | 2022-03-30T08:34:14.000Z | custom_train.py | shirley-wu/text_to_table | 44cb100b8ff2543b5b4efe1461502c00c34ef846 | [
"MIT"
] | 1 | 2022-03-30T09:04:54.000Z | 2022-03-30T09:04:54.000Z | custom_train.py | shirley-wu/text_to_table | 44cb100b8ff2543b5b4efe1461502c00c34ef846 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3 -u
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Train a new model on one or across multiple GPUs.
"""
import collections
import logging
import math
import os
im... | 36.306034 | 114 | 0.633919 |
d5eff585130a0defb51fd844556d3dea1143c55d | 18,862 | py | Python | src/ucar/unidata/idv/resources/python/griddiag.py | JessicaWiedemeier/IDV | e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64 | [
"CNRI-Jython"
] | 1 | 2021-06-09T11:24:48.000Z | 2021-06-09T11:24:48.000Z | src/ucar/unidata/idv/resources/python/griddiag.py | JessicaWiedemeier/IDV | e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64 | [
"CNRI-Jython"
] | null | null | null | src/ucar/unidata/idv/resources/python/griddiag.py | JessicaWiedemeier/IDV | e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64 | [
"CNRI-Jython"
] | null | null | null | """
This is the doc for the Grid Diagnostics module. These functions
are based on the grid diagnostics from the GEneral Meteorological
PAcKage (GEMPAK). Note that the names are case sensitive and some
are named slightly different from GEMPAK functions to avoid conflicts
with Jython built-ins (e.g. st... | 26.75461 | 89 | 0.584721 |
d5effb4acc4b4904be8e5099e47cd060230843fe | 2,376 | py | Python | app.py | DevilBit/Twitter-Bot | 6f1b285aeb5faf37906d575775a927e69a5321d6 | [
"MIT"
] | null | null | null | app.py | DevilBit/Twitter-Bot | 6f1b285aeb5faf37906d575775a927e69a5321d6 | [
"MIT"
] | null | null | null | app.py | DevilBit/Twitter-Bot | 6f1b285aeb5faf37906d575775a927e69a5321d6 | [
"MIT"
] | 1 | 2021-03-08T20:05:23.000Z | 2021-03-08T20:05:23.000Z | from selenium import webdriver #to get the browser
from selenium.webdriver.common.keys import Keys #to send key to browser
import getpass #to get password safely
import time #to pause the program
#a calss to store all twetter related objects and functions
if __name__ == '__main__':
username = input('Em... | 34.941176 | 95 | 0.603114 |
d5f13f54fb0bf75e7d45a4d1bb426a38fb3fb255 | 3,403 | py | Python | visualization.py | shyhyawJou/GradCAM-pytorch | 8159f077552fc71055fe97c17bf8544d32cc8b0f | [
"Apache-2.0"
] | null | null | null | visualization.py | shyhyawJou/GradCAM-pytorch | 8159f077552fc71055fe97c17bf8544d32cc8b0f | [
"Apache-2.0"
] | null | null | null | visualization.py | shyhyawJou/GradCAM-pytorch | 8159f077552fc71055fe97c17bf8544d32cc8b0f | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from torch.nn import functional as F
from PIL import Image
import cv2 as cv
from matplotlib import cm
import numpy as np
| 34.72449 | 85 | 0.528945 |
d5f302c5d8d693812839ea69e155909e598db642 | 19,149 | py | Python | frame_2D_alg/alternative versions/intra_blob_xy.py | Mechachleopteryx/CogAlg | 723104e1f57010e52f1dc249ba53ba58db0a991b | [
"MIT"
] | null | null | null | frame_2D_alg/alternative versions/intra_blob_xy.py | Mechachleopteryx/CogAlg | 723104e1f57010e52f1dc249ba53ba58db0a991b | [
"MIT"
] | null | null | null | frame_2D_alg/alternative versions/intra_blob_xy.py | Mechachleopteryx/CogAlg | 723104e1f57010e52f1dc249ba53ba58db0a991b | [
"MIT"
] | null | null | null | '''
2D version of 1st-level algorithm is a combination of frame_blobs, intra_blob, and comp_P: optional raster-to-vector conversion.
intra_blob recursively evaluates each blob for two forks of extended internal cross-comparison and sub-clustering:
der+: incremental derivation cross-comp in high-variati... | 44.740654 | 144 | 0.576584 |
d5f33371ef4b57ee6f5f8e58e37840bbabd0819e | 10,275 | py | Python | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 9,136 | 2015-01-02T00:41:45.000Z | 2022-03-31T15:30:02.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,424 | 2015-01-05T08:55:58.000Z | 2022-03-30T19:34:55.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,921 | 2015-01-02T10:19:30.000Z | 2022-03-31T02:48:42.000Z | """Generates a random terrain at Minitaur gym environment reset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path... | 35.309278 | 98 | 0.706667 |
d5f35dd267171d89db5d5ed7c57d46dbcf723ae2 | 2,502 | py | Python | polecat/db/sql/expression/values.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 4 | 2019-08-10T12:56:12.000Z | 2020-01-21T09:51:20.000Z | polecat/db/sql/expression/values.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 71 | 2019-04-09T05:39:21.000Z | 2020-05-16T23:09:24.000Z | polecat/db/sql/expression/values.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | null | null | null | from functools import partial
from polecat.db.query import query as query_module
from psycopg2.sql import SQL, Placeholder
from .expression import Expression
| 34.75 | 79 | 0.61311 |
d5f3f84aa262b2485923b0060a6795013deae56c | 1,292 | py | Python | python/day3p1.py | swilcox/2019adventofcode | b67261aae74805ba8c2f4b72f09dd79277224ebb | [
"MIT"
] | 1 | 2020-01-18T18:24:18.000Z | 2020-01-18T18:24:18.000Z | python/day3p1.py | swilcox/2019adventofcode | b67261aae74805ba8c2f4b72f09dd79277224ebb | [
"MIT"
] | null | null | null | python/day3p1.py | swilcox/2019adventofcode | b67261aae74805ba8c2f4b72f09dd79277224ebb | [
"MIT"
] | null | null | null | # 2019 advent day 3
MOVES = {
'R': (lambda x: (x[0], x[1] + 1)),
'L': (lambda x: (x[0], x[1] - 1)),
'U': (lambda x: (x[0] + 1, x[1])),
'D': (lambda x: (x[0] - 1, x[1])),
}
#R1 = 'R75,D30,R83,U83,L12,D49,R71,U7,L72'
#R2 = 'U62,R66,U55,R34,D71,R55,D58,R83'
#R1 = 'R98,U47,R26,D63,R33,U87,L62,D20,R33,... | 26.367347 | 79 | 0.600619 |
d5f42d830df55813fe6234674e4d597dccbd7f59 | 1,054 | py | Python | examples/demo/python/catalog.py | JavDomGom/mist | 83ae9f67df61ff2387a7d424cff0f8591a6a645f | [
"Apache-2.0"
] | 1 | 2021-04-23T17:13:31.000Z | 2021-04-23T17:13:31.000Z | examples/demo/python/catalog.py | JavDomGom/mist | 83ae9f67df61ff2387a7d424cff0f8591a6a645f | [
"Apache-2.0"
] | null | null | null | examples/demo/python/catalog.py | JavDomGom/mist | 83ae9f67df61ff2387a7d424cff0f8591a6a645f | [
"Apache-2.0"
] | null | null | null | import asyncio
| 36.344828 | 112 | 0.588235 |
d5f5577604a264eefbdbdf102a315e607e68f2da | 15,156 | py | Python | tests/api/v3_1_0/test_security_groups_acls.py | CiscoISE/ciscoisesdk | 860b0fc7cc15d0c2a39c64608195a7ab3d5f4885 | [
"MIT"
] | 36 | 2021-05-18T16:24:19.000Z | 2022-03-05T13:44:41.000Z | tests/api/v3_1_0/test_security_groups_acls.py | CiscoISE/ciscoisesdk | 860b0fc7cc15d0c2a39c64608195a7ab3d5f4885 | [
"MIT"
] | 15 | 2021-06-08T19:03:37.000Z | 2022-02-25T14:47:33.000Z | tests/api/v3_1_0/test_security_groups_acls.py | CiscoISE/ciscoisesdk | 860b0fc7cc15d0c2a39c64608195a7ab3d5f4885 | [
"MIT"
] | 6 | 2021-06-10T09:32:01.000Z | 2022-01-12T08:34:39.000Z | # -*- coding: utf-8 -*-
"""IdentityServicesEngineAPI security_groups_acls API fixtures and tests.
Copyright (c) 2021 Cisco and/or its affiliates.
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 w... | 31.509356 | 109 | 0.720375 |
d5f5d714834d96889f873a0d7ec900fdf1926bca | 21,522 | py | Python | geomstats/geometry/riemannian_metric.py | stefanheyder/geomstats | c4e6d959db7b1bcc99b00b535b8aa5d832b62e28 | [
"MIT"
] | null | null | null | geomstats/geometry/riemannian_metric.py | stefanheyder/geomstats | c4e6d959db7b1bcc99b00b535b8aa5d832b62e28 | [
"MIT"
] | null | null | null | geomstats/geometry/riemannian_metric.py | stefanheyder/geomstats | c4e6d959db7b1bcc99b00b535b8aa5d832b62e28 | [
"MIT"
] | null | null | null | """Riemannian and pseudo-Riemannian metrics."""
import math
import warnings
import autograd
import geomstats.backend as gs
from geomstats.geometry.connection import Connection
EPSILON = 1e-4
N_CENTERS = 10
TOLERANCE = 1e-5
N_REPETITIONS = 20
N_MAX_ITERATIONS = 50000
N_STEPS = 10
def loss(y_pred, y_true, metric):... | 33.315789 | 79 | 0.557987 |
d5f67147c5059c64bf2090a7f0dd93d9aec0092b | 9,842 | py | Python | app/main/pages/instrument/hrs/red/order/plots.py | hettlage/salt-data-quality-site | da9ff4a51e8affa47e0bc1c0383c7fdeaac2155e | [
"MIT"
] | null | null | null | app/main/pages/instrument/hrs/red/order/plots.py | hettlage/salt-data-quality-site | da9ff4a51e8affa47e0bc1c0383c7fdeaac2155e | [
"MIT"
] | null | null | null | app/main/pages/instrument/hrs/red/order/plots.py | hettlage/salt-data-quality-site | da9ff4a51e8affa47e0bc1c0383c7fdeaac2155e | [
"MIT"
] | null | null | null | import pandas as pd
from bokeh.models import HoverTool
from bokeh.models.formatters import DatetimeTickFormatter
from bokeh.palettes import Plasma256
from bokeh.plotting import figure, ColumnDataSource
from app import db
from app.decorators import data_quality
# creates your plot
date_formatter = DatetimeTickFormatt... | 35.530686 | 109 | 0.517984 |
d5f72b6bb8de932265e3494ed6520e23b33d2b72 | 705 | py | Python | p6e8.py | yannickbf-prog/python | da4bd2c8668966359b829a8ac2a896afeca2b150 | [
"MIT"
] | null | null | null | p6e8.py | yannickbf-prog/python | da4bd2c8668966359b829a8ac2a896afeca2b150 | [
"MIT"
] | null | null | null | p6e8.py | yannickbf-prog/python | da4bd2c8668966359b829a8ac2a896afeca2b150 | [
"MIT"
] | null | null | null | #Yannick p6e8 Escribe un programa que te pida primero un nmero y luego te pida nmeros hasta que la suma de los nmeros introducidos coincida con el nmero inicial. El programa termina escribiendo la lista de nmeros.
limite = int(input("Escribe limite:"))
valores = int(input("Escribe un valor:"))
listavalores = [... | 30.652174 | 219 | 0.704965 |
d5f73b66aea43800edd9e2977d37ade872174872 | 1,574 | py | Python | .venv/lib/python3.8/site-packages/cleo/application.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | 1 | 2020-08-07T16:09:57.000Z | 2020-08-07T16:09:57.000Z | .venv/lib/python3.8/site-packages/cleo/application.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | null | null | null | .venv/lib/python3.8/site-packages/cleo/application.py | RivtLib/replit01 | ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7 | [
"MIT"
] | null | null | null | from typing import Optional
from typing import Tuple
from clikit.console_application import ConsoleApplication
from .commands import BaseCommand
from .commands.completions_command import CompletionsCommand
from .config import ApplicationConfig
| 29.148148 | 77 | 0.623888 |
d5f79839ee8447226cf398d9edd00a635f9c473c | 499 | py | Python | simone/person/management.py | zuhalcakir/simone | 88e04e6a228570d7d2a4c8bbf683e4903eeb592b | [
"BSD-3-Clause"
] | 16 | 2015-03-27T12:39:23.000Z | 2020-05-09T13:10:24.000Z | simone/person/management.py | zuhalcakir/simone | 88e04e6a228570d7d2a4c8bbf683e4903eeb592b | [
"BSD-3-Clause"
] | 2 | 2016-09-03T18:22:01.000Z | 2018-01-04T12:20:01.000Z | simone/person/management.py | zuhalcakir/simone | 88e04e6a228570d7d2a4c8bbf683e4903eeb592b | [
"BSD-3-Clause"
] | 8 | 2015-08-26T18:17:54.000Z | 2017-05-17T13:28:32.000Z | #from django.dispatch import dispatcher
#def UserProfilePostInsert(sender, instance, signal, *args, **kwargs):
#"""
#Inserts a blank imap server entry (if necessary) and associates it with the user
#"""
#user = instance
#i = user.get_profile().imap_servers.create()
#user.get_profile().about = '... | 33.266667 | 85 | 0.707415 |
d5f7c879e6735f223e0344e0abf1f6975431be03 | 1,009 | py | Python | watcher/fly.py | cog-isa/htm-rl | baf5b67a11283d37165bf6a29d6808a234d6d98c | [
"MIT"
] | 1 | 2021-12-09T22:09:24.000Z | 2021-12-09T22:09:24.000Z | watcher/fly.py | cog-isa/htm-rl | baf5b67a11283d37165bf6a29d6808a234d6d98c | [
"MIT"
] | null | null | null | watcher/fly.py | cog-isa/htm-rl | baf5b67a11283d37165bf6a29d6808a234d6d98c | [
"MIT"
] | 1 | 2021-11-18T08:54:20.000Z | 2021-11-18T08:54:20.000Z | from utils.drawer import Drawer
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("name", help="the name of the datafile")
parser.add_argument("--size", help="width,height")
args = parser.parse_args()
if args.size is None:
width, height = 128... | 36.035714 | 120 | 0.663033 |
d5f85a460ddcb48e089b11f2309816efd46bb61e | 3,263 | py | Python | test/unit/test_structures.py | ourobouros/aws-encryption-sdk-python | 1d0e40de7fef1b1131127a6f8626ef6a60739289 | [
"Apache-2.0"
] | null | null | null | test/unit/test_structures.py | ourobouros/aws-encryption-sdk-python | 1d0e40de7fef1b1131127a6f8626ef6a60739289 | [
"Apache-2.0"
] | 1 | 2019-05-30T22:14:47.000Z | 2019-05-30T22:14:47.000Z | test/unit/test_structures.py | ourobouros/aws-encryption-sdk-python | 1d0e40de7fef1b1131127a6f8626ef6a60739289 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 37.505747 | 120 | 0.70426 |
d5f884d302908ab9fba8e534f212148aba1c42a3 | 1,745 | py | Python | codes/utils/mygraph.py | CristianLazoQuispe/Datathon-Interbank-2020 | 54f5d11fe83eb5a8ea8284be13d96e9e12978354 | [
"MIT"
] | null | null | null | codes/utils/mygraph.py | CristianLazoQuispe/Datathon-Interbank-2020 | 54f5d11fe83eb5a8ea8284be13d96e9e12978354 | [
"MIT"
] | null | null | null | codes/utils/mygraph.py | CristianLazoQuispe/Datathon-Interbank-2020 | 54f5d11fe83eb5a8ea8284be13d96e9e12978354 | [
"MIT"
] | null | null | null | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
path_results = '../results/images/'
# this function receives a dataset with binary target and it will graph a hist of values
# plot histograms of train and test to understand the differences between them | 51.323529 | 140 | 0.671633 |
d5f8c3fa603dfdb79ab13ebb13d4e8e23422a12c | 1,134 | py | Python | src/pretix/base/validators.py | td00/pretix | e31bd7600c85598de135f2eb5012e2f33fdb1d11 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/base/validators.py | td00/pretix | e31bd7600c85598de135f2eb5012e2f33fdb1d11 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/base/validators.py | td00/pretix | e31bd7600c85598de135f2eb5012e2f33fdb1d11 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-08-09T17:11:28.000Z | 2017-08-09T17:11:28.000Z | from django.core.exceptions import ValidationError
from django.utils.deconstruct import deconstructible
from django.utils.translation import ugettext_lazy as _
| 20.618182 | 64 | 0.552028 |
d5f8e7bbb353d3c7f7fae4eb9baaff7822b54512 | 32,192 | py | Python | fortnitepy/ext/commands/bot.py | gfdb/fortnitepy | 1cedbddee1f81c96fc60b586cd2c16398bc2d45f | [
"MIT"
] | 127 | 2019-07-15T15:55:30.000Z | 2022-03-22T07:39:29.000Z | fortnitepy/ext/commands/bot.py | xMistt/fortnitepy | c64d72572e188a938e0b39a6d1fd1e8ee4842d31 | [
"MIT"
] | 65 | 2019-07-15T22:48:35.000Z | 2022-01-30T05:18:36.000Z | fortnitepy/ext/commands/bot.py | xMistt/fortnitepy | c64d72572e188a938e0b39a6d1fd1e8ee4842d31 | [
"MIT"
] | 83 | 2019-07-18T12:37:58.000Z | 2022-03-19T20:56:47.000Z | """
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
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, merg... | 35.02938 | 91 | 0.584493 |
d5fad574122cf8647545ad83e7dc43147679cc22 | 1,129 | py | Python | paths_win.py | tankbusta/rescache | 86ca7f3fb66e28a8761f0995a300f57a73a9561d | [
"MIT"
] | 15 | 2015-03-05T17:03:08.000Z | 2022-01-28T07:49:38.000Z | paths_win.py | tankbusta/rescache | 86ca7f3fb66e28a8761f0995a300f57a73a9561d | [
"MIT"
] | null | null | null | paths_win.py | tankbusta/rescache | 86ca7f3fb66e28a8761f0995a300f57a73a9561d | [
"MIT"
] | 9 | 2015-03-06T09:56:30.000Z | 2017-11-07T00:24:17.000Z | import _winreg
import os
def get_shared_cache_folder():
"""
Look in the registry for the configured cache folder.
If there is no entry, then we create one.
:return:
"""
_winreg.aReg = _winreg.ConnectRegistry(None, _winreg.HKEY_CURRENT_USER)
try:
key = _winreg.OpenKey(_winreg.aReg, ... | 30.513514 | 84 | 0.70062 |
d5fb061a3a4378d9720ff3a451d5983678f6ed08 | 2,712 | py | Python | venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/ebu.py | yuta-komura/vishnu | 67173b674d5f4f3be189474103612447ef69ab44 | [
"MIT"
] | 1 | 2021-11-17T04:55:14.000Z | 2021-11-17T04:55:14.000Z | dateparser/data/date_translation_data/ebu.py | cool-RR/dateparser | c38336df521cc57d947dc2c9111539a72f801652 | [
"BSD-3-Clause"
] | null | null | null | dateparser/data/date_translation_data/ebu.py | cool-RR/dateparser | c38336df521cc57d947dc2c9111539a72f801652 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
info = {
"name": "ebu",
"date_order": "DMY",
"january": [
"mweri wa mbere",
"mbe"
],
"february": [
"mweri wa kari",
"kai"
],
"march": [
"mweri wa kathat",
"kat"
],
"april": [
"mweri wa kana",
"kan... | 15.859649 | 34 | 0.289823 |
d5fc2fcc2b0439d566be57074eaeae0f3e82e072 | 129 | py | Python | deepa2/preptrain/__init__.py | debatelab/deepa2 | 1a9e8c357d7e3924808c703ec9f4a6611a4b5f93 | [
"Apache-2.0"
] | null | null | null | deepa2/preptrain/__init__.py | debatelab/deepa2 | 1a9e8c357d7e3924808c703ec9f4a6611a4b5f93 | [
"Apache-2.0"
] | null | null | null | deepa2/preptrain/__init__.py | debatelab/deepa2 | 1a9e8c357d7e3924808c703ec9f4a6611a4b5f93 | [
"Apache-2.0"
] | null | null | null | """Preprocessing DeepA2 datasets for LM training"""
# flake8: noqa
from deepa2.preptrain.t2tpreprocessor import T2TPreprocessor
| 25.8 | 60 | 0.813953 |
d5fcff660972d9337742f70ae81e7f0f26eaadac | 310 | py | Python | setup.py | martinfarrow/awspk | c3b5f8ede44ca96473b95f52ddb2291a45828565 | [
"MIT"
] | null | null | null | setup.py | martinfarrow/awspk | c3b5f8ede44ca96473b95f52ddb2291a45828565 | [
"MIT"
] | null | null | null | setup.py | martinfarrow/awspk | c3b5f8ede44ca96473b95f52ddb2291a45828565 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(name='awspk',
version='0.1',
description='A aws cli pen knife with loads of interested stuff',
author='Martin Farrow',
author_email='awspk@dibley.net',
py_modules=['awspk'],
license='LICENSE',
)
| 23.846154 | 71 | 0.651613 |
d5fd3faa9866127caab32ba61fdd34ab4ec39ea3 | 36,968 | py | Python | pyclicker/lib/python3.7/site-packages/Xlib/display.py | JayRovacsek/pyautoclick | e136a58c129332933eb8455dd7c8e16222d54fb2 | [
"MIT"
] | 1 | 2022-01-25T22:52:58.000Z | 2022-01-25T22:52:58.000Z | Xlib/display.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | Xlib/display.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # Xlib.display -- high level display object
#
# Copyright (C) 2000 Peter Liljenberg <petli@ctrl-c.liu.se>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1
# of the ... | 38.872766 | 123 | 0.599681 |
d5fd49cbaa7ded4b224914739446f1a0434a93af | 657 | py | Python | Others/qupc/qupc2014/c/main.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | Others/qupc/qupc2014/c/main.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | Others/qupc/qupc2014/c/main.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
if __name__ == "__main__":
main()
| 21.193548 | 50 | 0.47032 |
d5fe5092d56595790c2072c2485827d644f9fbac | 1,104 | py | Python | NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'dimd'
from zope.interface import Interface, Attribute
| 26.285714 | 112 | 0.729167 |
d5fedd3bf29602a1334d3dbff567321747bbca26 | 4,652 | py | Python | analysis/notebooks/helper/anova.py | dpedrosac/DBSgait | 6df44cf975d43f9e932ef10144bfb7c1b5390b7b | [
"MIT"
] | 1 | 2021-09-29T05:53:38.000Z | 2021-09-29T05:53:38.000Z | analysis/notebooks/helper/anova.py | dpedrosac/DBSgait | 6df44cf975d43f9e932ef10144bfb7c1b5390b7b | [
"MIT"
] | null | null | null | analysis/notebooks/helper/anova.py | dpedrosac/DBSgait | 6df44cf975d43f9e932ef10144bfb7c1b5390b7b | [
"MIT"
] | 1 | 2021-09-22T08:48:47.000Z | 2021-09-22T08:48:47.000Z | import numpy as np
import pandas as pd
from scipy.stats import f_oneway
from typing import Dict, Tuple, Set
def extract_significant_p(df: pd.DataFrame, p_value_limit: float):
"""Return a df, which replaces values that are above p_value_limit with `None`"""
return (
df.loc(axis=1)[f"p-value"]
... | 36.34375 | 117 | 0.589209 |
d5ff5d19a2e1fbd8c3dcb000fc779bc359c47c61 | 2,251 | py | Python | bux_recorder/utils.py | roaldarbol/bux | 356817bbc7139c972d640c64fb8fcba27b70b3f7 | [
"MIT"
] | null | null | null | bux_recorder/utils.py | roaldarbol/bux | 356817bbc7139c972d640c64fb8fcba27b70b3f7 | [
"MIT"
] | 9 | 2021-12-09T18:07:25.000Z | 2022-03-30T23:22:45.000Z | bux_recorder/utils.py | roaldarbol/bux | 356817bbc7139c972d640c64fb8fcba27b70b3f7 | [
"MIT"
] | null | null | null | import os
import platform
import time
import csv
import serial
import cv2
import tkinter as tk
from tkinter.filedialog import askdirectory
from serial.tools import list_ports
# From https://raspberrypi.stackexchange.com/a/118473
def list_ports():
"""
Test the ports and returns a tuple with the available ports... | 30.835616 | 103 | 0.631719 |
d5fff25cf4828ce6ee852dfb013719288c2e6acf | 1,712 | py | Python | a2e/optimizer/hpbandster/_model_worker.py | maechler/a2e | c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00 | [
"MIT"
] | 1 | 2021-03-19T09:09:41.000Z | 2021-03-19T09:09:41.000Z | a2e/optimizer/hpbandster/_model_worker.py | maechler/a2e | c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00 | [
"MIT"
] | null | null | null | a2e/optimizer/hpbandster/_model_worker.py | maechler/a2e | c28f546ca5fc3fdb9c740ea5f0f85d2aca044a00 | [
"MIT"
] | null | null | null | from hpbandster.core.worker import Worker
from a2e.model import AbstractModel
from a2e.optimizer import EvaluationResultAggregator
from a2e.utility import inf_nan_to_float_max
| 31.703704 | 138 | 0.657126 |
9101c6f835f7bccd8700b747bc71f0d2474bb905 | 1,245 | py | Python | xagents/__init__.py | schissmantics/xagents | 04f1b96f767903c62138b7d63986f16edfe5f240 | [
"MIT"
] | 37 | 2021-08-05T16:31:54.000Z | 2022-01-16T11:49:46.000Z | xagents/__init__.py | schissmantics/xagents | 04f1b96f767903c62138b7d63986f16edfe5f240 | [
"MIT"
] | 1 | 2022-01-08T17:22:53.000Z | 2022-01-08T17:22:53.000Z | xagents/__init__.py | schissmantics/xagents | 04f1b96f767903c62138b7d63986f16edfe5f240 | [
"MIT"
] | 3 | 2021-08-13T06:25:22.000Z | 2021-08-20T01:37:15.000Z | from xagents import a2c, acer, ddpg, dqn, ppo, td3, trpo
from xagents.a2c.agent import A2C
from xagents.acer.agent import ACER
from xagents.base import OffPolicy
from xagents.ddpg.agent import DDPG
from xagents.dqn.agent import DQN
from xagents.ppo.agent import PPO
from xagents.td3.agent import TD3
from xagents.trpo.ag... | 30.365854 | 85 | 0.658635 |
910239e4d64bcd7a23fd58a2e98cbfc09b91c703 | 65 | py | Python | IsraeliQueue/__init__.py | YonLiud/Israeli-Queue | 53e14e68701c06efdd23ba6584a2e8a561e60cd9 | [
"MIT"
] | 2 | 2021-06-20T23:47:58.000Z | 2021-06-28T19:15:41.000Z | IsraeliQueue/__init__.py | YonLiud/Israeli-Queue | 53e14e68701c06efdd23ba6584a2e8a561e60cd9 | [
"MIT"
] | null | null | null | IsraeliQueue/__init__.py | YonLiud/Israeli-Queue | 53e14e68701c06efdd23ba6584a2e8a561e60cd9 | [
"MIT"
] | null | null | null | from .IsraeliQueue import IsraeliQueue, Item, IsraeliQueueByType
| 32.5 | 64 | 0.861538 |
91031df628ba0d6e12adf7ed9e0154be2d4256a3 | 3,794 | py | Python | examples/MMPT/mmpt_cli/localjob.py | Este1le/fairseq | 0fa073e0e0ddd90ff6850588e655c9566bb222ff | [
"MIT"
] | null | null | null | examples/MMPT/mmpt_cli/localjob.py | Este1le/fairseq | 0fa073e0e0ddd90ff6850588e655c9566bb222ff | [
"MIT"
] | null | null | null | examples/MMPT/mmpt_cli/localjob.py | Este1le/fairseq | 0fa073e0e0ddd90ff6850588e655c9566bb222ff | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from mmpt.utils import recursive_config
| 32.152542 | 120 | 0.524512 |
9103b4aa5d2e6a5156212d03a9f3245d1c26b5fe | 1,154 | py | Python | tron/Nubs/deprecated/tcc25m-old.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | tron/Nubs/deprecated/tcc25m-old.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | tron/Nubs/deprecated/tcc25m-old.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | import os.path
from tron import g, hub
from tron.Hub.Command.Encoders.ASCIICmdEncoder import ASCIICmdEncoder
from tron.Hub.Nub.TCCShellNub import TCCShellNub
from tron.Hub.Reply.Decoders.ASCIIReplyDecoder import ASCIIReplyDecoder
name = 'tcc'
| 25.644444 | 97 | 0.598787 |
91041f909c9548e67cfcf291bb438d3ff51c9d02 | 1,207 | py | Python | src/PtDb/test.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | 1 | 2020-02-17T08:18:29.000Z | 2020-02-17T08:18:29.000Z | src/PtDb/test.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | null | null | null | src/PtDb/test.py | ptphp/PyLib | 07ac99cf2deb725475f5771b123b9ea1375f5e65 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding=utf-8 -*-
'''
Created on 2013-3-31
@author: Joseph
'''
import PtDb
if __name__ == '__main__':
PtDb.config = {
'sqlite':{
'type':'sqlite',
'dbname':"data1.db"
},
... | 30.175 | 60 | 0.351284 |
9104cf33f9cb7c9a9e220cded851c4d2434c8d05 | 49,016 | py | Python | services/object_storage/tests/integ/test_object_storage_bulk_operations.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | services/object_storage/tests/integ/test_object_storage_bulk_operations.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | services/object_storage/tests/integ/test_object_storage_bulk_operations.py | honzajavorek/oci-cli | 6ea058afba323c6b3b70e98212ffaebb0d31985e | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
import filecmp
import json
import pytest
import oci
import services.object_storage.src.oci_cli_object_storage as oci_cli_object_storage
import os
import random
import shutil
import six
import string
from tests import util
fr... | 50.118609 | 275 | 0.718643 |
9104fd2a412765ae4aa352d6517c087a930d10a7 | 2,304 | py | Python | Extras/benchmark/simple-benchmark.py | yunhaom94/redis-writeanywhere | 1fefed820811fb89585b2b153d916c3b0fa507a6 | [
"BSD-3-Clause"
] | null | null | null | Extras/benchmark/simple-benchmark.py | yunhaom94/redis-writeanywhere | 1fefed820811fb89585b2b153d916c3b0fa507a6 | [
"BSD-3-Clause"
] | null | null | null | Extras/benchmark/simple-benchmark.py | yunhaom94/redis-writeanywhere | 1fefed820811fb89585b2b153d916c3b0fa507a6 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
import random
import string
import time
import subprocess
import os
import redis
import threading
def generate_string(string_size, size, dict):
'''
https://stackoverflow.com/questions/16308989/fastest-method-to-generate-big-random-string-with-lower-latin-letters
'''
for i in ran... | 22.368932 | 118 | 0.598524 |
910584bb0f10ffc80b6bcbf199bcc87aa47ac74d | 1,302 | py | Python | challenges/015-setintersection.py | Widdershin/CodeEval | c1c769363763d6f7e1ac5bf3707de2731c3bd926 | [
"MIT"
] | null | null | null | challenges/015-setintersection.py | Widdershin/CodeEval | c1c769363763d6f7e1ac5bf3707de2731c3bd926 | [
"MIT"
] | null | null | null | challenges/015-setintersection.py | Widdershin/CodeEval | c1c769363763d6f7e1ac5bf3707de2731c3bd926 | [
"MIT"
] | null | null | null | """
https://www.codeeval.com/browse/30/
Set Intersection
Challenge Description:
You are given two sorted list of numbers (ascending order). The lists
themselves are comma delimited and the two lists are semicolon
delimited. Print out the intersection of these two sets.
Input Sample:
File containin... | 20.666667 | 93 | 0.654378 |
9106509f9ec5a979f79cad4305026bbe9239af41 | 9,920 | py | Python | python/arch/api/table/session.py | GentleWang1011/eggroll | 417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c | [
"Apache-2.0"
] | 1 | 2020-10-23T03:18:54.000Z | 2020-10-23T03:18:54.000Z | python/arch/api/table/session.py | GentleWang1011/eggroll | 417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c | [
"Apache-2.0"
] | null | null | null | python/arch/api/table/session.py | GentleWang1011/eggroll | 417b029958e0e0ec6f0e1eb03d9ecdf4d5cff47c | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2019 The FATE Authors. 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 appli... | 39.055118 | 113 | 0.541431 |
91085824641d29cf6a64bb1d7961d3c8c9b1d9df | 10,481 | py | Python | experiments/vitchyr/vaes/learn_swirl_vae.py | Asap7772/rail-rl-franka-eval | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | [
"MIT"
] | null | null | null | experiments/vitchyr/vaes/learn_swirl_vae.py | Asap7772/rail-rl-franka-eval | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | [
"MIT"
] | null | null | null | experiments/vitchyr/vaes/learn_swirl_vae.py | Asap7772/rail-rl-franka-eval | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | [
"MIT"
] | null | null | null | """
VAE on the swirl task.
Basically, VAEs don't work. It's probably because the prior isn't very good
and/or because the learning signal is pretty weak when both the encoder and
decoder change quickly. However, I tried also alternating between the two,
and that didn't seem to help.
"""
from torch.distributions import... | 30.556851 | 100 | 0.621983 |
91087a71b49d992aa86f465838203ca33ae315a2 | 893 | py | Python | litex/build/openfpgaloader.py | JosephBushagour/litex | 2b49430f2c53c4a8caa66b678af4660127b546e4 | [
"ADSL"
] | null | null | null | litex/build/openfpgaloader.py | JosephBushagour/litex | 2b49430f2c53c4a8caa66b678af4660127b546e4 | [
"ADSL"
] | null | null | null | litex/build/openfpgaloader.py | JosephBushagour/litex | 2b49430f2c53c4a8caa66b678af4660127b546e4 | [
"ADSL"
] | null | null | null | #
# This file is part of LiteX.
#
# Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from litex.build.tools import write_to_file
from litex.build.generic_programmer import GenericProgrammer
# openFPGAloader --------------------------------------------------------... | 31.892857 | 107 | 0.603583 |
91095212fe94005bb0badaf0b1144da0c2a0e7f0 | 300 | py | Python | freehackquest_libclient_py/__init__.py | freehackquest/libfhqcli-py | 382242943047b63861aad0f41bb89c82e755963c | [
"Apache-2.0"
] | null | null | null | freehackquest_libclient_py/__init__.py | freehackquest/libfhqcli-py | 382242943047b63861aad0f41bb89c82e755963c | [
"Apache-2.0"
] | null | null | null | freehackquest_libclient_py/__init__.py | freehackquest/libfhqcli-py | 382242943047b63861aad0f41bb89c82e755963c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020-2021 FreeHackQuest Team <freehackquest@gmail.com>
"""This file was automatically generated by fhq-server
Version: v0.2.47
Date: 2022-01-01 07:15:35
"""
from freehackquest_libclient_py.freehackquest_client import FreeHackQuestClient
| 33.333333 | 79 | 0.77 |
9109df56e39b2986de46c0b2bc4cedc05e614932 | 5,234 | py | Python | exchange_sockets/bitstamp_websocket.py | SpiralDevelopment/crypto-hft-data | 205f01fd555eab4f636ffbb701dfcde53d27becc | [
"MIT"
] | 31 | 2020-07-20T14:11:39.000Z | 2022-03-17T03:18:33.000Z | exchange_sockets/bitstamp_websocket.py | SpiralDevelopment/crypto-hft-data | 205f01fd555eab4f636ffbb701dfcde53d27becc | [
"MIT"
] | null | null | null | exchange_sockets/bitstamp_websocket.py | SpiralDevelopment/crypto-hft-data | 205f01fd555eab4f636ffbb701dfcde53d27becc | [
"MIT"
] | 11 | 2020-07-20T14:11:52.000Z | 2022-03-14T04:20:19.000Z | from exchange_sockets.exchange_websocket import ExchangeWebSocket
from singletones.custom_logger import MyLogger
import websocket
import threading
from time import sleep
from time import time
import json
import ssl
logger = MyLogger()
| 35.364865 | 108 | 0.488154 |
910a76a4ae610e5e78371c5e387ad8044c415dcd | 2,509 | py | Python | src/data_loading.py | katerakelly/pytorch-maml | 75907aca148ad053dfaf75fc138319f0d89534a8 | [
"MIT"
] | 565 | 2017-08-29T02:02:30.000Z | 2022-03-28T13:44:55.000Z | src/data_loading.py | lolinkun/pytorch-maml | 75907aca148ad053dfaf75fc138319f0d89534a8 | [
"MIT"
] | 20 | 2017-10-23T02:19:51.000Z | 2021-06-02T07:17:28.000Z | src/data_loading.py | lolinkun/pytorch-maml | 75907aca148ad053dfaf75fc138319f0d89534a8 | [
"MIT"
] | 140 | 2017-09-09T09:18:15.000Z | 2022-03-28T04:15:26.000Z | import numpy as np
import random
import torch
from torch.utils.data import DataLoader
from torch.utils.data.sampler import Sampler
import torchvision.transforms as transforms
from dataset import Omniglot, MNIST
'''
Helpers for loading class-balanced few-shot tasks
from datasets
'''
| 39.825397 | 121 | 0.697489 |
910af5706d2a9981705d65b7f790c5595e73aa3e | 1,823 | py | Python | DoChaP-db/UnusedScripts/main.py | Tal-Shay-Group/DoChaP | e721c6742fdff5f771bb947d92fa6cf66831939a | [
"MIT"
] | 2 | 2021-05-28T04:59:17.000Z | 2021-09-03T13:25:40.000Z | DoChaP-db/UnusedScripts/main.py | Tal-Shay-Group/DoChaP | e721c6742fdff5f771bb947d92fa6cf66831939a | [
"MIT"
] | null | null | null | DoChaP-db/UnusedScripts/main.py | Tal-Shay-Group/DoChaP | e721c6742fdff5f771bb947d92fa6cf66831939a | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import os
sys.path.append(os.getcwd())
from Director import Director
from OrthologsBuilder import *
from SpeciesDB import *
if __name__ == "__main__":
inputDict = {}
for inarg in sys.argv[1:]:
try:
splitArg = inarg.strip("-").split("=")
if splitArg[... | 37.979167 | 106 | 0.638508 |
910b7a1f1887af22123d521897d29cfa202ce555 | 397 | py | Python | tests/constants.py | eigenein/sqlitemap | 25846178dee90cfe45a2bc951309301bc7f3694b | [
"MIT"
] | 4 | 2020-04-28T05:48:05.000Z | 2020-10-05T06:56:13.000Z | tests/constants.py | eigenein/sqlitemap | 25846178dee90cfe45a2bc951309301bc7f3694b | [
"MIT"
] | 1 | 2019-04-02T20:13:55.000Z | 2019-04-02T20:45:26.000Z | tests/constants.py | eigenein/sqlitemap | 25846178dee90cfe45a2bc951309301bc7f3694b | [
"MIT"
] | null | null | null | # See also: https://stackoverflow.com/questions/3694276/what-are-valid-table-names-in-sqlite
good_table_names = [
'foo',
'123abc',
'123abc.txt',
'123abc-ABC.txt',
'foo""bar',
'',
'_sqlite',
]
# See also: https://stackoverflow.com/questions/3694276/what-are-valid-table-names-in-sqlite
bad_ta... | 20.894737 | 92 | 0.622166 |
910ba6c11fb3b85edca95edcb1ac441727f03f60 | 16,258 | py | Python | TWLight/settings/base.py | amire80/TWLight | 063a385ea46c61a4889ba88e3fded4183c3a6bd3 | [
"MIT"
] | null | null | null | TWLight/settings/base.py | amire80/TWLight | 063a385ea46c61a4889ba88e3fded4183c3a6bd3 | [
"MIT"
] | 56 | 2021-07-03T12:34:47.000Z | 2022-03-29T12:20:08.000Z | TWLight/settings/base.py | amire80/TWLight | 063a385ea46c61a4889ba88e3fded4183c3a6bd3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Base settings for twlight project.
This is not intended to be used as the live settings file for a project and will
not work as one. You should instead use production.py, local.py, heroku.py, or
another file that you write. These files should live in the settings directory;
start with 'from... | 35.969027 | 165 | 0.60807 |
910c31b853b8a837a994aa06e68742ed3449818b | 19,836 | py | Python | modelator_py/util/tla/_optable.py | informalsystems/modelator-py | d66464096c022799e680e6201590a2ead69be32d | [
"Apache-2.0"
] | null | null | null | modelator_py/util/tla/_optable.py | informalsystems/modelator-py | d66464096c022799e680e6201590a2ead69be32d | [
"Apache-2.0"
] | 3 | 2022-03-30T16:01:49.000Z | 2022-03-31T13:40:03.000Z | modelator_py/util/tla/_optable.py | informalsystems/modelator-py | d66464096c022799e680e6201590a2ead69be32d | [
"Apache-2.0"
] | null | null | null | """Table of operators."""
# Copyright 2020 by California Institute of Technology
# Copyright (c) 2008-2013 INRIA and Microsoft Corporation
# All rights reserved. Licensed under 3-clause BSD.
#
# This module is based on the file:
#
# <https://github.com/tlaplus/tlapm/blob/main/src/optable.ml>
#
import pprint
from .ast... | 41.497908 | 87 | 0.354658 |
910cebe2f9c8f06e688c3bb7c05c5907ea9954d5 | 40,599 | py | Python | DIE/UI/FunctionViewEx.py | a1ext/DIE | 1a3a19f016f44cf611847ce4f0d126b136040cb6 | [
"MIT"
] | 5 | 2017-05-17T21:53:46.000Z | 2019-07-12T20:05:20.000Z | DIE/UI/FunctionViewEx.py | a1ext/DIE | 1a3a19f016f44cf611847ce4f0d126b136040cb6 | [
"MIT"
] | null | null | null | DIE/UI/FunctionViewEx.py | a1ext/DIE | 1a3a19f016f44cf611847ce4f0d126b136040cb6 | [
"MIT"
] | 1 | 2020-03-15T21:25:14.000Z | 2020-03-15T21:25:14.000Z | import networkx as nx
from awesome.context import ignored
import sark
import idaapi
import idautils
import idc
from idaapi import PluginForm
from sark.qt import QtGui, QtCore, QtWidgets, form_to_widget, use_qt5
if use_qt5:
_QSortFilterProxyModel = QtCore.QSortFilterProxyModel
_MatchRecursive = QtC... | 40.885196 | 176 | 0.610828 |
910e142fb045682f0db143a5a746598a72de10d6 | 1,103 | py | Python | peerbot/PeerBot.py | danerprog/PeerHostedDiscordBot | 310467d8f123826a20ed92174666beb46fe35d02 | [
"Apache-2.0"
] | null | null | null | peerbot/PeerBot.py | danerprog/PeerHostedDiscordBot | 310467d8f123826a20ed92174666beb46fe35d02 | [
"Apache-2.0"
] | null | null | null | peerbot/PeerBot.py | danerprog/PeerHostedDiscordBot | 310467d8f123826a20ed92174666beb46fe35d02 | [
"Apache-2.0"
] | null | null | null | from peerbot.PeerBotStateMachine import PeerBotStateMachine
from utils.Logger import Logger
import discord | 34.46875 | 91 | 0.637353 |
910ef698981e05b36f0d36710e6f745c6eeb2055 | 3,017 | py | Python | dags/oss_know/oss_know_dags/dags_github/dag_github_init_issues_timeline.py | ynang/airflow-jobs-1 | 857e9dfbc2444dc1d23dd2b0463fe89108f01b89 | [
"Apache-2.0"
] | 4 | 2022-01-24T11:27:39.000Z | 2022-02-25T11:44:10.000Z | dags/oss_know/oss_know_dags/dags_github/dag_github_init_issues_timeline.py | linruoma/airflow-jobs-1 | 25d3996c6d11ee2d8f93ff2b73abcf83da986804 | [
"Apache-2.0"
] | 13 | 2021-12-17T12:14:11.000Z | 2022-02-24T07:01:08.000Z | dags/oss_know/oss_know_dags/dags_github/dag_github_init_issues_timeline.py | linruoma/airflow-jobs-1 | 25d3996c6d11ee2d8f93ff2b73abcf83da986804 | [
"Apache-2.0"
] | 13 | 2022-01-19T09:30:03.000Z | 2022-03-02T10:45:07.000Z | from datetime import datetime
from airflow import DAG
from airflow.operators.python import PythonOperator
# v0.0.1
from oss_know.libs.base_dict.variable_key import NEED_INIT_GITHUB_ISSUES_TIMELINE_REPOS, GITHUB_TOKENS, \
OPENSEARCH_CONN_DATA, PROXY_CONFS
from oss_know.libs.util.proxy import KuaiProxyService, Prox... | 40.226667 | 111 | 0.705668 |
9111781e785cdbf0e4af0d7fe8d43c637a7447e2 | 126 | py | Python | conans/conan.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 2 | 2019-01-09T10:01:29.000Z | 2019-01-09T10:01:31.000Z | conans/conan.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 6 | 2016-03-08T22:06:45.000Z | 2020-06-02T15:22:19.000Z | conans/conan.py | laundry-96/conan | fd938f7220ca042d94c42ec5eb607ee69c6785a3 | [
"MIT"
] | 2 | 2019-08-07T18:15:16.000Z | 2021-08-04T12:33:05.000Z | import sys
from conans.client.command import main
if __name__ == '__main__':
run()
| 10.5 | 38 | 0.642857 |
9111af8dea9204ecc79252d0615a08b9fa56ab3b | 4,998 | py | Python | tests/apps/persons/test_cms_plugins_person.py | lunika/richie | b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f | [
"MIT"
] | null | null | null | tests/apps/persons/test_cms_plugins_person.py | lunika/richie | b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f | [
"MIT"
] | null | null | null | tests/apps/persons/test_cms_plugins_person.py | lunika/richie | b0b04d0ffc0b16f2f1b8a8201418b8f86941e45f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Unit tests for the Person plugin and its model
"""
from django import forms
from django.conf import settings
from django.test import TestCase
from cms.api import add_plugin, create_page
from cmsplugin_plain_text.cms_plugins import PlaintextPlugin
from djangocms_picture.cms_plugins import Pi... | 36.75 | 91 | 0.62585 |
91124d593f9dcda3e366e95378c8d482f7f013ee | 9,295 | py | Python | mathics/core/subexpression.py | Mathics3/mathics-core | 54dc3c00a42cd893c6430054e125291b6eb55ead | [
"Apache-2.0"
] | 90 | 2021-09-11T14:14:00.000Z | 2022-03-29T02:08:29.000Z | mathics/core/subexpression.py | Mathics3/mathics-core | 54dc3c00a42cd893c6430054e125291b6eb55ead | [
"Apache-2.0"
] | 187 | 2021-09-13T01:00:41.000Z | 2022-03-31T11:52:52.000Z | mathics/core/subexpression.py | Mathics3/mathics-core | 54dc3c00a42cd893c6430054e125291b6eb55ead | [
"Apache-2.0"
] | 10 | 2021-10-05T15:44:26.000Z | 2022-03-21T12:34:33.000Z | # cython: language_level=3
# -*- coding: utf-8 -*-
from mathics.core.expression import Expression
from mathics.core.symbols import Atom, Symbol
from mathics.core.atoms import Integer
from mathics.builtin.base import MessageException
"""
This module provides some infrastructure to deal with SubExpressions.
"""
def... | 30.276873 | 94 | 0.563636 |
911286f14d1a282acaf40a71af59fdf1cfb8d6e8 | 901 | py | Python | pyopenproject/business/services/command/configuration/find.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/configuration/find.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/configuration/find.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.get_request import GetRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.configuration.configuration_command import Co... | 39.173913 | 108 | 0.760266 |
9112d9a09ef3e419ea9c838421fb6d27323a5f4c | 1,960 | py | Python | lib/python/treadmill/tests/api/cell_test.py | vrautela/treadmill | 05e47fa8acdf8bad7af78e737efb26ea6488de82 | [
"Apache-2.0"
] | 1 | 2019-04-14T20:17:07.000Z | 2019-04-14T20:17:07.000Z | lib/python/treadmill/tests/api/cell_test.py | vrautela/treadmill | 05e47fa8acdf8bad7af78e737efb26ea6488de82 | [
"Apache-2.0"
] | 1 | 2017-09-18T10:36:12.000Z | 2017-09-18T10:36:12.000Z | lib/python/treadmill/tests/api/cell_test.py | evreng/treadmill | 05e47fa8acdf8bad7af78e737efb26ea6488de82 | [
"Apache-2.0"
] | null | null | null | """Cell API tests.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
import mock
from treadmill import admin
from treadmill.api import cell
if __name__ == '__main__':
unittest.main()
| 32.131148 | 72 | 0.628061 |
91150271775e1bcf188908a5352023d285ea5e40 | 363 | py | Python | src/python_package/__init__.py | microsoft/ai-python-package | 770f5167ebc32b5410739f04c5730e68f84785c9 | [
"MIT"
] | 3 | 2021-12-11T17:02:56.000Z | 2022-02-23T19:45:35.000Z | src/python_package/__init__.py | microsoft/ai-python-package | 770f5167ebc32b5410739f04c5730e68f84785c9 | [
"MIT"
] | 5 | 2022-03-24T13:21:21.000Z | 2022-03-31T13:21:39.000Z | src/python_package/__init__.py | microsoft/python-package-template | 770f5167ebc32b5410739f04c5730e68f84785c9 | [
"MIT"
] | null | null | null | # -------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in project root for information.
# -------------------------------------------------------------
"""Python Package Template"""
from __future__... | 40.333333 | 80 | 0.484848 |
9116473055c5bd072ad59a444dc826781f8a2c35 | 2,387 | py | Python | tests/test_integration_partition.py | themoodymann/piChain | 4de9e8da3994901371713b68bc05295fe6676571 | [
"MIT"
] | 8 | 2018-02-22T08:52:26.000Z | 2022-02-01T01:28:29.000Z | tests/test_integration_partition.py | themoodymann/piChain | 4de9e8da3994901371713b68bc05295fe6676571 | [
"MIT"
] | 3 | 2018-03-07T18:13:53.000Z | 2019-12-03T23:42:42.000Z | tests/test_integration_partition.py | florianmorath/piChain | df498021cb7c2df26a7980fb85b795f4a0105faf | [
"MIT"
] | 7 | 2018-02-26T12:28:34.000Z | 2021-01-01T11:33:59.000Z | """Integration test: Test partition of piChain nodes.
Note: run tests with default setting values in config.py.
"""
import time
from tests.util import MultiNodeTest
| 38.5 | 70 | 0.735233 |
9116cf95f3505891c20808a9297cb4047c9dcb7a | 776 | py | Python | sandbox/pdp2/arbitrary_data/zip_files.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | 3 | 2021-04-17T10:20:26.000Z | 2022-03-08T07:36:13.000Z | sandbox/pdp2/arbitrary_data/zip_files.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | null | null | null | sandbox/pdp2/arbitrary_data/zip_files.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | null | null | null | import zipfile
import random
RAND_INT_RANGE = (1,100)
fnames = []
for i in range(10):
fname = 'file' + str(i) + '.txt'
wrf(fname)
fnames.append(fname)
dirpaths = set()
with zipfile.ZipFile('myzip.zip', 'w', compression=zipfile.ZIP_DEFLATED) as zf:
for fname in fnames:
dirpath = '/dirpath'+st... | 26.758621 | 79 | 0.636598 |
911750f22693957597b2ca1cf0ab39d191230dfc | 1,497 | py | Python | tests/testproject/testproject/tests/test_middleware.py | mwesterhof/wagtail_managed404 | a961271c7fc70accb43ec329da9defe36e3dab3c | [
"MIT"
] | 1 | 2021-03-11T10:06:04.000Z | 2021-03-11T10:06:04.000Z | tests/testproject/testproject/tests/test_middleware.py | mwesterhof/wagtail_managed404 | a961271c7fc70accb43ec329da9defe36e3dab3c | [
"MIT"
] | null | null | null | tests/testproject/testproject/tests/test_middleware.py | mwesterhof/wagtail_managed404 | a961271c7fc70accb43ec329da9defe36e3dab3c | [
"MIT"
] | null | null | null | import unittest
from django.test import Client
from wagtail.core.models import Page
from wagtail_managed404.models import PageNotFoundEntry
| 34.022727 | 76 | 0.706079 |
91179c358fa25c39a2ad4c7490688913f5e6e658 | 24 | py | Python | src/reversion/version.py | maraujop/django-reversion | c9e7788ca858d3c75b617a7277ffcd177a19d414 | [
"BSD-3-Clause"
] | null | null | null | src/reversion/version.py | maraujop/django-reversion | c9e7788ca858d3c75b617a7277ffcd177a19d414 | [
"BSD-3-Clause"
] | null | null | null | src/reversion/version.py | maraujop/django-reversion | c9e7788ca858d3c75b617a7277ffcd177a19d414 | [
"BSD-3-Clause"
] | null | null | null | __version__ = (1, 8, 5)
| 12 | 23 | 0.583333 |
911891456d9e7cb41632224dd81128e9e0fa9e6b | 2,776 | py | Python | observations/r/bomsoi.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/bomsoi.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/bomsoi.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def bomsoi(path):
"""Southern Oscillation Index Data
The Southern Osci... | 22.942149 | 74 | 0.699207 |
9118ae0e8ce4a6964c33407d1f9bb269a5f81229 | 948 | py | Python | openpype/hosts/houdini/plugins/publish/validate_bypass.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/hosts/houdini/plugins/publish/validate_bypass.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/hosts/houdini/plugins/publish/validate_bypass.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | import pyblish.api
import openpype.api
| 27.085714 | 78 | 0.632911 |
9119b7e105152a68ddb6c7704cd3d58179e633e6 | 4,687 | py | Python | gavPrj/dataset_core.py | GavinK-ai/cv | 6dd11b2100c40aca281508c3821c807ef0ee227d | [
"MIT"
] | 1 | 2021-11-15T06:16:44.000Z | 2021-11-15T06:16:44.000Z | gavPrj/dataset_core.py | JKai96/cv | 6dd11b2100c40aca281508c3821c807ef0ee227d | [
"MIT"
] | null | null | null | gavPrj/dataset_core.py | JKai96/cv | 6dd11b2100c40aca281508c3821c807ef0ee227d | [
"MIT"
] | null | null | null | import os
import cv2 as cv
import matplotlib.pyplot as plt
import numpy as np
#srcPaths = ('dataset/Screenshot1','dataset/Screenshot2','dataset/Screenshot3', 'dataset/Screenshot4')
#srcPaths = ('all_dataset/s1',
# 'all_dataset/s10',
# 'all_dataset/s11',
# 'all_dataset/s12',
... | 26.331461 | 128 | 0.528056 |
911a60720a34ab009d3e5702a34a60c445eb65cc | 5,827 | py | Python | kronos/kronos.py | jinified/kronos | 1f110372a025d28ccc407372320491ee818c893d | [
"MIT"
] | null | null | null | kronos/kronos.py | jinified/kronos | 1f110372a025d28ccc407372320491ee818c893d | [
"MIT"
] | null | null | null | kronos/kronos.py | jinified/kronos | 1f110372a025d28ccc407372320491ee818c893d | [
"MIT"
] | null | null | null | """
Kronos: A simple scheduler for graduate training programme
Entities: User, Schedule, Rotation
"""
from operator import itemgetter
from datetime import datetime, timedelta
def getRotationCapacity(rotationId, startDate, endDate, assignments):
""" Calculate number of users assigned to a particular rotation dur... | 33.107955 | 97 | 0.60151 |
911aa9326eb51bb9ac375b836bec89f414a26904 | 2,384 | py | Python | personal_env/lib/python3.8/site-packages/pylint/lint/utils.py | jestinmwilson/personal-website | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | [
"MIT"
] | null | null | null | personal_env/lib/python3.8/site-packages/pylint/lint/utils.py | jestinmwilson/personal-website | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | [
"MIT"
] | null | null | null | personal_env/lib/python3.8/site-packages/pylint/lint/utils.py | jestinmwilson/personal-website | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | [
"MIT"
] | null | null | null | # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
import contextlib
import sys
from pylint.utils import utils
def preprocess_options(args, search_for):
"""look for some options (keys of <search_for>) wh... | 30.961039 | 81 | 0.557047 |
911ae3a32af48a82692eb10be784caaac6d3d48a | 4,847 | py | Python | mol_dqn/experimental/multi_obj.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | mol_dqn/experimental/multi_obj.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | mol_dqn/experimental/multi_obj.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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 applicab... | 30.484277 | 78 | 0.704766 |
911b8570dbe4dd13160970c51c2cd287f8cc9dae | 4,147 | py | Python | myuw/test/views/test_rest_search.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 18 | 2015-02-04T01:09:11.000Z | 2021-11-25T03:10:39.000Z | myuw/test/views/test_rest_search.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 2,323 | 2015-01-15T19:45:10.000Z | 2022-03-21T19:57:06.000Z | myuw/test/views/test_rest_search.py | uw-it-aca/myuw | 3fa1fabeb3c09d81a049f7c1a8c94092d612438a | [
"Apache-2.0"
] | 9 | 2015-01-15T19:29:26.000Z | 2022-02-11T04:51:23.000Z | # Copyright 2021 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
from django.test.utils import override_settings
from django.urls import reverse
from myuw.test.api import MyuwApiTest
| 39.875 | 77 | 0.613214 |
911c431b68da1378ffaf6b7b804e393825322dec | 1,770 | py | Python | examples/cli-solver/cli_solver.py | danagle/boggled | 13fea4c31b5dff72093c38d1ad368dec9d44f4d0 | [
"MIT"
] | null | null | null | examples/cli-solver/cli_solver.py | danagle/boggled | 13fea4c31b5dff72093c38d1ad368dec9d44f4d0 | [
"MIT"
] | null | null | null | examples/cli-solver/cli_solver.py | danagle/boggled | 13fea4c31b5dff72093c38d1ad368dec9d44f4d0 | [
"MIT"
] | null | null | null | # cli_solver.py
import argparse
import os
from boggled import BoggleBoard, BoggleSolver, BoggleWords
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("letters", type=str,
help="Board letters")
parser.add_argument("dictionary", type=str,
... | 30 | 82 | 0.589266 |
911cc6fdfec9f96a292bbbfc6b3b0ac51752840f | 45,086 | py | Python | src/wepy/orchestration/orchestrator.py | gitter-badger/wepy-1 | 9bc619aeae178ad5d10f658fae2abfd2c7aeb18a | [
"MIT"
] | 35 | 2017-08-22T15:39:06.000Z | 2022-03-20T15:17:52.000Z | src/wepy/orchestration/orchestrator.py | gitter-badger/wepy-1 | 9bc619aeae178ad5d10f658fae2abfd2c7aeb18a | [
"MIT"
] | 33 | 2017-10-02T22:04:45.000Z | 2022-03-02T22:19:08.000Z | src/wepy/orchestration/orchestrator.py | stxinsite/wepy | 352d4c1316b20e839aae8824eedd66f0f2d0b456 | [
"MIT"
] | 17 | 2018-07-14T15:33:30.000Z | 2022-01-18T16:30:55.000Z | from copy import copy, deepcopy
import sqlite3
from hashlib import md5
import time
import os
import os.path as osp
from base64 import b64encode, b64decode
from zlib import compress, decompress
import itertools as it
import logging
# instead of pickle we use dill, so we can save dynamically defined
# classes
import dil... | 32.319713 | 125 | 0.595883 |
911d2626da51dec7964f3f20d1a80f93b2a0e8f3 | 2,681 | py | Python | src/generate_class_specific_samples.py | HesterLim/pytorch-cnn-visualizations | 59ddf0ef6ea2c9d4d69c1ac6b260cb399867d178 | [
"MIT"
] | 6,725 | 2017-10-25T08:00:25.000Z | 2022-03-31T15:25:46.000Z | src/generate_class_specific_samples.py | woojoo99/pytorch-cnn-visualizations | 16eddfa055a9c618ba548e9fb4529e2ccbc79c35 | [
"MIT"
] | 105 | 2017-11-26T11:59:24.000Z | 2022-01-11T01:37:00.000Z | src/generate_class_specific_samples.py | woojoo99/pytorch-cnn-visualizations | 16eddfa055a9c618ba548e9fb4529e2ccbc79c35 | [
"MIT"
] | 1,419 | 2017-10-25T08:00:27.000Z | 2022-03-30T08:28:35.000Z | """
Created on Thu Oct 26 14:19:44 2017
@author: Utku Ozbulak - github.com/utkuozbulak
"""
import os
import numpy as np
import torch
from torch.optim import SGD
from torchvision import models
from misc_functions import preprocess_image, recreate_image, save_image
if __name__ == '__main__':
target_class = 130 ... | 34.818182 | 125 | 0.613577 |
911d31b9a8a7937bf3f3cbbfb6a83e53d58e13d7 | 16,673 | py | Python | sumo/tools/net/visum_mapDistricts.py | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/tools/net/visum_mapDistricts.py | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/tools/net/visum_mapDistricts.py | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | 2 | 2017-12-14T16:41:59.000Z | 2020-10-16T17:51:27.000Z | #!/usr/bin/env python
"""
@file visum_mapDistricts.py
@author Daniel Krajzewicz
@author Michael Behrisch
@date 2007-10-25
@version $Id$
This script reads a network and a dump file and
draws the network, coloring it by the values
found within the dump-file.
SUMO, Simulation of Urban MObility; see http://sum... | 33.346 | 138 | 0.537156 |
911d404601c245497e0b927e48a8d554d335993b | 42,222 | py | Python | BKPMediaDetector.py | bkpifc/BKPMediaDetector | 51858b45e218e0c4b5ed4d6aac6d751e029d850e | [
"Apache-2.0"
] | 5 | 2019-04-03T08:04:06.000Z | 2019-10-01T12:08:30.000Z | BKPMediaDetector.py | bkpifc/BKPMediaDetector | 51858b45e218e0c4b5ed4d6aac6d751e029d850e | [
"Apache-2.0"
] | 13 | 2019-04-08T14:24:15.000Z | 2022-03-11T23:50:32.000Z | BKPMediaDetector.py | bkpifc/BKPMediaDetector | 51858b45e218e0c4b5ed4d6aac6d751e029d850e | [
"Apache-2.0"
] | 2 | 2019-04-04T11:20:27.000Z | 2019-04-04T14:51:11.000Z | #!/usr/bin/env python3
######
# General Detector
# 06.12.2018 / Last Update: 20.05.2021
# LRB
######
import numpy as np
import os
import sys
import tensorflow as tf
import hashlib
import cv2
import magic
import PySimpleGUI as sg
import csv
import imagehash
import face_recognition
import subprocess
from itertools impo... | 40.676301 | 238 | 0.613093 |
911e4f54a8e9fbbfd53aa376d04e2f253bbddbd8 | 2,252 | py | Python | src/BruteForce.py | stevenwalton/Retro-Learner | 74586c57b5dd5f6e82abaff99344285731f1fc56 | [
"MIT"
] | null | null | null | src/BruteForce.py | stevenwalton/Retro-Learner | 74586c57b5dd5f6e82abaff99344285731f1fc56 | [
"MIT"
] | null | null | null | src/BruteForce.py | stevenwalton/Retro-Learner | 74586c57b5dd5f6e82abaff99344285731f1fc56 | [
"MIT"
] | null | null | null | import time
import retro
import FrameSkip
import TimeLimit
import Brute
| 34.121212 | 98 | 0.525311 |
911fe80423c3725cffb5c649027000c3b8755a5f | 5,429 | py | Python | tutorials/04-advanced/03-super-resolution-onnx/main.py | yakhyo/PyTorch-Tutorials | 163287bc735b09c366dbdfa3989e81acaef6fa1f | [
"MIT"
] | 7 | 2021-05-16T14:36:20.000Z | 2021-12-30T07:07:31.000Z | tutorials/04-advanced/03-super-resolution-onnx/main.py | yakhyo/PyTorch-Tutorials | 163287bc735b09c366dbdfa3989e81acaef6fa1f | [
"MIT"
] | null | null | null | tutorials/04-advanced/03-super-resolution-onnx/main.py | yakhyo/PyTorch-Tutorials | 163287bc735b09c366dbdfa3989e81acaef6fa1f | [
"MIT"
] | 3 | 2021-05-17T12:11:11.000Z | 2021-11-25T10:06:14.000Z | import io
import numpy as np
import torch.utils.model_zoo as model_zoo
import torch.onnx
import torch.nn as nn
import torch.nn.init as init
# ================================================================ #
# Building the Model #
# ====================================... | 40.514925 | 120 | 0.592374 |
91209eac140dfeb3483e2df389892eaa71a76d66 | 8,963 | py | Python | features/steps/section.py | revvsales/python-docx-1 | 5b3ff2b828cc30f1567cb1682a8cb399143732d7 | [
"MIT"
] | 3,031 | 2015-01-02T11:11:24.000Z | 2022-03-30T00:57:17.000Z | features/steps/section.py | revvsales/python-docx-1 | 5b3ff2b828cc30f1567cb1682a8cb399143732d7 | [
"MIT"
] | 934 | 2015-01-06T20:53:56.000Z | 2022-03-28T10:08:03.000Z | features/steps/section.py | revvsales/python-docx-1 | 5b3ff2b828cc30f1567cb1682a8cb399143732d7 | [
"MIT"
] | 901 | 2015-01-07T18:22:07.000Z | 2022-03-31T18:38:51.000Z | # encoding: utf-8
"""
Step implementations for section-related features
"""
from __future__ import absolute_import, print_function, unicode_literals
from behave import given, then, when
from docx import Document
from docx.enum.section import WD_ORIENT, WD_SECTION
from docx.section import Section
from docx.shared im... | 34.340996 | 88 | 0.716278 |
9120d4c7c58950a1c79165874f5716c1d3e76e4c | 4,421 | py | Python | scipy/sparse/csgraph/_laplacian.py | seberg/scipy | d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e | [
"BSD-3-Clause"
] | 1 | 2018-10-04T15:34:14.000Z | 2018-10-04T15:34:14.000Z | scipy/sparse/csgraph/_laplacian.py | seberg/scipy | d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e | [
"BSD-3-Clause"
] | null | null | null | scipy/sparse/csgraph/_laplacian.py | seberg/scipy | d8081cdd40ed8cbebd5905c0ad6c323c57d5da6e | [
"BSD-3-Clause"
] | null | null | null | """
Laplacian of a compressed-sparse graph
"""
# Authors: Aric Hagberg <hagberg@lanl.gov>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Jake Vanderplas <vanderplas@astro.washington.edu>
# License: BSD
import numpy as np
from scipy.sparse import isspmatrix, coo_matrix
#########################... | 32.507353 | 86 | 0.570007 |
9120f5bc8f814b4692efc7406b81c0fe8103d83e | 7,225 | py | Python | samples/barebone/settings.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | 1 | 2018-10-12T15:12:15.000Z | 2018-10-12T15:12:15.000Z | samples/barebone/settings.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | null | null | null | samples/barebone/settings.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | null | null | null | import os
import logging
from collections import namedtuple
from Crypto.PublicKey import RSA
from tornado import gen
from tornado import concurrent
from cosmos.rbac.object import *
from cosmos.service import OBSERVER_PROCESSOR
DEBUG = True
DB_HOST = "127.0.0.1"
DB_NAME = "cosmos"
DB_PORT = 27017
DB_USER_NAME = None
... | 47.847682 | 1,732 | 0.800969 |
9123424991c5403f506995b73c11800e6232bbeb | 274 | py | Python | zilean/system/zilean_migrator.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_migrator.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | zilean/system/zilean_migrator.py | A-Hilaly/zilean | 2b2e87969a0d8064e8b92b07c346a4006f93c795 | [
"Apache-2.0"
] | null | null | null | from .utils.migrations import (migrate_database_from,
migrate_machine_from,
zilean_rollback_database_backup,
zilean_rollback_machine_backup)
| 34.25 | 63 | 0.569343 |
912495f93184573b9203df22fc8bb27548652827 | 14,605 | py | Python | coltran/run.py | DionysisChristopoulos/google-research | 7f59ef421beef32ca16c2a7215be74f7eba01a0f | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | coltran/run.py | DionysisChristopoulos/google-research | 7f59ef421beef32ca16c2a7215be74f7eba01a0f | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | coltran/run.py | admariner/google-research | 7cee4b22b925581d912e8d993625c180da2a5a4f | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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 applicab... | 34.940191 | 135 | 0.692503 |