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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
672ca5a86d4634cb29b428fe498eec5d2e6591d7 | 17,041 | py | Python | clustering.py | t20100/ccCluster | 9645d80dcfe579c23b3d52e8d536a39d469b184a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | clustering.py | t20100/ccCluster | 9645d80dcfe579c23b3d52e8d536a39d469b184a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | clustering.py | t20100/ccCluster | 9645d80dcfe579c23b3d52e8d536a39d469b184a | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import print_function
__author__ = "Gianluca Santoni"
__copyright__ = "Copyright 20150-2019"
__credits__ = ["Gianluca Santoni, Alexander Popov"]
__license__ = ""
__version__ = "1.0"
__maintainer__ = "Gianluca Santoni"
__email__ = "gianluca.santoni@esrf.fr"
__status__ = "Beta"
from scipy.cluster impo... | 38.123043 | 146 | 0.589813 |
672fde99dcb82eabf8b0425ec9a63d4e04194da7 | 9,992 | py | Python | wrappaconda.py | nckz/wrappaconda | 43203be36f2de17fdf8fe77c151c5628bd98321f | [
"BSD-2-Clause"
] | null | null | null | wrappaconda.py | nckz/wrappaconda | 43203be36f2de17fdf8fe77c151c5628bd98321f | [
"BSD-2-Clause"
] | null | null | null | wrappaconda.py | nckz/wrappaconda | 43203be36f2de17fdf8fe77c151c5628bd98321f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# Author: Nick Zwart
# Date: 2015oct31
from __future__ import print_function
import os
import sys
import stat
import errno
import shutil
import optparse
import traceback
import subprocess
wrappaconda_name_string = 'Wr[App]-A-Conda'
if __name__ == '__main__':
main()
| 39.650794 | 236 | 0.618995 |
673174539407b646c8c0d2d08573c676c84a2fa0 | 557 | py | Python | watchtower/wallet/wallet.py | paytaca/watchtower-py | a9a4fb83ba4a9a15379efdd41bb91546821b4be8 | [
"MIT"
] | null | null | null | watchtower/wallet/wallet.py | paytaca/watchtower-py | a9a4fb83ba4a9a15379efdd41bb91546821b4be8 | [
"MIT"
] | null | null | null | watchtower/wallet/wallet.py | paytaca/watchtower-py | a9a4fb83ba4a9a15379efdd41bb91546821b4be8 | [
"MIT"
] | null | null | null | import requests
| 26.52381 | 66 | 0.606822 |
6733155cbc1b3ee12cbd1d7e111f38daa85f1326 | 858 | py | Python | test/unit/test_finalize.py | phated/binaryen | 50e66800dc28d67ea1cc88172f459df1ca96507d | [
"Apache-2.0"
] | 5,871 | 2015-11-13T19:06:43.000Z | 2022-03-31T17:40:21.000Z | test/unit/test_finalize.py | sthagen/binaryen | ce592cbdc8e58f36e7f39a3bd24b403f43adae34 | [
"Apache-2.0"
] | 2,743 | 2015-11-13T03:46:49.000Z | 2022-03-31T20:27:05.000Z | test/unit/test_finalize.py | sthagen/binaryen | ce592cbdc8e58f36e7f39a3bd24b403f43adae34 | [
"Apache-2.0"
] | 626 | 2015-11-23T08:00:11.000Z | 2022-03-17T01:58:18.000Z | from scripts.test import shared
from . import utils
| 33 | 79 | 0.637529 |
67351c5ed22ca30713ae796c8d4fe75b64c848ee | 6,206 | py | Python | mc/tools/TreeWidget.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2021-04-29T05:36:44.000Z | 2021-04-29T05:36:44.000Z | mc/tools/TreeWidget.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2020-03-28T17:43:18.000Z | 2020-03-28T17:43:18.000Z | mc/tools/TreeWidget.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2021-01-15T20:09:24.000Z | 2021-01-15T20:09:24.000Z | from PyQt5.QtWidgets import QTreeWidget
from PyQt5.Qt import pyqtSignal
from PyQt5.QtWidgets import QTreeWidgetItem
from PyQt5.Qt import Qt
| 28.731481 | 75 | 0.586046 |
673572261f6221c9f0594203352cc527924c075f | 1,400 | py | Python | app/api/v2/models/sales.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | app/api/v2/models/sales.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | 21 | 2018-10-16T09:29:03.000Z | 2022-03-11T23:31:35.000Z | app/api/v2/models/sales.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | import os
import sys
LOCALPATH = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, LOCALPATH + '/../../../../')
from app.api.v2.db import Db
def format_sale(sale):
"""Formats the results to a dictionary"""
sale = {
"id": sale[0],
"books": sale[1],
"total": sale[2],
... | 25.454545 | 89 | 0.547143 |
67366bf1792d0f436d2ce6181f326bfb3e3aea15 | 4,035 | py | Python | ubirch/linux/bleManager.py | ubirch/ubirch-ble-tool | 1399d018957e9a8424071296a71431c8ffa27e6f | [
"Apache-2.0"
] | 4 | 2018-07-20T16:35:52.000Z | 2020-11-12T13:38:58.000Z | ubirch/linux/bleManager.py | ubirch/ubirch-ble-tool | 1399d018957e9a8424071296a71431c8ffa27e6f | [
"Apache-2.0"
] | 1 | 2021-04-03T13:37:40.000Z | 2021-04-03T13:37:40.000Z | ubirch/linux/bleManager.py | ubirch/ubirch-ble-tool | 1399d018957e9a8424071296a71431c8ffa27e6f | [
"Apache-2.0"
] | null | null | null | from bleSuite import bleConnectionManager, bleServiceManager
from bluepy.btle import Scanner
from ubirch.linux.bleServiceManager import BLEServiceManager
| 34.487179 | 105 | 0.666419 |
67366ca8b5a32e45010c5e5c8a95158feb06f5b0 | 1,952 | py | Python | sysinv/cgts-client/cgts-client/cgtsclient/v1/load.py | SidneyAn/config | d694cc5d79436ea7d6170881c23cbfc8441efc0f | [
"Apache-2.0"
] | null | null | null | sysinv/cgts-client/cgts-client/cgtsclient/v1/load.py | SidneyAn/config | d694cc5d79436ea7d6170881c23cbfc8441efc0f | [
"Apache-2.0"
] | null | null | null | sysinv/cgts-client/cgts-client/cgtsclient/v1/load.py | SidneyAn/config | d694cc5d79436ea7d6170881c23cbfc8441efc0f | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015-2020 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from cgtsclient.common import base
from cgtsclient import exc
CREATION_ATTRIBUTES = ['software_version', 'compatible_version',
'required_patches']
IMPORT_ATTRIBUTES = ['path_to_iso', 'path_to_sig', '... | 26.378378 | 81 | 0.589139 |
6736c3bf19a38443467bf3214084087a92e23009 | 10,984 | py | Python | tests/keras_tests/feature_networks_tests/feature_networks/weights_mixed_precision_tests.py | haihabi/model_optimization | 97372a9596378bb2287c59f1180b5059f741b2d6 | [
"Apache-2.0"
] | null | null | null | tests/keras_tests/feature_networks_tests/feature_networks/weights_mixed_precision_tests.py | haihabi/model_optimization | 97372a9596378bb2287c59f1180b5059f741b2d6 | [
"Apache-2.0"
] | null | null | null | tests/keras_tests/feature_networks_tests/feature_networks/weights_mixed_precision_tests.py | haihabi/model_optimization | 97372a9596378bb2287c59f1180b5059f741b2d6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Sony Semiconductors Israel, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 47.549784 | 120 | 0.638929 |
67379ede0d1ebb11453ed5424da8aed4d1402f30 | 33,494 | py | Python | src/ansible_navigator/actions/run.py | NaincyKumariKnoldus/ansible-navigator | 2ac043aea4ce897f30df3c47c1444a5747c9446c | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/actions/run.py | NaincyKumariKnoldus/ansible-navigator | 2ac043aea4ce897f30df3c47c1444a5747c9446c | [
"Apache-2.0"
] | null | null | null | src/ansible_navigator/actions/run.py | NaincyKumariKnoldus/ansible-navigator | 2ac043aea4ce897f30df3c47c1444a5747c9446c | [
"Apache-2.0"
] | null | null | null | """:run
"""
import curses
import datetime
import json
import logging
import os
import re
import shlex
import shutil
import time
import uuid
from math import floor
from queue import Queue
from typing import Any
from typing import Callable
from typing import Dict
from typing import List
from typing import Optional
from ... | 37.091916 | 100 | 0.559921 |
6738c6913f593e8f3489b3d849753c160556f231 | 480 | py | Python | storagetest/pkgs/pts/__init__.py | liufeng-elva/storage-test2 | 5364cc00dbe71b106f1bb740bf391e6124788bf4 | [
"MIT"
] | null | null | null | storagetest/pkgs/pts/__init__.py | liufeng-elva/storage-test2 | 5364cc00dbe71b106f1bb740bf391e6124788bf4 | [
"MIT"
] | null | null | null | storagetest/pkgs/pts/__init__.py | liufeng-elva/storage-test2 | 5364cc00dbe71b106f1bb740bf391e6124788bf4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@file : __init__.py.py
@Time : 2020/11/12 13:37
@Author: Tao.Xu
@Email : tao.xu2008@outlook.com
"""
"""
phoronix-test-suite: Main for Performance Test
===================
https://github.com/phoronix-test-suite/phoronix-test-suite
The Phoronix Test Suite is the most compr... | 22.857143 | 68 | 0.683333 |
673a1a8a7022fbc7e3838045a6969aad19ff37aa | 8,279 | py | Python | owlbot.py | rahul2393/python-spanner | 86d33905269accabfc6d68dae0f2b78bec96026a | [
"Apache-2.0"
] | null | null | null | owlbot.py | rahul2393/python-spanner | 86d33905269accabfc6d68dae0f2b78bec96026a | [
"Apache-2.0"
] | null | null | null | owlbot.py | rahul2393/python-spanner | 86d33905269accabfc6d68dae0f2b78bec96026a | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Google LLC
#
# 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 in writing, s... | 32.214008 | 125 | 0.613721 |
673a564ceef3de9745d7d4bb80242204d7ba623d | 1,843 | py | Python | k_means.py | sokrutu/imagemean | 680bab26a1841cd8d4e03beba020709a5cb434a2 | [
"MIT"
] | null | null | null | k_means.py | sokrutu/imagemean | 680bab26a1841cd8d4e03beba020709a5cb434a2 | [
"MIT"
] | null | null | null | k_means.py | sokrutu/imagemean | 680bab26a1841cd8d4e03beba020709a5cb434a2 | [
"MIT"
] | null | null | null | from random import randint
def k_means(data, K):
"""
k-Means clustering
TODO: Assumes values from 0-255
:param data: NxD array of numbers
:param K: The number of clusters
:return: Tuple of cluster means (KxD array) and cluster assignments (Nx1 with values from 1 to K)
"""
N = len(dat... | 25.597222 | 101 | 0.511666 |
673ab82d9ec7dbd59a48086985188478a17a2fc5 | 756 | py | Python | contrib/analysis_server/src/analysis_server/__init__.py | Kenneth-T-Moore/OpenMDAO-Framework | 76e0ebbd6f424a03b547ff7b6039dea73d8d44dc | [
"Apache-2.0"
] | 3 | 2015-06-02T00:36:28.000Z | 2018-11-03T00:35:21.000Z | contrib/analysis_server/src/analysis_server/__init__.py | JustinSGray/OpenMDAO-Framework | 7ebd7fda0b10fbe8a86ae938dc4f135396dd9759 | [
"Apache-2.0"
] | null | null | null | contrib/analysis_server/src/analysis_server/__init__.py | JustinSGray/OpenMDAO-Framework | 7ebd7fda0b10fbe8a86ae938dc4f135396dd9759 | [
"Apache-2.0"
] | 1 | 2020-07-15T02:45:54.000Z | 2020-07-15T02:45:54.000Z | """
Support for interacting with ModelCenter via the AnalysisServer protocol.
Client-mode access to an AnalysisServer is provided by the 'client', 'factory',
and 'proxy' modules. Server-mode access by ModelCenter is provided by the
'server' and 'wrapper' modules.
An extension to the protocol allows 'eggs' to pe 'publ... | 36 | 79 | 0.797619 |
673b17b5d8b3ab21d7358bca547447f1eb5fad33 | 24,476 | py | Python | 3rd party/YOLO_network.py | isaiasfsilva/ROLO | 6612007e35edb73dac734e7a4dac2cd4c1dca6c1 | [
"Apache-2.0"
] | 962 | 2016-07-22T01:36:20.000Z | 2022-03-30T01:34:35.000Z | 3rd party/YOLO_network.py | isaiasfsilva/ROLO | 6612007e35edb73dac734e7a4dac2cd4c1dca6c1 | [
"Apache-2.0"
] | 57 | 2016-08-12T15:33:31.000Z | 2022-01-29T19:16:01.000Z | 3rd party/YOLO_network.py | isaiasfsilva/ROLO | 6612007e35edb73dac734e7a4dac2cd4c1dca6c1 | [
"Apache-2.0"
] | 342 | 2016-07-22T01:36:26.000Z | 2022-02-26T23:00:25.000Z | import os
import numpy as np
import tensorflow as tf
import cv2
import time
import sys
import pickle
import ROLO_utils as util
'''----------------------------------------main-----------------------------------------------------'''
if __name__=='__main__':
main(sys.argv)
| 35.6793 | 209 | 0.664774 |
673cf80cda7d6f2ddfed4ffa2f717379b2c4aa55 | 3,146 | py | Python | pipenv/cmdparse.py | sthagen/pipenv | 0924f75fd1004c848ea67d4272315eda4210b352 | [
"MIT"
] | 23 | 2017-01-20T01:18:31.000Z | 2017-01-20T17:25:11.000Z | pipenv/cmdparse.py | sthagen/pipenv | 0924f75fd1004c848ea67d4272315eda4210b352 | [
"MIT"
] | 1 | 2017-01-20T05:13:58.000Z | 2017-01-20T05:13:58.000Z | pipenv/cmdparse.py | sthagen/pipenv | 0924f75fd1004c848ea67d4272315eda4210b352 | [
"MIT"
] | null | null | null | import itertools
import re
import shlex
def cmdify(self):
"""Encode into a cmd-executable string.
This re-implements CreateProcess's quoting logic to turn a list of
arguments into one single string for the shell to interpret.
* All double quotes are escaped with a backslash.
... | 30.543689 | 96 | 0.62206 |
673d6da7ddbe2f62dc10d702de83d4dd27b4df32 | 1,059 | py | Python | msph/clients/ms_online.py | CultCornholio/solenya | 583cb5f36825808c7cdc2de03f565723a32ae8d3 | [
"MIT"
] | 11 | 2021-09-01T05:04:08.000Z | 2022-02-17T01:09:58.000Z | msph/clients/ms_online.py | CultCornholio/solenya | 583cb5f36825808c7cdc2de03f565723a32ae8d3 | [
"MIT"
] | null | null | null | msph/clients/ms_online.py | CultCornholio/solenya | 583cb5f36825808c7cdc2de03f565723a32ae8d3 | [
"MIT"
] | 2 | 2021-09-08T19:12:53.000Z | 2021-10-05T17:52:11.000Z | from .framework import Client, Resource
from . import constants as const
client = Client(
base_url='https://login.microsoftonline.com',
base_headers={
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0',
'Content-Type': 'application/x-www-form-urlencoded',
... | 32.090909 | 110 | 0.686497 |
673f2e75107755cce6965c485de6141329c56f72 | 1,868 | py | Python | warn/platforms/job_center/cache.py | anikasikka/warn-scraper | 13efac478ac06982bf68ce67e15db976ac07f101 | [
"Apache-2.0"
] | 12 | 2022-01-18T20:04:41.000Z | 2022-03-24T21:26:31.000Z | warn/platforms/job_center/cache.py | anikasikka/warn-scraper | 13efac478ac06982bf68ce67e15db976ac07f101 | [
"Apache-2.0"
] | 163 | 2022-01-14T19:30:23.000Z | 2022-03-31T23:48:48.000Z | warn/platforms/job_center/cache.py | anikasikka/warn-scraper | 13efac478ac06982bf68ce67e15db976ac07f101 | [
"Apache-2.0"
] | 4 | 2022-01-19T20:40:13.000Z | 2022-02-22T21:36:34.000Z | import logging
import re
from warn.cache import Cache as BaseCache
from .urls import urls
logger = logging.getLogger(__name__)
| 34.592593 | 83 | 0.579764 |
673f39d965787c5f1eaa35294c38eb2b5dda219c | 7,312 | py | Python | ebcli/core/abstractcontroller.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 110 | 2020-01-15T22:58:46.000Z | 2022-03-27T20:47:33.000Z | ebcli/core/abstractcontroller.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 89 | 2020-01-15T23:18:34.000Z | 2022-03-31T21:56:05.000Z | ebcli/core/abstractcontroller.py | senstb/aws-elastic-beanstalk-cli | ef27ae50e8be34ccbe29bc6dc421323bddc3f485 | [
"Apache-2.0"
] | 50 | 2020-01-15T22:58:53.000Z | 2022-02-11T17:39:28.000Z | # Copyright 2014 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 33.085973 | 101 | 0.603665 |
673f86c193b95f2ceb11fd09422584819f2d7221 | 346 | py | Python | python/speaktest.py | kyle-cook/templates | f1047a8c31a42507acbd7a27e66db0825be811a6 | [
"MIT"
] | null | null | null | python/speaktest.py | kyle-cook/templates | f1047a8c31a42507acbd7a27e66db0825be811a6 | [
"MIT"
] | null | null | null | python/speaktest.py | kyle-cook/templates | f1047a8c31a42507acbd7a27e66db0825be811a6 | [
"MIT"
] | null | null | null | import unittest
import speak
if __name__ == "__main__":
unittest.main()
| 21.625 | 64 | 0.66474 |
674032fc8a912ba3dd53e6c5a60619d54e34cbd4 | 482 | py | Python | c2f_loop.py | devopsprosiva/python | 07311d7597c0895554efe8013b57f218a0f11bb5 | [
"MIT"
] | null | null | null | c2f_loop.py | devopsprosiva/python | 07311d7597c0895554efe8013b57f218a0f11bb5 | [
"MIT"
] | null | null | null | c2f_loop.py | devopsprosiva/python | 07311d7597c0895554efe8013b57f218a0f11bb5 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import sys
temperatures=[10,-20,-289,100]
for temp in temperatures:
file = open('temperatures.txt','a+')
if temp > -273.15:
temp_output = c2f(temp)
file.write(str(temp_output))
file.write("\n")
file.close()
| 22.952381 | 91 | 0.620332 |
67409afcdfe55eae6e448c076e01c6ac7a7788be | 2,285 | py | Python | problems/eggs/services/confirm_min_throws_server.py | giuliagalvan/TAlight | 3471ea9c7f13ade595ae579db0713135da849f13 | [
"MIT"
] | null | null | null | problems/eggs/services/confirm_min_throws_server.py | giuliagalvan/TAlight | 3471ea9c7f13ade595ae579db0713135da849f13 | [
"MIT"
] | null | null | null | problems/eggs/services/confirm_min_throws_server.py | giuliagalvan/TAlight | 3471ea9c7f13ade595ae579db0713135da849f13 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# METADATA OF THIS TAL_SERVICE:
problem="eggs"
service="confirm_min_throws"
args_list = [
('min',int),
('n_eggs',int),
('n_floors',int),
('lang',str),
('ISATTY',bool),
]
from sys import stderr, exit, argv
from random import randrange
from math import inf as IMPOSSIBLE
from ... | 46.632653 | 279 | 0.688403 |
67416b98862ed94f8c8dd26ec4773d955430f943 | 460 | py | Python | pylox/error_reporting.py | hculpan/pylox | a5bde624f289115575e9e01bd171b6271c2e899a | [
"MIT"
] | 1 | 2018-05-18T08:16:02.000Z | 2018-05-18T08:16:02.000Z | pylox/error_reporting.py | hculpan/pylox | a5bde624f289115575e9e01bd171b6271c2e899a | [
"MIT"
] | null | null | null | pylox/error_reporting.py | hculpan/pylox | a5bde624f289115575e9e01bd171b6271c2e899a | [
"MIT"
] | null | null | null | errorFound = False
| 19.166667 | 73 | 0.630435 |
674628d16822f8d4efcc764dcb583fc1ae5fb351 | 86 | py | Python | tests/syntax/scripts/annotated_comments.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | tests/syntax/scripts/annotated_comments.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | tests/syntax/scripts/annotated_comments.py | toddrme2178/pyccel | deec37503ab0c5d0bcca1a035f7909f7ce8ef653 | [
"MIT"
] | null | null | null | #$ header variable x :: int
#$ acc parallel private(idx)
#$ omp parallel private(idx)
| 21.5 | 28 | 0.697674 |
6746ba919e9bbb1f397db2429492049488882aa8 | 1,361 | py | Python | server/admin.py | allisto/allistic-server | 848edb71b4709ad0734b83a43de4ac8c58e88fdf | [
"Apache-2.0"
] | 5 | 2019-03-04T08:28:08.000Z | 2019-03-05T05:55:55.000Z | server/admin.py | allisto/allistic-server | 848edb71b4709ad0734b83a43de4ac8c58e88fdf | [
"Apache-2.0"
] | 7 | 2019-03-03T19:45:02.000Z | 2021-03-18T21:26:08.000Z | server/admin.py | allisto/allistic-server | 848edb71b4709ad0734b83a43de4ac8c58e88fdf | [
"Apache-2.0"
] | 1 | 2019-03-01T11:15:07.000Z | 2019-03-01T11:15:07.000Z | from django.contrib import admin
from .models import Doctor, ConsultationTime, Medicine, Allergy, Child, Parent
admin.site.site_header = "Allisto - We Do Good"
admin.site.register(ConsultationTime)
| 30.931818 | 87 | 0.702425 |
67470f3c7a77e0bc298ea17e0cb678c91fe2570a | 4,067 | py | Python | backend/ir/ir.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null | backend/ir/ir.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null | backend/ir/ir.py | zengljnwpu/yaspc | 5e85efb5fb8bee02471814b10e950dfb5b04c5d5 | [
"MIT"
] | null | null | null |
from backend.entity.entity import DefinedFuntion
from backend.ir.dumper import Dumper
from backend.ir.stmt import Assign
from backend.ir.stmt import Return
from backend.ir.expr import Bin
from backend.ir.expr import Call
from backend.entity.scope import *
# This class were used to import IR from json text
| 27.856164 | 113 | 0.588149 |
67475ec9e070602cd855d1d0690b385ad1b9adb8 | 10,060 | py | Python | forest/benchmarking/tests/test_superoperator_transformations.py | stjordanis/forest-benchmarking | f9ad9701c2d253de1a0c922d7220ed7de75ac685 | [
"Apache-2.0"
] | 40 | 2019-01-25T18:35:24.000Z | 2022-03-13T11:21:18.000Z | forest/benchmarking/tests/test_superoperator_transformations.py | stjordanis/forest-benchmarking | f9ad9701c2d253de1a0c922d7220ed7de75ac685 | [
"Apache-2.0"
] | 140 | 2019-01-25T20:09:02.000Z | 2022-03-12T01:08:01.000Z | forest/benchmarking/tests/test_superoperator_transformations.py | stjordanis/forest-benchmarking | f9ad9701c2d253de1a0c922d7220ed7de75ac685 | [
"Apache-2.0"
] | 22 | 2019-02-01T13:18:35.000Z | 2022-01-12T15:03:13.000Z | import numpy as np
from pyquil.gate_matrices import X, Y, Z, H
from forest.benchmarking.operator_tools.superoperator_transformations import *
# Test philosophy:
# Using the by hand calculations found in the docs we check conversion
# between one qubit channels with one Kraus operator (Hadamard) and two
# Kraus operat... | 34.930556 | 98 | 0.602485 |
674979db2e403ec19a4fc12df3f2a373c9172b77 | 86 | py | Python | OIL/__init__.py | vjdad4m/OIL | a664fe213723fe354796245632f58f31583bcba0 | [
"MIT"
] | 1 | 2021-06-22T22:14:16.000Z | 2021-06-22T22:14:16.000Z | OIL/__init__.py | vjdad4m/OIL | a664fe213723fe354796245632f58f31583bcba0 | [
"MIT"
] | null | null | null | OIL/__init__.py | vjdad4m/OIL | a664fe213723fe354796245632f58f31583bcba0 | [
"MIT"
] | null | null | null | import OIL.color
import OIL.label
import OIL.parser
import OIL.tools
import OIL.errors | 17.2 | 17 | 0.837209 |
6749e169faceb4050a87041472715faed2d19901 | 2,866 | py | Python | lib/spack/spack/cmd/load.py | padamson/spack | d3f67a48552691b4846ccc4a10f76740b154090c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2021-03-05T10:54:32.000Z | 2021-03-05T14:14:52.000Z | lib/spack/spack/cmd/load.py | padamson/spack | d3f67a48552691b4846ccc4a10f76740b154090c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 32 | 2020-12-15T17:29:20.000Z | 2022-03-21T15:08:31.000Z | lib/spack/spack/cmd/load.py | padamson/spack | d3f67a48552691b4846ccc4a10f76740b154090c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2021-07-19T20:31:27.000Z | 2021-07-19T21:14:14.000Z | # Copyright 2013-2021 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)
import sys
import spack.cmd
import spack.cmd.common.arguments as arguments
import spack.environment as ev
import spack.st... | 34.119048 | 79 | 0.664689 |
674ba1aa522d2bf108faa75b0291c6fcbe497e66 | 1,680 | py | Python | poisson_image_editing.py | zishun/Poisson-EVA2019 | de3dd88f4046f63575d02c9395b26a4b1d0b6258 | [
"BSD-3-Clause"
] | null | null | null | poisson_image_editing.py | zishun/Poisson-EVA2019 | de3dd88f4046f63575d02c9395b26a4b1d0b6258 | [
"BSD-3-Clause"
] | null | null | null | poisson_image_editing.py | zishun/Poisson-EVA2019 | de3dd88f4046f63575d02c9395b26a4b1d0b6258 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import imageio
from PoissonTemperature import FiniteDifferenceMatrixConstruction
if __name__ == '__main__':
folder = './data/pie/'
mask = imageio.imread(folder+'mask.png')[:, :, 0].astype(np.float32)
background = imageio.imread(folder+'mona.png')[:, :, :3]/255
foreground = imageio... | 32.941176 | 72 | 0.671429 |
674c93e05bb72036422e17078331287c9f481a64 | 10,343 | py | Python | mindsdb/api/http/initialize.py | mindsdb/main | 2c7c09a756c17a47f2ff4a38bf45203d706240ee | [
"MIT"
] | 261 | 2018-09-28T02:32:17.000Z | 2018-12-10T06:30:54.000Z | mindsdb/api/http/initialize.py | mindsdb/main | 2c7c09a756c17a47f2ff4a38bf45203d706240ee | [
"MIT"
] | 27 | 2018-09-26T08:49:11.000Z | 2018-12-10T14:42:52.000Z | mindsdb/api/http/initialize.py | mindsdb/main | 2c7c09a756c17a47f2ff4a38bf45203d706240ee | [
"MIT"
] | 46 | 2018-10-06T10:11:18.000Z | 2018-12-10T04:02:17.000Z | from distutils.version import LooseVersion
import requests
import os
import shutil
import threading
import webbrowser
from zipfile import ZipFile
from pathlib import Path
import traceback
import tempfile
# import concurrent.futures
from flask import Flask, url_for, make_response
from flask.json import dumps
from flask_... | 34.591973 | 178 | 0.667601 |
674df0520020cb5c060d141941c47d1d5a1e8c48 | 9,686 | py | Python | pyrocov/io.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 22 | 2021-09-14T04:33:11.000Z | 2022-02-01T21:33:05.000Z | pyrocov/io.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 7 | 2021-11-02T13:48:35.000Z | 2022-03-23T18:08:35.000Z | pyrocov/io.py | corneliusroemer/pyro-cov | 54e89d128293f9ff9e995c442f72fa73f5f99b76 | [
"Apache-2.0"
] | 6 | 2021-09-18T01:06:51.000Z | 2022-01-10T02:22:06.000Z | # Copyright Contributors to the Pyro-Cov project.
# SPDX-License-Identifier: Apache-2.0
import functools
import io
import logging
import math
import re
import sys
import torch
import torch.multiprocessing as mp
from Bio import AlignIO
from Bio.Phylo.NewickIO import Parser
from Bio.Seq import Seq
from Bio.SeqRecord im... | 31.044872 | 88 | 0.574024 |
674dfe34110c0256d54ed4a145016c108d5fa7fa | 1,439 | py | Python | core.py | mistifiedwarrior/house_price_prediction | c935650130ea6464f948706d057af6f044abbff6 | [
"MIT"
] | null | null | null | core.py | mistifiedwarrior/house_price_prediction | c935650130ea6464f948706d057af6f044abbff6 | [
"MIT"
] | null | null | null | core.py | mistifiedwarrior/house_price_prediction | c935650130ea6464f948706d057af6f044abbff6 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
| 31.977778 | 100 | 0.648367 |
674e48cd30f8211b37cb1b97721c2c716552aabd | 605 | py | Python | Python/bank-robbers.py | JaredLGillespie/CodinGame | 7e14078673300f66d56c8af4f66d9bf5d2229fa6 | [
"MIT"
] | 1 | 2020-01-05T17:44:57.000Z | 2020-01-05T17:44:57.000Z | Python/bank-robbers.py | JaredLGillespie/CodinGame | 7e14078673300f66d56c8af4f66d9bf5d2229fa6 | [
"MIT"
] | null | null | null | Python/bank-robbers.py | JaredLGillespie/CodinGame | 7e14078673300f66d56c8af4f66d9bf5d2229fa6 | [
"MIT"
] | 2 | 2020-09-27T16:02:53.000Z | 2021-11-24T09:08:59.000Z | # https://www.codingame.com/training/easy/bank-robbers
from heapq import *
solution()
| 20.862069 | 66 | 0.609917 |
674e497c1af4728fb031faf7f24fbf2bf5bd7b4b | 576 | py | Python | 14Django/day04/BookManager/introduction1.py | HaoZhang95/PythonAndMachineLearning | b897224b8a0e6a5734f408df8c24846a98c553bf | [
"MIT"
] | 937 | 2019-05-08T08:46:25.000Z | 2022-03-31T12:56:07.000Z | 14Django/day04/BookManager/introduction1.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 47 | 2019-09-17T10:06:02.000Z | 2022-03-11T23:46:52.000Z | 14Django/day04/BookManager/introduction1.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 354 | 2019-05-10T02:15:26.000Z | 2022-03-30T05:52:57.000Z | """
{{ }}
{% %}
{% |, Book.id | add: 1 <= 2 id+12
|: %} 2
{% if book.name|length > 4 %} |name.length
{{ book.pub_date|date:'Ymj' }}
"""
"""
CSRF
()
CSRF
"""
"""
session
session
""" | 24 | 85 | 0.670139 |
674eb289511fbd351f416105eb842fadb81a491d | 291 | py | Python | gammapy/maps/__init__.py | watsonjj/gammapy | 8d2498c8f63f73d1fbe4ba81ab02d9e72552df67 | [
"BSD-3-Clause"
] | null | null | null | gammapy/maps/__init__.py | watsonjj/gammapy | 8d2498c8f63f73d1fbe4ba81ab02d9e72552df67 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T19:55:46.000Z | 2020-10-29T19:55:46.000Z | gammapy/maps/__init__.py | watsonjj/gammapy | 8d2498c8f63f73d1fbe4ba81ab02d9e72552df67 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Sky maps."""
from .base import *
from .geom import *
from .hpx import *
from .hpxnd import *
from .hpxsparse import *
from .hpxmap import *
from .wcs import *
from .wcsnd import *
from .wcsmap import *
from .sparse import *
| 22.384615 | 63 | 0.71134 |
674ebc40e603703da0b0ddbc5fe2fad3846b9a69 | 3,305 | py | Python | lhotse/dataset/sampling/utils.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | 353 | 2020-10-31T10:38:51.000Z | 2022-03-30T05:22:52.000Z | lhotse/dataset/sampling/utils.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | 353 | 2020-10-27T23:25:12.000Z | 2022-03-31T22:16:05.000Z | lhotse/dataset/sampling/utils.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | 66 | 2020-11-01T06:08:08.000Z | 2022-03-29T02:03:07.000Z | import warnings
from typing import Dict, Tuple
from lhotse import CutSet
from lhotse.dataset.sampling.base import CutSampler
def find_pessimistic_batches(
sampler: CutSampler, batch_tuple_index: int = 0
) -> Tuple[Dict[str, CutSet], Dict[str, float]]:
"""
Function for finding 'pessimistic' batches, i.e. ... | 39.345238 | 108 | 0.644781 |
674f2806f73a13483671e5b0ce4735f88b2f1c4f | 606 | py | Python | book/migrations/0010_auto_20170603_1441.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | null | null | null | book/migrations/0010_auto_20170603_1441.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | 144 | 2015-10-18T17:19:03.000Z | 2021-06-27T07:05:56.000Z | book/migrations/0010_auto_20170603_1441.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | 1 | 2015-10-18T17:04:39.000Z | 2015-10-18T17:04:39.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-03 08:41
from __future__ import unicode_literals
from django.db import migrations, models
| 23.307692 | 64 | 0.587459 |
674faa0b694ce161c45416e214ad1d35c7eb77fc | 1,218 | py | Python | contrib/ComparisonStatistics/Test/test_1.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | contrib/ComparisonStatistics/Test/test_1.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | contrib/ComparisonStatistics/Test/test_1.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z | #!/usr/bin/env python
import ComparisonStatistics
import cdutil
import os,sys
# Reference
ref = os.path.join(cdutil.__path__[0],'..','..','..','..','sample_data','tas_dnm-95a.xml')
Ref=cdutil.VariableConditioner(ref)
Ref.var='tas'
Ref.id='reference'
# Test
tst = os.path.join(cdutil.__path__[0],'..','..','..','..','s... | 24.36 | 91 | 0.728243 |
674fc8fb47108fcde4353966aaff882285b50e79 | 1,087 | py | Python | mathipy/functions/linearithmic.py | BatiDyDx/maths-tools-python | e9a58aa669b5f36d7ee01402fe1f16a1db7b0e50 | [
"MIT"
] | 1 | 2021-02-02T02:58:38.000Z | 2021-02-02T02:58:38.000Z | mathipy/functions/linearithmic.py | BatiDyDx/maths-tools-python | e9a58aa669b5f36d7ee01402fe1f16a1db7b0e50 | [
"MIT"
] | null | null | null | mathipy/functions/linearithmic.py | BatiDyDx/maths-tools-python | e9a58aa669b5f36d7ee01402fe1f16a1db7b0e50 | [
"MIT"
] | null | null | null | import math
import numpy as np
from mathipy.math import calculus | 30.194444 | 92 | 0.554738 |
674feabbfb04fd43b656a2ee09e804a9db0cc338 | 11,479 | py | Python | pivot_based_eccv2018/misc/expander/disambiguate.py | gujiuxiang/unpaired_im2text_iccv19 | cf71b82b3d2616b0b1fb5c2dfd7f7832cd1e8ec2 | [
"MIT"
] | 18 | 2019-11-01T13:50:03.000Z | 2022-03-14T03:07:34.000Z | pivot_based_eccv2018/misc/expander/disambiguate.py | gujiuxiang/unpaired_im2text_iccv19 | cf71b82b3d2616b0b1fb5c2dfd7f7832cd1e8ec2 | [
"MIT"
] | 7 | 2020-01-03T13:53:26.000Z | 2021-03-25T22:55:52.000Z | pivot_based_eccv2018/misc/expander/disambiguate.py | gujiuxiang/unpaired_im2text_iccv19 | cf71b82b3d2616b0b1fb5c2dfd7f7832cd1e8ec2 | [
"MIT"
] | 3 | 2019-09-16T02:03:59.000Z | 2021-06-12T07:03:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module contains the necessary functions to load a text-corpus from
NLTK, contract all possible sentences, applying POS-tags to the
contracted sentences and compare that with the original text.
The information about which contraction+pos-tag pair gets expanded to
... | 40.850534 | 77 | 0.586811 |
675069879b1d492d1df7599b3ec43ea76978d06f | 1,881 | py | Python | setup.py | baye0630/paperai | 717f6c5a6652d6bc1bdb70d4a248a4751f820ddb | [
"Apache-2.0"
] | null | null | null | setup.py | baye0630/paperai | 717f6c5a6652d6bc1bdb70d4a248a4751f820ddb | [
"Apache-2.0"
] | null | null | null | setup.py | baye0630/paperai | 717f6c5a6652d6bc1bdb70d4a248a4751f820ddb | [
"Apache-2.0"
] | null | null | null | # pylint: disable = C0111
from setuptools import find_packages, setup
setup(name="paperai",
# version="1.5.0",
# author="NeuML",
# description="AI-powered literature discovery and review engine for medical/scientific papers",
# long_description=DESCRIPTION,
# long_description_content_typ... | 36.882353 | 102 | 0.569378 |
6751ed6431d090ba5f0d7abc986bd5b1a678af78 | 3,295 | py | Python | hit_analysis/image/cut_reconstruction.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | null | null | null | hit_analysis/image/cut_reconstruction.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | 8 | 2021-03-30T12:52:01.000Z | 2022-03-12T00:19:45.000Z | hit_analysis/image/cut_reconstruction.py | credo-science/credo-classify | 1cc5e00a4df36c4069c0d0fbc19f579780b79ca5 | [
"MIT"
] | 1 | 2020-06-12T13:29:34.000Z | 2020-06-12T13:29:34.000Z | from io import BytesIO
from typing import List, Dict
from PIL import Image
from hit_analysis.commons.config import Config
from hit_analysis.commons.consts import IMAGE, CROP_X, CROP_Y, CROP_SIZE, FRAME_DECODED, CLASSIFIED, CLASS_ARTIFACT, ORIG_IMAGE
def do_reconstruct(detections: List[dict], config: Config) -> No... | 35.815217 | 132 | 0.643703 |
67525ed3e9b1efee9050769baa49e34f54d058e4 | 7,215 | py | Python | tests/st/fallback/control_flow/test_fallback_010_if_in_if.py | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | tests/st/fallback/control_flow/test_fallback_010_if_in_if.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | tests/st/fallback/control_flow/test_fallback_010_if_in_if.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | # 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... | 27.43346 | 78 | 0.595981 |
6756dc638ee04975afad0eae2f92936de0c1062f | 42,937 | py | Python | EPOpt/SpectrumAnalysis.py | ruixueqingyang/GPOEO | 8fe65ac3e0ae4d097fdd0d58878aa2cf3201a18c | [
"MIT"
] | 5 | 2021-09-01T18:04:18.000Z | 2022-02-25T04:48:21.000Z | EPOpt/SpectrumAnalysis.py | ruixueqingyang/GPOEO | 8fe65ac3e0ae4d097fdd0d58878aa2cf3201a18c | [
"MIT"
] | null | null | null | EPOpt/SpectrumAnalysis.py | ruixueqingyang/GPOEO | 8fe65ac3e0ae4d097fdd0d58878aa2cf3201a18c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from scipy.fftpack import fft, fftshift, ifft
from scipy.fftpack import fftfreq
from scipy.signal import find_peaks
from scipy import signal
import numpy as np
import matplotlib.pyplot as plt
import pickle
import warnings
import sys
from scipy.signal.filter_design import maxflat
warnings.filter... | 42.851297 | 153 | 0.613038 |
6757319350181b82afbdb20fa5b589436eb598b6 | 3,623 | py | Python | slippy/core/tests/test_materials.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | 12 | 2020-12-06T15:30:06.000Z | 2021-12-14T06:37:15.000Z | slippy/core/tests/test_materials.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | null | null | null | slippy/core/tests/test_materials.py | KDriesen/slippy | 816723fe6ab9f5ed26b14b4fe0f66423649b85e6 | [
"MIT"
] | 5 | 2021-03-18T05:53:11.000Z | 2022-02-16T15:18:43.000Z | import numpy as np
import numpy.testing as npt
import slippy
import slippy.core as core
"""
If you add a material you need to add the properties that it will be tested with to the material_parameters dict,
the key should be the name of the class (what ever it is declared as after the class key word).
The value should ... | 43.650602 | 118 | 0.666299 |
675790d51afdb63e5ecaf1442d2db56ff733f532 | 2,602 | py | Python | python/dash_tools/restore_from_bup.py | Dash-Industry-Forum/media-tools | 66be01ce09c8998d47d05729e0721857b2517017 | [
"BSD-3-Clause"
] | 60 | 2017-01-02T07:44:17.000Z | 2022-03-29T07:39:53.000Z | media-tools/python/dash_tools/restore_from_bup.py | roolrz/ABR-Alg-Implementation | 02ba8fbc804eeabeae1dcd51d359c6b0a2dc7566 | [
"MIT"
] | 4 | 2018-03-23T07:56:21.000Z | 2021-11-22T06:45:12.000Z | media-tools/python/dash_tools/restore_from_bup.py | roolrz/ABR-Alg-Implementation | 02ba8fbc804eeabeae1dcd51d359c6b0a2dc7566 | [
"MIT"
] | 36 | 2016-08-04T14:28:30.000Z | 2022-03-20T09:41:17.000Z | #!/usr/bin/env python
"""Restore files with ending BACKUP_ENDING to original files."""
# The copyright in this software is being made available under the BSD License,
# included below. This software may be subject to other third party and contributor
# rights, including patent rights, and no such rights are granted un... | 41.967742 | 85 | 0.737894 |
67588c7659b325ae0aa6ae1b1ce63ec6f84fa51d | 4,851 | py | Python | src/opendr/simulation/human_model_generation/utilities/joint_extractor.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 3 | 2021-06-24T01:54:25.000Z | 2021-12-12T16:21:24.000Z | src/opendr/simulation/human_model_generation/utilities/joint_extractor.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 79 | 2021-06-23T10:40:10.000Z | 2021-12-16T07:59:42.000Z | src/opendr/simulation/human_model_generation/utilities/joint_extractor.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 5 | 2021-07-04T07:38:50.000Z | 2021-12-12T16:18:47.000Z | # Copyright 2020-2021 OpenDR European Project
#
# 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 agree... | 46.644231 | 119 | 0.520305 |
6758d510a825ee1d3b5115d43a4e119fa4dab901 | 956 | py | Python | bluebottle/donations/migrations/0009_auto_20190130_1140.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/donations/migrations/0009_auto_20190130_1140.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/donations/migrations/0009_auto_20190130_1140.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-01-30 10:40
from __future__ import unicode_literals
import bluebottle.utils.fields
from decimal import Decimal
from django.db import migrations, models
import django.db.models.deletion
import djmoney.models.fields
| 31.866667 | 179 | 0.66318 |
675926d38ebca3605bde9778baaa7d1ff647176f | 95 | py | Python | pickle_storage/tests/__init__.py | PyUnchained/pickle_storage | c0a978701ae59a9feeb3e14026ff0b2353b2e7f5 | [
"MIT"
] | null | null | null | pickle_storage/tests/__init__.py | PyUnchained/pickle_storage | c0a978701ae59a9feeb3e14026ff0b2353b2e7f5 | [
"MIT"
] | null | null | null | pickle_storage/tests/__init__.py | PyUnchained/pickle_storage | c0a978701ae59a9feeb3e14026ff0b2353b2e7f5 | [
"MIT"
] | null | null | null | # import os
# os.environ.setdefault('PICKLE_STORAGE_SETTINGS', 'pickle_storage.tests.settings') | 47.5 | 83 | 0.810526 |
6759d2fab349039ee4a85d50f2f8ff9d4646da91 | 6,592 | py | Python | src/config.py | NicolasSommer/valuenet | 1ce7e56956b378a8f281e9f9919e6aa98516a9d9 | [
"Apache-2.0"
] | null | null | null | src/config.py | NicolasSommer/valuenet | 1ce7e56956b378a8f281e9f9919e6aa98516a9d9 | [
"Apache-2.0"
] | null | null | null | src/config.py | NicolasSommer/valuenet | 1ce7e56956b378a8f281e9f9919e6aa98516a9d9 | [
"Apache-2.0"
] | null | null | null | import argparse
import json
import os
| 40.944099 | 104 | 0.715564 |
675abb614add4be960125080b494d7201adec0de | 2,352 | py | Python | aqg/utils/summarizer.py | Sicaida/Automatic_Question_Generation | a228c166d40103a194e1daa23ff37f73c9488a5d | [
"MIT"
] | 134 | 2018-04-04T19:06:09.000Z | 2022-02-24T03:24:36.000Z | aqg/utils/summarizer.py | Sicaida/Automatic_Question_Generation | a228c166d40103a194e1daa23ff37f73c9488a5d | [
"MIT"
] | 22 | 2018-09-20T07:17:11.000Z | 2022-03-11T23:45:15.000Z | aqg/utils/summarizer.py | sagarparikh2013/Automatic-Question-Generation-NLP | 6a2cf5d90e47980676f57c67f2ed73be6f8d7fed | [
"MIT"
] | 50 | 2018-07-09T16:29:15.000Z | 2021-12-20T11:37:33.000Z | from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from sumy.parsers.html import HtmlParser
from sumy.parsers.plaintext import PlaintextParser
from sumy.nlp.tokenizers import Tokenizer
#from sumy.summarizers.lsa import LsaSummarizer as Summarizer
from sumy.summariz... | 31.783784 | 79 | 0.676446 |
675aeab4c1e2b9cf3c2dce4e2188f947ea6ee089 | 50 | py | Python | tests/__init__.py | AdamRuddGH/super_json_normalize | 4a3c77d0e0dce632678ffe40b37fbd98fd2b4be8 | [
"MIT"
] | 2 | 2021-10-03T02:43:41.000Z | 2021-10-04T10:15:20.000Z | tests/__init__.py | AdamRuddGH/super_json_normalize | 4a3c77d0e0dce632678ffe40b37fbd98fd2b4be8 | [
"MIT"
] | null | null | null | tests/__init__.py | AdamRuddGH/super_json_normalize | 4a3c77d0e0dce632678ffe40b37fbd98fd2b4be8 | [
"MIT"
] | null | null | null | """Unit test package for super_json_normalize."""
| 25 | 49 | 0.76 |
675c672977a46ec740f1a913b376d847b4aabb59 | 4,212 | py | Python | examples/turbulent_condensate/run.py | chrisjbillington/parpde | 4f882cbbb9ad6c57814e4422e9ba063fa27886a0 | [
"BSD-2-Clause"
] | null | null | null | examples/turbulent_condensate/run.py | chrisjbillington/parpde | 4f882cbbb9ad6c57814e4422e9ba063fa27886a0 | [
"BSD-2-Clause"
] | null | null | null | examples/turbulent_condensate/run.py | chrisjbillington/parpde | 4f882cbbb9ad6c57814e4422e9ba063fa27886a0 | [
"BSD-2-Clause"
] | null | null | null | # An example of a turbulent BEC in a harmonic trap. The groundstate is found
# and then some vortices randomly printed about with a phase printing. Some
# evolution in imaginary time is then performed to smooth things out before
# evolving the BEC in time.
# Run with 'mpirun -n <N CPUs> python run_example.py'
from __... | 39.364486 | 116 | 0.626068 |
675c80c6427e7f597a41119f9db761e49256c6ca | 3,918 | py | Python | src/Test_Sfepy_NavierStokes.py | somu15/Small_Pf_code | 35f3d28faab2aa80f2332499f5e7ab19b040eabe | [
"MIT"
] | null | null | null | src/Test_Sfepy_NavierStokes.py | somu15/Small_Pf_code | 35f3d28faab2aa80f2332499f5e7ab19b040eabe | [
"MIT"
] | null | null | null | src/Test_Sfepy_NavierStokes.py | somu15/Small_Pf_code | 35f3d28faab2aa80f2332499f5e7ab19b040eabe | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 28 09:33:53 2020
@author: dhulls
"""
from __future__ import print_function
from __future__ import absolute_import
from argparse import ArgumentParser
import numpy as nm
import sys
sys.path.append('.')
from sfepy.base.base import IndexedStruct, St... | 41.242105 | 234 | 0.70342 |
675d0fb6b3b1a21973d25abe79cafce5b94844f8 | 4,063 | py | Python | nd_customization/api/lab_test.py | libermatic/nd_customization | 4ee14c661651b09ef16aaf64952ceedc67bb602d | [
"MIT"
] | null | null | null | nd_customization/api/lab_test.py | libermatic/nd_customization | 4ee14c661651b09ef16aaf64952ceedc67bb602d | [
"MIT"
] | 10 | 2018-11-12T21:53:56.000Z | 2019-04-27T06:24:13.000Z | nd_customization/api/lab_test.py | libermatic/nd_customization | 4ee14c661651b09ef16aaf64952ceedc67bb602d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import frappe
import json
from frappe.utils import now, cint
from functools import partial
from toolz import compose
_get_subsections = compose(
partial(map, lambda x: x.get("test_event") or x.get("particulars")),
partial(filter, lambda x: cint(... | 36.603604 | 87 | 0.628846 |
675e10e80e4d185d1bb67fc4f8ca4f7d8148f472 | 2,283 | py | Python | build-flask-app.py | Abdur-rahmaanJ/build-flask-app | 476d1f0e0c505a60acadde13397b2787f49bd7dc | [
"MIT"
] | 1 | 2020-02-24T04:09:25.000Z | 2020-02-24T04:09:25.000Z | build-flask-app.py | Abdur-rahmaanJ/build-flask-app | 476d1f0e0c505a60acadde13397b2787f49bd7dc | [
"MIT"
] | null | null | null | build-flask-app.py | Abdur-rahmaanJ/build-flask-app | 476d1f0e0c505a60acadde13397b2787f49bd7dc | [
"MIT"
] | 1 | 2020-07-15T05:03:18.000Z | 2020-07-15T05:03:18.000Z | #!/usr/bin/env python3
from scripts.workflow import get_app_name, is_name_valid
from scripts.workflow import get_args, is_args_valid
from scripts.workflow import create_dir, create_app, create_templates_folder, create_static_folder, create_dockerfile
from scripts.manual import print_manual
from scripts.messages import... | 31.708333 | 117 | 0.616732 |
675e7374895c08103fdfc9d9f90f2f45da303fe7 | 2,960 | py | Python | stacker/assembler.py | unrahul/stacker | f94e9e6ad9351fd8fa94bef4ae0c4ed0afc8305d | [
"Apache-2.0"
] | null | null | null | stacker/assembler.py | unrahul/stacker | f94e9e6ad9351fd8fa94bef4ae0c4ed0afc8305d | [
"Apache-2.0"
] | 11 | 2020-01-23T16:45:07.000Z | 2020-02-08T16:53:22.000Z | stacker/assembler.py | unrahul/stacker | f94e9e6ad9351fd8fa94bef4ae0c4ed0afc8305d | [
"Apache-2.0"
] | 2 | 2020-01-29T18:18:20.000Z | 2020-01-29T19:55:25.000Z | import os
from pathlib import Path
from jinja2 import Template
import parser
from utils import write_to_file
from utils import mkdir_p
parser.init()
# parse and assign to vars
spec = parser.spec
def _concat(slice: str) -> str:
"""helper to concatenate each template slice."""
return "{}\n".format(slice)
... | 33.636364 | 82 | 0.65777 |
675e9236debc2ccf610756e1ddfa6942ba31102c | 621 | py | Python | akshare/fx/cons.py | PKUuu/akshare | 03967312b6c8afdec32e081fb23ae5916b674936 | [
"MIT"
] | 1 | 2020-05-14T13:20:48.000Z | 2020-05-14T13:20:48.000Z | akshare/fx/cons.py | 13767849/akshare | 5b7e4daaa80b1ccaf3f5a980a1205848e2e8570d | [
"MIT"
] | null | null | null | akshare/fx/cons.py | 13767849/akshare | 5b7e4daaa80b1ccaf3f5a980a1205848e2e8570d | [
"MIT"
] | 2 | 2020-09-23T08:50:14.000Z | 2020-09-28T09:57:07.000Z | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Albert King
date: 2019/10/20 10:58
contact: jindaxiang@163.com
desc:
"""
# headers
SHORT_HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36'
}
# url
FX_SPOT_URL = "htt... | 29.571429 | 134 | 0.698873 |
675ffb2c535d8805575601fc596c61d52191a22a | 1,283 | py | Python | entropylab/tests/test_issue_204.py | qguyk/entropy | e43077026c83fe84de022cf8636b2c9d42f1d330 | [
"BSD-3-Clause"
] | null | null | null | entropylab/tests/test_issue_204.py | qguyk/entropy | e43077026c83fe84de022cf8636b2c9d42f1d330 | [
"BSD-3-Clause"
] | null | null | null | entropylab/tests/test_issue_204.py | qguyk/entropy | e43077026c83fe84de022cf8636b2c9d42f1d330 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T11:47:31.000Z | 2022-03-29T11:47:31.000Z | import os
from datetime import datetime
import pytest
from entropylab import ExperimentResources, SqlAlchemyDB, PyNode, Graph
| 26.729167 | 85 | 0.681216 |
67607806f4f757a440672ca409795cb6fc24a8c8 | 97 | py | Python | src/__init__.py | PY-GZKY/fconversion | f1da069ac258444c8a6b2a5fe77d0e1295a0d4e4 | [
"Apache-2.0"
] | 1 | 2022-02-11T09:39:08.000Z | 2022-02-11T09:39:08.000Z | src/__init__.py | PY-GZKY/fconversion | f1da069ac258444c8a6b2a5fe77d0e1295a0d4e4 | [
"Apache-2.0"
] | null | null | null | src/__init__.py | PY-GZKY/fconversion | f1da069ac258444c8a6b2a5fe77d0e1295a0d4e4 | [
"Apache-2.0"
] | null | null | null | from .file_core import FileEngine
from src.utils.utils import *
from .version import __version__
| 24.25 | 33 | 0.824742 |
676261a506ad81b93b8c0f929316b27e9a10621d | 169 | py | Python | app/app/calc.py | benning55/recipe-app-api | a63366c7bb576fefbc755fe873731d2edf3e74d2 | [
"MIT"
] | null | null | null | app/app/calc.py | benning55/recipe-app-api | a63366c7bb576fefbc755fe873731d2edf3e74d2 | [
"MIT"
] | null | null | null | app/app/calc.py | benning55/recipe-app-api | a63366c7bb576fefbc755fe873731d2edf3e74d2 | [
"MIT"
] | null | null | null | #
# def add(x, y):
# """
# Add Number Together
# """
# return x+y
#
#
# def subtract(x, y):
# """
# Subtract x from y
# """
# return x-y
| 12.071429 | 25 | 0.402367 |
676411e3c65abd02fa317570d558db02833381e4 | 7,673 | py | Python | open_anafi/lib/indicator_tools.py | Cour-des-comptes/open-anafi-backend | 1d3ebcfe7b46315e91618f540ef1c95b4e20d9af | [
"MIT"
] | 7 | 2020-01-10T09:34:52.000Z | 2020-01-27T13:51:12.000Z | open_anafi/lib/indicator_tools.py | Cour-des-comptes/open-anafi-backend | 1d3ebcfe7b46315e91618f540ef1c95b4e20d9af | [
"MIT"
] | 6 | 2020-01-26T20:38:07.000Z | 2022-02-10T12:12:53.000Z | open_anafi/lib/indicator_tools.py | Cour-des-comptes/open-anafi-backend | 1d3ebcfe7b46315e91618f540ef1c95b4e20d9af | [
"MIT"
] | 4 | 2020-01-27T16:44:31.000Z | 2021-02-11T16:52:26.000Z | from open_anafi.models import Indicator, IndicatorParameter, IndicatorLibelle
from open_anafi.serializers import IndicatorSerializer
from .frame_tools import FrameTools
from open_anafi.lib import parsing_tools
from open_anafi.lib.ply.parsing_classes import Indic
import re
from django.db import transaction
from django.c... | 37.985149 | 129 | 0.639776 |
67656a05cc2aa8785f99e903c16b411d139ad81d | 3,576 | py | Python | src/python/commands/LikeImpl.py | plewis/phycas | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | [
"MIT"
] | 3 | 2015-09-24T23:12:57.000Z | 2021-04-12T07:07:01.000Z | src/python/commands/LikeImpl.py | plewis/phycas | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | [
"MIT"
] | null | null | null | src/python/commands/LikeImpl.py | plewis/phycas | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | [
"MIT"
] | 1 | 2015-11-23T10:35:43.000Z | 2015-11-23T10:35:43.000Z | import os,sys,math,random
from phycas import *
from MCMCManager import LikelihoodCore
from phycas.utilities.PhycasCommand import *
from phycas.readnexus import NexusReader
from phycas.utilities.CommonFunctions import CommonFunctions
| 39.733333 | 131 | 0.576622 |
67659e478a5e5c7c61b17fe40c449153891a0e5c | 291 | py | Python | app/models.py | dangger/awesome-flask-todo | 8eb2ec5357a028a76015035940d6f7844623ff98 | [
"MIT"
] | null | null | null | app/models.py | dangger/awesome-flask-todo | 8eb2ec5357a028a76015035940d6f7844623ff98 | [
"MIT"
] | null | null | null | app/models.py | dangger/awesome-flask-todo | 8eb2ec5357a028a76015035940d6f7844623ff98 | [
"MIT"
] | null | null | null | from app import db
import datetime
from flask_mongoengine.wtf import model_form
TodoForm = model_form(Todo)
| 26.454545 | 60 | 0.766323 |
6767a8053401b419268988cde796fcad2ed726b3 | 157 | py | Python | Python/Mundo01/teste/teste2.py | eStev4m/CursoPython | 8b52a618e67c80d66518ef91c1d4596a2bfddc22 | [
"MIT"
] | null | null | null | Python/Mundo01/teste/teste2.py | eStev4m/CursoPython | 8b52a618e67c80d66518ef91c1d4596a2bfddc22 | [
"MIT"
] | null | null | null | Python/Mundo01/teste/teste2.py | eStev4m/CursoPython | 8b52a618e67c80d66518ef91c1d4596a2bfddc22 | [
"MIT"
] | null | null | null | dia = int(input('Dia = '))
mes = str(input('Ms = '))
ano = int(input('Ano = '))
print('Voc nasceu no dia {} de {} de {}. Correto?' .format(dia, mes, ano))
| 31.4 | 75 | 0.56051 |
6767ec882d17e62fa49469a5e7630e14c022c42d | 16,089 | py | Python | firebirdsql/services.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 31 | 2015-03-28T09:43:53.000Z | 2022-02-27T18:20:06.000Z | firebirdsql/services.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 24 | 2015-01-16T03:00:33.000Z | 2022-02-08T00:06:05.000Z | firebirdsql/services.py | dand-oss/pyfirebirdsql | 1b8148f8937929cdd74774fef2611dd55ea6a757 | [
"BSD-2-Clause"
] | 21 | 2015-01-15T23:00:26.000Z | 2020-11-04T08:30:13.000Z | ##############################################################################
# Copyright (c) 2009-2021, Hajime Nakagami<nakagami@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * ... | 38.675481 | 85 | 0.604139 |
6768a012fa3b71acafcce223de6b3ec16122e616 | 763 | py | Python | source/utils/converters.py | GoBoopADog/maelstrom | fce79fa964578dfee5d7beb4ec440deec5f8f25d | [
"MIT"
] | 2 | 2021-03-02T15:37:01.000Z | 2021-04-21T10:45:32.000Z | source/utils/converters.py | GoBoopADog/maelstrom | fce79fa964578dfee5d7beb4ec440deec5f8f25d | [
"MIT"
] | 1 | 2021-02-28T20:26:04.000Z | 2021-03-01T17:55:55.000Z | source/utils/converters.py | GoBoopADog/maelstrom | fce79fa964578dfee5d7beb4ec440deec5f8f25d | [
"MIT"
] | 4 | 2021-02-28T04:08:03.000Z | 2021-09-05T17:16:44.000Z | from discord.ext import commands
from typing import Union
from types import ModuleType
from .context import Context
| 30.52 | 77 | 0.655308 |
6769164b195db417c53c603f5e118948e48af7f8 | 8,230 | py | Python | credstuffer/db/creator.py | bierschi/credstuffer | 1a37aef30654028885d0d2caa456f38f58af4def | [
"MIT"
] | null | null | null | credstuffer/db/creator.py | bierschi/credstuffer | 1a37aef30654028885d0d2caa456f38f58af4def | [
"MIT"
] | null | null | null | credstuffer/db/creator.py | bierschi/credstuffer | 1a37aef30654028885d0d2caa456f38f58af4def | [
"MIT"
] | 1 | 2020-10-05T12:10:32.000Z | 2020-10-05T12:10:32.000Z | import logging
from credstuffer.db.connector import DBConnector
from credstuffer.exceptions import DBCreatorError
| 31.776062 | 116 | 0.615188 |
67692e8a3e167b8004f399714ed1c11e30cf9ebb | 897 | py | Python | src/poetry/core/masonry/builder.py | DavidVujic/poetry-core | d7b5572aabc762f138e4d15f461f13a28c8258d6 | [
"MIT"
] | null | null | null | src/poetry/core/masonry/builder.py | DavidVujic/poetry-core | d7b5572aabc762f138e4d15f461f13a28c8258d6 | [
"MIT"
] | null | null | null | src/poetry/core/masonry/builder.py | DavidVujic/poetry-core | d7b5572aabc762f138e4d15f461f13a28c8258d6 | [
"MIT"
] | null | null | null | from __future__ import annotations
from pathlib import Path
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from poetry.core.poetry import Poetry
| 27.181818 | 76 | 0.630992 |
676b193319b9f06972fcafcb462e36e367c9d59d | 659 | py | Python | migrations/versions/429d596c43a7_users_country.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | 2 | 2021-02-15T12:56:58.000Z | 2021-02-21T12:38:47.000Z | migrations/versions/429d596c43a7_users_country.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | null | null | null | migrations/versions/429d596c43a7_users_country.py | bilginfurkan/Anonimce | 7d73c13ae8d5c873b6863878370ad83ec9ee5acc | [
"Apache-2.0"
] | null | null | null | """users.country
Revision ID: 429d596c43a7
Revises: 77e0c0edaa04
Create Date: 2020-10-23 21:26:55.598146
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '429d596c43a7'
down_revision = '77e0c0edaa04'
branch_labels = None
depends_on = None
| 22.724138 | 84 | 0.691958 |
676bce0736ccad204cb3cef87d200632b75f487f | 4,535 | py | Python | tweet_processor.py | cristynhoward/connectfour | a6727cbe47696a0a3dd278a3929d81dc6e158999 | [
"MIT"
] | 1 | 2018-06-28T09:45:59.000Z | 2018-06-28T09:45:59.000Z | tweet_processor.py | cristynhoward/connectfour | a6727cbe47696a0a3dd278a3929d81dc6e158999 | [
"MIT"
] | null | null | null | tweet_processor.py | cristynhoward/connectfour | a6727cbe47696a0a3dd278a3929d81dc6e158999 | [
"MIT"
] | null | null | null | """ Module for processing mentions of the bot via the Twitter API.
"""
from ConnectFourGame import *
from databasehelpers import *
from helpers import *
from minimax import *
def process_mentions():
""" Scan through recent mentions and send them to be processed.
"""
api = get_twitter_api()
first = Tru... | 39.780702 | 114 | 0.613892 |
676c11480ace0b3ea4cda5237879a07a2c1fe362 | 3,448 | py | Python | code/seasonality.py | geangohn/RecSys | f53d0322fed414caa820cebf23bef5a0a9237517 | [
"MIT"
] | 2 | 2019-07-22T09:42:25.000Z | 2021-03-31T09:29:29.000Z | code/seasonality.py | geangohn/RecSys | f53d0322fed414caa820cebf23bef5a0a9237517 | [
"MIT"
] | null | null | null | code/seasonality.py | geangohn/RecSys | f53d0322fed414caa820cebf23bef5a0a9237517 | [
"MIT"
] | null | null | null | import pandas as pd
| 74.956522 | 120 | 0.690255 |
676d15fe9000290c81a06864a2972f44722d480f | 1,729 | py | Python | discord_api/applications.py | tuna2134/discord-api.py | 0e5e9f469d852f81e6fc0b561c54a78ea6fe8fcb | [
"MIT"
] | 10 | 2021-11-30T06:22:20.000Z | 2021-12-16T00:36:14.000Z | discord_api/applications.py | tuna2134/discord-api.py | 0e5e9f469d852f81e6fc0b561c54a78ea6fe8fcb | [
"MIT"
] | 5 | 2021-12-03T10:21:15.000Z | 2022-01-18T11:08:48.000Z | discord_api/applications.py | tuna2134/discord-api.py | 0e5e9f469d852f81e6fc0b561c54a78ea6fe8fcb | [
"MIT"
] | 3 | 2021-12-10T08:34:28.000Z | 2022-01-21T11:59:46.000Z | from .command import Command, ApiCommand
| 28.816667 | 72 | 0.520532 |
676d466a108d99b100b2c3a5a8c5c61b4428733b | 280 | py | Python | SinglePackage/tests/test_single.py | CJosephides/PythonApplicationStructures | b82385f7a35f3097eac08011d24d9d1429cee171 | [
"RSA-MD"
] | 1 | 2019-02-05T11:45:11.000Z | 2019-02-05T11:45:11.000Z | SinglePackage/tests/test_single.py | CJosephides/PythonApplicationStructures | b82385f7a35f3097eac08011d24d9d1429cee171 | [
"RSA-MD"
] | null | null | null | SinglePackage/tests/test_single.py | CJosephides/PythonApplicationStructures | b82385f7a35f3097eac08011d24d9d1429cee171 | [
"RSA-MD"
] | null | null | null | from unittest import TestCase, main
from single_package.single import Single
if __name__ == "__main__":
main()
| 17.5 | 50 | 0.692857 |
676d7655b19bd0498b46ef17e54ab70538bcef0d | 1,563 | py | Python | tests/spot/sub_account/test_sub_account_deposit_address.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 512 | 2021-06-15T08:52:44.000Z | 2022-03-31T09:49:53.000Z | tests/spot/sub_account/test_sub_account_deposit_address.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 75 | 2021-06-20T13:49:50.000Z | 2022-03-30T02:45:31.000Z | tests/spot/sub_account/test_sub_account_deposit_address.py | Banging12/binance-connector-python | dc6fbbd0bb64fb08d73ad8b31e0b81d776efa30b | [
"MIT"
] | 156 | 2021-06-18T11:56:36.000Z | 2022-03-29T16:34:22.000Z | import responses
from tests.util import random_str
from tests.util import mock_http_response
from binance.spot import Spot as Client
from binance.lib.utils import encoded_string
from binance.error import ParameterRequiredError
mock_item = {"key_1": "value_1", "key_2": "value_2"}
key = random_str()
secret = random_st... | 26.05 | 79 | 0.690339 |
676e003414de3f2f5ddecf2d26540316287d4189 | 6,232 | py | Python | tools/telemetry/telemetry/results/page_test_results.py | Fusion-Rom/android_external_chromium_org | d8b126911c6ea9753e9f526bee5654419e1d0ebd | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-01-25T09:58:49.000Z | 2020-01-25T09:58:49.000Z | tools/telemetry/telemetry/results/page_test_results.py | Fusion-Rom/android_external_chromium_org | d8b126911c6ea9753e9f526bee5654419e1d0ebd | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/results/page_test_results.py | Fusion-Rom/android_external_chromium_org | d8b126911c6ea9753e9f526bee5654419e1d0ebd | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T06:34:36.000Z | 2020-11-04T06:34:36.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import copy
import traceback
from telemetry import value as value_module
from telemetry.results import page_run
from telemetry.results im... | 33.869565 | 75 | 0.72914 |
676fd905727818efa8eda82566b5e796e9f06ce8 | 11,273 | py | Python | src/utils/gradcam.py | xmuyzz/IVContrast | f3100e54f1808e1a796acd97ef5d23d0a2fd4f6c | [
"MIT"
] | 3 | 2022-02-23T09:05:45.000Z | 2022-02-23T20:18:18.000Z | src/utils/gradcam.py | xmuyzz/IVContrast | f3100e54f1808e1a796acd97ef5d23d0a2fd4f6c | [
"MIT"
] | null | null | null | src/utils/gradcam.py | xmuyzz/IVContrast | f3100e54f1808e1a796acd97ef5d23d0a2fd4f6c | [
"MIT"
] | null | null | null | from tensorflow.keras.models import Model
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
import cv2
import numpy as np
import pandas as pd
from tensorflow.keras.models import load_model
import tensorflow as tf
import os
#--------------... | 37.327815 | 86 | 0.593808 |
677019eb7c18145cccb4dc9a2d50f339eddc7e89 | 5,038 | py | Python | start.py | xylovedd/yangyang | 4cb99491c0f046da9a39f7c916e0c85cb473c002 | [
"Apache-2.0"
] | 20 | 2019-11-14T02:53:53.000Z | 2022-03-26T02:44:04.000Z | start.py | janlle/12306 | 73b1d5423492013447ebdbbfcc6f1fe3a719ee0b | [
"Apache-2.0"
] | 9 | 2019-11-17T09:16:37.000Z | 2022-03-12T00:07:14.000Z | start.py | xylovedd/yangyang | 4cb99491c0f046da9a39f7c916e0c85cb473c002 | [
"Apache-2.0"
] | 7 | 2019-12-05T09:26:09.000Z | 2020-11-15T15:13:16.000Z | # coding:utf-8
"""
start rob task good luck!
> python start.py
"""
import datetime
import time
from sys import version_info
import threadpool
import ticket_config as config
from config.stations import check_station_exists
from train.login import Login
from train.order import Order
from train.ticket import Ticket
f... | 37.044118 | 117 | 0.502382 |
6770f980c35e8599c5cad58c26a50fad3654f206 | 2,769 | py | Python | frameworks/PHP/cakephp/setup.py | idlewan/FrameworkBenchmarks | f187ec69752f369d84ef5a262efaef85c3a6a5ab | [
"BSD-3-Clause"
] | null | null | null | frameworks/PHP/cakephp/setup.py | idlewan/FrameworkBenchmarks | f187ec69752f369d84ef5a262efaef85c3a6a5ab | [
"BSD-3-Clause"
] | null | null | null | frameworks/PHP/cakephp/setup.py | idlewan/FrameworkBenchmarks | f187ec69752f369d84ef5a262efaef85c3a6a5ab | [
"BSD-3-Clause"
] | null | null | null |
import subprocess
import sys
import os
import setup_util
from os.path import expanduser
| 57.6875 | 186 | 0.717226 |
67719e766692980e9b9fa0f337632160d3b1343e | 624 | py | Python | Functions/parsetool.py | AlessandroChen/KindleHelper | 7b102fec44e80585ba7a4b425429f11f0c2ca4e1 | [
"Apache-2.0"
] | 19 | 2019-02-23T02:17:28.000Z | 2022-03-17T16:27:10.000Z | Functions/parsetool.py | AlessandroChen/KindleHelper | 7b102fec44e80585ba7a4b425429f11f0c2ca4e1 | [
"Apache-2.0"
] | 1 | 2019-05-05T09:11:22.000Z | 2019-06-15T04:48:29.000Z | Functions/parsetool.py | AlessandroChen/KindleHelper | 7b102fec44e80585ba7a4b425429f11f0c2ca4e1 | [
"Apache-2.0"
] | 3 | 2019-06-09T01:53:48.000Z | 2019-09-09T07:04:51.000Z | import os, stat
| 26 | 65 | 0.464744 |
6772f47be90751a8ab2cbacfba1c7b99baa2b64a | 102 | py | Python | caiman/models.py | Rockstreet/usman_min | c15145a444cbc913a1349b69dffc0b8a45e38dbb | [
"MIT"
] | null | null | null | caiman/models.py | Rockstreet/usman_min | c15145a444cbc913a1349b69dffc0b8a45e38dbb | [
"MIT"
] | null | null | null | caiman/models.py | Rockstreet/usman_min | c15145a444cbc913a1349b69dffc0b8a45e38dbb | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _, ugettext
| 10.2 | 65 | 0.784314 |
677367dc85c6f920d38d59e7cc33a0e5eafc5a8c | 6,987 | py | Python | Code/utils.py | minna-ust/SemanticMapGeneration | ab50ed853552713d4d4447b4c1d44e0b8f147318 | [
"BSD-3-Clause"
] | 8 | 2020-01-15T02:49:35.000Z | 2021-11-26T08:29:50.000Z | Code/utils.py | Hezip/SemanticMapGeneration | 98920045c1da5812f6691e6eb75bcc3413406035 | [
"BSD-3-Clause"
] | null | null | null | Code/utils.py | Hezip/SemanticMapGeneration | 98920045c1da5812f6691e6eb75bcc3413406035 | [
"BSD-3-Clause"
] | 6 | 2020-03-05T06:40:24.000Z | 2022-02-16T04:56:38.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Common utility functions
Created on Sun May 27 16:37:42 2018
@author: chen
"""
import math
import cv2
import os
from imutils import paths
import numpy as np
import scipy.ndimage
def rotate_cooridinate(cooridinate_og,rotate_angle,rotate_center):
"""
calculat... | 32.347222 | 123 | 0.640046 |
6773e2cae4ca1a7fe539b33cf15047934bd21fc6 | 1,225 | py | Python | py_git/working_with_github/main.py | gabrieldemarmiesse/my_work_environment | 6175afbee154d0108992259633a1c89e560fd12f | [
"MIT"
] | 1 | 2021-02-27T19:34:43.000Z | 2021-02-27T19:34:43.000Z | py_git/working_with_github/main.py | gabrieldemarmiesse/my_work_environment | 6175afbee154d0108992259633a1c89e560fd12f | [
"MIT"
] | null | null | null | py_git/working_with_github/main.py | gabrieldemarmiesse/my_work_environment | 6175afbee154d0108992259633a1c89e560fd12f | [
"MIT"
] | null | null | null | import os
import sys
from subprocess import CalledProcessError
from working_with_github.utils import run
| 26.630435 | 80 | 0.646531 |
67752967909d812410a7c0a4e3e611d417d432d0 | 4,144 | py | Python | main.py | Lee-Kevin/Danboard | 28b4b0ecada4f29a7106bb3af38f608c0bd681b2 | [
"MIT"
] | null | null | null | main.py | Lee-Kevin/Danboard | 28b4b0ecada4f29a7106bb3af38f608c0bd681b2 | [
"MIT"
] | null | null | null | main.py | Lee-Kevin/Danboard | 28b4b0ecada4f29a7106bb3af38f608c0bd681b2 | [
"MIT"
] | null | null | null | import logging
import time
import re
import serial
from threading import Thread, Event
from respeaker import Microphone
from respeaker import BingSpeechAPI
from respeaker import PixelRing,pixel_ring
BING_KEY = '95e4fe8b3a324389be4595bd1813121c'
ser = serial.Serial('/dev/ttyS1',115200,timeout=0)
data=[0xAA,0x01,0x64,... | 30.925373 | 129 | 0.516651 |
677586a1690b5ab7c02ad679b07e602f0cadd49c | 1,063 | py | Python | apis/vote_message/account_voteCredit.py | DerWalundDieKatze/Yumekui | cb3174103ced7474ce6d1abd774b399557dcaf4f | [
"Apache-2.0"
] | null | null | null | apis/vote_message/account_voteCredit.py | DerWalundDieKatze/Yumekui | cb3174103ced7474ce6d1abd774b399557dcaf4f | [
"Apache-2.0"
] | null | null | null | apis/vote_message/account_voteCredit.py | DerWalundDieKatze/Yumekui | cb3174103ced7474ce6d1abd774b399557dcaf4f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
'''
@author: caroline
@license: (C) Copyright 2019-2022, Node Supply Chain Manager Corporation Limited.
@contact: caroline.fang.cc@gmail.com
@software: pycharm
@file: account_voteCredit.py
@time: 2020/1/8 11:23
@desc:
'''
from apis.API import request_Api
def voteCredit(api_na... | 31.264706 | 265 | 0.74318 |
67761a50a32aba1e5e8aa2095f886f17d951b648 | 1,582 | py | Python | src/pla.py | socofels/ML_base_alg | 2f84a2a35b0217d31cbcd39a881ab5eb2eff1772 | [
"MIT"
] | null | null | null | src/pla.py | socofels/ML_base_alg | 2f84a2a35b0217d31cbcd39a881ab5eb2eff1772 | [
"MIT"
] | null | null | null | src/pla.py | socofels/ML_base_alg | 2f84a2a35b0217d31cbcd39a881ab5eb2eff1772 | [
"MIT"
] | null | null | null | import numpy as np
from matplotlib import pyplot as plt
#
np.random.seed(3)
shape = (100, 2)
x = (np.random.random((shape[0], shape[1])) * 100).astype(int)
x = np.c_[np.ones((shape[0], 1)), x]
w = np.array([-5, -2, 2])
w = w.reshape(-1, 1)
y = np.dot(x, w)
pos_index = np.where(y > 10)[0]
neg_index = np.where(y < ... | 28.763636 | 98 | 0.506953 |
6776496cc3fbe1aa360c8eaeeea056808934a9e1 | 5,974 | py | Python | pupa/scrape/vote_event.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 62 | 2015-01-08T05:46:46.000Z | 2022-01-31T03:27:14.000Z | pupa/scrape/vote_event.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 199 | 2015-01-10T03:19:37.000Z | 2021-05-21T20:34:58.000Z | pupa/scrape/vote_event.py | azban/pupa | 158378e19bcc322796aa4fb766784cbd4fd08413 | [
"BSD-3-Clause"
] | 35 | 2015-03-09T19:41:42.000Z | 2021-06-22T20:01:35.000Z | from ..utils import _make_pseudo_id
from .base import BaseModel, cleanup_list, SourceMixin
from .bill import Bill
from .popolo import pseudo_organization
from .schemas.vote_event import schema
from pupa.exceptions import ScrapeValueError
import re
| 37.810127 | 99 | 0.610311 |
6776771ca007095afc605ceffe189d17a91d3508 | 2,472 | py | Python | Q/questionnaire/models/models_publications.py | ES-DOC/esdoc-questionnaire | 9301eda375c4046323265b37ba96d94c94bf8b11 | [
"MIT"
] | null | null | null | Q/questionnaire/models/models_publications.py | ES-DOC/esdoc-questionnaire | 9301eda375c4046323265b37ba96d94c94bf8b11 | [
"MIT"
] | 477 | 2015-01-07T18:22:27.000Z | 2017-07-17T15:05:48.000Z | Q/questionnaire/models/models_publications.py | ES-DOC/esdoc-questionnaire | 9301eda375c4046323265b37ba96d94c94bf8b11 | [
"MIT"
] | null | null | null | ####################
# ES-DOC CIM Questionnaire
# Copyright (c) 2017 ES-DOC. All rights reserved.
#
# University of Colorado, Boulder
# http://cires.colorado.edu/
#
# This project is distributed according to the terms of the MIT license [http://www.opensource.org/licenses/MIT].
####################
from djan... | 29.783133 | 137 | 0.666667 |
67779dcfb1a4b8df315b4a6173872f0c4446530e | 3,902 | py | Python | tests/management/commands/test_create_command.py | kaozdl/django-extensions | bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36 | [
"MIT"
] | null | null | null | tests/management/commands/test_create_command.py | kaozdl/django-extensions | bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36 | [
"MIT"
] | null | null | null | tests/management/commands/test_create_command.py | kaozdl/django-extensions | bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import shutil
from django.conf import settings
from django.core.management import call_command
from django.test import TestCase
from six import StringIO
try:
from unittest.mock import patch
except ImportError:
from mock import patch
| 41.073684 | 163 | 0.686315 |
6777f51fd9e946ab36c26ec73ae09aa80a69635c | 4,032 | py | Python | pca.py | mghaffarynia/PCA | 4f6a041b56bcba0d772c696dc83500b83fbc0215 | [
"Apache-2.0"
] | null | null | null | pca.py | mghaffarynia/PCA | 4f6a041b56bcba0d772c696dc83500b83fbc0215 | [
"Apache-2.0"
] | null | null | null | pca.py | mghaffarynia/PCA | 4f6a041b56bcba0d772c696dc83500b83fbc0215 | [
"Apache-2.0"
] | null | null | null |
import pandas as pd
import numpy as np
from cvxopt import matrix
from cvxopt import solvers
import math
main() | 33.6 | 82 | 0.640377 |
6778560530351b13b5aa71d380046a6c4d5f1c9f | 307 | py | Python | pyadds/__init__.py | wabu/pyadds | a09ac4ca89a809fecffe4e9f63b29b20df7c2872 | [
"MIT"
] | null | null | null | pyadds/__init__.py | wabu/pyadds | a09ac4ca89a809fecffe4e9f63b29b20df7c2872 | [
"MIT"
] | null | null | null | pyadds/__init__.py | wabu/pyadds | a09ac4ca89a809fecffe4e9f63b29b20df7c2872 | [
"MIT"
] | null | null | null |
Anything = AnythingType()
| 17.055556 | 34 | 0.602606 |
6778c22f5231a134154a3cc716c3a2ed3620a01a | 626 | py | Python | lookup.py | apinkney97/IP2Location-Python | 5841dcdaf826f7f0ef3e26e91524319552f4c7f8 | [
"MIT"
] | 90 | 2015-01-21T01:15:56.000Z | 2022-02-25T05:12:16.000Z | lookup.py | Guantum/IP2Location-Python | dfa5710cd527ddbd446bbd2206242de6c62758fc | [
"MIT"
] | 17 | 2015-11-09T12:48:44.000Z | 2022-03-21T00:29:00.000Z | lookup.py | Guantum/IP2Location-Python | dfa5710cd527ddbd446bbd2206242de6c62758fc | [
"MIT"
] | 36 | 2016-01-12T11:33:56.000Z | 2021-10-02T12:34:39.000Z | import os, IP2Location, sys, ipaddress
# database = IP2Location.IP2Location(os.path.join("data", "IPV6-COUNTRY.BIN"), "SHARED_MEMORY")
database = IP2Location.IP2Location(os.path.join("data", "IPV6-COUNTRY.BIN"))
try:
ip = sys.argv[1]
if ip == '' :
print ('You cannot enter an empty IP address.')
... | 25.04 | 95 | 0.618211 |
677a3f9b4fdf1b1623975d077e5ac1590631e821 | 1,927 | py | Python | ADTs/ADT_of_staff.py | hitachinsk/DataStructure | 91214dd56d9c0493458e8a36af27a46b0a2fdc03 | [
"MIT"
] | null | null | null | ADTs/ADT_of_staff.py | hitachinsk/DataStructure | 91214dd56d9c0493458e8a36af27a46b0a2fdc03 | [
"MIT"
] | null | null | null | ADTs/ADT_of_staff.py | hitachinsk/DataStructure | 91214dd56d9c0493458e8a36af27a46b0a2fdc03 | [
"MIT"
] | null | null | null | import ADT_of_person as AP
import datetime as dm
#ADT Staff()
# Staff(self, str name, str sex, tuple birthday, tuple entey_date, int salary, str position)
# name(self)
# sex(self)
# en_year(self)
# salary(self)
# set_salary(self, new_salary)
# position(self)
# set_position(self, new_position... | 28.338235 | 95 | 0.570317 |
677a7514628e1106435199d272ca3cc1956ae53f | 5,734 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/tests/completion_integration/test_handlers.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/tests/completion_integration/test_handlers.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/tests/completion_integration/test_handlers.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Test signal handlers for completion.
"""
from datetime import datetime
from unittest.mock import patch
import ddt
import pytest
from completion import handlers
from completion.models import BlockCompletion
from completion.test_utils import CompletionSetUpMixin
from django.test import TestCase
from pytz import utc... | 34.751515 | 109 | 0.678758 |
677b8b180da6f57636a31d49b5e83be1a6466cab | 907 | py | Python | objects/moving_wall.py | krzysztofarendt/ballroom | 7e99d14278e71be873edaf415e7253e87bc81724 | [
"MIT"
] | null | null | null | objects/moving_wall.py | krzysztofarendt/ballroom | 7e99d14278e71be873edaf415e7253e87bc81724 | [
"MIT"
] | 1 | 2020-04-05T16:46:16.000Z | 2020-04-05T16:46:16.000Z | objects/moving_wall.py | krzysztofarendt/ballroom | 7e99d14278e71be873edaf415e7253e87bc81724 | [
"MIT"
] | null | null | null | from typing import Tuple
import pygame
import numpy as np
from .wall import Wall
| 25.194444 | 67 | 0.566703 |
677b969f256bb511f2d6671783f23985dd593352 | 1,962 | py | Python | src/example/4.Color_sensor/color_sensor.light_up.py | rundhall/ESP-LEGO-SPIKE-Simulator | dc83b895ff2aac5cf2fe576d0ba98426fea60827 | [
"MIT"
] | null | null | null | src/example/4.Color_sensor/color_sensor.light_up.py | rundhall/ESP-LEGO-SPIKE-Simulator | dc83b895ff2aac5cf2fe576d0ba98426fea60827 | [
"MIT"
] | null | null | null | src/example/4.Color_sensor/color_sensor.light_up.py | rundhall/ESP-LEGO-SPIKE-Simulator | dc83b895ff2aac5cf2fe576d0ba98426fea60827 | [
"MIT"
] | null | null | null | light_up(light_1, light_2, light_3)
Sets the brightness of the individual lights on the Color Sensor.
This causes the Color Sensor to change modes, which can affect your program in unexpected ways. For example, the Color Sensor can't read colors when it's in light up mode.
Parameters
light_1
The desired brightness of ... | 22.044944 | 171 | 0.761468 |
677c27e42ac69be12805363f7ae3e1fa6d495b1b | 7,711 | py | Python | utils.py | gbene/pydip | e16647c46611f597910a10651b38cd62191a9eaf | [
"MIT"
] | null | null | null | utils.py | gbene/pydip | e16647c46611f597910a10651b38cd62191a9eaf | [
"MIT"
] | null | null | null | utils.py | gbene/pydip | e16647c46611f597910a10651b38cd62191a9eaf | [
"MIT"
] | null | null | null | '''
Script by: Gabriele Bendetti
date: 25/06/2021
Utilities functions. This file is used to have a more organized main script. It contains:
+ Random plane orientation generator that can be used to practice plane attitude interpretation
+ Random fold generator
+ Plotter
+ Data converter from pandas dataframe to dic... | 36.372642 | 436 | 0.727143 |
677ca1e5c9f7d3101dacf177a4ff6c8f860424e0 | 3,574 | py | Python | debug/free_transition_vi_lofar_dr2_realdata.py | Joshuaalbert/bayes_filter | 2997d60d8cf07f875e42c0b5f07944e9ab7e9d33 | [
"Apache-2.0"
] | null | null | null | debug/free_transition_vi_lofar_dr2_realdata.py | Joshuaalbert/bayes_filter | 2997d60d8cf07f875e42c0b5f07944e9ab7e9d33 | [
"Apache-2.0"
] | 3 | 2019-02-21T16:00:53.000Z | 2020-03-31T01:33:00.000Z | debug/free_transition_vi_lofar_dr2_realdata.py | Joshuaalbert/bayes_filter | 2997d60d8cf07f875e42c0b5f07944e9ab7e9d33 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import os
from bayes_filter import logging
from bayes_filter.filters import FreeTransitionVariationalBayes
from bayes_filter.feeds import DatapackFeed, IndexFeed
from bayes_filter.misc import make_example_datapack, maybe_create_posterior_solsets, get_screen_directions
from bayes_filter.datapack ... | 56.730159 | 159 | 0.640179 |
677d0d25d6f511de2789f723ba24d4b56d61d93f | 13,237 | py | Python | train.py | Aoi-hosizora/NER-BiLSTM-CRF-Affix-PyTorch | 2ab7f218c11854f75b3fbb626f257672baaf7572 | [
"MIT"
] | null | null | null | train.py | Aoi-hosizora/NER-BiLSTM-CRF-Affix-PyTorch | 2ab7f218c11854f75b3fbb626f257672baaf7572 | [
"MIT"
] | null | null | null | train.py | Aoi-hosizora/NER-BiLSTM-CRF-Affix-PyTorch | 2ab7f218c11854f75b3fbb626f257672baaf7572 | [
"MIT"
] | null | null | null | import argparse
import json
import matplotlib.pyplot as plt
import numpy as np
import pickle
import time
import torch
from torch import optim
from typing import Tuple, List, Dict
import dataset
from model import BiLSTM_CRF
import utils
if __name__ == '__main__':
main()
| 46.939716 | 212 | 0.64637 |