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
eff4b8dfab3cbc36159407408200c3d6892101d9
29,213
py
Python
henipipe/samTobed.py
moritzschaefer/henipipe
0723ead3c5c9dfa9a5c163caea4531e077d3a996
[ "MIT" ]
4
2020-03-02T04:03:53.000Z
2020-11-05T18:41:58.000Z
henipipe/samTobed.py
moritzschaefer/henipipe
0723ead3c5c9dfa9a5c163caea4531e077d3a996
[ "MIT" ]
5
2020-08-21T08:24:26.000Z
2022-02-01T22:59:21.000Z
henipipe/samTobed.py
moritzschaefer/henipipe
0723ead3c5c9dfa9a5c163caea4531e077d3a996
[ "MIT" ]
3
2020-07-20T21:45:29.000Z
2020-10-06T12:00:21.000Z
#!/usr/bin/python import sys try: from collections import OrderedDict except ImportError: #python 2.6 or 3.6+ if sys.version_info >= (3,6): OrderedDict = dict else: from ordereddict import OrderedDict import os from itertools import groupby from subprocess import Popen, PIPE from io import...
37.309068
194
0.538493
3ea3148bc4720b1552b1edab91fe8b0ca0dad600
2,069
py
Python
src/main.py
JhonJBautistaB/challenge-python-02
acf71b332da7fa2f47bfa640ca730b46f1dc3f3b
[ "MIT" ]
null
null
null
src/main.py
JhonJBautistaB/challenge-python-02
acf71b332da7fa2f47bfa640ca730b46f1dc3f3b
[ "MIT" ]
null
null
null
src/main.py
JhonJBautistaB/challenge-python-02
acf71b332da7fa2f47bfa640ca730b46f1dc3f3b
[ "MIT" ]
null
null
null
# Resolve the problem!! import string import random SYMBOLS = list('!"#$%&\'()*+,-./:;?@[]^_`{|}~') LOWERCASE = list(string.ascii_lowercase) UPPERCASE = list(string.ascii_uppercase) DIGITS = list(string.digits) def generate_password(): # Start coding here password_sec = '' password = [] password_len ...
25.54321
91
0.581924
589a993273b3d5948296ca72097266ae37b4884e
19,916
py
Python
pkg/build/builder/ansible/callback/live.py
kayanme/werf
655dbdc5f5ddba6e604274d29ee3d885ed79559e
[ "Apache-2.0" ]
1
2022-03-29T23:00:43.000Z
2022-03-29T23:00:43.000Z
pkg/build/builder/ansible/callback/live.py
kayanme/werf
655dbdc5f5ddba6e604274d29ee3d885ed79559e
[ "Apache-2.0" ]
7
2021-09-17T13:42:27.000Z
2021-09-17T17:14:08.000Z
pkg/build/builder/ansible/callback/live.py
kayanme/werf
655dbdc5f5ddba6e604274d29ee3d885ed79559e
[ "Apache-2.0" ]
1
2021-09-22T04:29:43.000Z
2021-09-22T04:29:43.000Z
# -*- coding: utf-8 -*- # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = ty...
37.018587
129
0.593995
97ea9ffef8fd49a580ded669a1dd10014162c433
6,957
py
Python
math/math.py
donutloop/machine_learning_examples
46192a57e2dd194925ae76d6bfb169cd2af142dd
[ "MIT" ]
1
2018-10-08T18:24:40.000Z
2018-10-08T18:24:40.000Z
math/math.py
donutloop/machine_learning_examples
46192a57e2dd194925ae76d6bfb169cd2af142dd
[ "MIT" ]
null
null
null
math/math.py
donutloop/machine_learning_examples
46192a57e2dd194925ae76d6bfb169cd2af142dd
[ "MIT" ]
1
2018-10-09T06:50:48.000Z
2018-10-09T06:50:48.000Z
import math import numpy as np def basic_sigmoid(x): """ Compute sigmoid of x. Arguments: x -- A scalar Return: s -- sigmoid(x) """ s = 1 / (1+math.exp(-x)) return s def sigmoid(x): """ Compute the sigmoid of x Arguments: x -- A scalar or numpy array ...
25.577206
115
0.575248
c9d3428bb14877481ecdeaeaaae42ffe20282b24
2,373
py
Python
pysamss/gui/mayavi_qwidget.py
c-bruce/pysamss
b37206a39391e370da7ab367087ba3c2b29b1d9f
[ "MIT" ]
1
2020-05-02T18:47:50.000Z
2020-05-02T18:47:50.000Z
pysamss/gui/mayavi_qwidget.py
c-bruce/pysamss
b37206a39391e370da7ab367087ba3c2b29b1d9f
[ "MIT" ]
null
null
null
pysamss/gui/mayavi_qwidget.py
c-bruce/pysamss
b37206a39391e370da7ab367087ba3c2b29b1d9f
[ "MIT" ]
null
null
null
# Date: 16/06/2019 # Author: Callum Bruce # MayaviQWidget Class from tvtk.api import tvtk from tvtk.pyface.scene_editor import SceneEditor from mayavi import mlab from mayavi.tools.engine_manager import EngineManager from mayavi.tools.mlab_scene_model import MlabSceneModel from mayavi.core.ui.mayavi_scene import Mayav...
35.954545
147
0.705858
fff237644fbc4bbcef25e8d5ad15727f5e296024
546
py
Python
bot/models/RSVP.py
jjcf89/Tabletop-Bot
242aadda8c50a751cdef1615ce4cdd769b588400
[ "MIT" ]
3
2017-11-07T02:18:11.000Z
2020-11-06T02:21:46.000Z
bot/models/RSVP.py
jjcf89/Tabletop-Bot
242aadda8c50a751cdef1615ce4cdd769b588400
[ "MIT" ]
null
null
null
bot/models/RSVP.py
jjcf89/Tabletop-Bot
242aadda8c50a751cdef1615ce4cdd769b588400
[ "MIT" ]
5
2017-08-23T13:39:42.000Z
2021-03-04T11:23:12.000Z
from sqlalchemy import Column, Integer, ForeignKey from sqlalchemy.orm import relationship, backref from bot.Base import Base, Session session = Session() class RSVP(Base): __tablename__ = 'rsvps' id = Column(Integer(), primary_key=True) event_id = Column(Integer(), ForeignKey('events.id'), index=True)...
30.333333
76
0.721612
a009c69a47a51fbd0f210dbc1995683361ad6a70
794
py
Python
gcloud/taskflow3/__init__.py
gangh/bk-sops
29f4b4915be42650c2eeee637e0cf798e4066f09
[ "Apache-2.0" ]
1
2019-12-23T07:23:35.000Z
2019-12-23T07:23:35.000Z
gcloud/taskflow3/__init__.py
bk-sops/bk-sops
9f5950b13473bf7b5032528b20016b7a571bb3cd
[ "Apache-2.0" ]
9
2020-02-12T03:15:49.000Z
2021-06-10T22:04:51.000Z
gcloud/taskflow3/__init__.py
tanghaiyong1989/bk-sops-ce
7388914acc4004469982d6b5bf9cd7641bdf82f7
[ "Apache-2.0" ]
1
2022-01-17T11:32:05.000Z
2022-01-17T11:32:05.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
52.933333
115
0.792191
bcc6bb0be6e1557832a87972ca0d3f1911b8d328
10,094
py
Python
stewicombo/globals.py
USEPA/standardizedinventories
e3ba2b4056c6ae5252bf37690688c29bf674468f
[ "CC0-1.0" ]
14
2018-10-11T19:36:16.000Z
2022-03-31T18:23:28.000Z
stewicombo/globals.py
USEPA/standardizedinventories
e3ba2b4056c6ae5252bf37690688c29bf674468f
[ "CC0-1.0" ]
50
2018-07-25T14:04:12.000Z
2022-03-07T18:02:33.000Z
stewicombo/globals.py
USEPA/standardizedinventories
e3ba2b4056c6ae5252bf37690688c29bf674468f
[ "CC0-1.0" ]
13
2018-05-18T06:32:43.000Z
2021-09-22T19:17:46.000Z
# globals.py (stewicombo) # !/usr/bin/env python3 # coding=utf-8 """ Supporting variables and functions used in stewicombo """ import re import os import pandas as pd import chemicalmatcher import stewi from stewi.globals import log, set_stewi_meta, flowbyfacility_fields,\ WRITE_FORMAT from esupy.processed_data_mg...
41.2
84
0.665247
ce8860221dd99ed40ec1cf5777f77bed78b1c32a
16,866
py
Python
tests/MD/NM_FFopt_SpecFit2/FGrph_NMA_per.py
slamavl/QChemTool
b6b17adf6cfa8ac1db47acba93aab1ee49c1be47
[ "MIT" ]
null
null
null
tests/MD/NM_FFopt_SpecFit2/FGrph_NMA_per.py
slamavl/QChemTool
b6b17adf6cfa8ac1db47acba93aab1ee49c1be47
[ "MIT" ]
1
2018-01-03T12:08:41.000Z
2018-01-03T12:08:41.000Z
tests/MD/NM_FFopt_SpecFit2/FGrph_NMA_per.py
slamavl/QChemTool
b6b17adf6cfa8ac1db47acba93aab1ee49c1be47
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 17 16:27:58 2018 @author: Vladislav Sláma """ import numpy as np from scipy.optimize import minimize from QChemTool.General.units import conversion_facs_position as conv_pos from QChemTool.General.UnitsManager import position_units from QChemTool.QuantumChem.C...
51.264438
673
0.6589
403d89e2b8671d5ef941798e95bad2c29298db77
1,069
py
Python
test/test_fastqc.py
laperlej/geecq
fd91fb7bbde9913993cca1f8b4bc566c76a24284
[ "MIT" ]
null
null
null
test/test_fastqc.py
laperlej/geecq
fd91fb7bbde9913993cca1f8b4bc566c76a24284
[ "MIT" ]
null
null
null
test/test_fastqc.py
laperlej/geecq
fd91fb7bbde9913993cca1f8b4bc566c76a24284
[ "MIT" ]
null
null
null
""" use python -m unittest discover or python -m unittest test.test_fastqc from the main folder """ from geecq.fastqc import Fastqc import unittest import os ROOTDIR = os.path.dirname(__file__) class TestFastqc(unittest.TestCase): def is_loaded(self, fastqc): self.assertTrue(fastqc.name) self.as...
26.073171
78
0.68101
b037212fdf21ce2d0dc9981752a8b808ec13a645
13,183
py
Python
trunk/bin/queryipac.py
svalenti/agnkey
d44831a8ae72de0b2692da047994f67545185503
[ "MIT" ]
null
null
null
trunk/bin/queryipac.py
svalenti/agnkey
d44831a8ae72de0b2692da047994f67545185503
[ "MIT" ]
null
null
null
trunk/bin/queryipac.py
svalenti/agnkey
d44831a8ae72de0b2692da047994f67545185503
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import string import sys import datetime import agnkey import glob from agnkey.util import readkey3 from optparse import OptionParser description="> ingest 1m and 2m data " usage= '%prog -e epoch [-s stage -n name -f filter -d idnumber]\n available stages [wcs,psf,psfmag,zcat,abscat...
56.097872
120
0.518319
98605fa797ecc2121d6c44be2911aa569fb2a1c9
3,481
py
Python
pyfr/backends/hip/types.py
YuWangTAMU/PyFR
99ff5fe1ec1ff0dcefcf6222488c990c6839aac3
[ "BSD-3-Clause" ]
null
null
null
pyfr/backends/hip/types.py
YuWangTAMU/PyFR
99ff5fe1ec1ff0dcefcf6222488c990c6839aac3
[ "BSD-3-Clause" ]
null
null
null
pyfr/backends/hip/types.py
YuWangTAMU/PyFR
99ff5fe1ec1ff0dcefcf6222488c990c6839aac3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pyfr.backends.base as base from pyfr.util import make_pybuf class _HIPMatrixCommon(object): @property def _as_parameter_(self): return self.data class HIPMatrixBase(_HIPMatrixCommon, base.MatrixBase): def onalloc(self, basedata, offset): ...
27.409449
76
0.62913
f621ca64e22070a207ebf200f649e49ed5152ce6
13,413
py
Python
7.33.0.dev0/ietf/secr/telechat/tests.py
kesara/ietf-datatracker
dca3ee2ee98bcb75a10687587cf631750be34c79
[ "Unlicense" ]
null
null
null
7.33.0.dev0/ietf/secr/telechat/tests.py
kesara/ietf-datatracker
dca3ee2ee98bcb75a10687587cf631750be34c79
[ "Unlicense" ]
null
null
null
7.33.0.dev0/ietf/secr/telechat/tests.py
kesara/ietf-datatracker
dca3ee2ee98bcb75a10687587cf631750be34c79
[ "Unlicense" ]
null
null
null
# Copyright The IETF Trust 2013-2020, All Rights Reserved # -*- coding: utf-8 -*- import datetime from pyquery import PyQuery import debug # pyflakes:ignore from django.urls import reverse from ietf.doc.factories import (WgDraftFactory, IndividualRfcFactory, CharterFactory, IndividualDraftFactory, ConflictR...
52.394531
208
0.638261
f8841359ecd4d6865c8d475cd08108c55fe6a2cf
2,482
py
Python
MeasurementTool.py
NeverGET/FlatCAM
5d3d0f2166695687aa319cc56919c971adc82843
[ "MIT" ]
63
2016-02-24T20:42:58.000Z
2022-03-13T09:10:17.000Z
MeasurementTool.py
NeverGET/FlatCAM
5d3d0f2166695687aa319cc56919c971adc82843
[ "MIT" ]
7
2017-02-03T22:05:22.000Z
2022-03-01T21:16:26.000Z
MeasurementTool.py
NeverGET/FlatCAM
5d3d0f2166695687aa319cc56919c971adc82843
[ "MIT" ]
27
2016-02-24T20:42:58.000Z
2022-02-17T02:40:16.000Z
from PyQt4 import QtGui from FlatCAMTool import FlatCAMTool from copy import copy from math import sqrt class Measurement(FlatCAMTool): toolName = "Measurement Tool" def __init__(self, app): FlatCAMTool.__init__(self, app) # self.setContentsMargins(0, 0, 0, 0) self.layout.setMargin(...
32.233766
86
0.598711
69553acb483eaf7613d7e8f31eea08d073479607
2,364
py
Python
setup.py
rockneurotiko/mypy
45ff97ad6fe15a9c8043b479c7e7e277905067a8
[ "PSF-2.0" ]
null
null
null
setup.py
rockneurotiko/mypy
45ff97ad6fe15a9c8043b479c7e7e277905067a8
[ "PSF-2.0" ]
null
null
null
setup.py
rockneurotiko/mypy
45ff97ad6fe15a9c8043b479c7e7e277905067a8
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python import glob import os import os.path import sys from distutils.core import setup from mypy.version import __version__ if sys.version_info < (3, 2, 0): sys.stderr.write("ERROR: You need Python 3.2 or later to use mypy.\n") exit(1) version = __version__ description = 'Optional static typ...
31.52
76
0.634095
2e2a31ff8f03188ce760351c7e111694d09cfc7a
18,549
py
Python
app/models/game.py
PapaCharlie/SteamReviews
41a72c71314c93bf9ffdd3e17d66f4e458a2411b
[ "MIT" ]
null
null
null
app/models/game.py
PapaCharlie/SteamReviews
41a72c71314c93bf9ffdd3e17d66f4e458a2411b
[ "MIT" ]
null
null
null
app/models/game.py
PapaCharlie/SteamReviews
41a72c71314c93bf9ffdd3e17d66f4e458a2411b
[ "MIT" ]
null
null
null
from __future__ import print_function, division import csv import base64 import json import logging import numpy as np import os import requests import re import sys import time from . import Review from app import app from app.dynamodb import db, utils from app.utils import data_file, mallet_file from bs4 import Bea...
39.298729
98
0.638902
33994ce9082b27a5406e5c3b8bf76b12f2fd214e
1,240
py
Python
src/oci/dts/shipping_vendors_client_composite_operations.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/dts/shipping_vendors_client_composite_operations.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/dts/shipping_vendors_client_composite_operations.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
49.6
245
0.73629
69bb7acce6adf60bc567e9db3bb36e43f58947e7
5,101
py
Python
client/batteryclient/exceptions.py
martinjrobins/battery-api
c416bdf487f3d41901c7155245ffce7330bdc496
[ "BSD-3-Clause" ]
2
2021-11-11T11:03:22.000Z
2022-01-25T19:29:52.000Z
client/batteryclient/exceptions.py
martinjrobins/battery-api
c416bdf487f3d41901c7155245ffce7330bdc496
[ "BSD-3-Clause" ]
null
null
null
client/batteryclient/exceptions.py
martinjrobins/battery-api
c416bdf487f3d41901c7155245ffce7330bdc496
[ "BSD-3-Clause" ]
null
null
null
""" Battery Data API A standard API for accessing battery experiment datasets and metadata # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: martin.robinson@cs.ox.ac.uk Generated by: https://openapi-generator.tech """ class OpenApiException(Exception): """The base exception ...
31.68323
87
0.602431
605846073462da03170e44e31a9feefd77a73634
5,726
py
Python
yoloface.py
2black0/yoloface
4b918a8e2894919372c7aa15ffad68fbdba0a24c
[ "MIT" ]
null
null
null
yoloface.py
2black0/yoloface
4b918a8e2894919372c7aa15ffad68fbdba0a24c
[ "MIT" ]
null
null
null
yoloface.py
2black0/yoloface
4b918a8e2894919372c7aa15ffad68fbdba0a24c
[ "MIT" ]
null
null
null
# ******************************************************************* # # Author : Thanh Nguyen, 2018 # Email : sthanhng@gmail.com # Github : https://github.com/sthanhng # # BAP, AI Team # Face detection using the YOLOv3 algorithm # # Description : yoloface.py # The main code of the Face detection using the YOLOv3 alg...
37.92053
135
0.559553
7fe7e3878f789047758ce87958928a63e59e8310
2,876
py
Python
utils/nn/modules/linear.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
5
2020-04-29T08:48:53.000Z
2020-12-23T10:11:39.000Z
utils/nn/modules/linear.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
2
2020-01-11T08:31:06.000Z
2021-06-09T12:41:32.000Z
utils/nn/modules/linear.py
roshanr11/Research-DCST
225461e6ffd7ca5a48b9688946eb36b2d98f358e
[ "MIT" ]
5
2019-11-20T02:49:03.000Z
2020-09-17T15:27:34.000Z
import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.parameter import Parameter class BiLinear(nn.Module): ''' Bi-linear layer ''' def __init__(self, left_features, right_features, out_features, bias=True): ''' Args: ...
36.405063
108
0.624131
37b6075c1fc35dd885e86d9a9eded24ca60cc5bf
287
py
Python
wrapper/image.py
Mineshaft-game/RenderMite
4931d109ddebab1ef8efaa41816b9d1e8a52caef
[ "MIT" ]
null
null
null
wrapper/image.py
Mineshaft-game/RenderMite
4931d109ddebab1ef8efaa41816b9d1e8a52caef
[ "MIT" ]
5
2021-10-25T00:18:59.000Z
2022-01-18T01:16:26.000Z
wrapper/image.py
Mineshaft-game/RenderMite
4931d109ddebab1ef8efaa41816b9d1e8a52caef
[ "MIT" ]
1
2022-01-24T20:30:28.000Z
2022-01-24T20:30:28.000Z
import io import pygame def load(file, namehint = ""): if type(file) == str: return pygame.image.load(file) elif type(file) == io.TextIOWrapper: return pygame.image.load(file, namehint) def get_image_version(): return pygame.image.get_sdl_image_version()
23.916667
49
0.679443
88003852e3da45d5a6e8a02c16cd0aca00013ad3
14,790
py
Python
sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_hdfs_artifact.py
serhatYilmazz/argo-workflows
774bf47ee678ef31d27669f7d309dee1dd84340c
[ "Apache-2.0" ]
4
2021-12-10T19:52:34.000Z
2022-01-02T14:56:04.000Z
sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_hdfs_artifact.py
serhatYilmazz/argo-workflows
774bf47ee678ef31d27669f7d309dee1dd84340c
[ "Apache-2.0" ]
11
2022-01-28T18:30:16.000Z
2022-03-30T18:35:58.000Z
sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_hdfs_artifact.py
isubasinghe/argo-workflows
1a6e94f1d490e2265c977514d698a1ca70e14fe3
[ "Apache-2.0" ]
1
2022-02-08T03:02:02.000Z
2022-02-08T03:02:02.000Z
""" Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ...
48.333333
188
0.59378
e26ab0e76a6fa6dab088e87b23a7b83f188c4191
329
py
Python
vieglat/labsfinal.py
kosovojs/pywikibot-scripts
4a9bf5177ebcfbba719970f9f3b48fbd51831818
[ "MIT" ]
3
2021-10-03T17:27:43.000Z
2021-10-05T12:27:06.000Z
vieglat/labsfinal.py
kosovojs/pywikibot-scripts
4a9bf5177ebcfbba719970f9f3b48fbd51831818
[ "MIT" ]
null
null
null
vieglat/labsfinal.py
kosovojs/pywikibot-scripts
4a9bf5177ebcfbba719970f9f3b48fbd51831818
[ "MIT" ]
null
null
null
import pywikibot, re fileeopen = open('dsfsdfsdfsdfsdfsdfsdfsdfsdfsdfsd.txt','r', encoding='utf-8').read() site = pywikibot.Site("wikidata", "wikidata") articletitle = 'User:Edgars2007/IAAF' saglapa = pywikibot.Page(site,articletitle) saglapa.text = fileeopen saglapa.save(summary='upd', botflag=False, min...
29.909091
86
0.741641
090044cddfd15d47c1c86c28d4dc2895b596b05f
6,955
py
Python
sdk/python/pulumi_google_native/compute/beta/get_firewall_policy_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/compute/beta/get_firewall_policy_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/compute/beta/get_firewall_policy_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
56.544715
1,084
0.701941
ca6473ce3cf68f6d35e555aa84e0fa1c148f7554
3,955
py
Python
sdk/python/pulumi_gcp/monitoring/group.py
stack72/pulumi-gcp
e63e4ed3129fe8e64e4869f4839ba2b20f57cb57
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/monitoring/group.py
stack72/pulumi-gcp
e63e4ed3129fe8e64e4869f4839ba2b20f57cb57
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/monitoring/group.py
stack72/pulumi-gcp
e63e4ed3129fe8e64e4869f4839ba2b20f57cb57
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from .. import utilities, tables class Group(pulumi.CustomResource): ...
43.461538
383
0.675853
e0ccfb20fdeb49f975964ae40f16e30cbc37e733
14,628
py
Python
congress/datalog/database.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
50
2015-04-21T14:12:01.000Z
2020-06-01T06:23:13.000Z
congress/datalog/database.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
congress/datalog/database.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
25
2015-05-22T04:02:33.000Z
2020-01-14T12:15:12.000Z
# Copyright (c) 2015 VMware, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.333333
79
0.551682
32480ac77fa5b988b34fbbe7b0f6eeeb86df5ac5
7,364
py
Python
pypureclient/flasharray/FA_2_1/api/remote_pods_api.py
bdclark/py-pure-client
18f4e953708f98ffe585ff79e4938c0156e32ded
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_1/api/remote_pods_api.py
bdclark/py-pure-client
18f4e953708f98ffe585ff79e4938c0156e32ded
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_1/api/remote_pods_api.py
bdclark/py-pure-client
18f4e953708f98ffe585ff79e4938c0156e32ded
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # pyth...
51.138889
671
0.666893
63481a289260eeac9e60a41f0786d12db1e98581
10,421
py
Python
conservation/alignment_based/multiple_sequence_alignment.py
siret/prankweb
e36f1ca5cfbce2f8aa8dc89c04add0b4c550c266
[ "Apache-2.0" ]
2
2019-10-15T11:09:30.000Z
2019-10-15T20:31:52.000Z
conservation/alignment_based/multiple_sequence_alignment.py
siret/p2rank-web
e36f1ca5cfbce2f8aa8dc89c04add0b4c550c266
[ "Apache-2.0" ]
23
2019-09-25T10:25:16.000Z
2020-10-06T12:49:25.000Z
conservation/alignment_based/multiple_sequence_alignment.py
siret/prankweb
e36f1ca5cfbce2f8aa8dc89c04add0b4c550c266
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Given a sequence in a FASTA file compute MSA. # # Workflow: # input-sequence.fasta # psiblast -> _execute_psiblast # Query for similar proteins. # psiblast-filtered -> _filter_psiblast_file # ...
35.566553
80
0.638518
2f70eccff16b746af932489e160e77cf949838fa
9,037
py
Python
Functions/Four/SplitET.py
trngb/watools
57b9074d59d856886675aa26014bfd6673d5da76
[ "Apache-2.0" ]
11
2018-09-25T08:58:26.000Z
2021-02-13T18:58:05.000Z
Functions/Four/SplitET.py
trngbich/watools
57b9074d59d856886675aa26014bfd6673d5da76
[ "Apache-2.0" ]
1
2020-07-03T02:36:41.000Z
2021-03-21T22:20:47.000Z
Functions/Four/SplitET.py
trngbich/watools
57b9074d59d856886675aa26014bfd6673d5da76
[ "Apache-2.0" ]
16
2018-09-28T22:55:11.000Z
2021-02-22T13:03:56.000Z
# -*- coding: utf-8 -*- """ Authors: Bert Coerver, Tim Hessels UNESCO-IHE 2017 Contact: t.hessels@unesco-ihe.org Repository: https://github.com/wateraccounting/watools Module: Function/Four """ # import general python modules import pandas as pd import numpy as np import os def Blue_Green(Dir_Basin, nc_outna...
40.891403
255
0.674781
173854c081f9143e3c09bdf01040e6da0dbafdfb
186
py
Python
utilities/csv_to_json.py
sachinio/redalert
b50d65757e80ec10c5fa220133c5206ea50a2c46
[ "MIT" ]
3
2015-08-03T22:26:36.000Z
2020-03-30T04:19:26.000Z
utilities/csv_to_json.py
sachinio/redalert
b50d65757e80ec10c5fa220133c5206ea50a2c46
[ "MIT" ]
1
2015-10-19T06:39:21.000Z
2015-10-19T06:39:21.000Z
utilities/csv_to_json.py
sachinio/redalert
b50d65757e80ec10c5fa220133c5206ea50a2c46
[ "MIT" ]
5
2015-10-08T22:48:45.000Z
2020-03-30T04:19:27.000Z
__author__ = 'sachinpatney' import json import sys sys.path.append('/var/www/git/redalert/tasks') from common import read_csv_as_list print(json.dumps(read_csv_as_list(sys.argv[1])))
18.6
48
0.784946
2ef0a9066f762c849cae39c9ff6147d74bab1e90
3,683
py
Python
python/verkefni4/src/setup.py
asgeir/old-school-projects
96a502589c627e4556f9ee14fc1dc21ed53ce28a
[ "MIT" ]
null
null
null
python/verkefni4/src/setup.py
asgeir/old-school-projects
96a502589c627e4556f9ee14fc1dc21ed53ce28a
[ "MIT" ]
null
null
null
python/verkefni4/src/setup.py
asgeir/old-school-projects
96a502589c627e4556f9ee14fc1dc21ed53ce28a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # Always prefer setuptools over distutils from codecs import open # To use a consistent encoding from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8...
35.413462
91
0.662775
041c0b54433e26b701db4ae385a86c9ba9abfc1b
1,133
py
Python
recpkg/preprocessing.py
mianuddin/csc492_recommender_pkg
3c89bb1f4ef2a34ed4f9bb6a99ae623eaee1954b
[ "MIT" ]
null
null
null
recpkg/preprocessing.py
mianuddin/csc492_recommender_pkg
3c89bb1f4ef2a34ed4f9bb6a99ae623eaee1954b
[ "MIT" ]
null
null
null
recpkg/preprocessing.py
mianuddin/csc492_recommender_pkg
3c89bb1f4ef2a34ed4f9bb6a99ae623eaee1954b
[ "MIT" ]
null
null
null
import numpy as np from tensorflow import keras from tensorflow.keras.layers.experimental \ import preprocessing # pylint: disable=no-name-in-module def get_standard_layers(values, name=None): """Returns input layer and standard preprocessing layers for given values. Returns the input and preprocessing ...
34.333333
78
0.724625
8ad63e286943d9fd994f721ae82a76f3ecb4f51f
2,474
py
Python
djaio/core/logs.py
domclick/djaio
f69f70e575f72fd3679ecf7fdb53f4531d20a590
[ "Apache-2.0" ]
5
2019-02-19T10:36:52.000Z
2021-02-19T22:58:21.000Z
djaio/core/logs.py
resslerruntime/djaio
f69f70e575f72fd3679ecf7fdb53f4531d20a590
[ "Apache-2.0" ]
2
2021-02-26T02:12:45.000Z
2022-01-21T18:56:26.000Z
djaio/core/logs.py
resslerruntime/djaio
f69f70e575f72fd3679ecf7fdb53f4531d20a590
[ "Apache-2.0" ]
1
2021-12-11T03:26:30.000Z
2021-12-11T03:26:30.000Z
# -*- coding: utf-8 -*- import sys import logging.config from djaio.core.utils import deep_merge class ColoredFormatter(logging.Formatter): RESET = '\x1B[0m' RED = '\x1B[31m' YELLOW = '\x1B[33m' BRGREEN = '\x1B[01;32m' # grey in solarized for terminals def format(self, record, color=False): ...
27.488889
115
0.559418
6faaf910de85d0185f1f18874c7dfef1be0bac03
3,547
py
Python
setup.py
MarcelWaldvogel/parsedmarc
3f1e25e315ae4bf7b309a75f89bc6648cc0a81b4
[ "Apache-2.0" ]
1
2021-05-13T22:16:31.000Z
2021-05-13T22:16:31.000Z
setup.py
MarcelWaldvogel/parsedmarc
3f1e25e315ae4bf7b309a75f89bc6648cc0a81b4
[ "Apache-2.0" ]
null
null
null
setup.py
MarcelWaldvogel/parsedmarc
3f1e25e315ae4bf7b309a75f89bc6648cc0a81b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup # To use a consistent encoding from codecs import open from...
32.842593
79
0.624753
91bce08192d2c7ea591aa55755397e94e8d83ad7
252
py
Python
check_test_plan_gen.py
warmchang/sieve
57c2fa7d773ee344d517794f53730548f574cd3f
[ "BSD-2-Clause" ]
null
null
null
check_test_plan_gen.py
warmchang/sieve
57c2fa7d773ee344d517794f53730548f574cd3f
[ "BSD-2-Clause" ]
null
null
null
check_test_plan_gen.py
warmchang/sieve
57c2fa7d773ee344d517794f53730548f574cd3f
[ "BSD-2-Clause" ]
null
null
null
from evaluation_sanity_check import check, generate import sys current_dir = "log" previous_dir = sys.argv[1] generate.generate_test_plan_stat() check.check_massive_testing_results(current_dir, previous_dir) check.check_bug_reproduction_test_plans()
25.2
62
0.853175
306d4f7d8a5e00da4952af0da2f3f6286145a106
3,553
py
Python
deploy/cassandra_restore_v2.py
surabhi-mahawar/sunbird-devops
1b0f4f5aaabd3f9b5a2c16da2a1df0df436be490
[ "MIT" ]
51
2017-07-05T12:52:17.000Z
2021-12-16T11:35:59.000Z
deploy/cassandra_restore_v2.py
surabhi-mahawar/sunbird-devops
1b0f4f5aaabd3f9b5a2c16da2a1df0df436be490
[ "MIT" ]
338
2017-09-21T10:18:19.000Z
2022-03-31T11:26:13.000Z
deploy/cassandra_restore_v2.py
surabhi-mahawar/sunbird-devops
1b0f4f5aaabd3f9b5a2c16da2a1df0df436be490
[ "MIT" ]
531
2017-08-10T10:47:41.000Z
2022-03-31T06:43:32.000Z
#!/usr/bin/env python3 # This program will copy the snapshots to cassandra data directory # This program will only work in linux, as it's utilizing 'cp' for copying as shutil and copy_tree # are not handling hardlink, existing directory combo. # # Author Rajesh Rajendran <rjshrjndrn@gmail.com> # Restore process is bas...
48.671233
145
0.741345
9ad4ff6187b1020ee6f82af7b5e6ab7983a21d38
3,502
py
Python
easy_comment/views.py
r26zhao/django-easy-comment
f9ef4a2a8a567c7f08d0059c4b5550fa735de34d
[ "MIT" ]
318
2017-07-16T04:01:14.000Z
2021-10-08T06:16:16.000Z
easy_comment/views.py
r26zhao/django-easy-comment
f9ef4a2a8a567c7f08d0059c4b5550fa735de34d
[ "MIT" ]
2
2018-05-17T15:27:13.000Z
2019-11-26T09:04:32.000Z
easy_comment/views.py
r26zhao/django-easy-comment
f9ef4a2a8a567c7f08d0059c4b5550fa735de34d
[ "MIT" ]
64
2017-08-05T13:31:33.000Z
2020-05-30T08:07:04.000Z
from django.apps import apps from django.conf import settings from django.http import JsonResponse from django.views.decorators.http import require_POST from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger, InvalidPage from django.contrib.con...
37.255319
92
0.674757
c8939a9b92e4c12fc4076e391c836240507aab50
45,430
py
Python
tests/functional/samples/test_samples_linux_runtime.py
ravi9/docker_ci
895aacc4eec6158526f63a4de25af0c0bc369c1f
[ "Apache-2.0" ]
null
null
null
tests/functional/samples/test_samples_linux_runtime.py
ravi9/docker_ci
895aacc4eec6158526f63a4de25af0c0bc369c1f
[ "Apache-2.0" ]
null
null
null
tests/functional/samples/test_samples_linux_runtime.py
ravi9/docker_ci
895aacc4eec6158526f63a4de25af0c0bc369c1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2019-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from utils.exceptions import FailedTestError @pytest.mark.usefixtures('_is_image_os', '_is_distribution', '_is_package_url_specified') @pytest.mark.parametrize('_is_image_os', [('ubuntu18', 'ubuntu...
58.923476
114
0.593198
637dfcdef64e1cea794885acf560cb22322023d1
28,997
py
Python
pyofx/ofx_property_defs.py
davebarkeruk/pyofx
1f5b637a4036a476d29c4ef05a14902ad2b6aa58
[ "MIT" ]
5
2020-09-09T07:05:24.000Z
2020-12-28T08:34:56.000Z
pyofx/ofx_property_defs.py
davebarkeruk/pyofx
1f5b637a4036a476d29c4ef05a14902ad2b6aa58
[ "MIT" ]
12
2020-08-26T23:35:11.000Z
2020-09-02T15:55:42.000Z
pyofx/ofx_property_defs.py
davebarkeruk/pyofx
1f5b637a4036a476d29c4ef05a14902ad2b6aa58
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # # Copyright 2020 by David Barker. # All rights reserved. # This file is part of pyofx the Python3 based OpenFX plugin render host, # and is released under the "MIT License Agreement". Please see the LICENSE # file that should have been included as part of this package. OFX_PROPERTY_DEFS = { '...
27.668893
75
0.490361
d69439129e4a86cac2b1b658429e6bd692fa9a98
1,045
py
Python
autoPoster.py
Xlarchs/facebook-auto-post-automation
8dc2e59e2a8e4ae6c3d1318b5b114430bffe5fd0
[ "Apache-2.0" ]
null
null
null
autoPoster.py
Xlarchs/facebook-auto-post-automation
8dc2e59e2a8e4ae6c3d1318b5b114430bffe5fd0
[ "Apache-2.0" ]
null
null
null
autoPoster.py
Xlarchs/facebook-auto-post-automation
8dc2e59e2a8e4ae6c3d1318b5b114430bffe5fd0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import pyperclip import pyautogui import time import string string="your text" #string text f = open('groups.txt','r') #Group id must be in text file example:121545789562 groups=[] for line in f: groups.append(line.strip()) time.sleep(5) pyautogui.ke...
21.326531
79
0.626794
311f39eade6c3b4e1231940c7175f8f454a62484
3,511
py
Python
shopyo/api/tests/test_models.py
xdshivani/shopyo
11a4a95968c50feb90bcb396c33b0e41c20025a3
[ "MIT" ]
235
2019-06-30T22:21:29.000Z
2022-03-31T06:12:12.000Z
shopyo/api/tests/test_models.py
xdshivani/shopyo
11a4a95968c50feb90bcb396c33b0e41c20025a3
[ "MIT" ]
441
2019-06-26T20:07:58.000Z
2021-05-05T17:44:23.000Z
shopyo/api/tests/test_models.py
rehmanis/shopyo2
3e26602149f09aa4c13a1b4b6fba296bd82af99f
[ "MIT" ]
157
2019-06-26T22:30:39.000Z
2022-03-22T09:06:24.000Z
""" Tests all db utilities such as CRUDMixin defined under shopapi/models.py Most of the test cases taken from: https://github.com/cookiecutter-flask/cookiecutter-flask """ import pytest from flask_login import UserMixin from init import db from shopyo.api.models import PkModel class ExampleUserModel(PkModel, UserMi...
32.813084
79
0.636856
eed23a572e7f04803af648f771d88f80bb64fb0a
1,517
py
Python
qiskit/extensions/standard/iden.py
rickyHong/qiskit-terra-repl
ded4f8f578d67ca5b26dda74cacfa7553f2c0299
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/iden.py
rickyHong/qiskit-terra-repl
ded4f8f578d67ca5b26dda74cacfa7553f2c0299
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/iden.py
rickyHong/qiskit-terra-repl
ded4f8f578d67ca5b26dda74cacfa7553f2c0299
[ "Apache-2.0" ]
1
2019-06-13T08:07:26.000Z
2019-06-13T08:07:26.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
26.155172
77
0.627554
164e7dba62f7fd692eab20116274bbd815b67bcd
15,572
py
Python
tests/test_new_datastructures.py
jjlawren/pysonos
fc8f37036d207523bf7843b7063608373c3f1e27
[ "MIT" ]
8
2019-02-17T11:54:56.000Z
2021-07-13T06:26:25.000Z
tests/test_new_datastructures.py
jjlawren/pysonos
fc8f37036d207523bf7843b7063608373c3f1e27
[ "MIT" ]
28
2018-09-22T10:47:11.000Z
2021-06-14T20:42:31.000Z
tests/test_new_datastructures.py
jjlawren/pysonos
fc8f37036d207523bf7843b7063608373c3f1e27
[ "MIT" ]
13
2019-04-04T08:13:00.000Z
2021-05-17T07:22:23.000Z
"""Module to test the data structure classes with pytest.""" import pytest from pysonos import data_structures from pysonos.exceptions import DIDLMetadataError from pysonos.xml import XML def assert_xml_equal(left, right, explain=None): """Helper function for comparing XML elements. Causes useful informat...
38.449383
88
0.596006
90bd31761472accd9683628487079048ee343a72
5,163
py
Python
forest/navigate.py
SGallagherMet/forest
e3fa392b3f874e3439539007275ab6a1770ef53f
[ "BSD-3-Clause" ]
null
null
null
forest/navigate.py
SGallagherMet/forest
e3fa392b3f874e3439539007275ab6a1770ef53f
[ "BSD-3-Clause" ]
null
null
null
forest/navigate.py
SGallagherMet/forest
e3fa392b3f874e3439539007275ab6a1770ef53f
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import fnmatch import glob import os from .exceptions import ( InitialTimeNotFound, ValidTimesNotFound, PressuresNotFound) from forest import ( db, gridded_forecast, ghrsstl4, unified_model, eida50, rdt, intake_loader, ...
34.885135
77
0.595197
8e84157197a7f125b9787673196a4202b93b1de3
516
py
Python
0-notes/job-search/Cracking_the_Coding_Interview/C06MathLogicPuzzles/questions/6.7-question.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking_the_Coding_Interview/C06MathLogicPuzzles/questions/6.7-question.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking_the_Coding_Interview/C06MathLogicPuzzles/questions/6.7-question.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# 6.7 The Apocalypse # In the new post-apocalyptic world, the world queen is desperately concerned about the birth rate. # Therefore, she decrees that all families abide by this policy. # That is, they have to continue to have children until they have 1 girl, at which point they immediately stop. # What will the gend...
46.909091
111
0.775194
17722e3bc1c08c98b0dac62383cb7a940508bd43
13,499
py
Python
scrapeNHL.py
dradeng/DefaceTheHouse
ae95c82f692eb1e68a015610439c5edf610b37ae
[ "MIT" ]
null
null
null
scrapeNHL.py
dradeng/DefaceTheHouse
ae95c82f692eb1e68a015610439c5edf610b37ae
[ "MIT" ]
null
null
null
scrapeNHL.py
dradeng/DefaceTheHouse
ae95c82f692eb1e68a015610439c5edf610b37ae
[ "MIT" ]
null
null
null
import requests import json import pymongo from bs4 import BeautifulSoup ''' Oddsshark SCRAPE SECTION ''' URL = 'https://www.oddsshark.com/ncaab/middle-tennessee-north-texas-odds-march-10-2021-1389706' espnURL = 'https://www.espn.com/mens-college-basketball/game?gameId=401301264' page = requests.get(URL) soup = Beau...
34.524297
302
0.770353
a06105bee26990547cedf749ae0dd05a53aa6b96
4,963
py
Python
Schweinchenstempel.py
polarwinkel/Schweinchenstempel
b3acc351fce90186f2264325e56ff9edcb0f21c5
[ "WTFPL" ]
null
null
null
Schweinchenstempel.py
polarwinkel/Schweinchenstempel
b3acc351fce90186f2264325e56ff9edcb0f21c5
[ "WTFPL" ]
null
null
null
Schweinchenstempel.py
polarwinkel/Schweinchenstempel
b3acc351fce90186f2264325e56ff9edcb0f21c5
[ "WTFPL" ]
null
null
null
#!/bin/python3 # This file is part of the free Software Schweinchenstempel. # It is (c) 2018 under the WTFPL Version 2.0: # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # Version 2, December 2004 # #Copyright (C) 2018 Dirk Winkel <it@polarwinkel.de> # #Everyone is permitted to copy and dist...
39.704
168
0.632279
c5022dd1bf26d72429d2e84f3c7e062e3a26beff
139
py
Python
seven_eleven.py
lxgreen/seven_eleven
4562aac7565ac642157ec979d9ca3b8bb876693f
[ "MIT" ]
null
null
null
seven_eleven.py
lxgreen/seven_eleven
4562aac7565ac642157ec979d9ca3b8bb876693f
[ "MIT" ]
null
null
null
seven_eleven.py
lxgreen/seven_eleven
4562aac7565ac642157ec979d9ca3b8bb876693f
[ "MIT" ]
null
null
null
from app.app import SevenElevenApp def main(): app = SevenElevenApp(None) app.mainloop() if __name__ == '__main__': main()
12.636364
34
0.654676
bf868a4a98850e25063bdb4f5985799eb08b693d
511
py
Python
blood/migrations/0005_subs.py
nikhilxifer/bloodbankmanagement
a31ce090c33fa2499f26ec685220d207d9f08394
[ "MIT" ]
null
null
null
blood/migrations/0005_subs.py
nikhilxifer/bloodbankmanagement
a31ce090c33fa2499f26ec685220d207d9f08394
[ "MIT" ]
null
null
null
blood/migrations/0005_subs.py
nikhilxifer/bloodbankmanagement
a31ce090c33fa2499f26ec685220d207d9f08394
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-16 12:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blood', '0004_bloodrequest_date'), ] operations = [ migrations.CreateModel( name='Subs', fields=[ ('...
24.333333
114
0.577299
46f4ab2fceaa2382d421f8743b76c520a16d3cdc
2,806
py
Python
macdaily/cls/logging/brew.py
JarryShaw/MacDaily
853b841dd1f1f7e6aae7bf2c305ff008bc76055c
[ "BSD-3-Clause" ]
10
2018-09-20T19:57:56.000Z
2021-11-14T18:28:10.000Z
macdaily/cls/logging/brew.py
JarryShaw/jsdaily
3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d
[ "BSD-3-Clause" ]
2
2020-05-31T08:49:47.000Z
2021-12-28T16:57:42.000Z
macdaily/cls/logging/brew.py
JarryShaw/jsdaily
3ca7aa7c75a12dc08ab44f78af2b089e1ed41d3d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import shutil import sys import tempfile import traceback from macdaily.cmd.logging import LoggingCommand from macdaily.core.brew import BrewCommand from macdaily.util.compat import subprocess from macdaily.util.const.term import bold, flash, purple_bg, red, red_bg, reset, under from...
41.264706
149
0.652174
cf8bf36873c0c524cc8498b0a8262ac0246c8a72
424
py
Python
app/src/test.py
mikkohei13/Loxpyt
78aaeb5fcd637a063e8f183b97b82150f4cbc376
[ "MIT" ]
1
2022-02-24T09:49:39.000Z
2022-02-24T09:49:39.000Z
app/src/test.py
mikkohei13/Loxpyt
78aaeb5fcd637a063e8f183b97b82150f4cbc376
[ "MIT" ]
8
2021-03-31T19:30:40.000Z
2022-03-12T00:04:55.000Z
app/src/test.py
mikkohei13/Loxpyt
78aaeb5fcd637a063e8f183b97b82150f4cbc376
[ "MIT" ]
null
null
null
import split_and_spectro import profile monoFilePath = "/_source_audio/noordwijk/Data/5DB0D594.WAV" exportDir = "_exports/test" directory = "noordwijk" tempFileName = "5DB0D594.WAV" segments = 1; segmentMetaGenerator = split_and_spectro.parseFile(monoFilePath, exportDir, directory, tempFileName, segments, 10) # pro...
30.285714
114
0.806604
cd7031326e48283b4f9f8bb9ba3c9e3a11e5b82f
35,664
py
Python
Python2.7-IDCard_Detect_by_AI/tencentcloud/cam/v20190116/cam_client.py
tencentyun/scf-demo-repo
c75f9b9e8be8d079f0510b14fb0c7098d0b6bb7e
[ "Python-2.0", "OLDAP-2.7" ]
46
2019-03-01T02:19:18.000Z
2021-12-18T12:37:02.000Z
tencentcloud/cam/v20190116/cam_client.py
RedheatWei/tencentcloud-sdk-python
140d4e60e8bdd89f3e5ae1d8aef0bfe4fa999521
[ "Apache-2.0" ]
8
2019-01-22T10:46:43.000Z
2020-12-30T13:03:04.000Z
tencentcloud/cam/v20190116/cam_client.py
RedheatWei/tencentcloud-sdk-python
140d4e60e8bdd89f3e5ae1d8aef0bfe4fa999521
[ "Apache-2.0" ]
67
2018-10-29T09:50:49.000Z
2022-01-06T07:35:56.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
39.93729
98
0.583558
acde83f1e89313ed5d465cb1b6da92d21caa47e1
1,200
py
Python
tumor-prediction.py
mlatmd/intro-to-ml
515e8fc8955b7d5289064c4d7b9e21d3e0a16351
[ "MIT" ]
2
2017-10-26T23:12:46.000Z
2017-10-27T02:43:48.000Z
tumor-prediction.py
mlatmd/intro-to-ml
515e8fc8955b7d5289064c4d7b9e21d3e0a16351
[ "MIT" ]
null
null
null
tumor-prediction.py
mlatmd/intro-to-ml
515e8fc8955b7d5289064c4d7b9e21d3e0a16351
[ "MIT" ]
1
2018-03-13T04:20:32.000Z
2018-03-13T04:20:32.000Z
import pandas import numpy from sklearn import ensemble from sklearn.model_selection import train_test_split # Read in the breast cancer data.csv data = pandas.read_csv("data.csv", header=0) # Take a look at pandas dataframe format # print(data.head()) # Data cleaning mapping = {'M' : 0, 'B' : 1} data['diagnosis'] =...
34.285714
150
0.7925
a0955de6a28b5bd8490a15a8f210f1106d98fe19
326
py
Python
source/extraits/devine-nombre.py
gruiick/cours-python
0b845093e0029dc116c62b110586001d3fab39ea
[ "CC-BY-4.0" ]
null
null
null
source/extraits/devine-nombre.py
gruiick/cours-python
0b845093e0029dc116c62b110586001d3fab39ea
[ "CC-BY-4.0" ]
4
2021-05-05T17:22:20.000Z
2021-05-10T15:47:26.000Z
source/extraits/devine-nombre.py
gruiick/cours-python
0b845093e0029dc116c62b110586001d3fab39ea
[ "CC-BY-4.0" ]
1
2021-05-05T16:32:47.000Z
2021-05-05T16:32:47.000Z
import random nombre_secret = random.randint(0, 100) print("devine le nombre auquel je pense entre 0 et 100") entrée_utilisateur = int(input()) while True: if entrée_utilisateur == nombre_secret: print("bravo") break else: print("mauvaise réponse") entrée_utilisateur = int(inp...
21.733333
56
0.668712
1424ffbed2799c1242dc81bc6dc72710c8143ea2
3,029
py
Python
svg_ultralight/constructors/new_element.py
ShayHill/svg_ultralight
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
1
2019-10-26T01:49:58.000Z
2019-10-26T01:49:58.000Z
svg_ultralight/constructors/new_element.py
ShayHill/svg_writer
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
1
2020-01-29T13:15:58.000Z
2020-02-03T14:30:13.000Z
svg_ultralight/constructors/new_element.py
ShayHill/svg_ultralight
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ """SVG Element constructors. Create an svg element from a dictionary. :author: Shay Hill :created: 1/31/2020 This is principally to allow passing values, rather than strings, as svg element parameters. Will translate ``stroke_width=10`` to ``stroke-width="10"`` """ imp...
26.570175
80
0.654011
5a0497f22755078e8c7a7af4dce638fbb2267d17
2,355
py
Python
assets/utils.py
andremargarin/digital-asset-management-api
6ff6735754a994b87f4b8f0051e83532785fab01
[ "MIT" ]
null
null
null
assets/utils.py
andremargarin/digital-asset-management-api
6ff6735754a994b87f4b8f0051e83532785fab01
[ "MIT" ]
null
null
null
assets/utils.py
andremargarin/digital-asset-management-api
6ff6735754a994b87f4b8f0051e83532785fab01
[ "MIT" ]
null
null
null
""" Utils functions """ from django.conf import settings from django.core.files import File as DjangoFile from moviepy.tools import extensions_dict from moviepy.editor import VideoFileClip, AudioFileClip from .models import AssetFile, AssetFilePart def generate_time_frames(clip_duration, frame_size): if (clip_dur...
32.260274
79
0.689597
e4b7cc7e0db1834ca38811869b401d96ea51974e
6,701
py
Python
tensorflow_probability/python/math/psd_kernels/internal/util_test.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/psd_kernels/internal/util_test.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/psd_kernels/internal/util_test.py
matthieucoquet/probability
2426f4fc4743ceedc1a638a03d19ce6654ebff76
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
38.734104
80
0.689151
9a33146a1b3baf75e9adea63b1d4684ec38875bb
692
py
Python
det3d/torchie/trainer/hooks/checkpoint.py
reinforcementdriving/CIA-SSD
f7b4a9ed4a2b852845303efc6c972125438817a6
[ "Apache-2.0" ]
382
2020-12-05T06:46:28.000Z
2022-03-29T17:40:58.000Z
det3d/torchie/trainer/hooks/checkpoint.py
reinforcementdriving/CIA-SSD
f7b4a9ed4a2b852845303efc6c972125438817a6
[ "Apache-2.0" ]
28
2020-12-08T07:50:57.000Z
2022-03-20T03:54:43.000Z
det3d/torchie/trainer/hooks/checkpoint.py
reinforcementdriving/CIA-SSD
f7b4a9ed4a2b852845303efc6c972125438817a6
[ "Apache-2.0" ]
57
2020-12-10T02:19:03.000Z
2022-03-19T09:49:38.000Z
from ..utils import master_only from .hook import Hook class CheckpointHook(Hook): def __init__(self, interval=1, save_optimizer=True, out_dir=None, **kwargs): ''' checkpoint_config = dict(interval=1) ''' self.interval = interval self.save_optimizer = save_optimizer ...
28.833333
94
0.648844
f460bff3e5df184449bab4a9963170230007ffd8
287
py
Python
make_sine.py
abulovic/mega-chaos
8fd18bed0421a84d2e116a347970b6f99b614fa0
[ "Apache-2.0" ]
1
2015-12-28T16:35:03.000Z
2015-12-28T16:35:03.000Z
make_sine.py
abulovic/mega-chaos
8fd18bed0421a84d2e116a347970b6f99b614fa0
[ "Apache-2.0" ]
null
null
null
make_sine.py
abulovic/mega-chaos
8fd18bed0421a84d2e116a347970b6f99b614fa0
[ "Apache-2.0" ]
null
null
null
import numpy as np from random import random t = np.arange(0., 1000., 0.1) sine = np.sin(t) + np.random.rand(10000,) / 5. + np.sin(0.09 * t) with open('sine.txt', 'w') as fout: fout.write(','.join(map(lambda x: str(x), sine))) import matplotlib.pyplot as plt plt.plot(sine) plt.show()
26.090909
65
0.655052
297ab0d8f6bf9675fcc92bee2d1b570d30d64434
6,502
py
Python
raiden/tests/integration/test_balance_proof_check.py
manuelwedler/raiden
7902a9559ea4498be74504e8283d1f9f733eafa8
[ "MIT" ]
null
null
null
raiden/tests/integration/test_balance_proof_check.py
manuelwedler/raiden
7902a9559ea4498be74504e8283d1f9f733eafa8
[ "MIT" ]
null
null
null
raiden/tests/integration/test_balance_proof_check.py
manuelwedler/raiden
7902a9559ea4498be74504e8283d1f9f733eafa8
[ "MIT" ]
null
null
null
import pytest from raiden import waiting from raiden.api.python import RaidenAPI from raiden.constants import EMPTY_BALANCE_HASH, EMPTY_HASH, EMPTY_SIGNATURE from raiden.storage.sqlite import RANGE_ALL_STATE_CHANGES from raiden.tests.integration.network.proxies import BalanceProof from raiden.tests.utils.detect_failur...
39.406061
99
0.751
2d3bf6896577eb6a71ad93dc7c3d5cb552e6d7a4
132
py
Python
apps/dendynotdead/urls.py
deniskrumko/dendynotdead
d1fd8b32cf2065413c19799f45487ed317b85eb1
[ "MIT" ]
null
null
null
apps/dendynotdead/urls.py
deniskrumko/dendynotdead
d1fd8b32cf2065413c19799f45487ed317b85eb1
[ "MIT" ]
null
null
null
apps/dendynotdead/urls.py
deniskrumko/dendynotdead
d1fd8b32cf2065413c19799f45487ed317b85eb1
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import IndexView urlpatterns = [ url('^$', IndexView.as_view(), name='index'), ]
16.5
49
0.681818
6aeb373c56fef8fa62ace3104b04a19ccbc9bb48
2,630
py
Python
rllib/agents/marwil/marwil.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
3
2020-12-03T17:48:45.000Z
2022-01-22T08:09:46.000Z
rllib/agents/marwil/marwil.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
3
2019-02-22T01:49:57.000Z
2019-07-14T03:16:11.000Z
rllib/agents/marwil/marwil.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
1
2021-10-11T22:53:49.000Z
2021-10-11T22:53:49.000Z
from ray.rllib.agents.trainer import with_common_config from ray.rllib.agents.trainer_template import build_trainer from ray.rllib.agents.marwil.marwil_tf_policy import MARWILTFPolicy from ray.rllib.execution.replay_ops import SimpleReplayBuffer, Replay, \ StoreToReplayBuffer from ray.rllib.execution.rollout_ops im...
35.540541
77
0.738403
d7f3d8659adebf6aa0b3e4d82991353264719fee
2,275
py
Python
evd_ros_backend/evd_ros_core/src/evd_script/program_nodes/machine_primitive.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_script/program_nodes/machine_primitive.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_script/program_nodes/machine_primitive.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
''' Machine Primitive extends primitive to simplify the later definition of specific machine primitives. A machine primitive is a way to generalize machine behavior in EvD. The actual behavior needs to be supplied externally and is hooked into the EvD program runner. ''' from .primitive import Primitive from ..data_n...
28.797468
100
0.627692
645f659d548deb3d9266098659cef64e639df409
20,953
py
Python
samples/python/stitching_detailed.py
GArlington/opencv
077193632278b8a83716ee69044965ac7cb0b2c4
[ "BSD-3-Clause" ]
2
2019-04-08T14:25:23.000Z
2022-02-23T15:01:02.000Z
samples/python/stitching_detailed.py
saichandrareddy1/opencv
40da61a314cef5aeb12ae4b4f05ab47fa5286d21
[ "BSD-3-Clause" ]
null
null
null
samples/python/stitching_detailed.py
saichandrareddy1/opencv
40da61a314cef5aeb12ae4b4f05ab47fa5286d21
[ "BSD-3-Clause" ]
null
null
null
"""Rotation model images stitcher. stitching_detailed img1 img2 [...imgN] [flags] Flags: --preview Run stitching in the preview mode. Works faster than usual mode, but output image will have lower resolution. --try_cuda (yes|no) Try to use CUDA. The default value is 'no'. All default val...
51.229829
261
0.675607
dd9e68adc26b47491545dede127ab942856497e3
10,718
py
Python
nrgpy/convert_rwd.py
abohara/nrgpy
375ec47ab4ada82552c6942602b26e73071277aa
[ "MIT" ]
null
null
null
nrgpy/convert_rwd.py
abohara/nrgpy
375ec47ab4ada82552c6942602b26e73071277aa
[ "MIT" ]
null
null
null
nrgpy/convert_rwd.py
abohara/nrgpy
375ec47ab4ada82552c6942602b26e73071277aa
[ "MIT" ]
null
null
null
#!/bin/usr/python import datetime import time import os import pandas as pd import pathlib import subprocess import shutil from nrgpy.utilities import check_platform, windows_folder_path, linux_folder_path, affirm_directory, count_files, draw_progress_bar class local(object): """nrgpy.convert_rwd.local - use loc...
33.598746
177
0.570536
eb5bbd89670cb35f8dfe012811b328c0c408b84a
878
py
Python
setup.py
RyanSiu1995/memory-pyofiler
e261652f7070cfd77ec13e0bafe9e788bb95dd2d
[ "MIT" ]
null
null
null
setup.py
RyanSiu1995/memory-pyofiler
e261652f7070cfd77ec13e0bafe9e788bb95dd2d
[ "MIT" ]
null
null
null
setup.py
RyanSiu1995/memory-pyofiler
e261652f7070cfd77ec13e0bafe9e788bb95dd2d
[ "MIT" ]
null
null
null
""" setup.py is the main file to define this package """ import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="memory-pyofiler", version="0.0.1", author="Ryan Siu", author_email="findme@ryansiulw.com", description="Prometheu...
26.606061
79
0.646925
96d9cbf3cb800192673e9e9895bde24188a98414
1,479
bzl
Python
src/main/starlark/builtins_bzl/common/cc/cc_binary_wrapper.bzl
Dyryamo/bazel
c60eb5d324da4d81f6be93f442ac6d7576741e8e
[ "Apache-2.0" ]
1
2022-03-22T11:55:06.000Z
2022-03-22T11:55:06.000Z
src/main/starlark/builtins_bzl/common/cc/cc_binary_wrapper.bzl
Dyryamo/bazel
c60eb5d324da4d81f6be93f442ac6d7576741e8e
[ "Apache-2.0" ]
3
2022-03-23T17:53:44.000Z
2022-03-23T17:54:01.000Z
src/main/starlark/builtins_bzl/common/cc/cc_binary_wrapper.bzl
Dyryamo/bazel
c60eb5d324da4d81f6be93f442ac6d7576741e8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
38.921053
105
0.743746
d691267f5be6691decd6fecb7860f03355f09e97
2,502
py
Python
gallery/ut_index.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
629
2015-01-06T03:01:56.000Z
2022-03-23T13:13:26.000Z
gallery/ut_index.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
897
2015-02-28T15:46:06.000Z
2022-03-30T08:19:13.000Z
gallery/ut_index.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
151
2015-01-08T16:36:24.000Z
2022-03-10T16:59:49.000Z
from construct import * from construct.lib import * class UTIndex(Construct): """ Format for "Index" objects in Unreal Tournament 1999 packages. Index objects are variable length signed integers with the following structure: +------------------------------------+-------------------------+------------...
34.273973
83
0.468425
75dd579a85e35f6380d5c2c44dad83fd65fb0073
903
py
Python
modeling/machine_learning/ensembling/bagging.py
kmsk99/data_science_toolbar
d139b83d4547b00249d35ba76da5c063c80f4bc2
[ "MIT" ]
null
null
null
modeling/machine_learning/ensembling/bagging.py
kmsk99/data_science_toolbar
d139b83d4547b00249d35ba76da5c063c80f4bc2
[ "MIT" ]
null
null
null
modeling/machine_learning/ensembling/bagging.py
kmsk99/data_science_toolbar
d139b83d4547b00249d35ba76da5c063c80f4bc2
[ "MIT" ]
null
null
null
from sklearn.ensemble import BaggingClassifier # Bagged KNN model = BaggingClassifier(base_estimator=KNeighborsClassifier( n_neighbors=3), random_state=0, n_estimators=700) model.fit(train_X, train_Y) prediction = model.predict(test_X) print('The accuracy for bagged KNN is:', metrics.accuracy_score(predictio...
41.045455
78
0.774086
fbc582e54dd387b2799f5a8f25b17d1608c69cde
7,776
py
Python
docs/conf.py
lsiksous/mauviette
06a985846b34929f22396ed16f3b4d2647025f21
[ "FTL" ]
null
null
null
docs/conf.py
lsiksous/mauviette
06a985846b34929f22396ed16f3b4d2647025f21
[ "FTL" ]
null
null
null
docs/conf.py
lsiksous/mauviette
06a985846b34929f22396ed16f3b4d2647025f21
[ "FTL" ]
null
null
null
# -*- coding: utf-8 -*- # # mauviette documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have...
31.738776
80
0.707305
1420a4597235f4d2eb2633e228885818b2ad478d
3,410
py
Python
benchmark/startCirq918.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq918.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq918.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=41 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
36.276596
77
0.64868
bfff64c98f9bd7806dfe492057d519a327a37d77
7,494
py
Python
tests/types/test_song.py
TLINDEN/spotdl-v4
30112816ff49e19f76fa54299ff2e94d2d2e65cd
[ "MIT" ]
3
2021-11-24T17:11:16.000Z
2021-12-19T05:49:38.000Z
tests/types/test_song.py
TLINDEN/spotdl-v4
30112816ff49e19f76fa54299ff2e94d2d2e65cd
[ "MIT" ]
2
2021-11-19T20:49:17.000Z
2021-11-19T20:49:26.000Z
tests/types/test_song.py
TLINDEN/spotdl-v4
30112816ff49e19f76fa54299ff2e94d2d2e65cd
[ "MIT" ]
1
2021-12-21T01:35:29.000Z
2021-12-21T01:35:29.000Z
from spotdl.types.song import Song from spotdl.utils.spotify import SpotifyClient import pytest def test_setup(patch_dependencies): """ Sets up the tests. """ SpotifyClient.init( client_id="5f573c9620494bae87890c0f08a60293", client_secret="212476d9b0f3472eaa762d90b19b0ba8", u...
29.273438
92
0.59154
837341f356868dd6b2cca6e0bc5647f83e3b7686
8,267
py
Python
benchmark/jsonresume/thrift/run.py
sourcemeta/json-size-benchmark
ec18002407fc97ea3181874b84c6342841cfb0a9
[ "Apache-2.0" ]
null
null
null
benchmark/jsonresume/thrift/run.py
sourcemeta/json-size-benchmark
ec18002407fc97ea3181874b84c6342841cfb0a9
[ "Apache-2.0" ]
4
2022-01-15T01:27:24.000Z
2022-01-19T00:47:20.000Z
benchmark/jsonresume/thrift/run.py
sourcemeta/json-size-benchmark
ec18002407fc97ea3181874b84c6342841cfb0a9
[ "Apache-2.0" ]
null
null
null
def encode(json, schema): payload = schema.Main() payload.basics = schema.Basics() payload.basics.name = json['basics']['name'] payload.basics.label = json['basics']['label'] payload.basics.picture = json['basics']['picture'] payload.basics.email = json['basics']['email'] payload.basics.pho...
39.937198
83
0.605056
9109db67f9e55ca86c32b303d432d0c24452927f
8,223
py
Python
qa/mc_sc_forging3.py
nastenko/Sidechains-SDK
35df59d5edc16138eaea081ee692c03a469a802d
[ "MIT" ]
111
2020-07-29T22:55:43.000Z
2022-03-26T22:56:42.000Z
qa/mc_sc_forging3.py
nastenko/Sidechains-SDK
35df59d5edc16138eaea081ee692c03a469a802d
[ "MIT" ]
71
2020-07-25T20:54:01.000Z
2022-03-17T13:53:27.000Z
qa/mc_sc_forging3.py
nastenko/Sidechains-SDK
35df59d5edc16138eaea081ee692c03a469a802d
[ "MIT" ]
56
2020-07-28T15:39:59.000Z
2022-03-30T02:03:23.000Z
#!/usr/bin/env python2 from SidechainTestFramework.sc_test_framework import SidechainTestFramework from SidechainTestFramework.sc_boostrap_info import SCNodeConfiguration, SCCreationInfo, MCConnectionInfo, \ SCNetworkConfiguration from test_framework.util import initialize_chain_clean, start_nodes, \ websocket...
46.457627
120
0.693056
9bd32a5691ee5b36fc7e487e72e2d78d98382695
8,368
py
Python
tests/common/test_op/reduce_max_ad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_op/reduce_max_ad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_op/reduce_max_ad.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.019608
123
0.655951
d9464d607c1b47f0ba12a3cc338d0038d93a9418
697
py
Python
mod_auth_external/examples/python/prosody-auth-example.py
Contatta/prosody-modules
dad756968054325700181699a63fe19fcd471fc9
[ "MIT" ]
6
2017-04-27T08:40:27.000Z
2021-05-17T05:39:20.000Z
mod_auth_external/examples/python/prosody-auth-example.py
Contatta/prosody-modules
dad756968054325700181699a63fe19fcd471fc9
[ "MIT" ]
5
2020-09-05T00:40:57.000Z
2022-01-22T05:18:54.000Z
mod_auth_external/examples/python/prosody-auth-example.py
Contatta/prosody-modules
dad756968054325700181699a63fe19fcd471fc9
[ "MIT" ]
2
2016-07-31T11:56:03.000Z
2019-03-15T13:11:56.000Z
#!/usr/bin/env python2 import sys def auth(username, password): if username == "someone": return "1" return "0" def respond(ret): sys.stdout.write(ret+"\n") sys.stdout.flush() methods = { "auth": { "function": auth, "parameters": 2 } } while 1: line = sys.stdin.readline().rstrip("\n") method, sep, data = ...
23.233333
73
0.675753
90eed4f7be7ef6f65d052555d904f1c75e8ca948
1,841
py
Python
python/v2/btm/token.py
RK41099/varimi
c7ed33a9653553dfeb1d41bdabd28c318ecdc14c
[ "MIT" ]
28
2018-05-07T16:59:25.000Z
2021-04-28T05:14:44.000Z
python/v2/btm/token.py
RK41099/varimi
c7ed33a9653553dfeb1d41bdabd28c318ecdc14c
[ "MIT" ]
8
2018-05-10T14:19:03.000Z
2018-06-16T02:41:50.000Z
python/v2/btm/token.py
RK41099/varimi
c7ed33a9653553dfeb1d41bdabd28c318ecdc14c
[ "MIT" ]
14
2018-05-10T16:34:28.000Z
2022-03-24T23:19:31.000Z
""" Basic settings for an NEP5 Token and crowdsale """ from boa.interop.Neo.Storage import * TOKEN_NAME = 'BitMari Points' TOKEN_SYMBOL = 'BTM' TOKEN_DECIMALS = 8 # This is the script hash of the address for the owner of the token # This can be found in ``neo-python`` with the walet open, use ``wallet`` command TO...
23.602564
92
0.712113
0ba307ae9cdb7ded7eed354fab9adc1d3aa0f305
2,784
py
Python
Contributions/BioMath_Stress_Simu/Stress_Simulation.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
Contributions/BioMath_Stress_Simu/Stress_Simulation.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
Contributions/BioMath_Stress_Simu/Stress_Simulation.py
OluSure/Hacktoberfest2021-1
ad1bafb0db2f0cdeaae8f87abbaa716638c5d2ea
[ "MIT" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
#!/usr/bin/env python # coding: utf-8 # In[4]: #!/usr/bin/env python # coding: utf-8 # In[23]: # -*- coding: utf-8 -*- """ Created on Mon Aug 31 22:52:05 2020 @author: bruno """ from vpython import * from numpy import * import matplotlib.pyplot as plt from drawnow import * import time # First parameters: L = 0....
27.029126
121
0.584411
c11a04d19b070803d76154fe0b1aa83503b5ca5e
298
py
Python
python/testData/refactoring/move/collectMovableModuleMembers.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/move/collectMovableModuleMembers.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/move/collectMovableModuleMembers.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from module import symbol as alias CONST = 42 # x is visible externally in Python 2 [x for x in range(3)] for i in range(3): pass if True: class C: class Inner: pass def method(self): pass def outer_func(): def inner_func(): pass
12.416667
37
0.560403
4b7bfd209e2d14579767b274b12bcb3acf6fdeb9
898
py
Python
ephysanalysis/__init__.py
pbmanis/ephysanalysis
b745e380ba1e842d862eec038a9c37521a698939
[ "MIT" ]
null
null
null
ephysanalysis/__init__.py
pbmanis/ephysanalysis
b745e380ba1e842d862eec038a9c37521a698939
[ "MIT" ]
1
2020-05-01T15:06:09.000Z
2020-05-01T15:06:09.000Z
ephysanalysis/__init__.py
pbmanis/ephysanalysis
b745e380ba1e842d862eec038a9c37521a698939
[ "MIT" ]
1
2020-05-01T13:25:44.000Z
2020-05-01T13:25:44.000Z
#!/usr/bin/env python # Use Semantic Versioning, http://semver.org/ version_info = (0, 2, 2, 'a') __version__ = "%d.%d.%d%s" % version_info #print ("apparent version: ", __version__) import ephysanalysis.Fitting as Fitting import ephysanalysis.Utility as Utility import ephysanalysis.acq4read import ephysanalysis.Mat...
25.657143
45
0.847439
ec7f80b83956699a93da6e33269782241b05525e
4,359
py
Python
coffin/template/defaultfilters.py
theatlantic/coffin
0377074b78dbfa4be0b188a68f256de1db0dd718
[ "BSD-3-Clause" ]
null
null
null
coffin/template/defaultfilters.py
theatlantic/coffin
0377074b78dbfa4be0b188a68f256de1db0dd718
[ "BSD-3-Clause" ]
null
null
null
coffin/template/defaultfilters.py
theatlantic/coffin
0377074b78dbfa4be0b188a68f256de1db0dd718
[ "BSD-3-Clause" ]
null
null
null
"""Coffin automatically makes Django's builtin filters available in Jinja2, through an interop-layer. However, Jinja 2 provides room to improve the syntax of some of the filters. Those can be overridden here. TODO: Most of the filters in here need to be updated for autoescaping. """ from coffin.template import Libr...
33.274809
76
0.705437
8d67405cb23783a340c985e67701249876152d2f
6,233
py
Python
tests/test_drf.py
remigermain/nested-multipart-parser
3ac35f7637314e61d33cb23d6b1f8a59c8d3f01a
[ "MIT" ]
null
null
null
tests/test_drf.py
remigermain/nested-multipart-parser
3ac35f7637314e61d33cb23d6b1f8a59c8d3f01a
[ "MIT" ]
null
null
null
tests/test_drf.py
remigermain/nested-multipart-parser
3ac35f7637314e61d33cb23d6b1f8a59c8d3f01a
[ "MIT" ]
null
null
null
import unittest from django.http import QueryDict from django.conf import settings settings.configure() # need to be after settings configure from rest_framework.test import APIRequestFactory # noqa: E402 from django.test.client import encode_multipart # noqa: E402 from nested_multipart_parser.drf import DrfNestedP...
28.990698
83
0.476336
65f8b9bcd123628974a5a442ef57eabd35ff06af
7,014
py
Python
simrd/simrd_experiments/uniform_linear/asymptotics.py
uwsampl/dtr-prototype
eff53cc4804cc7d6246a6e5086861ce2b846f62b
[ "Linux-OpenIB" ]
90
2020-06-18T05:32:06.000Z
2022-03-28T13:05:17.000Z
simrd/simrd_experiments/uniform_linear/asymptotics.py
merrymercy/dtr-prototype
bf40e182453a7d8d23581ea68f32a9d7d2037d62
[ "Linux-OpenIB" ]
5
2020-07-02T02:25:16.000Z
2022-03-24T05:50:30.000Z
simrd/simrd_experiments/uniform_linear/asymptotics.py
uwsampl/dtr-prototype
eff53cc4804cc7d6246a6e5086861ce2b846f62b
[ "Linux-OpenIB" ]
13
2020-06-27T07:01:54.000Z
2022-01-18T07:31:01.000Z
import json import time import glob from datetime import datetime from pathos.multiprocessing import ProcessPool as Pool import matplotlib.pyplot as plt from simrd.heuristic import * from simrd.runtime import * from simrd_experiments.bounds import * import simrd_experiments.util as util from simrd_experiments.unifor...
38.119565
114
0.651554
0f9658613ed29b7cbc5de7f7e0fb0648f4c6ff54
389
py
Python
djtbot/djtbot/wsgi.py
OldSem/djtbot
04d92263889542e181009ffd5d36f7e1cb0ab460
[ "MIT" ]
null
null
null
djtbot/djtbot/wsgi.py
OldSem/djtbot
04d92263889542e181009ffd5d36f7e1cb0ab460
[ "MIT" ]
null
null
null
djtbot/djtbot/wsgi.py
OldSem/djtbot
04d92263889542e181009ffd5d36f7e1cb0ab460
[ "MIT" ]
null
null
null
""" WSGI config for djtbot project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
2740a7e1fe6a44e8520216981cd964336af20d8d
702
py
Python
test.py
linkdd/manyssh
1f95d9abbf3215d115c627fad41cabcba02f5e28
[ "MIT" ]
3
2015-02-08T23:50:53.000Z
2015-02-09T09:14:34.000Z
test.py
linkdd/manyssh
1f95d9abbf3215d115c627fad41cabcba02f5e28
[ "MIT" ]
5
2015-02-09T09:20:20.000Z
2015-02-09T09:41:29.000Z
test.py
linkdd/manyssh
1f95d9abbf3215d115c627fad41cabcba02f5e28
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from manyssh.app import Application import unittest class ManySSHTest(unittest.TestCase): def setUp(self): self.argv = ['manyssh', 'mycluster0'] self.expected_hosts = [ 'root@myhost0', 'root@myhost1', 'root@myhost2'...
21.9375
61
0.58547
0077d5c22a98c02651f9c9a062b4dfe0b52b6fbb
8,530
py
Python
grr/server/grr_response_server/output_plugins/bigquery_plugin_test.py
4ndygu/grr
cfc725b5ee3a2626ac4cdae7fb14471612da4522
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/output_plugins/bigquery_plugin_test.py
4ndygu/grr
cfc725b5ee3a2626ac4cdae7fb14471612da4522
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/output_plugins/bigquery_plugin_test.py
4ndygu/grr
cfc725b5ee3a2626ac4cdae7fb14471612da4522
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- """Tests for BigQuery output plugin.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import gzip import json import os from builtins import range # pylint: disable=redefined-builtin from b...
35.690377
79
0.658499
17fe946d3ae68941942c4136dd2570342d7c48ee
1,373
py
Python
metaworld/policies/sawyer_peg_unplug_side_v1_policy.py
pkol/metaworld
718e4d1bc2b34e0ae3ef6415fb6cbe4afe8ea4b9
[ "MIT" ]
null
null
null
metaworld/policies/sawyer_peg_unplug_side_v1_policy.py
pkol/metaworld
718e4d1bc2b34e0ae3ef6415fb6cbe4afe8ea4b9
[ "MIT" ]
null
null
null
metaworld/policies/sawyer_peg_unplug_side_v1_policy.py
pkol/metaworld
718e4d1bc2b34e0ae3ef6415fb6cbe4afe8ea4b9
[ "MIT" ]
null
null
null
import numpy as np from metaworld.policies.action import Action from metaworld.policies.policy import Policy, assert_fully_parsed, move class SawyerPegUnplugSideV1Policy(Policy): @staticmethod @assert_fully_parsed def _parse_obs(obs): return { 'hand_xyz': obs[:3], 'peg_xy...
26.403846
89
0.553532
58603738a0dcd513024889ba762e0c5b3de703d1
3,159
py
Python
probe/modules/antivirus/fsecure/fsecure.py
quarkslab/irma
29d8baa4e27bacaf7aa9dd570c16e5268ae6237c
[ "Apache-2.0" ]
248
2015-01-08T09:36:44.000Z
2022-01-12T10:29:21.000Z
probe/modules/antivirus/fsecure/fsecure.py
quarkslab/irma
29d8baa4e27bacaf7aa9dd570c16e5268ae6237c
[ "Apache-2.0" ]
50
2015-01-09T08:31:57.000Z
2022-03-30T10:41:13.000Z
probe/modules/antivirus/fsecure/fsecure.py
quarkslab/irma
29d8baa4e27bacaf7aa9dd570c16e5268ae6237c
[ "Apache-2.0" ]
74
2015-01-05T09:11:21.000Z
2022-03-29T02:16:54.000Z
# # Copyright (c) 2013-2018 Quarkslab. # This file is part of IRMA project. # # 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 in the top-level directory # of this distribution and at: # # http:...
34.714286
77
0.55334
26d36352b333e1031533bfaf3af2e5abf7b7906e
4,512
py
Python
wikiwho_chobj/chobj.py
gesiscss/wikiwho_chobj
b53be680a776a606bc46d923696193971a9e8276
[ "MIT" ]
null
null
null
wikiwho_chobj/chobj.py
gesiscss/wikiwho_chobj
b53be680a776a606bc46d923696193971a9e8276
[ "MIT" ]
null
null
null
wikiwho_chobj/chobj.py
gesiscss/wikiwho_chobj
b53be680a776a606bc46d923696193971a9e8276
[ "MIT" ]
1
2019-03-28T16:36:17.000Z
2019-03-28T16:36:17.000Z
import os import pickle import datetime from time import sleep import numpy as np from WikiWho.utils import iter_rev_tokens from .revision import Revision from .utils import Timer class Chobjer: def __init__(self, article, pickles_path, lang, context, starting_revid = -1): from wikiwho...
35.527559
92
0.598404
ee4372c897a986c41c4219ef18b542a5f5d62140
1,050
py
Python
hummingbird/ml/operator_converters/sklearn/normalizer.py
gwd666/hummingbird
a39f0fbf4016754f8301dbaf54b0291b6a2e02e0
[ "MIT" ]
1
2020-12-29T12:51:10.000Z
2020-12-29T12:51:10.000Z
hummingbird/ml/operator_converters/sklearn/normalizer.py
gwd666/hummingbird
a39f0fbf4016754f8301dbaf54b0291b6a2e02e0
[ "MIT" ]
null
null
null
hummingbird/ml/operator_converters/sklearn/normalizer.py
gwd666/hummingbird
a39f0fbf4016754f8301dbaf54b0291b6a2e02e0
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ Conve...
31.818182
90
0.655238
292b713d98ea0b06a8e9c831ff7f1551dc97412b
639
py
Python
fakerecurly/errors.py
davedevelopment/fake-recurly
f7ab365eb9d9b35560c7eb9b994fbd696929155b
[ "WTFPL" ]
1
2016-05-30T13:52:29.000Z
2016-05-30T13:52:29.000Z
fakerecurly/errors.py
davedevelopment/fake-recurly
f7ab365eb9d9b35560c7eb9b994fbd696929155b
[ "WTFPL" ]
null
null
null
fakerecurly/errors.py
davedevelopment/fake-recurly
f7ab365eb9d9b35560c7eb9b994fbd696929155b
[ "WTFPL" ]
null
null
null
class FieldError(ValueError): def __init__(self, resource, name, symbol): self.resource = resource self.name = name self.symbol = symbol def __unicode__(self): msg = 'unknown' if self.symbol == "taken": msg = 'has already been taken' return "<error f...
30.428571
115
0.604069
d2bf5ba6e10de5745a02651f06a8ad02f7159bce
1,009
py
Python
stroylux/main/core/sitemaps.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
stroylux/main/core/sitemaps.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
7
2020-09-19T16:24:46.000Z
2022-01-13T03:19:46.000Z
stroylux/main/core/sitemaps.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.sitemaps import Sitemap from main.blog.models import BlogArticle from main.page.models import Page from main.product.models import Product, Category class ProductSitemap(Sitemap): name = 'product' changefreq = 'daily' limit = 100000 def items(self): return Product.objects...
20.18
52
0.694747
5c2e5b6dbe04c7ad9bc390f3b6af464ccb8006ce
1,184
py
Python
main.py
trandinhquangloc/Watson-Language-Translator
29cd8107a61fb32c4c0f9f0c0880e36c6e183f9c
[ "Apache-2.0" ]
null
null
null
main.py
trandinhquangloc/Watson-Language-Translator
29cd8107a61fb32c4c0f9f0c0880e36c6e183f9c
[ "Apache-2.0" ]
null
null
null
main.py
trandinhquangloc/Watson-Language-Translator
29cd8107a61fb32c4c0f9f0c0880e36c6e183f9c
[ "Apache-2.0" ]
null
null
null
import json from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator import os from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url = os.environ['url'] version_lt='2018-05-01' authenticator = IAMAuthenticator(apikey) language_translator = La...
28.878049
111
0.810811
c2933b6f7a25f3d0dcf936ce7558fc7de1d0988f
7,214
py
Python
intents/test_show.py
chhavip/debaised-analysis
3597d35ce74f8d20384d57f12f7eb65020f9370b
[ "Apache-2.0" ]
null
null
null
intents/test_show.py
chhavip/debaised-analysis
3597d35ce74f8d20384d57f12f7eb65020f9370b
[ "Apache-2.0" ]
null
null
null
intents/test_show.py
chhavip/debaised-analysis
3597d35ce74f8d20384d57f12f7eb65020f9370b
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
32.940639
134
0.605905
5850ad2b9ae673cd78064e2045e2cd134727e09a
17,759
py
Python
sdk/python/pulumi_azure_native/documentdb/v20210415/cassandra_resource_cassandra_keyspace.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20210415/cassandra_resource_cassandra_keyspace.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/documentdb/v20210415/cassandra_resource_cassandra_keyspace.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
61.237931
3,128
0.707134
eb994be7acf51860657a1d74f1ae1d5c02cb0e89
3,676
py
Python
unifier/apps/core/admin.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
6
2021-03-25T14:55:36.000Z
2021-05-25T15:12:41.000Z
unifier/apps/core/admin.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
6
2021-02-19T12:32:26.000Z
2021-03-25T16:54:40.000Z
unifier/apps/core/admin.py
sosolidkk/manga-unifier
4cca148affbb197b9284d46ef04c66d42d96c03a
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.admin.models import DELETION, LogEntry from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.urls import reverse from django.utils.html import escape from django.utils.safestring import mark_safe from unifier.apps.core.models import Favorite, M...
22.414634
113
0.60691
d51f8496b8a4bb2c2d612403f479aa0b3b3c4f48
4,604
py
Python
Lib/site-packages/OCC/StdFail.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/OCC/StdFail.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
1
2022-03-17T16:46:04.000Z
2022-03-17T16:46:04.000Z
Lib/site-packages/OCC/StdFail.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.1 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _StdFai...
40.743363
107
0.746525
5bcd0b290564bc701c47ceb3606536a76c4997ce
236
py
Python
artifacts/add_deepfry.py
gewenyu99/Patina
f7feece9242cc25b5a2decc49505f5fd2942975f
[ "MIT" ]
1
2022-01-28T10:16:56.000Z
2022-01-28T10:16:56.000Z
artifacts/add_deepfry.py
gewenyu99/Patina
f7feece9242cc25b5a2decc49505f5fd2942975f
[ "MIT" ]
null
null
null
artifacts/add_deepfry.py
gewenyu99/Patina
f7feece9242cc25b5a2decc49505f5fd2942975f
[ "MIT" ]
null
null
null
from PIL import Image import deeppyer, asyncio async def fry(): img = Image.open('../mqdefault.jpg') img = await deeppyer.deepfry(img) img.save('./fried.jpg') loop = asyncio.get_event_loop() loop.run_until_complete(fry())
21.454545
40
0.699153
27fd496ac9e553e521f720f23e6ca86d1be6ca0e
117,287
py
Python
fortnitepy/client.py
xMistt/fortnitepy
c64d72572e188a938e0b39a6d1fd1e8ee4842d31
[ "MIT" ]
2
2020-06-14T21:23:46.000Z
2022-02-03T08:55:37.000Z
fortnitepy/client.py
xMistt/fortnitepy
c64d72572e188a938e0b39a6d1fd1e8ee4842d31
[ "MIT" ]
null
null
null
fortnitepy/client.py
xMistt/fortnitepy
c64d72572e188a938e0b39a6d1fd1e8ee4842d31
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2019-2021 Terbau 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, ...
34.97972
149
0.559047
bcadac953ab2e9cc0287be2846abe4a8d6051cc7
4,058
py
Python
tests/components/homekit/test_aidmanager.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2019-11-04T12:18:19.000Z
2019-11-04T12:18:19.000Z
tests/components/homekit/test_aidmanager.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
tests/components/homekit/test_aidmanager.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2020-06-01T12:43:03.000Z
2020-06-01T12:43:03.000Z
"""Tests for the HomeKit AID manager.""" from asynctest import patch import pytest from homeassistant.components.homekit.aidmanager import ( AccessoryAidStorage, get_system_unique_id, ) from homeassistant.helpers import device_registry from tests.common import MockConfigEntry, mock_device_registry, mock_regis...
33.53719
93
0.689009