hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
35a7747ea1cb3ed56e89664ac38bc9c07fde6d82
1,059
py
Python
pymongoshell/drop_collection.py
jdrumgoole/mongodbutils
9e74ce94e56f5b1a0eaa558c282b6c6659ebf1da
[ "Apache-2.0" ]
2
2019-01-17T21:32:08.000Z
2019-01-17T22:14:41.000Z
pymongoshell/drop_collection.py
jdrumgoole/mongodbutils
9e74ce94e56f5b1a0eaa558c282b6c6659ebf1da
[ "Apache-2.0" ]
5
2019-04-02T22:49:15.000Z
2020-04-13T23:02:21.000Z
pymongoshell/drop_collection.py
jdrumgoole/mongodbutils
9e74ce94e56f5b1a0eaa558c282b6c6659ebf1da
[ "Apache-2.0" ]
1
2017-04-29T19:32:24.000Z
2017-04-29T19:32:24.000Z
#!/usr/bin/env python3 import sys import argparse import pymongo if __name__ == "__main__": """ Drop a collection. """ parser = argparse.ArgumentParser() parser.add_argument("--host", default='mongodb://localhost:27017', help="mongodb URI [default: %(default)s]") par...
29.416667
83
0.621341
013699f8226a3ac9b2a5ca4e279c26b0c899cd81
1,479
py
Python
desktop/core/ext-py/urllib3-1.25.8/test/test_compatibility.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/urllib3-1.25.8/test/test_compatibility.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/urllib3-1.25.8/test/test_compatibility.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
import warnings import pytest from urllib3.connection import HTTPConnection from urllib3.response import HTTPResponse from urllib3.packages.six.moves import http_cookiejar, urllib class TestVersionCompatibility(object): def test_connection_strict(self): with warnings.catch_warnings(record=True) as w: ...
32.866667
85
0.640297
29cbce1e1f69d1e2e1fe82ede27f2c0ec105d9b9
4,310
py
Python
userbot/plugins/thumbnail.py
indianSammy07/Wolfuserbots
9c56dde1f81cec9eb4dd85a369f3a1f8b99f0763
[ "MIT" ]
9
2021-05-16T23:40:05.000Z
2022-03-26T02:08:17.000Z
userbot/plugins/thumbnail.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
1
2021-02-08T20:47:53.000Z
2021-02-08T20:47:53.000Z
userbot/plugins/thumbnail.py
praveen368/CatUserbot
4b0cd970551ffaf86b9fdd5da584c1b3882821ff
[ "MIT" ]
47
2021-03-16T17:16:25.000Z
2022-03-29T12:59:36.000Z
"""Thumbnail Utilities, © @AnyDLBot Available Commands: .savethumbnail .clearthumbnail .getthumbnail""" import os import subprocess from hachoir.metadata import extractMetadata from hachoir.parser import createParser from PIL import Image from telethon import events from userbot.utils import admin_cmd thumb_image_pa...
33.937008
93
0.618097
107a32637e45ee17150637b86228dc03768df537
382
py
Python
app/email.py
Anne56njeri/Blog
59a1ee653165b3d83f8c284ecef020285ada57cc
[ "Unlicense", "MIT" ]
null
null
null
app/email.py
Anne56njeri/Blog
59a1ee653165b3d83f8c284ecef020285ada57cc
[ "Unlicense", "MIT" ]
null
null
null
app/email.py
Anne56njeri/Blog
59a1ee653165b3d83f8c284ecef020285ada57cc
[ "Unlicense", "MIT" ]
null
null
null
from flask_mail import Message from flask import render_template from . import mail def mail_message(subject,template,to,**kwargs): sender_email='trendytina77@gmail.com' email= Message(subject, sender = sender_email, recipients=[to]) email.body=render_template(template +".txt",**kwargs) email.html=ren...
31.833333
67
0.748691
7100f5158cbaad8761cd715a1d5a24992e6d8be3
2,551
py
Python
src/main/python/programmingtheiot/cda/sim/BaseActuatorSimTask.py
Yao-Miao/IoT-constrained-device-app
2eeb4bbb4a37e18636fd8db3d216edaa5d334b10
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/sim/BaseActuatorSimTask.py
Yao-Miao/IoT-constrained-device-app
2eeb4bbb4a37e18636fd8db3d216edaa5d334b10
[ "MIT" ]
null
null
null
src/main/python/programmingtheiot/cda/sim/BaseActuatorSimTask.py
Yao-Miao/IoT-constrained-device-app
2eeb4bbb4a37e18636fd8db3d216edaa5d334b10
[ "MIT" ]
null
null
null
##### # # This class is part of the Programming the Internet of Things project. # # It is provided as a simple shell to guide the student and assist with # implementation for the Programming the Internet of Things exercises, # and designed to be modified by the student as needed. # import logging import random from...
23.190909
142
0.697374
b5b5192fece48115e8efc42d1394b894a79d66aa
4,651
py
Python
tensorflow_datasets/image/breastpathq.py
ziyuan-shen/datasets
6d9fe398c069e1b0d7a95800a88eaa88deaa2ffc
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/breastpathq.py
ziyuan-shen/datasets
6d9fe398c069e1b0d7a95800a88eaa88deaa2ffc
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/breastpathq.py
ziyuan-shen/datasets
6d9fe398c069e1b0d7a95800a88eaa88deaa2ffc
[ "Apache-2.0" ]
null
null
null
"""Breast cancer whole slide image dataset.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import csv import numpy as np import tensorflow as tf import tensorflow_datasets as tfds _URL = "http://spiechallenges.cloudapp.net/competitions/14#pa...
34.451852
108
0.671038
0c490e1d842e720f73178bdb63382b7c029abfca
16,871
py
Python
sift_pyx12/segment.py
sifthealthcare/sift-pyx12
97b38fd8b681f149570ac9d5cae0fe868a7722f2
[ "BSD-3-Clause" ]
null
null
null
sift_pyx12/segment.py
sifthealthcare/sift-pyx12
97b38fd8b681f149570ac9d5cae0fe868a7722f2
[ "BSD-3-Clause" ]
2
2021-11-12T18:35:11.000Z
2021-11-12T18:35:31.000Z
sift_pyx12/segment.py
sifthealthcare/sift-pyx12
97b38fd8b681f149570ac9d5cae0fe868a7722f2
[ "BSD-3-Clause" ]
null
null
null
###################################################################### # Copyright # John Holland <john@zoner.org> # All rights reserved. # # This software is licensed as described in the file LICENSE.txt, which # you should have received as part of this distribution. # ##############################################...
29.650264
120
0.559303
6088c95fcb6703defe1575c92ace84258115fbad
2,222
py
Python
keras_image_helper/preprocessors.py
alexeygrigorev/keras-image-helper
1fea06a0e1343133f7c2ecdc7d7a9390d0503ae5
[ "WTFPL" ]
4
2020-10-31T15:53:34.000Z
2021-11-27T10:35:21.000Z
keras_image_helper/preprocessors.py
alexeygrigorev/keras-image-helper
1fea06a0e1343133f7c2ecdc7d7a9390d0503ae5
[ "WTFPL" ]
null
null
null
keras_image_helper/preprocessors.py
alexeygrigorev/keras-image-helper
1fea06a0e1343133f7c2ecdc7d7a9390d0503ae5
[ "WTFPL" ]
null
null
null
from keras_image_helper.base import BasePreprocessor def tf_preprocessing(x): x /= 127.5 x -= 1.0 return x def caffe_preprocessing(x): # 'RGB'->'BGR' x = x[..., ::-1] mean = [103.939, 116.779, 123.68] x[..., 0] -= mean[0] x[..., 1] -= mean[1] x[..., 2] -= mean[2] return x...
28.126582
103
0.672817
ddda8d32fcaf59c03b7d79fee12e86b980acab79
187
py
Python
payu/exceptions.py
GearPlug/payu-python
47ec5c9fc89f1f89a53ec0a68c84f358bbe3394e
[ "MIT" ]
1
2019-11-11T20:06:27.000Z
2019-11-11T20:06:27.000Z
payu/exceptions.py
GearPlug/payu-python
47ec5c9fc89f1f89a53ec0a68c84f358bbe3394e
[ "MIT" ]
1
2020-04-20T15:46:28.000Z
2020-04-20T15:46:28.000Z
payu/exceptions.py
GearPlug/payu-python
47ec5c9fc89f1f89a53ec0a68c84f358bbe3394e
[ "MIT" ]
1
2020-06-17T23:34:32.000Z
2020-06-17T23:34:32.000Z
class BaseError(Exception): pass class FranchiseUnavailableError(BaseError): pass class CVVRequiredError(BaseError): pass class InvalidCountryError(BaseError): pass
12.466667
43
0.754011
fcb9505d4b169ca7e4a3af1a400145e367341181
3,016
py
Python
tempest/scenario/test_swift_basic_ops.py
pcaruana/tempest
907ed711f265305316fdc80acd16e9657cb2c0b4
[ "Apache-2.0" ]
null
null
null
tempest/scenario/test_swift_basic_ops.py
pcaruana/tempest
907ed711f265305316fdc80acd16e9657cb2c0b4
[ "Apache-2.0" ]
null
null
null
tempest/scenario/test_swift_basic_ops.py
pcaruana/tempest
907ed711f265305316fdc80acd16e9657cb2c0b4
[ "Apache-2.0" ]
1
2019-02-14T23:36:55.000Z
2019-02-14T23:36:55.000Z
# Copyright 2013 IBM Corp. # 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 app...
40.756757
78
0.682692
46f0442219d60971301d5279ef2e203b6b7982ea
90,604
py
Python
Metrics/Depth.py
payamsiyari/evo-lexis
2f333f705229b449dc04552dbe4bd78d7bcde24c
[ "MIT" ]
null
null
null
Metrics/Depth.py
payamsiyari/evo-lexis
2f333f705229b449dc04552dbe4bd78d7bcde24c
[ "MIT" ]
null
null
null
Metrics/Depth.py
payamsiyari/evo-lexis
2f333f705229b449dc04552dbe4bd78d7bcde24c
[ "MIT" ]
2
2019-01-12T22:52:05.000Z
2020-02-19T05:34:09.000Z
# -*- coding: utf-8 -*- #Prints depth statistics of a DAG #USAGE: Depth.py -l -t s -q <path-to-dag-file> #OUTPUT: number of intermediate nodes, number of sources, average depth of DAG #NOTE: Code includes many redundant stuff for historical reasons. I will clean the code in future. """ @author: Payam Siyari """ fro...
45.875443
252
0.571928
3fc172f53a55cb1817b555ff99fea9e45295c6d6
18,590
py
Python
Lib/test/test_hashlib.py
heamon7/CPython-2.7.8
a23fc8e4419ab0034029cbf4c5c3b3a765d2fcbe
[ "PSF-2.0" ]
9
2015-04-15T10:58:49.000Z
2018-09-24T09:11:33.000Z
Lib/test/test_hashlib.py
odsod/cpython-internals-course
55fffca28e83ac0f30029c60113a3110451dfa08
[ "PSF-2.0" ]
2
2020-02-17T22:31:09.000Z
2020-02-18T04:31:55.000Z
Lib/test/test_hashlib.py
odsod/cpython-internals-course
55fffca28e83ac0f30029c60113a3110451dfa08
[ "PSF-2.0" ]
3
2018-03-26T17:41:40.000Z
2019-06-28T12:53:47.000Z
# Test hashlib module # # $Id$ # # Copyright (C) 2005-2010 Gregory P. Smith (greg@krypto.org) # Licensed to PSF under a Contributor Agreement. # import array import hashlib import itertools import sys try: import threading except ImportError: threading = None import unittest import warnings from binascii i...
40.767544
91
0.635933
336bf4a3d1cd67cf92c993461da61b6f674c4edb
4,492
py
Python
test/functional/test_framework/muhash.py
syglee7/zenacoin-ver2
90079b95bdf0ea2b7fce644c56d2a9626526e5e4
[ "MIT" ]
null
null
null
test/functional/test_framework/muhash.py
syglee7/zenacoin-ver2
90079b95bdf0ea2b7fce644c56d2a9626526e5e4
[ "MIT" ]
null
null
null
test/functional/test_framework/muhash.py
syglee7/zenacoin-ver2
90079b95bdf0ea2b7fce644c56d2a9626526e5e4
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Pieter Wuille # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Native Python MuHash3072 implementation.""" import hashlib import unittest from .util import modinv def rot32(v, bits): """Rotate the 32-b...
39.752212
166
0.622663
1a5c0feb40363c37d267f58ece23d2fd2353befb
804
py
Python
clinicadl/scripts/preprocessing/orig/run_qc_similarity.py
yogeshmj/AD-DL
76b9b564061581effe8f3698992bfea3ffb055fa
[ "MIT" ]
112
2019-10-21T14:50:35.000Z
2022-03-29T03:15:47.000Z
clinicadl/scripts/preprocessing/orig/run_qc_similarity.py
921974496/AD-DL
9a0303579a665800633024bdab1ac44f794a0c38
[ "MIT" ]
136
2019-10-17T17:40:55.000Z
2021-06-30T14:53:29.000Z
clinicadl/scripts/preprocessing/orig/run_qc_similarity.py
921974496/AD-DL
9a0303579a665800633024bdab1ac44f794a0c38
[ "MIT" ]
49
2019-11-26T13:57:52.000Z
2022-03-20T13:17:42.000Z
#################### from Code.image_preprocessing.quality_check_image_similarity import quality_check_image_similarity ## run the pipeline # for test ## caps_directory= '/teams/ARAMIS/PROJECTS/CLINICA/CLINICA_datasets/temp/CAPS_ADNI_DL' tsv= '/teams/ARAMIS/PROJECTS/junhao.wen/PhD/ADNI_classification/gitlabs/AD-DL/t...
50.25
185
0.822139
1f5f201e5d7a046ac8f54b6657d1404e56791a64
10,682
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_addrgrp_tagging.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_addrgrp_tagging.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_addrgrp_tagging.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2021 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
32.078078
153
0.549054
164a77da39e9f1b83c7e9092cc72ae585421c92a
7,459
py
Python
caserec/recommenders/item_recommendation/base_item_recommendation.py
andlzanon/CaseRecommender
f7f436996057298bfe76ee4eceeba634a74b69cd
[ "MIT" ]
407
2018-06-25T18:00:11.000Z
2022-03-24T17:16:17.000Z
caserec/recommenders/item_recommendation/base_item_recommendation.py
andlzanon/CaseRecommender
f7f436996057298bfe76ee4eceeba634a74b69cd
[ "MIT" ]
23
2018-06-27T21:19:04.000Z
2022-01-24T04:20:40.000Z
caserec/recommenders/item_recommendation/base_item_recommendation.py
andlzanon/CaseRecommender
f7f436996057298bfe76ee4eceeba634a74b69cd
[ "MIT" ]
77
2018-06-24T19:04:18.000Z
2021-11-29T10:12:36.000Z
# coding=utf-8 """" This class is base for item recommendation algorithms. """ # © 2019. Case Recommender (MIT License) from scipy.spatial.distance import squareform, pdist import numpy as np from caserec.evaluation.item_recommendation import ItemRecommendationEvaluation from caserec.utils.extra_functions impor...
35.018779
115
0.624346
1fd4776f588cbe6feb6765677dab45d0fde13711
23,334
py
Python
sbibm/third_party/kgof/ex/ex1_vary_n.py
michaeldeistler/sbibm-1
8e9875f79beb828c07fbf4820b30413914d1ceca
[ "MIT" ]
2
2021-05-06T06:19:27.000Z
2022-02-20T19:49:55.000Z
sbibm/third_party/kgof/ex/ex1_vary_n.py
mackelab/sbibm
b9781c610a1a80d2de014ee46a29cf061fb6074a
[ "MIT" ]
null
null
null
sbibm/third_party/kgof/ex/ex1_vary_n.py
mackelab/sbibm
b9781c610a1a80d2de014ee46a29cf061fb6074a
[ "MIT" ]
1
2022-01-23T15:54:06.000Z
2022-01-23T15:54:06.000Z
"""Simulation to test the test power vs increasing sample size""" __author__ = "wittawat" import logging import math import os import sys import time # import numpy as np import autograd.numpy as np # need independent_jobs package # https://github.com/karlnapf/independent-jobs # The independent_jobs and kgof have t...
33.525862
87
0.609754
6d3f9e56cdce852aeb7534f93a3184020e6ad210
3,957
py
Python
coord_utils.py
JunwookHeo/YOLO-OT
7004f25ce858acb7253bfcbc6fabeb915d8747a3
[ "MIT" ]
null
null
null
coord_utils.py
JunwookHeo/YOLO-OT
7004f25ce858acb7253bfcbc6fabeb915d8747a3
[ "MIT" ]
null
null
null
coord_utils.py
JunwookHeo/YOLO-OT
7004f25ce858acb7253bfcbc6fabeb915d8747a3
[ "MIT" ]
null
null
null
import numpy as np import torch class coord_utils: @staticmethod def location_to_probability_map(size, loc): # loc is not normalized location promap_vec = torch.zeros([size, size], dtype=torch.float32) try: conf = loc[4] except IndexError: conf = 1.0 ...
32.170732
103
0.503159
0057a854b922b0044747744070c98956a051205b
537
py
Python
features/environment.py
sanjay051099/try2-
2ee165320476184a7390898c7a873844fc79e77a
[ "MIT" ]
199
2019-12-14T02:25:05.000Z
2022-03-31T11:26:12.000Z
features/environment.py
sajib1066/opensource-job-portal
1288046e32f009c38742a28e4552ffafafabf684
[ "MIT" ]
91
2019-12-12T12:19:34.000Z
2022-03-25T05:52:04.000Z
features/environment.py
sajib1066/opensource-job-portal
1288046e32f009c38742a28e4552ffafafabf684
[ "MIT" ]
131
2019-12-13T06:26:06.000Z
2022-03-29T19:45:18.000Z
import django import os from django.core.management import call_command from splinter.browser import Browser from features.helpers import initiate_test_data from peeldb.models import User os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jobsp.settings_server") django.setup() def before_all(context): User.object...
24.409091
72
0.772812
6045d45495bfdcece29e0d2d868d4548d3d6cf48
499
py
Python
bibbutler_web/migrations/0005_auto_20160615_0446.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
bibbutler_web/migrations/0005_auto_20160615_0446.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
bibbutler_web/migrations/0005_auto_20160615_0446.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-15 04:46 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bibbutler_web', '0004_auto_20160604_1223'), ] operations = [ migrations.RemoveField(...
20.791667
53
0.583166
94534a254feda103939435d3ca17bc4c5d949d71
1,222
py
Python
django_modelapiview/Token.py
TiphaineLAURENT/Django_APIView
83cf33f7af7263ab8a8451b867ea8f38b392cb6a
[ "BSD-2-Clause" ]
null
null
null
django_modelapiview/Token.py
TiphaineLAURENT/Django_APIView
83cf33f7af7263ab8a8451b867ea8f38b392cb6a
[ "BSD-2-Clause" ]
2
2020-08-15T21:37:38.000Z
2020-08-18T19:25:02.000Z
django_modelapiview/Token.py
TiphaineLAURENT/Django_APIView
83cf33f7af7263ab8a8451b867ea8f38b392cb6a
[ "BSD-2-Clause" ]
null
null
null
from django.core import signing from datetime import timedelta class StillSigned(ValueError): def __init__(self): super().__init__("Token still signed") class Token(object): """ Represent a token used when authenticating a request toward an APIView with authentification set to True """ ...
25.458333
109
0.648936
2f86245c66691d6825000eeb2df122c6fc198da4
2,409
py
Python
qdarkstyle/palette.py
oscargus/QDarkStyleSheet
6aef1de7e97227899c478a5634d136d80991123e
[ "CC-BY-4.0" ]
7
2020-08-11T16:30:04.000Z
2022-03-25T08:50:19.000Z
qdarkstyle/palette.py
oscargus/QDarkStyleSheet
6aef1de7e97227899c478a5634d136d80991123e
[ "CC-BY-4.0" ]
1
2020-06-24T04:50:29.000Z
2020-06-24T17:40:02.000Z
qdarkstyle/palette.py
oscargus/QDarkStyleSheet
6aef1de7e97227899c478a5634d136d80991123e
[ "CC-BY-4.0" ]
1
2021-09-15T16:28:46.000Z
2021-09-15T16:28:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """QDarkStyle default palette.""" # Standard library imports from collections import OrderedDict class DarkPalette(object): """Theme variables.""" # Color COLOR_BACKGROUND_LIGHT = '#505F69' COLOR_BACKGROUND_NORMAL = '#32414B' COLOR_BACKGROUND_DARK = ...
28.011628
65
0.624741
1feec120e68e91f5d8adde46fdf0fdd47cbf72d7
1,880
py
Python
tests/test_GBM.py
tercenya/funcsim
36fb837cfc7f8ab7ff0c216c8c4ab3a476e4ca5c
[ "BSD-3-Clause" ]
1
2021-12-08T03:40:26.000Z
2021-12-08T03:40:26.000Z
tests/test_GBM.py
tercenya/funcsim
36fb837cfc7f8ab7ff0c216c8c4ab3a476e4ca5c
[ "BSD-3-Clause" ]
null
null
null
tests/test_GBM.py
tercenya/funcsim
36fb837cfc7f8ab7ff0c216c8c4ab3a476e4ca5c
[ "BSD-3-Clause" ]
null
null
null
import math import numpy as np from scipy import stats import xarray as xr import funcsim as fs def gbm(s0, dt, mu, sig, eps): # update a variable via a standard geometric Brownian motion return s0 * math.exp((mu - 0.5 * sig**2) * dt + eps * sig * dt ** 0.5) def step(data, draw): # take one step through...
28.923077
79
0.601596
346d01f0f3a8fd7eaf779872da28f885775c3432
710
py
Python
prototype/solver/cls_quant_eval_solver.py
ModelTC/mqbench-paper
8d25a3b63c0cde4d904f77439fc435b49b0b33d4
[ "Apache-2.0" ]
6
2021-09-26T03:24:26.000Z
2022-03-17T09:19:18.000Z
prototype/solver/cls_quant_eval_solver.py
ModelTC/mqbench-paper
8d25a3b63c0cde4d904f77439fc435b49b0b33d4
[ "Apache-2.0" ]
null
null
null
prototype/solver/cls_quant_eval_solver.py
ModelTC/mqbench-paper
8d25a3b63c0cde4d904f77439fc435b49b0b33d4
[ "Apache-2.0" ]
2
2021-11-14T18:38:22.000Z
2022-03-17T09:19:22.000Z
from .cls_quant_new_solver import ClsNewSolver from prototype.utils.dist import link_dist import argparse class ClsEvalSolver(ClsNewSolver): def __init__(self, config_file): super(ClsEvalSolver, self).__init__(config_file) def train(self): self.initialize(0, 1, flag=True, calib_bn=True) @l...
22.903226
73
0.712676
297c619572896b747fe8a8a263a9da6a80ae0347
2,869
py
Python
src/preprocess/feature_selection.py
joaopfonseca/remote_sensing
1c3704e2ea4de6ec803e6b42a1557660768ab03b
[ "MIT" ]
null
null
null
src/preprocess/feature_selection.py
joaopfonseca/remote_sensing
1c3704e2ea4de6ec803e6b42a1557660768ab03b
[ "MIT" ]
null
null
null
src/preprocess/feature_selection.py
joaopfonseca/remote_sensing
1c3704e2ea4de6ec803e6b42a1557660768ab03b
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd #from imblearn.under_sampling.base import BaseCleaningSampler from sklearn.ensemble import RandomForestClassifier #from sklearn.utils.validation import check_is_fitted from sklearn.feature_selection import SelectFromModel from scipy.stats import spearmanr, pearsonr from sklearn.ba...
35.8625
113
0.676891
abba15346eac131b5bc18a7cd6706d8ed89f8c13
3,519
py
Python
src/Update/update_install.py
DBrianKimmel/PyHouse_Install
9c7ff397299e0f2e63782d4a955d2f8bf840ef6f
[ "MIT" ]
1
2015-10-13T15:01:48.000Z
2015-10-13T15:01:48.000Z
src/Update/update_install.py
DBrianKimmel/PyHouse_Install
9c7ff397299e0f2e63782d4a955d2f8bf840ef6f
[ "MIT" ]
null
null
null
src/Update/update_install.py
DBrianKimmel/PyHouse_Install
9c7ff397299e0f2e63782d4a955d2f8bf840ef6f
[ "MIT" ]
null
null
null
""" @name: PyHouse_Install/src/Update/update_install.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2016 by D. Brian Kimmel @license: MIT License @note: Created on Oct 14, 2015 @Summary: This is run as root by the shell script update_install which is run as bin/upda...
27.492188
138
0.623757
6f023686943e41eb11ab19f279c2f702df707d37
2,050
py
Python
vanzare/facturacion/forms.py
avilaroman/vanzare
3dacef370b21eee008b8883c95e777862c402dfe
[ "MIT" ]
null
null
null
vanzare/facturacion/forms.py
avilaroman/vanzare
3dacef370b21eee008b8883c95e777862c402dfe
[ "MIT" ]
12
2018-06-19T03:20:27.000Z
2020-10-07T17:28:40.000Z
vanzare/facturacion/forms.py
avilaroman/vanzare
3dacef370b21eee008b8883c95e777862c402dfe
[ "MIT" ]
4
2018-05-31T14:26:45.000Z
2019-07-06T06:42:05.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.forms import ModelForm, inlineformset_factory from cliente.models import Cliente, Recaudo, Recibido from producto.mode...
24.117647
77
0.637073
f3b5a00bc182cd7c902656c0a046d3c44e867181
43
py
Python
src/luamb/__main__.py
un-def/luamb
eec3969eda1b225e26a138c25720182754e9ec54
[ "MIT" ]
16
2016-07-20T03:33:45.000Z
2021-07-23T06:05:00.000Z
src/luamb/__main__.py
un-def/luamb
eec3969eda1b225e26a138c25720182754e9ec54
[ "MIT" ]
2
2016-08-20T02:47:26.000Z
2017-08-29T16:27:42.000Z
src/luamb/__main__.py
un-def/luamb
eec3969eda1b225e26a138c25720182754e9ec54
[ "MIT" ]
1
2016-07-20T10:25:55.000Z
2016-07-20T10:25:55.000Z
from luamb._entrypoint import main main()
10.75
34
0.790698
5dc7ed2bc616310ae5f106b8f5bf7b086e41fedf
14,877
py
Python
pygeoapi/provider/postgresql.py
allixender/pygeoapi
42a3424ae8bea2089337e1ed480a07c54d75302a
[ "MIT" ]
null
null
null
pygeoapi/provider/postgresql.py
allixender/pygeoapi
42a3424ae8bea2089337e1ed480a07c54d75302a
[ "MIT" ]
null
null
null
pygeoapi/provider/postgresql.py
allixender/pygeoapi
42a3424ae8bea2089337e1ed480a07c54d75302a
[ "MIT" ]
null
null
null
# ================================================================= # # Authors: Jorge Samuel Mendes de Jesus <jorge.dejesus@protonmail.com> # Tom Kralidis <tomkralidis@gmail.com> # Mary Bucknell <mbucknell@usgs.gov> # # Copyright (c) 2018 Jorge Samuel Mendes de Jesus # Copyright (c) 2019 Tom Kralidis...
36.374083
88
0.582577
7b5c12f0a924e65e7599911af7ff9aa50d7e0f1d
41
py
Python
sdk/exception/business_exception.py
CLG0125/elemesdk
344466398bad7cf026e082e47c77d3ca98621ef3
[ "MIT" ]
1
2021-04-03T05:11:29.000Z
2021-04-03T05:11:29.000Z
sdk/exception/business_exception.py
CLG0125/elemesdk
344466398bad7cf026e082e47c77d3ca98621ef3
[ "MIT" ]
null
null
null
sdk/exception/business_exception.py
CLG0125/elemesdk
344466398bad7cf026e082e47c77d3ca98621ef3
[ "MIT" ]
null
null
null
class BusinessException(Exception):pass
13.666667
39
0.853659
87ddec2639e46c91e4ab1b6d06e74bccbc2e54b5
1,261
py
Python
tc_pipelines/components/ml/pytorch_trainer.py
cabukela/iorek-byrnison
a683d0e07f6de6ca568a0941ced6570feb2a6aa4
[ "Apache-2.0" ]
1
2022-03-18T11:00:18.000Z
2022-03-18T11:00:18.000Z
tc_pipelines/components/ml/pytorch_trainer.py
cabukela/iorek-byrnison
a683d0e07f6de6ca568a0941ced6570feb2a6aa4
[ "Apache-2.0" ]
null
null
null
tc_pipelines/components/ml/pytorch_trainer.py
cabukela/iorek-byrnison
a683d0e07f6de6ca568a0941ced6570feb2a6aa4
[ "Apache-2.0" ]
2
2022-03-18T11:00:21.000Z
2022-03-30T04:08:05.000Z
from kfp.v2.dsl import component, Input, Dataset @component( base_image="python:3.7", packages_to_install=["google-cloud-aiplatform==1.7.1"], ) def train_and_deploy( project: str, location: str, container_uri: str, serving_container_uri: str, training_dataset: Input[Dataset], validation_...
30.756098
88
0.654243
a15c054a9f629e4229cd6dea1c4506dac574c6b1
45,555
py
Python
nova/tests/unit/compute/test_shelve.py
gyliu513/nova
14e974a5f77c72a9bb44c6801746abb2eda8e91d
[ "Apache-2.0" ]
1
2016-07-18T22:05:01.000Z
2016-07-18T22:05:01.000Z
nova/tests/unit/compute/test_shelve.py
gyliu513/nova
14e974a5f77c72a9bb44c6801746abb2eda8e91d
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_shelve.py
gyliu513/nova
14e974a5f77c72a9bb44c6801746abb2eda8e91d
[ "Apache-2.0" ]
1
2021-11-12T03:55:41.000Z
2021-11-12T03:55:41.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
47.502607
79
0.637427
e04215af045e2800d79542eac81f35f756b83a9f
16,281
py
Python
src/sage/schemes/curves/zariski_vankampen.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/schemes/curves/zariski_vankampen.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/curves/zariski_vankampen.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
r""" Zariski-Van Kampen method implementation This file contains functions to compute the fundamental group of the complement of a curve in the complex affine or projective plane, using Zariski-Van Kampen approach. It depends on the package ``sirocco``. The current implementation allows to compute a presentation of t...
36.341518
105
0.586819
0603ce718275356081cc7d9b2e215aa1069792be
320
py
Python
string_algorithms/search/naive_search.py
ocozalp/Algorithms
0eed59b2e8f110bfe036ddc3de7762948473ecc9
[ "Apache-2.0" ]
5
2017-01-10T07:42:15.000Z
2020-02-16T19:39:25.000Z
string_algorithms/search/naive_search.py
ocozalp/Algorithms
0eed59b2e8f110bfe036ddc3de7762948473ecc9
[ "Apache-2.0" ]
null
null
null
string_algorithms/search/naive_search.py
ocozalp/Algorithms
0eed59b2e8f110bfe036ddc3de7762948473ecc9
[ "Apache-2.0" ]
null
null
null
def naive_search(text, pattern, start_index=0): for i in xrange(start_index, len(text) - len(pattern) + 1): found = True for j in xrange(len(pattern)): if text[i + j] != pattern[j]: found = False break if found: return i return -1
26.666667
63
0.50625
5145260fc63fbaab8ee85b98a5638a3318d03f49
8,879
py
Python
sdk/python/pulumi_azure/network/get_subnet.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/get_subnet.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/get_subnet.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "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 warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
43.955446
326
0.713819
4578c4e980b69e691ef510ee173aaefb08a0f2ce
144,797
py
Python
src/sage/combinat/diagram_algebras.py
ChamanAgrawal/sage
5f6d56ba247b352d7d46442e88fa3a027e9f222d
[ "BSL-1.0" ]
2
2019-06-02T03:16:59.000Z
2019-06-15T10:17:18.000Z
src/sage/combinat/diagram_algebras.py
ChamanAgrawal/sage
5f6d56ba247b352d7d46442e88fa3a027e9f222d
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/diagram_algebras.py
ChamanAgrawal/sage
5f6d56ba247b352d7d46442e88fa3a027e9f222d
[ "BSL-1.0" ]
1
2019-06-02T03:16:55.000Z
2019-06-02T03:16:55.000Z
r""" Diagram and Partition Algebras AUTHORS: - Mike Hansen (2007): Initial version - Stephen Doty, Aaron Lauve, George H. Seelinger (2012): Implementation of partition, Brauer, Temperley--Lieb, and ideal partition algebras - Stephen Doty, Aaron Lauve, George H. Seelinger (2015): Implementation of ``*Diagram`` cla...
35.273325
190
0.508526
a573c6e8292b2f4561a31884e1e822569fa6aa98
123,820
py
Python
app/solrXMLWebLoad/solrXMLPEPWebLoad.py
lhorne-gavant/OpenPubArchive-Content-Server-1
2b7c02417a8bb37f5a627343fab7fa05dc532bf7
[ "Apache-2.0" ]
null
null
null
app/solrXMLWebLoad/solrXMLPEPWebLoad.py
lhorne-gavant/OpenPubArchive-Content-Server-1
2b7c02417a8bb37f5a627343fab7fa05dc532bf7
[ "Apache-2.0" ]
null
null
null
app/solrXMLWebLoad/solrXMLPEPWebLoad.py
lhorne-gavant/OpenPubArchive-Content-Server-1
2b7c02417a8bb37f5a627343fab7fa05dc532bf7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=C0321,C0103,C0301,E1101,C0303,E1004,C0330,R0915,R0914,W0703,C0326 print( """ OPAS - Open Publications-Archive Software - Document, Authors, and References Core Loader Load articles into one Solr core and extract individual references ...
52.377327
248
0.565975
2f98b564bc26190922cf676bd67c4622d7816386
1,161
py
Python
fbchat/models.py
rawbeen72/fbchat-bot
0f47d23ca21fdc8c337c7b0a2ff652caf13255b5
[ "BSD-3-Clause" ]
1
2022-03-14T04:24:49.000Z
2022-03-14T04:24:49.000Z
fbchat/models.py
abdul97233/demobot
857718f1307dd48c99a7af8a3a001beaffd9ea52
[ "BSD-3-Clause" ]
null
null
null
fbchat/models.py
abdul97233/demobot
857718f1307dd48c99a7af8a3a001beaffd9ea52
[ "BSD-3-Clause" ]
1
2022-03-20T03:11:02.000Z
2022-03-20T03:11:02.000Z
# -*- coding: UTF-8 -*- """This file is here to maintain backwards compatability, and to re-export our models into the global module (see `__init__.py`). A common pattern was to use `from fbchat.models import *`, hence we need this while transitioning to a better code structure. """ from __future__ import unico...
38.7
86
0.783807
42f38f3cc3d8c583425fb2e7a18cee009bde1537
555
py
Python
python3/numpy/ndarray.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/numpy/ndarray.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/numpy/ndarray.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
""" Created on Sun Mar 17 19:15:33 2019 @author: nahid """ import numpy as np # Creating array object arr = np.array( [[ 1, 2, 3], [ 4, 2, 5]] ) # Printing type of arr object print("Array is of type: ", type(arr)) # Printing array dimensions (axes) print("No. of dimensions: ", arr.ndim) # Print...
23.125
51
0.655856
068afabb0c42c187cb4a11a36a58079fe6fcf1c8
1,138
py
Python
src/app/transform.py
zgpio/travis
2f540c2d00a2573b8b694a4d9e512f379cd5ea86
[ "BSD-3-Clause" ]
1
2019-10-09T15:00:28.000Z
2019-10-09T15:00:28.000Z
src/app/transform.py
zgpio/travis
2f540c2d00a2573b8b694a4d9e512f379cd5ea86
[ "BSD-3-Clause" ]
null
null
null
src/app/transform.py
zgpio/travis
2f540c2d00a2573b8b694a4d9e512f379cd5ea86
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json from pathlib import Path self_dir = Path(__file__).parent.resolve() with open(f"{self_dir}/icons.nerdfont.json", 'r') as f: load_dict = json.load(f) # print(load_dict) # NOTE: mac builtin terminal: webpack/vue 乱码 with open(f"{self_dir}/transform.cpp", "w") as f: for name, ...
30.756757
65
0.44464
b46ff10288ce2ba7f1cfab63674caa76a4daf1ef
6,760
py
Python
src/support/azext_support/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2022-03-22T15:02:32.000Z
2022-03-22T15:02:32.000Z
src/support/azext_support/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-02-10T22:04:59.000Z
2021-02-10T22:04:59.000Z
src/support/azext_support/custom.py
michimune/azure-cli-extensions
697e2c674e5c0825d44c72d714542fe01331e107
[ "MIT" ]
1
2021-06-03T19:31:10.000Z
2021-06-03T19:31:10.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.066667
111
0.622485
bbd3bcb20a59ab6125ba058efc244a5b35365371
630
py
Python
setup.py
ludios/Securetypes
fe6d93b5083e63e4a6b91428ab15a667293208bd
[ "PSF-2.0" ]
2
2016-10-23T10:01:52.000Z
2021-11-29T09:03:54.000Z
setup.py
ludios/Securetypes
fe6d93b5083e63e4a6b91428ab15a667293208bd
[ "PSF-2.0" ]
null
null
null
setup.py
ludios/Securetypes
fe6d93b5083e63e4a6b91428ab15a667293208bd
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup import securetypes setup( name='Securetypes', version=securetypes.__version__, description="securedict implementation, a dict that uses secure " + "hashing to stop algorithmic complexity attacks", url="https://github.com/ludios/Securetypes", author="Ivan ...
26.25
68
0.725397
074ddd8524b9a17b7313a83da0e0a9621647bedf
15,819
py
Python
sunshine_conversations_client/model/content.py
Dima2022/sunshine-conversations-python
8085a82dc320d97f09bb0174d11dd1865a65404a
[ "Apache-2.0" ]
4
2020-09-27T14:28:25.000Z
2022-02-02T13:51:29.000Z
sunshine_conversations_client/model/content.py
Dima2022/sunshine-conversations-python
8085a82dc320d97f09bb0174d11dd1865a65404a
[ "Apache-2.0" ]
3
2021-09-30T18:18:58.000Z
2021-12-04T07:55:23.000Z
sunshine_conversations_client/model/content.py
Dima2022/sunshine-conversations-python
8085a82dc320d97f09bb0174d11dd1865a65404a
[ "Apache-2.0" ]
5
2020-11-07T02:08:18.000Z
2021-12-07T17:10:23.000Z
# coding: utf-8 """ Sunshine Conversations API The version of the OpenAPI document: 9.4.5 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from sunshine_conversations_client.configuration import Configuration from sunshine_conversations_client.undefine...
30.421154
314
0.608951
f06a9fc4dad757542ea4c7f13fd7b1b9d739c3fc
1,973
py
Python
src/users/migrations/0002_auto_20190910_1341.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/users/migrations/0002_auto_20190910_1341.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/users/migrations/0002_auto_20190910_1341.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-10 13:41 from django.db import migrations, models import django.db.models.deletion import xarala.utils class Migration(migrations.Migration): dependencies = [ ("users", "0001_initial"), ] operations = [ migrations.CreateModel( name="Soc...
34.017241
87
0.49924
ddc738c6ed27c814c11c63a6fb453a793040af60
947
py
Python
openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/hosts/tvpaint/plugins/publish/validate_start_frame.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
import pyblish.api from openpype.pipeline import PublishXmlValidationError from openpype.hosts.tvpaint.api import lib class RepairStartFrame(pyblish.api.Action): """Repair start frame.""" label = "Repair" icon = "wrench" on = "failed" def process(self, context, plugin): lib.execute_georg...
24.921053
57
0.636748
69274cd571f1087df4cce2083e590a4b7483a4c3
3,280
py
Python
django_riak_engine/util/dist.py
oubiwann-unsupported/django-riak-engine
cd4adc6c1e7dfa3d4e94346624578a1c3990efd5
[ "BSD-2-Clause" ]
2
2016-01-28T14:09:56.000Z
2017-01-19T16:18:13.000Z
django_riak_engine/util/dist.py
oubiwann-unsupported/django-riak-engine
cd4adc6c1e7dfa3d4e94346624578a1c3990efd5
[ "BSD-2-Clause" ]
null
null
null
django_riak_engine/util/dist.py
oubiwann-unsupported/django-riak-engine
cd4adc6c1e7dfa3d4e94346624578a1c3990efd5
[ "BSD-2-Clause" ]
2
2015-02-06T11:38:20.000Z
2015-03-19T19:43:58.000Z
import os rest_error_help = """ ReST validation error See the following: http://docutils.sourceforge.net/docs/user/rst/cheatsheet.txt http://docutils.sourceforge.net/docs/user/rst/quickstart.html """ legalReSTFiles = [ "README", "TODO", "DEPENDENCIES", ] def setup(*args, **kwds): """ C...
24.477612
78
0.609756
25bd07ba588271be498ec8c4664355491be56338
51,455
py
Python
portality/lib/dataobj.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
null
null
null
portality/lib/dataobj.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
null
null
null
portality/lib/dataobj.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- from portality.lib import dates from portality.datasets import get_country_code, get_currency_code from copy import deepcopy import locale, json, warnings from urllib.parse import urlparse from datetime import date, datetime ######################################################### ## Data coe...
37.31327
220
0.58041
2c73ba1c753489bb95d93e00459a8cb0098a070b
280
py
Python
adder.py
pochangl/qiskit-experiment
0a1704be6c1d430dd3dbd497e95cff1fbd31c50f
[ "Apache-2.0" ]
null
null
null
adder.py
pochangl/qiskit-experiment
0a1704be6c1d430dd3dbd497e95cff1fbd31c50f
[ "Apache-2.0" ]
null
null
null
adder.py
pochangl/qiskit-experiment
0a1704be6c1d430dd3dbd497e95cff1fbd31c50f
[ "Apache-2.0" ]
null
null
null
import qiskit from qiskit import QuantumRegister, QuantumCircuit from operators import add from utils import print_vector q = qiskit.QuantumRegister(4) a, b, s, c = q circuit = qiskit.QuantumCircuit(q) circuit.h([a, b]) add(circuit, a, b, s, c) print_vector(circuit, width=4)
18.666667
50
0.753571
0488232a8df9eb6b04d1c4c233c7cfb0e936f7c4
144
py
Python
aoc2020/day_16/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_16/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_16/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from .part_1 import Solution as Part1 class Solution(Part1): expected = None def solve(self) -> any: return super().solve2()
16
37
0.645833
0ad3a3bd78a086e3a03c882f520586d616b260fd
2,519
py
Python
src/desafioAtados/settings.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/desafioAtados/settings.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/desafioAtados/settings.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'mu1*lyhpzwg(x*i!29)vigzwf(si%c(-l^lxj)wljes=s)csvq' DEBUG = True ALLOWED_HOSTS = ['0.0.0.0', ] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.conte...
24.456311
91
0.674474
41d2f5e24b89eada838aee048abf84960b46c8dc
21,357
py
Python
modules/templates/RMS/layouts.py
waidyanatha/eden
a275ed7d10c2bf8839de86b7ac7c549186fc94b7
[ "MIT" ]
1
2018-12-25T05:33:36.000Z
2018-12-25T05:33:36.000Z
modules/templates/RMS/layouts.py
waidyanatha/eden
a275ed7d10c2bf8839de86b7ac7c549186fc94b7
[ "MIT" ]
1
2021-07-19T05:05:48.000Z
2021-07-19T05:05:48.000Z
modules/templates/RMS/layouts.py
armin11/eden
70834282bc1dee7d1bc00ea617c384755f3bf806
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from gluon import * #from gluon.storage import Storage from s3 import * #from s3theme import NAV, SECTION THEME = "RMS" training_functions = ("certificate", "course", "course_certificate", "facility", "training", "training_center", "training_event",...
43.496945
1,111
0.360397
8ed9f2fbea9cf3c92b21542d040cf7d27752af6a
8,475
py
Python
int_ui/html_xltree.py
okriuchykhin/anfisa
cda08e649c5a313c7d52f9b4426558c7388a73b0
[ "Apache-2.0" ]
null
null
null
int_ui/html_xltree.py
okriuchykhin/anfisa
cda08e649c5a313c7d52f9b4426558c7388a73b0
[ "Apache-2.0" ]
null
null
null
int_ui/html_xltree.py
okriuchykhin/anfisa
cda08e649c5a313c7d52f9b4426558c7388a73b0
[ "Apache-2.0" ]
null
null
null
from xml.sax.saxutils import escape from .gen_html import startHtmlPage from .html_xl import formNoteDiv, formCreateWsDiv, formSubViewDiv #=============================================== def formXLTreePage(output, common_title, html_base, xl_ds, ws_url): startHtmlPage(output, common_title + "-XL " + xl_ds....
38.69863
81
0.466549
a57d0f057ddb63a0107921f8d1ec9a68e4dc54a7
35,068
py
Python
fastybird_fb_bus_connector/registry/records.py
FastyBird/fb-bus-connector-plugin
71568874243578a37a01bd3f0cbb3306c331d11f
[ "Apache-2.0" ]
null
null
null
fastybird_fb_bus_connector/registry/records.py
FastyBird/fb-bus-connector-plugin
71568874243578a37a01bd3f0cbb3306c331d11f
[ "Apache-2.0" ]
null
null
null
fastybird_fb_bus_connector/registry/records.py
FastyBird/fb-bus-connector-plugin
71568874243578a37a01bd3f0cbb3306c331d11f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2021. FastyBird s.r.o. # # 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 re...
31.479354
118
0.508526
eb0feb47c61171f0fe9c1bba370d4d7059588395
3,430
py
Python
influxdb_client/domain/cell_links.py
Rajpratik71/influxdb-client-python
ae537018b638600552b3ac11f1b070c048719910
[ "MIT" ]
null
null
null
influxdb_client/domain/cell_links.py
Rajpratik71/influxdb-client-python
ae537018b638600552b3ac11f1b070c048719910
[ "MIT" ]
null
null
null
influxdb_client/domain/cell_links.py
Rajpratik71/influxdb-client-python
ae537018b638600552b3ac11f1b070c048719910
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service. No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class CellLinks(object): ...
25.789474
120
0.541983
0c50ce929d5a6a3b9a3667598dc3490533c683b1
3,832
py
Python
how-to-use-azureml/automated-machine-learning/regression-explanation-featurization/train_explainer.py
mx-iao/MachineLearningNotebooks
8e7bb9e00ebd6d17d937289bb04b87dd7257651e
[ "MIT" ]
3
2020-09-10T15:02:56.000Z
2020-09-13T17:37:47.000Z
how-to-use-azureml/automated-machine-learning/regression-explanation-featurization/train_explainer.py
vijetajo/MachineLearningNotebooks
7e2c1ca152e280dc544f3c9654e9906a7f17c89b
[ "MIT" ]
null
null
null
how-to-use-azureml/automated-machine-learning/regression-explanation-featurization/train_explainer.py
vijetajo/MachineLearningNotebooks
7e2c1ca152e280dc544f3c9654e9906a7f17c89b
[ "MIT" ]
2
2020-07-10T05:13:17.000Z
2020-07-10T18:15:04.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. import os from azureml.core.run import Run from azureml.core.experiment import Experiment from azureml.core.dataset import Dataset from azureml.train.automl.runtime.automl_explain_utilities import AutoMLExplainerSetupClass, \ automl_...
47.308642
116
0.747129
09822fae946efeb45144b533a71ece6c46599302
376
py
Python
pal/filter/mpam.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
26
2020-01-06T23:53:17.000Z
2022-02-01T08:58:21.000Z
pal/filter/mpam.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
30
2019-11-13T00:55:22.000Z
2022-01-06T08:09:35.000Z
pal/filter/mpam.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
14
2019-11-15T16:56:22.000Z
2021-12-22T10:14:17.000Z
from pal.filter.abstract_filter import AbstractFilter class MPAMRegisterFilter(AbstractFilter): @property def description(self): return "memory partitioning and monitoring (MPAM) registers" def do_filter(self, reg): regname = reg.name.lower() if(regname.startswith("mpam")): ...
26.857143
68
0.656915
85682b22cc3b6d994ea99167f879bdefc233f84a
991
py
Python
acciones/accion_6.py
salaminalcuadrado/VideoClub
dcddbe545d9691c12c9180e375cd9573e375dafa
[ "MIT" ]
3
2018-10-28T16:00:40.000Z
2018-10-29T01:52:57.000Z
acciones/accion_6.py
salaminalcuadrado/VideoClub
dcddbe545d9691c12c9180e375cd9573e375dafa
[ "MIT" ]
13
2018-10-28T16:05:39.000Z
2018-10-28T20:03:15.000Z
acciones/accion_6.py
salaminalcuadrado/VideoClub
dcddbe545d9691c12c9180e375cd9573e375dafa
[ "MIT" ]
null
null
null
# ACCION 6 import sys sys.path.append('./control_libreria') sys.path.append('./tools') from clientes import subir_diccionario, encontrar_codigo_clientes from generar_datos import generar_data from agregar_modificar_clientes import modificar_client def modificar_clientes(): codigo = input(" Ingrese el codigo p...
19.431373
67
0.533804
c011af4d97ac9949e8e73554a22ed0cf1cea34a0
1,701
py
Python
applications/ShallowWaterApplication/tests/shallow_water_test_factory.py
ma6yu/Kratos
02380412f8a833a2cdda6791e1c7f9c32e088530
[ "BSD-4-Clause" ]
null
null
null
applications/ShallowWaterApplication/tests/shallow_water_test_factory.py
ma6yu/Kratos
02380412f8a833a2cdda6791e1c7f9c32e088530
[ "BSD-4-Clause" ]
null
null
null
applications/ShallowWaterApplication/tests/shallow_water_test_factory.py
ma6yu/Kratos
02380412f8a833a2cdda6791e1c7f9c32e088530
[ "BSD-4-Clause" ]
null
null
null
import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics.ShallowWaterApplication.shallow_water_analysis import ShallowWaterAnalysis class ShallowWaterTestFactory(KratosUnittest.TestCase): def test_execution(self): with KratosUnittest.WorkFolderScope(self...
40.5
98
0.800705
c9f286369ea2534ec6bd9a825dfdda475db75df4
1,640
py
Python
ch07/boston_cv10_penalized.py
ishandutta2007/BuildingMachineLearningSystemsWithPython
6828d7c242d663ad85a7bebeb4a2ef578e2d8482
[ "MIT" ]
1
2017-04-24T16:14:59.000Z
2017-04-24T16:14:59.000Z
ch07/boston_cv10_penalized.py
woodhaha/BuildingMachineLearningSystemsWithPython
bb7510741b5a745237186a85c6b648e5b8b37f26
[ "MIT" ]
null
null
null
ch07/boston_cv10_penalized.py
woodhaha/BuildingMachineLearningSystemsWithPython
bb7510741b5a745237186a85c6b648e5b8b37f26
[ "MIT" ]
1
2015-06-08T23:10:32.000Z
2015-06-08T23:10:32.000Z
# This code is supporting material for the book # Building Machine Learning Systems with Python # by Willi Richert and Luis Pedro Coelho # published by PACKT Publishing # # It is made available under the MIT License # This script fits several forms of penalized regression from __future__ import print_function from sk...
32.156863
75
0.660976
871fb4492da6a4be3514893306a727be73a5ec1d
13,512
py
Python
sap2012/SAP_worksheet/ventilation_rates.py
building-energy/sap2012
4cb3a362be4662b0e96c56a3765771f0cba91422
[ "MIT" ]
7
2021-04-17T21:55:37.000Z
2021-08-19T13:06:16.000Z
sap2012/SAP_worksheet/ventilation_rates.py
building-energy/sap2012
4cb3a362be4662b0e96c56a3765771f0cba91422
[ "MIT" ]
null
null
null
sap2012/SAP_worksheet/ventilation_rates.py
building-energy/sap2012
4cb3a362be4662b0e96c56a3765771f0cba91422
[ "MIT" ]
2
2021-03-21T16:14:50.000Z
2021-04-20T08:54:41.000Z
# -*- coding: utf-8 -*- def ventilation_rates( number_of_chimneys_main_heating, number_of_chimneys_secondary_heating, number_of_chimneys_other, number_of_open_flues_main_heating, number_of_open_flues_secondary_heating, number_of_open_flues_other, number_of_interm...
44.156863
138
0.697084
fc94fb4cac9f98bd6caa36d5c35ffc2cff6f2f9d
2,031
py
Python
projects/vdk-plugins/vdk-control-api-auth/src/vdk/plugin/control_api_auth/auth_exception.py
vmware/versatile-data-kit
c4e10324a4f3203c58079cb18203880f68053f15
[ "Apache-2.0" ]
100
2021-10-04T09:32:04.000Z
2022-03-30T11:23:53.000Z
projects/vdk-plugins/vdk-control-api-auth/src/vdk/plugin/control_api_auth/auth_exception.py
vmware/versatile-data-kit
c4e10324a4f3203c58079cb18203880f68053f15
[ "Apache-2.0" ]
208
2021-10-04T16:56:40.000Z
2022-03-31T10:41:44.000Z
projects/vdk-plugins/vdk-control-api-auth/src/vdk/plugin/control_api_auth/auth_exception.py
vmware/versatile-data-kit
c4e10324a4f3203c58079cb18203880f68053f15
[ "Apache-2.0" ]
14
2021-10-11T14:15:13.000Z
2022-03-11T13:39:17.000Z
# Copyright 2021 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 class VDKAuthException(Exception): """ The VDKAuthException is custom exception type following the coding standard for error handling: see the project contributing documentation """ def __init__(self, what, why, consequence, coun...
33.295082
86
0.681438
913ca46f43a7aa0ee31b881a2c4152b6c5828c03
2,121
py
Python
pytests/bucket_collections/collection_ops_specs/volume_test_load_with_CRUD_on_collections_for_volume_test.py
bkumaran/TAF
27f39eb913fa89b55cdd88ee1c7ef0bb8c094407
[ "Apache-2.0" ]
9
2019-02-19T05:55:00.000Z
2022-01-20T10:37:28.000Z
pytests/bucket_collections/collection_ops_specs/volume_test_load_with_CRUD_on_collections_for_volume_test.py
bkumaran/TAF
27f39eb913fa89b55cdd88ee1c7ef0bb8c094407
[ "Apache-2.0" ]
2
2019-02-19T07:28:54.000Z
2019-06-18T11:22:29.000Z
pytests/bucket_collections/collection_ops_specs/volume_test_load_with_CRUD_on_collections_for_volume_test.py
bkumaran/TAF
27f39eb913fa89b55cdd88ee1c7ef0bb8c094407
[ "Apache-2.0" ]
155
2018-11-13T14:57:07.000Z
2022-03-28T11:53:22.000Z
from collections_helper.collections_spec_constants import MetaCrudParams spec = { # Scope/Collection ops params MetaCrudParams.COLLECTIONS_TO_FLUSH: 0, MetaCrudParams.COLLECTIONS_TO_DROP: 200, MetaCrudParams.SCOPES_TO_DROP: 0, MetaCrudParams.SCOPES_TO_ADD_PER_BUCKET: 0, MetaCrudParams.COLLECTI...
38.563636
72
0.770863
328a8114621d0559b7c31cfab7f64e350c7cd7b3
7,414
py
Python
examples/wavenet/train.py
JiaXiao243/Parakeet
7c4267476ee9211236f5ea848131a3638fd0f555
[ "Apache-2.0" ]
1
2020-06-22T12:12:43.000Z
2020-06-22T12:12:43.000Z
examples/wavenet/train.py
JiaXiao243/Parakeet
7c4267476ee9211236f5ea848131a3638fd0f555
[ "Apache-2.0" ]
null
null
null
examples/wavenet/train.py
JiaXiao243/Parakeet
7c4267476ee9211236f5ea848131a3638fd0f555
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 appli...
36.70297
115
0.696115
fb5899401015d2da8126d0b1247e3f96b9e31004
216
py
Python
_16_LISTS_ADVANCED/_4_Even_Numbers.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_16_LISTS_ADVANCED/_4_Even_Numbers.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_16_LISTS_ADVANCED/_4_Even_Numbers.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
numbers = [int(n.strip()) for n in input().split(",")] even_number_indexes = [] for index, number in enumerate(numbers): if number % 2 == 0: even_number_indexes.append(index) print(even_number_indexes)
24
54
0.680556
cecccd18b25c0a2aead412b6872da0b4d614107e
263
py
Python
cms_lab_members/models.py
mfcovington/djangocms-lab-members
c2b0251d985255265b9ba9fbce41a772ea92174c
[ "BSD-3-Clause" ]
null
null
null
cms_lab_members/models.py
mfcovington/djangocms-lab-members
c2b0251d985255265b9ba9fbce41a772ea92174c
[ "BSD-3-Clause" ]
null
null
null
cms_lab_members/models.py
mfcovington/djangocms-lab-members
c2b0251d985255265b9ba9fbce41a772ea92174c
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from cms.models import CMSPlugin class ScientistPluginModel (CMSPlugin): scientist = models.ForeignKey('lab_members.Scientist', related_name='plugins' ) def __str__(self): return self.scientist.full_name
23.909091
58
0.730038
f8e2d93b107c9356f735465e279370c79c24d2cf
2,970
py
Python
src/sentry/models/releasefile.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
src/sentry/models/releasefile.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/releasefile.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.db import models from six.moves.urllib.parse import urlsplit, urlunsplit from sentry.db.models import BoundedPositiveIntegerField, FlexibleForeignKey, Model, sane_repr from sentry.utils.hashlib import sha1_text class ReleaseFile(Model): r""" A ReleaseFile i...
37.125
94
0.650505
c1fcc56a1b2254079958287bd26061908fe2a39b
3,174
py
Python
source_optics/migrations/0017_auto_20190807_2024.py
mpdehaan/source_optics
ce0215ad63e47f0ab645c765129bac3c7236aff1
[ "Apache-2.0" ]
1
2021-08-24T03:41:34.000Z
2021-08-24T03:41:34.000Z
source_optics/migrations/0017_auto_20190807_2024.py
mpdehaan/source_optics
ce0215ad63e47f0ab645c765129bac3c7236aff1
[ "Apache-2.0" ]
null
null
null
source_optics/migrations/0017_auto_20190807_2024.py
mpdehaan/source_optics
ce0215ad63e47f0ab645c765129bac3c7236aff1
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.2 on 2019-08-07 20:24 from django.db import migrations, models import source_optics.models class Migration(migrations.Migration): dependencies = [ ('source_optics', '0016_auto_20190727_0116'), ] operations = [ migrations.AlterField( model_name='aut...
36.906977
143
0.596408
b99e520107ae72ca6e225f2b6e598bb37f1550cc
1,270
py
Python
leetcode/Trees/230. Kth Smallest Element in a BST.py
danielfsousa/algorithms-solutions
038c0c0bf6d89ffb1ecea596e7d4bb9bd4154ff1
[ "MIT" ]
1
2020-03-17T23:54:32.000Z
2020-03-17T23:54:32.000Z
leetcode/Trees/230. Kth Smallest Element in a BST.py
danielfsousa/algorithms-solutions
038c0c0bf6d89ffb1ecea596e7d4bb9bd4154ff1
[ "MIT" ]
null
null
null
leetcode/Trees/230. Kth Smallest Element in a BST.py
danielfsousa/algorithms-solutions
038c0c0bf6d89ffb1ecea596e7d4bb9bd4154ff1
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/kth-smallest-element-in-a-bst/ # Definition for a binary tree node. from typing import Optional class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def kthSmallest(self, ...
20.483871
76
0.470866
9cc5da53bebb6e005d7e815d2080251fb221b12b
11,526
py
Python
JumpscaleLib/tools/teammgr/Teammgr.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
null
null
null
JumpscaleLib/tools/teammgr/Teammgr.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
220
2018-07-29T08:37:17.000Z
2019-08-05T15:01:27.000Z
JumpscaleLib/tools/teammgr/Teammgr.py
threefoldtech/jumpscale_lib9
03c1451133d777e5af106fcc6f75c1138bb997f2
[ "Apache-2.0" ]
1
2018-08-20T09:16:08.000Z
2018-08-20T09:16:08.000Z
from jumpscale import j TEMPLATE_PERSON_TOML = """ login ="" first_name = "" last_name = "" locations = [] companies = [] departments = [] languageCode = "en-us" title = [] description_internal ="" description_public_friendly ="" description_public_formal ="" experience = "" hobbies = "" pub_ssh_key= "" skype = "" tel...
31.320652
128
0.545115
e839aa6a9466a62f15884193cf2f564feb326e99
288
py
Python
python/baekjoon/step/15-greedy/allocation-of-conference-rooms.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/baekjoon/step/15-greedy/allocation-of-conference-rooms.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/baekjoon/step/15-greedy/allocation-of-conference-rooms.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
""" 출처: https://www.acmicpc.net/problem/1931 """ size = int(input()) schedule = [tuple(map(int, input().split())) for _ in range(size)] schedule.sort(key=lambda x: (x[1], x[0])) result = end = 0 for s, e in schedule: if s >= end: result += 1 end = e print(result)
16.941176
66
0.576389
975d79d49d5321e4e75004abaf1604a8cb9fcbbc
2,395
py
Python
keystone/common/policies/base.py
rajivmucheli/keystone
d55099d4a17e3672d478aae8c367bcdf9af15fb9
[ "Apache-2.0" ]
null
null
null
keystone/common/policies/base.py
rajivmucheli/keystone
d55099d4a17e3672d478aae8c367bcdf9af15fb9
[ "Apache-2.0" ]
4
2020-02-10T12:02:37.000Z
2021-07-14T15:16:57.000Z
keystone/common/policies/base.py
rajivmucheli/keystone
d55099d4a17e3672d478aae8c367bcdf9af15fb9
[ "Apache-2.0" ]
5
2019-06-06T15:11:37.000Z
2021-06-07T08:23:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
35.220588
75
0.721921
098ff64cb759c182bc2d29c85e713f19d6e9a7b0
9,045
py
Python
paxos/receivers/rdtpReceiver.py
victordomene/ram-paxos
e47051b6af42ca952fedbc95e54346ecf3266a39
[ "MIT" ]
null
null
null
paxos/receivers/rdtpReceiver.py
victordomene/ram-paxos
e47051b6af42ca952fedbc95e54346ecf3266a39
[ "MIT" ]
null
null
null
paxos/receivers/rdtpReceiver.py
victordomene/ram-paxos
e47051b6af42ca952fedbc95e54346ecf3266a39
[ "MIT" ]
null
null
null
""" This module provides an implementation of the Receiver class using our own RDTP Protocol, which we wrote for the Chat Assignment in CS262. For the specific documentation of the arguments these methods take and what they do at a high level, refer to receiver.py. """ import socket import select import thread impor...
37.222222
155
0.539525
54237a67a6c7a45c96737ef9a8d145791ee42009
3,838
py
Python
src/MainAPP/migrations/0010_auto_20180521_1229.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
null
null
null
src/MainAPP/migrations/0010_auto_20180521_1229.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
9
2017-11-21T15:45:18.000Z
2022-02-11T03:37:54.000Z
src/MainAPP/migrations/0010_auto_20180521_1229.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
1
2020-07-22T02:24:17.000Z
2020-07-22T02:24:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-05-21 10:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('MainAPP', '0009_sitesettings'), ] operations = [ migrations.A...
54.056338
237
0.650599
0d6eb12dccd990c495fc6680ef394289b4f3ad4f
769
py
Python
phastload/mainsite/models.py
rubensfig/PhastLoad
8cb205bdc25ed3bfa577712a77a1313b085e52cd
[ "Apache-2.0" ]
null
null
null
phastload/mainsite/models.py
rubensfig/PhastLoad
8cb205bdc25ed3bfa577712a77a1313b085e52cd
[ "Apache-2.0" ]
1
2018-04-07T16:07:11.000Z
2018-04-07T16:07:11.000Z
phastload/mainsite/models.py
rubensfig/PhastLoad
8cb205bdc25ed3bfa577712a77a1313b085e52cd
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. class Beaches(models.Model): BEACH_TYPES = ( ('B', 'Beginner'), ('M', 'Medium'), ('A', 'Advanced'), ) id = models.CharField(max_length=30, primary_key=True) name = models.CharField(max_length=30) latX = models.Decima...
27.464286
76
0.642393
9e50ec722051c0cb5c9a6e5dcca22102b6006a68
1,206
py
Python
boom/models.py
boomletsgo/boom-sdk-python
e15af1d9158b84e9677037f2f784a5a9363564af
[ "Unlicense" ]
null
null
null
boom/models.py
boomletsgo/boom-sdk-python
e15af1d9158b84e9677037f2f784a5a9363564af
[ "Unlicense" ]
null
null
null
boom/models.py
boomletsgo/boom-sdk-python
e15af1d9158b84e9677037f2f784a5a9363564af
[ "Unlicense" ]
null
null
null
from declaration import fields, models class Code(models.DeclarativeBase): scope = fields.StringField() code = fields.StringField() class Account(models.DeclarativeBase): id = fields.UUIDField() email = fields.StringField() first_name = fields.StringField() last_name = fields.StringField() ...
28.046512
51
0.72471
166c235172fb12c3284a0d6d6178a00396a3b7f7
17,244
py
Python
tests/platform_tests/test_cont_warm_reboot.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
2
2020-07-03T01:16:27.000Z
2020-10-09T05:38:07.000Z
tests/platform_tests/test_cont_warm_reboot.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
41
2020-03-30T03:52:22.000Z
2021-03-03T09:16:48.000Z
tests/platform_tests/test_cont_warm_reboot.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
1
2021-06-13T07:38:59.000Z
2021-06-13T07:38:59.000Z
import os import shutil import csv import sys import time import json import traceback import pytest import logging from datetime import datetime from tests.common.helpers.assertions import pytest_assert from tests.common.reboot import get_reboot_cause from tests.common.fixtures.advanced_reboot import AdvancedReboot f...
48.711864
127
0.636105
c2e478fcd253c5aec6e0aec52524e3afbf1df75a
12,448
py
Python
test/python/test_optimizer.py
slin004/incubator-singa
09c8a2e65927d6405262bbb969e6dab96809df07
[ "Apache-2.0" ]
1
2020-02-21T06:02:05.000Z
2020-02-21T06:02:05.000Z
test/python/test_optimizer.py
slin004/incubator-singa
09c8a2e65927d6405262bbb969e6dab96809df07
[ "Apache-2.0" ]
8
2020-01-16T06:56:23.000Z
2020-01-18T03:46:04.000Z
test/python/test_optimizer.py
slin004/incubator-singa
09c8a2e65927d6405262bbb969e6dab96809df07
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.671916
79
0.513978
0e60e0703979db3e572255852f6f489d24415dda
625
py
Python
a3c/config.py
LaneWei/doom-rl
26ac29caf3f434f4c8f173534b7627b349ad4615
[ "MIT" ]
1
2018-09-23T07:18:12.000Z
2018-09-23T07:18:12.000Z
a3c/config.py
LaneWei/doom-rl
26ac29caf3f434f4c8f173534b7627b349ad4615
[ "MIT" ]
null
null
null
a3c/config.py
LaneWei/doom-rl
26ac29caf3f434f4c8f173534b7627b349ad4615
[ "MIT" ]
null
null
null
import itertools as it class Config: WORKER_THREADS = 8 LEARNING_RATE = 1e-4 DECAY_RATE = 0.997 GAMMA = 0.95 N_STEP_RETURN = 4 FRAME_REPEAT = 8 BATCH_SIZE = 64 QUEUE_LEN = 1000 IMAGE_HEIGHT = 128 IMAGE_WIDTH = 128 IMAGE_CHANNELS = 3 IMAGE_CROP_BOX = (0, 130, 640, 400)...
22.321429
88
0.6096
ba49ba1b985f569f057b0b565ec3239f924cdff9
16,867
py
Python
pywikibot/login.py
anukaal/pywikibot
086e99d686ceebb40cb2e3dc7989e78ce6de3b85
[ "MIT" ]
null
null
null
pywikibot/login.py
anukaal/pywikibot
086e99d686ceebb40cb2e3dc7989e78ce6de3b85
[ "MIT" ]
null
null
null
pywikibot/login.py
anukaal/pywikibot
086e99d686ceebb40cb2e3dc7989e78ce6de3b85
[ "MIT" ]
null
null
null
#!/usr/bin/python """Library to log the bot in to a wiki account.""" # # (C) Pywikibot team, 2003-2021 # # Distributed under the terms of the MIT license. # import codecs import os import webbrowser from enum import IntEnum from typing import Any, Optional from warnings import warn import pywikibot import pywikibot.da...
34.849174
79
0.586471
192bbcc4a5d655d1c1296fa3065b041056e12be1
1,053
py
Python
examples/html_timetable.py
python-webuntis/python-webuntis
51aa2df293f01dcdf2c278386d513dbfc1c2115c
[ "BSD-3-Clause" ]
22
2018-02-01T15:59:12.000Z
2022-02-10T20:25:03.000Z
examples/html_timetable.py
AugustH/python-webuntis
e440a0364770e6992b34c05fb8ad705a2ec493ea
[ "BSD-3-Clause" ]
25
2017-07-05T18:06:52.000Z
2022-03-28T19:27:05.000Z
examples/html_timetable.py
AugustH/python-webuntis
e440a0364770e6992b34c05fb8ad705a2ec493ea
[ "BSD-3-Clause" ]
12
2017-08-19T17:48:47.000Z
2022-02-22T07:36:12.000Z
from credentials import s import datetime import logging # ***DO NOT USE THIS EXAMPLE AS-IS*** # Properties that are printed here may contain arbitrary # *unescaped* HTML. That is not expected, but you should not trust # input from remote sources in general. logging.basicConfig(level=logging.DEBUG) today = datetime....
27.710526
72
0.650522
8f30c3d5e5efe5f5dc700c98731bf3dfcce61906
75,458
py
Python
lrs/tests/AuthTests.py
Sembian/ADL_LRS
3535dad6371af3f9f5b67f7eabfd0f4a393e0d62
[ "Apache-2.0" ]
null
null
null
lrs/tests/AuthTests.py
Sembian/ADL_LRS
3535dad6371af3f9f5b67f7eabfd0f4a393e0d62
[ "Apache-2.0" ]
null
null
null
lrs/tests/AuthTests.py
Sembian/ADL_LRS
3535dad6371af3f9f5b67f7eabfd0f4a393e0d62
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from django.core.urlresolvers import reverse from lrs import views, models from django.conf import settings import json import base64 import uuid from datetime import datetime, timedelta from django.utils.timezone import utc import urllib from lrs.util import retrieve_statement import h...
67.073778
240
0.637308
a0752110b27d26ad3656c38c0e1a67744f7c9668
5,394
py
Python
main.py
google/clicktrackers-panel
5de8f51602c3d587c29c2d7c599f0df589f4720d
[ "Apache-2.0" ]
5
2017-12-26T05:54:54.000Z
2021-10-13T22:35:23.000Z
main.py
google/clicktrackers-panel
5de8f51602c3d587c29c2d7c599f0df589f4720d
[ "Apache-2.0" ]
null
null
null
main.py
google/clicktrackers-panel
5de8f51602c3d587c29c2d7c599f0df589f4720d
[ "Apache-2.0" ]
5
2017-12-26T05:54:29.000Z
2021-10-13T22:35:14.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.924528
79
0.654245
ba5ce629596db8390084e04638fc5175c0f5406d
971
py
Python
lib/taniumpy/object_types/saved_action_policy.py
netsec/pytan
29a3484d21cb90d8896275febd1c535e4f3cdc7e
[ "MIT" ]
null
null
null
lib/taniumpy/object_types/saved_action_policy.py
netsec/pytan
29a3484d21cb90d8896275febd1c535e4f3cdc7e
[ "MIT" ]
1
2021-12-08T08:29:26.000Z
2021-12-08T08:29:26.000Z
pytanlib/taniumpy/object_types/saved_action_policy.py
splunk-soar-connectors/tanium
e6f38fd014ea125e11a584ac9932ad4e7e855ac7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Tanium Inc # # Generated from console.wsdl version 0.0.1 # # from .base import BaseType class SavedActionPolicy(BaseType): _soap_tag = 'policy' def __init__(self): BaseType.__init__( self, simple_properties={'saved_question_id': int, ...
24.897436
62
0.568486
822ad9c580fdd3cec11b14b1468fe633d419f674
12,303
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
1
2021-12-15T22:45:14.000Z
2021-12-15T22:45:14.000Z
datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/commands/test.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import sys import click from ..._env import DDTRACE_OPTIONS_LIST, E2E_PARENT_PYTHON, SKIP_ENVIRONMENT from ...ci import get_ci_env_vars, running_on_ci from ...fs import chdir, file_exists, remo...
40.074919
120
0.626514
509d0c8b54ebe0dbde5e3bb55694331e49e695de
468
py
Python
backend/todo/urls.py
jimbofreedman/naggingnelly-backend
a1e64089915ad80a2d3d8cd0252bc2bcd0e1f475
[ "MIT" ]
null
null
null
backend/todo/urls.py
jimbofreedman/naggingnelly-backend
a1e64089915ad80a2d3d8cd0252bc2bcd0e1f475
[ "MIT" ]
null
null
null
backend/todo/urls.py
jimbofreedman/naggingnelly-backend
a1e64089915ad80a2d3d8cd0252bc2bcd0e1f475
[ "MIT" ]
null
null
null
from django.urls import path, include # from django.urls import url, include from rest_framework.routers import DefaultRouter from .views import index, complete, cancel, fail from .viewsets import ContextViewSet, TodoItemViewSet app_name = "todo" router = DefaultRouter() router.register(r'contexts', ContextViewSet, ...
27.529412
70
0.779915
ef298f23e8a5d770e785f36a4a7a864b9b036eb8
4,157
py
Python
xknx/config/yaml_loader.py
spacegaier/xknx
2c2420670da88fea386d573f78a78c5a342186e9
[ "MIT" ]
null
null
null
xknx/config/yaml_loader.py
spacegaier/xknx
2c2420670da88fea386d573f78a78c5a342186e9
[ "MIT" ]
null
null
null
xknx/config/yaml_loader.py
spacegaier/xknx
2c2420670da88fea386d573f78a78c5a342186e9
[ "MIT" ]
null
null
null
"""Custom YAML loader.""" from collections import OrderedDict import fnmatch import logging import os from typing import Dict, Iterator, List, TypeVar, Union from xknx.config.objects import NodeListClass, NodeStrClass from xknx.exceptions import XKNXException import yaml logger = logging.getLogger("xknx.log") JSON_T...
35.529915
88
0.68968
6cfe0497176e6b1e8a0a79b5f9b23d5ebf1dac14
8,530
py
Python
scripts/monitoring/cron-openshift-pruner.py
propyless/openshift-tools
16776b4f343ea3b2018f7679cc3383e616020710
[ "Apache-2.0" ]
null
null
null
scripts/monitoring/cron-openshift-pruner.py
propyless/openshift-tools
16776b4f343ea3b2018f7679cc3383e616020710
[ "Apache-2.0" ]
null
null
null
scripts/monitoring/cron-openshift-pruner.py
propyless/openshift-tools
16776b4f343ea3b2018f7679cc3383e616020710
[ "Apache-2.0" ]
2
2018-10-16T05:11:13.000Z
2018-11-07T01:46:29.000Z
#!/usr/bin/env python # vim: expandtab:tabstop=4:shiftwidth=4 ''' Prune images/builds/deployments ''' # # Copyright 2016 Red Hat 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 ...
37.086957
79
0.567761
3bb13c6532b01f9330ca345580d2d0b2a6718195
249
py
Python
src/main.py
nbilbo/faz_download_imgs
be02b7c68c2dbbaa6976b50fb6cbdb84ad5e0839
[ "MIT" ]
null
null
null
src/main.py
nbilbo/faz_download_imgs
be02b7c68c2dbbaa6976b50fb6cbdb84ad5e0839
[ "MIT" ]
null
null
null
src/main.py
nbilbo/faz_download_imgs
be02b7c68c2dbbaa6976b50fb6cbdb84ad5e0839
[ "MIT" ]
null
null
null
# coding: utf-8 from backend.backend import Backend from view.interface import Interface from control.control_interface import ControlInterface if __name__ == '__main__': controler = ControlInterface(Interface, Backend) controler.start()
22.636364
54
0.787149
b8cfd2c3bf1b9bbb449f3f31cda4b6bf7396fbfd
3,391
py
Python
example_channels/example_channels/settings.py
tim-bad/django-example-channels
fd9c97cacc3b3888882725f214dfb5d1f21f06fe
[ "MIT" ]
97
2017-03-01T00:29:54.000Z
2022-03-27T15:41:36.000Z
example_channels/example_channels/settings.py
pmutua/django-example-channels
fd9c97cacc3b3888882725f214dfb5d1f21f06fe
[ "MIT" ]
2
2020-06-06T00:46:06.000Z
2021-06-10T22:35:57.000Z
example_channels/example_channels/settings.py
pmutua/django-example-channels
fd9c97cacc3b3888882725f214dfb5d1f21f06fe
[ "MIT" ]
70
2017-02-28T18:24:05.000Z
2022-03-27T15:41:33.000Z
""" Django settings for example_channels project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ ...
25.496241
91
0.684459
ecf05a875a98eac2a78e90e6834911309bc72cba
5,072
py
Python
tests/metarl/tf/policies/test_categorical_mlp_policy.py
icml2020submission6857/metarl
9b66cefa2b6bcb6a38096d629ce8853b47c7171d
[ "MIT" ]
2
2020-03-15T14:35:15.000Z
2021-02-15T16:38:00.000Z
tests/metarl/tf/policies/test_categorical_mlp_policy.py
icml2020submission6857/metarl
9b66cefa2b6bcb6a38096d629ce8853b47c7171d
[ "MIT" ]
null
null
null
tests/metarl/tf/policies/test_categorical_mlp_policy.py
icml2020submission6857/metarl
9b66cefa2b6bcb6a38096d629ce8853b47c7171d
[ "MIT" ]
1
2020-02-24T03:04:23.000Z
2020-02-24T03:04:23.000Z
import pickle from unittest import mock import numpy as np import pytest import tensorflow as tf from metarl.tf.envs import TfEnv from metarl.tf.policies import CategoricalMLPPolicy from tests.fixtures import TfGraphTestCase from tests.fixtures.envs.dummy import DummyDiscreteEnv from tests.fixtures.models import Simp...
35.468531
77
0.582216
8a463c3bfe1ce761181a6f8522ee373a9dd27219
1,982
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_extension_instance_view_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_extension_instance_view_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_extension_instance_view_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.291667
141
0.639758
bea4b77c0f3552572ede91e6c9cb8978182f5971
2,740
py
Python
authors/apps/comments/serializers.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
null
null
null
authors/apps/comments/serializers.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
21
2019-03-25T18:38:02.000Z
2019-04-23T09:54:52.000Z
authors/apps/comments/serializers.py
rfpremier/ah-django
ff4f1ba34d074e68e49f7896848f81b729542e1f
[ "BSD-3-Clause" ]
3
2019-07-15T08:41:58.000Z
2019-12-20T08:25:34.000Z
from rest_framework import serializers from .models import Comments, Like from .history import CommentHistory as history class CommentsSerializer(serializers.ModelSerializer): article = serializers.SerializerMethodField() user = serializers.SerializerMethodField() highlighted_text = serializers.CharField(...
30.444444
74
0.617883
78cff1a7a3fcb300aac30ce8a8d1669493c95d38
7,801
py
Python
vedadet/misc/bbox/assigners/atss_assigner.py
jie311/vedadet
aaf3b3bc3c7944aba1cc28138165d403023a9152
[ "Apache-2.0" ]
424
2020-10-19T03:56:49.000Z
2022-03-28T02:47:39.000Z
vedadet/misc/bbox/assigners/atss_assigner.py
jie311/vedadet
aaf3b3bc3c7944aba1cc28138165d403023a9152
[ "Apache-2.0" ]
72
2020-11-27T17:10:00.000Z
2022-03-17T02:40:53.000Z
vedadet/misc/bbox/assigners/atss_assigner.py
jie311/vedadet
aaf3b3bc3c7944aba1cc28138165d403023a9152
[ "Apache-2.0" ]
116
2020-11-03T02:31:17.000Z
2022-03-08T08:20:48.000Z
# adapted from https://github.com/open-mmlab/mmcv or # https://github.com/open-mmlab/mmdetection import torch from vedacore.misc import registry from ..iou_calculators import build_iou_calculator from .assign_result import AssignResult from .base_assigner import BaseAssigner @registry.register_module('bbox_assigner'...
43.338889
87
0.605179
1b93ac322cae58b32073b2c5d44bf019c24ed739
3,115
py
Python
mymodel.py
tombuuz/Depthmap-Resource-Limited
8ca004b10e3c30b4271da9673fd21688818f88c1
[ "MIT" ]
1
2021-05-27T16:39:33.000Z
2021-05-27T16:39:33.000Z
mymodel.py
tombuuz/Depthmap-Resource-Limited
8ca004b10e3c30b4271da9673fd21688818f88c1
[ "MIT" ]
null
null
null
mymodel.py
tombuuz/Depthmap-Resource-Limited
8ca004b10e3c30b4271da9673fd21688818f88c1
[ "MIT" ]
null
null
null
import torch import torch.nn as nn #import nni.retiarii.nn.pytorch as nn #from nni.retiarii import basic_unit from ops import ConvBn, ConvDw, UpConv, PointWise, UpProj, MyBlock #from nni.nas.pytorch import mutables from nni.nas import pytorch as nas #from nni.retiarii.nn.pytorch import LayerChoice #import collections ...
30.841584
107
0.523274
042fd97ee015bb54c88faadcd5dcc829e104a304
1,435
py
Python
monk/system_unit_tests/pytorch/test_block_inception_e.py
take2rohit/monk_v1
9c567bf2c8b571021b120d879ba9edf7751b9f92
[ "Apache-2.0" ]
542
2019-11-10T12:09:31.000Z
2022-03-28T11:39:07.000Z
monk/system_unit_tests/pytorch/test_block_inception_e.py
take2rohit/monk_v1
9c567bf2c8b571021b120d879ba9edf7751b9f92
[ "Apache-2.0" ]
117
2019-11-12T09:39:24.000Z
2022-03-12T00:20:41.000Z
monk/system_unit_tests/pytorch/test_block_inception_e.py
take2rohit/monk_v1
9c567bf2c8b571021b120d879ba9edf7751b9f92
[ "Apache-2.0" ]
246
2019-11-09T21:53:24.000Z
2022-03-29T00:57:07.000Z
import os import sys sys.path.append("../../../../monk_v1/"); sys.path.append("../../../monk/"); import psutil from pytorch_prototype import prototype from compare_prototype import compare from common import print_start from common import print_status import torch import numpy as np from pytorch.losses.return_loss im...
28.7
80
0.634146
0654fbad8f372ab91518574fab87fb6c7739aacb
1,837
py
Python
virtual_env/Lib/site-packages/playhouse/db_url.py
Zachary-Jackson/Flask-Learning-Journal
7934766299dc864374ba7a28cb3c76add4a4ddc4
[ "BSD-2-Clause" ]
1
2018-02-26T08:41:08.000Z
2018-02-26T08:41:08.000Z
virtual_env/Lib/site-packages/playhouse/db_url.py
Zachary-Jackson/Flask-Learning-Journal
7934766299dc864374ba7a28cb3c76add4a4ddc4
[ "BSD-2-Clause" ]
null
null
null
virtual_env/Lib/site-packages/playhouse/db_url.py
Zachary-Jackson/Flask-Learning-Journal
7934766299dc864374ba7a28cb3c76add4a4ddc4
[ "BSD-2-Clause" ]
null
null
null
try: from urlparse import urlparse except ImportError: from urllib.parse import urlparse from peewee import * from playhouse.sqlite_ext import SqliteExtDatabase try: from playhouse.apsw_ext import APSWDatabase except ImportError: APSWDatabase = None try: from playhouse.berkeleydb import BerkeleyDat...
30.616667
78
0.690256
5dd9faefc1c6cd218ce02dac1e6a7a7383caf7cb
7,007
py
Python
burger_war_dev/scripts/Radar.py
takaoh/burger_war_dev
f48918182327f07942df86c4ae04575c5f9ea6b2
[ "BSD-3-Clause" ]
1
2021-02-05T09:11:30.000Z
2021-02-05T09:11:30.000Z
burger_war_dev/scripts/Radar.py
takaoh/burger_war_dev
f48918182327f07942df86c4ae04575c5f9ea6b2
[ "BSD-3-Clause" ]
2
2021-02-28T05:44:59.000Z
2021-03-02T14:17:09.000Z
burger_war_dev/scripts/Radar.py
takaoh/burger_war_dev
f48918182327f07942df86c4ae04575c5f9ea6b2
[ "BSD-3-Clause" ]
2
2021-03-01T08:00:41.000Z
2021-03-02T10:14:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This is ALL SENSOR use node. Mainly echo sensor value in tarminal. Please Use for your script base. by Takuya Yamaguchi @dashimaki360 ''' import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import Image from sensor_msgs.msg import Imu from sensor_ms...
36.494792
102
0.575139
68e7fed24e7fb28ecd01a8e80c97b227cf5f3d41
18,300
py
Python
sdks/python/apache_beam/runners/interactive/caching/streaming_cache_test.py
NarimanAB/beam
6cedbac5bb42304f4af88634edd276b0b78e4e4e
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-07-27T11:54:33.000Z
2021-06-06T11:53:36.000Z
sdks/python/apache_beam/runners/interactive/caching/streaming_cache_test.py
NarimanAB/beam
6cedbac5bb42304f4af88634edd276b0b78e4e4e
[ "Apache-2.0", "BSD-3-Clause" ]
12
2019-04-15T15:27:23.000Z
2019-07-01T18:13:10.000Z
sdks/python/apache_beam/runners/interactive/caching/streaming_cache_test.py
NarimanAB/beam
6cedbac5bb42304f4af88634edd276b0b78e4e4e
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-07-16T09:15:14.000Z
2021-07-16T09:15:14.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 us...
42.263279
89
0.627705
ba6f91f1574a352e099f2c660174823fe1d30f30
5,499
py
Python
aiida/restapi/run_api.py
HaoZeke/aiida-core
1a4cada67fe36353326dcebfe888ebc01a6c5b7b
[ "MIT", "BSD-3-Clause" ]
null
null
null
aiida/restapi/run_api.py
HaoZeke/aiida-core
1a4cada67fe36353326dcebfe888ebc01a6c5b7b
[ "MIT", "BSD-3-Clause" ]
2
2019-03-06T11:23:42.000Z
2020-03-09T09:34:07.000Z
aiida/restapi/run_api.py
lorisercole/aiida-core
84c2098318bf234641219e55795726f99dc25a16
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
44.346774
119
0.67776
6fb7b02c8bf75e835bea86d1756aa9ee496468f1
1,917
py
Python
scripts/pull-workbench-conf.py
UKHomeOffice/dq-packer-ops-win-bastion-nineteen
c94c1e6d9d301bd433570be1cfa603d748f364e4
[ "MIT" ]
null
null
null
scripts/pull-workbench-conf.py
UKHomeOffice/dq-packer-ops-win-bastion-nineteen
c94c1e6d9d301bd433570be1cfa603d748f364e4
[ "MIT" ]
3
2019-02-07T09:41:53.000Z
2020-05-13T13:28:07.000Z
scripts/pull-workbench-conf.py
UKHomeOffice/dq-packer-ops-win-bastion-nineteen
c94c1e6d9d301bd433570be1cfa603d748f364e4
[ "MIT" ]
1
2021-04-11T09:09:16.000Z
2021-04-11T09:09:16.000Z
import boto3 import os import logging logging.basicConfig( filename='sqlworkbench-config-pull-logs.txt', format='%(asctime)s %(message)s', datefmt='%d/%m/%Y %H:%M:%S', level=logging.INFO ) class S3Copier: def __init__(self, input_location, output_location): self.input_location = input_loca...
38.34
96
0.631195