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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64aa2bc5220e8017e409c846fc02f3f094df8aea | 3,106 | py | Python | models/image/greenFluorescenceQuantifier.py | marinarobin/uwaterloo-igem-2018 | dd2d3227975c51c31e923c0e262b4fc07b44b73a | [
"MIT"
] | 3 | 2018-05-15T00:46:37.000Z | 2018-09-20T22:50:52.000Z | models/image/greenFluorescenceQuantifier.py | marinarobin/uwaterloo-igem-2018 | dd2d3227975c51c31e923c0e262b4fc07b44b73a | [
"MIT"
] | 1 | 2018-03-22T19:30:24.000Z | 2018-03-22T19:30:24.000Z | models/image/greenFluorescenceQuantifier.py | marinarobin/uwaterloo-igem-2018 | dd2d3227975c51c31e923c0e262b4fc07b44b73a | [
"MIT"
] | 3 | 2018-10-01T21:19:23.000Z | 2018-10-13T19:04:28.000Z | # Max Reed
# August 22, 2018
# A program designed for the UW iGEM Robots Subsubteam within the Math Subteam. It is meant to
# help quantify the amount of green fluorescence visible in an image. We have a very bright blue
# LED and a band pass filter that blocks blue light but lets through green light (and also red
# li... | 53.551724 | 118 | 0.68255 |
64aa32eb7118f5a70eea293de71708246ff3bf6d | 405 | py | Python | src/domain/image.py | wlsouza/py-video-maker | 7e39b884db8f6159489157e077705a68433a48c9 | [
"MIT"
] | 3 | 2020-02-16T18:28:29.000Z | 2020-07-16T22:53:08.000Z | src/domain/image.py | wlsouza/py-video-maker | 7e39b884db8f6159489157e077705a68433a48c9 | [
"MIT"
] | 10 | 2020-02-16T01:26:39.000Z | 2022-03-12T00:58:39.000Z | src/domain/image.py | wlsouza/py-video-maker | 7e39b884db8f6159489157e077705a68433a48c9 | [
"MIT"
] | null | null | null | # !usr/bin/python
# -*- coding: UTF-8 -*-
| 19.285714 | 81 | 0.553086 |
64aa9e0fb2abbc8acf4ca4d645c0e94f3277a488 | 152 | py | Python | GreyMatter/open_firefox.py | nayangupta824/Melissa-Web | cd669a60bf5642145904b6e7e2c4f3de2d4874c1 | [
"MIT"
] | 20 | 2015-12-09T13:14:25.000Z | 2020-05-14T05:08:31.000Z | Using_Internet_to_Gather_Information/Using_Internet_to_Gather_Information/Melissa-Core/GreyMatter/open_firefox.py | Abhidalakoti/Project1 | e7b6bae3cb96f543d04d33cdb5015b2698af283e | [
"MIT"
] | 1 | 2021-03-26T00:28:00.000Z | 2021-03-26T00:28:00.000Z | Using_Internet_to_Gather_Information/Using_Internet_to_Gather_Information/Melissa-Core/GreyMatter/open_firefox.py | Abhidalakoti/Project1 | e7b6bae3cb96f543d04d33cdb5015b2698af283e | [
"MIT"
] | 24 | 2015-12-16T13:15:32.000Z | 2021-02-21T17:29:44.000Z | from selenium import webdriver
from SenseCells.tts import tts
| 19 | 43 | 0.75 |
64abd26bdea2dd2cb38f2c7f7fbbe13c0579ff77 | 126 | py | Python | gym_quoridor/__init__.py | Xe-Xo/GymQuoridor | ab65c9f698fa2ceaf4728a241fcf181b09dbfd9d | [
"MIT"
] | 1 | 2020-06-27T08:19:23.000Z | 2020-06-27T08:19:23.000Z | gym_quoridor/__init__.py | Xe-Xo/GymQuoridor | ab65c9f698fa2ceaf4728a241fcf181b09dbfd9d | [
"MIT"
] | null | null | null | gym_quoridor/__init__.py | Xe-Xo/GymQuoridor | ab65c9f698fa2ceaf4728a241fcf181b09dbfd9d | [
"MIT"
] | null | null | null | from gym.envs.registration import register
register(
id='quoridor-v0',
entry_point='gym_quoridor.envs:QuoridorEnv',
) | 21 | 48 | 0.753968 |
64acc512b5825b962fd5ff32c2724cf9fe2368b1 | 482 | py | Python | Python3/OTUS/lesson04/lesson04-6.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/OTUS/lesson04/lesson04-6.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | Python3/OTUS/lesson04/lesson04-6.py | neon1ks/Study | 5d40171cf3bf5e8d3a95539e91f5afec54d1daf3 | [
"MIT"
] | null | null | null | from http.server import BaseHTTPRequestHandler, HTTPServer
httpd = HTTPServer(('localhost', 8082), MyHandler)
print('Starting...')
try:
httpd.serve_forever()
except KeyboardInterrupt:
print('Bye!')
| 20.083333 | 58 | 0.670124 |
64adfd451b09f6dc065a668f9264ad3f97a22f44 | 397 | py | Python | test/unit/tools/filter_modules/filtermod.py | ramezrawas/galaxy-1 | c03748dd49c060a68d07bce56eae33e0ba154414 | [
"CC-BY-3.0"
] | 6 | 2018-11-03T22:43:35.000Z | 2022-02-15T17:51:33.000Z | test/unit/tools/filter_modules/filtermod.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 7 | 2016-12-07T22:19:37.000Z | 2019-01-30T15:04:26.000Z | test/unit/tools/filter_modules/filtermod.py | igorhollaender/OBSOLETE_sirv_dashboard | 85aec60b80ef6f561d89398e3da5963d3d0f2aa4 | [
"CC-BY-3.0"
] | 10 | 2017-04-10T21:40:22.000Z | 2022-02-21T16:50:10.000Z | """ Test filters used by test_toolbox_filters.py.
"""
def filter_tool( context, tool ):
"""Test Filter Tool"""
return False
def filter_section( context, section ):
"""Test Filter Section"""
return False
def filter_label_1( context, label ):
"""Test Filter Label 1"""
return False
def filt... | 17.26087 | 49 | 0.654912 |
64ae05324f3dae6df96c35bcbece7b74feb328fc | 120 | py | Python | countd.py | sushmitajaiswal/PythonPrograms | d4fb1b36953185e2f8dd866798ca6965a52563a9 | [
"MIT"
] | null | null | null | countd.py | sushmitajaiswal/PythonPrograms | d4fb1b36953185e2f8dd866798ca6965a52563a9 | [
"MIT"
] | null | null | null | countd.py | sushmitajaiswal/PythonPrograms | d4fb1b36953185e2f8dd866798ca6965a52563a9 | [
"MIT"
] | null | null | null | word=input("enter any word:")
d={}
for x in word:
d[x]=d.get(x,0)+1
for k,v in d.items():
print(k,"occured",v,"times") | 20 | 29 | 0.608333 |
64ae3d6f62b7608b160f2bb48636489376bec131 | 4,004 | py | Python | body/test/test_hello_utils.py | soumith/stretch_body | 998cec78fae67090060d4474c3029f9db45cde85 | [
"RSA-MD"
] | null | null | null | body/test/test_hello_utils.py | soumith/stretch_body | 998cec78fae67090060d4474c3029f9db45cde85 | [
"RSA-MD"
] | 1 | 2021-08-29T21:42:17.000Z | 2021-08-30T05:58:15.000Z | body/test/test_hello_utils.py | soumith/stretch_body | 998cec78fae67090060d4474c3029f9db45cde85 | [
"RSA-MD"
] | 3 | 2021-08-20T22:51:57.000Z | 2021-09-02T17:05:25.000Z | import unittest
import stretch_body.hello_utils
import time
import warnings
| 43.053763 | 172 | 0.630619 |
64af3bbda0149dc749dbd37a20c934c3da8f8100 | 24,483 | py | Python | 2019/016_cielab_color_space/check_boundary_characteristic.py | toru-ver4/sample_code | 9165b4cb07a3cb1b3b5a7f6b3a329be081bddabe | [
"BSD-3-Clause"
] | 19 | 2019-11-12T23:34:35.000Z | 2022-03-08T13:21:03.000Z | 2019/016_cielab_color_space/check_boundary_characteristic.py | colour-science/sample_code | 8bda35b674d770da5a0e6c210634a77691527fce | [
"BSD-3-Clause"
] | 101 | 2019-08-12T01:20:13.000Z | 2022-03-18T12:17:01.000Z | 2019/016_cielab_color_space/check_boundary_characteristic.py | colour-science/sample_code | 8bda35b674d770da5a0e6c210634a77691527fce | [
"BSD-3-Clause"
] | 3 | 2020-06-08T09:48:08.000Z | 2022-03-09T15:35:51.000Z | # -*- coding: utf-8 -*-
"""
XYZL*a*b*
======================================
XYZL*a*b*
"""
# import standard libraries
import os
import ctypes
# import third-party libraries
import numpy as np
import matplotlib.pyplot as plt
from colour import xyY_to_XYZ, XYZ_to_RGB, read_image, write_image, LUT3D,\
RGB_to_XYZ,... | 33.492476 | 82 | 0.579668 |
64afdabe7a49d85a55002e8219642eede03635c1 | 288 | py | Python | score.py | salisu14/python-tut | 4defc38924e064657daa46647e8979cde733f9f4 | [
"MIT"
] | 5 | 2021-04-16T01:29:21.000Z | 2021-12-24T10:03:54.000Z | score.py | salisu14/python-tut | 4defc38924e064657daa46647e8979cde733f9f4 | [
"MIT"
] | null | null | null | score.py | salisu14/python-tut | 4defc38924e064657daa46647e8979cde733f9f4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
average = 0
score = int(input('Enter first score: '))
score += int(input('Enter second score: '))
score += int(input('Enter third score: '))
average = score / 3.0
average = round(average, 2)
print(f'Total Score: {score}')
print(f'Average Score: {average}')
| 16.941176 | 43 | 0.65625 |
64b06d39035e35021652b98bd685aa742c7ae018 | 66 | py | Python | source/tweaks/__init__.py | mverleg/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | null | null | null | source/tweaks/__init__.py | mverleg/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | 142 | 2015-06-05T07:53:09.000Z | 2020-03-31T18:37:07.000Z | source/tweaks/__init__.py | mdilli/svsite | 5c9dbcacf81020cf0c1960e337bdd33113acd597 | [
"BSD-3-Clause"
] | null | null | null | """
Changes to the defaults of ``django``, ``djangocms``, etc.
""" | 22 | 58 | 0.606061 |
64b0e622a1042d009df7256126b96fb6332feade | 1,250 | py | Python | companies/forms.py | wsoliveira/borsocontrole | 61a4e2aac738a766b6919e30c08fc967fe96fb40 | [
"MIT"
] | null | null | null | companies/forms.py | wsoliveira/borsocontrole | 61a4e2aac738a766b6919e30c08fc967fe96fb40 | [
"MIT"
] | 12 | 2020-04-14T11:54:50.000Z | 2021-06-10T18:54:44.000Z | companies/forms.py | wsoliveira/borsocontrole | 61a4e2aac738a766b6919e30c08fc967fe96fb40 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from .models import bc_sector, bc_company, bc_company_code
from administrators.models import bc_admin_type_investiment
| 39.0625 | 116 | 0.7032 |
64b20b9ed2c7c1d8565510f985e4c1edaa94157e | 4,271 | py | Python | docker-image/locust-tasks/fakerutil.py | eklicious/mlocust-app | 04a7599503d9b6bac027dd4c473ad6c7be753362 | [
"Apache-2.0"
] | null | null | null | docker-image/locust-tasks/fakerutil.py | eklicious/mlocust-app | 04a7599503d9b6bac027dd4c473ad6c7be753362 | [
"Apache-2.0"
] | null | null | null | docker-image/locust-tasks/fakerutil.py | eklicious/mlocust-app | 04a7599503d9b6bac027dd4c473ad6c7be753362 | [
"Apache-2.0"
] | null | null | null | import pymongo
from bson.json_util import loads, dumps
from bson import json_util
import csv
import sys
import uuid
import os
import itertools
from faker import Faker
from collections import defaultdict
import json
import datetime
from deepmerge import Merger
import random
import re
###################################... | 39.183486 | 135 | 0.619527 |
64b21da399686c13e0023dde485bb17649e24185 | 3,554 | py | Python | examples/utils.py | hadar-solver/hadar | 9e656212f255cf5c0a1af87b02c2a9e5450806b5 | [
"Apache-2.0"
] | 1 | 2021-01-08T14:31:37.000Z | 2021-01-08T14:31:37.000Z | examples/utils.py | hadar-simulator/hadar | 9e656212f255cf5c0a1af87b02c2a9e5450806b5 | [
"Apache-2.0"
] | 86 | 2020-01-23T09:43:26.000Z | 2020-12-03T13:56:31.000Z | examples/utils.py | hadar-solver/hadar | 9e656212f255cf5c0a1af87b02c2a9e5450806b5 | [
"Apache-2.0"
] | 1 | 2020-01-23T15:05:50.000Z | 2020-01-23T15:05:50.000Z | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Apache License, version 2.0.
# If a copy of the Apache License, version 2.0 was not distributed with this file, you can obtain one at http://www.apache.org/licenses/LICENSE-2.0.
# SP... | 28.894309 | 149 | 0.627462 |
64b279e328c6e5af418118b043a2d65021c5d603 | 1,230 | py | Python | lukkari/timerange.py | JuEeHa/lukkari | 699caf7686d1b060927dfdc7dac2a7452f2371d5 | [
"Unlicense"
] | null | null | null | lukkari/timerange.py | JuEeHa/lukkari | 699caf7686d1b060927dfdc7dac2a7452f2371d5 | [
"Unlicense"
] | null | null | null | lukkari/timerange.py | JuEeHa/lukkari | 699caf7686d1b060927dfdc7dac2a7452f2371d5 | [
"Unlicense"
] | null | null | null | import datetime
| 27.954545 | 73 | 0.696748 |
64b296594edc9672e5df42017e0febcf11f1fb78 | 243 | py | Python | renlabs/sudoku/cli.py | swork/sudoku | 7dcc33bf6572ada4d3d92f21278d19b5237c1d83 | [
"MIT"
] | null | null | null | renlabs/sudoku/cli.py | swork/sudoku | 7dcc33bf6572ada4d3d92f21278d19b5237c1d83 | [
"MIT"
] | null | null | null | renlabs/sudoku/cli.py | swork/sudoku | 7dcc33bf6572ada4d3d92f21278d19b5237c1d83 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import logging, sys, os
from . import main
logger = logging.getLogger(__name__ if not __name__ == '__main__' else os.path.basename(__file__))
if __name__ == '__main__':
logging.basicConfig()
sys.exit(main())
| 22.090909 | 98 | 0.707819 |
64b5326f176464feb08959dbb46da61e35edf533 | 873 | py | Python | Python 基础教程/1.5.1 列表.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 95 | 2020-10-11T04:45:46.000Z | 2022-02-25T01:50:40.000Z | Python 基础教程/1.5.1 列表.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | null | null | null | Python 基础教程/1.5.1 列表.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 30 | 2020-11-05T09:01:00.000Z | 2022-03-08T05:58:55.000Z | #
print(''*15)
x = [1,2,3]
print(x)
x = x+ [4]
x.append(5)
print(x)
x.insert(3,'w')
x.extend(['a','b'])
print(x*3)
#
print(""*15)
y = ["a","b","c","d",'e','f']
del y[2]
print(y)
y.pop(0)
print(y)
y.remove('f')
print(y)
#
print(""*5)
x =[1,2,3,3,4,5]
print(x.count(3),x.index(2))
#
print(""*10)
x = [1,2,4,5,6,34,2... | 12.125 | 39 | 0.578465 |
64b62172678af5d0df137277a87c6dc84666d9fe | 1,820 | py | Python | custom_components/vektiva_smarwi/smarwi_control.py | wongcz/vektiva_smarwi_ha | 1243905a3236cedc5e8d6c55f578e71b673b7a6e | [
"Apache-2.0"
] | 3 | 2020-11-05T15:40:22.000Z | 2021-02-07T02:01:59.000Z | custom_components/vektiva_smarwi/smarwi_control.py | wongcz/vektiva_smarwi_ha | 1243905a3236cedc5e8d6c55f578e71b673b7a6e | [
"Apache-2.0"
] | 2 | 2021-03-30T08:24:49.000Z | 2022-02-07T10:39:40.000Z | custom_components/vektiva_smarwi/smarwi_control.py | wongcz/vektiva_smarwi_ha | 1243905a3236cedc5e8d6c55f578e71b673b7a6e | [
"Apache-2.0"
] | 1 | 2021-05-06T21:32:55.000Z | 2021-05-06T21:32:55.000Z | import aiohttp
| 29.354839 | 88 | 0.557143 |
64b6386728a5037f9d572fa1e9fcc3acf2c312a4 | 25,806 | py | Python | add_ops.py | SoftDevX/MJDB | 386bbb464fbd24c02f0d87da30e0dd11da65b764 | [
"MIT"
] | null | null | null | add_ops.py | SoftDevX/MJDB | 386bbb464fbd24c02f0d87da30e0dd11da65b764 | [
"MIT"
] | null | null | null | add_ops.py | SoftDevX/MJDB | 386bbb464fbd24c02f0d87da30e0dd11da65b764 | [
"MIT"
] | null | null | null | from PyQt5 import QtWidgets, QtCore, QtPrintSupport
from PyQt5.QtCore import QDate, QTime, Qt, QTimer, QRectF
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtPrintSupport import QPrinter
from database import MyCursor
from PyQt5 import QtGui
from datetime import datetime, timedelta
from annulation i... | 45.036649 | 240 | 0.556305 |
64b6dc2967551718c352e4ed6c6a33338fe3045c | 3,971 | py | Python | packages/tractography/tensor_gen.py | justi/m2g | 09e8b889889ee8d8fb08b9b6fcd726fb3d901644 | [
"Apache-2.0"
] | 12 | 2015-03-11T22:07:17.000Z | 2016-01-29T21:24:29.000Z | packages/tractography/tensor_gen.py | youngmook/m2g | 09e8b889889ee8d8fb08b9b6fcd726fb3d901644 | [
"Apache-2.0"
] | 213 | 2015-01-30T16:02:57.000Z | 2016-01-29T21:45:02.000Z | packages/tractography/tensor_gen.py | youngmook/m2g | 09e8b889889ee8d8fb08b9b6fcd726fb3d901644 | [
"Apache-2.0"
] | 5 | 2015-02-04T13:58:12.000Z | 2016-01-29T21:24:46.000Z | #!/usr/bin/env python
# Copyright 2015 Open Connectome Project (http://openconnecto.me)
#
# 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
#
#... | 43.163043 | 352 | 0.723244 |
64b7672cb62dac687e85a4289526c29c26d01251 | 4,055 | py | Python | ml2/ltl/ltl_spec/ltl_spec_encoder.py | reactive-systems/ml2 | c5ecaf07816b48a76ce4f7a3255fcf3baa78fd5c | [
"MIT"
] | 2 | 2021-06-30T14:00:11.000Z | 2022-02-02T14:12:26.000Z | ml2/ltl/ltl_spec/ltl_spec_encoder.py | reactive-systems/ml2 | c5ecaf07816b48a76ce4f7a3255fcf3baa78fd5c | [
"MIT"
] | null | null | null | ml2/ltl/ltl_spec/ltl_spec_encoder.py | reactive-systems/ml2 | c5ecaf07816b48a76ce4f7a3255fcf3baa78fd5c | [
"MIT"
] | 1 | 2021-07-01T13:38:33.000Z | 2021-07-01T13:38:33.000Z | """LTL specification encoder"""
import tensorflow as tf
from ...data.encoder import PAD_TOKEN
from ..ltl_encoder import LTLTreeEncoder
class LTLSpecPropertyEncoder(LTLTreeEncoder):
def encode(self, spec):
if len(spec.assumptions + spec.guarantees) > self.num_properties:
self.error = 'Num ... | 38.254717 | 80 | 0.605672 |
64b82d4b5f5b18d5d4af06617964ece62fbc4a17 | 5,781 | py | Python | pulse_lib/segments/data_classes/data_HVI_variables.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | null | null | null | pulse_lib/segments/data_classes/data_HVI_variables.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | 26 | 2020-04-06T09:33:39.000Z | 2022-02-18T14:08:22.000Z | pulse_lib/segments/data_classes/data_HVI_variables.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | 3 | 2020-03-31T11:56:23.000Z | 2021-12-06T13:42:50.000Z | """
data class for markers.
"""
from pulse_lib.segments.data_classes.data_generic import parent_data
import copy
| 30.426316 | 153 | 0.60474 |
64b83e5317efd2af4f7c1ca229a67c582a84f39a | 2,066 | py | Python | variant_coverage/collapse_bcs.py | cindyyeh/barseq | 273ff891a8dd4c6a73209a5a7f4be04da3b3e6b5 | [
"MIT"
] | 1 | 2022-03-23T20:09:08.000Z | 2022-03-23T20:09:08.000Z | variant_coverage/collapse_bcs.py | cindyyeh/barseq | 273ff891a8dd4c6a73209a5a7f4be04da3b3e6b5 | [
"MIT"
] | 1 | 2022-03-24T18:03:32.000Z | 2022-03-24T18:03:32.000Z | variant_coverage/collapse_bcs.py | cindyyeh/barseq | 273ff891a8dd4c6a73209a5a7f4be04da3b3e6b5 | [
"MIT"
] | null | null | null | '''
Written by Chiann-Ling Cindy Yeh, updated 11/30/2021
This script groups barcodes by variants and counts how many reads are associated with each variant; works with maps where a barcode is being mapped to more than one gene (e.g., Ste5 and Ste7 on the same amplicon with the barcode)
First argument: path to tab-delim... | 32.793651 | 247 | 0.734753 |
64b8c4d0cf9e1949005c5b1ea8a056e52ed57d58 | 2,504 | py | Python | AutoBonsai/AutoBonsai.py | WolfgangAxel/Random-Projects | 12764d96be3fa162abc5451fdd07db7481200a07 | [
"MIT"
] | 1 | 2017-08-17T19:50:11.000Z | 2017-08-17T19:50:11.000Z | AutoBonsai/AutoBonsai.py | WolfgangAxel/Random-Projects | 12764d96be3fa162abc5451fdd07db7481200a07 | [
"MIT"
] | null | null | null | AutoBonsai/AutoBonsai.py | WolfgangAxel/Random-Projects | 12764d96be3fa162abc5451fdd07db7481200a07 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# AutoBonsai.py
#
# Copyright 2016 keaton <keaton@MissionControl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of t... | 28.454545 | 101 | 0.717652 |
64bb02fc468eb1c3e175fb0282d1289dd4088e79 | 1,504 | py | Python | CameraApp.py | hemameh/License-Plate-Recognition | f182184c19b17522450bc228a4c710290f3da84f | [
"MIT"
] | null | null | null | CameraApp.py | hemameh/License-Plate-Recognition | f182184c19b17522450bc228a4c710290f3da84f | [
"MIT"
] | null | null | null | CameraApp.py | hemameh/License-Plate-Recognition | f182184c19b17522450bc228a4c710290f3da84f | [
"MIT"
] | null | null | null | from imutils.video import WebcamVideoStream
from FaceRecognition import *
from face_recognition import compare_faces
import cv2
SKIP_FRAME_RATIO = 2
images, greys, names = load_faces("knownfaces")
knownfaces = encodeDataset(images, greys)
ID = [1,2,3,4,5,6,7,8,9]
face_locations = []
face_names = []
proces... | 29.490196 | 71 | 0.609043 |
64bd36f6fcd20ce41e9f8fade95cc48e8c9d5d1e | 1,172 | py | Python | tests/test_genericls.py | scsides/usgscsm | 4a69e01015faddd7d0bdeb15097cc02a9cae09be | [
"Unlicense"
] | null | null | null | tests/test_genericls.py | scsides/usgscsm | 4a69e01015faddd7d0bdeb15097cc02a9cae09be | [
"Unlicense"
] | null | null | null | tests/test_genericls.py | scsides/usgscsm | 4a69e01015faddd7d0bdeb15097cc02a9cae09be | [
"Unlicense"
] | null | null | null | import os
import json
import pytest
from cycsm import isd
import cycsm.csm as csm
import usgscam as cam
data_path = os.path.dirname(__file__)
#
# assert x == pytest.approx(ix)
# assert y == pytest.approx(iy)
| 32.555556 | 104 | 0.585324 |
64bddadefa8eae379589362085331c22326167a4 | 9,761 | py | Python | glacierbackup/tests/test_init.py | arkhebuz/GlacierBackup | 9f2ccd51e70d860269ac107dfbbf7c4fed51b7d4 | [
"MIT"
] | null | null | null | glacierbackup/tests/test_init.py | arkhebuz/GlacierBackup | 9f2ccd51e70d860269ac107dfbbf7c4fed51b7d4 | [
"MIT"
] | null | null | null | glacierbackup/tests/test_init.py | arkhebuz/GlacierBackup | 9f2ccd51e70d860269ac107dfbbf7c4fed51b7d4 | [
"MIT"
] | null | null | null | import pytest
import json
import os
import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
from glacierbackup.command import _construct_argparse_parser
from glacierbackup.jobs import BackupJob
from glacierbackup.database import GBDatabase, GBDatabaseError... | 39.358871 | 121 | 0.608647 |
64be755a7b18906a904b88788aa463f48ea5cce4 | 772 | py | Python | exercicios-python/ex039.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | exercicios-python/ex039.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | exercicios-python/ex039.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | from datetime import date
ano = int(input('Ano de nascimento: '))
print('[ 1 ] Masculino [ 2 ] Feminino')
sexo = int(input('Qual o seu sexo: '))
hoje = date.today().year
idade = hoje - ano
if idade < 18 and sexo == 1:
print('Voc tem hoje {} anos e dever se alistar ao servio militar em {} anos, no ano de {}.'.forma... | 55.142857 | 135 | 0.665803 |
64c147ac5042253d20a565d2edd5202d18d6d421 | 484 | py | Python | ignition/utils/tests/test_enum.py | IgnitionProject/ignition | 0eeb3a7878d828bc3c06d2cb2dd781e17776a8a6 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2015-01-25T18:15:48.000Z | 2022-03-09T17:39:12.000Z | ignition/utils/tests/test_enum.py | IgnitionProject/ignition | 0eeb3a7878d828bc3c06d2cb2dd781e17776a8a6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ignition/utils/tests/test_enum.py | IgnitionProject/ignition | 0eeb3a7878d828bc3c06d2cb2dd781e17776a8a6 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-11-14T01:27:23.000Z | 2019-11-14T01:27:23.000Z | from ignition import Enum
| 26.888889 | 68 | 0.617769 |
64c1d3647fe939dffae3a2fb85734866b5491ca0 | 1,331 | py | Python | map1.py | Dimitrios-Tsiaras/portofolio | c56de7e8ccc2f9dca12017b6139bab2b3cc8f41f | [
"MIT"
] | null | null | null | map1.py | Dimitrios-Tsiaras/portofolio | c56de7e8ccc2f9dca12017b6139bab2b3cc8f41f | [
"MIT"
] | null | null | null | map1.py | Dimitrios-Tsiaras/portofolio | c56de7e8ccc2f9dca12017b6139bab2b3cc8f41f | [
"MIT"
] | null | null | null | import pandas
import folium
data = pandas.read_csv("Volcanoes.txt")
lat = list(data['LAT'])
lon = list(data['LON'])
elev = list(data['ELEV'])
name = list(data["NAME"])
html = """
Volcano name:<br>
<a href="https://www.google.com/search?q=%%22%s%%22" target="_blank">%s</a><br>
Height: %s m
"""
map = fo... | 31.690476 | 95 | 0.654395 |
64c21f54cec5604ae2bfe98e4820b018dfebed5a | 2,905 | py | Python | src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/private_endpoint_connection_py3.py | limingu/azure-cli-extensions | 1bc29f089f4da42ab8905e440f2f46d6b5b0aa97 | [
"MIT"
] | 2 | 2021-06-05T17:51:26.000Z | 2021-11-17T11:17:56.000Z | src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/private_endpoint_connection_py3.py | limingu/azure-cli-extensions | 1bc29f089f4da42ab8905e440f2f46d6b5b0aa97 | [
"MIT"
] | 1 | 2020-06-12T01:39:40.000Z | 2020-06-12T01:39:40.000Z | src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/private_endpoint_connection_py3.py | anpaz-msft/azure-cli-extensions | 847fd487fe61e83f2a4163a9393edc9555267bc2 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 45.390625 | 161 | 0.678141 |
64c3a770ec74f61297b7a81dce5e68acdf82a4ee | 576 | py | Python | pdfmajor/interpreter/commands/state/PDFGraphicState/PDFColor.py | asosnovsky/pdfmajor | 7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad | [
"MIT"
] | 23 | 2019-01-13T23:32:24.000Z | 2021-07-08T04:29:15.000Z | pdfmajor/interpreter/commands/state/PDFGraphicState/PDFColor.py | asosnovsky/pdfmajor | 7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad | [
"MIT"
] | 3 | 2019-08-09T18:42:01.000Z | 2019-12-13T15:43:24.000Z | pdfmajor/interpreter/commands/state/PDFGraphicState/PDFColor.py | asosnovsky/pdfmajor | 7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad | [
"MIT"
] | 2 | 2020-01-09T11:18:20.000Z | 2020-03-24T06:02:30.000Z | from typing import Tuple, Optional
from .PDFColorSpace import PDFColorSpace
| 30.315789 | 77 | 0.633681 |
64c3b70bd4a11694d8806b5762ea9c6780b09649 | 1,858 | py | Python | oauth2/serializers.py | tinyms/bopress | 6182c8940ebeb1f7a26c0e1aa62528b9f090b2d9 | [
"Apache-2.0"
] | null | null | null | oauth2/serializers.py | tinyms/bopress | 6182c8940ebeb1f7a26c0e1aa62528b9f090b2d9 | [
"Apache-2.0"
] | null | null | null | oauth2/serializers.py | tinyms/bopress | 6182c8940ebeb1f7a26c0e1aa62528b9f090b2d9 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from oauth2.models import UserInfo, CompanyInfo, CompanyEmployee, AppCommerceLicense, AppGrantAuthorization
| 33.781818 | 114 | 0.717976 |
64c3cb8887f6597d3c4a2e14e75f1a485f354d20 | 12,288 | py | Python | edm_web1/app/task/utils/contexts.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | edm_web1/app/task/utils/contexts.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | edm_web1/app/task/utils/contexts.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
import time
import random
from django.db import connections
from django.db.models import Q
from django.http import Http404
from django_redis import get_redis_connection
from app.core.models import Services, CustomerMailbox, CustomerDomain, CustomerDomainMailboxRel, CustomerTrackDomain
from app... | 42.815331 | 128 | 0.684163 |
64c51cd27d512080218a2d740ce5b99c9116f45a | 1,632 | py | Python | unit_tests/test_objects.py | carlos3dx/hash_code_practice | 6ab27074e2183f511348afcc10827cbefa6891af | [
"MIT"
] | 1 | 2021-02-13T16:02:55.000Z | 2021-02-13T16:02:55.000Z | unit_tests/test_objects.py | carlos3dx/hash_code_practice | 6ab27074e2183f511348afcc10827cbefa6891af | [
"MIT"
] | null | null | null | unit_tests/test_objects.py | carlos3dx/hash_code_practice | 6ab27074e2183f511348afcc10827cbefa6891af | [
"MIT"
] | null | null | null | from components.competition import Competition
from components.pizzeria import Pizzeria
| 30.222222 | 75 | 0.501225 |
64c63c1ab341cb60c3239568cdb0617b55e8a74e | 1,979 | py | Python | restrictive_growth_strings.py | oversj96/PyKabe | 031c11b995b5e226a4aed1fbcb31f876661c4c0a | [
"MIT"
] | 1 | 2020-03-12T14:07:12.000Z | 2020-03-12T14:07:12.000Z | restrictive_growth_strings.py | oversj96/PyKabe | 031c11b995b5e226a4aed1fbcb31f876661c4c0a | [
"MIT"
] | null | null | null | restrictive_growth_strings.py | oversj96/PyKabe | 031c11b995b5e226a4aed1fbcb31f876661c4c0a | [
"MIT"
] | null | null | null | """restrictive_growth_strings.py: Constructs the lexicographic
restrictive growth string representation of all the way to partition a set,
given the length of the set."""
__author__ = "Justin Overstreet"
__copyright__ = "oversj96.github.io"
def set_to_zero(working_set, index):
"""Given a set and an index, set ... | 35.339286 | 84 | 0.649318 |
64c641b81944ce773cccc5c59fdd5fec1026b816 | 22,358 | py | Python | examples/pvmldemo.py | claudio-unipv/pvml | 9f583c2658218003bba2efa70cdbb7499b22d843 | [
"MIT"
] | 3 | 2020-03-30T11:17:17.000Z | 2021-05-15T10:27:30.000Z | examples/pvmldemo.py | claudio-unipv/pvml | 9f583c2658218003bba2efa70cdbb7499b22d843 | [
"MIT"
] | null | null | null | examples/pvmldemo.py | claudio-unipv/pvml | 9f583c2658218003bba2efa70cdbb7499b22d843 | [
"MIT"
] | 2 | 2020-07-15T09:42:42.000Z | 2021-09-14T07:24:50.000Z | #!/usr/bin/env python3
import pvml
import numpy as np
import matplotlib.pyplot as plt
import argparse
from itertools import zip_longest
_NORMALIZATION = {
"none": lambda *X: (X[0] if len(X) == 1 else X),
"meanvar": pvml.meanvar_normalization,
"minmax": pvml.minmax_normalization,
"maxabs": pvml.maxabs... | 33.47006 | 82 | 0.556311 |
64c72358d0521f48443317121d32c2e809620cb3 | 12,125 | py | Python | sucestest.py | hugegene/Area-Under-Load | 007d95e96b0c445793adef1a3fe0988a3da0b444 | [
"MIT"
] | null | null | null | sucestest.py | hugegene/Area-Under-Load | 007d95e96b0c445793adef1a3fe0988a3da0b444 | [
"MIT"
] | null | null | null | sucestest.py | hugegene/Area-Under-Load | 007d95e96b0c445793adef1a3fe0988a3da0b444 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 11 13:46:58 2019
@author: bdgecyt
"""
import cv2
import math
from time import time
import numpy as np
import wrapper
from operator import itemgetter
boxes = []
xCount = 0
yCount = 0
iter = 0
img = 0
# return img
if __name__ ... | 36.854103 | 186 | 0.600742 |
64c8811a09b8f045e85e90b5c5ecbc4676c90930 | 1,148 | py | Python | good_spot/places/migrations/0086_auto_20180813_1225.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | null | null | null | good_spot/places/migrations/0086_auto_20180813_1225.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | 5 | 2020-02-12T03:13:11.000Z | 2022-01-13T01:41:14.000Z | good_spot/places/migrations/0086_auto_20180813_1225.py | jasmine92122/NightClubBackend | 7f59129b78baaba0e0c25de2b493033b858f1b00 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-08-13 12:25
from __future__ import unicode_literals
from django.db import migrations, models
| 31.888889 | 100 | 0.611498 |
64c9216d8fa2a1253a7570d4c6809f00d17bb600 | 4,665 | py | Python | src/pspnet/run.py | jefequien/PSPNet-Keras | bad76c4c397b127c1d82bff31cb8ada39d39a230 | [
"MIT"
] | 4 | 2019-09-29T06:13:17.000Z | 2020-06-06T10:21:49.000Z | src/pspnet/run.py | jefequien/PSPNet-Keras | bad76c4c397b127c1d82bff31cb8ada39d39a230 | [
"MIT"
] | null | null | null | src/pspnet/run.py | jefequien/PSPNet-Keras | bad76c4c397b127c1d82bff31cb8ada39d39a230 | [
"MIT"
] | 1 | 2020-12-22T08:30:25.000Z | 2020-12-22T08:30:25.000Z | import os
from os.path import join, isfile, isdir, dirname, basename
from os import environ, makedirs
import sys
import argparse
import numpy as np
import h5py
from scipy import misc
from keras import backend as K
import tensorflow as tf
from pspnet import PSPNet50
import utils
from utils import image_utils
from util... | 37.926829 | 109 | 0.591854 |
64c991ec20357872015ddf9bd0d5384cff6e68c4 | 2,177 | py | Python | tests/test_fake_dataframe_factory.py | damklis/fakedatafactory | d80c238f14b80b0cc928b0bad9bffdb8e9810b49 | [
"BSD-2-Clause"
] | null | null | null | tests/test_fake_dataframe_factory.py | damklis/fakedatafactory | d80c238f14b80b0cc928b0bad9bffdb8e9810b49 | [
"BSD-2-Clause"
] | null | null | null | tests/test_fake_dataframe_factory.py | damklis/fakedatafactory | d80c238f14b80b0cc928b0bad9bffdb8e9810b49 | [
"BSD-2-Clause"
] | null | null | null | import pytest
import pandas as pd
from pandas.testing import assert_frame_equal
from fakedatafactory.fakerow import fake_rows
from fakedatafactory.fakerow.fake_row_base import FakeRowBase
from fakedatafactory.fake_data_factory import (
FakeDataFactory, _FakeRowParser
)
def test_fakerowparser_parse_name(module)... | 22.677083 | 70 | 0.706017 |
64cc7023daad78ab9f6d1601c3d2b688eb891aad | 2,300 | py | Python | examples/1-1-3-segment_vs_box/plot.py | hyperpower/CarpioPlus | 68cc6c976d6c3ba6adec847a94c344be3f4690aa | [
"MIT"
] | null | null | null | examples/1-1-3-segment_vs_box/plot.py | hyperpower/CarpioPlus | 68cc6c976d6c3ba6adec847a94c344be3f4690aa | [
"MIT"
] | 1 | 2018-06-18T03:52:56.000Z | 2018-06-18T03:52:56.000Z | examples/1-1-3-segment_vs_box/plot.py | hyperpower/CarpioPlus | 68cc6c976d6c3ba6adec847a94c344be3f4690aa | [
"MIT"
] | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import os, sys
import numpy as np
import string
import math
import operator
import multiprocessing
from multiprocessing import Pool
matplotlib.rcParams['text.usetex'] = True
matplotlib.rcParams['font.family'] = 'serif'
matplotlib.rcParams['font.size'] ... | 27.710843 | 93 | 0.55087 |
64cd64bfd6bfba4b56677bdef2a44e0de4c57683 | 3,020 | py | Python | module_pytorch/OWN.py | xy1999729/OthogonalWN | 534623cfd093a93f5dafdff9cc9de4a208f0710c | [
"BSD-2-Clause"
] | 47 | 2017-09-21T09:12:45.000Z | 2022-03-30T10:07:17.000Z | module_pytorch/OWN.py | xy1999729/OthogonalWN | 534623cfd093a93f5dafdff9cc9de4a208f0710c | [
"BSD-2-Clause"
] | 4 | 2018-05-29T04:45:04.000Z | 2021-07-27T13:44:18.000Z | module_pytorch/OWN.py | xy1999729/OthogonalWN | 534623cfd093a93f5dafdff9cc9de4a208f0710c | [
"BSD-2-Clause"
] | 13 | 2017-12-06T07:38:20.000Z | 2022-01-02T00:31:16.000Z | """
Orthogonal Weight Normalization: Solution to Optimization over Multiple Dependent Stiefel Manifolds in Deep Neural Networks
AAAI 2018
Authors: Lei Huang
"""
import torch.nn
import torch.nn.functional as F
from torch.nn import Parameter
from torch.autograd import Variable
from typing import List
from torch.autograd... | 33.932584 | 123 | 0.638079 |
64cdcaff8bfef6cb8ac2031be3de787a65f14e15 | 1,781 | py | Python | src/visions/lib/relations/string_to_datetime.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | src/visions/lib/relations/string_to_datetime.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | src/visions/lib/relations/string_to_datetime.py | sweersr/visions | 1af04235cb77bec52e4923627dfbf968ed1a584d | [
"BSD-4-Clause"
] | null | null | null | import pandas as pd
from visions import visions_string, visions_datetime
from visions.core.model import TypeRelation
from visions.core.model.relations import InferenceRelation
from visions.utils.coercion import test_utils
def to_datetime_year_week(series):
"""Convert a series of the format YYYY/UU (year, week) t... | 26.58209 | 79 | 0.665357 |
64cf76b2d8601ee102da83689b123357da9bdff9 | 2,237 | py | Python | thirdparty/ffmpeg/tools/python/convert.py | yashrajsingh1998/ApraPipes1 | ec93095613f4345d6044c7012f2d8c3b99f65f03 | [
"MIT"
] | 30 | 2022-03-10T16:34:13.000Z | 2022-03-29T09:32:35.000Z | thirdparty/ffmpeg/tools/python/convert.py | yashrajsingh1998/ApraPipes1 | ec93095613f4345d6044c7012f2d8c3b99f65f03 | [
"MIT"
] | 2 | 2021-07-24T19:31:37.000Z | 2022-02-14T05:25:19.000Z | thirdparty/ffmpeg/tools/python/convert.py | yashrajsingh1998/ApraPipes1 | ec93095613f4345d6044c7012f2d8c3b99f65f03 | [
"MIT"
] | 6 | 2021-09-24T04:58:43.000Z | 2022-03-10T10:02:27.000Z | # Copyright (c) 2019 Guo Yejun
#
# This file is part of FFmpeg.
#
# FFmpeg is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
#... | 39.245614 | 116 | 0.685293 |
64cfaf05b6963c5ebf29624e1caab4a4a9f80d75 | 839 | py | Python | custom/icds/rules/util.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | custom/icds/rules/util.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | custom/icds/rules/util.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | from __future__ import absolute_import
from __future__ import unicode_literals
import pytz
import re
import six
from corehq.util.python_compatibility import soft_assert_type_text
from corehq.util.timezones.conversions import ServerTime
from datetime import datetime, date
| 27.064516 | 85 | 0.722288 |
64d3d2d5c2079d93b8675451c183f60e97e4020f | 4,670 | py | Python | applications/popart/resnext_inference/resnext_inference_launch.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/popart/resnext_inference/resnext_inference_launch.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | applications/popart/resnext_inference/resnext_inference_launch.py | Splendon/examples | ed4a8a01857b6ddca49559141acf5d0986eb01e1 | [
"MIT"
] | null | null | null | # Copyright 2019 Graphcore Ltd.
import time
from datetime import datetime
import os
from absl import app, flags
import subprocess
import re
import statistics
"""
This program launches subprocesses to handle data loading and resnext101 inference.
It can also be used to perform inference on other ONNX CNNs that take Im... | 40.258621 | 172 | 0.64561 |
64d790a54760f91efa2b838551ebcdc4ea2e8758 | 72 | py | Python | src/main.py | EfficientElevator/Simulation | fdbb479aa907c26999715e132aff0a40d9bdf892 | [
"MIT"
] | 1 | 2020-01-30T16:29:51.000Z | 2020-01-30T16:29:51.000Z | src/main.py | EfficientElevator/Simulation | fdbb479aa907c26999715e132aff0a40d9bdf892 | [
"MIT"
] | 17 | 2020-01-14T16:48:53.000Z | 2020-04-20T17:58:44.000Z | src/main.py | EfficientElevator28/Simulation | fdbb479aa907c26999715e132aff0a40d9bdf892 | [
"MIT"
] | null | null | null | """
Author: Sean Toll
Test simulation functionality
"""
print("Test")
| 9 | 29 | 0.694444 |
64d7a8053972b4804e4b495adaa95ceebb6347ae | 350 | py | Python | tests/preprocessing/test_preprocessing_check.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | null | null | null | tests/preprocessing/test_preprocessing_check.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | 123 | 2020-10-12T11:06:27.000Z | 2021-04-28T15:32:29.000Z | tests/preprocessing/test_preprocessing_check.py | lshtm-gis/WHO_PHSM_Cleaning | 5892673922fc555fb86d6e0be548b48c7dc66814 | [
"MIT"
] | null | null | null | import pytest
import pandas as pd
from src.preprocess import check
| 23.333333 | 70 | 0.662857 |
64d8895cf78d6da53f81000994752388d727b1b9 | 5,312 | py | Python | Lib/site-packages/proboscis/sorting.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 25 | 2015-03-03T08:36:12.000Z | 2021-02-10T16:52:17.000Z | Lib/site-packages/proboscis/sorting.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 6 | 2015-01-09T16:54:32.000Z | 2018-08-30T15:18:53.000Z | Lib/site-packages/proboscis/sorting.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 14 | 2015-02-10T16:00:09.000Z | 2020-04-26T14:11:24.000Z | # Copyright (c) 2011 Rackspace
# 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... | 37.942857 | 78 | 0.645331 |
64da1b100ea51354dfbc6cebf59ad3bf8b64417b | 565 | py | Python | backoffice/migrations/0019_auto_20211010_1210.py | Psemp/artsetforme_public | 240bb8ef22c0589f168b24c0ee5ed8e9030fe94a | [
"MIT"
] | null | null | null | backoffice/migrations/0019_auto_20211010_1210.py | Psemp/artsetforme_public | 240bb8ef22c0589f168b24c0ee5ed8e9030fe94a | [
"MIT"
] | 1 | 2021-10-08T22:20:09.000Z | 2021-10-08T22:20:09.000Z | backoffice/migrations/0019_auto_20211010_1210.py | Psemp/artsetforme_public | 240bb8ef22c0589f168b24c0ee5ed8e9030fe94a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-10 10:10
from django.db import migrations
| 21.730769 | 50 | 0.564602 |
64da549fe78588f6bf34e8fda4bcb42b15aa1631 | 4,874 | py | Python | official/cv/yolov3_darknet53/eval.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | official/cv/yolov3_darknet53/eval.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | official/cv/yolov3_darknet53/eval.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2020-2022 Huawei Technologies Co., Ltd
#
# 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 agre... | 38.078125 | 110 | 0.693886 |
64db5e195c76fd45e4c6390d88a97be172fa087d | 901 | py | Python | ims/upload/browser/factories.py | imsweb/ims.upload | b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0 | [
"MIT"
] | null | null | null | ims/upload/browser/factories.py | imsweb/ims.upload | b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0 | [
"MIT"
] | null | null | null | ims/upload/browser/factories.py | imsweb/ims.upload | b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0 | [
"MIT"
] | null | null | null | import plone.api
from plone.app.content.browser.folderfactories import FolderFactoriesView
| 39.173913 | 85 | 0.612653 |
64db9da9deb9de8fdc1b27e59b80498e4bf37e2d | 1,446 | py | Python | literal/apps/order/tests/test_validators.py | spanickroon/Text-From-Photo-Django-API | e1ef79c90a443cc3e606dec9e1c531aa5943ca59 | [
"MIT"
] | null | null | null | literal/apps/order/tests/test_validators.py | spanickroon/Text-From-Photo-Django-API | e1ef79c90a443cc3e606dec9e1c531aa5943ca59 | [
"MIT"
] | null | null | null | literal/apps/order/tests/test_validators.py | spanickroon/Text-From-Photo-Django-API | e1ef79c90a443cc3e606dec9e1c531aa5943ca59 | [
"MIT"
] | 1 | 2021-06-08T18:06:21.000Z | 2021-06-08T18:06:21.000Z | from unittest import mock
from django.test import TestCase
from parameterized import param, parameterized
from rest_framework import validators
from apps.order.constants import (
EXTENSION_ERROR_MESSAGE,
MAX_IMAGE_SIZE,
MAX_IMAGE_SIZE_ERROR_MESSAGE,
)
from apps.order.validators import FileValidator
| 27.283019 | 76 | 0.618949 |
64dbc268e94b0e86f76dd10af1901fafdc87b38b | 2,000 | py | Python | gocardless_pro/services/billing_request_flows_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 30 | 2015-07-08T21:10:10.000Z | 2022-02-17T10:08:55.000Z | gocardless_pro/services/billing_request_flows_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 21 | 2015-12-14T02:24:52.000Z | 2022-02-05T15:56:00.000Z | gocardless_pro/services/billing_request_flows_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 19 | 2016-02-10T15:57:42.000Z | 2022-02-05T10:21:05.000Z | # WARNING: Do not edit by hand, this file was generated by Crank:
#
# https://github.com/gocardless/crank
#
from . import base_service
from .. import resources
from ..paginator import Paginator
from .. import errors
| 30.30303 | 92 | 0.618 |
64de2e1c5f7f8c520e37623f47bbfb1a25b6e79b | 1,915 | py | Python | src/pathrev/cli.py | pathwayforte/reproducibility-survey | dd1059a14270414240d7dace4c6446e52321c0cf | [
"Apache-2.0"
] | 1 | 2019-07-29T14:54:26.000Z | 2019-07-29T14:54:26.000Z | src/pathrev/cli.py | pathwayforte/reproducibility-survey | dd1059a14270414240d7dace4c6446e52321c0cf | [
"Apache-2.0"
] | 4 | 2019-07-04T11:39:34.000Z | 2019-09-28T06:31:38.000Z | src/pathrev/cli.py | pathwayforte/reproducibility-survey | dd1059a14270414240d7dace4c6446e52321c0cf | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Command line interface."""
import logging
import click
from pathrev.pipeline import (
do_gsea, do_preranked,
)
logger = logging.getLogger(__name__)
matrix_option = click.option(
'-m', '--matrix',
help="path to matrix",
type=click.Path(file_okay=True, dir_okay=False, exist... | 25.533333 | 103 | 0.662141 |
64de3949ccd17a2f6665718ed1ecbe21a3a14929 | 5,842 | py | Python | parsl/monitoring/monitoring_base.py | benclifford/parsl | 21f8681882779050d2e074591e95ada43789748f | [
"Apache-2.0"
] | null | null | null | parsl/monitoring/monitoring_base.py | benclifford/parsl | 21f8681882779050d2e074591e95ada43789748f | [
"Apache-2.0"
] | null | null | null | parsl/monitoring/monitoring_base.py | benclifford/parsl | 21f8681882779050d2e074591e95ada43789748f | [
"Apache-2.0"
] | null | null | null | import logging
from parsl.monitoring.handler import DatabaseHandler
from parsl.monitoring.handler import RemoteHandler
from parsl.utils import RepresentationMixin
def get_parsl_logger(
logger_name='parsl_monitor_logger',
is_logging_server=False,
monitoring_co... | 32.455556 | 143 | 0.613317 |
64de72b84736cad3940b04d3b19539c316ab87ad | 591 | py | Python | music/class_/time/atom.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/time/atom.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/class_/time/atom.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*Atom*
Smallest controllable unit of space.
"""
from dataclasses import dataclass
from typing import Sequence
from ._space import Space
from .quark import Quark
__all__ = ["Atom"]
| 14.414634 | 50 | 0.568528 |
64deb8cf784d9d6dcf55594be2839d484d08aa59 | 1,599 | py | Python | Main/bakend.py | avinsit123/Precog_Intern_Assignment | 07024fff780eea861998ec781d6e75c47effaa80 | [
"MIT"
] | null | null | null | Main/bakend.py | avinsit123/Precog_Intern_Assignment | 07024fff780eea861998ec781d6e75c47effaa80 | [
"MIT"
] | null | null | null | Main/bakend.py | avinsit123/Precog_Intern_Assignment | 07024fff780eea861998ec781d6e75c47effaa80 | [
"MIT"
] | null | null | null | from flask import Flask,request,render_template
import numpy as np
from Reccomending_functions import item_item_cf,user_user_cf,rank_matrix_factorize
from Database_connector import fetch_from_database
import random
#ML Packages
asd = []
app = Flask(__name__)
if __name__ == '__main__':
app.run(debug=True, host='0.... | 35.533333 | 86 | 0.729206 |
b37955d5f66a497d8fb24f9f904d68db40a6f837 | 37,903 | py | Python | wcpan/telegram/api.py | legnaleurc/wcpan.telegram | b6b0d827c72673777a7e18a1879eb43c6e35f665 | [
"MIT"
] | 7 | 2016-10-22T05:38:37.000Z | 2021-04-29T09:54:59.000Z | wcpan/telegram/api.py | legnaleurc/wcpan.telegram | b6b0d827c72673777a7e18a1879eb43c6e35f665 | [
"MIT"
] | 7 | 2017-04-23T19:50:53.000Z | 2018-12-05T02:16:41.000Z | wcpan/telegram/api.py | legnaleurc/wcpan.telegram | b6b0d827c72673777a7e18a1879eb43c6e35f665 | [
"MIT"
] | 7 | 2016-11-09T14:44:49.000Z | 2019-08-05T12:42:19.000Z | import json
from typing import List, Awaitable, Union
from tornado import httpclient as thc, web as tw, httputil as thu
from . import types, util
_API_TEMPLATE = 'https://api.telegram.org/bot{api_token}/{api_method}'
ReplyMarkup = Union[
types.InlineKeyboardMarkup,
types.ReplyKeyboardMarkup,
types.Rep... | 37.379684 | 106 | 0.552779 |
b37b44efa43ac0b0a452bc4955eec6b97cf0f90c | 6,151 | py | Python | pyapns_client/exceptions.py | rissicay/pyapns_client | 3e8bc035c3319e8ba0a7d84db7ba6c7f10628ea4 | [
"MIT"
] | 17 | 2019-04-03T23:13:08.000Z | 2022-03-25T03:24:38.000Z | pyapns_client/exceptions.py | rissicay/pyapns_client | 3e8bc035c3319e8ba0a7d84db7ba6c7f10628ea4 | [
"MIT"
] | 7 | 2021-02-28T19:13:38.000Z | 2022-01-26T19:21:43.000Z | pyapns_client/exceptions.py | rissicay/pyapns_client | 3e8bc035c3319e8ba0a7d84db7ba6c7f10628ea4 | [
"MIT"
] | 4 | 2021-02-23T02:07:46.000Z | 2022-03-29T15:11:31.000Z | import pytz
from datetime import datetime
# BASE
# CONNECTION
# APNS REASONS
| 20.101307 | 191 | 0.691595 |
b37b80ca95b3bea2079a71c9c9e266ed64bede4c | 2,223 | py | Python | vor/backends/name/census_1990.py | ryankanno/vor | f4a2a61118a1000bbeaa921cd248657ac3643f90 | [
"MIT"
] | null | null | null | vor/backends/name/census_1990.py | ryankanno/vor | f4a2a61118a1000bbeaa921cd248657ac3643f90 | [
"MIT"
] | null | null | null | vor/backends/name/census_1990.py | ryankanno/vor | f4a2a61118a1000bbeaa921cd248657ac3643f90 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .base import NameProvider
from .base import PROVIDERS
from vor.human import Gender
from py_utilities.decorators import run_once
import os
import random
# vim: filetype=python
| 32.691176 | 78 | 0.623932 |
b37b8a1795a3e0841f69cbb9cac07ad783e0862d | 1,701 | py | Python | lib/source.py | imamol/license_automation | 845aa213a23afa05f70a2d3d25284626a2f07b5e | [
"Adobe-Glyph"
] | null | null | null | lib/source.py | imamol/license_automation | 845aa213a23afa05f70a2d3d25284626a2f07b5e | [
"Adobe-Glyph"
] | null | null | null | lib/source.py | imamol/license_automation | 845aa213a23afa05f70a2d3d25284626a2f07b5e | [
"Adobe-Glyph"
] | null | null | null | import requests
from bs4 import BeautifulSoup
| 32.09434 | 79 | 0.471487 |
b37c632709a6f52e9270bc4114337fa833a78ab7 | 232 | py | Python | Uche Clare/Phase 1/Python Basic 2/Day 17/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Uche Clare/Phase 1/Python Basic 2/Day 17/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Uche Clare/Phase 1/Python Basic 2/Day 17/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | #Write a Python program to create all possible strings by using 'a', 'e', 'i', 'o', 'u'. Use the characters exactly once.
import random
vowels = ['a', 'e', 'i', 'o', 'u']
random.shuffle(vowels)
char = "".join(vowels)
print(char)
| 23.2 | 121 | 0.642241 |
b37c7961a918b47e8c39d8b6b6cd69f43d49c54f | 287 | py | Python | pdf_generator/views.py | ianvieira/django-pdf-generator | 65b89e0cbf9aee890336e9eb86785ce3171f82a3 | [
"MIT"
] | null | null | null | pdf_generator/views.py | ianvieira/django-pdf-generator | 65b89e0cbf9aee890336e9eb86785ce3171f82a3 | [
"MIT"
] | null | null | null | pdf_generator/views.py | ianvieira/django-pdf-generator | 65b89e0cbf9aee890336e9eb86785ce3171f82a3 | [
"MIT"
] | 2 | 2019-12-08T09:24:31.000Z | 2020-09-01T12:49:42.000Z | import os
from django.shortcuts import render
from .settings import pdf_settings
| 28.7 | 62 | 0.780488 |
b37dc2263269bc3ed0d80ad7589428053b74a855 | 18,942 | py | Python | netw_preprocess.py | lynx-delta/adapted_u-net_dense_crfs | 215ea62b64757e55ab54bce2da2db323f836d892 | [
"MIT"
] | null | null | null | netw_preprocess.py | lynx-delta/adapted_u-net_dense_crfs | 215ea62b64757e55ab54bce2da2db323f836d892 | [
"MIT"
] | null | null | null | netw_preprocess.py | lynx-delta/adapted_u-net_dense_crfs | 215ea62b64757e55ab54bce2da2db323f836d892 | [
"MIT"
] | 2 | 2020-09-03T04:19:03.000Z | 2020-12-16T09:18:25.000Z |
from os import listdir, makedirs
from os.path import isfile, isdir, join
import random
import warnings
warnings.filterwarnings("ignore")
import numpy as np
from skimage import io
from skimage import transform as trf
def predict_convert(main_path, folder_name, normalization='max',
... | 47.833333 | 84 | 0.53025 |
b37e55272ef98aa2ee817e1085b7b26d1e87865a | 197 | py | Python | FusionIIIT/applications/academic_procedures/urls.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | null | null | null | FusionIIIT/applications/academic_procedures/urls.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | 6 | 2020-02-12T00:40:35.000Z | 2022-03-11T23:19:42.000Z | FusionIIIT/applications/academic_procedures/urls.py | paras11agarwal/FusionIIIT | 8332811dcec475176c15e6a3a00e5bdd9074fa49 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'addCourse/', views.add_course, name='addCourse'),
url(r'^dropCourse/', views.drop_course, name='dropCourse'),
]
| 21.888889 | 63 | 0.700508 |
b38293c6c3550a45c1beb78e6252cdaf75198804 | 2,226 | py | Python | playground/distributions/tanh_gaussian.py | brandontrabucco/playground | 069be961aaecb45d75f12f4a71cfa65d7152ea8a | [
"MIT"
] | 3 | 2019-12-06T19:22:22.000Z | 2020-01-20T01:57:26.000Z | playground/distributions/tanh_gaussian.py | brandontrabucco/playground | 069be961aaecb45d75f12f4a71cfa65d7152ea8a | [
"MIT"
] | null | null | null | playground/distributions/tanh_gaussian.py | brandontrabucco/playground | 069be961aaecb45d75f12f4a71cfa65d7152ea8a | [
"MIT"
] | null | null | null | """Author: Brandon Trabucco, Copyright 2019, MIT License"""
from playground.distributions.gaussian import Gaussian
import tensorflow as tf
import math
| 30.493151 | 76 | 0.603324 |
b382e7cca2b06372222238d82ac27e4fe771b94d | 52,650 | py | Python | tests/test_aiotapioca.py | ilindrey/aiotapioca-wrapper | 9fc84b8b5c7e11df3ee9a3c8aa6615bc94948524 | [
"MIT"
] | null | null | null | tests/test_aiotapioca.py | ilindrey/aiotapioca-wrapper | 9fc84b8b5c7e11df3ee9a3c8aa6615bc94948524 | [
"MIT"
] | null | null | null | tests/test_aiotapioca.py | ilindrey/aiotapioca-wrapper | 9fc84b8b5c7e11df3ee9a3c8aa6615bc94948524 | [
"MIT"
] | null | null | null | import pickle
from collections import OrderedDict
from itertools import product
import orjson
import pytest
import pytest_asyncio
import xmltodict
from aiohttp.client_reqrep import ClientResponse
from pydantic import BaseModel
from yarl import URL
from aiotapioca.adapters import TapiocaAdapter, generate_wrapper_from_... | 30.363322 | 105 | 0.586667 |
b383570d14d763cb45ddf1b73edff1f299247c91 | 1,331 | py | Python | sandal.py | ImaduddinAMajid/webshop-scraper | e8d153153a49f1b5f482ae1e483687238c786aab | [
"MIT"
] | null | null | null | sandal.py | ImaduddinAMajid/webshop-scraper | e8d153153a49f1b5f482ae1e483687238c786aab | [
"MIT"
] | 1 | 2022-03-02T14:58:57.000Z | 2022-03-02T14:58:57.000Z | sandal.py | imaduddinamajid/webshop-scraper | e8d153153a49f1b5f482ae1e483687238c786aab | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import scrapy
| 34.128205 | 107 | 0.574756 |
b383c1f2704d2ae2a9e5fdb01fe6f31ca5410042 | 374 | py | Python | app/services/mail/events.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/mail/events.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/mail/events.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | import logging
from fastapi import FastAPI
from fastapi_mail import ConnectionConfig as MailConnectionSettings
from .state import MailState
__all__ = ['init_mail']
logger = logging.getLogger(__name__)
| 20.777778 | 70 | 0.772727 |
b3858ba61fb7c623b550e2ed98ab06225b6691e0 | 689 | py | Python | csv2json.py | gaguevaras/lideresviz | f51e7a4e71579b9788372258677b74f7298e0054 | [
"MIT"
] | null | null | null | csv2json.py | gaguevaras/lideresviz | f51e7a4e71579b9788372258677b74f7298e0054 | [
"MIT"
] | null | null | null | csv2json.py | gaguevaras/lideresviz | f51e7a4e71579b9788372258677b74f7298e0054 | [
"MIT"
] | null | null | null | import csv
import json
# Open the CSV
f = open( 'events.csv', 'rU' )
# Change each fieldname to the appropriate field name. I know, so difficult.
reader = csv.DictReader( f, fieldnames = ("id","Nombre","datasketch","pacifista","ojoalapaz","indepaz","ONU","Defensoria","Unidad de Victimas","Somos Defensores"... | 45.933333 | 343 | 0.674891 |
b3859f2b30854f47917ba9cb42b44404ed3ba402 | 8,035 | py | Python | installation/templates/configuration/auth.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 216 | 2015-01-05T12:48:10.000Z | 2022-03-08T00:12:23.000Z | installation/templates/configuration/auth.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 55 | 2015-02-28T12:10:26.000Z | 2020-11-18T17:45:16.000Z | installation/templates/configuration/auth.py | piwaniuk/critic | 28ed20bb8032d7cc5aa23de98da51e619fd84164 | [
"Apache-2.0"
] | 34 | 2015-05-02T15:15:10.000Z | 2020-06-15T19:20:37.000Z | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2013 Jens Lindstrm, Opera Software ASA
#
# 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
... | 41.205128 | 99 | 0.667953 |
b385fd76815079de8928aba898ca084d02c692a5 | 4,024 | py | Python | reports/migrations/0001_initial.py | medfiras/Bazinga | 2f77b70a3fe627410ddf0a5be0f074de5e0dccdd | [
"Apache-2.0"
] | null | null | null | reports/migrations/0001_initial.py | medfiras/Bazinga | 2f77b70a3fe627410ddf0a5be0f074de5e0dccdd | [
"Apache-2.0"
] | 1 | 2015-05-31T10:42:36.000Z | 2015-11-03T17:52:06.000Z | reports/migrations/0001_initial.py | medfiras/Bazinga | 2f77b70a3fe627410ddf0a5be0f074de5e0dccdd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
from django.conf import settings
| 45.727273 | 168 | 0.560636 |
b38646db57ad70e650771a76187c2e5cd7c63f38 | 3,278 | py | Python | Utils/Classes/osuuser.py | HeapUnderfl0w/Phaazebot | 54e637bd4bc213b8efdaf23d5f331f2569e96843 | [
"MIT"
] | null | null | null | Utils/Classes/osuuser.py | HeapUnderfl0w/Phaazebot | 54e637bd4bc213b8efdaf23d5f331f2569e96843 | [
"MIT"
] | null | null | null | Utils/Classes/osuuser.py | HeapUnderfl0w/Phaazebot | 54e637bd4bc213b8efdaf23d5f331f2569e96843 | [
"MIT"
] | null | null | null | import datetime
from Utils.Classes.undefined import UNDEFINED
from Utils.Classes.apiclass import APIClass
| 38.564706 | 115 | 0.719341 |
b386e11c2fec38fedadad6827bce0761aa62162c | 2,613 | py | Python | Lib/site-packages/fair_identifiers_client/helpers.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | null | null | null | Lib/site-packages/fair_identifiers_client/helpers.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/fair_identifiers_client/helpers.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 1 | 2020-03-12T20:48:04.000Z | 2020-03-12T20:48:04.000Z | import json
# Pattern (and code) taken from:
# https://gist.github.com/mivade/384c2c41c3a29c637cb6c603d4197f9f
FILE_SPECIFIER = 'file://'
def argument(*name_or_flags, **kwargs):
"""Convenience function to properly format arguments to pass to the
subcommand decorator.
"""
args = list()
for arg in n... | 27.505263 | 78 | 0.629162 |
b387c4f1ebc295636e6bf20a9ec8555d73ca50a5 | 914 | py | Python | Python/GenericStructures/Stack.py | adeeconometrics/Algorithms | ee8e994ed91193a405ccd037d2f054dc67828dc6 | [
"MIT"
] | null | null | null | Python/GenericStructures/Stack.py | adeeconometrics/Algorithms | ee8e994ed91193a405ccd037d2f054dc67828dc6 | [
"MIT"
] | null | null | null | Python/GenericStructures/Stack.py | adeeconometrics/Algorithms | ee8e994ed91193a405ccd037d2f054dc67828dc6 | [
"MIT"
] | null | null | null | from typing import TypeVar, Generic
T = TypeVar("T")
if __name__ == "__main__":
s = Stack()
for i in range(0, 9):
s.push(i)
s.pop()
s.display()
| 19.869565 | 48 | 0.493435 |
b3880d96be8593094b3b17d77e39b7880c82ec2e | 634 | py | Python | content/ft_para_todos/load_content.py | mobilizaFT/mobiliza-ft-site | 5700459f7f35c30cf8000e1fc5464e9b2b9e4503 | [
"MIT"
] | 1 | 2021-05-02T17:16:14.000Z | 2021-05-02T17:16:14.000Z | content/ft_para_todos/load_content.py | mobilizaFT/mobiliza-ft-site | 5700459f7f35c30cf8000e1fc5464e9b2b9e4503 | [
"MIT"
] | 11 | 2020-04-08T03:00:06.000Z | 2021-03-31T19:51:35.000Z | content/ft_para_todos/load_content.py | mobilizaFT/mobiliza-ft-site | 5700459f7f35c30cf8000e1fc5464e9b2b9e4503 | [
"MIT"
] | 1 | 2020-04-06T10:58:11.000Z | 2020-04-06T10:58:11.000Z | from markdown2 import markdown
from lxml import html
import os | 33.368421 | 67 | 0.613565 |
b388d8673e156c073bc0e747b23586e086fb3fd0 | 2,906 | py | Python | sorteio.py | laurocjs/criptomigo | 871bcd051376f5ffe7fe64cae80401da69ae171f | [
"MIT"
] | null | null | null | sorteio.py | laurocjs/criptomigo | 871bcd051376f5ffe7fe64cae80401da69ae171f | [
"MIT"
] | null | null | null | sorteio.py | laurocjs/criptomigo | 871bcd051376f5ffe7fe64cae80401da69ae171f | [
"MIT"
] | null | null | null | # coding= utf-8
import random
from Crypto.PublicKey import RSA
# Funo para sortear os pares
# Funo para criptografar o dict
# Incio do programa:
# Crie a sua lista de participantes da maneira preferida
# A forma mais bsica :
listaDeParticipantes = [] # Uma lista de participantes
# Porm ler de um arquivo ou diretrio... | 44.030303 | 117 | 0.712319 |
b38ea18fde8a979df788072d40b24291c6dbc34a | 1,632 | py | Python | src/ds_algs/list_binary_tree.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/list_binary_tree.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/list_binary_tree.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | def binary_tree(r):
"""
:param r: This is root node
:return: returns tree
"""
return [r, [], []]
def insert_left(root, new_branch):
"""
:param root: current root of the tree
:param new_branch: new branch for a tree
:return: updated root of the tree
"""
t = root.pop(1)
i... | 19.2 | 51 | 0.583333 |
b38fe55eecc2cb179f46a5d77a08782440d72905 | 1,396 | py | Python | research/recommend/DIEN/src/utils.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/recommend/DIEN/src/utils.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/recommend/DIEN/src/utils.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2022 Huawei Technologies Co., Ltd
#
# 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... | 26.339623 | 78 | 0.547278 |
b390b46232762e8aa8342658d28e1d8f4b83336f | 446 | py | Python | tests/network_speedtest.py | cloud-mon/server-test | 1175ec5426eed6455600ef45a5217e5145e6d203 | [
"MIT"
] | null | null | null | tests/network_speedtest.py | cloud-mon/server-test | 1175ec5426eed6455600ef45a5217e5145e6d203 | [
"MIT"
] | 1 | 2020-07-02T06:42:26.000Z | 2020-07-02T06:42:26.000Z | tests/network_speedtest.py | cloud-mon/server-test | 1175ec5426eed6455600ef45a5217e5145e6d203 | [
"MIT"
] | null | null | null | import speedtest
| 22.3 | 58 | 0.609865 |
b391e1dcf55a8792f4b2a7b65eefb9b385e989a1 | 1,552 | py | Python | ferris/controllers/oauth.py | palladius/gae-ferris-ricc | e6d9d8d4aadeae10eb258b94b6fe5912c8630b36 | [
"MIT"
] | 2 | 2015-03-04T07:05:57.000Z | 2015-03-04T07:06:00.000Z | ferris/controllers/oauth.py | palladius/gae-ferris-ricc | e6d9d8d4aadeae10eb258b94b6fe5912c8630b36 | [
"MIT"
] | null | null | null | ferris/controllers/oauth.py | palladius/gae-ferris-ricc | e6d9d8d4aadeae10eb258b94b6fe5912c8630b36 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from google.appengine.ext import ndb
from ferris.core.controller import Controller, route, route_with
from oauth2client.client import OAuth2WebServerFlow
from ferris.core.oauth2.user_credentials import UserCredentials as OAuth2UserCredentials
from ferris.core import settings
| 29.846154 | 88 | 0.666881 |
b39336da5d14f41b5e11922d81cebc45de1a648c | 588 | py | Python | data_scripts/weeds.py | bayerhealth/bayerhealth | c860dc105494bab3a00798322476c3ab034cceb9 | [
"MIT"
] | null | null | null | data_scripts/weeds.py | bayerhealth/bayerhealth | c860dc105494bab3a00798322476c3ab034cceb9 | [
"MIT"
] | null | null | null | data_scripts/weeds.py | bayerhealth/bayerhealth | c860dc105494bab3a00798322476c3ab034cceb9 | [
"MIT"
] | 1 | 2021-11-24T12:45:03.000Z | 2021-11-24T12:45:03.000Z |
import os
import pandas as pd
import shutil
os.chdir("../Downloads/DeepWeeds_Images_256")
try:
os.mkdir("train")
os.mkdir("val")
except:
pass
train = pd.read_csv("../train_set_labels.csv")
val = pd.read_csv("../test_set_labels.csv")
print(train)
for j,i in train.iterrows():
try:
os.mkdir("tr... | 21 | 60 | 0.622449 |
b393bdceee5141732cb897079744e23870c97773 | 491 | py | Python | auctionbot/users/migrations/0006_auto_20180218_1311.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | null | null | null | auctionbot/users/migrations/0006_auto_20180218_1311.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | 13 | 2019-12-12T03:07:55.000Z | 2022-03-07T12:59:27.000Z | auctionbot/users/migrations/0006_auto_20180218_1311.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-18 06:11
from __future__ import unicode_literals
from django.db import migrations, models
| 23.380952 | 95 | 0.631365 |
b393bdd519461bf7d2b02ee148f39cad73098a46 | 2,295 | py | Python | search_engines/http_client.py | soxoj/async-search-scraper | 322733e77c3c40bc24b16a30dfe36a21fc9f32b9 | [
"MIT"
] | 5 | 2022-01-10T15:23:40.000Z | 2022-02-25T15:11:24.000Z | search_engines/http_client.py | soxoj/Search-Engines-Scraper | 322733e77c3c40bc24b16a30dfe36a21fc9f32b9 | [
"MIT"
] | null | null | null | search_engines/http_client.py | soxoj/Search-Engines-Scraper | 322733e77c3c40bc24b16a30dfe36a21fc9f32b9 | [
"MIT"
] | 2 | 2022-02-08T23:27:39.000Z | 2022-02-25T16:23:59.000Z | import aiohttp
from collections import namedtuple
from aiohttp_socks import ProxyConnector
from .config import TIMEOUT, PROXY, USER_AGENT
from . import utils as utl
def _set_proxy(self, proxy):
'''Returns HTTP or SOCKS proxies dictionary.'''
if proxy:
if not utl.is_ur... | 34.772727 | 103 | 0.588671 |
b396c971b024674d61bcb82714f34a20eb7078c7 | 2,176 | py | Python | Python Advanced/Advanced/Multidimensional Lists/Exercise - 2/Task07.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | 1 | 2022-03-16T10:23:04.000Z | 2022-03-16T10:23:04.000Z | Python Advanced/Advanced/Multidimensional Lists/Exercise - 2/Task07.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | Python Advanced/Advanced/Multidimensional Lists/Exercise - 2/Task07.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null |
count_presents = int(input())
n = int(input())
matrix = []
nice_kids_count = 0
given_to_nice = 0
for _ in range(n):
data = input().split()
matrix.append(data)
nice_kids_count += data.count("V")
santa_row = int
santa_col = int
for row in range(n):
for col in range(n):
if matrix[row][col] ==... | 26.536585 | 75 | 0.56204 |
b3972e6ffb6c4aa24b8e72c30d0d7fe2844a3e14 | 2,042 | py | Python | Cloud Services and Computing/Amazon AWS/Lambdas/Lambdas-Practice-Web-Examples/aws-tutorial-code-master/textract/bounding-box-kv-tables/flask-app/app.py | okara83/Becoming-a-Data-Scientist | f09a15f7f239b96b77a2f080c403b2f3e95c9650 | [
"MIT"
] | null | null | null | Cloud Services and Computing/Amazon AWS/Lambdas/Lambdas-Practice-Web-Examples/aws-tutorial-code-master/textract/bounding-box-kv-tables/flask-app/app.py | okara83/Becoming-a-Data-Scientist | f09a15f7f239b96b77a2f080c403b2f3e95c9650 | [
"MIT"
] | null | null | null | Cloud Services and Computing/Amazon AWS/Lambdas/Lambdas-Practice-Web-Examples/aws-tutorial-code-master/textract/bounding-box-kv-tables/flask-app/app.py | okara83/Becoming-a-Data-Scientist | f09a15f7f239b96b77a2f080c403b2f3e95c9650 | [
"MIT"
] | 2 | 2022-02-09T15:41:33.000Z | 2022-02-11T07:47:40.000Z | import os
import time
from flask import Flask, render_template, request
from aws_requests_auth.aws_auth import AWSRequestsAuth
import requests
import uuid
import base64
import shutil
from config import Config
app = Flask(__name__)
config = Config()
| 29.171429 | 81 | 0.651812 |
b397b968bf5b0884131d6ce2a3bdfa2c376131cc | 792 | py | Python | tests/integration/test_project.py | gitter-badger/a2ml | 1d9ef6657645b61c64090284ed8fadb1a68b932c | [
"Apache-2.0"
] | 30 | 2019-07-01T13:23:27.000Z | 2022-03-16T21:19:33.000Z | tests/integration/test_project.py | arita37/a2ml | 3e92bede2c2ef6e63be74560cc6b904d3ec9d931 | [
"Apache-2.0"
] | 234 | 2019-07-04T13:56:15.000Z | 2021-11-04T10:12:55.000Z | tests/integration/test_project.py | arita37/a2ml | 3e92bede2c2ef6e63be74560cc6b904d3ec9d931 | [
"Apache-2.0"
] | 13 | 2019-07-04T14:00:34.000Z | 2020-07-13T11:18:44.000Z | import pytest
from a2ml.cmdl.cmdl import cmdl
| 39.6 | 83 | 0.65404 |
b3985cdea908a7ea476bd235e7bfc5f58bee0b36 | 609 | py | Python | pyat/tools.py | matt-hayden/PyAt | 00a011a935287e15fd63fd1a842fb839f4fd1b4d | [
"Unlicense"
] | null | null | null | pyat/tools.py | matt-hayden/PyAt | 00a011a935287e15fd63fd1a842fb839f4fd1b4d | [
"Unlicense"
] | null | null | null | pyat/tools.py | matt-hayden/PyAt | 00a011a935287e15fd63fd1a842fb839f4fd1b4d | [
"Unlicense"
] | null | null | null |
import subprocess
import sys
from . import debug, info, warning, error, fatal
from . import AT, BATCH
from .jobs import _get_jobs
if sys.platform.startswith('win'):
GREP='GREP.EXE'
else:
GREP='grep'
| 23.423077 | 67 | 0.688013 |
b3985f565a3b58ad025d4c71f174f2a90abe2aa7 | 12,172 | py | Python | tests/test_main_window.py | Ceystyle/easyp2p | 99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc | [
"MIT"
] | 4 | 2019-07-18T10:58:28.000Z | 2021-11-18T16:57:45.000Z | tests/test_main_window.py | Ceystyle/easyp2p | 99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc | [
"MIT"
] | 1 | 2019-07-05T09:21:47.000Z | 2019-07-05T09:21:47.000Z | tests/test_main_window.py | Ceystyle/easyp2p | 99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc | [
"MIT"
] | 2 | 2019-07-05T08:56:34.000Z | 2020-06-09T10:03:42.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2020 Niko Sandschneider
"""Module containing all tests for the main window of easyp2p."""
from datetime import date, timedelta
import os
import sys
import unittest.mock
from PyQt5.QtCore import QLocale
from PyQt5.QtWidgets import QApplication, QCheckBox, QLineEdit
impor... | 41.684932 | 80 | 0.669898 |
b39916cb7995122f663f739553c92cd8a79865f1 | 4,955 | py | Python | pineboolib/fllegacy/flserialport.py | juanjosepablos/pineboo | f6ce515aec6e0139821bb9c1d62536d9fb50dae4 | [
"MIT"
] | null | null | null | pineboolib/fllegacy/flserialport.py | juanjosepablos/pineboo | f6ce515aec6e0139821bb9c1d62536d9fb50dae4 | [
"MIT"
] | 1 | 2017-10-30T22:00:48.000Z | 2017-11-11T19:34:32.000Z | pineboolib/fllegacy/flserialport.py | juanjosepablos/pineboo | f6ce515aec6e0139821bb9c1d62536d9fb50dae4 | [
"MIT"
] | 1 | 2017-10-30T20:16:38.000Z | 2017-10-30T20:16:38.000Z | """Flserial por module."""
from PyQt5 import QtCore
from pineboolib.core import decorators
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from PyQt5 import QtSerialPort # type: ignore [attr-defined]
def flush(self) -> bool:
"""Flush data."""
return self._obj.flush()
def writeB... | 24.651741 | 98 | 0.578204 |
b39ac8a96e45d8646cdf0980fdb5a20cae752964 | 434 | py | Python | test4.py | JarkJiao/Python_learning_TestCase | cc77a7a20b01e230e0edd818532570a7d8853b03 | [
"MIT"
] | null | null | null | test4.py | JarkJiao/Python_learning_TestCase | cc77a7a20b01e230e0edd818532570a7d8853b03 | [
"MIT"
] | null | null | null | test4.py | JarkJiao/Python_learning_TestCase | cc77a7a20b01e230e0edd818532570a7d8853b03 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
year = int(raw_input('years:\n'))
month = int(raw_input('month:\n'))
day = int(raw_input('day:\n'))
months = (0,31,59,90,120,151,181,212,243,273,304,334)
if 0< month <=12:
sum = months[month-1]
else:
print ''
sum+=day
leap = 0
if (year %400==0) or ((year % 4 == 0) ... | 18.083333 | 60 | 0.569124 |
b39c43d0021d178a258b637ee9621caf69f2c4a1 | 230 | py | Python | nsot/util/__init__.py | BunkersCo/nsot | fd45bdf63794aa3015a87855f4d7b03663fd5396 | [
"Apache-2.0"
] | null | null | null | nsot/util/__init__.py | BunkersCo/nsot | fd45bdf63794aa3015a87855f4d7b03663fd5396 | [
"Apache-2.0"
] | null | null | null | nsot/util/__init__.py | BunkersCo/nsot | fd45bdf63794aa3015a87855f4d7b03663fd5396 | [
"Apache-2.0"
] | null | null | null | """
Utilities used across the project.
"""
# Core
from . import core
from .core import * # noqa
# Stats
from . import stats
from .stats import * # noqa
__all__ = []
__all__.extend(core.__all__)
__all__.extend(stats.__all__)
| 13.529412 | 34 | 0.695652 |
b39c9e2bf74b1b8f308baab389017a73fc014199 | 1,829 | py | Python | task3/test_openbrewerydb.py | rokimaru/rest_api_autotests | d4009b813b064681250671ec515646dc3554bc5d | [
"Apache-2.0"
] | null | null | null | task3/test_openbrewerydb.py | rokimaru/rest_api_autotests | d4009b813b064681250671ec515646dc3554bc5d | [
"Apache-2.0"
] | null | null | null | task3/test_openbrewerydb.py | rokimaru/rest_api_autotests | d4009b813b064681250671ec515646dc3554bc5d | [
"Apache-2.0"
] | null | null | null | """ api https://www.openbrewerydb.org/ """
import pytest
import requests
from task3.methods import BrewerySiteMethods
| 43.547619 | 98 | 0.686714 |
b39cb5201c7a38f1f515f5662f4f1cce6e5fd7c3 | 1,347 | py | Python | TVQAplus/eval/utils.py | slewyh/vqa | b34d86d8db2f371e2d4cf55439ebaa83ae1918aa | [
"MIT"
] | 80 | 2019-05-27T14:05:31.000Z | 2021-12-13T12:16:11.000Z | TVQAplus/eval/utils.py | slewyh/vqa | b34d86d8db2f371e2d4cf55439ebaa83ae1918aa | [
"MIT"
] | 21 | 2019-05-27T14:08:23.000Z | 2022-01-03T04:02:25.000Z | eval/utils.py | Lee-Ft/RHA | 8a832a9afebc9204148bbd340c31e26c83138024 | [
"MIT"
] | 24 | 2019-09-05T03:27:14.000Z | 2021-06-30T12:15:40.000Z | import json
try:
import cPickle as pickle
except:
import pickle
def save_json_pretty(data, file_path):
"""save formatted json, use this one for some json config files"""
with open(file_path, "w") as f:
f.write(json.dumps(data, indent=4, sort_keys=True))
def flat_list_of_lists(l):
"""... | 25.415094 | 70 | 0.643653 |
b39d2f478b8d05032480b473417744f719f3f2ee | 1,966 | py | Python | apps/finance_request/models.py | MegaSoftVision/finance_credit | a4350f525cd45b1e40d0a8be0ca1f3d77fdbe039 | [
"MIT"
] | null | null | null | apps/finance_request/models.py | MegaSoftVision/finance_credit | a4350f525cd45b1e40d0a8be0ca1f3d77fdbe039 | [
"MIT"
] | null | null | null | apps/finance_request/models.py | MegaSoftVision/finance_credit | a4350f525cd45b1e40d0a8be0ca1f3d77fdbe039 | [
"MIT"
] | null | null | null | from django.db import models
from apps.users.models import User
from django.core.validators import MaxValueValidator, MinValueValidator
| 29.343284 | 112 | 0.65412 |
b39fb66c9264ab0daee2f5939dd75f3e42854c9f | 938 | py | Python | Code/mreset.py | andrewwhipple/MeowgicMatt | 189c2c90a75eeb9c53d3be03c40f6b5792ceb548 | [
"MIT"
] | null | null | null | Code/mreset.py | andrewwhipple/MeowgicMatt | 189c2c90a75eeb9c53d3be03c40f6b5792ceb548 | [
"MIT"
] | null | null | null | Code/mreset.py | andrewwhipple/MeowgicMatt | 189c2c90a75eeb9c53d3be03c40f6b5792ceb548 | [
"MIT"
] | null | null | null | #Meowgic Matt reset module
import os
import json
#Debug function to call out that the module successfully loaded.
#Resets Meowgic Matt to factory conditions, DELETING EVERYTHING CURRENTLY IN SUBFOLDERS. | 33.5 | 91 | 0.621535 |
b3a08e780fd80323f4995b454d6b15261e415287 | 1,898 | py | Python | minecraftQuest.py | prathimacode-hub/Toonslate-Gags | fc7868c64d8b2694f2110fe8c941a0f311127e72 | [
"MIT"
] | 2 | 2021-07-12T10:36:42.000Z | 2021-07-17T04:39:20.000Z | minecraftQuest.py | prathimacode-hub/Toonslate-Gags | fc7868c64d8b2694f2110fe8c941a0f311127e72 | [
"MIT"
] | null | null | null | minecraftQuest.py | prathimacode-hub/Toonslate-Gags | fc7868c64d8b2694f2110fe8c941a0f311127e72 | [
"MIT"
] | 2 | 2021-07-11T12:56:07.000Z | 2021-07-14T17:40:54.000Z | # Setup
opt = ["yes", "no"]
directions = ["left", "right", "forward", "backward"]
# Introduction
name = input("What is your name, HaCKaToOnEr ?\n")
print("Welcome to Toonslate island , " + name + " Let us go on a Minecraft quest!")
print("You find yourself in front of a abandoned mineshaft.")
print("Can yo... | 43.136364 | 135 | 0.632771 |
b3a4f4d01102f6664e5c9be202321811c9c3c51b | 2,385 | py | Python | soundbay/utils/checkpoint_utils.py | deep-voice/soundbay | eb19b9932fab0c909c8e9c0627d29dfcd752c18c | [
"Apache-2.0"
] | 7 | 2021-07-29T09:44:20.000Z | 2022-02-01T20:01:05.000Z | soundbay/utils/checkpoint_utils.py | mosheman5/soundbay | eb19b9932fab0c909c8e9c0627d29dfcd752c18c | [
"Apache-2.0"
] | 13 | 2021-04-19T05:56:30.000Z | 2022-02-09T09:37:36.000Z | soundbay/utils/checkpoint_utils.py | deep-voice/soundbay | eb19b9932fab0c909c8e9c0627d29dfcd752c18c | [
"Apache-2.0"
] | 2 | 2021-04-06T06:32:24.000Z | 2022-01-22T16:37:29.000Z | from typing import Union
import boto3
from omegaconf import OmegaConf
from pathlib import Path
from tqdm import tqdm
def upload_experiment_to_s3(experiment_id: str,
dir_path: Union[Path, str],
bucket_name: str,
include_parent: bool =... | 37.857143 | 133 | 0.692243 |