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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72ef04a7112fdfe6416035af77af107421f3f6c0 | 699a2d030163de1230a7b3d274e8913268526df9 | /practice/22.py | d9a48cf29f89cc0e475f7d8607059f4e1b93ddc9 | [] | no_license | chaoyifei/python | b04bde2fcb28fb60777da40313299a7598595d47 | 3679f442ee8ab1f8b18a2989382ea48ea910ec8f | refs/heads/master | 2020-06-25T04:21:53.218396 | 2018-06-11T16:15:50 | 2018-06-11T16:15:50 | 96,958,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | def fun(age,rank):
if rank==1:
return age
else:
return fun(age+2,rank-1)
print(fun(10,5))
| [
"451089603@qq.com"
] | 451089603@qq.com |
ecd1fe8a8b5678366ade3ae81684187a171f55f5 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /homeassistant/components/atag/__init__.py | 237a82f207a51306dfec01869827bd135973d15b | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 4,345 | py | """The ATAG Integration."""
from datetime import timedelta
import logging
import async_timeout
from pyatag import AtagException, AtagOne
from homeassistant.components.climate import DOMAIN as CLIMATE
from homeassistant.components.sensor import DOMAIN as SENSOR
from homeassistant.components.water_heater import DOMAIN ... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
ef4e45fe551d5134930a7c4748f00fe58bf60c90 | 23ec2d36bc6f3706483b4d3c863ffd11b8247839 | /fundclear/models.py | f62dc5d7515d8b25124e2059be0c2a4056f9e151 | [] | no_license | slee124565/philcop | 4d6f536d2d0536d2c9110f4ea2d5b88995322cba | 592ce889f7eb59f4cf3c02a8ffa85cb505ee7add | refs/heads/master | 2021-01-11T03:58:55.028400 | 2018-01-06T15:30:45 | 2018-01-06T15:30:45 | 71,266,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,265 | py | import calendar
import logging
from google.appengine.ext import db
from lxml.html import document_fromstring
from lxml import etree
from datetime import date
from dateutil import parser
from dateutil.relativedelta import relativedelta
from urlsrc.models import WebContentModel
import phicops.utils
... | [
"lee.shiueh@gmail.com"
] | lee.shiueh@gmail.com |
e050beb4b72499f095479534ef15503012f24674 | 8eb8f8d88994b22db7e661f0cdf6b0ed34a172bf | /sap/cli/object.py | 595a1294a6cb05cc0b517617033f29ad4a79cc2e | [
"Apache-2.0"
] | permissive | kksat/sapcli | f85d3376979157145436f5b87ee67ecf423b3ab4 | 8a21809d5a636f126a12d2da4af864b01867e490 | refs/heads/master | 2023-04-20T14:59:31.410367 | 2021-05-05T12:54:15 | 2021-05-05T12:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,255 | py | """ADT Object CLI templates"""
import sys
import os
import collections
import sap.cli.core
from sap.cli.core import InvalidCommandLineError, printout
import sap.errors
import sap.adt
import sap.adt.wb
import sap.cli.wb
_NAME_INDEX = 0
_SUFFIX_INDEX = 1
def object_name_from_source_file(filesystem_path):
"""Sp... | [
"jakub@thefilaks.net"
] | jakub@thefilaks.net |
21d409ea07621875c07d01754c51b28d26439459 | 545caa38cd01d618f4b27ea41928656a2a4071fe | /Linked list/Q2_7.py | aaeabc70548be4f6f1e1f5c891183e63714a4869 | [] | no_license | tusharkailash/CTCI | e4dcd6e7709a3dd3887c8efa7e52000688bd83d6 | ed71f602a32c7f11212617168c28d20c833940a5 | refs/heads/master | 2020-08-22T20:21:15.822941 | 2019-10-21T03:37:38 | 2019-10-21T03:37:38 | 216,471,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # Implement a function to check if a linked list is a palindrome.
class ListNode:
def __init__(self,x):
self.val = x
self.next = None
class Solution(object):
def palindrome(self,head):
slow = fast = head
while fast and fast.next:
fast = fast.next.next
sl... | [
"tusharkailash29@gmail.com"
] | tusharkailash29@gmail.com |
78f27398c8a4dfc39b5112cc8e8da601f5e3041d | ffcc2b42850fdf8780064d22e2fabf2df894f51d | /converter/gameconstants.py | 71f7c27a47e476df5079d2c00f0354e02590126b | [
"MIT"
] | permissive | NNTin/Reply-LoL-Reddit | 05a31a270136c2237798c46b9aca6e3e9c01a7b5 | f971a8dfaafcd13912097018fbfb40ab72f09b1e | refs/heads/master | 2020-04-12T05:37:24.746633 | 2017-04-02T12:47:29 | 2017-04-02T12:47:29 | 64,067,308 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,552 | py | matchMode = {"CLASSIC": "Classic","ODIN": "Dominion/Crystal","ARAM": "ARAM","TUTORIAL": "Tutorial","ONEFORALL": "One","ASCENSION": "Ascension","FIRSTBLOOD": "Snowdown","KINGPORO": "King","SIEGE": "Nexus"}
#queueType = {'CUSTOM': 'CUSTOM', 'NORMAL_5x5_BLIND': 'NORMAL_5x5_BLIND', 'RANKED_SOLO_5x5': 'RANKED_SOLO_5x5', 'R... | [
"ngoctinnguyen1993@gmail.com"
] | ngoctinnguyen1993@gmail.com |
0f4f37974c4711d3de9916cb7c8e4431e2521018 | 0034018a0fd230a16203509b89652fa570fba1a8 | /resources/thread.py | c936d114ba401ce43ee6886f16f257535e490a53 | [] | no_license | miguelreisa/engsoftwarebackend | 7f3a0898b676df2957f06e8d012746c8a50706ce | a913cedb236e8da9563e5bd483bbcee56a43ca02 | refs/heads/master | 2020-03-18T06:25:04.391236 | 2018-05-22T10:20:31 | 2018-05-22T10:20:31 | 134,394,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | import sqlite3
from flask_restful import Resource, reqparse
from models.conference import ConferenceModel
from models.paper import PaperModel
from models.user import UserModel
from models.token import TokenModel
from models.thread import ThreadModel
from models.threadresponse import ThreadResponseModel
class ThreadRes... | [
"migpe.reis@gmail.com"
] | migpe.reis@gmail.com |
519493ac81fc5d1155c473041a6e5c07b171f538 | a8ee0d102b54edb6316f50405353d53cc8a38553 | /app.py | 2625086947a20c7221b803db8673f8a12c29108e | [] | no_license | ved08/Github-API | f1e1a6606ddf3040e71a3f6d980d161622e2f44a | b06c4525c6df65f925be7bfc6bd6b68023902f0b | refs/heads/master | 2022-12-04T05:25:10.365899 | 2020-08-26T19:25:00 | 2020-08-26T19:25:00 | 290,744,160 | 1 | 0 | null | 2020-08-27T10:19:23 | 2020-08-27T10:19:22 | null | UTF-8 | Python | false | false | 1,887 | py | from flask import Flask
from flask import jsonify
from flask_cors import CORS
import requests
from bs4 import BeautifulSoup
import html5lib
app=Flask(__name__)
cors = CORS(app, resources={r"/*": {"origins": "*"}})
@app.route("/")
def hello():
return "hello world"
@app.route("/repo/<id>")
def hh(id):
urll="http... | [
"noreply@github.com"
] | ved08.noreply@github.com |
58b9e4472680e80a72d209324fc8d287a77f59e5 | 2c6f33443234c4b7732d7bf0aee51e5844021312 | /assignment.py | b6e8bc282fce2654d016e9d5ac0795b4d201f337 | [] | no_license | afzalIbnSH/eagle-owl-assignment | 5cd9a0dfa71cf973a13873c56e5b9c48e865e48c | 6900eebcc5edade25fe7680054769de239d26aba | refs/heads/master | 2022-12-05T06:02:50.489426 | 2020-08-21T11:16:24 | 2020-08-21T11:16:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | """
customerdata.txt contains transactional data from a fictitious website.
Parse it and generate a report with the following information
1. How many orders did the site receive?
2. What was the total amount of the orders?
3. List the names of the customers who ordered once and did not order again.
4. Get a distributi... | [
"aflibnush@gmail.com"
] | aflibnush@gmail.com |
277b12248e81a6e903b561cf68a167cc5ac531a0 | e0c2a8a544be42490ad86e232b26156317c9fb7f | /Encapsulation/Client.py | deb75779fb6c2ce70274ac2796081022f4fb4588 | [] | no_license | hhitman47/oop-python | 8133cebcdbac5b5f24756772ab20357c4a4aa8af | 0d44dbaf0213b314a1b55a24b3524ea89554bc56 | refs/heads/master | 2022-04-20T22:59:38.345445 | 2020-04-22T17:28:37 | 2020-04-22T17:28:37 | 257,969,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from Encapsulation.Bank import Bank
class Clinet(Bank):
pass
client_1 = Bank()
#print(client_1.Bank__Client_info())
print(client_1._Bank__bank_name)
while True:
print("1. Check Account Balance ")
print("2. Withdraw Funds ")
menu_option = int(input())
if menu_option == 1:
#client_1._B... | [
"h.hitman47@gmail.com"
] | h.hitman47@gmail.com |
9902776c082c92c16c89cd39d922e4b461482b88 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_05_01_preview/models/__init__.py | b555500e3ca24979e6c5c02f7be553bf65fd61c7 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 3,815 | 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"
] | test-repo-billy.noreply@github.com |
06fdcad4c808d645f460770dc5cda45ab67815ba | a4b83f339b9e0bab850e9e2dbd2640c7a032b1ff | /dependencies_analysis/src/main.py | 405318cd5ff8ea64af598d5cc2413eec808b65d2 | [
"BSD-3-Clause"
] | permissive | afdaniele/director | 75e9a34393b3dcb6c50de32b6c5739b04f64f23a | 845ba027f9009803fcf77f44874f2ab9d7ab72e3 | refs/heads/master | 2020-04-18T21:31:49.734108 | 2019-05-01T04:42:02 | 2019-05-01T04:42:02 | 167,767,383 | 0 | 0 | BSD-3-Clause | 2019-01-27T03:59:31 | 2019-01-27T03:59:31 | null | UTF-8 | Python | false | false | 4,374 | py | from os.path import join
import networkx as nx
from utils import ProgressBar, FileReader
ENVIRONMENT = "director"
DATA_DIR = "/code/dependencies_analysis/data"
ALLOWED_SOURCE_PKG = None
ALLOWED_TARGET_PKG = [
"/code/director/src/python",
"/usr/lib/python2.7",
"/usr/lib/python2.7/dist-packages",
"/usr/local/lib/p... | [
"cha@drive.ai"
] | cha@drive.ai |
971927d242b085015088addb9a51eb5f257f38f0 | 0fb0ed44dded93eab10b7ed4dfc916c3875eb3e3 | /Musicapp/migrations/0023_alter_post_options.py | 57df348fb12b375b8ca1e91d3a494f5d90a38c5a | [] | no_license | Darkbeast-glitch/Realmusic | ceb87ed88eb70ab47979e1657d389e7dfbce988c | 23a6b956e322f8557210a90d55171e72aa8734e4 | refs/heads/main | 2023-08-27T19:30:18.643534 | 2021-10-21T03:21:31 | 2021-10-21T03:21:31 | 417,349,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # Generated by Django 3.2.8 on 2021-10-21 02:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Musicapp', '0022_auto_20211021_0226'),
]
operations = [
migrations.AlterModelOptions(
name='post',
options={},
),
... | [
"bbjulius900@gmail.com"
] | bbjulius900@gmail.com |
67beea05ca779525eb2784422ef64d3f81fc9c53 | 23fbb376cbe173d0dd2cdf28b478abce7c9a42e3 | /Maturka/trojkat.py | aeba49521908c67d3bc5445e3e8047eb7f67c257 | [] | no_license | PanOscar/MaturaInf | cfe025b97565f07938b808727616bb52f7cef1d2 | f2c98a4dc336e72556b95c70f0af7faf6eb7873f | refs/heads/master | 2023-08-13T15:56:51.057069 | 2021-10-05T20:28:21 | 2021-10-05T20:28:21 | 234,733,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from turtle import *
color("blue","white")
lt(180)
for n in range(3):
for i in range(5):
begin_fill()
for j in range(3):
fd(50*(i+1))
rt(120)
fd(250)
rt(120)
end_fill()
done() | [
"osi23.78@gmail.com"
] | osi23.78@gmail.com |
6edfde8225367d10e96adf64cbd1036b97fdc7b0 | df3217c8747d36f4beb3e7543228967fb078cd8b | /data_analysis/create_sample.py | 96d5cb81a805586a29655147f9f11d9b22fd7658 | [] | no_license | Timthony/dogs_vs_cats | acaad004f443d3b338abf74812bf5fef077bfa66 | 25e7e4b530c823a4c8428651c084ba9be3a833e4 | refs/heads/master | 2020-03-19T07:40:41.339341 | 2018-05-08T20:14:53 | 2018-05-08T20:14:53 | 136,138,485 | 1 | 1 | null | 2018-06-05T07:35:48 | 2018-06-05T07:35:47 | null | UTF-8 | Python | false | false | 1,522 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 12 05:11:38 2018
@author: liguo
从训练集和测试集中选取部分样本,以进行特征观察
"""
import os
import shutil
import random
TRAIN_PATH = "../train/"
TEST_PATH = "../test/"
SAMPLE_PATH = "sample/"
TRAIN_SAMPLE_PATH = SAMPLE_PATH + "train/"
TRAIN_CAT_SAMPLE_PATH = TRAIN_SAMPLE_PATH + "cat/"
TRA... | [
"liguo@fenbi.com"
] | liguo@fenbi.com |
155abd7d13912aa0987c80a0c964ad7d4fc7990e | 09b22d1bd1263e4082e6bba7afa2f2b7a66afd4a | /FaceDetection/Smile Detector.py | 5dfcb45bf4e354761a24d3842578b36decee18d7 | [] | no_license | yogeshkushwahait/Machine-Learning-Using-Python | b70bc5334c4178fecc175451b8b7e04e50a60917 | 8102ce7b0cba5d48e923f979ae0a8e71c25857b1 | refs/heads/master | 2022-03-28T05:21:24.332537 | 2019-11-05T06:34:00 | 2020-01-09T16:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py |
# coding: utf-8
# In[2]:
import cv2
# In[3]:
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml');
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml');
smile_cascade = cv2.CascadeClassifier('haarcascade_smile.xml');
# In[4]:
def detect(gray,frame):
faces = face_cascade.detec... | [
"rishav.jnit@gmail.com"
] | rishav.jnit@gmail.com |
ae037578c4aae2b761816ff3ddd5b625e2564255 | 9375d105fd18d5d7af31b7350b56d82894fabb17 | /03_Lists_Tuples/01_lists.py | 4cb9046835ab6fcf2957d5cc75b3124818aa2459 | [] | no_license | shas-hank7/python | 597ebcd31e8855b88e7c8cfb1f15b709dbb73b4f | 9ef2a80f087936eccb36ec51a3758be981dc80f4 | refs/heads/master | 2023-08-02T11:29:16.172087 | 2021-09-14T19:54:08 | 2021-09-14T19:54:08 | 406,503,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | a=[1,2,3,4, 'Hello']
print(a)
#List Slicing
""" friends=["Shashank", "Binod", "Parmod", "Vinod", 45, "Raje"]
print(friends[-5:-1])
print(friends[-5:])
print(friends[-5::2]) """
a=[3,4,2,1]
#a.sort()
print(a.sort()) | [
"shashank770@gmail.com"
] | shashank770@gmail.com |
dfa25b44c043edce1aa14686208aa2b37f404f0e | 5a2579dfae9ccd1b9c8c0471f07a6de5eb4eac15 | /_Turtle2/11.py | d5032d7e319ff7deaa1201a416094bf7c9e59d36 | [] | no_license | finchnest/Python-prac-files | 0983d4645992f4ad26603a4f259cc563604c52e2 | 61da3c9240b3022d59ef2ed7cc90fb598045e470 | refs/heads/master | 2022-02-28T19:32:44.515138 | 2019-10-08T18:07:37 | 2019-10-08T18:07:37 | 203,052,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from turtle import *
def rec():
pendown()
forward(200)
right(90)
forward(200)
right(90)
forward(200)
right(90)
forward(200)
right(90)
forward(100)
right(90)
forward(200)
right(90)
forward(100)
right(90)
forward(100)
right(90)
for... | [
"noreply@github.com"
] | finchnest.noreply@github.com |
69053ce7572bab092815a048e7c63b0f8cd43adf | b52e5ed4c912e9d68ad033812a88158ec1c30ca7 | /charts/samples/updating_chart_properties.py | cf4d5f32986114c4c57e87387512251949cd059f | [] | no_license | catocodex/charts | edb4a0ab2edd0be81c33fa683820e310575ee3cc | b8c47c56c5715dbe4bf95de075065ce605f7a009 | refs/heads/master | 2022-12-15T11:20:37.133725 | 2020-09-15T04:40:38 | 2020-09-15T04:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | from django.shortcuts import render
# Include the `fusioncharts.py` file which has required functions to embed the charts in html page
from charts.fusioncharts import FusionCharts
from django.views.decorators.clickjacking import xframe_options_exempt
@xframe_options_exempt
# Loading Data from a Static JSON String
# ... | [
"carlos.tovar@ariwonto.com"
] | carlos.tovar@ariwonto.com |
cc08681f4493d7f771380a720f36835b308b17ae | a48fbf8dd09b6f5f3c879495905a04187758ac19 | /TrafficSignDetection/PreprocessCode/mser_red.py | 51767f9a65789a939e6fb71e8cc184e585adcf58 | [] | no_license | davidwang318/ComputerVision-Classical | b2c751678cc472677384af0d0ba4cc44bef31ef8 | 6763dc02ee872d44c99e5273b6cc64c90dfa7824 | refs/heads/master | 2021-07-07T19:17:22.376654 | 2021-04-21T02:23:04 | 2021-04-21T02:23:04 | 238,592,340 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import cv2
import numpy as np
import os
index = 2600
while True:
# Input image
#img_b = cv2.imread("frame_normalize_blue_0/frame%d.jpg" %index, -1)
img_r = cv2.imread("frame_normalize_red_0/frame%d.jpg" %index, -1)
img_rgb = cv2.imread("Loose_Red_result/%d.jpg" %index)
img_tem = cv2.imread("frame_d... | [
"davidwang106@gmail.com"
] | davidwang106@gmail.com |
90a3e8ebed6129293171a632099674f3a120fbc8 | 33f0e02c56f2d49b629557e4d5bad5df848974d1 | /agri/dynamic.sh | fe8778fe5aeca6ed3563349ba635367903eec17d | [] | no_license | wuyohee2004/learn | b7126e1471d8dcea3f60d9af17a199d62f4c4aec | b6c0302c541a26f296693438841869f1b366e355 | refs/heads/master | 2016-09-05T17:13:50.940534 | 2014-06-22T11:08:49 | 2014-06-22T11:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | sh | #!/usr/bin/python
def dynamic(arr):
max = arr[0]
sum = arr[0]
for i in range(1,len(arr)):
print ("the %d st loop" %i)
if sum >= 0:
sum += arr[i]
else:
sum = arr[i]
if sum > max:
max = sum
return max
a=[1,-9,12,-33,1,5,6,-99,10,20,12]
print dynamic(a)
| [
"wuyohee2004@hotmail.com"
] | wuyohee2004@hotmail.com |
ff20d14ea17953aab8f491c608bffae140cdf61b | 2b5d21e22604aaefe2d03efc79d55983800416a7 | /Programming/Practice/03/Python/arithmetic_for_different_types.py | e57cb25dccdfd9fe1af481a966df7facce0920a0 | [] | no_license | VladSmiyan/prt | bdc6fa03b60c540f60b6f3f6d9eb08ec00020fb5 | d7403bcaea6236f7e67ef3deb8d1da21ed2b0222 | refs/heads/main | 2023-01-02T12:27:49.413441 | 2020-10-30T19:11:54 | 2020-10-30T19:11:54 | 308,720,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/python3
# Задание 3 - Арифметика для разных типов
# Оператор (//) Python соответствует оператору (/) C++
# (в C++ мы используем int'ы)
print('3. Арифметика для разных типов: ')
a, b = map(int, input('Введите a и b: ').split(' '))
print((a + b), (a - b), (a * b), (a / b))
| [
"noreply@github.com"
] | VladSmiyan.noreply@github.com |
aad1a694a84413a0ae76f87d45095993d9197327 | e28ea03cf2a1082c57d49cc0da97b2115a8af823 | /cmsplugin_wordpress_api/cms_plugins.py | 0e912853fa81407ad0aa06004385fa0789768d19 | [
"MIT"
] | permissive | ImaginaryLandscape/django-wordpress-api | a5c0ecfacef2ea999b439012d7b9f84192038d11 | 1dd205d095b6f637779cc437ffa8b6004e40075a | refs/heads/master | 2023-04-24T14:43:03.089617 | 2021-02-02T19:27:52 | 2021-02-02T19:27:52 | 269,103,150 | 1 | 0 | MIT | 2020-06-03T14:00:15 | 2020-06-03T14:00:14 | null | UTF-8 | Python | false | false | 1,716 | py | from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django import forms
from .models import LatestBlogs, BlogsByAuthor, BlogsByCategory, BlogsByTag
from .utils import get_authors, get_categories, get_tags
class AuthorForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
... | [
"dbertrand@imagescape.com"
] | dbertrand@imagescape.com |
ab7b1c1bf14852dceacb9b0d162e57497089bcec | d828cbdacfce323f7014e232cff8961ae4219918 | /apps/api/migrations/0031_auto_20210811_1621.py | c061d671a2054a0c6c00818ba8fd002cd74b2a0a | [] | no_license | MK-Achmerouanine/ML_Perception | a4e1347970f0c2d920cf96c80aa252d415d3e16d | c6b08e6f7a939b3a80913a033bbc007809ffacfc | refs/heads/main | 2023-07-15T02:28:26.520143 | 2021-08-29T00:09:34 | 2021-08-29T00:09:34 | 394,370,442 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # Generated by Django 3.2.6 on 2021-08-11 16:21
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('api', '0030_auto_20210811_1614'),
]
operations = [
migrations.AlterField(
model_name='endpoint',
name='s... | [
"baouhamismail98@gmail.com"
] | baouhamismail98@gmail.com |
7242a46a79f26f1224fb7ddb1288eee1b2dcbd7a | 7f24ccbb1f054f9caa5c5ddb7ff486622030df3e | /configs/iou-aware_rcnn_final/iou_aware_rcnn_r50_baseline2_2.py | 9628e160b4739e9c28d0ab06dc624ff173dc176f | [
"Apache-2.0"
] | permissive | shouwangzhe134/IoU-Aware-R-CNN | 674808e158ae85bf2b621002cfea7827104e94ce | 262f038ff401da53511f60c29bd4c2957befbb0c | refs/heads/main | 2023-07-31T07:10:53.510129 | 2021-09-20T03:00:40 | 2021-09-20T03:00:40 | 408,291,765 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,065 | py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
work_dir='./work_dirs/iou-aware_rcnn_final/'
# model settings
model = dict(
type='FasterRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
... | [
"2014210059@tju.edu.cn"
] | 2014210059@tju.edu.cn |
40aab536212b385feeecf7caa7c71a167555dbc5 | 4e3da889cc9ebf460db841665e3559efbc96b5fb | /regions_extractor.py | b0500b570b209b637388af4cca3dc48acb2a8732 | [] | no_license | Jellycious/morph-detection | 5fdd02de355a8beb407264e4d32b9b9388a35b59 | 9230c1f674ee9028d134b35cc3e15d0fdcd77206 | refs/heads/main | 2023-01-30T18:39:47.074924 | 2020-12-08T15:19:02 | 2020-12-08T15:19:02 | 319,674,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,597 | py | #!/home/jelle/.virtualenvs/face-morphing/bin/python
# This makes sure that it runs the virtual env
# third party libraries
import dlib
import cv2
import numpy as np
from sklearn.model_selection import train_test_split
# standard libraries
import os
import sys
import pickle
# our libraries
import utils
detector = dl... | [
"jellejanwil@gmail.com"
] | jellejanwil@gmail.com |
7db428084f3310782f3c761b98d335ad28b9dfd0 | bd2622778606ba60d863ad9695724dcbf52eb247 | /Generator/MethodGenerator/__init__.py | 7fce20c4976e2a5f0445612790a503aa47abd4cd | [] | no_license | Danielhhs/UITestingCommandGenerator | 7bebbbbdafe7578586df5c30cd2db03bb4bf415e | a106f47fdf89f9a00a6765237906349db11a65c7 | refs/heads/master | 2021-01-16T21:41:06.489612 | 2016-05-30T08:11:30 | 2016-05-30T08:11:30 | 59,992,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | __author__ = 'huanghongsen'
| [
"hhuang@microstrategy.com"
] | hhuang@microstrategy.com |
6ab209a70725243dab54bf6c366a0983bfb3f00d | 826ea45107bde5d09b4d4e53b5de5d499990c5a2 | /myproject/venv/bin/wheel | 67a2bbb1d1c12be05a98613692de3809f7dc9b97 | [] | no_license | xiaoqian123/wechat_lawinfo_back | 26010aa781c043cb87f1ffc5503a8769e7c07bba | f15ceab89e28a0b3b7a933ebcec62a31801da2a8 | refs/heads/master | 2020-03-24T20:58:07.215532 | 2018-07-31T11:52:28 | 2018-07-31T11:52:28 | 143,006,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | #!/tmp/myproject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"luhongxin@weinventing.com"
] | luhongxin@weinventing.com | |
dc008fa679bb4de8e9a90b20ea024a0de74ae5bb | 9b5fe9ec46b6715e118a003da92989688e0429f3 | /Udacity/Tournament Results and Catalog/Restaurant Menu and Catalog/Oauth/project.py | e834ca5214b59cbc939fa0c47c8f3ae1b03222f0 | [] | no_license | dreedgibson/Projects | a8057828594b93e8ff8ad39d5363bf331096ae07 | 07b932b8b5ca4d5b3f3fbfddb63bedb523ce59f8 | refs/heads/master | 2021-01-11T22:00:33.854325 | 2017-03-27T22:24:51 | 2017-03-27T22:24:51 | 78,891,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,190 | py | from flask import Flask, render_template, request, redirect,jsonify, url_for, flash
app = Flask(__name__)
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem, User
from flask import session as login_session
import random, string
from... | [
"dennis.reed.gibson@gmail.com"
] | dennis.reed.gibson@gmail.com |
4402400f9646593187e43c7982a4e61d0d01b033 | 786de89be635eb21295070a6a3452f3a7fe6712c | /pandas/tags/V00-00-02/SConscript | b42efd570012fd5fb90cb1ffb13d916266eb5ce8 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | #------------------------------------------------------------------------
# File and Version Information:
# $Id: SConscript 4651 2012-10-26 16:55:30Z salnikov@SLAC.STANFORD.EDU $
#
# Description:
# SConscript file for package pandas
#------------------------------------------------------------------------
# Do not d... | [
"gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
8eafbee307efaea9b8d218e26c0dfc888e0b2028 | 418c3f3ca224cad9f7c538ab6f01c7675d8885bf | /our_normals/source/points_to_surf_model.py | cd4ac12aff7da4b83ee72401eaf6cb4e6baeff1e | [
"MIT"
] | permissive | joycewangsy/pcpnet_normal | 9df0d1aa4f6911d8c006afd4c5cc3efcc54d4a78 | b4c8b5b5bf52481b49cf1c3cf14f7c84eb04d0fa | refs/heads/main | 2023-01-29T06:26:46.510436 | 2020-12-02T05:46:24 | 2020-12-02T05:46:24 | 317,741,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,527 | py | import torch
import torch.nn as nn
import torch.nn.parallel
import torch.utils.data
import torch.nn.functional as F
import source.network as sn
from source.base import utils
input_dims_per_point = 3
class STN(nn.Module):
def __init__(self, net_size_max=1024, num_scales=1, num_points=500, dim=3, sym_op='max'):
... | [
"923751881@qq.com"
] | 923751881@qq.com |
d6daf791ae48ee6f94e3de12b0ee88e5643381eb | 4c8eb3d5a63ac2a8ddbb7f997b27f08b8019d5f7 | /models/polyencoder/config_polyencoder.py | 3feea746ce3222911402f234fed24a7eb875a35c | [] | no_license | RaphaelOlivier/collision-bert | 94974ed8c94295b9d7ed760cb0ad79f2856d34aa | 43eda087bf6d632bdb150d98e934206327f8d082 | refs/heads/master | 2023-01-20T08:09:47.449597 | 2020-11-21T20:01:43 | 2020-11-21T20:01:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | from parlai.core.opt import load_opt_file
from constant import PARLAI_DIR
PARLAI_MODEL_DIR = PARLAI_DIR + '/models/'
POLYENC_MODEL_DIR = PARLAI_MODEL_DIR + 'model_poly/'
POLYENC_OPT_FILE = POLYENC_MODEL_DIR + 'model.opt'
BI_MODEL_DIR = PARLAI_MODEL_DIR + 'model_bi/'
BIENC_OPT_FILE = BI_MODEL_DIR + 'model.opt'
PRETRAIN... | [
"csong27@outlook.com"
] | csong27@outlook.com |
9fda23a05e1bd04a774047aebab26396f716dc34 | f3333e23a0f86d917a15271c0c7a458d50b55779 | /flask/app.py | b447205ef9736c026201b9ec8d7ee62dfe9f2b8e | [] | no_license | johnwashburne/hackSC | e7c7fd26658875f3f14851a28db779016b3386a8 | ba684ff292a89380446abc31141d1f2c5b976180 | refs/heads/master | 2020-12-26T16:36:50.992505 | 2020-02-04T01:53:30 | 2020-02-04T01:53:30 | 237,566,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,138 | py | from flask import Flask, render_template, make_response, jsonify, request, session, send_from_directory, flash, redirect, url_for
from translator import translate_data, translate_questions, translate_phrase, translate_dict
import html
from PIL import Image, ImageDraw, ImageFont
from classifier import Classifier
import ... | [
"johnwashburne@outlook.com"
] | johnwashburne@outlook.com |
007f483db4f55e9196bfd7c756d6ec6a1d47b18a | 977a0fe8964570de1f89671bbc7021b5b89c4a79 | /ml_models/outlier_detect/__init__.py | 768ea86efa3a4a5a13992e7a8f7e0517304e5c39 | [] | no_license | SatanAngelos/ML | d46ed6a7b191ea091da29b035e81434affbb379c | 61be5dc5e4214a6ecebed0b814832885a1f26697 | refs/heads/main | 2023-08-28T19:32:13.956085 | 2021-10-22T01:22:07 | 2021-10-22T01:22:07 | 419,658,400 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from .hbos import *
from .iforest import *
from .knn import *
from .phbos import *
from .lof import *
| [
"xuxl@t.edu.vn"
] | xuxl@t.edu.vn |
d66a5b4ced8bf2e594226a025143dab3d66cedfd | 712dad88ba912bcb10ca491e4d8abe1c40e24581 | /part_3/part3.2.py | 66b3bcf6df05dc068f333ae42ffb5b0409222c30 | [] | no_license | kartikeya-badola/Visual-Sudoku-Solver | e3d4fe7cbb849f46b7a78e52488fd58435412110 | 19885388edca46d254883f2f25c03a3b0628fb2b | refs/heads/master | 2023-07-05T23:49:09.785432 | 2021-08-17T06:17:41 | 2021-08-17T06:17:41 | 397,127,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,350 | py | import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
import numpy as np
import torchvision
from torchvision import datasets, models, transforms
import matplotlib.pyplot as plt
import time
import os
import torch.nn.functional as F
import copy
from sklearn.utils ... | [
"kartikeya.badola@gmail.com"
] | kartikeya.badola@gmail.com |
92237f74bc30ca5a47e2331be90e813865a10295 | ce0e38abc34bfda2ad29f66fdb1cde80393a3c68 | /panorama.py | 9cc654f8ccd74b5fe5382ec64e9132d5e25e0f8d | [] | no_license | tshr-d-dragon/Panorama_Stitching | 28d1b2c70de9eeb01f8a698e468fcc80fb1bdecc | 8c48b719ecbe6c37414371e6290457a78292bedd | refs/heads/main | 2023-05-07T05:48:35.624435 | 2021-05-18T16:01:49 | 2021-05-18T16:01:49 | 368,261,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py |
import cv2
import os
stitcher = cv2.Stitcher_create()
path = 'cv2/panorama'
images = []
for i in os.listdir(path):
a = cv2.imread(f'{path}/{i}')
images.append(a)
_, Panorama = stitcher.stitch(images)
if _ == 0:
print('Panorama Operation Successful')
cv2.imwrite(f'{path}/Panorama... | [
"noreply@github.com"
] | tshr-d-dragon.noreply@github.com |
cd6ca5bdf2986ee0c718790d29620cf74d6edd35 | 2e0f9c2c31fb2d4a9b56ab841a3bba0f1a5b5b17 | /trainval_net.py | 15ca80be407d2c1be8d2ec669bdfc4d118f3a93b | [] | no_license | LanyiWanggg/domain_adaption_caption | f78376bd2c09e50e111b9e8b0bfadf82a4795a36 | 98a7bd3cc82df0d1b70ddfc659fdd74ed625dde0 | refs/heads/master | 2023-05-30T22:38:51.703735 | 2021-06-08T20:15:29 | 2021-06-08T20:15:29 | 375,111,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,213 | py | # --------------------------------------------------------
# Pytorch multi-GPU Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick
# --------------------------------------------------------
from __future__ import absolute_import
... | [
"law190@pitt.edu"
] | law190@pitt.edu |
2ad628a29a18f6ef3219307d5349625a027c37a8 | 16856157985fcc8c06973c3fc552f05ec7b5c6e7 | /core/migrations/0004_wordnormal_record.py | cc26f2bb72f36d2d785f686c6690578862b617fb | [] | no_license | glader/ZeonSearch | c592e024540d153e12bcf1de1f73fe73bc8c179c | 8132f1b9978d0af2e8b703ddd9b394d72a5424ed | refs/heads/master | 2021-01-23T21:18:29.046316 | 2017-10-11T07:20:22 | 2017-10-11T07:20:22 | 102,892,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-08 16:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20170908_2134'),
]
operations = ... | [
"glader@yandex-team.ru"
] | glader@yandex-team.ru |
011ccef6c00ec639d7eee1281266fbff05e9f6b7 | c5b72e3ea097c8647f8e393b35aa8df721c0cba0 | /notification.py | 6053c0a0a5f6e5cc8a81f99910a15670bf8e4e2c | [] | no_license | CBEB/jd | 6f88c9dc1d5b98ef3f3650adf410a638b5d1e6f4 | 99afaae5ca3010a53d38f8c84ec827dec0c24a26 | refs/heads/main | 2023-06-23T19:38:05.154281 | 2021-07-13T06:29:28 | 2021-07-13T06:29:28 | 345,933,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | import requests
import os
import smtplib
from email.mime.text import MIMEText
import time
#######################
# 通知服务
#######################
# [0,1,2,3] 0:不通知 1:server酱 2:SMTP邮件服务 3:bark服务
needYou2Know = 0
SCKEY = '' # Server酱的SCKEY
email_dict = {
"sender": '', ... | [
"ggw@a.com"
] | ggw@a.com |
7c6e1b6c33ea05d437ed23695e22c0b12681b0c2 | 6a10d4d17bef4918e8f188d98ada1d599578ca62 | /An3/Sem1/Python/Lab4/s4.py | a61acbc85fd7dbd9b457dcb6312cfbfc002c5148 | [] | no_license | iceeye7gabi/FII | c9870203b25606464e4f5613e0c7eabad946c85f | d1a0726f687290c517a47bb96478010403354436 | refs/heads/master | 2022-11-19T09:37:47.740963 | 2020-07-20T09:27:03 | 2020-07-20T09:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | def problema4(my_list):
result = []
for elem in my_list:
if isinstance(elem, int):
result.append(elem)
return sorted(result, reverse=True)
my_list = [404, 2, 'trei', 4, 5.0, [5, 6]]
print(problema4(my_list))
def checkPrime(n):
if n <= 1:
return False
fo... | [
"noreply@github.com"
] | iceeye7gabi.noreply@github.com |
e51fbe1d83fc18c0809ef65f62e0f7a148dfdd77 | a672f984782a1fa328069363671c328da3e4d8bd | /weatherdaily/views.py | 40d1077ff5095487d6bbd95bd1a79c2aceed8864 | [] | no_license | avs8/yourweather | 396a0b093cbc9fc9b501eb979418e10eecfadf2b | 2415769dad416c9fcf99d57cba93b455d30447fc | refs/heads/master | 2021-08-29T08:11:16.664340 | 2017-12-13T14:15:44 | 2017-12-13T14:15:44 | 112,365,929 | 0 | 0 | null | 2017-12-11T14:35:38 | 2017-11-28T17:20:17 | JavaScript | UTF-8 | Python | false | false | 558 | py | from django.shortcuts import render, render_to_response
from .forms import WeatherForm
from django.http import HttpResponse
from django.template import RequestContext
from .models import *
def index(request):
args = {}
if request.POST:
form = WeatherForm(request.POST)
if form.is_valid():
... | [
"ajitavsingh_8@yahoo.com"
] | ajitavsingh_8@yahoo.com |
22026862c4779187068f89cb47fe0e6b11a7c0f0 | 18a6b272d4c55b24d9c179ae1e58959674e53afe | /tf_rl/test/CartPole/CartPole_recording_test.py | b8d3760e15ebd4d0ca5d66f39bae6090d71f9a17 | [
"MIT"
] | permissive | Rowing0914/TF2_RL | 6cce916f409b3d4ef2a5a40a0611908f20d08b2c | c1b7f9b376cbecf01deb17f76f8e761035ed336a | refs/heads/master | 2022-12-10T09:58:57.456415 | 2021-05-23T02:43:21 | 2021-05-23T02:43:21 | 233,476,950 | 9 | 1 | MIT | 2022-12-08T07:02:42 | 2020-01-12T23:53:48 | Python | UTF-8 | Python | false | false | 503 | py | import gym
env = gym.make('CartPole-v0')
gym.wrappers.Monitor(env, './tmp/cartpole-experiment-1', force=True, video_callable=lambda episode_id: True)
for i_episode in range(20):
observation = env.reset()
for t in range(100):
env.render()
print(observation)
action = env.action_space.samp... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
06f6d45f1419ff49988efce532928e427ada4086 | 0607c5e5edf323c35fca70e9dd857cf17722b8e2 | /rw_visual.py | 75249fac44872174314f6da61fa0c0cc509aaaf3 | [] | no_license | paszo/data_visualization | 68b31b07f9d2dad1213065c937d53b9b30756911 | d3d19670585583ad4b918f047987597301efda3c | refs/heads/master | 2020-05-05T09:52:06.942624 | 2019-04-19T17:45:35 | 2019-04-19T17:45:35 | 179,920,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import matplotlib.pyplot as plt
from random_walk import RandomWalk
# Make a random walk and plot the points.
rw = RandomWalk(50000)
rw.fill_walk()
# Set the size of the plotting window.
plt.figure(dpi=128, figsize=(10, 6))
point_numbers = list(range(rw.num_points))
plt.scatter(rw.x_values, rw.y_values, c=point_numb... | [
"paszo2008@gmail.com"
] | paszo2008@gmail.com |
b9f2e13111c68a6e023b3157402e3b2464bf08a3 | e11e1cf6d7916009543bbb54100882b8989d09c5 | /docs/conf.py | b582669c7b1543755c6730e8330bf81a82a83265 | [
"MIT"
] | permissive | sgmagar/django-circleci-example | fac705d5a6b700c64a81c19a5c47acd24b3b8c60 | 7352f0bc9a1b10deb2d9be592c89f73ca455b883 | refs/heads/master | 2020-12-14T15:50:03.686396 | 2019-05-02T13:07:43 | 2019-05-02T13:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,064 | py | # Django CircleCI example documentation build configuration file, created by
# sphinx-quickstart.
#
# 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.
#
# All configuration values have a default; ... | [
"hey@timmyomahony.com"
] | hey@timmyomahony.com |
2cf4a770d57e959caa25911922f9826db78558dd | c309fa04fe4f3803a92c98cd7297ea98a8c47d71 | /tencent/tencent/pipelines.py | 52ce22659d23ff8c389648ae51f03824657e20e9 | [] | no_license | OoGod/tencentRecuitmentSpider | 538b9544103692d6f33544c4e029065b53daa9f0 | de8c086d9cca0a6aa8bd8e238ee0067b8333b930 | refs/heads/master | 2020-04-28T21:42:45.114679 | 2019-03-16T14:53:57 | 2019-03-16T14:53:57 | 175,591,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class TencentPipeline(object):
def __init__(self):
self.filename = open("tencent.json", "w")
def... | [
"1617605689@qq.com"
] | 1617605689@qq.com |
d8c5df127d6718475f170e98770c24e5d59e6fe1 | 08eead02cfa5bdfbd5d7733573c253254f64e1b2 | /Collection/ms/01 Arrays/02_valid_alphaNumericPalindrome.py | 019b3d18366840f6d8c52276c3adb4b09facc4c4 | [
"MIT"
] | permissive | vicchu/leetcode-101 | 4cd33d8658375889b831e1fa1ce7062fa5b322e6 | 8a9db22d98692d634a497ba76c7e9f792bb1f1bc | refs/heads/main | 2023-06-20T04:39:48.666282 | 2021-07-15T16:03:34 | 2021-07-15T16:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | class Solution:
def checkRange(self, x):
if (x.lower() >= 'a' and x.lower() <= 'z') or (x.lower() >= '0' and x.lower() <= '9'):
return True
return False
def isPalindrome(self, s: str) -> bool:
# Make everything Lower & Filter non-alphaNumeric
alphaNumericStr = [x.low... | [
"kmanadkat@gmail.com"
] | kmanadkat@gmail.com |
21fe54b94c5e5b3cd05505d1e5b489b734e9a820 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/setuptools/setuptools/_distutils/archive_util.pyi | 38458fc0e00349e77ebf105fdf5a52e850bc9e25 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 548 | pyi | def make_archive(
base_name: str,
format: str,
root_dir: str | None = ...,
base_dir: str | None = ...,
verbose: int = ...,
dry_run: int = ...,
owner: str | None = ...,
group: str | None = ...,
) -> str: ...
def make_tarball(
base_name: str,
base_dir: str,
compress: str | None... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
093bd3bfd9cfc28adf2c304250b74955b9339704 | 5c68f2e003f371317c72d19aaaeec1ad41888d00 | /blog/urls.py | 30ae7f985a8772c3196b0419760bc14d8affcae7 | [] | no_license | kutritee/my-first-blog | 75faf850e2abfac135fff0740e96d4145a08bc19 | 01b813282faf3e963dbb65f84e5b44da1590016f | refs/heads/master | 2021-07-25T19:20:51.710020 | 2017-11-04T15:02:37 | 2017-11-04T15:02:37 | 109,483,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.conf.urls import url
from . import views
from django.shortcuts import render, get_object_or_404
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
]
def post_detail(request, pk):
post = get_object_or_404(Post, pk=pk... | [
"katri.raffi@gmail.com"
] | katri.raffi@gmail.com |
a6e7c6a73dfe263727c51c21d89a1afe7a338a7e | 6071669daca2b70f0bd6067e4a54c2558ccafd0d | /project/site/__init__.py | c76991b8a23ee6169cacae9380ce599e16a53728 | [] | no_license | nymann/Accountant | 3d4ee2a85daa2879a7505727c7a7a76eb2df2446 | 6d2c7260388575883e02c3f2a426536861b860c5 | refs/heads/master | 2021-10-09T21:48:16.315340 | 2019-01-03T19:36:08 | 2019-01-03T19:36:08 | 132,523,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from flask import Blueprint
site = Blueprint(
'site',
__name__,
template_folder='templates',
static_folder='static',
)
from . import views
| [
"s144833@student.dtu.dk"
] | s144833@student.dtu.dk |
2dae2c56c83c3067962ddff4ccc886190c2d0810 | a0ccbe5aa927c05e2ac468963d133a2649431515 | /realtors/admin.py | b6ff1fa78697c74f1120772e62461f381dfbd6ff | [] | no_license | Salman85365/btre-RealEstate | f2e636562c80c619ebd1db47b963c62852185a7e | 2a4bc163d01ea3927d7d40af3828fc59f36a0251 | refs/heads/master | 2023-04-14T09:01:33.306540 | 2021-04-28T13:24:28 | 2021-04-28T13:24:28 | 362,467,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.contrib import admin
from .models import Realtor
class RealtorAdmin(admin.ModelAdmin):
list_display =('name','hire_date','email','phone')
list_display_links=('name','email','phone')
search_fields=('name','email')
admin.site.register(Realtor, RealtorAdmin)
# Register your models here.
| [
"salman8585365@gmail.com"
] | salman8585365@gmail.com |
bdb8cf15fdb8a61b89ec89976790c6752abf3dcf | 2f78d6d5c92449acb0ade6f8e89ef40acc205f85 | /DAA/knapsack.py | c0383d90a963ecd08b05bd356dc2cb0502308d1c | [] | no_license | bhagyeshdholaria/mit_codes | e80a767de7841cdb1ca1f7487a69dc5b17236824 | a1894b93bc749a43eaa8d7e49791346c033da2f8 | refs/heads/master | 2023-03-06T17:19:48.664264 | 2021-02-14T11:21:10 | 2021-02-14T11:21:10 | 231,590,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | def ksp(warr,parr,m):
pw=[]
final=[0]*len(warr)
p=0
for i in range(len(warr)): #n
pw.append(parr[i]/warr[i])#n
while m!=0:#n
k = pw.index(max(pw))
if warr[k] <= m:
m -= warr[k]
final[k] = 1
p += parr[k]
pw[k] = -... | [
"bhagyeshdholaria@gmail.com"
] | bhagyeshdholaria@gmail.com |
150bdc2e80df90fdee9674431ee71b1d81186d77 | d2be5705c55199f3d55c1c07b06dbe8fea26461e | /ATC/ATC001-C.py | c59cbf7cfe1e58c14aa342219b54f140c211f042 | [] | no_license | hsuetsugu/atc | 6ad1a2f06e528c4f96bf7ebd2eb9ab33c49eeea7 | ad2a4dcf392f66ad8bf0349c0bf8b8a3413567aa | refs/heads/master | 2021-05-19T09:08:06.143811 | 2020-06-28T23:51:50 | 2020-06-28T23:51:50 | 251,620,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
# C - FFT
# https://atcoder.jp/contests/atc001/tasks/fft_c
'''
4
1 1
2 2
3 4
4 8
'''
N = int(input())
a = [0] * 2 * N
b = [0] * 2 * N
for i in range(N):
a[i], b[i] = map(int, input().split())
for k in range(1, 2*N+1):
sum_ = 0
if k == 1:
print(sum_)
continue
fo... | [
"hsuetsugu@sglab.co.jp"
] | hsuetsugu@sglab.co.jp |
7b227f8b4fb8363cfc5ac52f09135c06f74aed51 | 0b5c517c147df3dc4d60a21277c3f29daa3fbfbb | /temp_20170919.py | 1c4fe34099c009937a8c80764709d18bda0024bb | [] | no_license | acercyc/V_REP_armDemo_stage_1 | c91682010fd9d5017ccab1ee1f8c1f4b0090d9d8 | f7b3b69f7375e5f7184c8d233f87c0cb0568d4f6 | refs/heads/master | 2021-05-16T09:32:00.452940 | 2017-09-22T05:48:01 | 2017-09-22T05:48:01 | 104,433,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from acerlib.RemoteSession import findX11DisplayPort
findX11DisplayPort()
import importlib
from datetime import datetime
import os
import matplotlib.pyplot as plt
import numpy as np
from numpy import array as npa
from scipy import interpolate
from VrepPythonApi import vrep
from VrepPythonApi import vrep_ext
from arm... | [
"acercyc@gmail.com"
] | acercyc@gmail.com |
418b0f88b0eab98e3c05436c6fea4a9e02badb90 | 2d2a0651507d90b1e8e672b3f4074e7118c4d945 | /AutoLiker/Trial.py | 6e6635805eb2aa01b1c11607d7b336f583de74de | [] | no_license | j105sahil/Youtube-Auto-Liker | 42053b079a3546b7da81148c1eaaad8532d58af9 | f410ce5bdf90af9b793e238e9380524abdb8741b | refs/heads/master | 2020-03-22T21:43:50.213692 | 2018-09-06T07:24:03 | 2018-09-06T07:24:03 | 140,710,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import openpyxl
import webbrowser,sys
import pyautogui
from time import sleep
import random
import subprocess
chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
workbook = openpyxl.load_workbook('trial.xlsx')
sheet = workbook.get_sheet_by_name('Sheet1')
i=1
while True:
if i%10... | [
"noreply@github.com"
] | j105sahil.noreply@github.com |
cece48f8cb5615e6431c63285a03c652e7424655 | 24e932fa3b14c8779dd36ba900c9344046e9ed46 | /main.py | a27940edb010dbb11286ecbd1fa3ac3441918bb2 | [] | no_license | RavenCheng1120/VFX | c9a86b8d88b602bed45787d2414ebac888913e85 | d08310599931a8803b575898698b43c732d863a9 | refs/heads/main | 2023-03-29T09:52:55.602270 | 2021-04-01T06:43:11 | 2021-04-01T06:43:11 | 350,090,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import cv2
import numpy as np
import glob
from Robertson import Robertson
from PIL import Image
def readImages(folder):
imageFormat = ['png', 'JPG']
files = []
[files.extend(glob.glob(folder + '*.' + e)) for e in imageFormat]
imageList = [cv2.imread(file) for file in sorted(files)]
exposureTimeList = []
images ... | [
"ravencheng66@gmail.com"
] | ravencheng66@gmail.com |
2699cb945ccb2374364ae003531ffc3b5fb90aa7 | e7436666fd09e85a088d27ae741739d4c2425259 | /mir/test_essentia.py | fa8f40d1ca219bfc96a3581dbf0e98198942999a | [
"CC0-1.0"
] | permissive | faroit/midihack | ea647c3850c69012719b8f5486cf2a9613ea24ce | 5ce927576c4967499e164d95262a8391173c23ab | refs/heads/master | 2021-01-22T13:02:58.790799 | 2014-06-01T21:12:56 | 2014-06-01T21:12:56 | 19,882,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | from __future__ import division
#import music21
from music21 import *
import essentia.standard
import numpy as np
def stretch(data, bins, interpolation_type='linear'):
ip1d = interpolate.interp1d(np.arange(data.shape[0]),
data,
kind=inter... | [
"fabian-robert.stoeter@audiolabs-erlangen.de"
] | fabian-robert.stoeter@audiolabs-erlangen.de |
53932616f06d5bdf5c3873b0eccb0779b2212eb4 | 15229da763b74cccf53a62fac0e7f9282eef309e | /hardware/mdp/ltl-MDP-face.py | 0f65a0f046a947469acd6901fb43fd82f4acf8ed | [] | no_license | InspectorDidi/Neuromorphic_Hardware_learns_to_learn | 214162bb8be5ac3cb590c57e3c06e1340453ada4 | 920858c172cdd85521646d0ab8ee077002aa1b17 | refs/heads/master | 2020-08-03T10:44:36.026398 | 2019-04-05T04:40:50 | 2019-04-05T04:40:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | import logging.config
import os
from pypet import Environment
from pypet import pypetconstants
import sys
sys.path.append('../LTL')
from ltl.optimizers.crossentropy.distribution import Gaussian
from ltl.optimizers.face.optimizer import FACEOptimizer, FACEParameters
from ltl.paths import Paths
from ltl.recorder import... | [
"franz.scherr@tugraz.at"
] | franz.scherr@tugraz.at |
0026affaf4db9c312ccfe2ba3d12b23bd58c0c57 | 3179016c72059999d5d35c18724d4dcf84b2a225 | /test_scripts/test_permute.py | a202c18f9a93f422e6986fc2a0a6ab456d42c5c8 | [] | no_license | thematrixduo/DAIR | e51a1f5e7c13090e103afea8ffdbcb4a6504389a | 5e6f76c97880114b606d054375250da0522babaa | refs/heads/master | 2022-12-11T05:11:07.079300 | 2020-08-31T13:19:07 | 2020-08-31T13:19:07 | 291,719,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import torch
import numpy as np
torch_array = []
np_array = []
for i in range(3):
data = np.random.normal(0,1,(64,3))
#print(data.shape)
np_array.append(data)
torch_array.append(torch.tensor(data))
stacked_tensor = torch.stack(torch_array)
print(stacked_tensor.size())
permuted_tensor = stacked_tensor.... | [
"wangduo1992@hotmail.com"
] | wangduo1992@hotmail.com |
26556f32fd856b8732227ea6ddcc48bd711e6877 | 4412fd856cfbdfab98122b11ea01e447a76851b3 | /rodentdb/querysets.py | 063568ed8e0276d9a070a898fd61d93c93f1a13b | [] | no_license | fchampalimaud/rodentdb | d8e8c0c7552de638d3a2fd57de287401997fdf3c | 4a970c09da78f22a8c57d8ea98d29a569f531613 | refs/heads/master | 2021-06-18T02:05:19.200858 | 2019-09-17T18:09:57 | 2019-09-17T18:09:57 | 185,334,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.db import models
from users.mixins import PyformsPermissionsMixin
# FIXME import this when users model is not present
# try:
# from users.mixins import PyformsPermissionsMixin
# except ImportError:
# PyformsPermissionsMixin = None
# # PyformsPermissionsMixin = object
class RodentQuerySet(Pyfo... | [
"hugo.cachitas@research.fchampalimaud.org"
] | hugo.cachitas@research.fchampalimaud.org |
e9077fa3fbda560e0da3e80119eca9188995a279 | 11abaae6662dfbbe5d323459fa93c505112a0739 | /import_tiger_lm.py | d013b1ffeeffff1638eaf618c70fc5297e1fee47 | [] | no_license | Web5design/simplegeo-bulk-import | c6d71ff372ac7d1f1201308440b1d081053616d7 | a514f5b36ad095a90f8266d2df3f11461851566c | refs/heads/master | 2021-01-18T17:34:02.486434 | 2010-09-01T21:21:57 | 2010-09-01T21:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from bulk_import import create_client, add_records
import sys
def skip_unnamed_landmarks(id, point, attrs):
if not attrs["fullname"]: return None
return attrs["pointid"], point, attrs
client = create_client()
for input_file in sys.argv[1:]:
add_records(client, "net.nocat.tigerlm", input_file, skip_unnamed... | [
"schuyler@simplegeo.com"
] | schuyler@simplegeo.com |
59b0ce8038051b923da1779ad300057f96e36409 | d90724db44810e51a0586ab6e379afb4f41ca9c9 | /guess_number.py | 40affe78bc1220a38afd81e50ae91064bd98ac9a | [] | no_license | Rutvi-Patel/cecs-174 | e31cbd31a261677f3f3125d6aaa55aa92d5f125e | 6011871cede8eec64ef3f1dc442387f08d7a937f | refs/heads/master | 2020-05-01T06:14:28.009489 | 2019-09-27T22:03:53 | 2019-09-27T22:03:53 | 177,325,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import random
print("I am thinking of a number between 1 and 10.")
ask = "yes"
while ask == 'yes':
num = random.randint(1, 10)
for x in range (5):
use =input("Take a guess :")
while not use.isdigit() or not 0<int(use)<11:
print("Wrong value, re-enter:")
use =inpu... | [
"noreply@github.com"
] | Rutvi-Patel.noreply@github.com |
5a850bb6a63234b950eedb091013eaf3870c052c | 88237dd1932c346acade7001f22d0fc7190da55c | /torch/testing/_internal/distributed/rpc/rpc_test.py | a149c541a090e422aa02b0beb16eeb237c85ba35 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | kkleidal/pytorch | 4d7e95d0035bb03509dce6624e857c118279d08d | 815d38395a5081adef6ecec3372474f6f41b2a7c | refs/heads/master | 2023-02-06T11:00:27.985596 | 2020-12-17T17:30:02 | 2020-12-17T17:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178,866 | py | import concurrent.futures
import contextlib
import json
import logging
import os
import sys
from threading import Lock
import time
import unittest
from collections import namedtuple
from functools import partial
from unittest import mock
import torch
import torch.distributed as dist
import torch.distributed.rpc as rpc... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b75806926dcb3bbbf4251fca79a3bd28f9300dab | 71b86fc54e811c3a06d6d2db32a65a212f642bac | /scripts/create_prod_optfreq_jobs.py | 298897a5ec19bd62538151015a4d4e84b1ae396f | [
"MIT"
] | permissive | yunsiechung/ard_gsm | c773f4454836b54f6bb788c8d038d60d628ffcf2 | 82826011b0edf7122e16063094b04ecd16bf1cf5 | refs/heads/master | 2021-05-20T12:01:32.981441 | 2020-01-20T17:08:31 | 2020-01-20T17:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import argparse
import glob
import os
import re
from ard_gsm.qchem import QChem
from ard_gsm.util import iter_sub_dirs, read_xyz_file
def main():
args = parse_args()
num_regex = re.compile(r'\d+')
maxnum = float('inf') if args.maxnum is None else args.maxnum
... | [
"cgrambow@mit.edu"
] | cgrambow@mit.edu |
5f2d1ac25562db38ab4a821c2566217b269f5519 | f8ab044c34f0d286195c8e5abfae6f451e6c8223 | /test_arg.py | 58c8a56dafab815d14bbf764635a534ade273ed5 | [] | no_license | liuyug/pytest | aa512e902cf4ba9afb91b6b5b5c5cb9dccdc6478 | ffc14dbee70ff6fd9c8ab63a1c771fddc8bf5491 | refs/heads/master | 2020-05-19T12:20:57.958939 | 2016-09-06T03:01:38 | 2016-09-06T03:01:38 | 15,447,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
import argparse
import unittest
class testArgs(unittest.TestCase):
def setUp(self):
self.args = (
['--foo', 'abc', 'abcdefg.ext'],
['-a', 'abc', '-a', 'bcd', '-a', 'cde', 'def.def'],
['-vvvv', 'abc.ea'],
#['--v... | [
"liuyug@gmail.com"
] | liuyug@gmail.com |
ea458da44d9961bee35199279e20dc43ab8ce4f3 | 567055ea99ac7ca3fa3fd77c36f5535b8fb6f546 | /2018-W-450-4/02-learning-curves/__init__.py | 3ee4e18e89186a452bc3744e947f3ff5262e3079 | [] | no_license | lssnadia/JupyterNotebooks | f72e58101250a129792639c90f4e276154bb7e6d | d36756ee4f46718bc2cffa7ef2d43b95938fd879 | refs/heads/master | 2020-03-08T13:41:29.826373 | 2018-04-05T06:00:49 | 2018-04-05T06:00:49 | 128,164,318 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from scipy import stats
from IPython.display import display
from IPython import get_ipython
get_ipython().run_line_magic('matplotlib', 'inline') # makes the picture show up | [
"ubuntu@ip-172-31-22-81.us-west-2.compute.internal"
] | ubuntu@ip-172-31-22-81.us-west-2.compute.internal |
2a7e760536c47ab9bfd21b678dd36dc283094496 | 769518eaef4ad25335bd917409136eccade1c0b1 | /label_gen/removenolabeldata.py | 94e8562ef19ea53a8f271caf6e1a8d4bbbbd8b4d | [] | no_license | xk-wang/polyphonic-omr | eaade114eccb42d2137b7a5c857659d628ed4220 | 264b17302f9029460840c79014d0aa75b68d38b5 | refs/heads/main | 2023-07-19T11:40:52.007262 | 2021-09-20T21:20:02 | 2021-09-20T21:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | # Removes the imgs that have no corresponding label
# python removenolabel.py -imgs <img dir> -labels <label dir>
import os
import argparse
def main():
"""
Main method
"""
# Parse command line arguments for input
parser = argparse.ArgumentParser()
parser.add_argument('-imgs', dest='imgs', ty... | [
"sedirisooriya10@gmail.com"
] | sedirisooriya10@gmail.com |
6006a738df99a24e60f0d1202d8a0998e6f3c28b | 45f93a9d47204d76b8bf25a71dfb79403e75c33c | /CodeForces/yes-or-yes.py | cb4db3b37842abd3b41cac071b12adb1ab078941 | [] | no_license | tahmid-tanzim/problem-solving | 0173bce1973ac3e95441a76c10324c0e1b0a57c3 | 6ddb51de6772130f209474e76f39ca2938f444f0 | refs/heads/master | 2023-06-25T02:18:03.690263 | 2023-06-20T06:58:46 | 2023-06-20T06:58:46 | 137,173,850 | 4 | 1 | null | 2022-03-30T08:28:41 | 2018-06-13T06:44:25 | Python | UTF-8 | Python | false | false | 189 | py | # https://codeforces.com/problemset/problem/1703/A
# A. YES or YES?
if __name__ == "__main__":
for _ in range(int(input())):
print('YES' if input().lower() == 'yes' else 'NO')
| [
"tahmid.tanzim@gmail.com"
] | tahmid.tanzim@gmail.com |
660bc9b69bbe66c2d9ce7f4e54e3b4a1dcabcda8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/334/usersdata/294/100466/submittedfiles/listas.py | 90a4557636f7b45bccefc918ec87c0a87bd5ae66 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
n= int(input('Digite o número de elementos: '))
while n<2:
n= int(input('Digite o número de elementos: '))
a=[]
for i in range (0,n,1):
a.append(int(input('Digite o elemento%d: ' %(i+1))))
for i in range (0,n-1,1):
dif= a[i]-a[i+1]
if dif>0:
dif=dif*1
degrau=0
for i in ra... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
998989ef69a190607170515fdb349911ee57ef91 | df7d030146c901790ab49402140f40fb26d03c8a | /PiTemperature/RPiWebThermometer.py | 97b0ccc67ad3e3960d92a34216af4aa3910870ec | [] | no_license | Adrian-Rosoga/code_pi | 955316914a4ab51513e75a8da82cca8c3a71a14a | 0a0b57489a4dce2021c03ee10a1d6002c3e34180 | refs/heads/master | 2021-06-23T11:35:12.992361 | 2021-05-25T17:05:47 | 2021-05-25T17:05:47 | 211,540,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | #!/usr/bin/python
#
# One-trick-pony web server serving page with temperature reading
# from DS18B20 sensor attached to a Raspberry Pi
#
#
# Configuration
#
PORT = 8000
DS18B20_OUTPUT_FILE = '/sys/bus/w1/devices/28-0000045bf342/w1_slave'
MAX_TEMPERATURE_ALERT = 22.0
MIN_TEMPERATURE_ALERT = 18.0
import re, time
from ... | [
"arosoga@yahoo.com"
] | arosoga@yahoo.com |
188c718d6467ae8fa888ac5aae2b97fa2aea6c74 | 5c0a0e9696a1b38ff6663440d21c94cbb6730ab1 | /1 resnet training (CIFAR10).py | 6ee2bf9da2c3570bf6250a3c8594527cda5c5469 | [] | no_license | DeBur19/FGE_reproduction_project | 93107a9f9399022bf5c08e8f54d5fd22294a00ca | 82143ac593dc6707d799378a699bd1c772e43126 | refs/heads/master | 2020-11-25T23:34:19.854559 | 2019-12-20T19:47:39 | 2019-12-20T19:47:39 | 228,890,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,416 | py | import torch
import torch.nn as nn
from torch.nn import functional as F
import torch.optim as optim
from torch.optim.lr_scheduler import StepLR, MultiStepLR
import random
import pandas as pd
from skimage import io, transform
import numpy as np
import matplotlib.pyplot as plt
from torch.utils.data import Dataset, DataLo... | [
"noreply@github.com"
] | DeBur19.noreply@github.com |
538ee5795f2f172fc105da720d85536515dbfad0 | 2a6627109f9e3caff5aea4a902f7c902d1e9ac40 | /ee/clickhouse/views/person.py | 6c15329824809af7c9ba886a4629a7b3387e8ab4 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | suresh1999/posthog | 0739d631e5efb96dd00f4d5544f14e885d567b7a | 14d37dd38cd63b501324856e7dc6602a596efd1e | refs/heads/master | 2023-01-24T22:49:19.026411 | 2020-12-04T16:13:52 | 2020-12-04T16:13:52 | 318,311,546 | 0 | 0 | NOASSERTION | 2020-12-04T16:18:23 | 2020-12-03T20:28:05 | Python | UTF-8 | Python | false | false | 1,021 | py | from rest_framework import request, response
from ee.clickhouse.models.person import delete_person
from ee.clickhouse.queries.clickhouse_retention import ClickhouseRetention
from ee.clickhouse.queries.trends.lifecycle import ClickhouseLifecycle
from posthog.api.person import PersonViewSet
from posthog.models import Ev... | [
"noreply@github.com"
] | suresh1999.noreply@github.com |
9ce6ce54431bf4e550f269c6bf8dc6421f443ae8 | 1770a4b13c908bc80b3cfc7e41b22648e434823e | /Assignments/homework_assignment_5/is_it_in_stock.py | 12a31c5427831c3f701731c3635d0b9dfcd432a7 | [] | no_license | lshi0335/MSITM6341 | 51071ceafa9bb7df42e00ce42375e15f4bf1872e | 1cbcf1237aaf8e8771eeb6817b72d5db193179b5 | refs/heads/master | 2020-07-12T12:38:19.398701 | 2019-12-17T04:13:45 | 2019-12-17T04:13:45 | 204,822,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Lei Shi
# 0985491
# MSITM6341
# 9/29/2019
# Assignment 5
# Initialize lists
menu_items_in_stock = ['Tacos', 'Chips', 'Salsa', 'Quesadilla']
customer_order = ['Tacos', 'Guacamole', 'Burrito', 'Chips', 'Salsa']
# Change all elements in lists to lower case
menu_items_in_stock = [x.lower() for x in menu_it... | [
"noreply@github.com"
] | lshi0335.noreply@github.com |
da10a3b12aca6306765f2a69092175ef54860514 | d11b6555f38c1b05998d85c4b9be3c93e9a7e819 | /Hello.py | eaef9e1f7b0cbd8f5d6dc725eb06923b587f3617 | [] | no_license | Vatty20/LearningPython | 949b789a9c2182630b94d167e885069ba9e29fd7 | 00212c9aa8f6c18ee78a7a96536354b5dc0b6b19 | refs/heads/main | 2023-08-28T00:35:44.812062 | 2021-10-19T06:42:48 | 2021-10-19T06:42:48 | 418,799,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py |
print('Hello World')
print('Wassup') | [
"harlalka.vatsal@gmail.com"
] | harlalka.vatsal@gmail.com |
d4cc69a7a8a0f8fee5660e5ea167301c123bedaa | faa741e4a1a44eb00daacbf5cfe73027f5a44200 | /SRC/Controllers/sentiment.py | 335ad8a19893431098435d93199a005f2f8e34d3 | [] | no_license | uscoburgo/API-Sentiment | 53383406fcc3ac983594699aa9856700680cd033 | fa66321ccf0e73f418fcb0d07885df46f7d1a556 | refs/heads/master | 2023-05-25T03:50:32.510912 | 2020-07-14T15:44:36 | 2020-07-14T15:44:36 | 279,024,151 | 0 | 1 | null | 2023-05-22T23:32:54 | 2020-07-12T08:35:32 | Jupyter Notebook | UTF-8 | Python | false | false | 2,242 | py | from src.Controllers.chats import getMessage
from src.app import app
from pymongo import MongoClient
from src.Helpers.errorHelpers import errorHelper ,Error404 ,APIError
from src.config import DBURL
import json
import nltk
import ast
from nltk.sentiment.vader import SentimentIntensityAnalyzer
from sklearn.feature_extra... | [
"uscoburgo@gmail.com"
] | uscoburgo@gmail.com |
ec14651799152533ae1afb6b7c4b39d5335c4ecb | 2e74cff6c9639f3903ccde662e79359d0724285e | /2019_late/20190829/swea_5105_미로의거리.py | a33cf516df96ab271637b2d73566c84324d7b61b | [] | no_license | dodonmountain/algorithm | e29988071f651e51ba65e3926302f94a3d4074a5 | ce33e0d74220839aed4b17a47fa0069458a4324e | refs/heads/master | 2022-11-05T05:14:01.527015 | 2022-11-01T04:29:37 | 2022-11-01T04:29:37 | 200,008,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | import sys
sys.stdin = open('5105.txt')
from pprint import pprint
from collections import deque
from collections import deque
def bfs(x, y):
global shortest
Q = deque()
visit[x][y] == True
Q.append((x, y))
dx = [0, 0, -1, 1]
dy = [-1, 1, 0, 0]
D = [[0] * N for _ in range(N)] # 최단 거리를 저장
... | [
"lkh151515@gmail.com"
] | lkh151515@gmail.com |
1fb40fbffed2a13ac1dd57353e0da19e31b8beb0 | ea1e7cb5499dd9273352f55788251341a1e20dac | /finchcollector_project/settings.py | c6e846e1b23931ea29ef615906be73a27c95022f | [] | no_license | jpardike/Finch-collector-lab-views | 68a06d024529fa2ac40fe25f642432469db9b648 | 05a1ab69126dee7ba2b6f9fe7923b2b7d5bf3341 | refs/heads/master | 2023-01-30T23:56:47.929203 | 2020-11-03T08:04:08 | 2020-11-03T08:04:08 | 320,217,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | """
Django settings for finchcollector_project project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
""... | [
"jpardike@gmail.com"
] | jpardike@gmail.com |
9390417b1a18bcc58789ad980862c773d4cafc48 | ba2039cf6d664c733cf1ff62dae0bb30e10798a9 | /SUSTILP3/urls.py | 2535aceee788fca6a3907b92d654cdc26fac7eb1 | [] | no_license | PauloR1997/EXAM_SUS_PL3 | 0a11c9c1531534ad5496cebbab1f9b373ea2b074 | 8e64326321f934f25e6ba6c43c8c906bcaa5b360 | refs/heads/main | 2023-03-01T19:32:37.853716 | 2021-02-17T16:53:51 | 2021-02-17T16:53:51 | 339,769,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | """SUSTILP3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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... | [
"oyepaulo57@gmail.com"
] | oyepaulo57@gmail.com |
de8fae9c0ec7bb4c55a0e206af361d75c14fe612 | b91bc02a5650597b8c217750c4fef238cb2b3363 | /etcd_client/models/etcdserverpb_lease_time_to_live_request.py | 8174a404dac146c49249468a580e235bf226a191 | [] | no_license | NimbleBoxAI/etcd-client-python | 6d578fd5c588e7b691e6a41a45cb5f93afab279b | 4d67692b0d75e4b14747f34f3d13998529216a3f | refs/heads/master | 2023-07-13T19:04:36.118319 | 2021-08-21T15:29:11 | 2021-08-21T15:29:11 | 390,751,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,436 | py | # coding: utf-8
"""
api/etcdserverpb/rpc.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re ... | [
"cshubhamrao@gmail.com"
] | cshubhamrao@gmail.com |
01d0c81a95e80f405f125fd99caa00848d8f6f63 | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/MailChimp/ListSubscribe.py | 1366bda24013c469dbaa94248b91bb53f0dbbfa1 | [] | no_license | miriammelnick/dont-get-mugged | 6026ad93c910baaecbc3f5477629b0322e116fa8 | 1613ee636c027ccc49c3f84a5f186e27de7f0f9d | refs/heads/master | 2021-01-13T02:18:39.599323 | 2012-08-12T23:25:47 | 2012-08-12T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py |
###############################################################################
#
# ListSubscribe
# Adds a subscriber to a MailChimp list.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from temboo.core.choreog... | [
"miriam@famulus"
] | miriam@famulus |
2627c321f4755387617ebb32925ede73ea39af0d | 5fafdbc2818450646d83550a0be2fe080a6f6b4d | /src/wagtail_email_subscription/config.py | 95a8c23beeebc142315f14ade1e222ff2b7668e9 | [
"MIT"
] | permissive | robmoorman/wagtail-email-subscription | 527bbbc9e298a7e712319892040152dc05495d91 | 59b6874ecdf562201e4867a2465ac24a4f4c157d | refs/heads/main | 2023-04-20T19:39:23.611378 | 2021-05-04T13:50:22 | 2021-05-04T13:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.apps import AppConfig
class WagtailEmailSubscription(AppConfig):
name = "wagtail_email_subscription"
verbose_name = "Wagtail Email Subscription"
| [
"maerteijn@gmail.com"
] | maerteijn@gmail.com |
445c6ff875319e02bf6c664717e3b20fcc1eeef2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_peters.py | 5c5535b7cf2fe2459518556a2fea0f4e76f710a9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _PETERS():
def __init__(self,):
self.name = "PETERS"
self.definitions = peter
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['peter']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a83a2545f465ee61b698cfbea8d5b6debcef42ec | c05e1c1ee73951856a49ec53612f91f8a656931a | /conf.py | 1fc76619acfd81514b95d7d25835aeca29c9621a | [] | no_license | pylgrym/pyscify | b3bb33009994236578271c71c21fc734d0f6df9d | 5e7f722a1a4b40f01546b160083fa6269bff9fe9 | refs/heads/master | 2021-01-10T04:47:19.918697 | 2016-02-20T20:50:00 | 2016-02-20T20:50:00 | 52,174,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # -*- coding: utf-8 -*-
from pysite.conf import PySiteConfiguration
from pysite.compat import PORTABLE_STRING
class HelloworldConf(PySiteConfiguration):
sitename = 'helloworld'
translations = ['en']
sitetitle = PORTABLE_STRING('yes')
def __init__(self,basedir):
super(HelloworldConf, self).__init__(basedir)
si... | [
"jgaardsted@gmail.com"
] | jgaardsted@gmail.com |
22c73317a38a0b6c83062567b5d226553b2468c6 | 17f74be7a38e5e86539a239e3a8d642bdf1b36ff | /PYTHON_SYNTAX/two_types_of_division.py | 9c020eb74b20dc7cd9d42de0ebbc833dc7bc5591 | [] | no_license | vishal-1codes/python | 5d56825a02bc27375b6f6fba65cf0cad1596f87a | 53c41e4f04933c5e911b2b0473d1ecf886955869 | refs/heads/master | 2023-08-13T21:16:17.995213 | 2021-09-25T17:21:01 | 2021-09-25T17:21:01 | 345,704,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | #if we want float number in result
cucumbers=100
num_people=6
whole_cucumbers_per_person=cucumbers/num_people
float_cucumbers_per_person=float(cucumbers)/num_people
print(float_cucumbers_per_person) | [
"pawarvishal10k@gmail.com"
] | pawarvishal10k@gmail.com |
05dfdbb7f1fe32835a1c9b65abe2e372a8d9fad3 | 3eff0ac549dd24fbade02d63c3a541ab88db1e5b | /ultimate_python/pythonrefresh.py | 36dd68b468c98ac1e89ac271b58821745d51e6d4 | [] | no_license | lisaolson/udemy | 618410fb548db864b7878de5a2231e8293daa2ad | f40f947f6f79d692748f3efba02176fb360f0c4e | refs/heads/master | 2020-03-28T20:14:23.028759 | 2018-09-18T19:45:32 | 2018-09-18T19:45:32 | 149,051,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | # VARIABLE
age = 21
name="Lisa"
# print("Hello my name is {} and I am {} years old".format(name, age))
if age < 25:
print('You are young')
def hello(name, age):
return 'Hello {} you are {} years old'.format(name, age)
sentence = hello('Lisa', 21)
print(sentence)
# LIST
dognames = ["Fido", "Sean", "Sally", ... | [
"olson.lisa94@gmail.com"
] | olson.lisa94@gmail.com |
82b311c67a57cc924a2e56dcce6820aeb0307776 | 3de806956985605b4f5042879e11d88a859871dd | /notebooks/pdf_structure_env/bin/dumppdf.py | 367ccdc95d1ee1fbd5d2f91f771c7cd4cfbb0e42 | [] | no_license | qiyuyang16/CS4300_microGoogle | cb25e9f5b0e547f71873cc06e345b7776d1a24a6 | e6ac8561a8e20b23bb858dbf4ed745e28bf60b94 | refs/heads/master | 2023-04-21T05:59:51.299146 | 2021-05-11T19:23:48 | 2021-05-11T19:23:48 | 354,361,818 | 0 | 0 | null | 2021-04-28T15:10:01 | 2021-04-03T18:12:04 | Jupyter Notebook | UTF-8 | Python | false | false | 12,939 | py | #!/home/vince/Documents/Code/microgoogle/CS4300_microGoogle/streamlit_testing/pdf_structure_env/bin/python
"""Extract pdf structure in XML format"""
import logging
import os.path
import re
import sys
import warnings
from argparse import ArgumentParser
import pdfminer
from pdfminer.pdfdocument import PDFDocument, PDFNo... | [
"vince@bartle.io"
] | vince@bartle.io |
f16f18958e39635b2ec69e9ef800bff4f89db0b2 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/poetry/core/_vendor/tomlkit/api.py | 23658477769d0ea33af12aa07d3fc063cfaeaef7 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/3c/67/92/c18b0ffb5593ff972c09bb41120b8c23e3d192f2ff675748efe3028432 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
869bef9db0f826ce4bfa32b021923192fba92284 | 95ddd1469d43d3dc1a61e3195b6ece492eb96296 | /lesson 3/promblem1/problem1.py | b8f393530c32dfac73968f7df30f46e4f6e6e1ff | [] | no_license | agp123/U3_lesson3 | 1f82f70e4c3c1b51c16309146582e1d7d299760e | 3ea55353c97f2dc9d21ff2d69559255dc7385eec | refs/heads/master | 2020-04-09T09:14:35.118198 | 2018-12-14T14:41:19 | 2018-12-14T14:41:19 | 160,226,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | x1 = -12
y1 = 6
x2 = -4
y2 =4
slope = (y2 - y1) / (x2 - x1)
print(slope) | [
"noreply@github.com"
] | agp123.noreply@github.com |
09d99350cbbabc222a77496c6c03229d663ceb9a | f3438f7b9925a16efa3240ae35b08efb4f567fec | /python_tutorial/Session 1/shout_it_out.py | 34253082f4c81336fcb18f5dc81bc5075b5c4df2 | [] | no_license | Bing-Violet/Code-Like-a-Girl | cf1a0c8bff2f1c9f9092e89a6d50c1bf7ec7db8d | c72aa2aed9ca8ed2a9d20172a2a2c681f544c8ab | refs/heads/master | 2021-03-15T10:41:53.185751 | 2020-03-12T13:51:46 | 2020-03-12T13:51:46 | 246,844,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | sentence = "I'm hungry!"
sentence_shout = sentence.upper()
print(sentence_shout) | [
"Bing_Violet@hotmail.com"
] | Bing_Violet@hotmail.com |
6171becb207e276db36bc6653ed1900ae7e3400d | a5424e248051f1cf2542aa82f040f7173aa8f8d8 | /ExamenUII.2/ExamenU22/Examen/admin.py | 6f540ae7584dda48774c6e956324debaa0392758 | [] | no_license | luisfbarajas/PWeb | dd23a744357e5b961b3a1c23756bf60cc6741b08 | e514d0f5710e33c718de8e27a06321643a271e17 | refs/heads/master | 2020-03-28T07:11:33.107934 | 2018-12-06T07:56:17 | 2018-12-06T07:56:17 | 147,886,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.contrib import admin
from .models import Personal, Activities
# Register your models here.
admin.site.register(Personal)
admin.site.register(Activities) | [
"luisf.barajas.btz@gamil.com"
] | luisf.barajas.btz@gamil.com |
a6bec2e6e27892e9e71ddf65399e880ac78e4293 | f00ad57c98e554470a72511dda7a7bfd160aca19 | /linear_structure/stack/infix_expression_ui.py | 5a43f72bf018cb2935ef1500165bb647398f3437 | [] | no_license | fanzhangg/algorithm-problems | d60115210aaaffcd094b34b9db5b46dadf93fe9e | 43b111ad625f197ba0905abceab9ee4484284e08 | refs/heads/master | 2021-07-12T20:24:46.265700 | 2020-07-06T17:58:31 | 2020-07-06T17:58:31 | 171,220,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from infix_expression import *
def eval_infix_input():
while True:
infix = input(">>>")
if not infix:
print("Session ended. Thanks for using!")
break
try:
postfix = infix_to_postfix(infix)
answer = eval_postfix(postfix)
if int(ans... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
eb640e26c331adf4b564538d8301b8d9647bf62b | eb1292224689b4d792ce4f3b51a3af539be710d8 | /blog/views.py | 19d1328fddb9027dc7d6b102c19386301a84bf42 | [] | no_license | esmeraldalopez/first-django-blog | 0eab2d6107508a68694d86171a8ccde6fcb93fe3 | e5f0b4588e9ead77cd10ae0293315bbb06355d56 | refs/heads/master | 2021-01-24T01:21:17.750872 | 2019-06-15T23:35:29 | 2019-06-15T23:35:29 | 122,801,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post #incluyo el modelo definido en models, .models indica que buscara en el mismo directorio
from .forms import PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.fil... | [
"esmeralda.lopez.e@gmail.com"
] | esmeralda.lopez.e@gmail.com |
cf3c79f12e13974f1a2fc914f299f7f6b79b0301 | 49692b22e38afe5fc6cf7144cd830e11a9a43d47 | /cse101/asgn4/random_generator.py | 7d6633063b576641eb97f343be08a0df60dec5bf | [] | no_license | juliofuentesUI/cse | 1b0080cabe8301c3149d9b0ab498f17a7ca7a7e8 | 4e86df10ee9c23bdfeeafb61106d664aa0d136ff | refs/heads/main | 2023-08-21T19:27:03.697081 | 2021-10-04T07:09:44 | 2021-10-04T07:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import random
actors = []
with open("cleaned_movielist.txt", 'r') as movie_list:
for line, cast in enumerate(movie_list.readlines()):
actor_list=cast.split()
for i in range(1,len(actor_list)):
actors.append(actor_list[i])
with open("random.txt",'w') as output:
for i in range(0,10):... | [
"zliu259@ussc.edu"
] | zliu259@ussc.edu |
7ed072fa1524c95c0ada3f899e91a7dcbcfd91de | 9897061cfd34babf80616ff21a20c30db0212970 | /server/account/models.py | a01557b1bd74e7b11b8ff7b13401a7a631636ebe | [
"MIT"
] | permissive | Samhaina/mahjong-portal | f310553c5df13e122f3e89d05a9867d0f122d4f1 | 4cdbd8bd61655584c25a437b3d5cab053507b2f4 | refs/heads/master | 2020-03-16T22:10:20.864718 | 2018-10-11T00:45:22 | 2018-10-11T00:45:22 | 133,029,373 | 0 | 0 | null | 2018-05-11T11:05:41 | 2018-05-11T11:05:41 | null | UTF-8 | Python | false | false | 287 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from tournament.models import Tournament
class User(AbstractUser):
is_tournament_manager = models.BooleanField(default=False)
managed_tournaments = models.ManyToManyField(Tournament, blank=True)
| [
"lisikhin@gmail.com"
] | lisikhin@gmail.com |
eb9232dcd2be9ba8cbd5bd42e4ba39ef045ea84e | babaa02f2c866c20d9753193a7c3193c149fd09f | /12month_report/report/__init__.py | 1982030fa17f97418fa32dfb22dc26a17de0fb2f | [] | no_license | solbutec/kmart | 5a03a4743bc8e935669e4aadea732d402dd59867 | b73316e6c0ce79bbc463d7198f5c9fe181f70531 | refs/heads/master | 2022-12-05T19:19:29.393040 | 2020-08-24T13:50:14 | 2020-08-24T13:50:14 | 290,629,983 | 0 | 1 | null | 2020-08-26T23:55:19 | 2020-08-26T23:55:18 | null | UTF-8 | Python | false | false | 50 | py | # -*- coding: utf-8 -*-
from . import twelvemonth
| [
"kyawzinoo@asiamatrixsoftware.com"
] | kyawzinoo@asiamatrixsoftware.com |
aedb32df31a1c5530d48f12e8a44775169b392d2 | 9d9e6e909e3f94ca62eef648c9e0b43473fa132e | /anagrams.py | 495d404764901a8b900808bf62c07565468dba8e | [] | no_license | Adi1729/Coding_100 | a73fe21344c5da42cd72a829018fdf593299e4b9 | 61bd8838b1c989b0199d486f0a7269f8386ae924 | refs/heads/master | 2021-06-29T04:28:05.570383 | 2020-08-28T07:30:48 | 2020-08-28T07:30:48 | 142,202,161 | 0 | 0 | null | 2018-08-01T08:40:46 | 2018-07-24T19:10:38 | Python | UTF-8 | Python | false | false | 1,107 | py | s= 'cbaebabacd'
a = 'abc'
s="ababababab"
a="aab"
a ='acb'
q= [i for i in a]
q.sort()
a = ''.join(q)
a_orig =a
b= 'b'
l=[]
i=0
i=1
pcounter = collections.Counter(a)
scounter = collections.Counter(s[:len(a)])
for i in range(0,len(s)-len(a)+1):
scounter = collections.Counter(s[i:len(a)+i])
if pcounter==scounter... | [
"adiyadav.1729@gmail.com"
] | adiyadav.1729@gmail.com |
2edffd3663b2abd45fd38a442dd7b5736f510500 | 03dd72639c7a39ef7cf17d0dc7fa4276cd47c93a | /tipranksCloudlet/data_processor.py | 6e14cdc88570cf04b705e04470bfc9af686b3af2 | [] | permissive | karthiknayak02/portfolioManager | dbc7554ded3cdb9489d43c9329c677e54f745c1f | fc3c335778c78535b8e263e7a62a5e2d7a1ec7c9 | refs/heads/master | 2023-08-10T16:06:51.810322 | 2021-10-03T21:38:09 | 2021-10-03T21:38:09 | 351,266,417 | 0 | 0 | MIT | 2021-10-03T20:29:40 | 2021-03-25T00:53:15 | Python | UTF-8 | Python | false | false | 1,797 | py | from common import *
"""
Get price targets of symbol
https://www.tipranks.com/api/stocks/getData/?name=NET
"""
def get_price_targets_consensus(symbol: str):
request_url = "https://www.tipranks.com/api/stocks/getData/"
query_params = {'name': symbol}
response = get_call(request_url=request_url, query_para... | [
"nayakkarthik02@gmail.com"
] | nayakkarthik02@gmail.com |
9c60554c705a99f445f4cd9a478d7136f409ae20 | 3574de071eb81b32ec1b2ef1edd8affc1b728e24 | /lesson/ftp_client.py | abd63fe1e62360076d922e7235204494601b03cf | [] | no_license | dpochernin/Homework_6 | 54376cfed1ae5fe4d3cdd3b114a0c7e5b7707f6c | 502ee83b01cff38c0fdfbe11ae9f059758b4403d | refs/heads/master | 2020-08-24T12:13:22.438742 | 2019-10-22T13:41:55 | 2019-10-22T13:41:55 | 216,823,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from ftplib import FTP
with FTP(host='127.0.0.1', user='user', passwd='12345') as ftp:
print(ftp.retrlines('LIST'))
out = '..\\files_for_test\\index.png'
with open(out, 'wb') as f:
ftp.retrbinary('RETR index.png', f.write)
path = '..\\files_for_test\\firm.txt'
with open(path, 'rb') as file... | [
"d.pochernin@gmail.com"
] | d.pochernin@gmail.com |
d8d67f00d13100bc57dbb65f9bea4894dce778a7 | c6a51702a01c341c41a0d9df54f6106111a6cac5 | /part1/train.py | 9212f4f41bdeb5c47f86caf4f51a450eb7f80085 | [] | no_license | eacamilla/assignment_2 | 3b5ac15cd2654827783ece73875580b9e0c90676 | ce4b310075193fcea24f9f364a0821d7f29c1c76 | refs/heads/master | 2020-09-14T18:01:35.188856 | 2019-11-21T15:42:44 | 2019-11-21T15:42:44 | 223,207,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | ################################################################################
# MIT License
#
# Copyright (c) 2019
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, ... | [
"eacamillawerner@gmail.com"
] | eacamillawerner@gmail.com |
9aa7d125ff93dd331e5aade2f70114255f9f0ff6 | e9a2b904da10ec9f38fb2a36093e8e84bf902d9d | /_400/manage.py | f735a2a142b938431f35228cdbfeea4eb9b258b0 | [] | no_license | fhim50/jobsearchengine | 8d848bc84078a1836599eca50a2c7a5a2304814e | c7aae927542fc0749539de417d716cd32d06d75f | refs/heads/master | 2020-06-03T20:43:55.524245 | 2013-01-22T08:27:31 | 2013-01-22T08:27:31 | 7,016,723 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "_400.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"kwaw@kwaw-HP-625.(none)"
] | kwaw@kwaw-HP-625.(none) |
b632eb9d3117a1f0ed7b1f8d42128ff804ab6e39 | e5b4bead66f3f560bb77221e41e57057c52894e0 | /PYTHON/derivative.py | 1c01571d62ada2f1e4354fbb4a45322d870909e9 | [] | no_license | lafionium/DMI | ce45f40a88ba52180b86daac1abedb4c54200209 | ea81832c69c3531466a4db8eb9289a02e45c54a4 | refs/heads/master | 2021-05-16T06:52:43.741331 | 2018-01-13T15:50:09 | 2018-01-13T15:50:09 | 103,494,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | ## -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
def mans_sinuss(x):
k = 0
a = (-1)**0*x**1/(1)
S = a
while k<= 500:
k = k + 1
R = (-1) * x**2 /(2*k*(2*k+1))
a = a * R
S = S + a
return S
a = 0
b = 3 * np.pi
x = np.arange(a,b,0.05)
y... | [
"jelizavetak@inbox.lv"
] | jelizavetak@inbox.lv |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.