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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
419de91687fa41f1d418876dd9614a95ee81af4f | 39,788 | py | Python | nessus/scans.py | tharvik/nessus | 4551c319ac6cb3026ddb096a0f6f71f060a578ab | [
"CC0-1.0"
] | null | null | null | nessus/scans.py | tharvik/nessus | 4551c319ac6cb3026ddb096a0f6f71f060a578ab | [
"CC0-1.0"
] | null | null | null | nessus/scans.py | tharvik/nessus | 4551c319ac6cb3026ddb096a0f6f71f060a578ab | [
"CC0-1.0"
] | null | null | null | """
sub modules for everything about the scans
"""
from enum import Enum
from uuid import uuid4
from typing import Iterable, Mapping, Union, Optional, MutableMapping
from nessus.base import LibNessusBase
from nessus.editor import NessusTemplate
from nessus.model import lying_exist, lying_type, Object, lying_exist_an... | 41.970464 | 120 | 0.663894 |
41a06f10c100f3cd38eb1a9e5dbb23f8546f5139 | 10,444 | py | Python | panopticon/wme.py | scyrusm/panopticon | bb28deffb97fd7c983a5abb8c2626c24d9f25e48 | [
"BSD-3-Clause"
] | 3 | 2021-01-14T13:38:32.000Z | 2021-09-07T12:18:48.000Z | panopticon/wme.py | scyrusm/panopticon | bb28deffb97fd7c983a5abb8c2626c24d9f25e48 | [
"BSD-3-Clause"
] | null | null | null | panopticon/wme.py | scyrusm/panopticon | bb28deffb97fd7c983a5abb8c2626c24d9f25e48 | [
"BSD-3-Clause"
] | 2 | 2020-12-22T03:15:27.000Z | 2020-12-22T03:16:50.000Z | """
wme.py
====================================
wme
"""
# second version
import numpy as np
from tqdm import tqdm
import pandas as pd
from scipy import stats
from itertools import islice
from scipy.sparse import coo_matrix, save_npz
from panopticon.utilities import get_valid_gene_info
def get_list_of_gene_windows(ge... | 33.155556 | 203 | 0.578514 |
41a106d05012e4ff5dbc04ccdc03a0e70f7b8fee | 4,669 | py | Python | cogs/rr.py | D3monEmper0r/CA-Discord-Bot | 1d38e00582cd0ea84af72a39daedc963256fd57a | [
"MIT"
] | null | null | null | cogs/rr.py | D3monEmper0r/CA-Discord-Bot | 1d38e00582cd0ea84af72a39daedc963256fd57a | [
"MIT"
] | 1 | 2021-03-26T15:41:07.000Z | 2021-03-26T15:41:07.000Z | cogs/rr.py | D3monEmper0r/CA-Discord-Bot | 1d38e00582cd0ea84af72a39daedc963256fd57a | [
"MIT"
] | null | null | null | ##### Imports #####
import discord
import sqlite3
from .__init__ import c
from discord.ext import commands
##### Finalize and run #####
def setup(client):
client.add_cog(ReactRole(client)) | 31.126667 | 103 | 0.610409 |
41a206702b125bc76a8512deb0a07371c7d2b9ff | 1,922 | py | Python | tools/create_transaction_volumes_csv.py | alphagov/backdrop-transactions-explorer-collector | 60aeac8ddaebf46d24e662d907ffa6bdc9d2dfe7 | [
"MIT"
] | null | null | null | tools/create_transaction_volumes_csv.py | alphagov/backdrop-transactions-explorer-collector | 60aeac8ddaebf46d24e662d907ffa6bdc9d2dfe7 | [
"MIT"
] | 2 | 2015-07-22T11:15:08.000Z | 2015-07-22T12:10:52.000Z | tools/create_transaction_volumes_csv.py | alphagov/backdrop-transactions-explorer-collector | 60aeac8ddaebf46d24e662d907ffa6bdc9d2dfe7 | [
"MIT"
] | 2 | 2019-08-29T11:35:44.000Z | 2021-04-10T19:42:13.000Z | #!/usr/bin/env python
import argparse
import csv
import os
import sys
from distutils import dir_util
import unicodecsv
# from lib.filters import digest
from helper import create_parser
from helper import create_directory
from helper import map_services_to_csv_data
from service import Service
path_prefix = '/'
asset... | 28.686567 | 79 | 0.663371 |
41a3c225eedd6acf9dfa7630da6b90b21ff018d4 | 18,539 | py | Python | python/erdos/__init__.py | objorkman/erdos | 13b3be477d6674e9e377a56dec484f80ba41e915 | [
"Apache-2.0"
] | null | null | null | python/erdos/__init__.py | objorkman/erdos | 13b3be477d6674e9e377a56dec484f80ba41e915 | [
"Apache-2.0"
] | null | null | null | python/erdos/__init__.py | objorkman/erdos | 13b3be477d6674e9e377a56dec484f80ba41e915 | [
"Apache-2.0"
] | null | null | null | import logging
import multiprocessing as mp
import signal
import sys
from functools import wraps
from typing import Optional, Tuple, Type
import erdos.context
import erdos.internal as _internal
import erdos.operator
import erdos.utils
from erdos.message import Message, WatermarkMessage
from erdos.profile import Profil... | 34.847744 | 87 | 0.663089 |
41a3f81d4c1f4c13d941abba84f2c1450266e8a1 | 7,951 | py | Python | compyler/node.py | Fogelman/compyler | 76c6ba12f264131b6a5d800dd40bb76fe3155900 | [
"MIT"
] | null | null | null | compyler/node.py | Fogelman/compyler | 76c6ba12f264131b6a5d800dd40bb76fe3155900 | [
"MIT"
] | null | null | null | compyler/node.py | Fogelman/compyler | 76c6ba12f264131b6a5d800dd40bb76fe3155900 | [
"MIT"
] | null | null | null |
from llvmlite import ir
from rply.token import BaseBox
from abc import ABC, abstractmethod
import operator as op
from compyler.symboltable import FunctionSymbol, SymbolTable
| 30.003774 | 127 | 0.599673 |
41a41dfe04ba1695c5ba79a312ffef30febd8cc6 | 2,617 | py | Python | tests/test_gnmi.py | dmulyalin/nornir-salt | 184002995515dddc802b578400370c2219e94957 | [
"MIT"
] | 5 | 2021-01-22T09:34:55.000Z | 2021-12-22T08:12:34.000Z | tests/test_gnmi.py | dmulyalin/nornir-salt | 184002995515dddc802b578400370c2219e94957 | [
"MIT"
] | 2 | 2022-01-27T14:46:40.000Z | 2022-02-28T16:59:01.000Z | tests/test_gnmi.py | dmulyalin/nornir-salt | 184002995515dddc802b578400370c2219e94957 | [
"MIT"
] | 1 | 2021-01-10T04:37:08.000Z | 2021-01-10T04:37:08.000Z | """
At the moment this does not tests apat from testing import of PyGNMI library and gNMI
connecton and task plugins.
Was not able to find always-on endpoints that can test using gNMI, Cisco sandboxes has gRPC
API available but that is different.
"""
import sys
import pprint
import logging
import yaml
import pytest
im... | 25.910891 | 91 | 0.680168 |
41a45c2a64fe8ee34481934f5986ff7aa8e03131 | 6,886 | py | Python | bentoctl_aws_ec2/ec2/ec2_cloudformation_template.py | jjmachan/aws-ec2-deploy | e8a20816a84656502d9c6eb03e944e739efa0c1f | [
"Apache-2.0"
] | 5 | 2021-06-22T10:21:00.000Z | 2021-08-16T12:57:35.000Z | ec2/ec2_cloudformation_template.py | bentoml/aws-ec2-deploy | 6d453fd1afbdb07a080d9d38dcc89f9f6768603a | [
"Apache-2.0"
] | 15 | 2021-08-05T10:29:56.000Z | 2022-03-04T01:35:47.000Z | bentoctl_aws_ec2/ec2/ec2_cloudformation_template.py | jjmachan/aws-ec2-deploy | e8a20816a84656502d9c6eb03e944e739efa0c1f | [
"Apache-2.0"
] | 5 | 2021-06-22T14:39:48.000Z | 2022-03-25T09:19:03.000Z | EC2_CLOUDFORMATION_TEMPLATE = """\
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Description: BentoML load balanced template
Parameters:
AmazonLinux2LatestAmiId:
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
Default: {ami_id}
Resources:
SecurityGroupResource:... | 31.587156 | 78 | 0.523671 |
41a614b41c6ed87485f48e036058ce573a7b945d | 690 | py | Python | src/tests/benchmarks/tools/bench/AnTuTu6.py | VirtualVFix/AndroidTestFramework | 1feb769c6aca39a78e6daefd6face0a1e4d62cd4 | [
"MIT"
] | null | null | null | src/tests/benchmarks/tools/bench/AnTuTu6.py | VirtualVFix/AndroidTestFramework | 1feb769c6aca39a78e6daefd6face0a1e4d62cd4 | [
"MIT"
] | null | null | null | src/tests/benchmarks/tools/bench/AnTuTu6.py | VirtualVFix/AndroidTestFramework | 1feb769c6aca39a78e6daefd6face0a1e4d62cd4 | [
"MIT"
] | null | null | null | # All rights reserved by forest fairy.
# You cannot modify or share anything without sacrifice.
# If you don't agree, keep calm and don't look at code bellow!
__author__ = "VirtualV <https://github.com/virtualvfix>"
__date__ = "$Apr 12, 2014 4:40:25 PM$"
import ast
from tests.benchmarks.tools.base import App
| 31.363636 | 66 | 0.665217 |
41a6d2898476c90a1f687ee05cacf8a8f146ec52 | 1,496 | py | Python | osc_bge/users/admin.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | null | null | null | osc_bge/users/admin.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | 5 | 2020-06-05T19:49:47.000Z | 2021-09-08T00:50:55.000Z | osc_bge/users/admin.py | jisuhan3201/osc-bge | 125c441d23d7f1fdb2d9b8f42f859082e757e25a | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import admin as auth_admin
from django.contrib.auth import get_user_model
from osc_bge.users.forms import UserChangeForm, UserCreationForm
from . import models
User = get_user_model()
| 22 | 103 | 0.681818 |
41a79266ccd514b38d38bed6f38f0c721bb4fe9e | 3,949 | py | Python | scripts/ros_tensorflow_classify.py | xuanlvxin/blog_backup | 691c040efe4d752b4c4badbdd5dd78960ed966e2 | [
"Apache-2.0"
] | 45 | 2018-05-13T01:55:40.000Z | 2022-03-28T15:20:48.000Z | scripts/ros_tensorflow_classify.py | xuanlvxin/blog_backup | 691c040efe4d752b4c4badbdd5dd78960ed966e2 | [
"Apache-2.0"
] | 1 | 2018-06-06T10:39:02.000Z | 2018-09-05T01:52:19.000Z | scripts/ros_tensorflow_classify.py | xuanlvxin/blog_backup | 691c040efe4d752b4c4badbdd5dd78960ed966e2 | [
"Apache-2.0"
] | 17 | 2018-05-14T12:17:57.000Z | 2020-03-29T09:41:07.000Z | #!/usr/bin/env python
import rospy
from sensor_msgs.msg import Image
from std_msgs.msg import String
from cv_bridge import CvBridge
import cv2
import numpy as np
import tensorflow as tf
import os
import re
if __name__ == '__main__':
ROOT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardi... | 37.971154 | 100 | 0.640669 |
41a7a2ca9d0dcc0caead7e8e09caea9c36c46387 | 3,075 | py | Python | python/v1/generate_default_line_item.py | googleads/googleads-displayvideo-examples | cd1b4b3bc63e068fef4ff23264232a65f70207b5 | [
"Apache-2.0"
] | 2 | 2021-10-08T12:10:38.000Z | 2022-01-23T16:00:12.000Z | python/v1/generate_default_line_item.py | googleads/googleads-displayvideo-examples | cd1b4b3bc63e068fef4ff23264232a65f70207b5 | [
"Apache-2.0"
] | 1 | 2021-04-09T16:34:06.000Z | 2021-04-12T14:42:00.000Z | python/v1/generate_default_line_item.py | googleads/googleads-displayvideo-examples | cd1b4b3bc63e068fef4ff23264232a65f70207b5 | [
"Apache-2.0"
] | 4 | 2021-05-20T17:55:54.000Z | 2022-02-10T14:13:40.000Z | #!/usr/bin/python
#
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 33.791209 | 99 | 0.744715 |
41a92c8d5a10768f359c0ce9e4aa075658259077 | 3,897 | py | Python | datacombine/tests/test_models.py | Crimson-Star-Software/data-combine | 3209ae2316afc38417e51c3261494d6e7d2e4e2a | [
"MIT"
] | null | null | null | datacombine/tests/test_models.py | Crimson-Star-Software/data-combine | 3209ae2316afc38417e51c3261494d6e7d2e4e2a | [
"MIT"
] | 3 | 2020-02-11T23:14:53.000Z | 2021-06-10T18:32:57.000Z | datacombine/tests/test_models.py | Crimson-Star-Software/data-combine | 3209ae2316afc38417e51c3261494d6e7d2e4e2a | [
"MIT"
] | null | null | null | from django.test import TestCase
from datacombine import models as dcmodels
from collections import namedtuple
from django.core.exceptions import FieldError
import re
Match = namedtuple("Match", ["object", "regex", "match"])
| 36.083333 | 74 | 0.628689 |
41a96ce1cac04188c0692b34694f59bc91f568fc | 560 | py | Python | tests/jdi_uitests_webtests/main/page_objects/pages/home_page.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 5 | 2020-02-14T10:32:01.000Z | 2021-07-22T08:20:28.000Z | tests/jdi_uitests_webtests/main/page_objects/pages/home_page.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 54 | 2018-07-27T14:07:33.000Z | 2021-11-08T09:24:16.000Z | tests/jdi_uitests_webtests/main/page_objects/pages/home_page.py | jdi-testing/jdi-python | 7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7 | [
"MIT"
] | 1 | 2021-01-20T14:31:52.000Z | 2021-01-20T14:31:52.000Z | from JDI.web.selenium.elements.api_interact.find_element_by import By
from JDI.web.selenium.elements.common.image import Image
from JDI.web.selenium.elements.common.link import Link
from JDI.web.selenium.elements.common.text import Text
from JDI.web.selenium.elements.composite.web_page import WebPage
| 32.941176 | 69 | 0.753571 |
41a96db7893cd10b83b375c1bfc15b8901d9c8f4 | 207 | py | Python | api/routes.py | santiagosilas/flask_sample_app | 1a2f19439c1efb25abdccdb26f303f9cff95c911 | [
"MIT"
] | null | null | null | api/routes.py | santiagosilas/flask_sample_app | 1a2f19439c1efb25abdccdb26f303f9cff95c911 | [
"MIT"
] | null | null | null | api/routes.py | santiagosilas/flask_sample_app | 1a2f19439c1efb25abdccdb26f303f9cff95c911 | [
"MIT"
] | null | null | null | from flask import render_template
from api import app | 18.818182 | 53 | 0.676329 |
41a9a2d818ad02b61cfd18575ed9cdd4ecccdb57 | 36,453 | py | Python | Capture the Flag/FirstRound.py | yokesh-git/Quiz-Application | 2b990ee9f711d05956e76ade0550bfa1abd86b08 | [
"MIT"
] | null | null | null | Capture the Flag/FirstRound.py | yokesh-git/Quiz-Application | 2b990ee9f711d05956e76ade0550bfa1abd86b08 | [
"MIT"
] | null | null | null | Capture the Flag/FirstRound.py | yokesh-git/Quiz-Application | 2b990ee9f711d05956e76ade0550bfa1abd86b08 | [
"MIT"
] | null | null | null | from tkinter import *
from firebase import firebase
from PIL import Image, ImageTk
fbconn = firebase.FirebaseApplication('https://samplefbtest-266bd.firebaseio.com/',None)
global crtans
crtans = 0
root = Tk()
obj = FirstRound(root)
root.geometry('%dx%d+%d+%d' % (w, h, x, y))
root.mainloop()
| 37.853583 | 206 | 0.555373 |
41a9d57be733f7ec06133940f72c9adc60cb07fd | 2,491 | py | Python | swap.py | garrettkatz/ghu | 2bf25ac6f8e82d3e7231c3381f7a4946db6dc59f | [
"MIT"
] | null | null | null | swap.py | garrettkatz/ghu | 2bf25ac6f8e82d3e7231c3381f7a4946db6dc59f | [
"MIT"
] | null | null | null | swap.py | garrettkatz/ghu | 2bf25ac6f8e82d3e7231c3381f7a4946db6dc59f | [
"MIT"
] | null | null | null | """
Swap input (rinp) on output (rout) with one extra registers (rtmp)
"""
import numpy as np
import torch as tr
import matplotlib.pyplot as pt
from ghu import *
from codec import Codec
from controller import Controller
from lvd import lvd
from reinforce import reinforce
if __name__ == "__main__":
print("*********... | 30.753086 | 83 | 0.608591 |
41aa2d6b40a21820a8c6f0096cf82ccb5a78479c | 1,103 | py | Python | face-alignment.py | binhmuc/faced | cbc18f552da9c53628d61d56de7dfda451a6e25f | [
"MIT"
] | null | null | null | face-alignment.py | binhmuc/faced | cbc18f552da9c53628d61d56de7dfda451a6e25f | [
"MIT"
] | null | null | null | face-alignment.py | binhmuc/faced | cbc18f552da9c53628d61d56de7dfda451a6e25f | [
"MIT"
] | null | null | null | import face_alignment
from skimage import io
import cv2
from skimage import img_as_float
from skimage import io
import matplotlib.pyplot as plt
from faced import FaceDetector
from faced.utils import annotate_image
import time
fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, face_detector='... | 23.978261 | 94 | 0.664551 |
41ac00fd9043a9b17ba6e49efc0299f2d40364b0 | 847 | py | Python | tests/test_fingers/test_theme/test_models.py | sonirico/wpoke | be193a41159dabf912d793eb5a6ebf2f0e9440bb | [
"MIT"
] | 4 | 2019-08-19T12:32:40.000Z | 2019-10-25T20:57:29.000Z | tests/test_fingers/test_theme/test_models.py | sonirico/wpoke | be193a41159dabf912d793eb5a6ebf2f0e9440bb | [
"MIT"
] | 15 | 2019-07-15T18:30:43.000Z | 2020-09-25T08:10:05.000Z | tests/test_fingers/test_theme/test_models.py | sonirico/wpoke | be193a41159dabf912d793eb5a6ebf2f0e9440bb | [
"MIT"
] | null | null | null | import unittest
from wpoke.fingers.theme.models import WPThemeMetadata
from wpoke.fingers.theme.serializers import WPThemeMetadataSerializer
| 35.291667 | 88 | 0.747344 |
41ae040201f6c28a176e8746c32a9793421e405a | 2,989 | py | Python | src/Config.py | albertomn86/Weather-Station-Receiver | 53745e51e8227ab40ced665ec0083bfd62a951da | [
"Apache-2.0"
] | 1 | 2020-01-13T20:56:49.000Z | 2020-01-13T20:56:49.000Z | src/Config.py | albertomn86/Weather-Station-Receiver | 53745e51e8227ab40ced665ec0083bfd62a951da | [
"Apache-2.0"
] | null | null | null | src/Config.py | albertomn86/Weather-Station-Receiver | 53745e51e8227ab40ced665ec0083bfd62a951da | [
"Apache-2.0"
] | null | null | null | from yaml import safe_load, YAMLError
from os import path
from src.Device import Device
from typing import Any, Optional
class ConfigException(Exception):
pass
| 31.797872 | 76 | 0.636333 |
41aeaa22875724364cf9ef95a6d424d9dc584608 | 3,687 | py | Python | LinkedInViewer.py | Glavin001/LinkedInProfileViewer | a743385a88b2a38b5d4fcae94b08d27dee43759a | [
"CC0-1.0"
] | 1 | 2015-07-25T16:20:18.000Z | 2015-07-25T16:20:18.000Z | LinkedInViewer.py | Glavin001/LinkedInProfileViewer | a743385a88b2a38b5d4fcae94b08d27dee43759a | [
"CC0-1.0"
] | null | null | null | LinkedInViewer.py | Glavin001/LinkedInProfileViewer | a743385a88b2a38b5d4fcae94b08d27dee43759a | [
"CC0-1.0"
] | null | null | null | import cookielib
import os
import urllib
import urllib2
import re
import string
from BeautifulSoup import BeautifulSoup
from random import random
from time import sleep
cookie_filename = "parser.cookies.txt"
#The script will go through this persons 'also viewed' people. Change this to a profile of any person in the... | 32.342105 | 125 | 0.606455 |
41af722e2abcb956634da9556cf5120ca6d46ddf | 6,316 | py | Python | cwVQ.py | USC-MCL/Func-Pool | 20c43df0eb2da68d8d2e01c03d66a1a4e4e06081 | [
"MIT"
] | 3 | 2020-01-24T19:03:44.000Z | 2021-04-13T17:22:36.000Z | cwVQ.py | USC-MCL/Func-Pool | 20c43df0eb2da68d8d2e01c03d66a1a4e4e06081 | [
"MIT"
] | null | null | null | cwVQ.py | USC-MCL/Func-Pool | 20c43df0eb2da68d8d2e01c03d66a1a4e4e06081 | [
"MIT"
] | 3 | 2020-01-24T19:03:45.000Z | 2020-04-13T08:27:13.000Z | # 2020.10.19
# @yifan
# channel-wise VQ
# input is asumed to be DCT/PCA coefficients
#
import numpy as np
from sklearn import cluster
import copy
from skimage.metrics import mean_squared_error
from sklearn.metrics.pairwise import euclidean_distances
from myPCA import myPCA
from util import *
if __name__ == "__main__":... | 33.417989 | 131 | 0.528816 |
41b0f6b2f2c3b8ff76594cc3ca1e5683847bdfa3 | 3,324 | py | Python | venv/Lib/site-packages/tests/unit/driver/test_base_generic_driver.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tests/unit/driver/test_base_generic_driver.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tests/unit/driver/test_base_generic_driver.py | melihteke/ebook_study | 4848ea42e37ee1d6ec777bfc33f49984653ace34 | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
import scrapli
from scrapli.response import MultiResponse, Response
TEST_DATA_DIR = f"{Path(scrapli.__file__).parents[1]}/tests/test_data/"
| 36.933333 | 139 | 0.737365 |
41b1d06924eae19655ba9eb1faf5d08b5dbcc871 | 2,384 | py | Python | polsalt/scrunch1d.py | Richard-Tarbell/polsalt | e953985ffbc786fd071d0b48ebca5bd1dac9a960 | [
"BSD-3-Clause"
] | 1 | 2017-09-22T17:04:06.000Z | 2017-09-22T17:04:06.000Z | polsalt/scrunch1d.py | Richard-Tarbell/polsalt | e953985ffbc786fd071d0b48ebca5bd1dac9a960 | [
"BSD-3-Clause"
] | 14 | 2015-12-22T17:56:38.000Z | 2021-07-30T15:36:23.000Z | polsalt/scrunch1d.py | Richard-Tarbell/polsalt | e953985ffbc786fd071d0b48ebca5bd1dac9a960 | [
"BSD-3-Clause"
] | 12 | 2015-12-21T15:12:44.000Z | 2021-08-12T18:58:12.000Z | #! /usr/bin/env python
# Resample data into new bins, preserving flux
# New version 150912, much faster
# New version 170504, fixed case where output bin coverage is larger than input bin coverage
# New version 170909, again fixed case where output bin coverage is larger than input bin coverage
import os, sys, time, ... | 40.40678 | 98 | 0.622903 |
41b20f790b6985bfa1f3757a75cfaedc3ed0233b | 177 | py | Python | yosim/rules/apps.py | thoongnv/yosim | 22bcaceb2c40735363496d9404970a73c4b944bc | [
"MIT"
] | 2 | 2022-02-15T03:41:13.000Z | 2022-02-15T03:44:46.000Z | yosim/rules/apps.py | thoongnv/yosim | 22bcaceb2c40735363496d9404970a73c4b944bc | [
"MIT"
] | 5 | 2021-06-08T22:26:24.000Z | 2022-03-12T00:21:35.000Z | yosim/rules/apps.py | thoongnv/yosim | 22bcaceb2c40735363496d9404970a73c4b944bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.apps import AppConfig
| 16.090909 | 33 | 0.627119 |
41b2fdd3fcfe0d572fb266442a0cede294698396 | 1,157 | py | Python | pacote-download/Ex115a.py | nkonai/Curso-em-video-Python | c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2 | [
"MIT"
] | null | null | null | pacote-download/Ex115a.py | nkonai/Curso-em-video-Python | c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2 | [
"MIT"
] | null | null | null | pacote-download/Ex115a.py | nkonai/Curso-em-video-Python | c05a60b3daa7d448e1e7f0d4d23f62df5d2c8df2 | [
"MIT"
] | null | null | null |
print('-'*30)
print('MENU PRINCIPAL'.center(30))
print('-'*30)
print('\033[1;33m1\033[m - \033[1;34mVer pessoas cadastradas\033[m')
print('\033[1;33m2\033[m - \033[1;34mCadastrar nova pessoa\033[m')
print('\033[1;33m3\033[m - \033[1;34mSair do sistema\033[m')
print('-'*30)
n = leiaopcao('\033[1;33mSua opcao: \033[m')... | 31.27027 | 68 | 0.475367 |
41b34f1ab0810f5d2d8176ae3c4ecf1349c413df | 2,169 | py | Python | PosPy/frame/form.py | richierh/PointofSalePy | 54fc11b5f167d361c75b6b1cb890c7020393d46c | [
"Apache-2.0"
] | null | null | null | PosPy/frame/form.py | richierh/PointofSalePy | 54fc11b5f167d361c75b6b1cb890c7020393d46c | [
"Apache-2.0"
] | null | null | null | PosPy/frame/form.py | richierh/PointofSalePy | 54fc11b5f167d361c75b6b1cb890c7020393d46c | [
"Apache-2.0"
] | null | null | null | """Subclass of FForm, which is generated by wxFormBuilder."""
import wx
import frame.mainframe as mainframe
# Implementing FForm
| 28.539474 | 63 | 0.600738 |
41b47d2a2fab71fffa7fa7dc8edb5358a58ea4bf | 1,686 | py | Python | neutron_fwaas/tests/unit/cmd/upgrade_checks/test_checks.py | sapcc/neutron-fwaas | 59bad17387d15f86ea7d08f8675208160a999ffe | [
"Apache-2.0"
] | null | null | null | neutron_fwaas/tests/unit/cmd/upgrade_checks/test_checks.py | sapcc/neutron-fwaas | 59bad17387d15f86ea7d08f8675208160a999ffe | [
"Apache-2.0"
] | null | null | null | neutron_fwaas/tests/unit/cmd/upgrade_checks/test_checks.py | sapcc/neutron-fwaas | 59bad17387d15f86ea7d08f8675208160a999ffe | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 35.87234 | 75 | 0.707592 |
41b838c1916c793c834d6840367d6af260c3208a | 4,822 | py | Python | licensegh/licensegh.py | sauljabin/licensegh | 01dad5a8934869423feb9bc59854631ab1cb6e08 | [
"MIT"
] | null | null | null | licensegh/licensegh.py | sauljabin/licensegh | 01dad5a8934869423feb9bc59854631ab1cb6e08 | [
"MIT"
] | null | null | null | licensegh/licensegh.py | sauljabin/licensegh | 01dad5a8934869423feb9bc59854631ab1cb6e08 | [
"MIT"
] | null | null | null | import os
import re
import shutil
import git
import yaml
from rich import box
from rich.console import Console
from rich.prompt import Prompt
from rich.table import Table
| 29.950311 | 85 | 0.562837 |
41ba22bd38c8d51f5bf64e1e12f05338b9a305b8 | 247 | py | Python | onegreek/universities/views.py | goldhand/onegreek | 1ad105f15608284a9e80802734f0c6222413a4a0 | [
"BSD-3-Clause"
] | 1 | 2019-06-13T11:46:08.000Z | 2019-06-13T11:46:08.000Z | onegreek/universities/views.py | goldhand/onegreek | 1ad105f15608284a9e80802734f0c6222413a4a0 | [
"BSD-3-Clause"
] | null | null | null | onegreek/universities/views.py | goldhand/onegreek | 1ad105f15608284a9e80802734f0c6222413a4a0 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import viewsets
from .serializers import UniversitySerializer
from .models import University
| 27.444444 | 47 | 0.82996 |
41bb07f1d7bec345e20d3accf21f60a21b94cceb | 192 | py | Python | ABC104/ABC104a.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC104/ABC104a.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | ABC104/ABC104a.py | VolgaKurvar/AtCoder | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | [
"Unlicense"
] | null | null | null | # ABC104a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
r = int(input())
if r < 1200:
print('ABC')
exit(0)
if r < 2800:
print('ARC')
exit(0)
print('AGC')
| 13.714286 | 28 | 0.609375 |
41bc1f9037b836003a997838387cdbfb375a905b | 1,509 | py | Python | com test.py | brainelectronics/Python-Arduino-Communicator | e721c06e4e2731402c61f553c780f6e6ad996587 | [
"FSFAP"
] | null | null | null | com test.py | brainelectronics/Python-Arduino-Communicator | e721c06e4e2731402c61f553c780f6e6ad996587 | [
"FSFAP"
] | 1 | 2015-10-24T14:33:11.000Z | 2015-10-24T14:38:09.000Z | com test.py | brainelectronics/Python-Arduino-Communicator | e721c06e4e2731402c61f553c780f6e6ad996587 | [
"FSFAP"
] | null | null | null | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Tower Defense
# Copyright (c) 2015 brainelectronics
# Scharpf, Jonas
#
# All rights reserved.
#
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRES... | 37.725 | 78 | 0.665341 |
41be27ee6f0699ebf633e908194ed90a7940707d | 13,708 | py | Python | low_level_simulation/src/path_utilities/src/simulation_util.py | abiantorres/autonomous-vehicles-system-simulation | 3f0112036b2b270f5055729c648a1310976df933 | [
"Apache-2.0"
] | null | null | null | low_level_simulation/src/path_utilities/src/simulation_util.py | abiantorres/autonomous-vehicles-system-simulation | 3f0112036b2b270f5055729c648a1310976df933 | [
"Apache-2.0"
] | null | null | null | low_level_simulation/src/path_utilities/src/simulation_util.py | abiantorres/autonomous-vehicles-system-simulation | 3f0112036b2b270f5055729c648a1310976df933 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import rosbag, rospy, actionlib, time, sys, csv, rospkg, re, os
from gazebo_msgs.msg import ModelState
from std_msgs.msg import Empty
from std_srvs.srv import Empty
from gazebo_msgs.srv import SetModelState
from geometry_msgs.msg import PoseArray
from move_base_msgs.msg import MoveBaseAction, Mov... | 55.723577 | 170 | 0.619273 |
41bf0aa7aa8657c18ffec31a5eceb725b9f22e18 | 141 | py | Python | Chapter 07/Chap07_Example7.23.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.23.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.23.py | bpbpublications/Programming-Techniques-using-Python | 49b785f37e95a3aad1d36cef51e219ac56e5e9f0 | [
"MIT"
] | null | null | null | myl1 = [10, 20, -30.1, 'Hello']
list_length = len(myl1)
count = 0
while count<list_length:
print(count, myl1[count])
count +=1
| 20.142857 | 32 | 0.609929 |
41c495323f09d70b9547788b90e0defddbe36bbc | 2,371 | py | Python | plugins/intern/markov.py | rbracken/internbot | 58b802e0dd7597ace12acd9342bb938e2f33c25d | [
"BSD-2-Clause"
] | 1 | 2016-09-24T16:00:06.000Z | 2016-09-24T16:00:06.000Z | plugins/intern/markov.py | rbracken/internbot | 58b802e0dd7597ace12acd9342bb938e2f33c25d | [
"BSD-2-Clause"
] | null | null | null | plugins/intern/markov.py | rbracken/internbot | 58b802e0dd7597ace12acd9342bb938e2f33c25d | [
"BSD-2-Clause"
] | null | null | null | import random
""" Credits for this code go to Shabda Raaj, pulled from the article
'Generating pseudo-random text with Markov chains using Python',
which can be found at:
http://agiliq.com/blog/2009/06/generating-pseudo-random-text-with-markov-chains-u/ """
| 32.040541 | 90 | 0.557992 |
41c53301d55d3133fde81eb12b2a9be32599efe5 | 3,590 | py | Python | isee/infrastructure/mdengine.py | team-mayes/isEE | c22d7cc78a43f0c0a7b2ec18fbc3b628ddef8d54 | [
"BSD-3-Clause"
] | null | null | null | isee/infrastructure/mdengine.py | team-mayes/isEE | c22d7cc78a43f0c0a7b2ec18fbc3b628ddef8d54 | [
"BSD-3-Clause"
] | 1 | 2021-09-17T18:20:36.000Z | 2021-10-06T16:56:34.000Z | isee/infrastructure/mdengine.py | team-mayes/isEE | c22d7cc78a43f0c0a7b2ec18fbc3b628ddef8d54 | [
"BSD-3-Clause"
] | null | null | null | """
Interface for MDEngine objects. New MDEngines can be implemented by constructing a new class that inherits from MDEngine
and implements its abstract methods.
"""
import abc
import os
import pytraj
import mdtraj
| 39.888889 | 145 | 0.618106 |
41c6f084ce0e27af11e57d81c680c580e271abf4 | 3,899 | py | Python | data/feature_extraction.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | 8 | 2020-04-11T23:13:58.000Z | 2021-05-06T02:39:45.000Z | data/feature_extraction.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | null | null | null | data/feature_extraction.py | mlcruw/covid-news-analyzer | 76c6a906de20633ff0e325f1ebe669c1e0eac325 | [
"MIT"
] | 1 | 2020-05-26T01:56:24.000Z | 2020-05-26T01:56:24.000Z | import gensim
from gensim.models import Word2Vec
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
import numpy as np
| 41.042105 | 161 | 0.588356 |
41c72ad44a90d0da8b7d83a6acf768aead8bfbf7 | 180 | py | Python | student/filters.py | Floran-Github/Project-code | 186ea185f1a5e57bf3fdc34b31b9979bafef4cfc | [
"Apache-2.0"
] | 3 | 2021-02-02T12:24:44.000Z | 2021-12-28T11:23:11.000Z | student/filters.py | Floran-Github/Project-code | 186ea185f1a5e57bf3fdc34b31b9979bafef4cfc | [
"Apache-2.0"
] | 8 | 2021-03-20T18:51:54.000Z | 2021-09-08T02:39:21.000Z | student/filters.py | Floran-Github/Project-code | 186ea185f1a5e57bf3fdc34b31b9979bafef4cfc | [
"Apache-2.0"
] | 1 | 2020-11-16T11:29:23.000Z | 2020-11-16T11:29:23.000Z | import django_filters
from .models import * | 25.714286 | 48 | 0.711111 |
41c7c36420889797027869260f59634279ae7c65 | 386 | py | Python | pw_manager/ui/settings/settings_screen.py | DestinyofYeet/PasswordManagerV2 | e70e90f262426f097e902f8e64d2b751717f8900 | [
"MIT"
] | null | null | null | pw_manager/ui/settings/settings_screen.py | DestinyofYeet/PasswordManagerV2 | e70e90f262426f097e902f8e64d2b751717f8900 | [
"MIT"
] | null | null | null | pw_manager/ui/settings/settings_screen.py | DestinyofYeet/PasswordManagerV2 | e70e90f262426f097e902f8e64d2b751717f8900 | [
"MIT"
] | null | null | null | from pw_manager.utils import utils, constants
from pw_manager.ui.settings.color import color
from YeetsMenu.menu import Menu
from YeetsMenu.option import Option
| 24.125 | 91 | 0.76943 |
41c855c0455a1e213ee8f4c1aed1a04581517581 | 16,416 | py | Python | bundestagger/bundestag/models.py | stefanw/Bundestagger | 14787cf18622d0330a94696981bd28eaa8ba0f3a | [
"MIT"
] | 3 | 2018-03-27T10:29:31.000Z | 2021-02-28T21:35:27.000Z | bundestagger/bundestag/models.py | stefanw/Bundestagger | 14787cf18622d0330a94696981bd28eaa8ba0f3a | [
"MIT"
] | null | null | null | bundestagger/bundestag/models.py | stefanw/Bundestagger | 14787cf18622d0330a94696981bd28eaa8ba0f3a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from difflib import SequenceMatcher
import re
from django.db import models
from django.db.models import Q
from django.conf import settings
from django.core.urlresolvers import reverse
from django.conf import settings
import django.dispatch
from django.template.defaultfilters imp... | 36.15859 | 249 | 0.596308 |
41c87d04befa3b08aff049a14265e8461d8d9c45 | 2,181 | py | Python | rubikscubennnsolver/combinatorial.py | dwalton76/rubiks-cube-NxNxN-solver | db42aeacca81366dba87ef475274ffb99645193d | [
"MIT"
] | 59 | 2017-04-29T15:19:29.000Z | 2022-03-18T22:17:20.000Z | rubikscubennnsolver/combinatorial.py | dwalton76/rubiks-cube-NxNxN-solver | db42aeacca81366dba87ef475274ffb99645193d | [
"MIT"
] | 44 | 2017-05-25T00:05:31.000Z | 2022-03-23T22:39:34.000Z | rubikscubennnsolver/combinatorial.py | dwalton76/rubiks-cube-NxNxN-solver | db42aeacca81366dba87ef475274ffb99645193d | [
"MIT"
] | 19 | 2017-06-17T00:32:47.000Z | 2021-12-18T00:03:56.000Z | """
https://en.wikipedia.org/wiki/Combinatorial_number_system
The code below is no longer used but am saving it for a rainy day
"""
# standard libraries
import math
from typing import List
def choose(a: int, b: int) -> int:
"""
>>> choose(23, 8)
490314
>>> choose(9, 6)
84
>>> choose(8, 5)
... | 15.919708 | 79 | 0.497478 |
41c8b05fb5813f637c5e573303e9ec8ee0854eb2 | 149 | py | Python | homework_day_3/6.py | wxz896446511/Manyu | 5974ba3a3f27fbaf53bf9f876150ff764a70ac46 | [
"Apache-2.0"
] | 4 | 2018-09-26T00:48:02.000Z | 2020-08-21T02:06:59.000Z | homework_day_3/6.py | wxz896446511/Manyu | 5974ba3a3f27fbaf53bf9f876150ff764a70ac46 | [
"Apache-2.0"
] | null | null | null | homework_day_3/6.py | wxz896446511/Manyu | 5974ba3a3f27fbaf53bf9f876150ff764a70ac46 | [
"Apache-2.0"
] | 1 | 2020-08-21T02:07:04.000Z | 2020-08-21T02:07:04.000Z | s1=0
s2=0
n=1
m=50000
while n<50001:
s1=s1+1/(n*1.0)
n+=1
while m>0:
s2=s2+1/(m*1.0)
m=m-1
print('s1='+str(s1))
print('s2='+str(s2))
| 11.461538 | 20 | 0.516779 |
41c9205a05089b2cfa8d6a14c30a8d7f603ca089 | 835 | py | Python | assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py | jcdiv47/geekbang-algorithms | 38dae85aeadb684b2c44945bd07a32cdede4ad5a | [
"MIT"
] | null | null | null | assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py | jcdiv47/geekbang-algorithms | 38dae85aeadb684b2c44945bd07a32cdede4ad5a | [
"MIT"
] | null | null | null | assignments/a3/constructBinaryTreeFromPreorderAndInorderTraversal.py | jcdiv47/geekbang-algorithms | 38dae85aeadb684b2c44945bd07a32cdede4ad5a | [
"MIT"
] | null | null | null | """
Leetcode(https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
)"""
# Definition for a binary tree node.
| 29.821429 | 97 | 0.603593 |
41c945a668d50c919e3c2f44477e14432d43dec2 | 1,292 | py | Python | appengine/swarming/test_env.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2017-10-30T15:08:10.000Z | 2017-10-30T15:08:10.000Z | appengine/swarming/test_env.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2022-03-02T11:45:18.000Z | 2022-03-02T11:45:18.000Z | appengine/swarming/test_env.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2021-07-23T15:32:55.000Z | 2021-07-23T15:32:55.000Z | # Copyright 2013 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
import os
import sys
# swarming/
APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__)))
def init_symlinks(root):
"""Adds supp... | 28.711111 | 76 | 0.681889 |
41cb04f14dbe73f40c68a5e989b2ab363ee6874c | 3,415 | py | Python | tiddlywebplugins/tiddlyspace/template.py | TiddlySpace/tiddlyspace | 5f2139340d2d9e3a37068b5c58ecb2e599d798b8 | [
"BSD-3-Clause"
] | 32 | 2015-01-04T10:54:29.000Z | 2022-01-22T16:45:24.000Z | tiddlywebplugins/tiddlyspace/template.py | TiddlySpace/tiddlyspace | 5f2139340d2d9e3a37068b5c58ecb2e599d798b8 | [
"BSD-3-Clause"
] | 4 | 2016-12-08T14:04:26.000Z | 2018-02-20T10:23:33.000Z | tiddlywebplugins/tiddlyspace/template.py | TiddlySpace/tiddlyspace | 5f2139340d2d9e3a37068b5c58ecb2e599d798b8 | [
"BSD-3-Clause"
] | 14 | 2015-01-19T23:18:20.000Z | 2021-06-22T01:10:08.000Z | """
Send a template with some default data.
"""
from jinja2 import TemplateNotFound
from tiddlywebplugins.virtualhosting import original_server_host_url
from tiddlyweb import control
from tiddlyweb.model.tiddler import Tiddler
from tiddlyweb.model.recipe import Recipe
from tiddlyweb.store import StoreError
from tidd... | 38.370787 | 78 | 0.585652 |
41cb1605a676dad204255fde9474a9b324ee8353 | 588 | py | Python | test.py | yanzhenxing123/illegal_fund_raising_forecast | dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64 | [
"Apache-2.0"
] | null | null | null | test.py | yanzhenxing123/illegal_fund_raising_forecast | dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64 | [
"Apache-2.0"
] | null | null | null | test.py | yanzhenxing123/illegal_fund_raising_forecast | dcff8f3d73c1f1ea3548e8d25afc9fe5233e3f64 | [
"Apache-2.0"
] | null | null | null | """
@Author: yanzx
@Date: 2021-08-10 09:27:55
@Desc:
"""
import time
li = [str(i) + "" for i in range(1000000)]
li_s = set(li)
start_time1 = time.time()
if "100000" in li:
print(time.time() - start_time1)
start_time2 = time.time()
if "100000" in li_s:
print(time.time() - start_time2)
import pandas as... | 14 | 59 | 0.664966 |
68b72c53435e9aa9b4922a013905036e51730503 | 7,953 | py | Python | mispro/mispro.py | dzubke/speech-lite | 65f83ac2b7551650820f079ce5152741f2a6fdb8 | [
"Apache-2.0"
] | null | null | null | mispro/mispro.py | dzubke/speech-lite | 65f83ac2b7551650820f079ce5152741f2a6fdb8 | [
"Apache-2.0"
] | null | null | null | mispro/mispro.py | dzubke/speech-lite | 65f83ac2b7551650820f079ce5152741f2a6fdb8 | [
"Apache-2.0"
] | null | null | null | # these functions help to detect mispronunciations using editops
#
#
# standard libs
import argparse
# third-party libs
import Levenshtein as lev
# local libs
from speech.utils.data_helpers import path_to_id
from speech.utils.io import read_data_json
def main(hypo_path:str, tgt_path:str, eval_phn_path:str):
"""T... | 36.481651 | 108 | 0.592355 |
68b8e7dbe442c7b6fd61ce801dacded91cd54f52 | 1,057 | py | Python | tests/runtests.py | joshuagl/in-toto | 9fb038fd7f3521df4ba358180de1e2bd2b8d2430 | [
"Apache-2.0"
] | 1 | 2020-02-02T23:29:15.000Z | 2020-02-02T23:29:15.000Z | tests/runtests.py | MikailSeremet/in-toto | 2052ba55c5351c690ee66807ca332deee44cf1cf | [
"Apache-2.0"
] | null | null | null | tests/runtests.py | MikailSeremet/in-toto | 2052ba55c5351c690ee66807ca332deee44cf1cf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
<Program Name>
runtests.py
<Author>
Santiago Torres <santiago@nyu.edu>
Lukas Puehringer <lukas.puehringer@nyu.edu>
<Started>
May 23, 2016
<Copyright>
See LICENSE for licensing information.
<Purpose>
Script to search, load and run in-toto tests using the Python `unittest`
fram... | 21.14 | 74 | 0.69631 |
68b8f74ca63a7bf7763bdfc88965696eef401268 | 1,980 | py | Python | pipelines/utils/conv_to_json.py | cds-mipt/HPointLoc | b346c10928939ddc1fe5840aef5085418e3aa0ad | [
"MIT"
] | 2 | 2021-05-30T04:04:51.000Z | 2022-02-21T09:11:27.000Z | pipelines/utils/conv_to_json.py | cds-mipt/HPointLoc | b346c10928939ddc1fe5840aef5085418e3aa0ad | [
"MIT"
] | null | null | null | pipelines/utils/conv_to_json.py | cds-mipt/HPointLoc | b346c10928939ddc1fe5840aef5085418e3aa0ad | [
"MIT"
] | null | null | null | from tqdm import tqdm
import h5py
from os.path import join
import os
import numpy as np
from pathlib import Path
import json
import numpy as np
MAXDEPTH = 10
| 36.666667 | 84 | 0.609596 |
68b95b6093337df79dd5bbb71ce078550e408fb4 | 709 | py | Python | internet_SpeedTest/main.py | Mark-Kinyua/python_public | 25c4eff3a6f93c35a949f94a2f9c3df3202a3113 | [
"MIT"
] | null | null | null | internet_SpeedTest/main.py | Mark-Kinyua/python_public | 25c4eff3a6f93c35a949f94a2f9c3df3202a3113 | [
"MIT"
] | null | null | null | internet_SpeedTest/main.py | Mark-Kinyua/python_public | 25c4eff3a6f93c35a949f94a2f9c3df3202a3113 | [
"MIT"
] | null | null | null | import speedtest
# Lets test Zuku.
# Its getting frustrating now....
test = speedtest.Speedtest()
print("Loading server list...")
test.get_servers() # Get list of servers
print("Getting best server...")
best = test.get_best_server()
print(f"Found: {best['host']} located in : {best['country']}")
print("Performing ... | 25.321429 | 90 | 0.712271 |
68b9f1d61e16d200b4bd96fbc017a9c896eef126 | 1,020 | py | Python | tests/test_settings.py | nerdoc/django-unicorn | e512b8f64f5c276a78127db9a05d9d5c042232d5 | [
"MIT"
] | 1 | 2021-12-21T16:20:49.000Z | 2021-12-21T16:20:49.000Z | tests/test_settings.py | teury/django-unicorn | 5e9142b8a7e13b862ece419d567e805cc783b517 | [
"MIT"
] | null | null | null | tests/test_settings.py | teury/django-unicorn | 5e9142b8a7e13b862ece419d567e805cc783b517 | [
"MIT"
] | 1 | 2022-02-10T07:47:01.000Z | 2022-02-10T07:47:01.000Z | from django_unicorn.settings import get_cache_alias, get_serial_enabled, get_settings
| 29.142857 | 85 | 0.721569 |
68ba116787e1a4e63e9786fddd4525fabeef6657 | 104 | py | Python | desafio21.py | kelson-gs/Desafios-python | b40867a331c0dab84b4ceff5391c5dcd07c42da2 | [
"MIT"
] | null | null | null | desafio21.py | kelson-gs/Desafios-python | b40867a331c0dab84b4ceff5391c5dcd07c42da2 | [
"MIT"
] | null | null | null | desafio21.py | kelson-gs/Desafios-python | b40867a331c0dab84b4ceff5391c5dcd07c42da2 | [
"MIT"
] | null | null | null | import pygame
pygame.mixer.init()
pygame.mixer.music.load('anzenchitai.mp3')
pygame.mixer.music.play()
| 17.333333 | 42 | 0.778846 |
68bb1ca8c41ec71774a259dc4b023dd208cc1eb5 | 5,208 | py | Python | timemarker/timer.py | davidr/python-timemarker | 16fc4d4f9d6b534b94005169c977ed143f4f9dc5 | [
"MIT"
] | null | null | null | timemarker/timer.py | davidr/python-timemarker | 16fc4d4f9d6b534b94005169c977ed143f4f9dc5 | [
"MIT"
] | 1 | 2017-10-31T03:54:26.000Z | 2017-11-01T03:01:43.000Z | timemarker/timer.py | davidr/python-timemarker | 16fc4d4f9d6b534b94005169c977ed143f4f9dc5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from operator import itemgetter
from typing import List, Tuple, Callable, Dict
# TODO(davidr) is it faster to do this here or to save the function as an attribute of the
# class instance?
from timeit import default_timer
from collections import defaultdict
_logger = logging.ge... | 31.756098 | 100 | 0.594278 |
68bb5d0db0e0b727efc6187a6b67ad8cb5bad0f9 | 1,151 | py | Python | boundfield_renderer/registry.py | bmampaey/django-form-renderer | b56eecb16bb8f7a47667aec8baf1ffcc0cd5b776 | [
"MIT"
] | 1 | 2020-10-09T15:27:47.000Z | 2020-10-09T15:27:47.000Z | boundfield_renderer/registry.py | bmampaey/django-form-renderer | b56eecb16bb8f7a47667aec8baf1ffcc0cd5b776 | [
"MIT"
] | null | null | null | boundfield_renderer/registry.py | bmampaey/django-form-renderer | b56eecb16bb8f7a47667aec8baf1ffcc0cd5b776 | [
"MIT"
] | null | null | null | import inspect
from collections import UserDict
| 25.577778 | 75 | 0.741964 |
68bbf627a9afc37939a7f82cf9c685bca13e0e51 | 10,068 | py | Python | salika/views/django_admin_log_views.py | BarisSari/django_crud | ce9586c10da2f865d29d9a18e9ff5582abe5e3a0 | [
"MIT"
] | null | null | null | salika/views/django_admin_log_views.py | BarisSari/django_crud | ce9586c10da2f865d29d9a18e9ff5582abe5e3a0 | [
"MIT"
] | null | null | null | salika/views/django_admin_log_views.py | BarisSari/django_crud | ce9586c10da2f865d29d9a18e9ff5582abe5e3a0 | [
"MIT"
] | null | null | null | from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.list import ListView
from ..models import DjangoAdminLog
from ..forms import DjangoAdminLogForm
from django.urls import reverse_lazy
from django.urls import reverse
from ... | 37.707865 | 124 | 0.723977 |
68bc0a2004e16535e83b92fe67c14274b4673fe7 | 353 | py | Python | service/config.py | ssunqf/mana | eff753f83b2129e3537dc3cee3952cb61f55fea0 | [
"BSD-3-Clause"
] | null | null | null | service/config.py | ssunqf/mana | eff753f83b2129e3537dc3cee3952cb61f55fea0 | [
"BSD-3-Clause"
] | null | null | null | service/config.py | ssunqf/mana | eff753f83b2129e3537dc3cee3952cb61f55fea0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
import os
from datetime import timedelta
basedir = os.path.abspath(os.path.dirname(__file__)) | 22.0625 | 52 | 0.70255 |
68bd12edd81d237215484f0a679fa547355b6ddd | 5,132 | py | Python | tests/test_algolia_doc_manager.py | algolia/mongo-connector | d668e9fb556abe63916ba0594e035d2f34880b1c | [
"Apache-2.0"
] | 15 | 2015-01-06T08:10:21.000Z | 2017-03-12T23:06:43.000Z | tests/test_algolia_doc_manager.py | algolia/mongo-connector | d668e9fb556abe63916ba0594e035d2f34880b1c | [
"Apache-2.0"
] | 16 | 2015-03-11T09:28:33.000Z | 2016-03-06T14:45:54.000Z | tests/test_algolia_doc_manager.py | algolia/mongo-connector | d668e9fb556abe63916ba0594e035d2f34880b1c | [
"Apache-2.0"
] | 13 | 2015-03-21T13:39:10.000Z | 2022-03-14T11:50:24.000Z | # Copyright 2013-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 38.298507 | 90 | 0.616329 |
68bfdc92a00fb5b201a60c596f05590bb0c70edb | 6,281 | py | Python | File Man/note.py | splimter/Univ | f28723756616ffd212d1c59d5547240c694a2d24 | [
"MIT"
] | null | null | null | File Man/note.py | splimter/Univ | f28723756616ffd212d1c59d5547240c694a2d24 | [
"MIT"
] | null | null | null | File Man/note.py | splimter/Univ | f28723756616ffd212d1c59d5547240c694a2d24 | [
"MIT"
] | null | null | null | import os
import helpers as H
# Cette function va afficher le menu
# Une classs qui definie les propreiter d'Etudiant
# Une classs qui definie les propreiter d'Matieres
# Une classs qui definie les propreiter d'Note
def ajoutEtudiant(Etudiant):
# Virifie si le ficher existe
if not os... | 27.915556 | 109 | 0.532559 |
68c4c2351edd365a050e5485ec101ebf7af1067c | 3,214 | py | Python | model/baa99_basemodel.py | USC3DLAB/learning-based-optimization | 2f1563462de7920f6ba2624987ae1f419e05591e | [
"Apache-2.0"
] | null | null | null | model/baa99_basemodel.py | USC3DLAB/learning-based-optimization | 2f1563462de7920f6ba2624987ae1f419e05591e | [
"Apache-2.0"
] | null | null | null | model/baa99_basemodel.py | USC3DLAB/learning-based-optimization | 2f1563462de7920f6ba2624987ae1f419e05591e | [
"Apache-2.0"
] | 4 | 2019-04-05T00:06:14.000Z | 2021-04-29T03:32:47.000Z | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC... | 26.783333 | 84 | 0.698195 |
68c4d76626da0bce8c26017b492f398cab45c0ab | 18,560 | py | Python | GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py | msgis/swwat-gzp-template | 080afbe9d49fb34ed60ba45654383d9cfca01e24 | [
"MIT"
] | 3 | 2019-06-18T15:28:09.000Z | 2019-07-11T07:31:45.000Z | GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py | msgis/swwat-gzp-template | 080afbe9d49fb34ed60ba45654383d9cfca01e24 | [
"MIT"
] | 2 | 2019-07-11T14:03:25.000Z | 2021-02-08T16:14:04.000Z | GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py | msgis/swwat-gzp-template | 080afbe9d49fb34ed60ba45654383d9cfca01e24 | [
"MIT"
] | 1 | 2019-06-12T11:07:37.000Z | 2019-06-12T11:07:37.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
# QDoubleValidator needs QValidator in qgis 3.4!
from PyQt5.QtCore import Qt, QLocale, pyqtSignal
from PyQt5.QtGui import QDoubleValidator
from PyQt5.QtWidgets import QWidget, QLabel, QLineEdit, QHBoxLayout, QToolButton, QToolBar, QComboBox, QDoubleSpinBox
from PyQ... | 41.061947 | 154 | 0.563524 |
68c6139534bf7157139c6f49ef0d7f2bbafd28d8 | 318 | py | Python | quokka/module_template/quokka_module_template/__init__.py | songshansitulv/quokka | 5d031d419691285481ec045d42773ed713abdaf7 | [
"BSD-3-Clause"
] | 1,141 | 2015-02-19T12:21:16.000Z | 2022-03-29T10:07:18.000Z | quokka/module_template/quokka_module_template/__init__.py | songshansitulv/quokka | 5d031d419691285481ec045d42773ed713abdaf7 | [
"BSD-3-Clause"
] | 284 | 2015-02-23T01:03:55.000Z | 2019-12-20T04:54:31.000Z | quokka/module_template/quokka_module_template/__init__.py | songshansitulv/quokka | 5d031d419691285481ec045d42773ed713abdaf7 | [
"BSD-3-Clause"
] | 370 | 2015-02-19T10:15:19.000Z | 2022-03-31T20:08:15.000Z | from .admin import UserView, TweetView
| 17.666667 | 40 | 0.544025 |
68c9488a495919a38f2ff870419c8d832b14221b | 11,909 | py | Python | model/loss.py | arthurlirui/MVSDF | 0b1014682e9b5cd5a92fea715d26ebc9845da4bf | [
"MIT"
] | 76 | 2022-02-11T12:04:49.000Z | 2022-03-30T10:43:59.000Z | model/loss.py | arthurlirui/MVSDF | 0b1014682e9b5cd5a92fea715d26ebc9845da4bf | [
"MIT"
] | 1 | 2022-03-22T12:57:43.000Z | 2022-03-22T12:57:43.000Z | model/loss.py | arthurlirui/MVSDF | 0b1014682e9b5cd5a92fea715d26ebc9845da4bf | [
"MIT"
] | 4 | 2022-02-13T11:47:50.000Z | 2022-03-02T12:07:21.000Z | from numpy.lib.function_base import diff
import torch
from torch import nn
from torch.nn import functional as F
from itertools import accumulate
import numpy as np
import os
import importlib
from utils.my_utils import carving_t, carving_t2, FeatExt, get_in_range, idx_cam2img, idx_world2cam, normalize_for_grid... | 54.131818 | 237 | 0.591485 |
68c9514528013da4b21120807688c8993cf15c6d | 28 | py | Python | __init__.py | AbhiK002/Matrix | 2d83f08877dccba9e4c710bd5fb65f613848d63f | [
"MIT"
] | 2 | 2022-02-11T04:39:21.000Z | 2022-02-12T15:50:35.000Z | __init__.py | AbhiK002/Matrix | 2d83f08877dccba9e4c710bd5fb65f613848d63f | [
"MIT"
] | null | null | null | __init__.py | AbhiK002/Matrix | 2d83f08877dccba9e4c710bd5fb65f613848d63f | [
"MIT"
] | null | null | null | from .matrix import Matrix
| 9.333333 | 26 | 0.785714 |
68c9c5b05677eeb8639ae06e7dceaa64258bc6fc | 645 | py | Python | database/tables/transaction.py | gyani91/data-engineering | cdf389b42c8b715e5d8db8ac2feaf42919a8668b | [
"MIT"
] | null | null | null | database/tables/transaction.py | gyani91/data-engineering | cdf389b42c8b715e5d8db8ac2feaf42919a8668b | [
"MIT"
] | null | null | null | database/tables/transaction.py | gyani91/data-engineering | cdf389b42c8b715e5d8db8ac2feaf42919a8668b | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Integer, String, Date
from run import db
| 30.714286 | 78 | 0.708527 |
68c9e87b18bf9b5cf5cffc96cfae86418021989e | 60 | py | Python | Data/Write/Write pickle.py | fraunhofer-iais/IAIS-Python-Snippets | a3ee610d6270cda2c891688851696c34831ffa2b | [
"MIT"
] | null | null | null | Data/Write/Write pickle.py | fraunhofer-iais/IAIS-Python-Snippets | a3ee610d6270cda2c891688851696c34831ffa2b | [
"MIT"
] | null | null | null | Data/Write/Write pickle.py | fraunhofer-iais/IAIS-Python-Snippets | a3ee610d6270cda2c891688851696c34831ffa2b | [
"MIT"
] | null | null | null | ### Pickle the data
pickle.dump(data, open("data.p", "wb")) | 20 | 39 | 0.633333 |
68c9ea4c15db64ff1e75a845e1e422b9fc6a1a9f | 682 | py | Python | list-users/list-users.py | nl-hugo/power-bi-snippets | 5d63f88526b8dc4241dd26301b4b8fd72096c822 | [
"MIT"
] | null | null | null | list-users/list-users.py | nl-hugo/power-bi-snippets | 5d63f88526b8dc4241dd26301b4b8fd72096c822 | [
"MIT"
] | null | null | null | list-users/list-users.py | nl-hugo/power-bi-snippets | 5d63f88526b8dc4241dd26301b4b8fd72096c822 | [
"MIT"
] | null | null | null | import argparse
from bs4 import BeautifulSoup
if __name__ == "__main__":
handler()
| 27.28 | 75 | 0.64956 |
68cf170ee8230ba31ec966d1a0949d9a8190f908 | 6,614 | py | Python | module.py | Afvanjaffer/Image-translation- | a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7 | [
"MIT"
] | 9 | 2019-02-10T20:23:21.000Z | 2021-03-04T04:15:49.000Z | module.py | Afvanjaffer/Image-translation- | a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7 | [
"MIT"
] | 1 | 2020-05-07T05:55:24.000Z | 2020-05-07T05:55:24.000Z | module.py | Afvanjaffer/Image-translation- | a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7 | [
"MIT"
] | 4 | 2018-07-14T08:03:27.000Z | 2020-07-29T09:36:54.000Z |
import tensorflow as tf
| 42.127389 | 171 | 0.638948 |
68d042d8038be826bddc190c99ee0038a473ba8a | 260 | py | Python | mayan/apps/django_gpg/runtime.py | darrenflexxu/Mayan-EDMS | 6707365bfacd137e625ddc1b990168012246fa07 | [
"Apache-2.0"
] | null | null | null | mayan/apps/django_gpg/runtime.py | darrenflexxu/Mayan-EDMS | 6707365bfacd137e625ddc1b990168012246fa07 | [
"Apache-2.0"
] | 5 | 2021-03-19T22:59:52.000Z | 2022-03-12T00:13:16.000Z | mayan/apps/django_gpg/runtime.py | Sumit-Kumar-Jha/mayan | 5b7ddeccf080b9e41cc1074c70e27dfe447be19f | [
"Apache-2.0"
] | 1 | 2020-07-29T21:03:27.000Z | 2020-07-29T21:03:27.000Z | from django.utils.module_loading import import_string
from .settings import setting_gpg_path
SETTING_GPG_BACKEND = 'mayan.apps.django_gpg.classes.PythonGNUPGBackend'
gpg_backend = import_string(SETTING_GPG_BACKEND)(
binary_path=setting_gpg_path.value
)
| 26 | 72 | 0.846154 |
68d4f0dba4165b60a9f6a49e7dd00013f11a1692 | 335 | py | Python | Oefeningen/standalone/set.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | Oefeningen/standalone/set.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | Oefeningen/standalone/set.py | Seviran/Python_3 | e30ead250129d25bbc0a7ee2f6298775b2f4529a | [
"MIT"
] | null | null | null | math_students = {"Matthew", "Helen", "Prashant", "James", "Asparna"}
biology_students = {"Jane", "Matthew", "Charlotte", "Mesut", "Oliver", "James"}
# Union (All unique students)
students_union = math_students | biology_students
# Intersection (Students who are in both sets)
students_intersection = math_students & bi... | 37.222222 | 79 | 0.740299 |
68d55b5aefd614b22b142233553491d7448b67bf | 40,735 | py | Python | src/core/train.py | spencerpomme/GSPNet | ff165de95ec0f258ba444ff343d18d812a066b8f | [
"MIT"
] | null | null | null | src/core/train.py | spencerpomme/GSPNet | ff165de95ec0f258ba444ff343d18d812a066b8f | [
"MIT"
] | null | null | null | src/core/train.py | spencerpomme/GSPNet | ff165de95ec0f258ba444ff343d18d812a066b8f | [
"MIT"
] | null | null | null | '''
Copyright <2019> <COPYRIGHT Pingcheng Zhang>
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, publish, ... | 33.037307 | 139 | 0.59455 |
68d59a01d4c210fcbd52841f20fd474a440205a5 | 7,727 | py | Python | tests/time_tests.py | ankpradh/parallel-composition-RE | 8e1d1df8a27951445fd1d80e89febba89d275fdf | [
"MIT"
] | null | null | null | tests/time_tests.py | ankpradh/parallel-composition-RE | 8e1d1df8a27951445fd1d80e89febba89d275fdf | [
"MIT"
] | null | null | null | tests/time_tests.py | ankpradh/parallel-composition-RE | 8e1d1df8a27951445fd1d80e89febba89d275fdf | [
"MIT"
] | null | null | null | import sys
import time
import random
sys.path.append("..")
from pympler import asizeof
from test_automata import *
# For computing average runtimes
# Generating random strings from given alphabet
# Tests for compositions of EM1 and EM2
# Monolithic Composition with 3*5 = 15 states
# Parallel Composition with 3+... | 30.662698 | 109 | 0.613045 |
68d613cc70f67605e1ded6567d3363c8e7b337d4 | 501 | py | Python | Python for zombies/Rest 0.py | ElptsJunior/Python | 7347b38947b439afa392764aafe0a55f808530dd | [
"MIT"
] | null | null | null | Python for zombies/Rest 0.py | ElptsJunior/Python | 7347b38947b439afa392764aafe0a55f808530dd | [
"MIT"
] | null | null | null | Python for zombies/Rest 0.py | ElptsJunior/Python | 7347b38947b439afa392764aafe0a55f808530dd | [
"MIT"
] | null | null | null | '''start = 0
end = int ( input(' insert an value for conting'))
# criando uma variavel indice que recebe o valor inteiro digitado#
while start <= end :
if end % 2 == 0:
print (start)
start = start +1
print('this number is par')
else:
print('this number is impar')
'''
start = 0
end = int ... | 20.04 | 66 | 0.616766 |
68d6234592f2e3a24cd47ab684d14a6a36f999f3 | 4,815 | py | Python | language/evm/hardhat-examples/compile_move.py | lxfind/move | 2e7c37edada44436805e047dd26724a26c07635a | [
"Apache-2.0"
] | 63 | 2021-12-22T10:17:18.000Z | 2022-03-31T22:03:06.000Z | language/evm/hardhat-examples/compile_move.py | lxfind/move | 2e7c37edada44436805e047dd26724a26c07635a | [
"Apache-2.0"
] | 150 | 2021-11-04T20:16:14.000Z | 2022-03-31T23:00:21.000Z | language/evm/hardhat-examples/compile_move.py | lxfind/move | 2e7c37edada44436805e047dd26724a26c07635a | [
"Apache-2.0"
] | 63 | 2021-11-04T19:32:56.000Z | 2022-03-30T16:28:41.000Z | #!/usr/local/bin/python3
# This is a script to compile Move source code into artifacts that can be used for testing.
# Copy this to the root of your hardhat project to use it.
#
# Note: this is a temporary solution that will be phased out once we implement the Move plugin.
#
# Move code should be stored within the `co... | 27.672414 | 132 | 0.620561 |
68d73f2fd34917de7803f28010db6b89758be818 | 443 | py | Python | scripts/check_internet_con.py | prathimacode-hub/python-scripts-bible | 7643f6324c9f771f573f254289d912d812fe2494 | [
"MIT"
] | null | null | null | scripts/check_internet_con.py | prathimacode-hub/python-scripts-bible | 7643f6324c9f771f573f254289d912d812fe2494 | [
"MIT"
] | null | null | null | scripts/check_internet_con.py | prathimacode-hub/python-scripts-bible | 7643f6324c9f771f573f254289d912d812fe2494 | [
"MIT"
] | 1 | 2021-05-14T10:18:09.000Z | 2021-05-14T10:18:09.000Z | # Filename : check_internet_con.py
# Author : Abhijit Kumar
# Created : 29 Dec 2017
# Description : Just checks internet connection is works or not.
#!/usr/bin/python3
import urllib2
checkInternetConnectivity()
| 21.095238 | 66 | 0.68623 |
68d811e1eb8d333e27beb3d574db367c7c6dade8 | 326 | py | Python | backend/src/baserow/contrib/database/api/fields/errors.py | OpenSourceMarketing/Baserow | 5778059fde594a3b1838f7a964bc5060ab45bbad | [
"MIT"
] | null | null | null | backend/src/baserow/contrib/database/api/fields/errors.py | OpenSourceMarketing/Baserow | 5778059fde594a3b1838f7a964bc5060ab45bbad | [
"MIT"
] | 7 | 2021-03-19T12:07:13.000Z | 2022-02-10T14:47:21.000Z | backend/src/baserow/contrib/database/api/fields/errors.py | OpenSourceMarketing/Baserow | 5778059fde594a3b1838f7a964bc5060ab45bbad | [
"MIT"
] | null | null | null | from rest_framework.status import HTTP_404_NOT_FOUND
ERROR_FIELD_DOES_NOT_EXIST = (
'ERROR_FIELD_DOES_NOT_EXIST',
HTTP_404_NOT_FOUND,
'The requested field does not exist.'
)
ERROR_CANNOT_DELETE_PRIMARY_FIELD = 'ERROR_CANNOT_DELETE_PRIMARY_FIELD'
ERROR_CANNOT_CHANGE_FIELD_TYPE = 'ERROR_CANNOT_CHANGE_FIELD_... | 29.636364 | 71 | 0.837423 |
68d9429f6da9f4047b22ecae607eeab851aaf188 | 253,493 | py | Python | glasses/__init__.py | tonyfast/metallic-glasses | 7ce019d0c8406e990836b88b9661839c3f1928cf | [
"BSD-3-Clause"
] | null | null | null | glasses/__init__.py | tonyfast/metallic-glasses | 7ce019d0c8406e990836b88b9661839c3f1928cf | [
"BSD-3-Clause"
] | null | null | null | glasses/__init__.py | tonyfast/metallic-glasses | 7ce019d0c8406e990836b88b9661839c3f1928cf | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# In[325]:
__version__ = "0.0.1"
__all__ = []
# In[8]:
from time import sleep
# In[22]:
get_ipython().magic('ls /Users/tfast/Desktop/SLAC_MG_0716/')
# In[23]:
get_ipython().magic('ls /Users/tfast/Desktop/SLAC_MG_0716/Sample1/')
# In[14]:
get_ipython().magic(
'cat /Users/tfast/Desktop/... | 823.029221 | 239,848 | 0.962326 |
68d98076bb5b653763a5e9f475b2dcc2aac6d8ae | 577 | py | Python | agents.py | lukebabs/autosurf | 858a268765bbe4f3ae48d38816597eef0754c6e4 | [
"MIT"
] | 1 | 2020-09-23T19:10:42.000Z | 2020-09-23T19:10:42.000Z | agents.py | lukebabs/autosurf | 858a268765bbe4f3ae48d38816597eef0754c6e4 | [
"MIT"
] | null | null | null | agents.py | lukebabs/autosurf | 858a268765bbe4f3ae48d38816597eef0754c6e4 | [
"MIT"
] | null | null | null | import os, random
if __name__ == "__main__":
user_agents = get_user_agents()
print (UserAgent.select_agent())
| 28.85 | 106 | 0.681109 |
68d99f26e2d322b5f1410136dc8d32fdc852ce2d | 4,497 | py | Python | tuiuiu/tuiuiuredirects/views.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | 3 | 2019-08-08T09:09:35.000Z | 2020-12-15T18:04:17.000Z | tuiuiu/tuiuiuredirects/views.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | null | null | null | tuiuiu/tuiuiuredirects/views.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T20:10:40.000Z | 2017-09-09T20:10:40.000Z | from __future__ import absolute_import, unicode_literals
from django.core.urlresolvers import reverse
from django.shortcuts import get_object_or_404, redirect, render
from django.utils.translation import ugettext as _
from django.views.decorators.vary import vary_on_headers
from tuiuiu.utils.pagination import paginat... | 35.690476 | 103 | 0.681565 |
68d9c2874c4137a2cc2a81b3b6c8979882134cbf | 2,639 | py | Python | fd_lib/feature_engineering.py | fdavidsen/Personal-Data-Science-Projects | 4167744295c96e3f984830b6203428ea41b111e7 | [
"MIT"
] | null | null | null | fd_lib/feature_engineering.py | fdavidsen/Personal-Data-Science-Projects | 4167744295c96e3f984830b6203428ea41b111e7 | [
"MIT"
] | null | null | null | fd_lib/feature_engineering.py | fdavidsen/Personal-Data-Science-Projects | 4167744295c96e3f984830b6203428ea41b111e7 | [
"MIT"
] | null | null | null | from itertools import combinations
from sklearn.base import BaseEstimator
from sklearn.base import TransformerMixin
| 33.405063 | 102 | 0.530125 |
68da0b7e3b7b6e70fde041111bd397e4346b2c04 | 3,778 | py | Python | benchmarks/cocompilation_benchmarks.py | SanggunLee/edgetpu | d3cf166783265f475c1ddba5883e150ee84f7bfe | [
"Apache-2.0"
] | 2 | 2020-05-07T22:34:16.000Z | 2020-09-03T20:30:37.000Z | benchmarks/cocompilation_benchmarks.py | SanggunLee/edgetpu | d3cf166783265f475c1ddba5883e150ee84f7bfe | [
"Apache-2.0"
] | null | null | null | benchmarks/cocompilation_benchmarks.py | SanggunLee/edgetpu | d3cf166783265f475c1ddba5883e150ee84f7bfe | [
"Apache-2.0"
] | 1 | 2020-01-08T05:55:58.000Z | 2020-01-08T05:55:58.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.981481 | 91 | 0.736633 |
68da25d88380998dc70170f5b963f169ab2d9195 | 11,849 | py | Python | pygl.py | sidd5sci/game-engin | 8aa580ae79083c6420e004720ea91650029caf2c | [
"Apache-2.0"
] | null | null | null | pygl.py | sidd5sci/game-engin | 8aa580ae79083c6420e004720ea91650029caf2c | [
"Apache-2.0"
] | null | null | null | pygl.py | sidd5sci/game-engin | 8aa580ae79083c6420e004720ea91650029caf2c | [
"Apache-2.0"
] | null | null | null | #Import OpenGL and GLU. Don't import GLUT because it is ancient, broken, inflexible, and poorly
#designed--and we aren't using it.
from OpenGL.GL import *
from OpenGL.GLU import *
#Import PyGame. We'll mostly just use this to make a window. Also import all the local
#declarations (e.g. pygame.KEYDOWN, etc.), so that... | 54.856481 | 100 | 0.720314 |
68e1f5cc56b5a7a07848391ac060d809aa03eb20 | 6,827 | py | Python | cogdl/models/nn/pyg_gpt_gnn.py | zhangdan0602/cogdl | 35a338f29066e4b1a5d7f46217f09ebceaf13106 | [
"MIT"
] | null | null | null | cogdl/models/nn/pyg_gpt_gnn.py | zhangdan0602/cogdl | 35a338f29066e4b1a5d7f46217f09ebceaf13106 | [
"MIT"
] | null | null | null | cogdl/models/nn/pyg_gpt_gnn.py | zhangdan0602/cogdl | 35a338f29066e4b1a5d7f46217f09ebceaf13106 | [
"MIT"
] | null | null | null | from typing import Any, Union, Type, Optional
from cogdl.models import register_model
from cogdl.models.supervised_model import (
SupervisedHomogeneousNodeClassificationModel,
SupervisedHeterogeneousNodeClassificationModel,
)
from cogdl.trainers.gpt_gnn_trainer import (
GPT_GNNHomogeneousTrainer,
GPT_... | 32.509524 | 107 | 0.535228 |
68e4fa47e5e77d8c29f364b8fa74a2d2eaa11de8 | 476 | py | Python | ex/ex113.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | ex/ex113.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | ex/ex113.py | Ozcry/PythonExercicio | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | [
"MIT"
] | null | null | null | '''Reescreva a funo leiaInt() que fizemos no DESAFIO 104, incluindo agora a possibilidade da digitao de um nmero de
tipo invlido. Aproveite e crie tambm uma funo leiaFloot() com a mesma funcionalidade.'''
from utilidadesCeV import moeda, texto
n1 = moeda.leiainteiro('\033[34mDigite um Inteiro:\033[m ')
n2 = moeda.leiaf... | 52.888889 | 120 | 0.754202 |
68e8192cc2ff542a1fbc557bde4a3ec054ffbb9e | 1,511 | py | Python | qtpy/tests/test_qtwidgets.py | tlambert-forks/qtpy | 016e8c5e67d30cb6803a2310bdbd7c4cabe33959 | [
"MIT"
] | null | null | null | qtpy/tests/test_qtwidgets.py | tlambert-forks/qtpy | 016e8c5e67d30cb6803a2310bdbd7c4cabe33959 | [
"MIT"
] | null | null | null | qtpy/tests/test_qtwidgets.py | tlambert-forks/qtpy | 016e8c5e67d30cb6803a2310bdbd7c4cabe33959 | [
"MIT"
] | null | null | null | """Test QtWidgets."""
import pytest
from qtpy import PYQT5, PYQT_VERSION, QtWidgets
def test_qtextedit_functions():
"""Test functions mapping for QtWidgets.QTextEdit."""
assert QtWidgets.QTextEdit.setTabStopWidth
assert QtWidgets.QTextEdit.tabStopWidth
assert QtWidgets.QTextEdit.print_
def test_qpl... | 34.340909 | 95 | 0.750496 |
68e86e12af161f52f04fd90498184998e3306c7b | 5,519 | py | Python | dispatch/events/emitter.py | Alphadelta14/python-newdispatch | 9d386ae0aa56af1bca38d9f732ff718a6642779c | [
"MIT"
] | 1 | 2015-06-08T01:43:37.000Z | 2015-06-08T01:43:37.000Z | dispatch/events/emitter.py | Alphadelta14/python-newdispatch | 9d386ae0aa56af1bca38d9f732ff718a6642779c | [
"MIT"
] | null | null | null | dispatch/events/emitter.py | Alphadelta14/python-newdispatch | 9d386ae0aa56af1bca38d9f732ff718a6642779c | [
"MIT"
] | null | null | null |
import functools
import sys
from event import EventData, EventCancelled, EventDeferred
| 29.672043 | 79 | 0.494111 |
68e9df88a8438097eecff1b4827fb3a86127f7cc | 88 | py | Python | output/models/ms_data/regex/re_t61_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_t61_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_t61_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_t61_xsd.re_t61 import Doc
__all__ = [
"Doc",
]
| 14.666667 | 61 | 0.715909 |
68edc1beb9d2bae550d0e6eb145fb0caa55200b1 | 2,663 | py | Python | hadoopCluster/hadoop.py | anycode-inc/TerminalUI-CGI | 8db7d19d25b0de6d599b9de8a4172d0668f4d688 | [
"MIT"
] | null | null | null | hadoopCluster/hadoop.py | anycode-inc/TerminalUI-CGI | 8db7d19d25b0de6d599b9de8a4172d0668f4d688 | [
"MIT"
] | null | null | null | hadoopCluster/hadoop.py | anycode-inc/TerminalUI-CGI | 8db7d19d25b0de6d599b9de8a4172d0668f4d688 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from jinja2 import Environment, FileSystemLoader
import subprocess
import cgi
print("content-type: text/html")
print()
mydata = cgi.FieldStorage()
namenode_ip = mydata.getvalue("namenode_ip")
namenode_port = mydata.getvalue("namenode_port")
namenode_directory = mydata.getvalue("namenode_directory... | 35.506667 | 96 | 0.733383 |
68ef832af775f775cdb4bb4048470a320e163217 | 10,396 | py | Python | module/cek_tanda_tangan_bap.py | riandakarizal/ITeung | 2d3fc7e4974c9a9b67ff61f2a77a528988b55820 | [
"MIT"
] | null | null | null | module/cek_tanda_tangan_bap.py | riandakarizal/ITeung | 2d3fc7e4974c9a9b67ff61f2a77a528988b55820 | [
"MIT"
] | 37 | 2020-03-22T23:21:14.000Z | 2020-09-16T15:07:06.000Z | module/cek_tanda_tangan_bap.py | riandakarizal/ITeung | 2d3fc7e4974c9a9b67ff61f2a77a528988b55820 | [
"MIT"
] | 1 | 2020-09-08T11:31:30.000Z | 2020-09-08T11:31:30.000Z | from module import kelas
from lib import numbers, wa, reply, message
import subprocess, config, os
| 35.60274 | 212 | 0.653905 |
68efa2f47f268526a9d0f5230984fd8a4c74294f | 5,184 | py | Python | tests/test_plasmid_extractor.py | lowandrew/Plasmid_Assembler | 7366e5e5a88e3a87d164934de0c6a3ee51f241b3 | [
"MIT"
] | 5 | 2018-01-16T04:55:10.000Z | 2020-10-23T08:59:52.000Z | tests/test_plasmid_extractor.py | lowandrew/Plasmid_Assembler | 7366e5e5a88e3a87d164934de0c6a3ee51f241b3 | [
"MIT"
] | null | null | null | tests/test_plasmid_extractor.py | lowandrew/Plasmid_Assembler | 7366e5e5a88e3a87d164934de0c6a3ee51f241b3 | [
"MIT"
] | 3 | 2018-02-16T18:49:07.000Z | 2021-06-20T06:45:02.000Z | import os
import shutil
"""
Remaining things to test:
find_plasmid_kmer_scores
find_score
filter_similar_plasmids
generate_consensus
"""
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sys.path.insert(0, parentdir)
from plasmidextractor.PlasmidExtractor import *
| 42.491803 | 132 | 0.656829 |
68f2c194115b15d0b37b208d612c93ce0b1eb749 | 1,418 | py | Python | gs15_py/Inversion.py | Jajajzhh/Blockchain_EncryptionKasumi | 604352a804433e482d754ab928aaacfd70cada04 | [
"MIT"
] | null | null | null | gs15_py/Inversion.py | Jajajzhh/Blockchain_EncryptionKasumi | 604352a804433e482d754ab928aaacfd70cada04 | [
"MIT"
] | null | null | null | gs15_py/Inversion.py | Jajajzhh/Blockchain_EncryptionKasumi | 604352a804433e482d754ab928aaacfd70cada04 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#Examples of irreductible polynomes 16 degree
#x^16 + x^9 + x^8 + x^7 + x^6 + x^4 + x^3 + x^2 + 1
#x^16 + x^12 + x^3 + x^1 + 1
#x^16 + x^12 + x^7 + x^2 + 1
from sympy.polys.domains import ZZ
from sympy.polys.galoistools import gf_gcdex, gf_strip
if __name__ == '__main__':
a = 0xf48 ... | 23.245902 | 111 | 0.504937 |
68f420504667e37d1a0941ff619b2ce7a315791e | 252 | py | Python | bot/adapters/bitfinex.py | greenseedyo/triangular_arbitrage | 813282715f2c9064a160948a0305b26e15ac1bab | [
"MIT"
] | 3 | 2020-02-26T06:41:22.000Z | 2020-06-18T02:22:11.000Z | bot/adapters/bitfinex.py | greenseedyo/triangular_arbitrage | 813282715f2c9064a160948a0305b26e15ac1bab | [
"MIT"
] | null | null | null | bot/adapters/bitfinex.py | greenseedyo/triangular_arbitrage | 813282715f2c9064a160948a0305b26e15ac1bab | [
"MIT"
] | 1 | 2020-02-26T06:41:28.000Z | 2020-02-26T06:41:28.000Z | # -*- coding: utf-8 -*-
from bot.adapters.ccxt_adapter import CcxtAdapter
from secrets import BITFINEX_KEY, BITFINEX_SECRET
| 22.909091 | 49 | 0.761905 |
68f4f86882cc9b12d44b29372c5ed00acbd058e5 | 2,469 | py | Python | pic2formula/polyline.py | s-col/pic2formula | 0e254f98fca8dd22b5136d018cd33413baba85d5 | [
"MIT"
] | null | null | null | pic2formula/polyline.py | s-col/pic2formula | 0e254f98fca8dd22b5136d018cd33413baba85d5 | [
"MIT"
] | null | null | null | pic2formula/polyline.py | s-col/pic2formula | 0e254f98fca8dd22b5136d018cd33413baba85d5 | [
"MIT"
] | null | null | null | import math
import numpy as np
from scipy import interpolate
| 26.548387 | 63 | 0.45565 |
68f5649c62aa4f43394924b3ae19b877c4eef1be | 188 | py | Python | create_db.py | rdclif/GCloud-WebProject | 5e548cce536ed71ae5f0a1641c95e9ce3b08a912 | [
"CNRI-Python"
] | null | null | null | create_db.py | rdclif/GCloud-WebProject | 5e548cce536ed71ae5f0a1641c95e9ce3b08a912 | [
"CNRI-Python"
] | null | null | null | create_db.py | rdclif/GCloud-WebProject | 5e548cce536ed71ae5f0a1641c95e9ce3b08a912 | [
"CNRI-Python"
] | null | null | null |
from main import db
from main import Visit
from main import sqlalchemy
if __name__ == '__main__':
print('Creating all database tables...')
x = db.create_all()
print('Done!') | 18.8 | 44 | 0.68617 |
68f9926a1a6cee5c7b3808e4d3e51e60201ff9cc | 122 | py | Python | pycantonese/tests/__init__.py | chaaklau/pycantonese | 94694fea2f3c3405d3b6bb6d504a56bb05a6496c | [
"MIT"
] | 124 | 2019-08-12T13:10:43.000Z | 2022-03-24T18:35:58.000Z | pycantonese/tests/__init__.py | chaaklau/pycantonese | 94694fea2f3c3405d3b6bb6d504a56bb05a6496c | [
"MIT"
] | 13 | 2019-09-03T17:08:49.000Z | 2021-12-28T21:37:17.000Z | pycantonese/tests/__init__.py | chaaklau/pycantonese | 94694fea2f3c3405d3b6bb6d504a56bb05a6496c | [
"MIT"
] | 15 | 2019-08-09T04:03:01.000Z | 2022-03-17T10:18:21.000Z | import os
_THIS_DIR = os.path.dirname(os.path.realpath(__file__))
REPO_DIR = os.path.dirname(os.path.dirname(_THIS_DIR))
| 24.4 | 55 | 0.778689 |
68fb355cda715a722270422ee795218d8af71a03 | 3,824 | py | Python | seed.py | thereals0beit/aria2-batch-downloader | 22503c4c4c0cf6dbe74c83de1c2932bb4753598f | [
"MIT"
] | 2 | 2017-03-30T22:49:28.000Z | 2019-05-16T07:39:31.000Z | seed.py | thereals0beit/aria2-batch-downloader | 22503c4c4c0cf6dbe74c83de1c2932bb4753598f | [
"MIT"
] | null | null | null | seed.py | thereals0beit/aria2-batch-downloader | 22503c4c4c0cf6dbe74c83de1c2932bb4753598f | [
"MIT"
] | 5 | 2015-09-05T00:48:51.000Z | 2020-08-19T02:32:28.000Z | #!/usr/bin/env python
import sys
import subprocess
import urllib2
import base64
import re
import os.path
from bs4 import BeautifulSoup, NavigableString
USERNAME = "YOUR_USERNAME"
PASSWORD = "YOUR_PASSWORD"
if len(sys.argv) == 2:
singleFileDownload(sys.argv[1])
elif len(sys.argv) == 3:
multiRegexDownload(sys.argv[... | 28.325926 | 174 | 0.695868 |
68fc81206a378d15958f90dac2d8f1cdad2053ed | 396 | py | Python | python/ql/test/query-tests/Classes/should-be-context-manager/should_be_context_manager.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/query-tests/Classes/should-be-context-manager/should_be_context_manager.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/query-tests/Classes/should-be-context-manager/should_be_context_manager.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | #Should be context manager | 18 | 42 | 0.494949 |
68fe5357f2994a0a75698eb8a8e7824b9a9f7c44 | 2,592 | py | Python | season_crawler.py | charmoky/f1_crawler | c4edec5d0a19283690347fc9ed21c454e5db2d4b | [
"MIT"
] | null | null | null | season_crawler.py | charmoky/f1_crawler | c4edec5d0a19283690347fc9ed21c454e5db2d4b | [
"MIT"
] | null | null | null | season_crawler.py | charmoky/f1_crawler | c4edec5d0a19283690347fc9ed21c454e5db2d4b | [
"MIT"
] | null | null | null |
import requests
from bs4 import BeautifulSoup
import lxml
import re
import ast
import urllib.parse as urllib
| 28.483516 | 101 | 0.486497 |
68ff13e3e208e09b794739d2c907043aabd15844 | 130 | py | Python | sudoku/python/sudoku.py | sandos/MastersOfCode | 582e372901857b853eb50435298001e378b45e0f | [
"Unlicense"
] | null | null | null | sudoku/python/sudoku.py | sandos/MastersOfCode | 582e372901857b853eb50435298001e378b45e0f | [
"Unlicense"
] | null | null | null | sudoku/python/sudoku.py | sandos/MastersOfCode | 582e372901857b853eb50435298001e378b45e0f | [
"Unlicense"
] | null | null | null | import csv
with open("../sudoku.csv", "r") as csvfile:
reader = csv.reader(csvfile)
for row in reader:
print row | 18.571429 | 43 | 0.615385 |
68ffd02431b608770d9cb6427c85ad56bdc7189e | 1,921 | py | Python | cogs/clock/cog.py | DenverCoder1/weasley-chess-bot | 70d6250cf2eea4faceacf3a809f38d8cc6f19059 | [
"MIT"
] | 2 | 2021-05-05T16:06:38.000Z | 2021-05-05T19:21:30.000Z | cogs/clock/cog.py | DenverCoder1/weasley-chess-bot | 70d6250cf2eea4faceacf3a809f38d8cc6f19059 | [
"MIT"
] | 7 | 2021-06-22T21:36:29.000Z | 2022-01-21T19:15:58.000Z | cogs/clock/cog.py | DenverCoder1/weasley-chess-bot | 70d6250cf2eea4faceacf3a809f38d8cc6f19059 | [
"MIT"
] | null | null | null | import config
import discord
from discord.errors import HTTPException
from discord.ext import commands
from discord.ext.tasks import loop
from .clock import (
clock_embed,
get_or_create_message,
new_channel_name,
get_embed_title,
)
| 32.559322 | 84 | 0.645497 |
ec006c8af6686f4d727533bc4bdf28b8f92b3527 | 6,989 | py | Python | Ellie_Lambda_Introductory_Convo.py | dodobirb/Project_2_ETF_Lex_RoboAdvisor | f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739 | [
"MIT"
] | null | null | null | Ellie_Lambda_Introductory_Convo.py | dodobirb/Project_2_ETF_Lex_RoboAdvisor | f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739 | [
"MIT"
] | null | null | null | Ellie_Lambda_Introductory_Convo.py | dodobirb/Project_2_ETF_Lex_RoboAdvisor | f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739 | [
"MIT"
] | null | null | null | ### Required Libraries ###
from datetime import datetime
from dateutil.relativedelta import relativedelta
from botocore.vendored import requests
### Functionality Helper Functions ###
def parse_float(n):
"""
Securely converts a non-numeric value to float.
"""
try:
return float(n)
... | 31.624434 | 126 | 0.593075 |