blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce86423ef6e78740ffb5be412b7e67111b4d140c | 23d04ada4663d8f70632923d848ac6c7b823d8d4 | /160.Intersection_of_Two_Linked_Lists/Solution.py | c6c2ce6a8b92f2fe30cc69893c9b525e06be11bd | [] | no_license | yangliunk1987/LearningLeetcode | 581a5d65f5509115f81dae22eb4ffaa9770c5373 | 621142f939d85746f870c28864e987a40b959903 | refs/heads/master | 2020-11-29T06:23:24.781327 | 2020-02-20T07:40:31 | 2020-02-20T07:40:31 | 230,045,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""
:type head1, head1: ListNode
:rtype: ListNode
"""
# two points
... | [
"yangliunk1987@gmail.com"
] | yangliunk1987@gmail.com |
7273ecf4c121aecc427b72cbeff56b79f163d551 | 98857b21f9717ba8c042036383711e65a46e964b | /week1.py | 2c55f30ce12f67fee2c4ef360746d79461d4e248 | [] | no_license | techmentalist/Coursera-Capstone | ad18f05f24f4a2b0bcaa46ab2b5c8383ae2495ae | fb0abf63d0ce7fefb9c6a9b2619fa9e94c9c0069 | refs/heads/master | 2020-05-02T22:11:56.064359 | 2019-03-28T16:46:42 | 2019-03-28T16:46:42 | 178,244,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import pandas as pd
import numpy as np
print("Hello Capstone Project Course!")
| [
"sharmaatul11@yahoo.com"
] | sharmaatul11@yahoo.com |
8ea6255f3e3bf077a3bcd2fa96f4f711d25a55a1 | e29e2079ba460ad799d17c7c4f0ba9378cd201b1 | /DerinOgrenme/cnn_test.py | bbc358106a52b997f875cf297d3461bc30ae67d3 | [
"Apache-2.0"
] | permissive | onselaydin/pytry | 3d67546d3218e92fcaded705b0c4d00f40a1c2c4 | 314aa50b6f8535e275dc8a2edd0c21637fb5a745 | refs/heads/master | 2023-04-03T09:57:01.280893 | 2021-04-17T20:03:29 | 2021-04-17T20:03:29 | 171,333,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,123 | py | import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("data/MNIST/", one_hot=True, reshape=False)
x = tf.placeholder(tf.float32, [None, 28, 28, 1])
y_true = tf.placeholder(tf.float32, [None, 10])
filter1... | [
"onselaydin@gmail.com"
] | onselaydin@gmail.com |
df1a0d2ea34b9cef717f3c4cae694a6f80af7e54 | 15a0cc718a4b2089a8467314e05cfc56b4e825cf | /activityRecognition.py | 20c66af199b06e42a84c3352a1d17d11f13c457d | [] | no_license | jettblu/activityClassifier | 29e77be9190f67cfe97554314e14b9a30d44695e | 6d9064367f6120ae78a12819a82286179cc06498 | refs/heads/main | 2023-01-31T01:17:19.869131 | 2020-12-17T04:48:53 | 2020-12-17T04:48:53 | 322,181,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,093 | py | import loadCSV
# system libraries
import joblib
from os import listdir
from os.path import isfile, join
from collections import Counter
# data packages
from scipy.stats import kurtosis, skew, pearsonr
import numpy as np
import plotly.graph_objects as go
# signal processing libraries
from sklearn import dec... | [
"noreply@github.com"
] | noreply@github.com |
6e06d589ab36e4ea0c4a28dbb5f19654f5117e41 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_0/Python/ricbit/fractiles.py | 92d6025f44c5533c922023d088ce4a84b348b55a | [] | 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 | 148 | py | for case in xrange(input()):
k,c,s = map(int, raw_input().split())
print "Case #%d: %s" % (case + 1, ' '.join(str(1+i) for i in xrange(k)))
| [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
1f02f72f137ffc6df6f9360684433f68950e7138 | f507ddbb7b07a9e9acec144120bbf7d1a48747a6 | /완전탐색/모의고사남이품3.py | f7d98b3bdd5935c023556ebaaf923d6d5436b7b8 | [] | no_license | Insookim0702/python_Algorithm | 9f3c95b61f07bce46a5dc82c613a23d5aec6d5cd | 56ac719330ce03e2764c372cd37373e1e27a0614 | refs/heads/master | 2023-01-08T04:41:02.935269 | 2020-10-28T08:55:17 | 2020-10-28T08:55:17 | 298,799,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | def solution(answers):
pattern1 = [1, 2, 3, 4, 5]
pattern2 = [2, 1, 2, 3, 2, 4, 2, 5]
pattern3 = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5]
score = [0, 0, 0]
for x in range(0, len(answers)):
if pattern1[x % 5] == answers[x]: score[0] += 1
if pattern2[x % 8] == answers[x]: score[1] += 1
i... | [
"insookim0702@gmail.com"
] | insookim0702@gmail.com |
85a54ae7b68f5a184ca3da2d0dcbf51954cf9686 | 8cd2c4c5b62de38c30be0b1cb4573b5d9bb4285a | /border_t.py | 68196306f1cdf545e23d39d3f0c156b0eeaf76e7 | [] | no_license | ais1406/wx_python_test | 6d68ef77442a2f4d26823505e98b4f1ef4fa9a73 | d9c9ed842e5ff0c22babce8411387e76ce43a0b2 | refs/heads/master | 2016-09-06T12:57:53.465272 | 2012-07-12T15:38:30 | 2012-07-12T15:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# gotoclass.py
import wx
class Example(wx.Frame):
def __init__(self, parent, title):
super(Example, self).__init__(parent, title=title,
size=(390, 350))
self.InitUI()
self.Centre()
self.Show()
... | [
"ais1406@gmail.com"
] | ais1406@gmail.com |
ffa03219d12c1cd7011640b25c51a17e895e0b8d | 3545b7e129753bf4808c1f60e081c91a29a5f0a9 | /ec2/delete_security_group.py | 20b0804451c1aae6dc146b3329c4fd1668581d08 | [
"Apache-2.0"
] | permissive | pceuropa/AWS-CRUD-Manager | 283f1edfb993211c64c2a4272957ffd0e82eb749 | b675798c5ff2d471470449659e8fb8e7b19e723f | refs/heads/master | 2022-12-16T18:21:45.471958 | 2019-03-11T13:31:41 | 2019-03-11T13:31:41 | 150,462,634 | 10 | 2 | Apache-2.0 | 2022-12-08T02:55:33 | 2018-09-26T17:15:11 | Python | UTF-8 | Python | false | false | 808 | py | # Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is 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://aws.amazon.com/apache2.0/
#
# This file is d... | [
"info@pceuropa.net"
] | info@pceuropa.net |
753ebea727be64a72b3dfbff1b574f0a142ce574 | b2968e2b2092971f6fd72f9c72b50b5faf304985 | /zjazd_4/math_examples.py | e68d657f4a70ceb57b0ca23ad3216c6fa53cfe9c | [] | no_license | ArturoWest/pythonbootcamp | 815d0a3d6b29f12efdbd47fc7b7b7dfd18bff24f | fa7b20dfc71dcd80c201f28c72086294e482b075 | refs/heads/master | 2020-03-31T02:55:15.574065 | 2018-12-02T14:35:01 | 2018-12-02T14:35:01 | 151,844,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import math
print(math.sin(math.pi/2))
print(dir(math))
"""
Stwórz klasę sfera
s = Sfera(10)
s.promien # 10
s.objetosc() # 4188.78...
s.pole_powierzchni() # 1256.63...
"""
class Kula:
def __init__(self, r):
self.promien = r
def objetosc(self):
return (4/3) * math.pi * math.pow(self.promien... | [
"you@example.com"
] | you@example.com |
5683a00f19823ee84fd3481e813c554da6850ca2 | 083c806d4c9a435e7edb3ba155462fc7ffe6256e | /myvenv/bin/symilar | 4742dee3d79c27914227460754776858908bf612 | [] | no_license | varkha-yadav-7/todo | 29efeeafddd35e782a91ee961476270cfa9468f9 | 36a21bcdf2c1d3266ecaf51f37d787f67409b2d2 | refs/heads/master | 2023-07-18T18:14:48.307027 | 2021-05-22T07:13:57 | 2021-05-22T07:13:57 | 260,203,224 | 0 | 0 | null | 2021-09-22T18:59:29 | 2020-04-30T12:17:29 | Python | UTF-8 | Python | false | false | 263 | #!/Users/varkhayadav/PycharmProjects/todo/myvenv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"varkhay@gmail.com"
] | varkhay@gmail.com | |
33d8103a2f341f6f29a3359b9fa3be7c61b5e3ca | caa7a39055c3451db43b39ffc5e70dc560749334 | /contactus/models.py | ca5c45307ce64df354bddb41c95112374e65bc33 | [] | no_license | OneStage-NITW/website | da2438e3857c03a0c38fa6db6a33619b330a3e0d | af86e38560f16f70a0b74bcf2aeab4d855fbdc74 | refs/heads/master | 2016-08-12T15:17:14.577895 | 2015-05-31T18:10:52 | 2015-05-31T18:10:52 | 36,546,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django.db import models
# Create your models here.
class Supporter(models.Model):
name=models.CharField(max_length=100)
| [
"vivekhtc25@gmail.com"
] | vivekhtc25@gmail.com |
aa2ad7839b3b43f163375020ae8564633bedaf40 | 18485626d1d901d9629e31958867397d43701f08 | /json-filter.py | 885cfaef48c88d11f9ab90bf409dd87c5eab6f5b | [] | no_license | dleung-splunk/test | 034d3ee759916bf7097f095c48cb3ca1675849ad | 7893da74aae459135983dcae92d00d1f0a086c05 | refs/heads/master | 2021-12-29T04:19:29.518829 | 2021-12-16T22:14:51 | 2021-12-16T22:14:51 | 30,673,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | import json
if __name__ == "__main__":
det_str = "detections"
cnt_str = "count"
sse_dict ={det_str: [], cnt_str: 0}
others_dict = {det_str: [], cnt_str: 0}
sse_prod_list = ['Splunk Enterprise', 'Splunk Enterprise Security', 'Splunk Cloud']
sse_prod_set = set(sse_prod_list)
d_file = ope... | [
"dleung@splunk.com"
] | dleung@splunk.com |
d0b08910b3beb5c40716e6dfb92d061cff82200b | f07eb63af59ae42c11372e6a3329cd4113307055 | /geneactiv_extract.py | dac046495dd9e9ebe10f97ff370154d70bcc5dc1 | [
"BSD-3-Clause"
] | permissive | dptools/dpsleep-extract | c3eafbf842db0bdac95a61a67a4b6d783f4d38b9 | 0bb63bd5f67d9eb02707e30760bf863098f5d291 | refs/heads/master | 2023-02-27T07:14:35.876292 | 2021-02-04T22:57:09 | 2021-02-04T22:57:09 | 288,187,940 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,115 | py | #!/usr/bin/env python
import os
import sys
import pandas as pd
import logging
import argparse as ap
from importlib import import_module
logger = logging.getLogger(os.path.basename(__file__))
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
def main():
argparser = ap.Arg... | [
"hr860@eris2n4.research.partners.org"
] | hr860@eris2n4.research.partners.org |
92f484c80350747fd2e196ad063c812333d98909 | 22a2a133720bd3c17cf2e5ec493bd75a670fde8e | /app.py | c8d14ddc69aecc2bc3e6b91c9806ca0f37d42683 | [] | no_license | EldritchJS/nlp_container | 0ef9723d76372b832e074746de55164ea4b40608 | 533cd195c884cbfaedee06e161c4f9741e931a9a | refs/heads/master | 2022-07-12T07:12:05.595164 | 2019-12-04T19:06:52 | 2019-12-04T19:06:52 | 225,932,795 | 0 | 0 | null | 2022-06-21T23:42:44 | 2019-12-04T18:35:55 | Python | UTF-8 | Python | false | false | 3,443 | py | import argparse
import logging
import os
import time
import urllib.request as urllib
from json import loads
from kafka import KafkaConsumer
import foolbox
import numpy as np
from foolbox import zoo
from PIL import Image
import requests
from io import BytesIO
import toolz
import gensim
import torch
import nltk
import c... | [
"jason@localhost.localdomain"
] | jason@localhost.localdomain |
954d4f04753e7d4fd2561471a3d7d2caf2b10d6c | 93c7eebb83b88cd4bfb06b6e5695ad785c84f1d6 | /tazebao/newsletter/migrations/0019_tracking_notes.py | 60750c49486164f1f0ac14d3f046001e45690468 | [] | no_license | otto-torino/tazebao | 960e31a576f4acc7cd4572e589424f54a8e9b166 | 12db8605b5aa9c8bf4f735a03af90d0989018105 | refs/heads/master | 2023-08-09T02:06:14.749976 | 2023-07-28T07:20:23 | 2023-07-28T07:20:23 | 68,196,585 | 5 | 0 | null | 2022-12-08T05:25:04 | 2016-09-14T10:21:21 | HTML | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-27 12:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0018_tracking_type'),
]
operations = [
migrations.AddField(
... | [
"abidibo@gmail.com"
] | abidibo@gmail.com |
5d3ccfb77f907e35c2e66ae0604bc0b080fa8b0c | 73d36ad9b31d8118a5cea145dd89511618962836 | /code/my_tests.py | 40fe0ca88fc3ce0b33b33d264b997065079f426d | [] | no_license | aaronchoi5/ml-euchre | 103b8a28b7ebe725f0e0a0225e8fd42ab1c0eef8 | 0bae681d44a0f23d46968613b4629b74438113bf | refs/heads/master | 2020-03-08T18:06:36.940119 | 2018-04-12T01:32:44 | 2018-04-12T01:32:44 | 128,286,847 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 576 | py |
import AIs
def testAI(cur_ai):
# if the attribute does not exist this will raise an attribute error for
# the missing function
cur_ai.playCard
cur_ai.updateInfo
cur_ai.orderUp
cur_ai.pickUp
cur_ai.pickSuit
cur_ai.reset
cur_ai.setHand
# Test that all AIs have the ne... | [
"choian@mail.uc.edu"
] | choian@mail.uc.edu |
7373a853fc106496505b63aa97cb81a3b4c74a2d | 04740a66d98730afca496eb0cf5e7b5edea5f6e6 | /backend/dataset/strStr/strmatch_16.py | 9c00b55f82dfafeb143e4c6fb29fe88f22448f09 | [] | no_license | mehulthakral/logic_detector | 0c06fbd12d77a02c888d0bbe3e6776a18f2f46e3 | f7a07a6d229b250da9e02d3fac1a12fa51be97e8 | refs/heads/master | 2023-04-12T12:45:29.370502 | 2021-05-05T17:15:02 | 2021-05-05T17:15:02 | 323,953,099 | 2 | 0 | null | 2021-05-03T16:50:44 | 2020-12-23T16:39:28 | null | UTF-8 | Python | false | false | 250 | py | class Solution:
def strStr(self, haystack, needle):
n, h = len(needle), len(haystack)
hash_n = hash(needle)
for i in range(h-n+1):
if hash(haystack[i:i+n]) == hash_n:
return i
return -1
| [
"mehul.thakral@gmail.com"
] | mehul.thakral@gmail.com |
15920fcc24a062056682be6ad864a866201cf80c | fb062d2f49d36fbba96b41891ef57afb6c989a56 | /Bookstore/store/migrations/0001_initial.py | 2aa827b29d55f37fa10fc3cd14ba3196cae154af | [] | no_license | puneeth-prasahanth/Mysterious_books_latest | e5259d5e3673f5e30a9f1b900bda974ba9e3947a | 674f13ea04127b84daed67fc8d0f4acedf87f9cc | refs/heads/master | 2023-02-20T00:36:18.847860 | 2022-10-01T08:58:14 | 2022-10-01T08:58:14 | 167,383,371 | 0 | 0 | null | 2023-02-07T22:02:13 | 2019-01-24T14:45:26 | Python | UTF-8 | Python | false | false | 713 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Books',
fields=[
(... | [
"PuneethPrashanth.Ganapuram"
] | PuneethPrashanth.Ganapuram |
3b18eb6853a190e0be0393739a8e62a04458b12f | 7ce97ef2cb6990e3c2229e5486820a69b88b50d3 | /Thesis/GuelphThesis/prog.py | 723423bb0f4bb7d50ec33b64cb1a8230d604d954 | [] | no_license | qwazzy1990/ladder | b087a7fdb15ea1ed9d9ff39d72826680858e4f35 | aa331299252e46ef859591b72217135d996b61ee | refs/heads/master | 2021-11-07T00:08:32.173164 | 2021-11-06T16:04:46 | 2021-11-06T16:04:46 | 195,143,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import os
import sys
if __name__ == "__main__":
try:
f = open("MinLadders.txt", "r")
w = open("TestFile.txt", "w")
s = f.read()
lines = s.split("\n")
for i in range(0, len(lines)-2, 4):
print(i)
s = lines[i] + lines[i+1] + lines[i+2]
... | [
"disalvopatrick@gmail.com"
] | disalvopatrick@gmail.com |
9e33a9f7dd630eb5374aa62e0d7551cc06a64898 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/console/ipython/psi/shellAssignment1.py | 88e2cbe3c3773357bc9f7ebbe8f2e90958767bcb | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 14 | py | my_files = !ls | [
"Anton.Bragin@jetbrains.com"
] | Anton.Bragin@jetbrains.com |
9f6e4bc249718996a818fadbfe92c90923d1438a | 100c931c589d7918c61e26f4c30c0e75b56b6e2f | /src/block.py | 53dbee048a83e5a759c65f776a188e94dfd9679e | [] | no_license | cpantoleon/LodeRunnerPyGame | 9e153021ea78e8fef0761503c1a76d336f955ca5 | 4f4d3e7b512da5cd819da2abe17fd4b89f08cc3b | refs/heads/master | 2022-09-08T08:56:34.705407 | 2020-05-31T16:14:17 | 2020-05-31T16:14:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | import pygame
import random
import math
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
coin = [pygame.image.load('src/coin/coin1.png'),
pygame.image.load('src/coin/coin2.png'),
pygame.image.load('src/coin/coin3.png'),
pygame.image.load('src/coin/coin4.png'),
pygame.image.load('src/c... | [
"noreply@github.com"
] | noreply@github.com |
3e4f4b9f8df7ff6172160cbf492c5a41e003b4a3 | 1354c17f5a25ad17f585d875542bd6de252fcaee | /models.py | 673a8695c7cd6b76c0d387c62352ef983882c9fe | [] | no_license | zenle/travel-project | 8ecb58d1d211eb0ccc93cdb833fb29cf77cb364d | df846e4dc7ad047f24fd56b9fd54ea0237262570 | refs/heads/master | 2020-05-01T00:01:34.706780 | 2019-03-31T11:26:47 | 2019-03-31T11:26:47 | 177,158,347 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # flask_graphene_mongo/models.py
from datetime import datetime
from mongoengine import Document
from mongoengine.fields import (
DateTimeField, ReferenceField, StringField, ListField
)
class Department(Document):
meta = {'collection': 'department'}
name = StringField()
class Role(Document):
meta = {... | [
"senvanle4@gmail.com"
] | senvanle4@gmail.com |
05b34fd67de2c72f92f8477a5fa1aaec33b9b980 | 1bb9a830f5560f6c4d0e52f65a389a4e53e5d3b6 | /palindrome-python.py | d15c22aac1cad6b837bf69628c72db4865461a6e | [] | no_license | 3rt4nm4n/palindrome-python | e18be2f11edf0a1d3c76421f3d6004f7713f4493 | 1d33ff8a68654bb230dacad0e66f5bcb15395c6a | refs/heads/master | 2023-07-09T17:47:14.387104 | 2021-08-26T19:57:15 | 2021-08-26T19:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import pandas as pd
import string
import re
import numpy as np
data=pd.read_excel(r"C:\Users\nigbu\Desktop\isimler.xlsx")
mylist = data['isimler'].tolist()
pali_list=[]
data.isimler
length=len(mylist)
for x in range(0,length):
print("Reverse of the "+mylist[x]+": "+mylist[x][::-1])
if(mylist[x][::-1]==mylist[x... | [
"nigbuk1998@gmail.com"
] | nigbuk1998@gmail.com |
cf5b0c2f3eb01584b6f80865ead561845cd941dd | 4c98d26c485bcd01cef2293155628952f0f8cf23 | /songs/migrations/0004_auto__add_setlistarchive.py | 9134fd20c6f79ba73014f4cbe19192eec1c6f0d5 | [] | no_license | takeahsiaor/inspirepraise | bc643f0e562d1d50860048a172362a04bf7ab0b5 | 5e9e74654f6dec7a503bda71f1d45474af674c39 | refs/heads/master | 2022-11-27T20:43:20.137730 | 2015-10-03T20:53:56 | 2015-10-03T20:53:56 | 18,536,132 | 0 | 0 | null | 2022-11-22T00:33:22 | 2014-04-07T22:03:40 | JavaScript | UTF-8 | Python | false | false | 10,394 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'SetlistArchive'
db.create_table(u'songs_setlistarchive', (
(u'id', self.gf('djan... | [
"rhsiao2@gmail.com"
] | rhsiao2@gmail.com |
301668fbfd57c65790cb8c5420910f05df89b599 | 5b89542f2c11c5dd860ded8d12b4fb4a929d4a92 | /ex39.py | 11b8e907e4efe79c9cd7247913ba725735217413 | [] | no_license | germancynic/LPTHW | 9b48df3605a2696684cf8b4c1921b5d9a2d64b91 | dcbca9de070f2775675cd89498c35ff14edc8c22 | refs/heads/master | 2021-09-04T20:40:10.969153 | 2018-01-22T08:21:36 | 2018-01-22T08:21:36 | 110,608,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | # create a mapping of state to abbreviation
states = {
'Schleswig-Holstein': 'SH',
'Lower Saxony': 'LS',
'Saxony': 'SX',
'Hamburg': 'HH',
'Bavaria': 'FB'
}
# create a basic set of states and some cities in them
cities = {
'LS': 'Lueneburg',
'SX': 'Leipzig',
'SH': 'Luebeck'
}
# add some more ci... | [
"noreply@github.com"
] | noreply@github.com |
a7f7f5126462aa55e71d92298e11a485f8588c55 | 791f1eab60b666edc03ff97effa194e663d86f94 | /lesson8/home_work.py | eeefc547323e68c76c71a8514f687961d899c5a0 | [
"MIT"
] | permissive | positron1510/python-developer | 6e945a760af61601fd1720b3fdb3554209a3894d | c91577b9bd35730cd9890c77bc95f8b00f974958 | refs/heads/master | 2020-12-05T15:49:56.210807 | 2020-02-02T19:54:10 | 2020-02-02T19:54:10 | 232,161,639 | 0 | 0 | MIT | 2020-01-20T07:40:57 | 2020-01-06T18:33:42 | Python | UTF-8 | Python | false | false | 746 | py | import time
import os
import psutil
def time_and_memory(f):
def wrapper(*args, **kwargs):
start = time.time()
proc = psutil.Process(os.getpid())
print('Memory start: {}'.format(str(proc.memory_info().rss / 1000000)))
f(*args, **kwargs)
proc = psutil.Process(os.getpid())
... | [
"m.yanko@optimism.ru"
] | m.yanko@optimism.ru |
34c124b3a7647f01806bfe8477086b68f63e78b5 | 4a7092876b5057867a1290114e29dfd9fb1c0820 | /fastccd_support_ioc/utils/python2-version/setFCRIC-Normal.py | 28cf771b07ad1017c253270d147325d411a39a06 | [
"BSD-3-Clause"
] | permissive | ihumphrey/fastccd_support_ioc | 2380a9c23037ccb552d00efdb0235b7116e6ea19 | 7cd844102f042bea2fa5a31217e15fd72731b523 | refs/heads/master | 2023-03-03T04:34:39.827326 | 2021-02-08T19:47:09 | 2021-02-08T19:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
import cin_constants
import cin_register_map
import cin_functions
# Mask Triggers & turn off Bias
# import setTriggerSW
# cin_functions.setCameraOff()
# Clamp Mode registers
# Write clampr
cin_functions.WriteReg("821D", "A000", 0)
cin_functions.WriteReg("821E", "0048", 0)
ci... | [
"ronpandolfi@gmail.com"
] | ronpandolfi@gmail.com |
ffa7006b45dc4d4246f63987a54c2535ec95a7de | 68ea05d0d276441cb2d1e39c620d5991e0211b94 | /2144.py | bb654c8a0b7125606aa402a02d74bd202336952f | [] | no_license | mcavalca/uri-python | 286bc43aa157d3a6880dc222e0136c80cf079565 | e22875d2609fe7e215f9f3ed3ca73a1bc2cf67be | refs/heads/master | 2021-11-23T08:35:17.614443 | 2021-10-05T13:26:03 | 2021-10-05T13:26:03 | 131,339,175 | 50 | 27 | null | 2021-11-22T12:21:59 | 2018-04-27T19:54:09 | Python | UTF-8 | Python | false | false | 618 | py | final = 0.0
total = 0
while True:
w1, w2, r = [int(x) for x in input().split()]
if w1 == w2 == r == 0:
break
media = float(((w1 * (1 + r/30))+(w2 * (1 + r/30))))/2.0
final += media
total += 1
if media < 13:
print('Nao vai da nao')
elif media < 14:
print('E 13')
el... | [
"m.cavalca@hotmail.com"
] | m.cavalca@hotmail.com |
168786c5446b03293bbcce5a3a2a3598f795f2b9 | 0d29a5643e7d81a0748d49cf24ba3b842d9a3bff | /cart/contexts.py | 1f7d68bd24ac566a53a778691463909e6bc00aef | [] | no_license | jasonstreet/CI-Ecommerce | 00753f3870d254cfe7747138a2928caedf61f9bb | 64c4f29df1b0b1cdbea49d61c3d96cdcc68277cc | refs/heads/master | 2023-01-05T09:05:53.458069 | 2019-04-29T15:23:28 | 2019-04-29T15:23:28 | 168,339,840 | 0 | 1 | null | 2022-12-26T20:15:29 | 2019-01-30T12:32:49 | Python | UTF-8 | Python | false | false | 634 | py | from django.shortcuts import get_object_or_404
from products.models import Product
def cart_contents(request):
"""
Makes cart content available when rendering every page
"""
cart = request.session.get('cart', {})
cart_items = []
total = 0
product_count = 0
for id, quantity in ... | [
"jason.street@learningpeople.co.uk"
] | jason.street@learningpeople.co.uk |
92c456f5850eae6004ecb021f77b3e59abf2ec3c | a4fe00aa3d8c508013a52442115c1fc6be14343c | /guidance/urls.py | c8518cb15c34d7240783aadbe8809f2fcf81c3fb | [] | no_license | bakboka/presences | 8bfb11e2bc21c737e579e3fbe0ef8ea26f21b9c5 | 3108f3db2e588b6ef8677f027792d2188f24a1d8 | refs/heads/master | 2021-01-20T18:19:37.256002 | 2016-08-25T23:01:27 | 2016-08-25T23:01:27 | 65,466,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | """guidance URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"bak@spaceapplications.com"
] | bak@spaceapplications.com |
81371ab1fe6d5402a4d6d6448d42fcfd02eabb5b | 91e2f963ec4b13d38c3d5d0258ad0c48d4d674f1 | /unittests/TestBlockLinker.py | 1ba4f2e32cbf5043dc82f85d25e6abfa9051bf8e | [
"MIT"
] | permissive | WouterGlorieux/BitcoinSpellbook-v0.2 | 6265589afc1197fe52e41b9dc701e4cc5294187f | 93b5480f87f4dc41c2d71093aa98d1fbdd83625c | refs/heads/master | 2021-06-02T06:48:25.607028 | 2016-09-23T20:03:55 | 2016-09-23T20:03:55 | 61,746,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from pprint import pprint
from os import path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
from wrappers import SpellbookWrapper as SpellbookWrapper
import testconfig
url = testconfig.url
key = testconfig.key
secret = testconfig.secret
... | [
"wouter@valyrian.tech"
] | wouter@valyrian.tech |
afa1dd6b0f679aa6df6a0a0250b61aa5007a4a21 | 08f5dd97433ce84868dbd95020e49f795e8e3f42 | /website/migrations/0011_auto_20150726_2337.py | 1c3b5f116150b0b516139ab4f7af13d2afd1e2d9 | [] | no_license | katur/forthebirds | f76e9d78f8b71f5cb13f22f3c417e737f6048896 | 2118fabebd8780cd3151f5ddd88245de402590e9 | refs/heads/master | 2023-08-08T18:57:55.722516 | 2023-03-28T03:04:19 | 2023-03-28T03:04:19 | 22,771,365 | 2 | 1 | null | 2023-07-25T21:23:49 | 2014-08-08T20:56:20 | Python | UTF-8 | Python | false | false | 1,219 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0010_auto_20150104_1404'),
]
operations = [
migrations.AddField(
model_name='userprofile',
... | [
"katherine.erickson@gmail.com"
] | katherine.erickson@gmail.com |
efaa272b0e6cf2336568d95add9b4b23b76ee094 | c9e72e68a93b3927bf28efac7bfc86809108b817 | /CryptoBallotsProject/wsgi.py | ae8d583cd072105f78d9f76a0b5013edba057e62 | [] | no_license | vasudhashah/VotingSystemBlockchain | 226b300da9261139c62c62410d751249deda92b5 | 6588fdbafac5301f1b953d9c44a245c77445a644 | refs/heads/main | 2023-03-04T11:13:49.695531 | 2021-02-02T10:07:07 | 2021-02-02T10:07:07 | 335,240,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | """
WSGI config for CryptoBallotsProject 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.enviro... | [
"noreply@github.com"
] | noreply@github.com |
b60bd8656b218f64625a5669c5308fefecedc7d5 | 1f3e60dd844e73fa61ad4e993d774c645f9433c2 | /bin/oddt_cli | 0a95bab970bf0e46902526cc29c560d7081048ab | [
"BSD-3-Clause"
] | permissive | minghao2016/oddt | 830cd1a6b956f93d543b489b05708c17c7dc1037 | 9f667bb50682e50fa059997c5513047bf3f6a3cd | refs/heads/master | 2021-01-22T09:28:00.801290 | 2017-01-26T10:51:47 | 2017-01-26T11:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,508 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
# FIX Windows multiprocessing
# Module multiprocessing is organized differently in Python 3.4+
try:
# Python 3.4+
if sys.platform.startswith('win'):
import multiprocessing.popen_spawn_win32 as forking
else:
import multiproce... | [
"maciek@wojcikowski.pl"
] | maciek@wojcikowski.pl | |
bfbf63b06cdc7643c0425ab11c912da73d947c6c | cc3673a6c5dcf0ec9cf31daa56ae6df44dada702 | /manage.py | 4dfb09a988a3f5cda90d4aef4f4828fff43297a5 | [] | no_license | migue0418/DSD_Apache_Thrift | e8ab50ed89b6c162d2f6befe69c5b812f9e40865 | 94fa1adc00a994b2471f6d18d6d4b8d8287262f7 | refs/heads/main | 2023-04-05T15:34:39.556084 | 2021-04-12T21:25:40 | 2021-04-12T21:25:40 | 352,952,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DSD_Apache_Thrift.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure... | [
"55736829+migue0418@users.noreply.github.com"
] | 55736829+migue0418@users.noreply.github.com |
0ab9169652266ec7b80850b1436d24bd149fb8d6 | a205e4dfa3a93c62626e9f1a6d101bfbb5310d8e | /python_source_code/thresholding.py | 86f38364ee78aaabfbb13aba9757c6c505058394 | [] | no_license | artalgos/gui | ca202099d730f61047403347f832eaeb147863b2 | 9eff124452753c6bc1cc1f2652e6ecfa78174020 | refs/heads/master | 2021-07-12T07:33:48.582248 | 2017-10-18T02:00:55 | 2017-10-18T02:00:55 | 106,954,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | import numpy as np
from scipy import ndimage
def RosinThreshold(imhist, picknonempty=0):
mmax2 = np.amax(imhist)
mpos = imhist.argmax()
p1 = [mpos, mmax2]
L = imhist.shape[0]
lastbin = mpos
for i in np.arange(start=mpos, stop = L):
if(imhist[i] > 0):
lastbin = i
p2 = [l... | [
"gilad.amitai@duke.edu"
] | gilad.amitai@duke.edu |
6298ae66b2659ba754329d0314f6849ce42e0261 | 0995f4b2a0db3fe88e68862c4e3125becfb5f8af | /scripts/generate_pairs2_cacd.py | dfa29e0f924d62d97e13bde82bb8b16490216b2b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | phymhan/face-aging | db010df62b281befeb1149085ba865382637e3f8 | 2970793d85f2502929222ca7269fb427afee71c1 | refs/heads/master | 2020-03-22T00:33:19.686177 | 2018-09-18T13:17:48 | 2018-09-18T13:17:48 | 139,252,060 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | # datafile: A B 0/1/2
# label: 0: A < B, 1: A == B, 2: A > B
import os
import random
import argparse
random.seed(0)
parser = argparse.ArgumentParser()
parser.add_argument('--mode', type=str, default='train')
parser.add_argument('--N', type=int, default=140000)
parser.add_argument('--margin', type=int, default=10)
op... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
57c75e86d361f15473ccee4c9e54926100ce4305 | 758bc545bcb2b29f2b6f71e66879b78d50af6a9c | /DemoFile.py | d005c4a90ad3fde5b0aeac66c29a851f50b1b8fa | [] | no_license | Jaeya/Work | d12a4aaaf836d342272bd928a487bc7fdaf13cff | 3f16b384fb3a714cfba3d58af364d09fbc8a8101 | refs/heads/master | 2023-07-12T22:18:43.813846 | 2021-08-09T07:11:39 | 2021-08-09T07:11:39 | 392,137,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | # DemoFile.py
strURL = "http:bitcamp.com/?page=" + str(1)
print(strURL)
#오른쪽으로 정렬
for i in range(1,6):
print(i, "*",i,"=", i*i)
print("---정렬방식 변경---")
for i in range(1,6):
print(i, "*", i, "=", str(i*i).rjust(3))
print("---정렬방식 변경---")
for i in range(1,6):
print(i, "*", i, "=", str(i*i).zfill(3))
# 문자... | [
"yi2228@naver.com"
] | yi2228@naver.com |
f3dced31b38367b2b096ffa0ec39e14389df39b7 | 4668bc07bdbb7734d1005e946959944a7b49b9b7 | /cookOff/DSIMP/AMZ_Distinct_Window.py | bf6fb77dc9603c3d4fc013cddba32be6d8ca838a | [] | no_license | rjoshi47/DSmax | a91a11cfac3e0aa282d3119744a322c882df16ff | f41e042b434a95dd8f41b65ea31204b35f8981c4 | refs/heads/master | 2021-06-06T18:56:14.744503 | 2020-03-06T18:52:39 | 2020-03-06T18:52:39 | 123,318,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | '''
Created on May 8, 2018
https://practice.geeksforgeeks.org/problems/smallest-distant-window/0
@author: rjoshi
1. Init s=0 and start e = 0 and e+= 1 while we have not visited all distinct chars once.
then s+= 1 while the count of char at s > 1 and decrease its count
2. Now, to check for another unique window
Re... | [
"noreply@github.com"
] | noreply@github.com |
b705af18da4f1723c1c487668d6accd791c04e92 | b9a9601f70a5f13d4f11136796dcad0d461d67e3 | /ex18.py | 1216ed2799d1949051ee0691169d81fa9d7d1d55 | [] | no_license | maits/learn-python-the-hard-way | 0c9e71704ed2351a2460d51fccbf0bbfe3a0a55f | 5f1831e99caa64f5d9c0c8633c134bb0777a0dbe | refs/heads/master | 2016-09-06T08:54:27.395719 | 2014-08-09T18:04:43 | 2014-08-09T18:04:43 | 17,817,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | #this one is like scripts with argv
def print_two(*args):
arg1, arg2 = args
print "arg1: %r, arg2: %r" % (arg1, arg2)
#ok, that *args is actually pointless, we can just do this
def print_two_again(arg1, arg2):
print "arg1: %r, arg2: %r" % (arg1, arg2)
#this just takes one argument
def print_one(arg1):
print "arg1... | [
"maite.fern@gmail.com"
] | maite.fern@gmail.com |
2b4cd437ba2e2ee6a4c3402377be93cdd876ecac | de57b1403887db1165adf29ad8af767a503d523d | /envLitchi/Scripts/rstpep2html.py | fc6af1f845be043f88ecc2ed53350ce64815b800 | [] | no_license | wlapie40/First-own-project | 00a256c0f7cade24e37f053bd7cfe2e0b8b90157 | ed4d74395c22a5bc688bc92c7f8aafe444dac6fe | refs/heads/master | 2022-10-17T00:34:09.920165 | 2018-09-04T10:17:23 | 2018-09-04T10:17:23 | 147,328,042 | 0 | 1 | null | 2022-10-02T08:02:43 | 2018-09-04T10:20:15 | Python | UTF-8 | Python | false | false | 699 | py | #!D:\Litchi\Litchi\envLitchi\Scripts\python.exe
# $Id: rstpep2html.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 HTML from PEP
(Python Enhancement Proposal)... | [
"32576921+wlapie40@users.noreply.github.com"
] | 32576921+wlapie40@users.noreply.github.com |
ad5c1854793eb7ff7a06b89123406bd985a462ea | 3701467a06bc624c9520984bf6bfc71c95d648d6 | /NewModelNetworkKBP/dataElmoKBP.py | 6b2c34b1656164f046b3aa9ac6958b0a01eebfe6 | [] | no_license | llq20133100095/ANA_SL_ELMO | b54ecef3774f0db85a4940ff7a402c7ebc41b9ba | 46ce451e2841cff1978044110330c2218822644a | refs/heads/master | 2020-07-30T05:11:44.519440 | 2020-06-23T06:22:28 | 2020-06-23T06:22:28 | 210,097,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,298 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu May 16 10:47:09 2019
@author: llq
@function:
1.process the KBP dataset
2.concate the "glove embedding"
and "Elmo embedding" and "Pos embedding"
"""
import numpy as np
#from allennlp.commands.elmo import ElmoEmbedder
import re
import tim... | [
"1182953475@qq.com"
] | 1182953475@qq.com |
d3e761fd33793aa11b6438e8a85ee6b8d49d9f26 | bd02997a44218468b155eda45dd9dd592bb3d124 | /baekjoon_1149.py | 4e0e23db2a3600c59ccc9ab1de7704622b137d4c | [] | no_license | rheehot/ProblemSolving_Python | 88b1eb303ab97624ae6c97e05393352695038d14 | 4d6dc6aea628f0e6e96530646c66216bf489427f | refs/heads/master | 2023-02-13T03:30:07.039231 | 2021-01-04T06:04:11 | 2021-01-04T06:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | '''
Problem Solving Baekjoon 1149
Author: Injun Son
Date: September 23, 2020
'''
import sys
import copy
from itertools import combinations
from collections import deque
import math
N = int(input())
cost = []
for _ in range(N):
r, g, v = map(int, input().split())
cost.append([r, g, v])
'''
dp[i][0] = i번째 집을 r로... | [
"ison@sfu.ca"
] | ison@sfu.ca |
fcf5cdd7421b4f2532a2e661e5f029b817329d95 | dd681dd7874c80c2804ca8d66cdbfdf2abec537e | /Python/venv/Lib/site-packages/tensorflow/keras/datasets/boston_housing/__init__.py | 53ffc7b9cca8e7eac1826d4cf34ba9db26f68fff | [] | no_license | khaled147/Koneked | cbbaec78cf3828575e835445f45b9dd72c39d808 | 98bdc701a3d126c742e076ee3ad34719a0ac5309 | refs/heads/main | 2023-04-03T11:37:07.941179 | 2021-04-14T02:09:35 | 2021-04-14T02:09:35 | 345,202,202 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Boston housing price regression dataset.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.keras.datasets.boston_housing import loa... | [
"elmalawanykhaled@gmail.com"
] | elmalawanykhaled@gmail.com |
66033f69ef4e05133ece1635ec5b66a8e577c7f0 | ff998a560ce3181cc6f751b066250854a77651fd | /playground/class_variable_attributes.py | 4f915ec52b641b57b470f419d3f47982fb9851d3 | [
"MIT"
] | permissive | aamitabhmedia/phototools | 36c2b1b602788da25c468aa2d3a98a8ab1fc33a2 | dc9e8025a7381578a25b02f98c4073e3784ab5b9 | refs/heads/main | 2023-05-03T01:41:43.188428 | 2021-05-22T20:57:41 | 2021-05-22T20:57:41 | 330,093,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | class Metadata(object):
def __init__(self, filename):
self.filename = filename
m = Metadata("lake Merritt.jpg")
print(m.filename)
m.DateTaken = "2010:01:02 16:05:20"
print(m.DateTaken)
class Album(object):
pass
a = Album()
a.name = "Album Name"
a.path = "Album Path"
print(f"{a.name}, {a.path}")
| [
"buddhabacchan@gmail.com"
] | buddhabacchan@gmail.com |
b4241046c7c59718bfda12d04fb8e89dc55ab3e6 | 89e7752fa2fecffe2bc31371b816161bc6f06aa1 | /hashing.py | 41c75bd14e7abbea6d8944ad5d853bbbe8ab037e | [] | no_license | fagan2888/web-dev | ec04ab0dbb9e82856b3cc322d120523222677ae9 | 9b7a8621b415a9ae2c64c1281db523532ac20dc7 | refs/heads/master | 2021-05-29T00:34:42.407404 | 2015-01-21T20:58:39 | 2015-01-21T20:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from datetime import datetime
import random
import string
import hashlib
import hmac
from secret import SECRET
# functions for hashing cookies
def hash_str(s):
return hmac.new(SECRET, str(s)).hexdigest()
def make_secure_val(s):
return '|'.join([str(s), hash_str(s)])
def check_secure_val(h):
# take a s... | [
"racheltho@gmail.com"
] | racheltho@gmail.com |
61e10b13bc3cd67bec00a3952ff45de859bad9c5 | 0fd91b4c7f7ff702e5ab482d9d741a78f8b31244 | /fiber/api/handlers.py | 0cbace7e4778c207d234555d54bb8efd16de29a4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gijs/django-fiber | 4528b6e0b384bd9b44716c26bc7d1b9275e9eeec | 6a67facd70d4de43272f9c210b820784c75c14ca | refs/heads/master | 2021-01-17T12:54:58.104638 | 2011-04-19T10:41:14 | 2011-04-19T10:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,747 | py | import os
from django.db.models import F, Max
from piston.handler import BaseHandler
from piston.utils import rc
from fiber.utils.date import friendly_datetime
from fiber.models import Page, PageContentItem, ContentItem, Image, File
class PageHandler(BaseHandler):
allowed_methods = ('GET', 'POST', 'PUT', 'DEL... | [
"dbunskoek@leukeleu.nl"
] | dbunskoek@leukeleu.nl |
b1c4524387a2e84017e8bdd402f74b6c789e7b61 | ef9b18c5452fe062b6baf7a1f1db49e7a1e9bd9d | /Aula 08 - Utilizando Módulos/ex019.py | f84b1620d411c9245bc1d74650280d57635677a8 | [
"MIT"
] | permissive | dayellesouza/python-project | 82c1e96dea51b1d3f00038ae09c85901157cb7e9 | 202cf71274915672b88f6e44f0b65ee9dd3218e8 | refs/heads/main | 2023-03-06T18:14:39.662673 | 2021-02-19T19:47:45 | 2021-02-19T19:47:45 | 336,878,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from random import choice
nome1 = input('Digite o primeiro nome: ')
nome2 = input('Digite o segundo nome: ')
nome3 = input('DIgite o terceiro nome ')
nome4 = input('Digite o quarto nome: ')
arr = [nome1, nome2, nome3, nome4]
s = choice(arr)
print('O nome sorteado foi {}'.format(s))
| [
"dayelle1557@hotmail.com"
] | dayelle1557@hotmail.com |
565f9d0dc508935b65b8c4ded8a188e6dde58b18 | d825fd198675abfbaaad34e5c531a65f2c7592cf | /mysite/blog/templatetags/blog_tags.py | ce21a3ccda2e0ada012b03a3f5e5c79e74227b9a | [] | no_license | aky5841468/My-Blog | ba3976ebf65ef8ce3b70edbe1bd0847a84d04d32 | ea382e101082d4f0c8a52a46d97099152625f1a9 | refs/heads/master | 2022-11-19T09:17:22.734339 | 2020-07-16T09:49:18 | 2020-07-16T09:49:18 | 280,100,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from django import template
from ..models import Post
from django.db.models import Count
register = template.Library()
@register.simple_tag
def total_posts():
return Post.published.count()
@register.inclusion_tag('blog/post/latest_posts.html')
def show_latest_posts(count = 5):
latest_posts = Post.published.order_... | [
"amity220041@gmail.com"
] | amity220041@gmail.com |
2475d6fcd437c7b0ff65d2da526af572ccafff75 | bb6913f908ea3f5a58bc40d733a732f174cd41ef | /trial.py | c75d07cafad1aa16458ef720cc627a234e7666c6 | [] | no_license | K0ra/Work | 75f533b99cc90f4325573d111a165075c319e9dc | a5766259478dbde548c0d5822b6ba49ae07f0b60 | refs/heads/master | 2020-07-16T19:50:59.950615 | 2019-09-02T13:05:48 | 2019-09-02T13:05:48 | 205,856,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,758 | py | import sys
import matplotlib
matplotlib.use("Qt5Agg")
from PyQt5 import QtCore
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow, QMenu, QVBoxLayout, QSizePolicy, QMessageBox, QWidget
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figur... | [
"noreply@github.com"
] | noreply@github.com |
c5405da4c5997529293dfd8b33de35476f6a2ee4 | b600d4003d57d66e26f1eba2b95ba2dec5adf1fe | /LeapMotionBlender/UI/Menus/settingsPanel.py | c1fe0c8786f6c62da6733614cc6dc99c018db6d9 | [
"MIT"
] | permissive | ALucatero03/Blender-Puppet-Motion | b214904f3cb2adc2f00d9ac2f1e5fe2e924fef15 | ce3beea7d681966a17aeaf6382424efaa3f05f5d | refs/heads/master | 2020-09-01T06:30:11.079384 | 2019-10-30T08:02:36 | 2019-10-30T08:02:36 | 218,899,574 | 0 | 0 | MIT | 2019-11-01T02:38:03 | 2019-11-01T02:38:02 | null | UTF-8 | Python | false | false | 1,461 | py | import bpy
from bpy.app.handlers import persistent
from bpy.props import BoolProperty, EnumProperty, IntProperty, PointerProperty, StringProperty
from bpy.types import AddonPreferences
from ...Operators import ForceStart
from ... import communicator
class SettingsPanel(AddonPreferences):
bl_idname = "LeapMotionB... | [
"danamadorpe@gmail.com"
] | danamadorpe@gmail.com |
8f53c74814241b9df893b923178de00b3e5b2f16 | ec0fb2acbe70d3d7f399aea42038221298c8268e | /part010/ch05_shapely/sec6_interop/test_3_geo_inter_x_x.py | 6d92bbb779c365957775521a98a907196adfb01c | [] | no_license | GAIMJKP/book_python_gis | fa09567337bfccd4ab968228d4890ec0538ada50 | cd09be08df4cf4d3e06cf7c43d0b80cc76976a7e | refs/heads/master | 2022-11-07T18:32:22.340481 | 2020-06-20T13:22:58 | 2020-06-20T13:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
###############################################################################
from shapely.geometry import asShape
d = {"type": "Point", "coordinates": (0.0, 0.0)}
shape = asShape(d)
shape.geom_type
tuple(shape.coords)
list(shape.coords)
#################################... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
abfcd32e8c71bff43c8a98c626c2fe7d9afc2b6c | 8fc7635b84b42e61b7efb9eaf7215394b5b5790a | /aliennor-backend copy/aliennorDjangoBackend/aliennorDjangoBackend/settings.py | cb042666939a3793989e062b84e22ccf1baf9c76 | [] | no_license | phamcong/aliennor-platform | f1e8470aab7ed634859e071f6028931f576ddf3e | e1d71532426ac9414d2158d50ee34c32257618f0 | refs/heads/master | 2021-05-14T17:08:08.629564 | 2018-02-17T23:35:07 | 2018-02-17T23:35:07 | 116,038,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | """
Django settings for aliennorDjangoBackend 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/
"""
... | [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com |
e24ca4b1413b23a29c175edafb7ddcf6f38c2cca | 1d6fb1f7d5f3d20a084de5d95258ebec57e35687 | /management_system/information/views.py | c3d8864f5a6ca5135158acfa2f03681c215d982d | [] | no_license | qikuyuechengzhi/python1903_ycz | b7e6a9c37c37205881e90eeaa5bedaf53d467ca9 | 829dc429feff39d592c7c191980741f087bb50ef | refs/heads/master | 2020-05-30T20:59:19.112157 | 2019-06-24T06:49:35 | 2019-06-24T06:49:35 | 189,962,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from django.shortcuts import render
from django.views.generic import View,ListView,DetailView
from .models import *
# Create your views here.
class MainView(View):
def get(self,req):
return render(req,'main.html')
class IndexView(View):
def get(self,req):
return render(req,'index.html')
class... | [
"526939418@qq.com"
] | 526939418@qq.com |
36cbb4ac6703730420712c9aab733b695a081355 | 183144c8bcf5bc4f58a0689888760f9e8a48e083 | /Metode Selang Tiga Titik.py | ca8246217756195ab863343127fc4623b764abde | [] | no_license | calvinjesse/optimization-theory | 4fc3e057fe0e32866395b0b985c37b27fcc5d725 | cb13d3cb9719eaae68adec4492d6d7c02154024c | refs/heads/main | 2023-05-29T13:32:42.727957 | 2021-05-27T16:37:03 | 2021-05-27T16:37:03 | 367,455,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | from numpy import linspace
from pandas import DataFrame
import matplotlib.pyplot as plt
import numpy as np
def f(x):
return ((np.sin(2*x))**3 + np.cos(x) )
k=0
a=[-4]
b=[3]
L=b[0]-a[0]
alpha=[]
beta=[]
gamma=[]
falpha=[]
fbeta=[]
fgamma=[]
while L>10**(-7):
s=linspace(a[k],b[k],5)
... | [
"noreply@github.com"
] | noreply@github.com |
f35d78fabf39bfcfa3dd1daf222cc066fc18916b | 8c705b82e35f992c3d54d939f8ab4207473c56a4 | /07_Dynamic Programming/02_triangle/triangle_00.py | cd8526c8a0670d644fa89f32b17167b149a62c41 | [
"MIT"
] | permissive | ki-yungkim/AlgorithmStudy | 5a2bb7ec534906a2d7daf5fd8d8966a1e279f75e | 14798d37166c8803d3bf3021e79df920a15eae10 | refs/heads/main | 2023-08-25T03:09:52.449344 | 2021-10-20T11:52:02 | 2021-10-20T11:52:02 | 375,719,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | def solution(triangle):
N = len(triangle)
answer = 0
for i in range(1, N):
for j in range(i+1):
if j == 0:
triangle[i][j] += triangle[i-1][j]
elif j == i:
triangle[i][j] += triangle[i-1][j-1]
else:
triangle[i]... | [
"kiyungdev@gmail.com"
] | kiyungdev@gmail.com |
0e704a2a55c9e5385fe8629bf8951a4746839574 | 0129b016055daa1aaa1e9e0911f271fa7b38e27e | /programacao_estruturada/20192_166/volume_circunferencia.py | 7eeb20de3039fe9af93f2fd698bac1b55a04a7d5 | [] | no_license | rogeriosilva-ifpi/teaching-tds-course | 7c43ff17d6677aef7b42071929b3de8361748870 | 771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c | refs/heads/master | 2022-04-04T01:08:45.157185 | 2020-01-30T19:36:57 | 2020-01-30T19:36:57 | 206,439,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | # entrada
raio = int(input('Raio: '))
# processamento
pi = 3.14
volume = (4 * pi * raio) / 3
# saida
print('Volume:', volume) | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
99c44cee85ae9d855c4b1b1f726c890fa1b3a186 | b71793aab0b2582eea7da39c1f41b43aef7ac426 | /workspace-python/exercicios_extras/desconto.py | a348dc958dd42198eee3aa30c1ffa7ff2f603c6b | [] | no_license | pachecoDEV/dev-workspaces | c15f738af823cc170ae427a8edd02814c3c11d53 | 482bb03460cf1cee96af635474262a743300a266 | refs/heads/master | 2022-12-22T02:51:17.215893 | 2020-09-25T23:15:54 | 2020-09-25T23:15:54 | 286,874,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | preco = float(input("Digite o preço do produto: "))
desconto = float(input("Digite o percentual do desconto: "))
acrescimo = float(input("Digite o percentual do acréscimo: "))
print("O preço original do produto é: R$", preco)
desconto = desconto / 100
vl_desconto = preco * desconto
preco_final = preco - vl_desconto
... | [
"APCOUTO@APCOUTO-T480.br.oracle.com"
] | APCOUTO@APCOUTO-T480.br.oracle.com |
607fd571d226bdf752eea38f0dfad5dd6bca9c59 | d429063e86eb136afe2608304eece742996d6d35 | /main.py | 9b0ec86196df716ff5e1e46a39e98999643ce7dd | [] | no_license | RISHI-RAJJJ/GCPuploadtobucket | b2b31563a7ac62cd88a9b5a4e21910ef9dcb43f2 | 20c5e18a52130dceb9109e5fe8e1c6b198b47821 | refs/heads/master | 2020-04-19T07:01:37.077856 | 2019-01-28T21:07:36 | 2019-01-28T21:07:36 | 168,035,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from flask import Flask
from google.cloud import storage
import os
import logging
app = Flask(__name__)
@app.route('/')
def hello():
storage_client = storage.Client.from_service_account_json('C:\Users\RISHI\Videos\Mulesoft\GCP material\My Project 69244-55dbb853fec6.json')
buckets = list(storage_client.lis... | [
"rishiraj8086@gmail.com"
] | rishiraj8086@gmail.com |
157d1915be5de8fd962c5458f9608cfa50c53211 | 35b58dedc97622b1973456d907ede6ab86c0d966 | /Test/2020年6月20日/selenium爬取动态加载数据.py | 75b922d51f77c8fd0aec94d57a25352626e16274 | [] | no_license | GithubLucasSong/PythonProject | 7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635 | e3602b4cb8af9391c6dbeaebb845829ffb7ab15f | refs/heads/master | 2022-11-23T05:32:44.622532 | 2020-07-24T08:27:12 | 2020-07-24T08:27:12 | 282,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from selenium import webdriver
from lxml import etree
from time import sleep
bro = webdriver.Chrome(executable_path='chromedriver')
# bro = webdriver.Edge(executable_path='./msedgedriver')
bro.get('http://125.35.6.84:81/xk/')
sleep(1)
# 获取页面源码内容
page_text = bro.page_source
all_page_text = [page_text]
for i in rang... | [
"1433880147@qq.com"
] | 1433880147@qq.com |
33bf3c212be42ffb70c92552816e6a6aaa4d7c85 | 71bfd5b4309dd14a7b2bdc5c1e4d5fcb60e40d2d | /KNN.py | 46b0bf69f2654b7aa265eedb7cb18f495a8ef094 | [] | no_license | OrangeWong/predicting_mortality | 3bbd95a014b7e0c8e86365c6ca4c9e5a0bd80539 | af95eab32d6591c0f27115f2b66062c20e27e435 | refs/heads/master | 2021-09-01T07:55:19.065847 | 2017-12-25T21:23:23 | 2017-12-25T21:23:23 | 103,076,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,183 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 15 14:24:00 2017
@author: richa
"""
import numpy as np
from scipy.spatial import distance
from collections import Counter
class KNNClassifier(object):
"""K-nearest neighbor classifier.
"""
def __init__(self, n_neighbors=3, metric=distance.euclidean):
... | [
"richard.wkh@gmail.com"
] | richard.wkh@gmail.com |
cb143cffd3db85c7d8a3c0ab9ab7c9fe0d4f751f | 8f429b61e1b7cc34739da192c87e084c57edf0ba | /gradebook.py | 0c769995c1bfc99d0aa118503996276e643ef121 | [] | no_license | alvyn96/GradeBook | c368246d8b655c5631c159b2208377fff455bd2d | 9adaad9ec65f48e07e8d328174fa4889fa2c1b81 | refs/heads/master | 2020-03-21T13:39:20.063353 | 2018-06-25T16:04:43 | 2018-06-25T16:04:43 | 138,618,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,471 | py | #!/usr/bin/python3
#author:@al_vyn
#written: 25/06/2018
import csv
#Create dictionaries
lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name": "Alice",
"homework": [100.0, 92.0, 98.0, 100.0],
... | [
"noreply@github.com"
] | noreply@github.com |
0134f050e7db3b58bc21acea96931a03d5ce5775 | a26ae51a1d84249c31c58b90231b7ec23e1aa74d | /flask_app.py | e75e4e1d9083d00221068309ed9821d50809fb02 | [] | no_license | Yaomingqing/Image-Super-Resolution | b5e975f08d9cec0d1ba71ec3489e388c6ef69a2a | 631b2af81d012ff58c9d7a91f37e3e1d31377222 | refs/heads/master | 2021-08-10T13:05:44.662484 | 2017-11-12T15:58:48 | 2017-11-12T15:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | from keras.models import load_model
from flask import Flask, request, render_template, flash, redirect, url_for
from werkzeug.utils import secure_filename
import models
import os
import tensorflow as tf
upload_folder = 'data/'
if not os.path.exists(upload_folder):
os.makedirs(upload_folder)
ALLOWED_EXTENSIONS = {... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
16b1e9f6255a7aeecb09b2d252d4964a10954a12 | dd2e8fe5846d3241e0200c1db0df1fe0869ab8a0 | /locksmith/hub/migrations/0008_auto__add_field_api_tools_text.py | 20f8a720a3df312a62e2b94145fb6a4a2abd6802 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sunlightlabs/django-locksmith | 350a68a3a6559d8a40e4fecfdbe2fdabc8543bb5 | eef5b7c25404560aaad50b6e622594f89239b74b | refs/heads/master | 2021-01-19T01:29:06.502206 | 2016-06-09T20:34:48 | 2016-06-09T20:34:48 | 484,442 | 8 | 4 | null | 2015-07-14T05:59:23 | 2010-01-22T22:16:42 | Python | UTF-8 | Python | false | false | 8,881 | py | # -*- coding: utf-8 -*-
import 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 'Api.tools_text'
db.add_column('locksmith_hub_api', 'tools_text',
self.... | [
"dvogel@sunlightfoundation.com"
] | dvogel@sunlightfoundation.com |
9ad77a3831c4a0d0b80e07824a559811f0f4e269 | 5a13f74026f59510f1c33de022c0ef3de94fe321 | /src/instabot.py | b896198ce6d914c8963f25be7de7c4854f27d1fa | [
"MIT"
] | permissive | barneyElDinosaurio/instabotonwaytest | 3617a049747bc33c6a3904365f9af46fe3c6a408 | b5569b547489b94158bb7114c7e0a3af559e01e9 | refs/heads/master | 2020-04-02T07:24:03.884078 | 2018-10-22T18:25:22 | 2018-10-22T18:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,302 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from .unfollow_protocol import unfollow_protocol
from .userinfo import UserInfo
import atexit
import datetime
import itertools
import json
import logging
import random
import signal
import sys
import sqlite3
import time
import requests... | [
"marioalzatelopez@gmail.com"
] | marioalzatelopez@gmail.com |
6031044fe9c0ca47166a2ee89c2183e6ded1bf43 | 4e6533cbdd5e90402218140d8ec9f527d500f4ca | /page.py | 4e11a44b9231443c0ca45b4fa97ba2ee80355f73 | [] | no_license | hliu26/Wikipedia_Philosophy | 56ec6339fd49ad5b5cca9196db3515b0a9ac033e | 0dde1fdd9a0c7b21413ebec9c6069d4a3a105c90 | refs/heads/master | 2022-11-20T00:29:10.731518 | 2020-07-25T00:22:45 | 2020-07-25T00:22:45 | 279,162,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | from bs4 import BeautifulSoup
from urllib.request import urlopen
import urllib.request
import urllib
from PIL import Image
from io import BytesIO
class Page:
wiki = 'https://en.wikipedia.org'
end = "https://en.wikipedia.org/wiki/Philosophy"
branches = 0
def __init__(self, url):
... | [
"howardliu26@gmail.com"
] | howardliu26@gmail.com |
c495cb44e7e90173d89e9dc6d7629db953e97243 | c62b0dfae6820b7a99c3592d3cc75c94c22f5ee6 | /ipwhois/nir.py | 741b4e9bc3050d255e7b8d0ab09f5a52744088eb | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ghelmer/ipwhois | 5443e9b829f8fbdcc1a979a2e231b49bf4a15a24 | d2bff4132d405db544a9812677f620f2fa04cd41 | refs/heads/master | 2020-03-29T04:04:42.475279 | 2018-09-20T12:54:50 | 2018-09-20T12:54:50 | 149,514,805 | 0 | 0 | BSD-2-Clause | 2018-09-19T21:35:15 | 2018-09-19T21:35:15 | null | UTF-8 | Python | false | false | 23,137 | py | # Copyright (c) 2013-2017 Philip Hane
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and... | [
"secynic@gmail.com"
] | secynic@gmail.com |
9fcd3987ca9746115417bee085a86a8f34446247 | b2308018c50240615d88e0b3ae0e13c264c05430 | /lofasm/galaxymodel.py | 4295a3209cbe64a87e8072a6545b7c4d67936a1f | [] | no_license | pauvarela3/LoFASM | 0268d7ac811b47026a3d13b221f54e48531d836a | 852173ffd1d9f1e46a75e61a36d829d792dd1c19 | refs/heads/master | 2020-03-10T14:13:23.167180 | 2019-04-01T18:51:04 | 2019-04-01T18:51:04 | 129,420,949 | 0 | 0 | null | 2018-04-13T15:28:29 | 2018-04-13T15:28:28 | null | UTF-8 | Python | false | false | 1,582 | py | import lofasm.calibrate.lofasmcal as lfc
import numpy as np
from datetime import datetime
from datetime import timedelta
from astropy.time import Time
from lofasm import parse_data as pdat
galaxyobj = lfc.galaxy()
lst_times = np.linspace(0,24,300)
lst_time = lst_times.tolist()
# galaxymodel = galaxyobj.galaxy_po... | [
"noreply@github.com"
] | noreply@github.com |
5b1f9fa94e913fb8469bb608f7aff55cd882ab1f | c227735e87fe9da845e81c994f5a0c4cc410abf9 | /Python/ReverseString.py | 378dd1708951b66f59c8040961793d275e8f5106 | [
"MIT"
] | permissive | ani03sha/potd | 816d5a25c9658eb38dda46352d7518d999a807f2 | 05ca25039c5462b68dae9d83e856dd4c66e7ab63 | refs/heads/main | 2023-02-02T18:14:43.273677 | 2020-12-18T15:31:06 | 2020-12-18T15:31:06 | 315,034,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | """
Given a string, reverse all of its characters and return the resulting string.
"""
from typing import List
class ReverseString:
def reverseString(self, s: List[str]) -> List:
# Reversed string
reversedString = ""
# Loop for all characters in the string
for i in s:
r... | [
"anirudh03sharma@gmail.com"
] | anirudh03sharma@gmail.com |
12654f11056f73cda0eb1e3ff7d062af58f8d11c | 90fb55320c81259cb199b9a8900e11b2ba63da4f | /232/gold.py | 2b2c82b71ecab0bffd80f1f0592f28ec519fc32d | [] | no_license | pogross/bitesofpy | f9bd8ada790d56952026a938b1a34c20562fdd38 | 801f878f997544382e0d8650fa6b6b1b09fa5b81 | refs/heads/master | 2020-05-19T07:31:44.556896 | 2020-01-26T12:48:28 | 2020-01-26T12:48:28 | 184,899,394 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | from itertools import tee
from dataclasses import dataclass
# https://pkgstore.datahub.io/core/gold-prices/annual_csv/data/343f626dd4f7bae813cfaac23fccd1bc/annual_csv.csv
gold_prices = """
1950-12,34.720 1951-12,34.660 1952-12,34.790 1953-12,34.850 1954-12,35.040
1955-12,34.970 1956-12,34.900 1957-12,34.990 1958-12,35... | [
"p.gross@tu-bs.de"
] | p.gross@tu-bs.de |
0897c73c5459f223e50ba84b5052ba11d22ae3ee | cb280ddcc6dafa8fa62c588c7e4694909c4c2504 | /helper.py | aeb12ac892070ae9e20e826d9cbe809235396cbc | [] | no_license | chayapatr/discord | 78b383080f0eff7f4509571458a72057066c3dfa | e6ccec50b7650407f7e77a372c0f0afc1db13ea0 | refs/heads/master | 2023-05-20T14:10:38.888898 | 2021-06-11T16:09:40 | 2021-06-11T16:09:40 | 374,484,413 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # IDEA
import requests
import json
def fetch(text):
res = requests.get(text)
response = json.loads(res.text)
return response
def printList(listname,l):
print(listname)
for x in l:
print(x)
print('-------------------') | [
"31594543+chayapatr@users.noreply.github.com"
] | 31594543+chayapatr@users.noreply.github.com |
da7353d15c0e1c60c60a975cc03adfdad7af1680 | 4b5090212ba723f319baff170454795816c77d0d | /todo/todo/settings.py | ccee94efc42fefe80d5dcb73bd42a81f8cfb7918 | [] | no_license | hacker1db/django_projects | 285fd496010ba6eca09d81006f1461c6230f29be | af088f683c019b604887baef780b9857d18be50f | refs/heads/master | 2021-01-02T08:13:22.062407 | 2019-02-10T03:09:16 | 2019-02-10T03:09:16 | 98,952,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"hacker1db@outlook.com"
] | hacker1db@outlook.com |
f374671883af08c4b50ac4f41ea90214c848b1a7 | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/data/data_20191018141356.py | 20f7b6d5858a6e20347e611529877edb27123cb8 | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | import pandas as pd
from typing import Union
from pathlib import Path
from nameparser import HumanName
class ExtractData:
title_translator = {
"Mlle.": "Mrs.",
"Mme.": "Mrs.",
"Sir.": "Mr.",
"Ms.": "Mrs.",
"": "Mr.",
"Col.": "Mr.",
"Capt.": "Mr.",
"... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
c70fb6ef81be3017d8199562e44b8c3d85373747 | f038295d1b052b99a975a17fbdcebbb03c231ba7 | /Mangoplate_Crawler/ConnectDB.py | f6ba64d320f91c749dd6b0f245010c8c57c8bc77 | [] | no_license | SNUEV/Selenium_Crawler | 8f1ebb97d6917de3dbb8fbff958a3ad5263c143d | c8336fcdde716eb1ec14491ddb4e9118f0be0413 | refs/heads/master | 2020-12-27T10:44:32.544224 | 2020-02-02T08:23:24 | 2020-02-02T08:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | # Database Setting
import psycopg2
from datetime import datetime
class ConnectDB:
hostname = 'localhost'
username = 'sangchulkim'
password = ''
database = 'restaurant_api_development'
myConnection = psycopg2.connect(
host = hostname,
database = database,
user = username,
... | [
"tsb03672@naver.com"
] | tsb03672@naver.com |
a4a0b29f837124a381829b42b53afcfabe37fc0c | 5301f6a0c1a84690fe43e8a7506e5a75b93f68e5 | /sec2_prediction/_4_line_reg_visual.py | c8885341920f4e41b264a9657127c4ddd06ab4fe | [] | no_license | gungoren/ml_lecture_notes | 7b08c81fa113680649ddb02b2aedffc6422bfbac | 24944fb8e5ccbbb741df9cf4512fea1a0a203c98 | refs/heads/master | 2020-06-28T21:51:13.668536 | 2020-02-12T16:01:01 | 2020-02-12T16:01:01 | 200,351,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py |
# 1. libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import LabelEncoder, OneHotEncoder, StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
# 2. prepr... | [
"mehgungoren@gmail.com"
] | mehgungoren@gmail.com |
31b673e81032380bdca2332df8006befb0d71612 | 87098732a1339e4de1033774d27f44b24012ddee | /serious 2.py | 344e757a4a67f2f36cf8793827a22e8920ab45dc | [] | no_license | ducanh2209/btvn | 3902d1172d536b915c1bc85e8860dab15d7a31f3 | 5eae6be2b4860edbfc1f492406f8626e4be89716 | refs/heads/master | 2021-01-19T18:58:59.971044 | 2017-08-24T12:45:45 | 2017-08-24T12:45:45 | 101,175,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | print ("Hế lô", end ='')
print (", tên tôi là", end ='')
print ("Đức Anh", end= '') | [
"noreply@github.com"
] | noreply@github.com |
e572f70627bcd860e641a3765013c1fcd1e9cb1f | 2acf6e307cf923be308c069fbc2a58d5f9de9300 | /controle_estagios/urls.py | 84b5c96121879b5d8a8a9e55d0f3689dc5f88394 | [] | no_license | jefethibes/Estagios | a6766cc1ee265345ed46429f9730fa3f24894e01 | 4a75fd98d5ee5de633a6618b4d1f596d20386015 | refs/heads/main | 2023-03-18T08:41:00.031769 | 2021-03-14T15:38:24 | 2021-03-14T15:38:24 | 335,810,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | from django.urls import path
from controle_estagios.views import cursos, estagios, empresas, alunos, index
app_name = 'controle_estagios'
urlpatterns = [
path('form_cursos/', cursos.AddCursos.as_view(), name='form_cursos'),
path('list_cursos/', cursos.ListCursos.as_view(), name='list_cursos'),
path('upda... | [
"jefepatytony@gmail.com"
] | jefepatytony@gmail.com |
3b116be5ec9c964a89dad5698c76061c51a48a4d | 097e7e762ff6b0f7e25d31709eb73a311f56995b | /divide.py | 3cd3163de78149fd4b40783a9023a87a8193e870 | [] | no_license | hsywhu/facial_landmark_regression | fc72d6b52b1a407046f7fa96ef3cad97ff0cb3df | 84ce1f9c5630b9e5cf1d5a9e2befcb4d09f3fbb8 | refs/heads/master | 2020-04-10T14:57:44.810244 | 2018-12-09T23:56:23 | 2018-12-09T23:56:23 | 161,092,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | import os
import shutil
import pandas as pd
import random
root_dir = "E:\\face_cropped_collect"
train_dir = "E:\\face_cropped_divide\\train"
val_dir = "E:\\face_cropped_divide\\val"
train_landmarks = []
val_landmarks = []
landmarks_frame = pd.read_csv("E:\\face_cropped\\train_cropped.csv", header = None)... | [
"songyih@d207-023-196-142.wireless.sfu.ca"
] | songyih@d207-023-196-142.wireless.sfu.ca |
50379785fe0217192317c3e473e84b92458a2be4 | 1cfa61598d9ab150c643489280970b5b71a5a3c8 | /HighScoreReader.py | 272a6302b1a8a8b730b5683131461da2fc4cc270 | [] | no_license | cspoonerKRHS/exorcist-rpg | 547e92151c45bee94fc825c431ff5e01a40ba72c | bd4ed7244ab3ac953d1bab455f11b3a0144a51cf | refs/heads/master | 2016-09-11T11:50:42.097800 | 2013-04-12T13:28:35 | 2013-04-12T13:28:35 | 42,615,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,422 | py | import pygame, sys, math, time
class HighScoreReader():
def __init__(self, txt, other, score):
self.canSend = False
self.canRun = False
def reload(self, txt, other, score):
if self.canRun == True:
self.canRun = False
f = open(txt, 'r')
sel... | [
"Zander.Blasingame@kearsarge.org"
] | Zander.Blasingame@kearsarge.org |
75201fde37f7cebb6c0b276f4e6f89c588af812a | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Debug/lib/python2.7/site-packages/twisted/cred/portal.py | 23e48739cfb924a7a71886e884eb010098d27305 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 5,460 | py | # -*- test-case-name: twisted.test.test_newcred -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
The point of integration of application and authentication.
"""
from twisted.internet import defer
from twisted.internet.defer import maybeDeferred
from twisted.python import f... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
a9f7d32b744939624f05501583a7d40c11ef98aa | 9db5e22b171a163d39c35bc2782826d545b635e6 | /RNN_model.py | 84a50ee13bf82be2b78ef408c65d59708b3ece71 | [] | no_license | tanmayaggarwal/TV-Script | 4628c28cb0d576bd33b1589f521e557eada6d031 | 7409411ea71127d8c9c9443181faf613cb654ade | refs/heads/master | 2020-09-07T21:30:00.744380 | 2019-11-11T07:29:06 | 2019-11-11T07:29:06 | 220,917,674 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | # File: define the model
import numpy as np
import torch
import problem_unittests as tests
import helper
import torch.nn as nn
class RNN(nn.Module):
def __init__(self, vocab_size, output_size, embedding_dim, hidden_dim, n_layers, dropout=0.5):
# initialize the PyTorch RNN module
# param vocab_size... | [
"tanmay.agg@gmail.com"
] | tanmay.agg@gmail.com |
2360f4f554de608bb05e9424255fb741b981cb7e | 8c380afd2bd530a1dd209aec3122db72a576c258 | /cap3/gauss_seidel/main.py | 6439f3fcff0eb69fc59477fb68ac730f082d1586 | [] | no_license | phenrique/metodos_numericos | 4af9e80386290af29caa699802d767e07afd3b02 | 3b9e1b3a76134d949f0259a6af2b736d96cd657d | refs/heads/main | 2023-03-12T17:08:28.540889 | 2021-03-06T12:11:26 | 2021-03-06T12:11:26 | 317,352,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | import numpy as np
from scipy import linalg
def calc_erro(x0, x1):
return abs(x1-x0)
def atende_criterio(ek, e):
if ek <= e:
return True
else:
return False
#a = np.array([[3, -.1, -.2],
# [.1, 7, -.3],
# [.3, -.2, 10]])
#
#b = np.array([7.85, -19.3, 71.4])
a = ... | [
"ph.cardoso10@gmail.com"
] | ph.cardoso10@gmail.com |
28b13bd61e0f41c98cca46010f217204703531c0 | fbeee8c3c70b4c6e6f4446b6bd9d05a285c61ee7 | /Starter_Files/hw06/correctness_tests/q3_3.py | 2fdc640bafdf33949d1231db474e8a275c7c9009 | [] | no_license | ucsd-ets/dsc10-wi18 | 5e06053afc3e362a2e8421e4dd70d0072beb4d9f | 52704520ab01dd3efea7179e8bd23dfa3a23a189 | refs/heads/master | 2021-09-10T21:44:55.184661 | 2018-04-02T20:16:15 | 2018-04-02T20:16:15 | 104,229,542 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | test = {
'name': 'Question 3_3',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> isinstance(missing, np.ndarray)
True
>>> missing_ref = make_array(14, 33, 35, 57, 60, 76, 80, 81, 85, 96, 102, 103, 130, 143, 178, 181, 186, 210, 215, 227, 247, 258, ... | [
"patrickghhayes@gmail.com"
] | patrickghhayes@gmail.com |
1460a9bdda6e64146651a0f82717dfe96d11b0d1 | ac75b787a84d15e15a3339cc1e72280015f9829f | /projects/finalProject_v0.5/population.py | f6a375af2f199ef31e21b4d8b60b07f683ec66c9 | [] | no_license | mmarder96/pyrosim | e5cb1ec2c7eb07c5a4c841d4e46cece5cff3ed1e | c9879462d58806f5473e55762290a31825bbe6ce | refs/heads/master | 2020-03-31T14:58:11.405260 | 2018-06-24T22:22:06 | 2018-06-24T22:22:06 | 152,317,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | ### created by Max Marder
###########
# IMPORTS #
###########
from individual import INDIVIDUAL
import constants as c
import copy
import random
####################
# POPULATION CLASS #
####################
class POPULATION:
#---CONSTRUCTOR---#
def __init__ (self, popSize):
self.popSize = popSize
self.p ... | [
"demenon290@gmail.com"
] | demenon290@gmail.com |
4d3e94dd6b1a0834e2e0628c96d63c32eb3069c9 | f3ae4a3a105ef7f110a1ba0aec9d2d93f2f9348a | /sr.py | 9f1c038b47d0e1515797fe9793b45760b1f23cb4 | [] | no_license | shydesky/sr | 00c21e6d76fff74b95806fc289654d0aca696693 | 76112420cd0091868481ef073c39541e221b2934 | refs/heads/master | 2020-08-03T20:22:35.030010 | 2019-10-12T06:48:03 | 2019-10-12T06:48:03 | 211,875,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,855 | py | import requests
import datetime
sr_dict = {"4178c842ee63b253f8f0d2955bbc582c661a078c9d":"TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH","41037e18c9ca44b2ba35f0bb7d0c075f252a191294":"TAHg5zi2ejWeWiE6bqtDT9vfbH3zNTWrfA", "411103d62d8299e90fa011b4ce7fc6ba151e5f1a23":"TBXB5tobBPCFkC8ihFDBWjaiwW2iSpzSfr", "4118e2e1c6cdf4b74b7c1eb8468... | [
"shydesky@gmail.com"
] | shydesky@gmail.com |
c0d053a1f6337e71ea73c563de659ed32a47a8a4 | b33dbea89b476a19dc8d8fa5208396cc2ac7f165 | /pylibftdi/_base.py | 56f54305626e46073f6e034a4d68e4e1b13546a5 | [
"MIT"
] | permissive | we711111/pylibftdi | adf7377e5880a8f63e097f91254d2321b6f4c03d | 9e33cbccd388785bb392d51efd52d3247b36fc18 | refs/heads/master | 2022-08-01T02:00:08.689626 | 2020-05-26T05:49:28 | 2020-05-26T05:49:28 | 266,955,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
pylibftdi - python wrapper for libftdi
Copyright (c) 2010-2014 Ben Bass <benbass@codedstructure.net>
See LICENSE file for details and (absence of) warranty
pylibftdi: http://bitbucket.org/codedstructure/pylibftdi
"""
# This module contains things needed by at least one other
# module so as to prevent circular i... | [
"noreply@github.com"
] | noreply@github.com |
5ecb3398364215e8795aea80ec35dc9d88142820 | 2a5771551f3cf9658a25638783e70bbf6c7b375e | /code/option/template.py | bf04a8cc8aee75a7a93bd80d3b46719e5f082a46 | [] | no_license | vivid-chen/Video_SR | 30ff4c8496ce59a0bb933f24ebebde0c87edfc24 | 5ab3f27e54edad4e464cdae7966e4aaed3800ed8 | refs/heads/main | 2023-03-01T21:55:26.485300 | 2021-02-04T09:19:01 | 2021-02-04T09:19:01 | 331,247,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | def set_template(args):
if args.template == 'DBVSR':
args.model = "DBVSR"
args.save = "dbvsr_test"
args.data_train = 'VideoSR'
args.dir_data = '/media/omnisky/8TDisk/CZY/REDS/train'
args.data_test = 'VideoSR'
args.testset = "REDS4"
args.dir_data_test = '/media... | [
"1031268032@qq.com"
] | 1031268032@qq.com |
bea1c86845c4f2b3382023753aa260859f146cf5 | b69471dee8864e4e2cd57094a195df980858aa2a | /djangonautic/settings.py | aa6a7901179028cd9afeddc9631b16f0f738aa46 | [] | no_license | ArmandoBolanios/Blog_Django | 4c02605f0fdc6221e2f87ce2c406f336661e86fa | e09196706d47f748f0651d86618aad21bf3e3349 | refs/heads/master | 2020-07-15T16:55:32.737754 | 2019-09-01T00:46:49 | 2019-09-01T00:46:49 | 205,611,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | """
Django settings for djangonautic project.
Generated by 'django-admin startproject' using Django 2.0.10.
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... | [
"45885565+ArmandoBolanios@users.noreply.github.com"
] | 45885565+ArmandoBolanios@users.noreply.github.com |
84c79a1359a9fc75719b15f0fff95d517dcb8d5f | ec2b1c82500c4054cd0aa4f486416a62b077a8b4 | /mystuff/ex38.py | f9bf1db8fdc8e8a9b7d1fe7a7291d56ac5db7fca | [] | no_license | vassmate/Learn_Python_THW | 81bcd2dd309181c06bbfbf74573791bc05899288 | c976dc21045e10bf63147f92070f8468e4c3c337 | refs/heads/master | 2021-01-10T02:08:37.725829 | 2016-02-01T11:25:43 | 2016-02-01T11:25:43 | 46,182,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | ten_things = "Apples Oranges Crows Telephone Light Sugar"
print "Wait, there are not 10 things in that list let's fix that."
stuff = ten_things.split(' ')
more_stuff = ["Day", "Night", "Song", "Frisbee", "Corn", "Banana", "Girl", "Boy"]
for next_one in range(len(stuff), 10):
next_one = more_stuff.pop()
print "Addi... | [
"vassmate08@gmail.com"
] | vassmate08@gmail.com |
8ff640784c681e408c071c2e02eb51603e37c398 | 4796f60be673a6f6550fa269580710235b472019 | /cif.py | c25211fd7db8fbdede80e5ee615cbf783f2ec513 | [] | no_license | LonelyHobby/Python | c37b1d1c599085bba9633a1a2416f63cd047bdc8 | fe9e120a31a6ad045f46a995b8219eabec89c96e | refs/heads/master | 2020-04-05T06:28:19.625797 | 2018-11-08T02:51:22 | 2018-11-08T02:51:22 | 156,639,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,103 | py |
# -*- coding:utf-8 -*-
'''
DFA有限自动机Python实现
作者:王灿
2015-9-27于中国矿业大学
'''
class DFA:
file_object = ''#文件句柄
line_number = 0 #记录行号
state = 0 #状态
ResWord = ['int','if','then','else','end','repeat','until','read','write']#保留字
error_message = []#保存错误信息,存储元组,元组第一个参数是行号,第二个参... | [
"noreply@github.com"
] | noreply@github.com |
86596841d06dceba2da2b8680af57662e8c6258e | a051b5946a037edc08a4e2ebe0b3c8db1ba48e6f | /interview/find_most_populated_year.py | 0587b65df0ec0c237eb601a0cc90415f357c6ac3 | [
"Apache-2.0"
] | permissive | denis-trofimov/learn-python-10 | 8fef96df9e4b19a9651151f56e65b6d6320c0280 | 4296f869a008415826fa224fbd005f6f4be9f81e | refs/heads/master | 2020-03-28T12:18:23.862567 | 2020-02-24T20:34:57 | 2020-02-24T20:34:57 | 148,286,400 | 0 | 0 | Apache-2.0 | 2020-03-24T16:19:21 | 2018-09-11T08:35:58 | Python | UTF-8 | Python | false | false | 644 | py |
class Human(object):
def __init__(self, birth, death, name):
self.birth = birth
self.death = death
self.name = name
def max_population(humans: list) -> int:
""" {year: qty}"""
pop = {}
maximum = 0;
best_year = -1
"""O(humans*longevity)"""
for human in humans:
for year in range(h... | [
"silaradost@yandex.ru"
] | silaradost@yandex.ru |
54683d9cb619367b78e6684b511981c528f4503c | cb8a942add71b005f4cc9ac4e86aab9943406d65 | /testproject/secret.py | 7d852d0f9b096cb18f6790e5051c1d26209bef63 | [] | no_license | kervinson/testproject | 704c37aaa9094693da244bb7e7ad64aeca791747 | 8aed18100b95c2d70b7b31dd7f4befa695ab337f | refs/heads/master | 2021-01-22T23:43:54.207228 | 2017-09-26T12:24:11 | 2017-09-26T12:24:11 | 101,470,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | EMAIL_USE_SSL = True
EMAIL_HOST = 'smtp.qq.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = '2388992177@qq.com'
EMAIL_HOST_PASSWORD = 'wfnuutkfytldebhi'
DEFAULT_FROM_EMAIL = '2388992177@qq.com' | [
"2388992177@qq.com"
] | 2388992177@qq.com |
4857427bb3aad0535001583b9b0ac47f2b7011a6 | 8a34a23be2c0d4d2cb1f160d31ae22aa66ed26f6 | /main/migrations/0014_auto_20150917_1110.py | 1fb5acec46d67aba4c8e6d5ed5938c7105df3c48 | [] | no_license | arwaal/final-project | aabd6d97940a32bfe5f5abc3735fda8dd49d1148 | 77cf7d9273992e9c3aeb53a1a828d5c2290911a5 | refs/heads/master | 2021-01-10T13:58:01.542321 | 2015-11-14T08:30:07 | 2015-11-14T08:30:07 | 46,166,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0013_auto_20150917_0926'),
]
operations = [
migrations.RenameField(
model_name='businesssubmission',
... | [
"arwa@Arwas-MacBook-Pro.local"
] | arwa@Arwas-MacBook-Pro.local |
307f587d31cc07e174370678eb26c5487377e342 | 157cf9d7327499d86162eb0170684f4b02a9804a | /scrapylib/proxy.py | 8f19e099c4210fe2780818d83ace596d2a39f9ed | [] | no_license | alepharchives/scrapylib | 8f59f6f1abe075adb49fbd28a6f575851cab3099 | 9d84cca95952a19d85c3229df7105502649d99e0 | refs/heads/master | 2021-01-24T01:58:45.568968 | 2012-11-07T20:13:38 | 2012-11-07T20:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import base64
from urllib import unquote
from urllib2 import _parse_proxy
from urlparse import urlunparse
from scrapy.conf import settings
class SelectiveProxyMiddleware(object):
"""A middleware to enable http proxy to selected spiders only.
Settings:
HTTP_PROXY -- proxy uri. e.g.: http://user:pass@... | [
"pablo@pablohoffman.com"
] | pablo@pablohoffman.com |
cb89719b54fb42a04bddb26a4b20891618a9e092 | f8018939014597700fa601bbb3e0fabc0d7eb39b | /Learn Data Analysis with Python_CHA5_PG76.py | 97766fc149048e3f53c95e30d67ba495663618c6 | [] | no_license | photos514/ISM_6419_Raghav_Dasari | 6c8c5149095c1c41a4639572c2f8c8a056b004a4 | 71475c54b35f0427feb5a12c922d39161ed60128 | refs/heads/master | 2021-04-03T16:10:35.942880 | 2020-03-20T03:38:32 | 2020-03-20T03:38:32 | 248,376,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | #!/usr/bin/env python
# coding: utf-8
# In[6]:
import matplotlib.pyplot as plt
import pandas as pd
names = ['Bob','Jessica','Mary','John','Mel']
status = ['Senior','Freshman','Sophomore','Senior','Junior']
grades = [76,95,77,78,99]
GradeList = zip(status,grades)
# In[7]:
df = pd.DataFrame(data = GradeList,column... | [
"noreply@github.com"
] | noreply@github.com |
9050b0975c3054ac27ea2a22854e52f9441d1b2b | 5a16e8cec8cc3900096dd9d6914482f63e81b01f | /conf/settings.py | add336da760b26daeb00f9e74195126b40bd040f | [] | no_license | chenrun666/FR- | 8c3f8181781274e2b895c21c95c9ee731dd3f5ce | 5614c2ca469f2ac9529d83b902ce3411416f13c3 | refs/heads/master | 2020-04-22T19:58:36.785285 | 2019-02-14T02:58:36 | 2019-02-14T02:58:36 | 170,626,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | # 测试环境
TEST = True
CHOOSESITE = False
# 回填结果
result = {
"accountPassword":"",
"accountType":"",
"accountUsername":"",
"cardName": "",
"cardNumber": "",
"checkStatus": True,
"clientType": "",# 跑单的客户端码
"createTaskStatus": True,
"linkEmail": "",
"linkEmailPassword": "",
"linkP... | [
"17610780919@163.com"
] | 17610780919@163.com |
2c9a221ad5dbc16c5d082b77293b4181768db006 | 9dec118d74fcbfbbef40f0393649b6ac2e23bd3e | /api/routers/feed.py | 9e1b6d463578e1106be843e032a29d96263555b0 | [] | no_license | larrykubin/showlists | 6fed8353a17415d9fecb4101096a1e448ca427c5 | c144862b53ee4a7c8d0577ef4418bb271fee7bf7 | refs/heads/master | 2021-05-21T11:18:59.940819 | 2020-04-02T20:25:43 | 2020-04-02T20:25:43 | 63,821,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import boto3
from botocore.exceptions import ClientError
from fastapi import APIRouter, Depends, Form, Request
from .auth import get_current_active_user
from pydantic import BaseModel
from models import Attachment, User, Show, ShowAttachment
from db import db
from .auth import get_current_user
from typing import List
f... | [
"59261823+financehacks@users.noreply.github.com"
] | 59261823+financehacks@users.noreply.github.com |
4d74b892e84c8743de61cae4f7390681d20d20af | 496b6f92d62999ee88a8a1ff6dfe64285ec3fc56 | /ayush_crowdbotics_211/urls.py | 21b8756b708b4532e4e76355dd3f3bcf448d6d08 | [] | no_license | payush/ayush-crowdbotics-211 | cab04122c6c605d1fa6993630cd81dd39a81e1f5 | 72ddd9b7d506faa430215575913fb09834051a63 | refs/heads/master | 2020-03-23T10:19:23.756211 | 2018-07-18T13:16:00 | 2018-07-18T13:16:00 | 141,437,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | """ayush_crowdbotics_211 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='h... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
c78d63f4c02eeb276c37f7dab1d9be5488795ab6 | 4332968c78d838902b02e8e819c70864429c4f40 | /Timer.py | a8812e244bf379d5925e6fc7a555a38d6e1656f7 | [
"MIT"
] | permissive | KRHS-GameProgramming-2016/Spoonghetti-Man-v2 | 878b52dfb7d27bb54e6d09d4f427205dfa209067 | 415c183e06f84e493b4f5774f32bb45aea54c83b | refs/heads/master | 2021-01-18T23:08:07.109527 | 2017-06-12T15:46:30 | 2017-06-12T15:46:30 | 87,090,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | import pygame, sys, math, time
from Score import *
class Timer(Score):
def __init__(self, pos):
Score.__init__(self, pos)
self.startTime = time.clock()
self.image = self.font.render("Time: " + str(self.value), True, (0,0,0))
self.rect = self.image.get_rect(center = self.rect.center)... | [
"EthanJ.Thompson@kearsarge.org"
] | EthanJ.Thompson@kearsarge.org |
5b94d7cb3c951405797f09f7785cf0ac70ee2123 | 07c75f8717683b9c84864c446a460681150fb6a9 | /back_cursor/S-scrapy/zhilianspider2/zhilianspider2/settings.py | 76979aa5a98fe2c2624dddecb681be245fbf0fda | [] | no_license | laomu/py_1709 | 987d9307d9025001bd4386381899eb3778f9ccd6 | 80630e6ac3ed348a2a6445e90754bb6198cfe65a | refs/heads/master | 2021-05-11T09:56:45.382526 | 2018-01-19T07:08:00 | 2018-01-19T07:08:00 | 118,088,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | # -*- coding: utf-8 -*-
# Scrapy settings for zhilianspider2 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/lates... | [
"1007821300@qq.com"
] | 1007821300@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.