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
3d882ff63717c3ebe69686e1a7f5816476238d74
3,665
py
Python
Ecommerce/views.py
aryanshridhar/Ecommerce-Website
c582659e9b530555b9715ede7bb774c39f101c7e
[ "MIT" ]
1
2020-06-01T16:41:33.000Z
2020-06-01T16:41:33.000Z
Ecommerce/views.py
aryanshridhar/Ecommerce-Website
c582659e9b530555b9715ede7bb774c39f101c7e
[ "MIT" ]
4
2020-03-17T03:37:23.000Z
2021-09-22T18:36:18.000Z
Ecommerce/views.py
aryanshridhar/Ecommerce-Website
c582659e9b530555b9715ede7bb774c39f101c7e
[ "MIT" ]
null
null
null
from django.shortcuts import render , redirect from django.contrib import messages from django.http import HttpResponse from .models import Product , Review , Cart from .forms import ReviewForm from django.contrib.auth.decorators import login_required def homepage(request): products = list(Product.objects.all())...
54.701493
225
0.688404
c37da082453be34af47d687e915e25ba787272d1
4,003
py
Python
alipay/aop/api/request/ZhimaCustomerEpIdentificationQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/ZhimaCustomerEpIdentificationQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/ZhimaCustomerEpIdentificationQueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ZhimaCustomerEpIdentificationQueryModel import ZhimaCustomerEpIdentificationQueryModel class ZhimaCustomerEpIdentificationQueryReque...
27.606897
148
0.647514
b508a18e28a3c46ec15030a3fc5702886ab1a004
6,113
py
Python
notebooks/test/preprocessing/neural_networks.py
Yu-Group/adaptive-wavelets
e67f726e741d83c94c3aee3ed97a772db4ce0bb3
[ "MIT" ]
22
2021-02-13T05:22:13.000Z
2022-03-07T09:55:55.000Z
notebooks/test/preprocessing/neural_networks.py
Yu-Group/adaptive-wavelets
e67f726e741d83c94c3aee3ed97a772db4ce0bb3
[ "MIT" ]
null
null
null
notebooks/test/preprocessing/neural_networks.py
Yu-Group/adaptive-wavelets
e67f726e741d83c94c3aee3ed97a772db4ce0bb3
[ "MIT" ]
5
2021-12-11T13:43:19.000Z
2022-03-19T07:07:37.000Z
import torch from torch import nn, optim from torch.nn import functional as F import numpy as np from tqdm import tqdm import torch.utils.data as data_utils from features import downsample import pickle as pkl import models class neural_net_sklearn(): """ sklearn wrapper for training a neural net "...
37.503067
139
0.515786
d3073477b3fd056b1a524ccc950c681675170f7a
1,360
py
Python
migrations/versions/4965ed66d657_initial_migration.py
danielmuthama/P_Blog
0712678328d5270e266fef530462630a57c546cd
[ "MIT" ]
1
2022-03-24T06:47:07.000Z
2022-03-24T06:47:07.000Z
migrations/versions/4965ed66d657_initial_migration.py
danielmuthama/P_Blog
0712678328d5270e266fef530462630a57c546cd
[ "MIT" ]
null
null
null
migrations/versions/4965ed66d657_initial_migration.py
danielmuthama/P_Blog
0712678328d5270e266fef530462630a57c546cd
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: 4965ed66d657 Revises: ee5a4f1305d0 Create Date: 2021-09-27 12:37:39.345275 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4965ed66d657' down_revision = 'ee5a4f1305d0' branch_labels = None depends_on = None def upgrade(): ...
29.565217
65
0.666912
4bc02ca7ee4055a6a928ea77a9e7c56d2e8fd8df
4,452
py
Python
Blind_SQLi_demo.py
KirinFuji/PentestSnips
a4e6818673f4629ccf6842617f123c63956206f0
[ "MIT" ]
null
null
null
Blind_SQLi_demo.py
KirinFuji/PentestSnips
a4e6818673f4629ccf6842617f123c63956206f0
[ "MIT" ]
null
null
null
Blind_SQLi_demo.py
KirinFuji/PentestSnips
a4e6818673f4629ccf6842617f123c63956206f0
[ "MIT" ]
null
null
null
# Written by github.com/KirinFuji """ MIT License Copyright (c) 2021 KirinFuji@users.noreply.github.com 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 lim...
36.195122
112
0.655436
e0f53805ab2f5ea01cd2f18208750b866d690319
15,976
py
Python
bot/logic/unit_manager/unit_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
bot/logic/unit_manager/unit_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
bot/logic/unit_manager/unit_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
import math import random from collections import defaultdict from math import sqrt from typing import Union import bot.injector as injector from bot.logic.army_strategy_manager.army_strategy_manager_interface import \ ArmyStrategyManagerInterface from bot.logic.overlord_manager import OverlordManager from bot.log...
51.535484
250
0.668315
7a3d2044ddefd34afd795b0677e11a5e03eaca2a
13,963
py
Python
tests/ens/conftest.py
nathonNot/web3.py
5cf1fb7b84b590baa9b98a79d04e67b1554349a5
[ "MIT" ]
null
null
null
tests/ens/conftest.py
nathonNot/web3.py
5cf1fb7b84b590baa9b98a79d04e67b1554349a5
[ "MIT" ]
null
null
null
tests/ens/conftest.py
nathonNot/web3.py
5cf1fb7b84b590baa9b98a79d04e67b1554349a5
[ "MIT" ]
null
null
null
import json import pytest from eth_tester import ( EthereumTester, ) from ens import ENS from ens.contract_data import ( registrar_abi, registrar_bytecode, registrar_bytecode_runtime, resolver_abi, resolver_bytecode, resolver_bytecode_runtime, reverse_registrar_abi, reverse_regist...
60.708696
2,792
0.80477
fb674597ad56189ac37eef75a7188f2742d97a7a
7,425
py
Python
src/lib/python/image/alibaba_client.py
memes/f5-bigip-image-generator
9684d185db3990fc966554c0611fe6369174303b
[ "Apache-2.0" ]
34
2019-08-21T01:28:27.000Z
2021-10-05T07:21:58.000Z
src/lib/python/image/alibaba_client.py
memes/f5-bigip-image-generator
9684d185db3990fc966554c0611fe6369174303b
[ "Apache-2.0" ]
34
2019-09-13T10:17:31.000Z
2022-03-09T00:01:00.000Z
src/lib/python/image/alibaba_client.py
memes/f5-bigip-image-generator
9684d185db3990fc966554c0611fe6369174303b
[ "Apache-2.0" ]
16
2019-08-21T20:06:17.000Z
2022-03-25T11:59:00.000Z
"""Alibaba client module""" # Copyright (C) 2019-2021 F5 Networks, 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 ap...
43.676471
98
0.673535
7a935222c69ac2494c1d534c23a37a47c35ae88d
15,969
py
Python
discretize/curvilinear_mesh.py
ckohnke/discretize
f414dd7ee7c5ba9a141cb2c37d4b71fdc531eae8
[ "MIT" ]
null
null
null
discretize/curvilinear_mesh.py
ckohnke/discretize
f414dd7ee7c5ba9a141cb2c37d4b71fdc531eae8
[ "MIT" ]
null
null
null
discretize/curvilinear_mesh.py
ckohnke/discretize
f414dd7ee7c5ba9a141cb2c37d4b71fdc531eae8
[ "MIT" ]
null
null
null
import numpy as np import properties from discretize.utils import mkvc, index_cube, face_info, volume_tetrahedron from discretize.base import BaseRectangularMesh from discretize.operators import DiffOperators, InnerProducts from discretize.utils.code_utils import deprecate_property # Some helper functions. def _leng...
35.804933
105
0.450686
aaaf433fe278a9910cd1bad3df2a801d2f72ee30
13,830
py
Python
Archive (old files)/pypress(alpha)-20151205.py
avisma/pypress
07f9d0db175f773453c383ef95401f7ee5623cc9
[ "MIT" ]
null
null
null
Archive (old files)/pypress(alpha)-20151205.py
avisma/pypress
07f9d0db175f773453c383ef95401f7ee5623cc9
[ "MIT" ]
null
null
null
Archive (old files)/pypress(alpha)-20151205.py
avisma/pypress
07f9d0db175f773453c383ef95401f7ee5623cc9
[ "MIT" ]
null
null
null
# pypress.py # Designed by Ben Underwood and Justin Kim # A version of Letterpress for Python # Original game designed and published by atebits from graphics import * import string import random import lib_button as button def setAllActive(ButtonList): for i in ButtonList: i.activate() def turnSwitch(...
13,830
13,830
0.464208
feb98ce1b41e302847a5e10389f9d6d3e747abad
1,822
py
Python
python_koans/python3/koans/about_dice_project.py
kipel/koans
752ce65a99c27a0e766276039bf48b4a5e98e62a
[ "MIT" ]
null
null
null
python_koans/python3/koans/about_dice_project.py
kipel/koans
752ce65a99c27a0e766276039bf48b4a5e98e62a
[ "MIT" ]
null
null
null
python_koans/python3/koans/about_dice_project.py
kipel/koans
752ce65a99c27a0e766276039bf48b4a5e98e62a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * import random class DiceSet: def __init__(self): self._values = None @property def values(self): return self._values def roll(self, n): from random import randint self._values = [randint(1, 6) fo...
27.19403
106
0.629528
c4a3dfabddf483ac731b96b800cddbc7386067bf
60
py
Python
Tutorial/Python Bootcamp/Src/Day #17/game.py
lzzzam/Python_Scripts
f35c1acef13642e444b50d21dc94d9de2ce5d322
[ "MIT" ]
null
null
null
Tutorial/Python Bootcamp/Src/Day #17/game.py
lzzzam/Python_Scripts
f35c1acef13642e444b50d21dc94d9de2ce5d322
[ "MIT" ]
null
null
null
Tutorial/Python Bootcamp/Src/Day #17/game.py
lzzzam/Python_Scripts
f35c1acef13642e444b50d21dc94d9de2ce5d322
[ "MIT" ]
null
null
null
import quiz game = quiz.game(quiz.questionTable) game.run()
15
36
0.766667
9103716f240ebb685edfea1d7dd588c839f6b9f0
1,712
py
Python
examples/plot_trajectory.py
rock-learning/approxik
877d50d4d045457593a2fafefd267339a11de20f
[ "BSD-3-Clause" ]
1
2020-03-27T01:53:57.000Z
2020-03-27T01:53:57.000Z
examples/plot_trajectory.py
rock-learning/approxik
877d50d4d045457593a2fafefd267339a11de20f
[ "BSD-3-Clause" ]
null
null
null
examples/plot_trajectory.py
rock-learning/approxik
877d50d4d045457593a2fafefd267339a11de20f
[ "BSD-3-Clause" ]
1
2020-12-18T02:09:21.000Z
2020-12-18T02:09:21.000Z
import sys import pytransform.rotations as pyrot from visualization import * from utils import parse_args from convert import trajectory_ik, trajectory_fk, timing_report, reaching_report from approxik import ApproxInvKin, ExactInvKin def print_usage(): print("Usage: <script> <filename> [<base_link> <endeffector_l...
30.035088
80
0.663551
8ea8db2352a0314c9858182ef4ae7682d7b0b322
847
py
Python
kadro/tests/test_composability.py
koaning/kadro
cbf993e5142d1ade26ac5922d7d15784d56b3db6
[ "MIT" ]
13
2017-03-01T15:19:43.000Z
2021-09-23T21:02:27.000Z
kadro/tests/test_composability.py
koaning/kadro
cbf993e5142d1ade26ac5922d7d15784d56b3db6
[ "MIT" ]
9
2017-02-03T10:13:22.000Z
2018-05-28T21:26:10.000Z
kadro/tests/test_composability.py
koaning/kadro
cbf993e5142d1ade26ac5922d7d15784d56b3db6
[ "MIT" ]
3
2018-03-20T03:41:28.000Z
2020-07-03T06:00:16.000Z
import unittest import numpy as np import pandas as pd import kadro as kd np.random.seed(42) n = 20 df = pd.DataFrame({ 'a': np.random.randn(n), 'b': np.random.randn(n), 'c': ['foo' if x > 0.5 else 'bar' for x in np.random.rand(n)], 'd': ['fizz' if x > 0.6 else 'bo' for x in np.random.rand(n)] }) df = ...
27.322581
66
0.566706
2d803caf4c2e033c8297442743477ec654ed993f
11,750
py
Python
Assets/Python/BUG/UnitGrouper.py
Imperator-Knoedel/Sunset
19c95f4844586b96341f3474b58e0dacaae485b9
[ "MIT" ]
1
2019-08-05T18:36:14.000Z
2019-08-05T18:36:14.000Z
Assets/Python/BUG/UnitGrouper.py
Imperator-Knoedel/Sunset
19c95f4844586b96341f3474b58e0dacaae485b9
[ "MIT" ]
null
null
null
Assets/Python/BUG/UnitGrouper.py
Imperator-Knoedel/Sunset
19c95f4844586b96341f3474b58e0dacaae485b9
[ "MIT" ]
null
null
null
## UnitGrouper ## ## Builds groups of units for use in reporting or screens. ## ## Copyright (c) 2008 The BUG Mod. ## ## Author: EmperorFool from CvPythonExtensions import * import BugUtil import UnitUtil from Consts import * from RFCUtils import utils # BUG - Mac Support - start BugUtil.fixSets(globals()) # BUG - Ma...
29.822335
125
0.743574
69a5ae3999413d7872c2555766cda7fb0cfbd396
3,480
py
Python
biotracks/createdp.py
sbesson/biotracks
1adc6f954e2a29fcc250c45e7b463752d06dd5ab
[ "BSD-2-Clause" ]
10
2017-05-24T07:41:04.000Z
2019-10-28T14:32:01.000Z
biotracks/createdp.py
pcmasuzzo/dpkg
5c7d067232f10c786c85b96b18cc56dd7d6d019f
[ "BSD-2-Clause" ]
40
2017-05-02T16:30:42.000Z
2020-04-30T13:19:35.000Z
biotracks/createdp.py
pcmasuzzo/dpkg
5c7d067232f10c786c85b96b18cc56dd7d6d019f
[ "BSD-2-Clause" ]
6
2017-06-19T13:55:28.000Z
2018-09-18T09:03:45.000Z
# #%L # Copyright (c) 2016-2017 Cell Migration Standardisation Organization # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of co...
35.876289
78
0.682471
c834796649da4ccb7176af438c1217c012994d6f
902
py
Python
isi_sdk_8_0_1/test/test_antivirus_server.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/test/test_antivirus_server.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/test/test_antivirus_server.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_0_1 from i...
22
87
0.7051
2b42959576884c0c390ecf9837aeae4f42e29e4f
18,759
py
Python
bin/start-impala-cluster.py
im0nk3y/Impala
f40f81639d0121925b71a1cbb85e1c9c51230058
[ "Apache-2.0" ]
null
null
null
bin/start-impala-cluster.py
im0nk3y/Impala
f40f81639d0121925b71a1cbb85e1c9c51230058
[ "Apache-2.0" ]
null
null
null
bin/start-impala-cluster.py
im0nk3y/Impala
f40f81639d0121925b71a1cbb85e1c9c51230058
[ "Apache-2.0" ]
1
2018-08-22T15:33:23.000Z
2018-08-22T15:33:23.000Z
#!/usr/bin/env impala-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 (...
45.642336
93
0.712298
dccf2e0af1754ed81394a72acb053a98eb4ead3b
437
py
Python
data/scripts/templates/object/tangible/lair/murra/shared_lair_murra.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/lair/murra/shared_lair_murra.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/lair/murra/shared_lair_murra.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/lair/murra/shared_lair_murra.iff" result.attribute_template_id = -1...
25.705882
69
0.718535
c5cc5495d894deffd11e576f414b0c3d09eac59b
64
py
Python
epytodo_2017/lib/python3.6/copy.py
ltabis/epitech-projects
e38b3f00a4ac44c969d5e4880cd65084dc2c870a
[ "MIT" ]
null
null
null
epytodo_2017/lib/python3.6/copy.py
ltabis/epitech-projects
e38b3f00a4ac44c969d5e4880cd65084dc2c870a
[ "MIT" ]
null
null
null
epytodo_2017/lib/python3.6/copy.py
ltabis/epitech-projects
e38b3f00a4ac44c969d5e4880cd65084dc2c870a
[ "MIT" ]
1
2021-01-07T17:41:14.000Z
2021-01-07T17:41:14.000Z
IntxLNK/usr/lib64/python3.6/copy.py
64
64
0.453125
f59218e14f693924b645493166ea31bff2cd6bca
13,299
py
Python
nipy/algorithms/clustering/von_mises_fisher_mixture.py
neurospin/nipy
cc54600a0dca1e003ad393bc05c46f91eef30a68
[ "BSD-3-Clause" ]
1
2016-03-08T15:01:06.000Z
2016-03-08T15:01:06.000Z
nipy/algorithms/clustering/von_mises_fisher_mixture.py
neurospin/nipy
cc54600a0dca1e003ad393bc05c46f91eef30a68
[ "BSD-3-Clause" ]
null
null
null
nipy/algorithms/clustering/von_mises_fisher_mixture.py
neurospin/nipy
cc54600a0dca1e003ad393bc05c46f91eef30a68
[ "BSD-3-Clause" ]
null
null
null
""" Implementation of Von-Mises-Fisher Mixture models, i.e. the equaivalent of mixture of Gaussian on the sphere. Author: Bertrand Thirion, 2010-2011 """ import numpy as np class VonMisesMixture(object): """ Model for Von Mises mixture distribution with fixed variance on a two-dimensional sphere """ ...
30.432494
76
0.501466
dbfb4cf457e5004a491a3c5ca35f5144c053495e
5,777
py
Python
code/torch/models/ap_glue/__main__hyperopt.py
siduojiang/BERTVision
9d0d4856300973488ead67e2d06e243bf07447ad
[ "MIT" ]
5
2020-08-06T10:12:08.000Z
2022-03-17T10:38:40.000Z
code/torch/models/ap_glue/__main__hyperopt.py
siduojiang/BERTVision
9d0d4856300973488ead67e2d06e243bf07447ad
[ "MIT" ]
9
2020-06-23T16:57:52.000Z
2021-01-17T01:52:45.000Z
code/torch/models/ap_glue/__main__hyperopt.py
cbenge509/BERTVision
01519bea0882fa72e86a1b62f2d0d52d22c26dfc
[ "MIT" ]
null
null
null
# packages import sys, os, random sys.path.append("C:/BERTVision/code/torch") from data.h5_processors.h5_processors import * from utils.compress_utils import AdapterPooler, AP_GLUE from common.trainers.H5_glue_trainer import H5_GLUE_Trainer from models.ap_glue.args import get_args import numpy as np import torch import...
37.75817
197
0.634759
24faba8878e69e1ebd8cbacabcc9566295c6dcab
2,769
py
Python
mmcv/ops/__init__.py
liuyanyi/mmcv
f021af6000a52ad3108873f124d89dad93512863
[ "Apache-2.0" ]
null
null
null
mmcv/ops/__init__.py
liuyanyi/mmcv
f021af6000a52ad3108873f124d89dad93512863
[ "Apache-2.0" ]
null
null
null
mmcv/ops/__init__.py
liuyanyi/mmcv
f021af6000a52ad3108873f124d89dad93512863
[ "Apache-2.0" ]
null
null
null
from .bbox import bbox_overlaps from .box_iou_rotated import box_iou_rotated from .carafe import CARAFE, CARAFENaive, CARAFEPack, carafe, carafe_naive from .cc_attention import CrissCrossAttention from .corner_pool import CornerPool from .deform_conv import DeformConv2d, DeformConv2dPack, deform_conv2d from .deform_roi...
54.294118
79
0.763814
66fadaab0951d411432e75b7096de1d7cb006fa0
6,526
py
Python
polog/handlers/file/base_formatter.py
pomponchik/polog
104c5068a65b0eaeab59327aac1a583e2606e77e
[ "MIT" ]
30
2020-07-16T16:52:46.000Z
2022-03-24T16:56:29.000Z
polog/handlers/file/base_formatter.py
pomponchik/polog
104c5068a65b0eaeab59327aac1a583e2606e77e
[ "MIT" ]
6
2021-02-07T22:08:01.000Z
2021-12-07T21:56:46.000Z
polog/handlers/file/base_formatter.py
pomponchik/polog
104c5068a65b0eaeab59327aac1a583e2606e77e
[ "MIT" ]
4
2020-12-22T07:05:34.000Z
2022-03-24T16:56:50.000Z
from polog.core.stores.levels import Levels from polog.handlers.file.base_formatter_fields_extractors import BaseFormatterFieldsExtractors class BaseFormatter: """ Здесь происходит преобразование исходных данных в строку, которая будет записана в файл. """ # Названия полей исходного словаря с данными...
41.833333
316
0.646184
7a944e38333ac85d32ef53e74b9bb1188da86627
10,589
py
Python
dltk/io/augmentation.py
UncleStotheh/DLTK
e1591629d45459c0739ad89aea8cd5484221df7a
[ "Apache-2.0" ]
1,397
2017-05-02T15:41:18.000Z
2022-03-26T20:40:09.000Z
dltk/io/augmentation.py
UncleStotheh/DLTK
e1591629d45459c0739ad89aea8cd5484221df7a
[ "Apache-2.0" ]
50
2017-06-13T15:43:04.000Z
2022-02-09T23:26:31.000Z
dltk/io/augmentation.py
UncleStotheh/DLTK
e1591629d45459c0739ad89aea8cd5484221df7a
[ "Apache-2.0" ]
436
2017-06-12T20:56:02.000Z
2022-03-09T15:00:43.000Z
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import import numpy as np from scipy.ndimage.interpolation import map_coordinates from scipy.ndimage.filters import gaussian_filter def flip(imagelist, axis=1): """Randoml...
36.89547
123
0.615167
340f0c88d7b5d26db2a6fd1f8411a98f923e5dfe
12,813
py
Python
pysnmp/H3C-VOSIP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/H3C-VOSIP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/H3C-VOSIP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module H3C-VOSIP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-VOSIP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:11:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
124.398058
1,827
0.758448
3bffeafde604e3613f7ea1cfd8b0257afddeae33
1,092
py
Python
reinforcement_learning/dqn/output_path.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
228
2017-11-20T06:05:56.000Z
2022-03-23T12:40:05.000Z
reinforcement_learning/dqn/output_path.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
36
2018-01-11T23:26:20.000Z
2022-03-12T00:53:38.000Z
reinforcement_learning/dqn/output_path.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
76
2017-11-22T22:00:00.000Z
2022-03-28T05:58:57.000Z
# Copyright 2019,2020,2021 Sony Corporation. # Copyright 2021 Sony Group 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 # # Un...
29.513514
74
0.728022
b27588331abbe7e533168e14108529e9a2864cb8
2,314
py
Python
CS-190/Homework/HW10.py
lividsubset3/College-CS
6f1eb6b10e43a37654335331758677c797034961
[ "MIT" ]
null
null
null
CS-190/Homework/HW10.py
lividsubset3/College-CS
6f1eb6b10e43a37654335331758677c797034961
[ "MIT" ]
null
null
null
CS-190/Homework/HW10.py
lividsubset3/College-CS
6f1eb6b10e43a37654335331758677c797034961
[ "MIT" ]
null
null
null
from tkinter import * root = Tk() root.title('Homework 10') canvas = Canvas(root, width=400, height=400) canvas.pack() def circle(x, y, radius, color): canvas.create_oval(x, y, x + radius, y + radius, fill=color, outline=color) def rectangle(x, y, width, height, color): canvas.create_rectangle(x, y, x + wi...
33.057143
106
0.386776
d2050b106573523514b5e814277d3e77d1466622
12,740
py
Python
connexion/apis/flask_api.py
engsas/connexion
abb43a42fb62ef56cb1e0f06c2167cca2f5b9f96
[ "Apache-2.0" ]
1
2020-04-07T05:26:37.000Z
2020-04-07T05:26:37.000Z
connexion/apis/flask_api.py
engsas/connexion
abb43a42fb62ef56cb1e0f06c2167cca2f5b9f96
[ "Apache-2.0" ]
3
2021-08-30T16:30:50.000Z
2022-03-01T23:15:44.000Z
connexion/apis/flask_api.py
engsas/connexion
abb43a42fb62ef56cb1e0f06c2167cca2f5b9f96
[ "Apache-2.0" ]
3
2018-06-26T22:54:02.000Z
2019-04-03T20:54:17.000Z
import logging import warnings import flask import werkzeug.exceptions from connexion.apis import flask_utils from connexion.apis.abstract import AbstractAPI from connexion.handlers import AuthErrorHandler from connexion.jsonifier import Jsonifier from connexion.lifecycle import ConnexionRequest, ConnexionResponse fro...
40.96463
166
0.642465
398e2a0343f16513abe3f17b2afc3f7f850931a5
30,839
py
Python
holoviews/plotting/bokeh/util.py
archiba/holoviews
8fe3ac1507793e51e2f9bbc020abb49f19b41b90
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/bokeh/util.py
archiba/holoviews
8fe3ac1507793e51e2f9bbc020abb49f19b41b90
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/bokeh/util.py
archiba/holoviews
8fe3ac1507793e51e2f9bbc020abb49f19b41b90
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, unicode_literals import re import time import sys import calendar import datetime as dt from collections import defaultdict from contextlib import contextmanager import param import bokeh import numpy as np from bokeh.core.json_encoder import serialize_json # noqa (...
34.303671
118
0.608904
26c463caa65b66df689bea6215288b6e4d454215
5,234
py
Python
kisensum/openadr/openadr/vtn/urls.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
null
null
null
kisensum/openadr/openadr/vtn/urls.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
4
2021-03-19T23:36:34.000Z
2021-12-13T19:45:54.000Z
kisensum/openadr/openadr/vtn/urls.py
ChargePoint/volttron-applications
8d99c01a93f7c1ea98d4e4b0cfcefe85fe26320b
[ "BSD-3-Clause" ]
1
2020-05-25T05:03:55.000Z
2020-05-25T05:03:55.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # Copyright (c) 2017, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistri...
54.520833
127
0.748376
884783b3b22e9942259648a09e1d2dbe6ddfb654
210
py
Python
pommerman/agents/random_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
8
2019-06-11T16:08:25.000Z
2020-10-28T09:03:53.000Z
pommerman/agents/random_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2019-06-21T03:57:35.000Z
2019-06-21T03:57:35.000Z
pommerman/agents/random_agent.py
alekseynp/playground
523cc924fe9fd269a8eb3e29c45ace1c5c85b12c
[ "Apache-2.0" ]
1
2018-03-21T15:21:52.000Z
2018-03-21T15:21:52.000Z
from . import BaseAgent class RandomAgent(BaseAgent): """The Random Agent that returns random actions given an action_space.""" def act(self, obs, action_space): return action_space.sample()
23.333333
77
0.714286
2ed9bfa7d05f8c8dc41dd4079a3e9afae6e955a4
507
py
Python
users/migrations/0023_auto_20201125_1018.py
ominicomdevgt/LaChalupa
3e7ea16fa97aa311bd3513dc463c30c37dfb5761
[ "MIT" ]
null
null
null
users/migrations/0023_auto_20201125_1018.py
ominicomdevgt/LaChalupa
3e7ea16fa97aa311bd3513dc463c30c37dfb5761
[ "MIT" ]
null
null
null
users/migrations/0023_auto_20201125_1018.py
ominicomdevgt/LaChalupa
3e7ea16fa97aa311bd3513dc463c30c37dfb5761
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-25 16:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0022_auto_20201123_1624'), ] operations = [ migrations.AlterField( model_name='profile', name='comment', ...
26.684211
171
0.642998
e359f7b9dcabff9ab63d15cd678da2bceedff927
16,026
py
Python
chainercv/functions/psroi_pooling_2d.py
iory/chainercv
ecb1953f78c526dfd38308d68a4094c9f4df3a8d
[ "MIT" ]
1
2018-08-24T02:28:31.000Z
2018-08-24T02:28:31.000Z
chainercv/functions/psroi_pooling_2d.py
iory/chainercv
ecb1953f78c526dfd38308d68a4094c9f4df3a8d
[ "MIT" ]
null
null
null
chainercv/functions/psroi_pooling_2d.py
iory/chainercv
ecb1953f78c526dfd38308d68a4094c9f4df3a8d
[ "MIT" ]
2
2019-12-16T02:20:26.000Z
2022-01-17T02:00:49.000Z
# Modified work: # ------------------------------------------------------------------------ # Copyright (c) 2018 Preferred Networks, Inc. # ------------------------------------------------------------------------ # Original works of CUDA kernel in forward_gpu and forward_gpu: # ----------------------------------------...
43.430894
79
0.556408
7bd33472561f0a566151b379605c302860cc8b96
454
py
Python
02_streamciphers/autocorrelation.py
StoneSwine/IMT4124-cryptology_software
f480ad40a02802d82fdf2a3b35bc2251d5241f89
[ "Unlicense" ]
null
null
null
02_streamciphers/autocorrelation.py
StoneSwine/IMT4124-cryptology_software
f480ad40a02802d82fdf2a3b35bc2251d5241f89
[ "Unlicense" ]
null
null
null
02_streamciphers/autocorrelation.py
StoneSwine/IMT4124-cryptology_software
f480ad40a02802d82fdf2a3b35bc2251d5241f89
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # CHANGEME: S = "110010001111010" T = 15 k = [0, 2, 5, 14] def leftShift(text, n): return text[n:] + text[:n] def diff_letters(a, b): return sum(a[i] != b[i] for i in range(len(a))) print(f"Original: {S}") for i in k: acn = leftShift(S, i) D = diff_letters(S, acn) ...
19.73913
91
0.477974
cabdab716025c06213b6ed0e3d92d8ba546f189d
15,601
py
Python
www/Scripts/pildriver.py
jeirych/myblog
d9452e50ebfbc94275014e60764ce244f9491733
[ "BSD-3-Clause" ]
null
null
null
www/Scripts/pildriver.py
jeirych/myblog
d9452e50ebfbc94275014e60764ce244f9491733
[ "BSD-3-Clause" ]
null
null
null
www/Scripts/pildriver.py
jeirych/myblog
d9452e50ebfbc94275014e60764ce244f9491733
[ "BSD-3-Clause" ]
null
null
null
#!f:\mysite\vmaig_blog\www\scripts\python.exe """PILdriver, an image-processing calculator using PIL. An instance of class PILDriver is essentially a software stack machine (Polish-notation interpreter) for sequencing PIL image transformations. The state of the instance is the interpreter stack. The only method one ...
29.491493
79
0.590411
da52a8d1d66aee9c4c49d8bb7fd443e5570ea6c6
615
py
Python
periodic.py
renuka28/media-sorter
48a7e31d42e71fa0fcca71114724d0c50969abd0
[ "MIT" ]
null
null
null
periodic.py
renuka28/media-sorter
48a7e31d42e71fa0fcca71114724d0c50969abd0
[ "MIT" ]
null
null
null
periodic.py
renuka28/media-sorter
48a7e31d42e71fa0fcca71114724d0c50969abd0
[ "MIT" ]
null
null
null
# Thank you https://gist.github.com/Depado/7925679 import threading # Function wrapper def periodic_task(interval, times = -1): def outer_wrap(function): def wrap(*args, **kwargs): stop = threading.Event() def inner_wrap(): i = 0 while i != times and...
29.285714
54
0.505691
585ee2bdc6bc5d049dd2fbc3b71536efac25ba30
3,369
py
Python
talks/map_filter/umpy_utils.py
KTLAI/UMpy
6b2af3e936699f5559ef648a36121376bf01a403
[ "BSD-3-Clause" ]
null
null
null
talks/map_filter/umpy_utils.py
KTLAI/UMpy
6b2af3e936699f5559ef648a36121376bf01a403
[ "BSD-3-Clause" ]
null
null
null
talks/map_filter/umpy_utils.py
KTLAI/UMpy
6b2af3e936699f5559ef648a36121376bf01a403
[ "BSD-3-Clause" ]
12
2020-06-15T13:35:15.000Z
2021-09-10T00:38:39.000Z
import csv def read_csv(filepath, delimiter=',', encoding='utf-8'): """ Reads a CSV file, parsing row values per the provided delimiter. Returns a list of lists, wherein each nested list represents a single row from the input file. Parameters: filepath (str): The location of the file to read....
33.69
99
0.650045
bdcdff9f5a9cdcc85c1788a6c9d515b0884b470c
849
py
Python
analytics/backends/dummy.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
10
2015-01-25T20:29:55.000Z
2020-12-08T21:35:09.000Z
analytics/backends/dummy.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
3
2018-05-15T06:28:20.000Z
2021-03-30T17:47:45.000Z
analytics/backends/dummy.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
6
2017-07-03T16:28:29.000Z
2020-06-15T19:10:45.000Z
from analytics.backends.base import BaseAnalyticsBackend class Dummy(BaseAnalyticsBackend): def track_count(self, unique_identifier, metric, inc_amt=1, **kwargs): pass def track_metric(self, unique_identifier, metric, date, inc_amt=1, **kwargs): pass def get_metric_by_day(self, unique_ide...
32.653846
94
0.699647
ac47fe2fb325be700b323578c96d53f4a3b04649
32,608
py
Python
sdk/storage/azure-storage-file-share/tests/test_share.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-05-12T23:29:15.000Z
2020-05-12T23:29:15.000Z
sdk/storage/azure-storage-file-share/tests/test_share.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/storage/azure-storage-file-share/tests/test_share.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2020-07-05T21:13:37.000Z
2020-07-05T21:13:37.000Z
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
38.45283
138
0.679281
7abb3e22f902576952adf7712a0f6b66a2b5a84c
15,089
py
Python
stacks/XIAOMATECH/1.0/services/AMBARI_INFRA_SOLR/package/scripts/collection.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
3
2019-08-13T01:44:16.000Z
2019-12-10T04:05:56.000Z
stacks/XIAOMATECH/1.0/services/AMBARI_INFRA_SOLR/package/scripts/collection.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
null
null
null
stacks/XIAOMATECH/1.0/services/AMBARI_INFRA_SOLR/package/scripts/collection.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
7
2019-05-29T17:35:25.000Z
2021-12-04T07:55:10.000Z
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
43.111429
162
0.619325
4a4e29b33d782e1cd998ef1451869c55ac9fcbce
4,539
py
Python
Game_of_Life/board.py
Moomoo-pls/NLP_Game_of_Life
afe6bb6ccd4a83b6ffeccc8ac257872251bd39bb
[ "MIT" ]
null
null
null
Game_of_Life/board.py
Moomoo-pls/NLP_Game_of_Life
afe6bb6ccd4a83b6ffeccc8ac257872251bd39bb
[ "MIT" ]
null
null
null
Game_of_Life/board.py
Moomoo-pls/NLP_Game_of_Life
afe6bb6ccd4a83b6ffeccc8ac257872251bd39bb
[ "MIT" ]
null
null
null
from Game_of_Life.cell import Cell from random import randint class Board: def __init__(self, rows, columns): # The rows and columns will be initialized by the size of the console self.rows = rows self.columns = columns self.allDead = False # initialize a cell object in eve...
35.186047
104
0.564662
a2e1a18fb0392ac84e691b3ab2220a441ecf5347
4,195
py
Python
feature_pu_model_evl.py
CharrierFlorent/BioNER-PU-learning
9a2003d5eeffa1997550199a9dc541cbd074f7e3
[ "Apache-2.0" ]
139
2019-05-27T02:14:39.000Z
2022-03-28T09:26:17.000Z
feature_pu_model_evl.py
marvinstanley/LexiconNER
8814d2e4badc5ec25dff35ea4a3e98372256ac7c
[ "Apache-2.0" ]
12
2019-06-18T08:13:10.000Z
2022-02-09T12:33:17.000Z
feature_pu_model_evl.py
marvinstanley/LexiconNER
8814d2e4badc5ec25dff35ea4a3e98372256ac7c
[ "Apache-2.0" ]
29
2019-05-26T08:47:15.000Z
2020-10-11T09:11:46.000Z
# -*- coding: utf-8 -*- # @Time : 2018/8/7 16:48 # @Author : Xiaoyu Xing # @File : feature_pu_model_evl.py from utils.feature_pu_model_utils import FeaturedDetectionModelUtils from utils.data_utils import DataPrepare import torch import argparse from feature_pu_model import PULSTMCNN, Trainer from sub_model imp...
35.854701
119
0.67652
9af66f013c14bd0ec1c49b79206bc8f4b50daff4
761
py
Python
geo/filters.py
cmc333333/mapusaurus
1d7ccef90d0ed832d52f797cbe68057057cd0177
[ "CC0-1.0" ]
null
null
null
geo/filters.py
cmc333333/mapusaurus
1d7ccef90d0ed832d52f797cbe68057057cd0177
[ "CC0-1.0" ]
55
2018-02-09T04:11:31.000Z
2018-07-04T18:30:29.000Z
geo/filters.py
cmc333333/mapusaurus
1d7ccef90d0ed832d52f797cbe68057057cd0177
[ "CC0-1.0" ]
null
null
null
import django_filters from django.contrib.postgres.search import TrigramSimilarity from geo.models import CoreBasedStatisticalArea, County def filter_to_search_term(queryset, name, value): return queryset\ .annotate(similarity=TrigramSimilarity("name", value))\ .filter(similarity__gte=0.01)\ ...
27.178571
63
0.712221
47852fc2662970b3f8f435ab1355ebabfecea169
3,776
py
Python
interpret_adb.py
CodeBishop/beholder
ca25d961c534c0a8ccc1ce2c9cec11b791ed2976
[ "MIT" ]
null
null
null
interpret_adb.py
CodeBishop/beholder
ca25d961c534c0a8ccc1ce2c9cec11b791ed2976
[ "MIT" ]
null
null
null
interpret_adb.py
CodeBishop/beholder
ca25d961c534c0a8ccc1ce2c9cec11b791ed2976
[ "MIT" ]
null
null
null
import re def interpretProcessInfo(commandOutput, appId): '''Takes in the output of a `ps -wel` and a process name, returns a string describing that process or None if the process was not found''' processDict = interpretProcessInfoIntoDict(commandOutput, appId) if processDict != None: return proces...
48.410256
171
0.645392
29a86c66d2b0477164fa489b3c7f8439735a6ec8
589
py
Python
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
53.545455
94
0.601019
6d754deb817aa614eed207dfb0aea08702501257
946
py
Python
kubernetes/test/test_v1_endpoint_port.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
1
2019-04-14T23:51:35.000Z
2019-04-14T23:51:35.000Z
kubernetes/test/test_v1_endpoint_port.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_endpoint_port.py
redjohn/python
5e512ff564c244c50cab780d821542ed56aa965a
[ "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.14.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
21.022222
105
0.704017
6276e19e31d59a19d2db936e5b7464317ec3e301
1,531
py
Python
Chapter09/server_ckpt.py
PacktPublishing/Deep-Learning-with-PyTorch-Lightning
4eb607200281323383413eaad4fcb7a3feaa7502
[ "MIT" ]
22
2021-08-31T21:59:02.000Z
2022-03-29T21:26:31.000Z
Chapter09/server_ckpt.py
PacktPublishing/-Getting-Started-with-PyTorch-Lightning
4eb607200281323383413eaad4fcb7a3feaa7502
[ "MIT" ]
6
2021-11-20T10:11:30.000Z
2022-03-30T06:45:05.000Z
Chapter09/server_ckpt.py
PacktPublishing/-Getting-Started-with-PyTorch-Lightning
4eb607200281323383413eaad4fcb7a3feaa7502
[ "MIT" ]
17
2021-04-10T16:26:08.000Z
2022-03-17T07:45:52.000Z
# Important Note: # # For your convenience, we have copied the notebook named "Cats and Dogs Classifier.ipynb" from Chapter 2 to the # GitHub folder for this chapter. Only change in the notebook is that the ImageClassifier class is now defined in its own # file named "image_classifier.py"; so we have removed that cell ...
31.244898
121
0.727629
53bbe4dbfa3148c14c08561e4190ff438ecfc006
2,129
py
Python
nfv/nfv-common/nfv_common/timers/_timer.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
null
null
null
nfv/nfv-common/nfv_common/timers/_timer.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
null
null
null
nfv/nfv-common/nfv_common/timers/_timer.py
SidneyAn/nfv
5f0262a5b6ea4be59f977b9c587c483cbe0e373d
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015-2016 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from nfv_common import debug from nfv_common.timers._timestamp import get_monotonic_timestamp_in_ms DLOG = debug.debug_get_logger('nfv_common.timers.timer') class Timer(object): """ Timer """ _id = 1 ...
28.77027
80
0.600282
f05f0a5651b3001a47bbcc7a5be9e6e0e6882b1c
20,240
py
Python
pytype/tests/test_inference.py
yang/pytype-hack
093d69c9a6f6144f0209cdeb8eed6c7e832bbee0
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_inference.py
yang/pytype-hack
093d69c9a6f6144f0209cdeb8eed6c7e832bbee0
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_inference.py
yang/pytype-hack
093d69c9a6f6144f0209cdeb8eed6c7e832bbee0
[ "Apache-2.0" ]
null
null
null
"""Common methods for tests of infer.py.""" import logging import re import sys import textwrap from pytype import convert_structural from pytype import errors from pytype import infer from pytype.pyc import loadmarshal from pytype.pytd import optimize from pytype.pytd import pytd from pytype.pytd import utils as py...
43.15565
80
0.655682
8c0d6a377ec6fa60638528d8ecdd8c638b5410f3
2,223
py
Python
src/gen_drum_kit/main.py
peter-zenk/genDrumkit
a74bae332443db6424be46ebd32b8fffeac14ce1
[ "MIT" ]
7
2020-06-25T15:36:17.000Z
2022-01-09T21:43:27.000Z
src/gen_drum_kit/main.py
peter-zenk/genDrumkit
a74bae332443db6424be46ebd32b8fffeac14ce1
[ "MIT" ]
3
2022-01-09T20:44:52.000Z
2022-02-02T10:43:23.000Z
src/gen_drum_kit/main.py
peter-zenk/genDrumkit
a74bae332443db6424be46ebd32b8fffeac14ce1
[ "MIT" ]
1
2020-08-16T18:17:26.000Z
2020-08-16T18:17:26.000Z
''' Created on Jun 14, 2020 @author: peter ''' import sys import logging from shutil import rmtree from platform import system from gen_drum_kit.parameter import Parameter from gen_drum_kit.factory import ImporterFactory, ExporterFactory logger = logging.getLogger(__name__) class Main(): """ The top leve...
28.139241
79
0.615385
2514b11613ef6f87bf96bb9c3c0957d9d7b13f98
9,066
py
Python
pandas/tests/base/test_value_counts.py
monferrand/pandas
a3477c769b3d2ea4950ae69f8867e3b291b743c1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-06-04T21:46:19.000Z
2020-06-04T21:46:19.000Z
pandas/tests/base/test_value_counts.py
monferrand/pandas
a3477c769b3d2ea4950ae69f8867e3b291b743c1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/base/test_value_counts.py
monferrand/pandas
a3477c769b3d2ea4950ae69f8867e3b291b743c1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import collections from datetime import timedelta from io import StringIO import numpy as np import pytest from pandas._libs.tslib import iNaT from pandas.compat.numpy import np_array_datetime64_compat from pandas.core.dtypes.common import needs_i8_conversion import pandas as pd from pandas import ( DatetimeInd...
32.729242
84
0.637326
54ced15b7ea1cd138adc9c261eff66978dc4891f
337
py
Python
test_project/main/urls.py
CloudRunnerInc/django-admin-smoke-tests
8f83ce0f6f8947575040befbb8763de195c7d506
[ "BSD-3-Clause" ]
13
2015-01-12T09:32:38.000Z
2021-11-18T06:38:42.000Z
test_project/main/urls.py
CloudRunnerInc/django-admin-smoke-tests
8f83ce0f6f8947575040befbb8763de195c7d506
[ "BSD-3-Clause" ]
18
2015-06-12T18:07:55.000Z
2020-09-05T09:29:45.000Z
test_project/main/urls.py
CloudRunnerInc/django-admin-smoke-tests
8f83ce0f6f8947575040befbb8763de195c7d506
[ "BSD-3-Clause" ]
9
2015-06-15T16:40:52.000Z
2020-06-16T01:07:28.000Z
from django.conf.urls import url urlpatterns = [ url(r'^posts/(?P<pk>.+)/$', lambda **kwargs: '', name="post-detail"), url(r'^hasprimaryslug/(?P<pk>[\w-]+)/$', lambda **kwargs: '', name="hasprimaryslug-detail"), url(r'^hasprimaryuuid/(?P<pk>[\w-]+)/$', lambda **kwargs: '', name="hasprimary...
30.636364
73
0.569733
0ef0211db90dc033de056523d5abaf4d80827327
225
py
Python
tests/parser/wellfounded.10.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/wellfounded.10.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/wellfounded.10.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
input = """ t(Z) :- t0(Z). t(Z) :- g(X,Y,Z), t(X), not t(Y). t0(2). g(5,1,3). g(1,2,4). g(3,4,5). """ output = """ t(Z) :- t0(Z). t(Z) :- g(X,Y,Z), t(X), not t(Y). t0(2). g(5,1,3). g(1,2,4). g(3,4,5). """
10.714286
34
0.342222
1fed3a8fb5f00cbed51ba9fbbffb1a44c47b986a
7,145
py
Python
zhihu/activity.py
xiaoxing1120/zhihu-spider
6ab2a0391523d04bd5d537560bb4836a16b3de47
[ "MIT" ]
1
2016-10-10T12:28:08.000Z
2016-10-10T12:28:08.000Z
zhihu/activity.py
evsward/zhihu-py3
6ab2a0391523d04bd5d537560bb4836a16b3de47
[ "MIT" ]
null
null
null
zhihu/activity.py
evsward/zhihu-py3
6ab2a0391523d04bd5d537560bb4836a16b3de47
[ "MIT" ]
1
2016-09-15T09:01:16.000Z
2016-09-15T09:01:16.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from datetime import datetime from .common import * from .acttype import ActType from .question import Question from .answer import Answer from .column import Column from .post import Post from .topic import Topic from .author import Author, ANONYMOUS from .collection im...
37.804233
101
0.630931
5dd08ae61bb79be9a062edf8089b922ef67c3224
2,058
py
Python
sudoku_scraper_bs.py
isaacwen/sudoku
10a625033aa115f07c4a638736b357539bb2bf86
[ "MIT" ]
null
null
null
sudoku_scraper_bs.py
isaacwen/sudoku
10a625033aa115f07c4a638736b357539bb2bf86
[ "MIT" ]
null
null
null
sudoku_scraper_bs.py
isaacwen/sudoku
10a625033aa115f07c4a638736b357539bb2bf86
[ "MIT" ]
null
null
null
# Isaac Wen # This program gets sudoku puzzles from nine.websudoku.com and stores them # locally import urllib.request from sudoku_backtracking import * from bs4 import BeautifulSoup # Produces the HTML for a specified difficulty of sudoku puzzle def get_html(num): url = "https://nine.websudoku.com/?lev...
32.666667
77
0.635083
dba1c0e68d0b8d01198764d41703ab41afda5b2b
833
py
Python
aliyun/log/cursor_time_response.py
TylerTemp/aliyun-log-sdk-python
c2935027df8efc0088e3369c00839fc80f615ef2
[ "BSD-3-Clause" ]
null
null
null
aliyun/log/cursor_time_response.py
TylerTemp/aliyun-log-sdk-python
c2935027df8efc0088e3369c00839fc80f615ef2
[ "BSD-3-Clause" ]
null
null
null
aliyun/log/cursor_time_response.py
TylerTemp/aliyun-log-sdk-python
c2935027df8efc0088e3369c00839fc80f615ef2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #encoding: utf-8 # Copyright (C) Alibaba Cloud Computing # All rights reserved. from aliyun.log.util import Util from logresponse import LogResponse class GetCursorTimeResponse(LogResponse) : """ The response of the get_cursor_time API from log. :type header: dict ...
25.242424
62
0.656663
c015a79711de28bda18df5b58fd732efa7552d38
18,087
py
Python
openstates/importers/tests/test_bill_importer.py
washabstract/openstates-core
ea69564f1f56fe4a80181b0aa715731bbc47e3f5
[ "MIT" ]
9
2020-04-04T00:19:07.000Z
2022-02-27T02:24:12.000Z
openstates/importers/tests/test_bill_importer.py
washabstract/openstates-core
ea69564f1f56fe4a80181b0aa715731bbc47e3f5
[ "MIT" ]
17
2020-03-31T18:19:59.000Z
2022-01-03T15:18:48.000Z
openstates/importers/tests/test_bill_importer.py
washabstract/openstates-core
ea69564f1f56fe4a80181b0aa715731bbc47e3f5
[ "MIT" ]
19
2020-04-10T21:32:21.000Z
2022-03-02T20:23:21.000Z
import pytest from openstates.scrape import Bill as ScrapeBill from openstates.importers import BillImporter from openstates.data.models import ( Jurisdiction, Person, Organization, Membership, Division, Bill, ) from openstates.utils.transformers import fix_bill_id from openstates.utils.generic ...
33.934334
88
0.650965
6359c038d599fb2cc221c2649199aa5f53947c9f
3,970
py
Python
src/fhir_types/FHIR_SubstanceSpecification_Relationship.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
src/fhir_types/FHIR_SubstanceSpecification_Relationship.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
src/fhir_types/FHIR_SubstanceSpecification_Relationship.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Literal, TypedDict from .FHIR_boolean import FHIR_boolean from .FHIR_CodeableConcept import FHIR_CodeableConcept from .FHIR_Element import FHIR_Element from .FHIR_Quantity import FHIR_Quantity from .FHIR_Range import FHIR_Range from .FHIR_Ratio import FHIR_Ratio from .FHIR_Reference impor...
77.843137
836
0.756423
8f4b210dbe60358a33aeab0b4611f3235d4c7c37
7,644
py
Python
pyqaserver/vmat_module.py
brjdenis/qaserver
93a4c3272cf38199e7ef67d1285a9ffacef46883
[ "MIT" ]
11
2019-12-02T04:27:48.000Z
2020-06-10T09:18:11.000Z
pyqaserver/vmat_module.py
brjdenis/pyqaserver
93a4c3272cf38199e7ef67d1285a9ffacef46883
[ "MIT" ]
13
2020-10-19T16:38:56.000Z
2021-05-04T19:44:01.000Z
pyqaserver/vmat_module.py
brjdenis/qaserver
93a4c3272cf38199e7ef67d1285a9ffacef46883
[ "MIT" ]
2
2020-01-13T17:00:41.000Z
2020-01-28T21:32:58.000Z
import sys import os import numpy as np from multiprocessing import Pool import tempfile import matplotlib.style import matplotlib matplotlib.use('Agg') from matplotlib.figure import Figure # To revert back to matplotlib 1.0 style matplotlib.style.use('classic') from pylinac import DRGS, DRMLC parent_module = sys.mo...
39.2
132
0.685897
93ad718a419912709307979bcc1d7642105608e5
8,377
py
Python
slippi_ai/data.py
supersteph/slippi-ai
97e0845789e95c1511295bad626a514fff46ce74
[ "MIT" ]
12
2020-11-11T06:39:23.000Z
2022-02-26T04:55:31.000Z
slippi_ai/data.py
supersteph/slippi-ai
97e0845789e95c1511295bad626a514fff46ce74
[ "MIT" ]
5
2020-11-26T18:17:17.000Z
2022-02-07T16:48:34.000Z
slippi_ai/data.py
supersteph/slippi-ai
97e0845789e95c1511295bad626a514fff46ce74
[ "MIT" ]
9
2020-11-15T18:24:47.000Z
2022-01-15T18:00:18.000Z
import atexit import itertools import multiprocessing as mp import os import pickle import random from typing import Any, Iterable, List, Optional, Sequence, Set, Tuple, Iterator, NamedTuple import zlib import numpy as np import tree import melee from slippi_ai import embed, reward, stats, utils Nest = Any Controll...
29.600707
92
0.701922
59d6cb7fe1c2e0697da77ed684195fa971ed4549
5,109
py
Python
sdks/python/gen_protos.py
Sil1991/gcpdf-demo
88ecd538a30f009b239a1b320ab6ad75f6901ae0
[ "Apache-2.0" ]
1
2018-04-14T15:56:19.000Z
2018-04-14T15:56:19.000Z
sdks/python/gen_protos.py
Sil1991/gcpdf-demo
88ecd538a30f009b239a1b320ab6ad75f6901ae0
[ "Apache-2.0" ]
13
2019-11-13T03:56:36.000Z
2021-12-14T21:12:07.000Z
sdks/python/gen_protos.py
Sil1991/gcpdf-demo
88ecd538a30f009b239a1b320ab6ad75f6901ae0
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
38.126866
78
0.695831
be4f1cb0b7d7607159fd3b7ea853d4ce0b3a4003
10,268
py
Python
conrad/cli.py
ca-pettarelli/conrad
ff8edaa2f3053d6bababff883946067e3469635a
[ "Apache-2.0" ]
null
null
null
conrad/cli.py
ca-pettarelli/conrad
ff8edaa2f3053d6bababff883946067e3469635a
[ "Apache-2.0" ]
null
null
null
conrad/cli.py
ca-pettarelli/conrad
ff8edaa2f3053d6bababff883946067e3469635a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import hashlib import datetime as dt import click import requests import sqlalchemy from colorama import Fore, Style from cli_helpers import tabular_output from . import __version__, CONRAD_HOME from .db import engine, Session from .models import Base, Event, Reminder fr...
31.304878
137
0.546552
3c7ce3c8de69dd9451104db562f1c93cd29b3eac
8,961
py
Python
opentelekom/otc_resource.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
opentelekom/otc_resource.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
opentelekom/otc_resource.py
tsdicloud/python-opentelekom-sdk
809f3796dba48ad0535990caf7519bb9afa71d2d
[ "Apache-2.0" ]
null
null
null
# 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...
38.625
110
0.58989
b0e95ac292fccb6ebc137c193e42b6a88688fc12
10,940
py
Python
layers/OctaveConv1.py
IlikeBB/Object-Detection-for-M-NBI
650fa1ca7b8860785f0a838dab0301a9cba121d6
[ "MIT" ]
633
2019-04-16T16:18:45.000Z
2022-03-17T13:39:47.000Z
libs/nn/OctaveConv1.py
m-and-ms/OctaveConv_pytorch
ef971222da74802d61ff2e401e5dcafc4e9233bb
[ "MIT" ]
26
2019-04-17T18:26:01.000Z
2020-05-29T12:09:26.000Z
libs/nn/OctaveConv1.py
m-and-ms/OctaveConv_pytorch
ef971222da74802d61ff2e401e5dcafc4e9233bb
[ "MIT" ]
99
2019-04-17T01:34:28.000Z
2021-02-23T02:01:04.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: Xiangtai Li(lxtpku@pku.edu.cn) # Pytorch Implementation of Octave Conv Operation # This version uses F.conv2d with learnable sampled weights import torch import torch.nn as nn import torch.nn.functional as F up_kwargs = {'mode': 'nearest'} class OctaveConv(nn.M...
39.781818
148
0.634186
199a68aef39dfbe1199c1a201f72939cf3134dfd
4,551
py
Python
Python-Game_Command_Interpreter/src/main.py
krzem5/Python-Fraction_Subtraction
f937b5a02f6425fb41bac9ddb882ca4a6999fd43
[ "BSD-3-Clause" ]
null
null
null
Python-Game_Command_Interpreter/src/main.py
krzem5/Python-Fraction_Subtraction
f937b5a02f6425fb41bac9ddb882ca4a6999fd43
[ "BSD-3-Clause" ]
null
null
null
Python-Game_Command_Interpreter/src/main.py
krzem5/Python-Fraction_Subtraction
f937b5a02f6425fb41bac9ddb882ca4a6999fd43
[ "BSD-3-Clause" ]
null
null
null
sayings={'xp amout':'Your Expirience Points:\t','coords':'%s:\tx=%s, y=%s, z=%s'} errors={'short error':'Number must be smaller than 100001 and greater than -100001','integrer error':'%s must be integrer','no cmd':"Command %s don't exists",'len error':'Invalid lenght of %slist','invalid string':'String %sis invalid','b...
28.803797
277
0.587343
f17c790d384bf44d1a800b5b075ced9cb5cd500f
6,586
py
Python
src/app/WrapPythonQt.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
src/app/WrapPythonQt.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
src/app/WrapPythonQt.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
import os import re import sys import argparse def wrap(args): inFileNames = args.input_file outFileName = args.output_file exportSymbol = args.export_symbol exportHeader = args.export_header decoratorClassName = args.class_name classNamePrefixes = args.class_prefixes qtClassNamePrefixes ...
31.970874
137
0.612967
2554db36b64be932128fcc6c521238fadbce4837
8,631
py
Python
asset_builder_py3.py
dnanexus/dx_app_builder
16cca82af6fe41afb4a74828fafbc3992de359c7
[ "Apache-2.0" ]
null
null
null
asset_builder_py3.py
dnanexus/dx_app_builder
16cca82af6fe41afb4a74828fafbc3992de359c7
[ "Apache-2.0" ]
16
2016-04-22T16:54:07.000Z
2021-12-15T04:45:59.000Z
asset_builder_py3.py
dnanexus/dx_app_builder
16cca82af6fe41afb4a74828fafbc3992de359c7
[ "Apache-2.0" ]
2
2017-06-16T08:58:06.000Z
2020-12-15T17:24:01.000Z
# Copyright (C) 2016 DNAnexus, Inc. # # This file is part of dx_asset_builder. # # 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 # # ...
41.296651
109
0.649056
56490d48aab4d78333b8e96c61b2b0c072c08bc1
3,423
py
Python
businesslayer/ai/deep-learning/tensorboard/scripts/TensorBoardGradientMnistDemo.py
dragomirdev/DataTachyonPlatform
733ce014b33942d1962b1d4c80aae47699e9ff15
[ "CC-BY-4.0", "MIT" ]
null
null
null
businesslayer/ai/deep-learning/tensorboard/scripts/TensorBoardGradientMnistDemo.py
dragomirdev/DataTachyonPlatform
733ce014b33942d1962b1d4c80aae47699e9ff15
[ "CC-BY-4.0", "MIT" ]
null
null
null
businesslayer/ai/deep-learning/tensorboard/scripts/TensorBoardGradientMnistDemo.py
dragomirdev/DataTachyonPlatform
733ce014b33942d1962b1d4c80aae47699e9ff15
[ "CC-BY-4.0", "MIT" ]
null
null
null
import tensorflow as tf import datetime # Clear any logs from previous runs # !rm -rf ./logs/ # Using the MNIST dataset, normalize the data and using simple Keras model for classifying the images into 10 classes. mnist = tf.keras.datasets.mnist (x_train, y_train),(x_test, y_test) = mnist.load_data() x_train, x_test ...
35.65625
118
0.722466
f1c255bab67aae84eecfe1d2afc1875ccb6ef0dd
9,389
py
Python
barbican/plugin/crypto/simple_crypto.py
mail2nsrajesh/barbican
d16d932b77486e9b2f8c6d30e628a6e66517b1a6
[ "Apache-2.0" ]
null
null
null
barbican/plugin/crypto/simple_crypto.py
mail2nsrajesh/barbican
d16d932b77486e9b2f8c6d30e628a6e66517b1a6
[ "Apache-2.0" ]
null
null
null
barbican/plugin/crypto/simple_crypto.py
mail2nsrajesh/barbican
d16d932b77486e9b2f8c6d30e628a6e66517b1a6
[ "Apache-2.0" ]
null
null
null
# 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...
39.616034
79
0.629673
78204928e9e7ba0f0a1c584af1a758b0f0120aa1
2,413
py
Python
src/decoder_node.py
TienPoly/VO_duckiebot
b1ea4a7656d9d8e580f64584eb831e15b825a19c
[ "BSD-3-Clause" ]
null
null
null
src/decoder_node.py
TienPoly/VO_duckiebot
b1ea4a7656d9d8e580f64584eb831e15b825a19c
[ "BSD-3-Clause" ]
null
null
null
src/decoder_node.py
TienPoly/VO_duckiebot
b1ea4a7656d9d8e580f64584eb831e15b825a19c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy from cv_bridge import CvBridge, CvBridgeError import cv2 import numpy as np from sensor_msgs.msg import CompressedImage,Image #from duckietown_msgs.msg import BoolStamped class DecoderNode(object): def __init__(self): self.node_name = rospy.get_name() self.active...
40.216667
111
0.665562
cb834d19f8cfdb7293a2595f88dfa764bc30d95f
3,069
py
Python
1_Tutorials/1_water_pes_api/model5_data/compute_energy.py
zero0911/PES-Learn
7a956db1aff368f978dd3c5c08ef99aec2613d53
[ "BSD-3-Clause" ]
2
2020-11-02T07:23:14.000Z
2020-11-05T10:21:59.000Z
1_Tutorials/1_water_pes_api/model5_data/compute_energy.py
zero0911/PES-Learn
7a956db1aff368f978dd3c5c08ef99aec2613d53
[ "BSD-3-Clause" ]
null
null
null
1_Tutorials/1_water_pes_api/model5_data/compute_energy.py
zero0911/PES-Learn
7a956db1aff368f978dd3c5c08ef99aec2613d53
[ "BSD-3-Clause" ]
null
null
null
from peslearn.ml import NeuralNetwork from peslearn import InputProcessor import torch import numpy as np from itertools import combinations nn = NeuralNetwork('PES.dat', InputProcessor(''), molecule_type='A2B') params = {'layers': (16,), 'morse_transform': {'morse': False}, 'pip': {'degree_reduction': False, 'pip': T...
45.132353
195
0.677419
0537fb9a5bd7baac9ceb7be117af0d7776052385
7,629
py
Python
env/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py
diego-d5000/MisValesMd
b641782bc2546776e9f55f452ec7fb48100dc482
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py
diego-d5000/MisValesMd
b641782bc2546776e9f55f452ec7fb48100dc482
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py
diego-d5000/MisValesMd
b641782bc2546776e9f55f452ec7fb48100dc482
[ "MIT" ]
null
null
null
""" Management utility to create superusers. """ from __future__ import unicode_literals import getpass import sys from django.contrib.auth import get_user_model from django.contrib.auth.management import get_default_username from django.core import exceptions from django.core.management.base import BaseCo...
45.410714
119
0.551579
45cdcf84514e3ad3bde02684e5ebd9629f548833
1,326
py
Python
LeetCode/daily/1395.统计作战单位数.py
xmmmmmovo/MyAlgorithmSolutions
f5198d438f36f41cc4f72d53bb71d474365fa80d
[ "MIT" ]
1
2020-03-26T13:40:52.000Z
2020-03-26T13:40:52.000Z
LeetCode/daily/1395.统计作战单位数.py
xmmmmmovo/MyAlgorithmSolutions
f5198d438f36f41cc4f72d53bb71d474365fa80d
[ "MIT" ]
null
null
null
LeetCode/daily/1395.统计作战单位数.py
xmmmmmovo/MyAlgorithmSolutions
f5198d438f36f41cc4f72d53bb71d474365fa80d
[ "MIT" ]
null
null
null
from typing import List class Solution: def numTeams(self, rating: List[int]) -> int: res = 0 for i in range(len(rating) - 2): for j in range(i+1, len(rating)-1): for k in range(j+1, len(rating)): if (rating[i] < rating[j] and rating[j] < rating[k]) ...
26
126
0.430618
dd891e183ca73404e6d211c901431159f14c9743
76,171
py
Python
nmostesting/suites/IS0401Test.py
maweit/nmos-testing
6d2a8337234038fd8b27a593d35f1e0d6cc95fed
[ "Apache-2.0" ]
null
null
null
nmostesting/suites/IS0401Test.py
maweit/nmos-testing
6d2a8337234038fd8b27a593d35f1e0d6cc95fed
[ "Apache-2.0" ]
null
null
null
nmostesting/suites/IS0401Test.py
maweit/nmos-testing
6d2a8337234038fd8b27a593d35f1e0d6cc95fed
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Riedel Communications GmbH & Co. KG # # Modifications Copyright 2018 British Broadcasting 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...
50.211602
121
0.571504
04e8335e7c4ecd6f61510a1f43c23bb7884dee16
1,296
py
Python
fuzzybee/resume/migrations/0001_initial.py
youtaya/knight
6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee
[ "MIT" ]
null
null
null
fuzzybee/resume/migrations/0001_initial.py
youtaya/knight
6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee
[ "MIT" ]
null
null
null
fuzzybee/resume/migrations/0001_initial.py
youtaya/knight
6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('joboard', '0001_initial'), ] operations = [ migrations.CreateModel( name='Resume', fields=[ ...
37.028571
114
0.566358
9f6ce6a4b7bd25e45daed898600f34939f3e44c9
3,045
py
Python
samples/python/54.teams-task-module/app.py
kenguil/BF4
5954f40f30c71a38c5f1550db50d19b2a9c2427d
[ "MIT" ]
1
2020-10-30T16:44:04.000Z
2020-10-30T16:44:04.000Z
samples/python/54.teams-task-module/app.py
kenguil/BF4
5954f40f30c71a38c5f1550db50d19b2a9c2427d
[ "MIT" ]
null
null
null
samples/python/54.teams-task-module/app.py
kenguil/BF4
5954f40f30c71a38c5f1550db50d19b2a9c2427d
[ "MIT" ]
1
2020-07-30T11:34:14.000Z
2020-07-30T11:34:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import sys import traceback from datetime import datetime from http import HTTPStatus from aiohttp import web from aiohttp.web import Request, Response, json_response from botbuilder.core import ( BotFrameworkAdapterSett...
33.097826
88
0.718883
f5816f4dd90979298aa30fa2d4f097cf2bd2096e
797
py
Python
xlsxwriter/test/comparison/test_image24.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
1
2020-07-01T07:24:37.000Z
2020-07-01T07:24:37.000Z
xlsxwriter/test/comparison/test_image24.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_image24.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
23.441176
79
0.614806
21cf4897a8ca0a543b8347f25ac1ca64eb8d88fc
1,884
py
Python
code/town_acc.py
akonstodata/CT_crash_analysis
66a8ecce5279f4dfc9f1cc3766a00573229812ca
[ "MIT" ]
1
2020-10-04T20:54:25.000Z
2020-10-04T20:54:25.000Z
code/town_acc.py
akonstodata/CT_crash_analysis
66a8ecce5279f4dfc9f1cc3766a00573229812ca
[ "MIT" ]
null
null
null
code/town_acc.py
akonstodata/CT_crash_analysis
66a8ecce5279f4dfc9f1cc3766a00573229812ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This set of functions is used to create a town class CT Crash data analysis @author: Anna Konstorum (konstorum.anna@gmail.com) """ import plot_results class town_acc(): """Analyzing I-84 CT crash data by town""" #import numpy as np def __init__(self,...
36.941176
129
0.656582
4d4efa71cbcf08423c785686d0bca830d89b7738
631
py
Python
examples/infinity_feedliker.py
pierfani/instabot
2eb724e2f7e7e14df67098c71a871f036574e33c
[ "Apache-2.0" ]
4
2019-08-17T01:27:20.000Z
2020-01-08T12:01:34.000Z
examples/infinity_feedliker.py
pierfani/instabot
2eb724e2f7e7e14df67098c71a871f036574e33c
[ "Apache-2.0" ]
4
2019-02-25T08:48:07.000Z
2019-03-07T17:06:15.000Z
examples/infinity_feedliker.py
pierfani/instabot
2eb724e2f7e7e14df67098c71a871f036574e33c
[ "Apache-2.0" ]
5
2019-04-10T04:53:14.000Z
2020-05-17T09:10:06.000Z
""" instabot example Workflow: Like rescent medias from your timeline feed. """ import argparse import os import sys import time sys.path.append(os.path.join(sys.path[0], '../')) from instabot import Bot parser = argparse.ArgumentParser(add_help=True) parser.add_argument('-u', type=str, help="userna...
20.354839
53
0.690967
2249b1559381e099d154e526407cdd5dc76d60b3
1,818
py
Python
data/p2DJ/New/program/cirq/startCirq168.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/cirq/startCirq168.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/program/cirq/startCirq168.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=2 # total number=10 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
28.40625
77
0.694169
5984f249444dd00fb8b3ee4bf26f283c9a91a344
7,930
py
Python
termrec/__init__.py
donno2048/termrec
114b99e5e0c486c0ea3334b138c35a5bfc992440
[ "MIT" ]
4
2021-12-09T17:30:42.000Z
2021-12-30T09:35:52.000Z
termrec/__init__.py
donno2048/termrec
114b99e5e0c486c0ea3334b138c35a5bfc992440
[ "MIT" ]
null
null
null
termrec/__init__.py
donno2048/termrec
114b99e5e0c486c0ea3334b138c35a5bfc992440
[ "MIT" ]
null
null
null
from json import loads, dumps from codecs import getincrementaldecoder from time import time from select import select from os import read, environ, get_terminal_size, isatty, write, execvpe, pipe, O_NONBLOCK, waitpid, close from array import array from fcntl import ioctl, fcntl, F_GETFL, F_SETFL from signal import sig...
48.353659
192
0.607692
abc031ccd2eafa2cf991135736365b9631602198
2,083
py
Python
krake/krake/controller/scheduler/__main__.py
rak-n-rok/Krake
2f0d4a382b99639e2c1149ee8593a9bb589d2d3f
[ "Apache-2.0" ]
1
2020-05-29T08:43:32.000Z
2020-05-29T08:43:32.000Z
krake/krake/controller/scheduler/__main__.py
rak-n-rok/Krake
2f0d4a382b99639e2c1149ee8593a9bb589d2d3f
[ "Apache-2.0" ]
null
null
null
krake/krake/controller/scheduler/__main__.py
rak-n-rok/Krake
2f0d4a382b99639e2c1149ee8593a9bb589d2d3f
[ "Apache-2.0" ]
1
2019-11-19T13:39:02.000Z
2019-11-19T13:39:02.000Z
"""Module for Krake controller responsible for binding Krake applications to specific backends and entry point of Krake scheduler. .. code:: bash python -m krake.controller.scheduler --help Configuration is loaded from the ``controllers.scheduler`` section: .. code:: yaml api_endpoint: http://localhost:808...
25.716049
88
0.731637
b45e8402c4e18141dc25b2110203e7593a2d182c
6,021
py
Python
azure-mgmt-storage/azure/mgmt/storage/storage_management_client.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-storage/azure/mgmt/storage/storage_management_client.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
azure-mgmt-storage/azure/mgmt/storage/storage_management_client.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.785714
204
0.733599
5942c34071dcb91ebe968c06a082520f09fab9f9
4,823
py
Python
dask_jobqueue/slurm.py
jennirinker/dask-jobqueue
975425e2968873310bec030a761c1db99e6c7ec6
[ "BSD-3-Clause" ]
null
null
null
dask_jobqueue/slurm.py
jennirinker/dask-jobqueue
975425e2968873310bec030a761c1db99e6c7ec6
[ "BSD-3-Clause" ]
null
null
null
dask_jobqueue/slurm.py
jennirinker/dask-jobqueue
975425e2968873310bec030a761c1db99e6c7ec6
[ "BSD-3-Clause" ]
null
null
null
import logging import math import dask from .core import JobQueueCluster, docstrings logger = logging.getLogger(__name__) class SLURMCluster(JobQueueCluster): __doc__ = docstrings.with_indents( """ Launch Dask on a SLURM cluster Parameters ---------- queue : str Destination queue f...
33.034247
110
0.587394
b3833ae014e13b485aa7a5013a7d09ed4d273567
303
py
Python
data/multilingual/Latn.QVA/Mono_12/pdf_to_json_test_Latn.QVA_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.QVA/Mono_12/pdf_to_json_test_Latn.QVA_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.QVA/Mono_12/pdf_to_json_test_Latn.QVA_Mono_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.QVA/Mono_12/udhr_Latn.QVA_Mono_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
a8be862da4960f10719473d21eb7fdd4528174eb
1,667
py
Python
xschem/fractional_n_divider/tests/mash_mod/test_mash_mod_coverage.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
15
2020-12-13T12:33:15.000Z
2022-02-17T18:09:25.000Z
xschem/fractional_n_divider/tests/mash_mod/test_mash_mod_coverage.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
null
null
null
xschem/fractional_n_divider/tests/mash_mod/test_mash_mod_coverage.py
yrrapt/caravel_amsat_txrx_ic
53bef4537447a623f93772092daeac67c4cb3d45
[ "Apache-2.0" ]
6
2021-01-02T05:52:21.000Z
2022-03-28T06:55:07.000Z
import cocotb from cocotb.triggers import RisingEdge, ReadOnly from cocotb_coverage.coverage import * # auxiliary relation function to define bins matching within a range range_relation = lambda val_, bin_ : bin_[0] <= val_ <= bin_[1] class MASHModStatus(): """ Object representing modulator status """ ...
30.309091
104
0.632274
784e349e12c5770fb9d646442a576e5e8958cbbe
2,272
py
Python
mltb/metrics.py
ddxgz/mltb
a265bf4b72cd3c51b34c2a0603bd9d0def6f86db
[ "MIT" ]
2
2020-08-07T13:56:48.000Z
2020-09-20T11:24:06.000Z
mltb/metrics.py
ddxgz/mltoolbox
a265bf4b72cd3c51b34c2a0603bd9d0def6f86db
[ "MIT" ]
null
null
null
mltb/metrics.py
ddxgz/mltoolbox
a265bf4b72cd3c51b34c2a0603bd9d0def6f86db
[ "MIT" ]
1
2020-11-07T14:04:06.000Z
2020-11-07T14:04:06.000Z
import numpy as np import pandas as pd from sklearn import metrics from typing import List def rmse_cal(y_true, y_pred, log: bool=False, negate=False): if log: # to add 1 in case the predicted values are not positive y_true = np.log1p(y_true) y_pred = np.log1p(y_pred) # return -np.sqrt...
31.123288
82
0.65669
2296dbfd547eb76ecf38f6189c1549fc112e87d1
11,989
py
Python
contrib/tools/python3/src/Lib/dbm/dumb.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
36
2019-06-07T20:44:06.000Z
2022-03-23T06:19:43.000Z
contrib/tools/python3/src/Lib/dbm/dumb.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
42
2018-05-25T15:57:08.000Z
2021-01-17T18:39:59.000Z
contrib/tools/python3/src/Lib/dbm/dumb.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
28
2019-06-27T04:11:27.000Z
2022-03-11T06:27:44.000Z
"""A dumb and slow but simple dbm clone. For database spam, spam.dir contains the index (a text file), spam.bak *may* contain a backup of the index (also a text file), while spam.dat contains the data (a binary file). XXX TO DO: - seems to contain a bug when updating... - reclaim free space (currently, space once o...
36.889231
78
0.589957
7c06c302d8cf33521cdc895c1fd959b7bccd8ce7
1,879
py
Python
gestifyApi/api.py
canardaaydin/Hand-Gesture-Control-for-Spotify
7a88eac7ad60745b750346474ff34a5b67c09191
[ "MIT" ]
null
null
null
gestifyApi/api.py
canardaaydin/Hand-Gesture-Control-for-Spotify
7a88eac7ad60745b750346474ff34a5b67c09191
[ "MIT" ]
null
null
null
gestifyApi/api.py
canardaaydin/Hand-Gesture-Control-for-Spotify
7a88eac7ad60745b750346474ff34a5b67c09191
[ "MIT" ]
1
2021-11-23T16:18:01.000Z
2021-11-23T16:18:01.000Z
from flask import Flask, render_template, make_response from flask_restful import Resource, Api, request import pprint import requests import base64 import spotipy import spotipy.util as util import json app = Flask(__name__) api = Api(app) client_id = "d81ae7685f0240df9fc3e88c7698bc53" secret_id = "439c9f6110554b16b...
23.197531
108
0.723789
898014b2091b7e026bfe9dfaf15324a72ffbbf12
437
py
Python
blogapp/migrations/0006_auto_20210314_1244.py
NitinPSingh/blogprojlive
769685f22218d31b8eb2195d65d9c3c351e02772
[ "MIT" ]
1
2021-04-06T15:10:09.000Z
2021-04-06T15:10:09.000Z
blogapp/migrations/0006_auto_20210314_1244.py
NitinPSingh/blogprojlive
769685f22218d31b8eb2195d65d9c3c351e02772
[ "MIT" ]
null
null
null
blogapp/migrations/0006_auto_20210314_1244.py
NitinPSingh/blogprojlive
769685f22218d31b8eb2195d65d9c3c351e02772
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-14 07:14 import ckeditor.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blogapp', '0005_auto_20210313_1746'), ] operations = [ migrations.AlterField( model_name='post', ...
21.85
72
0.590389
a04d0be6882ed93317904bd864c617462ff3f5d8
5,852
py
Python
quicklogic/common/utils/create_ioplace.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
183
2017-12-29T12:08:32.000Z
2022-02-15T03:29:07.000Z
quicklogic/common/utils/create_ioplace.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
1,832
2017-12-29T14:47:27.000Z
2022-02-18T06:30:43.000Z
quicklogic/common/utils/create_ioplace.py
bl0x/symbiflow-arch-defs
5fa5e71526e443d589971f2649d8b189df982d72
[ "ISC" ]
96
2017-12-30T12:00:45.000Z
2022-02-17T09:03:46.000Z
#!/usr/bin/env python3 """ Convert a PCF file into a VPR io.place file. """ import argparse import csv import sys import re from collections import defaultdict import vpr_io_place from pinmap_parse import read_pinmapfile_data from pinmap_parse import vec_to_scalar from lib.parse_pcf import parse_simple_pcf # =======...
30.8
95
0.476247
f9f7407df96d1761893906b874aa470ae813ff10
12,220
py
Python
FishyFish/FishyFish_GRAPH.py
CCThompson82/Kaggle_FF3
a8d68a8e33b213470d2b26d2115c6a5ac989af8d
[ "MIT" ]
null
null
null
FishyFish/FishyFish_GRAPH.py
CCThompson82/Kaggle_FF3
a8d68a8e33b213470d2b26d2115c6a5ac989af8d
[ "MIT" ]
null
null
null
FishyFish/FishyFish_GRAPH.py
CCThompson82/Kaggle_FF3
a8d68a8e33b213470d2b26d2115c6a5ac989af8d
[ "MIT" ]
null
null
null
"""This script is the FishFinder graph for the Kaggle Nature Conservancy Fishery Competition. It utilizes VGG-19 model as pre-trained weights during the convolution steps""" fishyfish = tf.Graph() with fishyfish.as_default() : # Variables with tf.variable_scope('Variables') : with tf.variable_scope(...
54.070796
127
0.556383
4cab16270ad0c783b99089bbeb7793fe05e39245
3,523
py
Python
pyfermod/stats/stats_isf.py
josborne-noaa/PyFerret
8496508e9902c0184898522e9f89f6caea6d4539
[ "Unlicense" ]
44
2016-03-18T22:05:31.000Z
2021-12-23T01:50:09.000Z
pyfermod/stats/stats_isf.py
josborne-noaa/PyFerret
8496508e9902c0184898522e9f89f6caea6d4539
[ "Unlicense" ]
88
2016-08-19T08:05:37.000Z
2022-03-28T23:29:21.000Z
pyfermod/stats/stats_isf.py
josborne-noaa/PyFerret
8496508e9902c0184898522e9f89f6caea6d4539
[ "Unlicense" ]
24
2016-02-07T18:12:06.000Z
2022-02-19T09:06:17.000Z
""" Returns the array of inverse survival function values for a probability distribution and set of quantile values. """ from __future__ import print_function import numpy import scipy.stats import pyferret import pyferret.stats def ferret_init(id): """ Initialization for the stats_isf python-backed ferret ...
39.144444
114
0.641783
f38a0d411433e6658439691eb6e6a2894b90f025
48,564
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_vpn_gateways_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_vpn_gateways_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_vpn_gateways_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.656442
211
0.667696
42f9888bcd5645c4807993e12f0adea6a1992b56
14,047
py
Python
mavsdk/failure.py
NicolasM0/MAVSDK-Python
41633177a040dd535ad4adf38764a81c10d50760
[ "BSD-3-Clause" ]
1
2020-07-11T10:02:28.000Z
2020-07-11T10:02:28.000Z
mavsdk/failure.py
NicolasM0/MAVSDK-Python
41633177a040dd535ad4adf38764a81c10d50760
[ "BSD-3-Clause" ]
null
null
null
mavsdk/failure.py
NicolasM0/MAVSDK-Python
41633177a040dd535ad4adf38764a81c10d50760
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # DO NOT EDIT! This file is auto-generated from # https://github.com/mavlink/MAVSDK-Python/tree/master/other/templates/py from ._base import AsyncBase from . import failure_pb2, failure_pb2_grpc from enum import Enum class FailureUnit(Enum): """ A failure unit. Values -----...
30.404762
116
0.628319
823e899aecf5881c99e791fd7099ceb1404c2f55
418
py
Python
tests/test_api.py
pinntech/pinn-python
d7d3f2d2a4cdc3eb01ae85a117c0e3d8bc1732bd
[ "MIT" ]
2
2019-03-29T17:36:44.000Z
2021-11-20T00:05:04.000Z
tests/test_api.py
pinntech/pinn-python
d7d3f2d2a4cdc3eb01ae85a117c0e3d8bc1732bd
[ "MIT" ]
4
2020-03-24T16:52:29.000Z
2021-06-01T23:36:18.000Z
tests/test_api.py
pinntech/pinn-python
d7d3f2d2a4cdc3eb01ae85a117c0e3d8bc1732bd
[ "MIT" ]
1
2021-11-20T00:05:07.000Z
2021-11-20T00:05:07.000Z
""" :copyright: (c) 2019 Pinn Technologies, Inc. :license: MIT """ def test_import(): import pinn def test_configuration_error(): import pinn try: pinn.User.create() except pinn.errors.ConfigurationError: pass def test_authentication_error(): import pinn pinn.secret_key = '...
16.076923
44
0.645933
1c942a1e6c80c09cc6afff40460be5ab93c827ed
3,472
py
Python
xarray/tests/test_dtypes.py
ianthomas23/xarray
aa1d1d19b822897399c8ed2cf346afbac71f45b3
[ "Apache-2.0" ]
null
null
null
xarray/tests/test_dtypes.py
ianthomas23/xarray
aa1d1d19b822897399c8ed2cf346afbac71f45b3
[ "Apache-2.0" ]
null
null
null
xarray/tests/test_dtypes.py
ianthomas23/xarray
aa1d1d19b822897399c8ed2cf346afbac71f45b3
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import numpy as np import pytest from xarray.core import dtypes @pytest.mark.parametrize( "args, expected", [ ([bool], bool), ([bool, np.string_], np.object_), ([np.float32, np.float64], np.float64), ([np.float32, np.string_], np.object_), ...
34.376238
78
0.567396
7ee154247bb0b83037ecae140405579c83f06457
298
py
Python
backend/app/literature/hashing.py
alliance-genome/agr_literature_service_demo
48cd3a3797f96ef94e6d40d2c94e379bfc48914f
[ "MIT" ]
1
2021-12-18T15:06:41.000Z
2021-12-18T15:06:41.000Z
res-page/hashing.py
beyondchan28/API-Server-1---Learning-Reource-Godot
bb1f00830cf0884bd8b369960e7bad54e90beee2
[ "MIT" ]
null
null
null
res-page/hashing.py
beyondchan28/API-Server-1---Learning-Reource-Godot
bb1f00830cf0884bd8b369960e7bad54e90beee2
[ "MIT" ]
null
null
null
from passlib.context import CryptContext pwd_cxt = CryptContext(schemes=["bcrypt"], deprecated="auto") class Hash(): def bcrypt(password: str): return pwd_cxt.hash(password) def verify(hashed_password,plain_password): return pwd_cxt.verify(plain_password,hashed_password)
29.8
61
0.744966
5682c336cb33e1eee8dcb6f2e4ee73a6bb8d8456
17,610
py
Python
tf_agents/policies/policy_saver_test.py
kvzhao/agents
3bbf635a4f8f1f9255e0d7315b1163f84d96a4f7
[ "Apache-2.0" ]
3
2019-10-02T13:55:14.000Z
2021-05-06T23:08:45.000Z
tf_agents/policies/policy_saver_test.py
nealwu/agents
27b9498689ea5b8f69fc77ada752e05e38192852
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/policy_saver_test.py
nealwu/agents
27b9498689ea5b8f69fc77ada752e05e38192852
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents 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...
38.874172
80
0.676263