hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
14096a47f1fb73f1f3a7e9c4907910efec6fe0b3
5,632
py
Python
P_bot_TOR.py
derhornspieler/Scavenger
f0cc4c12edea871a74512278781cb10287078023
[ "Apache-2.0" ]
1
2019-12-14T00:28:35.000Z
2019-12-14T00:28:35.000Z
P_bot_TOR.py
derhornspieler/Scavenger
f0cc4c12edea871a74512278781cb10287078023
[ "Apache-2.0" ]
null
null
null
P_bot_TOR.py
derhornspieler/Scavenger
f0cc4c12edea871a74512278781cb10287078023
[ "Apache-2.0" ]
null
null
null
###### # If you do not want to post results on Twitter remove the lines marked with TWITTER ###### import time import tweepy import os import classes.utility import requests from bs4 import BeautifulSoup, SoupStrainer tools = classes.utility.ScavUtility() iterator = 1 session = requests.session() session.proxies = {}...
39.111111
173
0.635298
140ab3e208fd8520fd27c0b61a95fd2da405a3b2
428
py
Python
core/templatetags/extras.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
core/templatetags/extras.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
core/templatetags/extras.py
bugulin/gymgeek-web
1def491392add2526fb0e8a53098d49ad2fdf983
[ "Apache-2.0" ]
null
null
null
from django import template from django.template.defaultfilters import stringfilter from django.utils.safestring import mark_safe from docutils.core import publish_parts register = template.Library()
32.923077
100
0.794393
140bd4371229916c2d5f56c52a91980370ca0a17
35,931
py
Python
aether/sdk/auth/keycloak/tests/test_keycloak.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
1
2020-05-04T21:05:11.000Z
2020-05-04T21:05:11.000Z
aether/sdk/auth/keycloak/tests/test_keycloak.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
3
2019-09-30T15:45:43.000Z
2020-04-29T08:12:37.000Z
aether/sdk/auth/keycloak/tests/test_keycloak.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
43.238267
99
0.544627
140dfac64786934c620c3477a54ffeec5d9625f8
1,083
py
Python
ballet/__init__.py
HDI-Project/fhub_core
9667a47fbd8b4caf2e92118dc5357f34aae2098b
[ "MIT" ]
19
2021-04-06T18:56:39.000Z
2022-03-15T00:23:00.000Z
ballet/__init__.py
HDI-Project/ballet
9667a47fbd8b4caf2e92118dc5357f34aae2098b
[ "MIT" ]
52
2018-09-27T01:11:58.000Z
2021-03-24T19:11:18.000Z
ballet/__init__.py
HDI-Project/ballet
9667a47fbd8b4caf2e92118dc5357f34aae2098b
[ "MIT" ]
3
2019-12-07T17:55:34.000Z
2021-02-02T17:58:39.000Z
# -*- coding: utf-8 -*- """Top-level package for ballet.""" __author__ = 'Micah Smith' __email__ = 'micahs@mit.edu' __version__ = '0.19.5' # filter warnings import warnings # noqa E402 warnings.filterwarnings( action='ignore', module='scipy', message='^internal gelsd') # silence sklearn deprecation warnings im...
27.769231
67
0.753463
140e681121ae14e453921573cd7aea566206c1e5
8,816
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/apigateway/models/cors_policy.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/apigateway/models/cors_policy.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/apigateway/models/cors_policy.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
36.733333
245
0.674342
140ff5919b9d8c9821b371db5ca4896db28bf7f0
1,549
py
Python
tests/layers.py
jiansowa/PaddleSlim
a45431c99a775782b7fe5633f313d36ff582e797
[ "Apache-2.0" ]
null
null
null
tests/layers.py
jiansowa/PaddleSlim
a45431c99a775782b7fe5633f313d36ff582e797
[ "Apache-2.0" ]
1
2020-07-14T09:50:51.000Z
2020-07-14T09:50:51.000Z
tests/layers.py
jiansowa/PaddleSlim
a45431c99a775782b7fe5633f313d36ff582e797
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
34.422222
74
0.639768
141276ea795707d07f8dd66621b6cd1a2a1dac24
15,825
py
Python
zpy/db/oracle.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
zpy/db/oracle.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
zpy/db/oracle.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
from zpy.logger import TLogger, c_info from zpy.db.utils import get_current_schema from marshmallow_objects import models from typing import Any, Dict, List, Optional, Union from zpy.db import DBConnection from zpy.utils.funcs import exec_ifnt_null, safely_exec from enum import Enum from marshmallow import Schema impor...
33.814103
102
0.561769
14144f1b8badd85eb67ed4d9f4ba6dac819651a5
2,469
py
Python
sol/frag_sol.py
hebrewsnabla/pyAutoMR
8e81ed7fd780abd94f8b51e48ee4b980a868c204
[ "Apache-2.0" ]
5
2021-06-03T07:49:02.000Z
2022-02-21T11:35:20.000Z
sol/frag_sol.py
hebrewsnabla/pyAutoMR
8e81ed7fd780abd94f8b51e48ee4b980a868c204
[ "Apache-2.0" ]
2
2022-01-20T08:33:59.000Z
2022-03-26T12:21:15.000Z
sol/frag_sol.py
hebrewsnabla/pyAutoMR
8e81ed7fd780abd94f8b51e48ee4b980a868c204
[ "Apache-2.0" ]
1
2022-02-21T11:35:34.000Z
2022-02-21T11:35:34.000Z
from pyscf import gto import radii def guess_frag(xyz, frags, chgs, spins, gjfhead, scrfhead, gjfname, basis, wfnpath): ''' frags: e.g. [[1], [2]] for N2 chgs: e.g. [0, 0] for N2 spins: e.g. [3, -3] for N2 ''' #mol.build() print('**** generating fragments ****') atom = gto.format_atom...
30.109756
102
0.475901
141678d1dfdf2f7da83acc70199631b909f224bc
7,485
py
Python
SITE/main_file.py
S-Thaler/SITE
3a055ec70eaed2c8701857dc36d279bc7bc987f6
[ "MIT" ]
5
2019-11-20T22:24:54.000Z
2022-03-30T18:29:36.000Z
SITE/main_file.py
S-Thaler/SITE
3a055ec70eaed2c8701857dc36d279bc7bc987f6
[ "MIT" ]
null
null
null
SITE/main_file.py
S-Thaler/SITE
3a055ec70eaed2c8701857dc36d279bc7bc987f6
[ "MIT" ]
1
2019-06-05T22:24:35.000Z
2019-06-05T22:24:35.000Z
""" File to control the parameters of the SITE approach and to specify the postprocessing functionality. The parameters for each equation are the ones used in the paper. All results of the paper 'Sparse Identification of Trunction Errors' of Thaler, Paehler and Adams, 2019 can be replicated only be setting the appropri...
51.267123
119
0.689512
1416acb60382daea27591407e8abb38bce48a012
1,347
py
Python
skin_detector/scripts.py
version0chiro/xilinx_Code
ae8a274d2f0c44d591ef4dd1d3a677556b31de41
[ "Apache-2.0" ]
154
2015-04-20T08:17:45.000Z
2022-03-10T20:22:44.000Z
skin_detector/scripts.py
version0chiro/xilinx_Code
ae8a274d2f0c44d591ef4dd1d3a677556b31de41
[ "Apache-2.0" ]
10
2015-07-30T01:21:11.000Z
2020-06-22T19:40:23.000Z
skin_detector/scripts.py
version0chiro/xilinx_Code
ae8a274d2f0c44d591ef4dd1d3a677556b31de41
[ "Apache-2.0" ]
47
2016-02-24T12:23:28.000Z
2022-01-25T12:27:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Will Brennan' import os import cv2 import numpy
35.447368
103
0.605791
1416c17873c1a9581d387ea49ff4f96596f2b2dc
955
py
Python
test/test_1.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
test/test_1.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
test/test_1.py
rgooler/AOC2019
f761881240a5fe8711f730887f0f5033ea287e3d
[ "Apache-2.0" ]
null
null
null
from aoc2019 import * import unittest if __name__ == '__main__': unittest.main()
28.088235
73
0.668063
14184fc039d4f10e48794f5f948294e438d060ed
1,397
py
Python
xdtools/artwork/compound.py
tjcjc/xdtools
fbfa0b9ea52ab76594adea8c25157dc7b5360ed0
[ "MIT" ]
43
2018-01-19T22:14:37.000Z
2022-01-10T22:53:17.000Z
xdtools/artwork/compound.py
tjcjc/xdtools
fbfa0b9ea52ab76594adea8c25157dc7b5360ed0
[ "MIT" ]
3
2018-01-03T03:26:11.000Z
2021-12-31T17:21:14.000Z
xdtools/artwork/compound.py
tjcjc/xdtools
fbfa0b9ea52ab76594adea8c25157dc7b5360ed0
[ "MIT" ]
9
2019-08-01T14:02:08.000Z
2021-11-30T16:23:02.000Z
""" Contains the definition of Compound. """ from xdtools.artwork import Artwork from xdtools.utils import Point
34.925
88
0.623479
14195614c335ed63b791f528ce5c516b74a89827
9,084
py
Python
appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py
DannyPol/flatcam
25a8634d0658e98b7fae31a095f8bef40c1b3067
[ "MIT" ]
1
2022-02-11T06:19:34.000Z
2022-02-11T06:19:34.000Z
appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py
MRemy2/FlatCam
d4f941335ca8a8d5351aab23b396f99da06a9029
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets from PyQt5.QtCore import QSettings from appGUI.GUIElements import FCDoubleSpinner, FCCheckBox, RadioSet, FCComboBox, FCLabel from appGUI.preferences import machinist_setting from appGUI.preferences.OptionsGroupUI import OptionsGroupUI import gettext import appTranslation as fcTranslate imp...
36.926829
96
0.593901
14198076681f0298be4f5ae40bc2ae194fb807eb
1,094
py
Python
venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_sound.py
CrystalCodes01/python-pong
3d812f53928ecfb791fa5ab47585f02ac68ec2a0
[ "BSD-3-Clause" ]
null
null
null
venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_sound.py
CrystalCodes01/python-pong
3d812f53928ecfb791fa5ab47585f02ac68ec2a0
[ "BSD-3-Clause" ]
null
null
null
venv/lib/python2.7/site-packages/SimpleGUICS2Pygame/test/test_sound.py
CrystalCodes01/python-pong
3d812f53928ecfb791fa5ab47585f02ac68ec2a0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: latin-1 -*- """ Test play sounds. (January 1st, 2015) Piece of SimpleGUICS2Pygame. https://bitbucket.org/OPiMedia/simpleguics2pygame GPLv3 --- Copyright (C) 2015 Olivier Pirson http://www.opimedia.be/ """ import time try: import simplegui SIMPLEGUICS2PYGAME = False exce...
18.542373
100
0.691042
141b52bbd8190072c77e920996e410dd59fb3378
2,270
py
Python
oslo_config/_list_opts.py
CyrilRoelandteNovance/oslo.config
7e202148022a289d934bb27b3397ca5b49b52a96
[ "Apache-1.1" ]
110
2015-01-29T20:10:46.000Z
2022-03-21T12:29:21.000Z
oslo_config/_list_opts.py
CyrilRoelandteNovance/oslo.config
7e202148022a289d934bb27b3397ca5b49b52a96
[ "Apache-1.1" ]
1
2019-03-16T18:35:42.000Z
2019-03-16T19:40:14.000Z
oslo_config/_list_opts.py
CyrilRoelandteNovance/oslo.config
7e202148022a289d934bb27b3397ca5b49b52a96
[ "Apache-1.1" ]
115
2015-01-14T03:25:05.000Z
2021-12-02T16:49:06.000Z
# 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 # d...
31.09589
78
0.614537
141b77a16ef75fb27fd558b08965a19174a77d27
2,202
py
Python
dialogue/moviebot_data/batch.py
waynewu6250/ChatBoxer
ae73604d4778b3b5223049e73e696ad66239c0ff
[ "MIT" ]
7
2019-04-18T14:40:37.000Z
2021-05-11T08:36:21.000Z
dialogue/moviebot_data/batch.py
waynewu6250/ChatBoxer
ae73604d4778b3b5223049e73e696ad66239c0ff
[ "MIT" ]
6
2020-06-05T20:20:50.000Z
2021-06-10T17:48:56.000Z
dialogue/moviebot_data/batch.py
waynewu6250/ChatBoxer
ae73604d4778b3b5223049e73e696ad66239c0ff
[ "MIT" ]
2
2019-07-26T06:07:00.000Z
2020-06-25T17:34:47.000Z
import torch as t from torch.autograd import Variable import numpy as np import re import pickle import h5py from .load import Data from .load_chinese import ChineseData
38.631579
125
0.637148
141dce44aa13b06a05bddc7ee3b9b4a853b80ebc
2,935
py
Python
mediawikiapi/config.py
srevinsaju/MediaWikiAPI
b65dfa3d6a1798ddaa8569c9dbab3b397f305431
[ "MIT" ]
null
null
null
mediawikiapi/config.py
srevinsaju/MediaWikiAPI
b65dfa3d6a1798ddaa8569c9dbab3b397f305431
[ "MIT" ]
null
null
null
mediawikiapi/config.py
srevinsaju/MediaWikiAPI
b65dfa3d6a1798ddaa8569c9dbab3b397f305431
[ "MIT" ]
null
null
null
import requests from datetime import timedelta from .language import Language
30.894737
106
0.716865
141e206d570003abeaf4105dda08506c129a99b2
403
py
Python
abc/abc107/abc107b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc107/abc107b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc107/abc107b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
from sys import stdout H, W = map(int, input().split()) a = [input() for _ in range(H)] h = [all(c == '.' for c in a[i]) for i in range(H)] w = [True] * W for i in range(H): for j in range(W): w[j] = w[j] and a[i][j] == '.' for i in range(H): if h[i]: continue for j in range(W): ...
19.190476
51
0.48139
141efbd7b29a4f99f66f1a42fcfecd8aca71c828
175
py
Python
courses/E375004/fastapi/src/warehouse_app/dto.py
CVUT-FS-12110/Python
9faef8bba09d1b3382c28f29bdb8eaf144132d7d
[ "MIT" ]
16
2020-03-24T10:08:58.000Z
2022-03-08T17:18:46.000Z
courses/E375004/fastapi/src/warehouse_app/dto.py
CVUT-FS-12110/Python
9faef8bba09d1b3382c28f29bdb8eaf144132d7d
[ "MIT" ]
2
2021-05-05T08:13:24.000Z
2022-02-28T13:22:15.000Z
courses/E375004/fastapi/src/warehouse_app/dto.py
CVUT-FS-12110/Python
9faef8bba09d1b3382c28f29bdb8eaf144132d7d
[ "MIT" ]
27
2020-03-14T12:51:36.000Z
2022-03-22T18:47:23.000Z
""" Data Transfer Objects """ from pydantic import BaseModel
25
46
0.72
141f274293bd89340f4b94ad63ff87c3d7c2590d
155
py
Python
ecom/carts/admin.py
Bhavitg/FashionKart-Ecommerce
27327e074effad54d15decae81f41cb722792ab6
[ "MIT" ]
null
null
null
ecom/carts/admin.py
Bhavitg/FashionKart-Ecommerce
27327e074effad54d15decae81f41cb722792ab6
[ "MIT" ]
null
null
null
ecom/carts/admin.py
Bhavitg/FashionKart-Ecommerce
27327e074effad54d15decae81f41cb722792ab6
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Cart,CartItem admin.site.register(Cart) admin.site.register(CartItem)
17.222222
33
0.8
141fc184c8d85e8a094bac9ac900fe97cd870755
2,865
py
Python
BboxToolkit/datasets/io.py
qilei123/BboxToolkit
97f61ae97449009c7952f648be57a28d35c2f39b
[ "Apache-2.0" ]
38
2021-02-05T14:39:11.000Z
2022-03-28T07:41:41.000Z
BboxToolkit/datasets/io.py
qilei123/BboxToolkit
97f61ae97449009c7952f648be57a28d35c2f39b
[ "Apache-2.0" ]
5
2021-11-01T08:17:09.000Z
2022-03-28T12:40:06.000Z
BboxToolkit/datasets/io.py
qilei123/BboxToolkit
97f61ae97449009c7952f648be57a28d35c2f39b
[ "Apache-2.0" ]
13
2021-08-20T12:26:04.000Z
2022-03-18T12:45:31.000Z
import os import os.path as osp import pickle import time import numpy as np from multiprocessing import Pool from ..utils import get_bbox_dim from .misc import read_img_info, change_cls_order, get_classes
32.931034
90
0.635951
1420f29df1fa70eb2e3757666daa61e2e39f87c0
358
py
Python
setup.py
rchurch4/emoji_map
f924e6d8d059c4705d3360a690eaac2825de3e49
[ "MIT" ]
null
null
null
setup.py
rchurch4/emoji_map
f924e6d8d059c4705d3360a690eaac2825de3e49
[ "MIT" ]
null
null
null
setup.py
rchurch4/emoji_map
f924e6d8d059c4705d3360a690eaac2825de3e49
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='emoji_map', version='0.1', description='Maps unicode emoji to its description', url='http://github.com/rchurch4/emoji_map', author='Rob Churchill', author_email='rchurch4@bu.edu', license='MIT', packages=['emoji_map'], include_pac...
27.538462
58
0.656425
142176f2250823447a68c6f5a9ee79511f0fb3b0
1,034
py
Python
tests/conftest.py
EvanKomp/molscore
e21c2dcba467228e498827dd5218ac8c9202bb5e
[ "MIT" ]
null
null
null
tests/conftest.py
EvanKomp/molscore
e21c2dcba467228e498827dd5218ac8c9202bb5e
[ "MIT" ]
1
2021-09-15T20:27:43.000Z
2021-09-15T20:27:43.000Z
tests/conftest.py
EvanKomp/molscore
e21c2dcba467228e498827dd5218ac8c9202bb5e
[ "MIT" ]
null
null
null
import json import os import pytest import tempfile
27.945946
73
0.692456
1421a793494f3eba53446dfb7b7c27fbcbbb120e
6,348
py
Python
rlcard3/games/gin_rummy/utils/melding.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
1
2021-05-27T03:40:37.000Z
2021-05-27T03:40:37.000Z
rlcard3/games/gin_rummy/utils/melding.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
null
null
null
rlcard3/games/gin_rummy/utils/melding.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
1
2022-02-24T11:25:22.000Z
2022-02-24T11:25:22.000Z
''' File name: gin_rummy/melding.py Author: William Hale Date created: 2/12/2020 ''' from rlcard3.games.gin_rummy.card import Card import rlcard3.games.gin_rummy.utils.utils as utils from typing import List from typing import Set import copy import random """ Terminology: run_meld - three o...
40.433121
119
0.650284
14225abd1af0a2752df316fa83f0866ab01e19a6
17,255
py
Python
src/garage/tf/algos/rl2.py
jaekyeom/garage
be20a5ed29017dc079d9b46ee7dbd2a2fe89e90e
[ "MIT" ]
1
2021-01-11T18:40:52.000Z
2021-01-11T18:40:52.000Z
src/garage/tf/algos/rl2.py
kiminh/garage
c0fd41d73da7e7a71d6054e87370be35ca708e67
[ "MIT" ]
null
null
null
src/garage/tf/algos/rl2.py
kiminh/garage
c0fd41d73da7e7a71d6054e87370be35ca708e67
[ "MIT" ]
null
null
null
"""Module for RL2. This module contains RL2, RL2Worker and the environment wrapper for RL2. """ # yapf: disable import abc import collections import akro from dowel import logger import numpy as np from garage import (EnvSpec, EnvStep, EpisodeBatch, log_mul...
33.635478
79
0.619009
1422d17a09d1a24e370225b68f6258e43dc906f1
2,059
py
Python
cct/core2/algorithms/orderforleastmotormovement.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2015-11-04T16:37:39.000Z
2015-11-04T16:37:39.000Z
cct/core2/algorithms/orderforleastmotormovement.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
null
null
null
cct/core2/algorithms/orderforleastmotormovement.py
awacha/cct
be1adbed2533df15c778051f3f4f9da0749c873a
[ "BSD-3-Clause" ]
1
2020-03-05T02:50:43.000Z
2020-03-05T02:50:43.000Z
from typing import Tuple, List, TypeVar T = TypeVar("T")
45.755556
126
0.64643
142313749cfd9431bfe0ceeb096274e6b438b71c
350
py
Python
openpnm/topotools/__init__.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
2
2019-08-24T09:17:40.000Z
2020-07-05T07:21:21.000Z
openpnm/topotools/__init__.py
xu-kai-xu/OpenPNM
61d5fc4729a0a29291cf6c53c07c4246e7a13714
[ "MIT" ]
2
2020-06-26T19:58:23.000Z
2021-12-14T07:16:41.000Z
openpnm/topotools/__init__.py
xu-kai-xu/OpenPNM
61d5fc4729a0a29291cf6c53c07c4246e7a13714
[ "MIT" ]
null
null
null
r""" Collection of functions for manipulating network topology ========================================================= This module contains a selection of functions that deal specifically with network topology. """ from ._topotools import * from ._perctools import * from ._graphtools import * from ._plottools impo...
23.333333
73
0.66
1423487aa9ea63d89b16cc57da5de0d83c612a84
7,560
py
Python
tests/gdata_tests/analytics/data_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/analytics/data_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/analytics/data_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2009 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 ...
34.678899
84
0.714153
14235464064dbcb80d081c8ba50a4d1f0167651c
3,299
py
Python
parkself_mbed/scripts/parkself_run.py
SweiLz/Parkself
5df83967926dda849a73ff33d8ce1f8c6eb54d4f
[ "BSD-3-Clause" ]
null
null
null
parkself_mbed/scripts/parkself_run.py
SweiLz/Parkself
5df83967926dda849a73ff33d8ce1f8c6eb54d4f
[ "BSD-3-Clause" ]
null
null
null
parkself_mbed/scripts/parkself_run.py
SweiLz/Parkself
5df83967926dda849a73ff33d8ce1f8c6eb54d4f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy from math import sqrt from geometry_msgs.msg import Twist, PoseStamped, Pose2D, PointStamped, PoseWithCovarianceStamped from std_msgs.msg import Empty, String import Queue goal_point = rospy.Publisher( "move_base_simple/goal", PoseStamped, queue_size=1) servo = rospy.Publisher(...
24.992424
97
0.529858
14239ea5aa010abca8f3a50c93850774794a7cf3
5,587
py
Python
tests/test_session.py
brainsplinter/pylibsrtp
f684f93f3b1013a7ef7dfb6a863c885ae5761854
[ "BSD-3-Clause" ]
11
2018-03-02T12:21:48.000Z
2022-01-31T12:58:06.000Z
tests/test_session.py
brainsplinter/pylibsrtp
f684f93f3b1013a7ef7dfb6a863c885ae5761854
[ "BSD-3-Clause" ]
18
2019-02-26T16:03:19.000Z
2022-03-06T17:36:42.000Z
tests/test_session.py
brainsplinter/pylibsrtp
f684f93f3b1013a7ef7dfb6a863c885ae5761854
[ "BSD-3-Clause" ]
5
2019-11-08T08:31:02.000Z
2022-02-11T15:21:04.000Z
from unittest import TestCase from pylibsrtp import Error, Policy, Session RTP = ( b"\x80\x08\x00\x00" # version, packet type, sequence number b"\x00\x00\x00\x00" # timestamp b"\x00\x00\x30\x39" # ssrc: 12345 ) + (b"\xd4" * 160) RTCP = ( b"\x80\xc8\x00\x06\xf3\xcb\x20\x01\x83\xab\x03\xa1\xeb\x02\x0...
32.864706
88
0.653839
1425326030a36f7088c87f42da842ce1d53ade94
7,974
py
Python
tripleo_ansible/ansible_plugins/modules/tripleo_baremetal_expand_roles.py
beagles/tripleo-ansible
7faddd87cffc8903a9cdedc7a6454cdf44aeed67
[ "Apache-2.0" ]
22
2018-08-29T12:33:15.000Z
2022-03-30T00:17:25.000Z
tripleo_ansible/ansible_plugins/modules/tripleo_baremetal_expand_roles.py
beagles/tripleo-ansible
7faddd87cffc8903a9cdedc7a6454cdf44aeed67
[ "Apache-2.0" ]
1
2020-02-07T20:54:34.000Z
2020-02-07T20:54:34.000Z
tripleo_ansible/ansible_plugins/modules/tripleo_baremetal_expand_roles.py
beagles/tripleo-ansible
7faddd87cffc8903a9cdedc7a6454cdf44aeed67
[ "Apache-2.0" ]
19
2019-07-16T04:42:00.000Z
2022-03-30T00:17:29.000Z
#!/usr/bin/python # Copyright 2020 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
30.787645
91
0.577878
1425809d2b5fe657e70492cd714e8e6e266db850
2,207
py
Python
hexa/user_management/migrations/0003_feature_flags.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
4
2021-07-19T12:53:21.000Z
2022-01-26T17:45:02.000Z
hexa/user_management/migrations/0003_feature_flags.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
20
2021-05-17T12:27:06.000Z
2022-03-30T11:35:26.000Z
hexa/user_management/migrations/0003_feature_flags.py
qgerome/openhexa-app
8c9377b2ad972121d8e9575f5d52420212b52ed4
[ "MIT" ]
2
2021-09-07T04:19:59.000Z
2022-02-08T15:33:29.000Z
# Generated by Django 3.2.6 on 2021-09-10 11:56 import uuid import django.db.models.deletion import django.db.models.fields from django.conf import settings from django.db import migrations, models
30.232877
72
0.421386
14273ef2fcf5b08c4c4fe145580e3eb565476537
624
py
Python
btclib/__init__.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
40
2020-04-07T12:10:34.000Z
2022-03-18T18:10:48.000Z
btclib/__init__.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
30
2020-03-20T00:52:37.000Z
2022-02-10T12:54:30.000Z
btclib/__init__.py
btclib-org/btclib
d19b45edca068118eb1d509536a1a459660d7306
[ "MIT" ]
16
2020-03-19T15:33:35.000Z
2022-02-24T21:47:39.000Z
#!/usr/bin/env python3 # Copyright (C) 2020-2021 The btclib developers # # This file is part of btclib. It is subject to the license terms in the # LICENSE file found in the top-level directory of this distribution. # # No part of btclib including this file, may be copied, modified, propagated, # or distributed except...
32.842105
77
0.761218
1428fc857bf985d08474b17410858d44bd518123
1,009
py
Python
Lettuce_Tests/old_tests/testFeatureCategoricalGridCoverage.py
jread-usgs/pyGDP
72c8464934fec6643f111bf326b5c12bf47925fb
[ "CC0-1.0" ]
null
null
null
Lettuce_Tests/old_tests/testFeatureCategoricalGridCoverage.py
jread-usgs/pyGDP
72c8464934fec6643f111bf326b5c12bf47925fb
[ "CC0-1.0" ]
null
null
null
Lettuce_Tests/old_tests/testFeatureCategoricalGridCoverage.py
jread-usgs/pyGDP
72c8464934fec6643f111bf326b5c12bf47925fb
[ "CC0-1.0" ]
null
null
null
import pyGDP import os from nose.tools import assert_equal from nose.tools import assert_not_equal
38.807692
136
0.739346
142bca0d242d6c11c1ad4347da2e3a6249ad9ac2
16,521
py
Python
Machine-Learning-in-Production/02-Model-Management/02-Model-Registry.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
14
2021-09-21T19:48:02.000Z
2022-03-09T19:22:39.000Z
Machine-Learning-in-Production/02-Model-Management/02-Model-Registry.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
null
null
null
Machine-Learning-in-Production/02-Model-Management/02-Model-Registry.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
5
2021-08-22T12:12:49.000Z
2022-02-28T15:47:43.000Z
# Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # M...
40.692118
645
0.736699
142d5302e65382732b38002b4366ded5bfe975f2
7,151
py
Python
corehq/apps/callcenter/utils.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/callcenter/utils.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/callcenter/utils.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from collections import namedtuple from datetime import datetime, timedelta import pytz from casexml.apps.case.dbaccessors import get_open_case_docs_in_domain from casexml.apps.case.mock import CaseBlock from casexml.apps.case.xml import V2 import uuid from xml.etree import Elemen...
37.244792
116
0.638932
142f6d81b4cdb9236e603b9d2db42775743f83e2
5,831
py
Python
src/encoded/audit/dataset.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
null
null
null
src/encoded/audit/dataset.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
10
2020-07-22T20:16:15.000Z
2021-06-16T19:17:44.000Z
src/encoded/audit/dataset.py
Lattice-Data/encoded
94bb4f7cb51970523715e0598d84699a28f90861
[ "MIT" ]
null
null
null
from snovault import ( AuditFailure, audit_checker, ) from .formatter import ( audit_link, path_to_text, ) function_dispatcher_with_files = { 'audit_contributor_institute': audit_contributor_institute, 'audit_contributor_email': audit_contributor_email, 'audit_contributor_lists': aud...
35.993827
113
0.601784
1431085ed453d7690fe84e1c128524430df1f728
5,990
py
Python
psatlib/__init__.py
nie93/psatlib
19947658fb4162f325e729eab086121947d8306a
[ "MIT" ]
null
null
null
psatlib/__init__.py
nie93/psatlib
19947658fb4162f325e729eab086121947d8306a
[ "MIT" ]
2
2018-06-19T20:53:13.000Z
2018-11-01T20:11:45.000Z
psatlib/__init__.py
nie93/psatlib
19947658fb4162f325e729eab086121947d8306a
[ "MIT" ]
null
null
null
""" psatlib -- An imported library designed for PSAT running with Python scripts. Created by Zhijie Nie (nie@ieee.org) Created on: 06/11/2018 Last Modified on: 10/01/2018 """ __name__ = "psatlib" __version__ = "0.1" __author__ = "Zhijie Nie" __author_email__ = "nie@ieee.org" __copyright__ = "Copyright (c) 20...
34.825581
101
0.635225
1431e9db188b5d696eaec5acf37de7154e8339f9
3,001
py
Python
webcam_OrbitalTimmer.py
JarvisSan22/Python_webcam
1c90e9173257f134f34cf094b947d99a745ab2ae
[ "MIT" ]
null
null
null
webcam_OrbitalTimmer.py
JarvisSan22/Python_webcam
1c90e9173257f134f34cf094b947d99a745ab2ae
[ "MIT" ]
null
null
null
webcam_OrbitalTimmer.py
JarvisSan22/Python_webcam
1c90e9173257f134f34cf094b947d99a745ab2ae
[ "MIT" ]
null
null
null
import numpy as np import cv2 import math import datetime from datetime import timedelta as Delta h=300 w=300 cap = cv2.VideoCapture(0) SUN_LOC=(200,70) SUN_RSIZE=20 ORBITAL_R=10 ORBITAL_RSIZE=3 ORBITAL_PHI=0 ORBITAL_DPHI=1 #0.5deg delta dr=(SUN_RSIZE+ORBITAL_R) #*(orbitdphi) #*np.pi/180) orbitlo...
28.311321
139
0.618794
1433a45ce0d16e3b1c57cbfb15267e409f99e3b0
2,913
py
Python
spyder/plugins/outlineexplorer/tests/test_outline_explorer_editor.py
suokunlong/spyder
2d5d450fdcef232fb7f38e7fefc27f0e7f704c9a
[ "MIT" ]
3
2019-09-27T21:00:00.000Z
2021-03-07T23:28:32.000Z
spyder/plugins/outlineexplorer/tests/test_outline_explorer_editor.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
3
2020-10-13T21:15:23.000Z
2020-10-13T21:15:24.000Z
spyder/plugins/outlineexplorer/tests/test_outline_explorer_editor.py
jastema/spyder
0ef48ea227c53f57556cd8002087dc404b0108b0
[ "MIT" ]
2
2021-04-30T01:18:22.000Z
2021-09-19T06:31:42.000Z
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # """Tests for editor and outline explorer interaction.""" # Test library imports import pytest # Local imports from spyder.plugins.outlineexplorer.widgets import OutlineExplorerWidget from spyder.plugins...
29.13
76
0.675249
1435d19388b06f46cd61f4a44ed68dc45546446f
3,105
py
Python
challonge/attachment.py
Parapheen/achallonge
8f05a0832cd0209536475aa9e91a5e71071512a0
[ "MIT" ]
3
2017-03-27T18:02:02.000Z
2021-09-20T02:44:21.000Z
challonge/attachment.py
Parapheen/achallonge
8f05a0832cd0209536475aa9e91a5e71071512a0
[ "MIT" ]
6
2017-05-28T11:08:25.000Z
2021-09-20T03:12:36.000Z
challonge/attachment.py
Parapheen/achallonge
8f05a0832cd0209536475aa9e91a5e71071512a0
[ "MIT" ]
8
2017-03-30T18:35:13.000Z
2021-08-01T10:53:54.000Z
from .helpers import FieldHolder, assert_or_raise
33.031915
133
0.588084
1436e076256d16b106fecbd6efa5e663549ff699
737
py
Python
tests/cupy_tests/array_api_tests/test_sorting_functions.py
pri1311/cupy
415be9536582ba86dbbb3e98bc14db4877a242c6
[ "MIT" ]
null
null
null
tests/cupy_tests/array_api_tests/test_sorting_functions.py
pri1311/cupy
415be9536582ba86dbbb3e98bc14db4877a242c6
[ "MIT" ]
null
null
null
tests/cupy_tests/array_api_tests/test_sorting_functions.py
pri1311/cupy
415be9536582ba86dbbb3e98bc14db4877a242c6
[ "MIT" ]
1
2022-03-21T20:19:12.000Z
2022-03-21T20:19:12.000Z
import pytest from cupy import array_api as xp
27.296296
67
0.573948
1437f6b2872552388cca334ea76cadd246a03878
6,406
py
Python
drip/api/subscribers.py
willjohnson/drip-python
13e2836b5acb7a822b0e1f9884e3249d37734cef
[ "MIT" ]
5
2019-04-11T19:32:14.000Z
2020-08-03T21:58:55.000Z
drip/api/subscribers.py
willjohnson/drip-python
13e2836b5acb7a822b0e1f9884e3249d37734cef
[ "MIT" ]
7
2019-03-19T03:54:49.000Z
2021-12-09T21:53:28.000Z
drip/api/subscribers.py
willjohnson/drip-python
13e2836b5acb7a822b0e1f9884e3249d37734cef
[ "MIT" ]
1
2021-01-11T21:51:51.000Z
2021-01-11T21:51:51.000Z
from typing import TYPE_CHECKING from drip.utils import json_list, json_object, raise_response if TYPE_CHECKING: from requests import Session
38.130952
133
0.604589
143877dd2c390f5b0dc8e5729d0cf5ded4ef1c91
2,154
py
Python
ldapauth/main/main.py
trutty/python-ldap
d656548641d2d3e45e868bb6ce1585cffe3c6848
[ "CC0-1.0" ]
null
null
null
ldapauth/main/main.py
trutty/python-ldap
d656548641d2d3e45e868bb6ce1585cffe3c6848
[ "CC0-1.0" ]
null
null
null
ldapauth/main/main.py
trutty/python-ldap
d656548641d2d3e45e868bb6ce1585cffe3c6848
[ "CC0-1.0" ]
null
null
null
from flask import Flask, request from flask_httpauth import HTTPBasicAuth from auth_handler import AuthHandler from cache import Cache from os import environ from yaml import safe_load import logging from connection_provider import ConnectionProvider # init logging logging.basicConfig(format='[%(asctime)s] [%(levelna...
26.268293
96
0.716806
1438db051f7ec3e90a15d96cb90dfbe4c91397a1
4,038
py
Python
Square_game/Square_game_play.py
samutams/Square_game
8067e856075b8d68eaa3cefc73fe818d545c85b0
[ "MIT" ]
null
null
null
Square_game/Square_game_play.py
samutams/Square_game
8067e856075b8d68eaa3cefc73fe818d545c85b0
[ "MIT" ]
null
null
null
Square_game/Square_game_play.py
samutams/Square_game
8067e856075b8d68eaa3cefc73fe818d545c85b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import pygame import time import random import numpy as np import pandas as pd from Square_game.Maze import * from Square_game.A_star import * from Square_game.Player import * from Square_game.Food import *
33.371901
159
0.540862
1439a1471ef42c4ab1b73ed6dc780c31a03941cb
7,255
py
Python
gentun/algorithms.py
ahmadmobeen/gentun
c0cbb3eaf458b3e4abeade6b9baf914f461f3727
[ "Apache-2.0" ]
2
2020-03-23T07:29:33.000Z
2022-03-16T06:18:37.000Z
gentun/algorithms.py
ahmadmobeen/gentun
c0cbb3eaf458b3e4abeade6b9baf914f461f3727
[ "Apache-2.0" ]
1
2020-03-25T05:53:15.000Z
2020-03-25T05:53:15.000Z
gentun/algorithms.py
ahmadmobeen/gentun
c0cbb3eaf458b3e4abeade6b9baf914f461f3727
[ "Apache-2.0" ]
3
2020-03-11T05:53:43.000Z
2020-03-24T10:44:21.000Z
#!/usr/bin/env python """ Genetic algorithm class """ import random import operator import pymongo db_client=pymongo.MongoClient("223.195.37.85",27017) db=db_client["binaryCSA"] exp_col=db["experiments"]
42.928994
156
0.641351
1439fdf7a78ef76ce5defaea7b2ef8c4d002969d
2,867
py
Python
src/frontend/views.py
AllenAnthes/operationcode-pyback
b501a67eb055aff4c5ed11996de4a351f439bed9
[ "MIT" ]
21
2018-10-01T19:05:44.000Z
2021-01-03T02:49:00.000Z
src/frontend/views.py
AllenAnthes/operationcode-pyback
b501a67eb055aff4c5ed11996de4a351f439bed9
[ "MIT" ]
5
2018-09-17T18:14:34.000Z
2019-04-29T17:22:58.000Z
src/frontend/views.py
AllenAnthes/operationcode-pyback
b501a67eb055aff4c5ed11996de4a351f439bed9
[ "MIT" ]
10
2018-10-04T01:34:49.000Z
2021-04-06T14:24:50.000Z
import json import logging from typing import Tuple import requests from django.conf import settings from django.core.files.uploadedfile import InMemoryUploadedFile from django.views.generic import FormView, TemplateView from .forms import CodeSchoolForm logger = logging.getLogger(__name__) def get_logo_and_use...
31.505495
117
0.642832
143afa2a3ac5466b576ac87ae8b831db9911e23c
13,495
py
Python
bitwise/arithmetic/ADD_SUB.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/arithmetic/ADD_SUB.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/arithmetic/ADD_SUB.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
""" The following classes are defined: AdderSubtractor4 AdderSubtractor8 AdderSubtractor16 """ from .. import wire from .. import gate from .. import signal from . import ADD Wire = wire.Wire Bus4 = wire.Bus4 Bus8 = wire.Bus8 Bus16 = wire.Bus16
32.914634
79
0.558133
143b9d9f954626237df01251d000fda5f839d52f
680
py
Python
utils/notification/notification_manager.py
sanjusci/google_sheet_reader
c2b11bdb1eb3e2799cdd22aa4ed67f9c86daea56
[ "MIT" ]
null
null
null
utils/notification/notification_manager.py
sanjusci/google_sheet_reader
c2b11bdb1eb3e2799cdd22aa4ed67f9c86daea56
[ "MIT" ]
3
2021-02-08T20:27:15.000Z
2021-06-01T23:18:51.000Z
utils/notification/notification_manager.py
sanjusci/google_sheet_reader
c2b11bdb1eb3e2799cdd22aa4ed67f9c86daea56
[ "MIT" ]
null
null
null
# Create your service here. __author__ = "Sanju Sci" __email__ = "sanju.sci9@gmail.com" __copyright__ = "Copyright 2019." from utils.commons import safe_invoke __all__ = ["NotificationManager", "Parameters"]
20.606061
71
0.680882
143dbd8a1c5acee5a901ba1feaee07be0801dc4b
5,901
py
Python
tests/unit/test_config.py
zaro0508/lambda-budgets
8eef392edadeae992f91aca0cda8bfb8ecef777e
[ "Apache-2.0" ]
null
null
null
tests/unit/test_config.py
zaro0508/lambda-budgets
8eef392edadeae992f91aca0cda8bfb8ecef777e
[ "Apache-2.0" ]
4
2020-07-28T20:44:35.000Z
2021-08-17T01:22:34.000Z
tests/unit/test_config.py
zaro0508/lambda-budgets
8eef392edadeae992f91aca0cda8bfb8ecef777e
[ "Apache-2.0" ]
2
2020-07-20T18:05:03.000Z
2020-07-31T20:57:59.000Z
from pathlib import Path import json import unittest from unittest.mock import MagicMock, patch from budget.config import Config import yaml
32.070652
81
0.671073
143fbec953156df9d4526de475d51f26bf5b991c
54
py
Python
chap4/4-9.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
1
2022-02-21T07:05:48.000Z
2022-02-21T07:05:48.000Z
chap4/4-9.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
chap4/4-9.py
StewedChickenwithStats/Answers-to-Python-Crash-Course
9ffbe02abba5d111f702d920db7932303daf59d4
[ "MIT" ]
null
null
null
cubes=[value**3 for value in range(1,11)] print(cubes)
27
41
0.722222
14403d9dd0685c366e48890d567b4976cccff5bc
946
py
Python
test/test_composer.py
nccr-itmo/FEDOT.Web
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
[ "BSD-3-Clause" ]
23
2020-12-24T11:05:01.000Z
2022-03-31T20:29:12.000Z
test/test_composer.py
nccr-itmo/FEDOT.Web
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
[ "BSD-3-Clause" ]
42
2021-01-11T09:38:31.000Z
2022-03-25T17:19:05.000Z
test/test_composer.py
nccr-itmo/FEDOT.Web
9b6f7b66de277ea34d6d5ed621b99a3f938db61b
[ "BSD-3-Clause" ]
5
2021-03-31T04:38:31.000Z
2022-03-31T20:29:26.000Z
import random import numpy as np random.seed(1) np.random.seed(1)
26.277778
81
0.625793
144393dffd51c7f70ab1943e4270d90ddd43598c
1,447
py
Python
testClient.py
step305/PiCameraStream_Test
569b5d63052bfb6d60eddc221692a2dcb78b87fa
[ "MIT" ]
1
2020-12-18T09:59:47.000Z
2020-12-18T09:59:47.000Z
testClient.py
step305/PiCameraStream_Test
569b5d63052bfb6d60eddc221692a2dcb78b87fa
[ "MIT" ]
null
null
null
testClient.py
step305/PiCameraStream_Test
569b5d63052bfb6d60eddc221692a2dcb78b87fa
[ "MIT" ]
null
null
null
import cv2 import urllib import numpy as np import multiprocessing as mp stream = 'http://192.168.53.114:8000/streamLow.mjpg' stream2 = 'http://192.168.53.114:8001/streamLow.mjpg' if __name__ == '__main__': st = mp.Event() lowProc = mp.Process(target = procImg, args=(stream, 'Low', st)) HighProc = mp.Proc...
30.787234
86
0.463718
1444b1b92ae47cbc60d016724b5d44bf1122493f
901
py
Python
2012/AU_Danny.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
2012/AU_Danny.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
2012/AU_Danny.py
Valchris/IEEEXtreme_WorkingAsIntended
c3e04633ce6d9c1a1582081767e8f2090adffa28
[ "MIT" ]
null
null
null
import sys import re line = sys.stdin.readline().strip() commands = line.split() if len(commands) > 15: #Too Long print 'ERROR' exit(0) for i in range(0,len(line)): #Missing Spaces if i % 2 == 1 and line[i] != ' ': print 'ERROR' exit(0) for i in range(0,len(commands) - 2,2): #Repeated S...
21.97561
115
0.619312
144698a559c916923c258db6ccf04e14398014a5
1,293
py
Python
pupil/profiler.py
nigamapurv/Minkowski_planview
1c887bf0c54b9bdd632b9249cac71b275be8b2c2
[ "MIT" ]
1
2019-12-12T07:16:05.000Z
2019-12-12T07:16:05.000Z
pupil/profiler.py
nigamapurv/Minkowski_planview
1c887bf0c54b9bdd632b9249cac71b275be8b2c2
[ "MIT" ]
null
null
null
pupil/profiler.py
nigamapurv/Minkowski_planview
1c887bf0c54b9bdd632b9249cac71b275be8b2c2
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cProfile import io import pstats cache = {} PROFILE_SWITCH = True def get_profiler(): if "profiler" not in cache: if PROFILE_SWITCH: cache["profiler"] = Profiler() else...
23.509091
105
0.648879
1446e34643a51f72b5218098028b06210bd3c768
1,898
py
Python
tests/contrib/aiohttp/conftest.py
discord/dd-trace-py
3f6bca078e751bf7459fd02b7aff7f96eff0eeb6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/aiohttp/conftest.py
discord/dd-trace-py
3f6bca078e751bf7459fd02b7aff7f96eff0eeb6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/aiohttp/conftest.py
discord/dd-trace-py
3f6bca078e751bf7459fd02b7aff7f96eff0eeb6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import aiohttp import aiohttp_jinja2 import pytest from ddtrace.contrib.aiohttp.middlewares import trace_app from ddtrace.contrib.aiohttp_jinja2.patch import patch as patch_jinja2 from ddtrace.internal.utils import version from ddtrace.pin import Pin from .app.web import setup_app if version.parse_version(aiohttp._...
26
70
0.643309
1446f15e2cee0b0f3b21fb8bde4f8852bd30e37b
1,074
py
Python
douban.movie_requests.py
willcod/requests_example
572826c4d7081f21e99e4661b273e8ad0e67e046
[ "MIT" ]
null
null
null
douban.movie_requests.py
willcod/requests_example
572826c4d7081f21e99e4661b273e8ad0e67e046
[ "MIT" ]
null
null
null
douban.movie_requests.py
willcod/requests_example
572826c4d7081f21e99e4661b273e8ad0e67e046
[ "MIT" ]
null
null
null
import requests, json from bs4 import BeautifulSoup hds=[{'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'},\ {'User-Agent':'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11'},\ {'User-Agent': 'Mozilla/5.0 (compa...
51.142857
138
0.68622
14471fb559051a475c6f693ab9f75659647a5b99
1,323
py
Python
app/serialmonitor/forms.py
fretchen/ArduinoMagnetometerWeb
1d8bee848e488b7136dbae20172bd8785931dee0
[ "MIT" ]
null
null
null
app/serialmonitor/forms.py
fretchen/ArduinoMagnetometerWeb
1d8bee848e488b7136dbae20172bd8785931dee0
[ "MIT" ]
null
null
null
app/serialmonitor/forms.py
fretchen/ArduinoMagnetometerWeb
1d8bee848e488b7136dbae20172bd8785931dee0
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, HiddenField,IntegerField from wtforms.validators import DataRequired, NumberRange
34.815789
107
0.699169
14479cf21718a5d4475f47cd6e178f58e9dd330a
421
py
Python
degvabank/degvabank/apps/user/signals.py
Vixx-X/DEGVABanck-backend
de413d55b55dba25e89b7f3bc60dfa94e89ddcde
[ "MIT" ]
null
null
null
degvabank/degvabank/apps/user/signals.py
Vixx-X/DEGVABanck-backend
de413d55b55dba25e89b7f3bc60dfa94e89ddcde
[ "MIT" ]
null
null
null
degvabank/degvabank/apps/user/signals.py
Vixx-X/DEGVABanck-backend
de413d55b55dba25e89b7f3bc60dfa94e89ddcde
[ "MIT" ]
1
2022-02-03T03:18:43.000Z
2022-02-03T03:18:43.000Z
from django.db.models.signals import post_save from django.dispatch import receiver from .models import User, EmailDevice
35.083333
113
0.760095
144ab5fd23d14f2a4b0d04f079ebb18f914db56c
2,969
py
Python
casperlabs_client/commands/transfer_cmd.py
CasperLabs/client-py
12955d2b88bc439f94a1cc33a063fda0c20ef8ab
[ "Apache-2.0" ]
2
2021-05-12T06:43:45.000Z
2021-10-02T11:45:41.000Z
casperlabs_client/commands/transfer_cmd.py
CasperLabs/client-py
12955d2b88bc439f94a1cc33a063fda0c20ef8ab
[ "Apache-2.0" ]
24
2020-06-30T14:55:20.000Z
2021-01-05T18:18:29.000Z
casperlabs_client/commands/transfer_cmd.py
CasperLabs/client-py
12955d2b88bc439f94a1cc33a063fda0c20ef8ab
[ "Apache-2.0" ]
1
2020-06-22T15:32:38.000Z
2020-06-22T15:32:38.000Z
# -*- coding: utf-8 -*- from casperlabs_client import CasperLabsClient, consts, reformat from casperlabs_client.commands.common_options import ( FROM_OPTION, CHAINNAME_OPTION, DEPENDENCIES_OPTION, TTL_MILLIS_OPTION, private_key_option, WAIT_PROCESSED_OPTION, TIMEOUT_SECONDS_OPTION, ALGOR...
30.927083
107
0.629168
144aea4f0502bed2772fcf751e46d1dcc9492dd4
203
py
Python
Chapter 03/Chap03_Example3.10.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.10.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 03/Chap03_Example3.10.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
for num in range(1,6): #code inside for loop if num == 4: continue #code inside for loop print(num) #code outside for loop print("continue statement executed on num = 4")
22.555556
48
0.615764
144d32396683ecc3b3bc88e006d8084a2755425a
50,657
py
Python
src/inv/views.py
Nikhilgupta18/practice-react_django
4226345a10c528308d13629907952e841621badc
[ "MIT" ]
null
null
null
src/inv/views.py
Nikhilgupta18/practice-react_django
4226345a10c528308d13629907952e841621badc
[ "MIT" ]
11
2020-09-07T15:48:40.000Z
2022-03-08T23:06:16.000Z
src/inv/views.py
Nikhilgupta18/practice-react_django
4226345a10c528308d13629907952e841621badc
[ "MIT" ]
null
null
null
from django.views import View from django.shortcuts import render from services.models import Service, ServiceUser, MaterialUser from account.models import ContactUs from inv.settings import enable_otp from account.tasks import send_email from django.shortcuts import render, redirect from django.contrib import messages...
48.708654
218
0.573346
144e75f0af24909b2f53fb50c3580fc3294a54f6
2,171
py
Python
S4/S4 Library/simulation/situations/visiting/stay_the_night_situation.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/situations/visiting/stay_the_night_situation.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/situations/visiting/stay_the_night_situation.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from role.role_state import RoleState from situations.situation_complex import SituationState, SituationStateData from situations.situation_job import SituationJob from situations.visiting.visiting_situation_common import VisitingNPCSituation import services import sims4.tuning.instances import sims4.tuning.tunable imp...
48.244444
558
0.739291
144f7ff3eea9576a04434ab76782143398b49093
4,588
py
Python
starter_code/student_utils.py
Harshit4199/Patient-Selection-for-Diabetes-Drug-Testing
c6b7fbae0fe7737185543e958bc3b4c596c0f422
[ "MIT" ]
1
2021-07-25T17:41:07.000Z
2021-07-25T17:41:07.000Z
starter_code/student_utils.py
Harshit4199/Patient-Selection-for-Diabetes-Drug-Testing
c6b7fbae0fe7737185543e958bc3b4c596c0f422
[ "MIT" ]
null
null
null
starter_code/student_utils.py
Harshit4199/Patient-Selection-for-Diabetes-Drug-Testing
c6b7fbae0fe7737185543e958bc3b4c596c0f422
[ "MIT" ]
2
2020-10-04T23:01:40.000Z
2020-12-21T18:53:41.000Z
import pandas as pd import numpy as np import os import tensorflow as tf ####### STUDENTS FILL THIS OUT ###### #Question 3 def reduce_dimension_ndc(df, ndc_df): ''' df: pandas dataframe, input dataset ndc_df: pandas dataframe, drug code dataset used for mapping in generic names return: df: pand...
37
154
0.71469
144fcd8882ebd8111a949df2336133b82d27c08c
982
py
Python
_resume/build.py
edublancas/edublancas.github.io
55990126d2c9530f7317b9c75395b836c5fc5420
[ "MIT", "BSD-3-Clause" ]
null
null
null
_resume/build.py
edublancas/edublancas.github.io
55990126d2c9530f7317b9c75395b836c5fc5420
[ "MIT", "BSD-3-Clause" ]
null
null
null
_resume/build.py
edublancas/edublancas.github.io
55990126d2c9530f7317b9c75395b836c5fc5420
[ "MIT", "BSD-3-Clause" ]
1
2019-01-02T22:21:02.000Z
2019-01-02T22:21:02.000Z
""" Build resume and cv from resume.md and cv.md """ import subprocess import os.path from jinja2 import Environment, FileSystemLoader from datetime import date path = os.path.dirname(os.path.abspath(__file__)) env = Environment(loader=FileSystemLoader(path)) git_hash = get_commit_hash() now = '{}. {}'.format(date....
28.057143
76
0.706721
145310a82264d9765ef6047c0373076d3bb1a072
511
py
Python
setup.py
SUNET/aws-sns-message-validator
2d613485ba7324e1f05b9327fa0fc327c25147ad
[ "MIT" ]
null
null
null
setup.py
SUNET/aws-sns-message-validator
2d613485ba7324e1f05b9327fa0fc327c25147ad
[ "MIT" ]
null
null
null
setup.py
SUNET/aws-sns-message-validator
2d613485ba7324e1f05b9327fa0fc327c25147ad
[ "MIT" ]
null
null
null
from datetime import datetime from setuptools import setup, find_packages DEPENDENCIES = [ 'requests', 'cryptography', ] EXCLUDED_PACKAGES = [ 'flask_example.py', ] setup( name='sns-message-validator', version='0.0.2+sunet', description='Validator for SNS messages.', author='https://githu...
22.217391
56
0.702544
14541e0b1100f11493c9ef593f0ac473ab731bfc
907
py
Python
Util/nucleus_lib.py
cao13jf/CShaper
8fdbd40cb67bab9bfc657c5be652fc3d05f9cd00
[ "MIT" ]
3
2021-02-19T07:21:20.000Z
2021-09-11T10:04:58.000Z
Util/nucleus_lib.py
cao13jf/CShaper
8fdbd40cb67bab9bfc657c5be652fc3d05f9cd00
[ "MIT" ]
2
2020-11-13T18:56:49.000Z
2020-12-18T08:01:57.000Z
Util/nucleus_lib.py
cao13jf/CShaper
8fdbd40cb67bab9bfc657c5be652fc3d05f9cd00
[ "MIT" ]
3
2020-12-10T03:12:30.000Z
2021-06-01T15:07:07.000Z
''' This library is used to incorporate ''' import numpy as np def cell_prob_with_nucleus(cell, nucleus): ''' This function is used to figure out whether one region is cell or empty hole (without nucleus) :param cell: segmentations results with different labels :param nucleus: nucleus RawMemb image (...
31.275862
121
0.670342
14544423bd130c73df8f39e8904810b8c2efbccd
5,677
py
Python
api/src/wt/provider/db/models/statistics.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
api/src/wt/provider/db/models/statistics.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
api/src/wt/provider/db/models/statistics.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
from collections import namedtuple from typing import List from decimal import Decimal from sqlalchemy import select, func from wt.common import Money, Currency from wt.costs.expenditures import ExpenditureStatus from wt.ids import EntityId, EntityType from wt.provider.db import DbModel from wt.provider.db.tables imp...
33.591716
94
0.578651
14554f3f2e1820159b31b772eade8453bd740328
6,232
py
Python
cp_mri/masks.py
vladpopovici/CP_mri
a198a3f65737be26611713c1d64125de888cc25d
[ "MIT" ]
null
null
null
cp_mri/masks.py
vladpopovici/CP_mri
a198a3f65737be26611713c1d64125de888cc25d
[ "MIT" ]
null
null
null
cp_mri/masks.py
vladpopovici/CP_mri
a198a3f65737be26611713c1d64125de888cc25d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # -------------------------------------------------------------------- # Copyright (c) 2022 Vlad Popovici <popovici@bioxlab.org> # # Licensed under the MIT License. See LICENSE file in root folder. # -------------------------------------------------------------------- # MASKS are single...
41.825503
99
0.56595
14557dc9517de3207abf36fd3533f0849a533784
25,259
py
Python
src/gam/gapi/reports.py
GAM-team/GAM
b45ad5dcafc217690afc3c2e7086c1895f036172
[ "Apache-2.0" ]
102
2022-01-15T22:08:37.000Z
2022-03-31T16:02:20.000Z
src/gam/gapi/reports.py
GAM-team/GAM
b45ad5dcafc217690afc3c2e7086c1895f036172
[ "Apache-2.0" ]
29
2022-01-14T20:16:51.000Z
2022-03-25T15:56:33.000Z
src/gam/gapi/reports.py
GAM-team/GAM
b45ad5dcafc217690afc3c2e7086c1895f036172
[ "Apache-2.0" ]
30
2022-01-14T22:18:10.000Z
2022-03-31T17:31:40.000Z
import calendar import datetime import re import sys from dateutil.relativedelta import relativedelta import gam from gam.var import * from gam import controlflow from gam import display from gam import gapi from gam import utils from gam.gapi.directory import orgunits as gapi_directory_orgunits REPORT_CHOICE_MAP ...
42.811864
110
0.458926
1456065316091e9651e32d09311e3ffec143cd48
28
py
Python
advanced/part13-17_asteroids/src/main.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
advanced/part13-17_asteroids/src/main.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
advanced/part13-17_asteroids/src/main.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
# WRITE YOUR SOLUTION HERE:
14
27
0.75
14560849915561883889885a3454e4e8c7afc839
286
py
Python
example.py
davehenton/tf-lyrics
6c2a397df22acdf41a63012aacfcdc7b7eaf1302
[ "MIT" ]
null
null
null
example.py
davehenton/tf-lyrics
6c2a397df22acdf41a63012aacfcdc7b7eaf1302
[ "MIT" ]
null
null
null
example.py
davehenton/tf-lyrics
6c2a397df22acdf41a63012aacfcdc7b7eaf1302
[ "MIT" ]
null
null
null
from tflyrics import Poet, LyricsGenerator artists = ['Bob Dylan', 'Tim Buckley', 'The Beatles'] gen = LyricsGenerator(artists, per_artist=5) ds = gen.as_dataset(batch_size=4) p = Poet() p.train_on(ds, n_epochs=10) poem = p.generate(start_string='Hey ', n_gen_chars=1000) print(poem)
26
56
0.741259
1456fcb0edd89c366e30cb0c8a0ffaa3820a7828
762
py
Python
netvisor/schemas/companies/list.py
fastmonkeys/netvisor.py
1555e06439d69dc7515ebe0ce3dc061c609bc1a1
[ "MIT" ]
3
2015-08-26T10:08:03.000Z
2022-03-16T09:31:52.000Z
netvisor/schemas/companies/list.py
fastmonkeys/netvisor.py
1555e06439d69dc7515ebe0ce3dc061c609bc1a1
[ "MIT" ]
6
2015-09-10T08:32:21.000Z
2016-09-19T14:32:07.000Z
netvisor/schemas/companies/list.py
fastmonkeys/netvisor.py
1555e06439d69dc7515ebe0ce3dc061c609bc1a1
[ "MIT" ]
7
2015-09-10T08:23:04.000Z
2019-08-28T17:39:08.000Z
# -*- coding: utf-8 -*- """ netvisor.schemas.companies.list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2013-2016 by Fast Monkeys Oy. :license: MIT, see LICENSE for more details. """ from marshmallow import Schema, fields, post_load from ..fields import Boolean, List
25.4
68
0.654856
1457ef0dea7deba4f2c8c70b3f33da68626af688
608
py
Python
merge_delim.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
merge_delim.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
1
2020-09-17T11:14:13.000Z
2020-09-17T11:14:13.000Z
merge_delim.py
brendane/miscellaneous_bioinfo_scripts
91ca3282823495299e4c68aa79bdc1c0225a6d7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import sys infiles = sys.argv[1:] data = [] genes = [] for i, fname in enumerate(infiles): sys.stderr.write(fname + '\n') d = [] with open(fname, 'rb') as ihandle: for j, line in enumerate(ihandle): g, c = line.strip().split() if i != 0 and g != gene...
24.32
43
0.509868
1458c5f022bcbdb49cfdd4c7518d98dccf9754e4
1,372
py
Python
provider/facebook.py
marinewater/pyramid-social-auth
926f230294ec6b0fdf02a5ed4113073d82a9d18c
[ "MIT" ]
2
2015-02-10T01:19:21.000Z
2016-07-24T14:40:59.000Z
provider/facebook.py
marinewater/pyramid-social-auth
926f230294ec6b0fdf02a5ed4113073d82a9d18c
[ "MIT" ]
null
null
null
provider/facebook.py
marinewater/pyramid-social-auth
926f230294ec6b0fdf02a5ed4113073d82a9d18c
[ "MIT" ]
null
null
null
from provider.base import BaseProvider
28
113
0.569971
1458dc2ffa19f2e218619cc3c1b9af0b90945664
14,757
py
Python
eratosthenes/preprocessing/color_transforms.py
GO-Eratosthenes/start-code
d40192a482a260676db9ec9b3ece6854c0d8ccf7
[ "Apache-2.0" ]
1
2021-11-09T14:45:05.000Z
2021-11-09T14:45:05.000Z
eratosthenes/preprocessing/color_transforms.py
GO-Eratosthenes/start-code
d40192a482a260676db9ec9b3ece6854c0d8ccf7
[ "Apache-2.0" ]
4
2022-02-22T13:42:42.000Z
2022-03-24T22:07:24.000Z
eratosthenes/preprocessing/color_transforms.py
GO-Eratosthenes/start-code
d40192a482a260676db9ec9b3ece6854c0d8ccf7
[ "Apache-2.0" ]
null
null
null
import numpy as np from .image_transforms import mat_to_gray def rgb2hcv(Blue, Green, Red): """transform red green blue arrays to a color space Parameters ---------- Blue : np.array, size=(m,n) Blue band of satellite image Green : np.array, size=(m,n) Green band of satellite image...
27.226937
81
0.515959
14590358be50b254390f5fc7eebb4b6ad228a02e
148
py
Python
Week3/Hospitalisations_ClassificationCase/import.py
PenelopeCorsica/AppliedML2021
1b48fe56553d7e4486e2542cf5d26b5aa6f5b473
[ "BSD-3-Clause" ]
13
2021-04-20T13:13:51.000Z
2022-03-28T18:08:07.000Z
Week3/Hospitalisations_ClassificationCase/import.py
PenelopeCorsica/AppliedML2021
1b48fe56553d7e4486e2542cf5d26b5aa6f5b473
[ "BSD-3-Clause" ]
null
null
null
Week3/Hospitalisations_ClassificationCase/import.py
PenelopeCorsica/AppliedML2021
1b48fe56553d7e4486e2542cf5d26b5aa6f5b473
[ "BSD-3-Clause" ]
8
2021-04-16T11:03:42.000Z
2021-09-29T02:25:15.000Z
import pandas as pd X_train = pd.read_csv("X_train.csv") df_y = pd.read_csv("y_train.csv") y_train = df_y["y"] X_test = pd.read_csv("X_test.csv")
18.5
36
0.702703
145a12e1b7a4ae3dc30b7b7ae78473fce6b23434
1,266
py
Python
redash/handlers/embed.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/embed.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/embed.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
1
2021-07-27T06:27:29.000Z
2021-07-27T06:27:29.000Z
import logging from flask import render_template, request, redirect, session, url_for, flash from flask.ext.restful import abort from flask_login import current_user, login_required from redash import models, settings from redash.wsgi import app from redash.utils import json_dumps
33.315789
89
0.650079
145a2aac257a81ff3e9b25e0317ce229eb2a70b3
15,109
py
Python
test_vs_model_DEMs.py
drewleonard42/CoronaTemps
210642175e063b39dd1878c2731f15bf34e4225f
[ "BSD-2-Clause" ]
1
2019-07-31T17:27:12.000Z
2019-07-31T17:27:12.000Z
test_vs_model_DEMs.py
SolarDrew/CoronaTemps
210642175e063b39dd1878c2731f15bf34e4225f
[ "BSD-2-Clause" ]
null
null
null
test_vs_model_DEMs.py
SolarDrew/CoronaTemps
210642175e063b39dd1878c2731f15bf34e4225f
[ "BSD-2-Clause" ]
2
2015-07-07T10:31:03.000Z
2015-10-19T15:42:47.000Z
# -*- coding: utf-8 -*- """ Script to produce synthetic AIA data based on arbitrary model DEMs and test the results of the tempmap code against the model. Created on Mon Jul 28 16:34:28 2014 @author: Drew Leonard """ import numpy as np from matplotlib import use, rc use('agg') rc('savefig', bbox='tight', pad_inches=...
41.057065
110
0.613608
145acd330fc58583c49d623ffb6e709da478a671
315
py
Python
tests/test_set_up_logger.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
null
null
null
tests/test_set_up_logger.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
1
2019-12-12T09:20:00.000Z
2019-12-12T09:20:00.000Z
tests/test_set_up_logger.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
1
2021-07-22T14:16:47.000Z
2021-07-22T14:16:47.000Z
from unittest import TestCase import os
22.5
50
0.688889
145d2ba73cbb15562b18fa340ca1117a5d2135a1
2,459
py
Python
rubicon_reminders_cli.py
ZG34/StratNotes
ec8e0f50740a558d14b5f790aa67b26dc3a85d90
[ "MIT" ]
6
2022-01-21T07:16:12.000Z
2022-01-23T22:01:16.000Z
rubicon_reminders_cli.py
ZG34/StratNotes
ec8e0f50740a558d14b5f790aa67b26dc3a85d90
[ "MIT" ]
null
null
null
rubicon_reminders_cli.py
ZG34/StratNotes
ec8e0f50740a558d14b5f790aa67b26dc3a85d90
[ "MIT" ]
4
2022-01-21T07:17:03.000Z
2022-01-23T03:37:12.000Z
# the comments in this file were made while learning, as reminders # to RUN APP IN CMD PROMPT: cd to this directory, or place in default CMD directory: # then run 'python rubicon_reminders_cli.py' from os import listdir from datetime import datetime # this assigns dt variable as date + timestamp dt = (datetime.now()...
34.633803
101
0.581537
145d3ea9060b7295f0b7e5b21153fbe39e93cf1f
12,213
py
Python
tradingdb/relationaldb/tests/utils.py
gnosis/gnosisdb
b3055406fba7061c3677bfd16e19f8bc5c97db2c
[ "MIT" ]
11
2017-06-23T15:35:10.000Z
2018-04-27T06:11:25.000Z
tradingdb/relationaldb/tests/utils.py
gnosis/gnosisdb
b3055406fba7061c3677bfd16e19f8bc5c97db2c
[ "MIT" ]
42
2018-01-17T15:46:33.000Z
2018-05-08T08:13:17.000Z
tradingdb/relationaldb/tests/utils.py
gnosis/gnosisdb
b3055406fba7061c3677bfd16e19f8bc5c97db2c
[ "MIT" ]
12
2017-07-03T15:51:41.000Z
2018-03-25T17:31:54.000Z
tournament_token_bytecode = "0x608060405233600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611776806100546000396000f3006080604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806302d05d3f1...
6,106.5
12,212
0.999509
145d4d73e5688c8c92783fdd2c96db07fb334f0c
352
py
Python
script/generate_user.py
MTDzi/data_nanodegree_project_5
a436b34d4a1aa030357d1db82d1e1a7439061c1a
[ "Apache-2.0" ]
null
null
null
script/generate_user.py
MTDzi/data_nanodegree_project_5
a436b34d4a1aa030357d1db82d1e1a7439061c1a
[ "Apache-2.0" ]
6
2020-04-19T10:18:05.000Z
2020-04-28T16:26:07.000Z
script/generate_user.py
MTDzi/data_nanodegree_project_5
a436b34d4a1aa030357d1db82d1e1a7439061c1a
[ "Apache-2.0" ]
null
null
null
import os from airflow import models, settings from airflow.contrib.auth.backends.password_auth import PasswordUser user = PasswordUser(models.User()) user.username = os.environ['AIRFLOW_UI_USER'] user.password = os.environ['AIRFLOW_UI_PASSWORD'] user.superuser = True session = settings.Session() session.add(user) s...
23.466667
68
0.795455
145ef1cdc80727bde5f62588059dc90f98d8c984
535
py
Python
src/generic.py
jfecroft/Hamilton
35ade5fc07a330e6a05e1ea391a16b8874737eb5
[ "MIT" ]
null
null
null
src/generic.py
jfecroft/Hamilton
35ade5fc07a330e6a05e1ea391a16b8874737eb5
[ "MIT" ]
null
null
null
src/generic.py
jfecroft/Hamilton
35ade5fc07a330e6a05e1ea391a16b8874737eb5
[ "MIT" ]
null
null
null
""" generic functions """ from yaml import load def reduce_output(func, item, *args, **kwargs): """ simple function to reduce output from existing functions if func returns an iterable - just return item """ return inner_func def load_yaml(filen): """ load a yaml file and return the json ...
21.4
60
0.642991
145f50f90a8086649d041c871071f93bec34f696
334
py
Python
app/app.py
raevilman/aws_lambda_python_skeleton
aebd3a4f80bc1149662c8a0b1af5df40d28eff01
[ "MIT" ]
3
2020-10-19T11:31:10.000Z
2021-02-19T12:14:26.000Z
app/app.py
raevilman/aws_lambda_python_skeleton
aebd3a4f80bc1149662c8a0b1af5df40d28eff01
[ "MIT" ]
null
null
null
app/app.py
raevilman/aws_lambda_python_skeleton
aebd3a4f80bc1149662c8a0b1af5df40d28eff01
[ "MIT" ]
1
2021-01-21T10:29:10.000Z
2021-01-21T10:29:10.000Z
import json from app.event import Event from app.responder import send_ok_response from app.utils import get_logger # Setup logging logger = get_logger("app")
19.647059
42
0.715569
146025215903f4a31f6eb67eb9638cd290edeaac
592
py
Python
blender/arm/logicnode/transform/LN_set_object_location.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_set_object_location.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_set_object_location.py
Lykdraft/armory
da1cf33930ce9a8b1865d35c128fe4842bef2933
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * add_node(SetLocationNode, category=PKG_AS_CATEGORY, section='location')
34.823529
71
0.706081
14602718b6991bccc17ff0fb8c058bc954f6e408
32,756
py
Python
lichess/client.py
qe/lichess
4d6aaeeeae57df863663565b652b7d3533a538ac
[ "MIT" ]
null
null
null
lichess/client.py
qe/lichess
4d6aaeeeae57df863663565b652b7d3533a538ac
[ "MIT" ]
null
null
null
lichess/client.py
qe/lichess
4d6aaeeeae57df863663565b652b7d3533a538ac
[ "MIT" ]
null
null
null
from .enums import * from .utils import * from .exceptions import * import logging import requests import urllib logger = logging.getLogger(__name__) VALID_PERF_TYPES = [_.value for _ in PerfType]
38.177156
281
0.590396
1461a4d69bcc5d469dfc60c076132f4feb9b241d
2,273
py
Python
src/mcedit2/widgets/infopanel.py
elcarrion06/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
673
2015-01-02T02:08:13.000Z
2022-03-24T19:38:14.000Z
src/mcedit2/widgets/infopanel.py
ozzhates/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
526
2015-01-01T02:10:53.000Z
2022-02-06T16:24:21.000Z
src/mcedit2/widgets/infopanel.py
ozzhates/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
231
2015-01-01T16:47:30.000Z
2022-03-31T21:51:55.000Z
""" ${NAME} """ from __future__ import absolute_import, division, print_function, unicode_literals import logging import time import weakref from PySide import QtGui from mcedit2.widgets.layout import Column log = logging.getLogger(__name__)
32.014085
104
0.601848
146252a9963181e60bb9b862f53e83071c1987b1
2,925
py
Python
venv/lib/python3.7/site-packages/MDAnalysis/selections/__init__.py
dtklinh/GBRDE
c87fada492f24943d7d6b6ecda61c67f41d5bf83
[ "MIT" ]
2
2021-03-04T16:57:06.000Z
2021-08-11T01:42:29.000Z
venv/lib/python3.7/site-packages/MDAnalysis/selections/__init__.py
dtklinh/GBRDE
c87fada492f24943d7d6b6ecda61c67f41d5bf83
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/MDAnalysis/selections/__init__.py
dtklinh/GBRDE
c87fada492f24943d7d6b6ecda61c67f41d5bf83
[ "MIT" ]
null
null
null
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
31.451613
80
0.696752
1466e6f9e9390c64c5ae93f8f73e9d6b213aba54
4,536
py
Python
cs15211/PalindromePermutation.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/PalindromePermutation.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/PalindromePermutation.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/palindrome-permutation/' # https://github.com/kamyu104/LeetCode/blob/master/Python/palindrome-permutation.py # Time: O(n) # Space: O(1) # # Description: Leetcode # 266. Palindrome Permutation # # Given a string, determine if a permutation of the string could form a palindrom...
28.173913
106
0.573633
14686ee7aaaa9630d28bd94df5f95d8bfc28579e
2,398
py
Python
others/edge/face_identification/sphereface20/tflite/postprocess/eval.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
4
2019-07-26T03:00:39.000Z
2021-01-29T16:12:21.000Z
others/edge/face_identification/sphereface20/tflite/postprocess/eval.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
5
2020-09-26T00:53:40.000Z
2022-02-10T01:13:29.000Z
others/edge/face_identification/sphereface20/tflite/postprocess/eval.py
luluseptember/inference
acbc7b0bf288343ed81e62b69dea8afec03d679b
[ "Apache-2.0" ]
7
2019-07-23T14:07:21.000Z
2021-07-05T12:41:08.000Z
""" To calculate the verification accuracy of LFW dataset """ # MIT License # # Copyright (c) 2018 Jimmy Chiang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includi...
38.677419
94
0.741451
146b5de715f79bfd487c02d589bad6ff62c03076
5,032
py
Python
LDAR_Sim/src/ldar_sim_main.py
sinakiaei/LDAR_Sim
299d81d51bd5dd734eb3bf0d8fe671d2b7eebe01
[ "MIT" ]
2
2021-11-08T13:55:45.000Z
2021-11-16T16:46:07.000Z
LDAR_Sim/src/ldar_sim_main.py
sinakiaei/LDAR_Sim
299d81d51bd5dd734eb3bf0d8fe671d2b7eebe01
[ "MIT" ]
4
2021-11-19T20:43:39.000Z
2022-01-20T00:14:39.000Z
LDAR_Sim/src/ldar_sim_main.py
sinakiaei/LDAR_Sim
299d81d51bd5dd734eb3bf0d8fe671d2b7eebe01
[ "MIT" ]
2
2021-11-18T17:10:10.000Z
2022-01-14T21:39:06.000Z
# ------------------------------------------------------------------------------ # Program: The LDAR Simulator (LDAR-Sim) # File: LDAR-Sim main # Purpose: Interface for parameterizing and running LDAR-Sim. # # Copyright (C) 2018-2021 Intelligent Methane Monitoring and Management System (IM3S) Group # # ...
39.3125
98
0.69217
146b6b043636c6d237f0ca4b07fe4ebbf0597b33
3,037
py
Python
results/try_different_variance_maps.py
osagha/turktools
389c1243e837e946080b28a5ca83faf62890f4b4
[ "Unlicense", "MIT" ]
null
null
null
results/try_different_variance_maps.py
osagha/turktools
389c1243e837e946080b28a5ca83faf62890f4b4
[ "Unlicense", "MIT" ]
null
null
null
results/try_different_variance_maps.py
osagha/turktools
389c1243e837e946080b28a5ca83faf62890f4b4
[ "Unlicense", "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np from sympy import Symbol, solve from sympy.abc import a, b, c from fit_beta import fit_beta_mean_uncertainty, kl_dirichlet RESULTS_FILE = "../results/results_beta_exp.csv" FILTER_BY = "range" results = pd.read_csv(RESULTS_FILE...
39.960526
156
0.641093
146b9782c6137a18b395c75b1a9f1454ebb38ab8
5,977
py
Python
conf_testing/lib/HABAppTests/test_base.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
null
null
null
conf_testing/lib/HABAppTests/test_base.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
null
null
null
conf_testing/lib/HABAppTests/test_base.py
pailloM/HABApp
3e0defd99ede9b91c164cb9d1ee011fd74e801c3
[ "Apache-2.0" ]
null
null
null
import logging import threading import typing import HABApp from HABApp.core.events.habapp_events import HABAppException from ._rest_patcher import RestPatcher log = logging.getLogger('HABApp.Tests') LOCK = threading.Lock() RULE_CTR = 0 TESTS_RULES: typing.Dict[int, 'TestBaseRule'] = {}
30.340102
110
0.574536
146cd6968f58dcd6a930000bd6f24a70be3c40a2
1,948
py
Python
dags/connect_to_oracle_and_sql.py
whatwouldaristotledo/docker-airflow
2c6f6179170d87e2046bd844480bfddc6309b1de
[ "Apache-2.0" ]
null
null
null
dags/connect_to_oracle_and_sql.py
whatwouldaristotledo/docker-airflow
2c6f6179170d87e2046bd844480bfddc6309b1de
[ "Apache-2.0" ]
null
null
null
dags/connect_to_oracle_and_sql.py
whatwouldaristotledo/docker-airflow
2c6f6179170d87e2046bd844480bfddc6309b1de
[ "Apache-2.0" ]
null
null
null
from airflow.models import DAG from airflow.utils.dates import days_ago from airflow.operators.python_operator import PythonOperator from datetime import datetime import pandas as pd import urllib import random import cx_Oracle import pyodbc import sqlalchemy args={ 'owner': 'BI', ### start date is used to for t...
36.754717
153
0.747433
146ce26ee142df10da663c661efd59cf5bef1b60
10,674
py
Python
tests/test_packages/test_skills/test_tac_negotiation/test_helpers.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
tests/test_packages/test_skills/test_tac_negotiation/test_helpers.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
tests/test_packages/test_skills/test_tac_negotiation/test_helpers.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
37.985765
92
0.570639
146de2700d3f564e16e6e3c269777835f59d7552
5,930
py
Python
go/vumitools/metrics_worker.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/vumitools/metrics_worker.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/vumitools/metrics_worker.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
# -*- test-case-name: go.vumitools.tests.test_metrics_worker -*- from twisted.internet.defer import inlineCallbacks, returnValue from twisted.internet.task import LoopingCall from vumi import log from vumi.worker import BaseWorker from vumi.config import ConfigInt, ConfigError from vumi.persist.model import Manager ...
38.258065
79
0.685835
146f9bd7318af3cc0fd1815d1722bd7ff1cb6d1d
6,434
py
Python
rastervision/new_version/learner/classification_learner.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2019-11-07T10:02:23.000Z
2019-11-07T10:02:23.000Z
rastervision/new_version/learner/classification_learner.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
rastervision/new_version/learner/classification_learner.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
import warnings warnings.filterwarnings('ignore') # noqa from os.path import join, isfile, isdir import zipfile import torch from torchvision import models import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader, Subset, ConcatDataset from torchvision.transforms import (Compose, ...
37.190751
84
0.546316
146fb23c6714dde0702a9be7da3d2cf6a252772c
1,558
py
Python
scraping/get-list-2/scrapes/scrapes/spiders/amazon_listspider.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
scraping/get-list-2/scrapes/scrapes/spiders/amazon_listspider.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
scraping/get-list-2/scrapes/scrapes/spiders/amazon_listspider.py
hvarS/AmazonPrivacy
d3c975e428d8ac80dbe4b4e7a2e33082eec89524
[ "MIT" ]
null
null
null
import scrapy import pandas as pd import time import random import string import os
30.54902
94
0.530167
147035cef75b4248a1685bdc47735841a296c61d
2,407
py
Python
data_pipeline/db/file_query_results.py
iagcl/data_pipeline
b9b965d43a4261357e417f4eeee5d8b7d2dfd858
[ "Apache-2.0" ]
16
2017-10-31T21:43:26.000Z
2019-08-11T08:49:06.000Z
data_pipeline/db/file_query_results.py
iagcl/data_pipeline
b9b965d43a4261357e417f4eeee5d8b7d2dfd858
[ "Apache-2.0" ]
1
2017-11-01T06:25:56.000Z
2017-11-01T06:25:56.000Z
data_pipeline/db/file_query_results.py
iagcl/data_pipeline
b9b965d43a4261357e417f4eeee5d8b7d2dfd858
[ "Apache-2.0" ]
9
2017-10-30T05:23:15.000Z
2022-02-17T03:53:09.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.671053
79
0.636061