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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1905b552f6b906092520144e21a33c6cfbd7fe0b | 883 | py | Python | src/save_docs.py | j-c-m-code/gutenbergsearch | b08f69d1d35fcca57e8ad0fcceaab614b9104abc | [
"MIT"
] | null | null | null | src/save_docs.py | j-c-m-code/gutenbergsearch | b08f69d1d35fcca57e8ad0fcceaab614b9104abc | [
"MIT"
] | null | null | null | src/save_docs.py | j-c-m-code/gutenbergsearch | b08f69d1d35fcca57e8ad0fcceaab614b9104abc | [
"MIT"
] | null | null | null | """
Processes a folder of .txt files to Spacy docs then saves the docs
"""
# first import standard modules
import glob
import os
from pathlib import Path
# then import third-party modules
import spacy
# finally import my own code (PEP-8 convention)
from askdir import whichdir
nlp = spacy.load("en_core_web_lg")
sour... | 23.864865 | 73 | 0.711212 |
190623703fe56b71a26a9d008afda8919d9e105d | 253 | py | Python | output/models/nist_data/list_pkg/nmtoken/schema_instance/nistschema_sv_iv_list_nmtoken_max_length_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/nmtoken/schema_instance/nistschema_sv_iv_list_nmtoken_max_length_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/nmtoken/schema_instance/nistschema_sv_iv_list_nmtoken_max_length_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.nmtoken.schema_instance.nistschema_sv_iv_list_nmtoken_max_length_2_xsd.nistschema_sv_iv_list_nmtoken_max_length_2 import NistschemaSvIvListNmtokenMaxLength2
__all__ = [
"NistschemaSvIvListNmtokenMaxLength2",
]
| 42.166667 | 194 | 0.893281 |
190750f0b978b05cd4e96bab0a727296c6a7e5d0 | 462 | py | Python | jython/src/sample_src.py | adrianpothuaud/Sikuli-WS | 6210a949768fb4eb2b80693818ae3eb31ec9c406 | [
"MIT"
] | 1 | 2018-02-20T16:28:45.000Z | 2018-02-20T16:28:45.000Z | jython/src/sample_src.py | adrianpothuaud/Sikuli-WS | 6210a949768fb4eb2b80693818ae3eb31ec9c406 | [
"MIT"
] | null | null | null | jython/src/sample_src.py | adrianpothuaud/Sikuli-WS | 6210a949768fb4eb2b80693818ae3eb31ec9c406 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
file: src/sample.py
Sample Source file
==================
Description
-----------
Sample description ...
Content
-------
- say_hello_sikuli
Status
------
Test with: tests/sample.py
last verification date: xx/xx/xxxx
last verifica... | 12.486486 | 42 | 0.515152 |
190774ef04a1a93a7a9832bb8db9d5fd37d72396 | 533 | py | Python | k8s/images/codalab/apps/chahub/provider.py | abdulari/codalab-competitions | fdfbb77ac62d56c6b4b9439935037f97ffcd1423 | [
"Apache-2.0"
] | 333 | 2015-12-29T22:49:40.000Z | 2022-03-27T12:01:57.000Z | k8s/images/codalab/apps/chahub/provider.py | abdulari/codalab-competitions | fdfbb77ac62d56c6b4b9439935037f97ffcd1423 | [
"Apache-2.0"
] | 1,572 | 2015-12-28T21:54:00.000Z | 2022-03-31T13:00:32.000Z | k8s/images/codalab/apps/chahub/provider.py | abdulari/codalab-competitions | fdfbb77ac62d56c6b4b9439935037f97ffcd1423 | [
"Apache-2.0"
] | 107 | 2016-01-08T03:46:07.000Z | 2022-03-16T08:43:57.000Z | from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
providers.registry.register(ChaHubProvider)
| 23.173913 | 74 | 0.75985 |
1907beae999c84a846e911c9160f122031a33418 | 3,046 | py | Python | tools/perf/contrib/cluster_telemetry/screenshot_unittest.py | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | tools/perf/contrib/cluster_telemetry/screenshot_unittest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/perf/contrib/cluster_telemetry/screenshot_unittest.py | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | # Copyright 2017 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 os
import shutil
import tempfile
from telemetry import decorators
from telemetry.testing import options_for_unittests
from telemetry.testing import p... | 41.726027 | 80 | 0.738345 |
1908a3c6547cb1830569167b36fc11ceff479110 | 652 | py | Python | bosm2015/pcradmin_old/urls.py | dvm-bitspilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | 1 | 2015-09-15T17:19:30.000Z | 2015-09-15T17:19:30.000Z | bosm2015/pcradmin_old/urls.py | DVM-BITS-Pilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | null | null | null | bosm2015/pcradmin_old/urls.py | DVM-BITS-Pilani/BITS-BOSM-2015 | df3e69ee6ee9b179a2d6cd6cad61423c177dbe0a | [
"MIT"
] | 1 | 2016-03-28T19:44:41.000Z | 2016-03-28T19:44:41.000Z | from pcradmin import views
from django.conf.urls import url, include
urlpatterns = [
url(r'^(?P<pagename>\w+)/', views.index),
#url(r'^sendmail$', views.sendmail),
#url(r'^sentmail$', views.sentmail),
url(r'^changelimit$', views.change_team_limits),
url(r'^change_team_limit$', views.change_team_limit_list),
... | 38.352941 | 62 | 0.71319 |
1908ece0bbcf8875b565e097e59669305dfcf236 | 354 | py | Python | _aulas/ex004.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | _aulas/ex004.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | _aulas/ex004.py | CarlosJunn/Aprendendo_Python | cddb29b5ee2058c3fb612574eb4af414770b7422 | [
"MIT"
] | null | null | null | a = input('digite algo :')
print('O tipo primitivo desswe valor ', type(a))
print("S tem espaos? ", a.isspace())
print(' um nmero? ', a.isnumeric())
print('E alfabetico?', a.isalpha())
print(' alphanumerico?', a.isalnum())
print('Esta em maisculas?', a.isupper())
print('Esta em minsculas?', a.islower())
print('Est ca... | 35.4 | 50 | 0.675141 |
190ab0b7b7eed8792f426c4ad62cea8612750811 | 3,966 | py | Python | authentication/login.py | ICTKevinWong/webservices-samples | 35a8b8571d88276ff12ad60959192ce20ef5bf19 | [
"BSD-3-Clause"
] | 6 | 2018-01-03T14:13:57.000Z | 2021-07-28T21:12:35.000Z | authentication/login.py | ICTKevinWong/webservices-samples | 35a8b8571d88276ff12ad60959192ce20ef5bf19 | [
"BSD-3-Clause"
] | 5 | 2018-01-03T15:28:47.000Z | 2020-08-28T08:25:07.000Z | authentication/login.py | ICTKevinWong/webservices-samples | 35a8b8571d88276ff12ad60959192ce20ef5bf19 | [
"BSD-3-Clause"
] | 6 | 2017-10-17T19:37:44.000Z | 2021-08-19T13:10:16.000Z | """
Examples of authenticating to the API.
Usage:
login <username> <password> <server>
login -h
Arguments:
username ID to provide for authentication
password Password corresponding to specified userid.
server API endpoint.
Options:
-h --help Show this screen.
--version Show version.
Descrip... | 47.783133 | 120 | 0.72113 |
190b6799d93e741a949b082cb1fde511c62a4b57 | 487 | py | Python | Chapter08/qt08_winBkground03.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | Chapter08/qt08_winBkground03.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | Chapter08/qt08_winBkground03.py | csy1993/PythonQt | c100cd9e1327fc7731bf04c7754cafb8dd578fa5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
'''
from PyQt5.QtWidgets import QApplication, QLabel ,QWidget, QVBoxLayout , QPushButton, QMainWindow
from PyQt5.QtGui import QPalette , QBrush , QPixmap
from PyQt5.QtCore import Qt
import sys
app = QApplication(sys.argv)
win = QMainWindow()
win.setWindowTitle("")
win.resi... | 20.291667 | 99 | 0.710472 |
190c0898a136d9b08e445150bbf358f595547ad3 | 8,349 | py | Python | tcsv.py | eadanfahey/transform-csv | 40d3aaf34b286fe9d6262fe69c7245e3a44a5b41 | [
"MIT"
] | null | null | null | tcsv.py | eadanfahey/transform-csv | 40d3aaf34b286fe9d6262fe69c7245e3a44a5b41 | [
"MIT"
] | null | null | null | tcsv.py | eadanfahey/transform-csv | 40d3aaf34b286fe9d6262fe69c7245e3a44a5b41 | [
"MIT"
] | null | null | null | import csv
| 31.387218 | 83 | 0.542819 |
190dc436e49d1655496d4e4796285c2ff4464f81 | 13,074 | py | Python | selim/datasets/lidc.py | tilacyn/dsb2018_topcoders | e0f95ef70bc062d4dea321d2aa73231a9538cd63 | [
"MIT"
] | null | null | null | selim/datasets/lidc.py | tilacyn/dsb2018_topcoders | e0f95ef70bc062d4dea321d2aa73231a9538cd63 | [
"MIT"
] | null | null | null | selim/datasets/lidc.py | tilacyn/dsb2018_topcoders | e0f95ef70bc062d4dea321d2aa73231a9538cd63 | [
"MIT"
] | null | null | null | import numpy as np
from tensorflow.keras.preprocessing.image import Iterator
import time
import os
import xml.etree.ElementTree as ET
import cv2
import pydicom as dicom
from os.path import join as opjoin
import json
from tqdm import tqdm
def parseXML(scan_path):
'''
parse xml file
args:
xml file p... | 38.795252 | 106 | 0.567998 |
190de2ec2acd9e5640757238ffbce83a69af9dc2 | 2,058 | py | Python | hexagon/__main__.py | redbeestudios/hexagon | dc906ae31a14eb750a3f9bde8dd0633d8e1af486 | [
"Apache-2.0"
] | 8 | 2021-06-27T21:46:04.000Z | 2022-02-26T18:03:10.000Z | hexagon/__main__.py | redbeestudios/hexagon | dc906ae31a14eb750a3f9bde8dd0633d8e1af486 | [
"Apache-2.0"
] | 31 | 2021-06-24T14:35:38.000Z | 2022-02-17T03:01:23.000Z | hexagon/__main__.py | redbeestudios/hexagon | dc906ae31a14eb750a3f9bde8dd0633d8e1af486 | [
"Apache-2.0"
] | 1 | 2021-08-16T16:15:16.000Z | 2021-08-16T16:15:16.000Z | from hexagon.support.hooks import HexagonHooks
from hexagon.support.execute.tool import select_and_execute_tool
from hexagon.support.update.cli import check_for_cli_updates
import sys
from hexagon.support.args import fill_args
from hexagon.domain import cli, tools, envs
from hexagon.support.help import print_help
from... | 27.078947 | 76 | 0.614189 |
190e10d1d867b6f965986f63ffa52b804353b9e8 | 18,322 | py | Python | ligpy/ligpy_utils.py | LigninTools/UWCAP_10 | 0f665d3a2895657d9dda8ea9cc395583f3437dcc | [
"BSD-2-Clause"
] | 7 | 2016-06-30T18:14:14.000Z | 2020-04-20T22:18:47.000Z | ligpy/ligpy_utils.py | LigninTools/UWCAP_10 | 0f665d3a2895657d9dda8ea9cc395583f3437dcc | [
"BSD-2-Clause"
] | null | null | null | ligpy/ligpy_utils.py | LigninTools/UWCAP_10 | 0f665d3a2895657d9dda8ea9cc395583f3437dcc | [
"BSD-2-Clause"
] | 5 | 2016-07-30T04:05:29.000Z | 2021-08-14T13:58:11.000Z | """
Misc utility functions required by several modules in the ligpy program.
"""
import os
import numpy as np
from constants import GAS_CONST, MW
def set_paths():
"""
Set the absolute path to required files on the current machine.
Returns
-------
reactionlist_path : str
... | 35.370656 | 79 | 0.581705 |
ef6ac86677970e875c525f92de89d605e9c5d009 | 7,836 | py | Python | data_prep_helper.py | mayofcumtb/PaperWrite | 4a2154d68fa00e1912a3d4ce7b514364314c55e3 | [
"Apache-2.0"
] | null | null | null | data_prep_helper.py | mayofcumtb/PaperWrite | 4a2154d68fa00e1912a3d4ce7b514364314c55e3 | [
"Apache-2.0"
] | null | null | null | data_prep_helper.py | mayofcumtb/PaperWrite | 4a2154d68fa00e1912a3d4ce7b514364314c55e3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import random
import tempfile
import shutil
mayan_debug = 1
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
sys.path.append(os.path.dirname(BASE_DIR))
from global_variables import *
from caffe_utils import *
'''
@brief:
... | 41.026178 | 185 | 0.661179 |
ef6c9cef1dd0ae3c36a242179a531b49d4c57a72 | 486 | py | Python | pyvisio/__init__.py | i-wan/pyvisio | 6beed5a18644793e5c6769c5a4fa5f64f9dc436b | [
"MIT"
] | 1 | 2018-06-05T13:15:35.000Z | 2018-06-05T13:15:35.000Z | pyvisio/__init__.py | i-wan/pyvisio | 6beed5a18644793e5c6769c5a4fa5f64f9dc436b | [
"MIT"
] | 1 | 2017-06-05T18:17:16.000Z | 2017-06-05T18:17:16.000Z | pyvisio/__init__.py | i-wan/pyvisio | 6beed5a18644793e5c6769c5a4fa5f64f9dc436b | [
"MIT"
] | 1 | 2019-06-30T17:36:35.000Z | 2019-06-30T17:36:35.000Z | # -*- coding: utf-8 -*-
"""
PyVisio visDocuments - Visio Document manipulation library
See docstring for class VisDocument for usage
"""
#TODO docstring
__author__ = 'Ivo Velcovsky'
__email__ = 'velcovsky@email.cz'
__copyright__ = "Copyright (c) 2015"
__license__ = "MIT"
__status__ = "Development"
from... | 21.130435 | 59 | 0.691358 |
ef6ed1166f6e406d8fb8cc64a8cdbbcd50db4769 | 7,103 | py | Python | store/main.py | Soemonewho2/pi-ware | 86d2cd84ca85e36cbcdbc7511f6a4565b18e81d9 | [
"MIT"
] | null | null | null | store/main.py | Soemonewho2/pi-ware | 86d2cd84ca85e36cbcdbc7511f6a4565b18e81d9 | [
"MIT"
] | null | null | null | store/main.py | Soemonewho2/pi-ware | 86d2cd84ca85e36cbcdbc7511f6a4565b18e81d9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Pi-Ware main UI
from tkinter import *
from tkinter.ttk import *
import tkinter as tk
import os
import webbrowser
from functools import partial
import getpass
#Set global var username
global username
username = getpass.getuser()
#Set global install/uninstall scripts
global install_script
globa... | 33.504717 | 147 | 0.68464 |
ef700e08b8631cf4f5d03872e7a2e1c13a5f31f4 | 50,478 | py | Python | shwirl/shaders/render_volume.py | macrocosme/shwirl | 87147ba1e99463e96b7f4295fd24ab57440d9981 | [
"BSD-3-Clause"
] | 3 | 2018-05-09T17:55:53.000Z | 2019-07-22T09:14:41.000Z | shwirl/shaders/render_volume.py | macrocosme/shwirl | 87147ba1e99463e96b7f4295fd24ab57440d9981 | [
"BSD-3-Clause"
] | 9 | 2017-04-07T01:44:15.000Z | 2018-12-16T20:47:08.000Z | shwirl/shaders/render_volume.py | macrocosme/shwirl | 87147ba1e99463e96b7f4295fd24ab57440d9981 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import division
# This file implements a RenderVolumeVisual class. It is derived from the
# VolumeVisual class in vispy.visuals.volume, which is released under a BSD
# license included here:
#
# ===========================================================================
# Vispy is licensed under the te... | 33.252964 | 110 | 0.567297 |
ef703db82c659a484347e75656e30bf7c5cabb9f | 854 | py | Python | data/transcoder_evaluation_gfg/python/TILING_WITH_DOMINOES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/TILING_WITH_DOMINOES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/TILING_WITH_DOMINOES.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
#TOFILL
if __name__ == '__main__':
param = [
(29,),
(13,),
(25,),
(65,),
(27,),
(42,),
(19,),... | 21.897436 | 64 | 0.456674 |
ef70dbcac1c09bceb1d774bc2a9dbf1cb0f819da | 3,342 | py | Python | make3d.py | BritishMuseumDH/scaffold3D | 314ee4ca5f52304c89fac71b8f293774341d6278 | [
"CC0-1.0"
] | 4 | 2017-03-30T09:41:21.000Z | 2021-10-01T09:18:02.000Z | make3d.py | BritishMuseumDH/scaffold3D | 314ee4ca5f52304c89fac71b8f293774341d6278 | [
"CC0-1.0"
] | null | null | null | make3d.py | BritishMuseumDH/scaffold3D | 314ee4ca5f52304c89fac71b8f293774341d6278 | [
"CC0-1.0"
] | 3 | 2018-01-30T09:18:34.000Z | 2019-06-16T17:55:24.000Z | import os
import shutil
from textwrap import dedent
import argparse
import subprocess
parser = argparse.ArgumentParser(description='This is a script to create 3D model folder structure')
parser.add_argument('-p', '--project', help='3D project name', required=True)
parser.add_argument('-wd', '--wd', help='Working direc... | 35.178947 | 153 | 0.680132 |
ef724512834ae77b7fe4b2559fc21eb34f4025f5 | 5,476 | py | Python | integration/experiment/common_args.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | integration/experiment/common_args.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | integration/experiment/common_args.py | avilcheslopez/geopm | 35ad0af3f17f42baa009c97ed45eca24333daf33 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #
# Copyright (c) 2015 - 2022, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
'''
Common command line arguments for experiments.
'''
def setup_run_args(parser):
"""Add common arguments for all run scripts:
--output-dir --node-count --trial-count --cool-off-time
"""
add_output_dir(pa... | 36.506667 | 95 | 0.611578 |
ef7445ff5f0dbb5c8605cf8ad95f6ecbcc7f04a5 | 10,466 | py | Python | Source Code.py | S-AlMazrouai/Chess-king-last-position-finder | 609346ee660655bd7aa2afe486c4ad074e3d33fc | [
"MIT"
] | 1 | 2022-02-04T11:14:13.000Z | 2022-02-04T11:14:13.000Z | Source Code.py | S-AlMazrouai/Chess-king-last-position-finder | 609346ee660655bd7aa2afe486c4ad074e3d33fc | [
"MIT"
] | null | null | null | Source Code.py | S-AlMazrouai/Chess-king-last-position-finder | 609346ee660655bd7aa2afe486c4ad074e3d33fc | [
"MIT"
] | null | null | null | import requests
import json
import chess
import chess.pgn
import io
from collections import Counter
from openpyxl import load_workbook
import numpy
#API link: https://api.chess.com/pub/player/{user}/games/{year}/{month}/pgn
baseUrl='https://api.chess.com/pub/player/'
users=['Mazrouai'] ... | 87.94958 | 228 | 0.391458 |
ef798894676eb6e1574bdd64f329e5761081b579 | 1,464 | py | Python | src/FileHandler.py | mohitgupta07/tipr-1st-assgn | be2f742de69dbf7c300410c230eaa541d8d0eab8 | [
"MIT"
] | null | null | null | src/FileHandler.py | mohitgupta07/tipr-1st-assgn | be2f742de69dbf7c300410c230eaa541d8d0eab8 | [
"MIT"
] | null | null | null | src/FileHandler.py | mohitgupta07/tipr-1st-assgn | be2f742de69dbf7c300410c230eaa541d8d0eab8 | [
"MIT"
] | 1 | 2019-02-15T16:44:02.000Z | 2019-02-15T16:44:02.000Z | import csv
import numpy as np
| 32.533333 | 75 | 0.57377 |
ef7a8845996df8b5695e947565280cd90979fd06 | 1,840 | py | Python | load.py | ontocord/create_pii_dataset | bfd246a8f8b443e238f260f307bd41d86adc3136 | [
"Apache-2.0"
] | null | null | null | load.py | ontocord/create_pii_dataset | bfd246a8f8b443e238f260f307bd41d86adc3136 | [
"Apache-2.0"
] | null | null | null | load.py | ontocord/create_pii_dataset | bfd246a8f8b443e238f260f307bd41d86adc3136 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright, 2021 Ontocord, 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 required by ... | 33.454545 | 112 | 0.807609 |
ef7b9c110a5e75cb118c0870480aa130248a1ef2 | 1,432 | py | Python | piWriters/graphiteSender.py | shackledtodesk/piWeather | e0b4b4ded7ebd01fe7844807de6949a83aa3913f | [
"Apache-2.0"
] | null | null | null | piWriters/graphiteSender.py | shackledtodesk/piWeather | e0b4b4ded7ebd01fe7844807de6949a83aa3913f | [
"Apache-2.0"
] | null | null | null | piWriters/graphiteSender.py | shackledtodesk/piWeather | e0b4b4ded7ebd01fe7844807de6949a83aa3913f | [
"Apache-2.0"
] | null | null | null | ## Send data to a Graphite/Carbon Server
import traceback
import sys, time, socket, datetime
from datetime import datetime
| 31.130435 | 96 | 0.561453 |
ef7c2ae59e8e02d4a104708b8f76dca033259df6 | 479 | py | Python | src/main/python/bots/b_jira.py | jceaser/gcmd_bot | 2b2ae0631d69d9f95a3a23b04e12a4467a116ffa | [
"MIT"
] | null | null | null | src/main/python/bots/b_jira.py | jceaser/gcmd_bot | 2b2ae0631d69d9f95a3a23b04e12a4467a116ffa | [
"MIT"
] | null | null | null | src/main/python/bots/b_jira.py | jceaser/gcmd_bot | 2b2ae0631d69d9f95a3a23b04e12a4467a116ffa | [
"MIT"
] | null | null | null |
from b_bot import BBot
from rand_str import * | 28.176471 | 74 | 0.553236 |
ef7c66788463fc4b72dcc5b29d43203643002b12 | 2,295 | py | Python | preprocessors/neg_sample_from_run.py | felipemoraes/pyNeuIR | 5256857387c8fe57d28167e42077ad1dcade1983 | [
"MIT"
] | 4 | 2019-11-09T19:46:44.000Z | 2022-01-03T07:58:20.000Z | preprocessors/neg_sample_from_run.py | felipemoraes/pyNeuIR | 5256857387c8fe57d28167e42077ad1dcade1983 | [
"MIT"
] | null | null | null | preprocessors/neg_sample_from_run.py | felipemoraes/pyNeuIR | 5256857387c8fe57d28167e42077ad1dcade1983 | [
"MIT"
] | 3 | 2019-06-18T12:31:49.000Z | 2020-11-22T08:35:07.000Z | """Samples negative pairs from run."""
import argparse
from utils import load_qrels, load_run
import numpy as np
if __name__ == "__main__":
main()
| 28.333333 | 114 | 0.525054 |
ef7cc313a84b2a9b9ea62469241644f5f1b9560b | 1,123 | py | Python | Search_Algorithms/testing/python_scripts/GridNet.py | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | Search_Algorithms/testing/python_scripts/GridNet.py | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | Search_Algorithms/testing/python_scripts/GridNet.py | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | 2 | 2019-12-12T18:55:35.000Z | 2019-12-12T19:03:35.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
#Unicamente como esta ahorita funciona para un grafo de 5x5.
| 31.194444 | 92 | 0.577026 |
ef7d0ee9d64040c9087075b823e521c746835c31 | 3,436 | py | Python | instances/game_instances.py | Napam/MayhemPacman | cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf | [
"MIT"
] | 1 | 2021-04-07T12:54:13.000Z | 2021-04-07T12:54:13.000Z | instances/game_instances.py | Napam/MayhemPacman | cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf | [
"MIT"
] | null | null | null | instances/game_instances.py | Napam/MayhemPacman | cbcb3b4a2c83ed920e32748a8aaadb29b19ab5bf | [
"MIT"
] | null | null | null | '''
Module containing the in-game mayhem instances
such as the ship, planets, asteroid objects etc etc...
Written by Naphat Amundsen
'''
import numpy as np
import pygame as pg
import configparser
import sys
import os
sys.path.insert(0,'..')
from classes import spaceship
from classes import planet
fro... | 20.093567 | 55 | 0.556752 |
ef7dd46d9034574570b5f449e1ddf8eb84731597 | 286 | py | Python | test.py | RoyLQ/Advanced-_TCGAIntegrator | 4767ab74b14e9d7e65e2c1ffe656619ef414148b | [
"MIT"
] | 2 | 2021-09-14T05:53:16.000Z | 2021-12-01T23:59:18.000Z | test.py | RoyLQ/Advanced-_TCGAIntegrator | 4767ab74b14e9d7e65e2c1ffe656619ef414148b | [
"MIT"
] | null | null | null | test.py | RoyLQ/Advanced-_TCGAIntegrator | 4767ab74b14e9d7e65e2c1ffe656619ef414148b | [
"MIT"
] | null | null | null | import sys
import os
simp_path = 'TCGAIntegrator'
abs_path = os.path.abspath(simp_path)
sys.path.append(abs_path)
from TCGAIntegrator import TCGAData as TCGAData
if __name__ == '__main__':
main()
| 15.888889 | 47 | 0.716783 |
ef7f8e86f21851da0cc13ef9dc3a597eb38daaa9 | 1,649 | py | Python | synergy/conf/global_context.py | mushkevych/scheduler | 8228cde0f027c0025852cb63a6698cdd320838f1 | [
"BSD-3-Clause"
] | 15 | 2015-02-01T09:20:23.000Z | 2021-04-27T08:46:45.000Z | synergy/conf/global_context.py | mushkevych/scheduler | 8228cde0f027c0025852cb63a6698cdd320838f1 | [
"BSD-3-Clause"
] | 26 | 2015-01-12T22:28:40.000Z | 2021-07-05T01:22:17.000Z | synergy/conf/global_context.py | mushkevych/scheduler | 8228cde0f027c0025852cb63a6698cdd320838f1 | [
"BSD-3-Clause"
] | 2 | 2016-07-21T03:02:46.000Z | 2019-10-03T23:59:23.000Z | from synergy.db.model.queue_context_entry import queue_context_entry
from synergy.scheduler.scheduler_constants import PROCESS_GC, TOKEN_GC, PROCESS_MX, TOKEN_WERKZEUG, EXCHANGE_UTILS, \
PROCESS_SCHEDULER, TOKEN_SCHEDULER, QUEUE_UOW_STATUS, QUEUE_JOB_STATUS, PROCESS_LAUNCH_PY, TOKEN_LAUNCH_PY, \
ROUTING_IRRELEV... | 35.085106 | 117 | 0.753184 |
ef81335057d05cc62a7c03fc8a45db94b745d375 | 1,890 | py | Python | fylesdk/apis/fyle_v3/fyle_v3.py | fylein/fyle-sdk-py | 826f804ec4d94d5f95fb304254a373679a494238 | [
"MIT"
] | 4 | 2019-05-07T07:38:27.000Z | 2021-09-14T08:39:12.000Z | fylesdk/apis/fyle_v3/fyle_v3.py | snarayanank2/fyle-sdk-py | 826f804ec4d94d5f95fb304254a373679a494238 | [
"MIT"
] | 3 | 2019-09-23T11:50:31.000Z | 2020-02-10T12:12:10.000Z | fylesdk/apis/fyle_v3/fyle_v3.py | fylein/fyle-sdk-py | 826f804ec4d94d5f95fb304254a373679a494238 | [
"MIT"
] | 12 | 2019-05-06T09:48:51.000Z | 2020-11-13T10:00:26.000Z | """
Fyle V3 APIs Base Class
"""
from .expenses import Expenses
from .reports import Reports
from .employees import Employees
from .orgs import Orgs
from .reimbursements import Reimbursements
from .cost_centes import CostCenters
from .categories import Categories
from .projects import Projects
from .refunds import Refun... | 37.8 | 81 | 0.757672 |
ef8179e868198d6a8e03937bb76a29cb988fcda9 | 6,164 | py | Python | 67-2.py | paqul/ALX | 0f397b53f8208df62ed3bc1f63f27a087799eb32 | [
"MIT"
] | null | null | null | 67-2.py | paqul/ALX | 0f397b53f8208df62ed3bc1f63f27a087799eb32 | [
"MIT"
] | null | null | null | 67-2.py | paqul/ALX | 0f397b53f8208df62ed3bc1f63f27a087799eb32 | [
"MIT"
] | null | null | null | from datetime import date as d
#---------------------------HOTEL---------------------------#
main()
| 39.512821 | 157 | 0.514114 |
ef8277ef3ae9c0ea2b164ecadf77b6f20ca717ce | 598 | py | Python | core/mayaScripts/SimpleCube.py | Bernardrouhi/HandFree | fbb9623cba0b8e7eb18649d29465393f06c2b9ee | [
"MIT"
] | null | null | null | core/mayaScripts/SimpleCube.py | Bernardrouhi/HandFree | fbb9623cba0b8e7eb18649d29465393f06c2b9ee | [
"MIT"
] | null | null | null | core/mayaScripts/SimpleCube.py | Bernardrouhi/HandFree | fbb9623cba0b8e7eb18649d29465393f06c2b9ee | [
"MIT"
] | null | null | null | import sys
import maya.standalone
maya.standalone.initialize(name='python')
from maya import cmds
# try:
run()
maya.standalone.uninitialize()
# except Exception as e:
# sys.stdout.write(1) | 19.933333 | 41 | 0.602007 |
ef841a52c1f626cc7c84690f06d3bbb17715d9c8 | 3,733 | py | Python | GreedyGRASP/Solver_Greedy.py | HamidL/AMMM_Project | 7679d1c336578464317b8326311c1ab4b69cbf11 | [
"MIT"
] | null | null | null | GreedyGRASP/Solver_Greedy.py | HamidL/AMMM_Project | 7679d1c336578464317b8326311c1ab4b69cbf11 | [
"MIT"
] | null | null | null | GreedyGRASP/Solver_Greedy.py | HamidL/AMMM_Project | 7679d1c336578464317b8326311c1ab4b69cbf11 | [
"MIT"
] | null | null | null |
from GreedyGRASP.Solver import Solver
from GreedyGRASP.Solution import Solution
from GreedyGRASP.LocalSearch import LocalSearch
# Inherits from a parent abstract solver.
| 41.477778 | 130 | 0.625234 |
ef854c6d7447ee5fbf75a72fb0ffd6549ac302f6 | 5,654 | py | Python | statslib/_lib/gmodel.py | ashubertt/statslib | 5a35c0d10c3ca44c2d48f329c4f3790c91c385ac | [
"Apache-2.0"
] | null | null | null | statslib/_lib/gmodel.py | ashubertt/statslib | 5a35c0d10c3ca44c2d48f329c4f3790c91c385ac | [
"Apache-2.0"
] | 1 | 2021-04-06T10:55:34.000Z | 2021-04-06T10:55:34.000Z | statslib/_lib/gmodel.py | ashubertt/statslib | 5a35c0d10c3ca44c2d48f329c4f3790c91c385ac | [
"Apache-2.0"
] | null | null | null | import inspect
import math as _math
from copy import deepcopy
import matplotlib.pyplot as _plt
import numpy as np
import pandas as pd
import statsmodels.api as _sm
from statslib._lib.gcalib import CalibType
| 40.385714 | 107 | 0.561726 |
ef85c06ba18faf8168c199da975507a6176f5a0a | 174 | py | Python | Richard.py | Jpowell10/firstrepo | c41ac4a0526b6e56449df5adaa448091d930f731 | [
"CC0-1.0"
] | null | null | null | Richard.py | Jpowell10/firstrepo | c41ac4a0526b6e56449df5adaa448091d930f731 | [
"CC0-1.0"
] | null | null | null | Richard.py | Jpowell10/firstrepo | c41ac4a0526b6e56449df5adaa448091d930f731 | [
"CC0-1.0"
] | null | null | null | List1 = [1, 2, 3, 4]
List2 = ['I', 'tripped', 'over', 'and', 'hit', 'the', 'floor']
print(List1 + List2)
List3 = List1 + List2
print(List3)
fibs = (0, 1, 2, 3)
print(fibs[3]) | 24.857143 | 62 | 0.563218 |
ef86d428f2e17ef9b526fc491dcb0a17513a95ba | 1,581 | py | Python | app.py | Chen-Junbao/MalwareClassification | a2ef045c1e5f1f57ff183bfc6577275b14bf84d2 | [
"MIT"
] | 4 | 2020-06-17T03:14:47.000Z | 2022-03-29T12:15:33.000Z | app.py | Chen-Junbao/MalwareClassification | a2ef045c1e5f1f57ff183bfc6577275b14bf84d2 | [
"MIT"
] | 1 | 2020-12-20T03:14:33.000Z | 2021-02-01T17:13:44.000Z | app.py | Chen-Junbao/MalwareClassification | a2ef045c1e5f1f57ff183bfc6577275b14bf84d2 | [
"MIT"
] | 1 | 2021-03-07T15:43:20.000Z | 2021-03-07T15:43:20.000Z | import os
from flask import Flask, render_template, request, jsonify
from display.predict import predict_file
app = Flask(__name__, static_folder="./display/static", template_folder="./display/templates")
if __name__ == '__main__':
if not os.path.exists('./display/files'):
os.mkdir('./display/files')
... | 29.277778 | 94 | 0.571157 |
ef873aee93350e545e2097a1a737710da0346193 | 886 | py | Python | test_linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | null | null | null | test_linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | 3 | 2019-11-22T08:04:18.000Z | 2019-11-26T06:55:36.000Z | test_linprog_curvefit.py | drofp/linprog_curvefit | 96ba704edae7cea42d768d7cc6d4036da2ba313a | [
"Apache-2.0"
] | null | null | null | import unittest
from ortools.linear_solver import pywraplp
| 40.272727 | 80 | 0.700903 |
ef87a851b0ff397ab056489c49ee4d54f1a8b8b0 | 14,278 | py | Python | uno_ct_v3.py | simple-circuit/Component-Curve-Tracer | 3842f1b0054230325f55296cbc88628b3f88fa88 | [
"MIT"
] | 1 | 2021-08-04T03:08:07.000Z | 2021-08-04T03:08:07.000Z | uno_ct_v3.py | simple-circuit/Component-Curve-Tracer | 3842f1b0054230325f55296cbc88628b3f88fa88 | [
"MIT"
] | null | null | null | uno_ct_v3.py | simple-circuit/Component-Curve-Tracer | 3842f1b0054230325f55296cbc88628b3f88fa88 | [
"MIT"
] | 1 | 2021-08-29T14:05:42.000Z | 2021-08-29T14:05:42.000Z | # Uno PWM bipolar curve tracer app by simple-circuit 12-22-19
# rev 3 1-13-20
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from tkinter import font
import numpy as np
import serial
root = Tk()
default_font = font.nametofont("TkDefaultFont")
default_font.configure(size=9)
canvas = Canva... | 29.745833 | 172 | 0.583975 |
ef8970f817cb168ae688aab739b624cb804e885d | 665 | py | Python | logger/TMP102.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | 1 | 2015-12-23T04:27:16.000Z | 2015-12-23T04:27:16.000Z | logger/TMP102.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | logger/TMP102.py | scsibug/Raspberry-Pi-Sensor-Node | 606cf2a15a72ac1503c7318a39c9f3cc523a9c4a | [
"Unlicense"
] | null | null | null | import time
import smbus
from Adafruit_I2C import Adafruit_I2C
# ===========================================================================
# TMP102 Class
# ===========================================================================
| 24.62963 | 77 | 0.508271 |
ef8bac5da5b68c79dd574b7a205be89cb3f23f5d | 178 | py | Python | headlines.py | plamenbelev/headlines | 49e5995042abf31b2f898ca1daaf7ee99005dde9 | [
"MIT"
] | null | null | null | headlines.py | plamenbelev/headlines | 49e5995042abf31b2f898ca1daaf7ee99005dde9 | [
"MIT"
] | null | null | null | headlines.py | plamenbelev/headlines | 49e5995042abf31b2f898ca1daaf7ee99005dde9 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
if __name__ == '__main__':
app.run(port=5000, debug=True) | 14.833333 | 34 | 0.662921 |
ef90aefef6921157afac229b23fbddf7cab99743 | 854 | py | Python | help_desk/help_desk/doctype/department_name/department_name.py | shrikant9867/mycfohelpdesk | b285b156aec53ecff5873f4630638687ff5a0e92 | [
"MIT"
] | null | null | null | help_desk/help_desk/doctype/department_name/department_name.py | shrikant9867/mycfohelpdesk | b285b156aec53ecff5873f4630638687ff5a0e92 | [
"MIT"
] | null | null | null | help_desk/help_desk/doctype/department_name/department_name.py | shrikant9867/mycfohelpdesk | b285b156aec53ecff5873f4630638687ff5a0e92 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Indictrans and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import json
import string
from frappe.model.document import Document
from frappe.utils import cstr, flt, getdate, comma_and, cint
from frappe... | 32.846154 | 108 | 0.799766 |
ef911bdd33ff81cae4898bfd37e8a89b765f201c | 2,565 | py | Python | src/medical_test_service/medical_test.py | phamnam-mta/know-life | f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d | [
"MIT"
] | null | null | null | src/medical_test_service/medical_test.py | phamnam-mta/know-life | f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d | [
"MIT"
] | null | null | null | src/medical_test_service/medical_test.py | phamnam-mta/know-life | f7c226c41e315f21b5d7fe2ccbc9ec4f9961ed1d | [
"MIT"
] | null | null | null | import logging
from typing import Text, List
from src.utils.io import read_json
from src.utils.fuzzy import is_relevant_string
from src.utils.common import is_float
from src.utils.constants import (
MEDICAL_TEST_PATH,
QUANTITATIVE_PATH,
POSITIVE_TEXT,
TestResult
)
logger = logging.getLogger(__name__)... | 43.474576 | 163 | 0.474854 |
ef933f2244982928a2ce88206760be93146f1a77 | 1,064 | py | Python | scam.py | TheToddLuci0/Tarkov-Scammer | 5fced3952c6cec72fe3eb85384bc11f65ee6af9c | [
"BSD-3-Clause"
] | 2 | 2021-02-09T19:13:14.000Z | 2021-02-23T08:41:14.000Z | scam.py | TheToddLuci0/Tarkov-Scammer | 5fced3952c6cec72fe3eb85384bc11f65ee6af9c | [
"BSD-3-Clause"
] | null | null | null | scam.py | TheToddLuci0/Tarkov-Scammer | 5fced3952c6cec72fe3eb85384bc11f65ee6af9c | [
"BSD-3-Clause"
] | null | null | null | import requests
import sys
from time import sleep
from tabulate import tabulate
if __name__=='__main__':
try:
with open('.secret', 'r') as f:
secret = f.read().strip()
except IOException:
secret = sys.argv[1]
get_scams(secret)
| 34.322581 | 107 | 0.599624 |
ef955712af3bae4edd3cd451907984d2f75e38d0 | 101 | py | Python | hair_segmentation/model.py | shoman2/mediapipe-models | c588321f3b5056f2239d834c603046de7901d02e | [
"Apache-2.0"
] | 28 | 2019-10-08T06:07:45.000Z | 2021-06-12T07:01:32.000Z | hair_segmentation/model.py | shoman2/mediapipe-models | c588321f3b5056f2239d834c603046de7901d02e | [
"Apache-2.0"
] | null | null | null | hair_segmentation/model.py | shoman2/mediapipe-models | c588321f3b5056f2239d834c603046de7901d02e | [
"Apache-2.0"
] | 8 | 2019-10-10T04:59:02.000Z | 2021-03-28T16:11:09.000Z | # Real-time Hair Segmentation and Recoloring on Mobile GPUs (https://arxiv.org/abs/1907.06740)
# TODO | 50.5 | 94 | 0.772277 |
ef978b1341d6c5d5f3129e9244bedb2f75765eb8 | 996 | py | Python | blog/viewmixins.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 11 | 2018-04-02T16:36:19.000Z | 2019-07-10T05:54:58.000Z | blog/viewmixins.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 22 | 2019-01-01T20:40:21.000Z | 2022-02-10T08:06:39.000Z | blog/viewmixins.py | pincoin/rakmai | d9daa399aff50712a86b2dec9d94e622237b25b0 | [
"MIT"
] | 4 | 2019-03-12T14:24:37.000Z | 2022-01-07T16:20:22.000Z | import logging
from .forms import PostSearchForm
from .models import Blog
| 27.666667 | 77 | 0.684739 |
ef978c724ad463ecd7562dae7e149d5ae0ce4282 | 677 | py | Python | mapclientplugins/scaffoldfiniteelementmeshfitterstep/model/imageplanemodel.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/scaffoldfiniteelementmeshfitterstep/model/imageplanemodel.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | mapclientplugins/scaffoldfiniteelementmeshfitterstep/model/imageplanemodel.py | mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep | b35f6c0b2e264e2913d0a1c432bf89c7b329bf52 | [
"Apache-2.0"
] | null | null | null | from opencmiss.utils.maths.algorithms import calculate_line_plane_intersection
| 33.85 | 78 | 0.713442 |
ef97b640d54812e21c1fdb002e84f00eb0d09eea | 76 | py | Python | antools/shared/data_validation/__init__.py | antonin-drozda/antools | 550310a61aae8d11e50e088731211197b7ee790b | [
"MIT"
] | 1 | 2021-02-27T07:22:39.000Z | 2021-02-27T07:22:39.000Z | antools/shared/data_validation/__init__.py | antonin-drozda/antools | 550310a61aae8d11e50e088731211197b7ee790b | [
"MIT"
] | null | null | null | antools/shared/data_validation/__init__.py | antonin-drozda/antools | 550310a61aae8d11e50e088731211197b7ee790b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
SHARED - DATA VALIDATION
"""
# %% FILE IMPORT
| 9.5 | 24 | 0.526316 |
ef9836ec7a3a89d88130ef5b51f413cd84a57435 | 2,152 | py | Python | test/test/host_test_default.py | noralsydmp/mbed-os-tools | 5a14958aa49eb5764afba8e1dc3208cae2955cd7 | [
"Apache-2.0"
] | 29 | 2018-11-30T19:45:22.000Z | 2022-03-29T17:02:16.000Z | test/test/host_test_default.py | noralsydmp/mbed-os-tools | 5a14958aa49eb5764afba8e1dc3208cae2955cd7 | [
"Apache-2.0"
] | 160 | 2018-11-30T21:55:52.000Z | 2022-01-18T10:58:09.000Z | test/test/host_test_default.py | noralsydmp/mbed-os-tools | 5a14958aa49eb5764afba8e1dc3208cae2955cd7 | [
"Apache-2.0"
] | 73 | 2018-11-30T21:34:41.000Z | 2021-10-02T05:51:40.000Z | # Copyright (c) 2018, Arm Limited and affiliates.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | 39.127273 | 86 | 0.676115 |
ef9847d747aab77361f5e75e1a5b9c126c9e90f9 | 3,359 | py | Python | lib/surface/debug/logpoints/delete.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | null | null | null | lib/surface/debug/logpoints/delete.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | null | null | null | lib/surface/debug/logpoints/delete.py | bopopescu/SDK | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | [
"Apache-2.0"
] | 1 | 2020-07-25T12:23:41.000Z | 2020-07-25T12:23:41.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 36.51087 | 80 | 0.693659 |
ef99c583c045deb51df0a2fd8b0f81216762f3eb | 3,844 | py | Python | day-07/solution.py | wangjoshuah/Advent-Of-Code-2018 | 6bda7956bb7c6f9a54feffb19147961b56dc5d81 | [
"MIT"
] | null | null | null | day-07/solution.py | wangjoshuah/Advent-Of-Code-2018 | 6bda7956bb7c6f9a54feffb19147961b56dc5d81 | [
"MIT"
] | null | null | null | day-07/solution.py | wangjoshuah/Advent-Of-Code-2018 | 6bda7956bb7c6f9a54feffb19147961b56dc5d81 | [
"MIT"
] | null | null | null | # directed graph problem or breadth first search variant
from collections import defaultdict
import re
input_file = open("input.txt", "r")
input_lines = input_file.readlines()
letter_value = {
'A': 1,
'B': 2,
'C': 3,
'D': 4,
'E': 5,
'F': 6,
'G': 7,
'H': 8,
'I': 9,
'J': 10,
... | 27.070423 | 105 | 0.601977 |
ef99d022220363214630da6ad916a3a41900d8d7 | 2,862 | py | Python | src/infi/pypi_manager/scripts/compare_pypi_repos.py | Infinidat/infi.pypi_manager | 7b5774b395ef47a23be2957a091b607b35a049f2 | [
"BSD-3-Clause"
] | null | null | null | src/infi/pypi_manager/scripts/compare_pypi_repos.py | Infinidat/infi.pypi_manager | 7b5774b395ef47a23be2957a091b607b35a049f2 | [
"BSD-3-Clause"
] | 1 | 2020-11-05T10:04:45.000Z | 2020-11-05T11:03:25.000Z | src/infi/pypi_manager/scripts/compare_pypi_repos.py | Infinidat/infi.pypi_manager | 7b5774b395ef47a23be2957a091b607b35a049f2 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
from .. import PyPI, DjangoPyPI, PackageNotFound
from prettytable import PrettyTable
from pkg_resources import parse_version, resource_filename
import requests
import re
try:
from urlparse import unquote
except ImportError:
# Python 3
from urllib.parse import unquote
| 40.885714 | 120 | 0.70615 |
ef9afc42c7347b259e757e59b46b756f7ac092fc | 6,954 | py | Python | src/GNLSE_specific.py | Computational-Nonlinear-Optics-ORC/Compare-CNLSE | 9b56cedbca2a06af3baa9f64e46ebfd4263f86c2 | [
"MIT"
] | null | null | null | src/GNLSE_specific.py | Computational-Nonlinear-Optics-ORC/Compare-CNLSE | 9b56cedbca2a06af3baa9f64e46ebfd4263f86c2 | [
"MIT"
] | null | null | null | src/GNLSE_specific.py | Computational-Nonlinear-Optics-ORC/Compare-CNLSE | 9b56cedbca2a06af3baa9f64e46ebfd4263f86c2 | [
"MIT"
] | 3 | 2018-06-04T18:43:03.000Z | 2021-11-24T07:57:03.000Z | import numpy as np
from scipy.interpolate import InterpolatedUnivariateSpline
from scipy.fftpack import fft
from combined_functions import check_ft_grid
from scipy.constants import pi, c, hbar
from numpy.fft import fftshift
from scipy.io import loadmat
from time import time
import sys
import matplotlib.pyplot as plt
fr... | 33.757282 | 77 | 0.560397 |
ef9b8a20ac811d824f51d3976e30e0eeef10150a | 172 | py | Python | recipe/run_test.py | regro-cf-autotick-bot/astropy-healpix-feedstock | c859aa66fbdcc397e82ef3bb1940a99da0deb8fc | [
"BSD-3-Clause"
] | null | null | null | recipe/run_test.py | regro-cf-autotick-bot/astropy-healpix-feedstock | c859aa66fbdcc397e82ef3bb1940a99da0deb8fc | [
"BSD-3-Clause"
] | 24 | 2017-10-15T20:52:48.000Z | 2021-11-11T00:45:54.000Z | recipe/run_test.py | regro-cf-autotick-bot/astropy-healpix-feedstock | c859aa66fbdcc397e82ef3bb1940a99da0deb8fc | [
"BSD-3-Clause"
] | 4 | 2017-10-15T20:37:19.000Z | 2021-08-05T14:42:53.000Z | # The test suite runs in <20 seconds so is worth running here to
# make sure there are no issues with the C/Cython extensions
import astropy_healpix
astropy_healpix.test()
| 34.4 | 64 | 0.796512 |
ef9bbe1541d0c953af96d087b8ca600f95dd7284 | 45 | py | Python | way2sms/__init__.py | shubhamc183/way2sms | 33d8c9e69ab9b053e50501baf887191c718d2d2a | [
"MIT"
] | 38 | 2016-12-15T14:03:00.000Z | 2022-03-22T01:28:29.000Z | way2sms/__init__.py | shubhamc183/way2sms | 33d8c9e69ab9b053e50501baf887191c718d2d2a | [
"MIT"
] | 10 | 2017-11-18T08:13:18.000Z | 2020-09-06T11:18:32.000Z | way2sms/__init__.py | shubhamc183/way2sms | 33d8c9e69ab9b053e50501baf887191c718d2d2a | [
"MIT"
] | 41 | 2016-12-26T16:52:59.000Z | 2022-03-22T01:31:40.000Z | """
Way2sms
"""
from way2sms.app import Sms
| 7.5 | 27 | 0.666667 |
ef9be069a058d33204131a55950dcf855daf7d54 | 1,164 | py | Python | example.py | jasonkatz/py-graphql-client | 9f938f3d379a8f4d8810961c87baf25dbe35889d | [
"BSD-3-Clause"
] | 38 | 2019-03-22T16:27:08.000Z | 2022-03-30T11:07:55.000Z | example.py | anthonyhiga/py-graphql-client | 9c59b32bae5c5c6a12634b2bd6353f76328aa31a | [
"BSD-3-Clause"
] | 31 | 2019-03-25T20:28:40.000Z | 2022-01-26T21:22:47.000Z | example.py | anthonyhiga/py-graphql-client | 9c59b32bae5c5c6a12634b2bd6353f76328aa31a | [
"BSD-3-Clause"
] | 11 | 2019-03-25T18:54:32.000Z | 2021-09-11T17:00:27.000Z | import time
from graphql_client import GraphQLClient
# some sample GraphQL server which supports websocket transport and subscription
client = GraphQLClient('ws://localhost:9001')
# Simple Query Example
# query example with GraphQL variables
query = """
query getUser($userId: Int!) {
users (id: $userId) {
id
... | 23.755102 | 97 | 0.734536 |
ef9c140412569fc3198bcf6324071fb38dea2030 | 2,465 | py | Python | Scopus2Histcite.py | hengxyz/Scopus4HistCite | 87395afe5d8a520b9c32a0efeed2288225430244 | [
"Apache-2.0"
] | 2 | 2020-07-09T13:10:44.000Z | 2020-07-10T13:00:52.000Z | Scopus2Histcite.py | hengxyz/Scopus4HistCite | 87395afe5d8a520b9c32a0efeed2288225430244 | [
"Apache-2.0"
] | null | null | null | Scopus2Histcite.py | hengxyz/Scopus4HistCite | 87395afe5d8a520b9c32a0efeed2288225430244 | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
import os
import sys
if __name__ == '__main__':
Scopus2HistCite() | 35.724638 | 80 | 0.416633 |
ef9d373a85947b14498743498aaf4ab814a074db | 2,449 | py | Python | mel_scale.py | zjlww/dsp | d7bcbf49bc8693560f3203c55b73956cc61dcd50 | [
"MIT"
] | 9 | 2021-07-22T19:59:34.000Z | 2021-12-16T06:37:27.000Z | mel_scale.py | zjlww/dsp | d7bcbf49bc8693560f3203c55b73956cc61dcd50 | [
"MIT"
] | null | null | null | mel_scale.py | zjlww/dsp | d7bcbf49bc8693560f3203c55b73956cc61dcd50 | [
"MIT"
] | 2 | 2021-07-26T07:14:58.000Z | 2021-12-16T06:37:30.000Z | """
Mel-scale definition.
"""
import torch
from torch import Tensor
from typing import Union
import numpy as np
from math import log
import librosa
from librosa.filters import mel as mel_fn
def hz_to_mel(
frequencies: Union[float, int, Tensor, np.ndarray],
htk=False) -> Union[float, int, Tensor, np.ndarra... | 31.805195 | 78 | 0.642303 |
ef9edac80f3106bed3243580dd908ece6900cb29 | 379 | py | Python | order/urls.py | xxcfun/trip-api | a51c8b6033ba2a70cf0e400180f31809f4ce476a | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:40.000Z | 2021-06-18T03:03:40.000Z | order/urls.py | xxcfun/trip-api | a51c8b6033ba2a70cf0e400180f31809f4ce476a | [
"Apache-2.0"
] | null | null | null | order/urls.py | xxcfun/trip-api | a51c8b6033ba2a70cf0e400180f31809f4ce476a | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from order import views
urlpatterns = [
#
path('ticket/submit/', views.TicketOrderSubmitView.as_view(), name='ticket_submit'),
#
path('order/detail/<int:sn>/', views.OrderDetail.as_view(), name='order_detail'),
#
path('order/list/', views.OrderListView... | 29.153846 | 89 | 0.664908 |
ef9f39f03563135dc82bcc1a0e27d1ea6a62e525 | 349 | py | Python | api/models.py | yaroshyk/todo | 828d5afc9abd85cd7f8f25e4d01f90c765231357 | [
"MIT"
] | 3 | 2021-05-30T19:04:37.000Z | 2021-08-30T14:16:57.000Z | api/models.py | yaroshyk/todo | 828d5afc9abd85cd7f8f25e4d01f90c765231357 | [
"MIT"
] | null | null | null | api/models.py | yaroshyk/todo | 828d5afc9abd85cd7f8f25e4d01f90c765231357 | [
"MIT"
] | null | null | null | from django.db import models
| 23.266667 | 50 | 0.696275 |
ef9fbd19157663838a068e78c39ee7e40bade1b6 | 127 | py | Python | delightfulsoup/utils/unminify.py | etpinard/delightfulsoup | 6d8cf976bf216e0e311808ffbd871a5915ba7b09 | [
"MIT"
] | null | null | null | delightfulsoup/utils/unminify.py | etpinard/delightfulsoup | 6d8cf976bf216e0e311808ffbd871a5915ba7b09 | [
"MIT"
] | null | null | null | delightfulsoup/utils/unminify.py | etpinard/delightfulsoup | 6d8cf976bf216e0e311808ffbd871a5915ba7b09 | [
"MIT"
] | null | null | null | """
unminify
========
"""
def unminify(soup, encoding='utf-8'):
"""
"""
return soup.prettify().encode(encoding)
| 10.583333 | 43 | 0.527559 |
ef9feaf45807510f4cf448436f428cc436b0de04 | 744 | py | Python | main.py | bhaskar-nair2/Coded-Passwords | 306d01e54bf43c46267ed12c907a49932326b931 | [
"MIT"
] | null | null | null | main.py | bhaskar-nair2/Coded-Passwords | 306d01e54bf43c46267ed12c907a49932326b931 | [
"MIT"
] | null | null | null | main.py | bhaskar-nair2/Coded-Passwords | 306d01e54bf43c46267ed12c907a49932326b931 | [
"MIT"
] | null | null | null | import hashlib | 28.615385 | 57 | 0.555108 |
efa05bae4ae4b077bd16954d59ff3b20aac6edc2 | 17,709 | py | Python | src/upper/utils.py | USArmyResearchLab/ARL-UPPER | 2f79f25338f18655b2a19c8afe3fed267cc0f198 | [
"Apache-2.0"
] | 4 | 2020-09-14T06:13:04.000Z | 2020-11-21T07:10:36.000Z | src/upper/utils.py | USArmyResearchLab/ARL-UPPER | 2f79f25338f18655b2a19c8afe3fed267cc0f198 | [
"Apache-2.0"
] | null | null | null | src/upper/utils.py | USArmyResearchLab/ARL-UPPER | 2f79f25338f18655b2a19c8afe3fed267cc0f198 | [
"Apache-2.0"
] | 2 | 2020-03-15T17:59:26.000Z | 2020-09-14T06:13:05.000Z | from typing import Tuple
from rdkit import Chem
from rdkit.Chem import Draw
import re
import itertools
import numpy as np
import networkx as nx
import logging
import collections
def FindBreakingBonds(cnids: list, bids: list, bts: list, atomic_nums: list) -> list:
"""Returns bond ids to be broken. Check for double... | 28.65534 | 94 | 0.611666 |
efa2c84741d3637cb65c8fc32a0abc9a577fb053 | 3,317 | py | Python | 025_reverse-nodes-in-k-group.py | tasselcui/leetcode | 5c32446b8b5bf3711cf28e465f448c6a0980f259 | [
"MIT"
] | null | null | null | 025_reverse-nodes-in-k-group.py | tasselcui/leetcode | 5c32446b8b5bf3711cf28e465f448c6a0980f259 | [
"MIT"
] | null | null | null | 025_reverse-nodes-in-k-group.py | tasselcui/leetcode | 5c32446b8b5bf3711cf28e465f448c6a0980f259 | [
"MIT"
] | null | null | null | # =============================================================================
# # -*- coding: utf-8 -*-
# """
# Created on Sun Aug 5 08:07:19 2018
#
# @author: lenovo
# """
# 25. Reverse Nodes in k-Group
# Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
#
# k is a ... | 28.843478 | 186 | 0.403075 |
efa5e69113b0347792c870829c3f62690cf050bb | 2,708 | py | Python | perma_web/perma/tests/test_views_common.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_views_common.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_views_common.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | from django.conf import settings
from django.core import mail
from django.core.urlresolvers import reverse
from perma.urls import urlpatterns
from .utils import PermaTestCase | 43.677419 | 93 | 0.642171 |
efa68642041c99f789a40f12b356c9ba93e64adc | 1,708 | py | Python | GeneratorInterface/Pythia8Interface/python/Py8PtLxyGun_4tau_cfi.py | menglu21/cmssw | c3d6cb102c0aaddf652805743370c28044d53da6 | [
"Apache-2.0"
] | null | null | null | GeneratorInterface/Pythia8Interface/python/Py8PtLxyGun_4tau_cfi.py | menglu21/cmssw | c3d6cb102c0aaddf652805743370c28044d53da6 | [
"Apache-2.0"
] | null | null | null | GeneratorInterface/Pythia8Interface/python/Py8PtLxyGun_4tau_cfi.py | menglu21/cmssw | c3d6cb102c0aaddf652805743370c28044d53da6 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
#Note: distances in mm instead of in cm usually used in CMS
generator = cms.EDFilter("Pythia8PtAndLxyGun",
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1),
pythiaHepMCVerbosity = cms.untracked.bool(True),
PGunParameter... | 47.444444 | 203 | 0.668618 |
efabd851d1c220194dc0597eebe6be9a8b117165 | 5,492 | py | Python | questions/models.py | stkrizh/otus-django-hasker | 9692b8060a789b0b66b4cf3591a78e32c8a10380 | [
"MIT"
] | null | null | null | questions/models.py | stkrizh/otus-django-hasker | 9692b8060a789b0b66b4cf3591a78e32c8a10380 | [
"MIT"
] | 10 | 2020-06-05T22:56:30.000Z | 2022-02-10T08:54:18.000Z | questions/models.py | stkrizh/otus-django-hasker | 9692b8060a789b0b66b4cf3591a78e32c8a10380 | [
"MIT"
] | null | null | null | import logging
from typing import List, Optional
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
VOTE_UP = 1
VOTE_DOWN = -1
VOTE_CHOICES = ((VOTE_UP, "Vote Up"), (VOTE_DOWN, "Vote Down"))
User = get_... | 27.878173 | 76 | 0.619993 |
efac998014549cc9e8410daf8e8486e66ec92ef3 | 1,430 | py | Python | backend/routers/bookmarks.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | 1 | 2022-02-08T19:35:22.000Z | 2022-02-08T19:35:22.000Z | backend/routers/bookmarks.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | null | null | null | backend/routers/bookmarks.py | heshikirihasebe/fastapi-instagram-clone | 7bc265a62160171c5c5c1b2f18b3c86833cb64e7 | [
"MIT"
] | null | null | null | from datetime import datetime
from fastapi import APIRouter, Request
from ..classes.jwt_authenticator import JWTAuthenticator
from ..repositories import bookmark_repository
from ..schemas.bookmark_schema import RequestSchema, ResponseSchema
router = APIRouter(
prefix='/bookmarks',
tags=['bookmarks'],
)
# Inde... | 31.086957 | 112 | 0.706294 |
efae6e71bf3ea6317e5681aeac0b15d509089b29 | 2,044 | py | Python | legos/input_type.py | kamongi/legos | 0b4b5b1300af6677ae4e9c642a211ba3c96726a9 | [
"MIT"
] | null | null | null | legos/input_type.py | kamongi/legos | 0b4b5b1300af6677ae4e9c642a211ba3c96726a9 | [
"MIT"
] | null | null | null | legos/input_type.py | kamongi/legos | 0b4b5b1300af6677ae4e9c642a211ba3c96726a9 | [
"MIT"
] | null | null | null | import os, urllib, datetime, time, sys
import getpass
from franz.openrdf.sail.allegrographserver import AllegroGraphServer
from franz.openrdf.repository.repository import Repository
from franz.miniclient import repository
from franz.openrdf.query.query import QueryLanguage
from franz.openrdf.model import URI
from fran... | 31.9375 | 119 | 0.741683 |
efaec7b2aeea24ccd064fbf8dcfa28faac52b446 | 1,635 | py | Python | analysis/scripts/project_functions_Tom.py | data301-2020-winter2/course-project-group_1052 | 3733aacac0812811752d77e5f3d822ef5251c17b | [
"MIT"
] | null | null | null | analysis/scripts/project_functions_Tom.py | data301-2020-winter2/course-project-group_1052 | 3733aacac0812811752d77e5f3d822ef5251c17b | [
"MIT"
] | 1 | 2021-03-24T17:16:52.000Z | 2021-03-24T17:16:52.000Z | analysis/scripts/project_functions_Tom.py | data301-2020-winter2/course-project-group_1052 | 3733aacac0812811752d77e5f3d822ef5251c17b | [
"MIT"
] | null | null | null | import pandas as pd | 30.277778 | 157 | 0.55107 |
efaec9e129260471f4d26372fd487df99a205a00 | 4,887 | py | Python | utils.py | loc-trinh/GrandmasterZero | 58365890fe2b0145344f17be5fb59e08c8f1993a | [
"MIT"
] | null | null | null | utils.py | loc-trinh/GrandmasterZero | 58365890fe2b0145344f17be5fb59e08c8f1993a | [
"MIT"
] | null | null | null | utils.py | loc-trinh/GrandmasterZero | 58365890fe2b0145344f17be5fb59e08c8f1993a | [
"MIT"
] | null | null | null | import pprint
import time
import chess.pgn
import IPython.display as display
import ipywidgets as widgets
| 32.58 | 79 | 0.575609 |
efaff942ac5c5e8e164b052efc98c4fab3a41b3b | 1,401 | py | Python | falco/svc/version_pb2_grpc.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 20 | 2019-10-14T15:01:14.000Z | 2021-08-09T19:13:08.000Z | falco/svc/version_pb2_grpc.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 45 | 2019-10-14T14:55:30.000Z | 2022-02-11T03:27:37.000Z | falco/svc/version_pb2_grpc.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 11 | 2019-10-14T17:41:06.000Z | 2022-02-21T05:40:44.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import version_pb2 as version__pb2
def add_serviceServicer_to_server(servicer, server):
rpc_method_handlers = {
'version': grpc.unary_unary_rpc_method_handler(
servicer.version,
request_deserializer=versio... | 28.591837 | 70 | 0.730193 |
efb0224997c2a73db24a06482baa1e76838ea1f0 | 2,904 | py | Python | query.py | urmi-21/COVID-biorxiv | 6dfe713c2634197b6c9983eb2aa3fa6676f7d045 | [
"MIT"
] | 2 | 2020-06-29T16:55:17.000Z | 2020-09-21T14:00:16.000Z | query.py | urmi-21/COVID-biorxiv | 6dfe713c2634197b6c9983eb2aa3fa6676f7d045 | [
"MIT"
] | null | null | null | query.py | urmi-21/COVID-biorxiv | 6dfe713c2634197b6c9983eb2aa3fa6676f7d045 | [
"MIT"
] | 1 | 2020-09-21T14:00:23.000Z | 2020-09-21T14:00:23.000Z | import sys
import json
import requests
import subprocess
from datetime import datetime
#dict storing data
collection={}
def update_collection():
'''
Download bioarxiv and medarxiv collections
'''
link='https://connect.biorxiv.org/relate/collection_json.php?grp=181'
outfile='collection.json'
p... | 25.034483 | 82 | 0.64084 |
efb3562ab2f0bc0a7a96ac315758b6464fb9c4ea | 1,336 | py | Python | core/server/wx_handler.py | Maru-zhang/FilmHub-Tornado | 870da52cec65920565439d2d5bb1424ae614665d | [
"Apache-2.0"
] | 2 | 2017-07-19T01:24:05.000Z | 2017-07-19T09:12:46.000Z | core/server/wx_handler.py | Maru-zhang/FilmHub-Tornado | 870da52cec65920565439d2d5bb1424ae614665d | [
"Apache-2.0"
] | null | null | null | core/server/wx_handler.py | Maru-zhang/FilmHub-Tornado | 870da52cec65920565439d2d5bb1424ae614665d | [
"Apache-2.0"
] | 1 | 2017-07-28T09:31:42.000Z | 2017-07-28T09:31:42.000Z | import tornado.web
from core.logger_helper import logger
from core.server.wxauthorize import WxConfig
from core.server.wxauthorize import WxAuthorServer
from core.cache.tokencache import TokenCache
| 32.585366 | 91 | 0.569611 |
efb4030a249dafcb2be0137ce898a4f573bed62c | 2,771 | py | Python | Recipes/Convert_Files_Into_JSON_And_CSV/Mapping_JsonToCsvConverter.py | Lotame/DataStream_Cookbook | 3ec7ded6bd1e3a59fa4d06bb76e81be9da9c97a6 | [
"MIT"
] | 1 | 2022-02-28T10:40:53.000Z | 2022-02-28T10:40:53.000Z | Recipes/Convert_Files_Into_JSON_And_CSV/Mapping_JsonToCsvConverter.py | Lotame/DataStream_Cookbook | 3ec7ded6bd1e3a59fa4d06bb76e81be9da9c97a6 | [
"MIT"
] | 2 | 2021-01-08T17:51:10.000Z | 2021-03-29T11:36:07.000Z | Recipes/Convert_Files_Into_JSON_And_CSV/Mapping_JsonToCsvConverter.py | Lotame/DataStream_Cookbook | 3ec7ded6bd1e3a59fa4d06bb76e81be9da9c97a6 | [
"MIT"
] | 3 | 2020-01-26T23:31:23.000Z | 2022-02-18T19:29:30.000Z | #!/usr/bin/python
#
# Write in Python3.6
# Filename:
#
# Mapping_JsonToCsvExtractor.py
#
#
# Basic Usage:
#
# python Mapping_JsonToCsvExtractor.py /directory/containing/datastream/mapping/json/files
#
# Utilities
import sys
import os
import json
import argparse
# write a line to the target file
if __name... | 35.987013 | 125 | 0.631902 |
efb4a4c9d9efe6b7461d24bff10a128e9ce9296a | 2,692 | py | Python | shuttl/__init__.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | 2 | 2017-06-26T18:06:58.000Z | 2017-10-11T21:45:29.000Z | shuttl/__init__.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | null | null | null | shuttl/__init__.py | shuttl-io/shuttl-cms | 50c85db0de42e901c371561270be6425cc65eccc | [
"MIT"
] | null | null | null | import sys
from flask import Flask, redirect, request, session, url_for
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager, current_user
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from flask_wtf.csrf import CsrfProtect
from .sessions import Shut... | 28.041667 | 106 | 0.76523 |
efb55216c30cf2837e4576480260417e73138279 | 4,088 | py | Python | main.py | DayvsonAlmeida/Programa-o-Gen-tica | 6edaceab99c61f55f4157e81fcf7cbad580f81d1 | [
"MIT"
] | null | null | null | main.py | DayvsonAlmeida/Programa-o-Gen-tica | 6edaceab99c61f55f4157e81fcf7cbad580f81d1 | [
"MIT"
] | null | null | null | main.py | DayvsonAlmeida/Programa-o-Gen-tica | 6edaceab99c61f55f4157e81fcf7cbad580f81d1 | [
"MIT"
] | null | null | null | from utils import initialize
from pandas import DataFrame
from genetic import GA
import numpy as np
import argparse
import random
import time
import sys
sys.setrecursionlimit(2000)
random.seed(time.time())
parser = argparse.ArgumentParser()
parser.add_argument('--mr', help='Mutation Rate')
parser.add_argu... | 40.88 | 107 | 0.634785 |
efb70cec858af5a7d681ffd1896f1dd46735a318 | 1,774 | py | Python | Dictionary.py | edisoncast/DES-UOC | cd179e21c03ad780c9ea3876a6219c32b8e34cad | [
"MIT"
] | null | null | null | Dictionary.py | edisoncast/DES-UOC | cd179e21c03ad780c9ea3876a6219c32b8e34cad | [
"MIT"
] | null | null | null | Dictionary.py | edisoncast/DES-UOC | cd179e21c03ad780c9ea3876a6219c32b8e34cad | [
"MIT"
] | null | null | null | #Creado por Jhon Edison Castro Snchez
#Diccionario tomado de https://github.com/danielmiessler/SecLists/blob/bb915befb208fd900592bb5a25d0c5e4f869f8ea/Passwords/Leaked-Databases/rockyou.txt.tar.gz
#Se usa para generar el mismo comportamiento de openssl de linux
#https://docs.python.org/2/library/crypt.html
import crypt... | 39.422222 | 157 | 0.673055 |
efb866a60e5d0e5a7b79c81d5acd283c1c39df92 | 227 | py | Python | .test/test/task1/aufgabe4.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | .test/test/task1/aufgabe4.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | .test/test/task1/aufgabe4.py | sowinski/testsubtree | d09b72e6b366e8e29e038445a1fa6987b2456625 | [
"MIT"
] | null | null | null | from nltk.book import *
print letterFrequ(text1)
print letterFrequ(text5)
| 15.133333 | 26 | 0.669604 |
efbe9e033668c8068ec57cb141083c350416dc90 | 1,668 | py | Python | src/controllers/userController.py | gioliveirass/fatec-BDNR-MercadoLivre | dd2c407f6728e4f11e8292463cc2ba3ad562de1e | [
"MIT"
] | null | null | null | src/controllers/userController.py | gioliveirass/fatec-BDNR-MercadoLivre | dd2c407f6728e4f11e8292463cc2ba3ad562de1e | [
"MIT"
] | null | null | null | src/controllers/userController.py | gioliveirass/fatec-BDNR-MercadoLivre | dd2c407f6728e4f11e8292463cc2ba3ad562de1e | [
"MIT"
] | null | null | null | import connectBD as connectDB
from pprint import pprint | 30.327273 | 49 | 0.492206 |
efc074386633ac80149d8065fe9a27e3e95d188c | 374 | py | Python | models/sample.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | null | null | null | models/sample.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | 2 | 2022-01-11T15:50:04.000Z | 2022-01-13T01:53:53.000Z | models/sample.py | OttrOne/suivi | 9e53a39b0f50054b89cb960eb9055fd0a28a5ebf | [
"MIT"
] | null | null | null | from utils import hrsize
from time import time_ns
| 22 | 88 | 0.59893 |
efc4891e8e505e8dc24f5447323153c9667f9326 | 1,220 | py | Python | file-convertors/pdf-to-image/pdf_to_image.py | fraserlove/python-productivity-scripts | 4a667446250042b01e307c7e4be53defc905207e | [
"MIT"
] | null | null | null | file-convertors/pdf-to-image/pdf_to_image.py | fraserlove/python-productivity-scripts | 4a667446250042b01e307c7e4be53defc905207e | [
"MIT"
] | null | null | null | file-convertors/pdf-to-image/pdf_to_image.py | fraserlove/python-productivity-scripts | 4a667446250042b01e307c7e4be53defc905207e | [
"MIT"
] | null | null | null | '''
PDF to Image Converter
Author: Fraser Love, me@fraser.love
Created: 2020-06-13
Latest Release: v1.0.1, 2020-06-21
Python: v3.6.9
Dependancies: pdf2image
Converts multiple pdf's to images (JPEG format) and stores them in a logical folder structure under the desired image directory.
Usage: Update the pdf_dir and img... | 36.969697 | 128 | 0.694262 |
efc5229f2a8966dc64e04e1c67caf2f4bee4df93 | 4,217 | py | Python | tests/test/search/test_references_searcher_string.py | watermelonwolverine/fvttmv | 8689d47d1f904dd2bf0a083de515fda65713c460 | [
"MIT"
] | 1 | 2022-03-30T19:12:14.000Z | 2022-03-30T19:12:14.000Z | tests/test/search/test_references_searcher_string.py | watermelonwolverine/fvttmv | 8689d47d1f904dd2bf0a083de515fda65713c460 | [
"MIT"
] | null | null | null | tests/test/search/test_references_searcher_string.py | watermelonwolverine/fvttmv | 8689d47d1f904dd2bf0a083de515fda65713c460 | [
"MIT"
] | null | null | null | from fvttmv.exceptions import FvttmvException
from fvttmv.reference_tools import ReferenceTools
from fvttmv.search.__references_searcher_string import ReferencesSearcherString
from test.common import TestCase
| 40.548077 | 96 | 0.591653 |
efc64b0b3d469f8a4e23675a9039dc1fed37be48 | 4,999 | py | Python | vtk.py | becklabs/geotag-gui | c8b1c3a0c6ca0c3eed09fab69d9dbb8b974b1b03 | [
"MIT"
] | null | null | null | vtk.py | becklabs/geotag-gui | c8b1c3a0c6ca0c3eed09fab69d9dbb8b974b1b03 | [
"MIT"
] | null | null | null | vtk.py | becklabs/geotag-gui | c8b1c3a0c6ca0c3eed09fab69d9dbb8b974b1b03 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 19 19:50:43 2020
@author: beck
"""
import cv2
import datetime
import dateparser
import os
import sys
import pandas as pd
import pytz
from hachoir.parser import createParser
from hachoir.metadata import extractMetadata
from PIL import Image
import numpy as... | 35.707143 | 102 | 0.619324 |
efc6952d49bfc96baa0e1e3a017cc887fba50c18 | 4,237 | py | Python | ROS_fall_detection/src/detector.py | SeanChen0220/Posefall | f27eedc0a624cc2875d14ffa276cf96cdfc1b410 | [
"MIT"
] | 15 | 2021-08-08T08:41:54.000Z | 2022-03-30T10:12:49.000Z | ROS_fall_detection/src/detector.py | SeanChen0220/Posefall | f27eedc0a624cc2875d14ffa276cf96cdfc1b410 | [
"MIT"
] | 1 | 2021-11-24T16:51:51.000Z | 2021-12-03T06:20:11.000Z | ROS_fall_detection/src/detector.py | SeanChen0220/Posefall | f27eedc0a624cc2875d14ffa276cf96cdfc1b410 | [
"MIT"
] | 3 | 2021-08-08T08:41:55.000Z | 2022-03-15T07:28:53.000Z | #! /home/seanchen/anaconda3/bin/python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
#import sys
import rospy
from std_msgs.msg import String
import torch
import torch.nn.parallel
import torch.nn.functional as F
import numpy as np
import cv2
from LPN impor... | 35.605042 | 99 | 0.630399 |
efc705c5b7dd44b358486c8f4931ee3c4faede41 | 3,696 | py | Python | tensorflow1.x/sound_conv.py | wikeex/tensorflow-learning | a6ab7c99455711e9f3c015e0abb04fa58342e0cb | [
"MIT"
] | null | null | null | tensorflow1.x/sound_conv.py | wikeex/tensorflow-learning | a6ab7c99455711e9f3c015e0abb04fa58342e0cb | [
"MIT"
] | null | null | null | tensorflow1.x/sound_conv.py | wikeex/tensorflow-learning | a6ab7c99455711e9f3c015e0abb04fa58342e0cb | [
"MIT"
] | null | null | null | import tensorflow as tf
from sound_lstm_test import data
batch_size = 10
x = tf.placeholder(tf.float32, [batch_size, 512, 80])
y_ = tf.placeholder(tf.float32, [batch_size, 59])
w_conv1 = tf.Variable(tf.truncated_normal([16, 2, 1, 64], stddev=0.1), name='conv1_w')
b_conv1 = tf.Variable(tf.constant(0.1, shape=[64]), n... | 44.53012 | 116 | 0.717532 |
efc7713fd5edcdf52845e8c0b576613822945b28 | 2,213 | py | Python | interviewPractice/python/02_linkedLists/03_addTwoHugeNumbers.py | netor27/codefights-arcade-solutions | 69701ab06d45902c79ec9221137f90b75969d8c8 | [
"MIT"
] | null | null | null | interviewPractice/python/02_linkedLists/03_addTwoHugeNumbers.py | netor27/codefights-arcade-solutions | 69701ab06d45902c79ec9221137f90b75969d8c8 | [
"MIT"
] | null | null | null | interviewPractice/python/02_linkedLists/03_addTwoHugeNumbers.py | netor27/codefights-arcade-solutions | 69701ab06d45902c79ec9221137f90b75969d8c8 | [
"MIT"
] | null | null | null | ''''
You're given 2 huge integers represented by linked lists. Each linked list element is a number from 0 to 9999 that represents a number with exactly 4 digits. The represented number might have leading zeros. Your task is to add up these huge integers and return the result in the same format.
Example
For a = [9876... | 24.054348 | 291 | 0.615002 |
efc7a9d58bb127091a58a8679f3c1f9062aeca6a | 3,123 | py | Python | src/ensae_projects/datainc/data_medical.py | sdpython/ensae_projects | 9647751da053c09fa35402527b294e02a4e6e2ad | [
"MIT"
] | 1 | 2020-11-22T10:24:54.000Z | 2020-11-22T10:24:54.000Z | src/ensae_projects/datainc/data_medical.py | sdpython/ensae_projects | 9647751da053c09fa35402527b294e02a4e6e2ad | [
"MIT"
] | 13 | 2017-11-20T00:20:45.000Z | 2021-01-05T14:13:51.000Z | src/ensae_projects/datainc/data_medical.py | sdpython/ensae_projects | 9647751da053c09fa35402527b294e02a4e6e2ad | [
"MIT"
] | null | null | null | """
@file
@brief Functions to handle data coming from
:epkg:`Cancer Imaging Archive`.
"""
import os
import pydicom
import pandas
import cv2
from pyquickhelper.filehelper.synchelper import explore_folder_iterfile # pylint: disable=C0411
def convert_dcm2png(folder, dest, fLOG=None):
"""
Converts all medical i... | 33.945652 | 96 | 0.565802 |
efca70e500dca1e2e95cfa22dacbadf959220409 | 8,743 | py | Python | preprocessing_data.py | sharathrao13/seq2seq | 0768ea0b765ed93617a8e9e5cb907deae042c83d | [
"Apache-2.0"
] | 1 | 2021-02-12T00:01:45.000Z | 2021-02-12T00:01:45.000Z | preprocessing_data.py | sharathrao13/seq2seq | 0768ea0b765ed93617a8e9e5cb907deae042c83d | [
"Apache-2.0"
] | null | null | null | preprocessing_data.py | sharathrao13/seq2seq | 0768ea0b765ed93617a8e9e5cb907deae042c83d | [
"Apache-2.0"
] | null | null | null | import re
import collections
import shutil
from tensorflow.python.platform import gfile
num_movie_scripts = 10
vocabulary_size = 10000
fraction_dev = 50
path_for_x_train = 'X_train.txt'
path_for_y_train = 'y_train.txt'
path_for_x_dev = 'X_dev.txt'
path_for_y_dev = 'y_dev.txt'
_PAD = b"_PAD"
_GO = b"_GO"
_EOS = b"_EO... | 32.501859 | 196 | 0.649663 |
efcb531829013e0d275069585a78eef303453aa5 | 851 | py | Python | dfirtrack_api/serializers.py | 0xflotus/dfirtrack | 632ebe582c2b40a4ac4b9fb12b7a118c2c49ede5 | [
"MIT"
] | 4 | 2020-03-06T17:37:09.000Z | 2020-03-17T07:50:55.000Z | dfirtrack_api/serializers.py | 0xflotus/dfirtrack | 632ebe582c2b40a4ac4b9fb12b7a118c2c49ede5 | [
"MIT"
] | null | null | null | dfirtrack_api/serializers.py | 0xflotus/dfirtrack | 632ebe582c2b40a4ac4b9fb12b7a118c2c49ede5 | [
"MIT"
] | 1 | 2020-03-06T20:54:52.000Z | 2020-03-06T20:54:52.000Z | from rest_framework import serializers
from dfirtrack_main.models import System, Systemtype
| 27.451613 | 89 | 0.654524 |
efcedab7fe4be160e4d524567ddc2da000250f7a | 185 | py | Python | exasol_advanced_analytics_framework/udf_framework/create_event_handler_udf_call.py | exasol/advanced-analytics-framework | 78cb9c92fa905132c346d289623598d39def480c | [
"MIT"
] | null | null | null | exasol_advanced_analytics_framework/udf_framework/create_event_handler_udf_call.py | exasol/advanced-analytics-framework | 78cb9c92fa905132c346d289623598d39def480c | [
"MIT"
] | 12 | 2022-02-21T15:54:47.000Z | 2022-03-30T08:35:52.000Z | exasol_advanced_analytics_framework/udf_framework/create_event_handler_udf_call.py | exasol/advanced-analytics-framework | 78cb9c92fa905132c346d289623598d39def480c | [
"MIT"
] | null | null | null | from exasol_advanced_analytics_framework.interface.create_event_handler_udf \
import CreateEventHandlerUDF
udf = CreateEventHandlerUDF(exa)
| 20.555556 | 77 | 0.810811 |
efd02e3f34305859967db711ac4399efc0f26e99 | 7,489 | py | Python | corrct/utils_proc.py | cicwi/PyCorrectedEmissionCT | 424449e1879a03cdbb8910c806417962e5b9faff | [
"BSD-3-Clause"
] | 3 | 2020-12-08T17:09:08.000Z | 2022-01-21T22:46:56.000Z | corrct/utils_proc.py | cicwi/PyCorrectedEmissionCT | 424449e1879a03cdbb8910c806417962e5b9faff | [
"BSD-3-Clause"
] | 11 | 2021-03-19T11:34:34.000Z | 2022-03-31T13:22:02.000Z | corrct/utils_proc.py | cicwi/PyCorrectedEmissionCT | 424449e1879a03cdbb8910c806417962e5b9faff | [
"BSD-3-Clause"
] | 1 | 2021-03-11T18:27:48.000Z | 2021-03-11T18:27:48.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 24 15:25:14 2020
@author: Nicola VIGAN, Computational Imaging group, CWI, The Netherlands,
and ESRF - The European Synchrotron, Grenoble, France
"""
import numpy as np
from . import operators
from . import solvers
def get_circular_mask(vol_shape, radius_offset=0, coor... | 37.633166 | 120 | 0.667646 |
efd15e7fb718ba74481d809759853c9e66bc24c0 | 80 | py | Python | bcap/__init__.py | keioku/bcap-python | 5f1c912fcac515d8f26bda113f644d55a38e15d6 | [
"MIT"
] | null | null | null | bcap/__init__.py | keioku/bcap-python | 5f1c912fcac515d8f26bda113f644d55a38e15d6 | [
"MIT"
] | null | null | null | bcap/__init__.py | keioku/bcap-python | 5f1c912fcac515d8f26bda113f644d55a38e15d6 | [
"MIT"
] | null | null | null | from .b_cap_client import BCapClient
from .b_cap_exception import BCapException
| 26.666667 | 42 | 0.875 |
efd1c5307f2a5343f619264248d49a40d7ec14ee | 675 | py | Python | 84.py | gdmanandamohon/leetcode | a691a4e37ee1fdad69c710e3710c5faf8b0a7d76 | [
"MIT"
] | null | null | null | 84.py | gdmanandamohon/leetcode | a691a4e37ee1fdad69c710e3710c5faf8b0a7d76 | [
"MIT"
] | null | null | null | 84.py | gdmanandamohon/leetcode | a691a4e37ee1fdad69c710e3710c5faf8b0a7d76 | [
"MIT"
] | null | null | null | '''
@author: l4zyc0d3r
People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt
'''
| 29.347826 | 86 | 0.422222 |
efd28e21b75921adf9dd8a8cb27c1319019eacfc | 402 | py | Python | delete_event.py | garymcwilliams/py-google-calendar | 546b412f0ffc1bdc9a81868bddf4de18a0c20899 | [
"Apache-2.0"
] | null | null | null | delete_event.py | garymcwilliams/py-google-calendar | 546b412f0ffc1bdc9a81868bddf4de18a0c20899 | [
"Apache-2.0"
] | 1 | 2021-04-30T20:59:15.000Z | 2021-04-30T20:59:15.000Z | delete_event.py | garymcwilliams/py-google-calendar | 546b412f0ffc1bdc9a81868bddf4de18a0c20899 | [
"Apache-2.0"
] | null | null | null | from cal_setup import get_calendar_service
if __name__ == '__main__':
main() | 23.647059 | 48 | 0.659204 |
efd293b0fad7a4595a31aa160b88ccb1aa88a456 | 37 | py | Python | rses/src/flask_app/blueprints/client/__init__.py | iScrE4m/RSES | 88299f105ded8838243eab8b25ab1626c97d1179 | [
"MIT"
] | 1 | 2022-02-16T15:06:22.000Z | 2022-02-16T15:06:22.000Z | rses/src/flask_app/blueprints/client/__init__.py | djetelina/RSES | 88299f105ded8838243eab8b25ab1626c97d1179 | [
"MIT"
] | null | null | null | rses/src/flask_app/blueprints/client/__init__.py | djetelina/RSES | 88299f105ded8838243eab8b25ab1626c97d1179 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Client blueprint""" | 18.5 | 22 | 0.675676 |
efd30ee41ca03d2e23b35a990fdeba3358b3d6c7 | 15,351 | py | Python | pycdp/asyncio.py | HMaker/python-chrome-devtools-protocol | a9646a1c4e172ce458c15e2fcb3860ca8c9b4599 | [
"MIT"
] | null | null | null | pycdp/asyncio.py | HMaker/python-chrome-devtools-protocol | a9646a1c4e172ce458c15e2fcb3860ca8c9b4599 | [
"MIT"
] | null | null | null | pycdp/asyncio.py | HMaker/python-chrome-devtools-protocol | a9646a1c4e172ce458c15e2fcb3860ca8c9b4599 | [
"MIT"
] | null | null | null | from __future__ import annotations
import json
import asyncio
import itertools
import typing as t
from collections import defaultdict
from contextlib import asynccontextmanager
from aiohttp import ClientSession
from aiohttp.client import ClientWebSocketResponse
from aiohttp.http_websocket import WSMsgType, WSCloseCode
... | 35.7 | 123 | 0.614162 |
efd3aea1c3cf0426d8d1f43ef851162a882e6a5f | 7,680 | py | Python | src/manager/om/script/gspylib/inspection/items/cluster/CheckSpecialFile.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/manager/om/script/gspylib/inspection/items/cluster/CheckSpecialFile.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/manager/om/script/gspylib/inspection/items/cluster/CheckSpecialFile.py | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.
#
# openGauss is licensed under Mulan PSL v2.
# You can use this software according to the terms
# and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE... | 37.101449 | 78 | 0.552344 |
efd3f9d1de68654dbc76d3fbfef70bcad64b263b | 585 | py | Python | main/methods/analysis.py | hannxiao/autotrade2 | 8e6f3d463334b6ea8a18074de58e25c0dab93f39 | [
"MIT"
] | null | null | null | main/methods/analysis.py | hannxiao/autotrade2 | 8e6f3d463334b6ea8a18074de58e25c0dab93f39 | [
"MIT"
] | 6 | 2020-06-06T01:05:02.000Z | 2021-12-13T20:42:16.000Z | main/methods/analysis.py | hannxiao/autotrade | 8e6f3d463334b6ea8a18074de58e25c0dab93f39 | [
"MIT"
] | null | null | null | from . import toolFuncs
def DefineTrend(data, K):
'''
Filter all the trend whose range less than K%
'''
pairs = list(zip(data['Date'], data['Close']))
is_extreme = toolFuncs.extreme_point(data['Close'], K, recognition_method='height')
output = [pairs[i] for i... | 32.5 | 98 | 0.529915 |
efd40da6f7f764459934c721ccc5ec880311c2e3 | 607 | py | Python | FaceClassify/losses/TripletMarginLoss.py | CharlesPikachu/CharlesFace | 90bfe38c58068228d0069dce43b55b2570acaa16 | [
"MIT"
] | 13 | 2018-05-23T07:07:28.000Z | 2021-05-28T07:37:30.000Z | FaceClassify/losses/TripletMarginLoss.py | CharlesPikachu/CharlesFace | 90bfe38c58068228d0069dce43b55b2570acaa16 | [
"MIT"
] | null | null | null | FaceClassify/losses/TripletMarginLoss.py | CharlesPikachu/CharlesFace | 90bfe38c58068228d0069dce43b55b2570acaa16 | [
"MIT"
] | null | null | null | # Author:
# Charles
# Function:
# Triplet loss function.
import torch
from torch.autograd import Function
import sys
sys.path.append('../')
from utils.utils import *
| 26.391304 | 66 | 0.744646 |