hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
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
125
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
125
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.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
a126074c6a6fe35c7ef2c4f23371d45c15016ac5
8,998
py
Python
python/ukfm/model/pendulum.py
CAOR-MINES-ParisTech/ukfm
fa6c1358d73598fb57ad9930d7e89516830d27db
[ "BSD-3-Clause" ]
128
2019-09-15T12:51:56.000Z
2022-03-23T02:41:13.000Z
python/ukfm/model/pendulum.py
CAOR-MINES-ParisTech/ukfm
fa6c1358d73598fb57ad9930d7e89516830d27db
[ "BSD-3-Clause" ]
4
2020-05-09T14:02:15.000Z
2022-01-04T16:18:39.000Z
python/ukfm/model/pendulum.py
CAOR-MINES-ParisTech/ukfm
fa6c1358d73598fb57ad9930d7e89516830d27db
[ "BSD-3-Clause" ]
37
2019-11-17T16:27:32.000Z
2022-03-10T14:21:41.000Z
import numpy as np from ukfm import SO3, SE3 import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D class PENDULUM: """Pendulum example, where the state lives on the 2-sphere. See a text description of the spherical pendulum dynamics in :cite:`sjobergAn2019`, Section 7, and :cite:`kotaru...
31.351916
80
0.50589
import numpy as np from ukfm import SO3, SE3 import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D class PENDULUM: """Pendulum example, where the state lives on the 2-sphere. See a text description of the spherical pendulum dynamics in :cite:`sjobergAn2019`, Section 7, and :cite:`kotaru...
3,935
0
222
56d0ecb05cc73a86cd5f3c0e5f67c43ac55f2d2a
1,713
py
Python
ace/samples/breiman85.py
partofthething/ace
689d0caac3ba0708444be6ebf62627137b08ae46
[ "MIT" ]
47
2015-04-29T06:52:03.000Z
2022-03-15T11:05:01.000Z
ace/samples/breiman85.py
Jimmy-INL/ace
689d0caac3ba0708444be6ebf62627137b08ae46
[ "MIT" ]
12
2015-05-29T15:21:25.000Z
2020-10-08T15:03:41.000Z
ace/samples/breiman85.py
Jimmy-INL/ace
689d0caac3ba0708444be6ebf62627137b08ae46
[ "MIT" ]
22
2015-06-02T17:30:35.000Z
2022-02-16T20:46:24.000Z
"""Run the Sample ACE problem from [Breiman85]_.""" import numpy.random import scipy.special from ace import ace def build_sample_ace_problem_breiman85(N=200): """Sample problem from Breiman 1985.""" x_cubed = numpy.random.standard_normal(N) x = scipy.special.cbrt(x_cubed) noise = numpy.random.stand...
25.954545
67
0.649154
"""Run the Sample ACE problem from [Breiman85]_.""" import numpy.random import scipy.special from ace import ace def build_sample_ace_problem_breiman85(N=200): """Sample problem from Breiman 1985.""" x_cubed = numpy.random.standard_normal(N) x = scipy.special.cbrt(x_cubed) noise = numpy.random.stand...
0
0
0
5b077fb5a268307f3cef04f6d4fc0dd242b3a15c
1,511
py
Python
src/entity_linker/readers/config.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
10
2020-06-14T15:46:53.000Z
2021-04-29T15:02:23.000Z
src/entity_linker/readers/config.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
3
2021-08-25T16:16:45.000Z
2022-02-10T04:29:10.000Z
src/entity_linker/readers/config.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
1
2021-02-17T17:44:06.000Z
2021-02-17T17:44:06.000Z
""" Modifications copyright (C) 2020 Michael Strobl """ import pprint import configparser pp = pprint.PrettyPrinter() #endinit if __name__=='__main__': c = Config("configs/allnew_mentions_config.ini", verbose=True)
27.981481
73
0.64593
""" Modifications copyright (C) 2020 Michael Strobl """ import pprint import configparser pp = pprint.PrettyPrinter() class Config(object): def __init__(self, paths_config, verbose=False): config = configparser.ConfigParser() config._interpolation = configparser.ExtendedInterpolation() co...
1,235
0
49
02731303dd2b95f83367d78fede4715419f9c5b4
7,001
py
Python
utils/helper_models.py
aaqib-ali/Flight_Delay-Prediction
6f849a60d0705d0f86beccf302e4953dafbee777
[ "MIT" ]
null
null
null
utils/helper_models.py
aaqib-ali/Flight_Delay-Prediction
6f849a60d0705d0f86beccf302e4953dafbee777
[ "MIT" ]
null
null
null
utils/helper_models.py
aaqib-ali/Flight_Delay-Prediction
6f849a60d0705d0f86beccf302e4953dafbee777
[ "MIT" ]
null
null
null
import pandas as pd import dill as pickle # sklearn from sklearn.model_selection import train_test_split import json import os import numpy as np import matplotlib.pyplot as plt import itertools from collections import Counter # sklearn from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import roc_au...
32.714953
140
0.6989
import pandas as pd import dill as pickle # sklearn from sklearn.model_selection import train_test_split import json import os import numpy as np import matplotlib.pyplot as plt import itertools from collections import Counter # sklearn from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import roc_au...
6,182
0
229
727d355b83b641b8f67e979604f60f9994140c64
3,965
py
Python
IPython/nbconvert/utils/console.py
chebee7i/ipython
85b169fa3afc3d374973295c7f1409ededddbaca
[ "BSD-3-Clause-Clear" ]
2
2015-02-10T18:00:31.000Z
2015-05-01T02:53:46.000Z
IPython/nbconvert/utils/console.py
chebee7i/ipython
85b169fa3afc3d374973295c7f1409ededddbaca
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/nbconvert/utils/console.py
chebee7i/ipython
85b169fa3afc3d374973295c7f1409ededddbaca
[ "BSD-3-Clause-Clear" ]
1
2021-05-22T13:52:12.000Z
2021-05-22T13:52:12.000Z
"""Utility functions for interacting with the console""" #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this ...
32.768595
93
0.540731
"""Utility functions for interacting with the console""" #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this ...
0
0
0
c9263fd639d60076d028c1812c0b20f6dab313a3
279
py
Python
src/run.py
elipavlov/items
c935e3321284af251c3339e72531f26e9dd64802
[ "MIT" ]
null
null
null
src/run.py
elipavlov/items
c935e3321284af251c3339e72531f26e9dd64802
[ "MIT" ]
null
null
null
src/run.py
elipavlov/items
c935e3321284af251c3339e72531f26e9dd64802
[ "MIT" ]
null
null
null
# coding=utf-8 from os import sys, path from logging import getLogger from items.view import app sys.path.append(path.dirname(path.abspath(__file__))) logger = getLogger(__name__) logger.info(sys.path) if __name__ == '__main__': app.run(host='0.0.0.0', port=8080)
13.285714
53
0.716846
# coding=utf-8 from os import sys, path from logging import getLogger from items.view import app sys.path.append(path.dirname(path.abspath(__file__))) logger = getLogger(__name__) logger.info(sys.path) if __name__ == '__main__': app.run(host='0.0.0.0', port=8080)
0
0
0
5800c795f5c349cb2588e02143aabcb657e7a125
816
py
Python
actions/acl_create.py
latortagrande/stackstorm-consul
517b68ecadb1f5e2ad2621fff87f2df6d3d8b3cd
[ "Apache-2.0" ]
7
2017-11-28T00:20:01.000Z
2022-03-06T08:35:13.000Z
actions/acl_create.py
latortagrande/stackstorm-consul
517b68ecadb1f5e2ad2621fff87f2df6d3d8b3cd
[ "Apache-2.0" ]
19
2017-01-04T08:00:17.000Z
2021-11-04T07:26:39.000Z
actions/acl_create.py
latortagrande/stackstorm-consul
517b68ecadb1f5e2ad2621fff87f2df6d3d8b3cd
[ "Apache-2.0" ]
13
2016-12-09T12:34:18.000Z
2021-08-30T17:25:50.000Z
from lib import action
25.5
93
0.52451
from lib import action class ConsulAclCreateAction(action.ConsulBaseAction): def run( self, consul_profile=None, name=None, acl_type="client", rules=None, token=None, acl_id=None ): self._create_client(consul_profile) # Action parameter ...
711
32
49
e732c22894abd5f1d154324b3c2e6fecb4f9e857
22,935
py
Python
tethys_cli/gen_commands.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
null
null
null
tethys_cli/gen_commands.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
null
null
null
tethys_cli/gen_commands.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
null
null
null
""" ******************************************************************************** * Name: gen_commands.py * Author: Nathan Swain * Created On: 2015 * Copyright: (c) Brigham Young University 2015 * License: BSD 2-Clause ******************************************************************************** """ import os imp...
48.591102
120
0.631349
""" ******************************************************************************** * Name: gen_commands.py * Author: Nathan Swain * Created On: 2015 * Copyright: (c) Brigham Young University 2015 * License: BSD 2-Clause ******************************************************************************** """ import os imp...
20,356
0
322
d4d14ac14b85a0a8efbb2402cd9f83dbde86d1d6
2,040
py
Python
backend/Solve.py
Hasnae-bouhmady/Sudoku-Solver-machine-learning
9cf967d274df24ba473c12134f7d91ffbd3637bc
[ "MIT" ]
3
2021-12-12T23:26:23.000Z
2022-02-02T20:43:56.000Z
backend/Solve.py
Hasnae-bouhmady/Sudoku-Solver-machine-learning
9cf967d274df24ba473c12134f7d91ffbd3637bc
[ "MIT" ]
null
null
null
backend/Solve.py
Hasnae-bouhmady/Sudoku-Solver-machine-learning
9cf967d274df24ba473c12134f7d91ffbd3637bc
[ "MIT" ]
1
2021-12-12T23:30:13.000Z
2021-12-12T23:30:13.000Z
if __name__ == "__main__": grid = [[0 for x in range(9)] for y in range(9)] grid = [[3, 0, 6, 5, 0, 8, 4, 0, 0], [5, 2, 0, 0, 0, 0, 0, 0, 0], [0, 8, 7, 0, 0, 0, 0, 3, 1], [0, 0, 3, 0, 1, 0, 0, 8, 0], [9, 0, 0, 8, 6, 3, 0, 0, 5], ...
23.181818
137
0.429902
def print_grid(arr): for i in range(9): for j in range(9): print(arr[i][j], " " , end="") print("") def find_empty_location(arr, l): for row in range(9): for col in range(9): if (arr[row][col] == 0): l[0] = row l[1] = co...
1,273
0
173
ede5060dd70e8ed7ad17b5066c34d6fe825ce088
1,043
py
Python
docs/conf.py
squarethecircle/hymn
5cd291cc9d377b374c238fc154b020d534a6dcea
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
squarethecircle/hymn
5cd291cc9d377b374c238fc154b020d534a6dcea
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
squarethecircle/hymn
5cd291cc9d377b374c238fc154b020d534a6dcea
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Hymn documentation build configuration file import os import sys PROJECT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../')) sys.path.insert(0, PROJECT_DIR) import hymn extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', ] sourc...
17.982759
77
0.677852
# -*- coding: utf-8 -*- # # Hymn documentation build configuration file import os import sys PROJECT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../')) sys.path.insert(0, PROJECT_DIR) import hymn extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', ] sourc...
0
0
0
6f9eab99af42002e0f7f05b4838bcc2129e0bed3
1,334
py
Python
we-web/services/real/voices.py
h-qub/wordeater-web
9a336d1e467d08c6b3875bd8b83dea0dc3b9236d
[ "MIT" ]
null
null
null
we-web/services/real/voices.py
h-qub/wordeater-web
9a336d1e467d08c6b3875bd8b83dea0dc3b9236d
[ "MIT" ]
3
2016-03-11T08:43:47.000Z
2016-11-01T13:07:48.000Z
we-web/services/real/voices.py
h-qub/wordeater-web
9a336d1e467d08c6b3875bd8b83dea0dc3b9236d
[ "MIT" ]
null
null
null
# coding=utf-8 from services.base import BaseService from services.service_locator import ServiceLocator from logger import error __author__ = 'Glebov Boris'
23
77
0.574963
# coding=utf-8 from services.base import BaseService from services.service_locator import ServiceLocator from logger import error __author__ = 'Glebov Boris' class VoicesService(BaseService): def __init__(self): BaseService.__init__(self) def get(self, text): """ Try to find voice i...
33
1,161
23
7645b899e4921a3987e32469e1005cfa80ca5d7b
7,328
py
Python
Dataset/create_dataset_JPS.py
mawanda-jun/NoLabels
6861867ad5ab49fc7ae6f562977f60195f9ff216
[ "MIT" ]
1
2021-05-27T09:41:58.000Z
2021-05-27T09:41:58.000Z
Dataset/create_dataset_JPS.py
mawanda-jun/NoLabels
6861867ad5ab49fc7ae6f562977f60195f9ff216
[ "MIT" ]
null
null
null
Dataset/create_dataset_JPS.py
mawanda-jun/NoLabels
6861867ad5ab49fc7ae6f562977f60195f9ff216
[ "MIT" ]
null
null
null
import os from typing import List import random import h5py import numpy as np from PIL import Image, ImageFile import threading # force pillow to load also truncated images ImageFile.LOAD_TRUNCATED_IMAGES = True # number of images to take from the folder N_EL = int(5e5) # path/to/folder that contains the images. No p...
39.397849
121
0.609989
import os from typing import List import random import h5py import numpy as np from PIL import Image, ImageFile import threading # force pillow to load also truncated images ImageFile.LOAD_TRUNCATED_IMAGES = True # number of images to take from the folder N_EL = int(5e5) # path/to/folder that contains the images. No p...
2,419
0
53
2f3c579b4337afc0afba19e7860fbba1c1305085
1,866
py
Python
FileGather.py
stevenjson/CuisineClassifying
349fbcadcd9a47deaaf94b4452870f531b137899
[ "MIT" ]
20
2017-10-31T11:01:40.000Z
2021-08-04T18:07:18.000Z
FileGather.py
stevenjson/CuisineClassifying
349fbcadcd9a47deaaf94b4452870f531b137899
[ "MIT" ]
null
null
null
FileGather.py
stevenjson/CuisineClassifying
349fbcadcd9a47deaaf94b4452870f531b137899
[ "MIT" ]
5
2019-05-20T19:57:38.000Z
2020-04-14T04:51:09.000Z
import urllib.request import os import argparse from bs4 import BeautifulSoup parser = argparse.ArgumentParser() parser.add_argument("url", type=str, nargs=1, help="Main url with list of recipe URLs") parser.add_argument("cuisine", type=str, nargs=1, help="Type of cuisine on the main url page") parser.add_argument("pa...
27.850746
94
0.651661
import urllib.request import os import argparse from bs4 import BeautifulSoup parser = argparse.ArgumentParser() parser.add_argument("url", type=str, nargs=1, help="Main url with list of recipe URLs") parser.add_argument("cuisine", type=str, nargs=1, help="Type of cuisine on the main url page") parser.add_argument("pa...
0
0
0
3a790c549b7fb6bb73028e5521bff4c96bf60cf4
979
py
Python
setting.py
AlexRamAlv/following_requests
cd7bc3bbe5675562b0544b14492d5330061dbdc2
[ "MIT" ]
null
null
null
setting.py
AlexRamAlv/following_requests
cd7bc3bbe5675562b0544b14492d5330061dbdc2
[ "MIT" ]
null
null
null
setting.py
AlexRamAlv/following_requests
cd7bc3bbe5675562b0544b14492d5330061dbdc2
[ "MIT" ]
null
null
null
""" Here are declare all the settings of the app. 1. Database configurations. 2. Develop config 3. Prod config 4. Also default config that is develop """ import os # file' path BASE_DIR = os.path.abspath(os.path.dirname(__file__)) #main class configuration # Develop configuration ...
26.459459
121
0.691522
""" Here are declare all the settings of the app. 1. Database configurations. 2. Develop config 3. Prod config 4. Also default config that is develop """ import os # file' path BASE_DIR = os.path.abspath(os.path.dirname(__file__)) #main class configuration class Config: SECRET_...
10
421
66
405d33839e2a90b181857aecdd3b4a29dabb0667
3,083
py
Python
datahub/dataset/company_referral/test/test_views.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/dataset/company_referral/test/test_views.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/dataset/company_referral/test/test_views.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
import pytest from django.urls import reverse from freezegun import freeze_time from rest_framework import status from datahub.company_referral.test.factories import ( ClosedCompanyReferralFactory, CompanyReferralFactory, ) from datahub.core.test_utils import format_date_or_datetime, get_attr_or_none from data...
39.525641
99
0.692507
import pytest from django.urls import reverse from freezegun import freeze_time from rest_framework import status from datahub.company_referral.test.factories import ( ClosedCompanyReferralFactory, CompanyReferralFactory, ) from datahub.core.test_utils import format_date_or_datetime, get_attr_or_none from data...
0
0
0
bc82c39d125f223e4aa09c5efc2af2c10af7d92c
28,389
py
Python
aws_iam_tester/lib/aws_iam_tester.py
paprins/aws-iam-tester
57898fb4dfcb4acaae7bc21954c1324fa100b75a
[ "MIT" ]
null
null
null
aws_iam_tester/lib/aws_iam_tester.py
paprins/aws-iam-tester
57898fb4dfcb4acaae7bc21954c1324fa100b75a
[ "MIT" ]
null
null
null
aws_iam_tester/lib/aws_iam_tester.py
paprins/aws-iam-tester
57898fb4dfcb4acaae7bc21954c1324fa100b75a
[ "MIT" ]
null
null
null
""" The AwsIamTester class implements all necessary logic to run validations on an account, role or user. """ # pylint: disable=broad-except,C0103,E0401,R0912,R0913,R0914,R0915,R1702,W0603,W1203 from __future__ import annotations import os import sys import errno import json import logging import re import time impo...
36.868831
125
0.496847
""" The AwsIamTester class implements all necessary logic to run validations on an account, role or user. """ # pylint: disable=broad-except,C0103,E0401,R0912,R0913,R0914,R0915,R1702,W0603,W1203 from __future__ import annotations import os import sys import errno import json import logging import re import time impo...
4,565
23,239
23
b776c6a61f581ef76c0481f426d55d7c88dd03e9
211
py
Python
doc/python_time/code/02_calendar.py
CodeLingoBot/learn
d7ea19cb9a887ec60435698b9e945a110163eea2
[ "CC-BY-4.0" ]
1,235
2015-09-08T20:21:49.000Z
2022-03-28T10:54:28.000Z
doc/python_time/code/02_calendar.py
fengpf/learn
d7ea19cb9a887ec60435698b9e945a110163eea2
[ "CC-BY-4.0" ]
10
2015-09-08T23:16:52.000Z
2021-12-15T01:15:13.000Z
doc/python_time/code/02_calendar.py
fengpf/learn
d7ea19cb9a887ec60435698b9e945a110163eea2
[ "CC-BY-4.0" ]
183
2015-09-08T14:46:09.000Z
2022-03-06T07:03:31.000Z
#!/usr/bin/python -u import datetime import calendar if __name__ == "__main__": print datetime.datetime.today().weekday() # 3 print calendar.day_name[datetime.datetime.today().weekday()] # Thursday
23.444444
64
0.7109
#!/usr/bin/python -u import datetime import calendar if __name__ == "__main__": print datetime.datetime.today().weekday() # 3 print calendar.day_name[datetime.datetime.today().weekday()] # Thursday
0
0
0
67c6d1af0642e9ccab47e52c069fc9f1c7b24c19
1,694
py
Python
filewatch/__main__.py
tinasty/filewatch
f9dca5187f259280429548ef6968bfcb920a72ae
[ "MIT" ]
null
null
null
filewatch/__main__.py
tinasty/filewatch
f9dca5187f259280429548ef6968bfcb920a72ae
[ "MIT" ]
null
null
null
filewatch/__main__.py
tinasty/filewatch
f9dca5187f259280429548ef6968bfcb920a72ae
[ "MIT" ]
null
null
null
from rich.console import Console import subprocess as sp import time import click @click.command() @click.option('--path','-p',help='Path of file to watch') @click.option('--arguments','-args',help='Arguments to run when file changes') @click.option('--delay','-d',default=4,help='Delay in seconds') def star...
40.333333
105
0.587367
from rich.console import Console import subprocess as sp import time import click class App: def __init__(self,filepath : str,arguments : str,delay : int): self.filepath = filepath self.arguments = arguments self.delay = delay Console().rule('[#51D6FF]<FILEWATCH IS START...
1,000
-11
52
7d904ef021f40408c9a19ea6d4846ad70181217a
849
py
Python
json-to-md.py
vileppanen/json-documentor
e9f4f7c7e41af805aaf15c97e5198df26c061388
[ "MIT" ]
null
null
null
json-to-md.py
vileppanen/json-documentor
e9f4f7c7e41af805aaf15c97e5198df26c061388
[ "MIT" ]
1
2021-04-30T13:01:14.000Z
2021-05-01T06:11:18.000Z
json-to-md.py
vileppanen/json-documentor
e9f4f7c7e41af805aaf15c97e5198df26c061388
[ "MIT" ]
null
null
null
import json import os from lib.object_documentor import ( documentize_object, documentize_prop, documentize_array, ) file_name = input("Specify json to document: ") file = open(file_name) data = json.load(file) # Iterating through the json lines = [" Prop | Type | Description | Example \n", "----|----|-...
24.257143
76
0.650177
import json import os from lib.object_documentor import ( documentize_object, documentize_prop, documentize_array, ) file_name = input("Specify json to document: ") file = open(file_name) data = json.load(file) # Iterating through the json lines = [" Prop | Type | Description | Example \n", "----|----|-...
0
0
0
8a5bb6ed166aa99acc59213fa8d390cd9c45b467
210
py
Python
scripts/item/consume_2435313.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/item/consume_2435313.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/item/consume_2435313.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Blackheart Day Damage Skin success = sm.addDamageSkin(2435313) if success: sm.chat("The Blackheart Day Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2435313)
35
102
0.757143
# Blackheart Day Damage Skin success = sm.addDamageSkin(2435313) if success: sm.chat("The Blackheart Day Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2435313)
0
0
0
1ec656496c63a15bf6ed0753356bf4ea736cde2e
17,149
py
Python
src/models/nasnet_utils_do.py
Vole1/MC-CDP-BraTS2018
32430dc87d40c8d1f41092598c839e0b34f32e7c
[ "MIT" ]
1
2021-12-29T09:11:12.000Z
2021-12-29T09:11:12.000Z
src/models/nasnet_utils_do.py
Vole1/MC-CDP-BraTS2018
32430dc87d40c8d1f41092598c839e0b34f32e7c
[ "MIT" ]
null
null
null
src/models/nasnet_utils_do.py
Vole1/MC-CDP-BraTS2018
32430dc87d40c8d1f41092598c839e0b34f32e7c
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer class ScheduledDropout(Layer): """Applies Scheduled Dropout to the input. The Dropout layer randomly sets input units to 0 with a frequency of `rate` scheduled by network...
44.542857
111
0.631699
import numpy as np import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer class ScheduledDropout(Layer): """Applies Scheduled Dropout to the input. The Dropout layer randomly sets input units to 0 with a frequency of `rate` scheduled by network...
8,615
0
592
1e21494c36d4bd09deddf191d2fbd1641f39119c
274
py
Python
11-Regular_Expressions/Exercises/6-Extract_the_Links.py
eclipse-ib/Software-University-Fundamentals_Module
994ef75c70d1bae8e615dbb789aeffd6e0a42c34
[ "MIT" ]
null
null
null
11-Regular_Expressions/Exercises/6-Extract_the_Links.py
eclipse-ib/Software-University-Fundamentals_Module
994ef75c70d1bae8e615dbb789aeffd6e0a42c34
[ "MIT" ]
null
null
null
11-Regular_Expressions/Exercises/6-Extract_the_Links.py
eclipse-ib/Software-University-Fundamentals_Module
994ef75c70d1bae8e615dbb789aeffd6e0a42c34
[ "MIT" ]
null
null
null
import re string = "" while True: command = input() if command == "": break else: string += " "+command search_patter = r"(www\.([A-Za-z0-9]+((-[A-Za-z0-9]+))*)\.([a-z]+((\.[a-z]+))*))" for i in re.findall(search_patter, string): print(i[0])
22.833333
81
0.510949
import re string = "" while True: command = input() if command == "": break else: string += " "+command search_patter = r"(www\.([A-Za-z0-9]+((-[A-Za-z0-9]+))*)\.([a-z]+((\.[a-z]+))*))" for i in re.findall(search_patter, string): print(i[0])
0
0
0
0d7cacd979e59285b82887ad14e076edd44a5d5a
544
py
Python
swagger_django_generator/templates/django/schemas.py
ClizzyJ/swagger-django-generator
a456b0aac949fbb34e6b45cbae19e0e2a6c02a41
[ "BSD-3-Clause" ]
null
null
null
swagger_django_generator/templates/django/schemas.py
ClizzyJ/swagger-django-generator
a456b0aac949fbb34e6b45cbae19e0e2a6c02a41
[ "BSD-3-Clause" ]
null
null
null
swagger_django_generator/templates/django/schemas.py
ClizzyJ/swagger-django-generator
a456b0aac949fbb34e6b45cbae19e0e2a6c02a41
[ "BSD-3-Clause" ]
null
null
null
""" Do not modify this file. It is generated from the Swagger specification. Container module for JSONSchema definitions. This does not include inlined definitions. The pretty-printing functionality provided by the json module is superior to what is provided by pformat, hence the use of json.loads(). """ import json ...
25.904762
76
0.738971
""" Do not modify this file. It is generated from the Swagger specification. Container module for JSONSchema definitions. This does not include inlined definitions. The pretty-printing functionality provided by the json module is superior to what is provided by pformat, hence the use of json.loads(). """ import json ...
0
0
0
9204fd76a8b05854e4a9ac9390c9732a8d38a53b
11,560
py
Python
vcd_cli/vapp_network_firewall.py
ltimothy7/vcd-cli
b30e6fa1b96c2d2f0153ea39e08034962f50c669
[ "Apache-2.0", "MIT" ]
4
2019-01-11T05:05:39.000Z
2019-08-14T07:04:39.000Z
vcd_cli/vapp_network_firewall.py
ltimothy7/vcd-cli
b30e6fa1b96c2d2f0153ea39e08034962f50c669
[ "Apache-2.0", "MIT" ]
null
null
null
vcd_cli/vapp_network_firewall.py
ltimothy7/vcd-cli
b30e6fa1b96c2d2f0153ea39e08034962f50c669
[ "Apache-2.0", "MIT" ]
1
2020-08-31T21:10:50.000Z
2020-08-31T21:10:50.000Z
# VMware vCloud Director Python SDK # Copyright (c) 2014-2019 VMware, Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
39.054054
79
0.627076
# VMware vCloud Director Python SDK # Copyright (c) 2014-2019 VMware, Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
3,007
0
132
adc3b01fc06ad9db748363eae9bdd1841e0cff46
2,500
py
Python
api/schema/schema.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
1
2022-03-03T09:55:57.000Z
2022-03-03T09:55:57.000Z
api/schema/schema.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
7
2022-02-09T10:44:53.000Z
2022-03-28T03:29:43.000Z
api/schema/schema.py
matchd-ch/matchd-backend
84be4aab1b4708cae50a8988301b15df877c8db0
[ "Apache-2.0" ]
null
null
null
import graphene from graphene import relay from api.schema.benefit import BenefitQuery from api.schema.branch import BranchQuery from api.schema.cultural_fit import CulturalFitQuery from api.schema.dashboard import DashboardQuery from api.schema.faq_category import FAQCategoryQuery from api.schema.company import Compa...
50
97
0.838
import graphene from graphene import relay from api.schema.benefit import BenefitQuery from api.schema.branch import BranchQuery from api.schema.cultural_fit import CulturalFitQuery from api.schema.dashboard import DashboardQuery from api.schema.faq_category import FAQCategoryQuery from api.schema.company import Compa...
0
771
46
e10c61d4857a31141cadadc85b9babb7dbfba4a7
3,362
py
Python
src/paper_sampler/paper_sampler.py
harshit158/paper-dots
cbb2fb36e0d0a55998d80c228d3f35b4df21e808
[ "MIT" ]
3
2021-03-31T12:46:45.000Z
2022-02-25T18:37:50.000Z
src/paper_sampler/paper_sampler.py
harshit158/paper-dots
cbb2fb36e0d0a55998d80c228d3f35b4df21e808
[ "MIT" ]
null
null
null
src/paper_sampler/paper_sampler.py
harshit158/paper-dots
cbb2fb36e0d0a55998d80c228d3f35b4df21e808
[ "MIT" ]
1
2021-07-12T08:19:41.000Z
2021-07-12T08:19:41.000Z
import pandas as pd import h5py from sentence_transformers import SentenceTransformer, util import re import pickle class Sample(): """Samples a relevant paper given an input, using corpus_embeddings """ def sample(self, paper_id, abstract, title): """Given paper_text ( = paper_abstract+paper_tit...
44.236842
120
0.660024
import pandas as pd import h5py from sentence_transformers import SentenceTransformer, util import re import pickle class Sample(): """Samples a relevant paper given an input, using corpus_embeddings """ def __init__(self): # Reading corpus_embeddings data=h5py.File('./data/corpus_emb...
603
0
62
8c1d20e833da889207041b9c4c416d22d3948fad
626
py
Python
mmf/datasets/builders/visual_genome/masked_builder.py
dk25021999/mmf
218057265a3fc175f656b5ebe8fb44ef5ccca2e9
[ "BSD-3-Clause" ]
3,252
2018-07-27T02:32:24.000Z
2020-05-07T17:54:46.000Z
mmf/datasets/builders/visual_genome/masked_builder.py
dk25021999/mmf
218057265a3fc175f656b5ebe8fb44ef5ccca2e9
[ "BSD-3-Clause" ]
914
2020-05-07T18:36:26.000Z
2022-03-31T05:45:26.000Z
mmf/datasets/builders/visual_genome/masked_builder.py
dk25021999/mmf
218057265a3fc175f656b5ebe8fb44ef5ccca2e9
[ "BSD-3-Clause" ]
490
2020-05-07T20:05:10.000Z
2022-03-31T14:17:23.000Z
# Copyright (c) Facebook, Inc. and its affiliates. from mmf.common.registry import registry from mmf.datasets.builders.visual_genome.builder import VisualGenomeBuilder from mmf.datasets.builders.visual_genome.masked_dataset import MaskedVisualGenomeDataset @registry.register_builder("masked_visual_genome")
34.777778
88
0.785942
# Copyright (c) Facebook, Inc. and its affiliates. from mmf.common.registry import registry from mmf.datasets.builders.visual_genome.builder import VisualGenomeBuilder from mmf.datasets.builders.visual_genome.masked_dataset import MaskedVisualGenomeDataset @registry.register_builder("masked_visual_genome") class Mas...
191
102
22
feeb3fb08a3d7f8925a0c25eefb78f49f79e82c8
1,629
py
Python
tests/test_download.py
venthent/MusicDownloader
76052513ccdc4b6ebb0fc0d2d05a39debc76263d
[ "Apache-2.0" ]
null
null
null
tests/test_download.py
venthent/MusicDownloader
76052513ccdc4b6ebb0fc0d2d05a39debc76263d
[ "Apache-2.0" ]
null
null
null
tests/test_download.py
venthent/MusicDownloader
76052513ccdc4b6ebb0fc0d2d05a39debc76263d
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from core.download import DownloadHelperMulti, DownLoadUrl, DownLoadUrlAdvance # def test
31.941176
80
0.623082
from unittest import TestCase from core.download import DownloadHelperMulti, DownLoadUrl, DownLoadUrlAdvance class TestDownLoadUrl(TestCase): def setUp(self): self.dlu = DownLoadUrl() def test_get_source_url(self): l = [] a = self.dlu.get_source_url('/song?id=643982', l) self...
1,182
48
282
22f5fbf1bbb1a4ca5321e65775ed3512aa58d3cc
1,391
py
Python
samples/fn_lambdas_map.py
allancth/python3-with-linux
11411296d3d6abf876f6fe290a0a3f1a40980354
[ "MIT" ]
null
null
null
samples/fn_lambdas_map.py
allancth/python3-with-linux
11411296d3d6abf876f6fe290a0a3f1a40980354
[ "MIT" ]
null
null
null
samples/fn_lambdas_map.py
allancth/python3-with-linux
11411296d3d6abf876f6fe290a0a3f1a40980354
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2017 allancth # # 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...
36.605263
80
0.716751
#!/usr/bin/env python3 # The MIT License (MIT) # # Copyright (c) 2017 allancth # # 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...
39
0
23
c17b631cbf0f5662370eab32fb96f3cf8126ad13
779
py
Python
config.py
CS-savvy/Transformer-for-Parkinsons-disease
42ef54071092f4aab74c8b9ec82c52e944806a5b
[ "MIT" ]
null
null
null
config.py
CS-savvy/Transformer-for-Parkinsons-disease
42ef54071092f4aab74c8b9ec82c52e944806a5b
[ "MIT" ]
null
null
null
config.py
CS-savvy/Transformer-for-Parkinsons-disease
42ef54071092f4aab74c8b9ec82c52e944806a5b
[ "MIT" ]
null
null
null
from pathlib import Path EXP_NAME = 'Transformer32' EPOCH = 20 EMBEDDING_DIM = 64 ENCODER_STACK = 6 ATTENTION_HEAD = 1 DROPOUT = 0.1 LR = 0.0001 BATCH_SIZE = 32 AUGMENTATION = None MAX_FEATURE = 32 SMOTE_SEED = 23904 PYTORCH_SEED = 321295675063 PYTHON_SEED = 123146427 ML_SEED = 32129 MODEL_DIR = Path.cwd() / "models...
26.862069
103
0.707317
from pathlib import Path EXP_NAME = 'Transformer32' EPOCH = 20 EMBEDDING_DIM = 64 ENCODER_STACK = 6 ATTENTION_HEAD = 1 DROPOUT = 0.1 LR = 0.0001 BATCH_SIZE = 32 AUGMENTATION = None MAX_FEATURE = 32 SMOTE_SEED = 23904 PYTORCH_SEED = 321295675063 PYTHON_SEED = 123146427 ML_SEED = 32129 MODEL_DIR = Path.cwd() / "models...
0
0
0
274f85268a10113e874f5288ef77c05a0f3f3e92
10,291
py
Python
herramientas/indice_contagio_por_comunas/indiceContagioComunas.py
DiazSalinas/COVID-19
c79bc5487363a76baa2b9eb282991077eaeddf14
[ "MIT" ]
24
2020-04-02T04:35:32.000Z
2020-08-11T00:48:06.000Z
herramientas/indice_contagio_por_comunas/indiceContagioComunas.py
DiazSalinas/COVID-19
c79bc5487363a76baa2b9eb282991077eaeddf14
[ "MIT" ]
26
2020-04-03T15:07:15.000Z
2020-09-01T08:12:08.000Z
herramientas/indice_contagio_por_comunas/indiceContagioComunas.py
DiazSalinas/COVID-19
c79bc5487363a76baa2b9eb282991077eaeddf14
[ "MIT" ]
21
2020-04-02T21:29:08.000Z
2020-09-01T19:25:22.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Mar 31 11:55:42 2020 @author: esteban """ # Este script necesita que instales # conda install geopandas #conda install -c conda-forge descartes fechaAAnalizar='2020-05-04' alFecha=" al 04/05" cuarentena_total=['Arica', 'Estación C...
10,291
10,291
0.611797
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Mar 31 11:55:42 2020 @author: esteban """ # Este script necesita que instales # conda install geopandas #conda install -c conda-forge descartes fechaAAnalizar='2020-05-04' alFecha=" al 04/05" cuarentena_total=['Arica', 'Estación C...
0
0
0
164b61f9259d225b2f38464d1695f315bbeed826
15,495
py
Python
CVP_API/Snapshot_Utils/Snapshot_Reporter/SnapshotReporter.py
Hugh-Adams/Example_Scripts
21cd3c2857ec41c6fef4108ca3614d1f1ee9d9c6
[ "BSD-3-Clause" ]
5
2019-06-03T14:42:25.000Z
2022-03-03T21:04:29.000Z
CVP_API/Snapshot_Utils/Snapshot_Reporter/SnapshotReporter.py
Hugh-Adams/Example_Scripts
21cd3c2857ec41c6fef4108ca3614d1f1ee9d9c6
[ "BSD-3-Clause" ]
null
null
null
CVP_API/Snapshot_Utils/Snapshot_Reporter/SnapshotReporter.py
Hugh-Adams/Example_Scripts
21cd3c2857ec41c6fef4108ca3614d1f1ee9d9c6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2019, Arista Networks, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must retain the above copyright notice, # ...
43.525281
189
0.619619
#!/usr/bin/env python # # Copyright (c) 2019, Arista Networks, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must retain the above copyright notice, # ...
7,391
14
255
bea488599494de76a3ccf78b45f13020696eaa76
767
py
Python
Algorithms/0048_Rotate_Image/Python/Rotate_Image_Solution_2.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0048_Rotate_Image/Python/Rotate_Image_Solution_2.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0048_Rotate_Image/Python/Rotate_Image_Solution_2.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
# Space: O(1) # Time: O(n)
24.741935
71
0.477184
# Space: O(1) # Time: O(n) class Solution: def rotate(self, matrix): """ Do not return anything, modify matrix in-place instead. """ m = len(matrix) n = len(matrix[0]) if m == 1 and n == 1: return index = 0 first, last = 0, n - 1 while first...
90
622
23
02a47cc4846469426d858d56021d0b7456e1a45e
2,570
py
Python
scripts/check_reachwp_1.py
goofyweng/mavros_multi_uav_control
60a17e59bd54b491521ac4fb173c9bca74490718
[ "BSD-3-Clause" ]
1
2022-03-07T06:13:04.000Z
2022-03-07T06:13:04.000Z
scripts/check_reachwp_1.py
goofyweng/mavros_multi_uav_control
60a17e59bd54b491521ac4fb173c9bca74490718
[ "BSD-3-Clause" ]
null
null
null
scripts/check_reachwp_1.py
goofyweng/mavros_multi_uav_control
60a17e59bd54b491521ac4fb173c9bca74490718
[ "BSD-3-Clause" ]
1
2020-08-31T02:42:10.000Z
2020-08-31T02:42:10.000Z
#!/usr/bin/env python import rospy from mavros_msgs.msg import PositionTarget from geometry_msgs.msg import PoseStamped from std_msgs.msg import Float32, String, Bool if __name__ == '__main__': rospy.init_node('checker_1') server = Server() rospy.Subscriber("/uav1/mavros/local_position/pose", PoseStampe...
39.538462
149
0.629572
#!/usr/bin/env python import rospy from mavros_msgs.msg import PositionTarget from geometry_msgs.msg import PoseStamped from std_msgs.msg import Float32, String, Bool class Server: def __init__(self): self.curposx = None self.curposy = None self.curposz = None self.targetwpx = None ...
1,984
-8
130
aaf048488c6cc74d3b7b52dd53b462a5c8dbd590
10,610
py
Python
gbt_archive/models.py
GreenBankObservatory/gbtarchive_orm
31f6d9def30646fb97c0a3ff8a0bf8096a15c479
[ "MIT" ]
null
null
null
gbt_archive/models.py
GreenBankObservatory/gbtarchive_orm
31f6d9def30646fb97c0a3ff8a0bf8096a15c479
[ "MIT" ]
7
2020-05-14T20:19:57.000Z
2022-02-10T13:58:38.000Z
gbt_archive/models.py
GreenBankObservatory/gbtarchive_orm
31f6d9def30646fb97c0a3ff8a0bf8096a15c479
[ "MIT" ]
null
null
null
"""Models!""" from pathlib import Path import re import glob from django.db import models from django.urls import reverse from gbt_archive.utils import get_archive_path class History(models.Model): """Stores history of CSV exports, intended for AAT consumption""" historyid = models.AutoField(db_column="...
30.401146
113
0.578699
"""Models!""" from pathlib import Path import re import glob from django.db import models from django.urls import reverse from gbt_archive.utils import get_archive_path class Observer(models.Model): observerid = models.AutoField(db_column="observerID", primary_key=True) name = models.CharField(max_length=64)...
603
8,928
234
5c360b6439f881bfd7e0220e167f9b4c542aca1e
168
py
Python
code/pop_click.py
brxck/knausj_talon
0074abbd2680865080921bc0229ce2ec0022f732
[ "MIT" ]
null
null
null
code/pop_click.py
brxck/knausj_talon
0074abbd2680865080921bc0229ce2ec0022f732
[ "MIT" ]
null
null
null
code/pop_click.py
brxck/knausj_talon
0074abbd2680865080921bc0229ce2ec0022f732
[ "MIT" ]
null
null
null
from talon import ctrl, noise, actions noise.register( "pop", lambda m: ctrl.mouse_click() if actions.speech.enabled() else actions.speech.enable(), )
18.666667
38
0.678571
from talon import ctrl, noise, actions noise.register( "pop", lambda m: ctrl.mouse_click() if actions.speech.enabled() else actions.speech.enable(), )
0
0
0
88bcaa1b734bad5efec9938bf99d322ac0ff3a65
5,090
py
Python
find_chars.py
melonedo/crack-tongji-captcha
d7658a6e7360483c0e6260a7ac8d86045205af09
[ "MIT" ]
6
2020-11-01T14:12:15.000Z
2021-04-19T09:31:44.000Z
find_chars.py
melonedo/crack-tongji-captcha
d7658a6e7360483c0e6260a7ac8d86045205af09
[ "MIT" ]
1
2020-11-02T03:14:54.000Z
2021-01-25T09:30:45.000Z
find_chars.py
melonedo/crack-tongji-captcha
d7658a6e7360483c0e6260a7ac8d86045205af09
[ "MIT" ]
null
null
null
from PIL import Image from io import BytesIO from base64 import b64decode import numpy import re import cv2 import random from collections import namedtuple from math import hypot if cv2.__version__.split()[0] == '3': old_find_contours = cv2.findContours cv2.findContours = new_find_contours RotatedRect = n...
39.153846
856
0.697053
from PIL import Image from io import BytesIO from base64 import b64decode import numpy import re import cv2 import random from collections import namedtuple from math import hypot if cv2.__version__.split()[0] == '3': old_find_contours = cv2.findContours def new_find_contours(*args, **kwargs): return...
414
29
138
deff626d8b8d98e0958a03e1d757971333fb1ba1
9,979
py
Python
xdev/interactive_iter.py
Erotemic/xdev
86d11305d1c6c54188a012fc61f82cb60c496f38
[ "Apache-2.0" ]
3
2019-03-04T02:49:22.000Z
2022-02-08T14:41:23.000Z
xdev/interactive_iter.py
Erotemic/xdev
86d11305d1c6c54188a012fc61f82cb60c496f38
[ "Apache-2.0" ]
4
2021-10-05T21:11:38.000Z
2022-03-25T17:41:10.000Z
xdev/interactive_iter.py
Erotemic/xdev
86d11305d1c6c54188a012fc61f82cb60c496f38
[ "Apache-2.0" ]
null
null
null
import ubelt as ub import numpy as np from . import embeding from . import util __all__ = ['InteractiveIter'] INDEXABLE_TYPES = (list, tuple, np.ndarray) class InteractiveIter(object): """ Choose next value interactively iterable should be a list, not a generator. sorry """ def __init__(iiter...
37.374532
133
0.527508
import ubelt as ub import numpy as np from . import embeding from . import util __all__ = ['InteractiveIter'] INDEXABLE_TYPES = (list, tuple, np.ndarray) class InteractiveIter(object): """ Choose next value interactively iterable should be a list, not a generator. sorry """ def __init__(iiter...
3,798
0
168
fa668461cf90cbc54e8b386e7ef7061b05d4ad5f
33,381
py
Python
rubiks-cube-solver.py
cahidenes/rubiks-cube-solver
6f53f57d836a1604f8e5b7829d9e220466574b80
[ "MIT" ]
4
2021-01-30T12:23:58.000Z
2021-09-07T17:11:20.000Z
rubiks-cube-solver.py
cahidenes/rubiks-cube-solver
6f53f57d836a1604f8e5b7829d9e220466574b80
[ "MIT" ]
null
null
null
rubiks-cube-solver.py
cahidenes/rubiks-cube-solver
6f53f57d836a1604f8e5b7829d9e220466574b80
[ "MIT" ]
2
2021-02-11T16:37:10.000Z
2022-02-26T23:53:00.000Z
import cv2 as cv import numpy as np import kociemba DEBUG = False eps = 0.00001 firstRead = [] secondRead = [] firstDone = False cam = cv.VideoCapture(0) cam.set(cv.CAP_PROP_FRAME_HEIGHT, 720) W, H = int(cam.get(cv.CAP_PROP_FRAME_WIDTH)), int(cam.get(cv.CAP_PROP_FRAME_HEIGHT)) if W != 1280 or H != 720: print("WAR...
44.508
194
0.451724
import cv2 as cv import numpy as np import kociemba DEBUG = False eps = 0.00001 firstRead = [] secondRead = [] firstDone = False cam = cv.VideoCapture(0) cam.set(cv.CAP_PROP_FRAME_HEIGHT, 720) W, H = int(cam.get(cv.CAP_PROP_FRAME_WIDTH)), int(cam.get(cv.CAP_PROP_FRAME_HEIGHT)) if W != 1280 or H != 720: print("WAR...
9,193
0
230
719289a9b3bd996ae9fe94a118ff18a46736ef85
21,989
py
Python
caffe-master/python/utils/sample.py
yang81/TextDetect
3011ba55f97b764879bcf9719729d196b798014b
[ "BSD-3-Clause" ]
6
2020-05-29T00:25:28.000Z
2020-07-02T07:50:54.000Z
caffe-master/python/utils/sample.py
yang81/TextDetect
3011ba55f97b764879bcf9719729d196b798014b
[ "BSD-3-Clause" ]
1
2020-07-01T08:31:01.000Z
2020-07-02T01:20:51.000Z
caffe-master/python/utils/sample.py
yang81/TextDetect
3011ba55f97b764879bcf9719729d196b798014b
[ "BSD-3-Clause" ]
1
2020-06-17T02:52:57.000Z
2020-06-17T02:52:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __metaclss__=type import random import math import collections from PIL import Image, ImageDraw, ImageFont from utils.font import FontObj from utils.color import Color import skimage.util import numpy as np import cv2 import matplotlib.pyplot as plt import sys import time...
26.239857
168
0.64937
#!/usr/bin/env python # -*- coding: utf-8 -*- __metaclss__=type import random import math import collections from PIL import Image, ImageDraw, ImageFont from utils.font import FontObj from utils.color import Color import skimage.util import numpy as np import cv2 import matplotlib.pyplot as plt import sys import time...
20,646
-5
982
848855fe606af5f28b13a114f01584a55c674d2a
29
py
Python
sympy/logic/utilities/__init__.py
sn6uv/sympy
5b149c2f72847e4785c65358b09d99b29f101dd5
[ "BSD-3-Clause" ]
7
2015-01-14T06:55:33.000Z
2018-08-11T14:43:52.000Z
sympy/logic/utilities/__init__.py
sn6uv/sympy
5b149c2f72847e4785c65358b09d99b29f101dd5
[ "BSD-3-Clause" ]
1
2018-02-19T04:56:04.000Z
2018-02-19T04:56:04.000Z
sympy/logic/utilities/__init__.py
sn6uv/sympy
5b149c2f72847e4785c65358b09d99b29f101dd5
[ "BSD-3-Clause" ]
1
2016-04-24T14:39:22.000Z
2016-04-24T14:39:22.000Z
from dimacs import load_file
14.5
28
0.862069
from dimacs import load_file
0
0
0
e812749bf4529ddc1ee803b14e9468c7f8463ad6
430
py
Python
DCAL_notebooks/DCAL_Custom_Mosaics.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
DCAL_notebooks/DCAL_Custom_Mosaics.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
DCAL_notebooks/DCAL_Custom_Mosaics.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
1
2021-02-25T14:19:05.000Z
2021-02-25T14:19:05.000Z
# Code behind module for DCAL_Custom_Mosaics.ipynb ################################ ## ## Import Statments ## ################################ # Import standard Python modules import sys import datacube # Import DCAL utilities containing function definitions used generally across DCAL sys.path.append('../DCAL_utils'...
17.2
82
0.523256
# Code behind module for DCAL_Custom_Mosaics.ipynb ################################ ## ## Import Statments ## ################################ # Import standard Python modules import sys import datacube # Import DCAL utilities containing function definitions used generally across DCAL sys.path.append('../DCAL_utils'...
0
0
0
693e89132f2d54cce0651c04638a64e17b93c21c
177
py
Python
examples/warehouse.py
tat2ddaddy/EasyPost-Fulfillment
4f04ac85e2da1054add8a7fed1a3bff65eea6214
[ "MIT" ]
1
2020-01-31T23:31:24.000Z
2020-01-31T23:31:24.000Z
examples/warehouse.py
tat2ddaddy/EasyPost-Fulfillment
4f04ac85e2da1054add8a7fed1a3bff65eea6214
[ "MIT" ]
null
null
null
examples/warehouse.py
tat2ddaddy/EasyPost-Fulfillment
4f04ac85e2da1054add8a7fed1a3bff65eea6214
[ "MIT" ]
1
2020-03-10T01:28:32.000Z
2020-03-10T01:28:32.000Z
import fulfillment fulfillment.core.api_key = 'YOUR_API_KEY_GOES_HERE' # set debug to true to get print json fulfillment.core.Debug = True fulfillment.Warehouse.retrieveALL()
22.125
51
0.813559
import fulfillment fulfillment.core.api_key = 'YOUR_API_KEY_GOES_HERE' # set debug to true to get print json fulfillment.core.Debug = True fulfillment.Warehouse.retrieveALL()
0
0
0
44703efea3dbeab7669b18375a0808879c883830
2,511
py
Python
demo/neumann_poisson2D.py
spectralDNS/shenfun
956633aa0f1638db5ebdc497ff68a438aa22b932
[ "BSD-2-Clause" ]
138
2017-06-17T13:30:27.000Z
2022-03-20T02:33:47.000Z
demo/neumann_poisson2D.py
spectralDNS/shenfun
956633aa0f1638db5ebdc497ff68a438aa22b932
[ "BSD-2-Clause" ]
73
2017-05-16T06:53:04.000Z
2022-02-04T10:40:44.000Z
demo/neumann_poisson2D.py
spectralDNS/shenfun
956633aa0f1638db5ebdc497ff68a438aa22b932
[ "BSD-2-Clause" ]
38
2018-01-31T14:37:01.000Z
2022-03-31T15:07:27.000Z
r""" Solve Poisson equation in 2D with periodic bcs in one direction and homogeneous Neumann in the other \nabla^2 u = f, Use Fourier basis for the periodic direction and Shen's Neumann basis for the non-periodic direction. The equation to solve is (\nabla^2 u, v) = (f, v) """ import sys import os from sy...
28.213483
147
0.681004
r""" Solve Poisson equation in 2D with periodic bcs in one direction and homogeneous Neumann in the other \nabla^2 u = f, Use Fourier basis for the periodic direction and Shen's Neumann basis for the non-periodic direction. The equation to solve is (\nabla^2 u, v) = (f, v) """ import sys import os from sy...
0
0
0
0fc64dcb48b6303a7a368bf41d9c7ef8a78e9f3a
788
py
Python
i3/bin/get_displays.py
grzegorzludwa/dotfiles
0ed7c13763033e774732a3317b79caa4e0fcc91b
[ "MIT" ]
null
null
null
i3/bin/get_displays.py
grzegorzludwa/dotfiles
0ed7c13763033e774732a3317b79caa4e0fcc91b
[ "MIT" ]
null
null
null
i3/bin/get_displays.py
grzegorzludwa/dotfiles
0ed7c13763033e774732a3317b79caa4e0fcc91b
[ "MIT" ]
null
null
null
import subprocess import itertools command="xrandr --listmonitors" output = subprocess.run(command.split(), stdout=subprocess.PIPE, check=True, text=True) output = output.stdout displays_lines = output.split('\n')[1:-1] displays = [] for line in displays_lines: displays.append(line.split()[-1]) options = [] fo...
23.176471
87
0.658629
import subprocess import itertools command="xrandr --listmonitors" output = subprocess.run(command.split(), stdout=subprocess.PIPE, check=True, text=True) output = output.stdout displays_lines = output.split('\n')[1:-1] displays = [] for line in displays_lines: displays.append(line.split()[-1]) options = [] fo...
0
0
0
f88773a452b544ce63be7e86cd1843c0abb55814
9,975
py
Python
Mochila-Paralelo-Threads.py
abnermuxah/algoritmo-genetico-problema-mochila
73074d20f09983b710c3782bba1cd491b16d80a7
[ "MIT" ]
null
null
null
Mochila-Paralelo-Threads.py
abnermuxah/algoritmo-genetico-problema-mochila
73074d20f09983b710c3782bba1cd491b16d80a7
[ "MIT" ]
null
null
null
Mochila-Paralelo-Threads.py
abnermuxah/algoritmo-genetico-problema-mochila
73074d20f09983b710c3782bba1cd491b16d80a7
[ "MIT" ]
null
null
null
from random import randint import threading # Variavel global n_populacao = [] # funcoes if __name__ == '__main__': # Leitura do arquivo externo (instancias) file = open("100.txt") arquivo = file.read() # ler a cadeia de caracteres do arquivo .txt instancias = arquivo.split() # separar e agrupar os caracteres # ...
30.882353
116
0.633584
from random import randint import threading # Variavel global n_populacao = [] # funcoes def peso_cromo(cromossomo, peso): # retorna o peso toal que que o cromossomo pode levar sum_peso = 0 qtd_itens = len(peso) n = 0 if (len(cromossomo)!=qtd_itens): n = 2 else: n = 0 for i in range(qtd_itens): if cromos...
3,217
0
110
6168b33ee9764e2c6e4bf5c87b9668922f29cc89
1,266
py
Python
hd_mysql/migrations/0002_schedule_info.py
Rmond/OperMge
926f00107614ed55b26ff3beac178fe955de856a
[ "Apache-2.0" ]
1
2017-08-18T07:03:34.000Z
2017-08-18T07:03:34.000Z
hd_mysql/migrations/0002_schedule_info.py
Rmond/OperMge
926f00107614ed55b26ff3beac178fe955de856a
[ "Apache-2.0" ]
null
null
null
hd_mysql/migrations/0002_schedule_info.py
Rmond/OperMge
926f00107614ed55b26ff3beac178fe955de856a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-07-25 11:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
39.5625
133
0.599526
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-07-25 11:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('django_celery_beat', '0001_initial'), ('h...
0
1,047
25
5134c3635a3e15d9ddfe2e5b01e52495708df66a
601
py
Python
ecommerce/OrderAndDelivery/migrations/0015_auto_20201016_1728.py
shakyasaijal/commerce-fm
358b6925f4b569dc374010d7cc7d4d560ede2b48
[ "MIT" ]
18
2020-12-05T14:12:32.000Z
2022-03-11T20:15:22.000Z
ecommerce/OrderAndDelivery/migrations/0015_auto_20201016_1728.py
shakyasaijal/commerce-fm
358b6925f4b569dc374010d7cc7d4d560ede2b48
[ "MIT" ]
1
2021-07-22T09:23:13.000Z
2021-07-22T09:23:13.000Z
ecommerce/OrderAndDelivery/migrations/0015_auto_20201016_1728.py
shakyasaijal/commerce-fm
358b6925f4b569dc374010d7cc7d4d560ede2b48
[ "MIT" ]
13
2020-10-15T10:17:35.000Z
2022-01-29T06:56:24.000Z
# Generated by Django 3.0 on 2020-10-16 11:43 from django.db import migrations, models
25.041667
70
0.608985
# Generated by Django 3.0 on 2020-10-16 11:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('OrderAndDelivery', '0014_auto_20201016_1114'), ] operations = [ migrations.AddField( model_name='order', name='deliver...
0
489
23
f9fce6dff4bbc05f0d0d29b45605ef7ae92d6500
3,582
py
Python
dompetku/utils.py
blackshirt/dompetku
51b907dc25c927ef42b4522499c1884affd42980
[ "BSD-2-Clause" ]
1
2016-05-15T16:58:54.000Z
2016-05-15T16:58:54.000Z
dompetku/utils.py
blackshirt/dompetku
51b907dc25c927ef42b4522499c1884affd42980
[ "BSD-2-Clause" ]
null
null
null
dompetku/utils.py
blackshirt/dompetku
51b907dc25c927ef42b4522499c1884affd42980
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright @2014 blackshirtmuslim@yahoo.com # Licensed: see Python license """Utility module""" import json import uuid import hashlib from decimal import Decimal from datetime import date, datetime from tornado import concurrent, ioloop from concurrent.futures import ThreadPoolExecutor de...
29.360656
94
0.676438
#!/usr/bin/env python # # Copyright @2014 blackshirtmuslim@yahoo.com # Licensed: see Python license """Utility module""" import json import uuid import hashlib from decimal import Decimal from datetime import date, datetime from tornado import concurrent, ioloop from concurrent.futures import ThreadPoolExecutor de...
2,177
235
111
2f3dd15bcda275e377033fe4e18ae6f3d0bc3ac0
165
py
Python
codewars/8kyu/amrlotfy77/Grasshopper - Summation/test_bench.py
ictcubeMENA/Training_one
dff6bee96ba42babe4888e5cf9a9448a6fd93fc3
[ "MIT" ]
null
null
null
codewars/8kyu/amrlotfy77/Grasshopper - Summation/test_bench.py
ictcubeMENA/Training_one
dff6bee96ba42babe4888e5cf9a9448a6fd93fc3
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/8kyu/amrlotfy77/Grasshopper - Summation/test_bench.py
ictcubeMENA/Training_one
dff6bee96ba42babe4888e5cf9a9448a6fd93fc3
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
from main import summation,summation1
18.333333
40
0.721212
from main import summation,summation1 def test1(benchmark): assert benchmark(summation,1)== 1 def test(benchmark): assert benchmark(summation1, 1) == 1
80
0
46
839106fce2a15faccf685f56f0c8a5dfa87571d2
1,020
py
Python
ind.py
Maria-28/LR4.2
0fd8e6a7f54602e28b452e8a4d99ada9c370165c
[ "MIT" ]
null
null
null
ind.py
Maria-28/LR4.2
0fd8e6a7f54602e28b452e8a4d99ada9c370165c
[ "MIT" ]
null
null
null
ind.py
Maria-28/LR4.2
0fd8e6a7f54602e28b452e8a4d99ada9c370165c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # В строке могут присутствовать скобки как круглые, так и квадратные скобки. Каждой # открывающей скобке соответствует закрывающая того же типа (круглой – круглая, # квадратной- квадратная). Напишите рекурсивную функцию, проверяющую правильность # расстановки скобок в...
26.842105
84
0.509804
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # В строке могут присутствовать скобки как круглые, так и квадратные скобки. Каждой # открывающей скобке соответствует закрывающая того же типа (круглой – круглая, # квадратной- квадратная). Напишите рекурсивную функцию, проверяющую правильность # расстановки скобок в...
520
0
85
abb34daeae73074559a0c7bac8314ad6e47ec18e
3,642
py
Python
yacluster.py
KrzysiekJ/yacluster
4f908880283f8305e4700e1f372b45367fca268c
[ "MIT" ]
4
2016-07-05T16:23:57.000Z
2021-07-25T15:23:02.000Z
yacluster.py
KrzysiekJ/yacluster
4f908880283f8305e4700e1f372b45367fca268c
[ "MIT" ]
null
null
null
yacluster.py
KrzysiekJ/yacluster
4f908880283f8305e4700e1f372b45367fca268c
[ "MIT" ]
1
2021-07-25T15:23:09.000Z
2021-07-25T15:23:09.000Z
from functools import partial, reduce from itertools import chain, product from math import sqrt def cluster_iter(clustered, point, threshold): """Add a point to a grid-like cluster structure. This allows comparing point distances only to clusters from nearby grids, not to all clusters. Useful when there...
41.862069
147
0.720209
from functools import partial, reduce from itertools import chain, product from math import sqrt def distance(coords_1, coords_2): return sqrt(pow(coords_1[0] - coords_2[0], 2) + pow(coords_1[1] - coords_2[1], 2)) def get_grid_cell(x, y, threshold): return (int(x // threshold), int(y // threshold)) def g...
753
0
97
7b164c1bee8839bc2a1d23d1d331a90b8685fd8a
4,830
py
Python
unbox/uno/views.py
NikhilPhalange/recommendo
7594f0c12e9b3d0ac439670ae1d91f34394bd90d
[ "Apache-2.0" ]
null
null
null
unbox/uno/views.py
NikhilPhalange/recommendo
7594f0c12e9b3d0ac439670ae1d91f34394bd90d
[ "Apache-2.0" ]
null
null
null
unbox/uno/views.py
NikhilPhalange/recommendo
7594f0c12e9b3d0ac439670ae1d91f34394bd90d
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render, render_to_response, RequestContext from uno.models import Question_m from django.views.generic import FormView from uno.forms import Question_f import requests #rom uno.info import information from copy import deepcopy from uno.a import i...
34.748201
199
0.564803
from django.http import HttpResponse from django.shortcuts import render, render_to_response, RequestContext from uno.models import Question_m from django.views.generic import FormView from uno.forms import Question_f import requests #rom uno.info import information from copy import deepcopy from uno.a import i...
4,186
0
148
d3460d9f9b337a8bbe5da34135cc78e04c38008b
300
py
Python
discord/ext/vbu/cogs/utils/converters/__init__.py
6days9weeks/Novus
a21157f15d7a07669cb75b3f023bd9eedf40e40e
[ "MIT" ]
2
2022-01-22T16:05:42.000Z
2022-01-22T16:06:07.000Z
discord/ext/vbu/cogs/utils/converters/__init__.py
6days9weeks/Novus
a21157f15d7a07669cb75b3f023bd9eedf40e40e
[ "MIT" ]
null
null
null
discord/ext/vbu/cogs/utils/converters/__init__.py
6days9weeks/Novus
a21157f15d7a07669cb75b3f023bd9eedf40e40e
[ "MIT" ]
null
null
null
from .user_id import UserID from .channel_id import ChannelID from .enum_converter import EnumConverter from .boolean_converter import BooleanConverter from .colour_converter import ColourConverter from .filtered_user import FilteredUser, FilteredMember from .number_converter import NumberConverter
37.5
55
0.876667
from .user_id import UserID from .channel_id import ChannelID from .enum_converter import EnumConverter from .boolean_converter import BooleanConverter from .colour_converter import ColourConverter from .filtered_user import FilteredUser, FilteredMember from .number_converter import NumberConverter
0
0
0
da6cfb1412b7f109cd7e1da326d638ba647ddc0e
13,178
py
Python
net/network/neural_net.py
elQuixote/Pytorch_ImageClassifier
22f5dc136b56a4a5d9b372191006fedfbd6c9ad5
[ "MIT" ]
1
2021-01-16T13:44:42.000Z
2021-01-16T13:44:42.000Z
net/network/neural_net.py
elQuixote/Pytorch_ImageClassifier
22f5dc136b56a4a5d9b372191006fedfbd6c9ad5
[ "MIT" ]
null
null
null
net/network/neural_net.py
elQuixote/Pytorch_ImageClassifier
22f5dc136b56a4a5d9b372191006fedfbd6c9ad5
[ "MIT" ]
null
null
null
import torch as t from torch import nn import math as m import torchvision.models as models import numpy as np import matplotlib.pyplot as plt import copy '''neural_net.py: Custom network object deriving from nn.Module to track the architecture ''' __author__ = "Luis Quinones" __email__ = "luis@complicitmatter.com" __...
43.206557
137
0.588633
import torch as t from torch import nn import math as m import torchvision.models as models import numpy as np import matplotlib.pyplot as plt import copy '''neural_net.py: Custom network object deriving from nn.Module to track the architecture ''' __author__ = "Luis Quinones" __email__ = "luis@complicitmatter.com" __...
790
0
27
1b922f498e9d1bd6014435b4ed0ce491985ee580
4,260
py
Python
shcomplete/tests/test_model2correct.py
gy741/shell-complete
20ad82eb45015a79afc734f4cce2201b5fba3785
[ "Apache-2.0" ]
null
null
null
shcomplete/tests/test_model2correct.py
gy741/shell-complete
20ad82eb45015a79afc734f4cce2201b5fba3785
[ "Apache-2.0" ]
null
null
null
shcomplete/tests/test_model2correct.py
gy741/shell-complete
20ad82eb45015a79afc734f4cce2201b5fba3785
[ "Apache-2.0" ]
null
null
null
import argparse import logging import os import unittest from keras.layers import recurrent import numpy as np from shcomplete.model2correct import Seq2seq, generate_model, get_chars, train_correct from shcomplete.model2correct import generator_misprints, dislpay_sample_correction if __name__ == '__main__': u...
44.375
99
0.638028
import argparse import logging import os import unittest from keras.layers import recurrent import numpy as np from shcomplete.model2correct import Seq2seq, generate_model, get_chars, train_correct from shcomplete.model2correct import generator_misprints, dislpay_sample_correction class DataGenerator(unittest.TestC...
3,632
33
260
52a6fcb1fec29afdd08712e4dfa38826e4ccf30d
4,050
py
Python
tests/test_options.py
Stormheg/draftjs_exporter
be2a7e62ae7e97b37348b4f41b1a688dbfd13c6d
[ "MIT" ]
76
2016-06-30T14:26:22.000Z
2021-12-30T08:17:54.000Z
tests/test_options.py
Stormheg/draftjs_exporter
be2a7e62ae7e97b37348b4f41b1a688dbfd13c6d
[ "MIT" ]
98
2016-07-01T12:27:25.000Z
2021-03-04T21:24:37.000Z
tests/test_options.py
Stormheg/draftjs_exporter
be2a7e62ae7e97b37348b4f41b1a688dbfd13c6d
[ "MIT" ]
22
2016-07-01T19:23:52.000Z
2021-12-30T08:18:19.000Z
import unittest from draftjs_exporter.error import ConfigException from draftjs_exporter.options import Options
30
80
0.453827
import unittest from draftjs_exporter.error import ConfigException from draftjs_exporter.options import Options class TestOptions(unittest.TestCase): def test_str(self): self.assertEqual( str(Options("unordered-list-item", "li")), "<Options unordered-list-item li {} None None>", ...
3,520
16
400
a0c458328447709abb195adfcca137536aeb22ff
456
py
Python
src/zc/set/tests.py
ZeitOnline/zc.set
e39ac9d4d87d7d95ec191190d6ea77474b1d6498
[ "ZPL-2.1" ]
null
null
null
src/zc/set/tests.py
ZeitOnline/zc.set
e39ac9d4d87d7d95ec191190d6ea77474b1d6498
[ "ZPL-2.1" ]
null
null
null
src/zc/set/tests.py
ZeitOnline/zc.set
e39ac9d4d87d7d95ec191190d6ea77474b1d6498
[ "ZPL-2.1" ]
null
null
null
import unittest from zope.testing import doctest, module import zc.set if __name__ == '__main__': unittest.main(defaultTest='test_suite')
21.714286
63
0.695175
import unittest from zope.testing import doctest, module import zc.set def setUpSetsOne(test): test.globs['factory'] = set def setUpSetsTwo(test): test.globs['factory'] = zc.set.Set def test_suite(): return unittest.TestSuite(( doctest.DocFileSuite('README.txt', setUp=setUpSetsOne), doct...
242
0
69
a7eb5f17185695564ccdccce6a73d0b6bbfbba75
222
py
Python
packages/girder_worker/girder_worker/plugins/types/format/directory/tgz_to_path.py
ShenQianwithC/HistomicsTK
4ad7e72a7ebdabbdfc879254fad04ce7ca47e320
[ "Apache-2.0" ]
null
null
null
packages/girder_worker/girder_worker/plugins/types/format/directory/tgz_to_path.py
ShenQianwithC/HistomicsTK
4ad7e72a7ebdabbdfc879254fad04ce7ca47e320
[ "Apache-2.0" ]
null
null
null
packages/girder_worker/girder_worker/plugins/types/format/directory/tgz_to_path.py
ShenQianwithC/HistomicsTK
4ad7e72a7ebdabbdfc879254fad04ce7ca47e320
[ "Apache-2.0" ]
null
null
null
import os import tarfile output = os.path.splitext(input)[0] try: os.makedirs(output) except OSError: if not os.path.exists(output): raise with tarfile.open(input, 'r') as tf: tf.extractall(output)
14.8
36
0.675676
import os import tarfile output = os.path.splitext(input)[0] try: os.makedirs(output) except OSError: if not os.path.exists(output): raise with tarfile.open(input, 'r') as tf: tf.extractall(output)
0
0
0
75cd7993bf09050858e2fdd0183fec05d6496010
2,005
py
Python
src/cgen/ast/literal.py
cursedclock/swiss_water_compiler
e4d44d35d14d545c54f37795946ed6a1700afae4
[ "MIT" ]
null
null
null
src/cgen/ast/literal.py
cursedclock/swiss_water_compiler
e4d44d35d14d545c54f37795946ed6a1700afae4
[ "MIT" ]
null
null
null
src/cgen/ast/literal.py
cursedclock/swiss_water_compiler
e4d44d35d14d545c54f37795946ed6a1700afae4
[ "MIT" ]
null
null
null
import enum import struct from .abstract import AbstractNode from .utils import ValuedNodeMixin, NodeContext
25.705128
78
0.669825
import enum import struct from .abstract import AbstractNode from .utils import ValuedNodeMixin, NodeContext class PrimitiveTypes(enum.Enum): Null = 0 Bool = 1 Int = 2 Double = 3 String = 4 # aliases NULL = 0 BOOLEANLITERAL = 1 INTLITERAL = 2 DOUBLELITERAL = 3 STRINGLITERA...
1,045
552
291
d801cbd215418f7c40ffbce0a7835d25d4b91e9d
4,568
py
Python
algotrader/trading/clock.py
alexcwyu/python-trading
a494f602411a3ebfdecae002a16a5ea93fc7a046
[ "Apache-2.0" ]
17
2016-03-30T21:52:30.000Z
2021-05-01T18:21:48.000Z
algotrader/trading/clock.py
ajmal017/python-trading
a494f602411a3ebfdecae002a16a5ea93fc7a046
[ "Apache-2.0" ]
2
2016-10-04T19:29:05.000Z
2017-02-01T19:24:39.000Z
algotrader/trading/clock.py
ajmal017/python-trading
a494f602411a3ebfdecae002a16a5ea93fc7a046
[ "Apache-2.0" ]
9
2016-04-24T05:05:26.000Z
2020-05-03T13:01:34.000Z
from gevent import monkey monkey.patch_time() monkey.patch_socket() import abc import datetime import time from rx.concurrency.eventloopscheduler import EventLoopScheduler from rx.concurrency.historicalscheduler import HistoricalScheduler from rx.concurrency.mainloopscheduler import GEventScheduler from rx.concurren...
33.101449
104
0.718914
from gevent import monkey monkey.patch_time() monkey.patch_socket() import abc import datetime import time from rx.concurrency.eventloopscheduler import EventLoopScheduler from rx.concurrency.historicalscheduler import HistoricalScheduler from rx.concurrency.mainloopscheduler import GEventScheduler from rx.concurren...
2,370
1,092
518
8603a1697a8cfb77dbeb1e65c54d4922279ec156
1,366
py
Python
Search-Algorithms/TreeStructures.py
earmingol/Personal-Collection
5c0c322bfec140a1bbef678a11cc690e0dac48a3
[ "MIT" ]
null
null
null
Search-Algorithms/TreeStructures.py
earmingol/Personal-Collection
5c0c322bfec140a1bbef678a11cc690e0dac48a3
[ "MIT" ]
null
null
null
Search-Algorithms/TreeStructures.py
earmingol/Personal-Collection
5c0c322bfec140a1bbef678a11cc690e0dac48a3
[ "MIT" ]
null
null
null
# coding: utf-8 # Node class based on the book "Inteligencia Artificial - Fundamentos, práctica y aplicaciones" by Alberto García Serrano
24.392857
121
0.598829
# coding: utf-8 # Node class based on the book "Inteligencia Artificial - Fundamentos, práctica y aplicaciones" by Alberto García Serrano class Node(): def __init__(self, data, id = None): self.data = data self.id = id self.parent = None self.children = None self.cost = None...
837
-8
400
9753c39d1853d6246410d1dad0e380c99ce01c1c
138
py
Python
teste.py
pedro-canedo/Estudos-em-Python
563c2b40ba03b9dcd08668f3c2e0485b3196ff26
[ "MIT" ]
1
2021-07-31T03:56:43.000Z
2021-07-31T03:56:43.000Z
teste.py
pedro-canedo/Estudos-em-Python
563c2b40ba03b9dcd08668f3c2e0485b3196ff26
[ "MIT" ]
null
null
null
teste.py
pedro-canedo/Estudos-em-Python
563c2b40ba03b9dcd08668f3c2e0485b3196ff26
[ "MIT" ]
null
null
null
numero = int(input("Fatorial de: ") ) resultado=1 count=1 while count <= numero: resultado *= count count --1 print(resultado)
12.545455
37
0.652174
numero = int(input("Fatorial de: ") ) resultado=1 count=1 while count <= numero: resultado *= count count --1 print(resultado)
0
0
0
627ca225022492c812109d5bc50448cc59d3b486
7,194
py
Python
utils.py
smtnkc/bert4epi
e45198916eba6e716be3e1e02c8c2a51de8c9891
[ "MIT" ]
null
null
null
utils.py
smtnkc/bert4epi
e45198916eba6e716be3e1e02c8c2a51de8c9891
[ "MIT" ]
null
null
null
utils.py
smtnkc/bert4epi
e45198916eba6e716be3e1e02c8c2a51de8c9891
[ "MIT" ]
null
null
null
import torch import os import torch.nn as nn import logging import time from sklearn.metrics import f1_score, classification_report, confusion_matrix from transformers import BertForSequenceClassification
33.152074
130
0.606339
import torch import os import torch.nn as nn import logging import time from sklearn.metrics import f1_score, classification_report, confusion_matrix from transformers import BertForSequenceClassification class BERT(nn.Module): def __init__(self): super(BERT, self).__init__() options_name = "ber...
6,772
1
215
6413b8ee3194babe2191376fca41309350962f11
2,797
py
Python
The Schelling Model.py
MapleNSteel/ConvolutionalSchelling
12f3a08b0889b2f7f5f92f6074e09c1a6642553e
[ "Apache-2.0" ]
null
null
null
The Schelling Model.py
MapleNSteel/ConvolutionalSchelling
12f3a08b0889b2f7f5f92f6074e09c1a6642553e
[ "Apache-2.0" ]
null
null
null
The Schelling Model.py
MapleNSteel/ConvolutionalSchelling
12f3a08b0889b2f7f5f92f6074e09c1a6642553e
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy import signal import matplotlib.pyplot as plt import cv2 numDem=500 numRep=500 numColumns=50 numRows=50 numGrid=numColumns*numRows windowSize=3 kernel=np.ones((windowSize,windowSize)) kernel[(windowSize-1)/2,(windowSize-1)/2]=0 numIter=100 valueThreshold=0.375*((windowSize**2)-1) #S...
27.97
157
0.750804
import numpy as np from scipy import signal import matplotlib.pyplot as plt import cv2 numDem=500 numRep=500 numColumns=50 numRows=50 numGrid=numColumns*numRows windowSize=3 kernel=np.ones((windowSize,windowSize)) kernel[(windowSize-1)/2,(windowSize-1)/2]=0 numIter=100 valueThreshold=0.375*((windowSize**2)-1) #S...
289
0
46
4d8cf658bd276e110dbb7b4ab8bbb325dec3a9ee
1,889
py
Python
extcats/testdata.py
vbrinnel/extcats
fd37ad19c8b613cca6410c303416d26210392a02
[ "MIT" ]
2
2019-05-07T12:57:49.000Z
2020-04-07T14:38:54.000Z
extcats/testdata.py
vbrinnel/extcats
fd37ad19c8b613cca6410c303416d26210392a02
[ "MIT" ]
5
2018-03-06T20:14:54.000Z
2018-11-01T13:59:03.000Z
extcats/testdata.py
vbrinnel/extcats
fd37ad19c8b613cca6410c303416d26210392a02
[ "MIT" ]
5
2018-02-28T15:25:58.000Z
2021-02-01T10:33:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # download some test data to run example notebook # # Author: M. Giomi (matteo.giomi@desy.de) import os from urllib.request import urlretrieve from shutil import unpack_archive
35.641509
95
0.622552
#!/usr/bin/env python # -*- coding: utf-8 -*- # # download some test data to run example notebook # # Author: M. Giomi (matteo.giomi@desy.de) import os from urllib.request import urlretrieve from shutil import unpack_archive class MQC: def download(datadir = "./testdata/milliquas", fname = "heasa...
1,569
-17
108
6ecb1e95b59bfe086a21a6f2bba88cd15339dfdb
745
py
Python
fx/test.py
vangual/plasma
b5acdd8114b87c723103f90405d79e71499d4f78
[ "MIT" ]
null
null
null
fx/test.py
vangual/plasma
b5acdd8114b87c723103f90405d79e71499d4f78
[ "MIT" ]
null
null
null
fx/test.py
vangual/plasma
b5acdd8114b87c723103f90405d79e71499d4f78
[ "MIT" ]
null
null
null
import plasma import plasmafx from plasmafx import plugins import time FPS = 60 NUM_LIGHTS = 10 plasma.set_light_count(10) sequence = plasmafx.Sequence(NUM_LIGHTS) for x in range(NUM_LIGHTS): sequence.set_plugin(x, plugins.FXCycle( speed=2, spread=5, offset=(360.0/NUM_LIGHTS) * x )) ...
19.102564
68
0.609396
import plasma import plasmafx from plasmafx import plugins import time FPS = 60 NUM_LIGHTS = 10 plasma.set_light_count(10) sequence = plasmafx.Sequence(NUM_LIGHTS) for x in range(NUM_LIGHTS): sequence.set_plugin(x, plugins.FXCycle( speed=2, spread=5, offset=(360.0/NUM_LIGHTS) * x )) ...
0
0
0
d646bae450ebf34b8304da5219140af55f34a58e
7,388
py
Python
src/pallas/conversions.py
tomasbedrich/pallas
cd414f0ed0c4b5a39da21061b08f9e7a5b674c8b
[ "Apache-2.0" ]
null
null
null
src/pallas/conversions.py
tomasbedrich/pallas
cd414f0ed0c4b5a39da21061b08f9e7a5b674c8b
[ "Apache-2.0" ]
null
null
null
src/pallas/conversions.py
tomasbedrich/pallas
cd414f0ed0c4b5a39da21061b08f9e7a5b674c8b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Akamai Technologies, 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...
28.091255
78
0.64889
# Copyright 2020 Akamai Technologies, 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...
1,972
828
336
62b0bacd5684234667190f618f48ce267fc5d7c8
481
bzl
Python
multi-log-test/third_party/fmtlib/direct.bzl
seuyx/bazel-experiments
ea5da09ea0d74f0a0163cbf0bfaed7c35e5cec22
[ "MIT" ]
null
null
null
multi-log-test/third_party/fmtlib/direct.bzl
seuyx/bazel-experiments
ea5da09ea0d74f0a0163cbf0bfaed7c35e5cec22
[ "MIT" ]
null
null
null
multi-log-test/third_party/fmtlib/direct.bzl
seuyx/bazel-experiments
ea5da09ea0d74f0a0163cbf0bfaed7c35e5cec22
[ "MIT" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
37
82
0.698545
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def load_fmtlib(): maybe( http_archive, name = "com_github_fmtlib_fmt", url = "https://github.com/fmtlib/fmt/releases/download/8.1.1/fmt-8.1.1.zip", sha256 = "2...
326
0
23
89485dab73034b8b11b29b0cdd9d56b3f1d1c416
236
py
Python
data/strategies/publishers/wiley_issn.py
jamesrharwood/journal-guidelines
fe6c0a6d3c0443df6fc816b9503fad24459ddb4a
[ "MIT" ]
null
null
null
data/strategies/publishers/wiley_issn.py
jamesrharwood/journal-guidelines
fe6c0a6d3c0443df6fc816b9503fad24459ddb4a
[ "MIT" ]
null
null
null
data/strategies/publishers/wiley_issn.py
jamesrharwood/journal-guidelines
fe6c0a6d3c0443df6fc816b9503fad24459ddb4a
[ "MIT" ]
null
null
null
url = r"onlinelibrary.wiley.com/journal/{ID}/(?P<ISSN>\(ISSN\)[\d-]*)" extractor_args = dict(restrict_text=[r"author\s*guidelines"]) template = ( "https://onlinelibrary.wiley.com/page/journal/{ID}/{ISSN}/homepage/forauthors.html" )
39.333333
87
0.70339
url = r"onlinelibrary.wiley.com/journal/{ID}/(?P<ISSN>\(ISSN\)[\d-]*)" extractor_args = dict(restrict_text=[r"author\s*guidelines"]) template = ( "https://onlinelibrary.wiley.com/page/journal/{ID}/{ISSN}/homepage/forauthors.html" )
0
0
0
129a5beca9e5e509559cdb65aed64af325dd1305
2,262
py
Python
src/api.py
ifeekz/build_4_sdg
503dd37b3827f0a9cad2039ada1ee26d56a98061
[ "MIT" ]
null
null
null
src/api.py
ifeekz/build_4_sdg
503dd37b3827f0a9cad2039ada1ee26d56a98061
[ "MIT" ]
null
null
null
src/api.py
ifeekz/build_4_sdg
503dd37b3827f0a9cad2039ada1ee26d56a98061
[ "MIT" ]
null
null
null
import json from flask import Flask, request, jsonify, make_response from flask_restful import Api, Resource, reqparse from simplexml import dumps from estimator import estimator app = Flask(__name__) api = Api(app, default_mediatype=None) @api.representation('application/json') def output_xml(data, code, headers=No...
38.338983
109
0.665782
import json from flask import Flask, request, jsonify, make_response from flask_restful import Api, Resource, reqparse from simplexml import dumps from estimator import estimator app = Flask(__name__) api = Api(app, default_mediatype=None) @api.representation('application/json') def output_json(data, code, headers=No...
975
15
124
a3993d03d8af22ea32a4563b7c54ce21a50f7605
9,513
py
Python
models/block.py
tadeephuy/CoFo
28461e923f112182887d66d1db499da7a2535b28
[ "MIT" ]
2
2022-02-15T07:58:29.000Z
2022-02-25T10:08:59.000Z
models/block.py
tadeephuy/CoFo
28461e923f112182887d66d1db499da7a2535b28
[ "MIT" ]
null
null
null
models/block.py
tadeephuy/CoFo
28461e923f112182887d66d1db499da7a2535b28
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import sys from .layers import PixelShuffle_ICNR
44.661972
154
0.57248
import torch import torch.nn as nn import torch.nn.functional as F import sys from .layers import PixelShuffle_ICNR def crop_combine(x1, x2): diffY = x2.size()[2] - x1.size()[2] diffX = x2.size()[3] - x1.size()[3] x2 = F.pad(x2, [ -diffX//2, -diffX//2, -diffY//2, -diffY//2 ...
8,637
67
671
e0a2f2f95574ee23b3dfa58867c5333309f07dab
632
py
Python
pandas/count_appear.py
muzudho/practice-py
a84abf0abc1f19221fa18768b068caea3c91aed4
[ "MIT" ]
null
null
null
pandas/count_appear.py
muzudho/practice-py
a84abf0abc1f19221fa18768b068caea3c91aed4
[ "MIT" ]
null
null
null
pandas/count_appear.py
muzudho/practice-py
a84abf0abc1f19221fa18768b068caea3c91aed4
[ "MIT" ]
null
null
null
import os import pandas as pd df = pd.read_csv( "{}/practice-pandas/data/test-participant.csv".format(os.getcwd()), sep=',', engine='python', verbose=True) df_grouped = df.groupby("GENRE_CODE").count() df_sorted = df_grouped["ID"].sort_values(ascending=False) # Top 1000. print(df_sorted.head(1000)) """ GENRE_CO...
19.151515
111
0.564873
import os import pandas as pd df = pd.read_csv( "{}/practice-pandas/data/test-participant.csv".format(os.getcwd()), sep=',', engine='python', verbose=True) df_grouped = df.groupby("GENRE_CODE").count() df_sorted = df_grouped["ID"].sort_values(ascending=False) # Top 1000. print(df_sorted.head(1000)) """ GENRE_CO...
0
0
0
bb68ae7738bc606f645c311825795906cc2775af
5,162
py
Python
src/reader.py
BinhNguyen231/IDCardRecognition
061f353127d1e33da1b72f4225bd11fa835501ea
[ "Apache-2.0" ]
null
null
null
src/reader.py
BinhNguyen231/IDCardRecognition
061f353127d1e33da1b72f4225bd11fa835501ea
[ "Apache-2.0" ]
null
null
null
src/reader.py
BinhNguyen231/IDCardRecognition
061f353127d1e33da1b72f4225bd11fa835501ea
[ "Apache-2.0" ]
null
null
null
from vietocr.tool.translate import build_model, translate, translate_beam_search, process_input, predict from vietocr.tool.utils import download_weights from vietocr.tool.config import Cfg import sys import os import cv2 import numpy as np import math import pandas as pd import torch import time from cropper import Cro...
37.955882
173
0.585238
from vietocr.tool.translate import build_model, translate, translate_beam_search, process_input, predict from vietocr.tool.utils import download_weights from vietocr.tool.config import Cfg import sys import os import cv2 import numpy as np import math import pandas as pd import torch import time from cropper import Cro...
1,695
529
23
ffaade27a9c553f612d1d26b88569d33a8d17441
26
py
Python
Chapter 01/Chap01_Example1.91.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.91.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 01/Chap01_Example1.91.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
a= 30 a //= 2 print(a)
6.5
9
0.423077
a= 30 a //= 2 print(a)
0
0
0
bf1ca4d713d828aa5bffb5c43328fb9e8ea31cd0
2,230
py
Python
scripts_Old/get_cat_as_binmatrix.py
ksegaba/ML-Pipeline
cd3914563ccd2e2eb863a55e7fe774108280ed47
[ "MIT" ]
12
2019-09-30T21:17:40.000Z
2022-02-11T00:22:52.000Z
scripts_Old/get_cat_as_binmatrix.py
DanyelleJhang/ML-Pipeline
78073fd1004f831c4efdd05e0f1eb78c8bae4fcb
[ "MIT" ]
6
2021-08-03T14:29:16.000Z
2021-11-17T22:39:13.000Z
scripts_Old/get_cat_as_binmatrix.py
DanyelleJhang/ML-Pipeline
78073fd1004f831c4efdd05e0f1eb78c8bae4fcb
[ "MIT" ]
17
2017-05-22T21:03:42.000Z
2022-03-01T15:06:29.000Z
##script used to combine multiple files into a matrix import os, sys import pandas as pd import numpy as np sum_matrix = open(sys.argv[1]+"_binary.matrix.txt","w") # open with pandas df = pd.read_csv(sys.argv[1], sep='\t', index_col = 0) #get first line as title list col_list= list(df.columns.values) print (col_list...
28.961039
98
0.56278
##script used to combine multiple files into a matrix import os, sys import pandas as pd import numpy as np sum_matrix = open(sys.argv[1]+"_binary.matrix.txt","w") # open with pandas df = pd.read_csv(sys.argv[1], sep='\t', index_col = 0) #get first line as title list col_list= list(df.columns.values) print (col_list...
298
0
22
c8290755239ff48d7f3d7c605293cdfbf9a78742
405
py
Python
frontend/urls.py
evansMeja/django_react_django_nox_auth
1799ade605e941b0123f2b40f03aaef6479ec188
[ "MIT" ]
null
null
null
frontend/urls.py
evansMeja/django_react_django_nox_auth
1799ade605e941b0123f2b40f03aaef6479ec188
[ "MIT" ]
null
null
null
frontend/urls.py
evansMeja/django_react_django_nox_auth
1799ade605e941b0123f2b40f03aaef6479ec188
[ "MIT" ]
null
null
null
from django.urls import path from .views import index, TodoDetailView from django.conf import settings urlpatterns = [ path('', index), path('edit/<int:pk>', TodoDetailView.as_view()), path('delete/<int:pk>', TodoDetailView.as_view()), ] react_routes = getattr(settings, 'REACT_ROUTES', []) for route i...
18.409091
54
0.661728
from django.urls import path from .views import index, TodoDetailView from django.conf import settings urlpatterns = [ path('', index), path('edit/<int:pk>', TodoDetailView.as_view()), path('delete/<int:pk>', TodoDetailView.as_view()), ] react_routes = getattr(settings, 'REACT_ROUTES', []) for route i...
0
0
0
f3b6998c88ac451d5e031dd9a5844a2c373da629
6,773
py
Python
tools/graph_bag/scripts/make_groundtruth_map.py
tiferrei/astrobee
a9aa0a7e9a7dd5a28c264acfd06ccde18103190a
[ "Apache-2.0" ]
629
2017-08-31T23:09:00.000Z
2022-03-30T11:55:40.000Z
tools/graph_bag/scripts/make_groundtruth_map.py
tiferrei/astrobee
a9aa0a7e9a7dd5a28c264acfd06ccde18103190a
[ "Apache-2.0" ]
269
2018-05-05T12:31:16.000Z
2022-03-30T22:04:11.000Z
tools/graph_bag/scripts/make_groundtruth_map.py
tiferrei/astrobee
a9aa0a7e9a7dd5a28c264acfd06ccde18103190a
[ "Apache-2.0" ]
248
2017-08-31T23:20:56.000Z
2022-03-30T22:29:16.000Z
#!/usr/bin/python # # Copyright (c) 2017, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # # All rights reserved. # # The Astrobee platform is licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in comp...
38.482955
151
0.714454
#!/usr/bin/python # # Copyright (c) 2017, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # # All rights reserved. # # The Astrobee platform is licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in comp...
3,740
0
23
8980d33cbdf2de7e97856bc5013e1cf77e9aa6cd
2,608
py
Python
app/api/v1/user/resources.py
arilsonsouza/flask-api
f1dcd6e47b426a57398b7e2922242496fa9ef3c3
[ "MIT" ]
null
null
null
app/api/v1/user/resources.py
arilsonsouza/flask-api
f1dcd6e47b426a57398b7e2922242496fa9ef3c3
[ "MIT" ]
null
null
null
app/api/v1/user/resources.py
arilsonsouza/flask-api
f1dcd6e47b426a57398b7e2922242496fa9ef3c3
[ "MIT" ]
null
null
null
from datetime import timedelta from flask import request, current_app from flask_jwt_extended import jwt_required, create_access_token, get_jwt_identity from marshmallow.exceptions import ValidationError from sqlalchemy import or_ from app.api.utils import success_response, error_response, get_items_per_page, get_req...
37.797101
123
0.696319
from datetime import timedelta from flask import request, current_app from flask_jwt_extended import jwt_required, create_access_token, get_jwt_identity from marshmallow.exceptions import ValidationError from sqlalchemy import or_ from app.api.utils import success_response, error_response, get_items_per_page, get_req...
1,907
0
66
28a53f3ba104946a94d464991748f4c97f055010
3,212
py
Python
nes/nasbench201/worker.py
automl/nes
1c54786c30acd6e19eb9708204bffc86b58ea272
[ "Apache-2.0" ]
26
2020-06-22T16:07:54.000Z
2022-03-23T08:12:05.000Z
nes/nasbench201/worker.py
automl/nes
1c54786c30acd6e19eb9708204bffc86b58ea272
[ "Apache-2.0" ]
2
2020-07-13T06:23:18.000Z
2022-03-31T07:30:18.000Z
nes/nasbench201/worker.py
automl/nes
1c54786c30acd6e19eb9708204bffc86b58ea272
[ "Apache-2.0" ]
4
2020-07-06T01:55:16.000Z
2021-08-02T00:00:14.000Z
import os import torch import warnings warnings.filterwarnings('ignore') from hpbandster.core.worker import Worker from nes.ensemble_selection.create_baselearners import create_baselearner
38.698795
96
0.527086
import os import torch import warnings warnings.filterwarnings('ignore') from hpbandster.core.worker import Worker from nes.ensemble_selection.create_baselearners import create_baselearner class NB201Worker(Worker): def __init__(self, working_directory, *args, scheme='nes_re', dataset='cifar10',...
0
2,996
23
5ea40f57be182f0f21b54b10a278a66105e190eb
1,916
py
Python
Canvas and mouse events.py
Hanif-adedotun/Hanif-codes
9835c6196a638e9c56855123fc3f95111a1a4b08
[ "Apache-2.0" ]
null
null
null
Canvas and mouse events.py
Hanif-adedotun/Hanif-codes
9835c6196a638e9c56855123fc3f95111a1a4b08
[ "Apache-2.0" ]
null
null
null
Canvas and mouse events.py
Hanif-adedotun/Hanif-codes
9835c6196a638e9c56855123fc3f95111a1a4b08
[ "Apache-2.0" ]
null
null
null
import tkinter from tkinter import ttk mainclass()
29.9375
121
0.601775
import tkinter from tkinter import ttk class PenData(object): def __init__(self): self.color = 'blue' self.mouse_position_x = None self.mouse_position_y = None self.is_dragging = False def mainclass(): pen_data = PenData() root = tkinter.Tk() ...
1,660
1
177
d1c385c7180a7b9254f9e62bbe86e0bb6017fbf0
719
py
Python
Pratical/Class11/gradient.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
1
2019-12-07T10:34:30.000Z
2019-12-07T10:34:30.000Z
Pratical/Class11/gradient.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
null
null
null
Pratical/Class11/gradient.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from math import sqrt # init conds x = [15, 15, f(15, 15)] lamb = 2 xold = [99, 99, f(99, 99)] while dist(xold, x) > 0.5 and lamb >= 0.0001: print("x:", x) print("xold", xold) xnew = grad(*x) xnew = [x[0] - lamb * xnew[0], x[1] - lamb * xnew[1], 0] xnew[2] = f(xnew[0], ...
17.119048
74
0.472879
#!/usr/bin/env python3 from math import sqrt def dist(x, x2): return sqrt((x2[0] - x[0])**2 + (x2[1] - x[1])**2 + (x2[2] - x[2])**2) def f(x, y): # function return x**2 + y**2 def grad(x, y, z): # gradient of f return [2*x, 2*y, 0] # init conds x = [15, 15, f(15, 15)] lamb = 2 xold = [99, ...
141
0
69
1527752435f7ca5ae720d908e311036ee8c5efdf
812
py
Python
tanner/app/models.py
rodrigo-c/docker3
6bab0d1a88cfa763d78788eeae9092b37abcc28a
[ "Apache-2.0" ]
null
null
null
tanner/app/models.py
rodrigo-c/docker3
6bab0d1a88cfa763d78788eeae9092b37abcc28a
[ "Apache-2.0" ]
null
null
null
tanner/app/models.py
rodrigo-c/docker3
6bab0d1a88cfa763d78788eeae9092b37abcc28a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Definition of models. """ from django.contrib.auth.models import User from django.db import models from django.urls import reverse
21.945946
54
0.668719
# coding=utf-8 """ Definition of models. """ from django.contrib.auth.models import User from django.db import models from django.urls import reverse class Page(models.Model): title = models.CharField('nombre', max_length=200) slug = models.SlugField('ruta') def __unicode__(self): return u"{}".fo...
178
436
46
81d3b3a6405f77d3b806b8b9cf2bc5f9271c25e9
4,122
py
Python
transcode/pyqtgui/slider.py
shersonb/python-transcode
db42e82f019ef4c3b7f59f34587576205e19eb96
[ "MIT" ]
1
2020-06-25T01:00:15.000Z
2020-06-25T01:00:15.000Z
transcode/pyqtgui/slider.py
shersonb/python-transcode
db42e82f019ef4c3b7f59f34587576205e19eb96
[ "MIT" ]
null
null
null
transcode/pyqtgui/slider.py
shersonb/python-transcode
db42e82f019ef4c3b7f59f34587576205e19eb96
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import (QSlider, QStyleOptionSlider, QStyle) import time
30.308824
75
0.520378
from PyQt5.QtCore import Qt from PyQt5.QtWidgets import (QSlider, QStyleOptionSlider, QStyle) import time class Slider(QSlider): def __init__(self, *args, **kwargs): super(Slider, self).__init__(*args, **kwargs) self._scrollWheelValue = 0.5 self._angleHistory = [] self._sliderGrabb...
3,803
1
211
3140c03b8f849fe93ab756edf398744377fc7852
23,908
py
Python
sdk/python/pulumi_aws/cfg/_inputs.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cfg/_inputs.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cfg/_inputs.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
49.912317
665
0.695583
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
2,329
20,472
198
235658fe2b588cd6827e8328a007266b3d9a0e5c
3,455
py
Python
apart/forms/price.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
apart/forms/price.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
apart/forms/price.py
ruslan-ok/ruslan
fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8
[ "MIT" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ from rusel.base.forms import BaseCreateForm, BaseEditForm from rusel.widgets import DateInput, Select, NumberInput, UrlsInput from task.const import NUM_ROLE_SERVICE, APART_SERVICE from task.models import Task from apart.config import app_...
39.712644
137
0.61563
from django import forms from django.utils.translation import gettext_lazy as _ from rusel.base.forms import BaseCreateForm, BaseEditForm from rusel.widgets import DateInput, Select, NumberInput, UrlsInput from task.const import NUM_ROLE_SERVICE, APART_SERVICE from task.models import Task from apart.config import app_...
829
2,212
44
b7362eb4ece001a3cb24c1277ef1861a0c061a77
1,053
py
Python
usr/examples/face_detection.py
SmartArduino/openmv
9398ae0248b5f4dabb622f8890ad351e163b80c4
[ "MIT" ]
null
null
null
usr/examples/face_detection.py
SmartArduino/openmv
9398ae0248b5f4dabb622f8890ad351e163b80c4
[ "MIT" ]
null
null
null
usr/examples/face_detection.py
SmartArduino/openmv
9398ae0248b5f4dabb622f8890ad351e163b80c4
[ "MIT" ]
1
2020-11-28T14:41:49.000Z
2020-11-28T14:41:49.000Z
import sensor, time, image # Reset sensor sensor.reset() # Sensor settings sensor.set_contrast(1) sensor.set_gainceiling(16) sensor.set_framesize(sensor.QCIF) sensor.set_pixformat(sensor.GRAYSCALE) # Load Haar Cascade # By default this will use all stages, lower satges is faster but less accurate. face_cascade = ima...
25.071429
86
0.707502
import sensor, time, image # Reset sensor sensor.reset() # Sensor settings sensor.set_contrast(1) sensor.set_gainceiling(16) sensor.set_framesize(sensor.QCIF) sensor.set_pixformat(sensor.GRAYSCALE) # Load Haar Cascade # By default this will use all stages, lower satges is faster but less accurate. face_cascade = ima...
0
0
0
10264a3fa89cc4d1ba428ac8fbf5ec15ae75fb08
2,997
py
Python
rti_python/Ensemble/InstrumentVelocity.py
JeromeJGuay/viking_ADCP_processing
24ea1ba6d7e72d956435811bcc5519807396d88f
[ "MIT" ]
null
null
null
rti_python/Ensemble/InstrumentVelocity.py
JeromeJGuay/viking_ADCP_processing
24ea1ba6d7e72d956435811bcc5519807396d88f
[ "MIT" ]
1
2021-11-25T20:13:06.000Z
2021-11-25T20:13:06.000Z
rti_python/Ensemble/InstrumentVelocity.py
JeromeJGuay/viking_ADCP_processing
24ea1ba6d7e72d956435811bcc5519807396d88f
[ "MIT" ]
null
null
null
from rti_python.Ensemble.Ensemble import Ensemble import logging class InstrumentVelocity: """ Instrument Velocity DataSet. [Bin x Beam] data. """ def decode(self, data): """ Take the data bytearray. Decode the data to populate the velocities. :param d...
34.448276
142
0.548882
from rti_python.Ensemble.Ensemble import Ensemble import logging class InstrumentVelocity: """ Instrument Velocity DataSet. [Bin x Beam] data. """ def __init__(self, num_elements, element_multiplier): self.ds_type = 10 self.num_elements = num_elements self.eleme...
584
0
29
b515de06dde49661a2dbb9b60cee9871ce25266a
5,107
py
Python
src/odds/management/commands/calculateSureBets.py
davidcerezal/ods-docker-django
a87391c7780d37fefe8aafa427e35539a8f438bf
[ "MIT" ]
null
null
null
src/odds/management/commands/calculateSureBets.py
davidcerezal/ods-docker-django
a87391c7780d37fefe8aafa427e35539a8f438bf
[ "MIT" ]
null
null
null
src/odds/management/commands/calculateSureBets.py
davidcerezal/ods-docker-django
a87391c7780d37fefe8aafa427e35539a8f438bf
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from odds.domain.models.manager.betTypeManager import BetTypeManager from odds.domain.models.bet import Bet from odds.domain.models.sureBet import SureBet from odds.domain.models.manager.SureBetManager import SureBetManager from odds.domain.models.event...
39.898438
120
0.605639
from django.core.management.base import BaseCommand, CommandError from odds.domain.models.manager.betTypeManager import BetTypeManager from odds.domain.models.bet import Bet from odds.domain.models.sureBet import SureBet from odds.domain.models.manager.SureBetManager import SureBetManager from odds.domain.models.event...
4,551
198
23
3c9533e279378d9905320b12521168606747a52f
15,621
py
Python
analysis/config/campaign_Legacy16.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
3
2020-01-22T08:30:14.000Z
2021-12-27T18:47:43.000Z
analysis/config/campaign_Legacy16.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
analysis/config/campaign_Legacy16.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # flake8: noqa """ Defintion of the campaign and datasets for 2016 legacy rereco data. """ import order as od from analysis.config.processes import * # campaign campaign_name = "Run2_pp_13TeV_Legacy16" campaign = od.Campaign( campaign_name, 2, ecm=13, bx=25, ) # datasets data...
25.441368
164
0.730299
# -*- coding: utf-8 -*- # flake8: noqa """ Defintion of the campaign and datasets for 2016 legacy rereco data. """ import order as od from analysis.config.processes import * # campaign campaign_name = "Run2_pp_13TeV_Legacy16" campaign = od.Campaign( campaign_name, 2, ecm=13, bx=25, ) # datasets data...
0
0
0
72d3b2344864c102c1f3172f717ed4ec52b97b5c
2,050
py
Python
tools/dataset_building/limit_density.py
IQTLabs/WITW
36154fb9388dbdc5b2776fc9d49699b26a08f8ae
[ "Apache-2.0" ]
null
null
null
tools/dataset_building/limit_density.py
IQTLabs/WITW
36154fb9388dbdc5b2776fc9d49699b26a08f8ae
[ "Apache-2.0" ]
null
null
null
tools/dataset_building/limit_density.py
IQTLabs/WITW
36154fb9388dbdc5b2776fc9d49699b26a08f8ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import csv import argparse import numpy as np import pandas as pd import tqdm # Modified from: CosmiQ Solaris # https://github.com/CosmiQ/solaris/blob/master/solaris/preproc/sar.py def haversine(lat1, lon1, lat2, lon2, rad=False, radius=6.371E6): """ Haversine formula for distance betwee...
32.03125
75
0.609756
#!/usr/bin/env python import csv import argparse import numpy as np import pandas as pd import tqdm # Modified from: CosmiQ Solaris # https://github.com/CosmiQ/solaris/blob/master/solaris/preproc/sar.py def haversine(lat1, lon1, lat2, lon2, rad=False, radius=6.371E6): """ Haversine formula for distance betwee...
996
0
23
a926adeeae5e6a18471aa287cd2d0a24f03b3693
1,595
py
Python
__init__.py
HappyRay/anki-addon-test
f947070fa7eb47f95d84a9f6b5707a822ea75161
[ "Apache-2.0" ]
null
null
null
__init__.py
HappyRay/anki-addon-test
f947070fa7eb47f95d84a9f6b5707a822ea75161
[ "Apache-2.0" ]
null
null
null
__init__.py
HappyRay/anki-addon-test
f947070fa7eb47f95d84a9f6b5707a822ea75161
[ "Apache-2.0" ]
null
null
null
# import the main window object (mw) from aqt from aqt import mw # import the "show info" tool from utils.py from aqt.utils import showInfo # import all of the Qt GUI library from aqt.qt import * # We're going to add a menu item below. First we want to create a function to # be called when the menu item is activated....
31.27451
93
0.684013
# import the main window object (mw) from aqt from aqt import mw # import the "show info" tool from utils.py from aqt.utils import showInfo # import all of the Qt GUI library from aqt.qt import * # We're going to add a menu item below. First we want to create a function to # be called when the menu item is activated....
973
0
46
a5b597dda0e02678d4bc53de2fd6dc1b66489dbe
4,210
py
Python
changes/listeners/build_revision.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/listeners/build_revision.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
changes/listeners/build_revision.py
bowlofstew/changes
ebd393520e0fdb07c240a8d4e8747281b6186e28
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import logging from flask import current_app from changes.api.build_index import BuildIndexAPIView from changes.models import ProjectStatus, Project, ProjectConfigError, ProjectOptionsHelper, Revision from changes.utils.diff_parser import DiffParser from changes.utils.project_tr...
36.608696
148
0.595724
from __future__ import absolute_import import logging from flask import current_app from changes.api.build_index import BuildIndexAPIView from changes.models import ProjectStatus, Project, ProjectConfigError, ProjectOptionsHelper, Revision from changes.utils.diff_parser import DiffParser from changes.utils.project_tr...
3,583
164
46
39145ba22026f38331d59b821d26f97cac5a0876
2,332
py
Python
TestScripts/TestWebScraping.py
HansFriedrichSchwanecke/EquityRiseAndFallTearSheet
a65ceeb04c4cdacafd8eb3dcc1e52b25654c3e19
[ "MIT" ]
null
null
null
TestScripts/TestWebScraping.py
HansFriedrichSchwanecke/EquityRiseAndFallTearSheet
a65ceeb04c4cdacafd8eb3dcc1e52b25654c3e19
[ "MIT" ]
null
null
null
TestScripts/TestWebScraping.py
HansFriedrichSchwanecke/EquityRiseAndFallTearSheet
a65ceeb04c4cdacafd8eb3dcc1e52b25654c3e19
[ "MIT" ]
null
null
null
import timeit import selenium.webdriver from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC import time import pandas as pd ...
29.518987
120
0.706261
import timeit import selenium.webdriver from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC import time import pandas as pd ...
0
0
0
bd182b2ee422cb743cc750e17448d7ac07f848a6
5,191
py
Python
src/runners/tfa_runner.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
src/runners/tfa_runner.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
src/runners/tfa_runner.py
ChenyangTang/bark-ml
1d2ab1957bf49929e27d718dd4bd3912162197b8
[ "MIT" ]
null
null
null
import sys import logging import time import tensorflow as tf tf.compat.v1.enable_v2_behavior() from tf_agents.drivers import dynamic_step_driver from tf_agents.drivers import dynamic_episode_driver from modules.runtime.commons.parameters import ParameterServer from tf_agents.metrics import tf_metrics from tf_agents....
37.890511
108
0.681372
import sys import logging import time import tensorflow as tf tf.compat.v1.enable_v2_behavior() from tf_agents.drivers import dynamic_step_driver from tf_agents.drivers import dynamic_episode_driver from modules.runtime.commons.parameters import ParameterServer from tf_agents.metrics import tf_metrics from tf_agents....
1,730
0
74
a56fdb86ec479a0b307f3343c329ab6ccf839751
760
py
Python
setup.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
4
2020-04-16T22:57:00.000Z
2021-10-05T02:37:58.000Z
setup.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
112
2020-05-21T09:47:14.000Z
2022-03-20T16:00:27.000Z
setup.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
5
2020-05-14T11:04:07.000Z
2022-03-11T16:38:35.000Z
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer INSTALL_REQUIRES = open("requirements.txt").readlines() setup( name="lagtraj", version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description="Python trajectory code for Lagrangian simulations", ...
31.666667
71
0.703947
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer INSTALL_REQUIRES = open("requirements.txt").readlines() setup( name="lagtraj", version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description="Python trajectory code for Lagrangian simulations", ...
0
0
0
aee8828cea0fd749235f9d7e36d30e4e14ddf27e
138
py
Python
Pyon exercicios/Exercicios/021.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
Pyon exercicios/Exercicios/021.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
Pyon exercicios/Exercicios/021.py
alefbispo/Exercicios-do-curso-de-Python
16cd569ab16542135b834ac8d0cfb0ae84836d53
[ "MIT" ]
null
null
null
#executar um audio mp3 import pygame pygame.init() pygame.mixer.music.load('BlackDog.mp3') pygame.mixer.music.play() pygame.event.wait()
17.25
39
0.768116
#executar um audio mp3 import pygame pygame.init() pygame.mixer.music.load('BlackDog.mp3') pygame.mixer.music.play() pygame.event.wait()
0
0
0
6c7b3d8dec1fd101207e35c912d98c7301395c27
273
py
Python
catalog/bindings/gmd/geometric_complex.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/geometric_complex.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/geometric_complex.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.geometric_complex_type import GeometricComplexType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass
24.818182
68
0.783883
from dataclasses import dataclass from bindings.gmd.geometric_complex_type import GeometricComplexType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class GeometricComplex(GeometricComplexType): class Meta: namespace = "http://www.opengis.net/gml"
0
89
22
a0205423b0b840d4f5fe8debbf6d5fd6a2e255c6
226
py
Python
ble2mqtt/devices/__init__.py
e-minguez/ble2mqtt
ff729dc6b259b00fc2295bebd73265dcbb27c60d
[ "MIT" ]
null
null
null
ble2mqtt/devices/__init__.py
e-minguez/ble2mqtt
ff729dc6b259b00fc2295bebd73265dcbb27c60d
[ "MIT" ]
null
null
null
ble2mqtt/devices/__init__.py
e-minguez/ble2mqtt
ff729dc6b259b00fc2295bebd73265dcbb27c60d
[ "MIT" ]
null
null
null
from .base import registered_device_types # noqa from .kettle_redmond import RedmondKettle # noqa from .xiaomi_ht import XiaomiHumidityTemperatureV1 # noqa from .xiaomi_lywsd03 import XiaomiHumidityTemperatureLYWSD # noqa
45.2
66
0.840708
from .base import registered_device_types # noqa from .kettle_redmond import RedmondKettle # noqa from .xiaomi_ht import XiaomiHumidityTemperatureV1 # noqa from .xiaomi_lywsd03 import XiaomiHumidityTemperatureLYWSD # noqa
0
0
0
0bf3ff960e9ba03544b4330daf97aa30ac87da93
2,041
py
Python
run.py
NCBI-Codeathons/Identifying-bulk-RNA-seq-derived-biomarkers-of-cancer-risk-within-single-cell-populations
fda26f5cfe41f3e64bff4602dc010d6f6be183f8
[ "MIT" ]
3
2020-01-15T03:17:52.000Z
2020-09-30T20:12:53.000Z
run.py
NCBI-Codeathons/Identifying-bulk-RNA-seq-derived-biomarkers-of-cancer-risk-within-single-cell-populations
fda26f5cfe41f3e64bff4602dc010d6f6be183f8
[ "MIT" ]
null
null
null
run.py
NCBI-Codeathons/Identifying-bulk-RNA-seq-derived-biomarkers-of-cancer-risk-within-single-cell-populations
fda26f5cfe41f3e64bff4602dc010d6f6be183f8
[ "MIT" ]
2
2021-05-17T20:59:33.000Z
2021-05-27T07:30:42.000Z
import sys, getopt, subprocess from src.common.load_h5 import H5COUNTS from src.preprocess.build_h5_GSE103224 import build_h5 import pandas as pd # # Load data # scRNAdata = H5COUNTS('data/GSE103224.h5') # # Preprocess data # scRNAdata.preprocess_data(log_normalize=True, filter_genes=False, n_neighbors=False, umap=Fal...
37.109091
134
0.711906
import sys, getopt, subprocess from src.common.load_h5 import H5COUNTS from src.preprocess.build_h5_GSE103224 import build_h5 import pandas as pd # # Load data # scRNAdata = H5COUNTS('data/GSE103224.h5') # # Preprocess data # scRNAdata.preprocess_data(log_normalize=True, filter_genes=False, n_neighbors=False, umap=Fal...
511
0
23