blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11342fce98e8da266b520fbc047aca7d73318532 | d8d5f6343872b70546a03ad6e57b798a9416ac3a | /fridayhomework/homework74.py | 3e0c7757fbcf65a36c035fd8772d83bfaebd8b0b | [] | no_license | Catboi347/python_homework | e6d4b4e3ab7b48aaa97df2bcf560a334ec6f8c59 | 3f7b155f9cc66e99baa18bac2cd61b4e40e44bc3 | refs/heads/master | 2022-11-30T16:48:41.031952 | 2020-08-09T00:59:35 | 2020-08-09T00:59:35 | 286,142,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | dogs_age = int(input("input the age of your dog in human years "))
if dogs_age <= 0:
print ("The age has to be a positive number ")
elif dogs_age <= 2:
dog_years = dogs_age*10.5
else:
dog_years = 21 + (dogs_age - 2)*4
print ("The dog's age in dog's years is", dog_years) | [
"danyalzaheer@outlook.com"
] | danyalzaheer@outlook.com |
57716ed636a8376de378f8023907463a5cc12bc3 | 65b63080b011e755c84f570549bb4a604135bf1b | /tools/analysis.py | 84e123f62205558200bcda29370bdf3b75116ce8 | [
"Apache-2.0"
] | permissive | omiderfanmanesh/Machine-Learning-Project-Template | c4e140ff03073b48c4f6ffd81144e81ee15a0c9a | 7706d8435b7b4c8fc93389f9d138be266f2438f7 | refs/heads/main | 2023-06-20T09:47:41.262855 | 2021-07-13T10:37:26 | 2021-07-13T10:37:26 | 385,566,616 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # Copyright (c) 2021, Omid Erfanmanesh, All rights reserved.
import warnings
from configs import cfg
from data import load
from data.preprocessing import Encoders, Scalers
from eda.bank_analyser import BankAnalyzer
from eda.bank_plot import BankPlots
from engine.analyser import do_analysis
warnings.simplefilter(ac... | [
"o.erfanmanesh@gmail.com"
] | o.erfanmanesh@gmail.com |
7b670f3b47b9d008ddf064a1080d2db5a2c433f8 | 675d4d53bdb9121c2fb7e1505d9ab9c84de18531 | /petrarch2/PETRwriter.py | f14351902e46b3151cebf5129ae2d2b22ae356b4 | [
"MIT"
] | permissive | dgmurphy/phoenix_actor_gen | 92729e09fd51807886f04b059bd6bdb1b588984e | 37084ab74e2ccbc7f42ce358dac24c8b70d61128 | refs/heads/master | 2023-03-27T05:47:24.312166 | 2020-07-18T17:52:33 | 2020-07-18T17:52:33 | 280,668,862 | 0 | 0 | MIT | 2021-03-30T00:43:45 | 2020-07-18T14:05:56 | Python | UTF-8 | Python | false | false | 12,375 | py | # SYSTEM REQUIREMENTS
# This program has been successfully run under Mac OS 10.10; it is standard Python 2.7
# so it should also run in Unix or Windows.
#
# INITIAL PROVENANCE:
# Programmer: Philip A. Schrodt
# Parus Analytics
# Charlottesville, VA, 22901 U.S.A.
# http://eventdata.parusanalytics.com
#
# Git... | [
"murphy.dg@gmail.com"
] | murphy.dg@gmail.com |
11f2b5cb85357f64b7a41695ae6f16913c41d8d2 | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /matplotlib_exercise/3dplot.py | 823f335d0f5214c0f6a80c17480335fb03bcdaa1 | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 407 | py | from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
fig=plt.figure()
ax1=fig.add_subplot(121,projection='3d')
X=Y=np.arange(-3.3,3.3,0.3)
X,Y=np.meshgrid(X,Y)
Z=np.cos(np.sqrt(X*X+Y*Y))
ax1.plot_surface(X,Y,Z,rstride=1,cstride=1)
ax2=fig.add_subplot(122,projection='3d')
... | [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
560cf4412c40762cf048acb80d5ecc09bedc39f2 | 9f2adb5c23f47acb1f502f2c75b0d3df3804c260 | /authlink/middleware.py | 29eb6a0b021aef60381ea5d54379e6450a111b56 | [
"MIT"
] | permissive | lukeburden/django-authlink | 31cef2e2e97d7d79fad361e1675cc77315081a7a | 7dd1a2d49c934afe420de85689d02eb253de0d0d | refs/heads/master | 2021-01-10T07:40:49.957978 | 2020-03-23T07:45:03 | 2020-03-23T07:45:03 | 43,911,416 | 8 | 0 | MIT | 2020-03-22T18:15:57 | 2015-10-08T19:24:17 | Python | UTF-8 | Python | false | false | 1,110 | py | from django.contrib.auth import BACKEND_SESSION_KEY
from django.core.exceptions import ImproperlyConfigured
from authlink.adapter import get_adapter
adapter = get_adapter()
class AuthLinkWhitelistMiddleware(object):
"""
Only allow access to whitelisted URLs for sessions that are
established using the au... | [
"lukeburden@gmail.com"
] | lukeburden@gmail.com |
dbd092cd987efe95f6be5c4270e5d9a437ec863f | f67986550761cf3ed174d01063f5fdc8a26f59f3 | /mission/missions/opt.py | 8a285573d41e8e9e8939678eaaabbd9b6aa4beca | [
"BSD-3-Clause"
] | permissive | wpfhtl/software | 4dd5d116a1c90660264b32006617a6809b0a530e | 575d424be6b497e0f34f7297a9b322567c2e26c0 | refs/heads/master | 2021-01-23T02:40:49.542461 | 2016-04-15T04:16:21 | 2016-04-15T04:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | '''
Optimal Mission Runner
Introduction:
Usage:
Tasks must expose the following interface:
currentPoints :: double
possibleModes :: () -> [mode]
--> Should take into account state, whether we think we're succeeding.
Tasks are passed the following parameters on run:
mode :: string (the name of the mo... | [
"software@cuauv.org"
] | software@cuauv.org |
008197c8e76a112bbc3c0594dd7a502330aa5655 | d92bad5384d80cf0f7e073bb7484b06514174f7a | /code/run_emcee_plPeak_noEvol.py | 551782401131e902419af11bfab20fc4e78869bf | [] | no_license | tcallister/BBH-spin-q-correlations | 2abe399dc927a4cdbb47ac92ad6005cb3450e676 | 63dc9bbf9ca0c84a94ec0c616f8c2b3cfcceed26 | refs/heads/main | 2023-06-12T00:22:12.803326 | 2021-06-29T20:35:45 | 2021-06-29T20:35:45 | 348,101,610 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,838 | py | import numpy as np
import glob
import emcee as mc
import h5py
import sys
from support import *
from likelihoods import *
# -- Set prior bounds --
priorDict = {
'lmbda':(-5,4),
'mMax':(60,100),
'm0':(20,100),
'sigM':(1,10),
'fPeak':(0,1),
'bq':(-2,10),
'sig_kappa':6.,
'mu':(-1,1),
'l... | [
"thomas.a.callister@gmail.com"
] | thomas.a.callister@gmail.com |
b8704e27daa7e3a76435c60a484db4a2eeb28669 | c97befef1020f9f57bea53351d2d55d5635fd2bd | /social-network/socialNetwork/settings.py | 88de33f1cfb16ada9d052e5d100a9d7c7f615e90 | [] | no_license | TEP-2018-1/VueJs | 8e40dcf1bd56fbb1df467022902457667858a900 | 639a133f7ec42710ee703d7fb8bbf7baf6c30026 | refs/heads/master | 2020-03-23T10:56:44.040299 | 2018-07-23T19:29:16 | 2018-07-23T19:29:16 | 141,471,975 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | """
Django settings for socialNetwork project.
Generated by 'django-admin startproject' using Django 1.11.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
imp... | [
"guilhermerodrigues123477@gmail.com"
] | guilhermerodrigues123477@gmail.com |
285fce054cb4b6f25560dec504b9a781325d51d1 | 9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa | /abc004_2.py | bc6cf2f9686dea24440c44413bba61a132f9ed6a | [] | no_license | luctivud/Coding-Trash | 42e880624f39a826bcaab9b6194add2c9b3d71fc | 35422253f6169cc98e099bf83c650b1fb3acdb75 | refs/heads/master | 2022-12-12T00:20:49.630749 | 2020-09-12T17:38:30 | 2020-09-12T17:38:30 | 241,000,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | # जय श्री राम
import sys; import math; from collections import *
# sys.setrecursionlimit(10**6)
def get_ints(): return map(int, input().split())
def get_list(): return list(get_ints())
def printspx(*args): return print(*args, end="")
def printsp(*args): return print(*args, end=" ")
UGLYMOD ... | [
"luctivud@gmail.com"
] | luctivud@gmail.com |
014ed49663c669df34448c177d16881d940af464 | 48d4a741fc4e67e79181a52b23ab5b3cb5a6419e | /run.py | 07334c3dbdd8144c33e99e11dd23f911b037fa8c | [] | no_license | njmattes/dystwitic | cbedd5e8fab1aedb2064d1487c2f1aa01bb9c0e6 | 912ef7c14ac469ea212679879f4470bff98cf93d | refs/heads/master | 2022-12-13T12:33:19.588321 | 2018-10-12T10:54:41 | 2018-10-12T10:54:41 | 87,830,080 | 0 | 0 | null | 2022-12-08T02:57:16 | 2017-04-10T15:56:09 | Python | UTF-8 | Python | false | false | 154 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from dystwitic import app
from dystwitic.web.socket import sio
if __name__ == '__main__':
sio.run(app) | [
"matteson@obstructures.org"
] | matteson@obstructures.org |
054159a0f2c80bfc84cdbc0acbe6ba3e3b381dff | aaf2ba2bf0187e314a0bb10c217a06e704666c42 | /histogram_matching.py | 88fe01ea9e0c8359cf536515c7e703596b634194 | [] | no_license | vladpaunescu/histogram-matching | 41fd2caf2bb6430e0ac80e659be57400ba1f5726 | e739fd00f3d0f2ce55669b2823ea854dfd8e924e | refs/heads/master | 2023-08-25T20:51:29.396843 | 2019-11-19T14:57:23 | 2019-11-19T14:57:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import numpy as np
import cv2
asli = cv2.imread('asli1.jpg')
equ = np.copy(asli)
for i in range (3) :
equ[:,:,i] = cv2.equalizeHist(asli[:,:,i])
referensi = cv2.imread('referensi1.jpg')
hasilmatch = np.copy(asli)
def hist_match(asli, referensi):
asli_shape = asli.shape
asli = a... | [
"noreply@github.com"
] | noreply@github.com |
d2f59e9f0634ea6aee899b6954b5504bae431ffb | df2df2cb11f9f78b6e3493cb24f83dff43536e5e | /MyTestProjects/selenium_text/2selenium_domo.py | cb4a3757d64f2dfea98cfbed77c74870183c0b6c | [] | no_license | chengzizhen/Airmcl_Test | b4068bf9b0eec5ea8f160f080f1a783f90d8ec13 | aa6e44838843e4e812094d33d94f4a4c4c7d8312 | refs/heads/master | 2023-03-16T00:30:39.602224 | 2019-01-19T03:45:17 | 2019-01-19T03:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from selenium import webdriver
from time import sleep
driver = webdriver.Chrome()
driver.get('http://www.baidu.com')
#定位元素设置值
#driver.find_element_by_id('kw').send_keys('dnf')
driver.find_element_by_name('wd').send_keys('LOL')
sleep(2)
#点击
driver.find_element_by_id('su').click()
sleep(3)
driver.quit() | [
""
] | |
8d9d062fd8a6c677a97b2fbfd5d2e4e8674c0647 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nneustathiu.py | 5a21529fc3a6677e1b00ca0d258ad4d164aeecf3 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 198 | py | ii = [('LeakWTI3.py', 2), ('WilkJMC2.py', 2), ('GrimSLE.py', 1), ('ClarGE.py', 1), ('DibdTRL2.py', 1), ('NewmJLP.py', 1), ('LeakWTI4.py', 3), ('MereHHB.py', 2), ('WestJIT.py', 1), ('ClarGE3.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
27dd825851e20094d5c582a2aec94b07f03aa620 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/intune/devices/data.py | 356d6888c9b603e4568ea707e50f61a7cd4e0156 | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 128 | py | from office365.runtime.client_value import ClientValue
class DeviceAndAppManagementData(ClientValue):
"""Exported Data"""
| [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
94938a8e1ccdd3e05e7ba951626183571512747a | 09fca4346471ae6c1844db6742f075a26de069fc | /sticks/image_generator_with_masks.py | 65c2941bbd19fea52891d98e8a72f27229960acf | [
"MIT"
] | permissive | tojala-aalto/mask_rcnn_sticks | fa5c829093d8b63d8caa5740f1bbc5472d1812fc | d03d4bcdc331b4ec68d6d4247a69759b463ee301 | refs/heads/main | 2023-03-02T09:47:55.743110 | 2021-02-13T18:13:27 | 2021-02-13T18:13:27 | 337,154,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,636 | py | #!/usr/bin/env
import numpy as np
import matplotlib.pyplot as plt
import os
import cv2 as cv
import uuid
from scipy.ndimage.filters import gaussian_filter
#from blend_modes import blend_modes
# from pascal_voc_writer import Writer
#%%
# GLOBAL PARAMETERS
L = 512 # image dimension
BACKGROUND = 80 # background lig... | [
"teemu.ojala@aalto.fi"
] | teemu.ojala@aalto.fi |
f9fc155d798e5a95376069b3bff4b00e1bbe9005 | bae2831d5ea80c27ced15279cee32322fb78a849 | /portfolio/migrations/0001_initial.py | efc31860eb03bdffc10414756fa9ee2e9528accd | [] | no_license | nandibula03/personal_portfolio | 3e72d30762be77f8823040fe344ded5cf45ea2de | 1d756be463a63ef129275acd647700ac0f6913f9 | refs/heads/main | 2023-01-18T19:54:34.209862 | 2020-11-20T06:36:06 | 2020-11-20T06:36:06 | 313,226,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # Generated by Django 3.1.2 on 2020-10-18 15:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(... | [
"bulanandi2015@gmail.com"
] | bulanandi2015@gmail.com |
55bbd9c42a6aab09ac202a26024d446c2e336d51 | 0a62f41e4a10994e17662bb0e99931d7b5e2b26e | /workings/runtagger.py | 2e00cf12b6b483361bef808aae8eef517fff4280 | [] | no_license | tanfiona/POSTagger_Multi | 1a057c7ccf6e34d17bfccbad436e34ece60fc117 | 8724904d56b69b7684bed7eb1cd252020b1d5397 | refs/heads/main | 2023-01-24T23:57:27.892437 | 2020-12-10T02:12:01 | 2020-12-10T02:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,277 | py | # python3.5 runtagger.py <test_file_absolute_path> <model_file_absolute_path> <output_file_absolute_path>
import os
import math
import sys
import re
import random
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.nn.utils.rnn import pack_padd... | [
"pillowtann@gmail.com"
] | pillowtann@gmail.com |
6843aee29ba38258e21dd0466f40cc6a3c73649b | 91f57789017ff02f5b354b2a9d02cc8937bc7caa | /backend/chalicelib/constants.py | fc905c264297059cab21e2bd75698bdc6f1daaf7 | [
"MIT"
] | permissive | KungFuLucky7/file-upload-lambda | d365d4a541751039b100e661063bf714f01a1e60 | 7dea1bf98cd5d78c126f42e22034af39ba8b1fbc | refs/heads/master | 2023-03-24T06:18:53.458813 | 2021-03-23T21:49:47 | 2021-03-23T21:49:47 | 348,619,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | APP_NAME = "file-upload"
AWS_REGION_NAME = "us-east-1"
S3_PRESIGNED_URL_EXPIRES_IN_SECONDS = 604800
| [
"terrywon@cisco.com"
] | terrywon@cisco.com |
cb2e107e89f88c1b27cd8f42017c5d6e6a7f30bb | 429601cc5bc859c4244319c100fee84c850c8b94 | /ssh/webAppAll.py | 3886c4a0a225af96c35323289bd43d8a451afece | [] | no_license | yoomalek/noc-python | 4d242f4591fe9ef2730afcfb347b3626b9acc6fe | 574b9a964b4d9c6c77e0caf5e24e507b7ef52732 | refs/heads/master | 2023-07-20T02:34:47.546370 | 2021-08-23T02:47:16 | 2021-08-23T02:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | import time
import asyncio
from helpers import pushToSite, listJs
from variable import upload_path, DIR_HOME
async def main(port, temp):
start = time.perf_counter()
site = await listJs(port)
file = f"{upload_path}/joulestore-web-app"
to = DIR_HOME
if site["status"] == "success":
print(f"\n... | [
"dickymahfudin13@gmail.com"
] | dickymahfudin13@gmail.com |
b92bd3184bae2497523f91c6ebcb66a23ae247f4 | 3b6a3f69b1dd9f79fcd2673c93eb6724116f2b74 | /map_2.py | 5c6da5da3e963eff5b1357428a4681782974aad4 | [] | no_license | ArpanBalpande/10-Python-built-in-functions-you-should-know | 9db1f122165357ae243bea6786bd2788dfeca162 | e19788ff92ffa0aab344ce7ab4629da5bfeeddbf | refs/heads/master | 2021-05-23T10:22:17.333390 | 2020-04-05T14:19:20 | 2020-04-05T14:19:20 | 253,240,918 | 0 | 0 | null | 2021-04-29T21:41:56 | 2020-04-05T13:25:54 | Python | UTF-8 | Python | false | false | 215 | py | # list of numbers
numbers = [1, 2, 3, 4, 5]
# add 1 funtion - regular function
def add_one(element):
return element + 1
# add 1 to each element of the list
print(list(map(add_one, numbers)))
# [2, 3, 4, 5, 6] | [
"arpan.balpande22@gmail.com"
] | arpan.balpande22@gmail.com |
ea453cee134b7a2a5cc78de57c8c137f830c1a8b | 07d71b9664f4cac4841455c9a5966cbc66b87ae9 | /project_native/models/project_task_scheduler.py | 62ce99180ff9783d6dfb58cff002d96fb86ab3fd | [] | no_license | benoitlavorata/egy-pt-ext | 16bff0aed96722fc0b303581f9454b4f3be08383 | f07913cf1180e6f4bb336276dfea7d6856a2ca4b | refs/heads/master | 2023-02-04T09:04:16.288987 | 2020-12-25T20:57:50 | 2020-12-25T20:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,990 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, _
import logging
from datetime import datetime, timedelta
_logger = logging.getLogger(__name__) # Need for message in console.
class ProjectTaskNativeScheduler(models.Model):
_name = 'project.task'
_inherit = 'project.task'
def _scheduler_p... | [
"ah.amen79@gmail.com"
] | ah.amen79@gmail.com |
ab80221c201f8a39f9ab877abb289b445c676c9f | 0822d36728e9ed1d4e91d8ee8b5ea39010ac9371 | /robo/pages/gazetadopovo.py | 4da3d40428d2a85f59fddd2ee6384492a83ae54e | [] | no_license | diegothuran/blog | 11161e6f425d08bf7689190eac0ca5bd7cb65dd7 | 233135a1db24541de98a7aeffd840cf51e5e462e | refs/heads/master | 2022-12-08T14:03:02.876353 | 2019-06-05T17:57:55 | 2019-06-05T17:57:55 | 176,329,704 | 0 | 0 | null | 2022-12-08T04:53:02 | 2019-03-18T16:46:43 | Python | UTF-8 | Python | false | false | 1,051 | py | # coding: utf-8
import sys
sys.path.insert(0, '../../../blog')
from bs4 import BeautifulSoup
import requests
from robo.pages.util.constantes import PAGE_LIMIT
GLOBAL_RANK = 2763
RANK_BRAZIL = 123
NAME = 'gazetadopovo.com.br'
def get_urls():
try:
urls = []
root = 'https://www.gazetadopovo.com.br/... | [
"diego.thuran@gmail.com"
] | diego.thuran@gmail.com |
066ca7e803ec013a0aea0411288c4e5cb5f90252 | 36ca8be921506a4463e0442291ce41ed433d423c | /src/ralph/supports/migrations/0003_support_budget_info.py | bce445ed4dfa6e2ae76d5060823278df1b6e594d | [
"Apache-2.0"
] | permissive | bnogas/ralph | 1771ae9dd6e89d7ddc53e447b969b5098f13de4f | 23e2089bea15dd2e6da36d13b360c4e6fe733141 | refs/heads/ng | 2020-12-27T15:03:08.571396 | 2015-11-12T08:12:24 | 2015-11-12T08:12:24 | 45,912,281 | 0 | 0 | null | 2015-11-10T13:05:56 | 2015-11-10T13:05:53 | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('assets', '0006_auto_20151110_1448'),
('supports', '0002_support_tags'),
]
operations = [
... | [
"jarolewski.piotr@gmail.com"
] | jarolewski.piotr@gmail.com |
95472719964a513c8a1f2008ea0a5ce152dc16df | 22d759b3587b5ecb02bdc89be90ea473691741ec | /.vim/bundle/simplenote.vim/autoload/SimplenoteNew.py | cb7419149740c79346face79f6c35ea932246387 | [
"MIT"
] | permissive | emanuk/dotfiles | bb0294c6db66e17ddad04dc2341bb63f458ddc62 | 4268ad081359f47851674b29acb85409f62aed78 | refs/heads/master | 2022-02-07T07:57:25.176244 | 2022-01-25T18:58:08 | 2022-01-25T18:58:08 | 46,514,191 | 1 | 0 | null | 2020-02-29T09:27:24 | 2015-11-19T19:08:34 | Vim script | UTF-8 | Python | false | false | 269 | py | def SimplenoteNew():
interface.create_new_note_from_current_buffer()
try:
set_cred()
SimplenoteNew()
except simplenote.SimplenoteLoginFailed:
# Note: error has to be caught here and not in __init__
reset_user_pass('Login Failed')
# vim: expandtab
| [
"emm@scriptdigital.com"
] | emm@scriptdigital.com |
e7908e6b8ca3d3d7c3d3e08fffb53c30ce614929 | fe8ff23be99db09701a8afe8c84fdd8dd6f6922d | /movie recommendation system ML bootcamp .py | ac5b24327c3c48bd0b70e316ca829a518a24ebdb | [] | no_license | aarush-roy7799/MLBootcampProject-MovieRecommendationSystem | f89a5fb093b2f95b60479962087e8c45e82a1b0c | 7f2071a68a8d0170e74618fad7cd4f1367cbd456 | refs/heads/main | 2023-02-14T20:35:58.754733 | 2021-01-13T10:25:09 | 2021-01-13T10:25:09 | 329,267,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,055 | py | #!/usr/bin/env python
# coding: utf-8
# # basics of the given project
# In[1]:
#importing libraries
import pandas as pd
import numpy as np
import warnings
# In[2]:
warnings.filterwarnings('ignore') #this will automatically filter unnecessary further warnings
# In[3]:
df=pd.read_csv('u.data',sep="\t") #e... | [
"noreply@github.com"
] | noreply@github.com |
0d6a0951572b1f4ab2b1f933bada3a55305bb93a | 42cfc08b49dbb593ba8adaea3b56daa61ac5967a | /backend/wallet/transaction.py | 769619b6baacadb68044374b6dad6525632a0c65 | [] | no_license | danieleplgr/blockchain_pof | db6e0401592d5e84613c87e817f2f0051a8d5143 | 6ea35c5b5918fa1c1f188e3b139648da650568b4 | refs/heads/main | 2023-07-04T20:42:32.385984 | 2021-08-11T13:18:43 | 2021-08-11T13:18:43 | 391,457,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | import uuid
import time
from backend.wallet.wallet import Wallet
from backend.config import MINING_REWARD, MINING_REWARD_INPUT
class Transaction():
"""
Document of an exchange of currency from a sender to 1 or more recipients
"""
def __init__(self, sender_wallet=None, recipient_address=None, amount=N... | [
"danieleplgr@gamil.com"
] | danieleplgr@gamil.com |
f7cf350455c3a15e365db1572e38c6c2ff52682e | f22d4319e6f848202fe847f9190b78ceaae8ed12 | /envExemplo/Lista09/Lista09ExPOO10.py | 9b3820fd5a1f3c12635a14424e06f735faefc6d0 | [] | no_license | AlexandreLouzada/Pyquest | 7ecc0a3e3002df169bd53ae99e66c54019782698 | 29f0e67e5902fad0fc336ece63c9e5d3868d6b09 | refs/heads/master | 2023-08-30T22:54:46.438567 | 2023-08-21T19:04:39 | 2023-08-21T19:04:39 | 248,549,732 | 10 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | class Produto:
def __init__(self, codigo, nome, quantidade, preco):
self.codigo = codigo
self.nome = nome
self.quantidade = quantidade
self.preco = preco
def exibir_dados(self):
print(f"Código: {self.codigo}\nNome: {self.nome}\nQuantidade: {self.quantidade}\nPreço: {... | [
"professorlouzada@gmail.com"
] | professorlouzada@gmail.com |
b3a2d9561eb157d1413e57979d9aa59668c2b036 | 30dba81c669ce68118bb70b8e894fe3b3d77d4a5 | /Combo_Cell.py | 5aa6046bedf2c33260b5150b359cd6393f937ced | [] | no_license | barnziebus/Poker-Hand-Range-Display | f4a591aeaf82bea003a903831a1081414c2130ff | 8456344f18586b481e1b3f5764863761caf8614e | refs/heads/main | 2023-07-19T04:04:45.749221 | 2021-08-29T12:44:11 | 2021-08-29T12:44:11 | 401,038,687 | 1 | 1 | null | 2021-08-30T18:43:45 | 2021-08-29T12:41:30 | Python | UTF-8 | Python | false | false | 6,699 | py | import pygame as py
class ComboCell:
def __init__(
self,
position,
size,
border_width,
bg_col_suited,
bg_col_unsuited,
bg_col_pairs,
fill_percentage_1, fill_percentage_1_col,
fill_percentage_2, f... | [
"noreply@github.com"
] | noreply@github.com |
03895500c9551bd37525900f1fa148c4964873cc | 9bd301711e038a940fded90a3fe8fe32d6074aea | /get_stock_code/get_stock_code/spiders/spider.py | 8a7a4e0fd2e34ee49ab0dbe35f0b7eb2011991cc | [] | no_license | shuihai/hello-world | e5dac7d61e517f45233b673806d716d97c5a5a2b | eb3d34c3c901c6f2cde2f01d9ad346827f5b0ded | refs/heads/master | 2020-12-24T21:28:23.343807 | 2019-12-05T11:57:32 | 2019-12-05T11:57:32 | 56,115,718 | 0 | 1 | null | 2017-10-24T07:16:29 | 2016-04-13T02:53:17 | null | UTF-8 | Python | false | false | 1,111 | py | # -*- coding: UTF-8 -*-
import scrapy
import pymysql
import time
from scrapy.utils.project import get_project_settings
from get_stock_code import items
class Stock(scrapy.Spider):
name = "get_code"
def __init__(self):
settings = get_project_settings()
start_urls = [
"http://quote.eastmon... | [
"99359473@qq.com"
] | 99359473@qq.com |
ee28d9d4acfe42377677ebea8e0ae2bca18a0e62 | aff38cab0037746c7047f8992d8f892012dbe6ad | /fibonacci_sequence.py | 085f2604821ef3a92d6d016b5cf4fce22b8b7e6a | [] | no_license | StitchSizzler/PythonProjects | 64d3e69e2e9e485244dfeb87fc42ef34b6f82b03 | 6478e9b2cb9c1a13095d2605f5745b8b319f776c | refs/heads/master | 2020-09-06T18:48:16.594036 | 2019-11-08T17:45:48 | 2019-11-08T17:45:48 | 220,513,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | def main():
terms = 9
x = 0
y = 1
count = 0
if terms < 1:
print("...")
elif terms == 1:
print("the answer is ", x) # ans = 0
else:
while count < terms:
result= x+y
x = y
y = result
count += 1
print("the answer i... | [
"eisha@ualberta.ca"
] | eisha@ualberta.ca |
d294a9ec9717327763827e8908ac32d844063fc1 | 8d4191968e573de66942f2cf069dcd30ee9c2576 | /Notebooks/Functions.py | 4747d019d07241c66252bb724ec29e671163136c | [] | no_license | frank-salah1/Fun-with-HR | 2f3a9000750170897b4d5374693577bdd97f87bd | b17050a4f1915ccd45fbae6383dcb920a4bd65ac | refs/heads/main | 2023-01-31T16:48:46.815032 | 2020-12-08T02:29:25 | 2020-12-08T02:29:25 | 316,783,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | #import libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cross_validate
from sklearn import metrics
import seaborn as sns
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model i... | [
"66169187+frank-salah1@users.noreply.github.com"
] | 66169187+frank-salah1@users.noreply.github.com |
e005061cf4a8fd3638fd58ec777a4e4c8aded3da | 8b3ea0e41e082c13a6475db7fd41ef57e8d4215d | /models/loss_helper.py | 3acab136dea98d6a53ce2191d7ffcabf9d43c35e | [
"MIT"
] | permissive | aiedward/H3DNet | acbf9d82e29b6fd632ce77f1f8d87d4433232c40 | e69f2855634807b37ae12e6db5963c924e64d3e7 | refs/heads/master | 2023-07-06T23:09:06.562245 | 2021-08-13T17:28:33 | 2021-08-13T17:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,095 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
import numpy as np
import sys
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = o... | [
"zaiwei92@cs.utexas.edu"
] | zaiwei92@cs.utexas.edu |
c36b272872c3cc1acc14f3c5c0c5eb392895f46a | 27987ed5cdf39de8aad3d0eba52e5bc884208118 | /K-Means Clustering/KMeans.py | c770c82c948f13b99ecc8f5c9de4e59ce929514b | [] | no_license | pushkark08/my-code | 3b389052f9f9817a0b38533a4327567816c1d7d7 | 033f77cdf9e7c9ab8c17418ec7778d8d4efb88be | refs/heads/master | 2021-01-11T11:19:05.045707 | 2017-10-20T23:40:40 | 2017-10-20T23:40:40 | 72,698,614 | 0 | 0 | null | 2016-11-03T02:09:17 | 2016-11-03T01:56:34 | null | UTF-8 | Python | false | false | 7,506 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as py
from scipy.stats import multivariate_normal as mn
import math
data = pd.read_csv('hw5_blob.csv', header=None)
c_data = pd.read_csv('hw5_circle.csv', header=None)
def make_centroids(size):
centroid = []
for i in range(size):
ind = n... | [
"pushkark08@gmail.com"
] | pushkark08@gmail.com |
ab4154fd7ecc6a1e254cc3b0c956174debc28cec | c408a92b11ae8586d558f5ecb9abec0261144bd5 | /hypertrack_integration/hypertrack_integration/doctype/hypertrack_action/hypertrack_action.py | fe1f7e6c443f4d39e0949e7113d1b7d71d3589f9 | [
"MIT"
] | permissive | mntechnique/hypertrack_integration | 209068204483703ebc9ebeba4615377026c509e1 | cab78df6d1036b6728a830fc5ef97375ce595a1c | refs/heads/master | 2021-01-15T23:28:11.574284 | 2017-08-10T15:21:54 | 2017-08-10T15:21:54 | 99,937,243 | 2 | 1 | null | 2017-08-14T17:45:08 | 2017-08-10T15:21:14 | Python | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, MN Technique and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class HyperTrackAction(Document):
pass
| [
"gvrvnk@gmail.com"
] | gvrvnk@gmail.com |
7d5dbdfe2f7cee0647a3d0021aab377ccdfdfb23 | c2aad8de3700b004dabb59d6f65a44d95c372638 | /transfer.py | 33e5452a1912d4a7ac0d556d92c4eede86a8ec07 | [] | no_license | cao-cp/remote-management | 4b3abaa2f1c67d7bf8650291f07dff0898f9b0b7 | 886f2e20e3d9ecbfc5890ac90ccf6920078442f2 | refs/heads/main | 2023-02-18T19:03:51.513919 | 2021-01-20T07:33:03 | 2021-01-20T07:33:03 | 329,848,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | import io
from flask import Flask, Response, request, jsonify, render_template
from werkzeug.wsgi import FileWrapper
# 基于flask web框架,属于正向连接,需要申请网络权限
global STATE
STATE = {}
app = Flask(__name__) # 创建flask实例
''' Client '''
@app.route('/') # 访问根目录时的动作
def root():
return render_template('./index.... | [
"noreply@github.com"
] | noreply@github.com |
c77f5b573f00f74f62d1597a04166748f013b76e | 5e93425a41c38a7d6ed05d51c2ce573ecd332d88 | /candy_shop/core/managers/order.py | 28e97172b208db46b4688a8658ed4862e89338fa | [] | no_license | alexey1214/candy_shop | 059779be13f49b1bef5959eef8dd50d4756268ef | 0a059d4679441321841fb6e14c4766c1cd3aa06c | refs/heads/master | 2023-03-27T15:15:31.562374 | 2021-03-28T20:18:45 | 2021-03-28T20:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from django.db import models
class OrderQueryset(models.QuerySet):
def not_assigned_yet(self):
return self.filter(shipment__isnull=True)
def not_delivered_yet(self):
return self.filter(complete_time__isnull=True)
def assigned_to_courier(self, courier):
return self.filter(shipment... | [
"alexey1214@gmail.com"
] | alexey1214@gmail.com |
b3eb279fad2d0fe6de009f53bebb90eff761ae81 | 8257985fb7d65bcbd47bb79e493b887679107c8f | /tensorflow/python/eager/backprop.py | ac88f18eba53de2654a2ba88c952cdafb801dd7e | [
"Apache-2.0"
] | permissive | nikky78/tensorflow | 164dce12590ffa7621e5e616450461c912471dcf | bb2f2995db3838e8ab1420b0c766a9d18d40e894 | refs/heads/master | 2021-05-15T00:01:26.069092 | 2017-09-20T13:54:07 | 2017-09-20T13:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,500 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
26402c3745ae17f96eea76820d53e150b49623f6 | 5599001eed042b7c48b2dc9227537d3b4565d893 | /manage.py | 4a0cd0d9382794f683f13910b1a15ec950dcc95b | [] | no_license | NgomGit/TB-Diagnosis-Web-App | 90e42d8ad2b1ac48793e95eba7f14509e9c5de21 | e015604e24725978e3ce1d742785ffd3a98e2e59 | refs/heads/master | 2023-01-05T08:55:07.077449 | 2020-10-28T15:31:30 | 2020-10-28T15:31:30 | 266,766,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | 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', 'tb_diagnosis.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"ngommouhamedlamine95@gmail.com"
] | ngommouhamedlamine95@gmail.com |
847c8e433e24ff9f42e692850020a542a03d03dd | 2d507c84130df32b48d2f9d796ab756368ebfddd | /day16/day16.py | 37e4861e9e47930935208d451649d72479f79687 | [] | no_license | patricksanders/aoc2017 | 3f4291d229db1ada78d8259ff734c0857893ac12 | 5fdb359408d48e46dd191dffe5f2272e3a169380 | refs/heads/master | 2021-08-30T12:35:36.564386 | 2017-12-18T00:51:48 | 2017-12-18T00:51:48 | 112,790,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | #!/usr/bin/env python
from string import ascii_lowercase
def spin(programs, count):
for x in range(count):
programs.insert(0, programs.pop())
def exchange(programs, first, second):
temp = programs[first]
programs[first] = programs[second]
programs[second] = temp
def partner(programs, firs... | [
"psanders@pindrop.com"
] | psanders@pindrop.com |
b9d7f58e5ce2df2d1e5b2de5133ce3e2a2e4020f | 505ce732deb60c4cb488c32d10937a5faf386dce | /di_website/datasection/migrations/0018_auto_20191115_1108.py | 9739d427e1bc60ac12c93a34e1c0c47d8e31d823 | [] | no_license | davidebukali/di_web_test | cbdbb92b2d54c46771b067a24480e6699f976a15 | a826817a553d035140bb8b6768f3fd2b451199d8 | refs/heads/develop | 2023-02-11T13:21:26.281899 | 2021-01-08T04:37:34 | 2021-01-08T04:37:34 | 319,560,677 | 0 | 0 | null | 2021-01-08T04:37:35 | 2020-12-08T07:30:51 | HTML | UTF-8 | Python | false | false | 7,247 | py | # Generated by Django 2.2.6 on 2019-11-15 11:08
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('datasection', '0017_a... | [
"edwinm_p@yahoo.com"
] | edwinm_p@yahoo.com |
f86b0130ea0990f7b6e3dacbc06b3e6048e0c242 | 69be6669c2cefa885a0ef206ac01d8282d7b94e3 | /gettingstarted/settings.py | 78d9c49c915b6f737c0be09f877643b6a19dc891 | [] | no_license | renzoxpixely/Sotelo | 9e7c405acc7c3825091463c39223280dc2285423 | 3b64e6405889a9fe5dad2c98a7eb1a9efa15663b | refs/heads/master | 2022-12-03T11:55:55.252681 | 2019-11-21T17:48:29 | 2019-11-21T17:48:29 | 213,997,430 | 0 | 0 | null | 2022-11-22T02:24:31 | 2019-10-09T18:44:32 | CSS | UTF-8 | Python | false | false | 3,776 | py | """
Django settings for gettingstarted project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import ... | [
"renzo_or@hotmail.com"
] | renzo_or@hotmail.com |
bf0e8ddf89be6ec35c9d3e37b6cdeb1cf6826908 | c6ce4c3cbcc08e4558a8bbcbdbad8efb155b4cd3 | /classification/python/stub.py | a0f411073dee429124c7d11b73577a7b65d23325 | [] | no_license | valeter/nlp-site | 8cb4510f3bd148ca490704472a0f794711d5f15f | 65df6e3ec17c192769265a0a638cadcac1606330 | refs/heads/master | 2021-01-17T05:24:00.592358 | 2013-08-22T22:44:38 | 2013-08-22T22:44:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from os import listdir
from os.path import isfile, join, dirname, abspath
import time
import boto
import subprocess
import sys
import time
from boto.emr.connection import EmrConnection
from boto.emr.step import JarStep
from boto.emr.bootstrap_action import BootstrapA... | [
"ivananisimov2010@gmail.com"
] | ivananisimov2010@gmail.com |
478f9016ff88f8ca535bc738f281ef4670a1b324 | 050f642b9fb73573b891fc8b1c5fb7bdd0785954 | /source/2장/py/예제2-4.py | 5706de79c7a43ee59fa63b71c7d92176c934aa43 | [
"MIT"
] | permissive | TaehoLi/DL-Tensorflow | fc76f0e543f29d007fbcadc860c3834e6b6d66a3 | 1a7f1f14924d93be0794615fa21a99f0b32146a5 | refs/heads/master | 2020-06-20T01:33:37.015656 | 2019-07-16T07:50:28 | 2019-07-16T07:50:28 | 196,945,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | # -*- coding: utf-8 -*-
from tensorflow import keras
from tensorflow.keras import layers
import pandas as pd
import tensorflow as tf
import random
infert = pd.read_csv("infert.csv", delimiter = ",") # 데이터 불러오기
X_data = infert[["parity", "induced", "spontaneous"]] # X, y 정의
y_data = infert["case"]
tra... | [
"43288563+TaehoLi@users.noreply.github.com"
] | 43288563+TaehoLi@users.noreply.github.com |
dc1eebcf72b6afa384ae1dfdeb4a15919adecf59 | 4f2c48896b0ac88b21a109d506296337a3a14807 | /service.py | 08955d7620d5742a20b126c253fe191cb9118d5a | [] | no_license | mehdi1361/tcp_server | 0539c6de158a6f6ac26428cc4f14f8bdd566cbdd | 3a697221c3ba0110fb54e4c94958265b7fbbc0a8 | refs/heads/master | 2020-03-26T03:14:49.076505 | 2018-08-28T15:05:29 | 2018-08-28T15:05:29 | 144,384,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,705 | py | import os
import sys
sys.path = [os.path.join(os.getcwd(), '.'), ] + sys.path
import json
import settings
# import time
from twisted.internet import reactor, protocol, task
from twisted.application import service, internet
from common.game import Battle
from common.objects import Player, CtmChestGenerate
from common.... | [
"mhd.mosavi@gmail.com"
] | mhd.mosavi@gmail.com |
21247e433ed5e2c7c641a6ed3d76b65d22d97bd0 | 98accda7dac57e2002753959d15634fbea8229df | /SRI_scrapy/SRI_scrapy/spiders/sh_mid.py | 32b84a6e6a331aa53aee30c9cca4364b32788ed0 | [] | no_license | EasonHee/dingdingBackEnd | b80ef0a22670e1210ef2362c026b4e3844072993 | 0eebfbd36f0dfcd479211cb5a7d6df2df98577d1 | refs/heads/master | 2022-12-30T21:13:53.911347 | 2020-10-23T13:00:19 | 2020-10-23T13:01:14 | 284,451,022 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | # -*- coding: utf-8 -*-
import scrapy
import selenium
import time
import os
import random
import pymysql
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from SRI_scrapy.i... | [
"yu1piao09@163.com"
] | yu1piao09@163.com |
4e994ebb687b6f0c43a5a43ae6c411ac50586ae8 | 797a51c095a6a04c6f2a8e5066beefe533205868 | /l10n_lv_check_company_registry/responses.py | fdaf9dea8b57098c576f083fbcc5bc890307ea46 | [] | no_license | Aivenho/l10n_lv_addons | cdb5ecf8ed4b36bf40c95cf34a8f1a4cfc0d6f0b | 15cddcaf45ca7e21dbe64abed71705fb8ebc4a73 | refs/heads/10.0 | 2021-01-22T22:39:46.081155 | 2017-01-31T08:30:31 | 2017-01-31T08:30:31 | 85,567,422 | 0 | 0 | null | 2017-03-20T11:08:47 | 2017-03-20T11:08:47 | null | UTF-8 | Python | false | false | 3,086 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
auth_success = b"""<?xml version="1.0" encoding="windows-1257"?>\r\n<soap:Envelope xmlns:soap="http://www.w3.org/2001/09/soap-envelope">\r\n<soap:Header xmlns:Lursoft="x-schema:/schemas/lursoft_header.xsd">\r\n<Lursoft:SessionId>8F1... | [
"karlisdreizis@gmail.com"
] | karlisdreizis@gmail.com |
95644dd622ba8e1d18d9679fb5e4e32b799263ba | 0694d9f69934cc21a20bd3a47871c04624bf5123 | /helper/valid_tmp.py | 33ece6949b3f48b849d026e7991ab68413ec1bc1 | [] | no_license | ShenDezhou/courtpy | fb47edb3b19062d0d60928375c7ab4bf98a3b089 | 338fca9c889994498173631ac2469684483afedd | refs/heads/master | 2020-06-10T18:20:51.660842 | 2017-01-16T13:59:59 | 2017-01-16T13:59:59 | 75,911,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # -*- coding:utf-8 -*-
__author__ = 'Mr.Tian'
from log import init_logging
from mongo import ProxyItemsDB, ProxyItemsDropDB, ProxyItemsTmpDB
from valid_proxy import valid_proxy
from get_proxy import GetProxy
def main():
get_proxy = GetProxy(ProxyItemsTmpDB)
while True:
item = get_proxy.get_proxy()... | [
"bangtech@sina.com"
] | bangtech@sina.com |
3ec4fd21b3c26001f0136959bb4ffd2d29a44898 | ccf632d96f02a211b2a6bc6d116834ea5e3efed5 | /Meander.py | 2ad47e82266ad816bb80db7590ebef60c064aef7 | [
"MIT"
] | permissive | danfitz7/CircuitGCodeGenerator | d9a23ed183b4f5bcc7a97fa72517dc882d2840ba | 9bc6dcda2e2663e3b902a28048228055e084cc4d | refs/heads/master | 2020-04-05T17:01:26.765518 | 2014-05-30T02:45:16 | 2014-05-30T02:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | from mecode import G
from math import sqrt
g = G(
print_lines=False,
outfile=r"C:\Users\lewislab\Desktop\DOGBONEcircuit-path.gcode",
aerotech_include=False,
)
#Extra G Codes
PRESSURE_ON = 'M400 \nM42 P32 S255'
PRESSURE_OFF = 'M400 \nM42 P32 S0'
PAUSE="M0\nM1\nM25\nM226"
class Point(object):
"""P... | [
"jack@minardi.org"
] | jack@minardi.org |
e1151684bf7454af340d2e67902bf1f05e00335e | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp150_4000.py | e0ed7aa5a33c2157e8926454f9444587864ee523 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,781 | py | ITEM: TIMESTEP
4000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-2.5531331962706183e+00 4.9753133196264614e+01
-2.5531331962706183e+00 4.9753133196264614e+01
-2.5531331962706183e+00 4.9753133196264614e+01
ITEM: ATOMS id type xs ys zs
214 1 0.0371447 0.087567 0.129368
1118 1 0.0590121 0.010013 0.135981
336 1 0.... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
e87e029eaa2d3d283eadcde19b4a76984da3bf66 | f40b162d67c1aff030b14f7899c7fc4bbc1c993d | /pyvision/logger.py | afce2ba8df0aced624489f8594c7f4f3a05e60f5 | [
"MIT"
] | permissive | afcarl/pyvision | c3e7784a9feb585a3feaa936510776d5d1f36db1 | e464a4ecc60cec49569be90d51708f3ad481f28a | refs/heads/master | 2020-03-20T06:03:06.479246 | 2018-05-01T13:28:40 | 2018-05-01T13:28:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | """
The MIT License (MIT)
Copyright (c) 2017 Marvin Teichmann
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import numpy as np
import scipy as scp
import warnings
import deepdish as dd
import logging
from tables.exceptions imp... | [
"marvin.teichmann@googlemail.com"
] | marvin.teichmann@googlemail.com |
26ce2c853d6fba5103f7e8c8487635468f81dce4 | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.athena.Workgroup-python/__main__.py | fa1fc79a816edeaa868da2137ad1926dc3a71196 | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import pulumi
import pulumi_aws as aws
example = aws.athena.Workgroup("example", configuration={
"enforceWorkgroupConfiguration": True,
"publishCloudwatchMetricsEnabled": True,
"resultConfiguration": {
"encryption_configuration": {
"encryptionOption": "SSE_KMS",
"kms_key_arn... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
9adb0540db57d010a109a1e7b9a847f92f9244a8 | 6d50dc8185466dc52d85052f8ab6f3736fed7b18 | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | becd4486df5a70dd9205eca7eb7124d582d11d21 | [
"MIT",
"Apache-2.0"
] | permissive | josegarvinvictoria/Angular_Gulp_Ex4 | e640750e61649b1db5d60367224d2fecad858709 | a7524af336d4215e375b804bf5fa39eda51bdf01 | refs/heads/master | 2020-05-17T11:12:54.685422 | 2015-03-16T17:52:15 | 2015-03-16T17:52:15 | 32,342,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_byteorder": "l... | [
"josegarvinvictoria@gmail.com"
] | josegarvinvictoria@gmail.com |
e21ea8bebe8627b81c6da6a0a36535703b9c4424 | ddde676bb9c24ff3c90253caa6b5861b247747de | /venv/bin/pip3 | 7a85b2eac0124250ac7439b41b1a5d94365dfa1a | [] | no_license | bopopescu/johndoecorporation | 969ba465af3f6adae5582afc8ab98f19ff6fbceb | 6726bf0d2fb289a4d2f5781223a1938d22990d8f | refs/heads/master | 2022-11-18T18:20:02.341790 | 2020-02-09T23:08:38 | 2020-02-09T23:08:38 | 281,299,067 | 0 | 0 | null | 2020-07-21T04:55:56 | 2020-07-21T04:55:56 | null | UTF-8 | Python | false | false | 418 | #!/Users/jonathanharijanto/PycharmProjects/crudwebapp/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"harijant@uci.edu"
] | harijant@uci.edu | |
05a47c602f473bd4d8d7106519de0c4879ac6a01 | 7b0e7941d9bf71037bb61226c45e6adbfe625afd | /19_number_names.py | dcdfe5f6acb04a136eb7f45ade0f9ba8b378ec02 | [] | no_license | myPyQuest/100 | 1a08696e01de88cebcf76d61f2a47fb4e025d137 | 69010d679e3b7fa7b9c7673ffded2602ddf7bfa6 | refs/heads/master | 2020-12-24T14:26:37.988071 | 2015-01-19T20:07:52 | 2015-01-19T20:07:52 | 28,447,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,100 | py | """ **Number Names**
Show how to spell out a number in English. You can use a preexisting
implementation or roll your own, but you should support inputs up to
at least one million (or the maximum value of your language's
default bounded integer type, if that's less).
################################... | [
"bogdandemchenko@gmail.com"
] | bogdandemchenko@gmail.com |
8d428edba83b40ef8b7f17979f0dc7337531771b | 1ea6822cc5ff62b17db3b7013007da9ef98ef685 | /config.py | f18325e023976e5bdab0e9e8858eea72f21dd4d2 | [] | no_license | rezid/api-rest | 38b8815a1e350396d92caee26bd5f94f0739bb0a | 532369930dc33888c00f711b3b977a9a5eecb3a0 | refs/heads/master | 2020-03-16T18:48:44.724990 | 2018-05-14T12:52:27 | 2018-05-14T12:52:27 | 132,887,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | import os
from datetime import timedelta
SECRET_KEY = b'zidane'
# When debug = Flase in the flask application, and We make a call to a jwt
# protected endpoint without an access token the process will terminate with
# 500 Internal Server Error without this config
PROPAGATE_EXCEPTIONS = True
# change the default url ... | [
"abderrazak.zidane@d2-si.eu"
] | abderrazak.zidane@d2-si.eu |
e6f51b04e362267f3c2c2555c5394eb5c42ea078 | 6362d18d6aadefa9949d10eae31030b25ff46fd0 | /ndstats/management/commands/saveunknown.py | c4c5787ef7c05f1bbaed4013d69d11cbd880a301 | [] | no_license | yedpodtrzitko/ndstats | 2ab3c0d389401b4c5e96f976b45f443f09057a70 | d59b6395729269e311119c6edae7577303ec5d1b | refs/heads/master | 2022-12-09T18:59:03.916427 | 2019-10-23T04:05:36 | 2019-10-23T04:05:36 | 40,006,216 | 0 | 0 | null | 2022-12-08T02:25:49 | 2015-07-31T13:19:30 | JavaScript | UTF-8 | Python | false | false | 814 | py | from django.core.management.base import BaseCommand
from ndstats.models import UnknownLine, Chatlog
from ndstats.parser import LogParser
class Command(BaseCommand):
def handle(self, *args, **options):
parser = LogParser()
Chatlog.objects.all().delete()
for line in UnknownLine.objects.all... | [
"yed@vanyli.net"
] | yed@vanyli.net |
7f5effb36ac00dad195203e6ac8257fce255d6ce | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_145/ch24_2019_04_03_22_28_52_327688.py | 6c0c7ab21be1649606ab09c05cbc3f8ed028a92b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def classifica_triangulo(a,b,c):
if a == b and b == c:
return "equilátero"
if a == b and b != c:
return "isósceles"
if a!= b and b != c:
return "escaleno"
| [
"you@example.com"
] | you@example.com |
42841797a75c160f15ac142f64f1ae9028c71760 | 65eefea8e42cbd738122429acec6fead161ddf33 | /7.1/7.1.py | fac3d143337dce0cbc91b45900be59a7b5082d72 | [] | no_license | artzkh/python_lab | 61054c0e4388159e3ea54a42223a598e736baf40 | a9aca449f6435db875c7ad08afac2e5961e81712 | refs/heads/master | 2023-05-14T16:09:52.764727 | 2021-06-03T17:10:34 | 2021-06-03T17:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | def main():
with open("infile.txt", "r", encoding="UTF-8") as file:
workers_list = file.readlines()
# A
max_salary_male = 0
name_male = ""
max_salary_female = 0
name_female = ""
for worker in workers_list:
worker_atr_list = worker.split(" ")
name = worker_atr_list... | [
"arrmf1@mail.ru"
] | arrmf1@mail.ru |
f01ad74fe93c443d86dfd9663058d06912a90a16 | 1438e3bd3720b79cb593b488a29c8ccdc59f5282 | /Атрибуты и методы/Практические задания/task1_LinkedList_init_linked_list/main.py | ae039bd217436f55fb58e88a0313dcd85af0a36b | [] | no_license | LorenzoY2J/PythonPY200 | a9339e7817431df509640a85e05579fad9ae4f0d | e6a4661a8ea7d34374ed4fbe527283154cf3bfd7 | refs/heads/master | 2023-08-15T00:33:28.538359 | 2021-10-02T07:56:52 | 2021-10-02T07:56:52 | 404,414,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | from typing import Iterable, Optional
from node import Node
class LinkedList:
def __init__(self, data: Iterable = None):
"""Конструктор связного списка"""
self.list_nodes = []
if data is not None:
self.init_linked_list(data)
def init_linked_list(self, data: Iterable):
... | [
"ratedrko@yandex.ru"
] | ratedrko@yandex.ru |
6beb68044496eaa1237f04e43ba02cb82246b53d | a46c15e4de6b46490ac310a417cedf4b00eae6d3 | /app.py | d47c5e587d5c9f644c94dd94d8e3e472163a9591 | [] | no_license | stanley98yu/reading-list | 3e57396fa0fb2cfd4719b75fcaa7e2dbd0da57a3 | 91f4d06be04f0eb2575e7f716cb6d2870dc61d15 | refs/heads/master | 2021-05-10T10:57:56.771662 | 2018-02-10T16:37:04 | 2018-02-10T16:37:04 | 118,397,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | # app.py: Basic Flask program for running the reading list application.
# Author: Stanley Yu
# Date: 2/9/18
from flask import Flask, render_template, request, redirect
from flask.ext.mongoengine import MongoEngine
from flask.ext.mongoengine.wtf import model_form
from flask.ext.login import LoginManager, login_user, log... | [
"stanley98yu@gmail.com"
] | stanley98yu@gmail.com |
b6e90aaedf1d48dd9f29869026f126765ba0c884 | 3f15dfc8b997c55a70ddc37001f20fc4cc93aaf0 | /polls/migrations/0001_initial.py | 41b341e47139561536f779228d651c257ba5d19b | [] | no_license | soledadvega/TodoDjango | 8e86e165042adea4759b9e5f66acb72b61afc008 | d6a1c08eadb1e8bcbd3cda7b7512f0a4dc391ed2 | refs/heads/master | 2020-09-26T08:55:27.453295 | 2019-12-12T01:23:13 | 2019-12-12T01:23:13 | 226,221,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # Generated by Django 2.2 on 2019-12-06 03:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"solmun13@gmail.com"
] | solmun13@gmail.com |
07b8a7afb9e5a2d9650d56d56bd5b2392d8e0349 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/galaxy/login.py | dda856099160cc82d6dd3235e8a4cfc975f305b1 | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 4,573 | py | ########################################################################
#
# (C) 2015, Chris Houseknecht <chouse@ansible.com>
#
# This file is part of Ansible
#
# Ansible 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 Fo... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
03aed01472fa885efdbc4ab602a4a9406a6170bf | 11ae5529b91c90f95b62311ddfe1992d30dbae6f | /mysite/settings.py | 66939d59b8297db8354b803b25f19836647429c6 | [] | no_license | vitor115/Django_Course | ba884ee6478580070ca519f916f36efba3cd6259 | 0c781fefd9cd2b181d1b67639ea659c42dcfba23 | refs/heads/master | 2020-09-29T22:58:35.716996 | 2020-03-06T19:25:47 | 2020-03-06T19:25:47 | 227,142,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"vitorravacci@gmail.com"
] | vitorravacci@gmail.com |
8a3b729b6a6bc27ce2e4328b965750b430115181 | 150464efa69db3abf328ef8cd912e8e248c633e6 | /_4.python/tkinter/_example/tk_ex_Image_Editor.py | e890b9404e82f3b701cc5231d8f8fa63a3e4abab | [] | no_license | bunshue/vcs | 2d194906b7e8c077f813b02f2edc70c4b197ab2b | d9a994e3afbb9ea84cc01284934c39860fea1061 | refs/heads/master | 2023-08-23T22:53:08.303457 | 2023-08-23T13:02:34 | 2023-08-23T13:02:34 | 127,182,360 | 6 | 3 | null | 2023-05-22T21:33:09 | 2018-03-28T18:33:23 | C# | UTF-8 | Python | false | false | 3,510 | py | import tkinter as tk
from tkinter import filedialog
from tkinter import colorchooser
from PIL import Image, ImageOps, ImageTk, ImageFilter
from tkinter import ttk
root = tk.Tk()
root.geometry("1000x600")
root.title("Image Drawing Tool")
root.config(bg="white")
pen_color = "black"
pen_size = 5
file_path = ""
def add_... | [
"david@insighteyes.com"
] | david@insighteyes.com |
b3c196f217216ead765010ac8134f01b553fa9f0 | 702845213e8033e5cf4afe4fae4a0095c0b91ac6 | /algos/house-robber-iii.py | 28bfa6c3a98a7ca9229c396448b808f74a5d1106 | [] | no_license | warlockee/leetpy | c908595633162b35297f4353c6f63d0e5db09e0c | 0b72b9792c482caa621b4fa7bda207d0bb606bd7 | refs/heads/main | 2023-03-19T05:54:43.404613 | 2021-03-18T00:41:26 | 2021-03-18T00:41:26 | 348,891,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | """
I learn the answer from @realisking, I couldn't come up with such elegant solution myself.
On every node we got two option, to rob or not to rob
* To rob this node, then we cannot rob our left and right child, so the max value would be the total of
* value of this node
* the max value from left child, when... | [
"erik@inceptioglobal.ai"
] | erik@inceptioglobal.ai |
153da44cc3daa2381d3adda32901329e35184805 | fb5b204943101746daf897f6ff6e0a12985543c3 | /tests/pytests/TestGeneratePoints.py | dcbdfc38cb2ced34da4be7681d7545850dfa7f66 | [
"LicenseRef-scancode-warranty-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | baagaard-usgs/geomodelgrids | 911a31ba23ca374be44873fdeb1e36a70ff25256 | 7d0db3c4ca1a83fea69ceb88f6ceec258928251a | refs/heads/main | 2023-08-03T07:52:25.727039 | 2023-07-27T21:56:19 | 2023-07-27T21:56:19 | 97,262,677 | 5 | 3 | NOASSERTION | 2023-03-23T03:34:45 | 2017-07-14T18:34:38 | C++ | UTF-8 | Python | false | false | 3,722 | py | # ======================================================================
#
# Brad T. Aagaard
# U.S. Geological Survey
#
# ======================================================================
#
import unittest
import numpy
import sys
sys.path.append("../../src/scripts... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
5dd51ec1186acc7591cc356a5d69998b3cb01ca4 | bf3d05db17e63a130a49f0f11076c4ef130ff407 | /net_check_tool/ssh_info.py | 929414c02fc41695696d4727c28f6883bc4dcd88 | [] | no_license | HeyMax/zs_cluster_tools | 0c965ecb33d89ca1c53b5dd08607c7841297122b | 6ca7ca9c2d67f4727d74d6265c92dfb15e542533 | refs/heads/master | 2020-03-23T06:59:14.861702 | 2018-07-19T12:50:09 | 2018-07-19T12:50:09 | 141,241,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | import os,sys
def ssh_info_generate(cluster_uuid_list=[]):
query1 = 'echo "select managementIp from HostVO where hypervisorType = \'KVM\''
query2 = ';"| mysql -u root -pzstack.mysql.password zstack|grep -v managementIp'
query = query1 + query2
#mysql select statement
if len(cluster_uuid_list):
insert = ' and cl... | [
"root@chandocker2"
] | root@chandocker2 |
6bfbed10f2be00a9cd038e8db238272c5ddda73d | bb53e9883437a4df49da1f9646f67ee51f12c4ca | /merge_sort.py | 9d3356371775d88de2d68e6af35b8005a6db0dd4 | [] | no_license | petehwu/python_practice | 513c2260bb7bc34072bd4dafe122e05dfb3baa4c | 31817ec10bc9bddf6ee82400ca7045b5445c55fe | refs/heads/master | 2020-05-24T03:26:11.915327 | 2019-07-17T14:47:11 | 2019-07-17T14:47:11 | 187,072,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | #!/Users/pwu/anaconda/bin/python3
""" shebang for linux #!/usr/bin/env python3
merge sort algo
"""
def ms(arr):
""" entry point for merge sort
"""
print("before merge sort {}".format(arr))
rms(arr)
print("after merge sort {}".format(arr))
def rms(arr):
""" recursive function that keep splitt... | [
"pete.h.wu@gmail.com"
] | pete.h.wu@gmail.com |
e12b9edd9de3ac3551d2af51048816aece8375cd | 402f386c25d476b5b5068f67ecb6730860348738 | /animal image classification.py | 503ee6061dd3f63caa134e80243bb817bbea9abe | [] | no_license | saumya-v/ML-Project- | 5e830daf8e6f227e3919735794a22af3415a359e | ee285310096c633f34291a2e30952f25af70b0b7 | refs/heads/master | 2022-11-16T02:21:14.917341 | 2020-07-16T18:18:42 | 2020-07-16T18:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,113 | py | #!/usr/bin/env python
# coding: utf-8
# Installing required packages
# In[2]:
get_ipython().system(' pip install opencv.python')
# In[3]:
get_ipython().system(' pip install matplotlib')
# In[4]:
get_ipython().system(' pip install sklearn')
# Importing required libraries
# In[5]:
import tensorflow as tf... | [
"noreply@github.com"
] | noreply@github.com |
1f8860ae498735022c3f4a03dfceddf19413d4ad | 0592d79dc0c94d0e829d9f2b1fd9f400a6bf8cd2 | /transform.py | ee1d6d7e4f6fef8073d601a4fec2efb9108a413c | [] | no_license | 3liz/docker-pymarkdown | e1bb6aaffb51138753dc53edc9c81df6b3977765 | d6824b2d79ced6facccf9914de05f74b91a9da58 | refs/heads/master | 2023-03-01T16:26:16.161037 | 2021-02-02T04:17:08 | 2021-02-02T04:17:08 | 272,924,870 | 0 | 0 | null | 2020-08-25T09:44:21 | 2020-06-17T08:53:17 | Python | UTF-8 | Python | false | false | 2,685 | py | #!/usr/bin/env python
import warnings
import re
import sys
import markdown
from markdown.extensions.toc import TocExtension
from markdown.extensions.fenced_code import FencedCodeExtension
liz_domain = 'https://docs.3liz.org'
mkin = open(sys.argv[1])
md = markdown.Markdown(
extensions=[
TocExtension(
... | [
"gustrimaille@yahoo.fr"
] | gustrimaille@yahoo.fr |
08aad24251331b85574b8079bc914ee6d1e14350 | ebb1fca3c328cf42349b931f54b39bc0505d176b | /BSeQC/qc_filter/nonuniform_filter.py | c010243b9a55a55390a766b1b47ba85f9f300476 | [] | no_license | lijinbio/BSeQCpkg | 42dbb83ad76465e8c00ab956dfc70e83f8ba3520 | 2ada5de21b644c28cecc3357a82fb25faa124a50 | refs/heads/master | 2020-09-13T11:18:34.687836 | 2019-06-03T19:13:59 | 2019-06-03T19:13:59 | 222,758,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,386 | py | # ------------------------------------
# python modules
# ------------------------------------
import os
import sys
import logging
# ------------------------------------
#own python modules
# ------------------------------------
from BSeQC.qc_filter import paired_filter as PF
# ------------------------------------
... | [
"lijin.abc@gmail.com"
] | lijin.abc@gmail.com |
4591bdd5380e83aa388f12a77fcb1974dddec648 | ee48355795a5323eea0df10953f4637d5a755c8c | /test_main_page.py | e242eff3ac9e6a68d5c8a3cd1a3ad5edd0952954 | [] | no_license | yakunin-av/Finish_Tasks_step_4 | 5925fdb56c1badcfabd8ee4766ede361e1d3781a | 9cfa22d8e522593f702027d5fd3cef7cf93d730d | refs/heads/main | 2023-07-14T11:35:27.033902 | 2021-08-17T22:45:14 | 2021-08-17T22:45:14 | 393,903,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | from .pages.main_page import MainPage
from .pages.login_page import LoginPage
from .pages.basket_page import BasketPage
import pytest
def test_guest_can_see_login_url(browser):
link = "http://selenium1py.pythonanywhere.com/ru/accounts/login/"
page = LoginPage(browser, link)
page.open()
page.should_be_... | [
"noreply@github.com"
] | noreply@github.com |
919286dee2cf3f64c831410581789a79c59e10e6 | 5689947a9648966a92e81bdd693b01ea9026b804 | /archive/Arc.py | 99c67dc806d9ac398ab86c5dbb5096f80f66b1f2 | [] | no_license | Renneta/pyge | 20c44eff9fbdfd01e86f41f23a95196d93d0d6b9 | 747dcbc0dce9890d85834c6d8bd64673a69c767a | refs/heads/master | 2022-04-18T22:53:41.997075 | 2020-03-19T21:37:13 | 2020-03-19T21:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | import struct
from archive import PygeArchive, GenericEntry
#
# (.arc) Tokoya, I/O
#
# unpack & repack seem to work and give the same filesize, data mod not tested
# since all formats inside the archive are proprietary...
#
class Arc(PygeArchive):
name = "Arc"
desc = "Tokoya / I/O"
sig = "\x01\x00\x00\x00... | [
"shish@shishnet.org"
] | shish@shishnet.org |
f4d273bebd59e63bd40fb54b1e42591d68e9b4e9 | 9e75c729a5acbde6828693734e17bd0efb5e809b | /ui/exhibit.py | c25e5262d62680935cd8a17b011b0924f613a32f | [] | no_license | switch-cut/- | 384b7e1d31726ee55b9062d14d099899c455ed2f | a8e4ad2ac1e6a4db567e72dc8463a9d9b40a14dd | refs/heads/master | 2023-06-11T02:18:49.924867 | 2021-06-24T11:33:48 | 2021-06-24T11:33:48 | 376,562,894 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'show.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
import sys
from PyQt5 import QtC... | [
"1737134315@qq.com"
] | 1737134315@qq.com |
c41733f500783438498a23c9fc99d9e89f728f81 | 68ec459bd74c251fdede8144d8e8d787d20b0d40 | /Boot_Class2/class-content/21-mern/21.1/02-Stu_Recipes/Unsolved/client/node_modules/chokidar/node_modules/fsevents/build/config.gypi | ba26712d22d253b5d126afe0f2558e895fe109a2 | [
"MIT"
] | permissive | Alejandro-Fuste/Boot_Class | 46582038102f5892033ffe6ff511a84b76dd87d4 | e07ff6b38c084902def770649297244958958670 | refs/heads/master | 2023-05-12T03:24:34.072738 | 2020-05-28T23:33:34 | 2020-05-28T23:33:34 | 228,410,799 | 0 | 0 | null | 2023-05-07T13:26:54 | 2019-12-16T14:55:46 | null | UTF-8 | Python | false | false | 5,451 | 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... | [
"afuste7@gmail.com"
] | afuste7@gmail.com |
950bc09256b4ca649c9e26ad42137ffece622657 | 44f95e5df3ec15afacd1c35b1aba70764d1a453d | /Stock/Select/Ui/Basic/__init__.py | aed7e559eb66e05db33511388b818c33653d8c67 | [
"MIT"
] | permissive | zsl3034669/DevilYuan | 7e8965e4e4ebcf85df7ded1c0fba06487ad5f416 | 865c1650d3affdccd6926c6527d8c0271774bcc7 | refs/heads/master | 2020-04-12T02:02:23.457179 | 2018-12-16T09:26:03 | 2018-12-16T09:26:03 | 162,236,146 | 0 | 1 | MIT | 2018-12-18T05:43:32 | 2018-12-18T05:43:32 | null | UTF-8 | Python | false | false | 344 | py | import os
from Stock import DynamicLoadStrategyFields
# dynamically load strategies from Stock/Select/Strategy
__pathList = os.path.dirname(__file__).split(os.path.sep)
__stratgyPath = os.path.sep.join(__pathList[:-2] + ['Strategy'])
DyStockSelectStrategyWidgetAutoFields = DynamicLoadStrategyFields(__stratgyPath, '... | [
"louis_chu@163.com"
] | louis_chu@163.com |
df20397ed72d31d667e8df25ab781e3528e5c2a2 | da1e4913608209ffdf176bee87e4edf646f226e5 | /Smart lock Python files year 3/ble_sub.py | 1a96d377e4d699e393616de140f8c8c52b3b79e7 | [] | no_license | OskariV/Old-projects | 591a00a352c0e3f3e1a0ad876ea8c3053ceeadca | bd2d62e01e5817125e73e280d7423e27cfb6b1e7 | refs/heads/master | 2020-04-19T19:17:39.194846 | 2020-02-24T20:50:30 | 2020-02-24T20:50:30 | 168,384,811 | 0 | 0 | null | 2020-02-24T20:25:54 | 2019-01-30T17:28:25 | C++ | UTF-8 | Python | false | false | 8,272 | py | from threading import Thread
from queue import Queue
import bluepy
from bluepy.btle import Peripheral, DefaultDelegate, BTLEException
import numpy as np
import time
class BluepyExample(DefaultDelegate):
def __init__(self, address, passcode, type=bluepy.btle.ADDR_TYPE_PUBLIC):
super().__init__()
se... | [
"noreply@github.com"
] | noreply@github.com |
13c6f8d14beae7bcc4396beae50828e04e08ae7f | 31d7c26b9e23a144101b2de06e530ec2e7ea0c25 | /source/comparison.py | cc056cf884bf44ddb7247a85d692dc20ca199205 | [] | no_license | Veenxz/CFD-Post | 83f873c4635584d3b9971da9094a8b54b815cb68 | 76930d07d62f2318599646415c72bedcca45a805 | refs/heads/master | 2022-12-26T13:46:38.434448 | 2020-10-05T14:57:34 | 2020-10-05T14:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,619 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 4 15:22:31 2018
This code for plotting line/curve figures
@author: weibo
"""
# %% Load necessary module
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
import plt2pandas as p2p
import matplotlib.ticker a... | [
"weibo-hu@outlook.com"
] | weibo-hu@outlook.com |
3c9a8925809b352127d216c4afcf721f3029fc25 | 7f9466f0efb080c27c6c1925309e7a26fc171fe3 | /Flurfunk Project/app/flurfunk/models/CrawlerResult.py | 0946753406602657fe610d1c587b48337cd6708c | [
"MIT"
] | permissive | atabaksahraei/Python-for-Developer | 3d60fbcfbdd19620887f5f26cde1e97cf13126f0 | 6972b7c9a500312ce6a359817feb5f8461391078 | refs/heads/master | 2021-07-23T23:03:21.038671 | 2020-06-30T08:29:23 | 2020-06-30T08:29:23 | 191,564,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | class CrawlerResult():
def __init__(self):
self.posts = []
self.tags = []
self.authors = [] | [
"atabak@sahraei.de"
] | atabak@sahraei.de |
83a240b5fc9261e1f7c8475c98115a151c9bd74f | 02d81d32de08a184b94d741eb9b2c93ff7b2d61a | /xml_to_nfa.py | 4e187276635649318a6b242810ed843a234b0188 | [] | no_license | jarriny/theoryExam | 5433ee2cf82c02b85f029935c79e9437987f66c8 | 4a838c0d40a05d3d64c37134da8997c7a61eb876 | refs/heads/main | 2023-08-24T17:33:04.657997 | 2021-10-17T01:55:53 | 2021-10-17T01:55:53 | 417,847,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | import xml.etree.ElementTree as ET
from nfa import nfa
from transition import transition
def xml_to_nfa(fileName):
testTree = ET.parse(fileName)
tree = ET.parse(fileName)
test = testTree.getroot()
states = set()
start = 'NOTFOUND'
accept = set()
alphabet = set()
allTransitions = set... | [
"noreply@github.com"
] | noreply@github.com |
032a2fb7a4854f6e6761f3e0df0d2ae69186634d | b627da650f75bdcf7e0dc0ef5c4419cf53a1d690 | /src/zqh_core_common/zqh_core_common_wrapper_main.py | b481c38b1f21b225f1271790ddc02b7f95e55678 | [] | no_license | Jusan-zyh/zqh_riscv | 4aa8a4c51e19fb786ba0c2a120722f1382994a52 | bccde2f81b42ac258b92c21bb450ec6ff848387a | refs/heads/main | 2023-08-06T12:56:52.420302 | 2021-09-21T01:25:41 | 2021-09-21T01:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,130 | py | import sys
import os
from phgl_imp import *
from .zqh_core_common_wrapper_parameters import zqh_core_common_wrapper_parameter
from .zqh_core_common_interrupts_bundles import zqh_core_common_interrupts
from .zqh_core_common_wrapper_bundles import zqh_core_common_wrapper_driven_constants
from zqh_common.zqh_transfer_size... | [
"zhouqinghua888@163.com"
] | zhouqinghua888@163.com |
2be3eda89a0d897d74e9104a24c5ae2788a29548 | 8b68c1fb5cae87d1bcbf8f40324285563cf51651 | /Plotting_Script_Test/Muon_Plot_Producer.py | d3d58a595f576c42a98ea32d40b2ed9244123759 | [] | no_license | DarrenBurton/RA1_Muon_Analysis | f219f90a77cbd1991a655ae4509e88d4851e03a6 | 629ed2cf237ca4859ab2b9ad8909694b6b748ed3 | refs/heads/master | 2016-09-05T19:12:32.433149 | 2012-03-13T20:39:27 | 2012-03-13T20:39:27 | 3,040,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,046 | py | #!/usr/bin/env python
from ROOT import *
import ROOT as r
import logging,itertools
import os,fnmatch,sys
import glob, errno
from time import strftime
from optparse import OptionParser
import array, ast
import math as m
#from plottingUtils import *
from Btag_Plots import *
settings = {
"dirs":["275_325","325_375","3... | [
"d.burton10@imerial.ac.uk"
] | d.burton10@imerial.ac.uk |
6a4b0358a8162c27346116a781054044f49a42c1 | 648e3011ff7af8d79c66068fa19143864c69bb8d | /main.py | 7f3350f44eca7a34dbf5512b4c973e77fdfab738 | [] | no_license | CojocariuAlexandru/Go-Game | d83dbccd9698005f5ce9bb5c67e393762f953769 | c1e1e9d0859fc0f830048d3131a2b4105767fb9f | refs/heads/master | 2023-02-17T16:32:48.946102 | 2021-01-12T11:17:05 | 2021-01-12T11:17:05 | 316,950,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | from graphics import *
from Scripts.Utility import utilityFunctions as util
from Scripts.Home import home
from Scripts.Game import game
from Scripts.Game.GameLogic import gameLogic as glog
"""Sets the title and dimensions of the screen"""
def adjust_window(length, width):
global window
window = GraphWin("Go ... | [
"53466892+CojocariuAlexandru@users.noreply.github.com"
] | 53466892+CojocariuAlexandru@users.noreply.github.com |
77c9fef76d82a6fb7e8de5569b17c5efba386b47 | 9b05ba7b6d087b0fbd7966884a4e0fdee1b73dcf | /actors/workerrestartpolicy.py | 73e2ecff1f6fd54ed322eb3cd28e559e0f965f78 | [] | no_license | mdiannna/PyActorsPublisherSubscriber2 | 10121f618f16204277bee1176e1474fb5dc96b2c | ee1581a8dc51b4ce7efedc9bb616f5a2085c3d0b | refs/heads/master | 2023-05-08T09:57:52.710270 | 2020-05-14T10:48:37 | 2020-05-14T10:48:37 | 263,616,371 | 0 | 0 | null | 2021-06-02T01:47:15 | 2020-05-13T11:57:54 | CSS | UTF-8 | Python | false | false | 518 | py | from .actors import Actor, States, Work
from .worker import Worker
# from .directory import directory
class WorkerRestartPolicy():
def restart_worker(self, current_worker):
name = current_worker.get_name()
msg_broker = current_worker.message_broker
worker_to_be_restarted = Worker(name, ms... | [
"mdiannna@yahoo.com"
] | mdiannna@yahoo.com |
457a726143cd0915c106adba2ad3943c0794f1c8 | 35eb1e9f13c49ade510856b99d41f8a17453b659 | /app.py | 0b368a4c9e736e5773132c52cdfc7b28a4a2fc5e | [] | no_license | aymanzay/pyMicroservice | 1d9e65b5a13d80029ba01d90cbe18fb37a4b068a | fc121e5e8388c14fefa606ea7bc8d87cf77de98d | refs/heads/master | 2020-05-19T09:24:58.765994 | 2019-05-04T22:14:47 | 2019-05-04T22:14:47 | 184,945,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | import connexion
from connexion.resolver import RestyResolver
from services.provider import ItemsProvider
from flask_injector import FlaskInjector
from injector import Binder
def configure(binder: Binder) -> Binder:
binder.bind(
ElasticSearchIndex,
ElasticSearchIndex(
ElasticSearchFacto... | [
"a.zeine.96@gmail.com"
] | a.zeine.96@gmail.com |
70149e53002f1b259322ae811ccfe8bcc556b826 | 21ca4171166dd746b06629a6454411f27d9e7d13 | /visualizer.py | cbe5832901dd3fde87524d9a6762da042e602dfa | [] | no_license | having11/RobotLEDStrip | 4622dbe7a4a55d32582fcb37b15da3f7bd209cdd | c0052963e1c859a876539d2d3cb7a4300e7dff9f | refs/heads/master | 2021-01-13T04:55:18.632046 | 2017-02-08T18:09:51 | 2017-02-08T18:09:51 | 81,138,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | import pyaudio
import wave
import audioop
import serial
import time
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
file_name = "fileName.wav"
wf = wave.open(file_name,'rb')
ser = serial.Serial('COM3',baudrate=9600)
iterate = 0
p = pyaudio.PyAudio()
stream = p.open(format=FORMAT,
... | [
"noreply@github.com"
] | noreply@github.com |
08312da6cb255e38c5bf9a4e1fe87b3e29ee7ee9 | 33e200ea9f56db559d2906f110959338330a0b61 | /qcodes/instrument_drivers/Newport/AG_UC8.py | ac6541eaea90f98e9a78ba3c743d78f7a9f5f979 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SvenBo90/Qcodes | f7c589332d19225a2cb8c9228e63687ac902b515 | f78ca1a28335720ce4cc4b33721f90c183ba29b3 | refs/heads/master | 2020-04-26T18:54:38.095380 | 2019-03-05T07:33:52 | 2019-03-05T07:33:52 | 173,758,726 | 2 | 1 | NOASSERTION | 2019-03-05T12:42:23 | 2019-03-04T14:19:40 | Python | UTF-8 | Python | false | false | 13,637 | py | """
QCoDeS driver for Newport AGILIS AG-UC8 Piezo Stepper Controller.
"""
import logging
import time
from typing import Optional, Dict, Callable
from qcodes import VisaInstrument, InstrumentChannel, ChannelList
from qcodes.utils.validators import Ints
log = logging.getLogger(__name__)
# Meaning of error codes retu... | [
"joris@jorisvr.nl"
] | joris@jorisvr.nl |
cb92c1aaac78c5f2d3571107404105e5c4f0cfe6 | 17459a98aed34c61b741bbbb2b11f9159bc4a389 | /Graph/August.py | c7408c28c314fc3549f5dd90e940e3ef5d884daa | [] | no_license | neung2542/Car-Sales | 787ca54486c68a80c188a197e2670cb371ce1ce0 | 29c9fbb9c0afa8408f91fd9653f8da6d3317a7e4 | refs/heads/master | 2020-04-11T21:04:40.828540 | 2018-12-14T15:04:42 | 2018-12-14T15:04:42 | 162,093,935 | 1 | 0 | null | 2018-12-17T07:51:26 | 2018-12-17T07:51:25 | null | UTF-8 | Python | false | false | 618 | py | """carsales"""
import pandas as pd
import matplotlib.pyplot as plt
def main():
"""carsalespermonth"""
df = pd.read_csv('car.csv')
df.set_index("Brand", inplace=True)
ax = df["August"].plot(kind="bar", figsize=(10, 10));
ax.set_title('ยอดขายรถยนต์ในเดือนสิงหาคม',fontname='Circular',fontsize='... | [
"noreply@github.com"
] | noreply@github.com |
749fdfc85ddcbd04b4d91f5eb0cf080a3da20f88 | a169df8c6ad6c6e44c3874020277a5550e595805 | /ROOT/rmais/forms.py | d824142f65adee2ab594e5236513b0bedbcc28c7 | [] | no_license | zoiodev/radarmais | 359cc608eb3f3008602dbf8c02c3f49b95e3438b | e4bbb85b2cc7c0e2a3921e2249c8d5fa8a470022 | refs/heads/master | 2021-01-10T19:36:43.398949 | 2015-04-17T21:26:24 | 2015-04-17T21:26:24 | 34,139,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,008 | py | # -*- coding: utf-8 -*-
from django import forms
from ROOT.rmais.models import Empresa, Cidade, Usuario, Noticia, Categoria, Estado
from django.forms.widgets import CheckboxSelectMultiple
# login e senha
class UsuarioForm(forms.Form):
usuario = forms.CharField( widget=forms.TextInput(attrs={'placeholder': 'Login', ... | [
"Developer"
] | Developer |
b93acdccf694fa0412cdcf42545aba82cfd12e2d | 5a281cb78335e06c631181720546f6876005d4e5 | /blazar-3.0.0/api-ref/source/conf.py | c43a8e3a357451b498583d633bea74875af98c3a | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 4,358 | py | # 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 agreed to in writing, software
# distributed under the... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
1f0c14023f4f3a8b8e113785d2b95bd61accbea0 | d42170ce0ff57e98115fef2b7ec7a44d5e82b1d9 | /人工智能课程-Assignment3/cs231n/classifiers/rnn.py | 91b87d67b195be97c7d2fc6fae49bec609cd9a02 | [] | no_license | Suspect-wu/cs231n | 65eaebf5124d58ccbd35e28475f366ed4035ff5f | f3e6c1768afb1f39f4b89a48c0658bf3a0e82e70 | refs/heads/master | 2022-12-14T07:30:48.620683 | 2020-04-24T10:32:00 | 2020-04-24T10:32:00 | 247,248,713 | 2 | 0 | null | 2022-12-08T05:27:06 | 2020-03-14T09:37:26 | Jupyter Notebook | UTF-8 | Python | false | false | 13,305 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.rnn_layers import *
class CaptioningRNN(object):
"""
A CaptioningRNN produces captions from image features using a recurrent
neural network.
The RNN receives input vectors of size D, has... | [
"1021513495@qq.com"
] | 1021513495@qq.com |
43d07eb26a304b592456508fd160eca4cf141667 | f7bda8a48b9966c8c85a266058c7bb22acea0a81 | /MovieRating-master/rating/admin.py | 9d58e34f8b30f73a571d48086074056df636f6cf | [] | no_license | krishankg/MovieRating-master | 475a4dd8a1e23e62a58240bbc59db44dcc744597 | 8f0e49d768b0695d4bdcf0341207e4915d7ba711 | refs/heads/master | 2022-12-10T08:28:47.844289 | 2020-02-05T04:35:21 | 2020-02-05T04:35:21 | 238,368,328 | 1 | 0 | null | 2022-12-08T03:33:35 | 2020-02-05T04:33:44 | Python | UTF-8 | Python | false | false | 241 | py | from django.contrib import admin
from rating.models import MovieRating
class MovieRatingAdmin(admin.ModelAdmin):
class Meta:
model=MovieRating
list_display=['title','rating','year']
admin.site.register(MovieRating,MovieRatingAdmin) | [
"rohan.kumar.suryan@gmail.com"
] | rohan.kumar.suryan@gmail.com |
755f30982641e346662accc54a3835916cc17054 | 5c2d3e808a354b4dd59cbad51f6fc4ef877a7d6b | /GUI/config-label.py | 84325928bf3becafdc54461b8409d9491db3708f | [] | no_license | itaditya/fun_with_python | 5e166b0f3d6805b53ddb2f291a18fa304894eeca | d9ea23784258184bff8215594cebb93168b47800 | refs/heads/master | 2021-07-09T18:54:23.964425 | 2017-09-30T19:26:33 | 2017-09-30T19:26:33 | 106,717,541 | 0 | 0 | null | 2017-10-12T16:23:44 | 2017-10-12T16:23:44 | null | UTF-8 | Python | false | false | 277 | py | from tkinter import *
root = Tk()
labelfont = ('times', 20, 'bold')
widget = Label(root, text='Hello Config World')
widget.config(bg='black', fg='yellow')
widget.config(font=labelfont)
widget.config(height=3, width=20)
widget.pack(expand=YES, fill=BOTH)
root.mainloop() | [
"prakhar2397@gmail.com"
] | prakhar2397@gmail.com |
48a5bbe355af470f1585a0d220e8c542a5a0d84d | f6a9848bad2f8bc3aa4044876544f26809bd0715 | /cvt/TrAQ/__init__.py | c99110fe59cf0f89e1fdd62b99e0b554382ef8dd | [] | no_license | patchmemory/cvtracer | ad71f435422cccf90ef4759bd7f22594ac5a9939 | f312746475e3a2546c02fcf7e4272f03cb3d47c6 | refs/heads/master | 2023-05-06T17:07:20.014302 | 2020-08-08T01:08:27 | 2021-05-25T10:51:20 | 203,821,337 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | __all__ = [ "Trial.py", "Tank.py", "Group.py", "Individual.py", "CVTracer.py" ]
| [
"ae.patch@gmail.com"
] | ae.patch@gmail.com |
5d1d93706562ffe34c9fbaab7e7a81875873482c | a3a7adad309a3f10f2a86582b993cf6ec5d2e732 | /python小练习/009破解zipfile.py | 7dc6f89b49cb8724898745dda343963e2273f4e8 | [] | no_license | Siyuan-Liu-233/Python-exercises | e4966c799296f208a1010b80107441ef059e330c | 2780047c4903561c669c8cb04d2472738f477ce3 | refs/heads/master | 2021-01-22T11:21:12.418347 | 2017-06-16T13:58:11 | 2017-06-16T13:58:11 | 92,684,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | # 前2个小练习大家学习了字典树的基本原理及应用。python小练习(008):传送门
# 今天我淘气的侄子又把我的文件用zip压缩了,并用了3个小写字母组成的单词进行了加密,你能帮我破解这个zip文件吗?
# readme.zip (195 Bytes, 下载次数: 19)
# 提示:
# python自带的zipfile库:
# ZipFile.extract(member, path=None, pwd=None)
# Extract a member from the archive to the current working directory; member must be its full name ... | [
"Siyuan_Liu_233@qq.com"
] | Siyuan_Liu_233@qq.com |
147b35eeafa3649db71e9d6655566595fea8539b | 6f74902fc5ea6a2b1e48718894c012ea48bba21d | /WABot/app.py | e0c6d286cd3df886fa2ba6c0b30127edd8da7a91 | [] | no_license | RamkumarMrj/WAbot | e3641509101abf6fe6fff7acb31dbdac6f3d128d | 02836925d0940ac91248846e30a7e284b7a44f6a | refs/heads/root | 2023-02-18T09:10:54.491901 | 2020-10-09T16:10:44 | 2020-10-09T16:10:44 | 291,059,570 | 1 | 0 | null | 2023-02-17T05:46:44 | 2020-08-28T13:55:12 | HTML | UTF-8 | Python | false | false | 618 | py | from flask import Flask, request
from twilio.twiml.messaging_response import MessagingResponse
from utils import fetch_reply
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World!"
@app.route("/sms", methods=['POST'])
def sms_reply():
"""Respond to incoming calls with a simple text message... | [
"ramkumar.mrj97@gmail.com"
] | ramkumar.mrj97@gmail.com |
19e861b0300170c28ee7cc41a8cf497ff56f6816 | 9ffa5760421d04c14fcd3487e2bfa7dc1c183721 | /filter_result.py | 2a089f3067d68e09db0005b03be218188ad41fb4 | [] | no_license | wangyue0727/pm2017 | 52989b5243b7e6feaffa57fe9a68fab145f220ea | facb3aa5e1fb66494a3c08b0c5551b105d6d9076 | refs/heads/master | 2021-01-02T09:03:17.462009 | 2017-08-02T18:27:24 | 2017-08-02T18:27:24 | 99,128,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py | import re,os,math,argparse
from lxml import etree
import string
def main(orig, result, runid):
demo=load_demo("/local/data/yuewang/PM/collection/clinicaltrials_clean")
queries = read_input(orig)
keylist = queries.keys()
keylist.sort()
with open("../results/"+runid+".txt","w") as outfile:
with ... | [
"noreply@github.com"
] | noreply@github.com |
42a0eba8ac8d1f312f4125297e83edde3007972c | 6147ed911274012be64eb02d88bff299808cab86 | /初始化.py | bd1f96c59ae1bacfef8b0e4e7e6e865e0b83e9ba | [] | no_license | persontianshuang/toasin | 6dec061afc5964118dac83d5060bb13d957a2a3b | 62896fac5224301a32c096841d4b17ac53d9abe0 | refs/heads/master | 2021-07-02T22:14:47.836627 | 2017-09-25T03:07:59 | 2017-09-25T03:07:59 | 103,622,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | from goods_url import get_url_page_list
import pymongo
import settings
from bson.objectid import ObjectId
MONGO_URI = '108.61.203.110'
def pymg(highest,collections,port=MONGO_URI):
client = pymongo.MongoClient(port, 29999)
zhihu = client[highest]
collections = zhihu[collections]
return collections
def... | [
"mengyouhan@gmail.com"
] | mengyouhan@gmail.com |
c5c2ab0e3aa26f11689e8b234f0690c65ac66268 | 43d184dbd832e5716c32dd6f5b1391f5b5c4e9a5 | /client/node_modules/keccak/build/config.gypi | 59155791ed2e7569ebbcdb83c39d88211903152e | [
"MIT"
] | permissive | Metha-Biofund/Metha-Tokens | 5c4c168d971ccbf7088abe1d9d18b6f04f113b8c | d9bdc65028d3a34f9b37ec700e89b564fb76d3b2 | refs/heads/master | 2022-12-23T15:52:14.264531 | 2019-11-23T15:43:12 | 2019-11-23T15:43:12 | 223,612,758 | 0 | 0 | MIT | 2022-12-10T07:17:36 | 2019-11-23T15:43:26 | JavaScript | UTF-8 | Python | false | false | 5,954 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v141",
"msvs_windows_target_platform_version": "10.0.17763.0"
},
"variables"... | [
"info@metha.life"
] | info@metha.life |
f5042c7997677572b4b12ee2e412c13fef163b5e | d7253538b9c7888e9a39a6c66e0e298426bfc19c | /jwst/regtest/test_miri_setpointing.py | af3b8b2bfc6bcded6c6bd6675cf4f75286215c8d | [
"BSD-2-Clause"
] | permissive | pllim/jwst | 573db2d9197abe49a0a25a3dcc3af0199e3d01a3 | 427c6a1e83195447f0e8ae84d1f6782b56929531 | refs/heads/master | 2022-12-21T08:57:57.201285 | 2021-12-29T20:37:33 | 2021-12-29T20:37:33 | 60,784,169 | 0 | 0 | null | 2016-06-09T15:11:26 | 2016-06-09T15:11:25 | null | UTF-8 | Python | false | false | 1,288 | py | import pytest
from astropy.io.fits.diff import FITSDiff
from jwst.lib.set_telescope_pointing import add_wcs
@pytest.mark.bigdata
def test_miri_setpointing(_jail, rtdata, fitsdiff_default_kwargs):
"""
Regression test of the set_telescope_pointing script on a level-1b MIRI image.
"""
# Get SIAF PRD da... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.