hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
54a10b062decccd624d8a14f46543d84c61a99d9
176
py
Python
project_e/jobs/apps.py
ElectricFleming/project-e
cf05d2a835a09555e3dba5813d635d329684a71c
[ "bzip2-1.0.6" ]
null
null
null
project_e/jobs/apps.py
ElectricFleming/project-e
cf05d2a835a09555e3dba5813d635d329684a71c
[ "bzip2-1.0.6" ]
3
2020-01-30T03:47:26.000Z
2021-05-11T00:58:08.000Z
project_e/jobs/apps.py
effortless-electric/project-e
ae4e8415204319999ee2ecac248e2504ec1fff63
[ "bzip2-1.0.6" ]
1
2019-12-27T22:45:45.000Z
2019-12-27T22:45:45.000Z
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _
25.142857
54
0.761364
54a29568d20a9d3cd8819302aa5a4f6675a50ec6
3,080
py
Python
Final_plot/request_type(pie).py
ashutoshbhadke/weblog-visualizer
7fd10535fe0909291da194776b053eca1640b1e9
[ "MIT" ]
null
null
null
Final_plot/request_type(pie).py
ashutoshbhadke/weblog-visualizer
7fd10535fe0909291da194776b053eca1640b1e9
[ "MIT" ]
null
null
null
Final_plot/request_type(pie).py
ashutoshbhadke/weblog-visualizer
7fd10535fe0909291da194776b053eca1640b1e9
[ "MIT" ]
null
null
null
import csv from pylab import * import matplotlib.pyplot as plt count1=[] req_data=[] if __name__ == '__main__': main()
26.101695
91
0.500974
54a40265eb0edbb4261d2c562a057abf3c76c839
5,979
py
Python
pandas/lib/excelRW.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
pandas/lib/excelRW.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
11
2021-02-08T20:45:23.000Z
2022-03-12T01:00:11.000Z
pandas/lib/excelRW.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
## 2018/08/17 Initial ## 2018/08/18 Add CSV format ## 2018/08/23 Add def get_stockidxname_SeymourExcel(),def get_stockidx_SeymourExcel() ## def get_all_stockidx_SeymourExcel() from test_crawl.py ## 2018/09/06 Add value of column 'PBR' in def readExcel() ## 2018/10/27 Add exception handling in def readEx...
40.398649
118
0.630373
54a4ba9c11d3248dceffbbc60702b2f7f2e73b4a
3,950
py
Python
launchpad2github.py
mleinart/launchpad2github
faade979a1f209dc1d25aa82a32f6342dbfe35b3
[ "MIT" ]
2
2016-10-07T08:55:40.000Z
2017-08-30T16:43:57.000Z
launchpad2github.py
mleinart/launchpad2github
faade979a1f209dc1d25aa82a32f6342dbfe35b3
[ "MIT" ]
null
null
null
launchpad2github.py
mleinart/launchpad2github
faade979a1f209dc1d25aa82a32f6342dbfe35b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import time from getpass import getpass from optparse import OptionParser from termcolor import colored from launchpadlib.launchpad import Launchpad from github3 import login as github_login from github3 import GitHubError ACTIVE_STATUSES = [ "New", "Confirmed", "Tria...
27.816901
100
0.679241
54a4f81f72eecfec1f015beea32efd5b9edfa7de
168
py
Python
Curso-em-video-Python3-mundo1/ex024.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo1/ex024.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo1/ex024.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
entrada = str(input('Em que cidade voc nasceu? ')) cidade = entrada.strip().lower() partido = cidade.split() pnome = partido[0] santo = (pnome == 'santo') print(santo)
28
51
0.684524
54a68c80a2f5f81aaa165bc135be5a9f31aa99a1
8,754
py
Python
tests/unit/test_parameters/test_lead_acid_parameters.py
jatin837/PyBaMM
837421bd5b251647a257c23540ceb2908a225bdb
[ "BSD-3-Clause" ]
1
2021-04-25T09:53:40.000Z
2021-04-25T09:53:40.000Z
tests/unit/test_parameters/test_lead_acid_parameters.py
jatin837/PyBaMM
837421bd5b251647a257c23540ceb2908a225bdb
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_parameters/test_lead_acid_parameters.py
jatin837/PyBaMM
837421bd5b251647a257c23540ceb2908a225bdb
[ "BSD-3-Clause" ]
null
null
null
# # Test for the standard lead acid parameters # import pybamm from tests import get_discretisation_for_testing import unittest if __name__ == "__main__": print("Add -v for more debug output") import sys if "-v" in sys.argv: debug = True pybamm.settings.debug_mode = True unittest.main()...
43.77
85
0.664154
54a9266c033c65ceff0e6381eb549dcffd4ece05
890
py
Python
firmware/temphumid/timeset.py
schizobovine/unicorder
3165922c2662b1bd2c5ab1691c89e2af5ee185e7
[ "CC-BY-4.0" ]
null
null
null
firmware/temphumid/timeset.py
schizobovine/unicorder
3165922c2662b1bd2c5ab1691c89e2af5ee185e7
[ "CC-BY-4.0" ]
null
null
null
firmware/temphumid/timeset.py
schizobovine/unicorder
3165922c2662b1bd2c5ab1691c89e2af5ee185e7
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python from datetime import datetime import serial import sys import time SERIAL_BAUD = 9600 SERIAL_PORT = '/dev/ttyUSB0' TIME_FORMAT = "T%s" # Reset device to activate time setting routine DO_RST = True # Open serial dong print 'opening serial port %s...' % SERIAL_PORT uart = serial.Serial( port...
18.93617
47
0.683146
54a991a385bd9da3a9f26780efab2ed38b49007b
3,789
py
Python
setup.py
giampaolo/pysendfile
2ffdd452b03dd4b639cda985bd67b8d4c0c34a5f
[ "MIT" ]
119
2015-01-06T10:26:35.000Z
2021-12-03T06:22:47.000Z
setup.py
giampaolo/pysendfile
2ffdd452b03dd4b639cda985bd67b8d4c0c34a5f
[ "MIT" ]
11
2015-02-06T18:01:26.000Z
2022-03-14T09:51:28.000Z
setup.py
giampaolo/pysendfile
2ffdd452b03dd4b639cda985bd67b8d4c0c34a5f
[ "MIT" ]
24
2015-01-13T20:08:46.000Z
2021-07-30T13:45:15.000Z
#!/usr/bin/env python # ====================================================================== # This software is distributed under the MIT license reproduced below: # # Copyright (C) 2009-2014 Giampaolo Rodola' <g.rodola@gmail.com> # # Permission to use, copy, modify, and distribute this software and # its docum...
40.308511
73
0.5801
54a9d8c8660ee37792168966ac376aefeed7599f
3,248
py
Python
V1_backup/macro_ssh.py
YuanYuLin/iopcrestapi_client
5c1683d1b5b44bd8bb641933d9526cee97075d31
[ "MIT" ]
null
null
null
V1_backup/macro_ssh.py
YuanYuLin/iopcrestapi_client
5c1683d1b5b44bd8bb641933d9526cee97075d31
[ "MIT" ]
null
null
null
V1_backup/macro_ssh.py
YuanYuLin/iopcrestapi_client
5c1683d1b5b44bd8bb641933d9526cee97075d31
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 import sys import time import pprint import libiopc_rest as rst action_list=[ {"NAME":"set_env", "FUNCTION":set_env}, {"NAME":"gen_ssh_key", "FUNCTION":gen_ssh_key}, {"NAME":"start_ssh", "FUNCTION":start_ssh}, {"NAME":"stop_ssh", "FUNCTION":stop_ssh}, ] if __name__ == '__main__': ...
29.798165
139
0.638855
54aae49452e8676142b61393e18f197e00851192
4,746
py
Python
PatternConverter.py
Suitceyes-Project-Code/Tactile-Brush-Python
12da563d0988aa3b41c547ee9e1618f30c8b805c
[ "MIT" ]
null
null
null
PatternConverter.py
Suitceyes-Project-Code/Tactile-Brush-Python
12da563d0988aa3b41c547ee9e1618f30c8b805c
[ "MIT" ]
null
null
null
PatternConverter.py
Suitceyes-Project-Code/Tactile-Brush-Python
12da563d0988aa3b41c547ee9e1618f30c8b805c
[ "MIT" ]
1
2021-10-04T14:27:25.000Z
2021-10-04T14:27:25.000Z
from Stroke import Stroke from TactileBrush import TactileBrush import json from sortedcontainers import SortedList EPSILON = 0.001 def create_pattern(motion : dict): pattern = VibrationPattern(duration, False, 0) for activation_time, steps in motion.items(): # Create starting frame start...
29.849057
90
0.588074
54ab3bd5170524abc405764a761515f4dbe3bb71
14,921
py
Python
ConnectedClipboard.py
yamanogluberk/ConnectedClipboard
93aa04a2075b6ed2b6d50fce39a7c26dd80e8564
[ "MIT" ]
null
null
null
ConnectedClipboard.py
yamanogluberk/ConnectedClipboard
93aa04a2075b6ed2b6d50fce39a7c26dd80e8564
[ "MIT" ]
null
null
null
ConnectedClipboard.py
yamanogluberk/ConnectedClipboard
93aa04a2075b6ed2b6d50fce39a7c26dd80e8564
[ "MIT" ]
null
null
null
import select import socket import json import threading import time import clipboard import math from datetime import datetime ip = "" localpart = "" name = "" tcp = 5555 udp = 5556 buffer_size = 1024 broadcast_try_count = 3 ping_try_count = 3 members = [] # item - (str) ipaddress current_room_ip = "" my_room_name =...
27.079855
96
0.602171
54ae8f3aab6c6047677661a66e0ddd7fd0d3d3e9
9,728
py
Python
paddleslim/prune/auto_pruner.py
liuqiaoping7/PaddleSlim
083003661af893e92cd7bb9017e7d4a3761c7b20
[ "Apache-2.0" ]
null
null
null
paddleslim/prune/auto_pruner.py
liuqiaoping7/PaddleSlim
083003661af893e92cd7bb9017e7d4a3761c7b20
[ "Apache-2.0" ]
null
null
null
paddleslim/prune/auto_pruner.py
liuqiaoping7/PaddleSlim
083003661af893e92cd7bb9017e7d4a3761c7b20
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
39.384615
106
0.628701
54afe8421a6919e6ea315d052ac2b1d84c0d0ecd
387
py
Python
model-creator.py
LouisRoss/spiking-model-packager
de75a923e7332b73cb7252300af91d4620b6e801
[ "MIT" ]
null
null
null
model-creator.py
LouisRoss/spiking-model-packager
de75a923e7332b73cb7252300af91d4620b6e801
[ "MIT" ]
null
null
null
model-creator.py
LouisRoss/spiking-model-packager
de75a923e7332b73cb7252300af91d4620b6e801
[ "MIT" ]
null
null
null
import sys import json from h5model import h5model if len(sys.argv) < 2: print('Usage: ' + sys.argv[0] + ' ' + '<model name>') exit(1) modelName = sys.argv[1] model = h5model(modelName) model.createModel() if model.responseStatus >= 400: print("Unable to create model '" + modelName + "': " + model.errorMessage...
22.764706
95
0.687339
54b1f3e83d93705cfe337ba5f02b4044fdd2e4b8
70
py
Python
decimal to binary.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
null
null
null
decimal to binary.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
null
null
null
decimal to binary.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
null
null
null
a='' n=int(input()) while n != 0: a=str(n%2)+a n//=2 print(a)
10
16
0.457143
54b2b1435e7c0cbedc57669a7f3b6443192e3d9f
4,887
py
Python
settings/base.py
anthill-gaming/media
cc3292be8bd83aba6054e420124adabcfa4e3a8b
[ "MIT" ]
1
2018-11-30T21:56:14.000Z
2018-11-30T21:56:14.000Z
settings/base.py
anthill-gaming/media
cc3292be8bd83aba6054e420124adabcfa4e3a8b
[ "MIT" ]
null
null
null
settings/base.py
anthill-gaming/media
cc3292be8bd83aba6054e420124adabcfa4e3a8b
[ "MIT" ]
null
null
null
from anthill.framework.utils.translation import translate_lazy as _ from anthill.platform.conf.settings import * import os # Build paths inside the application like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in ...
27
108
0.529568
54b51b30bb070d1462b530e3aafb5daba4e65245
2,787
py
Python
odmltables/gui/wizutils.py
fabianschlebusch/python-odmltables
90a7833516afe8864b40947f4a1757830a0dc44c
[ "BSD-3-Clause" ]
6
2017-10-27T16:59:53.000Z
2021-03-02T06:08:48.000Z
odmltables/gui/wizutils.py
fabianschlebusch/python-odmltables
90a7833516afe8864b40947f4a1757830a0dc44c
[ "BSD-3-Clause" ]
68
2016-01-26T10:48:16.000Z
2021-11-16T10:09:49.000Z
odmltables/gui/wizutils.py
fabianschlebusch/python-odmltables
90a7833516afe8864b40947f4a1757830a0dc44c
[ "BSD-3-Clause" ]
7
2015-11-24T12:40:18.000Z
2021-04-14T08:02:53.000Z
# -*- coding: utf-8 -*- import os, sys from PyQt5.QtWidgets import (QWizard, QMessageBox) from PyQt5.QtGui import QPixmap from PyQt5.QtCore import pyqtSlot, Qt try: import odmltables have_odmltables = True except: have_odmltables = False from .settings import Settings
32.406977
86
0.588805
54b6c94b65480166ee80c689e0b477e97f134499
25,440
py
Python
trainLib.py
dorukb/ceng445-trainSim
01af1c556dbce4e3f1c07fc16a21cd94cdeb7884
[ "MIT" ]
null
null
null
trainLib.py
dorukb/ceng445-trainSim
01af1c556dbce4e3f1c07fc16a21cd94cdeb7884
[ "MIT" ]
null
null
null
trainLib.py
dorukb/ceng445-trainSim
01af1c556dbce4e3f1c07fc16a21cd94cdeb7884
[ "MIT" ]
null
null
null
import math #constants and globals background = '0' NORTH = 0 EAST = 1 SOUTH = 2 WEST = 3 dirs = {0 : "NORTH", 1 : "EAST", 2 : "SOUTH", 3 : "WEST"}
39.564541
190
0.596502
54b7f3a8b8887e8d822b83c326d0049cfae95c7f
25,083
py
Python
nar_module/nar/preprocessing/nar_preprocess_cafebiz_2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
null
null
null
nar_module/nar/preprocessing/nar_preprocess_cafebiz_2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
9
2020-01-28T23:07:43.000Z
2022-02-10T00:36:23.000Z
nar_module/nar/preprocessing/nar_preprocess_cafebiz_2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
null
null
null
import argparse import glob import json import os import os.path import re import sys from collections import Counter, defaultdict from datetime import datetime from os import path import numpy as np import pandas as pd import tensorflow as tf from acr_module.acr.acr_module_service import get_all_file, load_json_conf...
42.950342
176
0.670653
54b976c7100ab785c654b0c7ca7597f8b6235530
2,979
py
Python
tests/integration/test_labels.py
spmistry/crux-python
15a6b705d1eec7e789f6f62819429f93e02349c1
[ "MIT" ]
null
null
null
tests/integration/test_labels.py
spmistry/crux-python
15a6b705d1eec7e789f6f62819429f93e02349c1
[ "MIT" ]
null
null
null
tests/integration/test_labels.py
spmistry/crux-python
15a6b705d1eec7e789f6f62819429f93e02349c1
[ "MIT" ]
null
null
null
import pytest # Negative Test case which verifies label search by searching unset labels without pagination. # Negative Test case which verifies label search by searching unset labels with pagination.
35.891566
94
0.700906
54b9924021536e75d5d98199ebdf2f58b7c84e9c
15,384
py
Python
bindings/python/cntk/utils/__init__.py
MSXC/CNTK
d223d48b411bc994acd465ed333c9f6bed64dd7f
[ "RSA-MD" ]
null
null
null
bindings/python/cntk/utils/__init__.py
MSXC/CNTK
d223d48b411bc994acd465ed333c9f6bed64dd7f
[ "RSA-MD" ]
null
null
null
bindings/python/cntk/utils/__init__.py
MSXC/CNTK
d223d48b411bc994acd465ed333c9f6bed64dd7f
[ "RSA-MD" ]
null
null
null
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== import sys import numbers import collections import copy import numpy as np from num...
35.528868
189
0.651586
54b9d0d77aa935ba65cfcd82b3fdde8db5a12f2f
1,457
py
Python
data/data_utils.py
ivankreso/LDN
76740ef77fcec851f8abc2380251a9491dc0cdc3
[ "MIT" ]
8
2020-03-28T15:42:39.000Z
2021-07-26T17:40:59.000Z
data/data_utils.py
ivankreso/LDN
76740ef77fcec851f8abc2380251a9491dc0cdc3
[ "MIT" ]
1
2021-08-19T08:52:19.000Z
2021-08-19T08:52:19.000Z
data/data_utils.py
ivankreso/LDN
76740ef77fcec851f8abc2380251a9491dc0cdc3
[ "MIT" ]
1
2021-12-06T08:05:59.000Z
2021-12-06T08:05:59.000Z
import math
30.354167
90
0.680165
54bbf057df21a564d7a670875ca4d351e87df738
1,181
py
Python
src/leetcode_932_beautiful_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_932_beautiful_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_932_beautiful_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 932 python3 # [932] Beautiful Array # Difficulty: Medium # https://leetcode.com/problems/beautiful-array # # An array nums of length n is beautiful if: # # nums is a permutation of the integers in the range [1, n]. # For every 0 <= i < j < n, there is no index k with i < k < j where 2 * nums[k] == nums[i] + nums...
21.87037
102
0.556308
54bc320185cf4b126b5fbdb33a31e831a7364c2c
1,209
py
Python
objectModel/Python/tests/cdm/cdm_collection/cdm_collection_helper_functions.py
aaron-emde/CDM
9472e9c7694821ac4a9bbe608557d2e65aabc73e
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/tests/cdm/cdm_collection/cdm_collection_helper_functions.py
aaron-emde/CDM
9472e9c7694821ac4a9bbe608557d2e65aabc73e
[ "CC-BY-4.0", "MIT" ]
3
2021-05-11T23:57:12.000Z
2021-08-04T05:03:05.000Z
objectModel/Python/tests/cdm/cdm_collection/cdm_collection_helper_functions.py
aaron-emde/CDM
9472e9c7694821ac4a9bbe608557d2e65aabc73e
[ "CC-BY-4.0", "MIT" ]
null
null
null
from cdm.objectmodel import CdmCorpusDefinition, CdmManifestDefinition from cdm.storage import LocalAdapter from cdm.enums import CdmObjectType def generate_manifest(local_root_path: str) -> 'CdmManifestDefinition': """ Creates a manifest used for the tests. """ cdmCorpus = CdmCorpusDefinition() ...
35.558824
127
0.746071
54bc883a34e91f4283ceaf8207e99c37307465c6
894
py
Python
asynchronous/py27/asynchronous/producer_consumer/async_eventlet.py
fs714/concurrency-example
fbff041804b9c46fb7f21ebbae22acff745c7b0c
[ "Apache-2.0" ]
null
null
null
asynchronous/py27/asynchronous/producer_consumer/async_eventlet.py
fs714/concurrency-example
fbff041804b9c46fb7f21ebbae22acff745c7b0c
[ "Apache-2.0" ]
null
null
null
asynchronous/py27/asynchronous/producer_consumer/async_eventlet.py
fs714/concurrency-example
fbff041804b9c46fb7f21ebbae22acff745c7b0c
[ "Apache-2.0" ]
1
2020-03-10T15:47:05.000Z
2020-03-10T15:47:05.000Z
import eventlet from eventlet.green import urllib2 import logging logging.basicConfig() logger = logging.getLogger(__file__) logger.setLevel(logging.DEBUG) if __name__ == '__main__': url = 'http://127.0.0.1/1' num_consumers = 10 num_tasks = 100 task_queue = eventlet.Queue() pool = eventlet.Gre...
21.285714
55
0.644295
54bcc1399279abf79ea8c42b52f38e4ad74979ae
1,155
py
Python
models.py
zhangjingqiang/qiang-tools
73fcb896bfec14f1ed668a1ef81526d80c80082f
[ "MIT" ]
null
null
null
models.py
zhangjingqiang/qiang-tools
73fcb896bfec14f1ed668a1ef81526d80c80082f
[ "MIT" ]
null
null
null
models.py
zhangjingqiang/qiang-tools
73fcb896bfec14f1ed668a1ef81526d80c80082f
[ "MIT" ]
null
null
null
from flask.ext.login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from app import db class Tool(db.Model): """ Tools details. """ __tablename__ = 'tools' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String())
26.25
73
0.665801
54bd473259faa4301d10d34795bb5bf05e6048e5
32,426
py
Python
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/controller_fs.py
etaivan/stx-config
281e1f110973f96e077645fb01f67b646fc253cc
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/controller_fs.py
etaivan/stx-config
281e1f110973f96e077645fb01f67b646fc253cc
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/controller_fs.py
etaivan/stx-config
281e1f110973f96e077645fb01f67b646fc253cc
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 UnitedStack Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licen...
40.481898
104
0.587923
54bd765684733907c0e0f4fdff1bc9c5e51272ef
1,298
py
Python
tests/test_label_smoothing_ce.py
waking95/easy-bert
576678343c251a134748941d1aa5e3368786337e
[ "MIT" ]
12
2021-12-15T06:08:28.000Z
2022-03-25T06:27:38.000Z
tests/test_label_smoothing_ce.py
waking95/easy-bert
576678343c251a134748941d1aa5e3368786337e
[ "MIT" ]
null
null
null
tests/test_label_smoothing_ce.py
waking95/easy-bert
576678343c251a134748941d1aa5e3368786337e
[ "MIT" ]
1
2022-02-10T02:59:51.000Z
2022-02-10T02:59:51.000Z
import unittest import torch from easy_bert.losses.label_smoothing_loss import LabelSmoothingCrossEntropy if __name__ == '__main__': unittest.main()
36.055556
101
0.523112
54be3891db6fb2756f21aef061add0f576fa4d9b
747
py
Python
Algorithms/Sort/Merge Sort/src.py
NikhilCodes/DSA-Warehouse
f68c3c7c092dc624381e956b065f849d738b5359
[ "MIT" ]
null
null
null
Algorithms/Sort/Merge Sort/src.py
NikhilCodes/DSA-Warehouse
f68c3c7c092dc624381e956b065f849d738b5359
[ "MIT" ]
null
null
null
Algorithms/Sort/Merge Sort/src.py
NikhilCodes/DSA-Warehouse
f68c3c7c092dc624381e956b065f849d738b5359
[ "MIT" ]
null
null
null
""" ALGORITHM : Merge Sort WORST CASE => { PERFORMANCE: O(n log(n)) SPACE: O(n) } """ if __name__ == '__main__': sorted_arr = merge_sort([8, 4, 2, 9, 1, 3]) print(sorted_arr)
20.189189
48
0.497992
54bf36b4e97ce13f93c4eda7288e2207a9d1c577
2,295
py
Python
locations/spiders/dollarama.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/dollarama.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/dollarama.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
import scrapy from locations.items import GeojsonPointItem from urllib.parse import urlencode from scrapy.selector import Selector from locations.hours import OpeningHours Days = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
33.26087
83
0.547277
54c063aa9c40b1e765ddd298550866419dd317e0
4,614
py
Python
faces/recognize_faces_video.py
rummens1337/vision-assignment
8735e95224be702f1bb33066eef80f098b347b1f
[ "MIT" ]
null
null
null
faces/recognize_faces_video.py
rummens1337/vision-assignment
8735e95224be702f1bb33066eef80f098b347b1f
[ "MIT" ]
null
null
null
faces/recognize_faces_video.py
rummens1337/vision-assignment
8735e95224be702f1bb33066eef80f098b347b1f
[ "MIT" ]
1
2020-01-06T09:55:35.000Z
2020-01-06T09:55:35.000Z
# import the necessary packages from imutils.video import VideoStream import face_recognition import imutils import pickle import time import cv2 import os # https://www.pyimagesearch.com/2018/06/18/face-recognition-with-opencv-python-and-deep-learning/ # https://www.pyimagesearch.com/2018/06/11/how-to-build-a-custom-f...
36.912
97
0.6114
54c067d1a064f439200439939a3af3a79e1fca5f
3,298
py
Python
pytint/machine_io.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
1
2020-08-14T19:41:45.000Z
2020-08-14T19:41:45.000Z
pytint/machine_io.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
pytint/machine_io.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
from pytint.interpreters import FiniteAutomaton from typing import List, Union, Dict, Iterable import collections import yaml def load_machine(yaml_input: str, machine_type: str = "", name: str = ""): # loads yaml from input data = yaml.safe_load(yaml_input) # if no type override, attempt to load type ...
36.644444
109
0.608854
54c1abcc8ecb4f60275606b22bbb22422b5b3be6
1,021
py
Python
dashboard/frontend/callbacks.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
1
2022-03-06T23:50:34.000Z
2022-03-06T23:50:34.000Z
dashboard/frontend/callbacks.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
4
2022-03-03T11:16:17.000Z
2022-03-20T15:53:37.000Z
dashboard/frontend/callbacks.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
null
null
null
import dash from dash.dependencies import Input, Output # type: ignore import datetime from treemap import generate_treemap, get_plot_data from app import app from store import store
31.90625
70
0.663075
54c3ac280575bb0ee6051627754ebf1784317751
4,095
py
Python
tms/useraccount/views.py
csagar131/TicketManagementSystem
d2c6b340dcb1d7607257d88dc5b931a0624a774b
[ "Apache-2.0" ]
null
null
null
tms/useraccount/views.py
csagar131/TicketManagementSystem
d2c6b340dcb1d7607257d88dc5b931a0624a774b
[ "Apache-2.0" ]
4
2021-06-04T23:51:17.000Z
2022-02-10T10:41:21.000Z
tms/useraccount/views.py
csagar131/TicketManagementSystem
d2c6b340dcb1d7607257d88dc5b931a0624a774b
[ "Apache-2.0" ]
1
2020-06-04T11:44:42.000Z
2020-06-04T11:44:42.000Z
from django.shortcuts import render from rest_framework.viewsets import ModelViewSet from useraccount.serializer import UserSerializer,AgentUserSerializer from rest_framework.views import APIView from useraccount.models import User from django.http.response import JsonResponse from django.template.loader import render_...
36.238938
114
0.60464
54c4b203b6a2600da692213b5eb8857816d71318
2,203
py
Python
ppocr/utils/special_character.py
ZacksTsang/PaddleOCR
c716553f6f369d191b91690a81936a19173a7c33
[ "Apache-2.0" ]
1
2021-08-12T17:16:02.000Z
2021-08-12T17:16:02.000Z
ppocr/utils/special_character.py
ZacksTsang/PaddleOCR
c716553f6f369d191b91690a81936a19173a7c33
[ "Apache-2.0" ]
null
null
null
ppocr/utils/special_character.py
ZacksTsang/PaddleOCR
c716553f6f369d191b91690a81936a19173a7c33
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -* # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
43.196078
213
0.576033
54c4dc3efeaaf5e89758e47b3cc255b10a88682a
1,160
py
Python
setup.py
ionata/django-unique-uploadto
da66ed30d6abd86566d9b141e3c48b10340740a2
[ "BSD-3-Clause" ]
null
null
null
setup.py
ionata/django-unique-uploadto
da66ed30d6abd86566d9b141e3c48b10340740a2
[ "BSD-3-Clause" ]
1
2017-11-21T22:11:24.000Z
2017-11-22T00:38:17.000Z
setup.py
ionata/django-unique-uploadto
da66ed30d6abd86566d9b141e3c48b10340740a2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, print_function, unicode_literals from setuptools import setup, find_packages from unique_uploadto import __version__ with open('README.rst', 'r') as f: readme = f.read() setup( name='django-unique-uploadto', version=__version__, descript...
27.619048
72
0.64569
54c84616a029f134346dc45645dd043f6f816a04
793
py
Python
scripts/python/helper/decoration.py
sulthonzh/zaruba
ec9262f43da17d86330da2c593b7da451aabd60f
[ "Apache-2.0" ]
null
null
null
scripts/python/helper/decoration.py
sulthonzh/zaruba
ec9262f43da17d86330da2c593b7da451aabd60f
[ "Apache-2.0" ]
null
null
null
scripts/python/helper/decoration.py
sulthonzh/zaruba
ec9262f43da17d86330da2c593b7da451aabd60f
[ "Apache-2.0" ]
null
null
null
import random normal="\033[0m" bold="\033[1m" faint="\033[2m" italic="\033[3m" underline="\033[4m" blinkSlow="\033[5m" blinkRapid="\033[6m" inverse="\033[7m" conceal="\033[8m" crossedOut="\033[9m" black="\033[30m" red="\033[31m" green="\033[32m" yellow="\033[33m" blue="\033[34m" magenta="\033[35m" cyan="\033[36m" whit...
20.333333
121
0.583859
49a498a0dfc278640dff975e47a36448f00bf3bc
2,918
py
Python
data_structures/tree/avl_tree.py
hongta/practice-python
52d5278ea5402ea77054bfa5c4bfdbdf81c9c963
[ "MIT" ]
null
null
null
data_structures/tree/avl_tree.py
hongta/practice-python
52d5278ea5402ea77054bfa5c4bfdbdf81c9c963
[ "MIT" ]
null
null
null
data_structures/tree/avl_tree.py
hongta/practice-python
52d5278ea5402ea77054bfa5c4bfdbdf81c9c963
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from tree_node import AVLTreeNode from binary_search_tree import BinarySearchTree if __name__ == '__main__': t = AVLTree() t.insert(10) t.insert(15) t.insert(20) t.insert(25) t.insert(30) p = t.search(20) print p, p.left, p.right, p.height,...
26.770642
78
0.59013
49a4e7b419d4d64776cdbda3fd3b82f70e450c6d
96
py
Python
ardget_app/apps.py
shumdeveloper/ardget
585a93ce24e747014f2cbde8daae600e26fbd835
[ "MIT" ]
null
null
null
ardget_app/apps.py
shumdeveloper/ardget
585a93ce24e747014f2cbde8daae600e26fbd835
[ "MIT" ]
null
null
null
ardget_app/apps.py
shumdeveloper/ardget
585a93ce24e747014f2cbde8daae600e26fbd835
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16
35
0.770833
49a74574e4d388966ade396ad88447197a6c63e8
1,944
py
Python
dynamic_rest/datastructures.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
690
2016-02-05T22:46:03.000Z
2022-03-28T18:59:49.000Z
dynamic_rest/datastructures.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
190
2015-03-06T16:57:21.000Z
2022-02-02T21:56:07.000Z
dynamic_rest/datastructures.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
117
2016-05-05T13:51:07.000Z
2022-02-28T18:25:56.000Z
"""This module contains custom data-structures.""" import six
29.907692
77
0.513374
49a7ee42b8f9f516686c7f73c30cfb6480597ce8
2,605
py
Python
functions.py
heEXDe/password_generator
c546c09be927abc2a02971cab5f2d19817208cda
[ "MIT" ]
null
null
null
functions.py
heEXDe/password_generator
c546c09be927abc2a02971cab5f2d19817208cda
[ "MIT" ]
null
null
null
functions.py
heEXDe/password_generator
c546c09be927abc2a02971cab5f2d19817208cda
[ "MIT" ]
null
null
null
# functions for actions import random import string import GUI
42.016129
103
0.571209
49a800c2275f46ea1981d8aa809ee37691f78025
1,330
py
Python
lottery/branch/retrain.py
chenw23/open_lth
2ce732fe48abd5a80c10a153c45d397b048e980c
[ "MIT" ]
509
2020-05-07T16:45:46.000Z
2022-03-28T13:41:36.000Z
lottery/branch/retrain.py
chenw23/open_lth
2ce732fe48abd5a80c10a153c45d397b048e980c
[ "MIT" ]
12
2020-06-10T10:07:09.000Z
2022-02-03T01:57:32.000Z
lottery/branch/retrain.py
chenw23/open_lth
2ce732fe48abd5a80c10a153c45d397b048e980c
[ "MIT" ]
103
2020-05-07T21:40:06.000Z
2022-03-11T19:07:55.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import datasets.registry from foundations import hparams from foundations.step import Step from lottery.branch import base import models.regist...
35.945946
118
0.72406
49a855768d0faa6b5929b201dd9c0e69c1e8d0cf
1,860
py
Python
Sumo_programs/probablyGoodCode/Lyall's_Test_File.py
senornosketchy/ENGG1000-R2R
5c6880e81560079d22c8dbbadd9c7fdd1e585aa4
[ "MIT" ]
null
null
null
Sumo_programs/probablyGoodCode/Lyall's_Test_File.py
senornosketchy/ENGG1000-R2R
5c6880e81560079d22c8dbbadd9c7fdd1e585aa4
[ "MIT" ]
null
null
null
Sumo_programs/probablyGoodCode/Lyall's_Test_File.py
senornosketchy/ENGG1000-R2R
5c6880e81560079d22c8dbbadd9c7fdd1e585aa4
[ "MIT" ]
null
null
null
""" Created on Thu Mar 22 15:07:43 2018 @author: Tanvee First attempt at an program for the EV3 bot. The main aim of this is to develop an algorithm to search clockwise for and identify close objects, before rushing to meet them. """ print(0) from time import sleep import sys, os # Import the ev3dev specific library f...
21.882353
98
0.716667
49a87d079120bfbcccec5530adc7e03acb1cb9a1
13,984
py
Python
tests/test_modelgen.py
PipGrylls/sqlalchemy-modelgen
988e7b39fa4f8b2ddac35792c21e147e8260df17
[ "MIT" ]
18
2021-04-01T20:32:42.000Z
2021-06-01T05:24:27.000Z
tests/test_modelgen.py
PipGrylls/sqlalchemy-modelgen
988e7b39fa4f8b2ddac35792c21e147e8260df17
[ "MIT" ]
null
null
null
tests/test_modelgen.py
PipGrylls/sqlalchemy-modelgen
988e7b39fa4f8b2ddac35792c21e147e8260df17
[ "MIT" ]
1
2021-11-23T01:17:18.000Z
2021-11-23T01:17:18.000Z
from unittest import TestCase, mock from modelgen import ModelGenerator, Base from os import getcwd, path
44.820513
101
0.661971
49a8f69931a09da4e91b5822491e86963189f463
223
py
Python
papermerge/apps/e_invoice/apps.py
francescocarzaniga/e_invoice_papermerge
e7a4a3fdab4263c02983b638f873db8d11e89041
[ "Apache-2.0" ]
1
2021-02-15T06:38:32.000Z
2021-02-15T06:38:32.000Z
papermerge/apps/e_invoice/apps.py
francescocarzaniga/e_invoice_papermerge
e7a4a3fdab4263c02983b638f873db8d11e89041
[ "Apache-2.0" ]
null
null
null
papermerge/apps/e_invoice/apps.py
francescocarzaniga/e_invoice_papermerge
e7a4a3fdab4263c02983b638f873db8d11e89041
[ "Apache-2.0" ]
1
2021-02-15T06:38:35.000Z
2021-02-15T06:38:35.000Z
from django.apps import AppConfig # def ready(self): # from papermerge.apps.data_retention import signals # noqa
22.3
67
0.713004
49a92b917ad9d386c28bdce310accefac0f211c6
2,075
py
Python
handler_loud/chat.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
null
null
null
handler_loud/chat.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
1
2021-11-04T13:47:28.000Z
2021-11-04T13:47:28.000Z
handler_loud/chat.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
1
2021-10-20T14:44:19.000Z
2021-10-20T14:44:19.000Z
from logging import getLogger from random import randrange import re from simone.handlers import Registry, exclude_private from .models import Shout # Based loosely on https://github.com/desert-planet/hayt/blob/master/scripts/loud.coffee Registry.register_handler(Loud())
33.467742
88
0.578313
49a9a3178fb4042aad889e7fe746a420d38ecae5
1,013
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/web-crawler.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/web-crawler.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/web-crawler.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(|V| + |E|) # Space: O(|V|) # """ # This is HtmlParser's API interface. # You should not implement it, or speculate about its implementation # """
25.325
69
0.515301
49aa6dbb7d625a529dc7cc00fc711016b4a758db
3,614
py
Python
scripts/collect.py
oveis/DeepVideoFaceSwap
e507f94d4f5d74c36e41c386c6fb14bb745a4885
[ "MIT" ]
5
2019-05-17T11:54:04.000Z
2020-10-06T18:45:17.000Z
scripts/collect.py
oveis/DeepVideoFaceSwap
e507f94d4f5d74c36e41c386c6fb14bb745a4885
[ "MIT" ]
null
null
null
scripts/collect.py
oveis/DeepVideoFaceSwap
e507f94d4f5d74c36e41c386c6fb14bb745a4885
[ "MIT" ]
5
2019-06-05T00:20:24.000Z
2019-09-15T15:40:23.000Z
#!/usr/bin python3 """ The script to collect training data """ import logging import os import cv2 as cv import numpy as np from google_images_download import google_images_download as gid from lib.utils import get_folder from os.path import exists, isfile, join logger = logging.getLogger(__name__) # pylint: disable...
36.505051
104
0.649972
49aacdd586494ba24976083e9c7c711f99d594ea
1,132
py
Python
data_split.py
TalSchuster/FewRel
af68f52b13977ca29808c38a54995363f76cdcad
[ "MIT" ]
null
null
null
data_split.py
TalSchuster/FewRel
af68f52b13977ca29808c38a54995363f76cdcad
[ "MIT" ]
null
null
null
data_split.py
TalSchuster/FewRel
af68f52b13977ca29808c38a54995363f76cdcad
[ "MIT" ]
null
null
null
import os import random from shutil import copyfile import json random.seed(123) ROOT_PATH = './data/' k = 5 target_path = './data/wiki_5_splits/' ''' Splits the training set to 5 folds. In each split, the held out set is used for test. ''' path = os.path.join(ROOT_PATH, 'train_wiki' + '.json') data = json.load(op...
25.155556
88
0.655477
49aaf3536a9b3013f2535a7951571b5299a8099f
604
py
Python
heisen/core/__init__.py
HeisenCore/heisen
0cd4d27822960553a8e83a72c7dfeefa76e65c06
[ "MIT" ]
5
2016-08-30T07:51:08.000Z
2021-09-13T11:30:05.000Z
heisen/core/__init__.py
HeisenCore/heisen
0cd4d27822960553a8e83a72c7dfeefa76e65c06
[ "MIT" ]
15
2016-09-15T19:21:24.000Z
2016-10-22T16:22:15.000Z
heisen/core/__init__.py
HeisenCore/heisen
0cd4d27822960553a8e83a72c7dfeefa76e65c06
[ "MIT" ]
null
null
null
from heisen.config import settings from jsonrpclib.request import ConnectionPool rpc_call = get_rpc_connection()
27.454545
80
0.692053
49abd960ef01b21e1a602cfce947ec5f7f32f14e
3,182
py
Python
pychron/processing/analysis_graph.py
aelamspychron/pychron
ad87c22b0817c739c7823a24585053041ee339d5
[ "Apache-2.0" ]
null
null
null
pychron/processing/analysis_graph.py
aelamspychron/pychron
ad87c22b0817c739c7823a24585053041ee339d5
[ "Apache-2.0" ]
20
2020-09-09T20:58:39.000Z
2021-10-05T17:48:37.000Z
pychron/processing/analysis_graph.py
aelamspychron/pychron
ad87c22b0817c739c7823a24585053041ee339d5
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2013 Jake Ross # # 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/licens...
33.851064
100
0.653363
49ac5028ee971f3e584f2c491889fc4e4b16901b
3,023
py
Python
stub/nginx-status-stub.py
geld-tech/nginx-monitor-dashboard
3fcd3bd184a0348095c4f4ec91a46ab98ee0ca80
[ "Apache-2.0" ]
1
2018-07-30T14:01:36.000Z
2018-07-30T14:01:36.000Z
stub/nginx-status-stub.py
geld-tech/nginx-monitor-dashboard
3fcd3bd184a0348095c4f4ec91a46ab98ee0ca80
[ "Apache-2.0" ]
null
null
null
stub/nginx-status-stub.py
geld-tech/nginx-monitor-dashboard
3fcd3bd184a0348095c4f4ec91a46ab98ee0ca80
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ NGINX Status Stub Returns sample resources usage """ import logging import logging.handlers import random from optparse import OptionParser from flask import Flask app = Flask(__name__) app.debug = True # Initialisation logging.basicConfig(format='[%(asctime)-15s] [%(threadName)s] %(...
50.383333
1,124
0.700629
49ad0529acc7b30e818083fbddf61cedb7ec9149
1,616
py
Python
test_question4.py
fmakawa/Practice
7f6eaa1dde4e46088ca5dcee76de1bb56a363238
[ "MIT" ]
null
null
null
test_question4.py
fmakawa/Practice
7f6eaa1dde4e46088ca5dcee76de1bb56a363238
[ "MIT" ]
null
null
null
test_question4.py
fmakawa/Practice
7f6eaa1dde4e46088ca5dcee76de1bb56a363238
[ "MIT" ]
null
null
null
""" Question 4 Level 1 Question: Write a program which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number. Suppose the following input is supplied to the program: 34,67,55,33,12,98 Then, the output should be: ['34', '67', '55', '33', '12', '98'] ('34'...
36.727273
141
0.61448
49ad08a13c544d4263d6239603d117433df3bf65
53
py
Python
src/poliastro/_math/integrate.py
DhruvJ22/poliastro
ac5fafc6d054b2c545e111e5a6aa32259998074a
[ "MIT" ]
8
2015-05-09T17:21:57.000Z
2020-01-28T06:59:18.000Z
src/poliastro/_math/integrate.py
DhruvJ22/poliastro
ac5fafc6d054b2c545e111e5a6aa32259998074a
[ "MIT" ]
4
2015-12-29T13:08:01.000Z
2019-12-27T12:58:04.000Z
src/poliastro/_math/integrate.py
DhruvJ22/poliastro
ac5fafc6d054b2c545e111e5a6aa32259998074a
[ "MIT" ]
1
2016-10-05T08:34:44.000Z
2016-10-05T08:34:44.000Z
from scipy.integrate import quad __all__ = ["quad"]
13.25
32
0.735849
49ad2866726183e18afb70540beb33954b2be143
543
py
Python
app/tasks/uwu/uwu.py
tahosa/discord-util-bot
2f261c5ae06da8a62e72502b53341720437860f5
[ "MIT" ]
null
null
null
app/tasks/uwu/uwu.py
tahosa/discord-util-bot
2f261c5ae06da8a62e72502b53341720437860f5
[ "MIT" ]
null
null
null
app/tasks/uwu/uwu.py
tahosa/discord-util-bot
2f261c5ae06da8a62e72502b53341720437860f5
[ "MIT" ]
1
2022-02-09T04:16:54.000Z
2022-02-09T04:16:54.000Z
import logging import discord import discord.ext.commands as commands _LOG = logging.getLogger('discord-util').getChild("uwu")
31.941176
110
0.685083
49add70868769fd8f813dafc8912a925207ca004
4,011
py
Python
rocket.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
rocket.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
rocket.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
import math import os from curses_tools import draw_frame, get_frame_size def _limit(value, min_value, max_value): """Limit value by min_value and max_value.""" if value < min_value: return min_value if value > max_value: return max_value return value def _apply_acceleration(speed,...
31.335938
115
0.607828
49ae3d28975be04fc1299eea9d4febbbbbb376de
7,963
py
Python
src/roll.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
null
null
null
src/roll.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
null
null
null
src/roll.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
1
2022-03-08T22:07:50.000Z
2022-03-08T22:07:50.000Z
import secrets import asyncio from datetime import datetime, timedelta import discord from discord.ext import commands from database import DatabasePersonality, DatabaseDeck #### Utilities functions #### def min_until_next_claim(id_server, id_user): """Return minutes until next claim (0 if the user can claim ...
41.259067
154
0.615346
49ae4cab0439ba556dfe9b168c615e0466cf0551
2,195
py
Python
test.py
mltnhm/sr-turtle
d839eeb50e4ba70cfc2a4070c9f6fda2f0b19ca2
[ "MIT" ]
1
2020-04-16T18:06:13.000Z
2020-04-16T18:06:13.000Z
test.py
mltnhm/sr-turtle
d839eeb50e4ba70cfc2a4070c9f6fda2f0b19ca2
[ "MIT" ]
3
2019-05-11T20:39:31.000Z
2019-11-13T10:51:59.000Z
test.py
mltnhm/sr-turtle
d839eeb50e4ba70cfc2a4070c9f6fda2f0b19ca2
[ "MIT" ]
1
2019-11-12T08:02:52.000Z
2019-11-12T08:02:52.000Z
from __future__ import print_function import time from sr.robot import * SEARCHING = "SEARCHING" DRIVING = "DRIVING" R = Robot() state = SEARCHING while True: if state == SEARCHING: print("Searching for gold tokens...") tokens = get_gold_tokens() print(tokens) if len(tokens) > ...
25.229885
75
0.491116
49aebc3c829e124d35af1e1fc14ed2a19ad3ba06
9,218
py
Python
ATIVIDAS UF/exemplos.py
alverad-katsuro/Python
6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38
[ "MIT" ]
null
null
null
ATIVIDAS UF/exemplos.py
alverad-katsuro/Python
6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38
[ "MIT" ]
null
null
null
ATIVIDAS UF/exemplos.py
alverad-katsuro/Python
6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38
[ "MIT" ]
null
null
null
from math import log
43.895238
129
0.653179
49af0bc491e51d1946b18c865a7ad51bc62f12c7
15,786
py
Python
supvisors/tests/test_mainloop.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
66
2017-01-05T11:28:34.000Z
2022-03-04T08:42:01.000Z
supvisors/tests/test_mainloop.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
36
2016-12-30T10:46:58.000Z
2022-01-09T22:56:10.000Z
supvisors/tests/test_mainloop.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
12
2017-03-04T04:53:51.000Z
2022-01-28T13:03:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ====================================================================== # Copyright 2017 Julien LE CLEACH # # 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 Lice...
43.607735
110
0.705752
49afc71691a68c9b40e3421c08e29b8368b54b60
2,815
py
Python
wolf_control/scripts/mission.py
ncsurobotics/SW8S-ROS
9f7f5811fe1a1a8d5d0de0b791ce757fcaeb5759
[ "MIT" ]
null
null
null
wolf_control/scripts/mission.py
ncsurobotics/SW8S-ROS
9f7f5811fe1a1a8d5d0de0b791ce757fcaeb5759
[ "MIT" ]
null
null
null
wolf_control/scripts/mission.py
ncsurobotics/SW8S-ROS
9f7f5811fe1a1a8d5d0de0b791ce757fcaeb5759
[ "MIT" ]
1
2022-03-30T19:12:52.000Z
2022-03-30T19:12:52.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist, TransformStamped from std_msgs.msg import String from enum import Enum import tf2_ros import math if __name__ == '__main__': try: mission() except rospy.ROSInterruptException: pass
38.040541
105
0.596448
49b0052d2675e4f9dc69452f3b5d084691e4a664
19,202
py
Python
tests/tests/test_api_management.py
MaciejTe/useradm
4962000db94bc7d9e80b81c4389f6f769d0d062a
[ "Apache-2.0" ]
8
2017-02-27T08:58:08.000Z
2020-05-25T14:37:24.000Z
tests/tests/test_api_management.py
MaciejTe/useradm
4962000db94bc7d9e80b81c4389f6f769d0d062a
[ "Apache-2.0" ]
263
2016-11-17T15:02:26.000Z
2022-03-31T10:04:09.000Z
tests/tests/test_api_management.py
MaciejTe/useradm
4962000db94bc7d9e80b81c4389f6f769d0d062a
[ "Apache-2.0" ]
25
2016-11-16T15:45:38.000Z
2020-12-19T09:56:16.000Z
#!/usr/bin/python # Copyright 2021 Northern.tech AS # # 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 ap...
38.327345
86
0.672638
49b03158777693b6348d205c910ad771b55e53ea
1,167
py
Python
scripts/convert_to_bed.py
Lila14/multimds
e54642e0ae47592321352f931f534881ca57d888
[ "MIT" ]
1
2019-10-29T12:33:57.000Z
2019-10-29T12:33:57.000Z
scripts/convert_to_bed.py
Lila14/multimds
e54642e0ae47592321352f931f534881ca57d888
[ "MIT" ]
null
null
null
scripts/convert_to_bed.py
Lila14/multimds
e54642e0ae47592321352f931f534881ca57d888
[ "MIT" ]
null
null
null
import os chrom_bins = {} with open("GSE88952_Sc_Su.32000.bed") as in_file: for line in in_file: line = line.strip().split() chrom_bins[line[3]] = "{}\t{}\t{}".format(line[0], line[1], line[2]) in_file.close() if not os.path.isfile("ctrl_32kb.bed"): with open("ctrl_32kb.bed", "w") as out_file: with open("ct...
29.175
71
0.652956
49b1fd488e00bd5cbf7211a994c7ac528083422a
21,956
py
Python
xinshuo_visualization/prob_stat_vis.py
xinshuoweng/Xinshuo_PyToolbox
ce4cf0398f24c5a611af9d94dc0bf2a9104a3716
[ "MIT" ]
31
2020-03-05T12:27:21.000Z
2022-03-07T04:00:18.000Z
xinshuo_visualization/prob_stat_vis.py
xinshuoweng/Xinshuo_PyToolbox
ce4cf0398f24c5a611af9d94dc0bf2a9104a3716
[ "MIT" ]
null
null
null
xinshuo_visualization/prob_stat_vis.py
xinshuoweng/Xinshuo_PyToolbox
ce4cf0398f24c5a611af9d94dc0bf2a9104a3716
[ "MIT" ]
12
2020-07-06T05:06:58.000Z
2021-11-18T14:43:20.000Z
# Author: Xinshuo Weng # email: xinshuo.weng@gmail.com import matplotlib.pyplot as plt, numpy as np # import seaborn as sns # from pandas import DataFrame # from sklearn.neighbors import NearestNeighbors from terminaltables import AsciiTable from collections import Counter from .private import save_vis_close_helper, ...
49.674208
269
0.660867
49b2849f5a27a9f4b798aac2f6c1149060ada338
96
py
Python
first_project/pizza_store/apps.py
itamaro/django-zero-to-cloud
0b0a4f75bf6a27855b00a88aebf93471a38e0c3c
[ "Apache-2.0" ]
null
null
null
first_project/pizza_store/apps.py
itamaro/django-zero-to-cloud
0b0a4f75bf6a27855b00a88aebf93471a38e0c3c
[ "Apache-2.0" ]
null
null
null
first_project/pizza_store/apps.py
itamaro/django-zero-to-cloud
0b0a4f75bf6a27855b00a88aebf93471a38e0c3c
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig
16
34
0.770833
49b384eb266010cb19d2dcb98f62539f08a56ecd
2,530
py
Python
bin/sweep_rhoref.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
null
null
null
bin/sweep_rhoref.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
28
2019-03-29T13:34:57.000Z
2019-07-04T09:27:07.000Z
bin/sweep_rhoref.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
null
null
null
"""Vary the rhoref parameter to find a sane value. Copyright 2019 Simulation Lab University of Freiburg Author: Lukas Elflein <elfleinl@cs.uni-freiburg.de> """ from __future__ import print_function import os import shutil #import multiprocessing #import sys import random from loop_cost_functions import calc_cost_fun...
28.75
84
0.617787
49b5f0ea075bbb7b79a2d40b2e4b0bdffec0743f
12,388
py
Python
weasyl/test/web/test_site_updates.py
sl1-1/weasyl
d4f6bf3e33b85a2289a451d95d5b90ff24f5d539
[ "Apache-2.0" ]
1
2019-02-15T04:21:48.000Z
2019-02-15T04:21:48.000Z
weasyl/test/web/test_site_updates.py
sl1-1/weasyl
d4f6bf3e33b85a2289a451d95d5b90ff24f5d539
[ "Apache-2.0" ]
254
2017-12-23T19:36:43.000Z
2020-04-14T21:46:13.000Z
weasyl/test/web/test_site_updates.py
sl1-1/weasyl
d4f6bf3e33b85a2289a451d95d5b90ff24f5d539
[ "Apache-2.0" ]
1
2017-12-23T18:42:16.000Z
2017-12-23T18:42:16.000Z
from __future__ import absolute_import, unicode_literals import pytest from libweasyl import staff from libweasyl.legacy import UNIXTIME_OFFSET from weasyl import errorcode from weasyl import siteupdate from weasyl.define import sessionmaker from weasyl.test import db_utils _FORM = { u'title': u'Title', u'c...
39.705128
144
0.690265
49b63c647e63040901947f17755b744a1b67eb27
298
py
Python
17_Greedy/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
17_Greedy/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
17_Greedy/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
import sys N = int(sys.stdin.readline()) dis = list(map(int, sys.stdin.readline().split())) coin = list(map(int, sys.stdin.readline().split())) use_coin = coin[0] tot = dis[0] * use_coin for i in range(1, N - 1): if coin[i] < use_coin: use_coin = coin[i] tot += dis[i] * use_coin print(tot)
19.866667
51
0.64094
49b84672d25848b03244c392641967f515178752
1,395
py
Python
examples/tx_rpc_client_ssl.py
jakm/txmsgpackrpc
9ff15fd7a7cd412d246d4e4937a5c56365f0d6be
[ "MIT" ]
18
2015-01-19T15:27:02.000Z
2018-12-29T17:30:36.000Z
examples/tx_rpc_client_ssl.py
jakm/txmsgpackrpc
9ff15fd7a7cd412d246d4e4937a5c56365f0d6be
[ "MIT" ]
6
2015-05-27T11:28:18.000Z
2016-12-19T06:35:55.000Z
examples/tx_rpc_client_ssl.py
jakm/txmsgpackrpc
9ff15fd7a7cd412d246d4e4937a5c56365f0d6be
[ "MIT" ]
4
2015-03-24T22:18:27.000Z
2018-02-05T18:12:45.000Z
from twisted.internet import defer, reactor if __name__ == '__main__': reactor.callWhenRunning(main) reactor.run()
27.352941
87
0.387097
49ba5224fd8503eb5f417c4656d1970b4252f78d
714
py
Python
currency_converter.py
patricianicolentan/currency-converters
e398796c99a0bb2a16fba9888baed0e289884237
[ "MIT" ]
null
null
null
currency_converter.py
patricianicolentan/currency-converters
e398796c99a0bb2a16fba9888baed0e289884237
[ "MIT" ]
null
null
null
currency_converter.py
patricianicolentan/currency-converters
e398796c99a0bb2a16fba9888baed0e289884237
[ "MIT" ]
null
null
null
# Converts user-defined currencies using Google import webbrowser, os, selenium from selenium import webdriver driver = webdriver.Firefox() headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} currencyX = input("O...
39.666667
149
0.710084
49bc98db6539f3a16066fd5753ae5ccc2e439eb8
1,107
py
Python
tests/test_dht.py
fakegit/stilio
cf198b8ccadc7dcadc462ce83b801af00ef4e2f2
[ "Apache-2.0" ]
71
2019-10-09T17:18:12.000Z
2022-02-26T12:15:53.000Z
tests/test_dht.py
zinsking/stilio
eade3c1993e185bef53fa25b4e12fe8be330251c
[ "Apache-2.0" ]
3
2019-10-16T17:52:48.000Z
2021-12-01T16:50:18.000Z
tests/test_dht.py
zinsking/stilio
eade3c1993e185bef53fa25b4e12fe8be330251c
[ "Apache-2.0" ]
11
2020-01-21T09:09:14.000Z
2022-03-27T12:05:36.000Z
from stilio.crawler.dht.node import Node
31.628571
60
0.581752
49bd3fd869f70ef4d24196d954aa248d999405b6
714
py
Python
04_threading_yield.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
2
2021-05-10T13:44:15.000Z
2022-03-16T20:20:39.000Z
04_threading_yield.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
1
2021-05-17T16:11:54.000Z
2021-05-19T19:38:50.000Z
04_threading_yield.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
2
2021-05-17T16:36:12.000Z
2022-03-18T15:07:14.000Z
import napari import time from napari._qt.qthreading import thread_worker import numpy as np # create a viewer window viewer = napari.Viewer() # https://napari.org/guides/stable/threading.html def update_layer(image): """ Updates the image in the layer 'result' or adds this layer. """ try: ...
20.4
49
0.676471
49bec7c54696e35577e6576d879d884656bd76e8
1,937
py
Python
wordonhd/ApiException.py
Mechazawa/WordOn-HD-Bot
d5a9dedd3d548ad1a9b33f49646e532bf511dd3e
[ "BSD-2-Clause" ]
null
null
null
wordonhd/ApiException.py
Mechazawa/WordOn-HD-Bot
d5a9dedd3d548ad1a9b33f49646e532bf511dd3e
[ "BSD-2-Clause" ]
null
null
null
wordonhd/ApiException.py
Mechazawa/WordOn-HD-Bot
d5a9dedd3d548ad1a9b33f49646e532bf511dd3e
[ "BSD-2-Clause" ]
null
null
null
from enum import Enum from requests import Response from urllib.parse import unquote import json
28.485294
87
0.661848
49c08ac397715e801d537d9aef1fa2cc32d852d3
3,915
py
Python
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
null
null
null
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
null
null
null
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
1
2021-06-27T15:49:18.000Z
2021-06-27T15:49:18.000Z
""" This module provides a ``CompositePKModel`` which allows for basic retrieval and saving of models with composite keys. It is limited to the above tasks, and any use of the model past this is not guaranteed to work. A model with composite PK should look something like this:: from composite_pk import compos...
32.090164
89
0.614049
49c27444ea8191b6871d22350e36ce9770315509
752
py
Python
qurry/libraries/standard_library/constructs/gaussian.py
LSaldyt/curry
9004a396ec2e351aa143a10a53156649a6747343
[ "MIT" ]
11
2018-07-28T17:08:23.000Z
2019-02-08T03:04:03.000Z
qurry/libraries/standard_library/constructs/gaussian.py
LSaldyt/Qurry
9004a396ec2e351aa143a10a53156649a6747343
[ "MIT" ]
33
2019-07-09T09:46:44.000Z
2019-09-23T23:44:37.000Z
qurry/libraries/standard_library/constructs/gaussian.py
LSaldyt/Qurry
9004a396ec2e351aa143a10a53156649a6747343
[ "MIT" ]
4
2019-05-28T01:27:49.000Z
2019-12-26T18:01:51.000Z
from math import erf, sqrt from functools import partial from ..library.multinomial import multinomial, to_multinomial def gaussian(mu, sigma, block, kernel=None): ''' Construct to create a discrete approximation of the gaussian distribution using mu and sigma (gaussian 0 1 blocka) ''' return mult...
34.181818
133
0.668883
49c3520395affa81361da9069657257acb15bac3
8,299
py
Python
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
import numpy as np import torch import time from scipy import optimize from scipy.stats import norm import tmac.probability_distributions as tpd import tmac.fourier as tfo def tmac_ac(red_np, green_np, optimizer='BFGS', verbose=False, truncate_freq=False): """ Implementation of the Two-channel motion artifact cor...
49.106509
156
0.662128
49c41f791b3306b65a7220115c0864d09f5d6134
2,166
py
Python
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
5
2020-10-14T14:10:27.000Z
2020-11-23T12:46:08.000Z
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
5
2020-10-14T18:57:37.000Z
2021-10-21T11:10:12.000Z
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
1
2021-12-01T08:55:28.000Z
2021-12-01T08:55:28.000Z
from arguments import get_args import numpy as np from network.models import MLP_Net from utils.utils import get_env_params import torch import os, gym """ script to watch the demo of the ESIL """ # process the inputs if __name__ == '__main__': args = get_args() # create environment env = gym.make(args.e...
40.111111
96
0.636657
49c45451bcf8f4588b0bba3456a64c9403ea4bc6
1,071
py
Python
kickbase_api/models/league_user_stats.py
jhelgert/kickbase-api-python
6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2
[ "MIT" ]
7
2020-08-17T07:20:30.000Z
2022-02-03T19:21:53.000Z
kickbase_api/models/league_user_stats.py
jhelgert/kickbase-api-python
6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2
[ "MIT" ]
4
2020-11-01T10:39:11.000Z
2021-07-30T12:20:52.000Z
kickbase_api/models/league_user_stats.py
jhelgert/kickbase-api-python
6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2
[ "MIT" ]
4
2020-11-01T09:12:39.000Z
2021-08-23T13:25:00.000Z
from datetime import datetime from kickbase_api.models._transforms import parse_date, parse_key_value_array_to_dict from kickbase_api.models.base_model import BaseModel from kickbase_api.models.league_user_season_stats import LeagueUserSeasonStats
32.454545
104
0.655462
49c52e67e91490b5205014ce1748575c1b06124d
9,647
py
Python
ocradmin/lib/fcrepo/http/interfaces.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
2
2015-03-30T16:36:51.000Z
2016-06-15T01:39:47.000Z
ocradmin/lib/fcrepo/http/interfaces.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
2
2021-06-10T17:43:54.000Z
2021-12-13T19:40:08.000Z
ocradmin/lib/fcrepo/http/interfaces.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
1
2015-11-08T00:40:11.000Z
2015-11-08T00:40:11.000Z
""" Interfaces for FCRepoRequestFactory, FCRepoResponse and FCRepoResponseBody. """ from exceptions import NotImplementedError # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ...
35.996269
79
0.59604
49c547bb09c7eed025dfa278cd31af58e1182d17
4,397
py
Python
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
2
2019-07-18T18:35:31.000Z
2021-09-12T14:00:58.000Z
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
1
2020-04-26T04:22:26.000Z
2020-05-11T08:54:44.000Z
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
null
null
null
#utf8 from __future__ import print_function, division import subprocess import os import os.path import sys import time default_tmp_mesh_filename = '/tmp/Mesh_1.med' # salome 9.x may be too new for this script, some version released in 2018 is better # salome_app = '/media/sf_OneDrive/Salome-9.8.0/salome' salome_app =...
43.97
120
0.705254
49c7ae5b76fbf1b02e8d130eadfb4143e44dcc80
8,141
py
Python
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
3
2020-09-23T13:06:41.000Z
2022-01-14T10:14:20.000Z
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
65
2020-09-23T13:22:41.000Z
2022-03-17T11:02:42.000Z
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
4
2020-09-25T11:28:45.000Z
2021-11-01T12:00:13.000Z
"""Values for controlled vocabularies from ENA. Taken from - https://ena-docs.readthedocs.io/en/latest/submit/reads/webin-cli.html """ # Constants for platform definitions. LS454 = "LS454" ILLUMINA = "ILLUMINA" PACBIO_SMRT = "PACBIO_SMRT" IONTORRENT = "ION_TORRENT" CAPILLARY = "CAPILLARY" ONT = "OXFOR...
27.59661
91
0.737624
49c885495b8b9d85f2a2df00b05e024d355e6e0a
1,463
py
Python
analytics/utils.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
10
2015-01-25T20:29:55.000Z
2020-12-08T21:35:09.000Z
analytics/utils.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
3
2018-05-15T06:28:20.000Z
2021-03-30T17:47:45.000Z
analytics/utils.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
6
2017-07-03T16:28:29.000Z
2020-06-15T19:10:45.000Z
""" Copyright 2012 Numan Sachwani <numan@7Geese.com> This file is provided to you 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...
32.511111
74
0.699932
49c8b96abc3f198aa66587406ab8b7e9c78fd259
31
py
Python
lemkelcp/__init__.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
10
2019-03-17T19:37:25.000Z
2022-01-02T04:29:05.000Z
lemkelcp/__init__.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
1
2019-09-25T09:32:49.000Z
2021-12-28T05:05:55.000Z
lemkelcp/__init__.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
4
2019-02-24T11:49:10.000Z
2020-06-06T14:07:11.000Z
from .lemkelcp import lemkelcp
15.5
30
0.83871
49c93ee339debd703889e1a8187ecdfd356689ca
1,999
py
Python
settings.py
ArneBinder/Pytorch-LRP
c17902138f1d560f1f5d38f401ac856e071a5800
[ "BSD-3-Clause" ]
117
2019-03-19T08:47:03.000Z
2022-03-31T04:14:51.000Z
settings.py
ArneBinder/Pytorch-LRP
c17902138f1d560f1f5d38f401ac856e071a5800
[ "BSD-3-Clause" ]
10
2019-09-15T14:59:43.000Z
2022-03-15T14:18:02.000Z
settings.py
ArneBinder/Pytorch-LRP
c17902138f1d560f1f5d38f401ac856e071a5800
[ "BSD-3-Clause" ]
49
2019-03-19T08:47:03.000Z
2021-11-30T01:02:04.000Z
""" Settings for re-running the experiments from the paper "Layer-wise relevance propagation for explaining deep neural network decisions in MRI-based Alzheimers disease classification". Please note that you need to download the ADNI data from http://adni.loni.usc.edu/ and preprocess it using https://github.com/ANTs...
40.795918
81
0.758379
49ca8eabe12b4dbe3823135f9cccd4003e5ec8f9
274
py
Python
compiler_test.py
zpcore/ACOW
9d9186eb28af3e5e1242621457f36d5a7910366a
[ "MIT" ]
null
null
null
compiler_test.py
zpcore/ACOW
9d9186eb28af3e5e1242621457f36d5a7910366a
[ "MIT" ]
null
null
null
compiler_test.py
zpcore/ACOW
9d9186eb28af3e5e1242621457f36d5a7910366a
[ "MIT" ]
null
null
null
''' # Test the compiler ''' from ACOW import * data = ''' a1 U[1,2] !a0&G[1,3]a3 ''' print('MTL Formula:',data) # Test lex print('\nLex Test:') lexer.input(data) for tok in lexer: print(tok) # Test parser print('\nParser Test:') result = parser.parse(data) print(result)
13.7
27
0.645985
49caba94d9ddd16a821b2ba8d9ea2e815b9e25e0
1,292
py
Python
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
import board import time import random import usb_hid from adafruit_hid.mouse import Mouse from adafruit_hid.keyboard import Keyboard mouse = Mouse(usb_hid.devices) goright=True while True: #2 parts to sequence, move mostly right, then mostly left # set up for big move #longwait=random.randint(250,35...
25.84
66
0.666409
49cc558662f5dd7e7fb056fd6f79d57effb78d66
315
py
Python
insta/admin.py
Stephenremmi/insta-clone
88af361dca160f7840842ebebc306a02f97920ca
[ "MIT" ]
null
null
null
insta/admin.py
Stephenremmi/insta-clone
88af361dca160f7840842ebebc306a02f97920ca
[ "MIT" ]
3
2021-03-30T13:54:34.000Z
2021-09-08T02:17:46.000Z
insta/admin.py
Stephenremmi/insta-clone
88af361dca160f7840842ebebc306a02f97920ca
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post, Comment, UserProfile # Register your models here. admin.site.register(Post) admin.site.register(Comment) admin.site.register(UserProfile, admin_class=ProfileAdmin)
26.25
58
0.796825
49cd3c2fd0bbd8a92289c21bd54ca7e440919719
25,042
py
Python
travelling/migrations/0001_initial.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0001_initial.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0001_initial.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-27 14:43 from __future__ import unicode_literals import ckeditor.fields from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django_countries.fields ...
83.473333
349
0.633376
49ce339e404139f63103f0e97e83fc72d1aded23
15,097
py
Python
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
from Bio.SeqIO import parse from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Seq import Seq from Bio.Alphabet import IUPAC, generic_dna from Bio import Alphabet, Entrez from Bio.SeqUtils import GC from Bio.Blast import NCBIWWW, NCBIXML from Bio import pairwise2 from Bio.pairwise2 import format_alignme...
39.111399
110
0.540703
49cfbdd139a2858864f15766804aa976f1344306
6,456
py
Python
room/easyctf/exploit/46635.py
danieldavidson/tryhackme-ctf
f42362609ffb72151f7056371e6ad7207e42c8c5
[ "MIT" ]
null
null
null
room/easyctf/exploit/46635.py
danieldavidson/tryhackme-ctf
f42362609ffb72151f7056371e6ad7207e42c8c5
[ "MIT" ]
null
null
null
room/easyctf/exploit/46635.py
danieldavidson/tryhackme-ctf
f42362609ffb72151f7056371e6ad7207e42c8c5
[ "MIT" ]
1
2022-03-11T22:55:33.000Z
2022-03-11T22:55:33.000Z
#!/usr/bin/env python # Exploit Title: Unauthenticated SQL Injection on CMS Made Simple <= 2.2.9 # Date: 30-03-2019 # Exploit Author: Daniele Scanu @ Certimeter Group # Vendor Homepage: https://www.cmsmadesimple.org/ # Software Link: https://www.cmsmadesimple.org/downloads/cmsms/ # Version: <= 2.2.9 # Tested on:...
34.709677
189
0.586431
49d510eb8a62e95ceab2defdd45b0de37d252639
968
py
Python
module3-nosql-and-document-oriented-databases/rpg_mongo.py
Dpgofast/DS-Unit-3-Sprint-2-SQL-and-Databases
f78bb4c67a182dd3c96ffdca1175d888239f2099
[ "MIT" ]
null
null
null
module3-nosql-and-document-oriented-databases/rpg_mongo.py
Dpgofast/DS-Unit-3-Sprint-2-SQL-and-Databases
f78bb4c67a182dd3c96ffdca1175d888239f2099
[ "MIT" ]
null
null
null
module3-nosql-and-document-oriented-databases/rpg_mongo.py
Dpgofast/DS-Unit-3-Sprint-2-SQL-and-Databases
f78bb4c67a182dd3c96ffdca1175d888239f2099
[ "MIT" ]
null
null
null
import pymongo client = pymongo.MongoClient('''mongodb://dakotapope:passwrd@ cluster0-shard-00-00-iaoct.mongodb.net:27017,cluster0-shard-00 -01-iaoct.mongodb.net:27017,cluster0-shard-00-02-iaoct.mongodb. net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource= admin&retryWrites=true''') # investigate the databa...
34.571429
74
0.764463
49d5165d59fc22ca8bcab148e06413fa005d535e
2,799
py
Python
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import xlrd import csv import sys import getopt # input configuration iColDate = 0 iColTransactionType = 1 iColAmount = 3 iColDescription = 6 transactionType = 'Repayment' descriptionType = 'Interest' #output configuration outHeader = ['Datum', 'Typ', 'Wert'] outType = 'Zinsen' outDelimiter = ';' ...
29.15625
198
0.649875
49d5fecaf1e79a501de0719400a144c921ff2ac0
1,096
py
Python
lib/python3.7/site-packages/vine/__init__.py
nguyentranhoan/uit-mobile
8546312b01373d94cf00c64f7eacb769e0f4ccce
[ "BSD-3-Clause" ]
13
2018-03-28T23:07:01.000Z
2022-03-12T06:01:21.000Z
newenv/lib/python3.8/site-packages/vine/__init__.py
palakshivlani-11/cryptorium
eebb78c061007519e527b3d18b8df6bc13679c46
[ "Apache-2.0" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
newenv/lib/python3.8/site-packages/vine/__init__.py
palakshivlani-11/cryptorium
eebb78c061007519e527b3d18b8df6bc13679c46
[ "Apache-2.0" ]
5
2018-03-28T23:07:05.000Z
2021-12-09T19:02:00.000Z
"""Promises, promises, promises.""" from __future__ import absolute_import, unicode_literals import re from collections import namedtuple from .abstract import Thenable from .promises import promise from .synchronization import barrier from .funtools import ( maybe_promise, ensure_promise, ppartial, preplace...
26.095238
68
0.699818
49d6bd8f68e9b38cfe513863c74dbe676a8959d2
1,965
py
Python
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
4
2019-06-18T15:26:49.000Z
2021-08-11T18:57:39.000Z
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
2
2019-08-22T20:11:46.000Z
2019-08-22T22:35:17.000Z
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
4
2019-07-06T15:41:53.000Z
2021-01-27T17:59:13.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt from LLC_Membranes.timeseries.forecast_ctrw import System from LLC_Membranes.llclib import file_rw import names residues = ["GCL", "SOH"] wt = 10 path = "/home/bcoscia/Documents/Gromacs/Transport/NaGA3C11" colors = ['blue', 'red'] opacity = 1 n...
32.213115
128
0.692112
49d70088af3c73de71bed44ae91ad6608da6929f
1,275
py
Python
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
start_time=[] end_time=[] query_time=0 students_count=0 string_to_list('start time : ',start_time) string_to_list('end time : ',end_time) query_time=int(input('query time : ')) if not(1<=len(start_time)<=100): print('start time list out of range') exit() elif not(1<=len(end_time)<=100): print('end time l...
24.519231
59
0.542745
49d77fe266bda3b95de391977fa5e234a79bc1d6
3,000
py
Python
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Added tariff Revision ID: 4dbaa3104f4 Revises: 1d6f96d1df Create Date: 2015-05-27 16:00:09.343862 """ # revision identifiers, used by Alembic. revision = '4dbaa3104f4' down_revision = '1d6f96d1df' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa
32.967033
85
0.685667
49da0b5cb2458b175611bedd60d99e1e2e8ba045
4,970
py
Python
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
#imports import os import subprocess from colorama import init,Fore, Back, Style import asyncio import urllib.parse import time from time import perf_counter init(convert=True) #vars ver = "Beta, Lots of commits going on!" ping = 0 pings = [] tempping = 0 searches = 0 base = 300 delay = 0 gotQ = "" dropTime = 0 reqTime...
37.938931
217
0.567203
49da88047bb20d46e7f9d9dfc0e2238764393527
10,360
py
Python
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # calc_qual.py # # A program to calculate the quality factors and magnetic angle within some defined region # of an Athena++ disk using MPI # # To run: # mpirun -n [n] python calc_qual.py [options] # for [n] cores. # import numpy as np import os import sys sys.path.insert(0, '/home/per29/rds/rd...
40.948617
175
0.598359
49db3a1ecbfa19102c7269a3533f50d40a8b3fab
4,838
py
Python
config/access/model_base.py
torrua/loglan_converter
e040825354bd07dda4f44d8dd84c79dc1db405c9
[ "MIT" ]
null
null
null
config/access/model_base.py
torrua/loglan_converter
e040825354bd07dda4f44d8dd84c79dc1db405c9
[ "MIT" ]
null
null
null
config/access/model_base.py
torrua/loglan_converter
e040825354bd07dda4f44d8dd84c79dc1db405c9
[ "MIT" ]
null
null
null
from sqlalchemy import Column, String, Integer, Text, Boolean, DateTime from config.access import Base from sqlalchemy.ext.declarative import declared_attr from datetime import datetime def export(self): pass class AccessAuthor(Base, BaseFunctions): """ Author model """ __tablename__ = ...
28.627219
84
0.65895
49dbc6af92d52afcc0e8a89b6aa09a1a1c7354f4
16,726
py
Python
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
1
2017-11-23T04:18:03.000Z
2017-11-23T04:18:03.000Z
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
5
2018-08-24T11:13:29.000Z
2018-08-29T00:40:36.000Z
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
null
null
null
import ctypes import struct import time from fixate.core.common import bits from fixate.core.exceptions import InstrumentError, InstrumentNotConnected import fixate.config import fixate.core.discover def open(ftdi_description=""): """Open is the public api for the bit bang driver for discovering and opening a con...
36.679825
117
0.598589
49dc810a61e2972f79b20f3f39e3b0c03cad34a5
552
py
Python
Data Structures/Python/find-the-parity-outier.py
KhushMody/Ds-Algo-HacktoberFest
2cb5bdcfcdcb87b67ee31941cc9afc466507a05b
[ "MIT" ]
12
2020-10-04T06:48:29.000Z
2021-02-16T17:54:04.000Z
Data Structures/Python/find-the-parity-outier.py
KhushMody/Ds-Algo-HacktoberFest
2cb5bdcfcdcb87b67ee31941cc9afc466507a05b
[ "MIT" ]
14
2020-10-04T09:09:52.000Z
2021-10-16T19:59:23.000Z
Data Structures/Python/find-the-parity-outier.py
KhushMody/Ds-Algo-HacktoberFest
2cb5bdcfcdcb87b67ee31941cc9afc466507a05b
[ "MIT" ]
55
2020-10-04T03:09:25.000Z
2021-10-16T09:00:12.000Z
# You are given an array (which will have a length of at least 3, but could be very large) containing integers. The array is either entirely comprised of odd integers or entirely comprised of even integers except for a single integer N. Write a method that takes the array as an argument and returns this "outlier" N. #...
61.333333
317
0.711957