blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0639bb8bfaf5d12027ea12b6ee6bbe9dec7363a0 | 6b7176e32e8e6b105d5ad8b4bda038ad9ae6a281 | /P25034-zhaojie/week-11/homework.py | 31a196df26a7d4580903c49e0900fa52b26d02c2 | [
"Apache-2.0"
] | permissive | xiaohh2016/python-25 | 20c7e0a157c4be5707891d1839644e015b28dbb4 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | refs/heads/master | 2021-01-05T18:50:53.838337 | 2020-02-12T08:46:53 | 2020-02-12T08:46:53 | 241,107,053 | 0 | 0 | Apache-2.0 | 2020-02-17T12:52:31 | 2020-02-17T12:52:31 | null | UTF-8 | Python | false | false | 1,910 | py | #!/usr/bin/env python
# encoding:utf-8
# file: homework.py
# 自己实现python自带的map、zip和filter函数
# 还没学到 yield语法不熟 先简单实现
# 实现map函数
def my_map(*args):
"""文档字符串位置
"""
if len(args) < 2:
# 先不用异常的方式处理 只是打印
print('map()至少需要两个参数')
else:
# 判断是否为可迭代对象 先不处理
fnc_nme = args[0]
n... | [
"jasonz666@qq.com"
] | jasonz666@qq.com |
e18cb7dd81804a2ba328dc66b22ac4a5eb10f3e6 | 92d79bbe1e94e192e9d4a728f99f6aecea500645 | /attack/df_attack_2_tab_next.py | 33f57d3a58533a0b661b278d2c17db343feda980 | [] | no_license | westzyan/attackWFP | e6f61dc7a6636640a298162941c5b7c882c1fc80 | 5e2227308b3ab7be5b607c4d8dddb4871ed56fc4 | refs/heads/master | 2023-03-02T19:16:14.846449 | 2021-02-09T18:04:42 | 2021-02-09T18:04:42 | 325,488,478 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,558 | py | from sklearn.metrics import confusion_matrix, precision_recall_fscore_support, classification_report
from Model_DF import DFNet
import random
from keras.utils import np_utils
from keras.optimizers import Adamax
import numpy as np
import os
import tensorflow as tf
import keras
config = tf.ConfigProto()
config.gpu_optio... | [
"15639067131@163.com"
] | 15639067131@163.com |
014cbf61158fb280b11d2f149b026f48d5234c0e | 2e2a54e30f8c8018fe0d163a5fd4b0d854ef165d | /src/gluonts/torch/model/deep_npts/_network.py | c29d1935c3d32e884ec124b33fde866e0b55aa92 | [
"Apache-2.0"
] | permissive | kashif/gluon-ts | b742021ca0292ca2885b3b079150f24cdf3e6dec | a818f69dc049c1c1d57e09d2ccb8b5f7a0cff656 | refs/heads/master | 2023-09-05T00:00:22.861992 | 2023-08-09T15:47:28 | 2023-08-09T15:47:28 | 222,552,468 | 5 | 0 | null | 2019-11-18T21:56:52 | 2019-11-18T21:56:52 | null | UTF-8 | Python | false | false | 14,377 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | kashif.noreply@github.com |
725d9518757190bbff990c8383cf7ec9d56e3cc5 | c0d537532f11cf742493093c3c325b4625fdc6e4 | /Q4/HW3_Q4.py | ca25aabc6ff5e1c28eeec4da92089f07eb0f066c | [] | no_license | plusbzz/cs224w-hw3 | c9b4296425f467e203d12e4008b871d6dd89333f | 7d513c991ff6e16433b6a4241950a2a3b2c15a96 | refs/heads/master | 2016-09-06T06:56:45.495051 | 2013-11-07T05:35:46 | 2013-11-07T05:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py |
# Homework 3: Question 4
from snap import *
from random import sample,choice
from ggplot import *
N=10670
M=22002
nodes=arange(N)
dia_sample = 20
# Creating graphs
# Create a random Gnm network
g_nm = PUNGraph_New()
for i in nodes: g_nm.AddNode(i)
while True:
s,t = sample(nodes,2)
g_nm.AddEdge... | [
"plusbzz@gmail.com"
] | plusbzz@gmail.com |
1864abd09c45d30c777b5127b78b028f192c006a | ce3f2b03f38076b75544ab901662e6aeda35d97a | /manage.py | 0f521b7d0f5bf1caf2215a08b13f9ff161682059 | [] | no_license | DivingCats/reflask | 98799b7f693101a211152701cace06ef627233f3 | 1be5c61f3cf48b4e6e6a15fee56930f8166d3cd6 | refs/heads/master | 2022-12-09T22:13:58.644735 | 2020-02-08T09:56:14 | 2020-02-08T09:56:14 | 230,551,305 | 0 | 0 | null | 2022-12-08T03:34:28 | 2019-12-28T03:11:44 | Python | UTF-8 | Python | false | false | 610 | py | # -*- coding: utf-8 -*-
# @Time : 2020/2/5 20:55
# @Author : DivingKitten
# @File : manage.py
# @Software: PyCharm
# @Desc : 启动脚本
from app import create_app
from flask_script import Manager, Shell
app = create_app('default')
manager = Manager(app)
def make_shell_context():
return dict(app=app)
manag... | [
"Unility@163.com"
] | Unility@163.com |
235950d4728104e2a077b449c15418d2a6e7154c | 057554afbdfec2f8689a999a15ba0848c620ab4f | /find_available_room.py | d3ca3e14301c511f7ba7b3c8037a7f21148694ab | [
"Apache-2.0"
] | permissive | cnaert/roomfinder2 | fe40c2728d19c92688ef4b86699db660f36fefb8 | 75040a2842058334fb5dfa9d12491e321bc88b43 | refs/heads/master | 2021-01-19T21:59:25.368371 | 2017-04-19T11:13:33 | 2017-04-19T11:13:33 | 88,688,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
import subprocess
import getpass
from string import Template
import xml.etree.ElementTree as ET
import csv, codecs
import argparse
import datetime
now = datetime.datetime.now().replace(microsecond=0)
starttime_defaul... | [
"cyrille.naert@dimensiondata.com"
] | cyrille.naert@dimensiondata.com |
f45604bd7b04946b6c72a23f38771783457a5ae7 | 9998ff1d80a5442970ffdc0b2dd343e3cab30ee8 | /fiaqm.py | 8d1e36ec5d2bdf3d45320c614cf86650b2282341 | [
"MIT"
] | permissive | cgomezsu/FIAQM | 9baac1a9410a6ad19e67fff024a9ff15f24df70c | da44e370f40e573233a148414229359e7782ad0c | refs/heads/main | 2023-05-13T02:17:19.833979 | 2021-05-24T01:25:17 | 2021-05-24T01:25:17 | 301,475,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,902 | py | """
v.e.s.
Federated Congestion Predictor + Intelligent AQM
MIT License
Copyright (c) 2020 Cesar A. Gomez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, inclu... | [
"noreply@github.com"
] | cgomezsu.noreply@github.com |
6d39bfe89b71cb0c05cdf5b5824bde77c2647498 | fca3fe7557c00a379e90cda8016a8719ca57fe28 | /jexp/tests.py | 32a07ef74a77e0e252e4893441888e74bb850e8b | [
"BSD-3-Clause"
] | permissive | mhluongo/jexp | d8a4db0a2d4f0f5f70471c2e36ecc22c8835b73e | e23b375c00bb62cab9671bc76250023125b4e60f | refs/heads/master | 2021-01-13T01:15:08.980614 | 2011-09-02T00:11:13 | 2011-09-02T00:11:13 | 2,158,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from nose.tools import eq_
from jexp import J
a = J('a')
b = J('b')
#logical tests
def test_or():
eq_(str(a | b), '(a||b)')
def test_and():
eq_(str(a & b), '(a&&b)')
def test_inv():
eq_(str(~a), '(!a)')
#math tests
def test_negate():
eq_(str(-a), '(-a)')
| [
"mhluongo@gmail.com"
] | mhluongo@gmail.com |
25bd69a2f916412574ed02402bb69fe8bb639fc1 | a1bfa15fdb28c2eb4f46c6a694dd310e0a174846 | /jpg2mojo.py | c128a00be0cb268eea657c795fa607d5b2657c2a | [] | no_license | Rhoana/MojoToolkit | 2971f6634adbcf40a5b8658b29de7fb6215498c2 | c64e6d0c266dbb61105a8cadda16db7a2f76e0eb | refs/heads/master | 2020-12-21T12:06:05.149710 | 2017-09-18T16:42:31 | 2017-09-18T16:42:31 | 73,499,035 | 0 | 1 | null | 2016-11-11T17:49:48 | 2016-11-11T17:49:47 | null | UTF-8 | Python | false | false | 2,135 | py | #!/usr/bin/python
import os
import cv2
import glob
import argparse
import numpy as np
from toMojo.np2imgo import Imgo
from toMojo.np2sego import Sego
help = {
'out': 'output mojo parent (default mojo)',
'jpg2mojo': 'Stack all jpgs into a mojo folder!',
'jpgs': 'input folder with all jpgs (default jpgs)',
... | [
"thejohnhoffer@coxgpu04.rc.fas.harvard.edu"
] | thejohnhoffer@coxgpu04.rc.fas.harvard.edu |
808213727226448e77ae3540979e0a54ba99ac8c | 29d6101cc76550b3dbb47e885a6c160f46551bc1 | /test | 61dbb6fd4297fef87fa9d79ea8c095ff1b07c43c | [] | no_license | awesomebjt/lpic-self-tests | b7dcc4062550b6ec06ef20ecb3c31c976ce46b32 | bd772b1e25549e96caf02671b882212a3ab0cc13 | refs/heads/master | 2023-07-12T02:42:21.945693 | 2020-08-27T02:13:42 | 2020-08-27T02:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | #!/usr/bin/python
import json
from random import randint
import sys
try:
content = json.loads(open(sys.argv[1],'r').read())
except Exception as e:
print("Failed to load self-test. Did you provide the right file name as the first argument?")
raise e
total = 0
correct = 0
while len(content) > 0:
q = ... | [
"bjt@rabidquill.com"
] | bjt@rabidquill.com | |
0a4d9c5a7f1c40f757a2731830ff440ee111ecd1 | 03b7430a0fbba63c0d5712ed6539caa807cb8d05 | /problem1e.py | 920b116d89aa792337950f565febeb39b2f85035 | [
"MIT"
] | permissive | yasserglez/monkeys-typing | 7e0dcecfea3bc7401fbd8d229180b8277dc0b6e0 | c7d15802cedd29dc0a194612d3777a656cb43caa | refs/heads/master | 2020-04-06T04:31:39.337137 | 2015-08-08T18:23:37 | 2015-08-08T18:23:37 | 18,028,427 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from monkeys import compute_freq_tab, write_freq_tab
freq_tab_2nd_order = compute_freq_tab(2, 'books/agnes_grey.txt')
write_freq_tab(freq_tab_2nd_order, 'agnes_grey_2nd_order.json')
freq_tab_3rd_order = compute_freq_tab(3, 'books/agnes_grey.txt')
write_freq_tab(freq_tab_3rd_order, 'agnes_grey_3rd_order.json')
| [
"ygonzalezfernandez@gmail.com"
] | ygonzalezfernandez@gmail.com |
9524b3b82893f96b5401f320e1e5ef79be1a59ef | 523db0f90e8069311705173cfcfdfb2c4417ae44 | /06_port_scan/w8ay.py | a95691477badbd9c9fae4083fb5c2c06b3319282 | [] | no_license | ClayAndMore/py_scanner | b351fbc23fdc2d797fcc527472561333423d44f7 | b21c1ae9ae8d9a6dc32841ec62bcd7cc40e0531f | refs/heads/master | 2020-06-05T13:20:27.787920 | 2019-06-19T02:45:15 | 2019-06-19T02:45:15 | 192,449,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Name:w8ayScan
Author:w8ay
Copyright (c) 2017
'''
import sys
from lib.core.Spider import SpiderMain
from lib.core import webcms, common, PortScan
reload(sys)
sys.setdefaultencoding('utf-8')
def main():
root = "https://shiyanlou.com"
threadNum = 10
ip = common... | [
"wangyu1@antiy.com"
] | wangyu1@antiy.com |
2c2aebeebd8ad4a79fc47d44907d6a0fd9cdc88d | f68c7045d39039bcc58b8d096aca7edf433429ca | /env/bin/easy_install | 2a206bc40153a884b403668cb00e8f28646c0b1c | [
"MIT"
] | permissive | kelvin-daniel/instagram | beca157eb4eb1130ebd86825a9f99d96b903da02 | 2ede5319266f4312a9440d4985d098bc7545c2ae | refs/heads/master | 2022-12-30T17:31:37.451798 | 2020-10-26T09:02:55 | 2020-10-26T09:02:55 | 304,535,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | #!/home/kevon/Documents/moringa_school/Django/instagram/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kaymutor@gmail.com"
] | kaymutor@gmail.com | |
35509fe6b955bd2603e79013b82691a6ac50a9c7 | 1fa21cd2c288a9f87295631e10f747fe075a1502 | /Trip Planner APIs/trip.py | fe94241adebdc4d7399310e515b6760df7830685 | [] | no_license | bmrn/TfNSW_APIs | 4bc22e800796f848ff5f1ced2c04dd56a0666472 | b4cbe176ce811698739b5fd33517fb36edbfa68d | refs/heads/master | 2021-01-19T22:55:33.722331 | 2017-04-28T06:33:23 | 2017-04-28T06:33:23 | 88,893,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | from urllib.parse import urlencode
import requests
import json
import tssetup
from pprint import pprint
api_key = tssetup.getKey()
base_url = "https://api.transport.nsw.gov.au/v1/tp/"
query_type = "trip?"
#initialise query param dictionary
qdict = {}
#add parameters
qdict["outputFormat"] = "rapidJSON"
qdict["coordOu... | [
"ausben@gmail.com"
] | ausben@gmail.com |
fe2dc08589eec0c27d13129f015869399ee3dae0 | 4bb72ba6ee6ed3ad887b799b27434946a92ff9d2 | /algo/CryptoSystem.py | 07c2ccc7e3f2ab9244ec99bd40722b77700c684c | [] | no_license | Libi92/ECCBDD | 33de3d9b2a91d671304f3e5bc6b134e7046d55f8 | baa7b2c9177c6110e1cfa57bea6c936b30a4985a | refs/heads/master | 2020-03-22T10:04:52.317899 | 2018-07-08T07:24:56 | 2018-07-08T07:24:56 | 139,879,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,516 | py | import datetime
from functools import reduce
from algo import curve
from algo.ecc import EC
from algo.logger import Logger
from algo.point import Point
PXY_MATRIX_SIZE = 5
class CryptoSystem:
def __init__(self, g, ec):
self.g = g
self.ec = ec
def bit_invert(self, b):
inv = map(lambd... | [
"libinbabup@hotmail.com"
] | libinbabup@hotmail.com |
0cca7a3e106b4584b3b916276cb3e704eb75122f | e66efe2baf16c48398087e1e2322ae4e8e77b5f1 | /deepbrain/train/segmenter/count_frequency.py | 858fb7942997b6c83726df7342a20dcfe6b2a46e | [
"MIT"
] | permissive | codewithkaranjeswani/deepbrain | b43e72e95c185dd96ec78f92f42afd7741fac75c | ac16db831ba0fb213c08b4449657f5895b136324 | refs/heads/master | 2022-11-25T11:12:41.954520 | 2020-08-03T15:52:48 | 2020-08-03T15:52:48 | 284,741,744 | 0 | 0 | MIT | 2020-08-03T15:50:43 | 2020-08-03T15:50:43 | null | UTF-8 | Python | false | false | 1,581 | py | # Count class frequency to deal with unbalance
import tensorflow as tf
import os
import nibabel as nib
import numpy as np
import random
import re
from skimage.transform import resize
from pathlib import Path
from const import *
# CSF: 1, 2, 23, 24, 0, 18 -> 1
# WM: 16, 17 -> 2
# GM: Rest -> 3
# Brain Stem: 7 -> 4
# C... | [
"i.itzcovich@gmail.com"
] | i.itzcovich@gmail.com |
59accba5a656d5b413c7c3ad528bee9b9a83ad95 | 9025c27655e2f150d01e64ce0826df8166ac6813 | /core/urls.py | a1c84250501f6e331d1daaab5d0a66f5b2db6bbf | [] | no_license | kairat3/bella-plain | 02dd219f6bf087c99772490a32d61cd242a18f28 | 1950fd46dc53b800461f6077af3044bdfcf8300c | refs/heads/master | 2023-07-13T05:06:17.575811 | 2021-08-19T14:05:29 | 2021-08-19T14:05:29 | 393,064,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from product.views import ProductApiView
from rest_framework import permissions
from drf_yasg.views import get_schema_view
f... | [
"jvckmiller@gmail.com"
] | jvckmiller@gmail.com |
c67c4e7d3e4988859508f7b101f56a874364ee59 | 1add9e012d8b61f17ca992f0c157ee0a5d1b7860 | /env/bin/pyhtmlizer | 5689466410d24f4b1c2200f96904416ace10fb6b | [] | no_license | dims337/chat-app | 3b0cd7dd4c2b22ba71219fba181ae35e91e7b3db | 042594f1f5785feeb3a06f7c204fa726ae2b2352 | refs/heads/master | 2020-04-11T17:09:17.406649 | 2018-12-21T04:02:46 | 2018-12-21T04:02:46 | 161,949,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/dimsontenke/Desktop/chat_app/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.scripts.htmlizer import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"dimsontenke@dimsons-MacBook-Pro.local"
] | dimsontenke@dimsons-MacBook-Pro.local | |
fb997a333c66b348a4b2be51acc74d9b48a24bd6 | 47a211616a0fd746c1738aac8ab00cb758d6b057 | /Flask/Scripts/rst2xml.py | 04f24d4bafeabae2bcd193f648d3307ea9da0421 | [] | no_license | yan-egorov/flask_bro | 49b8b43ae5d113fd776adda6a65214b334daf63b | 5e233a5665c9948fc22d7d185c6d43b50b58fe5c | refs/heads/master | 2021-01-18T20:30:05.722883 | 2015-06-10T07:40:45 | 2015-06-10T07:40:45 | 37,182,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!C:\Users\rusegy\Documents\Python Scripts\TrueStories\Flask\Scripts\python.exe
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"... | [
"egorov.yan@gmail.com"
] | egorov.yan@gmail.com |
3e9e5f2e2ab82da05314d2f3be4cd0c514ea872e | b10bae1f94f00404d8d21a563d7626486aeebe74 | /users/models.py | ce385919d08af645716f84c4baa3931bbe72a02d | [] | no_license | brotherchris65/newspaper | d93b91f618cc33c627f5e584fccd91bdcb6fb75c | 7dd5f5c3e09fc38183684d9a30e01f5e1debc2ee | refs/heads/master | 2021-09-28T14:20:35.043218 | 2019-12-11T01:42:05 | 2019-12-11T01:42:05 | 227,240,504 | 0 | 0 | null | 2021-09-22T18:10:49 | 2019-12-11T00:18:19 | Python | UTF-8 | Python | false | false | 202 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
age=models.PositiveIntegerField(null=True, blank=True)
| [
"brotherchris65@gmail.com"
] | brotherchris65@gmail.com |
2cdced4eecc20d7bb193be9283df32bad706371b | 841af9f674d910f1135b65a1e46f4a422d13a6db | /test_only_modified.py | 6626cf6ccb89b554c250e63db1192603bc0e1db2 | [] | no_license | betterteam/InterSec_simulation | 07e95215abbab4722226355261b9909c4a8d8308 | bfccec4e58b0fe79313993cb6cad33ce53a7f672 | refs/heads/master | 2021-01-15T22:18:47.528359 | 2018-01-10T07:57:19 | 2018-01-10T07:57:19 | 99,894,685 | 3 | 0 | null | 2017-12-15T15:39:54 | 2017-08-10T07:30:28 | Python | UTF-8 | Python | false | false | 23,851 | py | # Final version of traffic signal
import sys
import numpy as np
from PyQt5.QtWidgets import QWidget, QApplication, QMainWindow, QFrame, QDesktopWidget
from PyQt5.QtGui import QPainter, QColor, QPen, QBrush
from PyQt5.QtCore import Qt, QTimer, QTime
import math
class Position:
def __init__(self, x=0, y=0):
... | [
"better@opossum.itolab.nitech.ac.jp"
] | better@opossum.itolab.nitech.ac.jp |
e6acc1a14b714638e4d8eb6b3210b8ad4b35a3c2 | 37069009dd428ce59819ffea2fcffc07dda6e712 | /django_analyze/migrations/0068_auto__add_field_genotype_max_memory_usage.py | 550ac7b81c79b27de932d2c0ecb1788805c93c03 | [] | no_license | chrisspen/django-analyze | 829f560d7c5f2fb1c19fc07bc77cb1a83238e696 | 421ee35235f76ff8657f7befe5212acd7ccf3989 | refs/heads/master | 2020-04-28T15:42:51.773823 | 2015-04-18T14:50:02 | 2015-04-18T14:50:02 | 14,995,029 | 2 | 2 | null | 2014-07-07T12:39:22 | 2013-12-06T22:26:29 | Python | UTF-8 | Python | false | false | 18,209 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Genotype.max_memory_usage'
db.add_column(u'django_analyze... | [
"chris@coronis"
] | chris@coronis |
e9645d989c183c9dbac600d419ff4e6142b1a50e | 0c6fb8fcc31eb658561ee7e244e8f0f7c8d72d6e | /build/ros_arduino_firmware/catkin_generated/pkg.installspace.context.pc.py | 499a2c796c3c70019a20c66822f8a3cea544edbd | [] | no_license | tutlebotmitica/mybot_ws | f71fac8e41a061d132694eb4f24f8375fd5eba8d | 4bb2003069709a29f0868c5fc404da01cddd0af3 | refs/heads/master | 2021-08-18T21:41:13.355546 | 2017-11-24T00:43:04 | 2017-11-24T00:43:04 | 111,839,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ros_arduino_firmware"
PROJECT_SPACE_D... | [
"paul@modulab.ro"
] | paul@modulab.ro |
a8a1af44b4ff29b22520121f30295c8ebe1d693f | 554ec84f23825452f7692f91f742bdc81fa50e84 | /chatbot_27549/urls.py | 7d1264887b9b6eb6dad7fc662d8571cc66eddd66 | [] | no_license | crowdbotics-apps/chatbot-27549 | a7806af210b6e7ccdfb3db3dbaaac9e9dcb5a5af | 0e615cbb191a8d91e2874e7329b059193a8ad625 | refs/heads/master | 2023-05-26T13:30:53.116812 | 2021-05-29T07:24:50 | 2021-05-29T07:24:50 | 371,908,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | """chatbot_27549 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
50363bbf710a2b67812e488531ed086fe0b32138 | d40fbefbd5db39f1c3fb97f17ed54cb7b6f230e0 | /datadog_checks_dev/datadog_checks/dev/tooling/config.py | 7d63ecb7890e8d4df068f1419c36389ea8bb11bc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | slightilusion/integrations-core | 47a170d791e809f3a69c34e2426436a6c944c322 | 8f89e7ba35e6d27c9c1b36b9784b7454d845ba01 | refs/heads/master | 2020-05-20T18:34:41.716618 | 2019-05-08T21:51:17 | 2019-05-08T21:51:17 | 185,708,851 | 2 | 0 | BSD-3-Clause | 2019-05-09T02:05:19 | 2019-05-09T02:05:18 | null | UTF-8 | Python | false | false | 3,143 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from collections import OrderedDict, deque
from copy import deepcopy
import toml
from appdirs import user_data_dir
from atomicwrites import atomic_write
from six import string_types
from ..compat impor... | [
"noreply@github.com"
] | slightilusion.noreply@github.com |
4090524e51e82ff0144e1f510597cdaf59752ac9 | 08d5ac4947860068f3c79edd6eed7493cee29f95 | /theano_train.py | 54672bc9bc60d8e2e33a5ff5e6c0dc50ddded584 | [] | no_license | MrsJLW/nslkdd-deep | 9babc0821524247bdd4bd2afa1c197392af5ab3c | 462705bb0f42328673a3fe6d0caf0e75802e9b87 | refs/heads/master | 2020-03-29T13:27:54.058568 | 2016-04-11T18:01:31 | 2016-04-11T18:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,049 | py | import matplotlib.pyplot as plt
from sklearn.metrics import accuracy_score, precision_score, confusion_matrix
import numpy as np
import sklearn
import sklearn.datasets
import matplotlib
import theano
import theano.tensor as T
import timeit
import time
from theano import pp
import data as d
from theano import config
fro... | [
"rajarsheem@gmail.com"
] | rajarsheem@gmail.com |
faccd9f59e65cffd749ab558cda959576930e26c | 0ea5d0f75e7cb9f8a7fd213e2eb4f29a339ea285 | /wnfportal_python/wnfportal_dm_konten.py | a209429b9d0e3bab64b37d89220a66b699158bda | [] | no_license | wnf58/wnfportal | 1d5d7ba8e5b63b69feb016e57fc2ee7efccc8400 | 2d593fdd9266f44d60297f7f96b6b4a2c4c7ea98 | refs/heads/master | 2022-12-17T03:08:06.001400 | 2020-09-26T11:51:59 | 2020-09-26T11:51:59 | 115,601,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,164 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import fdb
import os
import configparser
import wnfportal_dm_datenbank
import wnfportal_tools as T
import time
from reportlab.graphics.shapes import Drawing
from reportlab.graphics.charts.barcharts import VerticalBarChart
from reportlab.graphics.charts.piecharts import ... | [
"dev@wlsoft.de"
] | dev@wlsoft.de |
beb223699fadcff443ec1b36fb64cecf67b2359c | b5d0a6254b54c0a778181a67bcda14cc6663e871 | /0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.5-question.py | 5ec618baaa19cdb2c7b27b33ac1bfb9f081b82c6 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | Web-Dev-Collaborative/Lambda-Final-Backup | 113e719a76a144b86d06f3a412afe4b02689cad7 | e9ab84928faa8364bacd863009ae9aec01ff9d1e | refs/heads/master | 2023-06-07T15:34:00.682815 | 2021-04-17T01:53:14 | 2021-04-17T01:53:14 | 358,899,122 | 0 | 0 | MIT | 2023-05-30T04:03:16 | 2021-04-17T14:24:53 | JavaScript | UTF-8 | Python | false | false | 318 | py | # Sparse Search
# Given a sorted array of strings that is interspersed with empty strings,
# write a method to find the location of a given string.
# EXAMPLE: INPUT: ball, {"at", "", "", "", "ball", "", "", "car", "", "", "dad", "", ""}
# OUTPUT: 4
# time complexity: O()
# space complexity: O()
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
af5d3531a0c3b27b202c1ef66223d898bd77ec13 | 008aada8c0e718e0220eabc5b54732a1e1b07f97 | /sergeant/connector/_connector.py | ee1985d5cf05a1683d5b4b588c6a582648b9599b | [
"MIT"
] | permissive | gabriel-yahav/sergeant | 59259a92c4c072e317d82022f19b440b21d2c294 | 0de9bfb4fdca62f061d6588c6839c4491c5d4f9b | refs/heads/master | 2022-09-30T04:38:48.414842 | 2020-05-26T10:28:50 | 2020-05-26T10:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | import typing
class Lock:
def acquire(
self,
timeout: typing.Optional[float] = None,
check_interval: float = 1.0,
ttl: int = 60,
) -> bool:
raise NotImplementedError()
def release(
self,
) -> bool:
raise NotImplementedError()
def is_locked(... | [
"gal@intsights.com"
] | gal@intsights.com |
f8b918dbc080c727941fe32353727591500f3f2d | 5c61851a03dd1ac98d03c2e98f27487f188ff00f | /{{cookiecutter.repo_name}}/manage.py | 13bffdcfd10dc0e98343059f47512923a6698335 | [
"BSD-3-Clause"
] | permissive | tony/cookiecutter-flask-pythonic | e7208a8fc9ccbde10e541f8e657dbf4da7b388b3 | d1274ec5d5b72cab128e593ed78de88c29bd54b5 | refs/heads/master | 2023-05-29T20:49:21.927268 | 2021-10-05T12:39:04 | 2021-10-05T12:39:04 | 35,064,692 | 39 | 4 | null | 2023-05-01T21:06:54 | 2015-05-04T22:52:20 | Python | UTF-8 | Python | false | false | 1,203 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from flask_script import Manager
from {{ cookiecutter.repo_name }} import {{ cookiecutter.repo_name | capitalize }}
"""If not using Flask-Script::
app = {{ cookiecutter.repo_name | capitalize }}.from_cli(sys.argv[1:])
Does the trick for retrieving an applic... | [
"tony@git-pull.com"
] | tony@git-pull.com |
52361d8d4a6f74b1bd33bc572eee6582ff87237f | 92a34017b2c604e3e1d5af6347f98cd05e8d0cb7 | /orders/urls.py | 3fbadc5750edf20f37089f51c4735544a62a7205 | [] | no_license | dandani-cs/swishtest | 76b7c2e04193c749bef1b31e24fdd53a61707341 | 983e07930265690918d9d60b7ca972c2547d95bf | refs/heads/master | 2023-02-18T03:25:23.652843 | 2020-12-12T12:54:15 | 2020-12-12T12:54:15 | 316,511,893 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django.urls import path
from .views import OrderListView, OrderCreateView
urlpatterns = [
path("", OrderListView.as_view(), name="order_view"),
path("new", OrderCreateView.as_view(), name="order_new")
]
| [
"dani.cstech@gmail.com"
] | dani.cstech@gmail.com |
5b645591d5f4113d5f9bc03b5fb8121abefcbe03 | 47c12b42843d08a10655006fba6fb0c662e7bf62 | /yonep.py | 92b1c822b8ae4f9d036e2f38a53af06c6ffd61e1 | [] | no_license | easthgs/git-test | 6325a8ba1bc77bec6a4b2d54fc84d08498d4b67e | 34de227bbf017f6b78b5bcf2cd4a7a47069c797a | refs/heads/master | 2021-01-10T12:23:10.331150 | 2016-02-20T17:55:13 | 2016-02-20T17:55:13 | 52,128,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from flask import Flask, render_template, url_for, redirect, request
app = Flask(__name__)
@app.route('/')
@app.route('/<name>')
def yo(name=None):
return render_template('yo.html', name=name)
@app.route('/add', methods=['POST'])
def add():
return redirect(url_... | [
"eastnep@yahoo.co.jp"
] | eastnep@yahoo.co.jp |
b9d3d581f68fcf8fdc2b060485db026dfba0d13f | 7cb7553a04ce0eace07f331a493b96f2bdb2fd26 | /week13_H.W/IDS_20200529-8.py | fbc674aded1485154d1c326dc00a9f40c3df7241 | [] | no_license | hjkyuit1226/Introduction-to-DS | 2308f0780e2c6944f98ba3c0a559bca96b23bfbf | 1cf26d1c7b080bb518f2f131c26091461a844fd3 | refs/heads/master | 2021-02-19T15:32:10.344138 | 2020-06-06T19:04:13 | 2020-06-06T19:04:13 | 245,314,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | def get_fahrenheit(x):
"""
Transform a Celsius degree into Farenheit scale
"""
f = x*9/5 + 32
return f
print(get_fahrenheit(25)) | [
"noreply@github.com"
] | hjkyuit1226.noreply@github.com |
c85864db8a16d494aabf4adc4a5f186176ac2e22 | 1cd904a429a2392f47762a037e7ac8545cd673f1 | /homework_hse/homework03/homework03.py | 79b8c6afc95b99b94d14f1dbddd140ce4a529c33 | [] | no_license | annnyway/homework | e0bce8af87fc6100f20ce736e7082721005f4842 | 4fd3aa4279560d7a56af99d24636128e520945df | refs/heads/master | 2021-07-12T16:06:44.210852 | 2019-03-03T20:40:05 | 2019-03-03T20:40:05 | 148,026,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | import random
def adjective():
with open('adjectives.tsv', 'r') as f:
adjectives = f.read().split()
return random.choice(adjectives)
def noun():
with open('nouns.tsv', 'r') as f:
nouns = f.read().split()
return random.choice(nouns)
def transitive_verb():
with open('trans_verbs.... | [
"nuticbooms@gmail.com"
] | nuticbooms@gmail.com |
c40f6a5a4f47f0180df1f9da49f262d8982ae040 | 728bd80edb381d74b5d19b0d2bbd5f0c7e00412e | /partenaire/admin.py | e4d1b140508662c013b2e393f60d3fdb997f44dc | [] | no_license | guilavogui24/applisigre | 16b45b4448975c7872223b911745ca02d8c64a84 | 39572782b2646543129208503f8c47a5813223ce | refs/heads/master | 2023-07-12T06:31:54.882558 | 2021-08-06T13:28:55 | 2021-08-06T13:28:55 | 393,380,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.contrib import admin
from .models import Partenaire
from .models import TypePartenaire
from .models import FormeJuridique
from .models import Categories
from .models import SousCategorie
class SousCategorieAdmin(admin.ModelAdmin):
list_display = ('nom', 'Categories')
search_fields = ['nom']
#... | [
"guilavoguijoseph@gmail.com"
] | guilavoguijoseph@gmail.com |
fc751a4c8a4c39cb45786c720a5ed4aa6a9bfb76 | 5cd9518f9a869a355019c743a5c2e65b0f3c50ba | /problem4.py | a96d8f797444928c1432d958ac34449608efcd17 | [] | no_license | astan54321/PA3 | 0d2ce6a1e9bce4ae9cafcedb930459e6b0bf66ee | 13d4048c12ea9b42cf9990389cf7894b2430cb3c | refs/heads/master | 2023-01-06T09:51:21.428543 | 2020-10-15T08:17:30 | 2020-10-15T08:17:30 | 303,866,798 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | from mrjob.job import MRJob
from mrjob.step import MRStep
import re
WORD_RE = re.compile(r"[\w']+")
class MRMostUsedWord(MRJob):
def steps(self):
return [
MRStep(mapper=self.mapper_get_words,
combiner=self.combiner_count_words,
reducer=self.... | [
"astan54321@gmail.com"
] | astan54321@gmail.com |
aa3069e85491124d364115e57d1a97e1ff6dbda7 | e2589896ad0e629d933f1e9e03f9963eb922664a | /backend/cool_dust_27675/wsgi.py | 297564f38beadc76f1ea37eeabd22b393dcbc0c4 | [] | no_license | crowdbotics-apps/cool-dust-27675 | 89b947ddd6c87d70febeb2af15ffab3706b6cc13 | f2fa1d6f4206955173a2ebf1b0f824ee5d184d1a | refs/heads/master | 2023-05-08T10:46:07.382608 | 2021-06-02T06:44:22 | 2021-06-02T06:44:22 | 373,066,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for cool_dust_27675 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b12892a96f4b48796a35f6700c11b1ce1875c2cf | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /test/python/circuit/library/test_phase_estimation.py | 8bf3d15d9ea0a395cd1d2ede7c122fdb666605b4 | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 5,238 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
0e162d2c63ae0f43fffc22bc0537ef43c0b7ff22 | baa4b4e6a4aae7df3236cc97f600262f969fe827 | /project/server.py | 39d0f9cd9df5c6768b9fbdd29f1e2e3bac6fc873 | [] | no_license | elihan27/CS-131 | 97517d86d0d92033ab207185d2a64cdbe55cfa50 | 088d05a138c9f7383faa048a500748f43e6c789b | refs/heads/master | 2020-04-21T23:13:11.225262 | 2019-02-10T03:37:02 | 2019-02-10T03:37:02 | 169,938,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,303 | py | import asyncio
import string
import aiohttp
import sys
import time
import logging
#As of 9:30 AM, 06/08/2018:
#has implemented "WHATSAT", "IAMAT", and "AT", dictionary, servers talking to each other
#need to implement: logger, buffer
server_info={}
#buffer=[]
portnumbers= {
'Goloman': 12717,
'Hands': 12718,... | [
"ehan2016@gmail.com"
] | ehan2016@gmail.com |
8041a1fb64300f05fe3fc25480204f1c264af1d5 | 4c205e65142adcde0e55693e63aadc0f32b585a7 | /Appliction_Generate_ETL/Fact/fact_commande_vente.py | 2de5b3fc4f7fd4dfd663b5fbe28c2c9805ee8b0a | [] | no_license | HamzaLebcir/Generic-DW-ERP-realization | 3d42809a48c012b2cbc96860350a5aa61529ddb3 | e13de06158fbbc55b8760485131951aa7006d5ca | refs/heads/main | 2023-01-30T04:51:52.603268 | 2020-11-26T11:48:48 | 2020-11-26T11:48:48 | 316,214,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | from configparser import ConfigParser
config = ConfigParser()
class fact_commande_vente:
def __init__(self, file_config):
config.read(file_config, encoding='utf-8-sig')
self.ID = config.get('Fact_Commande_Vente','ID')
self.Key_Produit = config.get('Fact_Commande_Vente','Key_Produit')
... | [
"lebcirhamza7@gmail.com"
] | lebcirhamza7@gmail.com |
8efde5c2d68e9d8fcd988306f044844b4c316c77 | c3796ebebb42e55878556a53abad1a2e18fa4020 | /test/functional/wallet_resendwallettransactions.py | 1d73e04f39a1b4d65c9ca45043ad36d0c6b036b9 | [
"MIT"
] | permissive | lycion/genex-project | a9e54d22138ca81339f76bba166aa9f366fa9dd8 | fc103e93ee274dc57179d01c32b0235b29e364ca | refs/heads/master | 2020-03-29T02:18:33.445995 | 2018-08-07T23:56:27 | 2018-08-07T23:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Genex Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test resendwallettransactions RPC."""
from test_framework.test_framework import GenexTestFramework
from test_... | [
"40029035+genexcore@users.noreply.github.com"
] | 40029035+genexcore@users.noreply.github.com |
2de0a3a5bc6d4a723ceea97771879e67868cf611 | 0543e8a6c4c45a80c3e11bbd6df694a63ad0155d | /diapers/migrations/0004_auto_20150822_1627.py | b4144d1ff6d3d09f9af4eea806abf61a693331fa | [] | no_license | asorokoumov/compare | 758f0cc22607db51022386d64f21c29610622b02 | 221aef6024f3c63c1a1d01f13f03166ce5b02a54 | refs/heads/master | 2022-08-09T16:05:33.342400 | 2019-05-08T09:54:48 | 2019-05-08T09:54:48 | 41,490,630 | 0 | 0 | null | 2022-07-06T19:18:37 | 2015-08-27T14:13:05 | CSS | UTF-8 | Python | false | false | 249 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('diapers', '0003_auto_20150822_1624'),
]
operations = [
]
| [
"sorokoumov.anton@gmail.com"
] | sorokoumov.anton@gmail.com |
f08c6bfd9d1ae8773db3560b2864739bc460de2e | 4716314a21040600df9c186eefa9182ad6aab9d7 | /civil_war/settings.py | b81ccbfb701633189dc2ec406661c89e9c140834 | [] | no_license | muilee/politician_analytics | 164a7127ca5fe74a399cf83abc8b25d2e64bff24 | 54b2761f880e5f441f299909266ebbfb4e4a5a29 | refs/heads/master | 2021-05-12T13:43:24.811319 | 2018-01-31T12:21:14 | 2018-01-31T12:21:14 | 116,940,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for civil_war 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
#... | [
"matt@localhost.localdomain"
] | matt@localhost.localdomain |
b13d0766ba150b96be1c6b817e88795d4963c5de | bbab26a8d60b9b1c3e0037596165d3639a5e18ae | /assign2.py | 797216f15613313e889f7b7f082da1c2bdbe46a0 | [] | no_license | MidhaTahir/-Python- | 200d6c83c8066392143e7297659ea9ecc5b57b79 | b054e4bc82289051e4f96b9b03f8402993b42a38 | refs/heads/master | 2021-07-19T20:13:37.920052 | 2020-06-24T18:31:05 | 2020-06-24T18:31:05 | 186,156,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import random
arr = []
for i in range(10):
arr.append(random.randint(1,100))
print(arr)
minimum = min(arr)
print("The minimum number in random list is " + str(minimum))
minimum_position = arr.index(min(arr))
print("The minimum number position is " + str(minimum_position+1))
maximum = max(arr)
print("The maximum n... | [
"midhatahirkhan2011@gmail.com"
] | midhatahirkhan2011@gmail.com |
aebbafdcebef5f7edbb5985af8c57816dee40ee3 | a8e132c3cb716021064ad30b3d5a61a093d8ae6d | /Tugas 1/Find GCD of a Number/Find GCD of a Number.py | c0eecb79b70470313db3e3ae0e98674f3fa75f5c | [] | no_license | Ngurah30/Kriptoanalisis | 2ad971eaec14c9967c27a4ec8270bc0cc4bd0dcd | e3a0e26f4005b060b9f8833525151ad4616ccaa4 | refs/heads/main | 2023-03-30T12:41:59.854953 | 2021-03-22T11:31:38 | 2021-03-22T11:31:38 | 343,434,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Menggunakan fungsi rekursif
def gcd(x, y):
if (y == 0):
return x
else:
return gcd(y, x % y)
x =int (input ("Masukkan bilangan pertama : ")) # Menginputkan bilangan pertama
y =int (input ("Masukkan bilangan kedua : ")) # Menginputkan bilangan kedua
bil = gcd(x, y) #Memanggil gcd untuk mencari h... | [
"noreply@github.com"
] | Ngurah30.noreply@github.com |
f625664d16d2ea3be1e1bf2f040c0452b92aaf29 | 47541875c7be36ce612c382b7f98c92173c7144c | /WarDrivePiCar/Tests/test_main.py | 47e6e1b2adc29e0bdcc292ffbd93dc17fff20045 | [] | no_license | MorenoB/WarDrivePi | 72b6373796e9b6a5ff5c8841154da556b9471906 | b4a29774de033df9f50043c6275a13d7a9d186cc | refs/heads/master | 2021-01-17T15:26:16.733107 | 2017-01-27T11:47:12 | 2017-01-27T11:47:12 | 69,866,547 | 1 | 0 | null | 2017-01-27T11:47:13 | 2016-10-03T11:59:23 | JavaScript | UTF-8 | Python | false | false | 1,357 | py | # Test files need to re register themselves for when using shell
import sys
import os
sys.path.insert(1, os.path.abspath(os.path.dirname(__file__)))
from unittest import TestCase
from program import Program
from Util.testing import TestThread
import sys
import time
import os
class TestMain(TestCase):
def test_mo... | [
"moreno_bralts@hotmail.com"
] | moreno_bralts@hotmail.com |
b94eb3cd9714f1550d11a2faa1808f08db720be0 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/storage/delete.py | b0dd92d45fc1d77f4de21763de0131975f546827 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 5,897 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 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... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
6fb69cae212e1193fbae6999d71ad04fb456e8f7 | be77e3ff1de69b11a427309ad5e953dfdbdb55a2 | /main.py | 7b29ea9b11bb750109abb536c2465b092280ee36 | [] | no_license | Richard98PL/tibiaAntyLogout | 58bfef476453ae021d69ebc7785eac6a1b47d947 | b790f9ffb756624c1e6d71506f15e8f9dda390cb | refs/heads/main | 2023-08-26T22:12:29.090560 | 2021-11-01T16:52:21 | 2021-11-01T16:52:21 | 423,093,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | from pynput.keyboard import Key, Controller
import win32gui
import win32con
import re
import time
import datetime
from random import randint
keyboard = Controller()
class WindowMgr:
"""Encapsulates some calls to the winapi for window management"""
def __init__ (self):
"""Constructor"""
self._h... | [
"noreply@github.com"
] | Richard98PL.noreply@github.com |
fedd1e48e973b16043436c9c51aa37b3063a283e | 1f2df4dfed4af1485fefab0118dd6abd437de4de | /listings/migrations/0001_initial.py | 7dc50d07d346be74a195cb7f75a96f3f72bf4ebd | [] | no_license | Rhillx/IH_project | 90bc0ecaa200a2fb51e520dd75f6485cb21e6f17 | 4a51311e24456e0aefec16872f340685ec7dca74 | refs/heads/master | 2020-04-25T18:55:04.270785 | 2019-03-02T05:56:23 | 2019-03-02T05:56:23 | 173,000,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # Generated by Django 2.1.7 on 2019-02-21 22:48
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"rhillz718@gmail.com"
] | rhillz718@gmail.com |
c19e0105d28469432092df67fa6a94f2cb27922c | 4a6f3bc478dcd0c32f376bd0369940526a0242c9 | /main.py | 71941dc9451847800a7fe93dae92f57aa8973e66 | [
"Apache-2.0"
] | permissive | 1999foxes/python-gobang-bilibililive | 179495d2f7c8094a490dcb90a386a42cffafe61b | efc1f631a8c9686177b92a3e54c183ee227a45d2 | refs/heads/master | 2023-02-24T14:46:29.337799 | 2021-01-31T18:00:25 | 2021-01-31T18:00:25 | 334,715,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,352 | py | # _*_ encoding:utf-8 _*_
import os
def installlibs():
libs = {"numpy","requests","pygame"}
try:
for lib in libs:
os.system("pip3 install "+lib)
print("Successful")
except Exception as err:
print("Failed:", Exception)
try:
import pygame
from pygame.locals ... | [
"hl1999@yeah.net"
] | hl1999@yeah.net |
2cd11da1a7669bc9c9ef03e9c656328abf9a4495 | f32f45a84f296392fa5433402bf126885fb2df23 | /learningTemplates/basic_app/urls.py | ae5ad4e2a7806bef5b64fb1740555b78e54b3277 | [] | no_license | samjonescode/Python-Anywhere-First-Deployment | 8878f2b4d3c25a4b6f05795cd712c1def58f03ed | 8608956168363442988acc3468886131787db4d6 | refs/heads/master | 2021-10-22T23:32:56.691641 | 2019-03-13T17:08:50 | 2019-03-13T17:08:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.urls import path
from basic_app import views
# template tagging
app_name = 'basic_app'
urlpatterns = [
path('index/',views.index,name='index'),
path('relative/',views.relative,name='relative'),
path('other/',views.other, name='other'),
] | [
"sjonesmusician@gmail.com"
] | sjonesmusician@gmail.com |
939c05361fb679aea62692cdc376799186c3289d | 2bbb75129fa4e1d28b7fcfe58f585bcbfdc33dde | /lib/models/__init__.py | 98f6d9847c0667734e0d47537fc46076fd0f5152 | [] | no_license | Gyyz/Targeted-Sentiment-analysis-with-memory-network-attention | 1165ba850fd1a61a1ddbfd0d8a1ec4fa408ecf92 | 2208188eb6bd150e739acfd6b16ec810eac15e43 | refs/heads/master | 2021-06-22T10:09:52.490474 | 2017-08-10T08:27:58 | 2017-08-10T08:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from nn import NN
import rnn
from sentiment import *
| [
"yuz@fff"
] | yuz@fff |
8072e2425675f6565ceecb16805e4ef341e0456e | 4cb37eaa0bdcf002c26aba4656df1287ce3cfe56 | /main/settings.py | 6abbf86caad648c174cc9b0af91a9fcf6aa0f5f6 | [] | no_license | jiuniuone/app-mall-backend | 86ef3ec8cd78e019d90c8885173b68a6ecfdf6ca | 07dcb5840bc0d5f2d98522c5eb3d33de74bdcb6f | refs/heads/master | 2020-03-26T07:27:43.297704 | 2018-08-21T05:10:30 | 2018-08-21T05:10:30 | 144,655,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | import os
import socket
import sys
import time
from unipath import Path
APP_NAME = 'mall'
FUNCTION_NAME = "shopping mall"
DEBUG = socket.gethostname() not in ['public', 'stage']
# DEBUG = False
SHOW_SQL = 'runserver' in sys.argv
if DEBUG: SHOW_SQL = False
BASE_DIR = Path(__file__).ancestor(2)
SECRET_KEY = 'i%25adry^... | [
"hikelee@gmail.com"
] | hikelee@gmail.com |
816a6e3ddb957c0b742e5e7ca3543a7b6de38cf7 | fff4db9bd3408d881168a4838bd3d342b6415583 | /codesort/tests/test_data/sorted_1.py | 27b8982e7e8ff7740a54d846e70e116697b5bb1d | [
"MIT"
] | permissive | dougthor42/CodeSort | 853da348ddaa7461b6374fce7d4c62d66e437a12 | 4e4b5b862b903a258433cfd399db124a5abfa67e | refs/heads/master | 2021-01-01T20:01:05.040710 | 2014-10-09T00:32:13 | 2014-10-09T00:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | # -*- coding: utf-8 -*-
"""
Docstring!
"""
from __future__ import print_function, division
def ClassA(object):
""" ClassA, for sorting! """
def __init__(self):
""" Nothing needed here! """
pass
def _private_a(self):
""" And things! """
pass
def _p... | [
"dougthor42@users.noreply.github.com"
] | dougthor42@users.noreply.github.com |
7397068550e96dd401ecb0de352f442531574858 | 78a4379f22f1a1f8b801a26c4bb5357bdce24cb6 | /apps/pay/migrations/0001_initial.py | c0f63180f3030475c4991ea0eef92a94c718e380 | [] | no_license | 18801166104/TravelWebSite | 706890ecc901b7fea277dd5794d81c0e54424e98 | 131399ecc3df3344105677b9e6745fb2f23750e7 | refs/heads/master | 2020-04-30T15:12:34.745958 | 2019-03-21T09:38:16 | 2019-03-21T09:38:16 | 176,461,032 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # Generated by Django 2.1.7 on 2019-02-22 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='OrderItems',
fields=[
('id', models.AutoFie... | [
"75197440@qq.com"
] | 75197440@qq.com |
6faafc33a8fa0bcb600ee25a8837c929a209e065 | 9054a65b931267d15d74ad992f947d348e0a039f | /hw0/code/python_tutorial.py | 2f781d96bfa2f67f823357da87ca917398da18dd | [] | no_license | saunair/Autonomy | e0ba30b3e6301477efabc125880fcd7ee47bc0de | 01621595250daeb858ddd096dfa67b8e1d4fe0c5 | refs/heads/master | 2021-06-13T07:09:04.409729 | 2017-02-24T02:09:47 | 2017-02-24T02:09:47 | 81,028,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | #!/usr/bin/env python
import numpy as np
import operator
def print_list(l):
print l
def sort_manual(shops):
shops_sorted = []
values = [ v for v in shops.values() ]
#TODO: Here implement manual sorting using loops
for i in range(0, len(values)):
for j in range(0, len(values)-i-1):
... | [
"snnair@andrew.cmu.edu"
] | snnair@andrew.cmu.edu |
dff8c7bdbed01f6050d2849d52ffd0a9b798193a | bcf09471588530a543b1eca8fd2938ee10c1a9c5 | /api-service/api/service.py | 320dbfe7cf29e4250393d9fe4930558d7373abd8 | [] | no_license | dlops-io/video-in-out | 34bf5ded0a3d48a678cd4f47f4edade11ef6131a | c2cd180e5f00f67d9fcce532b728a92950ae25aa | refs/heads/main | 2023-08-20T13:21:37.479774 | 2021-10-25T12:48:55 | 2021-10-25T12:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from starlette.requests import Request
from starlette.responses import JSONResponse
from starlette.staticfiles import StaticFiles
from api.routers import video
# Setup FastAPI app
app = FastAPI(
title="API Service",
description=... | [
"shivasj@gmail.com"
] | shivasj@gmail.com |
7ce22c0d3c1840a8b15bf306b73f4eaade25b3f0 | c80ae9c1decd51252f8d623ded02b1003eb369c2 | /web/movies/migrations/0003_auto_20170827_1727.py | 27edc80f52dabe8be01eff1bc0d86b5e77aa52e9 | [] | no_license | wudizhangzhi/demo | 5fa605709fb6f3d90b530d65149298d98b45c7fd | 679933b7fdacbf7942c1cceb4f69da8b9e7d4bdd | refs/heads/master | 2021-01-20T12:42:40.050376 | 2017-09-30T02:15:11 | 2017-09-30T02:15:11 | 90,399,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-27 09:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies', '0002_auto_20170826_1532'),
]
operations = [
migrations.AddField(
... | [
"zhangzhichao@promote.cache-dns.local"
] | zhangzhichao@promote.cache-dns.local |
74d689c8c85d5d2561a6abc2a06ba077a7496e0e | 0fa82ccc0b93944c4cbb8255834b019cf16d128d | /Az/temp.py | caf3bc211fbf8fccda75e10e1fee9d32caddc4ec | [] | no_license | Akashdeepsingh1/project | 6ad477088a3cae2d7eea818a7bd50a2495ce3ba8 | bdebc6271b39d7260f6ab5bca37ab4036400258f | refs/heads/master | 2022-12-13T23:09:35.782820 | 2020-08-27T14:22:37 | 2020-08-27T14:22:37 | 279,722,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def mincostTickets (days, costs):
dp = [0] * 366
for i in range (1,max (days)+1):
if i in days:
dp[i] = min (dp[i - 1] + costs[0], dp[i - 7] + costs[1], dp[i - 30] + costs[2])
else:
dp[i] = dp[i-1]
return dp[:max (days) + 1][-1]
def mincostTickets2( days, costs):
... | [
"Akashdeep_S@Dell.com"
] | Akashdeep_S@Dell.com |
24a9afca2f817f33c7ce171ef49ab354c5dd6efc | d925eb9cf278a67c7714ffa26f25060ae176cb1a | /09_ingredient_splitter_v3.py | 0cd41a40b08cf10dc8fe487ef18f3d9e721adf97 | [] | no_license | wenqitoh/Recipe-Moderniser | bf188697706d69e836396fbf99e7708962ec9f96 | e257b35f82b70d15bda812dca774f089ce40e68e | refs/heads/main | 2023-06-13T23:24:50.556741 | 2021-07-11T05:04:02 | 2021-07-11T05:04:02 | 372,673,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | """Further version of ingredient splitter which splits the ingredients from one lin of input
into quantity, unit, and ingredient
version 3 - testing on full recipe
created by Wen-Qi Toh
7/7/21"""
import re # this is the Regular Expression module
# ingredient has mixed fraction followed by unit and ingredient
full_r... | [
"tohw@middleton.school.nz"
] | tohw@middleton.school.nz |
9ff2745dddde91c4bb375c36b46f51ff6af9493f | fe19282d91746bd21d1daed624d6d5102a871d8d | /assign5/models.py | 05082fd5e43de3bfec644355f7fc8ca81186f2b1 | [] | no_license | vivekpradhan/autograder | 344410aa8f7fa8c93137ec56762b949be77c24ae | 0cd8c24d0ba1c8f2af129c1c2a7bd7a7bbe0853d | refs/heads/master | 2021-01-24T10:34:04.424425 | 2017-10-09T12:07:32 | 2017-10-09T12:07:32 | 69,992,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Submission(models.Model):
eid = models.CharField(max_length=10, blank=False)
document = models.FileField(upload_to='media/')
uploaded_at = models.DateTimeField(auto_now_add=True)
assignment_num = mod... | [
"vivkripra@gmail.com"
] | vivkripra@gmail.com |
a7ba513d9dbf489347919fd23a3cec055f45149c | e4bf5f3ad3beecf288507470b20ae30849effdb1 | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | fbceeb251c1b9d148e8e13e1a6ab16086dcc9128 | [
"MIT",
"Apache-2.0"
] | permissive | JohnnyLamb/scotch_jwt_token | 6356e30026db88fdac64484e4ca0770b40d0701f | 505db6a587deaefb75df7ad24b718bbac72472db | refs/heads/master | 2021-01-10T16:36:39.379628 | 2015-10-17T23:32:49 | 2015-10-17T23:32:49 | 44,454,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | 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": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"agnusjack@gmail.com"
] | agnusjack@gmail.com |
8602f77cf80a23e828ccb71e0edd430dbdbb77c2 | b97fd4dd496456bbbeda8d774bb179f1b03b0dba | /day11/part2.py | c85016a17ab75f04ef04b920eb6f2beffec81e34 | [] | no_license | woranov/aoc2020 | 7666cabc96267936fda04a58244193db19e9489e | 671ef866e0c81a5f70898a7e6ec725b1f78378fb | refs/heads/master | 2023-02-11T19:03:01.437839 | 2020-12-25T15:29:46 | 2020-12-25T15:29:46 | 317,584,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | import functools
import itertools
_TESTCASE = """\
L.LL.LL.LL
LLLLLLL.LL
L.L.L..L..
LLLL.LL.LL
L.LL.LL.LL
L.LLLLL.LL
..L.L.....
LLLLLLLLLL
L.LLLLLL.L
L.LLLLL.LL
""".strip().splitlines()
def compute(data):
"""
>>> compute(_TESTCASE)
26
"""
grid = [*map(list, data)]
rows = len(grid)
cols =... | [
"wor4nov@gmail.com"
] | wor4nov@gmail.com |
66bd585e840a22d0e4615b07176d861991dd6612 | da617dbc147d7720490866b279068cdef87e00c9 | /q7.py | 510b9e8113cec4c9b681288211d223574fb7efc6 | [] | no_license | Shailaj97/Python-Assignment-1 | 444750a816bd593fdafb9eebdd9b6b5dd646915f | 55e11b541fbc517da360afc41ea915a1a9af43ea | refs/heads/main | 2023-07-17T06:10:59.775212 | 2021-09-01T04:32:43 | 2021-09-01T04:32:43 | 401,912,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | """ Write a Python program to combine two lists into a dictionary, where the elements of the first one serve as the keys and the elements of the second one serve as the values. The values of the first list need to be unique and hashable.
Sample Output:
Original lists:
['a', 'b', 'c', 'd', 'e', 'f']
[1, 2, 3, 4, 5]
... | [
"noreply@github.com"
] | Shailaj97.noreply@github.com |
425b4486fa1fd6169f158a9b5cac855c66475095 | 7d5d8492c2d88b88bdc57e3c32db038a7e7e7924 | /IPCC-CMIP5/bias_correction/bc_extract_gcm.py | ef32727acb01fb3b19decbfd3c17f5d35dbfc4ff | [] | no_license | CIAT-DAPA/dapa-climate-change | 80ab6318d660a010efcd4ad942664c57431c8cce | 2480332e9d61a862fe5aeacf6f82ef0a1febe8d4 | refs/heads/master | 2023-08-17T04:14:49.626909 | 2023-08-15T00:39:58 | 2023-08-15T00:39:58 | 39,960,256 | 15 | 17 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # ---------------------------------------------------------------------------------
# Author: Jaime Tarapues
# Date: September 23th, 2014
# Updated: July 28th, 2014
# Purpose: Purpose: extract values daily data of cmip5
# ----------------------------------------------------------------------------------
import os, sy... | [
"jaime.tm8@gmail.com"
] | jaime.tm8@gmail.com |
e14ac3d06dfe4effe84493b1c1438edb268348ab | ab692ff0773367a0190309d3e7c3785a46a205d3 | /main_finetune_imagenet.py | ffeb8bccfc2c0e2dac3ba392891c83eea971c116 | [
"MIT"
] | permissive | sAviOr287/imagenet_ICLR | f6da8149bf4280c923c584c4e6aade81fc469cf4 | 1ac83d799f5335355161156aa9bba63e0d82a063 | refs/heads/main | 2023-01-13T02:45:53.450571 | 2020-11-15T22:12:36 | 2020-11-15T22:12:36 | 313,132,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,010 | py | import argparse
import os
import random
import shutil
import time
import warnings
import sys
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.distributed as dist
import torch.optim
import torch.multiprocessing as mp
import torch.utils.data
import torch.utils... | [
"jeanfrancois287@hotmail.fr"
] | jeanfrancois287@hotmail.fr |
e7336bb7129d0dba26d5d33533f5b0997f133562 | b53869d9c0b38ecc5f2bef40f03e0146d05c67c5 | /send_mail/core/kafka_connect.py | 420f3ba573dc426a1325a1038a87f916c876b163 | [] | no_license | manhcuong2801/send_sms | 564435736e163b41b06c6d53c79d41ac9ca1886d | 8734ffa74ddf723852d01a4b4ecc9dc3dd4accef | refs/heads/master | 2023-04-03T13:35:43.433808 | 2021-04-23T12:42:59 | 2021-04-24T03:52:22 | 360,880,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | import json as j
from django.conf import settings as s
from kafka import KafkaConsumer as KC, KafkaProducer as KP
class KafkaConnector:
_bootstrap_server = s.KAFKA_SERVER
_topic = "topic_example"
_group_id = "group_example"
def get_consumer(
self,
topic: str = _topic,
group_i... | [
"cuongle@tamdongtam.vn"
] | cuongle@tamdongtam.vn |
9bf4e35570827087d92050fcab5d0ddbc721c47b | e8469a38083f28633b74cfd2cf4399aac11a6514 | /ver.1/selectors.py | 4197f85bcdd90c359aaf3cf34c0d506aec0db4a4 | [] | no_license | JadenHeo/FO4-data-crawling | e67ff2b611e9f3b5c83b3e237e5d06065094d091 | e1d4be6a144985d953c9e57b2aef409d7eddea8a | refs/heads/main | 2023-08-07T17:59:28.884544 | 2021-10-04T07:57:22 | 2021-10-04T07:57:22 | 395,150,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | selector = {"name" : "#middle > div > div > div:nth-child(2) > div.content.data_detail > div > div.content_header > div.info_wrap > div.info_line.info_name > div.name",
"pay" : "#middle > div > div > div:nth-child(2) > div.content.data_detail > div > div.content_header > div.info_wrap > div.info_line.info_n... | [
"hhj801@gmail.com"
] | hhj801@gmail.com |
de555bff1a32f8e3a9d93047cae238e8a3aa29ce | b0a9e9df50749086a7db7e135b2582d87cb8dbc2 | /energy_estimation/nd/fhc/svm/hadron/sample_weighted_estimator_2d.py | aac40196ce6aae3c0ebd3a02e163dc5b2568c47b | [] | no_license | kaikai581/sklearn-nova | 6ff204bfb4351395c8029b80fedfbb6b8702f06d | e16644c0651123fe3ebdf42a9fb3dc50fbd2c2de | refs/heads/master | 2020-03-08T17:26:46.222451 | 2020-01-07T01:12:36 | 2020-01-07T01:12:36 | 128,268,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,781 | py | #!/usr/bin/env python
"""
This script weights each point with inverse square root of its true hadronic
energy when fitting. This is equivalent to modifying the SVM loss function.
Two predictors are used, namely calibrated hadronic energy, and one swappable
varisble.
"""
from __future__ import print_function
print(__... | [
"shihkailin78@gmail.com"
] | shihkailin78@gmail.com |
cc22681d605c52facf8d17b0ff1cd2612d797397 | eb5ab5ce3763f5e5b80a38f77ee98b7b954d726e | /cciaa/portlet/calendar/tests/base.py | 34f3751741116d33cc8d925131230f0af4066c0c | [] | no_license | PloneGov-IT/cciaa.portlet.calendar | 088e400c567066ce486f6dfb6eaa2f482abd0471 | 81aa9deb5e082520604946387a6a60dd229db21a | refs/heads/master | 2021-01-21T19:28:56.055750 | 2013-11-20T16:48:08 | 2013-11-20T16:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | from Products.Five import zcml
from Products.Five import fiveconfigure
from Testing import ZopeTestCase as ztc
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
@onsetup
def setup_product():
"""Set up additional products and ZCML required to test this produc... | [
"keul@db7f04ef-aaf3-0310-a811-c281ed44c4ad"
] | keul@db7f04ef-aaf3-0310-a811-c281ed44c4ad |
28b5d104d8e8eb1a445ac2a3359068286e7227cf | dde3f20bc5d50bb87f735f88645a07d9789ada2a | /contrib/seeds/generate-seeds.py | 885030bca90708d6cc21d0386331627e2401a544 | [
"MIT"
] | permissive | wai1496/Quaz | 6c96dd0009df9254127d4e37d5398e0e09b355c9 | 8cea70d86e0b38cd580a8de457d1890b4710c0d2 | refs/heads/master | 2021-04-15T03:37:17.426013 | 2018-03-16T08:43:39 | 2018-03-16T08:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,366 | py | #!/usr/bin/python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the directory tha... | [
"devquaz@gmail.com"
] | devquaz@gmail.com |
8b97fb6b8a7718a7b273586c5c11230785335bf5 | 51d348426c6e5fa79f2e77baf59bdbf8357d9f12 | /week10/Инфоматрикс/d.массивы/1.py | 39e914161d08fae03f9bd90984ada04bfe926359 | [] | no_license | Zhansayaas/webdev | c01325b13abf92cef13138d7ffc123cf9bc4f81a | dd054d0bcafc498eccc5f4626ab45fd8b46b3a3f | refs/heads/main | 2023-04-10T23:33:30.469465 | 2021-04-17T10:21:53 | 2021-04-17T10:21:53 | 322,049,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | n=int(input())
a=input().split()
for i in range(0,n,2):
print(a[i],end=' ') | [
"noreply@github.com"
] | Zhansayaas.noreply@github.com |
b60bee7fa7a89fdb6ab3d2d5194fd86e56b4801b | 0f0a7e594c53acbce5e93fad653abed2a3d02466 | /zhidao/middlewares.py | 190647c84d6e3a0b2e42f946e2fa9359d599844a | [] | no_license | ElliottYan/crawler | de1e5a7ae1dbf0bd3bd3faa9224180ebb7051964 | cab3e078ec85b13219bee836fa136c2f43eb4f2f | refs/heads/master | 2020-03-24T06:12:58.864182 | 2018-07-27T03:05:52 | 2018-07-27T03:05:52 | 142,520,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class ZhidaoSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ac... | [
"elliottyan37@gmail.com"
] | elliottyan37@gmail.com |
0d9c11e159814d4603e92a7da12ac0993d494912 | db012fc9716bb27e9ff22078bc17edb7745b3f13 | /examples/plot_classifier_dl85_plot_tree.py | c1d3f1657cd0965bb5b814f5562272bc9936fd33 | [
"MIT"
] | permissive | VivanVatsa/pydl8.5 | df15b99c313da29b32a0571c59e90225aaa71566 | 8686839d000e47375b5ed70ad42828e6c3eef6e6 | refs/heads/master | 2023-08-14T11:25:06.511972 | 2021-09-21T18:50:13 | 2021-09-21T18:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | """
==============================================
DL85Classifier example to export tree as image
==============================================
"""
import numpy as np
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from dl85 i... | [
"aglingael@gmail.com"
] | aglingael@gmail.com |
114910137765ee9246494ef8b775990951da0d1f | b321ca6310cd84bd8603fa9685365bb2a4acc945 | /公司真题/拼多多/phone_number.py | 144534cc23631ee5da9b7f732598e83ae9e6c492 | [] | no_license | baixiaoyanvision/python-algorithm | 71b2fdf7d6b57be8a2960c44160f2a7459e153ae | 6cbb61213af8264e083af1994522929fb7711616 | refs/heads/master | 2020-08-27T03:41:08.332322 | 2019-10-02T13:28:49 | 2019-10-02T13:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py |
# line1 = input()
# line2 = input()
line1 = '6 5'
line2 = '787585'
N, K = [int(i) for i in line1.split()]
line2 = [int(i) for i in line2]
result = []
line2_set = set(line2)
min_money = 99999999
for val in line2_set:
sub_vals = [abs(val - number) for number in line2]
sort_sub_vals = sorted( list(range(l... | [
"18310523922@163.com"
] | 18310523922@163.com |
ef3863b249697253ae98c02f073111c5d9fb56a5 | 2406724e872efc10c25fff5fb4b551c65cf4f298 | /Codes/Pong_game.py | 48b58da41228fb79140ac11d9c18925f1ca9ffb7 | [] | no_license | Pradhyuman12/Beginner-Hacktoberfest | c6d57b692f34f19b3334a7b364ca084f2b85bf95 | 5e0184d0825e5bafbb4625c31396bca9e6792c7a | refs/heads/main | 2023-08-30T11:31:58.281561 | 2021-10-29T18:19:26 | 2021-10-29T18:19:26 | 412,496,299 | 0 | 0 | null | 2021-10-01T14:20:41 | 2021-10-01T14:20:40 | null | UTF-8 | Python | false | false | 2,339 | py | import turtle
wn = turtle.Screen()
wn.title("Pong Game")
wn.bgcolor("black")
wn.setup(width=800, height=600)
wn.tracer()
#Score
score_a = 0
score_b = 0
#Paddle A
paddle_a = turtle.Turtle()
paddle_a.speed(0)
paddle_a.shape("square")
paddle_a.color("white")
paddle_a.shapesize(stretch_wid=5, stretch_len=1)
paddle_a.pe... | [
"noreply@github.com"
] | Pradhyuman12.noreply@github.com |
c246469f12df1abde9b82eeadc65ac655fed42e2 | add649416e475ef5febb207ec3c90ef504a4d5b7 | /Marie Laure/django/mycalendar2/mycalendar2/wsgi.py | 11e4e77fa13f33700e778d5217741c38e3dbf3d6 | [] | no_license | juliencampus/python | e3bc77453d449533db02bc69376ea6d1a4f2e9ba | 323013fa32be74571ccd665cd3faa74ff8a905f3 | refs/heads/main | 2022-12-29T09:09:08.917610 | 2020-10-23T14:55:14 | 2020-10-23T14:55:14 | 303,637,772 | 0 | 4 | null | 2020-10-21T11:12:06 | 2020-10-13T08:29:19 | Python | UTF-8 | Python | false | false | 399 | py | """
WSGI config for mycalendar2 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"marie-laure.riedinger@le-campus-numerique.fr"
] | marie-laure.riedinger@le-campus-numerique.fr |
25055392f3e0fab759ac48b34d2c85f1944c0249 | dbbb304265437b2d591d6d42953efc96bd8b4a24 | /blog/views.py | c19f66271a7b0a97d3aca9fd694b2641d6ce7c38 | [
"Apache-2.0"
] | permissive | echessa/django-ex | 647edbea8a9dd7159420af96dd3414bdaaf8aff3 | 33758d254886d3298acba20c0d231bcd6bb6c09a | refs/heads/master | 2020-12-02T21:12:24.753773 | 2017-07-05T09:09:18 | 2017-07-05T09:09:18 | 96,271,914 | 1 | 1 | null | 2017-07-05T03:11:15 | 2017-07-05T03:11:15 | null | UTF-8 | Python | false | false | 1,463 | py | from django.shortcuts import render, redirect
from django.utils import timezone
from django.shortcuts import render, get_object_or_404
from .forms import PostForm
from .models import Post
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('-published_date')
return ... | [
"jokhessa@yahoo.com"
] | jokhessa@yahoo.com |
7df32dbb48957659309409618ea967eed738d6a8 | ff1dbdb9baed0be909aaf60b7b78bef9441bfcd9 | /review_homework/ifstatement_review.py | 330b7c81edabb8d705433d5648705605630043d7 | [] | no_license | singh-sonali/AP-Compsci | ab2c923c79e67eebc021168c720de10618c58583 | 1f26e40b88532cfb9aee39d18fb2ea254d8a1083 | refs/heads/master | 2020-03-28T06:43:33.963516 | 2019-03-20T12:04:25 | 2019-03-20T12:04:25 | 147,855,508 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,381 | py | # Partner 1:
# Partner 2:
''' Instructions:
Work with a partner to complete these tasks. Assume that all variables are declared; you need only write the if-statement using the variables indicated in the description. Write your solution below the commented description.
'''
''' 1.
Variable grade is a character. ... | [
"ssingh20@choate.edu"
] | ssingh20@choate.edu |
9ee04dc56eec32ca912fa8b81136a49356550e03 | dfbe04629c68e49c0671b0ed1890d82d96180164 | /graphsage/datafetcher.py | 28421aa404bbc8ea1a9ba08303cc535fc7c67f45 | [] | no_license | bluelancer/MLAdv2020Proj | 417d9c3853297541d48036f3af5999aea68465ad | 7057492f7b4f171aa1bdf5a6f792c5fbdc679d35 | refs/heads/main | 2023-04-30T02:47:49.581387 | 2021-01-12T11:47:17 | 2021-01-12T11:47:17 | 325,494,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | from collections import defaultdict
from scipy.io import mmread
import numpy as np
class DataFetcher:
def __init__(self):
return
def load(self, dataset):
if dataset == 'cora':
return self.load_cora()
elif dataset == 'pubmed':
return self.load_pubmed()
def... | [
"zhaoyu@zhaoyudeMacBook-Pro.local"
] | zhaoyu@zhaoyudeMacBook-Pro.local |
34fc9717d6ba5477e1aa8e8cc9c71b46b8ee7fd2 | 2f2feae3dee5847edbf95c1eeb14e656490dae35 | /2022/day_13_distress_signal_1.py | e89f9fb5f20ecbd78b7b38f8d58eca40028031af | [] | no_license | olga3n/adventofcode | 32597e9044e11384452410b7a7dda339faf75f32 | 490a385fb8f1c45d22deb27bf21891e193fe58a2 | refs/heads/master | 2023-01-07T09:19:04.090030 | 2022-12-25T13:31:22 | 2022-12-25T13:31:22 | 163,669,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | #!/usr/bin/env python3
import sys
import json
from typing import Iterable, List, Any, Tuple, Optional
def is_right_order(left: List[Any], right: List[Any]) -> Optional[bool]:
iter_left = iter(left)
iter_right = iter(right)
while True:
item_left = next(iter_left, None)
item_right = next(i... | [
"olga3n@gmail.com"
] | olga3n@gmail.com |
3351932d3d3a75e35b6b1fcbd967fa8b054bd65b | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/theano/sandbox/cuda/tests/test_tensor_op.py | cb9162354ac7fa9120cf4dd3b05d616e784e0f36 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 5,283 | py | """
This file test tensor op that should also operate on CudaNdaray.
"""
from __future__ import absolute_import, print_function, division
from nose.plugins.skip import SkipTest
from nose_parameterized import parameterized
import numpy
import theano
from theano import tensor
import theano.tensor as T
import theano.tes... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
98cbe8d9f4b12239cf1d517d7cd9c165e3ac2876 | 83df3d7773a4c7c3da8824cd3e6b3f0d6e6cfa07 | /world.py | 92f49a7703868c98e84f84d8b7d82c02437552a6 | [] | no_license | azmzing/c | d4f8690ae0ad43c6441b6559995042ebe730108e | 69b2511683d709961034ec46814400bccae0ae5b | refs/heads/master | 2020-03-15T23:42:45.118141 | 2018-05-07T06:13:12 | 2018-05-07T06:13:12 | 132,399,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print"b hellow
| [
"amazing.zanjun@outlook.com"
] | amazing.zanjun@outlook.com |
27687dfa574c3d83cfd55d79f9b60849782917ff | 09a32f98165c20fbc0c519f826cbd445b1906d54 | /merge_opt.py | 03c8ad504fd12016c93a0f874d11647442ea508f | [] | no_license | huuthai37/LSTM-Consensus | d2ec2d63073a1a996c827c1f71a8edc4e763a8dc | 97233cf0a4176b0a0fc69c4c7051a5289628e48f | refs/heads/master | 2020-03-17T05:53:33.663364 | 2018-07-13T04:12:50 | 2018-07-13T04:12:50 | 133,332,710 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--dataset', help='Dataset', default='ucf101')
parser.add_argument('-s', '--segment', help='Number of segments', default=3, type=int)
parser.add_argument('-debug', '--debug', help='Number of classes', default=1, type=int)
args = parser.parse_a... | [
"huuthai37@gmail.com"
] | huuthai37@gmail.com |
c0d29ea3e56d0a9a1129476105c243a8a2566772 | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month01/周六练习-practice on saturday/独立完成/OOP-fanb-1_student_manager_system.py | 370a4186757ac84e2f949eca27cb01e393c5348c | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,533 | py | #学生信息管理系统:
# 数据模型类:StudentModel
# 数据:编号 id,姓名 name,年龄 age,成绩 score
class StudentModel:
def __init__(self,name,age,score,id = 0):
self.name = name
self.age = age
self.score = score
self.id = id
# 逻辑控制类:StudentManagerController
# 数据:学生列表 __stu_list
# (#私有属性,提供只读)
# 行为:获取列表 stu... | [
"13572093824@163.com"
] | 13572093824@163.com |
edbc5843172b296c275bf4d38092d8dabd6213fe | bd3b1eaedfd0aab45880c100b86bc4714149f5cd | /student/dyp1/11.py | c6e63aa6b223b8b5cdbb13353fe5872beeeea0a7 | [] | no_license | ophwsjtu18/ohw19f | a008cd7b171cd89fa116718e2a5a5eabc9f7a93e | 96dedf53a056fbb4d07c2e2d37d502171a6554a6 | refs/heads/master | 2020-08-08T12:59:38.875197 | 2020-04-01T10:38:14 | 2020-04-01T10:38:14 | 213,835,959 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import numpy as np
import cv2
capture = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier('C:\\Users\\DING-DING\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\site-packages\\cv2\\data\\haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('C:\\Users\\DING-DING\\AppData\\Local\\Programs... | [
"noreply@github.com"
] | ophwsjtu18.noreply@github.com |
00333130e10a7ca7f1207ec2896cc61f017a3839 | 24e2b10c6d13deac27bd4b8af07907de4c9e8bcd | /traingle.py | 413d3bf8ba2ac1ff1e4a678063e1efb7d2d49f1a | [] | no_license | adilreza/docker-env-var-python | a5b2e0269511d588bc2de30ab35f09a86138419a | 156d3fa9b3fc25e56a40edc091818d6c86ba017b | refs/heads/main | 2023-03-29T12:02:06.158341 | 2021-04-08T12:25:56 | 2021-04-08T12:25:56 | 355,896,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import os
def triangle(n):
k = n - 1
for i in range(0, n):
for j in range(0, k):
print(end=" ")
k = k - 1
for j in range(0, i+1):
print("* ", end="")
print("\r")
n = os.environ.get('TR_NUMBER')
# TR_NUMBER=8 python3 traingle.py
# docker run -e TR_NUMBER=7... | [
"adil.reza@selise.ch"
] | adil.reza@selise.ch |
9f704f4065654f070e858bc08858abfdfaeb1745 | 796198b4613ae30ff7735d7a8473064b8ecb0247 | /abc140/D.py | cc3f77d7f92a52f460d82787bdd62c4304943b30 | [] | no_license | Tomoki-Kikuta/atcoder | 993cb13ae30435d02ea2e743cf3cead1a7882830 | 97b886de867575084bd1a70310a2a9c1c514befe | refs/heads/master | 2021-07-16T15:14:00.706609 | 2020-06-29T06:15:13 | 2020-06-29T06:15:13 | 184,001,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n,k = map(int,input().split())
s = input()
h = 0
for i in range(n-1):
if s[i] == s[i+1]:
h+=1
print(min([n-1,h+2*k]))
| [
"tomoki0819@akane.waseda.jp"
] | tomoki0819@akane.waseda.jp |
713b479653ed7764eabad8e061233c7fc1086f24 | 0c2ca3b3c7f307c29f45957e87ed940c23571fae | /fhirclient/models/bodysite_tests.py | a3aaa3593967b5390640ec04095fcc47317b4e4a | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | myungchoi/client-py-1.0.3 | 49c3d15b8dfb845e7cbc933084ed5fcc37e7c4ed | 08e4e5828fb461c105907fd454b19dfc8463aad8 | refs/heads/master | 2021-06-25T04:36:26.952685 | 2021-02-11T16:27:26 | 2021-02-11T16:27:26 | 209,669,881 | 0 | 0 | NOASSERTION | 2021-03-20T01:45:42 | 2019-09-20T00:11:10 | Python | UTF-8 | Python | false | false | 2,663 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 on 2016-03-23.
# 2016, SMART Health IT.
import os
import io
import unittest
import json
from . import bodysite
from .fhirdate import FHIRDate
class BodySiteTests(unittest.TestCase):
def instantiate_from(self, filename):
d... | [
"myungchoi@gmail.com"
] | myungchoi@gmail.com |
0312b66b3e7867e0ab472288a6c5e79ae7d68dd8 | dacdc8eca8258abc9c82b3a87d97f6a461503edf | /data/process_data.py | 5318bb50a55db8751ba09ebc42d4a40d09cfc52d | [] | no_license | eherdter/MessageClassifier | ce8f6503c9980068f038e1aa777c9c6a99921bf6 | 449431fab917b9294acce82977eb1d7c44e42bb3 | refs/heads/master | 2020-06-12T12:10:07.883068 | 2019-07-10T19:15:54 | 2019-07-10T19:15:54 | 194,294,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | import sys
import pandas as pd
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
''' Loads messages and category datasets and joins them
together using the common id.'''
''' Returns: pandas.DataFrame '''
#Load data.
messages = pd.read_csv(messages_filep... | [
"eherdter@mail.usf.edu"
] | eherdter@mail.usf.edu |
a6d438db0bc275cba915649a275ab52409197ac7 | 059b6f2963515af4ee4a5342f45ab05a4f431b60 | /string reverse.py | 2e5ff44a2f7f05c080f8e1c3b9e5f2ab8162ad8f | [] | no_license | Surya-Narayanan0503/Python-Programs | 70c20c0b1e07420b3058bbdd6ac88bcb9b1c273a | 2fcdc31ed3c4cc068f2a23ef02a465673c0700e7 | refs/heads/master | 2020-06-20T02:40:16.488314 | 2019-07-19T08:49:07 | 2019-07-19T08:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | n=input()
i=n[::-1]
print(i)
| [
"noreply@github.com"
] | Surya-Narayanan0503.noreply@github.com |
9c7357576d312b577fde01d5955822e944b46c7b | d0f11aa36b8c594a09aa06ff15080d508e2f294c | /leecode/1-500/401-500/472-连接词.py | 4edb1540db15225aeb711ca0bd0954fa23641a7b | [] | no_license | saycmily/vtk-and-python | 153c1fe9953fce685903f938e174d3719eada0f5 | 5045d7c44a5af5c16df5a3b72c157e9a2928a563 | refs/heads/master | 2023-01-28T14:02:59.970115 | 2021-04-28T09:03:32 | 2021-04-28T09:03:32 | 161,468,316 | 1 | 1 | null | 2023-01-12T05:59:39 | 2018-12-12T10:00:08 | Python | UTF-8 | Python | false | false | 1,016 | py | class Solution:
def findAllConcatenatedWordsInADict(self, words):
def search(word, pre_dict):
if len(word)==0:
return True
cur_dict = pre_dict
for i,c in enumerate(word):
cur_dict = cur_dict.get(c,None)
if not cur_dict:
... | [
"1786386686@qq.com"
] | 1786386686@qq.com |
c4d7e36734ac5ab04af3745ef7239a1f37d315fd | 1005b44f86523c377b607c69d96a0f6cbfbd62c7 | /Weather ToPy_bot/bot.py | 9cb6e7c3d32246ca654b13e6d664c8f6a65b966c | [] | no_license | Tofan93/Python | 7e3308b99ea8f0db374a74d778d0fe6229bc0f59 | 20c0085bf8592bc2bee6ca35360701054993fd2f | refs/heads/master | 2022-11-11T17:53:13.606553 | 2020-07-09T06:31:24 | 2020-07-09T06:31:24 | 258,720,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import pyowm
import telebot
owm = pyowm.OWM('b819a91869f45bb714b2cb0a0c647732', language = 'ru')
bot = telebot.TeleBot('1223510132:AAEg4XkxdnSa92GP4dfcamjb3uznTB9rkzM')
@bot.message_handler(content_types=['text'])
def send_echo(message):
obs = owm.weather_at_place(message.text)
city = obs.get_weather()
te... | [
"noreply@github.com"
] | Tofan93.noreply@github.com |
05fa6c5fd8aacf359f1d9088e7f7c6cdb1a8d9ab | 08fe9b6afba5708f8d51d79c1d503b8e87ff96a8 | /Sets/symmetric_diff.py | 844629f4671501b4b5d6caaf92c07ccc6faf3d96 | [] | no_license | Harsh-2909/HackerRank-Python-Solutions | 667e83290c1421150b8ce782a2ffad82b84c4f57 | 2a6c5f013870791eb45c34e470c2a797a49f4cc1 | refs/heads/master | 2020-05-30T21:54:37.185556 | 2019-08-10T06:17:10 | 2019-08-10T06:17:10 | 189,983,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | m = int(input())
m_set = set(map(int, input().split()))
n = int(input())
n_set = set(map(int, input().split()))
m_set, n_set = list(m_set - n_set), list(n_set - m_set)
l = [*m_set, *n_set]
l.sort()
for i in l:
print(i) | [
"harsh29092000@gmail.com"
] | harsh29092000@gmail.com |
92c7ef3d0dd3f76c0176fecc684bb6e824e0fa9f | 1521645e97dfa364ce4ecc34ef97aa00510a5d7c | /cart/test_forms.py | aa48460ebb4a3c7ccf62ff39049c915e09f89007 | [] | no_license | kajamiko/u_m_website | 0327903646ae21a024e0d95df937c49605c9e615 | 158953e5e375856c80ab34859c581b628681657e | refs/heads/master | 2022-12-14T03:38:42.702543 | 2018-10-23T16:08:30 | 2018-10-23T16:08:30 | 139,005,832 | 0 | 0 | null | 2022-12-08T02:48:16 | 2018-06-28T10:53:31 | JavaScript | UTF-8 | Python | false | false | 838 | py | from django.test import TestCase
from .forms import CartAddTicketForm
from django.contrib.auth.models import User
class TestTicketForm(TestCase):
def test_for_updating(self):
"""
Normal, as from a real view
"""
form = CartAddTicketForm({'donation': 20, 'update'... | [
"kajaths@gmail.com"
] | kajaths@gmail.com |
6696d49ec45e3e7ddf84f6655775d70902a6d38f | 9fbec0955358e0dc3c24e2b7e5e7aeb4fa12f963 | /info.py | 5eacb8d09d67a42912218c1f4e3c65871f39fe3c | [] | no_license | AyselHavutcu/FlaskBlog | 9b0142d7a400a6b73f9367d42a09e421e1ab1a0b | 820e1e4740eb1f31ed302b208f61af0ba32f8f14 | refs/heads/master | 2020-07-26T01:20:28.171975 | 2019-09-14T18:30:30 | 2019-09-14T18:30:30 | 208,485,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | from flask import Flask,render_template,flash,redirect,url_for,session,logging,request#web sunucumuzu aga kaldıracak
from flask_mysqldb import MySQL
#mysql icin gerekli olan fromları dahil ettik
from wtforms import From,StringField,PasswordField,validators
#bunlarda formda kullanmak icin dahil ediyourz
from passlib.h... | [
"42868243+AyselHavutcu@users.noreply.github.com"
] | 42868243+AyselHavutcu@users.noreply.github.com |
2602f0d5d20194361a9b3aaf0ea2586b950fa49b | 5af72fd35f3f967be5b6c195eaedd8739df3ee47 | /SnakeBlock.py | fb9c5afcab27983b4ec802adfbba6fe9c6d19186 | [] | no_license | tomluko/PythonSnake | 0d43e0d7ba37fd4ca29b37856294d5f63502412b | e336cf1853fa060f3b33445d485a2b353bb0dccc | refs/heads/master | 2021-01-10T02:43:08.590884 | 2015-06-02T19:52:54 | 2015-06-02T19:52:54 | 36,740,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import Block
#snakes body segment
class SnakeBlock(Block.Block):
def __init__(self, size, position):
solid = True
removable = False
color = (0, 153, 0)
super(SnakeBlock, self).__init__(solid, removable, position, size, color)
| [
"tomazasax@yahoo.com"
] | tomazasax@yahoo.com |
4d5620e88c6380c33efa91a55293aac691fa505e | 64cacb589af13865d8c1aef9b27e65bfed742967 | /md_image_backup_py3.py | 576aa084a8a8b6120e98074c4de692836ce5a214 | [] | no_license | eggfly/markdown-img-backup | 6f984a380ca837b69446f3e805cfeba19a8dd40f | 6d0e5bb2e679b081ca0b960869d87a17b5e1cdda | refs/heads/master | 2022-01-11T17:53:49.165213 | 2018-12-26T00:30:34 | 2018-12-26T00:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | # coding=utf-8
import sys
import os
import re
import requests
import urllib.request
def backup():
try:
# 备份指定文件的img
download(str('你的markdown文件路径' + sys.argv[1]))
except IndexError:
# 备份文件夹下的所有img
search('你的markdown文件路径', '.md')
def search(path, word):
for filename in os.li... | [
"hj531@live.com"
] | hj531@live.com |
1f54af48b0de5de3deb1326d6dfc2e3b9b08012e | 7246faf9a222269ce2612613f58dc5ff19091f10 | /baekjoon/3000~5999/4949_균형잡힌세상.py | 69e300ec26003ff839d8917a542427b2e7f68cc4 | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | a = input()
while a != '.':
poc = []
for i in range(len(a)):
if a[i] == '(' or a[i] == '[':
poc.append(a[i])
if a[i] == ')':
if not poc or poc[-1] != '(':
poc.append(a[i])
break
if poc[-1] == '(':
poc.pop()
... | [
"gusdn3477@naver.com"
] | gusdn3477@naver.com |
5686a856ed2ea24c4fa6fc47556d57a680b78c88 | 8a9dfd08d8bfbe07f948851ada95085bb279daa2 | /Python/26-Remove-Duplicates-from-Sorted-Array.py | ff24549e704ad2e566add902835aae98f2e34dfb | [] | no_license | lukk47/LeetCode | e437dd39f27ce40f421b03dad50935ec55239dc6 | 038cadf2b50c3aa28a7c3834f5e0dc1e8ef40e38 | refs/heads/master | 2023-09-01T18:57:09.888955 | 2021-02-08T09:46:12 | 2021-02-08T09:46:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
index = 0
last_number = None
while index < len(nums):
if nums[index]!=last_number:
last_number = nums[index]
index ... | [
"noreply@github.com"
] | lukk47.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.