hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
a2067ed33a3a1be96603d79e2e8692eb71708f29
179
py
Python
23/04/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
23/04/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
70
2017-06-01T11:02:51.000Z
2017-06-30T00:35:32.000Z
23/04/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
import statistics data = [2.75, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5] print(statistics.mean(data)) # print(statistics.median(data)) # print(statistics.variance(data)) #
29.833333
47
0.698324
import statistics data = [2.75, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5] print(statistics.mean(data)) # 平均 print(statistics.median(data)) # 中央値 print(statistics.variance(data)) # 標本標準分散
33
0
0
0
0
0
0
0
0
41e91c81754e039394c5dd4c0257dd388ee3fa1c
134
py
Python
src/pyhid_usb_relay/exceptions.py
JPEWdev/pyhid-usb-relay
287f4e6b992634c7273512b92da31ff4daafa058
[ "MIT" ]
5
2021-09-14T16:52:41.000Z
2022-02-13T12:28:58.000Z
src/pyhid_usb_relay/exceptions.py
JPEWdev/pyhid-usb-relay
287f4e6b992634c7273512b92da31ff4daafa058
[ "MIT" ]
1
2022-03-05T12:14:50.000Z
2022-03-05T12:14:50.000Z
src/pyhid_usb_relay/exceptions.py
JPEWdev/pyhid-usb-relay
287f4e6b992634c7273512b92da31ff4daafa058
[ "MIT" ]
1
2022-01-19T13:21:33.000Z
2022-01-19T13:21:33.000Z
# Copyright 2021 Joshua Watt <JPEWhacker@gmail.com> # # SPDX-License-Identifier: MIT
16.75
51
0.761194
# Copyright 2021 Joshua Watt <JPEWhacker@gmail.com> # # SPDX-License-Identifier: MIT class DeviceNotFoundError(Exception): pass
0
0
0
25
0
0
0
0
23
25854b801aebe4a8a85e849fa0d7329bfed9bddd
557
py
Python
blog/entries/models.py
vinothsundararajan/Django_Blog
a897120991293b3268220b429ce3de79537b565b
[ "MIT" ]
1
2020-05-01T12:24:52.000Z
2020-05-01T12:24:52.000Z
blog/entries/models.py
vinothsundararajan/Django_Blog
a897120991293b3268220b429ce3de79537b565b
[ "MIT" ]
10
2020-05-03T10:31:02.000Z
2022-03-12T00:26:51.000Z
blog/entries/models.py
vinothsundararajan/Django_Blog
a897120991293b3268220b429ce3de79537b565b
[ "MIT" ]
1
2020-05-03T10:11:32.000Z
2020-05-03T10:11:32.000Z
# Create your models here.
34.8125
94
0.748654
from django.db import models from django.contrib.auth.models import User from ckeditor_uploader.fields import RichTextUploadingField # Create your models here. class Entry(models.Model): entry_title = models.CharField(max_length=50) entry_text = RichTextUploadingField() entry_date = models.DateTimeField(au...
0
0
0
370
0
0
0
67
88
54aff4a4ff3deac3f93e8a6c1ecd728b45da102b
11,643
py
Python
fpi/assignment2/operations.py
rrrichter/ufrgs
6a1de03afb5af0ff48d0e630a501c1db3ec2591e
[ "MIT" ]
null
null
null
fpi/assignment2/operations.py
rrrichter/ufrgs
6a1de03afb5af0ff48d0e630a501c1db3ec2591e
[ "MIT" ]
null
null
null
fpi/assignment2/operations.py
rrrichter/ufrgs
6a1de03afb5af0ff48d0e630a501c1db3ec2591e
[ "MIT" ]
1
2018-06-24T18:19:23.000Z
2018-06-24T18:19:23.000Z
root = Tk() panelA = None panelB = None img = None img2 = None img3 = None ConvolutionLabel = Label(root, text="Convolute").grid(row=0,column=0) Conv00Entry = Entry(root, bd =5) Conv01Entry = Entry(root, bd =5) Conv02Entry = Entry(root, bd =5) Conv10Entry = Entry(root, bd =5) Conv11Entry = Entry(root, bd =5) Conv12E...
28.962687
429
0.675341
import numpy as np import cv2 import copy from Tkinter import * from PIL import Image from PIL import ImageTk import tkFileDialog def selectImage(): global panelA, panelB, panelC global img, img2 path = tkFileDialog.askopenfilename() if len(path) > 0: #img = loadImage('test_images/Space_187k.jpg') #img2 = l...
0
0
0
0
0
8,580
0
-24
591
84afb68b2e52f3070efd8c0ae2d94c912cba6f2a
59,900
py
Python
vendor/mari/1.4v1/_ocio_toolbar.py
mjtitchener-fn/OpenColorIO
00b5362442b9fe954c4b1161fe0cec621fcf1915
[ "BSD-3-Clause" ]
628
2018-08-11T02:18:36.000Z
2022-03-31T15:05:23.000Z
src/mari/1.4v1/_ocio_toolbar.py
dictoon/OpenColorIO
64adcad300adfd166280d2e7b1fb5c3ce7dca482
[ "BSD-3-Clause" ]
655
2019-04-16T15:15:31.000Z
2022-03-31T18:05:52.000Z
src/mari/1.4v1/_ocio_toolbar.py
dictoon/OpenColorIO
64adcad300adfd166280d2e7b1fb5c3ce7dca482
[ "BSD-3-Clause" ]
181
2018-12-22T15:39:52.000Z
2022-03-22T09:52:27.000Z
#------------------------------------------------------------------------------- # Post processing (color management) related Mari scripts # coding: utf-8 # Copyright (c) 2011 The Foundry Visionmongers Ltd. All Rights Reserved. #------------------------------------------------------------------------------- import ma...
46.796875
188
0.581953
#------------------------------------------------------------------------------- # Post processing (color management) related Mari scripts # coding: utf-8 # Copyright (c) 2011 The Foundry Visionmongers Ltd. All Rights Reserved. #------------------------------------------------------------------------------- import ma...
0
0
0
56,463
0
1,469
0
16
69
3adaa59898dd69e5ed1505298901761c27f40382
3,367
py
Python
fixit/common/tests/test_imports.py
dkgi/Fixit
1a68680dac71b0b332da9ccb0b8b51161f270130
[ "Apache-2.0" ]
null
null
null
fixit/common/tests/test_imports.py
dkgi/Fixit
1a68680dac71b0b332da9ccb0b8b51161f270130
[ "Apache-2.0" ]
null
null
null
fixit/common/tests/test_imports.py
dkgi/Fixit
1a68680dac71b0b332da9ccb0b8b51161f270130
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from pathlib import Path DUMMY_PACKAGE: str = "fixit.common.tests.test_imports_dummy_package" DUMMY_PACKAGE_PATH: Path = Path(__file__).paren...
37
96
0.716068
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import shutil from pathlib import Path from libcst.testing.utils import UnitTest from fixit.common.config import ( CACHE as CO...
0
0
0
2,423
0
0
0
238
158
3bf448d8e67ca350d1128281134e29fbeb3ed855
1,603
py
Python
src/network/addrthread.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
1,583
2015-01-01T13:03:20.000Z
2022-03-31T23:10:00.000Z
src/network/addrthread.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
841
2015-01-01T14:51:48.000Z
2022-03-25T06:45:14.000Z
src/network/addrthread.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
482
2015-01-07T00:53:25.000Z
2022-03-24T15:58:12.000Z
""" Announce addresses as they are received from other hosts """
32.714286
74
0.535246
""" Announce addresses as they are received from other hosts """ import Queue import state from helper_random import randomshuffle from network.assemble import assemble_addr from network.connectionpool import BMConnectionPool from queues import addrQueue from threads import StoppableThread class AddrThread(Stoppable...
0
0
0
1,287
0
0
0
72
178
e43a18ae3fda6f1eb82d9a2621cb84585c33fe6f
25
py
Python
branch.py
Audrey-Newman/cs3240-labdemo
9bc1562616969bd6b7c4cfbbeb42766fb98c4d62
[ "MIT" ]
null
null
null
branch.py
Audrey-Newman/cs3240-labdemo
9bc1562616969bd6b7c4cfbbeb42766fb98c4d62
[ "MIT" ]
null
null
null
branch.py
Audrey-Newman/cs3240-labdemo
9bc1562616969bd6b7c4cfbbeb42766fb98c4d62
[ "MIT" ]
null
null
null
print("branches are fun")
25
25
0.76
print("branches are fun")
0
0
0
0
0
0
0
0
0
31947d277ef5f038f0c95f56a0c2e29cb0845520
271
py
Python
_game_chats/templatetags/custom_filters.py
cansarigol/game-chats
4b58e368cbb68126cfeeea2297c8b9bae5679916
[ "MIT" ]
1
2018-03-28T10:38:59.000Z
2018-03-28T10:38:59.000Z
_game_chats/templatetags/custom_filters.py
cansarigol/game-chats
4b58e368cbb68126cfeeea2297c8b9bae5679916
[ "MIT" ]
1
2018-02-21T14:11:15.000Z
2018-02-28T13:54:26.000Z
_game_chats/templatetags/custom_filters.py
cansarigol/game-chats
4b58e368cbb68126cfeeea2297c8b9bae5679916
[ "MIT" ]
null
null
null
from django import template register = template.Library()
22.583333
82
0.708487
from django import template register = template.Library() @register.filter(name='addcss') def addcss(field, css_addition): css_classes = field.field.widget.attrs.get('class', '') return field.as_widget(attrs={"class": "%s %s" % (css_classes, css_addition)})
0
186
0
0
0
0
0
0
23
da993499bc9ffd9e1ef582071f0dd064a15e6212
1,733
py
Python
wxbtool/data/variables.py
caiyunapp/wxbtool
7a019e1c0b9d454d07ed5cecbbf5ed00951d3ce7
[ "MIT" ]
3
2021-03-14T03:15:40.000Z
2021-09-30T16:32:52.000Z
wxbtool/data/variables.py
caiyunapp/wxbtool
7a019e1c0b9d454d07ed5cecbbf5ed00951d3ce7
[ "MIT" ]
null
null
null
wxbtool/data/variables.py
caiyunapp/wxbtool
7a019e1c0b9d454d07ed5cecbbf5ed00951d3ce7
[ "MIT" ]
1
2021-03-14T03:15:40.000Z
2021-03-14T03:15:40.000Z
# -*- coding: utf-8 -*- vars2d = [ '2m_temperature', '10m_u_component_of_wind', '10m_v_component_of_wind', 'total_cloud_cover', 'total_precipitation', 'toa_incident_solar_radiation', 'temperature_850hPa', ] vars3d = [ 'geopotential', 'temperature', 'specific_humidity', 'relative_humidity',...
27.951613
136
0.622043
# -*- coding: utf-8 -*- vars2d = [ '2m_temperature', '10m_u_component_of_wind', '10m_v_component_of_wind', 'total_cloud_cover', 'total_precipitation', 'toa_incident_solar_radiation', 'temperature_850hPa', ] vars3d = [ 'geopotential', 'temperature', 'specific_humidity', 'relative_humidity',...
0
0
0
0
0
350
0
0
23
cc8af49aa90076ada3fd9cdddb4cd4e13405a748
1,457
py
Python
steppy/controllers/base_controller.py
ygravrand/steppy
f1663da562243912afa7c016cf2aa517c20ed937
[ "BSD-3-Clause" ]
34
2016-12-13T14:46:53.000Z
2021-05-03T17:24:35.000Z
steppy/controllers/base_controller.py
ygravrand/steppy
f1663da562243912afa7c016cf2aa517c20ed937
[ "BSD-3-Clause" ]
3
2016-12-15T11:07:08.000Z
2022-01-23T10:09:04.000Z
steppy/controllers/base_controller.py
ygravrand/steppy
f1663da562243912afa7c016cf2aa517c20ed937
[ "BSD-3-Clause" ]
4
2017-02-11T14:02:45.000Z
2018-11-11T16:42:18.000Z
# -*- coding: utf-8 -*- """ StepPy :copyright: (c) 2016-2017 by Yann Gravrand. :license: BSD, see LICENSE for more details. """
33.883721
88
0.612903
# -*- coding: utf-8 -*- """ StepPy :copyright: (c) 2016-2017 by Yann Gravrand. :license: BSD, see LICENSE for more details. """ from collections import OrderedDict class BaseController(object): def __init__(self, sequencer, console, port_name=''): self.sequencer = sequencer self.cons...
0
0
0
1,256
0
0
0
14
46
2e7d9fb93923633f4e151a78651eefc2d0d36792
841
py
Python
src/bp/domain.py
jggomez/Python-Reference-Microservice
13723c5f5a205bf1f874c44dddbd4cab64839da7
[ "MIT" ]
14
2020-07-09T22:31:09.000Z
2022-01-21T23:03:29.000Z
src/bp/domain.py
jggomez/Python-Reference-Microservice
13723c5f5a205bf1f874c44dddbd4cab64839da7
[ "MIT" ]
1
2021-02-03T23:51:35.000Z
2021-02-03T23:51:35.000Z
src/bp/domain.py
jggomez/Python-Reference-Microservice
13723c5f5a205bf1f874c44dddbd4cab64839da7
[ "MIT" ]
6
2020-07-10T04:07:11.000Z
2020-10-04T00:04:30.000Z
from typing_extensions import Final # Constants ID: Final = "id" NAME: Final = "name" URL_BACKGROUND: Final = "urlbackground" CODE: Final = "code" TYPE: Final = "type" HAS_MEDALS: Final = "hasmedals" LEVEL: Final = "level" NAME_LEVEL: Final = "namelevel" PROGRESSION: Final = "progression"
21.564103
48
0.606421
from dataclasses import dataclass from typing_extensions import Final # Constants ID: Final = "id" NAME: Final = "name" URL_BACKGROUND: Final = "urlbackground" CODE: Final = "code" TYPE: Final = "type" HAS_MEDALS: Final = "hasmedals" LEVEL: Final = "level" NAME_LEVEL: Final = "namelevel" PROGRESSION: Final = "progres...
0
491
0
0
0
0
0
12
45
180b8061f6ddde6d89c5f92f515db94b94f06374
23,348
py
Python
tests/integration/test_hooks_github.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
null
null
null
tests/integration/test_hooks_github.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
tests/integration/test_hooks_github.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
1
2018-06-07T10:58:15.000Z
2018-06-07T10:58:15.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jess Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragn <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # Copyright (C) 2014-2017 Anler Hernndez <he...
37.658065
147
0.684256
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # Copyright (C) 2014-2017 Anler Hernández ...
6
0
0
0
0
20,817
0
457
975
eb161353e603201191dc9cea20c9382bbb35662d
4,600
py
Python
mrcnn/prediction_detection.py
Stephen-HWJ/Mask_RCNN
4994683c5d694221b00a6b8470e78555c31bfc87
[ "MIT" ]
null
null
null
mrcnn/prediction_detection.py
Stephen-HWJ/Mask_RCNN
4994683c5d694221b00a6b8470e78555c31bfc87
[ "MIT" ]
null
null
null
mrcnn/prediction_detection.py
Stephen-HWJ/Mask_RCNN
4994683c5d694221b00a6b8470e78555c31bfc87
[ "MIT" ]
null
null
null
import os import sys import numpy as np import tensorflow as tf import matplotlib.pyplot as plt import matplotlib.patches as patches # Root directory of the project ROOT_DIR = os.path.abspath("../../") # Import Mask RCNN sys.path.append(ROOT_DIR) # To find local version of the library from mrcnn import u...
31.081081
132
0.707391
import os import sys import random import math import re import time import numpy as np import tensorflow as tf import matplotlib import matplotlib.pyplot as plt import matplotlib.patches as patches import shutil import glob import os.path as osp # Root directory of the project ROOT_DIR = os.path.abspa...
0
0
0
953
0
0
0
-18
328
b3002caf6fad62fa4323c65c68724aa877cc6ad3
2,953
py
Python
kyu_6/count_letters_in_string/test_count_letters_in_string.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_6/count_letters_in_string/test_count_letters_in_string.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_6/count_letters_in_string/test_count_letters_in_string.py
pedrocodacyorg2/codewars
ba3ea81125b6082d867f0ae34c6c9be15e153966
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # FUNDAMENTALS STRINGS HASHES DATA STRUCTURES
34.741176
94
0.552997
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ # FUNDAMENTALS STRINGS HASHES DATA STRUCTURES import unittest import allure from utils.log_func import print_log from kyu_6.count_letters_in_string.count_letters_in_string import letter_count @allu...
0
2,616
0
0
0
0
0
58
112
4f16a3131b11e34227efd2b6d285bf5071c9a537
2,895
py
Python
torch/nested/_nestedtensor.py
jiyuanzFB/pytorch
d047e475f830631d8fcc877ea17eac8fb34748d7
[ "Intel" ]
1
2022-03-08T14:43:39.000Z
2022-03-08T14:43:39.000Z
torch/nested/_nestedtensor.py
jiyuanzFB/pytorch
d047e475f830631d8fcc877ea17eac8fb34748d7
[ "Intel" ]
null
null
null
torch/nested/_nestedtensor.py
jiyuanzFB/pytorch
d047e475f830631d8fcc877ea17eac8fb34748d7
[ "Intel" ]
null
null
null
# TODO: This entire class is not really necessary now that NestedTensor lives # in tree; before it lived out of tree and there was no way to conveniently # override the string printing behavior. Now that we are in tree, we can # directly override _tensor_str to capture this behavior, and the wrapper subclass # is n...
27.056075
82
0.543351
import torch from functools import wraps @wraps(torch._nested_tensor) def nested_tensor(*args, **kwargs): return NestedTensor(torch._nested_tensor(*args, **kwargs)) # TODO: This entire class is not really necessary now that NestedTensor lives # in tree; before it lived out of tree and there was no way to conven...
0
602
0
1,816
0
0
0
-3
89
9429614cea37db85cc533b5f30311212d8acc0b1
2,918
py
Python
divia_api/stop.py
filau/pda_demo
fa7095bba31b1a74ad05add7c7827df9641f0210
[ "BSD-3-Clause" ]
null
null
null
divia_api/stop.py
filau/pda_demo
fa7095bba31b1a74ad05add7c7827df9641f0210
[ "BSD-3-Clause" ]
null
null
null
divia_api/stop.py
filau/pda_demo
fa7095bba31b1a74ad05add7c7827df9641f0210
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 """ stop.py divia_api is a Python library that allows to retrieve the timetable of Divias bus and tramways straight from a Python script. Copyright (C) 2021 Firmin Launay This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
37.896104
160
0.620288
# coding=utf-8 """ stop.py divia_api is a Python library that allows to retrieve the timetable of Divia’s bus and tramways straight from a Python script. Copyright (C) 2021 Firmin Launay This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publ...
3
0
0
1,953
0
0
0
13
46
3b9395c7e5a302b543a851cb1d2f5ab62adda620
5,544
py
Python
bitrix24_bridge/amqp/amqp.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
bitrix24_bridge/amqp/amqp.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
13
2020-02-12T00:58:41.000Z
2022-03-11T23:53:16.000Z
bitrix24_bridge/amqp/amqp.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
import functools from django.conf import settings from typing import Callable, Any, Optional """ BB = Bitrix24 Bridge """ def get_var(name) -> Callable[[], Optional[Any]]: """ Safe wraper over settings :param name: :return: Callable[[], Optional[Any]] - get param from settings if it defined, else ret...
31.146067
109
0.674784
import functools from abc import ABC, abstractmethod from dataclasses import dataclass, field import pika import ujson from django.conf import settings from typing import Callable, Any, Optional, List """ BB = Bitrix24 Bridge """ def get_var(name) -> Callable[[], Optional[Any]]: """ Safe wraper over setting...
7
4,398
0
540
0
0
0
20
181
d838e226a7de7b9cd782061fb6f64b3134bc06cc
3,053
py
Python
setup.py
jay-johnson/antinex-client
76a3cfbe8a8d174d87aba37de3d8acaf8c4864ba
[ "Apache-2.0" ]
5
2018-03-24T08:12:36.000Z
2019-09-10T14:38:36.000Z
setup.py
jay-johnson/antinex-client
76a3cfbe8a8d174d87aba37de3d8acaf8c4864ba
[ "Apache-2.0" ]
1
2020-06-03T13:40:22.000Z
2020-09-05T12:53:22.000Z
setup.py
jay-johnson/antinex-client
76a3cfbe8a8d174d87aba37de3d8acaf8c4864ba
[ "Apache-2.0" ]
null
null
null
import os import sys import warnings try: from setuptools import setup except ImportError: from distutils.core import setup """ https://packaging.python.org/guides/making-a-pypi-friendly-readme/ check the README.rst works on pypi as the long_description with: twine check dist/* """ long_description = open('...
26.780702
77
0.651163
import os import sys import warnings import unittest try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")] def in...
0
0
0
401
0
0
0
28
68
d88c3550018e2ef9933db5e686b6cf597d8637e6
441
py
Python
lambdas/setup_upload_artifacts/genpath.py
aws-samples/aws-bikenow-demo
aec204b446910022985ba5e1731a24ddcfb6fcac
[ "MIT-0" ]
16
2020-03-26T16:05:26.000Z
2021-11-04T20:00:53.000Z
lambdas/setup_upload_artifacts/genpath.py
aws-samples/aws-bikenow-demo
aec204b446910022985ba5e1731a24ddcfb6fcac
[ "MIT-0" ]
1
2022-02-27T10:55:00.000Z
2022-02-27T10:55:00.000Z
lambdas/setup_upload_artifacts/genpath.py
aws-samples/aws-bikenow-demo
aec204b446910022985ba5e1731a24ddcfb6fcac
[ "MIT-0" ]
6
2020-06-08T11:43:40.000Z
2021-01-09T20:31:08.000Z
import os SCRIPT_BUCKET = 'mybucket' SCRIPT_FOLDER = 'artifacts' # Copy Glue script files to S3 bucket script_path = 'artifacts' #my_bucket = s3.Bucket(SCRIPT_BUCKET) for path, subdirs, files in os.walk(script_path): path = path.replace("\\","/") directory_name = path.replace(script_path, "") for file in files:...
24.5
52
0.734694
import json import os from os import listdir from os.path import isfile, join SCRIPT_BUCKET = 'mybucket' SCRIPT_FOLDER = 'artifacts' # Copy Glue script files to S3 bucket script_path = 'artifacts' #my_bucket = s3.Bucket(SCRIPT_BUCKET) for path, subdirs, files in os.walk(script_path): path = path.replace("\\","/") ...
0
0
0
0
0
0
0
2
66
dd2a6ae145b8d2bc6728daea6b5f1f476832af35
1,313
py
Python
Zadania1/3_zadanie.py
ViktoriaGallikova/basic-python
71152f9a1de0e863428e1dd4f4784c129543d015
[ "MIT" ]
null
null
null
Zadania1/3_zadanie.py
ViktoriaGallikova/basic-python
71152f9a1de0e863428e1dd4f4784c129543d015
[ "MIT" ]
null
null
null
Zadania1/3_zadanie.py
ViktoriaGallikova/basic-python
71152f9a1de0e863428e1dd4f4784c129543d015
[ "MIT" ]
null
null
null
# Sekvencia DNA sa sklad zo tyroch typov nukleovch bz (A, C, G, T). Relatvna poetnos bzy vyjadruje, ak as sekvencie je tvoren danm typom bzy (poet vskytov bzy / dka sekvencie). Set relatvnej poetnosti je teda vdy rovna 1. # Napte definciu funkcie funkcia3, ktor zoberie ako parameter sekvenciu DNA a vrti slovnk s relatv...
45.275862
294
0.675552
# Sekvencia DNA sa skladá zo štyroch typov nukleových báz (A, C, G, T). Relatívna početnosť bázy vyjadruje, aká časť sekvencie je tvorená daným typom bázy (počet výskytov bázy / dĺžka sekvencie). Súčet relatívnej početnosti je teda vždy rovna 1. # Napíšte definíciu funkcie funkcia3, ktorá zoberie ako parameter sekvenci...
106
0
0
0
0
0
0
7
45
8bcb83df4019ec4e0aba861e8793a5b4505212d3
312
py
Python
MITx6002/Lec7Exc3.py
osamadel/Python
6c7e26a96d4b8f875755de98f16eba89e81d94d2
[ "MIT" ]
null
null
null
MITx6002/Lec7Exc3.py
osamadel/Python
6c7e26a96d4b8f875755de98f16eba89e81d94d2
[ "MIT" ]
null
null
null
MITx6002/Lec7Exc3.py
osamadel/Python
6c7e26a96d4b8f875755de98f16eba89e81d94d2
[ "MIT" ]
null
null
null
L = ['apples', 'oranges', 'kiwis', 'pineapples'] print(stdDevOfLengths(L))
26
56
0.528846
def stdDevOfLengths(L): N = len(L) std = 0 if N == 0: return float('NaN') mean = sum(list(map(lambda x: len(x),L))) / float(N) for item in L: std += (len(item) - mean) ** 2 return (std / N) ** 0.5 L = ['apples', 'oranges', 'kiwis', 'pineapples'] print(stdDevOfLengths(L))
0
0
0
0
0
215
0
0
22
2b2ba3652a6b9cdf4b3663e5f95cf9ff4429b79c
9,352
py
Python
nuqql/conversation/history.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
3
2019-04-15T18:33:36.000Z
2019-04-21T19:18:10.000Z
nuqql/conversation/history.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
15
2019-04-15T18:35:56.000Z
2019-09-14T08:24:32.000Z
nuqql/conversation/history.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
1
2019-06-16T12:00:30.000Z
2019-06-16T12:00:30.000Z
""" History: (file) logging for nuqql conversations """ import logging from typing import TYPE_CHECKING if TYPE_CHECKING: # imports for typing # pylint: disable=cyclic-import logger = logging.getLogger(__name__) HISTORY_FILE = "/history" LASTREAD_FILE = "/lastread"
33.519713
78
0.561591
""" History: (file) logging for nuqql conversations """ import datetime import logging import pathlib import os from typing import List, Optional, TYPE_CHECKING import nuqql.config from .logmessage import LogMessage if TYPE_CHECKING: # imports for typing # pylint: disable=cyclic-import from .conversation ...
0
1,879
0
7,008
0
0
0
19
169
0340153eb1fc71ee60959c63e72695c6b41b4de0
22,086
py
Python
public/yum-3.2.28/yum/rpmtrans.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
8
2021-11-26T06:19:06.000Z
2022-01-11T01:30:11.000Z
initrd/usr/lib/python2.6/site-packages/yum/rpmtrans.py
OpenCloudOS/OpenCloudOS-tools
06b12aab3182f4207d78a5d8733be03f0d7b69a4
[ "MulanPSL-1.0" ]
5
2021-02-02T08:17:10.000Z
2022-02-27T06:53:42.000Z
public/yum-3.2.28/yum/rpmtrans.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
2
2021-12-21T08:36:02.000Z
2021-12-21T08:55:38.000Z
#!/usr/bin/python -t # 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 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it...
38.883803
99
0.566241
#!/usr/bin/python -t # 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 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it...
0
0
0
20,668
0
0
0
-83
365
a3ff02be149a9bc975912b020d952fc202992fa1
6,662
py
Python
Code/0_only_conditioning_to_global_features/util_scripts.py
SCRFpublic/GeoModeling_Conditional_ProGAN
fb8df86f555fa19572ba7fd9ae719ede5cd961ff
[ "MIT" ]
8
2020-06-30T02:39:17.000Z
2022-03-17T07:14:11.000Z
Code/0_only_conditioning_to_global_features/util_scripts.py
SuihongSong/GeoModeling_Conditional_ProGAN
1ad99865743e161811d46ac96972885432d575e6
[ "MIT" ]
null
null
null
Code/0_only_conditioning_to_global_features/util_scripts.py
SuihongSong/GeoModeling_Conditional_ProGAN
1ad99865743e161811d46ac96972885432d575e6
[ "MIT" ]
6
2020-08-29T01:04:41.000Z
2022-01-04T06:04:30.000Z
import scipy.ndimage #---------------------------------------------------------------------------- # Generate random images or image grids using a previously trained network. # To run, uncomment the appropriate line in config.py and launch train.py. #-------------------------------------------------------------------...
52.046875
239
0.641099
import os import time import re import bisect from collections import OrderedDict import numpy as np import tensorflow as tf import scipy.ndimage import scipy.misc import config import misc import tfutil import train import dataset #---------------------------------------------------------------------------- # Genera...
0
0
0
0
0
5,668
0
-75
357
35704a18f20d0f4295ef668109534846720c2409
405
py
Python
funolympics/migrations/0002_auto_20200522_1531.py
codeema/Yokiyo
2e710bca487ee393784c116b7db2db7337f73d40
[ "MIT" ]
null
null
null
funolympics/migrations/0002_auto_20200522_1531.py
codeema/Yokiyo
2e710bca487ee393784c116b7db2db7337f73d40
[ "MIT" ]
6
2020-05-20T15:29:55.000Z
2021-09-08T02:02:43.000Z
funolympics/migrations/0002_auto_20200522_1531.py
codeema/Yokiyo
2e710bca487ee393784c116b7db2db7337f73d40
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-22 15:31
21.315789
75
0.604938
# Generated by Django 3.0.6 on 2020-05-22 15:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('funolympics', '0001_initial'), ] operations = [ migrations.AlterField( model_name='blog', name='blogimage', ...
0
0
0
291
0
0
0
19
46
a700309f30bff5775f2751480b9a77e37e2435af
5,731
py
Python
b4sacr.py
DarthLayer/CapitalCalculator
8d637e0dd68edaec33f9c96b505889c64b3df15f
[ "MIT" ]
2
2018-01-04T20:44:04.000Z
2018-11-01T09:54:33.000Z
b4sacr.py
DarthLayer/CapitalCalculator
8d637e0dd68edaec33f9c96b505889c64b3df15f
[ "MIT" ]
null
null
null
b4sacr.py
DarthLayer/CapitalCalculator
8d637e0dd68edaec33f9c96b505889c64b3df15f
[ "MIT" ]
null
null
null
""" Basel IV Standardised Approach to Credit Risk.py (b4sacr.py) ---------------- This package encapsulates the Basel Committee on Bank Supervision's finalisation of Basel III for standardised credit risk. The text is found at https://www.bis.org/bcbs/publ/d424.htm This will serve as the foundation of any Basel 4 impa...
39.253425
116
0.558367
""" Basel IV Standardised Approach to Credit Risk.py (b4sacr.py) ---------------- This package encapsulates the Basel Committee on Bank Supervision's finalisation of Basel III for standardised credit risk. The text is found at https://www.bis.org/bcbs/publ/d424.htm This will serve as the foundation of any Basel 4 impa...
0
0
0
4,290
0
0
0
-2
45
fb4d06256f950ae197b74762203759121b1aa3dc
8,646
py
Python
bbp/utils/batch/bbp_converge.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
28
2017-10-31T09:16:30.000Z
2022-02-28T23:44:29.000Z
bbp/utils/batch/bbp_converge.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
37
2017-05-23T15:15:35.000Z
2022-02-05T09:13:18.000Z
bbp/utils/batch/bbp_converge.py
ZhangHCFJEA/bbp
33bd999cf8d719c49f9a904872c62f02eb5850d1
[ "BSD-3-Clause" ]
26
2017-09-21T17:43:33.000Z
2021-11-29T06:34:30.000Z
#!/usr/bin/env python """ Copyright 2010-2019 University Of Southern California 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...
34.862903
94
0.614157
#!/usr/bin/env python """ Copyright 2010-2019 University Of Southern California 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...
0
0
0
0
0
0
0
-26
66
8039d0bc14c0f908d62088df4ee384c5c13e5f06
1,704
py
Python
devilry/apps/core/models/__init__.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/apps/core/models/__init__.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/apps/core/models/__init__.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
from .abstract_is_admin import AbstractIsAdmin from .abstract_is_examiner import AbstractIsExaminer from .abstract_is_candidate import AbstractIsCandidate from .basenode import BaseNode from .subject import Subject from .period import Period, PeriodApplicationKeyValue from .period_tag import PeriodTag from .relateduser...
53.25
109
0.814554
from .abstract_is_admin import AbstractIsAdmin from .abstract_is_examiner import AbstractIsExaminer from .abstract_is_candidate import AbstractIsCandidate from .basenode import BaseNode from .subject import Subject from .period import Period, PeriodApplicationKeyValue from .period_tag import PeriodTag from .relateduser...
0
0
0
0
0
0
0
0
0
6c23ab9b4be608106c13982dd7e9c7f2ae389499
13,591
py
Python
sdk/redis/azure-mgmt-redis/tests/test_cli_mgmt_redis.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/redis/azure-mgmt-redis/tests/test_cli_mgmt_redis.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/redis/azure-mgmt-redis/tests/test_cli_mgmt_redis.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------------...
44.854785
198
0.452579
# 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. #----------------------------------------------------------------------...
0
11,420
0
1,202
0
0
0
52
91
f076ccc3477f3a026008f48bbcf3c7e496ea44d6
1,459
py
Python
Application.py
ReedGraff/High-Low
c8ba0339d7818e344cacf9a73a83d24dc539c2ca
[ "MIT" ]
1
2022-01-06T05:50:53.000Z
2022-01-06T05:50:53.000Z
Application.py
ReedGraff/High-Low
c8ba0339d7818e344cacf9a73a83d24dc539c2ca
[ "MIT" ]
null
null
null
Application.py
ReedGraff/High-Low
c8ba0339d7818e344cacf9a73a83d24dc539c2ca
[ "MIT" ]
null
null
null
import Bot # This is the local Python Module that we made # Initialization bot_1 = Bot.Bot("ya boi", "just got bamboozled", "Bot_1") # Find Functionality find_input = { "function_name": "One_Stock", "parameters": [ "FIS" ] } find_output = bot_1.Find(find_input) # Finance Functionality finance_inp...
19.197368
113
0.67512
import Bot # This is the local Python Module that we made # Initialization bot_1 = Bot.Bot("ya boi", "just got bamboozled", "Bot_1") # Find Functionality find_input = { "function_name": "One_Stock", "parameters": [ "FIS" ] } find_output = bot_1.Find(find_input) # Finance Functionality finance_inp...
0
0
0
0
0
0
0
0
0
0705ee39b935392e5ad1eb56149463ca5a4842d9
10,251
py
Python
nodes/visualise_with_mocapped_tag.py
wtabib/extrinsics_calibrator
b0957e45e9c1c09e60ec115c1ec94991a0b338a0
[ "BSD-3-Clause" ]
3
2020-10-10T21:19:02.000Z
2022-03-06T06:42:53.000Z
nodes/visualise_with_mocapped_tag.py
wtabib/extrinsics_calibrator
b0957e45e9c1c09e60ec115c1ec94991a0b338a0
[ "BSD-3-Clause" ]
null
null
null
nodes/visualise_with_mocapped_tag.py
wtabib/extrinsics_calibrator
b0957e45e9c1c09e60ec115c1ec94991a0b338a0
[ "BSD-3-Clause" ]
1
2019-09-05T21:39:55.000Z
2019-09-05T21:39:55.000Z
#!/usr/bin/env python2.7 import numpy as np import sys import cv2 import tf import pdb import yaml import rosbag import rospy from sensor_msgs.msg import Image from nav_msgs.msg import Odometry from message_filters import ApproximateTimeSynchronizer, Subscriber from cv_bridge import CvBridge from apriltag_tracker._Ap...
40.517787
135
0.581504
#!/usr/bin/env python2.7 import numpy as np import sys import cv2 import tf import pdb import yaml import rosbag import rospy from sensor_msgs.msg import Image from nav_msgs.msg import Odometry from message_filters import ApproximateTimeSynchronizer, Subscriber from cv_bridge import CvBridge from apriltag_tracker._Ap...
0
0
0
0
0
7,414
0
0
92
ca3f25ac2cef6d613b36315d25c655d910c24d48
2,969
py
Python
cloudscale/__init__.py
resmo/python-cloudscale
e194e3f74c4df549e59781861d4a0a1e1abf62fc
[ "MIT" ]
6
2019-11-21T15:08:58.000Z
2019-12-18T07:46:01.000Z
cloudscale/__init__.py
resmo/python-cloudscale
e194e3f74c4df549e59781861d4a0a1e1abf62fc
[ "MIT" ]
15
2019-11-26T19:48:12.000Z
2020-05-01T14:52:07.000Z
cloudscale/__init__.py
resmo/python-cloudscale
e194e3f74c4df549e59781861d4a0a1e1abf62fc
[ "MIT" ]
null
null
null
APP_NAME = 'cloudscale-cli' CLOUDSCALE_API_ENDPOINT = 'https://api.cloudscale.ch/v1' CLOUDSCALE_CONFIG = 'cloudscale.ini'
29.989899
124
0.617043
import os import configparser from .client import RestAPI from .lib.server import Server from .lib.server_group import ServerGroup from .lib.volume import Volume from .lib.flavor import Flavor from .lib.floating_ip import FloatingIp from .lib.image import Image from .lib.region import Region from .lib.network import Ne...
0
0
0
2,313
0
0
0
165
367
8a1860b58ec96d9c88266a6269a225c2b2a8da79
3,458
py
Python
zulip_bots/zulip_bots/bots/google_translate/test_google_translate.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
zulip_bots/zulip_bots/bots/google_translate/test_google_translate.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
zulip_bots/zulip_bots/bots/google_translate/test_google_translate.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
help_text = ''' Google translate bot Please format your message like: `@-mention "<text_to_translate>" <target-language> <source-language(optional)>` Visit [here](https://cloud.google.com/translate/docs/languages) for all languages '''
41.662651
95
0.637363
from unittest.mock import patch from requests.exceptions import ConnectionError from zulip_bots.test_lib import BotTestCase, DefaultTests, StubBotHandler from zulip_bots.bots.google_translate.google_translate import TranslateError help_text = ''' Google translate bot Please format your message like: `@-mention "<text...
0
0
0
2,966
0
0
0
143
112
be93709076b8fd49f51637fdf96cf29c49322281
2,219
py
Python
etl/etl.py
Ayazdi/MNIST_ANN
1419edcee275503030b418f0a64e094edffaa1b0
[ "MIT" ]
8
2020-05-21T18:57:57.000Z
2021-05-18T22:27:52.000Z
etl/etl.py
Ayazdi/MNIST_ANN
1419edcee275503030b418f0a64e094edffaa1b0
[ "MIT" ]
5
2020-05-18T13:56:12.000Z
2020-05-18T15:31:33.000Z
etl/etl.py
Ayazdi/MNIST_ANN
1419edcee275503030b418f0a64e094edffaa1b0
[ "MIT" ]
1
2020-08-16T16:09:16.000Z
2020-08-16T16:09:16.000Z
from sqlalchemy import create_engine from load_transform import extract_from_mongodb, extract_data_from_json from bert_model import sentiment_prediction from logo_detection_model import logo_detection import time import logging from config import POSTGRES, TAG # Postgres connection PG = create_engine(POSTGR...
38.929825
107
0.658855
import pandas as pd from sqlalchemy import create_engine, exc from load_transform import extract_from_mongodb, extract_data_from_json from bert_model import load_bert_model, sentiment_prediction from logo_detection_model import logo_detection import time import logging from config import POSTGRES, TAG # Pos...
0
0
0
0
0
0
0
20
23
683ca57b14bb5cb2c8ec809d20ecf08151387bef
478
py
Python
feewaiver/migrations/0037_park_entrance_fee.py
dbca-wa/feewaiver
7938a0e9d18924c12b27c0a411b6d7eccb40166b
[ "Apache-2.0" ]
null
null
null
feewaiver/migrations/0037_park_entrance_fee.py
dbca-wa/feewaiver
7938a0e9d18924c12b27c0a411b6d7eccb40166b
[ "Apache-2.0" ]
12
2021-02-24T02:33:01.000Z
2022-01-25T02:37:39.000Z
feewaiver/migrations/0037_park_entrance_fee.py
mintcoding/feewaiver
47d69db91386f760dd36d87cbb565a9bb72a27d5
[ "Apache-2.0" ]
1
2021-01-08T02:15:27.000Z
2021-01-08T02:15:27.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-01-05 02:27 from __future__ import unicode_literals
22.761905
68
0.638075
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-01-05 02:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('feewaiver', '0036_feewaivervisit_number_of_participants'), ] operations = [ ...
0
0
0
298
0
0
0
19
46
c332a7841140f2f68889e6ccef881d02c241cce1
14,689
py
Python
doc8/tests/test_main.py
dependent-type/doc8
4b57d2e438021e1785ada9c3723d18a52dd0fff7
[ "Apache-2.0" ]
1
2019-07-12T10:49:29.000Z
2019-07-12T10:49:29.000Z
doc8/tests/test_main.py
dependent-type/doc8
4b57d2e438021e1785ada9c3723d18a52dd0fff7
[ "Apache-2.0" ]
2
2019-07-12T11:02:18.000Z
2020-02-07T15:25:52.000Z
doc8/tests/test_main.py
dependent-type/doc8
4b57d2e438021e1785ada9c3723d18a52dd0fff7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Location to create test files TMPFS_DIR_NAME = ".tmp" # Expected output OUTPUT_CMD_NO_QUIET = """\ Scanning... Validating... {path}/invalid.rst:1: D002 Trailing whitespace {path}/invalid.rst:1: D005 No newline at end of file ======== Total files scanned = 1 Total files ignored = 0 Total acc...
34.240093
88
0.579345
# -*- coding: utf-8 -*- from mock import patch, MagicMock import os import six import shutil import sys import testtools from doc8.main import main, doc8 # Location to create test files TMPFS_DIR_NAME = ".tmp" # Expected output OUTPUT_CMD_NO_QUIET = """\ Scanning... Validating... {path}/invalid.rst:1: D002 Trailin...
0
0
0
12,251
0
0
0
-24
294
d430b5316abd1e325a4aa326b5753ee4e591a779
912
py
Python
apps/home/forms.py
Rbc-1234/kcb
822d588ea4522dabb002bc6fbebe31e48532bd29
[ "MIT" ]
null
null
null
apps/home/forms.py
Rbc-1234/kcb
822d588ea4522dabb002bc6fbebe31e48532bd29
[ "MIT" ]
null
null
null
apps/home/forms.py
Rbc-1234/kcb
822d588ea4522dabb002bc6fbebe31e48532bd29
[ "MIT" ]
null
null
null
from django import forms
21.714286
113
0.640351
from .models import Brand,Size,BrandColor,Category,Master_Page from django import forms from django import forms class BrandForm(forms.ModelForm): class Meta: model = Brand fields = ('brandname','logo','status') class SizeForm(forms.ModelForm): class Meta: model = Size ...
0
0
0
642
0
0
0
44
182
78ce4496dcf69be39aa029c35de1e7db911c3ea3
5,290
py
Python
ROSCO_toolbox/sim.py
WillC-DNV/ROSCO
2b095d4c7a6b7f2fe0ef056969f423e6a014b6be
[ "Apache-2.0" ]
41
2020-01-31T01:21:04.000Z
2022-03-30T08:07:42.000Z
ROSCO_toolbox/sim.py
WillC-DNV/ROSCO
2b095d4c7a6b7f2fe0ef056969f423e6a014b6be
[ "Apache-2.0" ]
56
2020-03-26T13:15:36.000Z
2022-03-28T17:07:58.000Z
ROSCO_toolbox/sim.py
WillC-DNV/ROSCO
2b095d4c7a6b7f2fe0ef056969f423e6a014b6be
[ "Apache-2.0" ]
36
2020-01-10T21:39:17.000Z
2022-03-31T08:36:18.000Z
# Copyright 2019 NREL # 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 distribu...
36.736111
167
0.609452
# Copyright 2019 NREL # 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 distribu...
0
0
0
4,478
0
0
0
28
89
2d8a2ac3e6ed817e21e5fe3fa3058c2b10c86ad1
1,077
py
Python
plist_keys_reader.py
igorkotkovets/awesome-snippets
117962560dc65a337fcbe0ab9cd4435eff4a510b
[ "MIT" ]
2
2022-01-28T14:08:05.000Z
2022-02-13T20:16:40.000Z
plist_keys_reader.py
iharkatkavets/terminal-snippets
117962560dc65a337fcbe0ab9cd4435eff4a510b
[ "MIT" ]
1
2018-01-17T10:28:14.000Z
2018-01-17T10:28:14.000Z
plist_keys_reader.py
iharkatkavets/terminal-snippets
117962560dc65a337fcbe0ab9cd4435eff4a510b
[ "MIT" ]
1
2020-03-04T02:58:23.000Z
2020-03-04T02:58:23.000Z
#!/usr/bin/python3 import sys if __name__ == "__main__": main(sys.argv[1:])
26.268293
66
0.640669
#!/usr/bin/python3 import sys, getopt import plistlib from optparse import OptionParser from sys import version_info class Parameters(object): def __init__(self, inputFile): self.inputFile = inputFile class PropertiesReader(object): def readProperties(self, argv): usage = "usage: %prog -i <t...
0
0
0
721
0
90
0
21
158
ae7806e928206a7aaae4db5306888a68022ddcae
2,418
py
Python
deep_privacy/experiments/pose_sensitivity_experiment.py
aaniin/DeepPrivacy
068d86ca112ada4b7d37f57c3b1be6e4ca44dad1
[ "MIT" ]
6
2019-10-17T13:11:13.000Z
2021-10-01T17:35:39.000Z
deep_privacy/experiments/pose_sensitivity_experiment.py
EugenioRJ/DeepPrivacy
3516f6f3bf2dcb6e7ed4d86195a7c1974077cdf8
[ "MIT" ]
4
2019-09-26T07:08:49.000Z
2019-10-06T12:13:51.000Z
deep_privacy/experiments/pose_sensitivity_experiment.py
EugenioRJ/DeepPrivacy
3516f6f3bf2dcb6e7ed4d86195a7c1974077cdf8
[ "MIT" ]
1
2020-10-10T18:55:49.000Z
2020-10-10T18:55:49.000Z
import torch import numpy as np from deep_privacy import torch_utils from deep_privacy.visualization import utils as vis_utils import os from deep_privacy.inference import infer from deep_privacy.data_tools.dataloaders import load_dataset_files, cut_bounding_box import matplotlib.pyplot as plt if __name__ == "__main_...
36.089552
90
0.629446
import torch import numpy as np from deep_privacy import torch_utils from deep_privacy.visualization import utils as vis_utils import os from deep_privacy.inference import infer from deep_privacy.data_tools.dataloaders import load_dataset_files, cut_bounding_box import matplotlib.pyplot as plt if __name__ == "__main_...
0
0
0
0
0
0
0
0
0
3ec42d21b7a0d85a7b993ffded41816c0e38ee99
1,368
py
Python
read.py
huangjunfeng2000/TestPython
3ddbd4185dc925783fb72ed21f12c240a0f057d2
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
read.py
huangjunfeng2000/TestPython
3ddbd4185dc925783fb72ed21f12c240a0f057d2
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
read.py
huangjunfeng2000/TestPython
3ddbd4185dc925783fb72ed21f12c240a0f057d2
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
import os inputfile = "c:\ip.txt" inputfile='c:\column.bmp' outputfile = 'c:\ip_result.txt' outputfile2 = 'c:\ip_result2.txt' import sys if __name__ == '__main__': if (len(sys.argv)) != 2: print 'Input filepath' exit(1) f_input = sys.argv[1] print f_input travsedir(f_input)
22.064516
47
0.645468
import os inputfile = "c:\ip.txt" inputfile='c:\column.bmp' outputfile = 'c:\ip_result.txt' outputfile2 = 'c:\ip_result2.txt' def translatefile(filename): inputfile=filename outputfile=filename+".result" infile = open(inputfile, 'rb') outfile = open(outputfile, 'w') #outfile2 = open(outputfile2, 'w') f...
0
0
0
0
0
1,017
0
0
47
14e1f182dcdee533731ed093e578fc202b4e4d61
21,625
py
Python
src/soles_stuff.py
HRI-EU/newbee_dataset
27f69c388974882b2f797507d4eaa7442f74fa8c
[ "MIT" ]
null
null
null
src/soles_stuff.py
HRI-EU/newbee_dataset
27f69c388974882b2f797507d4eaa7442f74fa8c
[ "MIT" ]
null
null
null
src/soles_stuff.py
HRI-EU/newbee_dataset
27f69c388974882b2f797507d4eaa7442f74fa8c
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib import logging import seaborn seaborn.set() matplotlib.rcParams['text.latex.preamble'] = [r'\usepackage{amsmath}'] plt.rc('text', usetex=True) TARGET_FRAME_RATE = 60 STEP_FORCE_THRESHOLD = 0.2 LIFT_FORCE_THRESHOLD = 0.17 logging.basicConfig(format...
49.036281
349
0.684717
import os import matplotlib.pyplot as plt import matplotlib import pandas as pd import numpy as np import logging import sys from sklearn.metrics import mean_absolute_error import seaborn from .common import INSOLES_FILE_NAME, LABELS_FILE_NAME seaborn.set() matplotlib.rcParams['text.latex.preamble'] = [r'\usepackage...
0
0
0
0
0
20,636
0
32
548
9a82db4b1a71ac5dfe628bcacbc69013f75068ef
9,055
py
Python
code/train/step3_concat_select_split.py
ptannor/Audio2Face
98b501791e74601a72466d191730904474b74f42
[ "MIT" ]
1
2022-02-08T11:01:17.000Z
2022-02-08T11:01:17.000Z
code/train/step3_concat_select_split.py
ptannor/Audio2Face
98b501791e74601a72466d191730904474b74f42
[ "MIT" ]
null
null
null
code/train/step3_concat_select_split.py
ptannor/Audio2Face
98b501791e74601a72466d191730904474b74f42
[ "MIT" ]
null
null
null
# Copyright 2021 The FACEGOOD 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 la...
60.771812
488
0.606405
# Copyright 2021 The FACEGOOD 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 la...
801
0
0
0
0
0
0
0
0
813dc76915f7be023d1aaee161bea4b032cb7216
625
py
Python
PYTHON/python-datastructures/algorithms/algorithms/tree/same_tree.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
11
2021-02-18T04:53:44.000Z
2022-01-16T10:57:39.000Z
PYTHON/python-datastructures/algorithms/algorithms/tree/same_tree.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
PYTHON/python-datastructures/algorithms/algorithms/tree/same_tree.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
8
2021-02-18T05:12:34.000Z
2022-03-06T19:02:14.000Z
""" Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. """ # Time Complexity O(min(N,M)) # where N and M are the number of nodes for the trees. # Space Complexity O(min(height1, heig...
27.173913
78
0.7072
""" Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. """ def is_same_tree(p, q): if p is None and q is None: return True if p is not None and q is not None and p.val ...
0
0
0
0
0
209
0
0
23
13fa11efd109514337d86b90e8118c53e07b013a
3,777
py
Python
src/server/server.py
CarlosJones/ADS-IDAC-SimPy
8fc1b3bf7c305e0d3cde5e626231d15ee7880f1c
[ "Apache-2.0" ]
null
null
null
src/server/server.py
CarlosJones/ADS-IDAC-SimPy
8fc1b3bf7c305e0d3cde5e626231d15ee7880f1c
[ "Apache-2.0" ]
null
null
null
src/server/server.py
CarlosJones/ADS-IDAC-SimPy
8fc1b3bf7c305e0d3cde5e626231d15ee7880f1c
[ "Apache-2.0" ]
null
null
null
from flask import Flask import os # import my_utils as utils # server.py current_dir = os.path.dirname(__file__) parent_dir = os.path.dirname(current_dir) # current_dir, grandparent_dir = os.path.dirname(parent_dir) print("current_dir: ", current_dir) # print("parent_dir: ", parent_dir) # print("grandparent_dir: ", ...
27.772059
126
0.664549
from flask import Flask, render_template, jsonify, send_file import random, json, base64, os # import my_utils as utils import opt_db # 获取server.py当前路径,以及父路径、祖父路径 current_dir = os.path.dirname(__file__) parent_dir = os.path.dirname(current_dir) # 获得current_dir所在的目录, grandparent_dir = os.path.dirname(parent_dir) prin...
588
1,770
0
0
0
118
0
51
334
6e362ef91948f6aafa98254180ef5e8f6a7e19f9
6,942
py
Python
pyconnectome/tests/tests_utils/test_filetools.py
neurospin/pyconnectome
971dfaf58895b61f4610934bd5434fb5a7062bfe
[ "CECILL-B" ]
5
2017-06-29T20:01:00.000Z
2019-12-18T13:41:45.000Z
pyconnectome/tests/tests_utils/test_filetools.py
neurospin/pyconnectome
971dfaf58895b61f4610934bd5434fb5a7062bfe
[ "CECILL-B" ]
16
2017-07-11T15:49:33.000Z
2018-11-16T09:04:03.000Z
pyconnectome/tests/tests_utils/test_filetools.py
neurospin/pyconnectome
971dfaf58895b61f4610934bd5434fb5a7062bfe
[ "CECILL-B" ]
10
2017-04-28T11:04:36.000Z
2020-02-11T10:47:07.000Z
########################################################################## # NSAp - Copyright (C) CEA, 2016 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
36.536842
78
0.597378
########################################################################## # NSAp - Copyright (C) CEA, 2016 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
0
3,088
0
2,922
0
0
0
57
94
68e509d660f474b4770cd3f8cfadd6abdc34ecad
1,208
py
Python
src/main.py
arslee07/OpenTextAI
4b11e721a0e3d32e488a17d524564c3f08973bf2
[ "MIT" ]
3
2020-09-27T14:52:48.000Z
2020-10-15T06:42:54.000Z
src/main.py
arslee07/OpenTextAI
4b11e721a0e3d32e488a17d524564c3f08973bf2
[ "MIT" ]
1
2021-08-20T06:29:55.000Z
2021-08-22T10:37:34.000Z
src/main.py
arslee07/OpenTextAI
4b11e721a0e3d32e488a17d524564c3f08973bf2
[ "MIT" ]
4
2020-08-29T13:26:30.000Z
2020-10-12T12:18:07.000Z
import json from os.path import abspath, dirname from discord.ext.commands import Bot with open(dirname(abspath(__file__)) + '/data/locales.json') as f: locales = json.load(f) with open(dirname(abspath(__file__)) + '/data/config.json') as f: config = json.load(f) bot = Bot(command_prefix=config['default_pr...
26.26087
114
0.688742
import json from os.path import abspath, dirname import discord import os from discord.ext import commands from discord.ext.commands import Bot from cogs.Utils import Utils with open(dirname(abspath(__file__)) + '/data/locales.json') as f: locales = json.load(f) with open(dirname(abspath(__file__)) + '/data/co...
0
658
0
0
0
0
0
-1
136
f5c164ec8baafb11a24a62a24eefd66a42153c4a
3,214
py
Python
modules/multi_feature_embedding.py
Aria-K-Alethia/X-NLP
c5244ba3315c08d91d8747f186f0491eb79eb1d2
[ "MIT" ]
2
2020-12-17T07:42:29.000Z
2022-03-07T01:11:54.000Z
modules/multi_feature_embedding.py
Aria-K-Alethia/X-NLP
c5244ba3315c08d91d8747f186f0491eb79eb1d2
[ "MIT" ]
null
null
null
modules/multi_feature_embedding.py
Aria-K-Alethia/X-NLP
c5244ba3315c08d91d8747f186f0491eb79eb1d2
[ "MIT" ]
1
2022-03-30T05:37:25.000Z
2022-03-30T05:37:25.000Z
''' Copyright (c) 2019 Aria-K-Alethia@github.com Description: embedding class supporting multiple features and customized merge method Licence: MIT THE USER OF THIS CODE AGREES TO ASSUME ALL LIABILITY FOR THE USE OF THIS CODE. Any use of this code should display all the info above. ''' import ...
27.470085
80
0.680149
''' Copyright (c) 2019 Aria-K-Alethia@github.com Description: embedding class supporting multiple features and customized merge method Licence: MIT THE USER OF THIS CODE AGREES TO ASSUME ALL LIABILITY FOR THE USE OF THIS CODE. Any use of this code should display all the info above. ''' import ...
0
343
0
2,439
0
0
0
-1
93
f9aa762366cd530a26a5be423b551c2a03c3d8ba
2,590
py
Python
musicsite/musicapp/migrations/0001_initial.py
andylwilson/Timbrespoon
02a6c60866e8f55e787b6a701a3af38d9c4d61b3
[ "Apache-2.0" ]
null
null
null
musicsite/musicapp/migrations/0001_initial.py
andylwilson/Timbrespoon
02a6c60866e8f55e787b6a701a3af38d9c4d61b3
[ "Apache-2.0" ]
null
null
null
musicsite/musicapp/migrations/0001_initial.py
andylwilson/Timbrespoon
02a6c60866e8f55e787b6a701a3af38d9c4d61b3
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2 on 2019-06-06 09:02
37
114
0.550193
# Generated by Django 2.2 on 2019-06-06 09:02 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
0
0
0
2,412
0
0
0
41
90
156684c33cf3fe578d5c2aa36b68dfc7423d63ed
2,982
py
Python
spectralcluster/refinement.py
dschlessman/SpectralCluster
2a34ce68c44fdef63a35fd9b07742a53f3768301
[ "Apache-2.0" ]
3
2020-07-27T18:11:26.000Z
2021-08-04T10:18:07.000Z
spectralcluster/refinement.py
dschlessman/SpectralCluster
2a34ce68c44fdef63a35fd9b07742a53f3768301
[ "Apache-2.0" ]
null
null
null
spectralcluster/refinement.py
dschlessman/SpectralCluster
2a34ce68c44fdef63a35fd9b07742a53f3768301
[ "Apache-2.0" ]
2
2020-02-16T07:52:13.000Z
2021-08-04T10:18:51.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function
27.869159
78
0.607646
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc from scipy.ndimage import gaussian_filter import numpy as np class AffinityRefinementOperation(metaclass=abc.ABCMeta): def check_input(self, X): """Check the input to the refine() metho...
0
236
0
2,396
0
0
0
6
228
fde7595530c64dd530fab0b12d9fd8dffb1e6135
80,930
py
Python
eeg_analyses/EEG.py
dvanmoorselaar/DvM
b097f6d2532a6a1285ae63585a7ce0c966a05039
[ "MIT" ]
7
2018-03-22T10:44:55.000Z
2021-08-25T01:18:17.000Z
eeg_analyses/EEG.py
dvanmoorselaar/DvM
b097f6d2532a6a1285ae63585a7ce0c966a05039
[ "MIT" ]
3
2018-03-19T14:24:08.000Z
2019-02-20T19:11:08.000Z
eeg_analyses/EEG.py
dvanmoorselaar/DvM
b097f6d2532a6a1285ae63585a7ce0c966a05039
[ "MIT" ]
7
2018-04-04T14:55:43.000Z
2021-11-15T15:40:15.000Z
""" analyze EEG data Created by Dirk van Moorselaar on 10-03-2015. Copyright (c) 2015 DvM. All rights reserved. """ import itertools if __name__ == '__main__': print('Please run preprocessing via a project script')
45.111483
259
0.594934
""" analyze EEG data Created by Dirk van Moorselaar on 10-03-2015. Copyright (c) 2015 DvM. All rights reserved. """ import mne import os import logging import itertools import pickle import copy import glob import sys import time import itertools import numpy as np import scipy as sp import pandas as pd import seabo...
0
1,895
0
77,550
0
383
0
147
733
e5c0d47c76984fe444dc432b4f022b77a68f190d
2,154
py
Python
CondTools/SiStrip/test/SiStripFedCablingBuilder_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
CondTools/SiStrip/test/SiStripFedCablingBuilder_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
CondTools/SiStrip/test/SiStripFedCablingBuilder_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("FedCablingBuilder") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring(''), cablingBuilder = cms.untracked.PSet( threshold = cms.untracked.string('INFO') ), destinations = cms.untracked.vstri...
38.464286
113
0.644847
import FWCore.ParameterSet.Config as cms process = cms.Process("FedCablingBuilder") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring(''), cablingBuilder = cms.untracked.PSet( threshold = cms.untracked.string('INFO') ), destinations = cms.untracked.vstri...
0
0
0
0
0
0
0
0
0
1d619f4a5a2643cb4104898295632d7a9d2d3fbd
18,299
py
Python
bin/Python27/Lib/site-packages/solid/solidpython.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/solid/solidpython.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/solid/solidpython.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- # Simple Python OpenSCAD Code Generator # Copyright (C) 2009 Philipp Tiefenbacher <wizards23@gmail.com> # Amendments & additions, (C) 2011 Evan Jones <evan_t_jones@mac.com> # # License: LGPL 2.1 or later # import os, sys, re import inspect openscad_builtins =...
37.421268
476
0.53451
#! /usr/bin/python # -*- coding: utf-8 -*- # Simple Python OpenSCAD Code Generator # Copyright (C) 2009 Philipp Tiefenbacher <wizards23@gmail.com> # Amendments & additions, (C) 2011 Evan Jones <evan_t_jones@mac.com> # # License: LGPL 2.1 or later # import os, sys, re import inspect openscad_builtins =...
0
0
0
5,348
0
3,736
0
0
204
6137276e96e751acdcfec42711c4938cc9f70eca
1,151
py
Python
tests/__init__.py
Crunch-io/probes
cf85e047cdb30a1a20ed583d8f9a122c16ef9d06
[ "MIT" ]
19
2019-07-06T21:40:26.000Z
2022-01-01T22:48:08.000Z
tests/__init__.py
Crunch-io/probes
cf85e047cdb30a1a20ed583d8f9a122c16ef9d06
[ "MIT" ]
null
null
null
tests/__init__.py
Crunch-io/probes
cf85e047cdb30a1a20ed583d8f9a122c16ef9d06
[ "MIT" ]
2
2020-09-15T14:52:40.000Z
2021-01-06T13:28:16.000Z
import diagnose diagnose.manager.instrument_classes.setdefault( "test", diagnose.instruments.ProbeTestInstrument )
29.512821
88
0.529974
from contextlib import contextmanager import datetime import unittest import diagnose from diagnose import probes diagnose.manager.instrument_classes.setdefault( "test", diagnose.instruments.ProbeTestInstrument ) class ProbeTestCase(unittest.TestCase): @contextmanager def probe(self, type, name, target,...
0
864
0
18
0
0
0
10
137
a1aeaa851ba3167686d3755a3a79b49475ddbf5f
237
py
Python
blogtools/tests/urls.py
ixc/glamkit-blogtools
a3024d983eabafeba5df789eacbcc389e4181866
[ "BSD-3-Clause" ]
null
null
null
blogtools/tests/urls.py
ixc/glamkit-blogtools
a3024d983eabafeba5df789eacbcc389e4181866
[ "BSD-3-Clause" ]
null
null
null
blogtools/tests/urls.py
ixc/glamkit-blogtools
a3024d983eabafeba5df789eacbcc389e4181866
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url, include urlpatterns = [ url(r'^blog/', include('blogtools.tests.test_blog.urls', app_name='blogtools', namespace='test_blog')), ]
33.857143
107
0.772152
from django.conf.urls import url, include from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns = [ url(r'^blog/', include('blogtools.tests.test_blog.urls', app_name='blogtools', namespace='test_blog')), ]
0
0
0
0
0
0
0
46
22
d28ba2716cff55579e19597fce16db0ff4f34413
336
py
Python
questions/migrations/0002_auto_20191209_0854.py
Jay-68/moringa_flow
9cf72e8279a4b5397be8b1b2c57d7b5ff629b23b
[ "MIT" ]
null
null
null
questions/migrations/0002_auto_20191209_0854.py
Jay-68/moringa_flow
9cf72e8279a4b5397be8b1b2c57d7b5ff629b23b
[ "MIT" ]
6
2019-12-11T08:54:34.000Z
2021-09-08T01:29:12.000Z
questions/migrations/0002_auto_20191209_0854.py
Jay-68/moringa_flow
9cf72e8279a4b5397be8b1b2c57d7b5ff629b23b
[ "MIT" ]
1
2019-12-13T11:24:50.000Z
2019-12-13T11:24:50.000Z
# Generated by Django 2.0 on 2019-12-09 08:54
18.666667
45
0.577381
# Generated by Django 2.0 on 2019-12-09 08:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('questions', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='answer', options={'ordering': ['-likes']}, ...
0
0
0
232
0
0
0
11
46
35908d199e7e63d6541937f7efe3e6726631a197
549
py
Python
custom_metric.py
stoplime/kaggle
108639dea1ed16f24748f0f83a4c01ee5930d4f6
[ "MIT" ]
null
null
null
custom_metric.py
stoplime/kaggle
108639dea1ed16f24748f0f83a4c01ee5930d4f6
[ "MIT" ]
null
null
null
custom_metric.py
stoplime/kaggle
108639dea1ed16f24748f0f83a4c01ee5930d4f6
[ "MIT" ]
null
null
null
from keras import backend as K def FScore2(y_true, y_pred): ''' The F score, beta=2 ''' B2 = K.variable(4) OnePlusB2 = K.variable(5) pred = K.round(y_pred) tp = K.sum(K.cast(K.less(K.abs(pred - K.clip(y_true, .5, 1.)), 0.01), 'float32'), -1) fp = K.sum(K.cast(K.greater(pred - y_true, 0....
27.45
89
0.590164
import numpy as np from sklearn.metrics import fbeta_score from keras import backend as K def FScore2(y_true, y_pred): ''' The F score, beta=2 ''' B2 = K.variable(4) OnePlusB2 = K.variable(5) pred = K.round(y_pred) tp = K.sum(K.cast(K.less(K.abs(pred - K.clip(y_true, .5, 1.)), 0.01), 'floa...
0
0
0
0
0
0
0
15
45
cd3d4b839da134541c1bd60d41d9822810206145
4,071
py
Python
iiif_api_services/helpers/PreProcessRequest.py
utlib/utl_iiif_api
e2d77ad5a677487e205b840cc800af46b4697eab
[ "Apache-2.0" ]
4
2019-12-08T18:39:37.000Z
2021-11-09T19:35:44.000Z
iiif_api_services/helpers/PreProcessRequest.py
utlib/utl_iiif_api
e2d77ad5a677487e205b840cc800af46b4697eab
[ "Apache-2.0" ]
2
2020-06-05T16:45:31.000Z
2021-06-10T17:30:00.000Z
iiif_api_services/helpers/PreProcessRequest.py
utlib/utl_iiif_api
e2d77ad5a677487e205b840cc800af46b4697eab
[ "Apache-2.0" ]
1
2019-12-08T18:45:52.000Z
2019-12-08T18:45:52.000Z
from django.conf import settings if settings.QUEUE_RUNNER=="THREAD": from threading import Thread as Runner else:
69
223
0.70818
import json from django.conf import settings from rest_framework import status from rest_framework.response import Response from iiif_api_services.models.QueueModel import Queue from iiif_api_services.models.ActivityModel import Activity if settings.QUEUE_RUNNER=="THREAD": from threading import Thread as Runner els...
0
0
0
0
0
3,612
0
119
207
fdef7cb22602ce528c8233594d1d153bab4403a5
8,930
py
Python
tests/unit/test_helpers.py
peopledoc/ml-versioning-tools
2a797303b2b0e988f8063fc1d418f65c821efa97
[ "BSD-3-Clause" ]
36
2018-09-19T09:50:05.000Z
2020-03-14T22:15:15.000Z
tests/unit/test_helpers.py
peopledoc/ml-versioning-tools
2a797303b2b0e988f8063fc1d418f65c821efa97
[ "BSD-3-Clause" ]
29
2018-10-12T16:09:51.000Z
2020-03-13T14:12:02.000Z
tests/unit/test_helpers.py
peopledoc/mlvtools
f04f69b34291b85bd7a5fc2baf19fccb1535a983
[ "BSD-3-Clause" ]
8
2019-04-06T11:08:37.000Z
2020-02-06T17:02:15.000Z
import stat from os import stat as os_stat from os.path import join, exists import pytest from jinja2 import TemplateSyntaxError from mlvtools.exception import MlVToolException from mlvtools.helper import extract_type, to_dvc_meta_filename, to_instructions_list, write_python_script, write_template, to_sanitized_path ...
32.710623
111
0.710974
import stat from os import stat as os_stat from os.path import join, exists from tempfile import TemporaryDirectory import pytest from jinja2 import UndefinedError, TemplateSyntaxError from mlvtools.exception import MlVToolException from mlvtools.helper import extract_type, to_dvc_meta_filename, to_instructions_list,...
0
982
0
0
0
326
0
40
91
53c4a2c8bc3e7b21877246873b9e265e6ac85017
6,675
py
Python
tablo/grid.py
jessedp/tut
6864f953e3dacd800c9f5a50cec7221e89d47f7d
[ "MIT" ]
4
2020-01-24T21:40:36.000Z
2021-09-10T22:30:17.000Z
tablo/grid.py
jessedp/tut
6864f953e3dacd800c9f5a50cec7221e89d47f7d
[ "MIT" ]
null
null
null
tablo/grid.py
jessedp/tut
6864f953e3dacd800c9f5a50cec7221e89d47f7d
[ "MIT" ]
1
2021-09-11T09:36:46.000Z
2021-09-11T09:36:46.000Z
import datetime SAVE_VERSION = 1 INTERVAL_HOURS = 2 INTERVAL_TIMEDELTA = datetime.timedelta(hours=INTERVAL_HOURS) PENDING_UPDATE = {}
29.535398
77
0.593408
import os import json import time import datetime import tablo from lib import backgroundthread from .util import logger SAVE_VERSION = 1 INTERVAL_HOURS = 2 INTERVAL_TIMEDELTA = datetime.timedelta(hours=INTERVAL_HOURS) PENDING_UPDATE = {} def addPending(path=None, airing=None): path = path or airing.data['air...
0
0
0
6,248
0
112
0
-27
203
3ee770460cefa4f48ae7543f053e1b5598cb884b
5,874
py
Python
experiments/plot_benchmark.py
ashley062190/pycpa_taskchain
4274371b90407fe9715ca2d5d5793bf4736f53e2
[ "MIT" ]
1
2021-07-25T19:37:03.000Z
2021-07-25T19:37:03.000Z
experiments/plot_benchmark.py
ashley062190/pycpa_taskchain
4274371b90407fe9715ca2d5d5793bf4736f53e2
[ "MIT" ]
null
null
null
experiments/plot_benchmark.py
ashley062190/pycpa_taskchain
4274371b90407fe9715ca2d5d5793bf4736f53e2
[ "MIT" ]
1
2020-12-10T17:01:20.000Z
2020-12-10T17:01:20.000Z
#!/usr/bin/env python import argparse from pyplot_helper import barchart from matplotlib import pyplot from palettable.colorbrewer.qualitative import Paired_12 as Colors parser = argparse.ArgumentParser(description='Plot benchmark results.') parser.add_argument('--inputs', type=str, required=True, nargs='+', ...
35.817073
105
0.562138
#!/usr/bin/env python import argparse import csv from pyplot_helper import barchart from matplotlib import pyplot from palettable.colorbrewer.qualitative import Paired_12 as Colors parser = argparse.ArgumentParser(description='Plot benchmark results.') parser.add_argument('--inputs', type=str, required=True, nargs=...
0
0
0
0
0
1,734
0
-11
45
fbfd3b50dfdb41c7c33541e22d66678c2f866fd8
7,527
py
Python
lib/googlecloudsdk/api_lib/compute/vpn_gateways/vpn_gateways_utils.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/api_lib/compute/vpn_gateways/vpn_gateways_utils.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/compute/vpn_gateways/vpn_gateways_utils.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
36.897059
79
0.712369
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
0
155
0
6,433
0
0
0
53
90
b1aa34333b0943f112cf870b0d9e96b53724f625
628
py
Python
examples/example_3/tuned_solver.py
ghbrown/mg_tune
674957e4eb24e94d9f033bffdf5e42a54b00f155
[ "MIT" ]
null
null
null
examples/example_3/tuned_solver.py
ghbrown/mg_tune
674957e4eb24e94d9f033bffdf5e42a54b00f155
[ "MIT" ]
null
null
null
examples/example_3/tuned_solver.py
ghbrown/mg_tune
674957e4eb24e94d9f033bffdf5e42a54b00f155
[ "MIT" ]
null
null
null
#the function must be called solve and take (A,b) as inputs
41.866667
195
0.735669
import numpy as np import pyamg #the function must be called solve and take (A,b) as inputs def solve(A,b): #max_levels not an effective tuning parameter, since often #it just results in a multilevel hierarchy which is far too #large on the coarsest level #therefore fix it to be large so depth of hier...
0
0
0
0
0
512
0
-12
67
b7224b29868dc27f45e86b949857a205ad1d621b
9,852
py
Python
tf_image_segmentation/recipes/pascal_voc/data_pascal_voc.py
tataganesh95/tf-image-segmentation
c609bf71924191de7ae1dd887ee613fa7c1c5797
[ "MIT" ]
null
null
null
tf_image_segmentation/recipes/pascal_voc/data_pascal_voc.py
tataganesh95/tf-image-segmentation
c609bf71924191de7ae1dd887ee613fa7c1c5797
[ "MIT" ]
null
null
null
tf_image_segmentation/recipes/pascal_voc/data_pascal_voc.py
tataganesh95/tf-image-segmentation
c609bf71924191de7ae1dd887ee613fa7c1c5797
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ This is a script for downloading and converting the pascal voc 2012 dataset and the berkely extended version. # original PASCAL VOC 2012 # wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar # 2 GB # berkeley augmented Pascal VOC # w...
42.465517
117
0.676918
#!/usr/bin/env python # coding=utf-8 """ This is a script for downloading and converting the pascal voc 2012 dataset and the berkely extended version. # original PASCAL VOC 2012 # wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar # 2 GB # berkeley augmented Pascal VOC # w...
0
8,395
0
0
0
0
0
103
405
c8d40a7145863760b525cbcbc7dbb5513a42ddd1
3,057
py
Python
misc_utility/load_data.py
weber-s/inversionPO
847ef9c8848e28cf09f10918c8c7d9807baecaf8
[ "CC-BY-4.0" ]
null
null
null
misc_utility/load_data.py
weber-s/inversionPO
847ef9c8848e28cf09f10918c8c7d9807baecaf8
[ "CC-BY-4.0" ]
null
null
null
misc_utility/load_data.py
weber-s/inversionPO
847ef9c8848e28cf09f10918c8c7d9807baecaf8
[ "CC-BY-4.0" ]
null
null
null
import pandas as pd def load_CHEMorPO(station, inputDir, CHEMorPO="CHEM", fromSource=True): """ Import the concentration file into a DataFrame Parameters ---------- stationName: str, the name of the station inputDir: str, the path of file CHEMorPO: str, {"CHEM","PO"} fromSource: b...
29.394231
79
0.566241
import matplotlib.pyplot as plt import numpy as np import pandas as pd def load_CHEMorPO(station, inputDir, CHEMorPO="CHEM", fromSource=True): """ Import the concentration file into a DataFrame Parameters ---------- stationName: str, the name of the station inputDir: str, the path of file ...
21
0
0
0
0
0
0
7
44
411adb10e149c599353d4b19f3f8c772ee597133
3,976
py
Python
bayesian_lifetimes/estimator.py
nebw/bb_bayesian_lifetimes
b6242eed666ab4f0546c1fd804a6867eb5f28ad8
[ "MIT" ]
null
null
null
bayesian_lifetimes/estimator.py
nebw/bb_bayesian_lifetimes
b6242eed666ab4f0546c1fd804a6867eb5f28ad8
[ "MIT" ]
null
null
null
bayesian_lifetimes/estimator.py
nebw/bb_bayesian_lifetimes
b6242eed666ab4f0546c1fd804a6867eb5f28ad8
[ "MIT" ]
null
null
null
import scipy
34.877193
89
0.632294
import datetime import numpy as np import pandas as pd import pymc3 as pm import scipy import scipy.stats from bb_utils.ids import BeesbookID from bb_utils.meta import BeeMetaInfo class LifetimeEstimator: mu_days_alive = 21 sigma_days_alive = 25 p_tagged = 0.75 def __init__( self, m...
0
0
0
3,770
0
0
0
13
179
0857ae9c6890ce3f361d3dc6166a8e14c0626f05
1,462
py
Python
bench/scribble_plotting.py
histocartography/athena
8a1af389dc936bf5b8e62c56ae682a2fe4d2d71a
[ "BSD-3-Clause" ]
9
2021-12-07T07:08:55.000Z
2022-03-24T13:40:51.000Z
bench/scribble_plotting.py
histocartography/athena
8a1af389dc936bf5b8e62c56ae682a2fe4d2d71a
[ "BSD-3-Clause" ]
null
null
null
bench/scribble_plotting.py
histocartography/athena
8a1af389dc936bf5b8e62c56ae682a2fe4d2d71a
[ "BSD-3-Clause" ]
2
2021-10-08T07:11:13.000Z
2022-02-02T18:52:52.000Z
import spatialHeterogeneity as sh import pickle as pk import matplotlib.pyplot as plt hdf = '/Users/art/Documents/spatial-omics/spatialOmics.hdf5' f = '/Users/art/Documents/spatial-omics/spatialOmics.pkl' # so = SpatialOmics.form_h5py(f) with open(f, 'rb') as f: so = pk.load(f) # with open(f, 'wb') as file: # ...
25.206897
74
0.684679
import spatialHeterogeneity as sh import pickle as pk import os import matplotlib.pyplot as plt hdf = '/Users/art/Documents/spatial-omics/spatialOmics.hdf5' f = '/Users/art/Documents/spatial-omics/spatialOmics.pkl' # so = SpatialOmics.form_h5py(f) with open(f, 'rb') as f: so = pk.load(f) # with open(f, 'wb') as f...
0
0
0
0
0
0
0
-12
22
a63ff270678d7b5bebf7431b19aa3171dd6b6531
76
py
Python
tests/inline_test_resources/11/script.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
tests/inline_test_resources/11/script.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
tests/inline_test_resources/11/script.py
thesynman/pybricksdev
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
[ "MIT" ]
null
null
null
import importA my_drive = importA.HasConstants(importA.HasConstants.DRIVE)
19
59
0.842105
import importA my_drive = importA.HasConstants(importA.HasConstants.DRIVE)
0
0
0
0
0
0
0
0
0
5dd8045a94410c34e269d958145e1d76c296450c
7,147
py
Python
Tests/test_SeqUtils.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
3
2016-11-21T09:55:56.000Z
2019-04-09T17:39:43.000Z
Tests/test_SeqUtils.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
32
2016-11-21T07:38:21.000Z
2017-08-16T13:00:03.000Z
Tests/test_SeqUtils.py
rht/biopython
3a44496d7bd79446266a4951b7d1f64569e4a96d
[ "BSD-3-Clause" ]
8
2016-11-24T18:57:35.000Z
2022-01-16T08:15:25.000Z
# Copyright 2007-2009 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import unittest if __name__ == "__main__": runner = unittest.TextTestRunner(verbosi...
44.949686
112
0.612285
# Copyright 2007-2009 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import os import unittest from Bio import SeqIO from Bio.Alphabet import single_letter_alph...
0
0
0
5,954
0
370
0
168
292
3b8e3601dc4d695e8301e5b36e46da78b13f753b
756
py
Python
tests/workflow/plot.py
BavYeti/bbfsa
42023bd4823f4215f670a1924595cbde20e0cf21
[ "MIT" ]
null
null
null
tests/workflow/plot.py
BavYeti/bbfsa
42023bd4823f4215f670a1924595cbde20e0cf21
[ "MIT" ]
null
null
null
tests/workflow/plot.py
BavYeti/bbfsa
42023bd4823f4215f670a1924595cbde20e0cf21
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd from context import bbfsa #read csv file spectra = pd.read_csv('./tests/workflow/input/700cow.csv', delimiter=',', names= ['wn', 'ab']) # cristallinity index s = bbfsa.slice(spectra,700,400) #slice for baseline b = bbfsa.baseline(s) #baseline s2 = bbfsa.slice(b,...
22.235294
94
0.695767
import numpy as np import matplotlib.pyplot as plt import pandas as pd from context import bbfsa #read csv file spectra = pd.read_csv('./tests/workflow/input/700cow.csv', delimiter=',', names= ['wn', 'ab']) # cristallinity index s = bbfsa.slice(spectra,700,400) #slice for baseline b = bbfsa.baseline(s) #baseline ...
0
0
0
0
0
0
0
-3
22
b0a755cc52ef03572fc7257db25c3dc683e3cb2b
2,383
py
Python
hodgepodge/hashing.py
whitfieldsdad/hodgepodge
cf023179c30ae84641f1f8863749e8325df9811e
[ "MIT" ]
1
2021-09-15T17:27:15.000Z
2021-09-15T17:27:15.000Z
hodgepodge/hashing.py
whitfieldsdad/hodgepodge
cf023179c30ae84641f1f8863749e8325df9811e
[ "MIT" ]
null
null
null
hodgepodge/hashing.py
whitfieldsdad/hodgepodge
cf023179c30ae84641f1f8863749e8325df9811e
[ "MIT" ]
null
null
null
DEFAULT_FILE_IO_BLOCK_SIZE = 8192 MD5 = 'md5' SHA1 = 'sha1' SHA256 = 'sha256' SHA512 = 'sha512' HASH_ALGORITHMS = [MD5, SHA1, SHA256, SHA512]
24.56701
87
0.668065
from typing import Callable, Optional, Union from dataclasses import dataclass import hashlib import hodgepodge.types from hodgepodge.serialization import Serializable DEFAULT_FILE_IO_BLOCK_SIZE = 8192 MD5 = 'md5' SHA1 = 'sha1' SHA256 = 'sha256' SHA512 = 'sha512' HASH_ALGORITHMS = [MD5, SHA1, SHA256, SHA512] @dat...
0
242
0
0
0
1,587
0
58
341
3bbb20d2e61b3010e3dd21f721a9ae2fe38ebd6e
11,699
py
Python
main.py
srogers47/Trulia-Web-Scraper
18d8472a765aba8580ae878aa73582f3f00a9860
[ "MIT" ]
null
null
null
main.py
srogers47/Trulia-Web-Scraper
18d8472a765aba8580ae878aa73582f3f00a9860
[ "MIT" ]
null
null
null
main.py
srogers47/Trulia-Web-Scraper
18d8472a765aba8580ae878aa73582f3f00a9860
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Web client, html parsing # Web driver, browser/network interaction # Downloading, compressing images #PYMONGO import asyncio if __name__ == '__main__': m = Main() loop = asyncio.get_event_loop() results = loop.run_until_complete(m.dispatch(loop))
45.878431
153
0.600393
#!/usr/bin/env python3 # Web client, html parsing import aiohttp from lxml import html from bs4 import BeautifulSoup as BS # Web driver, browser/network interaction from seleniumwire import webdriver from selenium.webdriver.firefox.options import Options # Downloading, compressing images from PIL import Image impor...
0
0
10,098
940
0
0
0
11
353
d86c455eaaae2af14cec6f33123c2601b31632af
1,300
py
Python
server/jukeboxify_cli.py
SteveParrington/jukeboxify
7008832d666c65f4e56581d7463d3ae0c2b49156
[ "Apache-2.0" ]
null
null
null
server/jukeboxify_cli.py
SteveParrington/jukeboxify
7008832d666c65f4e56581d7463d3ae0c2b49156
[ "Apache-2.0" ]
null
null
null
server/jukeboxify_cli.py
SteveParrington/jukeboxify
7008832d666c65f4e56581d7463d3ae0c2b49156
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
26
59
0.549231
import zmq from getpass import getpass def jsonify(text_command): tokens = text_command.split() args = [] if len(tokens) > 1: args = tokens[1:] json = { "opcode": tokens[0], "args": args } return json def login_prompt(): login_payload = { "opcode": "login", "args": [ ...
0
0
0
0
0
1,130
0
-5
136
9bd4cd58e1813c3bba3fb98b07b0a1a92ef7ab87
2,029
py
Python
lib/config/models.py
Zealoe/HRNet-Semantic-Segmentation
e5082879d6a46f1eb1127429e9948c80c0e15418
[ "MIT" ]
2
2020-11-02T11:38:59.000Z
2021-03-23T09:54:14.000Z
lib/config/models.py
Zealoe/HRNet-Semantic-Segmentation
e5082879d6a46f1eb1127429e9948c80c0e15418
[ "MIT" ]
null
null
null
lib/config/models.py
Zealoe/HRNet-Semantic-Segmentation
e5082879d6a46f1eb1127429e9948c80c0e15418
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Ke Sun (sunk@mail.ustc.edu.cn) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __...
36.890909
81
0.726959
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Ke Sun (sunk@mail.ustc.edu.cn) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __...
0
0
0
0
0
0
0
0
0
5dd252c8cdbd1b74c09d109c4140190861574d5b
3,679
py
Python
code/multifuture_eval_trajs_prob.py
ziyan0302/Multiverse
3b2f590a7d99758b6a8795070ca25a9698b767a9
[ "Apache-2.0" ]
190
2020-01-10T06:24:49.000Z
2022-03-24T10:21:46.000Z
code/multifuture_eval_trajs_prob.py
ziyan0302/Multiverse
3b2f590a7d99758b6a8795070ca25a9698b767a9
[ "Apache-2.0" ]
32
2020-06-18T23:36:10.000Z
2022-03-30T11:33:13.000Z
code/multifuture_eval_trajs_prob.py
ziyan0302/Multiverse
3b2f590a7d99758b6a8795070ca25a9698b767a9
[ "Apache-2.0" ]
60
2020-01-04T13:29:03.000Z
2022-03-27T09:26:13.000Z
# coding=utf-8 """Given the multifuture trajectory output, compute NLL""" import argparse import os import pickle import numpy as np from tqdm import tqdm parser = argparse.ArgumentParser() parser.add_argument("gt_path") parser.add_argument("prediction_file") parser.add_argument("--scene_h", type=int, default=18) pa...
30.658333
89
0.645556
# coding=utf-8 """Given the multifuture trajectory output, compute NLL""" import argparse import os import pickle import numpy as np from tqdm import tqdm parser = argparse.ArgumentParser() parser.add_argument("gt_path") parser.add_argument("prediction_file") parser.add_argument("--scene_h", type=int, default=18) pa...
0
0
0
0
0
1,191
0
0
69
9a3aeb0bf305c0a63903c5e9ab76a4899c4f2eb3
4,348
py
Python
smtpClient/main.py
number23/iLibrary
e03c81cb6e355b562ba2e1468d9752b56c6bab56
[ "Apache-2.0" ]
null
null
null
smtpClient/main.py
number23/iLibrary
e03c81cb6e355b562ba2e1468d9752b56c6bab56
[ "Apache-2.0" ]
null
null
null
smtpClient/main.py
number23/iLibrary
e03c81cb6e355b562ba2e1468d9752b56c6bab56
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' vi $HOME/.LoginAccount.txt [mailClient] host = smtp.qq.com port = 25 user = *** pass = *** fr = xxxxxx@qq.com to = xxxxxx@gmail.com debuglevel = True login = False starttls = False ''' __all__ = ['get_smtp_client', 'sendmail'] import sys if __name__ == '__main__': ...
30.194444
90
0.569687
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' vi $HOME/.LoginAccount.txt [mailClient] host = smtp.qq.com port = 25 user = *** pass = *** fr = xxxxxx@qq.com to = xxxxxx@gmail.com debuglevel = True login = False starttls = False ''' __all__ = ['get_smtp_client', 'sendmail'] import os, sys from ConfigParser import ...
0
0
0
0
0
3,082
0
150
268
9858d3b8cadb2fd50cfc53e91f4ca4910bc15ea3
3,103
py
Python
incrowd/push_notifications/fields.py
incrowdio/incrowd
711e99c55b9da815af7749a2930d4184e235fa68
[ "Apache-2.0" ]
4
2015-03-10T04:24:07.000Z
2016-09-18T16:41:12.000Z
incrowd/push_notifications/fields.py
incrowdio/incrowd
711e99c55b9da815af7749a2930d4184e235fa68
[ "Apache-2.0" ]
27
2015-01-03T09:52:50.000Z
2021-06-10T20:37:08.000Z
incrowd/push_notifications/fields.py
incrowdio/incrowd
711e99c55b9da815af7749a2930d4184e235fa68
[ "Apache-2.0" ]
2
2015-09-07T21:06:51.000Z
2016-03-10T11:31:57.000Z
import re __all__ = ["HexadecimalField", "HexIntegerField"] hex_re = re.compile(r"^[0-9A-f]+$") postgres_engines = [ "django.db.backends.postgresql_psycopg2", "django.contrib.gis.db.backends.postgis", ]
35.261364
108
0.636803
import re import struct from django import forms from django.core.validators import RegexValidator from django.db import models, connection from django.utils import six from django.utils.translation import ugettext_lazy as _ __all__ = ["HexadecimalField", "HexIntegerField"] hex_re = re.compile(r"^[0-9A-f]+$") postg...
0
0
0
2,625
0
0
0
83
178
c272ab461573f0045f650a404b0a542762b38393
428
py
Python
heatmap_gen/prediction_filter.py
lthealy/quip_paad_cancer_detection
b05310b6eff7276920ca24c5c7b0b9f42ee563cd
[ "BSD-3-Clause" ]
8
2020-03-02T09:55:37.000Z
2021-07-12T09:13:49.000Z
heatmap_gen/prediction_filter.py
lthealy/quip_paad_cancer_detection
b05310b6eff7276920ca24c5c7b0b9f42ee563cd
[ "BSD-3-Clause" ]
2
2019-07-09T13:38:15.000Z
2021-04-15T15:36:36.000Z
heatmap_gen/prediction_filter.py
lthealy/quip_paad_cancer_detection
b05310b6eff7276920ca24c5c7b0b9f42ee563cd
[ "BSD-3-Clause" ]
7
2019-07-22T10:28:18.000Z
2021-08-09T19:30:00.000Z
import os import sys input = sys.argv[1] output = sys.argv[2] f1 = open(input, 'r') f2 = open('temp.txt', 'w') start = 0 for line in f1: start += 1 if start < 3: f2.write(line) continue parts = line.split() if float(parts[2]) > 1e-3: f2.write(line) f1.close() f2.close() command...
17.833333
38
0.584112
import os import sys input = sys.argv[1] output = sys.argv[2] f1 = open(input, 'r') f2 = open('temp.txt', 'w') start = 0 for line in f1: start += 1 if start < 3: f2.write(line) continue parts = line.split() if float(parts[2]) > 1e-3: f2.write(line) f1.close() f2.close() command...
0
0
0
0
0
0
0
0
0
a3abba71345244f25abf2db265ca12f65a90aec3
7,214
py
Python
postfix.py
ashraf1lastbreath/Postfix
1fd23ae4029b26577782f2a732b55b4cc30125a7
[ "MIT" ]
null
null
null
postfix.py
ashraf1lastbreath/Postfix
1fd23ae4029b26577782f2a732b55b4cc30125a7
[ "MIT" ]
null
null
null
postfix.py
ashraf1lastbreath/Postfix
1fd23ae4029b26577782f2a732b55b4cc30125a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Function to evaluate Post Fix expression #Calculation function for different opeartors #Printing the Menu print "" print "" print "" print "" menu = {} menu['1']="What are infix postfix and prefix notations?" menu['2']="Infix to Postfix Expression Conversion" menu['3']="E...
41.45977
154
0.497366
# -*- coding: utf-8 -*- class Stack: def __init__(self, itemlist=[ ] ): self.items=itemlist def isEmpty(self) : if self.items == []: return True else: return False def push(self, item): self.items.append(item) return 0 def pop...
24
0
0
440
0
3,528
0
0
89
86890a1939c19529ab88515e3f1b07a44f7afd78
6,850
py
Python
train.py
ZYH111/SelfSupervisedQE
ee7dd8d75e062b0bed6b1b54c4d9d4d6950268c9
[ "BSD-3-Clause" ]
4
2021-11-09T04:58:29.000Z
2022-01-27T09:03:34.000Z
train.py
ZYH111/SelfSupervisedQE
ee7dd8d75e062b0bed6b1b54c4d9d4d6950268c9
[ "BSD-3-Clause" ]
3
2021-11-24T08:05:00.000Z
2022-03-29T14:13:57.000Z
train.py
ZYH111/SelfSupervisedQE
ee7dd8d75e062b0bed6b1b54c4d9d4d6950268c9
[ "BSD-3-Clause" ]
1
2021-09-09T13:39:47.000Z
2021-09-09T13:39:47.000Z
import argparse import numpy as np import os import pandas as pd import time import torch from data import (eval_collate_fn, EvalDataset, TrainCollator, TrainDataset) from evaluate import predict, make_word_outputs_final from transformers import (AdamW, AutoConfig, AutoModelWithLMHead, AutoTokenizer, get_linear_schedu...
34.771574
122
0.653577
import argparse import numpy as np import os import pandas as pd import time import torch from data import ( eval_collate_fn, EvalDataset, TrainCollator, TrainDataset, ) from evaluate import predict, make_word_outputs_final from transformers import ( AdamW, AutoConfig, AutoModelWithLMHead, ...
0
0
0
0
0
318
0
46
23
c1c9484b15c0c371600ef37dcc8f1eb81ebafc83
1,164
py
Python
scrapeSRApy/scrapeSRA.py
mmrmas/SRAMicrobiomeCategoryPipeline
75786cf79f770758602ee70d945e1d7ef297ca6d
[ "MIT" ]
null
null
null
scrapeSRApy/scrapeSRA.py
mmrmas/SRAMicrobiomeCategoryPipeline
75786cf79f770758602ee70d945e1d7ef297ca6d
[ "MIT" ]
null
null
null
scrapeSRApy/scrapeSRA.py
mmrmas/SRAMicrobiomeCategoryPipeline
75786cf79f770758602ee70d945e1d7ef297ca6d
[ "MIT" ]
null
null
null
# read in the file downloaded from the run archive, in this partcular case https://www.ncbi.nlm.nih.gov/Traces/study/?query_key=1&WebEnv=MCID_6178e8ee92f0234b8354c36f&o=acc_s%3Aa (may not be functional) # SraRunTable.txt # Contains Metadata for all samples # check for each line if it contains "HMP_" -> th...
40.137931
202
0.756014
import modules.open_file as of # read in the file downloaded from the run archive, in this partcular case https://www.ncbi.nlm.nih.gov/Traces/study/?query_key=1&WebEnv=MCID_6178e8ee92f0234b8354c36f&o=acc_s%3Aa (may not be functional) # SraRunTable.txt # Contains Metadata for all samples # check for each l...
0
0
0
0
0
87
0
9
45
4760c00a445e7386fb0a28901582ad20ccac9772
2,398
py
Python
app.py
parryc/thevoid
0a79a2ed534bc8b33fdb73774ed2984836fe2cce
[ "MIT" ]
1
2015-12-22T19:33:21.000Z
2015-12-22T19:33:21.000Z
app.py
parryc/thevoid
0a79a2ed534bc8b33fdb73774ed2984836fe2cce
[ "MIT" ]
26
2015-09-07T04:29:10.000Z
2021-10-19T13:10:46.000Z
app.py
parryc/thevoid
0a79a2ed534bc8b33fdb73774ed2984836fe2cce
[ "MIT" ]
null
null
null
from flask_assets import Environment, Bundle from flask_compress import Compress from factory import create_app app = create_app(__name__) app.config.from_object("config.DevelopmentConfig") assets = Environment(app) Compress(app) testing_site = app.config["TESTING_SITE"] app.jinja_env.filters["circle_num"] = circ...
24.979167
64
0.705171
from flask import render_template from flask_assets import Environment, Bundle from flask_compress import Compress from factory import create_app app = create_app(__name__) app.config.from_object("config.DevelopmentConfig") assets = Environment(app) Compress(app) testing_site = app.config["TESTING_SITE"] def circle_...
38
182
0
0
0
112
0
12
137
77bc995fe7637ad166c11dd6cefa5ce2739e50b7
14,017
py
Python
bin/ADFRsuite/CCSBpckgs/PmvApp/deleteCmds.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/PmvApp/deleteCmds.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/PmvApp/deleteCmds.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
40.394813
119
0.552829
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
0
0
0
11,198
0
259
0
252
248
13ca52f0845f2699344120b85794e42025335b5a
421
py
Python
MapReduce_WordOccurence/reducer_WordOccurence.py
allendaniel1993/Data-Pipeline-Bigdata-Analysis-and-Data-Product
3b08311017dc9324c9eae5eec2c3a4bf5ecd60c1
[ "MIT" ]
null
null
null
MapReduce_WordOccurence/reducer_WordOccurence.py
allendaniel1993/Data-Pipeline-Bigdata-Analysis-and-Data-Product
3b08311017dc9324c9eae5eec2c3a4bf5ecd60c1
[ "MIT" ]
null
null
null
MapReduce_WordOccurence/reducer_WordOccurence.py
allendaniel1993/Data-Pipeline-Bigdata-Analysis-and-Data-Product
3b08311017dc9324c9eae5eec2c3a4bf5ecd60c1
[ "MIT" ]
null
null
null
#!/usr/bin/python # Allen Daniel Yesa # Aditya Subramanian Muralidaran import sys curr_key = None curr_val = 0 for key_val in sys.stdin: key,str_val = key_val.split("\t",1) try: val = int(str_val) except: continue if(curr_key==key): curr_val=curr_val+val; else: if(curr_key is not None): print(cu...
13.580645
37
0.679335
#!/usr/bin/python # Allen Daniel Yesa # Aditya Subramanian Muralidaran import sys curr_key = None curr_val = 0 for key_val in sys.stdin: key,str_val = key_val.split("\t",1) try: val = int(str_val) except: continue if(curr_key==key): curr_val=curr_val+val; else: if(curr_key is not None): print(cu...
0
0
0
0
0
0
0
0
0
641048b7ee5b4154f532187dc6c902516b5fdc15
2,632
py
Python
third-party/llvm/llvm-src/utils/lint/common_lint.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
third-party/llvm/llvm-src/utils/lint/common_lint.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
third-party/llvm/llvm-src/utils/lint/common_lint.py
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
#!/usr/bin/env python # # Common lint functions applicable to multiple types of files. from __future__ import print_function import re def VerifyLineLength(filename, lines, max_length): """Checks to make sure the file has no lines with lines exceeding the length limit. Args: filename: the file under consid...
26.585859
78
0.678951
#!/usr/bin/env python # # Common lint functions applicable to multiple types of files. from __future__ import print_function import re def VerifyLineLength(filename, lines, max_length): """Checks to make sure the file has no lines with lines exceeding the length limit. Args: filename: the file under consid...
0
0
0
77
0
0
0
0
23
dbf0aa6f0035f2a4bbcaa8ab366fe3cf0e95ae17
3,742
py
Python
ProgrammingLanguages/Python/UsefulScripts/doc_docx_pdf_txt_converter.py
ldsands/UsefulCodeSnippits
69d578c163e6912d1b960b606a8fd80c2c059427
[ "MIT" ]
null
null
null
ProgrammingLanguages/Python/UsefulScripts/doc_docx_pdf_txt_converter.py
ldsands/UsefulCodeSnippits
69d578c163e6912d1b960b606a8fd80c2c059427
[ "MIT" ]
2
2020-03-17T21:45:41.000Z
2020-11-27T18:51:26.000Z
ProgrammingLanguages/Python/UsefulScripts/doc_docx_pdf_txt_converter.py
ldsands/UsefulCodeSnippits
69d578c163e6912d1b960b606a8fd80c2c059427
[ "MIT" ]
null
null
null
# pip install pdfminer.six docx2txt # to install win32com use the pywin32install.py script import sys if sys.platform == "win32": filenames, parent_path = collect_all_document_files() convert_to_txt(parent_path)
39.389474
264
0.621593
# pip install pdfminer.six docx2txt # to install win32com use the pywin32install.py script import shutil import sys from pathlib import Path from pprint import pprint import docx2txt from pdfminer.high_level import extract_text if sys.platform == "win32": import win32com.client as win32 from win32com.client...
0
0
0
0
0
3,224
0
42
256
4dc30f46f6281aa719bfe6afc4b5aa02e7ee3395
5,243
py
Python
earth_enterprise/src/fusion/portableglobe/servers/portable_server_base.py
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
2,661
2017-03-20T22:12:50.000Z
2022-03-30T09:43:19.000Z
earth_enterprise/src/fusion/portableglobe/servers/portable_server_base.py
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
1,531
2017-03-24T17:20:32.000Z
2022-03-16T18:11:14.000Z
earth_enterprise/src/fusion/portableglobe/servers/portable_server_base.py
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
990
2017-03-24T11:54:28.000Z
2022-03-22T11:51:47.000Z
#!/usr/bin/env python2.7 # # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
28.340541
78
0.651726
#!/usr/bin/env python2.7 # # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
0
0
0
4,421
0
0
0
-31
182
e0533f32c2ede3632169eeba54908e1eda97b429
718
py
Python
Scripts/start.py
sporiyano/graphiti
56d85e5262b76dc6ce4f213a4d80486e015de1b7
[ "BSD-2-Clause" ]
93
2015-01-01T17:49:53.000Z
2022-02-24T21:25:15.000Z
Scripts/start.py
sporiyano/graphiti
56d85e5262b76dc6ce4f213a4d80486e015de1b7
[ "BSD-2-Clause" ]
13
2015-03-30T18:01:05.000Z
2018-05-28T03:47:33.000Z
Scripts/start.py
ThibaultReuille/graphiti
56d85e5262b76dc6ce4f213a4d80486e015de1b7
[ "BSD-2-Clause" ]
31
2015-01-14T12:16:13.000Z
2022-02-24T21:25:16.000Z
import sys sys.path.insert(0, "./") if __name__ == "__main__": if len(sys.argv) <= 1: usage() else: module = "Scripts." + sys.argv[1] if module in sys.modules: sys.modules[module].start() else: print("No module named {}".format("Scripts." + sys.argv[1]))...
25.642857
72
0.513928
import sys sys.path.insert(0, "./") import os from Scripts import * def usage(): exclude = ['__init__.py', 'start.py', 'standard.py'] print("") print("Usage: " + sys.argv[0] + " <view>") print(" Available views : {}".format( " ".join([file.split('.')[0] for file in os.listdir('Scripts') ...
0
0
0
0
0
321
0
-12
68
078cd45b4695b13f5ab288c33e4c06fbd0040f24
74,995
py
Python
lib/python/treadmill/tests/scheduler_test.py
krcooke/treadmill
613008fee88a150f983ab12d8ef2e118fb77bb51
[ "Apache-2.0" ]
133
2016-09-15T13:36:12.000Z
2021-01-18T06:29:13.000Z
lib/python/treadmill/tests/scheduler_test.py
krcooke/treadmill
613008fee88a150f983ab12d8ef2e118fb77bb51
[ "Apache-2.0" ]
108
2016-12-28T23:41:27.000Z
2020-03-05T21:20:37.000Z
lib/python/treadmill/tests/scheduler_test.py
krcooke/treadmill
613008fee88a150f983ab12d8ef2e118fb77bb51
[ "Apache-2.0" ]
69
2016-09-23T20:38:58.000Z
2020-11-11T02:31:21.000Z
"""Unit test for treadmill.scheduler. """ # Disable too many lines in module warning. # # pylint: disable=C0302 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import time import unittest # Disable W0611: Unused impo...
38.478707
79
0.591546
"""Unit test for treadmill.scheduler. """ # Disable too many lines in module warning. # # pylint: disable=C0302 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import datetime import itertools import sys import time ...
0
11,587
0
61,895
0
211
0
-11
432
efa430cb70cf52f5c59fbc4ba2d6a6aab983b47e
129
py
Python
main.py
shilu10/Dummy_Deployment
9ed3309ac3b48940fb19df3deae732376c52cf42
[ "MIT" ]
null
null
null
main.py
shilu10/Dummy_Deployment
9ed3309ac3b48940fb19df3deae732376c52cf42
[ "MIT" ]
null
null
null
main.py
shilu10/Dummy_Deployment
9ed3309ac3b48940fb19df3deae732376c52cf42
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__)
21.5
53
0.666667
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "<h1 style='color:blue'>Hello There!</h1>"
0
61
0
0
0
0
0
0
22
c66bb2c99e1c48f2b7c2cc56061fca2ede4c8347
1,198
py
Python
College/HVCC/Python Programming/Final Project/runOstranderCustomer.py
lwoluke/Projects
88f288b32db594a96af98b8b3420f7e5f9a5a47d
[ "MIT" ]
null
null
null
College/HVCC/Python Programming/Final Project/runOstranderCustomer.py
lwoluke/Projects
88f288b32db594a96af98b8b3420f7e5f9a5a47d
[ "MIT" ]
null
null
null
College/HVCC/Python Programming/Final Project/runOstranderCustomer.py
lwoluke/Projects
88f288b32db594a96af98b8b3420f7e5f9a5a47d
[ "MIT" ]
null
null
null
""" File: runOstranderCustomer.py Final Project - Main file Reads the files of a company, which contain its customers and their orders, and prints the contents in a comprehendible format. """ # customers is {304: ostranderCustomer.OstranderCustomer object at 0x00...} if __name__ == "__main__": main()
23.490196
90
0.630217
""" File: runOstranderCustomer.py Final Project - Main file Reads the files of a company, which contain its customers and their orders, and prints the contents in a comprehendible format. """ from ostranderCustomer import OstranderCustomer def readCustomers(): f = open("customers.txt", 'r') customers = {}...
0
0
0
0
0
767
0
26
91
9569039ee886648db8def483d0eef0999c6c8786
3,292
py
Python
dregcli/tests/tests_unit/test_repository.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
null
null
null
dregcli/tests/tests_unit/test_repository.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
1
2019-04-12T13:46:52.000Z
2019-04-15T15:26:47.000Z
dregcli/tests/tests_unit/test_repository.py
jssuzanne/dregcli
328e8aacf4e46f538e2b62c8c3cceba002feb367
[ "MIT" ]
1
2019-04-12T13:44:53.000Z
2019-04-12T13:44:53.000Z
import os import sys sys.path.append( os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir) )
31.056604
79
0.615735
import os import sys from unittest import mock import pytest sys.path.append( os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir) ) from fixtures import ( fixture_registry_url, fixture_repository, fixture_repositories, fixture_tags, fixture_digest, fixture_tags_url, fix...
0
2,758
0
0
0
0
0
255
164
0b0f55e3259c754e6f41e0aa8589e9c775309a29
477
py
Python
srcode/user/decorator.py
Bnjorogedev/Flaskgram-instaclone
c1efb66e9b6394d661f51cd3621066b1e02ddd17
[ "MIT" ]
1
2020-09-22T21:01:36.000Z
2020-09-22T21:01:36.000Z
srcode/user/decorator.py
Bnjorogedev/Flaskgram
c1efb66e9b6394d661f51cd3621066b1e02ddd17
[ "MIT" ]
1
2020-10-18T07:05:11.000Z
2020-10-18T07:05:11.000Z
srcode/user/decorator.py
Bnjorogedev/Flaskgram-instaclone
c1efb66e9b6394d661f51cd3621066b1e02ddd17
[ "MIT" ]
null
null
null
def check_confirmed(func): '''Checks whether a certain user is confirmed''' return decorated_function
31.8
59
0.706499
from flask import flash, redirect, url_for, abort from flask_login import current_user from srcode.models import Permission, User from functools import wraps def check_confirmed(func): '''Checks whether a certain user is confirmed''' @wraps(func) def decorated_function(*args, **kwargs): if n...
0
178
0
0
0
0
0
70
115
b14424ac4aec20fd96ca92e13bc9a33f0e87d8bc
4,974
py
Python
src/spn/io/Text.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
src/spn/io/Text.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
src/spn/io/Text.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
''' Created on March 21, 2018 @author: Alejandro Molina ''' from collections import OrderedDict _node_to_str = {} _str_to_spn = OrderedDict()
30.145455
112
0.624045
''' Created on March 21, 2018 @author: Alejandro Molina ''' from collections import OrderedDict from enum import Enum from spn.algorithms.Validity import is_valid from spn.structure.Base import Product, Sum, rebuild_scopes_bottom_up, assign_ids, Leaf import numpy as np def to_JSON(node): import json from c...
0
0
0
0
0
4,508
0
86
227
4f50725f3c31d176be58c5bde9bb440a69602f34
11,325
py
Python
IPython/terminal/tests/test_interactivshell.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
1
2020-12-18T01:07:55.000Z
2020-12-18T01:07:55.000Z
IPython/terminal/tests/test_interactivshell.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/terminal/tests/test_interactivshell.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the key interactiveshell module. Authors ------- * Julian Taylor """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # th...
37.131148
82
0.604768
# -*- coding: utf-8 -*- """Tests for the key interactiveshell module. Authors ------- * Julian Taylor """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # th...
45
6,624
0
2,906
0
406
0
67
274
54c05dacc36e2a160c7bf7dd66ce48a4d7ce3753
5,704
py
Python
research/lstm_object_detection/models/mobilenet_defs.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
1
2019-09-11T09:41:11.000Z
2019-09-11T09:41:11.000Z
research/lstm_object_detection/models/mobilenet_defs.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
null
null
null
research/lstm_object_detection/models/mobilenet_defs.py
vincentcheny/models
afb1a59fc1bc792ac72d1a3e22e2469020529788
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
39.337931
81
0.610975
# Copyright 2019 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...
0
0
0
0
0
445
0
0
27
3b0f676854ce6949e3f8f80ac4c42b4708ce1fb3
8,842
py
Python
annotation/anotherDocActiveThing.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
7
2021-02-01T22:39:23.000Z
2021-08-09T16:28:38.000Z
annotation/anotherDocActiveThing.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-05-17T13:14:40.000Z
2021-05-20T10:26:09.000Z
annotation/anotherDocActiveThing.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-01-04T14:11:18.000Z
2021-01-04T14:11:18.000Z
import sys sys.path.append("../pipeline") import mysql.connector import pickle import argparse import json import numpy as np import time import os from scipy import stats if __name__ == '__main__': parser = argparse.ArgumentParser(description='Prepare data for active learning') #parser.add_argument('--db',requir...
36.841667
159
0.755598
import sys sys.path.append("../pipeline") import mysql.connector import pickle import argparse import json import itertools from collections import defaultdict,Counter from collections.abc import Iterable import numpy as np import time import os from scipy import stats from sklearn.multiclass import OneVsRestClassifi...
0
0
0
0
0
4,087
0
164
320
6c6c9cb1343a02d111ad40ddac0947dad0d82727
426
py
Python
tests/test_advanced.py
eldavojohn/uspto-pymongo-interface
8bc6e71ed4e450cd491dbcd7498e93ea848aa88e
[ "MIT" ]
1
2018-10-08T00:45:10.000Z
2018-10-08T00:45:10.000Z
tests/test_advanced.py
eldavojohn/uspto-pymongo-interface
8bc6e71ed4e450cd491dbcd7498e93ea848aa88e
[ "MIT" ]
null
null
null
tests/test_advanced.py
eldavojohn/uspto-pymongo-interface
8bc6e71ed4e450cd491dbcd7498e93ea848aa88e
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
21.3
45
0.711268
from .context import uspto import unittest class AdvancedTestSuite(unittest.TestCase): """Advanced test cases.""" print "here we go" def test_first_patent(self): uspto.print_first_patent() def test_patent_crawl(self): uspto.crawl_patents_with_aggregate() def test_map_reduce_to_s...
0
0
0
311
0
0
0
5
45
7c463d2d5d527f1ff779006b05efd417309a680e
1,336
py
Python
migrations.py
jerryrwu/alcazard
1403da83cd1986e298db4266f1d1d9d63dc8ab89
[ "Apache-2.0" ]
2
2019-03-26T14:51:23.000Z
2020-11-06T13:11:30.000Z
migrations.py
jerryrwu/alcazard
1403da83cd1986e298db4266f1d1d9d63dc8ab89
[ "Apache-2.0" ]
null
null
null
migrations.py
jerryrwu/alcazard
1403da83cd1986e298db4266f1d1d9d63dc8ab89
[ "Apache-2.0" ]
1
2020-10-30T18:24:40.000Z
2020-10-30T18:24:40.000Z
import logging from alcazar_logging import BraceAdapter logger = BraceAdapter(logging.getLogger(__name__))
33.4
96
0.717066
import logging from playhouse import migrate from alcazar_logging import BraceAdapter logger = BraceAdapter(logging.getLogger(__name__)) def _record_migration(db, name): db.execute_sql('INSERT INTO migration (name) VALUES (?001)', (name,)) def _handle_table_creation(db, migrations): with db.atomic(): ...
0
0
0
0
0
1,100
0
8
115