hexsha stringlengths 40 40 | size int64 1 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 239 | max_stars_repo_name stringlengths 5 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 239 | max_issues_repo_name stringlengths 5 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 239 | max_forks_repo_name stringlengths 5 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.03M | avg_line_length float64 1 958k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79559b221c2a62c6c74adef9b0d9012371d9055d | 770 | py | Python | scripts/get_docs_version.py | Kobzol/hyperqueue | 24059cc6b8499af54ad4e9db3f764275a1767c28 | [
"MIT"
] | null | null | null | scripts/get_docs_version.py | Kobzol/hyperqueue | 24059cc6b8499af54ad4e9db3f764275a1767c28 | [
"MIT"
] | 21 | 2021-03-31T16:00:39.000Z | 2021-05-06T08:41:26.000Z | scripts/get_docs_version.py | Kobzol/hyperqueue | 24059cc6b8499af54ad4e9db3f764275a1767c28 | [
"MIT"
] | 1 | 2021-05-04T07:40:58.000Z | 2021-05-04T07:40:58.000Z | import json
import subprocess
def latest_version():
return {
"type": "latest"
}
def get_version(output: str):
if not output:
return latest_version()
else:
tags = [t.strip() for t in output.splitlines(keepends=False) if t.startswith("v")]
if not tags:
retur... | 24.83871 | 117 | 0.597403 |
79559c010dfbe88f5f0206186df1b696e15626d6 | 9,778 | py | Python | assists/bmcmake_metadata_xlnx.py | kedareswararao/lopper | efc4fa776e7dd6ad0b234c81dd34af5fab3e0283 | [
"BSD-3-Clause"
] | null | null | null | assists/bmcmake_metadata_xlnx.py | kedareswararao/lopper | efc4fa776e7dd6ad0b234c81dd34af5fab3e0283 | [
"BSD-3-Clause"
] | null | null | null | assists/bmcmake_metadata_xlnx.py | kedareswararao/lopper | efc4fa776e7dd6ad0b234c81dd34af5fab3e0283 | [
"BSD-3-Clause"
] | null | null | null | #/*
# * Copyright (c) 2020 Xilinx Inc. All rights reserved.
# *
# * Author:
# * Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
# *
# * SPDX-License-Identifier: BSD-3-Clause
# */
import struct
import sys
import types
import os
import getopt
import re
from pathlib import Path
from pathlib import PurePa... | 36.485075 | 112 | 0.560953 |
79559c2cd620cef66985923964844402015a3db8 | 1,579 | py | Python | configs/solo/solo_r50_fpn_1x_coco.py | ruiningTang/mmdetection | 100b0b5e0edddc45af0812b9f1474493c61671ef | [
"Apache-2.0"
] | null | null | null | configs/solo/solo_r50_fpn_1x_coco.py | ruiningTang/mmdetection | 100b0b5e0edddc45af0812b9f1474493c61671ef | [
"Apache-2.0"
] | null | null | null | configs/solo/solo_r50_fpn_1x_coco.py | ruiningTang/mmdetection | 100b0b5e0edddc45af0812b9f1474493c61671ef | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='SOLO',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
froze... | 29.792453 | 80 | 0.538949 |
79559c2fb6c744ffde65c11f515c2e8c551ff121 | 386,275 | py | Python | pysnmp/Nortel-MsCarrier-MscPassport-BridgeMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Nortel-MsCarrier-MscPassport-BridgeMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Nortel-MsCarrier-MscPassport-BridgeMIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-BridgeMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-BridgeMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:20:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4... | 162.710615 | 12,802 | 0.766016 |
79559e50125c505e05043c46f3ec6ecc79536803 | 11,191 | py | Python | main.py | Mythrillo/discord-bot | 2663c83bc7466ef9d5a1be1916879a942b74dca7 | [
"MIT"
] | null | null | null | main.py | Mythrillo/discord-bot | 2663c83bc7466ef9d5a1be1916879a942b74dca7 | [
"MIT"
] | null | null | null | main.py | Mythrillo/discord-bot | 2663c83bc7466ef9d5a1be1916879a942b74dca7 | [
"MIT"
] | null | null | null | import os
import discord
import io
import aiohttp
from dotenv import load_dotenv
import random
from discord.ext import commands
import bs4 as bs
from urllib.request import urlopen
load_dotenv()
TOKEN = os.getenv("DISCORD_TOKEN")
intents = discord.Intents().all()
bot = commands.Bot(command_prefix="!", intents=intents... | 40.400722 | 128 | 0.552587 |
79559eafbaf05bc04d0059822f790e2e0f6175ca | 880 | py | Python | LoginPanelTkinter.py | Btt1996/LoginTkinter | 5a09fc698536e01818befe2b4a7ba90c6a5a87c7 | [
"Apache-2.0"
] | null | null | null | LoginPanelTkinter.py | Btt1996/LoginTkinter | 5a09fc698536e01818befe2b4a7ba90c6a5a87c7 | [
"Apache-2.0"
] | null | null | null | LoginPanelTkinter.py | Btt1996/LoginTkinter | 5a09fc698536e01818befe2b4a7ba90c6a5a87c7 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from functools import partial
def validateLogin(username, password):
print("username entered :", username.get())
print("password entered :", password.get())
return
#window
tkWindow = Tk()
tkWindow.geometry('400x150')
tkWindow.title('Login’)
#username label and text entry box
usernameLabe... | 30.344828 | 91 | 0.75 |
79559ebb0f473d00526b66e722668ab527d3da17 | 3,598 | py | Python | tests/python/gaia-ui-tests/gaiatest/tests/functional/clock/test_clock_create_new_alarm.py | DouglasSherk/gaia | ca471df16080c97d0b7c0b830fdbfab3ab065e56 | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/tests/functional/clock/test_clock_create_new_alarm.py | DouglasSherk/gaia | ca471df16080c97d0b7c0b830fdbfab3ab065e56 | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/tests/functional/clock/test_clock_create_new_alarm.py | DouglasSherk/gaia | ca471df16080c97d0b7c0b830fdbfab3ab065e56 | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
from gaiatest.apps.clock.app import Clock
from gaiatest.apps.clock.regions.alarm_alert... | 36.343434 | 110 | 0.66398 |
79559f203367ac7c1cc09a437ebf20c19f7ce22c | 6,491 | py | Python | qnarre/prep/convert/roberta.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/prep/convert/roberta.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/prep/convert/roberta.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | # Copyright 2022 Quantapix Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 48.804511 | 97 | 0.731474 |
79559f3898e21181d66e3ed3de41db078e4c4af2 | 10,871 | py | Python | home-assistant/custom_components/climate/intesishome.py | grischard/pyIntesisHome | ad6958ccf65d49715a6a72b9d2e10c25043a0eee | [
"MIT"
] | null | null | null | home-assistant/custom_components/climate/intesishome.py | grischard/pyIntesisHome | ad6958ccf65d49715a6a72b9d2e10c25043a0eee | [
"MIT"
] | null | null | null | home-assistant/custom_components/climate/intesishome.py | grischard/pyIntesisHome | ad6958ccf65d49715a6a72b9d2e10c25043a0eee | [
"MIT"
] | null | null | null | """
Support for IntesisHome Smart AC Controllers
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/intesishome/
"""
import logging
import voluptuous as vol
from custom_components import intesishome
from homeassistant.util import Throttle
from datetime impor... | 33.866044 | 100 | 0.65339 |
79559fa0947ad295dad6a922c84c6ab514769216 | 403 | py | Python | poke_dual_emu/wsgi.py | jacob975/poke_dual_emu | a172bf7763144b28b87ce5a493d4ccbff038fbe7 | [
"MIT"
] | null | null | null | poke_dual_emu/wsgi.py | jacob975/poke_dual_emu | a172bf7763144b28b87ce5a493d4ccbff038fbe7 | [
"MIT"
] | null | null | null | poke_dual_emu/wsgi.py | jacob975/poke_dual_emu | a172bf7763144b28b87ce5a493d4ccbff038fbe7 | [
"MIT"
] | null | null | null | """
WSGI config for poke_dual_emu project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | 23.705882 | 78 | 0.791563 |
7955a0948378640590504acd9636e6003d586daa | 1,657 | py | Python | car5.py | maahi07m/Hackerrank | 6aa984690b34ccc9cd8119d42aa75c0b049afbbc | [
"MIT"
] | null | null | null | car5.py | maahi07m/Hackerrank | 6aa984690b34ccc9cd8119d42aa75c0b049afbbc | [
"MIT"
] | null | null | null | car5.py | maahi07m/Hackerrank | 6aa984690b34ccc9cd8119d42aa75c0b049afbbc | [
"MIT"
] | 3 | 2020-04-04T11:13:20.000Z | 2020-05-18T15:58:54.000Z | """
>>> car = Car(color="Red", max_speed=250, acceleration=10, tyre_friction=3)
>>> car.start_engine()
>>> car.accelerate()
>>> car.current_speed
10
>>> car.apply_brakes()
>>> car.current_speed
7
>>> car.apply_brakes()
>>> car.current_speed
4
>>> car.apply_brakes()
>>> car.current_speed
1
>>> car.apply_brakes()
>>> car... | 23.671429 | 75 | 0.642124 |
7955a1224ada62d4ff1b8466f376e248ad53633f | 788 | py | Python | caelum-py-14-cap4/forca.py | herculeshssj/python | c1a0134c405cd7e68fd6d9103894c83d002daa7e | [
"MIT"
] | null | null | null | caelum-py-14-cap4/forca.py | herculeshssj/python | c1a0134c405cd7e68fd6d9103894c83d002daa7e | [
"MIT"
] | null | null | null | caelum-py-14-cap4/forca.py | herculeshssj/python | c1a0134c405cd7e68fd6d9103894c83d002daa7e | [
"MIT"
] | null | null | null | print('*********************************')
print('***Bem vindo ao jogo da Forca!***')
print('*********************************')
palavra_secreta = 'banana'
letras_acertadas = ['_', '_', '_', '_', '_', '_']
acertou = False
enforcou = False
erros = 0
print(letras_acertadas)
while (not acertou and not enforcou):
c... | 22.514286 | 49 | 0.53934 |
7955a1c28681bff4c9f154e05d02d16a973ceb94 | 5,133 | py | Python | search/storage/storage.py | JinHai-CN/phantoscope | 1148a30bd379691220e46520248f76615f1d86d3 | [
"Apache-2.0"
] | null | null | null | search/storage/storage.py | JinHai-CN/phantoscope | 1148a30bd379691220e46520248f76615f1d86d3 | [
"Apache-2.0"
] | null | null | null | search/storage/storage.py | JinHai-CN/phantoscope | 1148a30bd379691220e46520248f76615f1d86d3 | [
"Apache-2.0"
] | null | null | null | import os
import json
import logging
from milvus import Milvus, MetricType
from minio import Minio
from common.config import MILVUS_ADDR, MILVUS_PORT
from common.error import MilvusError, S3Error
from common.const import MINIO_BUCKET_PUBLIC_POLICY
from common.config import MINIO_ADDR, MINIO_ACCESS_KEY, MINIO_SECRET_KEY... | 35.645833 | 113 | 0.631794 |
7955a21717825a0432fb75fbc15b773a035449c1 | 95 | py | Python | mlserve/__init__.py | jettify/mlserve | 571152e4475738e0b01fcbde166d95a3636b3c5f | [
"Apache-2.0"
] | 17 | 2018-08-06T09:38:17.000Z | 2018-08-14T10:55:58.000Z | mlserve/__init__.py | ml-libs/mlserve | 571152e4475738e0b01fcbde166d95a3636b3c5f | [
"Apache-2.0"
] | 63 | 2018-09-07T21:40:16.000Z | 2022-02-10T17:11:13.000Z | mlserve/__init__.py | jettify/mlserve | 571152e4475738e0b01fcbde166d95a3636b3c5f | [
"Apache-2.0"
] | 1 | 2019-05-06T10:18:59.000Z | 2019-05-06T10:18:59.000Z | from .schema_builder import build_schema
__all__ = ('build_schema',)
__version__ = '0.0.1a6'
| 15.833333 | 40 | 0.747368 |
7955a3c681bd43d12a26a2746a4d4f81640aebf9 | 8,809 | py | Python | III godina/Zimski semestar/UVI/Kolokvijumi/Inteligentni sistemi 1/I_Kolokvijum/2018-2019/Popravni/Resenja_studenata/CLIPS/Mihajlo_Jankovic_44-19/Zadatak_CLIPS_Experta.py | TodorovicSrdjan/PMF | d3deee21697dad300177fca6090c56d3b8d0cb76 | [
"MIT"
] | null | null | null | III godina/Zimski semestar/UVI/Kolokvijumi/Inteligentni sistemi 1/I_Kolokvijum/2018-2019/Popravni/Resenja_studenata/CLIPS/Mihajlo_Jankovic_44-19/Zadatak_CLIPS_Experta.py | TodorovicSrdjan/PMF | d3deee21697dad300177fca6090c56d3b8d0cb76 | [
"MIT"
] | null | null | null | III godina/Zimski semestar/UVI/Kolokvijumi/Inteligentni sistemi 1/I_Kolokvijum/2018-2019/Popravni/Resenja_studenata/CLIPS/Mihajlo_Jankovic_44-19/Zadatak_CLIPS_Experta.py | TodorovicSrdjan/PMF | d3deee21697dad300177fca6090c56d3b8d0cb76 | [
"MIT"
] | null | null | null | from experta import *
from experta.utils import freeze
import schema
#watch('ACTIVATIONS','RULES','FACTS')
class Faza(Fact):
pass
class Laptop(Fact):
model = Field(str)
procesor = Field(schema.Or("i3","i5","i7"))
ssd = Field(schema.Or("DA","NE"))
ram = Field(schema.Or(4,8,12,16))
... | 36.102459 | 139 | 0.522534 |
7955a421980e8acf92e869dfd770221c6489268d | 7,022 | py | Python | lbrynet/utils.py | walidmujahid/lbry | e4c3e038b613f8e84fbe6e9227913c9c42146eaa | [
"MIT"
] | null | null | null | lbrynet/utils.py | walidmujahid/lbry | e4c3e038b613f8e84fbe6e9227913c9c42146eaa | [
"MIT"
] | null | null | null | lbrynet/utils.py | walidmujahid/lbry | e4c3e038b613f8e84fbe6e9227913c9c42146eaa | [
"MIT"
] | null | null | null | import base64
import codecs
import datetime
import random
import socket
import string
import json
import traceback
import functools
import logging
import pkg_resources
from twisted.python.failure import Failure
from twisted.internet import defer
from lbrynet.schema.claim import ClaimDict
from lbrynet.cryptoutils import... | 30.530435 | 109 | 0.638992 |
7955a45dbfb9cfbccc5bc5e47aebdada6818b1fd | 6,400 | py | Python | python/runSlomo.py | lotress/MoePhoto | 6f47515d2cf236773a46413f57839565fa665796 | [
"Apache-2.0"
] | 9 | 2019-03-27T15:01:11.000Z | 2021-02-23T15:21:57.000Z | python/runSlomo.py | lotress/MoePhoto | 6f47515d2cf236773a46413f57839565fa665796 | [
"Apache-2.0"
] | null | null | null | python/runSlomo.py | lotress/MoePhoto | 6f47515d2cf236773a46413f57839565fa665796 | [
"Apache-2.0"
] | 3 | 2019-03-27T15:01:31.000Z | 2021-01-26T03:18:09.000Z | '''
super slomo
code refered from https://github.com/avinashpaliwal/Super-SloMo.git
'''
# pylint: disable=E1101
import logging
import torch
from slomo import UNet, backWarp
from imageProcess import initModel, getStateDict, getPadBy32, doCrop, identity, Option, extend
from config import config
log = logging.getLogger('... | 31.840796 | 125 | 0.6275 |
7955a5217d15029178525b234480b6f3e7e11385 | 6,212 | py | Python | Athos/TFCompiler/ProcessTFGraph.py | shahakash28/EzPC-Aligned | 1887e5be2b6476ded285c15e134a7de92121a480 | [
"MIT"
] | null | null | null | Athos/TFCompiler/ProcessTFGraph.py | shahakash28/EzPC-Aligned | 1887e5be2b6476ded285c15e134a7de92121a480 | [
"MIT"
] | null | null | null | Athos/TFCompiler/ProcessTFGraph.py | shahakash28/EzPC-Aligned | 1887e5be2b6476ded285c15e134a7de92121a480 | [
"MIT"
] | null | null | null | '''
Authors: Nishant Kumar.
Copyright:
Copyright (c) 2020 Microsoft Research
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... | 37.197605 | 103 | 0.748712 |
7955a64a5fada8d0b9d801437d6666a9d409cf56 | 855 | py | Python | CDD/Lista/18.py | isisestevan/ATIVIDADES-UIT-1-PERIODO | 3274d4ee39349eaa54d333999048b75d33b76b30 | [
"MIT"
] | null | null | null | CDD/Lista/18.py | isisestevan/ATIVIDADES-UIT-1-PERIODO | 3274d4ee39349eaa54d333999048b75d33b76b30 | [
"MIT"
] | null | null | null | CDD/Lista/18.py | isisestevan/ATIVIDADES-UIT-1-PERIODO | 3274d4ee39349eaa54d333999048b75d33b76b30 | [
"MIT"
] | null | null | null | n=int(input("Digite o tamanho da lista"))
lista= []
print("Digite o produto e seu preço respectivamente") # Digite o nome - e o preço logo a frente.Ex: ovo-7;
for i in range(n):
lista.append(input())
#Ordeno a lista
lista.sort()
print("Lista Ordenada:",lista)
#Atribuo a lista para uma string
Stringlista= " ".join... | 31.666667 | 135 | 0.74386 |
7955a7140be55801c72fcc0a5c9fda6c4e44f88e | 6,805 | py | Python | conda/gateways/connection/session.py | areading314/conda | c9aa50360af308048f57bc2d1c9ae5707e057e3b | [
"BSD-3-Clause"
] | 1 | 2021-03-19T23:50:53.000Z | 2021-03-19T23:50:53.000Z | conda/gateways/connection/session.py | areading314/conda | c9aa50360af308048f57bc2d1c9ae5707e057e3b | [
"BSD-3-Clause"
] | null | null | null | conda/gateways/connection/session.py | areading314/conda | c9aa50360af308048f57bc2d1c9ae5707e057e3b | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import getLogger
from threading import local
from . import (AuthBase, BaseAdapter, HTTPAdapter, Session, _basic_auth_str,
... | 36.196809 | 97 | 0.658339 |
7955a8601309bd45485e3bacf7ccdba4879eda92 | 2,073 | py | Python | moto/databrew/responses.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | moto/databrew/responses.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | moto/databrew/responses.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | import json
from urllib.parse import urlparse
from moto.core.responses import BaseResponse
from moto.core.utils import amzn_request_id
from .models import databrew_backends
class DataBrewResponse(BaseResponse):
SERVICE_NAME = "databrew"
@property
def databrew_backend(self):
"""Return backend ins... | 33.435484 | 79 | 0.66136 |
7955a8f8d30526f4a0465d615b91f123b24e364f | 6,120 | py | Python | app.py | githubwyj/ueditor-for-python | 047db4b4d1aff643476d93cb5d13560f73fba2a4 | [
"Apache-2.0"
] | null | null | null | app.py | githubwyj/ueditor-for-python | 047db4b4d1aff643476d93cb5d13560f73fba2a4 | [
"Apache-2.0"
] | 2 | 2020-03-12T10:44:53.000Z | 2020-03-12T10:44:54.000Z | app.py | githubwyj/ueditor-for-python | 047db4b4d1aff643476d93cb5d13560f73fba2a4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import re
import json
from flask import Flask, request, render_template, url_for, make_response
from uploader import Uploader
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/upload/', methods=['GET', 'POST', 'OPTIONS'])
d... | 31.384615 | 88 | 0.526961 |
7955a97163ab84649b2e6990125fbb4a742b6d3e | 1,072 | py | Python | Auto_clic_react.py | titouan-joseph/AutoClicMessenger | e00f46c7d03f27deb7b7d9c2cc5758d8901227c7 | [
"MIT"
] | null | null | null | Auto_clic_react.py | titouan-joseph/AutoClicMessenger | e00f46c7d03f27deb7b7d9c2cc5758d8901227c7 | [
"MIT"
] | null | null | null | Auto_clic_react.py | titouan-joseph/AutoClicMessenger | e00f46c7d03f27deb7b7d9c2cc5758d8901227c7 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import time
import credentials
if __name__ == '__main__':
options = Options()
options.add_argument("--headless")
profile = webdriver.FirefoxProfile()
profile.set_preference("media.volume_scale", "0.0")
... | 34.580645 | 120 | 0.652985 |
7955a9d2bbc215504900b8236b80b6a75b95b7a8 | 1,544 | py | Python | usaspending_api/common/operations_reporter.py | gaybro8777/usaspending-api | fe9d730acd632401bbbefa168e3d86d59560314b | [
"CC0-1.0"
] | null | null | null | usaspending_api/common/operations_reporter.py | gaybro8777/usaspending-api | fe9d730acd632401bbbefa168e3d86d59560314b | [
"CC0-1.0"
] | null | null | null | usaspending_api/common/operations_reporter.py | gaybro8777/usaspending-api | fe9d730acd632401bbbefa168e3d86d59560314b | [
"CC0-1.0"
] | null | null | null | import json
class OpsReporter:
"""
Object to load useful operational metrics during routine script executions
When instantiating a new OpsReporter class, metrics can be loaded as keyword args
Later, additional data can be added just like adding/updating values in a dictionary.
At t... | 32.166667 | 114 | 0.647668 |
7955a9f6e0639d3707f2ae86b36c9e4b1fd8bada | 3,302 | py | Python | kydb/union.py | juggler99/kydb | bd0e1d11989e418c0ac5165b9c4752b42c074e7b | [
"MIT"
] | null | null | null | kydb/union.py | juggler99/kydb | bd0e1d11989e418c0ac5165b9c4752b42c074e7b | [
"MIT"
] | 14 | 2020-09-01T20:19:13.000Z | 2020-11-08T19:45:05.000Z | kydb/union.py | juggler99/kydb | bd0e1d11989e418c0ac5165b9c4752b42c074e7b | [
"MIT"
] | 3 | 2020-09-04T15:17:25.000Z | 2020-10-18T00:36:03.000Z |
from .base import BaseDB
from .interface import KYDBInterface
from typing import Tuple
from contextlib import ExitStack
def front_db_func(self, func_name, *args, **kwargs):
return getattr(self.dbs[0], func_name)(*args, **kwargs)
def first_success_db_func(self, func_name, *args, **kwargs):
first_error = Non... | 24.827068 | 74 | 0.604785 |
7955aa1a6fec3e3ec8a2417b226c2dfc5253d75c | 20,205 | py | Python | python/dgl/transform/module.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | 1 | 2021-11-07T18:53:42.000Z | 2021-11-07T18:53:42.000Z | python/dgl/transform/module.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | null | null | null | python/dgl/transform/module.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | null | null | null | ##
# Copyright 2019-2021 Contributors
#
# 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 a... | 29.933333 | 98 | 0.567434 |
7955aa361efefff1c23a81745469e3c48065ad8f | 634 | py | Python | examples/batch_restoreAr.py | jinji-hanbin/python-sdk | db11d919e0db433d6f12507a58a149191d7ccd35 | [
"MIT"
] | 494 | 2015-01-08T09:56:30.000Z | 2022-03-28T03:15:22.000Z | examples/batch_restoreAr.py | jinji-hanbin/python-sdk | db11d919e0db433d6f12507a58a149191d7ccd35 | [
"MIT"
] | 189 | 2015-01-26T06:46:19.000Z | 2022-03-28T04:06:16.000Z | examples/batch_restoreAr.py | jinji-hanbin/python-sdk | db11d919e0db433d6f12507a58a149191d7ccd35 | [
"MIT"
] | 306 | 2015-01-24T05:56:05.000Z | 2021-12-21T12:15:57.000Z | # -*- coding: utf-8 -*-
# flake8: noqa
"""
批量解冻文件
https://developer.qiniu.com/kodo/api/1250/batch
"""
from qiniu import build_batch_restoreAr, Auth, BucketManager
# 七牛账号的公钥和私钥
access_key = '<access_key>'
secret_key = '<secret_key>'
q = Auth(access_key, secret_key)
bucket = BucketManager(q)
# 存储空间
bucket_name = "空... | 19.8125 | 60 | 0.547319 |
7955aa9dac23fe21c34488ddd6f9a591636d8fb9 | 234 | py | Python | Algorithms/365.water-and-jug-problem/water-and-jug-problem.py | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 1 | 2020-12-01T18:35:24.000Z | 2020-12-01T18:35:24.000Z | Algorithms/365.water-and-jug-problem/water-and-jug-problem.py | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 18 | 2020-11-10T05:48:29.000Z | 2020-11-26T08:39:20.000Z | Algorithms/365.water-and-jug-problem/water-and-jug-problem.py | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 5 | 2020-11-09T07:43:00.000Z | 2021-12-02T14:59:37.000Z | class Solution:
def canMeasureWater(self, x: int, y: int, z: int) -> bool:
if x + y < z:
return False
if x == 0 or y == 0:
return z == 0 or x + y == z
return z % math.gcd(x, y) == 0
| 29.25 | 62 | 0.448718 |
7955aaf1802af296d7436c7f6b2a7074d06835f1 | 9,199 | py | Python | filters/tomopy_misc_phantom.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | filters/tomopy_misc_phantom.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | filters/tomopy_misc_phantom.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file has been modified to remove some dependencies and functionality
# #########################################################################
# Copyright (c) 2015-2019, UChicago Argonne, LLC. All rights reserved. #
# ... | 36.796 | 75 | 0.544842 |
7955abf9168a5a82755f715ca1ac4f93ae816863 | 598 | py | Python | biometrics/utils.py | msk-access/biometrics | 9af070295c05d65d539ab3aeeb93287d10d097bc | [
"Apache-2.0"
] | 1 | 2021-01-14T16:48:37.000Z | 2021-01-14T16:48:37.000Z | biometrics/utils.py | msk-access/biometrics | 9af070295c05d65d539ab3aeeb93287d10d097bc | [
"Apache-2.0"
] | 29 | 2019-12-06T16:10:47.000Z | 2021-06-10T20:01:06.000Z | biometrics/utils.py | msk-access/biometrics | 9af070295c05d65d539ab3aeeb93287d10d097bc | [
"Apache-2.0"
] | null | null | null | import logging
def get_logger(debug=False):
FORMAT = '%(levelname)s - %(asctime)-15s: %(message)s'
logging.basicConfig(format=FORMAT)
logger = logging.getLogger("biometrics")
if debug:
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)
return logger
def stan... | 18.6875 | 58 | 0.602007 |
7955ac576d4c10ad7ea6f8cfcedbc8a51ce73e68 | 2,793 | py | Python | Python web scraper.py | VarshaChanaliya/Python-web-crawler | 5f858acf53acd9ee4f76462e410b98c7838daedd | [
"Apache-2.0"
] | null | null | null | Python web scraper.py | VarshaChanaliya/Python-web-crawler | 5f858acf53acd9ee4f76462e410b98c7838daedd | [
"Apache-2.0"
] | null | null | null | Python web scraper.py | VarshaChanaliya/Python-web-crawler | 5f858acf53acd9ee4f76462e410b98c7838daedd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Importing Required libraries
# In[62]:
import requests
import bs4
import articleDateExtractor
from newspaper import Article
import pandas as pd
# # Creating generalized code for News analysis
# In[129]:
class news_analysis:
def __init__(self,keyword):
self... | 31.033333 | 142 | 0.590047 |
7955ace2b87278ff222d39a9f1052af54d2479f0 | 8,543 | py | Python | insights/combiners/tests/test_netstat.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 121 | 2017-05-30T20:23:25.000Z | 2022-03-23T12:52:15.000Z | insights/combiners/tests/test_netstat.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 1,977 | 2017-05-26T14:36:03.000Z | 2022-03-31T10:38:53.000Z | insights/combiners/tests/test_netstat.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 244 | 2017-05-30T20:22:57.000Z | 2022-03-26T10:09:39.000Z | from ...parsers.ip import IpLinkInfo
from ...parsers.netstat import Netstat_I
from insights.util import keys_in
from ..netstat import NetworkStats
from ...tests import context_wrap
NETSTAT_I = """
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
bond0 1500... | 44.264249 | 124 | 0.563034 |
7955ad5fa5bdd4cf675b2424ebc582fc08b94b70 | 1,490 | py | Python | dashboard/dashboard/common/bot_configurations.py | Martijnve23/catapult | 5c63b19d221af6a12889e8727acc85d93892cab7 | [
"BSD-3-Clause"
] | 1,894 | 2015-04-17T18:29:53.000Z | 2022-03-28T22:41:06.000Z | dashboard/dashboard/common/bot_configurations.py | Martijnve23/catapult | 5c63b19d221af6a12889e8727acc85d93892cab7 | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | dashboard/dashboard/common/bot_configurations.py | Martijnve23/catapult | 5c63b19d221af6a12889e8727acc85d93892cab7 | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import string
from google.appengine.ext import... | 29.8 | 80 | 0.76443 |
7955ad737aace06e1bdc3f5847f7f8c319bb15ae | 5,123 | py | Python | door.py | Ish-Co/Alpha_beta-Windows- | 104157ea7e7636f935423063c1a217cbd29f9191 | [
"MIT"
] | null | null | null | door.py | Ish-Co/Alpha_beta-Windows- | 104157ea7e7636f935423063c1a217cbd29f9191 | [
"MIT"
] | null | null | null | door.py | Ish-Co/Alpha_beta-Windows- | 104157ea7e7636f935423063c1a217cbd29f9191 | [
"MIT"
] | null | null | null | import tkinter as tk
# Creating an instance of the class
root = tk.Tk ()
door = tk.Canvas (root , width=1000 , height=800 , bg='white')
door.pack ()
def create_doorframe(self , x , y , c , door_width=30 , door_offset=1.5 , frame_width=4.75 , opens='rt' , facing='n'):
# OPTION A , B , C , OR D
if (facing == '... | 43.786325 | 123 | 0.465352 |
7955ae8ce5a28cf8ab024b26dcf3059bdd7db2a3 | 744 | py | Python | FishCDailyQuestion/ex001-010/Python3_004/004_06.py | YorkFish/git_study | 6e023244daaa22e12b24e632e76a13e5066f2947 | [
"MIT"
] | null | null | null | FishCDailyQuestion/ex001-010/Python3_004/004_06.py | YorkFish/git_study | 6e023244daaa22e12b24e632e76a13e5066f2947 | [
"MIT"
] | null | null | null | FishCDailyQuestion/ex001-010/Python3_004/004_06.py | YorkFish/git_study | 6e023244daaa22e12b24e632e76a13e5066f2947 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding:utf-8
# 这里的输入限制格式,也限制了年份,如 20,000 年
date = input("Please enter the date(e.g. 20190101): ")
year_input = int(date[:4]) # 前 4 位数表示年份
month_input = int(date[4:6]) # 5、6 两位表示月份
day_input = int(date[6:]) # 7、8 两位表示日
md_input = int(date[4:]) # 最后 4 位表示月、日
days_lst = [0, 31,... | 26.571429 | 70 | 0.600806 |
7955aeca0abd865d852dd7ea5f82ce21c2ae4e77 | 694 | py | Python | examples/load_conf/load_conf_demo.py | Jie-Yuan/MeUtils | 2bb191b0d35b809af037c0f65b37570b8828bea3 | [
"Apache-2.0"
] | 3 | 2020-12-03T07:30:02.000Z | 2021-02-07T13:37:33.000Z | examples/load_conf/load_conf_demo.py | Jie-Yuan/MeUtils | 2bb191b0d35b809af037c0f65b37570b8828bea3 | [
"Apache-2.0"
] | null | null | null | examples/load_conf/load_conf_demo.py | Jie-Yuan/MeUtils | 2bb191b0d35b809af037c0f65b37570b8828bea3 | [
"Apache-2.0"
] | 1 | 2021-02-07T13:37:38.000Z | 2021-02-07T13:37:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : MeUtils.
# @File : load_conf_demo
# @Time : 2021/1/27 8:38 下午
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
from meutils.pipe import *
class Config(BaseConfig):
name: str... | 21.030303 | 68 | 0.619597 |
7955b0463912e0ffada4322f71f346846327047d | 1,079 | py | Python | algorithms/MSM.py | feftio/random-numbers | a84be0957f84e3d70c7a45145cb451974abc9828 | [
"MIT"
] | null | null | null | algorithms/MSM.py | feftio/random-numbers | a84be0957f84e3d70c7a45145cb451974abc9828 | [
"MIT"
] | null | null | null | algorithms/MSM.py | feftio/random-numbers | a84be0957f84e3d70c7a45145cb451974abc9828 | [
"MIT"
] | null | null | null | from utils import digits_up, digits_down
def _MSM(z, n):
sequence = []
for _ in range(n):
(z, counter) = digits_up(z) if (
z > -1 and z < 1) else (z, len(str(z)))
z = int(z ** 2 %
(10 ** (counter + counter // 2)) / (10 ** (counter // 2)))
sequence.appen... | 32.69697 | 79 | 0.493976 |
7955b2412241d7c1ebeb98e0dd424fb0693c2548 | 7,629 | py | Python | astroquery/vizier/tests/test_vizier.py | amsuhane/astroquery | 9c6ad92c9c52fc82816958e50354465c3ba73618 | [
"BSD-3-Clause"
] | null | null | null | astroquery/vizier/tests/test_vizier.py | amsuhane/astroquery | 9c6ad92c9c52fc82816958e50354465c3ba73618 | [
"BSD-3-Clause"
] | null | null | null | astroquery/vizier/tests/test_vizier.py | amsuhane/astroquery | 9c6ad92c9c52fc82816958e50354465c3ba73618 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import requests
from numpy import testing as npt
import pytest
from astropy.table import Table
import astropy.units as u
import six
from six.moves import urllib_parse as urlparse
from ... import vizier
from ...utils import commons
from ...utils.t... | 34.835616 | 79 | 0.604011 |
7955b29c486276b284571d2cf5890037aea2429c | 9,825 | py | Python | src/oci/load_balancer/models/create_certificate_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/load_balancer/models/create_certificate_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/load_balancer/models/create_certificate_details.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 36.524164 | 245 | 0.677252 |
7955b3a849ccfe8aeb39a308f43430eb21202f00 | 6,434 | py | Python | mindspore/nn/probability/bijector/softplus.py | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | 4 | 2021-01-26T09:14:01.000Z | 2021-01-26T09:17:24.000Z | mindspore/nn/probability/bijector/softplus.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | null | null | null | mindspore/nn/probability/bijector/softplus.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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... | 35.15847 | 98 | 0.588436 |
7955b683c0db79910cf902d9d1494f9cc9da3a8b | 1,604 | py | Python | onnxruntime_extensions/cmake_helper.py | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 59 | 2021-04-29T07:39:42.000Z | 2022-03-29T21:12:05.000Z | onnxruntime_extensions/cmake_helper.py | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 45 | 2021-05-12T08:32:58.000Z | 2022-03-29T21:11:59.000Z | onnxruntime_extensions/cmake_helper.py | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 18 | 2021-05-10T10:15:46.000Z | 2022-03-22T10:46:36.000Z | import inspect
from ._ocos import default_opset_domain
from . import _cuops
ALL_CUSTOM_OPS = {_name: _obj for _name, _obj in inspect.getmembers(_cuops)
if (inspect.isclass(_obj) and issubclass(_obj, _cuops.CustomOp))}
OPMAP_TO_CMAKE_FLAGS = {'GPT2Tokenizer': 'OCOS_ENABLE_GPT2_TOKENIZER',
... | 44.555556 | 111 | 0.577307 |
7955b6a97b04efe49bd554ebddb63f75f4295c2e | 9,620 | py | Python | lldb/test/API/tools/lldb-vscode/attach/TestVSCode_attach.py | elizabethandrews/llvm | 308498236c1c4778fdcba0bfbb556adf8aa333ea | [
"Apache-2.0"
] | 305 | 2019-09-14T17:16:05.000Z | 2022-03-31T15:05:20.000Z | lldb/test/API/tools/lldb-vscode/attach/TestVSCode_attach.py | elizabethandrews/llvm | 308498236c1c4778fdcba0bfbb556adf8aa333ea | [
"Apache-2.0"
] | 11 | 2019-10-17T21:11:52.000Z | 2022-02-17T20:10:00.000Z | lldb/test/API/tools/lldb-vscode/attach/TestVSCode_attach.py | elizabethandrews/llvm | 308498236c1c4778fdcba0bfbb556adf8aa333ea | [
"Apache-2.0"
] | 24 | 2019-10-03T11:22:11.000Z | 2022-01-25T09:59:30.000Z | """
Test lldb-vscode setBreakpoints request
"""
import unittest2
import vscode
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
import lldbvscode_testcase
import os
import shutil
import subprocess
import tempfile
import threading
import time
def spawn... | 42.566372 | 150 | 0.640333 |
7955b6e74e856f70748777a8430668115c1cd2a5 | 359 | py | Python | msdm/core/distributions/__init__.py | markkho/msdm | f2e07cdf1a16f7a0564a4822caed89a758e14bf1 | [
"MIT"
] | 15 | 2020-09-09T14:08:10.000Z | 2022-02-24T14:19:39.000Z | msdm/core/distributions/__init__.py | markkho/msdm | f2e07cdf1a16f7a0564a4822caed89a758e14bf1 | [
"MIT"
] | 28 | 2020-09-13T22:12:03.000Z | 2022-02-20T18:42:56.000Z | msdm/core/distributions/__init__.py | markkho/msdm | f2e07cdf1a16f7a0564a4822caed89a758e14bf1 | [
"MIT"
] | 3 | 2021-07-21T15:05:01.000Z | 2022-02-07T04:01:55.000Z | from msdm.core.distributions.distributions import Distribution, FiniteDistribution
from msdm.core.distributions.discretefactortable import \
DiscreteFactorTable
from msdm.core.distributions.dictdistribution import DictDistribution, DeterministicDistribution, UniformDistribution
from msdm.core.distributions.softmaxd... | 59.833333 | 117 | 0.888579 |
7955b7534b77ed24ea11ece5e8f83b1d9a02c41e | 136 | py | Python | 2375.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 6 | 2021-04-13T00:33:43.000Z | 2022-02-10T10:23:59.000Z | 2375.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | null | null | null | 2375.py | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 3 | 2021-03-23T18:42:24.000Z | 2022-02-10T10:24:07.000Z | b = int(input())
e = str(input()).split()
i = int(e[0])
j = int(e[1])
k = int(e[2])
print('S' if b <= i and b <= j and b <= k else 'N')
| 19.428571 | 51 | 0.485294 |
7955b766dc5c7df41c6e5b0f5f1789466d719190 | 1,585 | py | Python | awwwards/migrations/0004_auto_20210529_1156.py | Derrick-Nyongesa/Awwwards | 53c3e395490d31e7ac67079a838ff43561819bc9 | [
"MIT"
] | null | null | null | awwwards/migrations/0004_auto_20210529_1156.py | Derrick-Nyongesa/Awwwards | 53c3e395490d31e7ac67079a838ff43561819bc9 | [
"MIT"
] | null | null | null | awwwards/migrations/0004_auto_20210529_1156.py | Derrick-Nyongesa/Awwwards | 53c3e395490d31e7ac67079a838ff43561819bc9 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.2 on 2021-05-29 08:56
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awwwards', '0003_profile_name'),
]
operations = [
migrations.RemoveField(
model_name='rating',
... | 31.7 | 164 | 0.594322 |
7955b77d42246ac2e77e1341646d515cd6cee4c0 | 4,130 | py | Python | attpattern/save_att.py | jingtaozhan/bert-ranking-analysis | c17000abf4fb27ce631d403407522ff49586187e | [
"BSD-3-Clause"
] | 10 | 2020-07-19T10:25:16.000Z | 2022-03-07T06:40:22.000Z | attpattern/save_att.py | jingtaozhan/bert-ranking-analysis | c17000abf4fb27ce631d403407522ff49586187e | [
"BSD-3-Clause"
] | null | null | null | attpattern/save_att.py | jingtaozhan/bert-ranking-analysis | c17000abf4fb27ce631d403407522ff49586187e | [
"BSD-3-Clause"
] | 2 | 2021-01-22T06:06:18.000Z | 2022-03-07T06:40:21.000Z | import os
import glob
import torch
import random
import logging
import argparse
import zipfile
import numpy as np
from tqdm import tqdm, trange
from torch.utils.data import DataLoader
from transformers import (BertConfig, BertTokenizer)
from modeling import MonoBERT
from dataset import RelevantDataset, get_collate_fun... | 38.962264 | 98 | 0.665617 |
7955b8fd605952b0b2151d15a8c8a5e435529229 | 187 | py | Python | base/backend/help/models.py | PatrickKoss/lecture_ws_2021 | 9de2f9b9baa2762fef24ea5597b9082b6b740367 | [
"MIT"
] | null | null | null | base/backend/help/models.py | PatrickKoss/lecture_ws_2021 | 9de2f9b9baa2762fef24ea5597b9082b6b740367 | [
"MIT"
] | null | null | null | base/backend/help/models.py | PatrickKoss/lecture_ws_2021 | 9de2f9b9baa2762fef24ea5597b9082b6b740367 | [
"MIT"
] | null | null | null | """Models."""
from django.db import models
class Help(models.Model):
"""Help model."""
help_id = models.UUIDField(primary_key=True)
tip = models.CharField(max_length=300)
| 17 | 48 | 0.679144 |
7955b927e99019ce2a36adcc0774cd310897c037 | 69,043 | py | Python | pysph/sph/swe/basic.py | nauaneed/pysph | 9cb9a859934939307c65a25cbf73e4ecc83fea4a | [
"BSD-3-Clause"
] | 293 | 2017-05-26T14:41:15.000Z | 2022-03-28T09:56:16.000Z | pysph/sph/swe/basic.py | nauaneed/pysph | 9cb9a859934939307c65a25cbf73e4ecc83fea4a | [
"BSD-3-Clause"
] | 217 | 2017-05-29T15:48:14.000Z | 2022-03-24T16:16:55.000Z | pysph/sph/swe/basic.py | nauaneed/pysph | 9cb9a859934939307c65a25cbf73e4ecc83fea4a | [
"BSD-3-Clause"
] | 126 | 2017-05-25T19:17:32.000Z | 2022-03-25T11:23:24.000Z | """
Basic Equations for solving shallow water problems
#####################
"""
from pysph.sph.equation import Equation
from pysph.sph.integrator_step import IntegratorStep
from pysph.sph.integrator import Integrator
from compyle.api import declare
from pysph.sph.wc.linalg import gj_solve, augmented_matrix
from nump... | 33.861206 | 80 | 0.580073 |
7955b928a2082d8ee0021ea2e6d497f93fb53586 | 815 | py | Python | python/django/opendirectory_gui/manage.py | malvarezcastillo/opendirectory-indexer | 58409b00dc5527e60d74bee013631b38cc637023 | [
"MIT"
] | 15 | 2018-01-16T01:11:52.000Z | 2021-04-20T02:09:52.000Z | python/django/opendirectory_gui/manage.py | malvarezcastillo/opendirectory-indexer | 58409b00dc5527e60d74bee013631b38cc637023 | [
"MIT"
] | null | null | null | python/django/opendirectory_gui/manage.py | malvarezcastillo/opendirectory-indexer | 58409b00dc5527e60d74bee013631b38cc637023 | [
"MIT"
] | 6 | 2018-01-16T04:57:02.000Z | 2018-03-01T01:10:04.000Z | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opendirectory_gui.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure... | 35.434783 | 81 | 0.646626 |
7955b97ef3abe54abcaf9cf1f5dd5c8e37b0523e | 1,610 | py | Python | setup.py | Bimi05/bstats | a1c6ea51a306de25ab1df868bb099389d6188f34 | [
"MIT"
] | 6 | 2022-01-09T17:30:09.000Z | 2022-03-11T13:10:37.000Z | setup.py | Bimi05/bstats | a1c6ea51a306de25ab1df868bb099389d6188f34 | [
"MIT"
] | 4 | 2022-01-16T16:00:03.000Z | 2022-02-04T16:05:02.000Z | setup.py | Bimi05/bstats | a1c6ea51a306de25ab1df868bb099389d6188f34 | [
"MIT"
] | 2 | 2022-01-16T15:14:22.000Z | 2022-03-13T10:52:45.000Z | import re
from setuptools import setup
with open("bstats/__init__.py") as file:
version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", file.read(), re.MULTILINE).group(1)
with open("README.md") as file:
readme = file.read()
if version.endswith(("a", "b", "rc")):
version = version[:-1]
try:
... | 31.568627 | 123 | 0.612422 |
7955b9b341f2c9fe8e69a2544b899527b17c46f1 | 4,528 | py | Python | sdk/python/pulumi_azure_native/recoveryservices/get_replication_protected_item.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/recoveryservices/get_replication_protected_item.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/recoveryservices/get_replication_protected_item.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | 35.100775 | 162 | 0.647968 |
7955bb4c4712ebd839bc5363295fa6ec7928f058 | 3,111 | py | Python | tests/test_thehappyfoodie.py | chrisbubernak/recipe-scrapers | 1617a542f6e728552886aebd29f14e97feeb8f5c | [
"MIT"
] | 1 | 2021-02-07T17:48:09.000Z | 2021-02-07T17:48:09.000Z | tests/test_thehappyfoodie.py | chrisbubernak/recipe-scrapers | 1617a542f6e728552886aebd29f14e97feeb8f5c | [
"MIT"
] | null | null | null | tests/test_thehappyfoodie.py | chrisbubernak/recipe-scrapers | 1617a542f6e728552886aebd29f14e97feeb8f5c | [
"MIT"
] | null | null | null | from tests import ScraperTest
from recipe_scrapers.thehappyfoodie import TheHappyFoodie
class TestTheHappyFoodie(ScraperTest):
scraper_class = TheHappyFoodie
def test_host(self):
self.assertEqual("thehappyfoodie.co.uk", self.harvester_class.host())
def test_title(self):
self.assertEqua... | 66.191489 | 1,665 | 0.694953 |
7955bbcf7716dc36d7c3de6508f5e61441f887d5 | 28 | py | Python | tapiriik/services/MapMyFitness/__init__.py | neilboyd/tapiriik | 268453aa7fee081bd188c90f9872a1786d85e20d | [
"Apache-2.0"
] | 5 | 2020-12-27T15:37:08.000Z | 2021-10-05T14:54:32.000Z | tapiriik/services/MapMyFitness/__init__.py | neilboyd/tapiriik | 268453aa7fee081bd188c90f9872a1786d85e20d | [
"Apache-2.0"
] | 46 | 2020-11-16T06:04:19.000Z | 2021-02-07T16:21:02.000Z | tapiriik/services/MapMyFitness/__init__.py | neilboyd/tapiriik | 268453aa7fee081bd188c90f9872a1786d85e20d | [
"Apache-2.0"
] | null | null | null | from .mapmyfitness import *
| 14 | 27 | 0.785714 |
7955bc2ad3dd980eed29ec2f3c52eeb474052651 | 194 | py | Python | test/test-assign/pdf-correct/student/tests/q8.py | drjbarker/otter-grader | 9e89e1675b09cf7889995b5f1bc8e1648bf6c309 | [
"BSD-3-Clause"
] | null | null | null | test/test-assign/pdf-correct/student/tests/q8.py | drjbarker/otter-grader | 9e89e1675b09cf7889995b5f1bc8e1648bf6c309 | [
"BSD-3-Clause"
] | null | null | null | test/test-assign/pdf-correct/student/tests/q8.py | drjbarker/otter-grader | 9e89e1675b09cf7889995b5f1bc8e1648bf6c309 | [
"BSD-3-Clause"
] | null | null | null | test = {'name': 'q8', 'points': 1, 'suites': [{'cases': [{'code': '>>> len(z) == 10\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| 97 | 193 | 0.510309 |
7955bd7b459a2aa675db2175f00457fbca812148 | 1,686 | py | Python | DNA_to_GenBank.py | SynBioHub/Snapgene-submit-plugin | 82cfaa7e7b3dfb59d9a120a6668fbad1c0799afd | [
"BSD-2-Clause"
] | 1 | 2021-05-30T17:35:17.000Z | 2021-05-30T17:35:17.000Z | DNA_to_GenBank.py | SynBioHub/Snapgene-submit-plugin | 82cfaa7e7b3dfb59d9a120a6668fbad1c0799afd | [
"BSD-2-Clause"
] | 1 | 2021-11-08T04:36:11.000Z | 2021-11-08T04:36:11.000Z | DNA_to_GenBank.py | SynBioHub/Plugin-Submit-Snapgene | 82cfaa7e7b3dfb59d9a120a6668fbad1c0799afd | [
"BSD-2-Clause"
] | 1 | 2020-01-27T23:37:37.000Z | 2020-01-27T23:37:37.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 22 18:46:41 2019
@author: JVM
"""
import requests, tempfile, os
#converter api help http://synbiodex.github.io/SBOL-Validator/?javascript#introduction
def DNA_to_GenBank(filename, partname):
newfile_url = "http://song.ece.utah.edu/examples/pages/acceptNewFile.php... | 31.222222 | 86 | 0.531435 |
7955beed9dfdfb5a03ee6df6fe7eb287f0a13546 | 1,437 | py | Python | task10/CyberSausage.py | p0l0satik/pyprak | 3f1f11bb622476e225db09e3dcc9d9ee6397b654 | [
"Apache-2.0"
] | null | null | null | task10/CyberSausage.py | p0l0satik/pyprak | 3f1f11bb622476e225db09e3dcc9d9ee6397b654 | [
"Apache-2.0"
] | null | null | null | task10/CyberSausage.py | p0l0satik/pyprak | 3f1f11bb622476e225db09e3dcc9d9ee6397b654 | [
"Apache-2.0"
] | null | null | null | class sausage():
## OK NOW I AM HUNGRY!!!
def __init__(self, mince = "pork!", volume = 1):
self.mince = mince
self.size = eval(str(volume)) * 12
if len(mince) > 12:
self.mince_str = mince[:12]
else:
self.mince_str = mince * (12 // len(mince)) + mince[:12 %... | 30.574468 | 81 | 0.450244 |
7955c0cc21a6dd8327891be12e664fa77fae9b02 | 1,375 | py | Python | azure-servicefabric/azure/servicefabric/models/partition_quorum_loss_progress.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | null | null | null | azure-servicefabric/azure/servicefabric/models/partition_quorum_loss_progress.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | null | null | null | azure-servicefabric/azure/servicefabric/models/partition_quorum_loss_progress.py | v-Ajnava/azure-sdk-for-python | a1f6f80eb5869c5b710e8bfb66146546697e2a6f | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 39.285714 | 105 | 0.647273 |
7955c1f0ca4249295d649fb0ad6a3b43a60f7692 | 3,774 | py | Python | docs/source/exts/youtube.py | vivamoto/usp-hpc | 6fbb6ff7beef5761019388bb4545a1a750525bb5 | [
"MIT"
] | null | null | null | docs/source/exts/youtube.py | vivamoto/usp-hpc | 6fbb6ff7beef5761019388bb4545a1a750525bb5 | [
"MIT"
] | null | null | null | docs/source/exts/youtube.py | vivamoto/usp-hpc | 6fbb6ff7beef5761019388bb4545a1a750525bb5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import re
from docutils import nodes
from docutils.parsers.rst import directives, Directive
CONTROL_HEIGHT = 30
def get_size(d, key):
if key not in d:
return None
m = re.match("(\d+)(|%|px)$", d[key])
if not m:
... | 29.255814 | 118 | 0.557764 |
7955c2a6f0bb173830a98a034f868152b56cd9e6 | 855 | py | Python | setup.py | atlantpayments/paymentpage-sdk-python | 0881ef5e9bb42206b8360a7d7e43c10cfe0ed953 | [
"MIT"
] | null | null | null | setup.py | atlantpayments/paymentpage-sdk-python | 0881ef5e9bb42206b8360a7d7e43c10cfe0ed953 | [
"MIT"
] | null | null | null | setup.py | atlantpayments/paymentpage-sdk-python | 0881ef5e9bb42206b8360a7d7e43c10cfe0ed953 | [
"MIT"
] | null | null | null | import pathlib
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
setup(
name='atlantpayments-sdk',
version='1.0.0',
url='https://github.com/atlantpayments/paymentpage-sdk-python',
license='MIT',
long_description=README,
l... | 32.884615 | 71 | 0.639766 |
7955c3d17717cf9b887073ce7af0fb970dc64fc6 | 3,694 | py | Python | src/relstorage/adapters/sql/tests/test_query.py | lungj/relstorage | e18394b0197f6b70708037f36defbd3fe3ee5137 | [
"ZPL-2.1"
] | null | null | null | src/relstorage/adapters/sql/tests/test_query.py | lungj/relstorage | e18394b0197f6b70708037f36defbd3fe3ee5137 | [
"ZPL-2.1"
] | null | null | null | src/relstorage/adapters/sql/tests/test_query.py | lungj/relstorage | e18394b0197f6b70708037f36defbd3fe3ee5137 | [
"ZPL-2.1"
] | null | null | null | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2019 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this ... | 28.415385 | 78 | 0.554413 |
7955c52cb0e35426c5a2a6989c117b82d8000e4e | 531 | py | Python | gwpycore/gw_gui/gw_gui_misc_controls.py | gruntwurk/gwpycore | 24f353d7026f9f682da741cddd4714ac3cd807b2 | [
"BSD-3-Clause"
] | null | null | null | gwpycore/gw_gui/gw_gui_misc_controls.py | gruntwurk/gwpycore | 24f353d7026f9f682da741cddd4714ac3cd807b2 | [
"BSD-3-Clause"
] | null | null | null | gwpycore/gw_gui/gw_gui_misc_controls.py | gruntwurk/gwpycore | 24f353d7026f9f682da741cddd4714ac3cd807b2 | [
"BSD-3-Clause"
] | 2 | 2020-10-06T00:13:18.000Z | 2021-07-16T23:22:10.000Z | from PyQt5.QtWidgets import QAbstractButton, QButtonGroup
def find_button_in_group_by_text(button_group: QButtonGroup, text) -> QAbstractButton:
for button in button_group.buttons():
if button.text() == text:
return button
return None
def clear_button_group(button_group: QButtonGroup):
... | 31.235294 | 86 | 0.751412 |
7955c5f3a01cadd1abadb354695d9dbf88980dc0 | 761 | py | Python | checkov/terraform/checks/resource/azure/AzureSearchPublicNetworkAccessDisabled.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 4,013 | 2019-12-09T13:16:54.000Z | 2022-03-31T14:31:01.000Z | checkov/terraform/checks/resource/azure/AzureSearchPublicNetworkAccessDisabled.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 1,258 | 2019-12-17T09:55:51.000Z | 2022-03-31T19:17:17.000Z | checkov/terraform/checks/resource/azure/AzureSearchPublicNetworkAccessDisabled.py | jamesholland-uk/checkov | d73fd4bd7096d48ab3434a92a177bcc55605460a | [
"Apache-2.0"
] | 638 | 2019-12-19T08:57:38.000Z | 2022-03-30T21:38:37.000Z | from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
class AzureSearchPublicNetworkAccessDisabled(BaseResourceValueCheck):
def __init__(self):
name = "Ensure that Azure Cognitive Search disables public networ... | 36.238095 | 106 | 0.773982 |
7955c613ec931772e609db70cd48f9968b123e93 | 2,484 | py | Python | test_libs/pyspec/eth2spec/test/helpers/phase1/shard_block.py | NethermindEth/eth2.0-specs | f1bf0bf85b0208f784aa52c31d5adda744090798 | [
"CC0-1.0"
] | null | null | null | test_libs/pyspec/eth2spec/test/helpers/phase1/shard_block.py | NethermindEth/eth2.0-specs | f1bf0bf85b0208f784aa52c31d5adda744090798 | [
"CC0-1.0"
] | null | null | null | test_libs/pyspec/eth2spec/test/helpers/phase1/shard_block.py | NethermindEth/eth2.0-specs | f1bf0bf85b0208f784aa52c31d5adda744090798 | [
"CC0-1.0"
] | 1 | 2020-07-05T22:12:40.000Z | 2020-07-05T22:12:40.000Z | from copy import deepcopy
from eth2spec.test.helpers.keys import privkeys
from eth2spec.utils.bls import (
bls_sign,
only_with_bls,
)
from eth2spec.utils.ssz.ssz_impl import (
signing_root,
)
from .attestations import (
sign_shard_attestation,
)
@only_with_bls()
def sign_shard_block(spec, beacon_sta... | 29.927711 | 99 | 0.667069 |
7955c6c3ca0ec375153bddf47c91139d0f55e5b1 | 2,168 | py | Python | src/bin/shipyard_client/shipyard_client/cli/help/output.py | nishant9620/airship-shipyard | 08957916056f08ce99acd1837511c106ce74dd2f | [
"Apache-2.0"
] | null | null | null | src/bin/shipyard_client/shipyard_client/cli/help/output.py | nishant9620/airship-shipyard | 08957916056f08ce99acd1837511c106ce74dd2f | [
"Apache-2.0"
] | null | null | null | src/bin/shipyard_client/shipyard_client/cli/help/output.py | nishant9620/airship-shipyard | 08957916056f08ce99acd1837511c106ce74dd2f | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 AT&T Intellectual Property. All other 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... | 30.535211 | 78 | 0.73155 |
7955c7af39857a228ad241e8f11d642b6aeacb33 | 1,216 | py | Python | mathgenerator/funcs/algebra/linear_equations.py | Sankari-K/mathgenerator | 712c74fbe34fe594c4c0f7e3b3057b01d85112ba | [
"MIT"
] | 40 | 2020-11-17T19:45:20.000Z | 2022-03-22T18:16:43.000Z | mathgenerator/funcs/algebra/linear_equations.py | Sankari-K/mathgenerator | 712c74fbe34fe594c4c0f7e3b3057b01d85112ba | [
"MIT"
] | 209 | 2020-10-14T15:32:08.000Z | 2020-11-03T19:08:19.000Z | mathgenerator/funcs/algebra/linear_equations.py | Sankari-K/mathgenerator | 712c74fbe34fe594c4c0f7e3b3057b01d85112ba | [
"MIT"
] | 179 | 2020-10-14T15:36:55.000Z | 2020-10-29T19:26:16.000Z | from .__init__ import *
def gen_func(n=2, varRange=20, coeffRange=20, format='string'):
if n > 10:
print("[!] n cannot be greater than 10")
return None, None
vars = ['x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g'][:n]
soln = [random.randint(-varRange, varRange) for i in range(n)]
pr... | 29.658537 | 75 | 0.512336 |
7955c88ed93810155ec180970da859a7eae5b2e4 | 9,438 | py | Python | common/params.py | ConservativeEconomist/openpilot | ff1598f88a6f71dddf4e8c51f69f237b29c938d2 | [
"MIT"
] | 1 | 2018-04-22T07:00:49.000Z | 2018-04-22T07:00:49.000Z | common/params.py | cshr/openpilot | 9a9ff839a9b70cb2601d7696af743f5652395389 | [
"MIT"
] | null | null | null | common/params.py | cshr/openpilot | 9a9ff839a9b70cb2601d7696af743f5652395389 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""ROS has a parameter server, we have files.
The parameter store is a persistent key value store, implemented as a directory with a writer lock.
On Android, we store params under params_dir = /data/params. The writer lock is a file
"<params_dir>/.lock" taken using flock(), and data is stored in ... | 28.173134 | 99 | 0.66317 |
7955c8c361c84e81ab5bba216ecad46a25aca2e7 | 382 | py | Python | src/Hyperactive/hyperactive/optimizers/monte_carlo/__init__.py | skn123/LDWPSO-CNN | 7f05eb1defee2e968e5b3bed53f2b444b2b48fdb | [
"MIT"
] | 6 | 2020-01-24T16:15:34.000Z | 2022-03-21T13:53:32.000Z | src/Hyperactive/hyperactive/optimizers/monte_carlo/__init__.py | skn123/LDWPSO-CNN | 7f05eb1defee2e968e5b3bed53f2b444b2b48fdb | [
"MIT"
] | 1 | 2020-06-15T04:19:32.000Z | 2020-06-15T04:19:32.000Z | src/Hyperactive/hyperactive/optimizers/monte_carlo/__init__.py | skn123/LDWPSO-CNN | 7f05eb1defee2e968e5b3bed53f2b444b2b48fdb | [
"MIT"
] | 3 | 2021-03-29T17:11:27.000Z | 2021-05-17T13:33:10.000Z | # Author: Simon Blanke
# Email: simon.blanke@yahoo.com
# License: MIT License
from .simulated_annealing import SimulatedAnnealingOptimizer
from .stochastic_tunneling import StochasticTunnelingOptimizer
from .parallel_tempering import ParallelTemperingOptimizer
__all__ = [
"SimulatedAnnealingOptimizer",
"Stoch... | 27.285714 | 62 | 0.82199 |
7955c8df596a984aac3529a22d1a5a5d801bf767 | 774 | py | Python | day-06/part-2/chloe.py | lypnol/adventofcode-2017 | 03ced3df3eb80e5c7965c4120e3932919067cb15 | [
"MIT"
] | 16 | 2017-12-02T11:56:25.000Z | 2018-02-10T15:09:23.000Z | day-06/part-2/chloe.py | lypnol/adventofcode-2017 | 03ced3df3eb80e5c7965c4120e3932919067cb15 | [
"MIT"
] | 19 | 2017-12-01T07:54:22.000Z | 2017-12-19T17:41:02.000Z | day-06/part-2/chloe.py | lypnol/adventofcode-2017 | 03ced3df3eb80e5c7965c4120e3932919067cb15 | [
"MIT"
] | 4 | 2017-12-04T23:58:12.000Z | 2018-02-01T08:53:16.000Z | from submission import Submission
class ChloeSubmission(Submission):
def run(self, s):
input = list(map(int,s.split('\t')))
liste_deja_vu = [input]
deja_vu = False
while not deja_vu:
input = self.allocation(input)
deja_vu = input in liste_deja_vu
liste_deja_vu.append(input)
indices = [i for i, x ... | 24.967742 | 66 | 0.698966 |
7955c8e350c17fa5001c7a212d5c91c7c283ff5c | 631 | py | Python | manage.py | AtriSaxena/HospitalsAPI | 1336bafceb197628c776b860bd16ab6064a3849b | [
"Apache-2.0"
] | 2 | 2020-05-20T10:15:49.000Z | 2021-05-06T10:19:02.000Z | manage.py | AtriSaxena/HospitalsAPI | 1336bafceb197628c776b860bd16ab6064a3849b | [
"Apache-2.0"
] | 5 | 2021-03-19T03:24:15.000Z | 2021-09-22T19:01:59.000Z | manage.py | AtriSaxena/HospitalsAPI | 1336bafceb197628c776b860bd16ab6064a3849b | [
"Apache-2.0"
] | 1 | 2021-05-06T10:19:03.000Z | 2021-05-06T10:19:03.000Z | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'HospitalAPI.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | 28.681818 | 75 | 0.684628 |
7955c9c5d7ab1074f2bd67fc771ab059d0d76f2d | 509 | bzl | Python | glfw/repository.bzl | dldt/third_party.bzl | 8c5431c3c48ad4c8761f0daee004d94d1f165eb2 | [
"MIT"
] | 1 | 2021-12-27T05:40:05.000Z | 2021-12-27T05:40:05.000Z | glfw/repository.bzl | tarcila/third_party.bzl | 8c5431c3c48ad4c8761f0daee004d94d1f165eb2 | [
"MIT"
] | null | null | null | glfw/repository.bzl | tarcila/third_party.bzl | 8c5431c3c48ad4c8761f0daee004d94d1f165eb2 | [
"MIT"
] | 1 | 2021-07-22T07:16:50.000Z | 2021-07-22T07:16:50.000Z | load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def glfw_repository():
maybe(
http_archive,
name = "glfw",
urls = [
"https://github.com/glfw/glfw/releases/download/3.3.6/glfw-3.3.6.zip",
... | 33.933333 | 84 | 0.636542 |
7955caf0722c623102ee8ce749e23bb9de7fff64 | 1,434 | py | Python | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp/models/stock_picking.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | 1 | 2019-12-19T01:53:13.000Z | 2019-12-19T01:53:13.000Z | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp/models/stock_picking.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp/models/stock_picking.py | gtfarng/Odoo_migrade | 9cc28fae4c379e407645248a29d22139925eafe7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class StockPickingType(models.Model):
_inherit = 'stock.picking.type'
code = fields.Selection(selection_add=[('mrp_operation', 'Manufacturing Operation')])
count_mo_todo = f... | 47.8 | 125 | 0.622734 |
7955cb66cf06559e0cb667a24c0079765d2762a4 | 214 | py | Python | iwrok_test/wsgi.py | Mohamed-Kaizen/IWork-test | 1212a06907fed7a6fc216744768f74ad9642c420 | [
"MIT"
] | null | null | null | iwrok_test/wsgi.py | Mohamed-Kaizen/IWork-test | 1212a06907fed7a6fc216744768f74ad9642c420 | [
"MIT"
] | 4 | 2021-04-08T20:14:49.000Z | 2021-09-22T19:45:35.000Z | iwrok_test/wsgi.py | Mohamed-Kaizen/IWork-test | 1212a06907fed7a6fc216744768f74ad9642c420 | [
"MIT"
] | 1 | 2020-12-15T20:50:58.000Z | 2020-12-15T20:50:58.000Z | """WSGI config for IWrok Test project."""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "iwrok_test.settings")
application = get_wsgi_application()
| 21.4 | 70 | 0.799065 |
7955cc9b6f5e1918e8f16632b4a74c78b59edd89 | 12,319 | py | Python | docs/conf.py | renovate-bot/python-automl | 5c1a9a383680bc5b89f514aa9a3aef47af9feac2 | [
"Apache-2.0"
] | 68 | 2020-01-31T18:13:23.000Z | 2022-03-28T14:57:12.000Z | docs/conf.py | renovate-bot/python-automl | 5c1a9a383680bc5b89f514aa9a3aef47af9feac2 | [
"Apache-2.0"
] | 184 | 2020-01-31T17:34:00.000Z | 2022-03-30T22:42:11.000Z | docs/conf.py | renovate-bot/python-automl | 5c1a9a383680bc5b89f514aa9a3aef47af9feac2 | [
"Apache-2.0"
] | 29 | 2020-01-31T19:32:55.000Z | 2022-01-29T08:07:34.000Z | # -*- coding: utf-8 -*-
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 32.763298 | 88 | 0.706794 |
7955cd296081f315675ca8d4583d3561cde187ea | 1,063 | py | Python | openstack_dashboard/dashboards/project/database_backups/urls.py | shhui/horizon | fd8cf6e31c07b147289bfb86c90133599eb2906e | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/project/database_backups/urls.py | shhui/horizon | fd8cf6e31c07b147289bfb86c90133599eb2906e | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/project/database_backups/urls.py | shhui/horizon | fd8cf6e31c07b147289bfb86c90133599eb2906e | [
"Apache-2.0"
] | 4 | 2015-05-05T08:17:28.000Z | 2020-02-05T10:47:06.000Z | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 Rackspace Hosting
#
# 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.... | 36.655172 | 78 | 0.709313 |
7955cdf50084f604f7550226cfe19cb4dda4e949 | 14,440 | py | Python | share/migrations/0039_subject_taxonomy_a.py | CenterForOpenScience/SHARE | c7715af2881f6fa23197d4e7c381d90169a90ed1 | [
"Apache-2.0"
] | 87 | 2015-01-06T18:24:45.000Z | 2021-08-08T07:59:40.000Z | share/migrations/0039_subject_taxonomy_a.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 442 | 2015-01-01T19:16:01.000Z | 2022-03-30T21:10:26.000Z | share/migrations/0039_subject_taxonomy_a.py | fortress-biotech/SHARE | 9c5a05dd831447949fa6253afec5225ff8ab5d4f | [
"Apache-2.0"
] | 67 | 2015-03-10T16:32:58.000Z | 2021-11-12T16:33:41.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-02 12:55
from __future__ import unicode_literals
import db.deletion
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import share.models.fields
class Migration(migrat... | 56.40625 | 864 | 0.645568 |
7955ce0c06c1f09df2e7f818c78472e06608f9f0 | 630 | py | Python | string/1540_can_convert_string_in_k_moves/1540_can_convert_string_in_k_moves.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 6 | 2019-09-16T01:50:44.000Z | 2020-09-17T08:52:25.000Z | string/1540_can_convert_string_in_k_moves/1540_can_convert_string_in_k_moves.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | null | null | null | string/1540_can_convert_string_in_k_moves/1540_can_convert_string_in_k_moves.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 4 | 2020-02-07T12:43:16.000Z | 2021-04-11T06:38:55.000Z | class Solution:
def canConvertString(self, s: str, t: str, k: int) -> bool:
if len(s) != len(t):
return False
counts =[0] * 26
for si, ti in zip(s, t):
difference = ord(ti) - ord(si)
if difference < 0:
difference += 26
... | 25.2 | 63 | 0.48254 |
7955cecba0458d8b37ad7084dbdd21d397e9e423 | 22,322 | py | Python | tests/components/light/test_hue.py | andrewdolphin/home-assistant | 15b48ca2aa739d9b5c11e7337addd2437f7ef34f | [
"Apache-2.0"
] | null | null | null | tests/components/light/test_hue.py | andrewdolphin/home-assistant | 15b48ca2aa739d9b5c11e7337addd2437f7ef34f | [
"Apache-2.0"
] | null | null | null | tests/components/light/test_hue.py | andrewdolphin/home-assistant | 15b48ca2aa739d9b5c11e7337addd2437f7ef34f | [
"Apache-2.0"
] | null | null | null | """Philips Hue lights platform tests."""
import logging
import unittest
import unittest.mock as mock
from unittest.mock import call, MagicMock, patch
from homeassistant.components import hue
import homeassistant.components.light.hue as hue_light
from tests.common import get_test_home_assistant, MockDependency
_LOGG... | 41.184502 | 79 | 0.618986 |
7955cf6935e7cf2ff415457cd8f6ee120151552e | 258 | py | Python | cats/cats_simus/writefield.py | brunellacarlomagno/CATS | 2fb85366dbca81736d75a982156674523632414f | [
"MIT"
] | null | null | null | cats/cats_simus/writefield.py | brunellacarlomagno/CATS | 2fb85366dbca81736d75a982156674523632414f | [
"MIT"
] | null | null | null | cats/cats_simus/writefield.py | brunellacarlomagno/CATS | 2fb85366dbca81736d75a982156674523632414f | [
"MIT"
] | null | null | null | from astropy.io import fits
def writefield(path, filename, field):
fits.writeto(path + filename + '_r.fits', field.real, header=None, overwrite=True)
fits.writeto(path + filename + '_i.fits', field.imag, header=None, overwrite=True)
return
| 21.5 | 86 | 0.70155 |
7955d1406303eddfcaece6455945e01dcc8fa058 | 3,131 | py | Python | recipes/uriparser/all/conanfile.py | xqp/conan-center-index | bf66f3c448aa42e76c9ba5f2d4380c4ff2fd8fd5 | [
"MIT"
] | null | null | null | recipes/uriparser/all/conanfile.py | xqp/conan-center-index | bf66f3c448aa42e76c9ba5f2d4380c4ff2fd8fd5 | [
"MIT"
] | 4 | 2020-03-04T20:19:54.000Z | 2020-03-10T13:56:28.000Z | recipes/uriparser/all/conanfile.py | xqp/conan-center-index | bf66f3c448aa42e76c9ba5f2d4380c4ff2fd8fd5 | [
"MIT"
] | null | null | null | from conans import CMake, ConanFile, tools
import os
class UriparserConan(ConanFile):
name = "uriparser"
description = "Strictly RFC 3986 compliant URI parsing and handling library written in C89"
topics = ("conan", "uriparser", "URI", "parser")
url = "https://github.com/conan-io/conan-center-index"
... | 35.988506 | 108 | 0.625998 |
7955d1e65e1a6c5e1aa6445fc6ceee79867072f5 | 1,090 | py | Python | metanime/bilibili.py | ClumsyLee/metanime | 3534b3c7a980b7a879497d9b1de7040b16b5c439 | [
"MIT"
] | 2 | 2019-02-07T07:24:11.000Z | 2019-04-22T17:21:25.000Z | metanime/bilibili.py | ClumsyLee/metanime | 3534b3c7a980b7a879497d9b1de7040b16b5c439 | [
"MIT"
] | null | null | null | metanime/bilibili.py | ClumsyLee/metanime | 3534b3c7a980b7a879497d9b1de7040b16b5c439 | [
"MIT"
] | null | null | null | from .site import main, Site
class Bilibili(Site):
"""bilibili.com"""
BASE_URL = 'https://www.bilibili.com'
API_BASE_URL = 'https://bangumi.bilibili.com/view/web_api'
NAMES = {
'en': 'Bilibili',
'ja-jp': 'ビリビリ',
'zh-cn': '哔哩哔哩',
}
MIN_RATING = 2
MAX_RATING = 10
... | 25.952381 | 67 | 0.546789 |
7955d23105e442936f0eccf144d4e90bf7e39b63 | 8,214 | gyp | Python | Github-Arduino/libraries/ideawu_RTC/multimedia/webrtc/common_audio/common_audio.gyp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | Github-Arduino/libraries/ideawu_RTC/multimedia/webrtc/common_audio/common_audio.gyp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | Github-Arduino/libraries/ideawu_RTC/multimedia/webrtc/common_audio/common_audio.gyp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project au... | 36.345133 | 98 | 0.583029 |
7955d3baeb79a5ea00c72f1a5537bba6c35b8e20 | 8,036 | py | Python | src/sqlfluff/rules/L010.py | quannh-uet/sqlfluff | 982aef19ab537e256ddc7e6fb2ac095e30959e4b | [
"MIT"
] | null | null | null | src/sqlfluff/rules/L010.py | quannh-uet/sqlfluff | 982aef19ab537e256ddc7e6fb2ac095e30959e4b | [
"MIT"
] | 1 | 2021-09-15T18:20:39.000Z | 2021-09-15T18:20:39.000Z | src/sqlfluff/rules/L010.py | tunetheweb/sqlfluff | 9504fc28af3142f3e4915b0adf5e31746df06e43 | [
"MIT"
] | null | null | null | """Implementation of Rule L010."""
import regex
from typing import Tuple, List
from sqlfluff.core.rules.base import BaseRule, LintResult, LintFix, RuleContext
from sqlfluff.core.rules.config_info import get_config_info
from sqlfluff.core.rules.doc_decorators import (
document_fix_compatible,
document_configura... | 38.449761 | 93 | 0.589348 |
7955d4bc78df0cc5152ee0c23449733511ce74b6 | 4,661 | py | Python | launcher/autorun.py | aliyun/oss-ftp | 1670b67b6ce726314ca0081841567934435128d4 | [
"MIT"
] | 69 | 2015-12-28T07:02:51.000Z | 2022-03-31T13:36:42.000Z | launcher/autorun.py | aliyun/oss-ftp | 1670b67b6ce726314ca0081841567934435128d4 | [
"MIT"
] | 23 | 2016-03-04T10:43:24.000Z | 2021-03-17T09:58:19.000Z | launcher/autorun.py | aliyun/oss-ftp | 1670b67b6ce726314ca0081841567934435128d4 | [
"MIT"
] | 24 | 2016-02-29T11:45:47.000Z | 2021-12-24T08:41:37.000Z | #!/usr/bin/env python
"""A simple crossplatform autostart helper"""
from __future__ import with_statement
import os
import sys
import launcher_log
current_path = os.path.dirname(os.path.abspath(__file__))
root_path = os.path.abspath( os.path.join(current_path, os.pardir))
if sys.platform == 'win32':
is_py2 = (sy... | 29.687898 | 115 | 0.620253 |
7955d53070d2ec297ad76b40bb2c5c2828870132 | 710 | py | Python | covsirphy/util/file.py | rebeccadavidsson/covid19-sir | ca7a408c5fcf87e4857edd14a9276cae0b6737cf | [
"Apache-2.0"
] | null | null | null | covsirphy/util/file.py | rebeccadavidsson/covid19-sir | ca7a408c5fcf87e4857edd14a9276cae0b6737cf | [
"Apache-2.0"
] | 100 | 2021-02-06T17:50:15.000Z | 2022-03-31T20:30:49.000Z | covsirphy/util/file.py | ardhani31/Covid19-SIRV | 813bc66f668a3d2945dc97474ea1149bbc6e40c2 | [
"Apache-2.0"
] | 1 | 2021-09-18T12:36:11.000Z | 2021-09-18T12:36:11.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pathlib import Path
import pandas as pd
def save_dataframe(df, filename, index=True):
"""
Save dataframe as a CSV file.
Args:
df (pd.DataFrame): the dataframe
filename (str or None): CSV filename
index (bool): if True, include in... | 25.357143 | 84 | 0.616901 |
7955d5f394e100d05ff7152909d3344689516032 | 1,311 | py | Python | dis_snek/utils/attr_utils.py | Toricane/Dis-Snek | e70710ead89ffb259b5c00ef7dfd896fbd0f777f | [
"MIT"
] | null | null | null | dis_snek/utils/attr_utils.py | Toricane/Dis-Snek | e70710ead89ffb259b5c00ef7dfd896fbd0f777f | [
"MIT"
] | null | null | null | dis_snek/utils/attr_utils.py | Toricane/Dis-Snek | e70710ead89ffb259b5c00ef7dfd896fbd0f777f | [
"MIT"
] | null | null | null | import logging
from functools import partial
from typing import Any, Dict
import attr
from dis_snek.const import logger_name, MISSING
log = logging.getLogger(logger_name)
class_defaults = dict(
eq=False,
order=False,
hash=False,
slots=True,
kw_only=True,
on_setattr=[attr.setters.convert, att... | 24.277778 | 118 | 0.67582 |
7955d69163b928e9358407768e3cf1287c6f0343 | 2,962 | py | Python | src/dev/serial/Uart.py | He-Liu-ooo/Computer-Architecture-THUEE-2022-spring- | 9d36aaacbc7eea357608524113bec97bae2ea229 | [
"BSD-3-Clause"
] | 4 | 2020-12-11T18:48:36.000Z | 2021-11-08T20:11:51.000Z | src/dev/serial/Uart.py | He-Liu-ooo/Computer-Architecture-THUEE-2022-spring- | 9d36aaacbc7eea357608524113bec97bae2ea229 | [
"BSD-3-Clause"
] | 3 | 2021-03-26T20:33:59.000Z | 2022-01-24T22:54:03.000Z | src/dev/serial/Uart.py | He-Liu-ooo/Computer-Architecture-THUEE-2022-spring- | 9d36aaacbc7eea357608524113bec97bae2ea229 | [
"BSD-3-Clause"
] | 3 | 2021-03-27T16:36:19.000Z | 2022-03-28T18:32:57.000Z | # Copyright (c) 2018 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | 47.015873 | 77 | 0.765699 |
7955d6d9ce65e73a77686af068525ec9fdfa32eb | 662 | py | Python | library/migrations/0006_auto_20181121_1718.py | kairon-v/tppe-ws | 626d298b99c5ac0f6e9b8f3b1bbfa8ed238db16c | [
"MIT"
] | null | null | null | library/migrations/0006_auto_20181121_1718.py | kairon-v/tppe-ws | 626d298b99c5ac0f6e9b8f3b1bbfa8ed238db16c | [
"MIT"
] | null | null | null | library/migrations/0006_auto_20181121_1718.py | kairon-v/tppe-ws | 626d298b99c5ac0f6e9b8f3b1bbfa8ed238db16c | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2018-11-21 17:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('library', '0005_bookloan'),
]
operations = [
migrations.AlterField(
model_name='bookloan',
... | 26.48 | 100 | 0.614804 |
7955d79c3ca949ba63040b06f82d1d7e28a265b1 | 3,436 | py | Python | Sthima/settings.py | Diorgeles/Sthima | d83b545d9a65a8f792fc8fe39a12ee1a4e5b85c4 | [
"CC0-1.0"
] | null | null | null | Sthima/settings.py | Diorgeles/Sthima | d83b545d9a65a8f792fc8fe39a12ee1a4e5b85c4 | [
"CC0-1.0"
] | null | null | null | Sthima/settings.py | Diorgeles/Sthima | d83b545d9a65a8f792fc8fe39a12ee1a4e5b85c4 | [
"CC0-1.0"
] | null | null | null | """
Django settings for Sthima project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | 26.229008 | 91 | 0.705471 |
7955d869bfcae25def3963a5c4f5140f961beee9 | 38,899 | py | Python | nova/api/openstack/__init__.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/api/openstack/__init__.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/api/openstack/__init__.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2010 United States Government as represented by the'
nl|'\n'
comment|'# Administrator of the National Aeronautics and Space Administration.'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); ... | 13.473848 | 186 | 0.60855 |
7955d87e376beba023d3f591341097b0897a100d | 5,469 | py | Python | submodules/torchskeleton/bin/benchmark/efficientnet_throughput_dist.py | khy0809/WeightNet | cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e | [
"MIT"
] | null | null | null | submodules/torchskeleton/bin/benchmark/efficientnet_throughput_dist.py | khy0809/WeightNet | cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e | [
"MIT"
] | null | null | null | submodules/torchskeleton/bin/benchmark/efficientnet_throughput_dist.py | khy0809/WeightNet | cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import logging
import torch
import torch.distributed as dist
base_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(base_dir)
import skeleton
import efficientnet
LOGGER = logging.getLogger(__name__)
def parse_args():
... | 39.345324 | 189 | 0.677638 |
7955da956de5018021d2fdadca197c8efeb6db42 | 2,148 | py | Python | tests/simplelogging.py | chadrosenquist/logging-test-case | abad36fb3da3ccdb290d2b00defeadb9465d9891 | [
"MIT"
] | 4 | 2017-03-05T07:17:51.000Z | 2020-05-20T10:32:48.000Z | tests/simplelogging.py | chadrosenquist/logging-test-case | abad36fb3da3ccdb290d2b00defeadb9465d9891 | [
"MIT"
] | 4 | 2018-04-16T03:14:42.000Z | 2018-12-02T22:16:00.000Z | tests/simplelogging.py | chadrosenquist/logging-test-case | abad36fb3da3ccdb290d2b00defeadb9465d9891 | [
"MIT"
] | 2 | 2018-04-16T01:57:10.000Z | 2020-05-20T10:39:31.000Z | """
MIT License
Copyright (c) 2016 Chad Rosenquist
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | 29.424658 | 78 | 0.712756 |
7955dacbb5e3b44880c5a65d09443d366bcedd71 | 5,575 | py | Python | tests/test_modules/test_pandablocks/test_pandabussespart.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | tests/test_modules/test_pandablocks/test_pandabussespart.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | tests/test_modules/test_pandablocks/test_pandabussespart.py | dinojugosloven/pymalcolm | 0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a | [
"Apache-2.0"
] | null | null | null | from collections import OrderedDict
import unittest
from mock import call, MagicMock
from malcolm.core import TimeStamp
from malcolm.modules.pandablocks.parts.pandabussespart import PandABussesPart
from malcolm.modules.pandablocks.util import PositionCapture, BitsTable, \
PositionsTable
class PandABussesPartTest... | 42.234848 | 79 | 0.554978 |
7955db8dfd6a9af1c342558e14bea48beb38eecb | 3,468 | py | Python | lib/modules/powershell/trollsploit/message.py | 1r-f0rhun73r/Empire | 6e2bb66e39c2c02f9a593c64d922e89b0a57ac3e | [
"BSD-3-Clause"
] | null | null | null | lib/modules/powershell/trollsploit/message.py | 1r-f0rhun73r/Empire | 6e2bb66e39c2c02f9a593c64d922e89b0a57ac3e | [
"BSD-3-Clause"
] | null | null | null | lib/modules/powershell/trollsploit/message.py | 1r-f0rhun73r/Empire | 6e2bb66e39c2c02f9a593c64d922e89b0a57ac3e | [
"BSD-3-Clause"
] | null | null | null | from builtins import str
from builtins import object
from lib.common import helpers
class Module(object):
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-Message',
'Author': ['@harmj0y'],
'Description': ("Displays a specified message to the use... | 32.716981 | 125 | 0.494521 |
7955dca016a938f5f83cfdfa9131c5f75ba117ac | 3,477 | py | Python | bindings/python/ensmallen/datasets/string/nesterenkoniaspan1.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 5 | 2021-02-17T00:44:45.000Z | 2021-08-09T16:41:47.000Z | bindings/python/ensmallen/datasets/string/nesterenkoniaspan1.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 18 | 2021-01-07T16:47:39.000Z | 2021-08-12T21:51:32.000Z | bindings/python/ensmallen/datasets/string/nesterenkoniaspan1.py | AnacletoLAB/ensmallen | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 3 | 2021-01-14T02:20:59.000Z | 2021-08-04T19:09:52.000Z | """
This file offers the methods to automatically retrieve the graph Nesterenkonia sp. AN1.
The graph is automatically retrieved from the STRING repository.
References
---------------------
Please cite the following if you use the data:
```bib
@article{szklarczyk2019string,
title={STRING v11: protein--protein ... | 33.114286 | 223 | 0.676445 |
7955dd244da2bd30ece9183ef8402f1f2722b34c | 6,947 | py | Python | src/StaticPhotos.py | robdobsn/KitchenProjectorCalPhotoApp | b02c6f375a0c7a5dfc9c60a1194f985098f1884c | [
"MIT"
] | null | null | null | src/StaticPhotos.py | robdobsn/KitchenProjectorCalPhotoApp | b02c6f375a0c7a5dfc9c60a1194f985098f1884c | [
"MIT"
] | 3 | 2019-10-24T07:51:04.000Z | 2020-11-03T10:54:01.000Z | src/StaticPhotos.py | robdobsn/KitchenProjectorCalPhotoApp | b02c6f375a0c7a5dfc9c60a1194f985098f1884c | [
"MIT"
] | null | null | null | from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import (QParallelAnimationGroup, QTimer, QCoreApplication, Qt, qsrand, QTime, QRectF, QPointF, pyqtSignal, QSize, QObject, pyqtProperty)
from PyQt5.QtGui import (QBrush, QColor, QPainter, QPixmap, QFont, QPalette, QImage, QTransform)
from PyQt5.QtWidgets impo... | 42.10303 | 219 | 0.632647 |
7955dd5e140c3dffa1de961cf1741b3cdf6ee283 | 132,757 | py | Python | tests/blockchain/test_blockchain.py | Tranzact-Network/tranzact-blockchain | 692362155e46563aa70559123b93bc9379cac111 | [
"Apache-2.0"
] | 8 | 2021-09-19T18:57:49.000Z | 2022-02-09T04:32:50.000Z | tests/blockchain/test_blockchain.py | Tranzact-Network/tranzact-blockchain | 692362155e46563aa70559123b93bc9379cac111 | [
"Apache-2.0"
] | 3 | 2021-09-29T10:56:48.000Z | 2021-11-19T00:09:28.000Z | tests/blockchain/test_blockchain.py | Tranzact-Network/tranzact-blockchain | 692362155e46563aa70559123b93bc9379cac111 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa: F811, F401
import asyncio
import logging
import multiprocessing
import time
from dataclasses import replace
from secrets import token_bytes
from typing import Optional
import pytest
from blspy import AugSchemeMPL, G2Element
from clvm.casts import int_to_bytes
from tranzact.consensus.block_rewards impo... | 47.961344 | 120 | 0.651348 |
7955dd80f0c82eec004a2b983e643ba9d7876bd9 | 114,111 | py | Python | tests/jobs/test_scheduler_job.py | marwan116/airflow | e7b8eb7f3189fa587c49a2856dfd570f7625ca78 | [
"Apache-2.0"
] | 2 | 2020-03-24T14:47:18.000Z | 2020-03-24T14:48:17.000Z | tests/jobs/test_scheduler_job.py | marwan116/airflow | e7b8eb7f3189fa587c49a2856dfd570f7625ca78 | [
"Apache-2.0"
] | null | null | null | tests/jobs/test_scheduler_job.py | marwan116/airflow | e7b8eb7f3189fa587c49a2856dfd570f7625ca78 | [
"Apache-2.0"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 38.240952 | 110 | 0.631718 |
7955ded745f4cf12f654d76be29680230fb0d132 | 20,027 | py | Python | argoverse/evaluation/detection/utils.py | venice-liong/argoverse-api | 61c9bdc87f33feb84f2d8766dded1614b56cd0fe | [
"MIT"
] | null | null | null | argoverse/evaluation/detection/utils.py | venice-liong/argoverse-api | 61c9bdc87f33feb84f2d8766dded1614b56cd0fe | [
"MIT"
] | null | null | null | argoverse/evaluation/detection/utils.py | venice-liong/argoverse-api | 61c9bdc87f33feb84f2d8766dded1614b56cd0fe | [
"MIT"
] | null | null | null | # <Copyright 2020, Argo AI, LLC. Released under the MIT license.>
"""Detection utilities for the Argoverse detection leaderboard.
Accepts detections (in Argoverse ground truth format) and ground truth labels
for computing evaluation metrics for 3d object detection. We have five different,
metrics: mAP, ATE, ASE, AOE, ... | 40.054 | 119 | 0.702352 |
7955ded7fe8612798256b6cf763cd0e64b5573c1 | 2,697 | py | Python | src/streamlink/plugins/tv4play.py | Billy2011/streamlink | 5f99ec52e0a9c315aeee00b96287edc45adaccd3 | [
"BSD-2-Clause"
] | 1 | 2019-09-14T10:19:47.000Z | 2019-09-14T10:19:47.000Z | src/streamlink/plugins/tv4play.py | Billy2011/streamlink | 5f99ec52e0a9c315aeee00b96287edc45adaccd3 | [
"BSD-2-Clause"
] | 1 | 2018-07-12T18:18:05.000Z | 2018-07-12T18:18:05.000Z | src/streamlink/plugins/tv4play.py | Billy2011/streamlink | 5f99ec52e0a9c315aeee00b96287edc45adaccd3 | [
"BSD-2-Clause"
] | null | null | null | """
$description Live TV channels and video on-demand service from TV4, a Swedish free-to-air broadcaster.
$url tv4play.se
$url fotbollskanalen.se
$type live, vod
$region Sweden
$notes Only non-premium streams are supported
"""
import logging
import re
from streamlink.compat import urljoin
from streamlink.plugin impo... | 27.804124 | 102 | 0.579162 |
7955def331c9fca840f719f3c0e832bb6e237649 | 749 | py | Python | 2020/src/j2.py | Kytabyte/CCC | 6f98e81c7fef38bf70e68188db38863cc0cba2f4 | [
"Apache-2.0"
] | 8 | 2020-12-13T01:29:14.000Z | 2022-02-15T09:02:27.000Z | 2020/src/j2.py | Kytabyte/CCC | 6f98e81c7fef38bf70e68188db38863cc0cba2f4 | [
"Apache-2.0"
] | null | null | null | 2020/src/j2.py | Kytabyte/CCC | 6f98e81c7fef38bf70e68188db38863cc0cba2f4 | [
"Apache-2.0"
] | 2 | 2021-02-05T19:59:33.000Z | 2021-09-14T23:25:52.000Z | import collections
import itertools
import functools
import math
import re
import bisect
import random
rint = lambda: int(input())
rstr = lambda: input()
rints = lambda: list(map(int, input().split()))
rstrs = lambda: input().split()
wmat = lambda n, mat, sep: '{}\n{}'.format(n, '\n'.join(sep.join(map(str, row)) for r... | 19.205128 | 96 | 0.555407 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.