blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
445946957bef8d13316c06ac658f63550575cdd6 | 7e5dabc797452f1f41c109a5a57884392f2f1208 | /dados_visual.py | 80e89a150af9e76b61be49e021981d4c9a9e3e1d | [] | no_license | dev-fobrum/python-dices | e47d195078c9e29ad524748a3c0e8a0be3b6c412 | 4d33ca5a7178541f29c275b26d0f6c9b6c2aa029 | refs/heads/master | 2022-12-05T14:14:14.676780 | 2020-08-26T19:36:57 | 2020-08-26T19:36:57 | 290,587,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,356 | py | #! python
import matplotlib.pyplot as plt
import numpy as np
from random import randint
import sys
def roll_dice(jogadas, estatistica_por_numero):
a = 0
lista_de_jogadas = {}
while a < jogadas:
a += 1
valor_dado = randint(1, 6)
lista_de_jogadas.update({a: valor_dad... | [
"dev.fobrum@gmail.com"
] | dev.fobrum@gmail.com |
b540bb335ba07eb23f656de01bc48f3e0888a51e | 7fc678c2b1a0ef8849364e9c3e272b4509003796 | /py/merge-us-tracts-sql-code-gen.py | 482fce872848f536f179fddb32fdcccd07dcc606 | [] | no_license | nygeog/postgis_reference | ee7a599c2b60d713b5ae67039b5e5f4cfef9d7e8 | d3da41fa91dcd6e667d62cb3cc2439aed99f90a9 | refs/heads/master | 2020-04-05T23:28:14.942786 | 2017-08-12T16:51:29 | 2017-08-12T16:51:29 | 42,251,833 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | mergeTableName = 'tracts_2010_us'
attrList = ['geoid10', 'aland10', 'awater10', 'intptlat10', 'intptlon10', 'shape_leng', 'shape_area', 'geom']
attrListString = ", ".join(attrList)
statesList = ["01","02","04","05","06","08","09","10","11","12","13","15","16","17","18","19","20","21","22","23","24","25","26","27... | [
"daniel.martin.sheehan@gmail.com"
] | daniel.martin.sheehan@gmail.com |
1ced5c6e0a04b057cee4c476830695a129dc95c5 | 6dd400fec6f302bd0dcf309e2deec5de906d205c | /django_test6maria/myguest/urls.py | 9f02e4a7aca1f6b490e241f6a970eacb04b2142f | [] | no_license | Leo-hw/psou | aa938b7cfaa373a0980649125270c48d816202b0 | 70379156a623257d412bcccbac72986a61226bd4 | refs/heads/master | 2023-02-21T19:00:02.902510 | 2021-01-25T07:03:26 | 2021-01-25T07:03:26 | 332,616,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
from django.urls import path
from myguest import views
urlpatterns = [
path('', views.ListFunc),
path('insert/', views.InsertFunc),
path('insertok/', views.InsertFuncOk),
]
| [
"Bonghwan@DESKTOP-60LSTNL"
] | Bonghwan@DESKTOP-60LSTNL |
95eddf83bd4b6917c1d939d617554272f90d1382 | c7f198f127ec5a04bddd30cec40d90cb74500fd9 | /tic_tac_toe_MLP(2layer).py | 6250cb27e5333bd0b89ad87c326f088c303f013a | [] | no_license | jkh5178/2018_AI_tic-tec-toe | 62ef6c767914daf97dfa762bc631d47bd8cf901b | 5953b0269cbc76f152a8a269147d04a42ea27c48 | refs/heads/master | 2020-05-26T01:23:44.574633 | 2019-05-22T14:57:22 | 2019-05-22T14:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,307 | py | import tensorflow as tf
import numpy as np
def data_read(file_name):
r = open(file_name, mode='rt', encoding='utf-8')
return r.readlines()
def data_chainge(line):
in_data=line.split(",")
out_data_position=[]
out_data_class=[]
for i in range(len(in_data)):
if in_data[i]=='x':
... | [
"jkh5178@naver.com"
] | jkh5178@naver.com |
bcb19f8fb1787da9775d64921d14b4dcac367cb6 | 46daee0d91adbece5f05c3d6cea719610b8ddeba | /windows.py | 4e8dec4960e37efe15b0ffa81a5b29ace5d97f47 | [] | no_license | taya-mart/GUI | 7d84d27f23f7b89c59b1686444433d81bcd06745 | 5c4994e290f41dcc19509cede9d97849a3c71668 | refs/heads/master | 2021-03-13T07:02:55.324944 | 2020-03-11T18:33:04 | 2020-03-11T18:33:04 | 246,651,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from tkinter import *
import random
root = Tk()
root.title("W I N D O W S")
root.geometry("500x500")
root.config(bg="black")
baseFrame = Frame(root, width=399, height=299, bg="black")
baseFrame.grid(sticky=NSEW)
topFrame = Frame(baseFrame, height=100, width=300, bg="purple")
topFrame.grid(row=0,sticky=N,columnspan=2... | [
"taya.martinez@tooeleschools.org"
] | taya.martinez@tooeleschools.org |
c0b1823a5549769b3efe0b1033816e1186aca332 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A2/python/task/BD_174_261_754_XxLnqgI.py | e6c151bc96e99f32096cdee7f9cd74743a158637 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 2,960 | py | from __future__ import print_function
import re
import sys
from operator import add
from pyspark.sql import SparkSession
def computeContribs(urls, rank):
"""Calculates URL contributions to the rank of other URLs."""
num_urls = len(urls)
for url in urls:
yield (url, rank / num_urls)
def parseNe... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
2ca4e05159e3892662adb7c0299e55a9472d802d | f8aa0c76ed84eecb93ea094c7efb28bf49fc37a5 | /tests/test_bucketlist.py | b3d833c3efa492589d8cab27a0b051ee56319d73 | [] | no_license | NaomiMariga/bucketlist | 48d2a0d9148a7983cacb21b6b9842e7c1ac1815a | aa20064d51a30da5c228eb46ab3135d678b39166 | refs/heads/master | 2021-01-01T06:35:54.467454 | 2017-07-28T06:57:57 | 2017-07-28T06:57:57 | 97,464,717 | 0 | 0 | null | 2017-07-28T06:57:57 | 2017-07-17T10:34:11 | HTML | UTF-8 | Python | false | false | 573 | py | import unittest
from models.bucketlist import Bucketlist
class TestBucketlist(unittest.TestCase):
def test_create_bucketlist(self):
self.assertEqual(self.bucketlist.create_bucketlist({
"name":"movies"
}), "Buckelist created successfuly")
def test_view_bucketlist(s... | [
"Kaburamariga@gmail.com"
] | Kaburamariga@gmail.com |
7d04d1d2200028fde6318a333f10fe458cce5f6b | 9551013ef6bfd5d6d049dc5b1951eb1515999bc7 | /src/tweet_translator.py | ba231daf0c9b47bc5038d9923992066e19de7492 | [] | no_license | VarsouPenny/ML_project | fbb5b2267bdebed723502c991981a686bdfa2fcf | cff9e29286da40f23a3a7364311ef25c3f297c19 | refs/heads/master | 2023-03-05T05:03:24.853163 | 2021-02-16T15:44:04 | 2021-02-16T15:44:04 | 321,322,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# Importa pandas library for inmporting CSV
import pandas as pd
# Imports the Google Cloud client library
from google_trans_new import google_translator
# Instantiates a client
translate_client = google_translator()
#Translating the text to specified target lan... | [
"noreply@github.com"
] | VarsouPenny.noreply@github.com |
71866234c3f74903d2646b73a917ca5d7c933254 | fcc7aed39a4a536946a20e8987fcc3704854c61a | /5/E/page_parser.py | 850541b37acbf43f436c3b91dd480d8699aaeb9e | [] | no_license | Gezort/Python-SDA | 5355b6493d121b6fc6ce9eae5fd9feb9eaf912ee | 46de6261a166e597ec1e5d8a919b2fe73fa5e9f5 | refs/heads/master | 2020-09-21T19:31:44.170447 | 2016-09-09T12:40:42 | 2016-09-09T12:40:42 | 67,797,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | from html.parser import HTMLParser
from urllib.request import urlopen
from urllib.parse import urlparse, urljoin
from bs4 import BeautifulSoup
def is_internal(url, ref):
return (urlparse(ref).netloc == urlparse(url).netloc and
urlparse(ref).scheme == urlparse(url).scheme)
def parse_url(url, graph):
... | [
"miron_55@mail.ru"
] | miron_55@mail.ru |
9d3227f5e41354ab27c042436012e9803093c27b | 90ad832838fb3b540accb9f8d3aee2292b1c01da | /blog/urls.py | 5db1436bdfc6ccb9aa05b0f1dbaa941d049bfa22 | [] | no_license | shouryagupta2/Blog | e513f791cba67ebc2dc16a9fd45ce0474edd83bd | 79aa4c39b26607ec8fa7d7a495ad9d9c04aeed6a | refs/heads/master | 2023-06-14T08:23:18.104030 | 2021-07-14T19:39:49 | 2021-07-14T19:39:49 | 386,055,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | from django.urls import path
from .views import (
PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView
)
from . import views
urlpatterns = [
path('', PostListView.as_view(), name='blog-home'),
path('user/<str:username>', UserPostListView.as_vie... | [
"shourya.gupta.ece19@itbhu.ac.in"
] | shourya.gupta.ece19@itbhu.ac.in |
de6921dce3a160ae4dad9ee43b7a29ee9f4d8404 | 95a2568c20993bd423791f6796ecff36d6a71d26 | /utils.py | 46c959bcd0ae74ab2155a51327b036899514e5fe | [
"MIT"
] | permissive | kugooer/nazurin-1 | 15dff321436eaf9ca75c79f3be9e41cc958063a2 | 092da0b77e50e3f81cc99ae7d86523efbf691baf | refs/heads/master | 2023-01-19T08:32:11.973482 | 2020-12-01T15:24:23 | 2020-12-01T15:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | from requests.adapters import HTTPAdapter
from mimetypes import guess_type
from shutil import copyfileobj
from functools import wraps
from pathlib import Path
from html import escape
from time import sleep
import requests
import logging
import re
import os
from config import DOWNLOAD_DIR, UA, RETRIES
from telegram impo... | [
"yyoung2001@gmail.com"
] | yyoung2001@gmail.com |
07cfe2b0bb4af1d51ebb49ddf7a5004dab670544 | b2014e69012dcff4f903862189616c9e97dd6537 | /minimun-network.py | 0681fc6ee51f2f198f270bd71c018d4e68342425 | [] | no_license | chameleonTK/projecteuler | 9162705a581f5f44719dd70b3b4320552b1b4eda | b64c65e82d981fb4551db33460086d357d5f15b1 | refs/heads/master | 2020-04-29T00:24:41.553900 | 2014-05-21T00:45:35 | 2014-05-21T00:45:35 | 175,692,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py |
fo = open("network.txt",'r')
edges = []
list_edges = []
i=0
cost = 0
for line in fo:
lst = line.strip().split(",")
j=0
for l in lst:
if l != "-":
list_edges.append( (i,j,int(l),) )
cost += int(l)
j+=1
edges.append(lst)
i+=1
N = len(edges)
def comparator(x,y):
return x[2]-y[2]
list_edges.sort(compa... | [
"pakawatnakwijit@isa3-dhcp-190-208.naist.jp"
] | pakawatnakwijit@isa3-dhcp-190-208.naist.jp |
d3cec4b8f205519a73578850997ccf043eae6acf | 2fc7fab5bda38404588f066da9501cd53e0b3c12 | /alembic/versions/afd80e56a9e7_.py | f41f94a21ab315484933098911e963ed6254c091 | [
"MIT"
] | permissive | UKnowWhoIm/FastAPI-Blog | 356c8a9e4ce846a43790da0d48e483d800d45b51 | e0f9653b6fdbe445148b6e0789da49515f3fd87d | refs/heads/main | 2023-02-03T10:44:23.240562 | 2020-12-21T03:35:50 | 2020-12-21T03:35:50 | 322,341,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """empty message
Revision ID: afd80e56a9e7
Revises:
Create Date: 2020-12-18 09:54:48.761636
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'afd80e56a9e7'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"51323747+UKnowWhoIm@users.noreply.github.com"
] | 51323747+UKnowWhoIm@users.noreply.github.com |
e05e33aa0076cde8b50bfb65a6037c4f915d00b9 | 8fb5e4706f8685ea1796e049d6dc49798a5df8f8 | /Practice-Problems/backspaceattack.py | c983f4a456b7c7ebd84271c6c651673788a5e6e8 | [] | no_license | abhishekthukaram/Course-python | 0ca8d529fbb41f805b2c5a14df5ab153427a4246 | 32111a0cb65309e1ab9185e0adbb3d4c2a713b50 | refs/heads/master | 2022-12-27T02:09:35.433315 | 2020-10-07T07:27:21 | 2020-10-07T07:27:21 | 269,257,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | """
Suppose a hash # represents the backspace key being pressed. Write a function that transforms a string containing #
into a string without any #.
erase("he##l#hel#llo") gives "hello"
erase("major# spar##ks") gives "majo spks"
erase("si###t boy") gives "t boy"
erase("####") gives ""
"""
def erase(txt):
new_strin... | [
"noreply@github.com"
] | abhishekthukaram.noreply@github.com |
0d9d45d96dd79d9e1c3bc2408a3f391808380dce | e874e3b4312b2beebaa42fa1489b50c618055190 | /Aula 2 Semana - Turtle - Preenchendo as formas.py | 2c20ce02817224506dde0a83bf5b80e026b47a64 | [] | no_license | CarlosDinart/PUC-SP | 611a9acb6a82b7db2174d2d439b5666db48a530e | 5f5f1ea4b9c55c7d20b2dcd92c461b3d8ebbb664 | refs/heads/master | 2023-01-23T06:46:42.492764 | 2020-12-09T19:41:01 | 2020-12-09T19:41:01 | 320,058,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from turtle import *
fillcolor('purple') # fillcolor() - esta funcao retorna ou defina a cor de preenchimento;
pensize(10) #pensize()- esta funcao defina a espessura da linha para a largura ou retorne-a.
# Se resizemode for definido como “auto” e a forma de tartaruga for um polígono,
#... | [
"cdinart@hotmail.com"
] | cdinart@hotmail.com |
92c116cd9eba50add2d8b2bfea83d41fc1b2a5dc | 16f7ab10d3f142387e32fbe80326775619613e95 | /photo/Scripts/pip-script.py | 530bea864d8721f14323f0188278fe8356e59604 | [] | no_license | czar2000/gallery | 555cfb54159be0b0185bf90b7be2dcc0610685e5 | c45267a694db2a6a70db7945e0bd5e93c5167bbe | refs/heads/master | 2020-05-07T08:44:26.758599 | 2019-04-12T11:02:32 | 2019-04-12T11:02:32 | 180,341,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!C:\Users\Admin\Desktop\gallery\photo\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"ceaserw82@gmail.com"
] | ceaserw82@gmail.com |
d8ccb895f7e96fb19ca18336cd157d9fbd9f17e5 | 713257e4a2183c5af8512eec6d650d87879f49cd | /Yelp/items.py | 0630c566b869cf27394bf69866d0b0daa1eb1ee3 | [] | no_license | tgomudur/Yelp-Reviews-Scraper | 492804670cec18a189d32e3043e53dc00b1b61d1 | 6849ccebda740d00e6f48e53a0edcc4b87b1c244 | refs/heads/master | 2020-12-31T04:41:15.094878 | 2016-01-31T00:18:36 | 2016-01-31T00:18:36 | 50,751,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ReviewItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
user_id = scrapy.Field()
name = scra... | [
"tgomudur@asu.edu"
] | tgomudur@asu.edu |
0f05e7f7bb995683069867c2615ec7c6329a7d54 | f99933f85d4fa419e059ee10bfa214a1da8c50de | /wordSearch.py | 602ffee8b1499a079a5525c1b5c59982ae24c83b | [] | no_license | drew-bowman/Word-Search | 234b012e222bcb0953e0e57e09b21dffaf4e0eb9 | 16e51cd7b9d8228a5926b781332043b2e0dfe1b7 | refs/heads/master | 2020-07-05T21:43:44.614688 | 2019-08-16T20:05:31 | 2019-08-16T20:05:31 | 202,788,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,272 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 16 21:38:08 2018
@author: Drew
"""
import random
import string
def make_blank_board(rows, cols):
board = []
# Fill blank board with *
for _ in range(rows):
row = []
for _ in range(cols):
row.append('*')
... | [
"dnbowmank14@gmail.com"
] | dnbowmank14@gmail.com |
13ad5a1dbccff4f90cdc5a04eca7b08ad277140d | 27e3b02f5d43d3511832c83abb2493d27f2c1f92 | /quanta_scraper/wsgi.py | 80fb2741b4a358c683900be1f73ca42aab0da075 | [] | no_license | deanhooker/quanta-scraper | 7efe25a2bf3097dfd47eb50ce4ceb6eba33dedef | cf73813e865b553156e003ac62eebc9278ce578a | refs/heads/master | 2022-12-19T07:44:16.970945 | 2018-10-18T05:02:58 | 2018-10-18T05:02:58 | 153,013,992 | 0 | 0 | null | 2022-12-08T02:58:15 | 2018-10-14T20:05:08 | Tcl | UTF-8 | Python | false | false | 403 | py | """
WSGI config for quanta_scraper project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"deanhooker91@gmail.com"
] | deanhooker91@gmail.com |
445a0a045fb8e96617f731d357ffd66b5dd0fb76 | a686365f2794a251071ced44e1cd11ce3c6bc9a8 | /venv/Scripts/vba_extract.py | 453e3ad4bbfd034a54a6ff2c838e84ad140042c1 | [] | no_license | Smeilb00/TFG | fa92e4967b5862ecbcc04a15b099dfe31a277a60 | eeccdf28c03e7bf442b59cc606a40addba9e554e | refs/heads/master | 2023-06-17T03:59:03.249504 | 2021-07-13T11:52:36 | 2021-07-13T11:52:36 | 380,795,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | #!C:\Users\Sbita\PycharmProjects\Test1\venv\Scripts\python.exe
##############################################################################
#
# vba_extract - A simple utility to extract a vbaProject.bin binary from an
# Excel 2007+ xlsm file for insertion into an XlsxWriter file.
#
# Copyright 2013-2021, John McNama... | [
"smeilb00@estudiantes.unileon.es"
] | smeilb00@estudiantes.unileon.es |
f4e4ec1f2f0bc3524b457999fc01cd3aada4f5ec | b3e6f788f666ddd48fd7e9ba29d95ab959b40ce6 | /HackerRank_Exercises/minimumDistances.py | d7b29a7049c5214d8bcf8bb3d422154ea86da05a | [] | no_license | BlessingBassey/Certifications-and-some-solved-online-exercises | 9a08270708b66ccf7feaa79157055f1e0fb8e5af | 2d8d722da386e9342d18bd78e06cc81bbe849874 | refs/heads/master | 2021-08-08T10:22:50.502141 | 2020-12-15T14:16:44 | 2020-12-15T14:16:44 | 231,464,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
'''
We define the distance between two array values as the number of indices
between the two values. Given , find the minimum distance between any pair
of equal elements in the array. If no such value exists, print -1
'''
from collections import defaultdict
def minimu... | [
"[bbassey@aimsammi.org]"
] | [bbassey@aimsammi.org] |
08a188b2b0b238ca841e8c7e0c1ff060319b6658 | 6049e7e6d21e2a4cf38a951081c1b6929815af99 | /testdata/DatasetGenerator.py | f824313dffe1c35c57a111ec344aaea49d57f8a4 | [] | no_license | ingvily/ML-hackathon | 187675203e9ad557ea21c8c6d6c62dc5694b8b66 | 323a4fd728f8fa8a3a741a125f5b758b25b427b9 | refs/heads/master | 2021-01-11T07:00:24.414810 | 2016-11-04T12:59:09 | 2016-11-04T12:59:09 | 72,342,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,679 | py | import csv
import numpy as np
import dateutil.parser
NUMBER_OF_PREVIOUS_PRICES = 10
years = []
months = []
days = []
prices = []
temperature = []
rainfall = []
snow = []
currency = []
def readSpotPrices():
with open('elspotprices.csv', 'rb') as csvfile:
spamreader = csv.reader(csvfile, delimiter=';', quo... | [
"birgitte.haavardsholm@gmail.com"
] | birgitte.haavardsholm@gmail.com |
28bf4464a2efd83c69f34f524ecbd2ccace7e79b | 73b06f6bdf99e02ab26b8c67e48ad1dbcd33294e | /src/data.py | 7b32cd10e450f33ee95fba8073a54af5d76a2cf7 | [] | no_license | it-fm/ann3depth | 34de41b7877f20fbfb7f501f52fa6b83135e43b2 | baa3455f873fe1a77b1132af410d285cf81b07e5 | refs/heads/master | 2021-06-27T00:47:58.515179 | 2017-09-15T09:20:19 | 2017-09-15T09:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | import collections
import os
import tensorflow as tf
import tfhelper
Pipeline = collections.namedtuple('Pipeline', ('files',
'labels',
'reader',
'convert'))
def _get_pipelin... | [
"info@sebastian-hoeffner.de"
] | info@sebastian-hoeffner.de |
bdaab8a2622622db82ab54061816343aa00f9c1b | 60ef18628de6fd2ad1b36045bd125f8962d48613 | /src/class_vs_instance_variables.py | 337ce3245373687c52ac9347b81380b169dd9082 | [] | no_license | deepakhb2/python_oop | 2aa171fc2428d2a3d259b3f9699ebfc1907ad0ea | ccd1f17aa05d435666fff0fbfa0fd66b77fe0643 | refs/heads/master | 2020-04-28T00:36:43.135880 | 2019-07-03T18:30:26 | 2019-07-03T18:30:26 | 174,822,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | class BestCourse:
website = "http://test.com"
def __init__(self, name):
self.name = name
course = BestCourse("Learn Python")
learn_command_line = BestCourse("Learn Command Line")
print(course.name)
print(BestCourse.website)
print(learn_command_line.name) #Object
print(BestCourse.website) #Cla... | [
"deepakhb2@gmail.com"
] | deepakhb2@gmail.com |
53741aa874ccb02f31907854d248f744869447b6 | 4815fc86a72488ff384d0559c330af82a820db15 | /__init__.py | fa36773447918ab4d03912c0d4557cc6e140221c | [] | no_license | andportnoy/vk | 38f86f3e25bccfa7d0b78bd6d095c672f4dbc097 | fcc5a3a17ef53b56364df16b40eb0ba6c952bbca | refs/heads/master | 2021-01-17T12:44:02.417142 | 2018-04-05T00:11:18 | 2018-04-05T00:11:18 | 59,158,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from . import users
from . import friends
from . import wall
from . import places
from ._core import read_token
# TODO add checking for Python version (Python 3 is mandatory)
| [
"aportnoy@ucsd.edu"
] | aportnoy@ucsd.edu |
9bd0e691b2cf9e835167a6fa49536ee50961c4f6 | fcf4b584795dbdbb24bfa5e68028f4c9ac070b69 | /useraccount/models.py | 5dc7dd17acbc76bebc82627ebb3fb0ecb9fbeae0 | [] | no_license | vineethjpalatty/testproject | 3e86ae3f030349f4c633a6ac5ef17814bb373ff6 | 1087ca2ecbd5e2fe72a4a5c628e674eeaa4d2b2f | refs/heads/master | 2022-12-01T14:33:30.155041 | 2020-08-13T17:48:27 | 2020-08-13T17:48:27 | 287,338,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
import pytz
# Create your models here.
class DateBaseModel(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class UserDetai... | [
"you@example.com"
] | you@example.com |
0d8772dde7748dab580a540c44e42d1f03cb7f57 | 23385b67dfd6d12af279507a3127f66062b8e3c1 | /apps/dentist_apps/gallery/urls.py | 99352704d6d648218e7a57587e7f3a402988eb28 | [] | no_license | Sola-Lufkin/iDentalk-WEB2 | 59a1376434c0d358f1e8ced9fb42d845485453e7 | 586cfbd5c5fb7623670f5c32f65d7f933f00ed66 | refs/heads/master | 2021-01-10T15:45:56.341571 | 2016-03-31T09:00:04 | 2016-03-31T09:00:04 | 55,135,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | # -*- coding: utf8 -*-
from django.conf.urls.defaults import *
# from django.views.generic.simple import direct_to_template
urlpatterns = patterns('gallery.views',
#医生病例模块
url(r'^ajax/d/gallery/getcases/$',
'case_list',
... | [
"solair007@gmail.com"
] | solair007@gmail.com |
f02f0c07768583e5d8cf8ec015a786ade7c11d29 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /LQgpGFMK9t9MELvph_9.py | 6cae0722546debd006fb3cb38f4989346c5cb5e9 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | """
Given a square list ( _n_ * _n_ size) implement a function that returns a new
list containing two lists equal to the two diagonals, in the following order:
diagonal 1 = from upper-left to lower-right corner
diagonal 2 = from upper-right to lower-left corner
### Examples
get_diagonals([ [1, 2], [3,... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8e1cbfd07a78da0b21816d98b3d50e96b2b1eb53 | 92bd5f7c38a3d4b21a5665f0e18a21334c9d7859 | /week_5/titanic_final.py | 0fc03605639496093d6ab34fdd628a3135eaf8e2 | [] | no_license | Arahansproject/Chatbot_20190316 | 7ac832e65a25e2dd89d8fcfa1bcbe4502649c951 | a57c8155af0a070dd0d4b4a1eaa3597f6f30a3b9 | refs/heads/master | 2020-04-29T06:42:16.249353 | 2019-03-16T05:20:52 | 2019-03-16T05:20:52 | 175,925,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,885 | py | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
from sklearn.neighbors import KNeighborsRegressor
from sklearn.neighbors import KNeighborsClassifier
from sklearn.tree import DecisionTreeRegressor
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import R... | [
"scm1128@naver.com"
] | scm1128@naver.com |
5e3f9f87ef9fec750e839eda115dfd7bb06d500a | 5ee5e19a42417fdfb5248c070d41b61b86465eaf | /abc_243/b.py | 8de66992b8f504c12ab2caefd7c905d55910e476 | [] | no_license | w40141/atcoder | 2e98cfe9fcb33aca8ac4567afecf603084964897 | 3ad74ca71ab77b929a097730047f4cf59ac38604 | refs/heads/master | 2023-08-08T21:37:42.744860 | 2023-08-07T00:50:34 | 2023-08-07T00:50:34 | 179,308,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | n = int(input())
a_li = list(map(int, input().split()))
b_li = list(map(int, input().split()))
same_num = 0
for a, b in zip(a_li, b_li):
if a == b:
same_num += 1
a_s = set(a_li)
b_s = set(b_li)
c = a_s & b_s
print(same_num)
print(len(c) - same_num)
| [
"w.40141@gmail.com"
] | w.40141@gmail.com |
abd5014fe7f609414f56f0c5502e2ffe8eb72e7b | bc441bb06b8948288f110af63feda4e798f30225 | /user_service_sdk/model/metadata_center/stream_metric_states_pb2.pyi | 9e2b0174cd0abac74c50c620d020df01b5ca5d95 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
8ba61262c059e952b15e3587e40bdf3fe82a14b6 | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/BCRX.py | 33bc27bd3c2d590575f2a523774f25c8f3d0e061 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://ir.biocryst.com/press-releases'
heade... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
86ea18d5630ea40060fe97e9d488e3a5e45692ad | 8d7cd64a3df1677a12b228166e6d242849b5f4a3 | /WebScraping.py | e38cb39fe20dbefcc32c7aea9b5ff023e91a8983 | [] | no_license | Tanishkjain1357/Browser-Read-Write-with-WebScraping | 16ce43520728d9a8a944a69f5a2a05c16aa15e59 | 93c71821b16de92fccffce1b800e906adcdccd66 | refs/heads/main | 2023-01-20T11:17:43.615142 | 2020-11-27T00:28:21 | 2020-11-27T00:28:21 | 316,363,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # By Tanishk Jain and Ameya Jain
from selenium import webdriver
import time
import numpy
import pandas as pd
# fields = ['HELLO']
# file = pd.read_csv(r'C:\Users\Tanishk\Desktop\WebWork\edgedriver_win64\AllValues1.csv',delimiter=',',skipinitialspace=True, usecols=fields)
# file = pd.Series(file['HELLO'])
# ... | [
"noreply@github.com"
] | Tanishkjain1357.noreply@github.com |
ab2d6a1f62f6aa30f20c64b54e428b0f0302b278 | 530b04c5d4490478f2a26616fdc74e72d7b83c74 | /automataCelular.py | 54c6abcd1867eebe8a4d3625bba3acbe7ed43f00 | [] | no_license | iabrilvzqz/Programas-IA-2019-1 | ba7da83da0b8b3e6f195fc6243bd71c5b820deb7 | 2c9161e53973495a5154cb1ce16e5e0de054f4f6 | refs/heads/master | 2020-08-04T01:42:14.776454 | 2019-09-30T21:19:11 | 2019-09-30T21:19:11 | 211,957,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | """ Programa 2. Evolución de un autómara celular unidimensional
Autor: Vázquez Sánchez Ilse Abril"""
def automataCelular(n, aut):
"""Esta función recibe como primer parámetro, el número de iteraciones que se desean realizar sobre el autómata y, como
segundo parámetro, el autómata sobre el que se trabajará, el cual... | [
"iabrilvzqz@gmail.com"
] | iabrilvzqz@gmail.com |
4fb416c8db93c90148b49a885fef5c46c18b4401 | 892a019cabfadb1554372e5d478317dafc121579 | /test_ec_util.py | 7a020535696395b9333331c99783e0d8ff3c8079 | [] | no_license | eldron/tlsmb | 8208fd272c7280e76843c8ff63c0bf5f8c2f9608 | d47b64e68d1bbc7a06f1c1e8e1a473b8c0703ec8 | refs/heads/master | 2021-07-09T15:03:04.031764 | 2018-11-30T13:10:09 | 2018-11-30T13:10:09 | 135,407,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from tlslite.constants import GroupName
from tlslite.tlsconnection import *
from tlslite.keyexchange import *
import binascii
group_id = getattr(GroupName, 'x25519')
kex = ECDHKeyExchange(group_id, (3, 4))
priv = kex.get_random_private_key()
share = kex.calc_public_value(priv)
print binascii.hexlify(priv)
print binasc... | [
"eldron@163.com"
] | eldron@163.com |
046e3ff12dfe2c60460d7c11c1a2bbb13b68dd46 | bddec548bb5cdd0cafa3e9f7c9b435fc45488764 | /tornado/utils/callapi.py | d2d0bed20fa7a2c5357505798f131a238a5854ab | [
"MIT"
] | permissive | maqg/wcrobot | 40214d556c6cee13fab1c94f2f3b47a888249906 | 7d026c1a34362c5434105c27c5bd25f08c6fabe2 | refs/heads/master | 2021-01-20T12:35:16.178019 | 2017-07-12T07:33:28 | 2017-07-12T07:33:28 | 90,384,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,499 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import http.client
import json
import time
from conf.config import VR_PORT, SERVER_PORT, OCTBS_PORT, API_TEST_KEY, CONSOLEPROXY_PORT
from models.ApiResponse import ApiResponse
from utils.commonUtil import buildRetObj
from views.api.center.api import PARAM_NOT_NULL
from core.e... | [
"maquangang@163.com"
] | maquangang@163.com |
fe10be165f5d160b669a4b90ef58ef4a391ba27b | baf592c7483656ca8270472c4b90d4a9f250882f | /Lib/site-packages/redis/sentinel.py | 8d7a5c6c43efd6cd73eb6fa80ffd2071af4afdec | [] | no_license | LuisACC/test2 | 10c0873df197a564506804abc246987e53d51943 | c910c7cda7d7602e84ad314b4f5a35b1219828b8 | refs/heads/main | 2023-03-23T00:16:47.536965 | 2021-03-12T11:06:03 | 2021-03-12T11:06:03 | 347,027,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,710 | py | import random
import weakref
from redis.client import Redis
from redis.connection import ConnectionPool, Connection
from redis.exceptions import (ConnectionError, ResponseError, ReadOnlyError,
TimeoutError)
from redis._compat import iteritems, nativestr, xrange
class MasterNotFoundError... | [
"l.a.casas685@gmail.com"
] | l.a.casas685@gmail.com |
cf5fddbf61aeb35918e576d1a1ac9e69f4b6b4c1 | ea5762e8754d6b039963b0125822afb261844cc8 | /src/compas_rhino/geometry/__init__.py | 443b7cf51d3a306b59d12a71d80dd9480b9c6d76 | [
"MIT"
] | permissive | gonzalocasas/compas | 787977a4712fbfb9e230c4f433b6e2be509e4855 | 2fabc7e5c966a02d823fa453564151e1a1e7e3c6 | refs/heads/master | 2020-03-23T20:17:55.126856 | 2018-07-24T22:30:08 | 2018-07-24T22:30:08 | 142,033,431 | 0 | 0 | MIT | 2018-07-31T14:54:52 | 2018-07-23T15:27:19 | Python | UTF-8 | Python | false | false | 597 | py | """
.. _compas_rhino.geometry:
********************************************************************************
geometry
********************************************************************************
.. module:: compas_rhino.geometry
Object-oriented wrappers for native Rhino geometry.
.. autosummary::
:toct... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
57b18dd6855898a1df66eb1176ebf607a4876e58 | 4b82170cded750fa4096b86fe0e933238418e8e5 | /todo/models.py | 8b07ab5ba9e3b6dbc2392ecb5e2659727beef82d | [] | no_license | vaboliss/ToDoApp | 0a0cfdc93a1186a6314f36982108af3cc019335f | 986644b07fbe467f34f4adb73ea0e160e902c710 | refs/heads/master | 2020-08-02T03:36:04.967644 | 2019-09-27T02:51:39 | 2019-09-27T02:51:39 | 211,222,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
text = models.CharField(max_length =40)
complete = models.BooleanField(default = False)
def __str__(self):
return self.text | [
"vabolis.ainis@gmail.com"
] | vabolis.ainis@gmail.com |
46654a1b47ebc2f823c3a1ceb8645e92e41c1d91 | aeb54dedaba98001dae7853deda4a3520e627a43 | /Code/baseline.py | d5ff59504997a863409fbdfd7bb781882333febd | [] | no_license | TianhaoFu/2020WN_CS545 | 69aabb1bca3b2d353d8eb845f0ff7ad40153853a | ac949325b34ad8d6d739fc5951ecae2500aee55d | refs/heads/master | 2023-06-17T17:06:35.707478 | 2021-02-28T01:59:55 | 2021-02-28T01:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,606 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator
plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号
def plotCM(classes, matrix, savname):
"""classes: a list of class names"""
# Normalize by row
... | [
"noreply@github.com"
] | TianhaoFu.noreply@github.com |
b5d4d48b7a85276c8077a311b7fe03009d6e1606 | c3856bed56ce93c895f0ccc97096ee0821c9f480 | /gce-python/env/lib/python3.6/_bootlocale.py | 6068756c2faad1c4bd75f4bfd95b03978c29eda1 | [] | no_license | nerdjerry/python-tutorial | 81fd9dc3209c1fcba96565cd67193b4257ae5d14 | 8214b2e95e22f1edbf3a936356d3716832e6a0f2 | refs/heads/master | 2020-03-28T16:04:10.675885 | 2018-09-08T09:21:38 | 2018-09-08T09:21:38 | 148,656,195 | 0 | 1 | null | 2019-10-15T05:21:34 | 2018-09-13T15:09:48 | Python | UTF-8 | Python | false | false | 62 | py | /Users/lucifer/devtools/anaconda3/lib/python3.6/_bootlocale.py | [
"lucifer@Prateeks-MacBook-Pro.local"
] | lucifer@Prateeks-MacBook-Pro.local |
d5f1f1474087567501ea1e7938926cdbbecb3f1f | 85741a686d9de2be2fa13542d8960dbe2d2eea62 | /python/exploration.py | 20a041753a5dfda8a26537067bde47b6969a3253 | [
"MIT"
] | permissive | rniemo/RIPTowingScam | dc370febf9be39907e90d38b222f43cbd9f0dc6d | 7b3d6e7f05957f8e962f3c01d60d158244a68411 | refs/heads/master | 2020-12-25T14:32:43.311230 | 2016-09-11T09:04:52 | 2016-09-11T09:04:52 | 67,889,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,082 | py | import pandas as pd
import os
import urllib2
import json
import uuid
import time
import random
import numpy as np
GEOCODE_API_KEY = 'AIzaSyCDLLv7B3zkbayizbk7pNp8m2eDbDDEJpA'
GEOCODE_API_KEY_2= 'AIzaSyAF-qWnBRw51IkQewmXpPg3BtfvDfeyUbU'
URL = 'https://maps.googleapis.com/maps/api/geocode/json?'
cwd = os.getcwd()
data_d... | [
"rniemo@gmail.com"
] | rniemo@gmail.com |
853ce949d9a4518176f9d01f437b8cb5627e0d10 | 28016cecafa14ec113ef406db7a4bcd4d3fa3acd | /ext/redis_cache.py | 78f34a5ba1e0ca5daf7e39bad481d96b8a688204 | [
"MIT"
] | permissive | wujunkui/torest | d92c9b598a1e03900a798a92bcc7f1a159b472ad | 40e730d4497a3d4b8478fec5b2c7a2927f65eec7 | refs/heads/master | 2021-07-04T15:29:26.916890 | 2017-09-28T07:43:53 | 2017-09-28T07:43:53 | 104,969,887 | 1 | 0 | null | 2017-09-27T03:55:47 | 2017-09-27T03:55:47 | null | UTF-8 | Python | false | false | 4,574 | py | #!/usr/bin/env python
# coding=utf-8
"""
装饰器版的python自动缓存系统,使用redis持久化数据库,
https://github.com/ma6174/pycache
初始化时请修改配置
"""
import hashlib
import datetime # 方便eval函数用
import redis
from functools import wraps
from tornado.gen import coroutine, Return
class Redis_Cache(object):
def __init__(self):
#pool设置... | [
"iwhitney@163.com"
] | iwhitney@163.com |
a3d773f412236f639f2640f897cf8786d6f1621a | ce43c0489aaaeea339b858ab87152e8a5715011d | /features_python/ImFEATbox/FeatureGroup/__init__.py | 7cb5246bca109bc97b0dc6edfccf20a3454fec45 | [
"Apache-2.0"
] | permissive | Andy25-4/ImFEATbox | 860235a8db3a42f18fbfd671c465f570c4535592 | e7361303f11390cfe880b9db23472903f69ee3f2 | refs/heads/master | 2023-03-18T17:57:07.706874 | 2020-02-19T09:42:54 | 2020-02-19T09:42:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
#from ImFEATbox.FeatureGroup import _global as global
#from ImFEATbox.__Features__ import __grouptypes, __FeatureList, getFeatures, getFeatureNames
# this file is to register features to feature groups.
# a group can have multiple features -> featureList
# a feature can also have multiple gro... | [
"heiko@yoga"
] | heiko@yoga |
d9e8b34c5ac7a9308e31af67fe437538024117a6 | a244bc61a1d66787a0dfa59ede9322dd6f4ea479 | /src/practices/test_mysql_read.py | c0b3a2d77f2035717d6ebe1fea0af32ecb3d3f23 | [] | no_license | wuyunlei95/hat | 02f88973ed4fb0a4744d04934bc47b7f70fdee34 | d9bcc4d7fc99845d6d7476993c4ef2b5f648fca7 | refs/heads/master | 2020-12-01T08:46:49.632794 | 2020-05-29T10:16:23 | 2020-05-29T10:16:23 | 230,594,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from common.base.box_driver import BoxDriver,BoxBrowser
driver = BoxDriver(BoxBrowser.Chrome)
sqlfile_path = '..\\data\\sql\\select_tt1.sql'
ip = '192.168.1.246'
user = 'tester_6'
pwd = '123456'
database = 'a'
sql_data = driver.get_sql_data(sqlfile_path,ip,user,pwd,database)
print(sql_data)
for i i... | [
"936765044@qq.com"
] | 936765044@qq.com |
f15cb86a3cc5409172f8ff629d97dae4b5e4df1d | 8fd261af0f1b392c0368e7015679b42a75f2b273 | /src/Sprint1/PBI_01/Register.py | b21cc2d4f75216321cabd306ed030f4cb5afd8ac | [] | no_license | JumperC2P/PandaDiary_PyTest | 63d5b3eb7ca4b5509cbf48a2c3050e3bce3fe07a | 2160b123adb739eb0ebd4f02c0c900e0c065143c | refs/heads/master | 2022-09-08T07:14:39.275622 | 2020-05-27T07:08:43 | 2020-05-27T07:08:43 | 259,207,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | import time
import json
class Register():
def start(self, driver, user, is_checked):
try:
register_link = driver.find_element_by_link_text('Register')
except:
driver.find_element_by_css_selector("button[type='button']").click()
register_link = driver.find_eleme... | [
"adslbbcc1949@gmail.com"
] | adslbbcc1949@gmail.com |
238926e1e27ba0c85af932dcf324999c52bab245 | 4dd8d5657faacf65a0344601e2b9bd33736f5c22 | /usePhp-linux.py | 0868b0a1bee9b9dd27d721a7de9344227485bc41 | [
"MIT"
] | permissive | kabanfaly/debian-machine-config | 63726510f3ed69c6900da499a367d3b76d0fb66c | e95e17caacc04065524d18788281b11d8f864cda | refs/heads/master | 2023-01-28T14:22:57.220677 | 2023-01-21T00:08:26 | 2023-01-21T00:08:26 | 69,630,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python3
import sys, os
PHP_VERSIONS = ['5.6', '7.2', '7.4']
version = sys.argv[1]
print ('Version to use:', version)
for v in PHP_VERSIONS:
if v != version:
print (' ------- Disabling mod php', v)
os.system('sudo a2dismod php' + v)
print (' ------- Disabling conf php', v)
... | [
"nfalykaba@gmail.com"
] | nfalykaba@gmail.com |
b2038b79165d9711f194bb613dda99871eb2eb4d | d3b77550a40b860970450e702b6bcd28d5f9b3e4 | /LeetCode/1464_maximum_prod_of_two_elements_in_array.py | 0a66f0faf3a2108ddb4d63c69809049704a12e67 | [] | no_license | CateGitau/Python_programming | 47bc9277544814ad853b44a88f129713f1a40697 | 6ae42b3190134c4588ad785d62e08b0763cf6b3a | refs/heads/master | 2023-07-08T03:08:46.236063 | 2021-08-12T09:38:03 | 2021-08-12T09:38:03 | 228,712,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """
Given the array of integers nums, you will choose two different indices i and j of that array.
Return the maximum value of (nums[i]-1)*(nums[j]-1)
"""
nums = [10,2,5,2]
def maxProduct(nums):
maxim = 0
for i in range(len(nums)):
for j in range(len(nums)):
if i != j:
... | [
"catherinegitau94@gmail.com"
] | catherinegitau94@gmail.com |
7fbaf810eac6b99b245e3c6328b6c8562940aa32 | 22075ce867d2b4cb5cc25b2bd9e73d5cc307cf9f | /project 1/venv/Scripts/easy_install-3.7-script.py | c20734f7d958f47b53f66bda3ae3c2a70c8e546f | [] | no_license | EHHS/Information-Retrival | 52a127f15432c11774773379003ed5f697506b1f | a2586efab638028636c50cb7fef6c3cb95be7ca1 | refs/heads/master | 2020-09-24T18:41:25.220872 | 2020-03-02T20:23:37 | 2020-03-02T20:23:37 | 225,818,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!"D:\Projects\Python\project 1\venv\Scripts\python.exe"
# 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?|\.exe)... | [
"51857638+EHHS@users.noreply.github.com"
] | 51857638+EHHS@users.noreply.github.com |
08e1f1bd44ea8b99b96238c1758527c5460ba180 | 00bf98264d4b22242f1808b84e4372d8b07c4272 | /BynryConsumerModule/crmapp/admin.py | 0a43387e02867739c152e288b22fbe3a8ccc39d8 | [] | no_license | BynryGit/New_consumerBynry | e2f9053b7425e4c2a3aabfa18571466fb7a864a5 | 9a352b2b352a622ecf5b729961494d0f2e41822a | refs/heads/master | 2021-01-20T12:55:30.575671 | 2017-09-27T07:39:24 | 2017-09-27T07:39:24 | 82,669,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
import models
# Register your models here.
admin.site.register(models.ConsumerData)
| [
"swapnil.kadu@tungstenbigdata.com"
] | swapnil.kadu@tungstenbigdata.com |
e12878629eef8b73d51142df224ab940af9e4dbc | 27af38f25f80cc8aabf94c6022b823d677061cf3 | /tratoli/chatapp/urls.py | a6980ab539c640c9bedf9d26e96a4c4ed046a994 | [
"MIT"
] | permissive | mushahid54/django-backend-activity | eea1b695fe07f9ada1854f84a0bedc789765ef99 | a8dd07e7d2b98415024cfcc14176c8589e47db52 | refs/heads/master | 2021-01-20T00:29:17.486614 | 2017-04-23T12:43:01 | 2017-04-23T12:43:01 | 89,139,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.conf.urls import url
from .views import DeleteAllChatMessages
urlpatterns = [
url(r'^delete-all-messages/$', DeleteAllChatMessages.as_view(), name='delete-all-messages')
]
| [
"mushahidcs0054@gmail.com"
] | mushahidcs0054@gmail.com |
4202f70a275b96733d3992768379fa97c952b76d | d5763b5991b2e07c56bad13e767642bc352c0e00 | /tests/address_books/test_add_contact.py | f2c4ddff1c93e7bf151f35cd2a15568b52a604cf | [
"MIT"
] | permissive | timhodson/dotmailer | 83762cb98ed22efa602e8d6d80e2621ff06a8b6d | bdb1da7ade4b2c6060542ace970b8de0b1a89786 | refs/heads/master | 2023-03-02T19:34:21.918708 | 2021-02-12T14:45:03 | 2021-02-12T14:45:03 | 338,343,081 | 0 | 0 | MIT | 2021-02-12T14:45:03 | 2021-02-12T14:34:02 | null | UTF-8 | Python | false | false | 649 | py | import pytest
from dotmailer.address_books import AddressBook
from dotmailer.contacts import Contact
@pytest.mark.notdemo
def test_add_contact(sample_address_book):
contact = Contact(email='test_add_contact@test.com')
sample_address_book.add_contact(contact)
assert contact.id is not None
# Clean up... | [
"keith@tauri-tec.com"
] | keith@tauri-tec.com |
b7e438493cf19af3ecdba1a85a98ab4eb17912fd | 8dbe574f3b20308d79ef37643570d7dec15e67d9 | /cn.zero/py.ori.fmt/c1110.bin.py | d76d22acac5506f6e347f103aed173e368a82f42 | [] | no_license | xaeingking/ZeroAoVoiceScripts | 62526d004bd02e645970930ecd4b6053809092ab | 512c1fd544954a38c92fc097f5b0c006031ee87d | refs/heads/master | 2020-05-20T17:04:55.028776 | 2019-01-29T10:40:44 | 2019-01-29T10:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247,235 | py | from ZeroScenarioHelper import *
def main():
CreateScenaFile(
"c1110.bin", # FileName
"c1110", # MapName
"c1110", # Location
0x0017, # MapIndex
"ed7100",
0x00002000, # Flags
... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
595f1092a393032fbfe3530084a64011e38ba1be | bbd69601912a3361d788efd03a47f9d4e3bac09e | /demo/agw/HyperLinkCtrl.py | 61df943f9642ce956aea9500436b0dd59655b898 | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 4,894 | py | #!/usr/bin/env python
import wx
import os
import sys
try:
dirName = os.path.dirname(os.path.abspath(__file__))
except:
dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
sys.path.append(os.path.split(dirName)[0])
try:
from agw import hyperlink as hl
except ImportError: # if it's not there locally,... | [
"robin@alldunn.com"
] | robin@alldunn.com |
bb1aeeb508b3bab1a8d08517cb1c6b54272c3e36 | 1903e76a94975bcc09115824029d07d80181f82b | /blog/views.py | d5f1aebad8b108b03740c2bd4bedea518a4eb600 | [] | no_license | alekanet/my-first-blog | 90bea71fd0c4d2e40bfe2ddfe979a4615466c7c1 | 93765edaf3ca5819cdb440af3cbcd837bcfe644e | refs/heads/master | 2023-01-04T03:25:35.172248 | 2020-10-26T17:41:38 | 2020-10-26T17:41:38 | 306,715,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | from django.shortcuts import render,get_object_or_404
from django.utils import timezone
from .models import Post
from .forms import PostForm
from django.shortcuts import redirect
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_d... | [
"alekanet@gmail.com"
] | alekanet@gmail.com |
f52f06ea67bfccf67025fd704cc23492045a4da4 | 3e46e7da6eefb1da6f5a46ce45b3ae13a97e79aa | /arthmetic.py | 69c6ba5a95b7dd2308bfa559547e6528210655ca | [] | no_license | aalamgeer/python_basic_tutorial | 8c0adb47f6842c6865dfe93e53b1b06bf9118c11 | 28c58e2d52f92f7717916897b18b0dfce49575c5 | refs/heads/master | 2022-03-15T08:46:09.825876 | 2022-03-02T14:08:00 | 2022-03-02T14:08:00 | 158,490,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | print("sum of 3+2 ", 3+2)
print("product of 3*3", 3*3)
print("divide of 10/3 ",10/3)
print("modules of 10%3 ",10%3)
print("square of 10**3 ",10**3)
| [
"ranaaalamgeer92@gmail.com"
] | ranaaalamgeer92@gmail.com |
86b1404d353f5413b9d1cc45078c7bef6ad2e558 | e39b2275d855a6b2dec403b2288913f661f909c2 | /back_end/GetImage/retrieve-s3-objs.py | 22d44685bf3cd151d40ca8f119ebe7952b971b30 | [] | no_license | KateVu/StudentCardProducer | 32fe783717a7d0c8aef6714b5665d9a7bfacaa4d | 413c66ae67726f4dd98069c37ff52230ed3251f3 | refs/heads/master | 2022-12-04T12:55:10.479545 | 2020-08-26T02:46:05 | 2020-08-26T02:46:05 | 279,216,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | #author: Thanh Phu Lai
#Modified by: Kate(Quyen) Vu Thi Tu
#id:
#tute: 2.30-4.30pm Tuesday
from json import JSONEncoder
import json
import urllib.parse
import boto3
# init S3 client
s3 = boto3.client('s3')
#entry point of an AWS Lambda function
def lambda_handler(event, context):
#... | [
"noreply@github.com"
] | KateVu.noreply@github.com |
6064a53f5d5f285662db6ee67a997ff0d09e8be9 | 4fae555664a67e983f13d64ec1af3416fbfc6529 | /Elimination_Round_MSE.py | 737de10d0422bf41e0ea64926c094da5f8c221d2 | [] | no_license | gujrallab/4T1 | de01c7288ddd23aa111bf10f95f99466bc8667ea | b5397b24b52cd7d574fc8a0e2e5b1b9bec2d3691 | refs/heads/main | 2023-03-12T06:45:39.571232 | 2021-03-02T23:34:40 | 2021-03-02T23:34:40 | 343,939,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py |
# Importing the libraries
import numpy as np
import pandas as pd
import keras
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasRegressor
from sklearn.metrics import mean_squared_error
response_data2 = pd.read_csv('T1tumor_response.csv') # USE FOR 4T1 TUM... | [
"noreply@github.com"
] | gujrallab.noreply@github.com |
1f810f03505af7b647e35222d04f3759b12a7285 | 1159367c70a96a3bb3916b10dd0696759622e44b | /tests/test_pyweather.py | ac7070f39323b5ef2c9fd524dd7c63c9d43104b5 | [
"BSD-3-Clause"
] | permissive | jon-whit/pyweather | 4504c08f66d4d5a8aacab608d3a43b230b250dee | 87c442586b1b2342d02a9450d287b86a5da8e6da | refs/heads/master | 2020-04-16T09:12:10.938806 | 2014-07-17T04:37:28 | 2014-07-17T04:37:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_pyweather
----------------------------------
Tests for `pyweather` module.
"""
import unittest
from pyweather import pyweather
class TestPyweather(unittest.TestCase):
def setUp(self):
pass
def test_openweather_conditions1(self):
"""
... | [
"jon.b.whitaker@gmail.com"
] | jon.b.whitaker@gmail.com |
cb16dd5e0c890cd7bb6f4231f82da4eef73c4ba1 | 38346ccf93e0c0d49a378b2532fe215669018829 | /nipype/interfaces/slicer/legacy/diffusion/__init__.py | c1a762993ec731368cf0fa2dc0ddb54d7b8679b9 | [
"BSD-3-Clause"
] | permissive | swederik/nipype | de509c2605bc83448240c7c3c68ee8d220d48ef3 | 872720a6fc00b00e029fb67742deedee524b2a9f | refs/heads/master | 2020-12-25T10:08:44.268742 | 2014-05-22T14:05:58 | 2014-05-22T14:05:58 | 1,421,176 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from denoising import DWIUnbiasedNonLocalMeansFilter
| [
"chris.gorgolewski@gmail.com"
] | chris.gorgolewski@gmail.com |
c72c5782ad4767b971b5a42cf1d847d948352c51 | 3ad680a113bab6a048c755a55af00a0688905694 | /chatting/views.py | 04131c744c8ebc4a9041ecaeea631b3b8fceb65e | [] | no_license | domingo-valdes/E0-IIC2173 | 550a0a94eaa3785dcec15d0bf1bdff63e32b194a | 3ea00daafb2ddce700234bd8115b3b7986b26356 | refs/heads/master | 2020-07-12T04:51:12.575110 | 2019-09-05T11:41:16 | 2019-09-05T11:41:16 | 204,723,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | import requests
from django.template import loader
from django.http import HttpResponse
from django.core.paginator import Paginator
from django.shortcuts import render
from .models import Message
from .forms import MessageForm
def index(request):
api_address = 'https://api.openweathermap.org/data/2.5/weather?q=s... | [
"dvaldes3@uc.cl"
] | dvaldes3@uc.cl |
0a0481107bc945c99cf9933d981d631dccb91e5d | 3fc01457951a956d62f5e8cc0a8067f6796ee200 | /misago/threads/api/postingendpoint/subscribe.py | c158eccbf462feee7a1f7aa449d37b93a4b7ce7f | [] | no_license | kinsney/education | 8bfa00d699a7e84701a8d49af06db22c384e0e8d | 48f832f17c2df7b64647b3db288abccf65868fe6 | refs/heads/master | 2021-05-04T01:15:03.078130 | 2016-12-04T03:18:20 | 2016-12-04T03:18:20 | 71,164,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from misago.users.models import (
AUTO_SUBSCRIBE_NONE, AUTO_SUBSCRIBE_NOTIFY, AUTO_SUBSCRIBE_NOTIFY_AND_EMAIL)
from ...models import Subscription
from . import PostingEndpoint, PostingMiddleware
class SubscribeMiddleware(PostingMiddleware):
def use_this_middleware(self):
return self.mode != PostingEn... | [
"kinsney@bupt.edu.cn"
] | kinsney@bupt.edu.cn |
541ce7b83c1de1c19ef3938a027e3a6cc8923221 | bb757edee1dc5f8cd56ea6e3c4468432bf27acfc | /product/migrations/0001_initial.py | 658d080707946f686e885bcd9ba338a1c6de9320 | [] | no_license | emilian-01/order_backend | 0aa67cc9f2cfa95d5b89bfa67ef030ae86fba6c9 | 6c21079e55790ddfd9ef1d6c2d71aadd79e86ced | refs/heads/master | 2023-08-22T13:44:29.307710 | 2021-10-26T23:27:10 | 2021-10-26T23:27:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | # Generated by Django 3.1.6 on 2021-02-16 20:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='itw_product_category',
fields=[
('id', model... | [
"ecikalleshi17@epoka.edu.al"
] | ecikalleshi17@epoka.edu.al |
31090d0e6107137630e734641528504eec159eb5 | 34f16b8837c7283be7443f6725a02725efb6677a | /loading.py | 49b056610896229c182817a3db8ea4181ae687c4 | [] | no_license | msf1013/shallow-autoencoders-compression | 55603e37022274dff30d2ad326b3cab3e9ca957b | 5cc833316c78dc3588700361632ea889b6043193 | refs/heads/master | 2021-06-21T03:15:37.040738 | 2020-12-29T04:06:44 | 2020-12-29T04:06:44 | 162,168,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from PIL import Image
import numpy as np
import math
def get_image_blocks_lstm(file_name, h, w):
im = Image.open(file_name)
height, width = im.size
pixels = im.load()
no_of_blocks = math.ceil((height / h) * (width / w))
blocks = np.empty([no_of_blocks, 1, h, w, 3])
... | [
"msf1013@gmail.com"
] | msf1013@gmail.com |
f2c1d6de4d958c2c634895a0bfd7534abe270f0e | 39641f79cf31376575c26a4da556b9970853e2b5 | /submission.py | ec231c9cb2c7f51c2aa303c1d54e0adcbe56ba5e | [] | no_license | kominoshja/-Midterm-project---CSF | cf9c2996020f86ea952988d0d80026897130e1c5 | ef960caef22639c4ec8bedc4dd696f3772d344bc | refs/heads/master | 2022-04-27T02:45:20.871311 | 2020-04-26T16:35:27 | 2020-04-26T16:35:27 | 260,168,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | #Note: the heap prettyprint is not written by me, but I copied it to better show the heaps
# STATEMENTS
list=[5, 2, 9, 3, 33457, 1]
import math #prettyprint heaps (https://www.w3resource.com/python-exercises/heap-queue-algorithm/python-heapq-exercise-19.php)
from io import StringIO #prettyprint heaps (https://www.w3re... | [
"boris@budini.xyz"
] | boris@budini.xyz |
f30de2e6d6da25ce88fcaa7fb0f6979320088bab | 14c7ad2a834e46366049759b086e1b12b0cb7a76 | /accounts/models.py | 7558fd62521cf3ad316c9dc770080fe2709c119c | [] | no_license | vandersondev/tddobeythetestinggoat | 802c835f57694252bea336b311cf12f03b3fb87a | 86c9e813e153dcffb0cf03a44aacc70da61e86b0 | refs/heads/master | 2023-02-15T06:54:17.758339 | 2020-12-22T06:34:04 | 2020-12-22T06:34:04 | 324,700,870 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | import uuid
from django.contrib import auth
from django.db import models
auth.signals.user_logged_in.disconnect(auth.models.update_last_login)
class User(models.Model):
email = models.EmailField(primary_key=True)
REQUIRED_FIELDS = []
USERNAME_FIELD = 'email'
is_anonymous = False
is_authenticat... | [
"vandersonwebdev@gmail.com"
] | vandersonwebdev@gmail.com |
e7880e161d34d1259ef590b01aac6ce92b5c121b | ff0b9fad40af0f7a792033884db728756ea83756 | /forge/apps/OptiML/src/NeuralNetwork/examples/mnist/visualize.py | f98383826111dc0c413d51ed09d67edf53958b49 | [] | no_license | das-projects/Grothendieck | 721d7ca60c4838385c43bdc17894cb154507c302 | 4effc374f8050655db4820db3a7deaf63effb2a4 | refs/heads/master | 2020-04-02T06:16:56.494997 | 2016-08-12T10:05:55 | 2016-08-12T10:05:55 | 65,486,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import numpy
import scipy.misc
import sys
# Get the image number to display
if len(sys.argv) < 2:
print 'Specify the training image number to show as an input argument'
print 'Requires that train_data.txt be generated.'
print 'Example: >>> python visualize.py 100'
sys.exit(0)
img_num = int(sys.argv[1])
# Read th... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
c58ee48a4a7e734e1a35b550face23ecd007c3d4 | 79dabb0010cd3502dbf6b565c157910fb3e52771 | /Lab 5/multistar.py | 54ed3499b8035d6dedd8ca3e9492f4168265257d | [] | no_license | otisscott/1114-Stuff | 5cf06fd574706ca6b6656a43e4ae69062c015a13 | 913eb14b020b7a708c441f4e28c61f969225a3f9 | refs/heads/master | 2020-03-30T03:14:47.499473 | 2018-12-14T00:50:30 | 2018-12-14T00:50:30 | 150,677,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # Otis Scott
# CS - UY 1114
# 4 Oct 2018
# Homework 4
import turtle
import time
times = int(input("How many stars: "))
times = times * 5
length = 20
angle = 144
for each in range(0, times):
turtle.forward(length)
turtle.right(angle)
length += 10
time.sleep(5)
| [
"otismscott@gmail.com"
] | otismscott@gmail.com |
83d552f31c458bdd43f52ecb538f1696817796b5 | c4febfaff44eab7ed21abcf6ea06ef29eb8d6ef9 | /mysite/settings.py | 6cf9d4395fa6c08e646547a28b54ec85c5544a01 | [] | no_license | vadisychev/django_intro | 422ea84e74c983f1b848860359b64f8c931da607 | ebf57cdc8ad7a5133c813545da3ed95398993833 | refs/heads/main | 2023-03-28T17:27:56.870568 | 2021-04-18T11:02:39 | 2021-04-18T11:02:39 | 351,784,739 | 0 | 0 | null | 2021-03-29T14:31:03 | 2021-03-26T13:05:05 | Python | UTF-8 | Python | false | false | 3,152 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"vadisychev@gmail.com"
] | vadisychev@gmail.com |
f18d7c77098f0b659ac2f67951e9fdc9b87ae655 | 1d0a79fc8710faa6718137031debcd2409ff7c75 | /venv/lib/python3.7/site-packages/django/conf/locale/cy/formats.py | 031a40fff653193840c46333c7265a7d80a046c7 | [
"Apache-2.0"
] | permissive | i13-msrg/cidds | fcdf6ba32e8bf21ab93bccb4430c0d17b0cf81d9 | bc212404b1d342ddac4bee220afdb440594f7faa | refs/heads/master | 2022-12-05T20:54:39.345728 | 2021-03-18T14:41:50 | 2021-03-18T14:41:50 | 152,090,233 | 10 | 1 | Apache-2.0 | 2022-11-22T03:07:21 | 2018-10-08T14:06:03 | Python | UTF-8 | Python | false | false | 1,755 | py | # This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y' # '25 Hydref 2006'
TIME_FORMAT = 'P' # '2:30 y.b.'
DA... | [
"riswan.lathif@gmail.com"
] | riswan.lathif@gmail.com |
c3d7d7cea7577bab5d367f509f21447f31cee98f | 019fcd22187341737ce748fd782da7505e4ec205 | /6_TECHNIQUES/grad_map.py | 85d8220dca5ee6e104e5e264c2bc744f15d4e176 | [] | no_license | lubiksss/DLFS | 496365521b67bdf783a5cc5ed45c6b4ccd6c5599 | 74d1fdc216156dc631d514ebde1825cb24c7c3bf | refs/heads/master | 2023-07-11T06:20:27.725988 | 2021-08-14T08:49:18 | 2021-08-14T08:49:18 | 382,224,554 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import numpy as np
import matplotlib.pyplot as plt
def function(x, y):
# return 1/20*(x**2) + (y**2)
return (x**2) + (y**2)
def func_grad(x, y):
# return (1/10*x) + 2*y
return 2*x + 2*y
def grad_map(function, func_grad, rate):
x = np.arange(0, 11, 0.1)
arrowprops = dict(color='black',
... | [
"lubiksss@gmail.com"
] | lubiksss@gmail.com |
4f54d925f1dd8a37f173fcd6da68ed5f39fd2e46 | 909762751929e2fed02311953e15f8a6316efbd0 | /tests/test_oskar/plot_antpos.py | 6987aa1365419f0706b0b734bae1ec105e2b156a | [] | no_license | telegraphic/interfits | a166258459deaeb831d49787952a3e08d2aaaf40 | 0ee46e94b84d405c8381772be05b42e0b9c41158 | refs/heads/master | 2021-01-19T01:57:32.397157 | 2016-07-02T01:38:06 | 2016-07-02T01:38:06 | 10,858,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import numpy as np
import matplotlib
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from test_main import *
def plot3d(x,y,z, xl='X', yl='Y', zl='Z', c='#cc0000'):
ax.scatter(x, y, z, c=c)
ax.set_xlabel(xl)
ax.set_ylabel(yl)
ax.set_zlabel(zl)
l = LedaFits('vis_00.uvfits')
xyz... | [
"dan@thetelegraphic.com"
] | dan@thetelegraphic.com |
400886929db0a77432f8a35f412a27327f231b80 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/__init__.py | dad149e01c0fae0a0684161a8a1002e405429ccc | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,872 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Keras Applications are canned architectures with pre-trained weights.
"""
from __future__ import print_function as _print_function
import sys as _sys
from . import densenet
from . impo... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
3068a726127a93c4aa99d3ed3646918aec29708e | 4389d3bfa4ded480caf5083f410bdd2253fae767 | /20_Project/01_simple_linear_model/test2.py | 74871ccda42383f1a4616b8ad17191981aa2a1ef | [] | no_license | Freshield/LEARN_TENSORFLOW | 4fb7fec0bc7929697549ee52e453b137a24c3383 | 87be0362d24b748c841e5c9e185d2061ffae9272 | refs/heads/master | 2021-01-17T08:06:14.186041 | 2018-06-03T12:42:46 | 2018-06-03T12:42:46 | 83,846,167 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import numpy as np
import tensorflow as tf
import pandas as pd
sess = tf.InteractiveSession()
a = np.arange(10)
print a
np.random.shuffle(a)
print a
ta = tf.range(0, 10)
tb = tf.random_shuffle(ta)
print ta.eval()
print tb.eval()
dataset = pd.read_csv('ciena_test.csv', header=None)
print dataset.shape
| [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
87a0e4458217736a0b6f590fc8e23a0f56189a86 | 16ff1b0128506cc5cd5a5f85d5539ec486824f77 | /src/meltano/core/settings_service.py | 2f2cda19a629feb0b35c84f0636b71d90d820658 | [
"MIT"
] | permissive | code-watch/meltano | ed7a2fc1789ba1b7eacd567d881f9fc6ba0559db | 2afff73ed43669b5134dacfce61814f7f4e77a13 | refs/heads/master | 2022-07-29T13:17:44.019800 | 2020-06-30T23:44:12 | 2020-06-30T23:44:12 | 276,368,442 | 0 | 1 | MIT | 2020-07-01T12:48:23 | 2020-07-01T12:12:24 | Python | UTF-8 | Python | false | false | 11,914 | py | import os
import sqlalchemy
import logging
from abc import ABC, abstractmethod
from copy import deepcopy
from typing import Iterable, Dict, List
from enum import Enum
import re
from meltano.core.utils import (
find_named,
setting_env,
NotFound,
truthy,
flatten,
set_at_path,
pop_at_path,
)
f... | [
"douwe@selenight.nl"
] | douwe@selenight.nl |
c86b9cc1bf0b77f3f251d63590424bdf80c72366 | a0d57c04e14097e56a6db619e3987d28bde1bdb5 | /1.pretrain/train_conv_MNIST.py | 764a54fc4dc8f529af2ed48473581518e3b26999 | [] | no_license | tk1star2/tk_hashed_tf | dc576a10ac3ff03246568dbb5aa18c2673dbe2ec | a50b785331a043d4fe7d4a53a1fe172e8bbd2aae | refs/heads/master | 2020-08-01T01:33:54.153269 | 2019-12-13T08:19:26 | 2019-12-13T08:19:26 | 210,813,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,534 | py | import tensorflow as tf
import os
import sys
import gzip
import numpy
MNIST_PATH = '../0.data/MNIST'
SAVE_PATH='./MNIST'
VALIDATION_SIZE = 5000
class DataSet(object):
def __init__(self, images, labels, fake_data=False, one_hot=False,
dtype=tf.float32):
"""Construct a DataSet.
one_hot arg is us... | [
"tk1star2@nate.com"
] | tk1star2@nate.com |
8539c06b8016af22d2b99d3f63f7b0ac50d1a90f | 21a9ed29a474b3a87fa2a012cd9f7fd8eabc6f4f | /meiduo_mall/meiduo_mall/apps/meiduo_admin/utils.py | d9f1e077025310aee2142bb07553c138522c8d37 | [
"MIT"
] | permissive | Noah-Smith-wgp/meiduo_project | fd979237505a212e9aa7d5cc12549cea13def1ae | f1350a50dabd33d90c2c5b3509d590603aeda6e4 | refs/heads/master | 2021-04-16T13:18:28.181307 | 2020-01-02T13:29:29 | 2020-01-02T13:29:29 | 249,358,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from collections import OrderedDict
from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response
class PageNum(PageNumberPagination):
page_size = 5
page_size_query_param = 'pagesize'
max_page_size = 20
def get_paginated_response(self, data):
return ... | [
"18211672297@163.com"
] | 18211672297@163.com |
73d4dc0beb4fc18a5d3b880e0e7bce355bb0ddba | e38585797e1247123825a5af164cb53830bf8fca | /__init__.py | d998e15f2eff7a83fac8a965a919722b26681960 | [] | no_license | CureThomas/test-thomas-skill | a555f81b52704d586a202ea4a97374b369fdf1fd | 9694b283ef2529481ecd4e6898a57c8673599cb8 | refs/heads/master | 2021-03-11T12:13:35.683148 | 2020-03-11T09:25:26 | 2020-03-11T09:25:26 | 246,527,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from mycroft import MycroftSkill, intent_file_handler
class TestThomas(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
@intent_file_handler('thomas.test.intent')
def handle_thomas_test(self, message):
self.speak_dialog('thomas.test')
def create_skill():
return TestTho... | [
"thomas.cure@cpe.fr"
] | thomas.cure@cpe.fr |
42e0505d50651f07009cd94e32945d6b14075fcd | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_5397.py | 86476955d445acfe52b6e2d808c0b39f9700d356 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import sys
'''
for n in range(int(sys.stdin.readline().rstrip())):
word=[]
cursor = 0
for i in sys.stdin.readline().rstrip():
if i == "<":
if cursor != 0:
cursor-=1
elif i == ">":
if cursor != len(word):
cursor+=1
elif i =="-" a... | [
"k852012@naver.com"
] | k852012@naver.com |
d4954db4ce2935ea890cec6d4a842bf1751f3c6d | 430b17a271c800f418d172f4fd5ee44260fc63fc | /football/ranktweets.py | 58dce7c60051a79b35276733744b848f5c29e153 | [] | no_license | zshwuhan/Constructing_Unified_Graph_Representation_from_Multiple_Views- | 433345dfaf714617548fa533444c884b6633a3d3 | 7f734e30ed7071ac14cebeefcad9fbe65297671b | refs/heads/master | 2021-01-19T13:56:17.335359 | 2016-12-17T07:12:08 | 2016-12-17T07:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281,243 | py | ranktweets=[[248, 150, 156, 3, 230, 54, 38, 8, 108, 88, 115, 12, 60, 122, 208, 131, 63, 160, 228, 149, 72, 246, 153, 87, 26, 178, 36, 24, 93, 148, 75, 134, 177, 190, 231, 105, 43, 4, 135, 40, 103, 169, 184, 33, 242, 112, 11, 81, 101, 23, 174, 128, 165, 181, 168, 202, 44, 129, 18, 241, 104, 110, 204, 92, 99, 27, 221, 18... | [
"isha.agarwalcd.cse14@itbhu.ac.in"
] | isha.agarwalcd.cse14@itbhu.ac.in |
3062e7712fef16ced02c9314550731a041533b5a | d4797d1d56402f46ac767b41d0bf19b4e99af6cc | /cms/accounts/migrations/0006_remove_order_tags.py | 922c9ce5e82bfac263e524d00b727080e0f3a888 | [] | no_license | indogusmas/django-cms | 9970d60f6afd85dafac2268a4c6b48967cc16080 | 4134a9e1746f1cebe298f811ccc3964bddb5f102 | refs/heads/master | 2022-11-27T02:36:50.713353 | 2020-07-25T05:29:57 | 2020-07-25T05:29:57 | 274,279,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.0.7 on 2020-06-27 07:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20200627_0730'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='tags',
),
... | [
"indogusmasarungsamudra@gmail.com"
] | indogusmasarungsamudra@gmail.com |
d6ba96b767936c08a97a59d42c2a4ab7dc157de2 | 64db047f6c45abaa423d5cb43267819ef1ea8a2b | /pypython/ast.py | bdce1b383888235c3fbce7251e176b5941ad9b78 | [
"BSD-3-Clause"
] | permissive | pdmccormick/pyconca2019-fun-with-compilers | 8f26b59acb206a9d99bb19343e7ac9cf8806266f | 2f1025cc0b7ec182fcedab678a121a7ab93fb448 | refs/heads/master | 2020-09-11T22:37:47.130846 | 2019-11-17T17:03:50 | 2019-11-17T17:03:50 | 222,213,368 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,399 | py | '''
Be aware! Lot's of things are broken! Consider this to be demo-ware.
'''
import typing
from enum import auto, Enum
from typing import Any, List, Optional
from dataclasses import field, dataclass
@dataclass
class AST:
'''
lineno: Optional[int]
col_offset: Optional[int]
end_lineno: Optional[int]
... | [
"peter@pdmccormick.com"
] | peter@pdmccormick.com |
994444b4e2a2097ce7f986473baa22df584eca68 | b0e3083e9b83daf264fc7ed284068c01482369ad | /admin/create_user.py | e08a5c2ec653d279cf0f920dda11e2e6f402b499 | [] | no_license | PrometheanInfoSec/honeybadger-red | 6948e73576d1ffea4ecb69dcdb837b4beb3445b7 | f82699dbc2a8bf2b770cfc8b131f9deae62f2caf | refs/heads/master | 2021-01-20T02:53:30.554319 | 2017-09-13T14:33:07 | 2017-09-13T14:33:07 | 101,341,672 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | #!/usr/bin/env python
import sys
import random
import string
import hashlib
import sqlite3
try:
username = raw_input('Username: ')
password = raw_input('Password: ')
print ' User Role Options:'
print ' 0 - Administrator'
print ' 1 - User'
role = int(raw_input('Role: '))
if not role in [... | [
"tjt1980@gmail.com"
] | tjt1980@gmail.com |
e3e6e8e2aa20f0108ffc1f34e182661447dcee87 | 03ed0e9060d5b2c5e280d13efcb47d27c48db3ad | /tictactoe.py | 84dc94ad64b9527d1f75102bb9a3da305a72e32b | [] | no_license | JeremiahTee/python-games-sweigart | 8c81b9731e835eb41db9f9504ff62616cf8fcb48 | 78045c9593e5fc5a24e5647c360f145b93c30af0 | refs/heads/master | 2023-06-26T06:32:37.910115 | 2017-11-16T00:01:58 | 2017-11-16T00:01:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,076 | py | #Tic-Tac-Toe
import random
def drawBoard(board):
#This function prints out the board that it was passed
#'board' is a list of 10 strings representing the board (ignore index 0)
print(board[7] + '|' + board[8] + '|' + board[9])
print('-+-+-')
print(board[4] + '|' + board[5] + '|' + board[6])
p... | [
"jeremiahteee@gmail.com"
] | jeremiahteee@gmail.com |
a60f4f254c25aa053aa3848cf0c0bbbdab3a7719 | 6b697767d33c4fac71942958a52c7595dcc0dca9 | /python/euler036.py | bd1121c7b444cad36d966eb1c59fcc10be1459f5 | [] | no_license | hasanain/euler | 7443a9bced1e8a3a9203d195433601eb533d412e | 5757be0931bbf7e8f1d87ad82b3a7bca7d191c20 | refs/heads/master | 2022-05-11T23:05:55.505431 | 2022-04-02T21:20:34 | 2022-04-02T21:20:34 | 17,465,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | def ispalindrom(s):
for i in range(len(s)):
if s[i] != s[len(s) -1 - i]:
return False
return True
print(sum([x for x in range(1000000) if ispalindrom(str(x)) and ispalindrom(bin(x)[2:])]))
| [
"hasanain.jm@gmail.com"
] | hasanain.jm@gmail.com |
98a92ac65566d9cb43f576e930f3c488aa20922a | 0d80c64314b8a099a04ada68b73d7e62970ec17b | /nistrng/sp800_22r1a/test_random_excursion_variant.py | 284d2222a63977753a9db9bc8cb9f52cff10b705 | [
"BSD-3-Clause"
] | permissive | LAllen1996/NistRng | 63cdfdeed4cfd82628720e03808d1a58212b2ecc | 3f485fa5d9e30786f474cc57b350389e756fc2cb | refs/heads/master | 2020-09-14T17:33:58.156044 | 2019-11-21T15:12:26 | 2019-11-21T15:12:26 | 223,201,642 | 0 | 0 | BSD-3-Clause | 2019-11-21T15:11:14 | 2019-11-21T15:11:13 | null | UTF-8 | Python | false | false | 2,918 | py | #
# Copyright (C) 2019 Luca Pasqualini
# University of Siena - Artificial Intelligence Laboratory - SAILab
#
# Inspired by the work of David Johnston (C) 2017: https://github.com/dj-on-github/sp800_22_tests
#
# NistRng is licensed under a BSD 3-Clause.
#
# You should have received a copy of the license along with this
... | [
"insanemst@gmail.com"
] | insanemst@gmail.com |
9cfcc62db3f7835c694bd3946670e5016afa364f | c1080a13ad19d70429fb3f640989117315ef90bf | /layers/box_utils.py | 22e7dbca5a7e4208d44198c8fc666332ee2ae7a4 | [
"MIT"
] | permissive | PoisonBOx/Active_Learning_Object_Detection | ddc573d289216bee96307c7c68097fb884e37688 | 3d9ad367aa872cbf3e9d71c566042c78fe2d0e76 | refs/heads/master | 2022-04-14T18:35:30.331799 | 2020-03-25T12:48:22 | 2020-03-25T12:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,005 | py | # -*- coding: utf-8 -*-
import torch
def point_form(boxes):
""" Convert prior_boxes to (xmin, ymin, xmax, ymax)
representation for comparison to point form ground truth data.
Args:
boxes: (tensor) center-size default boxes from priorbox layers.
Return:
boxes: (tensor) Converted xmin, y... | [
"you@example.com"
] | you@example.com |
46bdc3934000afd2544f65ef6d25250337a564e2 | 133f480f4d3071b78fb3e2fde7b36bedcbf567ff | /attic/VodafoneMobileConnectCard/build/opt/vmc/lib/python2.5/site-packages/Vodafone_Mobile_Connect_Card_driver_for_Linux-1.99.19-py2.5.egg/vmc/common/hardware/_dbus.py | f87915c2cc8160735f4682270695013a046f39f4 | [] | no_license | Croosi/vodafone-mobile-connect | 5a8fe61763c37ad64e3925400bf52bd8fe6e92da | bf7a8d53b9cade9e76a6c1543812596e166900c5 | refs/heads/master | 2021-05-28T01:17:34.588541 | 2010-04-20T20:39:16 | 2010-07-18T16:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,117 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Vodafone España, S.A.
# Author: Pablo Martí
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | [
"rgalonso@gmv.es"
] | rgalonso@gmv.es |
7e4455413af0ef7d478a7bbf7ee19bdf4e9628a5 | 36b70e53d7fd8988d58dc99736c1dcd6014342a3 | /client/node_modules/chokidar/node_modules/fsevents/build/config.gypi | dda0209044c13755ae294e2c79feae4e8621bd5a | [
"MIT"
] | permissive | ddold/multi-docker | 76561b30761ef40dca095a40e1d4eea61f5ad178 | 60094a59d3bcc1770be122993bba36f2a1f5fb43 | refs/heads/master | 2023-05-30T15:34:35.890308 | 2021-06-08T08:59:12 | 2021-06-08T08:59:12 | 374,941,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"ddold@cloudbees.com"
] | ddold@cloudbees.com |
d700f2cdc225bddd92bd3b5fbf0f653b374c019f | 750b8345454642d601fdfc2457be47099fa1f8f4 | /app/apis/__init__.py | 44c1a8f2409cadfdf6977b46818a458d3b45413c | [] | no_license | hercules261188/flask-pytest-bdd | f7202e4fd7a137469a9689d5e3d15edca0b5535c | c6d8efd46c5c1db2cc981d6bc016c849da6f093e | refs/heads/master | 2022-06-24T01:32:52.032013 | 2020-05-10T14:02:35 | 2020-05-10T14:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import pkgutil
from importlib import import_module
from pathlib import Path
from flask import Flask, Blueprint
from flask_restx import Api
def init(app: Flask):
root_pkg = Path(__file__).parent
blueprint = _scan_namespace(root_pkg)
app.register_blueprint(blueprint)
def _scan_namespace(root_pkg):
re... | [
"jerry_yt_chen@trendmicro.com"
] | jerry_yt_chen@trendmicro.com |
9d3370935baf1e4f3fe73208230cf5b4b65cf966 | a6aae5de411a5f564163422456ae4ae329638ea5 | /src/tentacle/settings.py | 79eba4747c3948466aeccf4a83218183361aed5c | [
"Apache-2.0"
] | permissive | mfriesen/tentacle | e22247da0b4f1cc86699a4c626a7760b3a1e0fbf | 32d06f5218c0f365cf9f5dd355c26763d39883ec | refs/heads/master | 2019-01-02T03:25:45.663556 | 2014-03-29T21:39:50 | 2014-03-29T21:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | DEFAULT_BONJOUR_REGTYPE = "_tentacle._tcp"
DEFAULT_BONJOUR_NAME = "Tentacle"
DEFAULT_BONJOUR_PORT = 5355 | [
"mfriesen@gmail.com"
] | mfriesen@gmail.com |
55d75503b460933830ab1eecc6fcaa4f9bfda844 | 567a21c129968171638cdcd339bcd3ddc8967727 | /setup.py | 8e0ea4b6ef804b429f6f31a7c5b2c9910dc38c71 | [
"BSD-3-Clause"
] | permissive | nancyleitt/beyond-bleu | c905c36315ed1127b197f6055d697767aaee7d6e | c1110298ae097efb4032054118813b0867dda68a | refs/heads/master | 2022-03-25T05:53:40.251651 | 2019-12-20T18:53:24 | 2019-12-20T18:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | #!/usr/bin/env python3
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
#
from setu... | [
"jwieting@ttic.edu"
] | jwieting@ttic.edu |
94d743cb96de6f0011a8600e732c40ffe5b9a2ed | 6fa2fad9a3b7d2b5027f19d3092879eafdfb56c8 | /LambdaScrapers/providers/LambdaScrapers/en/hosters/123moviesfree.py | cca2f49b5de7cbca538c6cf8d16a188853c3a642 | [] | no_license | dtc2344/ScraperPackages | dfccda0f3de1b4ff2cabc16998c95aa1523de3bc | 779086e35a0e7d320492f71dba1583ae438c8ee5 | refs/heads/master | 2021-10-10T14:13:10.261340 | 2019-01-11T18:23:50 | 2019-01-11T18:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | # -*- coding: UTF-8 -*-
# -Cleaned and Checked on 12-03-2018 by JewBMX in Scrubs.
import re
from providerModules.LambdaScrapers import source_utils,cleantitle,debrid,cfscrape
class source:
def __init__(self):
self.priority = 1
self.language = ['en']
self.domains = ['123moviesfree.ws']
... | [
"35949207+reddit-reaper@users.noreply.github.com"
] | 35949207+reddit-reaper@users.noreply.github.com |
3c0b7f3b74951c2329413f45ba9cfd5a890b2b3a | b51aa9f8933a59d999d6951e5d11558450bdd67f | /send_mail.py | b2b9c1737e362c3ef3468eb1e33de904bfb60fe4 | [] | no_license | huangsifang/python | 9a7cba7a63d4c85d9617bb9c5a75c1c0bbdcba32 | 234fcb5f643a7e7fb55f1386caf054287e9a4219 | refs/heads/master | 2021-01-01T06:13:58.621103 | 2017-08-22T14:35:38 | 2017-08-22T14:35:38 | 97,386,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
import smtplib
def _format_addr(s):
name, addr = parseaddr(s)
return formataddr((Header(name, 'utf-8').encode(), addr))
# 输入Email地址和口令:
from_addr = input('From: ')
pas... | [
"17816869682@163.com"
] | 17816869682@163.com |
6cb34af1050be03124c181ed63b6b3c698525195 | a52022e541fe282136271d666db921c76de0f149 | /test_code/test.py | 89875d7c0bd38d77596a78e22e78dfc2976874bb | [] | no_license | s1210160/cansat | 56c26feeeafade06df8c050a862ffe0a2c5428a4 | 9ee27b751ecb8cb306e08a301ff09a2477068b63 | refs/heads/master | 2021-01-21T14:25:17.637756 | 2017-08-10T07:34:48 | 2017-08-10T07:34:48 | 95,279,795 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import time
import picamera
import cv2
cv2.namedWindow('test')
def camera_capture(camera):
camera.capture('test.jpg')
frame = cv2.imread('./test.jpg', 1)
return frame
with picamera.PiCamera() as camera:
camera.resolution = (320, 240)
time.sleep(2)
start = time.clock()
whil... | [
"s120160@gmail.com"
] | s120160@gmail.com |
b5ede2fa12e0ce707c98b96ec4c66e9d34491a7f | fe86b4ac836857dcbc4cadf59254562a08a0e2f0 | /Solon_Burleson/DLists.py | 82d45b654a57183070529963e1e2e29b429a1a22 | [] | no_license | CodingDojoDallas/python_sep_2018 | c66128e814aa0b73c232b126acf279104145a64d | 42dddc3fcf2a50cf79a00d3b2adfa3562dfcede3 | refs/heads/master | 2022-12-03T18:53:31.309480 | 2018-09-30T06:05:00 | 2018-09-30T06:05:00 | 147,546,818 | 0 | 8 | null | 2022-11-22T23:16:11 | 2018-09-05T16:19:05 | Python | UTF-8 | Python | false | false | 1,821 | py | class Node:
def __init__(self, value):
self.value = value
self.next = None
self.prev = None
class Dlist:
def __init__(self,value):
node = Node(value)
self.head = node
def addNode(self, value):
node = Node(value)
runner = self.head
while runne... | [
"solon.burleson@gmail.com"
] | solon.burleson@gmail.com |
44fd372d9c40ca62302670779a51fc581411f406 | 721ec67f12c5332d048f885cd97eb9195e1a0f82 | /Resources Descriptions in OpenCEMS/EDP1.py | 631988d059fe4abf561c0a0c05b569dd80206cb0 | [] | no_license | AnonymUsername/OptiCS | 388a2dd5a5b343e27a1aa3ade0650358481a88da | 6ce79e12a744cf9afb7298be4bc1d1c8bf404f1b | refs/heads/master | 2023-06-27T09:52:31.707704 | 2020-06-04T17:26:09 | 2020-06-04T17:26:09 | 189,278,976 | 0 | 1 | null | 2021-07-28T09:26:24 | 2019-05-29T18:33:35 | Python | UTF-8 | Python | false | false | 1,178 | py | #!/usr/bin/env python
from flask import Blueprint
from flask import Flask, json
from flask import Response
from flask import request
from flask import jsonify, make_response
from random import randint
from itertools import cycle
import requests
predheatengcons = Blueprint('predheatengcons', __name__,)
... | [
"noreply@github.com"
] | AnonymUsername.noreply@github.com |
9d09fcf610c797bccf89f3f24ef9afffc8933042 | 67d8173a716da10a7350213d98938aae9f2115ce | /LeetCode/LC_PY_ANSWERS/sort-an-array.py | 0cecad74707c151f8b38b2b110494d2e85eee7de | [
"MIT"
] | permissive | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 2,412 | py | # Time: O(nlogn)
# Space: O(n)
# merge sort solution
class Solution(object):
def sortArray(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
def mergeSort(start, end, nums):
if end - start <= 1:
return
mid = start + (end -... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
c1698cf826fa735c657250a82f58b2a9b940e70a | dc287bb18da984f91654a65565840b7f0205feb0 | /Bayesian_software_view.py | 1de33ac83fe19734d4c122febf2e6d5a31d6411e | [
"MIT"
] | permissive | AG-Ewers/BaClAva | 5f7ad4e38a736755effb33ccee99273d2e52e371 | d98572b9951408b99838cf2fffd36beb1b9e1e6b | refs/heads/main | 2023-08-23T00:17:56.394625 | 2021-10-27T15:03:15 | 2021-10-27T15:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | from PyQt5 import QtWidgets as qtw
from PyQt5 import QtGui as qtg
from modules.module_one_a_simulation import MainWindowSimulation
from modules.module_one_b_smlm_simulation import MainWindowSimulationSMLM
from modules.module_two_Bayesian import MainWindowBayesian
from modules.module_three_post import MainWindowPost
fro... | [
"saskia.kutz@fu-berlin.de"
] | saskia.kutz@fu-berlin.de |
e58e9401d8429723764c02edf926adfbbd8758ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_drafts.py | 6da1b4da4e3df04fbf81a9bba113d2c83e568862 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.verbs._draft import _DRAFT
#calss header
class _DRAFTS(_DRAFT, ):
def __init__(self,):
_DRAFT.__init__(self)
self.name = "DRAFTS"
self.specie = 'verbs'
self.basic = "draft"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.