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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4667c374455b11e101ec3e8d25bd29cd21c3a81 | 3,965 | py | Python | tests/downloader_test.py | jkawamoto/roadie-gcp | 96394a47d375bd01e167f351fc86a03905e98395 | [
"MIT"
] | 1 | 2018-09-20T01:51:23.000Z | 2018-09-20T01:51:23.000Z | tests/downloader_test.py | jkawamoto/roadie-gcp | 96394a47d375bd01e167f351fc86a03905e98395 | [
"MIT"
] | 9 | 2016-01-31T11:28:12.000Z | 2021-04-30T20:43:39.000Z | tests/downloader_test.py | jkawamoto/roadie-gcp | 96394a47d375bd01e167f351fc86a03905e98395 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
#
# downloader_test.py
#
# Copyright (c) 2015-2016 Junpei Kawamoto
#
# This software is released under the MIT License.
#
# http://opensource.org/licenses/mit-license.php
#
""" Test for downloader module.
"""
import logging
import shutil
import sys
import unittest
import os
from os import path
im... | 30.037879 | 95 | 0.642371 |
c466ca50010615bb02d62529ff22d41f7530666b | 1,800 | py | Python | ticle/plotters/plot_phase.py | muma7490/TICLE | bffa64ee488abac17809d02dfc176fe80128541a | [
"MIT"
] | null | null | null | ticle/plotters/plot_phase.py | muma7490/TICLE | bffa64ee488abac17809d02dfc176fe80128541a | [
"MIT"
] | null | null | null | ticle/plotters/plot_phase.py | muma7490/TICLE | bffa64ee488abac17809d02dfc176fe80128541a | [
"MIT"
] | null | null | null | import matplotlib.pyplot as pl
import os
import numpy as np
from ticle.data.dataHandler import normalizeData,load_file
from ticle.analysis.analysis import get_phases,normalize_phase
pl.rc('xtick', labelsize='x-small')
pl.rc('ytick', labelsize='x-small')
pl.rc('font', family='serif')
pl.rcParams.update({'font.size': 2... | 27.692308 | 82 | 0.648889 |
c467d3e82cd1949de48c0e1eac654f4ecca276b3 | 7,267 | py | Python | src/putil/rabbitmq/rabbit_util.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 2 | 2015-10-05T20:36:35.000Z | 2018-11-21T11:45:24.000Z | src/putil/rabbitmq/rabbit_util.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 21 | 2015-03-18T14:39:32.000Z | 2016-07-01T17:16:29.000Z | src/putil/rabbitmq/rabbit_util.py | scionrep/scioncc_new | 086be085b69711ee24c4c86ed42f2109ca0db027 | [
"BSD-2-Clause"
] | 12 | 2015-03-18T10:53:49.000Z | 2018-06-21T11:19:57.000Z | #!/usr/bin/python
import shlex
import simplejson
from putil.rabbitmq.rabbitmqadmin import Management, make_parser, LISTABLE, DELETABLE
# TODO: Move the management calls from pyon.ion.exchange here
# -------------------------------------------------------------------------
# Helpers
# This functi... | 42.00578 | 126 | 0.610706 |
c4692b2cd0fdba89e13d15c53467b6b2f916be48 | 5,362 | py | Python | gaternet/main.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-13T21:48:52.000Z | 2022-03-13T21:48:52.000Z | gaternet/main.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | gaternet/main.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 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... | 35.276316 | 79 | 0.693398 |
c46ae74020d50b1e15aaa99acf255cf154208cb8 | 251 | pyw | Python | client.pyw | thatfuckingbird/hydrus-websocket-server | b55454740dca5101448bf92224432f8bdbec7e77 | [
"WTFPL"
] | 1,417 | 2015-01-22T00:50:30.000Z | 2022-03-30T18:44:55.000Z | client.pyw | thatfuckingbird/hydrus-websocket-server | b55454740dca5101448bf92224432f8bdbec7e77 | [
"WTFPL"
] | 975 | 2015-01-05T01:41:40.000Z | 2022-03-31T06:01:50.000Z | client.pyw | thatfuckingbird/hydrus-websocket-server | b55454740dca5101448bf92224432f8bdbec7e77 | [
"WTFPL"
] | 163 | 2015-02-04T13:09:35.000Z | 2022-03-23T01:00:05.000Z | #!/usr/bin/env python3
# Hydrus is released under WTFPL
# You just DO WHAT THE FUCK YOU WANT TO.
# https://github.com/sirkris/WTFPL/blob/master/WTFPL.md
from hydrus import hydrus_client
if __name__ == '__main__':
hydrus_client.boot()
| 19.307692 | 55 | 0.709163 |
c46b9bf38daa8aa62af17faaff944dc07ddd1de9 | 5,776 | py | Python | fixEngine/fixEngine.py | HNGlez/ExchangeConnector | 5176437963a3e9e671bb059c599c79f39439f4d4 | [
"MIT"
] | null | null | null | fixEngine/fixEngine.py | HNGlez/ExchangeConnector | 5176437963a3e9e671bb059c599c79f39439f4d4 | [
"MIT"
] | null | null | null | fixEngine/fixEngine.py | HNGlez/ExchangeConnector | 5176437963a3e9e671bb059c599c79f39439f4d4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
ExchangeConnector fixEngine
Copyright (c) 2020 Hugo Nistal Gonzalez
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, includi... | 46.208 | 179 | 0.691136 |
c46bcfd7797c21307852fe37265fa68fac0dbbc3 | 570 | py | Python | plugins/session_list/views.py | farazkhanfk7/ajenti | ff51635bea0d29bf9f35dd7912f145398040541d | [
"MIT"
] | 1 | 2021-04-27T07:16:01.000Z | 2021-04-27T07:16:01.000Z | plugins/session_list/views.py | farazkhanfk7/ajenti | ff51635bea0d29bf9f35dd7912f145398040541d | [
"MIT"
] | null | null | null | plugins/session_list/views.py | farazkhanfk7/ajenti | ff51635bea0d29bf9f35dd7912f145398040541d | [
"MIT"
] | null | null | null | from jadi import component
from aj.api.http import url, HttpPlugin
from aj.auth import authorize
from aj.api.endpoint import endpoint, EndpointError
import aj
import gevent
| 25.909091 | 53 | 0.687719 |
c46cb76d02d71b063cedf52c09eb7f327cd308da | 10,606 | py | Python | now/collection/prov_execution/argument_captors.py | CrystalMei/Prov_Build | 695576c36b7d5615f1cc568954658f8a7ce9eeba | [
"MIT"
] | 2 | 2017-11-10T16:17:11.000Z | 2021-12-19T18:43:22.000Z | now/collection/prov_execution/argument_captors.py | CrystalMei/Prov_Build | 695576c36b7d5615f1cc568954658f8a7ce9eeba | [
"MIT"
] | null | null | null | now/collection/prov_execution/argument_captors.py | CrystalMei/Prov_Build | 695576c36b7d5615f1cc568954658f8a7ce9eeba | [
"MIT"
] | null | null | null | # Copyright (c) 2016 Universidade Federal Fluminense (UFF)
# Copyright (c) 2016 Polytechnic Institute of New York University.
# Copyright (c) 2018, 2019, 2020 President and Fellows of Harvard College.
# This file is part of ProvBuild.
"""Capture arguments from calls"""
from __future__ import (absolute_import, print_f... | 36.826389 | 127 | 0.581463 |
c46dc4849d73685f3bf2bf7edc6ed45dee20d695 | 307 | py | Python | Python/Day8 DictionariesAndMaps.py | codePerfectPlus/30-DaysOfCode-With-Python-And-JavaScript | 570fa12ed30659fa394d86e12583b69f35a2e7a7 | [
"MIT"
] | 8 | 2020-08-03T01:53:13.000Z | 2022-01-09T14:47:58.000Z | Python/Day8 DictionariesAndMaps.py | codePerfectPlus/30-DaysOfCode-With-Python-And-JavaScript | 570fa12ed30659fa394d86e12583b69f35a2e7a7 | [
"MIT"
] | null | null | null | Python/Day8 DictionariesAndMaps.py | codePerfectPlus/30-DaysOfCode-With-Python-And-JavaScript | 570fa12ed30659fa394d86e12583b69f35a2e7a7 | [
"MIT"
] | 4 | 2020-09-29T11:28:53.000Z | 2021-06-02T15:34:55.000Z | N = int(input())
entry = [input().split() for _ in range(N)]
phoneBook = {name: number for name, number in entry}
while True:
try:
name = input()
if name in phoneBook:
print(f"{name}={phoneBook[name]}")
else:
print("Not found")
except:
break
| 21.928571 | 52 | 0.534202 |
c46f3c278fa8309cddd52d6eeccf2dae6ea924e2 | 1,850 | py | Python | 10. Recurrent Neural Network/10-1) Recurrent Neural Network, RNN.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 10. Recurrent Neural Network/10-1) Recurrent Neural Network, RNN.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 10. Recurrent Neural Network/10-1) Recurrent Neural Network, RNN.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | #Sequence model. != Recursive Neural Network
#memory cell or RNN cell
#hidden state
#one-to-many_image captioning, many-to-one_sentiment classfication || spam detection, many-to-many_chat bot
#2) create RNN in python
import numpy as np
timesteps=10# _
input_size=4# _
hidden_size=8# ( )
inputs=np.random.random((t... | 30.327869 | 107 | 0.778378 |
c46f42400056a3b7b9402bc800d3e92633345822 | 720 | py | Python | WeLearn/M3-Python/L3-Python_Object/pet.py | munoz196/moonyosCSSIrep | cdfcd2ae061293471ecdf2d370a27f163efeba97 | [
"Apache-2.0"
] | null | null | null | WeLearn/M3-Python/L3-Python_Object/pet.py | munoz196/moonyosCSSIrep | cdfcd2ae061293471ecdf2d370a27f163efeba97 | [
"Apache-2.0"
] | null | null | null | WeLearn/M3-Python/L3-Python_Object/pet.py | munoz196/moonyosCSSIrep | cdfcd2ae061293471ecdf2d370a27f163efeba97 | [
"Apache-2.0"
] | null | null | null | pet = {
"name":"Doggo",
"animal":"dog",
"species":"labrador",
"age":"5"
}
my_pet= Pet("Fido", 3, "dog")
my_pet.is_hungry= True
print("is my pet hungry? %s"% my_pet.is_hungry)
my_pet.eat()
print("how about now? %s" % my_pet.is_hungry)
print ("My pet is feeling %s" % my_pet.mood)
| 22.5 | 62 | 0.566667 |
c470769346abfe53705868b77ccb1792faae0816 | 1,260 | py | Python | src/repositories/example_repo.py | pybokeh/dagster-examples | 459cfbe00585f1d123e49058685c74149efb867d | [
"MIT"
] | null | null | null | src/repositories/example_repo.py | pybokeh/dagster-examples | 459cfbe00585f1d123e49058685c74149efb867d | [
"MIT"
] | null | null | null | src/repositories/example_repo.py | pybokeh/dagster-examples | 459cfbe00585f1d123e49058685c74149efb867d | [
"MIT"
] | null | null | null | from dagster import job, repository
from ops.sklearn_ops import (
fetch_freehand_text_to_generic_data,
separate_features_from_target_label,
label_encode_target,
count_tfid_transform_train,
count_tfid_transform_test,
create_sgd_classifier_model,
predict
)
| 33.157895 | 141 | 0.768254 |
c4721b4a3c1999fdb50a16efbe7e2d5c42d79e86 | 551 | py | Python | exercicios/Maior_e_Menor_Valores.py | jeversonneves/Python | c31779d8db64b22711fe612cc943da8c5e51788b | [
"MIT"
] | null | null | null | exercicios/Maior_e_Menor_Valores.py | jeversonneves/Python | c31779d8db64b22711fe612cc943da8c5e51788b | [
"MIT"
] | null | null | null | exercicios/Maior_e_Menor_Valores.py | jeversonneves/Python | c31779d8db64b22711fe612cc943da8c5e51788b | [
"MIT"
] | null | null | null | resposta = 'S'
soma = quant = media = maior = menor = 0
while resposta in 'Ss':
n = int(input('Digite um nmero: '))
soma += n
quant += 1
if quant == 1:
maior = menor = n
else:
if n > maior:
maior = n
elif n < menor:
menor = n
resposta = str(input('... | 30.611111 | 93 | 0.548094 |
c472af02ddcb4584d404fd75d6b5093bc3a9b31d | 554 | py | Python | rbc/opening/opening.py | rebuildingcode/hardware | df38d4b955047fdea69dda6b662c56ac301799a2 | [
"BSD-3-Clause"
] | null | null | null | rbc/opening/opening.py | rebuildingcode/hardware | df38d4b955047fdea69dda6b662c56ac301799a2 | [
"BSD-3-Clause"
] | 27 | 2019-09-04T06:29:34.000Z | 2020-04-19T19:41:44.000Z | rbc/opening/opening.py | rebuildingcode/hardware | df38d4b955047fdea69dda6b662c56ac301799a2 | [
"BSD-3-Clause"
] | 2 | 2020-02-28T02:56:31.000Z | 2020-02-28T03:12:07.000Z |
from shapely.geometry import Polygon
from ..point import Point
| 20.518519 | 80 | 0.539711 |
c47376723d72b33e6ef5ded0c99f0808db10a51e | 4,252 | py | Python | AI/Housing Prices Prediction/HousePricesNN.py | n0rel/self | f9f44af42aa652f9a72279e44ffd8d4387a4bdae | [
"MIT"
] | null | null | null | AI/Housing Prices Prediction/HousePricesNN.py | n0rel/self | f9f44af42aa652f9a72279e44ffd8d4387a4bdae | [
"MIT"
] | null | null | null | AI/Housing Prices Prediction/HousePricesNN.py | n0rel/self | f9f44af42aa652f9a72279e44ffd8d4387a4bdae | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.preprocessing import LabelEncoder, MinMaxScaler
from numpy.random import uniform
import matplotlib.pyplot as plt
# Import Data
training_amount = 4000
input_scaler = MinMaxScaler((-1, 1))
output_scaler = MinMaxScaler((-1, 1))
data = pd.read_csv('USA_Housing.csv')... | 33.480315 | 149 | 0.63476 |
c4737a166e262dfedd58077027d802632dac9651 | 7,829 | py | Python | tests/test_export_keyword_template_catalina_10_15_4.py | PabloKohan/osxphotos | 2cf3b6bb674c312240c4b12c5d7b558f15be7c85 | [
"MIT"
] | null | null | null | tests/test_export_keyword_template_catalina_10_15_4.py | PabloKohan/osxphotos | 2cf3b6bb674c312240c4b12c5d7b558f15be7c85 | [
"MIT"
] | null | null | null | tests/test_export_keyword_template_catalina_10_15_4.py | PabloKohan/osxphotos | 2cf3b6bb674c312240c4b12c5d7b558f15be7c85 | [
"MIT"
] | null | null | null | import pytest
from osxphotos._constants import _UNKNOWN_PERSON
PHOTOS_DB = "./tests/Test-10.15.4.photoslibrary/database/photos.db"
TOP_LEVEL_FOLDERS = ["Folder1"]
TOP_LEVEL_CHILDREN = ["SubFolder1", "SubFolder2"]
FOLDER_ALBUM_DICT = {"Folder1": [], "SubFolder1": [], "SubFolder2": ["AlbumInFolder"]}
ALBUM_NAMES = ... | 35.107623 | 107 | 0.606463 |
c47490ec669bdd7c9794f49ba2d2ebd89aed558a | 32,808 | py | Python | video_level_models.py | pomonam/youtube-8m | 2d0b9b361785743ec397c6104feb30bb581700e5 | [
"Apache-2.0"
] | 43 | 2018-10-03T13:29:45.000Z | 2020-10-12T09:33:44.000Z | video_level_models.py | pomonam/LearnablePoolingMethodsForVideoClassification | 2d0b9b361785743ec397c6104feb30bb581700e5 | [
"Apache-2.0"
] | 1 | 2018-10-01T01:50:56.000Z | 2019-01-07T17:53:37.000Z | video_level_models.py | pomonam/LearnablePoolingMethodsForVideoClassification | 2d0b9b361785743ec397c6104feb30bb581700e5 | [
"Apache-2.0"
] | 3 | 2018-11-20T14:43:17.000Z | 2019-07-26T13:25:14.000Z | # Copyright 2018 Deep Topology All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 43.802403 | 119 | 0.596745 |
c474a170eb0e1f1c4fbbb4250190b02bde10d265 | 4,537 | py | Python | tests/test_refinement.py | qfardet/Pandora2D | 9b36d29a199f2acc67499d22b796c7dd6867bc5f | [
"Apache-2.0"
] | 4 | 2022-02-09T10:07:03.000Z | 2022-03-08T05:16:30.000Z | tests/test_refinement.py | qfardet/Pandora2D | 9b36d29a199f2acc67499d22b796c7dd6867bc5f | [
"Apache-2.0"
] | null | null | null | tests/test_refinement.py | qfardet/Pandora2D | 9b36d29a199f2acc67499d22b796c7dd6867bc5f | [
"Apache-2.0"
] | 4 | 2022-02-03T09:21:28.000Z | 2022-03-25T07:32:13.000Z | #!/usr/bin/env python
# coding: utf8
#
# Copyright (c) 2021 Centre National d'Etudes Spatiales (CNES).
#
# This file is part of PANDORA2D
#
# https://github.com/CNES/Pandora2D
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | 32.407143 | 120 | 0.60745 |
c474f216680e6a9b4d600c4b0a1221fea638bba3 | 9,353 | py | Python | goblet/tests/test_scheduler.py | Aaron-Gill/goblet | 30c0dd73b2f39e443adb2ccda6f9009e980c53ee | [
"Apache-2.0"
] | null | null | null | goblet/tests/test_scheduler.py | Aaron-Gill/goblet | 30c0dd73b2f39e443adb2ccda6f9009e980c53ee | [
"Apache-2.0"
] | null | null | null | goblet/tests/test_scheduler.py | Aaron-Gill/goblet | 30c0dd73b2f39e443adb2ccda6f9009e980c53ee | [
"Apache-2.0"
] | null | null | null | from unittest.mock import Mock
from goblet import Goblet
from goblet.resources.scheduler import Scheduler
from goblet.test_utils import (
get_responses,
get_response,
mock_dummy_function,
dummy_function,
)
| 36.678431 | 101 | 0.5626 |
c475cdfc5c22b9c5d0eee35b59b44abcb5b1b364 | 1,027 | py | Python | arachnado/rpc/sites.py | wigginzz/arachnado | 8de92625262958e886263b4ccb189f4fc62d7400 | [
"MIT"
] | 2 | 2017-12-26T14:50:14.000Z | 2018-06-12T07:04:08.000Z | arachnado/rpc/sites.py | wigginzz/arachnado | 8de92625262958e886263b4ccb189f4fc62d7400 | [
"MIT"
] | null | null | null | arachnado/rpc/sites.py | wigginzz/arachnado | 8de92625262958e886263b4ccb189f4fc62d7400 | [
"MIT"
] | null | null | null | import logging
from functools import partial
from arachnado.storages.mongotail import MongoTailStorage
| 26.333333 | 64 | 0.650438 |
c476f31483a0cfb0e93a77ded50e7c656f3f727f | 16,628 | py | Python | src/players.py | deacona/the-ball-is-round | 8e91a72084d13d754deb82e4852fa37a86a77084 | [
"MIT"
] | null | null | null | src/players.py | deacona/the-ball-is-round | 8e91a72084d13d754deb82e4852fa37a86a77084 | [
"MIT"
] | null | null | null | src/players.py | deacona/the-ball-is-round | 8e91a72084d13d754deb82e4852fa37a86a77084 | [
"MIT"
] | null | null | null | """players module.
Used for players data processes
"""
import numpy as np
import pandas as pd
import src.config as config
import src.utilities as utilities
from src.utilities import logging
pd.set_option("display.max_columns", 500)
pd.set_option("display.expand_frame_repr", False)
# master_file = config.MASTER_FILE... | 31.793499 | 580 | 0.53446 |
c47739874e06f42c7eb96ea82d6382fed8af2e9d | 2,035 | py | Python | Z_ALL_FILE/Py/code_qry.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | null | null | null | Z_ALL_FILE/Py/code_qry.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | null | null | null | Z_ALL_FILE/Py/code_qry.py | omikabir/omEngin | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | [
"Apache-2.0"
] | 1 | 2021-04-29T21:46:02.000Z | 2021-04-29T21:46:02.000Z | import pandas as pd
import os
#opt = itertools.islice(ls, len(ls))
#st = map(lambda x : )
| 28.263889 | 200 | 0.456511 |
c478a3bd10411c7f1ec8a901267dc3442748c724 | 1,463 | py | Python | eats/tests/common/base_test_setup.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | eats/tests/common/base_test_setup.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | 5 | 2021-03-18T21:34:44.000Z | 2022-03-11T23:35:23.000Z | eats/tests/common/base_test_setup.py | Etiqa/eats | 8c8e2da93d0014f6fbb208185712c5526dba1174 | [
"BSD-2-Clause"
] | null | null | null | import socket
import unittest
from eats.webdriver import PytractorWebDriver
from eats.tests.common import SimpleWebServerProcess as SimpleServer | 30.479167 | 93 | 0.663705 |
c47907817d94beb66a4ec9f0e248f596065c0464 | 231 | py | Python | autoprep/service/sqlite_project_service.py | haginot/auto-prep | b1de3eceba5b82432e7042e7e62270df467ed828 | [
"Apache-2.0"
] | null | null | null | autoprep/service/sqlite_project_service.py | haginot/auto-prep | b1de3eceba5b82432e7042e7e62270df467ed828 | [
"Apache-2.0"
] | 4 | 2019-01-15T01:55:46.000Z | 2019-02-21T04:15:25.000Z | autoprep/service/sqlite_project_service.py | haginot/auto-prep | b1de3eceba5b82432e7042e7e62270df467ed828 | [
"Apache-2.0"
] | null | null | null | from autoprep.service.project_service import ProjectService
| 16.5 | 59 | 0.69697 |
c479ce0c9f3fb47a8ec7bf6ff4db304b73d1a05c | 2,262 | py | Python | p1_navigation/model.py | Alexandr0s93/deep-reinforcement-learning | 02a508d25d2ba3c76c76a8410b3ae27f0d14e13f | [
"MIT"
] | null | null | null | p1_navigation/model.py | Alexandr0s93/deep-reinforcement-learning | 02a508d25d2ba3c76c76a8410b3ae27f0d14e13f | [
"MIT"
] | null | null | null | p1_navigation/model.py | Alexandr0s93/deep-reinforcement-learning | 02a508d25d2ba3c76c76a8410b3ae27f0d14e13f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
| 30.16 | 63 | 0.545977 |
c479cee1b61267e6a98fae5c6efa9dd6f54fec33 | 74 | py | Python | const.py | TakosukeGH/pmx_bone_importer | 412cc066867cb0e0fd889101630277f9f9ba3a6a | [
"MIT"
] | null | null | null | const.py | TakosukeGH/pmx_bone_importer | 412cc066867cb0e0fd889101630277f9f9ba3a6a | [
"MIT"
] | null | null | null | const.py | TakosukeGH/pmx_bone_importer | 412cc066867cb0e0fd889101630277f9f9ba3a6a | [
"MIT"
] | 1 | 2019-10-05T01:18:54.000Z | 2019-10-05T01:18:54.000Z | ADDON_NAME = "pmx_bone_importer"
LOG_FILE_NAME = "pmx_bone_importer.log"
| 18.5 | 39 | 0.810811 |
c47bf0eadf4438f1d2983cdc88c09d3954cd62d8 | 17,789 | py | Python | pox/lib/interfaceio/__init__.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 416 | 2015-01-05T18:16:36.000Z | 2022-03-28T21:44:26.000Z | pox/lib/interfaceio/__init__.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 140 | 2015-01-18T23:32:34.000Z | 2022-03-17T05:40:24.000Z | pox/lib/interfaceio/__init__.py | korrigans84/pox_network | cd58d95d97c94b3d139bc2026fd1be0a30987911 | [
"Apache-2.0"
] | 344 | 2015-01-08T06:44:23.000Z | 2022-03-26T04:06:27.000Z | # Copyright 2017 James McCauley
#
# 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 writi... | 27.034954 | 78 | 0.652426 |
c47c240782affe27a9180c58c326bd1012c03ca6 | 5,754 | py | Python | icarus_simulator/strategies/atk_geo_constraint/geo_constr_strat.py | RubenFr/ICARUS-framework | e57a1f50c3bb9522b2a279fee6b625628afd056f | [
"MIT"
] | 5 | 2021-08-31T08:07:41.000Z | 2022-01-04T02:09:25.000Z | icarus_simulator/strategies/atk_geo_constraint/geo_constr_strat.py | RubenFr/ICARUS-framework | e57a1f50c3bb9522b2a279fee6b625628afd056f | [
"MIT"
] | 3 | 2021-09-23T09:06:35.000Z | 2021-12-08T04:53:01.000Z | icarus_simulator/strategies/atk_geo_constraint/geo_constr_strat.py | RubenFr/ICARUS-framework | e57a1f50c3bb9522b2a279fee6b625628afd056f | [
"MIT"
] | 2 | 2022-01-19T17:50:56.000Z | 2022-03-06T18:59:41.000Z | # 2020 Tommaso Ciussani and Giacomo Giuliari
import os
import json
import numpy as np
from typing import Set, List
from geopy.distance import great_circle
from scipy.spatial.ckdtree import cKDTree
from shapely.geometry import Polygon, shape, Point
from icarus_simulator.sat_core.coordinate_util import geo2cart
from i... | 38.36 | 115 | 0.616093 |
c47c8df17ea394b09ef2defebfcd36f91bad20ef | 8,861 | py | Python | grafeas/models/deployable_deployment_details.py | nyc/client-python | e73eab8953abf239305080673f7c96a54b776f72 | [
"Apache-2.0"
] | null | null | null | grafeas/models/deployable_deployment_details.py | nyc/client-python | e73eab8953abf239305080673f7c96a54b776f72 | [
"Apache-2.0"
] | null | null | null | grafeas/models/deployable_deployment_details.py | nyc/client-python | e73eab8953abf239305080673f7c96a54b776f72 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Grafeas API
An API to insert and retrieve annotations on cloud artifacts. # noqa: E501
OpenAPI spec version: v1alpha1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from grafeas.models.deployment_deta... | 31.091228 | 153 | 0.623632 |
c47e515541dd250050db71c9315d649403e7ce2b | 1,575 | py | Python | lib/python/test/test_trans.py | qxo/cat | 08170af3c8e2ae3724036833d67312964721c99b | [
"Apache-2.0"
] | 5 | 2018-12-13T17:46:39.000Z | 2022-03-29T02:07:47.000Z | lib/python/test/test_trans.py | qxo/cat | 08170af3c8e2ae3724036833d67312964721c99b | [
"Apache-2.0"
] | 42 | 2019-12-08T18:41:13.000Z | 2021-08-28T13:08:55.000Z | lib/python/test/test_trans.py | qxo/cat | 08170af3c8e2ae3724036833d67312964721c99b | [
"Apache-2.0"
] | 8 | 2018-12-25T04:19:01.000Z | 2021-03-24T17:02:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: stdrickforce (Tengyuan Fan)
# Email: <stdrickforce@gmail.com> <fantengyuan@baixing.com>
import cat
import time
def test2():
'''
Use via context manager
'''
with cat.Transaction("Trans", "T2") as t:
cat.log_event("Event", "E2")
... | 22.183099 | 64 | 0.572698 |
c47eb0be6f206f7a309aab7d8baf760825081212 | 19,781 | py | Python | src/ui/ui_hw_recovery_wdg.py | frosted97/dash-masternode-tool | d824740309ab878d745e41d39f274e952111542f | [
"MIT"
] | 75 | 2017-03-20T06:33:14.000Z | 2022-02-15T16:16:45.000Z | src/ui/ui_hw_recovery_wdg.py | frosted97/dash-masternode-tool | d824740309ab878d745e41d39f274e952111542f | [
"MIT"
] | 42 | 2017-10-25T06:34:54.000Z | 2022-02-10T20:53:46.000Z | src/ui/ui_hw_recovery_wdg.py | frosted97/dash-masternode-tool | d824740309ab878d745e41d39f274e952111542f | [
"MIT"
] | 98 | 2017-03-20T05:27:36.000Z | 2022-03-20T05:03:08.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file ui_hw_recovery_wdg.ui
#
# Created by: PyQt5 UI code generator
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, Qt... | 64.016181 | 222 | 0.745008 |
c47ed8028e53c0742399199be9ea4ca791d59010 | 1,108 | py | Python | datahandler/analyser.py | ameliecordier/IIK | 57b40d6b851a1c2369604049d1820e5b572c6227 | [
"MIT"
] | null | null | null | datahandler/analyser.py | ameliecordier/IIK | 57b40d6b851a1c2369604049d1820e5b572c6227 | [
"MIT"
] | null | null | null | datahandler/analyser.py | ameliecordier/IIK | 57b40d6b851a1c2369604049d1820e5b572c6227 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import csv
from matplotlib import pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
# CLASS ANALYSER
| 25.181818 | 104 | 0.598375 |
c47ef70151ad606b1f9596045a1960c4c4dec6a6 | 1,948 | py | Python | binary_trees/next_right.py | xxaxdxcxx/miscellaneous-code | cdb88783f39e1b9a89fdb12f7cddfe62619e4357 | [
"MIT"
] | null | null | null | binary_trees/next_right.py | xxaxdxcxx/miscellaneous-code | cdb88783f39e1b9a89fdb12f7cddfe62619e4357 | [
"MIT"
] | null | null | null | binary_trees/next_right.py | xxaxdxcxx/miscellaneous-code | cdb88783f39e1b9a89fdb12f7cddfe62619e4357 | [
"MIT"
] | null | null | null | # Definition for binary tree with next pointer.
| 31.419355 | 63 | 0.464579 |
c47f26765a0cb339776a2ad95fc385826831ad79 | 982 | py | Python | 6.all_species/species_data/merge_species_data.py | oaxiom/episcan | b6616536d621ff02b92a7678f80b5bfbd38c6dc8 | [
"MIT"
] | null | null | null | 6.all_species/species_data/merge_species_data.py | oaxiom/episcan | b6616536d621ff02b92a7678f80b5bfbd38c6dc8 | [
"MIT"
] | null | null | null | 6.all_species/species_data/merge_species_data.py | oaxiom/episcan | b6616536d621ff02b92a7678f80b5bfbd38c6dc8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys, os, glob
from glbase3 import *
all_species = glload('species_annotations/species.glb')
newl = []
for file in glob.glob('pep_counts/*.txt'):
oh = open(file, 'rt')
count = int(oh.readline().split()[0])
oh.close()
species_name = os.path.split(file)[1].split('.')[0].l... | 25.179487 | 97 | 0.701629 |
c481812f6f75096a79bbca57dd3f97e48ea22078 | 3,845 | py | Python | modules/lex_managers/lex_intent_manager.py | adamhamden/lex-bot | 3c21b8d60607950c707b97ff5ba8491d40e31592 | [
"MIT"
] | null | null | null | modules/lex_managers/lex_intent_manager.py | adamhamden/lex-bot | 3c21b8d60607950c707b97ff5ba8491d40e31592 | [
"MIT"
] | null | null | null | modules/lex_managers/lex_intent_manager.py | adamhamden/lex-bot | 3c21b8d60607950c707b97ff5ba8491d40e31592 | [
"MIT"
] | null | null | null | import boto3
from prettytable import PrettyTable
| 39.639175 | 129 | 0.490507 |
c4819144b63cb938bdc3a631c3adcbd846e22f52 | 80 | py | Python | src/__init__.py | Victorpc98/CE888-Project | 99c20adc78eb53ac4d3c87543ef8da1ef4d10adc | [
"MIT"
] | 1 | 2020-04-18T21:03:28.000Z | 2020-04-18T21:03:28.000Z | src/__init__.py | Victorpc98/CE888-Project | 99c20adc78eb53ac4d3c87543ef8da1ef4d10adc | [
"MIT"
] | null | null | null | src/__init__.py | Victorpc98/CE888-Project | 99c20adc78eb53ac4d3c87543ef8da1ef4d10adc | [
"MIT"
] | null | null | null | import sys
sys.path.append("..") # Adds higher directory to python modules path. | 40 | 69 | 0.75 |
c4821b9a95d728a178a666ea50065578f645972b | 7,025 | py | Python | wxtbx/wx4_compatibility.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | wxtbx/wx4_compatibility.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | wxtbx/wx4_compatibility.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
'''
Author : Lyubimov, A.Y.
Created : 04/14/2014
Last Changed: 11/05/2018
Description : wxPython 3-4 compatibility tools
The context managers, classes, and other tools below can be used to make the
GUI code compatible with wxPython 3 and 4. Mos... | 32.981221 | 96 | 0.691103 |
c483b92cbfbdabe1b45008c539e6179a5bd43a9f | 1,548 | py | Python | BMVC_version/utils.py | ZhengyuZhao/ACE | 5065cde807fe689115849c55d440783d8a471901 | [
"MIT"
] | 19 | 2020-05-13T07:51:00.000Z | 2021-06-13T11:03:47.000Z | BMVC_version/utils.py | ZhengyuZhao/AdvCF | 5065cde807fe689115849c55d440783d8a471901 | [
"MIT"
] | 1 | 2020-09-09T09:39:28.000Z | 2020-09-10T20:30:02.000Z | BMVC_version/utils.py | ZhengyuZhao/AdvCF | 5065cde807fe689115849c55d440783d8a471901 | [
"MIT"
] | 3 | 2020-09-05T11:32:23.000Z | 2021-03-30T01:41:07.000Z | import torch
import torch.nn as nn
import csv
#image quantization
#picecwise-linear color filter
#parsing the data annotation
# simple Module to normalize an image
# values are standard normalization for ImageNet images,
# from https://github.com/pytorch/examples/blob/master/imagenet/main.py
norm = Normalize(me... | 29.769231 | 99 | 0.660207 |
c4844ed8e45f32c88606465081cf2391a8999d1d | 4,849 | py | Python | lemonpie/_nbdev.py | corazonlabs/ehr_preprocessing | 5bf3be1f04d9dc6db002b58331800b30cf668e69 | [
"Apache-2.0"
] | 3 | 2021-04-03T01:16:18.000Z | 2021-07-31T20:44:47.000Z | lemonpie/_nbdev.py | corazonlabs/ehr_preprocessing | 5bf3be1f04d9dc6db002b58331800b30cf668e69 | [
"Apache-2.0"
] | 5 | 2021-03-30T21:23:47.000Z | 2022-02-26T10:17:12.000Z | lemonpie/_nbdev.py | vin00d/lemonpie | 5bf3be1f04d9dc6db002b58331800b30cf668e69 | [
"Apache-2.0"
] | 1 | 2020-11-26T00:35:28.000Z | 2020-11-26T00:35:28.000Z | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"get_device": "00_basics.ipynb",
"settings_template": "00_basics.ipynb",
"read_settings": "00_basics.ipynb",
"DEVICE": "00_basics.ipynb",
"settings": "00_basics.ipynb",
... | 44.486239 | 70 | 0.630852 |
c4847cc6bababbdf22257962d4c32b15d776c5ed | 8,277 | py | Python | tensorboard/plugins/graph_edit/c2graph_util.py | qzhong0605/tensorboardplugins | 92bfc7ca96b933cdbdf074a08f26f5c715d8421d | [
"Apache-2.0"
] | null | null | null | tensorboard/plugins/graph_edit/c2graph_util.py | qzhong0605/tensorboardplugins | 92bfc7ca96b933cdbdf074a08f26f5c715d8421d | [
"Apache-2.0"
] | null | null | null | tensorboard/plugins/graph_edit/c2graph_util.py | qzhong0605/tensorboardplugins | 92bfc7ca96b933cdbdf074a08f26f5c715d8421d | [
"Apache-2.0"
] | null | null | null | # Convert the caffe2 model into tensorboard GraphDef
#
# The details of caffe2 model is on the compat/proto/caffe2/caffe2.proto
# And the details of GraphDef model is on the compat/proto/graph.proto
#
################################################################################
from tensorboard.compat.proto import ... | 44.5 | 106 | 0.618461 |
c4852e08624ac34e2478471564d3403491679e03 | 1,251 | py | Python | src/Homework2_1.py | alexaquino/TUM-AUTONAVx | 95c6829fa2e31e1a11bf2c7726386593e7adbdce | [
"MIT"
] | null | null | null | src/Homework2_1.py | alexaquino/TUM-AUTONAVx | 95c6829fa2e31e1a11bf2c7726386593e7adbdce | [
"MIT"
] | null | null | null | src/Homework2_1.py | alexaquino/TUM-AUTONAVx | 95c6829fa2e31e1a11bf2c7726386593e7adbdce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# The MIT License (MIT)
# Copyright (c) 2014 Alex Aquino dos Santos
# Technische Universitt Mnchen (TUM)
# Autonomous Navigation for Flying Robots
# Homework 2.1
from plot import plot
| 34.75 | 109 | 0.686651 |
c4855377edb8f2377a14569ead5ae6f4b477315f | 1,651 | py | Python | src_tf/templates/tf_estimator_template/model/example.py | ashishpatel26/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2019-02-12T09:22:00.000Z | 2019-02-12T09:22:00.000Z | src_tf/templates/tf_estimator_template/model/example.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | null | null | null | src_tf/templates/tf_estimator_template/model/example.py | loopzxl/finch | bf2958c0f268575e5d51ad08fbc08b151cbea962 | [
"MIT"
] | 1 | 2020-10-15T21:34:17.000Z | 2020-10-15T21:34:17.000Z | from configs import args
import tensorflow as tf
| 34.395833 | 80 | 0.637795 |
c485ee350fbe503865765122e5205b0c6d84fd8d | 1,300 | py | Python | {{cookiecutter.project_slug}}/core/management/commands/snippets/fastapi_project/core/security.py | claysllanxavier/django-cookiecutter | 97de7ff4ed3dc94c32bf756a57aee0664a888cbc | [
"BSD-3-Clause"
] | 8 | 2021-08-13T17:48:27.000Z | 2022-02-22T02:34:15.000Z | {{cookiecutter.project_slug}}/core/management/commands/snippets/fastapi_project/core/security.py | claysllanxavier/django-cookiecutter | 97de7ff4ed3dc94c32bf756a57aee0664a888cbc | [
"BSD-3-Clause"
] | 2 | 2022-03-24T20:39:00.000Z | 2022-03-24T20:39:48.000Z | {{cookiecutter.project_slug}}/core/management/commands/snippets/fastapi_project/core/security.py | claysllanxavier/django-cookiecutter | 97de7ff4ed3dc94c32bf756a57aee0664a888cbc | [
"BSD-3-Clause"
] | 2 | 2021-09-21T00:05:27.000Z | 2022-01-03T10:50:05.000Z | from datetime import datetime, timedelta
from typing import Any, Union
from jose import jwt
from passlib.context import CryptContext
from .config import settings
pwd_context = CryptContext(
default="django_pbkdf2_sha256",
schemes=["django_argon2", "django_bcrypt", "django_bcrypt_sha256",
... | 29.545455 | 81 | 0.713077 |
c487c6e672ed0de9246b310bca5ef690e836e2e6 | 10,241 | py | Python | margarita/main.py | w0de/margarita | 50c7c07b8ee3d5d6c801833be7c147533c33fd70 | [
"Unlicense"
] | 3 | 2018-07-27T22:19:02.000Z | 2019-09-06T18:08:58.000Z | margarita/main.py | w0de/margarita | 50c7c07b8ee3d5d6c801833be7c147533c33fd70 | [
"Unlicense"
] | null | null | null | margarita/main.py | w0de/margarita | 50c7c07b8ee3d5d6c801833be7c147533c33fd70 | [
"Unlicense"
] | 1 | 2019-05-21T18:07:46.000Z | 2019-05-21T18:07:46.000Z | #!/usr/bin/env python
from flask import Flask
from flask import jsonify, render_template, redirect
from flask import request, Response
from saml_auth import BaseAuth, SamlAuth
import os, sys
try:
import json
except ImportError:
# couldn't find json, try simplejson library
import simplejson as json
import getopt
fro... | 31.804348 | 128 | 0.721023 |
c48919ef78498ed664eb6156c8117a86edb141da | 3,344 | py | Python | python/pato/transport/uart.py | kloper/pato | bfbbee4109227735934f990c5909616a6e8af0b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/pato/transport/uart.py | kloper/pato | bfbbee4109227735934f990c5909616a6e8af0b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/pato/transport/uart.py | kloper/pato | bfbbee4109227735934f990c5909616a6e8af0b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- python -*-
"""@file
@brief pyserial transport for pato
Copyright (c) 2014-2015 Dimitry Kloper <kloper@users.sf.net>.
All rights reserved.
@page License
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistribut... | 34.122449 | 79 | 0.712022 |
c489ac681275868dff6ed544c5b85d56c81ef128 | 4,072 | py | Python | PYQT5/Games/RockPapperScissorsGame.py | Amara-Manikanta/Python-GUI | 0356e7cae7f1c51d0781bf431c386ee7262608b1 | [
"MIT"
] | null | null | null | PYQT5/Games/RockPapperScissorsGame.py | Amara-Manikanta/Python-GUI | 0356e7cae7f1c51d0781bf431c386ee7262608b1 | [
"MIT"
] | null | null | null | PYQT5/Games/RockPapperScissorsGame.py | Amara-Manikanta/Python-GUI | 0356e7cae7f1c51d0781bf431c386ee7262608b1 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QFont, QPixmap
from PyQt5.QtCore import QTimer
from random import randint
font = QFont("Times", 14)
buttonFont = QFont("Arial", 12)
computerScore = 0
playerScore = 0
if __name__ == '__main__':
main()
| 34.218487 | 116 | 0.590128 |
c489f0bb6aee13c77e0b4caf8c6ecbaa282336f5 | 539 | py | Python | services/neural/traindatabase.py | vitorecomp/hackaton-deep-learn | 962eac133ac92d56d8a55136773c2afe4da2e0b5 | [
"MIT"
] | null | null | null | services/neural/traindatabase.py | vitorecomp/hackaton-deep-learn | 962eac133ac92d56d8a55136773c2afe4da2e0b5 | [
"MIT"
] | null | null | null | services/neural/traindatabase.py | vitorecomp/hackaton-deep-learn | 962eac133ac92d56d8a55136773c2afe4da2e0b5 | [
"MIT"
] | null | null | null | from os import walk
import h5py
import numpy as np
from config.Database import Base
from config.Database import engine
from config.Database import Session
from models.Music import Music
from kmeans.kmeans import Kmeans
mypath = './dataset/datatr/'
if __name__ == "__main__":
main()
| 15.852941 | 41 | 0.736549 |
c48abebb839f713d689a09683874c38aef9511d6 | 1,128 | py | Python | projects/TGS_salt/binary_classifier/model.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 280 | 2018-10-21T01:07:18.000Z | 2021-12-30T11:29:48.000Z | projects/TGS_salt/binary_classifier/model.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 3 | 2018-11-13T08:04:48.000Z | 2020-04-17T09:20:03.000Z | projects/TGS_salt/binary_classifier/model.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 59 | 2018-10-21T04:38:23.000Z | 2021-03-29T07:58:47.000Z | import torch.nn as nn
import pretrainedmodels
| 31.333333 | 109 | 0.60461 |
6700a5bb5f070e2573ae2cc0040f1d1a36a7e4ca | 13,050 | py | Python | code/algorithm/assr.py | ShuhuaGao/bcn_opt_dc | 93234f6b799670bc80daf83794c51841f1a24715 | [
"MIT"
] | null | null | null | code/algorithm/assr.py | ShuhuaGao/bcn_opt_dc | 93234f6b799670bc80daf83794c51841f1a24715 | [
"MIT"
] | null | null | null | code/algorithm/assr.py | ShuhuaGao/bcn_opt_dc | 93234f6b799670bc80daf83794c51841f1a24715 | [
"MIT"
] | null | null | null | """
Given a Boolean function/network, get its algebraic state-space representation.
A logical vector `\delta_n^i` is represented by an integer `i` for space efficiency. Consequently, a logical matrix
is represented by a list, each element for one column, (also known as the "condensed form").
[1] Conversion from an in... | 39.071856 | 144 | 0.604828 |
6701184b0bdf306dd90792d6a104891f22b55364 | 4,953 | py | Python | datasets/voc_dataset.py | ming71/DAL | 48cd29fdbf5eeea1b5b642bd1f04bbf1863b31e3 | [
"Apache-2.0"
] | 206 | 2020-09-12T06:17:00.000Z | 2022-03-28T08:05:51.000Z | datasets/voc_dataset.py | JOOCHANN/DAL | 0f379de70ba01c6c9162f4e980a8bd2491976e9c | [
"Apache-2.0"
] | 47 | 2020-10-21T06:14:18.000Z | 2022-03-16T01:54:28.000Z | datasets/voc_dataset.py | JOOCHANN/DAL | 0f379de70ba01c6c9162f4e980a8bd2491976e9c | [
"Apache-2.0"
] | 38 | 2020-10-22T10:39:51.000Z | 2022-03-17T12:36:46.000Z | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# Extended by Linjie Deng
# --------------------------------------------------------
import os
import cv2
import numpy as np
import... | 37.240602 | 93 | 0.557238 |
67046e56ceee4d6e7815e597ff49d092a5c53d48 | 1,907 | py | Python | neploid.py | GravityI/neploid | 4b68e682fcda97a95d155bea288aa90740842b66 | [
"MIT"
] | null | null | null | neploid.py | GravityI/neploid | 4b68e682fcda97a95d155bea288aa90740842b66 | [
"MIT"
] | null | null | null | neploid.py | GravityI/neploid | 4b68e682fcda97a95d155bea288aa90740842b66 | [
"MIT"
] | null | null | null | import discord
import random
import asyncio
import logging
import urllib.request
from discord.ext import commands
bot = commands.Bot(command_prefix='nep ', description= "Nep Nep")
counter = 0
countTask = None
token = "insert token here"
bot.run(token) | 28.893939 | 153 | 0.681699 |
6706396f498d795e0d71e25c46fb2f83e80c424d | 1,025 | py | Python | odoo/base-addons/l10n_tr/__manifest__.py | LucasBorges-Santos/docker-odoo | 53987bbd61f6119669b5f801ee2ad54695084a21 | [
"MIT"
] | null | null | null | odoo/base-addons/l10n_tr/__manifest__.py | LucasBorges-Santos/docker-odoo | 53987bbd61f6119669b5f801ee2ad54695084a21 | [
"MIT"
] | null | null | null | odoo/base-addons/l10n_tr/__manifest__.py | LucasBorges-Santos/docker-odoo | 53987bbd61f6119669b5f801ee2ad54695084a21 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Turkey - Accounting',
'version': '1.0',
'category': 'Localization',
'description': """
Trkiye iin Tek dzen hesap plan ablonu Odoo Modl.
=========================================================... | 33.064516 | 82 | 0.61561 |
6706ffad81c03f382360a4810c2bf16d4cc561bb | 4,364 | py | Python | Source Codes/SMF_Python/smf_main.py | mmaher22/iCV-SBR | 72effab621a9f8f5cee0d584b5a2f0e98524ffd6 | [
"MIT"
] | 20 | 2020-08-25T06:10:14.000Z | 2022-03-27T15:42:55.000Z | Source Codes/SMF_Python/smf_main.py | mmaher22/iCV-SBR | 72effab621a9f8f5cee0d584b5a2f0e98524ffd6 | [
"MIT"
] | null | null | null | Source Codes/SMF_Python/smf_main.py | mmaher22/iCV-SBR | 72effab621a9f8f5cee0d584b5a2f0e98524ffd6 | [
"MIT"
] | 7 | 2020-09-25T15:12:53.000Z | 2022-03-25T15:23:43.000Z | import os
import time
import argparse
import pandas as pd
from smf import SessionMF
parser = argparse.ArgumentParser()
parser.add_argument('--K', type=int, default=20, help="K items to be used in Recall@K and MRR@K")
parser.add_argument('--factors', type=int, default=100, help="Number of latent factors.")
parser.add_a... | 47.956044 | 182 | 0.695921 |
6707397442e36941efca1b5ee8ee3696d4dcdf31 | 25,163 | py | Python | sdks/python/appcenter_sdk/models/Device.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/Device.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/Device.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
def to_str(self)... | 32.21895 | 505 | 0.632953 |
6707b1d92879723bb590b117c8481d4a309bdf74 | 5,591 | py | Python | src/providers/snmp.py | tcuthbert/napi | 12ea1a4fb1075749b40b2d93c3d4ab7fb75db8b5 | [
"MIT"
] | null | null | null | src/providers/snmp.py | tcuthbert/napi | 12ea1a4fb1075749b40b2d93c3d4ab7fb75db8b5 | [
"MIT"
] | null | null | null | src/providers/snmp.py | tcuthbert/napi | 12ea1a4fb1075749b40b2d93c3d4ab7fb75db8b5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author : Thomas Cuthbert
import os, sys
from providers.provider import Provider
from config.config import Config
sys.path.append('../')
def _strip_oid_from_list(oids, strip):
"""Iterates through list of oids and strips snmp tree off index.
Returns sorted li... | 31.587571 | 137 | 0.603291 |
6707dd7b43e33c316be804768ef020a089466983 | 14,107 | py | Python | visionpack/stable_baselines3/common/off_policy_algorithm.py | joeljosephjin/gvgai-rl | 57281629c313abb43312950b22d043a3d67639cf | [
"Apache-2.0"
] | null | null | null | visionpack/stable_baselines3/common/off_policy_algorithm.py | joeljosephjin/gvgai-rl | 57281629c313abb43312950b22d043a3d67639cf | [
"Apache-2.0"
] | null | null | null | visionpack/stable_baselines3/common/off_policy_algorithm.py | joeljosephjin/gvgai-rl | 57281629c313abb43312950b22d043a3d67639cf | [
"Apache-2.0"
] | null | null | null | import time
import os
import pickle
import warnings
from typing import Union, Type, Optional, Dict, Any, Callable
import gym
import torch as th
import numpy as np
from stable_baselines3.common import logger
from stable_baselines3.common.base_class import BaseAlgorithm
from stable_baselines3.common.policies import Bas... | 50.382143 | 122 | 0.607571 |
6707dda4f20fd2cb10f818588c5b114047a6d11c | 2,743 | py | Python | src/oscar/apps/dashboard/app.py | frmdstryr/django-oscar | 32bf8618ebb688df6ba306dc7703de8e61b4e78c | [
"BSD-3-Clause"
] | null | null | null | src/oscar/apps/dashboard/app.py | frmdstryr/django-oscar | 32bf8618ebb688df6ba306dc7703de8e61b4e78c | [
"BSD-3-Clause"
] | null | null | null | src/oscar/apps/dashboard/app.py | frmdstryr/django-oscar | 32bf8618ebb688df6ba306dc7703de8e61b4e78c | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from django.contrib.auth.forms import AuthenticationForm
from oscar.core.application import (
DashboardApplication as BaseDashboardApplication)
from oscar.core.loading import get_class
application = DashboardApplication()
| 44.967213 | 91 | 0.654028 |
67081cebddc67151d15ce739da186891614e2d4d | 4,783 | py | Python | wedding/migrations/0004_auto_20170407_2017.py | chadgates/thetravelling2 | 3646d64acb0fbf5106066700f482c9013f5fb7d0 | [
"MIT"
] | null | null | null | wedding/migrations/0004_auto_20170407_2017.py | chadgates/thetravelling2 | 3646d64acb0fbf5106066700f482c9013f5fb7d0 | [
"MIT"
] | null | null | null | wedding/migrations/0004_auto_20170407_2017.py | chadgates/thetravelling2 | 3646d64acb0fbf5106066700f482c9013f5fb7d0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-04-07 20:17
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
| 46.892157 | 135 | 0.582061 |
6708d69bfe7f1ec1d25240a2e512900542ce4a78 | 820 | py | Python | taskonomy/utils/log_utils.py | shikhar-srivastava/hover_net | d4e8e129a4ad72f5d574a78c036449b496421529 | [
"MIT"
] | null | null | null | taskonomy/utils/log_utils.py | shikhar-srivastava/hover_net | d4e8e129a4ad72f5d574a78c036449b496421529 | [
"MIT"
] | null | null | null | taskonomy/utils/log_utils.py | shikhar-srivastava/hover_net | d4e8e129a4ad72f5d574a78c036449b496421529 | [
"MIT"
] | null | null | null | import pandas as pd
import pickle | 43.157895 | 164 | 0.684146 |
6709a543eab8bce61601cfd76117d243faac013b | 5,373 | py | Python | train_DEU.py | JosephineRabbit/MLMSNet | 755e07afd1c19797b02cf88b7bbb195112ffec77 | [
"MIT"
] | 61 | 2019-04-23T15:17:36.000Z | 2021-08-20T15:48:11.000Z | train_DEU.py | zhuxinang/MLMSNet | a824a70fa37aeb4536bc72d8032e871328c687e8 | [
"MIT"
] | 8 | 2019-05-04T04:38:26.000Z | 2020-08-16T15:15:15.000Z | train_DEU.py | JosephineRabbit/MLMSNet | 755e07afd1c19797b02cf88b7bbb195112ffec77 | [
"MIT"
] | 7 | 2019-06-12T07:02:06.000Z | 2020-09-20T02:37:36.000Z | from D_E_U import *
D_E = DSS(*extra_layer(vgg(base['dss'], 3), extra['dss']),config.BATCH_SIZE).cuda()
U = D_U().cuda()
U.cuda()
data_dirs = [
("/home/rabbit/Datasets/DUTS/DUT-train/DUT-train-Image",
"/home/rabbit/Datasets/DUTS/DUT-train/DUT-train-Mask"),
]
test_dirs = [("/home/rabbit/Datasets/SED1/SED1-I... | 24.760369 | 116 | 0.594826 |
670bfcaeeccc178a263df62b6b3d972d4904cdc0 | 5,122 | py | Python | machine-learning-ex2/ex2/ex2.py | DuffAb/coursera-ml-py | efcfb0847ac7d1e181cb6b93954b0176ce6162d4 | [
"MIT"
] | null | null | null | machine-learning-ex2/ex2/ex2.py | DuffAb/coursera-ml-py | efcfb0847ac7d1e181cb6b93954b0176ce6162d4 | [
"MIT"
] | null | null | null | machine-learning-ex2/ex2/ex2.py | DuffAb/coursera-ml-py | efcfb0847ac7d1e181cb6b93954b0176ce6162d4 | [
"MIT"
] | null | null | null | # Machine Learning Online Class - Exercise 2: Logistic Regression
#
# Instructions
# ------------
#
# This file contains code that helps you get started on the logistic
# regression exercise. You will need to complete the following functions
# in this exericse:
#
# sigmoid.py
# costFunction.py
# predic... | 34.608108 | 128 | 0.689184 |
670c1bac34e09541ccb5d179f3199b3e5c901751 | 2,866 | py | Python | tests/test_apiFunc.py | Reid1923/py-GoldsberryTest | 3c7e9e2f4ef75720e1a13c4c41018a2072487ddd | [
"MIT"
] | null | null | null | tests/test_apiFunc.py | Reid1923/py-GoldsberryTest | 3c7e9e2f4ef75720e1a13c4c41018a2072487ddd | [
"MIT"
] | null | null | null | tests/test_apiFunc.py | Reid1923/py-GoldsberryTest | 3c7e9e2f4ef75720e1a13c4c41018a2072487ddd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
import goldsberry
test_data = [
(goldsberry._nbaLeague, 'NBA', '00'),
(goldsberry._nbaLeague, 'WNBA', '10'),
(goldsberry._nbaLeague, 'NBADL', '20'),
(goldsberry._nbaSeason, 1999, '1999-00'),
(goldsberry._nbaSeason, 2000, '2000-01'),
(goldsberry._seasonID, 1999, '21999'),
(goldsb... | 33.717647 | 56 | 0.691207 |
670d0a8e1a1197c9ec69df947dabd43d08e4160b | 4,295 | py | Python | sasmodels/models/poly_gauss_coil.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | sasmodels/models/poly_gauss_coil.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | sasmodels/models/poly_gauss_coil.py | zattala/sasmodels | a547aa73d43145b3bd34770b0ea27ba8882170a3 | [
"BSD-3-Clause"
] | null | null | null | #poly_gauss_coil model
#conversion of Poly_GaussCoil.py
#converted by Steve King, Mar 2016
r"""
This empirical model describes the scattering from *polydisperse* polymer
chains in theta solvents or polymer melts, assuming a Schulz-Zimm type
molecular weight distribution.
To describe the scattering from *monodisperse* ... | 32.293233 | 116 | 0.584633 |
670fa5323287fc9c400ddc9fd03e291ab3a5896f | 4,939 | py | Python | examples/information_extraction/msra_ner/eval.py | BenfengXu/PaddleNLP | eca87fde4a1814a8f028e0e900d1792cbaa5c700 | [
"Apache-2.0"
] | 1 | 2021-07-22T08:33:53.000Z | 2021-07-22T08:33:53.000Z | examples/information_extraction/msra_ner/eval.py | BenfengXu/PaddleNLP | eca87fde4a1814a8f028e0e900d1792cbaa5c700 | [
"Apache-2.0"
] | null | null | null | examples/information_extraction/msra_ner/eval.py | BenfengXu/PaddleNLP | eca87fde4a1814a8f028e0e900d1792cbaa5c700 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle 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.512 | 226 | 0.70905 |
670fb8129b5e60d52265e167fb8a005a31688d39 | 14,814 | py | Python | src/python/module/z5py/util.py | constantinpape/z5 | 20e364cc614b744a0ee3cb733531c4b872839721 | [
"MIT"
] | 82 | 2018-02-02T04:03:49.000Z | 2022-03-25T07:41:08.000Z | src/python/module/z5py/util.py | constantinpape/z5 | 20e364cc614b744a0ee3cb733531c4b872839721 | [
"MIT"
] | 152 | 2017-09-18T15:49:05.000Z | 2022-03-16T21:07:07.000Z | src/python/module/z5py/util.py | constantinpape/z5 | 20e364cc614b744a0ee3cb733531c4b872839721 | [
"MIT"
] | 27 | 2017-09-19T14:52:56.000Z | 2021-11-25T14:43:47.000Z | import os
from itertools import product
from concurrent import futures
from contextlib import closing
from datetime import datetime
import numpy as np
from . import _z5py
from .file import File, S3File
from .dataset import Dataset
from .shape_utils import normalize_slices
def copy_dataset_impl(f_in, f_out, in_path... | 37.887468 | 120 | 0.645876 |
671044f92c1e2bb7a547bce5cdc307d31e50194b | 8,485 | py | Python | custom_components/waste_collection_schedule/sensor.py | trstns/hacs_waste_collection_schedule | f8f297b43c8e87510e17a558347a88a95f790d7b | [
"MIT"
] | null | null | null | custom_components/waste_collection_schedule/sensor.py | trstns/hacs_waste_collection_schedule | f8f297b43c8e87510e17a558347a88a95f790d7b | [
"MIT"
] | null | null | null | custom_components/waste_collection_schedule/sensor.py | trstns/hacs_waste_collection_schedule | f8f297b43c8e87510e17a558347a88a95f790d7b | [
"MIT"
] | null | null | null | """Sensor platform support for Waste Collection Schedule."""
import collections
import datetime
import logging
from enum import Enum
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME, CONF... | 32.140152 | 99 | 0.635357 |
671186e2f94db3759070c3a35c61ae043b2efdd5 | 2,622 | py | Python | qidian.py | kivson/qidian-dl | 9b42f4c530b7938ff80f160ef32aa51cc43671f6 | [
"MIT"
] | null | null | null | qidian.py | kivson/qidian-dl | 9b42f4c530b7938ff80f160ef32aa51cc43671f6 | [
"MIT"
] | null | null | null | qidian.py | kivson/qidian-dl | 9b42f4c530b7938ff80f160ef32aa51cc43671f6 | [
"MIT"
] | null | null | null | from concurrent.futures import ThreadPoolExecutor
from functools import partial
from json import JSONDecodeError
import requests
from funcy.calc import cache
from funcy.debug import print_calls
from funcy.simple_funcs import curry
HEADERS = {
"Accept": "application/json, text/javascript, */*; q=0.01",
"User-A... | 29.133333 | 113 | 0.666667 |
6712802d8a80e0d4a1dc7de07b3fd9bb724b208d | 4,398 | py | Python | srcWatteco/TICs/_poubelle/TIC_ICEp.py | OStephan29/Codec-Python | 76d651bb23daf1d9307c8b84533d9f24a59cea28 | [
"BSD-3-Clause"
] | 1 | 2022-01-12T15:46:58.000Z | 2022-01-12T15:46:58.000Z | srcWatteco/TICs/_poubelle/TIC_ICEp.py | OStephan29/Codec-Python | 76d651bb23daf1d9307c8b84533d9f24a59cea28 | [
"BSD-3-Clause"
] | null | null | null | srcWatteco/TICs/_poubelle/TIC_ICEp.py | OStephan29/Codec-Python | 76d651bb23daf1d9307c8b84533d9f24a59cea28 | [
"BSD-3-Clause"
] | 1 | 2021-10-05T08:40:15.000Z | 2021-10-05T08:40:15.000Z | # -*- coding: utf-8 -*-
# Pour passer de TICDataXXXFromBitfields @ TICDataBatchXXXFromFieldIndex
# Expressions rgulire notepad++
# Find : TICDataSelectorIfBit\( ([0-9]*), Struct\("([^\"]*)"\/([^\)]*).*
# Replace: \1 : \3, # \2
from ._TIC_Tools import *
from ._TIC_Types import *
TICDataICEpFromBitfields = Struct(
... | 33.572519 | 74 | 0.698272 |
6714f1b0e63e554da53c6d95c385058b29428db0 | 2,095 | py | Python | tests/test_check_types.py | oliel/python-ovirt-engine-sdk4 | c0b13982b45dee664ebc063bda7686124b402c14 | [
"Apache-2.0"
] | 3 | 2022-01-14T00:37:58.000Z | 2022-03-26T12:26:32.000Z | tests/test_check_types.py | oliel/python-ovirt-engine-sdk4 | c0b13982b45dee664ebc063bda7686124b402c14 | [
"Apache-2.0"
] | 29 | 2021-07-20T12:42:44.000Z | 2022-03-28T13:01:33.000Z | tests/test_check_types.py | oliel/python-ovirt-engine-sdk4 | c0b13982b45dee664ebc063bda7686124b402c14 | [
"Apache-2.0"
] | 12 | 2021-07-20T12:27:07.000Z | 2022-02-24T11:10:12.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 30.362319 | 74 | 0.630072 |
6715015a823d4efe629d554c1f06e22bd2b8c5e4 | 7,518 | py | Python | nsi/shell.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | nsi/shell.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | nsi/shell.py | NextStepInnovation/nsi-tools | ee4c9a9e512a2fb4942699d88920bc8210a3d701 | [
"MIT"
] | null | null | null | import os
import io
import sys
import subprocess
import shlex
import logging
from threading import Timer
from typing import Callable, Any, List
from pathlib import Path # noqa: for doctest
import tempfile # noqa: for doctest
from .toolz import (
merge, map, pipe, curry, do, cprint
)
log = log... | 28.477273 | 91 | 0.580607 |
6715fb7acc45572b00524312f06dff2708091d1d | 8,934 | py | Python | ICLR_2022/Cubic_10D/PIVEN/DataGen.py | streeve/PI3NN | f7f08a195096e0388bb9230bc67c6acd6f41581a | [
"Apache-2.0"
] | 11 | 2021-11-08T20:38:50.000Z | 2022-01-30T02:46:39.000Z | ICLR_2022/Cubic_10D/PIVEN/DataGen.py | streeve/PI3NN | f7f08a195096e0388bb9230bc67c6acd6f41581a | [
"Apache-2.0"
] | 1 | 2022-01-13T19:46:32.000Z | 2022-02-09T16:23:56.000Z | ICLR_2022/Cubic_10D/PIVEN/DataGen.py | streeve/PI3NN | f7f08a195096e0388bb9230bc67c6acd6f41581a | [
"Apache-2.0"
] | 1 | 2021-12-17T18:38:26.000Z | 2021-12-17T18:38:26.000Z | """
Data creation:
Load the data, normalize it, and split into train and test.
"""
'''
Added the capability of loading pre-separated UCI train/test data
function LoadData_Splitted_UCI
'''
import numpy as np
import os
import pandas as pd
import tensorflow as tf
DATA_PATH = "../UCI_Datasets"
| 36.317073 | 123 | 0.580479 |
67161d52650aa2e5bc2f66de7b2914c066936052 | 362 | py | Python | after/config.py | mauvilsa/2021-config | 870fd832bda269a1be7bfba32dd327df9987e74a | [
"MIT"
] | 5 | 2021-12-25T15:16:16.000Z | 2022-03-19T09:04:39.000Z | after/config.py | ArjanCodes/2021-config | 7c2c3babb0fb66d69eac81590356fae512c5e784 | [
"MIT"
] | 1 | 2022-01-14T08:02:13.000Z | 2022-01-14T08:02:13.000Z | after/config.py | mauvilsa/2021-config | 870fd832bda269a1be7bfba32dd327df9987e74a | [
"MIT"
] | 1 | 2022-01-14T06:32:44.000Z | 2022-01-14T06:32:44.000Z | from dataclasses import dataclass
| 12.066667 | 33 | 0.679558 |
671650e9876f386bef01f59b8d08f601fc6d3ed8 | 14,103 | py | Python | lab7/lab7.py | cudaczek/nlp-labs-2020 | 8e40fe04d2350c6e43a36b29f4428a34aedb6dea | [
"MIT"
] | null | null | null | lab7/lab7.py | cudaczek/nlp-labs-2020 | 8e40fe04d2350c6e43a36b29f4428a34aedb6dea | [
"MIT"
] | null | null | null | lab7/lab7.py | cudaczek/nlp-labs-2020 | 8e40fe04d2350c6e43a36b29f4428a34aedb6dea | [
"MIT"
] | null | null | null | import pprint
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import manifold
from gensim.models import KeyedVectors
# Download polish word embeddings for word2vec github/Google drive:
# https://github.com/sdadas/polish-nlp-resources
# with 100 dimensionality
word2vec_100 = KeyedV... | 33.901442 | 127 | 0.667801 |
671762a970ef464f89d67b583ec5b5c7d9146820 | 1,427 | py | Python | Nimbus-Controller/sqs-fastreader.py | paulfdoyle/NIMBUS | 0f309b620c00a9438c55404e685bb1cafc44d200 | [
"MIT"
] | null | null | null | Nimbus-Controller/sqs-fastreader.py | paulfdoyle/NIMBUS | 0f309b620c00a9438c55404e685bb1cafc44d200 | [
"MIT"
] | null | null | null | Nimbus-Controller/sqs-fastreader.py | paulfdoyle/NIMBUS | 0f309b620c00a9438c55404e685bb1cafc44d200 | [
"MIT"
] | null | null | null | # This script adds a new message to a specific SQS queue
#
# Author - Paul Doyle Aug 2013
#
#
#from __future__ import print_function
import sys
import Queue
import boto.sqs
import argparse
import socket
import datetime
import sys
import time
from boto.sqs.attributes import Attributes
parser = argparse.ArgumentParser()... | 24.603448 | 154 | 0.733006 |
6718237fd3891c8aa0d6df664410cd0f7651353e | 1,547 | py | Python | dero/ml/results/reformat.py | whoopnip/dero | 62e081b341cc711ea8e1578e7c65b581eb74fa3f | [
"MIT"
] | null | null | null | dero/ml/results/reformat.py | whoopnip/dero | 62e081b341cc711ea8e1578e7c65b581eb74fa3f | [
"MIT"
] | 3 | 2020-03-24T17:57:46.000Z | 2021-02-02T22:25:37.000Z | dero/ml/results/reformat.py | whoopnip/dero | 62e081b341cc711ea8e1578e7c65b581eb74fa3f | [
"MIT"
] | null | null | null | from typing import Optional
import pandas as pd
from dero.ml.typing import ModelDict, AllModelResultsDict, DfDict
| 37.731707 | 97 | 0.700711 |
67194761b98bb4ec0d555cbb6324bf54ba4345ac | 663 | py | Python | engine/view.py | amirgeva/py2d | 88210240b71446d53ee85cf07ca8d253d522a265 | [
"BSD-2-Clause"
] | null | null | null | engine/view.py | amirgeva/py2d | 88210240b71446d53ee85cf07ca8d253d522a265 | [
"BSD-2-Clause"
] | null | null | null | engine/view.py | amirgeva/py2d | 88210240b71446d53ee85cf07ca8d253d522a265 | [
"BSD-2-Clause"
] | null | null | null | import pygame
from engine.utils import Rect
from engine.app import get_screen_size
# EXPORT
| 23.678571 | 89 | 0.600302 |
67194cbd5bb79a7249d2ae1d8a3b2168422d756c | 1,640 | py | Python | oldplugins/coin.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | 1 | 2019-06-27T08:45:23.000Z | 2019-06-27T08:45:23.000Z | oldplugins/coin.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | oldplugins/coin.py | sonicrules1234/sonicbot | 07a22d08bf86ed33dc715a800957aee3b45f3dde | [
"BSD-3-Clause"
] | null | null | null | import shelve, random
arguments = ["self", "info", "args", "world"]
minlevel = 2
helpstring = "coin <bet>"
def main(connection, info, args, world) :
"""Decides heads or tails based on the coinchance variable. Adds or removes appropriate amount of money"""
money = shelve.open("money-%s.db" % (connection.netwo... | 60.740741 | 251 | 0.587805 |
6719b8a502c31dfe0118ee06e1a1b37092b216f3 | 13,562 | py | Python | src/rbvfit/vfit_mcmc.py | manoranjan-s/rbvfit | a5c450f721c08dda02c431a5a079945a73a0cfc2 | [
"MIT"
] | null | null | null | src/rbvfit/vfit_mcmc.py | manoranjan-s/rbvfit | a5c450f721c08dda02c431a5a079945a73a0cfc2 | [
"MIT"
] | null | null | null | src/rbvfit/vfit_mcmc.py | manoranjan-s/rbvfit | a5c450f721c08dda02c431a5a079945a73a0cfc2 | [
"MIT"
] | null | null | null | from __future__ import print_function
import emcee
from multiprocessing import Pool
import numpy as np
import corner
import matplotlib.pyplot as plt
import sys
import scipy.optimize as op
from rbvfit.rb_vfit import rb_veldiff as rb_veldiff
from rbvfit import rb_setline as rb
import pdb
######## Computing Likelihoo... | 36.262032 | 204 | 0.539891 |
671a19cd137db70202b7e3303f276604903cd2b5 | 6,409 | py | Python | yolox/data/dataloading.py | XHYsdjkdsjsk2021/Yolox_xhy | a60f585d4d2bf36f9fa90b0a078efb7b315e0118 | [
"Apache-2.0"
] | null | null | null | yolox/data/dataloading.py | XHYsdjkdsjsk2021/Yolox_xhy | a60f585d4d2bf36f9fa90b0a078efb7b315e0118 | [
"Apache-2.0"
] | null | null | null | yolox/data/dataloading.py | XHYsdjkdsjsk2021/Yolox_xhy | a60f585d4d2bf36f9fa90b0a078efb7b315e0118 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Copyright (c) Megvii, Inc. and its affiliates.
import torch
from torch.utils.data.dataloader import DataLoader as torchDataLoader
from torch.utils.data.dataloader import default_collate
import os
import random
from .samplers import YoloBatchSampler
def ... | 35.804469 | 99 | 0.555469 |
671a1a30341f98dfd27e877827d5eea516829e2a | 7,765 | py | Python | env/lib/python3.9/site-packages/ansible/modules/cloud/amazon/_ec2_vpc_vpn_facts.py | unbounce/aws-name-asg-instances | e0379442e3ce71bf66ba9b8975b2cc57a2c7648d | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | env/lib/python3.9/site-packages/ansible/modules/cloud/amazon/_ec2_vpc_vpn_facts.py | unbounce/aws-name-asg-instances | e0379442e3ce71bf66ba9b8975b2cc57a2c7648d | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | env/lib/python3.9/site-packages/ansible/modules/cloud/amazon/_ec2_vpc_vpn_facts.py | unbounce/aws-name-asg-instances | e0379442e3ce71bf66ba9b8975b2cc57a2c7648d | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | #!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = r'''
---
module: ec2_vpc_vpn_info
version_added: 1.0.0
short_description:... | 35.619266 | 157 | 0.642112 |
671aa126c99ce28f4a40eb764f765d0b5bf6665c | 10,454 | py | Python | cogs/roleselector.py | YouGotSchott/tcs-discord-bot | 696db5da129ef42f4c5047679d289aeb6ed122a9 | [
"MIT"
] | 1 | 2021-04-30T06:38:31.000Z | 2021-04-30T06:38:31.000Z | cogs/roleselector.py | YouGotSchott/tcs-discord-bot | 696db5da129ef42f4c5047679d289aeb6ed122a9 | [
"MIT"
] | null | null | null | cogs/roleselector.py | YouGotSchott/tcs-discord-bot | 696db5da129ef42f4c5047679d289aeb6ed122a9 | [
"MIT"
] | 1 | 2019-04-28T03:33:35.000Z | 2019-04-28T03:33:35.000Z | import discord
from discord.ext import commands
from pathlib import Path
from config import bot
from collections import OrderedDict
import json
| 46.052863 | 147 | 0.505931 |
671b9c9f7b2c7728391666847cc8f06a6c3abea1 | 468 | py | Python | Bunnies.py | fatih-iver/Intro-to-Computer-Science-with-Python | 7b8127681415dfd100a0e70fe8a672cec696bbb7 | [
"MIT"
] | null | null | null | Bunnies.py | fatih-iver/Intro-to-Computer-Science-with-Python | 7b8127681415dfd100a0e70fe8a672cec696bbb7 | [
"MIT"
] | null | null | null | Bunnies.py | fatih-iver/Intro-to-Computer-Science-with-Python | 7b8127681415dfd100a0e70fe8a672cec696bbb7 | [
"MIT"
] | null | null | null | # Define a procedure, fibonacci, that takes a natural number as its input, and
# returns the value of that fibonacci number.
# Two Base Cases:
# fibonacci(0) => 0
# fibonacci(1) => 1
# Recursive Case:
# n > 1 : fibonacci(n) => fibonacci(n-1) + fibonacci(n-2)
print (fibonacci(0))
#>>> 0
print... | 24.631579 | 79 | 0.604701 |
671bdca4dcc88d2670523ab9386ad959165e1bf4 | 1,876 | py | Python | symphony/cli/graphql_compiler/tests/test_utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T09:01:40.000Z | 2020-06-05T09:01:40.000Z | symphony/cli/graphql_compiler/tests/test_utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 14 | 2019-11-15T12:01:18.000Z | 2019-12-12T14:37:42.000Z | symphony/cli/graphql_compiler/tests/test_utils_codegen.py | remo5000/magma | 1d1dd9a23800a8e07b1ce016776d93e12430ec15 | [
"BSD-3-Clause"
] | 3 | 2019-11-15T15:56:25.000Z | 2019-11-21T10:34:59.000Z | #!/usr/bin/env python3
from .base_test import BaseTest
from fbc.symphony.cli.graphql_compiler.gql.utils_codegen import CodeChunk
| 24.363636 | 73 | 0.537846 |
671c056e5378258e43c069fd46366a89b0af73b7 | 202 | py | Python | api/__init__.py | zhangyouliang/TencentComicBook | 74d8e7e787f70554d5d982687540a6ac3225b9ed | [
"MIT"
] | null | null | null | api/__init__.py | zhangyouliang/TencentComicBook | 74d8e7e787f70554d5d982687540a6ac3225b9ed | [
"MIT"
] | null | null | null | api/__init__.py | zhangyouliang/TencentComicBook | 74d8e7e787f70554d5d982687540a6ac3225b9ed | [
"MIT"
] | null | null | null | from flask import Flask
| 18.363636 | 39 | 0.70297 |
671c98674cb5f008f240bb63dd21b79174a4ca79 | 898 | py | Python | misc/pytorch_toolkit/chest_xray_screening/chest_xray_screening/utils/get_config.py | a-a-egorovich/training_extensions | e0bbdfa4266c6ccfebf23ef303204a4a62fc290d | [
"Apache-2.0"
] | null | null | null | misc/pytorch_toolkit/chest_xray_screening/chest_xray_screening/utils/get_config.py | a-a-egorovich/training_extensions | e0bbdfa4266c6ccfebf23ef303204a4a62fc290d | [
"Apache-2.0"
] | null | null | null | misc/pytorch_toolkit/chest_xray_screening/chest_xray_screening/utils/get_config.py | a-a-egorovich/training_extensions | e0bbdfa4266c6ccfebf23ef303204a4a62fc290d | [
"Apache-2.0"
] | 1 | 2021-05-08T04:29:44.000Z | 2021-05-08T04:29:44.000Z | import os
import json
def get_config(action, optimised = False):
""" action: train, test, export or gdrive
optimised: False --> DenseNet121
True --> DenseNet121Eff
"""
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
config_path = os.... | 33.259259 | 93 | 0.609131 |
671d6732bc9abaae404bc6f0b8c59f26d23ca716 | 3,337 | py | Python | src/udpa/annotations/versioning_pb2.py | pomerium/enterprise-client-python | 366d72cc9cd6dc05fae704582deb13b1ccd20a32 | [
"Apache-2.0"
] | 1 | 2021-09-14T04:34:29.000Z | 2021-09-14T04:34:29.000Z | src/udpa/annotations/versioning_pb2.py | pomerium/enterprise-client-python | 366d72cc9cd6dc05fae704582deb13b1ccd20a32 | [
"Apache-2.0"
] | 3 | 2021-09-15T15:10:41.000Z | 2022-01-04T21:03:03.000Z | src/udpa/annotations/versioning_pb2.py | pomerium/enterprise-client-python | 366d72cc9cd6dc05fae704582deb13b1ccd20a32 | [
"Apache-2.0"
] | 1 | 2021-09-13T21:51:37.000Z | 2021-09-13T21:51:37.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: udpa/annotations/versioning.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection... | 39.258824 | 374 | 0.802218 |
671ef5ab0fb204c856b7864f6aaa3913e2ce45e8 | 2,787 | py | Python | modules/action/scan_smbclient_nullsession.py | mrpnkt/apt2 | 542fb0593069c900303421f3f24a499ce8f3a6a8 | [
"MIT"
] | 37 | 2018-08-24T20:13:19.000Z | 2022-02-22T08:41:24.000Z | modules/action/scan_smbclient_nullsession.py | zu3s/apt2-1 | 67325052d2713a363183c23188a67e98a379eec7 | [
"MIT"
] | 4 | 2020-06-14T23:16:45.000Z | 2021-03-08T14:18:21.000Z | modules/action/scan_smbclient_nullsession.py | zu3s/apt2-1 | 67325052d2713a363183c23188a67e98a379eec7 | [
"MIT"
] | 23 | 2018-11-15T13:00:09.000Z | 2021-08-07T18:53:04.000Z | import re
from core.actionModule import actionModule
from core.keystore import KeyStore as kb
from core.utils import Utils
| 42.227273 | 108 | 0.545748 |
67217c13d08aaa4cb02ed01fdfa62904c93ef245 | 2,652 | py | Python | UserSpace/Python/Cosmo.py | dkaramit/MiMeS | a3c97a4877f181b54e880d7b144271c5659291b5 | [
"MIT"
] | 2 | 2022-01-27T20:10:19.000Z | 2022-01-29T04:26:16.000Z | UserSpace/Python/Cosmo.py | dkaramit/MiMeS | a3c97a4877f181b54e880d7b144271c5659291b5 | [
"MIT"
] | null | null | null | UserSpace/Python/Cosmo.py | dkaramit/MiMeS | a3c97a4877f181b54e880d7b144271c5659291b5 | [
"MIT"
] | null | null | null | from numpy import logspace
from sys import path as sysPath
sysPath.append('../../src')
#load the module
from interfacePy import Cosmo
cosmo=Cosmo('../../src/data/eos2020.dat',0,1e5)
for T in logspace(-5,5,50):
print(
'T=',T,'GeV\t',
'H=',cosmo.Hubble(T),'GeV\t',
'h_eff=',cosmo.heff(T),... | 28.212766 | 92 | 0.584465 |
6721e6112f2f0c4cefe44686fc888d2b7c5c0f42 | 5,236 | py | Python | src/psion/oauth2/endpoints/revocation.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | 2 | 2021-02-22T22:12:23.000Z | 2021-02-22T22:48:33.000Z | src/psion/oauth2/endpoints/revocation.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | src/psion/oauth2/endpoints/revocation.py | revensky/psion | dfe38a1a4f4d6a5029d0973dbe1326415df6d512 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Optional
from psion.oauth2.exceptions import InvalidClient, OAuth2Error, UnsupportedTokenType
from psion.oauth2.models import JSONResponse, Request
from .base import BaseEndpoint
| 41.228346 | 86 | 0.661383 |
67221620473d936c0d65eea07a40a563dbd162cf | 1,851 | py | Python | experiments/Browser/browser.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 3 | 2021-12-01T02:11:15.000Z | 2022-02-03T22:45:00.000Z | experiments/Browser/browser.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 4 | 2021-11-27T11:04:36.000Z | 2022-02-17T02:53:21.000Z | experiments/Browser/browser.py | rajKarra69420/bento | 1324189e26acfe3a372882519bd78e037d93997c | [
"BSD-3-Clause"
] | 5 | 2021-07-01T20:23:43.000Z | 2022-03-12T18:10:34.000Z | #!/usr/bin/env python3
import argparse
import logging
import sys
import zlib
sys.path.append("../..")
from bento.client.api import ClientConnection
from bento.common.protocol import *
import bento.common.util as util
function_name= "browser"
function_code= """
import requests
import zlib
import os
def browser(url, ... | 27.626866 | 76 | 0.686116 |
67224f47630e980eac0b94abcd62dd84644278c0 | 3,429 | py | Python | app/views/v1/search.py | daghan/Ostrich | b12057bee7b8b92aedf09ec40edc97a60340527b | [
"MIT"
] | null | null | null | app/views/v1/search.py | daghan/Ostrich | b12057bee7b8b92aedf09ec40edc97a60340527b | [
"MIT"
] | null | null | null | app/views/v1/search.py | daghan/Ostrich | b12057bee7b8b92aedf09ec40edc97a60340527b | [
"MIT"
] | null | null | null | from app import webapp, mysql
from app.models import Search , Utils, Collection, WebUtils
from flask import request, jsonify
from flask.ext.jsonpify import jsonify as jsonp
import json
'''
Generic search call
@params
q: search query
page: the page number of search results (default 0)
t... | 34.636364 | 84 | 0.680082 |
6722b1ddb17bb6d89f4ea39b1f185bec7d6cfcf6 | 555 | py | Python | run.py | orest-d/pointcloud-viewer-rs | 0d6d3f27e24d1783c4812a14457f8e20c4ef6f0b | [
"MIT"
] | null | null | null | run.py | orest-d/pointcloud-viewer-rs | 0d6d3f27e24d1783c4812a14457f8e20c4ef6f0b | [
"MIT"
] | null | null | null | run.py | orest-d/pointcloud-viewer-rs | 0d6d3f27e24d1783c4812a14457f8e20c4ef6f0b | [
"MIT"
] | null | null | null | from flask import Flask, make_response
app = Flask(__name__)
if __name__ == "__main__":
app.run(debug=True,port=8080)
| 20.555556 | 57 | 0.625225 |
6724bee4efbfb26d55e405a724ed5a24e2b08168 | 8,496 | py | Python | engine/audio/audio_director.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 3 | 2017-12-07T19:17:36.000Z | 2021-07-29T18:24:25.000Z | engine/audio/audio_director.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 41 | 2017-11-11T06:00:08.000Z | 2022-03-28T23:27:25.000Z | engine/audio/audio_director.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 2 | 2018-08-31T23:49:00.000Z | 2021-09-21T00:42:48.000Z | from .audio_source import AudioSource
from engine import disk
import pyglet.media
| 38.27027 | 79 | 0.631474 |
6726c80fc78ce012124f71d544ed59aef2223c32 | 2,858 | py | Python | source/windows10 system repair tool.py | programmer24680/windows10-system-repair-tool | 130e9c55a7448811994a4bc04f2c3362d96cf9c9 | [
"MIT"
] | 1 | 2021-01-25T06:44:45.000Z | 2021-01-25T06:44:45.000Z | source/windows10 system repair tool.py | programmer24680/windows10-system-repair-tool | 130e9c55a7448811994a4bc04f2c3362d96cf9c9 | [
"MIT"
] | null | null | null | source/windows10 system repair tool.py | programmer24680/windows10-system-repair-tool | 130e9c55a7448811994a4bc04f2c3362d96cf9c9 | [
"MIT"
] | null | null | null | import os
import time
print("=====================================================================")
print(" ")
print(" STARTING SYSTEM REPAIR ")
print(" ... | 42.029412 | 109 | 0.537089 |
6728b39bc11d9e4b1e1974a7a10fb1bb5d2f22d9 | 3,368 | py | Python | tests/test_fid_score.py | jwblangley/pytorch-fid | 3d604a25516746c3a4a5548c8610e99010b2c819 | [
"Apache-2.0"
] | 1,732 | 2018-03-05T19:20:48.000Z | 2022-03-31T08:11:03.000Z | tests/test_fid_score.py | jwblangley/pytorch-fid | 3d604a25516746c3a4a5548c8610e99010b2c819 | [
"Apache-2.0"
] | 70 | 2018-06-29T07:48:43.000Z | 2022-03-29T13:14:07.000Z | tests/test_fid_score.py | jwblangley/pytorch-fid | 3d604a25516746c3a4a5548c8610e99010b2c819 | [
"Apache-2.0"
] | 357 | 2018-03-14T06:35:24.000Z | 2022-03-31T11:04:39.000Z | import numpy as np
import pytest
import torch
from PIL import Image
from pytorch_fid import fid_score, inception
| 32.699029 | 77 | 0.540974 |
6728f13a7364357219192b47721a96d415fff8dc | 873 | py | Python | run/client.py | withcouragetol/codebee-10l | 2636b8fc1b456a85201b868201cf9c147d739031 | [
"Apache-2.0"
] | 6 | 2018-04-13T09:48:26.000Z | 2020-06-22T13:42:10.000Z | run/client.py | withcouragetol/codebee-10l | 2636b8fc1b456a85201b868201cf9c147d739031 | [
"Apache-2.0"
] | null | null | null | run/client.py | withcouragetol/codebee-10l | 2636b8fc1b456a85201b868201cf9c147d739031 | [
"Apache-2.0"
] | 2 | 2018-09-04T07:09:50.000Z | 2019-08-18T15:11:00.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import time
if __name__=="__main__":
emsc = emsc_client()
emsc.run() | 24.942857 | 77 | 0.514318 |
672a7017194500a70a969cf6e26d3c8f610f807f | 2,765 | py | Python | src/sonic_ax_impl/main.py | stepanblyschak/sonic-snmpagent | 45edd7e689922ecf90697d099285f7cce99742c8 | [
"Apache-2.0"
] | 13 | 2016-03-09T20:38:16.000Z | 2021-02-04T17:39:27.000Z | src/sonic_ax_impl/main.py | stepanblyschak/sonic-snmpagent | 45edd7e689922ecf90697d099285f7cce99742c8 | [
"Apache-2.0"
] | 167 | 2017-02-01T23:16:11.000Z | 2022-03-31T02:22:08.000Z | src/sonic_ax_impl/main.py | xumia/sonic-snmpagent | 4e063e4ade89943f2413a767f24564aecfa2cd1c | [
"Apache-2.0"
] | 89 | 2016-03-09T20:38:18.000Z | 2022-03-09T09:16:13.000Z | """
SNMP subagent entrypoint.
"""
import asyncio
import functools
import os
import signal
import sys
import ax_interface
from sonic_ax_impl.mibs import ieee802_1ab
from . import logger
from .mibs.ietf import rfc1213, rfc2737, rfc2863, rfc3433, rfc4292, rfc4363
from .mibs.vendor import dell, cisco
# Background task u... | 32.151163 | 111 | 0.718626 |
672a72c5fc5af6da05a603f68e577831d5bb4e8d | 8,000 | py | Python | btk_server.py | bedrin/keyboard_mouse_emulate_on_raspberry | 2f1f0cff4b5c5b2e20159d0e91542ec8a5a48e3c | [
"MIT"
] | null | null | null | btk_server.py | bedrin/keyboard_mouse_emulate_on_raspberry | 2f1f0cff4b5c5b2e20159d0e91542ec8a5a48e3c | [
"MIT"
] | null | null | null | btk_server.py | bedrin/keyboard_mouse_emulate_on_raspberry | 2f1f0cff4b5c5b2e20159d0e91542ec8a5a48e3c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from __future__ import absolute_import, print_function
from optparse import OptionParser, make_option
import os
import sys
import uuid
import dbus
import dbus.service
import dbus.mainloop.glib
import time
import socket
from gi.repository import GLib
from dbus.mainloop.glib import DBusGMainLoop
impor... | 34.188034 | 103 | 0.59525 |
672b2fd274da4c3abef696a1ce2183fc11422e30 | 11,479 | py | Python | ai2thor/util/visualize_3D_bbox.py | KuoHaoZeng/ai2thor-1 | 7cc3295f8ac7a272078159f44b74bf61d1d2bb56 | [
"Apache-2.0"
] | null | null | null | ai2thor/util/visualize_3D_bbox.py | KuoHaoZeng/ai2thor-1 | 7cc3295f8ac7a272078159f44b74bf61d1d2bb56 | [
"Apache-2.0"
] | null | null | null | ai2thor/util/visualize_3D_bbox.py | KuoHaoZeng/ai2thor-1 | 7cc3295f8ac7a272078159f44b74bf61d1d2bb56 | [
"Apache-2.0"
] | null | null | null | import ai2thor.controller
import numpy as np
from PIL import Image, ImageDraw
if __name__ == "__main__":
# give the height and width of the 2D image and scene id
w, h = 900, 900
scene = "FloorPlan2{:02d}_physics".format(1)
# allocate controller and initialize the scene and agent
# local_path ... | 46.100402 | 119 | 0.4787 |
672b4006ae24930b53edb66efd8fb73b92773911 | 3,754 | py | Python | sa/profiles/ElectronR/KO01M/get_metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/ElectronR/KO01M/get_metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/ElectronR/KO01M/get_metrics.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# ElectronR.KO01M.get_metrics
# ---------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC... | 43.149425 | 98 | 0.485615 |