hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
08ef1fcab5dd1c7a43ed9f1554963a4fa9105b84
12,900
py
Python
core/views.py
Jagadish312/Online-Grocery-Portal
cf104022f92eb7dfc489174e5d067d09aca46bd1
[ "Apache-2.0" ]
null
null
null
core/views.py
Jagadish312/Online-Grocery-Portal
cf104022f92eb7dfc489174e5d067d09aca46bd1
[ "Apache-2.0" ]
null
null
null
core/views.py
Jagadish312/Online-Grocery-Portal
cf104022f92eb7dfc489174e5d067d09aca46bd1
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render, get_object_or_404 from django.views.generic ...
36.338028
93
0.592481
from django.conf import settings from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render, get_object_or_404 from django.views.generic ...
true
true
08ef2081d28df1600814833c8522a801e3106573
2,490
py
Python
king_phisher/version.py
0x0mar/king-phisher
ff294c1a6ea3d59e238f0f4ed7ec668c5e8c2cfd
[ "BSD-3-Clause" ]
null
null
null
king_phisher/version.py
0x0mar/king-phisher
ff294c1a6ea3d59e238f0f4ed7ec668c5e8c2cfd
[ "BSD-3-Clause" ]
null
null
null
king_phisher/version.py
0x0mar/king-phisher
ff294c1a6ea3d59e238f0f4ed7ec668c5e8c2cfd
[ "BSD-3-Clause" ]
1
2018-12-18T00:44:14.000Z
2018-12-18T00:44:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/version.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this lis...
43.684211
96
0.754618
import collections version_info = collections.namedtuple('version_info', ['major', 'minor', 'micro'])(0, 1, 7) version_label = 'beta' version = "{0}.{1}.{2}".format(version_info.major, version_info.minor, version_info.micro) distutils_version = version if version_label: version += '-' + version_label distutils_v...
true
true
08ef210890cb2a1199af7c0e94108da345525b29
12,506
py
Python
deep_qa-master/tests/layers/backend/batch_dot_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
1
2017-04-11T13:03:55.000Z
2017-04-11T13:03:55.000Z
deep_qa-master/tests/layers/backend/batch_dot_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
null
null
null
deep_qa-master/tests/layers/backend/batch_dot_test.py
RTHMaK/RPGOne
3f3ada7db1762781668bfb2377154fdc00e17212
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-self-use,invalid-name import numpy from numpy.testing import assert_almost_equal import keras.backend as K from keras.layers import Input, Masking from keras.models import Model from deep_qa.layers.backend.batch_dot import BatchDot from deep_qa.layers.wrappers.output_mask import OutputMask from .....
51.465021
105
0.511195
import numpy from numpy.testing import assert_almost_equal import keras.backend as K from keras.layers import Input, Masking from keras.models import Model from deep_qa.layers.backend.batch_dot import BatchDot from deep_qa.layers.wrappers.output_mask import OutputMask from ...common.test_case import DeepQaTestCase c...
true
true
08ef232c851dc85b63e98d67d115995bcc751cc8
4,718
py
Python
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/gazebo_tracker/trackers/get_model_state_tracker.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
3
2021-07-25T15:10:35.000Z
2021-10-30T02:35:33.000Z
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/gazebo_tracker/trackers/get_model_state_tracker.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/gazebo_tracker/trackers/get_model_state_tracker.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
3
2021-07-25T15:16:06.000Z
2022-03-28T14:13:22.000Z
import threading from markov.log_handler.deepracer_exceptions import GenericRolloutException import copy import rospy from deepracer_msgs.srv import GetModelStates from gazebo_msgs.srv import GetModelStateResponse from markov.track_geom.constants import GET_MODEL_STATES from markov.rospy_wrappers import ServiceProxyWr...
40.672414
109
0.614243
import threading from markov.log_handler.deepracer_exceptions import GenericRolloutException import copy import rospy from deepracer_msgs.srv import GetModelStates from gazebo_msgs.srv import GetModelStateResponse from markov.track_geom.constants import GET_MODEL_STATES from markov.rospy_wrappers import ServiceProxyWr...
true
true
08ef239e3df6d41100d5e41eeb57458689c258b4
426
py
Python
Python36-32/Scripts/pyi-grab_version-script.py
tur103/social-network
41573b10500bd6f453c49fd51c1db787c3997f40
[ "MIT" ]
2
2017-05-05T13:45:35.000Z
2017-05-05T19:20:49.000Z
Python36-32/Scripts/pyi-grab_version-script.py
tur103/social-network
41573b10500bd6f453c49fd51c1db787c3997f40
[ "MIT" ]
null
null
null
Python36-32/Scripts/pyi-grab_version-script.py
tur103/social-network
41573b10500bd6f453c49fd51c1db787c3997f40
[ "MIT" ]
null
null
null
#!C:\work\Python36-32\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'PyInstaller==3.2.1','console_scripts','pyi-grab_version' __requires__ = 'PyInstaller==3.2.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
32.769231
87
0.683099
__requires__ = 'PyInstaller==3.2.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyi-grab_version')() )
true
true
08ef2544d1dfaba8bc132305850b7e64ee75e697
11,657
py
Python
apps/hbase/src/hbase/api.py
mapr/hue
84390cf8649feb34d74c574e771ea19410ecb970
[ "Apache-2.0" ]
null
null
null
apps/hbase/src/hbase/api.py
mapr/hue
84390cf8649feb34d74c574e771ea19410ecb970
[ "Apache-2.0" ]
null
null
null
apps/hbase/src/hbase/api.py
mapr/hue
84390cf8649feb34d74c574e771ea19410ecb970
[ "Apache-2.0" ]
4
2015-02-23T23:59:52.000Z
2018-01-03T06:59:26.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
45.007722
203
0.697006
import json import logging import re import csv from ast import literal_eval from django.utils.translation import ugettext as _ from django.utils.encoding import smart_str from desktop.lib import thrift_util from desktop.lib.exceptions_renderable import PopupException from hbase import conf from hbase.hbase_site im...
false
true
08ef25f56af994eb357f07b2e0477b97c5dabede
6,901
py
Python
belt - 1104/isolation_forest.py
jackson-code/Delta
ff4c1df4dc75d9ff88025d37d5cd3216a5f353ff
[ "Unlicense" ]
null
null
null
belt - 1104/isolation_forest.py
jackson-code/Delta
ff4c1df4dc75d9ff88025d37d5cd3216a5f353ff
[ "Unlicense" ]
null
null
null
belt - 1104/isolation_forest.py
jackson-code/Delta
ff4c1df4dc75d9ff88025d37d5cd3216a5f353ff
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 21 20:35:15 2021 @author: user """ from sklearn.ensemble import IsolationForest import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import confusion_matrix from sklearn.metrics import ConfusionMatrixDisplay from sklearn.metrics import classification_re...
38.553073
147
0.610781
from sklearn.ensemble import IsolationForest import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import confusion_matrix from sklearn.metrics import ConfusionMatrixDisplay from sklearn.metrics import classification_report import pandas as pd class MyIsolationForest(): def __init__(self, abnorma...
true
true
08ef25fa3c0390ae5f00644d094e826dd042d0f6
3,748
py
Python
src/job_searcher.py
cerad95/job-scraper
3841c34d0ead57089fce192bd285faccfcf8f5da
[ "MIT" ]
null
null
null
src/job_searcher.py
cerad95/job-scraper
3841c34d0ead57089fce192bd285faccfcf8f5da
[ "MIT" ]
null
null
null
src/job_searcher.py
cerad95/job-scraper
3841c34d0ead57089fce192bd285faccfcf8f5da
[ "MIT" ]
null
null
null
import asyncio import os from sys import platform as _platform import pandas from graduateland import graduateland from gspread import spreadsheet from jindex import jindex from pip._vendor.colorama import Fore from tqdm import tqdm async def fetch(session, url): async with session.get(url) as response: ...
38.244898
264
0.609392
import asyncio import os from sys import platform as _platform import pandas from graduateland import graduateland from gspread import spreadsheet from jindex import jindex from pip._vendor.colorama import Fore from tqdm import tqdm async def fetch(session, url): async with session.get(url) as response: ...
true
true
08ef26e5438cc20f147fc0731316e605d67ab3c7
394
py
Python
tests/app/externalOutages/test_getReasonId.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
tests/app/externalOutages/test_getReasonId.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
21
2021-01-08T18:03:32.000Z
2021-02-02T16:17:34.000Z
tests/app/externalOutages/test_getReasonId.py
nagasudhirpulla/wrldc_codebook
8fbc795074e16e2012b29ae875b99aa721a7f021
[ "MIT" ]
null
null
null
import unittest from src.appConfig import initAppConfig from src.app.externalOutages.getReasonId import getReasonId class TestGetReasonId(unittest.TestCase): def test_run(self) -> None: """tests the function that gets the reason Id """ appConf = initAppConfig() reasId = getReasonId...
30.307692
62
0.692893
import unittest from src.appConfig import initAppConfig from src.app.externalOutages.getReasonId import getReasonId class TestGetReasonId(unittest.TestCase): def test_run(self) -> None: appConf = initAppConfig() reasId = getReasonId(appConf["pwcDbConnStr"], "VR", 4) self.assertFalse(reasId...
true
true
08ef27297cca54439c9f5cc868620f2eb66d96e4
4,273
py
Python
pandas/tests/arrays/test_timedeltas.py
sweb/pandas
db051b94d50cec2a5f2a160b36d67716c47839c7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/arrays/test_timedeltas.py
sweb/pandas
db051b94d50cec2a5f2a160b36d67716c47839c7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/arrays/test_timedeltas.py
sweb/pandas
db051b94d50cec2a5f2a160b36d67716c47839c7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import pytest import pandas as pd from pandas.core.arrays import TimedeltaArrayMixin as TimedeltaArray import pandas.util.testing as tm class TestTimedeltaArrayConstructor(object): def test_non_array_raises(self): with pytest.raises(ValueError, match='list'): ...
32.618321
78
0.586707
import numpy as np import pytest import pandas as pd from pandas.core.arrays import TimedeltaArrayMixin as TimedeltaArray import pandas.util.testing as tm class TestTimedeltaArrayConstructor(object): def test_non_array_raises(self): with pytest.raises(ValueError, match='list'): TimedeltaArra...
true
true
08ef2810aa996e30bb4796d84ca69e87736817a5
1,502
py
Python
TSMethods.py
eakgun/LSTM-TimeSeries-Forecasting
177a5134df87ccf08d057a65b46dfcf87c0dec76
[ "MIT" ]
null
null
null
TSMethods.py
eakgun/LSTM-TimeSeries-Forecasting
177a5134df87ccf08d057a65b46dfcf87c0dec76
[ "MIT" ]
null
null
null
TSMethods.py
eakgun/LSTM-TimeSeries-Forecasting
177a5134df87ccf08d057a65b46dfcf87c0dec76
[ "MIT" ]
null
null
null
# Time Series import numpy as np import matplotlib.pyplot as plt def create_series(df, xcol, datecol): # Create a dataframe with the features and the date time as the index features_considered = [xcol] features = df[features_considered] features.index = df[datecol] # features.head() #...
34.136364
124
0.624501
import numpy as np import matplotlib.pyplot as plt def create_series(df, xcol, datecol): features_considered = [xcol] features = df[features_considered] features.index = df[datecol] return features def stationarity_test(X, log_x = "Y", return_p = False, print_res = True): ...
true
true
08ef2990873e605a34ae9fc665d3b27d1b8cfa15
5,078
py
Python
zerver/lib/openapi.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
1
2020-03-17T14:58:50.000Z
2020-03-17T14:58:50.000Z
zerver/lib/openapi.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
3
2020-06-05T22:30:24.000Z
2022-02-10T19:04:47.000Z
zerver/lib/openapi.py
alexandraciobica/zulip
f3753504469070bfccc73f22f933c87bee7d1852
[ "Apache-2.0" ]
1
2020-01-06T15:12:36.000Z
2020-01-06T15:12:36.000Z
# Set of helper functions to manipulate the OpenAPI files that define our REST # API's specification. import os from typing import Any, Dict, List, Optional, Set OPENAPI_SPEC_PATH = os.path.abspath(os.path.join( os.path.dirname(__file__), '../openapi/zulip.yaml')) # A list of exceptions we allow when running ...
38.180451
86
0.621701
import os from typing import Any, Dict, List, Optional, Set OPENAPI_SPEC_PATH = os.path.abspath(os.path.join( os.path.dirname(__file__), '../openapi/zulip.yaml')) # A list of exceptions we allow when running validate_against_openapi_schema. # The validator will ignore these keys when they appear in the "conte...
true
true
08ef299ab0b7ba068025be93d816e4b6c8f68a14
1,276
py
Python
setup.py
mosquito/aiohttp-xmlrpc
5969f116c5b00282c961856cec3a7ea47ff514f6
[ "MIT" ]
29
2016-09-05T19:29:57.000Z
2022-03-14T09:09:01.000Z
setup.py
mosquito/aiohttp-xmlrpc
5969f116c5b00282c961856cec3a7ea47ff514f6
[ "MIT" ]
32
2016-09-15T18:14:01.000Z
2022-01-11T11:18:15.000Z
setup.py
mosquito/aiohttp-xmlrpc
5969f116c5b00282c961856cec3a7ea47ff514f6
[ "MIT" ]
27
2016-09-15T17:25:53.000Z
2021-11-16T08:28:48.000Z
from __future__ import absolute_import, print_function import aiohttp_xmlrpc as module from setuptools import find_packages, setup setup( name=module.__name__.replace("_", "-"), version=module.__version__, author=module.__author__, license=module.__license__, description=module.description, l...
26.583333
63
0.592476
from __future__ import absolute_import, print_function import aiohttp_xmlrpc as module from setuptools import find_packages, setup setup( name=module.__name__.replace("_", "-"), version=module.__version__, author=module.__author__, license=module.__license__, description=module.description, l...
true
true
08ef29d383cb97b3717e3e9033e30cdac34cdbb6
9,515
py
Python
get_goal.py
JasonZK/Soccer_OCR
b26ca9068f1a10f00210d66fa4ae27dad89e71b2
[ "Apache-2.0" ]
2
2022-01-05T07:42:35.000Z
2022-01-25T12:16:01.000Z
get_goal.py
JasonZK/Soccer_OCR
b26ca9068f1a10f00210d66fa4ae27dad89e71b2
[ "Apache-2.0" ]
null
null
null
get_goal.py
JasonZK/Soccer_OCR
b26ca9068f1a10f00210d66fa4ae27dad89e71b2
[ "Apache-2.0" ]
null
null
null
import os os.environ['KMP_DUPLICATE_LIB_OK']='True' import easyocr import matplotlib.pyplot as plt # plt 用于显示图片 import re from paddleocr import PaddleOCR, draw_ocr import cv2 as cv import numpy as np import time BASE_DIR = os.path.dirname(os.path.abspath(__file__)) keyword1 = "goal" # print(BASE_DIR) def makedir(...
44.050926
142
0.34619
import os os.environ['KMP_DUPLICATE_LIB_OK']='True' import easyocr import matplotlib.pyplot as plt import re from paddleocr import PaddleOCR, draw_ocr import cv2 as cv import numpy as np import time BASE_DIR = os.path.dirname(os.path.abspath(__file__)) keyword1 = "goal" def makedir(new_dir): if not os.path.ex...
true
true
08ef2a68a06cb838cb914bf9931cf51ab2f57322
96
py
Python
venv/lib/python3.8/site-packages/poetry/packages/package_collection.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/poetry/packages/package_collection.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/poetry/packages/package_collection.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/b0/11/77/18c5ee91a7e46e0e357e525ae9bee72f6135165f97d2b65cce86d1baab
96
96
0.895833
/home/runner/.cache/pip/pool/b0/11/77/18c5ee91a7e46e0e357e525ae9bee72f6135165f97d2b65cce86d1baab
false
true
08ef2affe8663d50846d5ea1e37779e7d00801af
3,424
py
Python
tailpos_sync/tailpos_sync/doctype/categories/categories.py
iRaySpace/tailpos-sync
75c16bd76ea78e80ec9bf439fe42503c6117cfe0
[ "MIT" ]
1
2018-11-26T08:11:53.000Z
2018-11-26T08:11:53.000Z
tailpos_sync/tailpos_sync/doctype/categories/categories.py
iRaySpace/tailpos-sync
75c16bd76ea78e80ec9bf439fe42503c6117cfe0
[ "MIT" ]
null
null
null
tailpos_sync/tailpos_sync/doctype/categories/categories.py
iRaySpace/tailpos-sync
75c16bd76ea78e80ec9bf439fe42503c6117cfe0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Bai Web and Mobile Lab and contributors # For license information, please see license.txt from __future__ import unicode_literals from frappe.model.document import Document from frappe import _ from tailpos_sync.events import document_on_update, document_on_trash, document...
30.846847
136
0.516063
from __future__ import unicode_literals from frappe.model.document import Document from frappe import _ from tailpos_sync.events import document_on_update, document_on_trash, document_on_save import frappe import uuid import json class Categories(Document): def autoname(self): self.name = self.description...
true
true
08ef2b19eec36c6835e14afe38907fdc5b9015d6
6,520
py
Python
pyds8k/exceptions.py
27149chen/pyds8k
e6e52af236330e4da4b08d749d835b7809ae2308
[ "Apache-2.0" ]
7
2020-04-16T11:20:02.000Z
2021-04-21T13:39:14.000Z
pyds8k/exceptions.py
27149chen/pyds8k
e6e52af236330e4da4b08d749d835b7809ae2308
[ "Apache-2.0" ]
1
2020-07-15T02:56:56.000Z
2020-08-03T17:16:53.000Z
pyds8k/exceptions.py
27149chen/pyds8k
e6e52af236330e4da4b08d749d835b7809ae2308
[ "Apache-2.0" ]
6
2020-01-03T05:54:26.000Z
2022-03-31T09:42:27.000Z
############################################################################## # Copyright 2019 IBM Corp. # # 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/LI...
23.202847
79
0.627147
from pyds8k.utils import get_subclasses, \ get_response_parser_class from pyds8k import messages class BaseRestError(Exception): pass class InvalidArgumentError(Exception): def __init__(self, reason): self.reason = reason def __str__(self): return messages.INVALID_ARGUMENT.format(...
true
true
08ef2e1afebc2ba945c508b73de2dfa24a87c606
2,361
py
Python
tests/parsers/plist_plugins/install_history.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
1
2020-12-04T10:26:34.000Z
2020-12-04T10:26:34.000Z
tests/parsers/plist_plugins/install_history.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
null
null
null
tests/parsers/plist_plugins/install_history.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the install history plist plugin.""" from __future__ import unicode_literals import unittest from plaso.parsers.plist_plugins import install_history from tests.parsers.plist_plugins import test_lib class InstallHistoryPluginTest(test_lib.PlistPluginTestC...
35.772727
79
0.728505
from __future__ import unicode_literals import unittest from plaso.parsers.plist_plugins import install_history from tests.parsers.plist_plugins import test_lib class InstallHistoryPluginTest(test_lib.PlistPluginTestCase): def testProcess(self): plist_name = 'InstallHistory.plist' plugin = install_his...
true
true
08ef2e244c4261766bd729b3ed28236ff03343cf
4,147
py
Python
conpaas-services/contrib/libcloud/compute/drivers/gridspot.py
bopopescu/conpaas-1
cea3c02f499a729464697de7cf98c2041febc0ab
[ "BSD-3-Clause" ]
5
2016-02-24T14:44:03.000Z
2020-11-29T19:18:40.000Z
conpaas-services/contrib/libcloud/compute/drivers/gridspot.py
bopopescu/conpaas-1
cea3c02f499a729464697de7cf98c2041febc0ab
[ "BSD-3-Clause" ]
25
2015-03-23T16:05:19.000Z
2018-02-13T17:22:22.000Z
conpaas-services/contrib/libcloud/compute/drivers/gridspot.py
bopopescu/conpaas-1
cea3c02f499a729464697de7cf98c2041febc0ab
[ "BSD-3-Clause" ]
3
2018-09-14T16:54:14.000Z
2020-07-26T03:14:56.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 use ...
32.398438
77
0.661201
from libcloud.compute.base import NodeDriver, Node from libcloud.compute.base import NodeState from libcloud.common.base import ConnectionKey, JsonResponse from libcloud.compute.types import Provider from libcloud.common.types import InvalidCredsError class GridspotAPIException(Exception): def __str__(self): ...
true
true
08ef2eca8f5071f7ec79ed01fbd616c3cc99bc8b
252,347
py
Python
sympy/integrals/rubi/rubi_tests/tests/test_exponential.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/integrals/rubi/rubi_tests/tests/test_exponential.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/integrals/rubi/rubi_tests/tests/test_exponential.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
import sys from sympy.external import import_module matchpy = import_module("matchpy") if not matchpy: #bin/test will not execute any tests now disabled = True if sys.version_info[:2] < (3, 6): disabled = True from sympy.integrals.rubi.rubimain import rubi_integrate from sympy.functions impor...
274.588683
1,674
0.491002
import sys from sympy.external import import_module matchpy = import_module("matchpy") if not matchpy: disabled = True if sys.version_info[:2] < (3, 6): disabled = True from sympy.integrals.rubi.rubimain import rubi_integrate from sympy.functions import log, sqrt, exp, cos, sin, tan, sec, csc,...
true
true
08ef2f9ef88030407f5f43922c924060512af1ad
316
py
Python
senstech/config/docs.py
martinzoller/senstech
25b5a1eaa6aa6d33a0db8449d8e73d77caa3e6b7
[ "MIT" ]
null
null
null
senstech/config/docs.py
martinzoller/senstech
25b5a1eaa6aa6d33a0db8449d8e73d77caa3e6b7
[ "MIT" ]
null
null
null
senstech/config/docs.py
martinzoller/senstech
25b5a1eaa6aa6d33a0db8449d8e73d77caa3e6b7
[ "MIT" ]
2
2021-02-01T15:17:50.000Z
2021-08-14T22:26:58.000Z
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/senstech" # docs_base_url = "https://[org_name].github.io/senstech" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Senstech"
26.333333
68
0.724684
def get_context(context): context.brand_html = "Senstech"
true
true
08ef2fb5c667b7659b3181c2fd8a84f7cdd6c1b9
27,631
py
Python
Demo/rpc/rpc.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Demo/rpc/rpc.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Demo/rpc/rpc.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
# Sun RPC version 2 -- RFC1057. # XXX There should be separate exceptions for the various reasons why # XXX an RPC can fail, rather than using RuntimeError for everything # XXX Need to use class based exceptions rather than string exceptions # XXX The UDP version of the protocol resends requests when it does # XXX n...
30.907159
78
0.588035
import xdr import socket import os RPCVERSION = 2 CALL = 0 REPLY = 1 AUTH_NULL = 0 AUTH_UNIX = 1 AUTH_SHORT = 2 AUTH_DES = 3 MSG_ACCEPTED = 0 MSG_DENIED = 1 SUCCESS = 0 PROG_UNAVAIL = 1 PROG_MISMATCH = 2 # remote can't support version # ...
false
true
08ef3155271eb9fc83a437b04e9c1e80b2ef5af9
198
py
Python
sample/utils/test.py
Jay54520/tornado-structure
8946edcb01a880a86624bc89cef1ae91439b94d5
[ "Apache-2.0" ]
null
null
null
sample/utils/test.py
Jay54520/tornado-structure
8946edcb01a880a86624bc89cef1ae91439b94d5
[ "Apache-2.0" ]
1
2018-08-22T06:51:17.000Z
2018-08-22T06:51:17.000Z
sample/utils/test.py
Jay54520/tornado-structure
8946edcb01a880a86624bc89cef1ae91439b94d5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from tornado.testing import AsyncHTTPTestCase from app import make_app class CustomAsyncHTTPTestCase(AsyncHTTPTestCase): def get_app(self): return make_app()
18
49
0.732323
from tornado.testing import AsyncHTTPTestCase from app import make_app class CustomAsyncHTTPTestCase(AsyncHTTPTestCase): def get_app(self): return make_app()
true
true
08ef335dedd452bde5b3d2744856da0d4933445f
6,954
py
Python
Geometry/TrackerCommonData/test/python/run21Zero.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
1
2020-05-27T10:52:33.000Z
2020-05-27T10:52:33.000Z
Geometry/TrackerCommonData/test/python/run21Zero.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
28
2019-08-15T15:21:11.000Z
2021-12-29T14:13:18.000Z
Geometry/TrackerCommonData/test/python/run21Zero.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
1
2020-08-18T10:29:49.000Z
2020-08-18T10:29:49.000Z
import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Run3_cff import Run3 process = cms.Process('SIM',Run3) # import of standard configurations process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('FWCore.MessageService.Mess...
40.196532
159
0.729652
import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Run3_cff import Run3 process = cms.Process('SIM',Run3) process.load('Configuration.StandardSequences.Services_cff') process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Config...
true
true
08ef3376bc480b7dd099675fe405bb6f75cfb31d
2,126
py
Python
Numpy/code.py
charmichaniyara/ga-learner-dsmp-repo
b807ae5e9373e8b95426ff888e6ca6f6b3bbe2c1
[ "MIT" ]
null
null
null
Numpy/code.py
charmichaniyara/ga-learner-dsmp-repo
b807ae5e9373e8b95426ff888e6ca6f6b3bbe2c1
[ "MIT" ]
null
null
null
Numpy/code.py
charmichaniyara/ga-learner-dsmp-repo
b807ae5e9373e8b95426ff888e6ca6f6b3bbe2c1
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np import warnings warnings.filterwarnings('ignore') #New record new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #Reading file #Step1 data = np.genfromtxt(path, delimiter=",", skip_header=1) #Code starts here census = np.concatenate((data,np.ar...
16.229008
60
0.611007
import numpy as np import warnings warnings.filterwarnings('ignore') new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] data = np.genfromtxt(path, delimiter=",", skip_header=1) census = np.concatenate((data,np.array(new_record)),axis=0) age = census[:,0] max_age = age.max() print("Maximum Age: ",max_ag...
true
true
08ef34e867622093c380406673a5857cd3acce2e
5,647
py
Python
src/featurizer/feature_extractor.py
geffy/retailhero-recommender-solution
9e94f313146acd87bd09fe8ab63e4f58f22b9a3e
[ "MIT" ]
11
2020-03-01T22:25:32.000Z
2021-10-19T19:59:25.000Z
src/featurizer/feature_extractor.py
geffy/retailhero-recommender-solution
9e94f313146acd87bd09fe8ab63e4f58f22b9a3e
[ "MIT" ]
null
null
null
src/featurizer/feature_extractor.py
geffy/retailhero-recommender-solution
9e94f313146acd87bd09fe8ab63e4f58f22b9a3e
[ "MIT" ]
1
2021-02-19T19:01:58.000Z
2021-02-19T19:01:58.000Z
import copy import pickle from collections import defaultdict from typing import Any, List, Set, Tuple import implicit from scipy.stats import rankdata from src.featurizer.client_profile import ClientProfile from src.featurizer.daily import DailyScorer, split_date from src.featurizer.nn import WrapperNnModel from src...
37.646667
107
0.625288
import copy import pickle from collections import defaultdict from typing import Any, List, Set, Tuple import implicit from scipy.stats import rankdata from src.featurizer.client_profile import ClientProfile from src.featurizer.daily import DailyScorer, split_date from src.featurizer.nn import WrapperNnModel from src...
true
true
08ef35225a3aa9aa92b0f9927950f75e94207ddc
6,193
py
Python
isi_sdk_8_1_1/isi_sdk_8_1_1/models/hdfs_inotify_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_1/isi_sdk_8_1_1/models/hdfs_inotify_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_1/isi_sdk_8_1_1/models/hdfs_inotify_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class HdfsInotifySettingsSetting...
34.597765
143
0.61957
import pprint import re import six class HdfsInotifySettingsSettings(object): swagger_types = { 'enabled': 'bool', 'maximum_delay': 'int', 'retention': 'int' } attribute_map = { 'enabled': 'enabled', 'maximum_delay': 'maximum_delay', 'retention': 'ret...
true
true
08ef35311a1f90e7fe0dc3cfe60d686d65b9e031
362
py
Python
screenplay_selenium/matchers/is_not_present.py
byran/ScreenPlaySelenium
a9356c3aa6fce0087210e769416239afba7c77c8
[ "MIT" ]
null
null
null
screenplay_selenium/matchers/is_not_present.py
byran/ScreenPlaySelenium
a9356c3aa6fce0087210e769416239afba7c77c8
[ "MIT" ]
null
null
null
screenplay_selenium/matchers/is_not_present.py
byran/ScreenPlaySelenium
a9356c3aa6fce0087210e769416239afba7c77c8
[ "MIT" ]
null
null
null
from screenplay.matcher import Matcher from selenium.webdriver.remote.webelement import WebElement class is_not_present(Matcher): def __init__(self): super().__init__() self._fail_message = 'the element was present' def matches(self, answer: WebElement) -> bool: if answer is None: ...
25.857143
59
0.68232
from screenplay.matcher import Matcher from selenium.webdriver.remote.webelement import WebElement class is_not_present(Matcher): def __init__(self): super().__init__() self._fail_message = 'the element was present' def matches(self, answer: WebElement) -> bool: if answer is None: ...
true
true
08ef3585699204c026823112f715048921c12642
3,727
py
Python
evolution/server.py
ctbeiser/Evolution
ab0de37f9ed7f9e545067726ec514f73bdeb3b51
[ "MIT" ]
null
null
null
evolution/server.py
ctbeiser/Evolution
ab0de37f9ed7f9e545067726ec514f73bdeb3b51
[ "MIT" ]
null
null
null
evolution/server.py
ctbeiser/Evolution
ab0de37f9ed7f9e545067726ec514f73bdeb3b51
[ "MIT" ]
null
null
null
import socket from .dealer import MAX_PLAYERS, MIN_PLAYERS from .json_socket import JSONSocket from .timeout import * from .validate import * from .debug import debug class Server: """ A Server holds a socket, allows players to connect, and conducts a handshake with them. """ def __init__(self, host, p...
40.075269
119
0.636169
import socket from .dealer import MAX_PLAYERS, MIN_PLAYERS from .json_socket import JSONSocket from .timeout import * from .validate import * from .debug import debug class Server: def __init__(self, host, port): self.sock = self.initialize_socket(host, port) self.connected_players ...
true
true
08ef375e956fb624948bbfb7c6b8253ed14be3fc
312
py
Python
setup.py
ArN5/zoidberg_nav
712ddc240350f13dbf607b2e68369a1de8f4f6c0
[ "MIT" ]
2
2018-07-12T03:54:15.000Z
2018-11-03T19:02:38.000Z
setup.py
ArN5/zoidberg_nav
712ddc240350f13dbf607b2e68369a1de8f4f6c0
[ "MIT" ]
null
null
null
setup.py
ArN5/zoidberg_nav
712ddc240350f13dbf607b2e68369a1de8f4f6c0
[ "MIT" ]
4
2018-07-19T02:04:04.000Z
2018-08-02T20:42:12.000Z
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['zoidberg_nav'], package_dir={'': 'src'}, ) setup(**setup_args)
24
61
0.762821
from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup setup_args = generate_distutils_setup( packages=['zoidberg_nav'], package_dir={'': 'src'}, ) setup(**setup_args)
true
true
08ef389b884332cb73f2ecdd8e62a7a0bce4d050
45,225
py
Python
resolwe/flow/managers/listener.py
dblenkus/resolwe
d64cd9bc7d77b383771a54e01b5db136abb23767
[ "Apache-2.0" ]
null
null
null
resolwe/flow/managers/listener.py
dblenkus/resolwe
d64cd9bc7d77b383771a54e01b5db136abb23767
[ "Apache-2.0" ]
null
null
null
resolwe/flow/managers/listener.py
dblenkus/resolwe
d64cd9bc7d77b383771a54e01b5db136abb23767
[ "Apache-2.0" ]
null
null
null
""".. Ignore pydocstyle D400. ======== Listener ======== Standalone Redis client used as a contact point for executors. .. autoclass:: resolwe.flow.managers.listener.ExecutorListener :members: """ import asyncio import json import logging import math import os import time import traceback from contextlib impor...
37.972292
116
0.530636
import asyncio import json import logging import math import os import time import traceback from contextlib import suppress import aioredis from asgiref.sync import async_to_sync from channels.db import database_sync_to_async from django.conf import settings from django.contrib.contenttypes.models import ContentTyp...
true
true
08ef38c7a7570168927db9310b70630aa51b6846
1,247
py
Python
scripts/style/json-fmt.py
zhangpf/fuchsia-rs
903568f28ddf45f09157ead36d61b50322c9cf49
[ "BSD-3-Clause" ]
1
2019-04-21T18:02:26.000Z
2019-04-21T18:02:26.000Z
scripts/style/json-fmt.py
zhangpf/fuchsia-rs
903568f28ddf45f09157ead36d61b50322c9cf49
[ "BSD-3-Clause" ]
16
2020-09-04T19:01:11.000Z
2021-05-28T03:23:09.000Z
scripts/style/json-fmt.py
ZVNexus/fuchsia
c5610ad15208208c98693618a79c705af935270c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Script to format JSON files. This script accepts a list of files as arguments, and for each of them attempts to parse it as JSON, and...
28.340909
82
0.573376
import argparse import json import sys def main(): parser = argparse.ArgumentParser() parser.add_argument( 'file', type=argparse.FileType('r+'), nargs='+', help='JSON file to be pretty-printed.') args = parser.parse_args() for json_file in args.file: try: ...
true
true
08ef39185388cb22d8f8ce44fe50d29d6e47321f
2,436
py
Python
neuralpp/test/slow_tests/graphical_model/representation/factor/neural/mlp_neural_factor_learning_test.py
horizon-blue/neuralpp
54fd6d938ea15680437e407f8b676f825df8597e
[ "MIT" ]
2
2021-04-13T18:01:54.000Z
2021-06-02T18:59:36.000Z
neuralpp/test/slow_tests/graphical_model/representation/factor/neural/mlp_neural_factor_learning_test.py
horizon-blue/neuralpp
54fd6d938ea15680437e407f8b676f825df8597e
[ "MIT" ]
null
null
null
neuralpp/test/slow_tests/graphical_model/representation/factor/neural/mlp_neural_factor_learning_test.py
horizon-blue/neuralpp
54fd6d938ea15680437e407f8b676f825df8597e
[ "MIT" ]
2
2021-10-22T01:19:13.000Z
2022-01-11T05:12:03.000Z
import random from neuralpp.inference.graphical_model.learn.graphical_model_sgd_learner import ( GraphicalModelSGDLearner, ) from neuralpp.inference.graphical_model.representation.factor.neural.neural_factor import ( NeuralFactor, ) from neuralpp.inference.graphical_model.variable.integer_variable import Integ...
34.309859
107
0.716749
import random from neuralpp.inference.graphical_model.learn.graphical_model_sgd_learner import ( GraphicalModelSGDLearner, ) from neuralpp.inference.graphical_model.representation.factor.neural.neural_factor import ( NeuralFactor, ) from neuralpp.inference.graphical_model.variable.integer_variable import Integ...
true
true
08ef3b32cf005415b03da57645b05a2367f88b18
4,664
py
Python
detection/get_flops.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
detection/get_flops.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
detection/get_flops.py
chandlerbing65nm/PVT
e171519b2a1a44e36ebdf0732f274a190b50ce29
[ "Apache-2.0" ]
null
null
null
import argparse import torch from mmcv import Config, DictAction from mmdet.models import build_detector try: from mmcv.cnn import get_model_complexity_info except ImportError: raise ImportError('Please upgrade mmcv to >0.6.2') #import pvt #import pvt_v2 from mmcv.cnn.utils.flops_counter import get_model_com...
36.724409
101
0.585334
import argparse import torch from mmcv import Config, DictAction from mmdet.models import build_detector try: from mmcv.cnn import get_model_complexity_info except ImportError: raise ImportError('Please upgrade mmcv to >0.6.2') from mmcv.cnn.utils.flops_counter import get_model_complexity_info, flops_to_stri...
true
true
08ef3b8773b42ff471c15f50ab509758e4d939f5
25,616
py
Python
maistra/vendor/com_googlesource_chromium_v8/wee8/build/android/gyp/java_cpp_enum_tests.py
maistra-bot/proxy
05a551df62d90e96c24afc649f2755983d020b5b
[ "Apache-2.0" ]
1
2020-03-11T03:44:02.000Z
2020-03-11T03:44:02.000Z
src/build/android/gyp/java_cpp_enum_tests.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
src/build/android/gyp/java_cpp_enum_tests.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2014 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. """Tests for enum_preprocess.py. This test suite contains various tests for the C++ -> Java enum generator. """ import collections fr...
34.245989
80
0.60388
import collections from datetime import date import unittest import java_cpp_enum from java_cpp_enum import EnumDefinition, GenerateOutput from java_cpp_enum import HeaderParser from util import java_cpp_utils class TestPreprocess(unittest.TestCase): def testOutput(self): definition = EnumDefinition(original...
true
true
08ef3b9d5458b9e6b1b0563dbfe4681aceefb615
268
py
Python
tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_12/ar_12/test_artificial_128_Fisher_Lag1Trend_12_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_12/ar_12/test_artificial_128_Fisher_Lag1Trend_12_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_12/ar_12/test_artificial_128_Fisher_Lag1Trend_12_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 12);
38.285714
163
0.731343
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 12);
true
true
08ef3c30966b18ee35e2e4dd9985f4fe639d9e64
304
py
Python
flask_unchained/bundles/security/services/role_manager.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
69
2018-10-10T01:59:11.000Z
2022-03-29T17:29:30.000Z
flask_unchained/bundles/security/services/role_manager.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
18
2018-11-17T12:42:02.000Z
2021-05-22T18:45:27.000Z
flask_unchained/bundles/security/services/role_manager.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
7
2018-10-12T16:20:25.000Z
2021-10-06T12:18:21.000Z
from flask_unchained.bundles.sqlalchemy import ModelManager from ..models import Role class RoleManager(ModelManager): """ :class:`~flask_unchained.bundles.sqlalchemy.ModelManager` for the :class:`~flask_unchained.bundles.security.Role` model. """ class Meta: model = Role
23.384615
69
0.720395
from flask_unchained.bundles.sqlalchemy import ModelManager from ..models import Role class RoleManager(ModelManager): class Meta: model = Role
true
true
08ef3d13aa2a07c1da32795905148c614d7600d4
6,419
py
Python
VideoStitcher/pipeline/related_event_isolator_pipeline.py
Bricktheworld/rhombus-api-examples-python
b4778c3a635786070ee10a3131b1a1f7f6ebac36
[ "MIT" ]
null
null
null
VideoStitcher/pipeline/related_event_isolator_pipeline.py
Bricktheworld/rhombus-api-examples-python
b4778c3a635786070ee10a3131b1a1f7f6ebac36
[ "MIT" ]
20
2021-06-08T22:29:20.000Z
2022-01-15T19:51:46.000Z
VideoStitcher/pipeline/related_event_isolator_pipeline.py
Bricktheworld/rhombus-api-examples-python
b4778c3a635786070ee10a3131b1a1f7f6ebac36
[ "MIT" ]
9
2021-06-08T22:15:35.000Z
2022-03-03T05:19:58.000Z
################################################################################### # Copyright (c) 2021 Rhombus Systems # # # # Permission is hereby granted, free of charge, to any person obtai...
50.148438
195
0.622527
from typing import Union, cast, List from rhombus_types.events import EnterEvent, ExitEvent, FinalizedEvent, events_are_the_same from pipeline.pipeline_services.event_collator import can_collate_events, do_collate_enter_and_exit def internal_finalize_event(event: Union[EnterEvent, ExitEvent, None]) -> Union[Finalized...
true
true
08ef3d417bfd56141465d7db219f15da14e7573f
895
py
Python
webApp/celery.py
pipete40/warehousing-tools
58cd057af8d0ccd3af32001b8b0dfdb0ab6b9620
[ "MIT" ]
null
null
null
webApp/celery.py
pipete40/warehousing-tools
58cd057af8d0ccd3af32001b8b0dfdb0ab6b9620
[ "MIT" ]
null
null
null
webApp/celery.py
pipete40/warehousing-tools
58cd057af8d0ccd3af32001b8b0dfdb0ab6b9620
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webApp.settings') app = Celery('webApp', broker="amqp://wdkkpikj:IaoV-f8L_2SlD7yTxeegPX4b1oIqNms...
33.148148
103
0.736313
from __future__ import absolute_import, unicode_literals import os from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webApp.settings') app = Celery('webApp', broker="amqp://wdkkpikj:IaoV-f8L_2SlD7yTxeegPX4b1oIqNms9@wasp.rmq.cloudamqp.com/wdkkpikj", backend='rpc://', ...
true
true
08ef3d7a97a0458e2d845cc2045e366131439055
249
py
Python
robot/socket/Event/Event.py
tjandy/work
f9179a6a8e87de4127ebef2f886818c149a32a59
[ "MIT" ]
null
null
null
robot/socket/Event/Event.py
tjandy/work
f9179a6a8e87de4127ebef2f886818c149a32a59
[ "MIT" ]
null
null
null
robot/socket/Event/Event.py
tjandy/work
f9179a6a8e87de4127ebef2f886818c149a32a59
[ "MIT" ]
null
null
null
class Event(object): def __init__(self, event_type, data=None): self._type = event_type self._data = data @property def type(self): return self._type @property def data(self): return self._data
17.785714
46
0.598394
class Event(object): def __init__(self, event_type, data=None): self._type = event_type self._data = data @property def type(self): return self._type @property def data(self): return self._data
true
true
08ef3e690fc0255ec12dd43cb67c1f7acf303301
4,585
py
Python
uranus_middleware/resources/luggage.py
project-uranus/uranus-middleware
852d121c3dd946dc0f9cacf77040258adc3577ac
[ "MIT" ]
null
null
null
uranus_middleware/resources/luggage.py
project-uranus/uranus-middleware
852d121c3dd946dc0f9cacf77040258adc3577ac
[ "MIT" ]
1
2020-07-09T10:04:41.000Z
2020-07-09T10:04:41.000Z
uranus_middleware/resources/luggage.py
project-uranus/uranus-middleware
852d121c3dd946dc0f9cacf77040258adc3577ac
[ "MIT" ]
1
2019-12-12T12:56:27.000Z
2019-12-12T12:56:27.000Z
from flask import Blueprint from flask_restful import Api, Resource, reqparse from uranus_middleware.auth_utils import get_user_id, roles_required, security_required, staff_required from uranus_middleware.endpoints.notification import notification from uranus_middleware.endpoints.security import security from uranus_...
37.892562
103
0.593021
from flask import Blueprint from flask_restful import Api, Resource, reqparse from uranus_middleware.auth_utils import get_user_id, roles_required, security_required, staff_required from uranus_middleware.endpoints.notification import notification from uranus_middleware.endpoints.security import security from uranus_...
true
true
08ef3e97187a7f935531c66310cd9c4413b97ffd
1,379
py
Python
index.py
EduFdezSoy/macro_keypad_editor
1e5fc5356984cbaf43b241c2e21d9b4c1d4944af
[ "MIT" ]
null
null
null
index.py
EduFdezSoy/macro_keypad_editor
1e5fc5356984cbaf43b241c2e21d9b4c1d4944af
[ "MIT" ]
null
null
null
index.py
EduFdezSoy/macro_keypad_editor
1e5fc5356984cbaf43b241c2e21d9b4c1d4944af
[ "MIT" ]
null
null
null
# import ArduinoCom as ar import DatabaseController as db import InterfaceController as ifc import KeyRecorder as kr # if you are going to shipt this product add sentry.io or other exception logger # and some sort of update checker, see: # https://www.pyinstaller.org/ # https://www.pyupdater.org/ def main(): db...
25.537037
80
0.627266
import DatabaseController as db import InterfaceController as ifc import KeyRecorder as kr def main(): db.main() ifc.main() kr.main() db.initDB() db.insertKey(1, "primerateclaaaa", "Ctrl+A") window = ifc.getWindow(db) while True: event, values = window.read() if i...
true
true
08ef3ed0ecef9a19e83e1aba722cdfbc2f185d01
2,903
py
Python
S4/S4 Decompiler/decompyle3/scanners/scanner37.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Decompiler/decompyle3/scanners/scanner37.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Decompiler/decompyle3/scanners/scanner37.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
# Copyright (c) 2016-2019 by Rocky Bernstein # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is...
37.217949
93
0.658973
from decompyle3.scanners.scanner37base import Scanner37Base from xdis.opcodes import opcode_37 as opc JUMP_OPs = opc.JUMP_OPS class Scanner37(Scanner37Base): def __init__(self, show_asm=None, debug=False): Scanner37Base.__init__(self, 3.7, show_asm) self.debug = debug return pass ...
true
true
08ef3f0777640c7c48e1ce74d66651d2350357bc
51,305
py
Python
python/cudf/cudf/core/groupby/groupby.py
PointKernel/cudf
cc25f3d30ce6f4e4939d5b913ca1a66ab32ac75e
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/groupby/groupby.py
PointKernel/cudf
cc25f3d30ce6f4e4939d5b913ca1a66ab32ac75e
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/groupby/groupby.py
PointKernel/cudf
cc25f3d30ce6f4e4939d5b913ca1a66ab32ac75e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2021, NVIDIA CORPORATION. import collections import itertools import pickle import warnings import numpy as np import pandas as pd from nvtx import annotate import cudf from cudf._lib import groupby as libgroupby from cudf._typing import DataFrameOrSeries from cudf.api.types import is_list_like ...
32.699171
100
0.540279
import collections import itertools import pickle import warnings import numpy as np import pandas as pd from nvtx import annotate import cudf from cudf._lib import groupby as libgroupby from cudf._typing import DataFrameOrSeries from cudf.api.types import is_list_like from cudf.core.abc import Serializable from cud...
true
true
08ef407e65446f67ee3aa76fed4cf1ff53fff805
462
py
Python
latex/multiple-files/run-sagetex.py
sagemathinc/cocalc-example-files
3420f3feabb9d2fb1c9dd40ded331344dab9348d
[ "Apache-2.0" ]
13
2017-10-18T03:13:38.000Z
2022-02-22T21:59:06.000Z
latex/multiple-files/run-sagetex.py
DrXyzzy/cloud-examples
ca0d8d21288641beee520ce627b094d23a8fce7c
[ "Apache-2.0" ]
6
2018-01-31T14:13:23.000Z
2021-04-16T11:54:26.000Z
latex/multiple-files/run-sagetex.py
DrXyzzy/cloud-examples
ca0d8d21288641beee520ce627b094d23a8fce7c
[ "Apache-2.0" ]
9
2017-09-04T09:29:09.000Z
2020-06-19T03:39:53.000Z
#!/usr/bin/env python # This is a small wrapper script, because running sage on a # *.sagetex.sage file in a subdirectory is broken. Once this # works fine, and produces the sout file in the subdirectory, # this script is no longer necessary -> modify latexmkrc ! import sys, os print("run-sagetex.py -- START".center(80...
42
61
0.692641
import sys, os print("run-sagetex.py -- START".center(80, "-")) dir, file = sys.argv[1].split(os.path.sep) os.system("cd %s && sage %s" % (dir, file)) print("run-sagetex.py -- END".center(80, "-"))
true
true
08ef424a5cd586ef63cb73bc83fc37e5cbad4269
517
py
Python
simple_python_profiler/tests.py
jeshan/simple-python-profiler
a3d3a709781b5aaff38b55389c93efd132274344
[ "MIT" ]
null
null
null
simple_python_profiler/tests.py
jeshan/simple-python-profiler
a3d3a709781b5aaff38b55389c93efd132274344
[ "MIT" ]
1
2021-06-02T00:57:36.000Z
2021-06-02T00:57:36.000Z
simple_python_profiler/tests.py
jeshan/simple-python-profiler
a3d3a709781b5aaff38b55389c93efd132274344
[ "MIT" ]
null
null
null
from random import random from simple_python_profiler.main import Profiler, profile_recursive def sub(): print('in sub') @profile_recursive def inner(): print('in inner') def inner2(): print('in inner2') inner2() inner() return random() # @profile def go...
12.925
67
0.54352
from random import random from simple_python_profiler.main import Profiler, profile_recursive def sub(): print('in sub') @profile_recursive def inner(): print('in inner') def inner2(): print('in inner2') inner2() inner() return random() def go(a, b): ...
true
true
08ef42826002b30c735acd843464a66d8625ca38
2,938
py
Python
cloudferry/condensation/flavor.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
6
2017-04-20T00:49:49.000Z
2020-12-20T16:27:10.000Z
cloudferry/condensation/flavor.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
3
2017-04-08T15:47:16.000Z
2017-05-18T17:40:59.000Z
cloudferry/condensation/flavor.py
SVilgelm/CloudFerry
4459c0d21ba7ccffe51176932197b352e426ba63
[ "Apache-2.0" ]
8
2017-04-07T23:42:36.000Z
2021-08-10T11:05:10.000Z
# Copyright (c) 2014 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
33.386364
78
0.625936
import uuid class Flavor(object): def __init__(self, fl_id, name, ram, core, ephemeral=None, swap=None): self.fl_id = fl_id self.name = name self.ram = ram self.core = core self.ephemeral = ephemeral self.swap = swap self.vms = [] self.reduced_ram...
true
true
08ef432e6d4324e53bc4f5a81529a425e3bfad54
6,872
py
Python
fetchMyAttch.py
bulak/fetchMyAttch
75ea18547d8c6dbd6370cf0a1896497a9037cf28
[ "MIT" ]
null
null
null
fetchMyAttch.py
bulak/fetchMyAttch
75ea18547d8c6dbd6370cf0a1896497a9037cf28
[ "MIT" ]
null
null
null
fetchMyAttch.py
bulak/fetchMyAttch
75ea18547d8c6dbd6370cf0a1896497a9037cf28
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Fetches and saves attachments from queries of your Gmail""" # Parts of this script are either directly copied or modified from # Google Gmail API example codes available at # https://developers.google.com/gmail/api from __future__ import print_function import httplib2 import os import time ...
36.748663
79
0.614086
"""Fetches and saves attachments from queries of your Gmail""" from __future__ import print_function import httplib2 import os import time import base64 import json from collections import defaultdict from apiclient import discovery, errors from oauth2client import client, tools from oauth2client.file import Stora...
false
true
08ef4381c845bfec4d3d56d342a8ea69fc1876a9
3,912
py
Python
alipay/aop/api/domain/AlipayDataDataserviceAdCreativeBatchqueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayDataDataserviceAdCreativeBatchqueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayDataDataserviceAdCreativeBatchqueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayDataDataserviceAdCreativeBatchqueryModel(object): def __init__(self): self._batch_tag = None self._biz_token = None self._current = None self._...
29.862595
79
0.587935
import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayDataDataserviceAdCreativeBatchqueryModel(object): def __init__(self): self._batch_tag = None self._biz_token = None self._current = None self._group_outer_id = None self._page_size ...
true
true
08ef4385e7e4c97ce89b9b2bf83285b177a62ae4
3,386
py
Python
PyPtt/_api_call_status.py
smailzhu/PyPtt
821df96f0a864be5ab2c3158e9fcbc516172b651
[ "MIT" ]
null
null
null
PyPtt/_api_call_status.py
smailzhu/PyPtt
821df96f0a864be5ab2c3158e9fcbc516172b651
[ "MIT" ]
null
null
null
PyPtt/_api_call_status.py
smailzhu/PyPtt
821df96f0a864be5ab2c3158e9fcbc516172b651
[ "MIT" ]
null
null
null
try: from . import data_type from . import i18n from . import connect_core from . import log from . import screens from . import exceptions from . import command except ModuleNotFoundError: import data_type import i18n import connect_core import log import screens imp...
24.359712
64
0.528647
try: from . import data_type from . import i18n from . import connect_core from . import log from . import screens from . import exceptions from . import command except ModuleNotFoundError: import data_type import i18n import connect_core import log import screens imp...
true
true
08ef4394170a75068e69a594903ba88022289849
104,734
py
Python
python/ccxt/async_support/kucoin.py
cleardevice/ccxt
5fa4e58d15ed3254bcc9dab58dbb2e9c1ac184da
[ "MIT" ]
1
2022-02-22T15:25:27.000Z
2022-02-22T15:25:27.000Z
python/ccxt/async_support/kucoin.py
cleardevice/ccxt
5fa4e58d15ed3254bcc9dab58dbb2e9c1ac184da
[ "MIT" ]
null
null
null
python/ccxt/async_support/kucoin.py
cleardevice/ccxt
5fa4e58d15ed3254bcc9dab58dbb2e9c1ac184da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib import math import json from ccxt.base.errors import ExchangeError fro...
46.301503
184
0.4719
from ccxt.async_support.base.exchange import Exchange import hashlib import math import json from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from ccxt.base.errors import PermissionDenied from ccxt.base.errors import AccountSuspended from ccxt.base.errors import BadRequest f...
true
true
08ef43cbded62d5ec803ee27e1ba990e7b23f9ba
850
py
Python
qpath/__init__.py
vladpopovici/QPath
fd4d4be19eef6a16c6b6dd26974790155a7cf9da
[ "MIT" ]
null
null
null
qpath/__init__.py
vladpopovici/QPath
fd4d4be19eef6a16c6b6dd26974790155a7cf9da
[ "MIT" ]
null
null
null
qpath/__init__.py
vladpopovici/QPath
fd4d4be19eef6a16c6b6dd26974790155a7cf9da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################# # Copyright Vlad Popovici <popovici@bioxlab.org> # # Licensed under the MIT License. See LICENSE file in root folder. ############################################################################# __author__ = "Vlad P...
29.310345
77
0.52
__author__ = "Vlad Popovici <popovici@bioxlab.org>" __version__ = 0.1 class Error(Exception): def __init__(self, msg, code=1, *args): self.message = "QPATH: " + msg self.code = code super(Error, self).__init__(msg, code, *args)
true
true
08ef4445ca4abe7597433feac20e4c0ff5bf8b4d
5,865
py
Python
rally/plugins/openstack/context/dataplane/heat.py
varuntiwari27/rally
948fba0e8fe8214dd3716451d2a52e014a4115be
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/dataplane/heat.py
varuntiwari27/rally
948fba0e8fe8214dd3716451d2a52e014a4115be
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/dataplane/heat.py
varuntiwari27/rally
948fba0e8fe8214dd3716451d2a52e014a4115be
[ "Apache-2.0" ]
null
null
null
# Copyright 2016: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
39.897959
78
0.573572
import pkgutil from rally.common.i18n import _ from rally.common import logging from rally.common import utils as rutils from rally import consts from rally import exceptions from rally import osclients from rally.plugins.openstack.cleanup import manager as resource_manager from rally.plugins.openstack.scenarios.heat...
true
true
08ef44dcc6c46cefc0a169e988ef6e7d85268695
12,580
py
Python
CoreChat.py
emreyigitcbc/PythonAskBot
e8471a033b92a0ab6d5a04cc9d36a46760d63b5a
[ "MIT" ]
2
2020-10-21T23:39:18.000Z
2022-01-22T11:23:05.000Z
CoreChat.py
emreyigitcbc/PythonAskBot
e8471a033b92a0ab6d5a04cc9d36a46760d63b5a
[ "MIT" ]
null
null
null
CoreChat.py
emreyigitcbc/PythonAskBot
e8471a033b92a0ab6d5a04cc9d36a46760d63b5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime # Date import json # JSON things import os # Collect data from os import sys # For some sys vars import random # Randomizer import re # For deleting HTML tags when logging from nltk.tokenize import TweetTokenizer # Lang tools from difflib import SequenceMatcher ...
49.527559
120
0.431081
import datetime import json import os import sys import random import re from nltk.tokenize import TweetTokenizer from difflib import SequenceMatcher def resource_path(relative_path): try: base_path = sys._MEIPASS except Exception: base_path = os.path.abspath("....
true
true
08ef450bb624c2ae9a3e88e08feb52f59e6a9aa4
49,903
py
Python
pyjac/loopy_utils/loopy_utils.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
9
2018-10-08T07:49:20.000Z
2021-06-26T15:28:30.000Z
pyjac/loopy_utils/loopy_utils.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
13
2018-09-01T14:17:51.000Z
2021-07-30T16:19:33.000Z
pyjac/loopy_utils/loopy_utils.py
arghdos/spyJac
bdd6940c27681e3b19ee41efb31abd20a89d1be8
[ "MIT" ]
7
2018-09-08T11:57:34.000Z
2022-02-14T13:57:20.000Z
from __future__ import print_function import logging import os import stat import re import six from string import Template # package imports import loopy as lp from loopy.target.c.c_execution import CPlusPlusCompiler import numpy as np import warnings try: import pyopencl as cl from pyopencl.tools import cl...
36.478801
85
0.584534
from __future__ import print_function import logging import os import stat import re import six from string import Template import loopy as lp from loopy.target.c.c_execution import CPlusPlusCompiler import numpy as np import warnings try: import pyopencl as cl from pyopencl.tools import clear_first_arg_cach...
true
true
08ef4636c770b626fef6c6e63bd539e8375d23a8
497
py
Python
tensorflow/utils/tensor.py
bsautermeister/tensorflow-handwriting-demo
73292f3bfc4fd9dcdad0d6e77d72c82c87e15d7e
[ "MIT" ]
null
null
null
tensorflow/utils/tensor.py
bsautermeister/tensorflow-handwriting-demo
73292f3bfc4fd9dcdad0d6e77d72c82c87e15d7e
[ "MIT" ]
null
null
null
tensorflow/utils/tensor.py
bsautermeister/tensorflow-handwriting-demo
73292f3bfc4fd9dcdad0d6e77d72c82c87e15d7e
[ "MIT" ]
1
2018-07-27T07:50:05.000Z
2018-07-27T07:50:05.000Z
""" Tensorflow related utility functions. """ from __future__ import absolute_import, division, print_function import tensorflow as tf def get_num_trainable_params(): total_parameters = 0 for variable in tf.trainable_variables(): # shape is an array of tf.Dimension shape = variable.get_shape(...
31.0625
64
0.706237
from __future__ import absolute_import, division, print_function import tensorflow as tf def get_num_trainable_params(): total_parameters = 0 for variable in tf.trainable_variables(): shape = variable.get_shape() variable_parametes = 1 for dim in shape: variable_pa...
true
true
08ef47f7b8924ca7bc1f4b6deaa483049aeb089c
818
py
Python
django_money_manager/manage.py
dsonoda/django-money-manager
e850e47088e650d503eb3c51a7bf877f14defa46
[ "MIT" ]
1
2020-06-23T03:49:28.000Z
2020-06-23T03:49:28.000Z
django_money_manager/manage.py
dsonoda/django-money-manager
e850e47088e650d503eb3c51a7bf877f14defa46
[ "MIT" ]
null
null
null
django_money_manager/manage.py
dsonoda/django-money-manager
e850e47088e650d503eb3c51a7bf877f14defa46
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_money_manager.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ens...
35.565217
84
0.647922
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_money_manager.settings") try: from django.core.management import execute_from_command_line except ImportError: try: import django except Import...
true
true
08ef48b40fbbb7f1b24404a8deb5f0049f1b637b
5,158
py
Python
sitemessage/utils.py
furins/django-sitemessage
4cdfa0e78eb122dea835c9c4ef845f44e3a5eb90
[ "BSD-3-Clause" ]
null
null
null
sitemessage/utils.py
furins/django-sitemessage
4cdfa0e78eb122dea835c9c4ef845f44e3a5eb90
[ "BSD-3-Clause" ]
null
null
null
sitemessage/utils.py
furins/django-sitemessage
4cdfa0e78eb122dea835c9c4ef845f44e3a5eb90
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple, defaultdict from threading import local from typing import Union, List, Type, Dict try: from django.utils.module_loading import import_module except ImportError: # Django <=1.9.0 from django.utils.importlib import import_module from etc.toolbox import get_site_url as g...
27.881081
108
0.740985
from collections import namedtuple, defaultdict from threading import local from typing import Union, List, Type, Dict try: from django.utils.module_loading import import_module except ImportError: from django.utils.importlib import import_module from etc.toolbox import get_site_url as get_site_url_, imp...
true
true
08ef48f94a8c46df630ce7f121db0c73897442fc
17,915
py
Python
pycti/entities/opencti_vulnerability.py
Cix-16/client-python
91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf
[ "Apache-2.0" ]
null
null
null
pycti/entities/opencti_vulnerability.py
Cix-16/client-python
91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf
[ "Apache-2.0" ]
null
null
null
pycti/entities/opencti_vulnerability.py
Cix-16/client-python
91fd5a874f9bf3de9d6ae6dc12fecd4791fb3caf
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import json from pycti.utils.constants import CustomProperties from pycti.utils.opencti_stix2 import SPEC_VERSION class Vulnerability: def __init__(self, opencti): self.opencti = opencti self.properties = """ id stix_id_key stix_label ...
37.091097
176
0.467597
import json from pycti.utils.constants import CustomProperties from pycti.utils.opencti_stix2 import SPEC_VERSION class Vulnerability: def __init__(self, opencti): self.opencti = opencti self.properties = """ id stix_id_key stix_label entity_type ...
true
true
08ef496b3d7ebf85fec2d743cdf2f72b128e1e55
13,677
py
Python
src/oscar/apps/dashboard/views.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
3
2020-03-30T13:11:57.000Z
2020-04-22T13:55:31.000Z
src/oscar/apps/dashboard/views.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
9
2020-10-29T08:03:28.000Z
2021-09-08T01:21:10.000Z
src/oscar/apps/dashboard/views.py
guidoaaroni/arandu
e1553b21516f38fd2fb10cf65204541efd3c8b54
[ "BSD-3-Clause" ]
2
2021-01-06T19:25:07.000Z
2021-05-14T02:00:19.000Z
import json from datetime import timedelta from decimal import Decimal as D from decimal import ROUND_UP from django.db.models import Avg, Count, Sum from django.template.response import TemplateResponse from django.utils import six from django.utils.timezone import now from django.views.generic import TemplateView f...
40.705357
133
0.640638
import json from datetime import timedelta from decimal import Decimal as D from decimal import ROUND_UP from django.db.models import Avg, Count, Sum from django.template.response import TemplateResponse from django.utils import six from django.utils.timezone import now from django.views.generic import TemplateView f...
true
true
08ef4981f7f52175cdaf27a781cbc22782979844
32,068
py
Python
granular_access/lambda_functions/granular_access/granular_access.py
mihirborkar/amazon-quicksight-sdk-proserve
da5db14f120f106374368fe7a3f94d6bb7640d04
[ "MIT-0" ]
null
null
null
granular_access/lambda_functions/granular_access/granular_access.py
mihirborkar/amazon-quicksight-sdk-proserve
da5db14f120f106374368fe7a3f94d6bb7640d04
[ "MIT-0" ]
null
null
null
granular_access/lambda_functions/granular_access/granular_access.py
mihirborkar/amazon-quicksight-sdk-proserve
da5db14f120f106374368fe7a3f94d6bb7640d04
[ "MIT-0" ]
null
null
null
import json import boto3 import logging import csv import io import os import tempfile # import awswrangler as wr from typing import Any, Callable, Dict, List, Optional lambda_aws_region = os.environ['AWS_REGION'] aws_region = 'us-east-1' ssm = boto3.client("ssm", region_name=lambda_aws_region) def get_ssm_parameter...
40.695431
118
0.462112
import json import boto3 import logging import csv import io import os import tempfile from typing import Any, Callable, Dict, List, Optional lambda_aws_region = os.environ['AWS_REGION'] aws_region = 'us-east-1' ssm = boto3.client("ssm", region_name=lambda_aws_region) def get_ssm_parameters(ssm_string): config_s...
true
true
08ef4b60a852626838c37eed407253d040fa15bb
11,318
py
Python
cvpods/evaluation/crowdhuman_evaluation.py
StevenGrove/LearnableTreeFilterV2
0c85352155ed56dfc6126fc1ebcfec35f16d4375
[ "Apache-2.0" ]
81
2020-11-16T00:31:19.000Z
2022-03-16T02:49:45.000Z
tools/cvpods/evaluation/crowdhuman_evaluation.py
lingtengqiu/LearnableTreeFilterV2
3814a5a84c0a5c33d6538749eaf5aed4827366de
[ "Apache-2.0" ]
7
2020-11-25T13:30:17.000Z
2021-09-16T03:38:45.000Z
tools/cvpods/evaluation/crowdhuman_evaluation.py
lingtengqiu/LearnableTreeFilterV2
3814a5a84c0a5c33d6538749eaf5aed4827366de
[ "Apache-2.0" ]
8
2020-12-09T11:18:40.000Z
2021-07-26T06:05:50.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import copy import itertools import json import logging import os from collections import OrderedDict import numpy as np import pycocotools.mask as mask_util import torch from cvpods.data.datasets.coco import convert_to_coco_json from cvpods.stru...
36.509677
92
0.583937
import copy import itertools import json import logging import os from collections import OrderedDict import numpy as np import pycocotools.mask as mask_util import torch from cvpods.data.datasets.coco import convert_to_coco_json from cvpods.structures import BoxMode from cvpods.utils import PathManager, comm, creat...
true
true
08ef4cc4d6808afd2dddc2a6568c892a3c555619
217
py
Python
erpnext_etsy/erpnext_etsy/doctype/etsy_profile/test_etsy_profile.py
spacehaven/erpnext_etsy
08113723b1b072c0e246706b635a49786973f8c1
[ "MIT" ]
3
2020-12-19T15:51:11.000Z
2021-05-13T11:29:09.000Z
erpnext_etsy/erpnext_etsy/doctype/etsy_profile/test_etsy_profile.py
spacehaven/erpnext_etsy
08113723b1b072c0e246706b635a49786973f8c1
[ "MIT" ]
null
null
null
erpnext_etsy/erpnext_etsy/doctype/etsy_profile/test_etsy_profile.py
spacehaven/erpnext_etsy
08113723b1b072c0e246706b635a49786973f8c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Jonathan Martin and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestEtsyProfile(unittest.TestCase): pass
19.727273
54
0.774194
from __future__ import unicode_literals import frappe import unittest class TestEtsyProfile(unittest.TestCase): pass
true
true
08ef4cfbc4ac4eb2326f4143e0211ed3feeeea43
44
py
Python
instance/config.py
Kingsleymuturi/News-app
ecab70635c8aa211d1cc7cbd87a9c40d35cab26c
[ "MIT" ]
1
2020-11-23T11:18:59.000Z
2020-11-23T11:18:59.000Z
instance/config.py
Kingsleymuturi/News-app
ecab70635c8aa211d1cc7cbd87a9c40d35cab26c
[ "MIT" ]
null
null
null
instance/config.py
Kingsleymuturi/News-app
ecab70635c8aa211d1cc7cbd87a9c40d35cab26c
[ "MIT" ]
null
null
null
API_KEY = '992aa3eee0b140a691feac60ece1e2ba'
44
44
0.886364
API_KEY = '992aa3eee0b140a691feac60ece1e2ba'
true
true
08ef4d28e12b7f001b4f3086872d7c16c9e1ed69
981
py
Python
FEMur/__init__.py
MrJarv1s/FEMur
0ff83c1f34d963edb2305110078f8e0592937c83
[ "MIT" ]
1
2020-08-28T01:14:26.000Z
2020-08-28T01:14:26.000Z
FEMur/__init__.py
Greg-Hamel/FEMur
0ff83c1f34d963edb2305110078f8e0592937c83
[ "MIT" ]
16
2017-06-25T16:12:05.000Z
2017-08-07T23:30:44.000Z
FEMur/__init__.py
MrJarv1s/FEMur
0ff83c1f34d963edb2305110078f8e0592937c83
[ "MIT" ]
null
null
null
""" FEMur.py This module introduces a few concepts of the Finite Element Method (FEM) and aims at providing a number of tools for solving FEM-related problems. Its development was started in order to solve problems and projects related to the SYS806 'Application of the Finite Element Method' Class at 'Ecole de techno...
35.035714
78
0.788991
from FEMur.node import * from FEMur.node1D import * from FEMur.node2D import * from FEMur.node3D import * from FEMur.element import * from FEMur.element1D import * from FEMur.element2D import * from FEMur.element3D import * from FEMur.mesh import * from FEMur.mesh1D import * from FEMur.mesh2D import * from FEMur.mesh3D...
true
true
08ef4d97dc056bd3a946dcd2cedfdbd64ae0e814
1,301
py
Python
apps/index.py
kbrohkahn/kevinbrohkahn.com
092457bea6207dcccd0f1c947c81097d9e5080a3
[ "Apache-2.0" ]
null
null
null
apps/index.py
kbrohkahn/kevinbrohkahn.com
092457bea6207dcccd0f1c947c81097d9e5080a3
[ "Apache-2.0" ]
null
null
null
apps/index.py
kbrohkahn/kevinbrohkahn.com
092457bea6207dcccd0f1c947c81097d9e5080a3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python with open("../templates/header.html", "r") as header: print header.read() with open("../templates/navbar.html", "r") as navbar: print navbar.read() print('<link href="/assets/css/circuit-background.css" rel="stylesheet">') print(""" <div id="circuit-background"> <div id="circuit-background-c...
41.967742
157
0.664105
with open("../templates/header.html", "r") as header: print header.read() with open("../templates/navbar.html", "r") as navbar: print navbar.read() print('<link href="/assets/css/circuit-background.css" rel="stylesheet">') print(""" <div id="circuit-background"> <div id="circuit-background-cover"> <div class="n...
false
true
08ef4e056459cccffe8b659cce97628e3d990f44
5,571
py
Python
app/main/validators.py
davidbgk/notification-admin
ad1a7734f84492a085420ee052c243d9fb189adc
[ "MIT" ]
null
null
null
app/main/validators.py
davidbgk/notification-admin
ad1a7734f84492a085420ee052c243d9fb189adc
[ "MIT" ]
null
null
null
app/main/validators.py
davidbgk/notification-admin
ad1a7734f84492a085420ee052c243d9fb189adc
[ "MIT" ]
null
null
null
import re import time import pwnedpasswords from flask import current_app from flask_babel import _ from flask_babel import lazy_gettext as _l from notifications_utils.field import Field from notifications_utils.recipients import ( InvalidEmailError, validate_email_address, ) from notifications_utils.sanitise_...
33.359281
121
0.655179
import re import time import pwnedpasswords from flask import current_app from flask_babel import _ from flask_babel import lazy_gettext as _l from notifications_utils.field import Field from notifications_utils.recipients import ( InvalidEmailError, validate_email_address, ) from notifications_utils.sanitise_...
true
true
08ef4f24573d0e0311b73a71a02dc9422985fdfb
12,955
py
Python
hummingbot/connector/exchange/okex/okex_api_order_book_data_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
3,027
2019-04-04T18:52:17.000Z
2022-03-30T09:38:34.000Z
hummingbot/connector/exchange/okex/okex_api_order_book_data_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
4,080
2019-04-04T19:51:11.000Z
2022-03-31T23:45:21.000Z
hummingbot/connector/exchange/okex/okex_api_order_book_data_source.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1,342
2019-04-04T20:50:53.000Z
2022-03-31T15:22:36.000Z
#!/usr/bin/env python import aiohttp import asyncio import json import logging import pandas as pd import time from typing import ( Any, AsyncIterable, Dict, List, Optional, ) import websockets from websockets.exceptions import ConnectionClosed from hummingbot.core.data_type.order_book_message im...
46.600719
194
0.564029
import aiohttp import asyncio import json import logging import pandas as pd import time from typing import ( Any, AsyncIterable, Dict, List, Optional, ) import websockets from websockets.exceptions import ConnectionClosed from hummingbot.core.data_type.order_book_message import OrderBookMessage ...
true
true
08ef4f72e4436c0d59d4503a7aa150e81c7249ed
5,190
py
Python
models/submissions/epidemiological/version3_0/generate_submission3_0_2.py
Zarand3r/corona_light
96482cfb6fff8959772ccd48c10ce0588b191f18
[ "MIT" ]
1
2020-09-27T08:55:32.000Z
2020-09-27T08:55:32.000Z
models/submissions/epidemiological/version3_0/generate_submission3_0_2.py
Zarand3r/corona_light
96482cfb6fff8959772ccd48c10ce0588b191f18
[ "MIT" ]
null
null
null
models/submissions/epidemiological/version3_0/generate_submission3_0_2.py
Zarand3r/corona_light
96482cfb6fff8959772ccd48c10ce0588b191f18
[ "MIT" ]
null
null
null
############################################ # Adapted from code written by August Chen # ############################################ import pandas as pd import numpy as np import os import csv import datetime import git import sys repo = git.Repo("./", search_parent_directories=True) homedir = repo.working_dir sys.pa...
38.731343
286
0.711368
import pandas as pd import numpy as np import os import csv import datetime import git import sys repo = git.Repo("./", search_parent_directories=True) homedir = repo.working_dir sys.path.insert(0, f"{homedir}" + '/models/submissions/processing/') sys.path.insert(1, f"{homedir}" + '/models/epidemiological/production') ...
true
true
08ef500138f763d2b7c23441ff87f7832c22cddf
1,509
py
Python
students/K33401/Savonik_Nikita/Lr4/CarRental/urls.py
Bot228/ITMO_ICT_WebDevelopment_2020-2021
4d3691507c2f01eb4b905f4e40c1e59de850f72d
[ "MIT" ]
null
null
null
students/K33401/Savonik_Nikita/Lr4/CarRental/urls.py
Bot228/ITMO_ICT_WebDevelopment_2020-2021
4d3691507c2f01eb4b905f4e40c1e59de850f72d
[ "MIT" ]
null
null
null
students/K33401/Savonik_Nikita/Lr4/CarRental/urls.py
Bot228/ITMO_ICT_WebDevelopment_2020-2021
4d3691507c2f01eb4b905f4e40c1e59de850f72d
[ "MIT" ]
null
null
null
"""CarRental URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
35.928571
100
0.705765
from django.contrib import admin from django.urls import path, include from api import urls from rest_framework import permissions from drf_yasg.views import get_schema_view from drf_yasg import openapi schema_view = get_schema_view( openapi.Info( title="API", default_version='v2', descript...
true
true
08ef507f170fecabc58b7fd9cd1506918aa47c46
3,475
py
Python
tensorflow/examples/skflow/text_classification.py
ln0119/tensorflow-fast-rcnn
e937e6394818c9a320754237651d7fe083b1020d
[ "Apache-2.0" ]
73
2017-01-05T09:06:08.000Z
2021-11-06T14:00:50.000Z
tensorflow/examples/skflow/text_classification.py
minhhoai2/tensorflow
da88903d5e29230d68d861053aa1dea1432c0696
[ "Apache-2.0" ]
8
2017-04-10T10:36:20.000Z
2021-02-07T01:02:32.000Z
tensorflow/examples/skflow/text_classification.py
minhhoai2/tensorflow
da88903d5e29230d68d861053aa1dea1432c0696
[ "Apache-2.0" ]
151
2016-11-10T09:01:15.000Z
2022-01-18T08:13:49.000Z
# Copyright 2015-present The Scikit Flow 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 require...
41.86747
95
0.763741
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from sklearn import metrics import pandas import tensorflow as tf from tensorflow.contrib import learn dbpedia = learn.datasets.load_dataset('dbpedia') X_train, y_train = pandas.DataFrame(...
true
true
08ef51214501156eb08b1fc3524d8a43617401e2
755
py
Python
mayan/apps/storage/storages.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
1
2021-02-24T15:03:23.000Z
2021-02-24T15:03:23.000Z
mayan/apps/storage/storages.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/storage/storages.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
1
2020-08-09T09:06:59.000Z
2020-08-09T09:06:59.000Z
from django.utils.translation import ugettext_lazy as _ from .classes import DefinedStorage from .literals import STORAGE_NAME_SHARED_UPLOADED_FILE from .settings import ( setting_shared_storage, setting_shared_storage_arguments ) storage_shared_uploaded_files = DefinedStorage( dotted_path=setting_shared_stor...
32.826087
63
0.752318
from django.utils.translation import ugettext_lazy as _ from .classes import DefinedStorage from .literals import STORAGE_NAME_SHARED_UPLOADED_FILE from .settings import ( setting_shared_storage, setting_shared_storage_arguments ) storage_shared_uploaded_files = DefinedStorage( dotted_path=setting_shared_stor...
true
true
08ef51db9db2ac86620d18bfb1ac125b100d41fe
212
py
Python
palestras-conversas/apizinha/models.py
gupy-io/mentoria-python
c8f56cfe4e0a61dd1f4609b8e645f62b380724f0
[ "MIT" ]
7
2019-09-20T21:25:36.000Z
2021-04-06T11:21:44.000Z
palestras-conversas/apizinha/models.py
gupy-io/mentoria-python
c8f56cfe4e0a61dd1f4609b8e645f62b380724f0
[ "MIT" ]
5
2019-09-20T19:07:29.000Z
2019-11-03T21:51:21.000Z
palestras-conversas/apizinha/models.py
gupy-io/mentoria-python
c8f56cfe4e0a61dd1f4609b8e645f62b380724f0
[ "MIT" ]
null
null
null
from pydantic import BaseModel from typing import List, Dict, Any, Optional from db import OpStatus class Todo(BaseModel): titulo: str status: Optional[OpStatus] class TodoResponse(Todo): id: int
16.307692
44
0.740566
from pydantic import BaseModel from typing import List, Dict, Any, Optional from db import OpStatus class Todo(BaseModel): titulo: str status: Optional[OpStatus] class TodoResponse(Todo): id: int
true
true
08ef5290448833c9573cf94b1e9b8f1088bd7d0a
3,679
py
Python
code/DeepDA/models.py
puchapu/transferlearning
88ceafe963a51a38ded22b709cfa44d4355112d2
[ "MIT" ]
2
2021-07-02T02:41:01.000Z
2021-07-02T02:41:08.000Z
code/DeepDA/models.py
xxlya/transferlearning
1f14c192706db52e3982daae623b5bbabb31ab57
[ "MIT" ]
null
null
null
code/DeepDA/models.py
xxlya/transferlearning
1f14c192706db52e3982daae623b5bbabb31ab57
[ "MIT" ]
1
2021-07-30T00:24:35.000Z
2021-07-30T00:24:35.000Z
import torch import torch.nn as nn from transfer_losses import TransferLoss import backbones class TransferNet(nn.Module): def __init__(self, num_class, base_net='resnet50', transfer_loss='mmd', use_bottleneck=True, bottleneck_width=256, max_iter=1000, **kwargs): super(TransferNet, self).__init__() ...
40.877778
144
0.614026
import torch import torch.nn as nn from transfer_losses import TransferLoss import backbones class TransferNet(nn.Module): def __init__(self, num_class, base_net='resnet50', transfer_loss='mmd', use_bottleneck=True, bottleneck_width=256, max_iter=1000, **kwargs): super(TransferNet, self).__init__() ...
true
true
08ef544a77ad5e39f2225601cafc5b2b81aa72ad
44,165
py
Python
Tools/stringbench/stringbench.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Tools/stringbench/stringbench.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Tools/stringbench/stringbench.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
# Various microbenchmarks comparing unicode oraz byte string performance # Please keep this file both 2.x oraz 3.x compatible! zaimportuj timeit zaimportuj itertools zaimportuj operator zaimportuj re zaimportuj sys zaimportuj datetime zaimportuj optparse VERSION = '2.0' def p(*args): sys.stdout.write(' '.join(s...
29.78085
104
0.640598
zaimportuj timeit zaimportuj itertools zaimportuj operator zaimportuj re zaimportuj sys zaimportuj datetime zaimportuj optparse VERSION = '2.0' def p(*args): sys.stdout.write(' '.join(str(s) dla s w args) + '\n') jeżeli sys.version_info >= (3,): BYTES = bytes_from_str = lambda x: x.encode('ascii') UNIC...
false
true
08ef552a6f51362a6fe47c6c73b232c1bc53f22d
10,213
py
Python
bot.py
PrusDawid/Godragon
9627ac9523496bdfb05e11c2d3e605d2860cdca7
[ "MIT" ]
null
null
null
bot.py
PrusDawid/Godragon
9627ac9523496bdfb05e11c2d3e605d2860cdca7
[ "MIT" ]
null
null
null
bot.py
PrusDawid/Godragon
9627ac9523496bdfb05e11c2d3e605d2860cdca7
[ "MIT" ]
null
null
null
import os import logging import json import discord from discord.ext import commands from environs import Env from bs4 import BeautifulSoup from selenium import webdriver from datetime import datetime class BadFormatException(Exception): pass bot_defaults = { "bot_prefix": "bb! ", "bible_version": "BW",...
31.915625
267
0.63899
import os import logging import json import discord from discord.ext import commands from environs import Env from bs4 import BeautifulSoup from selenium import webdriver from datetime import datetime class BadFormatException(Exception): pass bot_defaults = { "bot_prefix": "bb! ", "bible_version": "BW",...
true
true
08ef56ce245d2fe88fa84a74bae2733ddba049e5
319
py
Python
tests/sammod/test_samclass.py
pgtgrly/sampkg
f704666a912a1a54bf30c465ad57c684624cb520
[ "MIT" ]
null
null
null
tests/sammod/test_samclass.py
pgtgrly/sampkg
f704666a912a1a54bf30c465ad57c684624cb520
[ "MIT" ]
null
null
null
tests/sammod/test_samclass.py
pgtgrly/sampkg
f704666a912a1a54bf30c465ad57c684624cb520
[ "MIT" ]
null
null
null
from sampkg.sammod import Samclass def test_samclass(): x = Samclass() assert x.sam_inst_func() == 'hello hello' assert x.samstring == 'hello' assert Samclass.counter == 1 y = Samclass("Link") assert y.sam_inst_func() == 'hello Link' assert y.samstring == 'Link' assert y.counter == 2
24.538462
45
0.642633
from sampkg.sammod import Samclass def test_samclass(): x = Samclass() assert x.sam_inst_func() == 'hello hello' assert x.samstring == 'hello' assert Samclass.counter == 1 y = Samclass("Link") assert y.sam_inst_func() == 'hello Link' assert y.samstring == 'Link' assert y.counter == 2
true
true
08ef57eba9c41292848ce523a9e43e9569a8968d
2,156
py
Python
src/oci/log_analytics/models/log_analytics_lookup_collection.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/log_analytics/models/log_analytics_lookup_collection.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/log_analytics/models/log_analytics_lookup_collection.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.366197
245
0.668831
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class LogAnalyticsLookupCollection(object): def __init__(self, **kwargs): self.swagger_types = { 'items': 'list...
true
true
08ef581ab58849c74e9f90c5b6d2a6fbffa15a6d
19,293
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/18-sender_receiver_36.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/18-sender_receiver_36.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/18-sender_receiver_36.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
38.053254
89
0.579226
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
true
true
08ef59eddc9d40c1226e0e3cd674f80d6aac21b7
10,781
py
Python
rl/policy.py
jmenashe/keras-rl
e94ef887f5fb45d800d458f732e707a82c8b9b7d
[ "MIT" ]
3
2019-02-15T05:12:32.000Z
2020-06-07T22:53:59.000Z
rl/policy.py
jmenashe/keras-rl
e94ef887f5fb45d800d458f732e707a82c8b9b7d
[ "MIT" ]
null
null
null
rl/policy.py
jmenashe/keras-rl
e94ef887f5fb45d800d458f732e707a82c8b9b7d
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from rl.util import * class Policy(object): """Abstract base class for all implemented policies. Each policy helps with selection of action to take on an environment. Do not use this abstract base class directly but instead use one of the concrete poli...
30.19888
106
0.62573
from __future__ import division import numpy as np from rl.util import * class Policy(object): def _set_agent(self, agent): self.agent = agent @property def metrics_names(self): return [] @property def metrics(self): return [] def select_action(self, **kwargs): ...
true
true
08ef5a5cc6b936e1d6f5346d2d311aacede8b160
1,875
py
Python
celest/encounter/groundposition.py
JaiWillems/celest
5074b94feecc39127e5b0b0b1a683f636b725ca4
[ "BSD-3-Clause" ]
3
2021-12-31T08:17:19.000Z
2022-03-27T00:36:31.000Z
celest/encounter/groundposition.py
JaiWillems/celest
5074b94feecc39127e5b0b0b1a683f636b725ca4
[ "BSD-3-Clause" ]
1
2022-02-05T04:05:41.000Z
2022-02-05T04:05:41.000Z
celest/encounter/groundposition.py
JaiWillems/celest
5074b94feecc39127e5b0b0b1a683f636b725ca4
[ "BSD-3-Clause" ]
null
null
null
import numpy as np class GroundPosition(object): """GroundPosition(latitude, longitude) Localize Earth surface location information. Parameters ---------- latitude : float Lattitude of the location in decimal degrees. longitude : float Longitude of the location in decimal d...
25.337838
77
0.570667
import numpy as np class GroundPosition(object): def __init__(self, latitude: float, longitude: float) -> None: self.lat = latitude self.lon = longitude self.radius = self._radius(latitude) def __str__(self) -> str: return f"coor={(self.lat, self.lon)}, radius={round(self...
true
true
08ef5c250eab0a734cc525cc4b35f614d1986659
414
py
Python
test/tests/exception_subclasscheck2.py
lameiro/pyston
838e0ac98d5926ba942224951cd1e8bad5483b5e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/exception_subclasscheck2.py
lameiro/pyston
838e0ac98d5926ba942224951cd1e8bad5483b5e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/exception_subclasscheck2.py
lameiro/pyston
838e0ac98d5926ba942224951cd1e8bad5483b5e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
# expected: fail # - CPython calls subclasscheck twice, while we call it once. # Looks like this is because CPython calls PyErr_NormalizeException # when the exception gets set. class M(type): def __subclasscheck__(self, sub): print "subclasscheck", sub return True class E(Exception): __me...
21.789474
69
0.695652
class M(type): def __subclasscheck__(self, sub): print "subclasscheck", sub return True class E(Exception): __metaclass__ = M try: raise E() except E: pass
false
true
08ef5d00c82b74c85c7fcb0254fe62b3105a5a3a
27,657
py
Python
test_opensearch/test_server/test_helpers.py
VijayanB/opensearch-py
f4891be3c301ffc4046f807d7cc97c9c7e4ecfb6
[ "Apache-2.0" ]
null
null
null
test_opensearch/test_server/test_helpers.py
VijayanB/opensearch-py
f4891be3c301ffc4046f807d7cc97c9c7e4ecfb6
[ "Apache-2.0" ]
null
null
null
test_opensearch/test_server/test_helpers.py
VijayanB/opensearch-py
f4891be3c301ffc4046f807d7cc97c9c7e4ecfb6
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. # # Licensed to Elasticsearch B.V. under...
35.640464
88
0.509491
from mock import patch from opensearch import TransportError, helpers from opensearch.helpers import ScanError from ..test_cases import SkipTest from . import OpenSearchTestCase class FailingBulkClient(object): def __init__( self, client, fail_at=(2,), fail_with=TransportError(599, "Error!", {}) ):...
true
true
08ef5d215fde8f08461bfd28d3c4399aba0918af
31,231
py
Python
stai/farmer/farmer_api.py
foxypool/staicoin-blockchain
dffa9e2dfc06f0d8a83994b35184e68e5c7818aa
[ "Apache-2.0" ]
3
2021-11-15T12:05:37.000Z
2022-01-15T21:55:34.000Z
stai/farmer/farmer_api.py
foxypool/staicoin-blockchain
dffa9e2dfc06f0d8a83994b35184e68e5c7818aa
[ "Apache-2.0" ]
7
2021-11-10T18:08:01.000Z
2021-11-10T18:08:03.000Z
stai/farmer/farmer_api.py
foxypool/staicoin-blockchain
dffa9e2dfc06f0d8a83994b35184e68e5c7818aa
[ "Apache-2.0" ]
1
2022-01-04T07:39:22.000Z
2022-01-04T07:39:22.000Z
import asyncio import json import time from typing import Callable, Optional, List, Any, Dict, Tuple import aiohttp from blspy import AugSchemeMPL, G2Element, G1Element, PrivateKey import stai.server.ws_connection as ws from stai import __version__ from stai.consensus.network_type import NetworkType from stai.consens...
49.573016
125
0.596235
import asyncio import json import time from typing import Callable, Optional, List, Any, Dict, Tuple import aiohttp from blspy import AugSchemeMPL, G2Element, G1Element, PrivateKey import stai.server.ws_connection as ws from stai import __version__ from stai.consensus.network_type import NetworkType from stai.consens...
true
true
08ef5d70b96590ee29ed0b077e2b05b0597c3369
2,320
py
Python
code/scripts/AD_inpainting/update_publicDataset.py
antoine-spahr/Label-Efficient-Volumetric-Deep-Semantic-Segmentation-of-ICH
61e74a6188fe82843085e87da7d9c4ec7bdbf85e
[ "MIT" ]
4
2021-03-16T09:52:12.000Z
2021-12-23T00:59:18.000Z
code/scripts/AD_inpainting/update_publicDataset.py
antoine-spahr/Label-Efficient-Volumetric-Deep-Semantic-Segmentation-of-ICH
61e74a6188fe82843085e87da7d9c4ec7bdbf85e
[ "MIT" ]
null
null
null
code/scripts/AD_inpainting/update_publicDataset.py
antoine-spahr/Label-Efficient-Volumetric-Deep-Semantic-Segmentation-of-ICH
61e74a6188fe82843085e87da7d9c4ec7bdbf85e
[ "MIT" ]
null
null
null
""" author: Antoine Spahr date : 07.12.2020 ---------- To Do: - """ import os import shutil import glob import sys sys.path.append('../../') import click import pandas as pd from src.utils.print_utils import print_progessbar @click.command() @click.argument("src_data_path", type=click.Path(exists=True)) @click...
35.692308
271
0.640948
import os import shutil import glob import sys sys.path.append('../../') import click import pandas as pd from src.utils.print_utils import print_progessbar @click.command() @click.argument("src_data_path", type=click.Path(exists=True)) @click.argument("src_data_info", type=click.Path(exists=True)) @click.argument("d...
true
true
08ef5d85d6b60fa93d5864221c099f3c3f5a2593
3,047
py
Python
applications/popart/transformer_transducer/training/common/text/cleaners.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
567
2018-09-13T05:07:49.000Z
2020-11-23T11:52:11.000Z
applications/popart/transformer_transducer/training/common/text/cleaners.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
222
2018-09-14T10:15:39.000Z
2020-11-20T22:21:09.000Z
rnn_speech_recognition/pytorch/common/text/cleaners.py
ltechkorea/mlperf-training
498b945dd914573bdbf7a871eaeebd9388b60b76
[ "Apache-2.0" ]
279
2018-09-16T12:40:29.000Z
2020-11-17T14:22:52.000Z
# Copyright (c) 2017 Keith Ito # Copyright (c) 2019, NVIDIA CORPORATION. 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/LICE...
32.073684
97
0.682639
import re from unidecode import unidecode from .numbers import normalize_numbers _whitespace_re = re.compile(r'\s+') _abbreviations = [(re.compile('\\b%s\\.' % x[0], re.IGNORECASE), x[1]) for x in [ ('mrs', 'misess'), ('mr', 'mister'), ('dr', 'doctor'), ('st', 'saint'), ('co', 'company'), (...
true
true
08ef5daef831e8cd77a6e6f505badafa703bffe7
64
py
Python
python/testData/refactoring/unwrap/ifWithElseUnwrap_before.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/unwrap/ifWithElseUnwrap_before.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/unwrap/ifWithElseUnwrap_before.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
if True: #comment x = 1<caret> y = 2 else: z = 3
10.666667
16
0.4375
if True: x = 1<caret> y = 2 else: z = 3
false
true
08ef5e410e9b54ecfc69c926628201d112ed257a
3,368
py
Python
cogs/misc.py
TheRealKeto/AppleReleases
68968d8ffca4fb9afff4144ceb3239fff5bd607c
[ "MIT" ]
14
2021-12-28T21:18:04.000Z
2022-03-19T18:27:27.000Z
cogs/misc.py
m1stadev/release-bot
fd512006a91a38411513f9d8bc313facf1e093ae
[ "MIT" ]
null
null
null
cogs/misc.py
m1stadev/release-bot
fd512006a91a38411513f9d8bc313facf1e093ae
[ "MIT" ]
2
2022-01-02T11:38:04.000Z
2022-02-20T20:44:09.000Z
# imports from datetime import datetime from discord.commands import slash_command from discord.ext import commands from discord.utils import format_dt from math import floor from views.buttons import SelectView import asyncio import discord import psutil import sys class MiscCog(commands.Cog, name='Miscellaneous'): ...
38.272727
203
0.617577
from datetime import datetime from discord.commands import slash_command from discord.ext import commands from discord.utils import format_dt from math import floor from views.buttons import SelectView import asyncio import discord import psutil import sys class MiscCog(commands.Cog, name='Miscellaneous'): def __...
true
true
08ef5e46bbb12e706810c2ed76b5f2a1a22555ee
628
py
Python
manage.py
ciur/lesson-1-f-strings
bb7f3975be594237b8cfd1788e554b8c07a5b33b
[ "Apache-2.0" ]
1
2020-02-13T23:10:57.000Z
2020-02-13T23:10:57.000Z
manage.py
ciur/lesson-2-DRY-for-simple-views
ba7080936e07eba955be56ae8ee4fcbd8ef01572
[ "Apache-2.0" ]
6
2020-06-05T20:09:25.000Z
2021-09-22T18:09:39.000Z
manage.py
ciur/lesson-1-f-strings
bb7f3975be594237b8cfd1788e554b8c07a5b33b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'demoproj.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
28.545455
73
0.683121
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'demoproj.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " ...
true
true
08ef5ef36b53cf14e68e7b67e42b891c68bf3c6d
1,100
py
Python
PYTHON/Functions/arguments.py
YakazaSTG/Python-Basics
35cbc9a7b30dd985922bb288d67a1cf10d4da40c
[ "MIT" ]
null
null
null
PYTHON/Functions/arguments.py
YakazaSTG/Python-Basics
35cbc9a7b30dd985922bb288d67a1cf10d4da40c
[ "MIT" ]
null
null
null
PYTHON/Functions/arguments.py
YakazaSTG/Python-Basics
35cbc9a7b30dd985922bb288d67a1cf10d4da40c
[ "MIT" ]
null
null
null
# def changeName(n): # n = 'ada' # name = 'yiğit' # changeName(name) # print(name) # def change(n): # n[0] = 'istanbul' # sehirler = ['ankara','izmir'] # change(sehirler[:]) # print(sehirler) def add(*params): # tuple kullanırken * tek yıldız kullanılır print(type(params)) sum ...
23.404255
103
0.580909
def add(*params): print(type(params)) sum = 0 for n in params: sum = sum +n return sum print(add(10,20,50)) print(add(10,20,30)) print(add(10,20,30,40,50,60,150,200)) def displayUser(**args): print(type(args)) for key, value in args.items(): ...
true
true
08ef5f00f7719937bde904de58a91cf3e8a17835
5,808
py
Python
lib/tests/streamlit/legacy_vega_lite_test.py
ChangHoon-Sung/streamlit
83e0b80d2fa13e29e83d092a9fc4d946460bbf73
[ "Apache-2.0" ]
1
2019-11-01T08:37:00.000Z
2019-11-01T08:37:00.000Z
lib/tests/streamlit/legacy_vega_lite_test.py
ChangHoon-Sung/streamlit
83e0b80d2fa13e29e83d092a9fc4d946460bbf73
[ "Apache-2.0" ]
35
2021-10-12T04:41:39.000Z
2022-03-28T04:50:45.000Z
lib/tests/streamlit/legacy_vega_lite_test.py
ChangHoon-Sung/streamlit
83e0b80d2fa13e29e83d092a9fc4d946460bbf73
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2022 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
36.759494
85
0.625689
import pandas as pd import pyarrow as pa import json from tests import testutil import streamlit as st from streamlit.errors import StreamlitAPIException df1 = pd.DataFrame([["A", "B", "C", "D"], [28, 55, 43, 91]], index=["a", "b"]).T df2 = pd.DataFrame([["E", "F", "G", "H"], [11, 12, 13, 14]], index=["a", "b"])....
true
true
08ef5f0f0376f51e005430a07e8225becc242cbb
393
py
Python
gram/migrations/0004_remove_image_post_time.py
trevor-ngugi/instagram-clone
50a795e6cc45f1dcdf3fc4fc7ad41088bfeb7e7d
[ "Unlicense" ]
null
null
null
gram/migrations/0004_remove_image_post_time.py
trevor-ngugi/instagram-clone
50a795e6cc45f1dcdf3fc4fc7ad41088bfeb7e7d
[ "Unlicense" ]
5
2020-05-19T22:54:35.000Z
2022-01-13T02:13:31.000Z
gram/migrations/0004_remove_image_post_time.py
trevor-ngugi/instagram-clone
50a795e6cc45f1dcdf3fc4fc7ad41088bfeb7e7d
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2020-02-09 09:06 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('gram', '0003_auto_20200209_1203'), ] operations = [ migrations.RemoveField( ...
19.65
49
0.613232
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('gram', '0003_auto_20200209_1203'), ] operations = [ migrations.RemoveField( model_name='image', name='post_time', ), ]
true
true
08ef5f61e62db64d6290b3ef3e8ed350fd7eb053
872
py
Python
isi_sdk_8_2_2/test/test_nfs_log_level.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/test/test_nfs_log_level.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/test/test_nfs_log_level.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_2 from i...
21.268293
80
0.694954
from __future__ import absolute_import import unittest import isi_sdk_8_2_2 from isi_sdk_8_2_2.models.nfs_log_level import NfsLogLevel from isi_sdk_8_2_2.rest import ApiException class TestNfsLogLevel(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def testNfsLo...
true
true
08ef601373774432a0bf923e2114dedda547b031
402
py
Python
pyvisdk/utils.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/utils.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/utils.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
''' Created on Jul 29, 2011 @author: eplaster ''' import re from munch import Munch def camel_to_under(string): s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', string) return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() def munchify(*sequence): """[item_a, item_b, ... ] -> munch(item_a=item_a, item_b=item...
23.647059
77
0.59204
import re from munch import Munch def camel_to_under(string): s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', string) return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() def munchify(*sequence): enums = Munch({item:item for item in sequence}) return enums
true
true
08ef60e4006ff880a11ff714c9b1fba107e64873
2,918
py
Python
uncertify/tutorials/auto_encoder.py
matthaeusheer/uncertify
dfc2df16fb07ee8d7d17906827e0f0c8b2747532
[ "MIT" ]
1
2021-07-09T00:06:55.000Z
2021-07-09T00:06:55.000Z
uncertify/tutorials/auto_encoder.py
matthaeusheer/uncertify
dfc2df16fb07ee8d7d17906827e0f0c8b2747532
[ "MIT" ]
1
2021-04-29T21:55:32.000Z
2021-04-29T21:55:32.000Z
uncertify/tutorials/auto_encoder.py
matthaeusheer/uncertify
dfc2df16fb07ee8d7d17906827e0f0c8b2747532
[ "MIT" ]
null
null
null
""" Example of a simple AutoEncoder implementation in PyTorch. """ import torch from torch import nn from typing import List class AutoEncoder(torch.nn.Module): def __init__(self, input_dim: int, latent_dim: int, encoder_hidden_dims: List[int] = None, ...
47.836066
120
0.617889
import torch from torch import nn from typing import List class AutoEncoder(torch.nn.Module): def __init__(self, input_dim: int, latent_dim: int, encoder_hidden_dims: List[int] = None, decoder_hidden_dims: List[int] = None) -> None: sup...
true
true
08ef61299d6b3c3ec718f4ac09eb47d08d9d67b5
1,578
py
Python
infra/clean_template.py
acere/amazon-sagemaker-drift-detection
6a4950bde73b9c17c34ab771300f9ca1e279d5f6
[ "MIT-0" ]
27
2021-07-28T14:34:19.000Z
2022-03-17T03:40:38.000Z
infra/clean_template.py
acere/amazon-sagemaker-drift-detection
6a4950bde73b9c17c34ab771300f9ca1e279d5f6
[ "MIT-0" ]
10
2021-07-30T01:11:55.000Z
2021-10-25T00:20:36.000Z
infra/clean_template.py
acere/amazon-sagemaker-drift-detection
6a4950bde73b9c17c34ab771300f9ca1e279d5f6
[ "MIT-0" ]
9
2021-07-28T03:47:47.000Z
2022-03-22T02:29:40.000Z
import json import logging import os # Get environment variables LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper() # Configure logging logger = logging.getLogger() logger.setLevel(LOG_LEVEL) def remove_policy(input_path: str, output_path: str): """Remove all IAM policies from a CloudFormation json template ...
29.773585
92
0.632446
import json import logging import os LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper() logger = logging.getLogger() logger.setLevel(LOG_LEVEL) def remove_policy(input_path: str, output_path: str): with open(input_path, "r") as f: t = json.load(f) policy_list = [ k for k in t["Resources...
true
true
08ef613c3e2f2e79bf1dafd4ae841f1ef9d6d612
12,768
py
Python
tensorflow/python/keras/utils/losses_utils.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
27
2019-01-02T09:36:57.000Z
2022-02-21T06:41:51.000Z
tensorflow/python/keras/utils/losses_utils.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
3
2019-01-23T11:01:22.000Z
2022-02-24T02:53:31.000Z
tensorflow/python/keras/utils/losses_utils.py
EricLi404/tensorflow
23759800d89f7b5362c338d9a3fd72a6810c3e22
[ "Apache-2.0" ]
11
2019-03-02T12:42:23.000Z
2021-02-04T12:20:10.000Z
# Copyright 2018 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.923077
106
0.717888
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.distribute import distribution_strategy_context from tensorflow.python.framework import ops from tensorflow.python.keras import backend as K from tensorflow.python.keras.engine import ker...
true
true
08ef62322deaee086345de35167d2d19d0d4639d
891
py
Python
data science Izero/regressao.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
data science Izero/regressao.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
data science Izero/regressao.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt from collections import Counter from typing import List, Callable num_friends = [100.0,49,41,40,25,21,21,19,19,18,18,16,15,15,15,15,14,14,13,13,13,13,12,12,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7...
46.894737
466
0.61055
from matplotlib import pyplot as plt from collections import Counter from typing import List, Callable num_friends = [100.0,49,41,40,25,21,21,19,19,18,18,16,15,15,15,15,14,14,13,13,13,13,12,12,11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7...
true
true
08ef6288ad7ca2ee854969d49be0d0a16f285444
1,598
py
Python
aws-iot-publish.py
concurrencylabs/mqtt-locust
1c32e79545d03d58f867af38fe4afe6377e15ec9
[ "MIT" ]
32
2017-08-31T07:23:49.000Z
2021-11-08T09:39:38.000Z
aws-iot-publish.py
ConcurrenyLabs/mqtt-locust
1c32e79545d03d58f867af38fe4afe6377e15ec9
[ "MIT" ]
2
2016-05-05T17:11:10.000Z
2017-02-16T06:33:15.000Z
aws-iot-publish.py
concurrencylabs/mqtt-locust
1c32e79545d03d58f867af38fe4afe6377e15ec9
[ "MIT" ]
11
2018-02-28T22:44:19.000Z
2021-12-17T13:26:49.000Z
import json import random import resource import ssl import time import os from locust import TaskSet, task from mqtt_locust import MQTTLocust #this value is the number of seconds to be used before retrying operations (valid for QoS >1) RETRY = 5 #ms PUBLISH_TIMEOUT = 10000 SUBSCRIBE_TIMEOUT = 10000 class ThingBe...
30.150943
119
0.693367
import json import random import resource import ssl import time import os from locust import TaskSet, task from mqtt_locust import MQTTLocust RETRY = 5 PUBLISH_TIMEOUT = 10000 SUBSCRIBE_TIMEOUT = 10000 class ThingBehavior(TaskSet): @task def pubqos0(self): topic = os.getenv('MQTT_TOPIC','') ...
true
true
08ef63a6a61aa291529894089a3105b5681aa202
4,314
py
Python
xhtml2pdf/w3c/cssDOMElementInterface.py
zulumarketing/html2pdf
77ddeaf9a7323fec3c23a362a0e64de382cd23ce
[ "Apache-2.0" ]
8
2015-05-23T21:19:43.000Z
2021-12-23T01:54:01.000Z
xhtml2pdf/w3c/cssDOMElementInterface.py
zulumarketing/xhtml2pdf
77ddeaf9a7323fec3c23a362a0e64de382cd23ce
[ "Apache-2.0" ]
3
2015-05-22T20:51:32.000Z
2015-08-11T17:18:58.000Z
xhtml2pdf/w3c/cssDOMElementInterface.py
zulumarketing/xhtml2pdf
77ddeaf9a7323fec3c23a362a0e64de382cd23ce
[ "Apache-2.0" ]
2
2017-04-21T01:19:21.000Z
2018-05-22T05:38:31.000Z
#!/usr/bin/env python ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ##~ Copyright (C) 2002-2004 TechGame Networks, LLC. ##~ ##~ This library is free software; you can redistribute it and/or ##~ modify it under the terms of the BSD style License as found in the ##~ LICENSE file included with this distribution....
29.346939
97
0.53338
try: from . import css except Exception: import css class CSSDOMElementInterface(css.CSSElementInterfaceAbstract): style = None _pseudoStateHandlerLookup = { 'first-child': lambda self: not bool(self.getPreviousSibling()), 'not-first-child': lam...
true
true