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
13806032a5703310f410b87dafb215a89e72b385
4,991
py
Python
sib_api_v3_sdk/models/remaining_credit_model_reseller.py
Edraak/APIv3-python-library
4a97bf479d92ca08d5a2881ac37e397d3a1846b4
[ "MIT" ]
null
null
null
sib_api_v3_sdk/models/remaining_credit_model_reseller.py
Edraak/APIv3-python-library
4a97bf479d92ca08d5a2881ac37e397d3a1846b4
[ "MIT" ]
null
null
null
sib_api_v3_sdk/models/remaining_credit_model_reseller.py
Edraak/APIv3-python-library
4a97bf479d92ca08d5a2881ac37e397d3a1846b4
[ "MIT" ]
null
null
null
# coding: utf-8 """ SendinBlue API SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at h...
33.722973
856
0.582248
5cd304ab73b9bd75e6d4da823332247af506b3cf
2,042
py
Python
seq2seqRL/model/decoder.py
heiseish/DLPlayground
24b528779bfdcbea3e295cba847514bf840b9c06
[ "MIT" ]
1
2019-03-16T04:45:33.000Z
2019-03-16T04:45:33.000Z
seq2seqRL/model/decoder.py
heiseish/DLPlayground
24b528779bfdcbea3e295cba847514bf840b9c06
[ "MIT" ]
null
null
null
seq2seqRL/model/decoder.py
heiseish/DLPlayground
24b528779bfdcbea3e295cba847514bf840b9c06
[ "MIT" ]
null
null
null
# Package import torch.nn as nn import torch.nn.functional as F # Local files from model.attention import * class LuongAttnDecoderRNN(nn.Module): def __init__(self, attn_model, embedding, hidden_size, output_size, n_layers=1, dropout=0.1): super(LuongAttnDecoderRNN, self).__init__() # Keep for r...
41.673469
104
0.681195
ba717f444d606b1f0f3d1541d1664d21e826de05
347
py
Python
utils/align.py
catskillsresearch/xview2-catskills
5671cff323c8121c0ae251e360e454a1e8568f58
[ "BSD-3-Clause" ]
null
null
null
utils/align.py
catskillsresearch/xview2-catskills
5671cff323c8121c0ae251e360e454a1e8568f58
[ "BSD-3-Clause" ]
null
null
null
utils/align.py
catskillsresearch/xview2-catskills
5671cff323c8121c0ae251e360e454a1e8568f58
[ "BSD-3-Clause" ]
null
null
null
DISASTER='santa-rosa-wildfire' IMAGEID='00000030' XBD='/home/catskills/Desktop/dataxv2/xBD' im_reference=XBD+'/'+DISASTER+'/images/'+DISASTER+'_'+IMAGEID+'_pre_disaster.png' im_target=XBD+'/'+ DISASTER+'/images/'+DISASTER+'_'+IMAGEID+'_post_disaster.png' from arosics import COREG CR = COREG(im_reference, im_target) CR....
38.555556
81
0.775216
fbf45c311c0bd43c887534b7137dbb22d36faf47
4,990
py
Python
lstm_predictor.py
mgorkove/Time-Series-Prediction-with-LSTM-Recurrent-Neural-Networks-in-Python-with-Keras
71937e6b25736c17bdc68abea0519f88f7410077
[ "MIT" ]
10
2017-05-23T09:02:16.000Z
2021-08-04T22:52:59.000Z
lstm_predictor.py
alastairrough/Time-Series-Prediction-with-LSTM-Recurrent-Neural-Networks-in-Python-with-Keras
71937e6b25736c17bdc68abea0519f88f7410077
[ "MIT" ]
null
null
null
lstm_predictor.py
alastairrough/Time-Series-Prediction-with-LSTM-Recurrent-Neural-Networks-in-Python-with-Keras
71937e6b25736c17bdc68abea0519f88f7410077
[ "MIT" ]
7
2018-03-11T16:47:15.000Z
2021-07-21T17:24:32.000Z
import numpy as np import pandas as pd import tensorflow as tf from tensorflow.python.framework import dtypes from tensorflow.contrib import learn import logging logging.basicConfig(level=logging.INFO) def x_sin(x): return x * np.sin(x) def sin_cos(x): return pd.DataFrame(dict(a=np.sin(x), b=n...
41.239669
101
0.597796
64def41c572d639c5ea149c44713349b5af6dfde
492
py
Python
ecos/orchestrator.py
jinho-park/ECOS
f50c095d7eb9c6b77432711b9a5b32e883835802
[ "MIT" ]
null
null
null
ecos/orchestrator.py
jinho-park/ECOS
f50c095d7eb9c6b77432711b9a5b32e883835802
[ "MIT" ]
null
null
null
ecos/orchestrator.py
jinho-park/ECOS
f50c095d7eb9c6b77432711b9a5b32e883835802
[ "MIT" ]
null
null
null
from ecos.simulator import Simulator import random class Orchestrator: def __init__(self, _policy): self.policy = _policy def offloading_target(self, task, source): collaborationTarget = 0 simul = Simulator.get_instance() if self.policy == "RANDOM": num_of_edge =...
24.6
63
0.660569
086b739114d84967d7c6b851f0fd96ee797c98f5
53,164
py
Python
submission_files/transformer.py
asafmaman101/transformer_exercise
444c69daab33df706c5f2317a35056926e855dc0
[ "MIT" ]
null
null
null
submission_files/transformer.py
asafmaman101/transformer_exercise
444c69daab33df706c5f2317a35056926e855dc0
[ "MIT" ]
null
null
null
submission_files/transformer.py
asafmaman101/transformer_exercise
444c69daab33df706c5f2317a35056926e855dc0
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn as nn from fairseq import utils from fairseq.dis...
44.119502
159
0.629844
a6774c397ab3bbe9657f9401f9c7015eda2c70e7
572
py
Python
esphome/components/fujitsu_general/climate.py
huhuhugo1/esphome
eb895d2095861a4d51f1a5fcd582a97389c27b4f
[ "MIT" ]
null
null
null
esphome/components/fujitsu_general/climate.py
huhuhugo1/esphome
eb895d2095861a4d51f1a5fcd582a97389c27b4f
[ "MIT" ]
null
null
null
esphome/components/fujitsu_general/climate.py
huhuhugo1/esphome
eb895d2095861a4d51f1a5fcd582a97389c27b4f
[ "MIT" ]
null
null
null
import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import climate_ir from esphome.const import CONF_ID AUTO_LOAD = ['climate_ir'] fujitsu_general_ns = cg.esphome_ns.namespace('fujitsu_general') FujitsuGeneralClimate = fujitsu_general_ns.class_('FujitsuGeneralClimate', climate_...
30.105263
96
0.809441
31d5d2797d74d2ac9d22015d1b749f3d51f601ee
1,559
py
Python
config/includes.chroot/usr/local/share/S0lar0S/src/ranger/ranger/ext/human_readable.py
ddarksmith/S0lar0S
b91971000c089f77d1ff76a00262252a65680e5b
[ "WTFPL" ]
null
null
null
config/includes.chroot/usr/local/share/S0lar0S/src/ranger/ranger/ext/human_readable.py
ddarksmith/S0lar0S
b91971000c089f77d1ff76a00262252a65680e5b
[ "WTFPL" ]
null
null
null
config/includes.chroot/usr/local/share/S0lar0S/src/ranger/ranger/ext/human_readable.py
ddarksmith/S0lar0S
b91971000c089f77d1ff76a00262252a65680e5b
[ "WTFPL" ]
null
null
null
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. def human_readable(byte, separator=' '): """Convert a large number of bytes to an easily readable format. >>> human_readable(54) '54 B' >>> human_readable(1500) '1.46 K' ...
32.479167
69
0.551636
96c72b09993c2130a4693b1563c79cdd8cdfed84
941
py
Python
model/test/nhl/test_predict.py
shuyi1981/bayes-bet
4f0715d31e726e8f6f4363dc9743f48fbb330b1d
[ "MIT" ]
1
2021-08-20T12:59:34.000Z
2021-08-20T12:59:34.000Z
model/test/nhl/test_predict.py
shuyi1981/bayes-bet
4f0715d31e726e8f6f4363dc9743f48fbb330b1d
[ "MIT" ]
null
null
null
model/test/nhl/test_predict.py
shuyi1981/bayes-bet
4f0715d31e726e8f6f4363dc9743f48fbb330b1d
[ "MIT" ]
null
null
null
import pandas as pd import pytest from bayesbet.nhl.predict import bayesian_poisson_pdf from bayesbet.nhl.predict import bayesian_bernoulli_win_pdf from bayesbet.nhl.predict import bayesian_goal_within_time @pytest.fixture def poisson_cases(): cases = [ (0.0, 0.1, 5, [0.3678839711698872, 0.366049...
37.64
90
0.709883
4803ec425164b39d584896809bc74ac32898e57e
1,814
py
Python
fit_scripts/plot_binom.py
jensengroup/prohxms
411f208efd1a1dcc06e988f1df11b5e43d406f8e
[ "BSD-2-Clause" ]
null
null
null
fit_scripts/plot_binom.py
jensengroup/prohxms
411f208efd1a1dcc06e988f1df11b5e43d406f8e
[ "BSD-2-Clause" ]
null
null
null
fit_scripts/plot_binom.py
jensengroup/prohxms
411f208efd1a1dcc06e988f1df11b5e43d406f8e
[ "BSD-2-Clause" ]
1
2021-04-24T11:11:59.000Z
2021-04-24T11:11:59.000Z
import numpy from scipy.special import binom, gamma from matplotlib import pyplot import sys def factorial(x): try: return gamma(x + 1) except OverflowError: print "Overflow, x =",x exit(0) def B(x, y): return factorial(x - 1) * factorial(y - 1) / factorial(x + y - 1) n = ...
24.849315
132
0.597574
01f6635719f9e7d73a486a1fc3df37350abf5ab6
2,150
py
Python
samfp/tests/clustering.py
b1quint/samfp
1cd9b85851c02dc61a2294d67a309f62083d358d
[ "BSD-3-Clause" ]
null
null
null
samfp/tests/clustering.py
b1quint/samfp
1cd9b85851c02dc61a2294d67a309f62083d358d
[ "BSD-3-Clause" ]
19
2016-07-15T21:32:59.000Z
2017-09-12T00:31:26.000Z
samfp/tests/clustering.py
b1quint/samfp
1cd9b85851c02dc61a2294d67a309f62083d358d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import numpy as np from matplotlib import gridspec from scipy import signal class Parabola: def __init__(self, a, b, c): self.a = a self.b = b self.c = c def __c...
24.431818
74
0.650698
24760ad11b3013dfa626a8adda470d30d06893e6
2,304
py
Python
userbot/plugins/antiflood.py
NoobRider/catuserbot
dea79d5d8b7174efefcc1c35ed3434516a490f58
[ "MIT" ]
2
2020-04-12T11:51:06.000Z
2020-04-18T14:08:06.000Z
userbot/plugins/antiflood.py
NoobRider/catuserbot
dea79d5d8b7174efefcc1c35ed3434516a490f58
[ "MIT" ]
null
null
null
userbot/plugins/antiflood.py
NoobRider/catuserbot
dea79d5d8b7174efefcc1c35ed3434516a490f58
[ "MIT" ]
1
2020-05-13T02:51:35.000Z
2020-05-13T02:51:35.000Z
import asyncio from telethon import events from telethon.tl.functions.channels import EditBannedRequest from telethon.tl.types import ChatBannedRights from userbot.utils import admin_cmd import userbot.plugins.sql_helper.antiflood_sql as sql import userbot.utils from userbot.utils import humanbytes, progress, time_form...
32
89
0.676649
eb9319c4201da0c0ebcf8c5591a7e08747c681ee
107
py
Python
src/roscam_application/__init__.py
gaelfargeas/roscam_application
7b8da48f5e6e468bbab8238ac3e5591d92f94a79
[ "BSD-3-Clause" ]
null
null
null
src/roscam_application/__init__.py
gaelfargeas/roscam_application
7b8da48f5e6e468bbab8238ac3e5591d92f94a79
[ "BSD-3-Clause" ]
null
null
null
src/roscam_application/__init__.py
gaelfargeas/roscam_application
7b8da48f5e6e468bbab8238ac3e5591d92f94a79
[ "BSD-3-Clause" ]
null
null
null
from roscam_application import roscam_main def main(): roscam_var = roscam_main.roscam_application()
17.833333
49
0.794393
fc60c128a7ced52334380d0c2c522d780c33447a
457
py
Python
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/_tickformat.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/_tickformat.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/xaxis/_tickformat.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class TickformatValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="tickformat", parent_name="layout.xaxis", **kwargs): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_na...
35.153846
87
0.66302
e30b0746a188c6e193cfc4d309b5a3e9497f99d8
1,877
py
Python
app/utils/json_formater.py
a1136395507/Blog
e890dbe24bd2c3a82dad55e90f717db59a3e51a1
[ "Unlicense" ]
null
null
null
app/utils/json_formater.py
a1136395507/Blog
e890dbe24bd2c3a82dad55e90f717db59a3e51a1
[ "Unlicense" ]
null
null
null
app/utils/json_formater.py
a1136395507/Blog
e890dbe24bd2c3a82dad55e90f717db59a3e51a1
[ "Unlicense" ]
null
null
null
import logging import json import datetime import socket REMOVE_ATTR = ["filename", "module", "exc_text", "stack_info", "created", "", "relativeCreated", "exc_info", "msg"] class HostIp(object): host_name = None host_ip = None @classmethod def get_host_ip(cls): if not cls.host_name or not cl...
30.274194
115
0.616942
8fafa28767e90db6657f8b75e3591da46982741c
11,308
py
Python
grammar_induction/earley_parser/nltk/tokenize/casual.py
tdonca/OpenBottle
f03d80e7b3645232fb97f91cf7fc2dc02f101ac2
[ "MIT" ]
6
2017-01-22T03:15:01.000Z
2019-12-01T16:19:36.000Z
grammar_induction/earley_parser/nltk/tokenize/casual.py
tdonca/OpenBottle
f03d80e7b3645232fb97f91cf7fc2dc02f101ac2
[ "MIT" ]
3
2020-03-24T15:38:23.000Z
2021-02-02T21:44:18.000Z
grammar_induction/earley_parser/nltk/tokenize/casual.py
tdonca/OpenBottle
f03d80e7b3645232fb97f91cf7fc2dc02f101ac2
[ "MIT" ]
6
2017-01-19T21:49:55.000Z
2021-04-14T09:57:17.000Z
# coding: utf-8 # # Natural Language Toolkit: Twitter Tokenizer # # Copyright (C) 2001-2017 NLTK Project # Author: Christopher Potts <cgpotts@stanford.edu> # Ewan Klein <ewan@inf.ed.ac.uk> (modifications) # Pierpaolo Pantone <> (modifications) # URL: <http://nltk.org/> # For license information, see LIC...
32.872093
147
0.51583
262da14fedd979db34ec549bca9143fccf31c2c2
2,219
py
Python
package/spack-perl-test-cleannamespaces/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-perl-test-cleannamespaces/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-perl-test-cleannamespaces/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
48.23913
100
0.673727
b68c9a3d0ae6bd8591c0725be24beb016a161907
684
py
Python
src/PGAN/data_loading.py
konstantinjdobler/gan-n1
8813fa5efd7a64603b60d1dd0722e8aecdec5763
[ "MIT" ]
null
null
null
src/PGAN/data_loading.py
konstantinjdobler/gan-n1
8813fa5efd7a64603b60d1dd0722e8aecdec5763
[ "MIT" ]
10
2020-07-07T15:19:21.000Z
2020-07-30T20:12:31.000Z
src/PGAN/data_loading.py
konstantinjdobler/gan-n1
8813fa5efd7a64603b60d1dd0722e8aecdec5763
[ "MIT" ]
null
null
null
import torchvision.datasets as dset import torch.utils.data as data import torch # from https://github.com/caffeinism/cDC-GAN-pytorch class ImageFeatureFolder(dset.ImageFolder): def __init__(self, image_root, attribute_file, transform): super(ImageFeatureFolder, self).__init__( root=image_root,...
34.2
70
0.654971
015e566c67f5a553d01a65f1bb0598f31f4cb16a
9,777
py
Python
dr/coordinates.py
rscalzo/sami
7ac5632e018cdf2384f5ff067c503177684f61c8
[ "BSD-3-Clause" ]
1
2021-12-07T08:30:38.000Z
2021-12-07T08:30:38.000Z
dr/coordinates.py
rscalzo/sami
7ac5632e018cdf2384f5ff067c503177684f61c8
[ "BSD-3-Clause" ]
null
null
null
dr/coordinates.py
rscalzo/sami
7ac5632e018cdf2384f5ff067c503177684f61c8
[ "BSD-3-Clause" ]
3
2021-02-15T19:51:59.000Z
2021-05-04T05:48:46.000Z
""" Functions for modifying fibre coordinates in SAMI FITS files. These were necessary to correct the files produced during the March 2013 run (the first with the upgraded SAMI instrument), which had two problems: * The probes were numbered in the wrong order (1-13 instead of 13-1) * The position angles were c...
42.324675
82
0.646517
d9b1467d9e24c4a39f09be5ee61819205f6f49d9
447
py
Python
padpo/checkers/empty.py
christopheNan/padpo
429ef81277452db4c2563f6ab5c71547b5e519e3
[ "BSD-3-Clause" ]
4
2019-11-05T16:47:40.000Z
2020-01-04T17:38:29.000Z
padpo/checkers/empty.py
christopheNan/padpo
429ef81277452db4c2563f6ab5c71547b5e519e3
[ "BSD-3-Clause" ]
46
2019-11-06T10:23:16.000Z
2020-12-04T08:47:54.000Z
padpo/checkers/empty.py
christopheNan/padpo
429ef81277452db4c2563f6ab5c71547b5e519e3
[ "BSD-3-Clause" ]
5
2019-11-06T13:08:58.000Z
2020-10-15T11:10:30.000Z
"""Checker for missing translations.""" from padpo.checkers.baseclass import Checker from padpo.pofile import PoItem class EmptyChecker(Checker): """Checker for missing translations.""" name = "Empty" def check_item(self, item: PoItem): """Check an item in a `*.po` file.""" if item.msg...
26.294118
76
0.686801
2870df0e324989eaf6172ba4d0e34a3cac2c86ff
6,931
py
Python
lwrl/models/ddpg_model.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
2
2019-04-11T11:55:48.000Z
2020-05-29T18:09:51.000Z
lwrl/models/ddpg_model.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
6
2021-06-01T22:21:00.000Z
2022-03-11T23:24:36.000Z
lwrl/models/ddpg_model.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
1
2019-04-12T03:09:47.000Z
2019-04-12T03:09:47.000Z
import numpy as np import torch import torch.nn.functional as F from torch import nn import lwrl.utils.th_helper as H from lwrl.models import DistributionModel from lwrl.optimizers import optimizer_factory class DDPGCriticModel(nn.Module): def __init__(self, state_spec, action_spec, hidden1=400, hidden2=300): ...
38.292818
78
0.635983
795b4aff0a0fc4f3af01aa38c585c7745e6fe11b
5,350
py
Python
test/Deprecated/Options/help.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
1
2019-09-18T06:37:02.000Z
2019-09-18T06:37:02.000Z
test/Deprecated/Options/help.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
test/Deprecated/Options/help.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # 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 us...
31.28655
111
0.68729
9a4af4bfac167a0a72dcb286327dfe1376e404dc
12,020
py
Python
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
1
2021-09-07T18:35:07.000Z
2021-09-07T18:35:07.000Z
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/aio/operations/_location_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.770428
164
0.644509
ec95ae097cf9fd53015b5bcbc1bb713ddca586e8
8,724
py
Python
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_xml.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_xml.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_xml.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
40.766355
98
0.723063
5bbecd792100bd6e11a70569e4548b018e2ff8db
10,294
py
Python
torch_geometric/data/sampler.py
m30m/pytorch_geometric
4e36103299debee269cefcb3c869d45b7977bcb3
[ "MIT" ]
null
null
null
torch_geometric/data/sampler.py
m30m/pytorch_geometric
4e36103299debee269cefcb3c869d45b7977bcb3
[ "MIT" ]
null
null
null
torch_geometric/data/sampler.py
m30m/pytorch_geometric
4e36103299debee269cefcb3c869d45b7977bcb3
[ "MIT" ]
null
null
null
import copy from typing import List, Optional, Tuple, NamedTuple, Union import torch from torch import Tensor from torch_sparse import SparseTensor from torch_geometric.utils.num_nodes import maybe_num_nodes class EdgeIndex(NamedTuple): edge_index: Tensor e_id: Optional[Tensor] size: Tuple[int, int] ...
40.527559
79
0.629493
4740288f2f586e8c1a632338cbd08f2fdd2ed987
2,239
py
Python
recipes/python/flask/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
roscopecoltran/sniperkit-cookiecutter
50b7ecd87d4127875764c2b7d4668ede2ed4b299
[ "BSD-3-Clause" ]
null
null
null
recipes/python/flask/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
roscopecoltran/sniperkit-cookiecutter
50b7ecd87d4127875764c2b7d4668ede2ed4b299
[ "BSD-3-Clause" ]
null
null
null
recipes/python/flask/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py
roscopecoltran/sniperkit-cookiecutter
50b7ecd87d4127875764c2b7d4668ede2ed4b299
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The app module, containing the app factory function.""" from flask import Flask, render_template from {{cookiecutter.app_name}} import commands, public, user from {{cookiecutter.app_name}}.extensions import bcrypt, cache, csrf_protect, db, debug_toolbar, login_manager, migrate, webpack from ...
30.256757
128
0.702546
6b9f83123cb64bc92e203cd1384bad42d353dae0
1,566
py
Python
app/utils.py
A-NL/simplelogin-app
f17f9aaf8c57373c09dc3393975d2509f37815b9
[ "MIT" ]
4
2021-07-06T14:51:24.000Z
2021-07-23T16:40:53.000Z
app/utils.py
A-NL/simplelogin-app
f17f9aaf8c57373c09dc3393975d2509f37815b9
[ "MIT" ]
1
2021-05-11T13:02:48.000Z
2021-05-11T13:03:32.000Z
app/utils.py
A-NL/simplelogin-app
f17f9aaf8c57373c09dc3393975d2509f37815b9
[ "MIT" ]
null
null
null
import random import string import urllib.parse from unidecode import unidecode from .config import WORDS_FILE_PATH from .log import LOG with open(WORDS_FILE_PATH) as f: LOG.d("load words file: %s", WORDS_FILE_PATH) _words = f.read().split() def random_word(): return random.choice(_words) def word_ex...
23.029412
94
0.66986
7e1fab5c4911e10452c7add69692028c87126ace
904
py
Python
geotrek/trekking/migrations/0017_auto_20200831_1406.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/trekking/migrations/0017_auto_20200831_1406.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/trekking/migrations/0017_auto_20200831_1406.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
# Generated by Django 2.2.15 on 2020-08-31 14:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trekking', '0016_auto_20200708_1608'), ] operations = [ migrations.AlterField( model_name='poi', name='published', ...
31.172414
117
0.619469
fa391cf9f573f7b00bba1139516d99909b93dc56
1,210
py
Python
test1.py
NarmadaBalasooriya/Climate-Change-AI
2d773f6fa1c5f4669b5cd424ec0bc50a68bb47cc
[ "MIT" ]
6
2019-03-29T04:57:18.000Z
2021-07-16T07:16:20.000Z
test1.py
NarmadaBalasooriya/Climate-Change-AI
2d773f6fa1c5f4669b5cd424ec0bc50a68bb47cc
[ "MIT" ]
null
null
null
test1.py
NarmadaBalasooriya/Climate-Change-AI
2d773f6fa1c5f4669b5cd424ec0bc50a68bb47cc
[ "MIT" ]
2
2019-04-14T17:51:58.000Z
2022-01-11T13:39:38.000Z
import os import sys import os from options.test_options import TestOptions from data import create_dataset from models import create_model from util.visualizer import save_images from util import html from googlegeocoder import GoogleGeocoder import google_streetview.api google_key = "AIzaSyBDc5jaJG0k0...
24.693878
79
0.740496
ae6d8e5ba3d0877e00ce29f93a259ab60106c243
68
py
Python
src/Quotient.py
pgs8/IS601_Calculator-with-unit-tests
d6d2337b53a2c095d450bd31382bacdd3293e0b5
[ "MIT" ]
null
null
null
src/Quotient.py
pgs8/IS601_Calculator-with-unit-tests
d6d2337b53a2c095d450bd31382bacdd3293e0b5
[ "MIT" ]
null
null
null
src/Quotient.py
pgs8/IS601_Calculator-with-unit-tests
d6d2337b53a2c095d450bd31382bacdd3293e0b5
[ "MIT" ]
null
null
null
def division(a, b): return "{:.9f}".format(float(a) / float(b))
22.666667
47
0.573529
7b067c3a4147f4dd5ab37487bfca44ce8ed50043
4,080
py
Python
CPythonLib/test/test_pow.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
CPythonLib/test/test_pow.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
CPythonLib/test/test_pow.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
import sys import test_support def powtest(type): if type != float: print " Testing 2-argument pow() function..." for i in range(-1000, 1000): if pow(type(i), 0) != 1: raise ValueError, 'pow('+str(i)+',0) != 1' if pow(type(i), 1) != type(i): ...
32.380952
76
0.431127
c334b04d7d9773cc6b5b0f3d7b4db15c441f6dd5
437
py
Python
_includes/code/search-a-2d-matrix/solution.py
rajat19/interview-questions
cb1fa382a76f2f287f1c12dd3d1fca9bfb7fa311
[ "MIT" ]
null
null
null
_includes/code/search-a-2d-matrix/solution.py
rajat19/interview-questions
cb1fa382a76f2f287f1c12dd3d1fca9bfb7fa311
[ "MIT" ]
2
2022-03-01T06:30:35.000Z
2022-03-13T07:05:50.000Z
_includes/code/search-a-2d-matrix/solution.py
rajat19/interview-questions
cb1fa382a76f2f287f1c12dd3d1fca9bfb7fa311
[ "MIT" ]
1
2022-02-09T12:13:36.000Z
2022-02-09T12:13:36.000Z
from typing import List class Solution: def searchMatrix(self, matrix: List[List[int]], target: int) -> bool: n, m = len(matrix), len(matrix[0]) row, col = 0, m - 1 while row < n and col >= 0: cell = matrix[row][col] if cell == target: return True ...
25.705882
73
0.459954
aeeafe143045fdf0156c51f775732a3524b34fcc
72
py
Python
src/mixcli/command/util/__init__.py
zhuoyanli/nuance_mix_pycli
72fe76eb715d4e0be60616d282230fa90ad7250f
[ "MIT" ]
null
null
null
src/mixcli/command/util/__init__.py
zhuoyanli/nuance_mix_pycli
72fe76eb715d4e0be60616d282230fa90ad7250f
[ "MIT" ]
null
null
null
src/mixcli/command/util/__init__.py
zhuoyanli/nuance_mix_pycli
72fe76eb715d4e0be60616d282230fa90ad7250f
[ "MIT" ]
null
null
null
""" MixCli **util** command group for various **utility** use cases """
18
63
0.652778
8f607130081368c64b7d39d08ca5ef00f7c6b2bc
169
py
Python
ex12.py
AyeAyeNwe/python-exercises
68c4152e3527c04e5c0f2a6c34f66ad54701d715
[ "MIT" ]
null
null
null
ex12.py
AyeAyeNwe/python-exercises
68c4152e3527c04e5c0f2a6c34f66ad54701d715
[ "MIT" ]
null
null
null
ex12.py
AyeAyeNwe/python-exercises
68c4152e3527c04e5c0f2a6c34f66ad54701d715
[ "MIT" ]
null
null
null
age =input ("How old are you?") height =input("How tall are you?") weight =input("How much do you weight?") print(f"So,you're {age} old, {height} tall,{weight} heavy.")
33.8
60
0.668639
bedeb81f769aa8cc54a27406469a5b74d213b13b
4,320
py
Python
tests/clpy_tests/statics_tests/test_meanvar.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
142
2018-06-07T07:43:10.000Z
2021-10-30T21:06:32.000Z
tests/clpy_tests/statics_tests/test_meanvar.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
282
2018-06-07T08:35:03.000Z
2021-03-31T03:14:32.000Z
tests/clpy_tests/statics_tests/test_meanvar.py
fixstars/clpy
693485f85397cc110fa45803c36c30c24c297df0
[ "BSD-3-Clause" ]
19
2018-06-19T11:07:53.000Z
2021-05-13T20:57:04.000Z
import unittest from clpy import testing @testing.gpu class TestMeanVar(unittest.TestCase): _multiprocess_can_split_ = True @testing.for_all_dtypes() @testing.numpy_clpy_allclose() def test_mean_all(self, xp, dtype): a = testing.shaped_arange((2, 3), xp, dtype) return a.mean() ...
33.230769
55
0.661343
0e15cef9603b721450b5f024c55f54491a74886e
536
py
Python
wafer/registration/templatetags/wafer_crispy.py
drnlm/wafer
1d843190428c401df06fcdfb89d1f9d9af67229e
[ "ISC" ]
41
2015-03-16T17:47:00.000Z
2022-01-07T04:31:21.000Z
wafer/registration/templatetags/wafer_crispy.py
drnlm/wafer
1d843190428c401df06fcdfb89d1f9d9af67229e
[ "ISC" ]
338
2015-03-15T17:26:36.000Z
2021-12-02T04:34:53.000Z
wafer/registration/templatetags/wafer_crispy.py
drnlm/wafer
1d843190428c401df06fcdfb89d1f9d9af67229e
[ "ISC" ]
28
2015-07-27T14:11:13.000Z
2020-11-16T03:50:30.000Z
from django import template import sys register = template.Library() @register.simple_tag(takes_context=True) def wafer_form_helper(context, helper_name): ''' Find the specified Crispy FormHelper and instantiate it. Handy when you are crispyifying other apps' forms. ''' request = context.request ...
26.8
60
0.714552
581bda3b133a11f9bc14a9279b2a9d98497f451e
89
py
Python
app/app/mqtt/__init__.py
MartinHeinz/IoT-Cloud
2e6fddcfe2624862c9351759334a6655a896e8c7
[ "MIT" ]
14
2019-11-17T23:49:20.000Z
2022-02-04T23:28:45.000Z
app/app/mqtt/__init__.py
MartinHeinz/IoT-Cloud
2e6fddcfe2624862c9351759334a6655a896e8c7
[ "MIT" ]
3
2019-12-02T18:26:11.000Z
2021-04-30T20:46:06.000Z
app/app/mqtt/__init__.py
MartinHeinz/IoT-Cloud
2e6fddcfe2624862c9351759334a6655a896e8c7
[ "MIT" ]
4
2018-12-28T13:41:44.000Z
2020-09-13T14:14:06.000Z
from .mqtt import handle_on_connect, handle_on_log, handle_on_publish, handle_on_message
44.5
88
0.876404
107dd8de95264b97534c63c64ef1ae15b1f93e4b
2,145
py
Python
censusreporter/apps/census/management/commands/cache_to_s3.py
Durellg/censusreporter
c006c2f1c67fd29086fe532974f1eb57e70a0e2c
[ "MIT" ]
1
2020-07-15T23:47:28.000Z
2020-07-15T23:47:28.000Z
censusreporter/apps/census/management/commands/cache_to_s3.py
Durellg/censusreporter
c006c2f1c67fd29086fe532974f1eb57e70a0e2c
[ "MIT" ]
null
null
null
censusreporter/apps/census/management/commands/cache_to_s3.py
Durellg/censusreporter
c006c2f1c67fd29086fe532974f1eb57e70a0e2c
[ "MIT" ]
1
2020-07-17T17:49:42.000Z
2020-07-17T17:49:42.000Z
from django.core.management.base import BaseCommand from multiprocessing import Pool from traceback import format_exc from boto.s3.connection import S3Connection from boto.s3.key import Key import json import cStringIO import gzip from ...profile import geo_profile, enhance_api_data import logging logging.basicConfi...
27.151899
85
0.675524
62a3fb21823d64ea7d87192d63c3d02b9578f775
721
py
Python
tests/shuffle_tests.py
kimdiep/algorithmic-complexity
e3ffa1728f87a1a6a841b41a2784e32a76722a46
[ "MIT" ]
null
null
null
tests/shuffle_tests.py
kimdiep/algorithmic-complexity
e3ffa1728f87a1a6a841b41a2784e32a76722a46
[ "MIT" ]
null
null
null
tests/shuffle_tests.py
kimdiep/algorithmic-complexity
e3ffa1728f87a1a6a841b41a2784e32a76722a46
[ "MIT" ]
null
null
null
import pytest import sys sys.path.append('./') from shuffle import * # assumption made that array (list) input will not be empty [] def test_shuffle_for_empty_string(): arr = [''] assert type(random_shuffle(arr)) is list def test_shuffle_for_list_of_integers(): arr = [1,2,3,4,5] assert type(random_shuffle(ar...
26.703704
63
0.71706
b7aa9354ab6dbf172990c2cd0a590ec6f5fe0f81
3,787
py
Python
haiku/_src/initializers_test.py
madisonmay/dm-haiku
de95f6f83561edeb582d46b2e3bf135051792b91
[ "Apache-2.0" ]
null
null
null
haiku/_src/initializers_test.py
madisonmay/dm-haiku
de95f6f83561edeb582d46b2e3bf135051792b91
[ "Apache-2.0" ]
null
null
null
haiku/_src/initializers_test.py
madisonmay/dm-haiku
de95f6f83561edeb582d46b2e3bf135051792b91
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 DeepMind Technologies Limited. 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 # # ...
36.066667
80
0.70029
e459a6e688e3c9d51565d16f56827ef2e2a73d4d
160
py
Python
terraform_builder/release.py
mrlesmithjr/terraform-builder
08ed71333e988682ce50c6ef865fdd8ba27de395
[ "MIT" ]
7
2020-03-21T20:40:50.000Z
2022-02-17T17:17:53.000Z
terraform_builder/release.py
mrlesmithjr/terraform-builder
08ed71333e988682ce50c6ef865fdd8ba27de395
[ "MIT" ]
39
2020-03-24T04:37:21.000Z
2020-06-17T04:20:22.000Z
terraform_builder/release.py
mrlesmithjr/terraform-builder
08ed71333e988682ce50c6ef865fdd8ba27de395
[ "MIT" ]
null
null
null
"""terraform_builder/release.py""" # Version tracking for package. __author__ = 'Larry Smith Jr.' __version__ = '0.1.0' __package_name__ = 'terraform_builder'
22.857143
38
0.75
e624a1941ef6c296e1795cce20b65a8ad6927785
1,169
py
Python
orion/packages/utils/tests/test_nlp_utils.py
orion-search/orion-backend
b28815f85de1046612a777f290f982446b2a5ad7
[ "MIT" ]
19
2020-02-18T17:03:42.000Z
2021-09-22T08:02:17.000Z
orion/packages/utils/tests/test_nlp_utils.py
orion-search/orion-backend
b28815f85de1046612a777f290f982446b2a5ad7
[ "MIT" ]
116
2020-01-10T10:02:52.000Z
2022-03-01T23:10:10.000Z
orion/packages/utils/tests/test_nlp_utils.py
orion-search/orion-backend
b28815f85de1046612a777f290f982446b2a5ad7
[ "MIT" ]
2
2020-11-04T17:10:52.000Z
2021-02-14T18:37:02.000Z
import pytest from orion.packages.utils.nlp_utils import clean_name from orion.packages.utils.nlp_utils import identity_tokenizer def test_clean_name_from_double_initials(): name = "A. B. FooBar" result = clean_name(name) expected_result = None assert result == expected_result def test_clean_name...
20.155172
61
0.704021
ea2eff0ec5fc319d8de4393ae9a6cd9d4f6d1e94
937
py
Python
flask_wtforms_tutorial/routes.py
msmith2777/FinalProjectReal
460b302b783aae0857742e23b70dfdd110169689
[ "MIT" ]
null
null
null
flask_wtforms_tutorial/routes.py
msmith2777/FinalProjectReal
460b302b783aae0857742e23b70dfdd110169689
[ "MIT" ]
null
null
null
flask_wtforms_tutorial/routes.py
msmith2777/FinalProjectReal
460b302b783aae0857742e23b70dfdd110169689
[ "MIT" ]
2
2020-12-08T01:28:41.000Z
2020-12-08T01:32:16.000Z
from flask import current_app as app from flask import redirect, render_template, url_for, request, flash from .forms import * #@app.route("/", methods=['GET', 'POST']) @app.route("/", methods=['GET', 'POST']) def user_options(): form = UserOptionForm() if request.method == 'POST' and form.validate_on_s...
26.027778
84
0.649947
36f5f5cc29e885c74f5d25f35fc3a0ed20b52a2e
144,350
py
Python
upstream/emscripten/emcc.py
mkonicek/wasm
47441e963566ecb159f457eaf635a9822ecea056
[ "MIT" ]
1
2021-04-25T23:39:18.000Z
2021-04-25T23:39:18.000Z
emcc.py
intgr/emscripten
dff33368427fba16745c8ce52f11484a67b2855d
[ "MIT" ]
null
null
null
emcc.py
intgr/emscripten
dff33368427fba16745c8ce52f11484a67b2855d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2011 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. """emcc - compiler helper script =============...
40.788358
379
0.68778
d0ffe439a5100948d7cf1c382079496b47f642cf
9,047
py
Python
examples/imagenet_resnet.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
2
2021-05-29T11:18:14.000Z
2021-09-09T14:29:21.000Z
examples/imagenet_resnet.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
null
null
null
examples/imagenet_resnet.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
1
2021-05-01T16:34:37.000Z
2021-05-01T16:34:37.000Z
import numpy as np from athena import ndarray from athena import gpu_ops as ad from athena.microopOptimizer import microopOptimizer from athena.microopPlanner import microopPlanner import time import argparse executor_ctx = ndarray.gpu(0) variable_list = [] val_list = [] rand = np.random.RandomState(seed=123) def ge...
43.917476
137
0.644965
c561c60814830df21204d975ebd5334913b04625
452
py
Python
app/main/model/example.py
Eliotdoesprogramming/python.flask.sqlalchemy.Rest_Api_Template
3f0a98ae4676aef9ecdf0df70eb9d1990fee6182
[ "MIT" ]
null
null
null
app/main/model/example.py
Eliotdoesprogramming/python.flask.sqlalchemy.Rest_Api_Template
3f0a98ae4676aef9ecdf0df70eb9d1990fee6182
[ "MIT" ]
null
null
null
app/main/model/example.py
Eliotdoesprogramming/python.flask.sqlalchemy.Rest_Api_Template
3f0a98ae4676aef9ecdf0df70eb9d1990fee6182
[ "MIT" ]
null
null
null
#Example model from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow #single instance of SQLAlchemy and Marshmallow from model import db,ma class Example(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(100), unique=True) def __init__(self,nam...
22.6
49
0.721239
381009228a8252bd40e6701ceb78dc83ac57ba99
2,413
py
Python
src/bilder/components/hashicorp/consul/steps.py
mitodl/ol-infrastructure
f09912e39ff280575964a4df7c004fde58912636
[ "BSD-3-Clause" ]
25
2020-07-10T21:05:43.000Z
2022-03-09T03:55:30.000Z
src/bilder/components/hashicorp/consul/steps.py
mitodl/ol-infrastructure
f09912e39ff280575964a4df7c004fde58912636
[ "BSD-3-Clause" ]
423
2020-06-23T18:00:43.000Z
2022-03-31T17:44:08.000Z
src/bilder/components/hashicorp/consul/steps.py
mitodl/ol-infrastructure
f09912e39ff280575964a4df7c004fde58912636
[ "BSD-3-Clause" ]
null
null
null
import tempfile from pathlib import Path from pyinfra.api import deploy from pyinfra.operations import apt, files, systemd from bilder.facts import has_systemd # noqa: F401 @deploy("Set up DNS proxy") def proxy_consul_dns(state=None, host=None): apt.packages( name="Install Unbound for DNS proxying", ...
33.513889
87
0.598425
ea5dd6948b112404c7951bc7039840c85579f74c
19,352
py
Python
tests/python/relay/test_op_level1.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2021-12-29T00:04:56.000Z
2021-12-29T00:04:56.000Z
tests/python/relay/test_op_level1.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2017-12-09T06:30:45.000Z
2017-12-09T22:53:23.000Z
tests/python/relay/test_op_level1.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2021-02-06T01:56:20.000Z
2021-02-06T01:56:20.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...
37.945098
97
0.574204
ab8068a772476b1a9925a4766fde1c9646f25d9f
8,467
py
Python
projects/DensePose/query_db.py
aminekechaou/detectron2
3772b9316f8a2e6bf55cf5868dd64214d7f7c49a
[ "Apache-2.0" ]
null
null
null
projects/DensePose/query_db.py
aminekechaou/detectron2
3772b9316f8a2e6bf55cf5868dd64214d7f7c49a
[ "Apache-2.0" ]
null
null
null
projects/DensePose/query_db.py
aminekechaou/detectron2
3772b9316f8a2e6bf55cf5868dd64214d7f7c49a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import argparse import logging import os import sys from timeit import default_timer as timer from typing import Any, ClassVar, Dict, List import torch from detectron2.data.catalog import DatasetCatalog from detectron2.utils...
33.733068
96
0.662218
2ba83d342e2b8d9bc1ecc6d29d0f179c4a0d0f5f
718
py
Python
tests/__init__.py
py-graphit/py-graphit
533ef47e279fc07d9a88f86cc9d19f09d56176f9
[ "Apache-2.0" ]
1
2018-12-02T18:56:34.000Z
2018-12-02T18:56:34.000Z
tests/__init__.py
py-graphit/py-graphit
533ef47e279fc07d9a88f86cc9d19f09d56176f9
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
py-graphit/py-graphit
533ef47e279fc07d9a88f86cc9d19f09d56176f9
[ "Apache-2.0" ]
1
2018-12-02T15:29:41.000Z
2018-12-02T15:29:41.000Z
# -*- coding: utf-8 -*- """ Python function for graphit module, run as: :: test = module_test_suite() runner = unittest.TextTestRunner(verbosity=2) runner.run(test) """ import os import sys import unittest import logging # Init basic logging logging.basicConfig(level=logging.DEBUG) # Add modules in pack...
21.757576
76
0.696379
de9ee1bd198feb492e486c02fdbd28913d5b3d76
72,409
py
Python
ibeis/init/filter_annots.py
holmbergius/ibeisold
da3a1480057a6a5d5c68304760642edaae680502
[ "Apache-2.0" ]
1
2019-01-17T22:59:14.000Z
2019-01-17T22:59:14.000Z
ibeis/init/filter_annots.py
holmbergius/ibeisold
da3a1480057a6a5d5c68304760642edaae680502
[ "Apache-2.0" ]
null
null
null
ibeis/init/filter_annots.py
holmbergius/ibeisold
da3a1480057a6a5d5c68304760642edaae680502
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ TODO: * cross validation * encounter vs database (time filtering) """ from __future__ import absolute_import, division, print_function, unicode_literals import functools import copy import utool as ut import numpy as np import six from ibeis.control import controller_inject (print, r...
41.734294
172
0.624108
b6095822319babe263c7cf53357d80cd643fe795
21,059
py
Python
tests/unit/test_control_connection.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
tests/unit/test_control_connection.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
tests/unit/test_control_connection.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2015 DataStax, 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 writi...
41.373281
146
0.654779
531d49468644796d0b5e5c03e19af41595f70d3d
3,063
py
Python
ml-app/entities/learn/classification/model.py
janove51/ml-app
0d66aa4c25648f2059eb645b7f8081f028fac703
[ "MIT" ]
null
null
null
ml-app/entities/learn/classification/model.py
janove51/ml-app
0d66aa4c25648f2059eb645b7f8081f028fac703
[ "MIT" ]
null
null
null
ml-app/entities/learn/classification/model.py
janove51/ml-app
0d66aa4c25648f2059eb645b7f8081f028fac703
[ "MIT" ]
null
null
null
import os, sys sys.path.append(os.path.abspath('../')) from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import GridSearchCV, RandomizedSearchCV import numpy as np import classification.utils def assemble_param_grid_rfc(nr_trees_min=200, nr_trees_max=2000, nr_trees_options=10, ...
38.772152
144
0.69507
802d18b8c7aead93622047d9327b29be53f9a315
1,417
py
Python
metadata_replace/test_mrepr.py
Preocts/python_play_carton
071b19a6b5a6420192cd262195f95acfd787b476
[ "MIT" ]
null
null
null
metadata_replace/test_mrepr.py
Preocts/python_play_carton
071b19a6b5a6420192cd262195f95acfd787b476
[ "MIT" ]
null
null
null
metadata_replace/test_mrepr.py
Preocts/python_play_carton
071b19a6b5a6420192cd262195f95acfd787b476
[ "MIT" ]
null
null
null
from typing import Dict import pytest import mrepr @pytest.mark.parametrize( ("in_", "keypairs", "expected"), ( ("{{metatag}}", {"metatag": "replaced"}, "replaced"), ("{{metaTag }}", {"metatag": "replaced"}, "replaced"), ("{{ metaTag}}", {"metatag": "replaced"}, "replaced"), ...
32.204545
85
0.485533
aba541e9ddbfb81741a63ed6f9bfc25859cd943a
7,358
py
Python
blog/migrations/0001_initial.py
mayankchauhan96/Travel-Blogging-website
c1aa425e961fe1158159dea4f2d97df79a0ee917
[ "Apache-2.0" ]
null
null
null
blog/migrations/0001_initial.py
mayankchauhan96/Travel-Blogging-website
c1aa425e961fe1158159dea4f2d97df79a0ee917
[ "Apache-2.0" ]
12
2021-03-19T09:05:16.000Z
2022-03-12T00:39:11.000Z
blog/migrations/0001_initial.py
mayankchauhan96/Travel-Blogging-website
c1aa425e961fe1158159dea4f2d97df79a0ee917
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.5 on 2021-01-07 18:40 import autoslug.fields import ckeditor_uploader.fields import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion import sorl.thumbnail.fields class Migration(migrations.Migration): initial = True ...
68.766355
1,155
0.593368
0751e5b7b2e7d7149747c66d079210a6c122013a
6,189
py
Python
learnedevolution/bins/evaluate_sweep.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
learnedevolution/bins/evaluate_sweep.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
learnedevolution/bins/evaluate_sweep.py
realtwister/LearnedEvolution
2ec49b50a49acae9693cfb05ac114dfbcc4aa337
[ "MIT" ]
null
null
null
from .utils import confirm import re import ast from tempfile import TemporaryDirectory from time import sleep VAR_REGEX = re.compile("<<VARIABLE:[a-zA-Z0-9_.,{} ()\+\"\'\[\]\-]+>>"); SPACE_REGEX = re.compile("{{[a-zA-Z0-9_., ()\"\'\[\]\+\-]+}}"); SPEC_VAR_REGEX = lambda var: "<<VARIABLE:"+var+"(|{{[a-zA-Z0-9_., \"\'{...
34.966102
165
0.59832
7b15209c18723fbcf9e43587da32c91117223168
4,755
py
Python
utils/utils.py
HerrYu123/deeplabv3
4f29d2bfb725a77b22fb04e1e0006ae742fa5d47
[ "MIT" ]
null
null
null
utils/utils.py
HerrYu123/deeplabv3
4f29d2bfb725a77b22fb04e1e0006ae742fa5d47
[ "MIT" ]
null
null
null
utils/utils.py
HerrYu123/deeplabv3
4f29d2bfb725a77b22fb04e1e0006ae742fa5d47
[ "MIT" ]
null
null
null
# camera-ready import torch import torch.nn as nn from ipdb import set_trace as b import os import numpy as np def add_weight_decay(net, l2_value, skip_list=()): # https://raberrytv.wordpress.com/2017/10/29/pytorch-weight-decay-made-easy/ decay, no_decay = [], [] for name, param in net.named_parameters(...
27.485549
99
0.403575
f1b8969bc44b62acdc8fb81804d7a5852739b22a
444
py
Python
01 - Basics/39-datatypes-numerics.py
python-demo-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
2
2019-08-23T06:05:55.000Z
2019-08-26T03:56:07.000Z
01 - Basics/39-datatypes-numerics.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
null
null
null
01 - Basics/39-datatypes-numerics.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
4
2020-10-01T07:16:07.000Z
2021-07-17T07:55:08.000Z
# HEAD # Python Basics - Numeric Data Type # DESCRIPTION # Describes # - how numerics are assigned to variables # - how string like numerics are converted to numerics (type conversion) # # RESOURCES # # CORE PYTHON DATA TYPES # # Integer # # INTEGER # Integer like Numeric var = 1 # Convert a Integer li...
18.5
78
0.693694
b221045328dbd3509906cd2ad24fc337afa2668a
107,316
py
Python
Lib/test/test_enum.py
ekgus9701/python_practice
b01fa0924752d55e9b2651745c1422d1045bd7a6
[ "bzip2-1.0.6" ]
18
2016-03-04T15:44:24.000Z
2021-12-31T11:06:25.000Z
Software/Python-3.7.2/mybuild/lib/python3.7/test/test_enum.py
KHsu2/gelsightmini_tracking
8f06a8f5e8e376305584d4b3db8c7b47fea90b39
[ "MIT" ]
49
2016-02-29T17:59:52.000Z
2019-05-05T04:59:26.000Z
Software/Python-3.7.2/mybuild/lib/python3.7/test/test_enum.py
KHsu2/gelsightmini_tracking
8f06a8f5e8e376305584d4b3db8c7b47fea90b39
[ "MIT" ]
5
2018-02-21T02:13:36.000Z
2019-10-07T02:01:32.000Z
import enum import inspect import pydoc import unittest import threading from collections import OrderedDict from enum import Enum, IntEnum, EnumMeta, Flag, IntFlag, unique, auto from io import StringIO from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL from test import support from datetime import timede...
36.084734
103
0.539603
198be4e3a3527accfaa4fd967fee6bb8c87c538c
1,030
py
Python
sclrecommender/matrix/oneClassMatrix.py
wezteoh/Bandit_Recommendation
a326e4d1d082e1a2113fe739bc343fb45b0b8a4a
[ "MIT" ]
null
null
null
sclrecommender/matrix/oneClassMatrix.py
wezteoh/Bandit_Recommendation
a326e4d1d082e1a2113fe739bc343fb45b0b8a4a
[ "MIT" ]
null
null
null
sclrecommender/matrix/oneClassMatrix.py
wezteoh/Bandit_Recommendation
a326e4d1d082e1a2113fe739bc343fb45b0b8a4a
[ "MIT" ]
null
null
null
import numpy as np from .recommenderMatrix import RecommenderMatrix class OneClassMatrix(RecommenderMatrix): def __init__(self, ratingMatrix, positiveThreshold): ''' Generates a matrix of 1,0 where: 1 => This is a positive item 0 => Don't know anything about this data, might...
36.785714
125
0.673786
9e753ed97bec391dcf4076bfbdc6088dae8aa092
8,591
py
Python
official/r1/transformer/translate.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
15
2019-11-06T17:23:27.000Z
2021-07-17T16:03:01.000Z
official/r1/transformer/translate.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
16
2020-01-28T22:22:10.000Z
2022-03-12T00:10:37.000Z
official/r1/transformer/translate.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
13
2019-11-06T17:23:29.000Z
2019-11-29T13:03:07.000Z
# Copyright 2018 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...
36.096639
80
0.701315
719f7961b45149cc58fcb7c8e3106d03315c73bd
1,560
py
Python
test_autolens/integration/tests/features/model_mapper/link_variable_float_to_next_phase.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
null
null
null
test_autolens/integration/tests/features/model_mapper/link_variable_float_to_next_phase.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
null
null
null
test_autolens/integration/tests/features/model_mapper/link_variable_float_to_next_phase.py
PyJedi/PyAutoLens
bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7
[ "MIT" ]
null
null
null
import autofit as af import autolens as al from test_autolens.integration.tests.imaging import runner test_type = "model_mapper" test_name = "link_model_float_to_next_phase" data_type = "lens_light_dev_vaucouleurs" data_resolution = "lsst" def make_pipeline(name, phase_folders, non_linear_class=af.MultiNest): p...
29.433962
87
0.705769
553b06e0a446030f7c5e2713c926ccf0d4a76673
179
py
Python
tests/IT/fixtures/test_class_inheritance_1.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
tests/IT/fixtures/test_class_inheritance_1.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
5
2018-12-27T02:52:01.000Z
2019-01-02T01:52:55.000Z
tests/IT/fixtures/test_class_inheritance_1.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
class TestObject1(object): @classmethod def setup_class(cls): pass @classmethod def teardown_class(cls): pass def test1(self): pass
13.769231
28
0.586592
4c9f21b5189e0437fdf3b93c2ffb700c8fa68fd3
1,697
py
Python
register/admin.py
yashiki-takajin/sfa-next
049058a37b9ee45b58be5f4393a0b3191362043c
[ "MIT" ]
19
2018-11-23T10:13:14.000Z
2022-03-26T11:57:55.000Z
register/admin.py
yashiki-takajin/sfa-next
049058a37b9ee45b58be5f4393a0b3191362043c
[ "MIT" ]
3
2020-06-05T19:25:20.000Z
2021-06-10T20:59:30.000Z
register/admin.py
yashiki-takajin/sfa-next
049058a37b9ee45b58be5f4393a0b3191362043c
[ "MIT" ]
8
2019-04-21T11:08:22.000Z
2021-12-08T09:38:30.000Z
from django.conf import settings from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import UserChangeForm, UserCreationForm from django.utils.translation import ugettext_lazy as _ from .models import MyGroup, User, Workspace class MyUserChangeForm(UserChang...
27.370968
75
0.619328
e90383e6a38a73dae3c92637ab5519b03942ed6b
2,618
py
Python
src/squirrel/repo/setuprepolist.py
bvz2000/squirrel
5d3ba00825aaa5337d8972a0edc6530230a8a754
[ "Unlicense" ]
null
null
null
src/squirrel/repo/setuprepolist.py
bvz2000/squirrel
5d3ba00825aaa5337d8972a0edc6530230a8a754
[ "Unlicense" ]
null
null
null
src/squirrel/repo/setuprepolist.py
bvz2000/squirrel
5d3ba00825aaa5337d8972a0edc6530230a8a754
[ "Unlicense" ]
null
null
null
import inspect import os from bvzconfig import Config from squirrel.shared.constants import * from squirrel.shared.squirrelerror import SquirrelError # ---------------------------------------------------------------------------------------------------------------------- def validate_repo_list(repo_list_obj, ...
35.863014
120
0.599312
940f817959ca8cffa6953eacdb0ba9f983f03d21
1,600
py
Python
src/vsc/model/expr_fieldref_model.py
edcote/pyvsc
18261852ca502291e0ac3266d1c0d2dd91317b01
[ "Apache-2.0" ]
null
null
null
src/vsc/model/expr_fieldref_model.py
edcote/pyvsc
18261852ca502291e0ac3266d1c0d2dd91317b01
[ "Apache-2.0" ]
null
null
null
src/vsc/model/expr_fieldref_model.py
edcote/pyvsc
18261852ca502291e0ac3266d1c0d2dd91317b01
[ "Apache-2.0" ]
1
2021-09-12T23:39:58.000Z
2021-09-12T23:39:58.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...
30.188679
99
0.668125
924161ab6ff3e212d92fcdb31f6aa1f77453385b
11,340
py
Python
host/greatfet/utils.py
grvvy/greatfet
e8098307960a60e34c27ed2903f7abc2252b4cce
[ "BSD-3-Clause" ]
328
2015-08-30T03:10:50.000Z
2022-03-31T12:47:48.000Z
host/greatfet/utils.py
grvvy/greatfet
e8098307960a60e34c27ed2903f7abc2252b4cce
[ "BSD-3-Clause" ]
231
2017-02-11T23:21:31.000Z
2022-03-27T23:07:43.000Z
host/greatfet/utils.py
grvvy/greatfet
e8098307960a60e34c27ed2903f7abc2252b4cce
[ "BSD-3-Clause" ]
94
2015-09-27T15:01:04.000Z
2022-02-26T15:41:20.000Z
# # This file is part of GreatFET # """ Utilities that help in writing simple scripts for GreatFET. """ from __future__ import print_function import sys import ast import time import errno import argparse from decimal import Decimal from . import GreatFET, _GreatFETSingletonWrapper from .boards.flash_stub impor...
33.850746
145
0.620106
022a4ac73afffd134ee4c35bf3dbba7ed2214bff
3,260
py
Python
tests/app/states/test_states.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
16
2018-03-20T09:06:23.000Z
2021-09-08T18:46:15.000Z
tests/app/states/test_states.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
118
2015-05-13T07:50:04.000Z
2018-02-14T17:37:20.000Z
tests/app/states/test_states.py
jerjohste/exopy
0fe3eb94f440ead88c396a1abccf7c22dd633a61
[ "BSD-3-Clause" ]
11
2018-03-02T11:17:26.000Z
2021-06-23T22:25:40.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018 by Exopy Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ---------------...
31.650485
79
0.55
92dfc564442a9268d1dd23dcff29aae550306c0f
5,583
py
Python
tempest/api/network/test_allowed_address_pair.py
gamado/ds_tempest_rm_me_please
3f5d149b3a32e713c60c59a054035ac2e5c73c28
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_allowed_address_pair.py
gamado/ds_tempest_rm_me_please
3f5d149b3a32e713c60c59a054035ac2e5c73c28
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_allowed_address_pair.py
gamado/ds_tempest_rm_me_please
3f5d149b3a32e713c60c59a054035ac2e5c73c28
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 OpenStack Foundation # 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 requ...
41.355556
78
0.687802
17587c72b4d27646a4c02786287b2feeccaaa19e
2,172
py
Python
nfmanagementapi/resources/ServiceGroupObjectCollectionResource.py
nfirewall/nfmapi
7232975711ad01b031ed50d7f26936afcfe5312a
[ "MIT" ]
null
null
null
nfmanagementapi/resources/ServiceGroupObjectCollectionResource.py
nfirewall/nfmapi
7232975711ad01b031ed50d7f26936afcfe5312a
[ "MIT" ]
null
null
null
nfmanagementapi/resources/ServiceGroupObjectCollectionResource.py
nfirewall/nfmapi
7232975711ad01b031ed50d7f26936afcfe5312a
[ "MIT" ]
null
null
null
from nfmanagementapi.models import ServiceGroupObject from nfmanagementapi.schemata import ServiceGroupObjectSchema from marshmallow.exceptions import ValidationError from .BaseResource import BaseResource from flask import request from app import db from uuid import uuid4 path = 'service_groups' endpoint = 'service_g...
28.96
61
0.573665
65eadbf7310ec6c0e373b6428d5da182bb6f92e7
1,294
py
Python
domain/src/entity/profile_entity.py
python-jacksonsr45/web_services
6e37d4f00e9e59a35f06f05ce955ba53242ed9ee
[ "MIT" ]
null
null
null
domain/src/entity/profile_entity.py
python-jacksonsr45/web_services
6e37d4f00e9e59a35f06f05ce955ba53242ed9ee
[ "MIT" ]
null
null
null
domain/src/entity/profile_entity.py
python-jacksonsr45/web_services
6e37d4f00e9e59a35f06f05ce955ba53242ed9ee
[ "MIT" ]
null
null
null
import uuid from datetime import datetime class ProfileEntity: def __init__( self, profile_id: str = None, name: str = None, last_name: str = None, document_id: str = None, phone: str = None, mobile_phone: str = None, created_at: str = None, ): ...
23.962963
44
0.581917
074ce6df69a6b4d417be3161cf6e84eba92c6b21
6,039
py
Python
plotly/graph_objs/scattergl/_line.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/graph_objs/scattergl/_line.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/graph_objs/scattergl/_line.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
from plotly.basedatatypes import BaseTraceHierarchyType import copy class Line(BaseTraceHierarchyType): # color # ----- @property def color(self): """ Sets the line color. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') ...
32.294118
78
0.536181
033760337b8304a4ccb5609b7cb5f461908a1b8d
2,146
py
Python
netmiko-interface-example/device_info.py
vabmalikusa/python_code_samples_network
441e6202a69ab94102d9f392e7fea87968f8d09b
[ "MIT" ]
522
2017-02-09T15:28:23.000Z
2022-03-29T18:22:24.000Z
netmiko-interface-example/device_info.py
vabmalikusa/python_code_samples_network
441e6202a69ab94102d9f392e7fea87968f8d09b
[ "MIT" ]
10
2018-03-12T14:47:09.000Z
2021-07-15T15:53:48.000Z
netmiko-interface-example/device_info.py
vabmalikusa/python_code_samples_network
441e6202a69ab94102d9f392e7fea87968f8d09b
[ "MIT" ]
360
2017-02-14T17:41:00.000Z
2022-03-07T07:29:18.000Z
#! /usr/bin/env python """Device Details for DevNet Sandboxes This script is imported into other code. Copyright (c) 2018 Cisco and/or its affiliates. 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 Soft...
37.649123
108
0.695713
55cd50b3406fdee633923b952c0960f3234b70dd
1,768
py
Python
bg.py
FrasSmith/backgrads
65cc952e72575f3a4c1d9ad68cd942706229a811
[ "Apache-2.0" ]
null
null
null
bg.py
FrasSmith/backgrads
65cc952e72575f3a4c1d9ad68cd942706229a811
[ "Apache-2.0" ]
null
null
null
bg.py
FrasSmith/backgrads
65cc952e72575f3a4c1d9ad68cd942706229a811
[ "Apache-2.0" ]
null
null
null
# from .image import render_image import PIL from PIL import ImageFont from PIL import Image from PIL import ImageDraw import numpy as np width = 1024 depth = 1024 colourRange = 'full' # ('dark', 'light', 'full') filename = 'output.png' def render_image(backWidth, backDepth, filename, colours='full'): if colourR...
36.081633
101
0.687783
3f0b8fb85ba3433adc4a19f44936ea1d24c04740
1,274
py
Python
main.py
lee15253/edl_bk
6777f5803138e6a64dabb096fe18a495728aabe3
[ "MIT" ]
null
null
null
main.py
lee15253/edl_bk
6777f5803138e6a64dabb096fe18a495728aabe3
[ "MIT" ]
null
null
null
main.py
lee15253/edl_bk
6777f5803138e6a64dabb096fe18a495728aabe3
[ "MIT" ]
null
null
null
# Copyright (c) 2019, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: MIT # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT import ipdb if __name__ == "__main__": import torch.multiprocessing as mp # https://github.com/pytorch/pytorch/i...
31.073171
101
0.694662
e9118d1ffe9715cecd0e9e336a3bc85ce92829db
4,455
py
Python
opendeep/log/logger.py
vitruvianscience/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
252
2015-03-13T21:55:22.000Z
2021-09-06T21:37:38.000Z
opendeep/log/logger.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
16
2015-03-14T06:47:04.000Z
2016-09-23T19:13:35.000Z
opendeep/log/logger.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
68
2015-03-14T00:05:53.000Z
2020-06-04T13:36:13.000Z
""" Configuring the logger for our example needs. By default in the logging_config.json file, this will print logging levels of info and higher to log files in the logs/ directory. Debug goes to console. """ # standard libraries import os import logging import logging.config import json # internal references from opend...
40.135135
118
0.595511
eb6a5261872eeb42706a34a1204ed8449fc7e138
877
py
Python
COLAB-GOOGLE-Practices/colab google/data/L3/l3.py
ailabteam/Daily-Working
0a36b5b6e92941e2e101a151eda202cb57567f4a
[ "MIT" ]
1
2019-10-24T04:19:00.000Z
2019-10-24T04:19:00.000Z
COLAB-GOOGLE-Practices/colab google/data/L3/l3.py
ailabteam/Daily-Working
0a36b5b6e92941e2e101a151eda202cb57567f4a
[ "MIT" ]
null
null
null
COLAB-GOOGLE-Practices/colab google/data/L3/l3.py
ailabteam/Daily-Working
0a36b5b6e92941e2e101a151eda202cb57567f4a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 5 10:56:14 2019 @author: DELL """ import numpy as np import pandas as pd import matplotlib.pyplot as plt # Hàm sigmoid def sigmoid(x): return 1 / (1 + np.exp(-x)) # Toán tử AND plt.scatter([1], [1], c='red', edgecolors='none', s=30, label='cho vay') plt.scatter([0...
26.575758
85
0.588369
c10fc98f6f9cd46663649e015de46f17bd21c926
10,918
py
Python
statsmodels/graphics/tsaplots.py
larsoner/statsmodels
e0b772ed95880e58fd0c089c04ab01eb393c2485
[ "BSD-3-Clause" ]
6
2017-08-23T12:43:44.000Z
2021-08-18T08:20:15.000Z
statsmodels/graphics/tsaplots.py
bert9bert/statsmodels
898ddfc483c45bb0f8e5156dd8506abda84c9b63
[ "BSD-3-Clause" ]
null
null
null
statsmodels/graphics/tsaplots.py
bert9bert/statsmodels
898ddfc483c45bb0f8e5156dd8506abda84c9b63
[ "BSD-3-Clause" ]
3
2017-08-23T12:43:49.000Z
2018-04-24T02:27:33.000Z
"""Correlation plot functions.""" import numpy as np from statsmodels.compat.pandas import sort_values from statsmodels.graphics import utils from statsmodels.tsa.stattools import acf, pacf def _prepare_data_corr_plot(x, lags, zero): zero = bool(zero) irregular = False if zero else True if lags is None...
33.388379
86
0.632259
80b49d0ae4cf3e9c0edaafde8d39e6770890217f
454
py
Python
Sorting/problems/two_array_element_swap.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
3
2022-01-09T04:33:04.000Z
2022-02-04T17:40:43.000Z
Sorting/problems/two_array_element_swap.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
null
null
null
Sorting/problems/two_array_element_swap.py
kimjiwook0129/Coding-Interivew-Cheatsheet
574e6acecdb617b9c3cef7ec3b154ab183d8b99a
[ "MIT" ]
null
null
null
# 이것이 코딩테스트다 p.182 import sys if __name__ == "__main__": N, K = map(int, input().split()) lst_A = list(map(int, sys.stdin.readline().rstrip().split())) lst_B = list(map(int, sys.stdin.readline().rstrip().split())) lst_A.sort() lst_B.sort() for i in range(K): a = lst_A[i] b = l...
25.222222
65
0.506608
0eaeead28a385652269daff022ab2b305aec76f0
902
py
Python
setup.py
HaxballGym/HaxballGym-tools
ec627801c7eac1ebf71fef75b4c3696fd1baea27
[ "Apache-2.0" ]
null
null
null
setup.py
HaxballGym/HaxballGym-tools
ec627801c7eac1ebf71fef75b4c3696fd1baea27
[ "Apache-2.0" ]
null
null
null
setup.py
HaxballGym/HaxballGym-tools
ec627801c7eac1ebf71fef75b4c3696fd1baea27
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages __version__ = None # This will get replaced when reading version.py exec(open('haxballgym_tools/version.py').read()) with open('README.md', 'r') as readme_file: long_description = readme_file.read() setup( name='haxballgym_tools', packages=find_packages(), ...
31.103448
69
0.677384
6f8011a6cf74ce96501920266aa080d8474f355a
3,262
py
Python
manila_ui/dashboards/admin/share_instances/views.py
mail2nsrajesh/manila-ui
6c55579d69083525b40ad85a2bd83deebbaa9eeb
[ "Apache-2.0" ]
null
null
null
manila_ui/dashboards/admin/share_instances/views.py
mail2nsrajesh/manila-ui
6c55579d69083525b40ad85a2bd83deebbaa9eeb
[ "Apache-2.0" ]
null
null
null
manila_ui/dashboards/admin/share_instances/views.py
mail2nsrajesh/manila-ui
6c55579d69083525b40ad85a2bd83deebbaa9eeb
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Mirantis, 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 agr...
37.068182
78
0.685162
533bc04a57f367682885026a43c5f20be1049f65
1,967
py
Python
grr/server/grr_response_server/gui/api_plugins/config_regression_test.py
tsehori/grr
048506f22f74642bfe61749069a45ddf496fdab3
[ "Apache-2.0" ]
1
2021-07-01T01:43:06.000Z
2021-07-01T01:43:06.000Z
grr/server/grr_response_server/gui/api_plugins/config_regression_test.py
tsehori/grr
048506f22f74642bfe61749069a45ddf496fdab3
[ "Apache-2.0" ]
44
2021-05-14T22:49:24.000Z
2022-03-13T21:54:02.000Z
grr/server/grr_response_server/gui/api_plugins/config_regression_test.py
tsehori/grr
048506f22f74642bfe61749069a45ddf496fdab3
[ "Apache-2.0" ]
1
2020-06-25T14:25:54.000Z
2020-06-25T14:25:54.000Z
#!/usr/bin/env python # Lint as: python3 """This modules contains regression tests for config API handler.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from absl import app from grr_response_server.gui import api_regression_test_lib from grr_respons...
26.581081
81
0.758516
644d6fd768fbd4fbfa0d82a696d80bff9bc7e645
4,453
gyp
Python
shared_model/packages/javascript/binding.gyp
steephengeorge/iroha
9e0e19035308c6ebaf706f709c5b7b3ac46e708b
[ "Apache-2.0" ]
null
null
null
shared_model/packages/javascript/binding.gyp
steephengeorge/iroha
9e0e19035308c6ebaf706f709c5b7b3ac46e708b
[ "Apache-2.0" ]
null
null
null
shared_model/packages/javascript/binding.gyp
steephengeorge/iroha
9e0e19035308c6ebaf706f709c5b7b3ac46e708b
[ "Apache-2.0" ]
null
null
null
{ 'variables': { 'iroha_home_dir': '../../../' }, 'targets': [ { 'target_name': 'shared_model', 'type': 'none', 'actions': [ { 'action_name': 'configure', 'message': 'Generate CMake build configuration for shared_model...', 'inputs': [ '<...
33.734848
116
0.551314
36527fe25558e6edecd224b2cea50bc2e0c8b979
1,297
py
Python
vanmongo/connection.py
SatelCreative/vanmongo
9037c0c0ad56f6fa3fb687c48607c285c4e14a03
[ "MIT" ]
null
null
null
vanmongo/connection.py
SatelCreative/vanmongo
9037c0c0ad56f6fa3fb687c48607c285c4e14a03
[ "MIT" ]
5
2021-06-25T17:49:21.000Z
2021-09-15T00:15:58.000Z
vanmongo/connection.py
SatelCreative/vanmongo
9037c0c0ad56f6fa3fb687c48607c285c4e14a03
[ "MIT" ]
null
null
null
from __future__ import annotations from base64 import b64decode, b64encode from typing import Any, Generic, List, Optional, Type, TypeVar from pydantic import BaseModel from pydantic.generics import GenericModel Node = TypeVar("Node") Model = TypeVar("Model", bound=BaseModel) def base64_encode_model(model: Model) ...
21.983051
69
0.718581
d2adeba08a4794c3c7b4cb4a13be4a8e631bafdc
20,409
py
Python
tools/rating_curve_comparison.py
hohe12ly/inundation-mapping
d133addd4d730b5c468dcf1a8f7dfab35c55cbd7
[ "Info-ZIP" ]
25
2020-10-13T17:45:31.000Z
2022-01-25T18:35:49.000Z
tools/rating_curve_comparison.py
dhardestylewis/cahaba
dcf414f5655ecafbf8bb62cd219aef405e55f0a2
[ "Info-ZIP" ]
422
2020-10-06T16:48:38.000Z
2022-02-03T22:43:23.000Z
tools/rating_curve_comparison.py
dhardestylewis/cahaba
dcf414f5655ecafbf8bb62cd219aef405e55f0a2
[ "Info-ZIP" ]
7
2020-10-06T16:17:49.000Z
2021-12-07T23:16:05.000Z
#!/usr/bin/env python3 import os import sys import pandas as pd import numpy as np import argparse import matplotlib.pyplot as plt import seaborn as sns from functools import reduce from multiprocessing import Pool from os.path import isfile, join import shutil import warnings from pathlib import Path import time warn...
44.854945
222
0.682395
7556de256bbca57e64a7b2c8dbdca009598f50a9
2,137
py
Python
tests/tools/test_histogram2d.py
dgorelik/differential-privacy-library
5a7a267c591320036615a52dfad1918dc3718e62
[ "MIT" ]
1
2020-05-03T06:06:44.000Z
2020-05-03T06:06:44.000Z
tests/tools/test_histogram2d.py
dohmatob/differential-privacy-library
1a17bf0e3bf7d18d5c19258abbf81c27fd9a5e16
[ "MIT" ]
null
null
null
tests/tools/test_histogram2d.py
dohmatob/differential-privacy-library
1a17bf0e3bf7d18d5c19258abbf81c27fd9a5e16
[ "MIT" ]
1
2022-02-23T13:56:19.000Z
2022-02-23T13:56:19.000Z
import numpy as np from unittest import TestCase from diffprivlib.tools.histograms import histogram2d from diffprivlib.utils import global_seed, PrivacyLeakWarning class TestHistogram2d(TestCase): def test_no_params(self): x = np.array([1, 2, 3, 4, 5]) y = np.array([5, 7, 1, 5, 9]) with s...
35.616667
100
0.565278
7ef5fdda7e9666f209c582eb4bb164701bcdb17f
517
py
Python
aprendizado/curso_em_video/desafios/desafio096.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
aprendizado/curso_em_video/desafios/desafio096.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
aprendizado/curso_em_video/desafios/desafio096.py
renatodev95/Python
2adee4a01de41f8bbb68fce563100c135a5ab549
[ "MIT" ]
null
null
null
# Faça um programa que tenha uma função chamada área(), que receba as dimensões # de um terreno retangular (largura e comprimento) e mostre a área do terreno. def titulo(txt): print('-' * 30) print(f'{txt:^30}') print('-' * 30, '') def area(larg, comp): a = larg * comp print(f'A área d...
27.210526
80
0.628627
244c6610c050c5f1cc4d8ba8cb574a3eb2d92b2c
222
py
Python
users/urls.py
Joaxin/django-welogs
260a72322cdc5591ecd3ceae1dc99a66da333d2b
[ "MIT" ]
null
null
null
users/urls.py
Joaxin/django-welogs
260a72322cdc5591ecd3ceae1dc99a66da333d2b
[ "MIT" ]
null
null
null
users/urls.py
Joaxin/django-welogs
260a72322cdc5591ecd3ceae1dc99a66da333d2b
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "users" urlpatterns = [ path('profile/', views.profile, name='profile'), path('profile/update/', views.profile_update, name='profile_update'), ]
24.666667
74
0.68018
6664c3b026665568036c77684726a8d59a1da442
232
py
Python
sams-roku-interface/colors.py
sam-maryland/sams-roku-interface
5a11588a2054ea46a16851b95ed2c04e3219898f
[ "MIT" ]
1
2019-12-09T20:06:24.000Z
2019-12-09T20:06:24.000Z
sams-roku-interface/colors.py
sammaryland/sams-roku-interface
5a11588a2054ea46a16851b95ed2c04e3219898f
[ "MIT" ]
2
2021-03-31T19:19:23.000Z
2021-06-02T00:45:17.000Z
sams-roku-interface/colors.py
sammaryland/sams-roku-interface
5a11588a2054ea46a16851b95ed2c04e3219898f
[ "MIT" ]
null
null
null
class Colors: PURPLE = '\033[95m' CYAN = '\033[96m' DARKCYAN = '\033[36m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' BOLD = '\033[1m' UNDERLINE = '\033[4m' END = '\033[0m'
21.090909
24
0.517241
83ab6adc271ccd255f0ef30cf97e8c2297197793
137
py
Python
py_tdlib/constructors/delete_chat_reply_markup.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/delete_chat_reply_markup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/delete_chat_reply_markup.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Method class deleteChatReplyMarkup(Method): chat_id = None # type: "int53" message_id = None # type: "int53"
19.571429
36
0.715328
ac3f5e817e7f7abe120883218f6f78e5d6cf39ad
737
py
Python
auth/admin.py
Junhua9981/WebProjectFinal
8db619b4196fa3bc684202ddb24a725c15e06d78
[ "MIT" ]
120
2020-09-04T23:07:58.000Z
2022-03-22T03:00:39.000Z
auth/admin.py
Junhua9981/WebProjectFinal
8db619b4196fa3bc684202ddb24a725c15e06d78
[ "MIT" ]
10
2016-03-25T09:28:36.000Z
2021-07-26T15:04:41.000Z
auth/admin.py
Junhua9981/WebProjectFinal
8db619b4196fa3bc684202ddb24a725c15e06d78
[ "MIT" ]
38
2020-09-16T18:47:09.000Z
2022-03-25T07:52:57.000Z
from fastapi import HTTPException, Depends, status from fastapi.security import HTTPBasicCredentials, HTTPBasic from passlib.context import CryptContext from database.database import admin_collection security = HTTPBasic() hash_helper = CryptContext(schemes=["bcrypt"]) async def validate_login(credentials: HTTPBasic...
36.85
80
0.723202
740c15cf202ff0b94136db22f838060e30832dc6
441
py
Python
demos/Multiscale/uniswap/model/sys_params.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/uniswap/model/sys_params.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/uniswap/model/sys_params.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
import pandas as pd sys_params = { 'fee_numerator': [997, 997, 997, 997, 995, 995, 995, 995], 'fee_denominator': [1000], 'uniswap_events': [pd.read_pickle('./data/uniswap_events.pickle')], 'fix_cost': [-1], # -1 to deactivate 'retail_precision': [3,3,15,15, 3...
33.923077
71
0.53288
937417375d19864ddf807a520959c783f29cb311
2,191
py
Python
tests/models/test_airplane_model.py
ascii-dev/flight-booking
3a64951f91d0254402bc5c14e5ef6d1bd2cf372e
[ "MIT" ]
null
null
null
tests/models/test_airplane_model.py
ascii-dev/flight-booking
3a64951f91d0254402bc5c14e5ef6d1bd2cf372e
[ "MIT" ]
30
2019-05-26T09:39:12.000Z
2021-06-02T00:16:58.000Z
tests/models/test_airplane_model.py
ascii-dev/flight-booking
3a64951f91d0254402bc5c14e5ef6d1bd2cf372e
[ "MIT" ]
null
null
null
from api.models.airplane import Airplane class TestAirplaneModel: def test_new_airplane_succeeds(self, init_db, new_airplane): """ Test that airplane can be created successfully through the model :param init_db: initialize the database :param new_airplane: creates new airpl...
35.918033
73
0.659516
88ec23b4fa04d7e8c9e852e4554762e3afedd2f9
289
py
Python
Rig/Lobby/lobby_room.py
Oulala-Leon/Text-Factory
fbf24221529ccf7a35894090f8595da526c0523d
[ "Apache-2.0" ]
null
null
null
Rig/Lobby/lobby_room.py
Oulala-Leon/Text-Factory
fbf24221529ccf7a35894090f8595da526c0523d
[ "Apache-2.0" ]
null
null
null
Rig/Lobby/lobby_room.py
Oulala-Leon/Text-Factory
fbf24221529ccf7a35894090f8595da526c0523d
[ "Apache-2.0" ]
null
null
null
import tell import sys def check_arglen(argv, minimum, maximum=-1): "Checks arguments length vs expected minimum and maximum." maximum = minimum if maximum == -1 else maximum size = len(argv) return size if size >= minimum and size <= maximum else sys.exit(tell.README())
32.111111
83
0.709343
95ea82b753f8dee6f45badf0d3ec324a10f0ed60
6,287
py
Python
tests/tensorflow_cloud/deploy_test.py
gogasca/cloud
9ad530b64464ba68c65b2cefd12b1e5043486006
[ "Apache-2.0" ]
null
null
null
tests/tensorflow_cloud/deploy_test.py
gogasca/cloud
9ad530b64464ba68c65b2cefd12b1e5043486006
[ "Apache-2.0" ]
null
null
null
tests/tensorflow_cloud/deploy_test.py
gogasca/cloud
9ad530b64464ba68c65b2cefd12b1e5043486006
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.570552
79
0.643391
c8ae5d88bc7eab1f651138610209ebccb2e82601
1,627
py
Python
setup.py
mgxd/niworkflows
d28857d0be2a63263e4c29af44e84d18fdc44d2f
[ "BSD-3-Clause" ]
null
null
null
setup.py
mgxd/niworkflows
d28857d0be2a63263e4c29af44e84d18fdc44d2f
[ "BSD-3-Clause" ]
1
2020-01-24T02:42:31.000Z
2020-01-24T02:51:48.000Z
setup.py
mgxd/niworkflows
d28857d0be2a63263e4c29af44e84d18fdc44d2f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: oesteban # @Date: 2015-11-19 16:44:27 # @Last Modified by: oesteban """ niworkflows setup script """ PACKAGE_NAME = 'niworkflows' def main(): """ Install entry-point """ from os import path as op from setuptools import setup, find_packages ...
31.901961
84
0.601721
6ac750591a277fc78ec540ede6df7cb5ea7da784
570
py
Python
src/backend/aspen/database/models/enum.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
null
null
null
src/backend/aspen/database/models/enum.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
30
2022-02-01T23:19:14.000Z
2022-03-29T19:34:20.000Z
src/backend/aspen/database/models/enum.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
null
null
null
from typing import Type, TYPE_CHECKING, TypeVar # https://github.com/dropbox/sqlalchemy-stubs/issues/114 # This is the (gross) workaround. Keep an eye on the issue and get rid of it once it's fixed. if TYPE_CHECKING: from sqlalchemy.sql.type_api import TypeEngine T = TypeVar("T") class Enum(TypeEngine[T]...
28.5
93
0.673684
578f3e758cd5132b1a535cbc56a46c32104a2818
56
py
Python
04 Data Structure/list.py
diaamshalabi/the-ultimate-python-programming-bootcamp
f19170640217684a218d862fb4108053dabab8b3
[ "MIT" ]
2
2022-02-09T08:09:58.000Z
2022-02-10T14:16:10.000Z
04 Data Structure/list.py
diaa-shalabi/the-ultimate-python-programming-bootcamp
f19170640217684a218d862fb4108053dabab8b3
[ "MIT" ]
null
null
null
04 Data Structure/list.py
diaa-shalabi/the-ultimate-python-programming-bootcamp
f19170640217684a218d862fb4108053dabab8b3
[ "MIT" ]
null
null
null
my_list= [3, 4, 6, 2] my_list1 = list(("Hello World"))
14
32
0.589286
f47037b7d3e959e51b907bfb5f90f7a35dcdad2b
5,287
py
Python
lib/modules/powershell/situational_awareness/network/smbautobrute.py
kumardineshwar/Empire
8b8741242e929897f2759698b780853b77b2a81e
[ "BSD-3-Clause" ]
3
2019-08-26T02:39:03.000Z
2021-03-30T00:04:44.000Z
lib/modules/powershell/situational_awareness/network/smbautobrute.py
kumardineshwar/Empire
8b8741242e929897f2759698b780853b77b2a81e
[ "BSD-3-Clause" ]
null
null
null
lib/modules/powershell/situational_awareness/network/smbautobrute.py
kumardineshwar/Empire
8b8741242e929897f2759698b780853b77b2a81e
[ "BSD-3-Clause" ]
8
2017-06-09T12:54:46.000Z
2021-11-09T06:44:09.000Z
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): # metadata info about the module, not modified during runtime self.info = { # name for the module that will appear in module menus 'Name': 'Invoke-SMBAutoBrute', # list of on...
40.05303
240
0.529412
03c922d7d4b6867279152a4b718382aaacbde67a
1,392
py
Python
waldur_core/structure/tests/serializers.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
23
2015-01-15T13:29:53.000Z
2017-05-04T05:12:24.000Z
waldur_core/structure/tests/serializers.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
null
null
null
waldur_core/structure/tests/serializers.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
8
2015-01-11T18:51:47.000Z
2017-06-29T18:53:12.000Z
from rest_framework import serializers from waldur_core.structure import serializers as structure_serializers from . import models class ServiceSerializer(structure_serializers.BaseServiceSerializer): SERVICE_ACCOUNT_EXTRA_FIELDS = { 'tenant_name': '', 'availability_zone': '', } class Me...
32.372093
91
0.730603