blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97463545ddff2a48e01f278692300f45fc2c3acb | f61e88315c7e83e4f9ab430fc7e8db6fc964fccd | /chapter4/lessons/plot_multiple_function.py | ec2e349f946ddadd1e4997746be8ab46a55aed28 | [] | no_license | KentFujii/doing_math | 6a08fbe892ee1045cc75fe02c9c75307463d1f65 | baa84e8b37e45802c2c4fcd4300b915725f3a34a | refs/heads/master | 2021-01-19T05:53:37.948603 | 2016-07-10T11:07:57 | 2016-07-10T11:07:57 | 61,952,634 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # from sympy.plotting import plot
# from sympy import Symbol
# x = Symbol('x')
# plot(2*x+3, 3*x+1)
from sympy.plotting import plot
from sympy import Symbol
x = Symbol('x')
p = plot(2*x+3, 3*x+1, legend=True, show=False)
p[0].line_color = 'b'
p[1].line_color = 'r'
p.show()
| [
"kent.where.the.light.is@gmail.com"
] | kent.where.the.light.is@gmail.com |
84f15ba18a56d28a2f932f51a09526125c3bd6cc | 04830e72ec246706a943aeea7ac5e45a705f4c3e | /haddScript.py | 30a29313adf8f3b073a96c702e2830be6e1fc82b | [] | no_license | dmajumder/X_YH_4b | e72a8ef0351860550e955b62756297a51754108a | ad98a38af012cf8beaf8b2532753b2873f40fbbf | refs/heads/master | 2023-02-02T08:24:40.521990 | 2020-12-22T13:19:40 | 2020-12-22T13:19:40 | 272,053,599 | 0 | 0 | null | 2020-06-13T17:18:12 | 2020-06-13T17:18:11 | null | UTF-8 | Python | false | false | 166 | py | import os
directories=[d for d in os.listdir(os.getcwd()) if os.path.isdir(d)]
for d in directories:
cmd = "hadd -f {0}.root {0}/*root".format(d)
print(cmd)
| [
"matej.roguljic@cern.ch"
] | matej.roguljic@cern.ch |
79270ecfc3449f0f37b2c5ef62acac1dda9275cf | ee51d2ca3ff763aa29e1d105ce817ad926960948 | /code_samples/tsp.py | 8e3cc0b8a7e00f625b3e73ad951433c84adfa80d | [] | no_license | robmfulton/travelingCA | 9ca9082eefd9e1125ce5ea80ecf5d12942bbfa45 | 59b5838ba63cddf23d2f875f284c2ea0e779f6ac | refs/heads/master | 2021-01-01T17:08:12.762172 | 2017-07-20T06:56:59 | 2017-07-20T06:56:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import random, numpy, math, copy, matplotlib.pyplot as plt
cities = [random.sample(range(18), 2) for x in range(15)];
tour = random.sample(range(15), 15);
for temperature in numpy.logspace(0, 5, num=1)[::-1]:
[i, j] = sorted(random.sample(range(15), 2));
newTour = tour[:i] + tour[j:j + 1] + tour[i + 1:j]... | [
"chrisfulton@Chriss-MacBook.local"
] | chrisfulton@Chriss-MacBook.local |
1649e8979efe95fc57fba8536d507cc3fe6de5dc | 0d1c96738f67b63b3e05659f71e995fd26306432 | /Linked List/linkedList1.py | c2f120b561650836528dc7685e67297cbef0b679 | [] | no_license | taufikfathurahman/DS_python | b7364e22bd92faeeb39034c4141c9e39e0e05730 | 2142c2d5554823c2cd7a5dbf11f1cf0a2432252b | refs/heads/master | 2020-04-27T23:31:32.694292 | 2019-03-10T04:52:23 | 2019-03-10T04:52:23 | 174,779,310 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | # Node class
class Node:
# Function to initialise the node object
def __init__(self, data):
self.data = data # Assign data
self.next = None # Initialize next as null
class LinkedList:
# Function to initialize head
def __init__(self):
self.head = None
# This function prints content of linked list
# start... | [
"taufikfathu23@gmail.com"
] | taufikfathu23@gmail.com |
727c6dd5a9d6d63154d4df935778852dc73c00fa | c590571d129ead00bd1916025f854a1719d75683 | /zvt/recorders/joinquant/meta/china_stock_meta_recorder.py | fa4a0c4364dd713ab0f74d8b7829a1b6f86f10ac | [
"MIT"
] | permissive | ming123jew/zvt | f2fb8e157951e9440a6decd5ae0c08ea227a39db | de66a48ad2a3ac2c3fb22b9ea17a85f28e95cc62 | refs/heads/master | 2023-05-28T15:00:52.015084 | 2021-06-13T12:56:18 | 2021-06-13T12:56:18 | 570,070,597 | 1 | 0 | MIT | 2022-11-24T09:16:48 | 2022-11-24T09:16:47 | null | UTF-8 | Python | false | false | 5,733 | py | # -*- coding: utf-8 -*-
import pandas as pd
from jqdatapy.api import get_all_securities, run_query
from zvt.api.quote import china_stock_code_to_id, portfolio_relate_stock
from zvt.contract.api import df_to_db, get_entity_exchange, get_entity_code
from zvt.contract.recorder import Recorder, TimeSeriesDataRecorder
from... | [
"5533061@qq.com"
] | 5533061@qq.com |
da4e65994020ecec1aae6923a1bd83b3951032e3 | a90ba084b85683f4c52d0e638cfb6108207ced38 | /896.py | 91ca187efe65342ba1e072994842f422f065f605 | [] | no_license | JiayuZhai/leetcode_python3 | 4a9260d00a52cde9ec37e6292e64d04161e66111 | 5755c3edd6d949af18d0247d2103379510dfab85 | refs/heads/master | 2020-04-02T21:22:42.270736 | 2019-03-29T23:28:48 | 2019-03-29T23:28:48 | 154,796,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | class Solution:
def isMonotonic(self, A: List[int]) -> bool:
sortA = sorted(A)
return (A == sortA or list(reversed(A)) == sortA)
| [
"zhaijiayu2013@gmail.com"
] | zhaijiayu2013@gmail.com |
9fb65cbe5866bdf6450aa3d7936e9a4b8ee7a0f7 | ef8ac4dfb73d346a8fe1b7fef18d9a61cc91269c | /algo/sim_anneal/SABase.py | d6a50d2e4fc187e57efdb797db91f211c0ecb710 | [] | no_license | smarttransit-ai/EnergyOptCode-AAAI | 4302ca3ed009b5cecd8139f26e5c653c134e1d1e | 8964dbbde64b2cb9979b5d43223c482da6aca801 | refs/heads/master | 2023-06-08T20:51:28.132956 | 2021-07-06T20:54:51 | 2021-07-06T20:54:51 | 294,603,988 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | import math
import random
from algo.common.types import AssignUtilConfig
from algo.common.util import nearest_neighbour
from algo.greedy.GreedyBase import greedy_assign
from common.configs.global_constants import summary_directory
from common.util.common_util import s_print, create_dir
from common.writer.FileWriter im... | [
"asivagnanam@uh.edu"
] | asivagnanam@uh.edu |
f264cc280e130b88e79446f5aed42501f03d37b9 | 72978a95cc5cedf2cb9e2ba96effa77ced565296 | /zamg/app/app.py | ab4e8b11a1bb286ece7b04f138494986e7fbadb5 | [] | no_license | vadeanu/ULG-PROJEKT-ZAMG | b418b4b0df20801f6f60fa7bc6790f29a8e16a37 | 0f4823da8ed2989f02c985d0740a1bd7e6b40c5b | refs/heads/master | 2022-12-22T21:11:53.098494 | 2020-09-25T16:12:30 | 2020-09-25T16:12:30 | 275,172,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,265 | py | from typing import List, Dict
from flask import Flask
import logging
from flask_mysqldb import MySQL
from crawler import Crawler
from xmlparser import XmlParser
app = Flask(__name__)
logging.basicConfig(level=logging.INFO)
app.config['MYSQL_HOST'] = 'mysql_database'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL... | [
"vadeanu@gmx.at"
] | vadeanu@gmx.at |
aaebcd30e1283732990421e052eb0d5cecb7a098 | f2abbeb892780b584feb2fd94e7ec5da8ecdc763 | /exporter/opentelemetry-exporter-otlp-proto-http/setup.py | 510eceba6c5abfb14c1de8ec0b03b368df4c4f0c | [
"Apache-2.0"
] | permissive | SigNoz/opentelemetry-python | 6fa5fd92584d2fb3ca71c958004cd56332c764a7 | 9e397c895797891b709a9f1c68345e9a1c357ad8 | refs/heads/main | 2023-07-15T10:43:17.064286 | 2021-09-02T12:25:18 | 2021-09-02T12:25:18 | 401,617,913 | 1 | 0 | Apache-2.0 | 2021-08-31T07:49:24 | 2021-08-31T07:49:24 | null | UTF-8 | Python | false | false | 943 | py | # Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | noreply@github.com |
58787a0990221af1de4438a921cad4f347ef9aae | 9b9367781065c789868f65e43342f5bc3ecf1c57 | /utils/solver.py | ddea201cafd17b4cac3738b92ac34c7480471c97 | [] | no_license | sbleblanc/pgm_project | 2e91983047a93add6bb17d1355277d6b35645543 | 272532a90f144fbd485d4608d07aeb5765665da2 | refs/heads/master | 2020-04-04T03:48:37.952140 | 2018-12-20T04:01:14 | 2018-12-20T04:01:14 | 155,726,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import numpy as np
@np.vectorize
def inverse_solver(f, y, a, b, tol=1e-5):
"""
return x s.t. f(x) = y
this solver assume that f is monotonically increasing inside [a, b] and that x is in [a, b].
It will do dichotomic search until it find x s.t. |f(x) - y| <= tol
"""
x = (a+b)/2
_y = f(x)
... | [
"duchesneau.mathieu@gmail.com"
] | duchesneau.mathieu@gmail.com |
90a5ad57cf62d7082f693f949d412f2d773b647a | 844c7f8fb8d6bfab912583c71b93695167c59764 | /fixação/Seção06/51-60/Sec06Ex51v2.py | 35580169e28f8bc9bc58b28718531dd96aa9d948 | [
"Apache-2.0"
] | permissive | gugajung/guppe | 2be10656cd9aa33be6afb8e86f20df82662bcc59 | a0ee7b85e8687e8fb8243fbb509119a94bc6460f | refs/heads/main | 2023-05-28T08:08:24.963356 | 2021-06-07T16:56:11 | 2021-06-07T16:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from datetime import date
anoAtual = 1995
salarioAtual = 2000
percentAumento = 1.5
dataAtual = date.today()
anoReal = dataAtual.year
while anoAtual <= anoReal:
salarioAtual = salarioAtual + ((salarioAtual*percentAumento)/100)
print("----------------------------------------")
print(" --- debug")
print(... | [
"luiz.carlin@gmail.com"
] | luiz.carlin@gmail.com |
ae535fe72253b6c574f7196c75a3b64e003c3ea3 | ccb6918eff9624bc890c4318462b3d04fe01ab25 | /d02/for/for/settings.py | 763917cea83d3de15fae9c387027213bdac3fd6e | [] | no_license | shchliu/19django | 431202f3b4a71fb2614f3f113174df327a338413 | 63af6aeff279a83fb170c1b5385d0804d96fafad | refs/heads/master | 2020-08-15T08:53:36.707823 | 2019-10-16T08:26:41 | 2019-10-16T08:28:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for for project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Build... | [
"1124874942@qq.com"
] | 1124874942@qq.com |
4f6a6b2e849a7f5c1d5613269719a4be0e1c765b | 9ec9e6b4a52ff4eca2af1285653faea3ba568439 | /3_feature_TFIDF_GI.py | 8485f986aea8d95cc809e315c85cfcd1d68323fa | [] | no_license | Chihyuuu/News-Stance-Detection | eaf34404c42faec432774a4cc11aeab291e7c934 | 3548db5557c373200a9382890d1de2d4ae39fb0f | refs/heads/master | 2023-03-03T20:13:38.367058 | 2021-02-09T09:45:44 | 2021-02-09T09:45:44 | 337,347,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,076 | py | import pandas as pd
import json
from sklearn.feature_extraction import DictVectorizer
# from sklearn.naive_bayes import MultinomialNB
# from sklearn.naive_bayes import GaussianNB
# from sklearn.tree import DecisionTreeClassifier
# from sklearn.ensemble import RandomForestClassifier
# from sklearn.linear_model import Lo... | [
"winnie86128@gmail.com"
] | winnie86128@gmail.com |
4f3a8886eb59966fc5887dccc5604e3f38aad5d6 | 89e21b0c761d450ef8381bc4575e16d29244fb79 | /rr.py | 70882a541779763715acdbdd1f495fc1d98a7fe4 | [] | no_license | BnkColon/operating-systems | 0669b2368cc98b363fdaaf1fd67e134ecdcce7d6 | bf3b60f96f37e727e576e339520659ba5e7f8edd | refs/heads/master | 2021-01-18T07:30:17.331414 | 2016-10-07T15:31:21 | 2016-10-07T15:31:21 | 68,657,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,584 | py | # Bianca I. Colon Rosado
# $ python rr.py quanta input.txt
from string import *
from sys import argv
class Process:
"""docstring for Process"""
def __init__(self, pid, ptime):
self.id = pid # Take the ID of that instance
self.time = int(ptime) # Take the time of that instance
self.qConsumption = 0 # Initi... | [
"noreply@github.com"
] | noreply@github.com |
34d5caf6ffdd22eaa6b316c1cc63b54cb3cd702a | d6c718a6738edcdd2b54502c8a4a0896500a51bb | /Day-06/有效互动比函数化.py | bd66eeebc2a51a36dae32eb3e6e566de216394c8 | [] | no_license | ChangxingJiang/Python-DM-Homework-W1-W3 | f895cf0fa7a2eb10df7f6693b47a02a2e107f122 | 5fd118a974ce37fb88dedd18581bf2f4b2d5a71a | refs/heads/master | 2022-09-21T18:56:13.775894 | 2020-05-25T21:55:24 | 2020-05-25T21:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | def ratio(a,b):
return a/b
num1 = int(input("请输入粉丝量:"))
num2 = int(input("请输入互动量:"))
print(ratio(num2,num1)) | [
"798881546@qq.com"
] | 798881546@qq.com |
8a6da7cba87dcb36e8601794d88de49835fd7a3b | 151359bf8f14964849a313585dcaee3698a4b6b7 | /bin/painter.py | 3771af86ba457bce640a01094b034b01566e2de0 | [] | no_license | deepak9807/blog-api | 28b3c41cea76a04eeb0c395fc1d5c96bee58396f | 11669ead6fdb2e1c10a3c98314a3605d6bf9318d | refs/heads/master | 2021-09-09T17:35:56.575272 | 2018-03-18T13:03:14 | 2018-03-18T13:03:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | #!/home/deepak/blog-api/bin/python
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates pasting into an already displayed
# photoimage. note that the current version of Tk updates the whole
# image every time we paste, so to get decent performance, we split
# the image into a set of tiles.
#
try:
... | [
"deepakchaube01@gmail.com"
] | deepakchaube01@gmail.com |
35c9dd19ef1d0bbdfd5644a92542771a5c6fbf58 | 10659041996f62d28cebf9ba92dcad2d6d5ecb26 | /factors of cofficent in counting.py | 02e97f638b7ca1550ec438f04c2c5d2c91a83ad3 | [] | no_license | shailajaBegari/loops | 4e92d04ee55d0564de417b7b126d4b77dc5a8816 | 173d5a2b6c3a921efe5a38e2d763dd59759b05c4 | refs/heads/main | 2023-07-13T23:37:39.642374 | 2021-08-28T10:48:31 | 2021-08-28T10:48:31 | 400,764,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | n=int(input('enter number'))
i=1
fact=1
count=0
while i<=n:
if n%i==0:
print(i)
count=count+1
i=i+1
print(count,'count') | [
"noreply@github.com"
] | noreply@github.com |
d3e7e9dae606fe6dc77d9c43997e9c592fbcd477 | 982bc95ab762829c8b6913e44504415cdd77241a | /account_easy_reconcile/base_reconciliation.py | b50c06b9eed699d96da272f0fb9dd9613177c235 | [] | no_license | smart-solution/natuurpunt-finance | 6b9eb65be96a4e3261ce46d7f0c31de3589e1e0d | 6eeb48468792e09d46d61b89499467a44d67bc79 | refs/heads/master | 2021-01-23T14:42:05.017263 | 2020-11-03T15:56:35 | 2020-11-03T15:56:35 | 39,186,046 | 0 | 1 | null | 2020-11-03T15:56:37 | 2015-07-16T08:36:54 | Python | UTF-8 | Python | false | false | 7,776 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright 2012-2013 Camptocamp SA (Guewen Baconnier)
# Copyright (C) 2010 Sébastien Beau
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affer... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
8a9fcc67b691b3c5273bc8cc75d7b4a59213702e | f44e38367d40b25731b41f13d910e045c5db99b1 | /chapter_1/lesson6_step11_exception.py | c8cf3da310c6dce65b02d216f95d51828fdf1ceb | [] | no_license | RolandMiles/Stepik_AutoTest | 5371512273ed10246c86d541cfb6138a8a4a7e03 | 5b14fed6727a7e9203ce87a0288979ce448e0235 | refs/heads/master | 2023-09-03T18:44:31.329606 | 2021-10-21T14:57:16 | 2021-10-21T14:57:16 | 418,937,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | from selenium import webdriver
import time
try:
# Ссылка на регистрацию для успешного выполнения теста
#link = "http://suninjuly.github.io/registration1.html"
# Ссылка на регистрацию для неудачного выполнения теста
link = "http://suninjuly.github.io/registration2.html"
browser = webdriver.Chrome(... | [
"yurov.xander@gmail.com"
] | yurov.xander@gmail.com |
48adf0f1a1b7debec79d8fb62842ecd8bd20ea86 | 0f7cf87c862ddcceb31bf794537511b386091186 | /2주차/2020-12-31/이상민/[구현]주방장 도도새.py | b8d8936f992ae5082256adfd42a320bda16d8590 | [] | no_license | moey920/Algorithm-study | 5e638dff89a3ca285cec9e831ba67f714dd1426c | 6446b084a26bf244b9b4e7df518fe04f065c15b6 | refs/heads/master | 2023-04-13T02:26:45.069562 | 2021-04-29T16:16:28 | 2021-04-29T16:16:28 | 362,867,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | """
[구현]주방장 도도새
3줄 요약
길이가 N인 리스트를 순차적으로 탐색.
리스트의 값을 더해가며, 총 주문 처리 시간 > 근무시간이 되면, 주문을 더이상 받지 않는다.
주문 처리가 가능하다면, cnt 값을 늘려가며 처리 개수를 센다.
"""
N, T = map(int, input().split())
orders = input().split()
total = 0
cnt = 0
for order in orders:
total += int(order)
if total >= T:
break
cnt += 1
print(cnt) | [
"sain0722@naver.com"
] | sain0722@naver.com |
e4bf523aeb5149a8f31982fba1698b25c824cee4 | 0f2800d26eb3f0fefc026576e3468e748695f957 | /Python/problem_set02_solutions/7.py | bc6567127eab96fb4b7b33614270ffff8be050ff | [] | no_license | selvin-joseph18/GraduateTrainingProgram2019 | 7410caeb3ae6cc12118a12da64c07443405a2572 | 2634e16e6035c345723274f45dc1b86991ee5514 | refs/heads/master | 2020-07-07T04:22:55.745882 | 2019-10-11T13:26:49 | 2019-10-11T13:26:49 | 203,248,365 | 0 | 0 | null | 2019-08-19T20:50:28 | 2019-08-19T20:50:28 | null | UTF-8 | Python | false | false | 937 | py | '''A palindrome is a word that is spelled the same backward and forward, like "Malayalam" and "Noon" .
Recursively, a word is a palindrome if the first and last letters are the same and the middle is a palindrome.
Write a function called is_palindrome that takes a string argument and returns True if it is a palindrome ... | [
"selvinjoseph.joseph55@gmail.com"
] | selvinjoseph.joseph55@gmail.com |
a0e264d5e2ba260f7857655633539fe991807ccb | 99e4d9226e124215aaf66945cfaa5c42d18cc19f | /typings/aiohttp/helpers.pyi | 27b377a309d31a7788ba093977ec22ca796c313b | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | mathieucaroff/oxowlbot | d826423a1a4cca8a38c90383d0a71dbb40052f35 | a10c12b7c94b3e7030cef2f57c567bbd3034c8c9 | refs/heads/master | 2022-04-18T14:06:29.049957 | 2020-04-22T14:44:57 | 2020-04-22T14:44:57 | 255,177,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,994 | pyi | """
This type stub file was generated by pyright.
"""
import asyncio
import datetime
import functools
import netrc
import os
import re
import sys
import async_timeout
import attr
from collections import namedtuple
from types import TracebackType
from typing import Any, Callable, Dict, Iterable, Iterator... | [
"mathieu.caroff@free.fr"
] | mathieu.caroff@free.fr |
ac2cbb0b731b97e581da7a9f035b4ce7209d5dbf | f08336ac8b6f8040f6b2d85d0619d1a9923c9bdf | /223-rectangleArea.py | b77b9c32e8858d4b5b81adab6076c7a69ecfadeb | [] | no_license | MarshalLeeeeee/myLeetCodes | fafadcc35eef44f431a008c1be42b1188e7dd852 | 80e78b153ad2bdfb52070ba75b166a4237847d75 | refs/heads/master | 2020-04-08T16:07:47.943755 | 2019-02-21T01:43:16 | 2019-02-21T01:43:16 | 159,505,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | '''
223.Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane.
Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.
Example:
Input: A = -3, B = 0, C = 3, D = 4, E = 0, F = -1, G = 9, H = 2
Output: 45
Note:
Assume that the total area is neve... | [
"marshallee413lmc@sina.com"
] | marshallee413lmc@sina.com |
5575a34bb47b7f44bc2177357c0b7f8fb5fef18c | 6260fd806b3bf82a601c86c8a903b49c983d9dda | /w3resource/7.py | 03955a8d513c09e32bafc6d84f5fc6e5dfef3e0a | [] | no_license | skybohannon/python | 6162077e4f18d0ed273d47c342620942e531031b | b78ac8ff1758826d9dd9c969096fb1f10783a4be | refs/heads/master | 2021-09-05T07:09:23.844665 | 2018-01-25T02:58:59 | 2018-01-25T02:58:59 | 106,215,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # 7. Write a Python program to accept a filename from the user and print the extension of that. Go to the editor
# Sample filename : abc.java
# Output : java
user_file = input("Please enter a filename: ")
user_ext = user_file.split(".")
print("The file extension is .{}".format(repr(user_ext[-1]))) | [
"skybohannon@gmail.com"
] | skybohannon@gmail.com |
21f2f4e1b507c77f7803e4fdea9993120f580e01 | 987b53acb2c189d574a6d724cbb5be563616efca | /BaseTypes/master.py | f57c70992c1b031141efd48df70e77b771a461f6 | [] | no_license | ofekzaza/DistributedComputingProject | 7e288a0db2df18a574486e947493edd901777257 | 2c595f175c86846886d88ba0cd6cccb97d44d9f5 | refs/heads/master | 2020-03-17T06:58:18.709295 | 2018-07-09T13:40:54 | 2018-07-09T13:40:54 | 133,376,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py | import communicator
class Master:
coms: [communicator.Communicator]
workersIds = []
workersPort = {}
workersMission = []
id: int = 'master'
typ: str = "worker"
state: int = 1 #state machine: 1 - getting information, 2 - proccesing and sending results
returnTarget: str = -1 #defult
m... | [
"ofekeshet@gmail.com"
] | ofekeshet@gmail.com |
ce42ed7f15ab68df41c64c17c877f642173d66a2 | a7cca49626a3d7100e9ac5c2f343c351ecb76ac7 | /upydev/argcompleter.py | 3751c0a54657cd37a9a63de43d2f4f77ad8882e7 | [
"MIT"
] | permissive | Carglglz/upydev | 104455d77d64300074bda54d86bd791f19184975 | 529aa29f3e1acf8160383fe410b5659110dc96de | refs/heads/master | 2023-05-24T18:38:56.242500 | 2022-10-21T14:03:17 | 2022-10-21T14:03:17 | 199,335,165 | 49 | 9 | MIT | 2022-10-21T14:03:18 | 2019-07-28T20:42:00 | Python | UTF-8 | Python | false | false | 57,893 | py | import os
from upydev import __path__
UPYDEV_PATH = __path__[0]
# SHELL_CMD_PARSER
shell_commands = ['cd', 'mkdir', 'cat', 'head', 'rm', 'rmdir', 'pwd',
'run', 'mv']
custom_sh_cmd_kw = ['df', 'datetime', 'ifconfig', 'net',
'ap', 'mem', 'install', 'touch',
'exi... | [
"carlosgilglez@gmail.com"
] | carlosgilglez@gmail.com |
d69e9118afde5a31ab09c5f7e2be5a24a50ebb71 | de1bbf1dfe1ac5dfa6e0ced4d58dba856b528eb8 | /AnemoNLP/App/MLBot/django_app/example_app/urls.py | 47d06a23948884cfadced3c9105f270e0a9de48a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | tonythefreedom/anemonlp | 749b7683a5f97f5c121b399273ad04714c1d9a24 | 01d90b6fcd8ef47a729db26ed93b7ef0724c5e57 | refs/heads/master | 2021-09-03T22:56:37.446413 | 2018-01-12T17:19:35 | 2018-01-12T17:19:35 | 110,652,575 | 9 | 7 | Apache-2.0 | 2017-12-06T07:48:15 | 2017-11-14T06:55:45 | JavaScript | UTF-8 | Python | false | false | 398 | py | from django.conf.urls import include, url
from django.contrib import admin
from views import ChatterBotView
urlpatterns = [
url(r'^admin/', include(admin.site.urls), name='admin'),
url(r'^chatterbot', ChatterBotView.as_view(), name='main'),
url(r'^', include('learningdata_app.urls'), name = 'index'),
... | [
"tony@techmaru.com"
] | tony@techmaru.com |
91f4700c570703a70f381ca3bc0990abbefa67fc | 0ff0150c61bec1768db86f1b9f7ef82b8f743f28 | /EX45/mansion.py | af8eee14a4587e4d26d772dc802816e1aa23c190 | [] | no_license | VanessaTan/LPTHW | 31a330ba304d3736ca87ce7943d8efe1f2db74d2 | b615c1d65b483a5bf64d8a0ec5462a365e609134 | refs/heads/master | 2021-01-12T17:22:53.414654 | 2016-12-20T19:02:41 | 2016-12-20T19:02:41 | 71,553,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | class Scene(object):
def enter(self):
print "She found you..."
exit(1)
import mansionupstairs
class Mansion(Scene):
def __init__(self):
super(Mansion, self).__init__()
self.Mansion = Mansion
def insertnamehere(self):
print "You are scared. But you gather yo... | [
"Thilo@Neineis-MBP-2.localdomain"
] | Thilo@Neineis-MBP-2.localdomain |
0d4ab487c9de86cce3e199c7f5a4c2c87e57c607 | 2612f336d667a087823234daf946f09b40d8ca3d | /python/lib/Lib/site-packages/django/contrib/gis/tests/geoapp/models.py | 89027eedfbc919466ac7c1335c42dfb57aea547a | [
"Apache-2.0"
] | permissive | tnorbye/intellij-community | df7f181861fc5c551c02c73df3b00b70ab2dd589 | f01cf262fc196bf4dbb99e20cd937dee3705a7b6 | refs/heads/master | 2021-04-06T06:57:57.974599 | 2018-03-13T17:37:00 | 2018-03-13T17:37:00 | 125,079,130 | 2 | 0 | Apache-2.0 | 2018-03-13T16:09:41 | 2018-03-13T16:09:41 | null | UTF-8 | Python | false | false | 1,546 | py | from django.contrib.gis.db import models
from django.contrib.gis.tests.utils import mysql, spatialite
# MySQL spatial indices can't handle NULL geometries.
null_flag = not mysql
class Country(models.Model):
name = models.CharField(max_length=30)
mpoly = models.MultiPolygonField() # SRID, by default, is 4326
... | [
"dmitry.trofimov@jetbrains.com"
] | dmitry.trofimov@jetbrains.com |
4de4e2a2cfdc94c2aba40d277b6693606c8db41f | 06dca5ec0ac9cdcbc42171795c067300bebea24b | /tailieu_robot/robotframework-8f687798c2e7/robotframework-8f687798c2e7/src/robot/utils/misc.py | 8764659f1dbc2320c144787bd66c837e75d0f0f5 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | quangdt/plan_come_on_baby | 0a9dd76feceb1323c22c33586687accefb649392 | c26b0ea98b9649fc8d5c61865a2dfdc829324964 | refs/heads/master | 2021-01-18T13:54:19.176897 | 2015-09-22T01:40:33 | 2015-09-22T01:40:33 | 38,100,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | # Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# 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... | [
"quangyeuthuong@gmail.com"
] | quangyeuthuong@gmail.com |
0d4625fc88b54343cfaf9f307ef61c930b2c5183 | bdf5c2be642e6ff4e975c2b8419086dd0c9c3da0 | /Bible/Chapter/chap10_file.py | df6e28f2593732e2a5dad69c8fa38c0f2fd7c6ff | [] | no_license | miki1029/Python_Basic | d6b71b039cbbb3175405c921a5e7bc345aab6bf4 | 87bdf0fb3782ca9e977bea85d8f5de49c3463f9e | refs/heads/master | 2016-09-15T18:05:46.902721 | 2014-02-07T18:24:58 | 2014-02-07T18:24:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,116 | py | #===============================================================================
# 제 10 장 파일
#===============================================================================
#===============================================================================
# 10.1 텍스트 파일 쓰기/읽기
#===========================================... | [
"kmwkmw5@naver.com"
] | kmwkmw5@naver.com |
b6e187de710d37037dd7c0d830a50e7eaee1aa28 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/xcoff/XCoffSectionHeaderFlags.pyi | 43a745532a3157885655ec9c25a175e6ac3df2ec | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | pyi | import java.lang
class XCoffSectionHeaderFlags(object):
STYP_BSS: int = 128
STYP_DATA: int = 64
STYP_DEBUG: int = 8192
STYP_EXCEPT: int = 128
STYP_INFO: int = 512
STYP_LOADER: int = 4096
STYP_OVRFLO: int = 32768
STYP_PAD: int = 8
STYP_TEXT: int = 32
STYP_TYPCHK: int = 16384
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
84f43b493da4922aa43b8e092c662bce4e358e7d | 1ba59e2cf087fc270dd32b24ac1d76e4b309afcc | /config.py | 1b8fab6b06225fad9e290177b7e86c43413ce3c7 | [
"MIT"
] | permissive | yangtong1989/Deep-Residual-Matting | 2d96ce737b2b89859695e6f4f052c8984eba96bb | 24bd5342b862e447fb7f4dec7edebdd73221db18 | refs/heads/master | 2020-08-31T23:48:39.028571 | 2019-10-18T10:12:45 | 2019-10-18T10:12:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | import torch
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # sets device for model and PyTorch tensors
im_size = 320
unknown_code = 128
epsilon = 1e-6
epsilon_sqr = epsilon ** 2
num_classes = 256
num_samples = 43100
num_train = 34480
# num_samples - num_train_samples
num_valid = 8620
# Train... | [
"foamliu@yeah.net"
] | foamliu@yeah.net |
ce12e1820272157a94e5355d8d30e01944efb9e3 | 54c9cf64b65e24e13f40b323b360bd0907d5e2ac | /demo/flask/demo.py | 694bbb12dfae12bf4b6edcf80e1cd2a3dde1d5ee | [] | no_license | ghyang4024/smartcommunity | 72c18e66f3dba50adfbd51f00eb0fb976ee67b54 | fd6d04514e3b92d4e8fa87e46a8dcdb653e38c20 | refs/heads/master | 2022-01-26T03:01:39.743250 | 2019-12-18T07:03:28 | 2019-12-18T07:03:28 | 224,954,591 | 0 | 0 | null | 2022-01-15T05:52:07 | 2019-11-30T03:34:32 | null | UTF-8 | Python | false | false | 2,861 | py | from flask_sqlalchemy import SQLAlchemy
from flask import Flask, request, abort, jsonify
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+cymysql://root:yanghaa@127.0.0.1:3306/demo?charset=utf8'
# 设置每次请求结束后会自动提交数据库中的改动
app.config['SQLALCHEMY_COMMIT_ON_TEARDOWN'] = True
app.config['SQLALCHEMY_TRA... | [
"yanghaa@sina.com"
] | yanghaa@sina.com |
2b05aafb513ea6ad66865aaa00981d7ff30884e1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2733/40186/320060.py | 85feba17c1b35b4a3536d8fcea4725c382ec5d13 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | inp=input()
a=input()
if inp=='8 3' and a=='10 7 9 3 4 5 8 17':
print(10)
print(17)
print(9)
elif a=='5 27 1 3 4 2 8 17':
print(5)
print(27)
print(5)
elif a=='105 2 9 3 8 5 7 7':
print(2)
print(8)
print(9)
print(105)
print(7)
elif inp=='101011':
print(18552)
elif inp=='10... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b8f08c7a4562131149ca80b371a214d505d27b90 | c42a650e2e99d0b6e54c67f825a4d29ecb3f5e84 | /flask_pj/june/june/tasks/__init__.py | 1bd1b05543b8609588afebfad5b9fc9327442857 | [
"BSD-3-Clause"
] | permissive | suddle/my-project | 339424c0c44a68735cd35c472436c7335078e190 | 5f10e7e7c64fa2c6254eb81421a6b15cfc977dbd | refs/heads/master | 2021-05-09T14:07:01.648836 | 2018-08-12T08:05:35 | 2018-08-12T08:05:35 | 119,055,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | # flake8: noqa
from .mail import signup_mail, find_mail
| [
"35840369+suddle@users.noreply.github.com"
] | 35840369+suddle@users.noreply.github.com |
6c2e5f7e762cd2a559918fba98f5bc13373ff267 | b0ed869d682e487ccea18e0cf23321c14a32621d | /clientsApp/crons.py | 4073c91386fc4828df61f5cf7927fe546bb21138 | [] | no_license | Frc3211/AnyShip-Server | b8828d2bcf6ae9ed860a7290f6771e0cb43e87c0 | aa370060922f9f8282e6f6cc3c62d8776d41098e | refs/heads/master | 2021-03-27T19:03:45.478542 | 2015-09-14T08:10:41 | 2015-09-14T08:10:41 | 32,476,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from django_cron import CronJobBase, Schedule
from django.utils import timezone
from .models import *
class RegularDeliveryCron(CronJobBase):
#RUN_EVERY_MINS = 1
RUN_AT_TIMES = ['00:00']
schedule = Schedule(run_at_times=RUN_AT_TIMES)
code = 'regular_delivery_reset'
def do(self):
print "reset regular deliverie... | [
"Info@frc3211.com"
] | Info@frc3211.com |
155c892ea3c9cf4abb614bad7233d82bef6ecab8 | 050aa2b8a30ddf8b98fb92b077f21e6a2593f12b | /teacher_manage/urls.py | 257e80e670d956cadf09078d0fc331a38c2fb2ec | [] | no_license | 18055412883/team_info | cd0dcfca0f25c07e48341efa5c3d3276ae1fbd48 | dae9bba70c64aa90834f3791cfb7c99267b86f82 | refs/heads/master | 2023-03-22T23:17:54.401951 | 2021-03-21T05:26:55 | 2021-03-21T05:26:55 | 339,989,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py |
from . import views
from django.urls import path
urlpatterns =[
path('tch_edit/', views.tch_edit),
path('teacher_add/', views.teacher_add),
path('', views.tch_edit),
path('teacher_list/', views.tch_list),
path('teacher_delete/', views.tch_del),
path('teacher_draft/<str:account>/', views.... | [
"810618279@qq.com"
] | 810618279@qq.com |
91b4ad0eda79cc7ce097d9f53f2162e52e0d6760 | 242f9594cf03345e79965fd0c6eff9f5ed3042a9 | /chapter03 - Lists/exercise3.1_names.py | 3efdb0a91939458f6bc956ce41cf322f54b3d8ec | [] | no_license | Eqliphex/python-crash-course | f32c9cd864b89ac8d7b1ba0fe612a3a29081ed32 | 952ce3554129a37d0b6ff8a35757f3ddadc44895 | refs/heads/master | 2021-04-03T09:05:31.397913 | 2018-08-29T09:14:41 | 2018-08-29T09:14:41 | 124,416,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | names = ['Morten', 'Hendrik', 'oLgA']
print(names[0])
print(names[1])
print(names[2]) | [
"tbt_paddik@hotmail.com"
] | tbt_paddik@hotmail.com |
ababc65892593091f0d609f3a7ffab6cd76e7776 | 8d05bbf82987cad712d642433a9c70e934fce288 | /89_ListaComposto.py | cbcb2a68e45f3735261f50c071117b9e5b517786 | [] | no_license | Graziele-Rodrigues/100-exercicios-resolvidos-em-python | e84bcbf61820302951a2a1ce90bf95dd6ca6115c | 550cfb52ac4cc9728b6985965be5d30b0b77feaf | refs/heads/main | 2023-08-22T12:21:50.085543 | 2021-10-21T00:35:50 | 2021-10-21T00:35:50 | 419,531,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | ficha = list()
while True:
nome = input('Nome: ')
nota1 = float(input('Nota 1: '))
nota2 = float(input('Nota 2: '))
media = (nota1+nota2)/2
ficha.append([nome, [nota1, nota2], media])
resp = input('Quer continuar? [S/N] ')
if resp in 'Nn':
break
print('-='*30)
print(f'{"N°.":<4}{"No... | [
"c.graziele.rodrigues@gmail.com"
] | c.graziele.rodrigues@gmail.com |
3da2378512e4c221c9ae7c90e31546e534f57df2 | f16f33bfcc09a7b74960af05cea34651c72baf4b | /services/migrations/0004_service_action.py | c75ce96120c298b026ead347970c924be3f8874d | [] | no_license | buzillo/sale | 0ec90eaa37af5cc60c0ab7f9dde0bb02a4486838 | 304e93a5c4aedb3702165ea621981ea0f6db3899 | refs/heads/master | 2021-08-29T23:15:45.850176 | 2017-12-15T07:49:46 | 2017-12-15T07:49:46 | 111,283,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-16 17:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0003_service_photo'),
]
operations = [
migrations.AddField(
... | [
"buzillo@ya.ru"
] | buzillo@ya.ru |
d16b64f8695cc6c84f4d5603fce8acf2f90a4ceb | bff6ba0d61a3226a4d4a2b48e37cb2d8c9db7e73 | /child_python.py | b08cfb4eba4df2cfd1d93b121652a2df3004268c | [] | no_license | richoey/testrepo | bf4f14b2011fa3194e0c212fccc1a6ee04fd9264 | 6fea5e1bafccabdeab4dd739161ea0ed685b2d0e | refs/heads/main | 2023-03-30T09:09:20.798788 | 2021-04-08T05:29:42 | 2021-04-08T05:29:42 | 355,756,548 | 0 | 0 | null | 2021-04-08T05:29:42 | 2021-04-08T03:52:06 | Jupyter Notebook | UTF-8 | Python | false | false | 35 | py | print("New child python to merge")
| [
"noreply@github.com"
] | noreply@github.com |
3bacf127b039262cc40bb14e97fd4da50cac4c40 | 1c19db866110afddb04d2e9715b49909c7fbb3d4 | /tests/test_user_locale.py | 4635899202d226e926f9194aa81e0dcb4a0fc936 | [
"BSD-2-Clause"
] | permissive | shane-kerr/peeringdb | 505dd5087abe29c9d6013e81b5322d7259a97106 | 5f189631a4d60d3fde662743508784affc6fa22a | refs/heads/master | 2020-09-14T16:25:33.442466 | 2019-11-21T13:54:32 | 2019-11-21T13:54:32 | 223,183,848 | 0 | 0 | NOASSERTION | 2019-11-21T13:54:34 | 2019-11-21T13:44:59 | null | UTF-8 | Python | false | false | 2,541 | py | import pytest
import json
from django.test import Client, TestCase, RequestFactory
from django.contrib.auth.models import Group
import peeringdb_server.models as models
#from django.template import Context, Template
#from django.utils import translation
class UserLocaleTests(TestCase):
"""
Test peeringdb_s... | [
"stefan@20c.com"
] | stefan@20c.com |
b96f87793a172b9a59b09d49308b082f87c7a4a9 | d51dcfa375a102b36af2cb996bf31fb177f53ee2 | /cwsp-2.0/bin/sea_station_profile_parser.py | 58dcce72e35c4c8cbed232545e8b79033b94c1c4 | [] | no_license | hsinkai/crowa | 7683425a163791337fc277fe2d6e607bfcb8017b | 839d7efefed03f644557e20dcce563f61345a657 | refs/heads/master | 2020-04-01T09:52:04.108964 | 2018-10-16T02:37:51 | 2018-10-16T02:37:51 | 153,092,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | #!/home/crsadm/.conda/envs/crs-py27/bin/python
# -*- coding: utf-8 -*-
import argparse
import os
import sys
import datetime
import logging
from dateutil import parser
from xml.etree.ElementTree import parse
import petl
raise SystemExit()
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path... | [
"crsadm@cwspapsvr1.(none)"
] | crsadm@cwspapsvr1.(none) |
33877bf7341e29b7edab2e7b7919f5bd03bfdc76 | 9507ff9e9bca2ca8104369c9e25acd74d308e9b3 | /sta8100_upload/upload.py | 6d962eeda6a0d7bd66233d1d52e6df9d0cd024bf | [] | no_license | yangkang411/python_tool | 03e483c7ec7e1e76284f93cf5b9086fdf98af826 | 713071a9fbabfabcbc3c16ce58d1382c410a7ea3 | refs/heads/master | 2023-03-17T16:14:03.332332 | 2020-09-10T02:37:05 | 2020-09-10T02:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #!/usr/bin/python
import os
if __name__ == '__main__':
cmd = "TeseoProgrammer_v2.9.0.exe program -f t5 -i sta.bin -o log.txt -c com53 -b 230400 -m SQI -d 0x10000400 -e TRUE -r TRUE";
print ("cmd = %s" % cmd);
os.system(cmd)
| [
"41727862+geqian@users.noreply.github.com"
] | 41727862+geqian@users.noreply.github.com |
1ad5015c45fdc53fab44ac8ca1ab992a0f35c120 | f58b2a05dee64fb72daa46b24b7abf52ad28c87d | /car_dealership/forms.py | a85252d2287cc44aa545dbe6ed298602ca60d898 | [] | no_license | wkgfowler/Flask-Car-Collection | ecb7b40bc369c504150c006f6e1d0a9da05d0931 | f83940ebf0133f79d9f1a4466060c392a2aa04ff | refs/heads/master | 2023-04-14T03:04:03.541494 | 2021-04-28T01:18:12 | 2021-04-28T01:18:12 | 362,298,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Email
class UserLoginForm(FlaskForm):
email = StringField('Email', validators = [DataRequired(), Email()])
password = PasswordField('Password', validators = [DataRequired()])... | [
"wkgfowler@gmail.com"
] | wkgfowler@gmail.com |
9514ae876595ad93efb2095d912376d900a9a105 | e73e4b346a5266ccc256beda9310b40b589baebe | /core/common/gap/page_model/dashboard/dashboard_page.py | 4594d4a1f7f1f5e908668096add8d8495b216125 | [] | no_license | Madansamudralla/python_project | 81a0adca48b86168e9c5cbe20e160eb8a4b7bad3 | e6e44b8ccfa871e3220f60eb27bde63192bfcaad | refs/heads/master | 2020-07-30T21:39:05.405275 | 2019-08-07T07:52:15 | 2019-08-07T07:52:15 | 210,367,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | from selenium.webdriver.common.keys import Keys
from core.common.gap.locators.dashboard.dashboard_page import DashboardPageLocators
import core
class DashboardPage:
def __init__(self, host):
self.host = host
self.driver = core.get(core.res['chrome'], feature="browser")._res.driver.webdriver
... | [
"petrisor.ureche@2checkout.com"
] | petrisor.ureche@2checkout.com |
2cccde80552113d890a0dd816375681d17550690 | 83d2555c127f05e69f5a586fbbfe3294254a39d1 | /countdown.py | 2ec25726566c6abe4528b607d55433d6f88f48f2 | [] | no_license | CAMcGowan/Count-Down | d377989e88bfdd283e043028a9d3625dc7e06925 | 309a0507845cf05a7bad5b7aed230d0867f16cfe | refs/heads/master | 2022-12-29T07:34:29.234021 | 2020-10-15T15:11:13 | 2020-10-15T15:11:13 | 284,314,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,005 | py | import numpy as np
import random
class WordRound:
# A number round
def __init__(self):
# Create the letter lists on weights
self.consonants_weights = [ ('B',2), ('C',3), ('D',6), ('F',2), ('G', 3), ('H',2),
('J',1), ('K',1), ('L',5), ('M',4), ('N',8),
('P',4), ('Q',1), ('R',9), ('S',9), ('T',9... | [
"45042804+CAMcGowan@users.noreply.github.com"
] | 45042804+CAMcGowan@users.noreply.github.com |
1cf8dbafbb2c140e16cc4c24f316af8cc7589ca6 | a2d902c5976adce374dce2877b059cfb64e1d5b6 | /testfile/testthread.py | dfc08c97b301cdb9073cd8daf4842b760d4e7420 | [] | no_license | buaanostop/Autotest | 53eebc387014b6fade9a93598eaf0f74814d2f3e | 53de72f1d203b4f50725583ab90988bd254cce07 | refs/heads/master | 2020-05-03T00:34:34.500048 | 2019-05-14T08:37:53 | 2019-05-14T08:37:53 | 178,313,227 | 0 | 4 | null | 2019-05-11T16:32:42 | 2019-03-29T01:57:03 | HTML | UTF-8 | Python | false | false | 11,424 | py | # -*- coding: utf-8 -*-
"""Test类
调用Test类中的各种方法来对模拟器或手机界面进行操作。
"""
import random
import sys
import time
import threading
from com.android.monkeyrunner import MonkeyRunner,MonkeyDevice,MonkeyImage
class Operation():
"""操作类,给Test类记录各种操作"""
def __init__(self, optype, x1, y1, x2, y2, number, interval_... | [
"noreply@github.com"
] | noreply@github.com |
9f0aae51e878e9c826cdd3cb138f93134839f502 | 63ebb8e1ee41dafcff1f343f749a651925ab6e63 | /sliding_window/53. Maximum Subarray.py | 04b06cfa02b154a83206783cba6522c8cedb53a9 | [] | no_license | vradja/leetcode | 8f41486732cb8217ff4be47ecb93f71c467eb92b | c496e6d7d4053dee986b455133b293225bfcf58c | refs/heads/master | 2023-07-11T21:10:33.845244 | 2021-07-28T02:13:18 | 2021-07-28T02:13:18 | 269,203,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | import itertools
# Approach 1
def max_sub_array_of_size_k_1(K, arr):
window_sum = sum(arr[:K])
max_sum = window_sum
for window_start, value in enumerate(arr[K:]):
window_sum += value - arr[window_start]
max_sum = max(max_sum, window_sum)
return max_sum
# Approach 2:
def max_sub_a... | [
"vradja@Mac-Vradja-2.local"
] | vradja@Mac-Vradja-2.local |
8edcd266e14b62bb5053d6369487e7c9726e0dda | 38c10c01007624cd2056884f25e0d6ab85442194 | /chrome/chrome_resources.gyp | 492536ca0787a392f82c67762f4eb395a3eb7c79 | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 25,319 | gyp | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
'additional_modules_list_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
37267b9d176703bfa0ccfc0f5b44ef463f69ea53 | 9930638a8061f1e9f7c2313c34846d6c5295d747 | /Quiz41_Yusuf Syarif Iqbal_1201184320.py | 2038f1a58232b71efd2b910a885abbdcba9de425 | [
"Unlicense"
] | permissive | yusufsyarif/Quiz-4-Alpro | 6ee82c066b53694c9e05c43d6921f46dda1a7657 | dc59622409a500d73cc0ddbbed2fa8850c919ba7 | refs/heads/master | 2020-07-24T15:16:48.701620 | 2019-09-12T05:06:42 | 2019-09-12T05:06:42 | 207,966,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | StudentofFRI = ["Anton", "Budi", "Doni", "Huda"]
print("List of Student = ")
print(StudentofFRI[0])
print(StudentofFRI[1])
print(StudentofFRI[2])
print(StudentofFRI[3]) | [
"noreply@github.com"
] | noreply@github.com |
63897bcb7d1d451d51497a89ed42b40c7c919bcd | 8c7853822047c1908b7bb5f39531d721dacbed3f | /Python Practice/Assignment.py | af81f0a5477dd1bcad731c9ef95518de49085947 | [] | no_license | AjayKrish24/Assessment | 63cbd8386f4f6fe649abcc3603485ed8647cf6c3 | 6233e268b9812c7f5f859ec03a83691fd3419472 | refs/heads/master | 2022-04-08T06:35:11.142183 | 2020-02-28T11:37:22 | 2020-02-28T11:37:22 | 235,511,361 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py |
1)
string = input("Enter a string : ")
str_list = []
count = ""
for x in string:
if x not in str_list:
str_list.append(x)
for x in str_list:
count = count + x + str(string.count(x))
print(count)
#=======================o/p======================================
Enter a string : aaabbcc... | [
"noreply@github.com"
] | noreply@github.com |
3065b51a201544ac2ccffe33edc8cc9b0e1a8100 | fb399006217841437a59bfff89627a0ee6fb6a16 | /script/encoding.py | ff41a1431dd68d25befa2fbd8735dfa26841a52a | [] | no_license | Beddywang/test | 9a6a0bbec4d430629ae7aada66516fd6e8d85f56 | c0a2c2d9f281afeb6e24e78f04ff5f37816cea79 | refs/heads/master | 2020-03-19T03:05:36.980912 | 2018-06-01T09:10:17 | 2018-06-01T09:10:17 | 135,694,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # coding = utf-8
import array
import json
class Header:
def __init__(self, Type, Name, Method):
self.Type = Type
self.Client = Name
self.Method = Method
class Message:
def __init__(self, header, body):
self.Header = header
self.Body = body
class Packet :
def __in... | [
"727992984@qq.com"
] | 727992984@qq.com |
a7f8d8f49b6809525e29121763627e7f50f9f9f7 | ab8a34e5b821dde7b09abe37c838de046846484e | /twilio/sample-code-master/notify/v1/user/read-default/read-default.6.x.py | 21a1ceb49f9637120f11fe5bf78cba619a151b3e | [] | no_license | sekharfly/twilio | 492b599fff62618437c87e05a6c201d6de94527a | a2847e4c79f9fbf5c53f25c8224deb11048fe94b | refs/heads/master | 2020-03-29T08:39:00.079997 | 2018-09-21T07:20:24 | 2018-09-21T07:20:24 | 149,721,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
users = client.notify.servi... | [
"sekharfly@gmail.com"
] | sekharfly@gmail.com |
2346d4680457ac250e61832b9f51ac002a4c3431 | 9b9e875c71855e46af23351ddc06c223e25ba01e | /silx/hdf5tree/exercises/ex1_display.py | f29b97b2975a35fdfceff2e4d2db61858ae15420 | [
"CC-BY-4.0"
] | permissive | PiRK/silx-training | 6d490950c2c97e1fdf82773857c9377a87d464f2 | 57bccbea3ed67f8de51d3580069a556bdb3cb678 | refs/heads/master | 2020-05-21T02:10:18.623156 | 2017-03-10T10:59:43 | 2017-03-10T10:59:43 | 84,557,221 | 0 | 0 | null | 2017-03-10T12:21:57 | 2017-03-10T12:21:57 | null | UTF-8 | Python | false | false | 450 | py | #!/usr/bin/env python
import sys
from silx.gui import qt
from silx.gui import hdf5
def main(filenames):
app = qt.QApplication([])
tree = hdf5.Hdf5TreeView(window)
tree.setVisible(True)
model = tree.findHdf5TreeModel()
for filename in filenames:
#
# TODO: Load each filename into ... | [
"valentin.valls@esrf.fr"
] | valentin.valls@esrf.fr |
e5c5bd57f1d6e3e0a6267ce58a760d28f52b6928 | 1118aec39a839da2ebc508f1d2a6b377aa70274d | /src/unittest/call_with_timeout.py | a75f81ed305247092122f5b613cde3b90d77c8aa | [] | no_license | serg0987/python | b3a9a2b22b4ef5a39e612a0a170ba9629933c802 | 074449ad6b3a90352939c55a9db37bd248cab428 | refs/heads/master | 2020-05-15T09:30:17.500158 | 2015-10-18T21:28:08 | 2015-10-18T21:28:08 | 2,454,952 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | # -*- coding: utf-8 -*-
"""
Created on Jan 5, 2014
filedesc:
@author: serg
"""
import unittest
import time
from functools import wraps
import errno
import os
import signal
import time
import xmlrunner
import sys
import pytest
import gevent
from gevent_utils import BlockingDetector
def call_with_timeout2(fn):
de... | [
"serg0987@gmail.com"
] | serg0987@gmail.com |
12122d181466c13d1c391f29f595748bccf39384 | 6df48750b84e4b95f2ffbca7e720e2ed72e2643b | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | 2c28824ca735ff9e6f11795f9befb454ac612b92 | [
"Apache-2.0",
"MIT"
] | permissive | injir/nodeApp | 4bb5b5662a27d259c0b21fa39ca83235b211bc14 | b9ef19c1b58fb00513b7e32c50f8a837ddd0344e | refs/heads/master | 2021-01-10T09:47:26.372559 | 2015-10-15T08:48:27 | 2015-10-15T08:48:27 | 44,307,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"tworevolver@gmail.com"
] | tworevolver@gmail.com |
ad7fb65c29e1e089acf7dcd03ebff16492f03f4e | 2a7fc4abb3428c285ebe6d530c8383b50f28b37d | /leetcode763_划分字母区间/leetcode763_划分字母区间.py | b2ddeb1385ff7a16ab1f409797bd6d94ccab4c11 | [] | no_license | X-thon/LeetCodeRecord | 9bc508d42120c462888c3860c0207e37707f3c82 | 1616bddb4986df7a3785bc9691022607147c8752 | refs/heads/master | 2020-05-18T19:10:19.467631 | 2019-08-30T15:56:43 | 2019-08-30T15:56:43 | 184,603,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from typing import List
class Solution:
def partitionLabels(self, S: str) -> List[int]:
d = dict()
for i in S:
d[i] = S.rfind(i)
index, res = d[S[0]], []
for i, c in enumerate(S):
if d[c] > index:
index = d[c]
if i == index:
... | [
"522761613@qq.com"
] | 522761613@qq.com |
27173302787013bf861b618232c256786ec0685b | 0af5d743d5786a16a2a3d7f67723151cfa487f9a | /scripts/ipic3d_parse_udist_single.py | dd2bbf4a3a19bd9afa18a986da57999c6ede7134 | [] | no_license | allscale/allscale_ipic3d | a673f6e56a5f0b34054d6d17de6fc44ad6d98735 | dcf76b86c05d1153a33c6a0567b039dd89c8f43b | refs/heads/master | 2021-10-16T04:20:06.212504 | 2019-02-07T16:59:53 | 2019-02-07T16:59:53 | 151,078,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python
import math
import sys
import subprocess
command = "grep 'Throughput:' " + sys.argv[1] + " | awk -F':' '{print $2}' | awk -F' ' '{print $1}'"
(res,err) = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE).communicate()
res = res.split()
count = 0
res1 = ""
res2 = ""
res4 = ""
res8 = ... | [
"riakymch@kth.se"
] | riakymch@kth.se |
06cab5181ac5b30bf81ed5cfb40402affe9bcbcc | 1af2fb8c49791d8d51c7bf17ad565be56952979b | /DjangoCBVpr/wsgi.py | 52239c56bc10cc028b55eb5dcffbd0bf8ab02eaf | [] | no_license | MohamadAhmadi100/Todo-Django-CBV | 580db48317064fe8bec060f445fb818169c6b5dc | a59893d690b41c31800fb4dd46d5f90eb034ee87 | refs/heads/main | 2023-07-25T15:25:19.896480 | 2023-07-12T12:49:04 | 2023-07-12T12:49:04 | 360,139,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for DjangoCBVpr 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"mohammadahmadidezhnet@gmail.com"
] | mohammadahmadidezhnet@gmail.com |
8b8929d554b4f886eb1a3863f7d2c0f2bb3e06eb | 659189407e57c7677ba7ec630c4559cbc0d9a14f | /blog/migrations/0001_initial.py | 5698bb1c1c5993cee58dc64037c3f41fcca04e4d | [] | no_license | josevarela24/django_blog | 048704c261a890cf5b5abb49b5bd6f7bb801855d | 495c5b8463803c64253ae519b83b3ce940833287 | refs/heads/master | 2022-11-30T00:22:51.533210 | 2020-01-03T20:59:39 | 2020-01-03T20:59:39 | 229,484,284 | 0 | 0 | null | 2022-11-22T04:55:45 | 2019-12-21T21:17:57 | Python | UTF-8 | Python | false | false | 907 | py | # Generated by Django 3.0.1 on 2019-12-22 16:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"jose.varela24@yahoo.com"
] | jose.varela24@yahoo.com |
eecf4582690cc3a4b3fffa8685b1de18dbb4daef | 0492adab1ca40fc59457cca2dc1d3e2a6b35e9d2 | /04-TKinter基础/TkinterExample05.py | 9be6ba793fff617046b77638383190c32099bf3e | [] | no_license | starryKey/LearnPython | 0333a7bc015838ff30f54581a740c53701f729d6 | 3d028ca9a5ffe2c2bffd467b04db94356a798d9e | refs/heads/master | 2021-07-19T07:20:49.458121 | 2020-05-17T15:06:38 | 2020-05-17T15:06:38 | 157,088,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from tkinter import *
baseFrame = Tk()
baseFrame.title = "菜单"
baseFrame.geometry("400x300+300+100")
menubar = Menu(baseFrame)
emenu = Menu(baseFrame)
for item in ['Copy', 'Past', 'Cut']:
emenu.add_command(label=item)
subemenu1 = Menu(baseFrame)
for item in ["New", "Save as"]:
subemenu1.add_command(label=i... | [
"1056838379@qq.com"
] | 1056838379@qq.com |
cb28e85295b024bb0498aa6b4989914be951cfa0 | 7963f09b4002249e73496c6cbf271fd6921b3d22 | /tests/test_cpy.py | 7b453154c26e92a9cf985753289721778c504e43 | [] | no_license | thales-angelino/py6502emulator | 6df908fc02f29b41fad550c8b773723a7b63c414 | 1cea28489d51d77d2dec731ab98a6fe8a515a2a8 | refs/heads/master | 2023-03-19T14:46:17.393466 | 2021-03-08T04:10:45 | 2021-03-08T04:10:45 | 345,754,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,773 | py | import unittest
from emulator_6502 import emulator_6502 as emulator
from emulator_6502.instructions import cpy
class TestCPX(unittest.TestCase):
def setUp(self):
self.memory = emulator.Memory()
self.cpu = emulator.CPU(self.memory)
self.cpu.reset()
def test_cpy_scenario_1(self):
... | [
"thales.angelino@gmail.com"
] | thales.angelino@gmail.com |
07f26b73cf3768bf73248fad6305b8ff5a3fdf55 | 589ac0a71099f4ee6857a31986305f0df2c16ede | /Bio/ExPASy/Prodoc.py | ad12d8b8a02347862b5f62b62ed3e670a0ef61ba | [
"LicenseRef-scancode-biopython"
] | permissive | barendt/biopython | 802aad89005b302b6523a934071796edbd8ac464 | 391bcdbee7f821bff3e12b75c635a06bc1b2dcea | refs/heads/rna | 2021-11-09T19:11:56.345314 | 2010-05-01T02:44:42 | 2010-05-01T02:44:42 | 636,700 | 0 | 0 | NOASSERTION | 2021-11-05T13:10:14 | 2010-04-29T02:35:46 | Python | UTF-8 | Python | false | false | 5,232 | py | # Copyright 2000 by Jeffrey Chang. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""
This module provides code to work with the prosite.doc file from
Prosite.
http://www.expas... | [
"mdehoon"
] | mdehoon |
0f21ff24a0fbeb54950e2810122ef82601826992 | e3a44084de8c7e0d557595ad1e54f07f5a6adde7 | /2020_spring/2020_04_03/1431_GU.py | 2aec93fc325e4aaf1ab2b41ab86a0bb9e07e967f | [] | no_license | hoon4233/Algo-study | 01fcc06c4dce4bfb4bf81c0e9ff208a0d2521512 | 817ec715bd6b2df920ed96921558387995dcfa76 | refs/heads/main | 2023-05-01T08:40:50.438250 | 2021-05-24T05:57:03 | 2021-05-24T05:57:03 | 335,468,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | import sys
import copy
#import re
N = int(sys.stdin.readline())
serial = []
for i in range(N):
ser = sys.stdin.readline().rstrip()
nums = [int(s) for s in ser if s.isdigit()]
serial.append([ser,sum(nums)])
nums.clear()
serial.sort(key = lambda x: (len(x[0]),x[1],x[0]))
for i in range(len(serial)):
... | [
"wogns3141@naver.com"
] | wogns3141@naver.com |
4c90e5344fae07f5fe170a89ad0aa6b9c7ac388f | 010237bddcd5bd9b3d6b8923b40e78a8d55e06d8 | /forwarding/tracking/tracking_deepsort/m_distance.py | fa766fddc625192fd351db18198c8130cced3760 | [
"MIT"
] | permissive | wy-moonind/trackrcnn_with_deepsort | 6bed6fd5cd0aad93bf648fb5f1c759f59b19f5c9 | bd92bce23baee21747ef463a48399eea63e83e0a | refs/heads/master | 2023-04-03T03:04:22.137763 | 2021-04-09T19:31:41 | 2021-04-09T19:31:41 | 353,462,121 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import numpy as np
from .kalman_filter import KalmanFilter
"""
Calculate mahalanobis distance cost matrix
"""
def cal_mdistance(dj, yi, si):
mdistance = np.linalg.multi_dot((dj - yi).T, si, (dj - yi))
return mdistance
def mdistance_cost(tracks, detections):
"""
Parameter :
---------
tracks... | [
"64747300+wy-moonind@users.noreply.github.com"
] | 64747300+wy-moonind@users.noreply.github.com |
b1a69c7be4002d81abd91e4ed4511adc0d225ce8 | efe2dc42aabdb57f22156c18acebb2d6771f9de1 | /Backtracking/LeetCode 131 - PalindromePartitioning/PalindromePartitioning_Python/main.py | 815ab379dc2174343caedaafff26860f3000ab52 | [] | no_license | XingXing2019/LeetCode | 5090b41045ab8aa30e9cf7a722816695297d29e2 | ff20e93a3cbbebf64383980b6f8b8f5d3931ba72 | refs/heads/master | 2023-08-21T04:03:18.456537 | 2023-08-20T11:35:28 | 2023-08-20T11:35:28 | 268,739,176 | 16 | 7 | null | 2023-07-23T08:01:00 | 2020-06-02T08:05:13 | C# | UTF-8 | Python | false | false | 659 | py | class Solution:
def partition(self, s: str) -> List[List[str]]:
res = []
self.dfs(s, [], res)
return res
def dfs(self, s, cur, res):
if s == '':
res.append(list(cur))
for i in range(1, len(s) + 1, 1):
word = s[0:i]
if not self.isPalind... | [
"x.xing.unsw@gmail.com"
] | x.xing.unsw@gmail.com |
5f1e99df7e52ee9bc349a2865e5727ffdc987d47 | 7eed761c7f84d32d4485f472bda47589068f220e | /app/forms.py | 3053410b553aa0a8acc140f41cc79348e7d9c898 | [] | no_license | cdvx/microblog | d5b452f87e0a8c66d1a7e5ccd8cd186c6871dde5 | 9df4a7ea07222a5e1d66d3a4b2ab2293683ff0e3 | refs/heads/master | 2022-12-11T16:31:26.838313 | 2018-08-07T15:19:00 | 2018-08-07T15:19:00 | 143,005,359 | 0 | 0 | null | 2022-12-08T02:19:47 | 2018-07-31T11:30:11 | Roff | UTF-8 | Python | false | false | 2,230 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField,SubmitField,TextAreaField
from wtforms.validators import DataRequired, ValidationError, Email, EqualTo, Length
from flask_login import current_user
from app.models import User
class LoginForm(FlaskForm):
username = String... | [
"cdvx@grizzly.com"
] | cdvx@grizzly.com |
a98effc7b04fb871da96b054beab8f8f10ffdae0 | 9df958f8208ba7a861aaceec3e077ec923b205a7 | /TP1/TP1.py | 8d7cd997b3c1da1408ef49b20b6ac72393957005 | [] | no_license | jsuarezbaron/RedesNeu2019 | 3b0173c6a7934c8a55bf72e2ac54a7b4042e7218 | ef6f388debb18db05073e79cc797ab9b044409c7 | refs/heads/master | 2020-05-07T20:41:14.145784 | 2019-07-11T18:41:21 | 2019-07-11T18:41:21 | 180,872,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,910 | py | import math
import numpy as np
import matplotlib.pyplot as plt
from perceptron_multicapa import PerceptronMulticapa
X = np.genfromtxt(fname='tp1_ej1_training.csv', delimiter=',',dtype=float, usecols=(1,2,3,4,5,6,7,8,9,10))
y = np.genfromtxt(fname='tp1_ej1_training.csv', delimiter=',',dtype=str, usecols=0)
y = np.where... | [
"jsuarezbaron@gmail.com"
] | jsuarezbaron@gmail.com |
47508a3b9f2141ed5940c7582db50110eb72e9aa | eef1a0e31f723757c5ca8665b9433a9df86d17aa | /func/python/bench_json_loads.py | 311fdb7808b7871b2a891b4608fb5b8789176806 | [
"Apache-2.0"
] | permissive | robinvanemden/Faasm | 09a69fce30300a12d5ba7df55c40a39d81ee5d8f | e005cca20fb4be4ee9ae30f25a5873964b2efd7f | refs/heads/master | 2020-12-01T14:10:51.471549 | 2019-12-20T10:05:17 | 2019-12-20T10:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import json
from performance.benchmarks.bm_json_loads import DICT, TUPLE, DICT_GROUP, bench_json_loads
if __name__ == "__main__":
json_dict = json.dumps(DICT)
json_tuple = json.dumps(TUPLE)
json_dict_group = json.dumps(DICT_GROUP)
objs = (json_dict, json_tuple, json_dict_group)
for x in range(100... | [
"noreply@github.com"
] | noreply@github.com |
3dc697da8fe16d89cbc36d7223f0cb3c6dd04be9 | 682cffe10c368b059bf24af4ebe2a475430f4ab6 | /vspkgenerator/vanilla/python/__overrides/nuvsdsession.override.py | b608b74bc90dad5af0adaf76cddf83b5135a2d41 | [
"BSD-3-Clause"
] | permissive | mkarnam/vspkgenerator | adedda8d5d6dd38d046680842a0891a314c7fbbb | c35586826a0e5261c4ce88c5827f22941249bc3f | refs/heads/master | 2022-12-07T22:29:17.482983 | 2022-11-23T10:35:12 | 2022-11-23T10:35:12 | 62,943,040 | 0 | 0 | BSD-3-Clause | 2022-11-23T10:35:13 | 2016-07-09T09:48:27 | HTML | UTF-8 | Python | false | false | 53 | py | @property
def user(self):
return self.root_object | [
"antoine.mercadal@gmail.com"
] | antoine.mercadal@gmail.com |
fe4155275d3a9240634ebe2b2de50705201231ac | a140a7ca1bc5f0af773cb3d22081b4bb75138cfa | /234_palindromLinkedList.py | b1b3a195574aefe83cc26bf49500c32c48a8a3b2 | [] | no_license | YeahHuang/Leetcode | d02bc99d2e890ed0e829515b6f85c4ca6394a1a1 | 78d36486ad4ec2bfb88fd35a5fd7fd4f0003ee97 | refs/heads/master | 2021-07-14T01:53:06.701325 | 2020-06-22T03:01:46 | 2020-06-22T03:01:46 | 166,235,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | class Solution:
def isPalindrome(self, head: ListNode) -> bool:
rev = None
slow = fast = head
while fast and fast.next:
fast = fast.next.next
rev, rev.next, slow = slow, rev, slow.next
if fast:
# fast is at the end, move slow one step further for... | [
"noreply@github.com"
] | noreply@github.com |
a7da85542253cd53cd17078b3ea11dd532c26fac | 2f6e97d92b940913dbe42090d2066d44768f0127 | /system1/editor-gui/gui/MainWindow.py | ec6cb5f63f528d9dc101e95ebcc1916dab92a30e | [] | no_license | BioroboticsLab/bb_analysis | 848dd2af54a68a77121cb5139cfd9baa1c070f62 | 5b347ec5d963ebc74b109ee741e8ec949036bd86 | refs/heads/master | 2021-01-24T09:45:58.676281 | 2020-01-15T10:03:04 | 2020-01-15T10:03:04 | 56,809,679 | 0 | 0 | null | 2016-11-14T10:58:33 | 2016-04-21T22:35:09 | Python | UTF-8 | Python | false | false | 968 | py | from PyQt4 import QtGui
import data_structures as ds
from LoaderTab import LoaderTab
from EditorTab import EditorTab
class MainWindow( QtGui.QMainWindow ):
def __init__( self, app, parent = None ):
super( MainWindow, self ).__init__( parent )
self.resize( 1000, 600 )
self.setWindowTitle( 'BeesBook Filtering... | [
"jakob.mischek@daign.de"
] | jakob.mischek@daign.de |
738b4c2e8ea71aa1374de72bcbdaff282bbe4f37 | 8ace8be98c5fb7baac267ca7f83c8085e5cad35c | /26_two_sum_unique_pairs.py | def053f435def022e8e58082e3376b6e647929d4 | [] | no_license | cyberbono3/amazon-oa-python | c063eb275a4d311e58f148c0300c7e19b0f03bea | 7ce502bbe3a30b1d6052a46e7a28b724a327b5ae | refs/heads/master | 2023-01-20T16:23:00.241012 | 2020-11-22T03:49:25 | 2020-11-22T03:49:25 | 293,693,115 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
Input: nums = [1, 1, 2, 45, 46, 46], target = 47
1, 1
"""
class Solution:
def unique_pairs(self, nums, target):
s = set()
dic = {}
for i,x in enumerate(nums):
if target - x in s:
dic[target-x] = x
else:
s.add(x)
print(... | [
"cyberbono3@gmail.com"
] | cyberbono3@gmail.com |
34f4d0de0e08cbb15c1231e8370fe0c896e3b5a8 | b52230823ef5c1c8791ecb6a9b098c964cf1c413 | /crawling/etf_data_crawl.py | 562fee114fdc07ffc03447cb752032215ee7a763 | [] | no_license | kaya-kim/python | a767dae24687e13443f0d05045bcad170c4d3853 | 83e57fe7a7da854195843dec2aa377614de57606 | refs/heads/main | 2023-08-26T19:52:23.071260 | 2021-11-11T01:56:33 | 2021-11-11T01:56:33 | 426,487,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,013 | py | import requests
from bs4 import BeautifulSoup
import urllib3
# warnings error 메세지르 안보여주는 것
urllib3.disable_warnings()
#
input = 'VOO'
url = 'https://www.etf.com/'
result_url = url+input
# url = 'http://www.kyobobook.co.kr/bestSellerNew/bestseller.laf'
headers = {
'Content-Type': "application/x-www-form-urlencode... | [
"devdami159@gmail.com"
] | devdami159@gmail.com |
a9ee76fd1846fc752464d450bd036b4608171d17 | 7886b494cb12cfc3497d4d6dfe0297dd17f6be92 | /final_project/poi_id_notebook.py | 5e2e1e76d86c90c62eb2273170b744e4c3161bc1 | [] | no_license | Garek31/U3-A-ML-to-Identify-Fraud-in-the-Enron-Corpus | 459308f312a51c74126b1c991eeb394f867a145d | 2900f9695cb1b4feafee6c3d6ff91bc30c7f86f5 | refs/heads/main | 2023-01-30T22:32:50.173928 | 2020-12-15T22:27:07 | 2020-12-15T22:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,601 | py | #!/usr/bin/env python
# coding: utf-8
# # Machine Learning to Identify Fraud in the Enron Corpus
# In[1]:
import warnings
warnings.filterwarnings("ignore")
import sys
import pickle
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
from tester import dump_classi... | [
"s.weiss@tbs-education.org"
] | s.weiss@tbs-education.org |
2a59f51322dc3315c47936236dd5bf64773e8bd4 | bb64ae47e8041f0f111a009c46484cc2fd5f9a3b | /tests/10-deploy | ec60110e078c7e67b19cef1a3de522a9c793347c | [] | no_license | mbruzek/layer-dockerbeat | 9a0343b552e00f6e6f0fd3bfdb112eb8d59e3823 | e8285fa9be3dd3466b91dfe43d0f353b6a9d53a7 | refs/heads/master | 2020-12-29T00:12:39.972946 | 2016-07-07T15:13:42 | 2016-07-07T15:13:42 | 63,078,714 | 0 | 0 | null | 2016-07-11T15:16:27 | 2016-07-11T15:16:27 | null | UTF-8 | Python | false | false | 332 | #!/usr/bin/python3
import amulet
import unittest
class TestCharm(unittest.TestCase):
def setUp(self):
self.d = amulet.Deployment()
self.d.add('dockerbeat')
self.d.expose('dockerbeat')
self.d.setup(timeout=900)
self.d.sentry.wait()
self.unit = self.d.sentry['dock... | [
"chuck@dasroot.net"
] | chuck@dasroot.net | |
834df5a4ec7f57f05c1aabd99b8e4400e81c5ca4 | 1c5a2d92f9ff953629b494cbbf77efc4281d80da | /root/app/local.py | be2b355e741db1ced3615acbd32193bc881ce840 | [] | no_license | fanningert/docker-taiga-backend | d695aadf30928c95a6be7f5b0c828df90b4f7d52 | a3c882982d4e56e57bc1d011ab3dbb285763b557 | refs/heads/master | 2020-03-07T10:22:33.824301 | 2018-03-30T15:38:44 | 2018-03-30T15:38:44 | 127,430,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from .common import *
MEDIA_URL = "http://example.com/media/"
STATIC_URL = "http://example.com/static/"
SITES["front"]["scheme"] = "http"
SITES["front"]["domain"] = "example.com"
SECRET_KEY = "theveryultratopsecretkey"
DEBUG = False
PUBLIC_REGISTER_ENABLED = True
DEFAULT_FROM_EMAIL = "no-reply@example.com"
SERVER_E... | [
"thomas@fanninger.at"
] | thomas@fanninger.at |
34bb012d42ec90f93b307b447f5c5cd8c6a26646 | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /sensehat/pi_surveillance_py.py | 260dc24e20057985e9e1a46675745b948e2da882 | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 3,605 | py | from pyimagesearch.tempimage import TempImage
import dropbox as dbx
from picamera.array import PiRGBArray
from picamera import PiCamera
import warnings
import datetime
import imutils
import json
import time
import cv2
# filter warnings, load the configuration and initialize the Dropbox
# client
warnings.f... | [
"tdamdouni@Peters-MBP.fritz.box"
] | tdamdouni@Peters-MBP.fritz.box |
2b19f94d126f21b48d19683f2785c9ea50a508a4 | 24653fc7753145833651a39c5ccfd2dce9776ef9 | /tests/test_kms/test_model.py | 5d0ffc0978aeb6a962d1f2ed7df60755752a3331 | [
"Apache-2.0"
] | permissive | cm-iwata/moto | fd47802b7bdec567eef575a14109a5fb0c92eea4 | 9640ec20d125248ac91243591c7db50daabfd135 | refs/heads/master | 2022-07-13T23:21:56.898602 | 2022-06-13T10:14:22 | 2022-06-13T10:14:22 | 143,237,437 | 0 | 0 | Apache-2.0 | 2018-08-02T03:27:08 | 2018-08-02T03:27:08 | null | UTF-8 | Python | false | false | 1,147 | py | import pytest
from moto.kms.models import KmsBackend
PLAINTEXT = b"text"
REGION = "us-east-1"
@pytest.fixture
def backend():
return KmsBackend(REGION)
@pytest.fixture
def key(backend):
return backend.create_key(
None, "ENCRYPT_DECRYPT", "SYMMETRIC_DEFAULT", "Test key", None, REGION
)
def tes... | [
"noreply@github.com"
] | noreply@github.com |
cb07a323abf8740806bebc941c841ab0e659081b | e6ad1014aacaa92643f42952c278469177defc15 | /napalm_ansible/napalm_diff_yang.py | d134e9bb1a69665bbfabcb13f326bcf956c8cb1d | [
"Apache-2.0"
] | permissive | cspeidel/napalm-ansible | d290ee7cc1abd9dd7d11044d5ddc542bd6658906 | 8ad4badb38d79ec5efd96faa666c71f7438dfa28 | refs/heads/develop | 2022-02-09T05:40:10.302690 | 2017-11-06T20:51:58 | 2017-11-06T20:51:58 | 110,727,639 | 0 | 0 | Apache-2.0 | 2022-01-31T16:25:25 | 2017-11-14T18:18:35 | Python | UTF-8 | Python | false | false | 3,409 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
(c) 2017 David Barroso <dbarrosop@dravetech.com>
This file is part of Ansible
Ansible is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Licens... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
b7573dbd36081ad7c08df471d5ffe02f5daaaec4 | a596008c186f893d673b2f7bd33b2136db762b7e | /olympic_medals_zoich.py | 7465ace97521a0ce8fb0be052e83c806687b5876 | [] | no_license | iandriyanov/OlympicStats_zoich | f7495ba1ddb6df15ffc3145b7ad544667ea1ad03 | c9e448253e9cf8e41cdfac93fafb402e2a9ade3f | refs/heads/master | 2021-01-25T05:35:09.374474 | 2014-02-14T11:29:00 | 2014-02-14T11:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | #-*- coding: utf-8 -*-
############################################
#
# File Name : olympic_medals_zoich.py
#
# Purpose :
#
# Creation Date : 11-02-2014
#
# Last Modified : Wed 12 Feb 2014 09:12:53 AM MSK
#
# Created By : plushka
#
############################################
# http://olympics.clearlytech.com/api/v1... | [
"iandriyanov@gmail.com"
] | iandriyanov@gmail.com |
f50a62262f8a5fd229e3a174e46c8c9fedf3c950 | cef09d1e6d5e7cd335387d0829211ffb0da18f48 | /tests2/tests/wedge100/test_psumuxmon.py | 73784296b42bf03dd786c25cca01bc61c37967ce | [] | no_license | theopolis/openbmc | a1ef2e3335efd19bf750117d79c1477d47948ff3 | 1784748ba29ee89bccacb2019a0bb86bd181c651 | refs/heads/master | 2020-12-14T07:20:40.273681 | 2019-04-20T05:25:17 | 2019-04-20T05:25:17 | 43,323,632 | 0 | 1 | null | 2015-09-28T19:56:24 | 2015-09-28T19:56:24 | null | UTF-8 | Python | false | false | 2,143 | py | #!/usr/bin/env python
#
# Copyright 2018-present Facebook. All Rights Reserved.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
803c12056e1bb1f8bb8a7ab3310523f027750019 | 338a11833d8e83dd0e4580ab3dc21b95fe17183b | /logica.py | 145a353284a5785f04491bdf85f74a8b95240a4a | [] | no_license | MaBlestastic/UML-TiendaElectronica | 6f3294a68dca2ca9fc796669307886d108e0a32f | 73a119e3224accdb9ffc90e4cb832f76590a8995 | refs/heads/main | 2023-09-06T00:47:24.907642 | 2021-11-13T00:04:01 | 2021-11-13T00:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import beconnect
def gestionarProv (nombreprod):
beconnect.Mostrar("SELECT nombreprod FROM producto WHERE nombreprod = "+ nombreprod )
pass
def controlarProd():
pass
def comprarProd():
pass
def controlarStockProd():
pass
def venderCliente():
pass
def reservarProd():
pass
... | [
"noreply@github.com"
] | noreply@github.com |
eecaffdbe17ebf356d4729447b601c155f4a4f9d | 209c876b1e248fd67bd156a137d961a6610f93c7 | /python/paddle/metric/metrics.py | aeec4022e218424eb20183b6917aa2f39a17d588 | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 28,411 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | noreply@github.com |
9b6a313c4143391d0e759e966d2a74b8e14b3fb2 | 6cee35876c6a1afdc1a2f9293fbcf41719f3852d | /chap_2/exercise2.py | c89851bc22530e3167a8bbdee2b1449bc3979f7b | [] | no_license | SiddhantAshtekar/python-algorithem-for-begginers | a7c31cd2cd96d70e13a2d0119da94fe7f38c5056 | 07803850aa78c07ce608d18173afebd398543121 | refs/heads/master | 2020-05-07T10:28:20.310114 | 2019-04-09T17:33:19 | 2019-04-09T17:33:19 | 180,417,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | name=input("Enter your name ")
print(f"the revers of your name is {name[-1::-1]}")#revers of sting | [
"noreply@github.com"
] | noreply@github.com |
d2bec8330e7194b82322663dff6a7e4aebb23fa0 | a8ec4d66072edaa8ab090c2956a989aa8429d6b6 | /Q2/rent_cawler/rent_crawler/crawlers.py | 7abc6bbb3c049bc10db7e1a100458e4c959448a3 | [] | no_license | sileverfall/takeHomeExam_ca | b57cc399c4e0945c34739d2b7fd52f3c728f0f15 | c34d5b810720c5788efd5f42c397df17b70e05cf | refs/heads/master | 2021-04-11T04:45:33.724861 | 2020-03-28T16:05:52 | 2020-03-28T16:05:52 | 248,993,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | from rent_crawler.config.headers import user_agent_list
from rent_crawler.config.region_map import region_map
from bs4 import BeautifulSoup as bs
from lxml import etree
from pprint import pprint
from urllib.parse import urlencode
import math
import json
import os
import pandas as pd
import re
import requests
import tim... | [
"sileverfall@gmail.com"
] | sileverfall@gmail.com |
3283469a70b4bbabeeb43e1231327fd4c353e862 | 09795109710fa6d1b5062c592065f855f1f5cc7d | /test/form_largest.py | 797018345a9f97c7649c240e0af01ba6a8628101 | [] | no_license | ganpatagarwal/python-scripts | 8acd2093dcd8331676f3ab100fc22b9ac4d26786 | df02b20a67216c79addf1c75fbe62379dc054820 | refs/heads/master | 2021-01-23T08:56:32.722753 | 2018-08-13T09:50:43 | 2018-08-13T09:50:43 | 15,274,529 | 0 | 0 | null | 2016-01-21T11:00:45 | 2013-12-18T05:27:08 | Python | UTF-8 | Python | false | false | 514 | py | #l = [100,1,2,2,6,67,3,4,30,34,42,45,5,5,20,9]
l = [3, 30, 34, 5, 9]
#sorting the initial list
l.sort()
print l
l2 = []
d= {}
#taking out the first digit from each number
for item in l:
tmp = str(item)
d[tmp[0]] = item
keys = sorted(d.keys())
#print keys
for i in range (len(keys)):
val = keys[i]
for item in ... | [
"Ganpat.Agarwal@emc.com"
] | Ganpat.Agarwal@emc.com |
af5b7418a1bc4303059f8d4db3cfc71b3f4ce50c | 575cf5976450e5e901d8c642c3795f2610ed0545 | /client.py | 3a30ff0c7a41c24d11bd17cd85a764a4bc4161ab | [] | no_license | mgcarbonell/quick-socketio | 99ef3ccb62999fda3a7a4f87656dad6ae079f3d9 | a41eafb583f1c19f5e95bdc9b4505f5876b8a576 | refs/heads/main | 2023-03-02T22:25:50.602284 | 2021-01-23T05:26:21 | 2021-01-23T05:26:21 | 332,128,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | # similar to our serer, with some minor
# differences. Rather than socket.ioServer
# we use socket.ioClient.
# we still have code that is event driven,
# and this is important with socketio.
# Rather than using cb's in JS, we can use
# call in socket.ioClient().
# note that these clients will also work
# in the cli
... | [
"mgcarbonell@gmail.com"
] | mgcarbonell@gmail.com |
62057c8eb956315f5f52fa00e9a3237b9e78aa7e | c1faf35b2fe1beda6c839031465195ea58b4c495 | /panelserverextension.py | eae784198ae449200859acbf4742f46ee152c279 | [] | no_license | makwingchi/philly-route-finder | ff9f6001a39a7d838ff143ee5445cc848f456205 | c807c76290772f4b31bd0cdaab7a1ab6e505d8e7 | refs/heads/master | 2020-05-22T10:19:23.003297 | 2019-07-14T15:25:46 | 2019-07-14T15:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from subprocess import Popen
def load_jupyter_server_extension(nbapp):
"""serve the app.ipynb directory with bokeh server"""
Popen(["panel", "serve", "app.ipynb", "--allow-websocket-origin=*"]) | [
"noreply@github.com"
] | noreply@github.com |
52ff29d17d4c9860ec70d330a6cd99fcc5d6bcdd | ad6ea76d377a7e920ec0ad858195ca2bccc9519f | /day_10/re模块.py | ebbd39c57c82dd43dc2afa5910d19c8da5d3b80b | [] | no_license | wugelihai/month_01 | a4713ba62d1f9d966bde5002c3d08556af0a7c44 | bd33a4008467007b2ad80be8eeb17ed4f43bd6f7 | refs/heads/master | 2023-01-06T18:21:48.329832 | 2020-11-10T10:01:03 | 2020-11-10T10:01:03 | 303,683,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,550 | py | import re
"""
匹配单个字符
"""
# 使用match方法进行操作,匹配不到就会报错
# result = re.match("it", "itcast.cn")
# info = result.group()
# print(info)
# . 匹配任意一个字符,除了\n
# ret = re.match(".", "M")
# print(ret.group())
# ret = re.match("w.o", "weo")
# print(ret.group())
# []匹配中括号中列举的字符
# ret = re.match("[hH]ello", "hello world")
# print(ret... | [
"13955448220@163.com"
] | 13955448220@163.com |
6695fe7d91cb42829879fd44facc222b44f31ffd | 04add342c1ad999a510f4b7f39870d408d038b13 | /0x1C-island_perimeter/0-island_perimeter.py | 4947c615bbe30df52a48440979b021b9ca328262 | [] | no_license | hamdi458/holbertonschool-interview | eca60f762e3089f064c83049a3e0097c59f955b2 | 1a5eea7c5f1556e4bdf23db10e4611ea9ca3c22a | refs/heads/main | 2023-08-07T19:39:39.746020 | 2021-09-24T12:38:10 | 2021-09-24T12:38:10 | 320,259,571 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #!/usr/bin/python3
"""the perimeter of the island described in grid"""
def island_perimeter(grid):
"""returns the perimeter of the island described in grid:
grid is a list of list of integers:
0 represents water
1 represents land
Each cell is square, with a side length of 1
Cells are connected hor... | [
"hamdi.ghorbel645@gmail.com"
] | hamdi.ghorbel645@gmail.com |
0b122012c36b3cd5dad4e207579418712c3535ca | 642e8d6d8cd8d08a73bdcf82ae9689a09284025c | /celery/worker/__init__.py | 96b994779744ff87efee9a3dcbecee7745c8b868 | [
"BSD-3-Clause"
] | permissive | abecciu/celery | 941f29c033b54b766166f17aa8c5e4be05df08b9 | f0c399e34d56c7a2a14cb42bfb2b6455c68ef0c0 | refs/heads/master | 2021-01-14T12:57:11.230199 | 2009-09-10T13:44:51 | 2009-09-10T13:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,215 | py | """
The Multiprocessing Worker Server
Documentation for this module is in ``docs/reference/celery.worker.rst``.
"""
from carrot.connection import DjangoBrokerConnection, AMQPConnectionException
from celery.worker.controllers import Mediator, PeriodicWorkController
from celery.worker.job import TaskWrapper
from celer... | [
"askh@opera.com"
] | askh@opera.com |
4ffcafc58e0e171a78a295d77ad213c80a5bb0e5 | 5d2404f62e58d5fd1f6112744ff32c3166183ac7 | /Exercicios/ex036.py | 6fc9f4561d2c0ecd7c5e81514824facf4042177e | [] | no_license | Leownhart/My_Course_of_python | 236cfc84d841c5883e5aa1cc0c0730e7a9a83c40 | 5abb21f8cdad91ab54247a007d40bf9ecd2cff8c | refs/heads/master | 2020-08-28T15:04:33.628086 | 2020-08-24T19:25:39 | 2020-08-24T19:25:39 | 217,733,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | valorcasa = float(input('Informe o valor da imovel: R$ '))
salcom = float(input('Informe o sálario do comprador: R$ '))
anos = int(input('Informe o tempo de financiamento em anos: '))
valpresta = (valorcasa / anos) / 12 # casa / (anos / * 12)
porcent = salcom * 30.0 / 100
print('Para pagar uma casa de R${:.2f} em {} an... | [
"francisco.amartins.al@gmail.com"
] | francisco.amartins.al@gmail.com |
a9edbeaf88bade93d05aedb3c436f9b864421475 | 5139e63dfbc2b01a10b20bdd283005bfb64bc3e1 | /api/api.py | 998d101f9f00203f1225a882ce89d54334c0ff78 | [] | no_license | Merevoli-DatLuu/SGUInfo | 121098a67128d3ede72ce9f9f51955637c22fb9c | 501d676ad1e02f00573cc879fbba6c44ab1b0ffb | refs/heads/master | 2023-05-26T08:50:41.899513 | 2021-01-11T16:11:45 | 2021-01-11T16:11:45 | 281,350,587 | 4 | 1 | null | 2023-05-22T23:38:11 | 2020-07-21T09:13:00 | Python | UTF-8 | Python | false | false | 1,848 | py | from flask import Flask, render_template, request, jsonify
import sys
sys.path.append("..")
from sguinfo import sguinfo
app = Flask(__name__)
@app.route("/api/v1/students", methods=['GET'])
def get_student_list():
sgu = sguinfo()
if "from_id" in request.args and "to_id" in request.args and "id_list" not in r... | [
"47155364+Merevoli-DatLuu@users.noreply.github.com"
] | 47155364+Merevoli-DatLuu@users.noreply.github.com |
90d5f61f2f9b83db77223e3d0283d7bd46995393 | 741fdf35f1e890f9e4b2c878fe4febf5ca49ca2c | /venv/lib/python3.7/__future__.py | 13fc49f811ca3a58d28b3f073dd5c98abb0ed602 | [] | no_license | kkhuong/provablecard-backend | 39f1430060aa656e178ce86bca92912b0d4ec6ca | 45d91571ba1091a9c9a62ad2cc4ee9ac56e5fb77 | refs/heads/main | 2023-08-07T03:44:31.124974 | 2021-09-22T23:03:23 | 2021-09-22T23:03:23 | 403,407,838 | 0 | 0 | null | 2021-09-22T23:03:24 | 2021-09-05T20:36:14 | Python | UTF-8 | Python | false | false | 52 | py | /Users/kkhuong/anaconda3/lib/python3.7/__future__.py | [
"kkhuong@ucsd.edu"
] | kkhuong@ucsd.edu |
a8694b72dc9f4ac269b718d8c743574a18cfc288 | 1fc45a47f0e540941c87b04616f3b4019da9f9a0 | /tests/sentry/api/endpoints/test_commit_filechange.py | 49eefdcd009d8d4020c56be8b1609185bc95f982 | [
"BSD-2-Clause"
] | permissive | seukjung/sentry-8.15.0 | febc11864a74a68ddb97b146cc1d2438ef019241 | fd3cab65c64fcbc32817885fa44df65534844793 | refs/heads/master | 2022-10-28T06:39:17.063333 | 2018-01-17T12:31:55 | 2018-01-17T12:31:55 | 117,833,103 | 0 | 0 | BSD-3-Clause | 2022-10-05T18:09:54 | 2018-01-17T12:28:13 | Python | UTF-8 | Python | false | false | 2,225 | py | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from sentry.models import Commit, CommitFileChange, Release, ReleaseCommit, Repository
from sentry.testutils import APITestCase
class CommitFileChangeTest(APITestCase):
def test_simple(self):
project = self.create_projec... | [
"jeyce@github.com"
] | jeyce@github.com |
5387260b0ece475f0630b5bce216b990dc590b25 | dbd848387ab3379627e14aaf5cfaa832449b3bda | /tests/test_core_socks_async_trio.py | 13d57e1d3d48e62ce6a282d6f4bf46d12f15ee89 | [] | no_license | Sweety1337/py-socks-updated | 9940b1256eee6db80a9b170574b90d7ccf617dd1 | ddda6575368022107143245787beed90e4a277fa | refs/heads/master | 2022-12-16T21:17:55.894217 | 2020-09-24T14:22:30 | 2020-09-24T14:22:30 | 298,301,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,899 | py | import socket
import ssl
import trio # noqa
import pytest # noqa
from yarl import URL # noqa
from python_socks import (
ProxyType,
ProxyError,
ProxyTimeoutError,
ProxyConnectionError
)
from python_socks._proxy_async import AsyncProxy # noqa
from python_socks.async_.trio import Proxy
from python_s... | [
"noreply@github.com"
] | noreply@github.com |
f9223c6f436ea5266d96716ea00fab8e54ef1232 | f61aa4d5791fc858e52db956f447cfd0af5182cf | /for_loop_with_range.py | d3a11bce07fa0ab64713d62c00d4dc30278ae539 | [] | no_license | AshutoshPanwar/Python_udemy_course | 70abda4418c4532dd886a2b98c0bfb0bc8fbc138 | 7b4698f47a9a80b4cbe07e2334ccc6bc1427118c | refs/heads/master | 2023-04-19T00:02:48.129265 | 2021-05-05T10:23:52 | 2021-05-05T10:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | x = range(5)
print(x)
for i in x:
print(i)
x = range(3,9)
print(x)
for i in x:
print(i)
x = range(0,10,2)
print(x)
for i in x:
print(i)
x = range(10,0,-1)
print(x)
for i in x:
print(i) | [
"ashupanwar1100@gmail.com"
] | ashupanwar1100@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.