hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b0ae110e75aef694246596b4752c1c8fe5964c94
685
py
Python
setup.py
Vgrams05/lambdata-Vgrams05
0390c5b8ed705867b150200fc1635706b6926214
[ "MIT" ]
null
null
null
setup.py
Vgrams05/lambdata-Vgrams05
0390c5b8ed705867b150200fc1635706b6926214
[ "MIT" ]
null
null
null
setup.py
Vgrams05/lambdata-Vgrams05
0390c5b8ed705867b150200fc1635706b6926214
[ "MIT" ]
null
null
null
import setuptools REQUIRED = ["numpy", "pandas"] with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="lambdata-Vgrams05", version="0.0.1", author="Virginia Grams", description="A collection of Data Science functions", long_description=long...
29.782609
60
0.665693
8fc1e5a73ed46814a4f690b5c274aaea4b44dfed
4,731
py
Python
Models/Electricity_Market/Merit_Order/V001/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
2
2018-05-31T15:02:08.000Z
2018-07-11T11:02:44.000Z
Models/Electricity_Market/Merit_Order/V001/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
Models/Electricity_Market/Merit_Order/V001/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
from pyjamas_core.util import Input, Output, Property from pyjamas_core.supermodel import Supermodel import numpy as np import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches import pandas as pd class Model(Supermodel): def __init__(self, uuid, name :str): s...
46.382353
154
0.617628
9067859abbff9110d21ae8c6dfd9e84b48db6941
9,439
py
Python
build/build.py
jekbradbury/jax
5592a063375a8feb4439e35edd8c335264dc1e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/build.py
jekbradbury/jax
5592a063375a8feb4439e35edd8c335264dc1e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/build.py
jekbradbury/jax
5592a063375a8feb4439e35edd8c335264dc1e6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.06051
80
0.692764
729cfecacf6f3def2306f21b6ca3e7c4604dc0b0
604
py
Python
ThinkPython/chap11/ex3.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap11/ex3.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap11/ex3.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
def hist(s): """ Count the number of times each char appears in a given string. Store chars as dict keys and number of appearencess as values. """ d = dict() for c in s: d[c] = d.get(c, 0) + 1 return d def print_hist(h): """ Print dictionaries keys and their values in alphab...
21.571429
66
0.604305
390bcae8244f02915b3c38b190453a9eccfc6f18
2,245
py
Python
benchmarks/content_creation/tensorflow/draw/inference/fp32/model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
1
2019-05-23T01:07:23.000Z
2019-05-23T01:07:23.000Z
benchmarks/content_creation/tensorflow/draw/inference/fp32/model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
benchmarks/content_creation/tensorflow/draw/inference/fp32/model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
# # -*- coding: utf-8 -*- # # Copyright (c) 2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.803279
80
0.66147
dccf2b9e20c5a8b04c9167453af999b2b700889e
1,288
py
Python
venv/lib/python3.7/site-packages/twilio/rest/events/v1/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
3
2020-12-14T03:29:02.000Z
2020-12-24T22:04:48.000Z
venv/lib/python3.7/site-packages/twilio/rest/events/v1/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
1
2020-08-25T15:27:57.000Z
2020-08-25T15:27:57.000Z
venv/lib/python3.7/site-packages/twilio/rest/events/v1/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base.version import Version from twilio.rest.events.v1.sink import SinkList from twilio.rest.events.v1.subscription import SubscriptionList class V1(Version): def __init__(self, do...
23.851852
67
0.584627
f85de551128233d90063590b1c46f06497bb6b3d
1,647
py
Python
dae/dae/utils/dae_utils.py
iossifovlab/gpf
e556243d29666179dbcb72859845b4d6c011af2b
[ "MIT" ]
null
null
null
dae/dae/utils/dae_utils.py
iossifovlab/gpf
e556243d29666179dbcb72859845b4d6c011af2b
[ "MIT" ]
82
2019-07-22T11:44:23.000Z
2022-01-13T15:27:33.000Z
dae/dae/utils/dae_utils.py
iossifovlab/gpf
e556243d29666179dbcb72859845b4d6c011af2b
[ "MIT" ]
null
null
null
import re SUB_COMPLEX_RE = re.compile(r"^(sub|complex)\(([NACGT]+)->([NACGT]+)\)$") INS_RE = re.compile(r"^ins\(([NACGT]+)\)$") DEL_RE = re.compile(r"^del\((\d+)\)$") def cached(prop): cached_val_name = "_" + prop.__name__ def wrap(self): if getattr(self, cached_val_name, None) is None: s...
27
74
0.590164
e4fcd3d9c15bc2b985cd2bf7837b988c382b3f06
487
py
Python
main.py
vohanhattan/real-time-streaming
d721585190acfee6945cf83b1ca0df15042f29ff
[ "MIT" ]
7
2019-12-27T01:21:38.000Z
2022-02-13T13:11:04.000Z
main.py
vohanhattan/real-time-streaming
d721585190acfee6945cf83b1ca0df15042f29ff
[ "MIT" ]
1
2021-10-04T21:39:47.000Z
2021-10-04T23:41:55.000Z
main.py
vohanhattan/real-time-streaming
d721585190acfee6945cf83b1ca0df15042f29ff
[ "MIT" ]
4
2020-03-06T18:30:13.000Z
2022-03-21T07:24:42.000Z
from flask_handler import start_flask_application, app import webbrowser import threading import functools from config_handler import ConfigHandler """ Start Program with this file by running "python3 start.py" """ [HOST, PORT] = ConfigHandler().get_all("Website") # pylint: disable=unbalanced-tuple-unpacking url = "...
25.631579
94
0.753593
f1085f942772544bc30d1efabe3ee29f116c411d
8,496
py
Python
pose_detector.py
ShiChenAI/Handrail-safety-monitoring
a71fd483d6def6639abb4d32944ee9c5335ee2f7
[ "MIT" ]
null
null
null
pose_detector.py
ShiChenAI/Handrail-safety-monitoring
a71fd483d6def6639abb4d32944ee9c5335ee2f7
[ "MIT" ]
null
null
null
pose_detector.py
ShiChenAI/Handrail-safety-monitoring
a71fd483d6def6639abb4d32944ee9c5335ee2f7
[ "MIT" ]
null
null
null
import argparse import cv2 import json import math import numpy as np from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval import torch from datasets.coco import CocoValDataset from modules.with_mobilenet import PoseEstimationWithMobileNet from modules.keypoints import extract_keypoints, group_...
41.242718
125
0.645598
d6f55dd8fdcbf213540270f34d3d1698874e5a12
484
py
Python
app/apps/users/migrations/0010_auto_20200828_0823.py
lawi21/escriptorium
6043b0cb3894bb308a37ed97a26114dcea883834
[ "MIT" ]
4
2021-09-21T09:15:24.000Z
2022-02-12T13:36:33.000Z
app/apps/users/migrations/0010_auto_20200828_0823.py
lawi21/escriptorium
6043b0cb3894bb308a37ed97a26114dcea883834
[ "MIT" ]
1
2021-11-30T12:04:11.000Z
2021-11-30T12:04:11.000Z
app/apps/users/migrations/0010_auto_20200828_0823.py
stweil/escriptorium
63a063f2dbecebe9f79aa6376e99030f49a02502
[ "MIT" ]
2
2021-11-10T09:39:52.000Z
2022-01-10T08:52:40.000Z
# Generated by Django 2.1.4 on 2020-08-28 08:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0009_contactus'), ] operations = [ migrations.AlterModelOptions( name='contactus', options={'verbose_name': 'messag...
22
83
0.578512
1e72d1bf8c16b937b46300e6c6da5d35bc0a1aec
1,992
py
Python
trove/tests/unittests/volume_type/test_volume_type.py
viettelidc-oss/trove
2d301d0a21863c6c0fbb9e854c7eb8ad8f19bbc1
[ "Apache-2.0" ]
1
2020-04-08T07:42:19.000Z
2020-04-08T07:42:19.000Z
trove/tests/unittests/volume_type/test_volume_type.py
ttcong/trove
1db2dc63fdd5409eafccebe79ff2900d0535ed13
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/volume_type/test_volume_type.py
ttcong/trove
1db2dc63fdd5409eafccebe79ff2900d0535ed13
[ "Apache-2.0" ]
1
2020-04-08T07:45:25.000Z
2020-04-08T07:45:25.000Z
# Copyright 2016 Tesora, 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 ...
37.584906
78
0.713353
7654127c0906077386d396d4719c85b99d3d6ef3
503,255
py
Python
ucscsdk/mometa/fault/FaultDomainInst.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
null
null
null
ucscsdk/mometa/fault/FaultDomainInst.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
null
null
null
ucscsdk/mometa/fault/FaultDomainInst.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for FaultDomainInst ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class FaultDomainInstConsts(): ACK_FALSE = "false" ACK_NO = "no" ACK_TRUE = "true" ...
83.168898
89,187
0.772233
1ce66a955e5384fc3c753251cd2b6b5ebc4b70c3
6,371
py
Python
config/settings/production.py
Tobi-De/Tweetme
2c72c99eee47ae61df364c7a4e9acec954e974fa
[ "MIT" ]
null
null
null
config/settings/production.py
Tobi-De/Tweetme
2c72c99eee47ae61df364c7a4e9acec954e974fa
[ "MIT" ]
null
null
null
config/settings/production.py
Tobi-De/Tweetme
2c72c99eee47ae61df364c7a4e9acec954e974fa
[ "MIT" ]
null
null
null
import logging import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.logging import LoggingIntegration from sentry_sdk.integrations.celery import CeleryIntegration from .base import * # noqa from .base import env # GENERAL # ------------------------------------...
37.922619
91
0.591273
e77e436ca6a8d5500deaed34bd2ed6ae05e0ec8e
11,600
py
Python
google/datalab/ml/_cloud_models.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
null
null
null
google/datalab/ml/_cloud_models.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
null
null
null
google/datalab/ml/_cloud_models.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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 agreed ...
41.134752
99
0.670776
8cf8236fddda2d9696b9898b841d1c7cc336bed9
17,192
py
Python
xbots/quickbot_v1.py
ericlittlefield/quickbot_rpi
20181c8ff772514cbf2349e4d7611c22eac64b5a
[ "BSD-3-Clause" ]
null
null
null
xbots/quickbot_v1.py
ericlittlefield/quickbot_rpi
20181c8ff772514cbf2349e4d7611c22eac64b5a
[ "BSD-3-Clause" ]
null
null
null
xbots/quickbot_v1.py
ericlittlefield/quickbot_rpi
20181c8ff772514cbf2349e4d7611c22eac64b5a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """ @brief QuickBot class for Beaglebone Black @author Rowland O'Flaherty (rowlandoflaherty.com) @date 02/07/2014 @version: 1.0 @copyright: Copyright (C) 2014, Georgia Tech Research Corporation see the LICENSE file included with this software (see LINENSE file) """ from __future__ import division im...
40.168224
79
0.525768
d7e17a48a20b93c7dc3608cb67b08362f223dd8b
17,022
py
Python
pythran/tests/test_operator.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2018-03-24T00:33:03.000Z
2018-03-24T00:33:03.000Z
pythran/tests/test_operator.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/test_operator.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
from test_env import TestEnv import sys import unittest from pythran.typing import List @TestEnv.module class TestOperator(TestEnv): def test_lt(self): self.run_test("def lt(a,b):\n from operator import lt\n return lt(a,b)", 1, 2, lt=[int,int]) def test_le(self): self.run_test("def le(a,b):...
49.917889
181
0.666138
e8e053f222e013fc3e8d358533a9a10edaf5572c
6,440
py
Python
rulematrix/surrogate/surrogate.py
bgulowaty/rule-matrix-py
6bebb277c42d844c34828adc76dafc0514e0fee2
[ "MIT" ]
60
2018-08-12T12:18:30.000Z
2022-02-26T13:56:32.000Z
rulematrix/surrogate/surrogate.py
bgulowaty/rule-matrix-py
6bebb277c42d844c34828adc76dafc0514e0fee2
[ "MIT" ]
5
2019-03-14T11:31:11.000Z
2020-06-28T12:04:45.000Z
rulematrix/surrogate/surrogate.py
bgulowaty/rule-matrix-py
6bebb277c42d844c34828adc76dafc0514e0fee2
[ "MIT" ]
14
2018-11-02T20:50:10.000Z
2021-12-24T09:41:46.000Z
from typing import Callable import warnings import numpy as np from rulematrix.surrogate import create_sampler, check_input_constraints from rulematrix.surrogate import RuleList from rulematrix.metrics import accuracy def surrogate(student, teacher, X, verbose=False): """ Fit a model that surrogates the tar...
41.548387
116
0.658075
ddad56f597aaeb49c53390a13425ad02f3390156
6,649
py
Python
tensor2tensor/utils/adv_attack_utils.py
vishwas1234567/tensor2tensor
d62e2ee1b069d3d9b327d4d2dd6f9e50b7e62bb3
[ "Apache-2.0" ]
null
null
null
tensor2tensor/utils/adv_attack_utils.py
vishwas1234567/tensor2tensor
d62e2ee1b069d3d9b327d4d2dd6f9e50b7e62bb3
[ "Apache-2.0" ]
null
null
null
tensor2tensor/utils/adv_attack_utils.py
vishwas1234567/tensor2tensor
d62e2ee1b069d3d9b327d4d2dd6f9e50b7e62bb3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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 applicable...
33.079602
130
0.643555
c8044f6990a4d6cdd7c78df781cad1efbcffdb9e
2,707
py
Python
homeassistant/components/wallbox/const.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
5
2019-02-24T11:46:18.000Z
2019-05-28T17:37:21.000Z
homeassistant/components/wallbox/const.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/wallbox/const.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Constants for the Wallbox integration.""" from homeassistant.const import ( CONF_ICON, CONF_NAME, CONF_UNIT_OF_MEASUREMENT, ELECTRIC_CURRENT_AMPERE, ENERGY_KILO_WATT_HOUR, LENGTH_KILOMETERS, PERCENTAGE, POWER_KILO_WATT, STATE_UNAVAILABLE, ) DOMAIN = "wallbox" CONF_STATION = "sta...
27.07
58
0.618027
ab6ae4643a78aadf686272be603e894907cbffc0
4,193
py
Python
sampler.py
lvxingvir/template
089f5817e031a7c2b2d82e239158a6a5488b3b26
[ "MIT" ]
null
null
null
sampler.py
lvxingvir/template
089f5817e031a7c2b2d82e239158a6a5488b3b26
[ "MIT" ]
null
null
null
sampler.py
lvxingvir/template
089f5817e031a7c2b2d82e239158a6a5488b3b26
[ "MIT" ]
null
null
null
import torch import numpy as np import copy import re is_torchvision_installed = True try: import torchvision except: is_torchvision_installed = False import torch.utils.data import random def find_all_index(arr, item): return [i for i, a in enumerate(arr) if a == item] class BalancedBatchSampler(torch...
41.514851
109
0.579776
f9dcb89d5f3358e7d69fc4e8ca4b8c109efafead
2,604
py
Python
_pushbank/plugins/email.py
jonghwanhyeon/PushBank2
b3e7f59825be9dc0930ef90c075e4a272004afe0
[ "Apache-2.0" ]
null
null
null
_pushbank/plugins/email.py
jonghwanhyeon/PushBank2
b3e7f59825be9dc0930ef90c075e4a272004afe0
[ "Apache-2.0" ]
null
null
null
_pushbank/plugins/email.py
jonghwanhyeon/PushBank2
b3e7f59825be9dc0930ef90c075e4a272004afe0
[ "Apache-2.0" ]
1
2018-08-29T15:06:12.000Z
2018-08-29T15:06:12.000Z
import asyncio import os import smtplib import traceback from email.mime.text import MIMEText from email.header import Header from jinja2 import Environment, FileSystemLoader from _pushbank.classes import Plugin from _pushbank.logger import logger class EmailPlugin(Plugin): def __init__(self, **kwargs): ...
32.962025
83
0.580645
a73e045b77e7c04006bddc1abc2ccbdfb0d84244
11,752
py
Python
billy/models/legislators.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
billy/models/legislators.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
billy/models/legislators.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
import itertools import operator from collections import defaultdict import pymongo from django.core import urlresolvers from django.template.defaultfilters import slugify from billy.core import mdb as db, settings from billy.utils import term_for_session from .base import Document, RelatedDocuments, ListManager from...
35.612121
79
0.55514
f5a21800e3f3a0e75fe0ba00c44884bc577c0729
910
py
Python
04_jump_the_five/test.py
arseny-tl/tiny_python_projects
d946a7ff0686ec30ed3675eaacdcdacaeea5d4e3
[ "MIT" ]
null
null
null
04_jump_the_five/test.py
arseny-tl/tiny_python_projects
d946a7ff0686ec30ed3675eaacdcdacaeea5d4e3
[ "MIT" ]
null
null
null
04_jump_the_five/test.py
arseny-tl/tiny_python_projects
d946a7ff0686ec30ed3675eaacdcdacaeea5d4e3
[ "MIT" ]
null
null
null
#!python3 """tests for jump.py""" import os from subprocess import getstatusoutput prg = 'jump.py' # -------------------------------------------------- def test_exists(): """exists""" assert os.path.isfile(prg) # -------------------------------------------------- def test_usage(): """usage""" fo...
21.162791
78
0.446154
6ded189364f820c9a0ab36e53d0f575f1bfdffb4
286
py
Python
src/config.py
SwannHERRERA/pyKedex
3d65f83bb17a354dbd9e4791327d647c6935bf6f
[ "MIT" ]
null
null
null
src/config.py
SwannHERRERA/pyKedex
3d65f83bb17a354dbd9e4791327d647c6935bf6f
[ "MIT" ]
null
null
null
src/config.py
SwannHERRERA/pyKedex
3d65f83bb17a354dbd9e4791327d647c6935bf6f
[ "MIT" ]
null
null
null
class Config: def __init__(self, base_url, image_path): self.base_url = base_url self.image_path = image_path config = Config("https://pokeapi.co/api/v2", "image.txt") class PokeStat: SPEED = "speed" HP = "hp" ATTACK = "attack" WEIGHT = "weight"
19.066667
57
0.622378
e63cfcc8c0590624c5937ec9868f1d65b8e5b076
61,476
py
Python
pandas/tools/tests/test_pivot.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tools/tests/test_pivot.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tools/tests/test_pivot.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2019-07-24T10:37:42.000Z
2019-07-24T10:37:42.000Z
from datetime import datetime, date, timedelta import numpy as np import pandas as pd from pandas import DataFrame, Series, Index, MultiIndex, Grouper from pandas.tools.merge import concat from pandas.tools.pivot import pivot_table, crosstab from pandas.compat import range, product import pandas.util.testing as tm ...
46.257336
79
0.446711
ecaab47dd0aee40fa9a8dcd16dcbee77c9e3243c
523
py
Python
data/train/python/ecaab47dd0aee40fa9a8dcd16dcbee77c9e3243cceleryconfig.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/ecaab47dd0aee40fa9a8dcd16dcbee77c9e3243cceleryconfig.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/ecaab47dd0aee40fa9a8dcd16dcbee77c9e3243cceleryconfig.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
# List of modules to import when celery starts. CELERY_IMPORTS = ('pod_manager.tasks.bootstrap_server', ) # Result store settings. CELERY_RESULT_BACKEND = 'database' CELERY_RESULT_DBURI = 'sqlite:///mydatabase.db' # Broker settings. BROKER_TRANSPORT = 'sqlalchemy' BROKER_HOST = 'sqlite:///tasks.db' BROKER_PORT = 5672...
24.904762
57
0.76673
b84e0c45e65ab4a612af8697c55f51fe9d01f2b2
5,364
py
Python
SnakeNest/scripts/evaluation/BlastBest.py
chrisquince/STRONG
ad4a056575e8cf37fabd38690801122425dd8392
[ "MIT" ]
35
2020-09-09T22:01:35.000Z
2022-03-15T17:35:03.000Z
SnakeNest/scripts/evaluation/BlastBest.py
ctb/STRONG
2a7771804afc9d72c33e4957e311193df6beb485
[ "MIT" ]
27
2020-08-19T11:12:43.000Z
2022-03-23T08:51:39.000Z
SnakeNest/scripts/evaluation/BlastBest.py
ctb/STRONG
2a7771804afc9d72c33e4957e311193df6beb485
[ "MIT" ]
5
2020-09-09T17:53:34.000Z
2021-11-17T12:40:19.000Z
#!/usr/bin/env python # COG0052_0 NZ_CP010050.1 99.50 806 4 0 1 806 2364077 2363272 0.0 1467 from __future__ import print_function import argparse import sys import operator from collections import defaultdict from collections import Counter import numpy as np def main(argv): parser = argparse.Argument...
33.949367
103
0.580164
5cd7beb0f5817ac57f9f029dda8552095f9e7e1b
4,684
py
Python
tests/models/rcnn/test_dataloaders.py
lee00286/icevision
e696481fc01bd1b9411bcb7ea1853d9e47bb4d04
[ "Apache-2.0" ]
null
null
null
tests/models/rcnn/test_dataloaders.py
lee00286/icevision
e696481fc01bd1b9411bcb7ea1853d9e47bb4d04
[ "Apache-2.0" ]
null
null
null
tests/models/rcnn/test_dataloaders.py
lee00286/icevision
e696481fc01bd1b9411bcb7ea1853d9e47bb4d04
[ "Apache-2.0" ]
null
null
null
import pytest from icevision.all import * @pytest.fixture() def img(): return 255 * np.ones((4, 4, 3), dtype=np.uint8) @pytest.fixture() def labels(): return [1, 2] @pytest.fixture() def bboxes(): return [BBox.from_xyxy(1, 2, 3, 4), BBox.from_xyxy(4, 3, 2, 1)] @pytest.fixture() def records(img, labe...
26.91954
86
0.688301
ee7ba980c7682d925d68ee2e1822fac92265660d
540
py
Python
plotly/validators/layout/annotation/_align.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/layout/annotation/_align.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/layout/annotation/_align.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name='align', parent_name='layout.annotation', **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=...
31.764706
76
0.624074
384d18d748e6c9ab1ae1b2ee31fa1fbfd8e11c02
1,357
py
Python
plasTeX/Base/LaTeX/Footnotes.py
perfectbark/LaTex2Docx
e32f9dcc59cce7bea4e7b114687b2300c623d8c0
[ "MIT" ]
23
2019-06-16T06:00:39.000Z
2022-03-29T14:44:32.000Z
plasTeX/Base/LaTeX/Footnotes.py
hao-han/LaTex2Docx
e32f9dcc59cce7bea4e7b114687b2300c623d8c0
[ "MIT" ]
null
null
null
plasTeX/Base/LaTeX/Footnotes.py
hao-han/LaTex2Docx
e32f9dcc59cce7bea4e7b114687b2300c623d8c0
[ "MIT" ]
12
2019-05-27T06:32:06.000Z
2022-03-15T10:22:07.000Z
#!/usr/bin/env python """ C.3.3 Footnotes (p172) """ from plasTeX import Command, Environment, DimenCommand from plasTeX.Logging import getLogger class footnote(Command): args = '[ num:int ] self' mark = None def invoke(self, tex): # Add the footnote to the document output = Command.in...
23.396552
82
0.627119
17a21a0707424f69852d32ed2a96cfe9ca986ca2
735
py
Python
reemplazo.py
ddsanchezc/PythonSourceCode
cc9c6d64bdf5ce5280fb7e0721e60642bb4d50b6
[ "Apache-2.0" ]
null
null
null
reemplazo.py
ddsanchezc/PythonSourceCode
cc9c6d64bdf5ce5280fb7e0721e60642bb4d50b6
[ "Apache-2.0" ]
null
null
null
reemplazo.py
ddsanchezc/PythonSourceCode
cc9c6d64bdf5ce5280fb7e0721e60642bb4d50b6
[ "Apache-2.0" ]
null
null
null
def reemplazo(string): #string = str(input("Ingrese la palabra")) i = 0 nueva_Palabra = "" while i < len(string): # solo pongo "<" ya que i empieza desde el 0 Cifra_unitaria_string = string[i:i + 1] if Cifra_unitaria_string == Cifra_unitaria_string.lower(): #si es que encuentra ...
38.684211
104
0.647619
b48808f1f5064a5acac22161eeda6fbe16467e78
10,095
py
Python
pymo/rotation_tools.py
sartk/speech2gesture
7b3b1257ea15c4862d71f434c34c65f5d8d687e5
[ "MIT" ]
1
2021-08-17T08:00:31.000Z
2021-08-17T08:00:31.000Z
pymo/rotation_tools.py
sartk/speech2gesture
7b3b1257ea15c4862d71f434c34c65f5d8d687e5
[ "MIT" ]
1
2021-09-22T03:49:16.000Z
2021-09-29T07:13:13.000Z
pymo/rotation_tools.py
sartk/speech2gesture
7b3b1257ea15c4862d71f434c34c65f5d8d687e5
[ "MIT" ]
null
null
null
''' Tools for Manipulating and Converting 3D Rotations By Omid Alemi Created: June 12, 2017 Adapted from that matlab file... ''' import math import numpy as np import transforms3d as t3d from pymo.Quaternions import Quaternions def deg2rad(x): return x/180*math.pi def rad2deg(x): return x/math.pi*180 def...
30.777439
107
0.551857
ebc18047c09744ad45c33927158ef3a856711c8e
2,989
py
Python
museum_site/feeds.py
DrDos0016/museum-of-zzt
0caa1cbeb2e0ab22206e72bc4ecf4c1b66c25fc4
[ "MIT" ]
2
2020-01-05T08:32:51.000Z
2021-07-27T06:36:40.000Z
museum_site/feeds.py
DrDos0016/museum-of-zzt
0caa1cbeb2e0ab22206e72bc4ecf4c1b66c25fc4
[ "MIT" ]
26
2020-02-11T22:10:43.000Z
2022-02-03T20:54:08.000Z
museum_site/feeds.py
DrDos0016/museum-of-zzt
0caa1cbeb2e0ab22206e72bc4ecf4c1b66c25fc4
[ "MIT" ]
null
null
null
from django.contrib.syndication.views import Feed from django.urls import reverse from django.template.defaultfilters import slugify from museum_site.models import Article, File, Review from museum_site.constants import ( PUBLISHED_ARTICLE, DETAIL_UPLOADED, DETAIL_LOST ) class LatestArticlesFeed(Feed): titl...
28.740385
77
0.610572
0a946dfb3dba999066efeee8169cc7399bd4230d
2,967
py
Python
ConPipe/GraphNode/ModelPrediction.py
Laouen/ML_ConPipe
ba0f1edb3abe187ce73c5e6b4f523cedf40c387e
[ "MIT" ]
null
null
null
ConPipe/GraphNode/ModelPrediction.py
Laouen/ML_ConPipe
ba0f1edb3abe187ce73c5e6b4f523cedf40c387e
[ "MIT" ]
null
null
null
ConPipe/GraphNode/ModelPrediction.py
Laouen/ML_ConPipe
ba0f1edb3abe187ce73c5e6b4f523cedf40c387e
[ "MIT" ]
null
null
null
import numpy as np from ConPipe.Logger import Logger from ConPipe.ModuleLoader import get_class from sklearn.base import clone class ModelPrediction(): def __init__(self, fit_model=False, cv=None): self.fit_model = fit_model self.cv = None if cv is not None: self.cv = get_...
25.577586
80
0.528143
e9fabbb8c07db335c5356fdd8dec7684eadf0315
241
py
Python
botski/tweepy_init.py
eltebel/subjectio_bot
cf25e0cb5130a6598c2d9bb7f3b3974cb7279c7d
[ "MIT" ]
null
null
null
botski/tweepy_init.py
eltebel/subjectio_bot
cf25e0cb5130a6598c2d9bb7f3b3974cb7279c7d
[ "MIT" ]
null
null
null
botski/tweepy_init.py
eltebel/subjectio_bot
cf25e0cb5130a6598c2d9bb7f3b3974cb7279c7d
[ "MIT" ]
null
null
null
from .importy import * from .config import * auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET) api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)
34.428571
79
0.829876
b9fca4647d7b075f9b01dd871e130dc3b1b5eb84
3,910
py
Python
src/alfasim_sdk/_internal/layout.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
null
null
null
src/alfasim_sdk/_internal/layout.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
null
null
null
src/alfasim_sdk/_internal/layout.py
prusse-martin/alfasim-sdk
f6992cb3c1c51e25bf55470508f406ee6c5a5e9b
[ "MIT" ]
null
null
null
import functools from typing import Callable import attr from alfasim_sdk._internal.alfasim_sdk_utils import get_attr_class from alfasim_sdk._internal.types import Group from alfasim_sdk._internal.types import Tab from alfasim_sdk._internal.types import Tabs def tabs() -> Callable: """ Create a tab bar layo...
29.847328
153
0.617136
7321b49ad2fc04c9cfb200c08ad6fc838dd88249
815
py
Python
indico/core/signals/category.py
CrownedSilverFox/conference-platform
1858a2908763dc7e4c29d3157369e9aab6064933
[ "MIT" ]
1
2021-02-24T10:20:14.000Z
2021-02-24T10:20:14.000Z
indico/core/signals/category.py
CrownedSilverFox/conference-platform
1858a2908763dc7e4c29d3157369e9aab6064933
[ "MIT" ]
2
2021-05-26T09:16:52.000Z
2021-05-26T09:28:59.000Z
indico/core/signals/category.py
andrea-guarino-sonarsource/indico
2dada1f293daea913dec85ebb33c29a9f2cb92ac
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from blinker import Namespace _signals = Namespace() moved = _signals.signal('moved', """ Called when ...
26.290323
73
0.722699
432504f70683c2c2ec026e4db7898fe598ab5764
477
py
Python
pythontutor-ru/08_functions/04_power_rec.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
2
2019-05-24T20:10:16.000Z
2020-07-11T06:06:43.000Z
pythontutor-ru/08_functions/04_power_rec.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
null
null
null
pythontutor-ru/08_functions/04_power_rec.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
21
2019-03-11T20:25:05.000Z
2022-02-28T13:53:10.000Z
""" http://pythontutor.ru/lessons/functions/problems/power_rec/ Дано действительное положительное число a и целое неотрицательное число n. Вычислите an не используя циклы, возведение в степень через ** и функцию math.pow(),а используя рекуррентное соотношение an=a⋅an-1. Решение оформите в виде функции power(a, n). """...
22.714286
131
0.679245
54c2292dca350817157a3d02ee35cc534da9b12d
1,659
py
Python
tests/test_list_offers.py
javidgon/sharedcloud-cli
27eb21dab1e18148f5eb44fed148d4dc458c5a19
[ "MIT" ]
null
null
null
tests/test_list_offers.py
javidgon/sharedcloud-cli
27eb21dab1e18148f5eb44fed148d4dc458c5a19
[ "MIT" ]
null
null
null
tests/test_list_offers.py
javidgon/sharedcloud-cli
27eb21dab1e18148f5eb44fed148d4dc458c5a19
[ "MIT" ]
null
null
null
import multiprocessing import os import time from tests.constants import Image, InstanceType, Gpu from tests.test_utils import TestWrapper, TestUtils # Workflow def test_user_sees_the_list_of_offers_successfully(): file = os.path.dirname(os.path.abspath(__file__)) + '/files/func_python36.py' account_uuid, em...
30.163636
98
0.770344
4404fca41125e65a4ab449bca706ce75dd1baff9
5,553
py
Python
keras/utils/data_utils.py
cnvrg/keras
7f9bea44d5d4512fe21d0263d00fd39a9fb5c671
[ "MIT" ]
1
2020-12-08T14:29:08.000Z
2020-12-08T14:29:08.000Z
keras/utils/data_utils.py
cnvrg/keras
7f9bea44d5d4512fe21d0263d00fd39a9fb5c671
[ "MIT" ]
null
null
null
keras/utils/data_utils.py
cnvrg/keras
7f9bea44d5d4512fe21d0263d00fd39a9fb5c671
[ "MIT" ]
null
null
null
"""Utilities for file download and caching.""" from __future__ import absolute_import from __future__ import print_function import functools import tarfile import os import sys import shutil import hashlib from six.moves.urllib.request import urlopen from six.moves.urllib.error import URLError from six.mov...
34.490683
77
0.573384
40696cb0f5c564bbfb992dbe094ca5e4c4a81e6e
11,008
py
Python
resolversrv/utils.py
golnazads/resolver_service
782dce5a4daa864aff0b3d171185b2553a254a3f
[ "MIT" ]
null
null
null
resolversrv/utils.py
golnazads/resolver_service
782dce5a4daa864aff0b3d171185b2553a254a3f
[ "MIT" ]
null
null
null
resolversrv/utils.py
golnazads/resolver_service
782dce5a4daa864aff0b3d171185b2553a254a3f
[ "MIT" ]
null
null
null
from builtins import str from builtins import range from flask import current_app from sqlalchemy.exc import SQLAlchemyError from sqlalchemy import and_ from sqlalchemy.dialects.postgresql import insert from google.protobuf import json_format from resolversrv.models import DataLinks, Documents def get_records(bibco...
44.032
134
0.61419
7a3f17001beb89b84509e9c90a1be7ad654e9740
1,061
py
Python
home/pedrosenarego/scripts/googlecalandar/eventExemple.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
home/pedrosenarego/scripts/googlecalandar/eventExemple.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
home/pedrosenarego/scripts/googlecalandar/eventExemple.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
# Refer to the Python quickstart on how to setup the environment: # https://developers.google.com/google-apps/calendar/quickstart/python # Change the scope to 'https://www.googleapis.com/auth/calendar' and delete any # stored credentials. event = { 'summary': 'Google I/O 2015', 'location': '800 Howard St., San F...
29.472222
79
0.62771
4089a4435c72f0aaaddf6316eba38966ea7aef3b
1,181
py
Python
grupa/forms.py
szymanskirafal/ab
2e882a4222d0c0e5a0bfd7fdc7150275aeb20960
[ "MIT" ]
null
null
null
grupa/forms.py
szymanskirafal/ab
2e882a4222d0c0e5a0bfd7fdc7150275aeb20960
[ "MIT" ]
2
2020-06-05T18:44:22.000Z
2021-06-10T20:38:20.000Z
grupa/forms.py
szymanskirafal/ab
2e882a4222d0c0e5a0bfd7fdc7150275aeb20960
[ "MIT" ]
null
null
null
from django import forms from django.forms import ModelForm from django.contrib.auth import get_user_model from .models import CustomGroup class NewGroupForm(forms.Form): group_name = forms.CharField(label='Nazwa grupy ', max_length = 30, widget = forms.TextInput(attrs={'placeholder':'Wpisz nazwę grup...
27.465116
107
0.65707
fd79506ad544df71e3fd6bfddf295e65d30955d0
8,316
py
Python
server/opendp_apps/analysis/views/release_view.py
opendp/opendp-ux
e9f591f1722f8aece022c790506381f13a728305
[ "MIT" ]
6
2021-05-25T18:50:58.000Z
2022-03-23T19:52:15.000Z
server/opendp_apps/analysis/views/release_view.py
opendp/dpcreator
6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646
[ "MIT" ]
298
2021-05-19T17:34:09.000Z
2022-03-29T18:45:22.000Z
server/opendp_apps/analysis/views/release_view.py
opendp/dpcreator
6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646
[ "MIT" ]
null
null
null
from django.http import FileResponse from rest_framework import permissions, viewsets, renderers, status from rest_framework.decorators import action from rest_framework.generics import get_object_or_404 from rest_framework.response import Response from opendp_apps.utils.view_helper import get_json_error, get_json_su...
41.788945
102
0.642977
2917b2e3ceba82fb07ccc4a9b888f6614c8d5f65
7,487
py
Python
exercises/classifiers_evaluation.py
Dor890/IML.HUJI
cf7e501967ad9bd9b851866e0c920d381b60d561
[ "MIT" ]
null
null
null
exercises/classifiers_evaluation.py
Dor890/IML.HUJI
cf7e501967ad9bd9b851866e0c920d381b60d561
[ "MIT" ]
null
null
null
exercises/classifiers_evaluation.py
Dor890/IML.HUJI
cf7e501967ad9bd9b851866e0c920d381b60d561
[ "MIT" ]
null
null
null
from IMLearn.learners.classifiers import Perceptron, LDA, GaussianNaiveBayes from typing import Tuple from utils import * import plotly.graph_objects as go from plotly.subplots import make_subplots from math import atan2, pi def load_dataset(filename: str) -> Tuple[np.ndarray, np.ndarray]: """ Load dataset for...
41.364641
111
0.573795
1aea9c9a76ffbf3e83866cf4b9b81f253f0aaad0
12,078
py
Python
panaroo/estimate_many_genes_params.py
aweimann/panaroo
dbbf676cdc9031569a10d9de20976a295f43e79c
[ "MIT" ]
1
2022-03-16T00:17:50.000Z
2022-03-16T00:17:50.000Z
panaroo/estimate_many_genes_params.py
Danderson123/panaroo
1a01905fe1ad0ef7c304217cab65610e7cd27004
[ "MIT" ]
null
null
null
panaroo/estimate_many_genes_params.py
Danderson123/panaroo
1a01905fe1ad0ef7c304217cab65610e7cd27004
[ "MIT" ]
null
null
null
import os from .__init__ import __version__ import numpy as np from dendropy.simulate import treesim from dendropy.model import reconcile from dendropy import TaxonNamespace, Tree import copy import math from collections import defaultdict from scipy import optimize, stats from numba import jit from joblib import Para...
32.208
129
0.536264
dc609b32dae454e737ad0992451c4aaf5ca8f97b
29,286
py
Python
salt/cloud/clouds/joyent.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2018-09-19T22:42:54.000Z
2018-09-19T22:42:54.000Z
salt/cloud/clouds/joyent.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/joyent.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2019-07-23T13:42:23.000Z
2019-07-23T13:42:23.000Z
# -*- coding: utf-8 -*- ''' Joyent Cloud Module =================== The Joyent Cloud module is used to interact with the Joyent cloud system. Set up the cloud configuration at ``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/joyent.conf``: .. code-block:: yaml my-joyent-config: driver: joyen...
26.407574
103
0.593355
988345f813dbd977d8aed1a044d3c2826431ba28
3,136
py
Python
tests/calculations/arithmetic/test_add.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
tests/calculations/arithmetic/test_add.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,325
2019-07-04T13:41:44.000Z
2022-03-31T12:17:10.000Z
tests/calculations/arithmetic/test_add.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
43.555556
118
0.648278
ddbb5e5bbd091cbc21fb12de0c968928bff996a0
1,775
py
Python
models/tiles/leninium_tile.py
MaukWM/GameJam2019
6cca9136adac1f6041e86180957e4f986965f1b8
[ "Unlicense" ]
null
null
null
models/tiles/leninium_tile.py
MaukWM/GameJam2019
6cca9136adac1f6041e86180957e4f986965f1b8
[ "Unlicense" ]
3
2019-03-02T10:30:12.000Z
2019-03-03T13:57:04.000Z
models/tiles/leninium_tile.py
MaukWM/GameJam2019
6cca9136adac1f6041e86180957e4f986965f1b8
[ "Unlicense" ]
null
null
null
from models.tiles.tile import Tile from constants import TILE_SIZE_IN_PIXELS import pygame from models.items.item_types import ItemType LENINIUM_SPRITE = pygame.transform.scale(pygame.image.load('assets/graphics/leninium.png'), (TILE_SIZE_IN_PIXELS, TILE_SIZE_IN_PIXELS)) STONE_SPRITE = pygame.transform.scale(pygame.im...
42.261905
160
0.701408
e68d7b8da4ac39e102e7095c1b775dc965a6266a
2,494
py
Python
Asap-3.8.4/Test/Timing/LennardJonesTiming.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
1
2021-10-19T11:35:34.000Z
2021-10-19T11:35:34.000Z
Asap-3.8.4/Test/Timing/LennardJonesTiming.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
null
null
null
Asap-3.8.4/Test/Timing/LennardJonesTiming.py
auag92/n2dm
03403ef8da303b79478580ae76466e374ec9da60
[ "MIT" ]
3
2016-07-18T19:22:48.000Z
2021-07-06T03:06:42.000Z
#! /usr/bin/env python from Asap import * from Asap.Dynamics.VelocityVerlet import VelocityVerlet from Asap.Dynamics.Langevin import Langevin from Asap.Setup.Lattice.Cubic import FaceCenteredCubic import sys, cPickle, time, commands, os, re import RandomArray from Numeric import * from Asap.testtools import ReportTest...
30.048193
106
0.67482
d95702a0be0161472dad049776c52f099ba21a7f
4,060
py
Python
src/dynamodb_encryption_sdk/materials/__init__.py
johnwalker/aws-dynamodb-encryption-python
6081d42bda2eb25da81f63c58666143fe6711189
[ "Apache-2.0" ]
null
null
null
src/dynamodb_encryption_sdk/materials/__init__.py
johnwalker/aws-dynamodb-encryption-python
6081d42bda2eb25da81f63c58666143fe6711189
[ "Apache-2.0" ]
null
null
null
src/dynamodb_encryption_sdk/materials/__init__.py
johnwalker/aws-dynamodb-encryption-python
6081d42bda2eb25da81f63c58666143fe6711189
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
33.278689
102
0.690887
c332bdea9f11a78e88d1996ea6f985afca4a841d
1,019
py
Python
integration/python/test/test_politically_exposed_person_dto.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
integration/python/test/test_politically_exposed_person_dto.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
integration/python/test/test_politically_exposed_person_dto.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Integration API The Hydrogen Integration API # noqa: E501 OpenAPI spec version: 1.2.1 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import integration...
24.853659
115
0.741904
d9e9b284c23833db24ce031e722a455895155246
21,111
py
Python
analysis/map_time_speed_monthly.py
rhwhite/eventTracking
a9498cf56a4d82259c47555b7e5fae2f7c8a0b16
[ "MIT" ]
1
2017-11-28T02:35:01.000Z
2017-11-28T02:35:01.000Z
analysis/map_time_speed_monthly.py
rhwhite/eventTracking
a9498cf56a4d82259c47555b7e5fae2f7c8a0b16
[ "MIT" ]
null
null
null
analysis/map_time_speed_monthly.py
rhwhite/eventTracking
a9498cf56a4d82259c47555b7e5fae2f7c8a0b16
[ "MIT" ]
2
2019-07-02T02:42:00.000Z
2020-07-28T05:56:45.000Z
""" Code to create maps containing average characteristics of events for each gridbox on a monthly resolution, used after extract_time_speed.py Author: Rachel H White rachel.white@cantab.net Created: Jan 2016 """ import os import errno import numpy as np import numpy.ma as ma import netCDF4 from netCDF4 import Datase...
37.298587
145
0.60774
2520a8180421c46b289fbad57cc125b644d2a540
216
py
Python
player.py
mallocc/PythonRPG
6f8ae053f61d1b5070706276b850e96a27a10fe3
[ "Apache-2.0" ]
1
2019-11-11T10:01:59.000Z
2019-11-11T10:01:59.000Z
player.py
mallocc/PythonRPG
6f8ae053f61d1b5070706276b850e96a27a10fe3
[ "Apache-2.0" ]
null
null
null
player.py
mallocc/PythonRPG
6f8ae053f61d1b5070706276b850e96a27a10fe3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import pygame import sys import os from pygame.locals import * from entity import * class Player(Entity): def __init__(self, pos, drawable): super(Player, self).__init__(pos, drawable)
19.636364
51
0.722222
3b58fa9ef0db824ef42c9c8c4cc83dd5dd02507b
4,323
py
Python
docs/tools/python/markdown-pp-master/MarkdownPP/Modules/Include.py
corneliouzbett/dhis2-android-capture-app
48a00632a2e01b4514ddde408eb9536c062bab43
[ "BSD-3-Clause" ]
31
2018-07-10T16:06:13.000Z
2022-03-15T09:21:54.000Z
docs/tools/python/markdown-pp-master/MarkdownPP/Modules/Include.py
ankitbansal25/dhis2-android-capture-app
a09f5d22e37f3efcd7946a2bcd42141020cfb043
[ "BSD-3-Clause" ]
228
2018-10-26T16:53:03.000Z
2022-03-30T15:18:31.000Z
docs/tools/python/markdown-pp-master/MarkdownPP/Modules/Include.py
ankitbansal25/dhis2-android-capture-app
a09f5d22e37f3efcd7946a2bcd42141020cfb043
[ "BSD-3-Clause" ]
78
2018-07-12T11:05:58.000Z
2022-02-21T09:29:48.000Z
# Copyright 2015 John Reese # Licensed under the MIT license from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import re from os import path from MarkdownPP.Module import Module from MarkdownPP.Transform import Transform BASE="content/submodules/" ...
34.03937
96
0.507749
b7576dadc5a736e80939804d0a71d72af8e56a6a
556
py
Python
jd/api/rest/UnionSearchGoodsParamQueryRequest.py
fengjinqi/linjuanbang
8cdc4e81df73ccd737ac547da7f2c7dca545862a
[ "MIT" ]
5
2019-10-30T01:16:30.000Z
2020-06-14T03:32:19.000Z
jd/api/rest/UnionSearchGoodsParamQueryRequest.py
fengjinqi/linjuanbang
8cdc4e81df73ccd737ac547da7f2c7dca545862a
[ "MIT" ]
2
2020-10-12T07:12:48.000Z
2021-06-02T03:15:47.000Z
jd/api/rest/UnionSearchGoodsParamQueryRequest.py
fengjinqi/linjuanbang
8cdc4e81df73ccd737ac547da7f2c7dca545862a
[ "MIT" ]
3
2019-12-06T17:33:49.000Z
2021-03-01T13:24:22.000Z
from jd.api.base import RestApi class UnionSearchGoodsParamQueryRequest(RestApi): def __init__(self,domain='gw.api.360buy.com',port=80): RestApi.__init__(self,domain, port) self.cat1Id = None self.owner = None self.pageIndex = None self.pageSize = None self.sortName = None self.sort = None se...
21.384615
56
0.726619
768736813813d0a516f6dbb6b762373bf107eea6
5,180
py
Python
openGaussBase/testcase/TOOLS/OPEN_TOOLS/SQLINES/Opengauss_Function_Tools_Sqlines_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/OPEN_TOOLS/SQLINES/Opengauss_Function_Tools_Sqlines_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/OPEN_TOOLS/SQLINES/Opengauss_Function_Tools_Sqlines_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
37.266187
84
0.57529
c7e3e4bef295fb7dfb6c97d73b4ab06c1e19f6e8
18,542
py
Python
salt/modules/glance.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
1
2018-09-19T22:42:54.000Z
2018-09-19T22:42:54.000Z
salt/modules/glance.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
salt/modules/glance.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
1
2019-07-23T13:42:23.000Z
2019-07-23T13:42:23.000Z
# -*- coding: utf-8 -*- ''' Module for handling openstack glance calls. :optdepends: - glanceclient Python adapter :configuration: This module is not usable until the following are specified either in a pillar or in the minion's config file:: keystone.user: admin keystone.password: verybadpass ...
32.359511
117
0.599989
74caae3f685afbc2f61789b79da24670c012438c
102,494
py
Python
cvat/apps/engine/tests/test_rest_api.py
wuyuanyi135/cvat
1526e59b5e37e296b0f4fa0e0f74210660008d6a
[ "MIT" ]
1
2019-10-25T07:49:58.000Z
2019-10-25T07:49:58.000Z
cvat/apps/engine/tests/test_rest_api.py
wuyuanyi135/cvat
1526e59b5e37e296b0f4fa0e0f74210660008d6a
[ "MIT" ]
null
null
null
cvat/apps/engine/tests/test_rest_api.py
wuyuanyi135/cvat
1526e59b5e37e296b0f4fa0e0f74210660008d6a
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Intel Corporation # # SPDX-License-Identifier: MIT import os import shutil from PIL import Image from io import BytesIO import random from rest_framework.test import APITestCase, APIClient from rest_framework import status from django.conf import settings from django.contrib.auth.models import Use...
38.229765
116
0.549847
59c737811f5d6edb0ba45c13e9a62760d445fd7b
2,306
py
Python
tests/hypotests/test_discovery.py
marinang/statrise
c1b3e1bb1adca42ba0171a6066c5be9d4ff82e04
[ "BSD-3-Clause" ]
19
2019-03-21T18:58:55.000Z
2021-07-27T09:41:36.000Z
tests/hypotests/test_discovery.py
marinang/statrise
c1b3e1bb1adca42ba0171a6066c5be9d4ff82e04
[ "BSD-3-Clause" ]
null
null
null
tests/hypotests/test_discovery.py
marinang/statrise
c1b3e1bb1adca42ba0171a6066c5be9d4ff82e04
[ "BSD-3-Clause" ]
2
2019-03-13T13:03:27.000Z
2020-03-19T05:39:10.000Z
import pytest from lauztat.calculators import FrequentistCalculator, AsymptoticCalculator from lauztat.config import Config from lauztat.parameters import POI from lauztat.hypotests import Discovery import numpy as np import os import matplotlib as mpl mpl.use('Agg') pwd = os.path.dirname(__file__) def test_construc...
28.469136
77
0.676496
5e0535f91ee071f9f52bc53f1ef502aedd1b5259
494
py
Python
tests/test_mp.py
CTTV/ontology-utils
930e7e22b7d27f31bd8719fb2011f070bc46a289
[ "Apache-2.0" ]
3
2018-09-05T19:08:45.000Z
2020-12-13T13:37:55.000Z
tests/test_mp.py
CTTV/ontology-utils
930e7e22b7d27f31bd8719fb2011f070bc46a289
[ "Apache-2.0" ]
8
2018-11-30T12:48:09.000Z
2020-03-11T11:16:45.000Z
tests/test_mp.py
CTTV/ontology-utils
930e7e22b7d27f31bd8719fb2011f070bc46a289
[ "Apache-2.0" ]
1
2018-09-05T19:10:30.000Z
2018-09-05T19:10:30.000Z
import opentargets_ontologyutils.mp import opentargets_ontologyutils.rdf_utils def test_mp(): ocr = opentargets_ontologyutils.rdf_utils.OntologyClassReader() uri_mp = "https://storage.googleapis.com/ot-releases/18.12/annotations/mp_2018-12-06.owl.gz" opentargets_ontologyutils.mp.load_mammalian_phenotype_o...
30.875
96
0.769231
eb8130ffd242944d671120cb4a032e3e697e6c2f
11,743
py
Python
eclcli/monitoring/monitoringclient/shell.py
hanasuke/eclcli
a72191799986a02596d0d467253fd9f5ee03c5c8
[ "Apache-2.0" ]
32
2016-08-31T04:12:40.000Z
2020-12-11T04:49:57.000Z
eclcli/monitoring/monitoringclient/shell.py
hanasuke/eclcli
a72191799986a02596d0d467253fd9f5ee03c5c8
[ "Apache-2.0" ]
27
2016-09-06T07:50:36.000Z
2021-09-14T09:46:03.000Z
eclcli/monitoring/monitoringclient/shell.py
hanasuke/eclcli
a72191799986a02596d0d467253fd9f5ee03c5c8
[ "Apache-2.0" ]
24
2016-09-02T01:09:09.000Z
2021-01-19T09:14:16.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
37.758842
78
0.564251
d2a7367bcf02a914d2e8b19a9e7c1032d6d1f969
40,699
py
Python
trimesh/exchange/gltf.py
fegorsch/trimesh
7e373f2c60497d138038c87d6daecee90ac28475
[ "MIT" ]
null
null
null
trimesh/exchange/gltf.py
fegorsch/trimesh
7e373f2c60497d138038c87d6daecee90ac28475
[ "MIT" ]
null
null
null
trimesh/exchange/gltf.py
fegorsch/trimesh
7e373f2c60497d138038c87d6daecee90ac28475
[ "MIT" ]
null
null
null
""" gltf.py ------------ Provides GLTF 2.0 exports of trimesh.Trimesh objects as GL_TRIANGLES, and trimesh.Path2D/Path3D as GL_LINES """ import json import base64 import collections import numpy as np from .. import util from .. import visual from .. import rendering from .. import resources from .. import transfor...
31.870791
81
0.577754
a60c0d08a833dd83f92e3cc44f9c65033ad482b0
3,891
py
Python
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/agent/rm/slurm.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
1
2019-05-24T02:19:29.000Z
2019-05-24T02:19:29.000Z
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/agent/rm/slurm.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
Geolocation/Data/Design2a/design2a_11k_test5/pilot.0000/rp_install/lib/python2.7/site-packages/radical/pilot/agent/rm/slurm.py
radical-experiments/iceberg_escience
e5c230a23395a71a4adf554730ea3d77f923166c
[ "MIT" ]
null
null
null
__copyright__ = "Copyright 2016, http://radical.rutgers.edu" __license__ = "MIT" import os import hostlist import radical.utils as ru from base import LRMS # ============================================================================== # class Slurm(LRMS): # ----------------------------------------------...
36.707547
97
0.556926
b0f7bbf8a567b5033a980bbff8b90ae1378dfa95
2,579
py
Python
tests/opwen_email_server/utils/test_serialization.py
kulado/mailserver
d05c0b2e8d8c97b7b7a08028a9eacd4427a59c4b
[ "Apache-2.0" ]
15
2020-07-06T02:33:15.000Z
2021-08-09T19:24:11.000Z
tests/opwen_email_server/utils/test_serialization.py
kulado/mailserver
d05c0b2e8d8c97b7b7a08028a9eacd4427a59c4b
[ "Apache-2.0" ]
298
2016-12-24T20:19:56.000Z
2020-04-29T03:13:21.000Z
tests/opwen_email_server/utils/test_serialization.py
sbathgate/lokole
a4e3fa5da5373880f6783379f7ef8d843e4cc79d
[ "Apache-2.0" ]
12
2017-06-05T12:13:35.000Z
2020-01-23T03:26:05.000Z
from unittest import TestCase from opwen_email_server.utils import serialization class JsonTests(TestCase): def test_creates_slim_json(self): serialized = serialization.to_json({'a': 1, 'b': 2}) self.assertNotIn('\n', serialized) self.assertNotIn(' ', serialized) def test_roundtrip(...
29.988372
90
0.653354
9a174b644f9945b1085dfd62c3d572ee6e881670
1,160
py
Python
tests/conftest.py
hema984838/Log_test
4f4d487e28e9b7b81fa0b814ed917a189e1c72dd
[ "MIT" ]
5
2021-01-13T16:50:46.000Z
2021-11-29T04:01:46.000Z
tests/conftest.py
hema984838/Log_test
4f4d487e28e9b7b81fa0b814ed917a189e1c72dd
[ "MIT" ]
1
2021-05-11T13:02:48.000Z
2021-05-11T13:03:32.000Z
tests/conftest.py
hema984838/Log_test
4f4d487e28e9b7b81fa0b814ed917a189e1c72dd
[ "MIT" ]
4
2021-02-08T23:04:33.000Z
2022-01-05T12:02:34.000Z
import os # flake8: noqa: E402 os.environ["CONFIG"] = os.path.abspath( os.path.join(os.path.dirname(os.path.dirname(__file__)), "tests/test.env") ) # use in-memory database # need to set before importing any other module as DB_URI is init at import time os.environ["DB_URI"] = "sqlite://" import pytest from ap...
21.481481
80
0.669828
629631341bf011e7b87caef0d94ac4db7072bdea
571
py
Python
animate.py
tetris4fun/vpython
57e4175acd0014b8a012a2ceb02e548285229d3a
[ "CC0-1.0" ]
null
null
null
animate.py
tetris4fun/vpython
57e4175acd0014b8a012a2ceb02e548285229d3a
[ "CC0-1.0" ]
null
null
null
animate.py
tetris4fun/vpython
57e4175acd0014b8a012a2ceb02e548285229d3a
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 17 23:58:53 2016 @author: piotr """ from visual import * ball=sphere(pos=(-2,0.1, 0), radius=0.1, color=color.red) floor=box(pos=(0,0,0), size=(7,0.05,1),color=color.green) #set up initial conditions ball.velocity=vector(5,5,0) ball.mass=0.25 ball.p=ball.velocity*ball....
19.033333
57
0.621716
34727da3b95ae39cb62d0476ddd5c15c4a34966a
5,977
py
Python
env/lib/python3.8/site-packages/pandas/tests/frame/methods/test_clip.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
env/lib/python3.8/site-packages/pandas/tests/frame/methods/test_clip.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
env/lib/python3.8/site-packages/pandas/tests/frame/methods/test_clip.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
import numpy as np import pytest import pandas as pd from pandas import DataFrame, Series import pandas._testing as tm class TestDataFrameClip: def test_clip(self, float_frame): median = float_frame.median().median() original = float_frame.copy() double = float_frame.clip(upper=median, l...
37.829114
88
0.588924
0b36227a58abbc096976169f67000839ecb3fc2b
35,263
py
Python
src/sqlfluff/dialects/dialect_mysql.py
barrywhart/sqlfluff
9f989ad23eee814682b0c8be1282b821d50a1482
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_mysql.py
barrywhart/sqlfluff
9f989ad23eee814682b0c8be1282b821d50a1482
[ "MIT" ]
4
2021-03-13T17:13:13.000Z
2021-12-21T00:27:08.000Z
src/sqlfluff/dialects/dialect_mysql.py
barrywhart/sqlfluff
9f989ad23eee814682b0c8be1282b821d50a1482
[ "MIT" ]
null
null
null
"""The MySQL dialect. For now the only change is the parsing of comments. https://dev.mysql.com/doc/refman/8.0/en/differences-from-ansi.html """ from sqlfluff.core.parser import ( BaseSegment, Ref, AnyNumberOf, Sequence, OneOf, Bracketed, RegexLexer, CommentSegment, NamedParser, ...
28.414988
88
0.53671
a55a8207e9155ee0205850eded58a58bb33cafaa
1,923
py
Python
python/palindrome-number.py
alirezaghey/leetcode-solutions
676b71b4790c64d21af91dce02e97ee47e78d523
[ "MIT" ]
3
2020-10-10T00:14:23.000Z
2022-03-02T21:16:29.000Z
python/palindrome-number.py
alirezaghey/leetcode-solutions
676b71b4790c64d21af91dce02e97ee47e78d523
[ "MIT" ]
null
null
null
python/palindrome-number.py
alirezaghey/leetcode-solutions
676b71b4790c64d21af91dce02e97ee47e78d523
[ "MIT" ]
1
2021-09-14T05:16:54.000Z
2021-09-14T05:16:54.000Z
# https://leetcode.com/problems/palindrome-number/ # Related Topics: Math, Array # Difficulty: Easy # Initial thoughts: # Converting the number to an array of strings # we can reverse the array and check whether it # equals the original. # Time complexity: O(log n) because x has approximately log10(n) digits # Sp...
32.59322
78
0.665627
73f8e31e7be053c08ccdd042acfcf654b00e2b2f
420
py
Python
examples/full-functionality/path_templating/build.py
rexengineering/metaflow
fcba7cd6aaccd3806ce7d6a4a8aaeef350bbeaf8
[ "Apache-2.0" ]
null
null
null
examples/full-functionality/path_templating/build.py
rexengineering/metaflow
fcba7cd6aaccd3806ce7d6a4a8aaeef350bbeaf8
[ "Apache-2.0" ]
null
null
null
examples/full-functionality/path_templating/build.py
rexengineering/metaflow
fcba7cd6aaccd3806ce7d6a4a8aaeef350bbeaf8
[ "Apache-2.0" ]
null
null
null
import io import sys import subprocess import docker DOCKERFILE = '''FROM python:3.8-slim WORKDIR /code COPY requirements.txt . RUN pip install -r requirements.txt COPY src/ . EXPOSE 5000/tcp CMD [ "python", "./server.py"] ''' SERVER_MODES = {'favorite-food'} if __name__ == '__main__': subprocess.run( '...
16.153846
55
0.654762
37743b499b7319d4a41a92832aa55c6a194bd45f
124,337
py
Python
netbox/dcim/tests/test_api.py
0xAalaoui/netbox
07364abf9e9ff193bad49b790e657382cf186f0c
[ "Apache-2.0" ]
1
2018-07-31T06:54:02.000Z
2018-07-31T06:54:02.000Z
netbox/dcim/tests/test_api.py
0xAalaoui/netbox
07364abf9e9ff193bad49b790e657382cf186f0c
[ "Apache-2.0" ]
null
null
null
netbox/dcim/tests/test_api.py
0xAalaoui/netbox
07364abf9e9ff193bad49b790e657382cf186f0c
[ "Apache-2.0" ]
1
2019-02-19T22:04:10.000Z
2019-02-19T22:04:10.000Z
from __future__ import unicode_literals from django.contrib.auth.models import User from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from dcim.constants import ( IFACE_FF_1GE_FIXED, IFACE_FF_LAG, IFACE_MODE_TAGGED, SUBDEVICE_ROLE_CHILD, SUBDEVICE_ROLE_P...
40.290668
120
0.629073
460c687f2e529b4cdd5e3553984c1726f1b76f6c
4,906
py
Python
IfxPy/setup.py
jaimundada/IfxPy
e6941d77051933dfe6affd3b096ea6d8f485ae9b
[ "Apache-2.0" ]
null
null
null
IfxPy/setup.py
jaimundada/IfxPy
e6941d77051933dfe6affd3b096ea6d8f485ae9b
[ "Apache-2.0" ]
null
null
null
IfxPy/setup.py
jaimundada/IfxPy
e6941d77051933dfe6affd3b096ea6d8f485ae9b
[ "Apache-2.0" ]
null
null
null
import os import sys import struct from setuptools import setup from distutils.core import Extension # Writing the Setup Script # https://docs.python.org/3.4/distutils/setupscript.html#distutils-installing-scripts PACKAGE = 'IfxPy' VERSION = '3.0.3' VERSION2X = '2.7.1' LICENSE = 'Apache License 2.0' IfxPyLongD...
36.61194
186
0.628822
5e8bab2e3fac801eb033ace1e1ea65790c08ac61
150
py
Python
ehmatthes-pcc_2e-078318e/beyond_pcc/ai_player/alien_invasion_with_sounds/sound_effects.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
12
2020-10-22T14:03:27.000Z
2022-03-28T08:14:22.000Z
ehmatthes-pcc_2e-078318e/beyond_pcc/ai_player/alien_invasion_with_sounds/sound_effects.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
null
null
null
ehmatthes-pcc_2e-078318e/beyond_pcc/ai_player/alien_invasion_with_sounds/sound_effects.py
charliechocho/py-crash-course
b42b8a4c1cb8d76e8316f55c1565ff42d920ee63
[ "Apache-2.0" ]
9
2020-12-22T10:22:12.000Z
2022-03-28T08:14:53.000Z
import pygame pygame.mixer.init() bullet_sound = pygame.mixer.Sound('sounds/laser1.wav') alien_sound = pygame.mixer.Sound('sounds/Explosion_02.wav')
25
59
0.786667
cf69428edf234befa546aa620bce54facb792052
4,244
py
Python
django_sass/__init__.py
Artemis21/django-sass
a20d49821610ec53e28a12d655391b16260d7694
[ "BSD-3-Clause" ]
null
null
null
django_sass/__init__.py
Artemis21/django-sass
a20d49821610ec53e28a12d655391b16260d7694
[ "BSD-3-Clause" ]
null
null
null
django_sass/__init__.py
Artemis21/django-sass
a20d49821610ec53e28a12d655391b16260d7694
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict, List import os from django.contrib.staticfiles.finders import get_finders import sass def find_static_paths() -> List[str]: """ Finds all static paths available in this Django project. :returns: List of paths containing static files. """ found_paths = [] for ...
31.909774
86
0.600613
18a7ed683b9dc66588e79b0d6ed50a7e64eadf1a
2,585
py
Python
python/pbase/papp/logger.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
10
2017-12-04T03:50:50.000Z
2020-09-25T07:24:32.000Z
python/pbase/papp/logger.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
8
2018-07-14T09:45:38.000Z
2018-09-17T20:56:52.000Z
python/pbase/papp/logger.py
Impavidity/pinfrastructure
b5577fe1e140e0b360aec2834349ba87647eb000
[ "MIT" ]
1
2017-11-24T18:31:53.000Z
2017-11-24T18:31:53.000Z
# Code referenced from https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514 import tensorflow as tf import scipy.misc import numpy as np import os try: from StringIO import StringIO # Python 2.7 except ImportError: from io import BytesIO # Python 3.x class Logger(object): def __init__(self, lo...
34.932432
89
0.59381
9b229c0f6a4d8b93c371181757434dd9d9d2651f
1,149
py
Python
src/qrLCD/display_qr.py
jsladerman/Nano-cash-register
841eef7ca678ee77f11809bc3e979c3d8ce4c3b9
[ "Apache-2.0" ]
null
null
null
src/qrLCD/display_qr.py
jsladerman/Nano-cash-register
841eef7ca678ee77f11809bc3e979c3d8ce4c3b9
[ "Apache-2.0" ]
1
2021-03-17T23:42:43.000Z
2021-03-17T23:42:43.000Z
src/qrLCD/display_qr.py
jsladerman/Nano-cash-register
841eef7ca678ee77f11809bc3e979c3d8ce4c3b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import sys import os libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), '../lib') if os.path.exists(libdir): sys.path.append(libdir) from waveshare_1in8_LCD import LCD_1in8 from waveshare_1in8_LCD import LCD_Config from PIL im...
28.02439
94
0.672759
1395827bdc7fce5fd3ce8baaaf52216f6e290cd4
13,276
py
Python
src/metacoag_utils/label_prop_utils.py
Vini2/MetaBAG
34c16943f3cd0a9c942711af6992ede7bec36e1e
[ "BSD-3-Clause" ]
1
2020-10-01T12:48:20.000Z
2020-10-01T12:48:20.000Z
src/metacoag_utils/label_prop_utils.py
Vini2/MetaBAG
34c16943f3cd0a9c942711af6992ede7bec36e1e
[ "BSD-3-Clause" ]
null
null
null
src/metacoag_utils/label_prop_utils.py
Vini2/MetaBAG
34c16943f3cd0a9c942711af6992ede7bec36e1e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys import math import heapq import logging from metacoag_utils import matching_utils MAX_WEIGHT = sys.float_info.max # create logger logger = logging.getLogger('MetaCoaAG 1.0') class DataWrap: def __init__(self, data): self.data = data def __lt__(self, other): ...
34.483117
125
0.605378
523e566f69c2b94b88714543a43e762312039d38
10,094
py
Python
Modules/ExportRuleModule.py
akashshuklacode/Ansible-with-OnCommand-API-Services
ed96f6b96a6997fb8757ea7aad44feee526a942f
[ "BSD-3-Clause" ]
20
2017-12-11T00:23:56.000Z
2022-02-24T00:15:45.000Z
Modules/ExportRuleModule.py
coreywan/Ansible-with-OnCommand-API-Services
c2ffca6eeb57c3ab08b1559f6cd3bbc1bdb1c7e1
[ "BSD-3-Clause" ]
2
2018-02-07T08:39:27.000Z
2018-03-20T07:05:26.000Z
Modules/ExportRuleModule.py
coreywan/Ansible-with-OnCommand-API-Services
c2ffca6eeb57c3ab08b1559f6cd3bbc1bdb1c7e1
[ "BSD-3-Clause" ]
11
2018-02-04T20:30:04.000Z
2021-08-10T01:20:19.000Z
#============================================================ # # # Copyright (c) 2017 NetApp, Inc. All rights reserved. # Specifications subject to change without notice. # # This sample code is provided AS IS, with no support or # warranties of any kind, including but not limited to # warranties of merchantability or...
35.170732
195
0.57876
2ccf8ed44bf9092715b1e23adfca5314b67b3ca9
1,979
py
Python
varclr/utils/infer.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
28
2021-12-03T22:39:10.000Z
2022-03-13T02:38:04.000Z
varclr/utils/infer.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
1
2021-12-16T11:33:35.000Z
2021-12-27T00:52:59.000Z
varclr/utils/infer.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
3
2021-12-05T18:30:19.000Z
2021-12-16T11:01:28.000Z
import sys import torch from tqdm import tqdm from transformers import AutoTokenizer, AutoModel from varclr.data.preprocessor import CodePreprocessor def forward(model, input_ids, attention_mask): output = model( input_ids=input_ids, attention_mask=attention_mask, output_hidden_states=True ) all...
27.873239
85
0.55331
178b4fb8b83b6a38a8fd8da4e22f480db0f28b67
5,244
py
Python
trac/trac/db/util.py
HelionDevPlatform/bloodhound
206b0d9898159fa8297ad1e407d38484fa378354
[ "Apache-2.0" ]
84
2015-01-07T03:42:53.000Z
2022-01-10T11:57:30.000Z
trac/trac/db/util.py
HelionDevPlatform/bloodhound
206b0d9898159fa8297ad1e407d38484fa378354
[ "Apache-2.0" ]
1
2021-11-04T12:52:03.000Z
2021-11-04T12:52:03.000Z
trac/trac/db/util.py
HelionDevPlatform/bloodhound
206b0d9898159fa8297ad1e407d38484fa378354
[ "Apache-2.0" ]
35
2015-01-06T11:30:27.000Z
2021-11-10T16:34:52.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2009 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2006 Matthew Good <trac@matt-good.net> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distr...
33.615385
77
0.583905
4986a76a2e9def915f2b969d94be92ba99420306
6,193
py
Python
spectrocrunch/math/noisepropagation.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/math/noisepropagation.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/math/noisepropagation.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..utils import instance from ..utils import units import numpy as np from uncertainties.core import Variable as RandomVariable from uncertainties import unumpy # Uncertainties: linear approximation to error propagation # # Variable.std_dev(): # sqrt(Da^2 + Db^2 + ...) # # Varia...
25.072874
117
0.562409
45d5f5bc2d1f05588f914d19ecd758cb80ed3baa
222
py
Python
app/db/base.py
SonGokussj4/fast-api-excercise
15ae21fd2dba7cbf6bf42a2beee52a379e66c847
[ "MIT" ]
null
null
null
app/db/base.py
SonGokussj4/fast-api-excercise
15ae21fd2dba7cbf6bf42a2beee52a379e66c847
[ "MIT" ]
null
null
null
app/db/base.py
SonGokussj4/fast-api-excercise
15ae21fd2dba7cbf6bf42a2beee52a379e66c847
[ "MIT" ]
null
null
null
# Import all the models, so that Base has them before being # imported by Alembic from app.db.base_class import Base from app.models.user import User from app.models.movie import Movie from app.models.rating import Rating
31.714286
59
0.806306
8e19e523366e7ff06fd85c658896c48b53bb08ec
2,623
py
Python
applications/tensorflow/cnns/training/upload_run.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
260
2019-11-18T01:50:00.000Z
2022-03-28T23:08:53.000Z
applications/tensorflow/cnns/training/upload_run.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
27
2020-01-28T23:07:50.000Z
2022-02-14T15:37:06.000Z
applications/tensorflow/cnns/training/upload_run.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
56
2019-11-18T02:13:12.000Z
2022-02-28T14:36:09.000Z
# Copyright (c) 2019 Graphcore Ltd. 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...
34.973333
76
0.669844
1b8d75d228e0098b306fc0682bbb7b80baa88c00
606
py
Python
nnformer/experiment_planning/change_batch_size.py
BRAIN-Lab-UNC/BrainExtraction-TissueSegmentation-Macaque
b5329035d9e32c8a27151cf2396eaf209396a334
[ "MIT" ]
770
2021-09-08T01:38:04.000Z
2022-03-31T10:00:33.000Z
nnformer/experiment_planning/change_batch_size.py
cccyyy24/nnFormer
04bd7d91489f52cba709c5e53d42baec906248ef
[ "MIT" ]
56
2021-09-09T03:11:27.000Z
2022-03-29T03:18:18.000Z
nnformer/experiment_planning/change_batch_size.py
cccyyy24/nnFormer
04bd7d91489f52cba709c5e53d42baec906248ef
[ "MIT" ]
133
2021-09-08T03:06:41.000Z
2022-03-02T15:04:30.000Z
from batchgenerators.utilities.file_and_folder_operations import * import numpy as np if __name__ == '__main__': input_file = '/home/xychen/new_transformer/nnFormerFrame/DATASET/nnFormer_preprocessed/Task008_Verse1/nnFormerPlansv2.1_plans_3D.pkl' output_file = '/home/xychen/new_transformer/nnFormerFrame/DATASE...
60.6
138
0.773927
35f81c1e16ce85bd62c9a3845553ea2111745c0a
6,622
py
Python
kolibri/core/auth/permissions/auth.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
kolibri/core/auth/permissions/auth.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
3
2016-05-24T21:12:01.000Z
2017-03-09T22:43:08.000Z
kolibri/core/auth/permissions/auth.py
DXCanas/kolibri
4571fc5e5482a2dc9cd8f93dd45222a69d8a68b4
[ "MIT" ]
1
2021-07-26T11:38:29.000Z
2021-07-26T11:38:29.000Z
""" The permissions classes in this module define the specific permissions that govern access to the models in the auth app. """ from django.contrib.auth.models import AnonymousUser from ..constants.collection_kinds import FACILITY from ..constants.collection_kinds import LEARNERGROUP from ..constants.role_kinds impor...
36.185792
127
0.701903
30c37113f6b8ffa5f1fe341215dac18c4f6ca785
10,867
py
Python
pandas/tests/series/indexing/test_indexing.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
2
2021-05-07T04:58:36.000Z
2021-05-07T04:58:59.000Z
pandas/tests/series/indexing/test_indexing.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-05-11T00:05:40.000Z
2021-05-11T00:05:40.000Z
pandas/tests/series/indexing/test_indexing.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
2
2021-06-16T07:19:12.000Z
2021-12-16T10:24:44.000Z
""" test get/set & misc """ from datetime import timedelta import numpy as np import pytest from pandas import ( DataFrame, IndexSlice, MultiIndex, Series, Timedelta, Timestamp, date_range, period_range, timedelta_range, ) import pandas._testing as tm def test_basic_indexing(): ...
28.597368
86
0.626944
26ec77762fe5e98e762a7f8afb90ba82a5875e63
12,297
py
Python
salt/utils/jinja.py
sunbenxin/salt
b821f6a174e67a3e1def1ba7fa16885cd985bb0c
[ "Apache-2.0" ]
null
null
null
salt/utils/jinja.py
sunbenxin/salt
b821f6a174e67a3e1def1ba7fa16885cd985bb0c
[ "Apache-2.0" ]
null
null
null
salt/utils/jinja.py
sunbenxin/salt
b821f6a174e67a3e1def1ba7fa16885cd985bb0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Jinja loading utils to enable a more powerful backend for jinja templates ''' # Import python libs from os import path import logging import json import pprint from functools import wraps # Import third party libs from jinja2 import BaseLoader, Markup, TemplateNotFound, nodes from jinja2.e...
29.992683
92
0.538343
515837a1ef42605f2b16705a783fac541cfc302e
2,991
py
Python
mlops-template-gitlab/lambda_functions/lambda-gitlab-pipeline-trigger/lambda_function.py
allthingscoded/sagemaker-custom-project-templates
8c4c196b434517f8b663e889a44c0ce7a6e4a589
[ "MIT-0" ]
null
null
null
mlops-template-gitlab/lambda_functions/lambda-gitlab-pipeline-trigger/lambda_function.py
allthingscoded/sagemaker-custom-project-templates
8c4c196b434517f8b663e889a44c0ce7a6e4a589
[ "MIT-0" ]
null
null
null
mlops-template-gitlab/lambda_functions/lambda-gitlab-pipeline-trigger/lambda_function.py
allthingscoded/sagemaker-custom-project-templates
8c4c196b434517f8b663e889a44c0ce7a6e4a589
[ "MIT-0" ]
null
null
null
import gitlab import os import boto3 import base64 from botocore.exceptions import ClientError import logging logger = logging.getLogger() logger.setLevel(logging.INFO) logger.addHandler(logging.StreamHandler()) def get_secret(): ''' ''' secret_name = os.environ['SecretName'] region_name = os.environ['Re...
32.51087
108
0.62989
9d3cc892e7f2079c42f5d005a01281e6f6cab84a
1,445
py
Python
crawling-web-python-scrapy/04/demos/quotes/spiders/QuoteCrawler.py
Pradeepgb10/web-scraping
433aa8dd62c1e858bc8d9bd4a995a79a912c1782
[ "Apache-2.0" ]
null
null
null
crawling-web-python-scrapy/04/demos/quotes/spiders/QuoteCrawler.py
Pradeepgb10/web-scraping
433aa8dd62c1e858bc8d9bd4a995a79a912c1782
[ "Apache-2.0" ]
null
null
null
crawling-web-python-scrapy/04/demos/quotes/spiders/QuoteCrawler.py
Pradeepgb10/web-scraping
433aa8dd62c1e858bc8d9bd4a995a79a912c1782
[ "Apache-2.0" ]
null
null
null
#scrapy genspider --template=crawl QuoteCrawler quotes.toscrape.com import os import re import codecs import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from quotes.items import QuotesItem class QuoteCrawler(CrawlSpider): txt = '.txt' fn = 'quotes.toscra...
33.604651
110
0.590311
7d1504308f10385090b664de81c82943b29e2c12
1,411
py
Python
html_parsing/winauto_ua.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
html_parsing/winauto_ua.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
html_parsing/winauto_ua.py
gil9red/SimplePyScripts
c191ce08fbdeb29377639184579e392057945154
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import requests from bs4 import BeautifulSoup session = requests.Session() session.headers['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0' url = 'https://winauto.ua/index.php?match=all&subcats=...
39.194444
202
0.727144
639c86c1a0921cf402d28c0f5166822ec330b0ee
10,676
py
Python
youpy/math.py
youpy-org/youpy
0b3b31043d0c517615c99eaf02d3464c50d59cb4
[ "BSD-3-Clause" ]
null
null
null
youpy/math.py
youpy-org/youpy
0b3b31043d0c517615c99eaf02d3464c50d59cb4
[ "BSD-3-Clause" ]
null
null
null
youpy/math.py
youpy-org/youpy
0b3b31043d0c517615c99eaf02d3464c50d59cb4
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- """ """ from math import pi from math import sin from math import cos from math import tan from math import atan2 from math import sqrt from math import isclose from math import ceil from math import floor from collections import OrderedDict def degree_to_radian(degree): return degree ...
23.008621
123
0.56819
630943f4ec1bb1e039c37670e6bf43b53fec4631
33,657
py
Python
pandas/io/json/json.py
FHaase/pandas
dc8d35aa53d496b651f5e1ab4cb2604e9f7236c7
[ "BSD-3-Clause" ]
null
null
null
pandas/io/json/json.py
FHaase/pandas
dc8d35aa53d496b651f5e1ab4cb2604e9f7236c7
[ "BSD-3-Clause" ]
null
null
null
pandas/io/json/json.py
FHaase/pandas
dc8d35aa53d496b651f5e1ab4cb2604e9f7236c7
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable-msg=E1101,W0613,W0603 from itertools import islice import os import numpy as np import pandas._libs.json as json from pandas._libs.tslibs import iNaT from pandas.compat import StringIO, long, to_str, u from pandas.errors import AbstractMethodError from pandas.core.dtypes.common import is_period_dty...
35.353992
79
0.567133
a82bd6cbe87b927c2913cf0a9200f0012626cad7
21
py
Python
numl/labels/__init__.py
alexandraday-nu/pynuml
3a71855015099289f0f4a7d24df6f8517bd9102b
[ "Apache-2.0" ]
1
2021-10-16T04:28:46.000Z
2021-10-16T04:28:46.000Z
numl/labels/__init__.py
alexandraday-nu/pynuml
3a71855015099289f0f4a7d24df6f8517bd9102b
[ "Apache-2.0" ]
1
2021-08-30T12:21:39.000Z
2021-08-31T16:31:44.000Z
numl/labels/__init__.py
alexandraday-nu/pynuml
3a71855015099289f0f4a7d24df6f8517bd9102b
[ "Apache-2.0" ]
2
2021-08-29T00:06:12.000Z
2021-08-30T15:02:47.000Z
__all__ = [ "ccqe" ]
10.5
20
0.52381
4fee0fd9859b80bf35407564eeef33b3cdc0eabe
13,560
py
Python
src/ini_read.py
piotrszewczuk/FotoKilof
4500257a279abde3ea0c516d2b30c50fc8adb5ed
[ "MIT" ]
null
null
null
src/ini_read.py
piotrszewczuk/FotoKilof
4500257a279abde3ea0c516d2b30c50fc8adb5ed
[ "MIT" ]
null
null
null
src/ini_read.py
piotrszewczuk/FotoKilof
4500257a279abde3ea0c516d2b30c50fc8adb5ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=line-too-long # pylint: disable=bare-except """ module contains function for reading entries from config file. Every function read part of config file - ini_read - general setting for FotoKilof - ini_read_resize - ini_read_text - ini_read_rotate - ini_read_crop - ini_read_bord...
25.298507
127
0.600737
c62289ae8847293774a9b7dbd1c5974a6c11c165
868
py
Python
sandbox/parse-stats.py
ctSkennerton/khmer
f5428c5bdfe009ce39b125fa6e18077c534dc747
[ "BSD-3-Clause" ]
null
null
null
sandbox/parse-stats.py
ctSkennerton/khmer
f5428c5bdfe009ce39b125fa6e18077c534dc747
[ "BSD-3-Clause" ]
null
null
null
sandbox/parse-stats.py
ctSkennerton/khmer
f5428c5bdfe009ce39b125fa6e18077c534dc747
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # import sys '''prints out summary of all stats for all part...
31
76
0.59447
b18da810bec00764a23c296e26ec379eb694ea9a
2,998
py
Python
tests/test_searcher_clusters.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
67
2015-01-31T07:44:55.000Z
2022-03-21T21:43:34.000Z
tests/test_searcher_clusters.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
13
2016-06-03T19:07:51.000Z
2022-03-31T04:20:40.000Z
tests/test_searcher_clusters.py
petavazohi/PyChemia
e779389418771c25c830aed360773c63bb069372
[ "MIT" ]
37
2015-01-22T15:37:23.000Z
2022-03-21T15:38:10.000Z
import unittest import time import multiprocessing from pychemia.db import has_connection from pychemia import pcm_log from pychemia.searcher import HarmonySearch, FireFly, GeneticAlgorithm, ParticleSwarm from pychemia.population import LJCluster def evaluator(): from pychemia.evaluator import cluster_launcher ...
30.907216
109
0.622081
7782df0d240f4b9876e586535801d6352ada7373
1,006
py
Python
repeats.py
mcjcode/puzzles
efde2e339286395218d3c399118a3b4b197a0e11
[ "MIT" ]
null
null
null
repeats.py
mcjcode/puzzles
efde2e339286395218d3c399118a3b4b197a0e11
[ "MIT" ]
null
null
null
repeats.py
mcjcode/puzzles
efde2e339286395218d3c399118a3b4b197a0e11
[ "MIT" ]
null
null
null
#!/usr/bin/env python from itertools import product def repeats_generator(n) : for seq in product(*([[0,1]]*n)) : seq2 = seq + seq found_shadow = any([[seq2[:j] == seq2[j:2*j]] for j in range(1,n)]) if not found_shadow : yield seq2 def count_repeats(depth=10) : ...
31.4375
75
0.510934
749bc88e317fd822550e525aa714994422af5058
4,197
py
Python
project/01_get_grocery.py
bsegot/housing-search-Chicago
d1a3029a4351d0db45c7f73f432d89ccdb469269
[ "MIT" ]
1
2021-12-29T17:43:34.000Z
2021-12-29T17:43:34.000Z
project/01_get_grocery.py
bsegot/housing-search-Chicago
d1a3029a4351d0db45c7f73f432d89ccdb469269
[ "MIT" ]
2
2020-01-26T16:02:33.000Z
2020-02-08T22:06:09.000Z
project/01_get_grocery.py
bsegot/housing-search-Chicago
d1a3029a4351d0db45c7f73f432d89ccdb469269
[ "MIT" ]
1
2020-02-08T16:24:24.000Z
2020-02-08T16:24:24.000Z
import pandas as pd # Read data from CSV files csv1_path = "output/commute_data.csv" # Read in RedFin data prop_df = pd.read_csv(csv1_path) n = prop_df.shape[0] print("Total Number of Homes: " + str(n) + "\n") # Read data from CSV files csv2_path = "data_sets/aldi.csv" ALDI = pd.read_csv(csv2_path) ALDI['NAME'] = "...
29.978571
71
0.649273
9396185439fbe97650d2edac66e1b287b01214ff
821
py
Python
spark_auto_mapper_fhir/value_sets/v2_0174.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
1
2021-11-18T18:06:45.000Z
2021-11-18T18:06:45.000Z
spark_auto_mapper_fhir/value_sets/v2_0174.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/v2_0174.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
31.576923
84
0.757613