hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
9aeb433cff82539bedc67036592672cd9baad4ed
2,347
py
Python
mindhome_alpha/erpnext/patches/v11_0/rename_healthcare_fields.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/patches/v11_0/rename_healthcare_fields.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/patches/v11_0/rename_healthcare_fields.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals lab_test_name = ["test_name", "lab_test_name"] lab_test_code = ["test_code", "lab_test_code"] lab_test_comment = ["test_comment", "lab_test_comment"] lab_test_created = ["test_created", "lab_test_created"] lab_test_template = ["test_template", "lab_test_template"] lab_test_rate ...
43.462963
89
0.764806
from __future__ import unicode_literals import frappe from frappe.model.utils.rename_field import rename_field from frappe.modules import scrub, get_doctype_module lab_test_name = ["test_name", "lab_test_name"] lab_test_code = ["test_code", "lab_test_code"] lab_test_comment = ["test_comment", "lab_test_comment"] lab_t...
0
0
0
0
0
773
0
58
89
09169d24946f601c8f0fea46428f0f45e478437b
261
py
Python
GeneratorInterface/GenFilters/python/lheDYdecayFilter_cfi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
GeneratorInterface/GenFilters/python/lheDYdecayFilter_cfi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
GeneratorInterface/GenFilters/python/lheDYdecayFilter_cfi.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms lheZdecayFilter = cms.EDFilter("LHEDYdecayFilter", src = cms.InputTag("source"), leptonID =cms.int32(11), verbose = cms.untracked.bool(True) )
32.625
70
0.544061
import FWCore.ParameterSet.Config as cms lheZdecayFilter = cms.EDFilter("LHEDYdecayFilter", src = cms.InputTag("source"), leptonID =cms.int32(11), verbose = cms.untracked.bool(True) )
0
0
0
0
0
0
0
0
0
627e6b1aa0741815614c74556ac22db7d215d0be
205
py
Python
src/pyisotopomer/__init__.py
ckelly314/pyIsotopomer
5ff84398222414a0b4a80b66208958d21a98c158
[ "MIT" ]
null
null
null
src/pyisotopomer/__init__.py
ckelly314/pyIsotopomer
5ff84398222414a0b4a80b66208958d21a98c158
[ "MIT" ]
null
null
null
src/pyisotopomer/__init__.py
ckelly314/pyIsotopomer
5ff84398222414a0b4a80b66208958d21a98c158
[ "MIT" ]
1
2022-01-04T21:50:32.000Z
2022-01-04T21:50:32.000Z
# pyisotopomer: Nitrous oxide isotopocule data corrections in Python # Copyright (C) 2021 Colette L Kelly et al. (MIT License)
34.166667
68
0.8
# pyisotopomer: Nitrous oxide isotopocule data corrections in Python # Copyright (C) 2021 Colette L Kelly et al. (MIT License) from .pyisotopomer import Scrambling from .pyisotopomer import Isotopomers
0
0
0
0
0
0
0
31
45
d7edf24d843cb439d0478503828b61e2717f9692
33,950
py
Python
iridauploader/tests_integration/test_end_to_end.py
dfornika/irida-uploader
0d855433bf5b567ff1e63501950fdc145b488742
[ "Apache-2.0" ]
null
null
null
iridauploader/tests_integration/test_end_to_end.py
dfornika/irida-uploader
0d855433bf5b567ff1e63501950fdc145b488742
[ "Apache-2.0" ]
null
null
null
iridauploader/tests_integration/test_end_to_end.py
dfornika/irida-uploader
0d855433bf5b567ff1e63501950fdc145b488742
[ "Apache-2.0" ]
null
null
null
from os import path import iridauploader.config as config import iridauploader.api as api import iridauploader.model as model import iridauploader.progress as progress path_to_module = path.dirname(__file__) if len(path_to_module) == 0: path_to_module = '.' CLEANUP_DIRECTORY_LIST = [ path.join(path_to_modul...
44.729908
116
0.621708
import unittest from os import path import os from iridauploader.tests_integration import tests_integration import iridauploader.config as config import iridauploader.api as api import iridauploader.model as model import iridauploader.progress as progress from iridauploader.core.cli_entry import upload_run_single_en...
0
744
0
32,082
0
0
0
92
113
e04e008d2f08997abe34fe70aac04e7f4c145718
2,420
py
Python
tests/sentry/interfaces/test_geo.py
detouched/sentry
1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd
[ "BSD-3-Clause" ]
1
2018-12-04T12:57:00.000Z
2018-12-04T12:57:00.000Z
tests/sentry/interfaces/test_geo.py
detouched/sentry
1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd
[ "BSD-3-Clause" ]
1
2021-05-09T11:43:43.000Z
2021-05-09T11:43:43.000Z
tests/sentry/interfaces/test_geo.py
detouched/sentry
1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import
33.150685
84
0.563636
from __future__ import absolute_import import mock from sentry.interfaces.geo import Geo from sentry.testutils import TestCase class GeoTest(TestCase): def test_serialize_behavior(self): assert Geo.to_python({ 'country_code': 'US', 'city': 'San Francisco', 'region': '...
0
1,538
0
729
0
0
0
22
91
e6334ec085e05c0056ad89bb65fc639b38611e08
2,565
py
Python
course_parallel_computer/Section_1_Python_Parallel_Programming_Solutions/Section2/determine_the_current_thread.py
software-foundations/learning-distributed-systems
b09f60742a88acf466fcf724e1368b95363682fa
[ "MIT" ]
null
null
null
course_parallel_computer/Section_1_Python_Parallel_Programming_Solutions/Section2/determine_the_current_thread.py
software-foundations/learning-distributed-systems
b09f60742a88acf466fcf724e1368b95363682fa
[ "MIT" ]
null
null
null
course_parallel_computer/Section_1_Python_Parallel_Programming_Solutions/Section2/determine_the_current_thread.py
software-foundations/learning-distributed-systems
b09f60742a88acf466fcf724e1368b95363682fa
[ "MIT" ]
null
null
null
import threading """ Associo Threads a funes Nomeio Threads Pego o nome de threads nomeadas """ # my modification: thread id's if __name__ == "__main__": t1 = threading.Thread(name='first_function', target=first_function) t2 = threading.Thread(name='second_function', target=second_function) ...
35.136986
187
0.670955
import threading import time """ Associo Threads a funções Nomeio Threads Pego o nome de threads nomeadas """ # my modification: thread id's def first_function(): print ('thread id: ', threading.get_ident(), threading.currentThread().getName() + str(' is Starting \n')) time.sleep(2) pri...
4
0
0
0
0
783
0
-10
98
2be687782f01c8f17f9c99e4004e37b4dc2e17d1
587
py
Python
code/data_visualization.py
vbjc5275/Simple-ML-Framework
35726ff1d376d959b83943001d91aa2774a0ca9e
[ "MIT" ]
null
null
null
code/data_visualization.py
vbjc5275/Simple-ML-Framework
35726ff1d376d959b83943001d91aa2774a0ca9e
[ "MIT" ]
null
null
null
code/data_visualization.py
vbjc5275/Simple-ML-Framework
35726ff1d376d959b83943001d91aa2774a0ca9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Aug 8 21:02:21 2021 @author: Jerry """ #
27.952381
68
0.67121
# -*- coding: utf-8 -*- """ Created on Sun Aug 8 21:02:21 2021 @author: Jerry """ import matplotlib.pyplot as plt # def plot_true_and_pred(true_value, predicted_value, title, imgpath): plt.figure(figsize=(10,10)) plt.scatter(true_value, predicted_value, c='crimson') p1 = max(max(predicted_value), max(tru...
0
0
0
0
0
446
0
10
44
fe61fef8b64e3fb0a8beac69b5423358a50f0f2d
290
py
Python
src/mpl_updater/test.py
RogerPenrose/MPL_UPDATER
9957c17ef1625ce413e1e51503fd4522cb2997a9
[ "MIT" ]
null
null
null
src/mpl_updater/test.py
RogerPenrose/MPL_UPDATER
9957c17ef1625ce413e1e51503fd4522cb2997a9
[ "MIT" ]
null
null
null
src/mpl_updater/test.py
RogerPenrose/MPL_UPDATER
9957c17ef1625ce413e1e51503fd4522cb2997a9
[ "MIT" ]
null
null
null
data = [2, 1, 3, 0.13, 1, 20]
18.125
63
0.641379
import numpy as np import matplotlib.pyplot as plt def Animation(i, ax): ax.plot(np.arange(len(data)), data, c="red", label="Exakt") data = [2, 1, 3, 0.13, 1, 20] def Initialization(): fig, ax = plt.subplots() plt.subplots_adjust(left=0.1, bottom=0.35) return fig, ax
0
0
0
0
0
159
0
7
90
42b84b9ed44008d462927766916d5aeca520d706
856
py
Python
pyaz/batch/node/remote_desktop/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/batch/node/remote_desktop/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/batch/node/remote_desktop/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
from .... pyaz_utils import _call_az def download(destination, node_id, pool_id, account_endpoint=None, account_key=None, account_name=None): ''' Required Parameters: - destination -- The path to the destination file or directory. - node_id -- The ID of the Compute Node for which you want to get ...
45.052632
114
0.744159
from .... pyaz_utils import _call_az def download(destination, node_id, pool_id, account_endpoint=None, account_key=None, account_name=None): ''' Required Parameters: - destination -- The path to the destination file or directory. - node_id -- The ID of the Compute Node for which you want to get ...
0
0
0
0
0
0
0
0
0
12bfe575b6f1b17a120aaa52289266fce2ec4031
42,149
py
Python
alphapy/features.py
aborodya/AlphaPy
b24de414b89a74d0ef1a6249e0bc4f96fb508a1e
[ "Apache-2.0" ]
559
2018-09-13T00:14:34.000Z
2022-03-31T19:17:12.000Z
alphapy/features.py
aborodya/AlphaPy
b24de414b89a74d0ef1a6249e0bc4f96fb508a1e
[ "Apache-2.0" ]
24
2018-09-15T21:01:50.000Z
2021-12-30T01:39:57.000Z
alphapy/features.py
aborodya/AlphaPy
b24de414b89a74d0ef1a6249e0bc4f96fb508a1e
[ "Apache-2.0" ]
116
2018-09-26T12:05:46.000Z
2022-03-11T10:23:24.000Z
################################################################################ # # Package : AlphaPy # Module : features # Created : July 11, 2013 # # Copyright 2020 ScottFree Analytics LLC # Mark Conway & Robert D. Scott II # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use ...
29.745236
116
0.637856
################################################################################ # # Package : AlphaPy # Module : features # Created : July 11, 2013 # # Copyright 2020 ScottFree Analytics LLC # Mark Conway & Robert D. Scott II # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use ...
0
0
0
0
0
0
0
28
66
e9e5fe756012ccb281b7a8ebb667af0a822d54af
5,468
py
Python
Python/pixel_cost.py
eshibusawa/PSL-Python
e2223f1b24666148b5f20353a961901221539a5f
[ "BSD-2-Clause" ]
null
null
null
Python/pixel_cost.py
eshibusawa/PSL-Python
e2223f1b24666148b5f20353a961901221539a5f
[ "BSD-2-Clause" ]
null
null
null
Python/pixel_cost.py
eshibusawa/PSL-Python
e2223f1b24666148b5f20353a961901221539a5f
[ "BSD-2-Clause" ]
null
null
null
# This file is part of PSL-Python. # Copyright (c) 2021, Eijiro Shibusawa <phd_kimberlite@yahoo.co.jp> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must re...
48.389381
149
0.680871
# This file is part of PSL-Python. # Copyright (c) 2021, Eijiro Shibusawa <phd_kimberlite@yahoo.co.jp> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must re...
0
0
0
3,938
0
0
0
-14
137
82b07f5b8a0dee78fe5863909f1c6605b4dea2a5
2,797
py
Python
reminder_system/utils.py
ProneToAdjust/Reminder-System
fbed927f8ee1aba8371e1145764d5e53241994ca
[ "MIT" ]
null
null
null
reminder_system/utils.py
ProneToAdjust/Reminder-System
fbed927f8ee1aba8371e1145764d5e53241994ca
[ "MIT" ]
null
null
null
reminder_system/utils.py
ProneToAdjust/Reminder-System
fbed927f8ee1aba8371e1145764d5e53241994ca
[ "MIT" ]
null
null
null
import datetime def get_mins_between_now_and_event(event): """Returns the minutes between the current time and the start time of the inputted event Args: event (dict): an single event from the event list returned from google_calendar's GoogleCalendar class method get_events Returns: int: ...
38.847222
130
0.69074
import datetime def get_mins_between_now_and_event(event): """Returns the minutes between the current time and the start time of the inputted event Args: event (dict): an single event from the event list returned from google_calendar's GoogleCalendar class method get_events Returns: int: ...
0
0
0
0
0
0
0
0
0
c4225d664b8d56abe90e94878be9880e530c5f7c
3,212
py
Python
Indicators/lowpass.py
Desil-sketch/Indicators-for-Jesse
ffe33a217002ea3034696fe38acfa72611d52b4f
[ "MIT" ]
1
2021-12-08T06:34:48.000Z
2021-12-08T06:34:48.000Z
Indicators/lowpass.py
Desil-sketch/Indicators-for-Jesse
ffe33a217002ea3034696fe38acfa72611d52b4f
[ "MIT" ]
null
null
null
Indicators/lowpass.py
Desil-sketch/Indicators-for-Jesse
ffe33a217002ea3034696fe38acfa72611d52b4f
[ "MIT" ]
1
2021-11-04T17:40:19.000Z
2021-11-04T17:40:19.000Z
from collections import namedtuple """ https://www.tradingview.com/script/SFGEoDmG-Low-Pass-Channel-DW/ """ LowPass = namedtuple('LowPass',['hband', 'lband', 'filt'])
39.654321
226
0.597447
from jesse.helpers import get_candle_source, slice_candles, np_shift import numpy as np from numba import njit import talib from typing import Union from jesse.helpers import get_config from collections import namedtuple """ https://www.tradingview.com/script/SFGEoDmG-Low-Pass-Channel-DW/ """ LowPass = namedtuple('L...
0
1,624
0
0
0
1,151
0
54
214
abf1875cf0f33ffa3ed823e431e4baeb29fb9584
5,119
py
Python
securitybot/util.py
mew1033/securitybot
9f65d35cd31744e73642fd05c5a2dffe17984032
[ "Apache-2.0" ]
null
null
null
securitybot/util.py
mew1033/securitybot
9f65d35cd31744e73642fd05c5a2dffe17984032
[ "Apache-2.0" ]
null
null
null
securitybot/util.py
mew1033/securitybot
9f65d35cd31744e73642fd05c5a2dffe17984032
[ "Apache-2.0" ]
1
2020-05-29T01:57:52.000Z
2020-05-29T01:57:52.000Z
import pytz import binascii import os import logging import tzlocal from datetime import datetime, timedelta from securitybot.sql import SQLEngine __author__ = 'Alex Bertsch' __email__ = 'abertsch@dropbox.com' # http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python OPENING_HOUR = 10 CLOS...
35.061644
122
0.654425
import pytz import binascii import os import logging import tzlocal from datetime import datetime, timedelta from collections import namedtuple from securitybot.sql import SQLEngine from scribe_logger.logger import ScribeLogHandler __author__ = 'Alex Bertsch' __email__ = 'abertsch@dropbox.com' # http://stackoverflo...
0
0
0
0
0
1,295
0
41
135
3568e7d3a6db1a665a94660f1aef66893e65d7c6
3,103
py
Python
babynames/babynames.py
maniskasyap/google-python-exercises
36ecf814f047a9caf1da09f4853c5af3b9f2ff00
[ "Apache-2.0" ]
null
null
null
babynames/babynames.py
maniskasyap/google-python-exercises
36ecf814f047a9caf1da09f4853c5af3b9f2ff00
[ "Apache-2.0" ]
null
null
null
babynames/babynames.py
maniskasyap/google-python-exercises
36ecf814f047a9caf1da09f4853c5af3b9f2ff00
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ import re """Baby Names exercise Define the extract_names() function below and change main()...
28.46789
103
0.628102
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ import sys import re from operator import itemgetter """Baby Names exercise Define the extr...
0
0
0
0
0
1,179
0
-1
114
1713d1d1c107cef5f7a6d61c6607c50849f0abae
2,219
py
Python
MoinMoin/events/xapian_index.py
RealTimeWeb/wikisite
66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5
[ "Apache-2.0" ]
1
2016-04-01T04:02:28.000Z
2016-04-01T04:02:28.000Z
Documentation/ManualSource/wikicmd/MoinMoin/events/xapian_index.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
3
2020-06-26T21:21:32.000Z
2020-06-26T21:21:36.000Z
Documentation/ManualSource/wikicmd/MoinMoin/events/xapian_index.py
sleyzerzon/soar
74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71
[ "Unlicense" ]
2
2017-01-25T20:06:44.000Z
2021-03-25T18:39:55.000Z
# -*- coding: iso-8859-1 -*- """ MoinMoin - (re)building of Xapian indices @copyright: 2007 MoinMoin:KarolNowak @license: GNU GPL, see COPYING for details. """ import MoinMoin.events as ev def handle_renamed(event): """Updates Xapian index when a page changes its name""" request = event.reques...
26.73494
78
0.683191
# -*- coding: iso-8859-1 -*- """ MoinMoin - (re)building of Xapian indices @copyright: 2007 MoinMoin:KarolNowak @license: GNU GPL, see COPYING for details. """ import MoinMoin.events as ev def _get_index(request): try: from MoinMoin.search.Xapian import XapianIndex return XapianIndex...
0
0
0
0
0
592
0
0
46
6bfb2c15bc7b974902ed888642fb9ad6c64676e1
17,709
py
Python
test_medium.py
jerrymannel/sudoku
25e987cbd3c5f774cb2218e8448079d96db24c68
[ "MIT" ]
null
null
null
test_medium.py
jerrymannel/sudoku
25e987cbd3c5f774cb2218e8448079d96db24c68
[ "MIT" ]
null
null
null
test_medium.py
jerrymannel/sudoku
25e987cbd3c5f774cb2218e8448079d96db24c68
[ "MIT" ]
null
null
null
import main medumList = [ [ "000007910007004600508903400920305000801720000400001250600000000000100008219030000", "000003060080050700015080040800300009349006000206090370000400506700008002090000430", "308062015400000060060070008802400107000008300000053280000500670200000000010020540", "00041037800070002930400050...
82.367442
133
0.925405
import main medumList = [ [ "000007910007004600508903400920305000801720000400001250600000000000100008219030000", "000003060080050700015080040800300009349006000206090370000400506700008002090000430", "308062015400000060060070008802400107000008300000053280000500670200000000010020540", "00041037800070002930400050...
0
0
0
0
0
0
0
0
0
5497f66286068b50b90faad6bf5ad84f600910a9
324
py
Python
bookclub/bookclub/bookclub_server/migrations/0002_remove_user_surname.py
bookclubapp/bookclub_server
be6cf974373eb8aac436c9b3812864dcb53cdc89
[ "MIT" ]
null
null
null
bookclub/bookclub/bookclub_server/migrations/0002_remove_user_surname.py
bookclubapp/bookclub_server
be6cf974373eb8aac436c9b3812864dcb53cdc89
[ "MIT" ]
null
null
null
bookclub/bookclub/bookclub_server/migrations/0002_remove_user_surname.py
bookclubapp/bookclub_server
be6cf974373eb8aac436c9b3812864dcb53cdc89
[ "MIT" ]
1
2019-07-05T12:46:18.000Z
2019-07-05T12:46:18.000Z
# Generated by Django 2.1.7 on 2019-04-16 12:39
18
47
0.58642
# Generated by Django 2.1.7 on 2019-04-16 12:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bookclub_server', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='user', name='surname', ), ...
0
0
0
218
0
0
0
11
46
92d44be5445bc837742790a267aedce097f9da85
8,694
py
Python
home_application/views.py
ZDgtc/monitor
eecd3f547f6eb745fd4dd122cf882df903397eba
[ "Apache-2.0" ]
null
null
null
home_application/views.py
ZDgtc/monitor
eecd3f547f6eb745fd4dd122cf882df903397eba
[ "Apache-2.0" ]
null
null
null
home_application/views.py
ZDgtc/monitor
eecd3f547f6eb745fd4dd122cf882df903397eba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
32.561798
113
0.529101
# -*- coding: utf-8 -*- from common.mymako import render_mako_context, render_json from blueking.component.shortcuts import get_client_by_request from utils import get_job_instance_id, get_job_log_content from models import Operations, ResourceData, CeleryTask from datetime import datetime def home(request): ret...
96
0
0
0
0
8,035
0
157
433
3a08dc56761072582b1329ec480b5a1a6dca497e
389
py
Python
service/api/__init__.py
stvgt/interfaces
813e58304f2bdc0333b015bf5a15f8a46cfb9073
[ "MIT" ]
null
null
null
service/api/__init__.py
stvgt/interfaces
813e58304f2bdc0333b015bf5a15f8a46cfb9073
[ "MIT" ]
1
2019-07-01T21:31:36.000Z
2019-07-01T21:31:36.000Z
service/api/__init__.py
stvgt/interfaces
813e58304f2bdc0333b015bf5a15f8a46cfb9073
[ "MIT" ]
null
null
null
from .interfaces import api as interfaces_api from flask import Blueprint from flask_restplus import Api api_blueprint = Blueprint('interfaces service', __name__) api = Api( api_blueprint, title=f'Dependencies Service Public API', version='1.0', description='Service for managing interface dependencies...
25.933333
79
0.771208
from .interfaces import api as interfaces_api from flask import Blueprint from flask_restplus import Api api_blueprint = Blueprint('interfaces service', __name__) api = Api( api_blueprint, title=f'Dependencies Service Public API', version='1.0', description='Service for managing interface dependencies...
0
0
0
0
0
0
0
0
0
2ac6171c53913e0701969aebd2fe0d1daf4f2293
771
py
Python
Python/Cryptography.py
Venom37222/Cryptography
a138d6d9c9d8340b5c9c06361963f2eb552ffa51
[ "BSL-1.0" ]
1
2020-08-27T08:02:39.000Z
2020-08-27T08:02:39.000Z
Python/Cryptography.py
Venom37222/Cryptography
a138d6d9c9d8340b5c9c06361963f2eb552ffa51
[ "BSL-1.0" ]
null
null
null
Python/Cryptography.py
Venom37222/Cryptography
a138d6d9c9d8340b5c9c06361963f2eb552ffa51
[ "BSL-1.0" ]
null
null
null
from Crypto.Hash import SHA256 password = ("anything") hash_obj = SHA256.new(password.encode('utf-8')) hkey = hash_obj.digest() msg = "Hello stackoverflow!" cipher_text = encrypt(msg) print(cipher_text) plaintext = decrypt(cipher_text) print(plaintext)
23.363636
68
0.654994
from Crypto.Cipher import AES from Crypto.Hash import SHA256 password = ("anything") hash_obj = SHA256.new(password.encode('utf-8')) hkey = hash_obj.digest() def encrypt(info): msg = info BLOCK_SIZE = 16 PAD = "{" padding = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * PAD cipher...
0
0
0
0
0
424
0
8
75
b49fc4980ba6f7e36aefd939129bc15c89c5a1e7
1,139
py
Python
leetcode/767_reorganize_string.py
leetcode-notes/daily-algorithms-practice
2a03499ed0b403d79f6c8451c9a839991b23e188
[ "Unlicense" ]
null
null
null
leetcode/767_reorganize_string.py
leetcode-notes/daily-algorithms-practice
2a03499ed0b403d79f6c8451c9a839991b23e188
[ "Unlicense" ]
null
null
null
leetcode/767_reorganize_string.py
leetcode-notes/daily-algorithms-practice
2a03499ed0b403d79f6c8451c9a839991b23e188
[ "Unlicense" ]
null
null
null
""" Success Details Runtime: 28 ms, faster than 92.45% of Python3 online submissions for Reorganize String. Memory Usage: 14.2 MB, less than 84.12% of Python3 online submissions for Reorganize String. Next challenges: Rearrange String k Distance Apart Show off your acceptance: Time Submitted Status Runtime Memory L...
24.234043
92
0.554873
import heapq from collections import Counter class Solution: def reorganizeString(self, s: str) -> str: res = "" heap = [] counts = Counter(s) for k, v in counts.items(): heapq.heappush(heap, (-v, k)) temp = [] while len(heap) > 1: count, ch ...
0
0
0
691
0
0
0
1
67
e3db1fdd6e72de2bd8748a4a2420403fdb17a991
1,936
py
Python
hangupsbot/plugins/forwarding.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
hangupsbot/plugins/forwarding.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
hangupsbot/plugins/forwarding.py
mygreentour/hangoutsbot
9ea2da10f546e6f1dd06c8240187049501c5452a
[ "Unlicense" ]
null
null
null
import logging logger = logging.getLogger(__name__)
35.851852
151
0.558368
import aiohttp, asyncio, logging, os, io import hangups import plugins logger = logging.getLogger(__name__) def _initialise(): plugins.register_handler(_handle_forwarding, type="message") @asyncio.coroutine def _handle_forwarding(bot, event, command): """Handle message forwarding""" # Test if messag...
0
1,714
0
0
0
62
0
12
92
e1a4494faa3696f0e3701197d99cc1722ddc706d
6,780
py
Python
unittests/test_patch.py
kimocoder/pwcli
69b037a929d4da28a7fb9b3fe06c8a6f8d487106
[ "BSD-3-Clause" ]
1
2022-02-09T00:01:15.000Z
2022-02-09T00:01:15.000Z
unittests/test_patch.py
kimocoder/pwcli
69b037a929d4da28a7fb9b3fe06c8a6f8d487106
[ "BSD-3-Clause" ]
null
null
null
unittests/test_patch.py
kimocoder/pwcli
69b037a929d4da28a7fb9b3fe06c8a6f8d487106
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2015, The Linux Foundation. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notic...
38.742857
412
0.657227
#!/usr/bin/env python3 # # Copyright (c) 2015, The Linux Foundation. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright # notic...
0
582
0
3,677
0
0
0
-40
112
0c5c4eb99e654e199aebd40027b86c688e8d1386
5,458
py
Python
Line.py
Moecker/sdc_al
c7b74b6da3a57f83b2645797f06887329258ad04
[ "MIT" ]
1
2017-01-30T22:34:05.000Z
2017-01-30T22:34:05.000Z
Line.py
Moecker/sdc_al
c7b74b6da3a57f83b2645797f06887329258ad04
[ "MIT" ]
null
null
null
Line.py
Moecker/sdc_al
c7b74b6da3a57f83b2645797f06887329258ad04
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('TkAgg') # Define a class to receive the characteristics of each line detection
33.078788
113
0.631184
import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import matplotlib.image as mpimage import numpy as np import collections import plotting as plot # Define a class to receive the characteristics of each line detection class Line(): def __init__(self, log, name="", is_debug=False): ...
0
0
0
5,189
0
0
0
19
134
3ff2d0e939e98f5401f3e5efa1d3ca52062b0782
18,570
py
Python
onmt/models/speech_recognizer/relative_transformer_layers.py
tuannamnguyen93/NMTGMinor
acde3454343bda7060fae541c110d0ad1a8ac4f4
[ "MIT" ]
null
null
null
onmt/models/speech_recognizer/relative_transformer_layers.py
tuannamnguyen93/NMTGMinor
acde3454343bda7060fae541c110d0ad1a8ac4f4
[ "MIT" ]
null
null
null
onmt/models/speech_recognizer/relative_transformer_layers.py
tuannamnguyen93/NMTGMinor
acde3454343bda7060fae541c110d0ad1a8ac4f4
[ "MIT" ]
null
null
null
import torch.nn as nn from onmt.models.transformer_layers import MultiHeadAttention, Linear from onmt.modules.relative_attention import RelPartialLearnableMultiHeadAttn
46.775819
118
0.587722
import torch import torch.nn as nn import torch.nn.functional as F import onmt from onmt.models.transformer_layers import MultiHeadAttention, Linear from onmt.modules.relative_attention import RelPartialLearnableMultiHeadAttn from onmt.modules.optimized.relative_self_attention import RelativeSelfMultiheadAttn from onm...
0
0
0
16,957
0
0
0
885
555
d9c9f6fd6a6faeadaebe70224a516ef7f77856ea
1,109
py
Python
ex31.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
ex31.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
ex31.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
print("""You enter a dark room with two doors. Do you go through door #1 or door #2?""") door = input("> ") if door == "1": print("There's a giant bear here eating a cheese cake.") print("What do you do?") print("1. Take the cake.") print("2. Scream at the bear.") bear = input("> ") ...
28.435897
67
0.587917
print("""You enter a dark room with two doors. Do you go through door #1 or door #2?""") door = input("> ") if door == "1": print("There's a giant bear here eating a cheese cake.") print("What do you do?") print("1. Take the cake.") print("2. Scream at the bear.") bear = input("> ") ...
0
0
0
0
0
0
0
0
0
6158d845d62c7bb43522e390e4b900d4f7d5fd3a
9,952
py
Python
Arbitrage_Spot/dquant/strategy/ticker.py
ronaldzgithub/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
1
2021-11-03T06:16:16.000Z
2021-11-03T06:16:16.000Z
Arbitrage_Spot/dquant/strategy/ticker.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
null
null
null
Arbitrage_Spot/dquant/strategy/ticker.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
2
2021-05-07T09:11:54.000Z
2021-11-27T16:29:10.000Z
import os, logging import time from dquant.constants import Constants import asyncio if __name__ == "__main__": amount = 1 os.environ[Constants.DQUANT_ENV] = "dev" okex = OkexTickers('btc_usd_this_week') okex.start() time.sleep(5) # okex.q.put({'type': 'Delete all active orders'}) ...
47.390476
157
0.542102
import queue, os, logging import threading from copy import copy import time from dquant.constants import Constants from dquant.markets._okex_future_ws import OkexFutureWs import asyncio class OkexTickers(threading.Thread): def __init__(self, meta_code): super(OkexTickers,self).__init__() os.e...
915
0
1,610
6,675
0
0
0
36
116
4382ce92b5abd42424681850ef42714083103882
1,212
py
Python
bin/make_dendrogram.py
windj007/narrative-extraction
f420b44af99aceafc4ed1ae8e80c84d9df352448
[ "MIT" ]
1
2021-05-24T14:40:45.000Z
2021-05-24T14:40:45.000Z
bin/make_dendrogram.py
windj007/narrative-extraction
f420b44af99aceafc4ed1ae8e80c84d9df352448
[ "MIT" ]
null
null
null
bin/make_dendrogram.py
windj007/narrative-extraction
f420b44af99aceafc4ed1ae8e80c84d9df352448
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == '__main__': import argparse aparser = argparse.ArgumentParser() aparser.add_argument('group2event') aparser.add_argument('pairwise_weights') aparser.add_argument('outfile') main(aparser.parse_args())
30.3
89
0.730198
#!/usr/bin/env python3 import numpy as np from narratex.base import load_pickle, save_json from narratex.clustering import get_group2name_by_freq from narratex.visualization import make_dendrogram_dict def main(args): group2event = load_pickle(args.group2event) group2name = get_group2name_by_freq(group2even...
0
0
0
0
0
741
0
91
113
50bca37d139c8dfbef5a5c9b5f41cafaa12a3b41
952
py
Python
cnlp/data/fields/field.py
pfchai/CNLP
0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f
[ "Apache-2.0" ]
null
null
null
cnlp/data/fields/field.py
pfchai/CNLP
0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f
[ "Apache-2.0" ]
null
null
null
cnlp/data/fields/field.py
pfchai/CNLP
0ef4a6e3b019c1472ba432ca9e9b2e074ca1c86f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
23.219512
67
0.585084
# -*- coding: utf-8 -*- from copy import deepcopy class Field(): __slots__ = [] def count_vocab_items(self, counter): pass def human_readable_repr(self): raise NotImplementedError def index(self, vocab): pass def get_padding_lengths(self): raise NotImplemented...
0
0
0
877
0
0
0
4
46
9eef4bf0d69b78b588daa52292bd8d8d775f57ca
9,627
py
Python
inverse_rendering.py
gitaar9/graf
f7692ad885c1a3b8a377fed3b74c9ce6b9210732
[ "MIT" ]
null
null
null
inverse_rendering.py
gitaar9/graf
f7692ad885c1a3b8a377fed3b74c9ce6b9210732
[ "MIT" ]
null
null
null
inverse_rendering.py
gitaar9/graf
f7692ad885c1a3b8a377fed3b74c9ce6b9210732
[ "MIT" ]
null
null
null
import torch torch.set_default_tensor_type('torch.cuda.FloatTensor') # import ssl # enable if downloading models gives CERTIFICATE_VERIFY_FAILED error # ssl._create_default_https_context = ssl._create_unverified_context import sys sys.path.append('submodules') # needed to make imports work in GAN_stab...
36.05618
142
0.659707
import argparse import copy from os import path from pathlib import Path import torch torch.set_default_tensor_type('torch.cuda.FloatTensor') from torchvision.utils import save_image from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused import # import ssl # enable if downloading models gives CERTIFI...
0
0
0
0
0
8,334
0
299
566
7f205bb724455a05f15fcf69668d7ccc1a3d833f
4,770
py
Python
src/piaf/models.py
LouisDuverneuil/piaf_adaptation
bc14a93048aa5cba0cb3c54ce1348ddd88383232
[ "MIT" ]
null
null
null
src/piaf/models.py
LouisDuverneuil/piaf_adaptation
bc14a93048aa5cba0cb3c54ce1348ddd88383232
[ "MIT" ]
3
2021-05-11T18:33:28.000Z
2022-02-27T07:19:27.000Z
src/piaf/models.py
LouisDuverneuil/piaf_adaptation
bc14a93048aa5cba0cb3c54ce1348ddd88383232
[ "MIT" ]
null
null
null
STATUS_PENDING = "pending" STATUS_PROGRESS = "progress" STATUS_COMPLETED = "completed" STATUSES = [STATUS_PENDING, STATUS_PROGRESS, STATUS_COMPLETED] THEMES = ["Validation mthode", "Conditionnement", "Gestion des risques", "Mise sur le march", "Validation procd", "BPF", "Assurance qualit"] THEME_CHOICES = zip(THEMES,...
32.671233
145
0.661845
from django.conf import settings from django.db import models from django.utils.text import slugify from django.contrib.auth import get_user_model STATUS_PENDING = "pending" STATUS_PROGRESS = "progress" STATUS_COMPLETED = "completed" STATUSES = [STATUS_PENDING, STATUS_PROGRESS, STATUS_COMPLETED] THEMES = ["Validation...
13
215
0
3,849
0
0
0
59
226
f86053d6f80eaa0a08eeb1aa9ea7bb05230cec0a
337
py
Python
settings.py
sskalidakis/testrepository
b3ddcf07462e3594cf815280c752b37ef79bbe8e
[ "MIT" ]
null
null
null
settings.py
sskalidakis/testrepository
b3ddcf07462e3594cf815280c752b37ef79bbe8e
[ "MIT" ]
null
null
null
settings.py
sskalidakis/testrepository
b3ddcf07462e3594cf815280c752b37ef79bbe8e
[ "MIT" ]
2
2020-03-18T20:15:24.000Z
2020-03-24T12:22:39.000Z
import os APPLICATION_PARAMETER = os.environ.get('APPLICATION_PARAMETER', 'my_parameter') POSTGRES_HOST = os.environ.get('POSTGRES_HOST', 'localhost') POSTGRES_USER = os.environ.get("POSTGRES_USER", "postgres") POSTGRES_PASSWORD = os.environ.get("POSTGRES_PASSWORD", "admin") POSTGRES_DB = os.environ.get("POSTGRES_DB"...
42.125
79
0.783383
import os APPLICATION_PARAMETER = os.environ.get('APPLICATION_PARAMETER', 'my_parameter') POSTGRES_HOST = os.environ.get('POSTGRES_HOST', 'localhost') POSTGRES_USER = os.environ.get("POSTGRES_USER", "postgres") POSTGRES_PASSWORD = os.environ.get("POSTGRES_PASSWORD", "admin") POSTGRES_DB = os.environ.get("POSTGRES_DB"...
0
0
0
0
0
0
0
0
0
c47d7f894b6f4d651cac5d1b6bac6c84d94b52c3
13,451
py
Python
web/transiq/driver/helper.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/driver/helper.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/driver/helper.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
import requests from driver.models import TracknovateGPSDevice, TracknovateGPSDeviceLog def get_tracknovate_update(): """ login url: POST http://tracknovate.com/login_tracknovate.php Form Data: username:Trilokji password:123456 submit:Login update url: GET http://trackno...
38.431429
197
0.634674
import csv import json import urllib from bs4 import BeautifulSoup from datetime import datetime, timedelta from decimal import Decimal from xml.etree import ElementTree from lxml import etree import requests from django.utils import timezone, dateparse from driver.models import GPSDevice, GPSDeviceLog, TracknovateGP...
0
0
0
0
0
9,740
0
169
471
3a67b46b22a1ce32bc94418a22b36fb1b2cd9e4a
35,447
py
Python
aes.py
KostasGiap/AES
0799dd42f4da47cd48859e40e011ade353b57757
[ "Apache-2.0" ]
null
null
null
aes.py
KostasGiap/AES
0799dd42f4da47cd48859e40e011ade353b57757
[ "Apache-2.0" ]
null
null
null
aes.py
KostasGiap/AES
0799dd42f4da47cd48859e40e011ade353b57757
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys from colorama import init, Fore, Style import random, string if __name__ == '__main__': try: init(autoreset=True) text = raw_input(Fore.YELLOW+'[*] Set the text you want to encrypt: '+ Style.RESET_ALL) # sec_key = 'asdhjuiktu76tgb4'#16 # bit = 128 # sec...
42.148633
172
0.575902
# -*- coding: utf-8 -*- import sys from colorama import init, Fore, Style import random, string class AES: def __init__(self): self.rcon0 = ['01', '00', '00', '00'] self.rcon1 = ['02', '00', '00', '00'] self.rcon2 = ['04', '00', '00', '00'] self.rcon3 = ['08', '00', '00',...
0
0
0
33,534
0
0
0
0
25
051701e53b1733db854789b9b0e4ce840b41a0ca
18,410
py
Python
third_party/tools/oletools/rtfobj.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
third_party/tools/oletools/rtfobj.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
third_party/tools/oletools/rtfobj.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
1
2021-06-16T07:32:17.000Z
2021-06-16T07:32:17.000Z
#!/usr/bin/env python """ rtfobj.py rtfobj is a Python module to extract embedded objects from RTF files, such as OLE ojects. It can be used as a Python library or a command-line tool. Usage: rtfobj.py <file.rtf> rtfobj project website: http://www.decalage.info/python/rtfobj rtfobj is part of the python-oletools pa...
41.746032
127
0.615209
#!/usr/bin/env python """ rtfobj.py rtfobj is a Python module to extract embedded objects from RTF files, such as OLE ojects. It can be used as a Python library or a command-line tool. Usage: rtfobj.py <file.rtf> rtfobj project website: http://www.decalage.info/python/rtfobj rtfobj is part of the python-oletools pa...
0
0
0
350
4,441
2,870
0
0
115
dba5be96756429f8bd54009565453a2861c36011
7,876
py
Python
pi/HX711/all_methods_example.py
arthurtibame/automatic-cat-feeder
c1e535577641b8a9f766b57ef9a3a46b5ecd358e
[ "MIT" ]
null
null
null
pi/HX711/all_methods_example.py
arthurtibame/automatic-cat-feeder
c1e535577641b8a9f766b57ef9a3a46b5ecd358e
[ "MIT" ]
null
null
null
pi/HX711/all_methods_example.py
arthurtibame/automatic-cat-feeder
c1e535577641b8a9f766b57ef9a3a46b5ecd358e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import RPi.GPIO as GPIO # import GPIO from hx711 import HX711 # import the class HX711 from hx711 import outliers_filter try: GPIO.setmode(GPIO.BCM) # set GPIO pin mode to BCM numbering # Create an object hx which represents your real hx711 chip # Required input parameters are onl...
44.497175
100
0.661757
#!/usr/bin/env python3 import RPi.GPIO as GPIO # import GPIO from hx711 import HX711 # import the class HX711 from hx711 import outliers_filter try: GPIO.setmode(GPIO.BCM) # set GPIO pin mode to BCM numbering # Create an object hx which represents your real hx711 chip # Required input parameters are onl...
0
0
0
0
0
0
0
0
0
0cde8c8c22f820444caa60f812ecfa5d39a5cc9f
201
py
Python
socialregistration/templatetags/openid_tags.py
mikeyk/django-socialregistration
11d967779d9a2d4b0e75ecc8738c707485bf0db2
[ "MIT" ]
2
2016-05-18T16:59:26.000Z
2016-09-22T09:13:15.000Z
socialregistration/templatetags/openid_tags.py
nsmgr8/aep-django-socialregistration
2ffc25afe841892ba487fcb0e532336b2d21480e
[ "MIT" ]
null
null
null
socialregistration/templatetags/openid_tags.py
nsmgr8/aep-django-socialregistration
2ffc25afe841892ba487fcb0e532336b2d21480e
[ "MIT" ]
null
null
null
""" Created on 24.09.2009 @author: alen """ from django import template register = template.Library()
15.461538
62
0.736318
""" Created on 24.09.2009 @author: alen """ from django import template register = template.Library() @register.inclusion_tag('socialregistration/openid_form.html') def openid_form(): return {}
0
74
0
0
0
0
0
0
23
480a66702899d88b3a74059f2bb349a0ea8a17fb
474
py
Python
lpr_purchase/migrations/0004_purchase_status.py
City-of-Lappeenranta/Respa
6559359e4ad800d582bb19b9a421d78500b272e8
[ "MIT" ]
null
null
null
lpr_purchase/migrations/0004_purchase_status.py
City-of-Lappeenranta/Respa
6559359e4ad800d582bb19b9a421d78500b272e8
[ "MIT" ]
1
2020-06-12T08:58:58.000Z
2020-06-12T08:58:58.000Z
lpr_purchase/migrations/0004_purchase_status.py
City-of-Lappeenranta/Respa
6559359e4ad800d582bb19b9a421d78500b272e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-11-19 13:11 from __future__ import unicode_literals
22.571429
61
0.628692
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-11-19 13:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lpr_purchase', '0003_purchase_payment_address'), ] operations = [ migratio...
0
0
0
294
0
0
0
19
46
24765bac36fb5cdd76dbcf9513e9c7222ba23c4a
278
py
Python
bluemoon/music/urls.py
arpitvaghela/blue-moon
e583d2a0749893f355e32c7a537fc0d96087505b
[ "BSD-3-Clause" ]
null
null
null
bluemoon/music/urls.py
arpitvaghela/blue-moon
e583d2a0749893f355e32c7a537fc0d96087505b
[ "BSD-3-Clause" ]
null
null
null
bluemoon/music/urls.py
arpitvaghela/blue-moon
e583d2a0749893f355e32c7a537fc0d96087505b
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from home import views as home_view from . import views urlpatterns = [ path('', home_view.index, name='index'), path('',views.index, name='Programming'), path('',views.index, name='Music'), path('',views.index, name='Design'), ]
21.384615
45
0.658273
from django.urls import path from home import views as home_view from . import views urlpatterns = [ path('', home_view.index, name='index'), path('',views.index, name='Programming'), path('',views.index, name='Music'), path('',views.index, name='Design'), ]
0
0
0
0
0
0
0
0
0
87f89c71733b7c21a860256d6b1d26086b5c0f7e
1,443
py
Python
venv/Lib/site-packages/sklearn/utils/tests/test_deprecation.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
2
2021-05-02T07:59:56.000Z
2021-12-14T19:53:13.000Z
venv/Lib/site-packages/sklearn/utils/tests/test_deprecation.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
7
2021-06-08T21:46:24.000Z
2022-03-12T00:35:31.000Z
my_env/Lib/site-packages/sklearn/utils/tests/test_deprecation.py
obulrdy6881/Drowsinss
61cb9281d7dd22aee282b517e2fbf500f0ff9935
[ "MIT" ]
1
2021-05-02T07:59:59.000Z
2021-05-02T07:59:59.000Z
# Authors: Raghav RV <rvraghav93@gmail.com> # License: BSD 3 clause
24.05
71
0.695773
# Authors: Raghav RV <rvraghav93@gmail.com> # License: BSD 3 clause import pickle from sklearn.utils.deprecation import _is_deprecated from sklearn.utils.deprecation import deprecated from sklearn.utils._testing import assert_warns_message @deprecated('qwerty') class MockClass1: pass class Mo...
0
137
0
-2
0
786
0
84
350
2708c250ee8a8af5e2e4ffce46142bf303e76ed2
1,906
py
Python
tests/test_class_3_BankAccount.py
nandoabreu/mass-data-generator
d7cda210cc81d9a352502fa591145fcceaa65edd
[ "MIT" ]
1
2021-02-05T14:21:31.000Z
2021-02-05T14:21:31.000Z
tests/test_class_3_BankAccount.py
nandoabreu/mass-data-generator
d7cda210cc81d9a352502fa591145fcceaa65edd
[ "MIT" ]
null
null
null
tests/test_class_3_BankAccount.py
nandoabreu/mass-data-generator
d7cda210cc81d9a352502fa591145fcceaa65edd
[ "MIT" ]
3
2021-09-10T11:13:09.000Z
2022-03-30T16:05:31.000Z
#! /usr/bin/env python3 import unittest verbose_tests = False if __name__ == '__main__': unittest.main()
32.862069
114
0.688353
#! /usr/bin/env python3 import unittest from datagenerator.BankAccount import BankAccount from datagenerator.Person import Person verbose_tests = False class Test(unittest.TestCase): def setUp(self): self.object = BankAccount() self.person = Person('Alan Turing', '1912-06-23', 'en_GB') def ...
0
0
0
1,678
0
0
0
46
67
e3529c4c19863f53025cad15fbbe2d35c6ede960
1,401
py
Python
discord_typings/resources/application.py
Middledot/discord-typings
dab4a48bfc6c2c9bbb2f7930634d8da825dc97f7
[ "MIT" ]
7
2022-01-22T13:40:33.000Z
2022-03-28T19:03:14.000Z
discord_typings/resources/application.py
Middledot/discord-typings
dab4a48bfc6c2c9bbb2f7930634d8da825dc97f7
[ "MIT" ]
3
2021-11-19T13:48:22.000Z
2022-03-15T19:25:13.000Z
discord_typings/resources/application.py
Middledot/discord-typings
dab4a48bfc6c2c9bbb2f7930634d8da825dc97f7
[ "MIT" ]
5
2021-11-18T12:07:15.000Z
2022-03-12T16:02:54.000Z
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: __all__ = ('ApplicationData', 'TeamData', 'TeamMemberData') # https://discord.com/developers/docs/resources/application#application-object-application-structure # https://discord.com/developers/docs/topics/teams#data-models-te...
23.35
100
0.744468
from __future__ import annotations from typing import TYPE_CHECKING, List, Optional from typing_extensions import NotRequired, TypedDict, final if TYPE_CHECKING: from ..shared import Snowflake from .user import UserData __all__ = ('ApplicationData', 'TeamData', 'TeamMemberData') # https://discord.com/deve...
0
773
0
0
0
0
0
68
144
e92efb24b9e48dea32b7fe1062727465bb940a24
468
py
Python
Dataset/Leetcode/test/3/585.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/3/585.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/3/585.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
undefined for (i = 0; i < document.getElementsByTagName("code").length; i++) { console.log(document.getElementsByTagName("code")[i].innerText); }
24.631579
139
0.465812
class Solution: def XXX(self, s: str) -> int: l=0 r=1 maxSub=0 while r<=len(s): if len(set(s[l:r]))==len(s[l:r]): maxSub=max(maxSub,len(set(s[l:r]))) r+=1 else: l+=1 return maxSub`` unde...
0
0
0
292
0
0
0
0
23
077c510798ba2b98c509a94f23840d3fb6871de7
2,197
py
Python
Src/preprocessing.py
MamadouBarri/Kaggle-ML-A20
e51d03460246c0d85a222de30511719d30b6388d
[ "MIT" ]
null
null
null
Src/preprocessing.py
MamadouBarri/Kaggle-ML-A20
e51d03460246c0d85a222de30511719d30b6388d
[ "MIT" ]
null
null
null
Src/preprocessing.py
MamadouBarri/Kaggle-ML-A20
e51d03460246c0d85a222de30511719d30b6388d
[ "MIT" ]
null
null
null
IMAGE_SIZE = 32 # Returns the rgb values of a pixel in an image # Checks whether the current position is in the image # Checks whether the value of r, g and b is [x] in an array # Checks whether the current position is in the image and that the pixel is not black # Returns the neighbouring pixels of a pixel in a ...
31.84058
108
0.67228
import numpy as np IMAGE_SIZE = 32 # Returns the rgb values of a pixel in an image def getRGB(image, position): return image[position[0], position[1]] # Checks whether the current position is in the image def isPixelPositionValid(width, height, position): return not(position[0] < 0 or position[0] >= width or...
0
0
0
0
0
1,589
0
-3
176
75965a287d8a00b1d2e98b1e50919623dd2b8944
1,145
py
Python
2020/D03/D03Q2.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2020/D03/D03Q2.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2020/D03/D03Q2.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
print(countTreesProduct('InputD03Q2.txt', [[1, 1], [3, 1], [5, 1], [7, 1], [1, 2]]))
26.022727
85
0.61048
def countTreesProduct(inputPath, listPathSlopes): terrain = [] widthRepeat = 0 heightRepeat = 0 # Open file for reading the terrain with open(inputPath) as fileP: valueLine = str(fileP.readline()).rstrip("\n") widthRepeat = len(valueLine); while valueLine: ...
0
0
0
0
0
1,009
0
0
49
872129d3436c636af2741f783cdf52d4fc0667c0
2,086
py
Python
Examples/2018 code/functions.py
VickyBize/predicting-depression-with-nn
7261033e8e89944292082d7788b1b05929edfe28
[ "MIT" ]
null
null
null
Examples/2018 code/functions.py
VickyBize/predicting-depression-with-nn
7261033e8e89944292082d7788b1b05929edfe28
[ "MIT" ]
null
null
null
Examples/2018 code/functions.py
VickyBize/predicting-depression-with-nn
7261033e8e89944292082d7788b1b05929edfe28
[ "MIT" ]
null
null
null
from nltk.tokenize import TweetTokenizer tknzr = TweetTokenizer() from nltk.stem import PorterStemmer ps = PorterStemmer() import time from time import mktime from datetime import datetime
25.13253
59
0.614094
import os import re import sys import numpy as np import nltk import xml.etree.ElementTree as ET from nltk.tokenize import TweetTokenizer tknzr = TweetTokenizer() from nltk.stem import PorterStemmer ps = PorterStemmer() from nltk.corpus import stopwords from collections import Counter import collections im...
0
0
0
0
0
1,412
0
-2
476
1963646968f02c1a8e5d85ca58bdfdd3bcdd4e83
242
py
Python
devilhtc_do/main/views.py
devilhtc/personal-website-do
6022040e33c8b69244859df1001c79d61a1d31b5
[ "MIT" ]
null
null
null
devilhtc_do/main/views.py
devilhtc/personal-website-do
6022040e33c8b69244859df1001c79d61a1d31b5
[ "MIT" ]
3
2017-12-27T07:53:14.000Z
2017-12-30T06:11:59.000Z
devilhtc_do/main/views.py
devilhtc/personal-website-do
6022040e33c8b69244859df1001c79d61a1d31b5
[ "MIT" ]
null
null
null
# Create your views here.
26.888889
45
0.826446
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.template import loader from django.views.generic import TemplateView class indexView(TemplateView): template_name = "index.html"
0
0
0
39
0
0
0
66
111
831ae12cfc6f44039f038cde9e742065ea6f2073
1,025
py
Python
model/version_tag.py
Manu343726/biicode-common
91b32c6fd1e4a72ce5451183f1766d313cd0e420
[ "MIT" ]
17
2015-04-15T09:40:23.000Z
2017-05-17T20:34:49.000Z
model/version_tag.py
Manu343726/biicode-common
91b32c6fd1e4a72ce5451183f1766d313cd0e420
[ "MIT" ]
2
2015-04-22T11:29:36.000Z
2018-09-25T09:31:09.000Z
model/version_tag.py
bowlofstew/common
45e9ca902be7bbbdd73dafe3ab8957bc4a006020
[ "MIT" ]
22
2015-04-15T09:46:00.000Z
2020-09-29T17:03:31.000Z
DEV = VersionTag(0) ALPHA = VersionTag(1) BETA = VersionTag(2) STABLE = VersionTag(3)
27.702703
94
0.523902
class VersionTag(int): def __new__(cls, value): if value < 0 or value > 3: raise ValueError('%s is not a valid VersionTag value it should be in [0, 3]') obj = int.__new__(cls, value) return obj def __repr__(self): return {0: "DEV", 1: "ALPHA", 2: "BETA", 3: "STABLE"...
0
455
0
461
0
0
0
0
22
646aef0b0cb72e86170debfb4cec869f76a23fdc
744
py
Python
setup.py
nadavo/Timer
731b4fa22304558a661bee0ef900f5aa1419abb8
[ "MIT" ]
3
2018-06-18T22:00:29.000Z
2022-01-04T14:24:24.000Z
setup.py
nadavo/Timer
731b4fa22304558a661bee0ef900f5aa1419abb8
[ "MIT" ]
null
null
null
setup.py
nadavo/Timer
731b4fa22304558a661bee0ef900f5aa1419abb8
[ "MIT" ]
2
2018-07-24T16:56:54.000Z
2020-04-26T20:36:47.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name='syct', version='0.4.3', author="Nadav Oved", author_email="nadavo@gmail.com", description="A Simple Yet Convenient Timer module for Python 3", long_description=...
31
71
0.638441
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name='syct', version='0.4.3', author="Nadav Oved", author_email="nadavo@gmail.com", description="A Simple Yet Convenient Timer module for Python 3", long_description=...
0
0
0
0
0
0
0
0
0
c0a48cce913a17413d7cf88d86d64877d020aafd
1,915
py
Python
Evaluation.py
AsmaBaccouche/A-Qualitative-Study-of-Speed-School-of-Engineering-Publications-Using-Text-Clustering-Analysis
298b300170fc3daae20e09256da1484722150665
[ "MIT" ]
null
null
null
Evaluation.py
AsmaBaccouche/A-Qualitative-Study-of-Speed-School-of-Engineering-Publications-Using-Text-Clustering-Analysis
298b300170fc3daae20e09256da1484722150665
[ "MIT" ]
null
null
null
Evaluation.py
AsmaBaccouche/A-Qualitative-Study-of-Speed-School-of-Engineering-Publications-Using-Text-Clustering-Analysis
298b300170fc3daae20e09256da1484722150665
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Asma Baccouche """ from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from Get_Data import get_data from sklearn.cluster import KMeans, SpectralClustering from nltk.cluster import KMeansClusterer, util from gensim.models import Word2Vec from skle...
38.3
112
0.758225
# -*- coding: utf-8 -*- """ @author: Asma Baccouche """ from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer from Get_Data import get_data from sklearn.cluster import KMeans, SpectralClustering from nltk.cluster import KMeansClusterer, util from gensim.models import Word2Vec from skle...
0
0
0
0
0
0
0
0
0
bc76d6aed7f74ab42c5523445623d81fa7971a55
6,853
py
Python
2021/18/test.py
Apreche/advent2016
81e72efe670a62065297d1db4a2eef544bc36cb6
[ "MIT" ]
3
2020-12-12T22:05:06.000Z
2021-12-11T17:05:48.000Z
2021/18/test.py
Apreche/advent-of-code
81e72efe670a62065297d1db4a2eef544bc36cb6
[ "MIT" ]
null
null
null
2021/18/test.py
Apreche/advent-of-code
81e72efe670a62065297d1db4a2eef544bc36cb6
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
33.925743
84
0.341019
import snailfish import unittest import utils class TestSFNumber(unittest.TestCase): def test_parse(self): test_number = "[[[[30,0],[0,0]],1],4]" obj = snailfish.SFNumber(test_number) self.assertEqual( obj.number, ['[', '[', '[', '[', 30, 0, ']', '[', 0, 0, ']', ']'...
0
0
0
6,710
0
0
0
-14
90
f7bad844a96e9f307000713e166af96ad0101327
2,115
py
Python
weibo.py
RylynnLai/py-practise
aebcc7343a03f4256cc24f91100fdcdf10d31fa8
[ "MIT" ]
null
null
null
weibo.py
RylynnLai/py-practise
aebcc7343a03f4256cc24f91100fdcdf10d31fa8
[ "MIT" ]
null
null
null
weibo.py
RylynnLai/py-practise
aebcc7343a03f4256cc24f91100fdcdf10d31fa8
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- #from weibopy.api import API from weibo import APIClient import sys, os, urllib, urllib2, cookielib, httplib import webbrowser import urlparse #codeacces tokentokenUNIX client = APIClient(app_key=APP_KEY, app_secret=APP_SECRET, redirect_uri=CALLBACK_URL) referer_url = client....
26.4375
93
0.744208
#!/usr/bin/python # -*- coding: utf-8 -*- #from weibopy.api import API from weibo import APIClient import sys,os,urllib,urllib2,cookielib,httplib import webbrowser import urlparse #模拟授权并且获取回调地址上的code,以获得acces token和token过期的UNIX时间 def get_code(): APP_KEY = 'xxxxxxxxxx' #你申请的APP_KEY APP_SECRET = 'xxxxxxxxxxxxxxxxxxxx...
300
0
0
0
0
243
0
-5
45
ee989299f06943d7e203a33bfdd5662f04ca33e3
262
py
Python
Lessons/if_statement/if_and_else_statemennt.py
Orleanslindsay/Python_Programming
dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55
[ "MIT" ]
1
2021-08-16T10:25:01.000Z
2021-08-16T10:25:01.000Z
Lessons/if_statement/if_and_else_statemennt.py
Orleanslindsay/Python_Programming
dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55
[ "MIT" ]
null
null
null
Lessons/if_statement/if_and_else_statemennt.py
Orleanslindsay/Python_Programming
dacc08090e9ebf9eb43aec127ee3e2e3cdcb4f55
[ "MIT" ]
null
null
null
""""The code determines, if the user input is an even number or an odd number""" integer_number = int(input("Enter an integer number: ")) if integer_number % 2 == 0: print(integer_number, "is an even number.") else: print(integer_number," is an odd number.")
32.75
56
0.71374
""""The code determines, if the user input is an even number or an odd number""" integer_number = int(input("Enter an integer number: ")) if integer_number % 2 == 0: print(integer_number, "is an even number.") else: print(integer_number," is an odd number.")
0
0
0
0
0
0
0
0
0
86a507a0a563880508b0dd16c0d501e7860fd579
6,299
py
Python
profiles/views.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
profiles/views.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
profiles/views.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
# ------------------ # Ajax functions # -----------------
31.653266
87
0.584855
from django.shortcuts import render, get_object_or_404, redirect from django.http import HttpResponse from django.template import RequestContext, loader from models import Profile, Post, PostComment from forms import ProfileForm from readings.models import Book, Day from django.contrib.auth.decorators import login_requ...
0
2,487
0
0
0
3,166
0
203
382
940355c594c61c008721f7adb71794feca5b28cb
6,901
py
Python
scripts/noisy_odom.py
rfzeg/final_project
933d1f181a7aaa6ea738556370f011590a32d825
[ "BSD-3-Clause" ]
null
null
null
scripts/noisy_odom.py
rfzeg/final_project
933d1f181a7aaa6ea738556370f011590a32d825
[ "BSD-3-Clause" ]
null
null
null
scripts/noisy_odom.py
rfzeg/final_project
933d1f181a7aaa6ea738556370f011590a32d825
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' Modified version of: noisy_odom.py, Team Leonard, University of Birmingham Intelligent Robotics 2018 ''' import rospy import math # gauss() is an inbuilt method of the random module from random import gauss from nav_msgs.msg import Odometry from geometry_msgs.msg import Quaternion, Vector3 f...
34.678392
115
0.665556
#!/usr/bin/env python ''' Modified version of: noisy_odom.py, Team Leonard, University of Birmingham Intelligent Robotics 2018 ''' import rospy import math import random # gauss() is an inbuilt method of the random module from random import gauss from nav_msgs.msg import Odometry from geometry_msgs.msg import Point, ...
0
0
0
0
0
1,002
0
14
115
593198957ad6887281f7cc09c5e116df4d885bd1
450
pyde
Python
Processing/Section 9/Listing62/Listing62.pyde
Grigory526/2019-fall-polytech-cs
1e87472fa128f6d69a3b99118e04ce4cce9ac70a
[ "MIT" ]
1
2019-09-16T19:30:49.000Z
2019-09-16T19:30:49.000Z
Processing/Section 9/Listing62/Listing62.pyde
Grigory526/2019-fall-polytech-cs
1e87472fa128f6d69a3b99118e04ce4cce9ac70a
[ "MIT" ]
null
null
null
Processing/Section 9/Listing62/Listing62.pyde
Grigory526/2019-fall-polytech-cs
1e87472fa128f6d69a3b99118e04ce4cce9ac70a
[ "MIT" ]
null
null
null
xCoordinate =[1]*10
18
48
0.54
xCoordinate =[1]*10 def setup(): size(500, 500) smooth() noStroke() for i in range(0,len(xCoordinate)): xCoordinate[i] = 35*i + 90 def draw(): background(50) for i in range(0,len(xCoordinate)): fill(200, 40) ellipse(xCoordinate[i], 250, 15*i, 15*i) fil...
0
0
0
0
0
349
0
0
69
ce7274e3f513fcae5f714665d921405b193545f6
108
py
Python
Curso Udemy 2022/Curso_Luiz_Otavio/CONTINUE USO.py
Matheusfarmaceutico/Exercicios-Python
d1821bd9d11ea0707074c5fe11dead2e85476ebd
[ "MIT" ]
null
null
null
Curso Udemy 2022/Curso_Luiz_Otavio/CONTINUE USO.py
Matheusfarmaceutico/Exercicios-Python
d1821bd9d11ea0707074c5fe11dead2e85476ebd
[ "MIT" ]
null
null
null
Curso Udemy 2022/Curso_Luiz_Otavio/CONTINUE USO.py
Matheusfarmaceutico/Exercicios-Python
d1821bd9d11ea0707074c5fe11dead2e85476ebd
[ "MIT" ]
null
null
null
x = 0 while x < 5: if x == 3: x += 1 continue print(x) x += 1 print('Acabou!')
10.8
16
0.388889
x = 0 while x < 5: if x == 3: x += 1 continue print(x) x += 1 print('Acabou!')
0
0
0
0
0
0
0
0
0
f22415545f3374879f1c26b58b05b7cb78f8894c
2,189
py
Python
hard-gists/6463966/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/6463966/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/6463966/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#!/usr/bin/python # # list_unused_munki_pkgs.py # Tim Sutton # # Simple script to list all Munki pkgs not currently referenced in a specific list # of catalogs. # It does not delete anything. # # CATALOGS can be modified to a list of catalogs in your repo that should be indexed. # PKGS_ROOT must also be defined to be r...
37.741379
95
0.683417
#!/usr/bin/python # # list_unused_munki_pkgs.py # Tim Sutton # # Simple script to list all Munki pkgs not currently referenced in a specific list # of catalogs. # It does not delete anything. # # CATALOGS can be modified to a list of catalogs in your repo that should be indexed. # PKGS_ROOT must also be defined to be r...
0
0
0
0
0
0
0
0
0
71ff7615b209addcde447405d85d56eba7020c7b
561
py
Python
mpesa_api/urls.py
devmedtz/mpesa-api
279b5f9c2063270e846501f426f69b15f1b75eb8
[ "Apache-2.0" ]
null
null
null
mpesa_api/urls.py
devmedtz/mpesa-api
279b5f9c2063270e846501f426f69b15f1b75eb8
[ "Apache-2.0" ]
null
null
null
mpesa_api/urls.py
devmedtz/mpesa-api
279b5f9c2063270e846501f426f69b15f1b75eb8
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('access/token', views.getAccessToken, name='get_mpesa_access_token'), path('online/lipa', views.lipa_na_mpesa_online, name='lipa_na_mpesa'), # register, confirmation, validation and callback urls path('c2b/register', views.register...
37.4
80
0.736185
from django.urls import path from . import views urlpatterns = [ path('access/token', views.getAccessToken, name='get_mpesa_access_token'), path('online/lipa', views.lipa_na_mpesa_online, name='lipa_na_mpesa'), # register, confirmation, validation and callback urls path('c2b/register', views.register...
0
0
0
0
0
0
0
0
0
c01153002da4c9a1cc7b41b3ecb7fdad43b7a187
48,961
py
Python
pylearn2/neuroimaging_utils/dataset_utils/read_snps.py
rdevon/pylearn2
f7b9a6ea0e2498176b47202f5bb83aec4976e1dd
[ "BSD-3-Clause" ]
1
2017-10-29T06:18:35.000Z
2017-10-29T06:18:35.000Z
pylearn2/neuroimaging_utils/dataset_utils/read_snps.py
rdevon/pylearn2
f7b9a6ea0e2498176b47202f5bb83aec4976e1dd
[ "BSD-3-Clause" ]
null
null
null
pylearn2/neuroimaging_utils/dataset_utils/read_snps.py
rdevon/pylearn2
f7b9a6ea0e2498176b47202f5bb83aec4976e1dd
[ "BSD-3-Clause" ]
null
null
null
""" Utility for loading SNP data. """ __author__ = "Devon Hjelm" __copyright__ = "Copyright 2014, Mind Research Network" __credits__ = ["Devon Hjelm"] __licence__ = "3-clause BSD" __email__ = "dhjelm@mrn.org" __maintainer__ = "Devon Hjelm" import argparse import copy import logging import gzip import numpy as np from...
35.711889
114
0.58134
""" Utility for loading SNP data. """ __author__ = "Devon Hjelm" __copyright__ = "Copyright 2014, Mind Research Network" __credits__ = ["Devon Hjelm"] __licence__ = "3-clause BSD" __email__ = "dhjelm@mrn.org" __maintainer__ = "Devon Hjelm" import argparse import copy import logging import gzip import numpy as np from...
0
0
0
0
0
4,139
0
0
276
2174dd32cd34af44ad4791c49ca9662c8dfa8f49
4,987
py
Python
fridge.py
brachunok/charcuterie
5d4974ce4c45139904645f8659f9144a1fabfd18
[ "MIT" ]
null
null
null
fridge.py
brachunok/charcuterie
5d4974ce4c45139904645f8659f9144a1fabfd18
[ "MIT" ]
null
null
null
fridge.py
brachunok/charcuterie
5d4974ce4c45139904645f8659f9144a1fabfd18
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
31.764331
94
0.701023
#!/usr/bin/python # Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
0
0
0
0
0
0
0
0
0
828d29b0409243f5d8857098132ff33f1ee62f94
10,619
py
Python
third_party/py_vulcanize/py_vulcanize/html_module_unittest.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
4
2017-12-29T03:17:40.000Z
2021-07-04T03:28:11.000Z
third_party/py_vulcanize/py_vulcanize/html_module_unittest.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
1
2021-08-13T18:39:43.000Z
2021-08-13T18:39:43.000Z
third_party/py_vulcanize/py_vulcanize/html_module_unittest.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
6
2017-12-05T07:15:08.000Z
2021-07-04T03:28:13.000Z
# 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. from py_vulcanize import resource_loader as resource_loader
33.288401
91
0.663528
# 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. import os import unittest import StringIO from py_vulcanize import fake_fs from py_vulcanize import generate from py_vulcanize import html_generation_contro...
0
117
0
9,858
0
0
0
104
314
50fd4d83422748ff65b2ea649a6f6bd8c39e91e1
1,647
py
Python
django_nose/tools.py
alexhayes/django-nose
08d36fee57356ff36e109c6bd49825f3b71e6725
[ "BSD-3-Clause" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
django_nose/tools.py
alexhayes/django-nose
08d36fee57356ff36e109c6bd49825f3b71e6725
[ "BSD-3-Clause" ]
null
null
null
django_nose/tools.py
alexhayes/django-nose
08d36fee57356ff36e109c6bd49825f3b71e6725
[ "BSD-3-Clause" ]
5
2019-06-29T03:13:02.000Z
2020-04-23T04:47:11.000Z
# vim: tabstop=4 expandtab autoindent shiftwidth=4 fileencoding=utf-8 """ Provides Nose and Django test case assert functions """ from django.core import mail import re ## Python from nose import tools for t in dir(tools): if t.startswith('assert_'): vars()[t] = getattr(tools, t) ## Django caps = re....
21.96
71
0.645416
# vim: tabstop=4 expandtab autoindent shiftwidth=4 fileencoding=utf-8 """ Provides Nose and Django test case assert functions """ from django.test.testcases import TransactionTestCase from django.core import mail import re ## Python from nose import tools for t in dir(tools): if t.startswith('assert_'): ...
0
0
0
40
0
59
0
32
69
a512e26e4b9cd06fb485ab06c3377ceab23becfc
250,553
py
Python
src/Stele/newhsganalysis.py
jbcostello/Stele
a091ed1eb6b166771b75fcffac09737e6c86a1c9
[ "MIT" ]
null
null
null
src/Stele/newhsganalysis.py
jbcostello/Stele
a091ed1eb6b166771b75fcffac09737e6c86a1c9
[ "MIT" ]
null
null
null
src/Stele/newhsganalysis.py
jbcostello/Stele
a091ed1eb6b166771b75fcffac09737e6c86a1c9
[ "MIT" ]
1
2020-11-20T01:40:11.000Z
2020-11-20T01:40:11.000Z
# -*- coding: utf-8 -*- """ Created on Fri Jun 19 13:16:25 2015 @author: hbanks Brevity required, prurience preferred """ import os import io import glob import errno import copy import json import warnings import numpy as np from scipy.optimize import curve_fit import scipy.interpolate as spi import scipy.optimize...
43.109601
146
0.573352
# -*- coding: utf-8 -*- """ Created on Fri Jun 19 13:16:25 2015 @author: hbanks Brevity required, prurience preferred """ import os import io import glob import errno import copy import json import warnings import numpy as np from scipy.optimize import curve_fit import scipy.interpolate as spi import scipy.optimize...
6
2,835
0
122,980
0
3,664
0
0
545
27e1e66d81850087b4f599edb3d3fadde3014a9c
2,391
py
Python
tests/test_md.py
akshi8/tidyplusPy
5d35d8c742841a3360072b14063af6407cc7370a
[ "MIT" ]
1
2018-02-14T00:55:29.000Z
2018-02-14T00:55:29.000Z
tests/test_md.py
akshi8/tidyplusPy
5d35d8c742841a3360072b14063af6407cc7370a
[ "MIT" ]
16
2018-03-01T23:43:50.000Z
2018-09-10T17:44:02.000Z
tests/test_md.py
akshi8/tidyplusPy
5d35d8c742841a3360072b14063af6407cc7370a
[ "MIT" ]
5
2018-02-14T21:29:40.000Z
2018-03-18T16:15:02.000Z
#!/usr/bin/env python
24.90625
134
0.572564
#!/usr/bin/env python import pytest from tidyplusPy import md class Test_md: def test_input1(self): """ Raise TypeError if ncol and nrow are not integer """ with pytest.raises(TypeError): md.md_new( ncol = 'some string', nrow = 3 ) with pytest.raises(TypeError): md.md_new( ncol = 3, nrow = 'some ...
0
0
0
2,305
0
0
0
-4
68
5e1c99ded726b347c50c1b6ce7f759c92de3bb33
188
py
Python
exchange/templatetags/multiply_operator.py
LuckyLion777/Django_BTC-Conversion
117035ce0727a0e8e490b76b9040af358bad5989
[ "MIT" ]
null
null
null
exchange/templatetags/multiply_operator.py
LuckyLion777/Django_BTC-Conversion
117035ce0727a0e8e490b76b9040af358bad5989
[ "MIT" ]
2
2020-06-05T18:59:10.000Z
2021-06-10T20:45:19.000Z
exchange/templatetags/multiply_operator.py
LuckyLion777/Django_BTC-Conversion
117035ce0727a0e8e490b76b9040af358bad5989
[ "MIT" ]
null
null
null
from django import template register = template.Library()
17.090909
36
0.755319
from django import template register = template.Library() @register.filter def multiply_operator(amount, rate): if not amount or rate: return 0.0 return float(amount) * float(rate)
0
106
0
0
0
0
0
0
23
c645eabc6c887771d4c4e7c2ecfb05cf89f7da6a
6,113
py
Python
ui_extensions/api_extension/views.py
gamethis/cloudbolt-forge
f2e240d4a52483c0c1a738c539969ebd10663c68
[ "Apache-2.0" ]
null
null
null
ui_extensions/api_extension/views.py
gamethis/cloudbolt-forge
f2e240d4a52483c0c1a738c539969ebd10663c68
[ "Apache-2.0" ]
null
null
null
ui_extensions/api_extension/views.py
gamethis/cloudbolt-forge
f2e240d4a52483c0c1a738c539969ebd10663c68
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from utilities.logger import ThreadLogger logger = ThreadLogger(__name__) #Sample Payloads #{ # "template": "templatename", # "user-name": "myuser", # "password": "mytemplatepassword" #} #
39.954248
121
0.640602
from __future__ import unicode_literals from datetime import datetime from django.db.models import Q from django.utils.translation import ugettext as _ from rest_framework.exceptions import PermissionDenied from rest_framework.response import Response from rest_framework import status from rest_framework import viewset...
0
2,983
0
1,907
0
0
0
492
487
3f6a94c424cfb6e9b9b3baef669a4934ee810f3b
4,230
py
Python
python/featuredb/views/register.py
OpenCIOC/featuretracker
4121a4beafcea04a33e5467b0ed4d178edf888ec
[ "Apache-2.0" ]
1
2016-01-25T14:40:50.000Z
2016-01-25T14:40:50.000Z
python/featuredb/views/register.py
OpenCIOC/featuretracker
4121a4beafcea04a33e5467b0ed4d178edf888ec
[ "Apache-2.0" ]
null
null
null
python/featuredb/views/register.py
OpenCIOC/featuretracker
4121a4beafcea04a33e5467b0ed4d178edf888ec
[ "Apache-2.0" ]
null
null
null
# ========================================================================================= # Copyright 2015 Community Information Online Consortium (CIOC) and KCL Software Solutions # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
33.307087
131
0.715839
# ========================================================================================= # Copyright 2015 Community Information Online Consortium (CIOC) and KCL Software Solutions # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
0
1,608
0
1,099
0
0
0
137
223
da4c2f263a364d35686c85c5b8a300c2a295989c
1,783
py
Python
test/test_network.py
AlanLuSun/Viewpoint-estimation
d75b7c7b12aac0d59a3b930084d47312a6881a71
[ "MIT" ]
4
2018-10-04T05:56:18.000Z
2020-06-22T14:06:47.000Z
test/test_network.py
AlanLuSun/Viewpoint-estimation
d75b7c7b12aac0d59a3b930084d47312a6881a71
[ "MIT" ]
1
2019-04-25T14:14:09.000Z
2019-04-25T14:14:09.000Z
test/test_network.py
AlanLuSun/Viewpoint-estimation
d75b7c7b12aac0d59a3b930084d47312a6881a71
[ "MIT" ]
3
2018-12-28T12:04:09.000Z
2021-01-29T01:53:30.000Z
# -*- coding: utf-8 -*- import sys sys.path.append('sources') import unittest if __name__ == '__main__': unittest.main()
33.641509
104
0.648906
# -*- coding: utf-8 -*- import sys sys.path.append('sources') import torch import random import unittest import numpy as np from torch.utils.data import Dataset from torchvision import transforms from predict import predict from network import Model from score import AP, meanAP class TestNetwork(unittest.TestCase): ...
0
0
0
1,431
0
0
0
25
199
a8880c40a4b13fc4b544009466b5480d9d39a5cb
1,220
py
Python
model/parts/oracles.py
patriacaelum/HydraDX-simulations
57948099c924309636647ccd0768afc60a28f705
[ "Apache-2.0" ]
null
null
null
model/parts/oracles.py
patriacaelum/HydraDX-simulations
57948099c924309636647ccd0768afc60a28f705
[ "Apache-2.0" ]
4
2021-10-14T15:51:46.000Z
2021-10-17T18:44:03.000Z
model/parts/oracles.py
patriacaelum/HydraDX-simulations
57948099c924309636647ccd0768afc60a28f705
[ "Apache-2.0" ]
1
2021-10-14T05:45:47.000Z
2021-10-14T05:45:47.000Z
import numpy as np def constant_function(x, constant=0): """ Returns a constant value `a` such that f(x) = a. Parameters ============ x: the input value. constant: the constant value. """ return constant def dirac_delta_function(x, steps=[(1, 1)]): """ Retur...
20.333333
67
0.532787
import numpy as np def constant_function(x, constant=0): """ Returns a constant value `a` such that f(x) = a. Parameters ============ x: the input value. constant: the constant value. """ return constant def dirac_delta_function(x, steps=[(1, 1)]): """ Retur...
0
0
0
0
0
0
0
0
0
f0b9d04d8ae96de07dc318ce4333983b3b1ec03e
3,204
py
Python
grasping/planning/pushing.py
wangyan-hlab/wrs
8f81cdd33a419d5b4ffe18d13cd4cbf9f258bc7c
[ "MIT" ]
null
null
null
grasping/planning/pushing.py
wangyan-hlab/wrs
8f81cdd33a419d5b4ffe18d13cd4cbf9f258bc7c
[ "MIT" ]
null
null
null
grasping/planning/pushing.py
wangyan-hlab/wrs
8f81cdd33a419d5b4ffe18d13cd4cbf9f258bc7c
[ "MIT" ]
null
null
null
import math import grasping.annotation.utils as gu def plan_pushing(hnd_s, objcm, cone_angle=math.radians(30), icosphere_level=2, local_rotation_interval=math.radians(22.5), max_samples=100, min_dist_between_sampled_...
40.05
113
0.607366
import math import numpy as np import basis.robot_math as rm import grasping.annotation.utils as gu from scipy.spatial import cKDTree def plan_pushing(hnd_s, objcm, cone_angle=math.radians(30), icosphere_level=2, local_rotation_interval=math.radians(...
0
0
0
0
0
410
0
33
138
05d55bc774bf444927303fe6c2c53a7e167ee7f7
797
py
Python
mysite/polls/migrations/0005_auto_20150314_0313.py
aaronkrolik/rule46
20d3e384768caced5b76f37e8fdefc2e9fb129d6
[ "Apache-2.0" ]
null
null
null
mysite/polls/migrations/0005_auto_20150314_0313.py
aaronkrolik/rule46
20d3e384768caced5b76f37e8fdefc2e9fb129d6
[ "Apache-2.0" ]
null
null
null
mysite/polls/migrations/0005_auto_20150314_0313.py
aaronkrolik/rule46
20d3e384768caced5b76f37e8fdefc2e9fb129d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals
24.90625
64
0.564617
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('polls', '0004_auto_20150314_0300'), ] operations = [ migrations.RenameField( model_name='player', ol...
0
0
0
667
0
0
0
19
46
d70775a6183ddcdc55dc5c08e1d0700960965cb1
814
py
Python
tests/conftest.py
Cryptocelot/cryptocelot-tracker
b355857f1367fb22207fca9d1f443baa9b7ee07b
[ "MIT" ]
3
2017-12-30T07:39:46.000Z
2020-02-13T17:43:10.000Z
tests/conftest.py
Cryptocelot/cryptocelot-tracker
b355857f1367fb22207fca9d1f443baa9b7ee07b
[ "MIT" ]
null
null
null
tests/conftest.py
Cryptocelot/cryptocelot-tracker
b355857f1367fb22207fca9d1f443baa9b7ee07b
[ "MIT" ]
null
null
null
# import all entities so they are known to the ORM
29.071429
55
0.727273
import pytest from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from model import Base # import all entities so they are known to the ORM from trading.order import Order from trading.portfolio import Portfolio from trading.trade import...
0
430
0
0
0
0
0
110
223
8b9b00070e3925a34f854852e2519c588f233bb9
410
py
Python
utilities/generate_addresses.py
amachefe/XAc
5bf13fe06ccf9e11392eb40058c6a97a725b6e03
[ "BSD-3-Clause" ]
null
null
null
utilities/generate_addresses.py
amachefe/XAc
5bf13fe06ccf9e11392eb40058c6a97a725b6e03
[ "BSD-3-Clause" ]
null
null
null
utilities/generate_addresses.py
amachefe/XAc
5bf13fe06ccf9e11392eb40058c6a97a725b6e03
[ "BSD-3-Clause" ]
null
null
null
from bitcoinrpc.authproxy import AuthServiceProxy import csv access = AuthServiceProxy("http://rpcusername:rpcpassword@127.0.0.1:8332") number = 50 csvfile = open('addresses.csv','a') writer = csv.writer(csvfile) while number != 0: try: newaddress = access.getnewaddress() writer.writerow([newaddr...
20.5
74
0.668293
from bitcoinrpc.authproxy import AuthServiceProxy import csv access = AuthServiceProxy("http://rpcusername:rpcpassword@127.0.0.1:8332") number = 50 csvfile = open('addresses.csv','a') writer = csv.writer(csvfile) while number != 0: try: newaddress = access.getnewaddress() writer.writerow([newaddr...
0
0
0
0
0
0
0
0
0
9b500a59c5f0a8390981763461d2ef6b2b9a5f5a
206
py
Python
example/apps.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
11
2019-08-07T01:31:42.000Z
2021-02-02T08:12:24.000Z
example/apps.py
CorrosiveKid/django_elastic_appsearch
85da7642aac566164b8bc06894e97a048fd3116e
[ "MIT" ]
148
2019-08-01T04:22:28.000Z
2021-05-10T19:06:31.000Z
example/apps.py
infoxchange/django_elastic_appsearch
65229586f0392d8d8cb143ab625081c89fa4cb64
[ "MIT" ]
6
2019-08-26T10:00:42.000Z
2021-02-01T03:54:02.000Z
"""Example app config."""
20.6
56
0.708738
"""Example app config.""" from django.apps import AppConfig class ExampleAppConfig(AppConfig): """Example app config.""" name = 'example' default_auto_field = 'django.db.models.BigAutoField'
0
0
0
121
0
0
0
12
46
59e9228f2714d3b9a901423e64db4a1b430bd96e
336
py
Python
resources/migrations/0006_auto_20180325_1904.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
resources/migrations/0006_auto_20180325_1904.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
11
2019-11-12T23:26:45.000Z
2021-06-10T17:37:23.000Z
resources/migrations/0006_auto_20180325_1904.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-25 19:04
18.666667
47
0.60119
# Generated by Django 2.0.2 on 2018-03-25 19:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('resources', '0005_textdescription'), ] operations = [ migrations.RenameModel( old_name='TextDescription', new_name='Text', ...
0
0
0
230
0
0
0
11
46
4cc039523f503d8153bba30a731f0c3532730269
11,822
py
Python
djarango/db/backends/arangodb/client.py
timothygraefe/djarango
52a494355437cc620db98094aa6f3e0f13793f59
[ "Apache-2.0" ]
4
2021-11-11T22:05:22.000Z
2022-02-24T16:32:22.000Z
djarango/db/backends/arangodb/client.py
timothygraefe/djarango
52a494355437cc620db98094aa6f3e0f13793f59
[ "Apache-2.0" ]
null
null
null
djarango/db/backends/arangodb/client.py
timothygraefe/djarango
52a494355437cc620db98094aa6f3e0f13793f59
[ "Apache-2.0" ]
2
2021-11-11T22:07:47.000Z
2022-02-06T19:27:47.000Z
# # client.py # # Timothy Graefe, Javamata LLC, Nov 2021 # import logging # Django imports # Arango Python driver (python-arango) imports. debug_client = True logger = logging.getLogger('django.db.backends.arangodb') # # Create a Database class to be used as a wrapper to the ArangoDB instance. #
35.080119
94
0.594147
# # client.py # # Timothy Graefe, Javamata LLC, Nov 2021 # import logging # Django imports from django.conf import settings from django.db.utils import DatabaseError from django.db.backends.base.client import BaseDatabaseClient from django.core.exceptions import ImproperlyCon...
0
895
0
10,224
0
0
0
221
177
f40db50b84bc16f1c92f02fc137a7769641253e2
23,698
py
Python
evennia/contrib/menusystem.py
ReidLiu/text-world
b016546a0663d05cc581211ecdcb978cb0bd82c4
[ "BSD-3-Clause" ]
28
2015-04-14T00:15:27.000Z
2021-11-18T08:31:16.000Z
evennia/contrib/menusystem.py
ReidLiu/text-world
b016546a0663d05cc581211ecdcb978cb0bd82c4
[ "BSD-3-Clause" ]
null
null
null
evennia/contrib/menusystem.py
ReidLiu/text-world
b016546a0663d05cc581211ecdcb978cb0bd82c4
[ "BSD-3-Clause" ]
18
2015-07-17T16:48:11.000Z
2020-12-05T15:57:49.000Z
""" Evennia menu system. Contribution - Griatch 2011 This module offers the ability for admins to let their game be fully or partly menu-driven. Menu choices can be numbered or use arbitrary keys. There are also some formatting options, such a putting options in one or more columns. The menu system consists of a Men...
38.408428
213
0.601401
""" Evennia menu system. Contribution - Griatch 2011 This module offers the ability for admins to let their game be fully or partly menu-driven. Menu choices can be numbered or use arbitrary keys. There are also some formatting options, such a putting options in one or more columns. The menu system consists of a Men...
0
0
0
15,983
0
986
0
0
435
ebe04606a26f1a0e8aea8ed8f05095c3ba087321
5,877
py
Python
adoctor-diag-scheduler/adoctor_diag_scheduler/tests/test_cases/test_helper.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-diag-scheduler/adoctor_diag_scheduler/tests/test_cases/test_helper.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-diag-scheduler/adoctor_diag_scheduler/tests/test_cases/test_helper.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
37.433121
98
0.56066
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
0
4,100
0
759
0
0
0
138
158
6d17865f8cd0049ce0aaf44adc76a65bd2e06e06
2,117
py
Python
wholesomebot/environment/phrase_lists.py
bnb32/wholesome_bot
44af9b71f3064e2feb7bdac68a71bf803b544b75
[ "MIT" ]
null
null
null
wholesomebot/environment/phrase_lists.py
bnb32/wholesome_bot
44af9b71f3064e2feb7bdac68a71bf803b544b75
[ "MIT" ]
null
null
null
wholesomebot/environment/phrase_lists.py
bnb32/wholesome_bot
44af9b71f3064e2feb7bdac68a71bf803b544b75
[ "MIT" ]
null
null
null
blacklist=[ 'finger her' 'N I G G E R', '#removethemole', 'super hottie', 'thicc', 't h i c c', 'u are hot', 'you are hot', 'your hot', 'ur hot', 'u are sexy', 'you are sexy', ...
23.263736
42
0.31129
blacklist=[ 'finger her' 'N I G G E R', '#removethemole', 'super hottie', 'thicc', 't h i c c', 'u are hot', 'you are hot', 'your hot', 'ur hot', 'u are sexy', 'you are sexy', ...
0
0
0
0
0
0
0
0
0
b5998ded356839389f871f8a8536f3865a06d834
539
py
Python
assets/conf/saml/azure/scripts/test_app_signing_cert.py
jaysonsantos/caddy-auth-portal
4e082fadec01af2b6cd09cb20083533cbb21adb9
[ "Apache-2.0" ]
638
2020-08-02T17:22:13.000Z
2022-02-06T11:13:05.000Z
assets/conf/saml/azure/scripts/test_app_signing_cert.py
jaysonsantos/caddy-auth-portal
4e082fadec01af2b6cd09cb20083533cbb21adb9
[ "Apache-2.0" ]
219
2020-08-11T09:30:05.000Z
2022-01-22T21:05:30.000Z
assets/conf/saml/azure/scripts/test_app_signing_cert.py
jaysonsantos/caddy-auth-portal
4e082fadec01af2b6cd09cb20083533cbb21adb9
[ "Apache-2.0" ]
49
2020-09-15T08:10:28.000Z
2022-01-08T22:46:26.000Z
from lxml import etree from signxml import XMLSigner, XMLVerifier data_to_sign = "<Test/>" cert = open("../idp/azure_ad_app_signing_cert.pem").read() key = open("../idp/azure_ad_app_signing_key.pem").read() root = etree.fromstring(data_to_sign) signed_root = XMLSigner().sign(root, key=key, cert=cert) verified_data = X...
38.5
91
0.769944
from lxml import etree from signxml import XMLSigner, XMLVerifier from pprint import pprint data_to_sign = "<Test/>" cert = open("../idp/azure_ad_app_signing_cert.pem").read() key = open("../idp/azure_ad_app_signing_key.pem").read() root = etree.fromstring(data_to_sign) signed_root = XMLSigner().sign(root, key=key, ce...
0
0
0
0
0
0
0
4
22
da58d75367a4513d4ada4db3e0cf52dc127dc010
726
py
Python
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
1
2020-09-20T03:55:00.000Z
2020-09-20T03:55:00.000Z
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
null
null
null
blind_75/06_removeNthFromEnd.py
NursultanBeken/leetcode_practice
8aa8a033f95110aafa6acd9ebf842d716fd7552b
[ "MIT" ]
null
null
null
""" Dummy node, two pointers, swap nodes """ # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next
22
43
0.479339
""" Dummy node, two pointers, swap nodes """ # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution(object): def removeNthFromEnd(self, head, n): """ :type head: ListNode :...
0
0
0
500
0
0
0
0
22
28b47bee4f9e3beb63c6273d796b75c1f2fd938d
380
py
Python
trust_s.py
zhang-free/S_Test
1e8bf7d9227e8371349c7d4009d8778b65875c99
[ "BSD-4-Clause-UC" ]
null
null
null
trust_s.py
zhang-free/S_Test
1e8bf7d9227e8371349c7d4009d8778b65875c99
[ "BSD-4-Clause-UC" ]
null
null
null
trust_s.py
zhang-free/S_Test
1e8bf7d9227e8371349c7d4009d8778b65875c99
[ "BSD-4-Clause-UC" ]
null
null
null
""" software x_ softwaregithubdockerhub """ from cytomine import Cytomine from cytomine.models import SoftwareUserRepository Cytomine.connect("192.168.52.120", "00d8474f-7fd8-4c50-bf8e-79973dcf7bc0", "2e088a54-26ab-4f8e-9bd5-d861479ecbfe") SoftwareUserRepository(provider="Github", username="zhang-free", docker_usernam...
38
116
0.813158
""" software模块添加新的 x_开头的算法 software模块添加首新人的github和dockerhub账号 """ from cytomine import Cytomine from cytomine.models import SoftwareUserRepository Cytomine.connect("192.168.52.120", "00d8474f-7fd8-4c50-bf8e-79973dcf7bc0", "2e088a54-26ab-4f8e-9bd5-d861479ecbfe") SoftwareUserRepository(provider="Github", username="zhang...
66
0
0
0
0
0
0
0
0
af83b2e0a124d5c5b3fd0e90bc61ecaa50497d65
317
py
Python
backend/awards/migrations/0002_auto_20200704_1615.py
kush-daga/My-Portfolio
f3cb7f495bd19b07b2c17f8a3db9a47d0079caa9
[ "MIT" ]
null
null
null
backend/awards/migrations/0002_auto_20200704_1615.py
kush-daga/My-Portfolio
f3cb7f495bd19b07b2c17f8a3db9a47d0079caa9
[ "MIT" ]
122
2020-07-06T23:27:36.000Z
2022-03-31T23:05:39.000Z
backend/awards/migrations/0002_auto_20200704_1615.py
kush-daga/My-Portfolio
f3cb7f495bd19b07b2c17f8a3db9a47d0079caa9
[ "MIT" ]
1
2021-05-29T04:04:02.000Z
2021-05-29T04:04:02.000Z
# Generated by Django 3.0.8 on 2020-07-04 16:15
17.611111
47
0.577287
# Generated by Django 3.0.8 on 2020-07-04 16:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('awards', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Awards', new_name='Award', ), ]
0
0
0
211
0
0
0
11
46
2253dfa5971a6c910f1dcb913a0f4e40828f2762
3,369
py
Python
examples/02_decoding/plot_oasis_vbm_space_net.py
SIMEXP/nilearn
4f51aea58f38689ca32c2edd748528d521e6cfb0
[ "BSD-2-Clause" ]
3
2019-11-07T08:50:32.000Z
2020-01-13T22:06:17.000Z
examples/02_decoding/plot_oasis_vbm_space_net.py
SIMEXP/nilearn
4f51aea58f38689ca32c2edd748528d521e6cfb0
[ "BSD-2-Clause" ]
5
2019-05-01T17:05:03.000Z
2019-09-05T22:14:51.000Z
examples/02_decoding/plot_oasis_vbm_space_net.py
SIMEXP/nilearn
4f51aea58f38689ca32c2edd748528d521e6cfb0
[ "BSD-2-Clause" ]
2
2020-06-25T07:35:49.000Z
2021-07-07T12:37:27.000Z
""" Voxel-Based Morphometry on Oasis dataset with Space-Net prior ============================================================= Predicting age from gray-matter concentration maps from OASIS dataset. Note that age is a continuous variable, we use the regressor here, and not the classification object. See also the Spac...
37.433333
75
0.650045
""" Voxel-Based Morphometry on Oasis dataset with Space-Net prior ============================================================= Predicting age from gray-matter concentration maps from OASIS dataset. Note that age is a continuous variable, we use the regressor here, and not the classification object. See also the Spac...
0
0
0
0
0
0
0
0
0
59c4765c13a980aa13ed72bf0ee925e84f88e15e
25,590
py
Python
components/tiops/tiops/ansibleapi/ansibleapi.py
liubo0127/tiup
bf1bc8aea09e192c6dfe2c84d605d3830c6e0df9
[ "Apache-2.0" ]
null
null
null
components/tiops/tiops/ansibleapi/ansibleapi.py
liubo0127/tiup
bf1bc8aea09e192c6dfe2c84d605d3830c6e0df9
[ "Apache-2.0" ]
null
null
null
components/tiops/tiops/ansibleapi/ansibleapi.py
liubo0127/tiup
bf1bc8aea09e192c6dfe2c84d605d3830c6e0df9
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import json try: from __main__ import display except ImportError: from ansible.utils.display import Display display = Display() if __name__ == '__main__': a = "192.168.111.137,127.0.0.1" rbt = ANSRunner(a) rbt.run_model('shell', 'uptime') result = json.dumps(rbt.get_...
42.297521
112
0.519187
# coding: utf-8 import re import os import json import logging from collections import namedtuple from os.path import join, abspath from ansible import constants as C from ansible.playbook.play import Play from ansible.errors import AnsibleError from ansible.utils.path import unfrackpath from ansible.parsing.datalo...
15
0
0
24,451
0
0
0
278
492
8e07996c75e9fbf0374aa93ebac897d672e01255
451
py
Python
example.py
jwilson-hall/Spot-Colour
aa9fb0e3e1bda78466568bd0e175ba9add40569b
[ "MIT" ]
null
null
null
example.py
jwilson-hall/Spot-Colour
aa9fb0e3e1bda78466568bd0e175ba9add40569b
[ "MIT" ]
null
null
null
example.py
jwilson-hall/Spot-Colour
aa9fb0e3e1bda78466568bd0e175ba9add40569b
[ "MIT" ]
null
null
null
import cv2 import os data_path = os.getcwd() dataset_path = data_path+"\\train_data\\" toShow = cv2.imread(dataset_path+"8.jpg") cv2.imshow("File",toShow) cv2.waitKey(0)
23.736842
137
0.798226
import math import random import re import time from turtle import numinput from cv2 import INTER_AREA, INTER_BITS, INTER_CUBIC, INTER_LANCZOS4, INTER_LINEAR, INTER_LINEAR_EXACT, INTER_MAX, imread, imshow, waitKey import numpy as np import cv2 import os from multiprocessing import Process, Manager data_path = os.getcw...
0
0
0
0
0
0
0
102
176
029c38cb73a6bac7f1286f48d0681f0efbf2b5ff
3,853
py
Python
sellshop/order/models.py
TalehIlqar/E-commerce
fca96703412c5f63f2fe00a952154d8ab2e1b3bd
[ "MIT" ]
null
null
null
sellshop/order/models.py
TalehIlqar/E-commerce
fca96703412c5f63f2fe00a952154d8ab2e1b3bd
[ "MIT" ]
null
null
null
sellshop/order/models.py
TalehIlqar/E-commerce
fca96703412c5f63f2fe00a952154d8ab2e1b3bd
[ "MIT" ]
null
null
null
# Create your models here.
37.048077
114
0.680249
from django.db import models # Create your models here. from sellshop.utils.base_models import BaseModel from django_countries.fields import CountryField class Country(BaseModel): country = CountryField( verbose_name="Country", max_length=255, null=False, blank=False) def __str__(self) -> str: ...
0
0
0
3,508
0
0
0
61
250
13173277b886c98fd9886ff112b0f4c83172fcd6
667
py
Python
exercises/week2/visualize_by_plot_exc2.py
Imipenem/MachineLearningIntroCourse
330d511a004c5f312b4370e1999ed0c2aa47ddf7
[ "MIT" ]
null
null
null
exercises/week2/visualize_by_plot_exc2.py
Imipenem/MachineLearningIntroCourse
330d511a004c5f312b4370e1999ed0c2aa47ddf7
[ "MIT" ]
null
null
null
exercises/week2/visualize_by_plot_exc2.py
Imipenem/MachineLearningIntroCourse
330d511a004c5f312b4370e1999ed0c2aa47ddf7
[ "MIT" ]
null
null
null
import os import numpy as np if __name__ == '__main__': # Load Data # The first two columns contains the X values and the third column # contains the label (y). data = np.loadtxt(os.path.join("/home/thelichking/Desktop/ml-coursera-python-assignments/Exercise2/Data", ...
25.653846
109
0.587706
import os import numpy as np from matplotlib import pyplot def plotData(X, y): pos = y == 1 neg = y == 0 pyplot.plot(X[pos, 0], X[pos, 1], 'og') pyplot.plot(X[neg, 0], X[neg, 1], 'ro') pyplot.xlabel("First test") pyplot.ylabel("Second test") pyplot.show() if __name__ == '__main__': ...
0
0
0
0
0
205
0
8
45
602ddd084852c62221aceedf5667dda34a1b13aa
3,141
py
Python
data/external/repositories_2to3/62924/bird-recognition-master/create_submission.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/62924/bird-recognition-master/create_submission.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/62924/bird-recognition-master/create_submission.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import FoldBuilder import training_utils import submission_utils if __name__ == '__main__': mfcc_config = [ dict( numcep = 14, nfilt= 21, lowfreq=500, highfreq=None, cornerfreq=1500. ), ] win...
27.79646
104
0.599172
import pandas as pd import numpy as np import transform import classifier import FoldBuilder import training_utils import submission_utils def build_model(run_name, index_within_run, config, list_of_wavs, fold): training_utils.set_seeds(config['rng_config']['random_seed']) def build_feature...
0
0
0
0
0
1,296
0
-14
119
5373f69829132ea2ae7303a0aef4b10042faaa11
5,624
py
Python
findn/visualiseNetwork.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
findn/visualiseNetwork.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
14
2021-11-26T14:43:25.000Z
2022-03-22T00:39:17.000Z
findn/visualiseNetwork.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
""" visualises networks of related samples using cytoscape.js A component of the findNeighbour4 system for bacterial relatedness monitoring Copyright (C) 2021 David Wyllie david.wyllie@phe.gov.uk repo: https://github.com/davidhwyllie/findNeighbour4 This program is free software: you can redistribute it and/or modify ...
35.371069
104
0.529516
""" visualises networks of related samples using cytoscape.js A component of the findNeighbour4 system for bacterial relatedness monitoring Copyright (C) 2021 David Wyllie david.wyllie@phe.gov.uk repo: https://github.com/davidhwyllie/findNeighbour4 This program is free software: you can redistribute it and/or modify ...
0
0
0
5,101
0
0
0
0
45
8cca34984863d81f4b2817d6fbbc2aa1b7bff529
2,479
py
Python
toaiff.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
toaiff.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
toaiff.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: toaiff from warnings import warnpy3k warnpy3k('the toaiff module has been removed in Python 3.0', stacklevel=2) del warnpy3k import pipe...
27.853933
108
0.56071
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: toaiff from warnings import warnpy3k warnpy3k('the toaiff module has been removed in Python 3.0', stacklevel=2) del warnpy3k import os, ...
0
0
0
11
0
1,331
0
22
69
e2fc01e493d91df0a27d4946fe3c01b5113b7b8d
54,510
py
Python
py9p/py9p.py
svinota/py9p
ece94d0f14ebe1a410802848b2d41286b765fb45
[ "MIT" ]
40
2015-01-23T11:53:51.000Z
2021-10-04T05:27:55.000Z
py9p/py9p.py
dboddie/py9p
ece94d0f14ebe1a410802848b2d41286b765fb45
[ "MIT" ]
3
2015-01-04T01:23:39.000Z
2019-12-03T10:24:28.000Z
py9p/py9p.py
dboddie/py9p
ece94d0f14ebe1a410802848b2d41286b765fb45
[ "MIT" ]
16
2015-08-15T21:39:24.000Z
2022-01-27T10:43:55.000Z
# Copyright (c) 2008-2011 Tim Newsham, Andrey Mirtchovski # Copyright (c) 2011-2012 Peter V. Saveliev # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # withou...
30.883853
84
0.514309
# Copyright (c) 2008-2011 Tim Newsham, Andrey Mirtchovski # Copyright (c) 2011-2012 Peter V. Saveliev # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # withou...
0
136
0
47,038
0
1,128
0
-64
728
43f4aaf3bdb2342654e0ebcae332617d37af93c1
550
py
Python
TreinoBasico2/2funcao.py
jonfisik/JupNotebook
8f33012d368a07fe2e0e8c1fe37558d504079205
[ "MIT" ]
1
2020-09-05T22:25:39.000Z
2020-09-05T22:25:39.000Z
TreinoBasico2/2funcao.py
jonfisik/OlaMundoPython
8f33012d368a07fe2e0e8c1fe37558d504079205
[ "MIT" ]
null
null
null
TreinoBasico2/2funcao.py
jonfisik/OlaMundoPython
8f33012d368a07fe2e0e8c1fe37558d504079205
[ "MIT" ]
null
null
null
# 03/08/2020 - JonatanPaschoal #declarando funes func1() #chamando as funo e seus argumentos entre parnteses # funo e recebe argumentos func2('Jonatan', 'Paschoal') # funo retorna valor cubo(3) # apenas excuta a funo f = cubo(3) # atribui-se o valor da funo a uma varivel print(f) print('-'*18)# ou print(f'Vo...
19.642857
62
0.636364
# 03/08/2020 - JonatanPaschoal #declarando funções def func1(): print('-'*18) print('Eu sou uma função.') print('-'*18) func1() #chamando as função e seus argumentos entre parênteses # função e recebe argumentos def func2(arg1,arg2): print(arg1 + " " + arg2) print('-'*18) func2('Jonatan', 'Pasch...
32
0
0
0
0
116
0
0
66
24b80fd8ab97d59364417c8e28d7fe9c84cd7298
6,352
py
Python
musa/src/messages.py
nbordin/mcz_musa
6a95b52ff2275f7ac7d876eee2b868805df53d12
[ "WTFPL" ]
3
2022-01-24T15:38:14.000Z
2022-03-08T13:57:03.000Z
musa/src/messages.py
amirv/ha-maestro
73771871f2d929a1c79a7d235fee0fc7b3eada33
[ "WTFPL" ]
2
2020-01-29T22:16:02.000Z
2020-09-25T15:38:38.000Z
musa/src/messages.py
nbordin/mcz_musa
6a95b52ff2275f7ac7d876eee2b868805df53d12
[ "WTFPL" ]
null
null
null
import datetime from typing import Dict, Union MAESTRO_INFORMATION = [ MCZInformation(0, "message_type", "message_type"), MCZInformation(1, "power", "power"), MCZInformation(2, "front_fan", "int"), MCZInformation(3, "lower_back_fan", "int"), MCZInformation(4, "top_back_fan", "int"), MCZInform...
35.093923
82
0.631612
import datetime from typing import Dict, Union class MCZInformation: def __init__(self, frame_id: int, name: str, message_type: str): """ Params ------ `frame_id` (`int`): Position in RecuperoInfo frame `name` (`str`) MCZ command name to be sent via ...
0
0
0
428
0
0
0
0
23
6b085657c6ec4ef60ab941e55a89ed4c3fbda138
11,608
py
Python
instakit/meta/parameters.py
majacQ/instakit
6839444387733d6216f83f09f2fd67c403fb3141
[ "MIT" ]
77
2015-01-20T23:00:32.000Z
2021-12-22T17:00:52.000Z
instakit/meta/parameters.py
majacQ/instakit
6839444387733d6216f83f09f2fd67c403fb3141
[ "MIT" ]
3
2015-01-30T15:02:42.000Z
2019-09-15T12:37:04.000Z
instakit/meta/parameters.py
majacQ/instakit
6839444387733d6216f83f09f2fd67c403fb3141
[ "MIT" ]
6
2015-08-11T09:48:15.000Z
2021-10-01T04:13:19.000Z
#!/usr/bin/env python # encoding: utf-8 from __future__ import print_function import argparse import enum import importlib import inspect import types QUALIFIER = '.' def dotpath_join(base, *addenda): """ Join dotpath elements together as one, la os.path.join() """ for addendum in addenda: if not ba...
36.734177
90
0.635941
#!/usr/bin/env python # encoding: utf-8 from __future__ import print_function import argparse import enum import importlib import inspect import types from pprint import pprint class Parameter(object): """ A placeholder object, used for the moment in the inline tests """ pass QUALIFIER = '.' def dotpath_jo...
122
0
0
219
0
4,837
0
4
92
4dfacede365650abc4dd1bc03c0999463414c478
274
py
Python
services/client.py
M4TH1EU/john-the-ia
35db1430350e2144695baeef17a67819b9724497
[ "Unlicense" ]
2
2021-05-05T20:49:55.000Z
2021-05-05T21:03:02.000Z
services/client.py
M4TH1EU/john-the-ia
35db1430350e2144695baeef17a67819b9724497
[ "Unlicense" ]
null
null
null
services/client.py
M4TH1EU/john-the-ia
35db1430350e2144695baeef17a67819b9724497
[ "Unlicense" ]
null
null
null
import clientUtils def play_sound(data): """ Parameters ---------- data: dict Returns ------- """ if 'sound_name' in data: clientUtils.sound(data.get('sound_name')) return "" return "Je ne trouve pas le son demand"
13.7
49
0.536496
import clientUtils def play_sound(data): """ Parameters ---------- data: dict Returns ------- """ if 'sound_name' in data: clientUtils.sound(data.get('sound_name')) return "" return "Je ne trouve pas le son demandé"
2
0
0
0
0
0
0
0
0
3cbdec58c956981d257461d8e9ed89a3ceba3b7f
421
py
Python
src/user.py
mudream4869/tornado-temp
b5cb8c9e9806bbb7720b839a26066f9730fab628
[ "MIT" ]
null
null
null
src/user.py
mudream4869/tornado-temp
b5cb8c9e9806bbb7720b839a26066f9730fab628
[ "MIT" ]
3
2016-11-26T14:32:51.000Z
2016-11-28T12:54:26.000Z
src/user.py
mudream4869/tornado-temp
b5cb8c9e9806bbb7720b839a26066f9730fab628
[ "MIT" ]
null
null
null
null_user = User() null_user.name = "null" null_user.is_null = True null_user.id = 0
19.136364
39
0.615202
import hashlib, binascii class User: def __init__(self): self.name = "" self.is_null = False self.id = -1 self.introduction = "" self.address = "" class UserHandler: def __init__(self): UserHandler.inst = self def getUserByUserId(self, user_id): ret...
0
0
0
263
0
0
0
3
69
ead4b6e29fb2b1b63446144edf4a096b79a7ab7a
756
py
Python
Chapter14/ch14_housePrice_prediction2.py
PacktPublishing/Applied-Computational-Thinking-with-Python
fd9982383c5b473ffa1640998540d602876816e5
[ "MIT" ]
18
2020-11-27T22:41:12.000Z
2021-12-27T08:20:46.000Z
Chapter14/ch14_housePrice_prediction2.py
PacktPublishing/Applied-Computational-Thinking-with-Python
fd9982383c5b473ffa1640998540d602876816e5
[ "MIT" ]
null
null
null
Chapter14/ch14_housePrice_prediction2.py
PacktPublishing/Applied-Computational-Thinking-with-Python
fd9982383c5b473ffa1640998540d602876816e5
[ "MIT" ]
8
2020-11-30T17:51:11.000Z
2021-12-25T05:23:02.000Z
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt housing_data= pd.read_csv("C:\\Users\\sofia.dejesus\\Documents\\02_book\\kc_house_data.csv") #Housing_data.head() #print(housing_data.shape) housing_data.describe(include=[np.number]) housing_data.he...
19.384615
92
0.747354
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt housing_data= pd.read_csv("C:\\Users\\sofia.dejesus\\Documents\\02_book\\kc_house_data.csv") #Housing_data.head() #print(housing_data.shape) housing_data.describe(include=[np.number]) housing_data.he...
0
0
0
0
0
0
0
0
0