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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6168e486610759f5d2d1fc74d45ace0aa72be9aa | 7b4e414b4d6823417807ad57c20a5ec6d7c4a9b7 | /tree_serialization.py | 025644e138c8cddc3a2bdc5887824da0fd235000 | [] | no_license | alvinkaiser/DailyInterviewQuestion | 6effe8ad3b41fe56ba96afce767c9f791315a6ad | 859a8d77c014181fe353a88c3e530d0aa676bc5e | refs/heads/master | 2023-03-18T08:08:19.016763 | 2020-03-12T06:39:48 | 2020-03-12T06:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py |
l
def rabin_karp(s1,s2):
assert len(s1) >= len(s2)
current_hash = target_hash =0
same = True
x = 53
for i in range(len(s2)):
if same and s1[i] != s2[i]:
same = False
current_hash = current_hash * x + ord(s1[i])
target_hash = target_hash *x + ord(s2[i])
p... | [
"ctabatab@gmail.com"
] | ctabatab@gmail.com |
4635f911b8a061b79945d181271ee84668e3a7f8 | d56f4fe901208960ea7328dc63ba455f7664d0a9 | /top/routes.py | 3bb02280218e2d6e79843fc78b8c5fc1a10bfd88 | [] | no_license | bivshaya/tops | 53e4a77207329f8dd51b001fc5b1c85b8393bc04 | 7dd18c954e36403949736eedea1bb486bdb1e287 | refs/heads/master | 2022-12-18T07:38:49.669155 | 2019-09-13T11:07:57 | 2019-09-13T11:07:57 | 208,220,011 | 0 | 0 | null | 2022-12-08T06:09:32 | 2019-09-13T07:52:20 | CSS | UTF-8 | Python | false | false | 277 | py | from flask import render_template, Markup, request, jsonify
from top.utils import log_me
from top import offers
from top import top
@log_me
@top.route('/')
def index():
products = offers.read_offers()
return render_template("app-top.html", product_dict=products)
| [
"oleksii.mits@gmail.com"
] | oleksii.mits@gmail.com |
adb2f67e9c44084ad1f9ff53b27bcf8bb14e13b6 | 8abcbaf205a707382facbbaa6633943a11dec997 | /binary_tree/inorderTraversal.py | f4f7cd36b5d29523be9df8220dbbfd4f49cd3129 | [] | no_license | sepulworld/leet | 09b1ba378452cd53ee86a58179bd61a2b4bbbdbd | 4801a4f14181e956c0698b3bc8f06d662cba89a0 | refs/heads/master | 2020-04-26T07:36:53.716238 | 2019-04-09T22:16:20 | 2019-04-09T22:16:20 | 173,398,608 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def __init__(self):
self.output = []
def inorderTraversal(self, root: TreeNode) -> List[int]:
if root:
self.inorderTraversal(root.left)
sel... | [
"zane@ugh.cloud"
] | zane@ugh.cloud |
c0b3cf431a445b2bc0eeb4c15daff6cc571037d5 | cc9a653f937d5f49f1c21088e84bb11a7bd2be03 | /exoensewebsite/urls.py | 71dfee63473064ad9d2ea93aa00479309c8b6c2a | [] | no_license | Mahmoud-m-bahget/expenses-website | 20cd9108fabf3b5ce0f552f63ccb2ed112b74410 | f534592a821fa6dfe167f283a734a7c743d07a45 | refs/heads/main | 2023-02-20T17:07:47.018322 | 2021-01-26T15:26:07 | 2021-01-26T15:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """exoensewebsite 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='home')
Clas... | [
"69098676+Mahmoud-m-bahget@users.noreply.github.com"
] | 69098676+Mahmoud-m-bahget@users.noreply.github.com |
1c66ee7590418088986353d5bd24aba38b3ae6a5 | 239cb750a0d5fe2bdd0907a2933fc2e6f0894db4 | /sightseq/__init__.py | 3c87b075599a3f81c83ef774aa7e497e3cde2024 | [
"Apache-2.0"
] | permissive | qiongxiao/image-captioning | b2ff9d18983c5983b68bdd10961dc79a8cb76cba | 16a4884ef816245577d106b82b0cbe785fd083a4 | refs/heads/master | 2020-06-19T23:38:53.360549 | 2019-07-14T13:08:41 | 2019-07-14T13:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | # Copyright (c) 2019-present, Zhiqiang Wang.
# All rights reserved.
import sightseq.criterions
import sightseq.models
import sightseq.modules
import sightseq.tasks
import sightseq.data
| [
"zhiqwang@outlook.com"
] | zhiqwang@outlook.com |
759650dfdc4173a40d5c61b65fc2a0492f304817 | 1ee6f5aed273f0ef7a96fa42fc52e65b32ccaf38 | /shop/views/category_views.py | 279d77596d0688b279c5a39a8bb24d29387bf100 | [] | no_license | ianastewart/guestandgray | e9892711ff1e09a4a94b9889027ab00606d525a9 | 337d8d017f1f2fece4a641ed415b9837cf278b47 | refs/heads/master | 2023-08-31T02:53:21.623469 | 2023-08-30T10:08:10 | 2023-08-30T10:08:10 | 202,700,063 | 0 | 0 | null | 2021-01-07T23:08:56 | 2019-08-16T09:32:24 | Python | UTF-8 | Python | false | false | 5,686 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import JsonResponse
from django.shortcuts import redirect, reverse
from django.urls import reverse_lazy
from django.views.generic import CreateView, DetailView, TemplateView, UpdateView, View
from django.templatetags.static import static
from sh... | [
"is@ktconsultants.co.uk"
] | is@ktconsultants.co.uk |
7b2c2de23fb780350f4b5685fefa6d4dcf750f2d | 9b3edf55beca0176fac208efdf2e2bb2ef8f9600 | /libcloudforensics/providers/aws/internal/account.py | cbd4461653afbd001926391883a68686dcfe8edf | [
"Apache-2.0"
] | permissive | aarontp/cloud-forensics-utils | cc81530dcb1f32b906cf53c911f8c49b46d17fa4 | efc65b526bb551595353f0012d46381792a3684e | refs/heads/master | 2023-01-16T01:18:33.503447 | 2020-10-29T16:34:35 | 2020-10-29T16:34:35 | 275,072,971 | 1 | 0 | Apache-2.0 | 2020-06-26T04:27:36 | 2020-06-26T04:27:35 | null | UTF-8 | Python | false | false | 6,019 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"noreply@github.com"
] | aarontp.noreply@github.com |
2f01d7850de360df662f532c1ecb1c04d04f2bcb | 3cef0aae15f155239a1bde7de9ada79e90d4d6a1 | /keygen-practice/crack.py | 89e4d7b72db6f68ad13fa40881d90c5a5026603e | [] | no_license | neelpatel05/crackmes | edb3a8954df8892b21f5487bf2551adf4ca02b80 | dc0fe1233b1d02060f7960f6406d41fae5a8db53 | refs/heads/master | 2022-12-05T13:12:08.901471 | 2020-08-18T19:29:19 | 2020-08-18T19:29:19 | 276,696,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | final = 52650
divisible = []
for i in range(65, 90):
if final % i == 0:
divisible.append(i)
quotient = []
for i in divisible:
x = final / i
quotient.append(x)
print(quotient)
for i,j in zip(divisible, quotient):
print(chr(i)*j)
| [
"neel.patel6573@gmail.com"
] | neel.patel6573@gmail.com |
0a8b93c86f1f59ac957d675eef30b726dc06c777 | 52a4d869976a97498bdf56a8d0ff92cac138a136 | /Algorithmic Heights/rosalind_3_degarray.py | 1ed82de8791f3769afe522fe22c1bee1abb2a87e | [] | no_license | aakibinesar/Rosalind | d726369a787d848cc378976b886189978a60a3a5 | 375bbdbfb16bf11b2f980701bbd0ba74a1605cdb | refs/heads/master | 2022-08-18T09:36:00.941080 | 2020-05-24T18:49:38 | 2020-05-24T18:49:38 | 264,722,651 | 0 | 0 | null | 2020-05-17T17:51:03 | 2020-05-17T17:40:59 | null | UTF-8 | Python | false | false | 380 | py | file = open('rosalind_deg.txt','r').readlines()
vertices, edges = (int(val) for val in file[0].split())
my_data = [[int(val) for val in line.split()] for line in file[1:]]
count = 0
L = []
for k in range(1,vertices+1):
count = 0
for i in range(2):
for j in range(0,edges):
if my_data[j][i] == k:
count+=... | [
"noreply@github.com"
] | aakibinesar.noreply@github.com |
6be4192f3fc52227e191ab2489000cf461ddea87 | d43a182f9fa65dae58f87b0a9aae2f831c587b6e | /mysite/polls/admin.py | dc8f548a0a106b264d07391b283eae6f50408327 | [] | no_license | ahmedosamataha/first_steps_in_django | 946058f1fa03a1fcd3146ca1e8b47fa48615b032 | 54f97ef4cef46f4a09cb205c262cf6df39821f8a | refs/heads/master | 2020-03-30T11:19:05.249736 | 2018-10-01T22:10:14 | 2018-10-01T22:10:14 | 151,167,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.contrib import admin
from .models import Question , Choice
# Register your models here.
admin.site.register(Question)
admin.site.register(Choice)
| [
"ahmedosama.t123@gmail.com"
] | ahmedosama.t123@gmail.com |
3e677c83fd12cc5c2661147aa8b3dca9d0b689e4 | 15c4278a1a70ad3c842b72cba344f96fca43f991 | /newpro/newapp/admin.py | 37dac0ac21c8bfb1c6e0d008a060f3977faa28a0 | [] | no_license | nivyashri05/Task1 | d9914cf5bb8947ef00e54f77480c6f5f375c76ad | 9e9b03961eb1144d1b1a936159082ad80d32ce31 | refs/heads/master | 2023-01-06T01:04:17.321503 | 2020-11-10T15:31:02 | 2020-11-10T15:31:02 | 311,691,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from newapp.models import User
class UserAdmin(BaseUserAdmin):
list_display = ('email','username','phone','is_admin','is_staff','timestamp')
search_fields = ('email','username',)
readonly_fields=('date_joined', 'las... | [
"nivyainventateq@gmail.com"
] | nivyainventateq@gmail.com |
4ff946b307a86955672b905e0806efb85572c652 | 198f759dc334df0431cbc25ed4243e86b93571eb | /drop/wsgi.py | 0dbf4b2caf4a9cd90fadce8e2d1d88950fcb3cfe | [] | no_license | miladhzz/django-muliple-db | ec2074b14dd67a547c982f20b2586f435e7e0d6c | 56ff2555e498d9105cad215daf4c3d4da59d7d9a | refs/heads/master | 2022-12-25T08:08:05.761226 | 2020-10-06T06:38:30 | 2020-10-06T06:38:30 | 301,636,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for drop 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"miladhzz@gmail.com"
] | miladhzz@gmail.com |
21ae88cb38d2277d10ef58534ab938812f72fd97 | a0b857f7cd610ae077138dbc69b3abf7b08e9e31 | /api/models/permission.py | 64872b23374aa99bdd07660cd9a671946d8163c0 | [] | no_license | CalvinHuynh/project-olympic | 3122f6b9d9cb1532494bb2aa5443337efac8f519 | f73de5dd356b680ee8efe1d1914266d5523084d2 | refs/heads/master | 2022-12-13T09:03:14.881268 | 2020-02-06T14:05:04 | 2020-02-06T14:05:04 | 207,567,536 | 0 | 0 | null | 2022-12-08T06:44:16 | 2019-09-10T13:30:27 | Python | UTF-8 | Python | false | false | 242 | py | # from peewee import CharField, DateTimeField, PrimaryKeyField
# from .base import Base
# class Permission(Base):
# id = PrimaryKeyField()
# permission_name = CharField(unique=True, null=False)
# created_date = DateTimeField()
| [
"huynhck001@gmail.com"
] | huynhck001@gmail.com |
427feb09933b065ae020efa261753f3a2df525d7 | be3f9044ca524bd507bf8f38a5753f5a72d8f086 | /12-computing-simple-interest/computing-simple-interest.py | 9f2c83d072816b4dd6e8aa4209e21af9d270c516 | [] | no_license | ville6000/EFP-Python | 41a5ccf307ff0b96d60b56e2814489503dd8806b | 0076222203f4a09afe9f7954905b36355171dccb | refs/heads/master | 2021-04-15T06:38:12.982733 | 2018-09-24T07:07:26 | 2018-09-24T07:07:26 | 126,884,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import locale
locale.setlocale( locale.LC_ALL, 'en_CA.UTF-8' )
def calculate_simple_interest(principal, rate_of_interest, years):
return int(principal) * (1 + (float(rate_of_interest) / 100) * int(years))
principal = input('Enter the principal: ')
rate_of_interest = input('Enter the rate of interest: ')
years = i... | [
"ville.viklund@morgan.fi"
] | ville.viklund@morgan.fi |
17122f65e0d8729a00a8bd125c9cd4e3087399da | 53cb878e54f08d8cf59118e313f773fd99a690fc | /FirstWindow.py | 415be3585b73c72f4af53b0ab528eee47290eb53 | [] | no_license | Dudoserovich/Coursework-1 | 17340f08a68e9072f1b7962195674a04d843a533 | f41225494ddfeb0e52ff60f79ada9ba8bd63e390 | refs/heads/main | 2023-07-28T03:30:32.417528 | 2021-09-14T06:56:11 | 2021-09-14T06:56:11 | 406,258,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,717 | py | import BaseCreateWindow as BaseWin
import tkinter.messagebox as mb
import tkinter as tk
import os
import random
from tkinter import filedialog, DISABLED, NORMAL, LEFT, BOTH
import ExWindow as ExWin
class WorkFile:
def _fill_up(self, file, count_num: int, min: int, max: int) -> None:
new_max = int(max / co... | [
"mr.egoryk@mail.ru"
] | mr.egoryk@mail.ru |
16d4ac62c0efe8567434b83a272a3035cd8c8990 | d75371f629cf881de3c49b53533879a5b862da2e | /python/search-a-2d-matrix.py | 3ce6ce1d52b91816fccec4a1e5592f5c548b2cf5 | [] | no_license | michaelrbock/leet-code | 7352a1e56429bb03842b588ba6bda2a90315a2f4 | 070db59d4e0ded3fb168c89c3d73cb09b3c4fe86 | refs/heads/master | 2020-04-01T05:40:49.262575 | 2019-10-10T22:03:10 | 2019-10-10T22:03:10 | 152,914,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,614 | py | def binary_row(rows, target):
if len(rows) == 1:
return 0, None
if len(rows) == 2:
return (1, None) if target >= rows[1] else (0, None)
lo = 0
hi = len(rows)
while lo < hi:
mid = (lo + hi) // 2
if rows[mid] == target:
return mid, True
if mid == len(rows) - 1:
return len(rows) -... | [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
d7a94e8e68011d579a02bc724c942353b0af1cc0 | 2ec1d45341efe23b85019c7596df5fbcfcdcef3e | /model/cnn.py | c36025930684f64e703a2c17b443755d7d6cb5e1 | [] | no_license | mostafaalishahi/Genetic_engineering_attribution_challenge_2020 | 9d6201e716d932a429d62ca242be5bb04dae6a6c | c5bc830d311f15cc1468fb308dbacd5d6678b7ce | refs/heads/master | 2023-01-03T14:06:32.210148 | 2020-10-23T18:16:06 | 2020-10-23T18:16:06 | 306,711,461 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | import torch
from torch import nn
class MODEL(nn.Module):
def __init__(self, target_size, n_filters=512, rv_comp=True, metadata=True, padding_idx=0):
super().__init__()
self.rv_comp = rv_comp
self.metadata = metadata
self.filters = n_filters
self.cnn1 = nn.Conv1d(4, self.fil... | [
"mostafa.alishahi@gmail.com"
] | mostafa.alishahi@gmail.com |
3609259e320c1b9024140e43446e259fc8811f1b | c5adccfb62906c2b7ed75388f964e94111782598 | /Python/venv/lib/python3.8/site-packages/doqu/validation/__init__.py | 42fedd829f0054a6d382ce38b330f1c6fd1f3e16 | [] | no_license | FranciscoMaya20/MobileWebScraping | 531e9dfc77c1d7ddd90dea5874a4c7f5316d608d | 979d310a7751ad27b96679316494023b6d5bd1b8 | refs/heads/master | 2023-01-28T01:34:33.312236 | 2020-11-30T16:39:11 | 2020-11-30T16:39:11 | 317,284,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # -*- coding: utf-8 -*-
#
# Doqu is a lightweight schema/query framework for document databases.
# Copyright © 2009—2010 Andrey Mikhaylenko
#
# This file is part of Doqu.
#
# Doqu is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as pub... | [
"fjm1001@sru.edu"
] | fjm1001@sru.edu |
16573c15b3817ed9f64b13f466428536b50da9d6 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0_cuda/build/waypoint_follower/catkin_generated/generate_cached_setup.py | 01cfc657005e5167ef4e8abd08b42b76f522be17 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"907097904@qq.com"
] | 907097904@qq.com |
efaec29f5e6d47e75369e75f63b91d4a4bcd3b8a | 589d36690594f8ddfc1b47bd3a3781abcff2bb6d | /test2.py | 04f69123eac59477f23a64729e8b13ca222673a3 | [] | no_license | dwij2812/Robotics-makeathon | 4275beb660dff128a6aef06dfc0025c9e980a57d | fd12aba84374a6320dfe4b2bced40e89d5dc2388 | refs/heads/master | 2023-07-25T01:27:38.379290 | 2018-06-05T08:01:00 | 2018-06-05T08:01:00 | 106,436,126 | 1 | 1 | null | 2022-03-07T08:42:14 | 2017-10-10T15:31:23 | Java | UTF-8 | Python | false | false | 1,330 | py | import serial
import time
import requests
import json
import re
firebase_url = 'https://iot-data-d6cb8.firebaseio.com/'
#Connect to Serial Port for communication
ser = serial.Serial('COM11', 250000, timeout=0)
#Setup a loop to send Temperature values at fixed intervals
#in seconds
fixed_interval = 60
whi... | [
"noreply@github.com"
] | dwij2812.noreply@github.com |
8f9842cabc131fddc1025c2ab9121b0af86a3297 | d9a65120e6b8d20d3b568acde8ceb66f908d1ffc | /django1/src/vote/urls.py | 68755a03d624470c3b5e239836982709943bda16 | [] | no_license | omniverse186/django1 | aba57d705bd7b3a142f627e566853811038d6d6c | f257c34c9d09467170a5f3bd24598d97dcf64f4f | refs/heads/master | 2020-04-21T23:11:17.677609 | 2019-02-10T03:20:47 | 2019-02-10T03:20:47 | 169,938,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | '''
Created on 2019. 1. 20.
@author: user
'''
#하위 URLConf
#app_name : 하위 URLConf 파일의 등록된 URL들의 그룹명
#urlpatterns : URL과 뷰함수를 리스트 형태로 등록하는 변수
from django.urls import path
from .views import *
app_name = 'vote'
urlpatterns = [
#name : 해당 URL, 뷰함수 등록에 대해서 별칭을 지정
path('', index, name= 'index'),
... | [
"user@DESKTOP-37GULAI"
] | user@DESKTOP-37GULAI |
eb34fbed2c2a2dc76d32eeb205b7cf2a7f14c188 | 139641b0f4b047a6e980e2acc817f013ca5b487f | /Assignment 1/Question3.py | d60a6fd69032b2fb326124bad2a9a21bca226a89 | [] | no_license | JagjitUvic/MIR | 7094b131443e82c9fb8825f5b1f03011a8770c7e | 675f1fcc8b99cb899efff5864104251a4fc3e602 | refs/heads/master | 2020-05-23T10:16:02.855874 | 2017-02-16T00:22:05 | 2017-02-16T00:22:05 | 80,409,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.fftpack
import math
import mir
from mir import Sinusoid
sin1 = Sinusoid(Fs=256, amp=5, freq=20, phase=5)
N = len(sin1.data)
print N
signal = []
bin = 4
k = bin
cosa = []
sina = []
for n in range (N-1):
theta = 2*math.pi*k*n/N
cosa.append(math.... | [
"jagjitsingh.mail@gmail.com"
] | jagjitsingh.mail@gmail.com |
dab84d76a501ac997c5b01d258ae27a60538ddb6 | 4bf7b9ef50a28be3a2ea327ab3d89464b5c8fe9c | /Atividades - Python/Exerc.010 - Pedra Papel e Tesoura.py | 0b197f29447e93c1191de2ec3766d97e0614da60 | [
"MIT"
] | permissive | mfre1re/Diversas-atividades-em-Python | 072428d1a7fe400afd27b82005209999ea9f42bf | b3ca38dd71a6b333c4016838df0a822782b51619 | refs/heads/main | 2023-08-15T12:30:42.703641 | 2021-09-30T20:53:01 | 2021-09-30T20:53:01 | 408,258,204 | 0 | 0 | MIT | 2021-09-30T20:53:02 | 2021-09-19T23:17:18 | Python | UTF-8 | Python | false | false | 689 | py | from random import choice
print('Vamos jogar Pedra, Papel ou Tesoura?')
jg = str(input('Escolha sua mão: ')).strip()
jg = jg.lower()
lista = ['pedra', 'papel', 'tesoura']
cpu = choice(lista)
print('O computador escolheu {}.'.format(cpu))
if cpu == jg:
print('Empate')
elif cpu == 'pedra' and jg == 'tesoura':
pri... | [
"msfreire52@gmail.com"
] | msfreire52@gmail.com |
42602d680129030ee14c9f88495ddc649c91fac2 | fc3a18196a9fa7a3e49700ce913350fe1a6e5d55 | /siteplay/siteplay/urls.py | 006dfc0851a8e93285b35e4980c84eb37f384cdc | [] | no_license | luizxx/Projeto-de-exercicios | 81e6ef9c874b4543de6a4726655292bc9f18cd9d | 6d369b2d8037400662822d0a659c96c098c7e81b | refs/heads/main | 2023-06-29T22:33:30.649421 | 2021-08-02T01:29:42 | 2021-08-02T01:29:42 | 390,143,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | """siteplay URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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='home')
Class-base... | [
"luizotavio308@gmail.com"
] | luizotavio308@gmail.com |
c5314ca04cf676a9eb3a9ed3337967a8e8814205 | 13b91cc2cf33b79230b971d7496abaaeca05a760 | /Au plus proche dernière version.py | 2dda3e6af08940dfc9ca17d99dfb75e9cc76ee10 | [] | no_license | DevauxRobin/Projet-Libre | 5657a5e2fa6c2f63a87afa10845a44e6e4837bed | 0de22a51eee2378bc664cee71ffb27559a2a1e2e | refs/heads/main | 2023-04-28T21:40:28.232230 | 2021-05-27T12:27:16 | 2021-05-27T12:27:16 | 369,522,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | ### On importe le module random pour générer des nombres aléatoires et le module tkinter pour l'interface
import random
import tkinter as tk
def test(event=None):
global enter_number, random_number, infos
### Récupérer le nombre
number = enter_number.get()
### Tester si le caractère e... | [
"noreply@github.com"
] | DevauxRobin.noreply@github.com |
83f41dac89a9225fb4404d1d8cc88b32b064ac52 | 8a17fa08f56746ec9dfc1a7043f525b60661477d | /递归/P77:Combinations.py | 4743940f0e1d3c88022de0a063683425a7bf636d | [] | no_license | BlueSky23/MyLeetCode | 9b59ae2a5523c996755c3c56ba84943864fc7eab | 454f804902428e410d1aafec13c1fcde2435f8d0 | refs/heads/master | 2021-07-10T11:53:16.830113 | 2020-12-22T02:28:58 | 2020-12-22T02:28:58 | 223,888,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # 排列组合的性质:c(k,m)=c(k,m-1)+c(k-1,m-1)
# 注意边界条件
class Solution:
def combine(self, n: int, k: int):
if n <= 0 or k <= 0:
return
if n < k:
return
if k == 1:
return [[i] for i in range(1, n + 1)]
if k == n:
return [[i for i in range(1, n +... | [
"liupeipeng@gmail.com"
] | liupeipeng@gmail.com |
c1b7e51aa3e1c1daed4fdf1a97394c3827b40141 | 8ec7a3e598571902d60c76fe4063401fd44c518a | /DataScience-Python3/venv/python/Scripts/pip3.7-script.py | ff4b1bc083d0e7dbc906957a27986d99ab9c403b | [] | no_license | MinerNJ/PythonProjects | 6af1e37c07f23cc8e81a128c3f0ab66f42733689 | 86dba59b3c1b254697c979e6115b1bd60a980cdf | refs/heads/master | 2020-05-18T14:52:09.953738 | 2020-02-06T22:11:03 | 2020-02-06T22:11:03 | 184,481,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!C:\Users\nickm\PycharmProjects\DataScience\venv\python\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"Nick.Miner18@gmail.com"
] | Nick.Miner18@gmail.com |
b59fa9ec2f490e6e84a85e73f44ac57ac0aa19e8 | 3fa2b0ea8b6893b4c2b54337f75fdafce03ef924 | /BeginnerSnippets.py | 7ea547733df49a622a60a681f6f9d89d4f8b34ad | [] | no_license | KUHOO-S/Scripts-and-DA | 0ab88f8fc9be1df458ef958cfa996205919bdb93 | cd92360c354a7ecf6d491a9ec90add07ee90e5a9 | refs/heads/master | 2022-12-19T14:46:47.878377 | 2020-09-30T18:38:35 | 2020-09-30T18:38:35 | 298,450,996 | 0 | 6 | null | 2020-10-01T09:10:35 | 2020-09-25T02:50:29 | Python | UTF-8 | Python | false | false | 247 | py | def foo(x):
def retfun(y):
return y * x
return retfun
def bar(f1, f2):
def newfun(y):
return f1(y) / f2(y)
return newfun
def a(z):
return z * 10
b = foo(2)
c = bar(a, b)
print(a(5))
print(b(5))
print(c(5)) | [
"kuhoo1999@rediffmail.com"
] | kuhoo1999@rediffmail.com |
ee93f67a0d3be9541f6e49464b2c681f66d57dcb | 3b5b3ab1a5e1cfead4d09671333378995eadbc01 | /Week_08_model_comparison/utils.py | fabad819cc066526228fc5907caaef99c3106961 | [] | no_license | piecesofmindlab/UNR_PSY_763 | 01ca6638fb6a2be956d8e697b444e781ad47ef80 | d27c9007a79b90ee595021ab170ec6a510042143 | refs/heads/master | 2022-04-10T09:01:11.794455 | 2020-03-13T12:19:56 | 2020-03-13T12:19:56 | 118,689,922 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | from __future__ import division
import matplotlib.pyplot as plt
import numpy as np
import itertools as itools
def column_corr(A, B, dof=0):
"""Efficiently compute correlations between columns of two matrices
Does NOT compute full correlation matrix btw `A` and `B`; returns a
vector of correlation co... | [
"mark.lescroart@gmail.com"
] | mark.lescroart@gmail.com |
a688ca2e222977722e0df277f47979059d2e8e1b | 99eb4013a12ddac44042d3305a16edac1c9e2d67 | /test/test_raw_shape_map.py | 1a6b72fc298a5b35beaa25426e64cdf336fc34fa | [
"Apache-2.0"
] | permissive | DaniFdezAlvarez/shexer | cd4816991ec630a81fd9dd58a291a78af7aee491 | 7ab457b6fa4b30f9e0e8b0aaf25f9b4f4fcbf6d9 | refs/heads/master | 2023-05-24T18:46:26.209094 | 2023-05-09T18:25:27 | 2023-05-09T18:25:27 | 132,451,334 | 24 | 2 | Apache-2.0 | 2023-05-03T18:39:57 | 2018-05-07T11:32:26 | Python | UTF-8 | Python | false | false | 4,212 | py | import unittest
from shexer.shaper import Shaper
from test.const import G1, BASE_FILES, default_namespaces
from test.t_utils import file_vs_str_tunned_comparison
import os.path as pth
from shexer.consts import TURTLE
_BASE_DIR = BASE_FILES + "shape_map" + pth.sep
class TestRawShapeMap(unittest.TestCase):
def tes... | [
"danifdezalvarez@gmail.com"
] | danifdezalvarez@gmail.com |
ed15b992f0c49401af146f3197cca0d0290ff145 | ffde7327de8f5d3428ff7359ada54bdfcaf3a936 | /tango_with_django_project/rango/migrations/0002_auto_20141118_0312.py | 5f6bbb602a621d1aadffff8d920325a85f0a5489 | [] | no_license | kittozheng/Learning_projects | f21eaeadcddfae9a66f5e91b0cfebff1a0fcd52e | 4a7aacaff28f8d9335614bac6479314ccdb8a4e6 | refs/heads/master | 2021-01-01T18:37:07.701932 | 2014-12-20T06:44:36 | 2014-12-20T06:44:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rango', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='page',
name='category'... | [
"zhengzhijie@acttao.com"
] | zhengzhijie@acttao.com |
abd2f183813a26b39b95507feb4bb61cfdad6e52 | 56c5bd20684a87ba522099ac0c2d22032c172662 | /menu_service/migrations/0005_auto_20210519_1103.py | 6f46237e29642fbb325f33ae9ac10b1759a08e9d | [] | no_license | germanTM/Backend-Test-Torres-Molina | 3fa30c0c1aed8525ef355f41fd00152e57126cd3 | 330de56a79d87875568b166f2bb17cbc2e72a060 | refs/heads/main | 2023-05-10T15:12:05.936666 | 2021-05-26T02:58:53 | 2021-05-26T02:58:53 | 370,290,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 3.0.8 on 2021-05-19 11:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('menu_service', '0004_auto_20210519_1102'),
]
operations = [
migrations.RenameField(
model_name='dish_ingredient',
old_name='... | [
"german211221@gmail.com"
] | german211221@gmail.com |
a1d32b5401517d39248b3b290e7fb43137f0b596 | 7670ea280776c304c03702c434bc572a9baf9f6d | /btc.py | bafd2aa031f870d404d12625e665eab5cc0377dc | [] | no_license | Aldobareto/bot3tele | 4aad6a49e93bf5d9f604b740095ea968d5200951 | d1c38af43f602ffd80ed5777ded50878ad5874cf | refs/heads/master | 2020-06-22T03:42:36.197566 | 2019-06-29T18:33:22 | 2019-06-29T18:33:22 | 197,623,621 | 1 | 0 | null | 2019-07-18T16:41:33 | 2019-07-18T16:41:33 | null | UTF-8 | Python | false | false | 12,007 | py | import marshal
# AW 2000
# donate doge D5YsVdHvKqq2apzQPGeTcS9SNjuskuM8HM
exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00@\x00\x00\x00sx\x06\x00\x00d\x00d\x01l\x00m\x01Z\x01m\x02Z\x02m\x03Z\x03\x01\x00d\x00d\x02l\x04m\x05Z\x05m\x06Z\x06\x01\x00d\x00d\x03l\x07m\x08Z\x08\x01\x... | [
"noreply@github.com"
] | Aldobareto.noreply@github.com |
9a0b11d34c65a69702e5f2c0816a02e44ba81f6c | 88395edcba1d35da9a39272bc94e7fc35c576b1b | /InitialFiltering.py | c219b53a0a235705d7bfc53f02b999469127e08e | [] | no_license | vijendhervijendher/Box-office-prediction-using-different-models | 1027b53a65f4141f52a8643d54c79f40173f007c | 23653f12f06b3b175c89de77ce0bf55b66e50fb4 | refs/heads/master | 2020-03-16T04:13:41.029688 | 2018-05-07T19:58:42 | 2018-05-07T19:58:42 | 132,506,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,039 | py | import pandas as pd
import json
import csv
import matplotlib.pyplot as plt
import numpy as np
movies_data = pd.read_csv('tmdb_5000_credits.csv')
credits_data = pd.read_csv('tmdb_5000_movies.csv')
# Combining the movie database data into a single csv file
output = pd.merge(movies_data,credits_data)
output.t... | [
"noreply@github.com"
] | vijendhervijendher.noreply@github.com |
1c98f010be779b0df3ae626d838b4e5e5e86525c | d24e06a9fb04ada28de067be1b6be50a7a92f294 | /Assignment1/svm_test.py | c916d079fcf86ddccff119130ecb3486e4f6dee4 | [] | no_license | sentientmachine/CS7641 | 3960b3e216f1eddc9a782318a9bf3ae38fed1959 | a9a1369acfdd3e846e311c64498a38c8afd8fcc2 | refs/heads/master | 2020-12-25T03:11:46.621886 | 2017-12-24T12:24:14 | 2017-12-24T12:24:14 | 51,779,034 | 0 | 0 | null | 2016-02-15T19:17:10 | 2016-02-15T19:17:10 | null | UTF-8 | Python | false | false | 4,649 | py | import io
import pydotplus
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.svm import SVC
from sklearn.model_selection import StratifiedKFold
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler, StandardScaler, OneHotEncoder, Imputer
#from sklearn.m... | [
"="
] | = |
9c400a046050ad984f7ea8eadc6cd7593e5b051d | 7ab43f39d04d89d7799b264bf6b2b8cdd5d12a72 | /store/migrations/0015_order_list_total.py | 8d50824654c493f86b3f4ae238299292cd2e8ad4 | [] | no_license | Facfac5000-git/manam_store | 7d168b6f2ce98a9cdfa06f3419021c878954c805 | e774c82f198f6c8c3aeb9bd71a3bbbebd42f91cb | refs/heads/master | 2023-05-28T06:20:46.590075 | 2021-06-14T21:49:31 | 2021-06-14T21:49:31 | 375,697,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 3.0.8 on 2021-05-05 02:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0014_product_list_price'),
]
operations = [
migrations.AddField(
model_name='order',
name='list_total',
... | [
"facfac4000@hotmail.com"
] | facfac4000@hotmail.com |
4dabb4dcf7e5b6d492023be48a616755cb5d9b08 | 3f8bb7a9adab1ad545e1d1b7a35333b64165c145 | /all_archives/archived_py/manly_recent.py | e0fe6ef9ec366ce7f5117e7f9efa5e14cbfc5885 | [] | no_license | cyntiamk/weather_prediction_1 | 3168660a439e9cee1a9462b390b0f4c828b40dca | 283025d4305f9773684efb498702a3c2cd9fb5ff | refs/heads/master | 2020-04-17T01:18:13.579954 | 2019-01-27T14:52:21 | 2019-01-27T14:52:21 | 166,086,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | # Dependencies
import csv
import openweathermapy as ow
import pandas as pd
import requests
import pprint
import time
from datetime import datetime
import os
# import api_key from config file
from config import api_key
def grab_manly():
data = []
url = "http://api.openweathermap.org/data/2.5/weather?"
unit... | [
"cyntiamk@gmail.com"
] | cyntiamk@gmail.com |
63fca56bd0c0663f2b1060f16e06b9340e3f7ee7 | 62a6299282f65919e0a0f4241882a574e8ebb26b | /fifty_shades/example.py | a7fbf2642486869aa6d7297cf726f9aa7e7831c7 | [
"MIT"
] | permissive | a-ro/fifty-shades-of-miaw | 53603c1935842925d27a6d139394f8f29789c490 | 0af7029673619bef76c4cbfb38bf904f4f1c4dc0 | refs/heads/master | 2023-02-20T02:17:25.303257 | 2021-07-16T17:04:31 | 2021-07-16T17:04:31 | 229,767,682 | 4 | 1 | MIT | 2023-02-16T04:14:54 | 2019-12-23T14:26:21 | Python | UTF-8 | Python | false | false | 2,897 | py | from os.path import join
from fifty_shades.image_processing import load_image_tensor
from fifty_shades.loader import (
ImageType,
generate_project_images,
get_result_path,
get_hero_one_file_path,
get_drawing_one_file_path,
get_cat_bromance_file_path,
)
from fifty_shades.model import NeuralStyle... | [
"amelie.rolland.1@gmail.com"
] | amelie.rolland.1@gmail.com |
015b25ad507b89bc4320e695f062c1754e42a687 | c4ae14ae4cade9cececfc1a373406ca02bff00e8 | /pysem.py | 7053c74e100074f1924c0dbf91f9493d9dff27ae | [] | no_license | mawilson1234/PySem | 33405fd90487e35b869c18f6cf2da090a9651599 | bac65041bbfb3ada774e520e410584315be35136 | refs/heads/master | 2022-12-05T21:57:25.913169 | 2020-08-20T02:18:51 | 2020-08-20T02:18:51 | 288,038,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,737 | py | from inspect import getsource
import re
import string
# Convert indices to subscripts for printing
SUB = str.maketrans("0123456789", "₀₁₂₃₄₅₆₇₈₉")
# Get a new variable name in order so we don't repeat ourselves when doing nested predicate abstractions
def var():
x = string.ascii_lowercase.index('x')
while True:
y... | [
"mawilson@linguist.umass.edu"
] | mawilson@linguist.umass.edu |
0f829d8e2b610f7cefeced061d569b1d0b6f399d | 4a42d03ad01818b6cc04444057dd66300a725d0a | /medium/DetectingCycles6.py | fd3ef98d11805a968634bdc9da8c1317c56416aa | [] | no_license | giy/code-eval | 1a97b6e0a19c96cd45b7da848ab47ea7eb9a444c | 748b1e59bb9223ebe44b40b89a960d0b213a93a4 | refs/heads/master | 2016-09-05T09:58:32.898874 | 2015-02-28T05:41:00 | 2015-02-28T05:41:00 | 31,239,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import sys
def detectCycle(nos, i):
cycleBeginsAt = i
tortoise = 0
hare = cycleBeginsAt
for i in range(len(nos)):
if nos[hare] == nos[tortoise]:
break
tortoise += 1
hare = (hare + 1)%(len(nos))
cycleBeginsAt = tortoise
result = []
for i in range(tortoise, len(nos)):
... | [
"gautamiyer@GAUTAMs-MacBook-Air.local"
] | gautamiyer@GAUTAMs-MacBook-Air.local |
93117ac33ad6602c755054bba6d85d4308a19d77 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /L7NK7McEQ9yEpTXRE_16.py | d1817c7d7db4293f1356e203513e2932567c3783 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py |
def XOR(a, b):
a = a ^ b
b = a ^ b
a = a ^ b
return [a,b]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
dde1ad2c4ae0622c1f48801305dc2b8ddcce57a5 | a3f062eb210f05e22f90b5eecfda6195a8ba0744 | /LaneDetect.py | 0d0937bc0b216fe789900bf28359d9441c280576 | [] | no_license | Menglingyu2333/RaspberryDesktopFile | 30b8df562b6e7082700f491a9baaf7f4cefe607e | 687f7a700014cf7c9d338d2200318d0ea578a4f7 | refs/heads/master | 2023-01-21T07:26:51.842296 | 2020-12-07T11:36:59 | 2020-12-07T11:36:59 | 319,299,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | import cv2
import numpy as np
# 使用霍夫直线变换做直线检测,前提条件:边缘检测已经完成
__author__ = "boboa"
# 标准霍夫线变换
def line_detection_demo(image):
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray, 50, 150, apertureSize=1)
lines = cv2.HoughLines(edges, 1, np.pi/180, 200) # 函数将通过步长为1的半径和步长为π/180的角来搜索所有可能的直线
... | [
"1171766563@qq.com"
] | 1171766563@qq.com |
78736e48e0a8d4cc7189fbf0b4c5142cc83a935d | 5349b773a61d681ee7903391e22dae1b1c9f1ac4 | /___sb3analyzer_bak20200401/sb3analyzer/sb3analyzer.py | 9bb0be82d31fca4fda7c32905ef42310afde57c8 | [
"MIT"
] | permissive | gnoeykeCG4001/sb3analyzer_references | 05acafe085c5e8083eacf98c7f67a08faada50ea | 078740a86cc8c11d0731f7e1138cdbd856c778b1 | refs/heads/master | 2023-02-04T14:33:34.027908 | 2020-04-03T07:26:01 | 2020-04-03T07:26:01 | 252,245,854 | 0 | 0 | null | 2023-01-25T14:22:36 | 2020-04-01T17:43:36 | JavaScript | UTF-8 | Python | false | false | 939 | py | # Comments regarding module
#
#
## Imports
#from sb3objects import sb3block_inputNfield
import sys
sys.path.append('/__SB3Analyzer/sb3objects')
from sb3objects import sb3project
## Globals
## Define
## Helper functions
## Class declaration
class SB3Analyzer:
# Constructor
# score variables
deadC... | [
"gnoeyke.code@gmail.com"
] | gnoeyke.code@gmail.com |
8db36025f323262af3ea01791f185c0f0290c259 | 46ef284df436bc84cbd62b45dcc909a955e10934 | /turtle02.py | 46c978aaba1f6e85a718d4fdf5b9a06b16cc419f | [] | no_license | zmscgck/pythonexercise | 188e2d3175a137ff3eb79fc2d412e932879e794c | eca7575b62d65cef6d580ea4261dc3e08f5389ff | refs/heads/master | 2020-08-13T10:13:43.007857 | 2019-10-14T04:58:10 | 2019-10-14T04:58:10 | 214,952,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 15 19:42:05 2019
@author: LZM
"""
import turtle
hg=turtle.Turtle()
def square(t,length):
for i in range(4):
t.fd(length)
t.lt(90)
print('请输入边的长度:')
length=input()
length=float(length)
square(hg,length)
| [
"lgfl@sina.com"
] | lgfl@sina.com |
d02ea8b20701f5938a589e9eadbb08bbac40c1a4 | 9f0c27df4ab43ad6f3fca2fec4850b9a7c043241 | /Scripts/utils.py | 2e791efa4f4266eb72d6b879d782d363042fc134 | [] | no_license | ICESAT-2HackWeek/Floes-are-Swell | e2911414b35f9dda8fe94ea9a3e5d26aee1fe039 | a43047de450912a2656bd05881726d83b1542cfc | refs/heads/master | 2020-06-06T00:00:24.386553 | 2020-05-30T20:29:31 | 2020-05-30T20:29:31 | 192,580,732 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 28,235 | py | #Import necesary modules
#Use shorter names (np, pd, plt) instead of full (numpy, pandas, matplotlib.pylot) for convenience
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import pandas as pd
import h5py
import xarray as xr
import numpy as np
import pdb
import numpy.ma ... | [
"ayumif@umich.edu"
] | ayumif@umich.edu |
3e034a11bde11aa6a40bca38c774c9dba4dc8ef4 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_chart_format07.py | 45e9369b2bac7462c137134173b1cda4559f1696 | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,582 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
bd0aee949be51e9122bd5c53c9a3f1bed2200067 | 1865a8508bed279961abaef324b434c0e3caa815 | /setup.py | 261fb583f89174f98ea47d3f5b9b3cadf5e81b6b | [
"MIT"
] | permissive | zidarsk8/simple_wbd | de68cbefe94fda52ed5330ff55b97b4a73aedfb4 | 6c2d1611ffd70d3bf4468862b0b569131ef12d94 | refs/heads/master | 2021-01-19T10:54:38.824763 | 2016-08-16T03:58:42 | 2016-08-16T03:58:42 | 59,942,658 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | #!/usr/bin/env python3
"""Simplo wbd setup file.
This is the main setup for simple wbd. To manually install this module run:
$ pip install .
For development to keep track of the changes in the module and to include
development and test dependecies run:
$ pip install --editable .[dev,test]
"""
from setupto... | [
"zidarsk8@gmail.com"
] | zidarsk8@gmail.com |
6408e85162d2fbe559aaf0b909b1f053f0c6e12d | e9355a2363a831ea9e06cd843b563ffbaf852b26 | /lists/models.py | c2973956da997cf57e7c62b16f4c8f8748b241c6 | [] | no_license | odisei369/superlists | 06abb6947b49becb1b2f674fbe2469ee40680322 | a1013bbf33cedf8016b214c615d326a93eba102a | refs/heads/master | 2021-08-14T12:11:22.704245 | 2017-11-12T11:34:33 | 2017-11-12T11:34:33 | 108,184,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.db import models
class List(models.Model):
pass
class Item(models.Model):
text = models.TextField(default='')
list = models.ForeignKey(List, default=None)
# Create your models here.
| [
"petrenko.ilia@gmail.com"
] | petrenko.ilia@gmail.com |
23a0169704ce8fb2f2e17a376be93d9ea3025544 | de0341aef4a487d1be271fc2bc3b3b60258ef6b0 | /programmers/Level 3/표 편집/solve.py | c993128c2119260cac35cc583c67f3b1dffbce15 | [] | no_license | aver1001/github-practice | 485d8695cd4b9aa374c6b069832b3c0999fc4b6c | 62ab6de80e8246b627b880a7aff5d668b0fea889 | refs/heads/main | 2023-08-24T09:49:35.498578 | 2021-10-13T23:57:18 | 2021-10-13T23:57:18 | 379,813,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | def solution(n, k, cmd):
## 행의 갯수 n
## 처음에 선택된 행의 위치 k
## 명령어들이 담긴 문자열 배열
## U X => X칸 위로
## D X => X칸 아래로
## C => 선택된 행을 삭제 후 바로 아래 행 선택 단 마지막 행일경우 삭제 후 자신의 위 인덱스를 선택
## Z => 최근에 삭제한 행을 복구, 단 선택된 행은 그대로
answer = ['O' for _ in range (n)]
pt = k-1
backup = []
for cmd... | [
"69618305+aver1001@users.noreply.github.com"
] | 69618305+aver1001@users.noreply.github.com |
e6595a2de890bde16ecaf021779fa9b65bd318be | 063bf24d3fc3f4a582ba31bb99a0b31eee336ad7 | /SphinxTrain/python/cmusphinx/s3model.py | 9bbc0b3c30456a49c2b127079c724336d8e70ac0 | [
"BSD-2-Clause"
] | permissive | khcqcn/cmusphinx | 6f2bd35593ff40208340543bb43f56e60bf0a71a | 45179a75546b396a218435a40eaf07be68707f59 | refs/heads/master | 2020-03-19T13:41:39.147382 | 2018-06-08T11:36:22 | 2018-06-08T11:36:22 | 136,590,836 | 0 | 0 | null | 2018-06-08T08:33:52 | 2018-06-08T08:33:51 | null | UTF-8 | Python | false | false | 3,737 | py | # Copyright (c) 2006 Carnegie Mellon University
#
# You may copy and modify this freely under the same terms as
# Sphinx-III
"""Sphinx-III acoustic models.
This module provides a class which wraps a set of acoustic models, as
used by SphinxTrain, Sphinx-III, and PocketSphinx. It provides
functions for computing Gaus... | [
"dhdfu@c60273ff-4a12-0410-8d58-82ceea6d4170"
] | dhdfu@c60273ff-4a12-0410-8d58-82ceea6d4170 |
caea01eb1c844499ed64d53c25b5a3fde5d6597b | 38368dfaef53c2e3213e2b6d2ea55ab38fbe3eab | /setup.py | 406e9fcbfe28fbf16b5bec6d2092ebb0ac7b42c5 | [
"MIT"
] | permissive | DonCharlesLambert/tkCharacter | 5ab9cd5d74123749bc61cbf0747d43ae855b4bcf | eb877e3e40a71f44321f09207a7c5bf955779799 | refs/heads/master | 2022-04-22T19:56:26.554151 | 2020-04-24T22:23:34 | 2020-04-24T22:23:34 | 257,748,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | from distutils.core import setup
setup(
name = 'tkCharacter',
packages = ['tkCharacter'],
version = '0.1',
license='MIT',
description = 'Allows for effortless creation of playable and AI 2d characters in python games',
long_description= "",
author = 'Don Charles - Lambert',
author_email = 'your.email@do... | [
"zcabdc0@ucl.ac.uk"
] | zcabdc0@ucl.ac.uk |
37eb3dcee7882c9b0d490c7ac8434257256685dd | d9ab421ab08c34179c9337400d34031af409c03e | /firstweek/ideabank.py | 83ec6c8e86f408386530a0bd611942a95950a29e | [] | no_license | grosuclaudia/dojos | b79caada2a89ab015d79deb21cda780ef892c55d | 27958e14fe0e67e90dc811441a36fa7f4425a6ae | refs/heads/master | 2020-08-31T16:20:24.737074 | 2019-10-31T09:53:20 | 2019-10-31T09:53:20 | 218,731,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #idea bank
idea = input("What is your new idea: ")
nr = 0
file=open("ideabank.txt","a")
file.write(idea + "\n")
file.close()
file=open("ideabank.txt","r")
print("Your ideabank:")
for line in file:
nr = nr + 1
print(str(nr) + ". " + line)
file.close() | [
"chvaly@gmail.com"
] | chvaly@gmail.com |
cd45e3c8488bd30b895a3c056efaec59d2095aca | 3d786ca81bae70c59c62572764b7c774e00160ca | /01. jump to python/chapter_03/122_4.py | 7b7c6810e008bbded43d4993c28bc44d3b4be4e8 | [] | no_license | youngholee0226/bigdata2019 | 7b504853a4a353d6a844155d438a72fef4f9d7f6 | cb17b6b67cdcc8b723ada62cc574f50d85368d62 | refs/heads/master | 2020-04-21T10:56:38.180438 | 2019-02-07T02:32:23 | 2019-02-07T02:32:23 | 169,503,627 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 443 | py | # coding: cp949
feel = "호감"
# feel = ""
hit_on_count = 0
while feel and hit_on_count <10 :
hit_on_count = hit_on_count + 1
print ("%d번 데이트 신청합니다, " %hit_on_count)
if(hit_on_count == 10):
print("고백할 때가 다가 왔네요, ")
continue
feel= input("현재 그녀에 대한 당신의 감정은 어떤가요?")
if(feel == "비호감"):
pri... | [
"01076777066@daum.net"
] | 01076777066@daum.net |
67112ebad7aac4774ca09bdc5da34187288d3838 | 38c0d8bce5aff8e2ee1911884d1f93b38a78635c | /backend/cryptbox/jwtutils/jwterrors.py | 75f2e1b679f2c27d97d1eca0ab42c2e53ad7948f | [] | no_license | Riolku/cryptbox | a1998932169d82efe7e48c726776b965efd0dc48 | ecd91a69082791cff8d935c271f6331250dd8421 | refs/heads/master | 2023-07-31T21:51:04.905500 | 2021-09-17T15:33:20 | 2021-09-17T15:33:20 | 330,080,827 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | class ExpiredJWT(RuntimeError):
pass
class InvalidJWT(RuntimeError):
pass | [
"alex.yj.liao@gmail.com"
] | alex.yj.liao@gmail.com |
a7a66869b09e6c69a5e03ada7e513a55feeb1d98 | 68d7cf6eb326d5e1f19d19033e9c852c9ebcfc5f | /filter.py | 14323e843e34d823e306fc738dfec0e9ad862ea4 | [] | no_license | Sergiogd112/internalphisycs | bdf484596dec73a28802bc36bcf1c77f41c0ee3b | a8ec188a10c51db33b41a471c6201af4188d7dee | refs/heads/master | 2020-08-13T01:30:10.417530 | 2019-10-18T14:24:36 | 2019-10-18T14:24:36 | 214,879,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import astropy
import astroplan
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
import os
import time
import pickle as pk
from time import gmtime
from astropy.coordinates import solar_system_ephemeris
from astropy.time import Time as tm
from astropy.coordinates import EarthLocation as eloc
f... | [
"sergio.gomezdamas@gmail.com"
] | sergio.gomezdamas@gmail.com |
d22df926e0e5abdc854f92d3d1f38844c15bf8eb | 26bd8294c64974d809198ce62238747340a775dc | /src/graffiau/overview.py | 9ad596805da800156e532db3fe8bddd13f0e8095 | [] | no_license | skuzzymiglet/ffair-gwyddoniaeth-2019 | af4a3024a01b76931f49f1dff8282b860fbd2228 | 31ef108de4aac978ce53cb8c823847f3730736d2 | refs/heads/master | 2021-08-19T13:08:00.063451 | 2020-01-31T14:18:02 | 2020-01-31T14:18:02 | 186,683,440 | 0 | 1 | null | 2020-05-25T12:30:13 | 2019-05-14T19:04:43 | Python | UTF-8 | Python | false | false | 880 | py | #! /usr/bin/env python3
# Ffair Gwyddoniaeth 2019
# Arbrawf Rafik Harrington
# Mesur CO2 mewn sgarff
# Mwy ar https://github.com/skuzzymiglet/ffair-gwyddoniaeth-2019
# Rhaglen fach i gael cipolwg ar eich data
from bokeh.plotting import figure, output_file, show
import csv
data = open("DATA.CSV", "r") # Da... | [
"noreply@github.com"
] | skuzzymiglet.noreply@github.com |
bc35e25ddcb973b77a29166ac83c929676dbc149 | c1be89ddd435016c4907be6d4238f49312bb22b4 | /use_python_do_something/crawler_ex1.py | ee453d7de36b129633e1e9690bfe97616e4095fd | [] | no_license | gdhe55555/learn_python | 1fb6b0f3b3fc62c94290a2803cd037ee0860dd86 | 3027c8bbbfbdd266dcdd02091376d375273790b7 | refs/heads/master | 2021-01-10T11:18:06.204381 | 2016-03-09T15:58:08 | 2016-03-09T15:58:08 | 53,510,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
import urllib
from bs4 import BeautifulSoup
import re
websit='http://www.heibanke.com/lesson/crawler_ex00/'
html = urllib.urlopen('http://www.heibanke.com/lesson/crawler_ex00/')
bs_obj = BeautifulSoup(html, "html.parser")
#a_list = bs_obj.findAll("a")
#a_list = bs_obj.findAll("a", href=re.compi... | [
"gdhe55555@qq.com"
] | gdhe55555@qq.com |
35eada1e6e31e47d1156a2dd8c85c2aada530ebe | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/pacific_atlantic_water_flow.py | 6a5e0384ee2afe8a2dd84a801719431deeaa3b09 | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top edges of the matrix and the "Atlantic ocean" touches the right and bottom edges.
Water can only flow in four directio... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
0d4686f787a951cd5fc7bc0bbdf519fe1c900f03 | 30ce589ccea8afec70ffc340834872316ef8ca5b | /Exercise folder/ex61.py | 7e04f511fa3135670cfea235de675180689ff676 | [] | no_license | gideonseedboy/Python-Programming-with-Data-Science-and-AI | 4c152f2cf14600320c6efe79368056e4205ed8a3 | 8563a20d66584413219ed7ae45d3cec5e9e017c0 | refs/heads/master | 2022-12-22T20:02:50.539504 | 2020-10-06T07:30:56 | 2020-10-06T07:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #Loops
members = ["Irene", "Emmanuel", "Abraham", "Micheal", "Abraham"]
counter = 0
for i in members:
if i=="Abraham":
counter = counter + 1
print(counter) | [
"gideonseedboy@gmail.com"
] | gideonseedboy@gmail.com |
a7f27f1b272c8edef7cc2f92a290977e2e30a352 | 64913d7f6803f2cdaa5fbd38ae75437e2e0d936a | /migrations/versions/fcd07d45ca01_.py | 06d5fc59e7cb0907f8856e7b002f61e75a5576d0 | [] | no_license | peekwez/trader_api | 251887c52462b66f28cd9035325619d2aeaa94fe | fda7357fb9b00f44314420ea960cb34479a8ec7e | refs/heads/master | 2023-05-26T04:20:40.994372 | 2019-02-25T10:18:12 | 2019-02-25T10:18:12 | 172,482,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | """empty message
Revision ID: fcd07d45ca01
Revises: 2fd5a06e09b0
Create Date: 2019-01-11 05:39:20.505585
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
# revision identifiers, used by Alembic.
revision = 'fcd07d45ca01'
down_revision = '2fd5a06e09b0'
branch_labels = None
depends_on = None... | [
"kwesi@oddjob.utias.utoronto.ca"
] | kwesi@oddjob.utias.utoronto.ca |
e84fa3eaad48b2bc87fd8ac42d0bc6aeb80ed0de | b4ec04d6a2a4ba57d11b577326086c14d9b9408b | /freshontheboat/resources/getForumProfileLikes.py | 49cf00e752c1e50d704424cdeb416f91d39d9988 | [] | no_license | petergzli/FreshOnTheBoat | 91268d43f91c85da0bacafa268b42e2f1e3dfe6c | 6320bcd798ad23d6ed936fddeb51a040a28853b2 | refs/heads/master | 2021-01-20T10:06:13.318571 | 2015-11-25T18:52:36 | 2015-11-25T18:52:36 | 41,778,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from flask_restful import Resource, reqparse
from freshontheboat.models.users import User
from freshontheboat.models.forumpostlikes import ForumPostLikes
class GetNewForumLikes(Resource):
def __init__(self):
self.reqparse = reqparse.RequestParser()
self.reqparse.add_argument('forum_profile_id', type = int, r... | [
"petergzli@gmail.com"
] | petergzli@gmail.com |
7b46b02f2a3f1012c5334e5b8ceecdffd9284e99 | 04bf59cfe698cc5fd9142ab0a503f1ce9cc24ead | /tensorflow-serving/docker/serving_client.py | 664e7477200244098e7e822827746e9f27b7adff | [
"MIT"
] | permissive | gingeleski/tensorflow-object-detection | 9a3e19a55deccb94f4cf42c11fa545d2f4fc191a | 03d1e418abf6a7bd09894169288b5ad1a4544c93 | refs/heads/master | 2020-03-18T00:53:00.448560 | 2018-06-03T00:50:13 | 2018-06-03T00:50:13 | 134,117,218 | 0 | 0 | null | 2018-05-20T03:39:48 | 2018-05-20T03:39:47 | null | UTF-8 | Python | false | false | 3,083 | py | #!/usr/bin/env python2.7
"""Send JPEG image to tensorflow_model_server
"""
from __future__ import print_function
from grpc.beta import implementations
import tensorflow as tf
import numpy as np
import os
from io import BytesIO
import requests
from PIL import Image
from tensorflow_serving.apis import predict_pb2
from ... | [
"sozercan@gmail.com"
] | sozercan@gmail.com |
0ad8ae2c0e8ce0b9a519c70b38fdc6cc8e3ca6c9 | 2b9fe2dbe8681224b1ca385e74ea58e0fb929ac7 | /blog/models.py | b957b7407f8a926dd3ba1497a65df7e4f0eb493f | [] | no_license | lpkyrius/py-blog-django | 1594c5bedeb7c788b9594aab08f5e312aaee5b3d | 41ca5f22bbc45cefe38f51b043ce071ea09ef88f | refs/heads/master | 2022-11-29T06:59:02.812659 | 2020-08-14T13:43:36 | 2020-08-14T13:43:36 | 287,529,955 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
'''
-------------------------------------------------------
O próprio Django faz as tratativas com o banco de dados
Assim posso mudar o banco sem precisar alterar o código
As tabel... | [
"lpkyrius@gmail.com"
] | lpkyrius@gmail.com |
88ae046695faa97023e4952c85ae2915a6475290 | b1480f77540258ec08c9c35866138bfec839d7d0 | /src/drostedraw/__init__.py | 926f411cf29c3ff970f86b4bedac15a10a608353 | [
"MIT"
] | permissive | asweigart/drostedraw | 1fd69cac3659eaeebf8179f8015989b5d572c55b | d2a3620a4d2bda6fb76321883a3c9587abf6cec4 | refs/heads/main | 2023-08-04T18:23:21.586862 | 2021-09-14T17:35:00 | 2021-09-14T17:35:00 | 397,367,988 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,584 | py | """Droste Draw
By Al Sweigart al@inventwithpython.com
A Python module for making recursive drawings (aka Droste effect) with the built-in turtle module."""
__version__ = '0.2.1'
import turtle, math
MAX_FUNCTION_CALLS = 10000 # Stop recursion after this many function calls.
MAX_ITERATION = 400 # Stop recursion af... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
3cae8ac244b500fe128a0b1630bc2a07a0b73780 | 781f4f6aff07d69751025f4cc7419c3571567618 | /seq2seq_htr.py | 99062755bcfbd35548933eaa534ff10e7205a057 | [] | no_license | hiqmatNisa/Sequence-to-Sequence-Model | 1837c598c9d476c10407908490968817093372ab | 28dc41fc38c28e9d8daaa6ba07d45df0e5354aa2 | refs/heads/main | 2023-04-30T07:48:24.571191 | 2021-05-23T14:24:09 | 2021-05-23T14:24:09 | 364,155,813 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | import torch
from torch import nn
from torch.autograd import Variable
import random
class Seq2Seq(nn.Module):
def __init__(self, encoder, decoder, output_max_len, vocab_size):
super().__init__()
self.encoder = encoder
self.decoder = decoder
self.vocab_size = vocab_... | [
"noreply@github.com"
] | hiqmatNisa.noreply@github.com |
1f03b32254f1d0ce03b2a51b6b6eb983daeac7b5 | 8fa8ab78770861fe2cee964b381d3b9af0e9d867 | /SlatechainCore/qa/rpc-tests/util.py | bcd2bc5115dbfadad1e8deed754c45b25fc1b50a | [
"MIT"
] | permissive | npq7721/coproject | 37eb2725d737b46ac2fea20363ee159a6e8b8550 | a8110e40bac798f25654e2492ef35ae92eae3bbf | refs/heads/master | 2020-03-22T16:31:30.101967 | 2018-07-12T06:08:26 | 2018-07-12T06:08:26 | 140,332,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,452 | py | # Copyright (c) 2014 The Bitcoin Core developers
# Copyright (c) 2014-2015 The Dash developers
# Copyright (c) 2015-2017 The Corallium developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regressi... | [
"tri282@gmail.com"
] | tri282@gmail.com |
c8e7deb719db05703d93fe764028941e8baac0db | 25768f25147068914d7a88db6765411e33a9f708 | /django_itchat-master/wechat/app/views_bak.py | 02461fd22dc2129827659afb23ab1ed59a21adf4 | [] | no_license | QzeroQ/python | d00739ca4630b2e84c65d726c9e0ad09a60f8a83 | 23e7fd4b3867bcced17febfadaf6094965707420 | refs/heads/master | 2022-04-15T11:15:53.468501 | 2020-03-26T16:24:21 | 2020-03-26T16:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,542 | py | from django.http import JsonResponse
from django.shortcuts import render, redirect
from django.urls import reverse
from wxpy import *
import uuid
from wechat.settings import BASE_DIR, MEDIA_ROOT
import os, time, base64, json, random
from .models import *
from django.contrib.auth.models import User as uuu
from django.co... | [
"1223609881@qq.com"
] | 1223609881@qq.com |
c376c39e37435a1e79e90afc296107078fdf4713 | 64f726483db2bae0c418026c47acc41501118e2f | /chat.py | 961687dd7fa0c748143eafc4a8fd42b070097222 | [] | no_license | aouataf-djillani/Simple-chatbot-with-python-and-flask- | ad91d6db25a657a243674d8874706f6738daab86 | 50d365e536c341a43d5bc9eca2dff1874955ff69 | refs/heads/master | 2023-09-03T00:46:55.234719 | 2021-11-22T07:52:24 | 2021-11-22T07:52:24 | 430,612,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
app = Flask(__name__)
myBot=ChatBot(name='Aouataf', storage_adapter="chatterbot.storage.SQLStorageAdapter")
""" greetings=["hi there!","hi","how are you doing?","fine","good", "great"... | [
"aouatefd@yahoo.com"
] | aouatefd@yahoo.com |
e0d852a289aa3a8e3aca62072d98ba4f2cf26939 | 33524b5c049f934ce27fbf046db95799ac003385 | /2018/Other/Urok_10_0_классы_объекты/teoriya_class_0.py | 68f7a2ba67558f66e7e39854b191bc7d8ef21224 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py |
from math import pi
class Circle:
def __init__(self, x=0, y=0, r=0):
self.x = x
self.y = y
self.r = r
def __str__(self):
return "({},{},{})".format(self.x,self.y,self.r)
def read(self):
self.x,self.y,self.r = map(int,input().split())
def area(self):
a = pi*self.r * self.r
return a
def perimetr(s... | [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
e6a1d15cf99580bb3bb6d61442e94f09c15cfdd4 | ef7c6a90ec6b09477d49a8719a12c45368d59619 | /venv/lib/python2.7/site-packages/faker/name.py | 089e225d7e62f6c5a3536f8c5a2f5b4ad70a3725 | [] | no_license | GavrilyukAG/TP_WEB | a2d612dcdfede55c8775f45373c66a9b730cda49 | 8c114153a004179ae6b944571d102f66a6c8a474 | refs/heads/master | 2020-03-27T08:27:55.646237 | 2018-08-27T06:46:28 | 2018-08-27T06:46:28 | 146,257,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from faker import frandom
from faker import helper
import random
def first_name():
""""""
return frandom.first_name()
def last_name():
""""""
return frandom.last_name()
def find_name():
""""""
r = random.randint(0,10)
if r==0:
return frandom.name_prefix() + " " + first_name() + " " + last_name()
elif r==1:... | [
"sashagavrilyuk97@gmail.com"
] | sashagavrilyuk97@gmail.com |
bbf5068fcd5c3270cf2448fddc69044e5fb04048 | ddac7346ca9f1c1d61dfd7b3c70dc6cd076a9b49 | /tests/test_calculators.py | ea4ae7c9ee767f607d8382ac221cc57272a8fee0 | [
"MIT"
] | permissive | gvenus/dftfit | f8cf5e9bef5a173ff0aa7202bacbfee0df61bd14 | a00354f8f0d611bf57c6925f920c749d8628cf98 | refs/heads/master | 2023-03-17T18:58:52.287217 | 2019-10-20T04:07:44 | 2019-10-20T04:07:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import asyncio
import shutil
import pymatgen as pmg
import numpy as np
import pytest
from dftfit.io.lammps import LammpsLocalDFTFITCalculator
from dftfit.io.lammps_cython import LammpsCythonDFTFITCalculator
from dftfit.cli.utils import load_filename
from dftfit.potential import Potential
@pytest.mark.pymatgen_lammp... | [
"chris.ostrouchov@gmail.com"
] | chris.ostrouchov@gmail.com |
58f10fc505bb8f71ebb268ab6cc5c8bb7932e7cb | f26f95837f579186a52eb7f4f385d938fb534333 | /api1.py | fcec904ab6ff0fd0c2d20410e426d638b9d608a1 | [] | no_license | aishuo07/Flask-Bearer-authentication | 70767f561f1bd39ef2669758d2edb630f4a4a53d | af7d29e957de5842c565c90b696fd3b2d3bb9c90 | refs/heads/master | 2022-11-28T16:40:51.257310 | 2020-08-07T14:02:50 | 2020-08-07T14:02:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py |
from flask import Flask,request,make_response,jsonify
from flask_sqlalchemy import SQLAlchemy
import uuid
from werkzeug.security import generate_password_hash,check_password_hash
import jwt
import datetime
from functools import wraps
from oauthlib.oauth2.rfc6749 import tokens
from oauthlib.oauth2 import Server
appli... | [
"noreply@github.com"
] | aishuo07.noreply@github.com |
fd532eee5e2c033e0a30bd156b541d4417da7fdb | 1bdcf47e4d690f232090f581518cab62d582dbc1 | /first_project/first_app/views.py | d77103e649ecbb675cf601f85c92e759e10dc884 | [] | no_license | sonerk46/proje2 | 0923ed77ecfcfcbbe34cad9116bb5b0f4148bd5b | 264ae22d1c8db4ff6d242528b54d324483a966ba | refs/heads/master | 2020-05-01T16:24:25.117448 | 2019-03-25T11:15:51 | 2019-03-25T11:15:51 | 177,571,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
my_dict={'insert_me':"Now I am coming from first_app/index.html ! "}
return render(request,'first_app/index.html',context=my_dict)
| [
"noreply@github.com"
] | sonerk46.noreply@github.com |
bde27465e5215f809b247a635fd24f3186193786 | 0698be34413debeb570e2560072c5696433acd81 | /ForkTube/celeryconfig.py | 1a437d56f6e0390a359e88338fe971e211e45e34 | [] | no_license | Miserlou/ForkTube | 90a057c459fda4b8d92d94f89c9d86bf786549ca | 848fdf4ff81c1d70b03c30a6382c8464dd4f25fe | refs/heads/master | 2020-05-19T07:47:44.130888 | 2012-04-09T19:53:24 | 2012-04-09T19:53:24 | 2,363,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "myuser"
BROKER_PASSWORD = "mypassword"
BROKER_VHOST = "myvhost"
CELERY_RESULT_BACKEND = "amqp"
CELERY_IMPORTS = ("tasks", )
| [
"rich@anomos.info"
] | rich@anomos.info |
ea5e949ab6808a8425c1446752be046ffa13c5e1 | 6f8d8cf37cc2a3749f3151b5bc5412f1ff60dc77 | /Final-Project_Proposal-Assignment/OpenSource/gera_geometria.py | 10b859d1364f52c8ad87648dc26ed11eec52e29c | [] | no_license | abraaonascimento/GIS-Programming_and_Automation | e57ec82632a001e30e2d8bf89f8771f0b0f53d32 | bc22978a32040d3eed7f8c98fd2c43864ffa9ce9 | refs/heads/master | 2020-04-06T07:12:46.679597 | 2018-08-15T19:42:57 | 2018-08-15T19:42:57 | 52,040,916 | 3 | 3 | null | 2020-06-04T17:05:01 | 2016-02-18T21:42:56 | Python | UTF-8 | Python | false | false | 2,280 | py | import random
from shapely.geometry import Polygon, Point
def ponto_unico(poligono):
"""
A função cria_ponto_aleatorio cria um unico ponto aleatorio dentro de um poligono
Dados de entrada: latitute e longitude de cada vertice que constroe o poligono
Dados de saida: um par de coordenadas (um ... | [
"noreply@github.com"
] | abraaonascimento.noreply@github.com |
8056525b17134e7712545ac1c5bfa311bfbb9524 | 299bbcec69ea2e046ecbcd4b625453e8f46d64ac | /Evaluation/python-evaluation-scripts/pdr_new-blueflood.py | fd895a31dc9399f36e2943f569bea8c7126200a0 | [] | no_license | Airelin/BlueFlood-v-2 | 44310e513ef5a9567421bfa47e6fef90ae46558d | 2dfd92a39b3399ff92e155dd157be8e4397500e2 | refs/heads/master | 2023-08-17T05:09:05.770047 | 2021-09-29T13:24:26 | 2021-09-29T13:24:26 | 411,314,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,088 | py | import os
import progressbar
import numpy as np
import matplotlib.pyplot as plt
from utility import slugify, cached, init_cache, load_env_config
METHOD_PREFIX = 'export_'
CONFIDENCE_FILL_COLOR = '0.8'
COLOR_MAP = 'tab10'
def load_plot_defaults():
# Configure as needed
plt.rc('lines', linewidth=2.0)
plt... | [
"stu214538@mail.uni-kiel.de"
] | stu214538@mail.uni-kiel.de |
9068d5fa8635986f907256b19f7cc5f4060948a9 | a90b0fe3875d615585234563d9e2f5a13b5e61e6 | /Streamlit/Examples/Stock-Price-Dashboard/app.py | 5ba426e3ee1d2bff282e924cba3fadc40a32e63d | [
"MIT"
] | permissive | Badranh/Tutorials | 424bfed02b2dc6addad6288856905e5cd66d2297 | 1e5127756ee6d962cab79738c157f1e31ea1438f | refs/heads/master | 2022-11-12T12:20:08.024770 | 2020-07-01T18:18:09 | 2020-07-01T18:18:09 | 277,617,438 | 0 | 1 | MIT | 2020-07-06T18:20:56 | 2020-07-06T18:20:55 | null | UTF-8 | Python | false | false | 1,453 | py | import streamlit as st
import numpy as np
import pandas as pd
import plotly.plotly as py
import plotly.graph_objs as go
st.title('Stock Price of Apple')
@st.cache
def load_data():
data = pd.read_csv('AAPL_data.csv', parse_dates=['date'])
return data
df = load_data()
columns = st.multiselect(
"Choose Col... | [
"gilberttanner.work@gmail.com"
] | gilberttanner.work@gmail.com |
39f51b8befba9f505afddabff3d6d21823fa7df5 | adb759899204e61042225fabb64f6c1a55dac8ce | /1900~1999/1904.py | 8a490e0cc71ac769e26193e2bc6f97c4d01e51cb | [] | no_license | geneeol/baekjoon-online-judge | 21cdffc7067481b29b18c09c9152135efc82c40d | 2b359aa3f1c90f178d0c86ce71a0580b18adad6f | refs/heads/master | 2023-03-28T23:25:12.219487 | 2021-04-01T09:19:06 | 2021-04-01T09:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # 문제
# 지원이에게 2진 수열을 가르쳐 주기 위해, 지원이 아버지는 그에게 타일들을 선물해주셨다.
# 그리고 이 각각의 타일들은 0 또는 1이 쓰여 있는 낱장의 타일들이다.
# 어느 날 짓궂은 동주가 지원이의 공부를 방해하기 위해 0이 쓰여진 낱장의 타일들을 붙여서 한 쌍으로 이루어진 00 타일들을 만들었다.
# 결국 현재 1 하나만으로 이루어진 타일 또는 0타일을 두 개 붙인 한 쌍의 00타일들만이 남게 되었다.
# 그러므로 지원이는 타일로 더 이상 크기가 N인 모든 2진 수열을 만들 수 없게 되었다.
# 예를 들어, N=1일 때 1만 만들 수 있고, N=2일 ... | [
"alstn2468_@naver.com"
] | alstn2468_@naver.com |
bf2dc3f9c8e764a9d8aef8bdecd21ae74fe802d2 | 0e33e481ce9122b0d43ec033dc1d0c162b67d4ee | /blog/urls.py | e33b9421ce2a1bfbe9f13c2f7815e5e8d21cc4a6 | [] | no_license | lunnbag/my-first-blog | 1f2a69f9c6407fc775b925c41a60da1dcfb40bb2 | f3af52fa53f18793546847074066e559158c89ec | refs/heads/master | 2020-03-20T18:18:33.571922 | 2018-06-16T15:41:50 | 2018-06-16T15:41:50 | 137,582,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.conf.urls import url
from .import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
]
| [
"lauralunn@hotmail.co.uk"
] | lauralunn@hotmail.co.uk |
572253b9a187470080137315d72e1e91c8ee594b | a30cb7c68459b10d21cb91d00745a3e05ebb6c41 | /pygame/08_sprites.py | 53d8da65846927cf1a84bf9898368071bd15e381 | [] | no_license | LyceeClosMaire/FormationBiblio | 2f5172214da2be3868003df8e197a02098d69317 | 8cd14f6add80f00bd34e3c1de934ef2400a9d152 | refs/heads/master | 2021-01-19T09:49:35.217001 | 2017-05-24T13:37:28 | 2017-05-24T13:37:28 | 87,790,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | import pygame
from pygame.locals import *
# les définitions de classes sont introduites par le mot clé class
# puis le nom de la classe, puis entre parenthèses la classe dont elle hérite
class Ball(pygame.sprite.Sprite):
# la méthode __init__ (avec des doubles tirets bas des deux côtés) est très
# im... | [
"chaddai.fouche@gmail.com"
] | chaddai.fouche@gmail.com |
710f90e901aebc0be4d31eed525c04c01665c3e0 | 3ad6d731c994813a10801829c45f56c58ff9021d | /src/teleop_bot/src/keys_to_twist_with_ramps.py | f8bf0f492753a4cd8e20f5fa2477366b8f82f090 | [] | no_license | bladesaber/ROS_tutorial | 9b4ae5a9a1bd773ae48d836a87d08bde8a757a5d | 63486048786ebc864bc731eb1b524a72e9267738 | refs/heads/master | 2022-11-16T07:36:15.938433 | 2020-07-07T02:47:50 | 2020-07-07T02:47:50 | 277,693,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/env python
import rospy
import math
from std_msgs.msg import String
from geometry_msgs.msg import Twist
key_mapping = { 'w': [ 0, 1], 'x': [ 0, -1],
'a': [ 1, 0], 'd': [-1, 0],
's': [ 0, 0] }
g_twist_pub = None
g_target_twist = None
g_last_twist = None
g_last_send_time = No... | [
"2510294705@qq.com"
] | 2510294705@qq.com |
d6ed4c471e16de0dbe3a1f1b89a719fd27fbf993 | f5b0d6cca8caadb34da340592514154fd711bca5 | /archive/Front-end/moments.py | fcaa4aec0fef16e6b3f1f36af92b05ec1bb49b31 | [] | no_license | DmitryBol/reel | 3e66eed5b18c3e26b147c0e8baa8e9043b3b26ea | e08de8ed4be222c2369d8b7579509fa5ccd3df07 | refs/heads/master | 2021-06-07T10:32:50.473918 | 2020-02-04T17:08:26 | 2020-02-04T17:08:26 | 130,555,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py |
# xi - random variable, equals payment for combination
# eta - random variable, equals the number of freespins given for combination
# zeta - random variable, equals payment for freespin
def Exi2(self, width, lines):
s = 0
for str_with_count in self.simple_num_comb:
string = str_with_count[0]
... | [
"sadontsfath@gmail.com"
] | sadontsfath@gmail.com |
f130de7bee24e00d0360f72e957813c45c2440e3 | 29e81d5aca62adf8a7c0f52025eb2904287caed4 | /P5/tree_perfect_matching/tree_perfect_matching.py | 8e1f0aa9e2dd71a43fe2020eb4ac41b8bc1e5d88 | [] | no_license | jasonluocesc/CS_E3190 | 759a5bfa7e51d1fd0458b9ceea28848c48ddc0ef | a962479e4ce4670705ddc24dd69ce30f9df218d3 | refs/heads/master | 2018-09-20T10:53:43.259416 | 2018-06-06T13:08:11 | 2018-06-06T13:08:11 | 109,515,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # coding: utf-8
from networkx import Graph
from solution import tree_perfect_matching
import sys
def read_graph_in_dimacs_format(filename):
with open(filename) as f:
line = f.readline()
while line.startswith('c '):
line = f.readline()
tokens = line.split()
num_nodes = i... | [
"luowenbinlove???"
] | luowenbinlove??? |
644e8b72aa37b4a680a2ddf1ca694dfd8cf0e58b | dd7ecc8ee4605f97947949cb486c8741c886f425 | /app/app/TextSender.py | d943389863cd9ca0b303fe363aab07d40d0fd940 | [] | no_license | rmartinsen/where_ru_rt | 5df7c0a08df0797f984594981d95fdf79a173172 | 3188a53737c4ae78579c16a820168fc2ad0b830f | refs/heads/master | 2021-01-19T00:57:24.920347 | 2017-02-18T18:37:22 | 2017-02-18T18:37:22 | 64,557,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from twilio.rest import TwilioRestClient
from twilio import TwilioRestException
import logging
from SETTINGS import settings
class Texter():
def send_text(self, phone_number, body):
self.ACCOUNT_SID = settings['ACCOUNT_SID']
self.AUTH_TOKEN = settings['AUTH_TOKEN']
self.client = TwilioRestClient(self.ACCOUN... | [
"rpmartinsen@ucdavis.edu"
] | rpmartinsen@ucdavis.edu |
ec83305e998ad683a062bfd80f473ac8191c45eb | 4c3803e4cad48db586dfdef2e26ffa2a3f2a06fd | /Chapter_1/Exercises/R-1.1.py | 244c70863278bd3cd7edc7c50d4cb938a3b0b347 | [] | no_license | dabiri1377/DS-AL_in_python3 | 07cee6569c39c79d56102b5b31f8e9329e58df4e | 3684a8f28df0c67bd504748fcdd4a12fc714bb92 | refs/heads/master | 2021-09-09T15:55:58.912069 | 2018-03-17T16:00:16 | 2018-03-17T16:00:16 | 115,943,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | def is_multiply(n, m):
n = int(n)
m = int(m)
if n // m == n / m:
return True
else:
return False
# __main__
a, b = input("enter n and m:").split()
print(is_multiply(a, b))
| [
"dabiri1377@gmail.com"
] | dabiri1377@gmail.com |
2affed72b0c39fbbb031f7f7b77cc32a1cb1b4f5 | 1a65481701a7ec2ba17e051cf50d131ded1516e1 | /unit 21~30/unit27/파이썬 객체 파일에 저장.py | e05c4f5de67abe6216e322f503f1a8f27d9cfd03 | [] | no_license | kimdohui/Python_Study | bec9b24bab79048d3b7169609898c213912f1d99 | 92dcec38cfa1043e004a72fdb2be2a3f56311444 | refs/heads/master | 2021-05-17T13:58:59.729705 | 2020-04-22T10:58:12 | 2020-04-22T10:58:12 | 250,809,291 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import pickle
name = 'hana'
age = 18
address = '서울시'
scores = {'korean': 90, 'english': 95}
with open('hanaInfo.p', 'wb') as file: # pickle.dump로 객체 저장 시 파일모드를 wb로 해야 함
pickle.dump(name,file)
pickle.dump(age,file)
pickle.dump(address,file)
pickle.dump(scores,file)
print('----------------\n')
wi... | [
"kdh24162416@gmail.com"
] | kdh24162416@gmail.com |
d2fad2f4d6e5d35ef96cca26932b4f326533d021 | 6769f4c0ac48e52b75a597ce5d9612a243558ef1 | /Controller/Click.py | 5d8d081d5efdd22cac5ffae58ff185dea843f58a | [] | no_license | sehwaa/Naver_Movie_Crawler | ecfe073c25c1f0dac6478af3bf07ad1f5520c137 | 4b92b27a0e6edafcd932316ddedbced19f8abd99 | refs/heads/master | 2020-03-15T01:52:20.650219 | 2018-05-17T07:44:15 | 2018-05-17T07:44:15 | 131,903,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | '''
Created on 2018. 5. 3.
@author: SEHWA
'''
#coding: utf-8
from Connection.Connection import driver
from selenium.common.exceptions import StaleElementReferenceException
from selenium.webdriver.support.wait import WebDriverWait
#검색 버튼 클릭
def submitBtn():
driver.find_element_by_class_name("btn_srch... | [
"nsh235482@gmail.com"
] | nsh235482@gmail.com |
38bae379c04d24789026484a687ef0293b07e1f4 | d346c1e694e376c303f1b55808d90429a1ad3c3a | /medium/61.rotate_list.py | 86f5af201842b8ba886e5132edcc3439263c61a5 | [] | no_license | littleliona/leetcode | 3d06bc27c0ef59b863a2119cd5222dc94ed57b56 | 789d8d5c9cfd90b872be4a4c35a34a766d95f282 | refs/heads/master | 2021-01-19T11:52:11.938391 | 2018-02-19T03:01:47 | 2018-02-19T03:01:47 | 88,000,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def rotateRight(self, head, k):
"""
:type head: ListNode
:type k: int
:rtype: ListNode
"""
#
current = head
... | [
"aria@Arias-MacBook-Pro.local"
] | aria@Arias-MacBook-Pro.local |
73fe66859a65e73496b91d800a11f82a54258308 | a85419f08198548eb6ba4d3df0d181769f810358 | /C_Carray/split_for_singlechannel_tests.py | 4887feeda442f244c49cc385774a1b017c5a6ddf | [] | no_license | keflavich/w51evlareductionscripts | cd0287d750d938bab96f1a7d335b3b84c27a987f | 00cb8085e8fe5c047f53852c8057a1f7457863f6 | refs/heads/master | 2021-01-17T07:26:01.574220 | 2016-07-07T09:02:26 | 2016-07-07T09:02:26 | 8,590,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # June 29, 2015
# Instead, use h2co_cvel_split in ../C_AC
# outputvis_A = 'h2co11_Cband_Aarray_nocal_20to100kms.ms'
# split(vis=outputvis_A, outputvis='h2co11_Cband_Aarray_nocal_20kms_onechan.ms',
# spw='0:0', width=1)
# split(vis=outputvis_A, outputvis='h2co11_Cband_Aarray_nocal_57kms_onechan.ms',
# spw='0... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
40f4ee37875a2c832d94dba99ab3b56ade7ccd8e | 03673029f34a235103f2fa428e15ce50cf677a15 | /python/752打开转盘锁.py | c83ee9d136a60c9299a16fafc011f75e53a7b585 | [] | no_license | sysuwsh/My-Leetcode-Solution | 6aa1d0c02c844c8fa50480b8ada206510668f4c4 | ad1efa0faa6c5bbde7e185759ad5446599dddf52 | refs/heads/master | 2022-12-08T02:09:06.125150 | 2020-08-17T17:16:47 | 2020-08-17T17:16:47 | 270,934,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | from typing import List
from collections import deque
# 采用双向BFS的方式,相对单向BFS来说要快很多
class Solution:
def openLock(self, deadends: List[str], target: str) -> int:
def neighbor(s: str) -> str:
for i in range(4):
for j in (-1, 1):
yield s[:i] + str((int(s[i]) + j) ... | [
"sysuwsh@gmail.com"
] | sysuwsh@gmail.com |
6950c60efeafde32b627e0da341719ed7b00ff6d | ee5882611747127cb8c2160d01cf9be88c1dcd3b | /send_text.py | b42d9ce1988418d941f86194c4ff01a777e21fc6 | [] | no_license | DespoinaSakoglou/Mini-Apps | e958ceb2a532161917b3b2019d655b6ec1251f81 | b50c243587fedaa83a210d0054f4bb0140bef6a1 | refs/heads/master | 2021-04-12T05:51:44.558031 | 2018-05-02T13:35:02 | 2018-05-02T13:35:02 | 125,926,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py |
"""
A program that sends a text message using twilio
Created on Mon Mar 19 16:38:13 2018
"""
from twilio.rest import Client
# Your Account SID from twilio.com/console
account_sid = "*********************************"
# Your Auth Token from twilio.com/console
auth_token = "****************************... | [
"noreply@github.com"
] | DespoinaSakoglou.noreply@github.com |
6bfd23840261bb11b4ad1cbe4485024aaf39ee33 | caa34a2291ecadb8daa5ff147565d284f41b26ca | /spring1718_assignment2_v2/learn_keras.py | 05d03821429cd8e8da1b9f85292bd464ab87476c | [] | no_license | shuyanzhu/leran_cs231n | c287446efa1e2c9724c3316d82ea03297dd26089 | 210c1f7ec9622d5bbcf9f12b5bab06fc8ffeea98 | refs/heads/master | 2020-04-16T18:26:24.052223 | 2019-02-26T06:16:12 | 2019-02-26T06:16:12 | 164,188,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | import numpy as np
import tensorflow as tf
# 加载数据
def load_cifar10():
cifar10 = tf.keras.datasets.cifar10.load_data()
(X_train, y_train), (X_test, y_test) = cifar10
X_train = X_train.astype(np.float32)
y_train = y_train.astype(np.int32).flatten()
X_test = X_test.astype(np.float32)
y_test = y_tes... | [
"1294206499@qq.com"
] | 1294206499@qq.com |
15701489ab41edd41261b2b31779b163a468529e | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/akVs3CaloJetSequence_pPb_mix_cff.py | 3d77c27baa5beb48450caf86750981f27c601170 | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akVs3Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("akVs3CaloJets"),
matched = cms.InputTag("ak3HiGenJetsCleaned")
)
akVs3C... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
3b7a3ca5057af51ac8447f4b0b547d67f142be7c | 305c4d943e1e8c6748ebcd965ec227aee0da751e | /examples/fastapi_e2e/tests/conftest.py | 1d23983d0ba7aeb609bf209f526e93da9adef1e6 | [
"MIT"
] | permissive | williaminfante/pact-python | 9f2acbed4967084e6959c107492331bd37c0e0e4 | d2dda3f6973ae2e099284a4894c8e2a225f9e05b | refs/heads/master | 2023-02-22T22:25:05.595040 | 2020-12-29T20:08:30 | 2020-12-29T20:08:30 | 328,525,719 | 0 | 1 | MIT | 2021-01-27T00:07:01 | 2021-01-11T02:18:33 | null | UTF-8 | Python | false | false | 302 | py |
def pytest_addoption(parser):
parser.addoption(
"--publish-pact", type=str, action="store",
help="Upload generated pact file to pact broker with version"
)
parser.addoption(
"--provider-url", type=str, action="store",
help="The url to our provider."
)
| [
"elliottmurray@gmail.com"
] | elliottmurray@gmail.com |
a69149ec8b9dd6535e90898b9807d97f229a412f | 3b46e9f7e2fef169589f336f09f00a9294cb3b04 | /test/core/test_drop.py | 72e7efc40fd48127ce67ee9e678a8d3cf8b19500 | [] | no_license | Vayana/sumpter | 79128ac2bcb4fe6cd05435e9e80e4ad6cb8ba28b | f18d7c5c3f8d32a2ae8abf58a70a31614bdc2e39 | refs/heads/master | 2020-12-25T18:16:33.833216 | 2016-09-15T10:44:18 | 2016-09-15T10:44:18 | 467,042 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,576 | py | #############################################################################
# Copyright 2010 Dhananjay Nene
#
# 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... | [
"nkhalasi@vayana.in"
] | nkhalasi@vayana.in |
2e5daa13e1b08a262d40a179079d7d11029e9af2 | 5a0d6fff86846117420a776e19ca79649d1748e1 | /rllib_exercises/serving/do_rollouts.py | d2dff98d01aa7e23c66a2e98eb958ee472389934 | [] | no_license | ray-project/tutorial | d823bafa579fca7eeb3050b0a13c01a542b6994e | 08f4f01fc3e918c997c971f7b2421551f054c851 | refs/heads/master | 2023-08-29T08:46:38.473513 | 2022-03-21T20:43:22 | 2022-03-21T20:43:22 | 89,322,668 | 838 | 247 | null | 2022-03-21T20:43:22 | 2017-04-25T05:55:26 | Jupyter Notebook | UTF-8 | Python | false | false | 1,596 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import argparse
import gym
from ray.rllib.utils.policy_client import PolicyClient
parser = argparse.ArgumentParser()
parser.add_argument(
"--no-train", action="store_true", help="Whether to di... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
7fff68255bdd4958ff339290d7b266500468f8b9 | 8b6b2eacbfeb97c5ea8b487ea784f296beae1b18 | /td-auth-master/tutordudes/payment/apps.py | a8db0e02d53a92e4ab6b078f7d3f1104a5047861 | [] | no_license | FaizanM2000/Project-Demo-1 | c1ff244d457a2d8243e607dafec74931da0702b7 | e4aa4a0beed58ea7e3bf802beafeae6f6f9e8a6f | refs/heads/main | 2023-08-05T07:12:14.477072 | 2021-09-18T08:06:43 | 2021-09-18T08:06:43 | 403,812,761 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.apps import AppConfig
class PaymentConfig(AppConfig):
name = 'tutordudes.payment'
def ready(self):
try:
import tutordudes.payment.signals # noqa F401
except ImportError:
pass
| [
"53056387+Sebastiangao0219@users.noreply.github.com"
] | 53056387+Sebastiangao0219@users.noreply.github.com |
ab4791fb3dadc7e1bed926e757b5eb84a780446e | 1ab01e3a556e4effd333e6bfb1970c8cd309da40 | /minirank/sofia_ml.py | 75e4e121b82750220ab6074c6d0bc696c52bb227 | [] | no_license | aurora1625/minirank | 19009cf8011091dfb58db0d8595035826f59f3e1 | c5b0ff33053867df7121dc94c2dc463100801421 | refs/heads/master | 2020-12-25T12:42:45.282193 | 2012-12-21T14:47:01 | 2012-12-21T14:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | import sys, tempfile
import numpy as np
from sklearn import datasets
import _sofia_ml
if sys.version_info[0] < 3:
bstring = basestring
else:
bstring = str
def sgd_train(X, y, b, alpha, n_features=None, model='rank', max_iter=100, step_probability=0.5):
"""
Minimizes an expression of the form
... | [
"fabian@fseoane.net"
] | fabian@fseoane.net |
3610918d2b73d9d7fb9529196d9121b89800d8c4 | 03901933adfaa9130979b36f1e42fb67b1e9f850 | /iotapy/storage/providers/rocksdb.py | a1b6d630c97ebda8f54229ab370820ab8f9b63f1 | [
"MIT"
] | permissive | aliciawyy/iota-python | 03418a451b0153a1c55b3951d18d4cb533c7ff28 | b8d421acf94ccd9e7374f799fbe496f6d23e3cf3 | refs/heads/master | 2020-03-19T04:15:54.594313 | 2018-06-04T18:26:52 | 2018-06-04T18:26:52 | 135,811,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | # -*- coding: utf-8 -*-
import struct
import iota
import rocksdb_iota
import iotapy.storage.providers.types
from rocksdb_iota.merge_operators import StringAppendOperator
from iotapy.storage import converter
KB = 1024
MB = KB * 1024
MERGED = ['tag', 'bundle', 'approvee', 'address', 'state_diff']
class RocksDBProvid... | [
"git@louie.lu"
] | git@louie.lu |
0d6eebcca8341a60b672a11fb77f631f6af68501 | b3203d01b01d8dbb3298fa25a2bc2da3e20b0019 | /enumnamecrawler/valueassigner/increment.py | 39877eb27b520b42aeb7b6f28aa1c7009b0353f9 | [
"MIT"
] | permissive | yinyin/enumnamecrawler | 17acfe45727b697249c8a004972a9076740f5152 | 48e98ff16db91e6e21cbf0641642672ca728f6d0 | refs/heads/master | 2021-03-30T20:23:12.774056 | 2018-03-21T17:04:47 | 2018-03-21T17:04:47 | 125,081,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*-
class Incrementer(object):
def __init__(self, base=-1, step=-1, *args, **kwds):
# type: (int, int) -> None
super(Incrementer, self).__init__(*args, **kwds)
if step == 0:
raise ValueError("step value must != 0: %r" % (step, ))
self.base = base
self.step = step
def _compute_base(... | [
"yinyinl@gmail.com"
] | yinyinl@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.