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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f59671f8d3a830afb8aa4d6a2a90929cc84624a | 205 | py | Python | examples/configuration/default_configuration.py | mwek/memoize | bd35641d676dbaaf161a61dbf1176742cfa187cc | [
"Apache-2.0"
] | 54 | 2019-06-04T07:00:23.000Z | 2022-03-22T00:56:47.000Z | examples/configuration/default_configuration.py | mwek/memoize | bd35641d676dbaaf161a61dbf1176742cfa187cc | [
"Apache-2.0"
] | 7 | 2020-08-17T15:45:34.000Z | 2022-01-19T09:23:16.000Z | examples/configuration/default_configuration.py | mwek/memoize | bd35641d676dbaaf161a61dbf1176742cfa187cc | [
"Apache-2.0"
] | 5 | 2019-10-18T18:05:26.000Z | 2021-06-11T10:14:59.000Z | from memoize.configuration import DefaultInMemoryCacheConfiguration
from memoize.wrapper import memoize
| 25.625 | 67 | 0.839024 |
9f5b2564937faaac3a6c4255ab14be6315e51e60 | 13,147 | py | Python | src/models/train_model copy 2.py | gummz/cell | a741ca4900a11f1080b7572ac969f765e5ac2ffd | [
"MIT"
] | null | null | null | src/models/train_model copy 2.py | gummz/cell | a741ca4900a11f1080b7572ac969f765e5ac2ffd | [
"MIT"
] | null | null | null | src/models/train_model copy 2.py | gummz/cell | a741ca4900a11f1080b7572ac969f765e5ac2ffd | [
"MIT"
] | null | null | null | # from skimage.io import imread
import datetime
import os
import pickle
import sys
from os import mkdir
# from torchsummary import summary
from os.path import join
from time import time
import cv2
import matplotlib.pyplot as plt
import numpy as np
import src.models.utils.utils as utils
import torch
import torch.nn as ... | 35.436658 | 216 | 0.589412 |
9f5c9aa5050959865e3ea2b5411ee28634faf612 | 23,407 | py | Python | sefontmap.py | zcold/sefontpy | 2ac7d130408a4aa14079d9bc566f37850282f443 | [
"MIT"
] | null | null | null | sefontmap.py | zcold/sefontpy | 2ac7d130408a4aa14079d9bc566f37850282f443 | [
"MIT"
] | null | null | null | sefontmap.py | zcold/sefontpy | 2ac7d130408a4aa14079d9bc566f37850282f443 | [
"MIT"
] | null | null | null | # coding: utf-8
# The MIT License (MIT)
# Copyright (c) 2014 by Shuo Li (contact@shuo.li)
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without li... | 29.932225 | 96 | 0.626522 |
9f5d4a00dd65eaeb976bd195b852ee952ce9f96b | 7,060 | py | Python | scripts/vsYaneuraOu_onnx.py | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | 10 | 2019-05-14T12:54:49.000Z | 2022-02-28T12:02:52.000Z | scripts/vsYaneuraOu_onnx.py | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | scripts/vsYaneuraOu_onnx.py | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python3
import os
import sys
# Ayane
script_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(script_dir + "/../../Ayane/source")
import shogi.Ayane as ayane
#
import time
import glob
from natsort import natsorted
from collections import defaultdict
import argparse
from calc_elo_rate i... | 33.459716 | 176 | 0.57847 |
9f5ddea40c81c51e855e2a7038a29cfb3b27c7d8 | 624 | py | Python | tests/snmp/test_snmp_queue.py | jerry-chang3300/sonic-mgmt | 9814959583e491997678f8ad7dc763e408340b77 | [
"Apache-2.0"
] | null | null | null | tests/snmp/test_snmp_queue.py | jerry-chang3300/sonic-mgmt | 9814959583e491997678f8ad7dc763e408340b77 | [
"Apache-2.0"
] | null | null | null | tests/snmp/test_snmp_queue.py | jerry-chang3300/sonic-mgmt | 9814959583e491997678f8ad7dc763e408340b77 | [
"Apache-2.0"
] | null | null | null | import pytest
from ansible_host import AnsibleHost
| 41.6 | 115 | 0.708333 |
9f5e20aa784c2b63c5f46d520cc79ba30f3d2c88 | 2,193 | py | Python | go_OCR.py | matmill5/KenBatcherPP-OCR | a3c6c4e7cdeb21d62e21f4ce7a1d995d22c65947 | [
"MIT"
] | 8 | 2020-03-05T00:52:41.000Z | 2021-05-22T22:35:55.000Z | go_OCR.py | matmill5/KenBatcherPP-OCR | a3c6c4e7cdeb21d62e21f4ce7a1d995d22c65947 | [
"MIT"
] | null | null | null | go_OCR.py | matmill5/KenBatcherPP-OCR | a3c6c4e7cdeb21d62e21f4ce7a1d995d22c65947 | [
"MIT"
] | 4 | 2020-01-29T10:11:25.000Z | 2021-05-22T22:36:02.000Z | # Project Title: Kenneth E. Batcher Historical Work OCR
# Project Description: Project to conduct OCR on the historical work of PP-father Kenneth E. Batcher
# Author: Matthew E. Miller
# Date: 02/01/2020 10:38:31
# Medium: https://medium.com/@matthew_earl_miller (where this is being published)
# Github: https://github... | 47.673913 | 173 | 0.608755 |
9f5eaf32b8e63b4925b030dc531531d8c2e8560a | 6,272 | py | Python | Lib/site-packages/auth/CAS/REST/service.py | srimannaarayana/boxtestpy | 181332102ccbb49dd50ddb31ca875cb9d3adcc2d | [
"bzip2-1.0.6"
] | 55 | 2015-10-16T01:14:33.000Z | 2021-07-07T15:32:04.000Z | Lib/site-packages/auth/CAS/REST/service.py | srimannaarayana/boxtestpy | 181332102ccbb49dd50ddb31ca875cb9d3adcc2d | [
"bzip2-1.0.6"
] | 8 | 2015-10-27T00:54:29.000Z | 2019-03-11T09:01:03.000Z | Lib/site-packages/auth/CAS/REST/service.py | srimannaarayana/boxtestpy | 181332102ccbb49dd50ddb31ca875cb9d3adcc2d | [
"bzip2-1.0.6"
] | 12 | 2015-10-16T14:11:35.000Z | 2021-08-11T07:20:17.000Z |
#try:
# import eventlet
# eventlet.monkey_patch()
#except:
# pass
import falcon
import json
try:
import ujson as json
except ImportError:
pass
from auth.CAS.authorization import Authorization
def stringify(req, resp):
"""
dumps all valid jsons
This is the latest after hook
""... | 30.153846 | 90 | 0.612883 |
9f5f99c5ce8af3711fd17ec410b7454888498c73 | 53,035 | py | Python | flydra_analysis/flydra_analysis/a2/kdviewer.py | liyi2017/flydra | 9ec83f14514f73e660ae8fbda32a3cc0348d0cb4 | [
"Apache-2.0",
"MIT"
] | null | null | null | flydra_analysis/flydra_analysis/a2/kdviewer.py | liyi2017/flydra | 9ec83f14514f73e660ae8fbda32a3cc0348d0cb4 | [
"Apache-2.0",
"MIT"
] | null | null | null | flydra_analysis/flydra_analysis/a2/kdviewer.py | liyi2017/flydra | 9ec83f14514f73e660ae8fbda32a3cc0348d0cb4 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-11-18T07:57:47.000Z | 2019-11-18T07:57:47.000Z | from __future__ import division
if 1:
# deal with old files, forcing to numpy
import tables.flavor
tables.flavor.restrict_flavors(keep=['numpy'])
import os, sys, math
import warnings
import pkg_resources
from tvtk.api import tvtk
from tvtk.common import configure_input_data
import numpy
import numpy as n... | 38.825037 | 165 | 0.535835 |
9f60bdd794cd662cbd883925c8025b2c7bf61851 | 16,921 | py | Python | sdk/python/pulumi_keycloak/custom_identity_provider_mapping.py | davide-talesco/pulumi-keycloak | 08d66be6f2bf578d4292e29eb6181794375bc4e5 | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2020-04-28T15:20:56.000Z | 2022-03-24T18:00:17.000Z | sdk/python/pulumi_keycloak/custom_identity_provider_mapping.py | davide-talesco/pulumi-keycloak | 08d66be6f2bf578d4292e29eb6181794375bc4e5 | [
"ECL-2.0",
"Apache-2.0"
] | 49 | 2020-02-06T17:53:35.000Z | 2022-03-25T19:36:08.000Z | sdk/python/pulumi_keycloak/custom_identity_provider_mapping.py | davide-talesco/pulumi-keycloak | 08d66be6f2bf578d4292e29eb6181794375bc4e5 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-06-09T01:08:56.000Z | 2021-12-07T15:30:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 48.207977 | 361 | 0.671651 |
9f61732eda6d7dac5bbeb9ede36117e8a4a6794b | 2,895 | py | Python | sktime/classification/interval_based/tests/test_stsf.py | tombh/sktime | 53df0b9ed9d1fd800539165c414cc5611bcc56b3 | [
"BSD-3-Clause"
] | 1 | 2020-06-02T22:24:44.000Z | 2020-06-02T22:24:44.000Z | sktime/classification/interval_based/tests/test_stsf.py | abhishek-parashar/sktime | 1dfce6b41c2acdb576acfc04b09d11bf115c92d1 | [
"BSD-3-Clause"
] | 1 | 2020-11-20T13:51:20.000Z | 2020-11-20T13:51:20.000Z | sktime/classification/interval_based/tests/test_stsf.py | abhishek-parashar/sktime | 1dfce6b41c2acdb576acfc04b09d11bf115c92d1 | [
"BSD-3-Clause"
] | 3 | 2020-10-18T04:54:30.000Z | 2021-02-15T18:04:18.000Z | # -*- coding: utf-8 -*-
import numpy as np
from sklearn.model_selection import train_test_split
from sktime.classification.interval_based import SupervisedTimeSeriesForest
from sktime.datasets import load_gunpoint, load_italy_power_demand
# expected y_proba
expected = np.array(
[
[
0.95,
... | 20.531915 | 78 | 0.453541 |
9f64abde377bef464d72b82d8d6a693e8b5b44e8 | 5,883 | py | Python | epidag/fitting/alg/ga.py | TimeWz667/PyEpiDAG | b337922fa7748ec2245e1dc63e032c00a773f0d5 | [
"MIT"
] | 2 | 2019-11-23T08:01:43.000Z | 2019-11-27T22:17:34.000Z | epidag/fitting/alg/ga.py | TimeWz667/PyEpiDAG | b337922fa7748ec2245e1dc63e032c00a773f0d5 | [
"MIT"
] | null | null | null | epidag/fitting/alg/ga.py | TimeWz667/PyEpiDAG | b337922fa7748ec2245e1dc63e032c00a773f0d5 | [
"MIT"
] | null | null | null | from epidag.fitting.alg.fitter import EvolutionaryFitter
from epidag.fitting.alg.genetic import *
from epidag.util import resample
| 34.810651 | 100 | 0.540881 |
9f6530563c3eccbd2034ac0c73cb87871d851924 | 467 | py | Python | start_pylogo_GUI_interpreter.py | obo/loev3go | 763c6cf61133add914d231d07bc8c3c29672aba9 | [
"MIT"
] | 1 | 2018-09-05T20:57:40.000Z | 2018-09-05T20:57:40.000Z | start_pylogo_GUI_interpreter.py | obo/loev3go | 763c6cf61133add914d231d07bc8c3c29672aba9 | [
"MIT"
] | null | null | null | start_pylogo_GUI_interpreter.py | obo/loev3go | 763c6cf61133add914d231d07bc8c3c29672aba9 | [
"MIT"
] | 2 | 2019-10-05T23:02:41.000Z | 2020-06-25T20:21:02.000Z | #!/usr/bin/python
#
# BROKEN
# This script should run the traditional pylogo user inferface.
# It worked well while pylogo was in python2 and relying on python mega widgets
# (Pmw) version 1.3. Pmw1.3 is for python2 only and I don't have the time to
# try getting Pmw2 running (https://pypi.org/project/Pmw/)
#
# remembe... | 33.357143 | 79 | 0.747323 |
9f66bf25f13588e12d600e9f700150fcd272b5f0 | 88 | py | Python | eNMRpy/Measurement/__init__.py | passteinforth/eNMRpy | d32c16295009b3ea56f1fea3e536483c5aa243f9 | [
"BSD-3-Clause"
] | null | null | null | eNMRpy/Measurement/__init__.py | passteinforth/eNMRpy | d32c16295009b3ea56f1fea3e536483c5aa243f9 | [
"BSD-3-Clause"
] | null | null | null | eNMRpy/Measurement/__init__.py | passteinforth/eNMRpy | d32c16295009b3ea56f1fea3e536483c5aa243f9 | [
"BSD-3-Clause"
] | null | null | null | from .Pavel import Pavel
#from .Juergen1 import Juergen1
#print('%s imported'%__name__)
| 22 | 31 | 0.772727 |
9f685261b4f4107d45da7780eb8573f8cc5b37e4 | 54 | py | Python | jigu/transform/tx.py | bongtrop/jigu | 448bce8ce693f3f7c530bea0f2f268e22100937a | [
"MIT"
] | 14 | 2020-03-03T06:46:39.000Z | 2021-05-01T15:29:35.000Z | jigu/transform/tx.py | bongtrop/jigu | 448bce8ce693f3f7c530bea0f2f268e22100937a | [
"MIT"
] | 9 | 2020-03-09T06:36:30.000Z | 2021-02-15T14:40:48.000Z | jigu/transform/tx.py | bongtrop/jigu | 448bce8ce693f3f7c530bea0f2f268e22100937a | [
"MIT"
] | 5 | 2020-05-30T22:38:34.000Z | 2021-02-11T00:56:20.000Z | # TODO: Refactor merge-logging into TxInfoTransformer
| 27 | 53 | 0.833333 |
9f68a8d6b481867b34fa800daa31734a38bea9ac | 25 | py | Python | dlex_impl/image_classification/__init__.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex_impl/image_classification/__init__.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex_impl/image_classification/__init__.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | from .src.models import * | 25 | 25 | 0.76 |
9f6bf303889821547c65beb66af4566c417918d0 | 1,430 | py | Python | scheduled_tasks/get_short_volume.py | lunarnautics/Stocksera | 09c114f588e95be28068af88c525565fdb98f92b | [
"MIT"
] | null | null | null | scheduled_tasks/get_short_volume.py | lunarnautics/Stocksera | 09c114f588e95be28068af88c525565fdb98f92b | [
"MIT"
] | null | null | null | scheduled_tasks/get_short_volume.py | lunarnautics/Stocksera | 09c114f588e95be28068af88c525565fdb98f92b | [
"MIT"
] | null | null | null | import os
import sys
import sqlite3
import yfinance as yf
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from scheduled_tasks.get_popular_tickers import full_ticker_list
from helpers import *
conn = sqlite3.connect(r"database/database.db", check_same_thread=False)
db = conn.cursor()
def short_volum... | 30.425532 | 86 | 0.620979 |
9f6dac5ae82b1ce12288b5d7a2879b4ebd3b8dde | 521 | py | Python | invetronic/wsgi.py | jejimenez/invetronic | 999d58bc0224b6056b16d4e54fefcc81a22e334c | [
"MIT"
] | null | null | null | invetronic/wsgi.py | jejimenez/invetronic | 999d58bc0224b6056b16d4e54fefcc81a22e334c | [
"MIT"
] | null | null | null | invetronic/wsgi.py | jejimenez/invetronic | 999d58bc0224b6056b16d4e54fefcc81a22e334c | [
"MIT"
] | null | null | null | """
WSGI config for invetronic project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os, sys
from django.core.wsgi import get_wsgi_application
path = '/srv/www/vhosts/d... | 21.708333 | 78 | 0.761996 |
9f6de3b19ebc7fc96fbc744700209694000cf876 | 665 | py | Python | data/data/process.py | CarryChang/EasyUse_FastApi | 094c8d9dc8fdb3cf8bf935fa22abcfc86fe678fe | [
"Apache-2.0"
] | 9 | 2020-02-23T02:11:19.000Z | 2022-01-05T09:20:01.000Z | data/data/process.py | CarryChang/EasyUse_FastApi | 094c8d9dc8fdb3cf8bf935fa22abcfc86fe678fe | [
"Apache-2.0"
] | 1 | 2020-11-27T09:08:14.000Z | 2020-11-27T09:08:14.000Z | data/data/process.py | CarryChang/Tetx-CNN-BaseLine | 35a375cc48a91c2248eeae948b9377d2735f1743 | [
"Apache-2.0"
] | 2 | 2020-06-08T11:46:41.000Z | 2020-07-23T09:03:14.000Z | #!/user/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2020/2/13 0013 20:08
# @Author : CarryChang
# @Software: PyCharm
# @email: coolcahng@gmail.com
# @web CarryChang.top
path_list = ['neg_all.txt', 'pos_all.txt']
train_all = open('train_all.txt', 'w', encoding='utf-8')
for path in path_list:
if 'pos' in pa... | 33.25 | 68 | 0.572932 |
9f6de4f781639cfd18a46fd2591bd03dbcbc6064 | 244 | py | Python | dbt/adapters/databricks/column.py | troyel/dbt-databricks | 6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b | [
"Apache-2.0"
] | 38 | 2021-12-06T19:04:57.000Z | 2022-03-28T08:08:14.000Z | dbt/adapters/databricks/column.py | troyel/dbt-databricks | 6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b | [
"Apache-2.0"
] | 36 | 2021-12-07T01:10:50.000Z | 2022-03-31T00:37:25.000Z | dbt/adapters/databricks/column.py | troyel/dbt-databricks | 6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b | [
"Apache-2.0"
] | 11 | 2021-12-06T18:11:33.000Z | 2022-03-22T10:36:15.000Z | from dataclasses import dataclass
from dbt.adapters.spark.column import SparkColumn
| 24.4 | 77 | 0.741803 |
9f6f0bb875094707baeb0ff0fada95870451fa64 | 7,456 | py | Python | moto/cloudtrail/responses.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | moto/cloudtrail/responses.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | 1 | 2022-03-07T07:39:03.000Z | 2022-03-07T07:39:03.000Z | moto/cloudtrail/responses.py | symroe/moto | 4e106995af6f2820273528fca8a4e9ee288690a5 | [
"Apache-2.0"
] | null | null | null | """Handles incoming cloudtrail requests, invokes methods, returns responses."""
import json
from moto.core.responses import BaseResponse
from .models import cloudtrail_backends
from .exceptions import InvalidParameterCombinationException
| 39.036649 | 87 | 0.663358 |
9f701bc08c1c4dfe533065e4d0ee3002ac64f361 | 1,661 | py | Python | c++basic/DATA_STRUCTURES/prime_mult.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | c++basic/DATA_STRUCTURES/prime_mult.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | c++basic/DATA_STRUCTURES/prime_mult.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | from multiprocessing.pool import ThreadPool
import datetime
import numpy as np
import math
IS_PRIME = True
if __name__ == "__main__":
#print(__is_divisible__(5,2))
print("noob:",end="")
method_prime(isPrime_n)
print("good:",end="")
method_prime(isPrime_g)
print("best:",end="")
method_prim... | 20.506173 | 73 | 0.5587 |
9f712f6ff71dc51096f737b9d62d489f37f82586 | 271 | py | Python | wsgi/iportalen_django/tags/admin.py | I-sektionen/i-portalen | 1713e5814d40c0da1bf3278d60a561e7d3df3550 | [
"MIT"
] | 4 | 2016-09-21T17:06:01.000Z | 2018-02-06T16:36:44.000Z | wsgi/iportalen_django/tags/admin.py | I-sektionen/i-portalen | 1713e5814d40c0da1bf3278d60a561e7d3df3550 | [
"MIT"
] | 149 | 2016-03-07T23:50:47.000Z | 2022-03-11T23:16:33.000Z | wsgi/iportalen_django/tags/admin.py | I-sektionen/i-portalen | 1713e5814d40c0da1bf3278d60a561e7d3df3550 | [
"MIT"
] | 1 | 2016-03-07T23:02:06.000Z | 2016-03-07T23:02:06.000Z | from utils.admin import HiddenModelAdmin, iportalen_admin_site, iportalen_superadmin_site
from django.contrib import admin
from .models import Tag
# Register your models here.
iportalen_admin_site.register(Tag, HiddenModelAdmin)
iportalen_superadmin_site.register(Tag)
| 30.111111 | 89 | 0.859779 |
9f72d07184b02fae85ef939999767843755fa8d6 | 261 | py | Python | 2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py | solomonbstoner/solomonbston3r-ctf-diary | 2eb5439b157ca0c97db313c9762c6b5d8a714a85 | [
"Unlicense"
] | 14 | 2018-04-01T00:52:42.000Z | 2020-07-11T06:17:49.000Z | 2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py | solomonbstoner/solomonbston3r-ctf-diary | 2eb5439b157ca0c97db313c9762c6b5d8a714a85 | [
"Unlicense"
] | 5 | 2018-04-03T00:40:58.000Z | 2021-06-02T13:37:43.000Z | 2018/picoCTF_2018/Cryptography/soln_for_magic_padding_oracle.py | solomonbstoner/solomonbston3r-ctf-diary | 2eb5439b157ca0c97db313c9762c6b5d8a714a85 | [
"Unlicense"
] | null | null | null | from pwn import remote
r = remote('2018shell2.picoctf.com', 45008)
r.recvuntil('Here is a sample cookie: ')
encrypted_cookie = r.recvline()[:-1]
for index in range(0, len(encrypted_cookie), 32):
print "%d : %s"%(index, encrypted_cookie[index:index+32])
| 20.076923 | 59 | 0.701149 |
9f74ee1b09a2b7f62368df7e3837e037cb648a61 | 11,277 | py | Python | cloud_functions/big_query.py | aerosense-ai/data-gateway | 019b8e4a114e16d363a3167171a457cefdbf004f | [
"Apache-2.0"
] | null | null | null | cloud_functions/big_query.py | aerosense-ai/data-gateway | 019b8e4a114e16d363a3167171a457cefdbf004f | [
"Apache-2.0"
] | 34 | 2021-12-20T14:51:57.000Z | 2022-03-30T16:47:04.000Z | cloud_functions/big_query.py | aerosense-ai/data-gateway | 019b8e4a114e16d363a3167171a457cefdbf004f | [
"Apache-2.0"
] | null | null | null | import copy
import datetime
import json
import logging
import uuid
from blake3 import blake3
from google.cloud import bigquery
from exceptions import (
ConfigurationAlreadyExists,
InstallationWithSameNameAlreadyExists,
SensorTypeWithSameReferenceAlreadyExists,
)
logger = logging.getLogger(__name__)
SE... | 40.131673 | 233 | 0.632704 |
9f754a28149b1273b74fae075d72f4e2b58600e3 | 234 | py | Python | python/ucc21p2.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T16:02:14.000Z | 2022-01-23T16:02:14.000Z | python/ucc21p2.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 5 | 2022-01-23T00:16:49.000Z | 2022-01-30T04:37:45.000Z | python/ucc21p2.py | ThePeeps191/dmoj-solutions | 7137e945f3f595c481ad4d29e1dc3a77d8b26e55 | [
"MIT"
] | 1 | 2022-01-23T00:03:47.000Z | 2022-01-23T00:03:47.000Z | N = int(input())
current = []
x = []
y = []
nums = [int(a) for a in input().split()]
for n in nums:
if n % 2 != 1:
x.append(n)
else:
current.append(x)
x = []
current.append(x)
for l in current:
y.append(sum(l))
print(max(y)) | 14.625 | 40 | 0.559829 |
9f75ffc9ee2d54982d194078b82ecf06638479b8 | 61 | py | Python | audiotest.py | DeadpoolPancakes/lego-claptrap | fde1359288d0f554f4f36e08e716d1f9754e7c0e | [
"MIT"
] | null | null | null | audiotest.py | DeadpoolPancakes/lego-claptrap | fde1359288d0f554f4f36e08e716d1f9754e7c0e | [
"MIT"
] | null | null | null | audiotest.py | DeadpoolPancakes/lego-claptrap | fde1359288d0f554f4f36e08e716d1f9754e7c0e | [
"MIT"
] | null | null | null | import vlc
p = vlc.MediaPlayer("file: Chirping.mp3")
p.play() | 20.333333 | 41 | 0.721311 |
9f76e95f35a4c7c1699943e77b916e89d7afdfbf | 2,091 | py | Python | src/EnvCNN/Exec/test_model.py | toppic-suite/envcnn | 142d150e65b7fe7018904fa4536d2f1a7ece989d | [
"Apache-2.0"
] | 1 | 2020-05-26T22:54:55.000Z | 2020-05-26T22:54:55.000Z | src/EnvCNN/Exec/test_model.py | toppic-suite/envcnn | 142d150e65b7fe7018904fa4536d2f1a7ece989d | [
"Apache-2.0"
] | null | null | null | src/EnvCNN/Exec/test_model.py | toppic-suite/envcnn | 142d150e65b7fe7018904fa4536d2f1a7ece989d | [
"Apache-2.0"
] | null | null | null | ##Copyright (c) 2014 - 2020, The Trustees of Indiana University.
##
##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 a... | 40.211538 | 105 | 0.780488 |
9f771c23c9697d84a96b2b27ef3d9f1ad26ac3be | 3,067 | py | Python | fri/parameter_searcher.py | lpfann/fri | 518e3b1419b0993272b9507d0dc01eee60afe26a | [
"MIT"
] | 8 | 2017-04-26T13:47:51.000Z | 2020-10-22T00:25:09.000Z | fri/parameter_searcher.py | lpfann/fri | 518e3b1419b0993272b9507d0dc01eee60afe26a | [
"MIT"
] | 77 | 2018-02-26T23:18:58.000Z | 2022-03-01T13:10:09.000Z | fri/parameter_searcher.py | lpfann/fri | 518e3b1419b0993272b9507d0dc01eee60afe26a | [
"MIT"
] | 3 | 2019-04-26T10:17:10.000Z | 2020-04-03T08:51:39.000Z | """
In this class we use hyperparameter search to find parameters needed in our model.
Depending on the input model we sample parameters from a random distribution.
The sampling rate can be increased.
The model with the best internally defined accuracy is picked.
To increase robustness we use cross ... | 28.933962 | 86 | 0.637757 |
9f799372036198fbf2f4c84b3580b761577152f6 | 1,077 | py | Python | src/tests/test_alembic.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/tests/test_alembic.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/tests/test_alembic.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
(c) 2017 - Copyright Red Hat Inc
Authors:
Pierre-Yves Chibon <pingou@pingoured.fr>
"""
from __future__ import unicode_literals, absolute_import
import os
import subprocess
import unittest
import six
REPO_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
if... | 22.914894 | 77 | 0.632312 |
9f7be5ac13d54e991255943765be1a6ff6ff65bc | 335 | py | Python | setup.py | ESS-uzh/geoRpro | ddc9c0a757c72a72685ec203f98a6166bef9331f | [
"MIT"
] | null | null | null | setup.py | ESS-uzh/geoRpro | ddc9c0a757c72a72685ec203f98a6166bef9331f | [
"MIT"
] | 1 | 2022-03-12T00:56:02.000Z | 2022-03-12T00:56:02.000Z | setup.py | ESS-uzh/geoRpro | ddc9c0a757c72a72685ec203f98a6166bef9331f | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='geoRpro',
version='0.1',
description='Library to process geo raster data',
url='https://github.com/ESS-uzh/geoRpro.git',
author='Diego Villamaina',
author_email='diego.villamaina@geo.uzh.ch',
license='MIT',
packages=['geoRpro'],
z... | 27.916667 | 55 | 0.647761 |
9f7c5b8ae437b84529e4ceb74be74fe56162a39d | 792 | py | Python | data-processing/pwpp.py | tjwixtrom/verification | 00b42da31502a06388f826c3de359d07997496dc | [
"BSD-3-Clause"
] | 2 | 2020-03-24T20:30:11.000Z | 2021-08-18T03:11:26.000Z | data-processing/pwpp.py | tjwixtrom/wrf-scripts | 00b42da31502a06388f826c3de359d07997496dc | [
"BSD-3-Clause"
] | 3 | 2018-07-25T16:33:09.000Z | 2018-08-23T14:57:08.000Z | data-processing/pwpp.py | tjwixtrom/wrf-scripts | 00b42da31502a06388f826c3de359d07997496dc | [
"BSD-3-Clause"
] | null | null | null | #!/home/twixtrom/miniconda3/envs/wrfpost/bin/python
import sys
from PWPP import wrfpost
import numpy as np
from metpy.units import units
# import xarray as xr
infile = sys.argv[1]
outfile = sys.argv[2]
variables = ['temp',
'dewpt',
'uwnd',
'vwnd',
'wwnd',
... | 24 | 79 | 0.482323 |
9f7c75b19ac12c78114fee1f62eaa9cce9c12914 | 32,575 | py | Python | gui/routes_neighbours_IF_all.py | ejwillemse/mcarptif_gui | 3af127b75c3de483be22f5741d2c96a87dd58d6e | [
"MIT"
] | 1 | 2020-02-27T04:08:48.000Z | 2020-02-27T04:08:48.000Z | gui/routes_neighbours_IF_all.py | ejwillemse/mcarptif_gui | 3af127b75c3de483be22f5741d2c96a87dd58d6e | [
"MIT"
] | 2 | 2021-06-08T20:36:04.000Z | 2022-01-13T01:50:59.000Z | gui/routes_neighbours_IF_all.py | ejwillemse/mcarptif_gui | 3af127b75c3de483be22f5741d2c96a87dd58d6e | [
"MIT"
] | null | null | null | '''
Created on 05 May 2010
@author: ejwillemse
'''
from copy import deepcopy
#===============================================================================
#
#===============================================================================
#=============================================================... | 58.799639 | 345 | 0.626984 |
9f7daa0048e77d81249f36f7b52f95cdad281cfb | 1,054 | py | Python | wb_common/gsm.py | contactless/wb-common | 401a1bafa1ccf401b79360f577c267128f135db3 | [
"MIT"
] | null | null | null | wb_common/gsm.py | contactless/wb-common | 401a1bafa1ccf401b79360f577c267128f135db3 | [
"MIT"
] | null | null | null | wb_common/gsm.py | contactless/wb-common | 401a1bafa1ccf401b79360f577c267128f135db3 | [
"MIT"
] | 1 | 2021-11-04T09:01:45.000Z | 2021-11-04T09:01:45.000Z | # coding: utf-8
from __future__ import print_function
import os
import subprocess
| 25.095238 | 88 | 0.652751 |
9f7eb4295b30dd333e36fd900eb43d8da500afdd | 400 | py | Python | downloadisimg/__main__.py | yaqoubihafsa/downloadimg | 01e386e4db79faec01ad694d63487b044ea3b9dd | [
"MIT"
] | 2 | 2021-04-26T21:34:25.000Z | 2021-04-29T09:30:46.000Z | downloadisimg/__main__.py | yaqoubihafsa/downloadimg | 01e386e4db79faec01ad694d63487b044ea3b9dd | [
"MIT"
] | null | null | null | downloadisimg/__main__.py | yaqoubihafsa/downloadimg | 01e386e4db79faec01ad694d63487b044ea3b9dd | [
"MIT"
] | 1 | 2021-04-29T11:54:30.000Z | 2021-04-29T11:54:30.000Z | import requests
if __name__ == '__main__':
download(url, file_name)
| 23.529412 | 49 | 0.5675 |
9f8113b4bbb8eca18371b717a2cd4d8f7bc38c2f | 25,128 | py | Python | iucn_sim/misc/transition_rates.py | tobiashofmann88/iucn_extinction_simulator | 9953be13637fbc9c5ec629700dc1d4ee9ad8225c | [
"MIT"
] | 11 | 2020-06-18T11:34:47.000Z | 2021-07-25T17:38:52.000Z | iucn_sim/misc/transition_rates.py | tobiashofmann88/iucn_extinction_simulator | 9953be13637fbc9c5ec629700dc1d4ee9ad8225c | [
"MIT"
] | null | null | null | iucn_sim/misc/transition_rates.py | tobiashofmann88/iucn_extinction_simulator | 9953be13637fbc9c5ec629700dc1d4ee9ad8225c | [
"MIT"
] | 2 | 2020-02-05T19:00:33.000Z | 2021-08-09T21:07:45.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
MCMC-estimation of status transition rates from IUCN record
Created on Mon Oct 28 14:43:44 2019
@author: Tobias Andermann (tobias.andermann@bioenv.gu.se)
"""
import numpy as np
np.set_printoptions(suppress=True)
import pandas as pd
import os,sys
import datetime
from ... | 51.810309 | 509 | 0.681869 |
9f81af9271650118f900c91f75d7a50aaf4a6221 | 23 | py | Python | compiler/sema/inference.py | Youngestdev/viper | 7855dd0f87f54c926caf04b0e21742b1a2646751 | [
"Apache-2.0"
] | 25 | 2019-06-23T15:17:06.000Z | 2020-06-05T22:41:21.000Z | compiler/sema/inference.py | Youngestdev/viper | 7855dd0f87f54c926caf04b0e21742b1a2646751 | [
"Apache-2.0"
] | null | null | null | compiler/sema/inference.py | Youngestdev/viper | 7855dd0f87f54c926caf04b0e21742b1a2646751 | [
"Apache-2.0"
] | 3 | 2019-07-29T16:03:30.000Z | 2019-10-04T15:00:32.000Z | """
Type inference
"""
| 5.75 | 14 | 0.565217 |
9f81c035924075c36830efac17c5f78c6246f6ef | 1,904 | py | Python | AmEl_Tourism/application/routes/actions/admin/user_actions.py | Amirelkanov/AmEl_Tourism | 136445335bd8de4007ff2c7106fd97dd3a6c7bc1 | [
"Apache-2.0"
] | null | null | null | AmEl_Tourism/application/routes/actions/admin/user_actions.py | Amirelkanov/AmEl_Tourism | 136445335bd8de4007ff2c7106fd97dd3a6c7bc1 | [
"Apache-2.0"
] | null | null | null | AmEl_Tourism/application/routes/actions/admin/user_actions.py | Amirelkanov/AmEl_Tourism | 136445335bd8de4007ff2c7106fd97dd3a6c7bc1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
""" User related actions """
from flask import Blueprint, render_template, redirect, abort
from ....data.users import User
from ....extensions.init_models import db
from ....extensions.is_admin_decorator import is_user_admin
# User actions Blueprint registration
user_action... | 35.924528 | 76 | 0.657563 |
9f81da4c63fbbc428e76768743c4b5f29dce19d1 | 4,200 | py | Python | models/eligibility_trace_tf/ai/legacy/maczikasz/tf/ai_self_tf.py | qLience/AI-Pump-for-Underfloor-Heating-systems | 9696f36b59d2821bd5f61b2304b43406d7d9c549 | [
"MIT"
] | 31 | 2018-07-23T17:50:42.000Z | 2022-02-23T18:25:52.000Z | models/eligibility_trace_tf/ai/legacy/maczikasz/tf/ai_self_tf.py | qLience/AI-Pump-for-Underfloor-Heating-systems | 9696f36b59d2821bd5f61b2304b43406d7d9c549 | [
"MIT"
] | null | null | null | models/eligibility_trace_tf/ai/legacy/maczikasz/tf/ai_self_tf.py | qLience/AI-Pump-for-Underfloor-Heating-systems | 9696f36b59d2821bd5f61b2304b43406d7d9c549 | [
"MIT"
] | 9 | 2018-07-23T17:50:45.000Z | 2020-07-31T13:31:14.000Z | import os
import shutil
import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
from future.utils import lmap
HIDDEN_LAYER_SIZE = 30
| 38.888889 | 121 | 0.63119 |
9f8350f70b6f8dafed5548685a85ca086bcc158b | 3,022 | py | Python | tests/base.py | TheSecEng/MarkdownTOC | 7c69137249820dc586fd90b58fca2f34c54f2abc | [
"MIT"
] | null | null | null | tests/base.py | TheSecEng/MarkdownTOC | 7c69137249820dc586fd90b58fca2f34c54f2abc | [
"MIT"
] | 1 | 2020-05-24T11:44:49.000Z | 2020-05-24T11:44:49.000Z | tests/base.py | TheSecEng/MarkdownTOC | 7c69137249820dc586fd90b58fca2f34c54f2abc | [
"MIT"
] | null | null | null | # coding:utf-8
# import os
import re
import sublime
from unittest import TestCase
VERSION = sublime.version()
| 31.154639 | 105 | 0.592323 |
9f85c5b9d85675a45d1e838874bc342de58b5641 | 1,597 | py | Python | jetblack-auth/src/jetblack_auth/server.py | rob-blackbourn/scratch-python | c61582f334726c17bbe23a185e63d913d0151392 | [
"MIT"
] | null | null | null | jetblack-auth/src/jetblack_auth/server.py | rob-blackbourn/scratch-python | c61582f334726c17bbe23a185e63d913d0151392 | [
"MIT"
] | 10 | 2019-12-29T01:55:32.000Z | 2022-02-26T12:45:06.000Z | jetblack-auth/src/jetblack_auth/server.py | rob-blackbourn/scratch-python | c61582f334726c17bbe23a185e63d913d0151392 | [
"MIT"
] | null | null | null | from bareasgi import Application
import bareasgi_jinja2
from easydict import EasyDict as edict
import jinja2
import pkg_resources
import yaml
from .yaml import initialize_types
from .auth_controller import AuthController
from .auth_service import AuthService
from .jwt_authentication import JwtAuthentication
| 28.517857 | 116 | 0.715091 |
9f86a38a2ce9e36d0af46bb971cdb51b127a17b0 | 2,530 | py | Python | appoppy/zernike_mask.py | lbusoni/appoppy | 988670675ade8c49fada185433a79d2c42d41ed6 | [
"MIT"
] | null | null | null | appoppy/zernike_mask.py | lbusoni/appoppy | 988670675ade8c49fada185433a79d2c42d41ed6 | [
"MIT"
] | null | null | null | appoppy/zernike_mask.py | lbusoni/appoppy | 988670675ade8c49fada185433a79d2c42d41ed6 | [
"MIT"
] | null | null | null | import numpy as np
import poppy
from poppy.optics import AnalyticImagePlaneElement
from poppy.poppy_core import Wavefront, PlaneType, BaseWavefront
from astropy import units as u
| 31.625 | 97 | 0.604348 |
9f86f64dde4ad463621a62804a52d5154ebe8162 | 129 | py | Python | src/models/backtest/__init__.py | webclinic017/advisor_app | 9cdab4aca19e193850943ef8308bad5c5ea0415d | [
"MIT"
] | null | null | null | src/models/backtest/__init__.py | webclinic017/advisor_app | 9cdab4aca19e193850943ef8308bad5c5ea0415d | [
"MIT"
] | null | null | null | src/models/backtest/__init__.py | webclinic017/advisor_app | 9cdab4aca19e193850943ef8308bad5c5ea0415d | [
"MIT"
] | null | null | null | from .A1 import get_ticker_data, calc_moving_average, ma_backtest, plot
from .vectorized_backtest import The_Vectorized_Backtest
| 43 | 71 | 0.875969 |
9f88024724e132d6e230582a3eb5f4b5557d2188 | 144 | py | Python | linking/admin.py | thodel/heraldik | 5be41c9a63f971723f8601757d554a4759eba48e | [
"MIT"
] | null | null | null | linking/admin.py | thodel/heraldik | 5be41c9a63f971723f8601757d554a4759eba48e | [
"MIT"
] | 1 | 2020-06-16T10:12:48.000Z | 2020-06-17T11:58:14.000Z | linking/admin.py | thodel/heraldik | 5be41c9a63f971723f8601757d554a4759eba48e | [
"MIT"
] | 1 | 2020-06-16T09:50:58.000Z | 2020-06-16T09:50:58.000Z | from django.contrib import admin
from .models import NormEntry, MissingEntry
admin.site.register(NormEntry)
admin.site.register(MissingEntry)
| 20.571429 | 43 | 0.833333 |
9f890cd882c237997b0c743b4908f9bf3d495cd8 | 2,192 | py | Python | csv_to_plots.py | koshini/polya-social-contagion | ad3915a59611589160e5c7f5e6a1d82489e6e1b2 | [
"MIT"
] | null | null | null | csv_to_plots.py | koshini/polya-social-contagion | ad3915a59611589160e5c7f5e6a1d82489e6e1b2 | [
"MIT"
] | 1 | 2019-04-03T20:45:05.000Z | 2019-04-07T18:06:13.000Z | csv_to_plots.py | koshini/polya-social-contagion | ad3915a59611589160e5c7f5e6a1d82489e6e1b2 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
strat_list = []
topology = 'facebook'
folder = 'pre-cured-equal/'
strat_list.append({
'red_strat': 'bot',
'black_strat': 'uniform',
})
strat_list.append({
'red_strat': 'bot',
'black_strat': 'pure_centrality_threshold',
})
strat_list.append({
're... | 27.4 | 133 | 0.667427 |
9f898b3b762422949258d1f7a15923f41bef3e41 | 3,049 | py | Python | examples/apps/python/com/nvidia/spark/examples/taxi/pre_process.py | acaldwell-pixel/spark-xgboost-examples | 01996046413a7666f8730464ea85ccf26d646171 | [
"Apache-2.0"
] | 48 | 2020-06-11T07:49:47.000Z | 2022-03-27T13:57:41.000Z | examples/apps/python/com/nvidia/spark/examples/taxi/pre_process.py | acaldwell-pixel/spark-xgboost-examples | 01996046413a7666f8730464ea85ccf26d646171 | [
"Apache-2.0"
] | 23 | 2020-06-11T07:51:42.000Z | 2021-12-10T19:04:48.000Z | examples/apps/python/com/nvidia/spark/examples/taxi/pre_process.py | acaldwell-pixel/spark-xgboost-examples | 01996046413a7666f8730464ea85ccf26d646171 | [
"Apache-2.0"
] | 26 | 2020-06-11T06:55:15.000Z | 2021-09-06T08:28:01.000Z | #
# Copyright (c) 2019, NVIDIA CORPORATION. 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 applicab... | 32.784946 | 94 | 0.652673 |
9f8d02f1cbdcab45e866434955bba41b200ffdf4 | 977 | py | Python | psq/storage.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 210 | 2015-07-29T16:50:01.000Z | 2022-03-02T15:24:52.000Z | psq/storage.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 60 | 2015-12-03T23:15:57.000Z | 2021-01-21T09:25:42.000Z | psq/storage.py | Tomesco/bookshelf-demo-project | 9d422f3aa04edbb3312d3e177caf699653ed6a73 | [
"Apache-2.0"
] | 47 | 2015-12-21T06:09:36.000Z | 2021-09-04T13:20:21.000Z | # Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.516129 | 75 | 0.716479 |
9f8d2b5e9874c1c6314b2c9e8593fcd0669de315 | 2,045 | py | Python | ocean_lib/web3_internal/test/test_contract_base.py | PosthumanMarket/ocean.py | e53f31934722ada2d3ff7d6d6fc18b82d9fa1790 | [
"Apache-2.0"
] | null | null | null | ocean_lib/web3_internal/test/test_contract_base.py | PosthumanMarket/ocean.py | e53f31934722ada2d3ff7d6d6fc18b82d9fa1790 | [
"Apache-2.0"
] | null | null | null | ocean_lib/web3_internal/test/test_contract_base.py | PosthumanMarket/ocean.py | e53f31934722ada2d3ff7d6d6fc18b82d9fa1790 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
import pytest
from ocean_lib.ocean.util import to_base_18
from ocean_lib.web3_internal.contract_base import ContractBase
from ocean_lib.web3_internal.contract_handler import ContractHandler
from ocean_lib.web3_internal.wallet import Wal... | 32.460317 | 81 | 0.733007 |
9f8d721fb908b7279e3d665b4c472cbbf4668ed1 | 2,207 | py | Python | lyricsbot/domains/genius/genius.py | Kermitofx/lyricsbot | 2338ccbdf91ae17030b5d2c5c49bae8e5dea3c92 | [
"MIT"
] | 6 | 2019-12-21T20:17:43.000Z | 2021-04-21T12:41:15.000Z | lyricsbot/domains/genius/genius.py | Kermitofx/lyricsbot | 2338ccbdf91ae17030b5d2c5c49bae8e5dea3c92 | [
"MIT"
] | 97 | 2019-07-29T21:06:34.000Z | 2021-07-29T03:16:25.000Z | lyricsbot/domains/genius/genius.py | anastasia-bilova/lyricsbot | 215d0d71755ae2296f28eee9d0e18efc708c10dd | [
"MIT"
] | 3 | 2020-05-03T09:11:18.000Z | 2021-04-13T04:55:18.000Z | """
Get the song lyrics via users' data from genius.com.
"""
import requests
from bs4 import BeautifulSoup
try:
from domains.genius.config import GENIUS_DOWNLOAD_URL
from domains.genius.utils import (
make_suitable_url_parameters,
remove_punctuation_symbols,
)
from domains.songlyrics.so... | 29.824324 | 86 | 0.746262 |
9f8db4407bcccc114bf3d2c11d7ac00daed1c46e | 451 | py | Python | vim/vimfiles/python3/vim_custom_actions.py | sharat87/lawn | 758a0d442eba66a802295ad694d6b31a1d4c5549 | [
"MIT"
] | 5 | 2015-02-03T15:01:37.000Z | 2021-06-07T05:20:31.000Z | vim/vimfiles/python3/vim_custom_actions.py | sharat87/lawn | 758a0d442eba66a802295ad694d6b31a1d4c5549 | [
"MIT"
] | null | null | null | vim/vimfiles/python3/vim_custom_actions.py | sharat87/lawn | 758a0d442eba66a802295ad694d6b31a1d4c5549 | [
"MIT"
] | 2 | 2016-04-15T16:04:27.000Z | 2016-09-12T07:43:30.000Z | import vim
# Setup `vartabstop` so that columns line up.
vim.command('command! TabsLineUp py3 ' + __name__ + '.tabs_line_up()')
| 26.529412 | 98 | 0.5898 |
9f8e9e3452f88786221265e70d18d375315b68a1 | 2,397 | py | Python | RiverSizes/river_sizes_example.py | ulrickpsp/InterviewQuestions | 915f0270553b6fe0dd32504caed4f0cb9aad48f8 | [
"MIT"
] | null | null | null | RiverSizes/river_sizes_example.py | ulrickpsp/InterviewQuestions | 915f0270553b6fe0dd32504caed4f0cb9aad48f8 | [
"MIT"
] | null | null | null | RiverSizes/river_sizes_example.py | ulrickpsp/InterviewQuestions | 915f0270553b6fe0dd32504caed4f0cb9aad48f8 | [
"MIT"
] | null | null | null | # You are given a two-dimensional array of potentially unequal height and width.
# It contains only 0s and 1s. This array represents a map: 0s are land, and 1s are water.
# A "river" on this map consists of any number of contiguous, adjacent water squares,
# where "adjacent" means "above", "below", "to the left of",... | 34.73913 | 139 | 0.583646 |
9f9031c94032aa9615c2643ade9e484c1f892e05 | 4,795 | py | Python | accounts/migrations/0024_auto_20170814_1542.py | enrobyn/lookit-api | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | [
"MIT"
] | null | null | null | accounts/migrations/0024_auto_20170814_1542.py | enrobyn/lookit-api | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | [
"MIT"
] | null | null | null | accounts/migrations/0024_auto_20170814_1542.py | enrobyn/lookit-api | 621fbb8b25100a21fd94721d39003b5d4f651dc5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-14 15:42
from __future__ import unicode_literals
from django.db import migrations, models
import django_countries.fields
import multiselectfield.db.fields
| 61.474359 | 581 | 0.58123 |
9f90dce216cd6a9d28853182b97519922737f125 | 485 | py | Python | backend/api/v1/Datasets.py | JanVargovsky/masters-thesis | f12e323a2f2079b9b5f9618d10ed3f56a20b271a | [
"MIT"
] | 4 | 2019-03-15T09:00:12.000Z | 2020-02-14T07:12:23.000Z | backend/api/v1/Datasets.py | JanVargovsky/masters-thesis | f12e323a2f2079b9b5f9618d10ed3f56a20b271a | [
"MIT"
] | 2 | 2020-01-28T22:36:42.000Z | 2020-09-25T23:17:44.000Z | backend/api/v1/Datasets.py | JanVargovsky/masters-thesis | f12e323a2f2079b9b5f9618d10ed3f56a20b271a | [
"MIT"
] | null | null | null | from flask_restplus import Namespace, Resource, fields, marshal_with
from infrastructure.DatasetUtils import get_datasets
api = Namespace('datasets')
resource_fields = {
'name': fields.String,
'type': fields.String,
'size': fields.Integer,
'createdAt': fields.DateTime('iso8601'),
'lastModifiedAt'... | 23.095238 | 68 | 0.709278 |
9f90e0c5367fcd27888e14d6b517367703fbef4d | 946 | py | Python | airtech/helpers/tickets_notification.py | sam-karis/airtech | 8e1cd7a9821719d27db046218625d70daaa46139 | [
"MIT"
] | null | null | null | airtech/helpers/tickets_notification.py | sam-karis/airtech | 8e1cd7a9821719d27db046218625d70daaa46139 | [
"MIT"
] | 4 | 2021-03-18T23:42:26.000Z | 2022-02-10T12:36:23.000Z | airtech/helpers/tickets_notification.py | sam-karis/airtech | 8e1cd7a9821719d27db046218625d70daaa46139 | [
"MIT"
] | null | null | null | from datetime import date, datetime, timedelta
from airtech.apps.tickets.models import Ticket
| 37.84 | 65 | 0.714588 |
9f93196157c117799439d265aa74b2356c4ef5e1 | 19 | py | Python | pylut/__init__.py | ardhitama/pylut | c40ad2be9c5698fff9a8e034462130e2bf9f8ced | [
"MIT"
] | 93 | 2015-01-15T15:34:08.000Z | 2021-11-04T08:09:28.000Z | pylut/__init__.py | ardhitama/pylut | c40ad2be9c5698fff9a8e034462130e2bf9f8ced | [
"MIT"
] | 7 | 2016-12-15T16:33:45.000Z | 2019-11-22T22:08:19.000Z | pylut/__init__.py | ardhitama/pylut | c40ad2be9c5698fff9a8e034462130e2bf9f8ced | [
"MIT"
] | 33 | 2015-04-26T15:45:10.000Z | 2021-06-21T16:13:11.000Z | from pylut import * | 19 | 19 | 0.789474 |
9f934cb5a2a3ed20f9d360c7330c91bdf7345d36 | 1,029 | py | Python | src/warp.py | yashgorana/lane-detection-advanced | 83201bc275e7a767220fb478dd902e3b96b39e68 | [
"MIT"
] | 1 | 2021-07-01T12:45:26.000Z | 2021-07-01T12:45:26.000Z | src/warp.py | yashgorana/lane-detection-advanced | 83201bc275e7a767220fb478dd902e3b96b39e68 | [
"MIT"
] | null | null | null | src/warp.py | yashgorana/lane-detection-advanced | 83201bc275e7a767220fb478dd902e3b96b39e68 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
| 36.75 | 80 | 0.649174 |
9f93c98abb0b91b0a7fddf973c3d2b81cec9e629 | 671 | py | Python | djangobb_forum/decorators.py | dboczek/DjangoBB | 80c42274839714f0cc6c4529ba1b44ae5e4e03c1 | [
"BSD-3-Clause"
] | null | null | null | djangobb_forum/decorators.py | dboczek/DjangoBB | 80c42274839714f0cc6c4529ba1b44ae5e4e03c1 | [
"BSD-3-Clause"
] | null | null | null | djangobb_forum/decorators.py | dboczek/DjangoBB | 80c42274839714f0cc6c4529ba1b44ae5e4e03c1 | [
"BSD-3-Clause"
] | null | null | null | from django.utils.decorators import available_attrs
from functools import wraps
def require_unbanned_user(view_func):
"""
Marks view function to be checked by Ban middleware
"""
wrapped_view._unbanned_user_requirement = True
return wraps(view_func, assigned=available_attrs(view_func))(wrapped_view... | 44.733333 | 172 | 0.450075 |
9f960b48b34eeaa3db6455744a61a292fbb4f6b1 | 1,609 | py | Python | maoyantop100/spider.py | agandong4/some_simple_demos | 5e95359e8d002a74fc11d6173f79ffb6a7d0c415 | [
"MIT"
] | 2 | 2019-05-11T10:52:24.000Z | 2019-05-11T10:52:29.000Z | maoyantop100/spider.py | agandong4/some_simple_demos | 5e95359e8d002a74fc11d6173f79ffb6a7d0c415 | [
"MIT"
] | null | null | null | maoyantop100/spider.py | agandong4/some_simple_demos | 5e95359e8d002a74fc11d6173f79ffb6a7d0c415 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
'''
@author: agandong4
@license: (C) Copyright 2013-2019, Node Supply Chain Manager Corporation Limited.
@contact: agandong4@gmail.com
@software: garner
@file: spider.py
@time: 2019-03-12 21:39
@desc:
'''
import requests
from requests.exceptions import RequestException
import re... | 26.816667 | 89 | 0.566812 |
9f9618c1cd60f827df7acaa7d06b275554086411 | 15,627 | py | Python | arne_application/scripts/application.py | fzi-forschungszentrum-informatik/ArNe | c542ae65393fc61c0d3833142f035cbb05f43c12 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2022-02-19T00:09:15.000Z | 2022-03-13T13:33:36.000Z | arne_application/scripts/application.py | fzi-forschungszentrum-informatik/ArNe | c542ae65393fc61c0d3833142f035cbb05f43c12 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | arne_application/scripts/application.py | fzi-forschungszentrum-informatik/ArNe | c542ae65393fc61c0d3833142f035cbb05f43c12 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
################################################################################
# Copyright 2022 FZI Research Center for Information Technology
#
# 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... | 47.788991 | 138 | 0.587573 |
9f96ec50aeeb83da3c3e033942a91093292200e6 | 1,244 | py | Python | string/myAtoi.py | ZeddShi/alg-py | f491dbf92bf7ddf0ac159d1ccfa1f716e458699f | [
"MIT"
] | null | null | null | string/myAtoi.py | ZeddShi/alg-py | f491dbf92bf7ddf0ac159d1ccfa1f716e458699f | [
"MIT"
] | null | null | null | string/myAtoi.py | ZeddShi/alg-py | f491dbf92bf7ddf0ac159d1ccfa1f716e458699f | [
"MIT"
] | null | null | null | # atoi
#
#
#
#
#
# 0
#
# ' '
# 32 [2**31, 2**31 1] INT_MAX (231 1) INT_MIN (231)
| 23.037037 | 109 | 0.599678 |
9f9a0b61ff32757836168968077b2a2899c33f18 | 1,635 | py | Python | myQuery.py | enessayaci/semantic-web | c63b3fc57918cedb5716902e7b4d6706dfefb473 | [
"Apache-2.0"
] | null | null | null | myQuery.py | enessayaci/semantic-web | c63b3fc57918cedb5716902e7b4d6706dfefb473 | [
"Apache-2.0"
] | null | null | null | myQuery.py | enessayaci/semantic-web | c63b3fc57918cedb5716902e7b4d6706dfefb473 | [
"Apache-2.0"
] | null | null | null | import owl as owl
import rdflib
import json
from flask import Flask, render_template, jsonify, request
from rdflib.plugins.sparql import prepareQuery
from rdflib.graph import Graph
| 31.442308 | 97 | 0.439755 |
9f9b358a6c94e4d5c207b9a1c485f3b1e6bc8098 | 1,254 | py | Python | sipnpuff.py | caternuson/SipPuff | 9ce40b723e60d960e723723209fa281008d2cdbc | [
"MIT"
] | null | null | null | sipnpuff.py | caternuson/SipPuff | 9ce40b723e60d960e723723209fa281008d2cdbc | [
"MIT"
] | null | null | null | sipnpuff.py | caternuson/SipPuff | 9ce40b723e60d960e723723209fa281008d2cdbc | [
"MIT"
] | null | null | null | import time
import board, busio
import adafruit_mprls
i2c = busio.I2C(board.SCL, board.SDA)
mpr = adafruit_mprls.MPRLS(i2c)
THRESH_LOW = 10 # delta in hPa
THRESH_HIGH = 10 # delta in hPa
sip_threshold , puff_threshold = pressure_sensor_init()
puff_count = sip_count = 0
while True:
# driver checks conversio... | 26.125 | 80 | 0.614035 |
9f9b483831d904f63ca10a7706e23f7bc9e79b98 | 6,432 | py | Python | onapy/detector3d.py | xiong-jie-y/onapy | 50b588d014dc24cd4876c784c8e69fba4eaf547e | [
"MIT"
] | 6 | 2021-03-23T14:44:33.000Z | 2021-03-24T05:37:20.000Z | onapy/detector3d.py | xiong-jie-y/onapy | 50b588d014dc24cd4876c784c8e69fba4eaf547e | [
"MIT"
] | null | null | null | onapy/detector3d.py | xiong-jie-y/onapy | 50b588d014dc24cd4876c784c8e69fba4eaf547e | [
"MIT"
] | null | null | null | from collections import deque
from onapy.tracker2d import TrackDetectionFusedTracker
from onapy.tracker3d import create_tracker, get_tracker_names
import time
import click
import cv2
(major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.')
print(cv2.__version__)
import cupoch as cph
from mmcv.runner impor... | 36.545455 | 154 | 0.603078 |
9f9b48d238653cbf09af61f06eb06f93e9aa168a | 589 | py | Python | cookbook/c05/p12_file_existence.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 3 | 2018-09-19T06:44:13.000Z | 2019-03-24T10:07:07.000Z | cookbook/c05/p12_file_existence.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 2 | 2020-09-19T17:10:23.000Z | 2020-10-17T16:43:52.000Z | cookbook/c05/p12_file_existence.py | itpubs/python3-cookbook | 140f5e4cc0416b9674edca7f4c901b1f58fc1415 | [
"Apache-2.0"
] | 1 | 2020-12-22T06:33:18.000Z | 2020-12-22T06:33:18.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic:
Desc :
"""
import os
import time
if __name__ == '__main__':
file_existence()
| 21.035714 | 54 | 0.643463 |
9f9b4f0f33e21d243eae3ca45dd06f35ddd37214 | 2,600 | py | Python | faceR/camera/opencv_capture.py | hritools/faceR | 8f701ea68515927163d5904d58262d1b480a9a97 | [
"MIT"
] | null | null | null | faceR/camera/opencv_capture.py | hritools/faceR | 8f701ea68515927163d5904d58262d1b480a9a97 | [
"MIT"
] | null | null | null | faceR/camera/opencv_capture.py | hritools/faceR | 8f701ea68515927163d5904d58262d1b480a9a97 | [
"MIT"
] | null | null | null | import time
import cv2
import logging
import signal
from threading import Thread, Lock, Condition
import cv2
import numpy
| 27.956989 | 104 | 0.621154 |
9f9bac0b24cd45a3614c9156e5a9c1d00d9e9aab | 2,207 | py | Python | test.py | StephaneBranly/Morse-tool | 606f734c70d51afe92beadd0c2831db0c92d5cd3 | [
"MIT"
] | 2 | 2021-05-28T23:14:33.000Z | 2021-05-28T23:15:05.000Z | test.py | StephaneBranly/Morse-tool | 606f734c70d51afe92beadd0c2831db0c92d5cd3 | [
"MIT"
] | null | null | null | test.py | StephaneBranly/Morse-tool | 606f734c70d51afe92beadd0c2831db0c92d5cd3 | [
"MIT"
] | null | null | null | import pyaudio
import time
import numpy as np
from matplotlib import pyplot as plt
import scipy.signal as signal
print("Start run")
CHANNELS = 1
RATE = 44000
p = pyaudio.PyAudio()
fulldata = np.array([])
dry_data = np.array([])
main()
| 23.231579 | 57 | 0.56638 |
9f9c7e7500eea3f7aa0a8f93c32f67e3d1104c16 | 7,102 | py | Python | film_mapper.py | yuriynefedov/Film-Mapper | 96e39f953ec508458c6925ce77c365f6f38bb0d8 | [
"MIT"
] | null | null | null | film_mapper.py | yuriynefedov/Film-Mapper | 96e39f953ec508458c6925ce77c365f6f38bb0d8 | [
"MIT"
] | null | null | null | film_mapper.py | yuriynefedov/Film-Mapper | 96e39f953ec508458c6925ce77c365f6f38bb0d8 | [
"MIT"
] | 1 | 2021-03-13T17:22:41.000Z | 2021-03-13T17:22:41.000Z | """
Film Mapper Module
Use this module to map the nearest movie filming spots for any location and year.
(c) Yuriy Nefedov
"""
import random
import pandas
import folium
import geopy
from haversine import haversine
geolocator = geopy.Nominatim(user_agent="UCU OP Lab 2 Nefedov")
CLOSEST_FILENAME = "closest10.csv"... | 33.658768 | 141 | 0.618558 |
9f9d2bcfaec5fec0db150520a4bddebb50943355 | 13,291 | py | Python | inventory/inventory/doctype/packing_list_receipt_validator/packing_list_receipt_validator.py | riconova92/inventory | 7cc4f49bda31f802af36ee4ea6eb43092b5094a7 | [
"MIT"
] | null | null | null | inventory/inventory/doctype/packing_list_receipt_validator/packing_list_receipt_validator.py | riconova92/inventory | 7cc4f49bda31f802af36ee4ea6eb43092b5094a7 | [
"MIT"
] | null | null | null | inventory/inventory/doctype/packing_list_receipt_validator/packing_list_receipt_validator.py | riconova92/inventory | 7cc4f49bda31f802af36ee4ea6eb43092b5094a7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Myme and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.model.mapper import get_mapped_doc
form_grid_templates = {
"packing_list_data_unchecked": ... | 38.749271 | 276 | 0.7323 |
9f9e0a660afee78b6e980996074f3fbe9f51b59d | 1,769 | py | Python | sessions/session_18.py | pavanmaradia/202102-Python-Django-Training | 6ce836009acf037a921b7439a6edda7fc8370dcb | [
"MIT"
] | 1 | 2021-02-09T16:14:36.000Z | 2021-02-09T16:14:36.000Z | sessions/session_18.py | pavanmaradia/202102-Python-Django-Training | 6ce836009acf037a921b7439a6edda7fc8370dcb | [
"MIT"
] | null | null | null | sessions/session_18.py | pavanmaradia/202102-Python-Django-Training | 6ce836009acf037a921b7439a6edda7fc8370dcb | [
"MIT"
] | null | null | null | """
Built in functions
String related Functions,
upper, lower, title, capitalize, join, split
Integer related Functions,
abs, round, pow, div, divmod
Data Structure related Functions
min, max, count,len, zip, sorted
Common Functions,
sum, id, input, type, isinstance, prin... | 22.679487 | 110 | 0.600339 |
9f9f6ed4062d3fb884261ba304b1d36cac1c6c2a | 2,536 | py | Python | src/tf_utils/nested_multilevel_attn.py | yicheng-w/fictional-garbanzo | af3e139b5d8f7d54673afe760bc35b012265fd01 | [
"MIT"
] | 127 | 2018-09-17T22:02:03.000Z | 2022-03-21T03:23:49.000Z | src/tf_utils/nested_multilevel_attn.py | yicheng-w/fictional-garbanzo | af3e139b5d8f7d54673afe760bc35b012265fd01 | [
"MIT"
] | 15 | 2019-11-02T11:48:35.000Z | 2020-11-13T17:37:07.000Z | src/tf_utils/nested_multilevel_attn.py | yicheng-w/fictional-garbanzo | af3e139b5d8f7d54673afe760bc35b012265fd01 | [
"MIT"
] | 32 | 2018-09-18T11:34:53.000Z | 2021-09-25T22:02:27.000Z | import tensorflow as tf
from tensorflow.contrib.seq2seq import AttentionMechanism
from tensorflow.contrib.seq2seq.python.ops.attention_wrapper import\
_prepare_memory
| 35.222222 | 85 | 0.635647 |
9fa06103ea6d239f2895004e7c80a2c4a86e4145 | 895 | py | Python | camera_calibration.py | karata-sc/CameraCalibrateSample | 870150f98465639c577cdf13a0a84f40c8c60bfa | [
"BSD-3-Clause"
] | null | null | null | camera_calibration.py | karata-sc/CameraCalibrateSample | 870150f98465639c577cdf13a0a84f40c8c60bfa | [
"BSD-3-Clause"
] | null | null | null | camera_calibration.py | karata-sc/CameraCalibrateSample | 870150f98465639c577cdf13a0a84f40c8c60bfa | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import cv2
# camera matrix
mtx = [[647.048823, 0.000000, 326.544754], [0.000000, 645.959963, 234.463113], [0.000000, 0.000000, 1.000000]]
# distortion
dist = [0.026716, -0.114498, 0.001072, -0.004303,0.000000]... | 23.552632 | 110 | 0.546369 |
9fa3a50343401ecfadbc6203478370db57506753 | 1,125 | py | Python | 0347. Top K Frequent Elements/solution_min_heap.py | furutuki/LeetCodeSolution | db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53 | [
"MIT"
] | null | null | null | 0347. Top K Frequent Elements/solution_min_heap.py | furutuki/LeetCodeSolution | db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53 | [
"MIT"
] | null | null | null | 0347. Top K Frequent Elements/solution_min_heap.py | furutuki/LeetCodeSolution | db5e6573d0c907dfa3e6ad5e5b3b5ff9944a4f53 | [
"MIT"
] | null | null | null | from typing import List
import heapq
s = Solution()
print(s.topKFrequent([1,1,1,2,2,3], 2))
print(s.topKFrequent([1], 1)) | 23.93617 | 65 | 0.511111 |
9fa767f31a30fc774a163edb112d1493c79a7fd2 | 4,864 | py | Python | tron/Parsing/args.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | tron/Parsing/args.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | tron/Parsing/args.py | sdss/tron | 886c5c5fb6341ad85e4a9f5d6f5ecb6bbc0d8322 | [
"BSD-3-Clause"
] | null | null | null | __all__ = ['parseArgs', 'match']
import re
from collections import OrderedDict
from tron import Misc
from .Exceptions import ParseException
from .keys import eatAString
# Match " key = STUFF"
arg_re = re.compile(
r"""
^\s* # Ignore leading space
(?P<key>[a-z_][a-z0-9_-]*) # Mat... | 25.465969 | 97 | 0.545847 |
9faae556022f924fb8b4e582dc35ca58114cda0a | 1,496 | py | Python | test/test_strategy.py | cantona/futu_algo | 6045973e1d75b86b704aaf78b855fe550dccdb9e | [
"Apache-2.0"
] | 1 | 2021-05-31T22:09:48.000Z | 2021-05-31T22:09:48.000Z | test/test_strategy.py | TrueMatthewKirkham/futu_algo | 81914b3d7b098f3d42aa98f85f019b9c7f87d05f | [
"Apache-2.0"
] | null | null | null | test/test_strategy.py | TrueMatthewKirkham/futu_algo | 81914b3d7b098f3d42aa98f85f019b9c7f87d05f | [
"Apache-2.0"
] | null | null | null | # Futu Algo: Algorithmic High-Frequency Trading Framework
# Copyright (c) billpwchan - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
# Written by Bill Chan <billpwchan@hotmail.com>, 2021
import unittest
import pandas as pd
from str... | 36.487805 | 91 | 0.692513 |
9fab4add1fd28e2d4b54104e9ed22b881f8cae66 | 5,916 | py | Python | adminapp/views.py | habibaudu/Elite | 3f48a7cd2f9058c20aea6d3a4d626f7ccac84072 | [
"MIT"
] | null | null | null | adminapp/views.py | habibaudu/Elite | 3f48a7cd2f9058c20aea6d3a4d626f7ccac84072 | [
"MIT"
] | 1 | 2021-03-19T05:13:22.000Z | 2021-03-19T05:13:22.000Z | adminapp/views.py | habibaudu/Elite | 3f48a7cd2f9058c20aea6d3a4d626f7ccac84072 | [
"MIT"
] | null | null | null | import jwt
from django.conf import settings
from rest_framework.status import (HTTP_200_OK, HTTP_400_BAD_REQUEST,
HTTP_401_UNAUTHORIZED)
from rest_framework import viewsets
from django.contrib.auth.hashers import check_password
from adminapp.models import (Admin)
from adminapp.seriali... | 40.520548 | 110 | 0.5524 |
9fabac7aa4d3c0886cddf6e4a7f52e61fb1a4602 | 1,972 | py | Python | paper-code/tensorflow_src/logME.py | DengBoCong/nlp-paper | 89c5338efda9c1379e7ef6f275a2f3d55d62ea39 | [
"Apache-2.0"
] | 478 | 2020-10-28T01:30:30.000Z | 2022-03-30T06:34:07.000Z | paper-code/tensorflow_src/logME.py | DengBoCong/paper | 25dd316d8b4b47363bd611bbabca6a5e3fd09cba | [
"Apache-2.0"
] | 1 | 2021-08-29T11:55:09.000Z | 2021-11-04T09:25:19.000Z | paper-code/tensorflow_src/logME.py | DengBoCong/paper | 25dd316d8b4b47363bd611bbabca6a5e3fd09cba | [
"Apache-2.0"
] | 89 | 2021-01-05T06:11:55.000Z | 2022-03-24T12:51:57.000Z | import tensorflow as tf
from numba import njit
import numpy as np
# D = 20, N = 50
f_tmp = np.random.randn(20, 50).astype(np.float64)
each_evidence(np.random.randint(0, 2, 50).astype(np.float64), f_tmp, f_tmp.transpose(),
np.eye(20, dtype=np.float64), np.ones(20, dtype=np.float64), np.eye(20, dtype=n... | 29.878788 | 110 | 0.500507 |
9fae4767c50f4f35b038b3946366e439d2f826d9 | 5,616 | py | Python | scripts/signin.py | bhrt96/e-Learning-Portal | 5ca4d7cc355999ddfcb2cfff18d9832d555cc081 | [
"MIT"
] | null | null | null | scripts/signin.py | bhrt96/e-Learning-Portal | 5ca4d7cc355999ddfcb2cfff18d9832d555cc081 | [
"MIT"
] | null | null | null | scripts/signin.py | bhrt96/e-Learning-Portal | 5ca4d7cc355999ddfcb2cfff18d9832d555cc081 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import cgi
import MySQLdb
import Cookie
import datetime
import random
cookie = Cookie.SimpleCookie()
cookie["session"] = random.randint(1,1000000)
expires = datetime.datetime.now() + datetime.timedelta(days=1)
cookie["session"]["expires"] = expires.strftime('%a, %d %b %Y %H:%M:%S') # Wdy, DD-Mon-YY... | 39.272727 | 145 | 0.497863 |
9faeeec0429ec597dcc9a08ebd24b97f34ccbd92 | 1,796 | py | Python | rose/tests/test_profile.py | good-praxis/pronoun-discord-bot | c0c2a2bf7c902550dd03767dd80c563fdb620aac | [
"MIT"
] | 1 | 2018-07-05T18:24:18.000Z | 2018-07-05T18:24:18.000Z | rose/tests/test_profile.py | VulpineCat/pronoun-discord-bot | c0c2a2bf7c902550dd03767dd80c563fdb620aac | [
"MIT"
] | 76 | 2018-12-09T15:59:12.000Z | 2021-07-26T04:16:04.000Z | rose/tests/test_profile.py | VulpineCat/pronoun-discord-bot | c0c2a2bf7c902550dd03767dd80c563fdb620aac | [
"MIT"
] | null | null | null | import rose.profile.profile as prof
import rose.profile.fields as fields
| 43.804878 | 119 | 0.666481 |
9fafa0deb45966ae41b8eda8c2b724569bb49865 | 5,578 | py | Python | mirlo.py | mike-thon/mirlo | 8e8fd538c44e818531f019f140a190a2e7b3eb3d | [
"BSD-2-Clause"
] | null | null | null | mirlo.py | mike-thon/mirlo | 8e8fd538c44e818531f019f140a190a2e7b3eb3d | [
"BSD-2-Clause"
] | null | null | null | mirlo.py | mike-thon/mirlo | 8e8fd538c44e818531f019f140a190a2e7b3eb3d | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import os
import sys
import csv
import argparse
import subprocess
from Queue import Queue
from threading import Thread
from time import sleep
import StringIO
from Bio import SeqIO
from Bio.AlignIO import convert
from Bio.Phylo import read
import pdb
if __name__ == '__main__':
opts = parse_cli(... | 27.751244 | 176 | 0.593223 |
9fafea8d120eca237dc8ed8a9a98aff0979f7d85 | 2,669 | py | Python | shellsql/aws.py | urq/awssql | 7bdee8d955953499c6564072e10a9848ebc5df6a | [
"Apache-2.0"
] | null | null | null | shellsql/aws.py | urq/awssql | 7bdee8d955953499c6564072e10a9848ebc5df6a | [
"Apache-2.0"
] | null | null | null | shellsql/aws.py | urq/awssql | 7bdee8d955953499c6564072e10a9848ebc5df6a | [
"Apache-2.0"
] | null | null | null | import sys
from boto3.session import Session
from .models import Dataset
from .utils import get_headers
def extract_data_from_objects(objs):
"""Take in an iterable of objects and extract each object's attributes into
a dictionary, as long as the attributes don't start with a '_', are callable,
and aren'... | 31.034884 | 93 | 0.624578 |
9fb0aa6bc7ba39ca8a83fbf1508cfdb4b092e87c | 3,035 | py | Python | jiepai/spider.py | kapuni/projects | 8c1747d4ed02d81fcb53a8a891d4e76d7e6dde5e | [
"MIT"
] | null | null | null | jiepai/spider.py | kapuni/projects | 8c1747d4ed02d81fcb53a8a891d4e76d7e6dde5e | [
"MIT"
] | null | null | null | jiepai/spider.py | kapuni/projects | 8c1747d4ed02d81fcb53a8a891d4e76d7e6dde5e | [
"MIT"
] | null | null | null | import json
import re
from urllib.parse import urlencode
from hashlib import md5
import pymongo
from bs4 import BeautifulSoup
from gevent import os
from requests.exceptions import RequestException
import requests
from config import *
from multiprocessing import Pool
from json.decoder import JSONDecodeError
client = pym... | 26.622807 | 80 | 0.607908 |
9fb0bbc1f74f1b90dcbb73fb1bc5b31a31a15d9c | 1,652 | py | Python | modules/tools/navigation/planning/local_path.py | jzjonah/apollo | bc534789dc0548bf2d27f8d72fe255d5c5e4f951 | [
"Apache-2.0"
] | 22,688 | 2017-07-04T23:17:19.000Z | 2022-03-31T18:56:48.000Z | modules/tools/navigation/planning/local_path.py | Songjiarui3313/apollo | df9113ae656e28e5374db32529d68e59455058a0 | [
"Apache-2.0"
] | 4,804 | 2017-07-04T22:30:12.000Z | 2022-03-31T12:58:21.000Z | modules/tools/navigation/planning/local_path.py | Songjiarui3313/apollo | df9113ae656e28e5374db32529d68e59455058a0 | [
"Apache-2.0"
] | 9,985 | 2017-07-04T22:01:17.000Z | 2022-03-31T14:18:16.000Z | #!/usr/bin/env python3
###############################################################################
# Copyright 2017 The Apollo Authors. 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... | 29.5 | 79 | 0.54661 |
9fb337de160eba2d0e8c8e9f5baee5f5b434b839 | 1,114 | py | Python | tests/test_version.py | jessekrubin/lager | 942d8b158495b5d782a159f36ef801abb972a87f | [
"BSD-2-Clause"
] | 1 | 2020-05-14T03:51:40.000Z | 2020-05-14T03:51:40.000Z | tests/test_version.py | dynamic-graphics-inc/lager | 942d8b158495b5d782a159f36ef801abb972a87f | [
"MIT"
] | 6 | 2020-05-02T18:20:18.000Z | 2020-06-16T23:31:25.000Z | tests/test_version.py | jessekrubin/lager | 942d8b158495b5d782a159f36ef801abb972a87f | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# =============================================================================
# (c) Copyright 2020, Dynamic Graphics, Inc.
# ALL RIGHTS RESERVED
# Permission to use, copy, modify, or distribute this software for any
# purpose is prohibited without specific, written prior permission from
# ... | 30.944444 | 84 | 0.52693 |
9fb4ca95fb4f399fd06c9bfbead8852bac3f493e | 2,898 | py | Python | BasicORM/model.py | giovani-dev/ORM-Firesore | 3470aaa4f9db04192dde17e12b6c696a96ebc8d3 | [
"MIT"
] | null | null | null | BasicORM/model.py | giovani-dev/ORM-Firesore | 3470aaa4f9db04192dde17e12b6c696a96ebc8d3 | [
"MIT"
] | null | null | null | BasicORM/model.py | giovani-dev/ORM-Firesore | 3470aaa4f9db04192dde17e12b6c696a96ebc8d3 | [
"MIT"
] | null | null | null | from typing import NamedTuple, Any, List
from BasicORM.connection import DataBaseConnection
from BasicORM.validate import BaseModelValidations
# class DefineBaseModel(object):
| 29.571429 | 118 | 0.639061 |
9fb4dc66c66a1ef8e79dfbb25e4e33c8375a1b3c | 775 | py | Python | src/princeton_scraper_seas_faculty/helpers.py | jlumbroso/princeton-scraper-seas-faculty | d6c0dcaec050d8fb22f8a6a911db287640563c12 | [
"Unlicense"
] | 10 | 2020-08-11T18:44:18.000Z | 2021-06-16T19:58:38.000Z | src/princeton_scraper_seas_faculty/helpers.py | jlumbroso/princeton-scraper-seas-faculty | d6c0dcaec050d8fb22f8a6a911db287640563c12 | [
"Unlicense"
] | null | null | null | src/princeton_scraper_seas_faculty/helpers.py | jlumbroso/princeton-scraper-seas-faculty | d6c0dcaec050d8fb22f8a6a911db287640563c12 | [
"Unlicense"
] | null | null | null |
import typing
__author__ = "Jrmie Lumbroso <lumbroso@cs.princeton.edu>"
__all__ = [
"split_name",
]
def split_name(name: str) -> typing.Tuple[str, str]:
"""
Returns a likely `(first, last)` split given a full name. This uses
very simple heuristics, and assumes Western usage.
:param name: A fu... | 24.21875 | 71 | 0.646452 |
9fb526a50dcd6196d12573e5c0cd613b463ce903 | 2,189 | py | Python | QUESTION2.py | mizkin-system/monitoring | 98b54b61a873cbf5cc56d028e38407d5d356fc0b | [
"MIT"
] | null | null | null | QUESTION2.py | mizkin-system/monitoring | 98b54b61a873cbf5cc56d028e38407d5d356fc0b | [
"MIT"
] | null | null | null | QUESTION2.py | mizkin-system/monitoring | 98b54b61a873cbf5cc56d028e38407d5d356fc0b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import time
import csv
import subprocess
import pandas as pd
import argparse
if __name__ == "__main__":
try:
parser = argparse.ArgumentParser()
parser.add_argument('timeout_times')
args = parser.parse_args()
app = QUESTION02(args.timeout_time... | 33.166667 | 122 | 0.534491 |
9fb537fd9bf06d48e541130e128371524f6ed152 | 1,002 | py | Python | migrations/versions/3c4f7702a459_.py | eleweek/WatchPeopleCode | 2389fe0b8eb040f553f847b9e1686883c4bd1388 | [
"MIT"
] | 200 | 2015-01-27T18:26:09.000Z | 2021-12-19T14:38:53.000Z | migrations/versions/3c4f7702a459_.py | eleweek/WatchPeopleCode | 2389fe0b8eb040f553f847b9e1686883c4bd1388 | [
"MIT"
] | 12 | 2015-02-09T10:18:38.000Z | 2021-12-13T19:43:56.000Z | migrations/versions/3c4f7702a459_.py | eleweek/WatchPeopleCode | 2389fe0b8eb040f553f847b9e1686883c4bd1388 | [
"MIT"
] | 23 | 2015-02-09T04:42:48.000Z | 2015-02-20T18:58:56.000Z | """empty message
Revision ID: 3c4f7702a459
Revises: 5a24a4aa5eb3
Create Date: 2015-07-10 23:59:20.856464
"""
# revision identifiers, used by Alembic.
revision = '3c4f7702a459'
down_revision = '5a24a4aa5eb3'
from alembic import op
import sqlalchemy as sa
| 32.322581 | 118 | 0.728543 |
9fb64f87ea9c09ee15dab5a503b75b4ebd13b029 | 4,965 | py | Python | src/secml/utils/mixed_utils.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 63 | 2020-04-20T16:31:16.000Z | 2022-03-29T01:05:35.000Z | src/secml/utils/mixed_utils.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 5 | 2020-04-21T11:31:39.000Z | 2022-03-24T13:42:56.000Z | src/secml/utils/mixed_utils.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 8 | 2020-04-21T09:16:42.000Z | 2022-02-23T16:28:43.000Z | """
.. module:: FunctionUtils
:synopsis: Collection of mixed utility classes and functions
.. moduleauthor:: Marco Melis <marco.melis@unica.it>
"""
__all__ = ['AverageMeter', 'OrderedFlexibleClass', 'check_is_fitted']
def check_is_fitted(obj, attributes, msg=None, check_all=True):
"""Check if the input ob... | 30.838509 | 91 | 0.615509 |
9fb79ef3eec5a97320bcd56e8094a362a869463e | 621 | py | Python | find_primes.py | chapman-phys227-2016s/hw-1-seama107 | 52d942891c15a6e575f5c77e5378ed7cc17bdcc3 | [
"MIT"
] | null | null | null | find_primes.py | chapman-phys227-2016s/hw-1-seama107 | 52d942891c15a6e575f5c77e5378ed7cc17bdcc3 | [
"MIT"
] | null | null | null | find_primes.py | chapman-phys227-2016s/hw-1-seama107 | 52d942891c15a6e575f5c77e5378ed7cc17bdcc3 | [
"MIT"
] | null | null | null | #!/usr/bin/python
def find_primes(n):
"""
Finds all the primes below number n using the sieve of Eratosthenes
"""
candidates = [i + 2 for i in range(n-1)]
for p in candidates:
for i in candidates:
if i % p == 0 and p != i:
candidates.remove(i)
return candidat... | 27 | 73 | 0.570048 |
9fb7b2d33cb1cf8a0df18c4c04bb9b424df00640 | 3,233 | py | Python | contrib/status_testing/piped_status_testing/test/data/statustest_helper.py | alexbrasetvik/Piped | 0312c14d6c4c293df378c915cc9787bcc7faed36 | [
"MIT"
] | 3 | 2015-02-12T20:34:30.000Z | 2016-08-06T06:54:48.000Z | contrib/status_testing/piped_status_testing/test/data/statustest_helper.py | alexbrasetvik/Piped | 0312c14d6c4c293df378c915cc9787bcc7faed36 | [
"MIT"
] | null | null | null | contrib/status_testing/piped_status_testing/test/data/statustest_helper.py | alexbrasetvik/Piped | 0312c14d6c4c293df378c915cc9787bcc7faed36 | [
"MIT"
] | 2 | 2015-12-16T14:18:14.000Z | 2019-04-12T01:43:10.000Z | # Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors.
# See LICENSE for details.
from piped_status_testing import statustest, util
from twisted.internet import reactor, defer
""" This module contains statustests used only for internal testing of piped_status_testing. """
statustest_should_skip.s... | 32.33 | 96 | 0.66347 |
9fb7e7bf5bf3c28e0f4d6debf26ccf856ae3ec19 | 3,424 | py | Python | src/main/resources/veracode_api_signing/credentials.py | xebialabs-community/xlr-veracode-plugin | 85979403d4a0274844b88d3aa6a946439fbb052a | [
"MIT"
] | 2 | 2020-05-15T14:22:20.000Z | 2020-07-10T19:59:25.000Z | src/main/resources/veracode_api_signing/credentials.py | xebialabs-community/xlr-veracode-plugin | 85979403d4a0274844b88d3aa6a946439fbb052a | [
"MIT"
] | 1 | 2021-03-19T11:13:03.000Z | 2021-06-30T15:42:16.000Z | src/main/resources/veracode_api_signing/credentials.py | xebialabs-community/xlr-veracode-plugin | 85979403d4a0274844b88d3aa6a946439fbb052a | [
"MIT"
] | 1 | 2020-04-02T22:06:06.000Z | 2020-04-02T22:06:06.000Z | # MIT License
# Copyright (c) 2019 Veracode, Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | 39.356322 | 103 | 0.753213 |
9fb91c4625caa622ee631ba30eabbbcc41f2bd60 | 59 | py | Python | addons/po_persian_calendar/models/__init__.py | apadanagroup/parOdoo | 8c6f67848e0689b76fb780feca08d819fd3c1847 | [
"Apache-2.0"
] | 12 | 2021-03-26T08:39:40.000Z | 2022-03-16T02:20:10.000Z | addons/po_persian_calendar/models/__init__.py | apadanagroup/parOdoo | 8c6f67848e0689b76fb780feca08d819fd3c1847 | [
"Apache-2.0"
] | 13 | 2020-12-20T16:00:21.000Z | 2022-03-14T14:55:30.000Z | addons/po_persian_calendar/models/__init__.py | apadanagroup/parOdoo | 8c6f67848e0689b76fb780feca08d819fd3c1847 | [
"Apache-2.0"
] | 17 | 2020-08-31T11:18:49.000Z | 2022-02-09T05:57:31.000Z | from . import HttpExtensions
from . import UsersExtensions
| 19.666667 | 29 | 0.830508 |
9fbee8c69adef049ed9ba532558ba181190672fc | 673 | py | Python | ansa/ansa.py | Iskandar-Ki/AnsaRSS | 00e4c49114ba54078528967d8ddb0bf3efa9187e | [
"Unlicense"
] | 1 | 2018-09-19T09:26:34.000Z | 2018-09-19T09:26:34.000Z | ansa/ansa.py | Iskandar-Ki/AnsaRSS | 00e4c49114ba54078528967d8ddb0bf3efa9187e | [
"Unlicense"
] | null | null | null | ansa/ansa.py | Iskandar-Ki/AnsaRSS | 00e4c49114ba54078528967d8ddb0bf3efa9187e | [
"Unlicense"
] | null | null | null | import feedparser | 26.92 | 57 | 0.549777 |
9fbfa16f40e1b991823042e571e745d37f12e14e | 234 | py | Python | dynamo/entities/__init__.py | tnorlund/aws-analytics | 5533e5d313abf92f0c46e2a5bb32d853ddc9246e | [
"MIT"
] | null | null | null | dynamo/entities/__init__.py | tnorlund/aws-analytics | 5533e5d313abf92f0c46e2a5bb32d853ddc9246e | [
"MIT"
] | 22 | 2021-02-27T19:50:35.000Z | 2021-03-22T19:36:59.000Z | code/python/dynamo/entities/__init__.py | tnorlund/Blog-backend | d231c32c9e37c38955fc07a6dd3cfaf833c8c99d | [
"MIT"
] | 1 | 2021-01-09T10:02:37.000Z | 2021-01-09T10:02:37.000Z | from .visit import *
from .location import *
from .browser import *
from .visitor import *
from .session import *
from .page import *
from .day import *
from .week import *
from .month import *
from .year import *
from .util import *
| 19.5 | 23 | 0.717949 |
9fbfab3dbe7f3cc0b10a3640b0188913b7d6c393 | 862 | py | Python | examples/multiple_modules/commands/envs/get.py | pddg/uroboros | 0e621206c24e62d96fdac244d09c0c790d8930df | [
"Apache-2.0"
] | 15 | 2019-07-13T15:45:00.000Z | 2022-03-08T12:54:54.000Z | examples/multiple_modules/commands/envs/get.py | pddg/uroboros | 0e621206c24e62d96fdac244d09c0c790d8930df | [
"Apache-2.0"
] | 27 | 2019-06-24T15:41:27.000Z | 2020-07-12T09:25:04.000Z | examples/multiple_modules/commands/envs/get.py | pddg/uroboros | 0e621206c24e62d96fdac244d09c0c790d8930df | [
"Apache-2.0"
] | null | null | null | import os
from uroboros import Command, ExitStatus
command = GetCommand()
| 26.9375 | 73 | 0.576566 |
9fc0d1b9a9c10748e46d20c0b5d1e05f290df6e6 | 1,769 | py | Python | simpletextgenerator/models/worklist.py | thtroyer/simple-text-generator | 2b84d5fc5efa6311331210cabfb74e4305fcf947 | [
"MIT"
] | 1 | 2018-08-04T02:01:15.000Z | 2018-08-04T02:01:15.000Z | simpletextgenerator/models/worklist.py | thtroyer/simple-text-generator | 2b84d5fc5efa6311331210cabfb74e4305fcf947 | [
"MIT"
] | 21 | 2020-09-25T22:52:32.000Z | 2021-07-07T01:40:27.000Z | simpletextgenerator/models/worklist.py | thtroyer/simple-text-generator | 2b84d5fc5efa6311331210cabfb74e4305fcf947 | [
"MIT"
] | 1 | 2019-01-11T21:00:26.000Z | 2019-01-11T21:00:26.000Z | import abc
from typing import List, Tuple
| 32.163636 | 111 | 0.701526 |
9fc11d45072844cb0cd37380e1602836f1deb636 | 2,547 | py | Python | CistromeDB_metadata_QC_statistic_visualization(FRiP>0.25).py | yujijun/Higlass | 0eec629a81a02d37a6872f3efee16da66accf832 | [
"Apache-2.0"
] | null | null | null | CistromeDB_metadata_QC_statistic_visualization(FRiP>0.25).py | yujijun/Higlass | 0eec629a81a02d37a6872f3efee16da66accf832 | [
"Apache-2.0"
] | null | null | null | CistromeDB_metadata_QC_statistic_visualization(FRiP>0.25).py | yujijun/Higlass | 0eec629a81a02d37a6872f3efee16da66accf832 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 25 09:56:15 2019
@author: yujijun
Description:
QC by FRiP >= 0.25 and filter out non-information tissues
Input:
03-Homo_sapiens_ca_DNase_QC(906)_add_info_mannually.csv
Output:
04-Homo_sapiens_ca_DNase_QC(906)_non-info-tissue_FRiP0p25(5... | 39.796875 | 142 | 0.709855 |
9fc2a29255c0ae2e9ff1820f112e173145cbae9c | 1,558 | py | Python | apply_alis.py | esalesky/vecalign | 2d77bc94ae75545bf00a5b3a136a6c8808bc0dce | [
"Apache-2.0"
] | 1 | 2021-02-07T12:50:42.000Z | 2021-02-07T12:50:42.000Z | apply_alis.py | esalesky/vecalign | 2d77bc94ae75545bf00a5b3a136a6c8808bc0dce | [
"Apache-2.0"
] | null | null | null | apply_alis.py | esalesky/vecalign | 2d77bc94ae75545bf00a5b3a136a6c8808bc0dce | [
"Apache-2.0"
] | null | null | null | import sys
import json
alifile = sys.argv[1]
srcfile = sys.argv[2]
tgtfile = sys.argv[3]
outdir = sys.argv[4]
src = sys.argv[5]
tgt = sys.argv[6]
mistakes = "summary."+src+"-"+tgt
talk = srcfile.split('/')[1].split('.')[0]
srcs = []
tgts = []
with open(srcfile,'r') as f:
line = f.readline().strip()
while ... | 30.54902 | 165 | 0.516688 |
9fc3bb2c808aba76d2ab45c51a84200ca700599c | 249 | py | Python | ptsites/sites/52pt.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | 202 | 2020-01-24T05:27:18.000Z | 2021-06-22T09:31:54.000Z | ptsites/sites/52pt.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | 16 | 2021-08-01T10:08:23.000Z | 2022-02-04T04:18:08.000Z | ptsites/sites/52pt.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | 62 | 2020-01-24T05:27:24.000Z | 2021-06-16T04:46:22.000Z | from ..schema.nexusphp import BakatestHR
| 20.75 | 53 | 0.598394 |
9fc41abfd81f224dca3b66260e6fcdbb8fc02f87 | 2,095 | py | Python | tests/accounts/test_models.py | NjengaSaruni/Accountant-Web-Server | e77124307f235a4a446e1251d2830d7587cb8719 | [
"MIT"
] | null | null | null | tests/accounts/test_models.py | NjengaSaruni/Accountant-Web-Server | e77124307f235a4a446e1251d2830d7587cb8719 | [
"MIT"
] | 19 | 2018-12-10T20:06:21.000Z | 2021-06-10T21:03:31.000Z | tests/accounts/test_models.py | NjengaSaruni/Accountant-Web-Server | e77124307f235a4a446e1251d2830d7587cb8719 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.test import TestCase
from app.accounts.models import User
| 36.754386 | 79 | 0.644391 |
9fc41cd77d4e57818df84bb0ceeea19889bf81e8 | 29,754 | py | Python | src/meadowgrid/coordinator_client.py | meadowdata/meadowflow | 8d4d93e3de2ac8636eb8f5ce058c28b398684806 | [
"MIT"
] | 4 | 2021-12-23T16:08:12.000Z | 2022-02-13T21:39:44.000Z | src/meadowgrid/coordinator_client.py | meadowdata/meadowflow | 8d4d93e3de2ac8636eb8f5ce058c28b398684806 | [
"MIT"
] | 13 | 2021-12-07T21:54:12.000Z | 2022-03-02T22:33:22.000Z | src/meadowgrid/coordinator_client.py | hrichardlee/meadowdata | 5d302956474d9f53c43afa0d7ce9a4b4d98591c5 | [
"MIT"
] | 1 | 2021-11-14T17:39:12.000Z | 2021-11-14T17:39:12.000Z | from __future__ import annotations
import json
import pickle
from types import TracebackType
from typing import (
Any,
Dict,
Iterable,
List,
Literal,
Optional,
Sequence,
Tuple,
Type,
Union,
)
import grpc
import grpc.aio
from meadowgrid.config import (
DEFAULT_COORDINATOR_A... | 34.517401 | 90 | 0.660214 |