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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7989305d937b2cc3abb10b16e0440efde8ac8dea | 7,067 | py | Python | courses/dev-depl-windows/dev-for-aspnet/labinfra/common/common.py | Joseph-ML/training-data-analyst | a96d73f0b9630935337bab7bb624da87160d1865 | [
"Apache-2.0"
] | null | null | null | courses/dev-depl-windows/dev-for-aspnet/labinfra/common/common.py | Joseph-ML/training-data-analyst | a96d73f0b9630935337bab7bb624da87160d1865 | [
"Apache-2.0"
] | 1 | 2022-02-07T16:03:53.000Z | 2022-02-07T16:21:03.000Z | courses/dev-depl-windows/dev-for-aspnet/labinfra/common/common.py | Joseph-ML/training-data-analyst | a96d73f0b9630935337bab7bb624da87160d1865 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 31.269912 | 84 | 0.705108 |
798931ceb2a5ad9ceccfabe4eb81c5b16efe82ea | 9,068 | py | Python | test/functional/example_test.py | BradVer/Titan | 69aa5de8e9cdc8b843f11a7fed3a9defe4d9ae22 | [
"MIT"
] | 7 | 2019-04-04T01:15:13.000Z | 2021-11-11T08:19:23.000Z | test/functional/example_test.py | BradVer/Titan | 69aa5de8e9cdc8b843f11a7fed3a9defe4d9ae22 | [
"MIT"
] | 3 | 2019-10-16T18:02:29.000Z | 2020-08-18T14:57:45.000Z | test/functional/example_test.py | BradVer/Titan | 69aa5de8e9cdc8b843f11a7fed3a9defe4d9ae22 | [
"MIT"
] | 23 | 2019-04-18T05:07:49.000Z | 2021-10-03T04:51:20.000Z | #!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Copyright (c) 2018 The Titancoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""An ex... | 40.482143 | 121 | 0.678209 |
798931e1a17d7cd4e50e25d9793690438db903c2 | 749 | py | Python | app/main/forms.py | Lyonsmasawa/Pitchperfect | 5c8f7e46d0755e8c14061934cf47252b02abbb5e | [
"MIT"
] | null | null | null | app/main/forms.py | Lyonsmasawa/Pitchperfect | 5c8f7e46d0755e8c14061934cf47252b02abbb5e | [
"MIT"
] | null | null | null | app/main/forms.py | Lyonsmasawa/Pitchperfect | 5c8f7e46d0755e8c14061934cf47252b02abbb5e | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm #helps us create a form
from wtforms import StringField,TextAreaField,SubmitField #allows us to create a textfield, textarea field and a submit button
from wtforms.validators import InputRequired #prevents user from submittin empty value
class CommentInput(FlaskForm):
comment = Text... | 49.933333 | 135 | 0.76502 |
798932a5403dddbbf359985710481b24689caa57 | 5,294 | py | Python | app.py | DanielHHowell/PDFScholar | a089b82d5a35ca9c8f2746bea3c67535a1772ee3 | [
"Apache-2.0"
] | null | null | null | app.py | DanielHHowell/PDFScholar | a089b82d5a35ca9c8f2746bea3c67535a1772ee3 | [
"Apache-2.0"
] | null | null | null | app.py | DanielHHowell/PDFScholar | a089b82d5a35ca9c8f2746bea3c67535a1772ee3 | [
"Apache-2.0"
] | null | null | null | # ----------------------------------------------------------------------------#
# Imports
# ----------------------------------------------------------------------------#
from flask import Flask, flash, request, redirect, render_template, Response
from werkzeug.utils import secure_filename # from flask.ext.sqlalchemy ... | 30.601156 | 93 | 0.576691 |
7989332f8c207a3265997b9a3065fca7e607fbd7 | 396 | py | Python | environment.py | gautamgitspace/Geo-Tracker | 7cd71361ace14838ca1b4b599847f11ebb4eac83 | [
"MIT"
] | 2 | 2016-07-31T02:26:53.000Z | 2018-05-18T09:03:26.000Z | environment.py | gautamgitspace/Geo-Tracker | 7cd71361ace14838ca1b4b599847f11ebb4eac83 | [
"MIT"
] | null | null | null | environment.py | gautamgitspace/Geo-Tracker | 7cd71361ace14838ca1b4b599847f11ebb4eac83 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#Modify once acccording to your setup
WORKSPACE = "/Users/Gautam/AndroidStudioProjects/AndroidGPSTracking"
#Modify the below lines for each project
PROJECT_NAME = "AndroidGPSTracking"
#Modify if using DB
DB_NAME = "mainTuple"
TABLE_NAME = "footRecords"
MAIN_ACTIVITY = "TrackActivity"
#DO NOT MO... | 24.75 | 68 | 0.787879 |
798933f51a4b29c9ca6c1ae180de4efa537d74fa | 22,885 | py | Python | baseline/cnn/fashion_mnist_cnn_error_learning.py | DenseAI/deep-learning-and-fashion-mnist | 49e21d821bbbcc6c9b33f5ee440a61a166efed15 | [
"Apache-2.0"
] | null | null | null | baseline/cnn/fashion_mnist_cnn_error_learning.py | DenseAI/deep-learning-and-fashion-mnist | 49e21d821bbbcc6c9b33f5ee440a61a166efed15 | [
"Apache-2.0"
] | null | null | null | baseline/cnn/fashion_mnist_cnn_error_learning.py | DenseAI/deep-learning-and-fashion-mnist | 49e21d821bbbcc6c9b33f5ee440a61a166efed15 | [
"Apache-2.0"
] | null | null | null |
# -*- coding:utf-8 -*-
from __future__ import print_function
import keras
import tensorflow as tf
from keras import backend as K
from keras.callbacks import ModelCheckpoint, EarlyStopping
import os
# Helper libraries
import random
import matplotlib.pyplot as plt
import numpy as np
from sklearn.metrics import classi... | 39.593426 | 173 | 0.564562 |
798934538fc42a856ad4da7f5d09ff112f232bfe | 20 | py | Python | models/__init__.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | models/__init__.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | models/__init__.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | from .actor import * | 20 | 20 | 0.75 |
798934f3c87b5e9b14db1e4ee9449df7c7ccdcbc | 1,243 | py | Python | cinderlib/exception.py | Akrog/cinderlib | 6481cd9a34744f80bdba130fe9089f1b8b7cb327 | [
"Apache-2.0"
] | 15 | 2018-01-04T13:46:59.000Z | 2020-07-06T13:27:57.000Z | cinderlib/exception.py | openstack/cinderlib | ee115cb8e68382aa329a380a11335fa04c8f709c | [
"Apache-2.0"
] | 12 | 2018-06-13T10:57:55.000Z | 2019-04-04T09:31:44.000Z | cinderlib/exception.py | openstack/cinderlib | ee115cb8e68382aa329a380a11335fa04c8f709c | [
"Apache-2.0"
] | 7 | 2018-03-12T22:41:30.000Z | 2019-01-17T23:16:40.000Z | # Copyright (c) 2018, Red Hat, Inc.
# 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 requir... | 32.710526 | 78 | 0.740145 |
7989369c83cd4a7eba5b8e8f79295760ff340e18 | 3,491 | py | Python | bindings/python/ensmallen/datasets/string/penicilliumcoprophilum.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 5 | 2021-02-17T00:44:45.000Z | 2021-08-09T16:41:47.000Z | bindings/python/ensmallen/datasets/string/penicilliumcoprophilum.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 18 | 2021-01-07T16:47:39.000Z | 2021-08-12T21:51:32.000Z | bindings/python/ensmallen/datasets/string/penicilliumcoprophilum.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 Penicillium coprophilum.
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--protei... | 33.247619 | 223 | 0.679461 |
798937637ece3d6eaaa1f9a75e89d56ea769fbe6 | 738 | py | Python | dmoj/ccc/05s4-pyramid-message-scheme.py | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | dmoj/ccc/05s4-pyramid-message-scheme.py | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | dmoj/ccc/05s4-pyramid-message-scheme.py | ruar18/competitive-programming | f264675fab92bf27dce184dd65eb81e302381f96 | [
"MIT"
] | null | null | null | from collections import defaultdict
L = int(input())
for _ in range(L):
g = defaultdict(list)
n = int(input())
vis = {}
q = [None] * n
f = -1
for _ in range(n // 2):
cur = input()
snd = input()
g[cur].append(snd)
g[snd].append(cur)
vis[snd] = True
q[0] = ... | 21.705882 | 42 | 0.415989 |
7989377a3f5067165a06ad31353bb24d1c093aa4 | 29,584 | py | Python | sanic/app.py | graingert/sanic | c6a7e44ae7e233ac9c609bf2b6f70fea9425188b | [
"MIT"
] | null | null | null | sanic/app.py | graingert/sanic | c6a7e44ae7e233ac9c609bf2b6f70fea9425188b | [
"MIT"
] | null | null | null | sanic/app.py | graingert/sanic | c6a7e44ae7e233ac9c609bf2b6f70fea9425188b | [
"MIT"
] | null | null | null | import logging
import logging.config
import re
import warnings
from asyncio import get_event_loop, ensure_future, CancelledError
from collections import deque, defaultdict
from functools import partial
from inspect import isawaitable, stack, getmodulename
from traceback import format_exc
from urllib.parse import urlenc... | 39.816958 | 79 | 0.560168 |
7989394d0a65ef8d64cefc37dd5a12b622573753 | 45,406 | py | Python | sklearn/tests/test_pipeline.py | AidarShakerimoff/scikit-learn | f2481a73bd627e9d891ff27604e4e92a6f454c43 | [
"BSD-3-Clause"
] | 13 | 2020-05-03T18:42:05.000Z | 2022-03-23T07:44:19.000Z | sklearn/tests/test_pipeline.py | AidarShakerimoff/scikit-learn | f2481a73bd627e9d891ff27604e4e92a6f454c43 | [
"BSD-3-Clause"
] | 29 | 2021-03-04T02:56:48.000Z | 2021-04-06T04:06:45.000Z | sklearn/tests/test_pipeline.py | AidarShakerimoff/scikit-learn | f2481a73bd627e9d891ff27604e4e92a6f454c43 | [
"BSD-3-Clause"
] | 12 | 2021-02-05T20:33:04.000Z | 2022-02-17T04:11:25.000Z | """
Test the pipeline module.
"""
from tempfile import mkdtemp
import shutil
import time
import re
import itertools
import pytest
import numpy as np
from scipy import sparse
import joblib
from sklearn.utils.fixes import parse_version
from sklearn.utils._testing import (
assert_raises,
assert_raises_regex,
... | 34.767228 | 79 | 0.63822 |
798939d4c1de74ecf1835f26c07d654fa1d4b10a | 13,272 | py | Python | log_mito_act/model_479.py | LoLab-VU/Bayesian_Inference_of_Network_Dynamics | 54a5ef7e868be34289836bbbb024a2963c0c9c86 | [
"MIT"
] | null | null | null | log_mito_act/model_479.py | LoLab-VU/Bayesian_Inference_of_Network_Dynamics | 54a5ef7e868be34289836bbbb024a2963c0c9c86 | [
"MIT"
] | null | null | null | log_mito_act/model_479.py | LoLab-VU/Bayesian_Inference_of_Network_Dynamics | 54a5ef7e868be34289836bbbb024a2963c0c9c86 | [
"MIT"
] | null | null | null | # exported from PySB model 'model'
from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD
Model()
Monomer('Ligand', ['Receptor'])
Monomer('ParpU', ['C3A'])
Monomer('C8A', ['BidU'])
Monomer('BaxM', ['BidM', 'BaxA'])
Monomer('Apop', ['C3pro', 'X... | 79.473054 | 614 | 0.80975 |
79893a8125b7ea19ea25e36e869526bb01a5f612 | 4,730 | py | Python | tests/test_lib.py | ziv1234/voluptuous-serialize | a582f93fae5eafea3e94da8751bf85a2f10d5c10 | [
"Apache-2.0"
] | null | null | null | tests/test_lib.py | ziv1234/voluptuous-serialize | a582f93fae5eafea3e94da8751bf85a2f10d5c10 | [
"Apache-2.0"
] | null | null | null | tests/test_lib.py | ziv1234/voluptuous-serialize | a582f93fae5eafea3e94da8751bf85a2f10d5c10 | [
"Apache-2.0"
] | null | null | null | import voluptuous as vol
from voluptuous_serialize import UNSUPPORTED, convert
def test_int_schema():
for value in int, vol.Coerce(int):
assert {'type': 'integer'} == convert(vol.Schema(value))
def test_str_schema():
for value in str, vol.Coerce(str):
assert {'type': 'string'} == convert(vo... | 23.415842 | 77 | 0.512262 |
79893abeef2f88502b81f8bb05397b97cfe6101e | 7,959 | py | Python | QQAlbumDownloader/util/SlideVerfication.py | graysonwp/QQAlbumDownloader | 29e8b71c5b46a8084b80e81179454e92b9058c1a | [
"MIT"
] | 5 | 2019-09-26T04:11:45.000Z | 2021-08-17T12:05:48.000Z | QQAlbumDownloader/util/SlideVerfication.py | graysonwp/QQAlbumDownloader | 29e8b71c5b46a8084b80e81179454e92b9058c1a | [
"MIT"
] | 20 | 2021-09-04T10:40:51.000Z | 2022-03-12T00:52:48.000Z | QQAlbumDownloader/util/SlideVerfication.py | wpwbb510582246/QQAlbumDownloader | 29e8b71c5b46a8084b80e81179454e92b9058c1a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Author : Grayson
# @Time : 2020-12-18 21:34
# @Email : weipengweibeibei@163.com
# @Description :
"""
本模块专门用来处理滑动验证码的问题,
"""
from selenium.webdriver import ActionChains
import random, time, os
import cv2
from PIL import Image as Im
import numpy as np
import req... | 32.353659 | 97 | 0.590903 |
79893ae87e915db4c8b34d41a83ebecf57a6443c | 1,541 | py | Python | stellar_sdk/xdr/upgrade_type.py | Shaptic/py-stellar-base | f5fa47f4d96f215889d99249fb25c7be002f5cf3 | [
"Apache-2.0"
] | null | null | null | stellar_sdk/xdr/upgrade_type.py | Shaptic/py-stellar-base | f5fa47f4d96f215889d99249fb25c7be002f5cf3 | [
"Apache-2.0"
] | 27 | 2022-01-12T10:55:38.000Z | 2022-03-28T01:38:24.000Z | stellar_sdk/xdr/upgrade_type.py | Shaptic/py-stellar-base | f5fa47f4d96f215889d99249fb25c7be002f5cf3 | [
"Apache-2.0"
] | 2 | 2021-12-02T12:42:03.000Z | 2021-12-07T20:53:10.000Z | # This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from xdrlib import Packer, Unpacker
from ..type_checked import type_checked
from .base import Opaque
__all__ = ["UpgradeType"]
@type_checked
class UpgradeType:
"""
XDR Source Code::
typedef opa... | 27.035088 | 66 | 0.661908 |
79893b321f5cc0b0c1623a8724ee11deb1101cbb | 322 | py | Python | wafw00f/plugins/aliyundun.py | aqyoung/scan-wafw00f | a95a94253f138d5ef791232ef4d8371de41622b6 | [
"BSD-3-Clause"
] | 1 | 2019-08-01T11:19:55.000Z | 2019-08-01T11:19:55.000Z | wafw00f/plugins/aliyundun.py | aqyoung/scan-wafw00f | a95a94253f138d5ef791232ef4d8371de41622b6 | [
"BSD-3-Clause"
] | null | null | null | wafw00f/plugins/aliyundun.py | aqyoung/scan-wafw00f | a95a94253f138d5ef791232ef4d8371de41622b6 | [
"BSD-3-Clause"
] | 2 | 2017-12-27T15:56:15.000Z | 2017-12-27T20:03:09.000Z | #!/usr/bin/env python
NAME = 'AliYunDun (Alibaba Cloud Computing)'
def is_waf(self):
for attack in self.attacks:
r = attack(self)
if r is None:
return
response, page = r
if response.status == 405 and b'errors.aliyun.com' in page:
return True
return Fal... | 21.466667 | 67 | 0.583851 |
79893cee42d4e1a15465112af1f586c9414f8fd9 | 4,629 | py | Python | blooming/l2ng_testcase.py | luxebeng/blooming | d4a111d0f61977d6b55bf179b01a70fcdfdd3149 | [
"BSD-3-Clause"
] | 1 | 2018-08-14T08:31:17.000Z | 2018-08-14T08:31:17.000Z | blooming/l2ng_testcase.py | luxebeng/blooming | d4a111d0f61977d6b55bf179b01a70fcdfdd3149 | [
"BSD-3-Clause"
] | null | null | null | blooming/l2ng_testcase.py | luxebeng/blooming | d4a111d0f61977d6b55bf179b01a70fcdfdd3149 | [
"BSD-3-Clause"
] | null | null | null | from .dev_parser import Dev_Entry
from .l2ng_conf_parser import ConfParser
def ping_l3_intf(host_dev, dst_dev, dst_intf_name):
"""ping irb interface between the different devices
:arg1: "host_dev" is ping origined device.
"dst_dev" is the target devcie.
"dst_intf_name" is target L3 inter... | 37.942623 | 79 | 0.669043 |
79893d30bae79d30ae68407c6dbae1dfc4ed2310 | 23,300 | py | Python | web/application.py | saranya515/python-api | 9870b064c1238845b3e6714c8116e3c949868c62 | [
"bzip2-1.0.6"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | dependencies/web/application.py | kartiknagpal/urltoimg-heroku | b6d7fbfd4cbcb0dac6f6a915fa9b0b2db97d27d8 | [
"MIT"
] | 6 | 2015-11-25T06:23:06.000Z | 2016-01-09T17:49:42.000Z | dependencies/web/application.py | kartiknagpal/urltoimg-heroku | b6d7fbfd4cbcb0dac6f6a915fa9b0b2db97d27d8 | [
"MIT"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z | """
Web application
(from web.py)
"""
import webapi as web
import webapi, wsgi, utils
import debugerror
import httpserver
from utils import lstrips, safeunicode
import sys
import urllib
import traceback
import itertools
import os
import types
from exceptions import SystemExit
try:
import wsgiref.handlers
except ... | 33.866279 | 116 | 0.526309 |
79893d6ccbc94a284c28ba0ef41332cccf13b454 | 971 | py | Python | misc/frontend.py | engjoy/suricate_docker_fig | 980545edfeb3b16edf292f3da392097cfbb21eb1 | [
"MIT"
] | null | null | null | misc/frontend.py | engjoy/suricate_docker_fig | 980545edfeb3b16edf292f3da392097cfbb21eb1 | [
"MIT"
] | null | null | null | misc/frontend.py | engjoy/suricate_docker_fig | 980545edfeb3b16edf292f3da392097cfbb21eb1 | [
"MIT"
] | null | null | null |
import bottle
import os
import sys
import urlparse
from suricate.ui import ui_app
class SessionMiddleWare(object):
"""
Demo Session middleware adding the required environment id.
"""
def __init__(self, app_to_wrap):
self.wrap_app = app_to_wrap
def __call__(self, environ, start_response... | 26.972222 | 76 | 0.684861 |
79893db146aaa21584e7356b8cd865437704e2f4 | 20,025 | py | Python | wavelink/filters.py | chillymosh/Wavelink | fada2ccd2f7970b34d924aed4e379c16e0aa2d42 | [
"MIT"
] | 35 | 2019-01-06T08:47:58.000Z | 2019-08-25T03:48:27.000Z | wavelink/filters.py | chillymosh/Wavelink | fada2ccd2f7970b34d924aed4e379c16e0aa2d42 | [
"MIT"
] | 16 | 2019-01-08T02:33:32.000Z | 2019-09-23T03:46:53.000Z | wavelink/filters.py | chillymosh/Wavelink | fada2ccd2f7970b34d924aed4e379c16e0aa2d42 | [
"MIT"
] | 30 | 2019-01-06T14:52:30.000Z | 2019-09-23T08:14:00.000Z | """MIT License
Copyright (c) 2019-2022 PythonistaGuild
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, pu... | 32.04 | 121 | 0.603845 |
79893dc825c4d1e2b611a1f309ed3a65abd61f38 | 4,723 | py | Python | Basic_01.py | Echavarria42/Challenges- | fe16714a8150a6e055ac0d8b21d33ffe96d03d2c | [
"MIT"
] | 1 | 2021-08-24T04:43:18.000Z | 2021-08-24T04:43:18.000Z | Basic_01.py | Echavarria42/Challenges | c14a2a66de8e052fdabe0b5b5d7c5294b4f82bb4 | [
"MIT"
] | null | null | null | Basic_01.py | Echavarria42/Challenges | c14a2a66de8e052fdabe0b5b5d7c5294b4f82bb4 | [
"MIT"
] | null | null | null | def back(name):
print(f'Do you want to return to another activity?')
desicion_x = input('''(1) Yes (2) No, bye\n''')
if desicion_x == "1":
print(actividad(name))
else: print('ok! bye')
def add(a,b):
result = a + b
print(f'{a} + {b} = {result}')
return result
def restar(a,b):... | 31.072368 | 173 | 0.550709 |
79893dcfd3dd17c03dabd46058350d9571a20006 | 1,250 | py | Python | result_service_gui/views/events.py | abdulfahad66/result-service-gui | 214342dd6d00f1173bfe90f8429c7d6c9947783b | [
"Apache-2.0"
] | null | null | null | result_service_gui/views/events.py | abdulfahad66/result-service-gui | 214342dd6d00f1173bfe90f8429c7d6c9947783b | [
"Apache-2.0"
] | null | null | null | result_service_gui/views/events.py | abdulfahad66/result-service-gui | 214342dd6d00f1173bfe90f8429c7d6c9947783b | [
"Apache-2.0"
] | null | null | null | """Resource module for main view."""
import logging
from aiohttp import web
import aiohttp_jinja2
from .utils import check_login, get_event
class Events(web.View):
"""Class representing the main view."""
async def get(self) -> web.Response:
"""Get route function that return the events page."""
... | 29.761905 | 67 | 0.5376 |
79893e2e7d617f9323c6c4b3e25a67b74d04ba49 | 3,678 | py | Python | onmt/translate/penalties.py | l-k-11235/OpenNMT-py | 4815f07fcd482af9a1fe1d3b620d144197178bc5 | [
"MIT"
] | 5,864 | 2017-02-24T19:17:07.000Z | 2022-03-31T20:49:22.000Z | onmt/translate/penalties.py | l-k-11235/OpenNMT-py | 4815f07fcd482af9a1fe1d3b620d144197178bc5 | [
"MIT"
] | 1,727 | 2017-02-27T09:09:56.000Z | 2022-03-29T17:08:29.000Z | onmt/translate/penalties.py | l-k-11235/OpenNMT-py | 4815f07fcd482af9a1fe1d3b620d144197178bc5 | [
"MIT"
] | 2,570 | 2017-02-24T19:20:36.000Z | 2022-03-31T06:24:22.000Z | import torch
class PenaltyBuilder(object):
"""Returns the Length and Coverage Penalty function for Beam Search.
Args:
length_pen (str): option name of length pen
cov_pen (str): option name of cov pen
Attributes:
has_cov_pen (bool): Whether coverage penalty is None (applying it
... | 36.058824 | 78 | 0.611202 |
79893ed136fde76f5b2a112631e4d0790862b9ca | 115 | py | Python | detroit_health/__init__.py | jtwalsh0/detroit_health | d03ae500e59ebc897af9d38143b9cc61c2bd2579 | [
"MIT"
] | null | null | null | detroit_health/__init__.py | jtwalsh0/detroit_health | d03ae500e59ebc897af9d38143b9cc61c2bd2579 | [
"MIT"
] | null | null | null | detroit_health/__init__.py | jtwalsh0/detroit_health | d03ae500e59ebc897af9d38143b9cc61c2bd2579 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = """Joe Walsh"""
__email__ = 'j.thomas.walsh@gmail.com'
__version__ = '0.1.0'
| 19.166667 | 38 | 0.617391 |
79893f3d387d6f27a960dc1ce6993aa13e9a8248 | 589 | py | Python | p3iv_utils/test/test_finite_differences.py | fzi-forschungszentrum-informatik/P3IV | 51784e6dc03dcaa0ad58a5078475fa4daec774bd | [
"BSD-3-Clause"
] | 4 | 2021-07-27T06:56:22.000Z | 2022-03-22T11:21:30.000Z | p3iv_utils/test/test_finite_differences.py | fzi-forschungszentrum-informatik/P3IV | 51784e6dc03dcaa0ad58a5078475fa4daec774bd | [
"BSD-3-Clause"
] | null | null | null | p3iv_utils/test/test_finite_differences.py | fzi-forschungszentrum-informatik/P3IV | 51784e6dc03dcaa0ad58a5078475fa4daec774bd | [
"BSD-3-Clause"
] | 1 | 2021-10-10T01:56:44.000Z | 2021-10-10T01:56:44.000Z |
import unittest
import numpy as np
from p3iv_utils.finite_differences import finite_differences
class CheckFiniteDifferences(unittest.TestCase):
def test(self):
pos_cartesian = np.array([[1, 0], [2, 2], [3, 3], [5, 3]])
v, a, j = finite_differences(pos_cartesian, dt=0.1)
self.assertEqual... | 34.647059 | 87 | 0.587436 |
7989400f806175c4f58b6fb55ea81200f960b5ce | 7,057 | py | Python | xadmin/demo_app/app/models.py | HelloN1co/A-Detection-Tool-for-Traffic-Objects | ead815d3968559dd640257ca946f86ad390495b6 | [
"MIT"
] | null | null | null | xadmin/demo_app/app/models.py | HelloN1co/A-Detection-Tool-for-Traffic-Objects | ead815d3968559dd640257ca946f86ad390495b6 | [
"MIT"
] | null | null | null | xadmin/demo_app/app/models.py | HelloN1co/A-Detection-Tool-for-Traffic-Objects | ead815d3968559dd640257ca946f86ad390495b6 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import Group
from django.conf import settings
from django.utils.encoding import python_2_unicode_compatible
AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')
SERVER_STATUS = (
(0, u"Normal"),
(1, u"Down"),
(2, u"No Connect"),
... | 30.951754 | 120 | 0.692504 |
7989405b5b68c749cef9ea6a31fffcffaccff320 | 119,577 | py | Python | qiskit/circuit/quantumcircuit.py | LaurinFischer/qiskit-terra | 7bb2b1e0b1e22cffe898c2030fb892c743a7e6ac | [
"Apache-2.0"
] | null | null | null | qiskit/circuit/quantumcircuit.py | LaurinFischer/qiskit-terra | 7bb2b1e0b1e22cffe898c2030fb892c743a7e6ac | [
"Apache-2.0"
] | null | null | null | qiskit/circuit/quantumcircuit.py | LaurinFischer/qiskit-terra | 7bb2b1e0b1e22cffe898c2030fb892c743a7e6ac | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017.
#
# 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... | 38.735666 | 100 | 0.586442 |
79894090c482fb4af791655fe865608bbcccef87 | 17,900 | py | Python | jade2/basic/structure/Structure.py | RosettaCommons/jade2 | 40affc7c4e0f1f6ee07030e72de284e3484946e7 | [
"BSD-3-Clause"
] | 1 | 2019-12-23T21:52:23.000Z | 2019-12-23T21:52:23.000Z | jade2/basic/structure/Structure.py | RosettaCommons/jade2 | 40affc7c4e0f1f6ee07030e72de284e3484946e7 | [
"BSD-3-Clause"
] | null | null | null | jade2/basic/structure/Structure.py | RosettaCommons/jade2 | 40affc7c4e0f1f6ee07030e72de284e3484946e7 | [
"BSD-3-Clause"
] | 2 | 2021-11-13T01:34:15.000Z | 2021-11-13T01:34:34.000Z | #!/usr/bin/python
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.rosettacommons.org. Qu... | 28.731942 | 156 | 0.600726 |
7989417615d8a4253592616fe933d9bcf40136cb | 2,858 | py | Python | tests/integration/butterfree/pipelines/conftest.py | thepabloaguilar/butterfree | d52918677fc4427cc84af07d011c37fbf74b85a1 | [
"Apache-2.0"
] | null | null | null | tests/integration/butterfree/pipelines/conftest.py | thepabloaguilar/butterfree | d52918677fc4427cc84af07d011c37fbf74b85a1 | [
"Apache-2.0"
] | null | null | null | tests/integration/butterfree/pipelines/conftest.py | thepabloaguilar/butterfree | d52918677fc4427cc84af07d011c37fbf74b85a1 | [
"Apache-2.0"
] | null | null | null | import pytest
from butterfree.constants import DataType
from butterfree.constants.columns import TIMESTAMP_COLUMN
@pytest.fixture()
def mocked_df(spark_context, spark_session):
data = [
{"id": 1, "origin_ts": "2016-04-11 11:31:11", "feature1": 200, "feature2": 200},
{"id": 1, "origin_ts": "2016-0... | 37.116883 | 88 | 0.596221 |
798941949cb54e64a7f712f235689cf4886ea897 | 3,779 | py | Python | MerCBO/acquisition/acquisition_marginalization.py | aryandeshwal/MerCBO | 526dfbc05bb7be3a77a30d8943233707f1636f14 | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2020-12-21T00:12:11.000Z | 2022-03-29T10:55:20.000Z | MerCBO/acquisition/acquisition_marginalization.py | aryandeshwal/MerCBO | 526dfbc05bb7be3a77a30d8943233707f1636f14 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-10-08T22:54:45.000Z | 2021-10-08T22:54:45.000Z | MerCBO/acquisition/acquisition_marginalization.py | aryandeshwal/MerCBO | 526dfbc05bb7be3a77a30d8943233707f1636f14 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-04-27T03:54:54.000Z | 2021-04-27T03:54:54.000Z | import torch
from MerCBO.graphGP.kernels.diffusionkernel import DiffusionKernel
from MerCBO.graphGP.models.gp_regression import GPRegression
from MerCBO.graphGP.inference.inference import Inference
from MerCBO.graphGP.sampler.tool_partition import group_input
from MerCBO.acquisition.acquisition_functions import expec... | 42.943182 | 119 | 0.698333 |
798941dc02091f144cb983e9d6672bea9bd98cf3 | 21,170 | py | Python | sdk/python/pulumi_azure_native/devtestlab/global_schedule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/devtestlab/global_schedule.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/devtestlab/global_schedule.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... | 44.104167 | 406 | 0.651205 |
7989422889558b847b965efb8f3b351304e84554 | 29,190 | py | Python | transformers/examples/run_multiple_choice.py | kinjad/MulBert | 8dbdb6420b3d46e115865323d740a86d2d6c9c96 | [
"MIT"
] | 2 | 2020-01-16T20:36:28.000Z | 2020-05-25T03:39:31.000Z | transformers/examples/run_multiple_choice.py | kinjad/MulBert | 8dbdb6420b3d46e115865323d740a86d2d6c9c96 | [
"MIT"
] | null | null | null | transformers/examples/run_multiple_choice.py | kinjad/MulBert | 8dbdb6420b3d46e115865323d740a86d2d6c9c96 | [
"MIT"
] | 1 | 2021-04-19T10:01:59.000Z | 2021-04-19T10:01:59.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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 cop... | 42.926471 | 150 | 0.631278 |
79894308028cb1bd72cb2d4c330495f3faec086c | 28,737 | py | Python | tests/test_modeling_xlnet.py | zfisher/transformers | 2541d4b185ad1284c5f0eb5d0df123152ad0c87a | [
"Apache-2.0"
] | 67 | 2020-06-03T12:17:08.000Z | 2022-03-24T08:49:52.000Z | tests/test_modeling_xlnet.py | zfisher/transformers | 2541d4b185ad1284c5f0eb5d0df123152ad0c87a | [
"Apache-2.0"
] | 5 | 2020-06-22T13:22:47.000Z | 2021-05-31T02:45:25.000Z | tests/test_modeling_xlnet.py | zfisher/transformers | 2541d4b185ad1284c5f0eb5d0df123152ad0c87a | [
"Apache-2.0"
] | 14 | 2020-06-03T12:09:12.000Z | 2021-11-10T08:23:24.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 30.933262 | 113 | 0.477259 |
798946c35d38981b78f63110aff070daebf7d041 | 2,176 | py | Python | tests/python/twitter/pants/python/test_antlr_builder.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:27.000Z | 2019-12-20T14:13:27.000Z | tests/python/twitter/pants/python/test_antlr_builder.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | null | null | null | tests/python/twitter/pants/python/test_antlr_builder.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:29.000Z | 2019-12-20T14:13:29.000Z | # ==================================================================================================
# Copyright 2011 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | 41.846154 | 100 | 0.653033 |
798947b492027e7e927b2f35dad5f62b5a8b5411 | 3,586 | py | Python | google/cloud/secretmanager/v1/secretmanager-v1-py/noxfile.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/cloud/secretmanager/v1/secretmanager-v1-py/noxfile.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/cloud/secretmanager/v1/secretmanager-v1-py/noxfile.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 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... | 26.962406 | 96 | 0.62744 |
798947c9e5ce1754a03038363e11b506650467d8 | 2,053 | py | Python | deepdanbooru/src/deepdanbooru/model/layers/__init__.py | unyacat/IllustStore | cc2a74381a79b6f3fb8ea6d6cde31b35f48b197e | [
"Apache-2.0"
] | 1 | 2022-01-05T02:11:22.000Z | 2022-01-05T02:11:22.000Z | deepdanbooru/src/deepdanbooru/model/layers/__init__.py | unyacat/IllustStore | cc2a74381a79b6f3fb8ea6d6cde31b35f48b197e | [
"Apache-2.0"
] | null | null | null | deepdanbooru/src/deepdanbooru/model/layers/__init__.py | unyacat/IllustStore | cc2a74381a79b6f3fb8ea6d6cde31b35f48b197e | [
"Apache-2.0"
] | 1 | 2021-11-09T01:20:11.000Z | 2021-11-09T01:20:11.000Z | import tensorflow as tf
def conv(
x, filters, kernel_size, strides=(1, 1), padding="same", initializer="he_normal"
):
c = tf.keras.layers.Conv2D(
filters=filters,
kernel_size=kernel_size,
strides=strides,
padding=padding,
kernel_initializer=initializer,
use_bias... | 21.610526 | 88 | 0.635655 |
7989491ab77bfe5a2212629a4db132ee5ce0bbf4 | 76,695 | py | Python | pandas/tests/groupby/test_groupby.py | JulianWgs/pandas | 7a11be888a02d1d5689dfd33fbc56071bc7e8c69 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | pandas/tests/groupby/test_groupby.py | JulianWgs/pandas | 7a11be888a02d1d5689dfd33fbc56071bc7e8c69 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | pandas/tests/groupby/test_groupby.py | JulianWgs/pandas | 7a11be888a02d1d5689dfd33fbc56071bc7e8c69 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
from decimal import Decimal
from io import StringIO
import numpy as np
import pytest
from pandas.compat import IS64
from pandas.errors import PerformanceWarning
import pandas.util._test_decorators as td
import pandas as pd
from pandas import (
Categorical,
DataFrame,
Grouper... | 31.189508 | 88 | 0.583623 |
79894a376a19e0e316d882c432100ff02eef48f5 | 1,315 | py | Python | Year-2/Computational-math/src/modules/equation/calculate.py | zubrailx/University-ITMO | 9c746ab6cfa95ecd6ff02eb23e1f49c93337ec61 | [
"MIT"
] | 3 | 2021-10-13T05:01:37.000Z | 2022-01-21T15:25:47.000Z | Year-2/Computational-math/src/modules/equation/calculate.py | zubrailx/university | 9c746ab6cfa95ecd6ff02eb23e1f49c93337ec61 | [
"MIT"
] | null | null | null | Year-2/Computational-math/src/modules/equation/calculate.py | zubrailx/university | 9c746ab6cfa95ecd6ff02eb23e1f49c93337ec61 | [
"MIT"
] | null | null | null | from modules.parse import Node, CalculationException
def calculate(node: Node, x_dict: dict, rec: int = 0, eps: float = 0.0001, err: float = 0.001):
if (rec > 3):
raise CalculationException("Cannot recover from breaking point.")
x_dict_plus = x_dict.copy()
x_dict_minus = x_dict.copy()
for k i... | 34.605263 | 97 | 0.638783 |
79894b0570b0c025fd77be90f93f6c840121cfee | 2,104 | py | Python | flexget/plugins/content_sort.py | fakegit/flexget-config-1 | ff76324f3e7b59e01ba38485898d3ae933dffd01 | [
"Unlicense"
] | 14 | 2018-12-06T11:41:25.000Z | 2021-09-03T14:12:05.000Z | flexget/plugins/content_sort.py | fakegit/flexget-config-1 | ff76324f3e7b59e01ba38485898d3ae933dffd01 | [
"Unlicense"
] | 1 | 2017-12-20T17:56:38.000Z | 2018-09-04T20:03:55.000Z | flexget/plugins/content_sort.py | fakegit/flexget-config-1 | ff76324f3e7b59e01ba38485898d3ae933dffd01 | [
"Unlicense"
] | 13 | 2018-07-31T13:35:35.000Z | 2021-12-13T15:39:43.000Z | from __future__ import unicode_literals, division, absolute_import
import logging
import posixpath
from fnmatch import fnmatch
from flexget import plugin
from flexget.event import event
log = logging.getLogger('content_sort')
class FilterContentSort(object):
"""
Set the move_completed_path attribute based on ... | 36.275862 | 134 | 0.606464 |
79894b96e859527984b389e27372c2214450d4f6 | 618 | py | Python | nexus/views/telegram/registry.py | RobbiNespu/hyperboria | 7db858386f1a20e8d49bc16f53bfd7f1e4d03f7e | [
"Unlicense"
] | 54 | 2021-01-07T03:02:36.000Z | 2022-03-28T17:19:29.000Z | nexus/views/telegram/registry.py | the-superpirate/hyperboria | 74776166158d07b199677f9738862e5f1fa54367 | [
"Unlicense"
] | 10 | 2021-01-08T17:38:59.000Z | 2022-02-28T14:34:45.000Z | nexus/views/telegram/registry.py | the-superpirate/hyperboria | 74776166158d07b199677f9738862e5f1fa54367 | [
"Unlicense"
] | 16 | 2020-12-28T18:31:44.000Z | 2022-02-22T15:00:53.000Z | from typing import Union
from nexus.models.proto.scimag_pb2 import Scimag as ScimagPb
from nexus.models.proto.scitech_pb2 import Scitech as ScitechPb
from .scimag import ScimagView
from .scitech import ScitechView
pb_registry = {
'scimag': ScimagPb,
'scitech': ScitechPb,
}
views_registry = {
'scimag': S... | 26.869565 | 86 | 0.778317 |
79894c78d35a268a070e4b20e46702f65d1e93da | 2,586 | py | Python | Lib/distutils/tests/test_config_cmd.py | idobatter/cpython | c7b03e7b57cedccb77e37f65f9bbcb82050c2bb5 | [
"PSF-2.0"
] | 9 | 2015-11-06T02:38:00.000Z | 2021-11-14T05:34:23.000Z | Lib/distutils/tests/test_config_cmd.py | idobatter/cpython | c7b03e7b57cedccb77e37f65f9bbcb82050c2bb5 | [
"PSF-2.0"
] | null | null | null | Lib/distutils/tests/test_config_cmd.py | idobatter/cpython | c7b03e7b57cedccb77e37f65f9bbcb82050c2bb5 | [
"PSF-2.0"
] | 2 | 2019-08-03T20:16:15.000Z | 2020-03-20T21:51:40.000Z | """Tests for distutils.command.config."""
import unittest
import os
import sys
from test.support import run_unittest
from distutils.command.config import dump_file, config
from distutils.tests import support
from distutils import log
class ConfigTestCase(support.LoggingSilencer,
support.TempdirMa... | 28.417582 | 71 | 0.598995 |
79894d6bf71c3eb38a3b60c482e35dcdfc168bc8 | 392 | py | Python | Ad-Hoc/P1250/venv/Scripts/pip-script.py | Muntaha-Islam0019/URI-Online-Judge-Solutions | 9db9cdfffe81378512e406eb14cd8525f0e013c3 | [
"MIT"
] | 1 | 2019-08-28T21:19:21.000Z | 2019-08-28T21:19:21.000Z | Ad-Hoc/P1250/venv/Scripts/pip-script.py | Muntaha-Islam0019/URI-Online-Judge-Solutions | 9db9cdfffe81378512e406eb14cd8525f0e013c3 | [
"MIT"
] | null | null | null | Ad-Hoc/P1250/venv/Scripts/pip-script.py | Muntaha-Islam0019/URI-Online-Judge-Solutions | 9db9cdfffe81378512e406eb14cd8525f0e013c3 | [
"MIT"
] | null | null | null | #!I:\URI\Ad-Hoc\P1250\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | 30.153846 | 69 | 0.653061 |
79894e51b8ef5aee61c538bf7ebdaca009d59208 | 494 | py | Python | setup.py | Mangal2021/unicase_ecommerce | 152c9237827ab3f204d744f333f130f5d420c2de | [
"MIT"
] | null | null | null | setup.py | Mangal2021/unicase_ecommerce | 152c9237827ab3f204d744f333f130f5d420c2de | [
"MIT"
] | null | null | null | setup.py | Mangal2021/unicase_ecommerce | 152c9237827ab3f204d744f333f130f5d420c2de | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open("requirements.txt") as f:
install_requires = f.read().strip().split("\n")
# get version from __version__ variable in unicase_ecom/__init__.py
from unicase_ecom import __version__ as version
setup(
name="unicase_ecom",
version=version,
description="Ecommerce S... | 24.7 | 67 | 0.783401 |
79894e757e4a3c67eeed07f3385d90da9d7fd052 | 2,079 | py | Python | src/Live-EEG_decoding/TEST_live_EEG-Split.py | gumpy-hybridBCI/gumpy-Realtime | 163f72ff4d8734cbfd13848e21ce7d4cafc6e8e9 | [
"MIT"
] | null | null | null | src/Live-EEG_decoding/TEST_live_EEG-Split.py | gumpy-hybridBCI/gumpy-Realtime | 163f72ff4d8734cbfd13848e21ce7d4cafc6e8e9 | [
"MIT"
] | null | null | null | src/Live-EEG_decoding/TEST_live_EEG-Split.py | gumpy-hybridBCI/gumpy-Realtime | 163f72ff4d8734cbfd13848e21ce7d4cafc6e8e9 | [
"MIT"
] | 1 | 2021-05-24T07:20:51.000Z | 2021-05-24T07:20:51.000Z | # Mirjam Hemberger
# 14.03.2018
# this script is used to test the functions in EEG-motor-imaginery-NST_live.py and nst_eeg_live without having to call them from record_data or run_session
# Training of the model and testing with a certain ration, e.g. 80% data for training, 20% for testing
#import matplotlib.p... | 35.237288 | 156 | 0.666667 |
79894f556441493198a401d2d0e95a5827394986 | 23,003 | py | Python | intersight/models/graphics_card.py | ategaw-cisco/intersight-python | 9d6476620507281b1dc358e29ac452d56081bbb0 | [
"Apache-2.0"
] | null | null | null | intersight/models/graphics_card.py | ategaw-cisco/intersight-python | 9d6476620507281b1dc358e29ac452d56081bbb0 | [
"Apache-2.0"
] | null | null | null | intersight/models/graphics_card.py | ategaw-cisco/intersight-python | 9d6476620507281b1dc358e29ac452d56081bbb0 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-262
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class GraphicsCard(object):
"""
NOTE: This class is... | 26.379587 | 491 | 0.584098 |
79894f620eea8d1f57f0ea282b254bc138ca6feb | 4,474 | py | Python | datalad/metadata/extractors/xmp.py | AKSoo/datalad | dbc34478980c808a86b5531316c986abac953e37 | [
"MIT"
] | null | null | null | datalad/metadata/extractors/xmp.py | AKSoo/datalad | dbc34478980c808a86b5531316c986abac953e37 | [
"MIT"
] | 1 | 2020-12-01T20:13:51.000Z | 2020-12-01T20:13:51.000Z | datalad/metadata/extractors/xmp.py | jwodder/datalad | 2b92a764fdc64b750dad68eb51c817218a1ec153 | [
"MIT"
] | null | null | null | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 et:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ### ... | 37.596639 | 101 | 0.501788 |
79894fdfa397b8a5ae117ea5289990314fa3a6b2 | 50,323 | py | Python | dvl_plotter.py | zduguid/slocum-nav | 4efa75a3b37dd6f95c199ebdc922610ad58fe688 | [
"MIT"
] | null | null | null | dvl_plotter.py | zduguid/slocum-nav | 4efa75a3b37dd6f95c199ebdc922610ad58fe688 | [
"MIT"
] | null | null | null | dvl_plotter.py | zduguid/slocum-nav | 4efa75a3b37dd6f95c199ebdc922610ad58fe688 | [
"MIT"
] | null | null | null | # micron_plotter.py
#
# Plotting utilities for Micron Sonar
# 2020-05-22 zduguid@mit.edu initial implementation
import math
import datetime
import numpy as np
import utm
import pandas as pd
import seaborn as sns
import earthpy.plot as ep
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import B... | 33.979068 | 99 | 0.55106 |
79895107abad327f86dd00175be8542c8ad82e0a | 2,833 | py | Python | osmchadjango/changeset/tests/modelfactories.py | tordans/osmcha-django | 21456989abec20c9c65a91c57cc9da8661121e6a | [
"BSD-2-Clause"
] | null | null | null | osmchadjango/changeset/tests/modelfactories.py | tordans/osmcha-django | 21456989abec20c9c65a91c57cc9da8661121e6a | [
"BSD-2-Clause"
] | null | null | null | osmchadjango/changeset/tests/modelfactories.py | tordans/osmcha-django | 21456989abec20c9c65a91c57cc9da8661121e6a | [
"BSD-2-Clause"
] | null | null | null | import json
from django.contrib.gis.geos import Polygon
from django.contrib.auth import get_user_model
from django.utils import timezone
from django.contrib.gis.geos import Point, LineString
import factory
from ..models import Changeset, SuspicionReasons, UserWhitelist, Tag
from ...feature.models import Feature
from... | 26.476636 | 79 | 0.690434 |
7989515cbaadbe0435965f772a4bf88446ff4c81 | 1,453 | py | Python | setup.py | MASILab/cachecontrol | 007e8ca94fd6ac6aeced489b549fd146bf58593f | [
"Apache-2.0"
] | null | null | null | setup.py | MASILab/cachecontrol | 007e8ca94fd6ac6aeced489b549fd146bf58593f | [
"Apache-2.0"
] | null | null | null | setup.py | MASILab/cachecontrol | 007e8ca94fd6ac6aeced489b549fd146bf58593f | [
"Apache-2.0"
] | null | null | null | import setuptools
long_description = open("README.rst").read()
VERSION = "0.12.5"
setup_params = dict(
name="CacheControl",
version=VERSION,
author="Eric Larson",
author_email="eric@ionrock.org",
url="https://github.com/ionrock/cachecontrol",
keywords="requests http caching web",
packages... | 34.595238 | 80 | 0.625602 |
798951e4f74a0a76c1348883a1df4c0799d1b9ab | 8,819 | py | Python | tools/pykitti_eval/utils/buildtools/command.py | ZhuokunYao/smoke | d524fbe43b1aba6078c25d9aca7924b71a635e1d | [
"MIT"
] | 5 | 2021-01-29T08:35:23.000Z | 2022-03-07T02:05:14.000Z | tools/pykitti_eval/utils/buildtools/command.py | ZhuokunYao/smoke | d524fbe43b1aba6078c25d9aca7924b71a635e1d | [
"MIT"
] | 1 | 2021-12-08T05:55:56.000Z | 2021-12-08T05:55:56.000Z | tools/pykitti_eval/utils/buildtools/command.py | ZhuokunYao/smoke | d524fbe43b1aba6078c25d9aca7924b71a635e1d | [
"MIT"
] | 1 | 2021-08-08T07:08:47.000Z | 2021-08-08T07:08:47.000Z | import multiprocessing
import os
import re
import subprocess
from concurrent.futures import ProcessPoolExecutor
from enum import Enum
from functools import partial
from pathlib import Path
import fire
from tools.pykitti_eval.utils.find import find_cuda, find_cuda_device_arch
class Gpp:
def __init__(self,
... | 30.835664 | 90 | 0.51321 |
798951e66daea735f1f3e84eb6908c30a2da926f | 861 | py | Python | src/utils/checks.py | vcokltfre/hcubed | d935d9d91668c85af5dc18aef6becca565d50545 | [
"MIT"
] | null | null | null | src/utils/checks.py | vcokltfre/hcubed | d935d9d91668c85af5dc18aef6becca565d50545 | [
"MIT"
] | 1 | 2022-01-29T17:00:52.000Z | 2022-01-29T17:09:31.000Z | src/utils/checks.py | vcokltfre/hcubed | d935d9d91668c85af5dc18aef6becca565d50545 | [
"MIT"
] | 2 | 2022-01-01T16:23:57.000Z | 2022-01-29T17:06:47.000Z | from discord import DMChannel
from discord.ext.commands import check
from src.internal.context import Context
def can_access(name: str, allow_dms: bool = False):
async def predicate(ctx: Context):
if await ctx.bot.is_owner(ctx.author):
return True
user = await ctx.bot.db.fetch_user(c... | 22.657895 | 78 | 0.593496 |
798952dfd2e741a5b81441b12e7e60dfe82f194a | 1,653 | py | Python | src/main.py | gomez9656/challenge-prework-backend-python | 7a17d44aa3074de6b9337073ea13455e3f0bd802 | [
"MIT"
] | null | null | null | src/main.py | gomez9656/challenge-prework-backend-python | 7a17d44aa3074de6b9337073ea13455e3f0bd802 | [
"MIT"
] | null | null | null | src/main.py | gomez9656/challenge-prework-backend-python | 7a17d44aa3074de6b9337073ea13455e3f0bd802 | [
"MIT"
] | null | null | null | # Resolve the problem!!
import string
import random
SYMBOLS = list('!"#$%&\'()*+,-./:;?@[]^_`{|}~')
abcLower = list('abcdefghijklmnopqrstwxyz')
abcUpper = list('ABCDEFGHIJKLMNOPQRSTWXYZ1234567890')
NUMBERS = list('1234567890')
def generate_password():
contraseña = ""
for i in range(4):
contraseña += ... | 23.956522 | 91 | 0.588022 |
7989530e1767a43d65c0c07af92146edff7f9c42 | 1,076 | py | Python | browse/migrations/0001_initial.py | assambar/offline-content | 8d173d098cb8c7a032cc90b774989be927a3c61a | [
"MIT"
] | null | null | null | browse/migrations/0001_initial.py | assambar/offline-content | 8d173d098cb8c7a032cc90b774989be927a3c61a | [
"MIT"
] | null | null | null | browse/migrations/0001_initial.py | assambar/offline-content | 8d173d098cb8c7a032cc90b774989be927a3c61a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-03 07:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | 31.647059 | 119 | 0.597584 |
798953d170834c151548e78127e02ebb12add2da | 781 | py | Python | migrations/versions/452faf7b38da_.py | alijafer/familyTree | 5dd011ed4dc190f75e3a91cdb64f6ee9e63122fe | [
"MIT"
] | null | null | null | migrations/versions/452faf7b38da_.py | alijafer/familyTree | 5dd011ed4dc190f75e3a91cdb64f6ee9e63122fe | [
"MIT"
] | null | null | null | migrations/versions/452faf7b38da_.py | alijafer/familyTree | 5dd011ed4dc190f75e3a91cdb64f6ee9e63122fe | [
"MIT"
] | null | null | null | """empty message
Revision ID: 452faf7b38da
Revises:
Create Date: 2020-07-04 00:50:28.003698
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '452faf7b38da'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 25.193548 | 82 | 0.6863 |
7989541f5dca156ca612b065cde0ef3fb82d58c5 | 4,529 | py | Python | backend/mainapp/settings.py | JacksoNoah/arrhythmia_project | 1a4691fe9cb70a4952dca3ca26a1ecbfe2d7231d | [
"MIT"
] | null | null | null | backend/mainapp/settings.py | JacksoNoah/arrhythmia_project | 1a4691fe9cb70a4952dca3ca26a1ecbfe2d7231d | [
"MIT"
] | null | null | null | backend/mainapp/settings.py | JacksoNoah/arrhythmia_project | 1a4691fe9cb70a4952dca3ca26a1ecbfe2d7231d | [
"MIT"
] | null | null | null | """
Django settings for mainapp project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | 26.179191 | 91 | 0.691323 |
798954a767d5d1276b57b33afb8d43d690d2a32e | 2,666 | py | Python | scenarios.py | minorchange/co2_monitor_hd | 9d91d3dcc8363c547a9040d9ea2c97d05cc82502 | [
"MIT"
] | null | null | null | scenarios.py | minorchange/co2_monitor_hd | 9d91d3dcc8363c547a9040d9ea2c97d05cc82502 | [
"MIT"
] | null | null | null | scenarios.py | minorchange/co2_monitor_hd | 9d91d3dcc8363c547a9040d9ea2c97d05cc82502 | [
"MIT"
] | null | null | null | import numpy as np
import datetime
from dateutil.relativedelta import relativedelta
def add_scenarios(df):
assert "co2_kt_total" in df.columns
assert "trend_const_kt" in df.columns
assert "trend_lin_kt" in df.columns
df["scenario_trendlin_kt"] = df["co2_kt_total"].fillna(df["trend_lin_kt"])
df["... | 28.666667 | 87 | 0.696549 |
798954d467eb796fa71344c87c0cf4994738877b | 1,040 | py | Python | data/p2DJ/New/R2/benchmark/startPyquil31.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | data/p2DJ/New/R2/benchmark/startPyquil31.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | data/p2DJ/New/R2/benchmark/startPyquil31.py | UCLA-SEAL/QDiff | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | [
"BSD-3-Clause"
] | null | null | null | # qubit number=2
# total number=7
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | 21.666667 | 64 | 0.617308 |
798954d8db3d59e1ac126a96df02f8750508100c | 308 | py | Python | Python/Pandas/I-X_method.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/Pandas/I-X_method.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/Pandas/I-X_method.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
songs={'Album':["abc","fgh","xyz","uiop"],
'Year':["122","456","545","5465"],
'length':["21","45","54","5"]}
df=pd.DataFrame(songs)
print(df)
##df.ix[0,0]
## ix is depreciated
## noice- refer to pandas documentation-slicing ranges
## variable of the data frame
print(df[:2]) | 28 | 54 | 0.613636 |
79895507f85655ebb886de00cd39e575a902ff21 | 6,838 | py | Python | tests/nn/model_parallel/test_random.py | zhaojuanmao/fairscale | 61ece000bd1b70029270e2dccab66ffa2ca16d51 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 1,662 | 2020-07-15T21:40:19.000Z | 2022-03-31T10:45:12.000Z | tests/nn/model_parallel/test_random.py | zhaojuanmao/fairscale | 61ece000bd1b70029270e2dccab66ffa2ca16d51 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 648 | 2020-07-21T19:00:32.000Z | 2022-03-30T23:11:41.000Z | tests/nn/model_parallel/test_random.py | zhaojuanmao/fairscale | 61ece000bd1b70029270e2dccab66ffa2ca16d51 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 170 | 2020-07-16T00:28:01.000Z | 2022-03-15T19:39:21.000Z | # coding=utf-8
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Ve... | 32.561905 | 118 | 0.695671 |
798957b27f96290e722d13913a99ac46a6b23f1e | 2,049 | py | Python | july12.py | wconrad9/DailyProgramming | 5c41f089fbfea56cd7c22546ad12f4ecd63bec6c | [
"MIT"
] | null | null | null | july12.py | wconrad9/DailyProgramming | 5c41f089fbfea56cd7c22546ad12f4ecd63bec6c | [
"MIT"
] | null | null | null | july12.py | wconrad9/DailyProgramming | 5c41f089fbfea56cd7c22546ad12f4ecd63bec6c | [
"MIT"
] | null | null | null | #given an N x M matrix, print it out in a spiral
test = [[1,2, 3, 4, 5, 6],
[6, 7, 8, 9, 10, 7],
[11, 12, 13, 14, 15, 8],
[16, 17, 18, 19, 20, 9],
[1,2,3,4,5, 10]]
def print2(matrix):
lowi = 0
highi = len(matrix) - 1
lowj = 0
highj = len(matrix[0]) - 1
printed = 0... | 22.516484 | 73 | 0.432406 |
7989581b7ce44ff65482bc210f5de0ff8f3a7d8e | 1,877 | py | Python | setup.py | AsciiShell/raspberrypi_omxplayer_control | ba1ae9c23e3050fada2c475af77adfe71ad7c2b7 | [
"MIT"
] | null | null | null | setup.py | AsciiShell/raspberrypi_omxplayer_control | ba1ae9c23e3050fada2c475af77adfe71ad7c2b7 | [
"MIT"
] | null | null | null | setup.py | AsciiShell/raspberrypi_omxplayer_control | ba1ae9c23e3050fada2c475af77adfe71ad7c2b7 | [
"MIT"
] | null | null | null | from pkg_resources import parse_requirements
from setuptools import find_packages, setup
def load_requirements(filename: str) -> list:
requirements = []
with open(filename, 'r') as f:
for requirement in parse_requirements(f.read()):
extras = '[{}]'.format(','.join(requirement.extras)) if r... | 34.127273 | 94 | 0.641982 |
79895863d1f3a8a0ce93592cc055611e21ca1ca8 | 4,024 | py | Python | mm_power_sdk_python/models/drug_drugclass.py | MolecularMatch/mm-power-sdk-python | 1fcbcc25c47d7b435e03929cb185eb7f10fb415d | [
"Apache-2.0"
] | null | null | null | mm_power_sdk_python/models/drug_drugclass.py | MolecularMatch/mm-power-sdk-python | 1fcbcc25c47d7b435e03929cb185eb7f10fb415d | [
"Apache-2.0"
] | null | null | null | mm_power_sdk_python/models/drug_drugclass.py | MolecularMatch/mm-power-sdk-python | 1fcbcc25c47d7b435e03929cb185eb7f10fb415d | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
MolecularMatch MMPower
MMPower API # noqa: E501
OpenAPI spec version: 1.0.0
Contact: support@molecularmatch.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DrugDrugclass(object):
"""NOTE: ... | 27.944444 | 92 | 0.555417 |
798958d41cc198be670a971df5a904e343135d47 | 17,540 | py | Python | qutip/tests/test_lattice.py | quantshah/qutip | 88919ce50880dadbc1a817a3e6059c82c23a83f9 | [
"BSD-3-Clause"
] | 1,205 | 2015-01-02T16:23:42.000Z | 2022-03-31T03:21:21.000Z | qutip/tests/test_lattice.py | MrRobot2211/qutip | b71625e004b9d99b0c2b4f777c1937d299de08e5 | [
"BSD-3-Clause"
] | 1,361 | 2015-01-09T23:38:25.000Z | 2022-03-31T12:26:07.000Z | qutip/tests/test_lattice.py | MrRobot2211/qutip | b71625e004b9d99b0c2b4f777c1937d299de08e5 | [
"BSD-3-Clause"
] | 569 | 2015-01-19T06:15:33.000Z | 2022-03-28T20:43:39.000Z | import numpy as np
import pytest
import qutip
_r2 = np.sqrt(2)
def _assert_angles_close(test, expected, atol):
"""Assert that two arrays of angles are within tolerance of each other."""
np.testing.assert_allclose(test % (2*np.pi), expected % (2*np.pi),
atol=atol)
def _hamilto... | 47.405405 | 79 | 0.526625 |
798958d5f1705e8a4c15ccdc97e1921cb7442241 | 1,530 | py | Python | env/lib/python3.8/site-packages/plotly/validators/mesh3d/colorbar/_tickfont.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 11,750 | 2015-10-12T07:03:39.000Z | 2022-03-31T20:43:15.000Z | env/lib/python3.8/site-packages/plotly/validators/mesh3d/colorbar/_tickfont.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 2,951 | 2015-10-12T00:41:25.000Z | 2022-03-31T22:19:26.000Z | env/lib/python3.8/site-packages/plotly/validators/mesh3d/colorbar/_tickfont.py | acrucetta/Chicago_COVI_WebApp | a37c9f492a20dcd625f8647067394617988de913 | [
"MIT",
"Unlicense"
] | 2,623 | 2015-10-15T14:40:27.000Z | 2022-03-28T16:05:50.000Z | import _plotly_utils.basevalidators
class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="tickfont", parent_name="mesh3d.colorbar", **kwargs):
super(TickfontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_nam... | 40.263158 | 88 | 0.561438 |
798959454c9d145bc7c58a441648e282c6f2d512 | 16,380 | py | Python | build/scripts-3.6/tracPre2.py | KejiZhaoLab/cLoops2 | 2a1ce6b63a912cdd282dc40718d2c7333e3c16b2 | [
"BSD-3-Clause"
] | 16 | 2021-07-17T07:39:26.000Z | 2022-03-10T05:35:59.000Z | build/scripts-3.6/tracPre2.py | KejiZhaoLab/cLoops2 | 2a1ce6b63a912cdd282dc40718d2c7333e3c16b2 | [
"BSD-3-Clause"
] | 1 | 2022-01-31T07:56:29.000Z | 2022-03-01T16:20:29.000Z | build/scripts-3.6/tracPre2.py | KejiZhaoLab/cLoops2 | 2a1ce6b63a912cdd282dc40718d2c7333e3c16b2 | [
"BSD-3-Clause"
] | 3 | 2021-07-22T03:56:38.000Z | 2022-02-13T05:52:14.000Z | #!python
#--coding:utf-8--
"""
tracPre.py
Pre-processing code for Hi-Trac data, implemented with cLoops2, from fastq to bedpe files and qc report.
2020-02-27: finished and well tested.
2020-06-30: add linker filter, new stat, and changing mapping to end-to-end
"""
__author__ = "CAO Yaqiang"
__email__ = "caoyaqiang0410... | 32.76 | 111 | 0.541819 |
798959e2bfac54832f9b1a7d828ed12f9188afbd | 1,001 | py | Python | angel-ps/python/pyangel/running_mode.py | luxin0123/angel | a842c1600dac167d1d99acd7094c58ff1f15fbe0 | [
"Apache-2.0"
] | null | null | null | angel-ps/python/pyangel/running_mode.py | luxin0123/angel | a842c1600dac167d1d99acd7094c58ff1f15fbe0 | [
"Apache-2.0"
] | null | null | null | angel-ps/python/pyangel/running_mode.py | luxin0123/angel | a842c1600dac167d1d99acd7094c58ff1f15fbe0 | [
"Apache-2.0"
] | null | null | null | #
# Tencent is pleased to support the open source community by making Angel available.
#
# Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. 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 obtai... | 32.290323 | 102 | 0.744256 |
79895acefffcc98ef3386636b46f031ab8298eba | 3,028 | py | Python | client/run_controller.py | kharyal/cogment-verse | 12bcb855bc742e3ec4ed11c40a1b475e95a32515 | [
"Apache-2.0"
] | null | null | null | client/run_controller.py | kharyal/cogment-verse | 12bcb855bc742e3ec4ed11c40a1b475e95a32515 | [
"Apache-2.0"
] | null | null | null | client/run_controller.py | kharyal/cogment-verse | 12bcb855bc742e3ec4ed11c40a1b475e95a32515 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 AI Redefined Inc. <dev+cogment@ai-r.com>
#
# 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... | 38.820513 | 127 | 0.653897 |
79895d13ddfc2a88203f015cb5624c1dfc14f5f4 | 6,433 | py | Python | tests/strategies.py | gappleto97/attrs | 1e8e4bc3ced1080b6591aa3fb2a39a464409d499 | [
"MIT"
] | 2 | 2018-07-26T14:32:09.000Z | 2018-07-26T14:32:23.000Z | tests/strategies.py | mr-nfamous/attrs | 64d917f7f82737ac9eec4730a274131871482579 | [
"MIT"
] | null | null | null | tests/strategies.py | mr-nfamous/attrs | 64d917f7f82737ac9eec4730a274131871482579 | [
"MIT"
] | null | null | null | """
Testing strategies for Hypothesis-based tests.
"""
import keyword
import string
from collections import OrderedDict
from hypothesis import strategies as st
import attr
from .utils import make_class
def gen_attr_names():
"""
Generate names for attributes, 'a'...'z', then 'aa'...'zz'.
~702 differe... | 31.534314 | 79 | 0.678377 |
79895d6028ce7c0abf369461eb87b8d4ebbeac46 | 28 | py | Python | modules/2.79/bpy/types/MovieClip.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/MovieClip.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/MovieClip.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | MovieClip.tracking = None
| 7 | 25 | 0.75 |
79895d77f90e4125f4a95d898315706b90287af8 | 601 | py | Python | app/__init__.py | EllyKiplaa/NewsPaper-Article | 5778db6af32d5e8547e3c990291a0189016bec05 | [
"Unlicense"
] | null | null | null | app/__init__.py | EllyKiplaa/NewsPaper-Article | 5778db6af32d5e8547e3c990291a0189016bec05 | [
"Unlicense"
] | null | null | null | app/__init__.py | EllyKiplaa/NewsPaper-Article | 5778db6af32d5e8547e3c990291a0189016bec05 | [
"Unlicense"
] | null | null | null | from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
# Creating the app configurations
app.config.from_object(config_options[config_name])
# Initializing flask extensions
boots... | 22.259259 | 55 | 0.755408 |
79895da24255727466e1bc73857ad4a5bef4ee99 | 4,590 | py | Python | code_for_figures/Fig5_composites_roms/plot_cmip6_roms_experiments.py | Timh37/SeasonalDSLC_NWES | 9cbc155448dbd0ba07a5b95c5ce49dc3cb4a4187 | [
"MIT"
] | null | null | null | code_for_figures/Fig5_composites_roms/plot_cmip6_roms_experiments.py | Timh37/SeasonalDSLC_NWES | 9cbc155448dbd0ba07a5b95c5ce49dc3cb4a4187 | [
"MIT"
] | null | null | null | code_for_figures/Fig5_composites_roms/plot_cmip6_roms_experiments.py | Timh37/SeasonalDSLC_NWES | 9cbc155448dbd0ba07a5b95c5ce49dc3cb4a4187 | [
"MIT"
] | 1 | 2021-11-19T13:30:04.000Z | 2021-11-19T13:30:04.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
#plot composite plots of the response of sea level & barotropic currents in ROMS
to dSWSpA from three CMIP6 models in winter and summer
@author: thermans
"""
import xarray as xr
import matplotlib.ticker as mticker
import matplotlib.pyplot as plt
import os
import numpy... | 42.110092 | 178 | 0.665577 |
79895f188c2944c177144735db79756865f27abf | 135 | py | Python | examples/test.py | wenhaoLong/vnpyTrader | ff37e288042b9d9f9350a1c528a53c77d56ae849 | [
"MIT"
] | null | null | null | examples/test.py | wenhaoLong/vnpyTrader | ff37e288042b9d9f9350a1c528a53c77d56ae849 | [
"MIT"
] | null | null | null | examples/test.py | wenhaoLong/vnpyTrader | ff37e288042b9d9f9350a1c528a53c77d56ae849 | [
"MIT"
] | 2 | 2021-03-07T18:13:21.000Z | 2021-12-13T10:20:10.000Z | from datetime import datetime
theTime = '2019-12-20 10:22:00'
theTime = datetime.strptime(theTime, '%Y-%m-%d %H:%M:%S')
print(theTime) | 27 | 57 | 0.703704 |
79896109d7c6364c70c0a5fb920369ee2302e0de | 12,306 | py | Python | test/functional/tests/cache_ops/test_seq_cutoff.py | sirizhou/open-cas-linux | e623c44b3b637238a8c6041f8659d8eb3766b91c | [
"BSD-3-Clause-Clear"
] | null | null | null | test/functional/tests/cache_ops/test_seq_cutoff.py | sirizhou/open-cas-linux | e623c44b3b637238a8c6041f8659d8eb3766b91c | [
"BSD-3-Clause-Clear"
] | null | null | null | test/functional/tests/cache_ops/test_seq_cutoff.py | sirizhou/open-cas-linux | e623c44b3b637238a8c6041f8659d8eb3766b91c | [
"BSD-3-Clause-Clear"
] | null | null | null | #
# Copyright(c) 2019-2020 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
import random
from enum import Enum, auto
import pytest
from api.cas import casadm
from api.cas.cache_config import SeqCutOffPolicy, CacheMode, CacheLineSize
from api.cas.core import SEQ_CUTOFF_THRESHOLD_MAX
from core.test_... | 46.263158 | 99 | 0.679425 |
798962c1c3360af2df7c705539038fc5432a00e4 | 4,299 | py | Python | data/colorschemes/ini2desc.py | akinomyoga/terminology | b7e8de3c5b7d4585d9a2b5eccc03c00394e32843 | [
"BSD-2-Clause"
] | 433 | 2015-01-08T18:28:00.000Z | 2020-09-23T07:45:18.000Z | data/colorschemes/ini2desc.py | benitofischer/terminology | b7e8de3c5b7d4585d9a2b5eccc03c00394e32843 | [
"BSD-2-Clause"
] | 54 | 2015-01-23T12:02:01.000Z | 2020-09-21T15:03:58.000Z | data/colorschemes/ini2desc.py | benitofischer/terminology | b7e8de3c5b7d4585d9a2b5eccc03c00394e32843 | [
"BSD-2-Clause"
] | 58 | 2015-02-04T04:08:12.000Z | 2020-09-18T05:00:46.000Z | #!/usr/bin/env python3
import argparse
import configparser
def parse_color(color_string):
h = color_string.lstrip('#')
if len(h) == 6:
return tuple(int(h[i:i+2], 16) for i in (0, 2, 4)) + (255,)
elif len(h) == 3:
return tuple(int(h[i]+h[i], 16) for i in (0, 1, 2)) + (255,)
elif len(h) ... | 41.336538 | 102 | 0.595487 |
798963a19ab50ab96191d9d8c559ae2b1ccc40cf | 15,754 | py | Python | posthog/models/event.py | avoajaugochukwu/posthog | 7e7fd42b0542ebc4734aedb926df11d462e3dd4f | [
"MIT"
] | 1 | 2020-07-20T17:32:05.000Z | 2020-07-20T17:32:05.000Z | posthog/models/event.py | avoajaugochukwu/posthog | 7e7fd42b0542ebc4734aedb926df11d462e3dd4f | [
"MIT"
] | null | null | null | posthog/models/event.py | avoajaugochukwu/posthog | 7e7fd42b0542ebc4734aedb926df11d462e3dd4f | [
"MIT"
] | null | null | null | import copy
import datetime
import re
from collections import defaultdict
from typing import Any, Dict, List, Tuple, Union
import celery
from dateutil.relativedelta import relativedelta
from django.conf import settings
from django.db import connection, models, transaction
from django.db.models import Exists, F, OuterR... | 42.010667 | 120 | 0.606767 |
7989647ce225adf0705a6a1ee78046192e3a0956 | 137 | py | Python | counter/urls.py | Eclatant/YouStargram | 3d19ce96869bb586f680ebb600593bcc9decf369 | [
"MIT"
] | null | null | null | counter/urls.py | Eclatant/YouStargram | 3d19ce96869bb586f680ebb600593bcc9decf369 | [
"MIT"
] | null | null | null | counter/urls.py | Eclatant/YouStargram | 3d19ce96869bb586f680ebb600593bcc9decf369 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
app_name = 'counter'
urlpatterns = [
url(r'^$', views.index, name='index'),
]
| 15.222222 | 42 | 0.664234 |
798964f4ffee8d707d9c35b8a52681516f452eac | 132,240 | py | Python | scripts/sanity_chk/sanitylib.py | Dino-Li/zephyr | 2eb633d12ed96b90babda1e3ade76941f33375d5 | [
"Apache-2.0"
] | 1 | 2021-05-28T03:02:34.000Z | 2021-05-28T03:02:34.000Z | scripts/sanity_chk/sanitylib.py | Dino-Li/zephyr | 2eb633d12ed96b90babda1e3ade76941f33375d5 | [
"Apache-2.0"
] | null | null | null | scripts/sanity_chk/sanitylib.py | Dino-Li/zephyr | 2eb633d12ed96b90babda1e3ade76941f33375d5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# vim: set syntax=python ts=4 :
#
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import os
import contextlib
import string
import mmap
import sys
import re
import subprocess
import select
import shutil
import shlex
import signal
import threading
import concurrent.fu... | 37.408769 | 132 | 0.532895 |
798965d4e640a99fa66dca377aa25a00a113177d | 22,370 | py | Python | tests/test_implementations/api_test_async/test_create_one_api.py | fossabot/FastAPIQuickCRUD | 69226ec9959dfed41fdfe69f59d8c622bd3726fb | [
"MIT"
] | null | null | null | tests/test_implementations/api_test_async/test_create_one_api.py | fossabot/FastAPIQuickCRUD | 69226ec9959dfed41fdfe69f59d8c622bd3726fb | [
"MIT"
] | null | null | null | tests/test_implementations/api_test_async/test_create_one_api.py | fossabot/FastAPIQuickCRUD | 69226ec9959dfed41fdfe69f59d8c622bd3726fb | [
"MIT"
] | null | null | null | import json
import random
import uuid
from datetime import date, timedelta, datetime, timezone
from starlette.testclient import TestClient
from src.fastapi_quickcrud import sqlalchemy_to_pydantic
from src.fastapi_quickcrud.crud_router import CrudService
from src.fastapi_quickcrud.crud_router import crud_router_builde... | 43.185328 | 120 | 0.611399 |
79896678c447a992294fcb579ba4bc0a38efd77c | 842 | py | Python | main.py | no5no6/jd-assistant | 06da2f2a12ad32126141baeb40bffae82e68586b | [
"MIT"
] | null | null | null | main.py | no5no6/jd-assistant | 06da2f2a12ad32126141baeb40bffae82e68586b | [
"MIT"
] | null | null | null | main.py | no5no6/jd-assistant | 06da2f2a12ad32126141baeb40bffae82e68586b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from jd_assistant import Assistant
if __name__ == '__main__':
"""
重要提示:此处为示例代码之一,请移步下面的链接查看使用教程👇
https://github.com/tychxn/jd-assistant/wiki/1.-%E4%BA%AC%E4%B8%9C%E6%8A%A2%E8%B4%AD%E5%8A%A9%E6%89%8B%E7%94%A8%E6%B3%95
"""
asst = Assistant() # 初始化
a... | 33.68 | 136 | 0.633017 |
7989668335c0d2d63188075fb60aaa8e693ec9c9 | 5,386 | py | Python | donkeypart_sonicrangesensor/hc_sr04.py | coolerking/donkeypart_hc_sr04 | a27cc05c425729456f21ef6e298321c2035be8dd | [
"MIT"
] | null | null | null | donkeypart_sonicrangesensor/hc_sr04.py | coolerking/donkeypart_hc_sr04 | a27cc05c425729456f21ef6e298321c2035be8dd | [
"MIT"
] | null | null | null | donkeypart_sonicrangesensor/hc_sr04.py | coolerking/donkeypart_hc_sr04 | a27cc05c425729456f21ef6e298321c2035be8dd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
超音波距離センサモジュール HC-SR04(SparkFun販売品)
https://www.switch-science.com/catalog/2860/
- 仕様
- 電源電圧: 5 V
- 待機電流: 2 mA未満
- 信号出力: 0~5 V
- センサ角度: 15 度以下
- 測定可能距離: 2~400 cm
分解能: 0.3 cm
端子間隔: 2.54 mm
- 使い方
- トリガ端子を10 us以上Highにしてください。
- このセンサモジュールが40 kHzのパルスを8回送信して受信... | 25.770335 | 73 | 0.527293 |
798966c28e6ad03ae4ebc8f6597b896df7d759f3 | 9,528 | py | Python | devel/lib/python2.7/dist-packages/costmap_prohibition_layer/srv/_GetProhibitedPoints.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | devel/lib/python2.7/dist-packages/costmap_prohibition_layer/srv/_GetProhibitedPoints.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | devel/lib/python2.7/dist-packages/costmap_prohibition_layer/srv/_GetProhibitedPoints.py | Jam-cpu/Masters-Project---Final | 0b266b1f117a579b96507249f0a128d0e3cc082a | [
"BSD-3-Clause-Clear"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from costmap_prohibition_layer/GetProhibitedPointsRequest.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class GetProhibitedPointsRequest(genpy.Message):
... | 34.150538 | 145 | 0.651448 |
798967cb21938c6302dafe3b3278c1cfabc11b20 | 636 | py | Python | covid19_sfbayarea/errors.py | benghancock/data-covid19-sfbayarea | c2ff689c1a2a99ef331f635e27d64cf1dc8b31f3 | [
"MIT"
] | 10 | 2020-04-08T02:36:08.000Z | 2020-07-08T03:08:01.000Z | covid19_sfbayarea/errors.py | benghancock/data-covid19-sfbayarea | c2ff689c1a2a99ef331f635e27d64cf1dc8b31f3 | [
"MIT"
] | 167 | 2020-03-21T02:50:05.000Z | 2021-12-28T16:47:54.000Z | covid19_sfbayarea/errors.py | benghancock/data-covid19-sfbayarea | c2ff689c1a2a99ef331f635e27d64cf1dc8b31f3 | [
"MIT"
] | 11 | 2020-03-25T15:31:27.000Z | 2020-11-16T05:02:12.000Z | import requests
class FormatError(Exception):
"""
A custom error to raise whenever a scraper runs into something in an
unexpected format. This usually means that the website the scraper is
accessing has changed.
"""
pass
class PowerBiQueryError(ValueError):
"""
Represents an error re... | 23.555556 | 73 | 0.669811 |
7989682afc58b56ad761fe641c4e52aa116504c4 | 2,208 | py | Python | sharpy-sc2/sharpy/combat/protoss/micro_zealots.py | ProfessorQu/Sharpy-Bot | a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e | [
"MIT"
] | null | null | null | sharpy-sc2/sharpy/combat/protoss/micro_zealots.py | ProfessorQu/Sharpy-Bot | a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e | [
"MIT"
] | null | null | null | sharpy-sc2/sharpy/combat/protoss/micro_zealots.py | ProfessorQu/Sharpy-Bot | a8bf7ebbed113f5bf0f6891c9ca45fac9edfb26e | [
"MIT"
] | null | null | null | from sharpy.combat import MicroStep, Action, MoveType, NoAction
from sc2.ids.buff_id import BuffId
from sc2.unit import Unit
from sc2.units import Units
class MicroZealots(MicroStep):
def group_solve_combat(self, units: Units, current_command: Action) -> Action:
if self.move_type == MoveType.DefensiveRetr... | 46.978723 | 107 | 0.645833 |
79896830c299dba2cbe0a77a941e403cb444910f | 10,090 | py | Python | mc_states/modules/mc_corpusops.py | makinacorpus/makina-states | 8ae1ccd1a0b614a7f308229c07e1493b06f5883a | [
"BSD-3-Clause"
] | 18 | 2015-02-22T12:53:50.000Z | 2019-03-15T16:45:10.000Z | mc_states/modules/mc_corpusops.py | makinacorpus/makina-states | 8ae1ccd1a0b614a7f308229c07e1493b06f5883a | [
"BSD-3-Clause"
] | 20 | 2015-01-20T22:35:02.000Z | 2017-11-06T11:17:34.000Z | mc_states/modules/mc_corpusops.py | makinacorpus/makina-states | 8ae1ccd1a0b614a7f308229c07e1493b06f5883a | [
"BSD-3-Clause"
] | 5 | 2015-01-13T04:23:09.000Z | 2019-01-03T17:00:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
'''
think to /srv/makina-states/venv/bin/pip install ruamel.yaml
'''
import ruamel.yaml as _y
import re
import os
import logging
import json
from salt.utils impo... | 33.410596 | 85 | 0.573835 |
7989683f535f7aae11f57652c7a8027d1497f99e | 1,614 | py | Python | modin/sql/connection.py | adits31/modin | 90d277f56027c3825bdd440a07216e97c6b106b9 | [
"Apache-2.0"
] | 1 | 2019-03-12T08:24:24.000Z | 2019-03-12T08:24:24.000Z | modin/sql/connection.py | adits31/modin | 90d277f56027c3825bdd440a07216e97c6b106b9 | [
"Apache-2.0"
] | null | null | null | modin/sql/connection.py | adits31/modin | 90d277f56027c3825bdd440a07216e97c6b106b9 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from ..pandas import Series, DataFrame
class Connection(object):
def __init__(self, name):
self._name = name
self._cursor = None
def cursor(self):
self._cursor = Cursor()
... | 28.315789 | 88 | 0.605328 |
79896a0a05b33da7272eb4513ae96eb4fe65de37 | 466 | py | Python | week1/week_1_first_meet.py | b06401098/b06401098_ | c97be047e85e2645375cdcd42bec0711c7380bbe | [
"MIT"
] | null | null | null | week1/week_1_first_meet.py | b06401098/b06401098_ | c97be047e85e2645375cdcd42bec0711c7380bbe | [
"MIT"
] | null | null | null | week1/week_1_first_meet.py | b06401098/b06401098_ | c97be047e85e2645375cdcd42bec0711c7380bbe | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 1 15:50:43 2018
@author: user
"""
import pandas as pd
df = pd.read_csv('Ntu_Orders.csv')
df.head()
df.tail()
df.shape
df.info()
df['new_DateId'] = pd.to_datetime(df['DateId'].astype(str),format='%Y%m%d')
df.info()
df.head()
df['Quantity'].head()
df.loc[1000:1005... | 13.705882 | 75 | 0.639485 |
79896bcc63c2b7a272e4cb89ee2e0787b7553935 | 4,302 | py | Python | vebits_api/xml_util.py | hnt4499/vebits-api | 932ff4bd9abc493f225d5b7f0b5f1767008b725a | [
"MIT"
] | null | null | null | vebits_api/xml_util.py | hnt4499/vebits-api | 932ff4bd9abc493f225d5b7f0b5f1767008b725a | [
"MIT"
] | null | null | null | vebits_api/xml_util.py | hnt4499/vebits-api | 932ff4bd9abc493f225d5b7f0b5f1767008b725a | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
import os
def create_xml_file(img_path, img_width, img_height, bbox_list, xml_path=None):
# create the file structure
annotate = ET.Element('annotation')
folder = ET.SubElement(annotate, 'folder')
filename = ET.SubElement(annotate, 'filename')
path = ET.SubElemen... | 30.728571 | 83 | 0.64993 |
79896bd7ffa6c2290d1fbc175c0fb3c9363cec27 | 20,748 | py | Python | ibis/config.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | null | null | null | ibis/config.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | 6 | 2017-05-18T19:49:09.000Z | 2019-03-27T15:37:14.000Z | ibis/config.py | tswast/ibis | 2f6d47e4c33cefd7ea1d679bb1d9253c2245993b | [
"Apache-2.0"
] | 1 | 2017-06-26T15:43:35.000Z | 2017-06-26T15:43:35.000Z | # This file has been adapted from pandas/core/config.py. pandas 3-clause BSD
# license. See LICENSES/pandas
#
# Further modifications:
#
# Copyright 2014 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain ... | 28.305593 | 79 | 0.626422 |
79896cf71ade0c4d03b7a89132472646bbae9b24 | 175 | py | Python | db_tools/data/orgz_data.py | thebesteric/bright | 4cd8173e7e53115395fcf25bd4db72990fdb6b3f | [
"MIT"
] | null | null | null | db_tools/data/orgz_data.py | thebesteric/bright | 4cd8173e7e53115395fcf25bd4db72990fdb6b3f | [
"MIT"
] | null | null | null | db_tools/data/orgz_data.py | thebesteric/bright | 4cd8173e7e53115395fcf25bd4db72990fdb6b3f | [
"MIT"
] | null | null | null | row_data = [
{
'name': '系统组织机构',
'address': None,
'charge': None,
'phone': None,
'position': None,
'parent': None
},
]
| 15.909091 | 25 | 0.4 |
79896d3c6d5f650e65a0b12ba55965a3ba3471b6 | 154 | py | Python | alhoda/alhoda/doctype/item_enquiry/test_item_enquiry.py | syedmalikali/alhoda | 58684852803dd944a526abaeb9296aecfdc1ef46 | [
"MIT"
] | null | null | null | alhoda/alhoda/doctype/item_enquiry/test_item_enquiry.py | syedmalikali/alhoda | 58684852803dd944a526abaeb9296aecfdc1ef46 | [
"MIT"
] | null | null | null | alhoda/alhoda/doctype/item_enquiry/test_item_enquiry.py | syedmalikali/alhoda | 58684852803dd944a526abaeb9296aecfdc1ef46 | [
"MIT"
] | null | null | null | # Copyright (c) 2022, Syed Malik Ali and Contributors
# See license.txt
# import frappe
import unittest
class TestItemEnquiry(unittest.TestCase):
pass
| 17.111111 | 53 | 0.779221 |
79896d5b79863a5f8249500f23d38dad2b4c5409 | 6,322 | py | Python | tests/integration/tf_mnist_classifier/conftest.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 14 | 2021-06-17T15:16:12.000Z | 2021-11-08T10:25:37.000Z | tests/integration/tf_mnist_classifier/conftest.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 7 | 2021-09-20T20:20:26.000Z | 2022-03-30T13:17:43.000Z | tests/integration/tf_mnist_classifier/conftest.py | usnistgov/dioptra | 08a08e96c27787915bafc75a483431333e2c70ca | [
"CC-BY-4.0"
] | 4 | 2021-06-29T16:52:42.000Z | 2022-01-21T16:56:45.000Z | # This Software (Dioptra) is being made available as a public service by the
# National Institute of Standards and Technology (NIST), an Agency of the United
# States Department of Commerce. This software was developed in part by employees of
# NIST and in part by NIST contractors. Copyright in portions of this softwar... | 37.408284 | 87 | 0.681272 |
79896e39264b155f54e34c556cd64bb1cddbcb33 | 5,112 | py | Python | code/homophones.py | hanuele/knausj_german | cc6b66b0e5333714fcb5c9a96521af779927b795 | [
"MIT"
] | null | null | null | code/homophones.py | hanuele/knausj_german | cc6b66b0e5333714fcb5c9a96521af779927b795 | [
"MIT"
] | null | null | null | code/homophones.py | hanuele/knausj_german | cc6b66b0e5333714fcb5c9a96521af779927b795 | [
"MIT"
] | null | null | null | from talon import Context, Module, app, clip, cron, imgui, actions, ui, fs
import os
########################################################################
# global settings
########################################################################
# a list of homophones where each line is a comma separated list
# e.... | 31.170732 | 117 | 0.653951 |
79896ee51e4646a644082da486b651380e4f9339 | 1,516 | py | Python | invenio_app_ils/notifications/models.py | NRodriguezcuellar/invenio-app-ils | 144a25a6c56330b214c6fd0b832220fa71f2e68a | [
"MIT"
] | 41 | 2018-09-04T13:00:46.000Z | 2022-03-24T20:45:56.000Z | invenio_app_ils/notifications/models.py | NRodriguezcuellar/invenio-app-ils | 144a25a6c56330b214c6fd0b832220fa71f2e68a | [
"MIT"
] | 720 | 2017-03-10T08:02:41.000Z | 2022-01-14T15:36:37.000Z | invenio_app_ils/notifications/models.py | NRodriguezcuellar/invenio-app-ils | 144a25a6c56330b214c6fd0b832220fa71f2e68a | [
"MIT"
] | 54 | 2017-03-09T16:05:29.000Z | 2022-03-17T08:34:51.000Z | # Copyright (C) 2021 CERN.
#
# invenio-app-ils is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Database model for notifications."""
from datetime import datetime
from invenio_db import db
class NotificationsLogs(db.Model):
"... | 28.603774 | 76 | 0.671504 |
79896f6e614a809997620e5a368d7f72e110682a | 6,466 | py | Python | config/settings/production.py | andresgz/zshoes | a9c2a11a0059558719cb5694b168022c9a18d24e | [
"BSD-3-Clause"
] | null | null | null | config/settings/production.py | andresgz/zshoes | a9c2a11a0059558719cb5694b168022c9a18d24e | [
"BSD-3-Clause"
] | null | null | null | config/settings/production.py | andresgz/zshoes | a9c2a11a0059558719cb5694b168022c9a18d24e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Production Configurations
- Use djangosecure
- Use Amazon's S3 for storing static files and uploaded media
- Use Redis on Heroku
'''
from __future__ import absolute_import, unicode_literals
from boto.s3.connection import OrdinaryCallingFormat
from django.utils import six
from .common i... | 34.21164 | 117 | 0.623569 |
79897014c127834612146eac59fc3954855bfd8b | 1,933 | py | Python | assign-without-priors.py | jweisz/reviewer-assignment | c3e5a56b7583d3208cbe2718a06d4e7d81845d5f | [
"MIT"
] | null | null | null | assign-without-priors.py | jweisz/reviewer-assignment | c3e5a56b7583d3208cbe2718a06d4e7d81845d5f | [
"MIT"
] | null | null | null | assign-without-priors.py | jweisz/reviewer-assignment | c3e5a56b7583d3208cbe2718a06d4e7d81845d5f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from numpy.random import default_rng
import argparse
import csv
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Create reviewing assignments')
parser.add_argument('--n', dest='n', type=int, default=3, required=False, help='number of reviews per submission')
a... | 29.738462 | 118 | 0.58924 |
79897031bbcadbe195d949b777698e9b5a12a363 | 21,802 | py | Python | ecoxipy/pyxom/__init__.py | IvIePhisto/ECoXiPy | 8b5bad54c9b7fbce331da51d3261a1de3a8d7ff9 | [
"MIT"
] | 1 | 2021-11-21T01:36:20.000Z | 2021-11-21T01:36:20.000Z | ecoxipy/pyxom/__init__.py | IvIePhisto/ECoXiPy | 8b5bad54c9b7fbce331da51d3261a1de3a8d7ff9 | [
"MIT"
] | null | null | null | ecoxipy/pyxom/__init__.py | IvIePhisto/ECoXiPy | 8b5bad54c9b7fbce331da51d3261a1de3a8d7ff9 | [
"MIT"
] | 2 | 2017-05-21T13:09:37.000Z | 2021-11-21T01:36:13.000Z | # -*- coding: utf-8 -*-
u'''\
:mod:`ecoxipy.pyxom` - Pythonic XML Object Model (PyXOM)
========================================================
This module implements the *Pythonic XML Object Model* (PyXOM) for the
representation of XML structures. To conveniently create PyXOM data structures
use :mod:`ecoxipy.pyxom.o... | 37.01528 | 885 | 0.66237 |
798970c1a9541add7f42dc26509d862670a3fc4d | 2,084 | py | Python | aliyun-python-sdk-nlp-automl/aliyunsdknlp_automl/request/v20191111/GetPredictResultRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-nlp-automl/aliyunsdknlp_automl/request/v20191111/GetPredictResultRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-nlp-automl/aliyunsdknlp_automl/request/v20191111/GetPredictResultRequest.py | yndu13/aliyun-openapi-python-sdk | 12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # 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 u... | 33.612903 | 88 | 0.756238 |
798970ee1a6d574f0114cf5bf2b645347031a767 | 778 | py | Python | Scripts/rst2html4.py | raghavag1997/python-package | 37305df4c99075864863c549b246a241107a61cc | [
"MIT"
] | null | null | null | Scripts/rst2html4.py | raghavag1997/python-package | 37305df4c99075864863c549b246a241107a61cc | [
"MIT"
] | null | null | null | Scripts/rst2html4.py | raghavag1997/python-package | 37305df4c99075864863c549b246a241107a61cc | [
"MIT"
] | null | null | null | #!g:\myazuredevops\python-package-publish\raghav-sample-package\scripts\python.exe
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
Th... | 28.814815 | 82 | 0.751928 |
798970fe6aa553cfc8722b35cc05b7d3df0416e1 | 6,499 | py | Python | snipssonos/spotify.py | alaa-saade/snips-skill-sonos-fr | 63e7c5dcea975cda11d66e7eb23195025a98b9fa | [
"MIT"
] | 1 | 2017-11-30T23:55:03.000Z | 2017-11-30T23:55:03.000Z | snipssonos/spotify.py | alaa-saade/snips-skill-sonos-fr | 63e7c5dcea975cda11d66e7eb23195025a98b9fa | [
"MIT"
] | null | null | null | snipssonos/spotify.py | alaa-saade/snips-skill-sonos-fr | 63e7c5dcea975cda11d66e7eb23195025a98b9fa | [
"MIT"
] | null | null | null | # -*-: coding utf-8 -*-
""" Sonos skill for Snips. """
import codecs
import requests
class SpotifyClient():
def __init__(self, spotify_refresh_token):
self.client_id = "765e1498b29949c5a36dbcae4eea8330"
self.client_secret = "72e1fb080f3a49f99b357fd6b8d79cd7"
self.refresh_token = spotify_... | 33.158163 | 93 | 0.470688 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.