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
23e3a60f63c2b3a239446868840ede320a8c1440
10,600
py
Python
pex/util.py
maguro/pex
b9217232a913e8d32fb78e8c1625f7b56e05f613
[ "Apache-2.0" ]
null
null
null
pex/util.py
maguro/pex
b9217232a913e8d32fb78e8c1625f7b56e05f613
[ "Apache-2.0" ]
null
null
null
pex/util.py
maguro/pex
b9217232a913e8d32fb78e8c1625f7b56e05f613
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import contextlib import os import sys import tempfile from hashlib import sha1 from site import makepath # type: ignore[attr-defined] from pex.co...
43.089431
104
0.613868
59d8d2c5759488e6e6adb35b1a028ba0b44922db
791
py
Python
c_prj/urls.py
MrOakenShield/coronavirus-in-Turkey-live-info
19b44f4a433d12208fec5c984fa46a0a34f9a819
[ "MIT" ]
null
null
null
c_prj/urls.py
MrOakenShield/coronavirus-in-Turkey-live-info
19b44f4a433d12208fec5c984fa46a0a34f9a819
[ "MIT" ]
null
null
null
c_prj/urls.py
MrOakenShield/coronavirus-in-Turkey-live-info
19b44f4a433d12208fec5c984fa46a0a34f9a819
[ "MIT" ]
null
null
null
"""c_prj URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
34.391304
77
0.701643
3a298185df3bb1bc42f737b5dbbc7b13f70ef476
27,330
py
Python
AppServer/google/appengine/tools/appengine_rpc.py
isabella232/scale-safe
8b887726768106b6b67d7be6ea257bee5cd83f9a
[ "Apache-2.0" ]
3
2016-06-12T01:18:49.000Z
2018-07-16T18:20:23.000Z
AppServer/google/appengine/tools/appengine_rpc.py
davgit/appscale
17d35a14fa5a56975de1e3517bec9e7f9047d82a
[ "Apache-2.0" ]
1
2021-06-08T10:04:35.000Z
2021-06-08T10:04:35.000Z
AppServer/google/appengine/tools/appengine_rpc.py
davgit/appscale
17d35a14fa5a56975de1e3517bec9e7f9047d82a
[ "Apache-2.0" ]
1
2020-05-25T02:59:15.000Z
2020-05-25T02:59:15.000Z
#!/usr/bin/env python # # Copyright 2007 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 o...
35.355757
80
0.649104
365ceebd8ccde875a7e5f5e82e3ea7c7b7d6924f
2,631
py
Python
src/IntuneCD/backup_powershellScripts.py
almenscorner/IntuneCD
0c7ed23088399c421bb2243448cb51b5be373a6a
[ "MIT" ]
34
2021-11-23T11:21:53.000Z
2022-03-24T08:34:33.000Z
src/IntuneCD/backup_powershellScripts.py
almenscorner/IntuneCD
0c7ed23088399c421bb2243448cb51b5be373a6a
[ "MIT" ]
13
2021-11-19T13:08:59.000Z
2022-03-21T20:47:17.000Z
src/IntuneCD/backup_powershellScripts.py
almenscorner/IntuneCD
0c7ed23088399c421bb2243448cb51b5be373a6a
[ "MIT" ]
4
2022-01-08T21:46:18.000Z
2022-03-07T13:04:51.000Z
#!/usr/bin/env python3 """ This module backs up all Powershell scripts in Intune. Parameters ---------- path : str The path to save the backup to output : str The format the backup will be saved as token : str The token to use for authenticating the request """ import json import os import base64 import ...
37.056338
107
0.667807
71b527a0598cce8afd99302343aae466d751f854
156
py
Python
exercicios/ex022.py
marcellass/Exercicios-de-Python-Curso-em-Video
cdc1609a7afc59b67615d78c20c3611ee5634b5c
[ "MIT" ]
null
null
null
exercicios/ex022.py
marcellass/Exercicios-de-Python-Curso-em-Video
cdc1609a7afc59b67615d78c20c3611ee5634b5c
[ "MIT" ]
null
null
null
exercicios/ex022.py
marcellass/Exercicios-de-Python-Curso-em-Video
cdc1609a7afc59b67615d78c20c3611ee5634b5c
[ "MIT" ]
null
null
null
nome = input('Por favor, digite seu nome: ').strip() print(nome.upper()) print(nome.lower()) print(len(nome.replace(' ', ''))) print(len(nome.split()[0]))
22.285714
52
0.641026
c2c2ee2d45239787e2d34b51b8e26d753c02b656
1,306
py
Python
utils/downscale/downscale_opencv.py
axki/srzoo
305c5b29d6b82f1d0e5edd39cd9f36650212dca2
[ "Apache-2.0" ]
null
null
null
utils/downscale/downscale_opencv.py
axki/srzoo
305c5b29d6b82f1d0e5edd39cd9f36650212dca2
[ "Apache-2.0" ]
null
null
null
utils/downscale/downscale_opencv.py
axki/srzoo
305c5b29d6b82f1d0e5edd39cd9f36650212dca2
[ "Apache-2.0" ]
null
null
null
import argparse import os import numpy as np #import tensorflow as tf import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import cv2 as cv FLAGS = tf.flags.FLAGS if __name__ == '__main__': tf.flags.DEFINE_string('input_path', 'LR', 'Base path of the input images.') tf.flags.DEFINE_string('output_path', 'H...
30.372093
117
0.716692
8a7f2ed83d66e8ccbf1c48ebf741221a27611c12
2,742
py
Python
news/migrations/0001_initial.py
UmarSyal/port_proj--news
c91a5aa6e07521fabedbc7ed25c36c0fb927510f
[ "MIT" ]
null
null
null
news/migrations/0001_initial.py
UmarSyal/port_proj--news
c91a5aa6e07521fabedbc7ed25c36c0fb927510f
[ "MIT" ]
null
null
null
news/migrations/0001_initial.py
UmarSyal/port_proj--news
c91a5aa6e07521fabedbc7ed25c36c0fb927510f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-06 22:38 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='NewsCategory', ...
42.184615
149
0.560175
8e104d964be4b773d6f6ac03a19824fadf9b0c4a
20,842
py
Python
pycharm-projects/Forest-Cover-Change-Detection/patch_classification/dataset.py
annusgit/Forest-Cover-Change-Detection
2aa16aa9f6d668f5ad44ff5dc4643a70581cd714
[ "MIT" ]
3
2018-12-17T09:58:31.000Z
2021-01-30T16:44:09.000Z
pycharm-projects/Forest-Cover-Change-Detection/patch_classification/dataset.py
annusgit/Forest-Cover-Change-Detection
2aa16aa9f6d668f5ad44ff5dc4643a70581cd714
[ "MIT" ]
null
null
null
pycharm-projects/Forest-Cover-Change-Detection/patch_classification/dataset.py
annusgit/Forest-Cover-Change-Detection
2aa16aa9f6d668f5ad44ff5dc4643a70581cd714
[ "MIT" ]
2
2019-02-18T16:17:06.000Z
2020-02-24T06:32:34.000Z
from __future__ import print_function from __future__ import division import os import sys # import cv2 import gdal # import json import torch import random import pickle as p import numpy as np random.seed(74) import matplotlib.pyplot as pl from torch.utils.data import Dataset, DataLoader import imgaug as ia from i...
41.684
117
0.567268
2f9b7966dbfc723e172897ca00499595ce14f928
3,409
py
Python
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_profile_analytics.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/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_profile_analytics.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/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_profile_analytics.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright: (c) 2018, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import json import pytest import sys if sys.version_info < (2...
29.643478
121
0.650924
b4277e4faedbe1a93b0efbbc22d32e5376ee917b
3,435
py
Python
purgeDeadUsersFlair/0_setup.py
C0ldSn4p/reddit_api_scripts
506da6bdc78e2692099737556a87b28c194892f5
[ "WTFPL" ]
1
2021-05-03T19:49:31.000Z
2021-05-03T19:49:31.000Z
purgeDeadUsersFlair/0_setup.py
C0ldSn4p/reddit_api_scripts
506da6bdc78e2692099737556a87b28c194892f5
[ "WTFPL" ]
null
null
null
purgeDeadUsersFlair/0_setup.py
C0ldSn4p/reddit_api_scripts
506da6bdc78e2692099737556a87b28c194892f5
[ "WTFPL" ]
null
null
null
#!/usr/bin/python3 # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of the Do What The Fuck You Want # To Public License, Version 2, as published by Sam Hocevar. See # http://www.wtfpl.net/ for more d...
41.385542
184
0.720233
9b57d47b08d32445751eef110065581e013e0ed2
1,247
py
Python
glom/__init__.py
bhrutledge/glom
cfdef0fa133b4cab033c9fa1882a8f5dc4271ced
[ "BSD-3-Clause" ]
null
null
null
glom/__init__.py
bhrutledge/glom
cfdef0fa133b4cab033c9fa1882a8f5dc4271ced
[ "BSD-3-Clause" ]
null
null
null
glom/__init__.py
bhrutledge/glom
cfdef0fa133b4cab033c9fa1882a8f5dc4271ced
[ "BSD-3-Clause" ]
null
null
null
from glom.core import (glom, Fill, Auto, register, Glommer, Call, Invoke, Spec, Ref, OMIT, # backwards compat ...
33.702703
90
0.403368
8dc5556f922be58205c03c71ac1c47d5ff81bc74
4,027
py
Python
src/EvernoteAPI/EnmlTools.py
vae-0118/SyncNoteTools
a481958286012a426afc171311163597afb72157
[ "MIT" ]
null
null
null
src/EvernoteAPI/EnmlTools.py
vae-0118/SyncNoteTools
a481958286012a426afc171311163597afb72157
[ "MIT" ]
null
null
null
src/EvernoteAPI/EnmlTools.py
vae-0118/SyncNoteTools
a481958286012a426afc171311163597afb72157
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File : EnmlTools.py @Contact : 149759490@qq.com @License : MIT @description : @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 20/2/19 16:41 vae 1.0 None ''' import os import hashlib import binascii ...
29.394161
102
0.590017
c4da56ee194b6ee9f900a357bee7fc4457a0462d
5,868
py
Python
dygraph/transformer/predict.py
shippingwang/models
a92e212932b764e500a833527e0fb772ac9a491a
[ "Apache-2.0" ]
4
2020-01-04T13:15:02.000Z
2021-07-21T07:50:02.000Z
dygraph/transformer/predict.py
shippingwang/models
a92e212932b764e500a833527e0fb772ac9a491a
[ "Apache-2.0" ]
null
null
null
dygraph/transformer/predict.py
shippingwang/models
a92e212932b764e500a833527e0fb772ac9a491a
[ "Apache-2.0" ]
3
2019-10-31T07:18:49.000Z
2020-01-13T03:18:39.000Z
# Copyright (c) 2019 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...
37.858065
80
0.636673
38fbada40f94b59e9052a5f43281f0d03e8cf3d1
3,511
py
Python
v0.95/dc/models/users.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.95/dc/models/users.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.95/dc/models/users.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
import os import pandas as pd from dc.utils.dbwrap import Dbwrap from dc.utils.commun import Commun class User: func = Commun() conf = func.config_info() db = Dbwrap(conf["path_to_database"]) def add_user(self, username, userpassword, userrights, defaultproofreader): """Adds a use...
34.421569
130
0.602677
5003a03aab4ace3652200ffa8237e7dc4e3ed894
658
py
Python
sveske/sources/03_FunctionsAndModules/numfun2.py
milica325/unibl_radionica
34a753a663f9ad6a3f1031cd6755748526046376
[ "BSD-3-Clause" ]
2
2019-09-18T19:21:44.000Z
2019-09-19T00:00:25.000Z
sveske/sources/03_FunctionsAndModules/numfun2.py
milica325/unibl_radionica
34a753a663f9ad6a3f1031cd6755748526046376
[ "BSD-3-Clause" ]
null
null
null
sveske/sources/03_FunctionsAndModules/numfun2.py
milica325/unibl_radionica
34a753a663f9ad6a3f1031cd6755748526046376
[ "BSD-3-Clause" ]
34
2019-09-18T14:39:38.000Z
2019-09-20T06:45:07.000Z
""" small demo of modules PYTHON BOOT CAMP EXAMPLE; created by Josh Bloom at UC Berkeley, 2012 (ucbpythonclass+bootcamp@gmail.com) """ print "numfun2 in the house" x = 2 s = "spamm" def numop1(x,y,multiplier=1.0,greetings="Thank you for your inquiry."): """ Purpose: does a simple operation on two n...
24.37037
82
0.671733
031c9668ab7b22fc48b984a958b857bea4029ac4
13,400
py
Python
tensorflow/python/framework/gen_docs_combined.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
13
2017-01-17T07:48:00.000Z
2022-03-09T09:43:59.000Z
tensorflow/python/framework/gen_docs_combined.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/gen_docs_combined.py
bhbai/tensorflow
d4b5c606fc9fbd1a20b5b113b4bc831f31d889a3
[ "Apache-2.0" ]
3
2017-05-12T03:45:56.000Z
2018-02-26T04:33:28.000Z
# Copyright 2015 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...
41.358025
80
0.623209
8e38584bd221f58db32d19388af9d9890fbf50d1
8,718
py
Python
Retriever/retrieve.py
maeda6uiui/AIO2
d27847196dfeb6197067fba91f998d9da8573d1b
[ "MIT" ]
null
null
null
Retriever/retrieve.py
maeda6uiui/AIO2
d27847196dfeb6197067fba91f998d9da8573d1b
[ "MIT" ]
null
null
null
Retriever/retrieve.py
maeda6uiui/AIO2
d27847196dfeb6197067fba91f998d9da8573d1b
[ "MIT" ]
null
null
null
import argparse import json import logging import numpy as np import torch from pathlib import Path from scipy import sparse from sklearn.metrics.pairwise import linear_kernel from transformers import BertConfig from tqdm import tqdm from typing import Dict,List,Tuple import sys sys.path.append("./BERT") sys.path.appe...
36.476987
129
0.735604
9065edefffa563895a1b3b29c4836c2b0e45c3d4
3,226
py
Python
userbot/modules/wordcloud.py
kikoyaja69/PocongUserbot
21fbd648349dd5cf4e2adabedb384a0c77226671
[ "Naumen", "Condor-1.1", "MS-PL" ]
8
2021-12-25T06:23:41.000Z
2022-03-25T23:12:37.000Z
userbot/modules/wordcloud.py
kikoyaja69/PocongUserbot
21fbd648349dd5cf4e2adabedb384a0c77226671
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/wordcloud.py
kikoyaja69/PocongUserbot
21fbd648349dd5cf4e2adabedb384a0c77226671
[ "Naumen", "Condor-1.1", "MS-PL" ]
51
2022-01-09T11:19:37.000Z
2022-03-30T17:15:02.000Z
# Copyright (C) 2020 Alfiananda P.A # # Licensed under the General Public License, Version 3.0; # you may not use this file except in compliance with the License. # import numpy as np from hachoir.metadata import extractMetadata from hachoir.parser import createParser from PIL import Image from scipy.ndimage import g...
31.320388
78
0.604774
f2cec20579d69d0c1ce83d063cde33a61fd40f86
6,544
py
Python
oauth2_provider/contrib/rest_framework/permissions.py
jimwh/foobar
b52e04401c367e2df2c01dc714069b9c65b7ebac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
oauth2_provider/contrib/rest_framework/permissions.py
jimwh/foobar
b52e04401c367e2df2c01dc714069b9c65b7ebac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
oauth2_provider/contrib/rest_framework/permissions.py
jimwh/foobar
b52e04401c367e2df2c01dc714069b9c65b7ebac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import logging from django.core.exceptions import ImproperlyConfigured from rest_framework.exceptions import PermissionDenied from rest_framework.permissions import ( SAFE_METHODS, BasePermission, IsAuthenticated ) from ...settings import oauth2_settings from .authentication import OAuth2Authentication log = lo...
36.558659
110
0.65541
ef33f7492df35aa162e5bd18c2016bab440d8241
893
py
Python
exopy_hqc_legacy/utils/layouts.py
Exopy/ecpy_hqc_legacy
3e31a8865d130907a82005e6cd78d99c6da7a951
[ "BSD-3-Clause" ]
null
null
null
exopy_hqc_legacy/utils/layouts.py
Exopy/ecpy_hqc_legacy
3e31a8865d130907a82005e6cd78d99c6da7a951
[ "BSD-3-Clause" ]
34
2015-12-14T22:06:57.000Z
2018-02-07T08:40:47.000Z
exopy_hqc_legacy/utils/layouts.py
Exopy/ecpy_hqc_legacy
3e31a8865d130907a82005e6cd78d99c6da7a951
[ "BSD-3-Clause" ]
6
2018-04-20T14:48:54.000Z
2021-06-23T22:25:17.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018 by ExopyHqcLegacy 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. # ------...
28.806452
79
0.540873
e78f7fa40cfa9adbaabb60fa650edcce4554898e
74
py
Python
main.py
cannibalcheeseburger/proxy-bot
dfa1be5100f695f3b392d481b8adb05daf111c9b
[ "MIT" ]
1
2020-09-07T07:16:32.000Z
2020-09-07T07:16:32.000Z
main.py
cannibalcheeseburger/proxy-bot
dfa1be5100f695f3b392d481b8adb05daf111c9b
[ "MIT" ]
null
null
null
main.py
cannibalcheeseburger/proxy-bot
dfa1be5100f695f3b392d481b8adb05daf111c9b
[ "MIT" ]
null
null
null
import Proxy_bot.proxy_bot as pb if __name__ == "__main__": pb.main()
18.5
32
0.702703
dfe537fd1a2c9c5de3b2b7d261e521471cf7b1b5
23,694
py
Python
src/evaluation_system/api/parameters.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
2
2020-06-12T18:18:48.000Z
2021-12-18T03:35:08.000Z
src/evaluation_system/api/parameters.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/evaluation_system/api/parameters.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
''' Created on 15.03.2013 @author: Sebastian Illing / estani This types represent the type of parameter a plugin expects and gives some metadata about them. ''' from types import (TypeType, StringType, IntType, FloatType, LongType, BooleanType) from evaluation_system.misc.py27 import OrderedDict ...
37.9104
181
0.590656
27cce05ae78445ea4e3b321a7c94026de7b6cafd
1,251
py
Python
sa/profiles/Linksys/SPS2xx/get_chassis_id.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/profiles/Linksys/SPS2xx/get_chassis_id.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/Linksys/SPS2xx/get_chassis_id.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Linksys.SPS2xx.get_chassis_id # --------------------------------------------------------------------- # Copyright (C) 2007-2011 The NOC Project # See LICENSE for details # --------------------------------------------------...
32.921053
81
0.522782
4194e596e579267ec526fd0c430897d0e7731132
894
py
Python
setup.py
IAmTheBlurr/Automancy
0c52916cd01dda6bd34ef8d048c37e478dfabbb5
[ "MIT" ]
null
null
null
setup.py
IAmTheBlurr/Automancy
0c52916cd01dda6bd34ef8d048c37e478dfabbb5
[ "MIT" ]
null
null
null
setup.py
IAmTheBlurr/Automancy
0c52916cd01dda6bd34ef8d048c37e478dfabbb5
[ "MIT" ]
null
null
null
""" ./setup.py """ import setuptools setuptools.setup( name='Automancy', version='0.5.6', author='Jonathan Craig', author_email='blurr@iamtheblurr.com', long_description_content_type='text/markdown', long_description=open('README.md', encoding='utf8').read(), classifiers=[ 'Programm...
28.83871
63
0.598434
4988437ed2672d560b445f5fac200363f00233e8
814
py
Python
eth2/beacon/types/eth1_data.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
eth2/beacon/types/eth1_data.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
eth2/beacon/types/eth1_data.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
from eth_typing import ( Hash32, ) import rlp from eth.constants import ( ZERO_HASH32, ) from eth2.beacon.sedes import ( hash32, ) class Eth1Data(rlp.Serializable): """ Note: using RLP until we have standardized serialization format. """ fields = [ # Root of the deposit tree ...
20.871795
68
0.577396
7cb85bf09372ea9b2e8a29ca46e9f0a5debc217a
5,308
py
Python
src/cogs/misc.py
akabinds/ROGUE
9b94070d811f287f22cfa880f097a33fd9266bc6
[ "MIT" ]
null
null
null
src/cogs/misc.py
akabinds/ROGUE
9b94070d811f287f22cfa880f097a33fd9266bc6
[ "MIT" ]
null
null
null
src/cogs/misc.py
akabinds/ROGUE
9b94070d811f287f22cfa880f097a33fd9266bc6
[ "MIT" ]
null
null
null
import nextcord from nextcord import Member, Embed from nextcord.ext import commands from nextcord.ext.commands import Cog, command, has_guild_permissions, bot_has_guild_permissions, cooldown from typing import Optional from time import time class Misc(Cog, name="Miscellaneous"): """All of ROGUE's miscellaneous ...
45.758621
145
0.604182
9f5d79980edb90050e9782e7753e8e2a23de80be
35,372
py
Python
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
gcxtx/ambari
133d9c4661b21182482c25f96c3f0bf0a9740a9f
[ "Apache-2.0" ]
1
2021-05-06T06:24:04.000Z
2021-05-06T06:24:04.000Z
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
gcxtx/ambari
133d9c4661b21182482c25f96c3f0bf0a9740a9f
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
gcxtx/ambari
133d9c4661b21182482c25f96c3f0bf0a9740a9f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ 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");...
50.101983
184
0.78189
c931e893c81ea10c69f89e810a6a06ba89b73da4
791
py
Python
.history/wiki/urls_20200210163834.py
SamirIngley/makewiki-v1
90f117db99224e55173f31a24028ad7adeb37d07
[ "MIT" ]
null
null
null
.history/wiki/urls_20200210163834.py
SamirIngley/makewiki-v1
90f117db99224e55173f31a24028ad7adeb37d07
[ "MIT" ]
1
2020-06-05T20:58:07.000Z
2020-06-05T20:58:07.000Z
.history/wiki/urls_20200210163834.py
SamirIngley/makewiki-v1
90f117db99224e55173f31a24028ad7adeb37d07
[ "MIT" ]
null
null
null
from django.urls import path from . import views """ CHALLENGES: 1. Refactor the URL named `wiki-list-page` and point it to the root route (`/`). - Make sure Django doesn't give you any warnings or errors when you execute `python manage.py runserver`. - Test by visiting http://127.0.0.1:8000/. 2....
41.631579
111
0.681416
dc2b95b4fe62aab611b4512f18af3fa38734f07e
7,968
py
Python
tests/test_model/test_bottom_up_head.py
chaowentao/mmpose
b528c60ef4fab56d35d1ed7e187023794639be26
[ "Apache-2.0" ]
15
2020-12-10T07:43:34.000Z
2022-03-21T08:38:36.000Z
tests/test_model/test_bottom_up_head.py
chaowentao/mmpose
b528c60ef4fab56d35d1ed7e187023794639be26
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_bottom_up_head.py
chaowentao/mmpose
b528c60ef4fab56d35d1ed7e187023794639be26
[ "Apache-2.0" ]
10
2020-12-17T07:57:10.000Z
2022-03-08T07:17:12.000Z
import numpy as np import pytest import torch from mmpose.models import BottomUpHigherResolutionHead, BottomUpSimpleHead def test_bottom_up_simple_head(): """test bottom up simple head.""" with pytest.raises(TypeError): # extra _ = BottomUpSimpleHead( in_channels=512, num_joints=...
32.129032
74
0.615211
a11a151e61c26fa688c53f9fe7a3cca10676373c
3,311
py
Python
python/topology/generator.py
F1rst-Unicorn/scion
e7c30dd1ae00c7df51aeaf0c5634531b3c2983c8
[ "Apache-2.0" ]
null
null
null
python/topology/generator.py
F1rst-Unicorn/scion
e7c30dd1ae00c7df51aeaf0c5634531b3c2983c8
[ "Apache-2.0" ]
null
null
null
python/topology/generator.py
F1rst-Unicorn/scion
e7c30dd1ae00c7df51aeaf0c5634531b3c2983c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2014 ETH Zurich # Copyright 2018 ETH Zurich, Anapaya Systems # # 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 # ...
39.891566
97
0.626699
277643073bcb350e04b1d67505c296d98c3ceae4
2,944
py
Python
tests/test_models/test_trackers/test_base_tracker.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
2,226
2021-01-04T11:13:01.000Z
2022-03-31T11:49:59.000Z
tests/test_models/test_trackers/test_base_tracker.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
300
2021-01-04T11:36:59.000Z
2022-03-31T07:48:28.000Z
tests/test_models/test_trackers/test_base_tracker.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
333
2021-01-04T11:35:12.000Z
2022-03-31T08:11:50.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch from mmdet.core.bbox.demodata import random_boxes from mmtrack.models import TRACKERS class TestBaseTracker(object): @classmethod def setup_class(cls): cfg = dict( obj_score_thr=0.3, regression=dict( ...
34.232558
78
0.563859
cd308b5612a475058a8587c58af795d0c9c2b324
12,715
py
Python
demo/utils.py
corningsun/django_demo
e996fc63ab2fa45dbc2c9849e9eb9aef9c975de6
[ "Apache-2.0" ]
null
null
null
demo/utils.py
corningsun/django_demo
e996fc63ab2fa45dbc2c9849e9eb9aef9c975de6
[ "Apache-2.0" ]
1
2020-02-12T00:09:54.000Z
2020-02-12T00:09:54.000Z
demo/utils.py
corningsun/django_demo
e996fc63ab2fa45dbc2c9849e9eb9aef9c975de6
[ "Apache-2.0" ]
1
2017-12-08T02:54:20.000Z
2017-12-08T02:54:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/3/29 下午1:45 # @Author : OD # @File : utils.py import datetime import threading import time import random from MySQLdb import Date from base import * from decimal import Decimal import inspect from demo.exception import InitializException, IllegalArg...
24.785575
120
0.554778
8dcfa9bb69cb3ce5e127941a4042affbbeb77ef4
702
py
Python
tests/misc_test.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
tests/misc_test.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
tests/misc_test.py
NunoEdgarGFlowHub/poptorch
2e69b81c7c94b522d9f57cc53d31be562f5e3749
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 Graphcore Ltd. All rights reserved. import poptorch import pytest def test_setLogLevel(): for i in range(5): poptorch.setLogLevel(i) with pytest.raises(ValueError, match="Invalid log level integer"): poptorch.setLogLevel(5) poptorch.setLogLevel...
27
78
0.692308
7a5cea1860745e63e15727bb0cc45733b4e2c8fa
10,605
py
Python
fluid/machine_reading_comprehension/dataset.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
1
2018-09-12T09:36:44.000Z
2018-09-12T09:36:44.000Z
fluid/machine_reading_comprehension/dataset.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
null
null
null
fluid/machine_reading_comprehension/dataset.py
phlrain/models
59adc0d6f38cd2351e16608d6c9d4e72dd5e7fea
[ "Apache-2.0" ]
2
2018-06-14T13:59:36.000Z
2018-11-14T12:34:47.000Z
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2017 Baidu.com, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
40.788462
93
0.527393
8aa65ec9e93a9800b69729d0274f7431df2406ff
10,807
py
Python
hack/generators/release-controllers/content/art_namespaces_rbac.py
akrejcir/release
bec5b0e0207c6721bc97afe2e437e2a341f7dc97
[ "Apache-2.0" ]
null
null
null
hack/generators/release-controllers/content/art_namespaces_rbac.py
akrejcir/release
bec5b0e0207c6721bc97afe2e437e2a341f7dc97
[ "Apache-2.0" ]
null
null
null
hack/generators/release-controllers/content/art_namespaces_rbac.py
akrejcir/release
bec5b0e0207c6721bc97afe2e437e2a341f7dc97
[ "Apache-2.0" ]
null
null
null
def add_imagestream_namespace_rbac(gendoc): resources = gendoc context = gendoc.context puller_subjects = [] if not context.private: puller_subjects.append({ 'apiGroup': 'rbac.authorization.k8s.io', 'kind': 'Group', 'name': 'system:authenticated' })...
31.507289
224
0.468585
f030d11da5c4e140e9dce4daa0bc3d7cc6c1b55a
3,080
py
Python
app/app/settings.py
thegisexpert/bookofrecipes
53bd4697956ef87297af1607fffdc0661f73376c
[ "MIT" ]
null
null
null
app/app/settings.py
thegisexpert/bookofrecipes
53bd4697956ef87297af1607fffdc0661f73376c
[ "MIT" ]
null
null
null
app/app/settings.py
thegisexpert/bookofrecipes
53bd4697956ef87297af1607fffdc0661f73376c
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.454545
91
0.694481
e67cd63e48a62ff2686cf811d047b2084fbdcb29
3,349
py
Python
src/saga/adaptors/base.py
ElsevierSoftwareX/SOFTX-D-15-00002
e5cdf8a35ec6321216e36d49da38d9f6676ab709
[ "MIT" ]
null
null
null
src/saga/adaptors/base.py
ElsevierSoftwareX/SOFTX-D-15-00002
e5cdf8a35ec6321216e36d49da38d9f6676ab709
[ "MIT" ]
null
null
null
src/saga/adaptors/base.py
ElsevierSoftwareX/SOFTX-D-15-00002
e5cdf8a35ec6321216e36d49da38d9f6676ab709
[ "MIT" ]
null
null
null
__author__ = "Andre Merzky, Ole Weidner" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" """ the adaptor base class. """ import radical.utils as ru import radical.utils.config as ruc import radical.utils.logger as rul from saga.exceptions import * # -----------------...
29.901786
80
0.475366
616bce0659ddb8cd626cd2355d705299fde27588
8,114
py
Python
bubbob/macbinary.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
3
2021-02-04T09:18:45.000Z
2021-03-03T02:04:15.000Z
bubbob/macbinary.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
null
null
null
bubbob/macbinary.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
1
2022-02-03T09:29:45.000Z
2022-02-03T09:29:45.000Z
import struct def padto(n, m): return (n+m-1) & ~(m-1) def resourceclass(rtype): return globals().get(rtype.strip() + 'Resource', Resource) class TypeList: def __init__(self, type, fmap, fdata, namebase, start, count): self.type = type self.fmap = fmap self.fdata = fdata ...
31.088123
101
0.534632
c230cd45e733497c6b748115c16af5b3991c9e1a
23,670
py
Python
test/test_.py
pepeteam/kekdaqd
01989b525689712763aa93e7538199b05fd6d11b
[ "MIT" ]
1
2019-08-01T12:04:22.000Z
2019-08-01T12:04:22.000Z
test/test_.py
pepeteam/kekdaqd
01989b525689712763aa93e7538199b05fd6d11b
[ "MIT" ]
null
null
null
test/test_.py
pepeteam/kekdaqd
01989b525689712763aa93e7538199b05fd6d11b
[ "MIT" ]
2
2019-07-25T15:18:07.000Z
2022-01-14T06:45:10.000Z
#! /usr/bin/python3 import os import sys import hashlib import binascii import time import apsw import decimal D = decimal.Decimal import difflib import json import inspect import requests from requests.auth import HTTPBasicAuth import logging import tempfile import shutil import locale import re # Set test environme...
36.926677
245
0.673849
5fde9dbbf4dc9d612ddaf0fb33c1f6aaea897afc
58,341
bzl
Python
tensorflow/workspace.bzl
devjgm/tensorflow
d0c655d2f100afc97c5ac2927b80115c08f6b203
[ "Apache-2.0" ]
1
2020-11-19T18:50:35.000Z
2020-11-19T18:50:35.000Z
tensorflow/workspace.bzl
devjgm/tensorflow
d0c655d2f100afc97c5ac2927b80115c08f6b203
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
devjgm/tensorflow
d0c655d2f100afc97c5ac2927b80115c08f6b203
[ "Apache-2.0" ]
null
null
null
# TensorFlow external dependencies that can be loaded in WORKSPACE files. load("//third_party/gpus:cuda_configure.bzl", "cuda_configure") load("//third_party/gpus:rocm_configure.bzl", "rocm_configure") load("//third_party/tensorrt:tensorrt_configure.bzl", "tensorrt_configure") load("//third_party/nccl:nccl_configure.b...
48.943792
203
0.689429
0aa9fb173295173d3daf17e0c8ce93568406161b
6,906
py
Python
backend/test242_4/settings.py
crowdbotics-dev/test242-4
8568c4f050511ef7f5b3cdaba46e40d81b3beb61
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/test242_4/settings.py
crowdbotics-dev/test242-4
8568c4f050511ef7f5b3cdaba46e40d81b3beb61
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/test242_4/settings.py
crowdbotics-dev/test242-4
8568c4f050511ef7f5b3cdaba46e40d81b3beb61
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for test242_4 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os ...
29.512821
112
0.73009
63bd2e1178b2283b906f0077d2b464610e7aa0aa
1,598
py
Python
google_img.py
jlehrer1/web-scraping
1ce787f1b2498a565f4e60652aebd6e77e8275d1
[ "MIT" ]
null
null
null
google_img.py
jlehrer1/web-scraping
1ce787f1b2498a565f4e60652aebd6e77e8275d1
[ "MIT" ]
null
null
null
google_img.py
jlehrer1/web-scraping
1ce787f1b2498a565f4e60652aebd6e77e8275d1
[ "MIT" ]
null
null
null
import requests, sys, getopt import json import tqdm import urllib.request import os import argparse if __name__ == '__main__': if len(sys.argv) != 4: print('Use case: {} <params file> <search term> <write location>'.format(sys.argv[0])) quit() if os.path.isdir(sys.argv[3]) == False: ...
31.333333
104
0.506884
2ae797f94ef6a8044df8457185013137ac53795c
14,902
py
Python
model/data_utils.py
binhetech/sequenceTagging
572d52f7925c6536505f5b5faacc840a60587cec
[ "Apache-2.0" ]
null
null
null
model/data_utils.py
binhetech/sequenceTagging
572d52f7925c6536505f5b5faacc840a60587cec
[ "Apache-2.0" ]
null
null
null
model/data_utils.py
binhetech/sequenceTagging
572d52f7925c6536505f5b5faacc840a60587cec
[ "Apache-2.0" ]
null
null
null
import numpy as np import os from nltk import word_tokenize # shared global variables to be imported from model also UNK = "$UNK$" NUM = "$NUM$" NONE = "O" # special error message class MyIOError(Exception): def __init__(self, filename): # custom error message message = """ ERROR: Unable...
30.105051
115
0.551805
d7b7504c0306853bd4f29b3642c65138bf9174c6
903
py
Python
src/scse/utils/output_log_parser.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
26
2021-06-23T00:58:25.000Z
2022-03-29T19:41:18.000Z
src/scse/utils/output_log_parser.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
null
null
null
src/scse/utils/output_log_parser.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
13
2021-06-23T09:16:38.000Z
2022-03-22T20:01:19.000Z
# Parse the customer orders from the output log def get_customer_orders(): with open("../main/gym/output.log") as file: all_orders = [] orders_in_time_step={} for line in file: if line.startswith('DEBUG:scse.controller.miniscot:clock') and orders_in_time_step: al...
39.26087
95
0.627907
dbf344941603b09861a231eab092438521dc1d45
4,778
py
Python
src/preprocess.py
lopser/RippleNet-master
a35fd144b37aab40ad02dbd153d530899d6d02be
[ "MIT" ]
null
null
null
src/preprocess.py
lopser/RippleNet-master
a35fd144b37aab40ad02dbd153d530899d6d02be
[ "MIT" ]
null
null
null
src/preprocess.py
lopser/RippleNet-master
a35fd144b37aab40ad02dbd153d530899d6d02be
[ "MIT" ]
null
null
null
import argparse import numpy as np RATING_FILE_NAME = dict({'movie': 'ratings.dat', 'book': 'BX-Book-Ratings.csv', 'news': 'ratings.txt'}) SEP = dict({'movie': '::', 'book': ';', 'news': '\t'}) THRESHOLD = dict({'movie': 4, 'book': 0, 'news': 0}) def read_item_index_to_entity_id_file(): file = '../data/' + DATAS...
35.392593
105
0.614274
992b3345576aab634251194227c6b26de37a42f7
4,714
py
Python
pandapower/results.py
xiaolu1990/pandapower
53af7f2d455dc4ff6a4fcaccc870b0076fa97bf9
[ "BSD-3-Clause" ]
1
2017-05-17T10:40:53.000Z
2017-05-17T10:40:53.000Z
pandapower/results.py
xiaolu1990/pandapower
53af7f2d455dc4ff6a4fcaccc870b0076fa97bf9
[ "BSD-3-Clause" ]
null
null
null
pandapower/results.py
xiaolu1990/pandapower
53af7f2d455dc4ff6a4fcaccc870b0076fa97bf9
[ "BSD-3-Clause" ]
1
2020-03-05T10:07:32.000Z
2020-03-05T10:07:32.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016-2017 by University of Kassel and Fraunhofer Institute for Wind Energy and # Energy System Technology (IWES), Kassel. All rights reserved. Use of this source code is governed # by a BSD-style license that can be found in the LICENSE file. import copy import numpy as np imp...
34.408759
100
0.684981
5270fe2a0623151ab5d9f685e1d92c901a14e72f
6,392
py
Python
tools/analyze_logs.py
ddghost/underwater
5ff7b8719b05b55d649f78528c1c32da305a469d
[ "Apache-2.0" ]
null
null
null
tools/analyze_logs.py
ddghost/underwater
5ff7b8719b05b55d649f78528c1c32da305a469d
[ "Apache-2.0" ]
null
null
null
tools/analyze_logs.py
ddghost/underwater
5ff7b8719b05b55d649f78528c1c32da305a469d
[ "Apache-2.0" ]
1
2020-03-13T11:04:41.000Z
2020-03-13T11:04:41.000Z
import argparse import json from collections import defaultdict import matplotlib.pyplot as plt import numpy as np import seaborn as sns def cal_train_time(log_dicts, args): for i, log_dict in enumerate(log_dicts): print('{}Analyze train time of {}{}'.format('-' * 5, args.json_logs[i], ...
34.928962
79
0.56868
57a56d288fba9e57655c5fccdd50625eb7e1af0a
2,088
py
Python
app.py
likki0207/vinay
2a8ef50e6c1819126468ffb368d0e3670d9ff3ae
[ "Apache-2.0" ]
null
null
null
app.py
likki0207/vinay
2a8ef50e6c1819126468ffb368d0e3670d9ff3ae
[ "Apache-2.0" ]
null
null
null
app.py
likki0207/vinay
2a8ef50e6c1819126468ffb368d0e3670d9ff3ae
[ "Apache-2.0" ]
null
null
null
import streamlit as st import pandas as pd import base64 import matplotlib.pyplot as plt import seaborn as sns import numpy as np st.title('NFL Football Statistics') st.sidebar.header('User Input Features') selected_year = st.sidebar.selectbox('Year', list(reversed(range(1990,2020)))) @st.cache def load_data(year): ...
34.8
123
0.713602
524979715f34a58989379c2508a2531ea9e66ec1
1,490
py
Python
hoppy/timing/cli/fplot_profile.py
tenoto/hoppy
895037f2ae83547c4dcea8f97a66645c5c2aba8a
[ "MIT" ]
3
2020-04-17T06:49:24.000Z
2020-08-27T03:04:44.000Z
hoppy/timing/cli/fplot_profile.py
tenoto/hoppy
895037f2ae83547c4dcea8f97a66645c5c2aba8a
[ "MIT" ]
null
null
null
hoppy/timing/cli/fplot_profile.py
tenoto/hoppy
895037f2ae83547c4dcea8f97a66645c5c2aba8a
[ "MIT" ]
1
2021-07-20T08:51:06.000Z
2021-07-20T08:51:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import argparse from hoppy.timing.timing import EventFits __author__ = 'Teruaki Enoto' __date__ = '2020 September 5' __version__ = '0.01' def get_parser(): """ Creates a new argument parser. """ usage = """ plot event fits file (PULSE_PHASE) """ pa...
24.833333
97
0.708725
2df1f35994d956186dd0d01a3dccf17116350989
524
py
Python
data_types.py
ericgc10/astr-119-hw-1
fc15a22ece5a5053646769613a17451c2e91c9ea
[ "MIT" ]
null
null
null
data_types.py
ericgc10/astr-119-hw-1
fc15a22ece5a5053646769613a17451c2e91c9ea
[ "MIT" ]
1
2018-10-11T08:53:40.000Z
2018-10-18T07:01:51.000Z
data_types.py
ericgc10/astr-119-hw-1
fc15a22ece5a5053646769613a17451c2e91c9ea
[ "MIT" ]
null
null
null
import numpy as np #import numpy library #integers i = 10 # integer print(type(i)) # print out the data type of i a_i = np.zeros(i,dtype=int) #declare an array of ints print(type(a_i)) #will return ndarray print(type(a_i[0])) #will return int64 #floats x = 119.0 #floating point number print(type(x)) #print out the...
24.952381
53
0.711832
55c5c78a83c6d56388359c17f2b1fa5b649dcfc2
14,210
py
Python
pyrf/numpy_util.py
thelaly/pyrf
52d7e8059dcd5e9dedd6a2a689124372836aae1c
[ "BSD-3-Clause" ]
null
null
null
pyrf/numpy_util.py
thelaly/pyrf
52d7e8059dcd5e9dedd6a2a689124372836aae1c
[ "BSD-3-Clause" ]
null
null
null
pyrf/numpy_util.py
thelaly/pyrf
52d7e8059dcd5e9dedd6a2a689124372836aae1c
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import random pi = np.pi from pyrf.vrt import (I_ONLY, VRT_IFDATA_I14Q14, VRT_IFDATA_I14, VRT_IFDATA_I24, VRT_IFDATA_PSD8) def calculate_channel_power(power_spectrum): """ Return a dBm value representing the channel power of the input power spectrum. :param power_spectrum: arr...
39.472222
144
0.61703
2f780e4c921b85ba9c529e2ceef3c203b2057dab
1,039
py
Python
scripts/centrifugeToCAMI.py
SilvioWeging/kASA_cami
c67d421f50f1cdf9d54c385586aabe7dbff602df
[ "MIT" ]
null
null
null
scripts/centrifugeToCAMI.py
SilvioWeging/kASA_cami
c67d421f50f1cdf9d54c385586aabe7dbff602df
[ "MIT" ]
null
null
null
scripts/centrifugeToCAMI.py
SilvioWeging/kASA_cami
c67d421f50f1cdf9d54c385586aabe7dbff602df
[ "MIT" ]
null
null
null
#from https://gitlab.com/ezlab/lemmi/-/blob/master/containers/centrifuge/prepare_results.py #LEMMI content is made available under the following license. #The MIT License (MIT) #Copyright (c) 2016-2017, Evgeny Zdobnov (ez@ezlab.org) #Modified by Silvio Weging (2020) import sys outp=open(sys.argv[2], 'w') all_abu={} ra...
29.685714
91
0.693936
0d4d76b551b38e8ef421978c1d8cdc087a08076f
6,048
py
Python
avatar/models.py
karbassi/django-avatar
e3b1e69f16c58a3d9234f73cdd5b769694912c13
[ "BSD-3-Clause" ]
null
null
null
avatar/models.py
karbassi/django-avatar
e3b1e69f16c58a3d9234f73cdd5b769694912c13
[ "BSD-3-Clause" ]
null
null
null
avatar/models.py
karbassi/django-avatar
e3b1e69f16c58a3d9234f73cdd5b769694912c13
[ "BSD-3-Clause" ]
null
null
null
import binascii import datetime import os import hashlib from PIL import Image from django.db import models from django.core.files import File from django.core.files.base import ContentFile from django.core.files.storage import get_storage_class from django.utils.module_loading import import_string from django.utils.t...
35.786982
81
0.650298
55e3f8be6ed7552a4f2cdb19192181697b405dfb
805
py
Python
tests/test_infrastructure.py
BasileChatillon/django-cruds-adminlte
ad8b9a52f0aa9ecac1c9ccd61ba26e0b974ebe21
[ "BSD-3-Clause" ]
351
2017-04-01T19:38:34.000Z
2022-02-13T17:53:11.000Z
tests/test_infrastructure.py
BasileChatillon/django-cruds-adminlte
ad8b9a52f0aa9ecac1c9ccd61ba26e0b974ebe21
[ "BSD-3-Clause" ]
128
2017-04-01T19:44:55.000Z
2022-02-25T14:27:45.000Z
tests/test_infrastructure.py
BasileChatillon/django-cruds-adminlte
ad8b9a52f0aa9ecac1c9ccd61ba26e0b974ebe21
[ "BSD-3-Clause" ]
89
2017-04-08T06:14:36.000Z
2021-12-28T14:33:24.000Z
""" Basic test to check our stuff is in place. """ import re import pytest from django.urls import reverse @pytest.mark.selenium def test_browser_homepage(selenium, live_server): """ Check that we can open the test_project homepage. """ test_page_url = reverse('hello_page') assert test_page_url == '/hell...
33.541667
86
0.744099
bbf30ea6460e53356ffcd6483d617a402275b78d
12,939
py
Python
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/model/ids_batch_max5000.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/model/ids_batch_max5000.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetPrices/v1/fds/sdk/FactSetPrices/model/ids_batch_max5000.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Prices API Gain access to comprehensive global coverage for Equities & Fixed Income. Perform quick analytics by controlling the date ranges, currencies, and rolling periods, or simply request Open, High, Low, and Close prices. Easily connect pricing data with other core company data or alternative ...
46.210714
856
0.585285
8191b6d6ef46f052fc457c4a2451f8ce40892dec
321
py
Python
Accounts/forms.py
Larry-Manuel/SMA-TEAM
14c50bfce4327bb70812341b094c0001b90843f6
[ "MIT" ]
null
null
null
Accounts/forms.py
Larry-Manuel/SMA-TEAM
14c50bfce4327bb70812341b094c0001b90843f6
[ "MIT" ]
1
2021-07-27T22:28:54.000Z
2021-07-27T22:28:54.000Z
Accounts/forms.py
Larry-Manuel/SMA-TEAM
14c50bfce4327bb70812341b094c0001b90843f6
[ "MIT" ]
9
2021-07-12T22:34:19.000Z
2021-07-30T03:11:44.000Z
from django import forms from django.forms import ModelForm from django.forms.models import fields_for_model from .models import UserSocial class UserProfileForm(ModelForm): class Meta: model = UserSocial fields=['facebook_link','instagram_link','twitter_link','linkedin_link','github_link'] ...
32.1
94
0.753894
9ed54b574e3d94c7744cea4b41d0fc708ac87aba
22,462
py
Python
src/docker/geonode/tasks.py
linavarro/RGVFlood
6ab91a80208f9e94cd32138e381db1dcd1bf82e1
[ "MIT" ]
1
2022-02-25T12:35:21.000Z
2022-02-25T12:35:21.000Z
src/docker/geonode/tasks.py
linavarro/RGVFlood
6ab91a80208f9e94cd32138e381db1dcd1bf82e1
[ "MIT" ]
1
2022-03-01T19:13:11.000Z
2022-03-01T19:13:11.000Z
src/docker/geonode/tasks.py
linavarro/RGVFlood
6ab91a80208f9e94cd32138e381db1dcd1bf82e1
[ "MIT" ]
2
2022-01-12T19:58:20.000Z
2022-02-25T12:03:06.000Z
######################################################################### # # Copyright (C) 2016 OSGeo # # 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 License, or # (at...
37.751261
165
0.594248
d70f4fb5f42e31151e7f14ecf13d63323226bfdf
332
py
Python
photocrypt/__init__.py
Kullmann/Photocrypt
f8c63075856b3c1ef05807db6062d168026bd7c5
[ "MIT" ]
2
2020-10-01T23:53:54.000Z
2020-12-09T10:48:54.000Z
photocrypt/__init__.py
Kullmann/Photocrypt
f8c63075856b3c1ef05807db6062d168026bd7c5
[ "MIT" ]
1
2020-12-03T03:47:56.000Z
2020-12-03T03:47:56.000Z
photocrypt/__init__.py
Kullmann/Photocrypt
f8c63075856b3c1ef05807db6062d168026bd7c5
[ "MIT" ]
null
null
null
""" Photocrypt Package """ # image operations from .image import open_image from .image import open_image_as # byte operations from .core import ByteData from .core import ByteStream from .core import packer # encrypt and decrypt images from .photocrypt import encrypt_image from .photocrypt import dec...
19.529412
38
0.76506
a2dd6e488d2172a24493af3552b2cde528e27577
1,928
py
Python
parl/utils/tests/scheduler_test.py
alexqdh/PARL
e91150b84c631ed58a3f53232d463f8193f43dee
[ "Apache-2.0" ]
null
null
null
parl/utils/tests/scheduler_test.py
alexqdh/PARL
e91150b84c631ed58a3f53232d463f8193f43dee
[ "Apache-2.0" ]
null
null
null
parl/utils/tests/scheduler_test.py
alexqdh/PARL
e91150b84c631ed58a3f53232d463f8193f43dee
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 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 app...
31.606557
74
0.622407
d864dabb8225f9af6d39547213876aacdbab1d72
10,584
py
Python
storm_kit/mpc/rollout/simple_reacher.py
maxspahn/storm
cf056514659cab9c5c7ac9d850eae7c56a660726
[ "MIT" ]
68
2021-04-27T21:10:11.000Z
2022-03-23T23:13:45.000Z
storm_kit/mpc/rollout/simple_reacher.py
maxspahn/storm
cf056514659cab9c5c7ac9d850eae7c56a660726
[ "MIT" ]
3
2021-07-06T11:04:32.000Z
2022-01-13T07:57:43.000Z
storm_kit/mpc/rollout/simple_reacher.py
maxspahn/storm
cf056514659cab9c5c7ac9d850eae7c56a660726
[ "MIT" ]
16
2021-04-28T02:50:45.000Z
2022-01-13T13:35:43.000Z
# # MIT License # # Copyright (c) 2020-2021 NVIDIA CORPORATION. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, ...
42.336
224
0.60582
b1a17bf160eb28c30b689b07391e2ab0bbc1202e
9,928
py
Python
q2_feature_table/tests/test_core_features.py
dwthomas/q2-feature-table
853f3b6752385129b5e5aa6f46f2b5ebafdaeeaa
[ "BSD-3-Clause" ]
4
2016-06-26T20:35:29.000Z
2020-08-24T04:21:08.000Z
q2_feature_table/tests/test_core_features.py
dwthomas/q2-feature-table
853f3b6752385129b5e5aa6f46f2b5ebafdaeeaa
[ "BSD-3-Clause" ]
174
2016-03-31T22:45:28.000Z
2021-12-06T16:43:13.000Z
q2_feature_table/tests/test_core_features.py
dwthomas/q2-feature-table
853f3b6752385129b5e5aa6f46f2b5ebafdaeeaa
[ "BSD-3-Clause" ]
30
2016-05-20T19:41:53.000Z
2022-02-07T20:33:58.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
40.032258
79
0.602236
6404f52d1b7285e89272b67edb562990ffed1818
5,782
py
Python
python/hail/utils/interval.py
mptrepanier/hail
e6de08eb830311db25d71bcc1dd22fae56720333
[ "MIT" ]
null
null
null
python/hail/utils/interval.py
mptrepanier/hail
e6de08eb830311db25d71bcc1dd22fae56720333
[ "MIT" ]
null
null
null
python/hail/utils/interval.py
mptrepanier/hail
e6de08eb830311db25d71bcc1dd22fae56720333
[ "MIT" ]
null
null
null
from hail.typecheck import * from hail.utils.java import * import hail as hl interval_type = lazy() class Interval(object): """ An object representing a range of values between `start` and `end`. >>> interval = hl.Interval(3, 6) Parameters ---------- start : any type Object with typ...
25.359649
132
0.563646
c5455bd09df60055061291aff76eb39dc6e0cc63
17,441
py
Python
sdk/python/pulumi_azure_nextgen/datalakeanalytics/v20161101/account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/datalakeanalytics/v20161101/account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/datalakeanalytics/v20161101/account.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
44.951031
266
0.668425
6d7eed73db31b2d305e388467fff66b12617ddd5
20,550
py
Python
flow/core/kernel/vehicle/base.py
syuntoku14/flow
3a1157cde31d0b7d6a3cc2f91eef0ec9ea53575e
[ "MIT" ]
null
null
null
flow/core/kernel/vehicle/base.py
syuntoku14/flow
3a1157cde31d0b7d6a3cc2f91eef0ec9ea53575e
[ "MIT" ]
null
null
null
flow/core/kernel/vehicle/base.py
syuntoku14/flow
3a1157cde31d0b7d6a3cc2f91eef0ec9ea53575e
[ "MIT" ]
null
null
null
"""Script containing the base vehicle kernel class.""" class KernelVehicle(object): """Flow vehicle kernel. This kernel sub-class is used to interact with the simulator with regards to all vehicle-dependent components. Specifically, this class contains methods for: * Interacting with the simulat...
31.042296
79
0.581898
50a21009001503792f90605968e2c5441af0e9b9
1,282
py
Python
openslides_backend/action/actions/motion_category/sort_motions_in_category.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
5
2020-01-20T13:57:15.000Z
2021-03-27T14:14:44.000Z
openslides_backend/action/actions/motion_category/sort_motions_in_category.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
859
2020-01-11T22:58:37.000Z
2022-03-30T14:54:06.000Z
openslides_backend/action/actions/motion_category/sort_motions_in_category.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
16
2020-01-04T20:28:57.000Z
2022-02-10T12:06:54.000Z
from ....models.models import Motion, MotionCategory from ....permissions.permissions import Permissions from ...generics.update import UpdateAction from ...mixins.linear_sort_mixin import LinearSortMixin from ...mixins.singular_action_mixin import SingularActionMixin from ...util.default_schema import DefaultSchema fr...
37.705882
79
0.736349
df71977693577b1b3c2aa40a0edc3c75bb25fd30
2,878
py
Python
resources/templates/rds/testapps/test_pymysql_curses.py
jackiu/aws-fault-injection-simulator-workshop
b0464fdbb57491b53983a8ad7bdcd043b0a90ef1
[ "MIT-0" ]
8
2021-11-16T07:48:36.000Z
2022-03-20T21:43:28.000Z
resources/templates/rds/testapps/test_pymysql_curses.py
jackiu/aws-fault-injection-simulator-workshop
b0464fdbb57491b53983a8ad7bdcd043b0a90ef1
[ "MIT-0" ]
55
2021-09-20T02:52:56.000Z
2022-03-31T13:34:55.000Z
resources/templates/rds/testapps/test_pymysql_curses.py
jackiu/aws-fault-injection-simulator-workshop
b0464fdbb57491b53983a8ad7bdcd043b0a90ef1
[ "MIT-0" ]
4
2021-09-29T18:16:32.000Z
2022-03-31T05:39:37.000Z
# pip install pymysql import pymysql import random import sys import signal import curses import socket import boto3 import json stdscr = curses.initscr() def signal_handler(sig, frame): print('You pressed Ctrl+C!') curses.endwin() sys.exit(0) signal.signal(signal.SIGINT, signal_handler) def init_aurora...
28.78
125
0.624392
51c11afeebc99cd05f7ac39673a412c8a319b09f
1,042
py
Python
keystone-moon/keystone/oauth1/schema.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
1
2019-05-08T06:09:35.000Z
2019-05-08T06:09:35.000Z
keystone-moon/keystone/oauth1/schema.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
4
2018-08-22T14:51:02.000Z
2018-10-17T14:04:26.000Z
keystone-moon/keystone/oauth1/schema.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
5
2018-08-03T17:19:34.000Z
2019-01-11T15:54:42.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 the Li...
29.771429
75
0.732246
fd2f34fa76e9115dbfad5bf2dcce3dca49c2e1c2
4,955
py
Python
nuix-for-data-prep-scripting-examples.py
Nuix/nuix-cto-blog-posts
3a49aab13d5a9fb208c0ed835a46f40af9340e78
[ "Apache-2.0" ]
null
null
null
nuix-for-data-prep-scripting-examples.py
Nuix/nuix-cto-blog-posts
3a49aab13d5a9fb208c0ed835a46f40af9340e78
[ "Apache-2.0" ]
null
null
null
nuix-for-data-prep-scripting-examples.py
Nuix/nuix-cto-blog-posts
3a49aab13d5a9fb208c0ed835a46f40af9340e78
[ "Apache-2.0" ]
null
null
null
### Data Science 101 ######################### #Return an interable result set. print len(current_case.search("dog")) #Return just the number of hits. print current_case.count("dog") #Iterate through the results for the search "dog" and print out the item name. for item in current_case.search("dog"): print item.getN...
33.938356
132
0.707164
d7bdfe8248908302e492dc2168b324a46142e88a
1,747
py
Python
nanpy/define.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
null
null
null
nanpy/define.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
null
null
null
nanpy/define.py
AFTC-1/Arduino-rpi
c46079f937d7e07cc0a930cc7ae278036f50a47d
[ "MIT" ]
null
null
null
from nanpy.arduinoboard import arduinomethod, returns, FirmwareClass from nanpy.classinfo import check4firmware from nanpy.memo import memoized def auto_convert(x): try: return int(x) except ValueError: return x @check4firmware class DefineArray(FirmwareClass): firmware_id = 'D' @pr...
20.313953
68
0.580996
08faf65736afe723ecea48315e28d190fb791796
5,798
py
Python
scripts/sarsa.py
naokawa0609/naokawa
5547cea501259ce5b5bc8708e30760ad2f4187b2
[ "MIT" ]
148
2019-03-27T00:20:16.000Z
2022-03-30T22:34:11.000Z
scripts/sarsa.py
naokawa0609/naokawa
5547cea501259ce5b5bc8708e30760ad2f4187b2
[ "MIT" ]
3
2018-11-07T04:33:13.000Z
2018-12-31T01:35:16.000Z
scripts/sarsa.py
naokawa0609/naokawa
5547cea501259ce5b5bc8708e30760ad2f4187b2
[ "MIT" ]
116
2019-04-18T08:35:53.000Z
2022-03-24T05:17:46.000Z
#!/usr/bin/env python # coding: utf-8 # In[1]: import sys sys.path.append('../scripts/') from dp_policy_agent import * import random, copy # In[2]: class StateInfo: def __init__(self, action_num, epsilon=0.3): self.q = np.zeros(action_num) self.epsilon = epsilon def greedy(self):...
27.875
233
0.56209
9695b8156f38df07da4206286bb5eec6d6040a89
4,015
py
Python
shop/payment/workflows.py
triggerfast/django-shop
57f97291dbb389d833fc3e99da54cb888d3b006e
[ "BSD-3-Clause" ]
1
2020-04-20T05:24:24.000Z
2020-04-20T05:24:24.000Z
shop/payment/workflows.py
triggerfast/django-shop
57f97291dbb389d833fc3e99da54cb888d3b006e
[ "BSD-3-Clause" ]
5
2021-03-19T16:04:13.000Z
2022-01-13T03:35:33.000Z
shop/payment/workflows.py
triggerfast/django-shop
57f97291dbb389d833fc3e99da54cb888d3b006e
[ "BSD-3-Clause" ]
1
2020-07-06T05:06:05.000Z
2020-07-06T05:06:05.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext_lazy as _ from django_fsm import transition, RETURN_VALUE from shop.models.order import BaseOrder class ManualPaymentWorkflowMixin(object): """ ...
40.969388
113
0.682939
2d70cdb9580fce17cd3cadc0af23da638bae9f5c
329
py
Python
misc/python/lovely.py
saranshbht/codes-and-more-codes
0bd2e46ca613b3b81e1196d393902e86a43aa353
[ "MIT" ]
null
null
null
misc/python/lovely.py
saranshbht/codes-and-more-codes
0bd2e46ca613b3b81e1196d393902e86a43aa353
[ "MIT" ]
null
null
null
misc/python/lovely.py
saranshbht/codes-and-more-codes
0bd2e46ca613b3b81e1196d393902e86a43aa353
[ "MIT" ]
null
null
null
from itertools import permutations l = list(permutations("chef")) for i in range(len(l)): l[i] = "".join(l[i]) #print(l) t = int(input()) for _ in range(t): count = 0 s = input() for i in range(len(s) - 3): if s[i : i + 4] in l: count += 1 if count > 0: print("lovely", count) else: print(...
19.352941
34
0.559271
596a2c4336ab555ab16998e85539775bbc0ceabc
12,884
py
Python
library/ansible_marathon.py
teralytics/ansible-marathon-module
0b0b26b4c92f9ddc8ffdffc309366834ab042ada
[ "MIT" ]
6
2017-05-17T13:41:46.000Z
2018-06-05T12:47:26.000Z
library/ansible_marathon.py
teralytics/ansible-marathon-module
0b0b26b4c92f9ddc8ffdffc309366834ab042ada
[ "MIT" ]
5
2017-03-24T11:25:55.000Z
2018-10-17T12:31:12.000Z
library/ansible_marathon.py
teralytics/ansible-marathon-module
0b0b26b4c92f9ddc8ffdffc309366834ab042ada
[ "MIT" ]
7
2016-10-24T09:26:36.000Z
2018-07-23T09:29:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- DOCUMENTATION = ''' module: marathon short_description: Manages marathon applications description: - Controls applications running on marathon and allows to create, destroy and update them. All information is taken from a json file describing the application (including...
40.901587
411
0.673083
d11eb3a2090a22a4d7a92b38cf250455f40cc976
748
py
Python
pcd_reg/utils/ply_read.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
pcd_reg/utils/ply_read.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
pcd_reg/utils/ply_read.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
import numpy as np keypoints_1 = np.load("/home/benji/projects/D3Feat.pytorch/geometric_registration/D3Feat02241142/keypoints/7-scenes-redkitchen/cloud_bin_10.npy") keypoints_2 = np.load("/home/benji/projects/D3Feat.pytorch/geometric_registration/D3Feat02241143/keypoints/7-scenes-redkitchen/cloud_bin_10.npy") keypoint...
74.8
145
0.843583
7196290d9e2c705986753ac6184cb4d161ccaec6
4,263
py
Python
rally/benchmark/scenarios/authenticate/authenticate.py
kambiz-aghaiepour/rally
be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2
[ "Apache-2.0" ]
1
2020-09-09T19:01:41.000Z
2020-09-09T19:01:41.000Z
rally/benchmark/scenarios/authenticate/authenticate.py
kambiz-aghaiepour/rally
be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2
[ "Apache-2.0" ]
null
null
null
rally/benchmark/scenarios/authenticate/authenticate.py
kambiz-aghaiepour/rally
be708bacf0bc898a9538b9b6cb0ba4e1c015c1f2
[ "Apache-2.0" ]
1
2020-09-09T19:01:43.000Z
2020-09-09T19:01:43.000Z
# Copyright 2014 Red Hat, Inc. <http://www.redhat.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
40.216981
79
0.68426
c453e00a502c33221501d23828040d2a7519b30c
1,647
py
Python
tests/test_wps_describeprocess_ceda.py
volter/OWSLib
bcc289cbd5fff2cf8df469574ad34ffe9d4a928e
[ "BSD-3-Clause" ]
1
2016-09-26T13:24:57.000Z
2016-09-26T13:24:57.000Z
tests/test_wps_describeprocess_ceda.py
volter/OWSLib
bcc289cbd5fff2cf8df469574ad34ffe9d4a928e
[ "BSD-3-Clause" ]
1
2017-05-04T12:27:01.000Z
2017-05-04T12:27:01.000Z
tests/test_wps_describeprocess_ceda.py
volter/OWSLib
bcc289cbd5fff2cf8df469574ad34ffe9d4a928e
[ "BSD-3-Clause" ]
8
2016-09-26T13:24:58.000Z
2018-10-26T06:49:13.000Z
from tests.utils import resource_file from owslib.wps import WebProcessingService def test_wps_describeprocess_ceda(): # Initialize WPS client wps = WebProcessingService('http://ceda-wps2.badc.rl.ac.uk/wps', skip_caps=True) # Execute fake invocation of DescribeProcess operation by parsing cached response ...
49.909091
239
0.728597
07320ab13ff48c7dc14215e6632ce310d90486a4
1,121
py
Python
Blatt06/ml/solutions/exercise_1.py
stefangri/SMD
4d46e86ef1a6bcff81e8fb2c3cf41948132926b9
[ "MIT" ]
12
2017-07-10T13:31:50.000Z
2021-08-01T16:07:39.000Z
Blatt06/ml/solutions/exercise_1.py
stefangri/SMD
4d46e86ef1a6bcff81e8fb2c3cf41948132926b9
[ "MIT" ]
7
2017-06-29T12:48:20.000Z
2017-09-18T08:53:07.000Z
Blatt06/ml/solutions/exercise_1.py
stefangri/SMD
4d46e86ef1a6bcff81e8fb2c3cf41948132926b9
[ "MIT" ]
8
2017-09-19T08:13:09.000Z
2021-01-22T15:50:36.000Z
import matplotlib.pyplot as plt import numpy as np from sklearn import linear_model np.random.seed(1234) # create two gaussians A = np.random.multivariate_normal(mean=[1, 1], cov=[[2, 1], [1, 2]], size=200) B = np.random.multivariate_normal(mean=[-2, -2], cov=[[2, 0], [0, 2]], size=200) # get them into proper matrix f...
28.74359
80
0.660125
6a757b573918e1e9c813f4d7de4a6c95712f7ff9
10,869
py
Python
registry/infrastructure/repositories/service_publisher_repository.py
anandrgitnirman/snet-marketplace-service
f31bf741094476b9cb26277f1165deb2856257b1
[ "MIT" ]
14
2019-02-12T09:14:52.000Z
2021-03-11T18:42:22.000Z
registry/infrastructure/repositories/service_publisher_repository.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
1,079
2019-01-10T04:31:24.000Z
2022-03-29T06:16:42.000Z
registry/infrastructure/repositories/service_publisher_repository.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
20
2018-12-18T13:06:41.000Z
2021-09-17T11:13:01.000Z
from datetime import datetime as dt import sqlalchemy from sqlalchemy import func from sqlalchemy.exc import SQLAlchemyError from registry.constants import ServiceStatus from registry.domain.factory.service_factory import ServiceFactory from registry.infrastructure.models import Service, ServiceGroup, ServiceState, S...
47.051948
147
0.644494
c821ce584ad97abfcede81014fad0b71079d02f7
4,714
py
Python
machine-learning-gists/2db7f1765d2b0df99a739f9d438127ab6ad0b1e1/snippet.py
qwbjtu2015/dockerizeme
9039beacf281ea7058d721784ed4eff054453b09
[ "Apache-2.0" ]
null
null
null
machine-learning-gists/2db7f1765d2b0df99a739f9d438127ab6ad0b1e1/snippet.py
qwbjtu2015/dockerizeme
9039beacf281ea7058d721784ed4eff054453b09
[ "Apache-2.0" ]
null
null
null
machine-learning-gists/2db7f1765d2b0df99a739f9d438127ab6ad0b1e1/snippet.py
qwbjtu2015/dockerizeme
9039beacf281ea7058d721784ed4eff054453b09
[ "Apache-2.0" ]
null
null
null
# Two-layer, sigmoid feedforward network # trained using the "Extreme Learning Machine" algorithm. # Adapted from https://gist.github.com/larsmans/2493300 # TODO: make it possible to use alternative linear classifiers instead # of pinv2, e.g. SGDRegressor # TODO: implement partial_fit and incremental learning # TODO: ...
35.179104
78
0.64616
2d7cf02842cbedd64b76784f92c9bf0f0ecaff98
2,309
py
Python
tests/test_base.py
evanjd/python-logi-circle
309c321e5c7e09ece4785ca4183cf987db21fcff
[ "MIT" ]
22
2018-08-16T18:36:08.000Z
2021-09-12T18:58:54.000Z
tests/test_base.py
davixx22/python-logi-circle
8d2a71bf2d0bca7e607ee3f9ce94597f9b8c0930
[ "MIT" ]
7
2018-08-15T01:14:09.000Z
2022-03-28T07:27:06.000Z
tests/test_base.py
davixx22/python-logi-circle
8d2a71bf2d0bca7e607ee3f9ce94597f9b8c0930
[ "MIT" ]
8
2019-01-20T19:05:01.000Z
2020-07-20T12:04:56.000Z
"""Register Logi API with mock aiohttp ClientSession and responses.""" import os import pickle import json import unittest import asyncio from tests.helpers import get_fixtures from logi_circle.const import DEFAULT_SCOPES from logi_circle.auth import AuthProvider CLIENT_ID = 'abcdefghijklmnopqrstuvwxyz' CLIENT_SECRET ...
33.463768
70
0.624513
e11d341d3facdeaaa3d66020cbc156a7f08727b8
418
py
Python
sprunge/settings.py
anonshellsllc/heroku-sprunge
42195bd4b0801de1ddd50e45c183df1e7011c67b
[ "BSD-2-Clause" ]
null
null
null
sprunge/settings.py
anonshellsllc/heroku-sprunge
42195bd4b0801de1ddd50e45c183df1e7011c67b
[ "BSD-2-Clause" ]
null
null
null
sprunge/settings.py
anonshellsllc/heroku-sprunge
42195bd4b0801de1ddd50e45c183df1e7011c67b
[ "BSD-2-Clause" ]
null
null
null
import os import sys def get_value(key): try: return os.environ['SPRUNGE_%s' % key] except KeyError: print 'Env error: %s is not set.' % key sys.exit(1) HOST = get_value('HOST') NAME = get_value('NAME') # the POST payload key MONGO_URI = get_value('MONGO_URI') MONGO_DB_NAME = get_v...
18.173913
48
0.645933
aea98f3bd9e02470252320bb8d04fa2ed90edad4
28,927
py
Python
core/storage/suggestion/gae_models.py
jian-en/oppia
2558c96bb7e61530d1d3b91d0fa5bfe1f020cfe3
[ "Apache-2.0" ]
null
null
null
core/storage/suggestion/gae_models.py
jian-en/oppia
2558c96bb7e61530d1d3b91d0fa5bfe1f020cfe3
[ "Apache-2.0" ]
null
null
null
core/storage/suggestion/gae_models.py
jian-en/oppia
2558c96bb7e61530d1d3b91d0fa5bfe1f020cfe3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
41.147937
80
0.684412
375a3a1af717903e28abc62d34b7192b22708d38
2,915
py
Python
src/scratchpad.py
TobyChen320/CSPT15_Graphs_I_GP
9707e08c51642e409636c0f81e7beb706428e204
[ "MIT" ]
null
null
null
src/scratchpad.py
TobyChen320/CSPT15_Graphs_I_GP
9707e08c51642e409636c0f81e7beb706428e204
[ "MIT" ]
null
null
null
src/scratchpad.py
TobyChen320/CSPT15_Graphs_I_GP
9707e08c51642e409636c0f81e7beb706428e204
[ "MIT" ]
23
2020-12-08T02:09:20.000Z
2020-12-16T02:05:12.000Z
# class Graph: # def __init__(self): # self.vertices = [] # self.edges = [[0,1,0,0,0,0,0], # [0,0,1,1,0,0,0], # [0,0,0,0,1,0,0], # [0,0,0,0,0,1,1], # [0,0,1,0,0,0,0], # [0,0,1,0,0,0,0], # ...
25.12931
82
0.558491
0119f2c3d78cf37a1d8e79f62cca13d976a21b46
907
py
Python
video.py
johnrso/proto
23f16893b1abf4123028328ac2c6474f8cf90d35
[ "MIT" ]
null
null
null
video.py
johnrso/proto
23f16893b1abf4123028328ac2c6474f8cf90d35
[ "MIT" ]
null
null
null
video.py
johnrso/proto
23f16893b1abf4123028328ac2c6474f8cf90d35
[ "MIT" ]
null
null
null
import os import sys import imageio import numpy as np import utils class VideoRecorder(object): def __init__(self, root_dir, height=256, width=256, fps=100): self.save_dir = utils.make_dir(root_dir, 'video') if root_dir else None self.height = height self.width = width self.fps ...
27.484848
79
0.576626
9b283a2e2533dbb0f91045d777e496be490fea84
6,628
py
Python
mmtbx/programs/validate_ligands.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
mmtbx/programs/validate_ligands.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
mmtbx/programs/validate_ligands.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function try: from phenix.program_template import ProgramTemplate except ImportError: from libtbx.program_template import ProgramTemplate import mmtbx.validation.ligands from mmtbx.validation import validate_ligands from libtbx.utils import null_out, Sorry fro...
38.312139
97
0.659173
413aac15d1bb40c02ab9a3b8d17c72240db441cc
6,931
py
Python
bindings/python/ensmallen_graph/datasets/string/lachnospiraceaebacteriumv9d3004.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/lachnospiraceaebacteriumv9d3004.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/lachnospiraceaebacteriumv9d3004.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Lachnospiraceae bacterium V9D3004. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Dat...
36.287958
223
0.713317
61613f61f3fc11a9f27623175f5c0fb4554e699d
24,590
py
Python
train/train.py
miramirakim227/SwapNeRF_GT
84444660a7fc8b5f796503d90f3a055889c44389
[ "BSD-2-Clause" ]
null
null
null
train/train.py
miramirakim227/SwapNeRF_GT
84444660a7fc8b5f796503d90f3a055889c44389
[ "BSD-2-Clause" ]
null
null
null
train/train.py
miramirakim227/SwapNeRF_GT
84444660a7fc8b5f796503d90f3a055889c44389
[ "BSD-2-Clause" ]
null
null
null
# Training to a set of multiple objects (e.g. ShapeNet or DTU) # tensorboard logs available in logs/<expname> import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")) ) import warnings import trainlib from model import make_model, loss from render import NeRF...
42.98951
176
0.551037
591989d665ca65ddce0c1d737f1a5142adce201e
1,647
py
Python
grow/commands/subcommands/inspect_untranslated.py
JaredSartin/grow
8b9e176a943f3d54fca88f8430615d5e6382c365
[ "MIT" ]
1
2019-01-25T17:00:42.000Z
2019-01-25T17:00:42.000Z
grow/commands/subcommands/inspect_untranslated.py
kmcnellis/grow
4787f5a01681ef0800e9b4388a56cdbc48209368
[ "MIT" ]
null
null
null
grow/commands/subcommands/inspect_untranslated.py
kmcnellis/grow
4787f5a01681ef0800e9b4388a56cdbc48209368
[ "MIT" ]
1
2019-04-23T19:38:19.000Z
2019-04-23T19:38:19.000Z
"""Subcommand for displaying untranslated strings in the pod.""" import os import click from grow.commands import shared from grow.common import rc_config from grow.pods import pods from grow import storage from grow.rendering import renderer CFG = rc_config.RC_CONFIG.prefixed('grow.inspect.untranslated') @click.c...
34.3125
84
0.721311
7358e207fbad2611c134e4773dc045dc22958943
969
py
Python
kubernetes/test/test_v1_component_status.py
dix000p/kubernetes-client-python
22e473e02883aca1058606092c86311f02f42be2
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_component_status.py
dix000p/kubernetes-client-python
22e473e02883aca1058606092c86311f02f42be2
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_component_status.py
dix000p/kubernetes-client-python
22e473e02883aca1058606092c86311f02f42be2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
21.533333
105
0.711042
0caabca71bc39e7e6734f54b47f06fd1358a3eb7
96
py
Python
ABC_A/ABC092_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC092_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC092_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
a = int(input()) b = int(input()) c = int(input()) d = int(input()) print(min(a, b)+min(c, d))
13.714286
26
0.53125
6cad94a4bfb20e083e99f063c16818f8b9da6f4a
12,491
py
Python
tensorflow_probability/python/optimizer/sgld.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
4
2019-03-07T05:15:13.000Z
2019-06-13T20:35:45.000Z
tensorflow_probability/python/optimizer/sgld.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
2
2019-08-01T18:31:41.000Z
2019-08-01T19:42:15.000Z
tensorflow_probability/python/optimizer/sgld.py
nagachika/probability
2a5609ceec01a388ec03b583b4f8e813cfbad981
[ "Apache-2.0" ]
1
2019-06-13T20:35:48.000Z
2019-06-13T20:35:48.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.636667
80
0.693379
a520325752ad22d7a070f39cf240158beb681485
519
py
Python
easy/500.py
oneTaken/leetcode
f9357d839ac8fa6333b0d7eeb2028ba28a63764c
[ "Apache-2.0" ]
null
null
null
easy/500.py
oneTaken/leetcode
f9357d839ac8fa6333b0d7eeb2028ba28a63764c
[ "Apache-2.0" ]
null
null
null
easy/500.py
oneTaken/leetcode
f9357d839ac8fa6333b0d7eeb2028ba28a63764c
[ "Apache-2.0" ]
null
null
null
class Solution: def findWords(self, words): """ :type words: List[str] :rtype: List[str] """ s = ['qwertyuiop', 'asdfghjkl', 'zxcvbnm'] data = dict().fromkeys(s[0], 0) data.update(dict().fromkeys(s[1], 1)) data.update(dict().fromkeys(s[2], 2)) ...
28.833333
51
0.485549
d1e74bb25f3dcad65711e83d91ada7e260c0189e
25
py
Python
plugin.video.oculus/resources/lib/external/tvdb_api/__init__.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
3
2020-03-03T13:21:44.000Z
2021-07-21T09:53:31.000Z
plugin.video.heimdall/resources/lib/external/tvdb_api/__init__.py
Reapercrew666/crypt
e1e0994f5323c6b454ac0f65fb2e579f7bea8e5a
[ "Beerware" ]
null
null
null
plugin.video.heimdall/resources/lib/external/tvdb_api/__init__.py
Reapercrew666/crypt
e1e0994f5323c6b454ac0f65fb2e579f7bea8e5a
[ "Beerware" ]
8
2018-04-03T15:46:42.000Z
2020-07-17T18:12:11.000Z
from tvdb_api import Tvdb
25
25
0.88
a0acf4f1808719f014facf58946d22e8fba5263d
7,849
py
Python
api-ref/source/conf.py
itachaaa/heat
a73fa991dbd93fbcfd93c3d19e74f1e8b5a0b870
[ "Apache-2.0" ]
null
null
null
api-ref/source/conf.py
itachaaa/heat
a73fa991dbd93fbcfd93c3d19e74f1e8b5a0b870
[ "Apache-2.0" ]
1
2018-07-26T22:07:09.000Z
2018-07-26T22:07:09.000Z
api-ref/source/conf.py
itachaaa/heat
a73fa991dbd93fbcfd93c3d19e74f1e8b5a0b870
[ "Apache-2.0" ]
3
2018-07-19T17:43:37.000Z
2019-11-15T22:13:30.000Z
# -*- coding: utf-8 -*- # # 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, softwa...
32.978992
79
0.713212
6bab19394cd820a7af3a62e030f529b042b197a6
11,067
py
Python
openstack/tests/unit/clustering/v1/test_cluster.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
99
2018-03-28T15:41:45.000Z
2022-01-23T17:22:13.000Z
openstack/tests/unit/clustering/v1/test_cluster.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
5
2018-05-25T16:54:23.000Z
2021-11-21T02:27:16.000Z
openstack/tests/unit/clustering/v1/test_cluster.py
horion/openstacksdk
cbb0e12e1dc944847f2ba0e67bf35b9c7a67b3a3
[ "Apache-2.0" ]
104
2018-04-06T14:33:54.000Z
2022-03-01T01:58:09.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...
34.052308
77
0.550646
e64c360303824e99b77f43ce108a816d429ff1dc
2,451
py
Python
doc/index_functions.py
J-Light/pyansys
facdb69f5c83e55de2b789b629ebbcbfa507e339
[ "MIT" ]
1
2021-05-24T15:55:53.000Z
2021-05-24T15:55:53.000Z
doc/index_functions.py
J-Light/pyansys
facdb69f5c83e55de2b789b629ebbcbfa507e339
[ "MIT" ]
null
null
null
doc/index_functions.py
J-Light/pyansys
facdb69f5c83e55de2b789b629ebbcbfa507e339
[ "MIT" ]
null
null
null
#============================================================================== # Load a beam and write it #============================================================================== import pyansys from pyansys import examples # Sample *.cdb filename = examples.hexarchivefile # Read ansys archive file archive = p...
27.233333
79
0.598939
536f8407aae0858200704f7b33f49210bfa5f987
2,338
py
Python
demisto_sdk/commands/common/content/objects/abstract_objects/yaml_object.py
lesleyxyz/demisto-sdk
188199bda6fd56f611f204e4e487d1c912f323aa
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/content/objects/abstract_objects/yaml_object.py
lesleyxyz/demisto-sdk
188199bda6fd56f611f204e4e487d1c912f323aa
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/content/objects/abstract_objects/yaml_object.py
lesleyxyz/demisto-sdk
188199bda6fd56f611f204e4e487d1c912f323aa
[ "MIT" ]
null
null
null
from typing import Optional, Union from ruamel.yaml import YAML from ruamel.yaml.scanner import ScannerError from wcmatch.pathlib import EXTGLOB, NEGATE, Path import demisto_sdk.commands.common.content.errors as exc from .dictionary_based_object import DictionaryBasedObject RUYAML = YAML(typ='rt') RUYAML.preserve_q...
34.382353
120
0.627032
3ea8fd509321f6aa3ba5a177c859022989ce9b69
1,426
py
Python
station.py
janedoesrepo/GRASP-Metaheuristic
445105fca45ad3e3a22f9c59277e12873be4cdf4
[ "MIT" ]
5
2020-06-05T07:21:48.000Z
2021-11-17T13:24:54.000Z
station.py
janedoesrepo/GRASP-Metaheuristic
445105fca45ad3e3a22f9c59277e12873be4cdf4
[ "MIT" ]
null
null
null
station.py
janedoesrepo/GRASP-Metaheuristic
445105fca45ad3e3a22f9c59277e12873be4cdf4
[ "MIT" ]
1
2021-01-23T12:01:46.000Z
2021-01-23T12:01:46.000Z
from collections.abc import Sequence from dataclasses import dataclass, field from task import Task from typing import List @dataclass(eq=False) class Station(Sequence): cycle_time: int station_time: int = field(default=0, init=False) data: List[Task] = field(default_factory=list, init=False) ...
34.780488
91
0.631136
8a143579a003ada9e028a9a410149654a6be2a17
1,513
py
Python
test/test_batcher.py
jpilaul/pointer-generator
3dd12a28404d730630718ead2ffac4847b257638
[ "Apache-2.0" ]
null
null
null
test/test_batcher.py
jpilaul/pointer-generator
3dd12a28404d730630718ead2ffac4847b257638
[ "Apache-2.0" ]
null
null
null
test/test_batcher.py
jpilaul/pointer-generator
3dd12a28404d730630718ead2ffac4847b257638
[ "Apache-2.0" ]
null
null
null
from tools.data import Vocab from collections import namedtuple from tools. batcher import Batcher from tools.tokenizer import BPETokenizer vocab_path = "/mnt/home/jonathan/datasets/cnn-dailymail/cnn_dailymail_data/finished_files/bpe_vocab" data_path = "/mnt/home/jonathan/datasets/cnn-dailymail/cnn_dailymail_data/fini...
34.386364
115
0.746861
222a4153e8473bd81d9398ed813675c9e49f740b
227
py
Python
eod/utils/model/__init__.py
scott-mao/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
1
2022-01-12T01:51:39.000Z
2022-01-12T01:51:39.000Z
eod/utils/model/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
eod/utils/model/__init__.py
YZW-explorer/EOD
f10e64de86c0f356ebf5c7e923f4042eec4207b1
[ "Apache-2.0" ]
null
null
null
from .ema_helper import EMA # noqa from .lr_helper import BaseLRScheduler # noqa from .optimizer_helper import BaseOptimizer # noqa from .act_fn import * # noqa from .initializer import * # noqa from .normalize import * # noqa
32.428571
50
0.77533