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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30c7a9362a7e00f4dea1c4a3028e5f5f01134985 | 406 | py | Python | Multipliers/mult.py | ThoAppelsin/pure-music | ab1a8604cc24b1dbf329a556154d5f0cc7f2236b | [
"MIT"
] | null | null | null | Multipliers/mult.py | ThoAppelsin/pure-music | ab1a8604cc24b1dbf329a556154d5f0cc7f2236b | [
"MIT"
] | null | null | null | Multipliers/mult.py | ThoAppelsin/pure-music | ab1a8604cc24b1dbf329a556154d5f0cc7f2236b | [
"MIT"
] | null | null | null | import fractions
from pprint import pprint
lcm_limit = 32
octave_limit = 4
candidates = [(x, y) for x in range(1, lcm_limit + 1) for y in range(1, lcm_limit + 1)]
candidates = [c for c in candidates
if fractions.gcd(c[0], c[1]) == 1
and c[0] * c[1] <= lcm_limit
and 1 / octave_limit <= c[0] / c[1] <= octave_limit]
... | 25.375 | 87 | 0.672414 |
30c828d9ab280febb16bf5ef11feff5b3f99b8e8 | 573 | py | Python | Python3/24.swap-nodes-in-pairs.py | canhetingsky/LeetCode | 67f4eaeb5746d361056d08df828c653f89dd9fdd | [
"MIT"
] | 1 | 2019-09-23T13:25:21.000Z | 2019-09-23T13:25:21.000Z | Python3/24.swap-nodes-in-pairs.py | canhetingsky/LeetCode | 67f4eaeb5746d361056d08df828c653f89dd9fdd | [
"MIT"
] | 6 | 2019-10-25T10:17:50.000Z | 2019-11-17T05:07:19.000Z | Python3/24.swap-nodes-in-pairs.py | canhetingsky/LeetCode | 67f4eaeb5746d361056d08df828c653f89dd9fdd | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=24 lang=python3
#
# [24] Swap Nodes in Pairs
#
# @lc code=start
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
# @lc code=end
| 19.758621 | 52 | 0.556719 |
30cae5fcba520d2336e9de37bde53bf9f641c26d | 1,593 | py | Python | src/Controllers/CEOControl.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | null | null | null | src/Controllers/CEOControl.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | null | null | null | src/Controllers/CEOControl.py | shulip/ShoppingMallSystem | 01e5a04a8353ca319ed2dc002fc358f6e44c33dd | [
"MIT"
] | 1 | 2021-04-22T15:14:21.000Z | 2021-04-22T15:14:21.000Z | #######################################################
#
# CEOControl.py
# Python implementation of the Class CEOControl
# Generated by Enterprise Architect
# Created on: 16-5-2019 12:06:10
# Original author:
#
#######################################################
from Models.Statement import Statement
from ... | 24.890625 | 75 | 0.640301 |
30cb99ee5910824c55927f1d17d6bec03ac81d17 | 2,104 | py | Python | apps/plugins/plugin.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 25 | 2021-06-13T03:38:44.000Z | 2022-03-15T15:53:31.000Z | apps/plugins/plugin.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 59 | 2021-06-12T23:35:06.000Z | 2022-03-24T21:40:24.000Z | apps/plugins/plugin.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | null | null | null | import abc
import pathlib
from importlib import util as importlib_util
from typing import Optional, Protocol
from plugins.models import MPlugin
| 30.057143 | 116 | 0.654943 |
30cc83890770a4003caacdcf071dce2fdf40b1e0 | 1,102 | py | Python | lesson_01/005.py | amindmobile/geekbrains-python-002 | 4bc2f7af755d00e73ddc48f1138830cb78e87034 | [
"MIT"
] | null | null | null | lesson_01/005.py | amindmobile/geekbrains-python-002 | 4bc2f7af755d00e73ddc48f1138830cb78e87034 | [
"MIT"
] | null | null | null | lesson_01/005.py | amindmobile/geekbrains-python-002 | 4bc2f7af755d00e73ddc48f1138830cb78e87034 | [
"MIT"
] | null | null | null | # . ,
# ( , ). .
# , ( ).
# .
earnings = float(input(" : "))
expenses = float(input(" : "))
if earnings > expenses: #
employee = int(input(" : "))
global_Profit = earnings - expenses #
employee_Profit = global_Profit / employee #
print(f" {global_Pr... | 55.1 | 119 | 0.777677 |
30ccc835225f0f39d9631aa44f69223b6d2b4527 | 5,825 | py | Python | ratschlab_common/io/dataframe_formats.py | ratschlab/ratschlab-common | e7d71c3220c8b991d9d1c2f2de5cf393fce8357c | [
"MIT"
] | 1 | 2021-02-01T22:45:24.000Z | 2021-02-01T22:45:24.000Z | ratschlab_common/io/dataframe_formats.py | ratschlab/ratschlab-common | e7d71c3220c8b991d9d1c2f2de5cf393fce8357c | [
"MIT"
] | 2 | 2019-11-25T09:10:26.000Z | 2020-02-14T13:08:28.000Z | ratschlab_common/io/dataframe_formats.py | ratschlab/ratschlab-common | e7d71c3220c8b991d9d1c2f2de5cf393fce8357c | [
"MIT"
] | 1 | 2018-09-20T01:38:01.000Z | 2018-09-20T01:38:01.000Z | import os
from abc import ABCMeta, abstractmethod
from types import MappingProxyType
import dask.dataframe
import pandas as pd
def get_default_writing_options(self):
"""
Default options used, if no options are passed in the write functions
:return: dictionary with options
"""
... | 36.63522 | 93 | 0.633305 |
30cd6249b329b46a03cfecc7898ea184033964d2 | 378 | py | Python | HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py | HannaLuu/Programming12_Portfolio | b6b480b557ab88e428580c40fda2bb8f10ac115a | [
"MIT"
] | null | null | null | HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py | HannaLuu/Programming12_Portfolio | b6b480b557ab88e428580c40fda2bb8f10ac115a | [
"MIT"
] | null | null | null | HannaL Programming 12 Portfolio/Hanna L Chapter 1 Lab/AreaOfTrapezoidCalculator.py | HannaLuu/Programming12_Portfolio | b6b480b557ab88e428580c40fda2bb8f10ac115a | [
"MIT"
] | null | null | null | print("This program calculates the area of a trapezoid.")
height = float(input("Enter height of trapezoid:"))
top_base_length = float(input("Enter top length of trapezoid:"))
bottom_base_length = float(input("Enter bottom length of trapezoid:"))
area_of_trapezoid = .5 * (top_base_length + bottom_base_length) * height
p... | 63 | 72 | 0.769841 |
30d0d4d6a16170d4deabeabcc9a6af64c6ea52e2 | 5,498 | py | Python | src/pumpwood_djangoviews/action.py | Murabei-OpenSource-Codes/pumpwood-djangoviews | 792fb825a5e924d1b7307c0bc3b40d798b68946d | [
"BSD-3-Clause"
] | null | null | null | src/pumpwood_djangoviews/action.py | Murabei-OpenSource-Codes/pumpwood-djangoviews | 792fb825a5e924d1b7307c0bc3b40d798b68946d | [
"BSD-3-Clause"
] | null | null | null | src/pumpwood_djangoviews/action.py | Murabei-OpenSource-Codes/pumpwood-djangoviews | 792fb825a5e924d1b7307c0bc3b40d798b68946d | [
"BSD-3-Clause"
] | null | null | null | """Define actions decorator."""
import inspect
import pandas as pd
from typing import cast
from datetime import date, datetime
from typing import Callable
from pumpwood_communication.exceptions import PumpWoodActionArgsException
def action(info: str = "", auth_header: str = None):
"""
Define decorator that ... | 35.934641 | 77 | 0.591124 |
30d36f714ffcf578c5b755784494e079e2271651 | 5,426 | py | Python | logistic-regression/mnist_binary_classifier.py | eliben/deep-learning-samples | d5ca86c5db664fabfb302cbbc231c50ec3d6a103 | [
"Unlicense"
] | 183 | 2015-12-29T07:21:24.000Z | 2022-01-18T01:19:23.000Z | logistic-regression/mnist_binary_classifier.py | eliben/deep-learning-samples | d5ca86c5db664fabfb302cbbc231c50ec3d6a103 | [
"Unlicense"
] | null | null | null | logistic-regression/mnist_binary_classifier.py | eliben/deep-learning-samples | d5ca86c5db664fabfb302cbbc231c50ec3d6a103 | [
"Unlicense"
] | 68 | 2016-06-02T15:31:51.000Z | 2021-09-08T19:58:10.000Z | # A binary linear classifier for MNIST digits.
#
# Poses a binary classification problem - is this image showing digit D (for
# some D, for example "4"); trains a linear classifier to solve the problem.
#
# Eli Bendersky (http://eli.thegreenplace.net)
# This code is in the public domain
from __future__ import print_fun... | 44.113821 | 80 | 0.605418 |
30d54fa27b6407cf613e47ef65f685b9f45ab6fc | 37 | py | Python | src/RGT/userProfile/__init__.py | danrg/RGT-tool | 115ba9a93686595699b3e182958921b3d60382b3 | [
"MIT"
] | 7 | 2015-02-09T12:12:04.000Z | 2019-03-31T08:23:36.000Z | src/RGT/userProfile/__init__.py | danrg/RGT-tool | 115ba9a93686595699b3e182958921b3d60382b3 | [
"MIT"
] | 3 | 2015-07-05T20:49:14.000Z | 2017-07-03T19:45:18.000Z | src/RGT/userProfile/__init__.py | danrg/RGT-tool | 115ba9a93686595699b3e182958921b3d60382b3 | [
"MIT"
] | 1 | 2021-03-23T14:01:22.000Z | 2021-03-23T14:01:22.000Z | from views import displayUserProfile
| 18.5 | 36 | 0.891892 |
30d65ba961b4012c418911d00c91a40240451543 | 5,409 | py | Python | IEEE-ASHRAE_kernel/01_data_minify.py | Daniel1586/Initiative_Kaggle | 945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05 | [
"MIT"
] | 1 | 2019-08-12T14:28:22.000Z | 2019-08-12T14:28:22.000Z | IEEE-ASHRAE_kernel/01_data_minify.py | Daniel1586/Initiative_Kaggle | 945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05 | [
"MIT"
] | null | null | null | IEEE-ASHRAE_kernel/01_data_minify.py | Daniel1586/Initiative_Kaggle | 945e0a2ebe94aa7ee3ed59dd0de53d9a1b82aa05 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
(https://www.kaggle.com/c/ashrae-energy-prediction).
Train shape:(590540,394),identity(144233,41)--isFraud 3.5%
Test shape:(506691,393),identity(141907,41)
############### TF Version: 1.13.1/Python Version: 3.7 ###############
"""
import os
import math
import random
impo... | 41.290076 | 95 | 0.612683 |
30d759a40bbb943fa4065bfc1dc4dff7a8c4a0fa | 8,774 | py | Python | src/optim/DeepSAD_trainer.py | wych1005/Deep-SAD-PyTorch | af93186a38ed30985dc155d1b00b90aa181cfe0b | [
"MIT"
] | null | null | null | src/optim/DeepSAD_trainer.py | wych1005/Deep-SAD-PyTorch | af93186a38ed30985dc155d1b00b90aa181cfe0b | [
"MIT"
] | null | null | null | src/optim/DeepSAD_trainer.py | wych1005/Deep-SAD-PyTorch | af93186a38ed30985dc155d1b00b90aa181cfe0b | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from base.base_trainer import BaseTrainer
from base.base_dataset import BaseADDataset
from base.base_net import BaseNet
import seaborn as sns
from torch.utils.data.dataloader import DataLoader
from sklearn.metrics import roc_auc_score, confusion_matrix, average_precision_score, roc_curve... | 39.345291 | 119 | 0.574652 |
30d9462a88c0ebc7b1a28e773898227835681362 | 1,430 | py | Python | covidxpert/utils/__init__.py | LucaCappelletti94/covidxpert | 8adda25f3d6fb648607c0f8af7d3ff54b42c59fb | [
"MIT"
] | 2 | 2020-05-22T12:50:11.000Z | 2021-03-12T01:00:17.000Z | covidxpert/utils/__init__.py | LucaCappelletti94/covidxpert | 8adda25f3d6fb648607c0f8af7d3ff54b42c59fb | [
"MIT"
] | 6 | 2020-05-27T19:03:15.000Z | 2021-03-02T11:12:06.000Z | covidxpert/utils/__init__.py | LucaCappelletti94/covidxpert | 8adda25f3d6fb648607c0f8af7d3ff54b42c59fb | [
"MIT"
] | 1 | 2020-05-27T07:21:02.000Z | 2020-05-27T07:21:02.000Z | from .load_image import load_image
from .normalize_image import normalize_image
from .remove_artefacts import remove_artefacts, fill_small_white_blobs, fill_small_black_blobs
from .padding import trim_padding, add_padding
from .inpaint import inpaint
from .darken import darken
from .difference_of_gaussians_pyramid impo... | 31.086957 | 94 | 0.79021 |
30d9946316ecfd307f0f761701c4aed9a868f4ca | 625 | py | Python | proxy/python/proxy_client.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 5 | 2018-10-19T15:30:00.000Z | 2018-11-30T06:02:12.000Z | proxy/python/proxy_client.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | null | null | null | proxy/python/proxy_client.py | koonchen/awesome-design-patterns | 53891e5331b211bce7c2b3f8ea6fdd1a9f4086d1 | [
"MIT"
] | 2 | 2018-10-19T15:30:08.000Z | 2019-02-20T15:28:38.000Z | #!/usr/bin/env python
# coding:utf8
# @Date : 2018/8/27
# @Author : Koon
# @Link : chenzeping.com
# When I wrote this, only God and I understood what I was doing. Now, God only knows.
if __name__ == "__main__":
proxy = Proxy(RealSubject())
proxy.request()
| 20.833333 | 85 | 0.6544 |
30dd9689a3bf67ed453ecd720684aa2b2390bfa6 | 4,680 | py | Python | authors/apps/articles/tests/test_like_comments.py | andela/ah-codeofduty | ab749037dbb08712a2e47848e31a1ccb14de1165 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/tests/test_like_comments.py | andela/ah-codeofduty | ab749037dbb08712a2e47848e31a1ccb14de1165 | [
"BSD-3-Clause"
] | 41 | 2018-10-23T08:45:43.000Z | 2022-03-11T23:34:18.000Z | authors/apps/articles/tests/test_like_comments.py | andela/ah-codeofduty | ab749037dbb08712a2e47848e31a1ccb14de1165 | [
"BSD-3-Clause"
] | 3 | 2020-05-01T16:21:13.000Z | 2021-05-11T08:25:11.000Z | from .base import BaseTest
from authors.apps.articles.models import Article
from rest_framework.views import status
import json
| 47.272727 | 103 | 0.640385 |
30de8aa4ae6150e3acdc0398071ec1e1b7a6910b | 1,577 | py | Python | server.py | rikuru-to865/Voyeur-with-python | 104d61e189912134f38463842a0ee0834dd31129 | [
"MIT"
] | null | null | null | server.py | rikuru-to865/Voyeur-with-python | 104d61e189912134f38463842a0ee0834dd31129 | [
"MIT"
] | null | null | null | server.py | rikuru-to865/Voyeur-with-python | 104d61e189912134f38463842a0ee0834dd31129 | [
"MIT"
] | null | null | null | import socket
import numpy
import cv2
import threading
import os
BUFFER_SIZE = 4096*10
currentPort = 50001
buf = b''
with socket.socket(socket.AF_INET,socket.SOCK_STREAM) as portInfo:
portInfo.bind(("0.0.0.0",50000))
portInfo.listen()
print("aitayo")
while True:
(connection, client) = portInf... | 26.728814 | 67 | 0.496512 |
30deb57c91134b9206c1ecfd63be99c7504cefa8 | 565 | py | Python | machina/apps/forum/receivers.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 572 | 2015-04-10T06:15:43.000Z | 2022-03-30T06:40:25.000Z | machina/apps/forum/receivers.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 241 | 2015-10-26T22:23:59.000Z | 2022-03-25T12:30:56.000Z | machina/apps/forum/receivers.py | BrendaH/django-machina | c75b6f39f61ca92745aebb0bb6ab3c707d88063d | [
"BSD-3-Clause"
] | 156 | 2015-10-02T19:32:08.000Z | 2022-03-30T06:40:11.000Z | """
Forum signal receivers
======================
This module defines signal receivers.
"""
from django.db.models import F
from django.dispatch import receiver
from machina.apps.forum.signals import forum_viewed
| 26.904762 | 89 | 0.707965 |
30df28d88d0e3028115d06d1db6c4ac57bd2c0df | 185 | py | Python | Google Kickstart/2019/Round C/circuit_board.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | Google Kickstart/2019/Round C/circuit_board.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | Google Kickstart/2019/Round C/circuit_board.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | for t in range(int(input())):
r,c,k = map(int , input().split())
circuit_board = []
for i in range(r):
circuit_board.append(list(map(int,input().split())))
| 26.428571 | 60 | 0.551351 |
30e0d9aba329cb35b870099915a7b244906f7302 | 1,978 | py | Python | lcm/lcm/nf/serializers/lccn_filter_data.py | onap/vfc-gvnfm-vnflcm | e3127fee0fdb5bf193fddc74a69312363a6d20eb | [
"Apache-2.0"
] | 1 | 2019-04-02T03:15:20.000Z | 2019-04-02T03:15:20.000Z | lcm/lcm/nf/serializers/lccn_filter_data.py | onap/vfc-gvnfm-vnflcm | e3127fee0fdb5bf193fddc74a69312363a6d20eb | [
"Apache-2.0"
] | null | null | null | lcm/lcm/nf/serializers/lccn_filter_data.py | onap/vfc-gvnfm-vnflcm | e3127fee0fdb5bf193fddc74a69312363a6d20eb | [
"Apache-2.0"
] | 1 | 2021-10-15T15:26:47.000Z | 2021-10-15T15:26:47.000Z | # Copyright (C) 2018 Verizon. 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 ... | 46 | 91 | 0.761375 |
30e55d7e04ab513adf991395e8e91f97eaca5c02 | 5,633 | py | Python | jarvis/resume/skillset.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2019-01-03T06:10:04.000Z | 2019-01-03T06:10:04.000Z | jarvis/resume/skillset.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2021-03-31T19:11:52.000Z | 2021-03-31T19:11:52.000Z | jarvis/resume/skillset.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | null | null | null | skills_list = [
"actionscript",
"ado.net",
"ajax",
"akka",
"algorithm",
"amazon-ec2",
"amazon-s3",
"amazon-web-services",
"android",
"angular",
"angularjs",
"ansible",
"ant",
"apache",
"apache-camel",
"apache-kafka",
"apache-poi",
"apache-spark",
... | 15.867606 | 32 | 0.480916 |
30e8e22ed734b9dbbb1ecdf7de1dcc755608c15e | 40 | py | Python | 5.3_HANDLER/handler_module.py | pedroMoya/alaska_2_share | a5f958da45b97e8c8cdc0b868e4447dbc500c6f9 | [
"MIT"
] | 2 | 2020-06-02T18:39:45.000Z | 2021-01-01T19:17:15.000Z | 5.3_HANDLER/handler_module.py | pedroMoya/alaska_2_share | a5f958da45b97e8c8cdc0b868e4447dbc500c6f9 | [
"MIT"
] | 1 | 2021-01-01T19:17:08.000Z | 2021-03-19T00:10:52.000Z | 5.3_HANDLER/handler_module.py | pedroMoya/alaska_2_share | a5f958da45b97e8c8cdc0b868e4447dbc500c6f9 | [
"MIT"
] | 1 | 2021-01-01T19:17:17.000Z | 2021-01-01T19:17:17.000Z | # handler module centralize the control
| 20 | 39 | 0.825 |
30ea17aa8e12d9e828b613b0ece0e52f6bb41391 | 313 | py | Python | external/lfp_tools.py | dmartin35/pronosfoot | 861ae091fbb65684d00ae8c5ff3726eeaa306ed7 | [
"MIT"
] | 4 | 2017-07-09T21:18:18.000Z | 2022-02-16T13:05:10.000Z | external/lfp_tools.py | dmartin35/pronosfoot | 861ae091fbb65684d00ae8c5ff3726eeaa306ed7 | [
"MIT"
] | 2 | 2020-01-16T14:21:42.000Z | 2021-03-02T18:34:15.000Z | external/lfp_tools.py | dmartin35/pronosfoot | 861ae091fbb65684d00ae8c5ff3726eeaa306ed7 | [
"MIT"
] | null | null | null |
def escape_team_names(mystr):
"""
temporary fix for solving ? characters in bad team names encoding
from LFP's ICS calendar
"""
mystr = mystr.replace('N?MES','NMES')
mystr = mystr.replace('SAINT-?TIENNE','SAINT-TIENNE')
mystr = mystr.replace('H?RAULT', 'HRAULT')
return mystr | 26.083333 | 69 | 0.654952 |
30efd3e520d72e743da6e55444a12e5dda1b5179 | 199 | py | Python | sdipylib/plot.py | sdrdl/sdipylib | 197a6c434d2b34a52e6544973407e92f3561727a | [
"BSD-2-Clause"
] | null | null | null | sdipylib/plot.py | sdrdl/sdipylib | 197a6c434d2b34a52e6544973407e92f3561727a | [
"BSD-2-Clause"
] | null | null | null | sdipylib/plot.py | sdrdl/sdipylib | 197a6c434d2b34a52e6544973407e92f3561727a | [
"BSD-2-Clause"
] | null | null | null | """Plotting support""" | 33.166667 | 64 | 0.643216 |
30f29e0855bb09fb75ab5994617d326c1d54e876 | 9,298 | py | Python | hl7tools.py | cdgramos/Sublime-Text-3---HL7-Plug-In | b4b821f272460fa970c019c261ded552c724fee7 | [
"MIT"
] | 8 | 2018-03-01T14:38:01.000Z | 2020-02-28T22:41:34.000Z | hl7tools.py | cdgramos/Sublime-Text-3---HL7-Plug-In | b4b821f272460fa970c019c261ded552c724fee7 | [
"MIT"
] | 19 | 2018-04-13T21:13:08.000Z | 2021-09-02T22:48:53.000Z | hl7tools.py | cdgramos/Sublime-Text-3---HL7-Plug-In | b4b821f272460fa970c019c261ded552c724fee7 | [
"MIT"
] | 1 | 2020-05-18T21:43:46.000Z | 2020-05-18T21:43:46.000Z | import sublime
import sublime_plugin
import re
import webbrowser
from .lib.hl7Event import *
from .lib.hl7Segment import *
from .lib.hl7TextUtils import *
hl7EventList = hl7Event("","")
hl7EventList = hl7EventList.loadEventList()
hl7SegmentList = hl7Segment("","")
hl7SegmentList = hl7SegmentList.loadSegmentList()
S... | 26.490028 | 120 | 0.61766 |
30f2d2c111d6644e79246c0c70b3eff7c89f77de | 218 | py | Python | leetcode/hard/1203.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | leetcode/hard/1203.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | leetcode/hard/1203.py | phantomnat/python-learning | addc7ba5fc4fb8920cdd2891d4b2e79efd1a524a | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/
# graph, dfs
| 36.333333 | 101 | 0.683486 |
30f2e9dc143ed93952cacd555538c812b12a36a2 | 8,220 | py | Python | gen_data/yolo_label.py | KevinLADLee/CARLA_INVS | b23249500ffbafdb312a71d17b0dfef4191672f0 | [
"MIT"
] | null | null | null | gen_data/yolo_label.py | KevinLADLee/CARLA_INVS | b23249500ffbafdb312a71d17b0dfef4191672f0 | [
"MIT"
] | null | null | null | gen_data/yolo_label.py | KevinLADLee/CARLA_INVS | b23249500ffbafdb312a71d17b0dfef4191672f0 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import argparse
import time
import cv2
import glob
import sys
from pathlib import Path
import numpy as np
import pandas as pd
import yaml
from multiprocessing.dummy import Pool as ThreadPool
sys.path.append(Path(__file__).resolve().parent.parent.as_posix()) # repo path
sys.path.append(Path(__file... | 40.895522 | 123 | 0.550243 |
30f35ff68fe1eac3b585ba8e3b6bf7e40042a3c9 | 3,004 | py | Python | tr/acs_config_test.py | DentonGentry/gfiber-catawampus | b01e4444f3c7f12b1af7837203b37060fd443bb7 | [
"Apache-2.0"
] | 2 | 2017-10-03T16:06:29.000Z | 2020-09-08T13:03:13.000Z | tr/acs_config_test.py | DentonGentry/gfiber-catawampus | b01e4444f3c7f12b1af7837203b37060fd443bb7 | [
"Apache-2.0"
] | null | null | null | tr/acs_config_test.py | DentonGentry/gfiber-catawampus | b01e4444f3c7f12b1af7837203b37060fd443bb7 | [
"Apache-2.0"
] | 1 | 2017-05-07T17:39:02.000Z | 2017-05-07T17:39:02.000Z | #!/usr/bin/python
# Copyright 2011 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 appli... | 31.957447 | 78 | 0.734687 |
30f370fe717239a2c55137458132ce5868ea35e1 | 337 | py | Python | enema/crypto.py | kjczarne/enema | 6ac59cb13663f924574846d2558f27e0bb41a92d | [
"MIT"
] | null | null | null | enema/crypto.py | kjczarne/enema | 6ac59cb13663f924574846d2558f27e0bb41a92d | [
"MIT"
] | null | null | null | enema/crypto.py | kjczarne/enema | 6ac59cb13663f924574846d2558f27e0bb41a92d | [
"MIT"
] | null | null | null | import os
from cryptography.fernet import Fernet
KEY = os.environ.get("DASH_APP_KEY") | 22.466667 | 60 | 0.68546 |
30f3cfcf7af0bb5923bab6a38ac6e979bd553f2b | 275 | py | Python | sphinxcontrib/__init__.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 130 | 2015-07-28T03:41:21.000Z | 2022-03-16T03:07:41.000Z | sphinxcontrib/__init__.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 147 | 2017-08-13T04:31:27.000Z | 2022-03-07T11:22:23.000Z | sphinxcontrib/__init__.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 72 | 2015-07-29T02:35:56.000Z | 2022-02-26T14:31:15.000Z | # This empty file makes the sphinxcontrib namespace package work.
# It is the only file included in the 'sphinxcontrib' conda package.
# Conda packages which use the sphinxcontrib namespace do not include
# this file, but depend on the 'sphinxcontrib' conda package instead.
| 55 | 69 | 0.796364 |
30f3fff33de30496fe028fef08f8b083e40facf8 | 2,941 | py | Python | src/tests/integration/api_test_client.py | doitintl/elastic-event-store | ad00f1fbecf430432c306d5917984d9f9ff522f4 | [
"MIT"
] | 22 | 2021-02-02T17:11:55.000Z | 2021-12-19T15:00:26.000Z | src/tests/integration/api_test_client.py | vladikk/elastic-event-store | ad00f1fbecf430432c306d5917984d9f9ff522f4 | [
"MIT"
] | 8 | 2021-02-04T19:21:25.000Z | 2021-02-08T07:48:06.000Z | src/tests/integration/api_test_client.py | vladikk/elastic-event-store | ad00f1fbecf430432c306d5917984d9f9ff522f4 | [
"MIT"
] | 4 | 2021-02-02T16:58:26.000Z | 2021-07-17T04:17:43.000Z | import boto3
import os
import requests
| 35.865854 | 148 | 0.615097 |
30f4b65b22ebdf31ffa7df998fa1124ad1b7b169 | 4,076 | py | Python | openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py | xinwu/horizon | 0e984a2c75d253dd35ab92e7926021b82d730b26 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py | xinwu/horizon | 0e984a2c75d253dd35ab92e7926021b82d730b26 | [
"Apache-2.0"
] | null | null | null | openstack_dashboard/dashboards/project/connections/reachability_tests/bcf_testpath_api.py | xinwu/horizon | 0e984a2c75d253dd35ab92e7926021b82d730b26 | [
"Apache-2.0"
] | null | null | null | import eventlet
import json
import rest_lib
import urllib
import logging as log
from openstack_dashboard.dashboards.project.connections import bsn_api
eventlet.monkey_patch()
URL_TEST_PATH = ('applications/bcf/test/path/controller-view'
'[src-tenant=\"%(src-tenant)s\"]'
'[src-segment... | 36.720721 | 79 | 0.531894 |
30f4e2ae84a31284f08d9dd4f970283a7dda20d5 | 40,407 | py | Python | pysnmp_mibs/ROHC-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2017-04-21T13:48:08.000Z | 2022-01-06T19:42:52.000Z | pysnmp_mibs/ROHC-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 1 | 2020-05-05T16:42:25.000Z | 2020-05-05T16:42:25.000Z | pysnmp_mibs/ROHC-MIB.py | jackjack821/pysnmp-mibs | 9835ea0bb2420715caf4ee9aaa07d59bb263acd6 | [
"BSD-2-Clause"
] | 6 | 2020-02-08T20:28:49.000Z | 2021-09-14T13:36:46.000Z | #
# PySNMP MIB module ROHC-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/ROHC-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:27:00 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( Integer, O... | 246.384146 | 3,124 | 0.740144 |
30f632315bf80a25755270e8635ee48d72de5b33 | 3,085 | py | Python | features/tests/features/generators/test_datetime.py | daobook/autogluon | 7309118f2ab1c9519f25acf61a283a95af95842b | [
"Apache-2.0"
] | 1 | 2022-02-19T13:22:26.000Z | 2022-02-19T13:22:26.000Z | features/tests/features/generators/test_datetime.py | daobook/autogluon | 7309118f2ab1c9519f25acf61a283a95af95842b | [
"Apache-2.0"
] | 3 | 2021-12-30T20:28:01.000Z | 2022-02-09T20:19:21.000Z | features/tests/features/generators/test_datetime.py | daobook/autogluon | 7309118f2ab1c9519f25acf61a283a95af95842b | [
"Apache-2.0"
] | null | null | null |
from autogluon.features.generators import DatetimeFeatureGenerator
| 32.135417 | 101 | 0.67812 |
30f6d4afaaa493162b41239409c7176bc51a45d0 | 2,785 | py | Python | validation/synthetic_promoters.py | umarov90/DeepREFind | c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e | [
"Apache-2.0"
] | 1 | 2022-03-16T07:39:10.000Z | 2022-03-16T07:39:10.000Z | validation/synthetic_promoters.py | umarov90/DeepREFind | c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e | [
"Apache-2.0"
] | 2 | 2021-11-04T14:58:52.000Z | 2022-02-11T04:28:32.000Z | validation/synthetic_promoters.py | umarov90/ReFeaFi | c3b24b760f3829ea8ed6ba6ed7db76cf90c45a9e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="0"
import common as cm
import tensorflow as tf
import numpy as np
import math
from scipy import stats
from Bio.Seq import Seq
half_size = 500
batch_size = 128
scan_step = 1
seq_len = 1001
out = []
os.chdi... | 39.785714 | 111 | 0.596409 |
30f7b5fce84c80a74ad5a056cdaf77b75b688b7c | 740 | py | Python | tests/test_index.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | 2 | 2021-04-04T03:44:16.000Z | 2021-06-04T13:50:29.000Z | tests/test_index.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | null | null | null | tests/test_index.py | cxan96/strong-but-simple-passwords | c7242f870a2968bd40eceb97b163b4ae307cb84c | [
"MIT"
] | 1 | 2021-08-28T03:35:36.000Z | 2021-08-28T03:35:36.000Z | from strong_but_simple_passwords import views
| 28.461538 | 84 | 0.736486 |
30f85e513a4285e63e608e0444128184121a5ac0 | 865 | py | Python | dojos/lendico/sinais.py | ramalho/tdd-com-pytest | edae805ddf2267d8e08eea6ab344242217f52043 | [
"BSD-3-Clause"
] | 15 | 2018-05-25T16:17:08.000Z | 2020-04-02T21:39:41.000Z | dojos/lendico/sinais.py | ramalho/tdd-com-pytest | edae805ddf2267d8e08eea6ab344242217f52043 | [
"BSD-3-Clause"
] | null | null | null | dojos/lendico/sinais.py | ramalho/tdd-com-pytest | edae805ddf2267d8e08eea6ab344242217f52043 | [
"BSD-3-Clause"
] | 1 | 2021-04-19T21:27:17.000Z | 2021-04-19T21:27:17.000Z | #!/usr/bin/env python3
import sys
def main(*words):
if len(words) < 1:
print("Please provide one word or more", file=sys.stderr)
return
query = ' '.join(words)
index = -1
for index, line in enumerate(search(query, reader())):
print(line)
if index == -1:
print("N... | 23.378378 | 65 | 0.543353 |
30f86263cd9609adb5d7644c7670d39fe1c0be15 | 6,154 | py | Python | bms_2/app01/views.py | luyl1017713252/python | 3b30cffa85b625e512415fa882b4bc7708a5e0b8 | [
"MulanPSL-1.0"
] | null | null | null | bms_2/app01/views.py | luyl1017713252/python | 3b30cffa85b625e512415fa882b4bc7708a5e0b8 | [
"MulanPSL-1.0"
] | null | null | null | bms_2/app01/views.py | luyl1017713252/python | 3b30cffa85b625e512415fa882b4bc7708a5e0b8 | [
"MulanPSL-1.0"
] | null | null | null | import json
from django.shortcuts import render, redirect, HttpResponse
# Create your views here.
from django.urls import reverse
from app01 import models
from app01.models import Book, Publish, Author, AuthorDetail
| 35.165714 | 124 | 0.647221 |
30fcb43dd0f69d332ab19924f865fff8aca3d2e2 | 3,642 | py | Python | chatbot/scripts/interactive_slack.py | check-spelling/learning | a3b031cf8fe766ad97e023ec1f3177389778853b | [
"Apache-2.0"
] | 2 | 2021-08-24T05:20:48.000Z | 2021-09-30T18:03:46.000Z | chatbot/scripts/interactive_slack.py | check-spelling/learning | a3b031cf8fe766ad97e023ec1f3177389778853b | [
"Apache-2.0"
] | null | null | null | chatbot/scripts/interactive_slack.py | check-spelling/learning | a3b031cf8fe766ad97e023ec1f3177389778853b | [
"Apache-2.0"
] | 3 | 2021-07-24T23:19:45.000Z | 2021-12-27T04:20:45.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Talk with a model using a Slack channel.
# Examples
```shell
parlai interactive_slack --token xoxb-... --task blend... | 33.412844 | 155 | 0.7095 |
30fd7f4d4cd4681834c31425f77246c6aabccc27 | 2,542 | py | Python | plywood/plugins/include.py | colinta/plywood | 49cf98f198da302ec66e11338320c6b72b642ffa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2015-06-11T06:17:42.000Z | 2015-06-11T06:17:42.000Z | plywood/plugins/include.py | colinta/plywood | 49cf98f198da302ec66e11338320c6b72b642ffa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | plywood/plugins/include.py | colinta/plywood | 49cf98f198da302ec66e11338320c6b72b642ffa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | '''
Includes content from another template. If you assign any keyword arguments,
those will be available in the scope of that template.
'''
import os
from plywood import Plywood
from plywood.values import PlywoodValue
from plywood.exceptions import InvalidArguments
from plywood.env import PlywoodEnv
| 31 | 95 | 0.611723 |
30fe3ede542736245b717c523c0b5b49831e3733 | 1,178 | py | Python | m3uragen/m3u.py | TiBeN/m3uragen | 45f6f7c76c7a345d01f43a152f1f815a9891441f | [
"Apache-2.0"
] | 1 | 2020-12-19T09:18:13.000Z | 2020-12-19T09:18:13.000Z | m3uragen/m3u.py | TiBeN/m3uragen | 45f6f7c76c7a345d01f43a152f1f815a9891441f | [
"Apache-2.0"
] | 1 | 2021-10-22T00:38:17.000Z | 2021-12-15T13:48:18.000Z | m3uragen/m3u.py | TiBeN/m3uragen | 45f6f7c76c7a345d01f43a152f1f815a9891441f | [
"Apache-2.0"
] | null | null | null | """Handle M3U files generation"""
import os
import logging
def generate(software, out_dir, suffix, dry_run):
"""Generate M3U file for the given software into out_dir"""
m3u_filename = software.name + (suffix if suffix else '') + '.m3u'
if not dry_run:
m3u_fd = open(os.path.join(out_dir, m3u_file... | 31 | 79 | 0.633277 |
a500ed1e01eb7264848c0ee426a0677826902113 | 7,635 | py | Python | tests/test_uvscli.py | kouritron/uvs | 42a4241445360fd64fc09f39fb9a4b5e596d622c | [
"BSD-3-Clause"
] | null | null | null | tests/test_uvscli.py | kouritron/uvs | 42a4241445360fd64fc09f39fb9a4b5e596d622c | [
"BSD-3-Clause"
] | null | null | null | tests/test_uvscli.py | kouritron/uvs | 42a4241445360fd64fc09f39fb9a4b5e596d622c | [
"BSD-3-Clause"
] | null | null | null |
import os
import sys
import shutil
import io
# if you got module not found errors, uncomment these. PyCharm IDE does not need it.
# get the abs version of . and .. and append them to this process's path.
sys.path.append(os.path.abspath('..'))
sys.path.append(os.path.abspath('.'))
#print sys.path
import unittest
... | 31.549587 | 117 | 0.62816 |
a5011c8dc68549aa930d5e1f66b7f91d841322f1 | 388 | py | Python | segundos.py | rafabentoss/courses | ced3f5447dea38220b904678c601ed2bf7f2b0f1 | [
"CC0-1.0"
] | null | null | null | segundos.py | rafabentoss/courses | ced3f5447dea38220b904678c601ed2bf7f2b0f1 | [
"CC0-1.0"
] | null | null | null | segundos.py | rafabentoss/courses | ced3f5447dea38220b904678c601ed2bf7f2b0f1 | [
"CC0-1.0"
] | null | null | null | segundos_str = int(input("Por favor, entre com o nmero de segundos que deseja converter:"))
dias=segundos_str//86400
segs_restantes1=segundos_str%86400
horas=segs_restantes1//3600
segs_restantes2=segs_restantes1%3600
minutos=segs_restantes2//60
segs_restantes_final=segs_restantes2%60
print(dias,"dias,",horas... | 38.8 | 93 | 0.796392 |
a50155ac15b87a1b73c7f2ca4058bdf66488534d | 1,323 | py | Python | examples/cheb/example_dft.py | Hadrien-Montanelli/chebpy | c22f1f13b42b3c80f2e34be6e7136ef2d0277971 | [
"MIT"
] | 1 | 2020-12-02T10:17:26.000Z | 2020-12-02T10:17:26.000Z | examples/cheb/example_dft.py | Hadrien-Montanelli/chebpy | c22f1f13b42b3c80f2e34be6e7136ef2d0277971 | [
"MIT"
] | null | null | null | examples/cheb/example_dft.py | Hadrien-Montanelli/chebpy | c22f1f13b42b3c80f2e34be6e7136ef2d0277971 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 2 15:37:10 2020
Copyright 2020 by Hadrien Montanelli.
"""
# %% Imports.
# Standard library imports:
import numpy as np
# Chebpy imports:
from chebpy.cheb import chebpts, coeffs2vals, vals2coeffs
# %% Transforms (1D) on [-1,1].
f = lambda x: np.... | 23.625 | 57 | 0.619803 |
a501d89e850c922d43a99061a0daa6321c93954a | 870 | py | Python | src/balloons.py | cloudzfy/pychallenge | 1af98a632021532e136721d282b0e7c2cbc519a3 | [
"MIT"
] | 3 | 2016-07-23T03:31:46.000Z | 2019-08-22T01:23:07.000Z | src/balloons.py | cloudzfy/pychallenge | 1af98a632021532e136721d282b0e7c2cbc519a3 | [
"MIT"
] | null | null | null | src/balloons.py | cloudzfy/pychallenge | 1af98a632021532e136721d282b0e7c2cbc519a3 | [
"MIT"
] | 3 | 2017-05-22T09:41:20.000Z | 2018-09-06T02:05:19.000Z | import urllib
import StringIO
import gzip
from difflib import Differ
from binascii import unhexlify
import Image
src = urllib.urlopen('http://huge:file@www.pythonchallenge.com/pc/return/deltas.gz').read()
file = gzip.GzipFile(fileobj=StringIO.StringIO(src))
left = []
right = []
for line in file.readlines():
left.ap... | 24.166667 | 91 | 0.654023 |
a502ec147157338573c2ac7095c41e2a9d21ad73 | 515 | py | Python | titan/django_pkg/appmodule/__init__.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/django_pkg/appmodule/__init__.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | titan/django_pkg/appmodule/__init__.py | mnieber/gen | 65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9 | [
"MIT"
] | null | null | null | import moonleap.resource.props as P
from moonleap import create, extend
from moonleap.utils.case import kebab_to_camel, sn
from moonleap.verbs import has
from titan.django_pkg.djangoapp import DjangoApp
from .resources import AppModule # noqa
| 25.75 | 58 | 0.776699 |
a506b736c248be3b528126847b39f395938649f3 | 11,437 | py | Python | workload_auto/vsphere_helper.py | CiscoDevNet/dcnm-workload-automation | 36d439f0351b88492d21160c534e1260b9d43ca8 | [
"Apache-2.0"
] | null | null | null | workload_auto/vsphere_helper.py | CiscoDevNet/dcnm-workload-automation | 36d439f0351b88492d21160c534e1260b9d43ca8 | [
"Apache-2.0"
] | null | null | null | workload_auto/vsphere_helper.py | CiscoDevNet/dcnm-workload-automation | 36d439f0351b88492d21160c534e1260b9d43ca8 | [
"Apache-2.0"
] | 1 | 2020-07-07T14:53:14.000Z | 2020-07-07T14:53:14.000Z | # Copyright 2020 Cisco Systems, 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 la... | 40.129825 | 80 | 0.607677 |
a50784e85bfaff4fb71807d43ea79954cd711a55 | 23,041 | py | Python | teste.py | dkpm/ES-17-2 | b965400ab35dd0101c06cba14367090bf88a45a3 | [
"Apache-2.0"
] | null | null | null | teste.py | dkpm/ES-17-2 | b965400ab35dd0101c06cba14367090bf88a45a3 | [
"Apache-2.0"
] | 3 | 2019-08-05T23:08:42.000Z | 2019-08-05T23:14:17.000Z | teste.py | dkpm/ES-17-2 | b965400ab35dd0101c06cba14367090bf88a45a3 | [
"Apache-2.0"
] | null | null | null | import pytest
from principal import somar
from principal import sub
| 1,772.384615 | 22,903 | 0.004731 |
a5083f8e81dde75a4b99510e59a13a9684a3d9d3 | 1,042 | py | Python | TextureConversion/Scripts/InvertYellowNormal.py | Beatbox309/Unity-Texture-Conversion | 19fd59c34b8d6c1e528db8f220700d5b1ccef5a1 | [
"MIT"
] | null | null | null | TextureConversion/Scripts/InvertYellowNormal.py | Beatbox309/Unity-Texture-Conversion | 19fd59c34b8d6c1e528db8f220700d5b1ccef5a1 | [
"MIT"
] | null | null | null | TextureConversion/Scripts/InvertYellowNormal.py | Beatbox309/Unity-Texture-Conversion | 19fd59c34b8d6c1e528db8f220700d5b1ccef5a1 | [
"MIT"
] | null | null | null | from PIL import Image
from PIL import ImageChops
import pathlib
import sys
sys.path.append(str(pathlib.Path(__file__).parent.absolute()))
import TextureConversionMain as tcm
ogNormalPath = ""
with open(str(pathlib.Path(__file__).parent.absolute()) + '\\' + "Temp.txt") as file:
line = file.readline... | 26.05 | 86 | 0.673704 |
a508b46bb0fbec56198e8d643e6c23a47a292553 | 1,695 | py | Python | mininet_scripts/simple_net.py | kulawczukmarcin/mypox | b6a0a3cbfc911f94d0ed2ba5c968025879691eab | [
"Apache-2.0"
] | null | null | null | mininet_scripts/simple_net.py | kulawczukmarcin/mypox | b6a0a3cbfc911f94d0ed2ba5c968025879691eab | [
"Apache-2.0"
] | null | null | null | mininet_scripts/simple_net.py | kulawczukmarcin/mypox | b6a0a3cbfc911f94d0ed2ba5c968025879691eab | [
"Apache-2.0"
] | null | null | null | __author__ = 'Ehsan'
from mininet.node import CPULimitedHost
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.log import setLogLevel, info
from mininet.node import RemoteController
from mininet.cli import CLI
"""
Instructions to run the topo:
1. Go to directory where this fil is.
2. ru... | 26.904762 | 79 | 0.635988 |
a509787b777a426526c085c8fcec56b5e9a290ec | 5,806 | py | Python | .ci/watchdog/MSTeamsCommunicator.py | NervanaSystems/ngraph-onnx | 7fdb4e503a796ef3871927c550d1245e37cb6ffa | [
"Apache-2.0",
"MIT"
] | 47 | 2018-03-17T00:30:59.000Z | 2021-11-14T17:18:57.000Z | .ci/watchdog/MSTeamsCommunicator.py | NervanaSystems/ngraph-onnx | 7fdb4e503a796ef3871927c550d1245e37cb6ffa | [
"Apache-2.0",
"MIT"
] | 272 | 2018-03-22T14:31:09.000Z | 2022-03-24T20:51:04.000Z | .ci/watchdog/MSTeamsCommunicator.py | NervanaSystems/ngraph-onnx | 7fdb4e503a796ef3871927c550d1245e37cb6ffa | [
"Apache-2.0",
"MIT"
] | 20 | 2018-04-03T14:53:58.000Z | 2021-03-13T01:21:26.000Z | #!/usr/bin/python3
# INTEL CONFIDENTIAL
# Copyright 2018-2020 Intel Corporation
# The source code contained or described herein and all documents related to the
# source code ("Material") are owned by Intel Corporation or its suppliers or
# licensors. Title to the Material remains with Intel Corporation or its
# suppl... | 40.319444 | 92 | 0.59783 |
a50994e7a70e911cc583b9d0550f81e22ad4842b | 4,301 | py | Python | script/create_buy_point_data_window.py | AtlantixJJ/vnpy | 28992c7d5391f6dd42a14b481d01ceafde048b5f | [
"MIT"
] | null | null | null | script/create_buy_point_data_window.py | AtlantixJJ/vnpy | 28992c7d5391f6dd42a14b481d01ceafde048b5f | [
"MIT"
] | null | null | null | script/create_buy_point_data_window.py | AtlantixJJ/vnpy | 28992c7d5391f6dd42a14b481d01ceafde048b5f | [
"MIT"
] | null | null | null | """Create wave training data.
Automatically annotate data by identifying waves. The begining,
middle and ending are obtained. Windows around these points are
collected as training data. They are organized in years.
"""
import sys, glob, os
path = os.getcwd()
sys.path.insert(0, ".")
from datetime import datetime
from v... | 33.341085 | 81 | 0.56359 |
a50a1a9c4d80a795f5268abc078ed222ed04076c | 1,087 | py | Python | python/plants/common.py | djcroissant/leds | dec0d963e7d325413d1fedde606039b8baee8c70 | [
"BSD-2-Clause"
] | null | null | null | python/plants/common.py | djcroissant/leds | dec0d963e7d325413d1fedde606039b8baee8c70 | [
"BSD-2-Clause"
] | null | null | null | python/plants/common.py | djcroissant/leds | dec0d963e7d325413d1fedde606039b8baee8c70 | [
"BSD-2-Clause"
] | null | null | null | import time
from neopixel import Adafruit_NeoPixel
import argparse
# Pixel class corresponds to a light strip
# It stores the strip, characteristics, and state
| 38.821429 | 110 | 0.698252 |
a50bf5796e4acbc1519350c7c0f92a9d2b1f20f3 | 24 | py | Python | aldryn_django_cms/__init__.py | vladimir-bezrukov/Aldryn-Django-cms | 0edac2ee0d14fada9e960afe99750b343ceeb706 | [
"BSD-3-Clause"
] | 1 | 2021-11-04T17:46:35.000Z | 2021-11-04T17:46:35.000Z | aldryn_django_cms/__init__.py | vladimir-bezrukov/Aldryn-Django-cms | 0edac2ee0d14fada9e960afe99750b343ceeb706 | [
"BSD-3-Clause"
] | null | null | null | aldryn_django_cms/__init__.py | vladimir-bezrukov/Aldryn-Django-cms | 0edac2ee0d14fada9e960afe99750b343ceeb706 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '3.6.0.1'
| 12 | 23 | 0.625 |
a50bf6879a17e8768e2814595f2b630927b697b3 | 1,730 | py | Python | sublime_cscope/settings.py | jgust/SublimeCscope | 8ae008f4805ad6edad7c8bf0d258eb7947da26a0 | [
"MIT"
] | 7 | 2015-05-19T15:11:11.000Z | 2019-10-22T19:16:39.000Z | sublime_cscope/settings.py | jgust/SublimeCscope | 8ae008f4805ad6edad7c8bf0d258eb7947da26a0 | [
"MIT"
] | 2 | 2017-03-12T16:23:06.000Z | 2021-08-24T18:53:29.000Z | sublime_cscope/settings.py | jgust/SublimeCscope | 8ae008f4805ad6edad7c8bf0d258eb7947da26a0 | [
"MIT"
] | 1 | 2016-03-24T09:15:39.000Z | 2016-03-24T09:15:39.000Z |
import sublime
from ..SublimeCscope import PACKAGE_NAME
SETTING_DEFAULTS = {
'index_file_extensions': [
".c",
".cc",
".cpp",
... | 35.306122 | 77 | 0.402312 |
a50c1f5e4892b6121f54443ad132dddd426c06de | 1,393 | py | Python | blog.py | robotoART/multi-user-blog | 4078f913df9e6b5010d7a2144cca89550a8ee533 | [
"BSD-3-Clause"
] | null | null | null | blog.py | robotoART/multi-user-blog | 4078f913df9e6b5010d7a2144cca89550a8ee533 | [
"BSD-3-Clause"
] | null | null | null | blog.py | robotoART/multi-user-blog | 4078f913df9e6b5010d7a2144cca89550a8ee533 | [
"BSD-3-Clause"
] | null | null | null | import os
import re
from string import letters
import random
import hashlib
import hmac
import webapp2
import jinja2
from jinja2 import Environment
from google.appengine.ext import db
from utils.Utils import Utils
from models.Comment import Comment
from models.Post import Post
from models.User import User
from han... | 26.788462 | 52 | 0.725054 |
a50cc4e2779045bd523e797e37d15a965dda09d9 | 5,784 | py | Python | {{cookiecutter.dir_name}}/script.py | TAMU-CPT/cc_automated_drf_template | c538f01ea90bae98ee051a6a2fd977d3dd595cde | [
"BSD-3-Clause"
] | 14 | 2016-10-07T21:59:03.000Z | 2020-03-03T17:08:49.000Z | {{cookiecutter.dir_name}}/script.py | TAMU-CPT/cc_automated_drf_template | c538f01ea90bae98ee051a6a2fd977d3dd595cde | [
"BSD-3-Clause"
] | 6 | 2016-10-07T19:48:21.000Z | 2019-03-14T12:41:50.000Z | {{cookiecutter.dir_name}}/script.py | TAMU-CPT/drf_template | c538f01ea90bae98ee051a6a2fd977d3dd595cde | [
"BSD-3-Clause"
] | 3 | 2017-03-15T08:32:04.000Z | 2018-02-05T22:09:50.000Z | import ast, _ast, subprocess, os, argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Populate serializers, views, urls, and admin based on models.py')
parser.add_argument('--disable_venv', help='Disable creation of virtual environment', action="store_true")
parser.add_argumen... | 45.1875 | 158 | 0.510028 |
a50cd6a066649f21e84260aa02f2b64721a82778 | 1,188 | py | Python | src/jemo/plugins/base.py | jazzycamel/jemo | 172a28cb9c4f75efeaf7640ce6b77d720f6e713e | [
"MIT"
] | null | null | null | src/jemo/plugins/base.py | jazzycamel/jemo | 172a28cb9c4f75efeaf7640ce6b77d720f6e713e | [
"MIT"
] | null | null | null | src/jemo/plugins/base.py | jazzycamel/jemo | 172a28cb9c4f75efeaf7640ce6b77d720f6e713e | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Callable
| 24.75 | 73 | 0.588384 |
a50efc49b461946cdc6009e1f50501249fdfce34 | 2,038 | py | Python | search/views.py | stefanilie/hashtag | 2058f2514e06401e36ab254ba42b25bbd7558f19 | [
"FTL"
] | null | null | null | search/views.py | stefanilie/hashtag | 2058f2514e06401e36ab254ba42b25bbd7558f19 | [
"FTL"
] | null | null | null | search/views.py | stefanilie/hashtag | 2058f2514e06401e36ab254ba42b25bbd7558f19 | [
"FTL"
] | null | null | null | import sys
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import Http404, HttpResponse, HttpResponseRedirect
from .forms import SearchForm
from .models import Search
#add options for popular, recent, no. of results,
#todo: get tweets by above function and use id... | 29.114286 | 203 | 0.762512 |
a50f9f33df8927431578a0e644348f580030945d | 975 | py | Python | BackendAPI/customuser/utils.py | silvioramalho/django-startup-rest-api | b984ee6be27990d29ab3df7cdd446bb63ee3ee34 | [
"MIT"
] | 9 | 2020-05-23T14:42:00.000Z | 2022-03-04T12:21:00.000Z | BackendAPI/customuser/utils.py | silvioramalho/django-startup-rest-api | b984ee6be27990d29ab3df7cdd446bb63ee3ee34 | [
"MIT"
] | 6 | 2020-05-14T21:34:09.000Z | 2021-09-22T19:01:15.000Z | BackendAPI/customuser/utils.py | silvioramalho/django-startup-rest-api | b984ee6be27990d29ab3df7cdd446bb63ee3ee34 | [
"MIT"
] | 1 | 2022-03-04T12:20:52.000Z | 2022-03-04T12:20:52.000Z | from datetime import datetime
from calendar import timegm
from rest_framework_jwt.compat import get_username, get_username_field
from rest_framework_jwt.settings import api_settings
def jwt_otp_payload(user, device = None):
"""
Opcionalmente inclui o Device TOP no payload do JWT
"""
username_field = ... | 28.676471 | 70 | 0.683077 |
a5107265c6aab9b94bc89f42e8734a161ea23572 | 1,361 | py | Python | bayesvp_try.py | ais97/bayesvp | dedf38dd7236f040301a84e5578f7202a2da07aa | [
"MIT"
] | null | null | null | bayesvp_try.py | ais97/bayesvp | dedf38dd7236f040301a84e5578f7202a2da07aa | [
"MIT"
] | null | null | null | bayesvp_try.py | ais97/bayesvp | dedf38dd7236f040301a84e5578f7202a2da07aa | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 15 18:36:44 2021
@author: aiswarya
"""
#import sys
#sys.path.append('/home/aiswarya/bayesvp')
from bayesvp.scripts import bvp_write_config as wc
from bayesvp.scripts import bvp_process_model as pm
from bayesvp.scripts import bvpfit as fit
from baye... | 23.877193 | 66 | 0.714916 |
a511699f0080c5e2bd9b9726e7f19dac525f2d43 | 3,781 | py | Python | extras/tally_results_ucf24.py | salmank255/ROADSlowFast | e939d8f79fe3eb6f3dd32e967a34530d00f45c8e | [
"Apache-2.0"
] | null | null | null | extras/tally_results_ucf24.py | salmank255/ROADSlowFast | e939d8f79fe3eb6f3dd32e967a34530d00f45c8e | [
"Apache-2.0"
] | null | null | null | extras/tally_results_ucf24.py | salmank255/ROADSlowFast | e939d8f79fe3eb6f3dd32e967a34530d00f45c8e | [
"Apache-2.0"
] | null | null | null |
"""
This script load and tally the result of UCF24 dataset in latex format.
"""
import os
import json
if __name__ == '__main__':
base = '/mnt/mercury-alpha/ucf24/cache/resnet50'
modes = [['frames',['frame_actions', 'action_ness', 'action']],
['video',['action',]]]
logger = open('results_ucf2... | 47.860759 | 244 | 0.370008 |
a5122092a80427855c3a9e857644775cb315bcb9 | 322 | py | Python | sayhello/settings.py | wangnalin/test | cf721108983d824433af8afb507e602237533369 | [
"MIT"
] | null | null | null | sayhello/settings.py | wangnalin/test | cf721108983d824433af8afb507e602237533369 | [
"MIT"
] | null | null | null | sayhello/settings.py | wangnalin/test | cf721108983d824433af8afb507e602237533369 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
author:wnl
date: 2018-12-7
"""
import os
from sayhello import app
dev_db = 'mysql+pymysql://root:root.123@192.168.100.105:3306/sayhello2'
SECRET_KEY = os.getenv('SECRRET','secret string')
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URI',dev_db)... | 20.125 | 71 | 0.726708 |
a5140c77514670cc1d68ea51faa3667ecc7cdf73 | 10,325 | py | Python | src/acquisition/wiki/wiki_download.py | eujing/delphi-epidata | 7281a7525b20e48147049229a9faa0cb97340427 | [
"MIT"
] | 1 | 2021-12-29T04:00:21.000Z | 2021-12-29T04:00:21.000Z | src/acquisition/wiki/wiki_download.py | eujing/delphi-epidata | 7281a7525b20e48147049229a9faa0cb97340427 | [
"MIT"
] | 1 | 2020-07-14T15:35:15.000Z | 2020-07-16T17:56:30.000Z | src/acquisition/wiki/wiki_download.py | eujing/delphi-epidata | 7281a7525b20e48147049229a9faa0cb97340427 | [
"MIT"
] | 4 | 2020-09-17T13:47:02.000Z | 2020-10-27T19:40:11.000Z | """
===============
=== Purpose ===
===============
Downloads wiki access logs and stores unprocessed article counts
See also: wiki.py
Note: for maximum portability, this program is compatible with both Python2 and
Python3 and has no external dependencies (e.g. running on AWS)
=================
=== Changelog ===
=... | 35.97561 | 144 | 0.644262 |
a514a8f70721796a5a67c93ce02d723310bc48b4 | 1,166 | py | Python | aiida_fleur/tests/tools/test_io_routines.py | Tseplyaev/aiida-fleur | 5de36d8b235e4b4edd908e7a0cb594112a461eb5 | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_io_routines.py | Tseplyaev/aiida-fleur | 5de36d8b235e4b4edd908e7a0cb594112a461eb5 | [
"MIT"
] | null | null | null | aiida_fleur/tests/tools/test_io_routines.py | Tseplyaev/aiida-fleur | 5de36d8b235e4b4edd908e7a0cb594112a461eb5 | [
"MIT"
] | null | null | null |
# write_results_to_file
def test_write_results_to_file_interface():
"""
is the basic file writter wraper working as indended
"""
from aiida_fleur.tools.io_routines import write_results_to_file
from os.path import isfile, abspath
from os import remove
#import os
from numpy import array... | 26.5 | 74 | 0.701544 |
a51500997a9858263339a466d1f8dbc998e0d17e | 851 | py | Python | app/main.py | BloomTech-Labs/family-promise-service-tracker-ds-a | 1190c1f5fce55ec265a8a42b968aa1f8aea52ac6 | [
"MIT"
] | 4 | 2021-08-02T20:45:37.000Z | 2021-09-03T19:42:55.000Z | app/main.py | BloomTech-Labs/family-promise-service-tracker-ds-a | 1190c1f5fce55ec265a8a42b968aa1f8aea52ac6 | [
"MIT"
] | 22 | 2021-06-02T19:28:21.000Z | 2021-09-15T15:09:48.000Z | app/main.py | Lambda-School-Labs/family-promise-service-tracker-ds-a | 1190c1f5fce55ec265a8a42b968aa1f8aea52ac6 | [
"MIT"
] | 12 | 2021-06-02T09:30:14.000Z | 2021-09-27T20:21:00.000Z | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app import db, viz, eligibility, metrics, geocode
app = FastAPI(
title='DS API - Family Promise',
docs_url='/',
version='0.39.6',
)
app.include_router(db.router, tags=['Database'])
app.include_router(viz.router, tags=['V... | 25.029412 | 60 | 0.703878 |
a515480d246a94b3a03edbf99bee0fcd4f9d88f2 | 2,033 | py | Python | scripts/make_binarized_masks.py | GUIEEN/acres | ed2ab521bbec866d1588216abfce8532ce28a5e9 | [
"MIT"
] | 10 | 2019-01-03T15:31:03.000Z | 2020-03-19T06:14:50.000Z | scripts/make_binarized_masks.py | GUIEEN/acres | ed2ab521bbec866d1588216abfce8532ce28a5e9 | [
"MIT"
] | 3 | 2020-05-11T12:13:15.000Z | 2021-01-03T02:13:10.000Z | scripts/make_binarized_masks.py | GUIEEN/acres | ed2ab521bbec866d1588216abfce8532ce28a5e9 | [
"MIT"
] | 3 | 2020-07-26T12:58:18.000Z | 2021-04-09T10:56:23.000Z | """
Take a directory of images and their segmentation masks (which only contain two classes - inside and outside)
and split the inside class into black and white. Save the resulting masks.
"""
import argparse
import os
import numpy as np
import cv2
if __name__ == '__main__':
main()
| 34.457627 | 109 | 0.638465 |
a515c5bdd107724d285d97362ef20d1a0f5ac85d | 1,097 | py | Python | tests/syngenta_digital_dta/elasticsearch/test_es_connector.py | syngenta-digital/dta-python | 2f313964bdc2b733b47c874b18bd72ebf5ed8817 | [
"Apache-2.0"
] | null | null | null | tests/syngenta_digital_dta/elasticsearch/test_es_connector.py | syngenta-digital/dta-python | 2f313964bdc2b733b47c874b18bd72ebf5ed8817 | [
"Apache-2.0"
] | 62 | 2020-12-02T02:59:14.000Z | 2021-10-01T01:08:07.000Z | tests/syngenta_digital_dta/elasticsearch/test_es_connector.py | syngenta-digital/dta-python | 2f313964bdc2b733b47c874b18bd72ebf5ed8817 | [
"Apache-2.0"
] | null | null | null | import uuid
import unittest
import warnings
import json
from syngenta_digital_dta.elasticsearch.es_connector import ESConnector
from tests.syngenta_digital_dta.elasticsearch.mocks import MockESAdapter
| 36.566667 | 122 | 0.74567 |
a51637bfb757b0164488ef03723963eb419dd5ee | 6,293 | py | Python | initialize.py | WiseDoge/Text-Classification-PyTorch | 9371eeed6bd7ecf1d529c8f2a6c997fcde67a559 | [
"MIT"
] | 6 | 2019-08-04T13:24:24.000Z | 2020-09-28T12:12:21.000Z | initialize.py | WiseDoge/Text-Classification-PyTorch | 9371eeed6bd7ecf1d529c8f2a6c997fcde67a559 | [
"MIT"
] | null | null | null | initialize.py | WiseDoge/Text-Classification-PyTorch | 9371eeed6bd7ecf1d529c8f2a6c997fcde67a559 | [
"MIT"
] | null | null | null | from typing import List, Dict
from collections import defaultdict
from pathlib import Path
from util import save_dataset, save_word_dict, save_embedding
import torch
import argparse
import nltk
import re
import logging
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(name)s - %(level... | 37.458333 | 139 | 0.658033 |
a517e42fabf9ac9063a6459d9056fdf167f23154 | 9,422 | py | Python | src/BERT_NER/utils_preprocess/anntoconll.py | philippeitis/StackOverflowNER | 2a1efd8d88356de4a04e510a5ccfe85992fc8d8c | [
"MIT"
] | null | null | null | src/BERT_NER/utils_preprocess/anntoconll.py | philippeitis/StackOverflowNER | 2a1efd8d88356de4a04e510a5ccfe85992fc8d8c | [
"MIT"
] | null | null | null | src/BERT_NER/utils_preprocess/anntoconll.py | philippeitis/StackOverflowNER | 2a1efd8d88356de4a04e510a5ccfe85992fc8d8c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Convert text and standoff annotations into CoNLL format.
import re
import sys
from pathlib import Path
# assume script in brat tools/ directory, extend path to find sentencesplit.py
sys.path.append(str(Path(__file__).parent))
sys.path.append('.')
from sentencesplit import sentencebreaks_to_... | 29.628931 | 103 | 0.594884 |
a51b1c0fe48c6f6a0c51d7e391fb9492bd28a19a | 5,509 | py | Python | EfficientObjectDetection/dataset/dataloader_ete.py | JunHyungKang/SAROD_ICIP | 71585951f64dc1cc22ed72900eff81f747edec77 | [
"MIT"
] | null | null | null | EfficientObjectDetection/dataset/dataloader_ete.py | JunHyungKang/SAROD_ICIP | 71585951f64dc1cc22ed72900eff81f747edec77 | [
"MIT"
] | null | null | null | EfficientObjectDetection/dataset/dataloader_ete.py | JunHyungKang/SAROD_ICIP | 71585951f64dc1cc22ed72900eff81f747edec77 | [
"MIT"
] | 1 | 2020-12-27T05:24:19.000Z | 2020-12-27T05:24:19.000Z | import pandas as pd
import numpy as np
import warnings
import os
from torch.utils.data.dataset import Dataset
from PIL import Image
Image.MAX_IMAGE_PIXELS = None
warnings.simplefilter('ignore', Image.DecompressionBombWarning)
| 34.217391 | 136 | 0.622254 |
a51c924df2a2764415545da28cdbfc63cde5829d | 6,236 | py | Python | tests/test.py | angstwad/datemike | da84df48022c4067a28182e9bb53434c8f5010bc | [
"Apache-2.0"
] | 8 | 2015-01-30T01:42:02.000Z | 2019-04-05T10:50:42.000Z | tests/test.py | angstwad/datemike | da84df48022c4067a28182e9bb53434c8f5010bc | [
"Apache-2.0"
] | null | null | null | tests/test.py | angstwad/datemike | da84df48022c4067a28182e9bb53434c8f5010bc | [
"Apache-2.0"
] | 3 | 2016-06-27T11:23:38.000Z | 2018-03-05T21:37:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from collections import OrderedDict
import unittest
import yaml
from datemike import ansible, base, utils
from datemike.providers import rackspace
desired_task_yaml = """name: Create Cloud Server(s)
rax:
exact_count: true
flavor: performance1-1
image: image-ubuntu-... | 32.821053 | 78 | 0.59814 |
a51d4b9577b8109ecc4fe05e8b1f90f8ad9d6edf | 1,100 | py | Python | update_others.py | XiaogangHe/cv | 814fabeb93c6302526ad0fca79587bf3fbd2a0ea | [
"CC-BY-4.0"
] | null | null | null | update_others.py | XiaogangHe/cv | 814fabeb93c6302526ad0fca79587bf3fbd2a0ea | [
"CC-BY-4.0"
] | null | null | null | update_others.py | XiaogangHe/cv | 814fabeb93c6302526ad0fca79587bf3fbd2a0ea | [
"CC-BY-4.0"
] | 1 | 2020-12-20T08:02:39.000Z | 2020-12-20T08:02:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
import re
import json
import requests
if __name__ == "__main__":
update_others()
| 23.913043 | 76 | 0.571818 |
eb47b43bc4e1a81b0b221c391bba44d51529910a | 1,451 | py | Python | haminfo/db/models/request.py | hemna/haminfo | 86db93536075999afa086fda84f10c1911af0375 | [
"Apache-2.0"
] | null | null | null | haminfo/db/models/request.py | hemna/haminfo | 86db93536075999afa086fda84f10c1911af0375 | [
"Apache-2.0"
] | null | null | null | haminfo/db/models/request.py | hemna/haminfo | 86db93536075999afa086fda84f10c1911af0375 | [
"Apache-2.0"
] | null | null | null | import sqlalchemy as sa
import datetime
from haminfo.db.models.modelbase import ModelBase
| 30.87234 | 80 | 0.582357 |
eb484101042d34d5df09759540c4072f649685da | 720 | py | Python | src/models/entities/user.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | 2 | 2022-03-05T18:54:15.000Z | 2022-03-24T12:19:22.000Z | src/models/entities/user.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | null | null | null | src/models/entities/user.py | lokaimoma/Flask-QR-Code-Web-APP | 5789753757aa1939119a799cbc6bda023ea75bbc | [
"MIT"
] | null | null | null | # Created by Kelvin_Clark on 3/3/2022, 4:58 PM
from src import database as db
| 34.285714 | 108 | 0.679167 |
eb49b2cbd9ad1ebc523230ba0859acde197afa9b | 1,166 | py | Python | Box_Plot.py | johndunne2019/pands-project | 4a544be7a4074dc8a277775981b3619239c45872 | [
"Apache-2.0"
] | null | null | null | Box_Plot.py | johndunne2019/pands-project | 4a544be7a4074dc8a277775981b3619239c45872 | [
"Apache-2.0"
] | null | null | null | Box_Plot.py | johndunne2019/pands-project | 4a544be7a4074dc8a277775981b3619239c45872 | [
"Apache-2.0"
] | null | null | null | # 2019-04-24
# John Dunne
# Box plot of the data set
# pandas box plot documentation: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.boxplot.html
print("The box plot will appear on the screen momentarily")
import matplotlib.pyplot as pl
import pandas as pd
# imported the libraries needed an... | 61.368421 | 150 | 0.779588 |
eb4a3d4d9082fcac0d03dfdabc44cb8a2905e9b2 | 2,677 | py | Python | myteam/migrations/0001_initial.py | raymundosaraiva/fifa_myteam | 3b813cdffb63449dbfca96350529f9fde17b5025 | [
"MIT"
] | null | null | null | myteam/migrations/0001_initial.py | raymundosaraiva/fifa_myteam | 3b813cdffb63449dbfca96350529f9fde17b5025 | [
"MIT"
] | null | null | null | myteam/migrations/0001_initial.py | raymundosaraiva/fifa_myteam | 3b813cdffb63449dbfca96350529f9fde17b5025 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-06-08 21:37
from django.db import migrations, models
| 43.885246 | 114 | 0.525215 |
eb4a80f052270cf773713e6f31e00575e901cca2 | 3,921 | py | Python | tortoise/contrib/test/__init__.py | EtzelWu/tortoise-orm | 6a79c87169c10ff25b0d84bca4db24f0c0737432 | [
"Apache-2.0"
] | null | null | null | tortoise/contrib/test/__init__.py | EtzelWu/tortoise-orm | 6a79c87169c10ff25b0d84bca4db24f0c0737432 | [
"Apache-2.0"
] | null | null | null | tortoise/contrib/test/__init__.py | EtzelWu/tortoise-orm | 6a79c87169c10ff25b0d84bca4db24f0c0737432 | [
"Apache-2.0"
] | null | null | null | import asyncio as _asyncio
import os as _os
from unittest import SkipTest, expectedFailure, skip, skipIf, skipUnless # noqa
from asynctest import TestCase as _TestCase
from asynctest import _fail_on
from tortoise import Tortoise as _Tortoise
from tortoise.backends.base.client import BaseDBAsyncClient as _BaseDBAsync... | 32.139344 | 97 | 0.678908 |
eb4ad53306cf5e9ef12e757a378a6da18b7e9027 | 1,129 | py | Python | streamkinect2/common.py | rjw57/streamkinect2 | 967fc9855cff1f980e75f5330530d9eb6dc37e5a | [
"BSD-2-Clause"
] | 3 | 2015-09-19T06:55:22.000Z | 2018-03-31T06:51:31.000Z | streamkinect2/common.py | rjw57/streamkinect2 | 967fc9855cff1f980e75f5330530d9eb6dc37e5a | [
"BSD-2-Clause"
] | null | null | null | streamkinect2/common.py | rjw57/streamkinect2 | 967fc9855cff1f980e75f5330530d9eb6dc37e5a | [
"BSD-2-Clause"
] | null | null | null | """
Common elements for both client and server
==========================================
"""
import enum
import json
def make_msg(type, payload):
if payload is None:
return [type.value,]
return [type.value, json.dumps(payload).encode('utf8')]
def parse_msg(msg):
if len(msg) == 1:
return ... | 23.040816 | 91 | 0.616475 |
eb4b3a57c36fb29e43b2cced38581d7861670f8e | 1,639 | py | Python | utils.py | josslei/Gender-Detection | 51c122eddeb33caf9350a3d974b0842fdc329527 | [
"BSD-3-Clause"
] | null | null | null | utils.py | josslei/Gender-Detection | 51c122eddeb33caf9350a3d974b0842fdc329527 | [
"BSD-3-Clause"
] | null | null | null | utils.py | josslei/Gender-Detection | 51c122eddeb33caf9350a3d974b0842fdc329527 | [
"BSD-3-Clause"
] | null | null | null | import torch
import torchvision.datasets as datasets
import torchvision.transforms as transforms
import os
import sys
if __name__ == '__main__':
if input('Are you sure to start calculating mean and std? [y/n] ') != y:
exit()
if len(sys.argv) != 2:
print('Please specify the path of the dataset')... | 34.145833 | 99 | 0.633923 |
eb4bd3ef93523276a029ce74696a58d6dbda7df8 | 1,791 | py | Python | tests/infrastructure/test_hashing_clients.py | enchainte/enchainte-sdk-py | d7e6803cb941ae929bca9bb00584aa5b4853689a | [
"MIT"
] | 1 | 2021-11-21T22:02:49.000Z | 2021-11-21T22:02:49.000Z | tests/infrastructure/test_hashing_clients.py | enchainte/enchainte-sdk-py | d7e6803cb941ae929bca9bb00584aa5b4853689a | [
"MIT"
] | 1 | 2021-09-16T20:19:04.000Z | 2021-09-16T20:19:04.000Z | tests/infrastructure/test_hashing_clients.py | enchainte/enchainte-sdk-py | d7e6803cb941ae929bca9bb00584aa5b4853689a | [
"MIT"
] | 1 | 2021-12-10T10:22:30.000Z | 2021-12-10T10:22:30.000Z | from unittest import TestCase
from bloock.infrastructure.hashing.blake2b import Blake2b
from bloock.infrastructure.hashing.keccak import Keccak
| 38.106383 | 86 | 0.731993 |
eb4c777d1ec0e0f2de5615f741bc3013f401e213 | 7,395 | py | Python | simscale_sdk/models/time_step_animation_output_settings_all_of.py | SimScaleGmbH/simscale-python-sdk | 34c881ca0be87e2b0bb315a9fee1d73f0da61e78 | [
"MIT"
] | 8 | 2021-01-22T13:41:03.000Z | 2022-01-03T09:00:10.000Z | simscale_sdk/models/time_step_animation_output_settings_all_of.py | eljoelopez/simscale-python-sdk | 189f1337b2ab40feed123111ddead0cdecf83c93 | [
"MIT"
] | null | null | null | simscale_sdk/models/time_step_animation_output_settings_all_of.py | eljoelopez/simscale-python-sdk | 189f1337b2ab40feed123111ddead0cdecf83c93 | [
"MIT"
] | 3 | 2021-03-18T15:52:52.000Z | 2022-01-03T08:59:30.000Z | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
def to_str(self):
"""Returns the string representation of the... | 35.214286 | 142 | 0.640838 |
eb4c825a43f6f758f6c0778489d3efdfec3dabf7 | 1,143 | py | Python | metastore/configurations/repository.py | metastore-developers/metastore | 56397e5c81f6b6b4b408b458bcfe09191945cff2 | [
"BSD-3-Clause"
] | null | null | null | metastore/configurations/repository.py | metastore-developers/metastore | 56397e5c81f6b6b4b408b458bcfe09191945cff2 | [
"BSD-3-Clause"
] | null | null | null | metastore/configurations/repository.py | metastore-developers/metastore | 56397e5c81f6b6b4b408b458bcfe09191945cff2 | [
"BSD-3-Clause"
] | null | null | null | '''
Repository configuration model.
'''
from typing import Dict, List, Literal, Optional
from .. import types
from .configuration import Configuration
__all__ = [
'RepositoryConfiguration'
]
| 25.4 | 60 | 0.695538 |
eb4d61456ea19420d3829d735a469004c45d21d0 | 970 | py | Python | python/277.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/277.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | python/277.py | kylekanos/project-euler-1 | af7089356a4cea90f8ef331cfdc65e696def6140 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-09-17T00:55:58.000Z | 2019-09-17T00:55:58.000Z | #!/usr/bin/env python
moves='UDDDUdddDDUDDddDdDddDDUDDdUUD'
a=0
b=0
d=0
for m in moves:
if m=='D': d += 1
if m=='U':
a+=2
b*=4
b+=2*3**d
d+=1
if m=='d':
a+=1
b*=2
b-=3**d
d+=1
# we may then use phi(3*3^d)==phi(3^30)==3^30-3^29 in order
# to ... | 19.4 | 61 | 0.43299 |
eb4eec18185b7f1ef93165dd8d50086af9250306 | 4,708 | py | Python | waveletcodec/wave.py | zenathark/jg.waveletcodec | 7994dd18ef5472e7e4d6447062cf4dc3c2f6463f | [
"MIT"
] | 1 | 2017-05-14T01:42:18.000Z | 2017-05-14T01:42:18.000Z | waveletcodec/wave.py | zenathark/jg.waveletcodec | 7994dd18ef5472e7e4d6447062cf4dc3c2f6463f | [
"MIT"
] | null | null | null | waveletcodec/wave.py | zenathark/jg.waveletcodec | 7994dd18ef5472e7e4d6447062cf4dc3c2f6463f | [
"MIT"
] | null | null | null | """Represent a Wavelet Coefficient Set.
.. module::wave
:platform: Unix, Windows
.. modelauthor:: Juan C Galan-Hernandez <jcgalanh@gmail.com>
"""
import numpy as np
import waveletcodec.tools as tools
import waveletcodec.lwt as lwt
import cv2
import math
#Constant Section
CDF97 = 1
#End
_CDF97 = lwt.FilterBa... | 26.301676 | 79 | 0.591334 |
eb500447316c707e8ab27d9672035cbf09dc6dee | 972 | py | Python | Easy/Paint_Cost.py | vinayvinu500/Sololearn | 82ea8c41ae52c265cc37b8bf126ea3cfaf2c5500 | [
"MIT"
] | null | null | null | Easy/Paint_Cost.py | vinayvinu500/Sololearn | 82ea8c41ae52c265cc37b8bf126ea3cfaf2c5500 | [
"MIT"
] | null | null | null | Easy/Paint_Cost.py | vinayvinu500/Sololearn | 82ea8c41ae52c265cc37b8bf126ea3cfaf2c5500 | [
"MIT"
] | null | null | null | """
Paint costs
You are getting ready to paint a piece of art. The canvas and brushes that you want to use will cost 40.00. Each color of paint that you buy is an additional 5.00. Determine how much money you will need based on the number of colors that you want to buy if tax at this store is 10%.
Task
Given the to... | 33.517241 | 282 | 0.748971 |
eb5060a785cfcf182925ba2ff985ffd151afd8b7 | 1,598 | py | Python | pr2roc/pr_curve.py | ameya98/roc2pr | ab19d7552e2e9ae32ca00a1be4a17b29a3f915fa | [
"MIT"
] | 1 | 2020-09-08T14:51:48.000Z | 2020-09-08T14:51:48.000Z | pr2roc/pr_curve.py | ameya98/pr2roc | ab19d7552e2e9ae32ca00a1be4a17b29a3f915fa | [
"MIT"
] | null | null | null | pr2roc/pr_curve.py | ameya98/pr2roc | ab19d7552e2e9ae32ca00a1be4a17b29a3f915fa | [
"MIT"
] | null | null | null | from __future__ import division
from .curve import Curve
from numpy import min, max, seterr
seterr(all='raise') | 35.511111 | 110 | 0.615144 |
eb50a4e886b2a04a462c9218f1a0436f4b1e8244 | 3,384 | py | Python | blg604ehw2/utils.py | cbekar/DRL_HW2 | 5ecb12ee1d5d545d5059afb4cf578881acb1f00e | [
"MIT"
] | null | null | null | blg604ehw2/utils.py | cbekar/DRL_HW2 | 5ecb12ee1d5d545d5059afb4cf578881acb1f00e | [
"MIT"
] | null | null | null | blg604ehw2/utils.py | cbekar/DRL_HW2 | 5ecb12ee1d5d545d5059afb4cf578881acb1f00e | [
"MIT"
] | null | null | null | """ Utilities for homework 2.
Function "log_progress" is adapted from:
https://github.com/kuk/log-progress
"""
import matplotlib.pyplot as plt
import numpy as np
import torch
from ipywidgets import IntProgress, HTML, VBox
from IPython.display import display
from blg604ehw2.atari_wrapper import LazyFrames
de... | 31.333333 | 76 | 0.589835 |
eb51353e72618f1a090e46e7c1c65e0cc24ef776 | 17,982 | py | Python | tests/lib/bes/archive/test_archive_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | tests/lib/bes/archive/test_archive_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | tests/lib/bes/archive/test_archive_util.py | reconstruir/bes | 82ff54b2dadcaef6849d7de424787f1dedace85c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*-
from bes.testing.unit_test import unit_test
from bes.archive.archive_util import archive_util
from bes.archive.archiver import archiver
from bes.archive.temp_archive import temp_archive
if __name__ == ... | 49.401099 | 108 | 0.638639 |
eb51468dffd54037005f28c7423bde948db98210 | 3,625 | py | Python | yaleclient/cli.py | anderselton/yale-client | 2c2ddd46bfada9ea0ec97022ec4bc46c8e062558 | [
"Apache-2.0"
] | null | null | null | yaleclient/cli.py | anderselton/yale-client | 2c2ddd46bfada9ea0ec97022ec4bc46c8e062558 | [
"Apache-2.0"
] | null | null | null | yaleclient/cli.py | anderselton/yale-client | 2c2ddd46bfada9ea0ec97022ec4bc46c8e062558 | [
"Apache-2.0"
] | 1 | 2021-04-16T16:43:23.000Z | 2021-04-16T16:43:23.000Z | # -*- coding: utf-8 -*-
import argparse
import os
from .client import YaleClient
yale_base_cli = \
argparse.ArgumentParser(description="Yale-cli is designed to operate on yale systems, and doing tasks like opening "
"and closing locks/alarm systems.",
... | 40.277778 | 120 | 0.589517 |
eb5195c7f53f58aed03e892f82a003ed8c0cede7 | 1,376 | py | Python | backend/api/filters/filters.py | grallage/course-selection-system | d7db267befe8c1d91b9d1bc335397e3087466c96 | [
"MIT"
] | null | null | null | backend/api/filters/filters.py | grallage/course-selection-system | d7db267befe8c1d91b9d1bc335397e3087466c96 | [
"MIT"
] | null | null | null | backend/api/filters/filters.py | grallage/course-selection-system | d7db267befe8c1d91b9d1bc335397e3087466c96 | [
"MIT"
] | null | null | null | from .. import models
from django_filters import rest_framework as filters
| 32.761905 | 88 | 0.711483 |
eb51d6d53256cba70fc82a414f813c5e24351542 | 2,189 | py | Python | proposals/management/commands/get_statistics.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | 2 | 2017-04-22T11:07:13.000Z | 2018-03-02T12:23:24.000Z | proposals/management/commands/get_statistics.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | 6 | 2017-07-24T09:59:13.000Z | 2019-04-01T15:15:57.000Z | proposals/management/commands/get_statistics.py | UiL-OTS-labs/etcl | a22df7ff78620b704a500354fb218fbe9bcabf5f | [
"MIT"
] | null | null | null | from django.contrib.auth.models import Group
from django.core.management.base import BaseCommand
from django.conf import settings
from django.views.i18n import set_language
from proposals.utils.statistics_utils import get_average_turnaround_time, \
get_qs_for_long_route_reviews, get_qs_for_short_route_reviews, \
... | 33.166667 | 77 | 0.600731 |
eb51ff6b9107cee84e763a4b3d50eade4083e26c | 4,299 | py | Python | src/latest.py | rharish101/dilbert-viewer-py | 07492822b74e5b9242f47bdf756e147bf792e5c8 | [
"MIT"
] | 5 | 2018-12-08T12:06:29.000Z | 2022-01-23T14:25:51.000Z | src/latest.py | rharish101/dilbert-viewer-py | 07492822b74e5b9242f47bdf756e147bf792e5c8 | [
"MIT"
] | 3 | 2021-11-01T18:19:11.000Z | 2021-11-01T18:23:08.000Z | src/latest.py | rharish101/dilbert-viewer-py | 07492822b74e5b9242f47bdf756e147bf792e5c8 | [
"MIT"
] | 1 | 2020-05-16T19:16:00.000Z | 2020-05-16T19:16:00.000Z | """Scraper to get info on the latest Dilbert comic."""
from datetime import timedelta
from typing import Optional
from constants import LATEST_DATE_REFRESH, SRC_PREFIX
from scraper import Scraper, ScrapingException
from utils import curr_date, date_to_str, str_to_date
| 37.060345 | 79 | 0.586183 |
eb53bbfae8b29bdd3c9940753f30c643697fe9d2 | 742 | py | Python | tests/use_cases/test_fetch_playlists.py | eeng/montag | 8362c4bc6621e23d3b9b43990f9cf28a9e1c1c8a | [
"MIT"
] | null | null | null | tests/use_cases/test_fetch_playlists.py | eeng/montag | 8362c4bc6621e23d3b9b43990f9cf28a9e1c1c8a | [
"MIT"
] | null | null | null | tests/use_cases/test_fetch_playlists.py | eeng/montag | 8362c4bc6621e23d3b9b43990f9cf28a9e1c1c8a | [
"MIT"
] | null | null | null | from montag.domain.entities import Provider
from montag.use_cases.fetch_playlists import FetchPlaylists
from montag.use_cases.support import Failure, Success
from tests import factory
| 32.26087 | 68 | 0.801887 |
eb548fb8cf15eb3f8798883ce250fd08789baca2 | 4,012 | py | Python | tests/xmrswap/test_other.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-09-21T17:33:23.000Z | 2020-10-03T08:54:01.000Z | tests/xmrswap/test_other.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | 2 | 2020-10-03T09:18:48.000Z | 2020-10-13T19:58:34.000Z | tests/xmrswap/test_other.py | tecnovert/xmrswap | ad2983a4df03184453ff680c17602497acc75a87 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020 tecnovert
# Distributed under the MIT software license, see the accompanying
# file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php.
import unittest
from xmrswap.interface_btc import (
testBTCInterface
)
from xmrswap.util import... | 33.714286 | 89 | 0.583998 |
eb57f9bf54428ecebf85880e23368e3618741a38 | 243 | py | Python | V2RaycSpider1025/main.py | caicai166/V2RayCloudSpider | b263490407814c9e67e34fcce821af01a22405f1 | [
"MIT"
] | 4 | 2020-11-18T00:25:54.000Z | 2022-03-14T11:54:13.000Z | V2RaycSpider1025/main.py | caicai166/V2RayCloudSpider | b263490407814c9e67e34fcce821af01a22405f1 | [
"MIT"
] | null | null | null | V2RaycSpider1025/main.py | caicai166/V2RayCloudSpider | b263490407814c9e67e34fcce821af01a22405f1 | [
"MIT"
] | 3 | 2021-01-03T03:16:29.000Z | 2021-06-02T04:09:59.000Z | from Panel.master_panel import *
"""V2Ray"""
if __name__ == '__main__':
V2Rayc = V2RaycSpider_Master_Panel()
try:
V2Rayc.home_menu()
except Exception as e:
V2Rayc.debug(e)
finally:
V2Rayc.kill()
| 20.25 | 40 | 0.62963 |
eb58c8c60f85a4934a55d96cc31bb7f46a9c0eae | 289 | py | Python | apps/toppage/urls.py | shimizukawa/django-multiple-type-user-auth | 8fba1670ae2c5e7add9d9bfe39997c047f848582 | [
"Apache-2.0"
] | 29 | 2020-01-31T08:24:18.000Z | 2022-03-24T18:39:11.000Z | apps/toppage/urls.py | shimizukawa/django-multiple-type-user-auth | 8fba1670ae2c5e7add9d9bfe39997c047f848582 | [
"Apache-2.0"
] | 2 | 2021-03-18T21:30:27.000Z | 2021-04-05T20:45:48.000Z | apps/toppage/urls.py | shimizukawa/django-multiple-type-user-auth | 8fba1670ae2c5e7add9d9bfe39997c047f848582 | [
"Apache-2.0"
] | 5 | 2021-05-12T19:46:46.000Z | 2022-03-03T16:06:41.000Z | from django.urls import path
from .views import index, supporter_index, customer_index
app_name = 'toppage'
urlpatterns = [
path('', index, name='index'),
path('supporter/', supporter_index, name='supporter_index'),
path('customer/', customer_index, name='customer_index'),
] | 28.9 | 64 | 0.719723 |
eb598dc417f9c3b646b630ac18fa21625cf00654 | 443 | py | Python | forest_calculations.py | mpolinski/python-forest | 859238ab6a2e05e3479eda5d131f59b26a1f1a22 | [
"MIT"
] | null | null | null | forest_calculations.py | mpolinski/python-forest | 859238ab6a2e05e3479eda5d131f59b26a1f1a22 | [
"MIT"
] | null | null | null | forest_calculations.py | mpolinski/python-forest | 859238ab6a2e05e3479eda5d131f59b26a1f1a22 | [
"MIT"
] | null | null | null | from forest_constants import (LEAFY, CONIFEROUS)
| 21.095238 | 49 | 0.688488 |
eb59a61061f97223ab1d4a63d1d6e26c9e3f3922 | 64 | py | Python | tests/helpers/test_model_interface.py | sebastian-lapuschkin/Quantus | c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f | [
"MIT"
] | null | null | null | tests/helpers/test_model_interface.py | sebastian-lapuschkin/Quantus | c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f | [
"MIT"
] | null | null | null | tests/helpers/test_model_interface.py | sebastian-lapuschkin/Quantus | c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f | [
"MIT"
] | null | null | null | """No identified need to test model interface functionality."""
| 32 | 63 | 0.765625 |
eb5a1f1e207966227e8c201ab765ed8ba7bfef1e | 1,923 | py | Python | blocks/utils.py | vogonyo/SImulator | bd05c5bda376d9463b68b1b386e17be8ca393ea3 | [
"MIT"
] | 76 | 2016-09-16T21:04:56.000Z | 2021-11-09T03:29:37.000Z | blocks/utils.py | vogonyo/SImulator | bd05c5bda376d9463b68b1b386e17be8ca393ea3 | [
"MIT"
] | 4 | 2019-01-06T08:53:29.000Z | 2019-01-25T09:38:09.000Z | blocks/utils.py | vogonyo/SImulator | bd05c5bda376d9463b68b1b386e17be8ca393ea3 | [
"MIT"
] | 22 | 2016-09-20T11:06:02.000Z | 2021-07-28T03:06:42.000Z | import sys
import h5py
import yaml
import numpy as np
from fuel.datasets import H5PYDataset
from fuel.streams import DataStream
from fuel.schemes import SequentialScheme, ShuffledScheme
from fuel.transformers import Mapping
from blocks.extensions import saveload, predicates
from blocks.extensions.training import TrackT... | 34.339286 | 97 | 0.73791 |
eb5c1e3cdc51524fbf91bb29a9b75350d7e28939 | 13,580 | py | Python | tests/test_locators.py | msabramo/distlib | 8c201484821e7cdfd52c560eac98b45439402f39 | [
"PSF-2.0"
] | null | null | null | tests/test_locators.py | msabramo/distlib | 8c201484821e7cdfd52c560eac98b45439402f39 | [
"PSF-2.0"
] | null | null | null | tests/test_locators.py | msabramo/distlib | 8c201484821e7cdfd52c560eac98b45439402f39 | [
"PSF-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2013 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
from __future__ import unicode_literals
import os
import sys
from compat import unittest
from distlib.compat import url2pathname, urlpa... | 42.704403 | 82 | 0.583726 |