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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
436d01399c03b77d98f4cf23e9025181a7999308 | 3,767 | py | Python | app/app.py | shaswat01/Disaster_Response_ETL | c441514fb5231d193cd4b29afad00fe0f3513562 | [
"MIT"
] | null | null | null | app/app.py | shaswat01/Disaster_Response_ETL | c441514fb5231d193cd4b29afad00fe0f3513562 | [
"MIT"
] | null | null | null | app/app.py | shaswat01/Disaster_Response_ETL | c441514fb5231d193cd4b29afad00fe0f3513562 | [
"MIT"
] | null | null | null | import nltk
import json
import plotly
import pandas as pd
import plotly.graph_objects as go
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import word_tokenize
nltk.download(['punkt','wordnet'])
from flask import Flask
from flask import render_template, request, jsonify
from plotly.graph_objs import Bar, H... | 25.281879 | 131 | 0.528537 |
436d1a37515679503cc50623874a3539d00946be | 4,659 | py | Python | tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2019-09-22T01:05:07.000Z | 2019-09-22T01:05:07.000Z | tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2019-09-20T01:33:37.000Z | 2019-09-20T08:42:11.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
from openvino.tools.mo.front.mxnet.mx_reshape_to_reshape import MXReshapeToReshape
from openvino.tools.mo.ops.Reverse import Reverse
from openvino.tools.mo.ops.mxreshape import MXReshape
from openvino.tools.mo.front.c... | 59.730769 | 127 | 0.69457 |
436dafbd787a4e7854f10318324bcf64277e6432 | 6,480 | py | Python | Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py | MattMarti/Lambda-Trajectory-Sim | 4155f103120bd49221776cc3b825b104f36817f2 | [
"MIT"
] | null | null | null | Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py | MattMarti/Lambda-Trajectory-Sim | 4155f103120bd49221776cc3b825b104f36817f2 | [
"MIT"
] | null | null | null | Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py | MattMarti/Lambda-Trajectory-Sim | 4155f103120bd49221776cc3b825b104f36817f2 | [
"MIT"
] | null | null | null | import unittest;
import numpy as np;
import scipy as sp;
from cubic_spline_solve import cubic_spline_solve;
from cubic_spline_fun import cubic_spline_fun;
# | 37.241379 | 78 | 0.564352 |
437021d671825e959375a0374106a655349dffb0 | 7,803 | py | Python | PassWord.py | IQUBE-X/passGenerator | a56a5928c1e8ee503d2757ecf0ab4108a52ec677 | [
"MIT"
] | 1 | 2020-07-11T07:59:54.000Z | 2020-07-11T07:59:54.000Z | PassWord.py | dhruvaS-hub/passGenerator | a56a5928c1e8ee503d2757ecf0ab4108a52ec677 | [
"MIT"
] | null | null | null | PassWord.py | dhruvaS-hub/passGenerator | a56a5928c1e8ee503d2757ecf0ab4108a52ec677 | [
"MIT"
] | 1 | 2021-06-02T10:11:19.000Z | 2021-06-02T10:11:19.000Z | # PassWord - The Safe Password Generator App!
# importing the tkinter module for GUI
from tkinter import *
# importing the message box widget from tkinter
from tkinter import messagebox
# importing sqlite3 for database
import sqlite3
# importing random for password generation
import random
# creatin... | 32.648536 | 134 | 0.656927 |
4370bea6e2a16934ad57aff4637712bbcfdb6bc4 | 331 | py | Python | 1805_number_of_different_integers_in_a_string.py | hotternative/leetcode | d0ec225abc2ada1398666641c7872f3eb889e7ed | [
"MIT"
] | null | null | null | 1805_number_of_different_integers_in_a_string.py | hotternative/leetcode | d0ec225abc2ada1398666641c7872f3eb889e7ed | [
"MIT"
] | null | null | null | 1805_number_of_different_integers_in_a_string.py | hotternative/leetcode | d0ec225abc2ada1398666641c7872f3eb889e7ed | [
"MIT"
] | null | null | null | from string import ascii_lowercase
ts = 'a123bc34d8ef34'
cur = []
res = set()
for c in ts:
if c in ascii_lowercase:
if cur:
s = ''.join(cur)
res.add(int(s))
cur = []
else:
cur.append(c)
else:
if cur:
s = ''.join(cur)
res.add(int(s))
pri... | 13.24 | 34 | 0.480363 |
4371e6643a58d749ad832f8647f0481df0293c7c | 1,087 | py | Python | app.py | ahmedriaz9908/memeapiiz | eef98f837f2ec83edc3dd004f19dcefda9b582a5 | [
"MIT"
] | null | null | null | app.py | ahmedriaz9908/memeapiiz | eef98f837f2ec83edc3dd004f19dcefda9b582a5 | [
"MIT"
] | null | null | null | app.py | ahmedriaz9908/memeapiiz | eef98f837f2ec83edc3dd004f19dcefda9b582a5 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, jsonify
from reddit_handler import *
app = Flask(__name__)
meme_subreddits = ['izlam']
| 20.12963 | 84 | 0.601656 |
4372710c66361fa93707980328afe4826b15ed27 | 6,609 | py | Python | 10_compare_between_main_product_pages.py | e-davydenkova/SeleniumWebDriver_Training | e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a | [
"Apache-2.0"
] | null | null | null | 10_compare_between_main_product_pages.py | e-davydenkova/SeleniumWebDriver_Training | e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a | [
"Apache-2.0"
] | null | null | null | 10_compare_between_main_product_pages.py | e-davydenkova/SeleniumWebDriver_Training | e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a | [
"Apache-2.0"
] | null | null | null | import pytest
from selenium import webdriver
import re
# check that product names are identical on the main page and on product page
def test_product_names(driver):
# get a product name on the main page
main_name = driver.find_element_by_css_selector("#box-campaigns div li.product.column.shadow.hover-light .... | 52.03937 | 125 | 0.733394 |
4372f137c065f7fda02b994b61b1b4bd3b7965e5 | 1,775 | py | Python | pyrite/llvm.py | iahuang/pyrite | 0db83aad6aa8f245edf13d393f65d408eb956c4d | [
"MIT"
] | null | null | null | pyrite/llvm.py | iahuang/pyrite | 0db83aad6aa8f245edf13d393f65d408eb956c4d | [
"MIT"
] | 1 | 2022-03-28T00:35:11.000Z | 2022-03-29T21:17:06.000Z | pyrite/llvm.py | iahuang/pyrite | 0db83aad6aa8f245edf13d393f65d408eb956c4d | [
"MIT"
] | null | null | null | import shutil
from pyrite import fs
from pyrite.command_line import run_command
from pyrite.errors import UserError
from pyrite.globals import Globals
from os.path import join
| 29.583333 | 127 | 0.60507 |
43741937702bf1405a4a4845184d5f67e95b3dd1 | 526 | py | Python | bag_recursive.py | eduardogerentklein/Algoritmos-Geneticos | 499836ac4867240ee3777dcdd554081a480cb8c9 | [
"MIT"
] | null | null | null | bag_recursive.py | eduardogerentklein/Algoritmos-Geneticos | 499836ac4867240ee3777dcdd554081a480cb8c9 | [
"MIT"
] | null | null | null | bag_recursive.py | eduardogerentklein/Algoritmos-Geneticos | 499836ac4867240ee3777dcdd554081a480cb8c9 | [
"MIT"
] | null | null | null | maxWeight = 30
value = [15, 7, 10, 5, 8, 17]
weight = [15, 3, 2, 5, 9, 20]
bestAnswer = bag(0, [])
print(bestAnswer) | 18.137931 | 41 | 0.629278 |
437727aaebd2b60da03893cf1960a1dac044f4b8 | 14,215 | py | Python | train.py | MEfeTiryaki/trpo | e1c7bc25165730afa60d9733555398e078a13e67 | [
"MIT"
] | 2 | 2020-03-26T23:36:41.000Z | 2020-03-27T03:04:27.000Z | train.py | MEfeTiryaki/trpo | e1c7bc25165730afa60d9733555398e078a13e67 | [
"MIT"
] | null | null | null | train.py | MEfeTiryaki/trpo | e1c7bc25165730afa60d9733555398e078a13e67 | [
"MIT"
] | 1 | 2020-03-27T03:04:28.000Z | 2020-03-27T03:04:28.000Z | import argparse
from itertools import count
import signal
import sys
import os
import time
import numpy as np
import gym
import torch
import torch.autograd as autograd
from torch.autograd import Variable
import scipy.optimize
import matplotlib.pyplot as plt
from value import Value
from policy import Policy
from ut... | 38.838798 | 143 | 0.636722 |
43785386d2679f8fabe7de8f8acd7359d1da2540 | 5,112 | py | Python | task3/task3_xgb_cv.py | meck93/intro_ml | 903710b13e9eed8b45fdbd9957c2fb49b2981f62 | [
"MIT"
] | null | null | null | task3/task3_xgb_cv.py | meck93/intro_ml | 903710b13e9eed8b45fdbd9957c2fb49b2981f62 | [
"MIT"
] | null | null | null | task3/task3_xgb_cv.py | meck93/intro_ml | 903710b13e9eed8b45fdbd9957c2fb49b2981f62 | [
"MIT"
] | null | null | null |
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.feature_selection import f_classif, SelectKBest
import numpy as np
import pandas as pd
import os
mingw_path = 'C:\\Program Files\\mingw-w64\\x86_64-7.2.0-posix... | 32.35443 | 150 | 0.714593 |
4378f461808522c0661a502153858f383b5e6b02 | 1,369 | py | Python | discovery-provider/src/queries/get_plays_metrics.py | atticwip/audius-protocol | 9758e849fae01508fa1d27675741228b11533e6e | [
"Apache-2.0"
] | 429 | 2019-08-14T01:34:07.000Z | 2022-03-30T06:31:38.000Z | discovery-provider/src/queries/get_plays_metrics.py | SNOmad1/audius-protocol | 3d5fc2bf688265eb529060f1f3234ef2b95ed231 | [
"Apache-2.0"
] | 998 | 2019-08-14T01:52:37.000Z | 2022-03-31T23:17:22.000Z | discovery-provider/src/queries/get_plays_metrics.py | SNOmad1/audius-protocol | 3d5fc2bf688265eb529060f1f3234ef2b95ed231 | [
"Apache-2.0"
] | 73 | 2019-10-04T04:24:16.000Z | 2022-03-24T16:27:30.000Z | import logging
import time
from sqlalchemy import func, desc
from src.models import Play
from src.utils import db_session
logger = logging.getLogger(__name__)
def get_plays_metrics(args):
"""
Returns metrics for play counts
Args:
args: dict The parsed args from the request
args.start_tim... | 27.938776 | 82 | 0.646457 |
437984a8785d9b1726c62d66ab94644c9b6578d8 | 5,275 | py | Python | CAutomation/settings.py | Rich9rd/CAutomation | d1c1b963e806a216d4c825243c1c405336414413 | [
"MIT"
] | null | null | null | CAutomation/settings.py | Rich9rd/CAutomation | d1c1b963e806a216d4c825243c1c405336414413 | [
"MIT"
] | null | null | null | CAutomation/settings.py | Rich9rd/CAutomation | d1c1b963e806a216d4c825243c1c405336414413 | [
"MIT"
] | null | null | null | """
Django settings for CAutomation project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | 27.473958 | 178 | 0.714123 |
437c42fd9708572ca32db3dd04de75e0b264c088 | 1,361 | py | Python | calculators/credit_card_calculator.py | wanderindev/financial-calculator-backend | ad7e736c858298c240eb9af52fbadcb02c693968 | [
"MIT"
] | 2 | 2021-01-08T04:26:54.000Z | 2022-02-04T22:22:27.000Z | calculators/credit_card_calculator.py | wanderindev/financial-calculator-backend | ad7e736c858298c240eb9af52fbadcb02c693968 | [
"MIT"
] | null | null | null | calculators/credit_card_calculator.py | wanderindev/financial-calculator-backend | ad7e736c858298c240eb9af52fbadcb02c693968 | [
"MIT"
] | 2 | 2019-06-06T19:36:17.000Z | 2020-05-20T12:37:08.000Z | from .calculator import Calculator
# noinspection PyTypeChecker
| 30.244444 | 70 | 0.543718 |
437c6a6a6d5abf3db9e497007b852df839401638 | 2,075 | py | Python | setup.py | phaustin/MyST-Parser | 181e921cea2794f10ca612df6bf2a2057b66c372 | [
"MIT"
] | null | null | null | setup.py | phaustin/MyST-Parser | 181e921cea2794f10ca612df6bf2a2057b66c372 | [
"MIT"
] | null | null | null | setup.py | phaustin/MyST-Parser | 181e921cea2794f10ca612df6bf2a2057b66c372 | [
"MIT"
] | null | null | null | """myst-parser package setup."""
from importlib import import_module
from setuptools import find_packages, setup
setup(
name="myst-parser",
version=import_module("myst_parser").__version__,
description=(
"An extended commonmark compliant parser, " "with bridges to docutils & sphinx."
),
lo... | 37.727273 | 88 | 0.61012 |
437d5b7a20ce44c03f3d4a4f70ef524faf474a1a | 554 | py | Python | python/tests/extractor/refmt.py | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 114 | 2015-01-11T05:41:03.000Z | 2021-08-31T03:47:12.000Z | python/tests/extractor/refmt.py | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 29 | 2015-01-09T01:00:09.000Z | 2019-09-25T06:04:02.000Z | python/tests/extractor/refmt.py | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 50 | 2015-02-13T13:48:39.000Z | 2019-08-07T09:45:11.000Z | #!/usr/bin/env python
import collections, sys
lines = []
f = collections.defaultdict(int)
fe = collections.defaultdict(lambda: collections.defaultdict(int))
for line in sys.stdin:
tok = [x.strip() for x in line.split('|||')]
count = int(tok[4])
f[tok[1]] += count
fe[tok[1]][tok[2]] += count
lines... | 26.380952 | 66 | 0.590253 |
437e1e0973bde8b1e251b37ffc137a684d4dc2b8 | 436 | py | Python | blog/models.py | tomitokko/django-blog-with-astradb | 236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f | [
"Apache-2.0"
] | 3 | 2021-12-13T21:40:32.000Z | 2022-03-28T08:08:36.000Z | blog/models.py | tomitokko/django-blog-with-astradb | 236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f | [
"Apache-2.0"
] | null | null | null | blog/models.py | tomitokko/django-blog-with-astradb | 236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f | [
"Apache-2.0"
] | 1 | 2022-02-11T20:49:08.000Z | 2022-02-11T20:49:08.000Z | from django.db import models
import uuid
from datetime import datetime
from cassandra.cqlengine import columns
from django_cassandra_engine.models import DjangoCassandraModel
# Create your models here. | 36.333333 | 63 | 0.802752 |
43826b793ab889bf34bea8a88631da20426a6acb | 3,880 | py | Python | fedex/services/availability_commitment_service.py | miczone/python-fedex | 1a17b45753b16b2551b0b8ba2c6aa65be8e73931 | [
"BSD-3-Clause"
] | null | null | null | fedex/services/availability_commitment_service.py | miczone/python-fedex | 1a17b45753b16b2551b0b8ba2c6aa65be8e73931 | [
"BSD-3-Clause"
] | null | null | null | fedex/services/availability_commitment_service.py | miczone/python-fedex | 1a17b45753b16b2551b0b8ba2c6aa65be8e73931 | [
"BSD-3-Clause"
] | null | null | null | """
Service Availability and Commitment Module
This package contains the shipping methods defined by Fedex's
ValidationAvailabilityAndCommitmentService WSDL file. Each is encapsulated in a class for
easy access. For more details on each, refer to the respective class's
documentation.
"""
import datetime
from ..base... | 38.039216 | 111 | 0.643557 |
43844440dd179ab3f122498113b16b020a8f05b8 | 15,375 | py | Python | xverse/transformer/_woe.py | gb-andreygsouza/XuniVerse | 74f4b9112c32a8f1411ae0c5a6de906f8d2e895a | [
"MIT"
] | null | null | null | xverse/transformer/_woe.py | gb-andreygsouza/XuniVerse | 74f4b9112c32a8f1411ae0c5a6de906f8d2e895a | [
"MIT"
] | null | null | null | xverse/transformer/_woe.py | gb-andreygsouza/XuniVerse | 74f4b9112c32a8f1411ae0c5a6de906f8d2e895a | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.base import BaseEstimator, TransformerMixin
import scipy.stats.stats as stats
import pandas.core.algorithms as algos
#from sklearn.utils.validation import check_is_fitted
from sklearn.utils import check_array
from ..transformer import MonotonicBinning
pd.options.mode... | 47.748447 | 117 | 0.625821 |
4385a715a45f63ba193550d4819fe3bbd3dc2013 | 7,908 | py | Python | cupy/linalg/product.py | okapies/cupy | 4e8394e5e0c4e420295cbc36819e8e0f7de90e9d | [
"MIT"
] | 1 | 2021-10-04T21:57:09.000Z | 2021-10-04T21:57:09.000Z | cupy/linalg/product.py | hephaex/cupy | 5cf50a93bbdebe825337ed7996c464e84b1495ba | [
"MIT"
] | 1 | 2019-08-05T09:36:13.000Z | 2019-08-06T12:03:01.000Z | cupy/linalg/product.py | hephaex/cupy | 5cf50a93bbdebe825337ed7996c464e84b1495ba | [
"MIT"
] | 1 | 2022-03-24T13:19:55.000Z | 2022-03-24T13:19:55.000Z | import numpy
import six
import cupy
from cupy import core
from cupy import internal
from cupy.linalg.solve import inv
from cupy.util import collections_abc
matmul = core.matmul
def dot(a, b, out=None):
"""Returns a dot product of two arrays.
For arrays with more than one axis, it computes the dot product... | 27.175258 | 79 | 0.592059 |
4386319503aab2a6844b6ef0973d20403a850ff6 | 998 | py | Python | fibo.py | aligoren/pyalgo | 8aa58143d3301f70ed7189ca86ce0c7886f92e8c | [
"MIT"
] | 22 | 2015-05-04T14:16:18.000Z | 2021-05-12T07:21:14.000Z | fibo.py | aligoren/pyalgo | 8aa58143d3301f70ed7189ca86ce0c7886f92e8c | [
"MIT"
] | null | null | null | fibo.py | aligoren/pyalgo | 8aa58143d3301f70ed7189ca86ce0c7886f92e8c | [
"MIT"
] | 12 | 2015-12-26T05:00:24.000Z | 2022-02-28T05:03:13.000Z |
fibo_main()
# profiling result for 47 numbers
# profile: python -m profile fibo.py
"""
-1273940835 function calls (275 primitive calls) in 18966.707 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
90 0.000 0.000 0.001 0.000 c... | 33.266667 | 80 | 0.607214 |
4387549ca0c49a838b5d253586eefe17b1221bbf | 9,050 | py | Python | trt_util/common.py | yihui8776/TensorRT-DETR | 1f32e9a2f98e26ec5b2376f9a2695193887430fb | [
"Apache-2.0"
] | null | null | null | trt_util/common.py | yihui8776/TensorRT-DETR | 1f32e9a2f98e26ec5b2376f9a2695193887430fb | [
"Apache-2.0"
] | null | null | null | trt_util/common.py | yihui8776/TensorRT-DETR | 1f32e9a2f98e26ec5b2376f9a2695193887430fb | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl... | 42.890995 | 189 | 0.650276 |
4388c3265a288b272ad7c01a54a34148e2ab938e | 2,506 | py | Python | src/init.py | inpanel/inpanel-desktop | bff4a6accdf8a2976c722adc65f3fa2fe6650448 | [
"MIT"
] | 1 | 2020-03-18T11:40:56.000Z | 2020-03-18T11:40:56.000Z | src/init.py | inpanel/inpanel-desktop | bff4a6accdf8a2976c722adc65f3fa2fe6650448 | [
"MIT"
] | null | null | null | src/init.py | inpanel/inpanel-desktop | bff4a6accdf8a2976c722adc65f3fa2fe6650448 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8-*-
import tkinter.messagebox
from tkinter import Button, Label, Tk
from utils.functions import set_window_center
from utils.sqlite_helper import DBHelper
from inpanel import App
if __name__ == "__main__":
APP_INIT = InitWindow()
APP_INIT.mainloop()
| 29.482353 | 83 | 0.57901 |
4389760f68989bd2ea1837354a093cc8ebd81958 | 7,406 | py | Python | Toolkits/CMake/hunter/packages/sugar/python/sugar/sugar_warnings_wiki_table_generator.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | 102 | 2015-01-28T20:51:35.000Z | 2021-04-09T11:36:01.000Z | Toolkits/CMake/hunter/packages/sugar/python/sugar/sugar_warnings_wiki_table_generator.py | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | 56 | 2015-01-01T19:22:34.000Z | 2020-01-28T13:48:14.000Z | python/sugar/sugar_warnings_wiki_table_generator.py | idscan/sugar | 0a64153710d039dc081698be83562cdf464c84dc | [
"BSD-2-Clause"
] | 28 | 2015-03-05T19:47:08.000Z | 2021-01-17T21:07:31.000Z | #!/usr/bin/env python3
# Copyright (c) 2014, Ruslan Baratov
# All rights reserved.
"""
* Wiki table for `leathers` C++ project
Expected format:
### Main table
Name | Clang | GCC | MSVC |
-----------------------------|----------|----------|------|
static-ctor-not-thread-safe | *no* ... | 27.634328 | 75 | 0.626924 |
4389b795742ce4092fa55a8e1be92e8c6adf1239 | 2,945 | py | Python | neutron/plugins/ofagent/agent/ports.py | armando-migliaccio/neutron-1 | e31861c15bc73e65a7c22212df2a56f9e45aa0e4 | [
"Apache-2.0"
] | null | null | null | neutron/plugins/ofagent/agent/ports.py | armando-migliaccio/neutron-1 | e31861c15bc73e65a7c22212df2a56f9e45aa0e4 | [
"Apache-2.0"
] | null | null | null | neutron/plugins/ofagent/agent/ports.py | armando-migliaccio/neutron-1 | e31861c15bc73e65a7c22212df2a56f9e45aa0e4 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2014 VA Linux Systems Japan K.K.
# Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp>
# 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... | 33.089888 | 78 | 0.69202 |
4389f5cc4e8592cb8c9777c1297c9ec965389eb9 | 1,947 | py | Python | pdf/wechat/step.py | damaainan/html2md | 0d241381e716d64bbcacad013c108857e815bb15 | [
"MIT"
] | null | null | null | pdf/wechat/step.py | damaainan/html2md | 0d241381e716d64bbcacad013c108857e815bb15 | [
"MIT"
] | null | null | null | pdf/wechat/step.py | damaainan/html2md | 0d241381e716d64bbcacad013c108857e815bb15 | [
"MIT"
] | null | null | null | # -*- coding=utf-8 -*-
from zwechathihu.mypdf import GenPdf
from db.mysqlite import simpleToolSql
data=[{"url": "http://mp.weixin.qq.com/s?__biz=MzAxODQxMDM0Mw==&mid=2247484852&idx=1&sn=85b50b8b0470bb4897e517955f4e5002&chksm=9bd7fbbcaca072aa75e2a241064a403fde1e579d57ab846cd8537a54253ceb2c8b93cc3bf38e&scene=21#wechat_... | 29.059701 | 257 | 0.634309 |
438cea957a4d584b046abd2a8ee5c64fd504407c | 1,168 | py | Python | pipeline/validators/handlers.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 31 | 2021-07-28T13:06:11.000Z | 2022-03-10T12:16:44.000Z | pipeline/validators/handlers.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 483 | 2021-07-29T03:17:44.000Z | 2022-03-31T13:03:04.000Z | pipeline/validators/handlers.py | ZhuoZhuoCrayon/bk-nodeman | 76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab | [
"MIT"
] | 29 | 2021-07-28T13:06:21.000Z | 2022-03-25T06:18:18.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | 46.72 | 115 | 0.808219 |
438e9f1f07ffd73b9b9fd9f25c52f215537b1381 | 1,358 | py | Python | NumPy/Array Basics/Random Shuffle/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | NumPy/Array Basics/Random Shuffle/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | 4 | 2022-01-14T10:40:47.000Z | 2022-02-14T13:01:13.000Z | NumPy/Array Basics/Random Shuffle/tests/test_task.py | jetbrains-academy/Python-Libraries-NumPy | 7ce0f2d08f87502d5d97bbc6921f0566184d4ebb | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from task import arr, permuted_2d, fully_random
| 46.827586 | 115 | 0.635493 |
438f17abc40a90f956704fbac8d28a04a5de63c3 | 2,409 | py | Python | resources/lib/channelui.py | lausitzer/plugin.video.mediathekview | 7f2086240625b9b4f8d50af114f8f47654346ed1 | [
"MIT"
] | null | null | null | resources/lib/channelui.py | lausitzer/plugin.video.mediathekview | 7f2086240625b9b4f8d50af114f8f47654346ed1 | [
"MIT"
] | null | null | null | resources/lib/channelui.py | lausitzer/plugin.video.mediathekview | 7f2086240625b9b4f8d50af114f8f47654346ed1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
The channel model UI module
Copyright 2017-2018, Leo Moll and Dominik Schlsser
SPDX-License-Identifier: MIT
"""
# pylint: disable=import-error
import os
import xbmcgui
import xbmcplugin
import resources.lib.mvutils as mvutils
from resources.lib.channel import Channel
| 26.766667 | 74 | 0.584475 |
438f4c0d3f4d94dad9a093f3100bc1608c38e26a | 6,838 | py | Python | getconf.py | smk762/Dragonhound | 7cbaed2779afec47fcbf2481d0dae61daa4c11da | [
"MIT"
] | 3 | 2019-01-06T08:00:11.000Z | 2019-03-13T13:24:23.000Z | getconf.py | smk762/Dragonhound | 7cbaed2779afec47fcbf2481d0dae61daa4c11da | [
"MIT"
] | 1 | 2018-11-27T17:16:57.000Z | 2018-12-15T07:51:26.000Z | getconf.py | smk762/Dragonhound | 7cbaed2779afec47fcbf2481d0dae61daa4c11da | [
"MIT"
] | 2 | 2018-12-15T14:03:41.000Z | 2019-01-26T14:22:07.000Z | #!/usr/bin/env python3
#Credit to @Alright for the RPCs
import re
import os
import requests
import json
import platform
# define function that fetchs rpc creds from .conf
# define function that posts json data
# Return current -pubkey=
# return latest batontxid from all publishers
#VANILLA RPC
return(getlastsegi... | 32.254717 | 90 | 0.620942 |
43918d07649e9b1f2f91c59a28e777ac9f008513 | 46,128 | py | Python | cwr/parser/decoder/dictionary.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 37 | 2015-04-21T15:33:53.000Z | 2022-02-07T00:02:29.000Z | cwr/parser/decoder/dictionary.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 86 | 2015-02-01T22:26:02.000Z | 2021-07-09T08:49:36.000Z | cwr/parser/decoder/dictionary.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 27 | 2015-01-26T16:01:09.000Z | 2021-11-08T23:53:55.000Z | # -*- coding: utf-8 -*-
from cwr.acknowledgement import AcknowledgementRecord, MessageRecord
from cwr.agreement import AgreementRecord, AgreementTerritoryRecord, \
InterestedPartyForAgreementRecord
from cwr.group import Group, GroupHeader, GroupTrailer
from cwr.info import AdditionalRelatedInfoRecord
from cwr.pars... | 45.223529 | 96 | 0.560701 |
43924097832cb6270f8da8544d56269f7551b02e | 6,651 | py | Python | prebuilt/twrp_fonts.py | imranpopz/android_bootable_recovery-1 | ec4512ad1e20f640b3dcd6faf8c04cae711e4f30 | [
"Apache-2.0"
] | 95 | 2018-10-31T12:12:01.000Z | 2022-03-20T21:30:48.000Z | prebuilt/twrp_fonts.py | imranpopz/android_bootable_recovery-1 | ec4512ad1e20f640b3dcd6faf8c04cae711e4f30 | [
"Apache-2.0"
] | 34 | 2018-10-22T11:01:15.000Z | 2021-11-21T14:10:26.000Z | prebuilt/twrp_fonts.py | imranpopz/android_bootable_recovery-1 | ec4512ad1e20f640b3dcd6faf8c04cae711e4f30 | [
"Apache-2.0"
] | 81 | 2018-10-23T08:37:20.000Z | 2022-03-20T00:27:08.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
import codecs,os,gzip,ctypes,ctypes.util,sys
from struct import *
from PIL import Image, ImageDraw, ImageFont
# ====== Python script to convert TrueTypeFonts to TWRP's .dat format ======
# This script was originally made by https://github.com/suky for his chinese version of... | 33.422111 | 106 | 0.537062 |
4392cd17a2182a5ad123dad587354133d5fbcf62 | 3,471 | py | Python | open/users/serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 105 | 2019-06-01T08:34:47.000Z | 2022-03-15T11:48:36.000Z | open/users/serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 111 | 2019-06-04T15:34:14.000Z | 2022-03-12T21:03:20.000Z | open/users/serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 26 | 2019-09-04T06:06:12.000Z | 2022-01-03T03:40:11.000Z | import pytz
from rest_auth.serializers import TokenSerializer
from rest_framework.authtoken.models import Token
from rest_framework.exceptions import ValidationError
from rest_framework.fields import (
CharField,
CurrentUserDefault,
HiddenField,
UUIDField,
ChoiceField,
)
from rest_framework.serializ... | 30.182609 | 95 | 0.661481 |
4393bd0d5f4f1245ce5fd0c8893a7351e5ec7276 | 3,589 | py | Python | tests/en/test_asr.py | rhasspy/rhasspy-test | 0c180bfdd370f18ad2f8b9ee483ea5520161ab74 | [
"MIT"
] | null | null | null | tests/en/test_asr.py | rhasspy/rhasspy-test | 0c180bfdd370f18ad2f8b9ee483ea5520161ab74 | [
"MIT"
] | null | null | null | tests/en/test_asr.py | rhasspy/rhasspy-test | 0c180bfdd370f18ad2f8b9ee483ea5520161ab74 | [
"MIT"
] | 1 | 2020-07-25T13:59:25.000Z | 2020-07-25T13:59:25.000Z | """Automated speech recognition tests."""
import os
import sys
import unittest
from pathlib import Path
import requests
from rhasspyhermes.asr import AsrTextCaptured
from rhasspyhermes.nlu import NluIntent
| 35.534653 | 87 | 0.655893 |
4393be2aca5a25d561f41614d1c61c91497bb77e | 775 | py | Python | speech/melgan/model/multiscale.py | OthmaneJ/deep-tts | 93059d568c5b458d3f0d80eb294d397ecace8731 | [
"MIT"
] | 213 | 2020-05-21T12:37:37.000Z | 2022-03-28T16:36:07.000Z | speech/melgan/model/multiscale.py | OthmaneJ/deep-tts | 93059d568c5b458d3f0d80eb294d397ecace8731 | [
"MIT"
] | 36 | 2020-08-14T08:23:34.000Z | 2022-02-07T11:26:17.000Z | speech/melgan/model/multiscale.py | OthmaneJ/deep-tts | 93059d568c5b458d3f0d80eb294d397ecace8731 | [
"MIT"
] | 38 | 2020-05-21T20:03:30.000Z | 2022-01-19T16:31:15.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from .discriminator import Discriminator
from .identity import Identity
| 25.833333 | 83 | 0.602581 |
4393d8ec0408fae06ace653dd14db15c556ea5c5 | 2,516 | py | Python | main.py | AntonioLourencos/jogo-da-velha | 3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63 | [
"MIT"
] | 10 | 2020-12-24T01:40:54.000Z | 2021-06-03T01:22:34.000Z | main.py | AntonioLourencos/jogo-da-velha | 3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63 | [
"MIT"
] | 4 | 2020-12-26T15:09:05.000Z | 2021-10-01T13:36:16.000Z | main.py | AntonioLourencos/jogo-da-velha | 3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63 | [
"MIT"
] | 3 | 2021-05-14T20:20:02.000Z | 2021-08-09T19:10:12.000Z | from game import about_button, start_button, play_sound, center_pos
import pygame
WHITE = (255,255,255)
BLACK = (0,0,0)
GREEN = (0, 255, 0)
pygame.init()
pygame.font.init()
pygame.mixer.init()
FONT = pygame.font.Font("assets/font.ttf", 70)
FONT_MIN = pygame.font.Font("assets/font.ttf", 30)
window = pygame.display.s... | 31.45 | 95 | 0.591017 |
43952014f41c3fec2a8b86f2f567eb906cd4cf2f | 1,463 | py | Python | schedule/views.py | 1donggri/teamProject | 9b4f37c2a93b065529ce9dd245f9717a783dd456 | [
"CC-BY-3.0"
] | null | null | null | schedule/views.py | 1donggri/teamProject | 9b4f37c2a93b065529ce9dd245f9717a783dd456 | [
"CC-BY-3.0"
] | null | null | null | schedule/views.py | 1donggri/teamProject | 9b4f37c2a93b065529ce9dd245f9717a783dd456 | [
"CC-BY-3.0"
] | null | null | null | from django.shortcuts import render, redirect
from .models import Post
from .forms import ScheduleForm
from django.core.paginator import Paginator
# Create your views here. | 34.833333 | 75 | 0.6473 |
43956cd7582f0725f3e08ed11af962dc403ba2f7 | 402 | py | Python | archetype/settings/local_stg.py | kingsdigitallab/archetype-django | 6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc | [
"MIT"
] | 1 | 2018-11-18T22:42:09.000Z | 2018-11-18T22:42:09.000Z | archetype/settings/local_stg.py | kingsdigitallab/archetype-django | 6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc | [
"MIT"
] | null | null | null | archetype/settings/local_stg.py | kingsdigitallab/archetype-django | 6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc | [
"MIT"
] | null | null | null | from .base import * # noqa
CACHE_REDIS_DATABASE = '1'
CACHES['default']['LOCATION'] = '127.0.0.1:6379:' + CACHE_REDIS_DATABASE
INTERNAL_IPS = INTERNAL_IPS + ('', )
ALLOWED_HOSTS = ['']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_archetype_stg',
... | 22.333333 | 72 | 0.58209 |
4397c55661379269054e0b0a47adf3a823197ee1 | 173 | py | Python | website/sites/admin.py | vnaskos/Website | 1c2adb0985f3932ddeca12025a2d216d2470cb63 | [
"MIT"
] | null | null | null | website/sites/admin.py | vnaskos/Website | 1c2adb0985f3932ddeca12025a2d216d2470cb63 | [
"MIT"
] | null | null | null | website/sites/admin.py | vnaskos/Website | 1c2adb0985f3932ddeca12025a2d216d2470cb63 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.]
from website.sites.models import Post
| 15.727273 | 38 | 0.768786 |
43985e0c9aab5f6373fb70168960c90190116e6d | 4,005 | py | Python | mcts.py | korbi98/TicTacToeGo_Zero | b8ea4562f3ddf914a53fc380f2266f13ab887e04 | [
"MIT"
] | null | null | null | mcts.py | korbi98/TicTacToeGo_Zero | b8ea4562f3ddf914a53fc380f2266f13ab887e04 | [
"MIT"
] | null | null | null | mcts.py | korbi98/TicTacToeGo_Zero | b8ea4562f3ddf914a53fc380f2266f13ab887e04 | [
"MIT"
] | 1 | 2021-12-20T12:03:49.000Z | 2021-12-20T12:03:49.000Z | # Monte Carlo tree search for TicTacToe
import numpy as np
from tictactoe import Tictactoe
import copy
from random import choice
from tree import Node
import time
| 35.131579 | 104 | 0.640949 |
4399aded5ee5a7bbfaba489cfa6e1bbdb4b8689f | 3,911 | py | Python | grimer/metadata.py | pirovc/grimer | 169f8d3009004d6d2f4ca4d3e7dfec819078cb34 | [
"MIT"
] | 5 | 2021-06-24T03:19:47.000Z | 2021-12-18T22:33:04.000Z | grimer/metadata.py | pirovc/grimer | 169f8d3009004d6d2f4ca4d3e7dfec819078cb34 | [
"MIT"
] | 1 | 2022-02-04T14:52:40.000Z | 2022-03-07T10:04:54.000Z | grimer/metadata.py | pirovc/grimer | 169f8d3009004d6d2f4ca4d3e7dfec819078cb34 | [
"MIT"
] | null | null | null | import pandas as pd
from pandas.api.types import is_numeric_dtype
from grimer.utils import print_log
| 38.722772 | 136 | 0.628995 |
439a75ca9b8d0ab554205540e1b91cb943b0c4ba | 5,162 | py | Python | allennlp/training/metric_tracker.py | MSLars/allennlp | 2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475 | [
"Apache-2.0"
] | 11,433 | 2017-06-27T03:08:46.000Z | 2022-03-31T18:14:33.000Z | allennlp/training/metric_tracker.py | MSLars/allennlp | 2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475 | [
"Apache-2.0"
] | 4,006 | 2017-06-26T21:45:43.000Z | 2022-03-31T02:11:10.000Z | allennlp/training/metric_tracker.py | MSLars/allennlp | 2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475 | [
"Apache-2.0"
] | 2,560 | 2017-06-26T21:16:53.000Z | 2022-03-30T07:55:46.000Z | from typing import Optional, Dict, Any, List, Union
from allennlp.common.checks import ConfigurationError
| 38.522388 | 93 | 0.629407 |
439aafbb1c6af8fc6a5c2fcb3a71f36930de52f2 | 605 | py | Python | authors/apps/profiles/renderers.py | MuhweziDeo/Ah-backend-xmen | 60c830977fa39a7eea9ab978a9ba0c3beb0c4d88 | [
"BSD-3-Clause"
] | 4 | 2019-01-07T09:15:17.000Z | 2020-11-09T09:58:54.000Z | authors/apps/profiles/renderers.py | MuhweziDeo/Ah-backend-xmen | 60c830977fa39a7eea9ab978a9ba0c3beb0c4d88 | [
"BSD-3-Clause"
] | 34 | 2019-01-07T15:30:14.000Z | 2019-03-06T08:23:34.000Z | authors/apps/profiles/renderers.py | MuhweziDeo/Ah-backend-xmen | 60c830977fa39a7eea9ab978a9ba0c3beb0c4d88 | [
"BSD-3-Clause"
] | 10 | 2018-12-18T14:43:52.000Z | 2020-02-07T08:27:50.000Z | from authors.apps.utils.renderers import AppJSONRenderer
import json
from rest_framework.renderers import JSONRenderer
| 23.269231 | 67 | 0.679339 |
439abf267a321356c428ab3774898fb305a07e4a | 956 | py | Python | json_analyzer.py | bantenz/NetworkConfigParser | e1aa8385540823340e8278c7d7af0201399efd8f | [
"Apache-2.0"
] | null | null | null | json_analyzer.py | bantenz/NetworkConfigParser | e1aa8385540823340e8278c7d7af0201399efd8f | [
"Apache-2.0"
] | null | null | null | json_analyzer.py | bantenz/NetworkConfigParser | e1aa8385540823340e8278c7d7af0201399efd8f | [
"Apache-2.0"
] | null | null | null | import json
from deepdiff import DeepDiff
import pprint
if __name__ == "__main__":
# If this Python file runs by itself, run below command. If imported, this section is not run
main()
| 30.83871 | 94 | 0.669456 |
439b48ead1b5b023fe47fbce88acf0d32181f26a | 9,437 | py | Python | fiwareglancesync/sync.py | telefonicaid/fiware-glancesync | 5ad0c80e12b9384473f31bf336015c75cf02a2a2 | [
"Apache-2.0"
] | null | null | null | fiwareglancesync/sync.py | telefonicaid/fiware-glancesync | 5ad0c80e12b9384473f31bf336015c75cf02a2a2 | [
"Apache-2.0"
] | 88 | 2015-07-21T22:13:23.000Z | 2016-11-15T21:28:56.000Z | fiwareglancesync/sync.py | telefonicaid/fiware-glancesync | 5ad0c80e12b9384473f31bf336015c75cf02a2a2 | [
"Apache-2.0"
] | 2 | 2015-08-12T11:19:55.000Z | 2018-05-25T19:04:43.000Z | #!/usr/bin/env python
# -- encoding: utf-8 --
#
# Copyright 2015-2016 Telefnica Investigacin y Desarrollo, S.A.U
#
# This file is part of FI-WARE project.
#
# 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 t... | 35.212687 | 79 | 0.586097 |
439b5da067d8952a4649cfcbc1a2148086951365 | 2,224 | py | Python | models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py | Pandinosaurus/models-intelai | 60f5712d79a363bdb7624e3116a66a4f1a7fe208 | [
"Apache-2.0"
] | null | null | null | models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py | Pandinosaurus/models-intelai | 60f5712d79a363bdb7624e3116a66a4f1a7fe208 | [
"Apache-2.0"
] | null | null | null | models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py | Pandinosaurus/models-intelai | 60f5712d79a363bdb7624e3116a66a4f1a7fe208 | [
"Apache-2.0"
] | null | null | null | ### This file is originally from: [mlcommons repo](https://github.com/mlcommons/training/tree/9947bdf21ee3f2488fa4b362eec2ce7deb2ec4dd/single_stage_detector/ssd/mlperf_logger.py)
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may ... | 35.870968 | 178 | 0.721223 |
439c484fa1d9a64793cf4da644af68eabbc13295 | 13,932 | py | Python | omtk/models/model_avar_surface_lips.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | omtk/models/model_avar_surface_lips.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | omtk/models/model_avar_surface_lips.py | CDufour909/omtk_unreal | 64ae76a7b0a3f73a4b32d3b330f3174d02c54234 | [
"MIT"
] | null | null | null | import math
import pymel.core as pymel
from omtk.core.classNode import Node
from omtk.libs import libAttr
from omtk.libs import libRigging
from . import model_avar_surface
| 42.090634 | 162 | 0.680879 |
439cc020be352b363d0141cede18e92d0b0f339f | 5,910 | py | Python | project/server/main/feed.py | dataesr/harvest-theses | 1725b3ec3a944526fe62941d554bc3de6209cd28 | [
"MIT"
] | null | null | null | project/server/main/feed.py | dataesr/harvest-theses | 1725b3ec3a944526fe62941d554bc3de6209cd28 | [
"MIT"
] | null | null | null | project/server/main/feed.py | dataesr/harvest-theses | 1725b3ec3a944526fe62941d554bc3de6209cd28 | [
"MIT"
] | null | null | null | import datetime
import os
import pymongo
import requests
from urllib import parse
from urllib.parse import quote_plus
import json
from retry import retry
from bs4 import BeautifulSoup
import math
from project.server.main.logger import get_logger
from project.server.main.utils_swift import upload_object
from project.s... | 36.708075 | 184 | 0.694755 |
439e1a09f9246f51a2f4aa291d6172d1d6ae55e7 | 808 | py | Python | DQM/L1TMonitor/python/L1TGCT_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/L1TMonitor/python/L1TGCT_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/L1TMonitor/python/L1TGCT_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
l1tGct = DQMEDAnalyzer('L1TGCT',
gctCentralJetsSource = cms.InputTag("gctDigis","cenJets"),
gctForwardJetsSource = cms.InputTag("gctDigis","forJets"),
gctTauJetsSource = cms.InputTag("gctDigis","tauJets"),
... | 38.47619 | 62 | 0.72896 |
439e62c4d6bd84f9f57f7073032cb6f2eab27d1b | 15,524 | py | Python | utilities.py | gandhiy/lipMIP | 11843e6bf2223acca44f57d29791521aac15caf3 | [
"MIT"
] | 11 | 2020-05-18T17:33:25.000Z | 2022-01-28T18:42:31.000Z | utilities.py | gandhiy/lipMIP | 11843e6bf2223acca44f57d29791521aac15caf3 | [
"MIT"
] | null | null | null | utilities.py | gandhiy/lipMIP | 11843e6bf2223acca44f57d29791521aac15caf3 | [
"MIT"
] | 1 | 2020-12-10T19:57:20.000Z | 2020-12-10T19:57:20.000Z | """ General all-purpose utilities """
import sys
import torch
import torch.nn.functional as F
import numpy as np
import gurobipy as gb
import matplotlib.pyplot as plt
import io
import contextlib
import tempfile
import time
import re
import pickle
import inspect
import glob
import os
COMPLETED_JOB_DIR = os.path.join(... | 28.021661 | 81 | 0.659237 |
439e723ba661ca0696137f422b31b51f63930e6a | 387 | py | Python | OLD/karma_module/text.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 1 | 2021-12-12T02:50:20.000Z | 2021-12-12T02:50:20.000Z | OLD/karma_module/text.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | 17 | 2020-02-07T23:40:36.000Z | 2020-12-22T16:38:44.000Z | OLD/karma_module/text.py | alentoghostflame/StupidAlentoBot | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | [
"MIT"
] | null | null | null | ADDED_KARMA_TO_MEMBER = "Gave {} karma to {}, their karma is now at {}."
REMOVED_KARMA_FROM_MEMBER = "Removed {} karma from {}, their karma is now at {}."
LIST_KARMA_OWN = "You currently have {} karma."
LIST_KARMA_OBJECT = "\"{}\" currently has {} karma."
LIST_KARMA_MEMBER = "{} currently has {} karma."
KARMA_TOP_STA... | 38.7 | 81 | 0.669251 |
43a00c0b5646519c438692fcd0610b44be3beb14 | 1,340 | py | Python | read_delphin_data.py | anssilaukkarinen/mry-cluster2 | 65d80a7371a4991dfe248ff6944f050e1573f8fc | [
"MIT"
] | null | null | null | read_delphin_data.py | anssilaukkarinen/mry-cluster2 | 65d80a7371a4991dfe248ff6944f050e1573f8fc | [
"MIT"
] | null | null | null | read_delphin_data.py | anssilaukkarinen/mry-cluster2 | 65d80a7371a4991dfe248ff6944f050e1573f8fc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 6 14:51:24 2021
@author: laukkara
This script is run first to fetch results data from university's network drive
"""
import os
import pickle
input_folder_for_Delphin_data = r'S:\91202_Rakfys_Mallinnus\RAMI\simulations'
output_folder = os.path.join(r'C:\Local\laukkar... | 20 | 81 | 0.630597 |
43a01f33e82c9b00675c1f842c3ac9effea08533 | 7,335 | py | Python | api/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | 1 | 2020-03-23T21:43:15.000Z | 2020-03-23T21:43:15.000Z | api/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | null | null | null | api/config.py | sumesh-aot/namex | 53e11aed5ea550b71b7b983f1b57b65db5a06766 | [
"Apache-2.0"
] | null | null | null | """Config for initializing the namex-api."""
import os
from dotenv import find_dotenv, load_dotenv
# this will load all the envars from a .env file located in the project root (api)
load_dotenv(find_dotenv())
CONFIGURATION = {
'development': 'config.DevConfig',
'testing': 'config.TestConfig',
'production... | 43.402367 | 210 | 0.718609 |
43a04a876b69a7d204627f4d6e2351f7e07cdf98 | 518 | py | Python | examples/pylab_examples/fancybox_demo2.py | pierre-haessig/matplotlib | 0d945044ca3fbf98cad55912584ef80911f330c6 | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 16 | 2016-06-14T19:45:35.000Z | 2020-11-30T19:02:58.000Z | examples/pylab_examples/fancybox_demo2.py | pierre-haessig/matplotlib | 0d945044ca3fbf98cad55912584ef80911f330c6 | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 7 | 2015-05-08T19:36:25.000Z | 2015-06-30T15:32:17.000Z | examples/pylab_examples/fancybox_demo2.py | pierre-haessig/matplotlib | 0d945044ca3fbf98cad55912584ef80911f330c6 | [
"MIT",
"PSF-2.0",
"BSD-3-Clause"
] | 6 | 2015-06-05T03:34:06.000Z | 2022-01-25T09:07:10.000Z | import matplotlib.patches as mpatch
import matplotlib.pyplot as plt
styles = mpatch.BoxStyle.get_styles()
figheight = (len(styles)+.5)
fig1 = plt.figure(1, (4/1.5, figheight/1.5))
fontsize = 0.3 * 72
for i, (stylename, styleclass) in enumerate(styles.items()):
fig1.text(0.5, (float(len(styles)) - 0.5 - i)/fighei... | 27.263158 | 71 | 0.629344 |
43a255b174f2f6995694a3ff518d32d995c17049 | 981 | py | Python | setup.py | sdu-cfei/modest-py | dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a | [
"BSD-2-Clause"
] | 37 | 2017-06-21T19:09:11.000Z | 2022-03-13T09:26:07.000Z | setup.py | sdu-cfei/modest-py | dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a | [
"BSD-2-Clause"
] | 51 | 2017-06-21T17:40:42.000Z | 2021-10-31T09:16:21.000Z | setup.py | sdu-cfei/modest-py | dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a | [
"BSD-2-Clause"
] | 12 | 2017-10-02T12:32:50.000Z | 2022-03-13T09:26:15.000Z | from setuptools import setup
setup(
name='modestpy',
version='0.1',
description='FMI-compliant model identification package',
url='https://github.com/sdu-cfei/modest-py',
keywords='fmi fmu optimization model identification estimation',
author='Krzysztof Arendt, Center for Energy Informatics SDU... | 26.513514 | 68 | 0.59633 |
43a26f9573c5f714eb41be0b40f5f0e94681fe54 | 1,013 | py | Python | gfworkflow/core.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | gfworkflow/core.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | gfworkflow/core.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | import re
import subprocess as sp
from typing import Union, List
from gfworkflow.exceptions import RunCommandException
| 25.974359 | 96 | 0.722606 |
43a2afd4837130116a518598c3c7bbcceafe7999 | 306 | py | Python | tests/integration/lambdas/lambda_python3.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 31,928 | 2017-07-04T03:06:28.000Z | 2022-03-31T22:33:27.000Z | tests/integration/lambdas/lambda_python3.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 5,216 | 2017-07-04T11:45:41.000Z | 2022-03-31T22:02:14.000Z | tests/integration/lambdas/lambda_python3.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 3,056 | 2017-06-05T13:29:11.000Z | 2022-03-31T20:54:43.000Z | # simple test function that uses python 3 features (e.g., f-strings)
# see https://github.com/localstack/localstack/issues/264
| 34 | 81 | 0.718954 |
43a39cbdc284d3d48cf14614c751040caf06e2f0 | 3,018 | py | Python | import_off.py | etiennody/purchoice | 43a2dc81ca953ac6168f8112e97a4bae91ace690 | [
"MIT"
] | null | null | null | import_off.py | etiennody/purchoice | 43a2dc81ca953ac6168f8112e97a4bae91ace690 | [
"MIT"
] | 2 | 2020-05-04T09:40:32.000Z | 2021-08-03T17:34:00.000Z | import_off.py | etiennody/purchoice | 43a2dc81ca953ac6168f8112e97a4bae91ace690 | [
"MIT"
] | null | null | null | #! usr/bin/python3
# code: utf-8
"""Download data from Open Food Facts API."""
import json
import requests
from src.purchoice.constants import CATEGORY_SELECTED
from src.purchoice.purchoice_database import PurchoiceDatabase
if __name__ == "__main__":
db = PurchoiceDatabase()
db.truncate_tables()
impo... | 32.804348 | 79 | 0.594102 |
43a4f6e31b5eece16d50c0585d3ecac08d080d46 | 5,919 | py | Python | orio/module/loop/cfg.py | zhjp0/Orio | 7dfb80527053c5697d1bce1bd8ed996b1ea192c8 | [
"MIT"
] | null | null | null | orio/module/loop/cfg.py | zhjp0/Orio | 7dfb80527053c5697d1bce1bd8ed996b1ea192c8 | [
"MIT"
] | null | null | null | orio/module/loop/cfg.py | zhjp0/Orio | 7dfb80527053c5697d1bce1bd8ed996b1ea192c8 | [
"MIT"
] | null | null | null | '''
Created on April 26, 2015
@author: norris
'''
import ast, sys, os, traceback
from orio.main.util.globals import *
from orio.tool.graphlib import graph
from orio.module.loop import astvisitors
| 32.521978 | 107 | 0.478459 |
43a51f00be6eeff0b67bd7aa629b9ff21c09189f | 503 | py | Python | cogs rework/server specified/on_message_delete.py | lubnc4261/House-Keeper | 6de20014afaf00cf9050e54c91cd8b3a02702a27 | [
"MIT"
] | null | null | null | cogs rework/server specified/on_message_delete.py | lubnc4261/House-Keeper | 6de20014afaf00cf9050e54c91cd8b3a02702a27 | [
"MIT"
] | null | null | null | cogs rework/server specified/on_message_delete.py | lubnc4261/House-Keeper | 6de20014afaf00cf9050e54c91cd8b3a02702a27 | [
"MIT"
] | null | null | null | import discord
from discord import Embed
| 33.533333 | 91 | 0.735586 |
43a5f6e07158fad4d7bfe9f3af12b2b23116e364 | 22,646 | py | Python | test/modules/md/md_env.py | icing/mod_md | 4522ed547f0426f27aae86f00fbc9b5b17de545f | [
"Apache-2.0"
] | 320 | 2017-07-22T12:14:19.000Z | 2022-03-24T14:00:32.000Z | test/modules/md/md_env.py | icing/mod_md | 4522ed547f0426f27aae86f00fbc9b5b17de545f | [
"Apache-2.0"
] | 272 | 2017-07-22T12:30:48.000Z | 2022-03-30T07:14:50.000Z | test/modules/md/md_env.py | icing/mod_md | 4522ed547f0426f27aae86f00fbc9b5b17de545f | [
"Apache-2.0"
] | 36 | 2017-07-22T12:45:03.000Z | 2021-05-18T12:20:11.000Z | import copy
import inspect
import json
import logging
import pytest
import re
import os
import shutil
import subprocess
import time
from datetime import datetime, timedelta
from configparser import ConfigParser, ExtendedInterpolation
from typing import Dict, List, Optional
from pyhttpd.certs import CertificateSpec
f... | 37.806344 | 125 | 0.597457 |
43a66e0d4848430d37cecb21387fa89ddac71ea8 | 1,949 | py | Python | models/create_message_response.py | ajrice6713/bw-messaging-emulator | d1be4976e2486ec91b419597afc8411c78ebfda7 | [
"MIT"
] | null | null | null | models/create_message_response.py | ajrice6713/bw-messaging-emulator | d1be4976e2486ec91b419597afc8411c78ebfda7 | [
"MIT"
] | null | null | null | models/create_message_response.py | ajrice6713/bw-messaging-emulator | d1be4976e2486ec91b419597afc8411c78ebfda7 | [
"MIT"
] | null | null | null | import datetime
import json
import random
import string
from typing import Dict
from sms_counter import SMSCounter
| 30.936508 | 91 | 0.578758 |
43a6cf6a117a9bd891a315706e175a03b6175d39 | 51,390 | py | Python | python/ccxt/async_support/uex.py | victor95pc/ccxt | 5c3e606296a1b15852a35f1330b645f451fa08d6 | [
"MIT"
] | 1 | 2019-03-17T22:44:30.000Z | 2019-03-17T22:44:30.000Z | python/ccxt/async_support/uex.py | Lara-Bell/ccxt | e09230b4b60d5c33e3f6ebc044002bab6f733553 | [
"MIT"
] | null | null | null | python/ccxt/async_support/uex.py | Lara-Bell/ccxt | e09230b4b60d5c33e3f6ebc044002bab6f733553 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
# -----------------------------------------------------------------------------
try... | 44.882096 | 465 | 0.432088 |
43a74cac582bdf300bc81daa9bedf7b376e2c024 | 906 | py | Python | Alpha & Beta/wootMath/decimalToBinaryFraction.py | Mdlkxzmcp/various_python | be4f873c6263e3db11177bbccce2aa465514294d | [
"MIT"
] | null | null | null | Alpha & Beta/wootMath/decimalToBinaryFraction.py | Mdlkxzmcp/various_python | be4f873c6263e3db11177bbccce2aa465514294d | [
"MIT"
] | null | null | null | Alpha & Beta/wootMath/decimalToBinaryFraction.py | Mdlkxzmcp/various_python | be4f873c6263e3db11177bbccce2aa465514294d | [
"MIT"
] | null | null | null | def decimal_to_binary_fraction(x=0.5):
"""
Input: x, a float between 0 and 1
Returns binary representation of x
"""
p = 0
while ((2 ** p) * x) % 1 != 0:
# print('Remainder = ' + str((2**p)*x - int((2**p)*x)))
p += 1
num = int(x * (2 ** p))
result = ''
if num == 0:
... | 27.454545 | 97 | 0.566225 |
43a79fa3a61473b076f77344a5a402f9d3ac1f06 | 3,091 | py | Python | composer/utils/run_directory.py | ajaysaini725/composer | 00fbf95823cd50354b2410fbd88f06eaf0481662 | [
"Apache-2.0"
] | null | null | null | composer/utils/run_directory.py | ajaysaini725/composer | 00fbf95823cd50354b2410fbd88f06eaf0481662 | [
"Apache-2.0"
] | null | null | null | composer/utils/run_directory.py | ajaysaini725/composer | 00fbf95823cd50354b2410fbd88f06eaf0481662 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 MosaicML. All Rights Reserved.
import datetime
import logging
import os
import pathlib
import time
from composer.utils import dist
log = logging.getLogger(__name__)
_RUN_DIRECTORY_KEY = "COMPOSER_RUN_DIRECTORY"
_start_time_str = datetime.datetime.now().isoformat()
def get_node_run_directory() ->... | 35.125 | 102 | 0.697185 |
43a848be2ab70fca075a6b29e18609d29a8a5a7d | 1,109 | py | Python | newsapp/migrations/0003_news.py | adi112100/newsapp | 7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb | [
"MIT"
] | null | null | null | newsapp/migrations/0003_news.py | adi112100/newsapp | 7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb | [
"MIT"
] | null | null | null | newsapp/migrations/0003_news.py | adi112100/newsapp | 7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-11 08:10
from django.db import migrations, models
| 34.65625 | 114 | 0.538323 |
43a8bd9cb32de8f8138b7b033dc19e078566fbea | 426 | py | Python | src/enum/__init__.py | NazarioJL/faker_enum | c2703cae232b229b4d4ab2b73757102453d541ab | [
"MIT"
] | 5 | 2019-08-02T17:59:10.000Z | 2021-05-14T08:30:55.000Z | src/enum/__init__.py | NazarioJL/faker_enum | c2703cae232b229b4d4ab2b73757102453d541ab | [
"MIT"
] | 4 | 2018-10-26T06:52:05.000Z | 2022-01-31T20:31:17.000Z | src/enum/__init__.py | NazarioJL/faker_enum | c2703cae232b229b4d4ab2b73757102453d541ab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from enum import Enum
from typing import TypeVar, Type, List, Iterable, cast
from faker.providers import BaseProvider
TEnum = TypeVar("TEnum", bound=Enum)
| 22.421053 | 68 | 0.676056 |
43a8f0198728c9384389bf87f96be11372c94f28 | 262 | py | Python | tests/performance/bottle/simple_server.py | Varriount/sanic | 55c36e0240dfeb03deccdeb5a53ca7fcfa728bff | [
"MIT"
] | 4,959 | 2018-09-13T08:42:51.000Z | 2021-01-05T07:01:44.000Z | tests/performance/bottle/simple_server.py | Varriount/sanic | 55c36e0240dfeb03deccdeb5a53ca7fcfa728bff | [
"MIT"
] | 864 | 2018-09-13T20:48:04.000Z | 2021-01-05T07:33:30.000Z | tests/performance/bottle/simple_server.py | Varriount/sanic | 55c36e0240dfeb03deccdeb5a53ca7fcfa728bff | [
"MIT"
] | 612 | 2018-09-13T21:10:04.000Z | 2020-12-30T12:16:36.000Z | # Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app
import bottle
import ujson
from bottle import route, run
app = bottle.default_app()
| 18.714286 | 108 | 0.725191 |
43a90c6754ed5d7199ff6f282438c86387b7e8d9 | 1,485 | py | Python | usuarios/views.py | alvarocneto/alura_django | da2d3619b30c9d1c8767fa910eb7253bc20eeb90 | [
"MIT"
] | 1 | 2017-04-25T10:46:24.000Z | 2017-04-25T10:46:24.000Z | usuarios/views.py | alvarocneto/alura_django | da2d3619b30c9d1c8767fa910eb7253bc20eeb90 | [
"MIT"
] | null | null | null | usuarios/views.py | alvarocneto/alura_django | da2d3619b30c9d1c8767fa910eb7253bc20eeb90 | [
"MIT"
] | null | null | null | from django.shortcuts import redirect
from django.shortcuts import render
from django.contrib.auth.models import User
from django.views.generic.base import View
from perfis.models import Perfil
from usuarios.forms import RegistrarUsuarioForm
| 31.595745 | 72 | 0.546801 |
43a9435c49bd01eb9bc3513864f993e95030f51a | 19 | py | Python | antolib/AntoCommon.py | srsuper/BOT2020 | 2cadfad470de62819b7aaa0f9ecf1e4b4052ea68 | [
"Apache-2.0"
] | 1 | 2020-05-19T16:07:05.000Z | 2020-05-19T16:07:05.000Z | antolib/AntoCommon.py | srsuper/BOT2020 | 2cadfad470de62819b7aaa0f9ecf1e4b4052ea68 | [
"Apache-2.0"
] | null | null | null | antolib/AntoCommon.py | srsuper/BOT2020 | 2cadfad470de62819b7aaa0f9ecf1e4b4052ea68 | [
"Apache-2.0"
] | null | null | null | ANTO_VER = '0.1.2'
| 9.5 | 18 | 0.578947 |
43aa177b05dce3f050fe11c02d43b9d799f954d6 | 3,509 | py | Python | cpc_fusion/pkgs/keys/main.py | CPChain/fusion | 63b6913010e8e5b296a1900c59592c8fd1802c2e | [
"MIT"
] | 5 | 2018-12-19T02:37:18.000Z | 2022-01-26T02:52:50.000Z | cpc_fusion/pkgs/keys/main.py | CPChain/fusion | 63b6913010e8e5b296a1900c59592c8fd1802c2e | [
"MIT"
] | null | null | null | cpc_fusion/pkgs/keys/main.py | CPChain/fusion | 63b6913010e8e5b296a1900c59592c8fd1802c2e | [
"MIT"
] | null | null | null | from typing import (Any, Union, Type) # noqa: F401
from ..keys.datatypes import (
LazyBackend,
PublicKey,
PrivateKey,
Signature,
)
from eth_keys.exceptions import (
ValidationError,
)
from eth_keys.validation import (
validate_message_hash,
)
# These must be aliased due to a scoping issue in... | 35.444444 | 90 | 0.61613 |
43aab220da0c6298d29ad8922e374d3b90af61e0 | 16,406 | py | Python | qiskit/pulse/transforms/canonicalization.py | gadial/qiskit-terra | 0fc83f44a6e80969875c738b2cee7bc33223e45f | [
"Apache-2.0"
] | 1 | 2021-10-05T11:56:53.000Z | 2021-10-05T11:56:53.000Z | qiskit/pulse/transforms/canonicalization.py | gadial/qiskit-terra | 0fc83f44a6e80969875c738b2cee7bc33223e45f | [
"Apache-2.0"
] | 24 | 2021-01-27T08:20:27.000Z | 2021-07-06T09:42:28.000Z | qiskit/pulse/transforms/canonicalization.py | gadial/qiskit-terra | 0fc83f44a6e80969875c738b2cee7bc33223e45f | [
"Apache-2.0"
] | 4 | 2021-10-05T12:07:27.000Z | 2022-01-28T18:37:28.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 40.210784 | 99 | 0.643911 |
43ab35693a6001a55d9d6314ecedca585fa99ed4 | 489 | py | Python | tests/test_scraper.py | ananelson/oacensus | 87916c92ab1233bcf82a481113017dfb8d7701b9 | [
"Apache-2.0"
] | null | null | null | tests/test_scraper.py | ananelson/oacensus | 87916c92ab1233bcf82a481113017dfb8d7701b9 | [
"Apache-2.0"
] | 2 | 2016-01-10T20:23:41.000Z | 2016-01-14T16:57:06.000Z | tests/test_scraper.py | ananelson/oacensus | 87916c92ab1233bcf82a481113017dfb8d7701b9 | [
"Apache-2.0"
] | null | null | null | from oacensus.scraper import Scraper
from oacensus.commands import defaults
| 21.26087 | 62 | 0.678937 |
43ab43b6738516044ebfd16ee957b6dda20ddd01 | 161 | py | Python | python/test-deco-1-1.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | python/test-deco-1-1.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null | python/test-deco-1-1.py | li-ma/homework | d75b1752a02bd028af0806683abe079c7b0a9b29 | [
"Apache-2.0"
] | null | null | null |
deco1(myfunc)
| 16.1 | 36 | 0.608696 |
43abfef786fc99686d3027b89832f4ac4ffeea43 | 7,885 | py | Python | lib/jnpr/junos/transport/tty_netconf.py | mmoucka/py-junos-eznc | 9ef5ad39e32ae670fe8ed0092d725661a45b3053 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | lib/jnpr/junos/transport/tty_netconf.py | mmoucka/py-junos-eznc | 9ef5ad39e32ae670fe8ed0092d725661a45b3053 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | lib/jnpr/junos/transport/tty_netconf.py | mmoucka/py-junos-eznc | 9ef5ad39e32ae670fe8ed0092d725661a45b3053 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import re
import time
from lxml import etree
import select
import socket
import logging
import sys
from lxml.builder import E
from lxml.etree import XMLSyntaxError
from datetime import datetime, timedelta
from ncclient.operations.rpc import RPCReply, RPCError
from ncclient.xml_ import to_ele
import six
from ncclient.t... | 35.200893 | 83 | 0.49182 |
43ad02233acb1702dc2da7147208eb71f07d888f | 409 | py | Python | test/_test_client.py | eydam-prototyping/mp_modbus | 8007c41dd16e6f71bd27b587628f57f38f27a7e0 | [
"MIT"
] | 2 | 2022-01-06T02:21:16.000Z | 2022-03-08T07:55:43.000Z | test/_test_client.py | eydam-prototyping/mp_modbus | 8007c41dd16e6f71bd27b587628f57f38f27a7e0 | [
"MIT"
] | 2 | 2021-12-10T15:56:52.000Z | 2022-02-19T23:45:24.000Z | test/_test_client.py | eydam-prototyping/mp_modbus | 8007c41dd16e6f71bd27b587628f57f38f27a7e0 | [
"MIT"
] | 3 | 2021-07-30T11:16:55.000Z | 2022-01-05T18:19:55.000Z | from pymodbus.client.sync import ModbusTcpClient as ModbusClient
import logging
FORMAT = ('%(asctime)-15s %(threadName)-15s '
'%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s')
logging.basicConfig(format=FORMAT)
log = logging.getLogger()
log.setLevel(logging.DEBUG)
client = ModbusClient('192.168.178.61... | 37.181818 | 67 | 0.743276 |
43ad3e59d1619acb8d9309d2b2e5ad3161003839 | 2,664 | py | Python | tests/selenium/test_about/test_about_page.py | technolotrix/tests | ae5b9741e80a1fd735c66de93cc014f672c5afb2 | [
"Apache-2.0"
] | null | null | null | tests/selenium/test_about/test_about_page.py | technolotrix/tests | ae5b9741e80a1fd735c66de93cc014f672c5afb2 | [
"Apache-2.0"
] | null | null | null | tests/selenium/test_about/test_about_page.py | technolotrix/tests | ae5b9741e80a1fd735c66de93cc014f672c5afb2 | [
"Apache-2.0"
] | null | null | null | import unittest
from selenium import webdriver
import page
######## FOOTER STUFF ########
if __name__ == "__main__":
unittest.main() | 36 | 98 | 0.703453 |
43ae1b68e450c7cd53ba9d214198e618977b86cc | 1,297 | py | Python | sdk/python/lib/test/langhost/future_input/__main__.py | pcen/pulumi | 1bb85ca98c90f2161fe915df083d47c56c135e4d | [
"Apache-2.0"
] | 12,004 | 2018-06-17T23:56:29.000Z | 2022-03-31T18:00:09.000Z | sdk/python/lib/test/langhost/future_input/__main__.py | pcen/pulumi | 1bb85ca98c90f2161fe915df083d47c56c135e4d | [
"Apache-2.0"
] | 6,263 | 2018-06-17T23:27:24.000Z | 2022-03-31T19:20:35.000Z | sdk/python/lib/test/langhost/future_input/__main__.py | pcen/pulumi | 1bb85ca98c90f2161fe915df083d47c56c135e4d | [
"Apache-2.0"
] | 706 | 2018-06-17T23:56:50.000Z | 2022-03-31T11:20:23.000Z | # Copyright 2016-2018, Pulumi Corporation.
#
# 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 t... | 36.027778 | 87 | 0.739399 |
43af0965a86312e6e30a4f1113799d3cd2575b0a | 5,079 | py | Python | src/dewloosh/geom/cells/h8.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | 2 | 2021-12-11T17:25:51.000Z | 2022-01-06T15:36:27.000Z | src/dewloosh/geom/cells/h8.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | src/dewloosh/geom/cells/h8.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from dewloosh.geom.polyhedron import HexaHedron
from dewloosh.math.numint import GaussPoints as Gauss
from dewloosh.geom.utils import cells_coords
from numba import njit, prange
import numpy as np
from numpy import ndarray
__cache = True
class H8(HexaHedron):
"""
8-node isoparame... | 34.317568 | 74 | 0.479425 |
43af456bb12d9242e1f8878ab32c7792bb2310ac | 2,108 | py | Python | tests/models/pr_test_data.py | heaven00/github-contribution-leaderboard | 3de53a60a7c81b91291e29d063c7fd14696d426d | [
"Apache-2.0"
] | null | null | null | tests/models/pr_test_data.py | heaven00/github-contribution-leaderboard | 3de53a60a7c81b91291e29d063c7fd14696d426d | [
"Apache-2.0"
] | null | null | null | tests/models/pr_test_data.py | heaven00/github-contribution-leaderboard | 3de53a60a7c81b91291e29d063c7fd14696d426d | [
"Apache-2.0"
] | null | null | null | import copy
import json
from ghcl.models.pull_request import PullRequest
| 31.939394 | 76 | 0.597723 |
43af80522808363696ca10665012f09669723d2f | 609 | py | Python | Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 2 | 2020-10-26T18:40:32.000Z | 2021-04-10T16:33:25.000Z | Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 30 | 2015-11-04T11:42:27.000Z | 2021-12-01T07:56:34.000Z | Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 8 | 2016-03-25T07:17:43.000Z | 2021-07-08T17:11:21.000Z | import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
basicGenParticleValidation = DQMEDAnalyzer('BasicGenParticleValidation',
hepmcCollection = cms.InputTag("generatorSmeared"),
genparticleCollection = cms.InputTag("genParticles",""),
genjetsCollection = cms.Inp... | 40.6 | 94 | 0.784893 |
43b1df830b2abdb7a53300c3467f70be764c0f6f | 1,235 | py | Python | k_values_graph.py | leobouts/Skyline_top_k_queries | 5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0 | [
"MIT"
] | null | null | null | k_values_graph.py | leobouts/Skyline_top_k_queries | 5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0 | [
"MIT"
] | null | null | null | k_values_graph.py | leobouts/Skyline_top_k_queries | 5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0 | [
"MIT"
] | null | null | null | from a_top_k import *
from b_top_k import *
import time
if __name__ == "__main__":
main()
| 24.7 | 70 | 0.673684 |
43b219f1675072d8c1034bc153a5f05238d1fdf2 | 639 | py | Python | AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 2,757 | 2018-04-28T21:41:36.000Z | 2022-03-29T06:33:36.000Z | AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 20 | 2019-07-23T15:29:32.000Z | 2022-01-21T12:53:04.000Z | AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py | CEOALT1/RefindPlusUDK | 116b957ad735f96fbb6d80a0ba582046960ba164 | [
"BSD-2-Clause"
] | 449 | 2018-05-09T05:54:05.000Z | 2022-03-30T14:54:18.000Z | """Fix bound method attributes (method.im_? -> method.__?__).
"""
# Author: Christian Heimes
# Local imports
from .. import fixer_base
from ..fixer_util import Name
MAP = {
"im_func" : "__func__",
"im_self" : "__self__",
"im_class" : "__self__.__class__"
}
| 25.56 | 80 | 0.596244 |
43b28c13174a1c70f27d43e88e2fd455da590fcc | 4,764 | py | Python | models/TextCNN/cnn2d.py | Renovamen/Text-Classification | 4a4aa4001c402ed4371ebaabe1393b27794e5992 | [
"MIT"
] | 72 | 2020-06-23T18:26:47.000Z | 2022-03-26T13:33:30.000Z | models/TextCNN/cnn2d.py | Renovamen/Text-Classification | 4a4aa4001c402ed4371ebaabe1393b27794e5992 | [
"MIT"
] | 5 | 2020-12-04T13:31:09.000Z | 2021-08-03T14:11:52.000Z | models/TextCNN/cnn2d.py | Renovamen/Text-Classification | 4a4aa4001c402ed4371ebaabe1393b27794e5992 | [
"MIT"
] | 15 | 2020-06-24T16:08:39.000Z | 2022-02-04T06:53:38.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from typing import List
| 30.538462 | 145 | 0.588161 |
43b32db495f046dd61a5bbd3592b8806b465b229 | 785 | py | Python | LEVEL2/다리를지나는트럭/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | LEVEL2/다리를지나는트럭/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null | LEVEL2/다리를지나는트럭/solution.py | seunghwanly/CODING-TEST | a820da950c163d399594770199aa2e782d1fbbde | [
"MIT"
] | null | null | null |
# print(solution(2, 10, [7, 4, 5, 6]))
print(solution(100, 100, [10]))
| 28.035714 | 73 | 0.49172 |
43b37687b876abf43457859ada796360f659fa78 | 2,595 | py | Python | heat/tests/convergence/framework/testutils.py | maestro-hybrid-cloud/heat | 91a4bb3170bd81b1c67a896706851e55709c9b5a | [
"Apache-2.0"
] | null | null | null | heat/tests/convergence/framework/testutils.py | maestro-hybrid-cloud/heat | 91a4bb3170bd81b1c67a896706851e55709c9b5a | [
"Apache-2.0"
] | null | null | null | heat/tests/convergence/framework/testutils.py | maestro-hybrid-cloud/heat | 91a4bb3170bd81b1c67a896706851e55709c9b5a | [
"Apache-2.0"
] | null | null | null | #
# 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
# ... | 36.549296 | 79 | 0.649326 |
43b5471678e7c510bd2a55fdced1140414dcd734 | 440 | py | Python | device_geometry.py | AstroShen/fpga21-scaled-tech | 8a7016913c18d71844f733bc80a3ceaa2d033ac2 | [
"MIT"
] | 2 | 2021-09-02T13:13:35.000Z | 2021-12-19T11:35:03.000Z | device_geometry.py | AstroShen/fpga21-scaled-tech | 8a7016913c18d71844f733bc80a3ceaa2d033ac2 | [
"MIT"
] | null | null | null | device_geometry.py | AstroShen/fpga21-scaled-tech | 8a7016913c18d71844f733bc80a3ceaa2d033ac2 | [
"MIT"
] | 2 | 2021-09-29T02:53:03.000Z | 2022-03-27T09:55:35.000Z | """Holds the device gemoetry parameters (Table 5), taken from Wu et al.,
>> A Predictive 3-D Source/Drain Resistance Compact Model and the Impact on 7 nm and Scaled FinFets<<, 2020, with interpolation for 4nm. 16nm is taken from PTM HP.
"""
node_names = [16, 7, 5, 4, 3]
GP = [64, 56, 48, 44, 41]
FP = [40, 30, 28, 24, ... | 36.666667 | 163 | 0.615909 |
43b56590cfbfa648aa925a4f729f3fc4fe304008 | 2,605 | py | Python | nova/tests/servicegroup/test_zk_driver.py | vmthunder/nova | baf05caab705c5778348d9f275dc541747b7c2de | [
"Apache-2.0"
] | 7 | 2017-06-19T19:37:00.000Z | 2019-06-16T02:06:14.000Z | nova/tests/servicegroup/test_zk_driver.py | vmthunder/nova | baf05caab705c5778348d9f275dc541747b7c2de | [
"Apache-2.0"
] | 9 | 2015-05-20T11:20:17.000Z | 2017-07-27T08:21:33.000Z | nova/tests/servicegroup/test_zk_driver.py | vmthunder/nova | baf05caab705c5778348d9f275dc541747b7c2de | [
"Apache-2.0"
] | 13 | 2015-05-05T09:34:04.000Z | 2017-11-08T02:03:46.000Z | # Copyright (c) AT&T 2012-2013 Yun Mao <yunmao@gmail.com>
# Copyright 2012 IBM Corp.
#
# 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/LICENS... | 39.469697 | 78 | 0.700576 |
43b6084ad6323124af0ef6d980f927d5cab21334 | 780 | py | Python | tests/test_misc.py | lordmauve/chopsticks | 87c6a5d0049a45db1477a21510cba650f470a8ac | [
"Apache-2.0"
] | 171 | 2016-07-14T11:29:15.000Z | 2022-03-12T07:39:12.000Z | tests/test_misc.py | moreati/chopsticks | 87c6a5d0049a45db1477a21510cba650f470a8ac | [
"Apache-2.0"
] | 59 | 2016-07-23T14:05:58.000Z | 2020-06-26T15:49:07.000Z | tests/test_misc.py | moreati/chopsticks | 87c6a5d0049a45db1477a21510cba650f470a8ac | [
"Apache-2.0"
] | 17 | 2016-08-01T06:46:27.000Z | 2018-03-25T14:46:15.000Z | """Tests for miscellaneous properties, such as debuggability."""
import time
from chopsticks.tunnel import Docker
from chopsticks.group import Group
def test_tunnel_repr():
"""Tunnels have a usable repr."""
tun = Docker('py36', image='python:3.6')
assert repr(tun) == "Docker('py36')"
def test_group_repr... | 25.16129 | 65 | 0.601282 |
43b62d9d4c35cd12677417d9abccab4b3568c545 | 3,028 | py | Python | Evaluation/PostProcesing.py | AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion | 366ac5073cea96b662b934c3657446c9f1aa2f65 | [
"MIT"
] | null | null | null | Evaluation/PostProcesing.py | AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion | 366ac5073cea96b662b934c3657446c9f1aa2f65 | [
"MIT"
] | 3 | 2022-03-12T17:16:36.000Z | 2022-03-17T12:14:56.000Z | Evaluation/PostProcesing.py | AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion | 366ac5073cea96b662b934c3657446c9f1aa2f65 | [
"MIT"
] | 1 | 2022-03-12T11:56:43.000Z | 2022-03-12T11:56:43.000Z | import pandas as pd
import re
import glob
| 33.274725 | 89 | 0.691546 |
43b693bbc83efef69f13c3a5a3bab32c542470ab | 2,276 | py | Python | app/wirecard/tasks.py | michel-rodrigues/viggio_backend | f419f0b939209722e1eb1e272f33de172cd5c1f1 | [
"MIT"
] | null | null | null | app/wirecard/tasks.py | michel-rodrigues/viggio_backend | f419f0b939209722e1eb1e272f33de172cd5c1f1 | [
"MIT"
] | null | null | null | app/wirecard/tasks.py | michel-rodrigues/viggio_backend | f419f0b939209722e1eb1e272f33de172cd5c1f1 | [
"MIT"
] | null | null | null | from sentry_sdk import capture_exception
from dateutil.parser import parse
from project_configuration.celery import app
from orders.models import Charge
from request_shoutout.domain.models import Charge as DomainCharge
from .models import WirecardTransactionData
CROSS_SYSTEMS_STATUS_MAPPING = {
'WAITING': Domai... | 38.576271 | 93 | 0.784271 |
43b6c1b507adc1bb371518dff1d4802b73e3e1a5 | 434 | py | Python | py/multiple_dispatch_example.py | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | null | null | null | py/multiple_dispatch_example.py | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-04-12T07:48:18.000Z | 2020-04-12T07:49:29.000Z | py/multiple_dispatch_example.py | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-09-30T05:27:07.000Z | 2020-09-30T05:27:07.000Z | from typing import *
from multiple_dispatch import multiple_dispatch
print(add(2, "hello"))
| 18.083333 | 47 | 0.658986 |
43b93580a409ca7d715e6c81e1d0f3517269cec7 | 4,277 | py | Python | dygraph/alexnet/network.py | Sunyingbin/models | 30a7f1757bfad79935aa865f4362a7b38e63a415 | [
"Apache-2.0"
] | null | null | null | dygraph/alexnet/network.py | Sunyingbin/models | 30a7f1757bfad79935aa865f4362a7b38e63a415 | [
"Apache-2.0"
] | null | null | null | dygraph/alexnet/network.py | Sunyingbin/models | 30a7f1757bfad79935aa865f4362a7b38e63a415 | [
"Apache-2.0"
] | null | null | null | """
AlexNet
"""
import paddle.fluid as fluid
import numpy as np
if __name__ == '__main__':
with fluid.dygraph.guard():
alexnet = AlexNet('alex-net', 3)
img = np.zeros([2, 3, 224, 224]).astype('float32')
img = fluid.dygraph.to_variable(img)
outs = alexnet(img).numpy()
... | 32.9 | 118 | 0.53098 |
43bbbe3418d6d5e2da95d398c3928141e4b68eab | 905 | py | Python | turtlegameproject/turtlegame.py | Ayon134/code_for_Kids | d90698bb38efe5e26c31f02bd129bfdadea158e2 | [
"MIT"
] | null | null | null | turtlegameproject/turtlegame.py | Ayon134/code_for_Kids | d90698bb38efe5e26c31f02bd129bfdadea158e2 | [
"MIT"
] | null | null | null | turtlegameproject/turtlegame.py | Ayon134/code_for_Kids | d90698bb38efe5e26c31f02bd129bfdadea158e2 | [
"MIT"
] | 2 | 2021-01-08T03:52:46.000Z | 2021-04-01T19:16:12.000Z | import turtle
import random
p1=turtle.Turtle()
p1.color("green")
p1.shape("turtle")
p1.penup()
p1.goto(-200,100)
p2=p1.clone()
p2.color("blue")
p2.penup()
p2.goto(-200,-100)
p1.goto(300,60)
p1.pendown()
p1.circle(40)
p1.penup()
p1.goto(-200,100)
p2.goto(300,-140)
p2.pendown()
p2.circle(40)
p2.penup()
p2.goto(-200,-... | 17.745098 | 49 | 0.571271 |
43bbc2ac72a79eec23f8c2578bc9f103ba32b758 | 8,684 | py | Python | hivwholeseq/sequencing/check_pipeline.py | neherlab/hivwholeseq | 978ce4060362e4973f92b122ed5340a5314d7844 | [
"MIT"
] | 3 | 2016-09-13T12:15:47.000Z | 2021-07-03T01:28:56.000Z | hivwholeseq/sequencing/check_pipeline.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | null | null | null | hivwholeseq/sequencing/check_pipeline.py | iosonofabio/hivwholeseq | d504c63b446c3a0308aad6d6e484ea1666bbe6df | [
"MIT"
] | 3 | 2016-01-17T03:43:46.000Z | 2020-03-25T07:00:11.000Z | #!/usr/bin/env python
# vim: fdm=marker
'''
author: Fabio Zanini
date: 15/06/14
content: Check the status of the pipeline for one or more sequencing samples.
'''
# Modules
import os
import sys
from itertools import izip
import argparse
from Bio import SeqIO
from hivwholeseq.utils.generic import getchar
fr... | 36.033195 | 106 | 0.554353 |
43be862a8ae3652cfbde5c9e9ea45da257901956 | 1,633 | py | Python | app.py | thliang01/nba-s | 660d0e830989916b7b9f3123eb809d143b714186 | [
"BSD-2-Clause"
] | null | null | null | app.py | thliang01/nba-s | 660d0e830989916b7b9f3123eb809d143b714186 | [
"BSD-2-Clause"
] | null | null | null | app.py | thliang01/nba-s | 660d0e830989916b7b9f3123eb809d143b714186 | [
"BSD-2-Clause"
] | null | null | null | import streamlit as st
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
# --------------------------------------------------------------
# Import and clean data
game_details = pd.read_csv('games_details.csv')
# print(game_details.head(5))
game_details.drop(['GAME_ID', 'TEAM_... | 32.019608 | 110 | 0.647887 |
43bfd11896f962234020d5d611ad3cb21b537df7 | 19,228 | py | Python | python/craftassist/voxel_models/geoscorer/geoscorer_util.py | kepolol/craftassist | f60a7edd0b4ea72b774cca45ba468d2e275445c2 | [
"MIT"
] | null | null | null | python/craftassist/voxel_models/geoscorer/geoscorer_util.py | kepolol/craftassist | f60a7edd0b4ea72b774cca45ba468d2e275445c2 | [
"MIT"
] | null | null | null | python/craftassist/voxel_models/geoscorer/geoscorer_util.py | kepolol/craftassist | f60a7edd0b4ea72b774cca45ba468d2e275445c2 | [
"MIT"
] | 1 | 2020-03-29T20:04:11.000Z | 2020-03-29T20:04:11.000Z | """
Copyright (c) Facebook, Inc. and its affiliates.
"""
import numpy as np
import random
from datetime import datetime
import sys
import argparse
import torch
import os
from inspect import currentframe, getframeinfo
GEOSCORER_DIR = os.path.dirname(os.path.realpath(__file__))
CRAFTASSIST_DIR = os.path.join(GEOSCORER_... | 34.27451 | 99 | 0.63808 |
43c0a7c7b3cc424327d10e1b990bf63c250e8eb4 | 4,907 | py | Python | CryptoAttacks/tests/Block/test_gcm.py | akbarszcz/CryptoAttacks | ae675d016b314414a3dc9b23c7d8a32da4c62457 | [
"MIT"
] | 54 | 2017-03-28T23:46:58.000Z | 2022-02-23T01:53:38.000Z | CryptoAttacks/tests/Block/test_gcm.py | maximmasiutin/CryptoAttacks | d1d47d3cb2ce38738a60b728bc35ce80bfe64374 | [
"MIT"
] | null | null | null | CryptoAttacks/tests/Block/test_gcm.py | maximmasiutin/CryptoAttacks | d1d47d3cb2ce38738a60b728bc35ce80bfe64374 | [
"MIT"
] | 13 | 2017-03-31T06:07:23.000Z | 2021-11-20T19:01:30.000Z | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
import subprocess
from builtins import bytes, range
from os.path import abspath, dirname
from os.path import join as join_path
from random import randint
from CryptoAttacks.Block.gcm import *
from CryptoAttacks.Utils import log
d... | 31.254777 | 144 | 0.678419 |
43c14b71a9e55a3f072d7e8094c999b91490df88 | 507 | py | Python | python_clean_architecture/use_cases/orderdata_use_case.py | jfsolarte/python_clean_architecture | 56b0c0eff50bc98774a0caee12e3030789476687 | [
"MIT"
] | null | null | null | python_clean_architecture/use_cases/orderdata_use_case.py | jfsolarte/python_clean_architecture | 56b0c0eff50bc98774a0caee12e3030789476687 | [
"MIT"
] | null | null | null | python_clean_architecture/use_cases/orderdata_use_case.py | jfsolarte/python_clean_architecture | 56b0c0eff50bc98774a0caee12e3030789476687 | [
"MIT"
] | null | null | null | from python_clean_architecture.shared import use_case as uc
from python_clean_architecture.shared import response_object as res
| 31.6875 | 89 | 0.755424 |
43c1a9b70d766525944aa92cfc1043f3d5e3bc1b | 17,842 | py | Python | owscapable/swe/common.py | b-cube/OwsCapable | a01815418fe982434503d6542cb18e1ac8989684 | [
"BSD-3-Clause"
] | 1 | 2016-02-01T12:55:13.000Z | 2016-02-01T12:55:13.000Z | owscapable/swe/common.py | b-cube/OwsCapable | a01815418fe982434503d6542cb18e1ac8989684 | [
"BSD-3-Clause"
] | 1 | 2015-06-23T14:07:50.000Z | 2015-06-23T14:07:50.000Z | owscapable/swe/common.py | b-cube/OwsCapable | a01815418fe982434503d6542cb18e1ac8989684 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
from owscapable.util import nspath_eval
from owscapable.namespaces import Namespaces
from owscapable.util import testXMLAttribute, testXMLValue, InfiniteDateTime, NegativeInfiniteDateTime
from dateutil import parser
from datetime import timedelta
fro... | 43.200969 | 172 | 0.619325 |