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
3bc08676126e8c0113bf9f34c4baba2d0c3465bd
657
py
Python
tests/features/steps/recipes_repo/test_recipes_delete.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
10
2020-05-21T06:25:35.000Z
2022-01-07T20:34:03.000Z
tests/features/steps/recipes_repo/test_recipes_delete.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
22
2019-11-17T17:25:16.000Z
2022-03-10T15:14:28.000Z
tests/features/steps/recipes_repo/test_recipes_delete.py
dataloop-ai/dtlpy
2c73831da54686e047ab6aefd8f12a8e53ea97c2
[ "Apache-2.0" ]
8
2020-03-05T16:23:55.000Z
2021-12-27T11:10:42.000Z
import behave @behave.given(u'Dataset has Recipes') def step_impl(context): context.recipe = context.dataset.recipes.list()[0] context.second_recipe = context.dataset.recipes.create(recipe_name="second_recipe") @behave.when(u'I delete recipe') def step_impl(context): context.recipe.delete() @behave.th...
27.375
101
0.730594
fc5cb44bee22377a8c668f066d4aced04afb1061
32,721
py
Python
main_layout.py
mohamed-seyam/Sound-Equalizer-
5dd2dde39877026d11346dab1f351ba751bfd166
[ "MIT" ]
null
null
null
main_layout.py
mohamed-seyam/Sound-Equalizer-
5dd2dde39877026d11346dab1f351ba751bfd166
[ "MIT" ]
null
null
null
main_layout.py
mohamed-seyam/Sound-Equalizer-
5dd2dde39877026d11346dab1f351ba751bfd166
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\EQ.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, ...
56.318417
115
0.72073
cf8b62117209ae411f1d890d693bd324c34cd046
6,146
py
Python
wagtail/wagtaildocs/views/documents.py
seddonym/wagtail-tableblock
aea3ce67a0800285b20b93018b7c0a8679e479b7
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtaildocs/views/documents.py
seddonym/wagtail-tableblock
aea3ce67a0800285b20b93018b7c0a8679e479b7
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtaildocs/views/documents.py
seddonym/wagtail-tableblock
aea3ce67a0800285b20b93018b7c0a8679e479b7
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.core.exceptions import PermissionDenied from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from django.core.urlresolvers import reverse from wagtail.utils.pagination import paginate fro...
33.584699
97
0.650179
21d18948cb017cdd764610bd621de7751d1f90bf
24,771
py
Python
angr/engines/light/engine.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
angr/engines/light/engine.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
angr/engines/light/engine.py
zhu8655/angr
c565292a2dd75a0eb77fad74a6b6dd2656216b1f
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=no-self-use from typing import Tuple import logging import ailment import pyvex import archinfo from ...engines.vex.claripy.irop import operations as vex_operations from ...code_location import CodeLocation from ...utils.constants import DEFAULT_STATEMENT from ..engine import SimEngine class SimEn...
28.309714
138
0.570627
3422d4a3becb0395a5c636e62805d83a9bd10d7f
805
py
Python
TIPE/trategie.py
clementlagneau/TIPE-2019
5dc8f2c4619fadad6fbc5745e0887053c81a7bfe
[ "MIT" ]
null
null
null
TIPE/trategie.py
clementlagneau/TIPE-2019
5dc8f2c4619fadad6fbc5745e0887053c81a7bfe
[ "MIT" ]
null
null
null
TIPE/trategie.py
clementlagneau/TIPE-2019
5dc8f2c4619fadad6fbc5745e0887053c81a7bfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 15 09:58:23 2018 @author: Clement LAGNEAU """ import random """ A[ligne][colonne] strategie : h : haut b : bas d : droite g : gauche i : impossible """ def strategie(t): strat=[["" for x in range(n)] for x in range(n)] for x in range(n): ...
20.125
52
0.386335
bbba84248cd00c52484aa6eace53b8f68b0b1fa5
6,257
py
Python
src/cifar/train.py
Jan21/PeerNets-pytorch
41c99cef035023ea45fe29876440255876ea4b0e
[ "MIT" ]
12
2019-01-15T11:58:34.000Z
2021-02-10T11:46:59.000Z
src/cifar/train.py
Jan21/PeerNets-pytorch
41c99cef035023ea45fe29876440255876ea4b0e
[ "MIT" ]
1
2019-01-08T16:56:04.000Z
2019-01-08T16:56:04.000Z
src/cifar/train.py
Jan21/PeerNets-pytorch
41c99cef035023ea45fe29876440255876ea4b0e
[ "MIT" ]
2
2019-04-11T09:09:36.000Z
2020-10-15T07:33:21.000Z
import argparse import os import time import torch import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable from utee import misc import dataset import model parser = argparse.ArgumentParser(description='PyTorch CIFAR-X Example') parser.add_argument('--type', default='cifar10'...
44.375887
125
0.641521
164514c32f4fb4d323c88521fd9bad8c3c046195
1,838
py
Python
uniswap/constants.py
rogfut/uniswap-python
2fa51a02cddb5ea0482338e07a378b18dbc26375
[ "MIT" ]
290
2021-05-24T01:51:15.000Z
2022-03-31T17:26:31.000Z
uniswap/constants.py
CatKevin/uniswap-python
2fa51a02cddb5ea0482338e07a378b18dbc26375
[ "MIT" ]
96
2021-05-22T23:03:33.000Z
2022-03-24T10:28:27.000Z
uniswap/constants.py
CatKevin/uniswap-python
2fa51a02cddb5ea0482338e07a378b18dbc26375
[ "MIT" ]
118
2021-05-24T20:13:38.000Z
2022-03-26T19:36:38.000Z
ETH_ADDRESS = "0x0000000000000000000000000000000000000000" WETH9_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" # see: https://chainid.network/chains/ _netid_to_name = { 1: "mainnet", 3: "ropsten", 4: "rinkeby", 10: "optimism", 42: "kovan", 56: "binance", 97: "binance_testnet", ...
36.76
79
0.762786
996911bc004ae3e2ad9f7cd0842fe3790734a42d
18,232
py
Python
elit/components/tokenizer.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
40
2017-02-27T20:16:44.000Z
2022-03-25T04:58:01.000Z
elit/components/tokenizer.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
12
2017-02-16T23:50:38.000Z
2022-01-19T21:29:59.000Z
elit/components/tokenizer.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
6
2017-05-05T08:02:18.000Z
2021-11-03T23:47:23.000Z
# ======================================================================== # Copyright 2018 ELIT # # 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...
37.747412
119
0.52896
9dbde82bd418678dc765c59d823ee4fc600c3805
11,343
py
Python
loaner/web_app/backend/clients/bigquery.py
ryangugcloudca/loaner
91753e47aff26d78978ebe7aca70f4a7cbf6a3d4
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/clients/bigquery.py
ryangugcloudca/loaner
91753e47aff26d78978ebe7aca70f4a7cbf6a3d4
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/clients/bigquery.py
ryangugcloudca/loaner
91753e47aff26d78978ebe7aca70f4a7cbf6a3d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.688073
105
0.693291
f7a69bb619ac1cae8d5a27fcd57bc5e49aded5b7
1,283
py
Python
keystone/common/sql/migrate_repo/versions/062_drop_assignment_role_fk.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/062_drop_assignment_role_fk.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/common/sql/migrate_repo/versions/062_drop_assignment_role_fk.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "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...
35.638889
75
0.73032
302b755f0b2bb0da02a4c76c91ccfc0165f9867f
16,260
py
Python
docs/tutorials/instance/train_mask_rcnn_coco.py
ptrendx/gluon-cv
5017de97bffcdf7fd90a0be5cdd3201dc7af769e
[ "Apache-2.0" ]
11
2019-12-11T12:47:30.000Z
2021-01-21T16:36:56.000Z
docs/tutorials/instance/train_mask_rcnn_coco.py
ptrendx/gluon-cv
5017de97bffcdf7fd90a0be5cdd3201dc7af769e
[ "Apache-2.0" ]
3
2019-09-03T01:35:15.000Z
2019-11-13T06:28:00.000Z
docs/tutorials/instance/train_mask_rcnn_coco.py
ptrendx/gluon-cv
5017de97bffcdf7fd90a0be5cdd3201dc7af769e
[ "Apache-2.0" ]
3
2020-01-10T16:50:08.000Z
2020-11-13T06:59:13.000Z
"""2. Train Mask RCNN end-to-end on MS COCO =========================================== This tutorial goes through the steps for training a Mask R-CNN [He17]_ instance segmentation model provided by GluonCV. Mask R-CNN is an extension to the Faster R-CNN [Ren15]_ object detection model. As such, this tutorial is also...
46.457143
180
0.618143
50478d3e5166b1dbfea8afc97c129359c19953a5
968
py
Python
ladder_network/tensor_utils.py
joshloyal/LadderNetwork
f4e9225b4d89094f51a9db5f6e4392b88b965bb7
[ "MIT" ]
null
null
null
ladder_network/tensor_utils.py
joshloyal/LadderNetwork
f4e9225b4d89094f51a9db5f6e4392b88b965bb7
[ "MIT" ]
null
null
null
ladder_network/tensor_utils.py
joshloyal/LadderNetwork
f4e9225b4d89094f51a9db5f6e4392b88b965bb7
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf def get_shape(tensor): """Get the shape of a tensor as a python list.""" if isinstance(tensor, tf.Tensor): return tensor.get_shape().as_list() elif isinstance(tensor, (np.array, list, tuple)): return np.shape(tensor) def to_tensor(x, dtype): ...
29.333333
88
0.641529
dfdb897ea276f028cf789d8efb97217f9973c829
18,691
py
Python
hoomd/md/update.py
atravitz/hoomd-blue
54762a4ec1925efa89be8f48001e676d5c4ffb52
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/update.py
atravitz/hoomd-blue
54762a4ec1925efa89be8f48001e676d5c4ffb52
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/update.py
atravitz/hoomd-blue
54762a4ec1925efa89be8f48001e676d5c4ffb52
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2019 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. # Maintainer: joaander / All Developers are free to add commands for new features r""" Update particle properties. When an updater is specified, it acts on the p...
35.199623
339
0.620245
3154ae9a098dc878fc56e4b13ccfe86c7e8432ad
1,545
py
Python
novelsCrawler/spiders/m-lewen8.py
yytang2012/novels-crawler
60f4ad1513ea0772a5304585eef6170273520b24
[ "MIT" ]
1
2019-03-28T09:24:28.000Z
2019-03-28T09:24:28.000Z
novelsCrawler/spiders/m-lewen8.py
yytang2012/novels-crawler
60f4ad1513ea0772a5304585eef6170273520b24
[ "MIT" ]
1
2022-03-02T14:54:57.000Z
2022-03-02T14:54:57.000Z
novelsCrawler/spiders/m-lewen8.py
yytang2012/novels-crawler
60f4ad1513ea0772a5304585eef6170273520b24
[ "MIT" ]
1
2019-03-28T09:24:42.000Z
2019-03-28T09:24:42.000Z
#!/usr/bin/env python # coding=utf-8 """ Created on April 15 2017 @author: yytang """ from scrapy import Selector from libs.misc import get_spider_name_from_domain from libs.polish import polish_title, polish_subtitle, polish_content from novelsCrawler.spiders.novelSpider import NovelSpider class Lewen8Spider(Nove...
30.9
78
0.669256
5be26be1df511c89c4d3c18f01cf0a28aed2ba41
27,643
py
Python
tests/tests.py
KhouloudJ/rocketchat_API
43e9137aeb07a42819c09094afe8c8fc6545f25a
[ "MIT" ]
1
2018-05-23T08:46:55.000Z
2018-05-23T08:46:55.000Z
tests/tests.py
KhouloudJ/rocketchat_API
43e9137aeb07a42819c09094afe8c8fc6545f25a
[ "MIT" ]
null
null
null
tests/tests.py
KhouloudJ/rocketchat_API
43e9137aeb07a42819c09094afe8c8fc6545f25a
[ "MIT" ]
null
null
null
import unittest import uuid from rocketchat_API.APIExceptions.RocketExceptions import RocketAuthenticationException, RocketMissingParamException from rocketchat_API.rocketchat import RocketChat class TestServer(unittest.TestCase): def setUp(self): self.rocket = RocketChat() self.user = 'user1' ...
49.987342
118
0.672322
43b066c67b072d7eb3ad938bfae0cefcde15cc2a
6,130
py
Python
ros/src/twist_controller/dbw_node.py
saikrishnachada/CarND-Capstone
f356dc7ceb52d7f54484e3ad4792eb2b795aab39
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
saikrishnachada/CarND-Capstone
f356dc7ceb52d7f54484e3ad4792eb2b795aab39
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
saikrishnachada/CarND-Capstone
f356dc7ceb52d7f54484e3ad4792eb2b795aab39
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from twist_controller import Controller ''' You can build this node only after you have built (or partially built) th...
45.746269
101
0.588091
f590a795b5b0c2d095988bb51dc4e4aea826a3cb
3,365
py
Python
backend/app/api/db/mongoCurd.py
PY-GZKY/fastapi-crawl-admin
6535054994d11e3c31b4caeae65e8fa0f495d2b7
[ "MIT" ]
13
2021-07-25T15:26:04.000Z
2022-03-02T12:12:02.000Z
backend/app/api/db/mongoCurd.py
PY-GZKY/fastapi-crawl-admin
6535054994d11e3c31b4caeae65e8fa0f495d2b7
[ "MIT" ]
1
2021-07-26T03:26:09.000Z
2021-07-26T09:05:38.000Z
backend/app/api/db/mongoCurd.py
PY-GZKY/fastapi-crawl-admin
6535054994d11e3c31b4caeae65e8fa0f495d2b7
[ "MIT" ]
3
2021-07-26T01:44:24.000Z
2021-07-31T14:31:49.000Z
# -*- coding: utf-8 -* # @Time : 2020/12/22 17:39 from datetime import datetime from app.config import settings from bson import SON from motor.motor_asyncio import AsyncIOMotorClient # import pymongo # client = pymongo.MongoClient("127.0.0.1",27017) # collection = client["okok"]["okok"] # collection.insert_one() #...
42.0625
117
0.685587
3d2b1edd47c3d04b10d0d50eb65f42e2c3c06499
288
py
Python
jetson/capture.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
1
2018-02-21T03:49:54.000Z
2018-02-21T03:49:54.000Z
jetson/capture.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
null
null
null
jetson/capture.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from camera import TrackingCameraRunner from show import imshow if __name__ == "__main__": im = None c = TrackingCameraRunner(0) while True: c.step_frame() im = imshow(c.frame,im=im) c.capture_face('r1')
18
39
0.59375
86f1fb13bf4659389021c6c87c96671baccb25d8
455
py
Python
mysql/pythob_mysql6.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
mysql/pythob_mysql6.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
mysql/pythob_mysql6.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # 对数据库的删除操作 import MySQLdb # 打开数据库连接 conn = MySQLdb.connect("localhost", "root", "123456", "crm") # 使用cursor()方法获取操作游标 cursor = conn.cursor() # SQL 更新语句 sql = "DELETE FROM EMPLOYEE WHERE AGE = '%d'" % (21) #sql = "DELETE FROM EMPLOYEE WHERE AGE > '%d'" % (21) try: ...
15.689655
60
0.617582
442e699715ae536592d07a62507c0f53b0e82a72
10,472
py
Python
nec2utils.py
LordPythonn/nec2-toys
9787f65e182fff8e5b279562e43a6b875435fdbf
[ "MIT" ]
5
2018-05-13T15:26:44.000Z
2020-12-15T17:55:02.000Z
nec2utils.py
LordPythonn/nec2-toys
9787f65e182fff8e5b279562e43a6b875435fdbf
[ "MIT" ]
null
null
null
nec2utils.py
LordPythonn/nec2-toys
9787f65e182fff8e5b279562e43a6b875435fdbf
[ "MIT" ]
null
null
null
''' Copyright 2012 Will Snook (http://willsnook.com) MIT License Utility code for generating antenna geometry files in nec2 card stack format ''' import math # ======================================================================================================= # Field formatting functions (i.e. "columns" in punc...
37.669065
114
0.560924
d44b88171fbf4b06e6758bd7fd0b449848376acf
2,284
py
Python
sdk/python/pulumi_azure_nextgen/network/v20171001/__init__.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20171001/__init__.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20171001/__init__.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .application_gateway import * from .application_security_group import * from .connection_monitor impor...
36.253968
80
0.82268
d62baa8fcc20194489e01a57ed9f014a47598013
1,772
py
Python
setup.py
ministryofjustice/openregister-client
28e73394d6d814b449fc85d2154e2ce4a53a5125
[ "MIT" ]
2
2018-07-28T11:08:18.000Z
2018-11-19T12:33:25.000Z
setup.py
ministryofjustice/openregister-client
28e73394d6d814b449fc85d2154e2ce4a53a5125
[ "MIT" ]
1
2022-01-24T17:20:50.000Z
2022-01-24T17:20:50.000Z
setup.py
ministryofjustice/openregister-client
28e73394d6d814b449fc85d2154e2ce4a53a5125
[ "MIT" ]
1
2021-04-11T06:31:45.000Z
2021-04-11T06:31:45.000Z
#!/usr/bin/env python import importlib import os import sys import warnings from setuptools import find_packages, setup if sys.version_info[0:2] < (3, 6): warnings.warn('This package will only run on Python version 3.6+') root_path = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(root_path, '...
30.551724
105
0.680023
0ad881368d5d6b0ba3c801ee2e9d1264038a1c05
1,264
py
Python
setup.py
haimoz/sympy_monkey_patches
7f0f23c300118d0c28784e9d1faba155aa0d460b
[ "MIT" ]
null
null
null
setup.py
haimoz/sympy_monkey_patches
7f0f23c300118d0c28784e9d1faba155aa0d460b
[ "MIT" ]
null
null
null
setup.py
haimoz/sympy_monkey_patches
7f0f23c300118d0c28784e9d1faba155aa0d460b
[ "MIT" ]
null
null
null
#!/usr/bin/env python try: from setuptools import setup except ImportError: import warnings warnings.warn("`setuptools` not found, using `distutils` instead.") from distutils.core import setup # this is just as a fallback setup( name='sympy_monkey_patches', version='1.0', desc...
35.111111
78
0.594937
11e466389fc46574923e2a71d8ca06f2c411f369
39,781
py
Python
salt/states/pip_state.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
salt/states/pip_state.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
salt/states/pip_state.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Installation of Python Packages Using pip ========================================= These states manage system installed python packages. Note that pip must be installed for these states to be available, so pip states should include a requisite to a pkg.installed state for the package which...
34.47227
116
0.55612
a0633ac4fdce866d9c664a15ec31bdd9904cb73a
753
py
Python
StanCode_project/boggle/largest_digit.py
samuel840712/python_stancode
2f504f9c97f1cddb655992b0a33cd79660228b3c
[ "MIT" ]
null
null
null
StanCode_project/boggle/largest_digit.py
samuel840712/python_stancode
2f504f9c97f1cddb655992b0a33cd79660228b3c
[ "MIT" ]
null
null
null
StanCode_project/boggle/largest_digit.py
samuel840712/python_stancode
2f504f9c97f1cddb655992b0a33cd79660228b3c
[ "MIT" ]
null
null
null
""" File: largest_digit.py Name: ---------------------------------- This file recursively prints the biggest digit in 5 different integers, 12345, 281, 6, -111, -9453 If your implementation is correct, you should see 5, 8, 6, 1, 9 on Console. """ def main(): print(find_largest_digit(12345)) # 5 print(find_larg...
18.825
49
0.621514
af8e63e00fe37855a8f341eb90c1bb5c8946956a
12,270
py
Python
btools/utils/util_mesh.py
MCrafterzz/building_tool
e14c53e700a853190639fc41de09f1e4d7703ca0
[ "MIT" ]
null
null
null
btools/utils/util_mesh.py
MCrafterzz/building_tool
e14c53e700a853190639fc41de09f1e4d7703ca0
[ "MIT" ]
null
null
null
btools/utils/util_mesh.py
MCrafterzz/building_tool
e14c53e700a853190639fc41de09f1e4d7703ca0
[ "MIT" ]
null
null
null
import functools as ft import math import operator import bmesh import bpy from bmesh.types import BMVert, BMEdge, BMFace from .util_common import local_xyz, equal from .util_constants import VEC_UP, VEC_DOWN def get_edit_mesh(): """ Get editmode mesh """ return bpy.context.edit_object.data def create...
31.142132
123
0.663651
b4c400ed9469a39d2e0ff340ae94016f61b5cf1f
398
py
Python
hedger/utils/__init__.py
dmalison/hedger
8db634a484769fb4f3feb945c1847ef50803fafe
[ "MIT" ]
null
null
null
hedger/utils/__init__.py
dmalison/hedger
8db634a484769fb4f3feb945c1847ef50803fafe
[ "MIT" ]
null
null
null
hedger/utils/__init__.py
dmalison/hedger
8db634a484769fb4f3feb945c1847ef50803fafe
[ "MIT" ]
null
null
null
from hedger.utils.map_to_counts import MapToCounts from hedger.utils.csv import CsvReader, CsvWriter from hedger.utils.itertools import all_pairs_product, pairwise_grouper from hedger.utils.os import path_exists, remove from hedger.utils.str_checks import is_str_int, is_str_float from hedger.utils.named_tuple import na...
49.75
70
0.864322
a6194786f7a3c50b5091d32abc8d1b943b55d4ae
1,132
py
Python
onnx/backend/test/case/node/reshape.py
HeliWang/onnx-fixed
266ec0a6a302d99710921f9bc8047d5fe3558328
[ "MIT" ]
null
null
null
onnx/backend/test/case/node/reshape.py
HeliWang/onnx-fixed
266ec0a6a302d99710921f9bc8047d5fe3558328
[ "MIT" ]
null
null
null
onnx/backend/test/case/node/reshape.py
HeliWang/onnx-fixed
266ec0a6a302d99710921f9bc8047d5fe3558328
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import onnx from ..base import Base from . import expect class Reshape(Base): @staticmethod def export(): original_shape = [2, 3, 4...
30.594595
73
0.585689
b632b6c0a6c87dbd7420fe6138cb88920d3ef0f8
2,398
py
Python
fire_net.py
mamintoosi-papers-codes/FireNET
a84aea193c24c2cc053c909e78ab49a630963765
[ "MIT" ]
null
null
null
fire_net.py
mamintoosi-papers-codes/FireNET
a84aea193c24c2cc053c909e78ab49a630963765
[ "MIT" ]
null
null
null
fire_net.py
mamintoosi-papers-codes/FireNET
a84aea193c24c2cc053c909e78ab49a630963765
[ "MIT" ]
null
null
null
# from imageai.Detection.Custom import CustomObjectDetection, CustomVideoObjectDetection # import os import os import sys path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../ImageAI')) if not path in sys.path: sys.path.insert(1, path) del path from imageai.Detection.Custom import CustomObjectDetect...
44.407407
260
0.74437
aa961322f5a5d6f7e64e31d1fc37fcc90a9cce26
33,586
py
Python
tests/test_web.py
arybczak/mopidy-spotify
8ae039cca11e1a1f7915cfa9724ef54e76b390d6
[ "Apache-2.0" ]
null
null
null
tests/test_web.py
arybczak/mopidy-spotify
8ae039cca11e1a1f7915cfa9724ef54e76b390d6
[ "Apache-2.0" ]
null
null
null
tests/test_web.py
arybczak/mopidy-spotify
8ae039cca11e1a1f7915cfa9724ef54e76b390d6
[ "Apache-2.0" ]
null
null
null
import urllib from unittest import mock import pytest import requests import responses import mopidy_spotify from mopidy_spotify import web @pytest.fixture def oauth_client(config): return web.OAuthClient( base_url="https://api.spotify.com/v1", refresh_url="https://auth.mopidy.com/spotify/token"...
29.129228
84
0.641845
1631f7d2eeb68f2000fdde77268c11b9cc9f9cf7
63
py
Python
Idat_Python2022/Semana_7/Practica_While/10_Practica_Sem07_While.py
Kennethguerra3/Python_Ejercicio_2022
cf1297cf1e1585eba699e32c02993818c3d9ecbf
[ "MIT" ]
null
null
null
Idat_Python2022/Semana_7/Practica_While/10_Practica_Sem07_While.py
Kennethguerra3/Python_Ejercicio_2022
cf1297cf1e1585eba699e32c02993818c3d9ecbf
[ "MIT" ]
null
null
null
Idat_Python2022/Semana_7/Practica_While/10_Practica_Sem07_While.py
Kennethguerra3/Python_Ejercicio_2022
cf1297cf1e1585eba699e32c02993818c3d9ecbf
[ "MIT" ]
null
null
null
# 6. Ingresar 10 números y solo mostrar la suma de los impares.
63
63
0.761905
08ef5d70b96590ee29ed0b077e2b05b0597c3369
2,320
py
Python
code/scripts/AD_inpainting/update_publicDataset.py
antoine-spahr/Label-Efficient-Volumetric-Deep-Semantic-Segmentation-of-ICH
61e74a6188fe82843085e87da7d9c4ec7bdbf85e
[ "MIT" ]
4
2021-03-16T09:52:12.000Z
2021-12-23T00:59:18.000Z
code/scripts/AD_inpainting/update_publicDataset.py
antoine-spahr/Label-Efficient-Volumetric-Deep-Semantic-Segmentation-of-ICH
61e74a6188fe82843085e87da7d9c4ec7bdbf85e
[ "MIT" ]
null
null
null
code/scripts/AD_inpainting/update_publicDataset.py
antoine-spahr/Label-Efficient-Volumetric-Deep-Semantic-Segmentation-of-ICH
61e74a6188fe82843085e87da7d9c4ec7bdbf85e
[ "MIT" ]
null
null
null
""" author: Antoine Spahr date : 07.12.2020 ---------- To Do: - """ import os import shutil import glob import sys sys.path.append('../../') import click import pandas as pd from src.utils.print_utils import print_progessbar @click.command() @click.argument("src_data_path", type=click.Path(exists=True)) @click...
35.692308
271
0.640948
354bedefc52c5dd18e62c2f242e47d2f65e1c015
59
py
Python
main/__init__.py
TasS-RV/IYPT-Friction-Oscillator
1f91d642b8b598336b9985fba9622ac80166ce27
[ "MIT" ]
null
null
null
main/__init__.py
TasS-RV/IYPT-Friction-Oscillator
1f91d642b8b598336b9985fba9622ac80166ce27
[ "MIT" ]
null
null
null
main/__init__.py
TasS-RV/IYPT-Friction-Oscillator
1f91d642b8b598336b9985fba9622ac80166ce27
[ "MIT" ]
null
null
null
#Used for discovery when running as python -m "filename.py"
59
59
0.779661
405ac1e55a48846bd3b35ec23da6d90749ca29ee
1,378
py
Python
loadgen/docs/src/doxygen_html_generator.py
CaoZhongZ/inference
58025f8fde679ea864d34f96ecc9f14bf70ece53
[ "Apache-2.0" ]
388
2018-09-13T20:48:58.000Z
2020-11-23T11:52:13.000Z
loadgen/docs/src/doxygen_html_generator.py
CaoZhongZ/inference
58025f8fde679ea864d34f96ecc9f14bf70ece53
[ "Apache-2.0" ]
597
2018-10-08T12:45:29.000Z
2020-11-24T17:53:12.000Z
loadgen/docs/src/doxygen_html_generator.py
CaoZhongZ/inference
58025f8fde679ea864d34f96ecc9f14bf70ece53
[ "Apache-2.0" ]
228
2018-11-06T02:04:14.000Z
2020-12-09T07:51:02.000Z
# Copyright 2019 The MLPerf Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.263158
79
0.706096
5c8d637b07a06d8ccb7b8bbfe808629e15dcf767
528
py
Python
mapsearch/migrations/0004_auto_20200430_1254.py
karimbahgat/mapsearch_site
b224d6555494028b0a5002e997a7c02c7f863a7e
[ "MIT" ]
null
null
null
mapsearch/migrations/0004_auto_20200430_1254.py
karimbahgat/mapsearch_site
b224d6555494028b0a5002e997a7c02c7f863a7e
[ "MIT" ]
null
null
null
mapsearch/migrations/0004_auto_20200430_1254.py
karimbahgat/mapsearch_site
b224d6555494028b0a5002e997a7c02c7f863a7e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-30 10:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mapsearch', '0003_auto_20200429_1536'), ] operations = [ migrations.AddField( model_name='map', name='height', ...
22
49
0.564394
1a72ccbc255e2773b34fc01a283c8918de491017
652
py
Python
Swapify/Swapify/migrations/versions/ea5c888ca880_.py
ishitapadhiar/swapify
319657994f6ed81c679935e74684d52ec8cf61c4
[ "MIT" ]
null
null
null
Swapify/Swapify/migrations/versions/ea5c888ca880_.py
ishitapadhiar/swapify
319657994f6ed81c679935e74684d52ec8cf61c4
[ "MIT" ]
43
2021-02-18T22:37:01.000Z
2021-05-05T19:37:51.000Z
Swapify/Swapify/migrations/versions/ea5c888ca880_.py
ishitapadhiar/swapify
319657994f6ed81c679935e74684d52ec8cf61c4
[ "MIT" ]
null
null
null
"""added song length Revision ID: ea5c888ca880 Revises: d12a3744e77f Create Date: 2021-04-06 21:43:14.518588 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "ea5c888ca880" down_revision = "d12a3744e77f" branch_labels = None depends_on = None def upgrade(): ...
22.482759
75
0.68865
b5ba87c7a2c023bcff1616bc31f28bf7e17cd4a2
1,330
py
Python
colour/examples/colorimetry/examples_yellowness.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
1,380
2015-01-10T12:30:33.000Z
2022-03-30T10:19:57.000Z
colour/examples/colorimetry/examples_yellowness.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
638
2015-01-02T10:49:05.000Z
2022-03-29T10:16:22.000Z
colour/examples/colorimetry/examples_yellowness.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
250
2015-01-21T15:27:19.000Z
2022-03-30T10:23:58.000Z
# -*- coding: utf-8 -*- """ Showcases *yellowness* computations. """ import numpy as np import colour from colour.utilities import message_box message_box('"Yellowness" Computations') XYZ = np.array([95.00000000, 100.00000000, 105.00000000]) message_box( ('Computing "yellowness" using "ASTM D1925" method for ' ...
31.666667
76
0.701504
6a8428738544bdbb9a4923c79ee2a7b2c13840be
5,208
py
Python
openmdao/recorders/csv_recorder.py
colinxs/OpenMDAO
a9a52be29281a23a102c64b577066ee5fc70f4b4
[ "Apache-2.0" ]
null
null
null
openmdao/recorders/csv_recorder.py
colinxs/OpenMDAO
a9a52be29281a23a102c64b577066ee5fc70f4b4
[ "Apache-2.0" ]
null
null
null
openmdao/recorders/csv_recorder.py
colinxs/OpenMDAO
a9a52be29281a23a102c64b577066ee5fc70f4b4
[ "Apache-2.0" ]
null
null
null
"""Class definition for CsvRecorder, a recorder that saves the output into a csv file.""" import csv import numpy import sys from six import string_types, itervalues from openmdao.recorders.base_recorder import BaseRecorder def serialize(val): """ Turn every piece of data into a string; arrays are comma sep...
30.816568
89
0.603111
c6adfaade4332267a9b27d6cfce87e90f19c9477
9,806
py
Python
nimare/workflows/ale.py
akimbler/NiMARE
717697035b04ff0244aa4aa170f5aa16a9fba69a
[ "MIT" ]
null
null
null
nimare/workflows/ale.py
akimbler/NiMARE
717697035b04ff0244aa4aa170f5aa16a9fba69a
[ "MIT" ]
null
null
null
nimare/workflows/ale.py
akimbler/NiMARE
717697035b04ff0244aa4aa170f5aa16a9fba69a
[ "MIT" ]
null
null
null
""" Workflow for running an ALE meta-analysis from a Sleuth text file. """ import os import logging import pathlib from shutil import copyfile import numpy as np from ..io import convert_sleuth_to_dataset from ..meta.ale import ALE, ALESubtraction from ..correct import FWECorrector LGR = logging.getLogger(__name__) ...
42.450216
97
0.704569
cfb9c2c9cea0cc650cc9220a2c2ef94326afcddf
11,326
py
Python
trainDQN.py
sinannasir/Power-Control-asilomar
b930f8ae99fd7fb7107727d31e2737b897fd0f84
[ "MIT" ]
23
2020-09-20T10:57:55.000Z
2022-03-26T16:06:28.000Z
trainDQN.py
shizy123321/Power-Control-asilomar
b930f8ae99fd7fb7107727d31e2737b897fd0f84
[ "MIT" ]
1
2021-12-07T14:14:22.000Z
2021-12-07T14:14:22.000Z
trainDQN.py
shizy123321/Power-Control-asilomar
b930f8ae99fd7fb7107727d31e2737b897fd0f84
[ "MIT" ]
9
2020-10-10T08:06:58.000Z
2021-06-28T10:13:13.000Z
# -*- coding: utf-8 -*- """ @author: sinannasir """ import os os.environ["CUDA_VISIBLE_DEVIKS"] = "-1" import numpy as np import project_backend as pb import time import collections import json import DQN import argparse def main(args): json_file = args.json_file json_file_policy = args...
48.609442
170
0.571252
7519e01798c0f0b20fde8507b624795bfc62c31c
8,385
py
Python
python/SignaliQ/client.py
Gupta23/Signal_iQ
2215289b9f06289cdf77bb4435c09e5fbe70ce90
[ "MIT" ]
null
null
null
python/SignaliQ/client.py
Gupta23/Signal_iQ
2215289b9f06289cdf77bb4435c09e5fbe70ce90
[ "MIT" ]
null
null
null
python/SignaliQ/client.py
Gupta23/Signal_iQ
2215289b9f06289cdf77bb4435c09e5fbe70ce90
[ "MIT" ]
null
null
null
#!/usr/bin/env python ################################################################################ # vim: tabstop=4:shiftwidth=4:expandtab: # Copyright (c) 2017-2018 SIOS Technology Corp. All rights reserved. ################################################################################ """ This is the generic cl...
33.27381
143
0.607394
8848a60c34f94b1a044b3579915f2a31bc483c89
3,041
py
Python
app/__init__.py
DavidWalshe93/The_Phoenix_Project
2e0e0af692d876b845f70d594acc7799c9a78e1e
[ "MIT" ]
null
null
null
app/__init__.py
DavidWalshe93/The_Phoenix_Project
2e0e0af692d876b845f70d594acc7799c9a78e1e
[ "MIT" ]
9
2021-05-09T08:47:47.000Z
2021-05-17T14:42:15.000Z
app/__init__.py
DavidWalshe93/The_Phoenix_Project
2e0e0af692d876b845f70d594acc7799c9a78e1e
[ "MIT" ]
1
2021-08-17T11:32:14.000Z
2021-08-17T11:32:14.000Z
""" Author: David Walshe Date: 10 May 2021 """ import logging from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow from flask_restful import Api from configurations.env_setup import get_config from app.common.logger import init_logger init_logger(get_co...
27.151786
98
0.692864
8fc1a54ee2575d4e13f354a7cc1f55f2e5e9fab0
443
py
Python
src/posts/models.py
banfstory/REST-API-DJANGO
d771884607e4e9bebbef1557a1a1356b4194f924
[ "bzip2-1.0.6" ]
null
null
null
src/posts/models.py
banfstory/REST-API-DJANGO
d771884607e4e9bebbef1557a1a1356b4194f924
[ "bzip2-1.0.6" ]
null
null
null
src/posts/models.py
banfstory/REST-API-DJANGO
d771884607e4e9bebbef1557a1a1356b4194f924
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models from django.utils import timezone from users.models import Profile from forums.models import Forum from django.urls import reverse class Post(models.Model): title = models.CharField(max_length=200) content = models.TextField() date_posted = models.DateTimeField(default=timezone.now) ...
34.076923
61
0.801354
8ec214122143e650e95ac6df5e6fa2f52a5ea3c6
67,700
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_application_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_application_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_application_gateways_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.129173
240
0.668863
4638f04c9074d9daa9343c4b3b667f3d26c0e591
20,550
py
Python
log_complete_bcl2/model_389.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_389.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_389.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.138889
798
0.804136
2a4e16a43720cb11e96048a1e4204df2d58a497e
4,525
py
Python
src/GridCal/Gui/TowerBuilder/test_.py
mzy2240/GridCal
0352f0e9ce09a9c037722bf2f2afc0a31ccd2880
[ "BSD-3-Clause" ]
284
2016-01-31T03:20:44.000Z
2022-03-17T21:16:52.000Z
src/GridCal/Gui/TowerBuilder/test_.py
mzy2240/GridCal
0352f0e9ce09a9c037722bf2f2afc0a31ccd2880
[ "BSD-3-Clause" ]
94
2016-01-14T13:37:40.000Z
2022-03-28T03:13:56.000Z
src/GridCal/Gui/TowerBuilder/test_.py
mzy2240/GridCal
0352f0e9ce09a9c037722bf2f2afc0a31ccd2880
[ "BSD-3-Clause" ]
84
2016-03-29T10:43:04.000Z
2022-02-22T16:26:55.000Z
import sys from PySide2.QtWidgets import * from PySide2 import QtCore, QtGui, QtWidgets class Wire: def __init__(self, name, x, y, gmr, r): self.name = name self.x = x self.y = y self.r = r self.gmr = gmr class WiresCollection(QtCore.QAbstractTableModel): def __ini...
27.760736
87
0.600884
57316e62aa9a27d05e3c27ae9a16f20c8fcc4c30
2,290
py
Python
tests/helpers/test_helper.py
B3RX8OIPDHDT3/yearn-lens
6c120f685529f5cd7b9f1efc417f046ef7bcaf16
[ "MIT" ]
null
null
null
tests/helpers/test_helper.py
B3RX8OIPDHDT3/yearn-lens
6c120f685529f5cd7b9f1efc417f046ef7bcaf16
[ "MIT" ]
null
null
null
tests/helpers/test_helper.py
B3RX8OIPDHDT3/yearn-lens
6c120f685529f5cd7b9f1efc417f046ef7bcaf16
[ "MIT" ]
1
2022-02-07T05:15:48.000Z
2022-02-07T05:15:48.000Z
import pytest from brownie import Contract, interface from ..addresses import * @pytest.fixture def allowancesHelper(AllowancesHelper, management): return AllowancesHelper.deploy({"from": management}) @pytest.fixture def helper(Helper, allowancesHelper, management): helper = Helper.deploy({"from": manageme...
30.533333
69
0.728384
1e01b8483dc5901ad315b46a64d7b74e16f22e09
11,438
py
Python
configs/f92-0_pt.py
EliasVansteenkiste/bare_pytorch_project
3d8536e203bdfa7f6b90db77ade116c8ce23e78c
[ "MIT" ]
1
2017-10-10T18:02:01.000Z
2017-10-10T18:02:01.000Z
configs/f92-0_pt.py
EliasVansteenkiste/bare_pytorch_project
3d8536e203bdfa7f6b90db77ade116c8ce23e78c
[ "MIT" ]
null
null
null
configs/f92-0_pt.py
EliasVansteenkiste/bare_pytorch_project
3d8536e203bdfa7f6b90db77ade116c8ce23e78c
[ "MIT" ]
null
null
null
#copy of j25 import numpy as np from collections import namedtuple from functools import partial from PIL import Image import data_transforms import data_iterators import pathfinder import utils import app import torch import torchvision import torch.optim as optim import torch.nn as nn import torch.nn.functional...
39.305842
135
0.517048
ea332d37f7ccce3c1a8b49b99365ea3f5a83d60a
17,324
py
Python
pycoral/utils.py
envzhu/barreleye
658a177704273cf9002d64e72022810286d280da
[ "MIT" ]
null
null
null
pycoral/utils.py
envzhu/barreleye
658a177704273cf9002d64e72022810286d280da
[ "MIT" ]
null
null
null
pycoral/utils.py
envzhu/barreleye
658a177704273cf9002d64e72022810286d280da
[ "MIT" ]
null
null
null
""" Misc utility library DO NOT import any library that needs extra python package, since this might cause failure of commands that uses this library to install python packages. """ import os import errno import time import signal import subprocess import io import select import logging import logging.handlers impor...
30.607774
84
0.578273
96f9cc54acc44403659dd4ac91ea9f669910d71d
1,416
py
Python
tests/unit/plugins/module_utils/utils.py
CiscoDevNet/appdynamics-ansible-agent-installer
c348b26cb344582c4a82fdd176f04a847e7c2b11
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/module_utils/utils.py
CiscoDevNet/appdynamics-ansible-agent-installer
c348b26cb344582c4a82fdd176f04a847e7c2b11
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/module_utils/utils.py
CiscoDevNet/appdynamics-ansible-agent-installer
c348b26cb344582c4a82fdd176f04a847e7c2b11
[ "Apache-2.0" ]
1
2022-03-30T11:34:33.000Z
2022-03-30T11:34:33.000Z
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json from ansible_collections.appdynamics.agent_installer.tests.unit.compat import unittest from ansible_collections.appdynamics.agent_installer.tests.unit.compat.mock import patch from ansible.module_utils import basic fro...
27.764706
106
0.72387
67c891b899d86794a61e5dc921efbe89a2b5ab43
6,730
py
Python
main.py
CodeLongAndProsper90/TuxEdit
c8a60353d34937b055d0b59db839d5c560881e78
[ "BSD-3-Clause" ]
null
null
null
main.py
CodeLongAndProsper90/TuxEdit
c8a60353d34937b055d0b59db839d5c560881e78
[ "BSD-3-Clause" ]
null
null
null
main.py
CodeLongAndProsper90/TuxEdit
c8a60353d34937b055d0b59db839d5c560881e78
[ "BSD-3-Clause" ]
null
null
null
############################################################# # Start Icon made by Freepik from www.flaticon.com # Copyright 2020 Scott Little # By the way, the "Real programmers use Emacs" in the about box is just a clue to the easter egg. I use Vim, and this app was made in Vim ...
23.950178
211
0.615156
93ef27e358d3fe897892c13bbaad99c53184456e
5,348
py
Python
kubernetes/client/models/v1_secret_key_selector.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2019-10-07T13:54:36.000Z
2019-10-07T13:54:36.000Z
kubernetes/client/models/v1_secret_key_selector.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
8
2020-12-21T03:18:50.000Z
2022-03-02T03:06:30.000Z
kubernetes/client/models/v1_secret_key_selector.py
pllsxyc/python
442ebc019056c2dc246be94f85cf61f1e1d26a88
[ "Apache-2.0" ]
1
2021-03-16T16:05:33.000Z
2021-03-16T16:05:33.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
29.711111
133
0.589753
9dfcaefde54345aeaec6777253a76e77418eab3c
925
py
Python
muninn/tools/list_tags.py
LeoBreebaart/muninn
ac54adbac59aa35af13554c77080d2881154b6a8
[ "BSD-3-Clause" ]
3
2017-05-03T13:41:35.000Z
2022-03-30T10:22:58.000Z
muninn/tools/list_tags.py
LeoBreebaart/muninn
ac54adbac59aa35af13554c77080d2881154b6a8
[ "BSD-3-Clause" ]
34
2017-03-31T07:55:28.000Z
2021-01-29T14:26:26.000Z
muninn/tools/list_tags.py
LeoBreebaart/muninn
ac54adbac59aa35af13554c77080d2881154b6a8
[ "BSD-3-Clause" ]
3
2019-02-08T03:22:20.000Z
2021-04-07T11:21:53.000Z
# # Copyright (C) 2014-2021 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import muninn from .utils import create_parser, parse_args_and_run def list_tags(args): with muninn.open(args.archive) as archive: for product in archive.search(where=args.expression, ...
34.259259
102
0.699459
09cb58bfb82c21009ce18f59a99aed64eef044e7
212
py
Python
src/functions.py
vasyllll95/ChatPatternBuillder
b0ccbd5a91b7b02ee45d1dbacbee1ddd12ddc191
[ "MIT" ]
null
null
null
src/functions.py
vasyllll95/ChatPatternBuillder
b0ccbd5a91b7b02ee45d1dbacbee1ddd12ddc191
[ "MIT" ]
null
null
null
src/functions.py
vasyllll95/ChatPatternBuillder
b0ccbd5a91b7b02ee45d1dbacbee1ddd12ddc191
[ "MIT" ]
null
null
null
def search_with_delete(source_list, target_list): for target_item in target_list: if target_item not in source_list: return False source_list.remove(target_item) return True
23.555556
49
0.698113
fc5c4d2386bc61e02c7c9cd4aafab4cc54875cc7
6,862
py
Python
tools/api_gen/_source/link_handler.py
Gates-Zeng/PyGNS3
2e84dce91c6c6705c7fd5875846daef1fe301243
[ "MIT" ]
9
2017-08-11T09:31:42.000Z
2020-03-31T12:59:16.000Z
tools/api_gen/_source/link_handler.py
Gates-Zeng/PyGNS3
2e84dce91c6c6705c7fd5875846daef1fe301243
[ "MIT" ]
3
2019-02-22T13:28:34.000Z
2019-09-09T16:15:20.000Z
tools/api_gen/_source/link_handler.py
Gates-Zeng/PyGNS3
2e84dce91c6c6705c7fd5875846daef1fe301243
[ "MIT" ]
7
2017-10-05T18:25:13.000Z
2021-06-28T10:23:18.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2016 GNS3 Technologies Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
35.739583
159
0.609152
2afcf79055899470f3adc00222086b01748650ee
1,853
py
Python
c/ou/src/gen_run_10.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
c/ou/src/gen_run_10.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
c/ou/src/gen_run_10.py
timtyree/bgmc
891e003a9594be9e40c53822879421c2b8c44eed
[ "MIT" ]
null
null
null
import numpy as np niter=1500 #trials per worker r_values=np.array([0.1,0.2,0.3,0.4])#,0.2,0.3,0.4,0.5,.6,.7,.8,.9,1.,2.])#cm D_values=np.array([2.,20.])#0.2,1.0,1.5,2.0,3.,4.,5.])#cm^2/s # A_values=np.array([25.])#20.25,25,39,50,56.25,100,156.25,189,250])[::-1]#cm^2 # L_values=np.sqrt(A_values)#cm L_values=[10] kappa_...
48.763158
172
0.542903
655fff6938c7a64eb513c43a5a1f13d5a1edf9f6
1,784
py
Python
dautil/string.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
dautil/string.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
dautil/string.py
ickc/dautil-py
9cdd87080ec85774d7386e3cd2f55c2bc6b6aadd
[ "BSD-3-Clause" ]
null
null
null
from collections import Counter from bs4 import BeautifulSoup from nltk import word_tokenize from nltk.corpus import stopwords, wordnet from nltk.stem import LancasterStemmer, WordNetLemmatizer STEMMER = None LEMMATIZER = None WORDS = None def strip_html(text): '''get plain text from html ''' soup = Bea...
26.235294
87
0.655269
9de3a610b33801d6c330adfc92910405074dd73a
399
py
Python
f/leadmanager/leadmanager/wsgi.py
nikitayusupov/FullStackHW
5f59c3cbb645cea8ee7aa7102df7528e95e414e2
[ "MIT" ]
null
null
null
f/leadmanager/leadmanager/wsgi.py
nikitayusupov/FullStackHW
5f59c3cbb645cea8ee7aa7102df7528e95e414e2
[ "MIT" ]
6
2020-02-12T03:05:47.000Z
2021-06-10T19:32:06.000Z
f/leadmanager/leadmanager/wsgi.py
nikitayusupov/FullStackHW
5f59c3cbb645cea8ee7aa7102df7528e95e414e2
[ "MIT" ]
null
null
null
""" WSGI config for leadmanager project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
23.470588
78
0.789474
4374c809d9727f89b44a3a4464c5d9ea8a35b1a1
2,750
py
Python
jtyoui/sogou/__init__.py
vanton/Jtyoui
c44d66b038ac5f4e2d75b68b3493d02f7b7b385e
[ "MIT" ]
1
2019-12-24T00:57:47.000Z
2019-12-24T00:57:47.000Z
jtyoui/sogou/__init__.py
liangxioa/Jtyoui
5a584cbf12d644b6c4fb13167d8841a383afbbac
[ "MIT" ]
null
null
null
jtyoui/sogou/__init__.py
liangxioa/Jtyoui
5a584cbf12d644b6c4fb13167d8841a383afbbac
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2019/1/24 0024 # @Email : jtyoui@qq.com # @Software : PyCharm import requests from jtyoui.web import random from urllib.parse import quote import re import struct """ 爬取搜狗只需要三步: 第一步:搜索关键字。爬取关键字的下载链接 第二步:筛选下载链接,进行下载 第三步:将下载的搜狗文件转化为UTF-8格式 """ clas...
33.13253
97
0.56
d8a9fd63a1a39aac842e3df92b5ce0af83aa7028
3,881
py
Python
views.py
shiv27395/Smart-Cam-2017
aab7b1275050239a55dfc6d1f13e3806e29f1cee
[ "MIT" ]
null
null
null
views.py
shiv27395/Smart-Cam-2017
aab7b1275050239a55dfc6d1f13e3806e29f1cee
[ "MIT" ]
null
null
null
views.py
shiv27395/Smart-Cam-2017
aab7b1275050239a55dfc6d1f13e3806e29f1cee
[ "MIT" ]
null
null
null
from django.shortcuts import render from myapp.models import Action, Mode, Motion, Door from rest_framework import viewsets from django.template import RequestContext, loader from myapp.serializers import ModeSerializer, ActionSerializer import requests import json from django.http import HttpResponse IP = '3...
33.17094
70
0.588766
e22983abc3012a7d3c54a7b207258bc54e626bf9
947
py
Python
lib/kube_objs/__init__.py
rleite-olx/rubiks
db12e1bc3a21baf12b8795aa9602fe1ce3802059
[ "Apache-2.0" ]
null
null
null
lib/kube_objs/__init__.py
rleite-olx/rubiks
db12e1bc3a21baf12b8795aa9602fe1ce3802059
[ "Apache-2.0" ]
null
null
null
lib/kube_objs/__init__.py
rleite-olx/rubiks
db12e1bc3a21baf12b8795aa9602fe1ce3802059
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2017-2018 OLX from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import importlib import os import sys def _loader(): # load all the '.py' files in the directory as imports class Dummy(object): ...
29.59375
97
0.648363
164db7a9eba986c6f78937754676275f8f7740d2
14,664
py
Python
plugins/modules/oci_blockstorage_volume_backup_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_blockstorage_volume_backup_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_blockstorage_volume_backup_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
37.793814
153
0.609315
c390b9ae594d2a9615945ca5ad7773b891d824d4
6,012
py
Python
code/shifter.py
jkentwhite/through-a-data-point
4dfb141b34b1f120761ea8e3d0876d302edc01c4
[ "MIT" ]
null
null
null
code/shifter.py
jkentwhite/through-a-data-point
4dfb141b34b1f120761ea8e3d0876d302edc01c4
[ "MIT" ]
null
null
null
code/shifter.py
jkentwhite/through-a-data-point
4dfb141b34b1f120761ea8e3d0876d302edc01c4
[ "MIT" ]
3
2019-02-16T01:23:42.000Z
2019-03-01T04:40:36.000Z
import sys import RPi.GPIO as GPIO import time # NOTES # each motor has a number 0-6 # each entry in the dictionary for each motor has a value for CLOCK, DATA and LATCH # TODO need to determine values for going up and going down GPIO.setmode(GPIO.BCM) ## 1 CLOCK_1 = 18 #green DATA_1 = 23 #blue LATCH_1 = 24 #orange C...
24.439024
86
0.482868
e6dc36b934c68dad12b31b848a95eed660fad740
4,178
py
Python
nmcli/dummy/_device.py
meramsey/nmcli
d2ce0cfbad13cb61bb9f4e1c674a8a9c2ad2f7ed
[ "MIT" ]
1
2022-03-19T05:59:53.000Z
2022-03-19T05:59:53.000Z
nmcli/dummy/_device.py
meramsey/nmcli
d2ce0cfbad13cb61bb9f4e1c674a8a9c2ad2f7ed
[ "MIT" ]
45
2021-01-04T12:05:07.000Z
2021-04-21T14:35:55.000Z
nmcli/dummy/_device.py
meramsey/nmcli
d2ce0cfbad13cb61bb9f4e1c674a8a9c2ad2f7ed
[ "MIT" ]
2
2021-03-26T12:35:07.000Z
2021-05-01T02:15:16.000Z
from typing import List, Tuple from .._device import DeviceControlInterface, DeviceDetails from ..data.device import Device, DeviceWifi from ..data.hotspot import Hotspot class DummyDeviceControl(DeviceControlInterface): @property def show_args(self): return self._show_args @property def co...
32.138462
77
0.629727
ea6f66f27c201a4a816707f1e6338ba3493cd6f9
4,718
py
Python
Python/mask_form.py
maojh/Hacktoberfest
12562a109677664def6d5cee3ab7cb119c85f1d9
[ "MIT" ]
1
2020-10-06T01:20:07.000Z
2020-10-06T01:20:07.000Z
python/mask_form.py
devnarayanp02/Hacktoberfest
ff1c1db99ed9a408d84c326126ff07d946d3987b
[ "MIT" ]
null
null
null
python/mask_form.py
devnarayanp02/Hacktoberfest
ff1c1db99ed9a408d84c326126ff07d946d3987b
[ "MIT" ]
null
null
null
// JavaScript Document //adiciona mascara de cnpj function MascaraCNPJ(cnpj){ if(mascaraInteiro(cnpj)==false){ event.returnValue = false; } return formataCampo(cnpj, '00.000.000/0000-00', event); } //adiciona mascara de cep function MascaraCep(cep){ if(mas...
31.66443
125
0.476897
0761075fc32be460c89c658e29c1d548abb324da
10,176
py
Python
rulers.py
msoguz44/URL-Phishing-Detection
3041d01187efd9c2b2c03192907a988e9b252994
[ "MIT" ]
2
2022-01-25T22:12:07.000Z
2022-01-26T16:08:11.000Z
rulers.py
msoguz44/URL-Phishing-Detection
3041d01187efd9c2b2c03192907a988e9b252994
[ "MIT" ]
null
null
null
rulers.py
msoguz44/URL-Phishing-Detection
3041d01187efd9c2b2c03192907a988e9b252994
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 8 11:58:33 2021 @author: msoguz """ import pandas as pd from datetime import * import whois as who import OpenSSL import ssl, socket import datetime, smtplib import argparse from selenium import webdriver import os import requests import sys from b...
25.632242
232
0.578223
7e0941db3169a670feeddd8f02312e08f03e65be
4,499
py
Python
cloud9_expnpay.py
depaulmillz/Cloud9-Exploit-With-Reverse-Shell-Payload
7856f7398c12ebf41558fa5b8d4a04b93ee989b3
[ "MIT" ]
null
null
null
cloud9_expnpay.py
depaulmillz/Cloud9-Exploit-With-Reverse-Shell-Payload
7856f7398c12ebf41558fa5b8d4a04b93ee989b3
[ "MIT" ]
null
null
null
cloud9_expnpay.py
depaulmillz/Cloud9-Exploit-With-Reverse-Shell-Payload
7856f7398c12ebf41558fa5b8d4a04b93ee989b3
[ "MIT" ]
null
null
null
#!/usr/bin/python from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions...
37.181818
113
0.608135
1529e7d10310543106371fc2c87eb57779fa4c00
1,425
py
Python
site-packages/oslo_service/__init__.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/oslo_service/__init__.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/oslo_service/__init__.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-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...
32.386364
75
0.74386
d301664cea8e9c63d53aee861e79a7ed907af257
8,721
py
Python
rplugin/python3/chromatica/compile_args_database.py
IngoHeimbach/chromatica.nvim
962f2a18b4d67dd4cd00c67db96bb46f2f5ca5c1
[ "MIT" ]
362
2016-07-04T07:51:50.000Z
2022-02-06T20:47:12.000Z
rplugin/python3/chromatica/compile_args_database.py
IngoHeimbach/chromatica.nvim
962f2a18b4d67dd4cd00c67db96bb46f2f5ca5c1
[ "MIT" ]
75
2016-06-23T15:22:26.000Z
2020-09-25T03:12:40.000Z
rplugin/python3/chromatica/compile_args_database.py
IngoHeimbach/chromatica.nvim
962f2a18b4d67dd4cd00c67db96bb46f2f5ca5c1
[ "MIT" ]
31
2016-07-12T07:08:02.000Z
2020-03-21T12:25:50.000Z
from chromatica import logger from chromatica.util import load_external_module import chromatica.util as util load_external_module(__file__, "") from clang import cindex import os import re log = logger.logging.getLogger("chromatica.compile_args") DEFAULT_STD={"c" : ["-std=c11"], \ "cpp" : ["-std=c+...
36.48954
128
0.512671
3804fa5eddcc52c80bdd4d8c160f5ed11943bd6d
8,050
py
Python
pool/singleton.py
chuwt/pool-reference
bb584383049d25ce8ded1305655f5ce4f4c6fe64
[ "Apache-2.0" ]
2
2021-07-15T16:53:25.000Z
2021-08-17T14:48:16.000Z
pool/singleton.py
chuwt/pool-reference
bb584383049d25ce8ded1305655f5ce4f4c6fe64
[ "Apache-2.0" ]
null
null
null
pool/singleton.py
chuwt/pool-reference
bb584383049d25ce8ded1305655f5ce4f4c6fe64
[ "Apache-2.0" ]
1
2021-08-08T15:47:34.000Z
2021-08-08T15:47:34.000Z
from typing import List, Optional, Tuple import logging from blspy import G2Element from chia.consensus.coinbase import pool_parent_id from chia.pools.pool_puzzles import ( create_absorb_spend, solution_to_extra_data, get_most_recent_singleton_coin_from_coin_spend, pool_state_to_inner_puzzle, creat...
41.927083
120
0.705217
1b86479e3bcd6432e636f35715c62ce3405cabdc
1,659
py
Python
twemproxy/tests/conftest.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
twemproxy/tests/conftest.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
twemproxy/tests/conftest.py
OuesFa/integrations-core
0ffe4ca306580a2e775b515152384034c2dfdc03
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest import requests from datadog_checks.dev import docker_run from datadog_checks.twemproxy import Twemproxy from . import common def setup_post_data(): requests.put('http://{}:2379/v2/ke...
30.722222
115
0.693791
284d200636aa61a8cafbbff017a1550fca4a8322
1,431
py
Python
client.py
ShadowHMF/python-custom-tcp
b0e315372954928f5fadf2178ffdbc93434667a6
[ "MIT" ]
null
null
null
client.py
ShadowHMF/python-custom-tcp
b0e315372954928f5fadf2178ffdbc93434667a6
[ "MIT" ]
null
null
null
client.py
ShadowHMF/python-custom-tcp
b0e315372954928f5fadf2178ffdbc93434667a6
[ "MIT" ]
null
null
null
import socket import threading import configparser from counterUtils import CounterUtils config = configparser.ConfigParser() config.read('conf.ini') def heartbeat(server_address): connection.sendto(b'con-h 0x00', server_address) heartbeat_timer = threading.Timer(3, heartbeat, [server_address]) ...
28.62
87
0.638015
297153db64882f35e031ae785a4cfb60f0ca0ae1
1,512
py
Python
res/process_obj.py
spjewkes/vr_project
9d5ba5da92eb2286b785234f9126bed078cd4e9e
[ "MIT" ]
null
null
null
res/process_obj.py
spjewkes/vr_project
9d5ba5da92eb2286b785234f9126bed078cd4e9e
[ "MIT" ]
null
null
null
res/process_obj.py
spjewkes/vr_project
9d5ba5da92eb2286b785234f9126bed078cd4e9e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='Generate master description from Wavefront file') parser.add_argument("file", help="Wavefront file to convert") parser.add_argument("-v", "--verbose", action="store_true", help="increase verbosit...
30.24
99
0.545635
093af878285a43641d917d4534b7c1ef9cfc884d
357
py
Python
udp/udpServer.py
StolerHua/networkHomework
e1daaddb3e9abf0049c3ba5d325f4cd1c889d133
[ "MIT" ]
null
null
null
udp/udpServer.py
StolerHua/networkHomework
e1daaddb3e9abf0049c3ba5d325f4cd1c889d133
[ "MIT" ]
null
null
null
udp/udpServer.py
StolerHua/networkHomework
e1daaddb3e9abf0049c3ba5d325f4cd1c889d133
[ "MIT" ]
null
null
null
from socket import * Server_ADDRESS=('192.168.1.109',1234) s = socket(AF_INET, SOCK_DGRAM) s.bind(Server_ADDRESS) print '...waiting for message..' while True: data, address = s.recvfrom(1024) print "receive data: %s from %s" % (data, address) s.sendto('Hi,proxyServer.I have receive data: %s from address %s...
32.454545
95
0.694678
dd493a01ff3891b921239c227667c0c02ca38109
530
py
Python
tests/tests_demo_user_orders_cancel.py
Bitsgap/Bitstap-API-websockets-py
734447d52eac3f4e15bc7c84d8c67b40f990dca4
[ "MIT" ]
5
2021-04-16T21:07:36.000Z
2021-12-08T14:36:02.000Z
tests/tests_demo_user_orders_cancel.py
Bitsgap/Bitstap-API-websockets-py
734447d52eac3f4e15bc7c84d8c67b40f990dca4
[ "MIT" ]
null
null
null
tests/tests_demo_user_orders_cancel.py
Bitsgap/Bitstap-API-websockets-py
734447d52eac3f4e15bc7c84d8c67b40f990dca4
[ "MIT" ]
3
2020-11-30T17:49:53.000Z
2021-08-04T05:55:22.000Z
import logging from unittest import TestCase from client import BitsgapClientWs from tests.keys import public_key,private_key class TestWSDemoOrdersCancel(TestCase): def my_handler(message): logging.info(message) authClient = BitsgapClientWs(public_key, private_key) authClient.subscribe_logs()...
20.384615
57
0.773585
d1d5f871a944caab5953814216e2a7617b5ef387
2,324
py
Python
iotbx/data_manager/sequence.py
toastisme/cctbx_project
d1a25147b5958822b6923fb55260749ccf9350ff
[ "BSD-3-Clause-LBNL" ]
null
null
null
iotbx/data_manager/sequence.py
toastisme/cctbx_project
d1a25147b5958822b6923fb55260749ccf9350ff
[ "BSD-3-Clause-LBNL" ]
null
null
null
iotbx/data_manager/sequence.py
toastisme/cctbx_project
d1a25147b5958822b6923fb55260749ccf9350ff
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function ''' ''' from iotbx.data_manager import DataManagerBase from libtbx import Auto # ============================================================================= class SequenceDataManager(DataManagerBase): datatype = 'sequence' # --------------------...
35.212121
79
0.670826
2733abfef980cd549487edb3382b53f6a173a82f
1,192
py
Python
setup.py
dghoshal/gitstats
5fc6c9dbecaa672d4abe3444f279e2a526909a53
[ "MIT" ]
null
null
null
setup.py
dghoshal/gitstats
5fc6c9dbecaa672d4abe3444f279e2a526909a53
[ "MIT" ]
1
2021-06-01T22:20:06.000Z
2021-06-01T22:20:06.000Z
setup.py
dghoshal/gitstats
5fc6c9dbecaa672d4abe3444f279e2a526909a53
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages import sys python_version = sys.version_info install_deps = [] with open('requirements.txt') as file_requirements: install_deps = file_requirements.read().splitlines() version = '' with open('VERSION') as f: version = f.readline().strip() se...
32.216216
89
0.623322
c794f4e49a50553a32468814aab36cdd3d72fb4e
5,443
py
Python
tests/test_monitoring.py
Brewgarten/c4-system-manager
6fdec33ced4b1cb32d82a24cd168447a899b7e10
[ "MIT" ]
null
null
null
tests/test_monitoring.py
Brewgarten/c4-system-manager
6fdec33ced4b1cb32d82a24cd168447a899b7e10
[ "MIT" ]
1
2017-10-17T21:51:40.000Z
2017-10-17T21:51:40.000Z
tests/test_monitoring.py
Brewgarten/c4-system-manager
6fdec33ced4b1cb32d82a24cd168447a899b7e10
[ "MIT" ]
null
null
null
import mock import os import tempfile import pytest from datetime import datetime, timedelta from c4.backends.etcdBackend import EtcdBackend #@UnusedImport from c4.system.monitoring import (Monitor, BackendFile, BackendSMLog, ...
40.318519
113
0.648907
cf5783d29a57724a0f2adda99f876da5635082ca
2,094
py
Python
lisapi/helpers/helpers.py
bergpb/LisaPi
0e9c18c38d3d9485b438cf8d880a06f044562cc4
[ "MIT" ]
7
2018-11-14T00:52:06.000Z
2021-04-10T12:26:47.000Z
lisapi/helpers/helpers.py
bergpb/LisaPi
0e9c18c38d3d9485b438cf8d880a06f044562cc4
[ "MIT" ]
8
2019-01-14T23:31:02.000Z
2020-04-24T02:25:59.000Z
lisapi/helpers/helpers.py
bergpb/LisaPi
0e9c18c38d3d9485b438cf8d880a06f044562cc4
[ "MIT" ]
4
2019-10-01T16:31:59.000Z
2022-02-21T03:33:04.000Z
import os import platform import random import socket from subprocess import getstatusoutput import requests import psutil from flask import jsonify operational_system = platform.machine()[0:4] if operational_system == 'armv': """Change pin in Raspberry Pi device""" import RPi.GPIO as gpio gpio.setmode...
24.928571
94
0.604107
0afef904e6e3ff22d93b903ac7fbf89a4ab3c3da
459
py
Python
Files_WebScraping/Task7.py
VikashK21/Coders_Life
89af8bba2163d6331b760de33786caa49892da33
[ "MIT" ]
1
2021-11-30T10:30:16.000Z
2021-11-30T10:30:16.000Z
Files_WebScraping/Task7.py
VikashK21/WebScraping
560f316a787c4c3e8b51fc83a23acbc80cdb8fe5
[ "MIT" ]
null
null
null
Files_WebScraping/Task7.py
VikashK21/WebScraping
560f316a787c4c3e8b51fc83a23acbc80cdb8fe5
[ "MIT" ]
null
null
null
import json files=open('/home/navgurukul20/Desktop/VIKASH_K/Files_requests_API+WebS/Task5_6.json', 'r') v3=json.load(files) dic={} def analyse_movies_directors(movies_list): global s for cout in movies_list: if cout in dic: s=dic[cout] s+=1 dic.update({cout:...
22.95
91
0.616558
5d5d2c4f75003847306aad88a7a1f4804ee48707
2,076
py
Python
tensorflow/python/keras/_impl/keras/datasets/boston_housing.py
harunpehlivan/tensorflow
376e2cfdab31f4da251ea2e50992a9bf97fd171b
[ "Apache-2.0" ]
22
2018-01-13T14:52:47.000Z
2018-07-05T01:00:28.000Z
tensorflow/python/keras/_impl/keras/datasets/boston_housing.py
hamzabekkouri/tensorflow
d87a9fbbc5f49ec5ae8eb52c62628f0b1a0bf67f
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/_impl/keras/datasets/boston_housing.py
hamzabekkouri/tensorflow
d87a9fbbc5f49ec5ae8eb52c62628f0b1a0bf67f
[ "Apache-2.0" ]
3
2018-01-20T06:47:34.000Z
2018-05-07T19:14:34.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.032787
80
0.678227
6ea0b0113c14d1249ee12890e2b1895304b0a13a
837
py
Python
ooobuild/dyn/report/report_engine.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/report/report_engine.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/report/report_engine.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
32.192308
74
0.756272
e51b71da06332782653d7603053d96dd622610e5
7,396
py
Python
queryset.py
Zadigo/krysalid
c0ec96f4fcdc0b7309ed3c68250df96f054cf4d0
[ "MIT" ]
null
null
null
queryset.py
Zadigo/krysalid
c0ec96f4fcdc0b7309ed3c68250df96f054cf4d0
[ "MIT" ]
null
null
null
queryset.py
Zadigo/krysalid
c0ec96f4fcdc0b7309ed3c68250df96f054cf4d0
[ "MIT" ]
null
null
null
import itertools from typing import Generator, Iterator, List, Tuple, Union from krysalid.utils.iteration import (drop_while, filter_by_name, filter_by_name_or_attrs) class BaseQueryset: def __init__(self): self._data = [] def __repr__(self): return f"<Q...
31.206751
94
0.576257
db356cb5fa44ac529491426b607cf7bda3a7a6e5
396
py
Python
src/watts/__init__.py
nstauff/watts
40581e7061af3821fb8b9e879f8fe1104701e1f6
[ "MIT" ]
null
null
null
src/watts/__init__.py
nstauff/watts
40581e7061af3821fb8b9e879f8fe1104701e1f6
[ "MIT" ]
null
null
null
src/watts/__init__.py
nstauff/watts
40581e7061af3821fb8b9e879f8fe1104701e1f6
[ "MIT" ]
1
2022-02-19T17:02:54.000Z
2022-02-19T17:02:54.000Z
# SPDX-FileCopyrightText: 2022 UChicago Argonne, LLC # SPDX-License-Identifier: MIT from .plugin import * from .plugin_openmc import * from .plugin_moose import * from .plugin_pyarc import * from .plugin_sas import * from .template import * from .parameters import * from .database import * # This allows a user to wri...
23.294118
52
0.770202
3acab79c81e42470646f47d86ce6909ed2aac58f
21,883
py
Python
qa/rpc-tests/replace-by-fee.py
allgamecoin-dev/allgamecoin
20a6276e5ebdb1d1bc822e3bcd6081153e1073ed
[ "MIT" ]
4
2018-06-24T08:35:34.000Z
2018-08-27T02:48:26.000Z
qa/rpc-tests/replace-by-fee.py
allgamescoindev/allgamescoin
20a6276e5ebdb1d1bc822e3bcd6081153e1073ed
[ "MIT" ]
null
null
null
qa/rpc-tests/replace-by-fee.py
allgamescoindev/allgamescoin
20a6276e5ebdb1d1bc822e3bcd6081153e1073ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test replace by fee code # from test_framework.test_framework import AllGamesCoinTestFramework from ...
37.343003
105
0.601654
04e6d00dd423da5db45325756cd541e445b7a4d0
385
py
Python
core/asgi.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
2
2022-02-11T17:14:18.000Z
2022-02-14T01:02:19.000Z
core/asgi.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
5
2022-03-01T03:51:45.000Z
2022-03-02T23:31:25.000Z
core/asgi.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
1
2022-03-20T23:38:18.000Z
2022-03-20T23:38:18.000Z
""" ASGI config for core project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
22.647059
78
0.781818
e35921cf1fe50133ea8676aafbf9e6923d740982
9,580
py
Python
REGSim module/Functions/Gluerun.py
LaksE91/REGSim
0b554a3f850d0895238bfa3c9119d727d64db808
[ "MIT" ]
8
2021-08-11T20:09:39.000Z
2022-03-10T23:24:37.000Z
REGSim module/Functions/Gluerun.py
LaksE91/REGSim
0b554a3f850d0895238bfa3c9119d727d64db808
[ "MIT" ]
null
null
null
REGSim module/Functions/Gluerun.py
LaksE91/REGSim
0b554a3f850d0895238bfa3c9119d727d64db808
[ "MIT" ]
1
2021-09-04T04:24:16.000Z
2021-09-04T04:24:16.000Z
# -*- coding: utf-8 -*- """ Last edited on Tue May 28 15:38:37 2019 @author: Lakshmi """ import numpy as np import numpy.matlib import pandas as pd from metrics import nse_metric from Utils import fillrech from pumpfunc import sinefunc, linearfunc, stepfunc, trapzfunc # defining class to create object ...
36.988417
107
0.531002
51496e1ebdd6408bba43250070a2dbf807b878a3
1,180
py
Python
utils/logger.py
jamberin/configman
a6175af1bb2f7acfc084285b926bd4253c6d61c2
[ "MIT" ]
null
null
null
utils/logger.py
jamberin/configman
a6175af1bb2f7acfc084285b926bd4253c6d61c2
[ "MIT" ]
null
null
null
utils/logger.py
jamberin/configman
a6175af1bb2f7acfc084285b926bd4253c6d61c2
[ "MIT" ]
null
null
null
""" Custom Logger Class """ import logging class Logger(object): """ Custom Logger Class """ def __init__(self): """ Set up logger """ ch = logging.StreamHandler() formatter = logging.Formatter('%(asctime)s || [%(levelname)-8.8s] :: %(message)s') ch.setFormatter(formatter) ...
29.5
90
0.582203
b26dc45ba60f6c2c030a222a396fcc3979f2a50c
1,887
py
Python
configs/SL/config_craigpb-warm_cifar10.py
krishnatejakk/AUTOMATA
fd0cf58058e39660f88d9d6b4101e30a497f6ce2
[ "MIT" ]
null
null
null
configs/SL/config_craigpb-warm_cifar10.py
krishnatejakk/AUTOMATA
fd0cf58058e39660f88d9d6b4101e30a497f6ce2
[ "MIT" ]
null
null
null
configs/SL/config_craigpb-warm_cifar10.py
krishnatejakk/AUTOMATA
fd0cf58058e39660f88d9d6b4101e30a497f6ce2
[ "MIT" ]
1
2022-03-16T05:55:12.000Z
2022-03-16T05:55:12.000Z
# Learning setting config = dict(setting="SL", is_reg = False, dataset=dict(name="cifar10", datadir="../data", feature="dss", type="image"), dataloader=dict(shuffle=True, ...
37
96
0.338103
092a29d6f9bf86ab6843f638289734ce4dc3072f
4,196
py
Python
xplique/plots/image.py
DavidPetiteau/xplique
34ed027e1f47fdc88a87f6bb783b253327e77f54
[ "MIT" ]
72
2021-09-27T10:09:40.000Z
2022-03-24T06:33:41.000Z
xplique/plots/image.py
DavidPetiteau/xplique
34ed027e1f47fdc88a87f6bb783b253327e77f54
[ "MIT" ]
32
2021-09-30T09:37:16.000Z
2022-03-17T11:00:16.000Z
xplique/plots/image.py
DavidPetiteau/xplique
34ed027e1f47fdc88a87f6bb783b253327e77f54
[ "MIT" ]
4
2021-10-02T16:50:45.000Z
2022-01-11T08:26:55.000Z
""" Pretty plots option for explanations """ from math import ceil import tensorflow as tf import numpy as np from matplotlib import pyplot as plt from ..types import Optional, Union def _standardize_image(image: Union[tf.Tensor, np.ndarray], clip_percentile: Optional[float] = None) -> np.nda...
30.627737
97
0.628217
4489db4e8611ecaba6766d929ebd5d3a1e295f8b
4,229
py
Python
Autocoders/Python/src/fprime_ac/utils/cosmos/writers/PartialWriter.py
m-aleem/fprime
ae8a2a43a39d0e8a1908a82b48106467357d6cba
[ "Apache-2.0" ]
1
2020-05-12T03:43:36.000Z
2020-05-12T03:43:36.000Z
Autocoders/Python/src/fprime_ac/utils/cosmos/writers/PartialWriter.py
m-aleem/fprime
ae8a2a43a39d0e8a1908a82b48106467357d6cba
[ "Apache-2.0" ]
5
2020-05-26T21:38:02.000Z
2020-05-26T21:43:33.000Z
Autocoders/Python/src/fprime_ac/utils/cosmos/writers/PartialWriter.py
m-aleem/fprime
ae8a2a43a39d0e8a1908a82b48106467357d6cba
[ "Apache-2.0" ]
3
2020-09-05T18:17:21.000Z
2020-11-15T04:06:24.000Z
#!/bin/env python #=============================================================================== # NAME: PartialWriter.py # # DESCRIPTION: This writer generates the partial files (start with _) in # the COSMOS/config/targets/DEPLOYMENT_NAME/cmd_tlm/* directories that contain # configuration data for each channel, c...
46.472527
182
0.63372
03665d7773ea87a4c2c7b48289fe5c5e9158786a
498
py
Python
acubed/CLI/test.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
acubed/CLI/test.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
acubed/CLI/test.py
AaronBerman/acubed
22f0471ea56ba8a793fcc22af7881479ade78cc2
[ "Apache-2.0" ]
null
null
null
import unittest from objects.member import Member class MemberTest(unittest.TestCase): def setUp(self): self.user = Member() def test_setMemberUsername(self): self.user.setUsername("username") self.assertEqual("username", self.user.username) def test_getMemberUsername(self...
22.636364
55
0.65261
4a3a3959ffc40bca024e647189ca33641b7fea08
1,253
py
Python
6_feedback_light_microscopy_phenotypes/ImagePhenotypes.py
josemiserra/CLEMSite_notebooks
6bf1124f8c18c8c64e06bb87947597597bb318a2
[ "MIT" ]
1
2021-04-14T19:02:06.000Z
2021-04-14T19:02:06.000Z
6_feedback_light_microscopy_phenotypes/ImagePhenotypes.py
josemiserra/CLEMSite_notebooks
6bf1124f8c18c8c64e06bb87947597597bb318a2
[ "MIT" ]
null
null
null
6_feedback_light_microscopy_phenotypes/ImagePhenotypes.py
josemiserra/CLEMSite_notebooks
6bf1124f8c18c8c64e06bb87947597597bb318a2
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import cam_communicator_class as cc import time ### change settings here # nx, ny = (680, 680) slide = 1 jobname = "Pattern16" ipaddress = '127.0.0.1' filename = 'selected_cells.csv' #ipaddress = '10.11.113.30' # sign is opposite of what it is in CellProfiler offset_X = 0 #-45 o...
25.06
157
0.766161
ef38b50fddb041d8c49d53191114e2313c2baabf
3,089
py
Python
tckdb/backend/app/models/ess.py
TCKDB/TCKDB
2ac60e47e178aa05bebdf41394344a7e5428eb86
[ "MIT" ]
2
2019-04-24T15:34:12.000Z
2020-04-06T15:29:50.000Z
tckdb/backend/app/models/ess.py
TCKDB/TCKDB
2ac60e47e178aa05bebdf41394344a7e5428eb86
[ "MIT" ]
8
2020-05-19T19:01:22.000Z
2021-01-12T08:15:54.000Z
tckdb/backend/app/models/ess.py
tckdb/TCKDB
2ac60e47e178aa05bebdf41394344a7e5428eb86
[ "MIT" ]
1
2019-11-03T20:03:08.000Z
2019-11-03T20:03:08.000Z
""" TCKDB backend app models electronic structure software (ess) module """ from sqlalchemy import Column, Integer, String from tckdb.backend.app.db.base_class import Base from tckdb.backend.app.models.common import MsgpackExt class ESS(Base): """ A class for representing a TCKDB ESS item (ESS = electr...
35.505747
103
0.627711
58c17583cfc388b0514761d0a38a3db98f61dc99
7,940
py
Python
features.py
floschne/TERN
d693a63bf7b5e83f499a1cce686e20baf679616b
[ "Apache-2.0" ]
45
2020-04-22T15:17:52.000Z
2022-03-13T14:34:42.000Z
features.py
floschne/TERN
d693a63bf7b5e83f499a1cce686e20baf679616b
[ "Apache-2.0" ]
9
2020-05-17T14:31:24.000Z
2022-03-02T17:33:59.000Z
features.py
floschne/TERN
d693a63bf7b5e83f499a1cce686e20baf679616b
[ "Apache-2.0" ]
11
2020-04-23T18:22:36.000Z
2021-03-23T06:15:15.000Z
# This script extract features and put them in shelve format import os import torch import tqdm import argparse import yaml import re import itertools import pickle import numpy as np from torch.utils.data import DataLoader # from graphrcnn.extract_features import extract_visual_features # from torchvision.datasets.co...
42.688172
129
0.614484
274a0c0d8d32bcfce24adb4a9391ca525570675a
6,470
py
Python
infrapki/sign.py
oko/infrapki
2dd5499e1ea74a923167a9420f32594ada8cd853
[ "MIT" ]
null
null
null
infrapki/sign.py
oko/infrapki
2dd5499e1ea74a923167a9420f32594ada8cd853
[ "MIT" ]
1
2021-08-07T18:38:32.000Z
2021-08-07T18:38:32.000Z
infrapki/sign.py
oko/infrapki
2dd5499e1ea74a923167a9420f32594ada8cd853
[ "MIT" ]
null
null
null
import abc from cryptography import exceptions, x509 from cryptography.x509 import extensions as x509ext from cryptography.x509 import oid class SignaturePolicyResult(object): def __init__(self, errors): self.errors = errors def ok(self): return len(self.errors) == 0 class SignaturePolicy(...
32.512563
88
0.538794
42d85b3aef8faa774feab5a0e1e90a0b870a3808
382
py
Python
tests/module/test_slot_shadowing.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
tests/module/test_slot_shadowing.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
tests/module/test_slot_shadowing.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2009 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD from snakeoil.test.slot_shadowing import SlotShadowing class Test_slot_shadowing(SlotShadowing): target_namespace = "pkgcore" ignore_all_import_failures = True def _default_module_blacklister(self, target): return target i...
27.285714
84
0.777487
9272a63f6bd8ce2ddcdbe9d4d86a38c68c9ebbc7
2,018
py
Python
src/engine/SCons/Tool/f90.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
1
2019-09-18T06:37:02.000Z
2019-09-18T06:37:02.000Z
src/engine/SCons/Tool/f90.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
src/engine/SCons/Tool/f90.py
EmanueleCannizzaro/scons
6baa4e65cdf4df6951473545b69435711864e509
[ "MIT" ]
null
null
null
"""engine.SCons.Tool.f90 Tool-specific initialization for the generic Posix f90 Fortran compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2016 The SCons Foundation # # Permis...
32.031746
102
0.754212
128cdea8323f0044690d708e3ccfbf92d0907219
7,255
py
Python
src/provlake/prov_lake.py
Bhaskers-Blu-Org1/multi-data-lineage-capture-py
10ce2a4a20c1d98d42bcd2257a3f68ca0ec7cd56
[ "Apache-2.0" ]
null
null
null
src/provlake/prov_lake.py
Bhaskers-Blu-Org1/multi-data-lineage-capture-py
10ce2a4a20c1d98d42bcd2257a3f68ca0ec7cd56
[ "Apache-2.0" ]
null
null
null
src/provlake/prov_lake.py
Bhaskers-Blu-Org1/multi-data-lineage-capture-py
10ce2a4a20c1d98d42bcd2257a3f68ca0ec7cd56
[ "Apache-2.0" ]
1
2020-07-30T10:29:22.000Z
2020-07-30T10:29:22.000Z
import os import json from time import time from provlake import _ProvPersister import logging logger = logging.getLogger('PROV') class ProvLake(object): def __init__(self, prospective_provenance_dict_path: str=None, prospective_provenance_dict: dict = None, sto...
35.915842
122
0.584287
fc1cdcbb14624f0fa6ccbea9f52184f2b3694405
617
py
Python
Lib/site-packages/pylint/testutils/functional_test_file.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/testutils/functional_test_file.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/testutils/functional_test_file.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt __all__ = [ "FunctionalTestFile", "NoFileError", "parse_python_version", ] import war...
25.708333
80
0.737439