hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4b21bd61473f9e05b8ff5798ab318a00a380f810
2,273
py
Python
setup.py
LJunghansCode/example-dash-structure
8d073c78be4631238b6acdc0e3755c029a18bcf0
[ "MIT" ]
null
null
null
setup.py
LJunghansCode/example-dash-structure
8d073c78be4631238b6acdc0e3755c029a18bcf0
[ "MIT" ]
null
null
null
setup.py
LJunghansCode/example-dash-structure
8d073c78be4631238b6acdc0e3755c029a18bcf0
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages # Package meta-data. NAME = "dash-practice" DESCRIPTION = "Project structure practice" # These can be set to None if you want to omit them URL = "None" AUTHOR = "None" AUTHOR_EMAIL = "None" LICENSE = "MIT license" REQUIRES_PYTHON = ">=3.6.0" VERSION = None # ge...
26.741176
79
0.647602
682cef3a1021d4ec98b4043185629d7000e35e52
3,213
py
Python
NicBot/cogs/bot_cogs.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
NicBot/cogs/bot_cogs.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
NicBot/cogs/bot_cogs.py
nicdgonzalez/NicBot-discord.py
3a21510c1e4e2c933f48708478ae792159324a7c
[ "MIT" ]
null
null
null
from os import getcwd, listdir from pathlib import Path from typing import List import discord from discord.ext.commands import Bot, Cog, command, is_owner from .utils import add_cog # Trailing `[2:]` removes the drive (C:) from the path since `Path` # uses a lowercase drive letter and `getcwd` uses an uppercase. pa...
28.433628
78
0.544351
4c0c0851dce983dac6d44fde169b9e94809ffc1b
117,651
py
Python
aesara/gpuarray/elemwise.py
hs2361/aesara
16f98e4fd69db92e0c2cde9dd97a0d005235deea
[ "BSD-3-Clause" ]
1
2021-11-30T06:38:39.000Z
2021-11-30T06:38:39.000Z
aesara/gpuarray/elemwise.py
fonnesbeck/aesara
02378861f1a77135f2556018630092a09262ea76
[ "BSD-3-Clause" ]
null
null
null
aesara/gpuarray/elemwise.py
fonnesbeck/aesara
02378861f1a77135f2556018630092a09262ea76
[ "BSD-3-Clause" ]
null
null
null
import copy from io import StringIO import numpy as np from aesara import scalar as aes from aesara.graph.basic import Apply from aesara.graph.op import _NoPythonOp from aesara.graph.utils import MethodNotDefined from aesara.link.c.interface import HideC from aesara.scalar import Composite, Scalar from aesara.scalar....
35.256518
117
0.458534
473f4f710b1f9b93ad53af604dfaf1875d7227a4
13,125
py
Python
main.py
Bookaa/LiuD_Kaleidoscope
075319773c68931002cf8e4dc80f6747a2f87415
[ "MIT" ]
null
null
null
main.py
Bookaa/LiuD_Kaleidoscope
075319773c68931002cf8e4dc80f6747a2f87415
[ "MIT" ]
null
null
null
main.py
Bookaa/LiuD_Kaleidoscope
075319773c68931002cf8e4dc80f6747a2f87415
[ "MIT" ]
null
null
null
#!/usr/bin/env python # refer to https://github.com/eliben/pykaleidoscope/blob/master/chapter6.py from ctypes import CFUNCTYPE, c_double import llvmlite.ir as ir import llvmlite.binding as llvm import Ast_Ks class LLVMCodeGenerator: def __init__(self): self.module = ir.Module() self.builder = N...
36.662011
98
0.613638
d28ab9285c945ea85e280b117634dd37169b2893
5,540
py
Python
code/deep/finetune_AlexNet_ResNet/finetune_office31.py
PatrickZH/transferlearning
7fdb2280dbe0a79335eca290f808f034fd441b67
[ "MIT" ]
5
2019-04-06T08:17:15.000Z
2019-09-06T01:24:46.000Z
code/deep/finetune_AlexNet_ResNet/finetune_office31.py
ZoeLin1130/transferlearning
66e4b9a5747636f1e94512c8397683b3dc44d2ef
[ "MIT" ]
null
null
null
code/deep/finetune_AlexNet_ResNet/finetune_office31.py
ZoeLin1130/transferlearning
66e4b9a5747636f1e94512c8397683b3dc44d2ef
[ "MIT" ]
3
2019-10-02T15:46:47.000Z
2020-06-17T13:45:27.000Z
from __future__ import print_function import argparse import data_loader import numpy as np import torch import torch.nn as nn import torch.optim as optim import torchvision import time # Command setting parser = argparse.ArgumentParser(description='Finetune') parser.add_argument('-model', '-m', type=str, help='mod...
40.735294
121
0.605415
7f0711f99eb55d9b57ff67832c9c98d4c40822fc
438
py
Python
Log_clearer.py
hack-e-d/FR-ERP
9fe1c852e7a426309c238aabfba0bd8de7734429
[ "MIT" ]
null
null
null
Log_clearer.py
hack-e-d/FR-ERP
9fe1c852e7a426309c238aabfba0bd8de7734429
[ "MIT" ]
null
null
null
Log_clearer.py
hack-e-d/FR-ERP
9fe1c852e7a426309c238aabfba0bd8de7734429
[ "MIT" ]
1
2020-03-11T18:21:13.000Z
2020-03-11T18:21:13.000Z
import mysql.connector import datetime import time from tkinter import * def Clear_attendance(): mydb = mysql.connector.connect( host="localhost", user="root", passwd="", database="attendance" ) print(mydb) mycursor = mydb.cursor() sql = "truncate table att...
19.909091
58
0.646119
259a2dd5cf2b941866914cdbdaa656b2276a948e
865
py
Python
tests/test_subspecies.py
floralist/botaxon
979bb525eac87eee07593332aaac1bfd96fe44e5
[ "MIT" ]
null
null
null
tests/test_subspecies.py
floralist/botaxon
979bb525eac87eee07593332aaac1bfd96fe44e5
[ "MIT" ]
1
2019-04-11T22:46:34.000Z
2019-04-28T22:23:57.000Z
tests/test_subspecies.py
ggueret/botaxon
979bb525eac87eee07593332aaac1bfd96fe44e5
[ "MIT" ]
1
2020-05-11T17:21:47.000Z
2020-05-11T17:21:47.000Z
# -*- coding: utf-8 -*- import pytest import botaxon @pytest.mark.parametrize("test_input", ["Argyranthemum frutescens subsp. canariae"]) def test_single_subspecies(test_input): parsed = botaxon.load(test_input) assert isinstance(parsed, botaxon.SubSpeciesResult) assert botaxon.load(test_input).name == t...
34.6
84
0.778035
94ebc74ad5bab311b46b1f843958a617db223aba
4,040
py
Python
data/make_boxplot.py
faroit/icassp_2016_slides
601218e1d58b0f97fe750405f2b61dc78638fb6b
[ "MIT" ]
null
null
null
data/make_boxplot.py
faroit/icassp_2016_slides
601218e1d58b0f97fe750405f2b61dc78638fb6b
[ "MIT" ]
null
null
null
data/make_boxplot.py
faroit/icassp_2016_slides
601218e1d58b0f97fe750405f2b61dc78638fb6b
[ "MIT" ]
1
2017-01-28T21:57:20.000Z
2017-01-28T21:57:20.000Z
import numpy as np import matplotlib.pyplot as plt import argparse import math import pandas as pd import seaborn as sns import matplotlib as mpl from scipy.io import loadmat from matplotlib.transforms import BlendedGenericTransform if __name__ == '__main__': parser = argparse.ArgumentParser( description=...
28.450704
79
0.569059
ac26743a7d827f3d230408bed3f1e05d9460d80c
12,379
py
Python
src/cpu/minor/BaseMinorCPU.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T13:18:26.000Z
2022-03-25T13:18:26.000Z
src/cpu/minor/BaseMinorCPU.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T14:15:30.000Z
2022-03-25T14:15:30.000Z
src/cpu/minor/BaseMinorCPU.py
ksco/gem5-xiangshan
0baf1b5229885d81d689a677102f0665aaac5514
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2014, 2017-2018 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of th...
42.249147
78
0.708054
39cdfbf4809b23f1a6607aabf0ae26b3297946f6
1,237
py
Python
pxr/usd/plugin/usdMtlx/__init__.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
5
2017-11-06T10:21:18.000Z
2020-04-02T13:20:55.000Z
pxr/usd/plugin/usdMtlx/__init__.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
1
2020-07-07T22:39:42.000Z
2020-07-07T22:39:42.000Z
pxr/usd/plugin/usdMtlx/__init__.py
YuqiaoZhang/USD
bf3a21e6e049486441440ebf8c0387db2538d096
[ "BSD-2-Clause" ]
null
null
null
# # Copyright 2018 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # # 6. Trademarks. T...
35.342857
74
0.756669
637b4340836e7a085a60e221f9deb4822eb7967b
991
py
Python
train.py
DanielLund/music-genre-classifier
a761b44bed9226cf40735d585285eb6916bfaad2
[ "MIT" ]
null
null
null
train.py
DanielLund/music-genre-classifier
a761b44bed9226cf40735d585285eb6916bfaad2
[ "MIT" ]
null
null
null
train.py
DanielLund/music-genre-classifier
a761b44bed9226cf40735d585285eb6916bfaad2
[ "MIT" ]
null
null
null
from preprocessing import analyse_playlist, PCA from KNN_model import knn_func as knn url_breaks = "" url_house = "" breaks = analyse_playlist(url_breaks) house = analyse_playlist(url_house) PCA_breaks = PCA("breaks.xlsx") PCA_house = PCA("house.xlsx") labelled_breaks = pd.read_excel("breaks.xlsx", index_col=0, us...
30.96875
107
0.711403
28fd2ad35609b2d53ff646e88e9de27ba133be88
8,171
py
Python
tests/unit/search/test_tasks.py
uranusjr/warehouse
d0a88279ad1f9a80e4adc60bbe0c37abbb7f07e7
[ "Apache-2.0" ]
null
null
null
tests/unit/search/test_tasks.py
uranusjr/warehouse
d0a88279ad1f9a80e4adc60bbe0c37abbb7f07e7
[ "Apache-2.0" ]
null
null
null
tests/unit/search/test_tasks.py
uranusjr/warehouse
d0a88279ad1f9a80e4adc60bbe0c37abbb7f07e7
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
33.487705
88
0.586831
eb6f3e25632910146f641da5ef5145fe0bc0c16c
12,438
py
Python
intersight/models/workflow_build_task_meta_owner.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/workflow_build_task_meta_owner.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/workflow_build_task_meta_owner.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 WorkflowBuildTaskMetaOwner(object): """ NOTE:...
28.925581
214
0.608056
5bc57a2dd141a3cc35b4fffbb66a49303243a538
1,041
py
Python
openchain/adapters/base.py
manti-by/Openchain
0e2bd5323b35f888f2939d30acab50bd46645e58
[ "BSD-2-Clause" ]
1
2019-03-07T20:42:37.000Z
2019-03-07T20:42:37.000Z
openchain/adapters/base.py
manti-by/Openchain
0e2bd5323b35f888f2939d30acab50bd46645e58
[ "BSD-2-Clause" ]
null
null
null
openchain/adapters/base.py
manti-by/Openchain
0e2bd5323b35f888f2939d30acab50bd46645e58
[ "BSD-2-Clause" ]
null
null
null
import os class Singleton(type): instance_set = {} def __call__(cls, *args, **kwargs): if cls not in cls.instance_set: cls.instance_set[cls] = super(Singleton, cls).__call__(*args, **kwargs) return cls.instance_set[cls] class BaseAdapter(metaclass=Singleton): db_path = os....
26.692308
83
0.667627
f13200a2440c3b2d01a0841c13dcc52ac32e8c69
1,173
py
Python
custom_components/idiamant/const.py
clementprevot/home-assistant-idiamant
2fc2703e4f2ec66a135a71d9a76121e2869a940f
[ "MIT" ]
1
2022-02-27T14:52:56.000Z
2022-02-27T14:52:56.000Z
custom_components/idiamant/const.py
clementprevot/home-assistant-idiamant
2fc2703e4f2ec66a135a71d9a76121e2869a940f
[ "MIT" ]
18
2022-02-27T13:38:34.000Z
2022-03-30T06:32:27.000Z
custom_components/idiamant/const.py
clementprevot/home-assistant-idiamant
2fc2703e4f2ec66a135a71d9a76121e2869a940f
[ "MIT" ]
null
null
null
"""Constants used by the iDiamant component.""" from homeassistant.const import Platform NAME = "iDiamant" VERSION = "0.0.1" DOMAIN = "idiamant" DOMAIN_DATA = f"{DOMAIN}_data" MANUFACTURER = "Netatmo" DEFAULT_ATTRIBUTION = f"Data provided by {MANUFACTURER}" PLATFORMS = [ Platform.COVER, Platform.SENSOR, ] B...
20.946429
64
0.726343
8243285c7737e7661cce42a8e43d3f3056f82314
1,173
py
Python
smsbomber.py
Nxuser741/SMSBomber-python
9df768427b0d22451b837d7ea5c68be2069b7142
[ "Apache-2.0" ]
null
null
null
smsbomber.py
Nxuser741/SMSBomber-python
9df768427b0d22451b837d7ea5c68be2069b7142
[ "Apache-2.0" ]
null
null
null
smsbomber.py
Nxuser741/SMSBomber-python
9df768427b0d22451b837d7ea5c68be2069b7142
[ "Apache-2.0" ]
null
null
null
import requests def start(): spanduk = "\n ______ __________ __ \n / __/ |/ / __/ _ )___ __ _ / / ___ ____\n _\ \/ /|_/ /\ \/ _ / _ \/ ' \/ _ \/ -_) __/\n/___/_/ /_/___/____/\___/_/_/_/_.__/\__/_/ \n" print(spanduk) def hajar(nope): BASE = "PC Me" head = {"LANG":"en"...
30.076923
210
0.542199
abb43829551371539f0d868301b54097c9bc7da2
662
py
Python
reporter/app/automate/job_listener.py
chef-partners/GCP-CSCC-Automate-Integration
96517262a5e530cd5ec0cfe95f0fec9c3b7306ab
[ "Apache-2.0" ]
5
2019-06-17T05:05:00.000Z
2022-02-11T17:25:24.000Z
reporter/app/automate/job_listener.py
chef-partners/GCP-CSCC-Automate-Integration
96517262a5e530cd5ec0cfe95f0fec9c3b7306ab
[ "Apache-2.0" ]
null
null
null
reporter/app/automate/job_listener.py
chef-partners/GCP-CSCC-Automate-Integration
96517262a5e530cd5ec0cfe95f0fec9c3b7306ab
[ "Apache-2.0" ]
5
2018-12-06T14:09:02.000Z
2022-02-11T17:25:28.000Z
from apscheduler.schedulers.background import BackgroundScheduler, BlockingScheduler from automate.automate_service import AutomateService from cscc.cscc_service import CsccService import logging import sys class JobListener(BackgroundScheduler): logger = logging.getLogger(__name__) def listen(self, automateServ...
36.777778
85
0.797583
5ea65d4873a5243d2a44e0d39d0611c949e980c6
3,307
py
Python
clothing_recommender_project.py
rb2001/Clothing_Recommender
48399911686e7cbb8c830340338ca59d0475815c
[ "Unlicense" ]
null
null
null
clothing_recommender_project.py
rb2001/Clothing_Recommender
48399911686e7cbb8c830340338ca59d0475815c
[ "Unlicense" ]
null
null
null
clothing_recommender_project.py
rb2001/Clothing_Recommender
48399911686e7cbb8c830340338ca59d0475815c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """Clothing_Recommender Project .ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1nw0ewNdkx8o3WULAp2ynhHpbq1kVq7YZ Clean the data and use input """ ## Import and Organize Data ## import pandas as pd import numpy as np ...
35.180851
195
0.752646
0c77519a818ee0a71b00b3fda5c4a9604e71d489
107,859
py
Python
ken/lib/python3.8/site-packages/markdown2.py
kennedy-ben/One-Minuite-Spend
33780ed420326e044c58e1b35b6d01af52b6e574
[ "Unlicense", "MIT" ]
1
2019-07-09T04:57:14.000Z
2019-07-09T04:57:14.000Z
virtual/lib/python3.6/site-packages/markdown2.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/markdown2.py
annstella/blog
1cdb7e7e7df028a84fae9b7d901116aae577589d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 Trent Mick. # Copyright (c) 2007-2008 ActiveState Corp. # License: MIT (http://www.opensource.org/licenses/mit-license.php) from __future__ import generators r"""A fast and complete Python implementation of Markdown. [from http://daringfireball.net/projects/markdown/] > Mar...
40.579007
166
0.521913
15991e24854e18c98e58f4a47f6b0365c634099d
3,413
py
Python
server/app/settings.py
jleg13/Django-REST-API
7e2c397ca3d49a320a79356c96b35beb86cc97ff
[ "MIT" ]
null
null
null
server/app/settings.py
jleg13/Django-REST-API
7e2c397ca3d49a320a79356c96b35beb86cc97ff
[ "MIT" ]
null
null
null
server/app/settings.py
jleg13/Django-REST-API
7e2c397ca3d49a320a79356c96b35beb86cc97ff
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Build...
25.281481
91
0.685907
909ac29bf9044b1bd83f882c275bb30dee241531
42,546
py
Python
device_base_class.py
labscript-suite-temp-2/blacs
9959cfe0ebf44e4512bf8916407d581034356aad
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
device_base_class.py
labscript-suite-temp-2/blacs
9959cfe0ebf44e4512bf8916407d581034356aad
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
device_base_class.py
labscript-suite-temp-2/blacs
9959cfe0ebf44e4512bf8916407d581034356aad
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
##################################################################### # # # /device_base_class.py # # # # Copyright 2013, Monash University ...
48.959724
251
0.577164
8c5a397a6c6056e5736dd015d3044b09e322cbe1
30,502
py
Python
ml-dft-sandia/networks/models/utils/trained_model_inference.py
DanielKotik/mala
1b89a78f5ddecb1df21d2753715001ffe4250fc1
[ "BSD-3-Clause" ]
11
2021-09-06T18:59:24.000Z
2022-03-17T13:36:52.000Z
ml-dft-sandia/networks/models/utils/trained_model_inference.py
DanielKotik/mala
1b89a78f5ddecb1df21d2753715001ffe4250fc1
[ "BSD-3-Clause" ]
92
2021-09-04T06:38:14.000Z
2022-03-31T11:01:49.000Z
ml-dft-sandia/networks/models/utils/trained_model_inference.py
DanielKotik/mala
1b89a78f5ddecb1df21d2753715001ffe4250fc1
[ "BSD-3-Clause" ]
10
2021-09-07T13:03:30.000Z
2022-03-23T07:49:14.000Z
import numpy as np import os, sys import re from glob import glob import matplotlib import matplotlib.pyplot as plt #import ldos_calc import DFT_calculators from functools import partial import argparse import horovod.torch as hvd from scipy.stats import gaussian_kde import torch import pickle sys.path.append("....
35.884706
142
0.602354
c8f7851106cddfdd588a79cb02d5ea197b0d65d7
1,997
py
Python
ros/src/twist_controller/twist_controller.py
chmod600/test-capstone
4777f687ab78e9173d9993cb3b55087dde84e984
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller.py
chmod600/test-capstone
4777f687ab78e9173d9993cb3b55087dde84e984
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller.py
chmod600/test-capstone
4777f687ab78e9173d9993cb3b55087dde84e984
[ "MIT" ]
null
null
null
import rospy from pid import PID from yaw_controller import YawController from lowpass import LowPassFilter GAS_DENSITY = 2.858 ONE_MPH = 0.44704 class Controller(object): def __init__(self, vehicle_mass, decel_limit, wheel_radius, wheel_base, steer_ratio, max_lat_accel, max_steer_angle): ...
26.626667
87
0.596395
9f193260532bddfa28670e0a6c21c9ac791d5db4
11,341
py
Python
intersight/model/niatelemetry_fabric_pod_ss_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/niatelemetry_fabric_pod_ss_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/niatelemetry_fabric_pod_ss_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
52.748837
1,678
0.635129
e012651d24a784d1e0744c54bf37a121714336bf
6,648
py
Python
tests/python/unittest/test_numpy_default_dtype.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
1
2021-11-09T01:40:17.000Z
2021-11-09T01:40:17.000Z
tests/python/unittest/test_numpy_default_dtype.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_numpy_default_dtype.py
t-triobox/incubator-mxnet
93aa9e33fcb2f216179c691ed9461bc96e37ae70
[ "Apache-2.0" ]
1
2018-07-19T00:43:30.000Z
2018-07-19T00:43:30.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...
29.678571
90
0.700812
dac5670c50150fa25ea8ccba465b17fa32a9aad4
2,816
py
Python
library/scons-2.1.0/build/lib/SCons/Tool/ifl.py
zhaomangang/ElectromagneticDog
471346f1c174861de690647c59d4f2a94be23e89
[ "Apache-2.0" ]
99
2017-08-08T01:37:45.000Z
2021-05-15T14:39:43.000Z
library/scons-2.1.0/build/lib/SCons/Tool/ifl.py
zhaomangang/ElectromagneticDog
471346f1c174861de690647c59d4f2a94be23e89
[ "Apache-2.0" ]
3
2017-08-23T06:39:15.000Z
2019-09-06T18:18:17.000Z
library/scons-2.1.0/build/lib/SCons/Tool/ifl.py
zhaomangang/ElectromagneticDog
471346f1c174861de690647c59d4f2a94be23e89
[ "Apache-2.0" ]
41
2017-08-08T01:38:41.000Z
2022-02-15T12:12:21.000Z
"""SCons.Tool.ifl Tool-specific initialization for the Intel Fortran compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 20...
38.575342
121
0.730469
5096b99527ce5dd8a902dcab28d480b7c967c819
3,042
py
Python
utils/events.py
sensianhermes/SENSIUSERBOT
51473a0a98861192901fb5cc3dc297447a821daa
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2022-03-03T01:31:48.000Z
2022-03-26T00:15:41.000Z
utils/events.py
sensianhermes/SENSIUSERBOT
51473a0a98861192901fb5cc3dc297447a821daa
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-16T02:54:27.000Z
2022-03-17T09:17:12.000Z
utils/events.py
sensianhermes/SENSIUSERBOT
51473a0a98861192901fb5cc3dc297447a821daa
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2022-03-12T00:13:54.000Z
2022-03-14T07:05:04.000Z
import pybase64 from telethon.tl.functions.channels import JoinChannelRequest as Get from telethon.tl.types import MessageEntityMentionName from .logger import logging from .tools import edit_delete LOGS = logging.getLogger(__name__) async def get_user_from_event( event, manevent=None, secondgroup=None, nogroup...
34.965517
86
0.568047
148f64076cc0d592d5b7370e477d0bfd9a8ac24b
601
py
Python
inscrawler/logger.py
aonurdemir/instagram-crawler
ffb11e3f10ab6ca276fecd4ca527b7661db2704d
[ "MIT" ]
null
null
null
inscrawler/logger.py
aonurdemir/instagram-crawler
ffb11e3f10ab6ca276fecd4ca527b7661db2704d
[ "MIT" ]
null
null
null
inscrawler/logger.py
aonurdemir/instagram-crawler
ffb11e3f10ab6ca276fecd4ca527b7661db2704d
[ "MIT" ]
null
null
null
import logging # Create a custom logger logger = logging.getLogger(__name__) # Create handlers c_handler = logging.StreamHandler() f_handler = logging.FileHandler('file.log') c_handler.setLevel(logging.WARNING) f_handler.setLevel(logging.ERROR) # Create formatters and add it to handlers c_format = logging.Formatter(...
28.619048
84
0.77371
3456ba6afcb20561bf90ac5db95ed5f3ee4439fb
569
py
Python
2018/day02/part1.py
bsoyka/aoc
e5f1da6c693a1841394248863e591cfc3bcae0e7
[ "MIT" ]
3
2020-12-10T06:14:40.000Z
2021-12-05T06:50:30.000Z
2018/day02/part1.py
bsoyka/advent-of-code
e5f1da6c693a1841394248863e591cfc3bcae0e7
[ "MIT" ]
4
2020-03-21T18:42:51.000Z
2021-12-04T06:57:13.000Z
2018/day02/part1.py
bsoyka/solutions
e5f1da6c693a1841394248863e591cfc3bcae0e7
[ "MIT" ]
null
null
null
from collections import Counter from pathlib import Path with (Path(__file__).parent / "input.txt").open() as f: boxes = [line.strip() for line in f] two_letters = 0 three_letters = 0 for box in boxes: two = False three = False items = Counter(box).items() for letter, count in items: if c...
23.708333
55
0.588752
b896ed7eb6fe4c5426841b4fa45fa5d87d4e027d
708
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/models.py
Saymmic/cookiecutter-django
4f32f1c096a842ff872728f5035a8092a16426d5
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/models.py
Saymmic/cookiecutter-django
4f32f1c096a842ff872728f5035a8092a16426d5
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/models.py
Saymmic/cookiecutter-django
4f32f1c096a842ff872728f5035a8092a16426d5
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db.models import CharField from django.urls import reverse from django.utils.translation import gettext_lazy as _ from {{ cookiecutter.project_slug }}.base.models import BaseModel class User(BaseModel, AbstractUser): """ Default custom user mode...
35.4
70
0.747175
35da63f90e5b062a6c70a401c7ff7049298e76f8
10,010
py
Python
openfermioncirq/trotter/algorithms/linear_swap_network.py
mpharrigan/OpenFermion-Cirq
623a2431227be3c2ff57a9d0d3a8aead6658ee26
[ "Apache-2.0" ]
null
null
null
openfermioncirq/trotter/algorithms/linear_swap_network.py
mpharrigan/OpenFermion-Cirq
623a2431227be3c2ff57a9d0d3a8aead6658ee26
[ "Apache-2.0" ]
null
null
null
openfermioncirq/trotter/algorithms/linear_swap_network.py
mpharrigan/OpenFermion-Cirq
623a2431227be3c2ff57a9d0d3a8aead6658ee26
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
39.254902
80
0.587113
8716c22b2742052fb18d2b89ad7f46b3fb4be27b
3,352
py
Python
tigerpath/majors_and_certificates/scripts/verifier_tester.py
richardhuangz/tigerpath
6f57dc3dffbc773dba7d27cf5fe89b1c92d1b214
[ "MIT" ]
10
2020-07-23T15:41:17.000Z
2021-11-29T02:25:54.000Z
tigerpath/majors_and_certificates/scripts/verifier_tester.py
richardhuangz/tigerpath
6f57dc3dffbc773dba7d27cf5fe89b1c92d1b214
[ "MIT" ]
133
2018-07-13T05:05:10.000Z
2022-03-08T22:05:59.000Z
tigerpath/majors_and_certificates/scripts/verifier_tester.py
churichard/tigerpath
9eda53e171cbd4c97ae2178da2a9b4ca433a91d8
[ "MIT" ]
12
2018-08-19T07:02:34.000Z
2021-12-23T02:14:41.000Z
#!/usr/bin/env python3 import json import yaml from pprint import pprint import jsonschema # must be installed via pip import os import collections import filecmp import shutil from . import verifier DIR_PATH = os.path.dirname(os.path.realpath(__file__)) # the directory containing this file SCHEMA_LOCATION = os.path....
47.211268
140
0.588604
106de0a74e7d2abaa269404accbf057da9564568
70,655
py
Python
utils/model_utils.py
MIC-DKFZ/DetectionAndRegression
40f3cb92ec6447767bd85b62a015b0d50e32ad26
[ "Apache-2.0" ]
40
2019-09-24T08:11:35.000Z
2022-02-23T13:49:01.000Z
utils/model_utils.py
MIC-DKFZ/MedicalDetectionRegression
40f3cb92ec6447767bd85b62a015b0d50e32ad26
[ "Apache-2.0" ]
13
2019-11-04T10:52:40.000Z
2022-03-11T23:57:14.000Z
utils/model_utils.py
MIC-DKFZ/MedicalDetectionRegression
40f3cb92ec6447767bd85b62a015b0d50e32ad26
[ "Apache-2.0" ]
22
2019-08-28T15:32:25.000Z
2022-02-18T11:27:30.000Z
#!/usr/bin/env python # Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ). # # 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...
45.089343
144
0.621074
4409402fc2d1a6355bab21b28369a59ac9aeb66b
1,922
py
Python
challenges/fifo_animal_shelter/test_fifo_animal_shelter.py
scott-currie/data_structures_and_algorithms
04c1f50c01dbe6ee15c3f0a1155cc2c9528bdd06
[ "MIT" ]
null
null
null
challenges/fifo_animal_shelter/test_fifo_animal_shelter.py
scott-currie/data_structures_and_algorithms
04c1f50c01dbe6ee15c3f0a1155cc2c9528bdd06
[ "MIT" ]
null
null
null
challenges/fifo_animal_shelter/test_fifo_animal_shelter.py
scott-currie/data_structures_and_algorithms
04c1f50c01dbe6ee15c3f0a1155cc2c9528bdd06
[ "MIT" ]
null
null
null
from .fifo_animal_shelter import AnimalShelter import pytest @pytest.fixture def dog_cat_dog(): shelter = AnimalShelter() shelter.enqueue('dog') shelter.enqueue('cat') shelter.enqueue('dog') return shelter @pytest.fixture def empty_shelter(): shelter = AnimalShelter() return shelter de...
27.457143
71
0.704995
678aa0b96b739986579cd179d519e55a935e9714
55,067
py
Python
src/radical/pilot/pmgr/launching/default.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
src/radical/pilot/pmgr/launching/default.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
src/radical/pilot/pmgr/launching/default.py
karahbit/radical.pilot
c611e1df781749deef899dcf5815728e1d8a962e
[ "MIT" ]
null
null
null
# pylint: disable=protected-access __copyright__ = "Copyright 2013-2016, http://radical.rutgers.edu" __license__ = "MIT" import os import copy import math import time import pprint import shutil import tempfile import radical.saga as rs import radical.saga.filesystem as rsfs import radical.utils ...
40.760178
93
0.531661
043bb21c47d182c2fcba3568f19c143a836ec559
730
py
Python
setup.py
zzhhss/django-queryset-exts
5f6c94fa4d76b23523f525bd285a207b313db87b
[ "MIT" ]
1
2019-09-24T03:10:12.000Z
2019-09-24T03:10:12.000Z
setup.py
zzhhss/django-queryset-exts
5f6c94fa4d76b23523f525bd285a207b313db87b
[ "MIT" ]
null
null
null
setup.py
zzhhss/django-queryset-exts
5f6c94fa4d76b23523f525bd285a207b313db87b
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="django-queryset-exts", version="0.0.1", author="zzhhss", author_email="clayhaw@163.com", description="A django queryset with a select_related(or prefetch_related) like method to fetch remo...
31.73913
124
0.675342
ecf39de3d9d93250d1ce24246477a1b6a42d9f04
390
py
Python
languages/python/algorithm_hanoi.py
RohitAthithya/learntosolveit
fe1df98534d3af2fb3ba87c6540d9d8fa883c244
[ "BSD-3-Clause" ]
136
2015-03-06T18:11:21.000Z
2022-03-10T22:31:40.000Z
languages/python/algorithm_hanoi.py
RohitAthithya/learntosolveit
fe1df98534d3af2fb3ba87c6540d9d8fa883c244
[ "BSD-3-Clause" ]
27
2015-01-07T01:38:03.000Z
2021-12-22T19:20:15.000Z
languages/python/algorithm_hanoi.py
RohitAthithya/learntosolveit
fe1df98534d3af2fb3ba87c6540d9d8fa883c244
[ "BSD-3-Clause" ]
1,582
2015-01-01T20:37:06.000Z
2022-03-30T12:29:24.000Z
#!/usr/bin/python # Towers of Hanoi program. disks = 3 from_tower = 'A' to_tower = 'C' using_tower = 'B' def hanoi(n, from_tower, to_tower, using_tower): if n > 0: hanoi(n-1, from_tower, using_tower, to_tower) print('move disk from ', from_tower, ' to ', to_tower) hanoi(n-1, using_tower, t...
24.375
62
0.666667
0b84ad88bd0cf6b3532fe18b373f4ad4b41d9685
634
py
Python
day02/p2.py
pwicks86/adventofcode2016
331523e45095962f5e4614bdca15cc35e3243fdb
[ "MIT" ]
null
null
null
day02/p2.py
pwicks86/adventofcode2016
331523e45095962f5e4614bdca15cc35e3243fdb
[ "MIT" ]
null
null
null
day02/p2.py
pwicks86/adventofcode2016
331523e45095962f5e4614bdca15cc35e3243fdb
[ "MIT" ]
null
null
null
from operator import add f = open('input.txt') lines = [l.strip() for l in f.readlines()] dirs = dict(L=(-1,0),R=(1,0),U=(0,-1),D=(0,1)) cur_pos = (0,2) code = [] valid_positions = [(x,y) for x in range(1,4) for y in range(1,4)] valid_positions.extend([(2,0),(0,2),(4,2),(2,4)]) codes = {(2,0):1,(1,1):2,(2,1):3,(3,1):4...
33.368421
117
0.567823
a946f29eaee9b54b40ee242db98a39892826f9ba
40,336
py
Python
mmtbx/monomer_library/linking_mixins.py
whart222/cctbx_project
32bb901af1431f845143eac06c244f20b1fbc26a
[ "BSD-3-Clause-LBNL" ]
2
2018-02-01T14:25:48.000Z
2021-09-15T16:36:29.000Z
mmtbx/monomer_library/linking_mixins.py
whart222/cctbx_project
32bb901af1431f845143eac06c244f20b1fbc26a
[ "BSD-3-Clause-LBNL" ]
2
2018-06-14T17:04:17.000Z
2019-06-24T20:54:12.000Z
mmtbx/monomer_library/linking_mixins.py
whart222/cctbx_project
32bb901af1431f845143eac06c244f20b1fbc26a
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function import time from cctbx import sgtbx from cctbx import geometry_restraints from mmtbx.monomer_library import linking_setup from mmtbx.monomer_library import linking_utils from mmtbx.monomer_library import glyco_utils from mmtbx.monomer_library import bond...
36.437218
129
0.551716
d4d579843618ccf39a8c898b2a9bb0c8dc980eef
3,223
py
Python
tests/test_stream.py
frenzymadness/module-build
a6adae2c0799c5987eda5bec57c768acd16c2226
[ "MIT" ]
null
null
null
tests/test_stream.py
frenzymadness/module-build
a6adae2c0799c5987eda5bec57c768acd16c2226
[ "MIT" ]
null
null
null
tests/test_stream.py
frenzymadness/module-build
a6adae2c0799c5987eda5bec57c768acd16c2226
[ "MIT" ]
null
null
null
import pytest from module_build.stream import ModuleStream, ModuleStreamContext from tests import mock_mmdv3_and_version def test_create_module_steam(): mmd, version = mock_mmdv3_and_version() module_stream = ModuleStream(mmd, version) expected_version = 20210925131649 assert module_stream.name =...
33.572917
94
0.766677
ffba63721d0b9224d71fdec1fcec8c46c46427c4
3,981
py
Python
tests/bulk/import_book.py
jnoortheen/django-import-export
e855fcf8ed43af4dd681435f516e9f50ee19613d
[ "BSD-2-Clause" ]
null
null
null
tests/bulk/import_book.py
jnoortheen/django-import-export
e855fcf8ed43af4dd681435f516e9f50ee19613d
[ "BSD-2-Clause" ]
null
null
null
tests/bulk/import_book.py
jnoortheen/django-import-export
e855fcf8ed43af4dd681435f516e9f50ee19613d
[ "BSD-2-Clause" ]
null
null
null
""" Helper module for testing bulk imports. Test one of create / update or delete by uncommenting the relevant method calls in main(). Parameters can be modified to test the effect on imports. The DB is cleared down after each test run. Each run is profiled for duration and peak memory usage. When testing deletes, d...
29.058394
95
0.652097
7d17c0af0ebc86077c592190d11c670bcdc0adad
2,020
py
Python
harness/determined/tensorboard/fetchers/gcs.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
harness/determined/tensorboard/fetchers/gcs.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
harness/determined/tensorboard/fetchers/gcs.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
null
null
null
import datetime import logging import os import posixpath import urllib from typing import Any, Dict, Generator, List, Tuple from .base import Fetcher logger = logging.getLogger(__name__) class GCSFetcher(Fetcher): def __init__(self, storage_config: Dict[str, Any], storage_paths: List[str], local_dir: str): ...
33.666667
97
0.650495
0e559d73a5d2d5259be1b0447c42f2fa25dcbbc4
447
py
Python
Wk09/Update.py
MichaelORegan/52957_DATA_REPRESENTATION
2c9b360fe315c2235c6f47a6db4103d16984160c
[ "Apache-2.0" ]
null
null
null
Wk09/Update.py
MichaelORegan/52957_DATA_REPRESENTATION
2c9b360fe315c2235c6f47a6db4103d16984160c
[ "Apache-2.0" ]
null
null
null
Wk09/Update.py
MichaelORegan/52957_DATA_REPRESENTATION
2c9b360fe315c2235c6f47a6db4103d16984160c
[ "Apache-2.0" ]
null
null
null
import mysql.connector db = mysql.connector.connect( host="localhost", user="root", password="", #user="datarep", # # this is the user name on my mac # #passwd="password" # # for my mac database="datarepresentation" ) cursor = db.cursor() sql="update student...
22.35
57
0.58613
8b79933547395122cca00735ef2363d59f48d1ee
505
py
Python
setup.py
rl1987/trunnel
48d506d225a424fb8dd5dc84c090cd2bf0886dd9
[ "BSD-3-Clause" ]
null
null
null
setup.py
rl1987/trunnel
48d506d225a424fb8dd5dc84c090cd2bf0886dd9
[ "BSD-3-Clause" ]
null
null
null
setup.py
rl1987/trunnel
48d506d225a424fb8dd5dc84c090cd2bf0886dd9
[ "BSD-3-Clause" ]
null
null
null
from distutils.core import setup namespace = {} exec(open("./lib/trunnel/__init__.py").read(), namespace) setup(name='Trunnel', version=namespace['__version__'], description='Trunnel binary format parser', author='Nick Mathewson', author_email='nickm@torproject.org', url='https://gitweb...
28.055556
57
0.629703
c437f24ead8aa20d1627fa0d72f3fbc8d4b2f96b
1,537
py
Python
algorithms/baseline/Popular.py
rn5l/rsc18
b0e74495d797605b19b0d302e6797c681ba7748b
[ "Apache-2.0" ]
8
2018-10-08T15:10:17.000Z
2021-04-25T09:09:17.000Z
algorithms/baseline/Popular.py
rn5l/rsc18
b0e74495d797605b19b0d302e6797c681ba7748b
[ "Apache-2.0" ]
null
null
null
algorithms/baseline/Popular.py
rn5l/rsc18
b0e74495d797605b19b0d302e6797c681ba7748b
[ "Apache-2.0" ]
6
2018-10-15T14:20:28.000Z
2021-12-20T23:02:35.000Z
''' Created on 13.04.2018 @author: malte ''' from algorithms.Model import Model import pandas as pd import numpy as np import time class MostPopular(Model): ''' classdocs ''' def __init__(self, remind=False, return_num_preds=500 ): self.return_num_preds = return_num_preds self.remi...
33.413043
144
0.595966
3c4e01caaa1fd5fbeffa0584c78d4917f21d7dc3
660
py
Python
3_MapReduce Programming on MovieLens Data/solution/MapReduce/code/genreMapper.py
minakoyang/YY_Distributed_Cluster_Computing
0284569e4a6d0312590acf9ead5cf23bbcd167c9
[ "MIT" ]
null
null
null
3_MapReduce Programming on MovieLens Data/solution/MapReduce/code/genreMapper.py
minakoyang/YY_Distributed_Cluster_Computing
0284569e4a6d0312590acf9ead5cf23bbcd167c9
[ "MIT" ]
null
null
null
3_MapReduce Programming on MovieLens Data/solution/MapReduce/code/genreMapper.py
minakoyang/YY_Distributed_Cluster_Computing
0284569e4a6d0312590acf9ead5cf23bbcd167c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import csv movieFile = "./movielens/movies.csv" movieList = {} with open(movieFile, mode = 'r') as infile: reader = csv.reader(infile) for row in reader: movieList[row[0]] = {} movieList[row[0]]["title"] = row[1] movieList[row[0]]["genre"] = row[2] ...
25.384615
53
0.578788
2ca454aa6194a1e7ddec81e322c15f58838aa707
1,946
py
Python
ml_advisor/fund_clustering/plots.py
rucsa/thesis_diversification
732591d0a9e8042b45853dd1abe7f8f6ba769c9f
[ "MIT" ]
null
null
null
ml_advisor/fund_clustering/plots.py
rucsa/thesis_diversification
732591d0a9e8042b45853dd1abe7f8f6ba769c9f
[ "MIT" ]
null
null
null
ml_advisor/fund_clustering/plots.py
rucsa/thesis_diversification
732591d0a9e8042b45853dd1abe7f8f6ba769c9f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 22 18:48:34 2018 @author: rucsa """ import numpy as np import matplotlib.pyplot as plt LABEL_COLOR_MAP = {0: '#FFF0F5', 1: '#7CFC00', 2: '#FFFACD', 3: '#CD5C5C', 4: '#FF1...
29.484848
89
0.433196
b21a2091a928f5ba2fa0aad545d87e2d423a6f65
2,313
py
Python
Others/Source/19/19.2/pie_test.py
silence0201/Learn-Python
662da7c0e74221cedb445ba17d5cb1cd3af41c86
[ "MIT" ]
1
2018-05-30T01:38:23.000Z
2018-05-30T01:38:23.000Z
Others/Source/19/19.2/pie_test.py
silence0201/Learn-Python
662da7c0e74221cedb445ba17d5cb1cd3af41c86
[ "MIT" ]
null
null
null
Others/Source/19/19.2/pie_test.py
silence0201/Learn-Python
662da7c0e74221cedb445ba17d5cb1cd3af41c86
[ "MIT" ]
null
null
null
# coding: utf-8 ######################################################################### # 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> # # author yeeku.H.lee kongyeeku@163.com # # # # version...
41.303571
74
0.405534
d62f4ae2632fe50f41569f4be8c53b51549dcab8
226
py
Python
tests/test_cases.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
43
2018-04-29T03:30:18.000Z
2021-02-11T05:24:49.000Z
tests/test_cases.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
46
2018-05-02T01:27:34.000Z
2022-03-26T13:29:55.000Z
tests/test_cases.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
11
2018-05-15T23:47:47.000Z
2021-01-27T14:57:54.000Z
from bitcoin_acks.constants import PullRequestState pull_requests_get_all_test_cases = [ (None, 105), (None, 0), (PullRequestState.OPEN, 20), (PullRequestState.MERGED, 220), (PullRequestState.CLOSED, 5) ]
22.6
51
0.712389
1b236cdc99bed2ddc4a710a41f2e98ec24ddbf09
29,763
py
Python
pandas/_testing/__init__.py
aa-182758/pandas
53b3dd53c7f2c3d24aa77d5a1bc531b1fcd45d70
[ "BSD-3-Clause" ]
2
2022-02-27T04:02:18.000Z
2022-03-01T03:48:47.000Z
pandas/_testing/__init__.py
aa-182758/pandas
53b3dd53c7f2c3d24aa77d5a1bc531b1fcd45d70
[ "BSD-3-Clause" ]
1
2022-03-08T02:15:07.000Z
2022-03-08T02:15:07.000Z
pandas/_testing/__init__.py
aa-182758/pandas
53b3dd53c7f2c3d24aa77d5a1bc531b1fcd45d70
[ "BSD-3-Clause" ]
2
2022-02-27T04:02:19.000Z
2022-03-01T03:49:21.000Z
from __future__ import annotations import collections from datetime import datetime from decimal import Decimal from functools import wraps import operator import os import re import string from typing import ( TYPE_CHECKING, Callable, ContextManager, Counter, Iterable, ) import warnings import nu...
28.590778
88
0.639418
e80e6111f28d5f59fa00b4891e0c54daba1f9edb
1,355
py
Python
player.py
deluxghost/StatusEnhancer
5f5cc339f3ce6393e4cf56c214636a677b296dc3
[ "Apache-2.0" ]
null
null
null
player.py
deluxghost/StatusEnhancer
5f5cc339f3ce6393e4cf56c214636a677b296dc3
[ "Apache-2.0" ]
null
null
null
player.py
deluxghost/StatusEnhancer
5f5cc339f3ce6393e4cf56c214636a677b296dc3
[ "Apache-2.0" ]
null
null
null
import re from typing import List from steamid import SteamID from utils import parse_time line_pat = re.compile(r'^#\s+(?P<userid>\d+)\s+"(?P<name>.+)"\s+(?P<steamid>\S+)\s+(?P<other>.+)$') class Player: def __init__(self, userid: int, name: str, steamid: str, connected: str): self.userid = userid ...
25.566038
99
0.621402
f2127a6f448cf4ef56e7010ff072c449d6530587
8,496
py
Python
tapiriik/settings.py
pmenzel/tapiriik
a86a0ffcd75621ba0dd2b7b6e4be38e872f37b60
[ "Apache-2.0" ]
1,445
2015-01-01T21:43:31.000Z
2022-03-17T13:40:23.000Z
tapiriik/settings.py
pmenzel/tapiriik
a86a0ffcd75621ba0dd2b7b6e4be38e872f37b60
[ "Apache-2.0" ]
441
2015-01-02T03:37:49.000Z
2022-03-31T18:18:03.000Z
tapiriik/settings.py
pmenzel/tapiriik
a86a0ffcd75621ba0dd2b7b6e4be38e872f37b60
[ "Apache-2.0" ]
333
2015-01-06T12:14:15.000Z
2022-03-27T19:58:48.000Z
import os from datetime import datetime # Django settings for tapiriik project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS ALLOWED_HOSTS = ["tapiriik.com", ".tapiriik.com", "localhost"] USE_X_FORWARDED_HOST = True # Local time zone for this in...
30.342857
168
0.711982
fba7881a2c7a61227cf666fff59ac64348fb9f78
6,342
py
Python
UMRFormer/experiment_planning/alternative_experiment_planning/patch_size/experiment_planner_3DUNet_isotropic_in_voxels.py
supersunshinefk/UMRFormer-Net
bf165ca2158a158f7c194c6201af2a4fcabe8742
[ "MIT" ]
null
null
null
UMRFormer/experiment_planning/alternative_experiment_planning/patch_size/experiment_planner_3DUNet_isotropic_in_voxels.py
supersunshinefk/UMRFormer-Net
bf165ca2158a158f7c194c6201af2a4fcabe8742
[ "MIT" ]
null
null
null
UMRFormer/experiment_planning/alternative_experiment_planning/patch_size/experiment_planner_3DUNet_isotropic_in_voxels.py
supersunshinefk/UMRFormer-Net
bf165ca2158a158f7c194c6201af2a4fcabe8742
[ "MIT" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
54.672414
123
0.608168
ca515bda78aac057fe36c36868859629b0036b39
2,563
py
Python
web/tests/functional/store/__init__.py
LebedevRI/codechecker
f4548444851e19c8cc7b8fd621f3dcdf987d7140
[ "Apache-2.0" ]
null
null
null
web/tests/functional/store/__init__.py
LebedevRI/codechecker
f4548444851e19c8cc7b8fd621f3dcdf987d7140
[ "Apache-2.0" ]
null
null
null
web/tests/functional/store/__init__.py
LebedevRI/codechecker
f4548444851e19c8cc7b8fd621f3dcdf987d7140
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
32.858974
77
0.687476
a721c12a0465bac6a5ccbcf71e51327e44837f9c
122
py
Python
fetal-head-segment/__main__.py
AbdulAhadKhan/fetal-head-segment
89a33738947b2c9d755877261e666390a5cbee49
[ "MIT" ]
null
null
null
fetal-head-segment/__main__.py
AbdulAhadKhan/fetal-head-segment
89a33738947b2c9d755877261e666390a5cbee49
[ "MIT" ]
3
2020-06-26T21:01:08.000Z
2021-09-08T02:14:55.000Z
fetal-head-segment/__main__.py
AbdulAhadKhan/fetal-head-segment
89a33738947b2c9d755877261e666390a5cbee49
[ "MIT" ]
null
null
null
import os from command import execute os.environ['TF_CPP_MIN_LOG_LEVEL'] = '6' if __name__ == '__main__': execute()
15.25
40
0.713115
1dea9f19669ea8bf9e067c27b7ecf6c10a4a6594
2,686
py
Python
utils/fixscatter.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
utils/fixscatter.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
utils/fixscatter.py
emit-sds/emit-sds-l1b
be5307fe6821a043971becdd33609b4cf89b1974
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # # Copyright 2020 California Institute of Technology # # EMIT Radiometric Calibration code # Author: David R Thompson, david.r.thompson@jpl.nasa.gov import scipy.linalg import os, sys import numpy as np from spectral.io import envi import json import logging import argparse from numba import j...
28.273684
77
0.669397
9eb0e9c200821f2aa71f9f74afeed1e4b2d4e475
8,828
py
Python
src/img_dataset/TF_flowers.py
wenxichen/tensorflow_yolo2
f040d9932816d8b2f8d7a67231060f0beea821d4
[ "MIT" ]
25
2017-05-15T08:44:26.000Z
2019-09-05T05:23:59.000Z
src/img_dataset/TF_flowers.py
wenxichen/tensorflow_yolo2
f040d9932816d8b2f8d7a67231060f0beea821d4
[ "MIT" ]
5
2017-05-16T07:18:47.000Z
2018-02-14T08:22:56.000Z
src/img_dataset/TF_flowers.py
wenxichen/tensorflow_yolo2
f040d9932816d8b2f8d7a67231060f0beea821d4
[ "MIT" ]
10
2017-07-03T13:27:27.000Z
2018-11-21T13:10:16.000Z
"""ILSVRC 2017 Classicifation Dataset. Use val_split to set the portion for validation set. """ import os import cv2 import math import numpy as np import random import pickle import copy from tqdm import trange, tqdm import config as cfg class tf_flowers: def __init__(self, val_split, rebuild=False, data_aug=...
39.587444
89
0.543838
8b2eb2fcddf510f9a1f5c478a8ead42d71618ddc
393
py
Python
setup.py
marcvinyals/problemtools
e55f97112c9385ed7df1aed1f7b45c516195389e
[ "MIT" ]
null
null
null
setup.py
marcvinyals/problemtools
e55f97112c9385ed7df1aed1f7b45c516195389e
[ "MIT" ]
null
null
null
setup.py
marcvinyals/problemtools
e55f97112c9385ed7df1aed1f7b45c516195389e
[ "MIT" ]
null
null
null
#!/usr/bin/python from distutils.core import setup setup(name='Kattis Problemtools', version='1.1', description='The Kattis Problem Tools', maintainer='Per Austrin', maintainer_email='austrin@kattis.com', url='https://github.com/Kattis/problemtools', packages=['problemtools','probl...
28.071429
62
0.679389
fc20591bc3ac7a8520a5bf232c744f5df912316a
1,408
py
Python
api/models/song.py
donovandicks/datafy
614d0ae409cfe5c5ed28679d25efa8a1fd34333e
[ "MIT" ]
null
null
null
api/models/song.py
donovandicks/datafy
614d0ae409cfe5c5ed28679d25efa8a1fd34333e
[ "MIT" ]
4
2021-12-07T05:56:28.000Z
2021-12-07T05:56:48.000Z
api/models/song.py
donovandicks/datafy
614d0ae409cfe5c5ed28679d25efa8a1fd34333e
[ "MIT" ]
null
null
null
"""Query models for Spotify songs""" from typing import Dict from pydantic import BaseModel from models.common import Query class SongQuery(Query): """The query model for the `/songs` route""" class Song(BaseModel): """The object model representing key elements of Spotify songs""" content: str "...
22.709677
72
0.568892
6eab2cf250a2070e975db41592f44e058e71dd4e
396
py
Python
main08.py
rifhall/E02a-Control-Structures
1452e03f5876afcf233213944e37acc5c6eb4335
[ "MIT" ]
null
null
null
main08.py
rifhall/E02a-Control-Structures
1452e03f5876afcf233213944e37acc5c6eb4335
[ "MIT" ]
null
null
null
main08.py
rifhall/E02a-Control-Structures
1452e03f5876afcf233213944e37acc5c6eb4335
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys assert sys.version_info >= (3,7), "This script requires at least Python 3.7" print('Greetings!') color = '' color = input("What is my favorite color? ") while (color != 'red'): color = color.lower().strip() if (color == 'red'): print('Correct!') elif (color == '...
22
76
0.583333
9200bcfcdaf6c29ad14847d40cfe84ac36a55622
22,666
py
Python
lib/galaxy/tools/execute.py
brinkmanlab/galaxy
8b5553ca9885f350491e0570b23e53fc13009226
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/execute.py
brinkmanlab/galaxy
8b5553ca9885f350491e0570b23e53fc13009226
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/execute.py
brinkmanlab/galaxy
8b5553ca9885f350491e0570b23e53fc13009226
[ "CC-BY-3.0" ]
null
null
null
""" Once state information has been calculated, handle actually executing tools from various states, tracking results, and building implicit dataset collections from matched collections. """ import collections import logging from boltons.iterutils import remap from galaxy import model from galaxy.model.dataset_collec...
47.024896
268
0.698138
737926222c3a1e912eaeb2e8b7cba6c01123cb49
828
py
Python
pigpio_HCSR04.py
meigrafd/Sample-Code
7065950dfd0728cfad66db08327f0efa4c26999c
[ "MIT" ]
10
2017-02-08T18:36:09.000Z
2021-03-31T04:22:25.000Z
pigpio_HCSR04.py
meigrafd/Sample-Code
7065950dfd0728cfad66db08327f0efa4c26999c
[ "MIT" ]
2
2017-01-30T22:15:43.000Z
2017-09-01T21:49:29.000Z
pigpio_HCSR04.py
meigrafd/Sample-Code
7065950dfd0728cfad66db08327f0efa4c26999c
[ "MIT" ]
8
2017-02-09T12:33:47.000Z
2021-04-03T13:34:33.000Z
import pigpio import time GPIO_TRIGGER = 20 GPIO_ECHO = 21 def distance(): gpio.write(GPIO_TRIGGER, pigpio.HIGH) time.sleep(0.00001) gpio.write(GPIO_TRIGGER, pigpio.LOW) StartZeit = time.time() StopZeit = time.time() while gpio.read(GPIO_ECHO) == 0: StartZeit = time.time() while ...
22.378378
64
0.620773
977379646fcfa6d369ef3913a7e658b5b9333486
9,243
py
Python
CSCA08/A2_Checker_V2.py
Lemonsity/CSCA-Checkers
79b9819e4e148c2d3235e65856eaf6c4d991926c
[ "MIT" ]
null
null
null
CSCA08/A2_Checker_V2.py
Lemonsity/CSCA-Checkers
79b9819e4e148c2d3235e65856eaf6c4d991926c
[ "MIT" ]
null
null
null
CSCA08/A2_Checker_V2.py
Lemonsity/CSCA-Checkers
79b9819e4e148c2d3235e65856eaf6c4d991926c
[ "MIT" ]
null
null
null
# Youzhang Mark Sun # Oct 14, 2019 # 66 test cases # designed for elevation.py 2019 fall semester import unittest import elevation as e # require elevation.py file class A2CheckerV2(unittest.TestCase): def setUp(self): self.m_1 = [[1]] self.m_2 = [[2, 3], [5, 1]] self...
55.347305
181
0.574813
b8a65cf2245059e395bdbf9b815ef2740107d41e
139
py
Python
inference/preprocessors/__init__.py
narumiruna/inference-template
4946f4de632c49a8b65b484a4eb77979da8d8208
[ "MIT" ]
null
null
null
inference/preprocessors/__init__.py
narumiruna/inference-template
4946f4de632c49a8b65b484a4eb77979da8d8208
[ "MIT" ]
null
null
null
inference/preprocessors/__init__.py
narumiruna/inference-template
4946f4de632c49a8b65b484a4eb77979da8d8208
[ "MIT" ]
null
null
null
import sys from ..utils import get_factory from .dummy import DummyPreprocessor PreprocessorFactory = get_factory(sys.modules[__name__])
19.857143
56
0.827338
976aed87b167dfbac1130de434f799b9ac9450fe
8,308
py
Python
website/addons/box/model.py
alexschiller/osf.io
4122d4be152c6189142c2ebb19cfdee09c77035d
[ "Apache-2.0" ]
null
null
null
website/addons/box/model.py
alexschiller/osf.io
4122d4be152c6189142c2ebb19cfdee09c77035d
[ "Apache-2.0" ]
null
null
null
website/addons/box/model.py
alexschiller/osf.io
4122d4be152c6189142c2ebb19cfdee09c77035d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import httplib as http import logging import os from box import CredentialsV2, BoxClient from box.client import BoxClientException from modularodm import fields from oauthlib.oauth2 import InvalidGrantError import requests from urllib3.exceptions import MaxRetryError from framework.auth import...
33.099602
144
0.597857
15364e979f3eb28ed94ca2842efa3465c725ee7c
23,017
py
Python
src/electionguard/guardian.py
john-s-morgan/electionguard-python
f0a25b0ac99fac5c8d4e3545055dbdd05968d021
[ "MIT" ]
null
null
null
src/electionguard/guardian.py
john-s-morgan/electionguard-python
f0a25b0ac99fac5c8d4e3545055dbdd05968d021
[ "MIT" ]
null
null
null
src/electionguard/guardian.py
john-s-morgan/electionguard-python
f0a25b0ac99fac5c8d4e3545055dbdd05968d021
[ "MIT" ]
null
null
null
# pylint: disable=too-many-public-methods # pylint: disable=too-many-instance-attributes from dataclasses import dataclass from typing import Callable, Dict, List, Optional, TypeVar from .auxiliary import ( AuxiliaryKeyPair, AuxiliaryPublicKey, AuxiliaryDecrypt, AuxiliaryEncrypt, ) from .ballot import ...
35.740683
110
0.686319
1ee045dc2780b935c50ae6764f41fbf123b73d79
3,112
py
Python
plugins/dbnd-databricks/src/dbnd_databricks/databricks_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
plugins/dbnd-databricks/src/dbnd_databricks/databricks_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
plugins/dbnd-databricks/src/dbnd_databricks/databricks_config.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import logging from typing import Dict, List from dbnd import parameter from dbnd._core.constants import SparkClusters from dbnd._core.task.config import Config from dbnd_spark.spark_config import SparkEngineConfig logger = logging.getLogger(__name__) class DatabricksCloud(object): aws = "aws" azure = "az...
33.462366
123
0.693766
3bf6a814d90349f5af8b33aedb01ead415d3b1a2
669
py
Python
ramos/exceptions.py
luizrabachini/ramos
5c2c1d2d848bf481eed4e8a9e784a485581b1615
[ "MIT" ]
30
2016-07-28T18:43:37.000Z
2022-02-25T11:49:48.000Z
ramos/exceptions.py
luizrabachini/ramos
5c2c1d2d848bf481eed4e8a9e784a485581b1615
[ "MIT" ]
66
2016-07-28T14:48:50.000Z
2022-03-29T18:09:45.000Z
ramos/exceptions.py
luizrabachini/ramos
5c2c1d2d848bf481eed4e8a9e784a485581b1615
[ "MIT" ]
12
2018-10-03T02:31:21.000Z
2021-06-30T20:26:45.000Z
class InvalidBackendError(Exception): """ InvalidBackendError is raised when instances of BackendPool can't get a backend implementation """ def __init__(self, backend_type, backend_id, available_backends): self.backend_type = backend_type self.backend_id = backend_id self.a...
31.857143
69
0.648729
0cf5e8148185f0800f104e9d37660bb3cbf5de2a
7,909
py
Python
namd_xtb.py
fhh2626/NAMD-xtb-QMMM-interface
81aaac97791ffd6d7baaa162ab3d31684fe986bf
[ "MIT" ]
5
2018-01-10T20:59:42.000Z
2021-08-23T12:49:50.000Z
namd_xtb.py
fhh2626/NAMD-xtb-QMMM-interface
81aaac97791ffd6d7baaa162ab3d31684fe986bf
[ "MIT" ]
null
null
null
namd_xtb.py
fhh2626/NAMD-xtb-QMMM-interface
81aaac97791ffd6d7baaa162ab3d31684fe986bf
[ "MIT" ]
4
2019-03-15T14:55:54.000Z
2020-03-05T03:34:38.000Z
#!/usr/bin/python3 """ NAMD-xtb interface v0.11 beta by Haohao Fu fhh2626_at_gmail.com """ """ Readme: this script enables NAMD-xtb QM/MM simulation and non-periodic semi-emperial BOMD. Electrostatic embedding was implemented. GFN-xtb hamiltonian is used by default. If one wants to use othe...
38.580488
107
0.56265
c42a95a88d3ba2cf966ae5a0d0c196328f040a8d
9,044
py
Python
sklearn_helpers/transformations.py
FlorisHoogenboom/sklearn-helpers
7a8048130db1128b5f933029fceb1c216c6e9c5d
[ "MIT" ]
1
2019-06-14T17:41:33.000Z
2019-06-14T17:41:33.000Z
sklearn_helpers/transformations.py
FlorisHoogenboom/sklearn-helpers
7a8048130db1128b5f933029fceb1c216c6e9c5d
[ "MIT" ]
null
null
null
sklearn_helpers/transformations.py
FlorisHoogenboom/sklearn-helpers
7a8048130db1128b5f933029fceb1c216c6e9c5d
[ "MIT" ]
null
null
null
from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils import check_array import pandas as pd import numpy as np class Transformer(BaseEstimator, TransformerMixin): """A helper class that turns a Python function that transforms some data into a Scikit-Learn transformer. Examples ...
29.848185
85
0.591995
51162ec7a66becea73723ec54b465e0f2033dfe5
41,833
py
Python
frappe-bench/env/lib/python2.7/site-packages/cssutils/serialize.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/cssutils/serialize.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/cssutils/serialize.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """cssutils serializer""" __all__ = ['CSSSerializer', 'Preferences'] __docformat__ = 'restructuredtext' __version__ = '$Id$' from cssutils.helper import normalize import codecs import cssutils import helper import re import xml.dom def _escapecss(e): """ Escapes c...
34.601323
93
0.511032
cb338b1f4b5e92e2b423cc4fb29af7f994dbc9d1
26,126
py
Python
src/clld/web/app.py
pepe-localhost/clld
2d698b75d2e6019619be6b01d09f0c77cb865af4
[ "MIT" ]
1
2021-03-13T15:53:44.000Z
2021-03-13T15:53:44.000Z
src/clld/web/app.py
pepe-localhost/clld
2d698b75d2e6019619be6b01d09f0c77cb865af4
[ "MIT" ]
null
null
null
src/clld/web/app.py
pepe-localhost/clld
2d698b75d2e6019619be6b01d09f0c77cb865af4
[ "MIT" ]
null
null
null
"""Common functionality of clld Apps is cobbled together here.""" import re import uuid import pathlib import datetime import functools import importlib import collections from sqlalchemy import engine_from_config from sqlalchemy.orm import joinedload, undefer from sqlalchemy.orm.exc import NoResultFound from webob.r...
37.216524
93
0.653181
cf31b8e357da352e6be0d4edeb612efcf9adc9c8
2,246
py
Python
src/snc/simulation/store_data/numpy_encoder.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
5
2021-03-24T16:23:10.000Z
2021-11-17T12:44:51.000Z
src/snc/simulation/store_data/numpy_encoder.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
3
2021-03-26T01:16:08.000Z
2021-05-08T22:06:47.000Z
src/snc/simulation/store_data/numpy_encoder.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
2
2021-03-24T17:20:06.000Z
2021-04-19T09:01:12.000Z
from copy import deepcopy import cvxpy as cvx import json import numpy as np import re from typing import Any, Dict class NumpyEncoder(json.JSONEncoder): """ A JSON encoder that can handle numpy objects and convert to json. """ # Example taken from python.org docs def default(self, o): # pylint: d...
26.738095
95
0.596171
1138d719b0fac41d5b0ebf0f7c11363212419baf
6,984
py
Python
build/lib/XMC/loaders/loader_libsvm.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
2
2020-07-13T05:13:50.000Z
2021-04-26T12:09:32.000Z
build/lib/XMC/loaders/loader_libsvm.py
Stomach-ache/GLaS
253092cce1922711e7d9c9df601f117f3ec56e0c
[ "MIT" ]
4
2020-01-10T10:54:52.000Z
2020-01-15T10:14:15.000Z
build/lib/XMC/loaders/loader_libsvm.py
pyschedelicsid/GlasXC
eb3077d7c1aa9ca25798b4c5d5dd95ce36fe5a4e
[ "MIT" ]
2
2021-01-26T07:27:16.000Z
2021-04-28T13:38:03.000Z
import os import torch import itertools import numpy as np import torch.utils.data from scipy.sparse import csr_matrix def _parse_data_point(data_point): """ Function to parse a row representing one input-output(s) pair in the LIBSVM format Args: data_point : row string Returns: (cl...
40.842105
99
0.601518
366a71db6569a4e5bb7d2a39506b9253fd14e63a
3,236
py
Python
testAppium/unit/testcase/result_activity/result_activity.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/unit/testcase/result_activity/result_activity.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/unit/testcase/result_activity/result_activity.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python # -*- coding = utf-8 -*- # @Author:wanghui # @Time: # @File:result_activity.py import os from time import sleep from testAppium.unit.common.webdriverUnit import WebdriverUnit from testAppium.unit.common import toolUnits from testAppium.unit.testcase.result_activity import result_units PATH = ...
42.025974
102
0.751545
459fc0a9659b9cc3d80dd4a2bb0aad136ef9c603
3,183
py
Python
DPGAnalysis/Skims/python/cosmicTPSkim_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DPGAnalysis/Skims/python/cosmicTPSkim_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DPGAnalysis/Skims/python/cosmicTPSkim_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi import * cosmictrackfinderP5TkCntFilter = cms.EDFilter("TrackCountFilter", src = cms.InputTag('cosmictrackfinderP5'), ...
64.959184
124
0.659441
ec3f3c4a5b72492d3c8e2c98dc0b52818b70ce63
1,775
py
Python
angr/procedures/definitions/win32_xaudio2_8.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_xaudio2_8.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/definitions/win32_xaudio2_8.py
r4b3rt/angr
c133cfd4f83ffea2a1d9e064241e9459eaabc55f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
59.166667
353
0.734085
a971d5bdfc5268f654f8507ea432f17dbddd56b4
2,603
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RemoveTagsRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RemoveTagsRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RemoveTagsRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.152778
89
0.749904
e9b68dc18850312aed7abc03e4d32aa9db2cb939
5,666
py
Python
newrelic_plugin_agent/plugins/apache_httpd.py
hakonber/newrelic-plugin-agent
38f7cc011f1b279a4afbf9c7e932fbc5f99475f9
[ "BSD-3-Clause" ]
null
null
null
newrelic_plugin_agent/plugins/apache_httpd.py
hakonber/newrelic-plugin-agent
38f7cc011f1b279a4afbf9c7e932fbc5f99475f9
[ "BSD-3-Clause" ]
null
null
null
newrelic_plugin_agent/plugins/apache_httpd.py
hakonber/newrelic-plugin-agent
38f7cc011f1b279a4afbf9c7e932fbc5f99475f9
[ "BSD-3-Clause" ]
1
2021-02-17T09:47:53.000Z
2021-02-17T09:47:53.000Z
""" ApacheHTTPD Support """ import logging import re from newrelic_plugin_agent.plugins import base LOGGER = logging.getLogger(__name__) PATTERN = re.compile(r'^([\w\s{1}]+):\s([\d\.{1}]+)', re.M) class ApacheHTTPD(base.HTTPStatsPlugin): DEFAULT_QUERY = 'auto' GUID = 'com.meetme.newrelic_apache_httpd_age...
45.328
111
0.461525
8434b438f2ac7ed062a3f545bad540039f044429
3,888
py
Python
python/kerasSlidingForecast.py
Jacopo47/ssd-project
51b1f50dda29e7b9f16a62af8d5364d18a7c2863
[ "MIT" ]
null
null
null
python/kerasSlidingForecast.py
Jacopo47/ssd-project
51b1f50dda29e7b9f16a62af8d5364d18a7c2863
[ "MIT" ]
1
2019-12-04T15:37:47.000Z
2019-12-07T15:45:13.000Z
python/kerasSlidingForecast.py
Jacopo47/ssd-project
51b1f50dda29e7b9f16a62af8d5364d18a7c2863
[ "MIT" ]
null
null
null
# Sliding window MLP, Airline Passengers dataset (predicts t+1) import matplotlib.pyplot as plt import numpy as np import pandas as pd from keras.layers import Dense from keras.models import Sequential import common # from series of values to windows matrix # questa funzione calcola la finestra def compute_windows(np...
41.361702
119
0.692901
04dababa24602f942a294228f8f050ec35fcb2ec
9,472
py
Python
airflow/utils/context.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
airflow/utils/context.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
airflow/utils/context.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.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...
31.573333
107
0.669236
66fe04cfae2be053fecd93d3d4070c9ce7e6bc04
868
py
Python
pennylane/templates/__init__.py
tobeyOguney/pennylane
6f7449ce6529c4a35a6a07915bdbd7088f51b1d9
[ "Apache-2.0" ]
1
2021-06-05T23:46:32.000Z
2021-06-05T23:46:32.000Z
pennylane/templates/__init__.py
israelferrazaraujo/pennylane
0aaa797e17f3a010b564c3ffbb2fb3f8ad5d3de8
[ "Apache-2.0" ]
null
null
null
pennylane/templates/__init__.py
israelferrazaraujo/pennylane
0aaa797e17f3a010b564c3ffbb2fb3f8ad5d3de8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
33.384615
74
0.762673
f9848c1a7dc600ab6c86b87e9820a4fd0c5f3c90
45
py
Python
py/builtin/__init__.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
py/builtin/__init__.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
py/builtin/__init__.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
""" backports and additions of builtins """
15
43
0.688889
9750c0ec906a25f4863090e990c5db8de77eb227
15,820
py
Python
src/python/pants/reporting/reporting_server.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/reporting/reporting_server.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/reporting/reporting_server.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import BaseHTTPServe...
40.984456
99
0.669659
d0ac88e0aa5718ecf16db6c614f8cabeba46fdb6
1,155
py
Python
exact-4-regular-u/main_exact_u_d2_25_d.py
mablem8/dandelion-simulations-py
c16893bac90207bf5fc0c80005189cab8c02238c
[ "CC0-1.0" ]
null
null
null
exact-4-regular-u/main_exact_u_d2_25_d.py
mablem8/dandelion-simulations-py
c16893bac90207bf5fc0c80005189cab8c02238c
[ "CC0-1.0" ]
null
null
null
exact-4-regular-u/main_exact_u_d2_25_d.py
mablem8/dandelion-simulations-py
c16893bac90207bf5fc0c80005189cab8c02238c
[ "CC0-1.0" ]
null
null
null
exec(open('./generate_graph.py').read()) exec(open('./regularize_graph.py').read()) exec(open('./generate_one_to_one_maps.py').read()) exec(open('./generate_adversary_observations.py').read()) exec(open('./generate_max_weight_matching.py').read()) exec(open('./calculate_precision.py').read()) n=100 d=2 ps=[0.25] num_t...
33
68
0.709091
3b0da50a2eb4ce92a402cd7546ab66758e6e6206
135
py
Python
hola.py
financieras/coder
aecf02d6828d3a0c4d1c2b7cd935ed42545031b8
[ "MIT" ]
null
null
null
hola.py
financieras/coder
aecf02d6828d3a0c4d1c2b7cd935ed42545031b8
[ "MIT" ]
null
null
null
hola.py
financieras/coder
aecf02d6828d3a0c4d1c2b7cd935ed42545031b8
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys nombre=sys.argv[-1] print("Hola "+nombre) # se ejecuta desde la terminal tecleando: # python3 hola.py Luis
22.5
41
0.740741
231a1a10d94f29c435ad2aa74a76d906e1d8f506
154,697
py
Python
pandas/core/index.py
ischwabacher/pandas
d17af6e41dd207620aa5f96d8d7fd2ffe4f5bac5
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/index.py
ischwabacher/pandas
d17af6e41dd207620aa5f96d8d7fd2ffe4f5bac5
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/index.py
ischwabacher/pandas
d17af6e41dd207620aa5f96d8d7fd2ffe4f5bac5
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101,E1103,W0232 import datetime import warnings import operator from functools import partial from pandas.compat import range, zip, lrange, lzip, u, reduce from pandas import compat import numpy as np import pandas.tslib as tslib import pandas.lib as lib import pandas.algos as _algos import pandas....
33.954565
120
0.550761
6633f6aeeece440a9f3667add45b39eb18d45fcc
913
py
Python
scripts/time_methods.py
Lila14/multimds
e54642e0ae47592321352f931f534881ca57d888
[ "MIT" ]
1
2019-10-29T12:33:57.000Z
2019-10-29T12:33:57.000Z
scripts/time_methods.py
Lila14/multimds
e54642e0ae47592321352f931f534881ca57d888
[ "MIT" ]
null
null
null
scripts/time_methods.py
Lila14/multimds
e54642e0ae47592321352f931f534881ca57d888
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt import numpy as np chrom_sizes = np.loadtxt("chrom_sizes.txt") plt.subplot2grid((10,10), (0,0), 9, 10, frameon=False) maxs = [] for method in ("MultiMDS", "Independent_MDS"): times = np.loadtxt("{}_times.txt".format(method))/60. plt.scatter(chrom_sizes, times, label=" ".join(met...
31.482759
97
0.715225
93a8c0256ef43256b305fafd63f3551d13818200
9,163
py
Python
train.py
dlordtemplar/keras-base-rest
f225d6496ed2e876570eb29d0ba155a0d7b548ac
[ "MIT" ]
null
null
null
train.py
dlordtemplar/keras-base-rest
f225d6496ed2e876570eb29d0ba155a0d7b548ac
[ "MIT" ]
6
2020-01-28T22:09:54.000Z
2022-02-09T23:29:23.000Z
train.py
dlordtemplar/keras-base-rest
f225d6496ed2e876570eb29d0ba155a0d7b548ac
[ "MIT" ]
null
null
null
# SiameseLSTM_visualization_semeval.ipynb import os import notebook_util print(notebook_util.list_available_gpus()) notebook_util.setup_one_gpu() import tensorflow as tf from keras.engine import Model session_conf = tf.ConfigProto(intra_op_parallelism_threads=1, inter_op_parallelism_threads=1) session_conf.gpu_opti...
41.65
119
0.73142
6a05c3f9bd2c9f7e01d6fdb8a0bb478755787663
5,700
py
Python
data_tracking/nifti_import.py
HBPMedical/data-tracking
f645a0d6426e6019c92d5aaf4be225cff2864417
[ "Apache-2.0" ]
5
2017-06-04T16:05:22.000Z
2022-03-21T11:50:09.000Z
data_tracking/nifti_import.py
HBPMedical/data-tracking
f645a0d6426e6019c92d5aaf4be225cff2864417
[ "Apache-2.0" ]
null
null
null
data_tracking/nifti_import.py
HBPMedical/data-tracking
f645a0d6426e6019c92d5aaf4be225cff2864417
[ "Apache-2.0" ]
2
2016-11-21T17:50:01.000Z
2016-12-23T12:51:19.000Z
import logging import re from . import utils ####################################################################################################################### # PUBLIC FUNCTIONS ####################################################################################################################### def nifti2db...
42.222222
119
0.604211
6fd4143b0002fc398cc1e9ab6dca334cdc39cfe6
3,020
py
Python
Lib/fontTools/ttLib/tables/C_B_D_T_.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
2
2021-04-07T16:47:04.000Z
2022-01-15T04:01:01.000Z
Lib/fontTools/ttLib/tables/C_B_D_T_.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
74
2020-01-30T07:27:54.000Z
2021-08-03T05:47:17.000Z
Lib/fontTools/ttLib/tables/C_B_D_T_.py
anntzer/fonttools
726cd67549956b985bbbe83e26fb0af9da59ddf7
[ "MIT", "BSD-3-Clause" ]
1
2020-01-22T20:06:09.000Z
2020-01-22T20:06:09.000Z
# Copyright 2013 Google, Inc. All Rights Reserved. # # Google Author(s): Matt Fontaine from fontTools.misc.py23 import * from fontTools.misc import sstruct from . import E_B_D_T_ from .BitmapGlyphMetrics import BigGlyphMetrics, bigGlyphMetricsFormat, SmallGlyphMetrics, smallGlyphMetricsFormat from .E_B_D_T_ import Bi...
32.473118
114
0.768543
8ab6539fefc10906c9b80dea4a1fe17a24632dc6
3,421
py
Python
gitlint-core/gitlint/tests/contrib/test_contrib_rules.py
carlsmedstad/gitlint
3c017995633f602125f7caaa91e96bb767ca5953
[ "MIT" ]
559
2015-09-09T14:45:00.000Z
2022-03-27T21:23:18.000Z
gitlint-core/gitlint/tests/contrib/test_contrib_rules.py
carlsmedstad/gitlint
3c017995633f602125f7caaa91e96bb767ca5953
[ "MIT" ]
197
2015-09-11T01:49:20.000Z
2022-03-30T01:22:34.000Z
gitlint-core/gitlint/tests/contrib/test_contrib_rules.py
carlsmedstad/gitlint
3c017995633f602125f7caaa91e96bb767ca5953
[ "MIT" ]
97
2015-09-09T15:38:09.000Z
2022-02-20T16:55:12.000Z
# -*- coding: utf-8 -*- import os from gitlint.tests.base import BaseTestCase from gitlint.contrib import rules as contrib_rules from gitlint.tests.contrib import rules as contrib_tests from gitlint import rule_finder, rules class ContribRuleTests(BaseTestCase): CONTRIB_DIR = os.path.dirname(os.path.realpath(co...
48.871429
118
0.679041
63ee52b52aff96cd5cc95d8352c6b8e5d57d5f90
56
py
Python
tests/data/baz.py
mwtoews/absolufy-imports
e8d184d59900f29497bf9998c947d8fe43b7d8e3
[ "MIT" ]
76
2021-02-28T21:34:31.000Z
2022-03-23T21:11:27.000Z
tests/data/baz.py
mwtoews/absolufy-imports
e8d184d59900f29497bf9998c947d8fe43b7d8e3
[ "MIT" ]
39
2021-03-01T16:47:44.000Z
2022-03-21T21:48:49.000Z
tests/data/baz.py
mwtoews/absolufy-imports
e8d184d59900f29497bf9998c947d8fe43b7d8e3
[ "MIT" ]
6
2021-03-02T20:23:48.000Z
2022-01-20T08:44:53.000Z
from mypackage.mysubpackage import B print(T) print(D)
11.2
36
0.785714
d1278567bbcd4c3c770620d8b6dfd20b4069b20f
17,518
py
Python
.compit/lib/python3.6/site-packages/tornado/test/httputil_test.py
constKutsy/GeoWiki
e336bb618ba00a993accd433a7cc78d87f291dbc
[ "Unlicense" ]
90
2020-11-20T12:35:03.000Z
2021-07-29T21:20:55.000Z
tornado/test/httputil_test.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
68
2016-12-12T20:38:47.000Z
2020-07-26T18:28:49.000Z
tornado/test/httputil_test.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
120
2016-08-18T14:53:03.000Z
2020-06-16T13:27:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from tornado.httputil import url_concat, parse_multipart_form_data, HTTPHeaders, format_timestamp, HTTPServerRequest, parse_request_start_line, parse_cookie from tornado.escape import utf8, native_str from t...
37.511777
156
0.579347
c05d43a76e776996cae8f60b9c7f79dfca3df78e
169,245
py
Python
lib-python/3/test/test_io.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib-python/3/test/test_io.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib-python/3/test/test_io.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
"""Unit tests for the io module.""" # Tests of io are scattered over the test suite: # * test_bufio - tests file buffering # * test_memoryio - tests BytesIO and StringIO # * test_fileio - tests FileIO # * test_file - tests the file interface # * test_io - tests everything else in the io module # * test_univnewlines - ...
37.336201
103
0.576868
e3b65acff098067f466a764fb22505e72085444d
37,557
py
Python
espnet-semi-supervised/src/asrtts/asrtts_pytorch_5050.py
ElinaBaral/espnet_speech2speech
fb9a02f71339eb5494656c5ff2fdebf5051cd2cd
[ "Apache-2.0" ]
1
2021-02-05T03:33:52.000Z
2021-02-05T03:33:52.000Z
espnet-semi-supervised/src/asrtts/asrtts_pytorch_5050.py
ElinaBaral/espnet_speech2speech
fb9a02f71339eb5494656c5ff2fdebf5051cd2cd
[ "Apache-2.0" ]
null
null
null
espnet-semi-supervised/src/asrtts/asrtts_pytorch_5050.py
ElinaBaral/espnet_speech2speech
fb9a02f71339eb5494656c5ff2fdebf5051cd2cd
[ "Apache-2.0" ]
1
2021-02-05T03:33:54.000Z
2021-02-05T03:33:54.000Z
#!/usr/bin/env python # Copyright 2017 Johns Hopkins University (Shinji Watanabe) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import copy import json import logging import math import numpy as np import random import os import pickle import sys # chainer related import chainer from chainer import r...
43.519119
141
0.615917
9de1a32e0db9813fd27fb0341a22a8d5a677f9ba
33,844
py
Python
test/rebuild/test.1.py
katonori/cxxtags
2730adb040d1334caa1a9ae7e468f498e094d254
[ "BSD-3-Clause" ]
null
null
null
test/rebuild/test.1.py
katonori/cxxtags
2730adb040d1334caa1a9ae7e468f498e094d254
[ "BSD-3-Clause" ]
null
null
null
test/rebuild/test.1.py
katonori/cxxtags
2730adb040d1334caa1a9ae7e468f498e094d254
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import sys import os sys.path.append("../../src/") sys.path.append("../util/") import commands import common CXXTAGS_QUERY = "../../bin/cxxtags_query" if len(sys.argv) != 2: print "usage: cmd db_file" exit(1) cur_dir = os.getcwd() db_dir = sys.argv[1] q_list = [ "decl "+db_dir+" "+cur_dir...
38.198646
75
0.627704
5626002249a49dd81cef065dde2340ebe6b68de3
87,231
py
Python
plugins/modules/oci_data_safe_security_assessment_comparison_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_data_safe_security_assessment_comparison_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_data_safe_security_assessment_comparison_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
53.946197
159
0.350288
29d3a881498a895cec9d9309a8a83480eeafd6af
47,096
py
Python
django/test/testcases.py
denisenkom/django
db21cab162168d5b0ef271dd572f4332e0897c37
[ "BSD-3-Clause" ]
null
null
null
django/test/testcases.py
denisenkom/django
db21cab162168d5b0ef271dd572f4332e0897c37
[ "BSD-3-Clause" ]
null
null
null
django/test/testcases.py
denisenkom/django
db21cab162168d5b0ef271dd572f4332e0897c37
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from copy import copy import difflib import errno from functools import wraps import json import os import posixpath import re import sys import threading import unittest from unittest import skipIf # Imported here for backward compatibility from unittest.util import saf...
41.23993
97
0.601261
8fb0759471d04a6d2affc8ccbe3bec93de724a61
8,148
py
Python
webapp/api/Object/users.py
SCcagg5/My_Youtube
6234b655ceb18a85d9bdd2c5837ce625c495d07b
[ "MIT" ]
null
null
null
webapp/api/Object/users.py
SCcagg5/My_Youtube
6234b655ceb18a85d9bdd2c5837ce625c495d07b
[ "MIT" ]
null
null
null
webapp/api/Object/users.py
SCcagg5/My_Youtube
6234b655ceb18a85d9bdd2c5837ce625c495d07b
[ "MIT" ]
null
null
null
import json, datetime, time import jwt import hashlib import time import base64 import os import re import uuid import phonenumbers from .mail import Mailer from .sql import sql class user: def __init__(self, id = -1): self.id = str(id) def gettoken(self, id = None): id = self...
43.572193
216
0.518409