blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
334d33f29abda1bd5ee1f296500d953a5ea85a6a | 9b5717d1c602c07a4c16c7fd653834c15dffee2c | /setup.py | e25540f06d637ccf4ba7a0e5ba09ac2440460ca3 | [
"MIT"
] | permissive | CoAxLab/infomercial | 5ee5d4093ec0d40eaafd2c81078664f6e0998f22 | fa5d1c1e5c1351735dda2961a2a94f71cd17e270 | refs/heads/master | 2021-12-17T16:05:35.659765 | 2020-11-30T20:27:38 | 2020-11-30T20:27:38 | 153,649,059 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from setuptools import setup
setup(name='infomercial',
version='0.0.1',
description="Agents who seek information.",
url='',
author='Erik J. Peterson',
author_email='erik.exists@gmail.com',
license='MIT',
packages=['infomercial'],
scripts=[
'infomercial/exp/meta... | [
"Erik.Exists@gmail.com"
] | Erik.Exists@gmail.com |
cf082048b760e33c9e786bc8f9932ce082143d19 | 02c75658bcc69106b8d52472819bba4a860ea7c7 | /src/common/__init__.py | d4f709d659e989789c7a059820df111000039332 | [] | no_license | neilrussell6/tezos-boilerplate-ligo-pytezos | 38055271dfb6239b483a76dbcb8569b1f05fd475 | 30fefb8df3f89f8c8364c4fb4f8446aac7ba69af | refs/heads/master | 2022-12-11T12:07:03.289420 | 2020-01-12T15:16:42 | 2020-01-12T15:16:42 | 233,399,217 | 1 | 0 | null | 2022-12-08T03:27:31 | 2020-01-12T13:45:37 | Python | UTF-8 | Python | false | false | 21 | py | """Common modules"""
| [
"neilrussell6@gmail.com"
] | neilrussell6@gmail.com |
5c31dc517afe0642d9a7dc60e5f0f96ac2a0f7e4 | 9b3eba85673e909b751458e0bc00d8181f373d0d | /Utilities/levelEditor/CommonUtilities.py | b37d2e370c38ae3ed7b7cd3afb28ede87a8d1e34 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | alexiob/Be2 | b9b1f6bd8b463f8d2ba0054a68d02c60ab2c652f | ec048549b4ca2a94b35d8e6274ddda70d2149f3d | refs/heads/master | 2021-01-19T17:59:23.190723 | 2019-10-07T11:31:10 | 2019-10-07T11:31:10 | 8,890,075 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from PyQt4 import QtCore, QtGui, Qt
def strToQColor (s):
s = str (s)
if s:
sa = map (lambda x: int (x.strip ()), s.strip ().split (','))
else:
sa = [255, 255, 255]
return QtGui.QColor (sa[0], sa[1], sa[2])
def qColorToStr (c):
return "%d,%d,%d" % (c.red (), c.green (), c.blue ())
def dict2lua (d):
data = '... | [
"alessandro.iob@gmail.com"
] | alessandro.iob@gmail.com |
d2e5450b759afb2a0f146834c9e6ea9539c4931b | e9a651c8928c48c3d8fa17f356204e14bda0e1a0 | /src/pythermalcomfort/utilities.py | 49465f35ab820be4b860ce7c9a85a19a40570e5d | [
"MIT"
] | permissive | ThreePointSquare/pythermalcomfort | 234aa46ba5eac6f6e07ed40e90dcbf129bc448ab | cfb6daf3203deb67d39a1b55cd036f677533aa1c | refs/heads/master | 2023-08-09T15:24:41.316497 | 2021-09-08T04:00:25 | 2021-09-08T04:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,604 | py | import warnings
import math
from pythermalcomfort.psychrometrics import p_sat
warnings.simplefilter("always")
def transpose_sharp_altitude(sharp, altitude):
altitude_new = math.degrees(
math.asin(
math.sin(math.radians(abs(sharp - 90))) * math.cos(math.radians(altitude))
)
)
s... | [
"federicotartarini@gmail.com"
] | federicotartarini@gmail.com |
37b6124b451232c7f1d6b4aa9e3649b286ff3509 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_wormed.py | 4e52f28f4bef52a941d111e3e9c95013812986cf | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._worm import _WORM
#calss header
class _WORMED(_WORM, ):
def __init__(self,):
_WORM.__init__(self)
self.name = "WORMED"
self.specie = 'nouns'
self.basic = "worm"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
11b26922faf03f351820b5636ba14c73dcbb73bd | 22370508f11e4284b9eddc48cdccbdb751f0e813 | /biuandfriends/biuandfriends/settings.py | a00393522920785acd174e3870e16993261924c4 | [] | no_license | another-godel/biuandfriends | 4c6136a4ead878a9663b2e638cfae9dd13818e90 | 6128796cbbafe7ea48c13ba4560c25d5b7e7b120 | refs/heads/main | 2023-01-23T14:35:39.078294 | 2020-12-03T15:41:38 | 2020-12-03T15:41:38 | 318,116,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for biuandfriends project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"75416397+Hinnnnn@users.noreply.github.com"
] | 75416397+Hinnnnn@users.noreply.github.com |
275844e203a0f295ceb5d63ea59ea2fe191a39a0 | 6760a7aaf7148c48902b2705a1c9158481166237 | /test_cv/canny_detection_test.py | 611fe17ee4d5c165b94daf728d6241a5f820e9ce | [] | no_license | LockVer/opencv-singleEyeDetection-graduationDesign | 42a38cb866bf67ce7ad94ed2c91da09c38e820f7 | 0e3c3d7db57eefd25a27ec8d0645b506497c28e3 | refs/heads/master | 2023-04-17T05:19:21.270623 | 2021-05-05T12:14:15 | 2021-05-05T12:14:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | """
其中mask的掩膜操作需要np.uint8八位无符号整型
掩膜操作只分是不是0
1和255对掩膜操作没有区别
要形成彩色的canny
就只是通过掩膜把原图的颜色保存下来了
"""
import cv2 as cv
import numpy as np
def edge_demo(image):
# mask1 = np.zeros((900, 1440), dtype=np.uint8)
# mask1[:450, : 720] = 255
# cv.imshow("mask1", mask1)
blurred = cv.GaussianBlur(image,... | [
"noreply@github.com"
] | LockVer.noreply@github.com |
0b8f8cc4368270c7c91f001a5ef3587a49f97805 | d3562041939882f51bbff2505ad1792456638d28 | /personal/Nwoo/Side_Project/Gesture_Recognition/main_work/Final Work.py | 802c82a6ad744ec8e171d8c8b3dd086a6aa06a8f | [] | no_license | h0han/2021_UGRP_ | f4e69b51f3a8f4f7e0099ba3a91957b956e94a1d | ec7cbd2556869fd0f3f3c645311e107f37b2afe7 | refs/heads/master | 2023-03-01T23:20:07.708637 | 2021-02-04T02:08:48 | 2021-02-04T02:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,949 | py | import easydict
import cv2
import numpy as np
from tf_pose.networks import get_graph_path, model_wh
import os
import time
import logging
import math
import slidingwindow as sw
import tensorflow as tf
from tf_pose import common
from tf_pose.common import CocoPart
from tf_pose.tensblur.smoother import Smoother
from PIL... | [
"ktkwak5218@naver.com"
] | ktkwak5218@naver.com |
3c3a6e486dac9e822f6acc546b647a8fb43c2498 | 324b597f233f873138cff1aa51eaae17a8fa87c7 | /drift_plot.py | b14ebdf06636093a4ec42013980e16b6e3cf6cea | [] | no_license | mengxin513/fibre_stage_characterisation | b69679b7455dce4451874df3a5d00b9a4adba898 | db39f977e12ecd4a418524952902c9098fe8a841 | refs/heads/master | 2021-05-07T13:50:58.840309 | 2018-07-04T09:55:53 | 2018-07-04T09:55:53 | 109,703,898 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 649 | py |
#import libraries
import h5py
import numpy as np
import matplotlib.pyplot as plt
from plot_tools import plot_tools
print "Loading data..." #indication of the programme running
df = h5py.File("drift_41217.hdf5", "r") #reads data from file
group = df["test_data000"] #loads a data group
n = len(group) #finds the number... | [
"qm237@bath.ac.uk"
] | qm237@bath.ac.uk |
fb8a38e1a141d682a285b65b537da8abe6aa5241 | 957373475ea85d56c10176e27ae4833f3e29e663 | /warehouse_app/report/__init__.py | c2d4b2fec92a90be4b79727172ad7ba77fb028e5 | [] | no_license | Comunitea/app | 907ce5af16d2a4d0b52ee963e59131e1c8b18d14 | ec86428282b68990e0205dabbd556ca0fc74e702 | refs/heads/master | 2021-04-03T10:22:26.770464 | 2018-03-15T23:14:51 | 2018-03-15T23:14:51 | 124,746,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2004-2014 Pexego Sistemas Informáticos All Rights Reserved
# $Carlos Lombardía Rodríguez$ <carlos@comunitea.com>
#
# This program is free software: you can redistribute it and/or modify
# ... | [
"javierjcf@gmail.com"
] | javierjcf@gmail.com |
f8705e39f3508909bbcf4ebc7145cbc5ebfaa55f | 89474b15817bb144542dfa866770fa98cc7ead90 | /tests/bdd/conftest.py | 3894fd13e5f9a6557859d40ea465840de0df3513 | [] | no_license | nasioDSW/webui | dc6bd1a9188d9e7aeeca0f3c844df83950ce5298 | 497d7ce536ba3ead99c51fa0c6a04f636fabcaf6 | refs/heads/master | 2023-03-28T16:53:36.912571 | 2021-04-02T19:26:44 | 2021-04-02T19:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,398 | py | # !/usr/bin/env python3
import pytest
import os
import time
from configparser import ConfigParser
from platform import system
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.common.exceptions import NoSuchElementException
def browser():
... | [
"ericturgeon.bsd@gmail.com"
] | ericturgeon.bsd@gmail.com |
21da28b70b562a80106595216ab69a3a2debacc8 | fefa4f10774a82f7960f8e3e750e98cae434c853 | /functional_tests/tests.py | 9ec27cadaf9f1780b47bc5cd996e840befb9fd40 | [] | no_license | youjeng/superlists | 4b222d11864efc2e453fd63068ad5c7a370de193 | f970de4823e2d739ff0eab74368e9aea01d877a5 | refs/heads/main | 2023-08-21T11:21:05.340083 | 2021-09-29T11:03:04 | 2021-09-29T11:03:04 | 372,086,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,502 | py | from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.webdriver import WebDriver
import unittest
import time
MAX_WAIT = 10
class NewVisitorTest(LiveServerTestCa... | [
"mcheich@gmail.com"
] | mcheich@gmail.com |
979e69700c1e63600045be2addfb894eb2fcccfc | 35ae63b26cd3f9b80aa8b3edeb598fbd143c1e17 | /utils/telegram_bot/__init__.py | 902b066386f1085f64fd6175553c07ad6276130f | [] | no_license | trevenue44/whatsapp-telegram | e4f2fa7adfa1bfb5c9ce56cb16b87eeb7e2e9cd2 | 742d96af955145da0fe62988a59c3da64e95fb91 | refs/heads/master | 2023-06-17T17:27:11.358814 | 2021-07-17T14:36:52 | 2021-07-17T14:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | from .main_bot import * | [
"trevepaul2@gmail.com"
] | trevepaul2@gmail.com |
13a7ea0b99fb7e6c47e3d62208c6fe6c62cca099 | 5387aba1e74f7c177ad76e50dffea1c76d545660 | /cah.py | a101b6ce65b4ec785d817719adfecef0c7eb7bb0 | [] | no_license | wluberti/cardsAgainstHumanity | 1aafbb8449663e24c28e23b28782bea40a363974 | 900aab63ce01ab3d24d162075e3421a67f3b1df3 | refs/heads/master | 2021-04-13T20:37:44.367802 | 2020-03-22T13:36:45 | 2020-03-22T13:36:45 | 249,186,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | #! /usr/bin/env python3
"""
See the README.md for details!
"""
from os import listdir
from os.path import join, isdir
from random import sample, choice
DATA_DIRECTORY = './data/'
DEFAULT_LANGUAGE = 'NL'
NUMBER_OF_ANSWERS = 8
class CardsAgainstHumanity(object):
def __init__(self):
"""Print a nice welcome... | [
"wouter@zenith.freedom.nl"
] | wouter@zenith.freedom.nl |
f43b7d1a8e62d5594e3f4f28fc6255696831d704 | 69e18da87bba00ce9cbb482c84442c4e36799a1e | /gen-smtp.py | 92b40559966bc7bd9082009ef1b5127e5e964639 | [] | no_license | hosting90/lets-encrypt | 3878ac2325247287da00e509d5fffc2098516beb | eabe7363fc56114d9abeaed167750affe8dd767e | refs/heads/master | 2020-05-04T20:40:13.041738 | 2019-09-05T11:21:38 | 2019-09-05T11:21:38 | 179,446,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,632 | py | #!/usr/bin/python
import MySQLdb, os, sys
try:
conn = MySQLdb.connect(host = "galera-hosting-db.hosting90.cz",
user = "hosting_antispam",
passwd = "TmnJUrd5bT9WzCSN",
db = "hosting_smtp")
except MySQLdb.Error, e:
print 'MySQL Error'
sys.exit(1)
#try:
# blacklist = open('antispam/blacklist','w')
# cursor = c... | [
"matej@divecky.com"
] | matej@divecky.com |
31d7a56d98ac554be81d6c85a7d9a9d0b0e1a2fd | 9ceb332cff5a6caa8c1e3fc24b865737d07c05a5 | /fpn/retina_fpn.py | f2566fd4816a237310d78f3b561844e573607c58 | [
"MIT"
] | permissive | blyucs/MaskRCNN | 95a7a8817fe08155c076ff5227dc009589ae4d1a | 493730f1987886913ce059e934e9a720ee85bb20 | refs/heads/master | 2020-11-30T14:26:13.543724 | 2019-12-30T11:48:45 | 2019-12-30T11:48:45 | 230,416,578 | 0 | 0 | NOASSERTION | 2019-12-27T09:45:40 | 2019-12-27T09:45:39 | null | UTF-8 | Python | false | false | 4,663 | py | '''RetinaFPN in PyTorch.
See the paper "Focal Loss for Dense Object Detection" for more details.
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class Bottleneck(nn.Module):
expansion = 4
def __init__(self, in_planes, planes, stride=1):
sup... | [
"18588220928@163.com"
] | 18588220928@163.com |
7aaa1de0f8b242659f974aeedebdb47987b29d49 | 87257cdeac8f62b00c35ef142bcede4b884805a2 | /app0.2_remote-objects/stockmarket/stockmarket.py | 7ddadec74a2e59dbf97d504d1e3355d9f89bdebb | [] | no_license | mglucas/SD | 45f41d108fac2c2e0e3628610cf6a63a938cf846 | 1b5ec23209545f1eda4116b1e6435af675f1c4b5 | refs/heads/main | 2023-07-17T23:54:19.003156 | 2021-09-01T19:07:11 | 2021-09-01T19:07:11 | 380,574,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | # stockmarket.py
from __future__ import print_function
import random
import time
import Pyro4
@Pyro4.expose
class StockMarket(object):
def __init__(self, marketname, symbols):
self._name = marketname
self._symbols = symbols
def quotes(self):
while True:
symbol = random.cho... | [
"luc0797@gmail.com"
] | luc0797@gmail.com |
719850b932da4953da84ee2edd197cb74e461187 | 9eb497bf08553121bb96860485d230d17eb47af0 | /Seaborn.docset/Contents/Resources/Documents/generated/seaborn-distplot-1.py | dea7cb9c41139ac7396e4b02fc850fcbf669c633 | [] | no_license | peixian/seaborn-dash | 34eba1c332cbfd3624b7e0e51b196c5c3d15b59a | 100abc4dd503348640285fdaaaffcf7099a40d25 | refs/heads/master | 2020-09-22T12:48:10.649151 | 2016-08-30T16:28:03 | 2016-08-30T16:28:03 | 66,892,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import seaborn as sns, numpy as np
sns.set(rc={"figure.figsize": (8, 4)}); np.random.seed(0)
x = np.random.randn(100)
ax = sns.distplot(x)
| [
"peixian@users.noreply.github.com"
] | peixian@users.noreply.github.com |
d77ed54b64dd54d79d02e8c5825fe260bc99827b | d867d08f51b959abc48aa53c47087b78263377c0 | /predict.py | 8b86bc112b0ee7c6f60c503639543dc16e296f24 | [] | no_license | imclab/boardeye | 7f143bb30da2961fef2c8f44dee87dee56c6130b | c40f40c7e4d0ccea74e77c03ebe36574177c3f9b | refs/heads/master | 2021-01-15T21:48:42.339659 | 2016-04-28T19:25:25 | 2016-04-28T19:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/env python
import sys
import numpy as np
from keras.models import model_from_json
MODEL_FILE = './data/model.json'
WEIGHT_FILE = './data/weight.hdfs'
#
# Preparing data
#
x = np.array([sys.argv[1].split(',')], dtype=np.float32)
#
# Load model
#
model = model_from_json(open(MODEL_FILE).read())
model.load_... | [
"ray.sakai@logical-fabrics.com"
] | ray.sakai@logical-fabrics.com |
cb6d594fb6a6e9b54d5b57bc4bb708f689fb6082 | ad5e071f3182e36c2683a57c5d6c13a75c281c2c | /conversion.py | fac90699857ac218017e4f9f1fd55cd3dfe37d22 | [] | no_license | JTam3/johnny-conversions | 3c4b5f6401b26e8285ff7f762ea9dc191d9fc2a0 | e0357e376665d0c795daa10e2da63895ca5f1774 | refs/heads/master | 2021-01-11T02:55:03.085578 | 2016-10-14T15:00:10 | 2016-10-14T15:00:10 | 70,908,363 | 0 | 1 | null | 2016-10-14T15:00:11 | 2016-10-14T12:30:14 | Python | UTF-8 | Python | false | false | 79 | py | # My Conversion Tools
def dollars2cents(dollars):
print("Hello!", dollars) | [
"johnny@nih.gov"
] | johnny@nih.gov |
ab40f36a86bd19bcdcc25767006ce554c82c95cc | aa4e049abfafd0eaa71a8d1286b025b978083f96 | /0x05-python-exceptions/0-safe_print_list.py | f904959fe26a74b2f4957d484fee91dbf90795ba | [] | no_license | PabloYepes27/holbertonschool-higher_level_programming | fdc517c2535b6affab2a8eee4e98252c78314be5 | 23be0d96c5cc11c8801e6a1fd758a87af57be42f | refs/heads/master | 2022-12-16T13:39:15.268636 | 2020-09-25T00:03:38 | 2020-09-25T00:03:38 | 259,388,690 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/python3
def safe_print_list(my_list=[], x=0):
j = 0
for i in range(0, x):
try:
print(my_list[i], end="")
j += 1
except IndexError:
pass
print()
return j
| [
"juanpabloyepest@gmail.com"
] | juanpabloyepest@gmail.com |
b22bce9bc39515a6d5737f34cb246c8f7773fd4c | d1c15641ece2cdbfe73e4e287d199a8edcb60647 | /pytest/exercises.py | 600589b8c35acad3067fe26ec255292cc1274306 | [] | no_license | caichinger/pyconsk18_testing | 24c0eb438290aad53e2ad1fc048ec8990243e075 | da8da6ec75e0f8fd77acbafc016d554c88266d7f | refs/heads/master | 2021-04-03T09:02:12.448826 | 2018-03-12T19:52:48 | 2018-03-12T19:52:48 | 124,597,060 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """
Complete/fix these tests.
"""
import pytest
import numpy as np
import pandas as pd
def test_comparing_list():
assert [1, 2, 3] == [1, 3]
def test_comparing_dict():
assert {'a': 1, 'b': 2} == {'c': 2, 'a': 1}
def test_comparing_numbers():
assert (0.1 + 0.1 + 0.1) / 3 == 0.1
def test_... | [
"claus.aichinger@mailbox.org"
] | claus.aichinger@mailbox.org |
25e7c21509763f2ac001db2554122f4e02d77f3d | 16cbf67734dba7f91be76e00d038f5f0c07823a9 | /lesospider/pipelines.py | af181889bd6e1c11dae11a4f3432237791d90e56 | [] | no_license | huichen90/lesospider | 0381b0837b362d28099616cce808b0da70a9e141 | 9363dcf4259f2eddb367a9a9f35221d36ca04cee | refs/heads/master | 2020-03-17T17:08:43.470383 | 2018-10-08T08:47:17 | 2018-10-08T08:47:17 | 133,776,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import datetime
import logging
import pymysql
from langdetect import detect
from scrapy.utils.project import get_project_setti... | [
"huichen90"
] | huichen90 |
05e2d627d9d53c64b423fc63e8ffef75cd230cfd | c62665c9cd3c8d48fd6841af286c290809ac0b74 | /features/environment.py | eb69c899c65bd99d69394ed62a54d384b37d3858 | [] | no_license | khandepc/sampleseleniumproject | 17c220e2a90bec9ff9a32d7155e699bed051edf1 | 8b86230946f7b03b45dcc580041902dd26bf9359 | refs/heads/master | 2020-05-18T05:04:24.019964 | 2019-04-30T05:00:34 | 2019-04-30T05:00:34 | 184,193,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | import generic.seleniumbase as sb
def before_step(context, step):
pass
def after_step(context, step):
pass
#These run before and after every step.
def before_scenario(context, scenario):
sb.launch_app('chrome','https://www.facebook.com/')
actual_title=sb.get_page_details('title')
expected_title=... | [
"khandepc@gmail.com"
] | khandepc@gmail.com |
939e94062c6e45b96e81639c3bd0987e702fa899 | 24f2696aab87f1632705a7c8b2d3b866e26aa3ee | /container_most_water_11.py | 72b6c6448e71d275a5e8bde4f53685a914c43692 | [] | no_license | adiggo/leetcode_py | 44a77a0b029f4d92bd0d8e24cad21ceea52e7794 | 4aa3a3a0da8b911e140446352debb9b567b6d78b | refs/heads/master | 2020-04-06T07:05:21.770518 | 2016-07-01T16:00:40 | 2016-07-01T16:00:40 | 30,397,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | class Solution(object):
def maxArea(self, height):
"""
:type height: List[int]
:rtype: int
"""
left, right = 0, len(height) - 1
max_container = 0
while left <= right and right < len(height):
width = min(height[left], height[right])
max_... | [
"adiggo@gmail.com"
] | adiggo@gmail.com |
9d55a508e3a6001695fd83bf5b5803da3bc9311a | 27acd9eeb0d2b9b6326cc0477e7dbb84341e265c | /test/vraag4/src/yahtzee/126.py | e93b5b1f181af0f4fcb6d0417587a05553fef970 | [] | no_license | VerstraeteBert/algos-ds | e0fe35bc3c5b7d8276c07250f56d3719ecc617de | d9215f11cdfa1a12a3b19ade3b95fa73848a636c | refs/heads/master | 2021-07-15T13:46:58.790446 | 2021-02-28T23:28:36 | 2021-02-28T23:28:36 | 240,883,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | def histogram(stenen):
stenen.sort()
bib = {}
for i in stenen:
bib[i] = stenen.count(i)
return bib
def max_gelijk(stenen):
stenen.sort()
bib = {}
waarden = []
for i in stenen:
bib[i] = stenen.count(i)
for i in bib.values():
waarden.append(i)
waarden.sort(... | [
"bertverstraete22@gmail.com"
] | bertverstraete22@gmail.com |
f128c4eb47e99367d6fba9e5c51bfad341cca121 | 7b4ffa988c12fb4076655722fa04fef98c21c43d | /PraatWrapper.py | 40bf34c019e0d4865788ac20fccaed11e701c4e4 | [] | no_license | lyndonrey/presidential_pronunciation | cbeee725f31bfb2be5aaf508cdf3ba1d50dc4223 | 0fb0c037616297196a46020fdb1bc3d2a6d39ba6 | refs/heads/master | 2021-01-17T14:39:23.673154 | 2017-03-06T16:50:11 | 2017-03-06T16:50:11 | 84,096,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | #!/usr/bin/env python
from subprocess import call
from multiprocessing import Process as Task, Queue
import time, sys, collections, subprocess, glob
def callPraat(wavIn, dataOut):
""" Calls the praat formant getter script on the wav file param, and prints to file """
f = open(dataOut, "a") # This variable is... | [
"lrey@uwo.ca"
] | lrey@uwo.ca |
a8ea32ee092bd7d2b6681537f10d679a04d2e658 | d0f8474101f55a181e2cbaa95b9169378b84deb8 | /app/main/model/oracle/supplier_management.py | ccb57a595f6927b5b0a58bc085ac66412868206a | [] | no_license | onewoorks/knowage-dataset-api | ae60041d297d1f76f89e7a3cc35df361b7dacbef | 7dbf19a549b2b20b245cd9cea6bd4eaeffcd5e76 | refs/heads/master | 2022-07-10T15:38:56.897691 | 2019-12-10T08:45:22 | 2019-12-10T08:45:22 | 198,759,687 | 0 | 0 | null | 2022-06-21T23:06:36 | 2019-07-25T04:52:32 | Python | UTF-8 | Python | false | false | 5,116 | py | from .. import execute_oracle_query
from datetime import datetime, date
class RETURN_RESPONSE:
def response(self, columns, result):
final = []
for r in result:
data = {}
index = 0
for c in columns:
data[c] = r[index]
index += 1
... | [
"irwanbibrahim@onewoorks.com"
] | irwanbibrahim@onewoorks.com |
7d2536b37851f699500ad519ad72a92ef4880edb | fc017beff82d8e5d00f5c18fe85dae9aacafbac7 | /wosis/__init__.py | 9720f21e40c75ef21bfd8c8d24066f0390450ff2 | [] | no_license | ConnectedSystems/wosis | a29a82b5828842eb409e058e03caceabecf1417f | 0418389affce4e2c440f3c96b306dbaad2a23156 | refs/heads/master | 2020-04-04T00:39:48.731783 | 2019-09-11T06:00:05 | 2019-09-11T06:00:05 | 155,658,135 | 9 | 0 | null | 2019-01-31T03:20:17 | 2018-11-01T03:40:22 | HTML | UTF-8 | Python | false | false | 131 | py | from .query import *
from .store import *
from .convert import *
from .analysis import *
from wosis.TopicResult import TopicResult
| [
"takuyai@gmail.com"
] | takuyai@gmail.com |
6136481ab72ac9aa1f3ab3abc6824c864535f5cb | 3505ea8c883a2986c05ecb2807f6bc2ec13aac03 | /team_as_a_unit/team_graph.py | 498b9995c05f2f46d8530f627716192347b31d55 | [] | no_license | wdunicornpro/GithubTeamRecommendation | b89c42823251b9baec9534b2a2389cb9d08905eb | 94299ca1cb408644b592be739cf13eaa5c1bf5a5 | refs/heads/master | 2023-03-14T21:17:35.706355 | 2021-03-30T06:45:19 | 2021-03-30T06:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | import json
import os
import re
teams = []
team_inds = {}
user_team = {}
with open('team_profiles.json') as tj:
for l in tj.readlines():
line = l.strip().split('\t')
teams.append(line[0])
for user in json.loads(line[0]):
if not user in user_team:
user_team[user] ... | [
"18221943430@163.com"
] | 18221943430@163.com |
0fb30ce665904a7a14c1f692855392fc8cacaf74 | 3cb5758d30868b8ae0cc4e9a2c0c1d03bba95db3 | /src/alg/simplex/simplex_method.py | 676899d91fa968750381bebed3bb5e235dc87ff7 | [] | no_license | Brahialis0209/gui-qt | c306611c33ca0b829ae9c5a92a8a6b89323c6948 | a54c4810afa980129c28989dde1d91c4921181e6 | refs/heads/master | 2022-12-02T14:54:13.687320 | 2020-05-30T21:21:47 | 2020-05-30T21:21:47 | 287,610,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,587 | py | import numpy as np
import itertools as it
import copy as cp
from src.alg.exceptions import SimplexAlgorithmException, \
IncompleteTaskRankException
from src.alg.simplex.config import SimplexConfig
def del_null(A, c): # A - constraint matrix, # c - goal function coefficients
null_ind = list()
for index, c... | [
"rafantem@mail.ru"
] | rafantem@mail.ru |
4bab4960eafc5aae2b791d8ee9b3692b30babe22 | 1313593a03ccace06a838e43a83d953f746d6b33 | /items.py | 806de5a573170de959b1b3a91535ae1055757d2a | [] | no_license | reindels/Python-Pokemon | f4f71aa2587817ad8d3c83f52c60104c95664cf9 | 1c5e0f0426d7c4b09f43427764c1514dccab37cf | refs/heads/master | 2021-01-20T04:33:27.496385 | 2015-11-12T00:28:17 | 2015-11-12T00:28:17 | 45,713,796 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,281 | py | from constants import constants
class item():
def __init__(self, item_dict):
self.name = 'Potion'
self.type = constants.item_type_medicine
# constants.item_type_medicine = 'Medicine'
# constants.item_type_vitamin = 'Vitamin'
# constants.item_type_berry = 'Berry'
... | [
"reindels@oregonstate.edu"
] | reindels@oregonstate.edu |
18fb7eb6c151368495d76ef2ebf1261449f1bfd9 | 936d82330f6cabea8ffea6ed35cfd6784b3a7885 | /Baselibs/src/cmor/build/lib.linux-ppc64le-2.7/cmor/table_generator.py | 1df495d9269771cda91b548e7ccfe75369276315 | [] | no_license | aborle1/GEOS2 | cc4386e19c76fb0c11a98348ffde5f1b55db9337 | 47d25a0d92a20efd7fd552a934ae0dd7422320ba | refs/heads/AJ | 2021-07-20T22:40:42.121925 | 2017-10-17T18:46:08 | 2017-10-17T18:46:08 | 104,491,177 | 0 | 1 | null | 2017-10-17T18:46:09 | 2017-09-22T15:39:23 | Fortran | UTF-8 | Python | false | false | 12,365 | py | #amon_2d
#Change time to time1 for dims
#change time: mean to time: point for cell_method
import sys,time,os,genutil
prefix = "CMIP5"
general = """cmor_version: 2.0 ! version of CMOR that can read this table
cf_version: 1.4 ! version of CF that output conforms to
project_id: %s ! project id
ta... | [
"aborle1@umbc.edu"
] | aborle1@umbc.edu |
43c33a3ca9aa9e5c96a6ba64fea51456be46b493 | 75513bf64984c0d737c69fbcf0adcf40a8640e47 | /HT/lib/python3.6/stat.py | 0ee2f18b0a5477078ffa86399eb0c293c9b0eb67 | [] | no_license | thekekk/HT_ATC | e5da9d2b1d34c562b8236b8938913c5e79da9767 | 5af80b5ab55658f909f03bd6e629b4e7afefe6d4 | refs/heads/master | 2020-04-04T15:56:51.538276 | 2018-08-02T01:03:52 | 2018-08-02T01:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/gavinnewcomer/anaconda3/lib/python3.6/stat.py | [
"gavin.newcomer@temple.edu"
] | gavin.newcomer@temple.edu |
e893ce5201070444e3ae7f78c51204c87503cf6c | 0e0e78019f860431986162265c6fb20d06c2b6f0 | /test/test_graphical_layout/test_map.py | 3dac0959d9a097a737fb6482d96eaa468e1f4b14 | [] | no_license | ouskah/OpenClassroomsPython | a2cfc9f3974a77f83360d671069d0c67023dc7ff | 316d7891226c6d046448c8c7efb34d4333bf98b7 | refs/heads/master | 2020-08-04T11:03:51.183127 | 2019-09-24T22:20:41 | 2019-09-24T22:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | # -*-coding:Utf-8 -*
"""This module contains tests for the class Map."""
import unittest
import os
import parameters.parameters as parameters
import test.parameters_for_testing as test_parameters
from graphical_layout.map import Map
class TestMap(unittest.TestCase):
"""TestCase for functions of the 'm... | [
"lea.fanchon@gmail.com"
] | lea.fanchon@gmail.com |
d62bbfbc015db36893e18e1e7c97e64cc7333a4b | 6d2fa524df3cbb054761e47717ac6e902301ed1d | /akash_update.py | 55916a1f8365ba8b23ea329f32a0c2fa607139f3 | [] | no_license | dalinxz/RedditFinancial | 29f9703b8d88adadb72330ccc1991854a2d6fc5e | ad98ef284d2f017f078378bb0c916bcb6d98744d | refs/heads/main | 2023-02-27T23:34:44.613764 | 2021-01-31T19:13:18 | 2021-01-31T19:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | # -*- coding: utf-8 -*-
"""akash_update.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1fd_bVVLZjgbtdkiSNysC-O8dfnsQOca1
"""
!pip install praw
import praw
import time
import requests #idk why we need request? but ok
import requests.auth
imp... | [
"noreply@github.com"
] | dalinxz.noreply@github.com |
3ccfa877e6a2a3cc1ce964343c91024df48d7241 | 32bbbd6dbd100bbb9a2282f69ac3b7b34516347f | /Study/Coding_test/3-3, 3-4.py | 1f86239fe8abeffb5c765ed94ff2396cc8d87877 | [] | no_license | kimjh1753/AIA_Academy_Study | 2162d4d4f1a6b8ca1870f86d540df45a8742f359 | 6022718ae7f9e5170a19c4786d096c8042894ead | refs/heads/master | 2023-05-07T12:29:12.920693 | 2021-06-05T01:09:33 | 2021-06-05T01:09:33 | 324,136,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # 3-3.py
# N, M을 공백으로 구분하여 입력받기
n, m = map(int, input().split())
result = 0
# 한 줄씩 입력받아 확인
for i in range(n):
data = list(map(int, input().split()))
# 현재 줄에서 '가장 적은 수' 찾기
min_value = min(data)
# '가장 적은 수'들 중에서 가장 큰 수 찾기
result = max(result, min_value)
print(result) # 최종 답안 출력
# 3-4.py
# N, M을 공... | [
"kimjh1753@naver.com"
] | kimjh1753@naver.com |
d8a679818375ef475c2ef0113b71e29e2d7062d7 | 8a42fe9a7f615087d9987829c5f297020ea72690 | /app.py | 6eb8c3ff5cceb33edd792bb487fdaaff53007a79 | [] | no_license | edwardchow33/androidbot | d04b42637d1f2109dcea7bdb4b08b83207967c59 | 504368d6c04de7a352224e2c032bc11959a96a6e | refs/heads/master | 2020-03-26T12:05:24.000795 | 2018-08-15T16:07:07 | 2018-08-15T16:07:07 | 144,874,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from flask import Flask,request
import json
from bot import Bot
app = Flask(__name__)
bot = Bot()
@app.route('/',methods=['GET'])
def add():
print "add"
bot.create_post()
result = {'result':200}
return json.dumps(result)
@app.route('/',methods=['GET'])
def select():
print select
if __name__ == ... | [
"edwardchow0303@gmail.com"
] | edwardchow0303@gmail.com |
7bb88ed2387b5d755cdb8f97907547bd2b05ced7 | 7bb27fcf43b8701fb22a54df197b6a46910e09a2 | /home/models.py | 274c946e711e99085cc53e86feffd80937edea3d | [] | no_license | bladas/blog | d9c56b05e4d9fa21e0677e8bdb92e5e6c1d6732d | 00841d4645c3f58177587bf17751ad8c21dc0bdb | refs/heads/master | 2023-04-05T02:36:26.261824 | 2021-04-21T14:25:58 | 2021-04-21T14:25:58 | 360,196,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | from django.db import models
from transliterate import translit
# Create your models here.
from django.utils.text import slugify
from base.models import BaseModel
class HomeImages(BaseModel):
image = models.ImageField(upload_to="media/home/", blank=True, null=True)
class Post(BaseModel):
title = models.C... | [
"dashkevich_v@ukr.net"
] | dashkevich_v@ukr.net |
a26a75df3d299756462f23745b86c524c4ae9386 | ab1d4edec94494e9f34069446a76a787ae9769a8 | /kronos/models/base.py | 3913ee5d39b2c1db379a9db91d0823a2e1d8c59c | [] | no_license | kzka/kronos | ae0d710d30511eb11da586bdb2d778a68fe123eb | a50a9fe41377ae2e3c9c9b9c1bd7ed7d70c42437 | refs/heads/master | 2023-02-26T11:19:39.837644 | 2021-01-29T22:33:32 | 2021-01-29T22:40:12 | 334,278,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,475 | py | import abc
import logging
import torch
import torch.nn as nn
from kronos.utils.torch_utils import freeze_model
class BaseFeaturizer(abc.ABC, nn.Module):
"""Abstract base class for featurizers.
Subclasses must implement the `_build_featurizer` method.
"""
def __init__(
self,
pretrain... | [
"kevinarmandzakka@gmail.com"
] | kevinarmandzakka@gmail.com |
adba8dad5970b3b852b6c11aa08187a439ac0fcc | f4e8c59222b46a58f770160d70f3b86866b6bbdc | /week02/task04.py | b5fd60136ec17e30490e6f9194f5f150e3e3f528 | [] | no_license | GitKurmax/coursera-python | 08902bf622d4aaed7197f352b7b74a73a398c74a | ffb3621c2b921ccdec5370da0108d14aeec220e9 | refs/heads/master | 2023-02-08T05:05:01.809386 | 2020-12-31T11:52:18 | 2020-12-31T11:52:18 | 325,789,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | year = int(input())
if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
print("Yes")
else:
print("No")
| [
"alexandrmail32@gmail.com"
] | alexandrmail32@gmail.com |
57ffb2b83595af10a419343366c1df061a62a01d | b1ce14cd8969aa9c919d247e55709889da0d5f86 | /zhaopin/analysis/city_map.py | 0ee9184e0a5a745f080c221206d941c932310dc4 | [] | no_license | TwoIceBing/job51 | ba164cb18a193c44720d67663902be76a20f1f51 | 6d73893daad40d75653708e37e45d28bdbc62873 | refs/heads/master | 2020-04-10T21:35:54.758502 | 2018-12-11T09:02:50 | 2018-12-11T09:02:50 | 161,300,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | # coding:utf-8
import json
from urllib import urlopen, quote
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def getlnglat(address):
url = 'http://api.map.baidu.com/geocoder/v2/'
output = 'json'
ak = 'FOtHtZ92dCKMjpx0XA05g8VEZn95QWOK'
add = quote(address.encode('utf-8')) #由于本文城市变量为中文,为防止乱码,先用qu... | [
"1390932736@qq.com"
] | 1390932736@qq.com |
818a3d7f024fe45733376415e120f38f9c5d4a61 | f8666599b83d34c861651861cc7db5b3c434fc87 | /plotly/validators/layout/xaxis/__init__.py | 4af4c7585fe88366a6ad08c6dc33513618796377 | [
"MIT"
] | permissive | mode/plotly.py | 8b66806e88c9f1820d478bab726f0bea81884432 | c5a9ac386a40df2816e6c13264dadf14299401e4 | refs/heads/master | 2022-08-26T00:07:35.376636 | 2018-09-26T19:08:54 | 2018-09-26T19:19:31 | 60,372,968 | 1 | 1 | MIT | 2019-11-13T23:03:22 | 2016-06-03T19:34:55 | Python | UTF-8 | Python | false | false | 2,943 | py | from ._zerolinewidth import ZerolinewidthValidator
from ._zerolinecolor import ZerolinecolorValidator
from ._zeroline import ZerolineValidator
from ._visible import VisibleValidator
from ._type import TypeValidator
from ._titlefont import TitlefontValidator
from ._title import TitleValidator
from ._tickwidth import Tic... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
9f3bdf6da9344ea265c846222363cff5598dc14a | 1ee59d0a9a87134efe0d61c2378b37ee2c87d93a | /svm.py | 06755a84b04cc0e530251ba74aba83e8f9c38789 | [] | no_license | tayaba02/Tactile-recognition-of-textures | 8a8f368ff5c7273a430a85c3afe5737a61dbd5f5 | 267af231ae27b72e185219d1851412cb47a9c997 | refs/heads/main | 2023-07-18T02:02:53.743084 | 2021-09-06T09:52:03 | 2021-09-06T09:52:03 | 403,332,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,859 | py | from __future__ import absolute_import, division, print_function
from tensorflow.keras import Model, layers
import numpy as np
import pandas as pd
from tensorflow.keras.layers import SimpleRNN, LSTM, GRU,Bidirectional
from numpy import genfromtxt
from keras.datasets import mnist
from keras.models import Se... | [
"noreply@github.com"
] | tayaba02.noreply@github.com |
7fa26db7546059397d857662e5c3152ce9b6361f | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4182/codes/1582_2897.py | 28a7bb152b0197d08b28465ac147822e23411d40 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # Use este codigo como ponto de partida
# Leitura de valores de entrada e conversao para inteiro
num = int(input("Digite o numero:"))
# Impressao do dobro do numero
print(num*2) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
4f054e3eb26478e6754fc46e3c9b7d2de5931107 | 4b340f77af77c120d06dab824606088814e7f5c8 | /python-zumbies/twp295.py | 55fe0eba5e5b6aedcd2b08071eaaf751b04e522e | [] | no_license | jeyziel/python-studies | 955c39938a8a89b7626a4ac8d37a215753e0fbed | f86ff997643d188ad7099047ff68343e4d96b92b | refs/heads/master | 2020-03-10T20:00:33.983638 | 2018-07-30T18:54:01 | 2018-07-30T18:54:01 | 129,560,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | import random
lista = []
for i in range(15):
lista.append(random.randint(10, 100))
print(lista) | [
"jeyzielgato@gmail.com"
] | jeyzielgato@gmail.com |
97afa910069619d1bf28d324dc78438e217c94d3 | 22ea049e5ff21a34972b1ac2e20e02eb0d562994 | /mazegen.py | 58661a920d25976fbff3342b401e931747a84835 | [] | no_license | mihai-craciun/maze | 011edeaa8b5673cf79f4dd096ac2c40177ad4627 | 3b05c44097aa156ffe4f16af1b0fdd9028334e5a | refs/heads/master | 2022-04-27T01:33:01.861623 | 2020-04-26T16:49:47 | 2020-04-26T16:49:47 | 258,873,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,243 | py | from typing import Tuple, List
from disjoint_set import DisjointSet
from collections import deque
import random
class Maze:
# Avaliable directions
LEFT = 1 << 0
RIGHT = 1 << 1
UP = 1 << 2
DOWN = 1 << 3
# Offsets
OFF_LEFT = (0, -1)
OFF_RIGHT = (0, 1)
OFF_UP = (-1, 0)
OFF_DOWN = ... | [
"mihaicraciun96@gmail.com"
] | mihaicraciun96@gmail.com |
4c85fd307ea4f4d698efbbbc3b78460b6a68dd65 | d2645593a16a882b407bcac8805e7444fa6f1ec9 | /SlidingWindowMaximum.py | 4431b09e5f3c91e38277e3420b3ba873c072e4d9 | [] | no_license | Steve-Jadav/LeetCode | 040843533c4ab228a15752c388f953e9b2ecbf3f | 7bcdd966c8a560bc0c71b9f357f600c50db97a53 | refs/heads/master | 2023-01-24T03:34:44.227573 | 2020-12-11T09:43:42 | 2020-12-11T09:43:42 | 265,413,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # Problem 239
# Approach: deque
from collections import deque
class Solution:
def maxSlidingWindow(self, nums: List[int], k: int) -> List[int]:
if (nums == None or len(nums) == 0 or k > len(nums)):
return []
result = list()
deck = deque([])
for i in ra... | [
"ssjadav@asu.edu"
] | ssjadav@asu.edu |
efed81c1348d5dcc108b1148af5fce89e4e89030 | c53d91b106d127f4c0181631513bb6244fdb591c | /bmmiici/migrations/0002_doctor_specializations.py | 129dbc7372fc4dd6babb76075bd7790e0d40b2dc | [] | no_license | rezaul3025/bmmiici | adee847f8c9fd49c34b04dfbc569ed9e3625dc6f | d72ffab09cfd1a64af80b5edaf8e9b2f42031aa3 | refs/heads/master | 2020-12-03T00:18:33.256610 | 2017-07-08T13:00:07 | 2017-07-08T13:00:07 | 96,013,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-05 12:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bmmiici', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"rezaul.km105@gmail.com"
] | rezaul.km105@gmail.com |
19406253672ec27fdc20e4d53f4be3f3efaa50b3 | d9c176985d24b82b21d5dd319b5ff82ae5d783f6 | /hw4.py | 677aff7aace43bb5955021afb87666f7bdb2174a | [
"MIT"
] | permissive | nv29arh/hw4 | 913248f57a9e021f7147b31fa88b713a1b2d5d97 | f2e1f38bf4fa0d6bc11cb07df63754a0fb7e3595 | refs/heads/master | 2022-04-24T10:40:55.254816 | 2020-04-18T15:35:18 | 2020-04-18T15:35:18 | 256,785,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,274 | py | #1. Напишите функцию (F): на вход список имен и целое число N; на выходе список длины N случайных имен из первого списка
# (могут повторяться, можно взять значения: количество имен 20, N = 100, рекомендуется использовать функцию random);
import random
def random_list_of_the_names(a,N):
'''
:param a: первонача... | [
"nv29arh@gmail.com"
] | nv29arh@gmail.com |
0703fd507726e31b497d16301aa2cc35d4f91a4b | 20bbbc7d104ec39af1a15b1567f7a29f84829b45 | /djangosite/booksite/booksite/settings.py | df0ee4247a8af5ea5b2207b43d5465a95002ccf3 | [] | no_license | liuxinqiqi/Pythonclassbasic | 07eeb01e6d579a995600f31408f68b22d36e573b | fbd85cd9c4341c611eba170083ed944f5b8f16da | refs/heads/master | 2021-01-16T18:27:00.640306 | 2017-08-12T02:41:00 | 2017-08-12T02:41:00 | 100,084,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | """
Django settings for booksite project.
Generated by 'django-admin startproject' using Django 1.11.3.
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 o... | [
"XinQi_Liu@outlook.com"
] | XinQi_Liu@outlook.com |
e1a3b9f62dfa9070f5a3fae6496477ee023461b4 | 07560f9448a55d14380d5cf022323af09e2d1e6b | /1.DataScience/2.BigO/Green18/lec10_sum.py | 3dfc22aaaea7b383c4afbb59abc65f72be92844e | [] | no_license | namth2015/python | 58d6cb5d93db6ccaec0a436150d1c4458d4f6a03 | a32e691e2d5fc1ae1d80d0c7d99185c456e48212 | refs/heads/master | 2023-06-01T23:42:59.585763 | 2021-06-19T10:34:39 | 2021-06-19T10:34:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | class cell:
def __init__(self,x,y,val = None):
self.x = x
self.y = y
self.val = val
m, n = map(int,input().split())
k = int(input())
a = []
for i in range(k):
x, y, val = map(int,input().split())
a.append(cell(x,y,val))
lst = [x for x in a if x.val > 0]
print(len(lst))
for i in r... | [
"cungbac.tran@gmail.com"
] | cungbac.tran@gmail.com |
d76fef10ced97c1c78acbadd55454645b2ab6c26 | 427c02cd6cb7719159a4d130ab501723c8f8d717 | /wsi_qa/applicants/apps.py | c8c171f6b3fc452c49883809adef5845bebfbf13 | [] | no_license | rhedenjohn/wsiqa | 64016f8a1babf2efe2726d1b353065446011d6fe | 51f2e8ece347cbbb4a8994ec53d49d3379479ef3 | refs/heads/master | 2022-11-09T21:04:25.062978 | 2020-06-16T12:58:59 | 2020-06-16T12:58:59 | 271,193,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class ApplicantsConfig(AppConfig):
name = 'applicants'
| [
"rhedenjohn@hotmail.com"
] | rhedenjohn@hotmail.com |
b0ed056ba3090317cb01c1f931b47c350a3d5312 | ce2e068a1bf0111b85ebccd4009370e02d3e268a | /hahaha/util.py | 025e4f78455eee3a3d5608c551fa622e79fb93b7 | [] | no_license | wzk1015/hahaha | 6565dbca5f215b3e0b0009f2cbc17237fcae1a5b | e676e6289554f2b64f30864f77c66dd52e2e4dc3 | refs/heads/master | 2023-02-12T15:32:12.815595 | 2021-01-03T18:01:47 | 2021-01-03T18:01:47 | 324,585,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import numpy as np
import cv2
import os
import pkg_resources
PACKAGE_NAME = "hahaha"
template_path = "template-imgs/"
def get_path(path):
return pkg_resources.resource_filename(PACKAGE_NAME, path)
def check_file(path):
assert os.path.exists(path), "file '" + path + "' not exists"
def... | [
"18231047@buaa.edu.cn"
] | 18231047@buaa.edu.cn |
fb4dfff30de3a38bb92711cbb6dc49b298649908 | 111a0e4c5950a81b752c8ac941d3e296dadf48b8 | /guessing_game.py | eddda92bb6eabcf63d6b69f5705b1e160578781a | [] | no_license | Mr-JackWilson2019/Treehouse-project-1 | de9fcb1ba75f2868ae0a1743da02860cadae5708 | af11f25a5a856e10f6b2841600a1eef3bb44a255 | refs/heads/master | 2020-05-26T09:26:06.159021 | 2019-05-23T07:45:14 | 2019-05-23T07:45:14 | 188,186,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,655 | py | """
Python Web Development Techdegree
Project 1 - Number Guessing Game
--------------------------------
For this first project we will be using Workspaces.
NOTE: If you strongly prefer to work locally on your own computer, you can totally do that by clicking: File -> Download Workspace in the file menu after you for... | [
"Mr.JackWilson2019@gmail.com"
] | Mr.JackWilson2019@gmail.com |
59fc876954e1f9decf3028bb8dd67468bddceff3 | c107e850b0cc4b925f2d424702dbcf4dcbb52ec3 | /text_to_phoneme.py | bd882ebf89f99409c4569d911ae5f534926361fe | [] | no_license | rohithkodali/g2p | 74deaa29909ebf7825678e9cfe63bc898e45cd29 | 7168b46b2fc9186bd193ae7c25c881fbf697ff77 | refs/heads/master | 2021-01-21T07:34:21.254448 | 2015-08-13T12:49:16 | 2015-08-13T12:49:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,653 | py | import sys
import os
""" This file maps the manual transliterations into phonemes using
automatic transliterations and mono-phoneset file. First step is to
find the one-to-one mapping between mannual and automatic
tranliterations. There could be mismatches between them, i.e.
sometimes people may mix two words into s... | [
"bajibau7@gmail.com"
] | bajibau7@gmail.com |
57cc05f3174ad501f76c32351312e66932f0f089 | 31a17ccc7d77eac2673b2c1e2c489eaf75f7af58 | /omtp_factory_behaviors/omtp_factory_flexbe_states/src/omtp_factory_flexbe_states/detect_part_camera_state.py | d77d023165092c9991f208ac04016fc9637026cc | [] | no_license | aaurm867/omtp_assignments | 148abecae4043049600270d4854ef25c1e8c2e80 | 9ba73a20ce9ff90ef59a3209eaaca8a98572b090 | refs/heads/master | 2021-10-15T21:28:14.980785 | 2021-09-29T10:26:28 | 2021-09-29T10:26:28 | 245,206,695 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,172 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2018, Delft University of Technology
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of... | [
"ignigomoreno@gmail.com"
] | ignigomoreno@gmail.com |
6543caa054b01d2c7701af472b4883fa2b53e6be | d91e60de0880565c339521129f64fe5cd207bf88 | /total_creation4.py | 5d28d44b2e04597008b9807dbe5b379825b8edd8 | [] | no_license | laur34/automatize_sample_sheet | e96dfc1872309e6888ec8154b805c26334c355f5 | 409292a2fd62730f06d545a4c7b487a44c39b789 | refs/heads/master | 2021-06-20T23:34:15.502433 | 2021-06-10T13:50:39 | 2021-06-10T13:50:39 | 222,692,501 | 0 | 0 | null | 2021-01-21T12:08:57 | 2019-11-19T12:36:42 | Python | UTF-8 | Python | false | false | 8,920 | py | # Script to automate creation samplesheet.txt file for use with vsearch script for fusion primers (and paired-ends.)
# Version 3.0 - 10.6.2021 - four columns of primers instead of two
# Needs to be run in Python3.
# Before using this script, the sample sheet from the lab must be made into the correct input.
# That is,... | [
"lv70xo@gmail.com"
] | lv70xo@gmail.com |
5f622590e4e53e09f5768da616268d8c3746c578 | f6bc15034ee1809473279c87e13cc3131bc3675c | /groups/sitemaps.py | 7b9b9770de392bf4b099281e0f54729bd242d6d5 | [
"MIT"
] | permissive | mangadventure/MangAdventure | d92e4c184d1ad91983cf650aa7fa584ba9b977ce | e9da91d0309eacca9fbac8ef72356fe35407b795 | refs/heads/master | 2023-07-20T04:54:49.215457 | 2023-07-14T15:34:20 | 2023-07-14T15:34:20 | 144,012,269 | 70 | 16 | MIT | 2022-08-13T12:22:39 | 2018-08-08T12:43:19 | Python | UTF-8 | Python | false | false | 513 | py | """Sitemaps for the groups app."""
from typing import Iterable
from django.contrib.sitemaps import Sitemap
from .models import Group
class GroupSitemap(Sitemap):
"""Sitemap for groups."""
#: The priority of the sitemap.
priority = 0.4
def items(self) -> Iterable[Group]:
"""
Get an ... | [
"chronobserver@disroot.org"
] | chronobserver@disroot.org |
6214043f87f5759242026a504acb8c2d6b0353a1 | 7d1e05eb93bc1caaf79dc4063e24a9e7de41ed33 | /hollow triangle.py | cdbfb90355bb7404dd824eaa98897a38a3b1a417 | [] | no_license | katyaryabova/HOMETASK5 | a9d36ff4d71b4ea7e8ec1478dfd7d846a80cfeb2 | 7fc7d4297aff65a89ed37a3b33ed7a5f7fbdcefc | refs/heads/master | 2022-11-25T17:58:31.751869 | 2020-07-31T15:13:06 | 2020-07-31T15:13:06 | 279,795,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | n = int(input("enter: "))
for i in range(1, n - 1):
print(' ' * (2 * n - 2 * i - 2) + "*" + ' ' * (4 * i - 5) + "*" * (i != 1))
print('* ' * (2 * n - 3))
| [
"ts-kateryna.riabova@rakuten.com"
] | ts-kateryna.riabova@rakuten.com |
89bcacedd592efcd1eb8e5a4543bafd28d850d84 | e78635b2fd4bc2df1671214ea24c03a2be91a503 | /LeetcodeNew/python/LC_416.py | 7be06eabf28020389ccc22eceb0065e450083b99 | [] | no_license | arnabs542/OptimizedLeetcode | 56ec60232ddb7b4e911aeb137a365c12092da16d | ab013103b9b28327e3b5a8af0c408606d1e04a24 | refs/heads/master | 2023-03-14T05:57:06.070185 | 2021-02-28T03:01:14 | 2021-02-28T03:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | """
416. Partition Equal Subset Sum
473. Matchsticks to Square
698. Partition to K Equal Sum Subsets
996. Number of Squareful Arrays
"""
"""
Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.
Note:
Ea... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
1b73f94b2be025d3496a8ab70620a8857819ffc4 | 2c2a805d43af773b7e31c7a54d1c2e8c8108801d | /test/test_db.py | e59b96200a87f7f7ac3be43912e2baf04d7a91bb | [] | no_license | atiaxi/chromabot2 | 2dbb2beefcc67f2b324ae98886f4815205830653 | f8f9e92090017bbbaf87042f4cdc5f5f10e54c25 | refs/heads/master | 2020-05-21T13:33:18.565653 | 2017-03-17T17:05:14 | 2017-03-17T17:05:14 | 62,596,154 | 0 | 0 | null | 2017-03-17T17:02:48 | 2016-07-05T01:13:29 | Python | UTF-8 | Python | false | false | 9,520 | py |
from chromabot2.models import User
from chromabot2.battle import (
Battle,
Troop,
OccupiedException,
OutOfBoundsException,
BattleEndedException,
BattleNotStartedException,
)
from chromabot2.utils import now
from test.common import ChromaTest
# These tests are for the raw functionality of db.py... | [
"atiaxi@gmail.com"
] | atiaxi@gmail.com |
85a63dd438a1f43ed8098ae413e642c923205ea1 | cb1f34abdbf0ba8dfb87489e8e97bf5d6104e641 | /previous_work/src/common/ashttpcommon.py | 24176da250ea5d3ba8b64a9ca487bd690d328e78 | [] | no_license | yuliang-leon/exp | 7b8522fc464f1ac9c42a672f72f3e85451912cca | 889b48f374783921f6b8ea1013dad13e6118d587 | refs/heads/master | 2021-01-21T12:36:20.799056 | 2014-04-18T19:14:13 | 2014-04-18T19:14:13 | 18,921,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,120 | py | __copyright__ = 'Copyright 2011-2014, Yuliang Wang(yuliang.leon@gmail.com).'
from ascommon import FileStore, MemStore, StoreException, rand_string, shortReadableName
from asaes import AsAES
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from urlparse import urlparse, urljoin
import urllib
from ... | [
"zzw.neo@gmail.com"
] | zzw.neo@gmail.com |
a2453feb6f860718515b6a6f5efd92d78ea28887 | 649c0fe730956d971a146d098f29a37c7d573b4a | /src/factory_map.py | e88c52219ea441a6b315b2e358d7999d7150e917 | [] | no_license | sergiooncode/robotic-mowers | afb89950a8cb1fd25b185c184212598bc9a25932 | 9074a841ef3e97fefe45598187d352e7f9bbbecf | refs/heads/main | 2023-08-24T20:09:30.648925 | 2021-10-05T07:50:06 | 2021-10-05T07:50:06 | 412,827,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from src.command.factory_command import FactoryCommand
from src.mower_situation import MowerSituation
class FactoryMap:
def __init__(self, mower_situation: MowerSituation):
self.__mower_situation = mower_situation
def execute(self, command: FactoryCommand):
self.__mower_situation = command.ex... | [
"sperez4mba@gmail.com.com"
] | sperez4mba@gmail.com.com |
9f416dcedf41c76ae4b39f70d354f501bd9d1ee1 | 424ff46affab21d96fd6e10b5dab2344c882a9ef | /tests/test_accommodation.py | 23f32dfb4e90dfea52c8956093956944320de224 | [] | no_license | simon446/apaato | 56caea18ff1e6674ce82876a763171d6424d11f4 | 8226b9a49d247121a911bd1744bd329e47966648 | refs/heads/master | 2022-11-16T00:10:20.377366 | 2020-07-12T05:32:49 | 2020-07-12T05:32:49 | 278,954,644 | 0 | 0 | null | 2020-07-11T22:57:05 | 2020-07-11T22:57:05 | null | UTF-8 | Python | false | false | 1,253 | py | # test_accommodation.py
import unittest
from apaato.accommodation import Accommodation
class TestAccommodation(unittest.TestCase):
""" Tests for the accommodation module """
def setUp(self):
""" Creates accommodation """
self.accommodation = Accommodation(queue_points_list=[2000, 1000, 200... | [
"viclo211@student.liu.se"
] | viclo211@student.liu.se |
1a7de1c1380a08b391a0c4b1d15c2e226a0ba98d | 64d8618788c6239e546ad99ccff5ac2adb48e928 | /adaFamilyTree/wsgi.py | 48d6a94c74425aa2630c35b1f3f884a193269139 | [] | no_license | JNEdrozo/adaFamilyTree | fdeb8e56a6aba2097e0837a135e8c09322e869fb | 313ac83a427c6a369909eb442040af7abba90882 | refs/heads/master | 2021-05-14T15:28:08.834881 | 2018-03-05T02:45:21 | 2018-03-05T02:45:21 | 115,992,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | """
WSGI config for adaFamilyTree project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from dotenv import load_dotenv
dotenv_path = str.join(os.path.dirname(__file__)... | [
"jedrozo@gmail.com"
] | jedrozo@gmail.com |
979965982b7efa1234131e8ca65ac9234f559ed4 | 3d2cdc459b582f855a7c37246648b63858d89e01 | /Events/urls.py | d0c84f66c12d880dfad82f9999422bb4ca4735c0 | [] | no_license | burggrafdev88/VendorManagementPortal | d0bf77ce6f7a08e6d3181a024e49546b3f50175b | 9db16ab1a4b7f0f3f06eb32eec4ac975f90b82db | refs/heads/master | 2023-03-31T16:39:59.862268 | 2021-03-22T14:21:11 | 2021-03-22T14:21:11 | 307,521,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | """VendorManagementPortal URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='hom... | [
"burggrafdev88@gmail.com"
] | burggrafdev88@gmail.com |
ffc6e5981af29a5bfa77a0890c1b5811e52b11ff | af35f890c0c6a2fa531f47a4c2ed132e8920190d | /python/leetcode/745_prefix_suffix_search.py | 37a78875c54f311925a20c6c60bf17f617d85477 | [] | no_license | Levintsky/topcoder | b1b17cd3fddef5a23297bcbe4e165508d09a655d | a5cb862f0c5a3cfd21468141800568c2dedded0a | refs/heads/master | 2021-06-23T10:15:27.839199 | 2021-02-01T07:49:48 | 2021-02-01T07:49:48 | 188,175,357 | 0 | 1 | null | 2020-05-19T09:25:12 | 2019-05-23T06:33:38 | C | UTF-8 | Python | false | false | 2,698 | py | """
745. Prefix and Suffix Search (Hard)
Given many words, words[i] has weight i.
Design a class WordFilter that supports one function, WordFilter.f(String prefix, String suffix). It will return the word with given prefix and suffix with maximum weight. If no word exists, return -1.
Examples:
Input:
WordFilter(["ap... | [
"zhuoyuanchen2014@u.northwestern.edu"
] | zhuoyuanchen2014@u.northwestern.edu |
b5a9dd0bd794792cccf4fae7dab47dec79c4d097 | 09dbb201b49bc2657ad171d457e62fa153602f23 | /algorithm/33-如何用一个随机函数得到另外一个随机函数.py | 5775eff4556a246ce5e681f21dc790b21334aece | [] | no_license | llame/algorithms_exercise | 4203fdeab8740e9430e6749f078bf8b7aa7be4eb | 8e8f072f0d086a7b22460ac083687fe49c7d689c | refs/heads/master | 2023-01-01T23:11:37.101504 | 2020-10-23T06:11:40 | 2020-10-23T06:11:40 | 163,731,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | # -*-coding:utf-8-*-
"""
@Author : llame
@Software: PyCharm
@Time : 2020/9/25 3:56 下午
"""
# 题目描述:有一个函数func1能返回0和1两个值,返回0和1的概率都1/2,
# 问怎么利用这个函数得到另外一个函数func2, 使func2也只能返回0和1,
# 且返回的概率为1/4,返回1的概率为3/4.
import random
def get_random():
a=int(round(random.random()))
return a
def get_random_1():
a=get_rand... | [
"llameli@163.com"
] | llameli@163.com |
809ace0b39fd07934ef546604bba2050a9982669 | d4ea02450749cb8db5d8d557a4c2616308b06a45 | /students/Net_Michael/lesson7/test_html_render.py | 4f024a2102ef72912891371551c1a6af772ad4dd | [] | no_license | UWPCE-PythonCert-ClassRepos/Self_Paced-Online | 75421a5bdd6233379443fc310da866ebfcd049fe | e298b1151dab639659d8dfa56f47bcb43dd3438f | refs/heads/master | 2021-06-16T15:41:07.312247 | 2019-07-17T16:02:47 | 2019-07-17T16:02:47 | 115,212,391 | 13 | 160 | null | 2019-11-13T16:07:35 | 2017-12-23T17:52:41 | Python | UTF-8 | Python | false | false | 1,376 | py | #!/usr/bin/env python
# coding: utf-8
import pytest
from io import StringIO
import html_render as hr
def test_element():
out_element = hr.Element("content message")
assert out_element.content == ["content message"]
def test_append():
append_element = hr.Element("append message1")
append_element.appen... | [
"Nettaimam@gmail.com"
] | Nettaimam@gmail.com |
e838e7ed68e61e13fba1cfd7a5ee2f76f4b579e0 | d16086e410ff57be2c16c0dbb1ebb425ff4d1947 | /patternSearch/patternSearch.py | ee9d12aaf1a9d00e48fea1e864240da1edf6c7bb | [] | no_license | FaroukElk/Rosalind | 6e06dace7d43444aa6e45efea6f5cba71c1b0536 | 6ebc5c1d379340e69095da6fbe30d4cd2abc429c | refs/heads/master | 2021-01-11T20:49:03.907426 | 2017-01-23T18:19:51 | 2017-01-23T18:19:51 | 79,190,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | """Searches for a pattern within a DNA sequence and
returns a list with the locations where the pattern occurs"""
def patternSearch(DNA, pattern):
locations = []
for i in range(len(DNA)-len(pattern) + 1):
DNA_slice = DNA[i:i+len(pattern)]
if DNA_slice == pattern:
locations.append(i+1)
return locations
prin... | [
"faroukelkhayat@outlook.com"
] | faroukelkhayat@outlook.com |
aa6675fca85df65adea866d06aa069e2bc263fba | 498dbd2932527d1e7f499e2d7887c4af05e1e425 | /5hu7_d0wn.py | 764ad721a05408f832a85fc6006c088a327c96d3 | [] | no_license | gauriz/py | 1ddabf24ae805b641793a7f27eb19c5f8ca2bfc7 | 3804951033d8fe144f11bad5a5635c91837e46b5 | refs/heads/master | 2022-11-17T10:10:55.196040 | 2020-07-16T09:20:26 | 2020-07-16T09:20:26 | 279,947,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import os
shutdown = raw_input("Do you wish to shutdown your computer ? (yes / no): ")
if shutdown == 'no':
exit()
else:
os.system("shutdown /s /t 1") | [
"gauri@focaloid.com"
] | gauri@focaloid.com |
5383e89e7fd17fdf4769c440ba13268284b5621b | 2caf6885511af24443e22aaa43cd679d694f6f80 | /note/my_note/first_month/day09/day08_homework.py | 08f00777fe58712d78bfcc4557bbbbd2ee0f1737 | [] | no_license | nandadao/Python_note | 7f9ba54a73af05c935b4f7e24cacb728859a6c69 | abddfc2e9a1704c88867cff1898c9251f59d4fb5 | refs/heads/master | 2020-11-25T18:29:50.607670 | 2019-12-19T01:28:02 | 2019-12-19T01:28:02 | 228,793,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | dict_commodity_info = {
101: {"name": "屠龙刀", "price": 10000},
102: {"name": "倚天剑", "price": 10000},
103: {"name": "九阴白骨爪", "price": 8000},
104: {"name": "九阳神功", "price": 9000},
105: {"name": "降龙十八掌", "price": 8000},
106: {"name": "乾坤大挪移", "price": 10000}
}
list_order = []
def print_commodity_i... | [
"1361335953@qq.com"
] | 1361335953@qq.com |
29723787e529f7cf19e2c9e4c2a7fad23597715b | f7f594f1d6958652cb065c2cd7075c27976c6cc4 | /PythonSocketIO/sockets.py | d72172348fb7ab316afb18149effec18d0e0247a | [] | no_license | eric26009/LiDAR-Capstone-2019 | c4d96acbaf080ee89a4bb65f559ee4e9c4148c3d | 85d35369bbb832ac977629cc2dfc0ab83fcebfde | refs/heads/master | 2023-03-03T10:44:50.322067 | 2019-08-28T07:17:06 | 2019-08-28T07:17:06 | 204,403,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import socketio # pip install "python-socketio[client]"
import json
# standard Python
sio = socketio.Client()
@sio.event
def connect():
print("I'm connected!")
sio.emit('onLidarStateChanged', "payload")
@sio.event
def onMoveByStepsTriggered(payload):
print("move by steps triggered")
print(payload["... | [
"ericfeldman@outlook.com"
] | ericfeldman@outlook.com |
34828399beb915cea5cdedb0525a8b4c0d71b95c | a2199be8de33a5890676856eacec6e503a5a3be1 | /1st+python+assignment+of+skillsanta.py | 0aadac84a0f4850a053795f6452c9463885c9a01 | [
"Apache-2.0"
] | permissive | tanmaymishra21/Code | dcd77d97783112656443ec698ad390dec20b285c | 8a1ef44dba6c1527ddc3dfb2246551a003b2adad | refs/heads/main | 2023-01-06T11:21:50.100700 | 2020-10-30T14:34:18 | 2020-10-30T14:34:18 | 302,079,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py |
# coding: utf-8
# In[1]:
#printing the maximum value and largest number in the list
data=[22,60,78,99,2,6,10]
print(max(data))
# In[3]:
#printing the second largest number in the list
data=[22,60,78,99,2,6,10]
data.sort()
print('second largest number in the list', data[-2])
# In[5]:
#first merge two lists a... | [
"noreply@github.com"
] | tanmaymishra21.noreply@github.com |
33859cb61e22b4f91fdf55683f1d74a7534f9566 | a1d1534962df22065f6566636d5ab5b6bb7c6bd4 | /hellopython/serializers.py | fc3a3f6a16aac5351c3de2bbba1b8872768c47a3 | [] | no_license | Apeopl/hello | a8adeae2d77ebd14dc294da01d4d1788f892e628 | fbb8d2999191307142c5be71ee777826a7496a7c | refs/heads/master | 2020-05-18T05:24:17.133706 | 2019-05-06T07:18:03 | 2019-05-06T07:18:03 | 184,205,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | from rest_framework import serializers
from .models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
class SnippetSerializer(serializers.Serializer):
id = serializers.IntegerField(read_only=True)
title = serializers.CharField(required=False, allow_blank=True, max_length=100)
code = serializers.CharField(st... | [
"zhengjinlei@edeMacBook-Air.local"
] | zhengjinlei@edeMacBook-Air.local |
88dca76b742c8a26697c487bb55bdd74b7c86779 | 25a894aa2177c64ce5c8c7ab77c53bc13bbbc916 | /Django/profiles_project/profiles_api/APIView/urls.py | 34b7d5a5ee1eaefd223d720af5f43380a8d0ea8b | [] | no_license | shivam199/Projects | 8b06a289aa0587ba3290f771e1f7215c1f7a8c19 | 4b47afcc6e812b22f95bd835333de0d048feace3 | refs/heads/master | 2022-11-12T19:12:24.177554 | 2020-06-26T07:04:54 | 2020-06-26T07:04:54 | 275,093,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.urls import path
from APIView import views
urlpatterns = [
path('hello-view/',views.HelloApiView.as_view()),
]
| [
"shivamsingh.tcet@gmail.com"
] | shivamsingh.tcet@gmail.com |
ad8f14900f1113202f8f7898cf22eeb757b38c04 | b8af5c6d0a27c8c157917f82bf75540043d9ed39 | /Chapter_1/1.3/namenum.py | edcbf02cb972804619138f2274efc36ee76e3d61 | [] | no_license | rishiso/USACO-Problems | bd650bb2694cfedc6aeca63533db81583946ce1b | 3252aab02ae10590cc8b67227a7e19e99f4764b0 | refs/heads/master | 2021-07-16T11:17:53.053533 | 2020-11-28T01:36:27 | 2020-11-28T01:36:27 | 225,743,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | """
ID: rishiso1
LANG: PYTHON3
TASK: namenum
"""
f = open("namenum.in", "r")
w = open("namenum.out", "w")
dict = open("dict.txt", "r")
names = dict.read()
names = names.split("\n")
number = f.readline()
number = number.replace("\n", "")
names = [e for e in names if len(e) == len(number)]
num_dict = {... | [
"noreply@github.com"
] | rishiso.noreply@github.com |
cb00c6e6fb74427b3aa52cdd486487c544077759 | 4006fa146861cb9bf9a367786951df284461c169 | /windchill.py | dcb0db3d88b425a31fda947489807c8cd3782028 | [] | no_license | ccase18/CS550-Fall-Term | c58c94f6b0a54395dff07ad2fadbadab3b6fabce | 7f5ac7a43e14b5300833ad16e654c3152623d99b | refs/heads/master | 2021-08-23T13:51:14.406172 | 2017-12-05T04:18:53 | 2017-12-05T04:18:53 | 112,652,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import sys
t = float(input('What is the temperature?? '))
v = float(input('And what is the wind speed??? '))
if -50 < t < 50 and 3 < v < 120:
w = str(35.74 + (0.6215*t) + ((0.4275*t) - 35.75) * (v**0.16))
print('The wind chill is ' + w + ' degrees')
else:
print('Sorry enter a wind speed value betwen 3 and 120 and a ... | [
"canaancase@Canaans-MacBook-Pro.local"
] | canaancase@Canaans-MacBook-Pro.local |
c0706709e5f266e7ceef233489e62c2b5f5c9834 | 3b88dcf9b7cd28386ad3ea557c38e2096e59153f | /ansibleawx/__init__.py | 7bddcf207bb4cf600f830ed48cf2ce9c97312091 | [
"MIT"
] | permissive | ChandlerSwift/AnsibleAWX-Client | a48c5209dc623ae000cda9725e15a849e987dc8b | 6030de8a5ee116c1839620e94b745e45c6759004 | refs/heads/master | 2023-04-04T10:50:30.565760 | 2020-07-25T03:27:48 | 2020-07-25T03:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from ansibleawx.api import Api | [
"marcos.diniz@4linux.com.br"
] | marcos.diniz@4linux.com.br |
9d2da1c148c1eb28261addf1b5e0432da5bd0623 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20190403/example_jupyter/02run-kernelapp.py | 9e4a677651e7a8fbc429a562bbc18e406e88e5aa | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 138 | py | from jupyter_client.kernelapp import main
# main = KernelApp.launch_instance こうなっているのでmainを使っても良い
main()
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
ee874271e1c806337273b45970bad55bef0a7d1a | 02537ef86b8aca4b1324557090e3c17805770f09 | /pink_led.py | 822cdb28fd584fe0e4027f6f1d6f42a3a8279dbd | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | ifurusato/scripts | 6e6bb7f3e608d70bae71ea1896488526440f0d0b | 2afaa88369ae1736b7449136f4a38f63fe90116e | refs/heads/master | 2023-03-21T18:53:47.160515 | 2021-03-17T08:45:06 | 2021-03-17T08:45:06 | 265,172,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 by Murray Altheim. All rights reserved. This file is part of
# the Robot Operating System project and is released under the "Apache Licence,
# Version 2.0". Please see the LICENSE file included as part of this package.
#
# author: Murray Altheim
# cre... | [
"ichiro.furusato@gmail.com"
] | ichiro.furusato@gmail.com |
38406c33b15ddc21372f111248d8405b59cef7b8 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/Lbq/bq-bs_MD_NVT_rerun/set_1ns_equi_1_m.py | b172df93ff15c6aaed13071699d2c538f9479f6d | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/Lbq/MD_NVT_rerun/ti_one-step/bq_bs/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_1_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
ab3171f459b006cf8312516cf0706e936772f2cc | 7b0c5ab11a50a1a8443a552e6ba39a060c895912 | /SIE507/venv/hw4/ApartmentPurchase.py | fc7d74bfdc39aa35ae67c4b13940b7764447e171 | [] | no_license | balmandhunter/oop_class | 8901c01026b9dbbe6f89d37a6e2d6a0bb9b7d5bf | 6abf55f9e1ebaf4a2d5f4cbffb84ed27048bf4b8 | refs/heads/main | 2023-04-18T03:59:42.022997 | 2021-05-06T13:38:49 | 2021-05-06T13:38:49 | 334,304,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from Apartment import Apartment
from Purchase import Purchase
class ApartmentPurchase(Apartment, Purchase):
'''This static method calls the user prompts from the parent classes, Apartment and Purchase'''
@staticmethod
def prompt_init():
args = Apartment.prompt_init()
args.update(Purchase.pr... | [
"berkeleyalmandhunter@gmail.com"
] | berkeleyalmandhunter@gmail.com |
d59159985a4f45e58b045558cc2cb0a0fc614574 | 76070a758fbd86ed289226860bb83768418cdb57 | /plugins/my_new_option.py | efc5983d5e372f3823836c11ad0b39ce5cfbc465 | [] | no_license | inkerra/python-tasks | c3ae9393ddfbab4bc06e11e16617a5f8d14b3272 | 08009819bf072d25c9231a8dc3bb7aa25a1b3bbd | refs/heads/master | 2021-01-20T00:40:15.843238 | 2012-09-14T14:02:40 | 2012-09-14T14:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from opt_plugin.plugin import MetaOpt, Opt
class MyNewOption(Opt):
@classmethod
def action(cls, val):
print "My new option is set to {}".format(val)
opt = '--act2'
value_type = int
default_value = 0
class D123(object):
def __str__(self):
return "D123"
class D1234(objec... | [
"inkerra@inkerra-desktop"
] | inkerra@inkerra-desktop |
c2b5c2cf4c0e71318bb6cf2103ad9ca3738100bf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2367/60691/272097.py | 6d63b90625ec0cf2e51f1d19128bfb9aacde9d2b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | n = int(input())
if n % 2 == 0:
print(-1)
else:
for i in range(1, 20):
l = []
for j in range(i):
l.append('1')
s = "".join(l)
testnum = int(s)
if testnum % n == 0:
print(testnum)
break
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
24ff0eaf61ebecc102e3769515330bb14c3f007d | 63ebf4326a8485c62944e2fbd102c302dc02c0ad | /calculadorafiesta.py | 457ed8c119287e582cc318ca8b896d82d5f3158d | [] | no_license | genesysrm/Python_DataScience | 7aba9c2d32058e1d3cb285910d06ca3836c26f60 | 4fc2ea8bc63982bc9bc11611dc5bf28c27911f02 | refs/heads/main | 2023-01-22T15:25:42.667507 | 2020-11-19T14:52:18 | 2020-11-19T14:52:18 | 314,279,094 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | class Festa:
def _init_(self, c,s,d):
self.comida = c
self.suco = s
self.deco = d
def comida(self, qua):
c = 25 * qua
return c
def suco(self, qua, saudavel):
if(saudavel):
s = (5 * qua)
#suco = suco - (suco*0.05)
else:
s = ... | [
"terceiro-gmerchan@icatuseguros.com.br"
] | terceiro-gmerchan@icatuseguros.com.br |
4d522ff9354206da526a83e3537226114e55b7d8 | 658707f12f02c057f3f7976ac020b07396376359 | /img_recognize/cnn_handwrite.py | a43bddf8d9aeaa402028db26dd619e2adf706beb | [] | no_license | lwq666666/ar_ocr_nlp_web | 8c42faf7cf3c66f1b21151be8702ea676130c280 | b977ae89bb1b360dcc45b4dc67c2c88bb93b7e84 | refs/heads/master | 2023-01-10T23:42:57.278631 | 2020-03-25T12:15:15 | 2020-03-25T12:15:15 | 249,963,047 | 0 | 0 | null | 2023-01-04T14:41:38 | 2020-03-25T11:41:43 | Vue | UTF-8 | Python | false | false | 12,099 | py | import tensorflow as tf
import os
import tensorflow.contrib.slim as slim
import random
import numpy
import cv2
import time
tf.app.flags.DEFINE_string("mode", "test", "train or test")
tf.app.flags.DEFINE_string("checkpoint", "img_recognize/checkpoint", "dir of checkpoint")
tf.app.flags.DEFINE_string("train_dir", "/User... | [
"1261707134@qq.com"
] | 1261707134@qq.com |
5c035449207a17df07ce270686655074a7e4a56a | 9fc768c541145c1996f2bdb8a5d62d523f24215f | /code/jPB371/ch07ok/dict_example.py | 7360aeaf11d44b2e88719a52fc6d5556685ddb27 | [] | no_license | jumbokh/pyclass | 3b624101a8e43361458130047b87865852f72734 | bf2d5bcca4fff87cb695c8cec17fa2b1bbdf2ce5 | refs/heads/master | 2022-12-25T12:15:38.262468 | 2020-09-26T09:08:46 | 2020-09-26T09:08:46 | 283,708,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # -*- coding: utf-8 -*-
dictStr = {'bird':'鳥', 'cat':'貓', 'dog':'狗', 'pig':'豬'}
#新增wolf
dictStr['wolf']="狼"
#刪除pig
dictStr.pop("pig")
#列出dictStr所有的value
print("dictStr目前的元素:")
for v in dictStr.values():
print(v)
#搜尋
print("搜尋dog==>"+dictStr.get("dog","不在dictStr"))
| [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
61575ab318d216749a261b7ee776b9197c0b61a1 | 49156df32b5be28514a5507c7bc26c2872fa7dfc | /second task/task2.py | f0f1f3d163ca0ffdf324644c3388247b50d035e5 | [] | no_license | ahmedshaaban97/MRI-tasks | 40123656e8bc0e8195f510b9b8a1428b31484407 | e450951dfc44ef721e22b121fe52baf45aab269a | refs/heads/master | 2020-04-22T07:40:26.446527 | 2019-06-17T23:51:17 | 2019-06-17T23:51:17 | 170,222,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,998 | py | import sys
from PyQt5 import QtCore, QtWidgets , QtGui
from PyQt5.QtWidgets import QMainWindow, QLabel, QGridLayout, QWidget , QApplication,QPushButton,QInputDialog,QSpinBox,QFileDialog,QProgressBar,QMessageBox,QGraphicsView,QSizePolicy,QComboBox
from PyQt5.QtCore import QSize,pyqtSlot,QTimer,QThread,QRect
from PyQ... | [
"ahmedshaaban97"
] | ahmedshaaban97 |
ef43030c0c8f4b27008999a73e61c4b81c8a4763 | d06b776440822a7e7971ec2616ceb064cc8ff0ac | /core/api/routers.py | 15925c6559bc244a29104dc0844743df8ef23aa8 | [] | no_license | holdbar/electroq | db42533bd7daff97ac109b82a66c58b90d16cc5d | 42a7e3565966b3315ab9814a171e549c3340a23b | refs/heads/master | 2021-04-09T14:34:47.794392 | 2018-04-01T09:48:59 | 2018-04-01T09:48:59 | 125,653,680 | 0 | 2 | null | 2018-03-25T18:15:48 | 2018-03-17T17:34:12 | Python | UTF-8 | Python | false | false | 180 | py | from rest_framework.routers import DefaultRouter
from core.api.viewsets import UserViewSet
router = DefaultRouter()
# registering viewsets
router.register(r"user", UserViewSet)
| [
"holdbarhet@gmail.com"
] | holdbarhet@gmail.com |
270f1bcbb22967b643e8806b6c98d02f31a38f9b | 481a4f156d97166d0f82e85a572137bc7d8ffbd2 | /AWSLambdaSynchCalendar.py | 98c528105e5d6195247dbce22f7616eceb02a032 | [] | no_license | rajeshpednekar/flufcode | db28f9f01e0e443c8e3f5f898d978733151d429d | d49ae2e7a22b3282fb32b7f2548025787015ce77 | refs/heads/master | 2022-11-14T09:01:32.853879 | 2020-07-05T03:05:58 | 2020-07-05T03:05:58 | 262,886,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,939 | py | #####################################################################
#### Lambda function: funcSynchCalendar
#### Author: fluff code
#### A boto3 python handler function
#### This lambda function is triggered whenever there is a
#### message in the SQL Queue. It reads the event messages as input
### from AWS... | [
"noreply@github.com"
] | rajeshpednekar.noreply@github.com |
0c10b24899012834b1ac521f5c9a3493e63f0a99 | 14ad7023d5440206f116f2c97db74d0b95c59b67 | /findcountour.py | 50dcbd94136c415d4b1339dd43eb6f2fc627e409 | [] | no_license | selmandridi/BlackscreenDetector | 69ffcea6b6a131ceadaadae340b6f596644a2f56 | d9525118f3286a208b7a5f72bf7b4dec2878371a | refs/heads/master | 2020-12-04T05:28:54.740490 | 2020-01-03T17:19:00 | 2020-01-03T17:19:00 | 231,632,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import cv2
import numpy as np
import time
import os
import datetime
import array
def sizeFiltering(contours):
y = 0
x = 0
w = 0
h = 0
filtredContours = []
heightmax = 200
widthmax = 200
widthMin = 100
heightMin = 100
for cnt in contours:
rect = cv2.minAreaRec... | [
"selman.dridi@comelit.it"
] | selman.dridi@comelit.it |
1e38c1f391c58cea34bcef59efc19ba38866231c | c452b7204d2f0817069874a57f3c8b0a0124b351 | /main.py | 54ce8a6880c3cb6d99cdf996945d5afa2cca80b3 | [] | no_license | SunsetGolfer/ConvertCSVFileDateFormat | 1710ab49b7ffbc7ecb8debbd688aab289adfab23 | 93bf7eae43cd64cc7b3ae9c6d3af42500fa7de98 | refs/heads/master | 2023-02-14T01:00:28.009468 | 2021-01-09T23:37:43 | 2021-01-09T23:37:43 | 328,267,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ⌘F8 to togg... | [
"jweichelt@Jorgs-MacBook-Pro.local"
] | jweichelt@Jorgs-MacBook-Pro.local |
d7568161d832b4180e4a39bd6746103eeafd6a9b | 240e245fbed52b54956bcc1f28d5f6522e95a3b2 | /factorial/loader/work/work_break.py | ed01c5f242a7233382c535792260e81a9f6b282d | [
"MIT"
] | permissive | hyper750/factorialhr | 47b9a5741b1b297e4341cfeebf39236a1802467d | fe48f73c5dd5b1300347db56b8c1f4709c6c59ec | refs/heads/master | 2022-08-11T16:35:30.355134 | 2021-04-06T07:18:48 | 2021-04-06T07:18:48 | 211,069,416 | 7 | 4 | MIT | 2021-04-06T07:18:49 | 2019-09-26T11:06:56 | Python | UTF-8 | Python | false | false | 1,112 | py | class WorkBreak:
def __init__(self, start_hour: str, end_hour: str, minutes_variation: int):
self.start_hour = start_hour
self.end_hour = end_hour
self.minutes_variation = minutes_variation
def get_start_hour(self) -> str:
"""Get the start hour of the break
:return: st... | [
"raulmarquespalmer_150@hotmail.com"
] | raulmarquespalmer_150@hotmail.com |
5d65c0cba54693d041f010966fda9b671c8d2e76 | 2d9e1cb8e1877b3fe1725a202649136ce5f7bd1e | /helllo/migrations/0001_initial.py | 610671ef02bf7ed85b828f1a3ac8f31d26b90519 | [] | no_license | soobinlee1713/apiproject | 7a62a993beabbc4da63c93a51c341d824a526b79 | 15c9ca1318f5c20865ef94c400fc0daec7c9a0c8 | refs/heads/master | 2020-08-31T16:32:31.756580 | 2019-10-31T09:55:16 | 2019-10-31T09:55:16 | 218,733,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | # Generated by Django 2.2.3 on 2019-10-31 06:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"noreply@github.com"
] | soobinlee1713.noreply@github.com |
4235979874e5ac83d7a5b5e6c24d6cc982bbab4e | 8846b8c64aa97a8abd0940e6ed3a527286e3009b | /02_RPS/action.py | 73817f9cc82c5489051ebe340da739ce2ff10e17 | [] | no_license | stianbm/tdt4113 | cfc0e514a4dd926975b533c5b41c5678032bf278 | ce84dc221e1cf938dc931c622dbc1cb5ecfa55f6 | refs/heads/master | 2020-07-09T13:48:31.935715 | 2019-09-23T13:45:14 | 2019-09-23T13:45:14 | 203,986,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | """Contains the class for possible actions"""
class Action:
"""Class for an action that the different players can perform"""
ROCK = "ROCK"
PAPER = "PAPER"
SCISSORS = "SCISSORS"
action_types = [ROCK, PAPER, SCISSORS]
def __init__(self, action_type):
if action_type in self.action_types... | [
"stian.malmanger@gmail.com"
] | stian.malmanger@gmail.com |
322a61c28286dc7c947a815b8b30a972a7d41373 | 671022d37e94aa53b85094b4084ad7afd31132c9 | /website/shortcuts.py | 878442a3100a808b9fdc0253e01357b496376e5f | [
"MIT"
] | permissive | gmferise/tree-model-demo | b1aa6724571425573cd5884503020c60272fb0d4 | 6305e033c1683651ddbfb45d9987c4f6461efdd0 | refs/heads/main | 2023-08-15T08:18:31.271625 | 2021-10-07T14:35:30 | 2021-10-07T14:35:30 | 414,634,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from django.shortcuts import (
render as original_render,
redirect,
resolve_url,
HttpResponseRedirect,
)
def render(request, template, context=None, content_type=None, status=None, using=None):
"""
Render with some automatically added context variables
"""
defaults = {
'request'... | [
"gmferise@gmail.com"
] | gmferise@gmail.com |
865269fec11f88e22a6a9fe77818422add57c727 | 1b85d130cca2334bde6135c27c66491f1225be5c | /models/models.py | a62bf5e7db1d3357ff8dbb2801274ef71c2948b5 | [
"Apache-2.0"
] | permissive | ksh/gpitraining | a1120d2aecd3089594bf0862dccf2b26fc509aed | 1873356c3eddb9c082ef67fc5452676b603cfa02 | refs/heads/master | 2021-01-19T10:23:00.035891 | 2013-07-03T13:05:35 | 2013-07-03T13:05:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,453 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"carlos.c.saraiva@gmail.com"
] | carlos.c.saraiva@gmail.com |
53a6dd1de601d8b9357c3613cb0a1c93f4bddf8e | daec47a34daebac2c00fe70f1dfa550dad6e0e9a | /0x0B-python-input_output/2-read_lines.py | e369be8069e6a4d7f1291aea84088fb783b25d0a | [] | no_license | dbravo0/holbertonschool-higher_level_programming | 70816f575279d08720f3c480797f0ce7ca3bdd40 | 99d98f42c1f53991aa49ed262faa2b49f5203151 | refs/heads/master | 2020-09-29T04:40:11.829269 | 2020-09-25T00:32:21 | 2020-09-25T00:32:21 | 207,944,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | #!/usr/bin/python3
def read_lines(filename="", nb_lines=0):
with open(filename, encoding="utf-8") as f:
if nb_lines <= 0:
print(f.read(), end="")
for i in range(nb_lines):
print(f.readline(), end="")
| [
"stevenbravobel@gmail.com"
] | stevenbravobel@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.