hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
921cf7335f41595219af07b2dffd5f74a9cfc15d
40
py
Python
satori/sysinfo/__init__.py
mgeisler/satori
dea382bae1cd043189589c0f7d4c20b4b6725ab5
[ "Apache-2.0" ]
1
2015-01-18T19:56:28.000Z
2015-01-18T19:56:28.000Z
satori/sysinfo/__init__.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
satori/sysinfo/__init__.py
samstav/satori
239fa1e3c7aac78599145c670576f0ac76a41a89
[ "Apache-2.0" ]
null
null
null
"""Modules for Data Plane Discovery."""
20
39
0.7
921eab78015b0aaf2e09f13fd81a7eedf0354c09
1,333
py
Python
build/python/tests/fast_copy_mock/fast_copy_mock.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
5
2022-01-10T20:22:17.000Z
2022-01-21T20:14:17.000Z
build/python/tests/fast_copy_mock/fast_copy_mock.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
build/python/tests/fast_copy_mock/fast_copy_mock.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2022 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import functools import os from typing import Any, Callable, List, Tuple, Union from assembly.common import FileEntry __all__ = [ "create_fast_copy_mock...
33.325
79
0.731433
ecf56bf4694e10d805e550af2ca7db64ebf0dff8
3,091
py
Python
zenvlib/environmentsettings.py
zoosk/zenv
5d7a548c7c9cca784f23fdcfd86533eaf1d68811
[ "Apache-2.0" ]
14
2016-03-10T23:00:16.000Z
2020-02-14T22:27:41.000Z
zenvlib/environmentsettings.py
zoosk/zenv
5d7a548c7c9cca784f23fdcfd86533eaf1d68811
[ "Apache-2.0" ]
null
null
null
zenvlib/environmentsettings.py
zoosk/zenv
5d7a548c7c9cca784f23fdcfd86533eaf1d68811
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Zoosk, 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 i...
28.88785
118
0.659657
ecf908c2677c35a6ed13615d3ef45501f7f7362a
841
py
Python
brownbags/urls.py
openkawasaki/brownbag-django
ecdd4d2233a77922ead14afcaec289d4a0f43a1b
[ "MIT" ]
2
2020-04-18T12:36:00.000Z
2020-07-06T03:32:42.000Z
brownbags/urls.py
openkawasaki/brownbag-django
ecdd4d2233a77922ead14afcaec289d4a0f43a1b
[ "MIT" ]
16
2020-04-12T13:24:26.000Z
2020-04-12T15:54:40.000Z
brownbags/urls.py
openkawasaki/brownbag-django
ecdd4d2233a77922ead14afcaec289d4a0f43a1b
[ "MIT" ]
3
2020-04-13T13:56:02.000Z
2020-07-06T03:32:51.000Z
from django.urls import include, path from . import views from django.views.generic.base import RedirectView from rest_framework import routers from . import apis # app_name = 'brownbags' urlpatterns = [ path('', views.index, name='index'), path('edit/', views.edit, name='edit'), path('api/v1.0/shop/li...
28.033333
82
0.692033
ecf94df74b0b0d95d2234dabb351bb41517b8183
5,642
py
Python
scripts/preprocessing/setup_reads.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
scripts/preprocessing/setup_reads.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
scripts/preprocessing/setup_reads.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import os import sys import subprocess import traceback from datetime import datetime try: sys.path.append(snakemake.config['args']['mcc_path']) import scripts.mccutils as mccutils import config.preprocessing.trimgalore as trimgalore from Bio import SeqIO except Exception as e: ...
32.056818
200
0.619107
ecfb9de92beb70f7a442a13faf05ee0506dba658
1,521
py
Python
exemplo.py
efbrasil/B3LOB
228962f66f8b3118c1a6aac703960c7c21ace097
[ "MIT" ]
null
null
null
exemplo.py
efbrasil/B3LOB
228962f66f8b3118c1a6aac703960c7c21ace097
[ "MIT" ]
null
null
null
exemplo.py
efbrasil/B3LOB
228962f66f8b3118c1a6aac703960c7c21ace097
[ "MIT" ]
null
null
null
from B3LOB import Lob import numpy as np import os from datetime import datetime import matplotlib.pyplot as plt lob = Lob(datadir='/home/eduardo/MarketData/') fnames = ['OFER_CPA_20191127.gz', 'OFER_VDA_20191127.gz'] lob.read_orders_from_files('PETR3', fnames) lob.set_snapshot_freq(60) lob.process_orders() snap_time...
29.823529
60
0.70217
ecfc0d21e03b429f3f05fc69177ca324657bae11
52,954
py
Python
siptrackweb/forms.py
lalusvipi/siptrackweb
e4d2882595a40d3dbb1bb74c1838937988726d8e
[ "BSD-2-Clause" ]
38
2015-03-18T08:05:35.000Z
2021-11-09T10:57:54.000Z
siptrackweb/forms.py
lalusvipi/siptrackweb
e4d2882595a40d3dbb1bb74c1838937988726d8e
[ "BSD-2-Clause" ]
29
2015-06-25T11:28:07.000Z
2019-11-30T21:15:30.000Z
siptrackweb/forms.py
lalusvipi/siptrackweb
e4d2882595a40d3dbb1bb74c1838937988726d8e
[ "BSD-2-Clause" ]
13
2015-03-18T06:57:46.000Z
2021-06-22T10:38:49.000Z
from django import forms # field = forms.BooleanField(label = 'Overwrite', # required = False, # initial = True, # help_text = 'Overwrite existing attributes that have the same name as an attribute being created.') # self.fields['overwrite'] = field # ...
43.981728
146
0.587321
ecfc0da0eb91cc8679b3822949206f2f4d0e30e7
1,117
py
Python
azure_utility_tool/actions/list_all_users.py
alextricity25/azure_utility_tool
2975b5f415e5c64335618e83ed0216b7923c4166
[ "MIT" ]
5
2020-01-02T03:12:14.000Z
2020-08-19T02:31:19.000Z
azure_utility_tool/actions/list_all_users.py
alextricity25/azure_utility_tool
2975b5f415e5c64335618e83ed0216b7923c4166
[ "MIT" ]
null
null
null
azure_utility_tool/actions/list_all_users.py
alextricity25/azure_utility_tool
2975b5f415e5c64335618e83ed0216b7923c4166
[ "MIT" ]
2
2020-03-16T00:19:06.000Z
2020-08-20T19:31:10.000Z
""" Author(s): Miguel Alex Cantu (miguel.can2@gmail.com) Date: 02/21/2020 Description: This action will return several lines, with each line being a JSON representation of the user """ from azure_utility_tool.utils import paginate from azure_utility_tool.graph_endpoints import USER_GET_ENDPOINT from azure_u...
29.394737
80
0.690242
ecfc31482311ffe936e2fc1bff49cd4a0de2b2cb
2,824
py
Python
examples/example.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
303
2016-03-03T00:44:37.000Z
2022-03-14T03:43:38.000Z
examples/example.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
52
2016-02-26T21:41:31.000Z
2021-06-27T08:33:51.000Z
examples/example.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
67
2016-03-03T22:38:35.000Z
2022-01-12T08:03:47.000Z
import sys import numpy as np import scipy as sp import scipy.sparse as sparse from megaman.geometry import Geometry from sklearn import datasets from megaman.embedding import (Isomap, LocallyLinearEmbedding, LTSA, SpectralEmbedding) # Generate an example data set N = 10 X, color = datas...
40.927536
99
0.785411
ecfcea4ccf7a5523cf5c703502dd1432cbaa0c9e
3,545
py
Python
oncopolicy/models/deterministic_progression.py
yala/Tempo
bf3e0e78d64869bb2079c582a4a35982f78386ad
[ "MIT" ]
6
2022-01-15T11:57:19.000Z
2022-02-13T21:15:22.000Z
oncopolicy/models/deterministic_progression.py
yala/Tempo
bf3e0e78d64869bb2079c582a4a35982f78386ad
[ "MIT" ]
null
null
null
oncopolicy/models/deterministic_progression.py
yala/Tempo
bf3e0e78d64869bb2079c582a4a35982f78386ad
[ "MIT" ]
2
2022-02-02T13:09:29.000Z
2022-02-18T07:06:19.000Z
import torch import torch.nn as nn from oncopolicy.models.factory import RegisterModel import pdb
37.315789
129
0.640621
ecfeefcda553063068069aa70f84508ced468409
12,003
py
Python
config/settings/base.py
sul-cidr/histonets-arch
6105de90905d54db604b0606d517f53782aae16d
[ "MIT" ]
null
null
null
config/settings/base.py
sul-cidr/histonets-arch
6105de90905d54db604b0606d517f53782aae16d
[ "MIT" ]
19
2018-04-19T19:32:59.000Z
2018-06-04T23:20:03.000Z
config/settings/base.py
sul-cidr/histonets-arch
6105de90905d54db604b0606d517f53782aae16d
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (histonets/config/settings/base.py - 3 = histonets/) APPS_DIR = ROOT_DIR.path('histonets') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_ENV_FIL...
40.550676
108
0.637591
ecffd858ad8cd1dedc6a42ad347e664e218138b6
10,706
py
Python
groupman.py
yteraoka/googleapps-directory-tools
ea59f0602ddafcc850cf7e36f6021be0ee60c2a3
[ "Apache-2.0" ]
20
2015-02-20T04:58:17.000Z
2020-12-30T23:43:29.000Z
groupman.py
yteraoka/googleapps-directory-tools
ea59f0602ddafcc850cf7e36f6021be0ee60c2a3
[ "Apache-2.0" ]
2
2015-03-02T14:33:25.000Z
2017-09-20T11:23:19.000Z
groupman.py
yteraoka/googleapps-directory-tools
ea59f0602ddafcc850cf7e36f6021be0ee60c2a3
[ "Apache-2.0" ]
11
2015-03-02T14:16:01.000Z
2021-10-03T14:28:10.000Z
#!/apps/python-2.7/bin/python # -*- coding: utf-8 -*- import os import os.path import glob import sys from apiclient.discovery import build from apiclient.errors import HttpError import httplib2 from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from oauth2client import tools...
35.217105
104
0.519055
a60183c4a0d01fe278e2d3f101040935e10e0734
3,716
py
Python
icekit/utils/search/search_indexes.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/utils/search/search_indexes.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/utils/search/search_indexes.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
from django.utils.text import capfirst from easy_thumbnails.exceptions import InvalidImageFormatError from easy_thumbnails.files import get_thumbnailer from haystack import indexes from haystack.utils import get_model_ct # Doesn't extend `indexes.Indexable` to avoid auto-detection for 'Search In'
35.730769
113
0.689451
a60246e782926af300cad036aa0701ca98dcd72d
1,655
py
Python
CSC-291/Projects/bsearch_timer.py
FrancesCoronel/cs-hu
ecd103a525fd312146d3b6c69ee7c1452548c5e2
[ "MIT" ]
2
2016-12-05T06:15:34.000Z
2016-12-15T10:56:50.000Z
CSC-291/Projects/bsearch_timer.py
fvcproductions/CS-HU
ecd103a525fd312146d3b6c69ee7c1452548c5e2
[ "MIT" ]
null
null
null
CSC-291/Projects/bsearch_timer.py
fvcproductions/CS-HU
ecd103a525fd312146d3b6c69ee7c1452548c5e2
[ "MIT" ]
3
2019-04-06T01:45:54.000Z
2020-04-24T16:55:32.000Z
''' FVCproductions September 18, 2014 Python CSC291_Project3 ''' # Binary Search: (20 pts) # Implement binary search, submit it to the course website. You must write a # function bsearch that takes and list and an element to search for. This # function should return the index of the element if found and -1 othe...
22.671233
100
0.650151
a6037da7a2fe3008ebf40e96199ded29a7213caa
15,599
py
Python
src/stages.py
khalidm/vcf_annotation_pipeline
4939d1a92b87f29bacfa1521de63dd8d4283acdc
[ "BSD-3-Clause" ]
null
null
null
src/stages.py
khalidm/vcf_annotation_pipeline
4939d1a92b87f29bacfa1521de63dd8d4283acdc
[ "BSD-3-Clause" ]
null
null
null
src/stages.py
khalidm/vcf_annotation_pipeline
4939d1a92b87f29bacfa1521de63dd8d4283acdc
[ "BSD-3-Clause" ]
null
null
null
''' Individual stages of the pipeline implemented as functions from input files to output files. The run_stage function knows everything about submitting jobs and, given the state parameter, has full access to the state of the pipeline, such as config, options, DRMAA and the logger. ''' from utils import safe_make_di...
55.710714
118
0.640233
a603ad8008600d2c8038cd2fcf8557be817d480f
1,959
py
Python
chrome/test/pyautolib/generate_docs.py
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
chrome/test/pyautolib/generate_docs.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5
2015-03-27T14:29:23.000Z
2019-09-25T13:23:12.000Z
chrome/test/pyautolib/generate_docs.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import optparse import os import pydoc import shutil import sys if __name__ == '__main__': sys.exit(main())
33.775862
78
0.671261
a6049452e4aac0634d91765ee03449bd362ab74a
1,046
py
Python
swagger_ui/__init__.py
dirkgomez/voice-skill-sdk
ff8a3cc226f48d65fe9ad06741a03b8205f1f0b5
[ "MIT" ]
null
null
null
swagger_ui/__init__.py
dirkgomez/voice-skill-sdk
ff8a3cc226f48d65fe9ad06741a03b8205f1f0b5
[ "MIT" ]
null
null
null
swagger_ui/__init__.py
dirkgomez/voice-skill-sdk
ff8a3cc226f48d65fe9ad06741a03b8205f1f0b5
[ "MIT" ]
null
null
null
# # voice-skill-sdk # # (C) 2020, Deutsche Telekom AG # # Deutsche Telekom AG and all other contributors / # copyright owners license this file to you under the MIT # License (the "License"); you may not use this file # except in compliance with the License. # You may obtain a copy of the License at # # https://opensou...
26.820513
62
0.739006
a6053be31232e1f11d342234014c05d2dc6f686a
1,112
py
Python
courses/migrations/0009_enrollment_statuses.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
10
2019-02-20T18:41:32.000Z
2021-07-26T10:39:58.000Z
courses/migrations/0009_enrollment_statuses.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
2,226
2019-02-20T20:03:57.000Z
2022-03-31T11:18:56.000Z
courses/migrations/0009_enrollment_statuses.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
4
2020-08-26T19:26:02.000Z
2021-03-09T17:46:47.000Z
# Generated by Django 2.1.7 on 2019-05-24 19:17 from django.db import migrations, models
30.888889
101
0.571942
a607916008e86d338b3f708f7b4629cb6af9e328
2,665
py
Python
Course 1 - Introduction to Python/Unit4_Good_Programming_Practices/ProblemSet_4/Problem1_WordScores.py
Odzen/MIT_React_DataScience
3b82ef75dab1880cdbf0136a7b716e90cb27a9cb
[ "MIT" ]
null
null
null
Course 1 - Introduction to Python/Unit4_Good_Programming_Practices/ProblemSet_4/Problem1_WordScores.py
Odzen/MIT_React_DataScience
3b82ef75dab1880cdbf0136a7b716e90cb27a9cb
[ "MIT" ]
null
null
null
Course 1 - Introduction to Python/Unit4_Good_Programming_Practices/ProblemSet_4/Problem1_WordScores.py
Odzen/MIT_React_DataScience
3b82ef75dab1880cdbf0136a7b716e90cb27a9cb
[ "MIT" ]
null
null
null
SCRABBLE_LETTER_VALUES = { 'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e': 1, 'f': 4, 'g': 2, 'h': 4, 'i': 1, 'j': 8, 'k': 5, 'l': 1, 'm': 3, 'n': 1, 'o': 1, 'p': 3, 'q': 10, 'r': 1, 's': 1, 't': 1, 'u': 1, 'v': 4, 'w': 4, 'x': 8, 'y': 4, 'z': 10 } # The first step is to implement some code that allows us to calculate the sco...
45.948276
212
0.685178
a607b192011ac8e285ffec176b21be2df18e07fe
1,647
py
Python
python/86.partition-list.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
python/86.partition-list.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
python/86.partition-list.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
# # @lc app=leetcode id=86 lang=python3 # # [86] Partition List # # https://leetcode.com/problems/partition-list/description/ # # algorithms # Medium (43.12%) # Likes: 1981 # Dislikes: 384 # Total Accepted: 256.4K # Total Submissions: 585.7K # Testcase Example: '[1,4,3,2,5,2]\n3' # # Given the head of a linked l...
20.5875
77
0.579842
a60999b70bdab73a337c0a801d933159535f4296
382
py
Python
schemas/users.py
Ashishb21/propertyConnect
60bc23125e4b45cc5e0c3b2cff8d57afd57ecbb8
[ "MIT" ]
null
null
null
schemas/users.py
Ashishb21/propertyConnect
60bc23125e4b45cc5e0c3b2cff8d57afd57ecbb8
[ "MIT" ]
null
null
null
schemas/users.py
Ashishb21/propertyConnect
60bc23125e4b45cc5e0c3b2cff8d57afd57ecbb8
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel,EmailStr #properties required during user creation
21.222222
52
0.717277
a609fb2abfa8b580d67f255628dff6280de6c8ed
773
py
Python
server/migrations/versions/b5ae9c8c6118_.py
uptownnickbrown/metaseq
fc6853640921ca4853b3d4ed3d3354855983db11
[ "MIT" ]
7
2017-03-27T09:57:55.000Z
2018-06-09T17:44:31.000Z
server/migrations/versions/b5ae9c8c6118_.py
uptownnickbrown/metaseq
fc6853640921ca4853b3d4ed3d3354855983db11
[ "MIT" ]
4
2019-06-05T15:07:49.000Z
2021-12-13T19:46:40.000Z
server/migrations/versions/b5ae9c8c6118_.py
uptownnickbrown/metaseq
fc6853640921ca4853b3d4ed3d3354855983db11
[ "MIT" ]
1
2019-01-28T07:02:25.000Z
2019-01-28T07:02:25.000Z
"""empty message Revision ID: b5ae9c8c6118 Revises: aa1ce7a80455 Create Date: 2017-06-28 11:39:37.100530 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b5ae9c8c6118' down_revision = 'aa1ce7a80455' branch_labels = None depends_on = None
24.935484
68
0.698577
a60ac9ee60b4cd5f2b4bfcc6ac5ec20715f1d582
564
py
Python
seventweets/handlers/base.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
2
2017-06-12T11:00:38.000Z
2018-06-21T07:54:38.000Z
seventweets/handlers/base.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
null
null
null
seventweets/handlers/base.py
sbg/seventweets
a2733ff175e8be6e34f346a9a14f7f30ab24ea74
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, current_app, jsonify from seventweets.exceptions import error_handler from seventweets import tweet base = Blueprint('base', __name__)
25.636364
56
0.636525
a60eb03e65bf7d4946683c6178897b33cccd7025
31,947
py
Python
rasahub_humhub/humhub.py
tomofu74/rasahub-humhub
7e421574230cb7fb9f5de4973dae75a53323dffb
[ "MIT" ]
null
null
null
rasahub_humhub/humhub.py
tomofu74/rasahub-humhub
7e421574230cb7fb9f5de4973dae75a53323dffb
[ "MIT" ]
null
null
null
rasahub_humhub/humhub.py
tomofu74/rasahub-humhub
7e421574230cb7fb9f5de4973dae75a53323dffb
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime # import rasahub_google_calendar from time import gmtime, time, strftime import json import locale import logging import math import mysql.c...
34.952954
171
0.588099
a60efe42e9f5e8c55bf82adbc77eeb0fe033f6f5
857
py
Python
tf_pose/test.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
tf_pose/test.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
tf_pose/test.py
Artia-Inspirenet/module-2
7cf1d74f13d23a11ce202436d88b283d7ef1e109
[ "Apache-2.0" ]
null
null
null
from pycocotools.coco import COCO import json with open('person_keypoints_val2017.json') as f: data = json.load(f) coco = COCO('person_keypoints_val2017.json') #print(data['images']) keys = list(coco.imgs.keys()) img_idx = coco.imgs[keys[0]]['id'] print(img_idx) ann_idx = coco.getAnnIds(imgIds=img_idx) print(ann...
20.902439
48
0.649942
a60f536104bc0bea65187e1ff26469082c3a5ca1
10,344
py
Python
py/pysparkling/ml/algo.py
gerbenoostra/sparkling-water
0e996b80124bf6cf4bfb2cd274625f3ddb7bd9fb
[ "Apache-2.0" ]
null
null
null
py/pysparkling/ml/algo.py
gerbenoostra/sparkling-water
0e996b80124bf6cf4bfb2cd274625f3ddb7bd9fb
[ "Apache-2.0" ]
null
null
null
py/pysparkling/ml/algo.py
gerbenoostra/sparkling-water
0e996b80124bf6cf4bfb2cd274625f3ddb7bd9fb
[ "Apache-2.0" ]
null
null
null
from pyspark import since, keyword_only from pyspark.ml.param.shared import * from pyspark.ml.util import JavaMLReadable, JavaMLWritable from pyspark.ml.wrapper import JavaEstimator, JavaModel, JavaTransformer, _jvm from pyspark.sql import SparkSession from pysparkling import * from .params import H2OGBMParams, H2ODeep...
64.248447
179
0.688128
a60f692d9e581d0d010585ae2ed188489a8ee8ec
497
py
Python
bonds/users/templatetags/email_extras.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
2
2020-09-08T12:51:56.000Z
2021-08-18T15:27:52.000Z
bonds/users/templatetags/email_extras.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
1
2021-12-13T20:43:35.000Z
2021-12-13T20:43:35.000Z
bonds/users/templatetags/email_extras.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
null
null
null
from django import template # from ..models import * # from bonds.friends.models import UserFriends # from django.core.exceptions import ObjectDoesNotExist register = template.Library()
21.608696
55
0.684105
a61004468602027708717a182ff1b7708af746b8
1,907
py
Python
mongox/fields.py
Collector0/mongox
40fc6b7076c959e7bf8c001527584891fca8631c
[ "MIT" ]
1
2021-11-13T15:03:04.000Z
2021-11-13T15:03:04.000Z
mongox/fields.py
ischaojie/mongox
29e1dc3cb5f34190f6678c727132776068a09655
[ "MIT" ]
null
null
null
mongox/fields.py
ischaojie/mongox
29e1dc3cb5f34190f6678c727132776068a09655
[ "MIT" ]
null
null
null
import typing import bson from pydantic import Field from pydantic.fields import ModelField as PydanticModelField __all__ = ["Field", "ObjectId"]
27.242857
79
0.617724
a61085775c1d0af520f40b38412e987086bb99a9
1,007
py
Python
cogs/System.py
Naman-Biswajit/Discord-Bot-Perceus
338826e085653e3cd4f972bfb156a7ca129c1f49
[ "MIT" ]
null
null
null
cogs/System.py
Naman-Biswajit/Discord-Bot-Perceus
338826e085653e3cd4f972bfb156a7ca129c1f49
[ "MIT" ]
null
null
null
cogs/System.py
Naman-Biswajit/Discord-Bot-Perceus
338826e085653e3cd4f972bfb156a7ca129c1f49
[ "MIT" ]
null
null
null
import discord from discord.ext import commands
27.972222
61
0.625621
a611c23032426651706ecd95f602bc143309b886
3,586
py
Python
command.py
floydawong/tomato_time
0fc16a201ea4c3816499a998eaa72d43958c9f2a
[ "MIT" ]
null
null
null
command.py
floydawong/tomato_time
0fc16a201ea4c3816499a998eaa72d43958c9f2a
[ "MIT" ]
null
null
null
command.py
floydawong/tomato_time
0fc16a201ea4c3816499a998eaa72d43958c9f2a
[ "MIT" ]
null
null
null
import sublime_plugin from .tomato_time import get_tomato
27.374046
85
0.573341
a611cacdfe5dbb06f96220faa6f86ba176c65626
918
py
Python
Pacote Download/Ex043_12_IMC.py
BrunoCruzIglesias/Python
01465632a8471271e994eb4565a14a547db6578d
[ "MIT" ]
null
null
null
Pacote Download/Ex043_12_IMC.py
BrunoCruzIglesias/Python
01465632a8471271e994eb4565a14a547db6578d
[ "MIT" ]
null
null
null
Pacote Download/Ex043_12_IMC.py
BrunoCruzIglesias/Python
01465632a8471271e994eb4565a14a547db6578d
[ "MIT" ]
null
null
null
# Clculo de IMC print("Vamos calcular seu IMC?") nome = input("Digite o seu nome: ") peso = float(input("Ol, {}, agora digite seu peso (em Kg, Ex: 68.9): " .format(nome))) altura = float(input("Digite sua altura (em m, Ex: 1.80): ")) media = peso / (altura * altura) print('Seu IMC : {:.1f}'.format(media)) if media < 1...
45.9
117
0.581699
a611d310e0340c190260eaa06e81db9198238521
399
py
Python
2020/day2/password.py
DanielKillenberger/AdventOfCode
e9b40c1ae09ee4bffbbf6acca1a2778aed5f1561
[ "MIT" ]
null
null
null
2020/day2/password.py
DanielKillenberger/AdventOfCode
e9b40c1ae09ee4bffbbf6acca1a2778aed5f1561
[ "MIT" ]
null
null
null
2020/day2/password.py
DanielKillenberger/AdventOfCode
e9b40c1ae09ee4bffbbf6acca1a2778aed5f1561
[ "MIT" ]
null
null
null
with open("input.txt", "r") as input_file: input = input_file.read().split("\n") passwords = list(map(lambda line: [list(map(int, line.split(" ")[0].split("-"))), line.split(" ")[1][0], line.split(" ")[2]], input)) valid = 0 for password in passwords: count_letter = password[2].count(password[1]) if pass...
28.5
133
0.611529
a611ec7c6de69b5cd4939c8bb49718b4e41ba387
4,361
py
Python
scripts/gen_cert.py
SUNET/sunet-auth-server
a85256917c4159fd1c8eb1f6a6ed28777b64d403
[ "BSD-2-Clause" ]
1
2021-05-26T02:37:10.000Z
2021-05-26T02:37:10.000Z
scripts/gen_cert.py
SUNET/sunet-auth-server
a85256917c4159fd1c8eb1f6a6ed28777b64d403
[ "BSD-2-Clause" ]
1
2021-05-17T08:32:15.000Z
2021-05-17T08:32:16.000Z
scripts/gen_cert.py
SUNET/sunet-auth-server
a85256917c4159fd1c8eb1f6a6ed28777b64d403
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import os import sys from base64 import b64encode from datetime import datetime, timedelta from cryptography import x509 from cryptography.hazmat.primitives import serialization, hashes from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives...
43.178218
112
0.677368
a611f0ca7daf79a9c49d9bcc01c2d037698b5b57
574
py
Python
tests/apis/test_files.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
76
2020-02-27T06:36:27.000Z
2022-03-10T20:18:03.000Z
tests/apis/test_files.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
33
2020-03-13T02:04:14.000Z
2022-03-04T02:06:11.000Z
tests/apis/test_files.py
ninoseki/uzen
93726f22f43902e17b22dd36142dac05171d0d84
[ "MIT" ]
6
2020-03-17T16:42:25.000Z
2021-04-27T06:35:46.000Z
import asyncio import pytest from fastapi.testclient import TestClient from app.models.script import Script
27.333333
78
0.763066
a612ca73184d6c4eb4704ff1a1c002a934e7280d
1,384
py
Python
src/compas_ui/rhino/forms/info.py
BlockResearchGroup/compas_ui
8b5a6121eee837d306bf20c44c91f94a5c185f90
[ "MIT" ]
null
null
null
src/compas_ui/rhino/forms/info.py
BlockResearchGroup/compas_ui
8b5a6121eee837d306bf20c44c91f94a5c185f90
[ "MIT" ]
3
2022-02-24T17:56:30.000Z
2022-03-31T09:48:40.000Z
src/compas_ui/rhino/forms/info.py
BlockResearchGroup/compas_ui
8b5a6121eee837d306bf20c44c91f94a5c185f90
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import Eto.Drawing import Eto.Forms import Rhino.UI import Rhino
30.755556
85
0.642341
a613386fbb04fd42a7d02cb198aa13ad34526d71
259
py
Python
python-hello/src/main/python/FizzBuzz.py
demo-pool/languages-all
f9fac8f6d8dde92dea8c332777244a4f3af8bd3f
[ "Apache-2.0" ]
null
null
null
python-hello/src/main/python/FizzBuzz.py
demo-pool/languages-all
f9fac8f6d8dde92dea8c332777244a4f3af8bd3f
[ "Apache-2.0" ]
null
null
null
python-hello/src/main/python/FizzBuzz.py
demo-pool/languages-all
f9fac8f6d8dde92dea8c332777244a4f3af8bd3f
[ "Apache-2.0" ]
null
null
null
# -*- coding=utf-8 -*- import sys n = int(sys.argv[1]) print(n) for i in range(1, n + 1): 5 = i % 5 == 0 3 = i % 3 == 0 if 3 and 5: print('FizzBuzz') elif 3: print("Fizz") elif 5: print("Buzz") else: print(i)
14.388889
25
0.498069
a613bf4c7cec25a8201b732ff819946f8ef2f964
8,776
py
Python
MaaSSim/driver.py
Farnoud-G/MaaSSim
e9537b5d391da70b70f2b64c28f2e3378d1facd9
[ "MIT" ]
null
null
null
MaaSSim/driver.py
Farnoud-G/MaaSSim
e9537b5d391da70b70f2b64c28f2e3378d1facd9
[ "MIT" ]
null
null
null
MaaSSim/driver.py
Farnoud-G/MaaSSim
e9537b5d391da70b70f2b64c28f2e3378d1facd9
[ "MIT" ]
null
null
null
################################################################################ # Module: driver.py # Description: Driver agent # Rafal Kucharski @ TU Delft, The Netherlands ################################################################################ from enum import Enum import time
48.21978
111
0.595602
a614e63989f4c0650fe16bea6a88db1937719591
7,918
py
Python
nomogram.py
maxipi/head-loss-nomogram
c355e34aedb67818f311425188720e91449a1e90
[ "MIT" ]
1
2021-02-19T05:21:26.000Z
2021-02-19T05:21:26.000Z
nomogram.py
maxipi/head-loss-nomogram
c355e34aedb67818f311425188720e91449a1e90
[ "MIT" ]
null
null
null
nomogram.py
maxipi/head-loss-nomogram
c355e34aedb67818f311425188720e91449a1e90
[ "MIT" ]
null
null
null
from math import pi import matplotlib.pyplot as plt import numpy as np import pandas as pd from scipy.optimize import minimize_scalar __author__ = "Markus Pichler" __credits__ = ["Markus Pichler"] __maintainer__ = "Markus Pichler" __email__ = "markus.pichler@tugraz.at" __version__ = "0.1" __license__ = "MIT" # gravi...
32.584362
120
0.570599
a616479ff75877116910e729d7edffd6c5271108
278
py
Python
21. generadores.py
JSNavas/CursoPython2.7
d1f9170dbf897b6eb729f9696a208880e33c550b
[ "MIT" ]
null
null
null
21. generadores.py
JSNavas/CursoPython2.7
d1f9170dbf897b6eb729f9696a208880e33c550b
[ "MIT" ]
null
null
null
21. generadores.py
JSNavas/CursoPython2.7
d1f9170dbf897b6eb729f9696a208880e33c550b
[ "MIT" ]
null
null
null
lista = ["bienvenido "] ciclo = (c * 4 for c in lista) print ciclo print ciclo.next() for cadena in ciclo: print cadena print n = input("Factorial de: ") for fact in factorial(n): print fact
8.6875
30
0.600719
a618f828871a4f9f42a3e61da6a4defd594afbdb
176
py
Python
d2/detr/__init__.py
reubenwenisch/detr_custom
ae03ed599336f184e471eaf0048614dd788ffaf9
[ "Apache-2.0" ]
8,849
2020-05-27T00:52:55.000Z
2022-03-31T14:21:30.000Z
d2/detr/__init__.py
reubenwenisch/detr_custom
ae03ed599336f184e471eaf0048614dd788ffaf9
[ "Apache-2.0" ]
453
2020-05-27T04:01:32.000Z
2022-03-30T03:48:26.000Z
d2/detr/__init__.py
reubenwenisch/detr_custom
ae03ed599336f184e471eaf0048614dd788ffaf9
[ "Apache-2.0" ]
1,691
2020-05-27T02:16:40.000Z
2022-03-31T05:44:39.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .config import add_detr_config from .detr import Detr from .dataset_mapper import DetrDatasetMapper
35.2
70
0.818182
a6192df53d0f19acab254e85fa3cfaa6abba3386
28
py
Python
models/__init__.py
Rozi1/MobileNetV2_CIFAR10
5e3a7cac963c9b84d8efc60984bda6956ba8ec26
[ "MIT" ]
null
null
null
models/__init__.py
Rozi1/MobileNetV2_CIFAR10
5e3a7cac963c9b84d8efc60984bda6956ba8ec26
[ "MIT" ]
null
null
null
models/__init__.py
Rozi1/MobileNetV2_CIFAR10
5e3a7cac963c9b84d8efc60984bda6956ba8ec26
[ "MIT" ]
null
null
null
from .mobilenetv2 import *
9.333333
26
0.75
a61a5253b5a95c6aebea946cdcae6bc0f71fcf56
3,086
py
Python
clients/KelsonD/validator.py
KelsonDenton/battleships
a2b22560af07b050427aa9120328a41d34cdaafb
[ "MIT" ]
null
null
null
clients/KelsonD/validator.py
KelsonDenton/battleships
a2b22560af07b050427aa9120328a41d34cdaafb
[ "MIT" ]
null
null
null
clients/KelsonD/validator.py
KelsonDenton/battleships
a2b22560af07b050427aa9120328a41d34cdaafb
[ "MIT" ]
null
null
null
import math
44.724638
112
0.604342
a61c4e95d34c5941c55c963f8a3737186e992605
777
py
Python
tests/test_lights.py
kevinlondon/python-room-indicator
5c92d7482a8e8539863189c8dc0ee4b78fe5d424
[ "MIT" ]
1
2015-04-30T19:40:04.000Z
2015-04-30T19:40:04.000Z
tests/test_lights.py
kevinlondon/python-room-indicator
5c92d7482a8e8539863189c8dc0ee4b78fe5d424
[ "MIT" ]
16
2015-04-08T16:40:48.000Z
2015-04-30T19:39:56.000Z
tests/test_lights.py
kevinlondon/meetingbot
5c92d7482a8e8539863189c8dc0ee4b78fe5d424
[ "MIT" ]
null
null
null
import pytest from mock import patch from pubsub import pub from meetingbot import lights
33.782609
74
0.750322
a61c51cede02299e8b9027760641e7c08fd3ef9b
3,113
py
Python
task_2/csv_process.py
meklon/python_geekbrains
535a54afabcff9d7ee9643c592ed2a1d0dd48b32
[ "MIT" ]
null
null
null
task_2/csv_process.py
meklon/python_geekbrains
535a54afabcff9d7ee9643c592ed2a1d0dd48b32
[ "MIT" ]
null
null
null
task_2/csv_process.py
meklon/python_geekbrains
535a54afabcff9d7ee9643c592ed2a1d0dd48b32
[ "MIT" ]
null
null
null
import os from os import listdir from os.path import isfile, join from pathlib import Path from typing import Dict from typing import List from chardet.universaldetector import UniversalDetector from pandas import DataFrame if __name__ == "__main__": main()
29.367925
87
0.674912
a61cd68d579ebad4e09d900ef2fe940ab06920ee
8,852
py
Python
bbbs/afisha/tests/test_urls.py
AnnaKPolyakova/bbbs
e12b172e601d854291f4877a41ac20798388af4c
[ "MIT" ]
2
2021-07-13T10:31:10.000Z
2021-07-22T21:32:01.000Z
bbbs/afisha/tests/test_urls.py
AnnaKPolyakova/bbbs
e12b172e601d854291f4877a41ac20798388af4c
[ "MIT" ]
28
2021-06-12T23:31:04.000Z
2021-07-19T05:51:42.000Z
bbbs/afisha/tests/test_urls.py
AnnaKPolyakova/bbbs
e12b172e601d854291f4877a41ac20798388af4c
[ "MIT" ]
5
2021-06-17T20:24:13.000Z
2021-10-02T02:36:32.000Z
from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient, APITestCase from bbbs.afisha.factories import EventFactory from bbbs.afisha.models import EventParticipant from bbbs.common.factories import CityFactory from bbbs.users.factories import UserFactory from...
35.266932
80
0.583258
a61d15ac9b3f74c6613b91bc2dfb0f3289f8d263
1,654
py
Python
scripts/pdb_tofasta.py
XiyuChenFAU/kgs_vibration_entropy
117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9
[ "MIT" ]
1
2020-05-23T18:26:14.000Z
2020-05-23T18:26:14.000Z
scripts/pdb_tofasta.py
XiyuChenFAU/kgs_vibration_entropy
117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9
[ "MIT" ]
8
2017-01-26T19:54:38.000Z
2021-02-06T16:06:30.000Z
scripts/pdb_tofasta.py
XiyuChenFAU/kgs_vibration_entropy
117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import pdb_structure import sys import os.path if __name__ == "__main__": if len(sys.argv) != 2: print("Usage: "+sys.argv[0]+" <pdb-file>") sys.exit(1) pdbFile = sys.argv[1] struc = pdb_structure.PDBFile(pdbFile) name = os.path.basename(pdbFile).replace("...
29.017544
70
0.354293
a61da7302100b24b0ecf19c7fc7419c1d5f84365
4,122
py
Python
normalizing_flows/flows/flow.py
TanguyUrvoy/normalizing-flows
e485fe0875c117517353a9ab40e19ff951561cfc
[ "MIT" ]
15
2019-10-26T11:00:02.000Z
2021-05-24T08:39:31.000Z
normalizing_flows/flows/flow.py
TanguyUrvoy/normalizing-flows
e485fe0875c117517353a9ab40e19ff951561cfc
[ "MIT" ]
2
2021-03-26T16:01:13.000Z
2021-06-09T11:49:48.000Z
normalizing_flows/flows/flow.py
TanguyUrvoy/normalizing-flows
e485fe0875c117517353a9ab40e19ff951561cfc
[ "MIT" ]
8
2020-01-10T21:50:39.000Z
2022-03-16T21:01:25.000Z
import tensorflow as tf import tensorflow_probability as tfp from typing import List from .transform import Transform, AmortizedTransform
41.636364
128
0.619602
a61fb4cae066d888d2f215862b59d8af6c32f27d
537
py
Python
src/mainmodulename/plugins/type_one_plugin/__init__.py
portikCoder/basic_python_plugin_project
3176f6d5683ec03ec670ebda7ca6513289c72699
[ "MIT" ]
1
2021-04-09T20:10:04.000Z
2021-04-09T20:10:04.000Z
src/mainmodulename/plugins/type_one_plugin/__init__.py
portikCoder/basic_python_plugin_project
3176f6d5683ec03ec670ebda7ca6513289c72699
[ "MIT" ]
1
2021-02-06T21:48:45.000Z
2021-02-06T21:48:45.000Z
src/mainmodulename/plugins/type_one_plugin/__init__.py
portikCoder/basic_python_plugin_project
3176f6d5683ec03ec670ebda7ca6513289c72699
[ "MIT" ]
null
null
null
# Copyright (c) 2021 portikCoder. All rights reserved. # See the license text under the root package. from typing import Type from mainmodulename.common.plugin_template import Plugin from mainmodulename.plugins.type_one_plugin.type_one_plugin import TypeOnePlugin PLUGIN_CLASS: Type[Plugin] = TypeOnePlugin ALIASES =...
29.833333
80
0.757914
a6210dfe559293cf9f1af6eef76873ac94d75c61
468
py
Python
submissions/Flanagin/myLogic.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
null
null
null
submissions/Flanagin/myLogic.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
null
null
null
submissions/Flanagin/myLogic.py
dysomni/aima-python
c67104e50007ec5ac2a9aa37f0cb972cb6315528
[ "MIT" ]
null
null
null
music = { 'kb': ''' Instrument(Flute) Piece(Undine, Reinecke) Piece(Carmen, Bourne) (Instrument(x) & Piece(w, c) & Era(c, r)) ==> Program(w) Era(Reinecke, Romantic) Era(Bourne, Romantic) ''', 'queries': ''' Program(x) ''', } life = { 'kb': ''' Musician(x) ==> Stressed(x) (Student(x) & Te...
11.414634
56
0.519231
a622911cc0068f50bdd2fd71f6dba3dc3e035b9f
1,861
py
Python
python/stack_of_plates.py
Zetinator/cracking_the_coding_interview
e0ee160cbd44c24994cbe903bffc7b0f1c0f069d
[ "MIT" ]
null
null
null
python/stack_of_plates.py
Zetinator/cracking_the_coding_interview
e0ee160cbd44c24994cbe903bffc7b0f1c0f069d
[ "MIT" ]
null
null
null
python/stack_of_plates.py
Zetinator/cracking_the_coding_interview
e0ee160cbd44c24994cbe903bffc7b0f1c0f069d
[ "MIT" ]
null
null
null
"""3.3 Stack of Plates: Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the previous stack exceeds some threshold. Implement a data structure SetOfStacks that mimics this. SetOfStacks should be composed of several stacks a...
37.22
105
0.668458
a622a26eeee249b906e3a3a0624316864f9d54ab
930
py
Python
theory/3rd_sprint/django_orm.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
3
2020-11-18T05:16:30.000Z
2021-03-08T06:36:01.000Z
theory/3rd_sprint/django_orm.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
null
null
null
theory/3rd_sprint/django_orm.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
1
2021-01-20T12:41:48.000Z
2021-01-20T12:41:48.000Z
# -. # : # (name), 200 # (start_at) # (description) # (contact) # , (author, # related_name events) # (location), 400 from django.db import models from django.contrib.auth import get_user_model
42.272727
74
0.760215
a624a95d76b077a78a35eb3699f9ea5308ea13a4
4,518
py
Python
ovf2numpy.py
mikrl/mumate
4962b1f2cf40f292ac32f3742067764d4e178f32
[ "MIT" ]
1
2020-01-16T13:50:26.000Z
2020-01-16T13:50:26.000Z
ovf2numpy.py
mikrl/Helicoid-Simulations
4962b1f2cf40f292ac32f3742067764d4e178f32
[ "MIT" ]
3
2020-07-08T19:32:28.000Z
2020-07-08T19:33:21.000Z
ovf2numpy.py
mikrl/Helicoid-Simulations
4962b1f2cf40f292ac32f3742067764d4e178f32
[ "MIT" ]
2
2020-05-07T15:25:21.000Z
2020-07-04T02:45:48.000Z
from __future__ import division, print_function import os import os.path as fs import numpy as np import pandas as pd import re ### PURPOSE: Takes a directory containing N files of the form mXXXXXX.ovf ### ### and imports them to an N x X x Y x Z x 3 numpy array ### ### where X,Y,Z are the number of cells in x,y...
36.435484
187
0.733289
a6259b4f9145ab8259b28b51f8956f20553010e8
572
py
Python
scrap_jobs/__main__.py
andytan0727/scrap-jobs
b03ca1b4b21e4e10e653d20e8a35d08cf1b70ab7
[ "MIT" ]
null
null
null
scrap_jobs/__main__.py
andytan0727/scrap-jobs
b03ca1b4b21e4e10e653d20e8a35d08cf1b70ab7
[ "MIT" ]
2
2021-03-31T19:14:07.000Z
2021-12-13T20:06:00.000Z
scrap_jobs/__main__.py
andytan0727/scrap-jobs
b03ca1b4b21e4e10e653d20e8a35d08cf1b70ab7
[ "MIT" ]
null
null
null
""" Main entry for scrap_jobs module. To be run from console """ from scrap_jobs.app import App from scrap_jobs.scraper.jobstreet import JobStreetScraper if __name__ == '__main__': key = input('Please input your search key: ') location = input( 'Please enter your preferred location. Default ...
33.647059
80
0.729021
a62cb445a80bb771a1042ab9d3a511765794249f
13,982
py
Python
fetcher/proxyFetcher.py
PaleNeutron/proxy_pool
f43a3b62d4930877a6c26246985cce3628ef36d5
[ "MIT" ]
null
null
null
fetcher/proxyFetcher.py
PaleNeutron/proxy_pool
f43a3b62d4930877a6c26246985cce3628ef36d5
[ "MIT" ]
null
null
null
fetcher/proxyFetcher.py
PaleNeutron/proxy_pool
f43a3b62d4930877a6c26246985cce3628ef36d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name proxyFetcher Description : Author : JHao date 2016/11/25 ------------------------------------------------- Change Activity: 2016/11/25: proxyFetcher -----------------------------...
37.285333
175
0.505293
a62e304e0b732c8f5f93c43c8f46be4516b03ad1
5,064
py
Python
python/toy/weather_wechat.py
tagwan/scripts
f88846f13b1e3d05c093aff9124d927d6873280c
[ "MIT" ]
null
null
null
python/toy/weather_wechat.py
tagwan/scripts
f88846f13b1e3d05c093aff9124d927d6873280c
[ "MIT" ]
null
null
null
python/toy/weather_wechat.py
tagwan/scripts
f88846f13b1e3d05c093aff9124d927d6873280c
[ "MIT" ]
null
null
null
import requests import json import datetime """ """ # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import re import datetime def Future_weather_states(forecast, save_path, day_num=5): ''' :param forecast: :param day_num: :return: ''' future_forecast = forecast dict =...
26.652632
138
0.582346
a62e40b59d5193d55d8c169993defb3ea0af6a2d
161,186
py
Python
tests/test_drive_sample.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
7
2021-08-18T00:42:05.000Z
2022-03-14T09:49:15.000Z
tests/test_drive_sample.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
null
null
null
tests/test_drive_sample.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
1
2022-03-14T09:49:20.000Z
2022-03-14T09:49:20.000Z
# Code generated by lark_sdk_gen. DO NOT EDIT. import unittest import pylark import pytest from tests.test_conf import app_all_permission, app_no_permission from tests.test_helper import mock_get_tenant_access_token_failed # mock get token # mock mock self func # mock raw request # real request
36.80886
88
0.652749
a62f20a3565292350f831b63d64b71a76ad1a913
354
py
Python
modules/seloger/constants.py
Phyks/Flatisfy
9e495bb63ec32686e6dc6be566da9672ad014880
[ "MIT" ]
15
2017-06-07T07:17:47.000Z
2021-04-22T21:04:32.000Z
modules/seloger/constants.py
Phyks/Flatisfy
9e495bb63ec32686e6dc6be566da9672ad014880
[ "MIT" ]
15
2017-06-13T11:12:02.000Z
2021-03-27T12:28:42.000Z
modules/seloger/constants.py
Phyks/Flatisfy
9e495bb63ec32686e6dc6be566da9672ad014880
[ "MIT" ]
5
2017-09-23T20:13:34.000Z
2021-01-16T09:17:09.000Z
from woob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES TYPES = {POSTS_TYPES.RENT: 1, POSTS_TYPES.SALE: 2, POSTS_TYPES.FURNISHED_RENT: 1, POSTS_TYPES.VIAGER: 5} RET = {HOUSE_TYPES.HOUSE: '2', HOUSE_TYPES.APART: '1', HOUSE_TYPES.LAND: '4', HOUSE_TYPES.PARKING: '3'...
27.230769
62
0.638418
a62f8914f4df3b79cc0145fecbfc98cc209f25e4
2,536
py
Python
syncopy/nwanalysis/granger.py
kajal5888/syncopy
f7d49808a09ff65eec64cda1cfb4c87a012e0c2b
[ "BSD-3-Clause" ]
null
null
null
syncopy/nwanalysis/granger.py
kajal5888/syncopy
f7d49808a09ff65eec64cda1cfb4c87a012e0c2b
[ "BSD-3-Clause" ]
null
null
null
syncopy/nwanalysis/granger.py
kajal5888/syncopy
f7d49808a09ff65eec64cda1cfb4c87a012e0c2b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Implementation of Granger-Geweke causality # # # Builtin/3rd party package imports import numpy as np def granger(CSD, Hfunc, Sigma): """ Computes the pairwise Granger-Geweke causalities for all (non-symmetric!) channel combinations according to Equation 8 in [1]_. The...
31.7
75
0.633675
a632c715f3c468a9c0bbb7af69ade32291a51b6d
365
py
Python
sailfish/kernel/__init__.py
macfadyen/sailfish
44752a6769a2a7566a90dd9c8df21d4e2c49d720
[ "MIT" ]
9
2021-06-29T15:43:58.000Z
2022-03-20T10:13:26.000Z
sailfish/kernel/__init__.py
macfadyen/sailfish
44752a6769a2a7566a90dd9c8df21d4e2c49d720
[ "MIT" ]
1
2021-07-14T02:24:53.000Z
2021-07-14T02:24:53.000Z
sailfish/kernel/__init__.py
macfadyen/sailfish
44752a6769a2a7566a90dd9c8df21d4e2c49d720
[ "MIT" ]
8
2021-06-09T09:11:15.000Z
2021-11-02T20:25:27.000Z
""" A Python module to facilitate JIT-compiled CPU-GPU agnostic compute kernels. Kernel libraries are collections of functions written in C code that can be compiled for CPU execution using a normal C compiler via the CFFI module, or for GPU execution using a CUDA or ROCm compiler via cupy. """ from . import library ...
30.416667
76
0.786301
a63318a3fdd93456eccbc73216923e5d8710b3ba
2,574
py
Python
spring_cloud/commons/client/loadbalancer/supplier/base.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-06T09:48:23.000Z
2020-10-07T13:19:46.000Z
spring_cloud/commons/client/loadbalancer/supplier/base.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
5
2020-10-05T09:57:01.000Z
2020-10-12T19:52:48.000Z
spring_cloud/commons/client/loadbalancer/supplier/base.py
haribo0915/Spring-Cloud-in-Python
0bcd7093869c797df14428bf2d1b0a779f96e573
[ "Apache-2.0" ]
8
2020-10-05T06:34:49.000Z
2020-10-07T13:19:46.000Z
# -*- coding: utf-8 -*- """ Since the load-balancer is responsible for choosing one instance per service request from a list of instances. We need a ServiceInstanceListSupplier for each service to decouple the source of the instances from load-balancers. """ # standard library from abc import ABC, abstractmethod from t...
29.930233
87
0.685315
a6340747773815299adf15817934a33c2b1bc670
314
py
Python
Chapter 07/Chap07_Example7.71.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.71.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.71.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
myl1 = [] num = int(input("Enter the number of elements: ")) for loop in range(num): myl1.append(input(f"Enter element at index {loop} : ")) print(myl1) print(type(myl1)) myt1 = tuple(myl1) print(myt1) print(type(myt1)) print("The elements of tuple object are: ") for loop in myt1: print(loop)
20.933333
61
0.656051
a6341371a2c86884d45f4514cc575e4cd83574f3
2,655
py
Python
pytplot/tplot_math/split_vec.py
xnchu/PyTplot
65ad594ea216d56f0acf8886d8cf3b14f48ed333
[ "MIT" ]
12
2018-02-21T21:29:52.000Z
2022-01-23T19:49:38.000Z
pytplot/tplot_math/split_vec.py
xnchu/PyTplot
65ad594ea216d56f0acf8886d8cf3b14f48ed333
[ "MIT" ]
128
2018-07-25T22:38:44.000Z
2022-01-17T06:21:58.000Z
pytplot/tplot_math/split_vec.py
xnchu/PyTplot
65ad594ea216d56f0acf8886d8cf3b14f48ed333
[ "MIT" ]
25
2018-01-30T20:18:07.000Z
2021-12-25T05:07:30.000Z
import pytplot import numpy as np def split_vec(tvar, new_name=None, columns='all', suffix=None): """ Splits up 2D data into many 1D tplot variables. .. note:: This analysis routine assumes the data is no more than 2 dimensions. If there are more, they may become flattened! Parameters: ...
30.170455
179
0.588324
a634a7d59658a71a40ac1013ecebacf7bdf8218a
967
py
Python
packages/artfx/mayaLib/tests/maya_test.py
Soulayrol/Pipeline
d0a2c834c3772198f0ca5f0ba6ea8b5e41a419e7
[ "MIT" ]
null
null
null
packages/artfx/mayaLib/tests/maya_test.py
Soulayrol/Pipeline
d0a2c834c3772198f0ca5f0ba6ea8b5e41a419e7
[ "MIT" ]
null
null
null
packages/artfx/mayaLib/tests/maya_test.py
Soulayrol/Pipeline
d0a2c834c3772198f0ca5f0ba6ea8b5e41a419e7
[ "MIT" ]
null
null
null
import os import sys import maya.standalone import mayaLib print("=" * 30) print("This is mayaLib package test") print("=" * 30) print("Initializing maya standalone ...") maya.standalone.initialize(name="python") # Create engine maya_engine = mayaLib.MayaEngine() print("Engine : " + str(maya_engine)) # Get engine p...
28.441176
95
0.75181
a6353e0352eb39b16f50a9f0e0699f0ab72b2a30
756
py
Python
22. Generate Parentheses/solution1.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
22. Generate Parentheses/solution1.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
22. Generate Parentheses/solution1.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
from typing import List if __name__== '__main__': solution = Solution() n = 3 ans = solution.generateParenthesis(n) print(ans) n = 4 ans = solution.generateParenthesis(n) print(ans)
26.068966
61
0.488095
a6359dcbaf8a3e9343cefe0d8af4e3a9e190144b
6,094
py
Python
examples/openmdao.examples.mdao/openmdao/examples/mdao/sellar_BLISS.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
examples/openmdao.examples.mdao/openmdao/examples/mdao/sellar_BLISS.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
examples/openmdao.examples.mdao/openmdao/examples/mdao/sellar_BLISS.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
""" Solution of the Sellar analytical problem using classic BLISS. (Bi-Level Integrated System Synthesis) MDA solved with a Broyden solver. Global sensitivity calculated by finite-differencing the MDA-coupled system. The MDA should be replaced with solution of the GSE to fully match the ori...
44.15942
122
0.614539
a636ae28679d3b242e5baf775599edb114840da0
13,743
py
Python
simulation/aws-robomaker-sample-application-deepracer/simulation_ws/src/sagemaker_rl_agent/markov/rollout_worker.py
Lacan82/deepracer
4503480cf80993f1e94cec8d26d783d6b2121cd8
[ "Apache-2.0" ]
16
2019-12-24T06:46:31.000Z
2022-03-31T00:13:39.000Z
simulation/aws-robomaker-sample-application-deepracer/simulation_ws/src/sagemaker_rl_agent/markov/rollout_worker.py
Lacan82/deepracer
4503480cf80993f1e94cec8d26d783d6b2121cd8
[ "Apache-2.0" ]
4
2019-11-02T16:19:14.000Z
2019-11-02T21:31:30.000Z
simulation/aws-robomaker-sample-application-deepracer/simulation_ws/src/sagemaker_rl_agent/markov/rollout_worker.py
Lacan82/deepracer
4503480cf80993f1e94cec8d26d783d6b2121cd8
[ "Apache-2.0" ]
5
2020-02-11T22:13:07.000Z
2020-12-15T16:46:15.000Z
""" this rollout worker: - restores a model from disk - evaluates a predefined number of episodes - contributes them to a distributed memory - exits """ import argparse import json import math import os import sys import time import logging import traceback import markov.deepracer_memory as deepracer_memory from go...
45.207237
155
0.677727
a638619d448044911a4ff3d2febd7839d0d6bf87
10,197
py
Python
odin/bay/vi/losses.py
tirkarthi/odin-ai
7900bef82ad8801d0c73880330d5b24d9ff7cd06
[ "MIT" ]
null
null
null
odin/bay/vi/losses.py
tirkarthi/odin-ai
7900bef82ad8801d0c73880330d5b24d9ff7cd06
[ "MIT" ]
null
null
null
odin/bay/vi/losses.py
tirkarthi/odin-ai
7900bef82ad8801d0c73880330d5b24d9ff7cd06
[ "MIT" ]
null
null
null
import inspect from typing import Callable, List, Union import numpy as np import tensorflow as tf from odin.bay.helpers import kl_divergence from tensorflow import Tensor from tensorflow_probability.python.distributions import Distribution, Normal from typing_extensions import Literal __all__ = [ 'disentangled_i...
37.488971
80
0.611749
a638f3615cf3c6c6cc824b89b01d099d467d9d75
558
py
Python
scraper/settings.py
Red-Pheonix/test_scraping
f89d81a90af84444552a5bcc28dee2946ca2e58e
[ "MIT" ]
null
null
null
scraper/settings.py
Red-Pheonix/test_scraping
f89d81a90af84444552a5bcc28dee2946ca2e58e
[ "MIT" ]
null
null
null
scraper/settings.py
Red-Pheonix/test_scraping
f89d81a90af84444552a5bcc28dee2946ca2e58e
[ "MIT" ]
null
null
null
# Scrapy settings for scraper project BOT_NAME = 'scraper' SPIDER_MODULES = ['scraper.spiders'] NEWSPIDER_MODULE = 'scraper.spiders' # Crawl responsibly by identifying yourself (and your website) on the user-agent USER_AGENT = 'Googlebot-News' # Obey robots.txt rules ROBOTSTXT_OBEY = True # MONGO URI for accessing...
21.461538
80
0.747312
a63c831ec9710b64344fb7dfa36c7cec29b0cae2
358
py
Python
Intern/variables2.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
1
2020-06-28T12:35:55.000Z
2020-06-28T12:35:55.000Z
Intern/variables2.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
1
2021-10-02T05:33:51.000Z
2021-10-02T05:34:02.000Z
Intern/variables2.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
3
2020-10-17T08:19:02.000Z
2021-10-11T12:33:18.000Z
## Data Categorisation ''' 1) Whole Number (Ints) - 100, 1000, -450, 999 2) Real Numbers (Floats) - 33.33, 44.01, -1000.033 3) String - "Bangalore", "India", "Raj", "abc123" 4) Boolean - True, False Variables in python are dynamic in nature ''' a = 10 print(a) print(type(a)) a = 10.33 print(a) print(type(a)) a =...
14.916667
50
0.636872
a63cff634a2350a5c9d905417fc77ffe0cbb8d60
833
py
Python
migrations/versions/b0c12eb8ae59_initial_migration.py
edumorris/pomodoro
cde372be1d5c37dd8221ebd40b684d07fbb472b5
[ "MIT" ]
1
2022-01-10T14:48:16.000Z
2022-01-10T14:48:16.000Z
migrations/versions/b0c12eb8ae59_initial_migration.py
edumorris/pomodoro
cde372be1d5c37dd8221ebd40b684d07fbb472b5
[ "MIT" ]
null
null
null
migrations/versions/b0c12eb8ae59_initial_migration.py
edumorris/pomodoro
cde372be1d5c37dd8221ebd40b684d07fbb472b5
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: b0c12eb8ae59 Revises: 7cb850d9441c Create Date: 2020-07-15 11:44:46.190193 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b0c12eb8ae59' down_revision = '7cb850d9441c' branch_labels = None depends_on = None
26.870968
112
0.704682
a63d1ac18dbb8521b652e406baf4c3ebd14d1bd4
1,281
py
Python
PycharmProjects/PythonExercicios/ex045.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
PycharmProjects/PythonExercicios/ex045.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
PycharmProjects/PythonExercicios/ex045.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
# Exerccio Python #045 - GAME: Pedra Papel e Tesoura # # Crie um programa que faa o computador jogar JOKENP com voc. # Aprenda a arrumar as cores nas respostas! from random import choice from random import randint # Maneira utilizada na resoluo deste exerccio from time import sleep print('\033[1;31mATENO! ESTE UM ...
38.818182
117
0.672912
a63d1b744946d4b341dc8b6cce819d4426122992
6,209
py
Python
im2txt/losses.py
wangheda/ImageCaption-UnderFitting
ca98807d3a35a40a35446678d7e7b43242767a63
[ "Apache-2.0" ]
8
2018-05-08T12:29:56.000Z
2021-04-07T03:11:32.000Z
im2txt/losses.py
wangheda/ImageCaption-UnderFitting
ca98807d3a35a40a35446678d7e7b43242767a63
[ "Apache-2.0" ]
null
null
null
im2txt/losses.py
wangheda/ImageCaption-UnderFitting
ca98807d3a35a40a35446678d7e7b43242767a63
[ "Apache-2.0" ]
4
2017-12-22T02:10:38.000Z
2021-04-07T03:12:24.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
40.848684
95
0.64326
a63f4ba25cb878a66fcd7170945ef4034691b3de
7,811
py
Python
datasets/hope_edi/hope_edi.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
10,608
2020-09-10T15:47:50.000Z
2022-03-31T22:51:47.000Z
datasets/hope_edi/hope_edi.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
2,396
2020-09-10T14:55:31.000Z
2022-03-31T19:41:04.000Z
datasets/hope_edi/hope_edi.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
1,530
2020-09-10T21:43:10.000Z
2022-03-31T01:59:12.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
49.125786
1,525
0.673921
a641a9f31d2309805597aee4c338bb8ecb70c725
5,310
py
Python
code_legacy/PostfixLogSummary.py
rhymeswithmogul/starttls-everywhere
cdc6cce552d44e17a3178eba987ae5d2b6a22e75
[ "Apache-2.0" ]
339
2015-01-01T06:19:34.000Z
2021-12-10T17:24:52.000Z
code_legacy/PostfixLogSummary.py
rhymeswithmogul/starttls-everywhere
cdc6cce552d44e17a3178eba987ae5d2b6a22e75
[ "Apache-2.0" ]
95
2015-06-07T21:26:16.000Z
2021-09-28T13:11:00.000Z
code_legacy/PostfixLogSummary.py
rhymeswithmogul/starttls-everywhere
cdc6cce552d44e17a3178eba987ae5d2b6a22e75
[ "Apache-2.0" ]
50
2015-03-18T17:41:32.000Z
2021-03-19T07:44:54.000Z
#!/usr/bin/env python import argparse import collections import os import re import sys import time import Config TIME_FORMAT = "%b %d %H:%M:%S" # TODO: There's more to be learned from postfix logs! Here's one sample # observed during failures from the sender vagrant vm: # Jun 6 00:21:31 precise32 postfix/smtpd[3...
50.571429
304
0.728814
a641d2aa2cfe97b524c9e4fc4f5456576d4c7c5c
663
py
Python
provarme_dashboard/migrations/0006_auto_20190623_1914.py
arferreira/dropazul_app
f341da5f2bcccd2c1f40fad00c6e5d77bba4c6f3
[ "MIT" ]
null
null
null
provarme_dashboard/migrations/0006_auto_20190623_1914.py
arferreira/dropazul_app
f341da5f2bcccd2c1f40fad00c6e5d77bba4c6f3
[ "MIT" ]
9
2020-06-05T23:49:20.000Z
2022-01-13T01:43:03.000Z
provarme_dashboard/migrations/0006_auto_20190623_1914.py
arferreira/dropazul_app
f341da5f2bcccd2c1f40fad00c6e5d77bba4c6f3
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2019-06-23 19:14 from django.db import migrations
22.1
58
0.544495
a642467e773fb1feed9e2df7720878963e67a766
601
py
Python
enemy_bot/enemy_bot_level8/burger_war/scripts/dummyArReader.py
kenkenjlab/burger_war_kit
9332494aa1212805330c01cacc389776a8a354b6
[ "BSD-3-Clause" ]
1
2021-09-29T14:54:17.000Z
2021-09-29T14:54:17.000Z
enemy_bot/enemy_bot_level8/burger_war/scripts/dummyArReader.py
kenkenjlab/burger_war_kit
9332494aa1212805330c01cacc389776a8a354b6
[ "BSD-3-Clause" ]
3
2021-02-11T04:58:58.000Z
2021-02-23T10:26:47.000Z
enemy_bot/enemy_bot_level8/burger_war/scripts/dummyArReader.py
kenkenjlab/burger_war_kit
9332494aa1212805330c01cacc389776a8a354b6
[ "BSD-3-Clause" ]
1
2021-02-19T02:06:20.000Z
2021-02-19T02:06:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This is dummy ar marker reader node. mainly for judge server test. by Takuya Yamaguhi. ''' from time import sleep import rospy from std_msgs.msg import String if __name__ == "__main__": rospy.init_node("qr_reader") # publish qr_val qr_val_pub = rospy.Publ...
25.041667
68
0.628952
a643184953f977a187e7f1cbf609b9b4da054af6
1,834
py
Python
morph_net/framework/op_handler_decorator_test.py
nmoezzi/morph-net
fb25044ac06fc6e3b681911fc3dffe65a2b6a0a4
[ "Apache-2.0" ]
1
2019-04-25T08:23:52.000Z
2019-04-25T08:23:52.000Z
morph_net/framework/op_handler_decorator_test.py
psyhicborg/morph-net
0fb096d8d3b33eda9ab86c700cb6c07c9dbf10ee
[ "Apache-2.0" ]
null
null
null
morph_net/framework/op_handler_decorator_test.py
psyhicborg/morph-net
0fb096d8d3b33eda9ab86c700cb6c07c9dbf10ee
[ "Apache-2.0" ]
1
2019-04-26T14:50:13.000Z
2019-04-26T14:50:13.000Z
"""Tests for morph_net.framework.op_regularizer_decorator.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from morph_net.framework import conv2d_source_op_handler from morph_net.framework import generic_regularizers from morph_net.framework import op_ha...
30.065574
80
0.767176
a643fa6b9b973e3eaf970f5c1bcf721c67f1b002
141
py
Python
code/chokudai_S002_g_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
3
2019-08-16T16:55:48.000Z
2021-04-11T10:21:40.000Z
code/chokudai_S002_g_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
code/chokudai_S002_g_01.py
KoyanagiHitoshi/AtCoder
731892543769b5df15254e1f32b756190378d292
[ "MIT" ]
null
null
null
from functools import reduce from fractions import gcd n=int(input()) for i in range(n): a,b=map(int,input().split()) print(gcd(a,b))
23.5
32
0.680851
a6447a0836186c91e88667a84455256438771191
765
py
Python
simple_clinic/cli.py
sebanie15/simple_clinic
4dc942b0549ee6397a0e89dd7aa03eb8580b4a5a
[ "MIT" ]
null
null
null
simple_clinic/cli.py
sebanie15/simple_clinic
4dc942b0549ee6397a0e89dd7aa03eb8580b4a5a
[ "MIT" ]
null
null
null
simple_clinic/cli.py
sebanie15/simple_clinic
4dc942b0549ee6397a0e89dd7aa03eb8580b4a5a
[ "MIT" ]
null
null
null
"""Console script for simple_clinic.""" import sys import click active = click.make_pass_decorator(ActiveDoctor, ensure=True) if __name__ == "__main__": sys.exit(cli()) # pragma: no cover
16.630435
61
0.667974
a644ae4c04f7d11053b8e2b79110bf1aa7213f69
1,882
py
Python
tests/script/test_p2pk.py
meherett/btmhdw
6929750edb7747a9937806272127c98db86e4c98
[ "MIT" ]
3
2019-06-02T06:31:06.000Z
2019-06-16T20:46:38.000Z
tests/script/test_p2pk.py
meherett/btmhdw
6929750edb7747a9937806272127c98db86e4c98
[ "MIT" ]
3
2020-09-10T04:40:58.000Z
2021-06-25T15:38:35.000Z
tests/script/test_p2pk.py
meherett/btmhdw
6929750edb7747a9937806272127c98db86e4c98
[ "MIT" ]
1
2020-08-11T07:48:19.000Z
2020-08-11T07:48:19.000Z
#!/usr/bin/env python3 import json import os from pybytom.script import ( get_public_key_hash, get_p2pkh_program, get_p2wpkh_program, get_p2wpkh_address ) # Test Values base_path = os.path.dirname(__file__) file_path = os.path.abspath(os.path.join(base_path, "..", "values.json")) values = open(file_path, "r") _ ...
37.64
94
0.658874
a644c4a8df7832e2212b7e472ca9077666b87f3c
5,040
py
Python
src/GradeHelpUtil.py
blackpan2/PyGrade
b8f3ed8f1e13226b34a05311f809696225c1be2e
[ "Apache-2.0" ]
1
2016-04-18T17:10:46.000Z
2016-04-18T17:10:46.000Z
src/GradeHelpUtil.py
blackpan2/PyGrade
b8f3ed8f1e13226b34a05311f809696225c1be2e
[ "Apache-2.0" ]
null
null
null
src/GradeHelpUtil.py
blackpan2/PyGrade
b8f3ed8f1e13226b34a05311f809696225c1be2e
[ "Apache-2.0" ]
null
null
null
import os import shutil import subprocess from Colorify import red, cyan from DiffJob import prepare, diff, student_output __author__ = 'George Herde'
36.521739
106
0.557341
a6453769ac7b8628be28e32dc698e710b23b78b5
1,823
py
Python
src/SigasiProjectCreator/createSigasiProjectFromListOfFiles.py
mderveeuw-si/SigasiProjectCreator
a079eb47650185fb476d76880755589c1e7cb73b
[ "BSD-3-Clause" ]
11
2015-09-16T16:29:08.000Z
2020-10-10T17:17:07.000Z
src/SigasiProjectCreator/createSigasiProjectFromListOfFiles.py
mderveeuw-si/SigasiProjectCreator
a079eb47650185fb476d76880755589c1e7cb73b
[ "BSD-3-Clause" ]
21
2016-06-11T18:27:25.000Z
2022-01-04T10:52:11.000Z
src/SigasiProjectCreator/createSigasiProjectFromListOfFiles.py
mderveeuw-si/SigasiProjectCreator
a079eb47650185fb476d76880755589c1e7cb73b
[ "BSD-3-Clause" ]
11
2016-06-11T15:16:12.000Z
2022-03-24T20:30:23.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ :copyright: (c) 2008-2017 Sigasi :license: BSD, see LICENSE for more details. """ import os from SigasiProjectCreator.ArgsAndFileParser import ArgsAndFileParser from SigasiProjectCreator.Creator import SigasiProjectCreator from SigasiProjectCreator import VhdlVersi...
35.057692
95
0.724081
a645385a232a6b62393f9ca56ec107d5d9401d70
3,944
py
Python
imagepypelines_image/Resize.py
jmaggio14/imagepypelines_image
a93a74b476033904bae055ba1ac7c32614e601b6
[ "MIT" ]
1
2020-03-15T23:56:16.000Z
2020-03-15T23:56:16.000Z
imagepypelines_image/Resize.py
jmaggio14/imagepypelines_image
a93a74b476033904bae055ba1ac7c32614e601b6
[ "MIT" ]
null
null
null
imagepypelines_image/Resize.py
jmaggio14/imagepypelines_image
a93a74b476033904bae055ba1ac7c32614e601b6
[ "MIT" ]
null
null
null
from .util import dtype_type_check,\ interpolation_type_check,\ channel_type_check,\ get_cv2_interp_type from .imports import import_opencv from .blocks import ImageBlock cv2 = import_opencv() import numpy as np import imagepypelines as ip
31.552
85
0.580629
a64954da5abc2b618672c110a9d724b19813f598
9,145
py
Python
benchmarks/compare_with_others.py
ProLoD/icontract-hypothesis
fe6c12a7395807d78880c2bbead48580fe8a1cff
[ "MIT" ]
57
2021-01-14T12:01:19.000Z
2022-03-02T10:54:43.000Z
benchmarks/compare_with_others.py
ProLoD/icontract-hypothesis
fe6c12a7395807d78880c2bbead48580fe8a1cff
[ "MIT" ]
7
2021-02-15T16:28:55.000Z
2021-07-23T10:58:21.000Z
benchmarks/compare_with_others.py
ProLoD/icontract-hypothesis
fe6c12a7395807d78880c2bbead48580fe8a1cff
[ "MIT" ]
2
2021-01-21T05:35:58.000Z
2021-04-02T08:28:06.000Z
#!/usr/bin/env python3 """Benchmark icontract against deal when used together with hypothesis.""" import os import sys import timeit from typing import List import deal import dpcontracts import hypothesis import hypothesis.extra.dpcontracts import hypothesis.strategies import icontract import tabulate import icontr...
29.310897
115
0.584254
a64a38e4de8c4fb4cf2ac3e9a3fade9d7fe3f5d7
1,898
py
Python
experiments/plot.py
henrytseng/srcnn
1745987e0722c7b03fd870b793f10f627719d25f
[ "MIT" ]
125
2017-04-12T10:21:27.000Z
2022-03-18T07:06:35.000Z
experiments/plot.py
henrytseng/srcnn
1745987e0722c7b03fd870b793f10f627719d25f
[ "MIT" ]
9
2017-03-09T19:55:39.000Z
2018-02-09T22:10:55.000Z
experiments/plot.py
henrytseng/srcnn
1745987e0722c7b03fd870b793f10f627719d25f
[ "MIT" ]
66
2017-03-09T08:32:11.000Z
2022-02-09T08:20:35.000Z
from pathlib import Path import matplotlib.pyplot as plt import pandas as pd results_dir = Path('results') results_dir.mkdir(exist_ok=True) # Performance plot for scale in [3, 4]: for test_set in ['Set5', 'Set14']: time = [] psnr = [] model = [] for save_dir in sorted(Path('.').g...
33.892857
79
0.558483
a64bf21d0735e0fc79835922c07c262f127237c8
585
py
Python
main.py
deepkick/Visualization-of-the-number-of-Covid19-infected-people-by-Python
cbb4a4f1cde15eee7b27005604023c3e31da7348
[ "MIT" ]
null
null
null
main.py
deepkick/Visualization-of-the-number-of-Covid19-infected-people-by-Python
cbb4a4f1cde15eee7b27005604023c3e31da7348
[ "MIT" ]
null
null
null
main.py
deepkick/Visualization-of-the-number-of-Covid19-infected-people-by-Python
cbb4a4f1cde15eee7b27005604023c3e31da7348
[ "MIT" ]
null
null
null
import tkinter import translate from translate import translate # tki = tkinter.Tk() tki.geometry('300x300') tki.title('') # lbl_1 = tkinter.Label(text=':') lbl_1.place(x=30, y=70) lbl_2 = tkinter.Label(text=':') lbl_2.place(x=30, y=100) # txt_1 = tkinter.Entry(width=20) txt_1.place(x=90, y=70) txt_2 = tkinter...
18.870968
55
0.692308
a64c022309cbe0a220144817328b319ba96f7547
15,665
py
Python
tests/commands/test_cloud.py
pm3310/sagify
79de19e938414a4d0de687e1d3d443711314d9d2
[ "MIT" ]
3
2019-06-10T18:34:42.000Z
2019-10-17T13:51:54.000Z
tests/commands/test_cloud.py
pm3310/sagify
79de19e938414a4d0de687e1d3d443711314d9d2
[ "MIT" ]
null
null
null
tests/commands/test_cloud.py
pm3310/sagify
79de19e938414a4d0de687e1d3d443711314d9d2
[ "MIT" ]
2
2019-10-17T13:52:10.000Z
2021-08-21T07:49:50.000Z
try: from unittest.mock import patch except ImportError: from mock import patch from click.testing import CliRunner import sagify from sagify.config.config import Config from sagify.__main__ import cli
41.662234
99
0.418449
a64dc18b9557bde696478c8692e131bbdb9c3b18
2,300
py
Python
Matplotlib.py
claw0ed/DataSci
0d058e5756f5702aabbcfacee958182ae061dd94
[ "BSD-2-Clause" ]
null
null
null
Matplotlib.py
claw0ed/DataSci
0d058e5756f5702aabbcfacee958182ae061dd94
[ "BSD-2-Clause" ]
null
null
null
Matplotlib.py
claw0ed/DataSci
0d058e5756f5702aabbcfacee958182ae061dd94
[ "BSD-2-Clause" ]
null
null
null
# Matplotlib # import matplotlib.pyplot as plt import numpy as np import pandas as pd #%matplotlib inline # show() # # data = np.arange(10) # plt.plot(data) # plt.show() # - 100 list = [] for i in range(100): # 0 ~ 99 x = np.random.normal(0,1) # y = x + 0...
25.274725
57
0.604348
a64ea2878c9e329d7ac84eb7694cf09c5df4ae99
10,875
py
Python
pmaf/sequence/_sequence/_nucleotide.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/sequence/_sequence/_nucleotide.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/sequence/_sequence/_nucleotide.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.simplefilter("ignore", category=FutureWarning) from pmaf.internal.io._seq import SequenceIO from pmaf.sequence._shared import ( validate_seq_mode, mode_as_str, mode_as_skbio, sniff_mode, ) from pmaf.sequence._metakit import NucleotideMetabase from skbio.sequence import Grammare...
32.954545
127
0.564046
a64f51f75f428531eb9d4006ba45d2b3d4ab67ec
554
py
Python
src/main.py
faheem77/FASTAPI-on-Scrapped-Data
aeabe5dcb0106ed0c5b4287a9f812461e878606e
[ "MIT" ]
4
2021-05-02T15:46:15.000Z
2021-07-20T20:17:03.000Z
src/main.py
faheem77/FASTAPI-on-Scrapped-Data
aeabe5dcb0106ed0c5b4287a9f812461e878606e
[ "MIT" ]
null
null
null
src/main.py
faheem77/FASTAPI-on-Scrapped-Data
aeabe5dcb0106ed0c5b4287a9f812461e878606e
[ "MIT" ]
5
2021-04-23T00:23:25.000Z
2022-02-27T19:05:35.000Z
from fastapi import FastAPI, Response import events_service as _service app = FastAPI()
19.103448
46
0.698556
a64f8541cde5ab3f951254ac3406eb262db0a22b
4,117
py
Python
rollservice/tests/test_dice_seq.py
stallmanifold/pnpdr
49c84845e0a702e87f954135db070727cc77c2cc
[ "Apache-2.0", "MIT" ]
null
null
null
rollservice/tests/test_dice_seq.py
stallmanifold/pnpdr
49c84845e0a702e87f954135db070727cc77c2cc
[ "Apache-2.0", "MIT" ]
null
null
null
rollservice/tests/test_dice_seq.py
stallmanifold/pnpdr
49c84845e0a702e87f954135db070727cc77c2cc
[ "Apache-2.0", "MIT" ]
null
null
null
from django.contrib.auth.models import User from rollservice.models import DiceSequence import rest_framework.test as rf_test import rest_framework.status as status import rest_framework.reverse as reverse import hypothesis.extra.django import hypothesis.strategies as strategies import unittest
32.674603
101
0.704396
a64f99499c110d1b06a6b4695b5246480f98a472
1,002
py
Python
tests/unit/test_metrics.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
tests/unit/test_metrics.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
tests/unit/test_metrics.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import numpy as np import torch from comet.metrics import RegressionReport, WMTKendall
28.628571
68
0.572854
a6502bc8d3efa4a62ed9b5abd448b7a3fdc28b1d
12,184
py
Python
models/edhoc/draftedhoc-20200301/oracle.py
hoheinzollern/EDHOC-Verification
b62bb5192021b9cee52845943ba0c1999cb84119
[ "MIT" ]
null
null
null
models/edhoc/draftedhoc-20200301/oracle.py
hoheinzollern/EDHOC-Verification
b62bb5192021b9cee52845943ba0c1999cb84119
[ "MIT" ]
null
null
null
models/edhoc/draftedhoc-20200301/oracle.py
hoheinzollern/EDHOC-Verification
b62bb5192021b9cee52845943ba0c1999cb84119
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys, re from functools import reduce DEBUG = False #DEBUG = True # Put prios between 0 and 100. Above 100 is for default strategy MAXNPRIO = 200 # max number of prios, 0 is lowest prio FALLBACKPRIO = MAXNPRIO # max number of prios, 0 is lowest prio prios = [(i, []) for i in range(MAXNP...
43.514286
105
0.403234
a65188af292deab5b04d0b97830086fab5d0df1e
1,370
py
Python
examples/models/train_relgan.py
DANISHFAYAZNAJAR/nalp
8a7d8b7cb13dfc755a72d0770bf81ba9bc6ddb35
[ "Apache-2.0" ]
18
2019-02-01T19:13:54.000Z
2022-03-14T04:42:28.000Z
examples/models/train_relgan.py
DANISHFAYAZNAJAR/nalp
8a7d8b7cb13dfc755a72d0770bf81ba9bc6ddb35
[ "Apache-2.0" ]
2
2022-01-11T14:43:00.000Z
2022-01-19T16:00:20.000Z
examples/models/train_relgan.py
DANISHFAYAZNAJAR/nalp
8a7d8b7cb13dfc755a72d0770bf81ba9bc6ddb35
[ "Apache-2.0" ]
7
2019-03-28T23:17:31.000Z
2022-01-11T10:58:38.000Z
import tensorflow as tf from nalp.corpus import TextCorpus from nalp.datasets import LanguageModelingDataset from nalp.encoders import IntegerEncoder from nalp.models import RelGAN # Creating a character TextCorpus from file corpus = TextCorpus(from_file='data/text/chapter1_harry.txt', corpus_type='char') # Creating...
37.027027
95
0.772993
a654337a734e79739f69d3d53dd0928fa3930eaa
10,448
py
Python
portReporter.py
XXXTheInternXXX/portReporter
40bf983379a6f21c4c9c7143cab61a8b9a024665
[ "MIT" ]
null
null
null
portReporter.py
XXXTheInternXXX/portReporter
40bf983379a6f21c4c9c7143cab61a8b9a024665
[ "MIT" ]
null
null
null
portReporter.py
XXXTheInternXXX/portReporter
40bf983379a6f21c4c9c7143cab61a8b9a024665
[ "MIT" ]
null
null
null
# Scan IP for open SQL port (Default Port) # Run Whois on the IP found # Scan all the ports and show which ones are left open # If no open ports, then move on import os import sys amIRoot = os.getuid() if not amIRoot == 0: print ("Run me as root plz UwU. I need to send mor packetz.") sys.exit(0) import logging logg...
71.07483
5,009
0.733825
a6554e28fae19027e74ff048a0c85dcdc8783d73
689
py
Python
setup.py
thomasms/filecompare
393af84939689481da27460cccb52040e6171e01
[ "MIT" ]
null
null
null
setup.py
thomasms/filecompare
393af84939689481da27460cccb52040e6171e01
[ "MIT" ]
null
null
null
setup.py
thomasms/filecompare
393af84939689481da27460cccb52040e6171e01
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='filecompare', version='0.1', description='A package for comparing text and JSON files.', url='https://github.com/thomasms/filecompare', author='Thomas Stainer', author_email='stainer.tom+github@gmail.com', license='MIT', packages=[ ...
28.708333
65
0.608128
a65a378d0980f12b970ed55c7de79ac039724e55
48
py
Python
python/testData/keywordCompletion/finallyInExcept.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/keywordCompletion/finallyInExcept.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/keywordCompletion/finallyInExcept.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
try: a = 1 except: a = 2 fina<caret>
9.6
15
0.458333
a65aacd8f80b65ceab62275e2519a06afa40e428
2,453
py
Python
tests/test_text/test_text.py
mateusz-obszanski/my-python-utils
d04801d14edbd95b5e6b5171ac8fd6acaf4d0554
[ "MIT" ]
null
null
null
tests/test_text/test_text.py
mateusz-obszanski/my-python-utils
d04801d14edbd95b5e6b5171ac8fd6acaf4d0554
[ "MIT" ]
null
null
null
tests/test_text/test_text.py
mateusz-obszanski/my-python-utils
d04801d14edbd95b5e6b5171ac8fd6acaf4d0554
[ "MIT" ]
null
null
null
from text import longest_common_substring from text._utils import suffix_array import itertools
39.564516
145
0.571137
a65b97afb97c000a1a2b770c26078287c8034b28
472
py
Python
201409/3.py
L-LYR/csp-sol
6c0aec82d4704dc8b53886fe1f72e5088d6eab6d
[ "MIT" ]
null
null
null
201409/3.py
L-LYR/csp-sol
6c0aec82d4704dc8b53886fe1f72e5088d6eab6d
[ "MIT" ]
null
null
null
201409/3.py
L-LYR/csp-sol
6c0aec82d4704dc8b53886fe1f72e5088d6eab6d
[ "MIT" ]
null
null
null
# Time: 03/18/21 # Author: HammerLi # Tags: [Simulation] # Title: # Content: # # # tar = input() strict = bool(int(input())) n = int(input()) for i in range(0, n): src = input() if strict: if src.find(tar) != -1: print(src) else: if src.lower().find(tar.lower()) != -1...
20.521739
48
0.605932
a66116aa53fbe883f4e06b84d6c1d21984e8b026
826
py
Python
manage.py
Vanzct/xp
75794c283f8680cac84edf0e184e8d1fdaed2b9c
[ "MIT" ]
null
null
null
manage.py
Vanzct/xp
75794c283f8680cac84edf0e184e8d1fdaed2b9c
[ "MIT" ]
null
null
null
manage.py
Vanzct/xp
75794c283f8680cac84edf0e184e8d1fdaed2b9c
[ "MIT" ]
null
null
null
# coding=utf-8 __author__ = 'Van' import os import sys from flask.ext.script import Manager, Shell # from flask.ext.migrate import Migrate, MigrateCommand sys.path.append(os.path.dirname(os.path.abspath(__file__))) from app import create_app mode = os.getenv('APP_CONFIG_MODE') or 'default' if mode: mode = mode.l...
23.6
70
0.713075