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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2355712075a733730ccd7d93e61854573372a8e | 769f6d88fd777459eb60eb1bbb0fba17cb20d963 | /Chapter05/05_01_Robots.py | cbb36dfa52b7f3c567c4f06bfda9bf6e6ebc3cb9 | [
"MIT"
] | permissive | PacktPublishing/Python-Web-Scraping-Cookbook | 141379d09abe2c7d8f408858a2eb44ff0fe3ef26 | 030eb974ba1437b2590b59d38f19fb697bbf9d4c | refs/heads/master | 2023-02-16T04:29:49.942243 | 2023-01-30T04:19:03 | 2023-01-30T04:19:03 | 120,744,571 | 115 | 105 | MIT | 2019-10-03T17:38:37 | 2018-02-08T10:08:48 | HTML | UTF-8 | Python | false | false | 305 | py | from reppy.robots import Robots
url = "http://www.amazon.com"
robots = Robots.fetch(url + "/robots.txt")
paths = [
'/',
'/gp/dmusic/',
'/gp/dmusic/promotions/PrimeMusic/',
'/gp/registry/wishlist/'
]
for path in paths:
print("{0}: {1}".format(robots.allowed(path, '*'), url + path))
| [
"packt.danishs@gmail.com"
] | packt.danishs@gmail.com |
9b5a738d95546509fb941e45bd30e9c155766dc2 | 12a8ab803a46ef41595bdbcffac24796c46d3796 | /hello_on_git.py | ea2602c5fdc76c1702540a916159a2a8945b81d5 | [] | no_license | Geoisnow/Git_rep_test | f64c270f5da0685ffd22663c164df54233e1386e | 2e4f82596e48a43430424111fa0fe837e147ea49 | refs/heads/main | 2023-03-22T02:35:09.609031 | 2021-03-09T14:29:12 | 2021-03-09T14:29:12 | 346,031,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | print("this is a py file edit on git client")
| [
"1291842875@qq.com"
] | 1291842875@qq.com |
872f46b1d5265e8af1c408c23647f1e3647142a3 | 29e91d422f0fcad92f0e25b3dbb9efd39dc01162 | /electronic-station/weak-point.py | 63745fe8a2295a4af4e98785b732a6fed26e2473 | [] | no_license | cielavenir/checkio | c206410b7d8d368e80ad0f66f6314097bd900bcd | e2dfcdef75cd68ca3cced159225b5433570bd85b | refs/heads/master | 2021-01-22T20:34:29.899146 | 2018-02-22T15:16:21 | 2018-02-22T15:16:21 | 85,328,995 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | w=lambda m:min(list(range(len(m))),key=lambda i:sum(m[i][j]for j in range(len(m))))
weak_point=lambda m:[w(m),w(list(zip(*m)))]
if __name__ == '__main__':
assert isinstance(weak_point([[1]]), (list, tuple)), "The result should be a list or a tuple"
assert list(weak_point([[7, 2, 7, 2, 8],
[2, 9, 4, 1, 7],
... | [
"cielartisan@gmail.com"
] | cielartisan@gmail.com |
a662169238d8efffad0afcf38270be4a9aa168b2 | 134d4bc9cb01ed4b01b1800944312c4fda1842a2 | /first_and_last_cahrcter_string.py | 62726b3f9b23981fd31fe629fd814da31d6dfd12 | [] | no_license | ruthie02/Python-Exercises | 1c446c54d10f09cf422a559b4183383f47587d0e | a6a9ac96356bfafef30e846bc242d7397b0c3ddb | refs/heads/main | 2023-03-08T09:15:53.202521 | 2021-02-21T01:29:03 | 2021-02-21T01:29:03 | 340,790,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Write a Python program to get a string made of the first 2 and the last 2 chars from a given a string.
# If the string length is less than 2, return instead of the empty string.
def strings(chars):
if len(chars) < 2:
return("")
else:
return(chars[:2]+chars[-2:])
print(strings("w3res... | [
"noreply@github.com"
] | noreply@github.com |
57c50313dfc25f4e381feaf37b3a27bc0ca2c1a1 | d7da14829335235fbd35f01e351742eec85789a9 | /highwaysim-master/Final Project/highway_simulator1.py | 477920747159b88a44e7b2069f8a5fe1104838ac | [] | no_license | ShashankComandur/highwaysim | 7d069b1271afa68ed05e1b45c14f9b3cf7c9edd3 | 72aabd90e8aa19e39f7c7b431ed68a62d9b40dd5 | refs/heads/master | 2020-03-09T20:03:55.178641 | 2018-04-27T17:43:20 | 2018-04-27T17:43:20 | 128,973,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,522 | py | # APCS-P PT
# 4-30-18
# Shashank Comandur
#--------------------------------------------------------------------------------------------------------------------
# Imports
import pygame
import random
# Game Engine Initialization
pygame.init()
# Window
SIZE = (800, 600)
TITLE = "Highway Simulator"
scr... | [
"noreply@github.com"
] | noreply@github.com |
bace40c581842b7cd0036baae4211369cff5dc0c | eed19eea3bd09471f3d1b5ec4d8cb6d58aa597c6 | /utils.py | b03453de4e888268afb7fc62c146122b1a1c25a5 | [
"Apache-2.0"
] | permissive | hviidhenrik/A3 | 0421c2483ab9dca701a09713d4df13c3db0a5511 | 052c99487412e21593e5690a6f80b73509e0a236 | refs/heads/master | 2022-11-10T17:47:19.866808 | 2020-06-23T16:03:07 | 2020-06-23T16:03:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from pathlib import Path
# The path the project resides in
BASE_PATH = Path(__file__).parent
# Number of anomaly samples defined globally
N_ANOMALY_SAMPLES = [5, 25, 50, 100]
| [
"jpschulze@aisec.fraunhofer.de"
] | jpschulze@aisec.fraunhofer.de |
d6b8983002b4ac5f964d347fa89ea307ea1b1d9b | c3126ad2a8b6c48419892ead051b0a6dbdad6efc | /route/__init__.py | c6aab6985688ac931e8e7defecd529546ebbbcc0 | [] | no_license | xieyalong/python_tronado_web | c927df649c24041451f8c4aa1cd99bddfa0b8800 | 571187a54da27d8aa460268b470481fa7a758b08 | refs/heads/master | 2020-09-14T11:54:35.448127 | 2020-01-09T10:02:36 | 2020-01-09T10:02:36 | 223,121,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | #说明:路由 | [
"123456"
] | 123456 |
d7df7f1da5cc58557f31eb98c326bba26a4531df | e1a9a44b5447a4d7087f1346ab32a0203a687d57 | /boards/templatetags/form_tags.py | 6849228e139f68be93f9b6a06bef669fb2502ba5 | [] | no_license | iam-lama/django-boards | f64c10fe9c3bc9ecc51c01c1f3ec4458a81213c8 | b8e93ba2f1ce387abd9f2aa300c1e23fec5f5ef6 | refs/heads/master | 2020-04-06T16:27:11.442317 | 2018-11-15T17:12:35 | 2018-11-15T17:12:35 | 157,620,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from django import template
register = template.Library()
@register.filter
def field_type(bound_field):
return bound_field.field.widget.__class__.__name__
@register.filter
def input_class(bound_field):
css_class = ''
if bound_field.form.is_bound:
if bound_field.errors:
css_class = 'i... | [
"lama.m.ghool@gmail.com"
] | lama.m.ghool@gmail.com |
c62f03494e398a4a2046275b6217b36c305e5616 | bd6c42d9c87e2616e13615ee164426a8f898d500 | /color_detection.py | 6fe625af48bad881a3cd25c19645ff32b3b86e8a | [] | no_license | AditiRavi/Color-Picker | d8a6bd7660715d50c18f425830a3ab3874ce8fdc | 540f3d609b239d07b3248db5caa975d1e6f5c066 | refs/heads/main | 2023-06-09T09:42:08.545675 | 2021-06-28T20:31:23 | 2021-06-28T20:31:23 | 381,153,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | import cv2
import numpy as np
import pandas as pd
import argparse
ap = argparse.ArgumentParser()
ap.add_argument('-i', '--image', required=True, help="Image Path")
args = vars(ap.parse_args())
img_path = args['image']
img = cv2.imread(img_path)
clicked = False
r = g = b = xpos = ypos = 0
index = ["color", "color_na... | [
"69166723+AditiRavi@users.noreply.github.com"
] | 69166723+AditiRavi@users.noreply.github.com |
6a7c92ec99ba76c2857b05b1f826cd7268b1775c | 3ca0ed72005e061c22924095358987a0c17efd24 | /blog/migrations/0001_initial.py | d1fc170e874fc798c46d807f2062ef991366fabf | [] | no_license | Noveritas/my-first-blog | 77930d39773f24e673a716ad08525155b25c33f6 | 72a46d0250fa8a3af6525146c86147eaa2ecff32 | refs/heads/master | 2020-06-19T04:44:00.315072 | 2016-11-27T23:00:18 | 2016-11-27T23:00:18 | 74,919,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-27 22:30
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"tekkenpaul@gmail.com"
] | tekkenpaul@gmail.com |
695145d7f8e31a5441468ee022f2a5c58cc2ac55 | 94ed41c270a28f44d4a46f583f6a0e98b0187932 | /setup.py | 29abee105c29b9ed85b46482977fe08a61866c56 | [
"MIT"
] | permissive | dingus9/ansible-coverage-callback | f08ec1847202463bb5fd83864ce48f00d113d106 | e8953340b7406f040d6f2db468d93fa67efc0a1c | refs/heads/master | 2023-02-20T08:42:45.105416 | 2021-01-25T22:32:52 | 2021-01-25T22:32:52 | 327,728,793 | 0 | 0 | MIT | 2021-01-25T22:32:54 | 2021-01-07T21:28:43 | null | UTF-8 | Python | false | false | 916 | py | import os
import re
from os import path
from setuptools import setup
VERSIONFILE = path.join("ansible", "plugins", "callback", "coverage.py")
VSRE = r"CALLBACK\_VERSION\s\=\s['\"]([^'\"]*)['\"]"
def get_version():
verstrline = open(VERSIONFILE, "rt").read()
re_result = re.search(VSRE, verstrline, re.M)
... | [
"l.aminov@tinkoff.ru"
] | l.aminov@tinkoff.ru |
a7866ff24f8c0be90206e122ad5f906e2287e84f | 5fc359e00cf5e4d4f7aaf8500e3277ee761ed95b | /task5.py | 4b59fd1d549e82666f24f9cc9fd5d10ed8fedd72 | [] | no_license | sattwik21/spectrum-task-2 | 753c9923fe7bd2376c258f8d50c28369a3fa7895 | abae659d7d6f98271b1e6ad74eed32498efee0ed | refs/heads/master | 2022-12-24T04:54:18.468270 | 2020-10-01T05:14:09 | 2020-10-01T05:14:09 | 265,745,250 | 1 | 1 | null | 2020-10-01T05:14:10 | 2020-05-21T03:27:46 | Python | UTF-8 | Python | false | false | 101 | py | set1 = {1,2,3,4,5,6,7,8,9}
set2 = {1,3,4,6,8,11,22,34,51,67}
set1.difference_update(set2)
print(set1) | [
"sattwikpalai21@gmail.com"
] | sattwikpalai21@gmail.com |
1edc95666f3d86355004ef680e685af10a91d640 | 1492850e61a32fd2b177769369423cf3b5e05070 | /Positioning_Tool/reduced_order.py | 1c59b631eb3cbb878449b8e7bebdc4b5632e731a | [] | no_license | 13269252368/ReducedOrderBasis | 09e0b28228c62c973aad53e54b1645daa65fbd53 | 183ed9abbfdc5fbf504b9982fbb1f3932825faa0 | refs/heads/master | 2022-03-12T21:56:30.210639 | 2019-01-10T16:23:07 | 2019-01-10T16:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # Add files in the parent folder to the path
import sys
import os
from os.path import splitext
sys.path.insert(1, os.path.join(sys.path[0], '..'))
import numpy as np
import fbpca
import numpy as np
from scipy.optimize import lsq_linear
def powern(n):
num = 2
while num < n:
yield num
num = int(num * 1.5)
def r... | [
"huangq1234553@gmail.com"
] | huangq1234553@gmail.com |
54ab83d57e45f02e80d7bcc497ba448daca137ba | cd5033b372ec690352668e6f13304a3de4aa78df | /back/business/services/binnacleService.py | f464b614f5163ffddf87e152299e82d18ba767c3 | [] | no_license | MrLuizao/WebApp-PGV | 45b6a49fbe2c556818c80b9cac211ef84454eb66 | 198721846d2ac1159ef97cdae37b84b17ea2e65b | refs/heads/master | 2023-01-24T07:22:29.985718 | 2020-03-18T23:22:11 | 2020-03-18T23:22:11 | 248,348,818 | 0 | 0 | null | 2023-01-07T16:06:12 | 2020-03-18T21:39:30 | Python | UTF-8 | Python | false | false | 5,498 | py | from models.models import *
import json
import requests
import uuid
import qrcode
from utils.auth_api import *
import json
from business.services.xlsx import XLXS_Generales
from datetime import datetime, timedelta
from business.services.commonsService import CommonsService
import config as CONF
commonsServ... | [
"noreply@github.com"
] | noreply@github.com |
03110876a2d3b321cfd9a79da57f07221226b258 | e14bfcb95159ccdb71117834203a69b22f92e62d | /парсер.py | cec0c4c462da3b85d9ffed73539b17b71396c3ab | [] | no_license | tatarinova0903/PythonLabs1 | e81cf190ffa5ae18d634e557dbd1b40daa578ca7 | 416d4ccaef38cabc95d9610f2aa9ff040f958d16 | refs/heads/master | 2023-04-07T04:31:10.777977 | 2021-01-22T13:02:20 | 2021-01-22T13:02:20 | 331,944,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | numbers = ['0','1','2','3','4','5','6','7','8','9']
a = input("Введите число: ")
a_in_chars = []
for char in a:
a_in_chars.append(char)
is_float = True
length = len(a_in_chars)
ind = -1
for i in range(length):
if a_in_chars[i] == '.' or a_in_chars[i] == 'e':
ind = i
if ind != -1 and length != 1 and... | [
"tatarinova0903@yandex.ru"
] | tatarinova0903@yandex.ru |
872cf7c0ebe19dd8a7014ca3e2e6c04e808f771b | 0ff79438d32c1761f348b5d4d677195fb03feda9 | /fill_try.py | c6fb63be3acbf7294da2cf0a6336df4c4f223084 | [] | no_license | 1gitGrey/fill_in_the_blanks | 2eac53e692eee0ff5c7fc8a730ee5f3506405c90 | 02d7f914386bb4a1b94b5d35522577561d90de07 | refs/heads/master | 2020-06-20T15:34:22.520307 | 2016-12-02T23:25:07 | 2016-12-02T23:25:07 | 74,856,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,645 | py | #encoding=utf-8
# Grey Grissom
# Create Your Own Quiz -- Stage 2 -- NDP
# Global Scope Variables for Quiz:
spaces = ['____1____','____2____','____3____','____4____','____5____']
#----------------------------
easy_quiz = '''
On November 8, 2016, Donald ____1____ stunned millions of people both
worldwide and abroad as... | [
"grey.grissom@gmail.com"
] | grey.grissom@gmail.com |
f27c3965e7d9dff8e0b4c695e373d68eb6524979 | 646f7d54dd664b942c41ba708f20587277a2d3f0 | /Event_Mnt/PrtRg/views.py | 7dd8e1cdfe6c9246c5f9a13492e2bfdf7b8d94b2 | [] | no_license | AjaysinhRajput2802/woc3.0-eventmanager-Ajaysinh-Rajput | b8d46e20248ff1cfe41cfe73df14a7d8fff9d3a6 | 36e160ebde039f7b58714c83c85130a796dd1e10 | refs/heads/master | 2023-06-01T03:01:13.342112 | 2021-06-16T09:39:10 | 2021-06-16T09:39:10 | 202,167,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | from django.shortcuts import render,redirect
from .models import participant
# Create your views here.
def participantRg(request):
if request.method=='POST':
name = request.POST['eventName']
number = request.POST['mobile']
mail = request.POST['email']
rgT = request.POST['type']
... | [
"ajaysinhrajput2405@gmail.com"
] | ajaysinhrajput2405@gmail.com |
83d8e7ca934db2de8ed827172cff2f8794ca29de | 685f4474699d769dae88537c69f5517ac13a8431 | /EL258.py | b7ef048ddcb0d6128037a7c929726637dd19012c | [] | no_license | Pumafied/Project-Euler | 7466f48e449b7314598c106398c0be0424ae72d5 | 0c3e80a956893ce1881a9694131d52b156b9d3d8 | refs/heads/master | 2016-09-05T22:45:09.733696 | 2013-04-20T04:46:48 | 2013-04-20T04:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | # A sequence is defined as:
# gk = 1, for 0 k 1999
# gk = gk-2000 + gk-1999, for k 2000.
# Find gk mod 20092010 for k = 1018. | [
"pumafied@gmail.com"
] | pumafied@gmail.com |
5a8c8eb559f6828c3ec30c7fd98f12d764ebd019 | 5185aad8692c7539d1b2d6340fad3b5711295e49 | /oncoseq/rnaseq/pipeline/inspect_library_analysis.py | f42fa3cc450c129f213e02651c2af876f68a920a | [] | no_license | yniknafs-mctp/oncoseq | 3ecdfc9dc3c0d3591279aa07a50e5029a032df0f | 11c76fd6d8da2f114e0c63f282bd68b00b2368a7 | refs/heads/master | 2021-01-15T23:40:10.922303 | 2014-11-10T15:58:38 | 2014-11-10T15:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | '''
Created on Dec 5, 2012
@author: mkiyer
'''
import argparse
import logging
import sys
# local import
import pysam
# project imports
import oncoseq.rnaseq.lib.config as config
from oncoseq.rnaseq.lib.libtable import FRAGMENT_LAYOUT_PAIRED
from oncoseq.rnaseq.lib.inspect import inspect_sr_sam, inspect_pe_sam, Rnase... | [
"matthew.iyer@3deb8bab-1f0f-d856-ab53-30b0a50da13b"
] | matthew.iyer@3deb8bab-1f0f-d856-ab53-30b0a50da13b |
16c9ff0ad43095060086d3b15398ee7c9f0a718b | 2bb7654e097f6fc662ec7937c0191d4787cef371 | /crawler.py | e98a7d76953fd56c23cace99b734be33c52b6362 | [] | no_license | duckingod/baidu_baike_corpus_crawler | 38d64a2b43561b2dc23ec9f74ff46d971b64c9d2 | c7429867adf68039d6a122f52bcabb607848b4e4 | refs/heads/master | 2021-01-12T07:16:23.727694 | 2016-12-20T11:46:47 | 2016-12-20T11:46:47 | 76,931,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py |
class BaiduBaikePageGetter:
def __init__(self):
self.n = 0
self.viewed = set()
self.viewed.add(-1)
self.id_rng = (0, 19343260)
def url(self, n):
return 'http://baike.baidu.com/view/' + str(n) + '.htm'
def is_error_page(self, soup):
return soup.find('div', a... | [
"kingoduck@gmail.com"
] | kingoduck@gmail.com |
4a8ca4e35e89d267c9722cdb36810222b7dfb7ee | 4f6b431d74d6b6c13712717808c18ef845dfbc78 | /Text/ReverseString/reversestring.py | bcd6ea1d56cb6f40bd8478318be60358556d2fd0 | [] | no_license | LiBrian415/PythonProjects | e40551864c5b2f6eb1f38202f60afb4e1e073e98 | 3554e112b704912833850d587097c486999e11e7 | refs/heads/master | 2020-03-29T04:14:13.033420 | 2018-09-20T22:30:43 | 2018-09-20T22:30:43 | 149,521,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def main():
s = input("Input the string you want to reverse: ")
lst = list(s)
l = 0
r = len(lst) - 1
while r > l:
temp = lst[l]
lst[l] = lst[r]
lst[r] = temp
l += 1
r -= 1
print("".join(lst))
if __name__ == '__main__':
main()
| [
"librian415@gmail.com"
] | librian415@gmail.com |
a4819156f8280adc13e4b24138fd256e7831259d | 5e8342e4f6e48688f4a0079310e8f0b5e5386044 | /Files/converter/csv_to_xslx.py | 1e36a0c1b8ecd51359d24eb746a533d716f2d389 | [] | no_license | fernado1981/python_ | 27a154406b5fba7e18da418bc5f75c58f3ccc24f | 7d846cd332405464fa14707ea3f2286a918fc9de | refs/heads/master | 2023-02-15T19:30:02.257345 | 2021-01-21T10:35:46 | 2021-01-21T10:35:46 | 277,186,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import pandas as pd
read_file = pd.read_csv ('../asociacion.csv')
read_file.to_excel ('../aso.xlsx', index = None, header=True) | [
"fernando.manrique.contractor@bbva.com"
] | fernando.manrique.contractor@bbva.com |
377f42c14140d5f9cf857e48a124ed34782dbece | 002cba8b40e2c1450feb6ebf42997584d713e946 | /jaodelivery/web/views.py | 813b4d13347e69705bc61925dd48d17588db17e4 | [] | no_license | arthursilva09/jaodelivery | 59fd579ea4477b0666fb297367d6276ac33d24db | 5b6e92ba89e52e26c3cc896a86de4d8926fa5536 | refs/heads/main | 2023-08-25T16:51:09.176135 | 2021-11-03T00:22:19 | 2021-11-03T00:22:19 | 424,038,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,794 | py | from django.shortcuts import redirect, render
from django.contrib.auth import authenticate, login, logout, update_session_auth_hash
from django.contrib.auth.forms import PasswordChangeForm, UserCreationForm
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from .forms import ... | [
"arthurgust69@gmail.com"
] | arthurgust69@gmail.com |
9d0b8f1020ebe65adaa396f91512d5b741bb77dc | d0cef99c4dbc0f80a098607aa7fab1585d9c57ec | /cirq-core/cirq/ops/boolean_hamiltonian.py | 0be4a2a7241a4e75a8cde38b2703a06a1604b81d | [
"Apache-2.0"
] | permissive | peterse/Cirq | e58fb34032fedc710e117a5a0e52f37e3bcb3735 | 31daa9410a0e1e1ac3da38109aa8ce3a15aed17b | refs/heads/master | 2021-11-05T19:44:44.852515 | 2021-10-21T02:55:29 | 2021-10-21T02:55:29 | 170,371,489 | 0 | 0 | Apache-2.0 | 2019-02-12T18:43:39 | 2019-02-12T18:43:39 | null | UTF-8 | Python | false | false | 14,496 | py | # Copyright 2021 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | noreply@github.com |
eefb9fe1b30fd25edc8b9aa369eb2d8743504550 | 7c26f08f666273f0717382382482d92a83d07fbb | /django/tutorial/crud0416/movies/views.py | e4329fe11ad0c3be543e4d09ee087fdec27033dc | [] | no_license | kimyounghoon93/TIL-c9 | f0d7cd574a63ab87545a197ff3d659979c80ed50 | 07301b51cb757e101d44257d71afa61639147378 | refs/heads/master | 2020-04-17T17:17:56.494719 | 2019-05-02T03:09:59 | 2019-05-02T03:09:59 | 166,777,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.shortcuts import render
# Create your views here.
def hello(request):
return render(request, 'hello.html', {})
def hi(request, apple):
# print(apple) 을 해놓으면 서버켜놓은 터미널에 요청한 주소의 apple부분이 나온다
print(apple) # ('단순한문자열':)
return render(request, 'hi.html', {'banana':app... | [
"busanteam_business@naver.com"
] | busanteam_business@naver.com |
299b53e0d2dda81682265b3cd1289d5cb5b5425a | 5f806ddab1ca60e3cbd576f57768940bbb5a62c3 | /sample/__main__.py | b79fce6d3c2b9325b967544f567746a87a0e77fc | [
"BSD-3-Clause"
] | permissive | pyapp-org/pyapp-messaging | 1f56c3a1ab61df196c44cb7fc320fad0e8796526 | 159dede0d9a9823997dd37641cc2f46b139d24e3 | refs/heads/develop | 2022-10-10T15:33:58.625747 | 2020-08-20T03:01:40 | 2020-08-20T03:01:40 | 195,380,641 | 1 | 0 | NOASSERTION | 2022-09-29T00:02:25 | 2019-07-05T09:24:28 | Python | UTF-8 | Python | false | false | 67 | py | from sample.cli import main
if __name__ == "__main__":
main()
| [
"tim@savage.company"
] | tim@savage.company |
d31c00378fae873a92c0da3ed705d779ce01936a | 92ad0da5fa4aa5aa89ccb3e58fe19822ca929219 | /server/test_app.py | db5e265e94de253720bc258626364280cd39521d | [] | no_license | x1mrdonut1x/BuoyStats | 7625e0d3041efecdbfa98d773f410f7b307d658b | 610caecf9ce554f1a6520c94850da6e6a4297673 | refs/heads/master | 2020-03-10T12:20:25.642405 | 2018-06-05T19:49:22 | 2018-06-05T19:49:22 | 129,375,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | import unittest
from app import listener, extractData
text = "Avg Wind:19kts, Gust:26kts, Wave Height:0.9m, Wave Period:4s, Wind Dir:140 °(SE), Gust Dir:135 °(SE) at 15/04/2018 09:18:00"
data = {
"created_at": "Sun Apr 15 08:24:27 +0000 2018",
"id": 985433660416495616,
"id_str": "985433660416495616",
"... | [
"alex@niznik.info"
] | alex@niznik.info |
e029887d12b7ae495e426e2301094b410b3f5302 | 46f1e7c1d81f271b2a3357b2e133049893725d82 | /Solution/动态规划/一维/70. 爬楼梯/动态规划1.py | 5f06161b6ab8f5ae526b7d050d229ba88cb1390b | [] | no_license | WeiS49/leetcode | 203fed67773592a45186c99fd6a2f16dff426c3e | 76ddcec959c18164ae7efb564f2287981f5ab5ca | refs/heads/master | 2023-08-13T16:06:45.152951 | 2021-09-26T15:36:06 | 2021-09-26T15:36:06 | 319,033,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #
# @lc app=leetcode.cn id=70 lang=python3
#
# [70] 爬楼梯
# 动态规划, 没有用实际操作去运算f(n)=f(n-1)+f(n-2)
# 而是在找到逻辑后, 使用加法完成方法数量的计算
# 时间复杂度: 单层循环, O(n)
# 空间复杂度: 占用空间随楼梯数n线性变化, O(n)
# @lc code=start
class Solution:
def climbStairs(self, n: int) -> int:
dp = [0] * (n + 1) # 创建数组, 保存每一级的步数, 考虑到dp[0], 所以长度+1
dp[0... | [
"swh_1C3@outlook.com"
] | swh_1C3@outlook.com |
33bca2f934b26984b4c280f4d6284adba7ff2eae | d90e3de4731a2bf8f5bba787b141975660045fa6 | /actions/action_age_or_equipe.py | 43265880c7e5a0a22a2b11791e32d21601be74e8 | [] | no_license | pH0xe/L3-Info-Projet-CEBD | 07d105b8c3ffaf602e691f78ab2dbdddf7b3dde3 | d7632d77cde18f9c026bc2d2f83aafed3cc2cd16 | refs/heads/master | 2023-01-21T15:43:46.401512 | 2020-12-05T10:20:27 | 2020-12-05T10:20:27 | 315,651,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py |
import sqlite3
from utils import display
from PyQt5.QtWidgets import QDialog, QTableWidgetItem
from PyQt5.QtCore import pyqtSlot
from PyQt5 import uic
class AppOrEquipe(QDialog):
# Constructeur
def __init__(self, data:sqlite3.Connection):
super(QDialog, self).__init__()
self.ui = uic.loadUi(... | [
"noreply@github.com"
] | noreply@github.com |
85e67c2d1e7013490c9a997b7aec37e41436d2c4 | 2913d211ae8f347b9f94f5cf0e656c1a4b51e746 | /weather.py | 21ffeebbeb8295bf4afd0de8a8744bf7da593706 | [] | no_license | hluo26/Python-PostgreSQL-Implementaion | a1858a7ca83c2d5ed0748de28d99436b99e36774 | db1ca6d04b6848dc14db268937c73f6914a7802b | refs/heads/master | 2020-03-22T06:41:38.210125 | 2018-07-15T08:26:39 | 2018-07-15T08:26:39 | 139,651,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | import urllib.request
import json
import re
def main():
name = '93452'
key = '4d9cffc8109f4e2f9be310685d5ab9c6'
url = 'http://api.openweathermap.org/data/2.5/weather?zip=' + name + ',us&appid=' + key
print(url)
html = urllib.request.urlopen(url)
print(html)
data = json.loads(html.read())
... | [
"luo1993826@gmail.com"
] | luo1993826@gmail.com |
e4118edb68dc97fbff6cb3bc7d8f9cea652a015e | fa04f38341db254e03b55b178df1156f13929f23 | /loans/settings.py | 39c00b1251f1fd566587f9611216efaeee3b5184 | [] | no_license | trubopl/loans | ba7dfe358daaffc0a353dc9036d448a9f45a843f | 5759b824bfdc5d7da1a3b368ab5c981f5155db24 | refs/heads/master | 2020-03-22T14:37:29.266591 | 2018-07-24T20:38:35 | 2018-07-24T20:38:35 | 140,191,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
# SECURITY WARNING: keep the... | [
"turbopozyczkapl@gmail.com"
] | turbopozyczkapl@gmail.com |
f6186750cbdcc880e01a825e3294cb4d614820c1 | 989c74252fddf1f2fd58b0e2a7df0699bae845a6 | /database/gmutedb.py | 2eba1a00f20ee1b6fd4e5ae2f2aa44e247f56acf | [
"BSD-3-Clause"
] | permissive | fakeenemy01/Speedo | b2640d2739d7e75d5de11a909648b76211671212 | e1494aea1ec04325ee185ca8af2ea1be3a3de5f3 | refs/heads/main | 2023-07-12T20:16:17.302471 | 2021-08-20T05:10:19 | 2021-08-20T05:10:19 | 398,198,143 | 0 | 1 | BSD-3-Clause | 2021-08-20T07:50:30 | 2021-08-20T07:50:30 | null | UTF-8 | Python | false | false | 683 | py | # Copyright (C) 2020-2021 by TeamSpeedo@Github, < https://github.com/TeamSpeedo >.
#
# This file is part of < https://github.com/TeamSpeedo/SpeedoUserBot > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/TeamSpeedo/blob/master/LICENSE >
#
# All rights reserved.
from... | [
"noreply@github.com"
] | noreply@github.com |
f1ecf278eb66f23eb3766cafd5f912ccf874df6d | ee14c360e8146d90b1594414a402e4d54a359d50 | /4 CUARTO/1 Cuatrimestre/Desarrollo de Aplicaciones para Internet - DAI/Practicas/P6/sitio_web/restaurantes/models.py | 429dda4322e212ec361a7566295ccbbdfd606bf7 | [] | no_license | rubcv/INGENIERIA-INFORMATICA-ETSIIT-UGR | bb8dfa96a221eb77a7d500f93749f70019e9fee3 | 1c8acd43b531281593811d5cc592043c0dc145da | refs/heads/master | 2023-03-24T22:48:06.422707 | 2021-03-18T18:42:17 | 2021-03-18T18:42:17 | 192,539,002 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.db import models
from pymongo import MongoClient
# Create your models here.
client = MongoClient()
db = client.database.restaurantes # base de datos & coleccion
# Creacion del modelo plato
class Plato(models.Model):
platos = models.Manager()
nombre = models.CharField(primary_key = True, max_len... | [
"noreply@github.com"
] | noreply@github.com |
56f56cde196c59589a09411826b4697b18117cb6 | 656a143bf3ddf5f7c8a8043b52804677b1a782b7 | /MarkovChain/markov_chain.py | 313cff4709cc563957ec8d81ca5d94d1c166bba1 | [] | no_license | josdas/ML-Algorithms | 231862dc5097fe8c64d26d90355d187d4c172fe8 | 2b1115fa28680e1ca2087359c3b94cdcb85f0c30 | refs/heads/master | 2021-09-16T12:44:45.423041 | 2018-06-20T22:48:56 | 2018-06-20T22:48:56 | 106,044,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import numpy as np
def chain_coding(mchain):
absorbing, nonabsoring = {}, {}
for v, e in mchain.items():
if len(e) == 0:
absorbing[v] = len(absorbing)
else:
nonabsoring[v] = len(nonabsoring)
return absorbing, nonabsoring
def qr_matrix(mchain, absorbing, nonabsorin... | [
"josdas@mail.ru"
] | josdas@mail.ru |
a44362a2728f378db92f7ffc90185d6055075d2a | 856f650d603bdfc883e52be49171eb6e9360db1b | /Development_Code/Main_Process/Carego_Customer_Reports.py | 079f2d7d013159b50ee06da921eae6fcaadd7293 | [] | no_license | ripanmukherjee/Robotic-Greeter | 4390f48fd7b9ffcd9fc46947704c129652900033 | b38e499b9f3763b74bd30cd61e5fe243be679f0f | refs/heads/master | 2022-11-23T19:40:01.855833 | 2020-07-26T11:17:19 | 2020-07-26T11:17:19 | 266,240,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,425 | py | #!/usr/bin/env python3
"""
# **********************************************************************************************************************
# Project: Robotic Greeter - McMaster University - CareGo Tek
# Program Name: Carego_Customer_Reports.py
# Author: Somak Mukherjee
# Date: Friday 24 Apri... | [
"ripanmukherjee@gmail.com"
] | ripanmukherjee@gmail.com |
fc841a743f196a22dc19297aca393463ac30f1a6 | 70780114cab7b023b1e6fac0f4d8fd45ade8f1bf | /images/migrations/0001_initial.py | 45e70a50637ed78c9369737434ee2d313f491d69 | [] | no_license | 893701716/bookmark | 75be9530507194e0d64143d416638dd8897e2398 | 15e8a3a7045aaae5128e473cca9ec44cca7f3fa8 | refs/heads/master | 2020-06-23T22:09:52.873473 | 2019-07-25T06:00:45 | 2019-07-25T06:00:45 | 198,766,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # Generated by Django 2.2.3 on 2019-07-24 00: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),
]
ope... | [
"893701716@qq.com"
] | 893701716@qq.com |
920bb6699334939953af78bfd3b0f193b52fee3c | fdc52ed2a11e83ef88d9fb77a436cf7cf9842bd5 | /Mosh_4_Type Conversion_AS.py | de78ca0743495cecbbc17be851cfa9de49b9e0c9 | [] | no_license | Ahsanul-kabir/Python-Learning-Codes | f72077635796bdacbc45de56ee342cf50bfd866b | 685f13ab239611daf5f464b23e48938376ee60a1 | refs/heads/main | 2023-01-02T09:33:50.527184 | 2020-10-22T04:44:27 | 2020-10-22T04:44:27 | 306,220,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # Ask a user their weight (in pounds), convert it to kilograms and print on the terminal
qus = int(input('What is your weight (Pounds)?'))
Ans = qus * 0.453592
print(Ans)
| [
"ahsanul15-8635@diu.edu.bd"
] | ahsanul15-8635@diu.edu.bd |
c629b60813d9819e959afd339872f90e99578d76 | ad181632586b343648fd6ea2c382b4d2a171185c | /queuesystem/wsgi.py | ba9223a5ad55544222ac3c4a9d55751c9fa65ea0 | [] | no_license | EverPost/queuesystem | a718c62bdec6f8f66bf773e51c4ea170f1b5e609 | d5c9e1a8b164182c56143f87e706177ac2de3b5b | refs/heads/master | 2021-01-12T16:42:34.460073 | 2016-10-20T07:54:27 | 2016-10-20T07:54:27 | 70,960,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | """
WSGI config for queuesystem 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/1.8/howto/deployment/wsgi/
"""
# import os
#
# from django.core.wsgi import get_wsgi_application
#
# os.environ.setdefault("... | [
"992433931@qq.com"
] | 992433931@qq.com |
50561b73d8ab96faa8c7be3f56039dbb02701ec7 | 5099f81c6b22369f78ef3ee4c177bda4369a1b62 | /AoC2016/day4.py | 9e9abcb499b8dffa33400705964a92dd0b96a9c6 | [] | no_license | bornaivankovic/aoc | 3a42c8a275625f1c4e5a801f16921964efc591a4 | f17bef398b6f58596e9098c8039e1df03c046542 | refs/heads/master | 2021-09-01T06:30:26.395794 | 2017-12-25T10:40:38 | 2017-12-25T10:40:38 | 113,479,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | with file("day4.txt",'r') as f:
strings=f.readlines()
def get_checksum(d):
vals=sorted(d.items(),key=lambda t: (t[1],t[0]),reverse=True)
if len(vals)<5:
return 0
s=set()
for i in vals:
s.add(i[1])
vals2=dict()
for i in s:
for j in vals:
if j[1]==i:
... | [
"borna.ivankovic@fer.hr"
] | borna.ivankovic@fer.hr |
c02481c7ac213d1465183d1cc02ade2e36da39ae | 076d4b8a007fd01e41b357342aad100c87367562 | /venv/bin/rst2xetex.py | 93ea0bba24a5121b9d01203e0a5e6f59a88857ed | [] | no_license | AlexanderMcNulty/publicpolls | b755c0922949018125d5eb18ac8b07fa087f97b7 | 56f340f5d9d044af65262f4099f146d6e22af754 | refs/heads/master | 2020-04-15T04:19:59.931533 | 2019-01-07T04:31:03 | 2019-01-07T04:31:03 | 164,378,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | #!/home/ammc/pyramid/publicpolls/venv/bin/python3
# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $
# Author: Guenter Milde
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code.
"""
try:
import locale
locale.setlocale... | [
"alexander.mcnulty92@gmail.com"
] | alexander.mcnulty92@gmail.com |
02561d21aaadec769b0b204d343ca291165a714a | 63f4e8ed00858e3ab4f4f208961700d9ba6517a9 | /docs/conf.py | c99252f3c7e21a6290fce2206edce59a77fbce06 | [] | permissive | JayH5/django-watchman | 1d2964fae32b63599e8a2b5fd171bc689ae85d0c | 25902a970eab85ae5c5cc45684475a1780f8d2e2 | refs/heads/master | 2020-04-10T04:43:07.361610 | 2018-10-19T14:48:04 | 2018-10-19T14:48:04 | 160,807,105 | 0 | 1 | BSD-3-Clause | 2018-12-07T10:10:35 | 2018-12-07T10:10:34 | null | UTF-8 | Python | false | false | 8,182 | py | # -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"mwarkentin@gmail.com"
] | mwarkentin@gmail.com |
6938ab830bd6d9ea5a709b4ff5744f31a0c4586a | 5f8e94b0c96f87a5bab0cb2e96444f874632c8e7 | /preprocess/keyword_feeds.py | e659146dffdbddcc0bc2464770a9dcf8ba0df450 | [] | no_license | snakepointid/real2real | 6cf2cbe776dc657011f219f3b9ef33c329a49eca | a8d31ca0b4c2764360caeaa7652af8ca79f76703 | refs/heads/master | 2021-09-21T02:04:01.823139 | 2018-08-19T06:33:54 | 2018-08-19T06:33:54 | 105,102,608 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,398 | py | from __future__ import print_function
import numpy as np
import sys
import re
from itertools import groupby
from operator import itemgetter
import cPickle as pickle
from real2real.preprocess.sentence_process import quick_sentence_segment
from real2real.app.params import keywordModelParams
stop_words = [1,81946]
def Lo... | [
"snakepointid@sina.cn"
] | snakepointid@sina.cn |
c8ffbf5c25ca7f2a391c55e4a082c923eae21052 | 66ca233d5a7c596f5c1259eeabfad3bb9f51c0db | /client/socket_connector/__init__.py | d9bd7cc19e0cd7895653c4018beeed8862f11ff6 | [] | no_license | VizanArkonin/OrangeTree | ad223628e0306919a898f1381245798a672084ac | 2179edea40f99ae97a4a0a0a34af701b8513a99a | refs/heads/master | 2020-03-28T06:18:17.376782 | 2019-03-18T13:08:06 | 2019-03-18T13:08:06 | 147,826,153 | 0 | 0 | null | 2019-03-18T13:08:08 | 2018-09-07T13:20:10 | Python | UTF-8 | Python | false | false | 1,104 | py | """
Socket client.
Provides low-level connection interface for Orange PI boards. 1 Instance of socket server is run on host
and 1 Instance of client is run on single given board.
"""
from threading import Thread
import client.config as config
from client.socket_connector.device_client import DeviceClient
# First, we ... | [
"altahir911@gmail.com"
] | altahir911@gmail.com |
9aa8968084570663211a42b8fd02fb7b0d5d36e1 | 0b9802d039ffee38fd666659719034cf7e42c04b | /faker/factory.py | bdf466c29ae071633f3150b19b9ff187d06e7c07 | [
"MIT"
] | permissive | SysGrove/faker | e1f633f3231ee94fdb82a15518ec8ecf899c5385 | 61c1aa3eeece341c0984e95cd3128bcdf3797a78 | refs/heads/master | 2021-01-16T18:42:56.837210 | 2013-07-23T14:46:09 | 2013-07-23T14:46:09 | 11,422,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | import sys
from faker import DEFAULT_LOCALE, DEFAULT_PROVIDERS, AVAILABLE_LOCALES
from faker import Generator
from faker import providers
class Factory(object):
@classmethod
def create(cls, locale=None, providers=None ):
# fix locale to package name
locale = locale.replace('-','_') if locale ... | [
"joke2k@gmail.com"
] | joke2k@gmail.com |
92e4f8e251b201a9642253fbf8807dba64c8fb89 | f3b99fdd48bc38dbe5d972c07dcbce204e5cff2b | /Projetos_Django/project/products/views.py | 97b0c6e78e026d3b71de54c1569823a558248cc6 | [] | no_license | Aleleonel/Python_codes | 5b66251d45bbf3678451b6380ca4d5a81f416e25 | fd535da3f2f4c510b4e85f9ec1dee59c9d07ffcb | refs/heads/master | 2020-04-03T16:44:24.923059 | 2018-12-06T00:16:21 | 2018-12-06T00:16:21 | 155,416,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from django.shortcuts import render, redirect
from .models import Product
from .forms import ProductForm
def list_products(request):
products = Product.objects.all()
return render(request, 'products.html', {'products': products})
def create_product(request):
form = ProductForm(request.POST or None)
... | [
"aleleonel@gmail.com"
] | aleleonel@gmail.com |
561d689df23c00bf6faa70d489a6a8a0ff67f3a6 | b143bafec6dc3f9caf9e259d403fed4117efe93b | /chat/routing.py | da18681c4748c2993f78466ad8e2448c8a3098d6 | [] | no_license | vishant016/chatdjangoapp | 2eb125efcfbfc8d026e7b9d8d0a4ca436013bc28 | 46e9d88b2d2d6061c720ff0fbcd3bf39f3195638 | refs/heads/master | 2023-04-27T02:07:45.066921 | 2021-05-24T16:56:44 | 2021-05-24T16:56:44 | 370,034,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter,URLRouter
import chatapp.routing
application=ProtocolTypeRouter({
'websocket':AuthMiddlewareStack(
URLRouter(
chatapp.routing.websocket_urlpatterns
),
),
})
| [
"58165342+aero-016@users.noreply.github.com"
] | 58165342+aero-016@users.noreply.github.com |
5ec2a8291aa1291aac7b7a2025c90b8985138dc1 | 5761e0bf9f155cc43fabac77e913143a1169f3ae | /caesarcipher.py | 2c8179838604409d45c888ff64d5b7a2d6e2557c | [] | no_license | abhkm/Python-Basic | e436ec0df928a4fe33bfbfd1f0f03cdbd61f6790 | aa0b565a340e35d39ad660757cf3401080827cdb | refs/heads/main | 2023-06-22T15:01:42.888309 | 2021-07-19T12:47:55 | 2021-07-19T12:47:55 | 387,461,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | def encypt_func(txt, s):
result = ""
# transverse the plain txt
for i in range(len(txt)):
char = txt[i]
# encypt_func uppercase characters in plain txt
if (char.isupper()):
result += chr((ord(char) + s - 64) % 26 + 65)
# encypt_func lowercase ... | [
"noreply@github.com"
] | noreply@github.com |
d43e2a07a00795346c670603a26f52ebd38536c9 | 72746ff3c71d30aa15e1c06af8e0dcdb90fbb24a | /src/classification code/Networks.py | ca791ca4e6647b35b6d74ff31c3a5b80741077a2 | [
"MIT"
] | permissive | eslamengi/Optic-Disk-Cup-Segmentation | 195ba51a03e67424b7d6b3535291445523581b2f | fed43a82c6730bdc7d03512a906f0715070ff788 | refs/heads/master | 2022-05-19T07:41:30.730308 | 2022-05-09T17:53:14 | 2022-05-09T17:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,988 | py | import torch
from torchvision import models
from torch import nn
class DenseNet201(nn.Module):
def __init__(self, num_channel = 21, classCount=2, isTrained = True):
super(DenseNet201, self).__init__()
self.first_conv = nn.Sequential(nn.Conv2d(num_channel, 3, kernel_size=3, paddi... | [
"vismayagrawal24@gmail.com"
] | vismayagrawal24@gmail.com |
cc7f87e4bc994ca90cb52cbb925e54d73bd1bb7c | 6684f88abb4dde0e1295fd65e1d82b5d5a3a0414 | /mysite/models.py | 3483dc080b012728c9554e723193a1abec2fd9e4 | [] | no_license | mostafaitalian/mostafaprofile | f6242bcdb60af3c679530a9dc4f6dfb3aee6bfd9 | ac7fa2e2e73cc9dca08e3127dd2a1859e7bbdd28 | refs/heads/main | 2023-06-12T12:01:22.766499 | 2021-07-05T19:53:43 | 2021-07-05T19:53:43 | 382,725,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.db import models
from myprofile.models import Profile
# Create your models here.
class MySite(models.Model):
project_name = models.CharField(max_length=100)
link = models.URLField()
description = models.TextField()
images = models.ImageField(upload_to='image/')
myprofile = models.Foreig... | [
"eng_mustafa_yossef@hotmail.com"
] | eng_mustafa_yossef@hotmail.com |
4ab593f5898e94840abd67f3436ef561d3a9e1a7 | 3417b1867f56e527037e8d779cf8be6fbcf38ee2 | /main.py | 1c1ea5be48dd354c5561c406d6ba0bb8cdb0a6f2 | [] | no_license | yuanyaaa/TicketManagementSystem | 91629b2607e7d7ef1b418979c2acc50a80bc5cb6 | 2adba06cda81812900e0a6378c534c0796d49caf | refs/heads/master | 2023-06-12T20:16:38.992506 | 2021-06-30T12:49:32 | 2021-06-30T12:49:32 | 378,295,570 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from LoginUI import Ui_Form
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from Conductor import Conductor
from Manager import Manager
from PyQt5 import QtCore, QtGui, QtWidgets
import sys
if __name__ == "__main__":
app = QApplication(sys.argv)
mainWindow ... | [
"wpy5359.gmail.com"
] | wpy5359.gmail.com |
9f8fdd5e2c0769472d594e2a3369f3846e958596 | 962670d339c2610c75eb845009123d0c2f611e3e | /exercises/sandbox10-31/simpleBooks.py | be4a04972f4fd2bf36325694a543b7eb26abf3f4 | [] | no_license | Spurrm/cs102f2018-spurrm | 7bc79b4b553afc6591ce6ad98cfbdaae978474b2 | aadb7c21e7f006555d50cef681bac583b6709165 | refs/heads/master | 2020-03-27T18:16:01.611075 | 2018-11-19T16:49:50 | 2018-11-19T16:49:50 | 146,909,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | #!/usr/bin/env python3
class simpleBooks():
"""The Simple Books class allows to store the author name and book title"""
def __init__(self, author, title):
print("Hello!! Class simpleBooks __init__ method()")
self.author = author
self.title = title
#end of __init__()
def toString... | [
"spurrm@aldenv178.allegheny.edu"
] | spurrm@aldenv178.allegheny.edu |
5d858f6dd2ad50fdc1f51166b1f4bc8ece460ce7 | 38a5a87d04e16cc7af2de659516f534853302ed2 | /scrapy/core/downloader/__init__.py | 62f48ec5a69a12cfe6d962000b07511880e9cc6e | [
"BSD-3-Clause"
] | permissive | zhangcheng/scrapy | d623232b946779c386eb7ca56bcfb6d5706a0ccb | 88e33ad0ad95d5f9049d8d8b1359819f4fbbf704 | refs/heads/master | 2021-01-18T12:07:01.174623 | 2011-06-09T03:15:53 | 2011-06-09T03:15:53 | 1,871,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,985 | py | """
Download web pages using asynchronous IO
"""
import random
from time import time
from collections import deque
from twisted.internet import reactor, defer
from twisted.python.failure import Failure
from scrapy.exceptions import IgnoreRequest
from scrapy.conf import settings
from scrapy.utils.python import setatt... | [
"pablo@pablohoffman.com"
] | pablo@pablohoffman.com |
e3fd3010d042b47d1a6832d09f9cbedc4aaf6f5d | ccbaf0c865910f511228079e5dfd1eb9c08fafc5 | /W6/week6sectioncode.py | 2f76e77de3865336fad46cd31ef1b2c464bdc9eb | [] | no_license | imyoungmin/cs8-s20 | 1f4934756eb1a28a2be8d4ae15f21ddf50725bef | 8b3ed44d84e1514b9059560605a29ee45eec1a69 | refs/heads/master | 2021-05-22T20:49:30.341501 | 2020-06-05T17:56:24 | 2020-06-05T17:56:24 | 253,089,196 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | #PROBLEM 2
concoction = [[1, 2, 3,],
[10,11,12,]]
i = 0
j = 0
while(i < len(concoction)):
while(j < len(concoction[i])):
print(concoction[i][j])
j += 1
j = 0
i += 1
for lyst in concoction:
for element in lyst:
print(element)
#PROBLEM 3
def printList(lyst):
for num in r... | [
"noreply@github.com"
] | noreply@github.com |
fb4850984909d60534cbe43c3bce4336a65383b1 | 76dd8343cb5d04fec631c1711a5642e6f83d8ae2 | /python/oneflow/test/modules/test_roll.py | 6f378f8cf56fe1fa6d4ba64262039cbc0eb7ccdc | [
"Apache-2.0"
] | permissive | weinapianyun/oneflow | 56c580ca2d6019f7d3e184a476ee9cb0699eea3e | 748501a5383f50bf9f3a5d3b3da81d4f31b425de | refs/heads/master | 2023-09-03T05:40:03.313826 | 2021-11-22T08:44:34 | 2021-11-22T08:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | """
Copyright 2020 The OneFlow Authors. 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 agr... | [
"noreply@github.com"
] | noreply@github.com |
96df14bbb92da13c957186fb423e47fbab15c94d | 644a535554cbbf8dc399e53d1f2b1eb33596196c | /Python/python_advance/chapter12 协程和异步io/05_generator_throw_func.py | f9db4f144a3ca4571e746bcb9711b7aa7758af63 | [] | no_license | awesometime/learn-git | e146485baf116b0f34f97e05beafb09e1cbb3c86 | 37e19f720037279fd26ded9c9053adabe16b6338 | refs/heads/master | 2022-09-01T05:31:20.419798 | 2022-08-14T10:41:16 | 2022-08-14T10:41:16 | 136,183,662 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | def gen_func():
#1. 可以产出值, 2. 可以接收值(调用方传递进来的值)
try:
yield "http://projectsedu.com"
except Exception as e:
pass
yield 2
yield 3
return "bobby"
if __name__ == "__main__":
gen = gen_func()
print(next(gen)) # http://projectsedu.com
gen.throw(Exception, "download error1"... | [
"2438529228@qq.com"
] | 2438529228@qq.com |
f2d0b8ecf990b3bd64d4ed8f7ac429a1f7618569 | e11dff811ca981f428644fd70d10a7369c671bcb | /src/tools/ecos/cvxpy/examples/advanced/circuits.py | f13a6e85c11de273d99651ed51274c17c59334ff | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"MIT"
] | permissive | riadnassiffe/Simulator | 3c4a036b5635534929fdb04b0e9c96d64c0da71f | 7d9ff09f26367d3714e3d10be3dd4a9817b8ed6b | refs/heads/master | 2021-06-20T09:31:36.033427 | 2021-04-17T00:03:17 | 2021-04-17T00:03:17 | 16,033,879 | 0 | 0 | MIT | 2021-03-22T23:20:34 | 2014-01-18T20:58:10 | Jupyter Notebook | UTF-8 | Python | false | false | 3,057 | py | # An object oriented model of a circuit.
from cvxpy import *
import abc
class Node(object):
""" A node connecting devices. """
def __init__(self):
self.voltage = Variable()
self.current_flows = []
# The current entering a node equals the current leaving the node.
def constraints(self):... | [
"riad.nassiffe@gmail.com"
] | riad.nassiffe@gmail.com |
427d7dfac93189de04f8067593adc827b66a5f95 | eb9d9f0b3056f18ae5e3233602c9ce0882e5f89f | /model/metrics.py | e601aefbcaec8ff3a254640733d9fa1b98ab7746 | [] | no_license | sepidhk/3D-unet-keras-lung-lobes-segmentation | 43b397458ae11542f9edc4ad02f0da8395cedbb1 | 17101714c52d1c66e72c897f130fc8bda6b72221 | refs/heads/master | 2023-03-16T00:32:42.506821 | 2020-02-11T08:11:45 | 2020-02-11T08:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py |
from functools import partial
from keras import backend as K
def dice_coefficient(y_true, y_pred, smooth=1.):
y_true_f = K.flatten(y_true)
y_pred_f = K.flatten(y_pred)
intersection = K.sum(y_true_f * y_pred_f)
return (2. * intersection + smooth) / (K.sum(y_true_f) + K.sum(y_pred_f) + smooth)
def d... | [
"wanglixin@interns.chuangxin.com"
] | wanglixin@interns.chuangxin.com |
8d7c1c02839e814bee3d5d5ab60f6f5d06442c78 | 90174b56d08ca79d30d3b1bcace14fa72e228532 | /tests/experiments/test_prior.py | da07cd05bcdd928f94e39071db8bbe4863671d1b | [] | no_license | miclaraia/swap-tools | 559cebfb112649dcaa61f52c278fdfbf86ee5ece | fb3468a6fef254cf43e46373c940d0a867c4445d | refs/heads/master | 2021-01-15T20:08:46.928830 | 2017-10-03T19:53:54 | 2017-10-03T19:53:54 | 99,840,718 | 0 | 0 | null | 2017-10-03T19:53:55 | 2017-08-09T18:30:13 | Python | UTF-8 | Python | false | false | 2,115 | py |
from swaptools.experiments.prior import Prior
import swaptools.experiments.config as config
import swaptools.experiments.db.experiment as edb
import swaptools.experiments.db.trials as tdb
from swaptools.experiments.iterators import ValueIterator as VI
from unittest.mock import patch, MagicMock
import pytest
@pytes... | [
"micheal.laraia@gmail.com"
] | micheal.laraia@gmail.com |
b85d4c5eb04286db16352d92d401624bc202764f | a8df024087cbd5f1c8cf58dd88cf1709afae6dbf | /python/FitHigherOrderDefects_Simple2.py | c72a96a866a34a9f4f1da57ce7aae7533471480a | [] | no_license | Bondoki/Code-Snippets | 5b079cb3ee94dea84cfe1ecc673cfd1a51e674bf | b4db831a2b4f60cb4a9d6af31130c8e346156213 | refs/heads/master | 2021-03-27T20:13:54.555760 | 2018-08-13T17:06:19 | 2018-08-13T17:06:19 | 106,258,533 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,995 | py | import pylab as pp
import numpy as np
from scipy import integrate, interpolate
from scipy import optimize
##initialize the data
#x_data = np.linspace(0,9,10)
#y_data = np.array([0.000,0.416,0.489,0.595,0.506,0.493,0.458,0.394,0.335,0.309])
import sys
print 'USAGE: file kS kD kT kQ'
print 'Number of arguments:', len(... | [
"bondoki@gmx.de"
] | bondoki@gmx.de |
38c1d934998fbaefb17c7a155dcf58caf9af8501 | abe9e08876a70f46fd063572c09edb0422d40387 | /config/Settings-local.py | a674fe2c639613eb675533b4df89f71b81ee174e | [] | no_license | 22lirong/sgus-iris | d3b0351dcc5bc3d1fb80c8e89a9274f16d526307 | 7b1b9c396a530d07b415ec632e3899b3c0377766 | refs/heads/main | 2023-05-02T19:46:26.418639 | 2021-05-31T11:20:50 | 2021-05-31T11:20:50 | 372,468,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | import os
class Settings:
secretKey="a12nc)238OmPq#cxOlm*a"
#Dev
host='localhost'
database='iris'
user='root'
password='Rong22'
#Production
# host=os.environ['HOST']
# database=os.environ['DATABASE']
# user=os.environ['USERNAME']
# password=os.environ['PASSWORD'] | [
"22lirong@gmail.com"
] | 22lirong@gmail.com |
aaa34339257cfc7ba0e8cae688f3b6fae5cde1f6 | 94c470dd24251e8093b0e62e2966589bbd23773b | /0704_LongestDecreaseSubarray.py | 486803bf059b67728b9f9ac9716e3d2065e4a0fd | [] | no_license | junha6316/Algorithm | eb9f4d4c4691881eb0842c2e73a56e4265a4cd82 | 2181e08694b105070a88f631be54f0449a4b7c67 | refs/heads/master | 2023-01-15T23:34:30.855847 | 2020-11-25T14:19:32 | 2020-11-25T14:19:32 | 283,513,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | def solution(arr):
N=len(arr)
dp=[1] + [0 for _ in range(1,N)]
for i in range(1,N):
if dp[i] == 0: dp[i] =1
for j in range(i):
if arr[i] <arr[j]:
if dp[j]+1 > dp[i]:
dp[i] =dp[j]+1
return max(dp)
arr=[10, 30, 10, 20, 20, 10]
print(solutio... | [
"parkjunha@bagjunhaui-MacBook-Pro.local"
] | parkjunha@bagjunhaui-MacBook-Pro.local |
fb9c4c2754c702df09ce45321d59f00ef98ecb24 | 88d944b5db92d2d78b5d3eda59520455cf0248eb | /4_抓取猫眼电影榜单.py | 09cb7974b658f8cb27f04ac9f9df3bc6e35c6929 | [] | no_license | crazyslay/PythonProject | 35ee2881427f860ba742c80292defe7d330762c2 | 3fcaae7ded44c54cfaa4e070d50af6f3a518738d | refs/heads/master | 2022-12-20T07:55:14.207556 | 2020-09-17T03:24:03 | 2020-09-17T03:24:03 | 296,201,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | #抓取猫眼电影排行
import requests
from lxml import etree
import pymysql
for num in range(10):
url='https://maoyan.com/board/4?offset={}0'.format(num)
headers={'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36'}
response=requests.g... | [
"noreply@github.com"
] | noreply@github.com |
b744e3de00eb80331ca04e5ea5392de72bca12c3 | b9b1e370627b613a6030e6a8113a8b6fd2874a6a | /ClearDebugInfo.py | 621261f225e857195e0906be9ad365866d582857 | [] | no_license | Alan-ABC/pytooltest | 4ffa45c9bf1de99c03705f693886380536921d90 | b2aae754893724df6bd7edf8cf40d51e8511ea5d | refs/heads/master | 2021-04-22T23:09:46.829685 | 2020-03-25T05:37:19 | 2020-03-25T05:37:19 | 249,879,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from FileSystem import CFileSystem
from FileSystem import CFileType
from DebugInfoCleaner import CDebugInfoCleaner
from DebugInfoCleaner import CTextOpertation
import os
import sys
if __name__ == "__main__":
'''abc = CFileSystem()
files = abc.GetFilesByPath('d:/python', CFileType.Both)
if files != None:... | [
"1010181198@qq.com"
] | 1010181198@qq.com |
a9dbe1ef570817bef051583e62c264919eaceeee | a6e5fe7160f4f0cad365c6f2e295ff244985c2b8 | /personal_portfolio/settings.py | 54a680d6a314b90be09e7efd9f77174691e4acce | [] | no_license | Gonelastvirus/personal_portfolio | f5c1c6eee7e311a11cd52745f57062571ff2a31b | 30e5f84a6b57d280fa5a4cf10a05c81a367d3c8e | refs/heads/master | 2022-11-12T15:45:29.765245 | 2020-07-03T14:29:24 | 2020-07-03T14:29:24 | 276,035,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | """
Django settings for personal_portfolio project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"gonelastvirus@gmail.com"
] | gonelastvirus@gmail.com |
2711a9b86a6227b80a98cc38b2791402a07979e4 | 412a1028bb28edf1aacb8d8d62860791320fde4e | /lib/utils/snake_decode.py | 51802411c9f3d1b2101c93eb5841ed2752c573ba | [] | no_license | huaze555/DeepSnake_inference | 3996ce579777b7f516b87f5a8fc6ba39a53525e3 | f5da440e3c614334cd3744f3666d807d6e860fd4 | refs/heads/master | 2022-04-27T06:40:41.914053 | 2020-04-26T10:25:53 | 2020-04-26T10:25:53 | 257,213,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,162 | py | import torch.nn as nn
import torch
from lib.utils import data_utils
from lib.csrc.extreme_utils import _ext as extreme_utils
from lib.utils import snake_config
def nms(heat, kernel=3):
pad = (kernel - 1) // 2
hmax = nn.functional.max_pool2d(
heat, (kernel, kernel), stride=1, padding=pad)
keep = (... | [
"942405301@qq.com"
] | 942405301@qq.com |
b31494f9ba29526d8b33e7b8b263c1cea67ced75 | 8d8ab0e81665641672b69b620c3e5f018f9fe6b9 | /home/migrations/0006_auto_20201212_2014.py | 658c75272f4a6c70be648c0ad5e5bed2b3c3512f | [] | no_license | dhananjay0610/Placement-portal | 31728e89e2d5272f003b9b8c84f100acd61016a1 | 25592ee8d787712f02ce4a22c36b3af50137e2be | refs/heads/master | 2023-02-06T01:06:19.066742 | 2020-12-29T06:19:07 | 2020-12-29T06:19:07 | 325,066,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.1.4 on 2020-12-12 14:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('home', '0005_profile_doc... | [
"dhananjay.waghade.alpha@gmail.com"
] | dhananjay.waghade.alpha@gmail.com |
a437fbc8d71ddf274ef045b5812222fcba15100d | 0fcd82ae5a2188a73e36adcae974d56ed4c6f864 | /layer.py | 6ebbd2e7b2fc4d7908cbb11c9830ee5a9df518b3 | [] | no_license | Overseer66/DeepBuilder | 746ae50b6272b8b9a4ab8ca16b50e67a7158f132 | 860fba51a580eef93b64f221080ca0d029c2f764 | refs/heads/master | 2020-03-26T13:22:34.286932 | 2018-11-28T03:39:08 | 2018-11-28T03:39:08 | 144,935,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,322 | py | import inspect
import tensorflow as tf
import numpy as np
from .util import *
def reshape(input, shape, name='Reshape', layer_collector=None):
l = tf.reshape(input, shape, name=name)
safe_append(layer_collector, l, name)
return l
def flatten(input, name='Dense', layer_collector=None):
try:
... | [
"hsj9649@gmail.com"
] | hsj9649@gmail.com |
44bd5d23b5113276f406471b66cd4c53a7437305 | fe82c23a5c09978257c0a719b33c9141b4e099b7 | /potion/estimation/metagradients.py | 4ca19fb69fcf562f3dff94d89033b67272861f12 | [
"MIT"
] | permissive | PietroMelzi/potion | 941a9ab1a8b58e39652e6a46f268e73207a1b80a | 9582498b81fa4b6d0c7333bb0adb586bc8c42351 | refs/heads/master | 2020-07-22T08:26:53.315267 | 2020-02-14T14:27:02 | 2020-02-14T14:27:02 | 207,130,483 | 0 | 1 | MIT | 2019-09-08T15:11:55 | 2019-09-08T15:11:54 | null | UTF-8 | Python | false | false | 2,375 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 15 14:57:23 2019
@author: matteo
"""
import torch
from potion.estimation.gradients import gpomdp_estimator
from potion.common.misc_utils import unpack, discount
from potion.common.torch_utils import tensormat
def mix_estimator(states, actions, d... | [
"matteo.papini@polimi.it"
] | matteo.papini@polimi.it |
2af1aad03697a4881cf62d2aba159672b8dd4e77 | 5ec7b086aed5341bdb6356e4f013d92f4eef961f | /app_local/client.py | 1138dc2454d825a3fbb8a9345ec65334357d47eb | [] | no_license | Mizterbox/MizterboxLogs | 4de843587ce38909de893eb98e50c2ccb2027654 | b1c7c2e7e5eacdf8528e6c13ec71564faa7ef82a | refs/heads/master | 2020-04-25T19:46:38.818903 | 2019-03-03T09:08:44 | 2019-03-03T09:08:44 | 173,032,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import requests, numpy as np, time
from time import gmtime, strftime, localtime
sprinklerid = np.random.randint(100,size=100)
address = np.random.randint(1000,size=100)
status = np.random.randint(1000,size=100)
maxcount = 5000000
counter = 0
actualsprinkids = [1,2,4,0]
status = ['Running Active', 'Restarting','Connec... | [
"rakshithvbharani@gmail.com"
] | rakshithvbharani@gmail.com |
1a5a0fecba5719fbafefe8d2a0202fd233083119 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/generated_samples/postgresql/configuration_create_or_update.py | fd2ce019539a6fd4667037e606ec4d697827004b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,743 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
2a126dc057a10d96c24e6d3d0e314ff54c873575 | 23099b0a7b3bde3d3b0e656f432d87b1b0861562 | /lib/Master.py | 23667cc7209b82b2fac3b8965861c667fc982334 | [] | no_license | hirorock1103/wordpress | 198359fbafe3823817a678e25ba94166952b85ed | cc38c580510857b6c79fb2d16138c92fae9a3f95 | refs/heads/master | 2021-07-13T04:42:10.313585 | 2019-04-30T06:12:35 | 2019-04-30T06:12:35 | 184,202,402 | 0 | 1 | null | 2020-07-21T07:48:35 | 2019-04-30T06:11:45 | Python | UTF-8 | Python | false | false | 686 | py |
# Account
class Account:
id=""
name=""
login_url = ""
login_id = ""
login_pw = ""
target=""
def setId(self, id):
self.id = id
def getId(self):
return self.id
def setLoginUrl(self, url):
self.login_url = url
def getLoginUrl(self):
return self.l... | [
"mdiz1103@gmail.com"
] | mdiz1103@gmail.com |
b19da845110781324e7547090ada1cf6297e4fed | 6044266e775c87afed99397c8bb88366fbbca0e7 | /scrapy_file/csrf_token_extract_with_re.py | 054ec197c5e44ddfab392e7960aca50fad972aa6 | [] | no_license | ranafge/all-documnent-projects | e4434b821354076f486639419598fd54039fb5bd | c9d65ddea291c53b8e101357547ac63a36406ed9 | refs/heads/main | 2023-05-08T20:01:20.343856 | 2021-05-30T10:44:28 | 2021-05-30T10:44:28 | 372,186,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from bs4 import BeautifulSoup
import requests
import json
url= ["https://www.premierleague.com/stats/top/clubs/wins?se={}".format(x) for x in range(1,100)]
print(url)
for url in url:
data= requests.get(url).text
soup=BeautifulSoup(data,"html.parser")
PLtable = soup.find_all('table')[0]
data = []
... | [
"ranafge@gmail.com"
] | ranafge@gmail.com |
145fbd0dcc8db90c0553b471b91fb9ce700ef9d4 | 78535e85952f3e14d513301a1bd3a068f8da4131 | /homework12/core/settings.py | 8f50d7870ffc56402b68b313f49b3370782fefe5 | [] | no_license | fl4kee/homework-repository | b954821b518812e7c865c10cff47751bc57c09ed | 18dc05c120ae031d40416ed7d39a9aa5a6d74637 | refs/heads/master | 2023-08-24T05:43:20.797472 | 2021-10-26T18:34:53 | 2021-10-26T18:34:53 | 400,251,916 | 0 | 0 | null | 2021-10-16T14:16:41 | 2021-08-26T17:26:43 | Python | UTF-8 | Python | false | false | 3,254 | py | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... | [
"flakeexe@gmail.com"
] | flakeexe@gmail.com |
985a0b85e8c772412f08772053bd8a1972ca244d | 0494c9caa519b27f3ed6390046fde03a313d2868 | /build/masters/master.client.drmemory/master.cfg | 6ba0741da8090cb099e1a2646e67909aef6a3892 | [] | no_license | mhcchang/chromium30 | 9e9649bec6fb19fe0dc2c8b94c27c9d1fa69da2c | 516718f9b7b95c4280257b2d319638d4728a90e1 | refs/heads/master | 2023-03-17T00:33:40.437560 | 2017-08-01T01:13:12 | 2017-08-01T01:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,506 | cfg | # -*- python -*-
# ex: set syntax=python:
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# It has one job: define a dictionary named BuildmasterConfig. This
# dictionary has a variety of keys to cont... | [
"1990zhaoshuang@163.com"
] | 1990zhaoshuang@163.com |
7ffd76b7117959d836e252be28fa1fb4d8449867 | 21b2e26fa387f9cfe6336c7c8eb9961b67632427 | /Maximum Product Subarray/Maximum Product Subarray.py | 548e1dd4db6accf5e64b8a7b03fa422355cd0b7e | [] | no_license | gayyzxyx/leetcode | 84c9ae3562b1bcecdf721c5e74b28d48e834e073 | 1b5f3f95816623e0cb34dca95cdfecdcec882980 | refs/heads/master | 2021-01-20T07:02:57.116254 | 2014-11-16T18:33:11 | 2014-11-16T18:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
class Solution:
# @param A, a list of integers
# @return an integer
def maxProduct(self, A):
product = []
product.insert(0, A[0])
min_pre = A[0]
max_pre = A[0]
min_here = A[0]
max_here = A[0]
max_value = ... | [
"yao.rid@gmail.com"
] | yao.rid@gmail.com |
2424d2a90d0aaef68de0d6f758b31fc067c00c5d | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2022/1219_952_Largest_Component_Size_by_Common_Factor/Juwan.py | b646a287a0b1aa11aadaf34bd77f8cb879296a9b | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 881 | py | class Solution:
def largestComponentSize(self, nums: List[int]) -> int:
parent = [-1]*100001 # parent node 추적을 하기 위한 List
def find(x): # union find 방식으로 풀이
if parent[x] == -1:
return x
parent[x] = find(parent[x])
return parent[x]
... | [
"noreply@github.com"
] | noreply@github.com |
7330e8ddf7bfa6a119363f5bf3b1a1260872366e | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc080/B/4879977.py | 22d2fbd77be16ddf55ae52e4f18a5d7aa1a0bb6c | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | N=input()
print('Yes' if int(N)%sum(int(i) for i in N)==0 else 'No') | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
7928cb611e5b3c950aac59f3832332e91848b5ba | c3a9cc3e16567d4f2b3771c6780c8cf36921582b | /Scripts/easy_install-3.7-script.py | b58d944731e347c6fadcef4ba7fad0ae20102047 | [] | no_license | ugoodumegwu/imdb | 19e355bda180b3ea65e62199175c84b437a1678d | 3cab0542e293b89db8b9510348063e8ce3819773 | refs/heads/master | 2022-12-15T06:27:43.162018 | 2019-08-08T12:02:27 | 2019-08-08T12:02:27 | 201,245,235 | 0 | 0 | null | 2022-11-22T04:10:55 | 2019-08-08T11:35:43 | Python | UTF-8 | Python | false | false | 454 | py | #!C:\Users\user\PycharmProjects\myproject\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"ugoodumegwu@gmail.com"
] | ugoodumegwu@gmail.com |
272b0b2c62e2faa608c20f3985e2681a44021b5e | dcdee2d707ad14f1772bee7c631d8908cfb62d20 | /Lab_Outline/UlnoIOT_Project01/inside_node/files/autostart.py | e4dd445f58be1c3befbb188df80ecc0693f5161e | [] | no_license | EvaJobst/IOT_HametnerJobst | 5b9ee4803f1e2b9a47ed212a72bd6449135637fa | 3a5f66a089c372d71dcd2182d55d5b2b42048588 | refs/heads/master | 2021-08-11T11:18:56.672649 | 2017-11-13T16:23:05 | 2017-11-13T16:23:05 | 105,532,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | # user.py is the autostart code for a ulnoiot node.
# Configure your devices, sensors and local interaction here.
# Always start with this to make everything from ulnoiot available.
# Therefore, do not delete the following line.
from ulnoiot import *
# The following is just example code, adjust to your needs accordin... | [
"S1510237014@students.fh-hagenberg.at"
] | S1510237014@students.fh-hagenberg.at |
91eae5a2f7215ca5811ef290f2bae5ae22dea53a | 1ca3f7b25663cb9fe9564e1919cf38f277082a42 | /test/test_data.py | f69d106a5bc24e6ecd8fb1329a91d663c681735e | [] | no_license | ponyprediction/data-manager | bfdedbbfd6649fa4259dccb55d72ae24c5db89c9 | 52307460ff490f16f3d4ad8eeefd466b02473d5f | refs/heads/master | 2021-01-21T13:30:32.912027 | 2016-05-07T08:45:59 | 2016-05-07T08:45:59 | 35,948,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import unittest
from datamanager.data import Data
import datetime
from pprint import pprint
class TestData(unittest.TestCase):
def test_getData(self):
data = Data('2015-01-01', '2015-01-01')
pprint(data)
if __name__ == '__main__':
unittest.main()
| [
"loicbourgois.web@gmail.com"
] | loicbourgois.web@gmail.com |
13dd77b5855c5b7d658b4eed52dbd66e2cb928f4 | 35f2d6080e76304ed173d7e7b8501f1d4f0fd2c1 | /main.py | 65538171e17803c852b6f44046916948652586ce | [] | no_license | blingbling/CSET3600 | 53a1dfab93e78b44cf71696cba07d421aa6c9e71 | 5c3eb9236d7e662e83dd74d64dee66b34bad5d1b | refs/heads/master | 2021-01-16T20:27:01.865433 | 2012-11-01T08:10:21 | 2012-11-01T08:10:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | import sys, pygame
from pygame.locals import *
class Ship:
"""
Generates a single battleship.
Position is calculated by a given x and y coord, a ship size, and an alignment
which are then used to calculate the entire array of values for the ship.
"""
def __init__(self, size, alignment, x, y):
self.size = size... | [
"ryanrapini@gmail.com"
] | ryanrapini@gmail.com |
cb5b756e4591b0bf6cbe9e840c141e10206f691a | 1ec04670762ab90e740b8bfcc25102588e682f31 | /basic1001.py | a97491b4be2bb3ffb1d4037c121cc8ffb8df9415 | [] | no_license | Daltan/mypat | 194c52b945a7c33e840afc14cc27d8860b6e5e5c | d86e7798083f7e0f943148ab852b6fe0b065e111 | refs/heads/master | 2020-05-09T22:07:02.209004 | 2019-05-04T08:06:15 | 2019-05-04T08:06:15 | 181,460,662 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # https://pintia.cn/problem-sets/994805260223102976/problems/994805325918486528
# 正确
n = int(input())
step = 0
while n != 1:
if(n % 2 ==0):
n = n/2
step = step + 1
else:
n = (3 * n + 1) / 2
step = step + 1
print(step)
| [
"patrickheh@foxmail.com"
] | patrickheh@foxmail.com |
6a3fea967bb843876033c7044091961fc7cfb259 | f77d97840915ff2318c8f3841096019337c58689 | /_admin/admin_service/digestmonkey/models.py | 1ae642e4624a3ed2f41e871fac4e851e8d1d1b6a | [] | no_license | rrader/events-service | f35d7e237e0ef5e3598b90878713539960153895 | 5933a6ba83aacb63832dd6efa806409bb37812aa | refs/heads/master | 2021-01-10T04:25:45.875103 | 2015-11-20T16:21:32 | 2015-11-20T16:21:32 | 44,528,882 | 4 | 1 | null | 2015-11-01T19:28:47 | 2015-10-19T11:02:48 | Python | UTF-8 | Python | false | false | 1,231 | py | from sqlalchemy.dialects.postgresql import ARRAY, JSON
from admin_service.extensions import db
from sqlalchemy.orm import backref, relationship
class DigestMonkeyConfig(db.Model):
__tablename__ = 'mailchimpkeys'
id = db.Column(db.Integer, primary_key=True)
mailchimp_key = db.Column(db.String(100))
tem... | [
"roman.rader@gmail.com"
] | roman.rader@gmail.com |
d38b21ce99cbb51edfd3f7861e0534dcbb757886 | 27cd2ead8792254931adc4cb3f1029ca13fcea65 | /py_django_app/migrations/0058_alter_room_r_category.py | 4ca93cd21612410feb482b6986258a274f768d9b | [] | no_license | vinithaapk/Hotel-management-system | b12cf2ca1be12e05e8c62270e87b515c2f1faea8 | 5168a5ed09d742fae23dca32f9fa9e8acc6de157 | refs/heads/master | 2023-05-09T01:31:32.526476 | 2021-05-31T05:07:01 | 2021-05-31T05:07:01 | 372,387,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # Generated by Django 3.2 on 2021-04-28 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('py_django_app', '0057_auto_20210427_0917'),
]
operations = [
migrations.AlterField(
model_name='room',
name='R_categor... | [
"vinithaapk@gmail.com"
] | vinithaapk@gmail.com |
f392d1ea47b1e3f02e0404b6aab5543738d3ecfe | 5abee20c7304d0f13a51c89e80f8199651a68391 | /app/app/__init__.py | 9915e0972e654d0449d6fc565ea167dc80cb7894 | [] | no_license | hyper-mage/LearnFlask | 9b41bf3d6e9ac39644db2f281428bc9b2e85bdde | e87a40460e8a0926de03b3ea6fb18fec6ec3adcb | refs/heads/master | 2023-01-03T11:55:01.066625 | 2020-10-26T17:06:52 | 2020-10-26T17:06:52 | 298,063,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from flask import Flask
app = Flask(__name__)
if app.config["ENV"] == 'production':
app.config.from_object("config.ProductionConfig")
elif app.config["ENV"] == 'testing':
app.config.from_object("config.TestingConfig")
else:
app.config.from_object("config.DevelopmentConfig")
from app import views
from app... | [
"mlynn808138@gmail.com"
] | mlynn808138@gmail.com |
6b8d26b15815901c6b51df60be6caa89cc774a7a | 6a515e3eaec9ddc9a0f5d61a8295ef26b250a520 | /testsuite/accounts.py | be2c5a2e339e55e62f933e5d9ae71a6598508e5d | [] | no_license | EventsExpertsMIEM/backend_19288 | 88146d0e1e0140318040e2f9fc68da14e180a76b | f4a98b325366ef7bbdbe9243f9b742a6998d6da3 | refs/heads/dev | 2020-09-14T14:17:51.939454 | 2020-04-23T14:45:49 | 2020-04-23T14:45:49 | 223,153,250 | 1 | 1 | null | 2020-04-10T10:34:15 | 2019-11-21T10:56:04 | Python | UTF-8 | Python | false | false | 19,465 | py | from .requester import test_route
from colorama import init, Fore, Back, Style
import os
from .config import cfg
def test_accounts():
tests = [
{'description': 'LOGIN with incorrect email',
'url': '/login',
'method': 'post',
'data': {"email": "root",... | [
"mvalkhimovich@miem.hse.ru"
] | mvalkhimovich@miem.hse.ru |
d45e266c2e7bc1f74905ee8b47d8a2ad0edc44f1 | 235f7b0bd6349bdacc06934d3127e202e96c5bc7 | /WebScraping/pokemon.py | 887150dbc996d9744ccddad055174f10190f5a49 | [] | no_license | Kronostheus/Python | 5242396cc0ecd0ff7f25c353f63bbf5363e3a356 | 7fed3ea275418f5a5c9962fa31318847b8464e91 | refs/heads/master | 2022-01-26T12:37:35.688060 | 2019-05-31T10:32:18 | 2019-05-31T10:32:18 | 105,922,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,728 | py | import requests
import pandas as pd
from bs4 import BeautifulSoup
def getRequest(url):
try:
# defining user-agent to avoid 403 Forbidden
request = requests.get(url, headers={'User-agent': 'Mozilla/5.0'})
request.raise_for_status()
return request
except requests.exceptions.Reque... | [
"nuno.amaro101@gmail.com"
] | nuno.amaro101@gmail.com |
5165947fc94888a1cc057b8dae59e599ae2c2e82 | 6a8eac5877ea4f782c094ad7b974d03e1dc86401 | /src/brouwers/albums/tests/factory_models.py | 85253b626987baa65d422813ba585327d3347edd | [] | permissive | modelbrouwers/modelbrouwers | cb2bbea34e70f4a1d9a7361dfe7131a20ea26b02 | 7713e78eeb31809e04b0b316ec8f8deed0808fc9 | refs/heads/main | 2023-08-06T10:49:33.804123 | 2023-07-30T20:28:34 | 2023-07-30T20:28:34 | 13,872,961 | 7 | 3 | MIT | 2023-05-29T15:33:06 | 2013-10-25T21:51:20 | Python | UTF-8 | Python | false | false | 179 | py | import warnings
from .factories import *
warnings.warn(
"Import from albums.tests.factories, the factory_models " "module will be removed",
PendingDeprecationWarning,
)
| [
"sergeimaertens@gmail.com"
] | sergeimaertens@gmail.com |
9d751f79e3d62c904cd0d160a599ae6d12f2f987 | 1b3934dd794229e2cac32aceb8c9e511b3a3fa9d | /dictionaryps/code8.py | 5a72c50ed602b9639b12bfff4d1cf4e8fdb6a256 | [] | no_license | vumeshkumarraju/class | 4d9c36aed3ae19f8feb12cf6c737194156787c88 | 90d2ad807be47438a91e3eccf2d569f6c555bc10 | refs/heads/main | 2023-02-13T15:18:55.186249 | 2021-01-05T10:19:10 | 2021-01-05T10:19:10 | 312,786,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | #FIND THE MAXIMUM AND MINIMUM VALUES
print("\n\t..........|| WELCOME TO THE PROGRAM ||.............")
print("PLEASE ENTER INTEGERS IN THE ITEMS OF YOUR DICTIONARY,\nWE WILL FIND OUT THE MAXIMU AND MINIMUM VALUES OUT OF THE DICTIONARY.")
d={}
n=int(input("ENTER THE NUMBER OF ITEMS YOU WANT TO ENTER IN THE DICTIONARY :-... | [
"umesh.raju021@gmail.com"
] | umesh.raju021@gmail.com |
9dc40b151ba0d807121c023dc5630fab37bfb6b9 | b63b3c3612963a5ba967a7b1c4584c9efaefa239 | /training.py | da7a714611aa50f5fe018f1e4f7763b724d28744 | [] | no_license | AlikhanAbzhanov/SimpleConversationalBot | 56f0a575249899bec5793f06376f755bbd63fc52 | fa1543cd80f628b9b72c42a8bcca49c783109930 | refs/heads/main | 2023-02-21T21:46:00.435379 | 2021-01-18T11:44:47 | 2021-01-18T11:44:47 | 330,648,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | import random
import json
import pickle
import numpy as np
import nltk
from nltk import WordNetLemmatizer
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Dropout
from tensorflow.keras.optimizers import SGD
lemmatizer = WordNetLemmatizer()
intents = jso... | [
"noreply@github.com"
] | noreply@github.com |
9785e0140ac83818493992d4910ac3f403e90e9f | 42e5fd024ca7522c990d9627863302aa1f792804 | /DeepWNCS/Inverted_Pendulum_sihoon/Common/initialize.py | e5e97772145b48d36cec12f9d46d7bee7bd2f66e | [] | no_license | msh0576/RL_WCPS | 1f36de09ab6e4664b56ff929c69fab7de7314988 | 498a54f9777c5a849b0af491d9e76fcc470aa083 | refs/heads/master | 2023-06-08T19:13:33.676970 | 2020-11-30T05:30:02 | 2020-11-30T05:30:02 | 317,114,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 8 12:41:23 2020
@author: Sihoon
"""
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import math
def linear_weights_init(m):
if isinstance(m, nn.Linear):
stdv = 1. / math.sqrt(m.weight.size(1))
m.... | [
"msh0576@dgist.ac.kr"
] | msh0576@dgist.ac.kr |
e8d9c4067b400eaeba38d84c16e36d44aa8138ab | 2b7f3243d61b1b66343cb6c6aaa7bd156e343efe | /pizza_site/manage.py | df619b9f317174593b1d59f20ed7d4848d53a219 | [] | no_license | johntiger1/PlatterzHackSite | 8776b792ffd28bd7609f160366a4ca0ac33ce9b4 | aca52f0a8e248cb4c3c66fb381c9aa6567061d6f | refs/heads/master | 2021-04-29T05:51:26.655167 | 2018-03-08T00:37:58 | 2018-03-08T00:37:58 | 121,817,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pizza_site.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"john.person1@gmail.com"
] | john.person1@gmail.com |
55846d10634384288599005ef999a8646607ec79 | 465178c7708f63d399c247b3d8617d1a1d25105f | /stimulate_match.py | 050eeaa726082c7d8e1bc28ff27345a22f83f670 | [] | no_license | RohanBS/IPL-match-prediction | fe09b16efaeadf7e3e4956ec8376e6cab8868157 | 1b8e882645e148650f8ee11eac48932c772f0414 | refs/heads/master | 2020-06-21T08:35:40.169602 | 2019-04-13T05:49:46 | 2019-04-13T05:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,590 | py | import csv
import random
t1_bat=[]
t1_bow=[]
t2_bat=[]
t2_bow=[]
team=[]
com=[]
def do(hey,type1=None):
l=[]
h=-1
if(type1=='venue'):
h=venue_encoder.transform([hey])[0]
#print(type(h))
if(type1=='Team1'):
try:
h=Team1_encoder.transform([hey])[0]
except ValueError:
h=random.randint(0,465)
el... | [
"noreply@github.com"
] | noreply@github.com |
5ed4349c84e99c1bf997607eaf87034cc25e4bf5 | 44e7e02425b3ddd69f20d3545e3f32c3af55875d | /model/my_model/ccr.py | 71c8dfacf4c8db02b3dba04a61ef7d70ebeb9746 | [] | no_license | vigorwei/Segmentation | 6c7702d79b1b8141aeda8d8e282880d3b1402810 | 0a5ffc25aca11ec25c9f889d0fbe7e505e5e141e | refs/heads/master | 2023-02-01T14:39:58.174196 | 2020-12-17T03:05:22 | 2020-12-17T03:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,436 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
from torch.utils.data import WeightedRandomSampler
import numpy as np
from model.segbase import SegBaseModel
from model.model_utils import init_weights, _FCNHead
from model.my_model.blocks import *
from model.my_model.SPUnet import SPSP
from... | [
"805207107@qq.com"
] | 805207107@qq.com |
1b9e670c1589c44e6b0a07cb21f20ebac8080039 | 98725f86688f5ab5932b73044c4d0583d60bfcd3 | /shop/migrations/0007_auto_20210521_1602.py | 28f9cf23fe497055ff104aca0ce5d99dc82b525f | [] | no_license | vibhor-s/ke_backup | 0545c47ec2ac0e2e79c7c181e266079f374f01ec | 2f6265ee35db45c8b7c14a2cbf03de86ec71cc75 | refs/heads/main | 2023-06-03T04:04:18.621555 | 2021-06-25T17:46:55 | 2021-06-25T17:46:55 | 380,313,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 3.2.2 on 2021-05-21 10:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0006_auto_20210521_1450'),
]
operations = [
migrations.AlterField(
model_name='product',
name='product_categ... | [
"vibhorshukla97@gmail.com"
] | vibhorshukla97@gmail.com |
e944671405354385e353be2e74a966df6d6b1984 | eb797591ea831af53334512d8cc42619a545947e | /pysrc/wrapper/ciri.py | fa8c585bb3efb5f5c8ffba00b4e40ddbd97cfcdd | [
"MIT"
] | permissive | wanjun-group-seu/AQUARIUM | 0c25cbcee61021408bcf0ffbc8af1e03c753612d | a65fe93b6ae85ec52f535d0651b6956c6a4b0d3f | refs/heads/master | 2023-04-21T23:24:16.948178 | 2021-05-12T01:52:24 | 2021-05-12T01:52:24 | 344,300,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,065 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# author : zerodel
# Readme:
#
import copy
import os
import os.path
import pysrc.body.cli_opts
import pysrc.body.logger
import pysrc.body.option_check
import pysrc.body.utilities
import pysrc.body.worker
import pysrc.file_format.ciri_entry
import pysrc.file_format.fa
impor... | [
"zerodel@126.com"
] | zerodel@126.com |
935f4d839d06a254ef22947ac801d10a747a75af | 4cdeae60615d697cf0ffd75362e83e03eafc566b | /data science/sistematic_sample.py | 772b02547ee1c3c9a2d626df37ee699039299b27 | [] | no_license | Cerebrovinny/data_science_python | 22cfe2db897f90f69a9fb592566cec596b8598ca | c3561bd9e6b6115f47000e09e00d184147975c3a | refs/heads/master | 2023-05-29T23:18:05.660457 | 2021-06-10T01:30:05 | 2021-06-10T01:30:05 | 236,343,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import numpy as np
import pandas as pd
from math import ceil
population = 150
sample = 15
k = ceil(population / sample)
r = np.random.randint(low = 1, high = k + 1, size = 1)
acomulator = r[0]
winners = []
for i in range(sample):
#print(acomulator)
winners.append(acomulator)
acomulator += k
base = p... | [
"vinny.cardoso96@gmail.com"
] | vinny.cardoso96@gmail.com |
512dade06a08d9880c89f8d909089714a3830ddf | f0811660153975f27a5af9ee38d4ab555a2006e0 | /main/migrations/0003_cliente_colaborador_profile.py | 27d4334b3b08a537d6fdb3b3b436a524d938251e | [] | no_license | briana-1/Proyecto | 4222ad82bf8b52428cc2db8726a2b73b52234028 | 1371c78702cf58f533ad42059703b90c5d6c4e20 | refs/heads/master | 2023-01-08T20:46:16.750856 | 2020-11-14T16:44:31 | 2020-11-14T16:44:31 | 308,474,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | # Generated by Django 3.1.2 on 2020-10-30 17:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0002_producto'),... | [
"71939930+briana-1@users.noreply.github.com"
] | 71939930+briana-1@users.noreply.github.com |
c38f906061b6e31d0b338ec593c6421466dd7257 | 267079b9de29c7270a9108eb83f268e1ca999924 | /lec07_file/file07.py | bd87f520cea94ad4fde1dc67c172013edb1fd24b | [] | no_license | junbyungchan/python | 79b9e467702a4d3fb755f15d4431c260a275e742 | 1d6627f098ec5fafec34306bb9b1ea630677558f | refs/heads/master | 2020-11-26T08:46:58.412886 | 2019-12-19T09:28:44 | 2019-12-19T09:28:44 | 229,019,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | """
file.readline() 사용해서 csv 파일 읽기
"""
def my_csv_reader(fn : list, header = True) -> list:
"""
csv 파일의 데이터를 2차원 배열 형태로 리턴
:param fn: 읽을 파일 이름(예: data\\exam.csv)
:param header : csv 파일의 헤더 존재 여부
:return: csv 파일 헤더는 제외한 데이터들로 이루어진 2차원 리스트
"""
list = []
with open('data\\exam.csv',mode = ... | [
"icoo08217@github.com"
] | icoo08217@github.com |
8f7f360ac8335237258f6bc0e97e8857f5ac3890 | c0cc518b24b106b2f121b3d185b96a08f14897dd | /Indian_Flag.py | f8228161494432bb21ee3cfb18829a3bc72e3352 | [] | no_license | nitish-rider/Python | 5d670c081d97c452c6f0a45c6660b1a96f79a569 | 375755baf434663db1630a9011064bf6c01ac351 | refs/heads/main | 2023-02-19T16:40:35.420050 | 2021-01-28T06:33:31 | 2021-01-28T06:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import turtle
flag = turtle.Turtle()
flag.speed(3)
flag.pensize(5)
flag.color('#054187')
def draw(x, y):
flag.penup()
flag.goto(x,y)
flag.pendown()
#Ashoka Chakra
for i in range(24):
flag.forward(80)
flag.backward(80)
flag.left(15)
draw(0, -... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.