hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e8e47f4858bc4b2979d18c8e47033fc1938c720a
4,322
py
Python
tools/run_slurm.py
jhejna/research-lightning
4c7391a4a69d1753089d8e43be19de3e6b3bfe01
[ "MIT" ]
2
2022-01-13T23:15:32.000Z
2022-01-18T21:23:47.000Z
tools/run_slurm.py
jhejna/research-lightning
4c7391a4a69d1753089d8e43be19de3e6b3bfe01
[ "MIT" ]
null
null
null
tools/run_slurm.py
jhejna/research-lightning
4c7391a4a69d1753089d8e43be19de3e6b3bfe01
[ "MIT" ]
null
null
null
import tempfile import subprocess import os import utils import argparse import copy SLURM_LOG_DEFAULT = os.path.join(utils.STORAGE_ROOT, "slurm_logs") SLURM_ARGS = { "partition" : {"type": str, "required": True}, "time" : {"type": str, "default": "48:00:00"}, "nodes": {"type": int, "default": 1}, "nt...
38.247788
99
0.611291
e8e4b232d2850860910a5b307ee117195bfe2665
890
py
Python
server/server/utils/helpers.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
4
2021-07-05T10:49:26.000Z
2021-11-24T11:34:43.000Z
server/server/utils/helpers.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
39
2021-06-21T15:02:37.000Z
2022-02-28T15:07:42.000Z
server/server/utils/helpers.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
17
2021-06-16T08:59:45.000Z
2021-09-29T11:35:38.000Z
def get_nested_obj_attr_value(obj, lookup_str, seperator="__"): """ return the value of an inner attribute of an object e.g. `user__organization__member__organization__slug` would return the organization slug related to the user :object obj: an object. could be model obj :string lookup_str: str to ...
37.083333
112
0.720225
e8e4d87a6a2251eba90e30a1858820aed853db27
15,573
py
Python
lib/python2.7/site-packages/feedgenerator/django/utils/feedgenerator.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/feedgenerator/django/utils/feedgenerator.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/feedgenerator/django/utils/feedgenerator.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
""" Syndication feed generation library -- used for generating RSS, etc. Sample usage: >>> from django.utils import feedgenerator >>> feed = feedgenerator.Rss201rev2Feed( ... title="Poynter E-Media Tidbits", ... link="http://www.poynter.org/column.asp?id=31", ... description="A group Weblog by the sharpes...
39.930769
120
0.611058
e8e4f8caad5f11be99b2da6ecd4b5a1b6f477aff
1,075
py
Python
usecase-5/usecase-5-step-7.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
usecase-5/usecase-5-step-7.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
usecase-5/usecase-5-step-7.py
simonsays881/data-protection
390551984f7da2f7ec8aed65578b79c7059e476b
[ "MIT-0" ]
null
null
null
""" ################################################################ # Making http to authenticate the private domain # # https://alb.workshop.com over a TLS connection # # This is a very simple web app that prints hello world # ########################################################...
38.392857
81
0.44093
e8e4fe34d2be06ceb297dbccf57e8667371033bc
1,769
py
Python
taro/cfgfile.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
taro/cfgfile.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
taro/cfgfile.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
import logging from collections import Iterable from taro import cfg, util, paths LOG_ENABLED = 'log.enabled' LOG_STDOUT_LEVEL = 'log.stdout.level' LOG_FILE_LEVEL = 'log.file.level' LOG_FILE_PATH = 'log.file.path' PERSISTENCE_ENABLED = 'persistence.enabled' PERSISTENCE_TYPE = 'persistence.type' PERSISTENCE_DATABASE =...
40.204545
105
0.765404
e8e5139c10e8091424f36e6ac8023ff9aeb36934
4,287
py
Python
1_code/answer_response/congrat_level.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/answer_response/congrat_level.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/answer_response/congrat_level.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
"""/** * @author [Jai Miles] * @email [jaimiles23@gmail.com] * @create date 2020-05-14 23:34:56 * @modify date 2020-06-16 14:25:30 * @desc [ Utility class for getting congrat level. Methods for: - get excite level - manage excite level - calculate excite level - get level for co...
31.992537
97
0.644507
e8e521fc008f670d1d790180dc345aa0fedc635b
4,605
py
Python
hw2/cs285/infrastructure/utils.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
91
2020-06-13T16:26:42.000Z
2022-03-31T02:49:30.000Z
hw2/cs285/infrastructure/utils.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
6
2020-07-26T15:44:36.000Z
2022-02-10T02:15:10.000Z
hw2/cs285/infrastructure/utils.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
16
2020-08-04T01:17:45.000Z
2022-02-24T04:51:41.000Z
import numpy as np import time ############################################ ############################################ def sample_trajectory(env, policy, max_path_length, render=False, render_mode=('rgb_array')): # initialize env for the beginning of a new rollout ob = env.reset() # init vars o...
38.057851
120
0.605429
e8e5372dc8995bbd6f245eeacee42990787ad404
639
py
Python
cython-template/test.py
pkestene/npcuda-example
3ff4e72b13c05f84bd6e7a4b3e5d0a6308fc91c4
[ "BSD-2-Clause" ]
3
2017-01-21T15:14:44.000Z
2018-02-08T03:05:47.000Z
cython-template/test.py
pkestene/npcuda-example
3ff4e72b13c05f84bd6e7a4b3e5d0a6308fc91c4
[ "BSD-2-Clause" ]
null
null
null
cython-template/test.py
pkestene/npcuda-example
3ff4e72b13c05f84bd6e7a4b3e5d0a6308fc91c4
[ "BSD-2-Clause" ]
null
null
null
import gpuadder import numpy as np import numpy.testing as npt import gpuadder def testing_gpuadder(): # create some input data arr = np.arange(128, dtype=np.float64) # create a gpuadder object adder = gpuadder.GPUAdder_double(arr) # compute on GPU adder.increment() # retrieve resul...
19.96875
47
0.685446
e8e5b1b8023673cb0a96f5cf66dbe1db176703e0
12,281
py
Python
sdk/core/azure-core/tests/async_tests/test_http_logging_policy_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/core/azure-core/tests/async_tests/test_http_logging_policy_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/core/azure-core/tests/async_tests/test_http_logging_policy_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """Tests for the HttpLoggingPolicy.""" import logging import types import pytest import sys from unittest.mock import Mock from azure.core.pipeline import ( Pipelin...
39.873377
103
0.702467
e8e5c1bb98cff9c5d1f2d637b48449471ec2695e
1,042
py
Python
scripts/vis_replay_pool.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
25
2020-12-02T23:13:29.000Z
2022-02-25T07:57:30.000Z
scripts/vis_replay_pool.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
8
2020-12-12T14:11:58.000Z
2021-12-10T20:06:04.000Z
scripts/vis_replay_pool.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
8
2020-12-25T19:43:15.000Z
2021-10-13T02:53:58.000Z
import pickle import gzip import argparse import cv2 import numpy as np import tqdm parser = argparse.ArgumentParser() parser.add_argument('pool', type=str) parser.add_argument('out_path', type=str) args = parser.parse_args() with gzip.open(args.pool, 'rb') as f: data = pickle.load(f) print("Keys:", data.keys()...
24.232558
106
0.646833
e8e5d842c5d34519653fa7bca048fb01e7a30a32
1,289
py
Python
contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/class_factoring.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/class_factoring.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/class_factoring.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import ast from pants.contrib.python.checks.tasks.checkstyle.common import CheckstylePlu...
35.805556
94
0.72692
e8e6496b3f424602d0f864a51162f8f73a2cecf4
696
py
Python
MachineLearning/TP5/plotFit.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP5/plotFit.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP5/plotFit.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from polyFeatures import polyFeatures def plotFit(min_x, max_x, mu, sigma, theta, p): """plots the learned polynomial fit with power p and feature normalization (mu, sigma). """ # We plot a range slightly bigger than the min and max values to get # an id...
25.777778
71
0.66954
e8e67b959c73655de8d997ef6f0f77840d63faf6
862
py
Python
test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.1
114
0.656613
e8e68441218d736dbce1e1fd51aaddd3a69b6b3a
13,128
py
Python
tests/_expression/test_expression_data_util.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_expression/test_expression_data_util.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_expression/test_expression_data_util.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from typing import List from typing import Optional from typing import Tuple from retrying import retry import apysc as ap from apysc._expression import event_handler_scope from apysc._expression import expression_data_util from apysc._expression import indent_num from apysc._exp...
40.02439
77
0.73964
e8e69734b3d5dfcf5802dd497b41433b06e77cc0
908
py
Python
terrascript/pagerduty/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/pagerduty/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/pagerduty/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/pagerduty/d.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class pagerduty_business_service(terrascript.Data): pass class pagerduty_escalation_policy(terrascr...
15.655172
79
0.776432
e8e6c8b87365f965b048f0acdef24d1835f44563
4,263
py
Python
project3/utils.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project3/utils.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
project3/utils.py
HoliestCow/ece692_deeplearning
638c27e0d9c01ec9b0a8be8a85e54937645a897e
[ "MIT" ]
null
null
null
from scipy import misc from skimage.util import random_noise import tensorflow as tf import numpy as np # ############# # # Utilities # # ############# # def xavier_init(fan_in, fan_out, const=1): """ Xavier initialization of network weights. https://stackoverflow.com/questions/33640581/how-to-do-xavier-...
26.153374
94
0.613183
e8e6dfc09d61b9287c26b56fb871b7404d61e1a1
3,142
py
Python
ForFinance/Examples/StockScreener.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
ForFinance/Examples/StockScreener.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
ForFinance/Examples/StockScreener.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
import datetime as dt import pandas as pd from pandas_datareader import data as pdr import yfinance as yf from tkinter import Tk from tkinter.filedialog import askopenfilename import os from pandas import ExcelWriter yf.pdr_override() start =dt.datetime(2017,12,1) now = dt.datetime.now() root = Tk() ftypes = [(".xl...
29.641509
256
0.721197
e8e6e99ad78bb2af707a33f0ad46eebd974864c0
53,468
py
Python
discord/webhook/async_.py
CuzImSyntax/dis.py
2f56d546f2594e1dbb6955c8b13b3a884a04eca6
[ "MIT" ]
1
2021-09-11T13:39:44.000Z
2021-09-11T13:39:44.000Z
discord/webhook/async_.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
discord/webhook/async_.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz 2021-present CuzImSyntax Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
33.606537
125
0.587566
e8e6ea547d1efa829d8672fc714d58a205a32f8e
6,724
py
Python
rl_reliability_metrics/analysis/data_def.py
tfboyd/rl-reliability-metrics
0f517f43d5ef0b032b52dff9c2d38ac5db0da8af
[ "Apache-2.0" ]
1
2020-04-17T18:29:25.000Z
2020-04-17T18:29:25.000Z
rl_reliability_metrics/analysis/data_def.py
muszyna25/rl-reliability-metrics
f5bbb3ce9c90f1bf599c002e843128ab541630a6
[ "Apache-2.0" ]
null
null
null
rl_reliability_metrics/analysis/data_def.py
muszyna25/rl-reliability-metrics
f5bbb3ce9c90f1bf599c002e843128ab541630a6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Authors of RL Reliability Metrics. # # 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 b...
36.345946
80
0.659578
e8e702e9a8629bc6460f73160aed101dc46d6f01
16,035
py
Python
zonebot/commands.py
cotman/zoneminder-slack-bot
2819f5f7152cb92c91253dfd0fb3ee9d8b8647b2
[ "Apache-2.0" ]
null
null
null
zonebot/commands.py
cotman/zoneminder-slack-bot
2819f5f7152cb92c91253dfd0fb3ee9d8b8647b2
[ "Apache-2.0" ]
null
null
null
zonebot/commands.py
cotman/zoneminder-slack-bot
2819f5f7152cb92c91253dfd0fb3ee9d8b8647b2
[ "Apache-2.0" ]
null
null
null
#! -*- coding: utf-8 -*- # # Copyright 2016 Robert Clark (clark@exiter.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 # # U...
31.25731
103
0.555348
e8e724b06b1f64817e62aca9ccc4b0b669910fe6
689
py
Python
app/letters/rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
51
2016-04-03T23:36:17.000Z
2022-03-21T20:04:52.000Z
app/letters/rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
1,335
2015-12-15T14:28:50.000Z
2022-03-30T16:24:27.000Z
app/letters/rest.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
30
2016-01-08T19:05:32.000Z
2021-12-20T16:37:23.000Z
from flask import Blueprint, jsonify, request from app.celery.tasks import process_returned_letters_list from app.config import QueueNames from app.letters.letter_schemas import letter_references from app.schema_validation import validate from app.v2.errors import register_errors letter_job = Blueprint("letter-job", ...
34.45
100
0.818578
e8e73cbe059a6b59b26cf0069913bcdc8067f366
3,563
py
Python
foe/models/player.py
WallyCZ/foe-bot
70322d46ac9c1b28ed5bd70163208d95ed4533e9
[ "MIT" ]
null
null
null
foe/models/player.py
WallyCZ/foe-bot
70322d46ac9c1b28ed5bd70163208d95ed4533e9
[ "MIT" ]
null
null
null
foe/models/player.py
WallyCZ/foe-bot
70322d46ac9c1b28ed5bd70163208d95ed4533e9
[ "MIT" ]
null
null
null
""" """ # Native import time import random import pprint # 3rd-Party from sqlalchemy import Table, Column, ForeignKey, Integer, String, Boolean, Float from sqlalchemy.orm import relationship, backref # from foe.request import Request from foe.models.model import Model from foe.config import config class Player(...
22.550633
140
0.573955
e8e76590327f747761d3ce544b9adfc91a45e729
20,312
py
Python
conpaas-services/src/conpaas/services/webservers/manager/autoscaling/performance.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
1
2015-09-20T18:20:01.000Z
2015-09-20T18:20:01.000Z
conpaas-services/src/conpaas/services/webservers/manager/autoscaling/performance.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
1
2020-07-27T11:56:18.000Z
2020-07-27T11:56:18.000Z
conpaas-services/src/conpaas/services/webservers/manager/autoscaling/performance.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
3
2018-09-14T16:54:14.000Z
2020-07-26T03:14:56.000Z
""" @author: fernandez """ from conpaas.services.webservers.manager.autoscaling import log PATH_LOG_FILE = '/tmp/provisioning.log' log.init(PATH_LOG_FILE) logger = log.create_logger('Autoscaling') DEFAULT_REQUEST_RATE_PREDICTION = 1.2 class ServiceNodePerf(object): """ This class will contain performance info...
67.036304
5,212
0.742369
e8e79348c0b7db64385eb47d72a54eb866835dbf
756
py
Python
heartFEM/lcleeHeart/vtk_py/readPData.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/lcleeHeart/vtk_py/readPData.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/lcleeHeart/vtk_py/readPData.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
######################################################################## import vtk ######################################################################## def readPData(pdata_file_name, verbose=True): if (verbose): print ('*** readPData ***') pdata_reader = vtk.vtkPolyDataReader() pdata_reader.SetFile...
32.869565
72
0.519841
e8e79c32de6df7abf275af142f57d97250a4ae2e
872
py
Python
build-support/bin/black.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
build-support/bin/black.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
build-support/bin/black.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import argparse import subprocess import sys from common import git_merge_base def create_parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser(...
26.424242
83
0.724771
e8e7c836d813347979f335313e5df4ed6c722f02
12,322
py
Python
centraized critic/neurips2020-flatland-baselines-centralized-critic/evaluator2/client.py
HaiDangDang/2020-flatland
abbf2f7f62fabf6da0937f80c2181f1c457ce24a
[ "MIT" ]
null
null
null
centraized critic/neurips2020-flatland-baselines-centralized-critic/evaluator2/client.py
HaiDangDang/2020-flatland
abbf2f7f62fabf6da0937f80c2181f1c457ce24a
[ "MIT" ]
null
null
null
centraized critic/neurips2020-flatland-baselines-centralized-critic/evaluator2/client.py
HaiDangDang/2020-flatland
abbf2f7f62fabf6da0937f80c2181f1c457ce24a
[ "MIT" ]
null
null
null
import hashlib import json import logging import os import random import time import msgpack import msgpack_numpy as m import pickle import numpy as np import redis import flatland from flatland.envs.malfunction_generators import malfunction_from_file from flatland.envs.rail_env import RailEnv from flatland.envs.rail...
35.715942
108
0.580019
e8e7da0cfcf70dc4399b5b3e734c3d8f67ed8f01
1,171
py
Python
setup.py
lstk520/es_odm
2c9f247b2d8d41fa1a8e9439c012ba149e868402
[ "MIT" ]
35
2022-03-06T04:04:33.000Z
2022-03-11T15:20:34.000Z
setup.py
lstk520/es_odm
2c9f247b2d8d41fa1a8e9439c012ba149e868402
[ "MIT" ]
null
null
null
setup.py
lstk520/es_odm
2c9f247b2d8d41fa1a8e9439c012ba149e868402
[ "MIT" ]
1
2022-03-05T19:19:47.000Z
2022-03-05T19:19:47.000Z
from setuptools import setup, find_packages from es_odm import __version__ VERSION_STATUS = "" VERSION_TEXT = f'{__version__}{VERSION_STATUS}' setup( name="es_odm", version=VERSION_TEXT, description="ODM (Object Document Mapper) for Elasticsearch based on Elasticsearch_dsl and Pydantic", long_descr...
28.560976
105
0.6345
e8e7da6ea64f248b113afad6c1d190993afd91fe
729
py
Python
first_largest.py
DustyPage/python_example_programs
fd809861205a7a40edcd8d867723e87910fffde4
[ "MIT" ]
null
null
null
first_largest.py
DustyPage/python_example_programs
fd809861205a7a40edcd8d867723e87910fffde4
[ "MIT" ]
null
null
null
first_largest.py
DustyPage/python_example_programs
fd809861205a7a40edcd8d867723e87910fffde4
[ "MIT" ]
null
null
null
""" Python program to find the largest element and its location. """ def largest_element(a, loc=False): """ Return the largest element of a sequence a. """ try: Largest_value = a[0] location = 0 for i in range(1,len(a)): if a[i] > Largest_value: Largest_va...
24.3
62
0.545953
e8e8188c92dddd46315fdcfa3aed13455f76b0fd
7,750
py
Python
canvas_sdk/methods/sections.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
21
2015-06-12T13:49:04.000Z
2021-11-08T05:37:44.000Z
canvas_sdk/methods/sections.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
44
2015-02-04T15:26:52.000Z
2021-12-03T17:47:00.000Z
canvas_sdk/methods/sections.py
david-house-harvard/canvas_python_sdk
9c2e59621a9a5667bc43c253ef801482b241a2c1
[ "MIT" ]
7
2015-07-20T23:56:03.000Z
2021-02-23T17:13:00.000Z
from canvas_sdk import client, utils def list_course_sections(request_ctx, course_id, include=None, per_page=None, **request_kwargs): """ Returns the list of sections for this course. :param request_ctx: The request context :type request_ctx: :class:RequestContext :param course_id: (re...
37.990196
241
0.698323
e8e83026e890c0d4927417727120751c9a176d7a
800
py
Python
leitor/leitor.py
Lucasgscruz/sistemaVotacaoEletronica
dcdcc9fc5fff8cc55555e95365300e247aa72f81
[ "MIT" ]
null
null
null
leitor/leitor.py
Lucasgscruz/sistemaVotacaoEletronica
dcdcc9fc5fff8cc55555e95365300e247aa72f81
[ "MIT" ]
null
null
null
leitor/leitor.py
Lucasgscruz/sistemaVotacaoEletronica
dcdcc9fc5fff8cc55555e95365300e247aa72f81
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import eel import eleicao as eleicao import qr as qr_code eel.init('leitor_gui') partidos = eleicao.carrega_partidos() candidatos = eleicao.carrega_candidatos() def get_candidados(vetor): """Retorna o dado dos candidatos""" lista_retorno = [] for i in vetor: ...
23.529412
66
0.71375
e8e84b41105cc5de148378230d4c7777f4727527
2,559
py
Python
goal_prox/envs/hand/expert_policy.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
goal_prox/envs/hand/expert_policy.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
goal_prox/envs/hand/expert_policy.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, './') sys.path.insert(0, './rl-toolkit') from rlf import DDPG from rlf import QLearning from rlf.algos.off_policy.her import HerStorage from rlf import run_policy from tests.test_run_settings import TestRunSettings from rlf import RegActorCritic from rlf import DistActorCritic, BasicPolicy...
36.042254
85
0.626417
e8e852c003fafebda54ed559b79b008826a86b34
246
py
Python
werobot/testing.py
shenglihu/WeRoBot
6fd376e3055d0c132720ebe8cc5d442072a2171b
[ "MIT" ]
1,904
2018-04-26T02:05:13.000Z
2022-03-31T11:38:46.000Z
werobot/testing.py
shenglihu/WeRoBot
6fd376e3055d0c132720ebe8cc5d442072a2171b
[ "MIT" ]
422
2018-05-02T14:56:00.000Z
2022-03-29T00:20:01.000Z
werobot/testing.py
shenglihu/WeRoBot
6fd376e3055d0c132720ebe8cc5d442072a2171b
[ "MIT" ]
393
2018-04-28T15:02:09.000Z
2022-03-25T16:24:16.000Z
from .parser import parse_user_msg __all__ = ['WeTest'] class WeTest(object): def __init__(self, app): self._app = app def send_xml(self, xml): message = parse_user_msg(xml) return self._app.get_reply(message)
18.923077
43
0.654472
e8e86953c43d80cbfd99f1cc76aea8a989dbaa82
5,512
py
Python
delfin/api/v1/router.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
null
null
null
delfin/api/v1/router.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
3
2020-05-23T03:24:56.000Z
2020-06-06T02:24:27.000Z
delfin/api/v1/router.py
noelmcloughlin/delfin
6dfa9bdb86d850410c82201f6fa621b4e5ea2917
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SODA Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
42.4
77
0.586538
e8e86ef6994a35bd926171416f650fc6da8c962d
808
py
Python
reasonerAPI/python-flask-server/openapi_server/models/__init__.py
codewarrior2000/molecular-data-provider
820b7db35cf6578f13671caaade2d48811447822
[ "MIT" ]
null
null
null
reasonerAPI/python-flask-server/openapi_server/models/__init__.py
codewarrior2000/molecular-data-provider
820b7db35cf6578f13671caaade2d48811447822
[ "MIT" ]
null
null
null
reasonerAPI/python-flask-server/openapi_server/models/__init__.py
codewarrior2000/molecular-data-provider
820b7db35cf6578f13671caaade2d48811447822
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa from __future__ import absolute_import # import models into model package from openapi_server.models.credentials import Credentials from openapi_server.models.edge import Edge from openapi_server.models.edge_binding import EdgeBinding from openapi_server.models.knowledge_graph import Kno...
42.526316
77
0.875
e8e8913149aaa00575333cc7d113ba3a06e6942e
6,089
py
Python
test/test_json_firmware_update_protocol.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
null
null
null
test/test_json_firmware_update_protocol.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
2
2020-11-16T15:10:36.000Z
2020-11-20T13:10:13.000Z
test/test_json_firmware_update_protocol.py
Wolkabout/WolkGatewayModule-SDK-Python
73cb537822d07cb68b0609022f53171ecf663fa4
[ "Apache-2.0" ]
null
null
null
"""Tests for JsonFirmwareUpdateProtocol.""" # Copyright 2019 WolkAbout Technology s.r.o. # # 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/LICEN...
33.092391
78
0.662178
e8e89d93099190b433b1723aa226ea70e23c9d1f
458
bzl
Python
example/third_party/dom4j.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
example/third_party/dom4j.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
example/third_party/dom4j.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load("@rules_maven_third_party//:import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "dom4j_dom4j", artifact = "dom4j:dom4j:1.6.1", artifact_sha256 = "593552ffea3c5823c6602478b5002a7c525fd904a3c44f1abe4065c22edfac73", srcjar_sha256 ...
35.230769
93
0.694323
e8e8a6b5d519828cf5f162b3405a8c5646c95e78
4,632
py
Python
test/non_hardware/test_common.py
ARMmbed/mbed-flasher
04c7cc1fea88e1406caa674318b4892c5fbbbb81
[ "Apache-2.0" ]
14
2017-07-07T10:20:27.000Z
2021-03-16T15:39:12.000Z
test/non_hardware/test_common.py
ARMmbed/mbed-flasher
04c7cc1fea88e1406caa674318b4892c5fbbbb81
[ "Apache-2.0" ]
89
2016-08-26T17:53:50.000Z
2020-10-30T11:52:29.000Z
test/non_hardware/test_common.py
ARMmbed/mbed-flasher
04c7cc1fea88e1406caa674318b4892c5fbbbb81
[ "Apache-2.0" ]
11
2017-06-14T19:09:05.000Z
2019-02-12T16:35:00.000Z
#!/usr/bin/env python """ Copyright 2016 ARM 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 License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
36.472441
90
0.729491
e8e8c3163828f7802828f4d78efe1a975bd25b50
30,176
py
Python
appengine/monorail/tracker/test/issuebulkedit_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/tracker/test/issuebulkedit_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/tracker/test/issuebulkedit_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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 or at # https://developers.google.com/open-source/licenses/bsd """Unittests for monorail.tracker.issuebulkedit.""" from __future__ import print_function from ...
36.755177
80
0.641901
e8e8e78b508927f429b534b3383d89011ca7375d
467
py
Python
packages/service-library/src/servicelib/requests_utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/service-library/src/servicelib/requests_utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/service-library/src/servicelib/requests_utils.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
from aiohttp import web def get_request(*args, **kwargs) -> web.BaseRequest: """ Helper for handler function decorators to retrieve requests """ request = kwargs.get('request', args[-1] if args else None) if not isinstance(request, web.BaseRequest): msg = ("Incorrect decorator usage. " ...
31.133333
67
0.633833
e8e9043ab6518c3a1224749b63ad6134644d9f27
2,783
py
Python
alipay/aop/api/domain/RepairItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/RepairItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/RepairItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class RepairItem(object): def __init__(self): self._part_id = None self._pay_type = None self._price = None self._repair_degree = None self._repair_type = None ...
27.554455
77
0.570967
e8e9065635f5dab1e7b85984d172c55e94d1a04d
2,552
py
Python
proposed/security/authorized_keys.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
proposed/security/authorized_keys.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
proposed/security/authorized_keys.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
""" authorized key management. """ # TODO: needs nosetests import io import itertools import os.path from six import itervalues from cloudmesh.common.Shell import Subprocess from cm4.common.util import tempdir # TODO: use our simple subprocess wrapper ? def get_fingerprint_from_public_key(pubkey): """Generate...
22.785714
66
0.554467
e8e92996951221674a5d35d79d676c6bcbedfb63
919
py
Python
venv/bin/rst2xetex.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
null
null
null
venv/bin/rst2xetex.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
1
2021-06-02T00:48:18.000Z
2021-06-02T00:48:18.000Z
venv/bin/rst2xetex.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
null
null
null
#!/Users/sahabt/PycharmProjects/RobotAppiumProject/venv/bin/python # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: import locale ...
32.821429
77
0.682263
e8e92e7b5d85a265f1844433e63276bc981b1b21
9,676
py
Python
ucscsdk/mometa/vnic/VnicLifVlan.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/vnic/VnicLifVlan.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/vnic/VnicLifVlan.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for VnicLifVlan ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class VnicLifVlanConsts(): ADDR_DERIVED = "derived" DEFAULT_NET_FALSE = "false" DEFAULT...
83.413793
3,445
0.719305
e8e947296872cac6dde06dd9c350da7c09af83eb
2,823
py
Python
cortex/raw/survey.py
dcurrey88/LAMP-cortex
90aea3f84b7c202eb7f39d2030c8024dd3fc131b
[ "BSD-3-Clause" ]
null
null
null
cortex/raw/survey.py
dcurrey88/LAMP-cortex
90aea3f84b7c202eb7f39d2030c8024dd3fc131b
[ "BSD-3-Clause" ]
null
null
null
cortex/raw/survey.py
dcurrey88/LAMP-cortex
90aea3f84b7c202eb7f39d2030c8024dd3fc131b
[ "BSD-3-Clause" ]
null
null
null
from ..feature_types import raw_feature, log import LAMP @raw_feature( name='lamp.survey', dependencies=['lamp.survey'] ) def survey(replace_ids=True, limit=2147483647, cache=True, **kwargs): """ Get survey events for participant :param replace_ids (bool): TODO. :param limit (int): TODO. ...
42.772727
116
0.592278
e8e9870d69fc40b99b1065977c37b3bc99e801a9
925
py
Python
freezeyt/status_handlers.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
7
2020-09-23T15:27:09.000Z
2022-03-20T19:31:41.000Z
freezeyt/status_handlers.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
160
2020-07-06T17:58:35.000Z
2022-03-30T13:06:07.000Z
freezeyt/status_handlers.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
10
2020-07-06T18:05:10.000Z
2022-03-12T21:20:11.000Z
from freezeyt.hooks import TaskInfo from freezeyt.util import add_port def warn(task: TaskInfo) -> str: print( f"WARNING: URL {task.get_a_url()}," + f" status code: {task._task.response_status[:3]} was freezed" ) return 'save' def follow(task: TaskInfo) -> str: location = task._task...
22.560976
71
0.669189
e8e98a90c525e318c7d9035ecf6f0978d80fd65c
1,908
py
Python
grab/spider/queue_backend/mongodb.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
2,266
2015-01-01T08:47:33.000Z
2022-03-21T05:02:55.000Z
grab/spider/queue_backend/mongodb.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
221
2015-01-13T01:55:57.000Z
2022-02-25T23:23:35.000Z
grab/spider/queue_backend/mongodb.py
dimichxp/grab
5fedee3009c18c8a1139b0f82736ebe473021b46
[ "MIT" ]
315
2015-01-23T06:38:55.000Z
2022-03-27T08:33:33.000Z
try: import Queue as queue except ImportError: import queue try: import cPickle as pickle except ImportError: import pickle import logging from datetime import datetime from bson import Binary import pymongo from grab.spider.queue_backend.base import QueueInterface # pylint: disable=invalid-name logg...
27.257143
73
0.633648
e8e98d62f2ccfd14c14fca009acc594ad6171996
9,415
py
Python
python/204-depth_first_search.py
kevinbeirne1/udemy_master_coding_interview
44f082d4bb5e65a5f39347b82df97859b79cf8cc
[ "MIT" ]
null
null
null
python/204-depth_first_search.py
kevinbeirne1/udemy_master_coding_interview
44f082d4bb5e65a5f39347b82df97859b79cf8cc
[ "MIT" ]
null
null
null
python/204-depth_first_search.py
kevinbeirne1/udemy_master_coding_interview
44f082d4bb5e65a5f39347b82df97859b79cf8cc
[ "MIT" ]
null
null
null
import unittest from collections import deque class Node: def __init__(self, value): self.value = value self.right = None self.left = None def __str__(self): children = "" if self.left or self.right: children = f" [{self.left} - {self.right}]" retur...
30.568182
79
0.582262
e8e9962e1b819b455adcbf9b09c32916e2d8e87a
4,311
py
Python
planning_pipeline.py
jw207427/dataflow-test
f04216e094b3623c7087a645a88054e22532986c
[ "MIT" ]
null
null
null
planning_pipeline.py
jw207427/dataflow-test
f04216e094b3623c7087a645a88054e22532986c
[ "MIT" ]
null
null
null
planning_pipeline.py
jw207427/dataflow-test
f04216e094b3623c7087a645a88054e22532986c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from past.builtins import unicode import argparse import logging import re import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions import os import json # load the Service Account json file to allow GCP resources to be used os.environ['GOOGLE_A...
39.550459
94
0.597773
e8e9a4e0723b9ee662dd7e9986ce415d6cbda84f
5,808
py
Python
train.py
ankye/Tacotron-2
e0cd46ece5d96948d684f29a224d9b7154976752
[ "MIT" ]
5
2019-04-11T02:45:04.000Z
2019-05-22T11:58:15.000Z
train.py
ankye/Tacotron-2
e0cd46ece5d96948d684f29a224d9b7154976752
[ "MIT" ]
1
2019-12-30T08:23:36.000Z
2020-02-22T02:15:31.000Z
train.py
ankye/Tacotron-2
e0cd46ece5d96948d684f29a224d9b7154976752
[ "MIT" ]
4
2019-05-29T14:29:46.000Z
2020-02-21T13:16:57.000Z
import argparse import os from time import sleep import infolog import tensorflow as tf from hparams import hparams from infolog import log from tacotron.synthesize import tacotron_synthesize from tacotron.train import tacotron_train from wavenet_vocoder.train import wavenet_train log = infolog.log def save_seq(fil...
41.784173
146
0.696281
e8e9b6b9e8dc644bb821cf038af0e43dd773a028
369
py
Python
tests/test_compat.py
deaglancrew/MonkeyType
d582ee3914f9eee1fdfb76a57bb9f4206e017ceb
[ "BSD-3-Clause" ]
3,890
2017-12-14T05:53:56.000Z
2022-03-31T17:34:58.000Z
tests/test_compat.py
deaglancrew/MonkeyType
d582ee3914f9eee1fdfb76a57bb9f4206e017ceb
[ "BSD-3-Clause" ]
215
2017-12-14T19:24:24.000Z
2022-03-23T21:35:07.000Z
tests/test_compat.py
deaglancrew/MonkeyType
d582ee3914f9eee1fdfb76a57bb9f4206e017ceb
[ "BSD-3-Clause" ]
173
2017-12-14T19:12:43.000Z
2022-03-23T16:04:31.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. from typing import Union from monkeytype.compat import name_of_generic def test_name_of_union(): typ = Union[int,...
26.357143
71
0.750678
e8e9c7ee88b86aa0b6a01cb29a3e887b20c0786d
1,221
py
Python
plugins/messagecounting.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
plugins/messagecounting.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
4
2021-12-10T06:18:12.000Z
2022-03-24T14:43:57.000Z
plugins/messagecounting.py
Friskytool/command-handler
2c0c7eecc8afe7898650dfc69d1c8816448c2480
[ "MIT" ]
null
null
null
from squid.bot import command, SquidPlugin from discord import Embed from squid.bot.errors import BotInInput, CommandFailed class MessageCounting(SquidPlugin): def __init__(self, bot): self.bot = bot @command() def messages(self, ctx, user=None): """ Get's your current messages ...
26.543478
77
0.505324
e8e9eadcf254dfc15e6a548956a1f3a97518daf5
6,986
py
Python
PythonModules/CheckEnum.py
sschukat/PyNetExamples
0388bfea1e92405aee7d8fccd6e9186506b62493
[ "MIT" ]
6
2018-06-09T03:49:43.000Z
2019-12-04T07:10:23.000Z
PythonModules/CheckEnum.py
sschukat/PyNetExamples
0388bfea1e92405aee7d8fccd6e9186506b62493
[ "MIT" ]
null
null
null
PythonModules/CheckEnum.py
sschukat/PyNetExamples
0388bfea1e92405aee7d8fccd6e9186506b62493
[ "MIT" ]
null
null
null
# # Copyright (c) Stefan Schukat. All rights reserved. # Licensed under the MIT License. See LICENSE file in the project root for full license information. # import clr import re __all__ = ("NetEnum", "ConstantTypes") # ---------------------------------------------------------------------------- # Read only ...
32.64486
107
0.578872
e8e9f4f43776ac1cd7e25bfe60b6edbcd01a0e99
4,114
py
Python
toontown/coghq/CountryClubRoomSpecs.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/CountryClubRoomSpecs.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/CountryClubRoomSpecs.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.toonbase.ToonPythonUtil import invertDict from toontown.toonbase import ToontownGlobals from toontown.coghq import BossbotCountryClubFairwayRoom_Battle00_Cogs from toontown.coghq import BossbotCountryClubMazeRoom_Battle00_Cogs from toontown.coghq import BossbotCountryClubMazeRoom_Battle01_Cogs from toonto...
48.97619
131
0.871172
e8ea235696d15b1bc0fc74559960c400345ec18c
15,910
py
Python
aiohttp_client_cache/backends/base.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
aiohttp_client_cache/backends/base.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
aiohttp_client_cache/backends/base.py
akursar/aiohttp-client-cache
8bddc511c46fb5dfe06e7638a963d8a262adecc7
[ "MIT" ]
null
null
null
import hashlib import pickle from abc import ABCMeta, abstractmethod from collections import UserDict from datetime import datetime, timedelta from fnmatch import fnmatch as glob_match from logging import getLogger from typing import Callable, Dict, Iterable, Optional, Union from urllib.parse import parse_qsl, urlparse...
39.577114
108
0.65506
e8ea354bd0a2b7f67782db8531df865f7bb2e5f1
7,583
py
Python
sunpy/util/decorators.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/util/decorators.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/util/decorators.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst """Sundry function and class decorators.""" from __future__ import print_function import functools import inspect import textwrap import types import warnings from sunpy.util.exceptions import SunpyDeprecationWarning from sunpy....
33.702222
79
0.615192
e8ea3d5cd9306fba32826520339f2ffcda53d7cb
149
py
Python
loop_break.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
loop_break.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
loop_break.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
# 在while循环中,break的作用也是一样的。 for i in range(1, 6): print 'i =', i, print 'Hello, how', if i == 3: break print 'are you today?'
18.625
26
0.536913
e8ea5abfbd8ea13f7e687d19d88f28430a3fabaf
83,182
py
Python
tensorflow/python/training/saver.py
zhong110020/tensorflow
b79ce0029dce3264266ced739590bc238b17096c
[ "Apache-2.0" ]
2
2018-12-05T17:34:20.000Z
2019-01-07T01:59:19.000Z
tensorflow/python/training/saver.py
qins0426/tensorflow
b79ce0029dce3264266ced739590bc238b17096c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/training/saver.py
qins0426/tensorflow
b79ce0029dce3264266ced739590bc238b17096c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.126387
176
0.684307
e8ea6d37b0da190be7f90898ad097179c3df48fd
2,302
py
Python
ROS_WS/site_ws/src/site_model/src/tools/radar_listener.py
OrangeSodahub/ROS-WS
5b3c56ea1b46025298360eed9c06f25f7c5f7fe6
[ "MIT" ]
1
2022-03-20T19:16:06.000Z
2022-03-20T19:16:06.000Z
ROS_WS/site_ws/src/site_model/src/tools/radar_listener.py
OrangeSodahub/ROS-WS
5b3c56ea1b46025298360eed9c06f25f7c5f7fe6
[ "MIT" ]
null
null
null
ROS_WS/site_ws/src/site_model/src/tools/radar_listener.py
OrangeSodahub/ROS-WS
5b3c56ea1b46025298360eed9c06f25f7c5f7fe6
[ "MIT" ]
null
null
null
############################################################# # This py file subscribe the topic of radars and save # # the poses information of vehicles. # # Author: Yangxiuyu # ############################################################# from sqlalchemy import true...
46.979592
98
0.692441
e8ea7c1569053d6e2d39c21a5100c9b1871f4775
799
py
Python
igibson/test/test_glfw_renderer.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
igibson/test/test_glfw_renderer.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
igibson/test/test_glfw_renderer.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
import cv2 import numpy as np from igibson.core.render.mesh_renderer.mesh_renderer_cpu import MeshRenderer renderer = MeshRenderer(width=512, height=512) renderer.load_object( "C:\\Users\\shen\\Desktop\\GibsonVRStuff\\vr_branch\\gibsonv2\\igibson\\assets\\datasets\\Ohoopee\\Ohoopee_mesh_texture.obj" ) renderer.ad...
31.96
128
0.763454
e8ea7efc3056133a4d14c1fb2fb6cd52fd5f85d4
764
py
Python
tests/conftest.py
greggles/cutadapt
fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0
[ "MIT" ]
375
2015-01-16T14:04:50.000Z
2022-03-16T02:19:43.000Z
tests/conftest.py
greggles/cutadapt
fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0
[ "MIT" ]
589
2015-03-05T20:06:03.000Z
2022-03-29T22:49:56.000Z
tests/conftest.py
greggles/cutadapt
fb3e8f0828c2cb92bfaea69d91ffb539ab24cdd0
[ "MIT" ]
150
2015-02-10T12:19:40.000Z
2022-03-25T05:06:50.000Z
import os import pytest from utils import assert_files_equal, datapath, cutpath from cutadapt.__main__ import main from cutadapt.report import Statistics @pytest.fixture(params=[1, 2]) def cores(request): return request.param @pytest.fixture def run(tmp_path): def _run(params, expected, inpath) -> Statisti...
26.344828
73
0.660995
e8ea8880d1775633e1313ecae510f20669eebcd7
58,958
py
Python
Lib/fontTools/cffLib.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
null
null
null
Lib/fontTools/cffLib.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
null
null
null
Lib/fontTools/cffLib.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
1
2019-08-14T15:57:38.000Z
2019-08-14T15:57:38.000Z
"""cffLib.py -- read/write tools for Adobe CFF fonts.""" from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * from fontTools.misc import sstruct from fontTools.misc import psCharStrings from fontTools.misc.textTools import safeEval import struct import logging # mute cff...
31.494658
768
0.691747
e8ea9e9b1f323f8b90ea6007f2217f5ff1f49126
2,873
py
Python
client/app.py
alwaysai/object-detection-server
b82912649defe586dc7f553df5b48161fe092d45
[ "Apache-2.0" ]
null
null
null
client/app.py
alwaysai/object-detection-server
b82912649defe586dc7f553df5b48161fe092d45
[ "Apache-2.0" ]
null
null
null
client/app.py
alwaysai/object-detection-server
b82912649defe586dc7f553df5b48161fe092d45
[ "Apache-2.0" ]
null
null
null
import socket import cv2 import numpy as np import os def pack_msg_length(data: bytes): ''' Returns the length of message packed into four bytes. ''' return len(data).to_bytes(4, byteorder='little') def unpack_msg_length(data: bytes): ''' Returns the integer value of the data. ''' re...
26.357798
77
0.632788
e8ead4c12775f8ab1cbdf9b2d883e4c20a33ca32
5,155
py
Python
test/util/test_multicast.py
kpine/zwave-js-server-python
d32eaa9b81b344ccc9c3155a8f71b108a8ec1715
[ "Apache-2.0" ]
1
2021-06-08T20:41:21.000Z
2021-06-08T20:41:21.000Z
test/util/test_multicast.py
kpine/zwave-js-server-python
d32eaa9b81b344ccc9c3155a8f71b108a8ec1715
[ "Apache-2.0" ]
null
null
null
test/util/test_multicast.py
kpine/zwave-js-server-python
d32eaa9b81b344ccc9c3155a8f71b108a8ec1715
[ "Apache-2.0" ]
null
null
null
"""Test node utility functions.""" from zwave_js_server.const import CommandClass from zwave_js_server.util.multicast import ( async_multicast_endpoint_get_cc_version, async_multicast_endpoint_supports_cc, async_multicast_get_endpoint_count, async_multicast_set_value, ) async def test_endpoint_get_cc_...
29.457143
85
0.663822
e8eb269908385105fbac750bd4c7793139e62219
450
py
Python
invenio_previewer/version.py
max-moser/invenio-previewer
c2f86b9284f5c57a4b881e97735f5a9fbbc710b6
[ "MIT" ]
null
null
null
invenio_previewer/version.py
max-moser/invenio-previewer
c2f86b9284f5c57a4b881e97735f5a9fbbc710b6
[ "MIT" ]
null
null
null
invenio_previewer/version.py
max-moser/invenio-previewer
c2f86b9284f5c57a4b881e97735f5a9fbbc710b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2016-2019 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Version information for Invenio-Previewer. This file is imported by ``invenio_pre...
25
72
0.728889
e8eb577f2a8155c306d72df1fbc67e4930731b24
12,351
py
Python
Allura/allura/tests/functional/test_home.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
Allura/allura/tests/functional/test_home.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
Allura/allura/tests/functional/test_home.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "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 (t...
44.588448
117
0.582301
e8eb5ab635f618828c3e414ea49a3909c170baec
438
py
Python
(1)Text/re_flags_ignorecase.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(1)Text/re_flags_ignorecase.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(1)Text/re_flags_ignorecase.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
import re text = 'This is some text -- with punctuation.' pattern = r'\bT\w+' with_case = re.compile(pattern) without_case = re.compile(pattern, re.IGNORECASE) print('Text:\n {!r}'.format(text)) print('Pattern:\n {}'.format(pattern)) print('Case-sensitive:') for match in with_case.findall(text): print(' {!r}'.for...
25.764706
49
0.682648
e8eb75230f117a6f7a096df6fc32ec44159c3f63
466
py
Python
Week 3/day 20 + 21 - Snake/food.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
1
2021-07-26T05:31:57.000Z
2021-07-26T05:31:57.000Z
Week 3/day 20 + 21 - Snake/food.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
Week 3/day 20 + 21 - Snake/food.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
from turtle import Turtle import random class Food(Turtle): def __init__(self): super().__init__() self.shape('circle') self.penup() # self.shapesize(0.5, 0.5) self.color('red') self.speed('fastest') self.move_food() def move_food(self): coords = [-14, -13, -12, -11, -10, -9, -8, -...
29.125
124
0.575107
e8eb9a1d3bebad4d3d1915e431b242ba2bc26b32
12,785
py
Python
src/ui_userinfo.py
showmethecoin/upbit-trader
f29f0e6074c4cc2296ca098f7d53cac5dd780881
[ "Apache-2.0" ]
8
2021-04-30T08:30:21.000Z
2022-03-08T13:35:36.000Z
src/ui_userinfo.py
showmethecoin/upbit-trader
f29f0e6074c4cc2296ca098f7d53cac5dd780881
[ "Apache-2.0" ]
4
2021-04-30T09:39:35.000Z
2021-05-08T15:24:08.000Z
src/ui_userinfo.py
showmethecoin/upbit-trader
f29f0e6074c4cc2296ca098f7d53cac5dd780881
[ "Apache-2.0" ]
4
2021-11-24T06:53:40.000Z
2022-03-21T04:20:31.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'userinfo.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from widget_piechart import Pi...
43.486395
104
0.673837
e8ebf111a01b95ef04409aa47fd0efff101bf39f
3,551
py
Python
psdns/tests/__init__.py
lanl/PsDNS
2fcb12d52e522906c93d7a28e5397cae81feb376
[ "BSD-3-Clause" ]
1
2022-03-10T21:34:31.000Z
2022-03-10T21:34:31.000Z
psdns/tests/__init__.py
lanl/PsDNS
2fcb12d52e522906c93d7a28e5397cae81feb376
[ "BSD-3-Clause" ]
null
null
null
psdns/tests/__init__.py
lanl/PsDNS
2fcb12d52e522906c93d7a28e5397cae81feb376
[ "BSD-3-Clause" ]
null
null
null
"""Unit testing for PsDNS PsDNS uses Python :mod:`unittest` for several purposes: 1. Conventional unit testing. 2. Parallel scaling tests. 3. Formal code verification. For this reason, some of the tests are longer than typical for pure unit testing. Users may prefer to run only subsets of the complete test su...
31.424779
78
0.661785
e8ebf6bcebc9bcd0b25ad4e2003096d66c53f6d8
2,535
py
Python
sdk/healthcareapis/azure-mgmt-healthcareapis/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/healthcareapis/azure-mgmt-healthcareapis/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/healthcareapis/azure-mgmt-healthcareapis/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.256757
91
0.606312
e8ec0c03316ed6cadde2491829c1cddd9890c496
19,541
py
Python
bootstrap/syntax.py
Hugo4IT/Hug
01f3fbdfe3967000fef35ec91e05b3d6b0c4f9a2
[ "MIT" ]
1
2022-02-07T18:08:36.000Z
2022-02-07T18:08:36.000Z
bootstrap/syntax.py
Hugo4IT/Hug
01f3fbdfe3967000fef35ec91e05b3d6b0c4f9a2
[ "MIT" ]
null
null
null
bootstrap/syntax.py
Hugo4IT/Hug
01f3fbdfe3967000fef35ec91e05b3d6b0c4f9a2
[ "MIT" ]
null
null
null
import os import logging import colorama from .symbol import Symbol, Type from .lexer import Lexer, Lexem, LIdent, LKeyword, LMisc, LLiteral, LOperator ASSIGNMENT_OPERATORS = [ LOperator.ADDASSIGN, LOperator.BITWISEANDASSIGN, LOperator.BITWISEORASSIGN, LOperator.BITWISEXORASSIGN, LOperator.DIVASSIGN, LOperator...
41.933476
170
0.550842
e8ec1774999bfaa8837e2b48e16d1012a7df7a98
19,138
py
Python
fairseq/options.py
alphadl/SCA
354c84322905fb44425d5bd7eeb42f876b7ab41b
[ "BSD-3-Clause" ]
29
2019-05-24T07:11:09.000Z
2021-12-28T02:13:18.000Z
fairseq/options.py
alphadl/SCA
354c84322905fb44425d5bd7eeb42f876b7ab41b
[ "BSD-3-Clause" ]
21
2019-05-31T03:10:00.000Z
2020-08-17T09:29:48.000Z
fairseq/options.py
alphadl/SCA
354c84322905fb44425d5bd7eeb42f876b7ab41b
[ "BSD-3-Clause" ]
14
2019-06-20T05:14:41.000Z
2022-01-08T10:27:50.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import argparse import torch fro...
49.071795
122
0.630369
e8ec6711d34ac3276b2d87b79c833a4c2d492a8e
125
py
Python
src/test/resources/loaderTestData/testcoverage/python_coverage/project/sup/module3.py
jacksonpradolima/comfort
30b6d845716f9cd4ba8639b168a8520cb56c6f30
[ "Apache-2.0" ]
2
2020-05-25T15:19:57.000Z
2020-12-07T07:58:19.000Z
src/test/resources/loaderTestData/testcoverage/python_coverage/project/sup/module3.py
jacksonpradolima/comfort
30b6d845716f9cd4ba8639b168a8520cb56c6f30
[ "Apache-2.0" ]
2
2020-05-25T16:44:15.000Z
2020-05-25T17:44:18.000Z
src/test/resources/loaderTestData/testcoverage/python_coverage/project/sup/module3.py
jacksonpradolima/comfort
30b6d845716f9cd4ba8639b168a8520cb56c6f30
[ "Apache-2.0" ]
1
2020-05-25T16:44:57.000Z
2020-05-25T16:44:57.000Z
import testproject.module1 def blub(a, b): return testproject.module1.sum(a, b) def notTestedMethod(a): return a
12.5
40
0.704
e8ec6dda0ffce59e0dbbe1a3c758b653c44d048a
33,139
py
Python
spring1617_assignment2/cs231n/layers.py
liaison/cs231n
2d48724d94a06006f067ce72d4a2e7881f7194d8
[ "MIT" ]
1
2018-05-24T20:28:08.000Z
2018-05-24T20:28:08.000Z
spring1617_assignment2/cs231n/layers.py
liaison/cs231n
2d48724d94a06006f067ce72d4a2e7881f7194d8
[ "MIT" ]
null
null
null
spring1617_assignment2/cs231n/layers.py
liaison/cs231n
2d48724d94a06006f067ce72d4a2e7881f7194d8
[ "MIT" ]
null
null
null
from builtins import range import numpy as np def affine_forward(x, w, b): """ Computes the forward pass for an affine (fully-connected) layer. The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each ...
41.064436
90
0.473943
e8ec8750f9d5811735e77a6a9e137f6632bc42a9
41
py
Python
modules/templates/GIMS/models/__init__.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/GIMS/models/__init__.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/GIMS/models/__init__.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
DEFAULT = lambda: None from . import cr
10.25
22
0.707317
e8eca3bf89447d3d7b0d1ee69a81222a6e7f5167
2,046
py
Python
django_short_urls/exceptions.py
olivierlefloch/django-short-urls
7d6c7f37e2678060d1b36cbb00cbeebb2278cbf2
[ "MIT" ]
1
2015-09-16T23:11:55.000Z
2015-09-16T23:11:55.000Z
django_short_urls/exceptions.py
olivierlefloch/django-short-urls
7d6c7f37e2678060d1b36cbb00cbeebb2278cbf2
[ "MIT" ]
34
2019-02-03T06:02:55.000Z
2020-03-27T13:14:50.000Z
django_short_urls/exceptions.py
olivierlefloch/django-short-urls
7d6c7f37e2678060d1b36cbb00cbeebb2278cbf2
[ "MIT" ]
null
null
null
# coding=utf-8 """Shared exceptions for the Django Short Urls application""" from __future__ import unicode_literals import re from .w4l_http import URL_SAFE_FOR_PATH class InvalidHashException(Exception): """An exception that can store the invalid hash""" MESSAGE_TEMPLATE = '"%s" is an invalid hash.' ...
29.652174
91
0.677419
e8eca4f4816f680d7f79957d51906ecd55532574
1,182
py
Python
src/oscar/management/commands/oscar_generate_email_content.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/management/commands/oscar_generate_email_content.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/management/commands/oscar_generate_email_content.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from oscar.core.loading import get_class, get_model Order = get_model('order', 'Order') CommunicationEventType = get_model('customer', 'CommunicationEventType') Dispatcher = get_class('customer.utils', 'Dispatcher') class Command(BaseCommand...
36.9375
77
0.63198
e8ecacdaab7b55b8d601a023dacc8cb8f1a2cdcb
2,537
py
Python
tests/test_utils/mock_process.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
3
2015-08-25T13:56:44.000Z
2020-03-21T10:26:58.000Z
tests/test_utils/mock_process.py
joshowen/airflow
d0cf232919839d0e338dcc38a5c7a1841077eaae
[ "Apache-2.0" ]
4
2016-04-15T12:31:24.000Z
2020-03-03T12:56:08.000Z
tests/test_utils/mock_process.py
santecapital/airflow
7f02e56c9cb8b548624d13e9c2c2b89d753f996b
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2018-07-24T08:54:45.000Z
2018-08-31T13:41:50.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...
28.829545
93
0.649586
e8ecb28104a72bf1d2dc3a7ba46a1006c5df2ce5
2,050
py
Python
proj01_ifelse/proj01.py
hawiab/VSA18
852902f96f97d62e4cfbc8e997c96b305754bf5b
[ "MIT" ]
null
null
null
proj01_ifelse/proj01.py
hawiab/VSA18
852902f96f97d62e4cfbc8e997c96b305754bf5b
[ "MIT" ]
null
null
null
proj01_ifelse/proj01.py
hawiab/VSA18
852902f96f97d62e4cfbc8e997c96b305754bf5b
[ "MIT" ]
null
null
null
# Name: Hawi Abraham # Date: 07/09/18 # proj01: A Simple Program # Part I: # This program asks the user for his/her name and grade. # Then, it prints out a sentence that says the number of years until they graduate. # Variables UserName = raw_input("Hello. What is your name? ") UserGrade = raw_input("What grade are ...
35.344828
112
0.70439
e8ecd6891539346ae64c574ca13725b696e232c5
579
py
Python
Python/turing_machine.py
MasterOdin/TurningMachine
c735c38f8eb3d663e1e83f0a2c2fae9b63980e58
[ "MIT" ]
null
null
null
Python/turing_machine.py
MasterOdin/TurningMachine
c735c38f8eb3d663e1e83f0a2c2fae9b63980e58
[ "MIT" ]
null
null
null
Python/turing_machine.py
MasterOdin/TurningMachine
c735c38f8eb3d663e1e83f0a2c2fae9b63980e58
[ "MIT" ]
null
null
null
""" Turing Machine simulator driver """ from __future__ import print_function import json from turing_machine.Machine import Machine def _main(machine_filename, tape): """ Runs the turing machine simulator """ with open(machine_filename) as json_file: json_data = json.load(json_file) tmach...
24.125
45
0.677029
e8ed05abcaeda245f5dc8d479965961ad93fffe8
1,396
py
Python
src/core/modules/services/openapi.py
ConnectAPI/Gateway
95fc283ff8c730353709ebe14f613e74821c45a5
[ "MIT" ]
null
null
null
src/core/modules/services/openapi.py
ConnectAPI/Gateway
95fc283ff8c730353709ebe14f613e74821c45a5
[ "MIT" ]
null
null
null
src/core/modules/services/openapi.py
ConnectAPI/Gateway
95fc283ff8c730353709ebe14f613e74821c45a5
[ "MIT" ]
null
null
null
from typing import Dict, Any from copy import deepcopy from .services import get_services def openapi_schema(): services = get_services() merged_schema: Dict[str, Any] = { "openapi": "3.0.2", "info": { "title": "APIGateway", "version": "0.1.0" }, ...
31.022222
98
0.429083
e8ed276c48994357e2228f15cc72491223b74863
4,701
py
Python
code/assignment5_sol.py
paulgribble/CompNeuro
f586944c0c3254976203d29f096ecf80e175bff4
[ "CC-BY-4.0" ]
16
2015-10-08T21:38:22.000Z
2021-04-08T16:55:16.000Z
code/assignment5_sol.py
paulgribble/CompNeuro
f586944c0c3254976203d29f096ecf80e175bff4
[ "CC-BY-4.0" ]
null
null
null
code/assignment5_sol.py
paulgribble/CompNeuro
f586944c0c3254976203d29f096ecf80e175bff4
[ "CC-BY-4.0" ]
5
2015-06-29T20:50:26.000Z
2018-01-16T08:59:56.000Z
# ipython --pylab # load in the functions and parameters from twojointarm.py %load twojointarm.py # Question 1 H1 = [-0.20, -.55] movdist = 0.10 movtime = 0.50 npts = 20 ncirc = 8 angs = linspace(0,360,ncirc+1)*pi/180 angs = angs[0:-1] figure(figsize=(6,9)) for i in range(ncirc): H2x = H1[0] + movdist*cos(angs[i]) ...
28.664634
70
0.659647
e8ed7787033ff6cb3e6a4d7778878038ac47a99d
3,171
py
Python
aesara/tensor/utils.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
1
2021-08-10T20:20:22.000Z
2021-08-10T20:20:22.000Z
aesara/tensor/utils.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
aesara/tensor/utils.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import aesara from aesara.utils import hash_from_code def hash_from_ndarray(data): """ Return a hash from an ndarray. It takes care of the data, shapes, strides and dtype. """ # We need to hash the shapes and strides as hash_from_code only hashes # the data buffer. Otherw...
29.361111
84
0.640492
e8ed855dcdb045b77807483cdcb090747dd7f815
8,155
py
Python
handcam/tensorflow/uw/prepare_UW_tfrecords_split_fast.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
1
2022-02-10T13:19:20.000Z
2022-02-10T13:19:20.000Z
handcam/tensorflow/uw/prepare_UW_tfrecords_split_fast.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
null
null
null
handcam/tensorflow/uw/prepare_UW_tfrecords_split_fast.py
luketaverne/handcam
e294ebf2be8b5512c8607d3c8ba3f6946f3b8e30
[ "MIT" ]
null
null
null
# Import SlackerGPU to set env variables, import tf (tf 1.4) import data_aug_uw from handcam.ltt.util import SlackerGPU slackerGPU = SlackerGPU.SlackerGPU( username="ltaverne", desired_server="ait-server-03", num_gpus=0 ) import tensorflow as tf flags = tf.app.flags # State your dataset directory flags.DEFINE_s...
32.361111
154
0.646842
e8edcb7fd39a4a4fdcd6a812ca5117105fb8902a
38,945
py
Python
ongoing/prescriptors/neat/neat_prescriptor_multiobjective.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
ongoing/prescriptors/neat/neat_prescriptor_multiobjective.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
ongoing/prescriptors/neat/neat_prescriptor_multiobjective.py
bradyneal/covid-xprize-comp
d515f58b009a0a3e2421bc83e7ac893f3c3a1ece
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import os from copy import deepcopy import datetime import neat from tensorflow.python.framework.ops import default_session from ongoing.prescriptors.base import BasePrescriptor, PRED_CASES_COL, CASES_COL, NPI_COLUMNS, NPI_MAX_VALUES import ongoing.prescriptors.base as base ROOT...
56.937135
154
0.5763
e8ee4b1d482563cd783f15600d338c5189503734
13,703
py
Python
miniccnx_metrics-collector/metrics.py
marcieloliveira/snmp-gateway-ccn
6c0e304dd324b2819d208b741ced4bf93550d778
[ "MIT" ]
1
2019-08-10T20:00:48.000Z
2019-08-10T20:00:48.000Z
miniccnx_metrics-collector/metrics.py
marcieloliveira/snmp-gateway-ccn
6c0e304dd324b2819d208b741ced4bf93550d778
[ "MIT" ]
null
null
null
miniccnx_metrics-collector/metrics.py
marcieloliveira/snmp-gateway-ccn
6c0e304dd324b2819d208b741ced4bf93550d778
[ "MIT" ]
null
null
null
""" Metrics colector for mn-ccnx. The Metrics Collector class should be instantiated in every node to interact with the database. The DBManager class is a singleton and its purpose is to manage the database. Author: Caio Elias; """ #import argparse import re import datetime import threading from mininet.log import in...
31.214123
188
0.552288
e8ee7ac88107acbb064175aabd7f57c74ffb3baa
14,505
py
Python
pyhdx/fileIO.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
15
2020-10-14T14:15:54.000Z
2022-03-31T17:55:36.000Z
pyhdx/fileIO.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
145
2020-10-01T13:32:20.000Z
2022-03-31T08:31:47.000Z
pyhdx/fileIO.py
Jhsmit/PyHDX
34bf653743008508bb14f24ccca21ee39b5b25e3
[ "MIT" ]
3
2021-03-03T10:57:05.000Z
2021-05-24T09:11:49.000Z
from pathlib import Path import torch as t import torch.nn as nn import numpy as np from numpy.lib.recfunctions import stack_arrays from io import StringIO import pandas as pd import pyhdx import yaml import json import re import shutil from datetime import datetime from importlib import import_module # Dtype of fiel...
35.638821
126
0.647087
e8eead7591f47e5dbca5fc942eb79cfd354e0a9a
14,548
py
Python
satellite_image_solution/16_channel/scripts/16_channel_model.py
pradeeprathore04/Niti_Ayog_movehack_2018
36c56f06b03a0488c1dbf62fdf3f1b335d81997b
[ "MIT" ]
null
null
null
satellite_image_solution/16_channel/scripts/16_channel_model.py
pradeeprathore04/Niti_Ayog_movehack_2018
36c56f06b03a0488c1dbf62fdf3f1b335d81997b
[ "MIT" ]
null
null
null
satellite_image_solution/16_channel/scripts/16_channel_model.py
pradeeprathore04/Niti_Ayog_movehack_2018
36c56f06b03a0488c1dbf62fdf3f1b335d81997b
[ "MIT" ]
1
2018-10-11T05:58:15.000Z
2018-10-11T05:58:15.000Z
from __future__ import division import numpy as np from keras.models import Model from keras.layers import Input, MaxPooling2D, UpSampling2D, Cropping2D from keras.layers.convolutional import Conv2D, Conv2DTranspose, activations from keras import backend as K from keras.callbacks import EarlyStopping, ModelCheckpoint ...
42.046243
147
0.648749
e8ef0b43b06c2d808c41ca1909a32d15863e7d56
2,909
py
Python
gan/vrae.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
1
2018-03-11T18:53:00.000Z
2018-03-11T18:53:00.000Z
gan/vrae.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
null
null
null
gan/vrae.py
vermouth1992/tf-playground
3beab9e477b88ec33f95e9726da9ce7ab94758a9
[ "Apache-2.0" ]
null
null
null
""" keras implementation of variational recurrent auto encoder """ from keras import backend as K from keras.layers import Dense, Input, Lambda, LSTM, RepeatVector, TimeDistributed from keras.models import Model from keras.optimizers import Adam class VariationalRecurrentAutoencoder(object): def __init__(self, i...
35.91358
119
0.662083
e8ef29a26cd8c95484d2feb7f858fda9a13c2017
74,394
py
Python
salt/utils/cloud.py
dnd/salt
aa8cee3ce31147062afb99e300ab389cff76af63
[ "Apache-2.0" ]
null
null
null
salt/utils/cloud.py
dnd/salt
aa8cee3ce31147062afb99e300ab389cff76af63
[ "Apache-2.0" ]
null
null
null
salt/utils/cloud.py
dnd/salt
aa8cee3ce31147062afb99e300ab389cff76af63
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Utility functions for salt.cloud ''' # Import python libs import os import sys import codecs import shutil import socket import tempfile import time import subprocess import multiprocessing import logging import pipes import json import traceback import copy import re # Let's import pwd a...
35.392008
144
0.544291
e8ef465137251b9abfcba82a643fec508c481aec
645
py
Python
objconfig/exception/indexexception.py
asherwunk/objconfig
97243fa00a9e39d1167dc1e07a84578e20072c37
[ "MIT" ]
null
null
null
objconfig/exception/indexexception.py
asherwunk/objconfig
97243fa00a9e39d1167dc1e07a84578e20072c37
[ "MIT" ]
null
null
null
objconfig/exception/indexexception.py
asherwunk/objconfig
97243fa00a9e39d1167dc1e07a84578e20072c37
[ "MIT" ]
null
null
null
""" IGNORE: Author: Asher Wolfstein Copyright 2017 Blog: http://wunk.me/ E-Mail: asherwunk@gmail.com Twitter: https://twitter.com/asherwolfstein Send Me Some Love! Package Homepage: http://wunk.me/programming-projects/objconfig-python/ GitHub: http://github.com/asherwunk/objconfig for the source...
32.25
75
0.751938
e8ef5329f4aaf5ea53d834b4962b4750351e3113
3,027
py
Python
pay-api/src/pay_api/__init__.py
mengdong19/sbc-pay
a5a1d81ae3500457178371fb004fd09194bbb6b7
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/__init__.py
mengdong19/sbc-pay
a5a1d81ae3500457178371fb004fd09194bbb6b7
[ "Apache-2.0" ]
null
null
null
pay-api/src/pay_api/__init__.py
mengdong19/sbc-pay
a5a1d81ae3500457178371fb004fd09194bbb6b7
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
32.548387
108
0.737033
e8ef60636ea1b62d3c51efcbdb0cb42a5351b9f9
62,386
py
Python
oletools/ppt_parser.py
Teme64/oletools
a3bb2df85da0cc02e0b5964243d502c9382f8372
[ "MIT", "Unlicense" ]
null
null
null
oletools/ppt_parser.py
Teme64/oletools
a3bb2df85da0cc02e0b5964243d502c9382f8372
[ "MIT", "Unlicense" ]
null
null
null
oletools/ppt_parser.py
Teme64/oletools
a3bb2df85da0cc02e0b5964243d502c9382f8372
[ "MIT", "Unlicense" ]
null
null
null
""" Parse a ppt (MS PowerPoint 97-2003) file Based on olefile, parse the ppt-specific info Code much influenced by olevba._extract_vba but much more object-oriented (possibly slightly excessively so) Currently quite narrowly focused on extracting VBA from ppt files, no slides or stuff, but built to be extended to pa...
39.138018
83
0.613519
e8ef6ea0f1570f6aae678f9d6adb9c4783184f65
680
py
Python
LC/82.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/82.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/82.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ res=ListNode(0) res.n...
26.153846
69
0.5
e8efe0294c12b9afa917362152f1e60b2422fcc2
4,224
py
Python
pypipet/cli/cli/inventory.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
pypipet/cli/cli/inventory.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
null
null
null
pypipet/cli/cli/inventory.py
pypipet/pypipet
8c489e4a7992281fbb68b12e2627decf24f2facb
[ "MIT" ]
1
2021-12-10T22:36:34.000Z
2021-12-10T22:36:34.000Z
import click from .cli import cli from pypipet.core.operations.utility import get_front_shop_id from pypipet.core.operations.inventory import update_inventory_bulk from pypipet.core.operations.inventory import update_instock_qty_db from pypipet.core.operations.inventory import update_instock_front_shop # from pypipet....
35.495798
78
0.604403
e8f00b45c606bc492fc9946aab3beb697abc2c6c
433
py
Python
1_code/players/data.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/players/data.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/players/data.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
"""/** * @author [Jai Miles] * @email [jaimiles23@gmail.com] * @create date 2020-05-04 22:47:20 * @modify date 2020-05-26 15:34:08 * @desc [ Data module for the player class. Contains constants for allowed data. ] */ """ ########## # Allowed data answers ########## ALLOWED_TABLE_DATA = 20 # cut fro...
18.041667
86
0.630485
e8f00ffd8f67f508745fd57808e76c01f0864e41
2,675
py
Python
.leetcode/363.max-sum-of-rectangle-no-larger-than-k.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/363.max-sum-of-rectangle-no-larger-than-k.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/363.max-sum-of-rectangle-no-larger-than-k.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=363 lang=python3 # # [363] Max Sum of Rectangle No Larger Than K # # https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/description/ # # algorithms # Hard (39.76%) # Likes: 1643 # Dislikes: 100 # Total Accepted: 71.5K # Total Submissions: 179.9K # Testcase Example: '[[1,0,1...
20.736434
82
0.557757
e8f014d0a3cf8c25cbb9adb30bc56c42b985b0cd
7,382
py
Python
lib/vrd/vr/layer_iccv_context_cached_resnet.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
lib/vrd/vr/layer_iccv_context_cached_resnet.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
lib/vrd/vr/layer_iccv_context_cached_resnet.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """The data layer used during training to train a Fast R-CNN network. ...
36.009756
119
0.57437
e8f021900bdce04e096ccf642dcd2c8291ca6c4e
1,090
py
Python
packages/celer-code-generator/scripts/csvutils.py
iTNTPiston/celer
2208fc42fc24ff204ff4029be2c52f6c3034c1c2
[ "MIT" ]
null
null
null
packages/celer-code-generator/scripts/csvutils.py
iTNTPiston/celer
2208fc42fc24ff204ff4029be2c52f6c3034c1c2
[ "MIT" ]
null
null
null
packages/celer-code-generator/scripts/csvutils.py
iTNTPiston/celer
2208fc42fc24ff204ff4029be2c52f6c3034c1c2
[ "MIT" ]
null
null
null
"""CSV utilities""" import csv _memo = {} def read_csv(data_name, line_callback): """Memoized wrapper""" if data_name in _memo: for line in _memo[data_name]: line_callback(line) else: _read_csv_from_file(data_name, line_callback) def _read_csv_from_file(data_name, line_callback...
31.142857
73
0.52844
e8f079f0d030eb3070c27ecf636e96d702f3fa29
4,977
py
Python
alipay/aop/api/domain/AlipayFincoreComplianceRcsmartLivecontentQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayFincoreComplianceRcsmartLivecontentQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayFincoreComplianceRcsmartLivecontentQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayFincoreComplianceRcsmartLivecontentQueryModel(object): def __init__(self): self._app_name = None self._app_token = None self._live_audit_time_begain = None s...
34.089041
95
0.63472