blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
768aeb458d3c1a278bb6c13bfb68415378dea271 | 76e931912629c37beedf7c9b112b53e7de5babd7 | /2-mouth02/day09/insert_many.py | f985b8313dcbcd47dce05b6061d60655455b3c3e | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import pymysql
db_dic = {
"host": "localhost",
"port": 3306,
"user": "root",
"password": "123456",
"database": "gary",
"charset": "utf8"
}
# 链接数据库
db = pymysql.connect(**db_dic) # 一个链接口
# 创建游标 游标对象:执行sql得到结果的对象
cur = db.cursor() # 打开完成
# 操作数据
list1 = [
("张三", 21, 'male', 65),
... | [
"673248932@qq.com"
] | 673248932@qq.com |
b69d77cf2d656cfdd59cd2d926c4ff2a3d3b483e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_85/45.py | 6c238130b6c65c8e115cbd376dfa2b64f752cdeb | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | def dist_at(a,c,dist):
return dist[a%c]
def normal_time(n,c,dist):
time = 0
for star in xrange(0,n):
length = dist_at(star,c,dist)
time += length*2
return time
def solve():
test = int(raw_input())
for case in xrange(1,test+1):
dist = []
input = map(int,raw_input().split())
for i in xrange(0,len(input... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
cb6cde984e9367c6b77787362767d0684e97c498 | 11bb0cbe6de2a0a4e94fc0ba610f61894d5593a1 | /VBS_Zgamma/AQGC/combine/run/zz/test/th2_to_txt.py | 9f8455d301e3b0c8e56d9350a9029ec067096327 | [] | no_license | AnYpku/PKU-Cluster | 0dc4a88445aeb3ca239b2d7d7f796c6a67f3f69c | f9ffbcb7988053f4618fd015c1bb656d92ff51c6 | refs/heads/master | 2022-11-01T23:46:59.442037 | 2022-10-21T06:37:43 | 2022-10-21T06:37:43 | 188,202,345 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | #!/usr/bin/env python
from ROOT import gROOT, THStack, TH1D, TList, TFile, TH1F
print '-----begin to transfer TH2D to txt for Higgs-combine tool----- \n'
f1 = TFile.Open("chAll.root")
th1_ZA_sig = f1.Get("diboson")
th1_ZA = f1.Get("QCD_gg")
th1_non_prompt = f1.Get("QCD_qq")
print '>>>>begin to read bin content to ... | [
"ying.an@cern.ch"
] | ying.an@cern.ch |
c755e0f999df38cc3bc6191386c7b4da163fc42e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_1/Python/YeOldeLancer/d___stra.py | f523443b1ff964dc7109509426fe56b1cce4791e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | # Google Code Jam 2015, Qualification Round
# Problem C. Dijkstra
# Lance C. Simons
def dijkstra_eval(s):
if s.startswith("-"):
d = dijkstra_digit(s[:2])
else:
d = dijkstra_digit(s[0])
for c in s[1:]:
d = d * c
return d
class dijkstra_digit:
mtable = {"1":{"1": "1", "i": "i", "j": "j... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
dffce93acf81be40e78272c45459c21d33a2780a | 3ff28c714fef7f568e8dfce0a2d4a16d6d10e8ef | /Using Python to Access Web Data - University of Michigan/get_contents_between_tags.py | 86f3d5bb546264bc8aadff7a06c6be873c6ea2f3 | [] | no_license | avishkakavindu/Fun-Times | a0325c045a3d9316fd00d1c9b025a994498762d5 | 6861558c668892ce2a0b1b37ecfac30883f0f3b5 | refs/heads/master | 2022-08-13T15:23:22.939576 | 2020-05-22T10:18:30 | 2020-05-22T10:18:30 | 264,172,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import ssl
# Ignore SSL certificate errors
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
url = input('Enter - ')
html = urlopen(url, context=ctx).read()
soup = BeautifulSoup(html, "html.parser")
# Retriev... | [
"avishkakavindud@gmail.com"
] | avishkakavindud@gmail.com |
c8e6c842ce09125be40f318e5d67694aa1bf17f4 | 91e18177b07a842b84863cee8cad118666107b4b | /schedule/migrations/0001_initial.py | 59d213cde1acd6355cf40fbd8e7f4b4590b2abd1 | [] | no_license | HyeonGyuChi/NewBeTon_2019 | 6c55797af34715a803cf4eee245b1c7b77584f2a | 1d93bdaec9dbf1eb82ea689eb01b106e835d373f | refs/heads/master | 2020-05-19T08:21:20.622579 | 2019-05-05T00:43:19 | 2019-05-05T00:43:19 | 184,919,650 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | # Generated by Django 2.2.1 on 2019-05-04 15:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"hyeongyuc96@gmail.com"
] | hyeongyuc96@gmail.com |
ea87a335075397221ad96fc8a450587dcbe0c2c2 | 273eb20546083f0e23a8077a3f6d383ed37ffef6 | /Bricks/Qt4_MultipleMotorsBrick.py | dda64ad67cca45f17bcc363e8cba0386acbdb934 | [] | no_license | douglasbeniz/BlissFramework | fd886b161b9ba6f246424b1352a99820303d48aa | 11486d6c91fc0077e967cb2321743466a7c1aa8b | refs/heads/master | 2021-01-24T15:22:54.876055 | 2017-09-21T19:12:44 | 2017-09-21T19:12:44 | 55,637,790 | 0 | 0 | null | 2016-04-06T20:20:11 | 2016-04-06T20:20:11 | null | UTF-8 | Python | false | false | 4,972 | py | #
# Project: MXCuBE
# https://github.com/mxcube.
#
# This file is part of MXCuBE software.
#
# MXCuBE 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 License, or
# (at your optio... | [
"ivars.karpics@gmail.com"
] | ivars.karpics@gmail.com |
d54f685c7714a72608acb26e0491b4540d60859f | 220b79a0c02d43817a5fe4fb0d73e6061507f09d | /mlflow_tools/display/list_model_versions.py | d5bc037b0d944561b8595a72e0d5665b6990dffc | [] | no_license | amesar/mlflow-tools | 7ae5976297545417f5974f418028246e3d74da5f | 2e7282397e9d3a29b4c30aae8ee5d26511d9ab15 | refs/heads/master | 2023-07-25T12:54:01.087785 | 2023-07-25T01:44:54 | 2023-07-25T01:44:54 | 232,914,433 | 34 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | """
List all registered models versions.
"""
import click
from tabulate import tabulate
from mlflow_tools.common.click_options import opt_sort_attr, opt_sort_order, opt_columns, opt_output_csv_file
from mlflow_tools.api import api_factory
from mlflow_tools.display.display_utils import process_df
pandas_api = api_fact... | [
"amesar@users.noreply.github.co"
] | amesar@users.noreply.github.co |
1976cf0f7d94870552d7607100e8d9e5a7980f1f | a1c166a1ac4782f1f0792e0fd21741360373b376 | /frontEnd/widgets/commodity_tree.py | f2d1ae1f2f4111d1292e37489fab3a0caa3674f6 | [] | no_license | xiaomapython/QlaskExplor | 3c7b75866b8276a5c2de3fbfddf779e1a66691d0 | c8b1757d08d06d350f7ca41897bbf4378fde3911 | refs/heads/master | 2020-06-23T08:08:45.169160 | 2019-05-15T02:05:17 | 2019-05-15T02:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | # _*_ coding:utf-8 _*_
# company: RuiDa Futures
# author: zizle
"""目录树组件"""
from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import Qt, pyqtSignal
from settings import MEDIA_PATH
class Tree(QTreeWidget):
variety_click_signal = pyqtSignal(str) # 品种被点击信号槽
... | [
"zizle_lin@163.com"
] | zizle_lin@163.com |
1428a143a04dea36c997dcea9eae210a8267879d | ddd18c78b27b9c85629feeab6914fc925aea9099 | /practice19c.py | 084a5e674ea8d90e9b0c68ad3070cbca3f20330d | [] | no_license | harmansehmbi/Project19 | 7e6331050599db2d33f1c20aef5ad13c5d7a17a8 | 6c000d05bbc397132e9fe13a48f89b57b48b70da | refs/heads/master | 2020-06-13T04:38:55.514033 | 2019-06-30T16:28:13 | 2019-06-30T16:28:13 | 194,537,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | import numpy as np
arr1 = np.array([(8, 9), (10, 12), (13, 14)])
print(arr1[0:2, 1])
arr2 = np.array([10, 20, 30])
print(arr2.min())
print(arr2.max())
print(arr2.sum())
arr3 = np.array([(1, 2, 3), (4, 5, 6)])
print(arr3.sum(axis=0))
arr4 = np.array([(4, 9, 16), (11, 13, 15)])
print(np.sqrt(arr4))
print(np.std(arr4)... | [
"51370954+harmansehmbi@users.noreply.github.com"
] | 51370954+harmansehmbi@users.noreply.github.com |
83a7906165e04bf8bb596c05be03851eaf23994e | 8f205d31e8e5555d69e0a7db086a3c93de6d2806 | /kube/task_generation/merge_ccs.py | 0668da5478328e17e92f72b24c014457c97dc7cc | [
"MIT"
] | permissive | torms3/Synaptor | 94e0f04478118399db91d79a8a8b478858fd4138 | 5de74aa61b3d04e88e6bc4c336d543f89d64b9a4 | refs/heads/master | 2021-05-21T19:08:43.625841 | 2020-06-19T23:10:47 | 2020-06-19T23:10:47 | 252,764,824 | 0 | 0 | NOASSERTION | 2020-04-03T15:03:17 | 2020-04-03T15:03:16 | null | UTF-8 | Python | false | false | 600 | py | import argparse
from taskqueue import TaskQueue
import synaptor.cloud.kube.parser as parser
import synaptor.cloud.kube.task_creation as tc
def main(configfilename):
config = parser.parse(configfilename)
task = tc.create_merge_ccs_task(
config["storagestrs"][0], config["szthresh"],
... | [
"nturner.stanford@gmail.com"
] | nturner.stanford@gmail.com |
ff086b9a60930c6eb551f1675b66986afed25460 | 8602a87e12fe19b28c2e85cfae0bbde27a62855d | /ingenico/connect/sdk/domain/errors/definitions/api_error.py | 378aba23c91ae36081a6e7f6901cce6727671a09 | [
"MIT"
] | permissive | king1212/connect-sdk-python2 | 6a687de7967a411fa802477069c7fc7079d059c2 | 203982559c5c10e3dbbb9dfc71123c269908ed26 | refs/heads/master | 2021-07-04T03:10:55.061416 | 2017-09-27T09:29:49 | 2017-09-27T09:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | # -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
from ingenico.connect.sdk.data_object import DataObject
class APIError(DataObject):
__category = None
__code = None
__http_status_code = None
__id = N... | [
"jenkins@isaac.nl"
] | jenkins@isaac.nl |
416bdd664c7972904f6b0112f4f041b2123c7141 | 057a85e94d7a284cda900e6c89bd3da6402206e8 | /tools.py | fcc935962c53518d1ff2d416c1eec10895975b9e | [
"MIT"
] | permissive | nusratsharmin/AFQ-notebooks | 9eb5662dc46a1b67d379f5a6227667272f195184 | de4e2a9fce6f7f3134a2d362e55d3c6ba44fd3a0 | refs/heads/master | 2020-12-31T01:23:24.088489 | 2015-08-05T19:24:54 | 2015-08-05T19:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | import numpy as np
from dipy.align.metrics import CCMetric, EMMetric, SSDMetric
from dipy.align.imwarp import SymmetricDiffeomorphicRegistration
metric_dict = {'CC': CCMetric,
'EM': EMMetric,
'SSD': SSDMetric}
def syn_registration(moving, static, moving_grid2world=None, static_grid2world... | [
"arokem@gmail.com"
] | arokem@gmail.com |
200340de9c7d3d668b43028bd73db5ca64648433 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03282/s933456835.py | 554270dfd4662d9ae4de392ee9c913edc15fbb2a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | s=input()
k=int(input())
c=0
for i in range(len(s)):
if s[i]=="1":
c+=1
else:
break
if k<=c:
print("1")
else:
print(s[c]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dd8c33559a0eae9643ac31ea199756615170cc53 | 985242058ea4cdc7f42dde4ff60ec96e19669ef0 | /aleph/analyze/polyglot_entity.py | 2547d9b2a9c6344486e03e65477aa4a67c7c4c1f | [
"MIT"
] | permissive | KarrieK/aleph | 4f4eff8892e145f1b0ad085bca45a19382854150 | d8c1895339c1bfd3ad265237feb411cef9dd114b | refs/heads/master | 2021-04-28T07:34:03.385829 | 2018-02-16T16:41:56 | 2018-02-16T16:41:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | from __future__ import absolute_import
import regex
import logging
from polyglot.text import Text
from polyglot.downloader import downloader
from normality import collapse_spaces
from aleph import settings
from aleph.analyze.analyzer import Analyzer
from aleph.model import Document, DocumentTag, DocumentTagCollector
... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
3cd48988c3167fcab3f06686d166211a8933beca | 9791c7cd589c5c53aa7e1dbf929d69ba99f7c526 | /myapp/migrations/0001_initial.py | ac89857986b89af875fefb96ade4f759a637aabe | [] | no_license | okprogrammer/Calener-App | 3d717ff9eac3e8ddebd6f0b5e95caf513e3fa429 | a15e71eebed670b7203960e86f88e8da92dca1b7 | refs/heads/master | 2020-03-06T23:44:54.761954 | 2018-03-30T12:34:59 | 2018-03-30T12:34:59 | 127,140,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Generated by Django 2.0.2 on 2018-03-28 17:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Entry',
fields=[
('id', models.AutoField(au... | [
"omk7912@gmail.com"
] | omk7912@gmail.com |
ac28828be9a051149f7f7ae8b2cefe16d974f496 | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/qualys/Scripts/QualysCreateIncidentFromReport/QualysCreateIncidentFromReport.py | c2f994a169a3651f86f8693d07c61805e6dc09f8 | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 5,183 | py | import json
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def get_asset_id_for_ip(ip):
resp = demisto.executeCommand("qualys-host-list", {"ips": ip})
if isError(resp[0]):
demisto.results(resp)
sys.exit(0)
if isinstance(resp_dict := resp[0], di... | [
"noreply@github.com"
] | adambaumeister.noreply@github.com |
c235d6570542073a628b108ff849420cd261fbff | 19375a18719e44eee7c596e72ef8915d3fcbff92 | /day02_spider/07_pymongo.py | 5f075d08ba8928c549c17868f7535f1d3477baa2 | [] | no_license | J-shan0903/AID1912 | 6c617fa26751c31ff05a63050a320122e3ca044e | 0797f3d8ef0e96b8eb6908dffbec8193c9614973 | refs/heads/master | 2021-03-23T12:21:32.480026 | 2020-05-23T08:36:21 | 2020-05-23T08:36:21 | 247,452,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import pymongo
conn = pymongo.MongoClient('localhost', 27017)
db = conn['maoyandb']
myset = db['maoyanset']
myset.insert_one({'name': '战狼', 'star': '123', 'time': '2017-2-15'})
| [
"369618935@qq.com"
] | 369618935@qq.com |
fd159e49eeca3c25d2f16637e57bd79297ec1b34 | 63428f4bec80630523355f8a05bcbdbb1cf31dbf | /lambda/pseudotest/upload_results.py | de10c76d32ed2589bc3cb081079f381d85a27488 | [] | no_license | pniedzwiedzinski/pseudotest | fe314222619ebae55467acf4def14fa5619ad2eb | 011800879cac43ded439370fa9ed8539f8e98ae5 | refs/heads/master | 2021-07-05T09:30:36.203945 | 2019-12-02T10:03:19 | 2019-12-02T10:03:19 | 182,046,647 | 2 | 2 | null | 2020-10-01T07:08:10 | 2019-04-18T08:19:19 | Python | UTF-8 | Python | false | false | 250 | py | import os
import pymysql
from .db import execute
def upload_results(results, job_id):
execute(
"UPDATE pseudo_test_score SET score = %s WHERE file_id = %s",
(pymysql.escape_string(results), pymysql.escape_string(job_id)),
)
| [
"pniedzwiedzinski19@gmail.com"
] | pniedzwiedzinski19@gmail.com |
a6918cdd6386b5e72a785cdeaabed8970021c91c | 15240e0e187788f1114cac98c534004ab4793cbf | /influxdb_client/domain/telegraf_plugin_output_file_config_files.py | 38f742691f37962daf3966ab2ea0118da675af41 | [
"MIT"
] | permissive | semyont/influxdb-client-python | dddb6a1309fd424c9b1e0bec7c67a442cfcfe0b5 | 7b685fda2030b22697b6096cc3161fbbc01e7bee | refs/heads/master | 2020-09-19T18:39:52.132739 | 2019-11-27T07:11:23 | 2019-11-27T07:11:23 | 224,266,106 | 2 | 0 | MIT | 2019-11-26T19:06:17 | 2019-11-26T19:06:09 | null | UTF-8 | Python | false | false | 3,738 | py | # coding: utf-8
"""
Influx API Service
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Tele... | [
"robert.hajek@gmail.com"
] | robert.hajek@gmail.com |
b484145d63d254f278fb2c36cbab484831c7e745 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02984/s206130983.py | f20b1996e5c69cf6026085eef48328162e7f21d4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | N = int(input())
A = list(map(int, input().split()))
now = sum(A)
for i in range(N//2):
now -= 2*A[2*i+1]
for a in A:
print(now, end=' ')
X = 2*a - now
now = X
print()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9db46716b6f44e4912f2a47e91a80b23070e5d7f | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019102708.py | 61f5e48858ce8dbe0af570ab942e18fa784b868b | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from wagtail.core import blocks
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
label = 'Tytuł'
help_text = 'Wyśrodkowany tek... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
b2792f1e2803d83a7bd248ee8ea357b94ed0badb | 8c6816435093cb8e9e45593d3ffdd67028a011b6 | /Tree/is_valid_bst.py | 7a38d7d17976d7e01ce6e8b7a4be9e91ad0e5208 | [] | no_license | Keeady/daily-coding-challenge | 6ee74a5fe639a1f5b4753dd4848d0696bef15c28 | 31eebbf4c1d0eb88a00f71bd5741adf5e07d0e94 | refs/heads/master | 2020-03-27T07:58:05.713290 | 2019-03-08T15:03:05 | 2019-03-08T15:03:05 | 146,210,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import sys
class Solution:
def isValidBST(self, root):
if not root:
return True
return self.isValidSubTree(root, -sys.maxsize -1, sys.maxsize)
def isValidSubTree(self, root, min, max):
if root is None:
return True
if root.val > min and root.val < max:
... | [
"cbevavy@datto.com"
] | cbevavy@datto.com |
c6dfc35a86ffd65768a932003f5e30de191624e6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YDgtdP69Mn9pC73xN_7.py | 204a19d7df1cb840639dc9daeacb8f81fa7f26df | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | """
This challenge is based on the game Minesweeper.
Create a function that takes a grid of `#` and `-`, where each hash (#)
represents a mine and each dash (-) represents a mine-free spot. Return a list
where each dash is replaced by a digit indicating the number of mines
immediately adjacent to the spot (horizont... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ede9675c9b6afbc4a54e4081f519e4ef3376ae81 | e65d16ea1e8d412bac75a809be6d390126bdf528 | /tests/components/remote/test_device_action.py | d652f4d869d060039e222b8a6d3d595b5bec83bd | [
"Apache-2.0"
] | permissive | syssi/home-assistant | 6347d57866cb16ab9d4499ad38e2be6f0399077f | fd43687833741b21221769d46b4d1ecef8a94711 | refs/heads/dev | 2023-08-17T09:31:52.680518 | 2023-06-11T14:22:12 | 2023-06-11T14:22:12 | 97,874,495 | 6 | 16 | Apache-2.0 | 2023-09-13T06:31:21 | 2017-07-20T20:12:37 | Python | UTF-8 | Python | false | false | 6,168 | py | """The test for remote device automation."""
import pytest
import homeassistant.components.automation as automation
from homeassistant.components.device_automation import DeviceAutomationType
from homeassistant.components.remote import DOMAIN
from homeassistant.const import CONF_PLATFORM, STATE_OFF, STATE_ON, EntityCa... | [
"noreply@github.com"
] | syssi.noreply@github.com |
3a15a5b18a062442591358d0a5eb5d0c26f7290e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /MojpPTZYQyN5L2i4a_5.py | 82668008b83f18c70018cafee43b7e375d184f1a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | """
You work in a toy car workshop, and your job is to build toy cars from a
collection of parts. Each toy car needs 4 wheels, 1 car body, and 2 figures of
people to be placed inside. Given the total number of wheels, car bodies and
figures available, how many _complete_ toy cars can you make?
### Examples
car... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cdd263ea94ba391933c5aa44be7a4aad74ca9bdb | f854751c12afc48401ddcf0590ea70c72a2b7c58 | /Canny_findContours.py | a1faaabc01f51f5dea466c49023c70c3d4fcf9d0 | [] | no_license | mu-777/image_processing_tests | 4326ebe3b321f9b900a02b63d0a3189659439244 | 2b6ee72e10065fd2dfb1b7e430bf5ccfc26a0c95 | refs/heads/master | 2021-01-17T10:21:09.473142 | 2016-03-18T13:00:41 | 2016-03-18T13:00:41 | 42,449,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,260 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# アニメ顔分類器
# https://github.com/nagadomi/lbpcascade_animeface
# 動画で検出サンプル
# http://www.takunoko.com/blog/python%E3%81%A7%E9%81%8A%E3%82%93%E3%81%A7%E3%81%BF%E3%82%8B-part1-opencv%E3%81%A7%E9%A1%94%E8%AA%8D%E8%AD%98/
import cv2
import numpy as np
import time
# カスケード分類器の特徴... | [
"ryosuke.murata.7@gmail.com"
] | ryosuke.murata.7@gmail.com |
38345091f0f4fc6d048048415eef8af7eff32537 | 914ca4921c114c917267214e0987ebecf30b3510 | /Programming_Practice/Python/Python_Scraping/Scraping_004/open_api_2.py | 0729766be8fd65dbcdf4e6bca7e239c092a0c883 | [] | no_license | BurnFaithful/KW | 52535030ea57f1489a0d108d599b66ffee50a1f4 | 15deb50449b8f902f623f20b97448c0f473a9342 | refs/heads/master | 2022-12-20T16:06:01.827398 | 2020-09-12T08:51:23 | 2020-09-12T08:51:23 | 294,897,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from urllib.parse import quote
import requests
import bs4
endpoint = "http://apis.data.go.kr/B552657/ErmctInsttInfoInqireService/getParmacyListInfoInqire?"
serviceKey = "xqhT19uqLKmUuUxiUk6By%2FkUkZHlqQfalicqhc3oYnPy4KoA%2FK%2BM8EQVYGOaBBtfRMfqs6SQ1ei%2F8VPZgE6VlA%3D%3D"
Q0 = quote("서울특별시") # 한글 인코딩 메서드
# Q1 = quote(... | [
"burnfaithful@gmail.com"
] | burnfaithful@gmail.com |
b78217f75d6e278638d0e9c281e604eab9e625fd | a8750439f200e4efc11715df797489f30e9828c6 | /LeetCodeContests/93/871_minimum_refill_required.py | 8573ce433e9d77f48451ccfa85747b65c8a1c2b3 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,408 | py | '''
871. Minimum Number of Refueling Stops
User Accepted: 234
User Tried: 563
Total Accepted: 247
Total Submissions: 1546
Difficulty: Hard
A car travels from a starting position to a destination which is target miles east of the starting position.
Along the way, there are gas stations. Each station[i] represents a gas... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
95223a9cb75f866ad335207924223e191993dc69 | 71e18daf9e567792a6ce1ae243ba793d1c3527f0 | /ApplicationsAlgo/maze.py | 67d5c62ac216e8e824085d0bc616c55b195917da | [] | no_license | ohjooyeong/python_algorithm | 67b18d92deba3abd94f9e239227acd40788140aa | d63d7087988e61bc72900014b0e72603d0150600 | refs/heads/master | 2020-06-22T18:10:41.613155 | 2020-05-27T13:12:03 | 2020-05-27T13:12:03 | 197,767,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | def solve_maze(g, start, end):
qu = [] # 기억 장소 1: 앞으로 처리해야할 이동 경로를 큐에 저장
done = set() # 기억 장소 2: 이미 큐에 추가한 꼭짓점들을 집합에 기록
qu.append(start)
done.add(start)
while qu: #큐에 처리할 경로가 남아있으면
p = qu.pop(0) # 큐에서 처리 대상을 꺼냄
v = p[-1] # 큐에 저장된 이동 경로의 마지막 문자가 현재 처리해야할 꼭짓점
print('---')
... | [
"brb1111@naver.com"
] | brb1111@naver.com |
e507584e2e9212c610c211af0fbe2ff4b93f932e | 5173c3e3956387a3f2ae8fcf4aed7c7a600dac78 | /Programmers/Programmers_카펫.py | 3db67116d2c77a7a87b7fe9e13797f0a6d27976f | [] | no_license | ma0723/Min_Algorithm | df75f53f6e89b7817d4b52d686effb8236a4ddac | b02d1043008cb32e22daa9d4207b9a45f111d66f | refs/heads/master | 2023-07-25T11:00:15.397093 | 2021-08-30T02:08:05 | 2021-08-30T02:08:05 | 375,613,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | def solution(brown, yellow):
answer = []
# 노란색과 갈색으로 색칠된 격자의 개수
y_lst = []
for i in range(1, yellow+1):
# 1부터 yellow 개수까지
if yellow%i==0:
# 노란색 직사각형 경우의 약수들의 집합 (나누어 떨어지는 경우)
# 24 (1, 24) (2, 12) (3, 8) (4, 6) 등 중복 제거
row = yellow//i
col = i
... | [
"ma0723@naver.com"
] | ma0723@naver.com |
ecdd5dd43ced15b6ba50c76d6d12a296b7c3b2dc | 529e713a78e82de2ae5d44cfb8ef209e0894d72a | /arcade-platformer/arcade_platformer/01_game_skeleton.py | 862af40f1113621b43a6afd046e81429f8a5f7f8 | [
"MIT"
] | permissive | realpython/materials | cd2f548276be2c82f134ca03eadb1cd279e0f26e | d2d62756d3854f54a12a767f2bf9470486c0ceef | refs/heads/master | 2023-09-05T22:12:29.806738 | 2023-08-31T20:56:28 | 2023-08-31T20:56:28 | 132,374,697 | 4,678 | 6,482 | MIT | 2023-09-12T22:22:06 | 2018-05-06T20:46:18 | HTML | UTF-8 | Python | false | false | 1,217 | py | """
Arcade Platformer
Demonstrating the capbilities of arcade in a platformer game
Supporting the Arcade Platformer article on https://realpython.com
All game artwork from www.kenney.nl
Game sounds and tile maps by author
"""
import arcade
class Platformer(arcade.Window):
def __init__(self):
pass
... | [
"jfincher42@gmail.com"
] | jfincher42@gmail.com |
10460745daf408d4f3cb18983ec6bad8fdd4a296 | 88bf6991bc8f291e16b792df729d58d7eeee1b2b | /proteome_tools_data/prep.py | ff3521cb31d81fe8771efab91ef33a15cf6b2e0c | [] | no_license | MatteoLacki/proteome_tools_data | 7ac3c335831911adab116cf6ce0bb08e785e733c | 84101923f95787d1ac48e47101b94b22b3301667 | refs/heads/master | 2020-08-05T02:21:06.805640 | 2019-10-29T12:16:01 | 2019-10-29T12:16:01 | 212,360,930 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | """Prepartion of files done on Linux. Execution on Windows."""
from pathlib import Path, PureWindowsPath as PWP
import pandas as pd
import json
import re
pd.set_option('display.max_rows', 4)
pd.set_option('display.max_columns', 100)
pd.set_option('display.max_colwidth', -1)#display whole column without truncation
net... | [
"matteo.lacki@gmail.com"
] | matteo.lacki@gmail.com |
36452b274c24a8d85cfad2937c0a5943990eea13 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/access_context_manager/levels/update.py | f22234640a48085e7e67ec5bc155d8fda74563b6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 2,453 | py | # -*- coding: utf-8 -*- #
# Copyright 2018 Google LLC. 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 requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
228600e7a43d9390eb83a4bc4a96de585a9e6f59 | a7596165a29e5186bc6c4718e3b6e835939b105d | /desktop/libs/libsolr/src/libsolr/conf.py | dbc65d6d5d35fa9bcc38744608dcae449b9ad21d | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera |
c39fd1ca1f556f4ee4250827d5a78b0030d68abf | 6da0547afcecb3444d0b429161e46bc5a38e14ab | /demo_project/urls.py | 5e53e90908206cd1f6045e53f5f990be0f0c1e38 | [] | no_license | rashidhamid139/DjangoCustomAdmin | 53e440071a31d3ab6cff308c404ba89cc40cd6a0 | 3b01f38201754ae1370684cafb58f4005e5c8b35 | refs/heads/master | 2022-06-17T10:15:34.213179 | 2020-05-11T15:12:09 | 2020-05-11T15:12:09 | 261,787,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('email/', include('sendemail.urls')),
path('posts/', include('posts.urls')),
path('', include('pages.... | [
"rashidhamid139@gmail.com"
] | rashidhamid139@gmail.com |
171cc337c57713480ffad953a757cb65ff9424ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03646/s301674634.py | c91b7b40947c4be6233524eaca5442719d6c84a0 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import sys
def main():
input = sys.stdin.readline
K=int(input())
N=max(2,min(50,K))
ans=[i+K//N for i in range(N)]
m=K%N
for i in range(m):
for j in range(N):
if i==j: ans[j]+=N
else: ans[j]-=1
print(N)
print(*ans)
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e89f1bc3975c4e316d484945057a258863a59f6e | dd35833bead7de2f2ca7affd985ac0d345b2ab6e | /apps/useroperation/views.py | 57349580d24bee20652e0332cd757dbe46a503ec | [] | no_license | lhsheild/MxShop | df14c11aa7457f304194ff099a35869d83f0d9a7 | 811be4dad55284e737c80ebd4d00c079837393f2 | refs/heads/master | 2020-05-27T16:23:00.578686 | 2019-09-10T08:09:01 | 2019-09-10T08:09:01 | 188,130,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | from rest_framework.authentication import SessionAuthentication
from rest_framework.mixins import CreateModelMixin, DestroyModelMixin, ListModelMixin, RetrieveModelMixin
from rest_framework.permissions import IsAuthenticated
from rest_framework.viewsets import GenericViewSet, ModelViewSet
from rest_framework_jwt.authen... | [
"lhsheild@yahoo.com"
] | lhsheild@yahoo.com |
56885001d9dcf999407005b8ba85693c10b09566 | bd0dc9a8d24863f7353c4124ce7e3c6b25e94910 | /test/test_sampling.py | e91fe37a33293f41c5d7049f2544d29df6d104b3 | [
"BSD-3-Clause"
] | permissive | qbektrix/profiling | 6cdc7a07a10955e993988217a720509bd4b961c4 | 89d1bc572c2502e02aeb822134453fd8d228e526 | refs/heads/master | 2021-01-21T00:53:25.880636 | 2015-08-26T15:00:39 | 2015-08-26T15:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | # -*- coding: utf-8 -*-
from __future__ import division
import sys
import pytest
from profiling.sampling import SamplingProfiler
from profiling.sampling.samplers import ItimerSampler, TracingSampler
from utils import find_stats, spin
def spin_100ms():
spin(0.1)
def spin_500ms():
spin(0.5)
def _test_samp... | [
"sub@subl.ee"
] | sub@subl.ee |
0b7bab2ef4cad9a4121b6af03e00f73434566b2c | 69be26f4fd44ed3bac1c9dd0941e435b2b2728af | /backend/products/urls.py | b93ad9e8922f0977eae8878c66380ab40a41d404 | [] | no_license | mahidulmoon/djreact-e-commerce | 0078598ab2327e4ef5b992c1fd8f202aca4c705e | 0fb7d50b408710d90af43db9326d9fff6b03804f | refs/heads/master | 2023-02-15T10:55:14.830589 | 2020-05-20T16:45:27 | 2020-05-20T16:45:27 | 265,608,114 | 1 | 0 | null | 2021-01-06T02:55:27 | 2020-05-20T15:28:50 | JavaScript | UTF-8 | Python | false | false | 293 | py | from django.urls import path,include
from rest_framework import routers
from .views import ShirtViewset,MobileViewset
router = routers.DefaultRouter()
router.register('shirtlist',ShirtViewset)
router.register('mobilelist',MobileViewset)
urlpatterns = [
path('',include(router.urls)),
]
| [
"mahidulmoon@gmail.com"
] | mahidulmoon@gmail.com |
2c6e7507e4d055e36773baca642ec3c3dab8cc84 | 5a4d5ee624b375ece06fda1467afe18beb69c14b | /Algorithm/BOJ/12865.knapsack.py | 2825339abbe9002cecb181cc88098d9982880547 | [] | no_license | Knightofcydonia51/TIL | cd10dab949659bc827118ee42b25d926336dce23 | 78d7e8617f4abed9932a557c12e68bd950f8230d | refs/heads/master | 2022-12-26T00:10:06.262200 | 2022-05-26T01:12:32 | 2022-05-26T01:12:32 | 195,938,010 | 0 | 0 | null | 2022-12-16T01:03:09 | 2019-07-09T05:22:49 | Python | UTF-8 | Python | false | false | 549 | py | import sys
sys.stdin=open('12865.knapsack.txt')
N,K=map(int,input().split())
stuffs=[list(map(int,input().split())) for x in range(N)]
dp=[[0 for x in range(K+1)]for y in range(N+1)]
# N : 물건 개수 K : 배낭 크기
for k in range(1,N+1):
for j in range(K+1):
# j가 k번째 물건의 무게와 같아지기 시작할 때부터 끝까지
weight,value... | [
"leavingwill@gmail.com"
] | leavingwill@gmail.com |
f8191ca72ddf845194adef5e0ffa2088accb0580 | a0784b1a66a6c1a89ee8a75e32cd48d2c168931b | /extras/tools/rst_tokens.py | 9c3614127a376786a554d7277a8ff3cbca89df9c | [
"MIT"
] | permissive | cltrudeau/purdy | ebe5d8b556dadc0a4eb04018826c066b83617f71 | 4ff2d5b33771266d46260ee9ba6503bb4895ab2f | refs/heads/master | 2023-07-08T08:23:08.409053 | 2023-06-29T21:37:29 | 2023-06-29T21:37:29 | 210,162,520 | 10 | 3 | MIT | 2021-03-10T21:55:26 | 2019-09-22T14:40:17 | Python | UTF-8 | Python | false | false | 645 | py | #!/usr/bin/env python
import argparse
from pygments.lexers.markup import RstLexer
# =============================================================================
parser = argparse.ArgumentParser(description=('Prints out the tokens '
'generated by pygments.lexers.markup.RstLexer'))
parser.add_argument('files', ... | [
"ctrudeau@arsensa.com"
] | ctrudeau@arsensa.com |
a30101b7f38ba1fddd661a493cdcfae8287a25d6 | b6bcaae5169cf20a84edafae98ba649dab6fc67c | /crowdsourcing/migrations/0034_auto_20150817_2049.py | b473f2c71a406fed6d27fb1b2fe3e7e97180cfcc | [
"MIT"
] | permissive | shriyanka/daemo-forum | b7eb84a46799d8c6bcb29a4f5c9996a3d2f40351 | 58c555f69208beedbb0c09f7b7d1e32ab741b2c5 | refs/heads/master | 2023-01-12T05:13:48.804930 | 2015-09-20T01:52:29 | 2015-09-20T01:52:29 | 40,193,653 | 1 | 0 | MIT | 2022-12-26T19:49:24 | 2015-08-04T15:42:57 | Python | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('crowdsourcing', '0033_templateitem_position'),
]
operations = [
migrations.AlterField(
model_name='templateitem'... | [
"vnarwal95@gmail.com"
] | vnarwal95@gmail.com |
0e39f0a5b1327cea53f1645eb0d644c1a1759991 | 64eb1cfb19e01c629c3ef7fc40fe4dd4dda078ff | /pyunitgrading/testrunner.py | 3da1d1b15800f8a8b6123cde32e0ee8209a01f7d | [
"BSD-3-Clause"
] | permissive | stevecassidy/pyunitgrading | 2406942d6fb851a5576da0155cac7410687f5ff4 | 183677f89f385201dd54959b4bc84a6236cee59e | refs/heads/master | 2023-03-15T17:21:13.564061 | 2022-03-03T23:38:03 | 2022-03-03T23:38:03 | 32,105,841 | 0 | 1 | BSD-3-Clause | 2023-03-14T01:00:56 | 2015-03-12T22:16:10 | Python | UTF-8 | Python | false | false | 7,487 | py | """
run unit tests for a set of student submissions downloaded from iLearn (moodle)
"""
import unittest
import os
import traceback
import sys
import importlib
import imp
import multiprocessing
import re
import shutil
import csv
if sys.version_info < (3,0):
from ConfigParser import ConfigParser
else:
from co... | [
"steve.cassidy@mq.edu.au"
] | steve.cassidy@mq.edu.au |
f7729591d5635a1da2b4fe884e44539a6aa15cd9 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FEK7892zgj4nPJvkE_4.py | 6ec575bba1998ca7103a7d9ed80a1478a9fb8052 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py |
def primes2(n):
""" Input n>=6, Returns a list of primes, 2 <= p < n """
n, correction = n-n%6+6, 2-(n%6>1)
sieve = [True] * (n//3)
for i in range(1,int(n**0.5)//3+1):
if sieve[i]:
k=3*i+1|1
sieve[ k*k//3 ::2*k] = [False] * ((n//6-k*k//6-1)//k+1)
sieve[k*(k-2*(i&... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
276f391bee58142fcfb697ca4d76631818bcd5f4 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/list_topics_response.py | 8df5bc3f28136681613fcee4eb2ec78edaee20f2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,583 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListTopicsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the valu... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a2d04d53f2ed1214f12315065171a637a70f1949 | 841c0df958129bef4ec456630203992a143c7dc7 | /src/15/15726.py | ea66bee86e5bafd68fe9975425375b2326cc0ab2 | [
"MIT"
] | permissive | xCrypt0r/Baekjoon | da404d3e2385c3278a1acd33ae175c2c1eb82e5e | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | refs/heads/master | 2022-12-25T18:36:35.344896 | 2021-11-22T20:01:41 | 2021-11-22T20:01:41 | 287,291,199 | 16 | 25 | MIT | 2022-12-13T05:03:49 | 2020-08-13T13:42:32 | C++ | UTF-8 | Python | false | false | 291 | py | """
15726. 이칙연산
작성자: xCrypt0r
언어: Python 3
사용 메모리: 29,380 KB
소요 시간: 60 ms
해결 날짜: 2020년 9월 19일
"""
def main():
A, B, C = map(int, input().split())
print(int(A * B / C if B > C else A / B * C))
if __name__ == '__main__':
main() | [
"fireintheholl@naver.com"
] | fireintheholl@naver.com |
b4eedfabafacd95da1f202e2227f0a1c1511d5b0 | d8e662acf8aa90b5a76351712dfcb405bfebc01a | /webtelnet/django_webtelnet/tools/telnet.py | d45fb8934cda5ac1bca1438f8426ee2b5d2edc79 | [
"MIT"
] | permissive | crazyinstall/django-webtelnet | c86f35d6f22c7f06c2fad378907da0444b3f9fb6 | 840572c14792109025bf2a17bc481ae58b06b29e | refs/heads/master | 2023-05-26T06:20:11.033401 | 2019-07-30T08:40:42 | 2019-07-30T08:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | import telnetlib
from threading import Thread
import json
import time
import traceback
class Telnet:
"""
由于 telnetlib 库的原因,终端无法显示颜色以及设置终端大小
"""
def __init__(self, websocker, message):
self.websocker = websocker
self.message = message
self.cmd = ''
self.res = ''
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6d8fc1aa3874d6519fdfe7a3ce8bc07ba45332d9 | 7ee4e7e48da5390839fd91f561637267bc65c731 | /examples/jupyter/merge.py | 764fa19fd8b7942c1b4f21f310bb6d0a9ac975ce | [
"Apache-2.0"
] | permissive | OliverEvans96/python-pachyderm | f82239d230e2346a677841c7e94079c7b4dabcbd | 8a3755402b0e32048c89315c3e7754cf9836d310 | refs/heads/master | 2020-07-19T04:10:47.168478 | 2019-08-08T21:23:27 | 2019-08-08T21:23:27 | 206,371,596 | 0 | 0 | Apache-2.0 | 2019-09-04T17:09:57 | 2019-09-04T17:09:57 | null | UTF-8 | Python | false | false | 1,148 | py | import os
import csv
import json
import datetime
PRICE = 5
def main():
try:
weather_filenames = os.listdir("/pfs/weather")
except:
weather_filenames = []
with open("/pfs/out/data.csv", "w") as out_file:
writer = csv.writer(out_file)
for weather_filename in weather_filenam... | [
"simonson@gmail.com"
] | simonson@gmail.com |
69d7f955c39a3df010c6b0722c30cd0b852e3a78 | 230633f33aaf722b1ece605a81ee566e1060fa3a | /textattack/models/wrappers/pytorch_model_wrapper.py | e3d9bcd7e5b5ce7880a2f46e8bd9ef8d633497c5 | [
"MIT"
] | permissive | ashwani-bhat/TextAttack | bc9a428a68f0894db7d6404e91adf8e2891055c0 | 9f5c0794b95779f11bf2a120642db00da2bc4928 | refs/heads/master | 2022-12-08T17:09:31.272779 | 2020-08-04T16:35:57 | 2020-08-04T16:35:57 | 284,734,102 | 0 | 0 | MIT | 2020-08-03T15:17:18 | 2020-08-03T15:17:17 | null | UTF-8 | Python | false | false | 1,111 | py | import torch
import textattack
from .model_wrapper import ModelWrapper
class PyTorchModelWrapper(ModelWrapper):
"""Loads a PyTorch model (`nn.Module`) and tokenizer."""
def __init__(self, model, tokenizer, batch_size=32):
if not isinstance(model, torch.nn.Module):
raise TypeError(
... | [
"jxmorris12@gmail.com"
] | jxmorris12@gmail.com |
d02dee9370662c42f3808914bfe276ed8b71b720 | 733f1b8e8069ee11e4f4d56e57c8fdc4c901d080 | /python/qa_pdu_round_robin.py | 1541e08ed6ff97e53c5bf1abf1a9727c589646f0 | [] | no_license | arirubinstein/gr-iridium | 3bbe8858968a4fb872a7da8abf621ce72a595fd1 | 3f7079bdf688f70acb43d12f049a405262982d78 | refs/heads/master | 2021-01-21T01:43:16.111168 | 2016-09-14T06:16:32 | 2016-09-14T06:16:32 | 68,176,992 | 2 | 0 | null | 2016-09-14T05:45:37 | 2016-09-14T05:45:37 | null | UTF-8 | Python | false | false | 1,241 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Free Software Foundation, Inc.
#
# This 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, or (at your option)
# any later vers... | [
"schneider@blinkenlichts.net"
] | schneider@blinkenlichts.net |
7ec6ea6355a4691c164a132310317a1a87d8f9a3 | b2158bfa536ff4f0dd1359be383fe2331f3e9707 | /1_Web_Server/Skeleton WebServer 2.py | 1a21b0b12ec4e228bca8f52436c167fac03e0746 | [] | no_license | kristogj/TTM4100_KTN | 63fc6f1840927b392fc2d140be73cd4a6ccfb6ec | a202b9d8cc6db7ea5936d550671e4076fc09dc89 | refs/heads/master | 2021-05-11T02:02:16.929177 | 2018-05-03T09:19:30 | 2018-05-03T09:19:30 | 118,347,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | # This skeleton is valid for both Python 2.7 and Python 3.
# You should be aware of your additional code for compatibility of the Python version of your choice.
# Import socket module
from socket import *
# Create a TCP server socket
#(AF_INET is used for IPv4 protocols)
#(SOCK_STREAM is used for TCP)
se... | [
"kristoffergjerde@gmail.com"
] | kristoffergjerde@gmail.com |
5fc6b4960040d94fb1e4a0cbd82e50746474d47a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02821/s590731514.py | 827448373b6a7d5f2313e8622bb2f870d0d97350 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | import cmath
pi = cmath.pi
exp = cmath.exp
N=2**18
def make_exp_t(N, base):
exp_t = {0: 1}
temp = N
while temp:
exp_t[temp] = exp(base / temp)
temp >>= 1
return exp_t
fft_exp_t = make_exp_t(N, -2j*pi)
ifft_exp_t = make_exp_t(N, 2j*pi)
def fft_dfs(f, s, N, st, exp_t):
if N==2:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d0d2fec898dd15fa114393b866c165481d23c57f | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Science for Everyone Track/19-Introduction to Shell/01- Manipulating files and directories/01-How does the shell compare to a desktop interface.py | 5e8bc41d249261420a721998a9502cdcd75ba95c | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | '''
How does the shell compare to a desktop interface?
An operating system like Windows, Linux, or Mac OS is a special kind of program. It controls the computer's processor, hard drive, and network connection, but its most important job is to run other programs.
Since human beings aren't digital, they need an interfa... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
71b044f34e96ce148cec417fb41d88ef7818d82e | defe77f8cfb333f4c67c0f9cafb290cb337464aa | /sequencing_utilities/gdtools.py | 6f2964959ff2d33c37b40c683d098e7a05003f7b | [
"MIT"
] | permissive | dmccloskey/sequencing_utilities | 8bd5c2c3ffe5d54a3c898db86bb65d6ae2af1394 | 3845cede661bc263a38cf8850148380e08c0e9ea | refs/heads/master | 2020-04-06T07:01:42.013835 | 2016-09-15T04:24:31 | 2016-09-15T04:24:31 | 38,275,400 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | #!/usr/bin/python
# -*- coding: latin-1 -*-
"""
Implements the GDTools class that annotates and applies mutations to .gd and reference .gbk files
based on the gdtools utility program
"""
import os
class GDTools():
def apply(self,gbk_filename_I,gd_filename_I,fastaOrGff3_filename_O,output_O='gff3',
gdt... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
56198034f91bc59cb3faaffacf9f3a6f362d3f7a | 05215b1f0f07eeb7266996c4d9a3f4cff78be7e1 | /ai.py | 2e5d593ca4af2608d3f1595dfe3b22e1fa50d533 | [] | no_license | ljte/TicTacToe | c54c259dc0106fddf9c814f9efac2285e5a89ae1 | 584d1f8900b9b9ee216587a247af7c97714ad3dd | refs/heads/master | 2022-12-09T13:33:57.400026 | 2020-09-12T13:16:33 | 2020-09-12T13:16:33 | 294,947,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import sys
from main import check_winner
scores = {
'X': 1,
'O': -1,
'Tie': 0
}
ai_player = 'O'
human_player = 'X'
def minimax(board, depth, is_maximizing):
result = check_winner(board)
if result:
return scores[result]
if is_maximizing:
best_score = -sys.maxsize
f... | [
"="
] | = |
83fa38f3c85d64b10ad5d7b0a64e7056c9159000 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2137/60698/252878.py | 6263880d5378d64f8803902ccd10935998fcc738 | [] | 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 | 491 | py | from math import sqrt
def test():
n = int(input())
if n<=1:
print(False)
return
factor = [1]
for i in range(2, int(sqrt(n)) + 1):
if n % i == 0:
if i not in factor:
factor.append(i)
if int(n / i) not in factor:
factor.appen... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5ef92ca87e34e9dc5efdc49c10d106b68e01480f | 2c3da6e0bddf55d64d650040bbf286c47b31811a | /learnpython100day/元类.py | 6af39b9d5739481bdc65d335eb5cb68b0e9e6c1e | [
"MIT"
] | permissive | Bngzifei/PythonNotes | 76bd53db3033a9c51ab4bdd727842cd89607b584 | 01590e1b6c1bc0f04aa2d355fa2553c04cce27f2 | refs/heads/master | 2023-02-04T06:49:00.725463 | 2020-12-15T09:26:40 | 2020-12-15T09:26:40 | 155,154,662 | 1 | 2 | MIT | 2020-09-08T01:30:19 | 2018-10-29T05:02:48 | Python | UTF-8 | Python | false | false | 1,108 | py | # -*- coding: utf-8 -*-
# @Author: Marte
# @Date: 2019-05-27 17:46:35
# @Last Modified by: Marte
# @Last Modified time: 2019-05-27 20:20:18
class Foo(object):
def hello(self):
print("hello world!")
return
foo = Foo()
print(type(foo)) # <class '__main__.Foo'>
print(type(foo.hello)) ... | [
"bngzifei@gmail.com"
] | bngzifei@gmail.com |
4a85a1b72cfea37cab5e95a542ca77b194c0997b | 135cf3b73c4cd01970865b794260e195076875da | /scripts/r&d/testSend.py | 985650bfe80997d6ea6994ed041ff01680387f20 | [] | no_license | njha7/elbalang_orchestration | 1a4b7e6bb49dd7f7f735291949f52fdebed78c51 | 056f6305d43b24fedbf3eb4f6f26deaf5a0f57af | refs/heads/master | 2021-04-28T18:41:43.603542 | 2018-04-19T19:25:59 | 2018-04-19T19:25:59 | 121,879,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import pika
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
for x in range(1,100):
channel.basic_publish(exchange='', routing_key='hello', body='%d' % x)
connection.close() | [
"you@example.com"
] | you@example.com |
57995e50c4c2740675bad0ae2baf19562f0f7c26 | eed7b5aa4861086d34e539e7bbfeff4286506692 | /src/Server/Game/games.py | 92eaa0fc62857153b72dd206ce6f503f660e8d55 | [] | no_license | dfwarden/DeckBuilding | 0be2ccb68fc9a69c8eaa1d8acedeaa7cebef1a31 | 0b5a7573a3cf33430fe61e4ff8a8a7a0ae20b258 | refs/heads/master | 2021-01-18T09:52:51.880892 | 2015-02-03T03:21:17 | 2015-02-03T03:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from game_wrapper import GameWrapper
id = 1
games = {}
def StartNewGame(game, players):
""" Start a New Game """
global games
global id
currentId = id
games[currentId] = GameWrapper(currentId, game, players)
id += 1
return currentId | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
4f3036721abf197f97623f9c2e9af80af2d85d55 | 7792b03540784a0d28073899dd4ad78689e9a9fb | /VoiceAI/my_slice.py | 1b58955d63d01e8ff062e6c608d1488fcab21885 | [] | no_license | ayiis/coding | 3b1362f813a22a7246af3725162cfb53dea2f175 | c73e4622e1811cc3fd8729a92df6537bd73dc802 | refs/heads/master | 2021-06-02T14:55:38.451288 | 2021-04-26T08:39:16 | 2021-04-26T08:39:16 | 134,660,001 | 0 | 0 | null | 2020-06-05T04:03:58 | 2018-05-24T04:14:14 | CSS | UTF-8 | Python | false | false | 4,958 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = 'ayiis'
# create on 2018/11/07
"""
切分目录下所有子目录里的wav文件
用于切分喜马拉雅的儿童读英语的音频
"""
import sys
import numpy as np
import re
import ubelt
from pathlib import Path
import wave
reload(sys).setdefaultencoding("utf8")
class Slicer(object):
"""docstring for... | [
"ayiis@126.com"
] | ayiis@126.com |
01921ca9f3fca49a540f52fee546503370155e01 | 2f083c3e5ebaf5803edb1c6329501d09dd7695db | /set 2h.py | 746ef779a9a804d81c050b48c947ec3ab81238a3 | [] | no_license | Anjanaanjujsrr/Anju-code_kata-PLAYER | 321a1097d1afe7da8916f193b35dfbd9ca440ec6 | fadd1a2971843c5cf12cd63bcd062e96e093feb5 | refs/heads/master | 2020-05-26T08:59:53.795026 | 2019-06-09T08:05:27 | 2019-06-09T08:05:27 | 188,175,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #anju
number=int(input())
r=[]
a=0
count=0
for i in range(number):
c=input()
r.append(c)
for i in r:
for j in i:
a+=ord(j)
if(a==612):
count+=1
a=0
print(count) | [
"noreply@github.com"
] | Anjanaanjujsrr.noreply@github.com |
f90b5b1fcbe9306e479747f6580ea0cbe3a5d1c7 | 35f069aad9f7040e20494dac11f826bba41d029e | /src/main/resources/qtools/lib/webservice/__init__.py | 384fc467ac669b3197a860fb9c1a1dfa9b73fa32 | [] | no_license | v-makarenko/vtoolsmq | 4be3bc3965aaeeee2d64c359a30f6f18617f354d | 8a0dd75b196c0e641bb8b4b20124540aaaa2814b | refs/heads/master | 2021-01-10T02:04:58.893206 | 2015-12-03T16:34:44 | 2015-12-03T16:34:44 | 47,275,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | """
This package contains modules and classes used to interact with external web services.
"""
import urllib, urllib2, cookielib, os
class RequestProxy(object):
"""
Returns a proxied response object on request.
Not sure if this is the right thing to do yet.
"""
def __init__(self, proxy_class=N... | [
"vladimir@makarenko.io"
] | vladimir@makarenko.io |
221a8ffa70126e93462e6b05258ee3f72950aa1f | ce32ff8c0ad1ad9e42e6b59e201c70df754aa51e | /farmmonitor/manage.py | 00e0f54506f9e616394b71d808fb99fe541ced96 | [] | no_license | wangxiaoying/farm-monitor | d7710559194c2771d09012b6dd204bae12669b6e | 413ddaf1a23655f705da8b65978d06b704c81723 | refs/heads/master | 2021-01-10T21:33:35.643549 | 2015-06-16T09:07:14 | 2015-06-16T09:07:14 | 32,635,833 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farmmonitor.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"wangxiaoying0369@gmail.com"
] | wangxiaoying0369@gmail.com |
f264cc0288deced4fe0c271ca22be87310d2710d | d659fb0db310793b918640fdb673b9bd755578bc | /standard_lib/remove_elements_list.py | 83be482832d01d31f152fe83cb07e5eb97fd4837 | [
"MIT"
] | permissive | astuk/python-snippets | 562bdcdb23c537650a767fb0369388d9530a67ae | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | refs/heads/master | 2023-06-18T04:29:48.111537 | 2021-07-14T10:55:59 | 2021-07-14T10:55:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | data = [1, 2, 3, 4, 1, 2, 3, 4]
target = 1
print(f"Original: {data}")
data[:] = [elem for elem in data if elem != target]
print(f"New: {data}")
| [
"f2dahlitz@freenet.de"
] | f2dahlitz@freenet.de |
9c515388fcd184ea1ae18872a428a79645351f33 | 5b6af599a2afb4db27b588cfc00831446ff8620f | /blog/urls.py | 62c9faaba9b33b021a3ebd8bbd5d111d134fa5a9 | [] | no_license | dlatnrud/myblog | 425acb68be9d3b672e2a84cb84e403cc31c61348 | 8e344e9eadaaf85fed530c25fefc87f916dbee0c | refs/heads/main | 2023-08-26T17:12:52.097986 | 2021-10-22T03:55:18 | 2021-10-22T03:55:18 | 419,949,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.urls import path
from . import views
app_name = 'blog'
urlpatterns = [
#127.0.0.1:8000/blog
path('', views.index, name='index'),
path('<int:post_id>/', views.detail, name='detail'),
path('post/create/', views.post_create, name='post_create'),
] | [
"dlatnrud2268@naver.com"
] | dlatnrud2268@naver.com |
2a6450417821ac75724ba063f20fd6289c9bb8b0 | 085ce75a507df6e755cabb7a65c4a2a8c98762ba | /dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/_codecs.py | 2232eace436d8b42e47cad46c20bbf725f5f9b60 | [] | no_license | Arhzi/habr-docker-article | d44302db1fe157d81fe0818e762e82218f50e31f | 6fb094860b612e307beadaeb22981aa0ee64e964 | refs/heads/master | 2021-01-23T20:41:47.398025 | 2015-12-10T08:56:33 | 2015-12-10T08:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,216 | py | # encoding: utf-8
# module _codecs
# from (built-in)
# by generator 1.137
# no doc
# no imports
# functions
def ascii_decode(*args, **kwargs): # real signature unknown
pass
def ascii_encode(*args, **kwargs): # real signature unknown
pass
def charbuffer_encode(*args, **kwargs): # real signature unknown
p... | [
"sirnikolasd@yandex.ru"
] | sirnikolasd@yandex.ru |
0ec3ee8ba21f62bdf895ad95895a6cecee3ea293 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/7edd451a4e81080562d8e2daa1e962bf7fbe4a9b-<apply>-fix.py | 0d2625c133798c97803281d73411bc9ac3823fff | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | @staticmethod
def apply(module, name, n_power_iterations, eps):
fn = SpectralNorm(name, n_power_iterations, eps)
weight = module._parameters[name]
height = weight.size(0)
u = normalize(weight.new_empty(height).normal_(0, 1), dim=0, eps=fn.eps)
delattr(module, fn.name)
module.register_parameter((... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
061faf3a7b71dc0672633c4edca636e4eae445de | ad9782856ec2f860fccbefa5e75a896691b8e1cc | /MonteCarlo/test/opt6s3l/MinBias_14TeV_pythia8_TuneCUETP8M1_cfi_GEN_SIM_OT613_200_IT4025_opt6s3l.py | cade5d39c8f174af6bc59396e837fa2023545939 | [] | no_license | OSU-CMS/VFPix | 7fe092fc5a973b4f9edc29dbfdf44907664683e5 | 4c9fd903219742a4eba1321dc4181da125616e4c | refs/heads/master | 2020-04-09T05:52:05.644653 | 2019-01-09T13:44:22 | 2019-01-09T13:44:22 | 30,070,948 | 0 | 0 | null | 2018-11-30T13:15:54 | 2015-01-30T12:26:20 | Python | UTF-8 | Python | false | false | 5,781 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: MinBias_14TeV_pythia8_TuneCUETP8M1_cfi --conditions auto:phase2_realistic -n 10 --era Phase2C2 --eventcontent FEVTDEBUG --relval 90000,100 -s ... | [
"juliette.alimena@cern.ch"
] | juliette.alimena@cern.ch |
918d35988abeede9ff21191733d53fc0101d01a2 | cc734ab47096dfd38b8cb554ced88c0689c450e8 | /geraGrafico.py | d6fe5e35797531bdbc4ae8026746d5742448f779 | [] | no_license | Claudiocfls/ELE32-lab3 | efaa46bd73ead3e6030d3e231ce577b53a36027b | 366b34d5d66d0555451206697ce6116f363c60cf | refs/heads/master | 2020-04-01T18:50:44.395937 | 2018-11-28T15:23:37 | 2018-11-28T15:23:37 | 153,518,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import DadosGrafico
import Grafico
grafico = Grafico.Grafico()
dados1 = DadosGrafico.DadosGrafico()
dados1.dadosDeArquivo("hamming.txt")
grafico.adicionaDados(dados1, "ro" )
dados1 = DadosGrafico.DadosGrafico()
dados1.dadosDeArquivo("3, 13, 15, 17.txt")
grafico.adicionaDados(dados1, "ro" )
dados1 = DadosGrafico.Dad... | [
"claudiosilva.cfls@gmail.com"
] | claudiosilva.cfls@gmail.com |
2146a1abe1e044c23653b6572a99383187acf3c3 | 1de7512183974adfc5dbdd30b3bf7e042ea194d9 | /poetries_server_beta.py | b34d1625a90aa1b8b66c3050158c73b812ec84c9 | [] | no_license | articuly/Self-study | d06b0bdcead38282701e4d5118cefd8b83e80241 | 878ed68fc31dc1f5c2f13bcb5d98539264985c17 | refs/heads/master | 2023-05-13T18:34:33.904864 | 2023-05-09T11:03:29 | 2023-05-09T11:03:29 | 223,714,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | # coding:utf-8
import socket, time
from poetries import POUETRIES # 此处导入诗词库(poetries.py)
def poetries_server():
"""古诗词服务器"""
delay = 0.1 # 诗词显示速度(字间隔时间)
subjects = [item.split()[0] for item in POUETRIES] # 诗词目录
welcome = '欢迎来到风花雪月古诗词库, 请输入序号后回车以选择你喜欢的诗词\r\n'
welcome += '输入fast加速,输入slow减速,输入bye... | [
"articuly@gmail.com"
] | articuly@gmail.com |
73bee41645a2a5d29d2307248dc9dd4042c9cb15 | 9c315e3762961668a1fe58ad811ae87c5fbf7539 | /apertium-tools/scrapers-misc/bibleScraper-ibt.py | 5e2698746ef1e1f835a59b51ad687209b7d5c5ee | [] | no_license | frankier/apertium | f2b893115c413203b1194e5c0d4feb0adf2b1b3e | d3f5515bf2455f3046314a62ea564457bcf504b8 | refs/heads/gnulib | 2021-01-20T21:00:53.139135 | 2016-05-27T17:30:01 | 2016-05-27T17:30:01 | 59,847,975 | 0 | 1 | null | 2016-07-07T12:39:01 | 2016-05-27T16:21:14 | HTML | UTF-8 | Python | false | false | 6,867 | py | #!/usr/bin/env python3
# WARNING
# ONLY USE THIS SCRIPT WITH PERMESSION FROM ibt.org.ru ADMINISTRATORS
# UNAUTHORIZED ACCESS OF ibt.org.ru IS ILLEAGL IN MOST COUNTRIES!!!
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# t... | [
"unhammer@72bbbca6-d526-0410-a7d9-f06f51895060"
] | unhammer@72bbbca6-d526-0410-a7d9-f06f51895060 |
28eb4f066f9dbe9f85d53858545bd15c3df79d6b | 6f1d57238f3b395b04696a16768bcc507f00630c | /A_GCD_Sum.py | 3a137dfc4dc2318e724874ceedd601f7481d3f84 | [] | no_license | FazleRabbbiferdaus172/Codeforces_Atcoder_Lightoj_Spoj | 024a4a2a627de02e4698709d6ab86179b8301287 | 6465e693337777e7bd78ef473b4d270ce757a3a2 | refs/heads/master | 2023-07-01T06:32:14.775294 | 2021-07-27T17:07:37 | 2021-07-27T17:07:37 | 271,202,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import math
def digi_sum(n):
ds = 0
for i in str(n):
ds += ord(i) - 48
return ds
for _ in range(int(input())):
n = int(input())
while math.gcd(n, digi_sum(n)) == 1:
n += 1
print(n)
| [
"fazle.ferdaus1416@gmail.com"
] | fazle.ferdaus1416@gmail.com |
310fa56760bac3e6cdd5a4d0331475d6fa83a2ef | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/RIST/API/Deprecated/F172/Regression_Data.py | d6a5825dd029264612a58aa0b8b5ac7f4264621a | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | admin_credentials = {'userName': 'Administrator', 'password': 'wpsthpvse1'}
enclosure_name = "CN754406XL"
drive_enclosure_name = "CN754406XL, bay 1"
expected_number_of_DE = 1
expected_number_of_drives = 8
| [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
977cd26e8a9ce77960696f23c7267eaec7fa0dd3 | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/tests/functional/v3/test_instance_usage_audit_log.py | 6a882a19ad76b2c75966c710359475c274d32493 | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | # Copyright 2012 Nebula, Inc.
# Copyright 2013 IBM Corp.
#
# 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... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
306694ae20d0761a8ceb55a2d83fc0495e190317 | ff182eeaf59b16f79b7d306eef72ddaadf0f4e71 | /Vaffle_interface/testcase/MessageModule/Message_test21_question_answerquestionlist.py | cca8da534dbe3a9cae3189adbf5e7b7bdc28b965 | [] | no_license | heyu1229/vaffle | 04d6f8b0d3bd0882ff1cdea54d18d5fdde7933b9 | 2c1c040f78094cf3cfc68f08627a958c4aa5e1d5 | refs/heads/master | 2023-06-05T09:55:21.894344 | 2021-03-12T07:26:45 | 2021-03-12T07:26:45 | 381,248,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # -*- coding:UTF-8 -*-
import unittest,time,json
from Vaffle_interface.public_1.func_requests import FuncRequests
#---------------QA答题列表---------------------
class Message(unittest.TestCase):
def setUp(self):
self.r = FuncRequests()
#-----------------QA答题列表---------------------------------
def te... | [
"921467314@qq.com"
] | 921467314@qq.com |
dd53c3727ad67dbcc8f4cc1ff5e0b523226dd686 | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /build/android/developer_recommended_flags.gypi | 79c201deccb3b99bf444200fbc6d40cbfa1cec79 | [
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 2,722 | gypi | # Copyright 2013 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.
# This is the set of recommended gyp variable settings for Chrome for Android development.
#
# These can be used by copying this file to $CHROME_SRC/chrome/s... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
5f9b9da363ca1b7046a85b9ca50ffd5a17546d0a | 6a1e30c699125d05caf4b3443b83c47d1a733851 | /EMS/migrations/0002_auto_20200623_1446.py | 2cd6aa0e0db237346a0fe2c980b78533bd1e4711 | [] | no_license | Subhrans/Keekers | 373b259c04bcd277a91e6e7679da5da2b799e184 | b971b1a1f5c2436b3068b5003d220ca28fdced0f | refs/heads/main | 2023-04-16T17:26:43.207550 | 2021-04-07T18:10:49 | 2021-04-07T18:10:49 | 355,639,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # Generated by Django 3.0.1 on 2020-06-23 09:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('EMS', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='e_experience',
... | [
"subhransud525@gmail.com"
] | subhransud525@gmail.com |
b90768d806834c51f4937d283dcb46b436f8db8a | 4e7db10524c938c8c6e687521def2889e20ec646 | /P16/1-16.py | a1030b875a6397384fd635bad46dc8338e9e1d13 | [] | no_license | mpigrobot/python | e5cf60ca438e0d5e63a1e87a266a9e255bc07271 | bf9262657a7401f37de38318db768e630fab97a9 | refs/heads/master | 2020-03-15T15:37:03.228080 | 2018-03-31T07:33:07 | 2018-03-31T07:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #! /usr/bin/env python
#coding:utf-8
def del_space(string):
split_string = string.split(" ")
string_list = [i for i in split_string if i!=""]
result_string = " ".join(string_list)
return result_string
if __name__=="__main__":
one_str = "Hello, I am Qiwsir."
string = del_space(one_... | [
"noreply@github.com"
] | mpigrobot.noreply@github.com |
91f4d3ccee46519af255d5bac95200dd39e71f50 | dc86022781700c04d143736d401138881d98fe14 | /student_profile/urls.py | ccd89f5b0862df465e50872ee2d29c60807607f2 | [] | no_license | SymaxxDigital/college-journal | d4b25901788221793e8c3ce25f7fefd6e150df4b | c188511ad38fc2fe1b3d5cf907b2ce7be46aad5e | refs/heads/master | 2023-06-17T00:00:16.057099 | 2021-07-12T16:45:21 | 2021-07-12T16:45:21 | 372,991,491 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | from django.urls import path
from .views import (
ProfileView,
ProfileCreateView,
ProfileUpdateView,
DemographicListView,
DemographicCreateView,
DemographicUpdateView,
FamilyListView,
FamilyCreateView,
FamilyUpdateView,
EducationListView,
EducationCreateView,
Educatio... | [
"bukhosizimcode@gmail.com"
] | bukhosizimcode@gmail.com |
36674f77a3891e30e9a9320ef731c81cc8fc7b77 | ec7591c3f478c43e76257aaa500d8f6a2e763d74 | /stanza/utils/datasets/sentiment/process_airline.py | edacb874ed99653b6fc0f5adde34b14c3f9fb636 | [
"Apache-2.0"
] | permissive | stanfordnlp/stanza | 5cc3dbe70a96dd565639b7dae1efde6b4fa76985 | c530c9af647d521262b56b717bcc38b0cfc5f1b8 | refs/heads/main | 2023-09-01T12:01:38.980322 | 2023-03-14T16:10:05 | 2023-03-14T16:10:05 | 104,854,615 | 4,281 | 599 | NOASSERTION | 2023-09-10T00:31:36 | 2017-09-26T08:00:56 | Python | UTF-8 | Python | false | false | 2,631 | py | """
Airline tweets from Kaggle
from https://www.kaggle.com/crowdflower/twitter-airline-sentiment/data#
Some ratings seem questionable, but it doesn't hurt performance much, if at all
Files in the airline repo are csv, with quotes in "..." if they contained commas themselves.
Accordingly, we use the csv module to read... | [
"horatio@gmail.com"
] | horatio@gmail.com |
c959374bd1150ba5cf9665a077bc81075a46cbde | 933e89e2d45803ff021cc684b4b78cd2e14a5b15 | /AllBehaviours/agent_util.py | 289676eb5c22b11ea1fdb417fd764da9c32b681b | [] | no_license | Occy88/MultiAgents | 8123d2718df5f3ad202410097f821c6d69eadd7b | c49d89caf2db49dcc3571d87fa4fb4bade516226 | refs/heads/master | 2022-12-14T18:36:02.343056 | 2021-01-01T13:38:10 | 2021-01-01T13:38:10 | 214,148,130 | 0 | 0 | null | 2022-11-22T04:36:34 | 2019-10-10T10:00:00 | Python | UTF-8 | Python | false | false | 5,716 | py | from enum import Enum
from vacuumworld.vwc import action, direction
import math
# RESOLVED AS SINGLE CHARACTERS TO SAVE COMMUNICATION BANDWIDTH
class AgentPercepts(Enum):
LEFT = '1'
RIGHT = '2'
TOP = '3'
FRONT_LEFT = '4'
FRONT_RIGHT = '5'
class AgentActions(Enum):
TURN_LEFT = '6'
TURN_R... | [
"octavio.delser@gmail.com"
] | octavio.delser@gmail.com |
6d33d07aa654f0785f0b7306fa9ba31354982ae1 | 028d788c0fa48a8cb0cc6990a471e8cd46f6ec50 | /Python-Fundamentals/Final-Exam/Practice-Exams/Exam-04-04-2020/01_password_reset.py | 9a2e5e197669e3de86bca07fdc4681b322e7edb2 | [] | no_license | Sheko1/SoftUni | d6b8e79ae545116f4c0e5705ad842f12d77a9c9d | a9fbeec13a30231b6a97c2b22bb35257ac1481c0 | refs/heads/main | 2023-07-13T15:39:48.826925 | 2021-08-21T12:51:02 | 2021-08-21T12:51:02 | 317,266,200 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | def take_odd(password):
result = ""
for i in range(len(password)):
if i % 2 != 0:
result += password[i]
return result
def cut(index_1, length_1, password):
sub_string = password[index_1:index_1+length_1]
password = password.replace(sub_string, "", 1)
return password
def ... | [
"martinkypar@gmail.com"
] | martinkypar@gmail.com |
a389ef6945b30b5b0a5c5c6f45ca52d6239e2db7 | f1ddb0bb268b3b1c3fe512b4753ff60fab5c78cb | /datapipe/image/kill_isolated_pixels.py | b31140cf0a14e5185b5940ec1561c30ed30fc096 | [
"MIT"
] | permissive | jjlk/ctapipe-wavelet-cleaning | 18ef70f2a68414974b0e5a187855694631f78121 | 091a657598a0cd493e8494319854bfc1dba3cea0 | refs/heads/master | 2021-05-11T10:43:55.292322 | 2018-01-17T14:24:29 | 2018-01-17T14:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,928 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2016 Jérémie DECOCK (http://www.jdhp.org)
# This script is provided under the terms and conditions of the MIT license:
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (th... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
94b87efb8bbc64ecfe8f2e4dc896d8dd597d68d0 | 64a646a8c72c5a0a6c981a1864a2021c6526f025 | /tests/test_printer.py | e95cf30018b49e2a9efed0993940e56173a451f5 | [
"BSD-3-Clause"
] | permissive | vmagamedov/kinko | 6b11d8bf38196a4100ed5c7679204f55461b7fd1 | b65f8ae97bbf5d056781e90e22d2a369f440ed4c | refs/heads/master | 2020-04-06T06:58:54.300766 | 2016-06-29T14:51:32 | 2016-06-29T14:51:32 | 38,629,823 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | import difflib
from textwrap import dedent
from kinko.nodes import Tuple, Symbol, Keyword, String, List, Placeholder
from kinko.printer import Printer
from .base import TestCase
class TestPrinter(TestCase):
def assertPrints(self, node, output):
first = Printer.dumps(node)
second = dedent(output... | [
"vladimir@magamedov.com"
] | vladimir@magamedov.com |
c080be714d98599463d46bacf36758234d7faf91 | 0e9e2bfc8d4b5c297ceb4908eb4ca55c4101ea5b | /function_views/migrations/0003_auto_20200420_2102.py | e59be5a859cb9efc08590d349ec9d9af9543c697 | [
"MIT"
] | permissive | cyrilleAdelphe/django-views-tutorial | 776ee1b08f0c6fc68fb56cf64f57bf20c557b9d0 | 71cd7fdb0846a61fcff7f1822d58b0e862be352a | refs/heads/master | 2023-06-30T10:09:47.021727 | 2020-12-08T03:50:14 | 2020-12-08T03:50:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.0.5 on 2020-04-21 02:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("function_views", "0002_auto_20200420_2052"),
]
operations = [
migrations.AlterField(
model_name="user",
name="bio",
... | [
"toddbirchard@gmail.com"
] | toddbirchard@gmail.com |
824a8bfdd632b45637dadcb4532b085dc7756e6e | 2d276785c3663d4798be462115291c4706dbd255 | /Python从菜鸟到高手/chapter4/demo4.20.py | f4c7eb45f4e343ffc86089f644684daa5542aa05 | [] | no_license | bupthl/Python | 81c92433bd955663e6cda5fe7cab5ea3d067c3de | bdb33aeeb179a43100b9ef7129a925c63a133fd3 | refs/heads/master | 2022-02-21T11:02:40.195265 | 2019-08-16T05:49:18 | 2019-08-16T05:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | '''
--------《Python从菜鸟到高手》源代码------------
欧瑞科技版权所有
作者:李宁
如有任何技术问题,请加QQ技术讨论群:264268059
或关注“极客起源”订阅号或“欧瑞科技”服务号或扫码关注订阅号和服务号,二维码在源代码根目录
如果QQ群已满,请访问https://geekori.com,在右侧查看最新的QQ群,同时可以扫码关注公众号
“欧瑞学院”是欧瑞科技旗下在线IT教育学院,包含大量IT前沿视频课程,
请访问http://geekori.com/edu或关注前面提到的订阅号和服务号,进入移动版的欧瑞学院
“极客题库”是欧瑞科技旗下在线题库,请扫描源代码根目录中的小程序码安装“极客... | [
"registercn@outlook.com"
] | registercn@outlook.com |
15729ac399f50b317aa8bb686eb760418a3e65cf | 1b5f653955779f45e78ca6dda925518779d09e8f | /submissions/2779.py | ae704befd917231ea60204a5bca5bfbc3b93854e | [] | no_license | LeonardoSaid/uri-py-solutions | ad285f552934ead54ad2410e23113e84b0724f72 | 43c10c0e99e99d22b4b5ae2871e5d897f8823b42 | refs/heads/master | 2020-08-11T00:28:48.661578 | 2020-04-23T20:21:39 | 2020-04-23T20:21:39 | 214,453,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | n = int(input())
c = int(input())
m = list()
while c > 0:
x = int(input())
if x not in m:
m.append(x)
c -= 1
print(n-len(m)) | [
"noreply@github.com"
] | LeonardoSaid.noreply@github.com |
7694ec591f3fb364781ff62e28267ea8d3b26a4e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pAFxfge35bT3zj4Bs_19.py | d59e6f7d09df6fd8ccc31e7672ecb60bc30a3dd0 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """
Write a function that accepts `base` (decimal), `height` (decimal) and `shape`
("triangle", "parallelogram") as input and calculates the area of that shape.
### Examples
area_shape(2, 3, "triangle") ➞ 3
area_shape(8, 6, "parallelogram") ➞ 48
area_shape(2.9, 1.3, "parallelogram") ➞ 3.77
#... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
432eda245cde6554464c98cca73dea1dbe401983 | 2c5b25d0b5d6ba66d013251f93ebf4c642fd787b | /wrong_answer_codes/Next_Permutation/Next Permutation_279803526.py | 0f2f44ba7c182ed06e0f91406f928fa3d8ab7085 | [] | no_license | abhinay-b/Leetcode-Submissions | da8099ac54b5d36ae23db42580064d0f9d9bc63b | d034705813f3f908f555f1d1677b827af751bf42 | refs/heads/master | 2022-10-15T22:09:36.328967 | 2020-06-14T15:39:17 | 2020-06-14T15:39:17 | 259,984,100 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | class Solution:
def nextPermutation(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
if len(nums) < 2:
return
idx = len(nums) - 1
found = False
while idx > 0:
if nums[idx-1] < nums[i... | [
"abhinayb.sssihl@gmail.com"
] | abhinayb.sssihl@gmail.com |
292f6b296954e7cea39ad9a0858abbaba0e99edc | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/test/test_v1beta1_certificate_signing_request_status.py | c35e4425ee58df047c2b093e26ce28ab6d3998da | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
720356dcaeadc6446daf29ea65dc5897ed2614cf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_227/ch25_2020_03_09_19_08_42_543739.py | 28620a9b8ede3883991958f34592cf33371e7b28 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import math
velocidade = float(input("Qual a velocidade da jaca? "))
ângulo = float(input("Qual o ângulo de lançamento da jaca? "))
distância = (velocidade**2)*(math.sin(math.radians(2*ângulo)))/(9.8)
if distância < 98 :
print('Muito perto')
elif 98 <= distância <= 102 :
print('Acertou!')
else :
print('Mu... | [
"you@example.com"
] | you@example.com |
f8f31a1459502f000a301088ec73cfa9af65dd6d | 673517e68db4b2540ac3a908a6374aaaa72e0f27 | /tests/src/event/MakeBeansProfitEvent.py | 06350a8843655b3b21df11747f98205409c96e13 | [
"Apache-2.0"
] | permissive | buxx/synergine | 3a977b69bc35c1a5af1056f98028f8b7412795d2 | da05d762cdbc993362807d4851e1ca74784438ae | refs/heads/master | 2021-07-03T19:57:24.486164 | 2017-09-04T09:19:45 | 2017-09-04T09:19:45 | 23,734,878 | 6 | 2 | Apache-2.0 | 2021-06-10T14:15:26 | 2014-09-06T13:15:07 | Python | UTF-8 | Python | false | false | 232 | py | from tests.src.event.TestEvent import TestEvent
from tests.src.TestSynergyObject import TestSynergyObject
class MakeBeansProfitEvent(TestEvent):
def _prepare(self, object_id, context, parameters={}):
return parameters | [
"sevajol.bastien@gmail.com"
] | sevajol.bastien@gmail.com |
4b514a998a289f87349c4cdfda7c3e9cb179742c | f5b4d2f294085565395cb060d0508cc60b331526 | /vi/vn_express/spider.py | da6e99ead84c2fcf983dd2bcea95a235f8a1ba71 | [] | no_license | HaManhDong/crawler_news | 72fd8a18f0fe3358d1033667ee9857755dd07ac8 | 56171952a7bffef26ccfd397b08936ee259d52aa | refs/heads/master | 2021-01-22T20:26:14.036281 | 2016-11-24T03:33:39 | 2016-11-24T03:33:39 | 85,321,142 | 0 | 0 | null | 2017-03-17T14:33:45 | 2017-03-17T14:33:45 | null | UTF-8 | Python | false | false | 5,742 | py | import datetime
import scrapy
from scrapy.exceptions import CloseSpider
from database import database_connection
from database.database_connection import NewsData
class NewspaperItem(scrapy.Item):
url = scrapy.Field()
title = scrapy.Field()
summary = scrapy.Field()
content = scrapy.Field()
class N... | [
"haminhcongbkhn@gmail.com"
] | haminhcongbkhn@gmail.com |
a2ac3234cd4def8f830856f03044bd7161fbd180 | 8ff60c41c1cb387271a19b839ddb4ee951b41057 | /message/migrations/0001_initial.py | 3c0cfe80cb066405982f5f16be2f4526e2d184cb | [] | no_license | ajaypythonmate/codecrux | 579306b7691898fe6bce43ac6ba385bb38c89d90 | 31a0e3b8b92ab3693efe7f053ba3ba94ef614b39 | refs/heads/main | 2023-04-02T09:51:35.834632 | 2021-04-06T04:52:27 | 2021-04-06T04:52:27 | 355,058,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,028 | py | # Generated by Django 3.1.3 on 2021-02-01 10:29
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"ajay.khuswaha@pythonmate.com"
] | ajay.khuswaha@pythonmate.com |
184a87884146cb9b01e533a853cb3669cca251cf | 50a8942417f2124ffeeedb527bb036d3227e4f52 | /src/briefcase/__init__.py | 531000413b17257869aed573d1eded5004db2a08 | [
"BSD-3-Clause"
] | permissive | Viridescence/briefcase | b711b3334ef8e5fad7cded9eb60076437c94972d | a04adcc0091cbcc83d9c12d57bb6cc9fa705de42 | refs/heads/master | 2023-03-09T22:52:42.711239 | 2021-03-01T02:09:28 | 2021-03-01T02:09:28 | 342,579,930 | 0 | 0 | BSD-3-Clause | 2021-02-26T13:12:43 | 2021-02-26T13:12:42 | null | UTF-8 | Python | false | false | 380 | py | __all__ = [
'__version__',
]
# Examples of valid version strings
# __version__ = '1.2.3.dev1' # Development release 1
# __version__ = '1.2.3a1' # Alpha Release 1
# __version__ = '1.2.3b1' # Beta Release 1
# __version__ = '1.2.3rc1' # RC Release 1
# __version__ = '1.2.3' # Final Release
# __versio... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
2ef807073708068bda7360e6552b4bd687dc2821 | b38264a28f59248454972c54d19e4136aa3f181b | /tp3/algorithm_em.py | c1f399bc42fd5dfca969b15fb951c6e87392bae7 | [] | no_license | icannos/machine-learning-medical-data | 0ed8e4c47712daae081c2a8536766415b15505e2 | 8d79db4965a0297e1094f49780e920a75071e4bb | refs/heads/master | 2020-12-15T10:01:46.479424 | 2020-03-18T14:10:34 | 2020-03-18T14:10:34 | 235,068,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | import numpy as np
import random
from scipy.stats import multivariate_normal, norm
class myEM:
def __init__(self, n_components=1, dim=1):
self.dim = dim
self.n_components = n_components
self.mu = None
self.sigma = None
self.reset()
def reset(self):
self.sigma ... | [
"maxime.darrin@ens-lyon.fr"
] | maxime.darrin@ens-lyon.fr |
23a3ae57a468e1f126e12d677509104c6dd7bca9 | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /Interview-prep/merge_list.py | 5261ca9770974f95bb58bed058d70e103a38271e | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | import itertools
L = [[1,2,3], [4,5], [6,7,8], [9,10,11]]
merged = itertools.chain.from_iterable(L)
for a in merged:
print(a) | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
b5a23212cb338feb0206ac68fd0138470c6b4ef2 | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/test/test_v2beta1_object_metric_status.py | dbd605d082a20f5aee5371947ac2a7b38d3ef172 | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
d07c88d41d056a346ca71e8dd0c968788a908880 | 64b33c5c68b2b668f086fd218a1ce0e381f7fb40 | /binary_image/PASCAL_VOC/NDUDE.py | 59336883d98fe5377da828aee95b6b35171f3a2a | [] | no_license | hongjoon0805/ICE-N-DUDE | ce1f9c498ae490a76259be4d796e252a1ea6dedd | 138e76ca56d39bc88a90a70e9c6d08d1c3a24b39 | refs/heads/master | 2020-04-20T11:43:55.646416 | 2019-02-02T11:50:54 | 2019-02-02T11:50:54 | 148,457,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,724 | py |
# coding: utf-8
# In[1]:
from core import *
from tools import *
import numpy as np
from numpy import *
import os
import tensorflow as tf
import keras as K
import sys
import argparse
# In[4]:
# ICML_2019/image
class State_Estimation_Process:
def __init__(self, n, k, nb_x_classes, nb_z_classes, x, z, param_... | [
"hongjoon0805@gmail.com"
] | hongjoon0805@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.