hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
dcab710d8c17a8ebb18ddd1d9ad4bb2976191f86
61
py
Python
vis/__init__.py
DoubleTwelve/lamarepy
548e6d6514183ab8ceafd1a42097210350a74985
[ "BSD-3-Clause" ]
null
null
null
vis/__init__.py
DoubleTwelve/lamarepy
548e6d6514183ab8ceafd1a42097210350a74985
[ "BSD-3-Clause" ]
null
null
null
vis/__init__.py
DoubleTwelve/lamarepy
548e6d6514183ab8ceafd1a42097210350a74985
[ "BSD-3-Clause" ]
null
null
null
from lamarepy import geometry as g from show_q import show_q
20.333333
34
0.836066
0423991f614dbc92e8de0c9d23e2bce7822454ee
1,147
py
Python
sdk/python/kfp/components/executor_main.py
TheDutchDevil/pipelines
a5ba3f0fcd98ffd60f98bce964927ab63382d5d7
[ "Apache-2.0" ]
1
2020-12-20T11:26:00.000Z
2020-12-20T11:26:00.000Z
sdk/python/kfp/components/executor_main.py
TheDutchDevil/pipelines
a5ba3f0fcd98ffd60f98bce964927ab63382d5d7
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/components/executor_main.py
TheDutchDevil/pipelines
a5ba3f0fcd98ffd60f98bce964927ab63382d5d7
[ "Apache-2.0" ]
1
2022-01-11T17:02:22.000Z
2022-01-11T17:02:22.000Z
# Copyright 2021 Google LLC # # 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, ...
34.757576
74
0.760244
ff2045ae64e8037c741c01140738e4bb6bc6924b
7,335
py
Python
ckanext/datastore/view.py
sabinem/ckan
dfad5d98a644a76939a57872073ef27dc7c68d86
[ "Apache-2.0" ]
1
2020-07-09T02:10:18.000Z
2020-07-09T02:10:18.000Z
ckanext/datastore/view.py
sabinem/ckan
dfad5d98a644a76939a57872073ef27dc7c68d86
[ "Apache-2.0" ]
3
2020-03-24T17:56:04.000Z
2021-02-02T22:16:31.000Z
ckanext/datastore/view.py
sabinem/ckan
dfad5d98a644a76939a57872073ef27dc7c68d86
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 from itertools import izip_longest from flask import Blueprint, make_response from flask.views import MethodView import ckan.lib.navl.dictization_functions as dict_fns from ckan.logic import ( tuplize_dict, parse_params, ) from ckan.plugins.toolkit import ( ObjectNotFound, NotAuthorized...
31.080508
79
0.57396
8c33846566502fb907c05b2a4a21a923d929cbe8
5,170
py
Python
sdk/AsposeEmailCloudSdk/models/contact_save_request.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
1
2020-02-26T13:19:06.000Z
2020-02-26T13:19:06.000Z
sdk/AsposeEmailCloudSdk/models/contact_save_request.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
null
null
null
sdk/AsposeEmailCloudSdk/models/contact_save_request.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="ContactSaveRequest.py"> # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person ob...
35.170068
111
0.602708
25d534bc2b05ef04837c44040413711e57f4be9c
129,380
py
Python
kivy/uix/textinput.py
outdooracorn/kivy
a55ad400a52e038f110df10d8f3c1e822b90f76c
[ "MIT" ]
null
null
null
kivy/uix/textinput.py
outdooracorn/kivy
a55ad400a52e038f110df10d8f3c1e822b90f76c
[ "MIT" ]
1
2021-09-01T22:57:26.000Z
2021-09-01T22:57:26.000Z
kivy/uix/textinput.py
outdooracorn/kivy
a55ad400a52e038f110df10d8f3c1e822b90f76c
[ "MIT" ]
null
null
null
''' Text Input ========== .. versionadded:: 1.0.4 .. image:: images/textinput-mono.jpg .. image:: images/textinput-multi.jpg The :class:`TextInput` widget provides a box for editable plain text. Unicode, multiline, cursor navigation, selection and clipboard features are supported. The :class:`TextInput` uses two d...
34.047368
89
0.579927
884ec6b3cf25d0d478fd34d4bc12c55ed0c331f2
4,013
py
Python
ceilometer/plugin.py
dreamhost/ceilometer
f9fda50f0bf09ab7bd55df0a17b2ec8e31ef3b71
[ "Apache-2.0" ]
1
2021-11-22T11:00:53.000Z
2021-11-22T11:00:53.000Z
ceilometer/plugin.py
dreamhost/ceilometer
f9fda50f0bf09ab7bd55df0a17b2ec8e31ef3b71
[ "Apache-2.0" ]
null
null
null
ceilometer/plugin.py
dreamhost/ceilometer
f9fda50f0bf09ab7bd55df0a17b2ec8e31ef3b71
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2012 New Dream Network, LLC (DreamHost) # # Author: Doug Hellmann <doug.hellmann@dreamhost.com> # # 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 # # ...
30.172932
79
0.668826
26efffc5f6357278704ad4a3cc98a2c4c7b19b3f
21,998
py
Python
iota/components/iota_utils.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
iota/components/iota_utils.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
iota/components/iota_utils.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division, print_function, absolute_import from past.builtins import range ''' Author : Lyubimov, A.Y. Created : 12/19/2016 Last Changed: 11/05/2018 Description : Module with basic utilities of broad applications in IOTA ''' import os import sys from collections import Counter import wx...
32.067055
91
0.63533
001e4ec353acf96921d541f21b1ae72cbc2b1dad
12,334
py
Python
tests/volterra/test_tools.py
d-bouvier/pyvi
6b38bfaed75f84f6bf2ef43b11535510ee1c0490
[ "BSD-3-Clause" ]
16
2018-06-24T03:42:56.000Z
2022-03-31T08:31:01.000Z
tests/volterra/test_tools.py
d-bouvier/pyvi
6b38bfaed75f84f6bf2ef43b11535510ee1c0490
[ "BSD-3-Clause" ]
null
null
null
tests/volterra/test_tools.py
d-bouvier/pyvi
6b38bfaed75f84f6bf2ef43b11535510ee1c0490
[ "BSD-3-Clause" ]
3
2019-03-21T01:18:39.000Z
2021-12-02T00:50:20.000Z
# -*- coding: utf-8 -*- """ Test script for pyvi/volterra/tools.py Notes ----- Developed for Python 3.6 @author: Damien Bouvier (Damien.Bouvier@ircam.fr) """ #============================================================================== # Importations #================================================================...
37.26284
79
0.408059
6a324fb8ca9b0dd21e5f7d194541b6de8df01c66
2,928
py
Python
src/contrib/remove_disabled_photos.py
memento42429/metashape-scripts
6537719eb0fd52f649d410eb7e7fe8b6b6028302
[ "MIT" ]
40
2017-10-17T16:18:21.000Z
2018-12-28T02:37:35.000Z
src/contrib/remove_disabled_photos.py
memento42429/metashape-scripts
6537719eb0fd52f649d410eb7e7fe8b6b6028302
[ "MIT" ]
1
2018-07-11T06:41:38.000Z
2018-07-12T18:15:35.000Z
src/contrib/remove_disabled_photos.py
memento42429/metashape-scripts
6537719eb0fd52f649d410eb7e7fe8b6b6028302
[ "MIT" ]
15
2017-11-22T11:16:16.000Z
2018-12-30T13:50:41.000Z
import datetime import shutil import Metashape import os import sys from pathlib import Path """ Script for moving disabled photos, Metashape (v 1.7) Matjaz Mori, CPA, October 2019 The script will create a new subdirectory in the photos directory, move all the photos from the project marked "Disabled" into it and rem...
35.277108
278
0.650273
29acbda764e1edfd5878167a1c23a822c4880b17
3,248
py
Python
mercury_agent/inspector/hwlib/mercury_id.py
jr0d/mercury-agent
12b75ecc951d3ab5cd15c5213df2412b108cf47c
[ "Apache-2.0" ]
null
null
null
mercury_agent/inspector/hwlib/mercury_id.py
jr0d/mercury-agent
12b75ecc951d3ab5cd15c5213df2412b108cf47c
[ "Apache-2.0" ]
4
2017-11-01T16:25:49.000Z
2018-08-22T13:50:23.000Z
mercury_agent/inspector/hwlib/mercury_id.py
jr0d/mercury-agent
12b75ecc951d3ab5cd15c5213df2412b108cf47c
[ "Apache-2.0" ]
5
2017-10-19T12:40:15.000Z
2018-08-21T20:18:54.000Z
"""\ Functions for grabbing a MercuryID MercuryID or mercury_id meta and hash value [meta] - 00 = hash generated by interface mac addresses 01 = hash generated by asset tag and serial number """ import hashlib import logging from mercury.common.exceptions import MercuryIdException LOG = logging.getLogger(...
31.533981
95
0.708436
00f8ccd1aae07cc23ef791fa583fa7fd132bb729
28,654
py
Python
spyder/plugins/outlineexplorer/widgets.py
sharmalabs/spyder
7d2201699b6df6d4e72c73379dca0510f643bef9
[ "MIT" ]
null
null
null
spyder/plugins/outlineexplorer/widgets.py
sharmalabs/spyder
7d2201699b6df6d4e72c73379dca0510f643bef9
[ "MIT" ]
null
null
null
spyder/plugins/outlineexplorer/widgets.py
sharmalabs/spyder
7d2201699b6df6d4e72c73379dca0510f643bef9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Outline explorer widgets.""" # Standard library imports from __future__ import print_function import os.path as osp # Third party imports from qtpy....
41.407514
81
0.567565
073cb02438dcb6a1e809ddd721e3e65f2b7ed3ad
1,204
py
Python
Examples/CommonOptions/AddWatermark.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python-samples-
18e8eb850c3ef392a3ba310d08cc40299f9ffb3c
[ "MIT" ]
null
null
null
Examples/CommonOptions/AddWatermark.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python-samples-
18e8eb850c3ef392a3ba310d08cc40299f9ffb3c
[ "MIT" ]
null
null
null
Examples/CommonOptions/AddWatermark.py
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python-samples-
18e8eb850c3ef392a3ba310d08cc40299f9ffb3c
[ "MIT" ]
1
2019-05-09T13:07:21.000Z
2019-05-09T13:07:21.000Z
# Import modules import groupdocs_conversion_cloud from Common import Common # This example demonstrates how to convert word processing document into pdf document with adding watermark class AddWatermark: @classmethod def Run(cls): # Create necessary API instances apiInstance = groupdocs_conv...
37.625
107
0.695183
5467e243caea3a0613d71dac7fb843feb8bf18e7
395
py
Python
src/blog_main/wsgi.py
SleepNoMore/django_blog_site
d23397e1595c488c424ed7eb46d1f844afd8178e
[ "MIT" ]
null
null
null
src/blog_main/wsgi.py
SleepNoMore/django_blog_site
d23397e1595c488c424ed7eb46d1f844afd8178e
[ "MIT" ]
null
null
null
src/blog_main/wsgi.py
SleepNoMore/django_blog_site
d23397e1595c488c424ed7eb46d1f844afd8178e
[ "MIT" ]
null
null
null
""" WSGI config for blog_main project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
236d64951d3a9cf121b72c6b0093f05371d0d142
18,191
py
Python
second/data/kitti_dataset.py
lpj0822/pointpillars_train
43594b50fcb5124ab449f1596ab2a9713de18051
[ "MIT" ]
1
2020-09-05T09:18:53.000Z
2020-09-05T09:18:53.000Z
second/data/kitti_dataset.py
lpj0822/pointpillars_train
43594b50fcb5124ab449f1596ab2a9713de18051
[ "MIT" ]
1
2021-04-29T07:04:30.000Z
2021-04-29T07:04:30.000Z
second/data/kitti_dataset.py
lpj0822/pointpillars_train
43594b50fcb5124ab449f1596ab2a9713de18051
[ "MIT" ]
1
2020-08-25T09:06:42.000Z
2020-08-25T09:06:42.000Z
from pathlib import Path import pickle import time from functools import partial import numpy as np from second.core import box_np_ops from second.core import preprocess as prep from second.data import kitti_common as kitti from second.utils.eval import get_coco_eval_result, get_official_eval_result from second.data....
39.036481
99
0.555604
b7f804d5f3d83c404be7dbcbd8ab14705061d989
4,232
py
Python
salt-2016.3.3/salt/beacons/service.py
stephane-martin/salt-debian-packaging
4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66
[ "Apache-2.0" ]
null
null
null
salt-2016.3.3/salt/beacons/service.py
stephane-martin/salt-debian-packaging
4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66
[ "Apache-2.0" ]
null
null
null
salt-2016.3.3/salt/beacons/service.py
stephane-martin/salt-debian-packaging
4ec73750ba67bfe35a5bc0faa110f2bdec5c6a66
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Send events covering service status ''' # Import Python Libs from __future__ import absolute_import import os import logging log = logging.getLogger(__name__) # pylint: disable=invalid-name LAST_STATUS = {} def validate(config): ''' Validate the beacon configuration ''' ...
35.864407
94
0.650047
32a489b163741313f336252f6fec4048b77f4c6a
2,541
py
Python
src/sentry/tasks/email.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
2
2019-03-04T12:45:54.000Z
2019-03-04T12:45:55.000Z
src/sentry/tasks/email.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
src/sentry/tasks/email.py
uandco/sentry
5b8d45cb71c6617dac8e64265848623fbfce9c99
[ "BSD-3-Clause" ]
null
null
null
""" sentry.tasks.email ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import logging from sentry.auth import access from sentry.tasks.base import instrumented_task ...
29.546512
122
0.693034
af119ba90c8cc55f1a1c712a6efe1e999b45f464
7,602
py
Python
selfdrive/car/interfaces.py
andy741217/dp
1fbd6c00e9dd6a7db2ec863cedb6d8fb1230a29a
[ "MIT" ]
null
null
null
selfdrive/car/interfaces.py
andy741217/dp
1fbd6c00e9dd6a7db2ec863cedb6d8fb1230a29a
[ "MIT" ]
null
null
null
selfdrive/car/interfaces.py
andy741217/dp
1fbd6c00e9dd6a7db2ec863cedb6d8fb1230a29a
[ "MIT" ]
null
null
null
import os import time from typing import Dict from cereal import car from common.kalman.simple_kalman import KF1D from common.realtime import DT_CTRL from selfdrive.car import gen_empty_fingerprint from selfdrive.config import Conversions as CV from selfdrive.controls.lib.drive_helpers import V_CRUISE_MAX from selfdri...
35.690141
138
0.70955
45ddb0c52df5cd3dfeec6935de15450dda601c4c
1,401
py
Python
project/models/exchange_announcement.py
Larryrun80/hsadmin
00564a0a47db064a886fc481b44f321a98abdf78
[ "MIT" ]
null
null
null
project/models/exchange_announcement.py
Larryrun80/hsadmin
00564a0a47db064a886fc481b44f321a98abdf78
[ "MIT" ]
null
null
null
project/models/exchange_announcement.py
Larryrun80/hsadmin
00564a0a47db064a886fc481b44f321a98abdf78
[ "MIT" ]
null
null
null
from .. import db from .base_mt_view import BaseMTView class ExchangeAnnouncement(db.Model): __tablename__ = 'exchange_announcement' # Columns id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(200)) content = db.Column(db.Text) abstract = db.Column(db.String(500)) l...
22.967213
72
0.608851
f3bdf62b36c6d3d397050dd6caad7b2ed62ca9d4
8,243
py
Python
data_loader/data_loader.py
bharat-b7/LoopReg
418797f28440a00a2f6489b041c0b4cabaa7997e
[ "Unlicense" ]
67
2020-10-20T02:09:25.000Z
2022-03-25T03:19:40.000Z
data_loader/data_loader.py
bharat-b7/LoopReg
418797f28440a00a2f6489b041c0b4cabaa7997e
[ "Unlicense" ]
14
2020-10-27T08:33:56.000Z
2021-09-10T09:12:09.000Z
data_loader/data_loader.py
bharat-b7/LoopReg
418797f28440a00a2f6489b041c0b4cabaa7997e
[ "Unlicense" ]
9
2020-10-28T06:54:02.000Z
2021-11-15T13:31:14.000Z
""" Dataloader for the network. Author: Bharat Cite: LoopReg: Self-supervised Learning of Implicit Surface Correspondences, Pose and Shape for 3D Human Mesh Registration, NeurIPS' 20. """ import os from os.path import join, split, exists import pickle as pkl import numpy as np from glob import glob import codecs # fro...
37.468182
136
0.591896
521151e582e3dd9e11679dd01ff87dac866c5b82
1,006
py
Python
cogs/event.py
phantom0174/SQCS-Working-Bot
ae4b02e6b3fe403ae28a63f9cad8a35b04e89d45
[ "MIT" ]
2
2021-04-11T15:55:56.000Z
2021-04-17T01:41:47.000Z
cogs/event.py
phantom0174/SQCS-Working-Bot
ae4b02e6b3fe403ae28a63f9cad8a35b04e89d45
[ "MIT" ]
null
null
null
cogs/event.py
phantom0174/SQCS-Working-Bot
ae4b02e6b3fe403ae28a63f9cad8a35b04e89d45
[ "MIT" ]
1
2021-04-13T17:49:46.000Z
2021-04-13T17:49:46.000Z
from core.classes import Cog_Extension from discord.ext import commands import discord import core.functions as func class Event(Cog_Extension): @commands.Cog.listener() async def on_command_error(self, ctx, error): await ctx.send(content=f'`{error}`', delete_after=5.0) @commands.Cog.listener() ...
31.4375
107
0.66501
deb398c373f90bb017870a304b095121ee740c25
4,845
py
Python
hydrogels/utils/io/_lammps.py
debeshmandal/hydrogels
3ca065c21ae834ab350f9fae78cee611f945d853
[ "MIT" ]
3
2020-05-13T01:07:30.000Z
2021-02-12T13:37:23.000Z
hydrogels/utils/io/_lammps.py
softnanolab/hydrogels
cabdec969f44a3855f09c18878b988d1fa5b75f0
[ "MIT" ]
24
2020-06-04T13:48:57.000Z
2021-12-31T18:46:52.000Z
hydrogels/utils/io/_lammps.py
softnanolab/hydrogels
cabdec969f44a3855f09c18878b988d1fa5b75f0
[ "MIT" ]
1
2020-07-23T17:15:23.000Z
2020-07-23T17:15:23.000Z
import re import pandas as pd import numpy as np from ._core import CoreReader from typing import Union from softnanotools.logger import Logger logger = Logger(__name__) class LAMMPSDataReader(CoreReader): def __init__( self, fname: str, names: Union[dict, list, tuple] = None, s...
31.461039
93
0.467905
80b1bf1e6c8d9152041b21df7dbd89f0af540356
6,319
py
Python
QRServer/lobby/lobbyclient.py
Fruktus/QuadradiusPreservationProject
6ae90cfaa015ce0e585ea723887747481f831505
[ "MIT" ]
11
2021-01-07T15:40:29.000Z
2022-03-25T00:53:50.000Z
QRServer/lobby/lobbyclient.py
Fruktus/QuadradiusPreservationProject
6ae90cfaa015ce0e585ea723887747481f831505
[ "MIT" ]
3
2021-02-03T10:12:05.000Z
2022-01-30T10:26:04.000Z
QRServer/lobby/lobbyclient.py
Fruktus/QuadradiusPreservationProject
6ae90cfaa015ce0e585ea723887747481f831505
[ "MIT" ]
3
2021-01-30T21:46:11.000Z
2022-03-25T00:53:53.000Z
import logging from datetime import datetime from QRServer import config from QRServer.common import utils from QRServer.common.classes import RankingEntry, LobbyPlayer from QRServer.common.clienthandler import ClientHandler from QRServer.common.messages import BroadcastCommentResponse, OldSwfResponse, LobbyDuplicateR...
44.815603
118
0.718943
376d9fa34d60caa92fd2c283c51725604a0bca2e
7,020
py
Python
aov_stats.py
pkollias/GatingInWorkingMemory
fc7fa544751cc878b89215d90acf0514345174e1
[ "MIT" ]
null
null
null
aov_stats.py
pkollias/GatingInWorkingMemory
fc7fa544751cc878b89215d90acf0514345174e1
[ "MIT" ]
null
null
null
aov_stats.py
pkollias/GatingInWorkingMemory
fc7fa544751cc878b89215d90acf0514345174e1
[ "MIT" ]
null
null
null
from rec_format import * from statsmodels.formula.api import ols from statsmodels.stats.anova import anova_lm from itertools import groupby import pandas as pd import numpy as np import warnings def aov(df, y, x_a, x_b): formula = "{0} ~ C({1})".format(y, x_a) if x_b is None else '{0} ~ C({1}) + C({2}) + C({1}):C...
39.217877
123
0.63661
7081fd1e35d01ce93cc4b4ca44bbe27fe62cf8ff
7,085
py
Python
ortools/constraint_solver/samples/cvrp.py
kharazian/or-tools-em
8df912821e013203523ba433ff2babbbc91c6a4b
[ "Apache-2.0" ]
null
null
null
ortools/constraint_solver/samples/cvrp.py
kharazian/or-tools-em
8df912821e013203523ba433ff2babbbc91c6a4b
[ "Apache-2.0" ]
null
null
null
ortools/constraint_solver/samples/cvrp.py
kharazian/or-tools-em
8df912821e013203523ba433ff2babbbc91c6a4b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # This Python file uses the following encoding: utf-8 # Copyright 2015 Tin Arm Engineering AB # Copyright 2018 Google LLC # 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 ...
35.782828
95
0.638391
58bc127957fff8e958616136b7ddb2643a5fd470
4,863
py
Python
gpMgmt/test/behave/mgmt_utils/steps/replication_slots_utils.py
zhjc/gpdb
a6fec04a5bdab2ee00255747800144de9c76d65c
[ "PostgreSQL", "Apache-2.0" ]
1
2019-03-16T15:09:48.000Z
2019-03-16T15:09:48.000Z
gpMgmt/test/behave/mgmt_utils/steps/replication_slots_utils.py
zhjc/gpdb
a6fec04a5bdab2ee00255747800144de9c76d65c
[ "PostgreSQL", "Apache-2.0" ]
2
2019-03-02T16:16:00.000Z
2019-03-20T05:52:31.000Z
gpMgmt/test/behave/mgmt_utils/steps/replication_slots_utils.py
flutteringelf/gpdb
bbd27b4be3c454c6aca3dd75e3e115eff627c035
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
import os from behave import given, when, then from test.behave_utils.utils import ( stop_database, run_command, stop_primary, trigger_fts_probe, run_gprecoverseg, execute_sql, ) from addmirrors_mgmt_utils import (add_three_mirrors) def assert_successful_command(context): if context.re...
29.295181
149
0.711701
13ce3800ae23d84eb44be2f40bb6337700f26cb1
8,665
py
Python
siding/profile.py
stendec/siding
a602504a10c58eb656467820f4d45081dbbfb50b
[ "Apache-2.0" ]
4
2015-02-17T17:45:27.000Z
2019-09-28T11:51:27.000Z
siding/profile.py
stendec/siding
a602504a10c58eb656467820f4d45081dbbfb50b
[ "Apache-2.0" ]
null
null
null
siding/profile.py
stendec/siding
a602504a10c58eb656467820f4d45081dbbfb50b
[ "Apache-2.0" ]
null
null
null
############################################################################### # # Copyright 2012 Siding Developers (see AUTHORS.txt) # # 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 # # ...
34.939516
190
0.553029
3994ba9f85c377b8aec6284ea78d79044ca2444b
96,476
py
Python
src/twisted/web/test/test_http.py
SandySalvatore/twisted
e08cf823633472288e727e6cace8454187935bae
[ "Unlicense", "MIT" ]
1
2017-01-14T15:20:35.000Z
2017-01-14T15:20:35.000Z
src/twisted/web/test/test_http.py
SandySalvatore/twisted
e08cf823633472288e727e6cace8454187935bae
[ "Unlicense", "MIT" ]
1
2016-10-10T23:49:15.000Z
2016-10-10T23:49:15.000Z
src/twisted/web/test/test_http.py
SandySalvatore/twisted
e08cf823633472288e727e6cace8454187935bae
[ "Unlicense", "MIT" ]
1
2019-01-29T06:37:19.000Z
2019-01-29T06:37:19.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test HTTP support. """ from __future__ import absolute_import, division import random, cgi, base64, calendar try: from urlparse import urlparse, urlunsplit, clear_cache except ImportError: from urllib.parse import urlparse, urlunspl...
33.130495
80
0.600896
6433b446f2bc5bfab8df3010dff148f00665ef22
13,609
py
Python
2020/Genders/gendersdb_pkg/gendersdb/__main__.py
BryanWhitehurst/HPCCEA
54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa
[ "MIT" ]
10
2019-08-12T23:00:20.000Z
2021-08-06T17:06:48.000Z
2020/Genders/gendersdb_pkg/gendersdb/__main__.py
BryanWhitehurst/HPCCEA
54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa
[ "MIT" ]
5
2020-06-18T23:51:58.000Z
2021-07-28T17:50:34.000Z
2020/Genders/gendersdb_pkg/gendersdb/__main__.py
BryanWhitehurst/HPCCEA
54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa
[ "MIT" ]
21
2019-06-10T21:03:03.000Z
2021-08-06T17:57:25.000Z
from hostlist import hostlist import genders import mysql.connector from mysql.connector import Error import argparse from gendersdb import loaddata from gendersdb import setP import sys # Connects to the genders database. def connectDatabase(): # block tests if gender database exists already try: try:...
31.796729
159
0.537806
e2c12fbfb2a08e9a9759e00b241e404bfabfa1b7
2,535
py
Python
cartoon_image_smoothing.py
TobiasSunderdiek/cartoon-gan
482cc9ef9c14b1869442e5e6b5b8a9c6bcfe5d6f
[ "MIT" ]
42
2020-02-12T07:55:29.000Z
2022-03-31T14:02:13.000Z
cartoon_image_smoothing.py
TobiasSunderdiek/cartoon-gan
482cc9ef9c14b1869442e5e6b5b8a9c6bcfe5d6f
[ "MIT" ]
4
2020-05-29T03:12:46.000Z
2022-01-12T10:52:09.000Z
cartoon_image_smoothing.py
TobiasSunderdiek/cartoon-gan
482cc9ef9c14b1869442e5e6b5b8a9c6bcfe5d6f
[ "MIT" ]
15
2020-04-14T12:57:03.000Z
2022-03-12T02:02:07.000Z
import os import cv2 from PIL import Image, ImageFilter import downloader PATH_TO_STORED_CARTOON_IMAGES = './safebooru/' PATH_TO_STORE_SMOOTHED_IMAGES = './safebooru_smoothed/' SMOOTHED_IMAGES_ZIPFILE_NAME = './safebooru_smoothed' def main(): if not os.path.exists(PATH_TO_STORED_CARTOON_IMAGES): print("Ca...
37.279412
144
0.743984
dfecd34df1f67b390ff3f843a7f5c7621780d428
15,066
py
Python
src_CPU/boruvka.py
P4-Distributed-Algorithm/P4-Distributed-Algorithm
4e2a46590fc6d32414ec4dbb7f86cc14fa4d9b18
[ "Apache-2.0" ]
null
null
null
src_CPU/boruvka.py
P4-Distributed-Algorithm/P4-Distributed-Algorithm
4e2a46590fc6d32414ec4dbb7f86cc14fa4d9b18
[ "Apache-2.0" ]
null
null
null
src_CPU/boruvka.py
P4-Distributed-Algorithm/P4-Distributed-Algorithm
4e2a46590fc6d32414ec4dbb7f86cc14fa4d9b18
[ "Apache-2.0" ]
1
2021-06-26T09:01:09.000Z
2021-06-26T09:01:09.000Z
import argparse import threading import time import netns import pdb import random import os import copy from enum import Enum INF = 1000000000 CAST_BELONGS = 0 REMOVE_EDGES = 1 CAST_MINIMUM = 2 CONNECT = 3 MIN_BROADCAST = 0 MIN_REPLY = 1 FIN_BROADCAST = 2 PULL_REQ = 3 PULL_REPLY = 4 PUSH_REQ = 5 ADDEDGE_REQ = 6 ADD...
40.391421
164
0.543276
41e35a72e21b6bb5842f3511c77ba56362a42eb5
887
py
Python
ds_algorithms/graphs/graph_bfs.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
ds_algorithms/graphs/graph_bfs.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
ds_algorithms/graphs/graph_bfs.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
def bfs(graph, start_vertex, target_value): path = [start_vertex] vertex_and_path = [start_vertex, path] bfs_queue = [vertex_and_path] visited = set() while bfs_queue: current_vertex, path = bfs_queue.pop(0) visited.add(current_vertex) for neighbor in graph[current_vertex]:...
30.586207
67
0.588501
4892b60813e9c769f0ec68e679bf66b6ee1e74b6
28
py
Python
lambwaves/__init__.py
luispauloml/Lamb-Wave-Dispersion
a4f735fa4a3f232c0d2fc07ad0ab8b861b647159
[ "MIT" ]
null
null
null
lambwaves/__init__.py
luispauloml/Lamb-Wave-Dispersion
a4f735fa4a3f232c0d2fc07ad0ab8b861b647159
[ "MIT" ]
null
null
null
lambwaves/__init__.py
luispauloml/Lamb-Wave-Dispersion
a4f735fa4a3f232c0d2fc07ad0ab8b861b647159
[ "MIT" ]
null
null
null
from .lambwaves import Lamb
14
27
0.821429
3a71efacba17710c57ebce4b89665c55862138f0
5,099
py
Python
RLBotPack/BotimusPrime/source/strategy/offense.py
joey676/RLBotPack
634245e548ad2d078e5e15035fd9999f418beea1
[ "MIT" ]
null
null
null
RLBotPack/BotimusPrime/source/strategy/offense.py
joey676/RLBotPack
634245e548ad2d078e5e15035fd9999f418beea1
[ "MIT" ]
null
null
null
RLBotPack/BotimusPrime/source/strategy/offense.py
joey676/RLBotPack
634245e548ad2d078e5e15035fd9999f418beea1
[ "MIT" ]
null
null
null
from RLUtilities.GameInfo import GameInfo from RLUtilities.LinearAlgebra import * from RLUtilities.Simulation import Car, Ball from utils.vector_math import * from utils.math import * from utils.misc import * from utils.intercept import Intercept, AerialIntercept from maneuvers.kit import Maneuver from ...
38.052239
111
0.626201
b331fc1e89f48f287928fa6e0124595634f6ca03
4,652
py
Python
lexibank_wold.py
natalia-morozova/wold
28b9d73cb273b140962b260e4e7327b133891d2e
[ "CC-BY-3.0" ]
null
null
null
lexibank_wold.py
natalia-morozova/wold
28b9d73cb273b140962b260e4e7327b133891d2e
[ "CC-BY-3.0" ]
1
2019-08-30T17:04:52.000Z
2019-08-30T17:19:23.000Z
lexibank_wold.py
natalia-morozova/wold
28b9d73cb273b140962b260e4e7327b133891d2e
[ "CC-BY-3.0" ]
1
2020-02-03T08:16:33.000Z
2020-02-03T08:16:33.000Z
import attr import glob from clldutils.path import Path from pylexibank.dataset import Lexeme from pylexibank.providers import clld import os.path import re from segments import Profile, Tokenizer import unicodedata @attr.s class WOLDLexeme(Lexeme): Word_ID = attr.ib(default=None) word_source = attr.ib(defau...
34.977444
101
0.567068
37bed7008b8c4107af63025e66024f393f4400ba
403
py
Python
polybar/scripts/cpu/temperature.py
alexeipolovin/dotfiles
b47e7cc93da39d1a237f496bcf2c65bdaed26593
[ "MIT" ]
null
null
null
polybar/scripts/cpu/temperature.py
alexeipolovin/dotfiles
b47e7cc93da39d1a237f496bcf2c65bdaed26593
[ "MIT" ]
null
null
null
polybar/scripts/cpu/temperature.py
alexeipolovin/dotfiles
b47e7cc93da39d1a237f496bcf2c65bdaed26593
[ "MIT" ]
null
null
null
import psutil def main(): CPU_TEMP = psutil.sensors_temperatures()['atk0110'][0][1] HIGH_CPU_TEMP = psutil.sensors_temperatures()['atk0110'][0][2] CRIT_CPU_TEMP = psutil.sensors_temperatures()['atk0110'][0][1] if CPU_TEMP >= HIGH_CPU_TEMP: print('CPU Temperature is high ' + str(CPU_TEMP)+'°C') elif CPU_TEMP: p...
33.583333
63
0.702233
3a8f6ec7c8f815e239fc698e057f93b6d5aa2d7e
7,134
py
Python
world/conditions/condition_commands.py
Zironic/arxcode
95464f7e7545385799de821650a0b9da6d51d1bc
[ "MIT" ]
1
2019-12-14T22:10:13.000Z
2019-12-14T22:10:13.000Z
world/conditions/condition_commands.py
Zironic/arxcode
95464f7e7545385799de821650a0b9da6d51d1bc
[ "MIT" ]
null
null
null
world/conditions/condition_commands.py
Zironic/arxcode
95464f7e7545385799de821650a0b9da6d51d1bc
[ "MIT" ]
null
null
null
""" Commands for the conditions app. """ from commands.base import ArxCommand from server.utils.exceptions import PayError from world.conditions.models import RollModifier from world.stats_and_skills import VALID_SKILLS, VALID_STATS class CmdModifiers(ArxCommand): """ Adds modifiers to objects Usage:...
40.078652
108
0.62868
782d345cc2466c1b5577685fc6f42fb1dce99ff2
2,312
py
Python
docs/conf.py
crew102/scopus
d8791c162cef4c2f830d983b435333d9d8eaf472
[ "MIT" ]
null
null
null
docs/conf.py
crew102/scopus
d8791c162cef4c2f830d983b435333d9d8eaf472
[ "MIT" ]
null
null
null
docs/conf.py
crew102/scopus
d8791c162cef4c2f830d983b435333d9d8eaf472
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import os sys.path.append(os.path.join(os.path.abspath(os.pardir))) autodoc_mock_imports = ["_tkinter"] cwd = os.getcwd() project_root = os.path.dirname(cwd) sys.path.insert(0, project_root) import scopus # General configuration needs_sphinx = '1.3' extensi...
21.407407
75
0.647491
2a260359bac78dfcfe4f69eee9b09ad56cebc7fc
1,528
py
Python
DFGN/model/model.py
mottled233/DFGN-pytorch
7d9f6a75404cfa429f1e2b57ec5055df382ed0a4
[ "MIT" ]
null
null
null
DFGN/model/model.py
mottled233/DFGN-pytorch
7d9f6a75404cfa429f1e2b57ec5055df382ed0a4
[ "MIT" ]
null
null
null
DFGN/model/model.py
mottled233/DFGN-pytorch
7d9f6a75404cfa429f1e2b57ec5055df382ed0a4
[ "MIT" ]
null
null
null
from model.layers import * from pytorch_pretrained_bert.modeling import BertModel from model.GFN import * from model.layers import * from transformers import BertModel from transformers import BertConfig as BC class DFGN(nn.Module): """ Packing Query Version """ def __init__(self, config, pretrained_b...
39.179487
108
0.650524
aaaa2560a7d399a833de1b0f5dd47655fefdebd0
95
py
Python
contentbox/apps.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
contentbox/apps.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
contentbox/apps.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ContentboxConfig(AppConfig): name = 'contentbox'
15.833333
34
0.768421
2b8fdaf679572873b80d699afd79f1cac9c58eb8
538
py
Python
registration/migrations/0015_auto_20170212_2029.py
Eigenbaukombinat/ebkmember
6989e69783b977e96493217723c41bd69c8ee788
[ "MIT" ]
1
2018-04-12T14:01:56.000Z
2018-04-12T14:01:56.000Z
registration/migrations/0015_auto_20170212_2029.py
Eigenbaukombinat/ebkmember
6989e69783b977e96493217723c41bd69c8ee788
[ "MIT" ]
3
2020-02-11T23:55:16.000Z
2021-06-10T19:31:06.000Z
registration/migrations/0015_auto_20170212_2029.py
Eigenbaukombinat/ebkmember
6989e69783b977e96493217723c41bd69c8ee788
[ "MIT" ]
3
2017-02-13T19:04:56.000Z
2018-09-12T19:42:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-12 20:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registration', '0014_auto_20170205_1600'), ] operations = [ migrations.Alte...
25.619048
135
0.604089
272670163204814dc51abf75ae1bbc8307412331
1,783
py
Python
api/sharing/driver.py
cypherpath/sdios-api-sdk
dbef980ee68844688e9911443571eca06ee02a6a
[ "MIT" ]
1
2020-12-04T13:32:19.000Z
2020-12-04T13:32:19.000Z
api/sharing/driver.py
cypherpath/sdios-api-sdk
dbef980ee68844688e9911443571eca06ee02a6a
[ "MIT" ]
null
null
null
api/sharing/driver.py
cypherpath/sdios-api-sdk
dbef980ee68844688e9911443571eca06ee02a6a
[ "MIT" ]
4
2019-05-07T00:35:06.000Z
2020-02-08T17:35:33.000Z
"""SharingDriver class object""" from typing import Optional from api.base_driver import BaseDriver from api.driver import APIDriver from api.driver import APIResponse from settings.urls import APICategory class SharingDriver(BaseDriver): """Make all network API calls.""" _category = APICategory.SHARING ...
34.960784
87
0.670219
8d5f22d272ac6944aee9e0ec0a8bb0bc3ba5cab2
44
py
Python
slate/typings/__init__.py
OpenRobot-Packages/slate
687a73dab1fac2e8b1d65297f1fdef0ec8301a16
[ "MIT" ]
27
2020-10-18T04:35:00.000Z
2021-08-03T13:21:27.000Z
dashboard/typings/__init__.py
Axelancerr/Life-dashboard
ecde503c1a90fdedd680ae19d22b3f5c9da4c4c2
[ "MIT" ]
19
2020-12-04T23:03:51.000Z
2021-08-14T20:21:53.000Z
dashboard/typings/__init__.py
Axelancerr/Life-dashboard
ecde503c1a90fdedd680ae19d22b3f5c9da4c4c2
[ "MIT" ]
7
2020-10-26T18:51:17.000Z
2021-07-07T05:39:01.000Z
# Future from __future__ import annotations
14.666667
34
0.840909
10f60ab5c5110f42b3552e10ff974135ed3d7d99
6,254
py
Python
venv/lib/python3.6/site-packages/ansible_collections/purestorage/flashblade/plugins/modules/purefb_network.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/purestorage/flashblade/plugins/modules/purefb_network.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/purestorage/flashblade/plugins/modules/purefb_network.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Simon Dodsley (simon@purestorage.com) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version":...
27.795556
92
0.630956
a823404e0046da4f3ec84d1c3c75a5bb45daa90b
5,746
py
Python
qa/rpc-tests/rpcbind_test.py
PaulRomerolegal/bitcoin
cdac2e7f0c980ae0e3e75b1ba2a0d2538e3c4aa0
[ "MIT" ]
1
2021-07-07T13:28:10.000Z
2021-07-07T13:28:10.000Z
qa/rpc-tests/rpcbind_test.py
bcpki/nonce2
053bab938e335f39314d9f51d63a47e3bdb43142
[ "MIT" ]
null
null
null
qa/rpc-tests/rpcbind_test.py
bcpki/nonce2
053bab938e335f39314d9f51d63a47e3bdb43142
[ "MIT" ]
1
2017-08-25T18:51:45.000Z
2017-08-25T18:51:45.000Z
#!/usr/bin/env python # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test for -rpcbind, as well as -rpcallowip and -rpcconnect # Add python-bitcoinrpc to module search path:...
37.070968
110
0.646363
be9965d3e74cda705c364abdf63b8b9a318f0c05
3,250
py
Python
src/fhir_types/FHIR_PlanDefinition_Goal.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
2
2022-02-03T00:51:30.000Z
2022-02-03T18:42:43.000Z
src/fhir_types/FHIR_PlanDefinition_Goal.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
src/fhir_types/FHIR_PlanDefinition_Goal.py
anthem-ai/fhir-types
42348655fb3a9b3f131b911d6bc0782da8c14ce4
[ "Apache-2.0" ]
null
null
null
from typing import Any, List, Literal, TypedDict from .FHIR_CodeableConcept import FHIR_CodeableConcept from .FHIR_PlanDefinition_Target import FHIR_PlanDefinition_Target from .FHIR_RelatedArtifact import FHIR_RelatedArtifact from .FHIR_string import FHIR_string # This resource allows for the definition of various ty...
92.857143
836
0.774462
874b9d5f067ef325786ecd8f7c3dbed21dbe0cb8
587
py
Python
rest_ml/firstApp/migrations/0003_movierating.py
Binucb/machineLearning_RestAPI
5ffb51febd9ac31e74977aa20cb1ab8c9e44560a
[ "MIT" ]
null
null
null
rest_ml/firstApp/migrations/0003_movierating.py
Binucb/machineLearning_RestAPI
5ffb51febd9ac31e74977aa20cb1ab8c9e44560a
[ "MIT" ]
4
2021-03-19T02:02:07.000Z
2021-06-04T22:54:44.000Z
rest_ml/firstApp/migrations/0003_movierating.py
Binucb/machineLearning_RestAPI
5ffb51febd9ac31e74977aa20cb1ab8c9e44560a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-18 11:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('firstApp', '0002_auto_20200418_1616'), ] operations = [ migrations.CreateModel( name='MovieRating', fields=[ ...
26.681818
114
0.584327
61042e82c1db6bd90e22be1eeeaec7dcb4f1f87e
393
py
Python
PyTrinamicMicro/platforms/motionpy1/examples/modules/TMCM1161/TMCM1161_RS485_rotate.py
trinamic/PyTrinamicMicro
defcd1aef2ea35e848b3a3faf201ec4d8a649bfd
[ "MIT" ]
4
2020-06-25T08:59:59.000Z
2021-07-17T09:52:38.000Z
PyTrinamicMicro/platforms/motionpy1/examples/modules/TMCM1161/TMCM1161_RS485_rotate.py
trinamic/PyTrinamicMicro
defcd1aef2ea35e848b3a3faf201ec4d8a649bfd
[ "MIT" ]
2
2020-10-08T15:48:07.000Z
2021-05-12T13:28:27.000Z
PyTrinamicMicro/platforms/motionpy1/examples/modules/TMCM1161/TMCM1161_RS485_rotate.py
trinamic/PyTrinamicMicro
defcd1aef2ea35e848b3a3faf201ec4d8a649bfd
[ "MIT" ]
3
2021-01-26T09:24:28.000Z
2021-04-27T08:42:38.000Z
''' Rotate the motor with TMCM1161 using RS485 interface. Created on 05.10.2020 @author: LK ''' from PyTrinamic.modules.TMCM1161.TMCM_1161 import TMCM_1161 from PyTrinamicMicro.platforms.motionpy1.connections.rs485_tmcl_interface import rs485_tmcl_interface import time con = rs485_tmcl_interface() module = TMCM_116...
18.714286
101
0.798982
99f081c9cfaeeb2dff165dad2c4fa77874357537
3,193
py
Python
nomad/api/jobs.py
suleimanmahmoud/python-nomad
5beee5f027114c3acf8c5aedc0f4ae4a37165b2a
[ "MIT" ]
null
null
null
nomad/api/jobs.py
suleimanmahmoud/python-nomad
5beee5f027114c3acf8c5aedc0f4ae4a37165b2a
[ "MIT" ]
null
null
null
nomad/api/jobs.py
suleimanmahmoud/python-nomad
5beee5f027114c3acf8c5aedc0f4ae4a37165b2a
[ "MIT" ]
null
null
null
import nomad.api.exceptions from nomad.api.base import Requester class Jobs(Requester): """ The jobs endpoint is used to query the status of existing jobs in Nomad and to register new jobs. By default, the agent's local region is used. https://www.nomadproject.io/docs/http/jobs.html """ ...
30.409524
132
0.567491
cb813a251d45826a7957d945cd9767b85a884af8
10,891
py
Python
gs_quant/test/api/test_data.py
femtotrader/gs-quant
33a13f6f53ce8a62565b2d2870aaddf52847e275
[ "Apache-2.0" ]
1
2021-08-31T09:19:25.000Z
2021-08-31T09:19:25.000Z
gs_quant/test/api/test_data.py
femtotrader/gs-quant
33a13f6f53ce8a62565b2d2870aaddf52847e275
[ "Apache-2.0" ]
null
null
null
gs_quant/test/api/test_data.py
femtotrader/gs-quant
33a13f6f53ce8a62565b2d2870aaddf52847e275
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 Goldman Sachs. 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 di...
42.877953
120
0.56487
144ef28742d676d510ee24b61621294675fb5895
989
py
Python
research/delf/setup.py
bkj/tf-models
a581c0951e867a034122aab1e42cfed8973dbb16
[ "Apache-2.0" ]
null
null
null
research/delf/setup.py
bkj/tf-models
a581c0951e867a034122aab1e42cfed8973dbb16
[ "Apache-2.0" ]
null
null
null
research/delf/setup.py
bkj/tf-models
a581c0951e867a034122aab1e42cfed8973dbb16
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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 applicab...
35.321429
80
0.677452
63b11445bc0005ca0e0928abf930329814dbc8d3
12,164
py
Python
tests/request_methods/test_reports.py
1Blackdiamondsc/python-amazon-mws
c903bc4402808937b4a1240aec2e129dcbc7e7d8
[ "Unlicense" ]
1
2020-09-14T10:29:09.000Z
2020-09-14T10:29:09.000Z
tests/request_methods/test_reports.py
HumanFact/python-amazon-mws
bba6c5ed2080e5864840098ecb9f6ab7f9ac2def
[ "Unlicense" ]
2
2021-01-26T17:25:45.000Z
2021-01-28T09:39:17.000Z
tests/request_methods/test_reports.py
HumanFact/python-amazon-mws
bba6c5ed2080e5864840098ecb9f6ab7f9ac2def
[ "Unlicense" ]
1
2021-05-25T02:37:56.000Z
2021-05-25T02:37:56.000Z
"""Tests for the Reports API class.""" import datetime import unittest import mws from mws.utils import clean_bool, clean_date from .utils import CommonAPIRequestTools class ReportsTestCase(CommonAPIRequestTools, unittest.TestCase): """Test cases for Reports.""" api_class = mws.Reports # TODO: Add rem...
43.442857
84
0.669434
a08bc960244b71973edb217b0dc1d905621d2e4c
3,513
py
Python
users/forms.py
sLeeNguyen/sales-support
3f0a6977c8c26743373a70b4296516b7a71ccf4a
[ "Apache-2.0" ]
1
2021-03-22T14:07:30.000Z
2021-03-22T14:07:30.000Z
users/forms.py
sLeeNguyen/sales-support
3f0a6977c8c26743373a70b4296516b7a71ccf4a
[ "Apache-2.0" ]
null
null
null
users/forms.py
sLeeNguyen/sales-support
3f0a6977c8c26743373a70b4296516b7a71ccf4a
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils import timezone from users.models import User class RegisterForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput) password2 = forms.CharField(label='Confirm password', widget=for...
37.37234
118
0.670367
60996521dc1adbae40409a9461c620f4a76c94b6
1,310
py
Python
common/vector.py
ollinevalainen/satellitetools
c36cb686bb6d87d5268890706d71f2144144b4c0
[ "MIT" ]
6
2021-02-26T09:17:15.000Z
2022-01-10T17:10:04.000Z
common/vector.py
ollinevalainen/satellitetools
c36cb686bb6d87d5268890706d71f2144144b4c0
[ "MIT" ]
2
2020-06-09T09:55:45.000Z
2022-02-23T12:36:01.000Z
common/vector.py
ollinevalainen/satellitetools
c36cb686bb6d87d5268890706d71f2144144b4c0
[ "MIT" ]
1
2021-06-08T01:09:22.000Z
2021-06-08T01:09:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 16 11:23:20 2021 @author: Olli Nevalainen (Finnish Meteorological Institute) """ import pyproj from shapely.ops import transform import numpy as np def transform_crs(aoi_geometry, src_crs: str, dst_crs: str): # Tranform aoi_geometry to raster ...
27.291667
73
0.69542
66816d44facf7f17d6c0d792bd61c5e6f405386f
1,535
py
Python
crosshair/auditwall_test.py
lmontand/CrossHair
ddcea5a19ea2ba48ac47fff4dcf1a1aa4479393c
[ "MIT" ]
null
null
null
crosshair/auditwall_test.py
lmontand/CrossHair
ddcea5a19ea2ba48ac47fff4dcf1a1aa4479393c
[ "MIT" ]
null
null
null
crosshair/auditwall_test.py
lmontand/CrossHair
ddcea5a19ea2ba48ac47fff4dcf1a1aa4479393c
[ "MIT" ]
null
null
null
import os from subprocess import call import sys import urllib.request from crosshair.auditwall import engage_auditwall from crosshair.auditwall import SideEffectDetected # audit hooks cannot be uninstalled, and we don't want to wall off the # testing process. Spawn subprcoesses instead. if sys.version_info >= (3, 8...
29.519231
73
0.646906
b39c5d68bad6d5f91049f9c0c7f3a94159af3a87
817
py
Python
map/models.py
bobvoorneveld/spindlechannels
2afc4bf9f021bdef39a6a3f610d2eaff43618ca8
[ "MIT" ]
1
2016-10-05T12:38:47.000Z
2016-10-05T12:38:47.000Z
map/models.py
bobvoorneveld/spindlechannels
2afc4bf9f021bdef39a6a3f610d2eaff43618ca8
[ "MIT" ]
null
null
null
map/models.py
bobvoorneveld/spindlechannels
2afc4bf9f021bdef39a6a3f610d2eaff43618ca8
[ "MIT" ]
2
2017-02-16T08:53:40.000Z
2019-01-11T13:18:38.000Z
import json from django.contrib.auth.models import User from django.contrib.gis.db import models from geojson import Feature class Marker(models.Model): created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) location = models.PointField() user = models.Forei...
28.172414
71
0.583843
e6a141456301d8a9d5fcc258d7b6aa4afd6dc152
3,892
py
Python
gen_anchors.py
andreasmarxer/keras-yolo3
b56bf38c830c6a57a299335aa2192fe845830264
[ "MIT" ]
null
null
null
gen_anchors.py
andreasmarxer/keras-yolo3
b56bf38c830c6a57a299335aa2192fe845830264
[ "MIT" ]
null
null
null
gen_anchors.py
andreasmarxer/keras-yolo3
b56bf38c830c6a57a299335aa2192fe845830264
[ "MIT" ]
null
null
null
import random import argparse import numpy as np from voc import parse_voc_annotation import json def IOU(ann, centroids): w, h = ann similarities = [] for centroid in centroids: c_w, c_h = centroid if c_w >= w and c_h >= h: similarity = w*h/(c_w*c_h) elif c_w >= w an...
29.263158
102
0.611511
188e2517a8e8e70d4b7b1b5449af8c145d9fd78f
7,328
py
Python
aea/test_tools/generic.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
aea/test_tools/generic.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
aea/test_tools/generic.py
marcofavorito/agents-aea
e520f2f5d076a193514e194d94aa76c6423ac5bc
[ "Apache-2.0" ]
null
null
null
# -*- 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 ...
36.457711
123
0.647789
a1fbd5dd67bd48977dc5a19e25cbcdc09a7bb5a8
1,913
py
Python
experiments/finetune/sanitize.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
1
2022-02-25T00:00:30.000Z
2022-02-25T00:00:30.000Z
experiments/finetune/sanitize.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
null
null
null
experiments/finetune/sanitize.py
lxuechen/swissknife
43dbd36f1e998ebe29c0b85fafd0de765dfb5de8
[ "MIT" ]
null
null
null
"""Convert the generations to the desired format.""" import json import fire from swissknife import utils def dedup_generations(): """Deduplicate generations -- need a single generation for a single prompt.""" ref_file = "/Users/xuechenli/data/e2e_gpt3_full/test.jsonl" in_file = "./e2e-test-fine-tuned-...
27.328571
82
0.637219
cd6535c4cd98bf578bb2844ba3f0cbbca9159420
1,707
py
Python
sosw/test/unit/test_labourer.py
EllaMozes/sosw
06686332bc4e7774715dd0d27c8bfa3890b4a340
[ "MIT" ]
7
2019-07-28T17:54:21.000Z
2021-02-20T21:14:11.000Z
sosw/test/unit/test_labourer.py
EllaMozes/sosw
06686332bc4e7774715dd0d27c8bfa3890b4a340
[ "MIT" ]
48
2019-01-28T21:45:28.000Z
2019-07-23T08:19:56.000Z
sosw/test/unit/test_labourer.py
EllaMozes/sosw
06686332bc4e7774715dd0d27c8bfa3890b4a340
[ "MIT" ]
10
2019-07-29T17:56:34.000Z
2022-01-18T10:36:22.000Z
import os import time import unittest from unittest.mock import patch from sosw.labourer import Labourer os.environ["STAGE"] = "test" os.environ["autotest"] = "True" class Labourer_UnitTestCase(unittest.TestCase): def setUp(self): self.labourer = Labourer(id=42, arn='arn::aws::lambda') def test...
25.863636
88
0.674868
31e260e512621aeb4cd5ce082d219395415f7321
4,996
py
Python
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/InsertApplicationRequest.py
ankitdobhal/aliyun-openapi-python-sdk
991b1c2d91adc468480defc23ba790d4369cce7b
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/InsertApplicationRequest.py
ankitdobhal/aliyun-openapi-python-sdk
991b1c2d91adc468480defc23ba790d4369cce7b
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/InsertApplicationRequest.py
ankitdobhal/aliyun-openapi-python-sdk
991b1c2d91adc468480defc23ba790d4369cce7b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.421384
78
0.76241
0e8118b8c7f4d969197ae2d2a8d94ae7d4bc15fb
2,665
py
Python
fairseq/examples/deep_pyramidion/pooler_utils.py
applicaai/pyramidions
fa9dddc8fe98ffe5d45dd04dd502f33cb924e667
[ "CECILL-B" ]
1
2022-03-08T21:59:53.000Z
2022-03-08T21:59:53.000Z
fairseq/examples/deep_pyramidion/pooler_utils.py
applicaai/pyramidions
fa9dddc8fe98ffe5d45dd04dd502f33cb924e667
[ "CECILL-B" ]
null
null
null
fairseq/examples/deep_pyramidion/pooler_utils.py
applicaai/pyramidions
fa9dddc8fe98ffe5d45dd04dd502f33cb924e667
[ "CECILL-B" ]
null
null
null
import torch from torch import nn as nn from .pooler import Pooler from .successive_halving_topk import TopKConfig, TopKOperator _supports_blockwise = ['pooler', 'only_blockwise'] class TopkPooler(Pooler): """ Token Pooler. Args: args (configargparse.Namespace): parsed command-line arguments ...
31.352941
99
0.589869
9b497028b46fbe084f1c04184a918fb1f9efc7d1
4,680
py
Python
examples/contrib/set_covering4.py
klorel/or-tools
f3fd201e68cf75b7720ff5c3cadc599a1d02b54b
[ "Apache-2.0" ]
279
2015-01-10T09:55:35.000Z
2022-03-28T02:34:03.000Z
examples/contrib/set_covering4.py
walkerke/or-tools
39f44709bba203f5ff3bc18fab8098739f189a6d
[ "Apache-2.0" ]
10
2017-10-05T15:48:50.000Z
2021-09-20T12:06:52.000Z
examples/contrib/set_covering4.py
walkerke/or-tools
39f44709bba203f5ff3bc18fab8098739f189a6d
[ "Apache-2.0" ]
83
2015-01-20T03:44:00.000Z
2022-03-13T23:53:06.000Z
# Copyright 2010 Hakan Kjellerstrand hakank@gmail.com # # 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 ...
30
80
0.601496
378895e357f05da28aadcedc7112ed24098f2b45
3,634
py
Python
vggish/vggish_input.py
vnyennhi/AICovidVN-115M-Jindo
fce515f883f5e99e7670cdbdaa6272d523a2917a
[ "MIT" ]
10
2021-07-08T14:02:46.000Z
2021-10-10T21:33:49.000Z
vggish/vggish_input.py
vnyennhi/AICovidVN-115M-Jindo
fce515f883f5e99e7670cdbdaa6272d523a2917a
[ "MIT" ]
null
null
null
vggish/vggish_input.py
vnyennhi/AICovidVN-115M-Jindo
fce515f883f5e99e7670cdbdaa6272d523a2917a
[ "MIT" ]
4
2021-07-08T14:02:49.000Z
2021-08-04T08:01:28.000Z
# Copyright 2017 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 ...
18.829016
80
0.716566
3938ff379a5805ed1b09439f45bcdd848e08de8b
3,762
py
Python
telemetry/telemetry/internal/backends/chrome/cast_browser_finder.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/backends/chrome/cast_browser_finder.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/backends/chrome/cast_browser_finder.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2022 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Finds browsers that can be Cast to and controlled by telemetry.""" from __future__ import absolute_import import platform import sys from telemetry.core ...
30.585366
75
0.736576
1a0707d44836b1f345983a7ea4aa8c50e39ea478
941
py
Python
utils.py
rlaboulaye/transformer
119195b2be1d2a3418141a73536d5167e97e06ed
[ "MIT" ]
null
null
null
utils.py
rlaboulaye/transformer
119195b2be1d2a3418141a73536d5167e97e06ed
[ "MIT" ]
5
2021-03-18T21:07:06.000Z
2022-03-11T23:30:49.000Z
utils.py
rlaboulaye/transformer
119195b2be1d2a3418141a73536d5167e97e06ed
[ "MIT" ]
null
null
null
import sys import random import json from tqdm import tqdm import numpy as np import torch from jsonschema import validate from jsonschema.exceptions import ValidationError def verbose_print(verbose, *args): if verbose: print(*args) def get_iterator(obj, verbose=False): if verbose: return tqdm(obj, ncols=80)...
23.525
101
0.766206
7d50328e299ae0bbe1c65ffb5087238417fdf4a9
407
py
Python
icbd/compiler/tests/51.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
7
2015-04-06T15:17:13.000Z
2020-10-21T04:57:00.000Z
icbd/compiler/tests/51.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
null
null
null
icbd/compiler/tests/51.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
4
2016-05-16T17:53:08.000Z
2020-11-28T17:18:50.000Z
""" dicts """ d = {} for i in xrange(10): d[i] = i ** 2 print d print {1:[]} print d.values() d2 = {} d2["hello"] = "" d2["hello"] = "world" print d2 print d2["hello"] d3 = {} d3[1] = 2 d3[1] = 3 print d3[1] print len(d3) d4 = {} d4[(2,)] = "" d4[(2,)] = "new" for i in xrange(10): d4[(i,)] = str(i) print...
11.305556
55
0.496314
9e025aa064d71251ec32eb1e9d8fb641ea197bce
989
py
Python
src/datastructures/non_repeating_character.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
src/datastructures/non_repeating_character.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
src/datastructures/non_repeating_character.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
""" Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetcode" return 0. s = "loveleetcode", return 2. Note: You may assume the string contain only lowercase letters. SOLUTION We scan the string from left to right countin...
27.472222
116
0.676441
9c0bc80ec3268f61a278835ab49a36d66a3a49f0
1,534
py
Python
src/predict_word_prog.py
bdebowski/language-modeling
114f56a2a4b059eb85eb4d62a208f596a547393b
[ "MIT" ]
null
null
null
src/predict_word_prog.py
bdebowski/language-modeling
114f56a2a4b059eb85eb4d62a208f596a547393b
[ "MIT" ]
null
null
null
src/predict_word_prog.py
bdebowski/language-modeling
114f56a2a4b059eb85eb4d62a208f596a547393b
[ "MIT" ]
null
null
null
import os from src.word_predictor.iword_predictor_factory import ModelName, IWordPredictorFactory class PredictWordProg: def __init__(self): self._text_history = "" def run(self, word_predictor, num_words=10): print("<Enter some text to get started...>") text = self.read_user_input()...
29.5
106
0.578879
d44d816f5723f83595f9d2ed881d3504875d81e6
1,321
py
Python
var/spack/repos/builtin/packages/py-dp-gp-cluster/package.py
NeuralEnsemble/spack
bed3a694985466544aa16a19af0f0a13221b51a9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-dp-gp-cluster/package.py
NeuralEnsemble/spack
bed3a694985466544aa16a19af0f0a13221b51a9
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-01-08T08:41:11.000Z
2022-03-14T19:28:07.000Z
var/spack/repos/builtin/packages/py-dp-gp-cluster/package.py
foeroyingur/spack
5300cbbb2e569190015c72d0970d25425ea38647
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from glob import glob from os import unlink from spack import * class PyDpGpCluster(PythonPackage): """DP_GP_cluste...
35.702703
93
0.68433
f410270365fe06e04da6479282167e7e80892ede
156
py
Python
stream_utils/__init__.py
cipher982/birb-watch
bdba5455f3b994b143e96b41afbf17d698610454
[ "Apache-2.0" ]
null
null
null
stream_utils/__init__.py
cipher982/birb-watch
bdba5455f3b994b143e96b41afbf17d698610454
[ "Apache-2.0" ]
null
null
null
stream_utils/__init__.py
cipher982/birb-watch
bdba5455f3b994b143e96b41afbf17d698610454
[ "Apache-2.0" ]
null
null
null
# __init__.py from .detector import detector from .ffmpeg_cmd import transcode from .plot_boxes import plot_boxes from .tokens import * from .onnx import *
22.285714
34
0.801282
f438d01c6418c1a9afc6a498ee0ec7ab8af4abbd
20,853
py
Python
misc/make_figs_catchmentspace.py
LukeEcomod/SpaFHy_v1_Pallas
bc8937a6aa72683a765506fc8f967916f81e0f12
[ "MIT" ]
3
2019-04-26T02:43:06.000Z
2020-10-10T21:49:53.000Z
misc/make_figs_catchmentspace.py
LukeEcomod/SpaFHy_v1_Pallas
bc8937a6aa72683a765506fc8f967916f81e0f12
[ "MIT" ]
null
null
null
misc/make_figs_catchmentspace.py
LukeEcomod/SpaFHy_v1_Pallas
bc8937a6aa72683a765506fc8f967916f81e0f12
[ "MIT" ]
6
2019-06-19T12:12:29.000Z
2022-01-14T22:05:03.000Z
# -*- coding: utf-8 -*- """ Created on Thu Feb 22 20:49:51 2018 @author: slauniai """ import os import numpy as np import pandas as pd import pickle import matplotlib.pyplot as plt #import seaborn as sns from scipy import stats import statsmodels.api as sm import statsmodels.formula.api as smf from mpl_toolkits.axes_g...
33.633871
138
0.601544
0c4e596555d8da634a0f039681e2a438ec8ebf98
499
py
Python
apps/userprofile/models.py
SteinOveHelset/minutos
73cdcb44409f97b05680c6a048f80eb4bd3f1f46
[ "MIT" ]
23
2020-11-19T19:33:34.000Z
2022-03-02T15:43:08.000Z
apps/userprofile/models.py
SteinOveHelset/minutos
73cdcb44409f97b05680c6a048f80eb4bd3f1f46
[ "MIT" ]
1
2021-04-03T18:02:50.000Z
2021-04-03T18:02:50.000Z
apps/userprofile/models.py
SteinOveHelset/minutos
73cdcb44409f97b05680c6a048f80eb4bd3f1f46
[ "MIT" ]
2
2021-01-23T02:06:59.000Z
2021-09-09T04:58:09.000Z
# # from django.contrib.auth.models import User from django.db import models # # Models class Userprofile(models.Model): user = models.OneToOneField(User, related_name='userprofile', on_delete=models.CASCADE) active_team_id = models.IntegerField(default=0) avatar = models.ImageField(upload_to='uploads/a...
24.95
91
0.695391
2ba827966fe6c1fcede90c376b3847affbdb2b0d
7,363
py
Python
examples/inverse/psf_ctf_label_leakage.py
jhouck/mne-python
95facbd1a28e471cf81e1d86735fa272a66d13d1
[ "BSD-3-Clause" ]
null
null
null
examples/inverse/psf_ctf_label_leakage.py
jhouck/mne-python
95facbd1a28e471cf81e1d86735fa272a66d13d1
[ "BSD-3-Clause" ]
null
null
null
examples/inverse/psf_ctf_label_leakage.py
jhouck/mne-python
95facbd1a28e471cf81e1d86735fa272a66d13d1
[ "BSD-3-Clause" ]
4
2021-09-08T14:35:26.000Z
2022-02-25T22:34:52.000Z
""" ============================================================ Visualize source leakage among labels using a circular graph ============================================================ This example computes all-to-all pairwise leakage among 68 regions in source space based on MNE inverse solutions and a FreeSurfer c...
38.752632
79
0.678392
460564d107a8f792884dbd1eca90abd0ad46a3ee
113
py
Python
build/lib/fbbotw/__init__.py
JoabMendes/fb_bot_wrapper
312aa9a1cf5e53f70f2c7f67e1a53649e20966b7
[ "MIT" ]
19
2016-11-07T20:46:13.000Z
2019-11-27T18:17:44.000Z
fbbotw/__init__.py
JoabMendes/fbbotw
312aa9a1cf5e53f70f2c7f67e1a53649e20966b7
[ "MIT" ]
20
2016-11-02T16:02:39.000Z
2018-06-08T18:40:20.000Z
fbbotw/__init__.py
JoabMendes/fb_bot_wrapper
312aa9a1cf5e53f70f2c7f67e1a53649e20966b7
[ "MIT" ]
7
2017-07-26T08:43:15.000Z
2021-05-10T12:47:33.000Z
# -*- coding: utf-8 -*- __author__ = """Joabe Mendes""" __email__ = 'joabe.mdl@gmail.com' __version__ = '2.1.3'
18.833333
33
0.619469
057b027d5710a78e6969bd6838a73fc9c5475fa4
2,209
py
Python
setup.py
danielrivard/innova-controls
698d56a748405fae2f7d9434f55b29d646ff0f75
[ "Apache-2.0" ]
1
2022-02-27T16:14:15.000Z
2022-02-27T16:14:15.000Z
setup.py
danielrivard/innova-controls
698d56a748405fae2f7d9434f55b29d646ff0f75
[ "Apache-2.0" ]
null
null
null
setup.py
danielrivard/innova-controls
698d56a748405fae2f7d9434f55b29d646ff0f75
[ "Apache-2.0" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ https://github.com/pypa/sampleproject """ from setuptools import setup import pathlib here = pathlib.Path(__file__).parent.resolve() # Get the long description from the README file long_description =...
35.063492
97
0.651426
118e0b4dd8fc2a8c816d2e966d6c03f80dc440e2
87,583
py
Python
numpy/core/tests/test_multiarray.py
girving/numpy
059334c491940752b08070074cc221b69487e5e4
[ "BSD-3-Clause" ]
1
2019-06-19T06:37:47.000Z
2019-06-19T06:37:47.000Z
numpy/core/tests/test_multiarray.py
girving/numpy
059334c491940752b08070074cc221b69487e5e4
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_multiarray.py
girving/numpy
059334c491940752b08070074cc221b69487e5e4
[ "BSD-3-Clause" ]
1
2016-01-14T15:55:41.000Z
2016-01-14T15:55:41.000Z
import tempfile import sys import os import numpy as np from numpy.testing import * from nose import SkipTest from numpy.core import * from numpy.core.multiarray_tests import test_neighborhood_iterator, test_neighborhood_iterator_oob # Need to test an object that does not fully implement math interface from datetime i...
37.980486
587
0.522316
bc782c86914138c0fdbae5b7bc83040f92e02a28
2,562
py
Python
2021/day13/day13.py
fcharlier/AdventOfCode
6b2765da9e4d6f6b1f201897bb56043482a65bb2
[ "WTFPL" ]
null
null
null
2021/day13/day13.py
fcharlier/AdventOfCode
6b2765da9e4d6f6b1f201897bb56043482a65bb2
[ "WTFPL" ]
null
null
null
2021/day13/day13.py
fcharlier/AdventOfCode
6b2765da9e4d6f6b1f201897bb56043482a65bb2
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python import numpy as np def read_input(filename): """ >>> c, f = read_input('example') >>> len(c) 18 >>> len(f) 2 >>> f[0] ('y', 7) """ coords = [] folds = [] with open(filename) as fd: for line in fd: if "," in line: ...
27.255319
88
0.517955
6c440ba84e4b5e18a8c042854a01c10c7a6a0de7
1,194
py
Python
chatbot.py
anchalsingh85305/Chat-Bot
c06cc8c5e5e122fbe0124e409e8d82d240d8093a
[ "MIT" ]
null
null
null
chatbot.py
anchalsingh85305/Chat-Bot
c06cc8c5e5e122fbe0124e409e8d82d240d8093a
[ "MIT" ]
null
null
null
chatbot.py
anchalsingh85305/Chat-Bot
c06cc8c5e5e122fbe0124e409e8d82d240d8093a
[ "MIT" ]
null
null
null
from chatterbot import ChatBot from chatterbot.trainers import ListTrainer from chatterbot.trainers import ChatterBotCorpusTrainer # Creating ChatBot Instance chatbot = ChatBot( 'CoronaBot', storage_adapter='chatterbot.storage.SQLStorageAdapter', logic_adapters=[ 'chatterbot.logic.Mathemat...
34.114286
93
0.716918
7b8a802d68c46aaf15545b4771790974f5c45942
58
py
Python
stocks/util/__init__.py
FriendlyUser/price-prediction
4be17ac250c8cb079cc9f8cacdc92a91e146ee9a
[ "Apache-2.0" ]
1
2021-02-19T04:12:53.000Z
2021-02-19T04:12:53.000Z
stocks/util/__init__.py
FriendlyUser/price-prediction
4be17ac250c8cb079cc9f8cacdc92a91e146ee9a
[ "Apache-2.0" ]
4
2020-06-17T03:29:23.000Z
2020-08-12T15:45:46.000Z
stocks/util/__init__.py
FriendlyUser/price-prediction
4be17ac250c8cb079cc9f8cacdc92a91e146ee9a
[ "Apache-2.0" ]
1
2021-10-02T20:24:12.000Z
2021-10-02T20:24:12.000Z
from stocks.util.get_prices import get_prices, get_config
29
57
0.862069
b5c59e6f50185f4a63badfb860375959f3af4a02
3,240
py
Python
css/vendor-imports/mozilla/mozilla-central-reftests/text-decor-3/support/generate-text-emphasis-ruby-tests.py
Thezone1975/wpt
9e201113cf36aefe07fe9c14caa47705d541e141
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
css/vendor-imports/mozilla/mozilla-central-reftests/text-decor-3/support/generate-text-emphasis-ruby-tests.py
Thezone1975/wpt
9e201113cf36aefe07fe9c14caa47705d541e141
[ "BSD-3-Clause" ]
7
2019-07-08T22:23:16.000Z
2021-03-18T23:42:32.000Z
css/vendor-imports/mozilla/mozilla-central-reftests/text-decor-3/support/generate-text-emphasis-ruby-tests.py
Thezone1975/wpt
9e201113cf36aefe07fe9c14caa47705d541e141
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
#!/usr/bin/env python # - * - coding: UTF-8 - * - """ This script generates tests text-emphasis-ruby-001 ~ 004 which tests emphasis marks with ruby in four directions. It outputs a list of all tests it generated in the format of Mozilla reftest.list to the stdout. """ from __future__ import unicode_literals TEST_FIL...
43.783784
211
0.653086
b77210e3d2bab36daa096ecf1b33038cb01423dd
14,203
py
Python
scripts/validate_docstrings.py
KneeShard/pandas
ce3bac9af43838c7d690ee86e9bec4976a3303e3
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-06-10T14:05:09.000Z
2021-06-10T14:05:09.000Z
scripts/validate_docstrings.py
KneeShard/pandas
ce3bac9af43838c7d690ee86e9bec4976a3303e3
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
scripts/validate_docstrings.py
KneeShard/pandas
ce3bac9af43838c7d690ee86e9bec4976a3303e3
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Analyze docstrings to detect errors. If no argument is provided, it does a quick check of docstrings and returns a csv with all API functions and results of basic checks. If a function or method is provided in the form "pandas.function", "pandas.module.class.method", etc. a list of all erro...
32.206349
85
0.606984
ffe67354e0885a09ba208e9aa9ac1db8c228d0b1
4,974
py
Python
elliot/recommender/neural/DMF/deep_matrix_factorization.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
175
2021-03-04T15:46:25.000Z
2022-03-31T05:56:58.000Z
elliot/recommender/neural/DMF/deep_matrix_factorization.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
15
2021-03-06T17:53:56.000Z
2022-03-24T17:02:07.000Z
elliot/recommender/neural/DMF/deep_matrix_factorization.py
gategill/elliot
113763ba6d595976e14ead2e3d460d9705cd882e
[ "Apache-2.0" ]
39
2021-03-04T15:46:26.000Z
2022-03-09T15:37:12.000Z
""" Module description: """ __version__ = '0.3.1' __author__ = 'Vito Walter Anelli, Claudio Pomo' __email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it' import numpy as np from ast import literal_eval as make_tuple from tqdm import tqdm from elliot.dataset.samplers import pointwise_pos_neg_ratio_ratings...
40.770492
156
0.606152
752eb799a3f4a11a947f093ef0b2e9e0306826d7
2,023
py
Python
check.py
lleshchi/stratis-cli
6e847d918d075dfd9548c66dd37a9b96b71e8f7d
[ "Apache-2.0" ]
null
null
null
check.py
lleshchi/stratis-cli
6e847d918d075dfd9548c66dd37a9b96b71e8f7d
[ "Apache-2.0" ]
null
null
null
check.py
lleshchi/stratis-cli
6e847d918d075dfd9548c66dd37a9b96b71e8f7d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # isort: STDLIB import argparse import subprocess import sys arg_map = { "src/stratis_cli": [ "--reports=no", "--disable=I", "--disable=duplicate-code", "--disable=invalid-name", "--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'", ], ...
25.607595
80
0.556105
8eae67973809cc9288fe48f3dac0d99479dbd253
13,297
py
Python
cryptoapis/model/inline_response40081.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/inline_response40081.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/inline_response40081.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
46.65614
484
0.594721
0dac38756c4621fb1c0913ccf5b67f14d57fb598
4,025
py
Python
scripts/chr_view.py
lucasw/nes_cc65_demo
c9edbd146f95edb2fa337dc12b2e58c5295d852f
[ "BSD-3-Clause" ]
5
2018-01-27T20:36:29.000Z
2022-03-03T01:49:00.000Z
scripts/chr_view.py
lucasw/nes_cc65_demo
c9edbd146f95edb2fa337dc12b2e58c5295d852f
[ "BSD-3-Clause" ]
3
2017-03-29T13:03:22.000Z
2017-04-08T03:13:43.000Z
scripts/chr_view.py
lucasw/nes_cc65_demo
c9edbd146f95edb2fa337dc12b2e58c5295d852f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Lucas Walter # March 2017 # load a nes .chr or .nes and view the graphics # Probably should look at other linux/python chr viewers and editors, # e.g. https://github.com/jmcmahan/nestile # and not spend much more time on this. import cv2 import numpy as np import sys if __name__ == '__main__...
30.492424
81
0.491677
894051b3a6af604420799c1da94da50e37becf28
1,355
py
Python
easyTX/client.py
VDHARV/easyTX-2.0
90cc9fcdccfd4ff267d13c14e5417d87df0475cc
[ "MIT" ]
null
null
null
easyTX/client.py
VDHARV/easyTX-2.0
90cc9fcdccfd4ff267d13c14e5417d87df0475cc
[ "MIT" ]
null
null
null
easyTX/client.py
VDHARV/easyTX-2.0
90cc9fcdccfd4ff267d13c14e5417d87df0475cc
[ "MIT" ]
null
null
null
import cv2 import socket import numpy as np import base64 import easyTX.constants as constants class Client(): """Client class of easyTX module. Must be defined if the machine wants to recieve a continous stream of data. """ def __init__(self, port): self.port = port def conn(self): ...
30.795455
113
0.623616
37f23f54ceb357abb3e9b3ec7666255c77c7b6ad
3,384
py
Python
tableauserverclient/server/request_options.py
complexsplit/server-client-python
608aa7694d0560ea3c8c37b10127b11207e56e8d
[ "CC0-1.0", "MIT" ]
null
null
null
tableauserverclient/server/request_options.py
complexsplit/server-client-python
608aa7694d0560ea3c8c37b10127b11207e56e8d
[ "CC0-1.0", "MIT" ]
null
null
null
tableauserverclient/server/request_options.py
complexsplit/server-client-python
608aa7694d0560ea3c8c37b10127b11207e56e8d
[ "CC0-1.0", "MIT" ]
null
null
null
class RequestOptionsBase(object): def apply_query_params(self, url): raise NotImplementedError() class RequestOptions(RequestOptionsBase): class Operator: Equals = 'eq' GreaterThan = 'gt' GreaterThanOrEqual = 'gte' LessThan = 'lt' LessThanOrEqual = 'lte' ...
29.426087
96
0.593676
e3f41b58d36fb2ccbf5103673501abe76ecb8d0b
3,845
py
Python
tsai/models/RNN_FCN.py
Niklas-groiss-1/tsai
78bdcfb34515fcedd6e87a0a6911662397a8b954
[ "Apache-2.0" ]
null
null
null
tsai/models/RNN_FCN.py
Niklas-groiss-1/tsai
78bdcfb34515fcedd6e87a0a6911662397a8b954
[ "Apache-2.0" ]
null
null
null
tsai/models/RNN_FCN.py
Niklas-groiss-1/tsai
78bdcfb34515fcedd6e87a0a6911662397a8b954
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/107_models.RNN_FCN.ipynb (unless otherwise specified). __all__ = ['RNN_FCN', 'LSTM_FCN', 'GRU_FCN', 'MRNN_FCN', 'MLSTM_FCN', 'MGRU_FCN'] # Cell from ..imports import * from .layers import * # Cell class _RNN_FCN_Base(Module): def __init__(self, c_in, c_out, seq_len...
37.696078
159
0.619766
459737fdbc9fbeb255c2e944da29291479f8afdb
547
py
Python
opt/barbarian/control/hostname.py
go-barbarians/barbarian-base
55b6fca56fcded360099fa7ea823a862b7bd7e62
[ "Apache-2.0" ]
null
null
null
opt/barbarian/control/hostname.py
go-barbarians/barbarian-base
55b6fca56fcded360099fa7ea823a862b7bd7e62
[ "Apache-2.0" ]
null
null
null
opt/barbarian/control/hostname.py
go-barbarians/barbarian-base
55b6fca56fcded360099fa7ea823a862b7bd7e62
[ "Apache-2.0" ]
null
null
null
#!/opt/python27/bin/python import os, sys, getopt, socket def main(argv): fqdn = False try: opts = getopt.gnu_getopt(argv,'f') except getopt.GetoptError: print "usage: hostname [-f]" sys.exit(2) for opt in opts: if opt == '-f': fqdn = True else: fqdn = False ...
19.535714
40
0.550274
c97d81b90f854b4996b394dae2cf1470f6da58fc
143,818
py
Python
youtube_dl/extractor/common.py
nose-gnome/youtube-dl
8d657f3efc6b36753cec07832bdd4fa9274145bb
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/common.py
nose-gnome/youtube-dl
8d657f3efc6b36753cec07832bdd4fa9274145bb
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/common.py
nose-gnome/youtube-dl
8d657f3efc6b36753cec07832bdd4fa9274145bb
[ "Unlicense" ]
1
2021-11-28T04:50:32.000Z
2021-11-28T04:50:32.000Z
# coding: utf-8 from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import random import re import socket import ssl import sys import time import math from ..compat import ( compat_cookiejar_Cookie, compat_cookies_SimpleCookie, compat_et...
46.892077
172
0.546886
509a81e4c8c718cb5aa127bf5b5aa3cc7c9627d7
12,676
py
Python
plugins/modules/oci_opsi_resource_forecast_trend_facts.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_opsi_resource_forecast_trend_facts.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_opsi_resource_forecast_trend_facts.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
35.707042
153
0.591354
60d4c66fabf8b1dd63221291b991b01a550b8fdf
565
py
Python
01_Day_Introduction/helloworld.py
fernandovicentinpavanello/30-days-of-Python
3e04ef64a0997bb71eeac57911e47f2f6414ae75
[ "MIT" ]
1
2022-03-08T07:08:39.000Z
2022-03-08T07:08:39.000Z
01_Day_Introduction/helloworld.py
luizpavanello/30-days-of-Python
3c727a76b6185a5ba684c393c5cdfc759c3c4b01
[ "MIT" ]
null
null
null
01_Day_Introduction/helloworld.py
luizpavanello/30-days-of-Python
3c727a76b6185a5ba684c393c5cdfc759c3c4b01
[ "MIT" ]
null
null
null
# Introduction # Day 1 - 30DaysOfPython Challenge print("Hello World!") print(3 + 5) # addition(+) print(5 - 3) # subtraction(-) print(3 * 5) # multiplication(*) print(5 / 3) # division(/) print(5 ** 2) # exponentiation(**) print(5 % 3) # modulus(%) print(5 // 3) # floor division(//) # Checking data types print(type...
23.541667
52
0.60354
857bb027a84e556b644958b1f5a3836348c0b7a6
2,170
py
Python
experiments/platynereis/cells/train_boundaries.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
13
2021-03-09T21:31:09.000Z
2022-03-21T05:24:26.000Z
experiments/platynereis/cells/train_boundaries.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
16
2021-03-02T23:19:34.000Z
2022-03-25T19:43:41.000Z
experiments/platynereis/cells/train_boundaries.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
4
2021-05-18T08:29:33.000Z
2022-02-11T12:16:20.000Z
import numpy as np import torch_em from torch_em.model import AnisotropicUNet from torch_em.data.datasets import get_platynereis_cell_loader def get_model(): model = AnisotropicUNet( scale_factors=4*[[2, 2, 2]], in_channels=1, out_channels=1, initial_features=32, gain=2, ...
26.144578
70
0.636866
3bc0fdc151b571c594904676f785e61720cd8a74
497
py
Python
tools/configen/setup.py
evdcush/hydra
5a34a01eaa0f0426d967e918a3ecd8ac6fcf9f47
[ "MIT" ]
null
null
null
tools/configen/setup.py
evdcush/hydra
5a34a01eaa0f0426d967e918a3ecd8ac6fcf9f47
[ "MIT" ]
null
null
null
tools/configen/setup.py
evdcush/hydra
5a34a01eaa0f0426d967e918a3ecd8ac6fcf9f47
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from setuptools import find_packages, setup setup( name="hydra-configen", version="0.9.0dev5", packages=find_packages(include=["configen"]), entry_points={"console_scripts": ["configen = configen.configen:mai...
27.611111
76
0.688129
ca487bb7f251a2d4b62b026934630bc25332c8b5
87
py
Python
licenses/config.py
jandolezal/licence
98a51043311f02ab9207731d10695e35e552b85c
[ "MIT" ]
null
null
null
licenses/config.py
jandolezal/licence
98a51043311f02ab9207731d10695e35e552b85c
[ "MIT" ]
null
null
null
licenses/config.py
jandolezal/licence
98a51043311f02ab9207731d10695e35e552b85c
[ "MIT" ]
null
null
null
from configparser import ConfigParser conf = ConfigParser() conf.read('config.ini')
12.428571
37
0.770115
07cb9a55d40dcfa2a4a0e33a9f267e784e8d5f1c
582
py
Python
src/20_busquedalineal.py
EliazBobadilla/POO-y-Algoritmos-con-Python
497f7a294e26220828c325785abf0bac392c3a18
[ "MIT" ]
4
2021-02-28T17:18:10.000Z
2021-06-05T15:19:45.000Z
src/20_busquedalineal.py
EliazBobadilla/POO-y-Algoritmos-con-Python
497f7a294e26220828c325785abf0bac392c3a18
[ "MIT" ]
null
null
null
src/20_busquedalineal.py
EliazBobadilla/POO-y-Algoritmos-con-Python
497f7a294e26220828c325785abf0bac392c3a18
[ "MIT" ]
3
2021-02-28T17:18:12.000Z
2021-06-05T15:19:47.000Z
import random def busqueda_lineal(lista, objetivo): match = False for elemento in lista: # O(n) if elemento == objetivo: match = True break return match if __name__ == "__main__": tamano_de_lista = int(input("De que tamano sera la lista? ")) objetivo = int(inpu...
24.25
86
0.64433
1f847ae38ef86b1d059a23dc84d93be1b3990223
1,890
py
Python
questions/maximum-sum-circular-subarray/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/maximum-sum-circular-subarray/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/maximum-sum-circular-subarray/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C. Here, a circular array means the end of the array connects to the beginning of the array.  (Formally, C[i] = A[i] when 0 <= i < A.length, and C[i+A.length] = C[i] when i >= 0.) Also, a subarray may on...
22.5
209
0.514286
ea818c14dbad8162d2309e8c388e9fc2d4075b00
9,392
py
Python
api/views/site.py
ropon/newpanel
c032a22d2bcf433300e733e074fb7921bcfca733
[ "Apache-2.0" ]
1
2021-09-15T05:34:14.000Z
2021-09-15T05:34:14.000Z
api/views/site.py
ropon/newpanel
c032a22d2bcf433300e733e074fb7921bcfca733
[ "Apache-2.0" ]
null
null
null
api/views/site.py
ropon/newpanel
c032a22d2bcf433300e733e074fb7921bcfca733
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/6/1 16:57 # @Author : Ropon # @File : site.py import json from flask import Blueprint, request from flask_restful import Api, Resource, reqparse from api.models import Site, SiteInfo from api.utils.response import BaseResponse, api_abort from api.util...
42.116592
120
0.580068
c26def24de34feefee0af61fdd2728bcc4ab8c1a
935
py
Python
Newbies/formatting.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2021-12-17T11:03:13.000Z
2021-12-17T11:03:13.000Z
Newbies/formatting.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2020-02-05T00:14:43.000Z
2020-02-06T09:22:49.000Z
Newbies/formatting.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Formatting examples.""" print('{0:9} | {1:8}'.format('Vegetable', 'Quantity')) print('{0:9} | {1:8}'.format('Asparagus', 3)) print('{0:9} | {1:8}'.format('Onions', 10)) print('{0:9} | {1:<8}'.format('Vegetable', 'Quantity')) print('{0:9} | {1:<8}'.format('Asparagus', 3)) print('{0:9} | {1:<8...
34.62963
56
0.567914
b67cae1910e3a352aee25cdea444c02f4e3a7e03
7,124
py
Python
HLACERPipeline/Training/Stanford.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
6
2018-11-03T22:43:35.000Z
2022-02-15T17:51:33.000Z
HLACERPipeline/Training/Stanford.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
2
2019-04-08T03:42:59.000Z
2019-10-28T13:42:59.000Z
HLACERPipeline/Training/Stanford.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
10
2017-04-10T21:40:22.000Z
2022-02-21T16:50:10.000Z
import sys import os import json import glob from Client import ServiceClient import time import sys import traceback sys.path.append('..') from PostTokenizer_Stanford import PostTokenizer from PostSentenceSplitter_Stanford import PostSentenceSplitter from FeatureExtractor import FeatureExtractor from merge_bio import...
35.442786
122
0.726558