hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b231e5387c29a9c303c2891e543771ef5034fb5e
671
py
Python
logmappercommon/definitions/logmapperkeys.py
abaena78/logmapper-master
ef4cc7470aec274095afa09f0fe97d9d48299418
[ "MIT" ]
null
null
null
logmappercommon/definitions/logmapperkeys.py
abaena78/logmapper-master
ef4cc7470aec274095afa09f0fe97d9d48299418
[ "MIT" ]
null
null
null
logmappercommon/definitions/logmapperkeys.py
abaena78/logmapper-master
ef4cc7470aec274095afa09f0fe97d9d48299418
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Apr 8 09:45:29 2018 @author: abaena """ DATATYPE_AGENT = 'agent' DATATYPE_PATH_METRICS = 'pathmet' DATATYPE_LOG_EVENTS = 'logeve' DATATYPE_LOG_METRICS = 'logmet' DATATYPE_MONITOR_HOST = 'host' DATATYPE_MONITOR_MICROSERVICE = 'ms' DATATYPE_MONITOR_TOMCAT = 'tomc' DATATYPE_...
19.735294
54
0.797317
0
0
0
0
0
0
0
0
190
0.283159
b23410413a31fad8b057b8f858083b133ba2f903
7,438
py
Python
construct/expr.py
DominicAntonacci/construct
abd48c4892ceddc60c11d25f4a955573e2c61111
[ "MIT" ]
57
2019-12-08T00:02:14.000Z
2022-03-24T20:40:40.000Z
construct/expr.py
DominicAntonacci/construct
abd48c4892ceddc60c11d25f4a955573e2c61111
[ "MIT" ]
3
2020-01-26T03:38:31.000Z
2020-06-21T13:42:46.000Z
construct/expr.py
DominicAntonacci/construct
abd48c4892ceddc60c11d25f4a955573e2c61111
[ "MIT" ]
8
2020-04-20T08:17:57.000Z
2021-10-04T06:04:51.000Z
import operator if not hasattr(operator, "div"): operator.div = operator.truediv opnames = { operator.add : "+", operator.sub : "-", operator.mul : "*", operator.div : "/", operator.floordiv : "//", operator.mod : "%", operator.pow : "**", operator.xor : "^", operator.lshift : ...
28.941634
103
0.60285
6,594
0.886529
0
0
0
0
0
0
214
0.028771
b2341f237ea46f0ced528101120f6ba97f84d73f
14,362
py
Python
ci/unit_tests/functions_deploy/main_test.py
xverges/watson-assistant-workbench
b899784506c7469be332cb58ed447ca8f607ed30
[ "Apache-2.0" ]
1
2020-03-27T16:39:38.000Z
2020-03-27T16:39:38.000Z
ci/unit_tests/functions_deploy/main_test.py
xverges/watson-assistant-workbench
b899784506c7469be332cb58ed447ca8f607ed30
[ "Apache-2.0" ]
1
2021-01-29T16:14:58.000Z
2021-02-03T16:10:07.000Z
ci/unit_tests/functions_deploy/main_test.py
xverges/watson-assistant-workbench
b899784506c7469be332cb58ed447ca8f607ed30
[ "Apache-2.0" ]
1
2021-01-22T13:13:36.000Z
2021-01-22T13:13:36.000Z
""" Copyright 2019 IBM Corporation 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...
49.524138
137
0.598176
13,545
0.943114
0
0
8,869
0.617532
0
0
4,834
0.336583
b2354dd4a0bef69531cc2ff0b6a96364cece153b
503
py
Python
python_scripts/tip_loss/tip_loss.py
lawsonro3/python_scripts
875ff607727ab37006d7b3cb793f1dd97c538d1b
[ "Apache-2.0" ]
null
null
null
python_scripts/tip_loss/tip_loss.py
lawsonro3/python_scripts
875ff607727ab37006d7b3cb793f1dd97c538d1b
[ "Apache-2.0" ]
null
null
null
python_scripts/tip_loss/tip_loss.py
lawsonro3/python_scripts
875ff607727ab37006d7b3cb793f1dd97c538d1b
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt plt.close('all') # From section 3.8.3 of wind energy explained # Prandlt tip loss calc B = 3 # number of blades R = 1 # blade length phi = np.deg2rad(10) # relative wind angle r = np.linspace(0,R,100) F = 2/np.pi * np.arccos(np.exp(-((B/2)*(1-(r/R)))/((r/R)*np.sin(phi...
29.588235
83
0.66998
0
0
0
0
0
0
0
0
223
0.44334
b2356595618aa8cdf6515e41ee52e8a997567521
854
py
Python
filter/mot.py
oza6ut0ne/CVStreamer
a299ab2802fe5c116df5c90c4ed872f2d05faaed
[ "MIT" ]
null
null
null
filter/mot.py
oza6ut0ne/CVStreamer
a299ab2802fe5c116df5c90c4ed872f2d05faaed
[ "MIT" ]
null
null
null
filter/mot.py
oza6ut0ne/CVStreamer
a299ab2802fe5c116df5c90c4ed872f2d05faaed
[ "MIT" ]
null
null
null
import time import cv2 import numpy as np class Filter(object): '''detects motions with cv2.BackgroundSubtractorMOG2''' def __init__(self, params): self.params = params try: varThreshold = float(params[0]) if varThreshold <= 0: varThreshold = 16 ...
28.466667
104
0.598361
809
0.947307
0
0
0
0
0
0
55
0.064403
b235d4cd98481beba4ed5022736424b39eba18ea
8,730
py
Python
social_auth/backends/contrib/vkontakte.py
ryr/django-social-auth
e1aa22ba8be027ea8e8b0a62caee90485aa44836
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
social_auth/backends/contrib/vkontakte.py
ryr/django-social-auth
e1aa22ba8be027ea8e8b0a62caee90485aa44836
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
social_auth/backends/contrib/vkontakte.py
ryr/django-social-auth
e1aa22ba8be027ea8e8b0a62caee90485aa44836
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" VKontakte OpenAPI and OAuth 2.0 support. This contribution adds support for VKontakte OpenAPI and OAuth 2.0 service in the form www.vkontakte.ru. Username is retrieved from the identity returned by server. """ from django.conf import settings from django.contrib.auth import authenticate from django.utils import s...
35.778689
118
0.652921
6,461
0.740092
0
0
264
0.030241
0
0
2,680
0.306987
b23604c9ede5f1199e722240913b11cf6fdf151d
1,260
py
Python
main.py
Harmanjit14/face-distance-detector
82a491308e32e584750a9b2f757cacafc47e5aaf
[ "MIT" ]
null
null
null
main.py
Harmanjit14/face-distance-detector
82a491308e32e584750a9b2f757cacafc47e5aaf
[ "MIT" ]
null
null
null
main.py
Harmanjit14/face-distance-detector
82a491308e32e584750a9b2f757cacafc47e5aaf
[ "MIT" ]
null
null
null
import cv2 import cvzone from cvzone.FaceMeshModule import FaceMeshDetector import numpy as np cap = cv2.VideoCapture(0) detector = FaceMeshDetector() text = ['Hello there.', 'My Name is Harman', 'I am bored!'] while True: success, img = cap.read() img, faces = detector.findFaceMesh(img, draw=False) txt ...
27.391304
82
0.565079
0
0
0
0
0
0
0
0
255
0.202381
b2362a2c9bbd2b259775e9395541cd8ca6653d97
3,188
py
Python
bokeh/util/terminal.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2018-11-14T19:08:18.000Z
2018-11-14T19:08:18.000Z
bokeh/util/terminal.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
bokeh/util/terminal.py
kinghows/bokeh
aeb7abc1dbe2b67ce0f4422838a96fb8362c52c7
[ "BSD-3-Clause" ]
1
2020-06-17T05:47:16.000Z
2020-06-17T05:47:16.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
35.422222
91
0.414994
0
0
0
0
0
0
0
0
1,680
0.526976
b2366956ff664bff3318ce968898d3246b9f6204
16,462
py
Python
exp.py
SOPSLab/SwarmAggregation
2678208bec747de4f1a925a0bed862cd4205743f
[ "MIT" ]
null
null
null
exp.py
SOPSLab/SwarmAggregation
2678208bec747de4f1a925a0bed862cd4205743f
[ "MIT" ]
null
null
null
exp.py
SOPSLab/SwarmAggregation
2678208bec747de4f1a925a0bed862cd4205743f
[ "MIT" ]
null
null
null
# Project: SwarmAggregation # Filename: exp.py # Authors: Joshua J. Daymude ([email protected]) and Noble C. Harasha # ([email protected]). """ exp: A flexible, unifying framework for defining and running experiments for swarm aggregation. """ import argparse from aggregation import aggrega...
40.848635
82
0.551209
12,169
0.739218
0
0
0
0
0
0
6,016
0.365448
b2376657b0293a1d78aa6eb2c5f7730819b325c9
867
py
Python
pychron/experiment/tests/comment_template.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/experiment/tests/comment_template.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/experiment/tests/comment_template.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import __author__ = 'ross' import unittest from pychron.experiment.utilities.comment_template import CommentTemplater class MockFactory(object): irrad_level = 'A' irrad_hole = '9' class CommentTemplaterTestCase(unittest.TestCase): @classmethod def setUpClass(cls): ...
22.815789
78
0.682814
659
0.760092
0
0
67
0.077278
0
0
142
0.163783
b2377bde1e5c8e5670fad099a5e53482fcf577c1
1,823
py
Python
apps/roles/views.py
andipandiber/CajaAhorros
cb0769fc04529088768ea650f9ee048bd9a55837
[ "MIT" ]
null
null
null
apps/roles/views.py
andipandiber/CajaAhorros
cb0769fc04529088768ea650f9ee048bd9a55837
[ "MIT" ]
8
2021-03-30T13:39:24.000Z
2022-03-12T00:36:15.000Z
apps/roles/views.py
andresbermeoq/CajaAhorros
cb0769fc04529088768ea650f9ee048bd9a55837
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.urls import reverse_lazy from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import CreateView, ListView, UpdateView, DeleteView, TemplateView from .models import Role class baseView(LoginRequiredMixin, TemplateView): template_name = ...
29.403226
91
0.705979
1,557
0.854087
0
0
0
0
0
0
274
0.150302
b2377be653f5937e37d815cfdc93d265c2fab546
4,227
py
Python
vjezba5/DPcli-part.py
vmilkovic/primjena-blockchain-tehnologije
bb18abea1fc6d1a25ae936966231de70b2531bba
[ "MIT" ]
null
null
null
vjezba5/DPcli-part.py
vmilkovic/primjena-blockchain-tehnologije
bb18abea1fc6d1a25ae936966231de70b2531bba
[ "MIT" ]
null
null
null
vjezba5/DPcli-part.py
vmilkovic/primjena-blockchain-tehnologije
bb18abea1fc6d1a25ae936966231de70b2531bba
[ "MIT" ]
null
null
null
import rpyc from Crypto.Signature import pkcs1_15 from Crypto.Hash import SHA256 from Crypto.PublicKey import RSA ############# ## KLIJENT ## ############# def generiraj_kljuceve(): key = RSA.generate(2048) #stvaranje i spremanje privatnog ključa u datoteku file_out = open("private_key.pem", "wb") fil...
40.257143
109
0.581263
0
0
0
0
0
0
0
0
2,234
0.524783
b237ee0ace32e691329070ad414c8eef66fccd44
175
py
Python
waiguan/layers/modules/__init__.py
heixialeeLeon/SSD
afdc90fafea0c0629bba789f546e3e0ca279f205
[ "MIT" ]
null
null
null
waiguan/layers/modules/__init__.py
heixialeeLeon/SSD
afdc90fafea0c0629bba789f546e3e0ca279f205
[ "MIT" ]
null
null
null
waiguan/layers/modules/__init__.py
heixialeeLeon/SSD
afdc90fafea0c0629bba789f546e3e0ca279f205
[ "MIT" ]
null
null
null
from .l2norm import L2Norm from .multibox_loss import MultiBoxLoss from .multibox_focalloss import MultiBoxFocalLoss __all__ = ['L2Norm', 'MultiBoxLoss', 'MultiBoxFocalLoss']
35
57
0.822857
0
0
0
0
0
0
0
0
41
0.234286
b238f91a5ac084ae34b9c4b97d9a95b7ebca4518
418
py
Python
hlwtadmin/migrations/0035_location_disambiguation.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
1
2020-10-16T16:29:01.000Z
2020-10-16T16:29:01.000Z
hlwtadmin/migrations/0035_location_disambiguation.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
365
2020-02-03T12:46:53.000Z
2022-02-27T17:20:46.000Z
hlwtadmin/migrations/0035_location_disambiguation.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0 on 2020-07-22 08:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hlwtadmin', '0034_auto_20200722_1000'), ] operations = [ migrations.AddField( model_name='location', name='disambiguat...
22
74
0.617225
327
0.782297
0
0
0
0
0
0
107
0.255981
b23ae56df03e56d6049586357b729e447c6dec2f
658
py
Python
819. Rotate Array/Slicing.py
tulsishankarreddy/leetcode
fffe90b0ab43a57055c248550f31ac18967fe183
[ "MIT" ]
1
2022-01-19T16:26:49.000Z
2022-01-19T16:26:49.000Z
819. Rotate Array/Slicing.py
tulsishankarreddy/leetcode
fffe90b0ab43a57055c248550f31ac18967fe183
[ "MIT" ]
null
null
null
819. Rotate Array/Slicing.py
tulsishankarreddy/leetcode
fffe90b0ab43a57055c248550f31ac18967fe183
[ "MIT" ]
null
null
null
''' This can be solved using the slicing method used in list. We have to modify the list by take moving the last part of the array in reverse order and joining it with the remaining part of the list to its right''' class Solution: def rotate(self, nums: List[int], k: int) -> None: """ Do not return...
54.833333
120
0.600304
442
0.671733
0
0
0
0
0
0
458
0.696049
b23c1d878bde31a9833fb50b46f378e78aeb39e0
4,019
py
Python
src/pdfOut.py
virus-on/magister_work
803d218f83cba31900156ee5f2e2f4df807ccfff
[ "MIT" ]
2
2020-12-02T12:45:08.000Z
2021-11-15T10:55:10.000Z
src/pdfOut.py
virus-on/magister_work
803d218f83cba31900156ee5f2e2f4df807ccfff
[ "MIT" ]
null
null
null
src/pdfOut.py
virus-on/magister_work
803d218f83cba31900156ee5f2e2f4df807ccfff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import subprocess import time class PDFOutput: def __init__(self, title_template_file, template_file, output_file): self.title_template_file = title_template_file self.template_file = template_file self.output_file = output_file def __build_title(self, data): ...
42.755319
151
0.607863
3,954
0.983827
0
0
0
0
0
0
942
0.234387
b23ca7a903bc4922dc5e8b76e4f255954b93daec
10,324
py
Python
ecs/notifications/models.py
programmierfabrik/ecs
2389a19453e21b2ea4e40b272552bcbd42b926a9
[ "Apache-2.0" ]
9
2017-02-13T18:17:13.000Z
2020-11-21T20:15:54.000Z
ecs/notifications/models.py
programmierfabrik/ecs
2389a19453e21b2ea4e40b272552bcbd42b926a9
[ "Apache-2.0" ]
2
2021-05-20T14:26:47.000Z
2021-05-20T14:26:48.000Z
ecs/notifications/models.py
programmierfabrik/ecs
2389a19453e21b2ea4e40b272552bcbd42b926a9
[ "Apache-2.0" ]
4
2017-04-02T18:48:59.000Z
2021-11-23T15:40:35.000Z
from importlib import import_module from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext from django.template import loader from django.utils.text import slugify from django.utils import timezone from revers...
37.955882
117
0.6852
9,413
0.911671
0
0
3,726
0.360872
0
0
922
0.089298
b23cc3375a6c8a89472ca912854ca2234009998d
2,339
py
Python
event/event_handler.py
rafty/ServerlessEventSoutcing
4759a187373af6f0bfded4ff388ba74c09fc4368
[ "Apache-2.0" ]
null
null
null
event/event_handler.py
rafty/ServerlessEventSoutcing
4759a187373af6f0bfded4ff388ba74c09fc4368
[ "Apache-2.0" ]
null
null
null
event/event_handler.py
rafty/ServerlessEventSoutcing
4759a187373af6f0bfded4ff388ba74c09fc4368
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from functools import reduce from retrying import retry from model import EventStore, Snapshot from error import ItemRanShort, IntegrityError from retry_handler import is_integrity_error, is_not_item_ran_short logger = logging.getLogger() logger.setLevel(logging.INFO) class Eve...
29.987179
68
0.650278
2,027
0.86661
0
0
763
0.326208
0
0
117
0.050021
b23d36fa5033cff1b7860caf5d44f22ca9d35ade
3,422
py
Python
iwjam_import.py
patrickgh3/iwjam
fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be
[ "MIT" ]
null
null
null
iwjam_import.py
patrickgh3/iwjam
fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be
[ "MIT" ]
null
null
null
iwjam_import.py
patrickgh3/iwjam
fd6f58bd5217dc13ed475779fe7f1ff6ca7f13be
[ "MIT" ]
null
null
null
from lxml import etree import os import sys import shutil import iwjam_util # Performs an import of a mod project into a base project given a # previously computed ProjectDiff between them, # and a list of folder names to prefix # ('%modname%' will be replaced with the mod's name) def do_import(base_dir, mod_dir, pdif...
36.404255
78
0.63647
0
0
0
0
0
0
0
0
988
0.28872
b23d41e777497c29e58e3ac4394589928318d38e
4,663
py
Python
subspacemethods/basesubspace.py
AdriBesson/spl2018_joint_sparse
bc52b31a9361c73f07ee52b4d5f36a58fb231c96
[ "MIT" ]
2
2020-07-12T02:04:10.000Z
2021-05-23T06:37:36.000Z
subspacemethods/basesubspace.py
AdriBesson/joint_sparse_algorithms
bc52b31a9361c73f07ee52b4d5f36a58fb231c96
[ "MIT" ]
null
null
null
subspacemethods/basesubspace.py
AdriBesson/joint_sparse_algorithms
bc52b31a9361c73f07ee52b4d5f36a58fb231c96
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod import numpy as np class BaseSubspace(metaclass=ABCMeta): def __init__(self, measurements=None, A=None, k=None, rank=None, pks=[], name=''): # Check A if A is None: self.__A = np.asarray(a=1, dtype=measurements.dtype) else: # C...
30.477124
107
0.57581
4,603
0.987133
0
0
448
0.096075
0
0
1,005
0.215526
b23fca8a65b936733d00f0bac508e61b99fa0f3c
4,550
py
Python
glow/generate_data_sources.py
tomcent-tom/glow
6ba5e8142416251a12e361f4216a40936562cfa1
[ "Apache-2.0" ]
null
null
null
glow/generate_data_sources.py
tomcent-tom/glow
6ba5e8142416251a12e361f4216a40936562cfa1
[ "Apache-2.0" ]
null
null
null
glow/generate_data_sources.py
tomcent-tom/glow
6ba5e8142416251a12e361f4216a40936562cfa1
[ "Apache-2.0" ]
null
null
null
from connectors.tableau.tableau import TableauConnector from posixpath import join from typing import List, Dict, Tuple import argparse import connectors.tableau import os import utils import logging import sys import yaml logging.basicConfig(level=logging.INFO) MAIN_PATH = '/Users/tomevers/projects/airglow' CONNEC...
39.565217
165
0.667253
52
0.011429
0
0
0
0
0
0
1,531
0.336484
b23fd53ddd58d9be266428160e71ab6d0021666d
4,748
py
Python
src/app/views/cookbook/recipe.py
rico0821/fridge
c564f9a4b656c06384d5c40db038328c35ccf1ed
[ "MIT" ]
null
null
null
src/app/views/cookbook/recipe.py
rico0821/fridge
c564f9a4b656c06384d5c40db038328c35ccf1ed
[ "MIT" ]
null
null
null
src/app/views/cookbook/recipe.py
rico0821/fridge
c564f9a4b656c06384d5c40db038328c35ccf1ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ app.views.cookbook.recipe ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Module for handling recipe view and upload. -- :copyright: (c)2020 by rico0821 """ from bson.objectid import ObjectId from datetime import datetime from flask import abort, request from flask_jwt_e...
31.236842
90
0.571398
4,034
0.849621
0
0
3,074
0.64743
0
0
1,076
0.226622
b2410ae215724bbd3d52cfc6ac8fa233e41ad029
5,141
py
Python
modules/password.py
MasterBurnt/ToolBurnt
479a310b7ffff58d00d362ac0fa59d95750e3304
[ "Apache-2.0" ]
1
2021-10-18T09:03:21.000Z
2021-10-18T09:03:21.000Z
modules/password.py
MasterBurnt/ToolBurnt
479a310b7ffff58d00d362ac0fa59d95750e3304
[ "Apache-2.0" ]
null
null
null
modules/password.py
MasterBurnt/ToolBurnt
479a310b7ffff58d00d362ac0fa59d95750e3304
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name : PassList # @url : http://github.com/MasterBurnt # @author : MasterBurnt #Libraries from concurrent.futures import ThreadPoolExecutor import datetime,os,sys,random,time from colorama import Fore,init,Style #C&B&I init() c1 = Style.BRIGHT + Fore.LIGHTWHITE_...
30.064327
183
0.491928
0
0
0
0
0
0
0
0
1,243
0.241782
b24345cfa90040fa81b341f92e8e1c158be7a95e
673
py
Python
dvc/parsing/__init__.py
mbraakhekke/dvc
235d4c9a94603131e00c9b770125584fdb369481
[ "Apache-2.0" ]
null
null
null
dvc/parsing/__init__.py
mbraakhekke/dvc
235d4c9a94603131e00c9b770125584fdb369481
[ "Apache-2.0" ]
null
null
null
dvc/parsing/__init__.py
mbraakhekke/dvc
235d4c9a94603131e00c9b770125584fdb369481
[ "Apache-2.0" ]
null
null
null
import logging from itertools import starmap from funcy import join from .context import Context from .interpolate import resolve logger = logging.getLogger(__name__) STAGES = "stages" class DataResolver: def __init__(self, d): self.context = Context() self.data = d def _resolve_entry(sel...
24.035714
71
0.665676
481
0.71471
0
0
0
0
0
0
42
0.062407
b243c92f9b965a3b5d10ee0df149df6c22ac02d0
1,332
py
Python
Mundo 2/Aula14.Ex59.py
uirasiqueira/Exercicios_Python
409b7be9cf278e3043149654de7b41be56a3d951
[ "MIT" ]
null
null
null
Mundo 2/Aula14.Ex59.py
uirasiqueira/Exercicios_Python
409b7be9cf278e3043149654de7b41be56a3d951
[ "MIT" ]
null
null
null
Mundo 2/Aula14.Ex59.py
uirasiqueira/Exercicios_Python
409b7be9cf278e3043149654de7b41be56a3d951
[ "MIT" ]
null
null
null
'''Crie um programa que leia dois valores e mostre um menu na tela: [1] somar [2] multiplicar [3] maior [4] novos numeros [5] sair do programa Seu programa devera realizar a operação solicitada em cada caso''' v1= int(input('Digite um numero: ')) v2 = int(input('Digite outro numero: ')) operac...
33.3
104
0.62012
0
0
0
0
0
0
0
0
818
0.606825
b243f7691e46a57fcead4522c62b345ef6662d0c
1,692
py
Python
interviewbit/TwoPointers/kthsmallest.py
zazhang/coding-problems
704f0ab22ecdc5fca1978ac7791f43258eb441dd
[ "MIT" ]
null
null
null
interviewbit/TwoPointers/kthsmallest.py
zazhang/coding-problems
704f0ab22ecdc5fca1978ac7791f43258eb441dd
[ "MIT" ]
null
null
null
interviewbit/TwoPointers/kthsmallest.py
zazhang/coding-problems
704f0ab22ecdc5fca1978ac7791f43258eb441dd
[ "MIT" ]
null
null
null
#!usr/bin/env ipython """Coding interview problem (array, math): See `https://www.interviewbit.com/problems/kth-smallest-element-in-the-array/` Find the kth smallest element in an unsorted array of non-negative integers. Definition of kth smallest element: kth smallest element is the minimum possible n such that t...
26.030769
105
0.613475
911
0.538416
0
0
0
0
0
0
947
0.559693
b2445103c2858f39d46bd3d45d182776355fdcdc
90
py
Python
grab_screen/__init__.py
andrei-shabanski/grab-screen
758187262156aac85f6736c9b8299187b49e43a5
[ "MIT" ]
9
2017-08-15T03:45:03.000Z
2022-02-21T18:06:32.000Z
grab_screen/__init__.py
andrei-shabanski/grab-screen
758187262156aac85f6736c9b8299187b49e43a5
[ "MIT" ]
211
2017-07-03T15:24:15.000Z
2022-02-21T14:09:36.000Z
grab_screen/__init__.py
andrei-shabanski/grab-screen
758187262156aac85f6736c9b8299187b49e43a5
[ "MIT" ]
4
2017-08-15T03:44:46.000Z
2022-02-03T10:25:20.000Z
from .cli import main from .version import __version__ __all__ = ['__version__', 'main']
18
33
0.744444
0
0
0
0
0
0
0
0
19
0.211111
b244e34a9bc2f4dc206325d9907079cdca8ac5ad
1,021
py
Python
Test/test_conf_ap/conf_hostapd/create_config.py
liquidinvestigations/wifi-test
beae8674730d78330b1b18214c86206d858ed604
[ "MIT" ]
null
null
null
Test/test_conf_ap/conf_hostapd/create_config.py
liquidinvestigations/wifi-test
beae8674730d78330b1b18214c86206d858ed604
[ "MIT" ]
null
null
null
Test/test_conf_ap/conf_hostapd/create_config.py
liquidinvestigations/wifi-test
beae8674730d78330b1b18214c86206d858ed604
[ "MIT" ]
null
null
null
#!/usr/bin/env python from hostapdconf.parser import HostapdConf from hostapdconf import helpers as ha import subprocess def create_hostapd_conf(ssid, password, interface): """ Create a new hostapd.conf with the given ssid, password, interface. Overwrites the current config file. """ subprocess...
27.594595
75
0.695397
0
0
0
0
0
0
0
0
427
0.418217
b245f0f4f9cda0ef7cfead4f0aa73f69f90186e7
1,669
py
Python
tests/test_paddle.py
ankitshah009/MMdnn
a03d800eb4016765e97f82eb5d2e69f98de3a9cf
[ "MIT" ]
3,442
2017-11-20T08:39:51.000Z
2019-05-06T10:51:19.000Z
tests/test_paddle.py
ankitshah009/MMdnn
a03d800eb4016765e97f82eb5d2e69f98de3a9cf
[ "MIT" ]
430
2017-11-29T04:21:48.000Z
2019-05-06T05:37:37.000Z
tests/test_paddle.py
ankitshah009/MMdnn
a03d800eb4016765e97f82eb5d2e69f98de3a9cf
[ "MIT" ]
683
2017-11-20T08:50:34.000Z
2019-05-04T04:25:14.000Z
from __future__ import absolute_import from __future__ import print_function import os import sys from conversion_imagenet import TestModels from conversion_imagenet import is_paddle_supported def get_test_table(): return { 'paddle' : { 'resnet50' : [ TestModels.onnx_emit, ...
30.345455
56
0.559617
0
0
0
0
0
0
0
0
364
0.218095
b246c295c51a8336e9c8fb87cdefb3fbbe9fe216
900
py
Python
cabinet/tools.py
cauabernardino/cabinet
96bf0d6e467f35d6241ea97f0553bb449fefd15e
[ "MIT" ]
null
null
null
cabinet/tools.py
cauabernardino/cabinet
96bf0d6e467f35d6241ea97f0553bb449fefd15e
[ "MIT" ]
null
null
null
cabinet/tools.py
cauabernardino/cabinet
96bf0d6e467f35d6241ea97f0553bb449fefd15e
[ "MIT" ]
null
null
null
import pathlib import shutil from typing import Dict, List, Union from cabinet.consts import SUPPORTED_FILETYPES def dir_parser(path_to_dir: str) -> Dict[str, Dict[str, str]]: """ Parses the given directory, and returns the path, stem and suffix for files. """ files = pathlib.Path(path_to_dir).resolv...
23.684211
80
0.638889
0
0
0
0
0
0
0
0
182
0.202222
b2473e8998bf083e1cd206ca3716ffba6efcc23c
1,778
py
Python
stickyuploads/utils.py
caktus/django-sticky-uploads
a57539655ba991f63f31f0a5c98d790947bcd1b8
[ "BSD-3-Clause" ]
11
2015-08-14T14:38:02.000Z
2019-12-16T14:39:30.000Z
stickyuploads/utils.py
caktus/django-sticky-uploads
a57539655ba991f63f31f0a5c98d790947bcd1b8
[ "BSD-3-Clause" ]
16
2015-08-05T14:02:19.000Z
2018-03-28T15:43:47.000Z
stickyuploads/utils.py
caktus/django-sticky-uploads
a57539655ba991f63f31f0a5c98d790947bcd1b8
[ "BSD-3-Clause" ]
6
2015-08-14T12:34:52.000Z
2019-10-16T04:18:37.000Z
from __future__ import unicode_literals import os from django.core import signing from django.core.exceptions import ImproperlyConfigured from django.core.files.storage import get_storage_class from django.utils.functional import LazyObject def serialize_upload(name, storage, url): """ Serialize uploaded fi...
29.147541
79
0.654668
0
0
0
0
0
0
0
0
468
0.263217
b248f043c0feea53fbb2ab2028061229d654718b
693
py
Python
build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py
aracelis-git/beginner_tutorials
3bb11e496c414237543e8783dd01b57ef8952bca
[ "Apache-2.0" ]
null
null
null
build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py
aracelis-git/beginner_tutorials
3bb11e496c414237543e8783dd01b57ef8952bca
[ "Apache-2.0" ]
null
null
null
build/beginner_tutorials/cmake/beginner_tutorials-genmsg-context.py
aracelis-git/beginner_tutorials
3bb11e496c414237543e8783dd01b57ef8952bca
[ "Apache-2.0" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/viki/catkin_ws/src/beginner_tutorials/msg/Num.msg" services_str = "/home/viki/catkin_ws/src/beginner_tutorials/srv/ResetCount.srv;/home/viki/catkin_ws/src/beginner_tutorials/srv/AddTwoInts.srv" pkg_name = "beginner_tutorials" dependencies_str = ...
57.75
145
0.799423
0
0
0
0
0
0
0
0
510
0.735931
b249e4cc4dd6019c8854e04867ecd673f6f4e948
9,392
py
Python
demo/utils.py
NguyenTuan-Dat/Custom_3D
148d3e4baa0d0d36714ec2c164ef31cff1bb5751
[ "Apache-2.0" ]
41
2021-09-16T08:19:19.000Z
2022-03-22T10:10:31.000Z
demo/utils.py
NguyenTuan-Dat/Custom_3D
148d3e4baa0d0d36714ec2c164ef31cff1bb5751
[ "Apache-2.0" ]
null
null
null
demo/utils.py
NguyenTuan-Dat/Custom_3D
148d3e4baa0d0d36714ec2c164ef31cff1bb5751
[ "Apache-2.0" ]
2
2021-11-26T14:55:32.000Z
2021-12-05T12:57:24.000Z
import os import cv2 import numpy as np import torch import torch.nn as nn import yaml class Encoder(nn.Module): def __init__(self, cin, cout, nf=64, activation=nn.Tanh): super(Encoder, self).__init__() network = [ nn.Conv2d(cin, nf, kernel_size=4, stride=2, padding=1, bias=False), #...
40.834783
117
0.544719
4,147
0.441546
0
0
0
0
0
0
996
0.106048
b24b76ff37f2289a78c64dcda02fb884eb113dbd
227
py
Python
examples/scannet_normals/data.py
goodok/fastai_sparse
802ede772c19ccca7449eb13d0a107bc0c10ab0f
[ "MIT" ]
49
2019-03-31T21:20:27.000Z
2021-06-30T18:46:58.000Z
examples/scannet_normals/data.py
goodok/fastai_sparse
802ede772c19ccca7449eb13d0a107bc0c10ab0f
[ "MIT" ]
6
2019-04-17T16:01:05.000Z
2020-11-10T09:22:10.000Z
examples/scannet_normals/data.py
goodok/fastai_sparse
802ede772c19ccca7449eb13d0a107bc0c10ab0f
[ "MIT" ]
5
2019-04-01T10:46:29.000Z
2021-01-03T05:18:08.000Z
# -*- coding: utf-8 -*- from functools import partial from fastai_sparse.data import SparseDataBunch merge_fn = partial(SparseDataBunch.merge_fn, keys_lists=['id', 'labels_raw', 'filtred_mask', 'random_seed', 'num_points'])
28.375
122
0.753304
0
0
0
0
0
0
0
0
78
0.343612
b24d5ff4a2324937255e18e0f636457956239a07
1,749
py
Python
plugins/okta/komand_okta/actions/reset_password/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/okta/komand_okta/actions/reset_password/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/okta/komand_okta/actions/reset_password/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "This action resets password for Okta user and transitions user status to PASSWORD_EXPIRED, so that the user is required to change their password at their next login" class Input: TEMP_PASSWORD = "temp_password"...
22.714286
184
0.606632
1,660
0.949114
0
0
0
0
0
0
1,269
0.725557
b24fa470c54ab2d92980faab3b5c114f1efa0392
151
py
Python
Recursion/recursiopow.py
TheG0dfath3r/Python
73f40e9828b953c3e614a21a8980eaa81b5c066e
[ "MIT" ]
null
null
null
Recursion/recursiopow.py
TheG0dfath3r/Python
73f40e9828b953c3e614a21a8980eaa81b5c066e
[ "MIT" ]
null
null
null
Recursion/recursiopow.py
TheG0dfath3r/Python
73f40e9828b953c3e614a21a8980eaa81b5c066e
[ "MIT" ]
2
2019-09-30T21:17:57.000Z
2019-10-01T16:23:33.000Z
x=int(input("no 1 ")) y=int(input("no 2 ")) def pow(x,y): if y!=0: return(x*pow(x,y-1)) else: return 1 print(pow(x,y))
16.777778
29
0.463576
0
0
0
0
0
0
0
0
14
0.092715
b2517e50917150fdb0763470ea2ed80dc851178d
1,800
py
Python
scripts/egomotion_kitti_eval/old/generate_grid_search_validation_freak_stage2.py
bartn8/stereo-vision
1180045fe560478e5c441e75202cc899fe90ec3d
[ "BSD-3-Clause" ]
52
2016-04-02T18:18:48.000Z
2022-02-14T11:47:58.000Z
scripts/egomotion_kitti_eval/old/generate_grid_search_validation_freak_stage2.py
bartn8/stereo-vision
1180045fe560478e5c441e75202cc899fe90ec3d
[ "BSD-3-Clause" ]
3
2016-08-01T14:36:44.000Z
2021-02-14T08:15:50.000Z
scripts/egomotion_kitti_eval/old/generate_grid_search_validation_freak_stage2.py
bartn8/stereo-vision
1180045fe560478e5c441e75202cc899fe90ec3d
[ "BSD-3-Clause" ]
26
2016-08-25T11:28:05.000Z
2022-02-18T12:17:47.000Z
#!/usr/bin/python hamming_threshold = [50, 60] pattern_scale = [4.0, 6.0, 8.0, 10.0] fp_runscript = open("/mnt/ssd/kivan/cv-stereo/scripts/eval_batch/run_batch_validation.sh", 'w') fp_runscript.write("#!/bin/bash\n\n") cnt = 0 for i in range(len(hamming_threshold)): for j in range(len(pattern_scale)): cn...
40
152
0.606111
0
0
0
0
0
0
0
0
928
0.515556
b25199ace7d60d001d07006102f2cf38ff218d27
8,618
py
Python
tensorflow_tts/processor/baker_online_tts.py
outman2008/TensorFlowTTS
7e84f9d91fcfefc031c28df5203779af5614fe5e
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/processor/baker_online_tts.py
outman2008/TensorFlowTTS
7e84f9d91fcfefc031c28df5203779af5614fe5e
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/processor/baker_online_tts.py
outman2008/TensorFlowTTS
7e84f9d91fcfefc031c28df5203779af5614fe5e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # 调用方式 # python online_tts.py -client_secret=你的client_secret -client_id=你的client_secret -file_save_path=test.wav --text=今天天气不错哦 --audiotype=6 from typing import TextIO import requests import json import argparse import os import time from g2p_en import G2p as grapheme_to_phn impor...
35.759336
330
0.598863
0
0
0
0
0
0
0
0
4,227
0.479034
b252bb8863e2cde9dc1c8cf3fba5014be866dbed
5,607
py
Python
gnuradio-3.7.13.4/gr-qtgui/apps/plot_spectrogram_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gr-qtgui/apps/plot_spectrogram_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gr-qtgui/apps/plot_spectrogram_base.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your option) # ...
32.789474
97
0.619939
2,996
0.534332
0
0
0
0
0
0
1,428
0.254682
b252ce6e7da24bbb6a02a3119c677f69f7ea2e58
4,699
py
Python
unused/csv_slicer_crop_threshold.py
eufmike/storm_image_processing
076335519be0be3b66d289a180421d36770ab820
[ "CC-BY-4.0" ]
null
null
null
unused/csv_slicer_crop_threshold.py
eufmike/storm_image_processing
076335519be0be3b66d289a180421d36770ab820
[ "CC-BY-4.0" ]
null
null
null
unused/csv_slicer_crop_threshold.py
eufmike/storm_image_processing
076335519be0be3b66d289a180421d36770ab820
[ "CC-BY-4.0" ]
null
null
null
# %% # slice the csv according to the frame size import os, sys import pandas as pd # from tkinter import * # Functions Section Begins ----------------------------------------------------- # def dircheck(targetpaths): """ dircheck checks the target folder and create the folder if it does not exist. targetdirlist: l...
32.631944
100
0.683337
0
0
0
0
0
0
0
0
1,219
0.259362
b25374f98c200b684bc06d7e6e70a0fae5c15a98
4,682
py
Python
doodle.py
plasticuproject/DoodleNet
1abbf05b2302ce6d8a47d369ddb45d4c5a0dc26d
[ "MIT" ]
2
2020-03-16T01:26:42.000Z
2020-06-19T12:04:37.000Z
doodle.py
plasticuproject/DoodleNet
1abbf05b2302ce6d8a47d369ddb45d4c5a0dc26d
[ "MIT" ]
null
null
null
doodle.py
plasticuproject/DoodleNet
1abbf05b2302ce6d8a47d369ddb45d4c5a0dc26d
[ "MIT" ]
null
null
null
import pygame import random import numpy as np import cv2 from dutil import add_pos #User constants device = "gpu" model_fname = 'Model.h5' background_color = (210, 210, 210) input_w = 144 input_h = 192 image_scale = 3 image_padding = 10 mouse_interps = 10 #Derived constants drawing_w = input_w * image_scale drawing...
30.012821
90
0.683682
0
0
0
0
0
0
0
0
324
0.069201
b253aa300dbf2d178cf0b2b7ef4c04bdb3c8a3ab
2,259
py
Python
tests/dmon/test_dmon.py
Bounti/avatar2_dmon
c24a908b2cd3faea290380b4d0364d23b4430d2e
[ "Apache-2.0" ]
null
null
null
tests/dmon/test_dmon.py
Bounti/avatar2_dmon
c24a908b2cd3faea290380b4d0364d23b4430d2e
[ "Apache-2.0" ]
null
null
null
tests/dmon/test_dmon.py
Bounti/avatar2_dmon
c24a908b2cd3faea290380b4d0364d23b4430d2e
[ "Apache-2.0" ]
null
null
null
from avatar2 import * import sys import os import logging import time import argparse import subprocess import struct import ctypes from random import randint # For profiling import pstats import numpy as np import numpy.testing as npt logging.basicConfig(filename='/tmp/inception-tests.log', level=logging.INFO) GDB...
29.337662
146
0.698097
0
0
0
0
0
0
0
0
993
0.439381
b255a55b50c0a4e6111dcdc38c9b04c04072f949
7,716
py
Python
lexer/scanner.py
lohhans/Compiladores-2020.4
c196c11d0c1ec3b25b54b01e0729474205f328ed
[ "MIT" ]
3
2021-01-08T03:41:35.000Z
2021-01-11T04:22:31.000Z
lexer/scanner.py
laisy/Compiladores-2020.4
c196c11d0c1ec3b25b54b01e0729474205f328ed
[ "MIT" ]
1
2021-01-17T07:56:56.000Z
2021-01-17T07:56:56.000Z
lexer/scanner.py
laisy/Compiladores-2020.4
c196c11d0c1ec3b25b54b01e0729474205f328ed
[ "MIT" ]
3
2021-01-08T00:13:27.000Z
2021-09-09T13:56:54.000Z
from lexer.token import Token class Scanner: # Construtor da classe def __init__(self, programa): self.inicio = 0 self.atual = 0 self.linha = 1 self.tokens = [] self.programa = programa # Busca caracteres, passa para o próximo char (atual é o char a frente do que ...
31.365854
100
0.424313
7,719
0.995743
0
0
0
0
0
0
2,047
0.264061
b256d93e962708f149cc2aba7b423f5e16306972
2,295
py
Python
tests/test_laser.py
chiragjn/laserembeddings
37f2aaf723966f24fe0a8d473241725fba46f691
[ "BSD-3-Clause" ]
null
null
null
tests/test_laser.py
chiragjn/laserembeddings
37f2aaf723966f24fe0a8d473241725fba46f691
[ "BSD-3-Clause" ]
null
null
null
tests/test_laser.py
chiragjn/laserembeddings
37f2aaf723966f24fe0a8d473241725fba46f691
[ "BSD-3-Clause" ]
null
null
null
import os import pytest import numpy as np from laserembeddings import Laser SIMILARITY_TEST = os.getenv('SIMILARITY_TEST') def test_laser(): with open(Laser.DEFAULT_ENCODER_FILE, 'rb') as f_encoder: laser = Laser( Laser.DEFAULT_BPE_CODES_FILE, None, f_encoder, ...
32.785714
151
0.57342
0
0
0
0
0
0
0
0
738
0.320035
b2587d1aad26d95bdbf9bbeb64895092e8199eaa
1,467
py
Python
alipay/aop/api/domain/TaxReceiptOnceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/TaxReceiptOnceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/TaxReceiptOnceInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class TaxReceiptOnceInfo(object): def __init__(self): self._cognizant_mobile = None self._ep_tax_id = None @property def cognizant_mobile(self): return self._cognizant_...
26.196429
83
0.611452
1,350
0.920245
0
0
622
0.423995
0
0
192
0.130879
b2590f93012b66c0c656914441825de752b36b9c
1,371
py
Python
Make-Sense-of-Census/code.py
NishantNair14/greyatom-python-for-data-science
e269530300c996eb67e7c1f2317d0b279b8091ae
[ "MIT" ]
null
null
null
Make-Sense-of-Census/code.py
NishantNair14/greyatom-python-for-data-science
e269530300c996eb67e7c1f2317d0b279b8091ae
[ "MIT" ]
null
null
null
Make-Sense-of-Census/code.py
NishantNair14/greyatom-python-for-data-science
e269530300c996eb67e7c1f2317d0b279b8091ae
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np # Path of the file has been stored in variable called 'path' #New record new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #Code starts here data_file='subset_1000.csv' data=np.genfromtxt(path,delimiter=",",skip_header=1) print(data) census=np.conc...
19.585714
61
0.676878
0
0
0
0
0
0
0
0
288
0.210066
b259ceb8b82845e18e8b6159d8f807dea2a352fc
1,478
py
Python
scripts/rgb2labels.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
36
2019-07-14T16:10:37.000Z
2022-03-29T10:11:03.000Z
scripts/rgb2labels.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
3
2019-10-09T15:11:13.000Z
2021-07-31T02:17:43.000Z
scripts/rgb2labels.py
theRealSuperMario/supermariopy
9fff8275278ff26caff50da86109c25d276bb30b
[ "MIT" ]
14
2019-08-29T14:11:54.000Z
2022-03-06T13:41:56.000Z
import numpy as np from matplotlib import pyplot as plt """ https://stackoverflow.com/questions/42750910/convert-rgb-image-to-index-image/62980021#62980021 convert semantic labels from RGB coding to index coding Steps: 1. define COLORS (see below) 2. hash colors 3. run rgb2index(segmentation_rgb) see example below T...
28.980392
95
0.696888
0
0
0
0
0
0
0
0
442
0.299053
b25a1d4640dfacab5e05d7eaa4739062eb18d83d
9,857
py
Python
app/models/template.py
FireFragment/memegen
f0a1b3ba465b8cd68a873951ab50eeaa91d57a35
[ "MIT" ]
null
null
null
app/models/template.py
FireFragment/memegen
f0a1b3ba465b8cd68a873951ab50eeaa91d57a35
[ "MIT" ]
null
null
null
app/models/template.py
FireFragment/memegen
f0a1b3ba465b8cd68a873951ab50eeaa91d57a35
[ "MIT" ]
null
null
null
import asyncio import shutil from functools import cached_property from pathlib import Path import aiopath from datafiles import datafile, field from furl import furl from sanic import Request from sanic.log import logger from .. import settings, utils from ..types import Dimensions from .overlay import Overlay from ...
32.747508
84
0.573501
9,451
0.958811
0
0
9,516
0.965405
3,906
0.396267
969
0.098306
b25a3c66ad289a972f5766ff0bd4fc4b5518f26d
833
py
Python
corpora_toolbox/utils/io.py
laurahzdz/corpora_toolbox
14a14534df1d80e6a7b2f37ce5f547f1cb5e81a4
[ "MIT" ]
null
null
null
corpora_toolbox/utils/io.py
laurahzdz/corpora_toolbox
14a14534df1d80e6a7b2f37ce5f547f1cb5e81a4
[ "MIT" ]
null
null
null
corpora_toolbox/utils/io.py
laurahzdz/corpora_toolbox
14a14534df1d80e6a7b2f37ce5f547f1cb5e81a4
[ "MIT" ]
null
null
null
import codecs import os # Function to save a string into a file def save_string_in_file(string_text, file_name): with codecs.open(file_name, "w", "utf-8") as f: f.write(string_text) f.close() # Function to read all files in a dir with a specific extension def read_files_in_dir_ext(dir_route, exten...
25.242424
68
0.698679
0
0
0
0
0
0
0
0
195
0.234094
b25bc6b4a0128eafc07471d9e7edfbe8c99fcc86
4,108
py
Python
Games/WarCardGame.py
AyselHavutcu/PythonGames
8144f56a4c015e43a94ab529244475c3db9adee4
[ "MIT" ]
null
null
null
Games/WarCardGame.py
AyselHavutcu/PythonGames
8144f56a4c015e43a94ab529244475c3db9adee4
[ "MIT" ]
null
null
null
Games/WarCardGame.py
AyselHavutcu/PythonGames
8144f56a4c015e43a94ab529244475c3db9adee4
[ "MIT" ]
null
null
null
import random suits = ('Hearts', 'Diamonds', 'Spades', 'Clubs') ranks = ('Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Jack', 'Queen', 'King', 'Ace') values = {'Two':2, 'Three':3, 'Four':4, 'Five':5, 'Six':6, 'Seven':7, 'Eight':8, 'Nine':9, 'Ten':10, 'Jack':11, 'Queen':12, 'King'...
30.42963
115
0.595424
1,350
0.328627
0
0
0
0
0
0
1,240
0.30185
b25bc80a13089b17ce70ec72af0643fdd3cdbaca
16,503
py
Python
startracker/beast/beast.py
Oregon-Tech-Rocketry-and-Aerospace/space-debris-card
d72303436b6cb1a409d5217d0518db0b0335d10a
[ "MIT" ]
null
null
null
startracker/beast/beast.py
Oregon-Tech-Rocketry-and-Aerospace/space-debris-card
d72303436b6cb1a409d5217d0518db0b0335d10a
[ "MIT" ]
null
null
null
startracker/beast/beast.py
Oregon-Tech-Rocketry-and-Aerospace/space-debris-card
d72303436b6cb1a409d5217d0518db0b0335d10a
[ "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
39.57554
150
0.712719
12,390
0.750773
0
0
0
0
0
0
2,464
0.149306
b25c863ab03cce95c0e614b48a6296f7ce35eeb0
2,522
py
Python
development_playgrounds/transformation_planar_flow_test.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
208
2019-06-15T13:48:40.000Z
2021-10-16T05:03:46.000Z
development_playgrounds/transformation_planar_flow_test.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
18
2019-06-17T11:22:13.000Z
2019-09-26T10:45:59.000Z
development_playgrounds/transformation_planar_flow_test.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
32
2019-06-15T19:08:53.000Z
2020-02-16T13:39:41.000Z
import matplotlib.pyplot as plt import numpy as np import torch from brancher.variables import ProbabilisticModel from brancher.standard_variables import NormalVariable, DeterministicVariable, LogNormalVariable import brancher.functions as BF from brancher.visualizations import plot_density from brancher.transformatio...
31.525
96
0.676447
0
0
0
0
0
0
0
0
251
0.099524
b25e6638db74f47962fb3638fca683037c34ed82
3,837
py
Python
src/onegov/people/models/membership.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/models/membership.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/models/membership.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm import Base from onegov.core.orm.mixins import ContentMixin from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.mixins import UTCPublicationMixin from onegov.core.orm.types import UUID from onegov.search import ORMSearchable from sqlalchemy import Column from sqlalchemy import Fo...
31.195122
84
0.661194
3,306
0.861611
0
0
806
0.21006
0
0
1,393
0.363044
b2600eaa1ce4c305aedb5991b27f9834888e24d3
512
py
Python
setup.py
drrobotk/multilateral_index_calc
7b1cf2f178e4407167c90ed64743f9357da1d4f0
[ "MIT" ]
3
2021-11-27T00:00:56.000Z
2022-02-14T09:58:33.000Z
setup.py
drrobotk/multilateral_index_calc
7b1cf2f178e4407167c90ed64743f9357da1d4f0
[ "MIT" ]
null
null
null
setup.py
drrobotk/multilateral_index_calc
7b1cf2f178e4407167c90ed64743f9357da1d4f0
[ "MIT" ]
null
null
null
from gettext import find from setuptools import setup, find_packages setup( name='PriceIndexCalc', version='0.1-dev9', description='Price Index Calculator using bilateral and multilateral methods', author='Dr. Usman Kayani', url='https://github.com/drrobotk/PriceIndexCalc', author_email='usman....
32
82
0.703125
0
0
0
0
0
0
0
0
217
0.423828
b2604e0c3e4e10fe06252e6006860caca1b86c21
480
py
Python
cryptofeed_werks/bigquery_storage/constants.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/bigquery_storage/constants.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
cryptofeed_werks/bigquery_storage/constants.py
globophobe/crypto-tick-data
7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4
[ "MIT" ]
null
null
null
import os try: from google.cloud import bigquery # noqa except ImportError: BIGQUERY = False else: BIGQUERY = True GOOGLE_APPLICATION_CREDENTIALS = "GOOGLE_APPLICATION_CREDENTIALS" BIGQUERY_LOCATION = "BIGQUERY_LOCATION" BIGQUERY_DATASET = "BIGQUERY_DATASET" def use_bigquery(): return ( B...
20
65
0.729167
0
0
0
0
0
0
0
0
75
0.15625
b261027bb447ffd4f357da57323ee5f92a50b62a
599
py
Python
todoapp/todos/models.py
Buddheshwar-Nath-Keshari/test-ubuntu
5e801ecd21503f160e52c091120a1a0c80c6600d
[ "MIT" ]
null
null
null
todoapp/todos/models.py
Buddheshwar-Nath-Keshari/test-ubuntu
5e801ecd21503f160e52c091120a1a0c80c6600d
[ "MIT" ]
null
null
null
todoapp/todos/models.py
Buddheshwar-Nath-Keshari/test-ubuntu
5e801ecd21503f160e52c091120a1a0c80c6600d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils.encoding import smart_text as smart_unicode from django.utils.translation import ugettext_lazy as _ class Todo(models.Model): """ Needed fields - user (fk to User Model - Use AUTH_USER_MODEL from django.conf.se...
31.526316
81
0.707846
408
0.681135
0
0
0
0
0
0
378
0.631052
b2612d097a5e022b18b2c108ce7b4e1fdc16b1dc
6,054
py
Python
ultra_config_tests/unit_tests/test_ultra_config.py
timmartin19/ultra-config
9af6a1313f49bf86b230be8e8beeb1c3479b9ab6
[ "MIT" ]
1
2017-01-05T18:32:22.000Z
2017-01-05T18:32:22.000Z
ultra_config_tests/unit_tests/test_ultra_config.py
timmartin19/ultra-config
9af6a1313f49bf86b230be8e8beeb1c3479b9ab6
[ "MIT" ]
239
2018-08-10T19:28:42.000Z
2022-03-28T09:40:20.000Z
ultra_config_tests/unit_tests/test_ultra_config.py
timmartin19/ultra-config
9af6a1313f49bf86b230be8e8beeb1c3479b9ab6
[ "MIT" ]
1
2019-06-10T14:14:15.000Z
2019-06-10T14:14:15.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import unittest from ultra_config import simple_config, load_json_file_settings, \ load_configparser_settings, load_python_object_settings, load_dict_setti...
38.316456
103
0.66964
5,639
0.93145
0
0
0
0
0
0
617
0.101916
b264318ef812ccb5494cb1fbb53e013385e1b79c
970
py
Python
leetcode/87. Scramble String.py
CSU-FulChou/IOS_er
4286677854c4afe61f745bfd087527e369402dc7
[ "MIT" ]
2
2020-02-10T15:20:03.000Z
2020-02-23T07:23:57.000Z
leetcode/87. Scramble String.py
CSU-FulChou/IOS_er
4286677854c4afe61f745bfd087527e369402dc7
[ "MIT" ]
null
null
null
leetcode/87. Scramble String.py
CSU-FulChou/IOS_er
4286677854c4afe61f745bfd087527e369402dc7
[ "MIT" ]
1
2020-02-24T04:46:44.000Z
2020-02-24T04:46:44.000Z
# 2021.04.16 hard: class Solution: def isScramble(self, s1: str, s2: str) -> bool: ''' dp 问题: 1. 子字符串应该一样长. 很简单已经保证了 子字符串一样,那么久直接返回 True 2. 子字符串中 存在的字母应该一样, 同一个字母的数量应该一样多 Count() 两种分割方式,交换 或者 不交换不断的迭代下去: 分割的两种方式要写对! ''' @cache def df...
33.448276
98
0.5
1,162
0.98308
0
0
595
0.503384
0
0
474
0.401015
b264888cc9f1eb496c9df03db998069fffdf3f86
3,079
py
Python
packaging/setup/plugins/ovirt-engine-setup/all-in-one/super_user.py
SunOfShine/ovirt-engine
7684597e2d38ff854e629e5cbcbb9f21888cb498
[ "Apache-2.0" ]
1
2021-02-02T05:38:35.000Z
2021-02-02T05:38:35.000Z
packaging/setup/plugins/ovirt-engine-setup/all-in-one/super_user.py
SunOfShine/ovirt-engine
7684597e2d38ff854e629e5cbcbb9f21888cb498
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-setup/all-in-one/super_user.py
SunOfShine/ovirt-engine
7684597e2d38ff854e629e5cbcbb9f21888cb498
[ "Apache-2.0" ]
null
null
null
# # ovirt-engine-setup -- ovirt engine setup # Copyright (C) 2013 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 at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
28.775701
76
0.616759
2,116
0.687236
0
0
2,129
0.691458
0
0
876
0.284508
b2666be5a27dd8e787680368717223bfc00f077e
4,296
py
Python
deploy/deploy.py
ColdStack-Network/blockchain
3852f888e9d184a4fbc71365514a55dd9c510adb
[ "Unlicense" ]
null
null
null
deploy/deploy.py
ColdStack-Network/blockchain
3852f888e9d184a4fbc71365514a55dd9c510adb
[ "Unlicense" ]
null
null
null
deploy/deploy.py
ColdStack-Network/blockchain
3852f888e9d184a4fbc71365514a55dd9c510adb
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import argparse import subprocess import json parser = argparse.ArgumentParser(description='Deploy blockchain') parser.add_argument('--validator-node', help='validator node ssh address. First node becomes boot node and active validator.', nargs='+' ) parser.add_argument('--api-node', help...
28.078431
100
0.657588
0
0
0
0
0
0
0
0
2,312
0.538175
b267e740ceab58f8898f41e8edaa0a8a6747e59b
6,299
py
Python
4_neural_networks.py
scientificprogrammer123/Udacity_Machine-Learning
e6f5a73724ac51c9dcc9c28ee1652991982598ca
[ "MIT" ]
null
null
null
4_neural_networks.py
scientificprogrammer123/Udacity_Machine-Learning
e6f5a73724ac51c9dcc9c28ee1652991982598ca
[ "MIT" ]
null
null
null
4_neural_networks.py
scientificprogrammer123/Udacity_Machine-Learning
e6f5a73724ac51c9dcc9c28ee1652991982598ca
[ "MIT" ]
1
2021-04-14T22:04:52.000Z
2021-04-14T22:04:52.000Z
# lesson 1: neural networks # cell body, neuron, axon, synapse # spike trains travel down the axon, and causes excitation to occur at other axons. # a computation unit. # # x1 -> w1 -> # x2 -> w2 -> theta -> y # x3 -> w3 -> # # sum_{=1}^{k} xi*wi, activation # >=theta, firing threshold # # For percept...
29.712264
111
0.62883
0
0
0
0
0
0
0
0
6,072
0.963963
b26837a3549f4fc5b6bc64ba12abe7c4d44f56e0
267
py
Python
gitprivacy/dateredacter/__init__.py
fapdash/git-privacy
357a2952d8feb9e193373e18284e57a26d14b96c
[ "BSD-2-Clause" ]
7
2019-10-15T08:30:02.000Z
2021-12-26T20:37:18.000Z
gitprivacy/dateredacter/__init__.py
fapdash/git-privacy
357a2952d8feb9e193373e18284e57a26d14b96c
[ "BSD-2-Clause" ]
30
2019-04-22T15:08:34.000Z
2022-02-16T20:39:28.000Z
gitprivacy/dateredacter/__init__.py
cburkert/pyGitPrivacy
d522e62f85446e7554f6b66b5287f9c3a6aa33c2
[ "BSD-2-Clause" ]
2
2021-06-22T18:17:01.000Z
2021-12-21T09:48:33.000Z
import abc from datetime import datetime class DateRedacter(abc.ABC): """Abstract timestamp redater.""" @abc.abstractmethod def redact(self, timestamp: datetime) -> datetime: """Redact timestamp.""" from .reduce import ResolutionDateRedacter
19.071429
54
0.71161
178
0.666667
0
0
106
0.397004
0
0
56
0.209738
b26aa848ad9a71009d6da1cdab45cb44abfe1110
2,178
py
Python
functions/cm_plotter.py
evanmy/keymorph
5b57d86047ca13c73f494e21fdf271f261912f84
[ "MIT" ]
null
null
null
functions/cm_plotter.py
evanmy/keymorph
5b57d86047ca13c73f494e21fdf271f261912f84
[ "MIT" ]
null
null
null
functions/cm_plotter.py
evanmy/keymorph
5b57d86047ca13c73f494e21fdf271f261912f84
[ "MIT" ]
null
null
null
import torch from skimage.filters import gaussian def blur_cm_plot(Cm_plot, sigma): """ Blur the keypoints/center-of-masses for better visualiztion Arguments --------- Cm_plot : tensor with the center-of-masses sigma : how much to blur Return ------ out : blurred points...
26.888889
82
0.5427
0
0
0
0
0
0
0
0
574
0.263545
b26afc8ce026caaf2cd97fb955bcaaad804230cc
3,790
py
Python
examples/cooperative_work_examples.py
hfs/maproulette-python-client
0a3e4b68af7892700463c2afc66a1ae4dcbf0825
[ "Apache-2.0" ]
null
null
null
examples/cooperative_work_examples.py
hfs/maproulette-python-client
0a3e4b68af7892700463c2afc66a1ae4dcbf0825
[ "Apache-2.0" ]
null
null
null
examples/cooperative_work_examples.py
hfs/maproulette-python-client
0a3e4b68af7892700463c2afc66a1ae4dcbf0825
[ "Apache-2.0" ]
null
null
null
import maproulette import json import base64 # Create a configuration object for MapRoulette using your API key: config = maproulette.Configuration(api_key="API_KEY") # Create an API objects with the above config object: api = maproulette.Task(config) # Setting a challenge ID in which we'll place our cooperative tas...
50.533333
108
0.58628
0
0
0
0
0
0
0
0
1,327
0.350132
b26b274e30196d87e8ffb7a61d1cdb928d240314
1,101
py
Python
src/biopsykit/sleep/sleep_wake_detection/algorithms/_base.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
10
2020-11-05T13:34:55.000Z
2022-03-11T16:20:10.000Z
src/biopsykit/sleep/sleep_wake_detection/algorithms/_base.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
14
2021-03-11T14:43:52.000Z
2022-03-10T19:44:57.000Z
src/biopsykit/sleep/sleep_wake_detection/algorithms/_base.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
3
2021-09-13T13:14:38.000Z
2022-02-19T09:13:25.000Z
"""Module for sleep/wake detection base class.""" from biopsykit.utils._types import arr_t from biopsykit.utils.datatype_helper import SleepWakeDataFrame class _SleepWakeBase: """Base class for sleep/wake detection algorithms.""" def __init__(self, **kwargs): pass def fit(self, data: arr_t, **kw...
29.756757
110
0.62852
944
0.857402
0
0
0
0
0
0
717
0.651226
b26b2d344b00d14f7c80d63267fca336b474dfed
287
py
Python
FluentPython/ch02/cartesian.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
FluentPython/ch02/cartesian.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
FluentPython/ch02/cartesian.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/bin/env python colors = ['white', 'black'] sizes = ['S', 'M', 'L'] tshirts = [(color, size) for size in sizes for color in colors ] print(tshirts) tshirts = [(color, size) for color in colors for size in sizes ] print(tshirts)
22.076923
46
0.54007
0
0
0
0
0
0
0
0
44
0.15331
b26b3c9bc4d2fbf8cbbb44a23143622070070eef
316
py
Python
create.py
devanshsharma22/ONE
27450ff2e9e07164527043a161274495ef3a1178
[ "CC-BY-3.0" ]
null
null
null
create.py
devanshsharma22/ONE
27450ff2e9e07164527043a161274495ef3a1178
[ "CC-BY-3.0" ]
null
null
null
create.py
devanshsharma22/ONE
27450ff2e9e07164527043a161274495ef3a1178
[ "CC-BY-3.0" ]
null
null
null
from flask import Flask from models import * app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATABASE_URL') app.config['SQLALCHEMY_TRACK_MODIFICATIONS']=False db.init_app(app) def main(): db.create_all() if __name__ == "__main__": with app.app_context(): main()
15.8
70
0.708861
0
0
0
0
0
0
0
0
81
0.256329
b26beef2d3bbff1212787d1023080b96af3af78b
1,160
py
Python
jmetex/main.py
innovocloud/jmetex
5e7c4d9695174fe2f5c3186b8bbb41857e9715df
[ "Apache-2.0" ]
2
2018-02-19T14:21:31.000Z
2018-03-15T03:16:05.000Z
jmetex/main.py
innovocloud/jmetex
5e7c4d9695174fe2f5c3186b8bbb41857e9715df
[ "Apache-2.0" ]
null
null
null
jmetex/main.py
innovocloud/jmetex
5e7c4d9695174fe2f5c3186b8bbb41857e9715df
[ "Apache-2.0" ]
null
null
null
import sys import time import argparse from prometheus_client import start_http_server, Metric, REGISTRY, Summary from .interfacecollector import InterfaceCollector from .opticalcollector import OpticalCollector def main(): parser = argparse.ArgumentParser(description='JunOS API to Prometheus exporter') parse...
40
96
0.675862
0
0
0
0
0
0
0
0
177
0.152586
b26ccd47df1988e1e17fa1b203b55759ef55fe03
472
py
Python
vispp/io.py
c-cameron/vispp
a985c0fd5a7add968968ec025da17ad0c5ab0f73
[ "BSD-3-Clause" ]
null
null
null
vispp/io.py
c-cameron/vispp
a985c0fd5a7add968968ec025da17ad0c5ab0f73
[ "BSD-3-Clause" ]
null
null
null
vispp/io.py
c-cameron/vispp
a985c0fd5a7add968968ec025da17ad0c5ab0f73
[ "BSD-3-Clause" ]
null
null
null
from matplotlib.backends.backend_pdf import PdfPages def better_savefig(fig, figfile, format="pdf", **kwargs): """To be used instead of .savefig This function saves pdfs without creation date. So subsequent overwrites of pdf files does not cause e.g. git modified. """ if format == "pdf": ...
31.466667
71
0.667373
0
0
0
0
0
0
0
0
194
0.411017
b26de06366dede83defa5d174c6610df50dcc9a0
1,133
py
Python
mappings.py
timeseries-ru/EL
2528fe50b92efd0b28611ddd9b531d085a12d0df
[ "MIT" ]
null
null
null
mappings.py
timeseries-ru/EL
2528fe50b92efd0b28611ddd9b531d085a12d0df
[ "MIT" ]
null
null
null
mappings.py
timeseries-ru/EL
2528fe50b92efd0b28611ddd9b531d085a12d0df
[ "MIT" ]
null
null
null
import sklearn.decomposition as decomposition import sklearn.preprocessing as preprocessing import sklearn.linear_model as linear_model import sklearn.ensemble as ensemble import sklearn.cluster as cluster import sklearn.neighbors as neighbors import sklearn.neural_network as neural_network class Mapper: mappings ...
40.464286
77
0.752868
839
0.740512
0
0
0
0
0
0
204
0.180053
b26eb6867abd481f8fa7df4a751d92de7df14d0f
231
py
Python
Find_the_Runner_Up_Score_.py
KrShivanshu/264136_Python_Daily
8caeae12a495509675544b957af3ffbaa50e6ed2
[ "CC0-1.0" ]
null
null
null
Find_the_Runner_Up_Score_.py
KrShivanshu/264136_Python_Daily
8caeae12a495509675544b957af3ffbaa50e6ed2
[ "CC0-1.0" ]
null
null
null
Find_the_Runner_Up_Score_.py
KrShivanshu/264136_Python_Daily
8caeae12a495509675544b957af3ffbaa50e6ed2
[ "CC0-1.0" ]
null
null
null
if __name__ == '__main__': n = int(input()) arr = map(int, input().split()) max = -9999999 max2 = -9999999 for i in arr: if(i>max): max2=max max=i elif i>max2 and max>i: max2=i print(max2)
16.5
35
0.532468
0
0
0
0
0
0
0
0
10
0.04329
b26fb5509497d72210ea4f3275edb63a6b2bc440
85
py
Python
tests/__init__.py
doublechiang/qsmcmd
63e31390de020472c6ff4284cbe2d2c5147cb13d
[ "MIT" ]
1
2021-05-07T09:57:01.000Z
2021-05-07T09:57:01.000Z
tests/__init__.py
doublechiang/qsmcmd
63e31390de020472c6ff4284cbe2d2c5147cb13d
[ "MIT" ]
30
2017-08-24T21:21:03.000Z
2021-01-21T19:32:36.000Z
tests/__init__.py
doublechiang/qsmcmd
63e31390de020472c6ff4284cbe2d2c5147cb13d
[ "MIT" ]
null
null
null
import os, sys sys.path.insert(0, os.path.join(os.path.dirname(__file__),'../src'))
21.25
68
0.694118
0
0
0
0
0
0
0
0
8
0.094118
b26fea559278660731c5b3eb16d98ce810c85f89
7,669
py
Python
mindspore/python/mindspore/rewrite/namer.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
mindspore/python/mindspore/rewrite/namer.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/rewrite/namer.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.519048
120
0.604903
6,834
0.89112
0
0
1,470
0.191681
0
0
4,421
0.576477
b270dcf5ee3dfde551682fd9a8c7f93e84cb34a6
3,391
py
Python
tests/test_autopilot.py
aidanmelen/bobcat_miner
5ce85e17e93332a126db0a196c29b01433dc90d4
[ "Apache-2.0" ]
6
2022-01-06T05:50:14.000Z
2022-03-25T09:41:34.000Z
tests/test_autopilot.py
aidanmelen/bobcat_miner
5ce85e17e93332a126db0a196c29b01433dc90d4
[ "Apache-2.0" ]
9
2022-01-19T03:16:33.000Z
2022-02-20T20:37:56.000Z
tests/test_autopilot.py
aidanmelen/bobcat_miner
5ce85e17e93332a126db0a196c29b01433dc90d4
[ "Apache-2.0" ]
3
2022-01-06T05:50:00.000Z
2022-02-15T16:24:58.000Z
from unittest.mock import patch, call, PropertyMock, AsyncMock, MagicMock, mock_open import unittest from bobcat_miner import BobcatAutopilot, Bobcat, OnlineStatusCheck import mock_endpoints class TestAutopilot(unittest.TestCase): """Test BobcatAutopilot.""" @patch("bobcat_miner.BobcatAutopilot.error_chec...
37.677778
100
0.604247
3,174
0.92807
0
0
3,091
0.903801
0
0
1,157
0.338304
b271a810a148e7642fe7f668a6757b9d19a1951c
5,687
py
Python
fig/project.py
kazoup/fig
d34dc45b783f830ed64988c3c8ffb3d4f550d059
[ "BSD-3-Clause" ]
null
null
null
fig/project.py
kazoup/fig
d34dc45b783f830ed64988c3c8ffb3d4f550d059
[ "BSD-3-Clause" ]
null
null
null
fig/project.py
kazoup/fig
d34dc45b783f830ed64988c3c8ffb3d4f550d059
[ "BSD-3-Clause" ]
1
2019-12-11T01:08:39.000Z
2019-12-11T01:08:39.000Z
from __future__ import unicode_literals from __future__ import absolute_import import logging from .service import Service log = logging.getLogger(__name__) def sort_service_dicts(services): # Topological sort (Cormen/Tarjan algorithm). unmarked = services[:] temporary_marked = set() sorted_services ...
34.053892
183
0.604713
4,511
0.793213
0
0
1,599
0.281168
0
0
1,051
0.184807
b2743a4c76c53ef106ccb49cbbfbe8057b1bd708
2,136
py
Python
input/utils/chi-squared-contingency-tests.py
g-p-m/GPM
00aa3ea664e14b99eedd6cbeabbc2b85edf2b208
[ "BSD-3-Clause" ]
null
null
null
input/utils/chi-squared-contingency-tests.py
g-p-m/GPM
00aa3ea664e14b99eedd6cbeabbc2b85edf2b208
[ "BSD-3-Clause" ]
null
null
null
input/utils/chi-squared-contingency-tests.py
g-p-m/GPM
00aa3ea664e14b99eedd6cbeabbc2b85edf2b208
[ "BSD-3-Clause" ]
null
null
null
import numpy, scipy.stats T1 = numpy.asarray([ [ 316, 378, 393, 355, 391, 371, 400, 397, 385, 371, 382, 371, ], [ 336, 339, 322, 341, 314, 311, 339, 310, 331, 355, 316, 306, ], [ 375, 364, 375, 381, 381, 401, 374, 396, 422, 417, 372, 435, ], [ 238, 231, 263, 268, 239, 259, 243, 206, 257, 228, 252, 203, ]]) T2 = numpy....
46.434783
65
0.558521
0
0
0
0
0
0
0
0
19
0.008895
b2760534184d4098001909eaf620372388d8db5f
4,916
py
Python
inference_speed.py
guillesanbri/DPT
d65d1e4adade95bb6265c28ab29e009028b3f9a8
[ "MIT" ]
null
null
null
inference_speed.py
guillesanbri/DPT
d65d1e4adade95bb6265c28ab29e009028b3f9a8
[ "MIT" ]
null
null
null
inference_speed.py
guillesanbri/DPT
d65d1e4adade95bb6265c28ab29e009028b3f9a8
[ "MIT" ]
null
null
null
import os import wandb import torch import warnings import numpy as np import torchvision.transforms from fvcore.nn import FlopCountAnalysis from dpt.models import DPTDepthModel def get_flops(model, x, unit="G", quiet=True): _prefix = {'k': 1e3, # kilo 'M': 1e6, # mega 'G': 1e9, ...
35.114286
119
0.605574
0
0
0
0
0
0
0
0
1,169
0.237795
b2768c03376cae3fece006df9dcfa990067b957c
5,122
py
Python
cybox/common/tools.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/common/tools.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/common/tools.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
1
2019-04-16T18:37:32.000Z
2019-04-16T18:37:32.000Z
# Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import cybox import cybox.bindings.cybox_common as common_binding from cybox.common import HashList, StructuredText, VocabString class ToolType(VocabString): _XSI_TYPE = 'cyboxVocabs:ToolTypeVocab-1.1' class...
33.25974
89
0.650527
4,879
0.952558
0
0
1,751
0.341859
0
0
566
0.110504
b2769b5ec360ec5dc6f9171e3632b3ef3f3dc0c8
570
py
Python
python/ray/rllib/models/tf/tf_modelv2.py
alex-petrenko/ray
dfc94ce7bcd5d9d008822efdeec17c3f6bb9c606
[ "Apache-2.0" ]
1
2020-09-27T08:48:11.000Z
2020-09-27T08:48:11.000Z
python/ray/rllib/models/tf/tf_modelv2.py
JunpingDu/ray
214f09d969480279930994cabbcc2a75535cc6ca
[ "Apache-2.0" ]
4
2019-03-04T13:03:24.000Z
2019-06-06T11:25:07.000Z
python/ray/rllib/models/tf/tf_modelv2.py
JunpingDu/ray
214f09d969480279930994cabbcc2a75535cc6ca
[ "Apache-2.0" ]
1
2020-04-30T09:06:20.000Z
2020-04-30T09:06:20.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from ray.rllib.models.modelv2 import ModelV2 from ray.rllib.utils import try_import_tf tf = try_import_tf() class TFModelV2(ModelV2): """TF version of ModelV2.""" def __init__(self, obs_space, actio...
23.75
74
0.642105
348
0.610526
0
0
0
0
0
0
32
0.05614
b27869ddfe009d8e2d025f4f2f3d4a1de697cced
1,401
py
Python
EventManager/Home/models.py
201901407/woc3.0-eventmanager-DarshilParikh
8174cd5373e3f3e4723a9fd6381266a56dddc4e6
[ "MIT" ]
1
2021-01-03T13:57:38.000Z
2021-01-03T13:57:38.000Z
EventManager/Home/models.py
201901407/woc3.0-eventmanager-DarshilParikh
8174cd5373e3f3e4723a9fd6381266a56dddc4e6
[ "MIT" ]
null
null
null
EventManager/Home/models.py
201901407/woc3.0-eventmanager-DarshilParikh
8174cd5373e3f3e4723a9fd6381266a56dddc4e6
[ "MIT" ]
null
null
null
from django.db import models import uuid, datetime from django.utils import timezone # Create your models here. class User(models.Model): user_id = models.CharField(max_length=100,default=uuid.uuid4) email = models.EmailField(max_length=100) name = models.CharField(max_length=100) password = models.Ch...
35.025
97
0.751606
1,273
0.908637
0
0
0
0
0
0
28
0.019986
b278da741753c0353d746ae92b8910102ad49380
2,450
py
Python
zulip_bots/zulip_bots/terminal.py
maanuanubhav999/python-zulip-api
abebf28077b31d6b3a7183044c6493230d890d91
[ "Apache-2.0" ]
1
2020-07-09T17:23:15.000Z
2020-07-09T17:23:15.000Z
zulip_bots/zulip_bots/terminal.py
maanuanubhav999/python-zulip-api
abebf28077b31d6b3a7183044c6493230d890d91
[ "Apache-2.0" ]
null
null
null
zulip_bots/zulip_bots/terminal.py
maanuanubhav999/python-zulip-api
abebf28077b31d6b3a7183044c6493230d890d91
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys import argparse from zulip_bots.finder import import_module_from_source, resolve_bot_path from zulip_bots.simple_lib import TerminalBotHandler current_dir = os.path.dirname(os.path.abspath(__file__)) def parse_args(): description = ''' This tool allows you to t...
31.410256
106
0.624082
0
0
0
0
0
0
0
0
633
0.258367
b27948c3537469faf68e7dba6797c0ed2aa2c1dd
3,606
py
Python
tesHistMatch.py
cliffeby/Duckpin2
9b1b0891e898625373409f7b4b7d4e058184c45e
[ "MIT" ]
null
null
null
tesHistMatch.py
cliffeby/Duckpin2
9b1b0891e898625373409f7b4b7d4e058184c45e
[ "MIT" ]
1
2018-04-23T21:35:32.000Z
2018-10-04T03:15:00.000Z
tesHistMatch.py
cliffeby/Duckpin2
9b1b0891e898625373409f7b4b7d4e058184c45e
[ "MIT" ]
null
null
null
# import the necessary packages import io import time import cropdata1024, cropdata1440 import numpy as np import threading import cv2 mask_crop_ranges = cropdata1440.ballCrops crop_ranges = cropdata1024.pin_crop_ranges arm_crop_ranges = cropdata1440.resetArmCrops scrop_ranges = cropdata1024.special_crop_ranges x=y=x1...
33.700935
136
0.567942
0
0
0
0
0
0
0
0
847
0.234886
b27a7998ddf212b0241aa835db7ce95126acc646
2,929
py
Python
authlib/integrations/flask_client/remote_app.py
bobh66/authlib
e3e18da74d689b61a8dc8db46775ff77a57c6c2a
[ "BSD-3-Clause" ]
1
2021-12-09T07:11:05.000Z
2021-12-09T07:11:05.000Z
authlib/integrations/flask_client/remote_app.py
bobh66/authlib
e3e18da74d689b61a8dc8db46775ff77a57c6c2a
[ "BSD-3-Clause" ]
null
null
null
authlib/integrations/flask_client/remote_app.py
bobh66/authlib
e3e18da74d689b61a8dc8db46775ff77a57c6c2a
[ "BSD-3-Clause" ]
2
2021-05-24T20:34:12.000Z
2022-03-26T07:46:17.000Z
from flask import redirect from flask import request as flask_req from flask import _app_ctx_stack from ..base_client import RemoteApp class FlaskRemoteApp(RemoteApp): """Flask integrated RemoteApp of :class:`~authlib.client.OAuthClient`. It has built-in hooks for OAuthClient. The only required configuration ...
35.719512
84
0.665073
2,791
0.952885
0
0
497
0.169682
0
0
561
0.191533
b27a85f2428bee55c3eb4af112108417cb5d5e83
2,552
py
Python
models/cnn_stft.py
gumpy-hybridBCI/GUMPY-
12a679626836c0be0063dd4012380ec2fa0245cb
[ "MIT" ]
27
2018-02-20T14:17:42.000Z
2021-04-16T02:36:40.000Z
models/cnn_stft.py
gumpy-hybridBCI/GUMPY-
12a679626836c0be0063dd4012380ec2fa0245cb
[ "MIT" ]
3
2019-02-22T12:18:40.000Z
2021-06-13T17:09:08.000Z
models/cnn_stft.py
gumpy-hybridBCI/GUMPY-
12a679626836c0be0063dd4012380ec2fa0245cb
[ "MIT" ]
15
2018-03-19T20:04:50.000Z
2022-02-24T10:12:06.000Z
from .model import KerasModel import keras from keras.models import Sequential from keras.layers import Dense, Activation, Flatten from keras.layers import BatchNormalization, Dropout, Conv2D, MaxPooling2D import kapre from kapre.utils import Normalization2D from kapre.time_frequency import Spectrogram class CNN_STF...
37.529412
87
0.575627
2,244
0.87931
0
0
0
0
0
0
392
0.153605
b27aa21ef3977e3a19e7a6820a49fc999d5453c5
1,347
py
Python
test/test_http.py
tylerlong/ringcentral-python
518a6b2b493360a40f2ee0eaa8ae3f12e01d4f52
[ "MIT" ]
3
2017-01-26T01:58:50.000Z
2018-12-26T09:06:21.000Z
test/test_http.py
tylerlong/ringcentral-python
518a6b2b493360a40f2ee0eaa8ae3f12e01d4f52
[ "MIT" ]
3
2017-03-25T21:50:04.000Z
2018-09-05T23:35:26.000Z
test/test_http.py
tylerlong/ringcentral-python
518a6b2b493360a40f2ee0eaa8ae3f12e01d4f52
[ "MIT" ]
1
2017-02-14T22:27:16.000Z
2017-02-14T22:27:16.000Z
from .test_base import BaseTestCase class HttpTestCase(BaseTestCase): def test_get(self): r = self.rc.get('/restapi/v1.0/account/~/extension/~') self.assertEqual(200, r.status_code) def test_post(self): r = self.rc.post('/restapi/v1.0/account/~/extension/~/sms', { 'to': [{'...
43.451613
144
0.589458
1,309
0.971789
0
0
0
0
0
0
471
0.349666
b27aa7dc89425beb1b8dd2de335e508e06185c2e
6,685
py
Python
src/scaffold/models/abstract/meta.py
Su-yj/django-scaffold-tools
db97b1feece8cc57131e3a14b292857204e8e574
[ "Apache-2.0" ]
2
2021-02-25T17:52:03.000Z
2021-05-25T23:49:40.000Z
src/scaffold/models/abstract/meta.py
Su-yj/django-scaffold-tools
db97b1feece8cc57131e3a14b292857204e8e574
[ "Apache-2.0" ]
null
null
null
src/scaffold/models/abstract/meta.py
Su-yj/django-scaffold-tools
db97b1feece8cc57131e3a14b292857204e8e574
[ "Apache-2.0" ]
1
2022-03-24T09:40:57.000Z
2022-03-24T09:40:57.000Z
from datetime import datetime from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.db import models from scaffold.exceptions.exceptions import AppError # def patch_methods(model_class): # def do_patch(cls): # for k in cls.__dict__: # obj ...
21.495177
74
0.57472
7,148
0.934257
0
0
102
0.013332
0
0
2,316
0.302706
b27aafce477f2a5f5a7f14f7e8edc439ed8f615c
3,740
py
Python
tests/unit/client/resources/box/test_box.py
etingof/softboxen
2a7ba85669d563de9824e3962bd48a0849482e3f
[ "BSD-2-Clause" ]
2
2020-02-08T20:43:35.000Z
2020-06-24T18:46:59.000Z
tests/unit/client/resources/box/test_box.py
etingof/softboxen
2a7ba85669d563de9824e3962bd48a0849482e3f
[ "BSD-2-Clause" ]
2
2020-03-07T08:07:17.000Z
2021-09-15T21:12:12.000Z
tests/unit/client/resources/box/test_box.py
etingof/softboxen
2a7ba85669d563de9824e3962bd48a0849482e3f
[ "BSD-2-Clause" ]
1
2020-05-04T06:10:45.000Z
2020-05-04T06:10:45.000Z
# # This file is part of softboxen software. # # Copyright (c) 2020, Ilya Etingof <[email protected]> # License: https://github.com/etingof/softboxen/LICENSE.rst # import json import sys import unittest from unittest import mock from softboxen.client.resources.box import box from softboxen.client.resources.box import...
31.428571
79
0.674866
3,197
0.854813
0
0
555
0.148396
0
0
652
0.174332
b27af965481a6eface77ab77feda170f704b5500
543
py
Python
photoseleven/db.py
photoseleven/photoseleven-backend
2e511d5e48477b6b41a6d98f0630b1bcada8a298
[ "MIT" ]
null
null
null
photoseleven/db.py
photoseleven/photoseleven-backend
2e511d5e48477b6b41a6d98f0630b1bcada8a298
[ "MIT" ]
null
null
null
photoseleven/db.py
photoseleven/photoseleven-backend
2e511d5e48477b6b41a6d98f0630b1bcada8a298
[ "MIT" ]
1
2020-03-29T11:20:40.000Z
2020-03-29T11:20:40.000Z
import click from flask import current_app, g from flask.cli import with_appcontext from flask_pymongo import PyMongo from werkzeug.security import check_password_hash, generate_password_hash def get_db(): if 'db' not in g: mongo = PyMongo(current_app) g.db = mongo.db g.db_client = mongo.c...
19.392857
73
0.692449
0
0
0
0
0
0
0
0
19
0.034991
b27c6063523b17b12c8d4769a34a8058b47c5491
366
py
Python
DataStructures/Stacks/Stack.py
hhimmmmii/Data_Structures_and_Algorithms
21169d21172fd1242cbb998324a6953b0c32cd05
[ "MIT" ]
null
null
null
DataStructures/Stacks/Stack.py
hhimmmmii/Data_Structures_and_Algorithms
21169d21172fd1242cbb998324a6953b0c32cd05
[ "MIT" ]
2
2020-10-05T05:23:40.000Z
2020-10-15T17:34:32.000Z
DataStructures/Stacks/Stack.py
hhimmmmii/Data_Structures_and_Algorithms
21169d21172fd1242cbb998324a6953b0c32cd05
[ "MIT" ]
10
2020-10-03T06:31:41.000Z
2020-12-28T18:54:40.000Z
class Stack: def __init__(self): self.stack = [] def add(self, dataval): # Use list append method to add element if dataval not in self.stack: self.stack.append(dataval) return True else: return False # Use peek to look at the top of the stack d...
22.875
42
0.57377
366
1
0
0
0
0
0
0
81
0.221311
b27e012ad9d98a21878536e044d958f15626c65e
4,354
py
Python
c1_tools/c1_Preferences.py
jacobmartinez3d/c1_tools
e317d52e91a375c6ac1b6914a74787056118484e
[ "MIT" ]
null
null
null
c1_tools/c1_Preferences.py
jacobmartinez3d/c1_tools
e317d52e91a375c6ac1b6914a74787056118484e
[ "MIT" ]
null
null
null
c1_tools/c1_Preferences.py
jacobmartinez3d/c1_tools
e317d52e91a375c6ac1b6914a74787056118484e
[ "MIT" ]
null
null
null
# preferences panel to allow inputting cutom parameters for the structure of a project and its # naming conventions. # -------------------------------------------------------------------------------------------------- import hashlib import nuke from nukescripts.panels import PythonPanel import fileinput import os impor...
37.213675
120
0.579927
4,010
0.920992
0
0
0
0
0
0
1,123
0.257924
b27e60d49c438918ac9f9898312b3fc091fc3cf6
35,738
py
Python
src/proto/runtime_pb2_grpc.py
layotto/python-sdk
dac5833ebbfe16d6e5b6322041ca65431096f14b
[ "Apache-2.0" ]
null
null
null
src/proto/runtime_pb2_grpc.py
layotto/python-sdk
dac5833ebbfe16d6e5b6322041ca65431096f14b
[ "Apache-2.0" ]
1
2022-02-23T14:37:01.000Z
2022-02-23T14:37:01.000Z
src/proto/runtime_pb2_grpc.py
layotto/python-sdk
dac5833ebbfe16d6e5b6322041ca65431096f14b
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 import runtime_pb2 as runtime__pb2 class RuntimeStub(object): """Missing associ...
45.352792
129
0.651603
28,470
0.796631
0
0
14,716
0.411775
0
0
5,401
0.151128
b27fdc318377fdd21756f01199453a4713d91df6
1,794
py
Python
forecast_box/validate.py
kyleclo/forecast-box
5b965f0c7f45c92e800c31df1c7a12a6d08527b1
[ "Apache-2.0" ]
1
2017-02-08T19:34:35.000Z
2017-02-08T19:34:35.000Z
forecast_box/validate.py
kyleclo/forecast-box
5b965f0c7f45c92e800c31df1c7a12a6d08527b1
[ "Apache-2.0" ]
null
null
null
forecast_box/validate.py
kyleclo/forecast-box
5b965f0c7f45c92e800c31df1c7a12a6d08527b1
[ "Apache-2.0" ]
null
null
null
""" Validation """ import numpy as np import pandas as pd from model import Model # TODO: different versions with resampling or subsampling # TODO: return DataFrame of forecasted_values along with metric? def validate_model(name, params, time_series, metric_fun): """Evaluates performance of Model forecast met...
36.612245
79
0.696767
0
0
0
0
0
0
0
0
1,026
0.571906
b280b873fa11a9c22244c5a88ce9b4b92bf52fa9
338
py
Python
config/api_router.py
summerthe/django_api_starter
8f6c83fccc3a138a636850f7d23d9aac72e06f8f
[ "MIT" ]
null
null
null
config/api_router.py
summerthe/django_api_starter
8f6c83fccc3a138a636850f7d23d9aac72e06f8f
[ "MIT" ]
null
null
null
config/api_router.py
summerthe/django_api_starter
8f6c83fccc3a138a636850f7d23d9aac72e06f8f
[ "MIT" ]
null
null
null
from django.conf import settings from django.urls.conf import include, path from rest_framework.routers import DefaultRouter, SimpleRouter if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() app_name = "api" urlpatterns = [ path("", include("summers_api.users.api.urls")), ] urlpatter...
22.533333
62
0.745562
0
0
0
0
0
0
0
0
35
0.10355
b28150bc596dbcfe86da754ccfece409615ba261
339
py
Python
backstack/__init__.py
pixlie/platform
10782e9ddfb1dc2311e22987a16e9e77f3d71d34
[ "MIT" ]
2
2019-06-06T11:21:35.000Z
2021-12-19T12:17:02.000Z
backstack/__init__.py
pixlie/backstack
10782e9ddfb1dc2311e22987a16e9e77f3d71d34
[ "MIT" ]
null
null
null
backstack/__init__.py
pixlie/backstack
10782e9ddfb1dc2311e22987a16e9e77f3d71d34
[ "MIT" ]
null
null
null
from .models import SystemModel, BaseModel from .errors import ServerError, Errors from .config import settings from .db import db, Base from .commands import Commands name = "platform" __all__ = [ "name", "SystemModel", "BaseModel", "ServerError", "Errors", "settings", "db", "Base",...
15.409091
42
0.646018
0
0
0
0
0
0
0
0
91
0.268437
b282134e67aa67a11713d58542eb8a80ec036fb7
1,571
py
Python
samples/archive/stream/stream.py
zzzDavid/heterocl
977aae575d54a30c5bf6d869e8f71bdc815cf7e9
[ "Apache-2.0" ]
236
2019-05-19T01:48:11.000Z
2022-03-31T09:03:54.000Z
samples/archive/stream/stream.py
zzzDavid/heterocl
977aae575d54a30c5bf6d869e8f71bdc815cf7e9
[ "Apache-2.0" ]
248
2019-05-17T19:18:36.000Z
2022-03-30T21:25:47.000Z
samples/archive/stream/stream.py
AlgaPeng/heterocl-2
b5197907d1fe07485466a63671a2a906a861c939
[ "Apache-2.0" ]
85
2019-05-17T20:09:27.000Z
2022-02-28T20:19:00.000Z
import heterocl as hcl hcl.init() target = hcl.Platform.xilinx_zc706 initiation_interval = 4 a = hcl.placeholder((10, 20), name="a") b = hcl.placeholder((10, 20), name="b") c = hcl.placeholder((10, 20), name="c") d = hcl.placeholder((10, 20), name="d") e = hcl.placeholder((10, 20), name="e") def add_mul(a, b, c, d,...
26.627119
64
0.589433
0
0
0
0
461
0.293444
0
0
480
0.305538
b282a97791327fc19ad1bc909b5a0f67419da315
653
py
Python
setup.py
eminaktas/k8s-workload-scaler
388ebd9c472911c5dd783610d12ae314c1e4adad
[ "MIT" ]
3
2021-06-11T08:33:19.000Z
2022-03-01T23:32:35.000Z
setup.py
eminaktas/k8s-workload-scaler
388ebd9c472911c5dd783610d12ae314c1e4adad
[ "MIT" ]
null
null
null
setup.py
eminaktas/k8s-workload-scaler
388ebd9c472911c5dd783610d12ae314c1e4adad
[ "MIT" ]
null
null
null
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as readme_file: README = readme_file.read() setup( name='k8s-workload-scaler', version='0.0.2', packages=['k8s_workload_scaler'], url='github.com/eminaktas/k8s-workl...
25.115385
58
0.653905
0
0
0
0
0
0
0
0
258
0.3951
b282c19b3cffcee686bcd47d1c51d22a934c3e90
329
py
Python
results/kata_result.py
tamasmagyar/egyeni_vallalkozo_kalkulator
5f892e9c14d073e6abcde174562406d439236d11
[ "MIT" ]
null
null
null
results/kata_result.py
tamasmagyar/egyeni_vallalkozo_kalkulator
5f892e9c14d073e6abcde174562406d439236d11
[ "MIT" ]
null
null
null
results/kata_result.py
tamasmagyar/egyeni_vallalkozo_kalkulator
5f892e9c14d073e6abcde174562406d439236d11
[ "MIT" ]
null
null
null
class KataResult: def __init__(self, revenue, ipa, cost_of_kata, net_income, cost_of_goods, kata_penalty): self.revenue = revenue self.ipa = ipa self.cost_of_kata = cost_of_kata self.net_income = net_income self.cost_of_goods = cost_of_goods self.kata_penalty = kata...
29.909091
92
0.683891
327
0.993921
0
0
0
0
0
0
0
0
b2839dcc8ba1e2c6405ad07dce2a45037d7c2944
13,561
py
Python
ros/dynamic_reconfigure/src/dynamic_reconfigure/client.py
numberen/apollo-platform
8f359c8d00dd4a98f56ec2276c5663cb6c100e47
[ "Apache-2.0" ]
2
2018-12-11T16:35:20.000Z
2019-01-23T16:42:17.000Z
opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/client.py
Roboy/roboy_managing_node_fpga
64ffe5aec2f2c98a051bb1a881849c195b8d052c
[ "BSD-3-Clause" ]
1
2018-12-28T21:11:50.000Z
2018-12-28T21:11:50.000Z
opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/client.py
Roboy/roboy_managing_node_fpga
64ffe5aec2f2c98a051bb1a881849c195b8d052c
[ "BSD-3-Clause" ]
3
2018-01-29T12:22:56.000Z
2020-12-08T09:08:46.000Z
# Software License Agreement (BSD License) # # Copyright (c) 2009, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
39.080692
138
0.594794
11,155
0.822579
0
0
0
0
0
0
4,227
0.311703
b2842a9629f4ea0e56df84c21b6edd075792d02d
7,803
py
Python
l0bnb/relaxation/core.py
jonathan-taylor/l0bnb
0c2beef67b92861ec51bc3514d485eabad43c611
[ "MIT" ]
25
2020-04-14T00:32:04.000Z
2022-03-23T11:49:06.000Z
l0bnb/relaxation/core.py
jonathan-taylor/l0bnb
0c2beef67b92861ec51bc3514d485eabad43c611
[ "MIT" ]
1
2021-10-12T16:37:04.000Z
2021-10-12T16:37:04.000Z
l0bnb/relaxation/core.py
jonathan-taylor/l0bnb
0c2beef67b92861ec51bc3514d485eabad43c611
[ "MIT" ]
9
2020-05-14T04:15:44.000Z
2022-03-04T14:58:25.000Z
import copy from time import time from collections import namedtuple import numpy as np from numba.typed import List from numba import njit from ._coordinate_descent import cd_loop, cd from ._cost import get_primal_cost, get_dual_cost from ._utils import get_ratio_threshold, get_active_components from . import GS_FLA...
39.015
79
0.60387
0
0
0
0
1,532
0.196335
0
0
438
0.056132
b2842ba57b4666045fc4763a33435c2f652b5394
5,668
py
Python
uroboros-diversification/src/diversification/bb_branchfunc_diversify.py
whj0401/RLOBF
2755eb5e21e4f2445a7791a1159962e80a5739ca
[ "MIT" ]
3
2020-12-11T06:15:17.000Z
2021-04-24T07:09:03.000Z
uroboros-diversification/src/diversification/bb_branchfunc_diversify.py
whj0401/RLOBF
2755eb5e21e4f2445a7791a1159962e80a5739ca
[ "MIT" ]
null
null
null
uroboros-diversification/src/diversification/bb_branchfunc_diversify.py
whj0401/RLOBF
2755eb5e21e4f2445a7791a1159962e80a5739ca
[ "MIT" ]
2
2021-03-10T17:46:33.000Z
2021-03-31T08:00:27.000Z
from analysis.visit import * from disasm.Types import * from utils.ail_utils import * from utils.pp_print import * from junkcodes import get_junk_codes obfs_proportion = 0.015 class bb_branchfunc_diversify(ailVisitor): def __init__(self, funcs, fb_tbl, cfg_tbl): ailVisitor.__init__(self) self.fu...
46.459016
128
0.534227
5,488
0.968243
0
0
0
0
0
0
1,014
0.178899