blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e771a1aedae7f216e8205656c9656ab022c6e060 | 66c28faeaf3ec5e2e19007ea627aba62e8b8cc8e | /Game.py | df7fef9444d8237df760ec3281230b748e0b5841 | [] | no_license | iloveleejunghyun/ReinforcementLearning | 9053d0700964101de758a3edbdbf9cca808f31b6 | 79242b3516af5293f4d377344a6698df2193b23f | refs/heads/master | 2022-09-11T17:00:06.691004 | 2020-06-02T22:18:12 | 2020-06-02T22:18:12 | 265,705,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | import numpy as np
import pandas as pd
import random
class Game:
rewards = None
positionCol = None
positionRow = None
def __init__(self, startCol=1, startRow=1):
self.distance = pd.DataFrame({1:[8,7,6,5,4], 2:[7,6,5,4,3], 3:[6,5,4,3,2], 4:[5,4,3,2,1], 5:[4,3,2,1,0]}, index={1,2,3,4,5})
... | [
"ilovejunghyun@163.com"
] | ilovejunghyun@163.com |
3674de65b0e09eba8a92b497cf4a7530fb460826 | d53bc632503254ca0d5099fe457c02c07212a131 | /cookieproject1/cookieproject1/wsgi.py | 0e0d958b3a4961808057c49586b4e5768c75d831 | [] | no_license | srikar1993/django | ba8428f6e1162cc40f2d034126e7baf29eb62edc | 2199d5d94accc7bce5b3fac4a4b7b1444e39b35f | refs/heads/master | 2023-07-14T21:10:52.654992 | 2021-08-26T06:37:04 | 2021-08-26T06:37:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for cookieproject1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"32321399+srikar.madhavapeddy@users.noreply.github.com"
] | 32321399+srikar.madhavapeddy@users.noreply.github.com |
eb6f175b0c5788c950623020ee524b875e28fc23 | bafd37fdbaf76d5d7dabd9c07985969b3924f9c8 | /example_client/example.py | 9671da3b0660af7e0bb9fe806d6331467f1918ae | [
"Apache-2.0"
] | permissive | k24dizzle/nagios_registration | 2c1c95c7c871ee8ed31de46d555c812f2c0f41c8 | be18dbadd2c08def81e795e4afe2fe2cf41775cf | refs/heads/master | 2020-03-08T11:54:30.569982 | 2015-07-16T18:01:07 | 2015-07-16T18:01:07 | 128,111,583 | 1 | 0 | null | 2018-04-04T19:32:53 | 2018-04-04T19:32:52 | null | UTF-8 | Python | false | false | 3,263 | py | import oauth2
import json
###
#
# This script will create 2 hosts, and add them to a host group.
# It will then create a service, and assign that service to both hosts.
# It will then deploy a new nagios configuration file.
#
###
consumer_key = "OAUTH_KEY"
consumer_secret = "OAUTH_SECRET"
registration_server = "http... | [
"pmichaud@uw.edu"
] | pmichaud@uw.edu |
81e1b940bf6f21e1a0941c32360e43578a445dfa | c884a92881b6331ceae0a7371d2cd02d6ee0fb01 | /jd/jd/spiders/commect_spiders.py | 190f7ac7b9d8055e9b26e1148a44adc0b6cece32 | [] | no_license | greenluno/jd_scrapy | df5d2c3313b04faab4a66546d20509c083a5f2d5 | 2d798232be55db3bae88aad8221a1f0797eac287 | refs/heads/master | 2020-06-21T11:56:45.451727 | 2019-07-17T18:56:48 | 2019-07-17T18:56:48 | 197,443,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | # -*- coding: utf-8 -*-
import requests
from jd.items import commentItem
import json
import xlrd
import scrapy
from scrapy import Request
class JDCommentSpider(scrapy.Spider):
name = 'comment'
allowed_domains = ['jd.com']
start_urls = ['https://www.jd.com']
def parse(self, response):
"""jd""... | [
"noreply@github.com"
] | greenluno.noreply@github.com |
c0cacdecc4e03866a9fb51eb29dec1c32237ba2b | 7541be63a8989f6a95a8839048c1896059b17aa6 | /scripts/fun.py | b59183629696aa9d3a28fa5902709212f64b86d8 | [] | no_license | Kanda-design/MyProject | b7232efbe12f192e9f517df96f65b2e811685181 | 0b2a82a5db4234a8e4ffc7810aff350b93eb83b1 | refs/heads/master | 2020-08-21T06:15:55.295845 | 2019-10-18T21:00:39 | 2019-10-18T21:00:39 | 216,105,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import time
lines=9
column=int(lines*2.5)
space=15
x=y=0
one_third=int(lines*(1/3)-1)
two_third=lines*(2/3)
down_count=0
top_count=1
def sp(num):
while num >= 0:
print(" ",end="")
num=num-1
def sp_up(num1):
while (num1 >= 0):
print("*", end="")
sp(5 * top_count)
num1 ... | [
"ssnaveen77@gmail.com"
] | ssnaveen77@gmail.com |
05546c27ea40660996b98f84d8a1a0f04a42c288 | 85bf9a13bf62c1f074894d134c23dd992ae8688c | /problems/p317/Solution.py | 6d55e5a066806320f5503f718d38b8fa74f2166f | [] | no_license | pololee/oj-leetcode | 4cca3d309b2c9931d15d3cec4b07b5d9d22733ef | 78a8b27ee108ba93aa7b659665976112f48fc2c2 | refs/heads/master | 2020-06-21T02:15:26.882273 | 2020-02-06T04:56:21 | 2020-02-06T04:56:21 | 197,320,113 | 0 | 0 | null | 2020-02-06T04:56:23 | 2019-07-17T05:20:02 | Python | UTF-8 | Python | false | false | 2,336 | py | import collections
import sys
class Solution:
DIRECTIONS = [(1, 0), (0, 1), (-1, 0), (0, -1)]
def shortestDistance(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
if not grid:
return 0
row_size = len(grid)
col_size = len(grid[0]... | [
"pololee1990@gmail.com"
] | pololee1990@gmail.com |
aa3149016fb02d2179d334fbb170365f680f6088 | 5d688d4f501ed47448325b759a2c676123bed35a | /phunspell/tests/test__pl_PL.py | a628ac7bee297b1adf29bf74f4f2144f2a068bc0 | [
"MIT"
] | permissive | dvwright/phunspell | bf2eb686db23a0bc2ccad0600703565a0656321f | 818bbd081f84c570ec304fdc235ca112f9abd869 | refs/heads/main | 2023-04-22T01:47:24.828980 | 2021-03-24T00:52:30 | 2021-03-24T00:52:30 | 344,022,732 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import phunspell
import inspect
import unittest
# TODO:
class TestPhunspellLangs(unittest.TestCase):
pass
# pspell = phunspell.Phunspell('pl_PL')
if __name__ == "__main__":
unittest.main()
| [
"dwright999@apple.com"
] | dwright999@apple.com |
2096d1bf2f0cefa674cfde2faac4a3bce7276101 | b90b08d4f1b106dac4ac963f5f1c7ce21b52fa9d | /origin/formation_period.py | b2428ddcc529316c50ba83f94f3dca45fcaff3b1 | [] | no_license | q40603/pairs_trade_nsd | 9a274927bc2242eaeddabfc798b57941657b431c | 29d777739ffe25ba7ada3b9851fe0882772c5b8d | refs/heads/main | 2023-05-13T00:29:28.920693 | 2021-06-06T14:50:11 | 2021-06-06T14:50:11 | 355,578,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,164 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 17 11:33:32 2018
@author: chaohsien
"""
import pandas as pd
import numpy as np
from statsmodels.tsa.api import VAR
from statsmodels.tsa.stattools import adfuller
from MTSA import order_select , snr , zcr , JB_VECM #, chow_test
from vecm import vec... | [
"q40603@gmail.com"
] | q40603@gmail.com |
c13fcd679c4ce531053d8bfceaeaefe08fe3be64 | ca6c77859c630e5a09c81d0c6fd196f130768594 | /Chap8_StringsDeepLook/ITDS_Pandas_RegEx_DataMunging.py | 56d8b890291756c7e296ab7a0230093152ac4e6b | [] | no_license | kevin-d-mcewan/ClassExamples | b3739af1de03a396e2818da76851849d7b5b4a7b | a235a2635316248c8066fdb27074e92635603ee3 | refs/heads/master | 2022-12-05T22:14:33.730945 | 2019-12-01T00:47:33 | 2019-12-01T00:47:33 | 224,661,803 | 0 | 1 | null | 2022-11-20T03:10:29 | 2019-11-28T13:41:26 | Python | UTF-8 | Python | false | false | 1,283 | py | import pandas as pd
zips = pd.Series({'Boston': '02215', 'Miami': '3310'})
print(zips)
print('---------------------------')
print(zips.str.match(r'\d{5}'))
print('--------------------------------')
cities = pd.Series(['Boston, MA 02215', 'Miami, FL 33101'])
print(cities)
print('-------------------------------------... | [
"MacKevinProgramming@gmail.com"
] | MacKevinProgramming@gmail.com |
d9c601b0c799ef3301c1e4e090d9a3ae6b184644 | 7f347d3642e129e2d29639deaff81090660ec750 | /ssd1306_display_img.py | 7813b0c124e002a1250e8a6350f274d6f26badc6 | [] | no_license | mikehemberger/visualizing-fractals | bee858bd2b1d75eaaed461f11bef8dd901874ef8 | f1bae8b447dbe75b7e0b771c3edeef04c1979dc6 | refs/heads/main | 2023-08-11T16:38:52.655813 | 2021-10-01T12:19:45 | 2021-10-01T12:19:45 | 403,018,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Imports
import os
from PIL import Image
from luma.core.interface.serial import i2c
from luma.oled.device import ssd1306
# Assign device
serial = i2c(port=1, address=0x3C)
device = ssd1306(serial)
# Image to use
fp = "/home/pi/Documents/github/remote_from_vscode/"
fn = "mandelbrot_img_128x64.jpg"
img_path = os.path.... | [
"mikehemberger@gmail.com"
] | mikehemberger@gmail.com |
3effa98b6606fe1a7aff37b1d11b2510846b86af | 9962438fbc35ea87a397a9b5c58eb1a23180e590 | /phone_book/app.py | 840c25faaca77749c79a128b4fe8287834dd0633 | [] | no_license | barsuk2/Phone_book | 23f106308f2ab7c8ed9961393a3f35fe3cf8e4e7 | 31f0286a29ca22c4b51e695925f0d986b5a0a904 | refs/heads/main | 2023-04-13T10:01:14.902404 | 2021-03-19T04:28:20 | 2021-03-19T04:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | import re
from flask import Flask, render_template, request, redirect, flash
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.debug = True
# manager=M
# app.debug = True
app.config['SECRET_KEY'] = 'a really really really really long secret key'
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql+psyco... | [
"ickzn@ya.ru"
] | ickzn@ya.ru |
e72e92e66a942a5f02bb5c82d4035e2d7da29250 | 4577da97831b5bf9e08343bd3f18690a1bf41bdf | /stolenwebserver.py | 38117112df0a6f69a37103c14afe4bcf60999b99 | [] | no_license | jsklein/botplugins | 5325d224225eab73cad9d61cef0435731017e834 | 3aec8ee3281335b998ca796fd8050358f7cde98d | refs/heads/master | 2020-06-12T23:41:16.538886 | 2017-05-22T01:12:20 | 2017-05-22T01:12:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
import sys
import base64
key = ""
class AuthHandler(SimpleHTTPRequestHandler):
''' Main class to present webpages and authentication. '''
def do_HEAD(self):
print "send header"
self.send_response(200)
self.send... | [
"noreply@github.com"
] | jsklein.noreply@github.com |
ee558e4158fb25e06a9705e7e855d550ebd33d2c | dab455eaa042d355372dc871000fa3b6419430bd | /deepposekit/annotate/gui/Annotator.py | d2c3a9f5d0815c52b048f314dda35164bfc64074 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OSU-AIMS/DeepPoseRobot | b8ef07ee1ce66fd6858e96a64064b7303ab67371 | 93a96e08d014bf075fabb6234776ba6ce343803c | refs/heads/main | 2023-04-28T07:51:48.901472 | 2021-05-12T19:57:08 | 2021-05-12T19:57:08 | 340,788,773 | 1 | 0 | Apache-2.0 | 2021-05-12T19:50:07 | 2021-02-21T01:03:55 | Python | UTF-8 | Python | false | false | 11,424 | py | # -*- coding: utf-8 -*-
# Copyright 2018-2019 Jacob M. Graving <jgraving@gmail.com>
#
# 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 ... | [
"34522460+AdamExley@users.noreply.github.com"
] | 34522460+AdamExley@users.noreply.github.com |
0185ca7c1da567af3bf96e38225686f8229fb649 | c6d94fad0eb1ca7342de1fc3491f18233ae32b81 | /cwb/data/source/earthquake.py | f8d2993879c45d9c7c4576512d6b6a7b12488483 | [] | no_license | shengtai0201/OpenDataCollection | f16e04085f266851b078dcef06384f9f95f6216c | 064f73e1973ffff338913048dff429b62a6a63a7 | refs/heads/master | 2021-01-25T06:45:27.554847 | 2017-06-24T09:44:21 | 2017-06-24T09:44:21 | 93,606,728 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | # 分區震度資訊
class ShakingArea:
def __init__(self):
# 分區描述
self.area_desc = None
# 分區名稱
self.area_name = None
# 分區震度
self.area_intensity = None
# 分區圖示顏色
self.area_color = None
# 資料來源方式
self.info_status = None
# 各地震站資訊
self.e... | [
"shengtai0201@gmail.com"
] | shengtai0201@gmail.com |
f722b3ea28af5c3e8bae8160d0203660b4e1d87f | e2838f58196fb16b09cd0bb3ad5b15fd4fc3a006 | /libs/bn.py | 063fc4a08ab764b00c0cc7228d9a1ac4d6fbcd29 | [
"MIT"
] | permissive | wzn0828/pytorch-classification | 8ebb4b7d7d142e877c5871bd201c44679ac8dbf5 | bba9b62dfab404222b599d07b86bed04d9541757 | refs/heads/master | 2021-07-01T11:57:08.764114 | 2020-09-22T00:50:00 | 2020-09-22T00:50:00 | 164,197,281 | 0 | 0 | null | 2019-01-05T08:41:11 | 2019-01-05T08:41:11 | null | UTF-8 | Python | false | false | 7,718 | py | from collections import OrderedDict, Iterable
from itertools import repeat
try:
# python 3
from queue import Queue
except ImportError:
# python 2
from Queue import Queue
import torch
import torch.nn as nn
import torch.autograd as autograd
from .functions import inplace_abn, inplace_abn_sync
def _pa... | [
"18001279185@163.com"
] | 18001279185@163.com |
2de393cbda5169cda816111a6548dbb4b7dce927 | a00b5723f4359e44431f9015be1568d2ab5589da | /9_Palindrome_Number.py | 530f8700b8ec67cf875c741c235ba4eacf48b071 | [] | no_license | creageng/lc2016 | 8495286c94c4989c426767eb17bb3b563d70ced2 | ab5062835ac44408d1f83a307c2d3b44038af006 | refs/heads/master | 2021-01-21T14:40:07.671299 | 2018-02-21T07:17:26 | 2018-02-21T07:17:26 | 58,109,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # Determine whether an integer is a palindrome.
# Do this without extra space.
# click to show spoilers.
# Subscribe to see which companies asked this question
class Solution(object):
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if x < 0:
ret... | [
"creageng@gmail.com"
] | creageng@gmail.com |
29a953189350246c9f2bbfd79cf95300e9445eab | ef71ecf6cdaee1a00d1587bc31016b95615ebef9 | /htmltoimg.py | 520b63b09d814c6d7b48e00db4345d96f5fea23b | [] | no_license | babybear1402/mapgif | 47cf19bf3674e99ce4cddb8780633c2ae689783b | 210995a121e268a5b5aae32894500274a312b16b | refs/heads/master | 2022-07-04T11:01:58.195403 | 2020-05-10T06:01:57 | 2020-05-10T06:01:57 | 262,722,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import cv2
import pandas as pd
from itertools import cycle
from PIL import Image, ImageTk
from PIL import Image, ImageDraw, ImageFont
import os
import numpy as np
import imageio
cases = pd.read_csv('cbc.csv')
print(cases.columns)
images =[]
image_folder = "testpic"
for i in range(107):
imagej = Image.open("pictu... | [
"noreply@github.com"
] | babybear1402.noreply@github.com |
03de9c788c9caf671d86a69e63e56f16c376f540 | fc43f31b30a6b5668caaa6a12a75e408cef78ac4 | /landfill/scraper/scraper.py | 2f33902bd0969633f46a5e3928e4a4d7a8db5bc7 | [
"MIT"
] | permissive | zbanks/landfill | ad67825cfc911e57b76603e38cf185b50dfa79a4 | 5fd409d3cbea29471e21159878e064e5eb1f8fa7 | refs/heads/master | 2020-04-27T20:50:29.810333 | 2014-01-02T02:20:27 | 2014-01-02T02:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | import os
BASEPATH=os.path.join(os.path.dirname(__file__),'..')
| [
"eric@ericslaptop.(none)"
] | eric@ericslaptop.(none) |
46f2d7ffd07959a3d5d20ccce58b0d5dc4df1fd3 | e5e25801fe7293a29084cb0ecbe73aabb95145d1 | /prototipo/prototipo1/clientes/views.py | 0d1aa436225dfda4f37434304c4022568f190d35 | [] | no_license | Imperdus/Speech-to-txt-prototype | 16ee651e8635ef742fcea70a78407a0b7a7f3ac4 | c52c2474deeac51be9510f4473d2ae0e029960e0 | refs/heads/master | 2023-03-03T20:26:11.810918 | 2021-02-12T18:30:26 | 2021-02-12T18:30:26 | 338,027,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.shortcuts import render
# views
def persons_list(request):
return render(request, 'crudm.html')
| [
"lucasantostn@gmail.com"
] | lucasantostn@gmail.com |
f72b0e98f3517d88647e2159a2327506c2341005 | 7ea56317ae2917381f7c37327320bab870f1f537 | /send_screenshot_mail.py | 167b7aa6646690aa3d38fc888c3bd24d6bce7c4f | [] | no_license | AspenBen/teamviewer_keep_running_windows | c4c3bccfe837dad1fb252d6565d18d39b78c604c | 86a131a10de74757416cc64a2de4af70cbcb97cc | refs/heads/master | 2022-11-18T00:35:00.643114 | 2020-07-13T03:03:43 | 2020-07-13T03:03:43 | 279,198,524 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email.utils import parseaddr, formataddr
import smtplib
def _format_addr(s):
name, addr = parseaddr(s)
return form... | [
"zhangb2015@lzu.edu.cn"
] | zhangb2015@lzu.edu.cn |
d50acec61d6c84d3ce17f5a4f20933ee44d8dd98 | 124901bcf4fa7dc8230ce9371b90653689f1bb1d | /series/series1.py | 55c9a92f33205a122f38dba5ce2ef3736a79be68 | [] | no_license | priyankapiya23/BasicPython | e322bcdceae77fc2a77c7d87cc0368a09eff72ab | 93f0602e8bfee88e796b8bd8ecf8c56982fb7f3c | refs/heads/main | 2023-02-28T17:28:19.878305 | 2021-02-12T06:39:43 | 2021-02-12T06:39:43 | 309,364,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | #s=((a+1)/2)+((a+3)/4)+........n term
a=int(input("enter the value of a="))
n=int(input("enter the value of n="))
k=0
s=0
for i in range (1,n+1,2):
k=((a+i)/i+1)
s=s+k
print(round(s,2))
#s=a/2+a/3+..a/n+1
a=int(input("enter the value of a="))
n=int(input("enter the value of n="))
k=0
s=0
for i in range(2,n+... | [
"priyankakumarisumanpk@gmail.com"
] | priyankakumarisumanpk@gmail.com |
9c0638a818504ccc0fe7184a5b9662a344e8de15 | 318f850eddbe1965244e6fdf53b75eda036f42b9 | /envifair2018/wsgi.py | 9aa666f090a31da4d9a2f7850e2eeab784ed7263 | [] | no_license | chromity/envifair2018 | 70a99e00c681722e3e8937163e75e0c2979a1b09 | d7cc124bbb2f020d94f7d4357ed51a07a5ee61f3 | refs/heads/master | 2020-03-29T13:55:38.241719 | 2018-09-23T17:01:41 | 2018-09-23T17:01:41 | 149,989,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for envifair2018 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('DJANGO_... | [
"michaeldaryl.code@gmail.com"
] | michaeldaryl.code@gmail.com |
acbbec5e9fde66dc1ec45b08c53724a5018010e7 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/tenderli.py | 28ba6f38f41106cd5c55dcedcbdf538f5a5cc99c | [] | 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 | 835 | py | ii = [('GodwWSL2.py', 4), ('FerrSDO3.py', 3), ('WilbRLW.py', 1), ('WilbRLW4.py', 2), ('AubePRP2.py', 1), ('CookGHP.py', 1), ('KembFJ1.py', 2), ('WilbRLW5.py', 2), ('TennAP.py', 1), ('BailJD2.py', 3), ('WilbRLW2.py', 1), ('LyttELD.py', 3), ('CoopJBT2.py', 1), ('GrimSLE.py', 1), ('AinsWRR3.py', 2), ('RoscTTI2.py', 2), ('... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
7c2d4edda7c466933dd4f7639c43ef006c476fa8 | 75d63ca6c6d2e6210b40afbce5665703ac219974 | /main.py | b0012c7c1126d51e0c238b2ef8c96d63bb0465d4 | [] | no_license | musale/scrap-send-mail | 1cd97f0fc75ba02c0c252ea3fd1223a3a60d79ab | 8c3b3410eac46b84d5b44e14954821515d438612 | refs/heads/master | 2021-01-19T03:28:49.962649 | 2017-04-05T16:10:58 | 2017-04-05T16:10:58 | 87,315,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | """Main file."""
import email.message
import smtplib
from string import Template
import requests
from bs4 import BeautifulSoup
from utils.variables import SENDER_EMAIL, SENDER_EMAIL_PASSWORD, headers
SEND_TO = ['musale@focusmobile.co']
MESSAGE_CONTAINER = email.message.Message()
MESSAGE_CONTAINER['Subject'] = "UPDAT... | [
"martinmshale@gmail.com"
] | martinmshale@gmail.com |
4120d60565a39b46cd5b6d64ed972b8c46931722 | 5a298ece5b17e6e993d50a855027f265e115e2bd | /utilities/filter_data.py | 99687a7e234137d21978c275dd56b29a9d74c2f1 | [] | no_license | hvk3/IR_project | 86b8a1176f6a8ed541f179f1c541eb139dde0295 | ae6deea2276f0a76bfa23482fd1b7a4c1f039264 | refs/heads/master | 2021-10-16T17:33:11.258479 | 2019-02-12T08:45:51 | 2019-02-12T08:45:51 | 118,168,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from pymongo import MongoClient
from langdetect import detect
from tqdm import tqdm
client = MongoClient()
db = client.youtube8m
ds_1 = db.iteration3
ds_2 = db.iteration4
ds_2.remove()
print("Before:", ds_1.find().count())
for record in tqdm(ds_1.find()):
title = record['metadata']['title']
description = record['me... | [
"anshuman14021@iiitd.ac.in"
] | anshuman14021@iiitd.ac.in |
4c67a37578e6068ad0497b192d132793cfe18577 | e7a7116066d2552c00ffeeaf56dc36492bdfbf32 | /utils.py | cf1ba7bd335f1f9985862f764cca8efa1c344440 | [] | no_license | StanfordAI4HI/tclust-eval | b3d54a19c2359a0e49b030722931cae143e2ba6d | 1fb87bfa666670486740e09d55ffdf2d7a8283cc | refs/heads/master | 2020-04-24T18:26:14.135992 | 2019-05-09T20:25:32 | 2019-05-09T20:25:32 | 172,179,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,962 | py | import numpy as np
from collections import OrderedDict
from munkres import Munkres, make_cost_matrix
from sklearn.metrics.cluster import contingency_matrix
from sklearn.preprocessing import LabelEncoder
def entropy(labels):
"""Calculates the entropy for a labeling."""
if len(labels) == 0:
return 1.0
... | [
"kgoel93@gmail.com"
] | kgoel93@gmail.com |
5fddff59502d10efd1cd2c33bbf7420a94d10c2f | 0df28488c03d8e19c184ebfe320a960e87d35fb4 | /sentenceSimplier/tools.py | e3232efcb348a98b49662a324c35a150d9f6fef8 | [] | no_license | sahilmakkar1983/NLPTools | 90deee62a29934c9d8884805903495701cc55dc2 | 7c96033791b672e696ece50974447f7137b9f4a2 | refs/heads/master | 2020-06-24T12:54:21.955654 | 2019-07-26T07:31:32 | 2019-07-26T07:31:32 | 198,967,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,389 | py | # -*- coding: utf-8 -*-
# Practical Natural Language Processing Tools (practNLPTools): Combination of Senna and Stanford dependency Extractor
#
# Copyright (C) 2014 PractNLP Project
# Author: Biplab Ch Das' <bipla12@cse.iitb.ac.in>
# URL: <http://www.cse.iitb.ac.in/biplab12>
# For license information, see LICENSE.TXT
... | [
"sahilmakkar1983@gmail.com"
] | sahilmakkar1983@gmail.com |
da605bc187546c1cac4492ee190266de4f86bb67 | b4619a6aa617b062273602e1317b5f1fc83de6a7 | /User_backend/views.py | 5e72bc8b738ca6bcf6af51d5c29ba552dde6d836 | [] | no_license | getting-things-gnome/GTGOnline | b9c6e92bb1b3708cb3259039e5029c40a75dd3f5 | 0050c1ec9975a4ea008d6fdd1fcf50195209a83e | refs/heads/master | 2021-01-01T19:02:17.858742 | 2014-09-03T08:20:40 | 2014-09-03T08:20:40 | 9,886,164 | 8 | 6 | null | 2014-09-03T08:20:40 | 2013-05-06T12:21:03 | JavaScript | UTF-8 | Python | false | false | 6,490 | py | # Create your views here.
import sys
import json
from django.http import HttpResponse, HttpResponseRedirect, QueryDict
from django.template import loader, RequestContext
from django.shortcuts import render_to_response
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import c... | [
"parinporecha@gmail.com"
] | parinporecha@gmail.com |
dc2f5420408a700287563c423718370a936dee4c | 47acd038366827429f8a706b9b2f87f23e8558d5 | /gui/ControlWidget.py | 7fa871fb3d906165d865f5c29bc19a9f6d95fe49 | [] | no_license | mtb-beta/melody_catcher | 3085edf9b38138ffd3faa78aaf1cd69d43510894 | 5ec289a984b3f22925c18b61c196f9222561ae81 | refs/heads/master | 2020-12-24T18:03:53.498690 | 2013-02-13T17:14:23 | 2013-02-13T17:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,878 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
"""
Author:mtb_beta
Date:
2012年 12月17日 月曜日 17時42分46秒 JST
Note:コントロールパネルを制御するクラス
"""
from PyQt4 import QtCore,QtGui
from PyQt4.phonon import Phonon
class ControlWidget(QtGui.QWidget):
def __init__(self,control_width,control_height,parent = None):
QtGui.QWidget.__init__(s... | [
"mtb.toya0403@gmail.com"
] | mtb.toya0403@gmail.com |
22f53a193adbd741ca7b66d76cd6304ac67fc39e | 3bd9959909396cb5e94848498a0349280843dc16 | /app_one/main_app/migrations/0003_message.py | f27083f21a27ef54bb2c67b1c5ebc21292601efe | [] | no_license | elixire03/emjgcWeb | c0c85d969240c976dfb81fae5e13d542e27a52a6 | ccdc4ecc1636ff3e7e44fda3522852615ccae6d6 | refs/heads/master | 2022-11-16T02:44:16.806095 | 2020-07-11T17:23:52 | 2020-07-11T17:23:52 | 278,889,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2020-06-10 17:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0002_contact_setting'),
]
operations = [
migrations.CreateModel... | [
"bernzgeron@yahoo.com"
] | bernzgeron@yahoo.com |
125750e87f87dbe02927348d84c7ffc69e1c15f5 | ad6442301437e847296c5fb5571da56ec59a750f | /TD/TD2/Ex 6.py | 5c63afca72f4d5a7a1b95cc6d7642f23b9b457b7 | [] | no_license | SlamaFR/L1-S2-Algorithm-Programming | 2024d6a8ac59190a561e4bb9ce66c4fd84c9c2cb | fa0d641590bf7ac000548a01a676d311277d3bee | refs/heads/master | 2022-03-12T22:03:34.537689 | 2019-05-15T20:46:56 | 2019-05-15T20:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | def diagonale_g(n):
"""
Affiche une diagonale d'étoiles descendant vers la gauche.
:param n: Nombre d'étoiles.
>>> diagonale_g(5)
*
*
*
*
*
"""
if n < 1:
return
print(" " * (n - 1) + "*")
diagonale_g(n - 1)
def diagonale_d(n):
"""
Affiche ... | [
"irwin.madet@gmail.com"
] | irwin.madet@gmail.com |
e850b124c421c6c6d1856d64db21c4677aa6b098 | 0edba37bb447653b094ed2f7de5d0e674a175b03 | /verified/ping_hosts_v1.py | 751a7f0a9cfb56c550b154c8de2750c5f55abce8 | [] | no_license | r98522608/blackHatPrac | b76707d4e957328a099a02d85db204922d10763d | c16cdc7acacdc2bdf90066d9c7efa2a679a9bab7 | refs/heads/master | 2021-01-11T16:05:05.984698 | 2017-01-25T09:55:27 | 2017-01-25T09:55:27 | 80,001,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | """
Working in both python3.5 & python2.7
Before using, need pip install ipy
"""
import shlex
import subprocess
import socket
mypath = '/etc/hosts'
fp = open(mypath)
for line in fp.readlines():
ip = line.rstrip()
ips = ip.split()
if ips:
try:
socket.inet_aton(ips[0])
tmp_cmd... | [
"r98522608@ntu.edu.tw"
] | r98522608@ntu.edu.tw |
eb545e93e2a06c4d1a834c571cdfaa270e57ca76 | 8e18e5eadb39ee854560c3e06cd7ad936eb90373 | /.py/913练习五.py | ccccb5d520b68a02102fb4667dc6169e88b4b422 | [] | no_license | loucx/pycodes | 2ae344b78208062a8b25c67b206e65551140a05f | 75d8b3b64fbe0eca5d3d60be69056c54076cacf9 | refs/heads/master | 2020-03-29T15:15:38.254034 | 2019-03-11T14:42:35 | 2019-03-11T14:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import re
s=input()
mat=re.compile(r"[1-9]\d{5}")
ls=mat.findall(s.strip("\n"))
print(",".join(ls))
| [
"noreply@github.com"
] | loucx.noreply@github.com |
c928dece19da6a4ec6efab3d0b7a3946a269599a | eecb0a901d23a1ca4412e3ce736fadd140792a2a | /Binary_Search_Tree/main.py | 0a545ad23cd30d51cbaaca46be6a8da4908c8fa3 | [] | no_license | MouradTerzi/Leetcode_problems_solutions | 0281350582e0746f768b752788b162bb67762fbf | f9523cd1324cf5803104ee2d3a362c65c7a413d8 | refs/heads/master | 2021-02-07T16:22:20.231958 | 2020-03-14T23:02:07 | 2020-03-14T23:02:07 | 244,050,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from binary_search_tree_base import *
elements_list=[10,15,18]
#elements_list = [8,7,10]
#elements_list = [90,10]
#elements_list=[8]
root = CreateBRT(elements_list)
#IterativePostorder(root)
IterativeBreadthFirst(root)
#IterativeInorder(root)
#root = InsertionInBRT(None,5)
#print(id(root))
#print(root.data)
#print(roo... | [
"terziimourad@gmail.com"
] | terziimourad@gmail.com |
87466cd291f6c19586b503ef7109c6a64acf8ca6 | 39157a854806af4db51b986adf5096bd342bacdb | /fuzznumpy/main.py | 68c4295fe915c1b180f9319956c9abc08d8c52e3 | [] | no_license | xcainiao/fuzzing | b6b43550f7a5c05595a180d111d9ec03e4710293 | 5cadbe3e1bcc9090a68b1006cb5b6b76db990ae1 | refs/heads/master | 2020-03-30T01:51:59.811511 | 2018-09-27T14:25:05 | 2018-09-27T14:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import fuzz
import numpy as np
from ctypes import CDLL
test = CDLL("c/test.so")
test.init()
fuzz.init()
while 1:
func = fuzz.generate()
# func = """import numpy\nnumpy.half(-1).choose(numpy.void(1), numpy.broadcast_arrays((1,)))"""
test.copybuff(func)
try:
exec(func, {"np":np})
except Exception ... | [
"you@example.com"
] | you@example.com |
cff20d1afdd9342ffd7b1517d3263f834cb30721 | be4ed634abaab9032ad7a85802c3a62a4d5de050 | /Scripts/NomassDsmPlotLibrary.py | 8cb8a8109ccf5d788e179c128bb1dd0727340c8c | [
"MIT"
] | permissive | jacoblchapman/No-MASS | 380b08e56214ea08c885fe7a65d1f35a11bf1181 | 843ccaa461923e227a8e854daaa6952d14cb8bed | refs/heads/Master | 2021-03-27T11:47:05.283200 | 2020-08-28T18:11:39 | 2020-08-28T18:11:39 | 38,058,134 | 0 | 2 | MIT | 2020-08-28T18:11:40 | 2015-06-25T15:37:00 | Jupyter Notebook | UTF-8 | Python | false | false | 5,681 | py | """
Created by Ana Sancho (user ezzas1)
on 10 Nov 2016 at 09:25.
"""
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
flatui = ["#e74c3c", "#34495e", "#2ecc71","#9b59b6", "#3498db", "#95a5a6",
'#d95f0e', '#fec44f', '#1c9099','#005a32', '#f768a1','#a65628']
def... | [
"jacoblchapman@gmail.com"
] | jacoblchapman@gmail.com |
33e63f19a07ed941138abfc59de29452102d7eb1 | 75e8c34f770ad9e1e8542ba5c41a5479ee08e69c | /tests/test_main.py | fc40ae7cf4bbee68a83c933a14d7fd5226983240 | [
"MIT"
] | permissive | vmaikova/flask_system | 1a07bd9f297c116dffb4a0330bc5a9d92456b762 | 546413a37383bd8651b6c9c23f050c85e1180b21 | refs/heads/master | 2021-04-27T07:09:29.807072 | 2018-03-29T10:18:21 | 2018-03-29T10:18:21 | 122,626,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | # -*- coding: utf-8 -*-
from pytest import raises
# The parametrize function is generated, so this doesn't work:
#
# from pytest.mark import parametrize
#
import pytest
parametrize = pytest.mark.parametrize
from flask_platform import metadata
from flask_platform.main import main
class TestMain(object):
@par... | [
"vmaikova@yahoo.com"
] | vmaikova@yahoo.com |
1df190b393e91b1201a3c30b120bc9a49a40a1b8 | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/areas/area/lsdb/lsa_types/lsa_type/lsas/lsa/opaque_lsa/router_information/tlvs/tlv/segment_routing_sid_label_range/__init__.py | e65b58e4df63d726184cc67034cd38bbeac27625 | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 9,972 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
3a48406a812d84fd849ab992709f79e5fa2084df | 3748c73e6bab589c078dbef66c332e545d668702 | /Spider.py | 60b8f0867a5b51c27db9b9e05f1b355fd7284d97 | [] | no_license | StubbornF4/Async_Spider | 14765acaff54cdc1ff009ad9ecc9a143134f95b8 | 0e84b78ce0e34ff6921c9d62cd3be92f332ebf09 | refs/heads/master | 2022-11-25T06:53:38.703006 | 2020-08-08T00:20:23 | 2020-08-08T00:20:23 | 285,819,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | import asyncio
from urllib.parse import urlencode
import aiohttp
import logging
import json
from motor.motor_asyncio import AsyncIOMotorClient
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(levelname)s: %(message)s')
INDEX_URL = 'https://dynamic5.scrape.cuiqingcai.com/api/book/?'
... | [
"lichunxiao0404"
] | lichunxiao0404 |
4f52dc228911b03ffbd14435ca8e9b100afda4c2 | 63862adffd94fae2d43c2ba6130181e1a66b7367 | /v0/main.py | e38e9725e2fad75cc616aaa43d6ae6bf4b2f8fd1 | [
"MIT"
] | permissive | josiemundi/fastapi-twofactor | 023144d771ce939d1500df8d7218714f959adb53 | d64e6081374a94810e6a61d4a70596cd71c64eec | refs/heads/main | 2023-01-20T11:29:36.915120 | 2020-11-17T20:24:14 | 2020-11-17T20:24:14 | 311,323,757 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | # code originally from - https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt/
from datetime import datetime, timedelta
from typing import Optional
from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from jose import JWTError, j... | [
"johannasaladas@gmail.com"
] | johannasaladas@gmail.com |
d33d903e7de59d03eac8b1c9b2af624e056b3328 | b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1 | /vmraid/website/doctype/social_link_settings/social_link_settings.py | 35954b6ce718f192fa921627f23f3e2a83b1b277 | [
"MIT"
] | permissive | vmraid/vmraid | a52868c57b1999a8d648441eb9cd05815204345d | 3c2e2a952003ba7ea2cf13673b9e79e127f4166e | refs/heads/main | 2022-07-29T18:59:28.585133 | 2022-04-22T08:02:52 | 2022-04-22T08:02:52 | 372,473,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, VMRaid Technologies and contributors
# License: MIT. See LICENSE
# import vmraid
from vmraid.model.document import Document
class SocialLinkSettings(Document):
pass
| [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
ca1bff906f0e6227e84c313b67eef7c7274ad1c1 | 95ac1e3c58ba4db29b411bd49ab6877df204858f | /database.py | 45b8de8bd58d742c9ee02ad438d6672ea7bf3566 | [] | no_license | vina7/PythonServerSimulation | 18f0bf8cc29999bbc56b2b234887c7aa49ef2da7 | 9f281f2ec34557ad1b8670b90f55485082c1ee51 | refs/heads/master | 2021-01-23T06:49:32.555668 | 2017-03-28T04:20:43 | 2017-03-28T04:20:43 | 86,402,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | #!/usr/bin/python
import sqlite3
conn = sqlite3.connect("switchgear.db");
conn.execute('''CREATE TABLE TC100(
NAME CHAR(50) PRIMARY KEY NOT NULL,
ALARM INT NOT NULL,
TEMP INT NOT NULL
);''')
conn.execute('''CREATE TABLE NAME(
NAME CHAR(50) PRIMARY KEY NOT NULL
);''')
conn.execute('''CREATE TABLE PXM8000(
NAME C... | [
"van7@pitt.edu"
] | van7@pitt.edu |
f819a142bd8930f08e51e57ed6af15a211801e81 | 4bcae7ca3aed842d647d9112547522cffa805d51 | /0674.最长连续递增序列.py | 43854333b238384701a6a84adb3ed71f0d9e3655 | [] | no_license | SLKyrim/vscode-leetcode | fd5a163f801661db0dfae1d4fdfa07b79fdb82b6 | 65a271c05258f447d3e56755726f02179780eb8a | refs/heads/master | 2021-07-03T03:15:28.883786 | 2021-02-23T06:19:18 | 2021-02-23T06:19:18 | 226,062,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | #
# @lc app=leetcode.cn id=674 lang=python3
#
# [674] 最长连续递增序列
#
# https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/description/
#
# algorithms
# Easy (45.18%)
# Likes: 89
# Dislikes: 0
# Total Accepted: 30.7K
# Total Submissions: 68K
# Testcase Example: '[1,3,5,4,7]'
#
# 给定一个未经排序的整数数组,... | [
"623962644@qq.com"
] | 623962644@qq.com |
cad75d0eb80bd26d71d27053160c2de0b316bf00 | bf6f4b7b8aebb247a944ba553a6a02bd1a22a8fe | /VVehicular/VVehicular/settings.py | cdecd4fef39ce493dfcbb5a6f3b36f37df52b95f | [] | no_license | jesusbarron/proyectonube | 186c45986f7069650c94f12b5d660dccff8ac0f5 | 961fcdf46b9132777fe4f8a446409e48f2aeb147 | refs/heads/master | 2020-12-24T15:58:57.819272 | 2014-10-22T08:08:20 | 2014-10-22T08:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,175 | py | # Django settings for VVehicular project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NA... | [
"jesus_barron25@hotmail.com"
] | jesus_barron25@hotmail.com |
d0f14525b0f398cc139c7786f3749726bfd3cd9b | f6c84feac4d29034cfb9d34d82d1599d81cd2e15 | /contacts/models/person.py | 67720691a1c16599fa55c4ad9790f5f9b4dda689 | [] | no_license | agorsk1/django-WAS | 557c118ef70883008ccb3175e760cd4e7687bc3a | 4481228f13550e5f787e76061539b5f516c5ada7 | refs/heads/master | 2020-09-14T03:42:03.876154 | 2019-12-12T09:09:07 | 2019-12-12T09:09:07 | 223,006,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | from django.core.validators import MinValueValidator, MaxValueValidator
from django.db import models
from django.utils.translation import gettext_lazy as _
class Person(models.Model):
MAX_HEIGHT = 220
MIN_HEIGHT = 100
GENDER_MALE = 'male'
GENDER_FEMALE = 'female'
GENDER_UNSPECIFIED = None
GEN... | [
"artq1406@gmail.com"
] | artq1406@gmail.com |
b26dfc2cc4ffb4aa822cac635d3e83c1522e9304 | 04b3a30ca30c3a9cc459b06fe1842a500dd5ab51 | /addresss/views.py | 06c24539f8cc82d589e80f97797e2431e41d5162 | [] | no_license | rahulsayon/Final-Ecommerce | 17b7830e44ab86b7513f48d80fc1bb7f12c36516 | ca0c860653ec1b80f0a3f012e338ecc2189019ac | refs/heads/master | 2022-12-11T01:12:03.500783 | 2020-09-13T20:09:40 | 2020-09-13T20:09:40 | 295,228,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,454 | py | from django.shortcuts import render
from .forms import AddressForm
from django.shortcuts import redirect
from billing.models import BillingProfile
from django.utils.http import is_safe_url
from addresss.models import Address
# Create your views here.
def checkout_address_create_view(request):
form = AddressForm(r... | [
"rahulsayon95@gmail.com"
] | rahulsayon95@gmail.com |
35e1a01f77365a4404f8d1a72b7faa481b8b2689 | 9235b96ac3dd60ec2fac03154f7aa59cb46e301e | /heap/Main.py | 45e2a46714d3ae3ad416288a89d25dcb59f0b146 | [] | no_license | DaDa0013/data_structure_python | 2fe51d499cfeb4a6f0b090c5b5ed3d08b3adab14 | 1c1f32dbaa954bf489203afb4193ffe3764af0fc | refs/heads/main | 2023-05-14T06:45:54.063459 | 2021-06-13T05:29:09 | 2021-06-13T05:29:09 | 357,013,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | class AdaptedHeap: # min_heap으로 정의함!
def __init__(self):
self.A = []
self.D = {} # dictionary D[key] = index
def __str__(self):
return str(self.A)
def __len__(self):
return len(self.A)
def insert(self, key):
self.A.append(key)
self.D[key]=len(self.A)-1
self.heapify_up(len(self.A)-1)
return self.D... | [
"yoon351200@naver.com"
] | yoon351200@naver.com |
a75d04852aca116b804d4a5aa819b764cddff608 | 5d9636dcae2471d700da5583cfc0359644c7322d | /pugsley/auth/routes.py | 78e16175c4ac581d44b4ba571f9a66b393c72966 | [
"MIT"
] | permissive | kfields/pugsley-lite | 93a4c7c334fd9b4f3ab68acc565b1f29a4a31b99 | 9fdd4868895b38fb81855952f19bdf9cca1635b3 | refs/heads/master | 2023-01-24T18:29:15.338112 | 2019-08-11T20:33:30 | 2019-08-11T20:33:30 | 179,791,236 | 1 | 0 | MIT | 2023-01-09T22:22:33 | 2019-04-06T05:09:26 | CSS | UTF-8 | Python | false | false | 4,521 | py | from flask import render_template, redirect, url_for, flash, request, jsonify
from werkzeug.urls import url_parse
from flask_login import login_user, logout_user, current_user
from flask_babel import _
from pugsley import db
from pugsley.jwt import encode_auth_token
from pugsley.auth import bp
from pugsley.auth.forms i... | [
"kurtisfields@gmail.com"
] | kurtisfields@gmail.com |
e98b340a8750c4ecbc896b144ce74e599fad301b | 891ea89e1b2c5e437f30d1dc6889a52b2566010c | /src/command_modules/azure-cli-keyvault/azure/cli/command_modules/keyvault/keyvaultclient/generated/models/organization_details.py | 5b8435485f0274d1d67d2ef1b59ef47aaa0c238e | [
"MIT"
] | permissive | biggorog01/azure-cli | f201da449e21cf6bdebd0deaede843d8f3ab942b | eb316bce7d59c36fcce72e5289d243a2c3dd4cd1 | refs/heads/master | 2020-12-24T12:04:46.451850 | 2016-11-07T03:56:11 | 2016-11-07T03:56:11 | 73,080,322 | 0 | 1 | null | 2017-06-20T23:12:53 | 2016-11-07T13:21:23 | Python | UTF-8 | Python | false | false | 1,343 | py | #---------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#---------------------------------------------------------------------... | [
"noreply@github.com"
] | biggorog01.noreply@github.com |
df81a46fb1daeb5393ea26cdc1f3659bb8189a8e | 8aff0742b1dd2cbb5a693807f1d3eafce5406890 | /mysite/settings.py | 4c855b6b963b7f70a43ff49fea8d5e656016032b | [] | no_license | ijk5554234/CameraChoose_in_Django | 052952e29036f2b2029d49658c04c8a31e27f4d4 | dcf118c730bf295c8490bfef8c85d6d85abfd3e1 | refs/heads/master | 2020-12-25T19:04:04.696864 | 2015-03-11T02:43:54 | 2015-03-11T02:43:54 | 31,746,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | """
Django settings for mysite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"ljk5980@gmail.com"
] | ljk5980@gmail.com |
ed6396e69d37f3562b6de9bc2f2fe68e0391bda3 | faf21bbc7d98519283b5c4d6d56fe8d7bb0a2175 | /edley/urls.py | 7cc795a385bf38604e6e03eddd3b475277bbcc0e | [] | no_license | Samiel999/edley | 358949f6ee827985a61e22f46ebefd73c7044268 | 01399e31f90457cad011156b564fa0e8f9f4b206 | refs/heads/master | 2022-11-13T16:27:13.373005 | 2020-07-10T09:32:06 | 2020-07-10T09:32:06 | 278,592,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py |
"""edley URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"samuel@MacBook-Pro-6.fritz.box"
] | samuel@MacBook-Pro-6.fritz.box |
d8982a501517e741145cac724e03b59326021d7d | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/dxtbx/command_line/print_header.py | 0927cef0df1adb502a68d0f8709b4377dcad155a | [
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,633 | py | from __future__ import absolute_import, division, print_function
import sys
from scitbx.array_family import flex
from dxtbx.format.FormatMultiImage import FormatMultiImage
from dxtbx.format.Registry import Registry
def print_header():
# this will do the lookup for every frame - this is strictly not needed
... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
0ac4e9e793ef3967e9ce8b67ea5f79fa5e4ddbe1 | 8aa529d576f0aec174bbca38c076d7d41e26d703 | /poo/JeuVoiture/exemple.py | 33a895f44d59f9e8c064b8c5fa3ab0dc44ab0de8 | [] | no_license | Manutereva/StagePython | 165c66a93a193d5603ed5f97d7a48da6225d246d | 2192e4f3ce24bffc08e8628227b755ff9f1f9173 | refs/heads/master | 2020-08-19T05:05:05.565901 | 2019-10-17T15:23:43 | 2019-10-17T15:23:43 | 215,881,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 15 14:41:26 2019
@author: miguel
"""
def dire_bonjour():
print("Bonjour")
def say_hello():
print("Bonjour")
def fala_bom_dia():
print("Bonjour")
dico = {
"FR": dire_bonjour,
"EN": say_hello,
"PT": fala_bom_dia
}
dico["FR"]()
func ... | [
"mickael@ermes.ai"
] | mickael@ermes.ai |
c8262174a413858ac535c1546e354b1373bc5eb6 | 4072f7068837cbaeb6cb6984434d9b911d00f81c | /list_and_dict.py | fc58621d073c3ed4806d9bcda9806a51b946712e | [] | no_license | 8cH9azbsFifZ/utilities | 18b486a5e9540c24142ca646b40fe7e7df8ac637 | 7072698c7d479a56c7d14970e242c7c47ca7c91a | refs/heads/master | 2020-09-07T14:50:40.914707 | 2019-11-05T00:33:32 | 2019-11-05T00:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | """Utility functions."""
__author__ = "Tom Goetz"
__copyright__ = "Copyright Tom Goetz"
__license__ = "GPL"
def list_in_list(list1, list2):
"""Test if all items in list1 are present in list2."""
for list_item in list1:
if list_item not in list2:
return False
return True
def list_int... | [
"tcgoetz@gmail.com"
] | tcgoetz@gmail.com |
6b5929e0f8c6f7ca0c6f96456f18f0bb57b58342 | 84b397f6ec1780a917c1e4865459a3118c25b6dd | /blog/migrations/0001_initial.py | 7416e505d5fbe1ff32f943b26f5700c33dc55dad | [] | no_license | MrArabboy/Blogsite | 4167cb9f7030e9bb3feb240d0b2560b3cacde9c3 | 8d80d08b418476bcaad87f3f479f0ffe55af00c5 | refs/heads/master | 2023-06-14T04:16:28.347506 | 2021-07-10T14:54:21 | 2021-07-10T14:54:21 | 384,720,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # Generated by Django 3.2.3 on 2021-06-22 14:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"mr.arabboy@gmail.com"
] | mr.arabboy@gmail.com |
f02c935f46b416c5992dd469b7e5961998b00fda | bbce5ff1bec789af2ddf55e4af4e14e11fdfc3d2 | /app.py | 74675f5eccb17ce082d01e7b938b1ec66c875162 | [] | no_license | SnehilSinha/Fake-Currency-Detection-using-Deep-Convolutional-Networks | 597b8c14e8d9538ef1f38c6c9707dd3cc09005fb | 3fffc6a8fd075bcb44a63ef1525a6ff3ae4d45f7 | refs/heads/main | 2023-05-30T18:11:53.129080 | 2021-07-04T07:23:00 | 2021-07-04T07:23:00 | 360,904,405 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | import os
import sys
import cv2
# Flask
from flask import Flask, redirect, url_for, request, render_template, Response, jsonify, redirect
from werkzeug.utils import secure_filename
from gevent.pywsgi import WSGIServer
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.applications.imagenet_uti... | [
"noreply@github.com"
] | SnehilSinha.noreply@github.com |
fd297696413587ed4cb669225d6afaab95af0cd3 | da82dda955093f4a8143d77075970cecd462c46e | /기본수학1/2869.py | d0a7b37e924494a14dd4543331eb99af9e402271 | [] | no_license | damagejun19/baekjoon | 36d2ab5917e08874e23690533d221de6c5747dae | 644c05807665cc60573b0a41858e395e964c365b | refs/heads/main | 2023-05-25T06:10:35.977178 | 2021-06-10T14:45:20 | 2021-06-10T14:45:20 | 372,837,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | import math
A, B, V = map(int, input().split())
day = math.ceil((V - B)/(A - B))
print(day)
| [
"noreply@github.com"
] | damagejun19.noreply@github.com |
473ad805640993a7478b24d1975950e372158851 | d2f55652fe0cbacc5729f596f4232261a0823156 | /union_logistic回归.py | dde87d787631c8746b768195308b75382ef714e1 | [] | no_license | airuibel/td_bair_union_model | 2f3b8657e99e5d809baf6c3db02b372852873824 | 189530561f8af4d3b8e5ed62b90a27b40bc6cf73 | refs/heads/master | 2022-02-28T14:08:54.779708 | 2019-09-24T08:14:01 | 2019-09-24T08:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,227 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 4 15:59:34 2019
@author: wj56740
"""
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 30 11:02:54 2019
@author: wj56740
#针对客户:所有新增客户
#观察期时间窗:2017.07.01-2018.09.28
#表现期:2019年4月15日
## 坏客户定义:
# 1) 曾经逾期16+
## 好客户的定义:
# 1) 已结清且未发生逾期
# 2)... | [
"noreply@github.com"
] | airuibel.noreply@github.com |
5f180caa46869257a5cd62e3e7ef0bdb9717cd32 | 1ebe19998b19fcda64c030f2ae783d31c084cb5a | /projects/NoteBook/run_client.py | 150adadfece777ae85167c1eea17c8a6a15eae7d | [
"MIT"
] | permissive | jskyzero/Python.Playground | f287583c6d2eefc1c7ccda421aa669e4cdd4e533 | 6a6d815d2307d17657b7622201874e4ee7f2324a | refs/heads/master | 2023-04-05T11:42:04.362850 | 2020-01-12T14:37:58 | 2020-01-12T14:37:58 | 359,559,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from notebook.client import Client
CLIENT = Client()
CLIENT.main_func()
| [
"jskyzero@outlook.com"
] | jskyzero@outlook.com |
8becb8342ce4e4a5d50e6184ef347e3199559245 | 172f51a6d83a47f52f40fad7bc1009bb1a31dfe2 | /cuip/plumes/extract1pixel.py | 9330ce26841dbff5c48aa9e8323e6de4aab98d29 | [] | no_license | gdobler/cuip | 29e2fc00d034f9efc980d8ba9bb7c43cf38533e0 | 9c2c2e62a0e5219244e40a0c370c72e6d5f9accd | refs/heads/master | 2021-01-19T04:32:14.780033 | 2018-02-22T22:00:45 | 2018-02-22T22:00:45 | 50,519,966 | 1 | 2 | null | 2017-02-26T16:19:17 | 2016-01-27T16:15:06 | Python | UTF-8 | Python | false | false | 546 | py | import glob
import pylab as pl
import numpy as np
import os
from findImageSize import findsize
from utils import RawImages
files = (glob.glob(os.getenv("PLUMESDIR") + "/*raw"))
imsize = findsize(files[0], outputdir=os.getenv("PLUMESDIR"),
imsizefile = "oct08_2013-10-25_imgsize.txt")
pixels = np.a... | [
"fedhere@gmail.com"
] | fedhere@gmail.com |
7492f69aa14995983da604ca9f0147a8ac31dcef | 4c74f80edca6e83df90b95f92c9bcd209d88fb10 | /Lab1.3/snmp.py | 28eaa949f1e34b1f1e8c46a401bfe49201da7248 | [] | no_license | ramilius/p4ne | ca5b7b79cfbcb43830f4e7949ec680e55d1210e2 | be03170d3c2e6c34abc515173bbcf7dde27ea575 | refs/heads/master | 2021-06-25T10:35:29.189830 | 2017-08-30T13:59:15 | 2017-08-30T13:59:15 | 100,274,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from pysnmp.hlapi import *
result = getCmd(SnmpEngine(),CommunityData('public', mpModel=0),
UdpTransportTarget(('10.31.70.107',161)),
ContextData(),
ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)))
for x in result:
v = x[3]
print(v)
for y in v:
... | [
"moonfbwer@mail.ru"
] | moonfbwer@mail.ru |
bf5ed36b3a44df2a5ecb1cbda005d48baca2dc60 | 5a6e6741fe7c64cb99b6fbff66ab332d3563ffa9 | /src/interaction/speech.py | 8dc98b998edeb21336dc0f7093c938f63709eb47 | [] | no_license | gowhale/braille-pi | 06c9fdf05f0bc5a8ae3f2c18cb74e2c487e103dc | d184e7cc2f4cc6f339186a85057922706fc69a8a | refs/heads/dev | 2023-07-18T05:27:21.156461 | 2021-08-27T14:01:08 | 2021-08-27T14:01:08 | 320,604,946 | 0 | 0 | null | 2021-08-16T12:52:21 | 2020-12-11T15:02:02 | Python | UTF-8 | Python | false | false | 4,909 | py | from subprocess import call
from sys import platform
try:
from os import system
except ModuleNotFoundError:
"OS Note found"
import string
import os
import fnmatch
from playsound import playsound
from string import punctuation
import pygame
class Speech:
"""The purpose of this class it to verbally speak ou... | [
"gabewhale@gmail.com"
] | gabewhale@gmail.com |
03be06c5198c90f540920ca80d4ed95b562765cc | 4ac330ae846ac3d593dca27ae34a5712a6de3a6c | /mail/excl_1.0.py | 71ad2d608809f02d320fa4581df171e392a7b827 | [] | no_license | gaoshang18/python | 5999c420be0bf020759fa0bb0bc2251532d5c779 | e73aa15e71eea54699215f0ff6279ad9b8417be2 | refs/heads/master | 2020-05-01T03:35:32.480839 | 2019-08-26T02:02:55 | 2019-08-26T02:02:55 | 177,248,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import xlrd
import xlwt
def readexcel():
# 这部分是读取内容
workbook=xlrd.open_workbook(r'E:\用户新增表.xlsx')
print(workbook.sheet_names())
sheet2=workbook.sheet_by_name('用户新增表')
nrows=sheet2.nrows #行数excl_1.0.py
ncols=sheet2.ncols #列数
print(nrows,ncols)
cell_A=sheet2.cell(1,1).value #取第二行第二列内容
... | [
"gaoshang18@qq.com"
] | gaoshang18@qq.com |
e18dc8ce6aee0d6274af6f5c1d9f1a26f9ed3c9c | 3996d7cbc3a41bc0d38ce7826b96cbeeb750d7f3 | /Bucles/numeros_primos.py | 83423fbedd870bc515cd901cba3cd0ce957e48e6 | [] | no_license | jpmontoya182/python-basic | 7f1eaa38e6630c62e59c9e64f0f84420907ef196 | 67ea95fa7f1f4f594a508010aee90c3c684a37c8 | refs/heads/master | 2022-11-30T05:03:49.866785 | 2020-08-16T16:12:42 | 2020-08-16T16:12:42 | 287,760,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | def es_primo(numero):
result = True
# contador = 0
for i in range(1, numero + 1):
print(i)
if i == 1 or i == numero:
continue
if numero % i == 0:
result = False
break
# if i == 1 or i == numero:
# continue
# if numero % ... | [
"jpmontoya182@gmail.com"
] | jpmontoya182@gmail.com |
d3b3df7beaf26702d254fe115ef7f7f3966b570c | d0d4cdb5c01cef60ad70305436d097da020920fa | /src/Models/AccountingModels.py | 4402471ed42c49b564dce1b989a8852b2f5a9c57 | [] | no_license | Halicea/VlachYouthWeb | 5e0c76b6ba60736e95e9bb995e6d5c7c85c3e9d0 | c067c3dca0b11627522732472c333da4c7f76bf9 | refs/heads/master | 2021-01-20T02:02:08.285673 | 2010-05-13T12:44:26 | 2010-05-13T12:44:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,102 | py | '''
Created on Sep 8, 2009
@author: kosta halicea
'''
###########
from google.appengine.ext import db
from Models.BaseModels import Person
import datetime as dt
from google.appengine.ext.db import djangoforms
###########
class Account(db.Model):
AccountNumber = db.StringProperty(required=True)
BankNam... | [
"costa.halicea@gmail.com"
] | costa.halicea@gmail.com |
9e5a35985bca4d00ccfa7344e42777168701d67c | 20144ae2d9fbe8c6aa67c53aa0e93f3027d870a5 | /movies_correlation.py | 24818022cf1602b82ff1ca9725741dd7ecef44d9 | [] | no_license | scc23/data-science-movies | 989d28974cbf55852a1877cead3041b4b6665b56 | a59dbcee0b6857e7abbf592d5a562a6194e61390 | refs/heads/master | 2020-07-02T11:49:57.343484 | 2019-08-09T18:20:04 | 2019-08-09T18:20:04 | 201,518,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,129 | py | # Question:
# Do the various criteria for success (critic reviews, audience reviews, profit/loss) correlate with each other?
import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import re
from scipy import stats
def main():
# Read JSON files into Pandas DataFrames
omdb_filename =... | [
"sherman_chow@sfu.ca"
] | sherman_chow@sfu.ca |
1c930c629d264c1b02af2492b5b962be70f570d9 | d6589ff7cf647af56938a9598f9e2e674c0ae6b5 | /nlp-automl-20191111/setup.py | 7541638ca97742a773686465bb0c04174993e7bc | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python-sdk | 55028a0605b1509941269867a043f8408fa8c296 | cddd32154bb8c12e50772fec55429a9a97f3efd9 | refs/heads/master | 2023-07-01T17:51:57.893326 | 2021-08-02T08:55:22 | 2021-08-02T08:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | # -*- coding: utf-8 -*-
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
a09d630b0a1ce6cb0085ac88aa8b844f88f05b60 | 97ff998f266f4a504df90d90a38b982a8a7b2f16 | /model.py | 37cc68751b628daa679b3c5efe4829b390aec0b2 | [] | no_license | saidul-islam98/Fruits-Rotten-or-Fresh-Classification | fe2f8809d4f97a29e77a47c719c70d74a14390b1 | e7795c4226b9222e8766024f9075f82560a8a5b0 | refs/heads/main | 2023-04-04T06:12:18.947280 | 2021-04-15T09:34:03 | 2021-04-15T09:34:03 | 357,995,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Dense, Flatten, Dropout
from tensorflow.keras.utils import plot_model
def model_definition():
model = Sequential()
model.add(Conv2D(64, (3,3), activation='relu', input_shape=(228, ... | [
"saidulislam143.si@gmail.com"
] | saidulislam143.si@gmail.com |
c4039809bdf3379983925eac6c165225ee0d6921 | ce3901b7a4a7b05106f125eab75e3a22ae3ab506 | /app/app/tests.py | 4ed7e8fb1d9b08a232c0fadccef82f5ca1be3ebc | [
"MIT"
] | permissive | skancoder/Django-Recipe-RESTAPI | f4d5b56c92239d46a1bfe3d8d5220fac3917f415 | d19618424575c2db2a46d7771eabac4d9fb3d5c5 | refs/heads/master | 2023-01-03T14:22:14.579315 | 2020-05-18T09:09:18 | 2020-05-18T09:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #Django looks for any folder or file that begins with test for unit testing
#for testing: all the files,folders,test function must begin with 'test'
from django.test import TestCase
from app.calculator import add,subtract
class CalcTests(TestCase):
#test function must begin with name 'test'
def test_add_numb... | [
"kandagatlas@gmail.com"
] | kandagatlas@gmail.com |
48692f6bb82436458dcda51926e85f92d86ed1ad | 589b5eedb71d83c15d44fedf60c8075542324370 | /project/stock_project/alpha_model/alpha_factor/ARAPIncomeTTM.py | 605a216d31fef56f1a88b39a3a9a2b23dfa799dd | [] | no_license | rlcjj/quant | 4c2be8a8686679ceb675660cb37fad554230e0d4 | c07e8f0f6e1580ae29c78c1998a53774a15a67e1 | refs/heads/master | 2020-03-31T07:15:48.111511 | 2018-08-27T05:29:00 | 2018-08-27T05:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | import pandas as pd
from quant.stock.stock import Stock
from quant.stock.date import Date
from quant.stock.stock_factor_operate import StockFactorOperate
def ARAPIncomeTTM(beg_date, end_date):
"""
因子说明:(预收账款 + 应付账款) / 营业总收入 TTM
最近一期财报 实时更新
若有一个为负值 结果为负值
"""
# param
######################... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
d1744ebbc97977eaa70c4613205308c9689750e2 | 28051ef0461a8928917e42917cf9517838d02b11 | /morfo_analyzer_3.py | 8d2a2059849b995da42967055c8c50fac710231e | [] | no_license | decourtenay/polimorfologik | d4ef34f21b6ecf6329cfe3c47e8c57d0383869eb | 3f2398b7f26de56949ece3a056108716d7027b58 | refs/heads/master | 2023-02-25T02:05:33.791397 | 2021-02-03T21:29:31 | 2021-02-03T21:29:31 | 335,761,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,563 | py | import re
import csv
polimorfologik = 'polimorfologik-2.1.txt'
input_file = 'input.txt'
output_file = 'output.txt'
def get_input(phrase):
entry = phrase
entry_list = entry.split()
return entry_list
def find_pp(phrase):
list_of_words = get_input(phrase)
prepositions = ['o','od','ode','na','nad',... | [
"nowakpm@gmail.com"
] | nowakpm@gmail.com |
9dffdb97ad4a5e34ac9104a9dd6f11c0cc395e5c | e694047b179ffb6af741a5652b83a39e45224afc | /ormQueries/store/models.py | 130e4e00b6aac2fac7a630989c32af935684ec6a | [] | no_license | LiorA1/Django | 976cec553038cb0a411b2cee8e509f64e16947ad | 17dfba26057868a1bee12d39399dea393e95726d | refs/heads/main | 2023-06-21T20:52:31.431643 | 2021-07-18T18:22:27 | 2021-07-18T18:22:27 | 345,341,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,564 | py | from django.db import models
from datetime import datetime
# Create your models here.
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each Foreign... | [
"liorbm1@gmail.com"
] | liorbm1@gmail.com |
77082cacfa0573b473b851f43f273315feb2e7e5 | 40b64cc2005de68b691665fcb7049f5e5f6ec273 | /setup.py | d13a00b4913c83b37465dee667cfe4eb1c63f2bd | [
"MIT"
] | permissive | bnmrrs/django-twilio-utils | abf251d420891c347e248021ff8b5f75228d9dda | 99ebc10ffbe2bf224833952248078d890eb5b914 | refs/heads/master | 2021-01-16T00:16:45.926536 | 2010-09-04T14:25:03 | 2010-09-04T14:25:03 | 846,211 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | #!/usr/bin/env python
#
# The MIT License
#
# Copyright (c) 2010 Ben Morris
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights... | [
"ben@bnmrrs.com"
] | ben@bnmrrs.com |
7814cce7e5c9092e9c732fb61fdfb4a542218980 | 507a94242c44a8bbb09a9f1529f0cf1329a01bb5 | /NLO/Ppp/fchn6C.py | 173d64a2fb786e65738f4ff41514404fe917e957 | [] | no_license | JeffersonLab/BigTMD | 92661894ccc59e8cb164a773f830ddc03d75bae2 | 6e97635d21a63b7975b2e7f5891edc0c35c4dc0c | refs/heads/master | 2021-07-15T01:15:45.367325 | 2020-05-18T01:01:38 | 2020-05-18T01:01:38 | 152,819,316 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,532 | py | #!/usr/bin/env python
import numpy as np
from mpmath import fp
from numba import jit
import numpy as np
EulerGamma=np.euler_gamma
@jit(cache=True)
def _PolyLOG(s, z):
tol = 1e-10
l = 0
k = 1
zk = z
while 1:
term = zk / k**s
l += term
if abs(term) < tol:
break
... | [
"nobuosato@gmail.com"
] | nobuosato@gmail.com |
cf7aaa8675a60a7a5f79d429c7ca6db548e2bc01 | a5e60d6bdc5ffa932e9d2638ee56e88ed4c07fc7 | /df_websockets/tasks.py | dd4e7dfa2164adc5397a54f207d9030465a96516 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | webclinic017/df_websockets | c5d82afe90e475731e61186fa8df39897c64252e | f0d072c4d6f2ddfa8bf17dd408236553fc154731 | refs/heads/master | 2023-04-16T05:45:42.293330 | 2021-04-16T08:50:42 | 2021-04-16T08:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,116 | py | # ##############################################################################
# This file is part of df_websockets #
# #
# Copyright (C) 2020 Matthieu Gallet <github@19pouces.net> ... | [
"github@19pouces.net"
] | github@19pouces.net |
68496ff621471723f8f5bfa29b64fc2080d909b4 | 10933f33099b423c5971d12993de07cc6f7d0f07 | /python_scripts/speaker250_rec.py | 19c7a182bda1152db09eed322fea844bc5cca4d8 | [] | no_license | Joako360/Voice-Identification | ed521d3fe41c6d862ab72e4585b1600742295847 | 744cb2276097c2839e7bd5f5db9f461d44e48b25 | refs/heads/master | 2023-03-15T15:10:30.219968 | 2019-04-29T02:56:09 | 2019-04-29T02:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | import os
import sys
import librosa
import tflearn
import pydub
import wave
import pickle
import speech_data
import segment_data
import tensorflow as tf
import librosa.display
import numpy as np
# load constants - training directory, testing directory
training_data = '/home/cc/Data/Full-100/'
training_seg = '/home/cc/... | [
"drew.boles88@gmail.com"
] | drew.boles88@gmail.com |
39ba0f48eff89e8b494be8e685767d654f52cf3f | 8380e98943ca6b17909907cdfcca24b70f8b581b | /qiskit/pulse/instructions/directives.py | ee3d7955dbfa7c804d4f0d3733bd5cbcb057579c | [
"Apache-2.0"
] | permissive | JohanNicander/qiskit-terra | 97fbd6465223463660cbb06812516db0a00a458c | a67440aabef1f87b8c600e6952109d5b647a94b4 | refs/heads/master | 2022-12-11T04:22:17.428403 | 2020-08-06T12:40:53 | 2020-08-06T12:40:53 | 280,187,204 | 0 | 0 | Apache-2.0 | 2020-07-16T15:17:26 | 2020-07-16T15:17:25 | null | UTF-8 | Python | false | false | 1,742 | py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | [
"noreply@github.com"
] | JohanNicander.noreply@github.com |
ba5fe81af0632687c14d963ae372ba1b8ee5503f | a8750439f200e4efc11715df797489f30e9828c6 | /CodeForces/EC_46_2_C_1.py | 8ee3122998960e839a22312f1db953f98a96581f | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | n = int(input())
a = []
for i in range(n):
l, r = [int(x) for x in input().split()]
a.append([l, 1])
a.append([r+1, -1])
a = sorted(a)
ans = [0] * (n + 1)
idx = 0
for i in range(len(a) - 1):
idx += a[i][1]
ans[idx] += a[i+1][0] - a[i][0]
for i in range(1, n+1):
print(ans[i], end = " ") | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
9b05b73cd5f0370491f151c54c36a981422be0f9 | 16b567ed93c10287f7b9e90ddc819512aadbcaf5 | /filters/stopwords_filter.py | c69ebfd10592f81b4efc0b75d78a5a7c9c1a54df | [] | no_license | Rigel772/python-keyword-density | b3bdfb70e06e53264be7507e4111a923b40ea51a | c3a4469360de3d7c02dd9b8de2dc7eac45a3253a | refs/heads/master | 2020-05-19T11:28:23.854324 | 2018-11-02T13:22:51 | 2018-11-02T13:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #-*- coding: utf-8 -*-
import os.path
from .base_filter import BaseFilter
class StopwordsFilter(BaseFilter):
def __init__(self, country):
super(StopwordsFilter, self).__init__()
self.country = country
stopword_fname = '%s.txt' % self.country
folder_name = os.path.dirname(__file__)... | [
"you@example.com"
] | you@example.com |
0944a6584dec0a46eaffce3109f6738e8ef1de9b | d27152dda9c4e42c75239ef8c38dcaaed7c88c64 | /pchtrakt/mediaparser.py | f5c1ac80451826567d411ab1ab7659605c35f175 | [] | no_license | cptjhmiller/pchtrakt | f379731066191ea428b8ec1e72bf9bad5c67e3cc | e7a13d5ffbd4eb5e4d6038c179c85024bc4e0f89 | refs/heads/dvp | 2021-01-10T20:51:12.480210 | 2015-08-31T10:58:47 | 2015-08-31T10:58:47 | 6,009,369 | 4 | 3 | null | 2015-04-14T01:21:45 | 2012-09-29T13:48:39 | Python | UTF-8 | Python | false | false | 12,775 | py | # -*- coding: utf-8 -*-
#
# Authors: Jonathan Lauwers / Frederic Haumont
# URL: http://github.com/pchtrakt/pchtrakt
#
# This file is part of pchtrakt.
#
# pchtrakt 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 Foundatio... | [
"cpt.miller@fun4gamers.co.uk"
] | cpt.miller@fun4gamers.co.uk |
5216eb7ed2b3564a1c9820eed4716c5dd256f187 | dd3fce1dcc928e7c95e1c203ef214eb0159614d0 | /mysite/settings.py | c59b01a6439757b0ac5baf0156fb93b07386ae2d | [] | no_license | sorbg/my-first-blog | 2c31f86797b2ee6d40e1481dffa6222a45096f4a | 4781262320e0f5d425d11a2cd6b3d56e61d39fb6 | refs/heads/master | 2021-05-06T17:38:15.678120 | 2017-11-24T16:19:23 | 2017-11-24T16:19:23 | 111,898,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"seanoreillybg@gmail.com"
] | seanoreillybg@gmail.com |
3d514da561570f82bc381f126db86de33619319c | 3e4a921135ebbf299cfb1bfca7c037516d517bc0 | /KNNImplementation.py | 552ae65e6085669e9b5adf0abdadf5bb2847631b | [] | no_license | Priyanka554/Heart-Disease-Prediction | 1bacd4971437e95543530663629d1a2c3d82b408 | 65e3fe22259ca4cb3b55084480fad6b184f8504a | refs/heads/main | 2023-02-25T15:58:53.431201 | 2021-02-01T20:48:56 | 2021-02-01T20:48:56 | 335,079,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,377 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import accuracy_score
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from collections import Counter
def kNNClassifier(dataset):
print()
... | [
"noreply@github.com"
] | Priyanka554.noreply@github.com |
10f6b5b97469d394300ef6b65037975b33dec662 | 3fb1d9b6c97d97db2922d1ae32c177f02a8559ef | /Lesson 8 - Project Prep/6_PostAndAnswerLengthExercise_reducer.py | 3926190d5e0b5d494f7817e9ef5112b8710d9e8d | [] | no_license | nanfengpo/udacity_hadoop_mapreduce | cdaa692b8fca1eed2c7b51171bb36cdeaa421da3 | ffba21dbd32568995e9f2b1366b1338a103f4a6f | refs/heads/master | 2021-01-21T15:03:58.541937 | 2017-04-16T22:01:00 | 2017-04-16T22:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | #!/usr/bin/python
import sys
def reducer():
answerLength = 0
answerCount = 0
questionLength = 0
oldKey = None
for line in sys.stdin:
data_mapped = line.strip().split("\t")
if len(data_mapped) != 3:
# Something has gone wrong. Skip this line.
continue
... | [
"180726@edu.p.lodz.pl"
] | 180726@edu.p.lodz.pl |
34969a057bca7dfae9547d8cf1ae6495fda27954 | be20fb78227fd9d3fbad2f1da77586130325763b | /gift_cards_django/gift_cards_app/admin.py | 0874163ab693677f755b10ed89fec54c23302401 | [] | no_license | chad-dickens/Memphis-Blue | 2ddb1372b7ed5038fcf059e448a43e3d83c2ebbd | aa49dc9ee821073f8e6344df681fbf9010b6fc4a | refs/heads/master | 2023-05-28T19:16:57.294773 | 2021-06-21T12:21:01 | 2021-06-21T12:21:01 | 281,660,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.contrib import admin
from gift_cards_app.models import Orders
# Register your models here.
admin.site.register(Orders)
| [
"chad@192-168-1-108.tpgi.com.au"
] | chad@192-168-1-108.tpgi.com.au |
c6c7206c12803b9da1445ff393a4414592a8abb7 | f43b23b981ad5c5206bd43b1891cf21328cef412 | /shop_services/peewee_test/more_define.py | 7b1a5e3b588cc885fc4d1d21939c9a4dae1b66ce | [
"MIT"
] | permissive | CodePrometheus/Starry-Supermarket | 518a8910eeba82ac4c2c0ac2c4387533cc241e03 | c4a98ce563e7e21fc55bc1749417dc4b9d1529f7 | refs/heads/master | 2023-08-24T20:26:02.252809 | 2021-10-25T15:25:53 | 2021-10-25T15:25:53 | 413,009,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import datetime
import logging
from peewee import *
logger = logging.getLogger("peewee")
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())
db = MySQLDatabase('starry-supermarket', host='localhost',
user='root', passwd='root')
class BaseModel(Model):
add_time = DateTim... | [
"Code_Prince@outlook.com"
] | Code_Prince@outlook.com |
d2abe9a6ced4dbf9bd2576aa1d42042ffe66e940 | 6f5db07830d3eed9498362d493990b098d745c9c | /CloudServer.py | f20c796e19813bbff8b7fded79dd54a9c4bf6352 | [] | no_license | harshitachoradia/delivery-verification-service | 82545675f1ce12dd9fb50a5b0ad79c06f6b92b88 | 8906c422733d289ccdbbf279a20d3907aea2345c | refs/heads/main | 2023-05-24T07:34:56.062498 | 2021-06-13T07:13:27 | 2021-06-13T07:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,484 | py | from flask import request, url_for
from flask_api import FlaskAPI
from flask import jsonify
from flask import json
from flask import Response
from flask import send_from_directory, send_file
from flask_cors import CORS
import cv2
import tensorflow as tf
from tensorflow.keras import datasets, layers, models, regularizer... | [
"vmadyasta@gmail.com"
] | vmadyasta@gmail.com |
486042156b03a721b93efdb0f698cf3f62fe2f93 | 2e85b35497e7d97a3f887e2dd82e25d4e9338937 | /introducao_ao_python/topico_5/importando_modulos.py | 118a930dd232c71d2f5cc036244125d29c0b3275 | [] | no_license | magnologan/introducao-a-pentest-com-python | bad95932dc96c1a18fe1cdd2f799bc893c6b9c32 | 1a8ff1744ec28e6dd92fa127d1042f467e6f48a7 | refs/heads/master | 2021-05-15T10:04:13.056901 | 2017-10-02T14:41:45 | 2017-10-02T14:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | ### importando o modulo inteiro de tempo
import time
time.sleep(2)
### importando apenas a funcao especifica de sleep
from time import sleep
sleep(2)
| [
"samukasmk@gmail.com"
] | samukasmk@gmail.com |
e638da845ef167b11b3122f120cd0e44acefa0de | e93c6e93f612bca7f192adf539b4f489ad114ab5 | /m01_basics/l_07_nested_data.py | 6739ccff73e049c4db47923a80292b1b7f11a800 | [
"MIT"
] | permissive | be1iever/python-52-weeks | 8d57a10af9c0f5309ba21a9503a8fdf4bd82840c | 185d8b3147c6bfb069d58e4933b74792081bf8f2 | refs/heads/main | 2023-08-19T08:21:45.330447 | 2021-09-21T15:00:28 | 2021-09-21T15:00:28 | 409,847,518 | 1 | 0 | MIT | 2021-09-24T05:51:14 | 2021-09-24T05:51:13 | null | UTF-8 | Python | false | false | 2,506 | py | from pprint import pprint
from random import choice
import copy
from util.create_utils import create_network
device = {
"name": "r3-L-n7",
"vendor": "cisco",
"model": "catalyst 2960",
"os": "ios",
"interfaces": [
]
}
print("\n\n----- device with no interfaces --------------------")
for key, ... | [
"chuck.a.black@gmail.com"
] | chuck.a.black@gmail.com |
ce2469650940b0fa5dfceaad6a4836793f0f23b9 | 30fd01dbae99721069d936d5daa6a8050488a248 | /hacker/FirefoxSQLite.py | 7da8415a2e85749f5c5b4f1f6d446bc2933e030b | [] | no_license | chenshuo666/mypython | 6b334ad42b117c2750129028e82037643d99ab6a | 3cfcf49f2d6cc3733d244cc7eb212a4dba6a439a | refs/heads/master | 2020-03-10T04:04:35.530485 | 2018-04-17T04:02:16 | 2018-04-17T04:02:16 | 129,182,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,999 | py | #!/usr/bin/python
# coding=utf-8
import re
import optparse
import os
import sqlite3
# 解析打印downloads.sqlite文件的内容,输出浏览器下载的相关信息
def printDownloads(downloadDB):
conn = sqlite3.connect(downloadDB)
c = conn.cursor()
c.execute('SELECT name, source, datetime(endTime/1000000, \'unixepoch\') FROM moz_downloads;')
... | [
"929387146@qq.com"
] | 929387146@qq.com |
086f919dc5d77d92ce256911cf93cd83d411d684 | e5f194129752f3f89eed53478416d2c92cde0259 | /.cache/Microsoft/Python Language Server/stubs.v4/PW5N1gWcYNUaFmNEjFpBbn4_TkxeV53eiQaZBrpg6xw=/python3.pyi | 8befe0f027be53bb4d55f3d4c9c1399a04b4cd3d | [] | no_license | stepin-s/st | 1677fc25cb42c36afd76d2e3a48a1c0a5daf1b93 | b4cf346a446d57210197ee7f6f809cbc0a5b8799 | refs/heads/master | 2023-07-27T17:37:39.268414 | 2021-05-25T12:08:10 | 2021-05-25T12:08:10 | 405,090,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230,782 | pyi | class NotImplementedType(object):
__class__ = NotImplementedType
def __init__(self, *args, **kwargs):
pass
@classmethod
def __init_subclass__(cls):
'This method is called when a class is subclassed.\n\nThe default implementation does nothing. It may be\noverridden to extend subclass... | [
"stpn.s@yandex.ru"
] | stpn.s@yandex.ru |
03f04ed8e4882c523b67905057a762d097be0037 | 35e3e103e95128d6398ee14ce0a1b46d2033b688 | /proxy_source/__init__.py | 1186ed6da179a5002fec1b180a92b1302a9d2b16 | [] | no_license | Godofbush/easy_proxy | 819558195f355a441a82a2d38fbee1cb9d3a6867 | 60bb04a812ff9e522b019e0968d2d0e4b26d72d7 | refs/heads/master | 2023-01-15T12:42:17.290896 | 2020-11-23T15:58:30 | 2020-11-23T15:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from .goubanjia import get_goubanjia
from .kuaidaili import get_kuaidaili
from .kxdaili import get_kxdaili
PROXY_SOURCE_LIST = [get_goubanjia, get_kuaidaili, get_kxdaili]
| [
"zhuyan265@gmail.com"
] | zhuyan265@gmail.com |
7e39d9636d8d51231c8e255ea73707f11e4c337e | 56ffce29f0d27f83206e11870d95982c38524aae | /apweb/site/view/session_test.py | a77c127ed42f7fbac3078f43a773ba651e4786d4 | [] | no_license | adamandpaul/apweb | cce365085e2ee58cfbc31544c5a7414e67ad56b4 | b1bb81fa7d7b39f19e187462aa3447ff482b46af | refs/heads/master | 2022-10-19T02:09:52.437906 | 2021-05-21T06:10:08 | 2021-05-21T06:10:08 | 201,398,036 | 0 | 3 | null | 2022-09-21T21:39:41 | 2019-08-09T05:41:06 | Python | UTF-8 | Python | false | false | 691 | py | # -*- coding:utf-8 -*-
from . import session
from unittest import TestCase
from unittest.mock import MagicMock
from unittest.mock import patch
class TestSessionView(TestCase):
def setUp(self):
self.request = MagicMock()
self.context = MagicMock()
self.view = session.SessionView(self.conte... | [
"arterrey@gmail.com"
] | arterrey@gmail.com |
a38e5b8ea1259ceb3d591026ad3ca10564a3d8fe | fc1dc477569b8c9676d824556f6df796ea10ee47 | /net_16_ldap/vip_ldap3_1_get_user_info.py | d69f62aa45d09a420391290db308389b823d4ffa | [] | no_license | pengpeng2100/python_code_classic | 4007873fef426aa3b609beff19c4b66ff9ed746d | 121a028cb24e217988f0800792e946f540cf1a59 | refs/heads/master | 2023-03-30T04:27:22.942432 | 2021-03-30T16:00:28 | 2021-03-30T16:00:28 | 353,030,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,821 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
# 本脚由亁颐堂现任明教教主编写,用于乾颐盾Python课程!
# 教主QQ:605658506
# 亁颐堂官网www.qytang.com
# 教主技术进化论拓展你的技术新边疆
# https://ke.qq.com/course/271956?tuin=24199d8a
from ldap3 import Connection
from net_16_ldap.vip_ldap3_0_login_info import server, ad_admin_username, ad_admin_password
def get_user_... | [
"pengpeng2100@gmail.com"
] | pengpeng2100@gmail.com |
973cb04e9006b61f124b9eec5ee4e4edb2e8c86d | 66246d9b5f98203fe1a2532e32757dea922d798a | /data_clean.py | 1c4edf642dd332831f99d2ff4689fb98ec8aa22a | [] | no_license | hexinuser/data-analysis-of-resold-apartment | 418dcd710fd8015da5471c9c50651f233cf86e09 | fec90fb8ba668a6375e27ab266d02572b1979bdb | refs/heads/master | 2020-04-06T14:37:06.867501 | 2018-11-14T13:55:13 | 2018-11-14T13:55:13 | 157,547,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 15 13:07:16 2018
@author: Evan_He
"""
import pandas as pd
import re
#data = pd.read_excel('C:/Users/Evan_He/Desktop/scrap_ershoufang/data/data.xlsx',encoding="utf8",index_col='链家id')
#data.to_csv('C:/Users/Evan_He/Desktop/scrap_ershoufang/data/house_data.csv'... | [
"noreply@github.com"
] | hexinuser.noreply@github.com |
99bc5f810433c2c56027c7cadd2f629bb37f2406 | 7f33d68323240d66e610e5a89efc516915a11a96 | /manage.py | cd6b58f7934e4cd956b6d3cad8298609c08f1d21 | [
"Apache-2.0"
] | permissive | dbca-wa/observations | 100df2765ef0f6f62aaf45fc13fbb4af4395f519 | 48b2ad17afa9f0019524cb22a9a0bba74850b87f | refs/heads/master | 2021-05-31T16:29:30.906717 | 2016-04-06T02:42:05 | 2016-04-06T02:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/env python
import os
import sys
import confy
confy.read_environment_file()
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "incredibus.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"asi@dpaw.wa.gov.au"
] | asi@dpaw.wa.gov.au |
d3ebcf3dec9963fff0f23664aaf16564a0ce8009 | d8bc4d108baa770455ea294498be87b5f51f0b23 | /open_price_strategy/deal_judge_direction_result_file.py | 07d10d7228e01988c8959e09e91bfb0f446ae007 | [] | no_license | dxcv/pratice_project | 852ccde684a05ff4f17f5d17bea0cfddc4c3015c | f4b78bf9f6ed196ff926036a51bfb638bb240369 | refs/heads/master | 2020-05-26T19:01:42.983442 | 2018-11-23T08:36:43 | 2018-11-23T08:36:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 14 14:49:45 2017
# 该脚本用于对judge_direction_after_auction_total_level进行分析
# 首先我根据脚本判断,如果持有一天到收盘,最后能不能盈利?
@author: Tracy Zhu
"""
### 导入系统库
import sys, time
import logging
from collections import deque
### 导入用户库
sys.path.append("C:\\Users\\Tracy Zhu\\Desktop\\tool\\open_pri... | [
"tracy.zhu7@gmail.com"
] | tracy.zhu7@gmail.com |
c538fb5cbdac74431e65498c5bb4964e8dcd47c5 | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/compute/cloud/vm_mode.py | 7ca85fbd53edb92822a9d5b0385735b37fb28c03 | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | # Copyright 2012 Red Hat, Inc.
# 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... | [
"nkapotoxin@gmail.com"
] | nkapotoxin@gmail.com |
8beeae688c7148ebe2715f0ca83ccfd8f6ce9996 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /data/tracking/sampler/SiamFC/_deprecated/sampler.py | db5571b4db36b29aa180d356235ddcd410d4e57c | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,797 | py | import numpy as np
from Dataset.SOT.Storage.MemoryMapped.dataset import SingleObjectTrackingDataset_MemoryMapped
from Dataset.MOT.Storage.MemoryMapped.dataset import MultipleObjectTrackingDataset_MemoryMapped
from Dataset.DET.Storage.MemoryMapped.dataset import DetectionDataset_MemoryMapped
from data.tracking.sampler.... | [
"linliting06@live.com"
] | linliting06@live.com |
34fe61172c2f5e69c0655b2388e2cb932655b39b | 15d29e054857b808ce28be78aeeb9604160dcdd2 | /biota/biota/calibrate.py | 94371ce6089d4cf82ec0b7337500029e505d1343 | [
"GPL-3.0-only",
"MIT"
] | permissive | eriklindquist/smfm_biota | 1b1c7196599623d726c8dda335d1ada54ff0fe26 | 23653cb590683c7668b1e3a4c4f1a4b6a6944cdb | refs/heads/main | 2023-03-25T22:55:12.315701 | 2021-03-05T15:00:05 | 2021-03-05T15:00:05 | 345,615,223 | 0 | 0 | MIT | 2021-03-08T10:21:53 | 2021-03-08T10:21:53 | null | UTF-8 | Python | false | false | 4,714 | py | #!/usr/bin/env python
# This is a set of scripts for calibration of a biomass-backscatter curve
import argparse
import csv
import numpy as np
import scipy.stats
import biota
import biota.mask
import pdb
def extractGamma0(dataloc, year, shp, plot_field, agb_field, buffer_size = 0, verbose = False, units = 'natur... | [
"dfgm2006@gmail.com"
] | dfgm2006@gmail.com |
4497578546be8b9a91eb065eca3349fb21651b5c | e20a119de04049ba75ec2f845daa0a218cc63101 | /py_deviare_directsound.py | 88e27652873c0039399b3bb1bc434bce8d83af7e | [] | no_license | wx1yyn/DirectSound_Capture_With_Deviare | cc499b25d44cd87df6a2542e32481ed0fb949b85 | 250a294e2efc0325c070123984b45b53a6bc24f7 | refs/heads/master | 2021-01-20T00:58:51.758899 | 2013-12-02T07:18:00 | 2013-12-02T07:18:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,464 | py | from py_deviare_objects import *
from py_deviare_wavtools import *
import ctypes
#Globals
g_Listener = None
g_ISoundBuffer_Hooked = False
g_ISound_Hooked = False
g_Target_Process = ''
g_Handlers = []
g_BuffersData = dict()
g_UsePolling = False
#Constants
VT_ISOUND_CREATE = 3
VT_ISBUFFER_GETPOS = 4
VT_ISBUFFER_INIT = ... | [
"flypig17v@sina.com"
] | flypig17v@sina.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.