blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b05cf28737c13f71606d6764edd0c984a3f32776 | 372211ef59abfec8443d5d69bd443a57640180bb | /src/main_task5.py | e06096f97638978a1e980b185601a093976a08fd | [] | no_license | ivanBobrov/itmoAlgorithmsLab | 097c69336d4a1a4a63fd635baaa7219977a333e3 | daadf12968cc2037e866b837365557d2721fe2cc | refs/heads/master | 2020-08-01T01:31:02.414874 | 2019-12-25T03:35:08 | 2019-12-25T03:35:08 | 210,814,346 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | import queue
import networkx as nx
import matplotlib.pyplot as plt
print("Generating random graph")
graph = nx.gnm_random_graph(100, 2000, 84640)
plt.figure(dpi=300)
plt.box(False)
nx_pos = nx.spring_layout(graph, seed = 184673)
nx.draw(graph, nx_pos, node_size=30, with_labels=False,
edge_color='#00000006', n... | [
"id.bobr@gmail.com"
] | id.bobr@gmail.com |
f2f210f4cfed106ef2a257e05eac5a26cf8d21d1 | a1cefcb39eb538535edfd4d41c4e57c780646dc3 | /components/studio/controller/urls.py | cdc9189db5fa1120c2c230fc0e13255c46ae5b40 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cawik/stackn | 108562d9f12c7fbc1d6c509ab78bade0b04713a7 | 45641c8ed56dfce22f1cd5fc0bafa3b3d9f326d2 | refs/heads/master | 2023-02-17T08:00:19.999488 | 2020-11-02T15:21:18 | 2020-11-02T15:21:18 | 311,961,277 | 0 | 0 | Apache-2.0 | 2020-11-13T09:29:14 | 2020-11-11T12:15:36 | null | UTF-8 | Python | false | false | 345 | py | from django.urls import path
from . import views
app_name = 'controller'
urlpatterns = [
# path('<int:project_id>/notebooks/<int:notebook_id>', views.index, name='notebooks')
# path('<int:project_id>', views.index, name='notebooks')
# path('pause', views.pause, name='pause'),
# path('resume', views.re... | [
"morgan@scaleoutsystems.com"
] | morgan@scaleoutsystems.com |
078898a80e009d9bfb46d60def7e52767e2d9afd | dcc7ab0e239401a6ae11b45cf2ab8ed7500a0a9e | /article/urls.py | 3c6c40569e3a26132a84281a17f0e34d4bca2d74 | [] | no_license | technologysansar/blogger | e35a37d87b2dbed90458bc2a4fc5d44f0142ff13 | ec84505a07971d26d5d557dab25b8abe5c8df5a2 | refs/heads/master | 2023-04-27T09:45:53.024416 | 2021-05-17T11:11:09 | 2021-05-17T11:11:09 | 367,368,189 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from .import views
urlpatterns = [
path("", views.index, name="index"),
path("contact/", views.contact, name="Contact"),
path("subscribe/", views.sub... | [
"devendra mishra"
] | devendra mishra |
221f904130a40fe0b1ec2fb66a8dfd6a62d01cf5 | 973d698403dfaac56e2348aa0a9a73459f4abde6 | /hello/passwordsafe/x.py | 823735c8b8590350e41b66bea08a4fec4e948fc9 | [
"MIT"
] | permissive | JonasAZou/hellodjango | 6631ee53997ee7f522832b61539fc42e92f3be8b | 7965c1373da2b8c56ab33d769c20ee7fd14458bb | refs/heads/master | 2021-03-12T22:33:39.809063 | 2013-09-02T10:18:41 | 2013-09-02T10:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from Crypto.Cipher import DES, AES
from Crypto import Random
key = b'Sixteen byte key'
tp = b'attack at dawnxx'
iv = Random.new().read(AES.block_size)
cipher = AES.new(key, AES.MODE_CBC, iv)
cipher2 = AES.new(key, AES.MODE_CBC, iv)
msg = cipher.encrypt(tp)
print cipher2.decrypt(msg)
| [
"dlutxx@gmail.com"
] | dlutxx@gmail.com |
a1bbc613138962a859a79aef00e324ca92e8e6e5 | 7ee2d709a56b7dd5062e6d60ce59387062e49a33 | /plot_array.py | aad979137c11b02ba391b2defb0b00def19ddccd | [] | no_license | garethgeorge/prima-p2p | 160b3600aa83f86c4e4acd7624be77ffc2574cc6 | 2c63de7e6cb460a5c32c8c5bf127a3458e29a521 | refs/heads/master | 2021-01-09T04:21:39.282048 | 2020-02-21T23:01:31 | 2020-02-21T23:01:31 | 242,244,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import pulse2percept as p2p
import numpy as np
import matplotlib as plt
from prima import Prima
from pulse2percept.viz import plot_implant_on_axon_map
# Array Shape plotting
implant = Prima(x=-50, y=50, rot=np.deg2rad(0))
plt, _ = plot_implant_on_axon_map(
implant, annotate_implant=False, marker_style='hw')
# plt,... | [
"garethgeorge97@gmail.com"
] | garethgeorge97@gmail.com |
7103550a777cf28d04316b074ffc54028892c836 | 5629c6f395d2d475ca091f83171f045408ad65b8 | /hangman_app.py | 1c895b4dd99233061c41aaa7ffefb7857ad03695 | [] | no_license | oluxiwen/pa06_hangman | 8acf48e2bdd601d5fc148e2562535b11ec18ee4f | 1a1de42c154fd961dfa562f05f15b7cbac4a0eb1 | refs/heads/master | 2022-04-14T18:53:58.519727 | 2020-04-13T07:55:39 | 2020-04-13T07:55:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | """
hangman_app.py is an app for playing hangman in the terminal
it is also used as a module in the hangman_webapp flask app
"""
import random
words = "dog cat mouse deer snake".split()
def generate_random_word():
"""
read a list of words from a file and pick a random one to return
Skip read list f... | [
"xiwenlu@Xiwens-MacBook-Pro.local"
] | xiwenlu@Xiwens-MacBook-Pro.local |
0824939ce9c4e02f434c2ed443ca20b887c961dc | bdbb3a8a3d2f4b6c87347046b86dfd6bd1cf12c8 | /pizzas/migrations/0006_comment.py | a8dc7396c71a5ea03a123d2c204b8649595a6127 | [] | no_license | loclincy10/Pizzeria | 92aa6b7a6f4ce6d8902d93ffe62b444fdfabade0 | eeb6a396d7e5a667cdeeb93d5ad2a29427be0a90 | refs/heads/master | 2022-06-27T11:17:05.742593 | 2020-05-06T04:56:21 | 2020-05-06T04:56:21 | 260,974,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 3.0.5 on 2020-05-06 01:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pizzas', '0005_delete_comment'),
]
operations = [
migrations.CreateModel(
name='Comment',
... | [
"Lothario_Clincy1@baylor.edu"
] | Lothario_Clincy1@baylor.edu |
0ff014ea72de43ccb2ca47c4aabd5df946377039 | 7e8ac76f11c6bbe34dac30a570484f8ed8bbf83e | /model_creation/src/CaptchaGetter.py | d8a064a5dc7644ec52ce32664fc9971256be243c | [] | no_license | mahieyin-rahmun/rds_captcha_solver | bf9e247b1acf2f5e41b7b1b94dd80989df6bd2e5 | a408dadb57f92924ce68892078a9a5e272edec2f | refs/heads/master | 2021-06-25T21:42:32.905222 | 2021-01-23T13:39:21 | 2021-01-23T13:39:21 | 188,572,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import urllib.request
import os
class CaptchaGetter:
def __init__(self, num_of_rqsts, img_extension, path):
self.url = 'https://rds3.northsouth.edu/index.php/captcha'
self.iterations = num_of_rqsts
self.dump_path = os.path.join(os.path.abspath(path), 'captcha_images')
self.img_exten... | [
"mahieyin.rahmun@gmail.com"
] | mahieyin.rahmun@gmail.com |
edfa698a2b59a1f3f4933f667ae163d842cb428d | f06ddca5258290a1e7448a18e1d24a9d20226fbd | /pytext/common/constants.py | 3b0c31b01f7bc57811441b3f5a267b920e948602 | [
"BSD-3-Clause"
] | permissive | mruberry/pytext | 6d64bc37429e3dd5581e5b3b6bf60bd216b6f445 | 3bba58a048c87d7c93a41830fa7853896c4b3e66 | refs/heads/master | 2022-07-16T07:41:47.781126 | 2020-05-14T04:52:35 | 2020-05-14T04:54:33 | 263,892,770 | 2 | 0 | NOASSERTION | 2020-05-14T11:11:33 | 2020-05-14T11:11:32 | null | UTF-8 | Python | false | false | 2,357 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from enum import Enum
class DatasetFieldName:
DOC_LABEL_FIELD = "doc_label"
WORD_LABEL_FIELD = "word_label"
UTTERANCE_FIELD = "utterance"
TEXT_FIELD = "word_feat"
SEQ_FIELD = "seq_word_feat"
DICT_FIE... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4fcdf50c43cf0c0a802c7899882d88c66afb5521 | e70b678712a355a0b51632728c7781b0bdcf29f4 | /Algorithms/Python/Best-Time-to-Buy-and-Sell-Stock.py | aa4097ebb2db64fb2c8d11bb08368e8d97f353a7 | [] | no_license | keyi/Leetcode_Solutions | b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af | 69e4e969b435ff2796bd7c4b5dad9284a853ab54 | refs/heads/master | 2020-05-21T23:36:20.450053 | 2018-11-11T03:45:28 | 2018-11-11T03:45:28 | 33,714,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) < 2:
return 0
ans, minNum = 0, prices[0]
for i in range(1, len(prices)):
if prices[i] > minNum:
ans = max(p... | [
"yike921012@gmail.com"
] | yike921012@gmail.com |
a623df557e19255a003aa296bc2801320feac1d1 | b2e9f579a2c3849ac8f76d741b3c71efbfec77b3 | /venv/bin/easy_install-3.7 | f147075b6d4b175c8e45de5438035b03717587f5 | [] | no_license | LabMem010/instagram | 2d4c53561b3b7e1f663556473fe5173d163b17f7 | 060fb22ef8ccc58e3426c91a019db9983d6b9f5f | refs/heads/master | 2022-05-24T10:56:27.297165 | 2020-04-26T12:32:34 | 2020-04-26T12:32:34 | 258,706,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | 7 | #!/Users/labman001/PycharmProjects/instagram/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"38588297+LabMem010@users.noreply.github.com"
] | 38588297+LabMem010@users.noreply.github.com |
61b3acfd2b2dc593d4df188e6b56b40a0ee6f003 | 9697f67b3c38993f1512e550186f78195ac0ff4d | /sandbox/v03/drawtk.py | aa83fa017f7a4dca35da23f3f59f13bc514028b7 | [
"Apache-2.0"
] | permissive | zorost/Agentum | 20d63154a1d0b3fcf428bc8404494f9e507f3cdb | e074b9a66795936ba48074d68ec2b1d1da5e3eb4 | refs/heads/master | 2020-12-28T23:35:08.954608 | 2014-03-26T17:11:14 | 2014-03-26T17:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | try:
# Python2
import Tkinter as tk
except ImportError:
# Python3
import tkinter as tk
canvas = None
root = None
cell_size = 3
cells = {}
def draw_init(grid):
global canvas, root
if not canvas:
dim = grid.dimensions
root = tk.Tk()
root.configure()
canvas = tk.Ca... | [
"dev@mydeb.(none)"
] | dev@mydeb.(none) |
9c4b096bbf52535f6feab8be9e0f43eab3a83ab0 | 21274a63e8c65d636d94e157488cddfeedf97512 | /hw8-1-animal.py | 7164fbc5e7d74bccadb83ce3df625cac38c0771b | [] | no_license | abdullah-alanazi/Python | beaa5d06a214df2423f3890397ca9d8ce570b552 | d7d81d43060de68a7634fac389b4f726415fc70a | refs/heads/master | 2016-09-06T20:01:01.588954 | 2015-12-06T01:49:18 | 2015-12-06T01:49:18 | 41,886,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py |
class Animal:
AList = {"elephant": ("\033[33;3mI have exceptional memory\033[0m", "\033[33;3mI am the largest land-living mammal in the world\033[0m", "\033[33;3myou can play with me in India & I've a long noise ^_*\033[0m"),
"tiger": ("\033[33;3mI am the biggest cat\033[0m", "\033[33;3mI come in black and white... | [
"afa1ksa@gmail.com"
] | afa1ksa@gmail.com |
be55b35724dee1373f80ce49cdbcb9538d913f9c | d61ad40cacad5b5f38d57bc443583dcf623fc4b0 | /blogcrawler/blogcrawler/spiders/blogspider.py | 64ce764000ebd241237c8dfa1292efc134f73f7a | [] | no_license | alexhanna/hse-scraping | 59cef4098bdfaa41c824f0cc74cc034def5517b9 | 0a8bb2e8898161166c7704e2f78bdc1fb2a3122d | refs/heads/master | 2021-01-16T19:20:38.352259 | 2013-08-22T06:18:33 | 2013-08-22T06:18:33 | 12,169,963 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/python
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from blogcrawler.items import BlogcrawlerItem
from urlparse import urlparse
class BlogSpider(CrawlSpider):
name = "blogspider"
allowed_domains = [
"wordpress.com"... | [
"alex.hanna@gmail.com"
] | alex.hanna@gmail.com |
9ba6ce568f47a0172f7d99b0040d87c309339a1c | 5891f624625616eba56ab29283ca9b12c7dbb334 | /inshape/migrations/0019_auto_20190305_2019.py | 3ae875820be9442eaeefcd2a7936afc393e74148 | [] | no_license | markwcorbin/mcweb | b842572da42ca2df8b395c7af65dfc524b6233af | c7a85e4e7553063ccb0106d85847b46532f14224 | refs/heads/master | 2023-01-20T19:42:19.076624 | 2023-01-16T16:38:40 | 2023-01-16T16:38:40 | 115,457,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | # Generated by Django 2.1.1 on 2019-03-06 02:19
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inshape', '0018_auto_20181209_1726'),
]
operations = [
migrations.CreateModel(
... | [
"34870054+markwcorbin@users.noreply.github.com"
] | 34870054+markwcorbin@users.noreply.github.com |
3eda452594630d14e50ede0ff4387b68e0cf952a | 89a8c748f0c52656f0ec1b060aed8d826f5d7e57 | /python/VPIAlgo.py | 902038fa604b8363a8fad7ef4925bf880f272a4b | [] | no_license | vlongle/BayesianTTG | d73fb8b3d4a30044291443daf4e8390489c22f15 | d4a19cbd0f5786ab044c60f972f5b2801c3b943b | refs/heads/master | 2023-03-03T21:19:46.764808 | 2021-02-09T20:59:33 | 2021-02-09T20:59:33 | 316,132,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,006 | py | from utils import *
#from scipy.special import softmax
from stateEliminationAlgo import *
class VPIAlgo(StateEliminationAlgo):
def generate_proposals(self):
# compute all possible proposals that this agent can give
for agent in self.game.agents:
agent.proposals = generate_proposals(self... | [
"vietlong.lenguyen@gmail.com"
] | vietlong.lenguyen@gmail.com |
e1b04397e1ceb2278327aa1a1914a2952f396dd6 | 783b56ae30be9481b5489a6f3aefffb40754d96e | /sagar/urls.py | 49eae2257795c5c10148b20f2c5f72d938b70b87 | [] | no_license | ramsagar2215/my-first-blog | b18b19c2ae0b4ddcb945173072e046440d8de2bd | c7cb7322d95f7fd1db823606722825eab02a838b | refs/heads/master | 2021-01-10T05:37:55.138093 | 2016-02-19T06:41:08 | 2016-02-19T06:41:08 | 52,067,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'sagar.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| [
"sagar@django.com"
] | sagar@django.com |
4c4e498f8f69a2285e2c364574d94132fee73875 | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_closedset_ynoguti/config_iVector_200_fold6.py | e61d28d540206408e386efddf28c2f7122093a8b | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/closedset_ynoguti/iVector/200/fold_6/temp/'
result_directory = '... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
fa81b3e05faf268c458edae4c6bb118c72a07655 | 48eb03edddd57415e25e84b562afea5a6ad95980 | /03_face_recognition.py | 679fe674bbc756106266d5c0231d6ae200eb92b4 | [] | no_license | sayeedap/Paperless-Ticketing-Using-Face-Recognition-System | 12a351c5c81bf973394a0f851632b0996fc647d8 | 2798b9b65b1924c6810f78b743110c731a7dcf62 | refs/heads/master | 2021-10-02T19:03:23.750345 | 2018-11-30T08:35:36 | 2018-11-30T08:35:36 | 151,741,263 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,558 | py | import cv2
import numpy as np
import os
import mysql.connector
import datetime
import time
mydb = mysql.connector.connect(
host="localhost",
user="root",
passwd="",
database="python"
)
mycursor = mydb.cursor()
def logged(station_id,station_name):
recognizer = cv2.face.LBPHFaceRecognizer_create()
rec... | [
"noreply@github.com"
] | sayeedap.noreply@github.com |
b9bb249fb650618fddb226037ef8ab1ef57c6afa | 570f19a623a2ed26b1ac31efe5ac390b41a58a13 | /Fastq_Parser.py | aa959f6b0dbdc9837259f5ce42d23d583c81af58 | [] | no_license | RichieJu520/Fasta_Tools | 5d234b21b94fa52be58b23181bcc1ea3a4289f83 | cfcb83a1926be5a8d09bff028e1f596f864c49c4 | refs/heads/master | 2021-05-09T19:07:06.277248 | 2019-01-09T06:43:47 | 2019-01-09T06:43:47 | 118,632,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | print 'This script is written for parsing Large Fasta file into small sub-fastas!'
import os
import time, sys
Parameters=raw_input("Enter two parameters: [Fastaname],[NUM](*10000)(number of sequences in each sub-fasta), sepeated by Space: ")
while True:
try:
filename=Parameters.split(' ')[0]
... | [
"noreply@github.com"
] | RichieJu520.noreply@github.com |
3569af3986a45ecc6f2342c1dc31a185ba38d237 | 4e67005ced35b46ce56fd485e1be570bcefdb99c | /Exercise1and2.py | 51c2739a4c1c9c4d6a13bf9c73087fab3ba01e98 | [] | no_license | EvaAmmann/PyCharmProjects | 314b7078d8671e48356518eed8a3d76bcd248a6a | 5fe17f35fdc066868ef3fafaccdae340777622cc | refs/heads/master | 2021-02-11T02:41:14.239476 | 2020-07-02T09:18:18 | 2020-07-02T09:18:18 | 244,443,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | #Exercise 1 and 2 (Homework.)
name = input("Dear user, what is your name? ")
age = int(input ("Dear user, what is your age? "))
nextage = 0
#Inserting the +1 so that a 60 year old gets another ten years
while nextage < age+1:
nextage = nextage + 10
yearsuntildecade=nextage-age
#Filter children out so they do not ha... | [
"eva.m.ammann@gmail.com"
] | eva.m.ammann@gmail.com |
b209c4ca9943cdd93cd8c045a70591778461c70f | 893879ac757f0b623ce8e7335b2d73eeaadcdc08 | /app.py | f1b4f4e3b9841f5307c86e8df86ec61104552fa2 | [] | no_license | debika-samanta/ecommerce | 2336407baa4381c0cf22a12efd02951f4e7d9ad7 | 497199d9fee038fda2520ab3db512c4373e48193 | refs/heads/main | 2023-07-19T15:58:30.429861 | 2021-09-07T19:13:36 | 2021-09-07T19:13:36 | 404,094,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,080 | py | from flask import *
import sqlite3, hashlib, os
import Checksum
import requests
import random
from werkzeug.utils import secure_filename
app = Flask(__name__)
app.secret_key = 'random string'
UPLOAD_FOLDER = 'static/uploads'
ALLOWED_EXTENSIONS = set(['jpeg', 'jpg', 'png', 'gif'])
app.config['UPLOAD_FOLDER']... | [
"noreply@github.com"
] | debika-samanta.noreply@github.com |
152e0657215d3db3c16210c391cd6db5bbccef15 | 4856c4d7bae0da3865c958aeeb5c221fa4c0d584 | /client_for_threaded_server.py | 2cb63bd7363cfaf839198071ac12037a8f507b1e | [] | no_license | pjumruspun/socketTicTacToe | a6fcd45a7e411ac514ea9fe58fdaf7625981a385 | f366871f5f28f3fa2f8b66bf33ad5a2ac246f624 | refs/heads/master | 2021-02-05T07:29:09.521097 | 2020-02-28T12:28:42 | 2020-02-28T12:28:42 | 243,757,149 | 1 | 1 | null | 2020-02-28T12:27:04 | 2020-02-28T12:27:03 | null | UTF-8 | Python | false | false | 1,480 | py | import socket
import sys
def main():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = "127.0.0.1"
port = 8888
try:
s.connect((host, port))
except:
print("Connection error")
sys.exit()
print("\n===============================")
print("input play or bye")... | [
"pokemonlizardon@gmail.com"
] | pokemonlizardon@gmail.com |
cdbd67b1a12b3c7320da2aafaa87a06508e9b4de | 5ef19fdf04970ed0481ff29234a11b812b55a257 | /OS/SRT.py | 89a0d94dba43339334289d424480551cfb9d8b02 | [] | no_license | priyamshah112/Study | 636bfadee2384b39399b8b2c03349c9faf8853df | 2ea4341d8497573b014a5275d548289696fe3662 | refs/heads/master | 2021-06-28T15:19:24.002518 | 2020-10-02T07:36:24 | 2020-10-02T07:36:24 | 149,157,682 | 0 | 0 | null | 2020-10-02T07:36:25 | 2018-09-17T16:48:41 | Java | UTF-8 | Python | false | false | 1,762 | py | class Process:
def __init__(self, p_no, at, bt,wt,tat,nt,ct,rt):
self.p_no = p_no
self.at = at
self.bt = bt
self.wt =wt
self.tat =tat
self.nt =nt
self.ct=ct
self.rt=rt
def Shift(alist):
alist.sort(key=lambda x:x.rt)
return alist
def main():
n=i... | [
"priyamshah112@gmail.com"
] | priyamshah112@gmail.com |
66fe87cc8722b0751987b14bbb644a572cd0ba9e | 0ac14167bd2f2cc0c657d9aa0a40e954cd0ff6f1 | /api/core/urls.py | 0d36b821c8121ca47067a38189d07e194eebdb0b | [] | no_license | bonifacius/my_drf_blog | 3de158a106ae558f98534d9fed809a36a2610aad | 60e7fa6720782f58bbc717b14a7d8e6dc7edad2b | refs/heads/master | 2023-04-30T14:27:41.446727 | 2021-05-15T10:13:00 | 2021-05-15T10:13:00 | 356,218,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import PostViewSet, TagDetailView, TagView, AsideView, FeedBackView, RegisterView, ProfileView, CommentView
router = DefaultRouter()
router.register('posts', PostViewSet, basename='posts')
urlpatterns = [
path("", i... | [
"basmanovroman@mail.ru"
] | basmanovroman@mail.ru |
87a9d5fc07b1eeb59551a66e38e121c1bcb52f4b | bb0eeade4685dc89ff8a53beb813afdf7394989d | /ML2018/commend sys/readers.py | 7d306676d9c3cffdfe249ecd0402e19a6f313dbb | [] | no_license | zhaocheng1996/pyproject | 72929cd0ba2f0486d7dc87a7defa82656bf75a8e | 0a1973dda314f844f9898357bc4a5c8ee3f2246d | refs/heads/master | 2021-10-26T08:38:43.675739 | 2019-04-11T13:52:46 | 2019-04-11T13:52:46 | 176,939,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | from __future__ import absolute_import, division, print_function
import numpy as np
import pandas as pd
def read_file(filname, sep="\t"):
col_names = ["user", "item", "rate", "st"]#st是timestamps时间戳
df = pd.read_csv(filname, sep=sep, header=None, names=col_names, engine='python')
df["user"] -= 1
df["it... | [
"34829837+zhaocheng1996@users.noreply.github.com"
] | 34829837+zhaocheng1996@users.noreply.github.com |
7f1904267f59ff86bc553cd97a4fe96e88f4d2d9 | 5e642d1d47506f33a35a070538dd400c6a0b52ca | /my_app/migrations/0002_auto_20171025_1411.py | fa6a48a5afff760e46d3d938edb77a27f47af7bf | [] | no_license | okwow123/pythonanywhere | 8abb89763461e09059549df298089793bb50bfb2 | 8fe5bd98d8ee400d30987905ab38c749027e6657 | refs/heads/master | 2021-08-06T16:25:42.774299 | 2017-11-06T13:32:57 | 2017-11-06T13:32:57 | 107,761,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-25 14:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_app', '0001_initial'),
]
operations = [
migrations.RenameField(
... | [
"okwow123@naver.com"
] | okwow123@naver.com |
ca6c4014e8b19a81eee8347fdb6f90318957ef64 | 9f9ac37f22333569ae3bec78075d0918c3ad2742 | /resources/reference/source/conf.py | 943a1876975f4250eed61417efc92d2d98a2483f | [
"MIT"
] | permissive | credativ/pg_backup_ctl-plus | 602bcd0ce2bcce1653dd340e7b134c3b8f92973d | d1655f9791be9227e17b60731829bbd8572e850b | refs/heads/master | 2023-03-20T22:15:21.159701 | 2021-03-16T18:08:53 | 2021-03-16T18:08:53 | 348,447,804 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,621 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# pg_backup_ctl++ documentation build configuration file, created by
# sphinx-quickstart on Thu Feb 1 13:23:34 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in t... | [
"bernd.helmle@credativ.de"
] | bernd.helmle@credativ.de |
6fcf2dcd7764519a48a71cb3c75717cb30fb2c75 | 840bb24df4cad5ff33bc5ff54a7422b0a576c118 | /Server/webplagiarism/plagiarism_webapp/main/legacy/thresholdEsamble.py | bfc89b20e916dd2e4ee121bfbe416d30fd94b02d | [] | no_license | Mr-Rafo/PlagiarismDetectionAndroid | 6d783880e6c2fad694af10308721610ec5ca8b55 | e4e2a8b702b82bde84efb7db08ff50bbb6d87615 | refs/heads/main | 2023-08-24T07:55:47.521904 | 2021-09-28T14:32:04 | 2021-09-28T14:32:04 | 446,541,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,169 | py | from itertools import combinations
import numpy as np
import csv
import os
#calcola i valori soglia e li salva all'interno di un csv
def threshold(nameCsvInput,t,p,n, k,contoDi0,contoDi01,contoDi02,contoDi03,contoDi04,contoDi05,contoDi06,contoDi07,contoDi08,contoDi09,contoDi1 ):
arrayThreshold= [0, 0.1, 0.2, 0.... | [
"58905671+AnttGiam@users.noreply.github.com"
] | 58905671+AnttGiam@users.noreply.github.com |
c1d2f54840345e337ecd6b95f9cf7e884483c124 | 5c967a181f978875bb7d812da39d7d356d4aeea4 | /models/nasbench_101/base_ops.py | 8262d85ca8708a573f00b53542ae86d1f9ca59c8 | [
"MIT"
] | permissive | czhhbp/to_share_or_not_to_share | 9d8540c4109c3855911ef24b472bfda3f0be33e1 | 538a50636c2d293215fe2cd9097ea72b50d843a0 | refs/heads/master | 2022-09-23T08:18:48.389888 | 2020-06-02T15:29:22 | 2020-06-02T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,974 | py | import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.batchnorm import BatchNorm2d
from torch.nn.modules.conv import Conv2d
from torch.nn.modules.utils import _pair
class MaxPool(nn.Module):
"""
MaxPool
"""
def __init__(self, kernel_size, stride, padding):
super(MaxPool, ... | [
"alois.pourchot@gleamer.ai"
] | alois.pourchot@gleamer.ai |
a9cd9dd578b1c065b077eaf2fea10c8ab0f16b43 | 8d146decd35e0f376d8107343d38e1662b94a737 | /easy_django/learning_templates/settings.py | b60d15ae7e34095e26614e979f7cc723ee524f58 | [] | no_license | aLLGold/deployment-exa | 6bc3c19abb30c825aef0b5c17bf893dce2b29ea7 | f8279c61b4fb06787bf7b69be206ba5f3615e579 | refs/heads/master | 2022-08-16T17:29:49.787034 | 2020-05-22T05:31:12 | 2020-05-22T05:31:12 | 262,042,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for learning_templates project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"jamba0702@gmail.com"
] | jamba0702@gmail.com |
f8ea387181d506a9e98135526689cde8994b93d5 | 64dae0662afd7d2646225df09333d9a365e5c6b2 | /furthest_point.py | 2e1f83797c3633ff2d54acc1e919a0d9b9d46240 | [] | no_license | sligocki/furthest-point | 4f9937ced141b9756de40372fac927f1e80c6e22 | abdc1912aacd535a01e9e6c8de6a7f0c5f5f9485 | refs/heads/main | 2022-02-04T04:28:09.903389 | 2018-12-31T18:33:00 | 2018-12-31T18:33:00 | 163,263,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | import math
class FurthestPointError(Exception):
pass
class Point:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
def __neg__(self):
return Point(-self.x, -self.y, -self.z)
def __sub__(self, other):
return Point(self.x - other.x,
self.y - other.y,
... | [
"sligocki@gmail.com"
] | sligocki@gmail.com |
6013c6c9a4abbc2aae07194e23f3416551465b96 | 0feaa7c38e85dbe6afc9d88eadf811d22be683e0 | /imgmeta/views.py | c4f0f4e66be9640602ce5c9be80dceae1a644e50 | [] | no_license | shreyansh-sinha/Cloud-Assignment2-Image-Metadata-App | 257c2ce66a2d1d5a4180ef2257c0e6c081b36811 | 3f44a8ff82b96615a5649885d274127496c23acc | refs/heads/main | 2023-01-09T21:41:14.824530 | 2020-11-12T14:02:29 | 2020-11-12T14:02:29 | 312,292,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from PIL import Image
from PIL.ExifTags import TAGS
from .models import *
from .forms import *
from pymongo import MongoClient
uri = "mongodb://root:root@52.188.19.176:27017/?authSource=admin&authMechanism=SCRAM-SHA-... | [
"shreyanshsinha2@gmail.com"
] | shreyanshsinha2@gmail.com |
bf8e991732fe53af4d0697cfcb8adfadac87a5d2 | 9b6dce3f247d384355a5376ead457cec9c1598b2 | /pbgpp/Output/Filter.py | 7326e6ff5ea5af88ddb0a20c565061dee3c6b9a0 | [
"Apache-2.0"
] | permissive | deleskie/pbgp-parser | 44841e0913ae1654f8b69859d63f03f8e780059b | 4606f91a63c16e44da6909c94fd0ab3c88d8fa70 | refs/heads/master | 2021-01-11T09:16:51.516823 | 2017-02-03T08:23:56 | 2017-02-03T08:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | #
# This file is part of PCAP BGP Parser (pbgpp)
#
# Copyright 2016 DE-CIX Management GmbH
# Author: Tobias Hannaske <tobias.hannaske@de-cix.net>
#
# 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 ... | [
"tobias.hannaske@de-cix.net"
] | tobias.hannaske@de-cix.net |
17154c3406f2ba8d861e1e362d362380cd84198f | 5ecc2a46c53bf2b65dd1fac65a772647784b5ef5 | /venv/Lib/site-packages/tensorflow/_api/v2/compat/v1/io/__init__.py | 684ae18a05c5288ad3199755726ad1af1fe49c08 | [] | no_license | kanungosuyash/CSCI527game | 8578185853d14aebe04e099ab056da8c5233d8de | 7fbc9da0360756402fa01d6eebb87a8bb9236d71 | refs/heads/master | 2023-08-02T12:40:28.694846 | 2021-09-13T16:11:49 | 2021-09-13T16:11:49 | 401,088,055 | 1 | 0 | null | 2021-09-13T00:19:46 | 2021-08-29T16:22:30 | Python | UTF-8 | Python | false | false | 3,173 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.io namespace.
"""
from __future__ import print_function as _print_function
import sys as _sys
from . import gfile
from tensorflow.python.framework.graph_io import wri... | [
"msingh60@usc.edu"
] | msingh60@usc.edu |
c04fef02387aa5c4e6b6a704956c0caefcfaa6ab | 6168318d3853c3a0eec7e09401d0226050167f60 | /movies/migrations/0002_user_gender.py | e933da51bbdf4b8d120d02ea950efc34b4280bc8 | [] | no_license | sarahcstringer/django-ratings | 5537cff58f6debe87cd2fec6d38c825b92c33fe6 | 9cd675b1931c84b9ca563e49903339f811f9eef6 | refs/heads/master | 2021-01-12T08:13:11.494710 | 2017-05-19T00:10:06 | 2017-05-19T00:10:06 | 76,511,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-14 20:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"sarahcstringer@gmail.com"
] | sarahcstringer@gmail.com |
36beedcc5794bb0e122f7c3f16767dbcc5564a0b | 8b55dec8bf328cc2f8699942d374a27440fcfe8b | /bin/rst2html.py | c14dc2730cbd1208dd45092c2e7c5d9b8c51af63 | [] | no_license | exell/words | e39233989ef8b0b1319d8aa6351d376765490d06 | 5a0851ede2625b7ec1918050ad33c5b2e05b752b | refs/heads/master | 2021-01-01T17:27:38.551358 | 2013-07-02T11:28:26 | 2013-07-02T11:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | #!/home/andy/wordsdev/bin/python
# $Id: rst2html.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.
"""
try:
import locale
locale.setlocale(locale... | [
"andy@sussedit.com"
] | andy@sussedit.com |
e1943ace64dd59945b38d974a17a4157d58023c0 | ad96dedf8544e4fab2b0359611616ccbb5bc86e6 | /HAMO_pred.py | 63e2987384d30c39030e98ff43e3b58097033ee4 | [
"MIT"
] | permissive | siddhanthaldar/EEG_based_activity_recognition | f499714c38eddb8aaf6f03a03227bb5a3a0fb8f4 | 3ed6b7f9e0a7c2f7f2d719aa504aa4bdfda062cd | refs/heads/master | 2020-03-23T14:05:00.726853 | 2018-09-22T18:17:39 | 2018-09-22T18:17:39 | 141,655,000 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | import numpy as np
import pandas as pd
import os
from keras.models import load_model
WL = 150
col_list = ['F8', 'F3', 'AF3']
out_list = ['Nothing', 'Push', 'Lift', 'Drop']
D = len(col_list)
no_of_outputs = len(out_list)
#Reading data
#generalise window size, no. of outputs, no_of_channels etc.
req_arr_list = []
output... | [
"siddhanthaldar14@gmail.com"
] | siddhanthaldar14@gmail.com |
79dcf66b9517d6c9857138b38aa4bebd074af7e9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy2781.py | 63f0d647daa70d02a644d9fe38bd1a0e985c5100 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,238 | py | # qubit number=4
# total number=40
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5fb88b6a250fc8138e50b016b49f98c4fc0590f7 | 41c5f7da28b87a3034754254d21791b322e819d8 | /madana_apiclient/models/xml_ns0_process.py | 8bfbc39cbd2a85998fdbcc992333a3857479e0a0 | [] | no_license | MADANA-IO/madana-apiclient-python | 16cb3eb807897903df2a885a94a2c02fc405818a | 40dc21ab43d9565ac3dff86d7270093cce112753 | refs/heads/master | 2023-03-08T05:02:32.616469 | 2021-02-11T10:17:30 | 2021-02-11T10:17:30 | 287,797,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | # coding: utf-8
"""
madana-api
<h1>Using the madana-api</h1> <p>This documentation contains a Quickstart Guide, relating client functionality and information about the available endpoints and used datamodels. </p> <p> The madana-api and its implementations are still in heavy development... | [
"dev@madana.io"
] | dev@madana.io |
04b9361d8abdd9474ccbd043ba51ae2031521dbf | b97082f919a6aa44e770d84bade91e455c0bd936 | /teacherInfo/teacherInfo/pipelines.py | 2330d6ef91b482bf47de4fd538f940ecae6e63da | [
"Apache-2.0"
] | permissive | CareyRay/Python-Spider | f2799689bb104a5352b425da31fa5c5e30bda1fb | 0a83efdc5ba0ff9ee5df4e9aa08197ca4e1ccafd | refs/heads/master | 2020-12-14T22:21:54.201119 | 2020-01-19T11:50:38 | 2020-01-19T11:50:38 | 234,890,957 | 0 | 0 | Apache-2.0 | 2020-01-19T11:45:39 | 2020-01-19T11:45:39 | null | UTF-8 | Python | false | false | 603 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
import codecs
class TeacherinfoPipeline(object):
def __init__(self):
self.filename = codecs.open('teach... | [
"2334497007@qq.com"
] | 2334497007@qq.com |
85a1abb5eb0c0c2f47f5e05bd11dd32306236ed1 | 763ffc8b6dff8684e2ee460235e54ce2581fa2d3 | /1_hatExper/step1.1/test.py | 53fa29d6d03e849e8dcd01d46a16b96cbe3518ce | [] | no_license | fengxu1996/hat_experimentation_2 | a750d7922302efb66a40398e468f634b5d5f6d9c | d773f39dc1f6e2693ba426f0f00fc56349555a01 | refs/heads/master | 2022-03-18T21:51:24.852287 | 2019-12-07T07:12:57 | 2019-12-07T07:12:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
import pandas as pd
path1 = r"E:\pythonCode\RJ_experimentation_1\Data_1\JQ\JQ_affiliationID_sortedName_" \
r"fieldID_fieldName_paperID_authorID_paperYear_awardYear_citationCnt.txt"
path2 = r""
| [
"1243309973@qq.com"
] | 1243309973@qq.com |
0862876f4cdd8ae2bf38e8b1a144c12ef78b3d02 | b23b1156d6b2c34451db0891d6d2bf0b6d7704c7 | /redboxrental3.py | 307e0e758bf59bc3ef83ddfd8f5d01e5d7319e76 | [
"MIT",
"BSD-3-Clause"
] | permissive | ProgramNoona/Capstone2019AnimeReview | 571447e41657e694bbf21250d19c2096f72fb2a7 | 9875098fd25d2405447d39edaf9ac87dcd15abe4 | refs/heads/master | 2020-04-21T14:33:36.672587 | 2019-05-14T03:37:40 | 2019-05-14T03:37:40 | 169,638,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,838 | py | #CSC221
#m3hw
"""
Author: Reagan
A video rental program, yo
"""
import csv
import random
def main():
#Variable for recieving user answer
answer = 0
#Variable for containing the list of movies
movies = []
#Variable for containing the list of customers
customers = []
#Here are our filena... | [
"noreply@github.com"
] | ProgramNoona.noreply@github.com |
136a6c7a38d6872c86aafa2caeb5e2ce2091320c | afe03ba84eed10acc187a60b3eceded78b0f6b94 | /sum.py | 4934e9961e8699f6e209029abd0834ea2821b0ab | [] | no_license | tromika/BinarySearchTree | 5c5f86d15b9e2c979e1aa69d10a01b15ba57b130 | 949be203d08e206f76ca91693e55a3facb79764f | refs/heads/master | 2020-07-02T00:52:43.651684 | 2014-10-25T20:33:51 | 2014-10-25T20:33:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | def main():
#content = raw_input()
#test = content.split('\n')
#test = [2,-2,6,-6,8]
s = 0
sumList = []
for a in test:
s+=a
sumList.append(s)
sortedSumList = dict((i,sorted(sumList).count(i)) for i in sorted(sumList))
sequences = 0
for key,value in sortedSumList.iteritems():
print key, value
#if key =... | [
"tromika@gmail.com"
] | tromika@gmail.com |
7ff60d6b1a6c4d5c8feddfc8a81bafcaf4a303a3 | 4fa314e5f240beff11e63062293460f613c2fbdb | /lake_monster/environment/render.py | ee77fb61d5a404ccb6973e5beabf9b576ab9fc85 | [
"MIT"
] | permissive | zebengberg/lake-monster | 9c575e40405e46defa103f12324208f552915783 | d1158e3e1b46666c310cf50ce778a327a321a9e5 | refs/heads/main | 2023-02-23T10:43:56.611480 | 2021-01-25T21:13:03 | 2021-01-25T21:13:03 | 307,154,368 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,856 | py | """Utility functions for rendering an environment and displaying an episode in video."""
import numpy as np
from PIL import Image, ImageDraw
SIZE = 480
CENTER = SIZE // 2
RADIUS = 200
RED = (250, 50, 0)
BLACK = (0,) * 3
GREEN = (40, 200, 40)
def coords_to_rect(coords, radius=8):
"""Convert environment coordinat... | [
"zebengberg@gmail.com"
] | zebengberg@gmail.com |
a8edb0da7d8720a5f48f1695b3f768a2a34ec969 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /010_strings/_exercises/Python 3 Most Nessesary/6.10. Search and replace in line.py | c8f366f01071b74a68d0f19128b40eb84fc3a1d0 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,873 | py | # # -*- coding: utf-8 -*-
#
# s = "пример пример Пример"
# print ?.f.. "при" , ?.f.. "При" , ?.f.. "тест"
# # (0, 14, -1)
# print ?.f.. "при", 9 , ?.f.. "при", 0, 6 , ?.f.. "при", 7, 12
# # (-1, 0, 7)
#
#
# s = "пример пример Пример"
# print ?.i..("при" , ?.i..("при", 7, 12 , ?.i..("При", 1
# # (0, 7, 14)
# # print(s.i... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
258bb0e2762aefc4fda2a6a064e89faad4e34e96 | ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86 | /pychron/hardware/polyinomial_mapper.py | aa3f53521645648ca77a9b4089bb88812a44f0bd | [
"Apache-2.0"
] | permissive | UManPychron/pychron | 2fb7e479a9f492423c0f458c70102c499e1062c4 | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | refs/heads/develop | 2022-12-03T23:32:45.579326 | 2020-01-29T19:02:20 | 2020-01-29T19:02:20 | 36,100,637 | 0 | 0 | null | 2015-05-23T00:10:06 | 2015-05-23T00:10:05 | null | UTF-8 | Python | false | false | 2,147 | py | # ===============================================================================
# Copyright 2014 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
1aca92db74813603bfe7e43da5741411d701c292 | a1328f6937a9105faf060d21101c34c1f15da1bd | /sintatico.py | f4f22265337ad4fc945e84c20f75ecbbb29becfd | [] | no_license | HarielGiacomuzzi/TrabFinalCompiladores | a0a623bdec791b904f21f3efc7bba3d7281c2d46 | b01644b4e94bca4997f5d2eaaf1c7f3d88f89c83 | refs/heads/master | 2020-06-23T07:44:09.482089 | 2016-11-27T15:24:40 | 2016-11-27T15:24:40 | 74,660,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | # ------------------------------------------------------------
# sintatico.py
# Nomes: Hariel G., Lucas Teixeira, Bruno Kieling
# Descricao: Trabalho da disciplina de compiladores de 2016/2
# ------------------------------------------------------------
import ply.yacc as yacc
# Get the token map from the lexer. This... | [
"hariel.dias@acad.pucrs.br"
] | hariel.dias@acad.pucrs.br |
04398fb29841e18b9505fe74de19ad29fe08b860 | 7a527060afabd2e0867d5dcf4b75592b43ef5005 | /Leetcode/二叉树/103. 二叉树的锯齿形层次遍历.py | d361d16ca05d5ccb931c8c609b61586d0b68b318 | [] | no_license | Stevenzzz1996/MLLCV | ff01a276cf40142c1b28612cb5b43e563ad3a24a | 314953b759212db5ad07dcb18854bf6d120ba172 | refs/heads/master | 2023-02-10T18:11:30.399042 | 2021-01-05T12:05:21 | 2021-01-05T12:05:21 | 267,804,954 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #!usr/bin/env python
# -*- coding:utf-8 -*-
# author: sfhong2020 time:2020/5/7 15:01
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def zigzagLevelOrder(self, root: TreeNode) -> List... | [
"2499143041@qq.com"
] | 2499143041@qq.com |
d205ceebfdd254bfc03112ff574568f8bfe89589 | d93f02be48f41f2f9c17e24adf4af0fa15355c9b | /atom/wsgi.py | 5e52294050ad7549c7dd2c27332dc0f973a5ed62 | [] | no_license | vxvinh1511/atom | ee9b574339dce41e76bc259182834abf6610cd43 | 64ba2917820a82552112584aad5ab8cc07061fd7 | refs/heads/master | 2021-01-10T01:33:47.668962 | 2015-09-25T13:09:25 | 2015-09-25T13:09:25 | 43,142,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for atom 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS... | [
"vxvpastime@gmail.com"
] | vxvpastime@gmail.com |
d6373eff10443fed41f31fbc6f731d44a1c41826 | 02b3e28fa0b4f6ece144a9455c32194e63f4bf17 | /vickitrix/__init__.py | a5c33435030889c262f303092f8264c59058f6b6 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gitter-badger/vickitrix | 7b1be0813bc21503b995d75f57819397b2fcb84e | b33a6593837c5302dcc95867e982f1713d234bc9 | refs/heads/master | 2021-01-15T17:15:14.147257 | 2017-08-08T14:09:41 | 2017-08-08T14:09:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,542 | py | #!/usr/bin/env python
"""
vickitrix
Checks tweets using http://www.tweepy.org/ and
uses rules specified in file to make market trades on GDAX using
https://github.com/danpaquin/GDAX-Python. Default rules are stored in
rules/vicki.py and follow the tweets of @vickicryptobot.
"""
from __future__ import print_function
... | [
"anellore@gmail.com"
] | anellore@gmail.com |
dd6d06fac46c83117095da0090eca13ba7a19033 | 317f6801e3c539c1eb3dcc9575d895e5f257c17d | /web/django_exampl/nr1/meth/urls.py | c4777a6e9cf74c8008d3db886c88243ae9f0e4c0 | [] | no_license | Barbara0070/barbara | b2773fe8416e7560103e5eb24c9a334134025a17 | c8ee3892717ee1378d9d94d6e38b5088c7de679d | refs/heads/master | 2020-04-10T09:08:17.511557 | 2019-03-03T15:46:35 | 2019-03-03T15:46:35 | 160,927,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py | #from django | [
"w2ertygf21@gmail.com"
] | w2ertygf21@gmail.com |
080728dd79f7bff9d345033a81fe4b83e3180222 | 4e47bb6c804150f8be2c7aee96718c8347765cf8 | /sample.py | bfd316339170a9eddb2844089423ec1a214dfd3a | [] | no_license | vvasuki/misc-python | 89955529b32bf32cf06ab726319a2ccbb6e6accb | 5d6d53bfec0dc1f85c24bb5e0cf6e2fcec31a389 | refs/heads/master | 2022-12-09T14:30:20.149062 | 2022-12-01T04:14:17 | 2022-12-01T04:14:17 | 149,946,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,495 | py | #! /usr/bin/python
#easy to use python documentation.. intended for reference and reuse of source code (sample code) slices.
#for help: install python-docs package.
#see this then: file:///usr/share/doc/python-docs-2.4.1/html/tut/tut.html
#to enter interactive mode, type: python
#to exit python shell: EOF character ... | [
"vishvas.vasuki@gmail.com"
] | vishvas.vasuki@gmail.com |
8f52540d0566f9d51d85025745e66d4f7753250d | 1f74cbca452ec1ddec3da61cf1ea16b2b92b0088 | /Assignment 2/miditoaudio.py | eeb73f59bf04ae5b63a941647560441ef6168564 | [] | no_license | SmellingSalt/Statistical-Pattern-Recognition-Assignments | ea911bb8349fc24ded251e2cddc6b5230bf4f23b | 3d70687c5632ee06b1c19ed9fdaf749afdf3d105 | refs/heads/master | 2021-07-17T12:20:09.931474 | 2021-02-01T11:31:29 | 2021-02-01T11:31:29 | 236,273,314 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import os
from glob import glob
# convert_command=timidity
# midi_file=0AuraLee.mid
# -Ow -o - | lame - -b 64
# mp3_file=0AuraLee2.mp3
path_to_midi_data=os.path.relpath(os.path.join('MusicDatasets/Beethoven/MIDIFILES'))
midi_data_files_list=glob(os.path.join(path_to_midi_data, "*.mid"))
mp3_data_path=os.path.relpath... | [
"ssmahara96@gmail.com"
] | ssmahara96@gmail.com |
b40bac9713b087f67ca3260d194ce949da4c8dae | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/nn/modules/math_ops.py | a16ddf4555f82be980156024d8fa893e24247691 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 7,845 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
56296e4c129d9135aedd9773390e5b84351d661c | cc75fafa3b62c2b03a95036616663263bede858d | /eval/Category_Baseline_unseen/separateCategory.py | 406407e71a0a5cbae523ee53fb642631faf4a0d5 | [] | no_license | liqipap/graph2text | 276d0d7274ad6d53e92ad5567c05bb1c430aefd9 | 798318c24997ef40f874262d4ac5084e59e9623d | refs/heads/master | 2020-03-20T08:30:06.318432 | 2018-01-20T12:23:22 | 2018-01-20T12:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | import xml.etree.ElementTree as Et
import xml.etree.cElementTree as ET
import sys
import getopt
def separateUnseen(filePath,catgory):
"""
this function separate unseen dataset according to category name
:param filePath: the directory for unseen dataset file
:param catgory: the current name of catgory ... | [
"badr.md87@gmail.com"
] | badr.md87@gmail.com |
81cfaf449aea22d62d3f5757db4b251b7c51b0c9 | bfb00b910ae3edc6d4b9dae247135788bd5f3ee3 | /exp/guitests/tked.py | 6785058e232059ff47cc92edcd482337ecdef336 | [] | no_license | jc-gonzalez/arestools | 2005e911e2e4809e0ee0981983fc81b9755fccd3 | dccaac8c0dad6682d11d0b702046ad90bd1f3f8f | refs/heads/master | 2020-03-18T09:44:21.916104 | 2019-01-09T10:56:33 | 2019-01-09T10:56:33 | 134,578,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | import sys
from tkinter import *
import tkinter.TkFileDialog
root=Tk("Text Editor")
text=Text(root)
text.grid()
def saveas():
global text
t = text.get("1.0", "end-1c")
savelocation=tkFileDialog.asksaveasfilename()
file1=open(savelocation, "w+")
file1.write(t)
file1.close()
button=Button(... | [
"JCGonzalez@sciops.esa.int"
] | JCGonzalez@sciops.esa.int |
6697e58f58dc6dc054679c72808f91d06415102d | 88ea7bf2bbc8ffba551e881df553ae5ceac70dd6 | /deblock/codes/models/archs/archs_sub/SRResNet_o2m_spectral_arch.py | 83e92751b2e71f264c06bc251d1ed9cc9b2e4680 | [
"Apache-2.0"
] | permissive | zhouhuanxiang/repo-zhx | 2d1135bb2f925e051e1b0bcfc2ed53fb34ea51c5 | 76b577eea13130c60bf7bff8c486f51766128661 | refs/heads/main | 2023-06-10T02:56:17.978649 | 2021-06-29T02:35:57 | 2021-06-29T02:35:57 | 381,213,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | import functools
import torch
import torch.nn as nn
import torch.nn.functional as F
import models.archs.arch_util as arch_util
class ResidualBlock_Spectral_withZ(nn.Module):
'''Residual block w/o BN
---Conv-ReLU-Conv-+-
|________________|
'''
def __init__(self, ni=65, no=64):
super(Resid... | [
"zhouhx.cn@gmail.com"
] | zhouhx.cn@gmail.com |
9269f28f522d0d9b3083bf0059d3b6ed41848195 | d67ae1b2f20d96b7e36c82c3a298882042c951c5 | /src/asyncf.py | 05a406b445e0dbcbd7eb0341c1360003b928bcfe | [
"MIT"
] | permissive | Vistaus/my-weather-indicator | 8a99e69fd9d2c03ab5cca578a89da38d6676a5ab | 32aaa77a14cf2f85edbfb72c45d154e1676abe83 | refs/heads/master | 2021-01-02T12:00:00.506304 | 2020-02-11T19:42:47 | 2020-02-11T19:42:47 | 239,614,123 | 0 | 0 | MIT | 2020-02-10T21:11:07 | 2020-02-10T21:11:06 | null | UTF-8 | Python | false | false | 2,549 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# async.py
#
# This file is part of uPodcatcher
#
# Copyright (C) 2014
# Lorenzo Carbonell Cerezo <lorenzo.carbonell.cerezo@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | [
"lorenzo.carbonell.cerezo@gmail.com"
] | lorenzo.carbonell.cerezo@gmail.com |
71e42b525adbc2a63b17f6e3b79db5de95134301 | ff44ca1b092e10f9c7e4eb347be7d641b1c574e5 | /preprocessing/imagetoarraypreprocessor.py | bf676b248e144f49ceca10d19abc3eac0c65933b | [] | no_license | RobinZhang2020/DP4CV | 940a0e3b39a6353514890289bcfb35129e3b3706 | 388f4ff11fcd258fb8f103997adc505626bfae71 | refs/heads/master | 2023-03-21T05:18:11.675364 | 2021-03-09T07:45:59 | 2021-03-09T07:45:59 | 341,842,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from keras.preprocessing.image import img_to_array
class ImageToArrayPreprocessor:
def __init__(self,dataFormat=None):
self.dataFormat=dataFormat
def preprocess(self,image):
return img_to_array(image,data_format=self.dataFormat)
| [
"704805264@qq.com"
] | 704805264@qq.com |
05c11b1a66da1d79bb4f38af7cb8b32e4edebc87 | 183f2b13d1347819e6a911f1ab15f74a32d8f861 | /src/models/train.py | 4a2ba61d4f67943942535d3929fd5e328b5d1463 | [
"MIT"
] | permissive | Peymankor/MBML_Final_Project | 37880994f40893ae2509a53f7988595779805185 | 1d989b07773f1b8e9a5dd11379845959d62e8780 | refs/heads/master | 2022-09-23T23:30:21.161733 | 2020-05-30T21:12:46 | 2020-05-30T21:12:46 | 262,248,278 | 4 | 1 | MIT | 2020-05-21T18:00:58 | 2020-05-08T06:47:53 | Jupyter Notebook | UTF-8 | Python | false | false | 763 | py | """Handy functions to train Kalman filters in numpyro."""
from jax import random
from numpyro.infer import MCMC, NUTS
def train_kf(model, data, n_train, n_test, x=None, num_samples=9000, num_warmup=3000):
"""Train a Kalman Filter model."""
rng_key = random.PRNGKey(0)
rng_key, rng_key_ = random.split(rng_k... | [
"carrascomurielj@gmail.com"
] | carrascomurielj@gmail.com |
254b39836b581460441fc658e6f0419e540ea63d | bbd556f7726952b3ac84c2d2e7fc447251174930 | /venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/distlib/_backport/shutil.py | 7b81106e485b3a26f840e63dae1d184646c89914 | [] | no_license | svmsharma20/EurekaMW | 6b42f6afe7cb67ffc9c2a5edcc1e8b41c5bb1367 | b6ca82ce38ee1f19a58da379040446adaa8133ba | refs/heads/master | 2022-12-02T16:56:51.615777 | 2020-12-15T03:58:52 | 2020-12-15T03:58:52 | 199,877,827 | 0 | 3 | null | 2022-11-27T21:32:24 | 2019-07-31T14:59:40 | Python | UTF-8 | Python | false | false | 25,652 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012 The Python Software Foundation.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
"""Utility functions for copying and archiving files and directory trees.
XXX The functions here don't copy the resource fork or other metadata on Mac.
"""
import os
import sys
import stat
from os... | [
"shivamsharmasvm20@gmail.com"
] | shivamsharmasvm20@gmail.com |
ae1ccc2844603ea4ab992078b3a8bb73d08eda11 | 1f3d604864a9ea0d704d7d0303e1ecfc7546c3f2 | /setup.py | 5441667f05ab10464e5610b529e1b3ea866d4a79 | [] | no_license | montaglue/Jarvis | 581e924668c2e65d0b3913d3df70f3adca32a871 | fd6c76479965db6a98f1bc336c77546ad8c95508 | refs/heads/master | 2023-08-01T17:52:16.124488 | 2021-09-02T10:57:45 | 2021-09-02T10:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from setuptools import setup, find_packages
def read_requirements():
with open('requirements.txt', 'r') as req:
content = req.read()
requirements = content.split('\n')
return requirements
setup(
name='jarvis',
version='0.1.0',
packages=find_packages(),
include_package_date=T... | [
"kletska.epa@hotmail.com"
] | kletska.epa@hotmail.com |
a7ce93793489eef4e3aedb56e1be34d526b9e3b8 | 65498cfa6e8d833640421157641f9e060d8c5460 | /HIcalculation/functions/GET_heat_indices_v2.py | 54aca755025dc1026034e5f5b289d24840895eb8 | [] | no_license | IPCC-WG1/Chapter-12 | 7c372bbef624941c1cca18004617acd12534d827 | 358a09813f5b29ea064a0629c26b030d60c1f972 | refs/heads/main | 2023-04-07T23:52:43.573045 | 2023-03-20T08:35:28 | 2023-03-20T08:35:28 | 351,099,250 | 2 | 5 | null | 2023-03-08T17:03:23 | 2021-03-24T13:57:16 | Jupyter Notebook | UTF-8 | Python | false | false | 6,498 | py | #!/usr/bin/env python
# coding: utf-8
#This script organizes the calculation of the heat stress indicators. It reads the relevant data and stores the calculate heat stress indicators (i.e. HI) in the correct folder.
import os
import sys
import xarray as xr
import numpy as np
import dask.array as da
import time as t_u... | [
"clemens.schwingshackl@geographie.uni-muenchen.de"
] | clemens.schwingshackl@geographie.uni-muenchen.de |
9aac8f17b3bf10aea1ebed124b84c898077044d9 | 84b9bcdbd610e704093d4bbf4d0bcf7134fcedf0 | /analyze_net/analyze_net.py | 4930671216a2d2ca94d7a7fb4dfa15d084300af0 | [] | no_license | JerryTom121/cite-network | 1813df9189cd6e8b10ebc15d00230c0466176114 | 29dfddbb43df6d48ed3b4dc28001489a7809d9ef | refs/heads/master | 2021-01-19T23:25:41.583449 | 2016-11-17T16:14:28 | 2016-11-17T16:14:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,319 | py | # -*- coding: utf-8 -*-
'''
Using the `graphml` files and two "comparison networks," conduct the actual
network analysis.
The "comparison networks" are citation networks grabbed from arXiv, with papers
from January 1993 to April 2003. They can be found at
<https://snap.stanford.edu/data/cit-HepPh.html> and
<htt... | [
"hicks.daniel.j@gmail.com"
] | hicks.daniel.j@gmail.com |
1a43fcbec667b510a0a1ff82df246326a83a70fb | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/andersbll/deeppy/deeppy/model/__init__.py | 3fc2414a36c1575b1ca19d8106a70e4a76258fb6 | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 169 | py | from .adversarial import AdversarialNet
from .feedforward import FeedForwardNet, ClassifierNet, RegressorNet
from .variational_autoencoder import VariationalAutoencoder
| [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
83f9cbcb975b846ee5c5d189eda62303064a4f46 | 68f962de0af192f098b35b93d50e258276c70a09 | /pandastest.py | a2cdf84d90f55bb94b9f03442d13dfccd7ea6b3c | [] | no_license | judewellsbbk/PwD | cc7592448ead700553bc13677e3517835bd048f8 | 56947989cbc09f2405a6d1003762a2d4933f46d0 | refs/heads/master | 2020-03-15T11:36:38.203228 | 2018-05-05T18:18:17 | 2018-05-05T18:18:17 | 132,124,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | import numpy as np
import pandas as pd
def main():
my_dict = {'A': [1, 2], 'B': ['John', 4]}
my_data_frame = pd.DataFrame(data=my_dict)
print my_data_frame
print my_data_frame.dtypes
# a further demo
my_df = pd.DataFrame(some_filling(), columns=['A', 'B', 'C', 'D', 'E'])
print my_df... | [
"jwells03@dcs.bbk.ac.uk"
] | jwells03@dcs.bbk.ac.uk |
a3f63dab27f381f4aacc708a5fc6df1166817262 | 2402d36afad839c13986bcc9b735ef11a6b30960 | /chapter_03/3.4_guest_list.py | c0bfbec8e03e69f304db2cec0849742c47a1f44a | [] | no_license | Blanca-7/Python-study | 3d12983069a7bab82d6ebdd58b160f3477e6c7e1 | 6a26b6fbc1120e14e1534a86c024d35bfb2bff36 | refs/heads/master | 2023-02-26T10:04:29.380721 | 2021-02-05T10:48:45 | 2021-02-05T10:48:45 | 334,710,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | guests = ["Dr. Einstein","Bruce Lee","Elon Musk"]
invitation = "I'd like to invite you to my dinner Party"
print(f"Dear {guests[0]}, {invitation}")
print(f"Dear {guests[1]}, {invitation}")
print(f"Dear {guests[2]}, {invitation}")
#alternative way with concatenation:
#print("Dear " + guests[1] + ", " + invitation)
| [
"noreply@github.com"
] | Blanca-7.noreply@github.com |
2186bff0599d7d8a807bfb4ac72df8ad8111e6e4 | 8818aa1691c6773d46a9b21bc8dd4f3d2fbd36d5 | /predict.py | 238faf59589c3efd14e3487144898e3d6a052ef4 | [] | no_license | ammarsyatbi/Image-Classification | bab7e4ec5ff28298080c0c11ea8aa42df0415359 | 0dbf093966b6d80c69e96d70a006c5da8c92af53 | refs/heads/master | 2023-03-25T18:26:01.015802 | 2021-03-25T09:33:11 | 2021-03-25T09:33:11 | 350,969,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | import os
import tensorflow as tf
from tensorflow import keras
import numpy as np
from config import cfg
import utils
import json
CLASS_NAMES = utils.read_class_names(cfg.MODEL.CLASS_NAMES)
test_imgs = os.listdir(cfg.MODEL.TEST_DIR)
model = tf.keras.models.load_model(cfg.MODEL.SAVE_DIR)
predicted = {}
bad_imgs = []
... | [
"ammarsyatbi@github.com"
] | ammarsyatbi@github.com |
05b2aab7c6f1c9f3cb6f7ade63d62490fdd1c8db | 66f6be86059bf37100744b421d5d7f252b8a5126 | /victoria_inventory/__manifest__.py | ad49bad4c624b19e11a9d2c36c7111048dd25255 | [] | no_license | tate11/victoria_basement_12 | ec19d442a59beecfd09d60adc4af204179a40243 | a96baa19b48a42d42fdbdc1e525d0dbb629a75f2 | refs/heads/master | 2020-04-24T23:30:06.103458 | 2019-02-04T04:06:39 | 2019-02-04T04:06:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Victoria Inventory',
'version': '12.0',
'summary': 'Victoria Inventory Custom',
'sequence': 7,
'description': """
Victoria Inventory
==================
Inventory Custom
""",
'categor... | [
"rohit.kumarsrivastava@envertis.com.au"
] | rohit.kumarsrivastava@envertis.com.au |
327ad346e94f6d6d3c3be000b3c703d8718a101f | 784dda4c400d4e5c42f57e9a7d48883692b2a931 | /pyhawkes/utils/data_manager.py | 3dc6d25d07e8bd12b7188d28e252be3626d20442 | [
"MIT"
] | permissive | yxtj/pyhawkes | bd942aded06dba3dd390a47e28702dcba124961b | ecc6dc23e516a7b06d64e5dbd10c8861b01bd955 | refs/heads/master | 2021-01-15T18:31:12.539149 | 2015-02-25T23:35:50 | 2015-02-25T23:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,746 | py | """
Data manager handles loading the .mat file and setting up the data on the GPU
This could be extended if we ever moved to a distributed setup with multiple GPUs
"""
import numpy as np
import scipy.sparse as sparse
import scipy.io
import os
import pycuda.autoinit
import pycuda.compiler as nvcc
import pycuda.driver... | [
"scott.linderman@gmail.com"
] | scott.linderman@gmail.com |
25fdc78dc70a5662efdf229ddd03144e6c0355bc | 92028af4d98547db0fd870ebd9832dbc82f9df79 | /mm.py | 36b1cc73386d3662b712c76274258ee2d2e2b712 | [] | no_license | tineroll/mmPictures | a1ba2fd385cb8609f72792206cf65c34cdcbba94 | 5cc692da657a277416673fa6371764d9f3838284 | refs/heads/master | 2021-05-11T20:33:57.983531 | 2018-01-14T16:03:04 | 2018-01-14T16:03:04 | 117,442,382 | 0 | 0 | null | 2018-01-14T15:31:59 | 2018-01-14T15:31:59 | null | UTF-8 | Python | false | false | 4,595 | py | #!/usr/bin/env python
# -*-coding:utf-8-*-
import urllib2
from lxml import etree
from os import system
"""
第一步: 从 http://www.zngirls.com/rank/sum/ 开始抓取MM点击头像的链接(注意是分页的)
#第二部 http://www.zngirls.com/girl/21751/ 抓取每一个写真集合的链接(注意是分页的)
#第三部 http://www.zngirls.com/g/19671/1.html 在写真图片的具体页面抓取图片(注意是分页的)
"""
pciturelist=[]
h... | [
"394804550@qq.com"
] | 394804550@qq.com |
39f7638fa87ac3f507bbfd104317deef1e645d99 | fdb65605f3aef4f502debaa0fc9df6860e0e193f | /python/app.py | 79203b0ed32ee36d11715fd66ec404f66e17b6c8 | [] | no_license | twy3009/sparta | 5fad123dcfec5f0b6605ae11a22445996fd6e5d6 | 215e1d3e9f21f3ba8412114adf2e402b9f9960ae | refs/heads/master | 2022-04-22T02:19:58.229701 | 2020-04-26T05:57:45 | 2020-04-26T05:57:45 | 245,768,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | from flask import Flask, render_template, jsonify, request
app = Flask(__name__)
import requests
from bs4 import BeautifulSoup
from pymongo import MongoClient # pymongo를 임포트 하기(패키지 인스톨 먼저 해야겠죠?)
client = MongoClient('mongodb://test:test@15.164.103.10', 27017) # mongoDB는 27017 포트로 돌아갑니다.
db = client.dbspart... | [
"61925189+twy3009@users.noreply.github.com"
] | 61925189+twy3009@users.noreply.github.com |
7e8116443903d033a1a47a2ffed807aec258d0c3 | 49e17d736df9889b3a0d91705abd0f3ed579d17c | /quests/Temple_Of_Ikov.py | b4d3f0e615c687daab5b6c89a084be6e2400e914 | [] | no_license | TheWhirl/RunescapeQuestWebsite | 4f258c04a1c1e6bb9f6d9e0fa63fdcab452ccfc2 | 8d5dacbc8251bd1f2dded4ffa04400ed48e0f1fb | refs/heads/master | 2020-05-16T02:54:35.603906 | 2018-12-23T13:03:58 | 2018-12-23T13:03:58 | 182,643,424 | 0 | 0 | null | 2019-04-22T07:22:00 | 2019-04-22T07:21:59 | null | UTF-8 | Python | false | false | 443 | py | import os
import sys
sys.path.insert(0,
os.path.dirname(os.path.realpath(__file__))[
0:-len("quests")])
from QuestInfo import Quest
class Temple_Of_Ikov(Quest):
def __init__(self):
super().__init__("Temple of Ikov")
self.age = 5
self.difficulty = "Expe... | [
"musomaddy@gmail.com"
] | musomaddy@gmail.com |
5d5f3479b821973bba167087ee73016fa0ec3dc2 | 51f855b1baf5945b47f7042a5cb44f62eccf5e56 | /year.py | a1079171b1cfb051274ad657ceafb2f00b6d4332 | [] | no_license | swartzstrange/python3 | 1766940173497072dc2dd7293aba1a4e6f9e231c | 385e860e923e16a7d0158c11e5764ce2131f9780 | refs/heads/main | 2023-02-02T19:33:11.642505 | 2020-12-21T10:33:50 | 2020-12-21T10:33:50 | 319,213,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,119 | py | import tkinter
import os
from tkinter import *
from tkinter.messagebox import *
from tkinter.filedialog import *
class Notepad:
__root = Tk()
# default window width and height
__thisWidth = 300
__thisHeight = 300
__thisTextArea = Text(__root)
__thisMenuBar = Menu(__root)
__thisFileMenu = ... | [
"noreply@github.com"
] | swartzstrange.noreply@github.com |
3fafc5008c7ab7eaf1785a939ad7043423ac6756 | 1fad9fde9da1e5b51997d3f6ae58dd371f43339e | /s3_wrapper/__init__.py | c23781168fffffa3ad1c24480c7e01653b6cb19c | [] | no_license | penmark/s3-wrapper | ca5a3c44dedf0b178bfec834916e9ecc74b40a83 | 0de5e3d50b075e929ae52b2420c815a47821f262 | refs/heads/master | 2021-01-12T10:00:52.443459 | 2017-02-01T13:49:32 | 2017-02-01T13:49:32 | 76,335,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | import boto
from boto.s3.connection import NoHostProvided
def percent_callback(num_bytes, total_bytes):
print('\b'*10, '{:.2f}%'.format(num_bytes / total_bytes * 100), sep='', end='', flush=True)
class S3(object):
def __init__(self, options):
if not options.host:
options.host = NoHostPro... | [
"pontus@wka.se"
] | pontus@wka.se |
77f2a108100941515d525b082674a52ef5e8f944 | 3d8b5343a272a8fb145def54f941a4005993365e | /week8/autoenc.py | e3db9fe5b9ad95909ba1d460b0b6543a28256700 | [] | no_license | gronlund/au_ml18 | 1725481c22f4877b10bb294371f32677b1c1cbd0 | 2c00d43b69f12780a9bef55842b0a273cce1715b | refs/heads/master | 2020-03-26T21:16:50.278360 | 2018-10-22T11:48:09 | 2018-10-22T11:48:09 | 145,378,775 | 1 | 33 | null | 2018-09-17T16:28:27 | 2018-08-20T06:58:36 | Jupyter Notebook | UTF-8 | Python | false | false | 2,739 | py | import os
import urllib
import urllib.request
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import matplotlib.pyplot as plt
from torch.utils.data import Dataset, DataLoader
# First we create a torch data loader - we have made that for you
def load_au_... | [
"jallan@cs.au.dk"
] | jallan@cs.au.dk |
317dad88744c1269052736adadbc85b1b3cbd13d | 27ff304d692664a492987904f195a58a342d5864 | /python/scripts/blast_checker.py | 63b24b0f557d0400194c36cbb2f21a8a56c57d2f | [] | no_license | grmwld/crg | b252387b01fc77fa31bae0c2b9824cd86f583e36 | 330382f7734e7af38e43f64594ed119eebad0cad | refs/heads/master | 2021-05-27T23:20:02.386205 | 2010-06-24T21:45:56 | 2010-06-24T21:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | #! /usr/bin/python
import sys
import os
import optparse
import shutil
import logging
from cStringIO import StringIO
sys.path.append('/users/rg/agrimaldi/Code/python/python/lib/')
from AGBio.ncbi.BlastWrappers import *
from AGBio.Utilities import *
sys.path.append('/users/rg/mmariotti/libraries')
sys.path.append('/users... | [
"sopo.dev@gmail.com"
] | sopo.dev@gmail.com |
8b3708abb8c3b40eba5a9ea9072c5346f37edab3 | a5241edc493c0fe8e5743bbdd3f23dc357b8b883 | /third/urllib_error.py | 3f4ce78730a9505b6db09b8c1b41536c5a92f2d9 | [] | no_license | yangyangzijun/learn_pys | 25a06d8c7a4c707d218ff645edca63e56a158c9e | f5f024d172d66ecf3ee907a90f44a99f385b58ad | refs/heads/master | 2020-03-29T02:26:21.966959 | 2018-10-25T14:06:22 | 2018-10-25T14:06:22 | 149,436,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import urllib.request
import urllib.error
try:
data=urllib.request.urlopen("http://www.baidu.com")
print("ok")
except urllib.error.URLError as e:
print(e.code)
print(e.reason)
| [
"811295558@qq.com"
] | 811295558@qq.com |
7d8521d5854a94d73e095b63e9f8b8424aef96cd | c1ec53e988ca8a091be2e6fdfa0113409e0b8ba4 | /build_cgd_train.py | eb655dd4c6edb87649494938954461e2e20d49bf | [] | no_license | shehancaldera/robot_grasp_prediction | b30ddcb68b3c6a3a8f880434535cfd2796184fa8 | 3c0e697d02902a1ca08a4f70e7e0680a7bc2e678 | refs/heads/master | 2020-03-15T11:26:54.507758 | 2018-05-04T09:45:26 | 2018-05-04T09:45:26 | 132,121,076 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | import os
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import keras
from keras.preprocessing import image
from keras.applications.inception_v3 import preprocess_input
from keras.backend import backend as K
base_dir = '/media/baxter/DataDisk/Cornell Grasps Dataset/original'
train_dir = os.pa... | [
"noreply@github.com"
] | shehancaldera.noreply@github.com |
0dd9e260541d802e91f2058473d8baff323b757c | 60a29068e369900bd1de946bdbc7f9cf61a23127 | /manage.py | c7299db7505f33e3eb96f61001d69f0bc600b78c | [] | no_license | crowdbotics-apps/circuit-web-version-22188 | 4e44be1fb2d6ded8e87f731fd3a2c85e3cfec19e | 7eed4cb920846adf871057b150d0eb72b794a7aa | refs/heads/master | 2023-01-21T08:59:50.677549 | 2020-11-21T22:43:33 | 2020-11-21T22:43:33 | 309,153,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'circuit_22188.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3ab8865d156fd4539ee009f877d33e4d2f16b8ae | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=13/params.py | 28bdc367d387d98fbf09079da0322b1eedc608ea | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.628952',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 13,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
8498743e7bbfaff848a13b6460ad182c482df5ef | 3ca892ab450d54f730dea381d4f2c5c896badc98 | /avalon/vendor/qtawesome/animation.py | a9638d74b0dbe096a6d18b73b7d81d689c932e91 | [
"MIT"
] | permissive | Colorbleed/core | d5fa5746a179ecea9da0c0bdcdd6025f71ab9234 | a6601eef08eb9307cf7bf3c056785282fc377184 | refs/heads/master | 2021-07-04T22:19:49.255251 | 2019-03-08T12:21:58 | 2019-03-08T12:21:58 | 93,861,791 | 6 | 3 | MIT | 2019-12-02T08:44:54 | 2017-06-09T13:32:10 | Python | UTF-8 | Python | false | false | 1,284 | py | from ..Qt import QtCore
class Spin:
def __init__(self, parent_widget, interval=10, step=1):
self.parent_widget = parent_widget
self.interval, self.step = interval, step
self.info = {}
def _update(self, parent_widget):
if self.parent_widget in self.info:
timer, ang... | [
"roy_nieterau@hotmail.com"
] | roy_nieterau@hotmail.com |
07750ee3854043de3103fc109c88235690b26540 | 234f1b4fadd5253837e8acfb134a4330be783862 | /alien_invasion/files/ship.py | 09b5f8ad9818597cbbe6faf455c17ab0a3a482df | [] | no_license | mozoku24/Python-Crash-Course | cad2b433a9aef8fdeb4be1650d6d012df389ae87 | 3590801c9cfe358edb8b9d0df591710794c65f13 | refs/heads/master | 2022-12-03T00:04:26.962319 | 2020-08-19T07:18:40 | 2020-08-19T07:18:40 | 286,694,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | """
ship模块,包含ship类,负责管理飞船的大部分行为。
"""
import pygame
from pygame.sprite import Sprite
class Ship(Sprite):
def __init__(self, ai_settings, screen):
"""初始化飞船并设置其初始位置"""
super(Ship, self).__init__()
self.screen = screen
self.ai_settings = ai_settings
#加载... | [
"noreply@github.com"
] | mozoku24.noreply@github.com |
92bcd6a9e32f3b20e70dab4cd65ec40d73a7a67a | a2f80a041964940132b4e5c4a1b63d6df444c7a2 | /geokey_wegovnow/tests/test_urls.py | 844703ef6f2574f409ca69684adf61e51b217da5 | [
"MIT"
] | permissive | ExCiteS/geokey-wegovnow | c41774c9c2c9aa2bae9827af5b25f83cc48339bc | 66df7e17fa3eb2d8da2e56e39236b019f98a2a08 | refs/heads/master | 2021-01-17T18:32:19.711898 | 2018-10-08T15:20:38 | 2018-10-08T15:20:38 | 71,469,698 | 0 | 0 | MIT | 2018-11-07T16:39:34 | 2016-10-20T14:09:02 | Python | UTF-8 | Python | false | false | 1,216 | py | """Test all URLs."""
from django.test import TestCase
from django.core.urlresolvers import reverse, resolve
from geokey_wegovnow import views
class UrlPatternsTests(TestCase):
"""Tests for URL patterns."""
# ###########################
# TEST FOR ADMIN VIEWS
# ###########################
def t... | [
"j.osokinas@mappingforchange.org.uk"
] | j.osokinas@mappingforchange.org.uk |
f4f6ff305e1272bdd3cbe21061c7609ed4be5b08 | 9cef360429d6a5c7eee4e223a132760a11d955dc | /ex1.py | bdfee7d05f3b168680bb2c66e53b3d7dac09e02d | [] | no_license | JIANG09/LearnPythonTheHardWay | 12df059ad02e3d413b0fb8701fb718ce8dcb25c7 | 6f5dc3554e6f02e74b227b89254fb47158d227f0 | refs/heads/master | 2021-07-10T19:00:05.313674 | 2018-12-11T14:11:07 | 2018-12-11T14:11:07 | 128,955,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # coding=utf-8
print("Hello World!")
print("Hello Again")
print("I like typing this.")
print("This is fun.")
print('Yay!Printing!')
print("I'd much rather you 'not'")
print('I "said" do not touch this.')
print('希望爸爸胃口好心情好!') | [
"2907411054@qq.com"
] | 2907411054@qq.com |
ac78f5706a5fa6ab691f744614ebe243eeb0e6e6 | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/SimpleXMLRPCServer/SimpleXMLRPCServer_dotted_name.py | 927f913a51fc70c40159c7b5e56b864de61651e3 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 537 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""
__version__ = "$Id$"
#end_pymotw_header
from SimpleXMLRPCServer import SimpleXMLRPCServer
import os
server = SimpleXMLRPCServer(('localhost', 9000), allow_none=True)
server.register_function(os.listdir, 'dir.... | [
"350840291@qq.com"
] | 350840291@qq.com |
1b33fef7283eefd3083d4c28ff5834eaadea6816 | 3573668d5401f909f8196fccf5f0cbd18b25c7c2 | /work/w08/d3/01-02-uploading-images-django/completed-code/catcollector/main_app/migrations/0005_photo.py | 75da4a08c9d30814cd91ddd81127376416c1b877 | [] | no_license | LordSnoosh/SEIR2222 | 8a015941a5585e8c167ff51f38cfc04b1f3f7d3a | 516d684ca01c46094c95ecef2a2af62e1aaa622f | refs/heads/master | 2023-04-11T16:30:41.260438 | 2021-05-14T15:22:49 | 2021-05-14T15:22:49 | 368,380,443 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # Generated by Django 3.1.4 on 2020-12-22 17:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main_app', '0004_cat_toys'),
]
operations = [
migrations.CreateModel(
name='Photo',
... | [
"jim.clark@generalassemb.ly"
] | jim.clark@generalassemb.ly |
0d3a6376d60f3cb52921f20e2916d6a0084c3025 | 9d460ddab78d26322419285575395edc850d76d8 | /account/urls.py | 36e4cbc4d6fa9edc617dc85151e04276ff858461 | [] | no_license | nhatvmgcs18725/My_first_project | 53d929a56dfaae6c29ef2657b3e1678068ed6edf | 50e4fa66c16204ce8cc75c734c200efa23ac93f8 | refs/heads/main | 2023-06-10T06:44:28.551520 | 2021-06-28T12:37:26 | 2021-06-28T12:37:26 | 381,025,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from django.urls import path
from . import views
urlpatterns=[
path('register',views.register,name="register"),
path('login',views.login,name="login"),
path('logout',views.logout,name="logout"),
path('cart',views.cart,name="cart"),
path('order1',views.order1,name="order1"),
path('home',views.ho... | [
"nhatvmgcs18725@fpt.edu.vn"
] | nhatvmgcs18725@fpt.edu.vn |
7bc8ce68bc7ce2b233b0fd4db87796b82fa4e26d | bc6df4755d7b82e49e2ce1bd7276bdd6fba6f511 | /source/inputters/dataset.py | 4f172b558ad2986a64dfd2863c5318289027e138 | [] | no_license | laihuiyuan/knowledge-driven-dialogue | 9ae9d16c770cb57283cba6d99c46b3f73ed50090 | c1df20d66f8a391f4d93bc8fceaa8fe9b08906bc | refs/heads/master | 2020-05-15T21:40:28.758151 | 2019-05-26T08:16:35 | 2019-05-26T08:16:35 | 182,506,013 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # -*- coding: UTF-8 -*-
"""
The original version comes from Baidu.com, https://github.com/baidu/knowledge-driven-dialogue
File: source/inputters/dataset.py
"""
import torch
from torch.utils.data import DataLoader
from source.utils.misc import Pack
from source.utils.misc import list2tensor
class Dataset(torch.utils... | [
"huiyuanlai.l@gmail.com"
] | huiyuanlai.l@gmail.com |
0e5fee26994b35cd5bd788f42ce452bc9d810c6b | 28dbb450fd31e1c7541668c5bbb0248edc13ea6f | /class 2708/exercise1.py | 29e740efc54847881b22b64e1df04ae32ae57797 | [
"MIT"
] | permissive | Gabriel-Fernandes1917/lab-the-python | 1cfcebeadb944295c92361abe2ddc62318c4975c | 0ed4fe7cf5e6c5447d3f021e50d390fc3af1b0d7 | refs/heads/main | 2023-07-23T21:19:26.716328 | 2021-09-10T11:23:20 | 2021-09-10T11:23:20 | 395,613,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py |
dictionary ={None:None}
loop = "sim"
while(loop == "sim"):
dictionary[0]=input('informe o nome\n')
dictionary[1]=input('informe o cpf\n')
loop = input('deseja continuar ?')
print(dictionary)
| [
"gabgui2001@gmail.com"
] | gabgui2001@gmail.com |
5d09f348af5df16b53230056d4eb3e6758f688c8 | 9d7a1f61e957c6ba688ba9acbd4810bfc41259bd | /crawling/scrapy/section04_03/section04_03/pipelines.py | d6934d13d6491f2787f92d85948d74fd762da68b | [] | no_license | saanghyuk/data_science_python | 17f4c35b9f4d197991fd0c03eecd06487ceaa9a0 | 7dde1ed2a3570edbdd716a43a4a340e64f7e2bb0 | refs/heads/master | 2023-08-24T10:47:13.478635 | 2021-11-05T15:37:33 | 2021-11-05T15:37:33 | 355,115,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
from scrapy.exceptions import DropItem
import ... | [
"saanghyuk@gmail.com"
] | saanghyuk@gmail.com |
1612efa81047e7a20e0dadd4e871ca67fee01b1b | f879be78003d04f5332ea18373ef0de1a17f5817 | /ververica_sdk/models/delete_api_token_response.py | 06f93515c8b1b040224e70273134aed534c4b518 | [] | no_license | justlikemikezz/ververica-sdk | 8228b1d1e9bb9c0530842162f771f7708d1b1555 | b946aa879cc80ad25b8c746b8c2cdc6bde086cbb | refs/heads/master | 2020-12-22T15:58:27.469611 | 2020-01-29T00:33:21 | 2020-01-29T00:33:21 | 236,849,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | # coding: utf-8
"""
Ververica Platform API
The Ververica Platform APIs, excluding Application Manager. # noqa: E501
OpenAPI spec version: 2.0.0
Contact: platform@ververica.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six... | [
"michael.handria@bird.co"
] | michael.handria@bird.co |
917fb6ce87aa5c3a0330750def2f94634054364c | d890ba28b707966d05dbb40bf8e73f9e07f85c78 | /new.py | d6ed5ce88af972ab15c54bd90d62db1ca2172104 | [] | no_license | abir0205/Mission-to-Mars | 7ed6e2aa5c80f8d52995eef71f3b43988e752e48 | e9628204a30d193d4c4934e79121b96f3144f5ce | refs/heads/main | 2023-06-07T01:35:48.592289 | 2021-07-01T03:28:14 | 2021-07-01T03:28:14 | 380,420,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | executable_path = {'executable_path': ChromeDriverManager().install()}
browser = Browser('chrome', **executable_path, headless=False)
# 1. Use browser to visit the URL
url = 'https://astrogeology.usgs.gov/search/results?q=hemisphere+enhanced&k1=target&v1=Mars'
browser.visit(url)
hemisphere_image_urls = []
main_url = ... | [
"Ahossai7@binghamton.edu"
] | Ahossai7@binghamton.edu |
f0128317036c9b966541e24a1e1efe172ad2fce5 | cc5eb8eb50d64ffbca780c42a908053ec549f295 | /python-in-a-day-scripts/ch12 program/script_002.py | 43129ebbb2a9f5b3ad633d6fc7d93d8accaedfbb | [] | no_license | bemagee/LearnPython | 328b1f7a9d5046fe1503aece8a5134a7dd2727d2 | a42565f8fb45f9e2ebbcdcf359ebb9092bf837c2 | refs/heads/master | 2020-12-13T02:45:30.308604 | 2016-10-24T03:09:12 | 2016-10-24T03:09:12 | 10,793,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Our epic programmer dict from before
epic_programmer_dict = {
'Tim Berners-Lee' : ['tbl@gmail.com', 111],
'Guido van Rossum' : ['gvr@gmail.com', 222],
'Linus Torvalds': ['lt@gmail.com', 333],
'Larry Page' : ['lp@gmail.com', 444],
'Sergey Brin' : ['sb@gmail.com', 555]
}
print epic_programmer_di... | [
"bemagee@gmail.com"
] | bemagee@gmail.com |
c10986ff491244041f84595f91b37372f02b12ba | 22cfcaff5b211ddcf447a37a7409d9097b198d96 | /ex4301.py | 941aa165787cbff286f512a93bd0f98e63303f5d | [] | no_license | CasCoy/LPTHW | 03920c696db4a2423c9b2705b2d7ee5a7c08c460 | 3d0ed0a4ffc914e474cd7abb7d6cef15bf65d4ce | refs/heads/master | 2021-08-30T11:25:37.100736 | 2017-12-17T18:28:09 | 2017-12-17T18:28:09 | 109,824,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,435 | py | # -*- coding: utf-8 -*-
from sys import exit
from random import randint
class Scene(object):
def enter(self):
print "This scene is not yet configured. Subclass it and implement enter()"
exit(1)
class Engine(object):
def __init__(self, scene_map):
self.scene_map = scene_map
def pl... | [
"noreply@github.com"
] | CasCoy.noreply@github.com |
1b478c8901f32352057ea471bc6af7e5e6f56e34 | 970a9020f2ee7ec81feb6f59afc5f035d84ef784 | /guessingGame.py | 5154dac801192283ab00e3141fdd2de0225d450e | [] | no_license | kml2p3/CS4830-Exploration2 | 0896f3afa3f31dcd050bf306df134515fba63895 | cc99b402b24002f017fe520cd78096bc065ad9fa | refs/heads/master | 2020-03-30T02:42:15.147006 | 2018-09-29T00:46:13 | 2018-09-29T00:46:13 | 150,644,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import random
number = random.randint(1,9)
guess = 0
numOfGuesses = 0
while guess != number and guess != "exit":
guess = input("What is your guess? ")
if guess == "exit":
break
guess = int(guess)
numOfGuesses += 1
if guess < number:
print("Too low!")
elif guess > number:
print("To... | [
"kml2p3@mail.missouri.edu"
] | kml2p3@mail.missouri.edu |
970ff15cbbbfb49cf8d755a5cd7dcc7e24404914 | 1b6f7e2b9482cd7db1deebebee9a2f0dbe67c868 | /app/app/urls.py | 0e99ccf47fb4627448a7bd607a6bf694c6ed4784 | [
"MIT"
] | permissive | Yi-Gaoqiao/homework_todo_api | bc1fcb4a0e6056bb39ea164d4851ac445c23226a | b803aea68229e0e1bc084be2f36fd668a2d911e3 | refs/heads/master | 2022-11-19T13:48:40.142377 | 2020-07-12T08:04:11 | 2020-07-12T08:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | """app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based vie... | [
"2bsttas@gmail.com"
] | 2bsttas@gmail.com |
bfbb3c1be656c0a35f38cde384ddf61d7a4de0c4 | 95f22aa6d38a959eb9d870bbf83afa54b0f619ab | /plugin5/main.py | deeef38195e68dccaffb223ffbb17bec777a43d6 | [] | no_license | tfmoraes/inv_plugin_test1 | 3be54c9c6fbec00a0b964196410b9f7a04c4f6eb | 4ccd65ef5e85b256b62d903adf61162186b47e30 | refs/heads/master | 2023-04-06T00:39:45.064523 | 2021-05-04T21:36:58 | 2021-05-04T21:36:58 | 201,117,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | from pubsub import pub as Publisher
import vtk
from skimage.segmentation import felzenszwalb, slic, quickshift, watershed
from skimage.segmentation import mark_boundaries, find_boundaries
from skimage.util import img_as_float
from invesalius.data import styles
from invesalius.data import imagedata_utils as iu
from ... | [
"totonixsame@gmail.com"
] | totonixsame@gmail.com |
625ca5383313c0120b33009c1c2af442f7029425 | 78d9b2f3d3c67a9bd66014ea1fd98729268e8343 | /src/accounts/views.py | af54b9f22f8836e6ee6fa4b06daff38fbffd6cea | [] | no_license | pedrozan/blog | 9ea69e4ef1c82d9815f7f801c07aadb34175a3db | e360672e88325db82c4f07874b14809e77e332f7 | refs/heads/master | 2022-11-13T04:15:52.165296 | 2020-07-04T16:21:06 | 2020-07-04T16:21:06 | 276,705,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse
from django.views.generic import CreateView
class UserRegistrationView(CreateView):
form_class = UserCreationForm
template_name = 'user_registration.html'
def get_successfull_url(self):
return reverse('login')... | [
"pedro.schleder@gmail.com"
] | pedro.schleder@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.