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
f69ace8e8c3a2ee48f0e62f434aa1481feab630e
1,449
py
Python
Mission_to_Mars/scrape_mars.py
frivas3817/web-scraping-challenge
5542ea509bac72abb323efa6c5a2e2a8cebd1ee4
[ "ADSL" ]
null
null
null
Mission_to_Mars/scrape_mars.py
frivas3817/web-scraping-challenge
5542ea509bac72abb323efa6c5a2e2a8cebd1ee4
[ "ADSL" ]
null
null
null
Mission_to_Mars/scrape_mars.py
frivas3817/web-scraping-challenge
5542ea509bac72abb323efa6c5a2e2a8cebd1ee4
[ "ADSL" ]
null
null
null
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from flask import Flask, render_template, jsonify, redirect\n", "from flask_pymongo import PyMongo\n", "import scrape_mars" ] }, { "cell_type": "code", "execution_count": n...
19.32
75
0.52588
3c749be082eb1b5c7e62d7c49830b133ba577535
11,142
py
Python
aqt/cli.py
MartinDelille/aqtinstall
fc497163ac7519c4b03cedf7a2fb74bebf01fa11
[ "MIT" ]
null
null
null
aqt/cli.py
MartinDelille/aqtinstall
fc497163ac7519c4b03cedf7a2fb74bebf01fa11
[ "MIT" ]
null
null
null
aqt/cli.py
MartinDelille/aqtinstall
fc497163ac7519c4b03cedf7a2fb74bebf01fa11
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Linus Jahn <lnj@kaidan.im> # Copyright (C) 2019 Hiroshi Miura <miurahr@linux.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restr...
48.655022
119
0.601059
e1e33347460dd258a825bb390b2552d13d8da319
419
py
Python
exercicios/Lista4/Q3.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista4/Q3.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista4/Q3.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
#Ler um conjunto de números reais, armazenando-o em vetor #e calcular o quadrado das componentes deste vetor, #armazenando o resultado em outro vetor. Os conjuntos têm #10 elementos cada. Imprimir todos os conjuntos. vetorA=[] vetorB=[] for i in range(0,10): n=int(input("\nInforme um numero: ")) vetorA.append...
29.928571
58
0.725537
07ec6d224bf6e3653322d3aaa757fbd6523f9cf8
24
py
Python
python/sandbox/testing/inf.py
weiqingtoh/coursemology.org
2ea787635e1f01f8d58704b060c62cf8c84e9d9a
[ "MIT" ]
null
null
null
python/sandbox/testing/inf.py
weiqingtoh/coursemology.org
2ea787635e1f01f8d58704b060c62cf8c84e9d9a
[ "MIT" ]
null
null
null
python/sandbox/testing/inf.py
weiqingtoh/coursemology.org
2ea787635e1f01f8d58704b060c62cf8c84e9d9a
[ "MIT" ]
1
2015-07-29T16:09:23.000Z
2015-07-29T16:09:23.000Z
i = 0 while True: i = 1
8
11
0.541667
ab67aa61bf7041fc71426af858378158c65ed84f
1,028
py
Python
Chapter 7 - Regular Expressions/strongPassDetect.py
mszak10/automate-python
ccbb49933cb1b95c503902953ab895309ebd9f9d
[ "MIT" ]
null
null
null
Chapter 7 - Regular Expressions/strongPassDetect.py
mszak10/automate-python
ccbb49933cb1b95c503902953ab895309ebd9f9d
[ "MIT" ]
1
2022-02-03T18:08:10.000Z
2022-02-03T18:08:10.000Z
Chapter 7 - Regular Expressions/strongPassDetect.py
mszak10/automate-python
ccbb49933cb1b95c503902953ab895309ebd9f9d
[ "MIT" ]
null
null
null
# Chapter 7 - Regular Expressions # strongPassDetect.py - detects whether password in clipboard is strong import re import pyperclip clipboard = pyperclip.paste() if len(clipboard) > 7: length = True else: length = False # Regex for lowercase lowercase_regex = re.compile(r'[a-z]') x = lowercase_regex.findall...
20.979592
71
0.711089
53798844621efdda39001d96aea1bde606980017
2,151
py
Python
tests/test_utils_serialized.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_serialized.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_serialized.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- """ Serialized usage test. :date: 2021 :author: Christian Wiche :contact: cwichel@gmail.com :license: The MIT License (MIT) """ import unittest from examples.stream_setup import SimplePacket from embutils.utils import CRC # -->> Definitions <<-----------------...
27.935065
96
0.609484
489477875e82bb966ea6f0cb052be6530c6bd38b
4,492
py
Python
stickerfinder/telegram/callback_handlers/newsfeed.py
JosXa/sticker-finder
688656a4b67c1e5057c0d1dc5b21201f0466b7ab
[ "MIT" ]
null
null
null
stickerfinder/telegram/callback_handlers/newsfeed.py
JosXa/sticker-finder
688656a4b67c1e5057c0d1dc5b21201f0466b7ab
[ "MIT" ]
null
null
null
stickerfinder/telegram/callback_handlers/newsfeed.py
JosXa/sticker-finder
688656a4b67c1e5057c0d1dc5b21201f0466b7ab
[ "MIT" ]
1
2020-11-06T01:56:22.000Z
2020-11-06T01:56:22.000Z
"""Callback query sub-handlers for dealing with newsfeed buttons.""" from stickerfinder.helper.maintenance import distribute_newsfeed_tasks from stickerfinder.helper.callback import CallbackResult from stickerfinder.helper.telegram import call_tg_func from stickerfinder.helper.keyboard import ( get_nsfw_ban_keyboar...
39.752212
116
0.686999
192346c9e271d00339227ffc06bd5b3554a5f68d
6,214
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeNetworkInterfacesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeNetworkInterfacesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeNetworkInterfacesRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.152318
93
0.750402
f414d08979dc5a9fe1dd9e45a0c5e11fbbc847b3
5,089
py
Python
bionumpy/encodings.py
jorgenwh/bionumpy
18c1adbc38be403ceb5d79e411f1562c6afe21c9
[ "MIT" ]
null
null
null
bionumpy/encodings.py
jorgenwh/bionumpy
18c1adbc38be403ceb5d79e411f1562c6afe21c9
[ "MIT" ]
null
null
null
bionumpy/encodings.py
jorgenwh/bionumpy
18c1adbc38be403ceb5d79e411f1562c6afe21c9
[ "MIT" ]
null
null
null
from itertools import product import numpy as np class ThreeBitEncoding: reverse=np.array([0, ord("A"), 0, ord("C"), ord("G"), 0, 0, ord("T")], dtype=np.uint8) complements= np.array([0, 7, 0, 4, 3, 0, 0, 1], dtype=np.uint8) @classmethod def from_bytes(cls, sequence): return sequence & (2**3-1...
33.480263
124
0.65396
ea16ca59292cd51e2741ec13743df5b7911ad225
1,763
py
Python
double_hash_bloom_filter.py
DahDev/BloomFilter-Python
709a0ca5ed9e2b7fa99d77b88325d26c503a33a8
[ "MIT" ]
null
null
null
double_hash_bloom_filter.py
DahDev/BloomFilter-Python
709a0ca5ed9e2b7fa99d77b88325d26c503a33a8
[ "MIT" ]
null
null
null
double_hash_bloom_filter.py
DahDev/BloomFilter-Python
709a0ca5ed9e2b7fa99d77b88325d26c503a33a8
[ "MIT" ]
null
null
null
#!/bin/env python import hashlib from bloom_filter import BloomFilter ''' Implementation of Bloom Filter using Double Hashing. A Bloom filter is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set. A query returns either "possibly in set" or "definitely not in...
33.903846
111
0.698809
7a9e6cb3d6a4ab7ffc63f080711260be6018d8e9
8,157
py
Python
CaRM_HD189733/scripts/mcmc.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
CaRM_HD189733/scripts/mcmc.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
CaRM_HD189733/scripts/mcmc.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
import numpy as np import random from .aromefit import fitmodel #from .probfun_md import lnprior, lnlike import scipy.optimize as op import emcee import sys import matplotlib.pyplot as plt from copy import deepcopy as dpcy import os from astropy.io import fits import string import json from multiprocessing...
32.759036
126
0.560745
71df1506729772be5b54ee118eedce3526e662ab
90
py
Python
app/main/__init__.py
VictorKMaina/pitch-app
d4d8a4beef0060bb7e0bab6f348ac10d7a53429e
[ "MIT" ]
null
null
null
app/main/__init__.py
VictorKMaina/pitch-app
d4d8a4beef0060bb7e0bab6f348ac10d7a53429e
[ "MIT" ]
null
null
null
app/main/__init__.py
VictorKMaina/pitch-app
d4d8a4beef0060bb7e0bab6f348ac10d7a53429e
[ "MIT" ]
null
null
null
from flask import Blueprint main = Blueprint("main", __name__) from . import views, forms
22.5
34
0.766667
3a228815637fea240513d575a89692bf7024c023
343
py
Python
profiles_api/urls.py
SyedAmeeruddin/profiles-rest-api
02d20bbd12d99fe2f5ab559a5b509a5935941622
[ "MIT" ]
null
null
null
profiles_api/urls.py
SyedAmeeruddin/profiles-rest-api
02d20bbd12d99fe2f5ab559a5b509a5935941622
[ "MIT" ]
6
2020-04-12T15:10:05.000Z
2022-02-10T09:14:52.000Z
profiles_api/urls.py
SyedAmeeruddin/profiles-rest-api
02d20bbd12d99fe2f5ab559a5b509a5935941622
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from profiles_api import views router = DefaultRouter() router.register('hello-viewset',views.HelloViewset, base_name = 'hello-viewset' ) urlpatterns = [ path('hello-view/', views.HelloApiView.as_view()), path('',inclu...
22.866667
81
0.740525
dc3773a087aad693370874854afaca706715955a
3,143
py
Python
settings.py
Nagaraj-U/scrapping_shopping_site
7ff0f074e67797257197b7cc92d01ee9f0b1249c
[ "Apache-2.0" ]
null
null
null
settings.py
Nagaraj-U/scrapping_shopping_site
7ff0f074e67797257197b7cc92d01ee9f0b1249c
[ "Apache-2.0" ]
null
null
null
settings.py
Nagaraj-U/scrapping_shopping_site
7ff0f074e67797257197b7cc92d01ee9f0b1249c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for tinydeal project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topi...
34.538462
131
0.777601
d892b40feb68b3e2040388e3ec0e7d7954f19ce3
6,549
py
Python
connectomics/utils/monitor.py
frommwonderland/pytorch_connectomics
95859ec5257d6991ca64782523637f947a8485e2
[ "MIT" ]
null
null
null
connectomics/utils/monitor.py
frommwonderland/pytorch_connectomics
95859ec5257d6991ca64782523637f947a8485e2
[ "MIT" ]
null
null
null
connectomics/utils/monitor.py
frommwonderland/pytorch_connectomics
95859ec5257d6991ca64782523637f947a8485e2
[ "MIT" ]
null
null
null
from __future__ import print_function, division from typing import Optional, List, Union, Tuple import os import copy import datetime import numpy as np from collections import OrderedDict import torch import torch.nn as nn from torch.utils.tensorboard import SummaryWriter import matplotlib from matplotlib import py...
32.909548
100
0.590319
a21c9c2e3feb9c42865dcba98b7997a53559f2df
1,324
py
Python
ConPadding.py
JCV0/SemanaTec
60694b2917a7d58472790d7ef0b6e9ccddf06cb1
[ "MIT" ]
null
null
null
ConPadding.py
JCV0/SemanaTec
60694b2917a7d58472790d7ef0b6e9ccddf06cb1
[ "MIT" ]
null
null
null
ConPadding.py
JCV0/SemanaTec
60694b2917a7d58472790d7ef0b6e9ccddf06cb1
[ "MIT" ]
1
2020-10-30T15:10:12.000Z
2020-10-30T15:10:12.000Z
import cv2 import numpy as np img= cv2.imread('venom.jpg') img= cv2.cvtColor(img,cv2.COLOR_BGR2RGB) def EscalaDeGrises(A): filas= A.shape[0] cols= A.shape[1] B= np.zeros((filas,cols),np.float32) for row in range(filas): for col in range(cols): for color in range(len(A[row][col])): ...
28.170213
227
0.586858
0174ab1a1781f52703c21b32a3e2c783c70bfc73
5,763
py
Python
Image-segmentation/models/ResNet34.py
liao2000/ML-Notebook
187f474142152d1cacc1d61abdc1fa7dded71a9f
[ "MIT" ]
1
2021-08-31T11:48:46.000Z
2021-08-31T11:48:46.000Z
Image-segmentation/models/ResNet34.py
liao2000/ML-Notebook
187f474142152d1cacc1d61abdc1fa7dded71a9f
[ "MIT" ]
null
null
null
Image-segmentation/models/ResNet34.py
liao2000/ML-Notebook
187f474142152d1cacc1d61abdc1fa7dded71a9f
[ "MIT" ]
null
null
null
import tensorflow.keras as keras import tensorflow as tf from keras import layers class ResBlock(keras.Model): def __init__(self, channels, strides=1): super().__init__() self.conv1 = layers.Conv2D( channels, 3, strides=strides, padding='same', use_bias=False) self.bn1 = layer...
30.331579
87
0.602985
abbb03f2c51900f2a0414e877012ea12ddb5236f
11,235
py
Python
main.py
enisaras/RPICovidScraper
4e522facd397d682988af9295d09b136087ca5a7
[ "MIT" ]
null
null
null
main.py
enisaras/RPICovidScraper
4e522facd397d682988af9295d09b136087ca5a7
[ "MIT" ]
null
null
null
main.py
enisaras/RPICovidScraper
4e522facd397d682988af9295d09b136087ca5a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Usage: ./main.py """ Copyright (C) 2020-2021 John C. Allwein 'johnnyapol' (admin@johnnyapol.me) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
34.357798
460
0.645394
77a3cdd711e5f45d5312d001e2cd7f6c076c2b01
1,976
py
Python
onnxutils/setup.py
Riponsayf/onnxmltools
e2356b7c5cc239e14822c52afa2cf234054f2874
[ "MIT" ]
null
null
null
onnxutils/setup.py
Riponsayf/onnxmltools
e2356b7c5cc239e14822c52afa2cf234054f2874
[ "MIT" ]
null
null
null
onnxutils/setup.py
Riponsayf/onnxmltools
e2356b7c5cc239e14822c52afa2cf234054f2874
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ##############################################################...
34.666667
79
0.593117
898bf6a7fe6e7e3b9957a2003741a917d1c55a98
5,977
py
Python
src/figure2_supplemental1.py
Eden-Kramer-Lab/replay_trajectory_paper
f2d2b3cc55968fe7d94d3109621b2772cdbb2c0a
[ "MIT" ]
null
null
null
src/figure2_supplemental1.py
Eden-Kramer-Lab/replay_trajectory_paper
f2d2b3cc55968fe7d94d3109621b2772cdbb2c0a
[ "MIT" ]
null
null
null
src/figure2_supplemental1.py
Eden-Kramer-Lab/replay_trajectory_paper
f2d2b3cc55968fe7d94d3109621b2772cdbb2c0a
[ "MIT" ]
2
2021-07-09T23:02:11.000Z
2021-10-17T18:49:57.000Z
import os import matplotlib.pyplot as plt import numpy as np import seaborn as sns from src.analysis import (get_is_classified, get_probability, maximum_a_posteriori_estimate) from src.figure_utilities import PAGE_HEIGHT, TWO_COLUMN, save_figure from src.parameters import PROBABILITY_THRESHOL...
30.968912
78
0.595282
3dd6eb9484d005433f514060ea7d58ee6627fb91
10,530
py
Python
ichnaea/api/locate/tests/test_wifi.py
mikiec84/ichnaea
ec223cefb788bb921c0e7f5f51bd3b20eae29edd
[ "Apache-2.0" ]
348
2015-01-13T11:48:07.000Z
2022-03-31T08:33:07.000Z
ichnaea/api/locate/tests/test_wifi.py
mikiec84/ichnaea
ec223cefb788bb921c0e7f5f51bd3b20eae29edd
[ "Apache-2.0" ]
1,274
2015-01-02T18:15:56.000Z
2022-03-23T15:29:08.000Z
ichnaea/api/locate/tests/test_wifi.py
mikiec84/ichnaea
ec223cefb788bb921c0e7f5f51bd3b20eae29edd
[ "Apache-2.0" ]
149
2015-01-04T21:15:07.000Z
2021-12-10T06:05:09.000Z
from datetime import timedelta from ichnaea.api.locate.constants import DataSource, MAX_WIFIS_IN_CLUSTER from ichnaea.api.locate.score import station_score from ichnaea.api.locate.source import PositionSource from ichnaea.api.locate.tests.base import BaseSourceTest from ichnaea.api.locate.wifi import WifiPositionMixin...
36.947368
87
0.614245
d4b5cab75f18ee7c113c36ce8e0696d1afd4f1ed
1,120
py
Python
appengine/standard/appstats/main.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
5,938
2015-05-18T05:04:37.000Z
2022-03-31T20:16:39.000Z
appengine/standard/appstats/main.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
4,730
2015-05-07T19:00:38.000Z
2022-03-31T21:59:41.000Z
appengine/standard/appstats/main.py
yshalabi/python-docs-samples
591787c01d94102ba9205f998d95a05b39ccad2f
[ "Apache-2.0" ]
6,734
2015-05-05T17:06:20.000Z
2022-03-31T12:02:51.000Z
# Copyright 2016 Google 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 agreed to in writing, ...
31.111111
74
0.732143
ce43304d2261bc06b609f190207fd7e35287eddf
2,140
py
Python
face_pose_dataset/estimation/ensemble/average.py
samuelbaltanas/face-pose-dataset
84c864c155ac7c0b231032d403c0e2b2bc10b871
[ "MIT" ]
1
2020-06-18T07:58:46.000Z
2020-06-18T07:58:46.000Z
face_pose_dataset/estimation/ensemble/average.py
samuelbaltanas/face-pose-dataset
84c864c155ac7c0b231032d403c0e2b2bc10b871
[ "MIT" ]
null
null
null
face_pose_dataset/estimation/ensemble/average.py
samuelbaltanas/face-pose-dataset
84c864c155ac7c0b231032d403c0e2b2bc10b871
[ "MIT" ]
null
null
null
import logging import pathlib import pickle from os import path from typing import Tuple, Union import numpy as np from face_pose_dataset import core from face_pose_dataset.estimation import interface from face_pose_dataset.estimation.base import ddfa, fsanet, hopenet __all__ = ["AverageEstimator", "SklearnEstimator...
31.470588
98
0.631308
c63577bdb7175d9d200dca8f59996d0ac543ccc5
11,602
py
Python
lib/serializer.py
apyrgio/ganeti
241ad8a92f228f9dd749c7971a4a6711c0eb9e71
[ "BSD-2-Clause" ]
null
null
null
lib/serializer.py
apyrgio/ganeti
241ad8a92f228f9dd749c7971a4a6711c0eb9e71
[ "BSD-2-Clause" ]
null
null
null
lib/serializer.py
apyrgio/ganeti
241ad8a92f228f9dd749c7971a4a6711c0eb9e71
[ "BSD-2-Clause" ]
null
null
null
# # # Copyright (C) 2007, 2008, 2014 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of con...
29.29798
79
0.678331
3249325b3d7ae388b649bdd7a41fe0deae3eb9fd
4,480
py
Python
setup.py
tmorley2000/picamera
6f9363291c31c503f1fdbf1c9bd1adaa8adfb0b1
[ "BSD-3-Clause" ]
11
2019-06-02T10:17:39.000Z
2022-03-05T19:14:57.000Z
setup.py
tmorley2000/picamera
6f9363291c31c503f1fdbf1c9bd1adaa8adfb0b1
[ "BSD-3-Clause" ]
5
2018-07-05T13:04:36.000Z
2021-11-22T16:40:58.000Z
setup.py
tmorley2000/picamera
6f9363291c31c503f1fdbf1c9bd1adaa8adfb0b1
[ "BSD-3-Clause" ]
9
2018-07-02T11:17:20.000Z
2021-01-05T20:42:22.000Z
#!/usr/bin/env python3 # vim: set et sw=4 sts=4 fileencoding=utf-8: # # Python camera library for the Rasperry-Pi camera module # Copyright (c) 2013-2018 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following con...
36.422764
77
0.64375
4dd11e7faa5b08918ef3c214bbf864ef1cb89f0e
22,204
py
Python
contrib/devtools/copyright_header.py
kaboela/litecoinz
b793b04a717416726a7b1013b21b07fb35dbc4a2
[ "MIT" ]
8
2020-06-05T16:30:36.000Z
2021-09-28T08:39:52.000Z
contrib/devtools/copyright_header.py
kaboela/litecoinz
b793b04a717416726a7b1013b21b07fb35dbc4a2
[ "MIT" ]
8
2020-04-04T11:24:26.000Z
2021-05-09T18:53:53.000Z
contrib/devtools/copyright_header.py
kaboela/litecoinz
b793b04a717416726a7b1013b21b07fb35dbc4a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import re import fnmatch import sys import subprocess import datetime import os ########################...
36.640264
121
0.601603
d8d072a76b49a8e2e81f8e4fe021f6ec272272ad
679
py
Python
setup.py
DeflatedPickle/pkinter
cc04a781a2bbfa65cb1fc137a6d26c0d9584496d
[ "MIT" ]
33
2017-01-08T13:20:02.000Z
2022-03-02T20:10:39.000Z
setup.py
DeflatedPickle/pkinter
cc04a781a2bbfa65cb1fc137a6d26c0d9584496d
[ "MIT" ]
10
2017-05-12T11:16:25.000Z
2020-11-12T18:39:22.000Z
setup.py
DeflatedPickle/pkinter
cc04a781a2bbfa65cb1fc137a6d26c0d9584496d
[ "MIT" ]
6
2017-01-29T21:40:55.000Z
2021-04-08T18:13:13.000Z
from setuptools import setup setup(name="pkinter", version="1.37.2", description="A set of useful widgets for use with TkInter.", author="DeflatedPickle", author_email="DeflatedPickle@gmail.com", url="https://github.com/DeflatedPickle/pkinter", license="MIT", classifi...
35.736842
67
0.580265
cf6d51d5736b3fef490f15e804cbd042ee96d4b1
11,777
py
Python
create_finetune_tfrecords.py
celsopitta/mesh-transformer-jax
4f40ddb62ae70ccd1d2e602f6d7fd58c85e9c58d
[ "Apache-2.0" ]
null
null
null
create_finetune_tfrecords.py
celsopitta/mesh-transformer-jax
4f40ddb62ae70ccd1d2e602f6d7fd58c85e9c58d
[ "Apache-2.0" ]
null
null
null
create_finetune_tfrecords.py
celsopitta/mesh-transformer-jax
4f40ddb62ae70ccd1d2e602f6d7fd58c85e9c58d
[ "Apache-2.0" ]
null
null
null
#python3 create_finetune_tfrecords.py /datasets/Squad_2.0/gptj-squad_v2_train_seq2030.txt gptj-squadv2-seq2030 # import argparse import os import re import random from pathlib import Path from typing import List import ftfy import tensorflow as tf from lm_dataformat import Reader from transformers import GPT2Tokenize...
37.990323
185
0.64626
17a657ea4a44cfdf1af17f6b845224af6bdf9386
1,319
py
Python
PaperRank/compute/util/helpers.py
tetherless-world/PaperRank
a6b7c1294c7b9d5c3e0aebc59996eef044801daa
[ "MIT" ]
1
2018-07-13T17:12:54.000Z
2018-07-13T17:12:54.000Z
PaperRank/compute/util/helpers.py
tetherless-world/PaperRank
a6b7c1294c7b9d5c3e0aebc59996eef044801daa
[ "MIT" ]
1
2021-06-01T22:23:26.000Z
2021-06-01T22:23:26.000Z
PaperRank/compute/util/helpers.py
rukmal/PaperRank
10de366f1f020e4a278703c1ef32a2670766a535
[ "MIT" ]
2
2020-03-06T10:51:32.000Z
2020-05-26T18:34:40.000Z
from ...util import config import logging def logLoopProgress(count: int, last_check: int, N: int, name: str) -> int: """Function to log the progress of loops through the a of size N. Arguments: count {int} -- Current iteration count. last_check {int} -- Last time log...
31.404762
73
0.622441
2c1d176012134147e1038011cdde9bb6abf7a910
17,201
py
Python
descqa/NumberDensityVersusRedshift.py
xyh-cosmo/descqa
469fc2b0f925c729e207aac48acc80389451c10b
[ "BSD-3-Clause" ]
null
null
null
descqa/NumberDensityVersusRedshift.py
xyh-cosmo/descqa
469fc2b0f925c729e207aac48acc80389451c10b
[ "BSD-3-Clause" ]
null
null
null
descqa/NumberDensityVersusRedshift.py
xyh-cosmo/descqa
469fc2b0f925c729e207aac48acc80389451c10b
[ "BSD-3-Clause" ]
1
2020-03-24T09:02:30.000Z
2020-03-24T09:02:30.000Z
from __future__ import print_function, division, unicode_literals, absolute_import import os import math try: from itertools import zip_longest except ImportError: from itertools import izip_longest as zip_longest import numpy as np from GCR import GCRQuery from sklearn.cluster import k_means from .base impor...
45.265789
145
0.589094
d8b1dcd941312fdbba7d4f20226a908b2b61b971
146
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/report/__init__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/web_editor/__init__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/web_editor/__init__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import controllers import models import tests
20.857143
74
0.746575
6b67b3fa522f5f0be9db49f236a52b7e63605f64
14,352
py
Python
src/dispersion.py
nathanfelipe/HYDROS
4ae4a917d405c91cb8eb197cc9c2a493b2bf25f9
[ "MIT" ]
null
null
null
src/dispersion.py
nathanfelipe/HYDROS
4ae4a917d405c91cb8eb197cc9c2a493b2bf25f9
[ "MIT" ]
null
null
null
src/dispersion.py
nathanfelipe/HYDROS
4ae4a917d405c91cb8eb197cc9c2a493b2bf25f9
[ "MIT" ]
null
null
null
# Author: Jonathan Cookmeyer, Daniel Told # Summer 2015 # for Python 2.7 from __future__ import division, absolute_import, print_function, unicode_literals #from pylab import * from scipy.special import wofz, jn, ive from scipy.optimize import fsolve, root, newton from numpy import amin, matrix, tile, lins...
36.060302
175
0.544384
26a0f9b28605b7c51162c3a301b70239d66e9891
27,463
py
Python
aim/tests/unit/agent/aid_universes/test_aim_db_universe.py
gaurav-dalvi/aci-integration-module
5d31f65f4fca3e0322d6003e7736ca14aa7ec72d
[ "Apache-2.0" ]
null
null
null
aim/tests/unit/agent/aid_universes/test_aim_db_universe.py
gaurav-dalvi/aci-integration-module
5d31f65f4fca3e0322d6003e7736ca14aa7ec72d
[ "Apache-2.0" ]
null
null
null
aim/tests/unit/agent/aid_universes/test_aim_db_universe.py
gaurav-dalvi/aci-integration-module
5d31f65f4fca3e0322d6003e7736ca14aa7ec72d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Cisco Systems # 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 require...
45.619601
79
0.577686
9f59525b949f05fded1037a47f5c6b0648e403d0
1,647
py
Python
python/pyfunc-server/setup.py
gojek/merlin
48ea0b6c8b0ee18d33d180e24c303f40aa723cbd
[ "Apache-2.0" ]
97
2020-10-15T08:03:56.000Z
2022-03-31T22:30:59.000Z
python/pyfunc-server/setup.py
babywyrm/merlin
29f669ab613d6808d0186067b948496b508caa96
[ "Apache-2.0" ]
91
2020-10-26T03:15:27.000Z
2022-03-31T10:19:55.000Z
python/pyfunc-server/setup.py
babywyrm/merlin
29f669ab613d6808d0186067b948496b508caa96
[ "Apache-2.0" ]
26
2020-10-21T03:53:36.000Z
2022-03-16T06:43:15.000Z
# Copyright 2020 The Merlin 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 law or agreed to in w...
33.612245
106
0.729812
d919f6adaf1b5c87b1ad18cb957f3eb1e25b3776
3,058
py
Python
tests/test_chi_buildings.py
AlessandroVol23/city-scrapers
b1ac52357fe5974a6f12cada15f3833ffbe94748
[ "MIT" ]
1
2019-03-18T03:12:25.000Z
2019-03-18T03:12:25.000Z
tests/test_chi_buildings.py
AlessandroVol23/city-scrapers
b1ac52357fe5974a6f12cada15f3833ffbe94748
[ "MIT" ]
1
2019-10-05T04:05:48.000Z
2019-10-05T04:05:48.000Z
tests/test_chi_buildings.py
firejava/city-scrapers
749f40bf1bd933726768d7d67e5211aef13af547
[ "MIT" ]
1
2020-10-01T15:29:24.000Z
2020-10-01T15:29:24.000Z
from datetime import datetime import pytest import scrapy from city_scrapers_core.constants import BOARD, COMMITTEE, PASSED from freezegun import freeze_time from tests.utils import file_response from city_scrapers.spiders.chi_buildings import ChiBuildingsSpider test_json_response = file_response('files/chi_building...
27.303571
121
0.672008
766b482a3b06a369646c6967870609327ff61a56
724
py
Python
src/subscription/migrations/0003_auto_20190812_2025.py
nffdiogosilva/django-subscription
abd2949a65995043666caa28b952a7f0f744c4a1
[ "MIT" ]
null
null
null
src/subscription/migrations/0003_auto_20190812_2025.py
nffdiogosilva/django-subscription
abd2949a65995043666caa28b952a7f0f744c4a1
[ "MIT" ]
5
2020-06-05T22:50:46.000Z
2022-02-10T08:56:10.000Z
src/subscription/migrations/0003_auto_20190812_2025.py
nffdiogosilva/django-subcription
abd2949a65995043666caa28b952a7f0f744c4a1
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-12 20:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('subscription', '0002_auto_20190812_1654'), ] operations = [ migrations.AddField( model_name='plan', name='plan_type'...
30.166667
170
0.609116
f6a6b4e35d57e0c5fd9a017e2aa04ce68107c7e0
1,154
py
Python
buzzengine/api/tasks.py
alexandru/TheBuzzEngine
18fd298e502d0cf6435a421004649858f2eb0683
[ "MIT" ]
4
2015-07-28T10:35:02.000Z
2015-11-05T13:53:16.000Z
buzzengine/api/tasks.py
alexandru/TheBuzzEngine
18fd298e502d0cf6435a421004649858f2eb0683
[ "MIT" ]
null
null
null
buzzengine/api/tasks.py
alexandru/TheBuzzEngine
18fd298e502d0cf6435a421004649858f2eb0683
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Alexandru Nedelcu" __email__ = "noreply@alexn.org" from google.appengine.api import mail from django.template.loader import get_template from django.template import Context from django.http import HttpResponse, Http404 from django.conf import setting...
28.85
119
0.714038
92bdca03049e78f08b91682f83e48976672f9a1b
456
py
Python
utils/get_season_things_price.py
vogelfenx/storagebot
64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228
[ "MIT" ]
null
null
null
utils/get_season_things_price.py
vogelfenx/storagebot
64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228
[ "MIT" ]
2
2021-11-24T18:20:00.000Z
2021-11-24T18:31:55.000Z
utils/get_season_things_price.py
vogelfenx/storagebot
64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228
[ "MIT" ]
4
2021-11-24T16:40:28.000Z
2021-11-28T10:40:57.000Z
def get_season_things_price(thing, amount, price): if thing == 'wheel': wheel_price = price[thing]['month'] * amount return f'Стоимость составит {wheel_price}/месяц' else: other_thing_price_week = price[thing]['week'] * amount other_thing_price_month = price[thing]['month'] * a...
41.454545
75
0.662281
4d5932f8909f52a6873b3848cd30d72966cfccd0
492
py
Python
instancias.py
NicolasImplant/POO_Python
4a132c595f562d7eb8facc11eed3017e4a039521
[ "MIT" ]
null
null
null
instancias.py
NicolasImplant/POO_Python
4a132c595f562d7eb8facc11eed3017e4a039521
[ "MIT" ]
null
null
null
instancias.py
NicolasImplant/POO_Python
4a132c595f562d7eb8facc11eed3017e4a039521
[ "MIT" ]
null
null
null
class Coordenada: def __init__(self,x,y): self.x = x self.y = y def distancia(self, otra_coordenada): x_diff = (self.x - otra_coordenada.x)**2 y_diff = (self.y - otra_coordenada.y)**2 return(x_diff + y_diff)**(1/2) if __name__ == '__main__': coord1 = Coordenada...
30.75
99
0.632114
3987f9b86458ad141d9376d35da9fc528ba3893a
4,630
py
Python
geography/models/division.py
The-Politico/politico-civic-geography
032b3ee773b50b65cfe672f230dda772df0f89e0
[ "MIT" ]
1
2018-07-31T13:54:38.000Z
2018-07-31T13:54:38.000Z
geography/models/division.py
The-Politico/politico-civic-geography
032b3ee773b50b65cfe672f230dda772df0f89e0
[ "MIT" ]
7
2018-04-18T20:57:40.000Z
2021-06-10T20:50:40.000Z
geography/models/division.py
The-Politico/politico-civic-geography
032b3ee773b50b65cfe672f230dda772df0f89e0
[ "MIT" ]
1
2018-12-15T20:17:52.000Z
2018-12-15T20:17:52.000Z
# -*- coding: utf-8 -*- import uuid from django.contrib.postgres.fields import JSONField from django.core.exceptions import ObjectDoesNotExist from django.db import models from uuslug import uuslug from .division_level import DivisionLevel from .intersect_relationship import IntersectRelationship class Division(mod...
34.044118
79
0.659827
ad4cd4ae39daaa02c89eaf64bfdb0779ff5a4786
1,575
py
Python
share/rpcauth/rpcauth.py
DisasterFaster/PWRcoin-1
5dd27c215a3477de757c14d8839c5798bed5553a
[ "MIT" ]
null
null
null
share/rpcauth/rpcauth.py
DisasterFaster/PWRcoin-1
5dd27c215a3477de757c14d8839c5798bed5553a
[ "MIT" ]
null
null
null
share/rpcauth/rpcauth.py
DisasterFaster/PWRcoin-1
5dd27c215a3477de757c14d8839c5798bed5553a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from argparse import ArgumentParser from base64 import urlsafe_b64encode from binascii import hexlify fro...
33.510638
134
0.714286
8417f4d3cbb15449b7cd0b64dc1bc60a13cbebee
261
py
Python
Python_Exercise/dictionary/emoji_dictionary.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
Python_Exercise/dictionary/emoji_dictionary.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
Python_Exercise/dictionary/emoji_dictionary.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
message = input('>\t') emoji = { "morning": "😇", "happy": "😀", "sad": "😔", "fun": "😎", "driving": "🚗", } result = "" y = message.split(" ") for x in y: # if x in emoji: result += emoji.get(x, x) + " " print(result)
15.352941
36
0.40613
ada364e45349c7c937b05a7515813fcc749c6809
1,418
py
Python
office365/excel/workbookNamedItem.py
andrewcchoi/Office365-REST-Python-Client
43db12ae532c804c75a3a34f7b0d7d79e30fdac3
[ "MIT" ]
null
null
null
office365/excel/workbookNamedItem.py
andrewcchoi/Office365-REST-Python-Client
43db12ae532c804c75a3a34f7b0d7d79e30fdac3
[ "MIT" ]
null
null
null
office365/excel/workbookNamedItem.py
andrewcchoi/Office365-REST-Python-Client
43db12ae532c804c75a3a34f7b0d7d79e30fdac3
[ "MIT" ]
null
null
null
from office365.entity import Entity from office365.entity_collection import EntityCollection from office365.excel.workbookWorksheet import WorkbookWorksheet from office365.runtime.resource_path import ResourcePath class WorkbookNamedItem(Entity): """Represents a defined name for a range of cells or value. Names c...
35.45
114
0.700282
a17f81ff402e750d5fa021d9b2a0f7564152b443
50,698
py
Python
Lib/idlelib/PyShell.py
certik/python2.6
3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59
[ "PSF-2.0" ]
4
2015-12-07T13:37:48.000Z
2021-03-24T16:27:52.000Z
Lib/idlelib/PyShell.py
CRYPTOlab/python-resin
eab9e6241cec257761be6548dc6e2a6886f2d4b8
[ "PSF-2.0" ]
null
null
null
Lib/idlelib/PyShell.py
CRYPTOlab/python-resin
eab9e6241cec257761be6548dc6e2a6886f2d4b8
[ "PSF-2.0" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
#! /usr/bin/env python import os import os.path import sys import string import getopt import re import socket import time import threading import traceback import types import macosxSupport import linecache from code import InteractiveInterpreter try: from Tkinter import * except ImportError: print>>sys.__s...
35.354254
87
0.576492
a66c16e50be4674f14e5e57c7544682dd210c1f9
6,820
py
Python
utils/csgodata.py
IgaoGuru/csgo-data
803037ed91be6457b988d452494d6a30344f650f
[ "MIT" ]
7
2020-10-17T15:35:09.000Z
2022-03-16T13:06:37.000Z
utils/csgodata.py
IgaoGuru/csgo-data
803037ed91be6457b988d452494d6a30344f650f
[ "MIT" ]
null
null
null
utils/csgodata.py
IgaoGuru/csgo-data
803037ed91be6457b988d452494d6a30344f650f
[ "MIT" ]
1
2021-11-05T15:34:15.000Z
2021-11-05T15:34:15.000Z
import os import sys import os import time import cv2 from mss import mss from tqdm import tqdm import numpy as np import pandas as pd import pyautogui def screen_record(output_dir_path, timer, view_img=False, save_img=True): #timer represents number of seconds for which the function is running last_time = ti...
35.706806
154
0.591349
030ce09794b6904a9ca8c261de37218554c9e055
158
py
Python
workers/message_insights_worker/__init__.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
443
2018-09-19T00:30:36.000Z
2022-03-31T11:39:13.000Z
workers/message_insights_worker/__init__.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
613
2018-09-19T18:31:13.000Z
2022-03-31T05:41:16.000Z
workers/message_insights_worker/__init__.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
764
2018-10-17T01:08:10.000Z
2022-03-31T05:25:01.000Z
"""message_insights_worker - Augur Worker that analyzes PR and issue messages""" __version__ = '0.0.0' __author__ = 'Augur Team <s@goggins.com>' __all__ = []
31.6
80
0.727848
1fb7c38727b1f39339d0e1f182af23e0551c6995
3,235
py
Python
built-in/TensorFlow/Official/cv/image_classification/ResNet50_ID0360_for_TensorFlow2.X/tensorflow/tf2_common/utils/mlp_log/mlp_log.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/cv/image_classification/ResNet50_ID0360_for_TensorFlow2.X/tensorflow/tf2_common/utils/mlp_log/mlp_log.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Official/cv/image_classification/ResNet50_ID0360_for_TensorFlow2.X/tensorflow/tf2_common/utils/mlp_log/mlp_log.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
32.35
78
0.70541
305ad96879fee49cdef1319185cb443965019233
468
py
Python
Configuration/DataProcessing/python/Impl/cosmicsEra_Run3.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
Configuration/DataProcessing/python/Impl/cosmicsEra_Run3.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
Configuration/DataProcessing/python/Impl/cosmicsEra_Run3.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
#!/usr/bin/env python """ _cosmicsEra_Run3_ Scenario supporting cosmic data taking """ import os import sys from Configuration.Eras.Era_Run3_cff import Run3 from Configuration.DataProcessing.Impl.cosmics import cosmics class cosmicsEra_Run3(cosmics): def __init__(self): cosmics.__init__(self) s...
18
67
0.732906
88cfce9eda3038d3981ea85c48d47793a046e555
7,206
py
Python
cloudkitty/collector/prometheus.py
wanghuiict/cloudkitty
11ff713042eb0354f497f7051130630c46860735
[ "Apache-2.0" ]
97
2015-10-18T02:53:17.000Z
2022-03-07T05:15:39.000Z
cloudkitty/collector/prometheus.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
1
2017-11-29T15:39:27.000Z
2017-11-29T15:39:27.000Z
cloudkitty/collector/prometheus.py
shanafang9/cloudkitty
911c90569ccb09ecf0d7aa11a5a707c8ebda09cf
[ "Apache-2.0" ]
54
2015-10-27T10:55:02.000Z
2022-02-18T08:23:19.000Z
# Copyright 2018 Objectif Libre # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
30.66383
79
0.578684
8611936ba2164760da14be99703c1d51b9676008
92
py
Python
tests/test_aiorpcgrid.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
tests/test_aiorpcgrid.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
tests/test_aiorpcgrid.py
urands/aiorpcgrid
7bc9ee9a80fa843998b2604d7c0803b323628480
[ "Apache-2.0" ]
null
null
null
from aiorpcgrid import __version__ def test_version(): assert __version__ == '0.1.0b'
15.333333
34
0.728261
246a3cd32c458a49247a9bbada2b57f6b783ec2e
1,938
py
Python
packages/OpenCV/nodes/OpenCV___CircleDetectionOnGreyscale0/OpenCV___CircleDetectionOnGreyscale0.py
lidong1266/Ryven-Switch
68d1f71e81d6564196f44ca49d5903f06db6a4d9
[ "MIT" ]
18
2021-01-18T09:52:41.000Z
2022-03-22T10:48:44.000Z
packages/OpenCV/nodes/OpenCV___CircleDetectionOnGreyscale0/OpenCV___CircleDetectionOnGreyscale0.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___CircleDetectionOnGreyscale0/OpenCV___CircleDetectionOnGreyscale0.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
3
2021-01-18T09:49:42.000Z
2022-03-22T10:48:47.000Z
from NIENV import * # API METHODS # self.main_widget <- access to main widget # Ports # self.input(index) <- access to input data # set_output_val(self, index, val) <- set output data port value # self.exec_output(index) <- executes an execution output # self.create_new_inp...
29.363636
100
0.610423
576b6abd87a1409a06a04c3269a427e401f926d8
3,489
py
Python
data_analysis/audiocommons_ffont/key_estimation/analysis_algorithms.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
18
2020-01-22T14:58:18.000Z
2022-02-21T12:07:51.000Z
data_analysis/audiocommons_ffont/key_estimation/analysis_algorithms.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
2
2020-02-24T13:14:05.000Z
2020-09-21T13:34:53.000Z
data_analysis/audiocommons_ffont/key_estimation/analysis_algorithms.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
1
2020-01-22T14:55:36.000Z
2020-01-22T14:55:36.000Z
from ac_utils.sound import load_audio_file import essentia.standard as estd from collections import Counter import subprocess SOUND_FILE_KEY = 'file_path' def algorithm_tonal_key_essentia_basic(sound): """ Estimates the tonality of a given audio file. See http://essentia.upf.edu/documentation/reference/...
35.242424
120
0.65033
495d9d473749e87b8b91ced112bc1992cad4ba07
665
py
Python
scripts/ssc/unity_datasets/corgi_rotating/kNN_calc.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
scripts/ssc/unity_datasets/corgi_rotating/kNN_calc.py
MrBellamonte/MT-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
1
2020-09-22T13:04:58.000Z
2020-09-22T13:05:23.000Z
scripts/ssc/unity_datasets/corgi_rotating/kNN_calc.py
MrBellamonte/AEs-VAEs-TDA
8881b5db607c673fb558f7b74ece27f244b16b77
[ "MIT" ]
null
null
null
import os import torch from sklearn.metrics import pairwise_distances root_path_save = '/Users/simons/PycharmProjects/MT-VAEs-TDA/src/datasets/simulated/corgi_rotation_bw1_l' dataloader_path = 'dataloader_train.pt' distances_save = 'distances_bs0.pt' dataloader = torch.load(os.path.join(root_path_save,dataloader_pa...
28.913043
104
0.748872
d055b4a8bffc026bb74ad6eec84629a5050f2a4f
3,164
py
Python
qiskit/result/models.py
PierreDC/qiskit-sdk-py
e879167ac86ee731f53ee71c10210ba37e4559ab
[ "Apache-2.0" ]
null
null
null
qiskit/result/models.py
PierreDC/qiskit-sdk-py
e879167ac86ee731f53ee71c10210ba37e4559ab
[ "Apache-2.0" ]
null
null
null
qiskit/result/models.py
PierreDC/qiskit-sdk-py
e879167ac86ee731f53ee71c10210ba37e4559ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Schema and helper models for schema-conformant Results.""" from marshmallow.fields import Boolean, DateTime, Integer, Lis...
31.959596
84
0.661504
f3dceee7b1557d7f775a7f24d117a8b0e3f33544
8,275
py
Python
web/form.py
code128/networkedsoundboard
0401600b08cc8e0b1df44e34b3bbe778a1089039
[ "MIT" ]
2
2015-12-01T01:58:11.000Z
2016-05-08T23:45:19.000Z
web/form.py
jacintos/my-wahi
78a07981181205db0ef87d797e8a82f63b077345
[ "MIT" ]
null
null
null
web/form.py
jacintos/my-wahi
78a07981181205db0ef87d797e8a82f63b077345
[ "MIT" ]
1
2021-01-08T02:01:12.000Z
2021-01-08T02:01:12.000Z
""" HTML forms (part of web.py) """ import copy, re import webapi as web import utils, net def attrget(obj, attr, value=None): if hasattr(obj, 'has_key') and obj.has_key(attr): return obj[attr] if hasattr(obj, attr): return getattr(obj, attr) return value class Form: r""" HTML form. ...
31.226415
159
0.536677
f169f8ebc6fe285f19e87f825064677f30ecf1a5
3,774
py
Python
zmk/utility/views.py
em3ndez/MLW
f9f9d83a12542521c490d9a6c6c72639208a6ae3
[ "Apache-2.0" ]
2
2020-11-29T00:16:37.000Z
2021-02-22T18:12:15.000Z
zmk/utility/views.py
em3ndez/MLW
f9f9d83a12542521c490d9a6c6c72639208a6ae3
[ "Apache-2.0" ]
20
2020-09-26T01:04:36.000Z
2022-03-02T08:38:18.000Z
zmk/utility/views.py
em3ndez/MLW
f9f9d83a12542521c490d9a6c6c72639208a6ae3
[ "Apache-2.0" ]
1
2020-02-29T12:18:28.000Z
2020-02-29T12:18:28.000Z
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.conf import settings from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse from django.views.decorators.http import require_POST from django.views.generic import View impor...
25.5
72
0.757552
e263877d1519872039af519b61359b669d6e1545
5,909
py
Python
checkin.py
page3030/189checkin
93fc7e8e9a4da8263bfb8680b9989caf9056878f
[ "MIT" ]
null
null
null
checkin.py
page3030/189checkin
93fc7e8e9a4da8263bfb8680b9989caf9056878f
[ "MIT" ]
null
null
null
checkin.py
page3030/189checkin
93fc7e8e9a4da8263bfb8680b9989caf9056878f
[ "MIT" ]
null
null
null
import argparse import base64 import re import time import requests import rsa import random class CheckIn(object): client = requests.Session() login_url = "https://cloud.189.cn/udb/udb_login.jsp?pageId=1&redirectURL=/main.actio" submit_login_url = "https://open.e.189.cn/api/logbox/oauth2/loginSubmit.do...
38.875
121
0.551362
93c0075c60d6df0e0e48c063b0508636f077f6b4
193
py
Python
fastreg/tests/conftest.py
fmcetin/fastreg
c300c449154752dfa3348ad1de0928f97d674781
[ "MIT" ]
34
2019-12-17T08:21:04.000Z
2022-03-22T18:41:17.000Z
fastreg/tests/conftest.py
fmcetin/fastreg
c300c449154752dfa3348ad1de0928f97d674781
[ "MIT" ]
null
null
null
fastreg/tests/conftest.py
fmcetin/fastreg
c300c449154752dfa3348ad1de0928f97d674781
[ "MIT" ]
6
2019-12-18T01:59:57.000Z
2022-03-30T05:03:38.000Z
import pytest import fastreg as fr @pytest.fixture(params=[10_000, 1_000_000]) def data(request): N = request.param return fr.dataset(N=N, K1=10, K2=100, models=['linear', 'poisson'])
24.125
71
0.699482
fbb6f43c2401e62692a19ab6724fb0a32eadd0cb
1,403
py
Python
Tests/TestInput.py
gcewing/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
9
2019-07-15T19:03:27.000Z
2021-11-24T19:50:02.000Z
Tests/TestInput.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
3
2019-09-11T13:22:10.000Z
2020-08-19T20:13:00.000Z
Tests/TestInput.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
4
2020-02-23T16:50:06.000Z
2022-02-10T07:15:35.000Z
from testing import say class TestKeyEvents: def key_down(self, event): which = self.which_key(event) if event.auto: say("Auto key:", which) else: say("Key down:", which) def key_up(self, event): say("Key up:", self.which_key(event)) def which_key(self, event): return repr(event.key or event.ch...
25.509091
93
0.687812
7fea32620c61f6663da4869fc234ecf0c07a6da3
10,702
py
Python
pyasn/__init__.py
luftwurzel/pyasn
b4471244354060284120746885b9093f6c488619
[ "MIT" ]
206
2015-01-08T07:35:26.000Z
2022-03-08T17:14:59.000Z
pyasn/__init__.py
luftwurzel/pyasn
b4471244354060284120746885b9093f6c488619
[ "MIT" ]
60
2015-01-09T07:52:09.000Z
2022-03-22T17:56:46.000Z
pyasn/__init__.py
luftwurzel/pyasn
b4471244354060284120746885b9093f6c488619
[ "MIT" ]
60
2015-01-08T07:35:26.000Z
2022-03-05T15:13:20.000Z
# Copyright (c) 2014-2017 Hadi Asghari # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
43.860656
105
0.61895
c885609f2d49f3d214e47916e54c71e02737f411
2,174
py
Python
quimb/tensor/__init__.py
paulsbrookes/quimb
27332e4c7e5f8d8da9204706cbf059873ae6117d
[ "Apache-2.0" ]
null
null
null
quimb/tensor/__init__.py
paulsbrookes/quimb
27332e4c7e5f8d8da9204706cbf059873ae6117d
[ "Apache-2.0" ]
null
null
null
quimb/tensor/__init__.py
paulsbrookes/quimb
27332e4c7e5f8d8da9204706cbf059873ae6117d
[ "Apache-2.0" ]
null
null
null
from .tensor_core import ( get_contract_backend, set_contract_backend, get_tensor_linop_backend, set_tensor_linop_backend, tensor_contract, tensor_split, tensor_direct_product, bonds, bonds_size, Tensor, TensorNetwork, TNLinearOperator1D, ) from .tensor_gen import ( r...
18.423729
35
0.649034
6a8770819fd63e5faea060ae4da29fcd26b80dba
9,978
py
Python
detecto/utils.py
kuzentio/detecto
589512a00434daedc4da912d9924b8e5abc65596
[ "MIT" ]
null
null
null
detecto/utils.py
kuzentio/detecto
589512a00434daedc4da912d9924b8e5abc65596
[ "MIT" ]
null
null
null
detecto/utils.py
kuzentio/detecto
589512a00434daedc4da912d9924b8e5abc65596
[ "MIT" ]
null
null
null
import cv2 import os import pandas as pd import torch import xml.etree.ElementTree as ET from glob import glob from torchvision import transforms def default_transforms(): """Returns the default, bare-minimum transformations that should be applied to images passed to classes in the :mod:`detecto.core` module...
35.010526
91
0.648627
d481c21c5e3df86a0ff46c86afb66ce6535943d3
2,921
py
Python
corehq/apps/mobile_auth/models.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/apps/mobile_auth/models.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/mobile_auth/models.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
import uuid from django.db import models from dimagi.ext.couchdbkit import DateTimeProperty, Document, StringProperty from dimagi.utils.couch.migration import SyncCouchToSQLMixin, SyncSQLToCouchMixin from dimagi.utils.parsing import json_format_datetime from .utils import generate_aes_key class MobileAuthKeyRecord...
31.074468
104
0.689148
598716297aca4e9690eeec6003fe5e4eb4a20159
9,449
py
Python
pyramid_redis_sessions/__init__.py
omidraha/pyramid_redis_sessions
8e7948e15d6e904ed1c87d3cf6438e3233457722
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyramid_redis_sessions/__init__.py
omidraha/pyramid_redis_sessions
8e7948e15d6e904ed1c87d3cf6438e3233457722
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pyramid_redis_sessions/__init__.py
omidraha/pyramid_redis_sessions
8e7948e15d6e904ed1c87d3cf6438e3233457722
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- import functools from pyramid.session import ( signed_deserialize, signed_serialize, ) from .compat import cPickle from .connection import get_default_connection from .session import RedisSession from .util import ( _generate_session_id, _parse_settings, get_unique_ses...
29.901899
79
0.659012
057937e74c00666ffc17d34fb9e9dc858f26d538
3,060
py
Python
authors/apps/comments/migrations/0001_initial.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
null
null
null
authors/apps/comments/migrations/0001_initial.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
21
2019-03-25T18:38:02.000Z
2019-04-23T09:54:52.000Z
authors/apps/comments/migrations/0001_initial.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
3
2019-07-15T08:41:58.000Z
2019-12-20T08:25:34.000Z
# Generated by Django 2.1.4 on 2019-04-21 10:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import simple_history.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
47.8125
139
0.561111
9c6edcb371b2d52b5daa2209d06e384d02cc395e
3,265
py
Python
examples/src/dbnd_examples/tutorial_syntax/T22_function_with_different_inputs.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
examples/src/dbnd_examples/tutorial_syntax/T22_function_with_different_inputs.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
examples/src/dbnd_examples/tutorial_syntax/T22_function_with_different_inputs.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
import datetime import logging from pathlib import Path from typing import List import six from dbnd import pipeline, task from targets import Target, target from targets.types import PathStr logger = logging.getLogger(__name__) @task def f_simple_types(v_int: int, v_bool: bool, v_str: str) -> str: assert is...
25.115385
87
0.672588
dab5d2c1121cad17ce12996817f30d4e4c6409d3
185
py
Python
python/light1.py
mooew/bridge
8659d880bf553edb7a22181c8d7ce22a864581ea
[ "Apache-2.0" ]
null
null
null
python/light1.py
mooew/bridge
8659d880bf553edb7a22181c8d7ce22a864581ea
[ "Apache-2.0" ]
null
null
null
python/light1.py
mooew/bridge
8659d880bf553edb7a22181c8d7ce22a864581ea
[ "Apache-2.0" ]
null
null
null
from RPi import GPIO import time import sys GPIO.setwarnings(False) relayPin = int(sys.argv[1]) GPIO.setmode(GPIO.BOARD) GPIO.setup(relayPin, GPIO.OUT) GPIO.output(relayPin, GPIO.HIGH)
20.555556
32
0.783784
7208f3c22ae732f7b51830eaf432508347f60e40
708
py
Python
index.py
PMHStudio/opencvLearn
e6e2874be5d47d13ae87c6934a38c5100c8cf848
[ "MIT" ]
1
2020-11-06T14:21:14.000Z
2020-11-06T14:21:14.000Z
index.py
PMHStudio/opencvLearn
e6e2874be5d47d13ae87c6934a38c5100c8cf848
[ "MIT" ]
null
null
null
index.py
PMHStudio/opencvLearn
e6e2874be5d47d13ae87c6934a38c5100c8cf848
[ "MIT" ]
null
null
null
import cv2 face = cv2.CascadeClassifier('data/haarcascade_frontalface_default.xml') eye = cv2.CascadeClassifier('data/haarcascade_eye_tree_eyeglasses.xml') cap = cv2.VideoCapture(0) while True: _, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face.detectMultiScale(gray, 1.1, 4) for (x...
28.32
72
0.639831
5b9afdf1e1b50c5ed1d145e47644b5c3e5dd697e
31,829
py
Python
xonsh/procs/specs.py
con-f-use/xonsh
bff0794b68f0d9266d8d920f10170c982927ccf6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/procs/specs.py
con-f-use/xonsh
bff0794b68f0d9266d8d920f10170c982927ccf6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/procs/specs.py
con-f-use/xonsh
bff0794b68f0d9266d8d920f10170c982927ccf6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Subprocess specification and related utilities.""" import contextlib import inspect import io import os import pathlib import re import shlex import signal import stat import subprocess import sys import xonsh.environ as xenv import xonsh.jobs as xj import xonsh.lazyasd as xl import xonsh.lazyimps as xli import xon...
34.151288
100
0.594426
ca4f766324e4c66bbb4a4a8906812a24840069fa
127
py
Python
utilipy/decorators/setup_package.py
nstarman/utilipy
17984942145d31126724df23500bafba18fb7516
[ "BSD-3-Clause" ]
2
2020-11-15T01:48:45.000Z
2020-12-02T20:44:20.000Z
utilipy/decorators/setup_package.py
nstarman/astroPHD
17984942145d31126724df23500bafba18fb7516
[ "BSD-3-Clause" ]
22
2020-09-13T17:58:24.000Z
2022-02-04T19:05:23.000Z
utilipy/decorators/setup_package.py
nstarman/utilipy
17984942145d31126724df23500bafba18fb7516
[ "BSD-3-Clause" ]
1
2020-04-21T22:41:01.000Z
2020-04-21T22:41:01.000Z
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import
31.75
63
0.740157
f77846c186e213c5353252f1f95da06159c32efa
401
py
Python
app.py
jmaldon1/Python-basic_template
2fa15631b7afce356105016c4236f7ba6b5cafc2
[ "MIT" ]
1
2021-01-17T02:20:29.000Z
2021-01-17T02:20:29.000Z
app.py
jmaldon1/Python-basic_template
2fa15631b7afce356105016c4236f7ba6b5cafc2
[ "MIT" ]
null
null
null
app.py
jmaldon1/Python-basic_template
2fa15631b7afce356105016c4236f7ba6b5cafc2
[ "MIT" ]
null
null
null
"""Entry point of the project """ import json import settings as _ # Loader script for initializing things. from conf import config from src.logger import logger def main(): """Main function Run this file with `python app.py` """ print("\n") logger.info("Success! Here is you're config:\n") l...
19.095238
62
0.665835
ca67a5e992760aa4d988816176557effe1e6d60b
19,850
py
Python
cogs/reaction_aggregater.py
SCP-JP/being_sagumo
8a3e272799e96f7e61ebfa8715c8324782f8fa04
[ "MIT" ]
null
null
null
cogs/reaction_aggregater.py
SCP-JP/being_sagumo
8a3e272799e96f7e61ebfa8715c8324782f8fa04
[ "MIT" ]
null
null
null
cogs/reaction_aggregater.py
SCP-JP/being_sagumo
8a3e272799e96f7e61ebfa8715c8324782f8fa04
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 import asyncio import logging import typing from datetime import datetime, timedelta import discord from discord.ext import commands, tasks from discord.ext.commands.errors import (BadArgument, BadUnionArgument, CommandInvokeError) from discord.ext.men...
37.033582
190
0.608866
02bea94be30d654caac5d6bc1d7e8bad9291661e
517
py
Python
Task 1/main.py
mukto-bihanga/JP_Morgan_Chase_Virtual_Experience
8fb4a03eab2a5756349c09aea4bf679d9e30a00e
[ "MIT" ]
null
null
null
Task 1/main.py
mukto-bihanga/JP_Morgan_Chase_Virtual_Experience
8fb4a03eab2a5756349c09aea4bf679d9e30a00e
[ "MIT" ]
null
null
null
Task 1/main.py
mukto-bihanga/JP_Morgan_Chase_Virtual_Experience
8fb4a03eab2a5756349c09aea4bf679d9e30a00e
[ "MIT" ]
null
null
null
import os import subprocess import time import signal os.chdir(os.getcwd()+'/jpm_module_1') process = subprocess.Popen(['python', 'server3.py'], cwd=os.getcwd(), preexec_fn=os.setsid) time.sleep(.300) process2 = subprocess.Popen(['python', 'client3.py'], cwd=os.getcwd(), preexec_fn=os.setsid) process2.wait() os.kil...
27.210526
98
0.731141
148d7eae1767c7bd770c6695fd3d28165b36421f
2,059
py
Python
pynetworking/facts/core_ats.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
4
2015-04-24T20:36:56.000Z
2021-05-03T20:21:54.000Z
pynetworking/facts/core_ats.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
1
2019-07-14T07:07:21.000Z
2019-07-14T07:07:21.000Z
pynetworking/facts/core_ats.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
3
2015-04-24T20:37:04.000Z
2017-03-02T15:14:46.000Z
import re def core_ats(dev): dev.log_info("core_ats") ret = {} out = dev.cmd({'cmds': [{'cmd': 'show version', 'prompt': '\#'}]}) dev.log_debug("show version\n{0}".format(out)) # # Unit SW version Boot version HW version # ------------------- ---------...
29.414286
119
0.46916
fe1f85bc0ff3bfe24c5a5e663b017ad7c14a46ac
14,451
py
Python
Transformer-PyTorch/fairseq/options.py
microsoft/fnl_paper
a93a8081dab472fb53effd26a384e28670383485
[ "MIT" ]
14
2021-03-25T00:29:52.000Z
2022-02-25T02:57:33.000Z
Transformer-PyTorch/fairseq/options.py
microsoft/fnl_paper
a93a8081dab472fb53effd26a384e28670383485
[ "MIT" ]
1
2021-04-14T08:47:44.000Z
2021-04-20T15:41:29.000Z
Transformer-PyTorch/fairseq/options.py
microsoft/fnl_paper
a93a8081dab472fb53effd26a384e28670383485
[ "MIT" ]
3
2021-04-26T04:26:57.000Z
2021-11-10T11:45:48.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import argparse import torch fro...
52.549091
104
0.629299
367870f0ee467fdffe264c568f4db281c45c680d
15,764
py
Python
pandas/core/indexes/numeric.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-03-23T08:51:08.000Z
2020-03-23T08:51:08.000Z
pandas/core/indexes/numeric.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/numeric.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from typing import Any import numpy as np from pandas._libs import index as libindex, lib from pandas._typing import Dtype from pandas.util._decorators import Appender, cache_readonly from pandas.core.dtypes.cast import astype_nansafe from pandas.core.dtypes.common import ( is_bool, is_bool_dtype, is_dty...
32.105906
88
0.62389
342537c29c4fdfcd463e4cb47ab648407f96fa19
16,450
py
Python
azure-mgmt-network/azure/mgmt/network/operations/express_route_circuit_peerings_operations.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-network/azure/mgmt/network/operations/express_route_circuit_peerings_operations.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-network/azure/mgmt/network/operations/express_route_circuit_peerings_operations.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
45.441989
168
0.666261
cc516b9f948b372b5426fa03a5b918089b1c504b
5,229
py
Python
octaviaclient/osc/v2/constants.py
lamby/python-octaviaclient
a50b4f3f06bca25e8ec683203de35d88feb50f22
[ "Apache-2.0" ]
null
null
null
octaviaclient/osc/v2/constants.py
lamby/python-octaviaclient
a50b4f3f06bca25e8ec683203de35d88feb50f22
[ "Apache-2.0" ]
null
null
null
octaviaclient/osc/v2/constants.py
lamby/python-octaviaclient
a50b4f3f06bca25e8ec683203de35d88feb50f22
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 GoDaddy # 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 wr...
17.144262
77
0.589405
c853dbe202a22bc7d69bab0aa5a9f0f60571f11a
4,495
py
Python
hgvs/utils/cigarmapper.py
DavidCain/hgvs
4c7b45f674b18d5685d9957f868760cb77111fe3
[ "Apache-2.0" ]
177
2017-03-12T12:49:52.000Z
2022-03-19T10:55:08.000Z
hgvs/utils/cigarmapper.py
DavidCain/hgvs
4c7b45f674b18d5685d9957f868760cb77111fe3
[ "Apache-2.0" ]
244
2017-03-10T22:53:09.000Z
2022-02-03T09:25:18.000Z
hgvs/utils/cigarmapper.py
DavidCain/hgvs
4c7b45f674b18d5685d9957f868760cb77111fe3
[ "Apache-2.0" ]
77
2017-03-12T08:51:34.000Z
2022-02-09T21:56:12.000Z
"""provides CIGAR-based mapping for hgvs Heads up: UTA CIGAR strings are relative to the transcript; that is, the transcript is the reference and the genome is the target sequence. hgvs, and this module specifically, swaps this nomenclature so that the genome is ref and the transcript is the target. UTA CIGAR strings...
29.966667
115
0.647608
1bef4b2b5a87ebf4df2730a753e595fd0e6177d3
3,925
py
Python
project/run_script.py
shashank2000/JeopardyContrastive
6cfbcc78d1f1e3adff87f6854d71c33ae6a9a7f0
[ "Apache-2.0" ]
null
null
null
project/run_script.py
shashank2000/JeopardyContrastive
6cfbcc78d1f1e3adff87f6854d71c33ae6a9a7f0
[ "Apache-2.0" ]
2
2020-11-11T13:58:43.000Z
2021-01-19T12:41:44.000Z
project/run_script.py
shashank2000/JeopardyContrastive
6cfbcc78d1f1e3adff87f6854d71c33ae6a9a7f0
[ "Apache-2.0" ]
null
null
null
import os import random, torch, numpy from utils.setup import process_config import pytorch_lightning as pl from model import JeopardyModel from model_im_q_a import JeopardyModel2 from data_module import VQADataModule from baseline_data_module import BaselineDataModule from baseline_simclr import UpperBoundModel import...
43.611111
186
0.721783
44fad5e03639551c0ea244dff2a68156570fe8a7
2,401
py
Python
Python/next-greater-element-iii.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/next-greater-element-iii.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/next-greater-element-iii.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(logn) = O(1) # Space: O(logn) = O(1) # 556 # Given a positive 32-bit integer n, you need to find the smallest 32-bit integer # which has exactly the same digits existing in the integer n and is greater in value than n. # If no such positive 32-bit integer exists, you need to return -1. # # Example 1: # Inpu...
33.816901
121
0.562266
7b9107baaf0be0eee29d1d92b466f136a28b7c81
1,421
py
Python
tests/test_unit_data.py
IBM/python-itoolk
36054a7ebdd8f5556c548d4c315e00e3c8d04904
[ "MIT" ]
11
2019-01-09T12:31:04.000Z
2021-08-29T05:26:35.000Z
tests/test_unit_data.py
IBM/python-itoolk
36054a7ebdd8f5556c548d4c315e00e3c8d04904
[ "MIT" ]
50
2018-12-21T18:52:25.000Z
2021-05-25T13:38:15.000Z
tests/test_unit_data.py
IBM/python-itoolk
36054a7ebdd8f5556c548d4c315e00e3c8d04904
[ "MIT" ]
9
2018-12-25T00:02:19.000Z
2022-02-22T00:58:13.000Z
import xml.etree.ElementTree as ET from itoolkit import iData def test_data(): key = 'lljqezl' datatype = '10a' value = 'foo' element = ET.fromstring(iData(key, datatype, value).xml_in()) assert(element.tag == 'data') assert(element.attrib['var'] == key) assert(element.attrib['type'] ==...
23.683333
71
0.616467
de70fe9576da067d5814aa30eb61c0b03fb471f2
7,200
py
Python
algorithm_learning/previous_version/learning_associative_recall_review.py
SigmaQuan/NTM-Keras
a6fbc7374e596c46d0fa073e4bdb100fc8cf310a
[ "MIT" ]
33
2016-11-06T05:42:35.000Z
2020-12-18T22:42:40.000Z
algorithm_learning/previous_version/learning_associative_recall_review.py
imbi7py/NTM-Keras
a6fbc7374e596c46d0fa073e4bdb100fc8cf310a
[ "MIT" ]
2
2017-01-22T09:06:54.000Z
2017-06-29T13:18:05.000Z
algorithm_learning/previous_version/learning_associative_recall_review.py
imbi7py/NTM-Keras
a6fbc7374e596c46d0fa073e4bdb100fc8cf310a
[ "MIT" ]
17
2016-09-17T22:15:50.000Z
2020-12-19T05:55:59.000Z
# -*- coding: utf-8 -*- '''An implementation of learning copying algorithm_learning with RNN (basic RNN, LSTM, GRU). Input sequence length: "1 ~ 20: (1*2+1)=3 ~ (20*2+1)=41" Input dimension: "8" Output sequence length: equal to input sequence length. Output dimension: equal to input dimension. ''' from __future__ impo...
33.179724
86
0.683889
dc8b412e188a6578998ce9214a1ea3937d7b7a49
6,474
py
Python
HyperSphere/BO/axv/cubeboundary_BO.py
QUVA-Lab/HyperSphere
8e126dece948952ddb4ac0c01ac6ab1c8d63720e
[ "BSD-2-Clause-FreeBSD" ]
10
2018-07-11T11:14:38.000Z
2021-02-01T21:04:27.000Z
HyperSphere/BO/axv/cubeboundary_BO.py
QUVA-Lab/HyperSphere
8e126dece948952ddb4ac0c01ac6ab1c8d63720e
[ "BSD-2-Clause-FreeBSD" ]
6
2018-12-20T18:57:59.000Z
2019-10-25T08:32:02.000Z
HyperSphere/BO/axv/cubeboundary_BO.py
QUVA-Lab/HyperSphere
8e126dece948952ddb4ac0c01ac6ab1c8d63720e
[ "BSD-2-Clause-FreeBSD" ]
8
2018-09-04T04:30:37.000Z
2020-02-12T08:52:36.000Z
import os.path import pickle import sys import time from datetime import datetime # ShadowInference version should coincide with the one used in acquisition_maximization from HyperSphere.BO.acquisition.acquisition_maximization import suggest, optimization_candidates, \ optimization_init_points, deepcopy_inference fro...
42.592105
150
0.698177
dae2d44a1dc972feb7d4dcb6f2e0dc8b093cb525
37,218
py
Python
official/recommendation/data_pipeline.py
NasTul/models
4fabd84c5c5e2b34a1b95431788f7801de036421
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
official/recommendation/data_pipeline.py
NasTul/models
4fabd84c5c5e2b34a1b95431788f7801de036421
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
official/recommendation/data_pipeline.py
NasTul/models
4fabd84c5c5e2b34a1b95431788f7801de036421
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.861648
80
0.677199
1b6bdf1fb1e6d3f1730250bc734311c3f16a4d0d
7,369
py
Python
api/serializers/vs_blueprint.py
Rafaelyot/slicer-catalogue
3c3f2e75b4ca3a8eb4b4348f5026a7a65dda8bc3
[ "MIT" ]
null
null
null
api/serializers/vs_blueprint.py
Rafaelyot/slicer-catalogue
3c3f2e75b4ca3a8eb4b4348f5026a7a65dda8bc3
[ "MIT" ]
null
null
null
api/serializers/vs_blueprint.py
Rafaelyot/slicer-catalogue
3c3f2e75b4ca3a8eb4b4348f5026a7a65dda8bc3
[ "MIT" ]
null
null
null
from marshmallow import Schema, ValidationError, pre_load, validate from marshmallow.fields import String, List, Boolean, Integer, Dict, Nested from api.enums.vs_blueprint import VsbActionsParametersValueTypes, SliceServiceType, EMBBServiceCategory, \ URLLCServiceCategory, MetricCollectionType, \ VsComponentPla...
41.398876
119
0.718415
8fc4966b8f999f3aea72a0dd14942fcd7959c49e
10,585
py
Python
PINNs_Turbulence/Turbulence_1D_dissipation_swish_noise1.py
maziarraissi/DeepTurbulence
eb16daa6dbbd392d74d64b6a44d2b06b16eb3a30
[ "MIT" ]
13
2019-10-07T06:43:49.000Z
2022-02-28T05:16:04.000Z
PINNs_Turbulence/Turbulence_1D_dissipation_swish_noise1.py
maziarraissi/DeepTurbulence
eb16daa6dbbd392d74d64b6a44d2b06b16eb3a30
[ "MIT" ]
null
null
null
PINNs_Turbulence/Turbulence_1D_dissipation_swish_noise1.py
maziarraissi/DeepTurbulence
eb16daa6dbbd392d74d64b6a44d2b06b16eb3a30
[ "MIT" ]
14
2019-11-13T14:19:16.000Z
2021-05-02T16:37:01.000Z
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import scipy.io from scipy.interpolate import griddata import time from plotting import newfig, savefig import matplotlib.gridspec as gridspec from mpl_toolkits.axes_grid1 import make_axes_locatable class...
34.366883
114
0.524043
3a75e42c5a0ce76478431e525a476def08a8aeca
24,790
py
Python
javsdt/JavdbFc2.py
zxfandyy/javsdt
4659f6f0739366eb8803049a99e8afe65c6b5814
[ "MIT" ]
76
2021-04-04T08:09:01.000Z
2022-02-17T01:15:15.000Z
javsdt/JavdbFc2.py
zxfandyy/javsdt
4659f6f0739366eb8803049a99e8afe65c6b5814
[ "MIT" ]
4
2021-04-10T14:48:39.000Z
2021-06-28T14:08:21.000Z
javsdt/JavdbFc2.py
zxfandyy/javsdt
4659f6f0739366eb8803049a99e8afe65c6b5814
[ "MIT" ]
9
2021-04-05T04:47:10.000Z
2022-01-11T15:16:09.000Z
# -*- coding:utf-8 -*- import os, re from shutil import copyfile from traceback import format_exc ######################################################################################################################## from Class.Settings import Settings from Class.JavFile import JavFile from Functions.Status import ju...
46.685499
205
0.493425
6bb3a3dbc6b7b0cf486f05f0cc78c2314647ffd0
2,543
py
Python
erpnext_biotrack/patches/rename_bulk_custom_fields.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
11
2017-05-29T23:35:21.000Z
2022-03-12T04:29:21.000Z
erpnext_biotrack/patches/rename_bulk_custom_fields.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
1
2016-12-11T16:58:36.000Z
2016-12-11T16:58:36.000Z
erpnext_biotrack/patches/rename_bulk_custom_fields.py
webonyx/erpnext_biotrack
eb2384a6c3fda84a91c81c959f095a5386a89665
[ "MIT" ]
14
2016-12-17T11:01:03.000Z
2021-11-01T10:21:45.000Z
from __future__ import unicode_literals import frappe from erpnext_biotrack.utils import rename_custom_field def execute(): drop_columns('Warehouse', ['quarentine', 'biotrack_transaction_id', 'biotrack_warehouse_transaction_id_original', 'biotrack_warehouse_location_id']) drop_...
49.862745
111
0.762485
107be4acb9ed6d599e9dd03e42e9e2178f926256
5,003
py
Python
src/template.py
a892574222/game
db1ca156a8fbf77019bc05b8137c928c1a907ec0
[ "Apache-2.0" ]
null
null
null
src/template.py
a892574222/game
db1ca156a8fbf77019bc05b8137c928c1a907ec0
[ "Apache-2.0" ]
null
null
null
src/template.py
a892574222/game
db1ca156a8fbf77019bc05b8137c928c1a907ec0
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import win32api import win32con import win32gui import win32ui import time import logging import cv2 import aircv from src.img import PIC from abc import ABCMeta, abstractmethod import random def ran(x,y): return random.randint(x,y) class Template(object): __metaclass__ = ABCMeta def __in...
31.866242
112
0.592844
9eb64ec2c96589c795b54ec5eb92c6e56a136952
592
py
Python
qcelemental/models/__init__.py
eljost/QCElemental
c6de3a330f686f5dad0a7f4cb0fcf2bf55a549e2
[ "BSD-3-Clause" ]
null
null
null
qcelemental/models/__init__.py
eljost/QCElemental
c6de3a330f686f5dad0a7f4cb0fcf2bf55a549e2
[ "BSD-3-Clause" ]
null
null
null
qcelemental/models/__init__.py
eljost/QCElemental
c6de3a330f686f5dad0a7f4cb0fcf2bf55a549e2
[ "BSD-3-Clause" ]
null
null
null
try: import pydantic except ImportError: # pragma: no cover raise ImportError("Python module pydantic not found. Solve by installing it: " "`conda install pydantic -c conda-forge` or `pip install pydantic`") from . import types from .align import AlignmentMill from .basemodels import Aut...
39.466667
90
0.778716
b8e9201087eed5e0fffdd9a8c4df8813d880a87f
7,822
py
Python
pex/environment.py
kkoralsky/pex
72c29ce99deb1b1730682dc50c618563243a3265
[ "Apache-2.0" ]
1
2021-04-30T05:26:13.000Z
2021-04-30T05:26:13.000Z
pex/environment.py
kkoralsky/pex
72c29ce99deb1b1730682dc50c618563243a3265
[ "Apache-2.0" ]
null
null
null
pex/environment.py
kkoralsky/pex
72c29ce99deb1b1730682dc50c618563243a3265
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, print_function import itertools import os import site import sys import uuid from pkg_resources import ( DistributionNotFound, Environment...
39.11
98
0.685502
8497e7d86df5164af134c6d8e31b39073c100c65
19,016
py
Python
supriya/realtime/interfaces.py
butayama/supriya
0c197324ecee4232381221880d1f40e109bb756c
[ "MIT" ]
null
null
null
supriya/realtime/interfaces.py
butayama/supriya
0c197324ecee4232381221880d1f40e109bb756c
[ "MIT" ]
null
null
null
supriya/realtime/interfaces.py
butayama/supriya
0c197324ecee4232381221880d1f40e109bb756c
[ "MIT" ]
null
null
null
import abc import collections import copy import re from collections.abc import Iterable from supriya.system import SupriyaObject class ControlInterface(SupriyaObject): # TODO: This should inherit from collections.Mapping ### CLASS VARIABLES ### __documentation_section__ = "Server Internals" __sl...
28.768533
86
0.573307
cc45a97658d641d27c7ae717483ad9c7387fecee
35,489
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_11_01/aio/operations/_agent_pools_operations.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_11_01/aio/operations/_agent_pools_operations.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_11_01/aio/operations/_agent_pools_operations.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.433333
263
0.6728
4abb658b41092aa0555386f3c617fc22463c8a10
20,038
py
Python
flowserv/model/run.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
1
2020-02-13T18:57:53.000Z
2020-02-13T18:57:53.000Z
flowserv/model/run.py
scailfin/flowserv-core
69376f84bae71b5699688bd213c34a6bf8806319
[ "MIT" ]
46
2020-02-14T22:14:33.000Z
2021-06-10T21:17:49.000Z
flowserv/model/run.py
scailfin/rob-core
791383085181747cf41c30f6cd13f6762e438d8a
[ "MIT" ]
3
2021-05-06T15:22:29.000Z
2021-06-01T16:19:36.000Z
# This file is part of the Reproducible and Reusable Data Analysis Workflow # Server (flowServ). # # Copyright (C) 2019-2021 NYU. # # flowServ is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """The run manager is used to create, delete...
37.807547
94
0.613235
53a8f895178a3cdac5d92715e6817359014f4e93
2,396
py
Python
data/grocery/prep_grocery.py
marcegeek/audio-super-res
a1d9d5d95731c800ae12b0ce11d005be8a92a2fa
[ "MIT" ]
712
2017-03-15T14:36:24.000Z
2022-03-27T08:51:43.000Z
data/grocery/prep_grocery.py
marcegeek/audio-super-res
a1d9d5d95731c800ae12b0ce11d005be8a92a2fa
[ "MIT" ]
43
2017-05-05T19:51:23.000Z
2022-02-17T05:57:47.000Z
data/grocery/prep_grocery.py
marcegeek/audio-super-res
a1d9d5d95731c800ae12b0ce11d005be8a92a2fa
[ "MIT" ]
173
2017-03-18T22:36:16.000Z
2022-03-19T07:06:43.000Z
""" Create an HDF5 file of patches for training super-resolution model. """ import os, argparse import numpy as np import h5py import cPickle import csv from tqdm import tqdm import pprint import librosa from scipy import interpolate from scipy.signal import decimate from scipy.signal import butter, lfilter import re...
30.329114
88
0.663606
df3840805f1b20ef70aabcddcd1a45d7a21da898
627
py
Python
lrauv_ignition_plugins/worlds/empy_expander.py
osrf/lrauv
2efa79e10682def98f8277fe313ffd1488708b1e
[ "Apache-2.0" ]
24
2021-11-03T18:45:41.000Z
2022-03-28T17:53:29.000Z
lrauv_ignition_plugins/worlds/empy_expander.py
osrf/lrauv
2efa79e10682def98f8277fe313ffd1488708b1e
[ "Apache-2.0" ]
105
2021-11-04T03:15:55.000Z
2022-03-30T20:48:01.000Z
lrauv_ignition_plugins/worlds/empy_expander.py
osrf/lrauv
2efa79e10682def98f8277fe313ffd1488708b1e
[ "Apache-2.0" ]
1
2022-03-18T14:16:47.000Z
2022-03-18T14:16:47.000Z
# Takes in a template and generates a file. import argparse import em import os import sys def main(argv=sys.argv[1:]): parser = argparse.ArgumentParser() parser.add_argument('infile', help='Full path to input template.') parser.add_argument('outfile', help='Full path to output file.') args = parser.p...
27.26087
70
0.681021
f87fe67ec4ce7d3f5d0a4c6ac498a5eeb24ba0fa
118,673
py
Python
Configuration/Applications/python/ConfigBuilder.py
brusale/cmssw
27edb9715d56ba082887f018281980d48c030ee2
[ "Apache-2.0" ]
1
2020-07-21T23:21:47.000Z
2020-07-21T23:21:47.000Z
Configuration/Applications/python/ConfigBuilder.py
brusale/cmssw
27edb9715d56ba082887f018281980d48c030ee2
[ "Apache-2.0" ]
12
2016-08-16T12:30:48.000Z
2021-03-08T10:58:32.000Z
Configuration/Applications/python/ConfigBuilder.py
brusale/cmssw
27edb9715d56ba082887f018281980d48c030ee2
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 from __future__ import print_function __version__ = "$Revision: 1.19 $" __source__ = "$Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v $" import FWCore.ParameterSet.Config as cms from FWCore.ParameterSet.Modules import _Module # The following import is prov...
50.072996
205
0.629638
08877e4b08d14a851ab95f29107f5c9404fbb381
125
py
Python
collector/urls.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
806
2016-05-19T20:18:02.000Z
2022-03-31T06:54:43.000Z
collector/urls.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
48
2016-12-06T06:13:55.000Z
2022-03-23T20:11:04.000Z
collector/urls.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
333
2016-07-17T15:35:53.000Z
2022-03-30T14:14:52.000Z
from django.conf.urls import url from collector import views urlpatterns = [ url(r'^log/$', views.log, name='log'), ]
13.888889
42
0.672
ff130f8acffc969fe18a80eb28d0241f6efc7b77
3,297
py
Python
mttransformer/data_utils/__init__.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
2
2021-11-02T22:27:33.000Z
2022-03-27T07:54:35.000Z
mttransformer/data_utils/__init__.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
null
null
null
mttransformer/data_utils/__init__.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
3
2022-02-28T19:49:54.000Z
2022-03-25T11:30:31.000Z
import json import numpy as np from data_utils.task_def import TaskType, DataFormat import tasks def load_data(file_path, task_def): data_format = task_def.data_type task_type = task_def.task_type label_dict = task_def.label_vocab if task_type == TaskType.Ranking: assert data_format == DataFor...
41.2125
114
0.579921