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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e96775d33f01ce6263a86412e0d703d41df2882 | 6,490 | py | Python | monta_palavras/main.py | Lucas-Vini/useful_scripts | 4e84fe3cd935bd502ef10590f263faacaae5ea65 | [
"MIT"
] | 1 | 2021-04-27T03:22:38.000Z | 2021-04-27T03:22:38.000Z | monta_palavras/main.py | Lucas-Vini/useful_scripts | 4e84fe3cd935bd502ef10590f263faacaae5ea65 | [
"MIT"
] | null | null | null | monta_palavras/main.py | Lucas-Vini/useful_scripts | 4e84fe3cd935bd502ef10590f263faacaae5ea65 | [
"MIT"
] | null | null | null | import unicodedata
import montapalavra as mp
def main():
'''
Funcionamento do programa:
- Inicialmente solicitado que o usurio digite as letras disponveis. (1)
- Para poder encerrar o programa, o usurio pode digitar apenas a letra
"q". (2)
- Depois o programa recebe a posio bnus para pont... | 42.418301 | 82 | 0.66302 |
1e976a098cfe8028b00f3a845ba60be8b5f9da1e | 5,279 | py | Python | src/components/auth-server/lib/presentation/restapi.py | ars1004/practica-dms-2019-2020 | c6ff5ca05faf7e785f85b12f4fa66015f5a7a507 | [
"MIT"
] | null | null | null | src/components/auth-server/lib/presentation/restapi.py | ars1004/practica-dms-2019-2020 | c6ff5ca05faf7e785f85b12f4fa66015f5a7a507 | [
"MIT"
] | null | null | null | src/components/auth-server/lib/presentation/restapi.py | ars1004/practica-dms-2019-2020 | c6ff5ca05faf7e785f85b12f4fa66015f5a7a507 | [
"MIT"
] | 9 | 2019-10-08T19:07:45.000Z | 2021-11-02T19:19:53.000Z | from flask import Flask, escape, request, abort
from lib.data.db.schema.manager import Manager as SchemaManager
from lib.data.db.schema.recordsets.users import Users
from lib.data.db.schema.recordsets.userscores import UserScores
from lib.data.db.schema.recordsets.usersessions import UserSessions
import json
| 35.42953 | 108 | 0.610343 |
1e982d7567ee821b8267f9f3943560d8280e85a8 | 1,604 | py | Python | Sprint Challenge/acme_report.py | dylan0stewart/DS-Unit-3-Sprint-1-Software-Engineering | d40ad035b1d10df0068cf5c5106a586c569804e2 | [
"MIT"
] | null | null | null | Sprint Challenge/acme_report.py | dylan0stewart/DS-Unit-3-Sprint-1-Software-Engineering | d40ad035b1d10df0068cf5c5106a586c569804e2 | [
"MIT"
] | null | null | null | Sprint Challenge/acme_report.py | dylan0stewart/DS-Unit-3-Sprint-1-Software-Engineering | d40ad035b1d10df0068cf5c5106a586c569804e2 | [
"MIT"
] | null | null | null | """
Class Report: Part 4 of the Sprint Challenge
- Generate random Product list, and get an Inventory Report on that list
"""
from random import randint, sample, uniform
from acme import Product
ADJECTIVES = ['Awesome', 'Shiny', 'Impressive', 'Portable', 'Improved']
NOUNS = ['Anvil', 'Catapult', 'Disguise', 'Mousetra... | 29.703704 | 74 | 0.632793 |
1e998b03ed3e633be6c3bad25c5af0ce7f26be6b | 2,062 | py | Python | bikeshed/h/__init__.py | deniak/bikeshed | adf8655b3507377825e3aa77cc43a867687daf7b | [
"CC0-1.0"
] | 1 | 2020-12-10T20:26:43.000Z | 2020-12-10T20:26:43.000Z | bikeshed/h/__init__.py | deniak/bikeshed | adf8655b3507377825e3aa77cc43a867687daf7b | [
"CC0-1.0"
] | null | null | null | bikeshed/h/__init__.py | deniak/bikeshed | adf8655b3507377825e3aa77cc43a867687daf7b | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from .serializer import Serializer
from .dom import addClass
from .dom import addOldIDs
from .dom import appendChild
from .dom import appendContents
from .dom import approximateLineNumber
from .dom import childElements
from .dom import childNodes
from .dom import circledDigits
from .dom import... | 29.042254 | 46 | 0.827837 |
1e9aaa9f9f7cce2fbbe0315e6b7c079a768a52bc | 11,836 | py | Python | trainer/trainer_meta_learning.py | lixiaoyu0575/physionet_challenge2020_pytorch | 39b5aeeead440eaa88d6fdaf4a8a70c15373e062 | [
"MIT"
] | 1 | 2021-05-24T08:09:30.000Z | 2021-05-24T08:09:30.000Z | trainer/trainer_meta_learning.py | lixiaoyu0575/physionet_challenge2020_pytorch | 39b5aeeead440eaa88d6fdaf4a8a70c15373e062 | [
"MIT"
] | null | null | null | trainer/trainer_meta_learning.py | lixiaoyu0575/physionet_challenge2020_pytorch | 39b5aeeead440eaa88d6fdaf4a8a70c15373e062 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn as nn
from torchvision.utils import make_grid
from base import BaseTrainer
from utils import inf_loop, MetricTracker, smooth_one_hot, mixup
import torch.nn.functional as F
from scipy.io import loadmat
import time
from utils.util import *
| 43.355311 | 127 | 0.577644 |
1e9c40d754716340687f20a8c4aab7bea1a13ad0 | 452 | py | Python | wsgi.py | nadeengamage/flaskee | 7d6b438271a6fe2edfaf7850fbbc89ee2bd3b933 | [
"Apache-2.0"
] | null | null | null | wsgi.py | nadeengamage/flaskee | 7d6b438271a6fe2edfaf7850fbbc89ee2bd3b933 | [
"Apache-2.0"
] | null | null | null | wsgi.py | nadeengamage/flaskee | 7d6b438271a6fe2edfaf7850fbbc89ee2bd3b933 | [
"Apache-2.0"
] | 4 | 2020-04-18T14:40:02.000Z | 2021-03-14T06:28:12.000Z | """
The Flaskee is an Open Source project for Microservices.
Develop By Nadeen Gamage | https://nadeengamage.com | nadeengamage@gmail.com
"""
from werkzeug.serving import run_simple
from werkzeug.middleware.dispatcher import DispatcherMiddleware
from flaskee import api
app = api.create_app()
application = Dispatche... | 26.588235 | 82 | 0.774336 |
1ea0f3ac9844a98ac71f6904b6aff0be76b80598 | 3,437 | py | Python | tests/use_cases/test_config_init.py | staticdev/github-portfolio | 850461eed8160e046ee16664ac3dbc19e3ec0965 | [
"MIT"
] | null | null | null | tests/use_cases/test_config_init.py | staticdev/github-portfolio | 850461eed8160e046ee16664ac3dbc19e3ec0965 | [
"MIT"
] | null | null | null | tests/use_cases/test_config_init.py | staticdev/github-portfolio | 850461eed8160e046ee16664ac3dbc19e3ec0965 | [
"MIT"
] | null | null | null | """Test cases for the config initialization use case."""
import pytest
from pytest_mock import MockerFixture
import git_portfolio.domain.gh_connection_settings as cs
import git_portfolio.responses as res
import git_portfolio.use_cases.config_init as ci
def test_execute_success(
mocker: MockerFixture,
mo... | 34.717172 | 84 | 0.771021 |
1ea1ff4cca16c27755d779c438a0f766e3f0597f | 91 | py | Python | pyproc/views/__init__.py | cmin764/pyproc | be69b5a35fbe3818accea472735effec0825f17c | [
"MIT"
] | null | null | null | pyproc/views/__init__.py | cmin764/pyproc | be69b5a35fbe3818accea472735effec0825f17c | [
"MIT"
] | null | null | null | pyproc/views/__init__.py | cmin764/pyproc | be69b5a35fbe3818accea472735effec0825f17c | [
"MIT"
] | null | null | null | """All views and routes exposed by the pyproc web app."""
from . import (
message,
)
| 13 | 57 | 0.637363 |
1ea65948bf3d9a2f2505869be29db3172fecbc6c | 2,975 | py | Python | examples/pybullet/gym/pybullet_envs/minitaur/agents/scripts/configs.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 9,136 | 2015-01-02T00:41:45.000Z | 2022-03-31T15:30:02.000Z | examples/pybullet/gym/pybullet_envs/minitaur/agents/scripts/configs.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,424 | 2015-01-05T08:55:58.000Z | 2022-03-30T19:34:55.000Z | examples/pybullet/gym/pybullet_envs/minitaur/agents/scripts/configs.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,921 | 2015-01-02T10:19:30.000Z | 2022-03-31T02:48:42.000Z | # Copyright 2017 The TensorFlow Agents Authors.
#
# 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 ag... | 23.8 | 82 | 0.701176 |
1ea6d839614bcd60a56e2a9f7c2637c1090160d2 | 6,089 | py | Python | RNAPuzzles/rnapuzzles/urls.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | null | null | null | RNAPuzzles/rnapuzzles/urls.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 26 | 2019-10-08T11:11:25.000Z | 2022-03-12T00:52:30.000Z | RNAPuzzles/rnapuzzles/urls.py | whinyadventure/RNA-Puzzles | bbd147e1a0748a77b5e3424a93ad57bb430b5a0e | [
"Apache-2.0"
] | 1 | 2020-05-11T18:51:04.000Z | 2020-05-11T18:51:04.000Z | from django.urls import path, include, re_path
from django.views.generic import FormView
from . import views
from .views import news, faq, resources, group, user, puzzles, submission, score_challenge, metrics
import publications.views as plist
news_patterns = [
path('', news.List.as_view(), name="news_list"),
... | 54.855856 | 161 | 0.677451 |
1eaa09862154c9aee8c8f324a1aee82ab41b5d0a | 4,595 | py | Python | Software_Project/tools/image_processing.py | Microdent/Handwritten_Mathematical_Calculator_on_FPGA | 33b53e7df90c3f96f1c6b0554b23d24362b45c1c | [
"BSD-3-Clause"
] | 24 | 2020-08-01T08:55:28.000Z | 2022-03-07T12:29:19.000Z | Software_Project/tools/image_processing.py | chizhou12306/Handwritten_Mathematical_Calculator_on_FPGA | a81eddb9171661ae9b307a951da288cc5507aaa6 | [
"BSD-3-Clause"
] | 7 | 2020-08-31T09:50:07.000Z | 2022-03-10T03:06:04.000Z | Software_Project/tools/image_processing.py | chizhou12306/Handwritten_Mathematical_Calculator_on_FPGA | a81eddb9171661ae9b307a951da288cc5507aaa6 | [
"BSD-3-Clause"
] | 9 | 2020-08-07T14:44:49.000Z | 2021-12-25T23:46:55.000Z | import numpy as np
import queue
import cv2
import os
import datetime
SIZE = 32
SCALE = 0.007874015748031496
if __name__ == '__main__':
img_dir = './dataset'
main(img_dir)
| 36.181102 | 103 | 0.50555 |
1eaab01b62d068e6b6e85924d9d72b4eac38dad8 | 235 | py | Python | src/preprocess/setup.py | CyberAgentAILab/canvas-vae | a39a48ad9ae6217123e971cb4c5cf54c672eca74 | [
"Apache-2.0"
] | 12 | 2021-08-30T06:40:06.000Z | 2022-03-26T10:38:08.000Z | src/preprocess/setup.py | CyberAgentAILab/canvas-vae | a39a48ad9ae6217123e971cb4c5cf54c672eca74 | [
"Apache-2.0"
] | 1 | 2022-03-22T04:57:34.000Z | 2022-03-22T04:57:34.000Z | src/preprocess/setup.py | CyberAgentAILab/canvas-vae | a39a48ad9ae6217123e971cb4c5cf54c672eca74 | [
"Apache-2.0"
] | 5 | 2021-10-30T09:19:09.000Z | 2022-02-02T02:06:39.000Z | """Packager for cloud environment."""
from setuptools import setup, find_packages
setup(
name='preprocess',
version='1.0.0',
packages=find_packages(),
install_requires=[
'tensorflow',
'numpy',
],
)
| 18.076923 | 43 | 0.621277 |
1eaaf7610bdb4f33d570e546a1dd41d456ff19a3 | 4,524 | py | Python | tests/test_parsers.py | MiamiOH-iGEM/igem-wikisync | 35bec1bee7e52c5d404b98118462577bb703b869 | [
"MIT"
] | 10 | 2020-10-19T09:13:43.000Z | 2021-09-27T09:26:48.000Z | tests/test_parsers.py | ryanregal/igem-wikisync | 8420d6a135225219bd2ab0d7c931b6c794fb9183 | [
"MIT"
] | 2 | 2020-11-05T03:54:48.000Z | 2021-08-29T22:07:03.000Z | tests/test_parsers.py | ryanregal/igem-wikisync | 8420d6a135225219bd2ab0d7c931b6c794fb9183 | [
"MIT"
] | 9 | 2020-08-26T19:15:19.000Z | 2021-12-10T06:56:57.000Z | import hashlib
from datetime import date
import pytest
from igem_wikisync.parsers import CSSparser, HTMLparser, JSparser
| 32.314286 | 87 | 0.691424 |
1eabc10f0b20e90bebc6f5ec7cf6576de6e4fba6 | 1,789 | py | Python | SnakeGame/main.py | kmhmubin/Automate-the-boring-stuff-with-python3 | cd8fa6e6e81a591e20157b94404abb662f50bf21 | [
"MIT"
] | 5 | 2021-01-10T13:17:01.000Z | 2022-01-25T19:21:25.000Z | SnakeGame/main.py | kmhmubin/Automate-the-boring-stuff-with-python3 | cd8fa6e6e81a591e20157b94404abb662f50bf21 | [
"MIT"
] | null | null | null | SnakeGame/main.py | kmhmubin/Automate-the-boring-stuff-with-python3 | cd8fa6e6e81a591e20157b94404abb662f50bf21 | [
"MIT"
] | 4 | 2021-02-01T17:12:41.000Z | 2022-01-12T15:02:23.000Z | """TODO: Snake Game
1. create a screen with 600x600 size
2. create a snake body
3. move the snake
4. create snake food
5. detect collision with food
6. create a scoreboard
7. detect collision with wall
8. detect collision with tail
"""
from turtle import Screen
from snake import Snake
from food import Food
from scoreb... | 22.3625 | 114 | 0.699273 |
1eabf5fab7877aea56835c1d7fd5d986b9b1b8de | 7,158 | py | Python | catkin_ws/src/apriltags/src/apriltags_postprocessing_node.py | stevenyslins/Software | 99012d31f9e886386dad598cb4cacd2f9b4ebade | [
"CC-BY-2.0"
] | 7 | 2016-10-09T20:31:56.000Z | 2021-04-03T05:00:38.000Z | catkin_ws/src/apriltags/src/apriltags_postprocessing_node.py | stevenyslins/Software | 99012d31f9e886386dad598cb4cacd2f9b4ebade | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/apriltags/src/apriltags_postprocessing_node.py | stevenyslins/Software | 99012d31f9e886386dad598cb4cacd2f9b4ebade | [
"CC-BY-2.0"
] | 3 | 2017-03-17T17:00:51.000Z | 2017-09-05T05:51:33.000Z | #!/usr/bin/env python
import rospkg
import rospy
import yaml
from duckietown_msgs.msg import AprilTags, TagDetection, TagInfo, Vector2D
import numpy as np
import kinematic as k
if __name__ == '__main__':
rospy.init_node('AprilPostPros',anonymous=False)
node = AprilPostPros()
rospy.spin()
| 42.35503 | 152 | 0.568455 |
1ead5d3e79d4e71898dd29a86d16aaccdbe4ddbc | 1,089 | py | Python | 14_funcoes/a124_todos_parametros.py | smartao/estudos_python | 252a2e592ff929dfc6c06fc09b42cb7063ad0b5a | [
"MIT"
] | null | null | null | 14_funcoes/a124_todos_parametros.py | smartao/estudos_python | 252a2e592ff929dfc6c06fc09b42cb7063ad0b5a | [
"MIT"
] | 9 | 2019-11-15T14:21:43.000Z | 2020-03-15T14:37:13.000Z | 14_funcoes/a124_todos_parametros.py | smartao/estudos_python | 252a2e592ff929dfc6c06fc09b42cb7063ad0b5a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''
Pegando todos os parametros
Um argumento pocisional sempre deve estar antes de parametros nomeados
def todos_params(*args, **kwargs):
Significa que quer pegar os argumentos de uma forma genrica
tanto pocisionais quanto os nomeados
'''
if __name__ == '__main__':
# 3 parametros pos... | 31.114286 | 70 | 0.701561 |
1ead6c62d875f60610503850b818fef266d45e15 | 676 | py | Python | helm/dagster/schema/schema/charts/dagster/subschema/scheduler.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | helm/dagster/schema/schema/charts/dagster/subschema/scheduler.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | helm/dagster/schema/schema/charts/dagster/subschema/scheduler.py | asamoal/dagster | 08fad28e4b608608ce090ce2e8a52c2cf9dd1b64 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
from typing import Optional
from pydantic import BaseModel, Extra
from ...utils.utils import BaseModel, ConfigurableClass, create_json_schema_conditionals
| 22.533333 | 95 | 0.726331 |
1eaeccbb222e8b11727ae25b0a02cf962e4c2de4 | 496 | py | Python | lab/lab2/Algorithm_1.py | c235gsy/Sustech_Data-Structure-and-Algorithm-Analysis | fcbd450216e9e62cd3365ad2a8ccab00b9eb679f | [
"MIT"
] | 1 | 2020-01-04T13:35:29.000Z | 2020-01-04T13:35:29.000Z | lab/lab2/Algorithm_1.py | c235gsy/Sustech_Data-Structure-and-Algorithm-Analysis | fcbd450216e9e62cd3365ad2a8ccab00b9eb679f | [
"MIT"
] | null | null | null | lab/lab2/Algorithm_1.py | c235gsy/Sustech_Data-Structure-and-Algorithm-Analysis | fcbd450216e9e62cd3365ad2a8ccab00b9eb679f | [
"MIT"
] | null | null | null | import numpy as np
import time
seq = np.random.randint(-100000,100000,size=1000)
start = time.time()
result = max_subsequence_sum(seq)
print(time.time() - start) | 22.545455 | 49 | 0.586694 |
1eb03f9a239311505cd3448e5a20e13607a1282a | 7,574 | py | Python | utils.py | thefxperson/ISEF-JOCR | 08d91d9d144b04585553288dcdbef443e90c4ecb | [
"MIT"
] | null | null | null | utils.py | thefxperson/ISEF-JOCR | 08d91d9d144b04585553288dcdbef443e90c4ecb | [
"MIT"
] | null | null | null | utils.py | thefxperson/ISEF-JOCR | 08d91d9d144b04585553288dcdbef443e90c4ecb | [
"MIT"
] | null | null | null | #code from snowkylin's github, see readme for citation
#modified to support an output of 30 instead of 25 with five-hot
#excess code that I'm not using (such as ntm) has been removed
import numpy as np
import os
from PIL import Image
from PIL import ImageOps
# from skimage import io
# from skimage import transform
# f... | 45.353293 | 191 | 0.560206 |
1eb0616d9ab54adba50432c69e2f0d3d29ad3b8e | 2,208 | py | Python | experiments/compile_scripts.py | uiuc-arc/DeepJ | 1c0493511b12394ca6f9a0098d3401cdcab50806 | [
"MIT"
] | 2 | 2022-01-20T15:46:19.000Z | 2022-01-29T16:51:37.000Z | experiments/compile_scripts.py | uiuc-arc/DeepJ | 1c0493511b12394ca6f9a0098d3401cdcab50806 | [
"MIT"
] | null | null | null | experiments/compile_scripts.py | uiuc-arc/DeepJ | 1c0493511b12394ca6f9a0098d3401cdcab50806 | [
"MIT"
] | 1 | 2021-10-31T02:02:43.000Z | 2021-10-31T02:02:43.000Z | import os
is_fpsound = False
if is_fpsound:
sound = '-D SOUND'
else:
sound = ''
print('Compiling ConvBig_Classify')
os.system(f'g++ -std=c++17 -O2 -fopenmp convbig_classify.cpp -o convbig_classify')
print('Compiling ConvBig')
os.system(f'g++ {sound} -std=c++17 -O2 -fopenmp convbig.cpp -o convbig')
print('Com... | 46.978723 | 108 | 0.74683 |
1eb1d571ea41a91a0238c2d389d78881d8c65d2c | 1,529 | py | Python | ravel/utils/strings.py | eykd/ravel | bcd4a748c74acd39f09f4eab6a8cb65660e857b5 | [
"MIT"
] | 1 | 2020-05-16T12:27:44.000Z | 2020-05-16T12:27:44.000Z | ravel/utils/strings.py | eykd/ravel | bcd4a748c74acd39f09f4eab6a8cb65660e857b5 | [
"MIT"
] | null | null | null | ravel/utils/strings.py | eykd/ravel | bcd4a748c74acd39f09f4eab6a8cb65660e857b5 | [
"MIT"
] | null | null | null | from syml.utils import get_text_source # noqa
from .. import exceptions
from ..types import Pos
def get_coords_of_str_index(s, index):
"""Get (line_number, col) of `index` in `string`.
Based on http://stackoverflow.com/a/24495900
"""
lines = s.splitlines(True)
curr_pos = 0
for linenum, line... | 25.065574 | 82 | 0.644212 |
1eb22a51873dd66d9ccc260927ab3a81961a650a | 1,075 | py | Python | edge.py | BrinzaBezrukoff/graphvisual | 92d3cbd455f37e8ec307c3beaab6b8cd9e00323f | [
"BSD-3-Clause"
] | 1 | 2020-12-10T21:02:02.000Z | 2020-12-10T21:02:02.000Z | edge.py | BrinzaBezrukoff/graphvisual | 92d3cbd455f37e8ec307c3beaab6b8cd9e00323f | [
"BSD-3-Clause"
] | 1 | 2020-12-10T21:08:34.000Z | 2020-12-20T23:00:27.000Z | edge.py | BrinzaBezrukoff/graphvisual | 92d3cbd455f37e8ec307c3beaab6b8cd9e00323f | [
"BSD-3-Clause"
] | null | null | null | import pygame
from tools import render_text
from graph_object import GraphObject
| 28.289474 | 97 | 0.606512 |
1eb230e01e77a05e99e637d663df4534c84561ab | 326 | py | Python | genkey/migrations/0007_auto_20190328_1149.py | MoreNiceJay/CAmanager_web | 29c6e35b9b1b9e8d851b2825df18e34699f6c5d2 | [
"bzip2-1.0.6"
] | null | null | null | genkey/migrations/0007_auto_20190328_1149.py | MoreNiceJay/CAmanager_web | 29c6e35b9b1b9e8d851b2825df18e34699f6c5d2 | [
"bzip2-1.0.6"
] | 3 | 2020-02-11T23:59:34.000Z | 2021-06-10T21:19:16.000Z | genkey/migrations/0007_auto_20190328_1149.py | MoreNiceJay/CAmanager_web | 29c6e35b9b1b9e8d851b2825df18e34699f6c5d2 | [
"bzip2-1.0.6"
] | null | null | null | # Generated by Django 2.0.4 on 2019-03-28 02:49
from django.db import migrations
| 18.111111 | 47 | 0.588957 |
1eb35507843f13439f891259509795208d9a57dc | 524 | py | Python | samples/sample.py | andy1xx8/py-profiler | 7abd476d248006c410e425f730734768fcc2a420 | [
"MIT"
] | 3 | 2021-07-22T08:56:14.000Z | 2022-03-09T11:20:12.000Z | samples/sample.py | andy1xx8/py-profiler | 7abd476d248006c410e425f730734768fcc2a420 | [
"MIT"
] | 3 | 2021-07-22T08:57:32.000Z | 2021-07-24T10:51:56.000Z | samples/sample.py | andy1xx8/py-profiler | 7abd476d248006c410e425f730734768fcc2a420 | [
"MIT"
] | null | null | null | from py_profiler import profiler, profiling_service
if __name__ == "__main__":
try:
foo = Foo()
hello()
foo.some_thing()
foo.method_2()
except Exception as e:
pass
finally:
print(profiling_service.as_table())
| 16.903226 | 51 | 0.587786 |
1eb441e0e81b46594ab507e5c2b1c179c6992ef9 | 41 | py | Python | bot/handlers/users/__init__.py | famaxth/Russian-Qiwi-Bot | d5b0f23516343205ca7bad15b2d2fae7b675f584 | [
"MIT"
] | null | null | null | bot/handlers/users/__init__.py | famaxth/Russian-Qiwi-Bot | d5b0f23516343205ca7bad15b2d2fae7b675f584 | [
"MIT"
] | null | null | null | bot/handlers/users/__init__.py | famaxth/Russian-Qiwi-Bot | d5b0f23516343205ca7bad15b2d2fae7b675f584 | [
"MIT"
] | null | null | null | from . import start
from . import main
| 13.666667 | 20 | 0.707317 |
1eb567b2d4370b74ccabfda3eaf79975e350711e | 2,009 | py | Python | data processing/create_word2vec_input.py | RayL0707/Finance_KG | c4614bfb12a7ce20e05b42ab81ab6038ab5143f4 | [
"MIT"
] | null | null | null | data processing/create_word2vec_input.py | RayL0707/Finance_KG | c4614bfb12a7ce20e05b42ab81ab6038ab5143f4 | [
"MIT"
] | null | null | null | data processing/create_word2vec_input.py | RayL0707/Finance_KG | c4614bfb12a7ce20e05b42ab81ab6038ab5143f4 | [
"MIT"
] | null | null | null | import json
import thulac
import time
# n
# all+n (all vm)
# a+n
# np
# ns
# ni
# nz
# tr
# i
# j
# x
# w
# NER
createTable(0)
#createTable(1)
#createTable(2)
#createTable(3)
#createTable(4)
#createTable(5)
#createTable(6)
#createTable(7)
#createTable(8)
#createTable(9)
#test()
#def test():
# thu... | 17.17094 | 62 | 0.576904 |
1eb6729f71fba299e50e9509b559377bbb9af03c | 20,809 | py | Python | Simulator/GUI2.py | Sulles/YOLOL_Simulator | cfecdd8b0bcaaa5661fff6cf187bf2a8a3a62bd6 | [
"MIT"
] | 5 | 2019-07-15T02:16:26.000Z | 2021-09-13T02:23:48.000Z | Simulator/GUI2.py | Sulles/YOLOL_Simulator | cfecdd8b0bcaaa5661fff6cf187bf2a8a3a62bd6 | [
"MIT"
] | 1 | 2019-07-14T22:27:42.000Z | 2019-07-21T06:14:47.000Z | Simulator/GUI2.py | Sulles/YOLOL_Simulator | cfecdd8b0bcaaa5661fff6cf187bf2a8a3a62bd6 | [
"MIT"
] | null | null | null | """
Created: October 12, 2019
Author: Sulles
=== DESCRIPTION ===
This class houses the revamped GUI object and all associated objects
"""
# noinspection PyUnresolvedReferences
from Classes.map import obj_map
# noinspection PyUnresolvedReferences
from gui_lib import ListObj, TabList, DisplayBox, InputExtendedListObj, ... | 40.882122 | 120 | 0.619395 |
1eb7fc263822d8ec717750914353c52bf5648cf1 | 5,971 | py | Python | lib/surface/storage/rm.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/surface/storage/rm.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/surface/storage/rm.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. 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 requir... | 36.631902 | 84 | 0.697203 |
1eb97c28d3f9aed25e093f8387eb0d919c79229f | 20,357 | py | Python | model/data_utils.py | aashiqmuhamed/transformer-gan | 1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c | [
"Apache-2.0"
] | 32 | 2021-06-11T02:03:03.000Z | 2022-03-23T16:12:49.000Z | model/data_utils.py | aashiqmuhamed/transformer-gan | 1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c | [
"Apache-2.0"
] | 3 | 2021-11-11T06:08:37.000Z | 2022-02-20T14:09:30.000Z | model/data_utils.py | aashiqmuhamed/transformer-gan | 1ccc9f251c1b1d054c1acc8be36c1da7bf8cf11c | [
"Apache-2.0"
] | 7 | 2021-06-11T01:19:56.000Z | 2022-02-17T03:52:15.000Z | # Copyright Amazon.com, Inc. or its affiliates. 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 app... | 39.682261 | 103 | 0.54399 |
1eba62f617c9f18cfc8a3660c85a5c0d3a4b91d0 | 6,817 | py | Python | hass_db_merge.py | pipacsba/hass_db | 02b147df1e88abf477dbed826c3ed24f58461385 | [
"MIT"
] | null | null | null | hass_db_merge.py | pipacsba/hass_db | 02b147df1e88abf477dbed826c3ed24f58461385 | [
"MIT"
] | null | null | null | hass_db_merge.py | pipacsba/hass_db | 02b147df1e88abf477dbed826c3ed24f58461385 | [
"MIT"
] | null | null | null | import sqlite3
import sys
import datetime
import os
# day of month to switch to new database
change_day = 1
c_added_text_entities = [["sensor.hitachi_relay", "sensor.netatmo_relay"],
["sensor.cooling_target_temp", "sensor.heating_target_temp"]]
user = "pipacsba"
server_ip = "192.16... | 39.633721 | 194 | 0.539974 |
1eba922125927302bc8bd29f82b11a89657abb3d | 3,008 | py | Python | DEF_MAIN/sys_cmd.py | dBanasiak/VoiceAssistant | 061dc38b972a9f8c82a0b2b2d6c636fba00a06a0 | [
"MIT"
] | null | null | null | DEF_MAIN/sys_cmd.py | dBanasiak/VoiceAssistant | 061dc38b972a9f8c82a0b2b2d6c636fba00a06a0 | [
"MIT"
] | null | null | null | DEF_MAIN/sys_cmd.py | dBanasiak/VoiceAssistant | 061dc38b972a9f8c82a0b2b2d6c636fba00a06a0 | [
"MIT"
] | null | null | null | import os
import re
from colorama import Fore, Style
from selenium import webdriver
| 38.564103 | 123 | 0.649934 |
1ebca434a8a15f08126216a9e911d9f4751e4c45 | 11,180 | py | Python | check_netapp.py | champain/check_netapp | 38d018737114bd7354e183d6c968621036cc29d7 | [
"MIT"
] | 1 | 2019-01-08T16:13:03.000Z | 2019-01-08T16:13:03.000Z | check_netapp.py | champain/check_netapp | 38d018737114bd7354e183d6c968621036cc29d7 | [
"MIT"
] | null | null | null | check_netapp.py | champain/check_netapp | 38d018737114bd7354e183d6c968621036cc29d7 | [
"MIT"
] | null | null | null | import os
from NetApp.NaServer import *
from optparse import OptionParser
# Main function to handle our other functions
# Use this to test if the API is available
# Better than just a simple ping test
# Getting more granular, check for cluster/node status
# Use OptionParser to give us nice command line arg... | 36.298701 | 97 | 0.672898 |
1ebdac7c178f8a868935c11342f8e86cc4d4e774 | 6,820 | py | Python | MQTT Connector.indigoPlugin/Contents/Server Plugin/mqtt_broker.py | FlyingDiver/Indigo-MQTT | 5b2c7619d5ba125eee2673399398fb7c042b5ea4 | [
"Unlicense"
] | 1 | 2019-08-04T19:55:33.000Z | 2019-08-04T19:55:33.000Z | MQTT Connector.indigoPlugin/Contents/Server Plugin/mqtt_broker.py | FlyingDiver/Indigo-MQTT | 5b2c7619d5ba125eee2673399398fb7c042b5ea4 | [
"Unlicense"
] | 18 | 2019-08-22T21:19:37.000Z | 2021-12-22T12:22:27.000Z | MQTT Connector.indigoPlugin/Contents/Server Plugin/mqtt_broker.py | FlyingDiver/Indigo-MQTT | 5b2c7619d5ba125eee2673399398fb7c042b5ea4 | [
"Unlicense"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
####################
import time
import logging
import indigo
from os.path import exists
import paho.mqtt.client as mqtt
################################################################################
| 45.771812 | 180 | 0.610411 |
1ebdafad3ae2dc213ce01e957ce2b8aec8418c37 | 16,825 | py | Python | tests/cli/test_cli.py | Rdvp1514/test_junkie | 9246a33abc9ac8d6584781dcbe95e1093507aa8f | [
"MIT"
] | 72 | 2018-10-25T18:32:42.000Z | 2022-02-02T03:03:09.000Z | tests/cli/test_cli.py | Rdvp1514/test_junkie | 9246a33abc9ac8d6584781dcbe95e1093507aa8f | [
"MIT"
] | 41 | 2018-12-13T22:30:35.000Z | 2021-11-04T09:08:49.000Z | tests/cli/test_cli.py | Rdvp1514/test_junkie | 9246a33abc9ac8d6584781dcbe95e1093507aa8f | [
"MIT"
] | 10 | 2019-04-05T10:51:11.000Z | 2021-12-06T15:18:56.000Z | import os
import pprint
from test_junkie.constants import CliConstants
from test_junkie.runner import Runner
from test_junkie.cli.cli_config import Config
from tests.QualityManager import QualityManager
from tests.cli.CliTestSuite import AuthApiSuite, ShoppingCartSuite, NewProductsSuite
from tests.cli.Cmd import Cmd
... | 44.986631 | 115 | 0.541813 |
1ebddd7a908306147f877c8696a04c281eda1589 | 2,012 | py | Python | regression/preprocess.py | maple7sha/dota2ml | 6854c4a8bb0c7369c09e0d459afde259c7025497 | [
"MIT"
] | null | null | null | regression/preprocess.py | maple7sha/dota2ml | 6854c4a8bb0c7369c09e0d459afde259c7025497 | [
"MIT"
] | null | null | null | regression/preprocess.py | maple7sha/dota2ml | 6854c4a8bb0c7369c09e0d459afde259c7025497 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
from progressbar import ProgressBar, Bar, Percentage, FormatLabel, ETA
import numpy as np
import os
if __name__ == "__main__":
import sys
preprocess(float(sys.argv[1])) | 30.484848 | 100 | 0.708748 |
1ebe07cee0735a77fe20dd6ba2303f3cd5efec9e | 76,053 | py | Python | src/deep_noise_to_image_models.py | furgerf/GAN-for-dermatologic-imaging | e90b06c46c7693e984a4c5b067e18460113cd23b | [
"Apache-2.0"
] | null | null | null | src/deep_noise_to_image_models.py | furgerf/GAN-for-dermatologic-imaging | e90b06c46c7693e984a4c5b067e18460113cd23b | [
"Apache-2.0"
] | 9 | 2020-09-26T01:22:00.000Z | 2022-01-22T18:00:52.000Z | src/deep_noise_to_image_models.py | furgerf/GAN-for-dermatologic-imaging | e90b06c46c7693e984a4c5b067e18460113cd23b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=too-many-locals,arguments-differ,unused-import
import tensorflow as tf
from tensorflow.keras.layers import (BatchNormalization, Dense, Dropout,
Flatten, MaxPooling2D, SpatialDropout2D,
add)
from tensorflo... | 34.104484 | 115 | 0.624578 |
1ebe52eedc566dc315d1fdcd8dd171eaf6d35325 | 439 | py | Python | webapp/dataaccess/plotlydash/__init__.py | Dataplate/dataplate | dc05f30570d20008add7325f14c33e730f253ced | [
"BSD-3-Clause"
] | 13 | 2020-12-29T06:11:39.000Z | 2022-03-24T22:23:02.000Z | webapp/dataaccess/plotlydash/__init__.py | rafael-gumiero/dataplate | f748bf658e2a5d1921d8c989dcd843caf8a062ca | [
"BSD-3-Clause"
] | null | null | null | webapp/dataaccess/plotlydash/__init__.py | rafael-gumiero/dataplate | f748bf658e2a5d1921d8c989dcd843caf8a062ca | [
"BSD-3-Clause"
] | 1 | 2022-03-24T22:22:08.000Z | 2022-03-24T22:22:08.000Z | from flask import Blueprint
from flask_login import login_required
bp_dash = Blueprint('dashboard', __name__, template_folder='../templates', url_prefix='/admin/dashboard/') | 48.777778 | 111 | 0.788155 |
1ebe6abd78cc7ad3109555677e6092c8924983a4 | 4,629 | py | Python | src/wrf_runner/wrf.py | tommz9/wrf_runner | 99728b5b05201877fdca79b8499e6c9f9a59a78d | [
"MIT"
] | 6 | 2018-01-06T21:13:31.000Z | 2021-07-03T03:49:21.000Z | src/wrf_runner/wrf.py | tommz9/wrf_runner | 99728b5b05201877fdca79b8499e6c9f9a59a78d | [
"MIT"
] | 3 | 2018-01-23T16:26:10.000Z | 2018-03-22T18:27:29.000Z | src/wrf_runner/wrf.py | tommz9/wrf_runner | 99728b5b05201877fdca79b8499e6c9f9a59a78d | [
"MIT"
] | null | null | null | import f90nml
import glob
import logging
import subprocess
import os
from .exceptions import WrfRunnerException
log = logging.getLogger('WRF')
| 33.543478 | 107 | 0.618492 |
1ec004a846fd164c978f762c473a34b9f2cb0e55 | 235 | py | Python | test/test_util.py | jeffw-github/autoprotocol-python | df87a07846b28fe433bb49f2c0c8054e2f197e89 | [
"BSD-3-Clause"
] | 113 | 2015-01-29T05:12:21.000Z | 2022-03-18T01:39:14.000Z | test/test_util.py | jeffw-github/autoprotocol-python | df87a07846b28fe433bb49f2c0c8054e2f197e89 | [
"BSD-3-Clause"
] | 131 | 2015-02-24T23:12:14.000Z | 2022-01-11T17:16:41.000Z | test/test_util.py | jeffw-github/autoprotocol-python | df87a07846b28fe433bb49f2c0c8054e2f197e89 | [
"BSD-3-Clause"
] | 45 | 2015-01-25T03:47:16.000Z | 2021-05-29T03:55:28.000Z | import json
| 23.5 | 57 | 0.646809 |
1ec070b4dfe048a4d96d7330f5ff96b4e65d4d4c | 596 | py | Python | setup.py | cxwx/naima | d8aa926fe757c4fd67583b6c341c3496a58b3e70 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cxwx/naima | d8aa926fe757c4fd67583b6c341c3496a58b3e70 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cxwx/naima | d8aa926fe757c4fd67583b6c341c3496a58b3e70 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from setuptools import setup, find_packages
setup(
use_scm_version={
"version_scheme": "post-release",
"local_scheme": "dirty-tag",
},
setup_requires=["setuptools_scm"],
packages=find_packages("src"),... | 22.923077 | 63 | 0.568792 |
1ec13ef63116630aba73dd39abdff816ffab65db | 692 | py | Python | jacked/matchers/_type.py | ramonhagenaars/jacked | 5cd31eb0fde46f31732529addda93f55d4dee55c | [
"MIT"
] | 4 | 2019-06-11T11:53:42.000Z | 2019-10-29T08:57:41.000Z | jacked/matchers/_type.py | ramonhagenaars/jacked | 5cd31eb0fde46f31732529addda93f55d4dee55c | [
"MIT"
] | 3 | 2019-06-19T20:54:28.000Z | 2019-06-21T12:57:59.000Z | jacked/matchers/_type.py | ramonhagenaars/jacked | 5cd31eb0fde46f31732529addda93f55d4dee55c | [
"MIT"
] | null | null | null | """
PRIVATE MODULE: do not import (from) it directly.
This module contains the ``TypeMatcher``class.
"""
import inspect
from jacked._injectable import Injectable
from jacked._container import Container
from jacked.matchers._base_matcher import BaseMatcher
| 23.862069 | 57 | 0.657514 |
1ec1af4e66fb99c58adf113a68c7e15d78bcb122 | 15,201 | py | Python | library/cohesity_view.py | cohesity/ansible-role-cohesity | 8f7fe004101457f12db20bc5e446563171c5b7a4 | [
"Apache-2.0"
] | null | null | null | library/cohesity_view.py | cohesity/ansible-role-cohesity | 8f7fe004101457f12db20bc5e446563171c5b7a4 | [
"Apache-2.0"
] | null | null | null | library/cohesity_view.py | cohesity/ansible-role-cohesity | 8f7fe004101457f12db20bc5e446563171c5b7a4 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/python
# Copyright (c) 2019 Cohesity Inc
# Apache License Version 2.0
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
from ansible.module_utils.basic import AnsibleModule
from cohesity_management_sdk.cohesity_client import CohesityClient
from cohesity_m... | 41.646575 | 111 | 0.666009 |
1ec1e4359d56546f46a7816e9ba4d788788f4cbc | 13,587 | py | Python | smi_analysis/integrate1D.py | NSLS-II-SMI/smi-analysis | d3e1237da86fac42014c0b27f49962e85a04277c | [
"BSD-3-Clause"
] | 1 | 2019-08-19T22:53:22.000Z | 2019-08-19T22:53:22.000Z | smi_analysis/integrate1D.py | NSLS-II-SMI/SMI_analysis | d3e1237da86fac42014c0b27f49962e85a04277c | [
"BSD-3-Clause"
] | 1 | 2020-04-21T15:19:12.000Z | 2020-04-21T15:19:12.000Z | smi_analysis/integrate1D.py | NSLS-II-SMI/smi-analysis | d3e1237da86fac42014c0b27f49962e85a04277c | [
"BSD-3-Clause"
] | 1 | 2020-04-21T15:17:14.000Z | 2020-04-21T15:17:14.000Z | import numpy as np
from pyFAI.multi_geometry import MultiGeometry
from pyFAI.ext import splitBBox
def inpaint_saxs(imgs, ais, masks):
"""
Inpaint the 2D image collected by the pixel detector to remove artifacts in later data reduction
Parameters:
-----------
:param imgs: List of 2D image in pixel... | 41.42378 | 141 | 0.614411 |
1ec32394dcecf728ff23af953f1ad48fb5e5de37 | 13,597 | py | Python | app/classes/api.py | MikeMart77/crafty | 686f5d4a210f7ff4b91e0427e6ebc5e2a5dcbeb7 | [
"Apache-2.0"
] | 37 | 2020-07-11T02:41:31.000Z | 2022-01-03T19:33:49.000Z | app/classes/api.py | MikeMart77/crafty | 686f5d4a210f7ff4b91e0427e6ebc5e2a5dcbeb7 | [
"Apache-2.0"
] | 21 | 2020-07-11T12:08:12.000Z | 2021-09-23T10:55:09.000Z | app/classes/api.py | MikeMart77/crafty | 686f5d4a210f7ff4b91e0427e6ebc5e2a5dcbeb7 | [
"Apache-2.0"
] | 18 | 2020-07-11T11:36:30.000Z | 2022-01-14T07:11:37.000Z | import os
import secrets
import threading
import tornado.web
import tornado.escape
import logging.config
from app.classes.models import Roles, Users, check_role_permission, Remote, model_to_dict
from app.classes.multiserv import multi
from app.classes.helpers import helper
from app.classes.backupmgr import backupmgr
... | 33.823383 | 138 | 0.572994 |
1ec73e1f05a7ae3658721b17f1e79c70e5b06df4 | 6,365 | py | Python | exercises/adaboost_scenario.py | OmriBenbenisty/IML.HUJI | 18ca1b8086b8aaa149dca95f96de26750ea0497f | [
"MIT"
] | null | null | null | exercises/adaboost_scenario.py | OmriBenbenisty/IML.HUJI | 18ca1b8086b8aaa149dca95f96de26750ea0497f | [
"MIT"
] | null | null | null | exercises/adaboost_scenario.py | OmriBenbenisty/IML.HUJI | 18ca1b8086b8aaa149dca95f96de26750ea0497f | [
"MIT"
] | null | null | null | import numpy as np
from typing import Tuple
import plotly.io
from IMLearn.metalearners.adaboost import AdaBoost
from IMLearn.learners.classifiers import DecisionStump
from IMLearn.metrics import accuracy
from utils import *
import plotly.graph_objects as go
from plotly.subplots import make_subplots
plotly.io.rendere... | 31.509901 | 117 | 0.538256 |
1ec874b53966585532bb5fdfd27fb724f143ef4e | 1,012 | py | Python | testing_suite/test_splitMD.py | rhpvorderman/TALON | 04706575d8ad0975da94c89581c8de5d09522d61 | [
"MIT"
] | null | null | null | testing_suite/test_splitMD.py | rhpvorderman/TALON | 04706575d8ad0975da94c89581c8de5d09522d61 | [
"MIT"
] | null | null | null | testing_suite/test_splitMD.py | rhpvorderman/TALON | 04706575d8ad0975da94c89581c8de5d09522d61 | [
"MIT"
] | null | null | null | import pytest
from talon import transcript_utils as tu
| 29.764706 | 70 | 0.519763 |
1ec96512a01960a89be479a0c802aa105636cfd3 | 4,239 | py | Python | tests.py | arjnklc/Optimal-Coverage-in-WSN | d2536e770eb219630b45fb6a1e7aadffb408bf96 | [
"MIT"
] | 3 | 2020-03-18T14:13:22.000Z | 2022-03-26T21:17:53.000Z | tests.py | arjnklc/Optimal-Coverage-in-WSN | d2536e770eb219630b45fb6a1e7aadffb408bf96 | [
"MIT"
] | null | null | null | tests.py | arjnklc/Optimal-Coverage-in-WSN | d2536e770eb219630b45fb6a1e7aadffb408bf96 | [
"MIT"
] | 1 | 2020-04-16T12:08:26.000Z | 2020-04-16T12:08:26.000Z | from matplotlib import pyplot as plt
import random
from solver import Solver
import json
import time
| 30.496403 | 133 | 0.629158 |
1ecc7db229fc02b19f346f4097ebd946363a22e8 | 9,903 | py | Python | plugins/core/merge_detections_nms_fusion.py | Kitware/VAIME | 47b24b9d8a208cf8c621e5bb1088c61fcf507af6 | [
"BSD-3-Clause"
] | 45 | 2016-08-24T12:56:28.000Z | 2019-04-11T18:11:30.000Z | plugins/core/merge_detections_nms_fusion.py | Kitware/VAIME | 47b24b9d8a208cf8c621e5bb1088c61fcf507af6 | [
"BSD-3-Clause"
] | 37 | 2016-08-23T19:49:37.000Z | 2019-04-15T00:51:20.000Z | plugins/core/merge_detections_nms_fusion.py | Kitware/VAIME | 47b24b9d8a208cf8c621e5bb1088c61fcf507af6 | [
"BSD-3-Clause"
] | 40 | 2016-08-23T21:44:17.000Z | 2019-04-20T23:39:53.000Z | # ckwg +29
# Copyright 2022 by Kitware, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of condition... | 36.542435 | 132 | 0.63304 |
1eceacebfd4dbe82e0eb8410fe4b6fe74dbc1b33 | 5,235 | py | Python | pyroc/compare.py | noudald/pyroc | 9f73df0c0b0718918d9cbbb532d0eeea73a421ae | [
"MIT"
] | 1 | 2022-01-01T03:42:05.000Z | 2022-01-01T03:42:05.000Z | pyroc/compare.py | noudald/pyroc | 9f73df0c0b0718918d9cbbb532d0eeea73a421ae | [
"MIT"
] | null | null | null | pyroc/compare.py | noudald/pyroc | 9f73df0c0b0718918d9cbbb532d0eeea73a421ae | [
"MIT"
] | null | null | null | """Tools for comparing ROC curves with AUC."""
from math import erf
from typing import Optional, Tuple
import numpy as np
from pyroc import bootstrap_roc, ROC
def gaussian_cdf(x: float) -> float:
"""Gaussian cummulative distribution function for N(0, 1).
Parameters
----------
x
Quantile fo... | 34.215686 | 79 | 0.649857 |
1ecf459877e93b77d15aa389ffd7f71974f99eea | 420 | py | Python | code/get_ordinals.py | lebronlambert/Information_Extraction_DeepRL | 0463cde18edd77e00e6efd7b57fe937024ac56ef | [
"MIT"
] | 251 | 2016-06-15T15:01:59.000Z | 2021-11-29T09:23:30.000Z | code/get_ordinals.py | lebronlambert/Information_Extraction_DeepRL | 0463cde18edd77e00e6efd7b57fe937024ac56ef | [
"MIT"
] | 5 | 2017-01-04T21:50:38.000Z | 2018-06-06T01:42:07.000Z | code/get_ordinals.py | lebronlambert/Information_Extraction_DeepRL | 0463cde18edd77e00e6efd7b57fe937024ac56ef | [
"MIT"
] | 87 | 2016-06-14T17:27:05.000Z | 2021-11-09T08:43:09.000Z | import pickle
import inflect
p = inflect.engine()
words = set(['first','second','third','fourth','fifth','sixth','seventh','eighth','ninth','tenth','eleventh','twelfth','thirteenth','fourteenth','fifteenth',
'sixteenth','seventeenth','eighteenth','nineteenth','twentieth','twenty-first','twenty-second','twenty-third','... | 60 | 157 | 0.714286 |
1ed4b88083243d050dc270c0025997643f62ddf5 | 5,070 | py | Python | sample-models/criticalperiod.py | vishalbelsare/helipad | 8102c379c80dedc91625a7b884cf5c7b48dd134f | [
"MIT"
] | 16 | 2020-03-23T22:50:10.000Z | 2022-03-24T02:26:29.000Z | sample-models/criticalperiod.py | vishalbelsare/helipad | 8102c379c80dedc91625a7b884cf5c7b48dd134f | [
"MIT"
] | 3 | 2020-09-03T07:54:36.000Z | 2021-07-26T16:34:22.000Z | sample-models/criticalperiod.py | vishalbelsare/helipad | 8102c379c80dedc91625a7b884cf5c7b48dd134f | [
"MIT"
] | 2 | 2020-03-24T19:12:20.000Z | 2020-09-04T17:34:15.000Z | #A reconstruction of Hurford (1991), "The Evolution of the Critical Period for Language Acquisition"
#https://www.sciencedirect.com/science/article/abs/pii/001002779190024X
from helipad import Helipad, Agent
import random
from numpy.random import choice
from numpy import mean
heli = Helipad()
heli.name = 'Critical Pe... | 38.70229 | 177 | 0.710454 |
1ed5b90f072bc7fbfd8626ed674360ad4c263b38 | 1,321 | py | Python | dags/dag_test_v1.py | DataDavD/ddflow_practice | 7bbdc64164ee2d517efc4bbecb2cd89541c988a2 | [
"MIT"
] | 1 | 2019-03-04T19:42:39.000Z | 2019-03-04T19:42:39.000Z | dags/dag_test_v1.py | DataDavD/ddflow_practice | 7bbdc64164ee2d517efc4bbecb2cd89541c988a2 | [
"MIT"
] | null | null | null | dags/dag_test_v1.py | DataDavD/ddflow_practice | 7bbdc64164ee2d517efc4bbecb2cd89541c988a2 | [
"MIT"
] | null | null | null | # import packages
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from datetime import datetime, timedelta
from external_func import random_date
default_args = {
'owner': 'DavD',
'depends_on_past': False,
'star... | 22.389831 | 77 | 0.66919 |
1ed5ca41b8d66ded4bdeb1cf3ea0b3e35e8d7ee3 | 988 | py | Python | PDFSegmenter/util/StorageUtil.py | MBAigner/PDFSegmenter | a559809355f7d3607111b55934dd5f24b674b365 | [
"MIT"
] | 11 | 2020-09-20T16:49:49.000Z | 2022-01-20T01:52:55.000Z | GraphConverter/util/StorageUtil.py | MBAigner/GraphConverter | 243a4b24928ce3b6b570a16a31280cc322e713fc | [
"MIT"
] | null | null | null | GraphConverter/util/StorageUtil.py | MBAigner/GraphConverter | 243a4b24928ce3b6b570a16a31280cc322e713fc | [
"MIT"
] | 1 | 2020-10-29T12:35:59.000Z | 2020-10-29T12:35:59.000Z | import pickle
def save_object(obj, path, name):
"""
:param obj:
:param path:
:param name:
:return:
"""
with open(path + name + '.pkl', 'wb') as f:
pickle.dump(obj, f, pickle.HIGHEST_PROTOCOL)
def load_object(path, name):
"""
:param path:
:param name:
:return:
... | 17.642857 | 79 | 0.58502 |
1ed66bc0d99f35be3eb38f391314fbb25a48d280 | 219 | py | Python | softmax.py | maomran/softmax | 330a16712d44a0195011710e24b65e7732e784b0 | [
"Apache-2.0"
] | 14 | 2018-06-19T01:58:18.000Z | 2022-03-23T18:27:45.000Z | softmax.py | MohammadHashemi-ai/softmax | 330a16712d44a0195011710e24b65e7732e784b0 | [
"Apache-2.0"
] | 3 | 2019-04-11T15:45:18.000Z | 2021-10-02T02:22:38.000Z | softmax.py | MohammadHashemi-ai/softmax | 330a16712d44a0195011710e24b65e7732e784b0 | [
"Apache-2.0"
] | 10 | 2018-10-31T06:46:51.000Z | 2022-03-23T18:27:35.000Z |
import math
z = [1.0,1 ,1, 1.0]
z_exp = [math.exp(i) for i in z]
print([round(i, 2) for i in z_exp])
sum_z_exp = sum(z_exp)
print(round(sum_z_exp, 2))
softmax = [round(i / sum_z_exp, 3) for i in z_exp]
print(softmax)
| 19.909091 | 50 | 0.652968 |
1ed6c472a3e3ebca7687498a3cd8af7d6986cd28 | 3,653 | py | Python | kaze_project/preprocessing.py | Albert-Aiqi-Zhang/Typhoon-Web-Application | b464e4cf21a33d0ee10ea625bda6be446f4fe352 | [
"MIT"
] | null | null | null | kaze_project/preprocessing.py | Albert-Aiqi-Zhang/Typhoon-Web-Application | b464e4cf21a33d0ee10ea625bda6be446f4fe352 | [
"MIT"
] | null | null | null | kaze_project/preprocessing.py | Albert-Aiqi-Zhang/Typhoon-Web-Application | b464e4cf21a33d0ee10ea625bda6be446f4fe352 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from datetime import datetime
from pandas.io import sql
import pymysql
import csv
import os
import sys
import pymysql
df1 = pd.read_csv("../database_engineering/data_of_typhoon/table2001.csv", encoding="SHIFT-JIS")
f = lambda x: datetime(x[""], x[""], x[""], x["UTC"], 0, 0)
df1["... | 34.140187 | 120 | 0.644949 |
1ed7990a7bbc4e7457fa21480a6253094958d11c | 198 | py | Python | src/eazyserver/rpc/__init__.py | MacherLabs/eazyserver | ce207f06971f8e81a9282f58de74d71b07ba7118 | [
"MIT"
] | 4 | 2019-02-23T13:24:36.000Z | 2021-03-25T07:55:09.000Z | src/eazyserver/rpc/__init__.py | MacherLabs/eazyserver | ce207f06971f8e81a9282f58de74d71b07ba7118 | [
"MIT"
] | 1 | 2019-03-07T13:01:14.000Z | 2019-03-07T13:01:14.000Z | src/eazyserver/rpc/__init__.py | MacherLabs/eazyserver | ce207f06971f8e81a9282f58de74d71b07ba7118 | [
"MIT"
] | 2 | 2019-05-09T15:07:21.000Z | 2020-09-22T16:14:56.000Z | import logging
logger = logging.getLogger(__name__)
logger.debug("Loaded " + __name__)
from jsonrpcserver import methods
from .exceptions import *
from .influxdb_api import *
from .meta import *
| 18 | 36 | 0.777778 |
1ed8ab4634fecdc480bd9bc865604fa2a7d37528 | 324 | py | Python | tests/examples/code_description/demo.py | misode/beet | 9f747c25e08286b32b06d1f1c1e6d52c353b1c43 | [
"MIT"
] | null | null | null | tests/examples/code_description/demo.py | misode/beet | 9f747c25e08286b32b06d1f1c1e6d52c353b1c43 | [
"MIT"
] | null | null | null | tests/examples/code_description/demo.py | misode/beet | 9f747c25e08286b32b06d1f1c1e6d52c353b1c43 | [
"MIT"
] | null | null | null | from beet import Context
| 29.454545 | 83 | 0.666667 |
1edbfe7f814ec1f02386dc58cb0effda16ed7185 | 4,479 | py | Python | src/features/junjie_features.py | davidjurgens/prosocial-conversation-forecasting | 473496d59e37a78d6246bf0f8eba3571114e29d2 | [
"BSD-2-Clause"
] | 3 | 2021-05-03T02:22:08.000Z | 2021-11-03T17:50:30.000Z | src/features/junjie_features.py | davidjurgens/prosocial-conversation-forecasting | 473496d59e37a78d6246bf0f8eba3571114e29d2 | [
"BSD-2-Clause"
] | null | null | null | src/features/junjie_features.py | davidjurgens/prosocial-conversation-forecasting | 473496d59e37a78d6246bf0f8eba3571114e29d2 | [
"BSD-2-Clause"
] | null | null | null | import os
import pandas as pd
import datetime
from genderperformr import GenderPerformr
from agreementr import Agreementr
from politenessr import Politenessr
from supportr import Supportr
import enchant
import requests
import json
from googleapiclient import discovery
from enchant.checker import SpellChecker
from encha... | 31.765957 | 107 | 0.662871 |
1edc4333fc4f6d215d68beba2d0a07189e353a24 | 1,101 | py | Python | typings/bpy_extras/wm_utils/progress_report.py | Argmaster/PyR3 | 6786bcb6a101fe4bd4cc50fe43767b8178504b15 | [
"MIT"
] | 2 | 2021-12-12T18:51:52.000Z | 2022-02-23T09:49:16.000Z | src/blender/blender_autocomplete-master/2.92/bpy_extras/wm_utils/progress_report.py | JonasWard/ClayAdventures | a716445ac690e4792e70658319aa1d5299f9c9e9 | [
"MIT"
] | 2 | 2021-11-08T12:09:02.000Z | 2021-12-12T23:01:12.000Z | src/blender/blender_autocomplete-master/2.92/bpy_extras/wm_utils/progress_report.py | JonasWard/ClayAdventures | a716445ac690e4792e70658319aa1d5299f9c9e9 | [
"MIT"
] | null | null | null | import sys
import typing
| 11.350515 | 39 | 0.367847 |
1edc7a8db3f321f9faeebf04fec6861f2a1ff068 | 34,355 | py | Python | HyPAT/source_code/permeation_estimates.py | IdahoLabResearch/HyPAT | 19a29e1221d62796259ef36bda815d0b214e810f | [
"MIT"
] | 1 | 2022-01-10T13:43:36.000Z | 2022-01-10T13:43:36.000Z | HyPAT/source_code/permeation_estimates.py | IdahoLabResearch/HyPAT | 19a29e1221d62796259ef36bda815d0b214e810f | [
"MIT"
] | null | null | null | HyPAT/source_code/permeation_estimates.py | IdahoLabResearch/HyPAT | 19a29e1221d62796259ef36bda815d0b214e810f | [
"MIT"
] | 1 | 2022-01-06T14:53:04.000Z | 2022-01-06T14:53:04.000Z | """ Main page to accept input from the user. This is the Permeation Estimates tab in the
Hydrogen Permeation Analysis Tool """
import tkinter as tk
from tkinter import ttk, font
from .data_storage import Widgets
# Imports for the ORingsAndDefaultVals class
import numpy as np
import os
import platform
| 57.449833 | 120 | 0.59936 |
1edc86f95f74d60904bfb1cdfc88534bf9511c0e | 970 | py | Python | End/end.py | naveeng2402/Quiz_App | 5c7e760881d09a5d816b8cfbc497c9c37c25bf23 | [
"MIT"
] | 1 | 2021-01-07T06:23:24.000Z | 2021-01-07T06:23:24.000Z | End/end.py | naveeng2402/Quiz_App | 5c7e760881d09a5d816b8cfbc497c9c37c25bf23 | [
"MIT"
] | 1 | 2021-01-09T03:16:50.000Z | 2021-01-09T04:15:32.000Z | End/end.py | naveeng2402/Quiz_App | 5c7e760881d09a5d816b8cfbc497c9c37c25bf23 | [
"MIT"
] | null | null | null | from PyQt5 import QtGui, QtCore, QtWidgets
from PyQt5.uic import loadUi
import sys
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
widget = QtWidgets.QStackedWidget()
widget.resize(400,300)
widget.addWidget(End("Naveen, Naveen, Naveen, Naveen"))
widget.show()
sys.exit(app.exe... | 38.8 | 115 | 0.613402 |
1edcf9bdd2579de673f98bfdac5a00e3790adefe | 634 | py | Python | Packages/com.popo.bdframework/3rdPlugins/AssetGraph-1.8-release-BD/DocTools~/fixdoc.py | AzureZheng/BDFramework.Core | 31bd371a63b5c229be6f175af4b3341e4d7abeb7 | [
"Apache-2.0"
] | 1 | 2022-02-22T01:57:18.000Z | 2022-02-22T01:57:18.000Z | Packages/com.popo.bdframework/3rdPlugins/AssetGraph-1.8-release-BD/DocTools~/fixdoc.py | AzureZheng/BDFramework.Core | 31bd371a63b5c229be6f175af4b3341e4d7abeb7 | [
"Apache-2.0"
] | null | null | null | Packages/com.popo.bdframework/3rdPlugins/AssetGraph-1.8-release-BD/DocTools~/fixdoc.py | AzureZheng/BDFramework.Core | 31bd371a63b5c229be6f175af4b3341e4d7abeb7 | [
"Apache-2.0"
] | null | null | null | import os
srcfile = 'DocTools~/assetgraph_from_gdoc.md'
pnglist = 'DocTools~/order.txt'
dstfile = 'Documentation~/assetgraph.md'
num = 1
if os.path.exists(dstfile):
os.remove(dstfile)
with open(srcfile) as f:
doc = f.read()
f.close()
with open(pnglist) as fpng:
while True:
pnglist = fpng.readline()
if n... | 19.8125 | 66 | 0.660883 |
1edd3cfe819dca9b0cb34c173c8c69eb93b46253 | 3,256 | py | Python | plenum/test/pool_transactions/test_change_ha_persists_post_nodes_restart.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 148 | 2017-07-11T19:05:25.000Z | 2022-03-16T21:31:20.000Z | plenum/test/pool_transactions/test_change_ha_persists_post_nodes_restart.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 561 | 2017-06-29T17:59:56.000Z | 2022-03-09T15:47:14.000Z | plenum/test/pool_transactions/test_change_ha_persists_post_nodes_restart.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 378 | 2017-06-29T17:45:27.000Z | 2022-03-26T07:27:59.000Z | from plenum.common.util import hexToFriendly, randomString
from stp_core.common.log import getlogger
from plenum.test.node_catchup.helper import waitNodeDataEquality
from plenum.test.node_request.helper import sdk_ensure_pool_functional
from plenum.test.pool_transactions.helper import sdk_send_update_node, sdk_pool_ref... | 45.222222 | 90 | 0.623464 |
1ede1d471d11d6ede34f48c3523dfb6a30ce41e9 | 2,378 | py | Python | tests/functional/conftest.py | hypothesis/viahtml | ec067e7d4aaa42d7c6c3f5f732e4e713445adf2d | [
"BSD-2-Clause"
] | null | null | null | tests/functional/conftest.py | hypothesis/viahtml | ec067e7d4aaa42d7c6c3f5f732e4e713445adf2d | [
"BSD-2-Clause"
] | 37 | 2020-09-07T12:00:09.000Z | 2022-03-31T16:59:58.000Z | tests/functional/conftest.py | hypothesis/viahtml | ec067e7d4aaa42d7c6c3f5f732e4e713445adf2d | [
"BSD-2-Clause"
] | 1 | 2021-05-18T09:35:45.000Z | 2021-05-18T09:35:45.000Z | import os
# isort: off
# This import has to come before the CheckmateClient import or the functional
# tests break.
# See https://github.com/gevent/gevent/issues/1016
import pywb.apps.frontendapp # pylint:disable=unused-import
# isort: on
import httpretty as httpretty_
import pytest
import webtest
from tests.conft... | 26.719101 | 86 | 0.682086 |
1edfb9ad2f00191faa74be375325f1d8f64922ae | 1,642 | py | Python | tests/test_findmacula.py | davtoh/RRTools | 6dde2d4622719d9031bf21ffbf7723231a0e2003 | [
"BSD-3-Clause"
] | 1 | 2019-07-16T03:54:22.000Z | 2019-07-16T03:54:22.000Z | tests/test_findmacula.py | davtoh/RRTools | 6dde2d4622719d9031bf21ffbf7723231a0e2003 | [
"BSD-3-Clause"
] | null | null | null | tests/test_findmacula.py | davtoh/RRTools | 6dde2d4622719d9031bf21ffbf7723231a0e2003 | [
"BSD-3-Clause"
] | 1 | 2019-07-09T02:49:06.000Z | 2019-07-09T02:49:06.000Z | from __future__ import absolute_import
import cv2
import numpy as np
from . import tesisfunctions as tf
fn1 = r'im1_1.jpg'
#fn1 = r"C:\Users\Davtoh\Documents\2015_01\Tesis tests\retinal photos\ALCATEL ONE TOUCH IDOL X\left_DAVID\IMG_20150730_115534_1.jpg"
name = fn1.split('\\')[-1].split(".")[0]
fore = cv2.imread(f... | 26.483871 | 132 | 0.729598 |
1ee0cd00d8489da58d377eeb5afb082ee1712314 | 243 | py | Python | src/Dialog/HelpDialog.py | jtrfid/tkzgeom | b3b1baf33b89e7b670bc736d28818456ac4547ad | [
"MIT"
] | null | null | null | src/Dialog/HelpDialog.py | jtrfid/tkzgeom | b3b1baf33b89e7b670bc736d28818456ac4547ad | [
"MIT"
] | null | null | null | src/Dialog/HelpDialog.py | jtrfid/tkzgeom | b3b1baf33b89e7b670bc736d28818456ac4547ad | [
"MIT"
] | null | null | null | from PyQt5 import QtCore, QtWidgets, QtGui, uic
| 30.375 | 53 | 0.679012 |
1ee1812463f8fbaeed25c096d3cffb64ac276cfe | 5,839 | py | Python | setup.py | tgsmith61591/smite | 0863b0b94897ad8d8d9184b792cdb275627e1ac4 | [
"BSD-3-Clause"
] | 113 | 2017-03-09T18:02:35.000Z | 2022-03-26T23:07:14.000Z | setup.py | tgsmith61591/smite | 0863b0b94897ad8d8d9184b792cdb275627e1ac4 | [
"BSD-3-Clause"
] | 11 | 2017-03-04T17:45:36.000Z | 2019-11-26T14:00:43.000Z | setup.py | tgsmith61591/smite | 0863b0b94897ad8d8d9184b792cdb275627e1ac4 | [
"BSD-3-Clause"
] | 31 | 2017-04-18T10:09:41.000Z | 2021-05-26T21:24:26.000Z | # -*- coding: utf-8 -*-
#
# Author: Taylor Smith <taylor.smith@alkaline-ml.com>
#
# Setup the SMRT module
from __future__ import print_function, absolute_import, division
from distutils.command.clean import clean
# from setuptools import setup # DO NOT use setuptools!!!!!!
import shutil
import os
import sys
if sys.v... | 38.926667 | 109 | 0.564309 |
1ee259a2eb95840b4baa493e66624fb52f80a738 | 2,220 | py | Python | source/Modules/ImageMeta.py | Jacktavitt/navigate_building | cfa6aa2fffdf107a619b2627f9a0b0397cd1a8c2 | [
"MIT"
] | null | null | null | source/Modules/ImageMeta.py | Jacktavitt/navigate_building | cfa6aa2fffdf107a619b2627f9a0b0397cd1a8c2 | [
"MIT"
] | null | null | null | source/Modules/ImageMeta.py | Jacktavitt/navigate_building | cfa6aa2fffdf107a619b2627f9a0b0397cd1a8c2 | [
"MIT"
] | null | null | null | import numpy
import re
with open('/home/johnny/Documents/navigate_building/source/assets/images_with_plaques.txt') as f:
LIST_OF_POSITIVES = f.read().split('\n')
| 37 | 197 | 0.605856 |
1ee2eaa1b69e4110f3a47a8efebc193125827f64 | 2,153 | py | Python | processes/tests/test_integration.py | kinoreel/kino-gather | defc0d6b311651f985467b5bfcfdbf77d73c10ae | [
"MIT"
] | null | null | null | processes/tests/test_integration.py | kinoreel/kino-gather | defc0d6b311651f985467b5bfcfdbf77d73c10ae | [
"MIT"
] | 3 | 2017-06-03T16:50:56.000Z | 2017-10-01T09:24:37.000Z | processes/tests/test_integration.py | kinoreel/kino-gather | defc0d6b311651f985467b5bfcfdbf77d73c10ae | [
"MIT"
] | null | null | null | import unittest
from processes.get_omdb import Main as get_omdb
from processes.get_tmdb import Main as get_tmdb
from processes.get_itunes import Main as get_itunes
from processes.get_amazon import Main as get_amazon
from processes.get_trailer import Main as get_trailer
from processes.get_youtube import Main as get_you... | 43.938776 | 77 | 0.764515 |
1ee34c668cbb5e7a33e3982c437732a0bbb5465e | 2,532 | py | Python | sefara/commands/dump.py | timodonnell/pathase | f8006850ba8b8730c156bdeda0048c1cb10dd0f4 | [
"Apache-2.0"
] | null | null | null | sefara/commands/dump.py | timodonnell/pathase | f8006850ba8b8730c156bdeda0048c1cb10dd0f4 | [
"Apache-2.0"
] | null | null | null | sefara/commands/dump.py | timodonnell/pathase | f8006850ba8b8730c156bdeda0048c1cb10dd0f4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015. Mount Sinai School of Medicine
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 36.695652 | 86 | 0.734202 |
1ee389ea08e9dc83d962636990f89404cc255720 | 99 | py | Python | package/niflow/ants/brainextraction/__init__.py | rciric/poldracklab-antsbrainextraction | 78544a1b72b4b9b505c3a72654990789fad554a4 | [
"BSD-3-Clause"
] | null | null | null | package/niflow/ants/brainextraction/__init__.py | rciric/poldracklab-antsbrainextraction | 78544a1b72b4b9b505c3a72654990789fad554a4 | [
"BSD-3-Clause"
] | 1 | 2018-11-06T17:31:13.000Z | 2018-11-06T17:31:13.000Z | package/niflow/ants/brainextraction/__init__.py | rciric/poldracklab-antsbrainextraction | 78544a1b72b4b9b505c3a72654990789fad554a4 | [
"BSD-3-Clause"
] | 2 | 2018-10-20T03:11:24.000Z | 2018-11-23T11:46:28.000Z | from .__about__ import __version__
from .workflows.brainextraction import init_brain_extraction_wf
| 33 | 63 | 0.888889 |
1ee400912154e4d846dc69d815244de0746b525e | 10,531 | py | Python | tests/notifications/test_lure_alerts.py | plastr/extrasolar-game | 1aad5971556d498e3617afe75f27e2f4132d4668 | [
"MIT",
"Unlicense"
] | null | null | null | tests/notifications/test_lure_alerts.py | plastr/extrasolar-game | 1aad5971556d498e3617afe75f27e2f4132d4668 | [
"MIT",
"Unlicense"
] | null | null | null | tests/notifications/test_lure_alerts.py | plastr/extrasolar-game | 1aad5971556d498e3617afe75f27e2f4132d4668 | [
"MIT",
"Unlicense"
] | null | null | null | # Copyright (c) 2010-2011 Lazy 8 Studios, LLC.
# All rights reserved.
import re
from front import Constants
from front.lib import gametime, db
from front.backend import notifications
from front.tests import base
from front.tests.base import points, rects, SIX_HOURS
| 55.136126 | 118 | 0.674295 |
1ee52fe1eea1eb33ec6b8f41d0abb79ccd50ea30 | 1,935 | py | Python | 2018/1A/robot_cashier.py | AmauryLiet/CodeJam | 3e02bce287e3c640d89eea4b0d5878319c79d59b | [
"MIT"
] | null | null | null | 2018/1A/robot_cashier.py | AmauryLiet/CodeJam | 3e02bce287e3c640d89eea4b0d5878319c79d59b | [
"MIT"
] | null | null | null | 2018/1A/robot_cashier.py | AmauryLiet/CodeJam | 3e02bce287e3c640d89eea4b0d5878319c79d59b | [
"MIT"
] | null | null | null | N = int(input())
MAX, VAR, FIX = range(3)
# latest=9 r=3 b=4
# max_variable_fixed_values = [
# 3 4 5
# 2 3 3
# 2 1 5
# 2 4 2
# 2 2 4
# 2 5 1
# ]
for case_id in range(1, N + 1):
r, b, c = map(int, input().split())
max_variable_fixed_values = sorted([
[*map(int, input().split())]
for _ in ra... | 24.1875 | 85 | 0.54522 |
948ff2e7cd1be6332bf80dcc9be5aab26670bd38 | 3,228 | py | Python | applications/CableNetApplication/python_scripts/edge_cable_element_process.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/CableNetApplication/python_scripts/edge_cable_element_process.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/CableNetApplication/python_scripts/edge_cable_element_process.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | import KratosMultiphysics as KratosMultiphysics
import KratosMultiphysics.CableNetApplication as CableNetApplication
from KratosMultiphysics import Logger
| 41.384615 | 117 | 0.662949 |
948ff9376e90effe3429987047d11ff66a60dc3d | 1,717 | py | Python | conductor_helpers/simple_task.py | metamorph-inc/conductor-mdao | 293744893aba5c44f025414d83f53cb7cedd5299 | [
"MIT"
] | null | null | null | conductor_helpers/simple_task.py | metamorph-inc/conductor-mdao | 293744893aba5c44f025414d83f53cb7cedd5299 | [
"MIT"
] | null | null | null | conductor_helpers/simple_task.py | metamorph-inc/conductor-mdao | 293744893aba5c44f025414d83f53cb7cedd5299 | [
"MIT"
] | null | null | null | from task import Task
if __name__ == '__main__':
from conductor.conductor import MetadataClient, WorkflowClient
t = SimpleTask('Simple Task Test', 'Only a test.')
t.register()
# Make a workflow
workflow = {
'name': 'SimpleTask test workflow',
'description': 'just a test',
... | 27.253968 | 94 | 0.561444 |
94903f4db5ded24ce673ca52deadbca7fd5b88fe | 1,355 | py | Python | order_book/utils.py | kostya93/order-book | 23c433f1306feae29d1ecec2349f59791eee0e3e | [
"MIT"
] | null | null | null | order_book/utils.py | kostya93/order-book | 23c433f1306feae29d1ecec2349f59791eee0e3e | [
"MIT"
] | null | null | null | order_book/utils.py | kostya93/order-book | 23c433f1306feae29d1ecec2349f59791eee0e3e | [
"MIT"
] | null | null | null | from operator import attrgetter
from typing import List, Iterable, Optional
from .models import MaxCostRecord, MaxCostInterval
| 32.261905 | 76 | 0.681181 |
949044840959681b11f44caa744946f42857148c | 12,133 | py | Python | tf_verify/spatial/t_2_norm_transformer.py | Neelanjana314/eran | 4465000ac85781f2e3663683432c7525e94dc59a | [
"Apache-2.0"
] | 254 | 2018-11-14T15:43:01.000Z | 2022-03-24T09:29:12.000Z | tf_verify/spatial/t_2_norm_transformer.py | Neelanjana314/eran | 4465000ac85781f2e3663683432c7525e94dc59a | [
"Apache-2.0"
] | 93 | 2018-11-15T02:37:37.000Z | 2022-03-31T07:37:45.000Z | tf_verify/spatial/t_2_norm_transformer.py | Neelanjana314/eran | 4465000ac85781f2e3663683432c7525e94dc59a | [
"Apache-2.0"
] | 109 | 2018-11-14T17:04:00.000Z | 2022-03-13T15:45:45.000Z | """
Copyright 2020 ETH Zurich, Secure, Reliable, and Intelligent Systems Lab
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 requi... | 38.887821 | 79 | 0.466908 |
94939c69a802e45817f7d2c9ef2abd0fbaf78ce6 | 939 | py | Python | userbot/modules/sql_helper/keep_read_sql.py | FS-Project/FeRuBoT | 54cc12243ccbeb289ed37d691698fbd42fd8f740 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2021-01-24T20:35:11.000Z | 2021-03-10T18:16:26.000Z | userbot/modules/sql_helper/keep_read_sql.py | FS-Project/FeRuBoT | 54cc12243ccbeb289ed37d691698fbd42fd8f740 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | userbot/modules/sql_helper/keep_read_sql.py | FS-Project/FeRuBoT | 54cc12243ccbeb289ed37d691698fbd42fd8f740 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2021-03-10T18:16:25.000Z | 2021-03-10T18:16:25.000Z | # INFO : ini merupakan copy source code dari repo one4ubot, dan sudah mendapatkan izin dari pemilik.
# INFO : This is a copy of the source code from the One4ubot repo, and has the permission of the owner.
try:
from userbot.modules.sql_helper import SESSION, BASE
except ImportError:
raise AttributeError
from sq... | 22.357143 | 103 | 0.681576 |
9493adf2b60df22181c7328199d9efdac249dd59 | 1,145 | py | Python | devito/data/meta.py | jrt54/devito | 5a63696db03ae77c0925fd4a96a531fd21308727 | [
"MIT"
] | 1 | 2020-09-17T02:53:06.000Z | 2020-09-17T02:53:06.000Z | devito/data/meta.py | jrt54/devito | 5a63696db03ae77c0925fd4a96a531fd21308727 | [
"MIT"
] | null | null | null | devito/data/meta.py | jrt54/devito | 5a63696db03ae77c0925fd4a96a531fd21308727 | [
"MIT"
] | null | null | null | from devito.tools import Tag
__all__ = ['DOMAIN', 'CORE', 'OWNED', 'HALO', 'NOPAD', 'FULL',
'LEFT', 'RIGHT', 'CENTER']
CORE = DataRegion('core') # within DOMAIN
OWNED = DataRegion('owned') # within DOMAIN
DOMAIN = DataRegion('domain') # == CORE + OWNED
HALO = DataRegion('halo')
NOPAD = DataRegion('nop... | 22.9 | 62 | 0.603493 |
949420d6528ee0baa340cf6d09405abb21c94607 | 16,870 | py | Python | landlab/components/species_evolution/zone_controller.py | amanaster2/landlab | ea17f8314eb12e3fc76df66c9b6ff32078caa75c | [
"MIT"
] | 257 | 2015-01-13T16:01:21.000Z | 2022-03-29T22:37:43.000Z | landlab/components/species_evolution/zone_controller.py | amanaster2/landlab | ea17f8314eb12e3fc76df66c9b6ff32078caa75c | [
"MIT"
] | 1,222 | 2015-02-05T21:36:53.000Z | 2022-03-31T17:53:49.000Z | landlab/components/species_evolution/zone_controller.py | amanaster2/landlab | ea17f8314eb12e3fc76df66c9b6ff32078caa75c | [
"MIT"
] | 274 | 2015-02-11T19:56:08.000Z | 2022-03-28T23:31:07.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""ZoneController of SpeciesEvolver."""
import numpy as np
from scipy.ndimage.measurements import label
from .record import Record
from .zone import Zone, _update_zones
from .zone_taxon import ZoneTaxon
def run_one_step(self, dt):
"""Update the zones for a si... | 39.508197 | 85 | 0.588145 |
94942f090de0694ae8ff7d93a0f93dd5a2696870 | 16,347 | py | Python | torchbenchmark/models/fastNLP/fastNLP/core/batch.py | Chillee/benchmark | 91e1b2871327e44b9b7d24d173ca93720fb6565b | [
"BSD-3-Clause"
] | 2,693 | 2018-03-08T03:09:20.000Z | 2022-03-30T07:38:42.000Z | fastNLP/core/batch.py | stratoes/fastNLP | a8a458230489710ab945b37ec22e93315230f2de | [
"Apache-2.0"
] | 291 | 2018-07-21T07:43:17.000Z | 2022-03-07T13:06:58.000Z | fastNLP/core/batch.py | stratoes/fastNLP | a8a458230489710ab945b37ec22e93315230f2de | [
"Apache-2.0"
] | 514 | 2018-03-09T06:54:25.000Z | 2022-03-26T20:11:44.000Z | r"""
batch fastNLP :class:`~fastNLP.core.batch.DataSetIter`
"""
__all__ = [
"BatchIter",
"DataSetIter",
"TorchLoaderIter",
]
import atexit
import abc
from numbers import Number
import numpy as np
import torch
import torch.utils.data
from collections import defaultdict
from .dataset import DataSet
fro... | 35.079399 | 113 | 0.598703 |
9494352446a20fe08ed5a3142741f47ea3e679f6 | 827 | py | Python | cb_scripts/case.py | christopher-burke/python-scripts | bdbea2456130e0958b6a6ab8d138f4f19b39b934 | [
"MIT"
] | 1 | 2022-02-05T06:39:05.000Z | 2022-02-05T06:39:05.000Z | cb_scripts/case.py | christopher-burke/python-scripts | bdbea2456130e0958b6a6ab8d138f4f19b39b934 | [
"MIT"
] | null | null | null | cb_scripts/case.py | christopher-burke/python-scripts | bdbea2456130e0958b6a6ab8d138f4f19b39b934 | [
"MIT"
] | 1 | 2021-06-10T22:04:35.000Z | 2021-06-10T22:04:35.000Z | #!/usr/bin/env python3
"""Switch variable case.
A function that takes camel cased strings (i.e. ThisIsCamelCased),
and converts them to snake case (i.e. this_is_camel_cased).
"""
import re
def snake_case(input_str: str, camel_case=False) -> str:
"""
Turn camel case into snake case.
:param input_str: ... | 21.205128 | 66 | 0.614268 |
9495752f36e07120a23f8cb91134e78a77ef6722 | 10,896 | py | Python | hungarian_tf_tests.py | shaolinkhoa/rec-attend-public | 678407e98fcd4c3b72f101dda3e4bc8c120bca0f | [
"MIT"
] | 118 | 2017-04-10T00:41:31.000Z | 2022-03-28T09:34:28.000Z | hungarian_tf_tests.py | shaolinkhoa/rec-attend-public | 678407e98fcd4c3b72f101dda3e4bc8c120bca0f | [
"MIT"
] | 10 | 2017-10-02T04:23:27.000Z | 2022-03-09T08:09:12.000Z | hungarian_tf_tests.py | shaolinkhoa/rec-attend-public | 678407e98fcd4c3b72f101dda3e4bc8c120bca0f | [
"MIT"
] | 51 | 2017-05-23T02:46:16.000Z | 2021-10-09T05:21:34.000Z | import numpy as np
import tensorflow as tf
import unittest
hungarian_module = tf.load_op_library("hungarian.so")
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(HungarianTests)
unittest.TextTestRunner(verbosity=2).run(suite)
| 38.638298 | 80 | 0.532489 |
9495a56bdecb82a6a0d94d51b82b391d6b4dd77b | 36,691 | py | Python | bcs-ui/backend/templatesets/legacy_apps/configuration/k8s/constants.py | laodiu/bk-bcs | 2a956a42101ff6487ff521fb3ef429805bfa7e26 | [
"Apache-2.0"
] | 599 | 2019-06-25T03:20:46.000Z | 2022-03-31T12:14:33.000Z | bcs-ui/backend/templatesets/legacy_apps/configuration/k8s/constants.py | laodiu/bk-bcs | 2a956a42101ff6487ff521fb3ef429805bfa7e26 | [
"Apache-2.0"
] | 537 | 2019-06-27T06:03:44.000Z | 2022-03-31T12:10:01.000Z | bcs-ui/backend/templatesets/legacy_apps/configuration/k8s/constants.py | laodiu/bk-bcs | 2a956a42101ff6487ff521fb3ef429805bfa7e26 | [
"Apache-2.0"
] | 214 | 2019-06-25T03:26:05.000Z | 2022-03-31T07:52:03.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | 42.763403 | 119 | 0.323458 |
9497229a6692042b74d1ac520f4de593c2626954 | 1,427 | py | Python | src/plot_functions.py | limash/ws_notebook | 7feecc3ea8535f4e51ba1dbec24655acf343e0d6 | [
"CC-BY-3.0"
] | null | null | null | src/plot_functions.py | limash/ws_notebook | 7feecc3ea8535f4e51ba1dbec24655acf343e0d6 | [
"CC-BY-3.0"
] | null | null | null | src/plot_functions.py | limash/ws_notebook | 7feecc3ea8535f4e51ba1dbec24655acf343e0d6 | [
"CC-BY-3.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import xarray as xr
sns.set()
def plot_range(xlabel, ylabel, title, x, values):
"""x and values should have the same size"""
plt.plot(x, values, 'r-', linewidth=2)
plt.gcf().set_size_inches(8, 2)
plt.title(title)
plt.xlabel(... | 26.425926 | 65 | 0.637001 |
94980302ac7ea036907a9643add53b14e5111bdd | 3,862 | py | Python | zenml/preprocessing/text.py | bobbywlindsey/data-science | 8c67abd75a1f70ce37a04aff074cc3416260a296 | [
"MIT"
] | 1 | 2018-07-17T08:23:29.000Z | 2018-07-17T08:23:29.000Z | zenml/preprocessing/text.py | bobbywlindsey/zenml | 8c67abd75a1f70ce37a04aff074cc3416260a296 | [
"MIT"
] | null | null | null | zenml/preprocessing/text.py | bobbywlindsey/zenml | 8c67abd75a1f70ce37a04aff074cc3416260a296 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import math
from nltk.stem.snowball import SnowballStemmer
def add_prefix(prefix, series):
"""
Returns a pandas series that adds a prefix to a string
:param prefix: str
:return: pd.Series
"""
if type(prefix) != str:
raise TypeError(prefix + ' is n... | 32.183333 | 130 | 0.64086 |
9498a8c6ee04d55e9083c6decd5b3cafed1a96b6 | 1,194 | py | Python | impor.py | raotnameh/FAKE_NEWS_LIAR-PLUS-dataset | fbf2a953c16fc111c4afb876eb0857a8d4bb7cb5 | [
"Apache-2.0"
] | 2 | 2019-08-11T21:15:09.000Z | 2019-10-30T16:54:00.000Z | impor.py | raotnameh/FAKE_NEWS_LIAR-PLUS-dataset | fbf2a953c16fc111c4afb876eb0857a8d4bb7cb5 | [
"Apache-2.0"
] | null | null | null | impor.py | raotnameh/FAKE_NEWS_LIAR-PLUS-dataset | fbf2a953c16fc111c4afb876eb0857a8d4bb7cb5 | [
"Apache-2.0"
] | null | null | null |
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import folium
import json
import re
import glob
import os
import string
import random
import requests
import scipy
from matplotlib.colors import *
import seaborn as sn
from dateutil.parser import parse
import datetime as dt
pd... | 22.528302 | 68 | 0.826633 |
949ade892d25e5435775c907b35e281d3da04296 | 611 | py | Python | src/features/videos/speech/extract_speech.py | ClaasM/VideoArticleRetrieval | 1948887d34b53bdb7a2ec473b31401b395c54e63 | [
"MIT"
] | null | null | null | src/features/videos/speech/extract_speech.py | ClaasM/VideoArticleRetrieval | 1948887d34b53bdb7a2ec473b31401b395c54e63 | [
"MIT"
] | null | null | null | src/features/videos/speech/extract_speech.py | ClaasM/VideoArticleRetrieval | 1948887d34b53bdb7a2ec473b31401b395c54e63 | [
"MIT"
] | null | null | null | import os
from pocketsphinx import AudioFile
from pocketsphinx import Pocketsphinx
from src import util
test_video = os.environ['DATA_PATH'] + "/other/sphinx_test_video/beachball.mp4"
test_audio = os.environ['DATA_PATH'] + "/other/sphinx_test_audio/interview.wav"
fps = 100 # default
audio_file = AudioFile(audio_fil... | 29.095238 | 106 | 0.746318 |
949b895d1a3ac5fc3ed98773300f2d9d20b91044 | 2,154 | py | Python | var/spack/repos/builtin/packages/mosquitto/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/mosquitto/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 8 | 2021-11-09T20:28:40.000Z | 2022-03-15T03:26:33.000Z | var/spack/repos/builtin/packages/mosquitto/package.py | jeanbez/spack | f4e51ce8f366c85bf5aa0eafe078677b42dae1ba | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
| 48.954545 | 99 | 0.68663 |
949cb96d1bb64a5436e512aeea9ef16a92c29076 | 1,530 | py | Python | tomato_test_detection.py | huuquan1994/mmdetection_plant | fce09fa255c7ffec441ed8e1c8bf65b214da58af | [
"Apache-2.0"
] | null | null | null | tomato_test_detection.py | huuquan1994/mmdetection_plant | fce09fa255c7ffec441ed8e1c8bf65b214da58af | [
"Apache-2.0"
] | null | null | null | tomato_test_detection.py | huuquan1994/mmdetection_plant | fce09fa255c7ffec441ed8e1c8bf65b214da58af | [
"Apache-2.0"
] | null | null | null | from mmdet.apis import init_detector, inference_detector, show_result
import mmcv
import os
import argparse
import numpy as np
from tqdm import tqdm
parser = argparse.ArgumentParser(description='Test different models')
parser.add_argument('--epoch', type=str, default="latest", help='dataset version')
parser... | 38.25 | 114 | 0.749673 |
949d26f7e9c57e6a3d7dba7675c59263f9083abf | 1,250 | py | Python | server/lib/python/cartodb_services/cartodb_services/refactor/backend/user_config.py | digideskio/dataservices-api | 246ec135dbeaa3f9a52717fdac50a4ab040ce22b | [
"BSD-3-Clause"
] | 22 | 2016-03-11T17:33:31.000Z | 2021-02-22T04:00:43.000Z | server/lib/python/cartodb_services/cartodb_services/refactor/backend/user_config.py | digideskio/dataservices-api | 246ec135dbeaa3f9a52717fdac50a4ab040ce22b | [
"BSD-3-Clause"
] | 338 | 2016-02-16T16:13:13.000Z | 2022-03-30T15:50:17.000Z | server/lib/python/cartodb_services/cartodb_services/refactor/backend/user_config.py | CartoDB/dataservices-api | d0f28cc002ef11df9f371d5d1fd2d0901c245f97 | [
"BSD-3-Clause"
] | 14 | 2016-09-22T15:29:33.000Z | 2021-02-08T03:46:40.000Z | from cartodb_services.refactor.storage.redis_connection_config import RedisMetadataConnectionConfigBuilder
from cartodb_services.refactor.storage.redis_connection import RedisConnectionBuilder
from cartodb_services.refactor.storage.redis_config import RedisUserConfigStorageBuilder
| 50 | 118 | 0.7872 |
949dd916fd073b038963f3abc29b2e527d7a6f24 | 353 | py | Python | wotd/admin/utils.py | BrichfoE/daily_word | 96d72f106af405df598d9644c54d87139a1b1729 | [
"MIT"
] | null | null | null | wotd/admin/utils.py | BrichfoE/daily_word | 96d72f106af405df598d9644c54d87139a1b1729 | [
"MIT"
] | 2 | 2019-07-25T03:16:10.000Z | 2019-08-25T00:29:52.000Z | wotd/admin/utils.py | BrichfoE/daily_word | 96d72f106af405df598d9644c54d87139a1b1729 | [
"MIT"
] | null | null | null | import os
import random
from flask import current_app
| 25.214286 | 83 | 0.745042 |
949debc4370dccbf7fa133d3d37d8a9abde870a7 | 328 | py | Python | env.py | kajackdfw/python_rpi_sense_hat_demos | b0e5c0a7efe95db188c08409701af9ce9fe238fd | [
"CC0-1.0"
] | null | null | null | env.py | kajackdfw/python_rpi_sense_hat_demos | b0e5c0a7efe95db188c08409701af9ce9fe238fd | [
"CC0-1.0"
] | null | null | null | env.py | kajackdfw/python_rpi_sense_hat_demos | b0e5c0a7efe95db188c08409701af9ce9fe238fd | [
"CC0-1.0"
] | null | null | null | from sense_hat import SenseHat
sense = SenseHat()
while True:
t = sense.get_temperature()
p = sense.get_pressure()
h = sense.get_humidity()
t = round(t, 1)
p = round(p, 1)
h = round(h, 1)
msg = "Temperature = %s, Pressure=%s, Humidity=%s" % (t,p,h)
sense.show_message(msg, scroll_spee... | 20.5 | 64 | 0.612805 |
949ed80402d1a3ca1fe96665a7522ba4767001b6 | 10,681 | py | Python | emgapi/urls.py | EBI-Metagenomics/ebi-metagenomics-api | 1f028902fe493583c5c8191dd5dae92cca9e15a9 | [
"Apache-2.0"
] | null | null | null | emgapi/urls.py | EBI-Metagenomics/ebi-metagenomics-api | 1f028902fe493583c5c8191dd5dae92cca9e15a9 | [
"Apache-2.0"
] | null | null | null | emgapi/urls.py | EBI-Metagenomics/ebi-metagenomics-api | 1f028902fe493583c5c8191dd5dae92cca9e15a9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 EMBL - European Bioinformatics Institute
#
# 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 requ... | 23.735556 | 74 | 0.713323 |
94a0768312069457dc43f87974e26c01cadf91b2 | 21,005 | py | Python | pkpdapp/pkpdapp/migrations/0001_initial.py | pkpdapp-team/pkpdapp | 8a9748ef52199ffdaa9194d0e1c384b4a78a70dc | [
"BSD-3-Clause"
] | 4 | 2020-11-10T10:13:32.000Z | 2021-09-22T15:24:23.000Z | pkpdapp/pkpdapp/migrations/0001_initial.py | pkpdapp-team/pkpdapp | 8a9748ef52199ffdaa9194d0e1c384b4a78a70dc | [
"BSD-3-Clause"
] | 232 | 2020-05-06T09:32:10.000Z | 2022-03-28T16:31:29.000Z | pkpdapp/pkpdapp/migrations/0001_initial.py | pkpdapp-team/pkpdapp | 8a9748ef52199ffdaa9194d0e1c384b4a78a70dc | [
"BSD-3-Clause"
] | 1 | 2020-10-13T11:40:06.000Z | 2020-10-13T11:40:06.000Z | #
# This file is part of PKPDApp (https://github.com/pkpdapp-team/pkpdapp) which
# is released under the BSD 3-clause license. See accompanying LICENSE.md for
# copyright notice and full license details.
#
# Generated by Django 3.0.7 on 2021-01-12 17:55
# flake8: noqa
from django.conf import settings
from django.db i... | 77.796296 | 422 | 0.653416 |
94a2a12d12ba8f42c8db354ac4d1caf68ea26d8b | 2,705 | py | Python | rpsp/policy/policies.py | ahefnycmu/rpsp | ff3aa3e89a91bb4afb7bad932d2c04691a727a63 | [
"Apache-2.0"
] | 4 | 2019-11-03T12:04:47.000Z | 2022-01-21T08:55:54.000Z | rpsp/policy/policies.py | ahefnycmu/rpsp | ff3aa3e89a91bb4afb7bad932d2c04691a727a63 | [
"Apache-2.0"
] | null | null | null | rpsp/policy/policies.py | ahefnycmu/rpsp | ff3aa3e89a91bb4afb7bad932d2c04691a727a63 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 28 10:47:38 2016
@author: ahefny
Policies are BLIND to the representation of states, which could be (1) observation,
(2) original latent state or (3) predictive state.
Policies takes the "state" dimension x_dim, the number of actions/dim of action as input.
"""
impo... | 26.009615 | 96 | 0.621442 |
94a2bd43953d6e6e4cffc78fc4b4796273a7d3e4 | 8,002 | py | Python | pysnmp-with-texts/CTRON-CHASSIS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CTRON-CHASSIS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CTRON-CHASSIS-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CTRON-CHASSIS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-CHASSIS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:44:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 137.965517 | 625 | 0.775806 |
94a69109ecb77993367aee324f52626e30882d42 | 307 | py | Python | devtools/write.py | ddrone/language | 1cd8b21b4edc9877dd82efb1092f6f37aab98563 | [
"Apache-2.0"
] | 2 | 2020-08-13T19:12:40.000Z | 2020-09-02T18:39:09.000Z | devtools/write.py | ddrone/language | 1cd8b21b4edc9877dd82efb1092f6f37aab98563 | [
"Apache-2.0"
] | null | null | null | devtools/write.py | ddrone/language | 1cd8b21b4edc9877dd82efb1092f6f37aab98563 | [
"Apache-2.0"
] | null | null | null | import os
import sys
from datetime import datetime
from subprocess import run
name = datetime.utcnow().strftime("%Y%m%d-%H%M%S.md")
try:
# -t stands for "topic"
topic_index = sys.argv.index('-t')
path = os.path.join(sys.argv[topic_index + 1], name)
except:
path = name
run(['code', path])
| 20.466667 | 56 | 0.664495 |
94a72477bea5a6edf982b7fbc481c7918bc40ddf | 7,724 | py | Python | riglib/bmi/lindecoder.py | aolabNeuro/brain-python-interface | 11590717e1a1a2d5cc89a0495f02170b1b5f3c08 | [
"Apache-2.0"
] | 2 | 2020-04-14T23:35:36.000Z | 2020-09-11T01:34:50.000Z | riglib/bmi/lindecoder.py | aolabNeuro/brain-python-interface | 11590717e1a1a2d5cc89a0495f02170b1b5f3c08 | [
"Apache-2.0"
] | 89 | 2020-08-03T16:54:08.000Z | 2022-03-09T19:56:19.000Z | riglib/bmi/lindecoder.py | aolabNeuro/brain-python-interface | 11590717e1a1a2d5cc89a0495f02170b1b5f3c08 | [
"Apache-2.0"
] | 3 | 2020-08-10T21:29:26.000Z | 2021-01-18T18:29:09.000Z | '''
Classes for BMI decoding using linear scaling.
'''
import numpy as np
from riglib.bmi.bmi import Filter
def create_lindecoder(ssm, units, neural_data, unit_to_state, decoder_to_plant=None, smoothing_window=1, vel_control=False, update_rate=0.1):
from riglib.bmi import Decoder
filt_counts = smoothing_wind... | 37.134615 | 156 | 0.625842 |
94a725b80964b0d1c363be556587576cc1338bfd | 875 | py | Python | tests/hopfieldnettests/net/network_creation.py | pmatigakis/hopfieldnet | c3e850d41e94383d8f6d2bf079ac706268254ba9 | [
"MIT"
] | 28 | 2015-01-25T21:46:06.000Z | 2022-03-08T20:43:46.000Z | tests/hopfieldnettests/net/network_creation.py | pmatigakis/hopfieldnet | c3e850d41e94383d8f6d2bf079ac706268254ba9 | [
"MIT"
] | null | null | null | tests/hopfieldnettests/net/network_creation.py | pmatigakis/hopfieldnet | c3e850d41e94383d8f6d2bf079ac706268254ba9 | [
"MIT"
] | 13 | 2015-01-25T21:46:10.000Z | 2020-10-23T00:56:07.000Z | import unittest
import numpy as np
from hopfieldnet.net import HopfieldNetwork, InvalidWeightsException
if __name__ == "__main__":
unittest.main()
| 29.166667 | 121 | 0.734857 |