blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6efd9f00eddc5bb14a5b8b3ff1b0a1ff51444964 | debc1cbfb53e716041dab6f8ca570cbb31b4e563 | /Archive/PDC_REFACTOR/src/ExcelHandler.py | 3aefb7861a59a343398e80310d147096f5df2ebe | [] | no_license | DamsRoxxx/TafOutils | 019ab33337e35b979a3f0079198901b7af4ae93f | 4e9ffd665bf31fe0b3029ee6225d365fb0637f9f | refs/heads/master | 2020-03-25T23:33:45.639283 | 2018-10-05T09:17:59 | 2018-10-05T09:17:59 | 144,280,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | #!/usr/bin/python
# coding: utf-8
import logging
import xlrd
from xlsxwriter.workbook import Workbook
class ExcelReader:
def __init__(self, file_path):
self.workbook = xlrd.open_workbook(file_path)
self.sheet = None
self.bind_sheet(0)
def bind_sheet(self, index):
self.sheet = ... | [
"cogito.ergo.p@gmail.com"
] | cogito.ergo.p@gmail.com |
62e68494e1296d7026d2a8338646d299fe4708c7 | beb6bf8eca564759e09e113617c6b30b182631f4 | /scripts/05714-Iyanuoluwa.py | c02c38c7595d103e4557e3e6d367a2e2b83920fd | [] | no_license | ifatoki/hng-wonderwoman-task-1 | 38e9a8e2e437f5701498597b4fbef33e16a91b97 | 745050f49bb31fb8106f1565b937d3f679b40e49 | refs/heads/develop | 2022-10-07T12:33:42.953793 | 2020-06-07T07:37:45 | 2020-06-07T07:37:45 | 268,903,235 | 16 | 443 | null | 2020-06-10T03:28:51 | 2020-06-02T20:37:44 | JavaScript | UTF-8 | Python | false | false | 200 | py | name = "Fesobi Iyanuoluwa"
hngid = "HNG-05714"
emailaddress = "iyanufes@gmail.com"
print("Hello World, this is " + name + " with HNGi7 ID " + hngid + " using python for stage 2 task " + emailaddress)
| [
"iyanufes@gmail.com"
] | iyanufes@gmail.com |
686fe78e15a26caf5e5798f764df9197827a0014 | f94a314d40d8f04bb5fa4f7f2376d898e3cdd68d | /groups/settings.py | 3c4696baf55ae2118a27db181a4e29bd2c1b173e | [] | no_license | mangeshgupte/event-ogre | 445bcd6d61c18c109e74c68c2b5285593b661898 | 9073fd8538147b51337b394211ca5ac62113dae6 | refs/heads/master | 2021-01-01T17:15:52.539840 | 2013-02-10T02:44:21 | 2013-02-10T02:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,277 | py | # Django settings for groups project.
import os
SITE_ROOT = os.path.realpath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_p... | [
"mgupte@gmail.com"
] | mgupte@gmail.com |
1c904f1f90eaa578507aa2dfa3d650fa00a729c5 | a48b131593dbcde7f8edf29757beaa2703aed849 | /src/tcia.py | bbf9e58a52ef3854f50b842ab530c7f0e7c5669e | [
"Apache-2.0"
] | permissive | lescientifik/tcia_downloader | 83fbd281007fa093f14b2e4dd96618dfbc80aaad | 6b14ae57b8f156d6a52c836f7f70990e6990b7c9 | refs/heads/master | 2021-08-19T00:55:39.154387 | 2021-01-06T13:03:56 | 2021-01-06T13:03:56 | 240,264,136 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,877 | py | import argparse
import json
import pathlib
import shutil
from concurrent.futures import ProcessPoolExecutor, as_completed
import requests
from src.file_io import read_txt
from src.utils import drop_until, remove_trailing_n
TAKE_AFTER = "ListOfSeriesToDownload="
TCIA_ENDPOINT = (
"https://services.cancerimagingar... | [
"theophraste.henry@gmail.com"
] | theophraste.henry@gmail.com |
590926c548bbf4d2c80cd8848ec14070f263882b | 4d0bbeb8ab52f7e450aff20056f7509e12751258 | /functional_tests/test_list_item_validation.py | b76997f17a27784079ace3f2665c4571d9f5f356 | [] | no_license | chicocheco/tdd_book | f7c9246dcb4eb5327704c72f655bf6e187b28849 | 574b1082aa523c7434f50e0c4cbdf5777ddf50ef | refs/heads/master | 2022-05-02T17:44:27.217329 | 2020-03-13T18:57:22 | 2020-03-13T18:57:22 | 197,633,503 | 0 | 0 | null | 2022-04-22T22:19:12 | 2019-07-18T17:56:43 | JavaScript | UTF-8 | Python | false | false | 4,895 | py | from selenium.webdriver.common.keys import Keys
from unittest import skip
from .base import FunctionalTest
class ItemValidationTest(FunctionalTest):
# YAGNI, 3 strikes and refactor, not moving helper methods to base.py if not needed elsewhere
def get_error_element(self):
return self.browser.find_elem... | [
"stanislav.matas@gmail.com"
] | stanislav.matas@gmail.com |
8487f1f63135e4bffeb4b1e070046c863dd458cf | 52f734b8f04ed0c88e3a41de2b5fb4aa3b2c1a8b | /data_process.py | 3eb1ff7174c0319da6678cce0e541f8ad5cfd25f | [] | no_license | hongjy127/CNN_ultrasonics | d79398d947ffca0014da2f917b2871362d624e91 | 11c5614ac734f4d7af9a4a488ddc52bb4be28b87 | refs/heads/master | 2023-02-27T00:10:58.396549 | 2021-02-03T16:39:40 | 2021-02-03T16:39:40 | 328,112,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | import numpy as np
import matplotlib.pyplot as plt
from pyts.image import RecurrencePlot
# 설정 정보 불러오기
class Configuration:
def __init__(self):
config = self.load()
self.fname = config['FNAME']
def load(self):
config = {}
with open('config.ini','rt') as f:
entries = ... | [
"hhhong127@gmail.com"
] | hhhong127@gmail.com |
7763f7fec98e95c5790ffed238eabe0c43e2edb4 | 227ad4bd61a37a899df8833210f895d91a521bda | /virtualenv/taiga2/bin/createfontdatachunk.py | 388bac361805363b259ab18796f68c5ad86f68f7 | [] | no_license | shubhanus/taiga | 34549b73844a861a2cc1d7cab01d06b7f86c0727 | 90076bd695dce1b05602ccdeb55ea7679897b373 | refs/heads/master | 2021-01-19T05:27:08.478770 | 2016-06-14T06:03:20 | 2016-06-14T06:03:20 | 61,095,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/home/shugar/Documents/taiga/virtualenv/taiga2/bin/python3.5
from __future__ import print_function
import base64
import os
import sys
if __name__ == "__main__":
# create font data chunk for embedding
font = "Tests/images/courB08"
print(" f._load_pilfont_data(")
print(" # %s" % os.path.base... | [
"shubhanus@live.com"
] | shubhanus@live.com |
6c0ba8278dfb10f88681ea074857d9fbff136a8d | a089515abe98aa3d80e14cc0ff141fc5ce722a3f | /posting_wall/views.py | 1641070aef03a63754f3908ff68ba557453408a4 | [] | no_license | lkhedlund/python-resource-wall | 17e0e181631d261662641d035038960ce43adca8 | 239b0cbc585b2440fa72da5d51449083f601acaa | refs/heads/master | 2021-01-09T06:53:40.227968 | 2015-12-16T03:10:23 | 2015-12-16T03:10:23 | 47,044,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,144 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, HttpResponse
from .models import Post
from .forms import PostForm, CommentForm
# Create your views here.
... | [
"lkhedlund@gmail.com"
] | lkhedlund@gmail.com |
b66bc0584c1a73ed2a6ba0efebafd17e6aa54443 | 0324520ca80be1cae2226750897e59c5efc6ad5e | /CODE/ZOOJOINSREADDATA.py | a80a69ae89b5d497e6556effaf291bdad310ce97 | [] | no_license | Jgardner91/ZOOJOINS | 6d5fa44659b3eb6251c04b301ba5b5b0e8de14a2 | 86a2dd7170512495e3501ff18c860216035a04f6 | refs/heads/main | 2023-06-14T07:35:03.287672 | 2021-07-06T19:16:59 | 2021-07-06T19:16:59 | 383,570,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,557 | py | # Jimmy Gardner
import pandas as pd
from sqlalchemy import create_engine
# data from the game table
game_data = [(1001,'8 June 2012','National Stadium, Warsaw','POL','GRE'),
(1002,'8 June 2012','Stadion Miejski (Wroclaw)','RUS','CZE'),
(1003,'12 June 2012','Stadion Miejski (Wroclaw)','GRE','C... | [
"jimmycgardner@gmail.com"
] | jimmycgardner@gmail.com |
92c9c2f13e11570a3d3859b22def1ffea244381b | 4506b18210340b2a31deee2a4a868e0ff624a9b7 | /BasicKnowledge/const/const.py | 5b4e2542ef19806068dfb68aa7a9a86527b4bd10 | [] | no_license | Glebastaenjoy/python | 673ae15d76862c9955ec4232cf44024119b416c6 | 28c88844cb421b78c6f22f9d5c57cd329f487dc2 | refs/heads/master | 2021-12-23T01:02:35.989749 | 2017-10-22T13:21:51 | 2017-10-22T13:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | class _const:
class constError(TypeError):
pass
def __setattr__(self, name, value):
if self.__dict__.has_key(name):
raise self.constError, "exists key"
self.__dict__[name] = value
import sys
sys.modules[__name__] = _const()
| [
"luojunwenbashen@163.com"
] | luojunwenbashen@163.com |
05b55e0f5ad15b8b0584712f4e48ca90410ad90a | 4869b5239f9667dc030452c776ae412585156a98 | /tasks/adm_dis_match_mtsamples/adm_dis_match_mtsamples.py | d793d0fb101889ad146bbbc808d86f9c0c0e1f1f | [
"Apache-2.0"
] | permissive | corey886/clinical-outcome-prediction | ebe2268596342964360284d8ae813cd5d6132384 | c8db1a8be344afa0e734040848a98c730f0124e2 | refs/heads/master | 2023-08-11T19:35:41.845145 | 2021-09-22T16:09:50 | 2021-09-22T16:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | import json
import math
import os
import random
from tasks import utils
def split_admission_discharge(mt_samples_path: str, save_dir: str, seed: int):
"""
Split texts into admission and discharge sections to prepare them for ADMISSION DISCHARGE MATCHING task.
"""
# set task name
task_name = "ADM... | [
"bettyvanaken@gmail.com"
] | bettyvanaken@gmail.com |
503c5cb34a1449700a1226aa867fca67892d2547 | 908b126b493becf947cb9c2e8f914b15b6145f1c | /smartcity/estacionamiento/admin.py | 9d56c0a54bc36013d5672d165ec016df16b8dc52 | [] | no_license | dreglad/smartcity | c7b3b7640f3276fad0f8fb866cf5ad1a761c6464 | 85edbf66e10dcc533dd79fe26fea92d4b05bd09d | refs/heads/master | 2021-06-04T15:52:05.592590 | 2016-07-12T03:29:45 | 2016-07-12T03:29:45 | 62,511,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*- #
from django.contrib import admin
from estacionamiento.models import *
from smartcity.admin import SmartCityModelAdmin
class VehiculoEstacionadoAdmin(SmartCityModelAdmin):
pass
class VehiculoAdmin(SmartCityModelAdmin):
list_display = ('placas', 'color', 'modelo', 'marca', 'submarca'... | [
"dreglad@gmail.com"
] | dreglad@gmail.com |
57c3da691687703b55b2e79dfd7127c4933dd386 | d931ed51e602d6679401b3e149042cc4b0447982 | /oxtfinput.py | b74e825df4f5ec5218818f28e3c2cea710dfa7d9 | [] | no_license | dasturge/distributed_cnn | 431930b7b96e99a3b015d152ca20f75ec6fe64e2 | e019e8ed1a19b563fda0cffa6db36c0d23a9e862 | refs/heads/master | 2021-09-09T22:53:38.156978 | 2018-03-20T04:55:19 | 2018-03-20T04:55:19 | 121,983,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,490 | py | import os
from matplotlib.image import imread
import tensorflow as tf
import numpy as np
import dataset
# https://www.youtube.com/watch?v=oxrcZ9uUblI funny and good tutorial on tensorflow records
def create_tfrecords(name='Cifar10', datadir=os.path.expanduser('~/Cifar10')):
# name: Name of dataset
# datad... | [
"darrick.code@gmail.com"
] | darrick.code@gmail.com |
17c9c2945aef27455860a073f7e72375f3e5ac1a | 6cf2ec0a5c295e98f8dd3546ae56c759d7596b6a | /python/elgamal.py | 2edb732f544e4139203350940ff8f168d06d77cc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | serengil/crypto | 5ef148682b5ad06c61bebc4bd06f2ff653d2aec6 | e338e934eff7a9ed74a8da8244b3f573d735a99a | refs/heads/master | 2023-06-21T01:06:09.886286 | 2023-06-16T11:48:01 | 2023-06-16T11:48:01 | 56,991,123 | 89 | 52 | MIT | 2020-04-23T12:37:13 | 2016-04-24T19:50:12 | Jupyter Notebook | UTF-8 | Python | false | false | 1,649 | py | import random
from Crypto.Random import get_random_bytes
from Crypto.PublicKey import ElGamal
import cryptocommons as commons
print("-----------------------")
print("key generation")
print("-----------------------")
p = 961751257 #prime
"""config = ElGamal.generate(512, get_random_bytes)
p = getattr(conf... | [
"noreply@github.com"
] | noreply@github.com |
ff30bda609222a1809fceb8e499d3268a15ff358 | e7638c3903fa90c48d417002603b5e6135dc6f80 | /test_project/test_project/settings.py | d57fbcd8cd1af3da9520481212251a9a25d755d8 | [
"Apache-2.0"
] | permissive | paddygit/test_project | 5a3fd8b1ed4efe9bb9810c70351caa081ae8ef33 | 40d461bc05031ae32437a646f41c2413e004757f | refs/heads/master | 2021-06-12T21:14:34.669143 | 2017-12-13T17:00:17 | 2017-12-13T17:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,439 | py | """
Django settings for test_project project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"sunny.srivastava55@gmail.com"
] | sunny.srivastava55@gmail.com |
2272c6175d60db70ff4f26b6700f3071cdc80219 | cb47389810177ae318e97c517d5f95848b233342 | /app/core/management/commands/wait_for_db.py | a8084badba46ead5949880fa915c9f7746934e87 | [
"MIT"
] | permissive | client-bookup/Client-bookup | 6c14068509970ae3f91d30b4e97046c9439eca98 | e9c2efecb81a265f6aaca1e6f8988e068615b50d | refs/heads/main | 2023-01-29T21:41:07.372354 | 2020-12-16T13:29:06 | 2020-12-16T13:29:06 | 317,882,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # import time
#
# from django.db import connections
# from django.db.utils import OperationalError
# from django.core.management.base import BaseCommand
#
#
# class Command(BaseCommand):
# """Django command to pause execution until database is available"""
#
# def handle(self, *args, **options):
# self.... | [
"Ysaleem5323@gmail.com"
] | Ysaleem5323@gmail.com |
1f400fd78266ac0a9086eca867b0993f2dd565c0 | bd8ecf4cd754cf84350c0db0cc3c7644bf1ea7ff | /miscellaous/tuple_list_dict.py | 994ba62354acc03c629c5965b70c7cf9f65b05e6 | [] | no_license | AlyMetwaly/python-scripts | 33106e284856a0f0d71ef8e9900150ac5e331b52 | 9651e92ff4156ae8dfb148810df768d96a4855d6 | refs/heads/master | 2023-03-21T04:44:18.493731 | 2021-02-25T08:01:14 | 2021-02-25T08:01:14 | 341,541,953 | 0 | 0 | null | 2021-02-25T08:01:15 | 2021-02-23T12:06:40 | Python | UTF-8 | Python | false | false | 148 | py | a = [1,2,3]
print(type(a))
b = (4,5,6)
print(type(b))
c = {7:6,5:4,3:2,1:0}
print(type(c))
d = a,b,c
print(type(d))
print(d)
print(d[2][3]) | [
"aly_youssef@live.com"
] | aly_youssef@live.com |
1599d5ab9fcfb738d83207abb71616a4daca035e | 88dbdd1e6271eb9a9e96a09f1be56598bd71d2b4 | /PollsWeb/Polls/views.py | c4eeb2010336dd3415af18130026ff6ca0424391 | [] | no_license | G2Bent/Django | b5391342be20b63338f091c22c9adcfe6af3a606 | 1966249cbd1289bf13d9507d8d7db9929d1c850d | refs/heads/master | 2021-01-21T12:16:15.108204 | 2017-09-01T01:11:10 | 2017-09-01T01:11:16 | 102,057,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | from django.shortcuts import render,get_object_or_404
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from .models import Question,Choice
from django.http import HttpResponse
import json
# Create your views here.
def index(request):
latest_question_list = Question.objects.a... | [
"944921374@qq.com"
] | 944921374@qq.com |
2d46c32707757aec124159fe10cf0058dd445493 | 89294e9014b46ec3626ed400dc596ec8e9d6bb4c | /src/main.py | 0b6a93c01e8105ac2e05365a0161752cebbdace5 | [] | no_license | aaronzberger/CMU_PIXOR | 925e444aa4ab10c25a0b6faa4da55f5fef302eba | c98b63ef071bb0cfd553c16175fb03e0112ad399 | refs/heads/main | 2023-04-08T13:32:58.873984 | 2021-04-26T19:20:35 | 2021-04-26T19:20:35 | 360,689,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,196 | py | import torch
import torch.nn as nn
import numpy as np
import time
import argparse
import random
from torch.multiprocessing import Pool
from loss import PIXOR_Loss
from datagen import get_data_loader
from model import PIXOR
# from old_model import PIXOR
from utils import get_model_name, load_config, plot_bev, plot_labe... | [
"aaronzberger@gmail.com"
] | aaronzberger@gmail.com |
1b18609a17989f976f07a1ab730f6b9def65585e | 06b32067fc955224d8756e12d485d383fa8c443c | /multi_process/multi_process.py | 5ddcebeef9ea6965bd30e621835a75fe0a632aa0 | [] | no_license | MifengbushiMifeng/pyanalyze | 42ba04a9937d94b9b9c380d4957b1d23e30446e2 | 6b3307f23482cbf873270a0e9f5186714f4b16dd | refs/heads/master | 2021-01-21T19:06:58.731666 | 2017-06-21T05:01:22 | 2017-06-21T05:01:22 | 92,116,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from multiprocessing import Process, Value, Array
def f(n, a):
n.value = 3.1415927
for i in range(len(a)):
a[i] = -a[i]
if __name__ == '__main__':
num = Value('d', 0.0)
arr = Array('i', range(10))
print(num.value)
print(arr[:])
print('another process start.')
p = Process(tar... | [
"zhouronghui30@163.com"
] | zhouronghui30@163.com |
1c0d481145dd3fd9a1edd20e3442e3e09c31a88b | 0d8c030beb0cf8d6ebc8b67f86619400f9a8300c | /mathematical_operators.py | 1c169f77fe8c8851cc7ee0f6d70f4331b55e9946 | [] | no_license | czach81/python_exercises | b50dd5c55883d2d1d2488340e866fd24ddcebb27 | d8b4a267502310019a4d4d669c02d7e38c8c5de2 | refs/heads/master | 2020-09-15T13:09:29.340334 | 2019-11-26T21:37:25 | 2019-11-26T21:37:25 | 223,454,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | print('Floor Division') #rounds to the nearest whole number
print(100 // 42)
print(100 // 38)
print('---')
print('Multiplication')
print(100 * 42)
print('---')
print('Modulus') #to find if value was evn or odd ( even is zero odd is 1) divids the smaller nuber and returns the remainder
print(100 % 42)
print('---')... | [
"christopherpzach@gmail.com"
] | christopherpzach@gmail.com |
be8b861009446a8d512af5ae7f5362d3c33b15b3 | 5d27be6ea2ca8871c2b064a1d3f5619fd255ffa4 | /books/migrations/0001_initial.py | b68e180b46277642946682b85a17450010ce3c0b | [] | no_license | yang2yang/djangobook | 52355a6fce9a842dc9505af48c01b57dd25881c0 | 1a187b436fb8e813aae30218ab2308093dba88c5 | refs/heads/master | 2021-01-10T01:22:01.450001 | 2016-01-07T08:32:53 | 2016-01-07T08:32:53 | 49,191,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-07 07:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | [
"qingliding@gmail.com"
] | qingliding@gmail.com |
8f0f6157963eed706b4c2ac2357280a62077f91d | 8fc2112aca141a2aff2aa1a9fe2406c252a4bc5c | /alignment/RetinaFace_Mx/retinaface.py | eef5dbc9110f15d55f54ffdc1e26a66f02a49c87 | [] | no_license | tuanbeatzz/Face_Recognize | 0cc7a6d5e317f24a7468cb8a2eb4150fca571b40 | d01ecf25b5e29d28edf53af93219c7f1805ef308 | refs/heads/master | 2022-01-22T18:45:39.585074 | 2019-08-07T09:02:19 | 2019-08-07T09:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,846 | py | from __future__ import print_function
import sys
import os
import datetime
import time
import numpy as np
import mxnet as mx
from mxnet import ndarray as nd
import cv2
#from rcnn import config
from .rcnn.logger import logger
#from rcnn.processing.bbox_transform import nonlinear_pred, clip_boxes, landmark_pred
from .rcn... | [
"longnv3@topica.edu.vn"
] | longnv3@topica.edu.vn |
d764837dfb318ea8b659f68560ee7bf936167bf6 | fe03071d4e86c08c40463ef224c266301023a88c | /script.py | 66f213df058b8148a4f7998f2eae9183f3fc88a0 | [] | no_license | forevermzm/61b | b7b45a34fb0f03040422b1741f1691f64b96b068 | 06beb5e0e11741c3cd1df8608831fcba6f7d1755 | refs/heads/master | 2016-09-06T09:16:14.324261 | 2014-05-14T08:29:25 | 2014-05-14T08:29:25 | 26,772,647 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import urllib, re, os, sys
from BeautifulSoup import BeautifulSoup
def findTagA(url, directory):
if not os.path.exists(directory):
os.makedirs(directory)
doc = urllib.urlopen(url).read()
soup = BeautifulSoup(doc)
tags = soup.findAll('a')
for tag in tags:
text = tag['href']
... | [
"forevermzm00@gmail.com"
] | forevermzm00@gmail.com |
5623c4d343a9dfae1d80d269fa1dec7be71a4469 | d633d05b9f8a10a42bf8a3c708e292fd16900278 | /郑继涵/高级/计算器/testcalc.py | 2fb64f3674f77bd2f4b3703386b8e5b9a6a181dd | [] | no_license | SlientMe/teaching | 6df357f00d9f03c725c8d743d7edb9723ebc377f | 66a94ffef3f05a657894a0a40024f194d843a5b9 | refs/heads/master | 2020-07-13T12:56:06.133871 | 2020-01-13T08:40:31 | 2020-01-13T08:40:31 | 205,087,662 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,444 | py | import tkinter
# 定义计算器类
class Calc:
# 初始化魔术方法
def __init__(self):
# 初始化共用属性
# 定义一个用于存放被计算字符串的列表
self.operationList = []
# 定义运算标记 确定是否输入了运算符号
self.isOper = False
# 初始化界面
self.initWindows()
# 更改按键盘颜色方法
def changeBg(self, evt):
evt.widget['... | [
"slient_me@outlook.com"
] | slient_me@outlook.com |
5e688349981c299bd61cef40cd309cb920b4f7bc | 956f3e804bb0614f3c69f058bbb9dead86af58a6 | /Nlp_Transcribe.py | 50adc56c48666ba97e42a3d1e43d248820113b7e | [] | no_license | ArtfulCreator/nlp-data-pipeline | 8667ecd1b8fbb65234b7ea0825a7cdded81f78a7 | 1f71162c9619da2562495a3d0ddeb2d551cdd402 | refs/heads/master | 2022-11-27T08:00:14.031349 | 2020-07-31T14:20:37 | 2020-07-31T14:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import time
import boto3
import json
import urllib.request
import os
def transcribe_handler (event, context):
region = os.environ['AWS_REGION']
transcribe = boto3.client('transcribe',
region_name= region
)
inputBucket = os.environ['InputS3Bucket'... | [
"noreply@github.com"
] | noreply@github.com |
33170445271fc8d4ff4eedb8ceac6fbd31e0d936 | 1eff97fcfd50e66e4608d40d8691655cdc7161aa | /clearml/automation/controller.py | 365e41ac10e26617fd7ea5ce408b441c3b9066d3 | [
"Apache-2.0"
] | permissive | alexwhite1379/example | 9423fc02bc9b41653785cae99883b823f1253025 | 9b433142e66b21882f38a3fa8fd439db2a0d2878 | refs/heads/main | 2023-02-12T22:01:35.930968 | 2020-12-29T08:59:03 | 2020-12-29T08:59:03 | 325,233,842 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 33,123 | py | import re
from copy import copy
from datetime import datetime
from logging import getLogger
from threading import Thread, Event
from time import time
from attr import attrib, attrs
from typing import Sequence, Optional, Mapping, Callable, Any, Union
from ..task import Task
from ..automation import TrainsJob
from ..mo... | [
"alex.white1379@gmail.com"
] | alex.white1379@gmail.com |
34c194fc52635f5c746e218aacf8602a65b15519 | 9a080e0ae30c5ca741c536a20329806b467739c5 | /pyatv/mrp/protobuf/PlayerClientPropertiesMessage_pb2.pyi | f484cf4427dd94d87c4c527bd047f370c6399aad | [
"MIT"
] | permissive | acheronfail/pyatv | a22867870b59ca29fd455efac5e0cf2e8c0f4ff9 | 9cb96ffcc49938c4b43c92b7b40ddcecae37e732 | refs/heads/master | 2023-04-01T20:44:46.179963 | 2021-04-16T07:20:12 | 2021-04-16T07:20:12 | 358,583,792 | 0 | 0 | MIT | 2021-04-16T11:56:43 | 2021-04-16T11:56:43 | null | UTF-8 | Python | false | false | 1,843 | pyi | """
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FieldDescriptor as google___protobuf___descriptor___FieldDescriptor,
FileDescriptor as google___protobuf___descriptor___FileDescript... | [
"noreply@github.com"
] | noreply@github.com |
7e102ada975c692d259422a487406b4b9fdcfb97 | 30af7bf29810bde8404df0a23b59c91aa3b3b7cd | /automated/var.py | f939171bb3e87b1f9b8702bb3cb38aa0569992a0 | [] | no_license | nikmois/testing | 6b66e727d98c73078a6399d13d1f00d02dfe20f8 | 16449e1fd53856391a576b62f2574be2e2539910 | refs/heads/main | 2023-08-01T11:32:11.741295 | 2021-09-24T08:00:42 | 2021-09-24T08:00:42 | 409,874,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | import calctest1
FailTest("var.txt")
| [
"nik.moissejev@gmail.com"
] | nik.moissejev@gmail.com |
d45a3c5551080f64a4addca3790e3b745b4c7603 | 0d309a6b9f028db4b616b91d1ab8ce7af6eaf067 | /albumlist/models/votes.py | 07e9179607894e89a3f6b13b15ce6cf856d49cc2 | [] | no_license | Raffers/albumlist | 7056b27c74a05a9ff92aba62cd4bb4f94de81052 | dcddf59b0af8260eb2f7f589617afed9ce2f0a7b | refs/heads/master | 2021-08-24T02:25:39.707981 | 2017-12-07T16:52:22 | 2017-12-07T16:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | # def create_votes_table():
# sql = """
# CREATE TABLE votes (
# id serial PRIMARY KEY,
# album varchar
# );"""
# with closing(get_connection()) as conn:
# try:
# cur = conn.cursor()
# cur.execute(sql)
# conn.commit()
# except ... | [
"theogreman@gmail.com"
] | theogreman@gmail.com |
3ebbd375182dd3409c9a5eb6a6ffce5381ef4345 | 6e652507874d4f6835092e6e504525d71bc1a48d | /Python/hackerrank/Tuples.py | 853ee138478e287cf5fd5fbbb1a9699f251aa73c | [] | no_license | Geek-Tekina/Coding | be4876b2b3b9a16f32c92bb1cabb3694fb03a837 | 15ee5c830dbf02d90cc972355c5054471985ebc5 | refs/heads/main | 2023-08-07T11:17:58.362604 | 2021-10-01T08:47:25 | 2021-10-01T08:47:25 | 412,362,390 | 2 | 0 | null | 2021-10-01T06:58:49 | 2021-10-01T06:58:49 | null | UTF-8 | Python | false | false | 200 | py | if __name__ == '__main__':
n = int(input())
integer_list = list(map(int, input().split()))
print(integer_list)
a = tuple(integer_list)
print(a)
print(hash(a))
| [
"noreply@github.com"
] | noreply@github.com |
5b730b0e8f6cecaf216b0cf318e622fb159d42ce | a4b81839fe6d7726eb6c9d2c9fd0d9a70cf3ef3f | /day11_20191119/exercise00002.py | d84024cddff13dcadc302524c26401f03a257578 | [] | no_license | Python87-com/PythonExercise | 3f84e0f194254d0f0a8b106348b214ccdeebf842 | 9bef64c6d3b143236bf06131e5f7a5aabcf6980b | refs/heads/master | 2021-01-31T15:56:27.743718 | 2020-01-02T12:10:43 | 2020-01-02T12:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | """
4. 请用面向对象思想,描述以下场景:
玩家(攻击力)攻击敌人(血量),敌人受伤(掉血),还可能死亡(掉装备,加分)。
敌人(攻击力)攻击玩家,玩家(血量)受伤(掉血/碎屏),还可能死亡(游戏结束)。
""" | [
"10293665@qq.com"
] | 10293665@qq.com |
97b61b984b05740f9ba96560cbecd106998ce823 | d4ca0866381e577e3d36a22735d02eb4bf817b10 | /roman_to_integer.py | 17099c8e9ce1347818f6937355f5dd6828331434 | [] | no_license | haiwenzhu/leetcode | e842936b69bbaf5695de1f98c8c17507819435dd | bc068c2b00793ae72439efe5bdecaeed029e9f65 | refs/heads/master | 2021-01-15T13:11:22.672952 | 2015-07-25T04:45:36 | 2015-07-25T04:45:36 | 36,838,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | class Solution:
"""
@see https://oj.leetcode.com/problems/roman-to-integer/
"""
# @return an integer
def romanToInt(self, s):
chart = dict(I=1, V=5, X=10, L=50, C=100, D=500, M=1000)
if s == "":
return 0
n = chart[s[-1]]
for i in range(2, len(s... | [
"bugwhen@gmail.com"
] | bugwhen@gmail.com |
f065e5db2df6229711711e6f340a64666bc7c8e4 | 010ebdac141c021f006f3427892c00eedc35fe39 | /python_c_extension/setup.py | 6f51da1efac517254a8ec396b4498f9ac76845ee | [] | no_license | minghui-liu/snippets | f69c708648bbabadb65dccf08f0233d37e1927d7 | 608f221bf9621bf444daa243995740ffc3791a23 | refs/heads/master | 2021-01-19T18:01:23.223385 | 2017-09-26T05:33:31 | 2017-09-26T05:33:31 | 101,106,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from distutils.core import setup, Extension
setup(name='hello', version='1.0', ext_modules=[Extension('hello', ['hello.c'])])
| [
"minghui.kevin.liu@gmail.com"
] | minghui.kevin.liu@gmail.com |
985f4b9339fd3fbabb6d85008b9621f4406ff0f7 | 9ae8189a33157b35be58e31365e1a450c54e6b05 | /Web scraping.py | c0b17b193657b516797f09acb77d03be4470e16b | [] | no_license | kdcornejoc/SudokuSolver | d396256cbc81cb2e5c86099a65a27f9a405ac063 | 3a6fbe76109cf3b970e5109f3eabc251654c538a | refs/heads/master | 2022-05-20T13:03:06.724486 | 2022-04-29T00:13:53 | 2022-04-29T00:13:53 | 253,130,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | # web scraping
import requests
from bs4 import BeautifulSoup
import re
| [
"kenyi1025@gmail.com"
] | kenyi1025@gmail.com |
30bded28cc0dcda07789d41d085dfdb3d9e6e17c | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GLES2/NV/shader_atomic_fp16_vector.py | 99ece98dcff7af485333887d940e48ccac1ff4b7 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | '''OpenGL extension NV.shader_atomic_fp16_vector
This module customises the behaviour of the
OpenGL.raw.GLES2.NV.shader_atomic_fp16_vector to provide a more
Python-friendly API
Overview (from the spec)
This extension provides GLSL built-in functions and assembly opcodes
allowing shaders to perform a limited set... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
009bcc09b6b0e01969e419f841aa942b60421c69 | ce36737f134db1726bb189c17a729b9d3abba4e4 | /assets/src/ba_data/python/bastd/ui/settings/gamepadselect.py | 4c1b4fa15cb76c093ad443c0653ec961e3d5fead | [
"MIT"
] | permissive | Indev450/ballistica | 0559940971c69b7596442abfc6ac2818a4987064 | 27420d3f64c24bf3c9b4b047177a4769977659b1 | refs/heads/master | 2023-07-20T16:01:04.586170 | 2020-04-13T09:32:36 | 2020-04-13T09:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,740 | py | # Copyright (c) 2011-2020 Eric Froemling
#
# 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,... | [
"ericfroemling@gmail.com"
] | ericfroemling@gmail.com |
26cf882af31bdb19c0da82554001768fd326df17 | 7005d7b9de51675fb5e16c0cb1caeb1257ff06b8 | /profiles_api/serializers.py | 6e081987ef2b3692929feb0f5c27b353f3b5c386 | [
"MIT"
] | permissive | ArsalMalik/profiles-rest-api | cfad7e0ac0f3332ddd2fcf882db765b9cd1140aa | 67b1e8e677e4659a5bf21d8f1aeaf4310e449b94 | refs/heads/master | 2022-05-15T20:30:46.410304 | 2019-09-16T18:39:33 | 2019-09-16T18:39:33 | 208,128,433 | 0 | 0 | MIT | 2022-04-22T22:18:22 | 2019-09-12T19:18:00 | Python | UTF-8 | Python | false | false | 1,217 | py | from rest_framework import serializers
from profiles_api import models
class HelloSerializer(serializers.Serializer):
"""Serializes a name field for testing our APIView"""
name = serializers.CharField(max_length=10)
class UserProfileSerializer(serializers.ModelSerializer):
"""serializes a user profile... | [
"arsalanmalick14@gmail.com"
] | arsalanmalick14@gmail.com |
f77157a5d1217c07c7b4cabb0ec148c1fbd6ff0e | c181e23d574cf3e107d8c7c27203c13c1a2993e5 | /Code/cause_num.py | be4ed0d9ed2ddd0d1d21adeee75058a1eaf573e3 | [] | no_license | GaoQinghong/SentimentCause | 4aed5dc18e55f67a1ce2d4bc506af437430035d8 | 0851f3ea0d33703f987a6571dcbee118e38c61d6 | refs/heads/master | 2020-03-18T19:12:23.867035 | 2018-05-28T13:19:34 | 2018-05-28T13:19:34 | 135,140,997 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,495 | py | from collections import defaultdict
import xml.dom.minidom
import codecs
from collections import Counter
import jieba
# 将XML格式文件转化为.txt格式文件
def read_xml(filereadname,filewritename):
file_write = codecs.open(filewritename, 'w', 'utf-8')
# 使用minidom解析器打开 XML 文档
DOMTree = xml.dom.minidom.parse(filereadname)
... | [
"noreply@github.com"
] | noreply@github.com |
1a4dbf5f1ac9cc33c0301f9ba2db8c21e1972c06 | 781029dcc468a7d1467a17727870d526da1df985 | /algorithm/2806_N-queens/sol.py | d0219b8816f66160b7d8c92f7d7a7d00ec2b6996 | [] | no_license | Huijiny/TIL | 5f0edec5ad187029e04ed2d69e85ae4d278e048d | d1a974b3cacfb45b2718f87d5c262a23986c6574 | refs/heads/master | 2023-09-03T15:28:11.744287 | 2021-10-21T12:38:10 | 2021-10-21T12:38:10 | 335,220,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import sys
sys.stdin = open('sample_input (3).txt')
def is_exist_diagnal(cur_pos):
for queen in queens:
if abs(cur_pos[0] - queen[0]) == abs(cur_pos[1] - queen[1]):
return True
return False
def n_queens(row):
global visited, count
if row == N:
count += 1
else:
... | [
"jiin20803@gmail.com"
] | jiin20803@gmail.com |
217c905075d2d97323103e00ecd818c1e2b37ceb | 8575b9bae18d1e63560026366ee8a050721a6599 | /sillas.py | 7beab9b712195b886152b44ceb7e82972f733849 | [] | no_license | jorbeck2000/Python-projects | e4c13bed7c350f3a585eba6e60fac40af65b5f14 | 79eb0ff23ee969324919f56924d4dd298f59d025 | refs/heads/main | 2022-12-24T08:50:13.610878 | 2020-10-06T15:53:00 | 2020-10-06T15:53:00 | 301,497,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py |
def precio_s_descuento(ts,cant):
if ts=="B":
precio=700*cant
elif ts=="E":
precio=900*cant
else:
precio=1500*cant
return precio
def precio_c_descuento(tc,precio):
if tc=="F":
descuento=precio*0.20
else:
if precio>=10000 and precio<20000:
descuento=precio*0.10
elif precio>=20000:
descuento=pre... | [
"noreply@github.com"
] | noreply@github.com |
8f882440d0c581df4ef2b24cae383a2f81c48361 | d0b45a9d8cc0a4febeabcddeb827191471c5f4be | /pybo/views.py | 8c2c4f93b2b5e304462c7757d1635564c161c15d | [] | no_license | BenjaminCho90/mysite | f0bad852b8bd0aa475ee6bca3a7a14838c130582 | ab98def9fe194dac13542cdaff516d282d925bd2 | refs/heads/master | 2022-09-26T08:00:00.374517 | 2020-06-04T08:02:55 | 2020-06-04T08:02:55 | 269,022,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | from django.shortcuts import render
from .models import Customer,Product,Order
# Create your views here.
def index(request):
# pybo 목록 출력
customer_list = Customer.objects.order_by('create_date')
context = {'customer_list':customer_list}
return render(request, 'pybo/customer_list.html', context)
def... | [
"yuseong.cho@doosan.com"
] | yuseong.cho@doosan.com |
b791bf3e18ab0fe13669247095282234157c36ee | 60b3acce41fc4604a29f79b0bc9cde363e5e35c9 | /ped_scan/ped_table/plot_header.py | e432ad1d61959a7fa99c596b93e054d2fd2be944 | [] | no_license | jbane11/Tri_offline | bff487e64cc1ae0af1ec9af6e08e45647ade0247 | a5575aa830bbc1687420a98ed5471f4b5251a962 | refs/heads/master | 2021-05-01T22:05:48.778032 | 2020-04-02T14:32:55 | 2020-04-02T14:32:55 | 120,986,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | s0L1=[]
s0L1s=[]
s0R1=[]
s0R1s=[]
s2L0=[]
s2L1=[]
s2L2=[]
s2L3=[]
s2L4=[]
s2L5=[]
s2L6=[]
s2L7=[]
s2L8=[]
s2L9=[]
s2L10=[]
s2L11=[]
s2L12=[]
s2L13=[]
s2L14=[]
s2L15=[]
s2R0=[]
s2R1=[]
s2R2=[]
s2R3=[]
s2R4=[]
s2R5=[]
s2R6=[]
s2R7=[]
s2R8=[]
s2R9=[]
s2R10=[]
s2R11=[]
s2R12=[]
s2R13=[]
s2R14=[]
s2R15=[]
s2L0s=[]
s2L1s=[]... | [
"jbane11@github.com"
] | jbane11@github.com |
e2d6533a67d8bebf792f226e1e5a1c797c7a7032 | 39d7ab29356ea5363c783d518b3c92f52c2ef8c2 | /crawler/crawlers_BACKUP/sinarollcustom.py | 9c3170f6636f92bf98ab84af04baecb8a1e39df5 | [] | no_license | wdcpop/Web-Crawler | 7daad778bbda9e5852248971845e3b448629175e | 725037d17dfd2535e213df3cb7aafda523d39c03 | refs/heads/master | 2018-07-31T15:12:31.605633 | 2018-06-02T16:03:36 | 2018-06-02T16:03:36 | 121,194,531 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from .abstracts.crawler_abstract import CrawlerAbstract
import re
from urlparse import urljoin
from urlparse import urlsplit
from arrow import Arrow
import time
class SINAROLLCUSTOM(CrawlerAbstract):
title = u'新浪财经 - 滚动自选'
start_urls = [
'http://roll.ne... | [
"wdcpop@gmail.com"
] | wdcpop@gmail.com |
c4d74c2b8f344ee2be3556aa368f15b22c62cd6e | cb1d06e91347a23438057d9f40b5a74cad595766 | /autonetkit/anm/__init__.py | 4ee754a1a2282b1c46bccc42aaac4a0d566210a7 | [] | permissive | plucena24/autonetkit | 9f94d3fba6bfad54793a7de58ef17439c2c71f0b | f7e8c03ee685d5b89f9028cb556017e730e0446c | refs/heads/master | 2023-08-16T18:03:54.593010 | 2014-11-07T13:43:39 | 2014-11-07T13:43:39 | 27,204,033 | 0 | 0 | BSD-3-Clause | 2023-08-08T18:36:36 | 2014-11-27T01:36:38 | Python | UTF-8 | Python | false | false | 273 | py | from autonetkit.anm.network_model import NetworkModel as NetworkModel
from autonetkit.anm.graph import NmGraph as NmGraph
from autonetkit.anm.node import NmNode as NmNode
from autonetkit.anm.edge import NmEdge as NmEdge
from autonetkit.anm.interface import NmPort as NmPort | [
"simon.knight@gmail.com"
] | simon.knight@gmail.com |
dca40e501aee6ee04a8e99f0970fdf25b0fa9ec2 | b67a57285dfaa9f685425db157df1c1cf1029522 | /HW6/skeleton6_2021a.py | 58bbc662b87f4d041efe62c422298adba3e99ad5 | [] | no_license | AdirB100/CS1001.py-HW | dca403065a9abd6fe0f9aafd4542f72c13f7b04e | 7ebcaeacd7482d1b6fffb10eb34d259c6da1ba0b | refs/heads/main | 2023-02-25T19:41:43.005072 | 2021-01-26T20:01:33 | 2021-01-26T20:01:33 | 311,023,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,426 | py | # Skeleton file for HW6 - Winter 2021 - extended intro to CS
# Add your implementation to this file
# You may add other utility functions to this file,
# but you may NOT change the signature of the existing ones.
# Change the name of the file to include your ID number (hw6_ID.py).
# Enter all IDs of participating s... | [
"adirbarda100@gmail.com"
] | adirbarda100@gmail.com |
8be656429e0ccfbc6d5b995c311d4436a9d86d31 | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level03.표 편집/sangmandu.py | 309e210a1f26779c12c4f4c6978734fa138431d5 | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 3,870 | py | '''
https://programmers.co.kr/learn/courses/30/lessons/81303
표 편집
[풀이]
0. 연결리스트 문제
=> 보통 이런문제가 나오면 클래스로 짜는 사람이 있다. 참 대단..
1. 연결리스트를 딕셔너리로 구현한다.
=> i번째 노드는 원소가 2개인 list 타입의 값을 가진다.
=> [0] : left = i-1번째 노드
=> [1] : right = i+1번째 노드
=> 0번 노드와 n-1번 노드는 양쪽 끝에 None을 가지고 있다.
2. 명령어가 C, Z일때를 조건으로 하고 그 외에는 split()을 한다.
2-1. C일... | [
"45033215+sangmandu@users.noreply.github.com"
] | 45033215+sangmandu@users.noreply.github.com |
55ca1da6e66aa57a980bd0b89bdf584a5d6ccefc | 5703d52ce1125c10b812e8cd57e3b139e964cd88 | /app/src/PluginManager.py | cc0ead12b53002c9153b7fe19ca3a63cb8318582 | [] | no_license | Daimhim/Daimhim | 53cf16efd299e43c975b364376d437499e02c195 | 286173ce624b1aae06de190da9556b380b9aff4b | refs/heads/master | 2021-11-08T20:53:22.841236 | 2021-11-03T14:28:22 | 2021-11-03T14:28:22 | 118,449,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,791 | py | from app.src.model.BaseResponse import BaseResponse as BR
from django.http import HttpResponse
import app.src.model.ModelTools as jsonTool
from app.src.model.models import ApplicationModel
from app.src.model.models import PluginModel
import uuid
def register_plugin(request):
BaseResponse = BR()
# appId
# ... | [
"daimhim@163.com"
] | daimhim@163.com |
2370bfe569782dc9bb6f537eb8495692b3be2571 | 51d5bd1f792f3a0fe1285c3ccdeefb58077890df | /anees/migrations/0027_auto_20200926_1337.py | 33ea2f35e72c08589a1f98ef7070dd993ad8150f | [
"MIT"
] | permissive | ashish2020kashyap/cessini | 667c2d4ab64f34121255a43c327b8110fa499d0b | 9713fd76d2e31a95266ec69da2abc98424a46e52 | refs/heads/master | 2022-12-16T13:30:21.093504 | 2020-09-29T06:31:12 | 2020-09-29T06:31:12 | 299,510,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | # Generated by Django 3.1.1 on 2020-09-26 13:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('anees', '0026_auto_20200926_1336'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='customer_ca... | [
"ashish160kumar@gmail.com"
] | ashish160kumar@gmail.com |
0a1b40f9c2382b1f57e2db3116afbfc749929daf | 1b2fc9666edbbdc65387c854831097e0be8b686c | /BOJ(Baekjoon Online Judge)/Mathematics/2004_조합 0의 개수(counting trailing zero in combination).py | cfc777b9dac881b237d3a84d4de3aec3d7992dda | [] | no_license | seongbeenkim/Algorithm-python | 6593878cff8755800f3e8bcdaabdb41625324f38 | 24fe365a29c61c2405a06345f9105ed200a76bd5 | refs/heads/master | 2023-09-04T11:05:08.318769 | 2021-02-18T14:58:20 | 2021-02-18T14:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | #https://www.acmicpc.net/problem/2004
import sys
count_two = 0
count_five = 0
n, m = list(map(int,sys.stdin.readline().split()))
i = 2
while n >= i:
count_two += n // i
i *= 2
i = 2
while (n-m) >= i:
count_two -= (n-m) // i
i *= 2
i = 2
while m >= i:
count_two -= m // i
i *= 2
i = 5
while n... | [
"seongbeen93@naver.com"
] | seongbeen93@naver.com |
8f520fc0f87d11d90a665e53936a3a6dc73f39af | 9366e130a2e0ee2bc1c8357d4b159cdde0f31786 | /SQLServerControlInterface/globalStyle.py | 18e0a3a48d2258bf33db27c4d2b41228bdaac968 | [
"MIT"
] | permissive | GuilhermeAnselmi/SQLServerControlInterface | a9df1dd6f0d4b4a2cca77814fd407e50660176b2 | 36557a602cfe0b01673068e594f1ae78747afac3 | refs/heads/main | 2023-06-09T17:43:08.693083 | 2021-06-29T02:35:29 | 2021-06-29T02:35:29 | 379,408,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | import json
fontDefault = "arial 12"
fontQuery = "arial 15"
black = "black"
grey11 = "#1C1C1C"
grey21 = "#363636"
grey31 = "#4F4F4F"
silver = "#C0C0C0"
lightgrey = "#D3D3D3"
gainsboro = "#DCDCDC"
white = "white"
class Theme:
def __init__(self):
#bg
self.background = None
self.menu = Non... | [
"noreply@github.com"
] | noreply@github.com |
4d890b42f6775cd93e30bfe2df196f13c7d3bdcc | d93212b76edaec05d9dfbdf242be8608730ffb16 | /stopClipper.py | 4b9559fde2e71a995e4cdb3d08012dd3e144d376 | [] | no_license | kiranpandit/clipperTests | 3599feed19ae821cf4adf2bb4fc6a4bcd023d8bb | 4aafdc5b8102aee280f1e12ac35c9fb3e3b4a21e | refs/heads/master | 2020-03-13T02:32:05.339340 | 2018-05-04T20:41:16 | 2018-05-04T20:41:16 | 130,926,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # A little script to stop clipper connections (for when you forget/it returns an error)
from clipper_admin import ClipperConnection, DockerContainerManager
clipper_conn = ClipperConnection(DockerContainerManager())
clipper_conn.connect()
clipper_conn.stop_all() | [
"kpandit@andrew.cmu.edu"
] | kpandit@andrew.cmu.edu |
223f7f640f5e1e9ddb50d18aa4ba824b1492677a | fae16b83fcf1f12c77e0c374134a34183da8de88 | /word contain vowels.py | fb77f8df5c6bc4a7b2476c89e3135162579349a4 | [] | no_license | dev9033/head-first-python- | 5d9b00111795946474bd553dc1990bd3c373dd9a | db527fac41e58e906b4c0838744914c9ce61093f | refs/heads/main | 2023-05-27T07:47:30.833095 | 2021-06-03T16:47:48 | 2021-06-03T16:47:48 | 317,874,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # checking if word contain vowels and printing it once
vowels = ['a', 'e', 'i', 'o', 'u']
word = input('give a word to check for vowel: ')
found_vowels = []
for letter in word:
if letter in vowels:
if letter not in found_vowels:
found_vowels.append(letter)
print(letter)
if len(fo... | [
"devm9033@gmail.com"
] | devm9033@gmail.com |
b34632998c59e1b51d10bcb2a4427f7ce26b44ab | 0123a097cb586754e6aaaa1505d87cdc8c52aa80 | /Pygorithm/sorting/counting_sort.py | da4baf4356cc00cbe41cdf755681fbd6f998ade1 | [] | no_license | tremblingHands/python | 2d955d2dbb99347d547f12f1bfb1380adfe4a346 | feb785e928665aa23061e75f34364aa043103086 | refs/heads/master | 2021-09-12T15:27:08.563929 | 2018-04-18T02:03:16 | 2018-04-18T02:03:16 | 124,476,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/env python
#counting sort only for positive integer sorting
def sort(_list):
max_n = _list[0]
for n in _list:
if max_n < n:
max_n = n
counting = [0] * (max_n + 1)
for n in _list:
counting[n] += 1
ind = 0
for i in range(max_n + 1):
for j in ran... | [
"605225331@qq.com"
] | 605225331@qq.com |
35c518cd183c73d80d6e2002220f7b2002fc25a6 | e261046e6c0e164223fa875f6c96147117530fa2 | /PythonProjects/Lion/venv/Scripts/pip3.8-script.py | 618982afc04f7c523c7b3c6666b14426192f2046 | [] | no_license | bokhaus/ProgrammingPortfolio | 0b2eb5bb479ec08e92b71541560b8895c5a21dc7 | f51ffb542fd16f31896bbb3616a0a7c47e8173f1 | refs/heads/master | 2023-06-07T05:13:07.955369 | 2020-08-23T17:51:38 | 2020-08-23T17:51:38 | 258,265,705 | 0 | 0 | null | 2023-05-31T20:15:58 | 2020-04-23T16:32:34 | Python | UTF-8 | Python | false | false | 413 | py | #!C:\Users\User\PycharmProjects\Lion\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"brian.bokusmc@gmail.com"
] | brian.bokusmc@gmail.com |
08e9fe01f6721f0138e817add58d637f0bbcdf7c | f4266c935f53e40be20feafb07d72b60463a58d0 | /exemple_test.py | 7a99e2dddd31418bdd6bccfccacb8f47faed0a04 | [] | no_license | Rpygamer/coursBNP06112019 | 826d814e055487df4602f8662ea3cc159f2535c8 | f5718f927dce870092a79704cb3f3c9ac74890bc | refs/heads/master | 2022-03-05T20:08:29.219275 | 2019-11-08T15:27:30 | 2019-11-08T15:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | def addition(a, b):
"""
:Example:
>>> addition(2,2)
4
>>> addition(0,2)
2
"""
return a + b
if __name__ == "__main__":
import doctest
doctest.testmod()
| [
"mickael@ermes.ai"
] | mickael@ermes.ai |
052a7e61fab765dc729b0f586f52147f25b85148 | 0c7c657e929aaf1fd76b5d567525c0547bd563ab | /video_processing_engine/core/capture/scoobydoo.py | a42808071d2cdb1a988f772151a027bcebe215b7 | [] | no_license | Inpointtech/video_processing_engine | 91dd5de5b4f540d58c6b4114f1dfc6e4f5fbc204 | e73799115c64b45c042edd475df4e281f4691ea8 | refs/heads/master | 2021-01-02T04:54:30.281910 | 2020-06-08T14:50:51 | 2020-06-08T14:50:51 | 239,496,470 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,019 | py | """A subservice for storing live video over camera."""
import logging
import os
import subprocess
import time
from datetime import datetime, timedelta, timezone
from typing import Optional, Union
from video_processing_engine.core.process.concate import concate_videos
from video_processing_engine.core.proces... | [
"akshay@inpointtech.com"
] | akshay@inpointtech.com |
82c96ca7e81c5b6e65ea717c491f25d8f1659f7d | 52c6597877b7a9bbd2b923d92444b03823865801 | /0x04-python-more_data_structures/8-simple_delete.py | f5ae8a29fc85f6b2b439f461b4b64e2c1b27a4c9 | [] | no_license | Nicolas606/holbertonschool-higher_level_programming | 007eaf4f6e186ae3774997c0105629b14493894d | d83ceee02494bf12a836a1ba9d62adfed68e1798 | refs/heads/main | 2023-08-13T21:08:02.715604 | 2021-09-27T04:00:19 | 2021-09-27T04:00:19 | 361,790,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | #!/usr/bin/python3
def simple_delete(a_dictionary, key=""):
if key in a_dictionary:
del(a_dictionary[key])
return a_dictionary
return a_dictionary
| [
"castillonicolas606@gmail.com"
] | castillonicolas606@gmail.com |
3aeaed1b9db555d98302c3e572db9b0f7468f797 | cacfa10a2bd2ec1462ea96150364a11089463169 | /main.py | 4cbc22da70f3dbfcf3544fcfefe4a27c72059dfd | [] | no_license | Jessicavpb/flappybirdgit | 84c9f51e4d6f6343ae9114752bc5c6f7c868d632 | 9b1079e83fac44a53c29e590e1431806bcb75b39 | refs/heads/master | 2023-05-24T14:37:53.072382 | 2021-06-17T16:39:55 | 2021-06-17T16:39:55 | 377,897,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | import pygame
from random import randint
from settings import Settings
from bird import Bird
from pipe import Pipe
from platform import Platform
class Arena_Game:
################################
#ARENA / SCREEN
################################
def __init__(self):
pygame.init()
self.game_... | [
"jvpb29@gmail.com"
] | jvpb29@gmail.com |
52926e68584223203f587ff8399b9c2d5582460c | 4ca80fc5e07244bec8b5bd25b87f18761ca264f5 | /lession_8/launch.py | 65dff150574646d6d8af6abb90dd45a18aa202ec | [] | no_license | Reanimator/Client-Server-Apps-Python | 0baf12b611b8a0a784b2520b2b17b72b440b4fc3 | f3cf1c0ed596e95f617c256eb4c84bed97a2720c | refs/heads/master | 2022-11-29T01:33:01.402718 | 2020-08-19T15:20:29 | 2020-08-19T15:20:29 | 279,659,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import subprocess
WINDOW = []
while True:
ACT = input('s - запуск, q - выход, x - закрыть всё')
if ACT == 'q':
break
elif ACT == 's':
QUAN_CLIENT = int(input('Введите колическтво клиентов'))
WINDOW.append(subprocess.Popen('python server.py', creationflags=subprocess.CREATE_NEW_CONSO... | [
"ageev.mikhail.23@gmail.com"
] | ageev.mikhail.23@gmail.com |
8ffa92ec175080497936e1fb7c898f310a46698e | e5d75d16df3bf2663f9a2baa7646f656f83a1260 | /table_of_contents.py | 1030bd45626332514997960cc167d34d99df9f97 | [] | no_license | wkordalski/cantionale | 50363708d028e059fe55282f6f133f77d2f48513 | 022ef26c19ee257d2b0af40de5dd0836e5537219 | refs/heads/master | 2021-05-31T23:37:29.615869 | 2015-10-18T11:53:59 | 2015-10-18T11:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py |
class TableOfContents:
def __init__(self, songbook, params):
self.title = ''
self.filter = lambda x : True
if 'title' in params: self.title = params['title']
if 'filter' in params: self.filter = params['filter']
def draw(self, canvas, songbook):
sb = songbook
st = sb.style
c = canvas
... | [
"wojtek.kordalski@gmail.com"
] | wojtek.kordalski@gmail.com |
48edd710f66267421aa723b5cc3db6cca2ad6f5e | 5d82f71e1a123a1668d57610279c729e0da1f75d | /SMORA/scripts/retrieve_plot_PID_position_test_data.py | ce160c8c402d5ae7dc82225e246faa044e453890 | [
"MIT"
] | permissive | jdtechio/smora-code | 7e43d967619b2284d47980b098f9ee30560b2f08 | 5e8ab18878bcb65aa945931c018292cd677f981c | refs/heads/master | 2020-06-14T08:14:48.608702 | 2016-12-12T20:25:31 | 2016-12-12T20:25:31 | 75,209,681 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | #!/usr/bin/env python
import struct
import serial
from time import sleep
import math
from pprint import pprint
import os
os.environ["PATH"] += os.pathsep + "/Applications/scilab-5.5.2.app/Contents/MacOS/bin"
from scilab2py import Scilab2Py
sci = Scilab2Py()
#SMORA = 'L'
SMORA = 'XL'
def set_PID_parameters(Kp, Ki, Kd,... | [
"joao@jdtech.io"
] | joao@jdtech.io |
a7c41f0d7aa86a130c07ba3c9c72352dfb4f6bc3 | b5b915d136966fb2ca2449f2f06c28198fbbb2b9 | /v3/Libraries/sys/Arguments.py | f2a32b681b75d18ed362ce8faeb58a224bb046b5 | [
"MIT"
] | permissive | TheShellLand/pies | bc89d7f7000b878d2177490887ae959dd7f07ad1 | a35e9b32bec3a3ff03d6f0f4c2c2cc891180e516 | refs/heads/master | 2021-06-06T03:57:30.940740 | 2018-10-19T09:42:05 | 2018-10-19T09:42:05 | 39,910,162 | 0 | 0 | MIT | 2021-06-01T22:50:20 | 2015-07-29T18:42:32 | Python | UTF-8 | Python | false | false | 309 | py | #!/usr/bin/python
# demo.py - CMD Args Demo By nixCraft
import sys
# Get the total number of args passed to the demo.py
total = len(sys.argv)
# Get the arguments list
cmdargs = str(sys.argv)
# Print it
print ("The total numbers of args passed to the script: %d " % total)
print ("Args list: %s " % cmdargs) | [
"naisanza@gmail.com"
] | naisanza@gmail.com |
52e5b6853dc97a6beb2f483898e29c76c462f3e8 | 8fd28b248511f42ad8732ca1e574aada33908376 | /tests/test_models/test_recognizers.py | 8ce86d6ec3689d2e8fbc75634871f24de57ddb72 | [
"Apache-2.0"
] | permissive | vt-vl-lab/video-data-aug | 28bd175535cab1444055502389c8f5d7d75e4bd2 | 01667cdbd1b952f2510af3422beeeb76e0d9e15a | refs/heads/main | 2023-09-01T02:36:40.034893 | 2021-07-21T01:31:42 | 2021-07-21T01:31:42 | 352,920,339 | 29 | 6 | Apache-2.0 | 2021-07-21T01:29:36 | 2021-03-30T08:06:54 | Jupyter Notebook | UTF-8 | Python | false | false | 10,211 | py | import os.path as osp
import mmcv
import numpy as np
import pytest
import torch
import torch.nn.functional as F
from mmaction.models import BaseRecognizer, build_recognizer
class ExampleRecognizer(BaseRecognizer):
def __init__(self, train_cfg, test_cfg):
super(BaseRecognizer, self).__init__()
#... | [
"zouyuliang123@gmail.com"
] | zouyuliang123@gmail.com |
7b1eb99a5365b143075c1cb52706163e83e63362 | 794e14945c0521b4eab03e8b9a3f93b8fa14e021 | /src/compas_ghpython/artists/lineartist.py | e4bc4ee098824c867f75517ab75f1e85f0d1a226 | [
"MIT"
] | permissive | KEERTHANAUDAY/compas | 5e8ada865bc87ee48ba77b3f6fd03661a9b9c17d | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | refs/heads/master | 2021-07-11T16:26:19.452926 | 2020-09-10T14:27:11 | 2020-09-10T14:27:11 | 294,453,684 | 0 | 0 | MIT | 2020-09-10T15:47:31 | 2020-09-10T15:47:30 | null | UTF-8 | Python | false | false | 1,054 | py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import compas_ghpython
from compas_ghpython.artists._primitiveartist import PrimitiveArtist
__all__ = ['LineArtist']
class LineArtist(PrimitiveArtist):
"""Artist for drawing lines.
Parameters
-... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
f0078d8d238fb95be3367e8c9a6724e692d2f892 | d806dd4a6791382813d2136283a602207fb4b43c | /migrations/versions/414eda9f70d0_.py | 2eb67987fdcb5ce4328978a6b6c70f45820f1622 | [] | no_license | MarsStirner/sirius | 5bbf2a03dafb7248db481e13aff63ff989fabbc2 | 8839460726cca080ca8549bacd3a498e519c8f96 | refs/heads/master | 2021-03-24T12:09:14.673193 | 2017-06-06T16:28:53 | 2017-06-06T16:28:53 | 96,042,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | """empty message
Revision ID: 414eda9f70d0
Revises: f088f9315be0
Create Date: 2016-10-20 20:27:23.521000
"""
# revision identifiers, used by Alembic.
revision = '414eda9f70d0'
down_revision = 'f088f9315be0'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
... | [
"paschenko@bars-open.ru"
] | paschenko@bars-open.ru |
271c565e791c32dc31f5fab2f4062338816c506b | 3c5a2b7b7f94949db8850f3c7999cb69055045f1 | /run.py | 4ac7e846a78726b4fcc27c468ea02c7f7b718d0c | [] | no_license | danofsteel32/catnamedfinn | 0af7a067fbc8a9e9f366218fc33721bd1a22ac64 | 138507edadb0eccefc9cdc07771d3f65619dc2d9 | refs/heads/master | 2020-03-31T13:07:14.341302 | 2018-10-09T12:01:38 | 2018-10-09T12:01:38 | 152,242,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from catapp import app
if __name__ == '__main__':
app.run() | [
"daniel.batman.davis@gmail.com"
] | daniel.batman.davis@gmail.com |
4c1f37f5b8e1490fc7988147a55b16c468b9aeb3 | 853303818a5e353bee72486d207978ff6eedb800 | /plugins/correctspillovermeasurement.py | 92afd79ae3058fe675d8408936c71ab4ce9afd5e | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | SomiAfiuni/CPplugins | f8d9d16613aaa630d2c45f50b0f807444340ff34 | 04f5e07b89fdf42a48bf0ecf0d938d67437bcc7d | refs/heads/master | 2023-04-30T13:28:56.701307 | 2021-05-20T18:18:52 | 2021-05-20T18:18:52 | 369,291,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,531 | py | '''<b>CorrectSpillover - Apply</b> applies an spillover matrix, usually created by
the R Bioconductor package CATALYST to a multichannel measurement
<hr>
This module applies a previously calculate spillover matrix,
loaded by <b>LoadSingleImage</b> to single cell measurements.
'''
import numpy as np
import re
import s... | [
"afiuni.somi@gmail.com"
] | afiuni.somi@gmail.com |
cf2a50664a2edb39d7ecf79111d7ad9593c8316f | 1409f9eb669a732835b4f5974fc8f3d2c10c7d9f | /GUI/leftside.py | e831009ce1d62d90e1536f1fd98c675cd37e2ad7 | [] | no_license | Team41Robotics/Driver-Station | 78e8eccadf2bbc266d140a1b3c65a60f31e3f736 | 57082ff9483df7eace408b0240a0a00258d04a06 | refs/heads/master | 2021-05-11T08:36:27.336756 | 2018-01-30T20:20:56 | 2018-01-30T20:20:56 | 118,057,843 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,538 | py | from tkinter import *
import math
checkles = [
"Is the battery charged?",
"Is everything working?"
]
#Create window
root = Tk()
root.title("GUI")
width = 800
height = 480
#Full screen
'''root.overrideredirect(True)
root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight()... | [
"noreply@github.com"
] | noreply@github.com |
c2fbf9b3a660a865fe1e20d672d48b4f0f4211bc | 50084bf941b61791ac4def5b8cff950e7ddfdd15 | /10 Advanced Language Techniques/Functional/04_currying.py | 9bfdbe7774d011369592c47083061947c15d5c7e | [] | no_license | gjq91459/mycourse | 6904ad191dc6128fb853eb8bdb1b200a46b2059f | 211d7707e41f50495375b4a1dfc32b62b76b317b | refs/heads/master | 2021-01-21T10:34:44.841349 | 2017-03-01T11:17:52 | 2017-03-01T11:17:52 | 83,456,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # conventional function that takes 5 args
def func(a, b, c, d, e):
return a, b, c, d, e
print func(1, 2, 3, 4, 5)
# curried version that takes 1 arg
def f(a):
def g(b):
def h(c):
def i(d):
def j(e):
return a, b, c, d, e
return j
... | [
"gjq91459@diamtr341.diamond.ac.uk"
] | gjq91459@diamtr341.diamond.ac.uk |
a1654ad777b4556a71456397e9bd3864cfbfa6cc | 7efeee10814c79a0c8da2c35c19603f7cd9e3c56 | /Task4_Python/Q11.py | 6e926bd7eeadbaa9f8a9a6bf95bd8c66a551e561 | [] | no_license | npandey15/CatenationPython_Assignments | 7cce9caa8857c3c1fb435f1edc0dd0c590243bdc | a07b88d25e2742a3044132f9c1961706f91169f4 | refs/heads/master | 2022-12-30T13:48:22.052199 | 2020-10-20T07:28:00 | 2020-10-20T07:28:00 | 298,023,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | lst = [1,2,3,4,5,6,7,8,9,10]
evenNumbers = map(lambda x: x**2, filter(lambda x: x%2==0, lst))
print (evenNumbers) | [
"noreply@github.com"
] | noreply@github.com |
10316985fa5dda296a73e18b9b21d61c8d78b009 | 1e1435cf6b89c9d60ad31c43761be8a718a1020f | /flask/Scripts/rst2html5.py | 92308bb27d6d8d01d14918fc9417ab69964e2d2d | [] | no_license | voronin601/vk_proof | 287ff7eae03b4d26c174c3f0851ffb33e13a8bef | 80ddd28fed5c3cb8d7875aca5a19ed45e8cc51ca | refs/heads/master | 2023-03-20T21:54:46.650064 | 2020-04-29T20:00:50 | 2020-04-29T20:00:50 | 260,029,871 | 0 | 0 | null | 2021-03-20T03:47:05 | 2020-04-29T19:59:28 | Python | UTF-8 | Python | false | false | 1,172 | py | #!e:\work\vk_proof\podpis\flask\scripts\python.exe
# -*- coding: utf8 -*-
# :Copyright: © 2015 Günter Milde.
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provide... | [
"vovavoronin1998@gmail.com"
] | vovavoronin1998@gmail.com |
db0b144f2158c55e1f45dd9d980ccafe16b728fd | 8cf40ff81d2ec09f00e08e0d77d4e539cc3bbec5 | /ERP/accounts/forms.py | 03eded14dba669c9826c1a8205d3fd7a81a143b2 | [] | no_license | ProbBC/projeto-erp | 15844c93ee51631011668ac3511aa35c8fa1e4af | eb78605b53b6d761bcf29126321c2ea58df22e33 | refs/heads/main | 2023-03-14T13:16:58.208835 | 2021-02-20T03:06:05 | 2021-02-20T03:06:05 | 340,548,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | from django.contrib.auth.forms import UserCreationForm
from django import forms
from .models import CustomUser as User
class CadastroForm(UserCreationForm):
"""SubClasse de UserCreationForm que já possui o atributo user_name."""
email = forms.EmailField(label='Email')
name = forms.CharField(label='Name')... | [
"gabrielcruz31@gmail.com"
] | gabrielcruz31@gmail.com |
f3186cfff28f4c8392d85dbfa2480b1399ab1391 | 0ccb3f718e43c9949d72d179089c308551cca4bb | /metrics.py | 6141585169dfd024943f050ad38b7ffbc2289db1 | [] | no_license | Uranussss/dental_kd | d9bba662cac27dae80a05ec339056543834f6a78 | 8c042c6742005f10576cf00342e8b6434519325f | refs/heads/master | 2023-07-10T18:15:01.127112 | 2021-08-20T04:26:56 | 2021-08-20T04:26:56 | 391,300,020 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | # coding=utf-8
# batch_size should be set as 1
import cv2
import imageio
import numpy as np
import matplotlib.pyplot as plt
from skimage.io import imread
from scipy.spatial.distance import directed_hausdorff
def get_iou(mask, predict):
# image_mask = cv2.imread(mask_name,0)
# if np.all(image_mask == None):
... | [
"1044147025@qq.com"
] | 1044147025@qq.com |
6bc56c2fe3068583a74b66155c373227d0901556 | 59eec31e626602f855b63105f6939106b7e3662a | /src/smach_test/src/smach.py | 8c2034ddd4bee92eaa9dcb97a3768f70681ce3ee | [] | no_license | Jeen225/LeJacques_Workspace | 32fefa3e0367dc66af29b86f2d95ce742b022463 | 35772fe77370559b335d39aea7f5a1c5a27d5a9c | refs/heads/master | 2021-04-15T03:31:40.194077 | 2017-08-05T00:45:42 | 2017-08-05T00:45:42 | 94,556,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | #!/usr/bin/env python
import roslib;# roslib.load_manifest('smach_tutorials')
import rospy
import smach
import smach_ros
# define state Foo
class Foo(smach.State):
def __init__(self):
smach.State.__init__(self, outcomes=['outcome1','outcome2'])
self.counter = 0
def execute(self, userdata):
... | [
"nejacquese@gmail.com"
] | nejacquese@gmail.com |
c0d7345c39c714f7b9b758fcf4d6a9f79baea8b5 | 2c49bd9d7f87be90275c08de0458479d2233c500 | /script.py | 179b9e5d325c7585a8e70cd181c005dd48e9fd03 | [
"MIT"
] | permissive | tz-ash/Image-Editor | 43f1d5d2a27ea15ec6b476a0e4b681dd7583227c | 71b356f7423aa8f14660f52bd6ccab92a682e05f | refs/heads/main | 2023-06-07T04:29:08.102374 | 2021-07-01T02:13:25 | 2021-07-01T02:13:25 | 376,231,131 | 0 | 0 | MIT | 2021-06-12T07:40:13 | 2021-06-12T07:40:13 | null | UTF-8 | Python | false | false | 618 | py | class script(object):
START_MSG = """ <b>Hi {}
I'm a Image Editor Bot which Supports various modes
For more click help....</b>"""
HELP_MSG = """Hai, Follow these Steps..
<code>🍄 Send me any Image to Edit..</code>
<code>🍄 Select the Corresponding mode that you need</code>
<code>🍄 Your Edited Image will ... | [
"noreply@github.com"
] | noreply@github.com |
14276e1a032eb88c354d258415830e8bcee176ff | fc8a4b41c1eef23a3d654afcac877764920fed89 | /game.py | f4be9e522e5eb796f1dd5efa4bbe1683ec42eb42 | [] | no_license | MunMyongSong0620/PythonTetris | 0a667d379d6f220085f6108b85f932104bda401e | 40c96fc8aae4d0c774da5b3a45e6be1b08f940c3 | refs/heads/master | 2022-11-18T09:12:55.462952 | 2020-07-18T11:57:47 | 2020-07-18T11:57:47 | 280,642,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,594 | py | import tkinter
import stage
import block
class Game:
"""
ゲーム全体を管理するクラスです。
このクラスを生成し、start()を呼び出すことで
ゲームを開始させることが出来ます。
"""
def __init__(self, title, width, height):
"""
ゲームの各パラメータの状態を初期化し、
ゲームを開始させる準備を整えます。
title: ゲームのタイトル
width: 画面の幅
height: 画面... | [
"mikoto.roppongi@gmail.com"
] | mikoto.roppongi@gmail.com |
9e6c62f9f0d9d3534b8ca223f8d5eb2cbce05222 | b1a6eef049c1d2e246e829ac8c4e8ceaafc06136 | /Module1/math_eq_a.py | 82056ca9e51c6e9ebb20c01005886e892c8c015c | [] | no_license | kritika2012/Python-Assignment | 37954d8d245a73a8c08cbc73ed865d767208667a | 67c4841556184037ac7073ff6dc61ead9e8ec5f6 | refs/heads/master | 2020-12-15T06:37:21.164874 | 2020-01-28T12:58:00 | 2020-01-28T12:58:00 | 235,022,577 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | x,y=2,5
##first
z=((x+3)*(x**2))/((y-4)*(y+5))
print(z)
###ans=2.0
| [
"noreply@github.com"
] | noreply@github.com |
4b1928b3bf538c022a65d320928eb7ff8d20046e | af2e433642e94ba7028e0016e3f37da486d3d36b | /accounts/migrations/0004_auto_20210322_1830.py | 3643e1cc751d8c0980fff33f9c268a080c57a375 | [] | no_license | webclinic017/sterlingsquare | d54123df5d76b979c38153e1ae28daa6d90dc6c1 | 4246be80d5dc58a704ac457d0d558a61584a55f9 | refs/heads/master | 2023-07-09T09:14:07.649799 | 2021-07-06T11:04:09 | 2021-07-06T11:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | # Generated by Django 3.0.6 on 2021-03-22 13:00
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20210322_1112'),
]
operations = [
migrations.AlterField(
model_name='gainlosschartdata',
... | [
"somykamble1001@gmail.com"
] | somykamble1001@gmail.com |
5b3f8574baf1be7e9474dd0597bc5ecfaf9b6a6d | 7a0d5dfb4bec9403e50238d790ba464202095995 | /rec_update.py | 43532cdba62eb6ecef0557642e95c546b5917247 | [] | no_license | esentemov/benchmark_hw | 9d79e3bf2526483ca8b889189e68f4a78d3a4bff | be9f4467806c993405742fe601feac3b3de347bf | refs/heads/master | 2022-08-31T07:15:48.201216 | 2020-05-20T22:17:21 | 2020-05-20T22:17:21 | 265,541,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | def func_recurs(n):
a = 2
if n == 0:
return 1
r = func_recurs(n - 1)
return a * r
# print(func_recurs(5)) | [
"egor.sentemov@gmail.com"
] | egor.sentemov@gmail.com |
2b1dcb7ae53ad30021d827f86bda552d44adfe18 | 358e0b83b50ba8f81980c255a46d97d4716ab1c9 | /data gathering and scraping.py | 6936a35cb15b1d0e6112ec596a9a006497d208aa | [] | no_license | rkrish97/Data-Gathering-and-scraping | 05625efc05fa595d759c714987caf0a9ec0422df | 69f8c3be86a9ff2c4caa938e25d91fcdc445dfb0 | refs/heads/main | 2023-02-02T11:38:43.060218 | 2020-12-17T00:54:35 | 2020-12-17T00:54:35 | 322,138,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | # -*- coding: utf-8 -*-
"""homework_1_ecs_189l.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1-ks5fPwGMLrgM6vIv-XFc_7yKKDQw2Vz
**Hoomework 1 Starter**
1. IMDB Scraping
"""
from bs4 import BeautifulSoup
import requests
import pandas as pd
impo... | [
"noreply@github.com"
] | noreply@github.com |
8d530c1681323dd34ac449f05b6c1990cd4b5fe8 | 19d98ac4b53570bb7d7367c070d11486d88dd0bf | /easy_job/tests/shell/db/test_mysql_util.py | c9d6c10828cb6fdc71e8bdfb9f026480449faf08 | [
"Unlicense"
] | permissive | tumixie/easy_job | f2f663accfa9f8555be5302d78a6795d150df1b1 | bb7cc7a1afb4b727dc10793cce7659f983a17469 | refs/heads/master | 2021-01-02T17:55:33.699300 | 2020-02-18T10:31:34 | 2020-02-18T10:31:34 | 239,731,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # coding: utf-8
import os
import unittest
import pathlib
from easy_job.tests import DATA_SET_DIR, LOG_DIR
from easy_job.shell.db import mysql_util
# from_file = '/Users/tumixie/project/ffd/ds/root/project/job/20191217_taiping_pboc_debt/0115/test_loan.txt'
# log_dir = '/Users/tumixie/project/ffd/ds/root/project/job/... | [
"15201750637@163.com"
] | 15201750637@163.com |
5064e1fe0457a982a8dfc02afba77e0a0db6ed25 | e37c17271a24952e06aff94adbc76b1934bbfc68 | /make_graph_url | ebb4962dfbf3c3963bd7869cbcbc95076a29fce0 | [
"MIT"
] | permissive | sattlerhaus/zabbix_tool | fd6a015a54324099453ac909786cc52737051bd1 | 3325edeb77293f148c9b5e206cb233a9f4cf9aca | refs/heads/master | 2021-04-27T00:25:48.443174 | 2017-12-08T01:51:52 | 2017-12-08T01:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,489 | #! /usr/bin/env python
"""
Generate URLs for graphing data items via Zabbix' chart3.php interface
Based on the Python script template at
https://github.com/BrianGallew/script_templates/blob/master/template.py
"""
import logging
# Requires Python 2.7 or better
import argparse
import ConfigParser
import os
import urlli... | [
"geek@gallew.org"
] | geek@gallew.org | |
f8a67f2185c4280cba73a37bc315041e7eaa3fc4 | dbf0bf08966b1f1b2f54f89a3189084782f3f20d | /Quantium/Project/venv/bin/easy_install-3.7 | 18b5616db8123074da6b805f5d0fea7606366b45 | [] | no_license | arnab0000/Internships | 8c42a1a71a040fa7e99e8e08220f13625a7a6e57 | 66405e8e2fd4db5375c71bc125fe97744a7bfde1 | refs/heads/master | 2022-12-08T12:17:40.180979 | 2020-08-19T10:07:28 | 2020-08-19T10:07:28 | 288,697,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | 7 | #!/Users/arnab/Internships/Quantium/Project/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"arnab@Arnabs-MacBook-Pro.local"
] | arnab@Arnabs-MacBook-Pro.local |
d714c439a54d4d1763148287e0ff5b825cc18e37 | b7b33260fccd3af36abb3faad12e4c6529a07c4c | /huaweiH5/util/get_driver.py | 2241e5ef90a5c0e476e5d5b0458d5b0b5b6beb1d | [] | no_license | Sunine-yang/test_weather | 8fcd1d9ddfe49468a4187eef16f4c0890d8fb78e | 0adf222ec615802683b30d7779f31baa655b1fe6 | refs/heads/master | 2023-03-09T23:06:45.447789 | 2021-02-19T09:39:23 | 2021-02-19T09:39:23 | 340,295,505 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | import time
from selenium import webdriver
# webdriver 驱动
class UtilWebDriver:
# 系统开辟了一块内存空间,将None存储了进去,紧接着driver指向了当前这块内存
driver = None
# 定义一个类的方法
@classmethod
# 创建type参数用于调整到底是用firefox还是chrome
def get_driver(cls, type='Chrome'):
mobileEmulation = {'deviceName': 'iPhone X'}
... | [
"zhouyang@droi.com"
] | zhouyang@droi.com |
8eba950cf57ac6cf382bf8e2b6df2f3cfc402671 | 8a9255f12af6a9191bee807da4e417ba60b31063 | /python/class code/code4.28-2/cgi/cgi-bin/student_list.py | d0b7abd8014bdc2d49a67773383a7d65ad780b7f | [] | no_license | huiba7i/Mycode | c5d314ceaa532bb134c5b721d7b87bcf7cb86ada | eac52cef73475d3fe82104c2f7e6670571237559 | refs/heads/master | 2023-01-07T12:33:50.298475 | 2019-12-23T18:00:16 | 2019-12-23T18:00:16 | 174,069,251 | 3 | 0 | null | 2022-12-11T13:56:20 | 2019-03-06T04:08:52 | JavaScript | UTF-8 | Python | false | false | 1,563 | py | import encoding
import cgi
from com.aowin.dao import StudentDao
from com.aowin.dao import UserDao
import json
import http.cookies
import os
# 先验证用户是否登录过
if "HTTP_COOKIE" in os.environ:
cookie_string = os.environ.get("HTTP_COOKIE")
cookie = http.cookies.SimpleCookie()
cookie.load(cookie_string)
username... | [
"572104563@qq.com"
] | 572104563@qq.com |
4ac15525d0f101b654ba4c57f96a149874e2890c | 74b1115e4447b66342d71475bf3273e4fcb07448 | /__init__.py | 824b0aa999d5646a595a7210f3acdcb2d6c7291b | [] | no_license | Pedrosxd25/yoda | 29138dd7a1c480c65f903ffa51283149ec7a4fed | 7a92a1387933d543312a575efd4d2909e6fc79d2 | refs/heads/master | 2020-09-14T22:18:21.309875 | 2019-11-21T22:10:36 | 2019-11-21T22:10:36 | 223,275,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from flask import Flask
app = Flask(__name__)
app.config.from_object('settings') | [
"aluno@fox.debian"
] | aluno@fox.debian |
bd036bff8f5d9e56e55bb6ba97338a10bbbf2499 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/82/usersdata/231/43199/submittedfiles/decimal2bin.py | cfc4f3a70bf6f9df805aa03d52a228511ebb8f8f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # -*- coding: utf-8 -*-
n=int(input('digite n: '))
soma=0
i=0
while n>0:
resto =n%10
soma=soma+resto*(2**i)
n=n//10
i=i+1
print(soma)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1495e72cfadacfa3d3db880050d28fe36b289300 | 40e7b064a112f5a7c79768e85fad7c118a2c2c17 | /Config/suite_setup.py | e4760ebe2f58e3fddfa33175b80e8cab160df735 | [] | no_license | sdputurn/API_testing_framework_with_python_and_robot | 3f607dcfc1eaf2d804d600830c2f2d2be51d4b98 | bfc81f22b1ad87d3b3e6092efc8fbbddb0389fb1 | refs/heads/master | 2021-09-02T00:33:16.111276 | 2017-12-19T13:55:18 | 2017-12-19T13:55:18 | 104,093,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | env_name = 'DEV' | [
"sandeep.kumar.singh@intl.verizon.com"
] | sandeep.kumar.singh@intl.verizon.com |
da9699d796bee138c7a97efe39e6c2103730fe45 | f01696019fc571f81826049c6b37ba500f127449 | /icpc/1137.py | 513eb3c85ecaa7eae6479cccd35f15bbd5815855 | [] | no_license | UNSK/aoj_answers | a82197477260f5697ff9b3d4ff668272c534feba | 5abad11a28c3a0b4c4bcc4832921f396d89c9a45 | refs/heads/master | 2021-01-21T04:27:22.420700 | 2016-04-13T13:55:33 | 2016-04-13T13:55:33 | 17,155,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | def encode(n):
ns = []
mcxi = ['m','c','x','i']
v = 1000
for i in range(4):
m = 0
while n >= v:
n -= v
m += 1
v = int(v/10)
if m > 0:
ns.append(str(m)+mcxi[i])
return ''.join(ns).replace('1','')
def decode(s):
co... | [
"werdna.b10@gmail.com"
] | werdna.b10@gmail.com |
6d528308d808526c0c8ea078cae95d1d1181fea6 | 8bda1538acfd59602e236ec40137f4581ba36b4d | /lab4.py | 8155fc92a6d9ed3ba516594dbabbfc1b9d54ab36 | [] | no_license | LizzkaBel/chm_5sem | 9a15a4d3d5cfa7dac10f13af43a1613451c22cea | b9086aaadc5d72a2d7199560b2135e5d8189121e | refs/heads/main | 2023-02-12T05:05:42.513298 | 2021-01-14T10:06:52 | 2021-01-14T10:06:52 | 329,572,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from math import sqrt
import numpy as np
def octahedral_norm(matrix):
return np.max([np.sum(np.abs(row)) for row in np.array(matrix)])
def check_condition(A):
for i in range(len(A)):
print(A[i][i] > sum([abs(A[i][j]) for j in range(len(A)) if i != j]))
if __name__ == "__main__":
k ... | [
"lbelyavsk@gmail.com"
] | lbelyavsk@gmail.com |
86302f3d3ccbd9dc833db7b584e0ac437e504a00 | 68e48a65069a1929afebe47e731d5e788ac2a024 | /Simple_environment/DQN-GPU.py | 8a3b206b8b7b9f2c1f15efb2f905a24e712ed9c8 | [] | no_license | James0618/RL_algorithms | da8f9e93cb8aa3904b14de0c06a3476cdc33e8e4 | c6f845fb68dafea670a315166628fff2243fe47e | refs/heads/master | 2020-09-30T11:26:41.769505 | 2020-02-19T07:55:39 | 2020-02-19T07:55:39 | 227,278,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,535 | py | import torch
import torch.nn as nn
import numpy as np
import random
import gym
class Network(nn.Module):
def __init__(self, n_state, n_action):
super(Network, self).__init__()
# model init
self.q_net = nn.Sequential(
nn.Linear(n_state, 64),
nn.ReLU(),
nn... | [
"cjj_xjtu@163.com"
] | cjj_xjtu@163.com |
093ee20e820d6ed4ab91046560778eebe7c0d83f | 47c05dc2e2cf2f210b4d6ecf65ff3b9ebe2771ac | /Spam Filter.py | ccd02602001498f73e47d3322046aeccb30e0ae0 | [] | no_license | CubeSquared/Hello-World | ce7ee98a2fd43eea683d67095e06cb86239f4bc2 | 27e28ac8744508debe830704d96765e7b8a95fea | refs/heads/master | 2021-01-23T07:34:51.626108 | 2015-02-04T00:08:32 | 2015-02-04T00:08:32 | 30,271,653 | 0 | 1 | null | 2017-08-16T00:40:17 | 2015-02-04T00:04:28 | Python | UTF-8 | Python | false | false | 1,261 | py | import math
import re
from os import listdir
from os.path import join
SPAM_PROB = 0.6
HAM_PROB = 1 - SPAM_PROB
def allWords(text): return re.findall('[a-z]+', text.lower())
def makeCountsDictFromDir(dirname):
filenames = listdir(dirname)
output = {}
for filename in filenames:
f = open(join(dirna... | [
"matthew.jacobs31@gmail.com"
] | matthew.jacobs31@gmail.com |
bf99716648b9d73814548ba727a7a42c4b2c5688 | c0c0548749912ff683f0fae397897f4d0886d210 | /PycharmProject/ZPYLP0914/BreakingBadApp/views.py | 5160f851db82d78f0a44d6be0ba8717d0799db05 | [] | no_license | carlosramir991/C-Sharp-Projects | e4d442459f61cdc7b9f7429efd8597b6feac58b8 | d23f01cd4f9cf8ce7e6553542712340f2bd289cc | refs/heads/main | 2023-04-22T22:03:28.647197 | 2021-05-07T00:43:54 | 2021-05-07T00:43:54 | 314,106,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.core.paginator import Paginator
from .models import Episode
from .forms import EpisodeForm
def breakingbad_home(request):
return render(request, "BreakingBadApp/BreakingBadApp_home.html", )
def breakingbad_addepisode(request):
form... | [
"carlosramir991@gmail.com"
] | carlosramir991@gmail.com |
0c3716cc43f03d45b3de28d04cd3a745cecbab8f | d2679ea20d802f34f5d8caab198d15b14d74fe28 | /wang/model/utils.py | 53c7e45ec7231e622eff5f813738b7493215a2d3 | [] | no_license | 34127chi/BARTABSA | 09a6f8d7d57c62c753d9d873c9fb181d505af260 | 891448e349911058d4ce5039515041a760cb0c8c | refs/heads/main | 2023-05-27T17:09:08.440891 | 2021-06-09T14:48:24 | 2021-06-09T14:48:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | import numpy as np
import fitlog
# from .metrics import Seq2SeqSpanMetric
from collections import defaultdict
from fastNLP import Tester
from fastNLP import SortedSampler
def get_max_len_max_len_a(data_bundle, max_len=10):
"""
当给定max_len=10的时候计算一个最佳的max_len_a
:param data_bundle:
:param max_len:
:... | [
"poemsmileyh@gmail.com"
] | poemsmileyh@gmail.com |
184dd9445b5c3549c2f082257455214329ac0652 | 215fe5e6734e9a681f2e4ea379d69f6d85b7d5eb | /group7_houtai/code/datacleaned.py | 3d5cb46546e5bfdd7a4ee4a8a2d77002de3ef1b1 | [] | no_license | zzyskywalker/group7_YiDongHuLianWangKeShe | a66300aeebe231ea3ba9a730a245e12a52475615 | 17253f0cb059da305698f024f1fee7e9b73121f8 | refs/heads/master | 2022-07-13T00:49:53.858143 | 2020-05-14T14:53:14 | 2020-05-14T14:53:14 | 263,569,548 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 26 15:09:36 2020
函数参数说明:
path:数据集的存放位置,文件夹的名字
to_path:清洗之后存放的位置
主要算法说明
孤立森林算法,进行异常点检测。
关键参数 n_estimators :森林中的树的个数
contamination :异常点的数量
@author: 33578
"""
from sklearn.ensemble import IsolationForest
import pandas as pd
import numpy as ... | [
"33539022+zzyskywalker@users.noreply.github.com"
] | 33539022+zzyskywalker@users.noreply.github.com |
b8a5d425e16fb0eea1aefc42b22361440caa91fc | 579cee201b4bcf7053fd3d21cd28455b26a7ac66 | /search/search.py | dc40f0f66e4aaab93a2178614884355ebb9d5138 | [] | no_license | Thoughty/Heurestic-with-Gym_Minigrid | 9853d1bccf0b939749b590b4ff05a4be0ba44474 | b46f16ee4a4ef3cfa4b2e64b09432a3341627d91 | refs/heads/main | 2023-02-02T02:27:25.268998 | 2020-12-19T04:21:51 | 2020-12-19T04:21:51 | 322,764,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | """Version 1.2"""
from typing import Tuple, List
from copy import deepcopy
import time
from gym_minigrid.minigrid import MiniGridEnv
import numpy as np
from search import graph as G
def heuristic(state: G.MiniGridState) -> float:
# TODO: 1
image = state.obs['image'][:, :, 0]
direction = state.obs['dir... | [
"noreply@github.com"
] | noreply@github.com |
b2091a09bdb32f2d48da7042b43ffdcb4fcba1fe | 04680c386e6beb47cbebcc75f1572e42daa5e8cd | /machines/forms/machines.py | b14ef6ef889759e317ebae2780b536131d8a83f3 | [] | no_license | luismontoyanav/ConcretosMontoya | 8bb7b0689de654b4575fa044e88305b04bfafd0b | 6a4f800d448308465849c9efc9f1e0274848ae97 | refs/heads/master | 2023-05-23T14:52:20.477463 | 2021-06-15T22:17:16 | 2021-06-15T22:17:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | """Machine forms."""
# Django
from django import forms
from django.forms import (
ModelForm,
TextInput,
EmailInput,
Textarea,
NumberInput,
Select,
FileInput,
DateTimeInput
)
from datetimewidget.widgets import DateTimeWidget
# Models
from machines.models import Machine, Rent
class MachineForm(ModelForm):
... | [
"luis.montoya@brightmachines.com"
] | luis.montoya@brightmachines.com |
b279987b716b3342db33678a46be630c5159f138 | ebfe63cb306a0822871aeff492065f0148780500 | /config/pre_production.py | e00c454ec06e647cf4fff2a0a83629f05fbce181 | [] | no_license | gauravgola96/Parking_System | 880aec3608a5df7c767fa115138d2a7eb9e0f2a0 | f541df51dbbd240e1135f334adf60bae188f5242 | refs/heads/main | 2023-01-30T01:17:35.033992 | 2020-12-15T16:09:18 | 2020-12-15T16:09:18 | 318,237,034 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from .common import Config
class PreProductionConfig(Config):
pass
| [
"gauravgola96@gmail.com"
] | gauravgola96@gmail.com |
b7d64c74771a4379ce29c27a191bccd4114e553d | 5b4c803f68e52849a1c1093aac503efc423ad132 | /UnPyc/tests/tests/all_opcodes/34.py | 1281469b68be11bf4133e93412aa03185117bd5e | [] | no_license | Prashant-Jonny/UnPyc | 9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c | 4b9d4ab96dfc53a0b4e06972443e1402e9dc034f | refs/heads/master | 2021-01-17T12:03:17.314248 | 2013-02-22T07:22:35 | 2013-02-22T07:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | a = [1, 2, 3]
del a[:2]
| [
"d.v.kornev@gmail.com"
] | d.v.kornev@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.