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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0b115c280b92cd1887912e7b5b880c8d693ab762 | 987 | py | Python | final_project/machinetranslation/tests.py | eduardomecchia/xzceb-flask_eng_fr | fa2da58ecabd43385a77be42f1eb6cf5401d6757 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests.py | eduardomecchia/xzceb-flask_eng_fr | fa2da58ecabd43385a77be42f1eb6cf5401d6757 | [
"Apache-2.0"
] | null | null | null | final_project/machinetranslation/tests.py | eduardomecchia/xzceb-flask_eng_fr | fa2da58ecabd43385a77be42f1eb6cf5401d6757 | [
"Apache-2.0"
] | null | null | null | import unittest
import translator
if __name__ == '__main__':
unittest.main() | 31.83871 | 74 | 0.703141 |
0b12869eee8275c66479c755fba088b954a1e101 | 2,149 | py | Python | dataRT/http.py | thedeltaflyer/dataRT | 9befbad597cfd50aea1ea48271adcd29e29a4d45 | [
"MIT"
] | 2 | 2020-04-26T14:47:04.000Z | 2022-02-25T21:04:00.000Z | dataRT/http.py | thedeltaflyer/dataRT | 9befbad597cfd50aea1ea48271adcd29e29a4d45 | [
"MIT"
] | null | null | null | dataRT/http.py | thedeltaflyer/dataRT | 9befbad597cfd50aea1ea48271adcd29e29a4d45 | [
"MIT"
] | null | null | null | from flask import (Flask, jsonify)
from gevent import (pywsgi, sleep)
from geventwebsocket.handler import WebSocketHandler
from . import __version__
from .logs import logger
| 27.551282 | 108 | 0.584458 |
0b1294f67b7fca283b849f80601174b8800cd976 | 9,284 | py | Python | order/views.py | abhijitdalavi/matrix | 29a736e6112994d6d746d9846520dcd532feb46d | [
"MIT"
] | null | null | null | order/views.py | abhijitdalavi/matrix | 29a736e6112994d6d746d9846520dcd532feb46d | [
"MIT"
] | null | null | null | order/views.py | abhijitdalavi/matrix | 29a736e6112994d6d746d9846520dcd532feb46d | [
"MIT"
] | null | null | null | from django.views.generic import ListView, CreateView, UpdateView
from django.utils.decorators import method_decorator
from django.contrib.admin.views.decorators import staff_member_required
from django.shortcuts import get_object_or_404, redirect, reverse
from django.urls import reverse_lazy
from django.contrib import... | 37.739837 | 118 | 0.630978 |
0b13468367f2b17010236ccf549467580e3949c1 | 4,880 | py | Python | example/testify_pytorch_to_caffe_example.py | templeblock/nn_tools | 4389f3e2ca35b0a37f872cbb85f3cadd3f94e4eb | [
"MIT"
] | null | null | null | example/testify_pytorch_to_caffe_example.py | templeblock/nn_tools | 4389f3e2ca35b0a37f872cbb85f3cadd3f94e4eb | [
"MIT"
] | null | null | null | example/testify_pytorch_to_caffe_example.py | templeblock/nn_tools | 4389f3e2ca35b0a37f872cbb85f3cadd3f94e4eb | [
"MIT"
] | null | null | null | import caffe
import torch
import numpy as np
import argparse
from collections import OrderedDict
from torch.autograd import Variable
import torch.nn as nn
if __name__ == '__main__':
args = arg_parse()
if args.model == 'alexnet':
# Alexnet example
from torchvision.models.alexnet import a... | 33.655172 | 100 | 0.63832 |
0b13920e15983fcf25bab57e71b06db2fade7f5d | 1,903 | py | Python | gregsprograms/ohshots.py | gjhartwell/cth-python | 558148a5755fd0bd3b12e1380d365f8bf51efa19 | [
"MIT"
] | null | null | null | gregsprograms/ohshots.py | gjhartwell/cth-python | 558148a5755fd0bd3b12e1380d365f8bf51efa19 | [
"MIT"
] | null | null | null | gregsprograms/ohshots.py | gjhartwell/cth-python | 558148a5755fd0bd3b12e1380d365f8bf51efa19 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 26 15:53:33 2020
@author: hartwgj
"""
# --------------------------------------
# OHShots.py
#
# MDSplus Python project
# for CTH data access
#
# OHShots.py --- gets the shots within a given date range that use OH
#
# Parameters:
# startdate
# enddate
#
# Returns:
#... | 25.716216 | 78 | 0.393589 |
0b1418e35fb652db01e8e815e64e3fe3157b954a | 6,271 | py | Python | app.py | plotly/radon-transform-visualisation | 5a2fc53316087a08972400e55b1af54ebfb1b528 | [
"MIT"
] | null | null | null | app.py | plotly/radon-transform-visualisation | 5a2fc53316087a08972400e55b1af54ebfb1b528 | [
"MIT"
] | null | null | null | app.py | plotly/radon-transform-visualisation | 5a2fc53316087a08972400e55b1af54ebfb1b528 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import numpy as np
import cv2
import matplotlib.pyplot as plt
from skimage.transform import radon, rescale, rotate
import plotly.graph_objs as go
ext... | 26.238494 | 92 | 0.545368 |
0b14ffda334fedd5c264042439a74b0107e9cb74 | 766 | py | Python | code/chapter_04/listing_04_13.py | guinslym/python_earth_science_book | f4dd0115dbbce140c6713989f630a71238daa72c | [
"MIT"
] | 80 | 2021-04-19T10:03:57.000Z | 2022-03-30T15:34:47.000Z | code/chapter_04/listing_04_13.py | guinslym/python_earth_science_book | f4dd0115dbbce140c6713989f630a71238daa72c | [
"MIT"
] | null | null | null | code/chapter_04/listing_04_13.py | guinslym/python_earth_science_book | f4dd0115dbbce140c6713989f630a71238daa72c | [
"MIT"
] | 23 | 2021-04-25T03:50:07.000Z | 2022-03-22T03:06:19.000Z | # Go to new line using \n
print('-------------------------------------------------------')
print("My name is\nMaurizio Petrelli")
# Inserting characters using octal values
print('-------------------------------------------------------')
print("\100 \136 \137 \077 \176")
# Inserting characters using hex values
print('... | 31.916667 | 64 | 0.26893 |
0b1794937b8fbf2bc1062698f11f7eb5b8b36fe3 | 14,753 | py | Python | modules/kachelmann_bot.py | WhereIsTheExit/HeinzBot | 1e35f1706d03b47dddfa8b8a04cede6a7c4be301 | [
"Apache-2.0"
] | 6 | 2019-05-12T13:30:48.000Z | 2020-07-30T08:58:10.000Z | modules/kachelmann_bot.py | WhereIsTheExit/HeinzBot | 1e35f1706d03b47dddfa8b8a04cede6a7c4be301 | [
"Apache-2.0"
] | 16 | 2019-05-11T14:07:06.000Z | 2021-11-29T22:13:35.000Z | modules/kachelmann_bot.py | WhereIsTheExit/HeinzBot | 1e35f1706d03b47dddfa8b8a04cede6a7c4be301 | [
"Apache-2.0"
] | 5 | 2019-05-11T13:29:47.000Z | 2020-01-15T12:18:40.000Z | import datetime
import urllib
from urllib.request import urlopen
import time
import logging
import bs4
import telegram
from telegram import Update
from telegram.ext import CommandHandler, CallbackContext
from modules.abstract_module import AbstractModule
from utils.decorators import register_module, register_command... | 47.590323 | 140 | 0.626856 |
0b17dc1ba266c3902679d315702c8fa0f208d5e0 | 15,862 | py | Python | carpyncho.py | DrDub/carpyncho-py | 6394faf9da6dfa393d3d06bfff004f10c7e4cd29 | [
"BSD-3-Clause"
] | null | null | null | carpyncho.py | DrDub/carpyncho-py | 6394faf9da6dfa393d3d06bfff004f10c7e4cd29 | [
"BSD-3-Clause"
] | null | null | null | carpyncho.py | DrDub/carpyncho-py | 6394faf9da6dfa393d3d06bfff004f10c7e4cd29 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2020, Juan B Cabral
# License: BSD-3-Clause
# Full Text: https://github.com/carpyncho/carpyncho-py/blob/master/LICENSE
# =============================================================================
# DOCS
# =============================================... | 28.683544 | 111 | 0.532468 |
0b18861c6f4339a1ca04dfd8300878200d15cac5 | 498 | py | Python | visual_data/app/utils.py | SaidLopez/django_start | 2932d4433b022a729b2afaaf13baf678aafc4b0a | [
"MIT"
] | null | null | null | visual_data/app/utils.py | SaidLopez/django_start | 2932d4433b022a729b2afaaf13baf678aafc4b0a | [
"MIT"
] | null | null | null | visual_data/app/utils.py | SaidLopez/django_start | 2932d4433b022a729b2afaaf13baf678aafc4b0a | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import base64
from io import BytesIO | 19.92 | 39 | 0.654618 |
0b1891b092271e40a79284fe9042e306de9c61a6 | 26,953 | py | Python | qradar_utilities.py | intel471/titan_qradar_sync | 43d2d2bfcd18c3383e8f4f0377788a0d2f3844a7 | [
"MIT"
] | 1 | 2021-08-23T08:41:56.000Z | 2021-08-23T08:41:56.000Z | qradar_utilities.py | intel471/titan_qradar_sync | 43d2d2bfcd18c3383e8f4f0377788a0d2f3844a7 | [
"MIT"
] | null | null | null | qradar_utilities.py | intel471/titan_qradar_sync | 43d2d2bfcd18c3383e8f4f0377788a0d2f3844a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.8
import time
from typing import List, Dict
import json
import requests
from requests.exceptions import HTTPError
from urllib3.exceptions import InsecureRequestWarning
from json_utilities import json_get
from titan_qradar_sync_config import TitanQRadarSyncConfig
| 59.630531 | 365 | 0.61559 |
0b19361cb7bec29a8393dd2d4d6342be97e9c458 | 1,664 | py | Python | src/polls/polls/project/migrations/0002_shoppingitem_shoppinglist.py | Valeriu92/Shopping_list | 3614dfc6691c28cf88db8af77ba246a9c4943794 | [
"MIT"
] | null | null | null | src/polls/polls/project/migrations/0002_shoppingitem_shoppinglist.py | Valeriu92/Shopping_list | 3614dfc6691c28cf88db8af77ba246a9c4943794 | [
"MIT"
] | 6 | 2021-03-19T08:45:06.000Z | 2021-09-22T19:19:21.000Z | src/polls/polls/project/migrations/0002_shoppingitem_shoppinglist.py | Valeriu92/Shopping_list | 3614dfc6691c28cf88db8af77ba246a9c4943794 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-06-21 14:52
from django.db import migrations, models
import django.db.models.deletion
| 42.666667 | 146 | 0.597356 |
0b195f0b6c15b4019237a4ae8b5b8c84db5c27fd | 2,766 | py | Python | utils.py | cswzhang/RESD | 87370182b8717a7fde007937c6e3e2fff02fb593 | [
"Apache-2.0"
] | 1 | 2021-11-29T09:32:48.000Z | 2021-11-29T09:32:48.000Z | utils.py | cswzhang/RESD | 87370182b8717a7fde007937c6e3e2fff02fb593 | [
"Apache-2.0"
] | null | null | null | utils.py | cswzhang/RESD | 87370182b8717a7fde007937c6e3e2fff02fb593 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import logging
import numpy as np
import pandas as pd
from sklearn import metrics
from sklearn.linear_model import LogisticRegression
from sklearn.multiclass import OneVsRestClassifier
from sklearn.preprocessing import LabelBinarizer
from sklearn.utils import shuffle
logging.basicConfig(format='%(level... | 35.922078 | 93 | 0.60376 |
0b1a7603f0853665e4cb6bd2c490cfde38e7a664 | 2,505 | py | Python | misc/make_struct.py | kwrobert/nanowire | 2dd003e9e1898b2ae9f78a261b3ce1406ec717b8 | [
"Apache-2.0",
"MIT"
] | null | null | null | misc/make_struct.py | kwrobert/nanowire | 2dd003e9e1898b2ae9f78a261b3ce1406ec717b8 | [
"Apache-2.0",
"MIT"
] | null | null | null | misc/make_struct.py | kwrobert/nanowire | 2dd003e9e1898b2ae9f78a261b3ce1406ec717b8 | [
"Apache-2.0",
"MIT"
] | 1 | 2019-06-23T01:26:44.000Z | 2019-06-23T01:26:44.000Z | import os
import glob
import argparse as ap
import shutil as sh
import re
if __name__ == '__main__':
main()
| 40.403226 | 125 | 0.591617 |
0b1af5ee826d4553c7214ee6c50908fbb0aba15f | 1,291 | py | Python | rurina5/test2.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina5/test2.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | rurina5/test2.py | TeaCondemns/rurina | 43725ebea5872953125271a9abb300a4e3a80a64 | [
"MIT"
] | null | null | null | from input import flip
from utilities.surface import *
import utilities.time as time
from nodes import Control, init
from shape import draw
import pygame
import pygame.key as key
from event import get, typename2
from input import map
screen = pygame.display.set_mode((800, 800), pygame.RESIZABLE)
_mask = AlphaSurface(... | 25.82 | 131 | 0.640589 |
0b1b43897511e51e58442813b0108b29ef96226a | 15,379 | py | Python | Lab3/turingmachine.py | PedroDeSanti/PCS3616 | f39454013f14aba01155f145ba48385cb102c942 | [
"MIT"
] | null | null | null | Lab3/turingmachine.py | PedroDeSanti/PCS3616 | f39454013f14aba01155f145ba48385cb102c942 | [
"MIT"
] | null | null | null | Lab3/turingmachine.py | PedroDeSanti/PCS3616 | f39454013f14aba01155f145ba48385cb102c942 | [
"MIT"
] | null | null | null | # turingmachine.py - implementation of the Turing machine model
#
# Copyright 2014 Jeffrey Finkelstein.
#
# This file is part of turingmachine.
#
# turingmachine is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation,... | 39.534704 | 115 | 0.629755 |
0b1b5ca00bb0a54148f31c9c2c856cd992807448 | 14,274 | py | Python | stdlib2-src/dist-packages/quodlibet/formats/xiph.py | ch1huizong/Scode | c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895 | [
"MIT"
] | null | null | null | stdlib2-src/dist-packages/quodlibet/formats/xiph.py | ch1huizong/Scode | c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895 | [
"MIT"
] | null | null | null | stdlib2-src/dist-packages/quodlibet/formats/xiph.py | ch1huizong/Scode | c34fb9d0f9b73fe199ba370f2e3ffb30b8f70895 | [
"MIT"
] | null | null | null | # Copyright 2004-2005 Joe Wreschnig, Michael Urman
# 2009-2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
import sys
import base64
import mutagen
fro... | 28.153846 | 76 | 0.570478 |
0b1b93c744caf57fd123170dd118feda4553c189 | 413 | py | Python | test find weather.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | test find weather.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | test find weather.py | jacblo/tests-and-early-projects | 16ca33498fe336b089e24981e148ad81e57adb13 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 5 23:04:10 2020
@author: y3
749e8aa818a63c61c31acd7ee948d6d8
"""
import requests
api_address = "https://api.openweathermap.org/data/2.5/weather?q="
api_key_url = "&APPID=749e8aa818a63c61c31acd7ee948d6d8"
city_name = "Bet shemesh,IL"
weather_data... | 24.294118 | 69 | 0.745763 |
0b1c2d8897a8a76a29c7ff91737c1d331580a06a | 17,750 | py | Python | customer_match/cli.py | Esquire-Digital/customer-match-translator | 7b1530bed0fc1a7a9bfc898e31daad6dacc30ddd | [
"MIT"
] | null | null | null | customer_match/cli.py | Esquire-Digital/customer-match-translator | 7b1530bed0fc1a7a9bfc898e31daad6dacc30ddd | [
"MIT"
] | null | null | null | customer_match/cli.py | Esquire-Digital/customer-match-translator | 7b1530bed0fc1a7a9bfc898e31daad6dacc30ddd | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
import click
import sys
import csv
import time
import pandas as pd
import country_converter as coco
import hashlib
import phonenumbers
from tqdm import tqdm
from uszipcode import SearchEngine
HEADER_TRANSLATIONS = {
"email1": "Email",
"phone1": "Phone",
"person_country": "Count... | 32.809612 | 214 | 0.633915 |
0b1c55f58b7ea7cb439e436ac338143526ad5ff4 | 2,383 | py | Python | pwndbg/color/__init__.py | R2S4X/pwndbg | 351d479f08a43c71d30a8d8c098b7657bbb9ef0e | [
"MIT"
] | 287 | 2015-03-23T17:22:49.000Z | 2022-01-06T19:57:21.000Z | pwndbg/color/__init__.py | R2S4X/pwndbg | 351d479f08a43c71d30a8d8c098b7657bbb9ef0e | [
"MIT"
] | 28 | 2015-04-13T19:59:44.000Z | 2016-05-27T19:09:55.000Z | pwndbg/color/__init__.py | R2S4X/pwndbg | 351d479f08a43c71d30a8d8c098b7657bbb9ef0e | [
"MIT"
] | 42 | 2015-04-17T18:13:00.000Z | 2020-07-23T08:37:51.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import re
import pwndbg.memoize
NORMAL = "\x1b[0m"
BLACK = "\x1b[30m"
RED = "\x1b[31m"
GREEN ... | 31.355263 | 99 | 0.666807 |
0b1d9491c3c3b996bb1b47ef4c74d5c4882e9c92 | 1,473 | py | Python | private_inference/app/commons.py | xiyueyiwan/private-ml-for-health | c77181d0628b3a04c411a01f7e402fccb4d34e09 | [
"MIT"
] | 28 | 2020-11-01T09:19:37.000Z | 2022-03-31T07:23:42.000Z | private_inference/app/commons.py | HongleGuo/private-ml-for-health | 98b66920c659422bc963d70964f780b76fa67a48 | [
"MIT"
] | 2 | 2021-03-19T11:39:04.000Z | 2021-04-21T12:48:52.000Z | private_inference/app/commons.py | HongleGuo/private-ml-for-health | 98b66920c659422bc963d70964f780b76fa67a48 | [
"MIT"
] | 11 | 2021-03-17T02:28:08.000Z | 2022-03-31T07:23:48.000Z | import io
from PIL import Image
from torchvision import models
import torch
import torchvision.transforms as transforms
import torch.nn as nn
import torch.nn.functional as F
import urllib
import os
# change to DR dataset format
| 35.926829 | 105 | 0.706721 |
9bc4cf79003c2ee2dd4622a00c59cd89da0d7b15 | 1,599 | py | Python | eg-retracepoly.py | Cocodidou/projetFusee | 9ce85fb3463b1039e4a2e414c055b680ba909fb8 | [
"Unlicense"
] | null | null | null | eg-retracepoly.py | Cocodidou/projetFusee | 9ce85fb3463b1039e4a2e414c055b680ba909fb8 | [
"Unlicense"
] | null | null | null | eg-retracepoly.py | Cocodidou/projetFusee | 9ce85fb3463b1039e4a2e414c055b680ba909fb8 | [
"Unlicense"
] | null | null | null | # line drawing as shape, where drawing doesn't "lift pen from paper"
# coords are given as a list from (0,0), and sublists can be used to
# branch off then return to a particular point
#
# drawing the outline of a polygon, then retracing the steps backwards,
# renders the polygon outline as opposed to filling it
impor... | 25.790323 | 71 | 0.594121 |
9bc4ea9a9e8106e96e6d58d6d3b3f711f0e09666 | 1,671 | py | Python | migrations/versions/25276717e6b8_.py | myfreeweb/crawllog | e86bda8adb7201e4382b774332e51b26297d008c | [
"Unlicense"
] | 3 | 2016-04-04T22:19:45.000Z | 2020-11-08T03:11:12.000Z | migrations/versions/25276717e6b8_.py | unrelentingtech/crawllog | e86bda8adb7201e4382b774332e51b26297d008c | [
"Unlicense"
] | 1 | 2016-04-05T14:36:36.000Z | 2016-06-18T17:59:16.000Z | migrations/versions/25276717e6b8_.py | myfreeweb/crawllog | e86bda8adb7201e4382b774332e51b26297d008c | [
"Unlicense"
] | null | null | null | """Initial schema
Revision ID: 25276717e6b8
Revises: None
Create Date: 2016-03-25 17:58:19.963883
"""
# revision identifiers, used by Alembic.
revision = '25276717e6b8'
down_revision = None
from alembic import op
import sqlalchemy as sa
| 30.381818 | 65 | 0.661281 |
9bc53ea3709915443ca7298e421e40de7c28933a | 911 | py | Python | Day 15/FLOW016.py | arpit1920/Python-Codechef-Problems | a8d2d48140c93c70fc2de9da90a967f3d43036a1 | [
"MIT"
] | null | null | null | Day 15/FLOW016.py | arpit1920/Python-Codechef-Problems | a8d2d48140c93c70fc2de9da90a967f3d43036a1 | [
"MIT"
] | null | null | null | Day 15/FLOW016.py | arpit1920/Python-Codechef-Problems | a8d2d48140c93c70fc2de9da90a967f3d43036a1 | [
"MIT"
] | null | null | null | """
This Code is Contributed by Arpit Bhushan Sharma
Codechef-@koderarpit
Github - @arpit1920
Kaggle - arpit3043
Mail - arpit3043@gmail.com
Two integers A and B are the inputs. Write a program to find GCD and LCM of A and B.
Input
The first line contains an integer T, total number of testcases.
Then follow T... | 20.244444 | 85 | 0.643249 |
9bc5c0aaba0c3abcdcd825f0ec975266b287ad70 | 4,270 | py | Python | recupero/migrations/0001_initial.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 6 | 2020-03-16T02:51:16.000Z | 2020-11-10T00:58:01.000Z | recupero/migrations/0001_initial.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 204 | 2019-09-19T02:00:57.000Z | 2022-02-10T10:48:52.000Z | recupero/migrations/0001_initial.py | cluster311/ggg | 262173c66fe40ada30083d439a79f16f841f5772 | [
"BSD-3-Clause"
] | 3 | 2019-09-16T22:59:24.000Z | 2022-03-21T22:52:44.000Z | # Generated by Django 2.2.4 on 2019-10-22 00:36
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
| 56.184211 | 204 | 0.638642 |
9bc97edd815322dc6a747c2ab760525b0de68666 | 1,057 | py | Python | main(terminal).py | fcondo/GUI-sudoku-solver | 6d5af3790d1e1c13402bdc6fa6f8ae4ed79121d2 | [
"Apache-2.0"
] | null | null | null | main(terminal).py | fcondo/GUI-sudoku-solver | 6d5af3790d1e1c13402bdc6fa6f8ae4ed79121d2 | [
"Apache-2.0"
] | null | null | null | main(terminal).py | fcondo/GUI-sudoku-solver | 6d5af3790d1e1c13402bdc6fa6f8ae4ed79121d2 | [
"Apache-2.0"
] | null | null | null | """
main(terminal).py
Author: Fabio Condomitti
"""
from solver import print_grid, solve
if __name__ == "__main__":
main() | 27.102564 | 49 | 0.325449 |
9bc9a25d3b23e0b184104f975e4e6a31a9862183 | 2,239 | py | Python | win/ass_commander.py | janakhpon/PersonalAssistant | bacd6743d23d139af1199df12c7bf99d092764b1 | [
"MIT"
] | null | null | null | win/ass_commander.py | janakhpon/PersonalAssistant | bacd6743d23d139af1199df12c7bf99d092764b1 | [
"MIT"
] | null | null | null | win/ass_commander.py | janakhpon/PersonalAssistant | bacd6743d23d139af1199df12c7bf99d092764b1 | [
"MIT"
] | null | null | null | import subprocess
import os
import requests
import pyttsx3
from bs4 import BeautifulSoup
| 38.603448 | 126 | 0.529701 |
9bc9bcdd30f3d72eeeddaa6891ef97194fa18480 | 251 | py | Python | circular.py | beninato8/pokemon-go | 35c24a8fe948ebea7e4471282f9fe23888b91a7c | [
"MIT"
] | null | null | null | circular.py | beninato8/pokemon-go | 35c24a8fe948ebea7e4471282f9fe23888b91a7c | [
"MIT"
] | 4 | 2021-06-02T00:54:46.000Z | 2022-03-12T00:58:36.000Z | circular.py | beninato8/pokemon-go | 35c24a8fe948ebea7e4471282f9fe23888b91a7c | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
l = [0,1,2,3,4]
for x in rotations(l):
print(x) | 17.928571 | 27 | 0.47012 |
9bca087d33ec78af86014248cb1d2a83ed4c9f78 | 423 | py | Python | GetDataFrame.py | Adhmir/mcdm | c1d8bec4f3628f5d95ee7cd3bfdfb9ff54783dce | [
"MIT"
] | null | null | null | GetDataFrame.py | Adhmir/mcdm | c1d8bec4f3628f5d95ee7cd3bfdfb9ff54783dce | [
"MIT"
] | null | null | null | GetDataFrame.py | Adhmir/mcdm | c1d8bec4f3628f5d95ee7cd3bfdfb9ff54783dce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 28 17:41:18 2021
@author: Adhmir Renan Voltoni Gomes
"""
import pandas as pd
import MCDM_V_001 as mcdm
| 23.5 | 45 | 0.617021 |
9bca5af1c759f195927e0d826898e9abc033b944 | 742 | py | Python | Individual task.py | IsSveshuD/lab_2_11 | db922488c813610b42272bd93b1975956a8d986f | [
"MIT"
] | null | null | null | Individual task.py | IsSveshuD/lab_2_11 | db922488c813610b42272bd93b1975956a8d986f | [
"MIT"
] | null | null | null | Individual task.py | IsSveshuD/lab_2_11 | db922488c813610b42272bd93b1975956a8d986f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# _*_ coding: utf-8 -*-
# , ,
# (
# ) ,
# , type
# . type max,
# , . type
# max.
# .
a = [1, 2, 34, 54, 36, 7, 8]
max_fun = fun1()
min_fun = fun1('min')
print(max_fun(a))
print(min_fun(a))
| 28.538462 | 64 | 0.722372 |
9bcb27a7d1f03b098af4f51756f0b10851a103ba | 2,561 | py | Python | cmsplugin_remote_form/migrations/0005_auto_20200429_1442.py | georgmzimmer/cmsplugin-remote-form | 804e67ccc18964223247b39cc6e359f977a16556 | [
"BSD-3-Clause"
] | null | null | null | cmsplugin_remote_form/migrations/0005_auto_20200429_1442.py | georgmzimmer/cmsplugin-remote-form | 804e67ccc18964223247b39cc6e359f977a16556 | [
"BSD-3-Clause"
] | 1 | 2020-02-13T17:30:13.000Z | 2020-02-13T17:30:13.000Z | cmsplugin_remote_form/migrations/0005_auto_20200429_1442.py | georgmzimmer/cmsplugin-remote-form | 804e67ccc18964223247b39cc6e359f977a16556 | [
"BSD-3-Clause"
] | 4 | 2020-01-16T03:52:18.000Z | 2020-04-29T19:35:16.000Z | # Generated by Django 2.2.12 on 2020-04-29 18:42
from django.db import migrations, models
| 52.265306 | 741 | 0.646232 |
9bcb2e6ea72e15c7c10a699c8ebe55ab4cd553e3 | 17,348 | py | Python | model.py | bfMendonca/CarND-Behavioral-Cloning-P3 | 564b8e0c542292acdc6daf3829522cdcd98a1c95 | [
"MIT"
] | null | null | null | model.py | bfMendonca/CarND-Behavioral-Cloning-P3 | 564b8e0c542292acdc6daf3829522cdcd98a1c95 | [
"MIT"
] | null | null | null | model.py | bfMendonca/CarND-Behavioral-Cloning-P3 | 564b8e0c542292acdc6daf3829522cdcd98a1c95 | [
"MIT"
] | null | null | null | import csv
import cv2
import numpy as np
import pandas as pd
import sys
from datetime import datetime
from numpy.random import RandomState
import keras
import tensorflow as tf
from keras.models import Sequential
from keras.callbacks import ModelCheckpoint
from keras.layers import Flatten, Dense, Lambda, Cropping2D, C... | 37.468683 | 112 | 0.654427 |
9bcf66aa506518f09109e3c3f1caf8194c4a6b3a | 1,418 | py | Python | tools/debug_discovery.py | s1rd4v3/homebridge-tuya-web-es6-js | 4d02d05117f88e4a4251158716ef0677a2af92db | [
"MIT"
] | 172 | 2020-05-17T10:51:17.000Z | 2022-03-21T08:54:00.000Z | tools/debug_discovery.py | s1rd4v3/homebridge-tuya-web-es6-js | 4d02d05117f88e4a4251158716ef0677a2af92db | [
"MIT"
] | 303 | 2020-05-17T20:42:57.000Z | 2022-03-30T07:37:32.000Z | tools/debug_discovery.py | s1rd4v3/homebridge-tuya-web-es6-js | 4d02d05117f88e4a4251158716ef0677a2af92db | [
"MIT"
] | 85 | 2020-05-02T13:24:22.000Z | 2022-03-23T15:48:04.000Z | # The script is intended to get a list of all devices available via Tuya Home Assistant API endpoint.
import requests
import pprint
# CHANGE THIS - BEGINNING
USERNAME = ""
PASSWORD = ""
REGION = "eu" # cn, eu, us
COUNTRY_CODE = "1" # Your account country code, e.g., 1 for USA or 86 for China
BIZ_TYPE = "smart_life" # ... | 31.511111 | 101 | 0.703808 |
9bd1df98ec0a7f71b2cc5017976bf6fbcc6f9846 | 3,562 | py | Python | yamtbx/dataproc/adxv.py | 7l2icj/kamo_clone | 5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6 | [
"BSD-3-Clause"
] | 16 | 2016-05-20T11:19:40.000Z | 2021-01-01T19:44:23.000Z | yamtbx/dataproc/adxv.py | 7l2icj/kamo_clone | 5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6 | [
"BSD-3-Clause"
] | 4 | 2017-03-10T00:51:11.000Z | 2021-02-07T17:18:46.000Z | yamtbx/dataproc/adxv.py | 7l2icj/kamo_clone | 5f4a5eed3cd9d91a021d805e46125c19cc2ed1b6 | [
"BSD-3-Clause"
] | 9 | 2016-12-15T16:00:06.000Z | 2021-09-10T08:34:14.000Z | """
(c) RIKEN 2015. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
import socket
import subprocess
import time
import os
import getpass
import tempfile
# class Adxv
| 33.603774 | 131 | 0.609208 |
9bd2380bf4dfb9713249af00b966084de05b5ade | 4,661 | py | Python | model/net.py | JiazeWang/Luna16 | 5ef7f4b539cc1ca72291e93d17cc18f408a3119d | [
"MIT"
] | 47 | 2020-08-04T19:06:15.000Z | 2022-03-17T08:46:48.000Z | model/net.py | JiazeWang/Luna16 | 5ef7f4b539cc1ca72291e93d17cc18f408a3119d | [
"MIT"
] | 10 | 2020-08-06T13:07:58.000Z | 2021-09-08T02:22:48.000Z | model/net.py | JiazeWang/Luna16 | 5ef7f4b539cc1ca72291e93d17cc18f408a3119d | [
"MIT"
] | 22 | 2020-08-06T13:21:58.000Z | 2022-03-16T04:14:04.000Z | import torch
from torch import nn
from configs import ANCHOR_SIZES
| 40.885965 | 111 | 0.556104 |
9bd2b6d1890b4393a8dfbeef61de65778cef6198 | 5,743 | py | Python | multiWindowTest.py | LukasHegenbarth/lableImg | 82d96193889cd41d25cc38b3425172a47034baf9 | [
"MIT"
] | 2 | 2021-01-31T16:24:17.000Z | 2021-11-06T14:52:34.000Z | multiWindowTest.py | LukasHegenbarth/lableImg | 82d96193889cd41d25cc38b3425172a47034baf9 | [
"MIT"
] | null | null | null | multiWindowTest.py | LukasHegenbarth/lableImg | 82d96193889cd41d25cc38b3425172a47034baf9 | [
"MIT"
] | 1 | 2021-07-09T06:47:03.000Z | 2021-07-09T06:47:03.000Z | import codecs
import distutils.spawn
import os.path
import platform
import re
import subprocess
import sys
from collections import defaultdict
from functools import partial
try:
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import QWebE... | 35.233129 | 99 | 0.673516 |
9bd2ef61ca9a089dc9825ad4627fb4388dc0d5d8 | 571 | py | Python | api/accounts/urls.py | paurushofficial/InvitationApi | 35a33fab52bf9d2269b804d8b5e9958b41f7506c | [
"Apache-2.0"
] | null | null | null | api/accounts/urls.py | paurushofficial/InvitationApi | 35a33fab52bf9d2269b804d8b5e9958b41f7506c | [
"Apache-2.0"
] | null | null | null | api/accounts/urls.py | paurushofficial/InvitationApi | 35a33fab52bf9d2269b804d8b5e9958b41f7506c | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenVerifyView,
)
from . views import *
urlpatterns = [
path('register/', UserRegisterView.as_view()),
path('logout/', LogoutView.as_view()),
path('token/', TokenObtainPairView.as_... | 30.052632 | 77 | 0.718039 |
9bd32e9affe9d4798bdc0f0e2c528ef20a36adfd | 3,450 | py | Python | PhyTestOnline/PhyTestOnline.py | JerryLife/PhyTestOnline | c3ca3ec396195e587b7409b492e3848daffca6fd | [
"MIT"
] | 1 | 2016-12-12T06:09:29.000Z | 2016-12-12T06:09:29.000Z | PhyTestOnline/PhyTestOnline.py | JerryLife/PhyTestOnline | c3ca3ec396195e587b7409b492e3848daffca6fd | [
"MIT"
] | null | null | null | PhyTestOnline/PhyTestOnline.py | JerryLife/PhyTestOnline | c3ca3ec396195e587b7409b492e3848daffca6fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2016 Jerry Life
import urllib
import urllib2
import re
import xlwt
START_PAGE = 0 # start page
ALL_PAGE = 82 # number of all pages
ans = PhyTestOnline()
ans.main() | 34.5 | 109 | 0.553623 |
9bd4563be99dc04513758c49ad620fb919be44b1 | 7,554 | py | Python | examples/pytorch/DROCC/main_tabular.py | KimSangYeon-DGU/EdgeML | a1021dfa1238b764e33476318d299206f20599e2 | [
"MIT"
] | null | null | null | examples/pytorch/DROCC/main_tabular.py | KimSangYeon-DGU/EdgeML | a1021dfa1238b764e33476318d299206f20599e2 | [
"MIT"
] | null | null | null | examples/pytorch/DROCC/main_tabular.py | KimSangYeon-DGU/EdgeML | a1021dfa1238b764e33476318d299206f20599e2 | [
"MIT"
] | null | null | null | from __future__ import print_function
import os
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import DataLoader, Dataset
from collections import OrderedDict
import numpy as np
from edgeml_pytorch.trainer.drocc_trainer import DROCCTra... | 41.966667 | 105 | 0.622452 |
9bd475cdfb843175aafda09a546901e32a2f92de | 1,518 | py | Python | funcs.py | amsynist/gmail_counter_deleter | 44c7ff780a13d7aae7a1ccee96abfc3b63dcc77a | [
"MIT"
] | null | null | null | funcs.py | amsynist/gmail_counter_deleter | 44c7ff780a13d7aae7a1ccee96abfc3b63dcc77a | [
"MIT"
] | null | null | null | funcs.py | amsynist/gmail_counter_deleter | 44c7ff780a13d7aae7a1ccee96abfc3b63dcc77a | [
"MIT"
] | null | null | null | import re
import imaplib
| 34.5 | 70 | 0.614625 |
9bd59710cf5b8329b4da0192b5e1698bf07e999d | 13,736 | py | Python | plugin-python/proto/pyvcloudprovider_pb2_grpc.py | srinarayanant/terraform-provider-vcloud-director-1 | 1e805550e69fb5284d4a746a2f86326ec72c565f | [
"BSD-2-Clause"
] | null | null | null | plugin-python/proto/pyvcloudprovider_pb2_grpc.py | srinarayanant/terraform-provider-vcloud-director-1 | 1e805550e69fb5284d4a746a2f86326ec72c565f | [
"BSD-2-Clause"
] | null | null | null | plugin-python/proto/pyvcloudprovider_pb2_grpc.py | srinarayanant/terraform-provider-vcloud-director-1 | 1e805550e69fb5284d4a746a2f86326ec72c565f | [
"BSD-2-Clause"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from proto import catalog_item_pb2 as proto_dot_catalog__item__pb2
from proto import pyvcloudprovider_pb2 as proto_dot_pyvcloudprovider__pb2
from proto import vapp_pb2 as proto_dot_vapp__pb2
def add_PyVcloudProviderServicer_to_server... | 40.759644 | 79 | 0.683241 |
9bd599d6657b8c94098c98e04397485d867aa089 | 1,820 | py | Python | bot/triggers/commands/math.py | elihschiff/Rubber-Duck-Python | 24dea3b64a8a46368cd8dd995c800375f355b55e | [
"MIT"
] | 7 | 2020-07-07T20:58:14.000Z | 2021-12-23T02:51:20.000Z | bot/triggers/commands/math.py | elihschiff/Rubber-Duck-Python | 24dea3b64a8a46368cd8dd995c800375f355b55e | [
"MIT"
] | null | null | null | bot/triggers/commands/math.py | elihschiff/Rubber-Duck-Python | 24dea3b64a8a46368cd8dd995c800375f355b55e | [
"MIT"
] | 1 | 2020-03-29T13:36:43.000Z | 2020-03-29T13:36:43.000Z | from . import Command
from .. import utils
import wolframalpha
| 37.142857 | 101 | 0.503297 |
9bd5d5dda5851509b8acc46153917b825b7624b6 | 854 | py | Python | home/forms.py | Legaeldan/siobhan-mcgowan-photography | 76ad93baf9792f194a48b7e3d42d274f35152fc0 | [
"W3C"
] | null | null | null | home/forms.py | Legaeldan/siobhan-mcgowan-photography | 76ad93baf9792f194a48b7e3d42d274f35152fc0 | [
"W3C"
] | 4 | 2021-06-08T21:02:03.000Z | 2022-01-13T02:21:06.000Z | home/forms.py | Legaeldan/siobhan-mcgowan-photography | 76ad93baf9792f194a48b7e3d42d274f35152fc0 | [
"W3C"
] | 1 | 2020-03-31T14:39:06.000Z | 2020-03-31T14:39:06.000Z | from django import forms
| 42.7 | 131 | 0.651054 |
9bd5f6eb4686ccd15c9d2237b780310a0cf0d3f6 | 6,517 | py | Python | lasttester/components/configs/ftp.py | gitdachong/lasttester | 4c637d7704e9d577050e666f6ce01fc5d3752044 | [
"MIT"
] | null | null | null | lasttester/components/configs/ftp.py | gitdachong/lasttester | 4c637d7704e9d577050e666f6ce01fc5d3752044 | [
"MIT"
] | null | null | null | lasttester/components/configs/ftp.py | gitdachong/lasttester | 4c637d7704e9d577050e666f6ce01fc5d3752044 | [
"MIT"
] | null | null | null | #coding:utf-8
import ftplib
import os
from ...core import constants
from . import base
| 35.612022 | 100 | 0.577566 |
9bd6f70a62ad5148b40fc54e7119d371615bc893 | 4,248 | py | Python | util/load.py | juvalen/mb-checker | d1c869cf38af4bed409b901fe260feb54523bd6e | [
"MIT"
] | 12 | 2020-02-01T18:43:51.000Z | 2022-03-18T17:53:43.000Z | util/load.py | juvalen/mb-checker | d1c869cf38af4bed409b901fe260feb54523bd6e | [
"MIT"
] | 6 | 2019-10-19T18:32:16.000Z | 2021-09-16T13:34:13.000Z | util/load.py | juvalen/mb-checker | d1c869cf38af4bed409b901fe260feb54523bd6e | [
"MIT"
] | null | null | null | # Name: load.py
# Date: June 2019
# Function: goes trough a bookmark file checking the status of each URL
# Input: bookmark file in json format
# Output: new text and json files including those URLs according with their status
import os
import ast
try:
import requests
except:
sys.stderr.write("%s: Please inst... | 28.897959 | 96 | 0.545433 |
9bd75770d8f779d1f6be976a5153f3df87d94f4e | 1,248 | py | Python | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cuda/errors.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cuda/errors.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1 | 2018-04-03T22:37:40.000Z | 2018-04-03T23:53:43.000Z | dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/cuda/errors.py | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | from __future__ import print_function, absolute_import
import numbers
def normalize_kernel_dimensions(griddim, blockdim):
"""
Normalize and validate the user-supplied kernel dimensions.
"""
griddim = check_dim(griddim, 'griddim')
blockdim = check_dim(blockdim, 'blockdim')
return griddim, b... | 29.714286 | 82 | 0.563301 |
9bd93ddac308f79528b349ef3589bc678b64c99a | 4,617 | py | Python | Protheus_WebApp/Modules/SIGAPLS/PLSA809TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 17 | 2018-09-24T17:27:08.000Z | 2021-09-16T19:09:46.000Z | Protheus_WebApp/Modules/SIGAPLS/PLSA809TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 4 | 2018-09-24T17:30:32.000Z | 2022-01-03T11:39:30.000Z | Protheus_WebApp/Modules/SIGAPLS/PLSA809TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 18 | 2019-06-07T17:41:34.000Z | 2022-01-31T18:17:31.000Z | from tir import Webapp
import unittest
from tir.technologies.apw_internal import ApwInternal
import datetime
import time
DateSystem = datetime.datetime.today().strftime('%d/%m/%Y')
DateVal = datetime.datetime(2120, 5, 17)
"""-------------------------------------------------------------------
/*/{Protheus.doc} PLSA809T... | 41.594595 | 185 | 0.718648 |
9bda521421d444cb1361c910a70adc7a47fdcd9f | 80,233 | py | Python | sympy/integrals/rubi/rubi_tests/tests/test_hyperbolic_sine.py | Michal-Gagala/sympy | 3cc756c2af73b5506102abaeefd1b654e286e2c8 | [
"MIT"
] | null | null | null | sympy/integrals/rubi/rubi_tests/tests/test_hyperbolic_sine.py | Michal-Gagala/sympy | 3cc756c2af73b5506102abaeefd1b654e286e2c8 | [
"MIT"
] | null | null | null | sympy/integrals/rubi/rubi_tests/tests/test_hyperbolic_sine.py | Michal-Gagala/sympy | 3cc756c2af73b5506102abaeefd1b654e286e2c8 | [
"MIT"
] | null | null | null | import sys
from sympy.external import import_module
matchpy = import_module("matchpy")
if not matchpy:
#bin/test will not execute any tests now
disabled = True
if sys.version_info[:2] < (3, 6):
disabled = True
from sympy.integrals.rubi.utility_function import (
sympy_op_factory, Int, ... | 251.514107 | 2,469 | 0.511161 |
9bdab67b4c98abd166793cc86942cb2809dc9195 | 3,759 | py | Python | P13pt/mascril/modules/lockin2gates.py | green-mercury/P13pt | 38c4f079ec071b5b2651415d7bcb03be7a8a1dab | [
"MIT"
] | 3 | 2019-08-27T16:32:29.000Z | 2019-09-28T06:56:14.000Z | P13pt/mascril/modules/lockin2gates.py | DamienFruleux/P13pt | a2cd74e97b8b2e5fb518886237575ae769229e49 | [
"MIT"
] | 4 | 2018-10-29T22:06:54.000Z | 2019-02-28T12:39:03.000Z | P13pt/mascril/modules/lockin2gates.py | DamienFruleux/P13pt | a2cd74e97b8b2e5fb518886237575ae769229e49 | [
"MIT"
] | 1 | 2019-02-13T13:29:18.000Z | 2019-02-13T13:29:18.000Z | from __future__ import print_function
from P13pt.mascril.measurement import MeasurementBase
from P13pt.mascril.parameter import Sweep, String, Folder, Boolean
from P13pt.drivers.bilt import Bilt, BiltVoltageSource, BiltVoltMeter
from P13pt.drivers.zilockin import ZILockin
import time
import numpy as np
import os
if ... | 34.172727 | 117 | 0.554403 |
9bdb227b8986247b3e187af1afb2dd0572b47533 | 1,281 | py | Python | scripts/parse_coredump_bin.py | lucasdietrich/AVRTOS | a8a3b7890ed54fbb1bd718fd13b0eb620ecf9b13 | [
"Apache-2.0"
] | 3 | 2021-12-10T21:16:03.000Z | 2022-03-20T08:09:53.000Z | scripts/parse_coredump_bin.py | Adecy/atmega328p-multithreading | b0f2da9f31fba7bcccf5f06f827af87494a0bcb3 | [
"Apache-2.0"
] | null | null | null | scripts/parse_coredump_bin.py | Adecy/atmega328p-multithreading | b0f2da9f31fba7bcccf5f06f827af87494a0bcb3 | [
"Apache-2.0"
] | null | null | null | import re
import struct
from typing import List
re_coredump = re.compile(b"<<<<.{37}>>>>")
if __name__ == "__main__":
import sys
if len(sys.argv) == 2:
parse_core(sys.argv[1])
else:
raise Exception("argument problem") | 19.707692 | 91 | 0.552693 |
9bdd49b2261226a6e0a3e0a8388b9e1d582f8dd9 | 1,046 | py | Python | src/utils/time_helpers.py | pdkary/black-scholes-plus | 1df6d0e18416900ce9380e5428da58af6bb785fa | [
"MIT"
] | 2 | 2021-02-18T04:22:55.000Z | 2021-02-20T23:40:29.000Z | src/utils/time_helpers.py | pdkary/black-scholes-plus | 1df6d0e18416900ce9380e5428da58af6bb785fa | [
"MIT"
] | null | null | null | src/utils/time_helpers.py | pdkary/black-scholes-plus | 1df6d0e18416900ce9380e5428da58af6bb785fa | [
"MIT"
] | null | null | null | from datetime import datetime,timedelta
import re | 27.526316 | 54 | 0.629063 |
9bdd52b91453871245afa987abaad8fffe050c55 | 484 | py | Python | scripts/publish_source.py | apguerrera/DreamFrames | ad6c7c081378f02010583dbdcb33e8ff112dd94b | [
"MIT"
] | 2 | 2020-06-09T02:12:21.000Z | 2021-02-06T07:33:31.000Z | scripts/publish_source.py | apguerrera/DreamFrames | ad6c7c081378f02010583dbdcb33e8ff112dd94b | [
"MIT"
] | null | null | null | scripts/publish_source.py | apguerrera/DreamFrames | ad6c7c081378f02010583dbdcb33e8ff112dd94b | [
"MIT"
] | 2 | 2019-05-01T01:53:42.000Z | 2020-05-11T14:11:56.000Z | from brownie import *
from .contract_addresses import *
import time
| 24.2 | 83 | 0.706612 |
9bde10aee3baf3325c77d739728c73601b1e2704 | 1,787 | py | Python | examples/demo_classic.py | ria02/InquirerPy | e748d21846ae91553cfb78f61464e35432e04bea | [
"MIT"
] | 120 | 2021-01-17T08:57:14.000Z | 2022-03-19T16:17:41.000Z | examples/demo_classic.py | ria02/InquirerPy | e748d21846ae91553cfb78f61464e35432e04bea | [
"MIT"
] | 37 | 2021-01-29T12:10:11.000Z | 2022-03-08T04:47:39.000Z | examples/demo_classic.py | ria02/InquirerPy | e748d21846ae91553cfb78f61464e35432e04bea | [
"MIT"
] | 5 | 2021-04-29T21:57:14.000Z | 2022-02-01T12:34:21.000Z | # NOTE: Following example requires boto3 package.
import boto3
from InquirerPy import prompt
from InquirerPy.exceptions import InvalidArgument
from InquirerPy.validator import PathValidator
client = boto3.client("s3")
questions = [
{
"message": "Select an S3 action:",
"type": "list",
... | 24.819444 | 74 | 0.593173 |
9bdfb44396698ccfce25133f1a6c45d37c79360e | 1,999 | py | Python | python/level1_single_api/9_amct/amct_pytorch/tensor_decompose/src/common/model.py | Ascend/samples | 5e060ddf8c502cf0e248ecbe1c8986e95351cbbd | [
"Apache-2.0"
] | 25 | 2020-11-20T09:01:35.000Z | 2022-03-29T10:35:38.000Z | python/level1_single_api/9_amct/amct_pytorch/tensor_decompose/src/common/model.py | Ascend/samples | 5e060ddf8c502cf0e248ecbe1c8986e95351cbbd | [
"Apache-2.0"
] | 5 | 2021-02-28T20:49:37.000Z | 2022-03-04T21:50:27.000Z | python/level1_single_api/9_amct/amct_pytorch/tensor_decompose/src/common/model.py | Ascend/samples | 5e060ddf8c502cf0e248ecbe1c8986e95351cbbd | [
"Apache-2.0"
] | 16 | 2020-12-06T07:26:13.000Z | 2022-03-01T07:51:55.000Z | """
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 30.287879 | 74 | 0.608304 |
9bdfc1ceca2e6426e5eb5dda16444705d6a08581 | 7,211 | py | Python | layers/poky/scripts/lib/argparse_oe.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 53 | 2018-02-28T08:51:32.000Z | 2022-02-28T06:49:23.000Z | layers/poky/scripts/lib/argparse_oe.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 27 | 2018-01-25T00:26:53.000Z | 2020-08-09T05:20:04.000Z | layers/poky/scripts/lib/argparse_oe.py | dtischler/px30-test | 55dce0b7aff1c4a7dea3ac94f94cc9c67fba7c9f | [
"Apache-2.0"
] | 51 | 2018-02-21T04:46:08.000Z | 2022-03-02T04:20:41.000Z | import sys
import argparse
from collections import defaultdict, OrderedDict
def int_positive(value):
ivalue = int(value)
if ivalue <= 0:
raise argparse.ArgumentTypeError(
"%s is not a positive int value" % value)
return ivalue
| 40.740113 | 125 | 0.61947 |
9be072e436a510815bc7fcb98815452de49a5068 | 491 | py | Python | datahub/omis/invoice/migrations/0006_invoice_contact_email.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/omis/invoice/migrations/0006_invoice_contact_email.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/omis/invoice/migrations/0006_invoice_contact_email.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | # Generated by Django 2.0.1 on 2018-01-03 15:50
from django.db import migrations, models
| 25.842105 | 139 | 0.645621 |
9be124ef67f3b453a9c7cec4c9b6b95772c4ee79 | 71 | py | Python | src/waldur_openstack/openstack/__init__.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 26 | 2017-10-18T13:49:58.000Z | 2021-09-19T04:44:09.000Z | src/waldur_openstack/openstack/__init__.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 14 | 2018-12-10T14:14:51.000Z | 2021-06-07T10:33:39.000Z | src/waldur_openstack/openstack/__init__.py | geant-multicloud/MCMS-mastermind | 81333180f5e56a0bc88d7dad448505448e01f24e | [
"MIT"
] | 32 | 2017-09-24T03:10:45.000Z | 2021-10-16T16:41:09.000Z | default_app_config = 'waldur_openstack.openstack.apps.OpenStackConfig'
| 35.5 | 70 | 0.873239 |
9be66a9b0c5bd06f8460d9a3b8c3707b90aaf766 | 1,513 | py | Python | bin/system-setup.py | filipecosta90/readies | ffd48b39cd7c124e08eb3d770a0e0581445ffa37 | [
"BSD-3-Clause"
] | 9 | 2019-12-17T17:57:54.000Z | 2022-02-04T15:43:35.000Z | bin/system-setup.py | filipecosta90/readies | ffd48b39cd7c124e08eb3d770a0e0581445ffa37 | [
"BSD-3-Clause"
] | 87 | 2021-01-06T08:59:37.000Z | 2022-02-16T05:10:03.000Z | bin/system-setup.py | filipecosta90/readies | ffd48b39cd7c124e08eb3d770a0e0581445ffa37 | [
"BSD-3-Clause"
] | 11 | 2019-12-11T13:30:23.000Z | 2022-01-06T12:21:26.000Z | #!/bin/sh
''''[ ! -z $VIRTUAL_ENV ] && exec python -u -- "$0" ${1+"$@"}; command -v python3 > /dev/null && exec python3 -u -- "$0" ${1+"$@"}; exec python2 -u -- "$0" ${1+"$@"} # '''
import sys
import os
import argparse
HERE = os.path.dirname(__file__)
ROOT = os.path.abspath(os.path.join(HERE, ".."))
sys.path.insert(0... | 29.666667 | 171 | 0.540648 |
9be827bbd8f9d8f8bfa67b4e37d5499806d0fe07 | 1,261 | py | Python | server/block-pyhook.py | Strangemother/python-websocket-server | d52ae1708ddc13e81360ce3dd01d826db81e0204 | [
"MIT"
] | null | null | null | server/block-pyhook.py | Strangemother/python-websocket-server | d52ae1708ddc13e81360ce3dd01d826db81e0204 | [
"MIT"
] | null | null | null | server/block-pyhook.py | Strangemother/python-websocket-server | d52ae1708ddc13e81360ce3dd01d826db81e0204 | [
"MIT"
] | null | null | null | import pyHook
from threading import Timer
import win32gui
import logging
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO)
block = blockInput()
block.block()
import time
t0 = time.time()
while time.time() - t0 < 10:
time.sleep(1)
print(time.time... | 24.25 | 66 | 0.563045 |
9be85a856102dd5c673bbdbba790b94ac201e3f7 | 302 | py | Python | algorithms/implementation/cut_the_sticks.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | algorithms/implementation/cut_the_sticks.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | algorithms/implementation/cut_the_sticks.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null |
length = int(input())
current = list(
map(
int,
input().split()
)
)
while current:
print(len(current))
current = make_cut(current)
| 12.583333 | 31 | 0.490066 |
9be888d23e35c264f22caee9146fdcf281c9f560 | 2,631 | py | Python | datasets.py | RAMitchell/GLM-Benchmarks | 68a5e2a45f299231dded8227cb6b40cbfefd589a | [
"MIT"
] | 1 | 2020-12-28T09:27:24.000Z | 2020-12-28T09:27:24.000Z | datasets.py | RAMitchell/GLM-Benchmarks | 68a5e2a45f299231dded8227cb6b40cbfefd589a | [
"MIT"
] | null | null | null | datasets.py | RAMitchell/GLM-Benchmarks | 68a5e2a45f299231dded8227cb6b40cbfefd589a | [
"MIT"
] | null | null | null | import gzip
import numpy as np
import os
import pandas as pd
import shutil
import sys
import tarfile
import urllib
import zipfile
from scipy.sparse import vstack
from sklearn import datasets
from sklearn.externals.joblib import Memory
if sys.version_info[0] >= 3:
from urllib.request import urlretrieve
else:
fr... | 26.049505 | 101 | 0.645382 |
9bebc0cc96c6c240408e6ad6840dd2690e533560 | 2,458 | py | Python | lv_set/Main.py | Ramesh-X/Level-Set | 95e01171a284f2aadfd1eb88dde1c26e4f4878e9 | [
"MIT"
] | 122 | 2017-11-10T09:31:17.000Z | 2022-03-30T03:33:02.000Z | lv_set/Main.py | Ramesh-X/Level-Set | 95e01171a284f2aadfd1eb88dde1c26e4f4878e9 | [
"MIT"
] | 1 | 2018-11-05T05:38:50.000Z | 2018-11-05T07:44:08.000Z | lv_set/Main.py | Ramesh-X/Level-Set | 95e01171a284f2aadfd1eb88dde1c26e4f4878e9 | [
"MIT"
] | 61 | 2017-11-06T04:49:25.000Z | 2022-03-10T08:41:26.000Z | """
This python code demonstrates an edge-based active contour model as an application of the
Distance Regularized Level Set Evolution (DRLSE) formulation in the following paper:
C. Li, C. Xu, C. Gui, M. D. Fox, "Distance Regularized Level Set Evolution and Its Application to Image Segmentation",
IEEE Trans. Im... | 31.113924 | 120 | 0.650936 |
9becb4cf172ca0bea4ede6f78c4348b44117361b | 2,421 | py | Python | object_detection/handlers.py | pavelbystrov1/detection_bot | b48c360ae0ddf93ad87edd5609f00e6f1b57a5c6 | [
"Apache-2.0"
] | null | null | null | object_detection/handlers.py | pavelbystrov1/detection_bot | b48c360ae0ddf93ad87edd5609f00e6f1b57a5c6 | [
"Apache-2.0"
] | null | null | null | object_detection/handlers.py | pavelbystrov1/detection_bot | b48c360ae0ddf93ad87edd5609f00e6f1b57a5c6 | [
"Apache-2.0"
] | null | null | null | """ bot handlers """
import os
from pymongo import MongoClient
from utils import main_keyboard
import settings
from db import get_or_create_user, save_detected_defects, save_car_counts
from db import defects_stat, cars_stat
from processing import process_picture
from cars_counting import detect_all_autos
from dl import... | 37.246154 | 97 | 0.736473 |
9bee7b095f164de13e05289910aabe44e6f21162 | 873 | py | Python | src/utils.py | Martins6/stats-img-processing | 0254b451543770319e7b629dd00dd09cf763a3a5 | [
"Unlicense"
] | null | null | null | src/utils.py | Martins6/stats-img-processing | 0254b451543770319e7b629dd00dd09cf763a3a5 | [
"Unlicense"
] | 1 | 2022-01-13T03:51:44.000Z | 2022-01-13T03:51:44.000Z | src/utils.py | Martins6/stats-img-processing | 0254b451543770319e7b629dd00dd09cf763a3a5 | [
"Unlicense"
] | null | null | null | import os
import matplotlib.pyplot as plt
| 29.1 | 103 | 0.562428 |
9beffefe216348049fb0a4b50410d3ac25cedf08 | 176 | py | Python | minigame/button.py | AndrewCarterUK/MiniGame | 6d699c045e84ee3834f23eb0483245195438eff7 | [
"MIT"
] | null | null | null | minigame/button.py | AndrewCarterUK/MiniGame | 6d699c045e84ee3834f23eb0483245195438eff7 | [
"MIT"
] | null | null | null | minigame/button.py | AndrewCarterUK/MiniGame | 6d699c045e84ee3834f23eb0483245195438eff7 | [
"MIT"
] | null | null | null | import abc
| 16 | 42 | 0.647727 |
9bf1a15848cc787927ffbf31caa854fbcd128fdd | 4,384 | py | Python | Polynomial_vec.py | chapman-phys227-2016s/hw-7-malfa100 | 8002e45f8435aeb66a93b4f30331b21ddaf99ef5 | [
"MIT"
] | null | null | null | Polynomial_vec.py | chapman-phys227-2016s/hw-7-malfa100 | 8002e45f8435aeb66a93b4f30331b21ddaf99ef5 | [
"MIT"
] | null | null | null | Polynomial_vec.py | chapman-phys227-2016s/hw-7-malfa100 | 8002e45f8435aeb66a93b4f30331b21ddaf99ef5 | [
"MIT"
] | null | null | null | """
File: Polynomial_vec.py
Copyright (c) 2016 Andrew Malfavon
License: MIT
Exercise 7.27
Description: Use vectorized expressions in the Polynomial class.
"""
import numpy as np
import unittest as ut
p1 = Polynomial([1, -1])
p2 = Polynomial([0, 1, 0, 0, -6, -1]) | 35.072 | 101 | 0.57208 |
9bf1fa19b0bbd61d2f84487789a9ba6eac519047 | 18,637 | py | Python | OOP/Shop_OOP.py | Deego88/MPP_Assignment | f28ec02d1dbfb0f6079b87a99510771502e46c78 | [
"MIT"
] | null | null | null | OOP/Shop_OOP.py | Deego88/MPP_Assignment | f28ec02d1dbfb0f6079b87a99510771502e46c78 | [
"MIT"
] | null | null | null | OOP/Shop_OOP.py | Deego88/MPP_Assignment | f28ec02d1dbfb0f6079b87a99510771502e46c78 | [
"MIT"
] | null | null | null | # Student:Richard Deegan
# Student NUmber: G00387896
# Import libraries
import os
import csv
#****** CREATE DATA CLASS******#
# Create a data class for Product
# Create a data class for ProductStock
# Create a data class for Customer
#****** SHOP_DETAILS ******#
def main():
# Clea... | 37.803245 | 141 | 0.489403 |
9bf23ce8f874e49f7dbc801b56d74fadb35d9f6f | 2,607 | py | Python | 7/assembly.py | Keilan/advent-of-code-2018 | 3f3b4952c3633df4008e734da15e219fa67ec635 | [
"MIT"
] | null | null | null | 7/assembly.py | Keilan/advent-of-code-2018 | 3f3b4952c3633df4008e734da15e219fa67ec635 | [
"MIT"
] | null | null | null | 7/assembly.py | Keilan/advent-of-code-2018 | 3f3b4952c3633df4008e734da15e219fa67ec635 | [
"MIT"
] | null | null | null | import sys
import copy
assembly() | 27.442105 | 72 | 0.589567 |
9bf246a2909d52a0002e7bef877a273448d9ca53 | 14,502 | py | Python | server.py | andersonsso/vogon | dd6b812c0a48c2ff99bb7690536e0b2e46f226bc | [
"Apache-2.0"
] | 98 | 2015-01-20T05:57:01.000Z | 2022-01-04T12:03:39.000Z | server.py | andersonsso/vogon | dd6b812c0a48c2ff99bb7690536e0b2e46f226bc | [
"Apache-2.0"
] | 13 | 2016-08-28T05:58:59.000Z | 2021-01-14T10:55:01.000Z | server.py | andersonsso/vogon | dd6b812c0a48c2ff99bb7690536e0b2e46f226bc | [
"Apache-2.0"
] | 57 | 2015-01-24T09:23:34.000Z | 2021-12-09T06:18:27.000Z | #!/usr/bin/python
# vim: set fileencoding=utf-8 :
# Copyright 2019 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/LIC... | 35.284672 | 88 | 0.635912 |
9bf2b2dc723f4b7d00b4319b8189354d02aff030 | 4,318 | py | Python | 3/konks_lab_3.py | exucutional/study_comp_math | c73b6f00e86b2d19c4cb81c377ca4706d70b2831 | [
"MIT"
] | null | null | null | 3/konks_lab_3.py | exucutional/study_comp_math | c73b6f00e86b2d19c4cb81c377ca4706d70b2831 | [
"MIT"
] | null | null | null | 3/konks_lab_3.py | exucutional/study_comp_math | c73b6f00e86b2d19c4cb81c377ca4706d70b2831 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Lab 02
#
# ## Solving a system of nonlinear equations
#
# ### Konks Eric, 01-818
#
# IV.12.7.
# $$\begin{cases} x^7 - 5x^2y^4 + 1510 = 0 \\ y^3 - 3x^4y - 105 = 0 \end{cases}$$
# $$\begin{cases} x_{n+1} = \sqrt{\frac{x_n^7 + 1510}{5y_n^4}} \\ y_{n+1} = \sqrt[3]{3x_{n}^4y_{... | 22.968085 | 130 | 0.556739 |
9bf3343933efdd880c3c62f4485b50df56cf0721 | 9,035 | py | Python | tictactoe.py | pauloue/tictactoe-turtle | 017127dee455828ed355dac29c9b9be4439d5cdb | [
"MIT"
] | 1 | 2021-02-12T03:08:27.000Z | 2021-02-12T03:08:27.000Z | tictactoe.py | pauloue/tictactoe-turtle | 017127dee455828ed355dac29c9b9be4439d5cdb | [
"MIT"
] | null | null | null | tictactoe.py | pauloue/tictactoe-turtle | 017127dee455828ed355dac29c9b9be4439d5cdb | [
"MIT"
] | 1 | 2018-05-23T09:29:24.000Z | 2018-05-23T09:29:24.000Z | #!/usr/bin/env python3
"""A tic tac toe game with an unbeatable AI that uses the Python turtle
module. The AI player chooses it's move using the minimax algorithm.
"""
from ttt_util import TicTacToeUI, HumanPlayer, BotPlayer
from random import shuffle
def main():
"""Initialize two players and a game of tic tac... | 37.962185 | 78 | 0.563365 |
9bf3bc1a17de012e467867d34b900bdba5a0b239 | 21,722 | py | Python | cjktools/tests/resources/test_tatoeba.py | pganssle/cjktools | 853dec98177b5552eab4ea18ca2ce481aff28d2d | [
"BSD-3-Clause"
] | 17 | 2016-04-09T00:47:53.000Z | 2020-06-09T10:16:10.000Z | cjktools/tests/resources/test_tatoeba.py | pganssle/cjktools | 853dec98177b5552eab4ea18ca2ce481aff28d2d | [
"BSD-3-Clause"
] | 7 | 2016-04-19T20:14:11.000Z | 2016-12-23T11:09:56.000Z | cjktools/tests/resources/test_tatoeba.py | pganssle/cjktools | 853dec98177b5552eab4ea18ca2ce481aff28d2d | [
"BSD-3-Clause"
] | 6 | 2015-12-10T02:28:32.000Z | 2021-10-17T05:23:14.000Z | # -*- coding: utf-8 -*-
#
# test_tatoeba.py
# cjktools
#
from __future__ import unicode_literals
import os
from .._common import to_unicode_stream, to_string_stream
import unittest
from six import text_type
from functools import partial
from datetime import datetime
from cjktools.resources import tatoeba, auto_f... | 34.154088 | 83 | 0.564727 |
9bf44b2d04766a196cb4f85df49ddd09eb5801af | 65 | py | Python | sql/__init__.py | realDragonium/small-flask-project | 5688210418997dbdf5b38e0ce77750eab7eefd3a | [
"Unlicense"
] | null | null | null | sql/__init__.py | realDragonium/small-flask-project | 5688210418997dbdf5b38e0ce77750eab7eefd3a | [
"Unlicense"
] | null | null | null | sql/__init__.py | realDragonium/small-flask-project | 5688210418997dbdf5b38e0ce77750eab7eefd3a | [
"Unlicense"
] | null | null | null | from .sql_models import SQLQuiz, SQLQuestion, SQLAnswerOption
| 13 | 61 | 0.815385 |
9bf4cfbcb37e69da790172521eacefd9fe4daf66 | 899 | py | Python | setup.py | fabaff/penin | 6a93984357b4478907746225bfadea0bfc8b681c | [
"Apache-2.0"
] | 4 | 2019-06-04T04:14:42.000Z | 2021-04-02T17:25:28.000Z | setup.py | fabaff/penin | 6a93984357b4478907746225bfadea0bfc8b681c | [
"Apache-2.0"
] | null | null | null | setup.py | fabaff/penin | 6a93984357b4478907746225bfadea0bfc8b681c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""PenIn setup script."""
from setuptools import setup, find_packages
from penin.core.version import get_version
VERSION = get_version()
readme_file = open("README.md", "r")
LONG_DESCRIPTION = readme_file.read()
readme_file.close()
setup(
name="penin",
version=VERSION,
description=... | 32.107143 | 74 | 0.716352 |
9bf5111951f211230177602f66faaa2faeecb8c9 | 65 | py | Python | tyled/tileset/orthogonal/__init__.py | kfields/tyled | 65f57c3f060c369d1e3875d94363a03a11fe7c3e | [
"MIT"
] | 1 | 2020-04-14T09:25:25.000Z | 2020-04-14T09:25:25.000Z | tyled/tileset/orthogonal/__init__.py | kfields/tyled | 65f57c3f060c369d1e3875d94363a03a11fe7c3e | [
"MIT"
] | 2 | 2021-09-08T01:52:49.000Z | 2022-01-13T02:32:08.000Z | tyled/tileset/orthogonal/__init__.py | kfields/tyled | 65f57c3f060c369d1e3875d94363a03a11fe7c3e | [
"MIT"
] | null | null | null | from tyled.tileset.orthogonal.orthogonal import OrthogonalTileset | 65 | 65 | 0.907692 |
9bf527aac7e8ff43497cfbcad130e15221237397 | 107 | py | Python | run_length_encoding.py | wolfd/jpeg-svg | 42370757ec98642b57486c7d2fd3fae7df9bc271 | [
"MIT"
] | null | null | null | run_length_encoding.py | wolfd/jpeg-svg | 42370757ec98642b57486c7d2fd3fae7df9bc271 | [
"MIT"
] | null | null | null | run_length_encoding.py | wolfd/jpeg-svg | 42370757ec98642b57486c7d2fd3fae7df9bc271 | [
"MIT"
] | null | null | null | import typing as T
import numpy as np
| 15.285714 | 51 | 0.766355 |
9bf7c5e1835265f229893ed245fb8e8ced3ce5f3 | 3,556 | py | Python | pdf2data/data.py | inducer/pdf2data | 7554c998148ac29adc9993643dff649a9108619a | [
"MIT"
] | 11 | 2019-08-10T18:01:24.000Z | 2021-07-05T20:22:02.000Z | pdf2data/data.py | inducer/pdf2data | 7554c998148ac29adc9993643dff649a9108619a | [
"MIT"
] | null | null | null | pdf2data/data.py | inducer/pdf2data | 7554c998148ac29adc9993643dff649a9108619a | [
"MIT"
] | 6 | 2019-09-01T07:56:50.000Z | 2021-06-20T12:16:52.000Z | __copyright__ = "Copyright (C) 2019 Andreas Kloeckner"
__license__ = """
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, ... | 31.192982 | 78 | 0.667885 |
9bfb702a893a75e9d3f590535033334c0f14a5ea | 3,742 | py | Python | exact/exact/tagger_messages/management/commands/testdb.py | maubreville/Exact | 2f4ce50054bfe5350a106ef3fa1a2f03c90bbbef | [
"MIT"
] | 43 | 2020-01-29T17:19:21.000Z | 2022-03-29T11:11:32.000Z | exact/exact/tagger_messages/management/commands/testdb.py | maubreville/Exact | 2f4ce50054bfe5350a106ef3fa1a2f03c90bbbef | [
"MIT"
] | 41 | 2020-01-31T09:31:31.000Z | 2022-02-24T15:55:21.000Z | exact/exact/tagger_messages/management/commands/testdb.py | maubreville/Exact | 2f4ce50054bfe5350a106ef3fa1a2f03c90bbbef | [
"MIT"
] | 16 | 2020-02-11T18:26:32.000Z | 2021-07-30T09:05:15.000Z | from django.core.management.base import BaseCommand
from exact.users.models import User, Team, TeamMembership
from exact.tagger_messages.models import TeamMessage, GlobalMessage
from datetime import timedelta
from django.utils import timezone
from random import randint
from faker import Faker
import sys
faker = Faker(... | 43.011494 | 155 | 0.615714 |
9bfd1efc408b89ae999c37acf631f9234b2c8e00 | 1,529 | py | Python | Libraries/Simplynet.py | frknayk/WeightVis | 255114ed0981467e29c5a28d0130af24373db1f1 | [
"MIT"
] | 2 | 2021-02-24T06:00:27.000Z | 2022-02-16T11:14:25.000Z | Libraries/Simplynet.py | frknayk/WeightVis | 255114ed0981467e29c5a28d0130af24373db1f1 | [
"MIT"
] | 1 | 2020-07-28T09:14:53.000Z | 2020-07-28T09:17:47.000Z | Libraries/Simplynet.py | frknayk/WeightVis | 255114ed0981467e29c5a28d0130af24373db1f1 | [
"MIT"
] | null | null | null | import numpy as np
import pickle
from Libraries.Enums import NNLibs
from Libraries.Reader import Reader
#TODO Complete read() function for SimplyNet
#TODO SimplyNet init(self,path) - path should go to read's parameter(like torch)
| 30.58 | 80 | 0.589274 |
9bfe168e6a6c1653360f3b09a3512b52d2922a38 | 2,636 | py | Python | code/python/archive/c0103_timestamp_records.py | jesnyder/MeasuredStress | 8009529da326a66733c26983cc59af8619f6cb42 | [
"MIT"
] | null | null | null | code/python/archive/c0103_timestamp_records.py | jesnyder/MeasuredStress | 8009529da326a66733c26983cc59af8619f6cb42 | [
"MIT"
] | null | null | null | code/python/archive/c0103_timestamp_records.py | jesnyder/MeasuredStress | 8009529da326a66733c26983cc59af8619f6cb42 | [
"MIT"
] | null | null | null | from datetime import datetime
from dateutil import tz
import glob
import os
import pandas as pd
import sys
import time
def timestamp_records():
"""
"""
print("running format_source")
sensors = ['EDA', 'HR', 'TEMP']
path_folders = os.path.join('..', '..', 'source_measurements', 'PMR', 'ref' )... | 31.380952 | 137 | 0.546282 |
9bfea3c6d3e9981e8fc5494581fd8d33faa52aee | 15,114 | py | Python | NVIDIA/benchmarks/ssd/implementations/pytorch/utils.py | goswamig/training_results_v0.7 | 4278ce8a0f3d4db6b5e6054277724ca36278d7a3 | [
"Apache-2.0"
] | 48 | 2020-07-29T18:09:23.000Z | 2021-10-09T01:53:33.000Z | NVIDIA/benchmarks/ssd/implementations/pytorch/utils.py | goswamig/training_results_v0.7 | 4278ce8a0f3d4db6b5e6054277724ca36278d7a3 | [
"Apache-2.0"
] | 9 | 2021-04-02T02:28:07.000Z | 2022-03-26T18:23:59.000Z | NVIDIA/benchmarks/ssd/implementations/pytorch/utils.py | lablup/training_results_v0.7 | f5bb59aa0f8b18b602763abe47d1d24d0d54b197 | [
"Apache-2.0"
] | 42 | 2020-08-01T06:41:24.000Z | 2022-01-20T10:33:08.000Z | # MIT License
#
# Copyright (c) 2018 kuangliu
#
# 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, pub... | 34.905312 | 92 | 0.580918 |
9bfeddde243de4b1d35ced3b1d4b4c7363007028 | 90 | py | Python | src/rubinlander/parsers/lsstdoc/__init__.py | lsst-sqre/rubin-lander-plugin | f570acb92629493e640baf632bd7ceee78516efd | [
"MIT"
] | null | null | null | src/rubinlander/parsers/lsstdoc/__init__.py | lsst-sqre/rubin-lander-plugin | f570acb92629493e640baf632bd7ceee78516efd | [
"MIT"
] | 6 | 2021-04-19T06:07:06.000Z | 2022-03-07T03:02:22.000Z | src/rubinlander/parsers/lsstdoc/__init__.py | lsst-sqre/rubin-lander-plugin | f570acb92629493e640baf632bd7ceee78516efd | [
"MIT"
] | null | null | null | from rubinlander.parsers.lsstdoc.parser import LsstDocParser
__all__ = ["LsstDocParser"]
| 22.5 | 60 | 0.822222 |
9bfeed4ac7968ce26851e608ac8b9ee8b625a069 | 961 | py | Python | network/__init__.py | nivilo/Chase | 921e4b0bf2ca2cbd1a315156287f2af0e8a19c6c | [
"MIT"
] | 68 | 2018-07-23T03:49:17.000Z | 2022-01-11T04:56:32.000Z | network/__init__.py | mpalaiokostas/Chase | 921e4b0bf2ca2cbd1a315156287f2af0e8a19c6c | [
"MIT"
] | null | null | null | network/__init__.py | mpalaiokostas/Chase | 921e4b0bf2ca2cbd1a315156287f2af0e8a19c6c | [
"MIT"
] | 30 | 2018-07-24T20:35:20.000Z | 2021-11-23T00:56:07.000Z | import abc
from config import MODEL_DIR
| 20.891304 | 65 | 0.650364 |
9bffb8d4ff59f69668f6f2eebe842833a4a032ab | 3,000 | py | Python | rdfdatabank/lib/reqclassifier.py | dataflow/RDFDatabank | 8a3abd28fefc62cbbfb9f77e7ddc920e23794f34 | [
"MIT"
] | 4 | 2016-01-10T09:05:22.000Z | 2019-09-09T09:57:25.000Z | rdfdatabank/lib/reqclassifier.py | dataflow/RDFDatabank | 8a3abd28fefc62cbbfb9f77e7ddc920e23794f34 | [
"MIT"
] | null | null | null | rdfdatabank/lib/reqclassifier.py | dataflow/RDFDatabank | 8a3abd28fefc62cbbfb9f77e7ddc920e23794f34 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (c) 2012 University of Oxford
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, modif... | 44.776119 | 89 | 0.726333 |
50007b22b789b5bf2347dd946c7516260c7c35b4 | 31,291 | py | Python | gui/apod_linux_config.py | danahynes/APOD_Linux | fe2bb52e77be77628dc99251cb2c43ec30ddea69 | [
"WTFPL"
] | null | null | null | gui/apod_linux_config.py | danahynes/APOD_Linux | fe2bb52e77be77628dc99251cb2c43ec30ddea69 | [
"WTFPL"
] | null | null | null | gui/apod_linux_config.py | danahynes/APOD_Linux | fe2bb52e77be77628dc99251cb2c43ec30ddea69 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python3
#------------------------------------------------------------------------------#
# Filename: apod_linux_config.py / \ #
# Project : APOD_Linux | () | #
# Date : 06/23/2021 ... | 36.769683 | 80 | 0.580934 |
50038d02e89c3e78533be863fdaf0e1d485f0ce8 | 1,083 | py | Python | setup.py | marianaalbano/python_mail | 4f222894a2faa0714b2211ee9210af8f5cb5f1ed | [
"MIT"
] | null | null | null | setup.py | marianaalbano/python_mail | 4f222894a2faa0714b2211ee9210af8f5cb5f1ed | [
"MIT"
] | null | null | null | setup.py | marianaalbano/python_mail | 4f222894a2faa0714b2211ee9210af8f5cb5f1ed | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#-*- coding: utf-8 -*-
import setuptools
longdesc = """
Esse mdulo foi criado com o objetivo de realizar a busca de mensagens na caixa de e-mail de forma
simplificada e intuitiva utilizando o mdulo imaplib para conexo.
A instalao pode ser feita utilizando:
``pip install git+https://github.com/mar... | 34.935484 | 189 | 0.715605 |
5003a46189d875f28555bd972e68fab9ee40bd4b | 2,156 | py | Python | visualize/MultiPersonVisualizer/Scene.py | ys1998/motion-forecast | ef8fa9d597906a756f28952a731f6bc8d178f2bf | [
"MIT"
] | null | null | null | visualize/MultiPersonVisualizer/Scene.py | ys1998/motion-forecast | ef8fa9d597906a756f28952a731f6bc8d178f2bf | [
"MIT"
] | null | null | null | visualize/MultiPersonVisualizer/Scene.py | ys1998/motion-forecast | ef8fa9d597906a756f28952a731f6bc8d178f2bf | [
"MIT"
] | null | null | null | import vtk
| 38.5 | 89 | 0.651206 |
5003c44eefcd2839eee365d7fdc0530270ef3daa | 7,856 | py | Python | db-scripts/refseq.py | Zorino/BacterialDB-Fetcher | dbdf0a2e82f742ac642230d122675f7dafc21add | [
"CC-BY-4.0"
] | 6 | 2017-12-29T22:47:55.000Z | 2021-05-09T20:35:36.000Z | db-scripts/refseq.py | Zorino/BacterialDB-Fetcher | dbdf0a2e82f742ac642230d122675f7dafc21add | [
"CC-BY-4.0"
] | 1 | 2018-08-20T08:48:49.000Z | 2018-08-20T08:48:49.000Z | db-scripts/refseq.py | Zorino/BacterialDB-Fetcher | dbdf0a2e82f742ac642230d122675f7dafc21add | [
"CC-BY-4.0"
] | 4 | 2017-02-23T20:35:50.000Z | 2021-05-07T20:52:06.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: maxime draspe
# email: maximilien1er@gmail.com
# date: 2017-08-24
# version: 0.01
from subprocess import call
import os
import argparse
import gzip
import re
import glob
from Bio import SeqIO
#from Bio.SeqFeature import FeatureLocation
# search for a fe... | 30.332046 | 118 | 0.565046 |
5004ed5f387e0978045f2498de54cc45f0d3b5ef | 2,875 | py | Python | cobras_ts/notebookquerier_images.py | achenbachsven/learningSkript | 7af067cbf0c8d7eed010806923f8af2e38977be2 | [
"BSD-3-Clause"
] | null | null | null | cobras_ts/notebookquerier_images.py | achenbachsven/learningSkript | 7af067cbf0c8d7eed010806923f8af2e38977be2 | [
"BSD-3-Clause"
] | 3 | 2020-03-24T15:59:06.000Z | 2022-02-10T01:53:37.000Z | cobras_ts/notebookquerier_images.py | achenbachsven/learningSkript | 7af067cbf0c8d7eed010806923f8af2e38977be2 | [
"BSD-3-Clause"
] | null | null | null | import sys
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import random
from cobras_ts.querier import Querier
from IPython import display
def _query_yes_no(question, default="yes"):
"""Ask a yes/no question via raw_input() and return their answer.
"question" is a string that is presented t... | 34.22619 | 105 | 0.594087 |
50079bd502e213830c9687dc496863d92ba09cde | 4,669 | py | Python | train.py | yjang43/WaveNet | fb0edafa813ea2c5be706aceb7ac41802a5d423b | [
"MIT"
] | null | null | null | train.py | yjang43/WaveNet | fb0edafa813ea2c5be706aceb7ac41802a5d423b | [
"MIT"
] | null | null | null | train.py | yjang43/WaveNet | fb0edafa813ea2c5be706aceb7ac41802a5d423b | [
"MIT"
] | null | null | null | import os
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from dataclasses import dataclass
from argparse import ArgumentParser
from tqdm import tqdm
from torch.utils.data import DataLoader
from data import VCTKAudio
from model import WaveNet
if __name__ == '__main__'... | 32.880282 | 131 | 0.618762 |
5008bf50f1c889a0cb8f758f821ceff1b2688937 | 1,933 | py | Python | swmmio/version_control/tests/compare_inp.py | jennwuu/swmmio | 6918ecfb69c10333cbc65ce0ab6554f8a04ef8f9 | [
"MIT"
] | 76 | 2016-04-26T14:04:02.000Z | 2022-03-24T10:10:29.000Z | swmmio/version_control/tests/compare_inp.py | Kimi-Monica/swmmio | 54dd6c1f7a3e47db5702b1f703beca0a8945a250 | [
"MIT"
] | 94 | 2016-05-06T15:32:51.000Z | 2022-02-10T08:03:30.000Z | swmmio/version_control/tests/compare_inp.py | Kimi-Monica/swmmio | 54dd6c1f7a3e47db5702b1f703beca0a8945a250 | [
"MIT"
] | 26 | 2016-09-01T22:51:47.000Z | 2022-02-09T09:13:23.000Z | import os
def line_by_line(path1, path2, outfile):
"""
given paths to two INP files, return a text file showing where differences
occur in line-by-line fashion. If the order of elements do not match, this
will be recorded as a difference.
ignores any spaces in a file such that lines with more or... | 33.327586 | 78 | 0.53492 |
50098859afc4b632919855885ac4d97901250f2d | 221 | py | Python | codeforces/math数学/1000/1023B两个玩具.py | yofn/pyacm | e573f8fdeea77513711f00c42f128795cbba65a6 | [
"Apache-2.0"
] | null | null | null | codeforces/math数学/1000/1023B两个玩具.py | yofn/pyacm | e573f8fdeea77513711f00c42f128795cbba65a6 | [
"Apache-2.0"
] | null | null | null | codeforces/math数学/1000/1023B两个玩具.py | yofn/pyacm | e573f8fdeea77513711f00c42f128795cbba65a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# https://codeforces.com/problemset/problem/1023/A
l = list(map(int,input().split()))
print(f(l))
| 17 | 50 | 0.552036 |
500afac65e9dcc07d02e6f844d28cdea7099e875 | 9,956 | py | Python | nwb/combine_messages.py | bendichter/api-python | 52e97e7642021913ae6505ab63b7cc77d2622d76 | [
"BSD-3-Clause"
] | 32 | 2015-08-21T14:14:44.000Z | 2017-08-31T09:33:14.000Z | nwb/combine_messages.py | bendichter/api-python | 52e97e7642021913ae6505ab63b7cc77d2622d76 | [
"BSD-3-Clause"
] | 24 | 2015-11-18T11:17:04.000Z | 2019-12-31T19:44:18.000Z | nwb/combine_messages.py | bendichter/api-python | 52e97e7642021913ae6505ab63b7cc77d2622d76 | [
"BSD-3-Clause"
] | 18 | 2015-10-07T03:04:41.000Z | 2022-03-11T18:52:20.000Z | import re
import pprint
pp = pprint.PrettyPrinter(indent=4)
from sys import version_info # py3, for checking type of input
def combine_messages(messages):
""" Combines messages that have one or more integers in them, such as
"trial001" "trial002", into a single message like "trial# (#=1-2)".
Thi... | 44.64574 | 108 | 0.569004 |
500cdcbd8b9588b7badc6c30cf7210ed1d19b9b3 | 639 | py | Python | webapp/app/encryptioncontext/migrations/0001_initial.py | aws-samples/aws-secrets-manager-credential-rotation-without-container-restart | 11ad22e8f1d55bf48af219fecdd4ba208c88dff4 | [
"MIT-0"
] | 3 | 2021-08-10T21:05:32.000Z | 2021-11-08T10:25:57.000Z | webapp/app/encryptioncontext/migrations/0001_initial.py | aws-samples/aws-secrets-manager-credential-rotation-without-container-restart | 11ad22e8f1d55bf48af219fecdd4ba208c88dff4 | [
"MIT-0"
] | null | null | null | webapp/app/encryptioncontext/migrations/0001_initial.py | aws-samples/aws-secrets-manager-credential-rotation-without-container-restart | 11ad22e8f1d55bf48af219fecdd4ba208c88dff4 | [
"MIT-0"
] | 1 | 2021-08-10T21:05:33.000Z | 2021-08-10T21:05:33.000Z | # Generated by Django 3.0.1 on 2020-01-02 22:21
from django.db import migrations, models
| 26.625 | 114 | 0.588419 |
500def4cbc4626bb2afe20baf06a6df2008bf456 | 509 | py | Python | spec/python/test_cast_nested.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/python/test_cast_nested.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/python/test_cast_nested.py | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from cast_nested import CastNested
| 36.357143 | 77 | 0.719057 |
500ef1d473debd5ed56d175f4b097ca7c05550eb | 6,390 | py | Python | person/person_processor.py | RuizheYang/deeplearning-proj | f2b0a11cb622a43f55038da577661ba9656e0573 | [
"Apache-2.0"
] | null | null | null | person/person_processor.py | RuizheYang/deeplearning-proj | f2b0a11cb622a43f55038da577661ba9656e0573 | [
"Apache-2.0"
] | null | null | null | person/person_processor.py | RuizheYang/deeplearning-proj | f2b0a11cb622a43f55038da577661ba9656e0573 | [
"Apache-2.0"
] | null | null | null | """
Model Description
@author: Xiayu Li
@contact: xiayu_li@shannonai.com
@version: 0.1
@license: Apache Licence
@file: person_processor.py
@time: 2019/11/14 3:08 PM
"""
import json
import os
from typing import List, Tuple, Dict
from allennlp.predictors.predictor import Predictor
from allennlp.modules.token_embedders... | 86.351351 | 2,387 | 0.684507 |
500f0349827ded93b1215069df6a905dce9513ac | 1,130 | py | Python | application/__init__.py | ppawlo97/si-summer-2020 | ddbb4e29ba9da9af9aaf658df07f891e36737d10 | [
"MIT"
] | null | null | null | application/__init__.py | ppawlo97/si-summer-2020 | ddbb4e29ba9da9af9aaf658df07f891e36737d10 | [
"MIT"
] | 3 | 2021-05-21T16:19:13.000Z | 2022-02-10T00:50:32.000Z | application/__init__.py | ppawlo97/si-summer-2020 | ddbb4e29ba9da9af9aaf658df07f891e36737d10 | [
"MIT"
] | null | null | null | import logging
logging.basicConfig(level=logging.INFO)
from flask import Flask
from application.config import Config
app = Flask(__name__)
app.config.from_object(Config)
from application.models.classifiers.CNNClassifier import CNNClassifier
from application.models.classifiers.MLPClassifier import MLPClassifier
fro... | 35.3125 | 84 | 0.79115 |
5010b73121964b1e2039f7c97a78c65b09242001 | 21,089 | py | Python | CalibTracker/SiStripChannelGain/test/Cosmic_B38/InputFiles_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CalibTracker/SiStripChannelGain/test/Cosmic_B38/InputFiles_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CalibTracker/SiStripChannelGain/test/Cosmic_B38/InputFiles_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | 'rfio:///?svcClass=cmscaf&path=/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/ALCARECO/CRAFT_V2P_StreamALCARECOTkAlCosmics0T_v7/0014/80C4285C-779E-DD11-9889-001617E30CA4.root',
'rfio:///?svcClass=cmscaf&path=/castor/cern.ch/cms/store/data/Commissioning08/Cosmics/ALCARECO/CRAFT_V2P_StreamALCARECOTkAlCosmics0T_v7... | 183.382609 | 184 | 0.843283 |
5011d21366dcb69f240f7e58a464b1188024fc1b | 1,410 | py | Python | mpf/devices/ball_device/ball_device_state_handler.py | Wolfmarsh/mpf | ad71f381ce8a0e65f28958e51cf8a8b38a6154fb | [
"MIT"
] | null | null | null | mpf/devices/ball_device/ball_device_state_handler.py | Wolfmarsh/mpf | ad71f381ce8a0e65f28958e51cf8a8b38a6154fb | [
"MIT"
] | null | null | null | mpf/devices/ball_device/ball_device_state_handler.py | Wolfmarsh/mpf | ad71f381ce8a0e65f28958e51cf8a8b38a6154fb | [
"MIT"
] | null | null | null | """Base class for ball device handlers."""
import asyncio
from mpf.core.utility_functions import Util
| 27.647059 | 91 | 0.611348 |
501249edf828430cf33dfa53f6c8ad7a2568f14d | 500 | py | Python | valtypes/__init__.py | vanburgerberg/constypes | e1a527d21a30782e1e5bfc1005f18791e29fdeb2 | [
"MIT"
] | 2 | 2021-08-30T20:08:49.000Z | 2021-11-28T13:16:54.000Z | valtypes/__init__.py | vanburgerberg/valtypes | e1a527d21a30782e1e5bfc1005f18791e29fdeb2 | [
"MIT"
] | null | null | null | valtypes/__init__.py | vanburgerberg/valtypes | e1a527d21a30782e1e5bfc1005f18791e29fdeb2 | [
"MIT"
] | null | null | null | from .validator import (
And,
Attr,
Chain,
Const,
Contains,
ExcMax,
ExcMin,
Float,
Macro,
Max,
Min,
MultipleOf,
Not,
Or,
Pattern,
Proto,
Type,
Validator,
Xor,
)
__all__ = [
"And",
"Attr",
"Chain",
"Const",
"Validator",
... | 11.363636 | 24 | 0.436 |