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
c00ca93e4ce8e3a7ede6821addf1228a781a212c
2,640
py
Python
examples/rl/Howto 14a - (RL) Train UR5 with SB3 wrapper.py
fhswf/MLPro
e944b69bed9c2d5548677711270e4a4fe868aea9
[ "Apache-2.0" ]
5
2022-01-31T15:52:19.000Z
2022-03-21T18:34:27.000Z
examples/rl/Howto 14a - (RL) Train UR5 with SB3 wrapper.py
fhswf/MLPro
e944b69bed9c2d5548677711270e4a4fe868aea9
[ "Apache-2.0" ]
61
2021-12-17T13:03:59.000Z
2022-03-31T10:24:37.000Z
examples/rl/Howto 14a - (RL) Train UR5 with SB3 wrapper.py
fhswf/MLPro
e944b69bed9c2d5548677711270e4a4fe868aea9
[ "Apache-2.0" ]
null
null
null
## ------------------------------------------------------------------------------------------------- ## -- Project : MLPro - A Synoptic Framework for Standardized Machine Learning Tasks ## -- Package : mlpro ## -- Module : Howto 14 - Train UR5 with SB3 wrapper ## -------------------------------------------------------...
30.697674
100
0.574621
## ------------------------------------------------------------------------------------------------- ## -- Project : MLPro - A Synoptic Framework for Standardized Machine Learning Tasks ## -- Package : mlpro ## -- Module : Howto 14 - Train UR5 with SB3 wrapper ## -------------------------------------------------------...
0
0
0
901
0
0
0
88
111
037adef96f3383a9c4ba5f0de80f157941682596
1,524
py
Python
src/Experiments/Framework/prefetching.py
Anonymous82338590/AdaptiveDynamicArray
47786167d6b6238da8f717ef8126fd68a6939990
[ "MIT" ]
null
null
null
src/Experiments/Framework/prefetching.py
Anonymous82338590/AdaptiveDynamicArray
47786167d6b6238da8f717ef8126fd68a6939990
[ "MIT" ]
null
null
null
src/Experiments/Framework/prefetching.py
Anonymous82338590/AdaptiveDynamicArray
47786167d6b6238da8f717ef8126fd68a6939990
[ "MIT" ]
null
null
null
""" This python file inserts 100K rows into table prefetching in database end2end """ import pymysql import string import random db = pymysql.connect(host='localhost', port=3306, user='root', passwd='greeN7^Tr33', db='end2end', charset='utf8') cursor = db.cursor() sql = "INSERT INTO prefetching...
38.1
117
0.67126
""" This python file inserts 100K rows into table prefetching in database end2end """ import pymysql import string import random db = pymysql.connect(host='localhost', port=3306, user='root', passwd='greeN7^Tr33', db='end2end', charset='utf8') cursor = db.cursor() sql = "INSERT INTO prefetching...
0
0
0
0
0
116
0
0
23
108fab7a463ca55388a0ef85f291eca6f45a88a8
8,939
py
Python
SteamLogin.py
DrBomb/python-steamcommunity
dd4b4c3fa06abdf14a8762e648f04a0cef022e17
[ "MIT" ]
14
2016-08-08T16:40:36.000Z
2022-03-31T07:10:33.000Z
SteamLogin.py
DrBomb/python-steamcommunity
dd4b4c3fa06abdf14a8762e648f04a0cef022e17
[ "MIT" ]
17
2016-08-02T23:25:47.000Z
2016-11-07T22:00:16.000Z
SteamLogin.py
DrBomb/python-steamcommunity
dd4b4c3fa06abdf14a8762e648f04a0cef022e17
[ "MIT" ]
7
2016-08-13T22:19:54.000Z
2021-03-15T11:44:25.000Z
USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"
45.841026
202
0.616624
import requests, urllib, base64, time, re, pdb from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 from SteamMobileAuth import getDeviceID from bs4 import BeautifulSoup USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36" class...
0
0
0
8,421
0
0
0
77
314
3416e9e2b78a7a2124c1fcd4243780a57c753109
4,646
py
Python
simhash_app/simhash_save_mixin.py
rwgeaston/django-simhash
26477b95f89194342918baebab85b7d263f7a79b
[ "MIT" ]
1
2018-07-31T22:12:14.000Z
2018-07-31T22:12:14.000Z
simhash_app/simhash_save_mixin.py
rwgeaston/django-simhash
26477b95f89194342918baebab85b7d263f7a79b
[ "MIT" ]
null
null
null
simhash_app/simhash_save_mixin.py
rwgeaston/django-simhash
26477b95f89194342918baebab85b7d263f7a79b
[ "MIT" ]
null
null
null
# Although this mixin is extremely interconnected with the SimHash model, # it was just too much code to dump in the models file
33.666667
102
0.645717
from django.db import models from django.db.transaction import atomic from simhash import hamming_distance from .calculate_simhash import hash_length from .calculate_simhash import highest_value def rotate_bits(num): response = (num >> 1) if num > 0 and num % 2 == 1: response -= highest_value el...
0
318
0
3,772
0
182
0
85
157
9f8cff86ec72af783eecce548992867813cd2054
636
py
Python
rewowr/simple_logger/constants/synchronised_standard_output_const.py
arturOnRails/ReWoWr
45c2cef2e61ca5900082c11c325dd2be2ecca6fb
[ "MIT" ]
null
null
null
rewowr/simple_logger/constants/synchronised_standard_output_const.py
arturOnRails/ReWoWr
45c2cef2e61ca5900082c11c325dd2be2ecca6fb
[ "MIT" ]
null
null
null
rewowr/simple_logger/constants/synchronised_standard_output_const.py
arturOnRails/ReWoWr
45c2cef2e61ca5900082c11c325dd2be2ecca6fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" import re from typing import Pattern, Final _NOT_SPACE: Final[Pattern[str]] = re.compile(r'[^\s]') _TIME_FORMAT: Final[Pattern[str]] = re.compile(r'(.*\d+:\d+:\d+)\..*$') _NEW_LINE: Final[Pattern[str]] = re.compile(r'\n')
18.171429
71
0.672956
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" import re from typing import Pattern, Final, final from dataclasses import dataclass _NOT_SPACE: Final[Pattern[str]] = re.compile(r'[^\s]') def get_not_space_pattern() -> Pattern[str]: return _NOT_SPACE _TIME_FORMAT: Final[Pattern[str]] = re.compile(...
0
74
0
0
0
137
0
19
114
480d47765f1b75344a3d41a08a63aa3993791726
1,819
py
Python
chapter-12/hard.py
stamakro/statistical-rethinking-python
2de598a384677a5c931f10c193becdfa5c796031
[ "MIT" ]
3
2020-10-02T09:38:42.000Z
2021-05-22T21:42:00.000Z
chapter-12/hard.py
stamakro/statistical-rethinking-python
2de598a384677a5c931f10c193becdfa5c796031
[ "MIT" ]
null
null
null
chapter-12/hard.py
stamakro/statistical-rethinking-python
2de598a384677a5c931f10c193becdfa5c796031
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.preprocessing import StandardScaler import pymc3 as pm # 12H1 data = pd.read_csv('Hurricanes.csv', delimiter=';') deaths = np.array(data['deaths']) fem = np.array(data['femininity']) ss = StandardScaler() fem = ss.fit_transform(fem.r...
20.908046
110
0.653656
import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.preprocessing import StandardScaler import pymc3 as pm # 12H1 data = pd.read_csv('Hurricanes.csv', delimiter=';') deaths = np.array(data['deaths']) fem = np.array(data['femininity']) ss = StandardScaler() fem = ss.fit_transform(fem.r...
0
0
0
0
0
0
0
0
0
2623eb02030445322edd043016d3a0788b839366
4,740
py
Python
test/testcases/test_data_enrichment.py
stephanmiehe/kafka-connect-splunk
37d19beb0d98aaeccd002e07d566196c9ab6820d
[ "Apache-2.0" ]
76
2018-04-24T07:26:23.000Z
2022-01-26T12:04:50.000Z
test/testcases/test_data_enrichment.py
stephanmiehe/kafka-connect-splunk
37d19beb0d98aaeccd002e07d566196c9ab6820d
[ "Apache-2.0" ]
123
2018-04-27T13:58:06.000Z
2022-03-02T16:11:19.000Z
test/testcases/test_data_enrichment.py
stephanmiehe/kafka-connect-splunk
37d19beb0d98aaeccd002e07d566196c9ab6820d
[ "Apache-2.0" ]
66
2018-04-27T13:43:57.000Z
2022-03-15T07:00:44.000Z
from lib.helper import get_test_folder logging.config.fileConfig(os.path.join(get_test_folder(), "logging.conf")) logger = logging.getLogger("test_case")
67.714286
261
0.535232
from lib.commonkafka import * from lib.commonsplunk import check_events_from_splunk from lib.helper import get_test_folder import pytest import re logging.config.fileConfig(os.path.join(get_test_folder(), "logging.conf")) logger = logging.getLogger("test_case") class TestDataEnrichment: @pytest.mark.parametrize...
1,726
3,532
0
4
0
0
0
20
165
d36c5a68e2ea7701dd9533031acedf4bf739650a
105
py
Python
main.py
ronaldshaooo/OpenDataJudicial
ee55b234276511b824a04d836607741f9189ebd8
[ "MIT" ]
null
null
null
main.py
ronaldshaooo/OpenDataJudicial
ee55b234276511b824a04d836607741f9189ebd8
[ "MIT" ]
null
null
null
main.py
ronaldshaooo/OpenDataJudicial
ee55b234276511b824a04d836607741f9189ebd8
[ "MIT" ]
null
null
null
import update_judicial_data update_judicial_data.refresh() update_judicial_data.copy_fincial_judgement()
26.25
45
0.904762
import update_judicial_data update_judicial_data.refresh() update_judicial_data.copy_fincial_judgement()
0
0
0
0
0
0
0
0
0
81967fa3c1adb94e6de18967fe14925acf9122b5
515
py
Python
py3/setup.py
tmgardner/halite-go-engine
390ed039567e9706dd4db7cbe72e6df0d412596f
[ "MIT" ]
2
2016-11-28T21:59:15.000Z
2016-12-01T16:31:23.000Z
py3/setup.py
tmgardner/halite-go-engine
390ed039567e9706dd4db7cbe72e6df0d412596f
[ "MIT" ]
2
2016-11-24T00:04:02.000Z
2016-11-25T22:53:50.000Z
py3/setup.py
tmgardner/halite-go-engine
390ed039567e9706dd4db7cbe72e6df0d412596f
[ "MIT" ]
2
2016-11-23T23:39:48.000Z
2016-11-25T14:36:35.000Z
#!/usr/bin/env python """ Halite engine warpped in SWIG """ from distutils.core import setup, Extension halite_module = Extension( '_halite', sources=[ 'halite_wrap.cxx', 'wrapped/core/Halite.cpp', 'wrapped/halite-core.cpp', 'wrapped/networking/Networking.cpp', ], extra_compile_args=[...
19.807692
43
0.642718
#!/usr/bin/env python """ Halite engine warpped in SWIG """ from distutils.core import setup, Extension halite_module = Extension( '_halite', sources=[ 'halite_wrap.cxx', 'wrapped/core/Halite.cpp', 'wrapped/halite-core.cpp', 'wrapped/networking/Networking.cpp', ], extra_compile_args=[...
0
0
0
0
0
0
0
0
0
0aa4a2dc850c0fa887b9603bbbbaf3c43df59847
12,872
py
Python
ch.py
jkartchner/CH_Scrape
50a5ce3982321443bcaba6a253641f1e0c3d62ae
[ "MIT" ]
null
null
null
ch.py
jkartchner/CH_Scrape
50a5ce3982321443bcaba6a253641f1e0c3d62ae
[ "MIT" ]
null
null
null
ch.py
jkartchner/CH_Scrape
50a5ce3982321443bcaba6a253641f1e0c3d62ae
[ "MIT" ]
null
null
null
#! python 3 # ch.py - scrapes denvercourt/themis for criminal # history for a given defendant w/DOB # TODO: show open cases (nxt court date set in noCos tab); sentence; FTAs import requests, time, bs4, subprocess from tqdm import tqdm bool_Emergency = False ###### ENTRY POINT TO FUNCTIONING CODE ####...
56.955752
332
0.635022
#! python 3 # ch.py - scrapes denvercourt/themis for criminal # history for a given defendant w/DOB # TODO: show open cases (nxt court date set in noCos tab); sentence; FTAs import requests, sys, time, datetime, bs4, subprocess from tqdm import tqdm def now_milliseconds(): return int(time.time() * 1000) ...
0
0
0
0
0
35
0
15
23
ecb5d376f7f652647108c220b13e8791ea5b48d6
15,177
py
Python
src/GridCal/Engine/Simulations/ContinuationPowerFlow/voltage_collapse_driver.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
src/GridCal/Engine/Simulations/ContinuationPowerFlow/voltage_collapse_driver.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
src/GridCal/Engine/Simulations/ContinuationPowerFlow/voltage_collapse_driver.py
vineetjnair9/GridCal
5b63cbae45cbe176b015e5e99164a593f450fe71
[ "BSD-3-Clause" ]
null
null
null
# This file is part of GridCal. # # GridCal is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # GridCal is distributed in the hope that...
40.580214
129
0.56243
# This file is part of GridCal. # # GridCal is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # GridCal is distributed in the hope that...
0
0
0
13,382
0
0
0
485
381
bc06d75b210f645c2e5d7a1ffe518b08391d28aa
3,620
py
Python
datasets/davis.py
PINTO0309/multi-mono-sf
563d65f34624c9281571e8b8b6f1f25599a94a34
[ "Apache-2.0" ]
69
2021-05-06T01:31:54.000Z
2022-03-30T02:52:53.000Z
datasets/davis.py
PINTO0309/multi-mono-sf
563d65f34624c9281571e8b8b6f1f25599a94a34
[ "Apache-2.0" ]
7
2021-05-11T06:39:44.000Z
2022-02-28T10:13:53.000Z
datasets/davis.py
PINTO0309/multi-mono-sf
563d65f34624c9281571e8b8b6f1f25599a94a34
[ "Apache-2.0" ]
11
2021-05-09T13:34:46.000Z
2021-11-24T09:33:49.000Z
from __future__ import absolute_import, division, print_function import torch.utils.data as data
30.940171
156
0.560497
from __future__ import absolute_import, division, print_function import os.path import torch import torch.utils.data as data import glob import numpy as np from torchvision import transforms as vision_transforms from .common import read_image_as_byte, read_calib_into_dict, get_date_from_width class Davis_base(data....
0
0
0
3,253
0
0
0
65
203
a708068967df0737f8e2f72ae8741f2d85cc8b3a
2,891
py
Python
__init__.py
PuddlemereUnited/skill-user-manual
30147a7c24b6c431535a3ad66e331f7a99508ca3
[ "Apache-2.0" ]
null
null
null
__init__.py
PuddlemereUnited/skill-user-manual
30147a7c24b6c431535a3ad66e331f7a99508ca3
[ "Apache-2.0" ]
null
null
null
__init__.py
PuddlemereUnited/skill-user-manual
30147a7c24b6c431535a3ad66e331f7a99508ca3
[ "Apache-2.0" ]
null
null
null
# TODO: Add an appropriate license to your skill before publishing. See # the LICENSE file for more information. # Below is the list of outside modules you'll be using in your skill. # They might be built-in to Python, from mycroft-core or from external # libraries. If you use an external library, be sure to include...
39.60274
121
0.717745
# TODO: Add an appropriate license to your skill before publishing. See # the LICENSE file for more information. # Below is the list of outside modules you'll be using in your skill. # They might be built-in to Python, from mycroft-core or from external # libraries. If you use an external library, be sure to include...
0
1,254
0
684
0
27
0
93
178
671f2f0fa33949005ebc8afbdca48d966744d92a
4,178
gyp
Python
chrome/chrome_syzygy.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
chrome/chrome_syzygy.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/chrome_syzygy.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2011 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. { 'variables': { 'dest_dir': '<(PRODUCT_DIR)/syzygy', }, 'conditions': [ ['syzyasan==1', { 'variables': { 'syzygy_exe_dir': '<...
33.693548
90
0.417425
# Copyright (c) 2011 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. { 'variables': { 'dest_dir': '<(PRODUCT_DIR)/syzygy', }, 'conditions': [ ['syzyasan==1', { 'variables': { 'syzygy_exe_dir': '<...
0
0
0
0
0
0
0
0
0
5dd5ff94f67f85811a8af6511ca545b57a59a370
3,745
py
Python
roccclient/models/page_of_organizations_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
roccclient/models/page_of_organizations_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
14
2020-12-06T23:54:23.000Z
2021-02-03T18:35:02.000Z
roccclient/models/page_of_organizations_all_of.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.4 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
30.201613
104
0.608812
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.4 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
0
677
0
2,617
0
0
0
-2
128
bd5413945ba7a3ab95cbd7d370d45e5a781636bd
1,968
py
Python
src/ccs.py
tchayintr/thwcc-attn
4ee38365eb338e82bf455f46ff5fe7c59fb7a975
[ "MIT" ]
4
2021-11-23T14:52:38.000Z
2022-02-19T08:29:44.000Z
src/ccs.py
tchayintr/thwcc-attn
4ee38365eb338e82bf455f46ff5fe7c59fb7a975
[ "MIT" ]
null
null
null
src/ccs.py
tchayintr/thwcc-attn
4ee38365eb338e82bf455f46ff5fe7c59fb7a975
[ "MIT" ]
1
2022-02-17T04:17:29.000Z
2022-02-17T04:17:29.000Z
if __name__ == '__main__': CHAR_CLUSTERS = ''' cc cct cct cct(?=[--]|$) cc ccc ccc ctc ct? ct? c[]t(?=[--]|$) ct?? ct c[]tc[]? c[] c[-]t c ct[]? cc cc ...
23.428571
79
0.457317
import re import constants class CC(object): def __init__(self, clusters): self.ccs = clusters.replace(constants.CONSONANT_SYMBOL, constants.CONSONANTS).replace( constants.TONE_SYMBOL, cons...
303
0
0
1,216
0
0
0
-17
91
687713239a94ca22f0a563edc671ff2769b96ac3
14,456
py
Python
experiments/cLHS_10_000/exp_std_plots/range_points.py
EDSEL-skoltech/maxvol_sampling
6fe81f52115b8a8890210d7b549d2abef2d9800a
[ "MIT" ]
2
2021-03-12T16:13:49.000Z
2021-09-20T18:08:17.000Z
experiments/cLHS_10_000/exp_std_plots/range_points.py
EDSEL-skoltech/maxvol_sampling
6fe81f52115b8a8890210d7b549d2abef2d9800a
[ "MIT" ]
1
2022-02-02T15:57:16.000Z
2022-02-02T15:57:16.000Z
experiments/cLHS_10_000/exp_std_plots/range_points.py
EDSEL-skoltech/maxvol_sampling
6fe81f52115b8a8890210d7b549d2abef2d9800a
[ "MIT" ]
1
2021-09-16T15:34:22.000Z
2021-09-16T15:34:22.000Z
import matplotlib.cm as cm import pandas as pd import numpy as np from osgeo import gdal import argparse import os #cLHS import csv from scipy.stats import ks_2samp from scipy.stats import wasserstein_distance import argparse import numpy as np import osgeo.gdal as gdal #by Anna #from data_preparation import data_...
34.666667
152
0.599267
from scipy.spatial import voronoi_plot_2d, Voronoi import matplotlib.cm as cm import matplotlib.pyplot as plt from scipy.spatial import ConvexHull, convex_hull_plot_2d from numpy import genfromtxt import pandas as pd import numpy as np from osgeo import gdal import argparse import os import xarray as xr #cLHS import c...
30
0
0
9,437
0
0
0
247
288
fdea06d2a42c95131be771e77ee4a4b2f78de9f1
8,812
py
Python
data/sdk/prepare_fog_data.py
qiank10/MVDNet
d83663df068183d1e606100adb0fc78c35f1141c
[ "Apache-2.0" ]
51
2021-03-05T08:20:27.000Z
2022-03-30T03:16:19.000Z
data/sdk/prepare_fog_data.py
qiank10/MVDNet
d83663df068183d1e606100adb0fc78c35f1141c
[ "Apache-2.0" ]
10
2021-04-04T09:07:44.000Z
2021-12-14T09:16:11.000Z
data/sdk/prepare_fog_data.py
qiank10/MVDNet
d83663df068183d1e606100adb0fc78c35f1141c
[ "Apache-2.0" ]
4
2021-03-08T01:49:33.000Z
2021-12-03T12:46:01.000Z
# Tool to prepare foggy lidar test set from Oxford RobotCar dataset. # Adapted from https://github.com/princeton-computational-imaging/SeeingThroughFog/blob/master/tools/DatasetFoggification/lidar_foggification.py # Licensed under the Apache License import argparse, os LIDAR_FOG_PATH = None LIDAR_HISTORY_FOG_PATH = N...
46.136126
159
0.674081
# Tool to prepare foggy lidar test set from Oxford RobotCar dataset. # Adapted from https://github.com/princeton-computational-imaging/SeeingThroughFog/blob/master/tools/DatasetFoggification/lidar_foggification.py # Licensed under the Apache License import argparse, tqdm, os, errno import numpy as np from transform im...
0
0
0
2,147
0
5,139
0
30
113
0ec82c58ade3cf2893c3edc1eeeba9109a75ff1a
21,149
py
Python
lenstronomy/LensModel/lens_model.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
lenstronomy/LensModel/lens_model.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
lenstronomy/LensModel/lens_model.py
heather999/lenstronomy
8102fe026c1f3ba6e81d8a1f59cceb90e68430b4
[ "MIT" ]
null
null
null
__author__ = 'sibirrer' __all__ = ['LensModel']
52.34901
121
0.660504
__author__ = 'sibirrer' from lenstronomy.LensModel.single_plane import SinglePlane from lenstronomy.LensModel.MultiPlane.multi_plane import MultiPlane from lenstronomy.Cosmo.lens_cosmo import LensCosmo from lenstronomy.Util import constants as const __all__ = ['LensModel'] class LensModel(object): """ class ...
0
0
0
20,850
0
0
0
138
111
2b77ec440dd4b502d4eed3652621d968e4bc1c62
10,843
py
Python
tools/SDKTool/bin/ActionSampler/pymodules/screen/MinicapStream.py
BernhardRiemann/GameAISDK
da24c600e1cdc890739ee274032a17fb9ce75c5c
[ "Apache-2.0" ]
3
2021-03-15T13:53:37.000Z
2021-11-17T10:34:29.000Z
tools/SDKTool/bin/ActionSampler/pymodules/screen/MinicapStream.py
VenmoTools/GameAISDK
208320760440400d369aa8ab2f2439494195e6bd
[ "Apache-2.0" ]
null
null
null
tools/SDKTool/bin/ActionSampler/pymodules/screen/MinicapStream.py
VenmoTools/GameAISDK
208320760440400d369aa8ab2f2439494195e6bd
[ "Apache-2.0" ]
1
2021-02-19T12:04:05.000Z
2021-02-19T12:04:05.000Z
# -*- coding: utf-8 -*- try: import Queue except ImportError: import logging SCREEN_ORI_LANDSCAPE = 0 SCREEN_ORI_PORTRAIT = 1 PULL_LOOP_RATE = 100 PULL_LOOP_SLEEP_TIME = 1./PULL_LOOP_RATE DECODE_LOOP_RATE = 100 DECODE_LOOP_SLEEP_TIME = 1./DECODE_LOOP_RATE LOG = logging.getLogger('minicap')
37.649306
119
0.491377
# -*- coding: utf-8 -*- import os try: import Queue except ImportError: import queue as Queue import re import socket import struct import subprocess import threading import time import traceback import logging import cv2 import numpy as np from .MinicapInstall import * SCREEN_ORI_LANDSCAPE = 0 SCREEN_ORI_PORTRA...
0
0
0
10,007
0
296
0
-70
314
f63dfb77b11c9d474d51a5305232c08192b2b14f
6,632
py
Python
JPS_SHIP/python/caresjpsship/shipRegionQuery.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
21
2021-03-08T01:58:25.000Z
2022-03-09T15:46:16.000Z
JPS_SHIP/python/caresjpsship/shipRegionQuery.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
63
2021-05-04T15:05:30.000Z
2022-03-23T14:32:29.000Z
JPS_SHIP/python/caresjpsship/shipRegionQuery.py
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
011aee78c016b76762eaf511c78fabe3f98189f4
[ "MIT" ]
15
2021-03-08T07:52:03.000Z
2022-03-29T04:46:20.000Z
''' module that retreives and pack adms input info ''' import sys import json if __name__ == "__main__": q = shipRegionQuery(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],sys.argv[5],sys.argv[6],sys.argv[7]) res = q.queryRange() pythonObj = {} pythonObj["shipIR...
32.669951
153
0.597708
''' module that retreives and pack adms input info ''' import rdflib import requests import math import sys import os import json import rdflib.plugins.sparql.results.jsonresults as jsresult from collections import namedtuple from pyproj import Proj, transform class shipRegionQuery(object): def __init__(s...
0
0
0
5,555
0
420
0
29
264
4543b1ee2c9c9d2d98ee0ab8dc8e2a724151f3ee
3,426
py
Python
pikoToCSV.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
null
null
null
pikoToCSV.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
1
2016-07-18T08:24:50.000Z
2016-12-17T09:19:07.000Z
pikoToCSV.py
lucasHSA/piko
a0bca6bfbdf1ecf95fd8dcca563350c676d2edf7
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2015 Lucas Koegel # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modi...
38.931818
102
0.65324
# The MIT License (MIT) # # Copyright (c) 2015 Lucas Koegel # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
3
0
0
0
0
0
0
0
0
7fac254ac20424c134d7215317126385f9c5319c
10,588
gyp
Python
breakpad/breakpad.gyp
zachlatta/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
1
2021-09-24T22:49:10.000Z
2021-09-24T22:49:10.000Z
breakpad/breakpad.gyp
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
breakpad/breakpad.gyp
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009 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. { 'includes': [ '../build/common.gypi', ], 'conditions': [ [ 'OS=="mac"', { 'target_defaults': { 'include_dirs': [ ...
30.338109
86
0.463449
# Copyright (c) 2009 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. { 'includes': [ '../build/common.gypi', ], 'conditions': [ [ 'OS=="mac"', { 'target_defaults': { 'include_dirs': [ ...
0
0
0
0
0
0
0
0
0
34fbd0422135a86f28d0b2a5ef0cfa354265e2d3
3,161
py
Python
create_db.py
builderLabs/instrumentgarage
81fab1b53ebe0ba388dc7a4a5ade597cbe628afe
[ "MIT" ]
null
null
null
create_db.py
builderLabs/instrumentgarage
81fab1b53ebe0ba388dc7a4a5ade597cbe628afe
[ "MIT" ]
2
2021-02-08T20:13:44.000Z
2021-06-01T21:41:38.000Z
create_db.py
builderLabs/instrumentgarage
81fab1b53ebe0ba388dc7a4a5ade597cbe628afe
[ "MIT" ]
null
null
null
#!/usr/bin/env/python from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy_utils import database_exists, create_database Base = declarative_base() engine = create_engine('postgresql://catuser:dbpass@localhost:5432/instrumentgarage') if not ...
29.542056
86
0.572604
#!/usr/bin/env/python import os import sys import psycopg2 from sqlalchemy import Column, ForeignKey, Integer, String, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, validates from sqlalchemy_utils import database_exists, create_database Ba...
0
1,052
0
1,439
0
0
0
37
215
8c32c4cbf2932a5ea5d345190a060330fecc52b6
1,424
py
Python
handlers/proyectos/nuevo.py
Baltasarq/pract-esei
9b1abd6a445a8d774c9805836ab93ad483f8bfdc
[ "MIT" ]
null
null
null
handlers/proyectos/nuevo.py
Baltasarq/pract-esei
9b1abd6a445a8d774c9805836ab93ad483f8bfdc
[ "MIT" ]
null
null
null
handlers/proyectos/nuevo.py
Baltasarq/pract-esei
9b1abd6a445a8d774c9805836ab93ad483f8bfdc
[ "MIT" ]
null
null
null
# coding: utf-8 # Nuevo proyecto import webapp2 app = webapp2.WSGIApplication([ ('/proyectos/nuevo', NuevoProyectoHandler) ], debug=True)
28.48
83
0.581461
# coding: utf-8 # Nuevo proyecto import webapp2 import time from webapp2_extras import jinja2 from google.appengine.ext import ndb from model.proyecto import Proyecto class NuevoProyectoHandler(webapp2.RequestHandler): def get(self): valores_plantilla = { "clave_asignatura": self.request.G...
0
0
0
1,133
0
0
0
31
113
d32f1b915d421eda68bf3496119bdce7db32dbc5
509
py
Python
stock/urls.py
Praneeth-rdy/Innovation
06fd3a0ae8e48c2bad955f27a197ed17afa5512c
[ "MIT" ]
null
null
null
stock/urls.py
Praneeth-rdy/Innovation
06fd3a0ae8e48c2bad955f27a197ed17afa5512c
[ "MIT" ]
null
null
null
stock/urls.py
Praneeth-rdy/Innovation
06fd3a0ae8e48c2bad955f27a197ed17afa5512c
[ "MIT" ]
null
null
null
# Django Imports from django.urls import path # Standard Package Imports # Project Imports from . import views # Third Party Imports app_name = 'stock' urlpatterns = [ # path('', views.home, name='home'), path('', views.risk_return, name='risk-return'), path('portfolio/contact-form/', views.contact_f...
23.136364
77
0.662083
# Django Imports from django.urls import path, include # Standard Package Imports # Project Imports from . import views # Third Party Imports app_name = 'stock' urlpatterns = [ # path('', views.home, name='home'), path('', views.risk_return, name='risk-return'), path('portfolio/contact-form/', views....
0
0
0
0
0
0
0
9
0
92cae05a37eef002262c0cb01493af83115bf080
8,960
py
Python
test/stress/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
null
null
null
test/stress/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
null
null
null
test/stress/test.py
paulyc/IncludeOS
5c82bad4a22838bc2219fbadef57d94f006b4760
[ "Apache-2.0" ]
1
2021-06-16T22:48:53.000Z
2021-06-16T22:48:53.000Z
#! /usr/bin/env python import sys import socket import time import subprocess import subprocess32 import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src) from vmr...
32.114695
126
0.712165
#! /usr/bin/env python import sys import socket import time import subprocess import subprocess32 import os includeos_src = os.environ.get('INCLUDEOS_SRC', os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src) from vmr...
0
0
0
0
0
6,178
0
0
357
2f28f649f77cbd5c0126f3774eef97522633a488
2,110
py
Python
run.py
kuula-suchus/Grapy
630b58ad7804ce1fa7bc5c9c55999e3e3d58529d
[ "MIT" ]
null
null
null
run.py
kuula-suchus/Grapy
630b58ad7804ce1fa7bc5c9c55999e3e3d58529d
[ "MIT" ]
null
null
null
run.py
kuula-suchus/Grapy
630b58ad7804ce1fa7bc5c9c55999e3e3d58529d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import Core if __name__ == "__main__": # Set xy grid y0 = np.linspace(-0.5, 0.5, 30) x0 = np.linspace(-0.5, 0.5, 30) grid = np.meshgrid(x0, y0, indexing='ij') grid_array = np.stack(grid, axis=-1) Domain = Core.RectangularDomain(grid_arr...
25.421687
95
0.553555
import numpy as np import matplotlib.pyplot as plt import Graphic import Core class Calculator_legacy: def __init__(self, domain, equation, dt, u0, dtype=None): # iterator self.domain = domain self.dt = dt u0 = domain.to_points(u0) self.PDE = Core.euler(domain, equation,...
0
0
0
957
0
156
0
-7
126
5e611abbba142d234b552db1e9df1e6e0c79c01b
1,422
py
Python
problems/chapter14/Ysi/arc005_3.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
1
2021-07-07T15:46:58.000Z
2021-07-07T15:46:58.000Z
problems/chapter14/Ysi/arc005_3.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
5
2021-06-05T14:16:41.000Z
2021-07-10T07:08:28.000Z
problems/chapter14/Ysi/arc005_3.py
tokuma09/algorithm_problems
58534620df73b230afbeb12de126174362625a78
[ "CC0-1.0" ]
null
null
null
if __name__=='__main__': main()
30.255319
81
0.400844
def main(): H, W = map(int, input().split()) C = [] for i in range(H): row = list(input()) C.append(row) for i in range(H): for j in range(W): if C[i][j] == "s": sx = i sy = j if C[i][j] == "g": gx = i ...
0
0
0
0
0
1,348
0
0
22
995633d052ff66d8035336436505bc83668e65d6
3,466
py
Python
code/utils.py
geangohn/Graph_recsys
296041737ce978ffebeef7d67c771b7d40d5efd4
[ "Apache-2.0" ]
2
2020-03-04T16:29:23.000Z
2020-10-28T09:46:20.000Z
code/utils.py
geangohn/Graph_recsys
296041737ce978ffebeef7d67c771b7d40d5efd4
[ "Apache-2.0" ]
null
null
null
code/utils.py
geangohn/Graph_recsys
296041737ce978ffebeef7d67c771b7d40d5efd4
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import scipy.sparse as sparse from implicit.nearest_neighbours import bm25_weight, tfidf_weight, normalize def make_matrix(df, count=False): """ Args: plu_column: string. Name of column which contains PLU card_column: string. Name of column which contain...
32.092593
110
0.599827
import pandas as pd import numpy as np import scipy.sparse as sparse from implicit.nearest_neighbours import bm25_weight, tfidf_weight, normalize def make_matrix(df, count=False): """ Args: plu_column: string. Name of column which contains PLU card_column: string. Name of column which contain...
0
0
0
0
0
71
0
0
23
34ec0d74e1250ba23b3d21e4fe0accb28ac7e313
2,721
py
Python
pinax/stripe/actions/invoiceitems.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
null
null
null
pinax/stripe/actions/invoiceitems.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
null
null
null
pinax/stripe/actions/invoiceitems.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
1
2020-03-23T10:21:07.000Z
2020-03-23T10:21:07.000Z
import stripe from django.utils.encoding import smart_str from ..models import InvoiceItem def create(customer, amount, description, currency="usd", discountable=False, invoice=None, metadata=None, subscription=None): """ Creates a Stripe invoice item Args: customer: the customer to create the inv...
35.337662
126
0.672547
import stripe from django.utils.encoding import smart_str from ..models import InvoiceItem def create(customer, amount, description, currency="usd", discountable=False, invoice=None, metadata=None, subscription=None): """ Creates a Stripe invoice item Args: customer: the customer to create the inv...
0
0
0
0
0
0
0
0
0
1b45d3d6c3e81e089e85fc867d04f125f3bfba0b
1,685
py
Python
mwarp1d/ui/figures/manual_figure.py
0todd0000/mwarp1d
7b40a47e6c112a8da5a1b67aff890fc77fe83d71
[ "MIT" ]
null
null
null
mwarp1d/ui/figures/manual_figure.py
0todd0000/mwarp1d
7b40a47e6c112a8da5a1b67aff890fc77fe83d71
[ "MIT" ]
6
2019-11-25T08:15:05.000Z
2020-02-07T13:05:59.000Z
mwarp1d/ui/figures/manual_figure.py
0todd0000/mwarp1d
7b40a47e6c112a8da5a1b67aff890fc77fe83d71
[ "MIT" ]
2
2019-11-28T02:58:14.000Z
2019-12-18T11:45:33.000Z
from . artists import TemplateSourcePlotManual
25.149254
89
0.693769
from PyQt5 import QtWidgets, QtCore from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure import numpy as np from . artists import TemplateSourcePlotManual class _Figure(FigureCanvas): def __init__(self, parent=None): self.figure = Figure(dpi=100) ...
0
0
0
1,406
0
0
0
85
135
60bfcc3eacefb477ac40fad83d9817037aa07c17
517
py
Python
rdmo/views/migrations/0020_manager.py
ItsNotYou/rdmo
eba2056b376107e817a4080fc12245095a907429
[ "Apache-2.0" ]
77
2016-08-09T11:40:20.000Z
2022-03-06T11:03:26.000Z
rdmo/views/migrations/0020_manager.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
377
2016-07-01T13:59:36.000Z
2022-03-30T13:53:19.000Z
rdmo/views/migrations/0020_manager.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
47
2016-06-23T11:32:19.000Z
2022-03-01T11:34:37.000Z
# Generated by Django 2.2.2 on 2019-07-01 16:00
22.478261
64
0.584139
# Generated by Django 2.2.2 on 2019-07-01 16:00 from django.db import migrations import django.db.models.manager import rdmo.views.managers class Migration(migrations.Migration): dependencies = [ ('views', '0019_view_groups'), ] operations = [ migrations.AlterModelManagers( ...
0
0
0
352
0
0
0
26
90
e6e2a46014e874507a5103f1ef3f803c80a4156a
705
py
Python
emeki/main.py
chbauman/chris_util
c33fbf6dc39e4e69143831a4d0f9c6d3b3182836
[ "MIT" ]
null
null
null
emeki/main.py
chbauman/chris_util
c33fbf6dc39e4e69143831a4d0f9c6d3b3182836
[ "MIT" ]
null
null
null
emeki/main.py
chbauman/chris_util
c33fbf6dc39e4e69143831a4d0f9c6d3b3182836
[ "MIT" ]
null
null
null
import argparse import sys from emeki.project_setup import setup_project_UI def emeki_main(): """The main function. It may be called directly from the command line when typing `emeki`.""" print("Hoi! This is my personal python library.") # Define argument parser parser = argparse.ArgumentP...
20.735294
85
0.675177
import argparse import sys from emeki.project_setup import setup_project_UI def emeki_main(): """The main function. It may be called directly from the command line when typing `emeki`.""" print("Hoi! This is my personal python library.") # Define argument parser parser = argparse.ArgumentP...
0
0
0
0
0
0
0
0
0
3b7bceb1e738ab4b98c9ed03c3d5320fdb0c27a8
11,533
py
Python
tradehelper.py
andreiec/poe-trade-helper-2
2dd2bdfee9b76cc23902632f326ebcf17a6681ec
[ "MIT" ]
null
null
null
tradehelper.py
andreiec/poe-trade-helper-2
2dd2bdfee9b76cc23902632f326ebcf17a6681ec
[ "MIT" ]
1
2021-11-09T10:41:16.000Z
2021-11-09T10:41:16.000Z
tradehelper.py
andreiec/poe-trade-helper-2
2dd2bdfee9b76cc23902632f326ebcf17a6681ec
[ "MIT" ]
null
null
null
from thstatuses import STATUS from PyQt5.QtWidgets import QApplication from pynput.keyboard import Controller from multiprocessing.pool import ThreadPool import sys # Define a trade class which represents one individual trade # Setup main window and links all functions # Start Button clicked # Stop Button ...
34.121302
174
0.633487
from thstatuses import STATUS, getTextFromStatus from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QPixmap from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import Timeou...
0
0
0
1,821
0
7,970
0
184
444
61618b0a3f01462247caca8c84c8c8136b2f31e1
3,422
py
Python
Plot/shapefile/zonal_stats_final.py
lekshmis9403/Python-Demo-Scripts
13b35006a016935989624f1a9a6de6871d9f7969
[ "MIT" ]
null
null
null
Plot/shapefile/zonal_stats_final.py
lekshmis9403/Python-Demo-Scripts
13b35006a016935989624f1a9a6de6871d9f7969
[ "MIT" ]
null
null
null
Plot/shapefile/zonal_stats_final.py
lekshmis9403/Python-Demo-Scripts
13b35006a016935989624f1a9a6de6871d9f7969
[ "MIT" ]
null
null
null
###################Calculating state average of a variable and plotting using shape file####### ##############The shapefile and data file are read; Regions are defined and masked############# ###########Zonal statistics for first state is calculated and plotted########################## ##############Zonal statistics a...
39.333333
194
0.662186
###################Calculating state average of a variable and plotting using shape file####### ##############The shapefile and data file are read; Regions are defined and masked############# ###########Zonal statistics for first state is calculated and plotted########################## ##############Zonal statistics a...
0
0
0
0
0
0
0
18
67
6a32bdeb14738e782503a0157c539763f795251d
104
py
Python
xc/__main__.py
zlrs/xcode-toolbox
ebb5e213b473e8cf2691d45921c2933e443b3818
[ "MIT" ]
2
2021-02-13T19:21:36.000Z
2021-09-23T20:45:48.000Z
xc/__main__.py
zlrs/xcode-opener
ebb5e213b473e8cf2691d45921c2933e443b3818
[ "MIT" ]
1
2020-09-04T06:25:49.000Z
2020-09-04T06:25:49.000Z
xc/__main__.py
zlrs/xcode-opener
ebb5e213b473e8cf2691d45921c2933e443b3818
[ "MIT" ]
null
null
null
# the contents of this file will be executed when the module is run with -m. from .xc import xc xc()
14.857143
76
0.711538
# the contents of this file will be executed when the module is run with -m. from .xc import xc xc()
0
0
0
0
0
0
0
0
0
524cd9c9e8cfd5f5d8618e56a08d2ca49e66d838
532
py
Python
data_reader/plot.py
AmirmohammadRostami/ASV-anti-spoofing-with-EABN
ab0be6a013a72c62a2a9b17f517d1c8894afbece
[ "MIT" ]
2
2021-09-28T19:49:29.000Z
2021-10-04T07:49:04.000Z
data_reader/plot.py
AmirmohammadRostami/ASV-anti-spoofing-with-EABN
ab0be6a013a72c62a2a9b17f517d1c8894afbece
[ "MIT" ]
null
null
null
data_reader/plot.py
AmirmohammadRostami/ASV-anti-spoofing-with-EABN
ab0be6a013a72c62a2a9b17f517d1c8894afbece
[ "MIT" ]
1
2021-11-22T09:27:18.000Z
2021-11-22T09:27:18.000Z
"""Script for data visualization. """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt def plot_data(data, path, ylabel="y"): """Plot data. """ fig, ax = plt.subplots() im = ax.imshow( data.transpose((-1, 0)), aspect='auto', cmap='hot', origin='l...
20.461538
38
0.588346
"""Script for data visualization. """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt def plot_data(data, path, ylabel="y"): """Plot data. """ fig, ax = plt.subplots() im = ax.imshow( data.transpose((-1, 0)), aspect='auto', cmap='hot', origin='l...
0
0
0
0
0
0
0
0
0
a77e6b45952f4265c641a9b855e0c8d97d1f2b9f
210
py
Python
TemporaryStorage/__main__.py
ulbwazhine/TemporaryStorage
3e28ecd2113e8f5a66e7652be12e5444f729d5bb
[ "MIT" ]
null
null
null
TemporaryStorage/__main__.py
ulbwazhine/TemporaryStorage
3e28ecd2113e8f5a66e7652be12e5444f729d5bb
[ "MIT" ]
null
null
null
TemporaryStorage/__main__.py
ulbwazhine/TemporaryStorage
3e28ecd2113e8f5a66e7652be12e5444f729d5bb
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
19.090909
60
0.719048
from TemporaryStorage import TemporaryStorageInstance def main(): storage = TemporaryStorageInstance() print(storage.upload(input('Enter path to file: ')).url) if __name__ == '__main__': main()
0
0
0
0
0
92
0
32
45
65752f5fd4bb5058515a14884e24f2e6032a385a
1,949
py
Python
project/reviewapi.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
2
2019-04-20T03:45:51.000Z
2019-04-27T05:52:10.000Z
project/reviewapi.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
3
2019-04-21T18:57:32.000Z
2019-04-28T15:14:02.000Z
project/reviewapi.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
4
2019-04-23T00:32:21.000Z
2019-04-29T22:29:00.000Z
import sys import pymongo if __name__ == "__main__": argv = sys.argv if len(argv) < 2: print("Usage: python3.6 reviewapi.py mongodb_uri <listing_id>") exit(-1) mongodb_uri = argv[1] listing_id = int(argv[2]) db = pymongo.MongoClient(mongodb_uri)['client_database'] print(ge...
29.984615
91
0.585428
import sys import pymongo import projectmemcached import time def get_all_reviews(db): pass def get_review_with_listing_id(_id, db): #print("_id",_id) #print("type(_id)",type(_id)) _id = int(_id) rev_lst = [] start_time = time.time() try: reviews = projectmemcached.get_listing_re...
0
0
0
0
0
1,505
0
-8
90
93ffbb1aee9821f9b8357a5e05dcea086dace45e
3,825
py
Python
pytcl.py
anorak6435/pytcl
c7469fa8d3c7eac95170f14bbdaf3cad5ce45bb7
[ "MIT" ]
null
null
null
pytcl.py
anorak6435/pytcl
c7469fa8d3c7eac95170f14bbdaf3cad5ce45bb7
[ "MIT" ]
null
null
null
pytcl.py
anorak6435/pytcl
c7469fa8d3c7eac95170f14bbdaf3cad5ce45bb7
[ "MIT" ]
null
null
null
import sys import logging logging.basicConfig() logging.root.setLevel(logging.WARNING) logger = logging.getLogger("TCL_Machine") print("Tcl/Forth inspired language") # give some information about how to use from the cli if __name__ == '__main__': if len(sys.argv) < 3: cli_reference() raise Exce...
37.871287
118
0.541699
import sys from typing import List from enum import Enum, auto from parse_ctl import Parse, CmdType, DatType, BinOp, CmdValue import logging logging.basicConfig() logging.root.setLevel(logging.WARNING) logger = logging.getLogger("TCL_Machine") from tokenizer.Tokenizer import Tokenizer, TT print("Tcl/Forth inspired la...
0
0
0
2,989
0
144
0
73
134
b7100694a0c682daa8ac8cad7068663d92954f0f
58
py
Python
Debug.py
lingh0205/ecs
7d6605d16b51f6cc8e876fc5456a92b0432cb20b
[ "Apache-2.0" ]
null
null
null
Debug.py
lingh0205/ecs
7d6605d16b51f6cc8e876fc5456a92b0432cb20b
[ "Apache-2.0" ]
null
null
null
Debug.py
lingh0205/ecs
7d6605d16b51f6cc8e876fc5456a92b0432cb20b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 debugEnable = False
11.6
21
0.706897
#!/usr/bin/env python # coding=utf-8 debugEnable = False
0
0
0
0
0
0
0
0
0
88e0e1e6e478cb10c72935e6df48bf7cae166f1c
6,176
py
Python
vcue/basics.py
losDaniel/vcue-repo
f976c5d95de09ece88690c3ea94d63f5bd82da56
[ "Unlicense" ]
null
null
null
vcue/basics.py
losDaniel/vcue-repo
f976c5d95de09ece88690c3ea94d63f5bd82da56
[ "Unlicense" ]
null
null
null
vcue/basics.py
losDaniel/vcue-repo
f976c5d95de09ece88690c3ea94d63f5bd82da56
[ "Unlicense" ]
null
null
null
import sys sys.path.append('../') import bz2, os import random, string import importlib import _pickle as pickle from datetime import datetime, timedelta # ~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~< # OS & list MANAGEMENT FUNCTIONS <~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<...
35.494253
163
0.560881
import sys sys.path.append('../') import bz2, os import random, string import importlib import _pickle as pickle from datetime import datetime, timedelta # ~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~< # OS & list MANAGEMENT FUNCTIONS <~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<~<...
0
0
0
0
508
197
0
0
94
5ab0b428ffe78caec226c617c5e0d5aa9f2130ba
6,951
py
Python
deploy-tools/validator-set-deploy/src/validator_set_deploy/cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
9
2019-02-28T06:24:08.000Z
2021-05-29T04:43:56.000Z
deploy-tools/validator-set-deploy/src/validator_set_deploy/cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
425
2019-04-02T08:07:27.000Z
2021-07-01T18:29:02.000Z
deploy-tools/validator-set-deploy/src/validator_set_deploy/cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
10
2019-02-25T08:40:24.000Z
2022-03-08T10:22:57.000Z
import click from deploy_tools.files import (InvalidAddressException, validate_and_format_address) from web3 import EthereumTesterProvider, Web3 # we need test_provider and test_json_rpc for running the tests in test_cli # they need to persist between multiple calls to runner.invoke and are # therefore initialized on ...
28.72314
116
0.724212
import click from deploy_tools.cli import ( auto_nonce_option, connect_to_json_rpc, gas_option, gas_price_option, get_nonce, jsonrpc_option, keystore_option, nonce_option, retrieve_private_key, ) from deploy_tools.deploy import build_transaction_options from deploy_tools.files import...
0
4,968
0
0
0
0
0
430
182
e603ea8651f0df354d69df9e51178fe5176e9570
1,452
py
Python
tests/unit/system_status/formatters/temperature_unit_test.py
BMeu/Orchard
cd595c9942e4e1ad0032193059f2b39fdf3bcfba
[ "MIT" ]
2
2016-10-06T21:19:32.000Z
2016-10-06T21:58:04.000Z
tests/unit/system_status/formatters/temperature_unit_test.py
BMeu/Orchard
cd595c9942e4e1ad0032193059f2b39fdf3bcfba
[ "MIT" ]
392
2016-10-06T17:13:30.000Z
2021-01-15T04:15:38.000Z
tests/unit/system_status/formatters/temperature_unit_test.py
BMeu/Orchard
cd595c9942e4e1ad0032193059f2b39fdf3bcfba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit Test: orchard.system_status.formatters.temperature """
31.565217
73
0.68595
# -*- coding: utf-8 -*- """ Unit Test: orchard.system_status.formatters.temperature """ import unittest import flask_babel import orchard import orchard.system_status.formatters.temperature as formatter class DataUnitTest(unittest.TestCase): def setUp(self): self.app = orchard.create_app('Testing...
16
0
0
1,209
0
0
0
27
114
0c2ace54d74fa44feb9d1b71e5858f4afa623268
9,057
py
Python
simple_imports/system_importer.py
ahammouda/django_simple_imports
5d1c1ab5c3fdb9bc67117a1fd99ecbe11e42e5dd
[ "BSD-2-Clause" ]
null
null
null
simple_imports/system_importer.py
ahammouda/django_simple_imports
5d1c1ab5c3fdb9bc67117a1fd99ecbe11e42e5dd
[ "BSD-2-Clause" ]
null
null
null
simple_imports/system_importer.py
ahammouda/django_simple_imports
5d1c1ab5c3fdb9bc67117a1fd99ecbe11e42e5dd
[ "BSD-2-Clause" ]
null
null
null
#: TODO: delete the commented delimiter for the following reasons, AFTER documenting how to specify multiple fields # (TODO) for an object referenced in a m2m relationship # I think this is unnecesary, if you want multiple fields to be specifiable, # you need to put them in separate chuncks of 'a;a;a;a , b;b;b;b' # M2...
37.42562
122
0.60053
from typing import Dict, List, Tuple from collections import defaultdict from django.db import models from django.db.models.fields.related_descriptors import ManyToManyDescriptor from dotdict import DotDict from .sorter import Sorter from .model_importer import ModelImporter from .importer_manager import ImporterMan...
0
0
0
8,263
0
0
0
146
202
81edf04bbd8afc21aabc5f7f2f17e2fde9b2494b
1,566
py
Python
pillow/resize-font-to-fit-region-getbbox/main.py
furas/python-code
223d8245c6a2a058031f302feaffd9a4f900110e
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
pillow/resize-font-to-fit-region-getbbox/main.py
furas/python-code
223d8245c6a2a058031f302feaffd9a4f900110e
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
pillow/resize-font-to-fit-region-getbbox/main.py
furas/python-code
223d8245c6a2a058031f302feaffd9a4f900110e
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
# author: Bartlomiej "furas" Burek (https://blog.furas.pl) # date: 2021.05.30 # # title: How to add text in a textbox to an image? # url: https://stackoverflow.com/questions/67760340/how-to-add-text-in-a-textbox-to-an-image/67762111#67762111 import PIL print('PIL version:', PIL.__version__) from PIL import Image, I...
30.705882
110
0.670498
# author: Bartlomiej "furas" Burek (https://blog.furas.pl) # date: 2021.05.30 # # title: How to add text in a “textbox” to an image? # url: https://stackoverflow.com/questions/67760340/how-to-add-text-in-a-textbox-to-an-image/67762111#67762111 import PIL print('PIL version:', PIL.__version__) from PIL import Image,...
6
0
0
0
0
0
0
0
0
34703d4ae8adcfdfa9e78f969ac9c307e0078834
1,492
py
Python
pysmata/__main__.py
ultratwo/pysmata
e253e9ba481ade3d3033260064597b8d6bd437b1
[ "MIT" ]
1
2019-03-29T23:32:17.000Z
2019-03-29T23:32:17.000Z
pysmata/__main__.py
ultratwo/pysmata
e253e9ba481ade3d3033260064597b8d6bd437b1
[ "MIT" ]
null
null
null
pysmata/__main__.py
ultratwo/pysmata
e253e9ba481ade3d3033260064597b8d6bd437b1
[ "MIT" ]
null
null
null
import pysmata.loader as loader if __name__ == "__main__": main()
27.127273
87
0.718499
import sys import pathlib import argparse import gzip import json import requests import datadiff import pysmata.loader as loader import pysmata.files def main_replay(args): j = pysmata.files.get_replay(args.code) json.dump(j, sys.stdout, indent=2, sort_keys=True) def main_game(args): j = pysmata.files.get_gam...
0
0
0
0
0
1,211
0
-57
268
f83c905388d2f4814f35b649b442f121e5d416f7
1,287
py
Python
test/test_test_assets_api.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
test/test_test_assets_api.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
test/test_test_assets_api.py
cons3rt/cons3rt-python-sdk
f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ CONS3RT Web API A CONS3RT ReSTful API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: Fred@gigagantic-server.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest if __name__ == '__main__': unitt...
20.758065
76
0.656566
# coding: utf-8 """ CONS3RT Web API A CONS3RT ReSTful API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: Fred@gigagantic-server.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import cons3rt from cons3rt.api.test_a...
0
0
0
811
0
0
0
41
104
8df16a862157a8fa6ed02dacc173c36cbbd07708
1,568
py
Python
venv/Lib/site-packages/mcipc/rcon/be/commands/replaceitem.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/be/commands/replaceitem.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/be/commands/replaceitem.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
"""Implementation of the replaceitem command.""" from mcipc.rcon.client import Client __all__ = ['ReplaceitemProxy', 'replaceitem'] def replaceitem(self: Client) -> ReplaceitemProxy: """Delegates to a :py:class:`mcipc.rcon.be.commands.replaceitem.ReplaceitemProxy` """ return ReplaceitemProxy(self,...
34.086957
79
0.663265
"""Implementation of the replaceitem command.""" from mcipc.rcon.be.types import EntityEquipmentSlot, ReplaceMode from mcipc.rcon.client import Client from mcipc.rcon.proxy import CommandProxy from mcipc.rcon.types import Vec3 __all__ = ['ReplaceitemProxy', 'replaceitem'] class ReplaceitemProxy(CommandProxy): ...
0
0
0
1,067
0
0
0
75
90
1450d67a870c8a1cdc9b8aaa4fa6ce0512060694
337
py
Python
python_basic/bucles.py
carmsanchezs/datacademy
72bc8671cbd284d7e3a266ea5a8e0afc26af33de
[ "Apache-2.0" ]
null
null
null
python_basic/bucles.py
carmsanchezs/datacademy
72bc8671cbd284d7e3a266ea5a8e0afc26af33de
[ "Apache-2.0" ]
null
null
null
python_basic/bucles.py
carmsanchezs/datacademy
72bc8671cbd284d7e3a266ea5a8e0afc26af33de
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': fun_while()
21.0625
56
0.534125
def fun_while(): LIMITE = 1000 contador = 0 potencia2 = 0 while potencia2 < LIMITE: # potencia2 = 2**contador print('2 elevado a la {} es igual a: {}'.format( contador, potencia2 )) contador += 1 potencia2 = 2**contador if __name__ == '__main__': ...
0
0
0
0
0
266
0
0
22
2c46395b0f9145c6036301c0a82f238f32eb53df
141
py
Python
pages/workshop/Pandas/solutions/calc_stats.py
zbruick/python-training
ba227820accb5849aea8d05ff5cb5c134f56955e
[ "BSD-3-Clause" ]
87
2019-08-29T06:54:06.000Z
2022-03-14T12:52:59.000Z
pages/workshop/Pandas/solutions/calc_stats.py
zbruick/python-training
ba227820accb5849aea8d05ff5cb5c134f56955e
[ "BSD-3-Clause" ]
258
2015-02-02T20:49:11.000Z
2018-10-04T22:04:47.000Z
pages/workshop/Pandas/solutions/calc_stats.py
zbruick/python-training
ba227820accb5849aea8d05ff5cb5c134f56955e
[ "BSD-3-Clause" ]
65
2015-02-04T18:48:42.000Z
2018-10-03T18:33:39.000Z
print(df.groupby('station').temperature.min()) print(df.groupby('station').temperature.max()) print(df.groupby('station').temperature.std())
35.25
46
0.744681
print(df.groupby('station').temperature.min()) print(df.groupby('station').temperature.max()) print(df.groupby('station').temperature.std())
0
0
0
0
0
0
0
0
0
fe9c926dbdc24905c23f6e0842291e060954353a
1,446
py
Python
Tests/test_Room.py
PauloAlexSilva/AI-4-ROS-master
8eac17d3af0290d1f659609075a57b3df1998255
[ "MIT" ]
null
null
null
Tests/test_Room.py
PauloAlexSilva/AI-4-ROS-master
8eac17d3af0290d1f659609075a57b3df1998255
[ "MIT" ]
null
null
null
Tests/test_Room.py
PauloAlexSilva/AI-4-ROS-master
8eac17d3af0290d1f659609075a57b3df1998255
[ "MIT" ]
null
null
null
import dependencies import sys sys.path.insert(0, dependencies.program_path)
24.931034
65
0.674274
import pytest import dependencies import sys sys.path.insert(0, dependencies.program_path) from src import RoomObject as rObject from src import Room as r def test_Room(): r1 = r.Room([]) assert r1.objects == [] r1.AddObject("person_Maria") assert r1.objects[0].GetCategory() == rObject.Category.perso...
0
0
0
0
0
1,105
0
12
251
317a24ac524451ddf8901f319332ad7de660563c
1,043
py
Python
leetcode/monthly_challenges/2020-05/w2-2_perfect_square_alt1.py
mawillcockson/coding_challenges
904dac20ec665b66c93c642be87bf5d0824eb933
[ "MIT" ]
null
null
null
leetcode/monthly_challenges/2020-05/w2-2_perfect_square_alt1.py
mawillcockson/coding_challenges
904dac20ec665b66c93c642be87bf5d0824eb933
[ "MIT" ]
null
null
null
leetcode/monthly_challenges/2020-05/w2-2_perfect_square_alt1.py
mawillcockson/coding_challenges
904dac20ec665b66c93c642be87bf5d0824eb933
[ "MIT" ]
null
null
null
r""" Given a positive integer num, write a function which returns True if num is a perfect square else False. Follow up: Do not use any built-in library function such as sqrt. Example 1: Input: num = 16 Output: true Example 2: Input: num = 14 Output: false Constraints: 1 <= num <= 2^31 - 1 """ # Submitted...
21.729167
140
0.716203
r""" Given a positive integer num, write a function which returns True if num is a perfect square else False. Follow up: Do not use any built-in library function such as sqrt. Example 1: Input: num = 16 Output: true Example 2: Input: num = 14 Output: false Constraints: 1 <= num <= 2^31 - 1 """ # Submitted...
0
0
0
71
0
164
0
43
91
5c76baa9a1b69d9287b8d2666496d2e6d555580f
1,613
py
Python
core/home/models.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2022-01-04T07:04:46.000Z
2022-01-04T07:04:46.000Z
core/home/models.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2020-02-17T19:06:03.000Z
2020-02-17T19:06:03.000Z
core/home/models.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2021-07-08T13:21:04.000Z
2021-07-08T13:21:04.000Z
# Create your models here.
38.404762
87
0.739616
from django.db import models from ckeditor.fields import RichTextField # Create your models here. class MainPageStatisticNumber(models.Model): number = models.IntegerField(null=True, blank=True) description = models.TextField(null=True, blank=True) class Meta: verbose_name_plural = "Физический фа...
136
0
0
1,376
0
0
0
27
113
e9e3d0dfaccedc93d2244086a1da40049b665b0a
122
py
Python
handy/rand/__init__.py
Al3xChen/handy
a4af40fad2e75876ecd1b5918f7ca5c325ae281c
[ "MIT" ]
5
2018-04-03T10:24:04.000Z
2020-01-16T08:04:12.000Z
handy/rand/__init__.py
deep2cv/handy
a4af40fad2e75876ecd1b5918f7ca5c325ae281c
[ "MIT" ]
1
2021-03-19T10:32:17.000Z
2021-03-19T10:32:17.000Z
handy/rand/__init__.py
Al3xChen/handy
a4af40fad2e75876ecd1b5918f7ca5c325ae281c
[ "MIT" ]
1
2021-04-17T19:28:15.000Z
2021-04-17T19:28:15.000Z
from __future__ import absolute_import
24.4
38
0.844262
from __future__ import absolute_import from .number import randomPN from .gid import calcAge from .passwd import randomPW
0
0
0
0
0
0
0
17
67
f68f746b4490e7012216fa20977c4a2123dba0f5
708
py
Python
nopassword/utils.py
YulioTech/django-nopassword
52c28468d2430c9ec9074b3e404bce0958bf69ea
[ "MIT" ]
null
null
null
nopassword/utils.py
YulioTech/django-nopassword
52c28468d2430c9ec9074b3e404bce0958bf69ea
[ "MIT" ]
null
null
null
nopassword/utils.py
YulioTech/django-nopassword
52c28468d2430c9ec9074b3e404bce0958bf69ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import django from django.conf import settings from django.utils.functional import keep_lazy if django.VERSION >= (1, 5): from django.contrib.auth import get_user_model AUTH_USER_MODEL = settings.AUTH_USER_MODEL get_user_model = keep_lazy(AUTH_USER_MODEL)(get_user_model) get_use...
26.222222
80
0.720339
# -*- coding: utf-8 -*- import django from django.conf import settings from django.utils.functional import keep_lazy if django.VERSION >= (1, 5): from django.contrib.auth import get_user_model AUTH_USER_MODEL = settings.AUTH_USER_MODEL get_user_model = keep_lazy(AUTH_USER_MODEL)(get_user_model) get_use...
0
0
0
0
0
152
0
22
103
52a84b721a492c3bd0b98f72e605f1c67fd7fa2c
1,620
py
Python
Fuzzy logic controller/main.py
Sirius79/fuzzy-logic-controller
0b67015eedd25e560d77e1b548a684138e5a7337
[ "MIT" ]
null
null
null
Fuzzy logic controller/main.py
Sirius79/fuzzy-logic-controller
0b67015eedd25e560d77e1b548a684138e5a7337
[ "MIT" ]
null
null
null
Fuzzy logic controller/main.py
Sirius79/fuzzy-logic-controller
0b67015eedd25e560d77e1b548a684138e5a7337
[ "MIT" ]
null
null
null
if __name__ == "__main__": x = FLC(70, 15, 30) x.evaluate()
33.061224
108
0.604938
from Membership import sad,memberships import defuzzify import rule import itertools class FLC: def __init__(self, speed, acc, dist): self.s = speed self.a = acc self.d = dist self.s_index = list() self.a_index = list() self.d_index = list() def evaluate(self):...
0
0
0
1,441
0
0
0
-3
111
fa81436141d51179434081ace437db914d9fe621
1,219
py
Python
run_statistic_fc.py
iuliiajune/quick_draw_classifier
3996bbf892372e1884e476ace4d05f44d05a66cf
[ "MIT" ]
null
null
null
run_statistic_fc.py
iuliiajune/quick_draw_classifier
3996bbf892372e1884e476ace4d05f44d05a66cf
[ "MIT" ]
null
null
null
run_statistic_fc.py
iuliiajune/quick_draw_classifier
3996bbf892372e1884e476ace4d05f44d05a66cf
[ "MIT" ]
null
null
null
import argparse from FCNetwork import FCNetwork if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( "--sizes", default=[ # 3*28*28, # 2*28*28, 14*28], type=list) parser.add_argument( "--labels_path"...
26.5
62
0.563577
import argparse from FCNetwork import FCNetwork if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( "--sizes", default=[ # 3*28*28, # 2*28*28, 14*28], type=list) parser.add_argument( "--labels_path"...
0
0
0
0
0
0
0
0
0
9799be4cdc686d4c6b7ef7267ca8ba2df75f05e7
3,315
py
Python
climateeconomics/tests/l0_test_ghgemissions_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-14T06:37:42.000Z
2022-01-14T06:37:42.000Z
climateeconomics/tests/l0_test_ghgemissions_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
climateeconomics/tests/l0_test_ghgemissions_discipline.py
os-climate/witness-core
3ef9a44d86804c5ad57deec3c9916348cb3bfbb8
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
40.426829
133
0.606033
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
0
0
0
2,462
0
0
0
63
156
2af45b14e174784718276ce8d877cc63c22b7a96
7,759
py
Python
AppServer/google/appengine/tools/devappserver2/inotify_file_watcher_test.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/tools/devappserver2/inotify_file_watcher_test.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/tools/devappserver2/inotify_file_watcher_test.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
31.412955
80
0.68398
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
0
6,842
0
0
0
0
0
9
157
59348430d1bc124d6f170c7dd6ff5d14cf9955e6
3,386
py
Python
common/datastore_schema.py
isabella232/eclipse2017
a328c6d437638b1fe89aa8a24579406f01fe970d
[ "Apache-2.0" ]
18
2017-03-17T18:10:55.000Z
2022-03-30T17:35:55.000Z
common/datastore_schema.py
google/eclipse2017
a328c6d437638b1fe89aa8a24579406f01fe970d
[ "Apache-2.0" ]
1
2021-06-27T16:01:10.000Z
2021-06-27T16:21:50.000Z
common/datastore_schema.py
isabella232/eclipse2017
a328c6d437638b1fe89aa8a24579406f01fe970d
[ "Apache-2.0" ]
8
2017-03-28T13:34:50.000Z
2021-06-27T15:39:10.000Z
# # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.270833
80
0.625222
# # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
0
0
0
0
0
0
0
0
0
79bb8561dbf903a1cebc082d9f0da06d6ef1208d
855
py
Python
simplyrecipes.py
ingazhur/FridgeUp
2daa697fb8e737fcc32ffe23ba99241209d15718
[ "MIT" ]
null
null
null
simplyrecipes.py
ingazhur/FridgeUp
2daa697fb8e737fcc32ffe23ba99241209d15718
[ "MIT" ]
null
null
null
simplyrecipes.py
ingazhur/FridgeUp
2daa697fb8e737fcc32ffe23ba99241209d15718
[ "MIT" ]
2
2021-01-16T20:45:06.000Z
2021-01-16T20:46:10.000Z
# name, type, ingredients, url if __name__ == "__main__": s = Simplyrecipes('https://www.simplyrecipes.com/recipes/mexican_red_chili_sauce/') print(s.find_ingredients())
28.5
87
0.540351
from Hackdavis.ab_recipes import Recipes # name, type, ingredients, url class Simplyrecipes(Recipes): def find_name(self): try: name = self.soup.find(class_='entry-title').text return name except: return "Not available" def find_ingredients(self): t...
0
0
0
613
0
0
0
19
44
30de5e50dc9874acb1eb7813b465287c291f649b
672
py
Python
src/parruc/violareggiocalabriamigration/browser/import.py
parruc/parruc.violareggiocalabriamigration
878f03d4f597b9ca87f6ade00df605f2fb831245
[ "MIT" ]
null
null
null
src/parruc/violareggiocalabriamigration/browser/import.py
parruc/parruc.violareggiocalabriamigration
878f03d4f597b9ca87f6ade00df605f2fb831245
[ "MIT" ]
null
null
null
src/parruc/violareggiocalabriamigration/browser/import.py
parruc/parruc.violareggiocalabriamigration
878f03d4f597b9ca87f6ade00df605f2fb831245
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
32
67
0.74256
# -*- coding: utf-8 -*- from zope.interface import alsoProvides from collective.transmogrifier.transmogrifier import Transmogrifier from plone.protect.interfaces import IDisableCSRFProtection from Products.Five.browser import BrowserView class ImportViolaReggiocalabria(BrowserView): pipeline = u'parruc.violaregg...
0
0
0
409
0
0
0
126
112
9fb5c9551fa0424e6384ba315ebf13e5d395754e
3,097
py
Python
Ingest/ingest.py
ekristen/appcompatprocessor
6c847937c5a836e2ce2fe2b915f213c345a3c389
[ "Apache-2.0" ]
152
2017-04-02T18:13:19.000Z
2022-03-19T18:46:12.000Z
Ingest/ingest.py
ekristen/appcompatprocessor
6c847937c5a836e2ce2fe2b915f213c345a3c389
[ "Apache-2.0" ]
19
2017-05-03T13:48:06.000Z
2020-08-18T16:20:25.000Z
Ingest/ingest.py
ekristen/appcompatprocessor
6c847937c5a836e2ce2fe2b915f213c345a3c389
[ "Apache-2.0" ]
26
2017-04-19T16:00:51.000Z
2021-06-12T10:07:46.000Z
import logging logger = logging.getLogger(__name__)
41.851351
115
0.690991
import logging import re import hashlib from appAux import loadFile, toHex logger = logging.getLogger(__name__) class Ingest(object): # Base class used to encapsulate the logic required to ingest entries in different formats # ingest_type: Iternal ID for the ingest plugin ingest_type = "" # file_name_...
0
0
0
2,962
0
0
0
-6
89
df5278adee8bd1b3da5e0fd9be339949166d2c20
1,247
py
Python
Project_Files/source/simprocedure/vul_strcat.py
SoftwareSecurityLab/Heap-Overflow-Detection
1fb30bb549dff89860b8998b080d12ef58b40042
[ "Apache-2.0" ]
null
null
null
Project_Files/source/simprocedure/vul_strcat.py
SoftwareSecurityLab/Heap-Overflow-Detection
1fb30bb549dff89860b8998b080d12ef58b40042
[ "Apache-2.0" ]
null
null
null
Project_Files/source/simprocedure/vul_strcat.py
SoftwareSecurityLab/Heap-Overflow-Detection
1fb30bb549dff89860b8998b080d12ef58b40042
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Feb 13 22:07:00 2021 @authors: Ali Kamali Sara Baradaran Mahdi Heidari """
31.175
89
0.644747
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Feb 13 22:07:00 2021 @authors: Ali Kamali Sara Baradaran Mahdi Heidari """ import angr,claripy class _strcat_vul(angr.SimProcedure): def run(self,dst_addr, src_addr): strlen = angr.SIM_PROCEDURES['libc']['strlen'] memcp...
0
0
0
1,043
0
0
0
-2
45
7f827fcc92f0ecd1d3d92cf6de9698dae4fb638b
805
py
Python
web_application/app.py
adisx06x/web-app
febb1c26ca12be11301473a0f2b8395fe48718f6
[ "MIT" ]
null
null
null
web_application/app.py
adisx06x/web-app
febb1c26ca12be11301473a0f2b8395fe48718f6
[ "MIT" ]
1
2020-06-25T05:39:08.000Z
2020-06-25T05:39:08.000Z
web_application/app.py
adisx06x/web-app
febb1c26ca12be11301473a0f2b8395fe48718f6
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) if __name__ == '__main__': app.run(ssl_context=("/etc/demo/ssl/blueapron.crt", "/etc/demo/ssl/blueapron.key"), host='0.0.0.0')
25.15625
115
0.657143
from flask import Flask, request, abort from datetime import datetime import pytz app = Flask(__name__) def current_date(): time_zone_NY = pytz.timezone("America/New_York") time_NY = datetime.now(time_zone_NY) return time_NY.strftime("%m:%d:%Y") def current_time(): time_zone_NY = pytz.timezone("Am...
0
205
0
0
0
264
0
14
113
b2e288dfc0da01282190857b0967f8bebfc3de86
2,389
py
Python
{{ cookiecutter.project_name }}/setup.py
roy-freee/cookiecutter-pyproject
fb8c1228973756c086fef8e0a1cd15b4cb292cdc
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/setup.py
roy-freee/cookiecutter-pyproject
fb8c1228973756c086fef8e0a1cd15b4cb292cdc
[ "MIT" ]
null
null
null
{{ cookiecutter.project_name }}/setup.py
roy-freee/cookiecutter-pyproject
fb8c1228973756c086fef8e0a1cd15b4cb292cdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" import os import re from setuptools import find_packages, setup REQUIREMENTS = [] SETUP_REQUIREMENTS = [] TEST_REQUIREMENTS = [] DEV_REQUIREMENTS = ["bumpversion", "pre-commit", "tox"] with open("README.rst") as readme_file: README = readme_f...
35.132353
120
0.654667
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" import os import re from setuptools import find_packages, setup REQUIREMENTS = [] SETUP_REQUIREMENTS = [] TEST_REQUIREMENTS = [] DEV_REQUIREMENTS = ["bumpversion", "pre-commit", "tox"] with open("README.rst") as readme_file: README = readme_f...
0
0
0
0
0
0
0
0
0
66a90cc232213d5e817e81dbcb67c0fb9c6ef5e1
16,966
py
Python
dl/data/utils/quads.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-02-06T22:40:13.000Z
2021-03-26T09:15:34.000Z
dl/data/utils/quads.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
8
2020-07-11T07:10:51.000Z
2022-03-12T00:39:03.000Z
dl/data/utils/quads.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-03-26T09:19:42.000Z
2021-07-27T02:38:09.000Z
import torch, cv2 from PIL import Image, ImageDraw import numpy as np from shapely.geometry import Polygon, MultiPoint from .boxes import dists_pt2line_numpy # ref: https://github.com/MhLiao/TextBoxes_plusplus/blob/master/examples/text/nms.py def quads_iou(a, b): """ :param a: Box Tensor, shape is (nums, 8) ...
39.547786
134
0.589002
import torch, cv2 from PIL import Image, ImageDraw import numpy as np from shapely.geometry import Polygon, MultiPoint, MultiPolygon from .boxes import dists_pt2line_numpy, dists2corners_numpy # ref: https://github.com/MhLiao/TextBoxes_plusplus/blob/master/examples/text/nms.py def quads_iou(a, b): """ :param ...
0
0
0
0
0
0
0
35
0
1eaa1736e351959928c7d0be66b2f9f3a24452f0
373
py
Python
app/marksapp/misc.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
21
2019-05-13T12:54:47.000Z
2022-01-10T19:51:26.000Z
app/marksapp/misc.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
19
2018-11-18T20:10:09.000Z
2019-11-16T02:47:38.000Z
app/marksapp/misc.py
CFelipe/marks
cc7e42eca9599f7e9df96f93c764faadf15f9bea
[ "MIT" ]
1
2022-02-23T16:23:06.000Z
2022-02-23T16:23:06.000Z
# optional dot, word characters, hyphens allowed tag_regex = "^\.?[-\w]+$" # same but repeated and joined by + multitag_regex = "^(\+?\.?[-\w]+)+$"
24.866667
64
0.576408
import re # optional dot, word characters, hyphens allowed tag_regex = "^\.?[-\w]+$" # same but repeated and joined by + multitag_regex = "^(\+?\.?[-\w]+)+$" def website_from_url(url: str): # idea: reverse url, look from last / to start match = re.match(r"^(?:\w+:\/\/)?(?:www\.)?([\w.]+).*", url) if mat...
0
0
0
0
0
190
0
-12
45
44f39e88718af5489be89e272b4207bab5372b24
2,221
py
Python
relnet/experiment_launchers/gen_graph_instances_parallel.py
VictorDarvariu/solving-graph-pgg
30428dec0783aa71a8ff955862e95ae5b3cca9b4
[ "MIT" ]
2
2021-12-09T04:30:19.000Z
2021-12-15T19:13:40.000Z
relnet/experiment_launchers/gen_graph_instances_parallel.py
VictorDarvariu/solving-graph-pgg
30428dec0783aa71a8ff955862e95ae5b3cca9b4
[ "MIT" ]
null
null
null
relnet/experiment_launchers/gen_graph_instances_parallel.py
VictorDarvariu/solving-graph-pgg
30428dec0783aa71a8ff955862e95ae5b3cca9b4
[ "MIT" ]
1
2021-12-22T04:33:39.000Z
2021-12-22T04:33:39.000Z
import sys sys.path.append('/relnet') if __name__ == "__main__": main()
37.644068
114
0.731202
import argparse import math import sys import tqdm sys.path.append('/relnet') from relnet.evaluation.experiment_conditions import get_conditions_for_experiment from relnet.evaluation.file_paths import FilePaths from multiprocessing.pool import Pool from psutil import cpu_count def main(): parser = argparse.Argu...
0
0
0
0
0
1,855
0
86
202
c048c4809d55f02548ef3bb190e9051e1bd02313
36
py
Python
chemml/chem/magpie_python/attributes/generators/__init__.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
108
2018-03-23T20:06:03.000Z
2022-01-06T19:32:46.000Z
chemml/chem/magpie_python/attributes/generators/__init__.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
18
2019-08-09T21:16:14.000Z
2022-02-14T21:52:06.000Z
chemml/chem/magpie_python/attributes/generators/__init__.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
28
2018-04-28T17:07:33.000Z
2022-02-28T07:22:56.000Z
__all__ = ["composition", "crystal"]
36
36
0.694444
__all__ = ["composition", "crystal"]
0
0
0
0
0
0
0
0
0
db8b76427fa57940c7e70d12ebef6739c9e4fffa
1,193
py
Python
tests/conftest.py
pohlt/tox-pdm
66aa453d60262ec5bc67408ea58511198fcdc613
[ "MIT" ]
null
null
null
tests/conftest.py
pohlt/tox-pdm
66aa453d60262ec5bc67408ea58511198fcdc613
[ "MIT" ]
null
null
null
tests/conftest.py
pohlt/tox-pdm
66aa453d60262ec5bc67408ea58511198fcdc613
[ "MIT" ]
null
null
null
import py FIX_PROJECT = py.path.local(__file__).dirpath("fixture-project")
22.509434
74
0.630344
import sys from unittest import mock import py import pytest FIX_PROJECT = py.path.local(__file__).dirpath("fixture-project") class MockConfig: def __init__(self) -> None: self.toxinidir = py.path.local(".") class MockEnvConfig: def __init__(self) -> None: self.config = MockConfig() ...
0
76
0
869
0
0
0
-15
181
5f52e372737abfc8da1ed4ead02ce2226dc01471
7,695
py
Python
mashinky/palette.py
borntyping/mashinky-calculator
3b341e5a8ab87761b43fd77ca6f770227883789c
[ "MIT" ]
null
null
null
mashinky/palette.py
borntyping/mashinky-calculator
3b341e5a8ab87761b43fd77ca6f770227883789c
[ "MIT" ]
null
null
null
mashinky/palette.py
borntyping/mashinky-calculator
3b341e5a8ab87761b43fd77ca6f770227883789c
[ "MIT" ]
null
null
null
import typing palette: typing.Mapping[str, typing.Mapping[int, typing.Tuple[int, int, int]]] = { "blueGray": { 50: (248, 250, 252), 100: (241, 245, 249), 200: (226, 232, 240), 300: (203, 213, 225), 400: (148, 163, 184), 500: (100, 116, 139), 600: (71, 85, 105...
25.735786
82
0.402339
import typing import colors palette: typing.Mapping[str, typing.Mapping[int, typing.Tuple[int, int, int]]] = { "blueGray": { 50: (248, 250, 252), 100: (241, 245, 249), 200: (226, 232, 240), 300: (203, 213, 225), 400: (148, 163, 184), 500: (100, 116, 139), 60...
0
0
0
0
0
196
0
-8
69
65b8fe24c01930cdaa237dd207eb751c822df4c2
294
py
Python
exercise020.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise020.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise020.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
from random import shuffle alunoI = input('Digite o aluno I: ') alunoII = input('Digite o aluno II: ') alunoIII = input('Digite o aluno III: ') alunoIV = input('Digite o aluno IV: ') ordem = [alunoI,alunoII,alunoIII, alunoIV] shuffle(ordem) print('A ordem de apresentao ser') print(ordem)
24.5
42
0.717687
from random import shuffle alunoI = input('Digite o aluno I: ') alunoII = input('Digite o aluno II: ') alunoIII = input('Digite o aluno III: ') alunoIV = input('Digite o aluno IV: ') ordem = [alunoI,alunoII,alunoIII, alunoIV] shuffle(ordem) print('A ordem de apresentação será') print(ordem)
6
0
0
0
0
0
0
0
0
94821e65e23247c1926a6c6f887a36e33d13decc
5,432
py
Python
vakt/checker.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
132
2018-10-29T14:58:26.000Z
2022-03-04T10:43:26.000Z
vakt/checker.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
42
2018-08-31T10:41:43.000Z
2021-08-01T08:19:06.000Z
vakt/checker.py
chuxuantinh/vakt
30be4880e666a0f5dbe4dd1501870bae54822a5b
[ "Apache-2.0" ]
22
2018-12-24T03:42:46.000Z
2022-03-16T04:42:25.000Z
""" Module for various checkers. """ import logging log = logging.getLogger(__name__)
35.272727
113
0.582106
""" Module for various checkers. """ import re import logging from functools import lru_cache from abc import ABCMeta, abstractmethod from .parser import compile_regex from .exceptions import InvalidPatternError log = logging.getLogger(__name__) class Checker(metaclass=ABCMeta): """ Abstract class for Che...
0
634
0
4,404
0
0
0
50
250
b24c8d9ac3b663fa30e60da8c8048f222b9c35b3
13,149
py
Python
Ecomscrapers/amazon-review.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
Ecomscrapers/amazon-review.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
Ecomscrapers/amazon-review.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
1
2019-05-29T09:54:14.000Z
2019-05-29T09:54:14.000Z
# -*- coding: utf-8 -*- import os import sys import urllib, urllib2, cookielib import datetime, time import re import random from bs4 import BeautifulSoup as soup import io text_file = open("amazonreviewlinks.txt", "r") lines = text_file.read().split(',') no = len(lines) #opening product link ...
35.252011
153
0.621188
# -*- coding: utf-8 -*- import os import sys import urllib,urllib2,cookielib import datetime,time import re import random from bs4 import BeautifulSoup as soup import io text_file = open("amazonreviewlinks.txt", "r") lines = text_file.read().split(',') no = len(lines) #opening product link p...
0
0
0
0
0
0
0
-3
0
22c86dba31cae5c7c9f834c6ed85a85e8a85587c
15,192
py
Python
spectral_cluster.py
StomachCold/HCTransformers
47dbecf8689989e4d8cd4024f330931fe8615ddf
[ "Apache-2.0" ]
3
2022-03-18T03:42:49.000Z
2022-03-27T08:24:06.000Z
spectral_cluster.py
StomachCold/HCTransformers
47dbecf8689989e4d8cd4024f330931fe8615ddf
[ "Apache-2.0" ]
null
null
null
spectral_cluster.py
StomachCold/HCTransformers
47dbecf8689989e4d8cd4024f330931fe8615ddf
[ "Apache-2.0" ]
1
2022-03-21T09:21:17.000Z
2022-03-21T09:21:17.000Z
# spectral_cluster.py import torch import numpy as np import random import time import datetime import os from sklearn import metrics from multi_kmeans_pp import MultiKMeans from logger import Logger DEBUG = 0 def spectral_cluster(attn_maps,K=10,neighbor_mask=None,use_gpu=True,pre_labels=None): ...
36.963504
161
0.551474
# spectral_cluster.py import torch import torch.nn.functional as F import numpy as np import random import time import datetime import os import sklearn from sklearn import metrics from multi_kmeans_pp import MultiKMeans from logger import Logger from scipy.sparse.csgraph import laplacian as csgra...
0
0
0
0
0
2,934
0
45
148
2ad5ea3569bed369f149517b0e04aff6cfd4fe08
1,404
py
Python
Python/3sum.py
saadmahboob/LeetCode
5f0133f00230d51201346fce5290b86cb3ae67c9
[ "MIT" ]
1
2017-02-08T06:11:30.000Z
2017-02-08T06:11:30.000Z
Python/3sum.py
saadmahboob/LeetCode
5f0133f00230d51201346fce5290b86cb3ae67c9
[ "MIT" ]
null
null
null
Python/3sum.py
saadmahboob/LeetCode
5f0133f00230d51201346fce5290b86cb3ae67c9
[ "MIT" ]
4
2017-05-25T13:43:37.000Z
2020-01-15T20:42:03.000Z
# Time: O(n^2) # Space: O(1) # # Given an array S of n integers, # are there elements a, b, c in S such that a + b + c = 0? # Find all unique triplets in the array which gives the sum of zero. # # Note: # Elements in a triplet (a,b,c) must be in non-descending order. (ie, a <= b <= c) # The solution set must not conta...
32.651163
82
0.445157
# Time: O(n^2) # Space: O(1) # # Given an array S of n integers, # are there elements a, b, c in S such that a + b + c = 0? # Find all unique triplets in the array which gives the sum of zero. # # Note: # Elements in a triplet (a,b,c) must be in non-descending order. (ie, a <= b <= c) # The solution set must not conta...
0
0
0
825
0
0
0
0
23
c670e79abddbb3d682888ceb50de879e7f76af1d
183
py
Python
parrot_v2/model/__init__.py
chicken-house/parrot
e3e35c0f057093ce42a9100818315b2da2b6be56
[ "BSD-3-Clause" ]
null
null
null
parrot_v2/model/__init__.py
chicken-house/parrot
e3e35c0f057093ce42a9100818315b2da2b6be56
[ "BSD-3-Clause" ]
null
null
null
parrot_v2/model/__init__.py
chicken-house/parrot
e3e35c0f057093ce42a9100818315b2da2b6be56
[ "BSD-3-Clause" ]
1
2019-08-11T23:20:39.000Z
2019-08-11T23:20:39.000Z
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base()
30.5
98
0.830601
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() from .core import Word, Meaning, ReviewPlan, AddCounter, ReviewPlanType, ReviewStatus, ReviewStage
0
0
0
0
0
0
0
77
23
d9c41c197bfdea35ed0012e3187fe5f51b07b1d2
4,689
py
Python
src/cryptography/hazmat/primitives/asymmetric/ec.py
public/cryptography
e01eeb407aa77e6c8108bf08c85533d268a496bd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/cryptography/hazmat/primitives/asymmetric/ec.py
public/cryptography
e01eeb407aa77e6c8108bf08c85533d268a496bd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/cryptography/hazmat/primitives/asymmetric/ec.py
public/cryptography
e01eeb407aa77e6c8108bf08c85533d268a496bd
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function _CURVE_TYPES = { "prime192v1": SECP192R1, "prime2...
25.074866
79
0.712519
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import six from cryptography import utils from cryptography.hazmat.primi...
0
1,651
0
1,654
0
82
0
30
505
242fccb201432150d12c550759b599ad5e0cf05a
155
py
Python
Wrapping/Python/vtk/chemistry.py
Lin1225/vtk_v5.10.0
b54ac74f4716572862365fbff28cd0ecb8d08c3d
[ "BSD-3-Clause" ]
1
2018-10-01T06:53:32.000Z
2018-10-01T06:53:32.000Z
Wrapping/Python/vtk/chemistry.py
Lin1225/vtk_v5.10.0
b54ac74f4716572862365fbff28cd0ecb8d08c3d
[ "BSD-3-Clause" ]
null
null
null
Wrapping/Python/vtk/chemistry.py
Lin1225/vtk_v5.10.0
b54ac74f4716572862365fbff28cd0ecb8d08c3d
[ "BSD-3-Clause" ]
5
2015-03-23T21:13:19.000Z
2022-01-03T11:15:39.000Z
""" This module loads all the classes from the VTK Chemistry library into its namespace. This is an optional module."""
31
73
0.774194
""" This module loads all the classes from the VTK Chemistry library into its namespace. This is an optional module.""" from vtkChemistryPython import *
0
0
0
0
0
0
0
11
23
cfb1f79bab094c9d8297508077bebf63677dc06f
142
py
Python
spotzurnal/__init__.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
spotzurnal/__init__.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
spotzurnal/__init__.py
oskar456/spotzurnal
6d52bcb8b9a28381ebe81c398c04b95e3ea9453d
[ "MIT" ]
null
null
null
from .spotify import Spotify from .cache import Cache from . import croapi from . import matcher __all__ = [Spotify, Cache, croapi, matcher]
20.285714
43
0.767606
from .spotify import Spotify from .cache import Cache from . import croapi from . import matcher __all__ = [Spotify, Cache, croapi, matcher]
0
0
0
0
0
0
0
0
0
399a55c90e192eccb945e7476953b12c6578ea17
225
py
Python
generate_openapi.py
ldehaine/FastAPI-Docs-GithubPages
8ac2fca52b1e0dc7b06114e0f563705912402b0d
[ "MIT" ]
1
2022-03-29T12:49:11.000Z
2022-03-29T12:49:11.000Z
generate_openapi.py
ldehaine/FastAPI-Docs-GithubPages
8ac2fca52b1e0dc7b06114e0f563705912402b0d
[ "MIT" ]
null
null
null
generate_openapi.py
ldehaine/FastAPI-Docs-GithubPages
8ac2fca52b1e0dc7b06114e0f563705912402b0d
[ "MIT" ]
null
null
null
import json from fastapi.testclient import TestClient from main import my_awesome_api client = TestClient(my_awesome_api) with open("openapi.json", "w") as f: json.dump(client.get("/openapi.json").json(), f, indent=4)
22.5
62
0.746667
import json from fastapi.testclient import TestClient from main import my_awesome_api client = TestClient(my_awesome_api) with open("openapi.json", "w") as f: json.dump(client.get("/openapi.json").json(), f, indent=4)
0
0
0
0
0
0
0
0
0
916034fa07941df429e7ab6cb9e7142147cffcb3
1,429
py
Python
scripts/python_ml_lib/cross_entropy_test.py
fetchai/ledger-archive
69f4371541d9428780d4ed89fad5197ba7f69b6f
[ "Apache-2.0" ]
3
2019-07-11T08:49:27.000Z
2021-09-07T16:49:15.000Z
scripts/python_ml_lib/cross_entropy_test.py
fetchai/ledger-archive
69f4371541d9428780d4ed89fad5197ba7f69b6f
[ "Apache-2.0" ]
null
null
null
scripts/python_ml_lib/cross_entropy_test.py
fetchai/ledger-archive
69f4371541d9428780d4ed89fad5197ba7f69b6f
[ "Apache-2.0" ]
2
2019-07-13T12:45:22.000Z
2021-03-12T08:48:57.000Z
import numpy as np # x = np.array([0.1, 0.8, 0.05, 0.05]) # t = np.array([0.0, 0.1, 0.0, 0.0]) # target probability distribution # x = np.array([0.2, 0.5, 0.2, 0.1]) # t = np.array([0.0, 0.0, 0.1, 0.0]) # target probability distribution # x = np.array([0.05, 0.05, 0.8, 0.1]) # t = np.array([0.0, 0.0, 0.0, 0.1...
23.048387
77
0.602519
import numpy as np # x = np.array([0.1, 0.8, 0.05, 0.05]) # t = np.array([0.0, 0.1, 0.0, 0.0]) # target probability distribution # x = np.array([0.2, 0.5, 0.2, 0.1]) # t = np.array([0.0, 0.0, 0.1, 0.0]) # target probability distribution # x = np.array([0.05, 0.05, 0.8, 0.1]) # t = np.array([0.0, 0.0, 0.0, 0.1...
0
0
0
0
0
213
0
0
92
3f49b7725ef1772d867b5e4dc449c1c433c236a3
738
py
Python
src/lesson_data_persistence_and_exchange/pickle_stream.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_data_persistence_and_exchange/pickle_stream.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_data_persistence_and_exchange/pickle_stream.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
import io import pickle data = [] data.append(SimpleObject('pickle')) data.append(SimpleObject('preserve')) data.append(SimpleObject('last')) # Simulate a file. out_s = io.BytesIO() # Write to the stream for o in data: print('WRITING : {} ({})'.format(o.name, o.name_backwards)) pickle.dump(o, out_s) ou...
18.45
63
0.617886
import io import pickle import pprint class SimpleObject: def __init__(self, name): self.name = name self.name_backwards = name[::-1] return data = [] data.append(SimpleObject('pickle')) data.append(SimpleObject('preserve')) data.append(SimpleObject('last')) # Simulate a file. out_s = ...
0
0
0
110
0
0
0
-8
45
e244afda2293f155d28cddd140cfeb8cdd60d08f
359
py
Python
celery_worker.py
aleusai/ssl-certs-validator
4e154150dc4cdba9775a4c693be06e67e7c897fb
[ "MIT" ]
6
2021-03-30T12:24:59.000Z
2021-12-20T06:56:07.000Z
celery_worker.py
aleusai/ssl-certs-validator
4e154150dc4cdba9775a4c693be06e67e7c897fb
[ "MIT" ]
null
null
null
celery_worker.py
aleusai/ssl-certs-validator
4e154150dc4cdba9775a4c693be06e67e7c897fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This script has been taken from https://github.com/miguelgrinberg/flasky-with-celery. # The github repo above also provided the starting guidelines to # have celery work in factory mode with Flask: I recommend you also look at the repo above! from app import create_app app = create_app() app.a...
32.636364
91
0.771588
#!/usr/bin/env python # This script has been taken from https://github.com/miguelgrinberg/flasky-with-celery. # The github repo above also provided the starting guidelines to # have celery work in factory mode with Flask: I recommend you also look at the repo above! import os from app import celery, create_app app =...
0
0
0
0
0
0
0
-4
23
4277934cb1b1a6b1eabf9c6dc79ecfb849001efc
1,867
py
Python
example/music_kimigayo.py
machinanette/pytoion
9d6962dce53c66e472c38342114540d282744d1e
[ "Apache-2.0" ]
null
null
null
example/music_kimigayo.py
machinanette/pytoion
9d6962dce53c66e472c38342114540d282744d1e
[ "Apache-2.0" ]
null
null
null
example/music_kimigayo.py
machinanette/pytoion
9d6962dce53c66e472c38342114540d282744d1e
[ "Apache-2.0" ]
null
null
null
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import time if len(sys.argv) == 1: print("Usage: python %s [BLE_DEVICE_ADDRESS]" %(sys.argv[0])) sys.exit() cube = Toio(sys.argv[1]) # sound # see https://toio.github.io/toio-spec/docs/ble_sound try: # [note, octave, t...
24.565789
65
0.497054
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import time from pytoion import * if len(sys.argv) == 1: print("Usage: python %s [BLE_DEVICE_ADDRESS]" %(sys.argv[0])) sys.exit() cube = Toio(sys.argv[1]) # sound # see https://toio.github.io/toio-spec/docs/ble_sound try: ...
0
0
0
0
0
0
0
0
22
3e1be78b0f2c0c96680e13d60d5cc4fe2412fb5f
1,609
py
Python
src/stochastic_hill_climber.py
SLongofono/local-search-algorithms
2418d8e9bd1ffe1f22a305ba4d19235a9ecbff5e
[ "MIT" ]
null
null
null
src/stochastic_hill_climber.py
SLongofono/local-search-algorithms
2418d8e9bd1ffe1f22a305ba4d19235a9ecbff5e
[ "MIT" ]
null
null
null
src/stochastic_hill_climber.py
SLongofono/local-search-algorithms
2418d8e9bd1ffe1f22a305ba4d19235a9ecbff5e
[ "MIT" ]
1
2018-10-16T12:59:36.000Z
2018-10-16T12:59:36.000Z
#!/usr/local/bin/python3 # # stochastic_hill_climbing.py # src # # Created by Illya Starikov on 10/13/18. # Copyright 2018. Illya Starikov. MIT License. #
28.732143
98
0.652579
#!/usr/local/bin/python3 # # stochastic_hill_climbing.py # src # # Created by Illya Starikov on 10/13/18. # Copyright 2018. Illya Starikov. MIT License. # from random import choice from hill_climber import HillClimber class StochasticHillClimber(HillClimber): """A stochastic steepest-ascent hill-climbing algor...
0
0
0
1,365
0
0
0
19
69
4d4466db3a5f952932ebee7d1437b984df09d96f
365
py
Python
codewars/WinningStrategy.py
git-bit-code/competetive_coding
889cfb70d4baf4316025a4f5be4d44c4a35e102d
[ "MIT" ]
null
null
null
codewars/WinningStrategy.py
git-bit-code/competetive_coding
889cfb70d4baf4316025a4f5be4d44c4a35e102d
[ "MIT" ]
null
null
null
codewars/WinningStrategy.py
git-bit-code/competetive_coding
889cfb70d4baf4316025a4f5be4d44c4a35e102d
[ "MIT" ]
null
null
null
for _ in range(int(input())): n=int(input()) l=list(map(int,input().split())) l=sorted(l) r=l[::-1] if(n==1 or n==2): print("first") else: p1=r[1]+sum(r[2::2]) p2=sum(l)-p1 if(p1>p2): print("second") elif(p2>p1): print("fi...
20.277778
36
0.405479
for _ in range(int(input())): n=int(input()) l=list(map(int,input().split())) l=sorted(l) r=l[::-1] if(n==1 or n==2): print("first") else: p1=r[1]+sum(r[2::2]) p2=sum(l)-p1 if(p1>p2): print("second") elif(p2>p1): print("fi...
0
0
0
0
0
0
0
0
0
91cd7c34da1a92709e66ea89223d748404f0eb6c
2,703
py
Python
2023/classes/FunderAPI.py
MakeSenseCorp/nodes-v3
1d42b80d687eccacdc2954ac8ef0f4245a89a4f8
[ "Apache-2.0" ]
null
null
null
2023/classes/FunderAPI.py
MakeSenseCorp/nodes-v3
1d42b80d687eccacdc2954ac8ef0f4245a89a4f8
[ "Apache-2.0" ]
null
null
null
2023/classes/FunderAPI.py
MakeSenseCorp/nodes-v3
1d42b80d687eccacdc2954ac8ef0f4245a89a4f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ''' 5130315 https://www.funder.co.il/wsfund.asmx/GetFundTickerm?callback=jQuery111306779790886268987_1621159388408&id=5130315&startDate=2018-05-16&endDate=2021-05-17&_=1621159388411 https://www.funder.co.il/wsfund.asmx/GetFundTickerm?callback=jQuery&id=[FUND_NUMBER]&startDate=2018-05-16&endDate=2021-...
25.990385
169
0.622642
#!/usr/bin/python import os import sys import signal import json import time from urllib.request import urlopen class Funder(): def __init__(self, node): self.ClassName = "Funder" self.Node = node def BindHandler(self): # Handlers pass def GetRequest (self, url, with_dealy): try: req = urlopen(ur...
0
0
0
2,238
0
0
0
-38
155
55654168ad31ad2d3218c3453979c7d54561e98d
2,094
py
Python
palindrome_partition_2.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
palindrome_partition_2.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
palindrome_partition_2.py
lutianming/leetcode
848c7470ff5fd23608cc954be23732f60488ed8a
[ "MIT" ]
null
null
null
s = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
91.043478
1,468
0.82617
class Solution: # @param s, a string # @return an integer def minCut(self, s): n = len(s) isPal = [[False]*n for i in range(n)] minCuts = [i for i in range(n)] for j in range(n): for i in reversed(range(j + 1)): if s[i] == s[j] and (j - i <= 1 or i...
0
0
0
552
0
0
0
0
22
f757cc19f5eb1b50efd6dd829422ab8950d85de4
503
py
Python
shellshocker_server/__init__.py
ArchimedesPi/shellshocker
3d00cd3daad0c2e55b62cfccf58e638464d189c7
[ "MIT" ]
2
2021-10-31T12:54:04.000Z
2022-03-29T13:52:02.000Z
shellshocker_server/__init__.py
ArchimedesPi/shellshocker
3d00cd3daad0c2e55b62cfccf58e638464d189c7
[ "MIT" ]
null
null
null
shellshocker_server/__init__.py
ArchimedesPi/shellshocker
3d00cd3daad0c2e55b62cfccf58e638464d189c7
[ "MIT" ]
3
2017-09-19T19:36:49.000Z
2019-08-10T12:59:14.000Z
from flask import Flask from shellshocker_server.saferproxyfix import SaferProxyFix from raven.contrib.flask import Sentry import os app = Flask(__name__) app.config['SECRET_KEY'] = os.environ['SECRET_KEY'] try: if os.environ['SECRET_KEY'] is not None: app.config['USE_SENTRY'] = True app.config['SENTRY_DSN...
21.869565
59
0.759443
from flask import Flask from shellshocker_server.saferproxyfix import SaferProxyFix from raven.contrib.flask import Sentry import os app = Flask(__name__) app.config['SECRET_KEY'] = os.environ['SECRET_KEY'] try: if os.environ['SECRET_KEY'] is not None: app.config['USE_SENTRY'] = True app.config['SENTRY_DSN...
0
0
0
0
0
0
0
11
23
7dbd2050b8c2fa945cfa9f3646f174bff2ccc706
6,283
py
Python
part1/code/nyt.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
1
2021-03-11T22:53:13.000Z
2021-03-11T22:53:13.000Z
part1/code/nyt.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
null
null
null
part1/code/nyt.py
siddheswarc/EDA-using-MapReduce
2eab2576fa86851516adbaf0ce6cc9dd22d11278
[ "MIT" ]
null
null
null
""" NYT Download articles """ from nytimesarticle import articleAPI import pandas as pd import time import re api = articleAPI("<PASTE_YOUR_API_KEY>") df = pd.DataFrame() for i in range(1,10): articles = api.search(q="Artificial Intelligence", begin_date=int("20180"+str(i)+"01"), end_date=int...
31.415
92
0.598599
""" NYT Download articles """ from nytimesarticle import articleAPI import pandas as pd import time import re api = articleAPI("<PASTE_YOUR_API_KEY>") df = pd.DataFrame() for i in range(1,10): articles = api.search(q="Artificial Intelligence", begin_date=int("20180"+str(i)+"01"), end_date=int...
0
0
0
0
0
0
0
0
0
189ef0f531745ef98e26c905d0cd5e2f696884a1
777
py
Python
Python-Study/FindPi/FindPi.py
Lucas-Dalamarta/My-Studies
a86157a5009f746faf6b1084f4c71c37aabe050f
[ "MIT" ]
null
null
null
Python-Study/FindPi/FindPi.py
Lucas-Dalamarta/My-Studies
a86157a5009f746faf6b1084f4c71c37aabe050f
[ "MIT" ]
null
null
null
Python-Study/FindPi/FindPi.py
Lucas-Dalamarta/My-Studies
a86157a5009f746faf6b1084f4c71c37aabe050f
[ "MIT" ]
null
null
null
# -- Description ----------------------------------------------------------------------------- # # Given a function , that returns two random values between 0..1 , calculate the value of Pi # Credits to YT channel Joma Tech # -------------------------------------------------------------------------------------------- #...
29.884615
96
0.507079
# -- Description ----------------------------------------------------------------------------- # # Given a function , that returns two random values between 0..1 , calculate the value of Pi # Credits to YT channel Joma Tech # -------------------------------------------------------------------------------------------- #...
0
0
0
0
0
330
0
-8
45
69f514540a4d9c202810aa15d6276cb5f365ca93
1,380
py
Python
proximal/utils/metrics.py
kyleaj/ProxImaL
2986b1ed40b58057822922522145bfbbdd2cf9de
[ "MIT" ]
101
2016-07-24T00:33:12.000Z
2022-03-23T23:51:58.000Z
proximal/utils/metrics.py
kyleaj/ProxImaL
2986b1ed40b58057822922522145bfbbdd2cf9de
[ "MIT" ]
57
2016-07-26T18:12:37.000Z
2022-02-14T04:19:26.000Z
proximal/utils/metrics.py
kyleaj/ProxImaL
2986b1ed40b58057822922522145bfbbdd2cf9de
[ "MIT" ]
30
2016-07-26T22:51:59.000Z
2021-01-15T14:45:42.000Z
from __future__ import division
24.642857
67
0.568841
from __future__ import division import abc import numpy as np from .utils import psnr class metric(object): """Represents an metric for measuring reconstruction quality """ __metaclass__ = abc.ABCMeta def __init__(self, desc, unit, decimals=None): self.desc = desc self.unit = unit ...
0
95
0
1,151
0
0
0
-12
112
67a2a3f603deb6c2198e52e5b9363f4b0dfa349a
435
py
Python
synlib/descriptions/NAND2BXL.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
26
2018-03-17T18:14:22.000Z
2022-03-14T07:23:13.000Z
synlib/descriptions/NAND2BXL.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2019-10-16T10:31:11.000Z
2019-10-17T04:14:53.000Z
synlib/descriptions/NAND2BXL.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
7
2018-07-16T07:51:25.000Z
2022-02-15T14:22:54.000Z
Desc = cellDescClass("NAND2BXL") Desc.properties["cell_footprint"] = "nand2b" Desc.properties["area"] = "13.305600" Desc.properties["cell_leakage_power"] = "540.512676" Desc.pinOrder = ['AN', 'B', 'Y'] Desc.add_arc("AN","Y","combi") Desc.add_arc("B","Y","combi") Desc.add_param("area",13.305600); Desc.add_pin("AN","inpu...
31.071429
52
0.689655
Desc = cellDescClass("NAND2BXL") Desc.properties["cell_footprint"] = "nand2b" Desc.properties["area"] = "13.305600" Desc.properties["cell_leakage_power"] = "540.512676" Desc.pinOrder = ['AN', 'B', 'Y'] Desc.add_arc("AN","Y","combi") Desc.add_arc("B","Y","combi") Desc.add_param("area",13.305600); Desc.add_pin("AN","inpu...
0
0
0
0
0
0
0
0
0
a414f789d67ffbea70610051392e9a0f9df657d2
572
py
Python
cherry/exceptions.py
natethinks/cherry
a482621a3e397f6667f21e16d5ec0eb12c7fc4fb
[ "MIT" ]
null
null
null
cherry/exceptions.py
natethinks/cherry
a482621a3e397f6667f21e16d5ec0eb12c7fc4fb
[ "MIT" ]
null
null
null
cherry/exceptions.py
natethinks/cherry
a482621a3e397f6667f21e16d5ec0eb12c7fc4fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ cherry.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of cheery' exceptions. :copyright: (c) 2018-2019 by Windson Yang :license: MIT License, see LICENSE for more details. """
22.88
52
0.695804
# -*- coding: utf-8 -*- """ cherry.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of cheery' exceptions. :copyright: (c) 2018-2019 by Windson Yang :license: MIT License, see LICENSE for more details. """ class CacheNotFoundError(IOError): '''Cache files not found''' class FilesNotFoundError(IOError)...
0
0
0
239
0
0
0
0
115
f5a95a4ca70b12bc3d8415752e1f856c08aee9ec
990
py
Python
plugins/setlang.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
15
2016-09-25T12:19:52.000Z
2020-08-29T00:15:22.000Z
plugins/setlang.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
1
2017-12-18T01:36:48.000Z
2017-12-18T04:57:36.000Z
plugins/setlang.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
20
2016-09-29T08:50:56.000Z
2021-10-03T19:50:00.000Z
# -*- coding: utf-8 -*-
43.043478
136
0.672727
# -*- coding: utf-8 -*- @bot.message_handler(commands=['setlang' , 'Setlang']) def setlang_message(message): userlang = redisserver.get("settings:user:language:" + str(message.from_user.id)) userid = message.from_user.id banlist = redisserver.sismember('zigzag_banlist', '{}'.format(userid)) if banlist: ret...
116
885
0
0
0
0
0
0
23
e61f2e45d1fb7ec50cd1f8fc9fde8efaabbdca64
79,458
py
Python
synbioweaver/core.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
synbioweaver/core.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
synbioweaver/core.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
import inspect import warnings import re # Parts are always used as objects def checkIfTypeReturnInstance(possibleType): """if the parameter is a type, try to return an instance | *Args:* | possibleType - a parameter which may be an instance or a type | *Raises:* | PartIni...
35.314667
142
0.612122
from abc import ABCMeta, abstractmethod import inspect import warnings import re import types class ExecutionNode(object): """Abstract Superclass for all nodes in an execution flow, e.g. parts, molecules Parts are the atomistic instructions in the genetic circuit execution flow | *Attributes:* |...
0
754
0
68,015
0
3,245
0
9
1,132