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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4cad8e8992ae30f9b134717c3b3a0717a48b60e | 9,781 | py | Python | refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 103 | 2015-01-13T00:48:14.000Z | 2021-11-08T10:53:22.000Z | refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 7 | 2015-02-21T04:03:40.000Z | 2021-08-23T20:24:54.000Z | refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py | csa0001/Refinery | 0d5de8fc3d680a2c79bd0e9384b506229787c74f | [
"MIT"
] | 27 | 2015-01-23T00:54:31.000Z | 2020-12-30T14:30:50.000Z | '''
Unit tests for MergeMove.py for HDPTopicModels
Verification merging works as expected and produces valid models.
Attributes
------------
self.Data : K=4 simple WordsData object from AbstractBaseTestForHDP
self.hmodel : K=4 simple bnpy model from AbstractBaseTestForHDP
Coverage
-----------
* run_many_merge_moves... | 42.71179 | 132 | 0.661896 |
a4cb13969e913f20fb909e4c665d75e81e4a9503 | 5,309 | py | Python | bluzelle/codec/crud/Paging_pb2.py | hhio618/bluezelle-py | c38a07458a36305457680196e8c47372008db5ab | [
"MIT"
] | 3 | 2021-08-19T10:09:29.000Z | 2022-01-05T14:19:59.000Z | bluzelle/codec/crud/Paging_pb2.py | hhio618/bluzelle-py | c38a07458a36305457680196e8c47372008db5ab | [
"MIT"
] | null | null | null | bluzelle/codec/crud/Paging_pb2.py | hhio618/bluzelle-py | c38a07458a36305457680196e8c47372008db5ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: crud/Paging.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
from google.pro... | 30.687861 | 323 | 0.63722 |
a4cb393ccfc40dfac226961281c5eae50416352c | 2,249 | py | Python | Python/Utilities/dater.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | Python/Utilities/dater.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | Python/Utilities/dater.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | import sys
import time
from datetime import datetime, timedelta
import os
import pathlib
from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
creation = "C:\\Date de cration"
today = "C:\\Date d'aujourd'hui"
last_modification = "C:\\Date de dernire modification"
if __name__ == ... | 36.274194 | 120 | 0.59004 |
a4cbc8eb1a90dacf94afc3353aa00d270b02f07d | 7,956 | py | Python | blendhunter/blend.py | andrevitorelli/BlendHunter | 64e4c97e7e0995e2d3561300dff708ca86adb380 | [
"MIT"
] | 2 | 2019-07-01T15:12:50.000Z | 2021-03-03T18:57:06.000Z | blendhunter/blend.py | ablacan/BlendHunter | 2806648bcdd1b192457daf1c7ae1f90869deeca6 | [
"MIT"
] | 4 | 2021-04-27T11:31:17.000Z | 2021-07-13T09:01:42.000Z | blendhunter/blend.py | ablacan/BlendHunter | 2806648bcdd1b192457daf1c7ae1f90869deeca6 | [
"MIT"
] | 1 | 2022-02-10T13:39:54.000Z | 2022-02-10T13:39:54.000Z | # -*- coding: utf-8 -*-
""" BLEND
This module defines classes and methods for blending images.
:Author: Samuel Farrens <samuel.farrens@cea.fr>
"""
import numpy as np
from lmfit import Model
from lmfit.models import GaussianModel, ConstantModel
from modopt.base.np_adjust import pad2d
from sf_tools.image.stamp impor... | 31.571429 | 79 | 0.54085 |
a4cc37aae42aa69844101a9983d06cd085b2f1ce | 1,159 | py | Python | Guia/4.0-Estados_conversacion.py | nicosiebert2/telegram-bot | 4d2a44382290f6fa3b94572cbeba344ef68c825d | [
"MIT"
] | null | null | null | Guia/4.0-Estados_conversacion.py | nicosiebert2/telegram-bot | 4d2a44382290f6fa3b94572cbeba344ef68c825d | [
"MIT"
] | null | null | null | Guia/4.0-Estados_conversacion.py | nicosiebert2/telegram-bot | 4d2a44382290f6fa3b94572cbeba344ef68c825d | [
"MIT"
] | null | null | null | import logging
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler, ConversationHandler
#Obtener la info de la sesion
logging.basicConfig(level = logging.INFO, format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s")
logge... | 27.595238 | 107 | 0.691113 |
a4cde45972393a744163a78ff712575ad44f9c88 | 42,133 | py | Python | src/radical/pilot/unit_manager.py | karahbit/radical.pilot | c611e1df781749deef899dcf5815728e1d8a962e | [
"MIT"
] | null | null | null | src/radical/pilot/unit_manager.py | karahbit/radical.pilot | c611e1df781749deef899dcf5815728e1d8a962e | [
"MIT"
] | null | null | null | src/radical/pilot/unit_manager.py | karahbit/radical.pilot | c611e1df781749deef899dcf5815728e1d8a962e | [
"MIT"
] | null | null | null |
__copyright__ = "Copyright 2013-2016, http://radical.rutgers.edu"
__license__ = "MIT"
import os
import time
import threading as mt
import radical.utils as ru
from . import utils as rpu
from . import states as rps
from . import constants as rpc
from . import compute_unit_description as rpcud
# bulk call... | 35.228261 | 84 | 0.515297 |
a4cdf015552f19cc1e695e21a45142e408efd72b | 11,130 | py | Python | syncstream/file.py | cainmagi/sync-stream | 8d50bd2c9f13071b057dd2583b80f63229f89b0e | [
"MIT"
] | null | null | null | syncstream/file.py | cainmagi/sync-stream | 8d50bd2c9f13071b057dd2583b80f63229f89b0e | [
"MIT"
] | null | null | null | syncstream/file.py | cainmagi/sync-stream | 8d50bd2c9f13071b057dd2583b80f63229f89b0e | [
"MIT"
] | null | null | null | #!python
# -*- coding: UTF-8 -*-
'''
################################################################
# File-based stream synchronization.
# @ Sync-stream
# Produced by
# Yuchen Jin @ cainmagi@gmail.com,
# yjin4@uh.edu.
# Requirements: (Pay attention to version)
# python 3.6+
# fasteners 0.16+
# This m... | 42.972973 | 123 | 0.591554 |
a4d004f441fa442a8baa2ecc38cd15fb719c4976 | 1,636 | py | Python | spatialtis/_plotting/__init__.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | 10 | 2020-07-14T13:27:35.000Z | 2021-11-24T21:41:30.000Z | spatialtis/_plotting/__init__.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | 21 | 2021-01-10T09:39:25.000Z | 2022-03-12T01:04:52.000Z | spatialtis/_plotting/__init__.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | null | null | null | import matplotlib as mpl
from matplotlib import cycler
from .api import (
NCDMarkers,
NMDMarkers,
cell_co_occurrence,
cell_components,
cell_density,
cell_map,
cell_morphology,
community_map,
expression_map,
neighborhood_analysis,
neighbors_map,
spatial_co_expression,
... | 23.371429 | 47 | 0.575183 |
a4d084b6842b2f5652d3fa521fd4534554cd0a32 | 518 | py | Python | terminal.py | TeknohouseID/rumah_aria_graha_NEW_2018 | c3513100f68ce57be477372bbc7176ddbde607ad | [
"Unlicense"
] | null | null | null | terminal.py | TeknohouseID/rumah_aria_graha_NEW_2018 | c3513100f68ce57be477372bbc7176ddbde607ad | [
"Unlicense"
] | null | null | null | terminal.py | TeknohouseID/rumah_aria_graha_NEW_2018 | c3513100f68ce57be477372bbc7176ddbde607ad | [
"Unlicense"
] | null | null | null | import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
pin_terminal = [15,16] #definisi pin GPIO yg terhubung ke relay terminal
GPIO.setup(pin_terminal, GPIO.OUT)
#Coded by Faisal Candrasyah H, Founder Teknohouse.ID, Co-founder and former CTO of Indisbuilding
#pin 15 = relay 4 = dispenser_cewek
... | 24.666667 | 96 | 0.758687 |
a4d08644e553bef96fa074dce2bce8a5b53b58cb | 722 | py | Python | ListaExercicios1/exercicio21.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | ListaExercicios1/exercicio21.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | ListaExercicios1/exercicio21.py | GabrielSouzaGit/PythonStudies | 49ec26d4ae45999695ab32f8e1f27587adb5ca4b | [
"MIT"
] | null | null | null | '''Escreva um programa que solicite ao usurio dois nmeros e apresente na tela os resultados das
operaes aritmticas (soma, subtrao, multiplicao, diviso, resto da diviso, exponenciao, radiciao)'''
import math
num1 = float(input('Informe um numero: '))
num2 = float(input('Informe outro numero: '))
print(f'a soma dos num... | 55.538462 | 111 | 0.742382 |
a4d104f25c19782240064f16d0ff882042f1b364 | 2,706 | py | Python | benchmarking/remote/django_url_printer.py | virtan/FAI-PEP | 8641a54b2328c343ab0470f195a42da1021d1392 | [
"Apache-2.0"
] | 1 | 2019-08-09T07:50:21.000Z | 2019-08-09T07:50:21.000Z | benchmarking/remote/django_url_printer.py | virtan/FAI-PEP | 8641a54b2328c343ab0470f195a42da1021d1392 | [
"Apache-2.0"
] | 1 | 2021-04-19T09:50:14.000Z | 2021-04-19T09:50:14.000Z | benchmarking/remote/django_url_printer.py | isabella232/FAI-PEP | a4089c79ab765e7f05080348c2978a07c3487d4c | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import json
import os
import urllib
from remote.url_printer_base import URLPrinterBase
from remote.url_printer_base import registerResultURL
DJANGO_SUB_URL = "benchmark/visualize"
DISPLAY_COLUMNS = [
"identifier",
"metric",
... | 25.528302 | 82 | 0.546194 |
a4d11f16c93cfceb962bd09ed2bcc56346026e31 | 4,595 | py | Python | pynq_networking/lib/mqttsn_sw.py | Xilinx/PYNQ-Networking | b763121537e2973734d87e874c41012f044fb1f8 | [
"BSD-3-Clause"
] | 40 | 2017-10-19T20:36:59.000Z | 2022-02-16T08:04:29.000Z | pynq_networking/lib/mqttsn_sw.py | drichmond/PYNQ-Networking | d9baf100dfbf8672b7fe9da108cbd2d26a289771 | [
"BSD-3-Clause"
] | 12 | 2018-02-13T19:51:14.000Z | 2021-11-01T12:03:31.000Z | pynq_networking/lib/mqttsn_sw.py | drichmond/PYNQ-Networking | d9baf100dfbf8672b7fe9da108cbd2d26a289771 | [
"BSD-3-Clause"
] | 13 | 2018-01-05T01:39:35.000Z | 2020-12-10T16:21:07.000Z | # Copyright (c) 2017, Xilinx, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of con... | 35.346154 | 79 | 0.641785 |
a4d16b4c3d74ca8d527ddca0d0151b53656d5161 | 1,364 | py | Python | python/problems/degree_of_an_array.py | vivaxy/algorithms | b2e49476ed2ad1fd82a1183f656d1907a666c347 | [
"MIT"
] | 1 | 2019-05-04T13:21:41.000Z | 2019-05-04T13:21:41.000Z | python/problems/degree_of_an_array.py | vivaxy/algorithms | b2e49476ed2ad1fd82a1183f656d1907a666c347 | [
"MIT"
] | 1 | 2021-08-30T09:34:58.000Z | 2021-08-30T09:34:58.000Z | python/problems/degree_of_an_array.py | vivaxy/algorithms | b2e49476ed2ad1fd82a1183f656d1907a666c347 | [
"MIT"
] | null | null | null | """
https://leetcode.com/problems/degree-of-an-array/
https://leetcode.com/submissions/detail/130966108/
"""
import unittest
if __name__ == '__main__':
unittest.main()
| 26.230769 | 75 | 0.483138 |
a4d2bfb9bbe71f1897475772fae314ec357bb5a9 | 13,245 | py | Python | tests/test_model_finder_multiclass.py | maciek3000/data_dashboard | 1b573b674d37f57ae7e8bbfb1e83c801b488dfd6 | [
"MIT"
] | 8 | 2021-05-03T04:06:15.000Z | 2022-01-15T16:27:42.000Z | tests/test_model_finder_multiclass.py | maciek3000/data_dashboard | 1b573b674d37f57ae7e8bbfb1e83c801b488dfd6 | [
"MIT"
] | null | null | null | tests/test_model_finder_multiclass.py | maciek3000/data_dashboard | 1b573b674d37f57ae7e8bbfb1e83c801b488dfd6 | [
"MIT"
] | 3 | 2021-05-19T17:31:18.000Z | 2021-06-19T12:24:01.000Z | import pytest
import numpy as np
import pandas as pd
from sklearn.linear_model import LogisticRegression, RidgeClassifier
from sklearn.tree import DecisionTreeClassifier
from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
from sklearn.dummy import DummyClassifier
def test_model_finder_multiclass_d... | 39.655689 | 119 | 0.693016 |
a4d2c519e52801c5f72a8807dcf068695b6c4b84 | 2,249 | py | Python | possum/utils/pipenv_.py | brysontyrrell/Possum | 0ae7c90d7890f16d8405e346b0778bf878e29d5f | [
"MIT"
] | 24 | 2018-03-14T15:25:52.000Z | 2019-03-13T18:36:46.000Z | possum/utils/pipenv_.py | brysontyrrell/Possum | 0ae7c90d7890f16d8405e346b0778bf878e29d5f | [
"MIT"
] | 20 | 2018-04-11T04:36:40.000Z | 2019-01-17T11:44:30.000Z | possum/utils/pipenv_.py | brysontyrrell/Possum | 0ae7c90d7890f16d8405e346b0778bf878e29d5f | [
"MIT"
] | 5 | 2018-01-04T21:10:15.000Z | 2019-01-16T20:10:12.000Z | import os
import shutil
import subprocess
from possum.exc import PipenvPathNotFound
| 29.592105 | 77 | 0.581147 |
a4d3c18e507f51dc482e2dde54e9596a534b4b39 | 360 | py | Python | tests/test__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | 1 | 2020-07-22T12:19:26.000Z | 2020-07-22T12:19:26.000Z | tests/test__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | tests/test__init__.py | Combofoods/pyenv | 8b33173e593054b8d46a8c3be99c44f7294c7069 | [
"MIT"
] | null | null | null | import pytest
import envpy
import os
folder = os.path.dirname(__file__)
folder_env_file = f'{folder}/resources'
file_dot_env = 'test.env'
if __name__ == "__main__":
test__init__() | 18 | 64 | 0.713889 |
a4d467254a4a29717b7a458692ff809fe8f6fa14 | 195 | py | Python | randomAgent.py | FavOla/SIAUROP | 9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff | [
"MIT"
] | null | null | null | randomAgent.py | FavOla/SIAUROP | 9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff | [
"MIT"
] | null | null | null | randomAgent.py | FavOla/SIAUROP | 9d3f4ade1ab00a16dbc8ae9c1bd8c1f960d11aff | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: fnels
"""
import random
| 16.25 | 44 | 0.558974 |
a4d50e8466b5656c97fd8b070e30b4fcbd98845c | 18,320 | py | Python | scripts/owlnets_script/__main__pre_20210905.py | hubmapconsortium/ontology-api | f7fadf31de028acdd9cabbb5e9d6e48b9863ffac | [
"MIT"
] | 2 | 2021-10-03T15:31:55.000Z | 2021-10-04T08:55:23.000Z | scripts/owlnets_script/__main__pre_20210905.py | hubmapconsortium/ontology-api | f7fadf31de028acdd9cabbb5e9d6e48b9863ffac | [
"MIT"
] | 105 | 2020-12-11T13:03:31.000Z | 2022-03-31T17:08:03.000Z | scripts/owlnets_script/__main__pre_20210905.py | hubmapconsortium/ontology-api | f7fadf31de028acdd9cabbb5e9d6e48b9863ffac | [
"MIT"
] | 2 | 2021-07-08T14:49:25.000Z | 2022-02-14T20:12:20.000Z | #!/usr/bin/env python
import argparse
import os
import pkt_kg as pkt
import psutil
import re
from rdflib import Graph
from rdflib.namespace import OWL, RDF, RDFS
from tqdm import tqdm
import glob
import logging.config
import time
from datetime import timedelta
from lxml import etree
from urllib.request import urlopen
... | 41.076233 | 128 | 0.667959 |
a4d78de1db41ad21fc14b47b7c3883106da48d50 | 11,513 | py | Python | utils/RunONNXModel.py | kwu91/onnx-mlir | 0b77ee750de015a2a3212556092ce535bc5d831a | [
"Apache-2.0"
] | 1 | 2021-10-01T02:46:03.000Z | 2021-10-01T02:46:03.000Z | utils/RunONNXModel.py | lipracer/onnx-mlir | ecacba10912457d91cfe66799ae2d4408ed85af7 | [
"Apache-2.0"
] | null | null | null | utils/RunONNXModel.py | lipracer/onnx-mlir | ecacba10912457d91cfe66799ae2d4408ed85af7 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import argparse
import onnx
import time
import subprocess
import numpy as np
import tempfile
from onnx import numpy_helper
from collections import OrderedDict
# Command arguments.
parser = argparse.ArgumentParser()
parser.add_argument('model_path', type=str, help="Path to the ONNX model.")
parser... | 39.428082 | 98 | 0.588118 |
a4d7f579f4f81770778c2fff64640120abcdce53 | 262 | py | Python | test/run/t242.py | timmartin/skulpt | 2e3a3fbbaccc12baa29094a717ceec491a8a6750 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | test/run/t242.py | csev/skulpt | 9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | test/run/t242.py | csev/skulpt | 9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | print K1.__mro__
print K2.__mro__
print K3.__mro__
print Z.__mro__
| 17.466667 | 23 | 0.698473 |
a4d8df51b3654641073f7de35aaf60a1014ee347 | 3,154 | py | Python | bot/assets/wiki/wiki.py | AdvaithGS/Astrobot | 6b63f8cd015a24d8211dcbac496bf9f5dd6275d4 | [
"MIT"
] | 2 | 2021-12-04T14:27:04.000Z | 2021-12-22T08:52:41.000Z | bot/assets/wiki/wiki.py | AdvaithGS/Astrobot | 6b63f8cd015a24d8211dcbac496bf9f5dd6275d4 | [
"MIT"
] | null | null | null | bot/assets/wiki/wiki.py | AdvaithGS/Astrobot | 6b63f8cd015a24d8211dcbac496bf9f5dd6275d4 | [
"MIT"
] | null | null | null | import requests
from json import loads
from bs4 import BeautifulSoup
from os import environ
l = ['atom','moon','star','space','astro','cluster','galaxy','sky','planet','solar','science','physic','scientist','cosmos']
| 33.553191 | 124 | 0.460051 |
a4d9167372fd4f933a82a1fee41baeab560eb279 | 1,012 | py | Python | bfassist/standalone/monitoring/realtimecheckpoint.py | SanHime/bfassist | f4870189a54373487064897ad0d5bf46ae9d97f8 | [
"Apache-2.0"
] | 1 | 2021-07-09T14:40:14.000Z | 2021-07-09T14:40:14.000Z | bfassist/standalone/monitoring/realtimecheckpoint.py | SanHime/bfassist | f4870189a54373487064897ad0d5bf46ae9d97f8 | [
"Apache-2.0"
] | null | null | null | bfassist/standalone/monitoring/realtimecheckpoint.py | SanHime/bfassist | f4870189a54373487064897ad0d5bf46ae9d97f8 | [
"Apache-2.0"
] | null | null | null | #############################################################################
#
#
# Module of BFA that manages server statistics in realtime
#
#
#############################################################################
""" This module implements the real-time logging of in-game statistics specifically for one curre... | 26.631579 | 114 | 0.560277 |
a4d968f989a285cf96c27baed01da6b65175ba59 | 615 | py | Python | core/views.py | koshasrepus/app_my_place | 8be9e9062247c177375162b943fb842752807553 | [
"Unlicense"
] | null | null | null | core/views.py | koshasrepus/app_my_place | 8be9e9062247c177375162b943fb842752807553 | [
"Unlicense"
] | null | null | null | core/views.py | koshasrepus/app_my_place | 8be9e9062247c177375162b943fb842752807553 | [
"Unlicense"
] | null | null | null | from django.shortcuts import render
from django.http import JsonResponse
from django.views import View
from core.handlers.dispatcher import process_telegram_event
from app_my_places.settings import TELEGRAM_TOKEN
import json
# Create your views here.
| 26.73913 | 59 | 0.734959 |
a4d975ef883007f74d9af2353db4314fdedd350c | 157 | py | Python | tests/cases/infer.py | div72/py2many | 60277bc13597bd32d078b88a7390715568115fc6 | [
"MIT"
] | 345 | 2021-01-28T17:33:08.000Z | 2022-03-25T16:07:56.000Z | tests/cases/infer.py | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 291 | 2021-01-31T13:15:06.000Z | 2022-03-23T21:28:49.000Z | tests/cases/infer.py | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 23 | 2021-02-09T17:15:03.000Z | 2022-02-03T05:57:44.000Z | #!/usr/bin/env python3
if __name__ == "__main__":
foo()
| 11.214286 | 28 | 0.509554 |
a4d9e356367e346a01ca362683e21a1ac2b3a8aa | 4,852 | py | Python | src/ascat/math.py | lweydemann/ascat | 9c986ba40694a13356c44f403c66d73ccaab83bf | [
"MIT"
] | null | null | null | src/ascat/math.py | lweydemann/ascat | 9c986ba40694a13356c44f403c66d73ccaab83bf | [
"MIT"
] | null | null | null | src/ascat/math.py | lweydemann/ascat | 9c986ba40694a13356c44f403c66d73ccaab83bf | [
"MIT"
] | null | null | null | # Copyright (c) 2020, TU Wien, Department of Geodesy and Geoinformation
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice,... | 27.106145 | 77 | 0.647362 |
a4dade425c95d9b111ad44e99a5db732bfa49c43 | 1,592 | py | Python | project/tests/fixtures/fixture_data.py | hlystovea/resource_planner | 5ddbef31004a7e50201e1d414152a8090d1b0caf | [
"MIT"
] | null | null | null | project/tests/fixtures/fixture_data.py | hlystovea/resource_planner | 5ddbef31004a7e50201e1d414152a8090d1b0caf | [
"MIT"
] | null | null | null | project/tests/fixtures/fixture_data.py | hlystovea/resource_planner | 5ddbef31004a7e50201e1d414152a8090d1b0caf | [
"MIT"
] | null | null | null | import pytest
import tempfile
| 26.983051 | 116 | 0.766332 |
a4db11ef5ed5b0211872ce11e6f5933e8efb3885 | 85 | py | Python | orm_skills/views.py | bluebamus/django_miscellaneous_book | 22e0851b3a07aeef94bb723b334f036ed5c17f72 | [
"MIT"
] | null | null | null | orm_skills/views.py | bluebamus/django_miscellaneous_book | 22e0851b3a07aeef94bb723b334f036ed5c17f72 | [
"MIT"
] | null | null | null | orm_skills/views.py | bluebamus/django_miscellaneous_book | 22e0851b3a07aeef94bb723b334f036ed5c17f72 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
| 14.166667 | 35 | 0.729412 |
a4dc9a387c6801eebbce5ef0b1a99718dbb8697f | 17,584 | py | Python | Sketches/RJL/bittorrent/BitTorrent/bittorrent-curses.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 12 | 2015-10-20T10:22:01.000Z | 2021-07-19T10:09:44.000Z | Sketches/RJL/bittorrent/BitTorrent/bittorrent-curses.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 2 | 2015-10-20T10:22:55.000Z | 2017-02-13T11:05:25.000Z | Sketches/RJL/bittorrent/BitTorrent/bittorrent-curses.py | sparkslabs/kamaelia_orig | 24b5f855a63421a1f7c6c7a35a7f4629ed955316 | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:59.000Z | 2020-03-01T13:06:21.000Z | #!/usr/bin/env python
# The contents of this file are subject to the BitTorrent Open Source License
# Version 1.1 (the License). You may not copy or use this file, in either
# source code or executable form, except in compliance with the License. You
# may obtain a copy of the License at http://www.bittorrent.com/li... | 38.988914 | 145 | 0.556187 |
a4de856ef997ed99088a6be0601cf0f3605b3a54 | 5,551 | py | Python | event_log/models/entry.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 13 | 2015-11-29T12:19:12.000Z | 2021-02-21T15:42:11.000Z | event_log/models/entry.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 23 | 2015-04-29T19:43:34.000Z | 2021-02-10T05:50:17.000Z | event_log/models/entry.py | darkismus/kompassi | 35dea2c7af2857a69cae5c5982b48f01ba56da1f | [
"CC-BY-3.0"
] | 11 | 2015-09-20T18:59:00.000Z | 2020-02-07T08:47:34.000Z | from django.conf import settings
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.db.models import Q
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
TARGET_FKEY_ATTRS = dict(
null=True,
blank=True,
on_... | 34.265432 | 106 | 0.652135 |
a4df32bb4d4e2f16c17a67995348e36cb2171d81 | 7,202 | py | Python | tests/logging_test.py | lykme516/pykka | d66b0c49658fc0e7c4e1ae46a0f9c50c7e964ca5 | [
"Apache-2.0"
] | 1 | 2021-01-03T09:25:23.000Z | 2021-01-03T09:25:23.000Z | tests/logging_test.py | hujunxianligong/pykka | d66b0c49658fc0e7c4e1ae46a0f9c50c7e964ca5 | [
"Apache-2.0"
] | null | null | null | tests/logging_test.py | hujunxianligong/pykka | d66b0c49658fc0e7c4e1ae46a0f9c50c7e964ca5 | [
"Apache-2.0"
] | null | null | null | import logging
import threading
import unittest
from pykka import ActorRegistry, ThreadingActor
from tests import TestLogHandler
from tests.actor_test import (
EarlyFailingActor, FailingOnFailureActor, LateFailingActor)
def ConcreteActorLoggingTest(actor_class, event_class):
C.event_class = event_class
... | 36.01 | 75 | 0.67509 |
a4e00d2cb49985d38fa9a42e89c6babd42a14602 | 190 | py | Python | ldaptor/apps/webui/i18n.py | tv42/ldaptor | 3f227602c8c021b9e943136a2dc8d7db44a11e50 | [
"MIT"
] | 1 | 2015-11-25T04:01:26.000Z | 2015-11-25T04:01:26.000Z | ldaptor/apps/webui/i18n.py | tv42/ldaptor | 3f227602c8c021b9e943136a2dc8d7db44a11e50 | [
"MIT"
] | null | null | null | ldaptor/apps/webui/i18n.py | tv42/ldaptor | 3f227602c8c021b9e943136a2dc8d7db44a11e50 | [
"MIT"
] | 2 | 2019-11-06T02:14:10.000Z | 2022-01-10T08:34:11.000Z | from nevow.inevow import ILanguages
from nevow.i18n import I18NConfig
from nevow import i18n
_ = i18n.Translator(domain='ldaptor-webui')
| 21.111111 | 43 | 0.778947 |
a4e1d55175b32d5385828a34b15cc230ebdc6f9d | 2,026 | py | Python | surface_integrator/photonmap.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | 1 | 2018-05-15T04:00:17.000Z | 2018-05-15T04:00:17.000Z | surface_integrator/photonmap.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | surface_integrator/photonmap.py | neodyme60/raypy | a898ba46e07ba299fcb1729dca45abdc1e944f83 | [
"MIT"
] | null | null | null | import math
from scipy.spatial.ckdtree import cKDTree
from core.camera import Camera
from core.intersection import Intersection
from core.ray import Ray
from core.renderer import Renderer
from core.sample import Sample
from core.sampler import Sampler
from core.scene import Scene
from core.spectrum import Spec... | 34.338983 | 129 | 0.681145 |
a4e4663d3202bce0ac276499c4caa3af243144cc | 1,831 | py | Python | bspump/declarative/expression/datastructs/itemexpr.py | chinese-soup/BitSwanPump | 6ef71577cc1f166cff80876d28be37c791061bd2 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T12:56:58.000Z | 2020-08-20T12:56:58.000Z | bspump/declarative/expression/datastructs/itemexpr.py | chinese-soup/BitSwanPump | 6ef71577cc1f166cff80876d28be37c791061bd2 | [
"BSD-3-Clause"
] | null | null | null | bspump/declarative/expression/datastructs/itemexpr.py | chinese-soup/BitSwanPump | 6ef71577cc1f166cff80876d28be37c791061bd2 | [
"BSD-3-Clause"
] | null | null | null | from ...abc import Expression, evaluate
from ..value.eventexpr import EVENT
from ..value.eventexpr import KWARGS
from ..value.eventexpr import ARG
from ..value.valueexpr import VALUE
from ..utility.context import CONTEXT
| 23.474359 | 105 | 0.670126 |
a4e4e36e2de9d52f611d5fad94945eb66a5be6ca | 821 | py | Python | aula10/ex2.py | Vanderluizsj/AulasPython | a4732b3fc524cabb673f6dbfd610975935b67916 | [
"MIT"
] | null | null | null | aula10/ex2.py | Vanderluizsj/AulasPython | a4732b3fc524cabb673f6dbfd610975935b67916 | [
"MIT"
] | null | null | null | aula10/ex2.py | Vanderluizsj/AulasPython | a4732b3fc524cabb673f6dbfd610975935b67916 | [
"MIT"
] | null | null | null | """
Faa um programa que pergunte a hora aousurio e, baseando-se na hora descrita,
exiba a saudao apropriada.
"""
x=1
while x!=0:
#Entra no try caso seja digitado um numero inteiro
try:
horas=int(input('Que horas so? '))
if horas>=0 and horas<=11:
print('Bom dia!')
x-=1
... | 31.576923 | 91 | 0.588307 |
a4e6cba016dd1e2cdd954469d0530a12f290140c | 4,137 | py | Python | lab07/app.py | mocurin/ITIS | e7e7c2a00c591ccb318fd0aaa93f426f6e2b8a3f | [
"MIT"
] | null | null | null | lab07/app.py | mocurin/ITIS | e7e7c2a00c591ccb318fd0aaa93f426f6e2b8a3f | [
"MIT"
] | null | null | null | lab07/app.py | mocurin/ITIS | e7e7c2a00c591ccb318fd0aaa93f426f6e2b8a3f | [
"MIT"
] | null | null | null | import aiohttp_jinja2
import jinja2
import secrets
import random
from aiohttp import web
from aiohttp.client import MultiDict
from source import fit_model, vectorize, model_predict
routes = web.RouteTableDef()
PORT = 8080
base_url = f"http://localhost:{PORT}"
IMGS, X, Y = 3, 5, 7
THRESH = 0.1
networks = {}
de... | 23.505682 | 108 | 0.603336 |
a4e6cbc17c5cb30d02c5c8a3916b9fbf0b7665a7 | 343 | py | Python | ex6.py | EiPoPoAung/python_exercises | e7c7b67e0409f6680ea7f580e3d1b21d6f96248d | [
"MIT"
] | null | null | null | ex6.py | EiPoPoAung/python_exercises | e7c7b67e0409f6680ea7f580e3d1b21d6f96248d | [
"MIT"
] | null | null | null | ex6.py | EiPoPoAung/python_exercises | e7c7b67e0409f6680ea7f580e3d1b21d6f96248d | [
"MIT"
] | null | null | null | x="There are %d types of people."%10
binary="binary"
do_not="don't"
y="Those who know %s and those who %s."%(binary,do_not)
print(x)
print(y)
print("I said: '%s'."%y)
hilarious=False
joke_evaluation="Isn't that joke so funny?! %r"
print (joke_evaluation % hilarious)
w="This is the left side of ..."
e="a string with a r... | 24.5 | 55 | 0.688047 |
a4e6ff7ac122d6aad3364816354813061bd2f7d4 | 627 | py | Python | logic/config.py | ssichynskyi/lotti-karotti-calc | 44eb39ce4c4bc8ddf4049d72268597c6d7411f84 | [
"Apache-2.0"
] | null | null | null | logic/config.py | ssichynskyi/lotti-karotti-calc | 44eb39ce4c4bc8ddf4049d72268597c6d7411f84 | [
"Apache-2.0"
] | null | null | null | logic/config.py | ssichynskyi/lotti-karotti-calc | 44eb39ce4c4bc8ddf4049d72268597c6d7411f84 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
from pathlib import Path
import yaml
path_to_config = Path(__file__).parent.parent.joinpath('config', 'lotti_config.yaml')
if not path_to_config.exists():
# handle a case when pyinstaller compile everything in one executable file
path_to_config = Path(sys.argv[0]).parent.j... | 27.26087 | 85 | 0.682616 |
a4e76062bd271f3f1cc37a95b088bfcb694c00bc | 217 | py | Python | hs_modflow_modelinstance/admin.py | ResearchSoftwareInstitute/MyHPOM | 2d48fe5ac8d21173b1685eb33059bb391fe24414 | [
"BSD-3-Clause"
] | 1 | 2018-09-17T13:07:29.000Z | 2018-09-17T13:07:29.000Z | hs_modflow_modelinstance/admin.py | ResearchSoftwareInstitute/MyHPOM | 2d48fe5ac8d21173b1685eb33059bb391fe24414 | [
"BSD-3-Clause"
] | 100 | 2017-08-01T23:48:04.000Z | 2018-04-03T13:17:27.000Z | hs_modflow_modelinstance/admin.py | ResearchSoftwareInstitute/MyHPOM | 2d48fe5ac8d21173b1685eb33059bb391fe24414 | [
"BSD-3-Clause"
] | 2 | 2017-07-27T20:41:33.000Z | 2017-07-27T22:40:57.000Z | from mezzanine.pages.admin import PageAdmin
from django.contrib import admin
from hs_modflow_modelinstance.models import MODFLOWModelInstanceResource
admin.site.register(MODFLOWModelInstanceResource, PageAdmin)
| 36.166667 | 73 | 0.866359 |
a4e869698fe814d3a243ff2da3c5d64b703b2798 | 24,526 | py | Python | TAO/Firewall/EXPLOITS/ELBO/eligiblebombshell_1.2.0.1.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | TAO/Firewall/EXPLOITS/ELBO/eligiblebombshell_1.2.0.1.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | null | null | null | TAO/Firewall/EXPLOITS/ELBO/eligiblebombshell_1.2.0.1.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z | #!/usr/bin/python
import shellcode
import optparse
import httplib
import logging
import random
import socket
import sys
import re
from struct import pack, unpack
from time import sleep
########################
# Global configuration #
########################
DEFAULT_ETAG_FILE = "ELBO.config"
VERSION = "%prog v1.0.0.... | 39.430868 | 273 | 0.544157 |
a4e8d966c41d61cf7973a0faa9d826fdc0196a65 | 8,716 | py | Python | edu_visitor/visitor_logs/routes.py | covrebo/edu_visitor | 2759519eef97057ca01ed26f556ab335167fe084 | [
"MIT"
] | null | null | null | edu_visitor/visitor_logs/routes.py | covrebo/edu_visitor | 2759519eef97057ca01ed26f556ab335167fe084 | [
"MIT"
] | null | null | null | edu_visitor/visitor_logs/routes.py | covrebo/edu_visitor | 2759519eef97057ca01ed26f556ab335167fe084 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, url_for, session, flash, redirect, request
from edu_visitor import db
from edu_visitor.visitor_logs.forms import StudentSignInForm, StudentSignOutForm, VisitorSignInForm, VisitorSignOutForm, StudentUpdateForm, VisitorUpdateForm
from edu_visitor.models import StudentLog, Vi... | 48.692737 | 226 | 0.723726 |
a4ea3d61587577e8897b867e636a3cccaeb49674 | 1,657 | py | Python | abstract_model.py | mandt-lab/adversarial-negative-sampling | a71a9bd8e814b132ec094bd2c5d080edcb1bccad | [
"MIT"
] | 15 | 2020-03-27T20:48:07.000Z | 2022-01-21T09:47:14.000Z | abstract_model.py | mandt-lab/adversarial-negative-sampling | a71a9bd8e814b132ec094bd2c5d080edcb1bccad | [
"MIT"
] | 1 | 2020-11-13T16:04:56.000Z | 2020-11-13T16:04:56.000Z | abstract_model.py | mandt-lab/adversarial-negative-sampling | a71a9bd8e814b132ec094bd2c5d080edcb1bccad | [
"MIT"
] | 4 | 2020-02-23T02:21:45.000Z | 2020-09-29T03:07:54.000Z | import sys
import abc
import tensorflow as tf
import numpy as np
import optimizer
| 40.414634 | 89 | 0.689801 |
a4ea59238b7b0825e3fc20672e4667b0dd688bec | 165 | py | Python | fnss/traffic/__init__.py | brucespang/fnss | 8e1d95744347afa77383092e6f144980d84e222d | [
"BSD-2-Clause"
] | 114 | 2015-01-19T14:15:07.000Z | 2022-02-22T01:47:19.000Z | fnss/traffic/__init__.py | brucespang/fnss | 8e1d95744347afa77383092e6f144980d84e222d | [
"BSD-2-Clause"
] | 15 | 2016-02-11T09:09:02.000Z | 2021-04-05T12:57:09.000Z | fnss/traffic/__init__.py | brucespang/fnss | 8e1d95744347afa77383092e6f144980d84e222d | [
"BSD-2-Clause"
] | 36 | 2015-02-08T12:28:04.000Z | 2021-11-19T06:08:17.000Z | """Tools for creating and manipulating event schedules and traffic matrices"""
from fnss.traffic.eventscheduling import *
from fnss.traffic.trafficmatrices import *
| 41.25 | 78 | 0.818182 |
a4eac09718b988218fe43f31996cb5b72933482b | 687 | py | Python | sphinxviewer/main.py | badisa/sphinx-viewer | 484c74f9f407aa6bb36fb95dfd1f3a56e1942dfe | [
"MIT"
] | null | null | null | sphinxviewer/main.py | badisa/sphinx-viewer | 484c74f9f407aa6bb36fb95dfd1f3a56e1942dfe | [
"MIT"
] | null | null | null | sphinxviewer/main.py | badisa/sphinx-viewer | 484c74f9f407aa6bb36fb95dfd1f3a56e1942dfe | [
"MIT"
] | null | null | null | import os
import sys
from argparse import ArgumentParser
from sphinxviewer.sphinx import build_html
from sphinxviewer.server import serve_server
| 31.227273 | 88 | 0.71179 |
a4eb0fd565d81e7a6f39564ab37c7ad1acd391aa | 4,338 | py | Python | djng/forms/widgets.py | ParikhKadam/django-angular | 1fdd2ab3211ed1655acc2d172d826ed7f3ad0574 | [
"MIT"
] | 941 | 2015-01-01T18:17:43.000Z | 2022-02-26T07:45:40.000Z | djng/forms/widgets.py | ParikhKadam/django-angular | 1fdd2ab3211ed1655acc2d172d826ed7f3ad0574 | [
"MIT"
] | 228 | 2015-01-11T16:36:34.000Z | 2022-03-11T23:17:15.000Z | djng/forms/widgets.py | ParikhKadam/django-angular | 1fdd2ab3211ed1655acc2d172d826ed7f3ad0574 | [
"MIT"
] | 294 | 2015-01-04T09:01:33.000Z | 2022-02-26T07:45:41.000Z | import mimetypes
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core import signing
from django.forms import widgets
from django.forms.utils import flatatt
from django.utils.safestring import mark_safe
from django.utils.html import format_html
from django.utils.translation import ugette... | 40.166667 | 110 | 0.611803 |
a4ec750dd9642849d8795ee448336dfcac80d1cf | 347 | py | Python | chapter2/wok/develop/examples/multiport/sum.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter2/wok/master/examples/multiport/sum.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter2/wok/master/examples/multiport/sum.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | from wok.task import task
task.run()
| 16.52381 | 64 | 0.634006 |
a4ed98ab3c23c6597228e8de2632140feeb4c5d4 | 2,961 | py | Python | climateapp/climateapp/routes.py | mpasricha1/sqlalchemy-challenge | 94a679cee2da1f7942f89dfcc50e7c4d6adc5e96 | [
"ADSL"
] | null | null | null | climateapp/climateapp/routes.py | mpasricha1/sqlalchemy-challenge | 94a679cee2da1f7942f89dfcc50e7c4d6adc5e96 | [
"ADSL"
] | null | null | null | climateapp/climateapp/routes.py | mpasricha1/sqlalchemy-challenge | 94a679cee2da1f7942f89dfcc50e7c4d6adc5e96 | [
"ADSL"
] | null | null | null | from flask import jsonify, render_template
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
import datetime as dt
from climateapp import app
engine = create_engine('sqlite:///../Resources/hawaii.sqlite')
Base = automap_base... | 26.4375 | 123 | 0.712597 |
a4ef4d853adb1eeb401e5c0eff70d44d9f924121 | 9,443 | py | Python | parse_jira_logged_time/gui.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | parse_jira_logged_time/gui.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | parse_jira_logged_time/gui.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import json
import io
import sys
import traceback
import webbrowser
from contextlib import redirect_stdout
from datetime import datetime
from PyQt5.Qt import (
QApplication, QMessageBox, QThread, pyqtSignal, QMainWindow, QPushButton, QCheck... | 34.974074 | 114 | 0.659324 |
a4efa6df7bd8bff04aec47fb249d0baf026f7c34 | 10,326 | py | Python | fasterRCNN.py | TangZhenchaoTZC/Keras-mask-detection | 325679d06a12a90b2552ed7d447298a23e3b9d57 | [
"MIT"
] | 3 | 2020-05-26T15:13:06.000Z | 2020-05-27T02:57:27.000Z | fasterRCNN.py | TangZhenchaoTZC/Keras-mask-detection | 325679d06a12a90b2552ed7d447298a23e3b9d57 | [
"MIT"
] | null | null | null | fasterRCNN.py | TangZhenchaoTZC/Keras-mask-detection | 325679d06a12a90b2552ed7d447298a23e3b9d57 | [
"MIT"
] | null | null | null | """fasterRCNN"""
import numpy as np
import colorsys
import os
from keras import backend as K
from keras.applications.imagenet_utils import preprocess_input
from PIL import Image, ImageFont, ImageDraw
import copy
import math
from net import fasterrcnn as frcnn
from net import netconfig as netconfig
from net import RPN ... | 36.878571 | 126 | 0.544451 |
a4f1059c2d04d205a4c5db81979affde7f3a6635 | 3,239 | py | Python | applications/popart/faster-rcnn/nanodata/dataset/xml_dataset_for_rcnn.py | payoto/graphcore_examples | 46d2b7687b829778369fc6328170a7b14761e5c6 | [
"MIT"
] | 260 | 2019-11-18T01:50:00.000Z | 2022-03-28T23:08:53.000Z | applications/popart/faster-rcnn/nanodata/dataset/xml_dataset_for_rcnn.py | payoto/graphcore_examples | 46d2b7687b829778369fc6328170a7b14761e5c6 | [
"MIT"
] | 27 | 2020-01-28T23:07:50.000Z | 2022-02-14T15:37:06.000Z | applications/popart/faster-rcnn/nanodata/dataset/xml_dataset_for_rcnn.py | payoto/graphcore_examples | 46d2b7687b829778369fc6328170a7b14761e5c6 | [
"MIT"
] | 56 | 2019-11-18T02:13:12.000Z | 2022-02-28T14:36:09.000Z | # Copyright (c) 2021 Graphcore Ltd. All rights reserved.
# Copyright 2021 RangiLyu.
#
# 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
#
# Unle... | 33.391753 | 92 | 0.637851 |
a4f1604ce9428d0115f6455fe8e1046bdd00fa11 | 5,910 | py | Python | application/briefkasten/commands.py | tomster/briefkasten | 8de5eccd258b6f8c5884cf24596469389ffa48ff | [
"BSD-3-Clause"
] | 1 | 2019-01-21T12:41:40.000Z | 2019-01-21T12:41:40.000Z | application/briefkasten/commands.py | tomster/briefkasten | 8de5eccd258b6f8c5884cf24596469389ffa48ff | [
"BSD-3-Clause"
] | 1 | 2017-12-27T18:13:30.000Z | 2018-01-26T11:44:35.000Z | application/briefkasten/commands.py | tomster/briefkasten | 8de5eccd258b6f8c5884cf24596469389ffa48ff | [
"BSD-3-Clause"
] | null | null | null | import click
from os import path, listdir, rename, remove
from datetime import datetime
from sys import exit
from multiprocessing import Pool
from signal import signal, SIGINT
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
from threading import Condition
from .dropbox import... | 30.942408 | 107 | 0.642978 |
a4f36624a0ebfb5fad3f19befd7baacdcb07a66d | 4,703 | py | Python | tests/test_plat_win.py | juliangilbey/send2trash | 2eb3242cd9c646174d88e71e4a5dd503f5001c94 | [
"BSD-3-Clause"
] | null | null | null | tests/test_plat_win.py | juliangilbey/send2trash | 2eb3242cd9c646174d88e71e4a5dd503f5001c94 | [
"BSD-3-Clause"
] | null | null | null | tests/test_plat_win.py | juliangilbey/send2trash | 2eb3242cd9c646174d88e71e4a5dd503f5001c94 | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
import os
import shutil
import sys
import unittest
from os import path as op
from tempfile import gettempdir
from send2trash import send2trash as s2t
# import the two versions as well as the "automatic" version
from send2trash.plat_win_modern import send2trash as s2t_modern
from send2trash.plat_win_le... | 30.341935 | 88 | 0.652775 |
a4f3cb4f3427bfd4ee51df95f9cda15b80ddc419 | 1,133 | py | Python | examples/closest_unit_norm_column_approximation.py | paulroujansky/pymanopt | 7ec0f83b2cc1bf325bfbbc98d69188cf6b7ef0f1 | [
"BSD-3-Clause"
] | null | null | null | examples/closest_unit_norm_column_approximation.py | paulroujansky/pymanopt | 7ec0f83b2cc1bf325bfbbc98d69188cf6b7ef0f1 | [
"BSD-3-Clause"
] | null | null | null | examples/closest_unit_norm_column_approximation.py | paulroujansky/pymanopt | 7ec0f83b2cc1bf325bfbbc98d69188cf6b7ef0f1 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import theano.tensor as T
from numpy import linalg as la, random as rnd
import pymanopt
from pymanopt.manifolds import Oblique
from pymanopt.solvers import ConjugateGradient
def closest_unit_norm_column_approximation(A):
"""
Returns the matrix with unit-norm columns that is closests to A w... | 25.177778 | 78 | 0.662842 |
a4f4c9000cc124929e416388dbabf46666c286f5 | 9,821 | py | Python | adafruit_dash_display.py | adafruit/Adafruit_CircuitPython_Dash_Display | db7a1113c00e11c0a2d35ceb425cbb057b07ba61 | [
"Unlicense",
"MIT-0",
"MIT"
] | 2 | 2021-05-14T18:39:47.000Z | 2022-03-19T16:08:53.000Z | adafruit_dash_display.py | adafruit/Adafruit_CircuitPython_Dash_Display | db7a1113c00e11c0a2d35ceb425cbb057b07ba61 | [
"Unlicense",
"MIT-0",
"MIT"
] | 1 | 2021-09-27T17:36:56.000Z | 2021-09-27T17:36:56.000Z | adafruit_dash_display.py | adafruit/Adafruit_CircuitPython_Dash_Display | db7a1113c00e11c0a2d35ceb425cbb057b07ba61 | [
"Unlicense",
"MIT-0",
"MIT"
] | 3 | 2021-05-18T11:34:49.000Z | 2022-02-18T03:33:49.000Z | # SPDX-FileCopyrightText: Copyright (c) 2021 Dylan Herrada for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_dash_display`
================================================================================
CircuitPython library for creating Adafruit IO dashboards.
* Author(s): Dylan Herrada
Implem... | 31.376997 | 98 | 0.558904 |
a4f76b804fae0302852d3bd4593e94302e1fe66e | 34,936 | py | Python | fygen_test.py | vanish125/DS1054_BodePlotter | 569d3b97d8a0a657dd27d7b30b152fa78203995b | [
"MIT"
] | null | null | null | fygen_test.py | vanish125/DS1054_BodePlotter | 569d3b97d8a0a657dd27d7b30b152fa78203995b | [
"MIT"
] | null | null | null | fygen_test.py | vanish125/DS1054_BodePlotter | 569d3b97d8a0a657dd27d7b30b152fa78203995b | [
"MIT"
] | 1 | 2022-01-18T16:58:18.000Z | 2022-01-18T16:58:18.000Z | """Unit tests for fygen module."""
import unittest
import six
import fygen
import fygen_help
from wavedef import SUPPORTED_DEVICES
# pylint: disable=too-many-public-methods
# pylint: disable=invalid-name
# pylint: disable=too-many-lines
if __name__ == '__main__':
unittest.main()
| 31.905023 | 81 | 0.642317 |
a4f8e8179ce401a6630d257843d17f4bc8c551d3 | 212 | py | Python | setup.py | hainegroup/Polar-overturning-circulation-model | 8cd67271b038d09ce29492c3d201a24698d2e970 | [
"MIT"
] | 3 | 2020-06-28T15:47:02.000Z | 2021-02-14T19:25:13.000Z | setup.py | hainegroup/Polar-overturning-circulation-model | 8cd67271b038d09ce29492c3d201a24698d2e970 | [
"MIT"
] | null | null | null | setup.py | hainegroup/Polar-overturning-circulation-model | 8cd67271b038d09ce29492c3d201a24698d2e970 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='POC model for publication',
author='Thomas Haine',
license='MIT',
)
| 19.272727 | 44 | 0.665094 |
a4fa0f6854a007037641edd2c76faef321c93748 | 413 | py | Python | danceschool/stats/cms_apps.py | benjwrdill/django-danceschool | 9ecb2754502e62d0f49aa23d08ca6de6cae3c99a | [
"BSD-3-Clause"
] | 1 | 2019-02-04T02:11:32.000Z | 2019-02-04T02:11:32.000Z | danceschool/stats/cms_apps.py | benjwrdill/django-danceschool | 9ecb2754502e62d0f49aa23d08ca6de6cae3c99a | [
"BSD-3-Clause"
] | 2 | 2019-03-26T22:37:49.000Z | 2019-12-02T15:39:35.000Z | danceschool/stats/cms_apps.py | benjwrdill/django-danceschool | 9ecb2754502e62d0f49aa23d08ca6de6cae3c99a | [
"BSD-3-Clause"
] | 1 | 2019-03-19T22:49:01.000Z | 2019-03-19T22:49:01.000Z | from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
apphook_pool.register(StatsApphook)
| 29.5 | 111 | 0.728814 |
a4facbc09faf96725436ab1390e2089d932160c8 | 2,577 | py | Python | archinstall-variants.py | phisch/archinstall-variants | f9575c14316aff66c6d3b9b35fca09509afeb51b | [
"MIT"
] | 3 | 2021-06-08T16:01:23.000Z | 2021-11-14T00:49:36.000Z | archinstall-variants.py | phisch/archinstall-variants | f9575c14316aff66c6d3b9b35fca09509afeb51b | [
"MIT"
] | null | null | null | archinstall-variants.py | phisch/archinstall-variants | f9575c14316aff66c6d3b9b35fca09509afeb51b | [
"MIT"
] | null | null | null | import logging
import archinstall
__version__ = 0.1
| 32.620253 | 85 | 0.631354 |
a4fdbb92ca1d67c1847d8902e458cfee14e5b0d4 | 1,316 | py | Python | declaraciones/declaracion/urls/admin.py | gob-cdmx/declaraciones | 90347c1572fa5b8137c5e0d23e6a7c6b2a0b2311 | [
"MIT"
] | 2 | 2019-10-17T02:40:12.000Z | 2019-10-17T22:51:36.000Z | declaraciones/declaracion/urls/admin.py | gob-cdmx/declaraciones | 90347c1572fa5b8137c5e0d23e6a7c6b2a0b2311 | [
"MIT"
] | 1 | 2019-10-02T20:23:12.000Z | 2019-10-02T20:23:12.000Z | declaraciones/declaracion/urls/admin.py | gob-cdmx/declaraciones | 90347c1572fa5b8137c5e0d23e6a7c6b2a0b2311 | [
"MIT"
] | 4 | 2019-08-20T21:16:04.000Z | 2021-07-01T03:08:10.000Z | from django.urls import path
from declaracion.views import (BusquedaDeclarantesFormView, InfoDeclarantesFormView, InfoDeclaracionFormView,
BusquedaDeclaracionesFormView, BusquedaUsuariosFormView, NuevoUsuariosFormView,
EliminarUsuarioFormView,InfoUsuarioFor... | 45.37931 | 110 | 0.693769 |
a4fdc2ff6fb2daea0ed4afc31809a891b4b75ce0 | 1,501 | py | Python | rpbp/translation_prediction/merge_replicate_orf_profiles.py | HeyLifeHD/rp-bp | 9c59b1bc0267400747477467c45f96364d5528e1 | [
"MIT"
] | 6 | 2016-05-16T18:52:41.000Z | 2021-12-31T06:27:29.000Z | rpbp/translation_prediction/merge_replicate_orf_profiles.py | HeyLifeHD/rp-bp | 9c59b1bc0267400747477467c45f96364d5528e1 | [
"MIT"
] | 110 | 2016-06-22T13:24:39.000Z | 2022-02-07T09:29:14.000Z | rpbp/translation_prediction/merge_replicate_orf_profiles.py | HeyLifeHD/rp-bp | 9c59b1bc0267400747477467c45f96364d5528e1 | [
"MIT"
] | 5 | 2017-05-22T12:21:51.000Z | 2022-02-06T10:32:56.000Z | #! /usr/bin/env python3
import argparse
import logging
import scipy.io
import pbio.misc.logging_utils as logging_utils
import pbio.misc.math_utils as math_utils
logger = logging.getLogger(__name__)
if __name__ == '__main__':
main()
| 30.02 | 98 | 0.702199 |
a4fdfb3a84f9a4748985f013f6aacec4b99c4f66 | 959 | py | Python | examples/basicServer.py | lwahlmeier/python-litesockets | 2d057e171ac56271c2a7c4e42425b6c6d7ed7011 | [
"Unlicense"
] | 1 | 2015-03-05T04:42:30.000Z | 2015-03-05T04:42:30.000Z | examples/basicServer.py | lwahlmeier/python-litesockets | 2d057e171ac56271c2a7c4e42425b6c6d7ed7011 | [
"Unlicense"
] | 1 | 2017-06-06T15:36:21.000Z | 2019-05-29T15:07:18.000Z | examples/basicServer.py | lwahlmeier/python-litesockets | 2d057e171ac56271c2a7c4e42425b6c6d7ed7011 | [
"Unlicense"
] | null | null | null | from litesockets import SocketExecuter, TcpServer
import time
#This starts a SocketExecuter with default of 5 threads
SE = SocketExecuter()
#creates a tcpServer listening on localhost port 11882 (socket is not open yet)
server = TcpServer("localhost", 11882)
#This is ran once the far side is connected
#We assig... | 29.96875 | 83 | 0.754953 |
a4feafde3d05274cb509f43c2de00534da560e12 | 6,679 | py | Python | datasets.py | jackwang0108/AlexNet | 53ff64823c461c752499108f2845d83e877a3c07 | [
"MIT"
] | 1 | 2022-03-22T09:34:25.000Z | 2022-03-22T09:34:25.000Z | datasets.py | jackwang0108/AlexNet | 53ff64823c461c752499108f2845d83e877a3c07 | [
"MIT"
] | null | null | null | datasets.py | jackwang0108/AlexNet | 53ff64823c461c752499108f2845d83e877a3c07 | [
"MIT"
] | null | null | null |
# Standard Library
import pickle
from typing import *
from pathlib import Path
# Third-party Party
import numpy as np
import PIL.Image as Image
from colorama import Fore, init
# Torch Library
import torch
import torch.utils.data as data
import torchvision.transforms as T
# My Library
from helper import visualize_np... | 37.734463 | 104 | 0.568947 |
3502a92d21f53788d990c4901fe08c12c3d15616 | 11,221 | py | Python | spyder_terminal/widgets/style/themes.py | mrclary/spyder-terminal | 45b2a3ca1ebe7aad5fe2d18536199dfb57d43264 | [
"MIT"
] | 169 | 2017-03-12T00:42:45.000Z | 2022-03-16T20:03:55.000Z | spyder_terminal/widgets/style/themes.py | mrclary/spyder-terminal | 45b2a3ca1ebe7aad5fe2d18536199dfb57d43264 | [
"MIT"
] | 200 | 2017-01-12T23:51:27.000Z | 2022-03-29T15:20:12.000Z | spyder_terminal/widgets/style/themes.py | mrclary/spyder-terminal | 45b2a3ca1ebe7aad5fe2d18536199dfb57d43264 | [
"MIT"
] | 70 | 2017-01-13T00:08:59.000Z | 2022-03-31T19:05:47.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) Spyder Project Contributors
#
# Licensed under the terms of the MIT License
# (see LICENSE.txt for details)
# -----------------------------------------------------------------------------
ANSI_COLORS ... | 28.920103 | 79 | 0.441583 |
350316f5b33bd2c36507f8f4409c13409120a8a7 | 20,209 | py | Python | research/cv/U-GAT-IT/src/models/UGATIT.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/U-GAT-IT/src/models/UGATIT.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/U-GAT-IT/src/models/UGATIT.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2022 Huawei Technologies Co., Ltd
#
# 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... | 48.932203 | 117 | 0.539562 |
35041a09e77bfa96a1dd1889fc42808e359d1076 | 4,863 | py | Python | bot/cogs/music.py | Nemika-Haj/Guess-The-Song | b206e5667fdc5302f2ca87caa3a59f4b4c126077 | [
"MIT"
] | 1 | 2021-03-03T18:26:53.000Z | 2021-03-03T18:26:53.000Z | bot/cogs/music.py | Nemika-Haj/Guess-The-Song | b206e5667fdc5302f2ca87caa3a59f4b4c126077 | [
"MIT"
] | null | null | null | bot/cogs/music.py | Nemika-Haj/Guess-The-Song | b206e5667fdc5302f2ca87caa3a59f4b4c126077 | [
"MIT"
] | null | null | null | import discord, youtube_dl, asyncio, json, random, os
from youtube_search import YoutubeSearch
from core import checks, embeds, files, database
from discord.ext import tasks
from difflib import SequenceMatcher
commands = discord.ext.commands
ytdl_format_options = {
'format': 'bestaudio/best',
'outtmpl': '... | 34.735714 | 198 | 0.61094 |
35062f45b2371121df6f139d2c546ce0211006a8 | 867 | py | Python | Resene naloge/euler35.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | Resene naloge/euler35.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | Resene naloge/euler35.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | import itertools
stevke = ['1', '3', '7', '9']
circular_primes = []
for ponavljanje in range(1, 7):
for stevilo in itertools.product(stevke, repeat=ponavljanje):
if all(je_prastevilo(permutacija) for permutacija in zasukej(stevilo)):
circular_primes += zasukej(stevilo)
for stevilo in range(1... | 25.5 | 79 | 0.605536 |
3506323d7b6298be2f53323222f210a843ce3b94 | 6,650 | py | Python | utils/update_ontario_huron_stocking.py | AdamCottrill/fsdivz | 98dd1f35a08dba26424e2951a40715e01399478c | [
"MIT"
] | null | null | null | utils/update_ontario_huron_stocking.py | AdamCottrill/fsdivz | 98dd1f35a08dba26424e2951a40715e01399478c | [
"MIT"
] | 6 | 2020-02-12T00:03:40.000Z | 2020-11-30T01:20:56.000Z | utils/update_ontario_huron_stocking.py | AdamCottrill/fsdviz | 98dd1f35a08dba26424e2951a40715e01399478c | [
"MIT"
] | null | null | null | """
~/utils/update_ontario_stocking.py
Created: 23 Jan 2019 15:29:22
DESCRIPTION:
This script updates the ontario data in the lake wide cwt database.
Updates include tag type, and sequence number for sequential cwts, cwt
manufacturer (where it should have been Micro Mark (MM))
Updates are preformed on both stocking... | 30.930233 | 86 | 0.689474 |
3507ca02ee239037d5eef8f695a0bc5d29d25160 | 2,001 | py | Python | mathplotlib/calculate_polygon_area.py | ronistiawan/python-scripts | fa2fa0215d753f1eb2c5e1ce98a8f2f2eaaa8eef | [
"MIT"
] | null | null | null | mathplotlib/calculate_polygon_area.py | ronistiawan/python-scripts | fa2fa0215d753f1eb2c5e1ce98a8f2f2eaaa8eef | [
"MIT"
] | null | null | null | mathplotlib/calculate_polygon_area.py | ronistiawan/python-scripts | fa2fa0215d753f1eb2c5e1ce98a8f2f2eaaa8eef | [
"MIT"
] | null | null | null | from PIL import Image
import numpy as np
from matplotlib.path import Path
import matplotlib.pyplot as plt
import matplotlib.patches as patches
image = Image.open('samp3.png', 'r') #read image
image = image.convert('L') #convert image to greyscale
data = np.asarray(image) #convert image t... | 27.791667 | 88 | 0.541229 |
350b9abb1ca4e2974d32cb349bf6a2ec364bd5f2 | 2,425 | py | Python | digital_ocean.py | Nahid5/digitalOceanHelper | 6250ca4969d3d2bc402054d1ea240a3e1743341d | [
"Apache-2.0"
] | null | null | null | digital_ocean.py | Nahid5/digitalOceanHelper | 6250ca4969d3d2bc402054d1ea240a3e1743341d | [
"Apache-2.0"
] | null | null | null | digital_ocean.py | Nahid5/digitalOceanHelper | 6250ca4969d3d2bc402054d1ea240a3e1743341d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import requests
import json
#Enter DO token
DOTOKEN = ""
HEADERS = {"Authorization": "Bearer " + DOTOKEN, "Content-Type": "application/json"}
##################################################################################
# Droplets
#
###########################... | 33.219178 | 126 | 0.53567 |
350be143f1d30bd097d33dfb553998544343e178 | 24,784 | py | Python | models.py | andywar65/dxf2vr | b51f8579b0e84c770f54c9d20b42cfe8d84a9031 | [
"BSD-2-Clause"
] | 3 | 2020-04-20T05:35:19.000Z | 2020-11-04T07:24:55.000Z | models.py | andywar65/dxf2vr | b51f8579b0e84c770f54c9d20b42cfe8d84a9031 | [
"BSD-2-Clause"
] | null | null | null | models.py | andywar65/dxf2vr | b51f8579b0e84c770f54c9d20b42cfe8d84a9031 | [
"BSD-2-Clause"
] | null | null | null | import os
from math import radians, sin, cos, asin, degrees, pi, sqrt, pow, fabs, atan2
from django import forms
from django.db import models
from django.conf import settings
from modelcluster.fields import ParentalKey
from wagtail.wagtailcore.models import Page, Orderable
from wagtail.wagtailadmin.edit_handlers impo... | 46.499062 | 134 | 0.474863 |
350cec8c27b5dd37429a101a908ea432ca1e45e2 | 1,308 | py | Python | scenarios/activity-update-and-delete/bots/activity_update_and_delete_bot.py | Shiftersky/botbuilder-python | e00ea990d5cb5b05d545d87c51249dfa8f183581 | [
"MIT"
] | 1 | 2020-02-19T15:50:10.000Z | 2020-02-19T15:50:10.000Z | scenarios/activity-update-and-delete/bots/activity_update_and_delete_bot.py | Fortune-Adekogbe/botbuilder-python | 4e48c874c32a2a7fe7f27a7a1f825e2aa39466c4 | [
"MIT"
] | null | null | null | scenarios/activity-update-and-delete/bots/activity_update_and_delete_bot.py | Fortune-Adekogbe/botbuilder-python | 4e48c874c32a2a7fe7f27a7a1f825e2aa39466c4 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from botbuilder.core import MessageFactory, TurnContext, ActivityHandler
| 38.470588 | 78 | 0.699541 |
350ee2dd3bf8139a0a27fa5260ff00d59d16fd74 | 90 | py | Python | deliravision/torch/models/gans/deep_convolutional/__init__.py | delira-dev/vision_torch | d944aa67d319bd63a2add5cb89e8308413943de6 | [
"BSD-2-Clause"
] | 4 | 2019-08-03T09:56:50.000Z | 2019-09-05T09:32:06.000Z | deliravision/torch/models/gans/deep_convolutional/__init__.py | delira-dev/vision_torch | d944aa67d319bd63a2add5cb89e8308413943de6 | [
"BSD-2-Clause"
] | 23 | 2019-08-03T14:16:47.000Z | 2019-10-22T10:15:10.000Z | deliravision/torch/models/gans/deep_convolutional/__init__.py | delira-dev/vision_torch | d944aa67d319bd63a2add5cb89e8308413943de6 | [
"BSD-2-Clause"
] | null | null | null | from deliravision.models.gans.deep_convolutional.dc_gan import \
DeepConvolutionalGAN
| 30 | 64 | 0.844444 |
350f3983aa26583c3a316ae8d7d678366a0569bd | 3,526 | py | Python | nobos_commons/utils/bounding_box_helper.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | 2 | 2020-06-03T16:28:44.000Z | 2020-10-10T03:07:23.000Z | nobos_commons/utils/bounding_box_helper.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | null | null | null | nobos_commons/utils/bounding_box_helper.py | noboevbo/nobos_commons | 471e52e10fd2228c106777c72d8439e58b047003 | [
"MIT"
] | 4 | 2020-10-10T03:07:25.000Z | 2021-09-30T01:11:02.000Z | import random
import sys
from nobos_commons.data_structures.bounding_box import BoundingBox
from nobos_commons.data_structures.bounding_box_3D import BoundingBox3D
from nobos_commons.data_structures.dimension import Coord2D, Coord3D
from nobos_commons.data_structures.skeletons.joint_2d import Joint2D
from nobos_common... | 35.979592 | 108 | 0.657969 |
351065226af5d5b96c95ebd5533ca34ea88bb7fd | 4,556 | py | Python | homeassistant/components/metoffice/weather.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 6 | 2017-08-02T19:26:39.000Z | 2020-03-14T22:47:41.000Z | homeassistant/components/metoffice/weather.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 60 | 2020-08-03T07:32:56.000Z | 2022-03-31T06:02:07.000Z | homeassistant/components/metoffice/weather.py | tbarbette/core | 8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c | [
"Apache-2.0"
] | 14 | 2018-08-19T16:28:26.000Z | 2021-09-02T18:26:53.000Z | """Support for UK Met Office weather service."""
from homeassistant.components.weather import WeatherEntity
from homeassistant.const import LENGTH_KILOMETERS, TEMP_CELSIUS
from homeassistant.core import callback
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
from .const import (
ATTRIBUTION... | 27.95092 | 163 | 0.620939 |
35113f1d050dde439e758f95376f877e2f9194b9 | 5,816 | py | Python | erniekit/common/rule.py | PaddlePaddle/LARK | 94a2367ba7f0f83b48330233450ea095d8dc9382 | [
"Apache-2.0"
] | 1,552 | 2019-03-03T19:52:07.000Z | 2019-07-19T06:47:57.000Z | erniekit/common/rule.py | PaddlePaddle/LARK | 94a2367ba7f0f83b48330233450ea095d8dc9382 | [
"Apache-2.0"
] | 154 | 2019-03-06T08:19:57.000Z | 2019-07-19T02:52:22.000Z | erniekit/common/rule.py | PaddlePaddle/LARK | 94a2367ba7f0f83b48330233450ea095d8dc9382 | [
"Apache-2.0"
] | 382 | 2019-03-04T13:37:01.000Z | 2019-07-19T06:33:44.000Z | # -*- coding: utf-8 -*
"""
some rule
"""
| 25.734513 | 80 | 0.678817 |
3513f46bb42fac991ca739cdee5e8eb27738239d | 8,511 | py | Python | bbscrape/__main__.py | luciancooper/bbcmd | 307aea02d245b3d217bb1a7f76a985b98da54e40 | [
"MIT"
] | 2 | 2018-12-07T20:13:03.000Z | 2020-06-03T11:34:59.000Z | bbscrape/__main__.py | luciancooper/bbcmd | 307aea02d245b3d217bb1a7f76a985b98da54e40 | [
"MIT"
] | null | null | null | bbscrape/__main__.py | luciancooper/bbcmd | 307aea02d245b3d217bb1a7f76a985b98da54e40 | [
"MIT"
] | null | null | null | import sys,argparse
from cmdprogress.bar import ProgBar
# ------------------------------------------------ spotrac ------------------------------------------------ #
# ------------------------------------------------ fangraphs ------------------------------------------------ #
# ------------------------------------... | 44.328125 | 267 | 0.639055 |
35150cb503f38ff16ebcf6a4b42f07d3240178e6 | 409 | py | Python | src/reducer/bohm_debug.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | 10 | 2015-06-09T00:25:01.000Z | 2019-06-11T16:07:31.000Z | src/reducer/bohm_debug.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | 25 | 2015-03-23T23:16:01.000Z | 2017-08-29T03:35:59.000Z | src/reducer/bohm_debug.py | fritzo/pomagma | 224bb6adab3fc68e2d853e6365b4b86a8f7f468f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
os.environ['POMAGMA_LOG_LEVEL'] = '3'
from pomagma.compiler.util import temp_memoize # isort:skip
from pomagma.reducer import bohm # isort:skip
print('Example 1.')
with temp_memoize():
bohm.sexpr_simplify('(ABS (ABS (1 0 (1 0))) (ABS (ABS (1 (0 0)))))')
print('Example 2.')
w... | 21.526316 | 72 | 0.655257 |
3515dc84f9b841feb94f0bde119df749e97f2631 | 4,709 | py | Python | scaper_concept/venv/lib/python3.9/site-packages/celery/utils/debug.py | edudbot/web-scraper | 12c07f805427699b2c3a35ed7c0d7efbc3673a7f | [
"MIT"
] | 3 | 2022-02-11T12:09:29.000Z | 2022-02-12T19:13:17.000Z | scaper_concept/venv/lib/python3.9/site-packages/celery/utils/debug.py | edudbot/web-scraper | 12c07f805427699b2c3a35ed7c0d7efbc3673a7f | [
"MIT"
] | null | null | null | scaper_concept/venv/lib/python3.9/site-packages/celery/utils/debug.py | edudbot/web-scraper | 12c07f805427699b2c3a35ed7c0d7efbc3673a7f | [
"MIT"
] | null | null | null | """Utilities for debugging memory usage, blocking calls, etc."""
import os
import sys
import traceback
from contextlib import contextmanager
from functools import partial
from pprint import pprint
from celery.platforms import signals
from celery.utils.text import WhateverIO
try:
from psutil import Process
except ... | 24.273196 | 76 | 0.6031 |
3517beedd46a5471e67dd32647db03c5051f3de7 | 5,038 | py | Python | scripts/selenium/test.py | Mlrobinson1993/trustroots | cecda00742896bba45276fc2095492ff5aebe25d | [
"MIT"
] | 377 | 2015-01-06T11:27:43.000Z | 2022-03-15T04:17:06.000Z | scripts/selenium/test.py | Mlrobinson1993/trustroots | cecda00742896bba45276fc2095492ff5aebe25d | [
"MIT"
] | 1,239 | 2015-01-01T14:05:18.000Z | 2022-03-30T06:00:39.000Z | scripts/selenium/test.py | Mlrobinson1993/trustroots | cecda00742896bba45276fc2095492ff5aebe25d | [
"MIT"
] | 176 | 2015-01-04T13:51:28.000Z | 2022-03-30T19:49:54.000Z | #!/usr/bin/env python
from browsers import browsers
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.support.wait import WebDriverWait
from selenium.common.exceptions import TimeoutExc... | 33.812081 | 95 | 0.645693 |
351a506b1b2ee7c86af3ebc3248a1ec939c3dd9d | 1,845 | py | Python | lib/dcsotiesplunk/filtering.py | satta/TIE-Splunk-TA | 8d4636b96dfb63b4ca7b38f21d1c8a2d8dde392b | [
"BSD-3-Clause"
] | 2 | 2019-03-19T12:25:42.000Z | 2019-03-19T12:27:34.000Z | lib/dcsotiesplunk/filtering.py | satta/TIE-Splunk-TA | 8d4636b96dfb63b4ca7b38f21d1c8a2d8dde392b | [
"BSD-3-Clause"
] | 7 | 2019-03-28T17:32:33.000Z | 2020-06-17T10:45:20.000Z | lib/dcsotiesplunk/filtering.py | satta/TIE-Splunk-TA | 8d4636b96dfb63b4ca7b38f21d1c8a2d8dde392b | [
"BSD-3-Clause"
] | 1 | 2021-08-23T15:22:36.000Z | 2021-08-23T15:22:36.000Z | # Copyright (c) 2017, 2020, DCSO GmbH
import json
import sys
import os
# we change the path so that this app can run within the Splunk environment
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
from dcsotie.errors import TIEError
from dcsotiesplunk.logger import get_logger
logger = get_log... | 29.758065 | 94 | 0.577236 |
351cb7437ced7acc5333179d8ad7d5cb015b6375 | 7,388 | py | Python | tests/mapping_wind02.py | pnarvor/nephelae_mapping | 498c04a165ee9163c749a3f47bea6028494fc3f4 | [
"BSD-3-Clause"
] | null | null | null | tests/mapping_wind02.py | pnarvor/nephelae_mapping | 498c04a165ee9163c749a3f47bea6028494fc3f4 | [
"BSD-3-Clause"
] | null | null | null | tests/mapping_wind02.py | pnarvor/nephelae_mapping | 498c04a165ee9163c749a3f47bea6028494fc3f4 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/python3
import sys
sys.path.append('../../')
import numpy as np
import numpy.fft as npfft
import matplotlib.pyplot as plt
from matplotlib import animation
import time
from netCDF4 import MFDataset
from nephelae_simulation.mesonh_interface import MesoNHVariable
from nephelae_base.types import Position
fr... | 30.03252 | 92 | 0.577829 |
351dc4da7ea35617cf860d3eec0ce499004d3deb | 1,432 | py | Python | interaction.py | BAFurtado/TLD | 7f6d8b0f1cfa0a03a30676058e84a1afa7dd273a | [
"MIT"
] | null | null | null | interaction.py | BAFurtado/TLD | 7f6d8b0f1cfa0a03a30676058e84a1afa7dd273a | [
"MIT"
] | null | null | null | interaction.py | BAFurtado/TLD | 7f6d8b0f1cfa0a03a30676058e84a1afa7dd273a | [
"MIT"
] | null | null | null | # coding: utf-8
# Originally from
# https://github.com/PPartisan/THE_LONG_DARK
# Simply adapted to LINUX by Bernardo Alves Furtado
import threading
import time
import psutil
from pylab import rcParams
from pynput.keyboard import Key, Controller
import mapping
rcParams['figure.figsize'] = 12, 9.5
| 23.866667 | 79 | 0.643855 |
3520d3fadcd76025a840929f26fb7ddd09ba91b1 | 7,205 | py | Python | multiply_ui/server/resources/workflows/multiply_workflow.py | RaT0M/multiply-ui | ad7fffb15cc962604340b31b38d34bc470fa8448 | [
"MIT"
] | null | null | null | multiply_ui/server/resources/workflows/multiply_workflow.py | RaT0M/multiply-ui | ad7fffb15cc962604340b31b38d34bc470fa8448 | [
"MIT"
] | 20 | 2019-05-21T10:33:36.000Z | 2019-12-11T08:13:29.000Z | multiply_ui/server/resources/workflows/multiply_workflow.py | RaT0M/multiply-ui | ad7fffb15cc962604340b31b38d34bc470fa8448 | [
"MIT"
] | 1 | 2020-10-14T12:32:36.000Z | 2020-10-14T12:32:36.000Z | import logging
import os
import signal
import sys
from pmonitor import PMonitor
logging.getLogger().setLevel(logging.INFO)
| 45.03125 | 118 | 0.560583 |
3522fc5255a56e1f03bbf963d675fa1aac0e03fb | 2,888 | py | Python | demo/utils/genderdetect.py | TommyZihao/MMGEN-FaceStylor | 05c6539b43fd19955d64eb37c86ee2cd425bcb9d | [
"Apache-2.0"
] | 122 | 2021-12-10T06:19:03.000Z | 2022-03-27T12:30:42.000Z | demo/utils/genderdetect.py | pixel-lt/MMGEN-FaceStylor | a72bb3b1ee6cff50e0edd62e5a823049c3c1cd82 | [
"Apache-2.0"
] | 1 | 2021-12-24T10:07:41.000Z | 2021-12-24T10:07:41.000Z | demo/utils/genderdetect.py | pixel-lt/MMGEN-FaceStylor | a72bb3b1ee6cff50e0edd62e5a823049c3c1cd82 | [
"Apache-2.0"
] | 12 | 2021-12-10T10:38:19.000Z | 2022-02-08T12:54:46.000Z | import random
import cv2
padding = 20
MODEL_MEAN_VALUES = (78.4263377603, 87.7689143744, 114.895847746)
genderList = ['Male', 'Female']
| 40.111111 | 78 | 0.498269 |
352346172d80e787c3629f02731d55869cb32f15 | 2,223 | py | Python | main.py | Knysliux001/pocker | d7f6685db8db407b4f93ea330b9568f1dae39b90 | [
"MIT"
] | null | null | null | main.py | Knysliux001/pocker | d7f6685db8db407b4f93ea330b9568f1dae39b90 | [
"MIT"
] | null | null | null | main.py | Knysliux001/pocker | d7f6685db8db407b4f93ea330b9568f1dae39b90 | [
"MIT"
] | null | null | null | # import random
#
# deck = list()
# for suit in ["", "", "", ""]:
# for value in ["A", "K", "Q", "J", "10", "9", "8", "7", "6", "5", "4", "3", "2"]:
# deck.append((value, suit))
# r_sample = random.sample(deck, 7)
# print(r_sample)
from enum import Enum, auto, unique
card1 = Card(Ca... | 21.375 | 87 | 0.525416 |
352358117b3813753b8bc8e524aa0139c98a9916 | 1,118 | py | Python | networkapi/api_task/classes.py | vinicius-marinho/GloboNetworkAPI | 94651d3b4dd180769bc40ec966814f3427ccfb5b | [
"Apache-2.0"
] | 73 | 2015-04-13T17:56:11.000Z | 2022-03-24T06:13:07.000Z | networkapi/api_task/classes.py | leopoldomauricio/GloboNetworkAPI | 3b5b2e336d9eb53b2c113977bfe466b23a50aa29 | [
"Apache-2.0"
] | 99 | 2015-04-03T01:04:46.000Z | 2021-10-03T23:24:48.000Z | networkapi/api_task/classes.py | shildenbrand/GloboNetworkAPI | 515d5e961456cee657c08c275faa1b69b7452719 | [
"Apache-2.0"
] | 64 | 2015-08-05T21:26:29.000Z | 2022-03-22T01:06:28.000Z | # -*- coding: utf-8 -*-
from networkapi import celery_app
from networkapi.queue_tools.rabbitmq import QueueManager
from networkapi.usuario.models import Usuario
| 32.882353 | 73 | 0.560823 |
35238db428c720694c3ee3ace0a023636d8019be | 539 | py | Python | tests/thalesians/filtering/algs/test_kalman.py | thalesians/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 18 | 2017-03-07T19:13:18.000Z | 2021-01-05T00:35:30.000Z | tests/thalesians/filtering/algs/test_kalman.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | null | null | null | tests/thalesians/filtering/algs/test_kalman.py | HanMeh/bayestsa | d54ea04ffa9903473b11c906545e95b2666afb88 | [
"Apache-2.0"
] | 14 | 2016-12-27T00:09:40.000Z | 2020-12-27T19:23:53.000Z | import datetime
import unittest
if __name__ == '__main__':
unittest.main()
| 23.434783 | 63 | 0.64564 |
352401392d56cb0110d7577485af9d192f7adefa | 615 | py | Python | fclib/tests/test_dcnn.py | barrosm/forecasting | 86b421b71826b92e47c3e3cb6cdcbf7ff4a63b90 | [
"MIT"
] | 2,276 | 2020-04-07T17:38:30.000Z | 2022-03-30T12:24:55.000Z | fclib/tests/test_dcnn.py | barrosm/forecasting | 86b421b71826b92e47c3e3cb6cdcbf7ff4a63b90 | [
"MIT"
] | 31 | 2020-04-10T21:25:18.000Z | 2022-02-10T01:17:19.000Z | fclib/tests/test_dcnn.py | barrosm/forecasting | 86b421b71826b92e47c3e3cb6cdcbf7ff4a63b90 | [
"MIT"
] | 401 | 2020-04-07T18:52:22.000Z | 2022-03-29T04:26:29.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from fclib.models.dilated_cnn import create_dcnn_model
| 30.75 | 119 | 0.720325 |
352587a10e761446a3e63b0953410077faf0a841 | 1,579 | py | Python | threads/thread_pool_example.py | CoolerVoid/Python_survival_tricks | 10cfa91535b46e3e2bcad32128067c2239fcb13a | [
"BSD-2-Clause"
] | 4 | 2019-08-02T12:21:42.000Z | 2022-03-18T01:59:51.000Z | threads/thread_pool_example.py | CoolerVoid/Python_survival_tricks | 10cfa91535b46e3e2bcad32128067c2239fcb13a | [
"BSD-2-Clause"
] | null | null | null | threads/thread_pool_example.py | CoolerVoid/Python_survival_tricks | 10cfa91535b46e3e2bcad32128067c2239fcb13a | [
"BSD-2-Clause"
] | null | null | null | # threadpool example
import sys
from threading import Thread
import queue
import time
def teste_call(n):
print("Test number : "+str(n))
time.sleep(3)
if __name__ == '__main__':
# threads ao mesmo tempo rodando no caso 3 ao memso tempo
pool = ThreadPool(6)
var=[]
var.append("opa1")
var.append("opa... | 23.924242 | 84 | 0.582647 |
35259f2c996dfec7e43f95678e6a70059dbf5d13 | 2,102 | py | Python | src/CollidingNode.py | kingjin94/enhanced_simulation | 45021f9691e5f772ef4840d69b0d504a6ee79441 | [
"Intel"
] | null | null | null | src/CollidingNode.py | kingjin94/enhanced_simulation | 45021f9691e5f772ef4840d69b0d504a6ee79441 | [
"Intel"
] | null | null | null | src/CollidingNode.py | kingjin94/enhanced_simulation | 45021f9691e5f772ef4840d69b0d504a6ee79441 | [
"Intel"
] | null | null | null | #!/usr/bin/python
import rospy
from gazebo_msgs.msg import ContactsState
from enhanced_sim.msg import CollisionState
"""
Spec:
Look at all /panda/bumper* topics, get which are colliding and
publish a boolean variable (per link) saying whether in collision
"""
if __name__ == '__main__':
rospy.init_node("SimpleCollSt... | 38.218182 | 86 | 0.747383 |
352657d69966e9d784fefcae6daaafdd7408b08d | 2,061 | py | Python | flatlib/protocols/behavior.py | UtkuGlsvn/flatlib | 79ecb961ed77393405bc21a11a5874a62103ceef | [
"MIT"
] | null | null | null | flatlib/protocols/behavior.py | UtkuGlsvn/flatlib | 79ecb961ed77393405bc21a11a5874a62103ceef | [
"MIT"
] | null | null | null | flatlib/protocols/behavior.py | UtkuGlsvn/flatlib | 79ecb961ed77393405bc21a11a5874a62103ceef | [
"MIT"
] | null | null | null | """
This file is part of flatlib - (C) FlatAngle
Author: Joo Ventura (flatangleweb@gmail.com)
This module implements the Behavior Traditional
Protocol.
"""
from flatlib import const
from flatlib import aspects
from flatlib.dignities import essential
def _merge(listA, listB):
""" Merge... | 29.869565 | 76 | 0.681708 |
35276376126b8d62c338db73e2e88ec964f2ee31 | 147 | py | Python | fetch_embed/__init__.py | ffreemt/fetch-embed | 95b97806d2becd3606989dd270c90453433b8546 | [
"MIT"
] | null | null | null | fetch_embed/__init__.py | ffreemt/fetch-embed | 95b97806d2becd3606989dd270c90453433b8546 | [
"MIT"
] | null | null | null | fetch_embed/__init__.py | ffreemt/fetch-embed | 95b97806d2becd3606989dd270c90453433b8546 | [
"MIT"
] | null | null | null | __version__ = "0.1.6"
from .fetch_embed import fetch_embed
from .embed_text import embed_text
__all__ = (
"fetch_embed",
"embed_text",
)
| 14.7 | 36 | 0.707483 |
352a8ae5a17ad0bab619623a2f26962525fde757 | 4,570 | py | Python | NeodymiumDotNet.Benchmark.Numpy/SimpleCalculationBenchmark.py | aka-nd1220/NeodymiumDotNet | cbb105af6835f450767383f3ee505e9e5af50bcc | [
"Apache-2.0"
] | null | null | null | NeodymiumDotNet.Benchmark.Numpy/SimpleCalculationBenchmark.py | aka-nd1220/NeodymiumDotNet | cbb105af6835f450767383f3ee505e9e5af50bcc | [
"Apache-2.0"
] | null | null | null | NeodymiumDotNet.Benchmark.Numpy/SimpleCalculationBenchmark.py | aka-nd1220/NeodymiumDotNet | cbb105af6835f450767383f3ee505e9e5af50bcc | [
"Apache-2.0"
] | 1 | 2021-09-06T07:53:25.000Z | 2021-09-06T07:53:25.000Z | #!/usr/bin/env python3
import numpy as np
import numpy.random as npr
import pytest
A1 = npr.rand( 1, 1)
B1 = npr.rand( 1, 1)
C1 = npr.rand( 1, 1)
A3 = npr.rand( 3, 3)
B3 = npr.rand( 3, 3)
C3 = npr.rand( 3, 3)
A10 = npr.rand( 10, 10)
B10 = npr.rand( 10, 10)
C10... | 42.71028 | 99 | 0.695842 |
352ab043ccc828a575977f5e6c14834db88b7602 | 51,242 | py | Python | backstaff/plotting.py | lars-frogner/bifrost-rust | ae1b4e7adde92ec1c611259796ef593243f82a8d | [
"Apache-2.0"
] | null | null | null | backstaff/plotting.py | lars-frogner/bifrost-rust | ae1b4e7adde92ec1c611259796ef593243f82a8d | [
"Apache-2.0"
] | 1 | 2019-10-24T07:24:05.000Z | 2019-10-24T07:24:05.000Z | backstaff/plotting.py | lars-frogner/BifRust | ae1b4e7adde92ec1c611259796ef593243f82a8d | [
"Apache-2.0"
] | null | null | null | import copy
import numpy as np
import matplotlib as mpl
# mpl.use('agg')
import matplotlib.pyplot as plt
import matplotlib.patches as mpl_patches
import matplotlib.colors as mpl_colors
import matplotlib.cm as mpl_cm
import matplotlib.animation as animation
import matplotlib.patheffects as path_effects
from mpl_toolkit... | 25.879798 | 88 | 0.581944 |
352ac045aca6f34db9114bf0106c20cfc01aaf2f | 4,174 | py | Python | cms/management/commands/create_initial_data.py | dcreekp/pythondotorg | 56b8707bcb6121d636177ad69b9d345c307405be | [
"Apache-2.0"
] | 1 | 2018-07-30T07:32:26.000Z | 2018-07-30T07:32:26.000Z | cms/management/commands/create_initial_data.py | Nathanator/pythondotorg | 694f2e0afcd8f8c4882f9f3ae0a74f2d95dfcd18 | [
"Apache-2.0"
] | null | null | null | cms/management/commands/create_initial_data.py | Nathanator/pythondotorg | 694f2e0afcd8f8c4882f9f3ae0a74f2d95dfcd18 | [
"Apache-2.0"
] | null | null | null | import importlib
import inspect
import pprint
from django.apps import apps
from django.core.management import BaseCommand, call_command
| 37.603604 | 111 | 0.551509 |
352b63d351b0fa1ec394f4c8e0212687ff1e36ed | 3,290 | py | Python | oslo_cache/backends/dictionary.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | 29 | 2015-04-26T16:05:14.000Z | 2021-12-31T15:03:19.000Z | oslo_cache/backends/dictionary.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | null | null | null | oslo_cache/backends/dictionary.py | mail2nsrajesh/oslo.cache | f288eae21f625b9bb5063f525fcc18014848a64f | [
"Apache-2.0"
] | 19 | 2015-06-15T23:51:10.000Z | 2020-12-10T00:03:21.000Z | # Copyright 2015 Mirantis 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 applicable law or agreed to in writing... | 30.747664 | 75 | 0.640426 |
352db0e47177ceb1a3626611938052d395f6e3f9 | 725 | py | Python | preprocessdata.py | zoepie/HTML-Project | dd6a177729312e75ed2dbc702e521eea5b2d63f3 | [
"MIT"
] | null | null | null | preprocessdata.py | zoepie/HTML-Project | dd6a177729312e75ed2dbc702e521eea5b2d63f3 | [
"MIT"
] | null | null | null | preprocessdata.py | zoepie/HTML-Project | dd6a177729312e75ed2dbc702e521eea5b2d63f3 | [
"MIT"
] | null | null | null | import numpy as np
from bs4 import BeautifulSoup
from tqdm import tqdm
import json
if __name__ == '__main__':
with open('name2idx.json', 'r') as fp:
name2idx = json.load(fp)
with open('data/0.txt', 'r', encoding='utf-8')as f:
contents = f.read()
soup = BeautifulSoup(contents, "html.p... | 23.387097 | 76 | 0.572414 |
353078a42c25216e1cef61978c7cbdf901484947 | 2,658 | py | Python | tests/test_surrogates.py | scott-trinkle/braingraphgeo | 990c4956acf8fe56f9bdb8871c265c4ea28da9a9 | [
"MIT"
] | null | null | null | tests/test_surrogates.py | scott-trinkle/braingraphgeo | 990c4956acf8fe56f9bdb8871c265c4ea28da9a9 | [
"MIT"
] | null | null | null | tests/test_surrogates.py | scott-trinkle/braingraphgeo | 990c4956acf8fe56f9bdb8871c265c4ea28da9a9 | [
"MIT"
] | null | null | null | import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
from context import braingraphgeo as bgg
| 53.16 | 83 | 0.52784 |
35307980268b82f9e8f16546c421f49a138ad4df | 7,477 | py | Python | census-us/custom-recipes/address-batch-geocoder-us-census-geo/recipe.py | RedaAffane/dataiku-contrib | d409ddc25d31570972a14abb19a84ac101afc6cc | [
"Apache-2.0"
] | null | null | null | census-us/custom-recipes/address-batch-geocoder-us-census-geo/recipe.py | RedaAffane/dataiku-contrib | d409ddc25d31570972a14abb19a84ac101afc6cc | [
"Apache-2.0"
] | null | null | null | census-us/custom-recipes/address-batch-geocoder-us-census-geo/recipe.py | RedaAffane/dataiku-contrib | d409ddc25d31570972a14abb19a84ac101afc6cc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import dataiku
import pandas as pd, numpy as np
from dataiku import pandasutils as pdu
import requests
#import time
from dataiku.customrecipe import *
import sys
import re
import geocoder_utils
import common
import os
logging.info('1/6 Creating base folder...' )
path_datadir_tmp = dataiku.get... | 35.77512 | 115 | 0.5216 |
35309344c14773040e0f8d93e109f4776a3d6c80 | 15,008 | py | Python | workers/macos/worker.py | joweeba/mrtaskman | cef92f11cca3de45c77b76a68a91d85af9c8fb48 | [
"Apache-2.0"
] | null | null | null | workers/macos/worker.py | joweeba/mrtaskman | cef92f11cca3de45c77b76a68a91d85af9c8fb48 | [
"Apache-2.0"
] | null | null | null | workers/macos/worker.py | joweeba/mrtaskman | cef92f11cca3de45c77b76a68a91d85af9c8fb48 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# di... | 34.501149 | 80 | 0.640259 |
35325ac77e634192fcf4559a3df2220675e50312 | 1,421 | py | Python | pystrafe/tests/test_basic.py | Matherunner/pystrafe | 102533e7f011c1d6167990bb86653c18a5ae80b0 | [
"MIT"
] | 2 | 2020-08-03T15:21:42.000Z | 2022-02-13T15:35:28.000Z | pystrafe/tests/test_basic.py | Matherunner/pystrafe | 102533e7f011c1d6167990bb86653c18a5ae80b0 | [
"MIT"
] | null | null | null | pystrafe/tests/test_basic.py | Matherunner/pystrafe | 102533e7f011c1d6167990bb86653c18a5ae80b0 | [
"MIT"
] | null | null | null | from pytest import approx, warns, raises
from pystrafe import basic
| 24.084746 | 49 | 0.560169 |