hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b396dcea2118a2aa602d71e0316ba7f272ff9599
12,212
py
Python
tensorflow/contrib/image/python/ops/image_ops.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
5
2019-01-17T08:47:31.000Z
2020-05-06T06:10:56.000Z
tensorflow/contrib/image/python/ops/image_ops.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
1
2021-02-02T23:00:07.000Z
2021-02-02T23:00:07.000Z
tensorflow/contrib/image/python/ops/image_ops.py
salonirk11/tensorflow
7fda1bb1177c69fa7bf80d20d5c5e7aaa25816e7
[ "Apache-2.0" ]
3
2017-06-09T10:39:33.000Z
2021-04-08T16:13:30.000Z
# Copyright 2016 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...
40.706667
85
0.704717
ea76774901164db5c7d7dddab288b8ac93176876
199
py
Python
setup.py
zh217/infirunner
ceb4b7b3a7ca9c080d537f2e601d1be197e27395
[ "MIT" ]
1
2020-01-15T02:52:04.000Z
2020-01-15T02:52:04.000Z
setup.py
zh217/infirunner
ceb4b7b3a7ca9c080d537f2e601d1be197e27395
[ "MIT" ]
null
null
null
setup.py
zh217/infirunner
ceb4b7b3a7ca9c080d537f2e601d1be197e27395
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='infirunner', version='', packages=['infirunner'], url='', license='', author='Ziyang Hu', author_email='', description='' )
15.307692
28
0.582915
99c8e6da86ebc7d4fe67c8913963acdf9ec5f63e
2,131
py
Python
intro.py
mycicle/teaching
7154e708464a185ca193079dd0a94640e32dfb1f
[ "MIT" ]
null
null
null
intro.py
mycicle/teaching
7154e708464a185ca193079dd0a94640e32dfb1f
[ "MIT" ]
null
null
null
intro.py
mycicle/teaching
7154e708464a185ca193079dd0a94640e32dfb1f
[ "MIT" ]
null
null
null
# What are we actually doing """ giving a computer a set of instructions because computers are dumb! """ """ If they are so dumb, how do you tell your computer what to do? The answer -> Code the more specific answer -> functions """ """ So! what is a function? A function is a package of instr...
22.670213
205
0.680432
bdac8d72a5bf0e1a6ba9f7cbd238602796737013
532
py
Python
km/migrations/0035_auto_20211010_1522.py
SDTakeuchi/kiitePRJCT
ca9712ec435971a916e206b760b88a10e7ccbb28
[ "MIT" ]
1
2021-07-29T02:28:05.000Z
2021-07-29T02:28:05.000Z
km/migrations/0035_auto_20211010_1522.py
SDTakeuchi/kiitePRJCT
ca9712ec435971a916e206b760b88a10e7ccbb28
[ "MIT" ]
null
null
null
km/migrations/0035_auto_20211010_1522.py
SDTakeuchi/kiitePRJCT
ca9712ec435971a916e206b760b88a10e7ccbb28
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-10-10 06:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('km', '0034_post_requested_parent_industry'), ] operations = [ migrations.AlterField( model_name='post', name='is_pub...
22.166667
54
0.571429
24e56b0402a7e89464b5119235eff012e21136d3
227
py
Python
Chambers_Jess/Assignments/stars_part2.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Chambers_Jess/Assignments/stars_part2.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Chambers_Jess/Assignments/stars_part2.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
def draw_stars(list): for value in list: if type(value) is int: print "*" * value else: print value[0].lower() * len(value) draw_stars([4, "Tom", 1, "Michael", 5, 7, "Jimmy Smith"])
25.222222
57
0.524229
64752f8cd4c9b732a70cc7bfde253e5a81b07a99
4,245
py
Python
aws-ssh.py
raulanatol/aws-ssh
c9b9c63a6cb5d309d1b759cf6c31a169f3bf2ff4
[ "MIT" ]
null
null
null
aws-ssh.py
raulanatol/aws-ssh
c9b9c63a6cb5d309d1b759cf6c31a169f3bf2ff4
[ "MIT" ]
null
null
null
aws-ssh.py
raulanatol/aws-ssh
c9b9c63a6cb5d309d1b759cf6c31a169f3bf2ff4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import subprocess import requests import boto3 import logging import re import os from botocore.exceptions import ClientError logger = logging.getLogger() logger.setLevel(logging.DEBUG) handler = logging.StreamHandler() handler.setLevel(logging.INFO) formatter = logging.Formatter("%(levelname)s ...
30.985401
134
0.674676
b577c3cae5d3d0171c12ad4539125328415fc491
5,955
py
Python
colcon_ros_gradle/task/ros_gradle/build.py
Theosakamg/colcon-ros-gradle
39ea1ebb25d139848f17d58404836e88c2dce8b1
[ "Apache-2.0" ]
null
null
null
colcon_ros_gradle/task/ros_gradle/build.py
Theosakamg/colcon-ros-gradle
39ea1ebb25d139848f17d58404836e88c2dce8b1
[ "Apache-2.0" ]
null
null
null
colcon_ros_gradle/task/ros_gradle/build.py
Theosakamg/colcon-ros-gradle
39ea1ebb25d139848f17d58404836e88c2dce8b1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Esteve Fernandez # Licensed under the Apache License, Version 2.0 import ast from distutils import dir_util import glob import os from pathlib import Path import re import shutil from colcon_ros_gradle.task.gradle import GRADLE_EXECUTABLE from colcon_ros_gradle.task.gradle import IS_WINDOWS from colc...
36.759259
92
0.659614
b47a6dd9762542bec7025bc4b2dcb7a6a2caec24
9,709
py
Python
ecasb2share/tests/ecas_b2share_test.py
statiksof/ECAS-B2SHARE
bdaf939877e78a3f847c56f5d6bc5077b6dea719
[ "MIT" ]
null
null
null
ecasb2share/tests/ecas_b2share_test.py
statiksof/ECAS-B2SHARE
bdaf939877e78a3f847c56f5d6bc5077b6dea719
[ "MIT" ]
null
null
null
ecasb2share/tests/ecas_b2share_test.py
statiksof/ECAS-B2SHARE
bdaf939877e78a3f847c56f5d6bc5077b6dea719
[ "MIT" ]
null
null
null
import unittest import requests import json from ecasb2share.ecasb2shareclient import EcasShare from ecasb2share.exceptions import MetadataKeyMissingException, MetadataException, PidSyntaxException from unittest.mock import Mock, patch, mock_open from nose.tools import assert_is_not_none RECORD = json.load(open('test...
35.826568
127
0.63127
a0807ec7a0066225a8cef38829884a34fe637bd0
4,680
py
Python
app/lookupValues/routes.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
app/lookupValues/routes.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
app/lookupValues/routes.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
from flask import flash, jsonify, redirect, render_template, request, url_for from flask_login import login_required from . import lookupValues from . forms import LookupValueForm from .. import db from .. decorators import adminRequired from .. models import Lookup, LookupValue modelName = "Lookup Value" @lookupValu...
45
152
0.756624
4c74c5a340c866c16ebb82ea2cd97b9fddf3bfba
12,093
py
Python
libs/networks/slim_nets/vgg.py
SJTU-Det/R3Det
3e092fa65dee2b9f7722b0985b3791811a1de5ae
[ "Apache-2.0" ]
850
2020-10-27T08:51:54.000Z
2022-03-30T15:12:06.000Z
FPN_Tensorflow_Rotation/libs/networks/slim_nets/vgg.py
feiyanghahahaha/DOTA-DOAI
eb252da4a32c5b961720a129266881c848659263
[ "MIT" ]
157
2018-12-02T07:37:39.000Z
2022-03-16T09:49:11.000Z
FPN_Tensorflow_Rotation/libs/networks/slim_nets/vgg.py
feiyanghahahaha/DOTA-DOAI
eb252da4a32c5b961720a129266881c848659263
[ "MIT" ]
211
2018-05-31T02:44:34.000Z
2022-03-03T10:48:01.000Z
# Copyright 2016 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 applicable ...
45.462406
84
0.663772
3a1d55b462de9b10e495108e032c37aef94db945
528
py
Python
run.py
Moskari/xcamserver
ed8cedf7cd0308b1e5fd9a8f74cec5e95d6c4978
[ "MIT" ]
null
null
null
run.py
Moskari/xcamserver
ed8cedf7cd0308b1e5fd9a8f74cec5e95d6c4978
[ "MIT" ]
null
null
null
run.py
Moskari/xcamserver
ed8cedf7cd0308b1e5fd9a8f74cec5e95d6c4978
[ "MIT" ]
null
null
null
''' Created on 13.12.2016 @author: Samuli Rahkonen ''' import xcamserver from xcamserver import app, socket_server from xcamserver.camera_worker import DummyWorker, CameraWorker from xcamserver.socket_server import SocketServer # from xcamserver import socketio #import socket # Uncomment to debug/test without real ca...
24
62
0.799242
9391ef90ce286453210103d37de93d91ece38a91
350
py
Python
20_Parallel_Computing/7_Reader_Writer_Problem (Reader Preference, Writer Starvation)/Writer.py
vtkrishn/EPI
985cdbb3e78a643a75938bf2c0811f984238b7f7
[ "MIT" ]
null
null
null
20_Parallel_Computing/7_Reader_Writer_Problem (Reader Preference, Writer Starvation)/Writer.py
vtkrishn/EPI
985cdbb3e78a643a75938bf2c0811f984238b7f7
[ "MIT" ]
null
null
null
20_Parallel_Computing/7_Reader_Writer_Problem (Reader Preference, Writer Starvation)/Writer.py
vtkrishn/EPI
985cdbb3e78a643a75938bf2c0811f984238b7f7
[ "MIT" ]
null
null
null
import random class Writer(Thread): def set(self, d, l): self.data = d self.lock = l def run(self): while True: #locks for write self.lock.write_lock() #generate data self.data.append(random.choice([0,1,2,3,4])) #unlock ...
23.333333
56
0.508571
84026f4e10f7e99ce6971b1e54c15ba159a733ed
1,285
py
Python
setup.py
leonardbinet/treelib
9efcdb36dcede3763454b60081ab94ed7a4ebce7
[ "Apache-2.0" ]
null
null
null
setup.py
leonardbinet/treelib
9efcdb36dcede3763454b60081ab94ed7a4ebce7
[ "Apache-2.0" ]
null
null
null
setup.py
leonardbinet/treelib
9efcdb36dcede3763454b60081ab94ed7a4ebce7
[ "Apache-2.0" ]
null
null
null
from setuptools import setup __version__ = '1.6.1' setup( name="treelib", version=__version__, url='https://github.com/caesar0301/treelib', author='Xiaming Chen', author_email='chenxm35@gmail.com', description='A Python 2/3 implementation of tree structure.', long_description='''This is a...
35.694444
90
0.617899
7ee97b84f8f72306270b5e0cd90c1357fe8067f3
13,208
py
Python
kitsune/wiki/events.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
4
2021-05-17T11:38:08.000Z
2021-08-19T06:42:39.000Z
kitsune/wiki/events.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
10
2020-12-13T06:14:14.000Z
2022-01-21T20:00:59.000Z
kitsune/wiki/events.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
3
2020-06-14T06:59:46.000Z
2020-06-15T14:45:56.000Z
import difflib import logging from django.conf import settings from django.contrib.sites.models import Site from django.core.urlresolvers import reverse as django_reverse from django.utils.translation import ugettext as _, ugettext_lazy as _lazy from bleach import clean from tidings.events import InstanceEvent, Event...
37.737143
84
0.62871
9ce6ae2bfbc38bd9660fb2a8edba81763a52f049
100
py
Python
molecule/default/tests/test_default.py
osism/ansible-template
0c98f20cd372872fb0e28a24451822a97b24a5ed
[ "Apache-2.0" ]
null
null
null
molecule/default/tests/test_default.py
osism/ansible-template
0c98f20cd372872fb0e28a24451822a97b24a5ed
[ "Apache-2.0" ]
6
2018-07-15T13:34:42.000Z
2020-10-30T00:25:11.000Z
molecule/default/tests/test_default.py
osism/ansible-template
0c98f20cd372872fb0e28a24451822a97b24a5ed
[ "Apache-2.0" ]
null
null
null
def test_dummy_file(host): f = host.file("/tmp/dummy") assert f.exists assert f.is_file
20
31
0.66
0d8e4a77895b2f5d9d437e24affd81744b729efd
362
py
Python
server/config.py
emiliorighi/biogenome-portal-dev
772f26bc7d08b255d9c6ec96ff9ca0bb775c8a7c
[ "MIT" ]
null
null
null
server/config.py
emiliorighi/biogenome-portal-dev
772f26bc7d08b255d9c6ec96ff9ca0bb775c8a7c
[ "MIT" ]
null
null
null
server/config.py
emiliorighi/biogenome-portal-dev
772f26bc7d08b255d9c6ec96ff9ca0bb775c8a7c
[ "MIT" ]
null
null
null
import os class BaseConfig(object): SECRET_KEY = os.environ['SECRET_KEY'] DEBUG = True MONGODB_DB = os.environ['DB_NAME'] MONGODB_HOST = os.environ['DB_HOST'] MONGODB_PORT = int(os.environ['DB_PORT']) MONGODB_USERNAME = os.environ['DB_USER'] MONGODB_PASSWORD = os.environ['DB_PASS'] JWT_...
30.166667
49
0.698895
1a0207fa7015922cf802d01a77e352f1c8cc19ea
4,415
py
Python
tests/test_cmdline.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
null
null
null
tests/test_cmdline.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
null
null
null
tests/test_cmdline.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
null
null
null
# vim:fileencoding=utf-8:noet '''Tests for shell.py parser''' from powerline.shell import get_argparser, finish_args from tests import TestCase from tests.lib import replace_attr import sys if sys.version_info < (3,): from io import BytesIO as StrIO else: from io import StringIO as StrIO # NOQA class TestParser...
35.894309
108
0.517327
a5b2ac839dea007335d24b32ecdd7a6b24f4ea73
7,218
py
Python
lite/pylite/test/test_network_cuda.py
togetherwhenyouwant/MegEngine
dbb3232c31d6b34bafd22c30fa8cbaac2fc7164c
[ "Apache-2.0" ]
5,168
2020-03-19T06:10:04.000Z
2022-03-31T11:11:54.000Z
lite/pylite/test/test_network_cuda.py
togetherwhenyouwant/MegEngine
dbb3232c31d6b34bafd22c30fa8cbaac2fc7164c
[ "Apache-2.0" ]
286
2020-03-25T01:36:23.000Z
2022-03-31T10:26:33.000Z
lite/pylite/test/test_network_cuda.py
togetherwhenyouwant/MegEngine
dbb3232c31d6b34bafd22c30fa8cbaac2fc7164c
[ "Apache-2.0" ]
515
2020-03-19T06:10:05.000Z
2022-03-30T09:15:59.000Z
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
32.223214
88
0.675256
4ef8cc7aa43bcfae592eab3011e393b74a6111a0
2,771
py
Python
utils.py
luisvalesilva/fix_plate_readings
68ec6a8b9a3788edfdb46126d629d33a1434a7a2
[ "MIT" ]
null
null
null
utils.py
luisvalesilva/fix_plate_readings
68ec6a8b9a3788edfdb46126d629d33a1434a7a2
[ "MIT" ]
null
null
null
utils.py
luisvalesilva/fix_plate_readings
68ec6a8b9a3788edfdb46126d629d33a1434a7a2
[ "MIT" ]
null
null
null
"""Helper functions for signal_at_orf""" import pandas as pd import os import time from colorama import Fore, Back, Style def print_elapsed_time(t0): """ Given a start time (time.time() object), computes and prints time elapsed since then. Keyword arguments: :param start_time: Start time to comp...
29.168421
108
0.640202
700c429bf07e82d4a4165e71d67517ae3f400a60
1,215
py
Python
lambdas/helper/logger.py
marko-xrite/aws-aurora-serverless-data-api-sam
eb5a1f6bf66a5bdf43698a21b5d1f0b25e95b97a
[ "MIT-0" ]
102
2019-07-02T18:23:13.000Z
2022-02-14T14:44:27.000Z
lambdas/helper/logger.py
marko-xrite/aws-aurora-serverless-data-api-sam
eb5a1f6bf66a5bdf43698a21b5d1f0b25e95b97a
[ "MIT-0" ]
1
2020-03-10T12:05:10.000Z
2021-11-30T02:20:13.000Z
lambdas/helper/logger.py
Aarti-Kaprwan/aws-aurora-serverless-data-api-sam
eb5a1f6bf66a5bdf43698a21b5d1f0b25e95b97a
[ "MIT-0" ]
31
2019-07-03T06:50:29.000Z
2022-02-11T11:24:48.000Z
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
45
87
0.769547
a98fc912d75a76cdb1be4588266b987bba44c301
132,209
py
Python
src/wordleAssistant.py
saund/wordle-assistant
753c210f6b6c3770bf5b0cb7a5ff2f3819137957
[ "MIT" ]
null
null
null
src/wordleAssistant.py
saund/wordle-assistant
753c210f6b6c3770bf5b0cb7a5ff2f3819137957
[ "MIT" ]
null
null
null
src/wordleAssistant.py
saund/wordle-assistant
753c210f6b6c3770bf5b0cb7a5ff2f3819137957
[ "MIT" ]
null
null
null
#wordleAssistant.py #Eric Saund #2022/01/25 - 2022/02/05 #I was going to avoid wasting time on wordle but my friend Don provoked me to do this. #And then, much worse, after I learned about the optimal solution I wanted to replicate it. # #This program is a Wordle Assistant. #Given some set of candidate probe words and...
45.308088
372
0.647218
6488dd9ba68f07c76e3ac21a49e89b3bcfb98a36
2,779
py
Python
brick/api/views/versions.py
Thingee/brick
fd07d9a492194b6d7a8d75affcf269e29a1cc454
[ "Apache-2.0" ]
1
2022-03-25T21:33:27.000Z
2022-03-25T21:33:27.000Z
brick/api/views/versions.py
Thingee/brick
fd07d9a492194b6d7a8d75affcf269e29a1cc454
[ "Apache-2.0" ]
null
null
null
brick/api/views/versions.py
Thingee/brick
fd07d9a492194b6d7a8d75affcf269e29a1cc454
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2011 OpenStack Foundation # 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...
33.083333
79
0.583663
a5f7d25196eae0ee54e4a2959ec0a6b8263b80e4
917
py
Python
tensorpack/tensorpack/examples/FasterRCNN/smb_conn.py
ignc-research/FailureDetection
8d28c8ef21858cecb7e2a2d29c3b95cc06ac89e3
[ "MIT" ]
1
2022-01-06T08:53:22.000Z
2022-01-06T08:53:22.000Z
tensorpack/tensorpack/examples/FasterRCNN/smb_conn.py
ignc-research/FailureDetection
8d28c8ef21858cecb7e2a2d29c3b95cc06ac89e3
[ "MIT" ]
null
null
null
tensorpack/tensorpack/examples/FasterRCNN/smb_conn.py
ignc-research/FailureDetection
8d28c8ef21858cecb7e2a2d29c3b95cc06ac89e3
[ "MIT" ]
null
null
null
import tempfile from smb.SMBConnection import SMBConnection import os #SMBConnection parameters: <username, pwd, client_name, server_name, use_ntlm_v2 = True> conn = SMBConnection('mytest', 'mytest', 'jetson-desktop', 'Legion', use_ntlm_v2 = True) assert conn.connect('192.168.0.10', 139) # sharing server ip address ...
36.68
88
0.688113
507aea3896234163c83972c46e5d45c8c7569026
90
py
Python
src/nsre/__init__.py
Xowap/nsre
ae2adc4eb49bf0c60ec9cba020f729ad74ed65c5
[ "WTFPL" ]
1
2020-05-31T18:57:23.000Z
2020-05-31T18:57:23.000Z
src/nsre/__init__.py
Xowap/nsre
ae2adc4eb49bf0c60ec9cba020f729ad74ed65c5
[ "WTFPL" ]
5
2019-07-26T11:23:12.000Z
2020-05-31T19:32:37.000Z
src/nsre/__init__.py
Xowap/nsre
ae2adc4eb49bf0c60ec9cba020f729ad74ed65c5
[ "WTFPL" ]
1
2020-06-03T06:37:51.000Z
2020-06-03T06:37:51.000Z
from .ast import * from .matchers import * from .regexp import * from .shortcuts import *
18
24
0.733333
1ec1b2e071c353ed751802932339f053997742f8
3,618
py
Python
lib/surface/compute/routers/remove_interface.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/routers/remove_interface.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/routers/remove_interface.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
# Copyright 2015 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 ag...
34.132075
76
0.709232
6a8413b5dd845b33d07681ea5d9a1df073345e72
1,087
py
Python
tests/micropython/writable_ns.py
yannpom/pycopy
2b16d0f4520308b83172e2da2432d9c93bb37c69
[ "MIT" ]
null
null
null
tests/micropython/writable_ns.py
yannpom/pycopy
2b16d0f4520308b83172e2da2432d9c93bb37c69
[ "MIT" ]
null
null
null
tests/micropython/writable_ns.py
yannpom/pycopy
2b16d0f4520308b83172e2da2432d9c93bb37c69
[ "MIT" ]
null
null
null
import micropython try: micropython.writable_ns except AttributeError: print("SKIP") raise SystemExit try: str.foometh = lambda x: x + "!" except AttributeError: print("expected AttributeError #1") micropython.writable_ns(str, True) # Patch existing method - this should not relocate namespace dic...
21.74
78
0.722171
47777469aa6902f3edb5886c75c4e0edac15329c
1,798
py
Python
mayan/apps/documents/literals.py
Fourdee/mayan-edms
39a94f8b4fed519a3b20ab419e920ea53c11eb84
[ "Apache-2.0" ]
4
2019-02-17T08:35:42.000Z
2019-03-28T06:02:11.000Z
mayan/apps/documents/literals.py
zhoubear/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
1
2018-10-11T13:01:34.000Z
2018-10-11T13:01:34.000Z
mayan/apps/documents/literals.py
prezi/mayan-edms
e9bc10a056c3379b57115c6e83022f48c6298e1d
[ "Apache-2.0" ]
3
2019-01-29T13:21:57.000Z
2019-10-27T03:20:15.000Z
from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from common.literals import TIME_DELTA_UNIT_DAYS CHECK_DELETE_PERIOD_INTERVAL = 60 CHECK_TRASH_PERIOD_INTERVAL = 60 DELETE_STALE_STUBS_INTERVAL = 60 * 10 # 10 minutes DEFAULT_DELETE_PERIOD = 30 DEFAULT_DELETE_TIME_UNIT =...
43.853659
73
0.584538
904be8de4b23ef57d98c32e02d6605433c59156e
10,676
py
Python
talentalps/constants.py
calumlim/talentalps
cc66eabf71e04b6ab5831ee15f57e771cba82279
[ "FSFAP" ]
null
null
null
talentalps/constants.py
calumlim/talentalps
cc66eabf71e04b6ab5831ee15f57e771cba82279
[ "FSFAP" ]
null
null
null
talentalps/constants.py
calumlim/talentalps
cc66eabf71e04b6ab5831ee15f57e771cba82279
[ "FSFAP" ]
null
null
null
LEVEL = ( ('entry', 'Entry Level'), ('associate', 'Associate Level'), ('senior', 'Senior Level'), ('director', 'Director Level'), ('executive', 'Executive Level') ) EMPLOYMENT_TYPE_CHOICES = ( ('full', 'Full time'), ('part', 'Part time'), ('fixed', 'Fixed term'), ('contract', 'Contr...
30.243626
95
0.499625
da3c5141c6711e22ea8ee4bbbf6d8f4d99c372b5
163
py
Python
unused_stuff/save_image.py
JDJGInc/JDJGBotSupreme
fd8a5679f05cb90ebec8dbfc297445f9773ebe5f
[ "MIT" ]
4
2020-07-10T04:02:23.000Z
2021-02-13T16:38:54.000Z
unused_stuff/save_image.py
JDJGInc/JDJGBotSupreme
fd8a5679f05cb90ebec8dbfc297445f9773ebe5f
[ "MIT" ]
3
2021-07-13T15:38:39.000Z
2022-02-15T15:17:17.000Z
unused_stuff/save_image.py
johndpope/JDJGBotSupreme
64fde0e169811e1866eb29174ac5dd8e052d830a
[ "MIT" ]
2
2020-08-01T11:15:09.000Z
2022-02-15T11:46:22.000Z
async with aiohttp.ClientSession() as cs: async with cs.get(url) as r: image=await r.read() f = open("reverse.png","wb") f.write(image) f.close()
27.166667
41
0.625767
c8db08e43549deb49c0af9f323f7aae9bd1c351d
576
py
Python
bitwise.py
shivam1212-shivam/OPEN_CV
c2c1765b4dea1a97ae4e6f12eaa49ccf80e08cd3
[ "MIT" ]
null
null
null
bitwise.py
shivam1212-shivam/OPEN_CV
c2c1765b4dea1a97ae4e6f12eaa49ccf80e08cd3
[ "MIT" ]
null
null
null
bitwise.py
shivam1212-shivam/OPEN_CV
c2c1765b4dea1a97ae4e6f12eaa49ccf80e08cd3
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np blank = np.zeros((400,400),dtype='uint8') rectangle = cv.rectangle(blank.copy(), (30,30), (370,370), 255, -1) circle = cv.circle(blank.copy(), (200,200),200,255,-1) cv.imshow('Circle', circle) cv.imshow('Rectangle', rectangle) #bitwise AND bitwise_and = cv.bitwise_and(rectangle...
26.181818
67
0.737847
0cc0985605a0525ddcc0b7da950f5d36a8411572
1,473
py
Python
tests/test_math.py
kbsezginel/msfdevops
503c8de5728e6b5dd13b4592b2bb73c30dab3cd9
[ "BSD-3-Clause" ]
null
null
null
tests/test_math.py
kbsezginel/msfdevops
503c8de5728e6b5dd13b4592b2bb73c30dab3cd9
[ "BSD-3-Clause" ]
null
null
null
tests/test_math.py
kbsezginel/msfdevops
503c8de5728e6b5dd13b4592b2bb73c30dab3cd9
[ "BSD-3-Clause" ]
null
null
null
""" Tests for msfdevops math module. """ from msfdevops import * import pytest import numpy as np def test_mean(): num_list = [1, 2, 3, 4, 5] assert mean(num_list) == 3, 'Mean test failed' def test_empty_list(): num_list = [] with pytest.raises(ZeroDivisionError): mean(num_list) # Skip th...
22.661538
91
0.665988
7b15fede6ef7fca4cc96d0674f11f48561b8c755
8,889
py
Python
test/IECoreVDB/VDBObjectTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
test/IECoreVDB/VDBObjectTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
test/IECoreVDB/VDBObjectTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2017, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
33.292135
138
0.700529
033648e68c834a1425d96a08187faa6d298388cd
494
py
Python
chapter_01/example_0001.py
yuchen352416/leetcode-example
a3423a66abcff0b06574564bb63cdc28b09ae8cc
[ "Apache-2.0" ]
null
null
null
chapter_01/example_0001.py
yuchen352416/leetcode-example
a3423a66abcff0b06574564bb63cdc28b09ae8cc
[ "Apache-2.0" ]
null
null
null
chapter_01/example_0001.py
yuchen352416/leetcode-example
a3423a66abcff0b06574564bb63cdc28b09ae8cc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # 从排序数组中删除重复项 def removeDuplicates(nums: list) -> int: indexs = [] i = 0 while nums.__len__() - 1 > i: if nums[i] == nums[i + 1]: indexs.append(i) i = i + 1 i = indexs.__len__() - 1 while i >= 0: nums.pop(indexs[i]) i = i - 1 prin...
18.296296
40
0.502024
ba25c41e59b2c6100c284128b2d262883b429aca
317
py
Python
unused code/rotate.py
patthomasrick/DTLIwANNy1
19d41a67d7ed6fc54a2bc79b3944bec2522b70fb
[ "MIT" ]
null
null
null
unused code/rotate.py
patthomasrick/DTLIwANNy1
19d41a67d7ed6fc54a2bc79b3944bec2522b70fb
[ "MIT" ]
null
null
null
unused code/rotate.py
patthomasrick/DTLIwANNy1
19d41a67d7ed6fc54a2bc79b3944bec2522b70fb
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from scipy.ndimage.interpolation import rotate import scipy.misc from skimage import data lena = data.clock() rotated_lena = rotate(lena, 30, reshape=True, mode='nearest') f, (ax0,ax1) = plt.subplots(1,2) ax0.imshow(lena, cmap='gray') ax1.imshow(rotated_lena, cmap='gray') plt.show()
26.416667
61
0.757098
343861d469d4c052041811950235543815a9c157
4,902
py
Python
Scripts/KernelWeightsCreator.py
Esri/PySAL-ArcGIS-Toolbox
80705cc89506a35d2c7a5b91269df9ccb874df2c
[ "Apache-2.0" ]
41
2016-04-19T12:59:51.000Z
2021-10-05T20:03:37.000Z
Scripts/KernelWeightsCreator.py
Esri/PySAL-ArcGIS-Toolbox
80705cc89506a35d2c7a5b91269df9ccb874df2c
[ "Apache-2.0" ]
3
2016-03-07T19:11:46.000Z
2018-10-29T16:46:03.000Z
Scripts/KernelWeightsCreator.py
Esri/PySAL-ArcGIS-Toolbox
80705cc89506a35d2c7a5b91269df9ccb874df2c
[ "Apache-2.0" ]
21
2016-03-07T18:57:04.000Z
2021-08-22T01:00:31.000Z
""" Create Kernel-based Spatial Weights File. Author(s): Xun Li, Xing Kang, Sergio Rey """ import arcpy as ARCPY import pysal as PYSAL import pysal.lib.io as FileIO import pysal.lib.weights as WEIGHTS import SSDataObject as SSDO import SSUtilities as UTILS import pysal2ArcUtils as AUTILS import WeightsUtilities as WU...
34.521127
80
0.579763
8dd95d39b327cc64b05e1be7175abdd5e4d430c5
2,347
py
Python
Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/python/tvm/relay/env.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
64
2021-05-02T14:42:34.000Z
2021-05-06T01:35:03.000Z
Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/python/tvm/relay/env.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
23
2019-07-29T05:21:52.000Z
2020-08-31T18:51:42.000Z
Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/python/tvm/relay/env.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.000Z
# pylint: disable=no-else-return, unidiomatic-typecheck, undefined-variable, wildcard-import """A global environment storing everything needed to interpret or compile a Relay program.""" from .base import register_relay_node, NodeBase from . import _make from . import _env @register_relay_node class Environment(NodeB...
26.977011
93
0.578611
2e7f4f273a68d22cce69f60533556e0de7192e95
7,292
py
Python
mnist_3.0_convolutional_32.py
as-wanfang/as_HybridNN
63e3d1fb7c5db52f0e949084c50818246126c66c
[ "MIT" ]
3
2017-06-18T23:37:54.000Z
2021-07-06T06:01:50.000Z
mnist_3.0_convolutional_32.py
as-wanfang/as_HybridNN
63e3d1fb7c5db52f0e949084c50818246126c66c
[ "MIT" ]
null
null
null
mnist_3.0_convolutional_32.py
as-wanfang/as_HybridNN
63e3d1fb7c5db52f0e949084c50818246126c66c
[ "MIT" ]
null
null
null
# image + one-dimensional indicator -> two categories + conflict category # By Fang Wan import tensorflow as tf import math import os from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets tf.set_random_seed(0) import numpy as np import pandas as pd # Download images and labels into mnist.tes...
39.416216
127
0.686643
73dbb24252b0aaaa1f50edafcd1e7c6a35cd4c02
438
py
Python
recipes/how_to_use_odfdo_in_command_line_scripts_odfdo-show.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
18
2018-04-19T08:30:48.000Z
2022-02-14T11:00:27.000Z
recipes/how_to_use_odfdo_in_command_line_scripts_odfdo-show.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
15
2018-04-22T00:52:41.000Z
2021-07-05T10:16:38.000Z
recipes/how_to_use_odfdo_in_command_line_scripts_odfdo-show.py
jdum/odfdo
2494d0bed39f5a55974643206e9bafeed40f3a6b
[ "Apache-2.0" ]
6
2018-04-22T00:14:12.000Z
2021-12-06T01:42:07.000Z
print( "Example of the use of odfdo in a script : odfdo-show.py. This command " "line tool dumps text from an OpenDocument file to the standard " "output, optionally styles and meta.\n\n" "odfdo-show.py is available in the script directory of the odfdo-python" " package.\n" ) from subprocess import...
31.285714
76
0.703196
3e266eb5bc19c5894a1c0dad697766f474569108
9,215
py
Python
build/lib/getFamaFrenchFactors.py
vashOnGitHub/getFamaFrenchFactors
49650d01a00f3dffad52275ff0a5f2382b40f96d
[ "MIT" ]
4
2020-02-15T20:21:26.000Z
2020-05-14T09:55:53.000Z
build/lib/getFamaFrenchFactors.py
vashOnGitHub/getFamaFrenchFactors
49650d01a00f3dffad52275ff0a5f2382b40f96d
[ "MIT" ]
1
2021-09-07T14:50:11.000Z
2021-09-07T16:01:25.000Z
build/lib/getFamaFrenchFactors.py
vashOnGitHub/getFamaFrenchFactors
49650d01a00f3dffad52275ff0a5f2382b40f96d
[ "MIT" ]
1
2021-12-20T18:15:02.000Z
2021-12-20T18:15:02.000Z
# getFamaFrenchFactors.py # Author: Vash # Version 1.4 # Last updated: 18 May 2019 """ This programme gets cleaned versions of factors including: * Fama French 3 factor (MRP, SMB, HML) * Momentum (MOM) * Carhart 4 factors (MRP, SMB, HML, MOM) * Fama French 5 factors (MRP, SMB, HML, RMW, CMA) Updates i...
37.157258
87
0.634617
c0970cf791a2c9d5e43e549d0e93f1afdfa348a8
7,939
py
Python
openiva/tools/spider_douban.py
QuantumLiu/OpenIVA
4c97a28f999965bab1f4e9e9fd0289df96669526
[ "Apache-2.0" ]
8
2021-12-08T06:46:27.000Z
2022-01-15T15:36:31.000Z
openiva/tools/spider_douban.py
QuantumLiu/OpenIVA
4c97a28f999965bab1f4e9e9fd0289df96669526
[ "Apache-2.0" ]
null
null
null
openiva/tools/spider_douban.py
QuantumLiu/OpenIVA
4c97a28f999965bab1f4e9e9fd0289df96669526
[ "Apache-2.0" ]
1
2022-03-03T02:15:08.000Z
2022-03-03T02:15:08.000Z
# -*- coding: utf-8 -*- """ Created on Fri Oct 12 10:19:27 2018 @author: quantumliu """ import os import re import traceback import math import shutil from multiprocessing import Pool,cpu_count,freeze_support import requests HEADERS_TEMPLATE={'accept':"text/html,application/xhtml+xml,application/xml;q=0.9,image/...
33.92735
245
0.693286
50e260d3825647a762bf874ba07429c2271ca14d
2,364
py
Python
authenticate_util.py
musharing-team/Musharing-Server
c5c084f19fbc9909fc13fbd3dd1d5bbc917fd68e
[ "MIT" ]
2
2019-10-09T06:48:47.000Z
2019-10-21T09:13:32.000Z
authenticate_util.py
musharing-team/Musharing-Server
c5c084f19fbc9909fc13fbd3dd1d5bbc917fd68e
[ "MIT" ]
null
null
null
authenticate_util.py
musharing-team/Musharing-Server
c5c084f19fbc9909fc13fbd3dd1d5bbc917fd68e
[ "MIT" ]
null
null
null
import functools from utility import singleton from user_util import UserUtil, RequestError from rooms import Rooms from admin_util import Administrator class AuthenticateUtil (object): def __init__(self, obj_user_util: UserUtil, rooms: Rooms): self._uu = obj_user_util self._rooms = rooms ...
34.764706
91
0.676819
7a38d50d4687cd0f92de02d7d51df1f70c05f53c
13,601
py
Python
Dev/parallel/cvpriterAAC2.py
leyiweb/OCGAN
326d01043bbc3b5219625af9d38c30d6a3be5a69
[ "Apache-2.0" ]
58
2019-03-27T09:17:55.000Z
2022-02-28T17:09:35.000Z
Dev/parallel/cvpriterAAC2.py
leyiweb/OCGAN
326d01043bbc3b5219625af9d38c30d6a3be5a69
[ "Apache-2.0" ]
9
2019-04-16T12:23:36.000Z
2021-01-01T03:54:58.000Z
Dev/parallel/cvpriterAAC2.py
leyiweb/OCGAN
326d01043bbc3b5219625af9d38c30d6a3be5a69
[ "Apache-2.0" ]
25
2019-07-17T11:59:08.000Z
2021-05-05T11:34:37.000Z
#https://github.com/zackchase/mxnet-the-straight-dope/blob/master/chapter14_generative-adversarial-networks/pixel2pixel.ipynb from __future__ import print_function import os import matplotlib as mpl import tarfile import matplotlib.image as mpimg from matplotlib import pyplot as plt import mxnet as mx from mxnet import...
48.402135
218
0.605764
d9170c5dc8dd4877b8bd71d8e93be05326b40f89
46
py
Python
terry/resources/data/config.py
onixuniverse/terry-bot
2dfadb1749c10cdc59e81463ae347d367e3fd189
[ "Apache-2.0" ]
5
2021-01-20T22:10:42.000Z
2021-07-29T15:36:17.000Z
terry/resources/data/config.py
onixuniverse/terry-bot
2dfadb1749c10cdc59e81463ae347d367e3fd189
[ "Apache-2.0" ]
null
null
null
terry/resources/data/config.py
onixuniverse/terry-bot
2dfadb1749c10cdc59e81463ae347d367e3fd189
[ "Apache-2.0" ]
null
null
null
PREFIX = '*' OWNER_IDS = [233628188968747008]
15.333333
32
0.717391
89e75dcaccf2ff6b90747d000028cb862f677d75
2,192
py
Python
integration-tests/tests/frame_drop_duplicates_test.py
rmaldrix/DOC
2c3be80d515fbf46516e16a81b7eaafe1ed2c6d9
[ "Apache-2.0" ]
null
null
null
integration-tests/tests/frame_drop_duplicates_test.py
rmaldrix/DOC
2c3be80d515fbf46516e16a81b7eaafe1ed2c6d9
[ "Apache-2.0" ]
null
null
null
integration-tests/tests/frame_drop_duplicates_test.py
rmaldrix/DOC
2c3be80d515fbf46516e16a81b7eaafe1ed2c6d9
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
35.934426
118
0.594434
4c105a0ea0149b9e7adaa08652951b16cc81bb1a
2,305
py
Python
scripts/plot_learning_curve.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
6
2020-07-06T14:31:18.000Z
2021-09-13T10:15:14.000Z
scripts/plot_learning_curve.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
2
2021-09-12T17:49:09.000Z
2021-09-14T15:28:54.000Z
scripts/plot_learning_curve.py
NinaCalvi/OKBC
e25ad0296137ed354593c74509b077a22f60425e
[ "MIT" ]
1
2021-06-07T01:46:44.000Z
2021-06-07T01:46:44.000Z
import matplotlib.pyplot as plt import numpy as np import os import pprint import sys import matplotlib matplotlib.use('agg') def make_graph(data, output_file): x = [i for i in range(1, data['nepochs']+2)] plt.xlabel('Number of epochs') plt.ylabel('Loss and Micro F-score') plt.title('Learning Curve')...
30.328947
115
0.593492
955c99be238e22a8858dcb00571741227dcd5e9c
2,942
py
Python
tests/test_hover.py
Hassanchenganasseri/yara-language-server
9ba4d820f1cabb738921e17d4489706966cb290b
[ "Apache-2.0" ]
1
2021-11-13T02:04:55.000Z
2021-11-13T02:04:55.000Z
tests/test_hover.py
Hassanchenganasseri/yara-language-server
9ba4d820f1cabb738921e17d4489706966cb290b
[ "Apache-2.0" ]
4
2020-12-12T23:41:40.000Z
2021-01-18T17:00:53.000Z
tests/test_hover.py
Hassanchenganasseri/yara-language-server
9ba4d820f1cabb738921e17d4489706966cb290b
[ "Apache-2.0" ]
1
2022-02-21T15:36:21.000Z
2022-02-21T15:36:21.000Z
''' Hover Provider Tests ''' import json import pytest from yarals import helpers from yarals.base import protocol # don't care about pylint(protected-access) warnings since these are just tests # pylint: disable=W0212 @pytest.mark.asyncio async def test_hover(test_rules, yara_server): ''' Ensure a variable's v...
38.710526
104
0.667913
1389ccbb5dfcfbeb7c5da744d9fa04a31a2864f4
2,264
py
Python
ifc_model/geometry/representation.py
brean/python-ifc-model
f593a72703cdb460e493c48c9f39ee20eb729ecc
[ "MIT" ]
21
2017-12-01T13:14:39.000Z
2021-02-11T13:50:14.000Z
ifc_model/geometry/representation.py
xeolabs/python-ifc-model
f593a72703cdb460e493c48c9f39ee20eb729ecc
[ "MIT" ]
1
2018-02-14T17:10:30.000Z
2018-02-14T17:10:30.000Z
ifc_model/geometry/representation.py
brean/python-ifc-model
f593a72703cdb460e493c48c9f39ee20eb729ecc
[ "MIT" ]
3
2018-02-10T04:49:09.000Z
2018-12-28T02:54:01.000Z
import logging from .relations import Relations from .extrude_area_solid import ExtrudedAreaSolid from .faceted_brep import FacetedBrep class Representation(Relations): def from_json(self, json_data): super(Representation, self).from_json(json_data) self.shapes = [] for shape_data in json_d...
34.830769
80
0.588339
06ae0c4779bf77f2167180a71e653ed91022de1a
886
py
Python
setup.py
raymondve/md2cf
57de26904e01f9cf1f6172b60fcb80f224251eee
[ "MIT" ]
null
null
null
setup.py
raymondve/md2cf
57de26904e01f9cf1f6172b60fcb80f224251eee
[ "MIT" ]
null
null
null
setup.py
raymondve/md2cf
57de26904e01f9cf1f6172b60fcb80f224251eee
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='md2cf', version='1.0.4', packages=['md2cf'], url='https://github.com/iamjackg/md2cf', license='MIT', author='Jack Gaino', author_email='md2cf@jackgaino.com', description='Convert Mark...
25.314286
59
0.604966
99e69f1da222ba05a5cd53fbc2063dbc882ce48a
219,171
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/object_storage_client.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/object_storage_client.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/object_storage/object_storage_client.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
46.11214
245
0.637361
1c2b69d0cf5b6359b4654c47953a0a04bddff8cf
609
py
Python
aioclustermanager/service.py
sunbit/aioclustermanager
f5a2f4ba7936a75c7748cff9f77c3bfff1a3a61d
[ "BSD-3-Clause" ]
null
null
null
aioclustermanager/service.py
sunbit/aioclustermanager
f5a2f4ba7936a75c7748cff9f77c3bfff1a3a61d
[ "BSD-3-Clause" ]
4
2019-07-23T14:46:34.000Z
2020-08-23T21:59:58.000Z
aioclustermanager/service.py
sunbit/aioclustermanager
f5a2f4ba7936a75c7748cff9f77c3bfff1a3a61d
[ "BSD-3-Clause" ]
2
2020-05-21T17:32:23.000Z
2021-05-11T12:17:56.000Z
class Service: """Generic job class.""" def __init__(self, namespace=None, name=None, ports=None, selector=None, type=None, data=None, **kw): if data is not None: self._raw = data else: self._raw = self.create( namespace, name=name, ...
24.36
105
0.517241
d4734e13adcfefc9d511682f10309453e5d7c09a
3,960
py
Python
snipsmanager/utils/intent_class_generator.py
beevesuw/snipsmanager
9eb45c076db4ed90e1a5a7cdeadfda253affaadb
[ "MIT" ]
1
2019-02-14T08:13:04.000Z
2019-02-14T08:13:04.000Z
snipsmanager/utils/intent_class_generator.py
beevesuw/snipsmanager
9eb45c076db4ed90e1a5a7cdeadfda253affaadb
[ "MIT" ]
null
null
null
snipsmanager/utils/intent_class_generator.py
beevesuw/snipsmanager
9eb45c076db4ed90e1a5a7cdeadfda253affaadb
[ "MIT" ]
1
2019-02-14T08:13:18.000Z
2019-02-14T08:13:18.000Z
# -*-: coding utf-8 -*- """ Tools to automatically generate intent classes from an assistant definition. """ import os import re import json import zipfile from jinja2 import Environment, PackageLoader from .os_helpers import create_dir def camel_case_to_underscore(text): """ Convert camel-case to underscor...
35.044248
83
0.647222
425ec0d8a157728dfc042236cc8e0adc45d268bb
5,514
py
Python
tests/integration/test_file_saving.py
tbepler/atomium
a28e1eda40aba0ec70506f00d1a562dec6acb51f
[ "MIT" ]
2
2016-05-05T10:51:25.000Z
2017-03-23T20:45:44.000Z
tests/integration/test_file_saving.py
tbepler/atomium
a28e1eda40aba0ec70506f00d1a562dec6acb51f
[ "MIT" ]
null
null
null
tests/integration/test_file_saving.py
tbepler/atomium
a28e1eda40aba0ec70506f00d1a562dec6acb51f
[ "MIT" ]
null
null
null
import atomium import os from unittest import TestCase class SavingTest(TestCase): def setUp(self): self.files_at_start = os.listdir("tests/integration/files") def tearDown(self): files_at_end = os.listdir("tests/integration/files") to_remove = [f for f in files_at_end if f not in se...
30.804469
80
0.65778
e6eca0390c4be501c341d5d2e1354af7e17e0fa1
9,699
py
Python
rest_auth/tests/test_social.py
aexeagmbh/django-rest-auth
ed164557127af1c959d3a2ec1a617d7559f97d75
[ "MIT" ]
null
null
null
rest_auth/tests/test_social.py
aexeagmbh/django-rest-auth
ed164557127af1c959d3a2ec1a617d7559f97d75
[ "MIT" ]
null
null
null
rest_auth/tests/test_social.py
aexeagmbh/django-rest-auth
ed164557127af1c959d3a2ec1a617d7559f97d75
[ "MIT" ]
1
2018-10-09T20:49:27.000Z
2018-10-09T20:49:27.000Z
import json from django.test import TestCase from django.contrib.auth import get_user_model from django.test.utils import override_settings from django.contrib.sites.models import Site from allauth.socialaccount.models import SocialApp from allauth.socialaccount.providers.facebook.provider import GRAPH_API_URL import...
31.696078
290
0.592535
830827c97402b3ec3b3855d92eb8e11ec22da8e2
9,946
py
Python
src/mlp.py
patda9/mlp-261456-2018
57ad0adcdc2c14ff9092cb1e2f9c930889fa8d58
[ "MIT" ]
null
null
null
src/mlp.py
patda9/mlp-261456-2018
57ad0adcdc2c14ff9092cb1e2f9c930889fa8d58
[ "MIT" ]
3
2018-09-13T16:19:19.000Z
2018-10-08T20:40:34.000Z
src/mlp.py
patda9/mlp-261456-2018
57ad0adcdc2c14ff9092cb1e2f9c930889fa8d58
[ "MIT" ]
null
null
null
import numpy as np import sys np.random.seed(1) def activation(x, f, d=False): if(f == 'logistic'): if(d): return x * (1 - x) return 1 / (1 + np.exp(-x)) elif(f == 'relu'): if(d): return 1. * (x > 0) return np.maximum(x, 0) else: pr...
36.701107
131
0.556706
1d213fcf03187054313e169d707671a56e3584ea
2,717
py
Python
thewalrus/_low_rank_haf.py
maliasadi/thewalrus
719cdcc4791579d3f6d45fcc8fb41372989dec85
[ "Apache-2.0" ]
null
null
null
thewalrus/_low_rank_haf.py
maliasadi/thewalrus
719cdcc4791579d3f6d45fcc8fb41372989dec85
[ "Apache-2.0" ]
null
null
null
thewalrus/_low_rank_haf.py
maliasadi/thewalrus
719cdcc4791579d3f6d45fcc8fb41372989dec85
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
30.52809
127
0.627162
bfb03d4b8384e1d5d0459c47ea27568bbbba65a5
111
py
Python
src/resident/__init__.py
scztt/resident
6e7f4208ed5ab4f8463110efaa50ff65ade5ed6f
[ "MIT" ]
null
null
null
src/resident/__init__.py
scztt/resident
6e7f4208ed5ab4f8463110efaa50ff65ade5ed6f
[ "MIT" ]
null
null
null
src/resident/__init__.py
scztt/resident
6e7f4208ed5ab4f8463110efaa50ff65ade5ed6f
[ "MIT" ]
null
null
null
""" Package for the resident application. """ from .__version__ import __version__ from .__main__ import main
18.5
41
0.774775
5d39d5183e336838a02c27508f071ffb57633655
3,736
py
Python
src/python/pants/subsystem/subsystem.py
WamBamBoozle/pants
98cadfa1a5d337146903eb66548cfe955f2627b3
[ "Apache-2.0" ]
null
null
null
src/python/pants/subsystem/subsystem.py
WamBamBoozle/pants
98cadfa1a5d337146903eb66548cfe955f2627b3
[ "Apache-2.0" ]
null
null
null
src/python/pants/subsystem/subsystem.py
WamBamBoozle/pants
98cadfa1a5d337146903eb66548cfe955f2627b3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.option.op...
34.592593
98
0.739293
8382db5719094e2de0702286c3cc54f702cd1617
1,289
py
Python
migrations/versions/5488d8903dd7_.py
Fredpwol/Wallet-System
b529b83ea03cf04fe415e72402c6b7905e89eaea
[ "MIT" ]
null
null
null
migrations/versions/5488d8903dd7_.py
Fredpwol/Wallet-System
b529b83ea03cf04fe415e72402c6b7905e89eaea
[ "MIT" ]
null
null
null
migrations/versions/5488d8903dd7_.py
Fredpwol/Wallet-System
b529b83ea03cf04fe415e72402c6b7905e89eaea
[ "MIT" ]
null
null
null
"""empty message Revision ID: 5488d8903dd7 Revises: 6ee94eeb9c36 Create Date: 2021-05-01 13:56:55.767799 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5488d8903dd7' down_revision = '6ee94eeb9c36' branch_labels = None depends_on = None def upgrade(): # ...
36.828571
124
0.710628
99a393d9eba40ddc67c048626885abbe25d71286
4,599
py
Python
test/script/srcupdater.py
raman-bt/autopsy
e80ad2c732fd827c558fb088d444313fd999c717
[ "Apache-2.0" ]
null
null
null
test/script/srcupdater.py
raman-bt/autopsy
e80ad2c732fd827c558fb088d444313fd999c717
[ "Apache-2.0" ]
null
null
null
test/script/srcupdater.py
raman-bt/autopsy
e80ad2c732fd827c558fb088d444313fd999c717
[ "Apache-2.0" ]
null
null
null
import codecs import datetime import logging import os import re import shutil import socket import sqlite3 import subprocess import sys from sys import platform as _platform import time import traceback import xml from xml.dom.minidom import parse, parseString import Emailer from regression_utils impor...
24.462766
101
0.64775
b95387cf70dccc27bc26f1b238a62ea147ff18d5
159
py
Python
library/test/test_compiler/testcorpus/25_func_annotations.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/test/test_compiler/testcorpus/25_func_annotations.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/test/test_compiler/testcorpus/25_func_annotations.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) def foo(x: int, y, z: bytes, *args: 1, a: str, **kwargs: "sth") -> bool: pass
39.75
76
0.616352
66ca0ebac990e96774ae2a64499a0cc7a73dc489
1,814
py
Python
main.py
hercules-sousa/IA-Projeto
597be16fb6a43f7cd0fb879b8e8bbb20e7bb1887
[ "MIT" ]
null
null
null
main.py
hercules-sousa/IA-Projeto
597be16fb6a43f7cd0fb879b8e8bbb20e7bb1887
[ "MIT" ]
null
null
null
main.py
hercules-sousa/IA-Projeto
597be16fb6a43f7cd0fb879b8e8bbb20e7bb1887
[ "MIT" ]
null
null
null
import os from mapa.mapa import Mapa from leitores.leitorTxt import LeitorTxt from leitores.leitorJson import LeitorJson # Obtendo diretório onde o programa está sendo executado dir_atual = os.path.dirname(__file__) # Obtendo caminho do arquivo caminho_arquivo = os.path.join(dir_atual, 'arquivos/Cidades - Brasil.txt'...
28.34375
84
0.741455
18c6fa315265bd6ea9352ae0af2076c5121fde3c
40,148
py
Python
fattureincloud_python_sdk/api/receipts_api.py
fattureincloud/fattureincloud-python-sdk
f3a40fac345751014ea389680efdaef90f03bac1
[ "MIT" ]
2
2022-02-17T08:33:17.000Z
2022-03-22T09:27:00.000Z
fattureincloud_python_sdk/api/receipts_api.py
fattureincloud/fattureincloud-python-sdk
f3a40fac345751014ea389680efdaef90f03bac1
[ "MIT" ]
null
null
null
fattureincloud_python_sdk/api/receipts_api.py
fattureincloud/fattureincloud-python-sdk
f3a40fac345751014ea389680efdaef90f03bac1
[ "MIT" ]
null
null
null
""" Fatture in Cloud API v2 - API Reference Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. # noq...
37.243043
278
0.499128
5818b97fb8491af8799d0a3fd4018acdad9c2d19
2,545
py
Python
app_slack_client.py
Pioank/slackbot-sql-query
3f6229f34ba5e7871c741aade8e0f860ad7e01e4
[ "MIT" ]
1
2020-07-28T22:01:52.000Z
2020-07-28T22:01:52.000Z
app_slack_client.py
Pioank/slackbot-sql-query
3f6229f34ba5e7871c741aade8e0f860ad7e01e4
[ "MIT" ]
null
null
null
app_slack_client.py
Pioank/slackbot-sql-query
3f6229f34ba5e7871c741aade8e0f860ad7e01e4
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.DEBUG) import os import json from slack import WebClient from slack.errors import SlackApiError from flask import Flask, request, make_response from modal_view import modal_view from communication import (send_message, send_csv_file) from prepare_csv import prepare_cs...
37.985075
148
0.715128
6c786212af426df5143b310669612c434209119f
5,450
py
Python
notebooks/source/conf.py
Anthonymcqueen21/numpyro
94efe3a35491465eba66465b4dd1d4fb870d6c8c
[ "MIT" ]
1
2019-06-24T04:27:18.000Z
2019-06-24T04:27:18.000Z
notebooks/source/conf.py
Anthonymcqueen21/numpyro
94efe3a35491465eba66465b4dd1d4fb870d6c8c
[ "MIT" ]
null
null
null
notebooks/source/conf.py
Anthonymcqueen21/numpyro
94efe3a35491465eba66465b4dd1d4fb870d6c8c
[ "MIT" ]
null
null
null
import sphinx_rtd_theme # -*- coding: utf-8 -*- # # Numpyro Tutorials documentation build configuration file, created by # sphinx-quickstart on Tue Oct 31 11:33:17 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present ...
30.446927
79
0.682202
a31eed23d55b6f7f1f91bb159c2db44ee1f8820c
2,535
py
Python
wgs/geno2hierfst.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
null
null
null
wgs/geno2hierfst.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
null
null
null
wgs/geno2hierfst.py
trmznt/pys
0f66d52e5d166140c3358f8c6af9ad4cee2e2b7e
[ "MIT" ]
2
2018-09-19T00:52:15.000Z
2021-05-14T23:04:47.000Z
#!/usr/bin/env spcli # this command runs hierarchical FST comparison from seqpy import cout, cerr from seqpy.cmds import arg_parser from seqpy.core.bioio import tabparser import itertools import allel def init_argparser(p=None): p = tabparser.init_argparser() p.add_argument('--hierfile', required=True, hel...
28.483146
91
0.584615
91fae6080f3350e83acb05bcf50190f060efe3b8
1,008
py
Python
game/DistributedCCharBaseAI.py
AnythingTechPro/toontown-otp-original
40749161f02c6f75844b1d072bf1498b42c2800d
[ "BSD-3-Clause" ]
2
2019-12-05T01:07:38.000Z
2021-02-25T06:00:47.000Z
game/DistributedCCharBaseAI.py
rasheelprogrammer/toontown-otp-original
40749161f02c6f75844b1d072bf1498b42c2800d
[ "BSD-3-Clause" ]
null
null
null
game/DistributedCCharBaseAI.py
rasheelprogrammer/toontown-otp-original
40749161f02c6f75844b1d072bf1498b42c2800d
[ "BSD-3-Clause" ]
1
2021-02-25T06:00:48.000Z
2021-02-25T06:00:48.000Z
import random from direct.distributed.DistributedObjectAI import DistributedObjectAI from direct.distributed.ClockDelta import * class DistributedCCharBaseAI(DistributedObjectAI): def __init__(self, air): DistributedObjectAI.__init__(self, air) self.srcNode = '' self.destNode = '' def generate(self): Dis...
25.2
77
0.764881
84dfeed7612810ee457dcae5e20ae27b29050588
4,923
py
Python
src/interpretability/gradcam.py
jmorrison57/covid-cxr
5f21ef5575b8dd4dd04618f4e72e05992e9f1349
[ "MIT" ]
null
null
null
src/interpretability/gradcam.py
jmorrison57/covid-cxr
5f21ef5575b8dd4dd04618f4e72e05992e9f1349
[ "MIT" ]
null
null
null
src/interpretability/gradcam.py
jmorrison57/covid-cxr
5f21ef5575b8dd4dd04618f4e72e05992e9f1349
[ "MIT" ]
null
null
null
import yaml import os import cv2 import numpy as np import pandas as pd import tensorflow as tf from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.models import Model import sys, os sys.path.append(os.path.join(os.path.dirname(sys.pa...
44.754545
120
0.677229
7f73ba7eac52850ac60c7031c26155bd96d139a0
479
py
Python
addons/pythonscript/windows-32/Scripts/easy_install-3.8-script.py
godot-extended-libraries/godot-mixer
4f50081eff99c81ad51ac44937dad020dd1defbc
[ "MIT" ]
7
2020-11-09T12:38:31.000Z
2022-02-03T00:38:19.000Z
addons/pythonscript/windows-32/Scripts/easy_install-3.8-script.py
godot-extended-libraries/godot-mixer
4f50081eff99c81ad51ac44937dad020dd1defbc
[ "MIT" ]
null
null
null
addons/pythonscript/windows-32/Scripts/easy_install-3.8-script.py
godot-extended-libraries/godot-mixer
4f50081eff99c81ad51ac44937dad020dd1defbc
[ "MIT" ]
1
2021-04-01T12:23:51.000Z
2021-04-01T12:23:51.000Z
#!C:\Users\gps\AppData\Local\Temp\python-build-as6__1b1\out\python\install\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==46.1.3','console_scripts','easy_install-3.8' __requires__ = 'setuptools==46.1.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = r...
36.846154
87
0.697286
f7d5afd64a38c6fa33d7a67ce1929c4dc74e57ea
775
py
Python
CourseraMOOCdbTranslate/program/piping_scripts/queries/openedx/content_sections.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/openedx/content_sections.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/openedx/content_sections.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
from ...utilities import db, moocdb_utils from common import * def GetContentSections(vars): resource_type_id = moocdb_utils.GetResourceTypeMap(vars)['content_section'] src_sections = [x for x in vars["resource_list"] if x["_id"]["category"] == 'chapter'] section_index = 1 output_items = [] ...
32.291667
90
0.632258
16adc583be78adfcedd8acbbd7ee20dadc787f78
461
py
Python
node/blockchain/tests/factories/block_message/node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/blockchain/tests/factories/block_message/node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/blockchain/tests/factories/block_message/node_declaration.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
from node.blockchain.inner_models import NodeDeclarationBlockMessage from ..signed_change_request.node_declaration import make_node_declaration_signed_change_request def make_node_declaration_block_message(node, node_key_pair, blockchain_facade) -> NodeDeclarationBlockMessage: request = make_node_declaration_sig...
51.222222
111
0.887202
364d028d52af52f2a3e6738c97cb9882f0985277
26,636
py
Python
pycity_calc/toolbox/dimensioning/dim_networks.py
RWTH-EBC/pyCity_calc
99fd0dab7f9a9030fd84ba4715753364662927ec
[ "MIT" ]
4
2020-06-22T14:14:25.000Z
2021-11-08T11:47:01.000Z
pycity_calc/toolbox/dimensioning/dim_networks.py
RWTH-EBC/pyCity_calc
99fd0dab7f9a9030fd84ba4715753364662927ec
[ "MIT" ]
4
2019-08-28T19:42:28.000Z
2019-08-28T19:43:44.000Z
pycity_calc/toolbox/dimensioning/dim_networks.py
RWTH-EBC/pyCity_calc
99fd0dab7f9a9030fd84ba4715753364662927ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Script with functions to dimension local heating and decentralized electrical networks. Currently, no support for separate heating_and_deg network dimensioning (first lhn, then deg dimensioning; plus overlapping), if street routing is used! If you want to have a heating_and_deg...
39.228277
106
0.550045
d96ae15c7288c9a8d585d8d70d2aa8922b8f22b3
2,371
py
Python
python/paddle/fluid/tests/unittests/test_isfinite_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
3
2019-07-17T09:30:31.000Z
2021-12-27T03:16:55.000Z
python/paddle/fluid/tests/unittests/test_isfinite_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
1
2019-05-26T14:23:24.000Z
2019-05-26T14:23:51.000Z
python/paddle/fluid/tests/unittests/test_isfinite_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
4
2019-09-30T02:15:34.000Z
2019-09-30T02:41:30.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
24.193878
74
0.620413
9af3d3c081ee7cc6dbfbff082bd82e40f1c1dc4c
3,449
py
Python
Level.py
ogabrielp/calculator-the-game-solver
749270370c3904a10abaa377f45e0280625a6ccb
[ "MIT" ]
1
2018-06-06T23:00:16.000Z
2018-06-06T23:00:16.000Z
Level.py
ogabrielp/calculator-the-game-solver
749270370c3904a10abaa377f45e0280625a6ccb
[ "MIT" ]
null
null
null
Level.py
ogabrielp/calculator-the-game-solver
749270370c3904a10abaa377f45e0280625a6ccb
[ "MIT" ]
null
null
null
from Operation import Operation class Level: """ Defines a level in Calculator: The Game. """ def __init__(self, index, moves, goal, start, buttons): """ Level constructor. Keyword arguments: index -- the number identifying the level in the game. Has no actual p...
35.193878
84
0.600754
8c06d84ff8ac26362d5c36ba8ba482cdc05390a9
128
py
Python
backend/venue_service/api/venue/models/supplier.py
ktodorov/aed-2018
337a8df6d2239d35432663e1b340977b3bfba4ae
[ "MIT" ]
null
null
null
backend/venue_service/api/venue/models/supplier.py
ktodorov/aed-2018
337a8df6d2239d35432663e1b340977b3bfba4ae
[ "MIT" ]
null
null
null
backend/venue_service/api/venue/models/supplier.py
ktodorov/aed-2018
337a8df6d2239d35432663e1b340977b3bfba4ae
[ "MIT" ]
null
null
null
class Supplier: def __init__(self, location, frequency): self.location = location self.frequency = frequency
32
44
0.679688
92bbbfc8860241235d535b019acb8c15e265c07e
8,546
py
Python
tno/mpc/protocols/distributed_keygen/test/test_distributed_keygen.py
jimenezh/protocols.distributed_keygen
d3002524a45a21132d862e010cfdbbdab831228e
[ "Apache-2.0" ]
null
null
null
tno/mpc/protocols/distributed_keygen/test/test_distributed_keygen.py
jimenezh/protocols.distributed_keygen
d3002524a45a21132d862e010cfdbbdab831228e
[ "Apache-2.0" ]
null
null
null
tno/mpc/protocols/distributed_keygen/test/test_distributed_keygen.py
jimenezh/protocols.distributed_keygen
d3002524a45a21132d862e010cfdbbdab831228e
[ "Apache-2.0" ]
null
null
null
""" Tests that can be ran using pytest to test the distributed keygen functionality """ import asyncio import math from typing import AsyncGenerator, Tuple, Union, cast import pytest from _pytest.fixtures import FixtureRequest from tno.mpc.communication import Pool, Serialization from tno.mpc.communication.test impo...
33.382813
95
0.660192
bb4e7adbf0f19b6c56360dbbba8d2fe9b2c29c5f
7,666
py
Python
kinparse/kinparse.py
xesscorp/kinparse
6173df55a4676796ca7a04ae714ff374f748bbf2
[ "MIT" ]
11
2017-07-12T22:06:06.000Z
2021-02-24T03:41:50.000Z
kinparse/kinparse.py
xesscorp/kinparse
6173df55a4676796ca7a04ae714ff374f748bbf2
[ "MIT" ]
11
2017-12-20T09:01:48.000Z
2019-12-18T14:14:17.000Z
kinparse/kinparse.py
xesscorp/kinparse
6173df55a4676796ca7a04ae714ff374f748bbf2
[ "MIT" ]
7
2018-04-08T13:01:53.000Z
2021-02-01T20:45:03.000Z
# MIT license # # Copyright (C) 2017-2021 by Dave Vandenbout. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, ...
41.663043
108
0.66671
ecd59b28665b1a5729dbe30571d2f86d16c1255d
8,006
py
Python
xy_1d/t18.py
nftqcd/nthmc
010c70e297c904219e9d8a04cc20b9c75a4b61e5
[ "MIT" ]
2
2021-07-29T19:09:30.000Z
2022-01-17T21:13:40.000Z
xy_1d/t18.py
nftqcd/nthmc
010c70e297c904219e9d8a04cc20b9c75a4b61e5
[ "MIT" ]
null
null
null
xy_1d/t18.py
nftqcd/nthmc
010c70e297c904219e9d8a04cc20b9c75a4b61e5
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.keras as tk import nthmc conf = nthmc.Conf(nbatch=2048, nepoch=1, nstepEpoch=256, nstepMixing=64, initDt=0.4, refreshOpt=False, nthr=8) beta=2.25 nthmc.setup(conf) action = nthmc.OneD(beta=beta, transform=nthmc.Ident()) loss = nthmc.LossFun(action, cCosDiff=1.0, cTopoDiff=1.0...
45.748571
110
0.764552
879fcb051123ee0ca01af6efbe95db7dcb4ac585
1,574
py
Python
examples/write_segy_file_example02.py
hyperiongeo/auralib
547fa1282ae38cf8be074f19f24f1e9e980723f2
[ "Apache-2.0" ]
20
2016-09-12T23:10:39.000Z
2021-05-06T01:29:45.000Z
examples/write_segy_file_example02.py
hyperiongeo/auralib
547fa1282ae38cf8be074f19f24f1e9e980723f2
[ "Apache-2.0" ]
6
2016-12-02T01:56:49.000Z
2020-10-27T23:55:58.000Z
examples/write_segy_file_example02.py
hyperiongeo/auralib
547fa1282ae38cf8be074f19f24f1e9e980723f2
[ "Apache-2.0" ]
8
2017-11-09T20:30:06.000Z
2021-03-26T23:45:43.000Z
# -*- coding: utf-8 -*- """ Created on Mon Dec 4 21:09:56 2017 @author: whamlyn """ #%% # import some libraries import numpy as np import matplotlib.pyplot as plt import auralib as aura # First, lets create a seismic "trace" by using sine waves of different # frequencies (10, 20, 50 Hz) samp_ra...
24.59375
80
0.667726
c93ba9cad514d2baebd1c3f3f2b4159c956f46bb
49,319
py
Python
qats/ts.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
qats/ts.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
qats/ts.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Provides :class:`TimeSeries` class. """ import copy import os from collections import OrderedDict from datetime import datetime, timedelta import numpy as np from scipy.interpolate import interp1d from scipy.stats import kurtosis, skew, tstd import matplotlib.pyplot as ...
34.060083
128
0.571524
e2185e9d93dd3ba9179c4f56434acd3f7075a673
1,540
py
Python
examples/dense_block_tf.py
Cabbagehust2507/ResNet-tutorial
c4c8d41bff91c3f1c9f5d0e1870c789f970388df
[ "MIT" ]
1
2020-07-23T04:45:54.000Z
2020-07-23T04:45:54.000Z
examples/dense_block_tf.py
Cabbagehust2507/ResNet-tutorial
c4c8d41bff91c3f1c9f5d0e1870c789f970388df
[ "MIT" ]
null
null
null
examples/dense_block_tf.py
Cabbagehust2507/ResNet-tutorial
c4c8d41bff91c3f1c9f5d0e1870c789f970388df
[ "MIT" ]
null
null
null
import tensorflow as tf class ConvBlock(tf.keras.layers.Layer): def __init__(self, num_channels): super(ConvBlock, self).__init__() self.bn = tf.keras.layers.BatchNormalization() self.relu = tf.keras.layers.ReLU() self.conv = tf.keras.layer.Conv2D( filters = num_channel...
34.222222
73
0.609091
3c76ccb7e00d6652505b49446afcbdf15eed3a6e
81
py
Python
entity/example.py
gwbischof/entity
50ec32a590c949c3fa2da7fefbdbb17b747099a2
[ "BSD-3-Clause" ]
null
null
null
entity/example.py
gwbischof/entity
50ec32a590c949c3fa2da7fefbdbb17b747099a2
[ "BSD-3-Clause" ]
null
null
null
entity/example.py
gwbischof/entity
50ec32a590c949c3fa2da7fefbdbb17b747099a2
[ "BSD-3-Clause" ]
null
null
null
from entity.core import WorldSimulator world = WorldSimulator(30,30,30,30,1000)
20.25
40
0.802469
a3b22224c987dddc8e374e3b7646a4426067438d
804
py
Python
share/ci/windeploy.py
OneMoreGres/screendose
0786a24df46f3a6d429a4ea5a3ed63097079ef5e
[ "MIT" ]
null
null
null
share/ci/windeploy.py
OneMoreGres/screendose
0786a24df46f3a6d429a4ea5a3ed63097079ef5e
[ "MIT" ]
1
2019-02-23T21:32:52.000Z
2019-03-03T14:11:48.000Z
share/ci/windeploy.py
OneMoreGres/screendose
0786a24df46f3a6d429a4ea5a3ed63097079ef5e
[ "MIT" ]
1
2019-08-26T11:55:35.000Z
2019-08-26T11:55:35.000Z
import common as c from config import * import os import sys artifact_name = '{}-{}-{}.zip'.format(app_name, app_version, os_name) if len(sys.argv) > 1 and sys.argv[1] == 'artifact_name': # subcommand c.print(artifact_name) exit(0) artifact_path = os.path.abspath(artifact_name) c.print('>> Making win deploy'...
28.714286
74
0.715174
4ec3b3ff316088b12d909e3c1a05886b526c3287
15,815
py
Python
python/script.py
vineet3996/vim-gdscript3
009f7bb737172aeff40e0d3ed87c2b082566de52
[ "MIT" ]
null
null
null
python/script.py
vineet3996/vim-gdscript3
009f7bb737172aeff40e0d3ed87c2b082566de52
[ "MIT" ]
null
null
null
python/script.py
vineet3996/vim-gdscript3
009f7bb737172aeff40e0d3ed87c2b082566de52
[ "MIT" ]
null
null
null
# Functions for retrieving information in the current script. import re from collections import namedtuple import util import classes # Regex patterns for user declarations. _VAR_PATTERN = "\s*(?:export\s+?)?\s*(?:onready\s+?)?var\s+(\w+)\s*:?\s*(\w*)?" _CONST_PATTERN = "\s*const\s+(\w+)\s*=\s*(.+)" _FUNC_PATTERN = ...
37.74463
102
0.594689
3ab0541b4e81236f1124fb8038fd7b2f4d47c296
216
py
Python
Mundo 1/ex08.py
Alef-Martins/Exercicios_python_mundo-1
df93c4a9d0e9f9fbfeaf85863c4597c92d3c703c
[ "MIT" ]
null
null
null
Mundo 1/ex08.py
Alef-Martins/Exercicios_python_mundo-1
df93c4a9d0e9f9fbfeaf85863c4597c92d3c703c
[ "MIT" ]
null
null
null
Mundo 1/ex08.py
Alef-Martins/Exercicios_python_mundo-1
df93c4a9d0e9f9fbfeaf85863c4597c92d3c703c
[ "MIT" ]
null
null
null
#Leia um valor em metros e exiba convertido em centimetros e milimetros num = float(input('Informe uma medida em metros: ')) print(f'A medida convertida em centimetros é {num * 100} \n Em milimetros: {num * 1000}')
72
89
0.736111
dc958ad9b0056b9b6c83797a0ac8938711e843f0
1,253
py
Python
ui/old/gridlayout1.py
jonaslindemann/compute-course-public
b8f55595ebbd790d79b525efdff17b8517154796
[ "MIT" ]
4
2021-09-12T12:07:01.000Z
2021-09-29T17:38:34.000Z
ui/old/gridlayout1.py
jonaslindemann/compute-course-public
b8f55595ebbd790d79b525efdff17b8517154796
[ "MIT" ]
null
null
null
ui/old/gridlayout1.py
jonaslindemann/compute-course-public
b8f55595ebbd790d79b525efdff17b8517154796
[ "MIT" ]
5
2020-10-24T16:02:31.000Z
2021-09-28T20:57:46.000Z
# -*- coding: utf-8 -*- """ Created on Mon Apr 11 09:44:29 2016 @author: lindemann """ import sys from PyQt5.QtWidgets import * class MyWindow: """Main Window class for our application""" def __init__(self): """Class constructor""" self.ui = QMainWindow() self.ui.resize(200...
24.096154
49
0.5834
3979fa7079ae0c9dd29f71d8acce140d396d1f6f
4,656
py
Python
flax/struct.py
isabella232/flax
39a04e82d6f97ef90c59425599018f2b9df8b6ea
[ "Apache-2.0" ]
null
null
null
flax/struct.py
isabella232/flax
39a04e82d6f97ef90c59425599018f2b9df8b6ea
[ "Apache-2.0" ]
null
null
null
flax/struct.py
isabella232/flax
39a04e82d6f97ef90c59425599018f2b9df8b6ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Flax 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 or agreed to in wri...
34.235294
83
0.699313
e15fb7f4b029ecc1430c9cd5e3978b965b5997e1
410
py
Python
handling.py
MaayankSaraswat/inception-machina
606e45cd115235bc1c1c5634650848a1cb1f8554
[ "Apache-2.0" ]
null
null
null
handling.py
MaayankSaraswat/inception-machina
606e45cd115235bc1c1c5634650848a1cb1f8554
[ "Apache-2.0" ]
null
null
null
handling.py
MaayankSaraswat/inception-machina
606e45cd115235bc1c1c5634650848a1cb1f8554
[ "Apache-2.0" ]
null
null
null
try: f = open("tfc.txt") p=1 b=3 #p=b/0 for line in f: print(line) #f=open("abc.txt") except FileNotFoundError as e: print(e.filename) except Exception as e: print(e) except ZeroDivisionError as e: #except FileNotFoundError: #print("you should not have done this to me") ...
15.185185
49
0.631707
d88d27e5e7fcc0b15500f33bf926c7b78d68c574
737
py
Python
mikaponics/ecommerce/tasks.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
2
2019-04-30T23:51:41.000Z
2019-05-04T00:35:52.000Z
mikaponics/ecommerce/tasks.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
27
2019-04-30T20:22:28.000Z
2022-02-10T08:10:32.000Z
mikaponics/ecommerce/tasks.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import django_rq from django_rq import job from rq_scheduler import Scheduler from datetime import datetime, timedelta from django.apps import AppConfig from django.conf import settings from django.core.management import call_command @job def run_send_customer_receipt_email_by_invoice_id_func(...
30.708333
100
0.837178
c78ec7e0b1f75c38a7b17de37c80df3697e4d73c
14,791
py
Python
tests/scripts/thread-cert/pktverify/packet_verifier.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
2,962
2016-05-11T15:06:06.000Z
2022-03-27T20:06:16.000Z
tests/scripts/thread-cert/pktverify/packet_verifier.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
5,899
2016-05-11T19:21:49.000Z
2022-03-31T18:17:20.000Z
tests/scripts/thread-cert/pktverify/packet_verifier.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
1,113
2016-05-11T15:37:42.000Z
2022-03-31T09:37:04.000Z
#!/usr/bin/env python3 # # Copyright (c) 2019, The OpenThread Authors. # 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. Redistributions of source code must retain the above copyright # ...
41.200557
128
0.625245
ef6b95dbd3c475d608d286921ab3a3550dd72e6b
3,473
py
Python
src/networkx/utils/union_find.py
MarletteFunding/aws-kube-codesuite
ab4e5ce45416b83bffb947ab8d234df5437f4fca
[ "Apache-2.0" ]
184
2017-12-20T21:50:06.000Z
2022-03-19T13:24:58.000Z
src/networkx/utils/union_find.py
MarletteFunding/aws-kube-codesuite
ab4e5ce45416b83bffb947ab8d234df5437f4fca
[ "Apache-2.0" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
src/networkx/utils/union_find.py
MarletteFunding/aws-kube-codesuite
ab4e5ce45416b83bffb947ab8d234df5437f4fca
[ "Apache-2.0" ]
136
2018-01-09T22:52:06.000Z
2022-02-24T13:26:18.000Z
# Copyright 2016-2017 NetworkX developers. # Copyright (C) 2004-2017 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. """ Union-find data structure. """ from itertools import groupby from networkx.utils im...
32.457944
77
0.600346
afaa8f2ea853d7ba4c7e95d9d7b4c62069cbdb92
2,860
py
Python
scripts/practice/FB-reRun/returnMatrixInSpiralOrder.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/returnMatrixInSpiralOrder.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/returnMatrixInSpiralOrder.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Spiral Matrix Given an m x n matrix, return all elements of the matrix in spiral order. """ class Solution: def spiralOrder(self, matrix: List[List[int]]) -> List[int]: VISITED = 101 rows, columns = len(matrix), len(matrix[0]) # Four directions that we will move: right, down, left,...
34.878049
82
0.532517
a42db77f0cdfc6725494cbe7e1a441d2a955583f
84,804
py
Python
grafanalib/core.py
dholbach/grafanalib
7295044be7e227eb074d3f1ef65be9603bf222ae
[ "Apache-2.0" ]
null
null
null
grafanalib/core.py
dholbach/grafanalib
7295044be7e227eb074d3f1ef65be9603bf222ae
[ "Apache-2.0" ]
42
2020-11-03T06:56:20.000Z
2022-03-01T19:05:44.000Z
grafanalib/core.py
dholbach/grafanalib
7295044be7e227eb074d3f1ef65be9603bf222ae
[ "Apache-2.0" ]
null
null
null
"""Low-level functions for building Grafana dashboards. The functions in this module don't enforce Weaveworks policy, and only mildly encourage it by way of some defaults. Rather, they are ways of building arbitrary Grafana JSON. """ import itertools import math import string import warnings from numbers import Numb...
32.318598
147
0.618957
2844f78aa03d0274c977b5ac81c6be45f9d9ee60
2,324
py
Python
DirCleaner.py
b4shy/DirectoryCleaner
e2e73ccdbfb0ada968833f3c97321798b1545e92
[ "MIT" ]
null
null
null
DirCleaner.py
b4shy/DirectoryCleaner
e2e73ccdbfb0ada968833f3c97321798b1545e92
[ "MIT" ]
null
null
null
DirCleaner.py
b4shy/DirectoryCleaner
e2e73ccdbfb0ada968833f3c97321798b1545e92
[ "MIT" ]
null
null
null
import os import time import shutil weeks = 60 * 60 * 24 * 7 def checkPath(): path = input("Enter Path \n") print("Entered Path: \n" + path) print("Actual Path: \n" + os.getcwd()) if os.path.isdir(path): os.chdir(path) path = os.getcwd() return path else: print("Pa...
28
106
0.530981
94466348c47419326f17c7a44b64a474419b963f
3,998
py
Python
tests/listeners/test_error_injector_span_listener.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
22
2018-03-05T20:02:46.000Z
2021-04-09T12:00:18.000Z
tests/listeners/test_error_injector_span_listener.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
13
2018-03-26T07:57:57.000Z
2021-06-29T14:22:52.000Z
tests/listeners/test_error_injector_span_listener.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
3
2018-07-04T19:00:25.000Z
2020-12-01T11:57:29.000Z
from thundra.listeners import ErrorInjectorSpanListener from thundra.listeners.error_injector_span_listener import default_error_message from thundra.opentracing.tracer import ThundraTracer from boto3.exceptions import Boto3Error from redis import AuthenticationError def test_frequency(mocked_span): esl = ErrorInj...
27.383562
80
0.682591
eb469b49794bf404a5a36fb61d0d6edfcabd3509
11,980
py
Python
detectron2/evaluation/pascal_voc_evaluation.py
r07631025/detectron2
bbd3f55c826bf2b1eaf7421f7e8a21a0c8aa298b
[ "Apache-2.0" ]
null
null
null
detectron2/evaluation/pascal_voc_evaluation.py
r07631025/detectron2
bbd3f55c826bf2b1eaf7421f7e8a21a0c8aa298b
[ "Apache-2.0" ]
null
null
null
detectron2/evaluation/pascal_voc_evaluation.py
r07631025/detectron2
bbd3f55c826bf2b1eaf7421f7e8a21a0c8aa298b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import numpy as np import os import tempfile import xml.etree.ElementTree as ET from collections import OrderedDict, defaultdict from functools import lru_cache import torch from fvcore.common.file_io import P...
36.975309
99
0.548331
71d098d49a952bc2ab4800159e401bbfdeedbcff
4,757
py
Python
idl/Type.py
spiricn/libIDL
16738044991962bd3a7ab27f469d4364fbcd7b18
[ "MIT" ]
null
null
null
idl/Type.py
spiricn/libIDL
16738044991962bd3a7ab27f469d4364fbcd7b18
[ "MIT" ]
null
null
null
idl/Type.py
spiricn/libIDL
16738044991962bd3a7ab27f469d4364fbcd7b18
[ "MIT" ]
null
null
null
from idl.Annotatable import Annotatable from idl.lexer import Lang class Type(Annotatable): # Possible type modifiers bit fields MOD_IN = 1 << 0 MOD_OUT = 1 << 1 MOD_CALLBACK_REG = 1 << 2 MOD_CULLBACK_UNREG = 1 << 3 BOOL8, \ BOOL16, \ BOOL32, \ INT64, \ UINT64, \ INT32, \ ...
24.394872
77
0.467942
b009a6fea900f381ffc7709f110db3ff5aa65797
690
py
Python
python_playing_with_object_detection_opencv_yolo/using_yolo_1.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
5
2018-05-03T08:16:02.000Z
2021-09-04T03:44:24.000Z
python_playing_with_object_detection_opencv_yolo/using_yolo_1.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
1
2022-01-28T19:27:19.000Z
2022-01-28T19:27:19.000Z
python_playing_with_object_detection_opencv_yolo/using_yolo_1.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
2
2020-09-10T13:33:27.000Z
2022-02-09T11:07:38.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ [path] cd /path-to/your/directory/ [file] python using_yolo_1.py """ import cv2 import numpy as np # source # Load YOLO Algorithms net = cv2.dnn.readNetFromDarknet('config/yolov3.cfg', 'config/yolov3.weights') net.setPreferableBackend(cv2.dnn.DNN_BACKEND_OPENCV) #To...
17.692308
78
0.714493
c92536925f352099da971996b53f1da8d62a1657
5,836
py
Python
Micropython/mymatrix.py
alpha-timtauri/Mecanum-Car
cd426c028b4a3a84ac257045aafd3dbf4e220384
[ "CC0-1.0" ]
null
null
null
Micropython/mymatrix.py
alpha-timtauri/Mecanum-Car
cd426c028b4a3a84ac257045aafd3dbf4e220384
[ "CC0-1.0" ]
null
null
null
Micropython/mymatrix.py
alpha-timtauri/Mecanum-Car
cd426c028b4a3a84ac257045aafd3dbf4e220384
[ "CC0-1.0" ]
null
null
null
#mymatrix #Enthält alle benötigten mathematischen Operationen import cmath import math def size(a): #Gibt die Höhe und Breite einer Matrix zurück if type(a[0]) == int or type(a[0]) == float: currentsize = [1,len(a)] else: currentsize = [len(a),len(a[0])] #print ("Höhe" );print ...
30.082474
117
0.539411
3be613dd2ddc73bf82172e5e6fab06e9dc22de94
329
py
Python
work_orders/views.py
SUHAS0JAIN0TN/tarot_juicer
5bb4657f0e853fadfbe145ac4669b58dcf9bc413
[ "MIT" ]
null
null
null
work_orders/views.py
SUHAS0JAIN0TN/tarot_juicer
5bb4657f0e853fadfbe145ac4669b58dcf9bc413
[ "MIT" ]
null
null
null
work_orders/views.py
SUHAS0JAIN0TN/tarot_juicer
5bb4657f0e853fadfbe145ac4669b58dcf9bc413
[ "MIT" ]
null
null
null
from django.shortcuts import render def first_work_order(request): return render(request, 'work_orders/first_work_order.html') def second_work_order(request): return render(request, 'work_orders/second_work_order.html') def third_work_order(request): return render(request, 'work_orders/third_work_orde...
23.5
64
0.793313
ebd0b993d18a70b245d0797819ca74082776b4d0
451
py
Python
setup.py
ktagowski/node2vec
e3b8ee9b9d7fa92f399c4b270241b1a25260383a
[ "MIT" ]
null
null
null
setup.py
ktagowski/node2vec
e3b8ee9b9d7fa92f399c4b270241b1a25260383a
[ "MIT" ]
null
null
null
setup.py
ktagowski/node2vec
e3b8ee9b9d7fa92f399c4b270241b1a25260383a
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='node2vec', packages=['node2vec'], version='0.1.2', description='Implementation of the node2vec algorithm.', author='Elior Cohen', author_email='', license='MIT', url='https://github.com/eliorc/node2vec', install_requires=[ 'netwo...
22.55
60
0.587583