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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53741aa874ccb02f31907854d248f744869447b6 | 4815fc86a72488ff384d0559c330af82a820db15 | /__init__.py | fa36773447918ab4d03912c0d4557cc6e140221c | [] | no_license | andportnoy/vk | 38f86f3e25bccfa7d0b78bd6d095c672f4dbc097 | fcc5a3a17ef53b56364df16b40eb0ba6c952bbca | refs/heads/master | 2021-01-17T12:44:02.417142 | 2018-04-05T00:11:18 | 2018-04-05T00:11:18 | 59,158,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from . import users
from . import friends
from . import wall
from . import places
from ._core import read_token
# TODO add checking for Python version (Python 3 is mandatory)
| [
"aportnoy@ucsd.edu"
] | aportnoy@ucsd.edu |
86ea18d5630ea40060fe97e9d488e3a5e45692ad | 8d7cd64a3df1677a12b228166e6d242849b5f4a3 | /WebScraping.py | e38cb39fe20dbefcc32c7aea9b5ff023e91a8983 | [] | no_license | Tanishkjain1357/Browser-Read-Write-with-WebScraping | 16ce43520728d9a8a944a69f5a2a05c16aa15e59 | 93c71821b16de92fccffce1b800e906adcdccd66 | refs/heads/main | 2023-01-20T11:17:43.615142 | 2020-11-27T00:28:21 | 2020-11-27T00:28:21 | 316,363,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # By Tanishk Jain and Ameya Jain
from selenium import webdriver
import time
import numpy
import pandas as pd
# fields = ['HELLO']
# file = pd.read_csv(r'C:\Users\Tanishk\Desktop\WebWork\edgedriver_win64\AllValues1.csv',delimiter=',',skipinitialspace=True, usecols=fields)
# file = pd.Series(file['HELLO'])
# ... | [
"noreply@github.com"
] | noreply@github.com |
46654a1b47ebc2f823c3a1ceb8645e92e41c1d91 | aeb54dedaba98001dae7853deda4a3520e627a43 | /Code/baseline.py | d5ff59504997a863409fbdfd7bb781882333febd | [] | no_license | TianhaoFu/2020WN_CS545 | 69aabb1bca3b2d353d8eb845f0ff7ad40153853a | ac949325b34ad8d6d739fc5951ecae2500aee55d | refs/heads/master | 2023-06-17T17:06:35.707478 | 2021-02-28T01:59:55 | 2021-02-28T01:59:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,606 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator
plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号
def plotCM(classes, matrix, savname):
"""classes: a list of class names"""
# Normalize by row
... | [
"noreply@github.com"
] | noreply@github.com |
f02f0c07768583e5d8cf8ec015a786ade7c11d29 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /LQgpGFMK9t9MELvph_9.py | 6cae0722546debd006fb3cb38f4989346c5cb5e9 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | """
Given a square list ( _n_ * _n_ size) implement a function that returns a new
list containing two lists equal to the two diagonals, in the following order:
diagonal 1 = from upper-left to lower-right corner
diagonal 2 = from upper-right to lower-left corner
### Examples
get_diagonals([ [1, 2], [3,... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a3d773f412236f639f2640f897cf8786d6f1621a | ce43c0489aaaeea339b858ab87152e8a5715011d | /features_python/ImFEATbox/FeatureGroup/__init__.py | 7cb5246bca109bc97b0dc6edfccf20a3454fec45 | [
"Apache-2.0"
] | permissive | Andy25-4/ImFEATbox | 860235a8db3a42f18fbfd671c465f570c4535592 | e7361303f11390cfe880b9db23472903f69ee3f2 | refs/heads/master | 2023-03-18T17:57:07.706874 | 2020-02-19T09:42:54 | 2020-02-19T09:42:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
#from ImFEATbox.FeatureGroup import _global as global
#from ImFEATbox.__Features__ import __grouptypes, __FeatureList, getFeatures, getFeatureNames
# this file is to register features to feature groups.
# a group can have multiple features -> featureList
# a feature can also have multiple gro... | [
"heiko@yoga"
] | heiko@yoga |
5e3f9f87ef9fec750e839eda115dfd7bb06d500a | 5ee5e19a42417fdfb5248c070d41b61b86465eaf | /abc_243/b.py | 8de66992b8f504c12ab2caefd7c905d55910e476 | [] | no_license | w40141/atcoder | 2e98cfe9fcb33aca8ac4567afecf603084964897 | 3ad74ca71ab77b929a097730047f4cf59ac38604 | refs/heads/master | 2023-08-08T21:37:42.744860 | 2023-08-07T00:50:34 | 2023-08-07T00:50:34 | 179,308,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | n = int(input())
a_li = list(map(int, input().split()))
b_li = list(map(int, input().split()))
same_num = 0
for a, b in zip(a_li, b_li):
if a == b:
same_num += 1
a_s = set(a_li)
b_s = set(b_li)
c = a_s & b_s
print(same_num)
print(len(c) - same_num)
| [
"w.40141@gmail.com"
] | w.40141@gmail.com |
4fb416c8db93c90148b49a885fef5c46c18b4401 | 892a019cabfadb1554372e5d478317dafc121579 | /test_ec_util.py | 7a020535696395b9333331c99783e0d8ff3c8079 | [] | no_license | eldron/tlsmb | 8208fd272c7280e76843c8ff63c0bf5f8c2f9608 | d47b64e68d1bbc7a06f1c1e8e1a473b8c0703ec8 | refs/heads/master | 2021-07-09T15:03:04.031764 | 2018-11-30T13:10:09 | 2018-11-30T13:10:09 | 135,407,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from tlslite.constants import GroupName
from tlslite.tlsconnection import *
from tlslite.keyexchange import *
import binascii
group_id = getattr(GroupName, 'x25519')
kex = ECDHKeyExchange(group_id, (3, 4))
priv = kex.get_random_private_key()
share = kex.calc_public_value(priv)
print binascii.hexlify(priv)
print binasc... | [
"eldron@163.com"
] | eldron@163.com |
abd5014fe7f609414f56f0c5502e2ffe8eb72e7b | bc441bb06b8948288f110af63feda4e798f30225 | /user_service_sdk/model/metadata_center/stream_metric_states_pb2.pyi | 9e2b0174cd0abac74c50c620d020df01b5ca5d95 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
0d8772dde7748dab580a540c44e42d1f03cb7f57 | 23385b67dfd6d12af279507a3127f66062b8e3c1 | /apps/dentist_apps/gallery/urls.py | 99352704d6d648218e7a57587e7f3a402988eb28 | [] | no_license | Sola-Lufkin/iDentalk-WEB2 | 59a1376434c0d358f1e8ced9fb42d845485453e7 | 586cfbd5c5fb7623670f5c32f65d7f933f00ed66 | refs/heads/master | 2021-01-10T15:45:56.341571 | 2016-03-31T09:00:04 | 2016-03-31T09:00:04 | 55,135,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | # -*- coding: utf8 -*-
from django.conf.urls.defaults import *
# from django.views.generic.simple import direct_to_template
urlpatterns = patterns('gallery.views',
#医生病例模块
url(r'^ajax/d/gallery/getcases/$',
'case_list',
... | [
"solair007@gmail.com"
] | solair007@gmail.com |
b5d4d48b7a85276c8077a311b7fe03009d6e1606 | c3856bed56ce93c895f0ccc97096ee0821c9f480 | /gce-python/env/lib/python3.6/_bootlocale.py | 6068756c2faad1c4bd75f4bfd95b03978c29eda1 | [] | no_license | nerdjerry/python-tutorial | 81fd9dc3209c1fcba96565cd67193b4257ae5d14 | 8214b2e95e22f1edbf3a936356d3716832e6a0f2 | refs/heads/master | 2020-03-28T16:04:10.675885 | 2018-09-08T09:21:38 | 2018-09-08T09:21:38 | 148,656,195 | 0 | 1 | null | 2019-10-15T05:21:34 | 2018-09-13T15:09:48 | Python | UTF-8 | Python | false | false | 62 | py | /Users/lucifer/devtools/anaconda3/lib/python3.6/_bootlocale.py | [
"lucifer@Prateeks-MacBook-Pro.local"
] | lucifer@Prateeks-MacBook-Pro.local |
fe10be165f5d160b669a4b90ef58ef4a391ba27b | baf592c7483656ca8270472c4b90d4a9f250882f | /Lib/site-packages/redis/sentinel.py | 8d7a5c6c43efd6cd73eb6fa80ffd2071af4afdec | [] | no_license | LuisACC/test2 | 10c0873df197a564506804abc246987e53d51943 | c910c7cda7d7602e84ad314b4f5a35b1219828b8 | refs/heads/main | 2023-03-23T00:16:47.536965 | 2021-03-12T11:06:03 | 2021-03-12T11:06:03 | 347,027,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,710 | py | import random
import weakref
from redis.client import Redis
from redis.connection import ConnectionPool, Connection
from redis.exceptions import (ConnectionError, ResponseError, ReadOnlyError,
TimeoutError)
from redis._compat import iteritems, nativestr, xrange
class MasterNotFoundError... | [
"l.a.casas685@gmail.com"
] | l.a.casas685@gmail.com |
b2038b79165d9711f194bb613dda99871eb2eb4d | d3b77550a40b860970450e702b6bcd28d5f9b3e4 | /LeetCode/1464_maximum_prod_of_two_elements_in_array.py | 0a66f0faf3a2108ddb4d63c69809049704a12e67 | [] | no_license | CateGitau/Python_programming | 47bc9277544814ad853b44a88f129713f1a40697 | 6ae42b3190134c4588ad785d62e08b0763cf6b3a | refs/heads/master | 2023-07-08T03:08:46.236063 | 2021-08-12T09:38:03 | 2021-08-12T09:38:03 | 228,712,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """
Given the array of integers nums, you will choose two different indices i and j of that array.
Return the maximum value of (nums[i]-1)*(nums[j]-1)
"""
nums = [10,2,5,2]
def maxProduct(nums):
maxim = 0
for i in range(len(nums)):
for j in range(len(nums)):
if i != j:
... | [
"catherinegitau94@gmail.com"
] | catherinegitau94@gmail.com |
8ba61262c059e952b15e3587e40bdf3fe82a14b6 | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/BCRX.py | 33bc27bd3c2d590575f2a523774f25c8f3d0e061 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://ir.biocryst.com/press-releases'
heade... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
ab2d6a1f62f6aa30f20c64b54e428b0f0302b278 | 530b04c5d4490478f2a26616fdc74e72d7b83c74 | /automataCelular.py | 54c6abcd1867eebe8a4d3625bba3acbe7ed43f00 | [] | no_license | iabrilvzqz/Programas-IA-2019-1 | ba7da83da0b8b3e6f195fc6243bd71c5b820deb7 | 2c9161e53973495a5154cb1ce16e5e0de054f4f6 | refs/heads/master | 2020-08-04T01:42:14.776454 | 2019-09-30T21:19:11 | 2019-09-30T21:19:11 | 211,957,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | """ Programa 2. Evolución de un autómara celular unidimensional
Autor: Vázquez Sánchez Ilse Abril"""
def automataCelular(n, aut):
"""Esta función recibe como primer parámetro, el número de iteraciones que se desean realizar sobre el autómata y, como
segundo parámetro, el autómata sobre el que se trabajará, el cual... | [
"iabrilvzqz@gmail.com"
] | iabrilvzqz@gmail.com |
b7e438493cf19af3ecdba1a85a98ab4eb17912fd | 8dbe574f3b20308d79ef37643570d7dec15e67d9 | /cn.zero/py.ori.fmt/c1110.bin.py | d76d22acac5506f6e347f103aed173e368a82f42 | [] | no_license | xaeingking/ZeroAoVoiceScripts | 62526d004bd02e645970930ecd4b6053809092ab | 512c1fd544954a38c92fc097f5b0c006031ee87d | refs/heads/master | 2020-05-20T17:04:55.028776 | 2019-01-29T10:40:44 | 2019-01-29T10:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247,235 | py | from ZeroScenarioHelper import *
def main():
CreateScenaFile(
"c1110.bin", # FileName
"c1110", # MapName
"c1110", # Location
0x0017, # MapIndex
"ed7100",
0x00002000, # Flags
... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
046e3ff12dfe2c60460d7c11c1a2bbb13b68dd46 | bddec548bb5cdd0cafa3e9f7c9b435fc45488764 | /tornado/utils/callapi.py | d2d0bed20fa7a2c5357505798f131a238a5854ab | [
"MIT"
] | permissive | maqg/wcrobot | 40214d556c6cee13fab1c94f2f3b47a888249906 | 7d026c1a34362c5434105c27c5bd25f08c6fabe2 | refs/heads/master | 2021-01-20T12:35:16.178019 | 2017-07-12T07:33:28 | 2017-07-12T07:33:28 | 90,384,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,499 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import http.client
import json
import time
from conf.config import VR_PORT, SERVER_PORT, OCTBS_PORT, API_TEST_KEY, CONSOLEPROXY_PORT
from models.ApiResponse import ApiResponse
from utils.commonUtil import buildRetObj
from views.api.center.api import PARAM_NOT_NULL
from core.e... | [
"maquangang@163.com"
] | maquangang@163.com |
d5f1f1474087567501ea1e7938926cdbbecb3f1f | 85741a686d9de2be2fa13542d8960dbe2d2eea62 | /python/exploration.py | 20a041753a5dfda8a26537067bde47b6969a3253 | [
"MIT"
] | permissive | rniemo/RIPTowingScam | dc370febf9be39907e90d38b222f43cbd9f0dc6d | 7b3d6e7f05957f8e962f3c01d60d158244a68411 | refs/heads/master | 2020-12-25T14:32:43.311230 | 2016-09-11T09:04:52 | 2016-09-11T09:04:52 | 67,889,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,082 | py | import pandas as pd
import os
import urllib2
import json
import uuid
import time
import random
import numpy as np
GEOCODE_API_KEY = 'AIzaSyCDLLv7B3zkbayizbk7pNp8m2eDbDDEJpA'
GEOCODE_API_KEY_2= 'AIzaSyAF-qWnBRw51IkQewmXpPg3BtfvDfeyUbU'
URL = 'https://maps.googleapis.com/maps/api/geocode/json?'
cwd = os.getcwd()
data_d... | [
"rniemo@gmail.com"
] | rniemo@gmail.com |
4202f70a275b96733d3992768379fa97c952b76d | d5763b5991b2e07c56bad13e767642bc352c0e00 | /tests/address_books/test_add_contact.py | f2c4ddff1c93e7bf151f35cd2a15568b52a604cf | [
"MIT"
] | permissive | timhodson/dotmailer | 83762cb98ed22efa602e8d6d80e2621ff06a8b6d | bdb1da7ade4b2c6060542ace970b8de0b1a89786 | refs/heads/master | 2023-03-02T19:34:21.918708 | 2021-02-12T14:45:03 | 2021-02-12T14:45:03 | 338,343,081 | 0 | 0 | MIT | 2021-02-12T14:45:03 | 2021-02-12T14:34:02 | null | UTF-8 | Python | false | false | 649 | py | import pytest
from dotmailer.address_books import AddressBook
from dotmailer.contacts import Contact
@pytest.mark.notdemo
def test_add_contact(sample_address_book):
contact = Contact(email='test_add_contact@test.com')
sample_address_book.add_contact(contact)
assert contact.id is not None
# Clean up... | [
"keith@tauri-tec.com"
] | keith@tauri-tec.com |
6064a53f5d5f285662db6ee67a997ff0d09e8be9 | 4fae555664a67e983f13d64ec1af3416fbfc6529 | /Elimination_Round_MSE.py | 737de10d0422bf41e0ea64926c094da5f8c221d2 | [] | no_license | gujrallab/4T1 | de01c7288ddd23aa111bf10f95f99466bc8667ea | b5397b24b52cd7d574fc8a0e2e5b1b9bec2d3691 | refs/heads/main | 2023-03-12T06:45:39.571232 | 2021-03-02T23:34:40 | 2021-03-02T23:34:40 | 343,939,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py |
# Importing the libraries
import numpy as np
import pandas as pd
import keras
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasRegressor
from sklearn.metrics import mean_squared_error
response_data2 = pd.read_csv('T1tumor_response.csv') # USE FOR 4T1 TUM... | [
"noreply@github.com"
] | noreply@github.com |
bb1aeeb508b3bab1a8d08517cb1c6b54272c3e36 | 1903e76a94975bcc09115824029d07d80181f82b | /blog/views.py | d5f1aebad8b108b03740c2bd4bedea518a4eb600 | [] | no_license | alekanet/my-first-blog | 90bea71fd0c4d2e40bfe2ddfe979a4615466c7c1 | 93765edaf3ca5819cdb440af3cbcd837bcfe644e | refs/heads/master | 2023-01-04T03:25:35.172248 | 2020-10-26T17:41:38 | 2020-10-26T17:41:38 | 306,715,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | from django.shortcuts import render,get_object_or_404
from django.utils import timezone
from .models import Post
from .forms import PostForm
from django.shortcuts import redirect
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_d... | [
"alekanet@gmail.com"
] | alekanet@gmail.com |
853ce949d9a4518176f9d01f437b8cb5627e0d10 | 28016cecafa14ec113ef406db7a4bcd4d3fa3acd | /ext/redis_cache.py | 78f34a5ba1e0ca5daf7e39bad481d96b8a688204 | [
"MIT"
] | permissive | wujunkui/torest | d92c9b598a1e03900a798a92bcc7f1a159b472ad | 40e730d4497a3d4b8478fec5b2c7a2927f65eec7 | refs/heads/master | 2021-07-04T15:29:26.916890 | 2017-09-28T07:43:53 | 2017-09-28T07:43:53 | 104,969,887 | 1 | 0 | null | 2017-09-27T03:55:47 | 2017-09-27T03:55:47 | null | UTF-8 | Python | false | false | 4,574 | py | #!/usr/bin/env python
# coding=utf-8
"""
装饰器版的python自动缓存系统,使用redis持久化数据库,
https://github.com/ma6174/pycache
初始化时请修改配置
"""
import hashlib
import datetime # 方便eval函数用
import redis
from functools import wraps
from tornado.gen import coroutine, Return
class Redis_Cache(object):
def __init__(self):
#pool设置... | [
"iwhitney@163.com"
] | iwhitney@163.com |
7fbaf810eac6b99b245e3c6328b6c8562940aa32 | 22075ce867d2b4cb5cc25b2bd9e73d5cc307cf9f | /project 1/venv/Scripts/easy_install-3.7-script.py | c20734f7d958f47b53f66bda3ae3c2a70c8e546f | [] | no_license | EHHS/Information-Retrival | 52a127f15432c11774773379003ed5f697506b1f | a2586efab638028636c50cb7fef6c3cb95be7ca1 | refs/heads/master | 2020-09-24T18:41:25.220872 | 2020-03-02T20:23:37 | 2020-03-02T20:23:37 | 225,818,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!"D:\Projects\Python\project 1\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"51857638+EHHS@users.noreply.github.com"
] | 51857638+EHHS@users.noreply.github.com |
08e1f1bd44ea8b99b96238c1758527c5460ba180 | 00bf98264d4b22242f1808b84e4372d8b07c4272 | /BynryConsumerModule/crmapp/admin.py | 0a43387e02867739c152e288b22fbe3a8ccc39d8 | [] | no_license | BynryGit/New_consumerBynry | e2f9053b7425e4c2a3aabfa18571466fb7a864a5 | 9a352b2b352a622ecf5b729961494d0f2e41822a | refs/heads/master | 2021-01-20T12:55:30.575671 | 2017-09-27T07:39:24 | 2017-09-27T07:39:24 | 82,669,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
import models
# Register your models here.
admin.site.register(models.ConsumerData)
| [
"swapnil.kadu@tungstenbigdata.com"
] | swapnil.kadu@tungstenbigdata.com |
f15cb86a3cc5409172f8ff629d97dae4b5e4df1d | 8fd261af0f1b392c0368e7015679b42a75f2b273 | /src/Sprint1/PBI_01/Register.py | b21cc2d4f75216321cabd306ed030f4cb5afd8ac | [] | no_license | JumperC2P/PandaDiary_PyTest | 63d5b3eb7ca4b5509cbf48a2c3050e3bce3fe07a | 2160b123adb739eb0ebd4f02c0c900e0c065143c | refs/heads/master | 2022-09-08T07:14:39.275622 | 2020-05-27T07:08:43 | 2020-05-27T07:08:43 | 259,207,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | import time
import json
class Register():
def start(self, driver, user, is_checked):
try:
register_link = driver.find_element_by_link_text('Register')
except:
driver.find_element_by_css_selector("button[type='button']").click()
register_link = driver.find_eleme... | [
"adslbbcc1949@gmail.com"
] | adslbbcc1949@gmail.com |
e12878629eef8b73d51142df224ab940af9e4dbc | 27af38f25f80cc8aabf94c6022b823d677061cf3 | /tratoli/chatapp/urls.py | a6980ab539c640c9bedf9d26e96a4c4ed046a994 | [
"MIT"
] | permissive | mushahid54/django-backend-activity | eea1b695fe07f9ada1854f84a0bedc789765ef99 | a8dd07e7d2b98415024cfcc14176c8589e47db52 | refs/heads/master | 2021-01-20T00:29:17.486614 | 2017-04-23T12:43:01 | 2017-04-23T12:43:01 | 89,139,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.conf.urls import url
from .views import DeleteAllChatMessages
urlpatterns = [
url(r'^delete-all-messages/$', DeleteAllChatMessages.as_view(), name='delete-all-messages')
]
| [
"mushahidcs0054@gmail.com"
] | mushahidcs0054@gmail.com |
d9e8b34c5ac7a9308e31af67fe437538024117a6 | a244bc61a1d66787a0dfa59ede9322dd6f4ea479 | /src/practices/test_mysql_read.py | c0b3a2d77f2035717d6ebe1fea0af32ecb3d3f23 | [] | no_license | wuyunlei95/hat | 02f88973ed4fb0a4744d04934bc47b7f70fdee34 | d9bcc4d7fc99845d6d7476993c4ef2b5f648fca7 | refs/heads/master | 2020-12-01T08:46:49.632794 | 2020-05-29T10:16:23 | 2020-05-29T10:16:23 | 230,594,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from common.base.box_driver import BoxDriver,BoxBrowser
driver = BoxDriver(BoxBrowser.Chrome)
sqlfile_path = '..\\data\\sql\\select_tt1.sql'
ip = '192.168.1.246'
user = 'tester_6'
pwd = '123456'
database = 'a'
sql_data = driver.get_sql_data(sqlfile_path,ip,user,pwd,database)
print(sql_data)
for i i... | [
"936765044@qq.com"
] | 936765044@qq.com |
238926e1e27ba0c85af932dcf324999c52bab245 | 4dd8d5657faacf65a0344601e2b9bd33736f5c22 | /usePhp-linux.py | 0868b0a1bee9b9dd27d721a7de9344227485bc41 | [
"MIT"
] | permissive | kabanfaly/debian-machine-config | 63726510f3ed69c6900da499a367d3b76d0fb66c | e95e17caacc04065524d18788281b11d8f864cda | refs/heads/master | 2023-01-28T14:22:57.220677 | 2023-01-21T00:08:26 | 2023-01-21T00:08:26 | 69,630,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python3
import sys, os
PHP_VERSIONS = ['5.6', '7.2', '7.4']
version = sys.argv[1]
print ('Version to use:', version)
for v in PHP_VERSIONS:
if v != version:
print (' ------- Disabling mod php', v)
os.system('sudo a2dismod php' + v)
print (' ------- Disabling conf php', v)
... | [
"nfalykaba@gmail.com"
] | nfalykaba@gmail.com |
87a0e4458217736a0b6f590fc8e23a0f56189a86 | 16ff1b0128506cc5cd5a5f85d5539ec486824f77 | /src/meltano/core/settings_service.py | 2f2cda19a629feb0b35c84f0636b71d90d820658 | [
"MIT"
] | permissive | code-watch/meltano | ed7a2fc1789ba1b7eacd567d881f9fc6ba0559db | 2afff73ed43669b5134dacfce61814f7f4e77a13 | refs/heads/master | 2022-07-29T13:17:44.019800 | 2020-06-30T23:44:12 | 2020-06-30T23:44:12 | 276,368,442 | 0 | 1 | MIT | 2020-07-01T12:48:23 | 2020-07-01T12:12:24 | Python | UTF-8 | Python | false | false | 11,914 | py | import os
import sqlalchemy
import logging
from abc import ABC, abstractmethod
from copy import deepcopy
from typing import Iterable, Dict, List
from enum import Enum
import re
from meltano.core.utils import (
find_named,
setting_env,
NotFound,
truthy,
flatten,
set_at_path,
pop_at_path,
)
f... | [
"douwe@selenight.nl"
] | douwe@selenight.nl |
f30de2e6d6da25ce88fcaa7fb0f6979320088bab | 14c7ad2a834e46366049759b086e1b12b0cb7a76 | /accounts/models.py | 7558fd62521cf3ad316c9dc770080fe2709c119c | [] | no_license | vandersondev/tddobeythetestinggoat | 802c835f57694252bea336b311cf12f03b3fb87a | 86c9e813e153dcffb0cf03a44aacc70da61e86b0 | refs/heads/master | 2023-02-15T06:54:17.758339 | 2020-12-22T06:34:04 | 2020-12-22T06:34:04 | 324,700,870 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | import uuid
from django.contrib import auth
from django.db import models
auth.signals.user_logged_in.disconnect(auth.models.update_last_login)
class User(models.Model):
email = models.EmailField(primary_key=True)
REQUIRED_FIELDS = []
USERNAME_FIELD = 'email'
is_anonymous = False
is_authenticat... | [
"vandersonwebdev@gmail.com"
] | vandersonwebdev@gmail.com |
86b1404d353f5413b9d1cc45078c7bef6ad2e558 | e39b2275d855a6b2dec403b2288913f661f909c2 | /back_end/GetImage/retrieve-s3-objs.py | 22d44685bf3cd151d40ca8f119ebe7952b971b30 | [] | no_license | KateVu/StudentCardProducer | 32fe783717a7d0c8aef6714b5665d9a7bfacaa4d | 413c66ae67726f4dd98069c37ff52230ed3251f3 | refs/heads/master | 2022-12-04T12:55:10.479545 | 2020-08-26T02:46:05 | 2020-08-26T02:46:05 | 279,216,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | #author: Thanh Phu Lai
#Modified by: Kate(Quyen) Vu Thi Tu
#id:
#tute: 2.30-4.30pm Tuesday
from json import JSONEncoder
import json
import urllib.parse
import boto3
# init S3 client
s3 = boto3.client('s3')
#entry point of an AWS Lambda function
def lambda_handler(event, context):
#... | [
"noreply@github.com"
] | noreply@github.com |
f52f06ea67bfccf67025fd704cc23492045a4da4 | 3e46e7da6eefb1da6f5a46ce45b3ae13a97e79aa | /arthmetic.py | 69c6ba5a95b7dd2308bfa559547e6528210655ca | [] | no_license | aalamgeer/python_basic_tutorial | 8c0adb47f6842c6865dfe93e53b1b06bf9118c11 | 28c58e2d52f92f7717916897b18b0dfce49575c5 | refs/heads/master | 2022-03-15T08:46:09.825876 | 2022-03-02T14:08:00 | 2022-03-02T14:08:00 | 158,490,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | print("sum of 3+2 ", 3+2)
print("product of 3*3", 3*3)
print("divide of 10/3 ",10/3)
print("modules of 10%3 ",10%3)
print("square of 10**3 ",10**3)
| [
"ranaaalamgeer92@gmail.com"
] | ranaaalamgeer92@gmail.com |
4f54d925f1dd8a37f173fcd6da68ed5f39fd2e46 | 909762751929e2fed02311953e15f8a6316efbd0 | /tests/test_oskar/plot_antpos.py | 6987aa1365419f0706b0b734bae1ec105e2b156a | [] | no_license | telegraphic/interfits | a166258459deaeb831d49787952a3e08d2aaaf40 | 0ee46e94b84d405c8381772be05b42e0b9c41158 | refs/heads/master | 2021-01-19T01:57:32.397157 | 2016-07-02T01:38:06 | 2016-07-02T01:38:06 | 10,858,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import numpy as np
import matplotlib
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from test_main import *
def plot3d(x,y,z, xl='X', yl='Y', zl='Z', c='#cc0000'):
ax.scatter(x, y, z, c=c)
ax.set_xlabel(xl)
ax.set_ylabel(yl)
ax.set_zlabel(zl)
l = LedaFits('vis_00.uvfits')
xyz... | [
"dan@thetelegraphic.com"
] | dan@thetelegraphic.com |
595f1092a393032fbfe3530084a64011e38ba1be | bbd69601912a3361d788efd03a47f9d4e3bac09e | /demo/agw/HyperLinkCtrl.py | 61df943f9642ce956aea9500436b0dd59655b898 | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 4,894 | py | #!/usr/bin/env python
import wx
import os
import sys
try:
dirName = os.path.dirname(os.path.abspath(__file__))
except:
dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
sys.path.append(os.path.split(dirName)[0])
try:
from agw import hyperlink as hl
except ImportError: # if it's not there locally,... | [
"robin@alldunn.com"
] | robin@alldunn.com |
31090d0e6107137630e734641528504eec159eb5 | 34f16b8837c7283be7443f6725a02725efb6677a | /loading.py | 49b056610896229c182817a3db8ea4181ae687c4 | [] | no_license | msf1013/shallow-autoencoders-compression | 55603e37022274dff30d2ad326b3cab3e9ca957b | 5cc833316c78dc3588700361632ea889b6043193 | refs/heads/master | 2021-06-21T03:15:37.040738 | 2020-12-29T04:06:44 | 2020-12-29T04:06:44 | 162,168,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from PIL import Image
import numpy as np
import math
def get_image_blocks_lstm(file_name, h, w):
im = Image.open(file_name)
height, width = im.size
pixels = im.load()
no_of_blocks = math.ceil((height / h) * (width / w))
blocks = np.empty([no_of_blocks, 1, h, w, 3])
... | [
"msf1013@gmail.com"
] | msf1013@gmail.com |
1f810f03505af7b647e35222d04f3759b12a7285 | 1159367c70a96a3bb3916b10dd0696759622e44b | /tests/test_pyweather.py | ac7070f39323b5ef2c9fd524dd7c63c9d43104b5 | [
"BSD-3-Clause"
] | permissive | jon-whit/pyweather | 4504c08f66d4d5a8aacab608d3a43b230b250dee | 87c442586b1b2342d02a9450d287b86a5da8e6da | refs/heads/master | 2020-04-16T09:12:10.938806 | 2014-07-17T04:37:28 | 2014-07-17T04:37:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_pyweather
----------------------------------
Tests for `pyweather` module.
"""
import unittest
from pyweather import pyweather
class TestPyweather(unittest.TestCase):
def setUp(self):
pass
def test_openweather_conditions1(self):
"""
... | [
"jon.b.whitaker@gmail.com"
] | jon.b.whitaker@gmail.com |
e7880e161d34d1259ef590b01aac6ce92b5c121b | ff0b9fad40af0f7a792033884db728756ea83756 | /forge/apps/OptiML/src/NeuralNetwork/examples/mnist/visualize.py | f98383826111dc0c413d51ed09d67edf53958b49 | [] | no_license | das-projects/Grothendieck | 721d7ca60c4838385c43bdc17894cb154507c302 | 4effc374f8050655db4820db3a7deaf63effb2a4 | refs/heads/master | 2020-04-02T06:16:56.494997 | 2016-08-12T10:05:55 | 2016-08-12T10:05:55 | 65,486,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import numpy
import scipy.misc
import sys
# Get the image number to display
if len(sys.argv) < 2:
print 'Specify the training image number to show as an input argument'
print 'Requires that train_data.txt be generated.'
print 'Example: >>> python visualize.py 100'
sys.exit(0)
img_num = int(sys.argv[1])
# Read th... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
c72c5782ad4767b971b5a42cf1d847d948352c51 | 3ad680a113bab6a048c755a55af00a0688905694 | /chatting/views.py | 04131c744c8ebc4a9041ecaeea631b3b8fceb65e | [] | no_license | domingo-valdes/E0-IIC2173 | 550a0a94eaa3785dcec15d0bf1bdff63e32b194a | 3ea00daafb2ddce700234bd8115b3b7986b26356 | refs/heads/master | 2020-07-12T04:51:12.575110 | 2019-09-05T11:41:16 | 2019-09-05T11:41:16 | 204,723,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | import requests
from django.template import loader
from django.http import HttpResponse
from django.core.paginator import Paginator
from django.shortcuts import render
from .models import Message
from .forms import MessageForm
def index(request):
api_address = 'https://api.openweathermap.org/data/2.5/weather?q=s... | [
"dvaldes3@uc.cl"
] | dvaldes3@uc.cl |
541ce7b83c1de1c19ef3938a027e3a6cc8923221 | bb757edee1dc5f8cd56ea6e3c4468432bf27acfc | /product/migrations/0001_initial.py | 658d080707946f686e885bcd9ba338a1c6de9320 | [] | no_license | emilian-01/order_backend | 0aa67cc9f2cfa95d5b89bfa67ef030ae86fba6c9 | 6c21079e55790ddfd9ef1d6c2d71aadd79e86ced | refs/heads/master | 2023-08-22T13:44:29.307710 | 2021-10-26T23:27:10 | 2021-10-26T23:27:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | # Generated by Django 3.1.6 on 2021-02-16 20:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='itw_product_category',
fields=[
('id', model... | [
"ecikalleshi17@epoka.edu.al"
] | ecikalleshi17@epoka.edu.al |
83d552f31c458bdd43f52ecb538f1696817796b5 | c4febfaff44eab7ed21abcf6ea06ef29eb8d6ef9 | /mysite/settings.py | 6cf9d4395fa6c08e646547a28b54ec85c5544a01 | [] | no_license | vadisychev/django_intro | 422ea84e74c983f1b848860359b64f8c931da607 | ebf57cdc8ad7a5133c813545da3ed95398993833 | refs/heads/main | 2023-03-28T17:27:56.870568 | 2021-04-18T11:02:39 | 2021-04-18T11:02:39 | 351,784,739 | 0 | 0 | null | 2021-03-29T14:31:03 | 2021-03-26T13:05:05 | Python | UTF-8 | Python | false | false | 3,152 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"vadisychev@gmail.com"
] | vadisychev@gmail.com |
f18d7c77098f0b659ac2f67951e9fdc9b87ae655 | 1d0a79fc8710faa6718137031debcd2409ff7c75 | /venv/lib/python3.7/site-packages/django/conf/locale/cy/formats.py | 031a40fff653193840c46333c7265a7d80a046c7 | [
"Apache-2.0"
] | permissive | i13-msrg/cidds | fcdf6ba32e8bf21ab93bccb4430c0d17b0cf81d9 | bc212404b1d342ddac4bee220afdb440594f7faa | refs/heads/master | 2022-12-05T20:54:39.345728 | 2021-03-18T14:41:50 | 2021-03-18T14:41:50 | 152,090,233 | 10 | 1 | Apache-2.0 | 2022-11-22T03:07:21 | 2018-10-08T14:06:03 | Python | UTF-8 | Python | false | false | 1,755 | py | # This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y' # '25 Hydref 2006'
TIME_FORMAT = 'P' # '2:30 y.b.'
DA... | [
"riswan.lathif@gmail.com"
] | riswan.lathif@gmail.com |
0a0481107bc945c99cf9933d981d631dccb91e5d | 3fc01457951a956d62f5e8cc0a8067f6796ee200 | /misago/threads/api/postingendpoint/subscribe.py | c158eccbf462feee7a1f7aa449d37b93a4b7ce7f | [] | no_license | kinsney/education | 8bfa00d699a7e84701a8d49af06db22c384e0e8d | 48f832f17c2df7b64647b3db288abccf65868fe6 | refs/heads/master | 2021-05-04T01:15:03.078130 | 2016-12-04T03:18:20 | 2016-12-04T03:18:20 | 71,164,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from misago.users.models import (
AUTO_SUBSCRIBE_NONE, AUTO_SUBSCRIBE_NOTIFY, AUTO_SUBSCRIBE_NOTIFY_AND_EMAIL)
from ...models import Subscription
from . import PostingEndpoint, PostingMiddleware
class SubscribeMiddleware(PostingMiddleware):
def use_this_middleware(self):
return self.mode != PostingEn... | [
"kinsney@bupt.edu.cn"
] | kinsney@bupt.edu.cn |
f2c1d6de4d958c2c634895a0bfd7534abe270f0e | 39641f79cf31376575c26a4da556b9970853e2b5 | /submission.py | ec231c9cb2c7f51c2aa303c1d54e0adcbe56ba5e | [] | no_license | kominoshja/-Midterm-project---CSF | cf9c2996020f86ea952988d0d80026897130e1c5 | ef960caef22639c4ec8bedc4dd696f3772d344bc | refs/heads/master | 2022-04-27T02:45:20.871311 | 2020-04-26T16:35:27 | 2020-04-26T16:35:27 | 260,168,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | #Note: the heap prettyprint is not written by me, but I copied it to better show the heaps
# STATEMENTS
list=[5, 2, 9, 3, 33457, 1]
import math #prettyprint heaps (https://www.w3resource.com/python-exercises/heap-queue-algorithm/python-heapq-exercise-19.php)
from io import StringIO #prettyprint heaps (https://www.w3re... | [
"boris@budini.xyz"
] | boris@budini.xyz |
8539c06b8016af22d2b99d3f63f7b0ac50d1a90f | 21a9ed29a474b3a87fa2a012cd9f7fd8eabc6f4f | /meiduo_mall/meiduo_mall/apps/meiduo_admin/utils.py | d9f1e077025310aee2142bb07553c138522c8d37 | [
"MIT"
] | permissive | Noah-Smith-wgp/meiduo_project | fd979237505a212e9aa7d5cc12549cea13def1ae | f1350a50dabd33d90c2c5b3509d590603aeda6e4 | refs/heads/master | 2021-04-16T13:18:28.181307 | 2020-01-02T13:29:29 | 2020-01-02T13:29:29 | 249,358,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from collections import OrderedDict
from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response
class PageNum(PageNumberPagination):
page_size = 5
page_size_query_param = 'pagesize'
max_page_size = 20
def get_paginated_response(self, data):
return ... | [
"18211672297@163.com"
] | 18211672297@163.com |
cb16dd5e0c890cd7bb6f4231f82da4eef73c4ba1 | 38346ccf93e0c0d49a378b2532fe215669018829 | /nipype/interfaces/slicer/legacy/diffusion/__init__.py | c1a762993ec731368cf0fa2dc0ddb54d7b8679b9 | [
"BSD-3-Clause"
] | permissive | swederik/nipype | de509c2605bc83448240c7c3c68ee8d220d48ef3 | 872720a6fc00b00e029fb67742deedee524b2a9f | refs/heads/master | 2020-12-25T10:08:44.268742 | 2014-05-22T14:05:58 | 2014-05-22T14:05:58 | 1,421,176 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from denoising import DWIUnbiasedNonLocalMeansFilter
| [
"chris.gorgolewski@gmail.com"
] | chris.gorgolewski@gmail.com |
c58ee48a4a7e734e1a35b550face23ecd007c3d4 | 79dabb0010cd3502dbf6b565c157910fb3e52771 | /Lab 5/multistar.py | 54ed3499b8035d6dedd8ca3e9492f4168265257d | [] | no_license | otisscott/1114-Stuff | 5cf06fd574706ca6b6656a43e4ae69062c015a13 | 913eb14b020b7a708c441f4e28c61f969225a3f9 | refs/heads/master | 2020-03-30T03:14:47.499473 | 2018-12-14T00:50:30 | 2018-12-14T00:50:30 | 150,677,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # Otis Scott
# CS - UY 1114
# 4 Oct 2018
# Homework 4
import turtle
import time
times = int(input("How many stars: "))
times = times * 5
length = 20
angle = 144
for each in range(0, times):
turtle.forward(length)
turtle.right(angle)
length += 10
time.sleep(5)
| [
"otismscott@gmail.com"
] | otismscott@gmail.com |
98a92ac65566d9cb43f576e930f3c488aa20922a | 0d80c64314b8a099a04ada68b73d7e62970ec17b | /nistrng/sp800_22r1a/test_random_excursion_variant.py | 284d2222a63977753a9db9bc8cb9f52cff10b705 | [
"BSD-3-Clause"
] | permissive | LAllen1996/NistRng | 63cdfdeed4cfd82628720e03808d1a58212b2ecc | 3f485fa5d9e30786f474cc57b350389e756fc2cb | refs/heads/master | 2020-09-14T17:33:58.156044 | 2019-11-21T15:12:26 | 2019-11-21T15:12:26 | 223,201,642 | 0 | 0 | BSD-3-Clause | 2019-11-21T15:11:14 | 2019-11-21T15:11:13 | null | UTF-8 | Python | false | false | 2,918 | py | #
# Copyright (C) 2019 Luca Pasqualini
# University of Siena - Artificial Intelligence Laboratory - SAILab
#
# Inspired by the work of David Johnston (C) 2017: https://github.com/dj-on-github/sp800_22_tests
#
# NistRng is licensed under a BSD 3-Clause.
#
# You should have received a copy of the license along with this
... | [
"insanemst@gmail.com"
] | insanemst@gmail.com |
3068a726127a93c4aa99d3ed3646918aec29708e | 4389d3bfa4ded480caf5083f410bdd2253fae767 | /20_Project/01_simple_linear_model/test2.py | 74871ccda42383f1a4616b8ad17191981aa2a1ef | [] | no_license | Freshield/LEARN_TENSORFLOW | 4fb7fec0bc7929697549ee52e453b137a24c3383 | 87be0362d24b748c841e5c9e185d2061ffae9272 | refs/heads/master | 2021-01-17T08:06:14.186041 | 2018-06-03T12:42:46 | 2018-06-03T12:42:46 | 83,846,167 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import numpy as np
import tensorflow as tf
import pandas as pd
sess = tf.InteractiveSession()
a = np.arange(10)
print a
np.random.shuffle(a)
print a
ta = tf.range(0, 10)
tb = tf.random_shuffle(ta)
print ta.eval()
print tb.eval()
dataset = pd.read_csv('ciena_test.csv', header=None)
print dataset.shape
| [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
c3d7d7cea7577bab5d367f509f21447f31cee98f | 019fcd22187341737ce748fd782da7505e4ec205 | /6_TECHNIQUES/grad_map.py | 85d8220dca5ee6e104e5e264c2bc744f15d4e176 | [] | no_license | lubiksss/DLFS | 496365521b67bdf783a5cc5ed45c6b4ccd6c5599 | 74d1fdc216156dc631d514ebde1825cb24c7c3bf | refs/heads/master | 2023-07-11T06:20:27.725988 | 2021-08-14T08:49:18 | 2021-08-14T08:49:18 | 382,224,554 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import numpy as np
import matplotlib.pyplot as plt
def function(x, y):
# return 1/20*(x**2) + (y**2)
return (x**2) + (y**2)
def func_grad(x, y):
# return (1/10*x) + 2*y
return 2*x + 2*y
def grad_map(function, func_grad, rate):
x = np.arange(0, 11, 0.1)
arrowprops = dict(color='black',
... | [
"lubiksss@gmail.com"
] | lubiksss@gmail.com |
3062e7712fef16ced02c9314550731a041533b5a | d4797d1d56402f46ac767b41d0bf19b4e99af6cc | /cms/accounts/migrations/0006_remove_order_tags.py | 922c9ce5e82bfac263e524d00b727080e0f3a888 | [] | no_license | indogusmas/django-cms | 9970d60f6afd85dafac2268a4c6b48967cc16080 | 4134a9e1746f1cebe298f811ccc3964bddb5f102 | refs/heads/master | 2022-11-27T02:36:50.713353 | 2020-07-25T05:29:57 | 2020-07-25T05:29:57 | 274,279,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.0.7 on 2020-06-27 07:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20200627_0730'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='tags',
),
... | [
"indogusmasarungsamudra@gmail.com"
] | indogusmasarungsamudra@gmail.com |
7e4455413af0ef7d478a7bbf7ee19bdf4e9628a5 | 36b70e53d7fd8988d58dc99736c1dcd6014342a3 | /client/node_modules/chokidar/node_modules/fsevents/build/config.gypi | dda0209044c13755ae294e2c79feae4e8621bd5a | [
"MIT"
] | permissive | ddold/multi-docker | 76561b30761ef40dca095a40e1d4eea61f5ad178 | 60094a59d3bcc1770be122993bba36f2a1f5fb43 | refs/heads/master | 2023-05-30T15:34:35.890308 | 2021-06-08T08:59:12 | 2021-06-08T08:59:12 | 374,941,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"ddold@cloudbees.com"
] | ddold@cloudbees.com |
73d4dc0beb4fc18a5d3b880e0e7bce355bb0ddba | e38585797e1247123825a5af164cb53830bf8fca | /__init__.py | d998e15f2eff7a83fac8a965a919722b26681960 | [] | no_license | CureThomas/test-thomas-skill | a555f81b52704d586a202ea4a97374b369fdf1fd | 9694b283ef2529481ecd4e6898a57c8673599cb8 | refs/heads/master | 2021-03-11T12:13:35.683148 | 2020-03-11T09:25:26 | 2020-03-11T09:25:26 | 246,527,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from mycroft import MycroftSkill, intent_file_handler
class TestThomas(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
@intent_file_handler('thomas.test.intent')
def handle_thomas_test(self, message):
self.speak_dialog('thomas.test')
def create_skill():
return TestTho... | [
"thomas.cure@cpe.fr"
] | thomas.cure@cpe.fr |
46bdc3934000afd2544f65ef6d25250337a564e2 | 133f480f4d3071b78fb3e2fde7b36bedcbf567ff | /attic/VodafoneMobileConnectCard/build/opt/vmc/lib/python2.5/site-packages/Vodafone_Mobile_Connect_Card_driver_for_Linux-1.99.19-py2.5.egg/vmc/common/hardware/_dbus.py | f87915c2cc8160735f4682270695013a046f39f4 | [] | no_license | Croosi/vodafone-mobile-connect | 5a8fe61763c37ad64e3925400bf52bd8fe6e92da | bf7a8d53b9cade9e76a6c1543812596e166900c5 | refs/heads/master | 2021-05-28T01:17:34.588541 | 2010-04-20T20:39:16 | 2010-07-18T16:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,117 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Vodafone España, S.A.
# Author: Pablo Martí
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | [
"rgalonso@gmv.es"
] | rgalonso@gmv.es |
42e0505d50651f07009cd94e32945d6b14075fcd | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_5397.py | 86476955d445acfe52b6e2d808c0b39f9700d356 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import sys
'''
for n in range(int(sys.stdin.readline().rstrip())):
word=[]
cursor = 0
for i in sys.stdin.readline().rstrip():
if i == "<":
if cursor != 0:
cursor-=1
elif i == ">":
if cursor != len(word):
cursor+=1
elif i =="-" a... | [
"k852012@naver.com"
] | k852012@naver.com |
994444b4e2a2097ce7f986473baa22df584eca68 | b0e3083e9b83daf264fc7ed284068c01482369ad | /admin/create_user.py | e08a5c2ec653d279cf0f920dda11e2e6f402b499 | [] | no_license | PrometheanInfoSec/honeybadger-red | 6948e73576d1ffea4ecb69dcdb837b4beb3445b7 | f82699dbc2a8bf2b770cfc8b131f9deae62f2caf | refs/heads/master | 2021-01-20T02:53:30.554319 | 2017-09-13T14:33:07 | 2017-09-13T14:33:07 | 101,341,672 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | #!/usr/bin/env python
import sys
import random
import string
import hashlib
import sqlite3
try:
username = raw_input('Username: ')
password = raw_input('Password: ')
print ' User Role Options:'
print ' 0 - Administrator'
print ' 1 - User'
role = int(raw_input('Role: '))
if not role in [... | [
"tjt1980@gmail.com"
] | tjt1980@gmail.com |
e3e6e8e2aa20f0108ffc1f34e182661447dcee87 | 03ed0e9060d5b2c5e280d13efcb47d27c48db3ad | /tictactoe.py | 84dc94ad64b9527d1f75102bb9a3da305a72e32b | [] | no_license | JeremiahTee/python-games-sweigart | 8c81b9731e835eb41db9f9504ff62616cf8fcb48 | 78045c9593e5fc5a24e5647c360f145b93c30af0 | refs/heads/master | 2023-06-26T06:32:37.910115 | 2017-11-16T00:01:58 | 2017-11-16T00:01:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,076 | py | #Tic-Tac-Toe
import random
def drawBoard(board):
#This function prints out the board that it was passed
#'board' is a list of 10 strings representing the board (ignore index 0)
print(board[7] + '|' + board[8] + '|' + board[9])
print('-+-+-')
print(board[4] + '|' + board[5] + '|' + board[6])
p... | [
"jeremiahteee@gmail.com"
] | jeremiahteee@gmail.com |
c86b9cc1bf0b77f3f251d63590424bdf80c72366 | a0d57c04e14097e56a6db619e3987d28bde1bdb5 | /1.pretrain/train_conv_MNIST.py | 764a54fc4dc8f529af2ed48473581518e3b26999 | [] | no_license | tk1star2/tk_hashed_tf | dc576a10ac3ff03246568dbb5aa18c2673dbe2ec | a50b785331a043d4fe7d4a53a1fe172e8bbd2aae | refs/heads/master | 2020-08-01T01:33:54.153269 | 2019-12-13T08:19:26 | 2019-12-13T08:19:26 | 210,813,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,534 | py | import tensorflow as tf
import os
import sys
import gzip
import numpy
MNIST_PATH = '../0.data/MNIST'
SAVE_PATH='./MNIST'
VALIDATION_SIZE = 5000
class DataSet(object):
def __init__(self, images, labels, fake_data=False, one_hot=False,
dtype=tf.float32):
"""Construct a DataSet.
one_hot arg is us... | [
"tk1star2@nate.com"
] | tk1star2@nate.com |
400886929db0a77432f8a35f412a27327f231b80 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/__init__.py | dad149e01c0fae0a0684161a8a1002e405429ccc | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,872 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Keras Applications are canned architectures with pre-trained weights.
"""
from __future__ import print_function as _print_function
import sys as _sys
from . import densenet
from . impo... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
55d75503b460933830ab1eecc6fcaa4f9bfda844 | 567a21c129968171638cdcd339bcd3ddc8967727 | /setup.py | 8e0ea4b6ef804b429f6f31a7c5b2c9910dc38c71 | [
"BSD-3-Clause"
] | permissive | nancyleitt/beyond-bleu | c905c36315ed1127b197f6055d697767aaee7d6e | c1110298ae097efb4032054118813b0867dda68a | refs/heads/master | 2022-03-25T05:53:40.251651 | 2019-12-20T18:53:24 | 2019-12-20T18:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | #!/usr/bin/env python3
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
#
from setu... | [
"jwieting@ttic.edu"
] | jwieting@ttic.edu |
d700f2cdc225bddd92bd3b5fbf0f653b374c019f | 750b8345454642d601fdfc2457be47099fa1f8f4 | /app/apis/__init__.py | 44c1a8f2409cadfdf6977b46818a458d3b45413c | [] | no_license | hercules261188/flask-pytest-bdd | f7202e4fd7a137469a9689d5e3d15edca0b5535c | c6d8efd46c5c1db2cc981d6bc016c849da6f093e | refs/heads/master | 2022-06-24T01:32:52.032013 | 2020-05-10T14:02:35 | 2020-05-10T14:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import pkgutil
from importlib import import_module
from pathlib import Path
from flask import Flask, Blueprint
from flask_restx import Api
def init(app: Flask):
root_pkg = Path(__file__).parent
blueprint = _scan_namespace(root_pkg)
app.register_blueprint(blueprint)
def _scan_namespace(root_pkg):
re... | [
"jerry_yt_chen@trendmicro.com"
] | jerry_yt_chen@trendmicro.com |
9d09fcf610c797bccf89f3f24ef9afffc8933042 | 67d8173a716da10a7350213d98938aae9f2115ce | /LeetCode/LC_PY_ANSWERS/sort-an-array.py | 0cecad74707c151f8b38b2b110494d2e85eee7de | [
"MIT"
] | permissive | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 2,412 | py | # Time: O(nlogn)
# Space: O(n)
# merge sort solution
class Solution(object):
def sortArray(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
def mergeSort(start, end, nums):
if end - start <= 1:
return
mid = start + (end -... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
b5ede2fa12e0ce707c98b96ec4c66e9d34491a7f | fe86b4ac836857dcbc4cadf59254562a08a0e2f0 | /Solon_Burleson/DLists.py | 82d45b654a57183070529963e1e2e29b429a1a22 | [] | no_license | CodingDojoDallas/python_sep_2018 | c66128e814aa0b73c232b126acf279104145a64d | 42dddc3fcf2a50cf79a00d3b2adfa3562dfcede3 | refs/heads/master | 2022-12-03T18:53:31.309480 | 2018-09-30T06:05:00 | 2018-09-30T06:05:00 | 147,546,818 | 0 | 8 | null | 2022-11-22T23:16:11 | 2018-09-05T16:19:05 | Python | UTF-8 | Python | false | false | 1,821 | py | class Node:
def __init__(self, value):
self.value = value
self.next = None
self.prev = None
class Dlist:
def __init__(self,value):
node = Node(value)
self.head = node
def addNode(self, value):
node = Node(value)
runner = self.head
while runne... | [
"solon.burleson@gmail.com"
] | solon.burleson@gmail.com |
a60f4f254c25aa053aa3848cf0c0bbbdab3a7719 | 6b697767d33c4fac71942958a52c7595dcc0dca9 | /python/euler036.py | bd1121c7b444cad36d966eb1c59fcc10be1459f5 | [] | no_license | hasanain/euler | 7443a9bced1e8a3a9203d195433601eb533d412e | 5757be0931bbf7e8f1d87ad82b3a7bca7d191c20 | refs/heads/master | 2022-05-11T23:05:55.505431 | 2022-04-02T21:20:34 | 2022-04-02T21:20:34 | 17,465,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | def ispalindrom(s):
for i in range(len(s)):
if s[i] != s[len(s) -1 - i]:
return False
return True
print(sum([x for x in range(1000000) if ispalindrom(str(x)) and ispalindrom(bin(x)[2:])]))
| [
"hasanain.jm@gmail.com"
] | hasanain.jm@gmail.com |
9d3370935baf1e4f3fe73208230cf5b4b65cf966 | a6aae5de411a5f564163422456ae4ae329638ea5 | /src/tentacle/settings.py | 79eba4747c3948466aeccf4a83218183361aed5c | [
"Apache-2.0"
] | permissive | mfriesen/tentacle | e22247da0b4f1cc86699a4c626a7760b3a1e0fbf | 32d06f5218c0f365cf9f5dd355c26763d39883ec | refs/heads/master | 2019-01-02T03:25:45.663556 | 2014-03-29T21:39:50 | 2014-03-29T21:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | DEFAULT_BONJOUR_REGTYPE = "_tentacle._tcp"
DEFAULT_BONJOUR_NAME = "Tentacle"
DEFAULT_BONJOUR_PORT = 5355 | [
"mfriesen@gmail.com"
] | mfriesen@gmail.com |
d6ba96b767936c08a97a59d42c2a4ab7dc157de2 | 64db047f6c45abaa423d5cb43267819ef1ea8a2b | /pypython/ast.py | bdce1b383888235c3fbce7251e176b5941ad9b78 | [
"BSD-3-Clause"
] | permissive | pdmccormick/pyconca2019-fun-with-compilers | 8f26b59acb206a9d99bb19343e7ac9cf8806266f | 2f1025cc0b7ec182fcedab678a121a7ab93fb448 | refs/heads/master | 2020-09-11T22:37:47.130846 | 2019-11-17T17:03:50 | 2019-11-17T17:03:50 | 222,213,368 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,399 | py | '''
Be aware! Lot's of things are broken! Consider this to be demo-ware.
'''
import typing
from enum import auto, Enum
from typing import Any, List, Optional
from dataclasses import field, dataclass
@dataclass
class AST:
'''
lineno: Optional[int]
col_offset: Optional[int]
end_lineno: Optional[int]
... | [
"peter@pdmccormick.com"
] | peter@pdmccormick.com |
bd50b3b453a9ed87c34a4e15867f3ed6f4edf393 | 62646dbd14579a39c09cd3b39ad59c2192684f10 | /tools/plexy/.venv/lib/python2.7/site-packages/bioblend/galaxy/objects/wrappers.py | 777db530570d2a5c9bf6c940969fe5e03f9f8d79 | [] | no_license | StephanieKehr/galaxytools | c5ddf421c197b28ce993580cdc031aa04a4fb282 | 5003218a9254341ce949a18aaef4b23d6ab04a3f | refs/heads/master | 2020-04-19T04:22:11.399141 | 2019-01-28T17:22:02 | 2019-01-28T17:22:02 | 167,960,944 | 0 | 0 | null | 2019-01-28T12:45:36 | 2019-01-28T12:45:36 | null | UTF-8 | Python | false | false | 50,669 | py | # pylint: disable=W0622,E1101
"""
A basic object-oriented interface for Galaxy entities.
"""
import abc
import collections
import json
import six
import bioblend
__all__ = (
'Wrapper',
'Step',
'Workflow',
'ContentInfo',
'LibraryContentInfo',
'HistoryContentInfo',
'DatasetContainer',
... | [
"steffi@bioinf.uni-leipzig.de"
] | steffi@bioinf.uni-leipzig.de |
6cb34af1050be03124c181ed63b6b3c698525195 | a52022e541fe282136271d666db921c76de0f149 | /test_code/test.py | 89875d7c0bd38d77596a78e22e78dfc2976874bb | [] | no_license | s1210160/cansat | 56c26feeeafade06df8c050a862ffe0a2c5428a4 | 9ee27b751ecb8cb306e08a301ff09a2477068b63 | refs/heads/master | 2021-01-21T14:25:17.637756 | 2017-08-10T07:34:48 | 2017-08-10T07:34:48 | 95,279,795 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import time
import picamera
import cv2
cv2.namedWindow('test')
def camera_capture(camera):
camera.capture('test.jpg')
frame = cv2.imread('./test.jpg', 1)
return frame
with picamera.PiCamera() as camera:
camera.resolution = (320, 240)
time.sleep(2)
start = time.clock()
whil... | [
"s120160@gmail.com"
] | s120160@gmail.com |
ddb0c3cc3b8c673ac7ed8f08e70558267f37c936 | 8d4b737885446ccd40628d6a546a141d5e84e5b4 | /Topics/1_migrating_your_DNN_to_candle/original/t29res.py | b788006937bdd0dbffb2b10fdfceff9ce139e438 | [
"MIT"
] | permissive | brettin/candle_tutorials | 3afabd6ba12a9ee2353bd5166d0d0278d79e28ef | 18315a41cf51cbcb267fb78a2e02ffe82d2fc42b | refs/heads/master | 2021-04-28T03:12:17.942290 | 2018-10-19T16:34:16 | 2018-10-19T16:34:16 | 122,134,363 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py | ../t29res.py | [
"rajeeja@gmail.com"
] | rajeeja@gmail.com |
d4954db4ce2935ea890cec6d4a842bf1751f3c6d | 430b17a271c800f418d172f4fd5ee44260fc63fc | /football/ranktweets.py | 58dce7c60051a79b35276733744b848f5c29e153 | [] | no_license | zshwuhan/Constructing_Unified_Graph_Representation_from_Multiple_Views- | 433345dfaf714617548fa533444c884b6633a3d3 | 7f734e30ed7071ac14cebeefcad9fbe65297671b | refs/heads/master | 2021-01-19T13:56:17.335359 | 2016-12-17T07:12:08 | 2016-12-17T07:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281,243 | py | ranktweets=[[248, 150, 156, 3, 230, 54, 38, 8, 108, 88, 115, 12, 60, 122, 208, 131, 63, 160, 228, 149, 72, 246, 153, 87, 26, 178, 36, 24, 93, 148, 75, 134, 177, 190, 231, 105, 43, 4, 135, 40, 103, 169, 184, 33, 242, 112, 11, 81, 101, 23, 174, 128, 165, 181, 168, 202, 44, 129, 18, 241, 104, 110, 204, 92, 99, 27, 221, 18... | [
"isha.agarwalcd.cse14@itbhu.ac.in"
] | isha.agarwalcd.cse14@itbhu.ac.in |
3c0b7f3b74951c2329413f45ba9cfd5a890b2b3a | b51aa9f8933a59d999d6951e5d11558450bdd67f | /send_mail.py | b2b9c1737e362c3ef3468eb1e33de904bfb60fe4 | [] | no_license | huangsifang/python | 9a7cba7a63d4c85d9617bb9c5a75c1c0bbdcba32 | 234fcb5f643a7e7fb55f1386caf054287e9a4219 | refs/heads/master | 2021-01-01T06:13:58.621103 | 2017-08-22T14:35:38 | 2017-08-22T14:35:38 | 97,386,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
import smtplib
def _format_addr(s):
name, addr = parseaddr(s)
return formataddr((Header(name, 'utf-8').encode(), addr))
# 输入Email地址和口令:
from_addr = input('From: ')
pas... | [
"17816869682@163.com"
] | 17816869682@163.com |
e58e9401d8429723764c02edf926adfbbd8758ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_drafts.py | 6da1b4da4e3df04fbf81a9bba113d2c83e568862 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.verbs._draft import _DRAFT
#calss header
class _DRAFTS(_DRAFT, ):
def __init__(self,):
_DRAFT.__init__(self)
self.name = "DRAFTS"
self.specie = 'verbs'
self.basic = "draft"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
94d743cb96de6f0011a8600e732c40ffe5b9a2ed | 6fa2fad9a3b7d2b5027f19d3092879eafdfb56c8 | /LambdaScrapers/providers/LambdaScrapers/en/hosters/123moviesfree.py | cca2f49b5de7cbca538c6cf8d16a188853c3a642 | [] | no_license | dtc2344/ScraperPackages | dfccda0f3de1b4ff2cabc16998c95aa1523de3bc | 779086e35a0e7d320492f71dba1583ae438c8ee5 | refs/heads/master | 2021-10-10T14:13:10.261340 | 2019-01-11T18:23:50 | 2019-01-11T18:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | # -*- coding: UTF-8 -*-
# -Cleaned and Checked on 12-03-2018 by JewBMX in Scrubs.
import re
from providerModules.LambdaScrapers import source_utils,cleantitle,debrid,cfscrape
class source:
def __init__(self):
self.priority = 1
self.language = ['en']
self.domains = ['123moviesfree.ws']
... | [
"35949207+reddit-reaper@users.noreply.github.com"
] | 35949207+reddit-reaper@users.noreply.github.com |
40a2b9ab3c7c057cd94e07e7ac8d9674d2d53161 | b3c1a3c34fc84cc138a97c7b9d45ed4d5b89e710 | /mysite/mysite/urls.py | b5d35b6870ed050f3d4590aefc84ea7c1311764b | [] | no_license | Aletuominen/Djangoharkka | dd0131cfe984e8fcab1eab56b834940e381cf167 | 930c5f673409b2aea65cc71cd452fb0a66a33970 | refs/heads/master | 2020-05-18T13:01:36.872750 | 2020-04-28T18:08:50 | 2020-04-28T18:08:50 | 184,427,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"34810204+Aletuominen@users.noreply.github.com"
] | 34810204+Aletuominen@users.noreply.github.com |
0d89a89307ef1891e27401a4c39aecfdcbede36d | 99ae4404ddc1ff8e96f0c588b257e1859d6fcb3b | /example_5_1.py | 8bc363eeb6d7b06b04163d281421f5134b5ea132 | [] | no_license | JDTyvand/MEK4470 | 6cd82bcedac4a0aaee0a18689414556ea6bb07cb | d51e1ef5a0af46035404899c3666650d35eb7469 | refs/heads/master | 2020-04-27T09:47:42.821863 | 2015-08-30T09:22:43 | 2015-08-30T09:22:43 | 41,603,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from numpy import *
def solver(u, cells, rho, Gamma, L, phi_A, phi_B):
F = rho*u
dx = L/cells
D = Gamma/dx
aw = zeros(cells)
ae = zeros(cells)
Sp = zeros(cells)
Su = zeros(cells)
ap = zeros(cells)
aw[1:] = D + F/2
ae[0:-1] = D - F/2
Sp[0] = -(2*D + F)
Sp[-1] = -(2*D - F)
Su[0] = (2*D + F)*phi_A
Su[-1] = ... | [
"Tyvand@Tyvand-og-Ratvik.local"
] | Tyvand@Tyvand-og-Ratvik.local |
cad3adcc0cee5d576cedaa1c4dc7c7037e63b841 | f01bc6acb1ba6e42c195afcc340d2efc182ae651 | /DjangoWebProject1/app/migrations/0004_auto_20201219_0627.py | 63603e961e5691e7c9d193e90a27d03b314f3c6d | [] | no_license | sgalaxy2011/DjangoWebProject12 | 2d34b043285e39811cc5a3a5ccbe56313a168691 | e0bfe022a1ecb12e62c8b8f2a4d44278d2ae950c | refs/heads/master | 2023-02-03T02:49:55.041421 | 2020-12-19T05:50:33 | 2020-12-19T05:50:33 | 322,777,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # Generated by Django 2.2.17 on 2020-12-19 03:27
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_auto_20201219_0553'),
]
operations = [
migrations.AddField(
model_name='blog',
name='im... | [
"sgalaxy2011st@gmail.com"
] | sgalaxy2011st@gmail.com |
44fd372d9c40ca62302670779a51fc581411f406 | 721ec67f12c5332d048f885cd97eb9195e1a0f82 | /Resources Descriptions in OpenCEMS/EDP1.py | 631988d059fe4abf561c0a0c05b569dd80206cb0 | [] | no_license | AnonymUsername/OptiCS | 388a2dd5a5b343e27a1aa3ade0650358481a88da | 6ce79e12a744cf9afb7298be4bc1d1c8bf404f1b | refs/heads/master | 2023-06-27T09:52:31.707704 | 2020-06-04T17:26:09 | 2020-06-04T17:26:09 | 189,278,976 | 0 | 1 | null | 2021-07-28T09:26:24 | 2019-05-29T18:33:35 | Python | UTF-8 | Python | false | false | 1,178 | py | #!/usr/bin/env python
from flask import Blueprint
from flask import Flask, json
from flask import Response
from flask import request
from flask import jsonify, make_response
from random import randint
from itertools import cycle
import requests
predheatengcons = Blueprint('predheatengcons', __name__,)
... | [
"noreply@github.com"
] | noreply@github.com |
2b52cb702af8721102b26cdfa0391b1b7af6f714 | 1de088d890d2df2cbb9ae13ba82174c9d6e7d0e2 | /lunch/stores/views.py | 5360842bf4e7a71ad0c8945e2147100beccc683e | [] | no_license | ichiaohsu/django_practice | f43a3177652b1020cd96e0ca5513f8153b2f223c | 0cf8248b28ed7292580457e33ecd08fda812b471 | refs/heads/master | 2020-03-22T02:04:13.332156 | 2018-09-20T10:57:09 | 2018-09-20T10:57:09 | 139,347,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | from django.shortcuts import render, redirect
from .models import Store, MenuItem
from django.http import Http404, HttpResponse, HttpResponseForbidden
from django.urls import reverse
from .forms import StoreForm, MenuItemFormSet
from django.views.decorators.http import require_http_methods
from django.contrib.auth.dec... | [
"ichiao.hsu@gmail.com"
] | ichiao.hsu@gmail.com |
f89d573b08fc491c8d680f8aaa351dfe3721afa8 | 671e1340c18c2ab7936e6186505b8936bc4e8824 | /svm-app/plotter.py | 84b869a6c1b515402d113cdcbdd6037968dd7974 | [] | no_license | boidachenkop/svm-app | 8f18fcbd46949e9b06c58450ec3fc700e6b17ced | f6d48f62edb1f5deae6ae05b5b64a7f9ab385b42 | refs/heads/master | 2021-07-13T16:08:26.959414 | 2020-07-22T16:48:20 | 2020-07-22T16:48:20 | 188,828,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,305 | py | import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import MaxNLocator
import numpy as np
from scipy.stats import gaussian_kde
import argparse
import sys
import os
class LibsvmPlot:
def __init__(self, filename, nfeatures, dencity=False, bandwidth=0.1,
model_fi... | [
"boidachenkopavlo@gmail.com"
] | boidachenkopavlo@gmail.com |
1920724bea68c7268d4dc99408f617f42c248858 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_1/Python/aelg/prob4.py | 4fbd0b4d1fa1da615948253f8fc70a6d1a53b3c0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/python3
def solve():
inputList = list(map(int, input().split()))
k = inputList[0]
c = inputList[1]
s = inputList[2]
res = []
students = s
originalTile = 0
while students > 0:
studentPos = 0
for i in range(c-1, -1, -1):
studentPos += originalTile*(... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
2f9afaeeacf9eb5a5b1893e3e8db728e1cf38f06 | 12f83344cdfe561db39ad9106dbf263ccd919f7e | /Projects/miami_metro/debra/migrations/0084_auto__add_field_brands_icon_id.py | 905f99d42b129e430c5245c9813ab6a94d8af89c | [] | no_license | TopWebGhost/Angular-Influencer | ebcd28f83a77a92d240c41f11d82927b98bcea9e | 2f15c4ddd8bbb112c407d222ae48746b626c674f | refs/heads/master | 2021-01-19T10:45:47.039673 | 2016-12-05T01:59:26 | 2016-12-05T01:59:26 | 82,214,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,415 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Brands.icon_id'
db.add_column('debra_brands', 'icon_id', self.gf('django.db.models.fields.... | [
"ivanfridrich1981129@yandex.com"
] | ivanfridrich1981129@yandex.com |
5d711d2cce2db7268af97425ebf49d3d9ba087f0 | a65fd5843e5b2cddc18e60583a0f238528a35eb6 | /app/__init__.py | 4510bc00a6f838065edc4847ad9e740963d1b114 | [
"MIT"
] | permissive | alphonce-otieno-odhiambo/HOTLINE-BLINKNEWS | 27df95ddc1d8aeebe42901d76e6a7e432f6e327d | a29fefce2b5925c3c8c0ce86f7f9f7687148b24a | refs/heads/master | 2023-09-02T08:21:05.124307 | 2021-11-04T04:59:00 | 2021-11-04T04:59:00 | 422,959,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
# Creating the app configurations
app.config.from_object(config_options[config_name])
# Initializing flask extensions
bootst... | [
"alphonce.odhiambo@student.moringaschool.com"
] | alphonce.odhiambo@student.moringaschool.com |
8c9447c3f292c1307c78143b0de03a14cccc97b9 | 12abbf73f6e0f88c263b50496aa3c9b769a0ba19 | /venv/Lib/site-packages/nb_log/handlers.py | 7d220fe28fa8528f7510ab6682839d4d72d007df | [] | no_license | yangtingting123456/API_Test_Framework | 037f2d3171cecba39f845d646d8db629dfce2ba9 | dd388491c038d635ccfe323032d86b17ea2a48e0 | refs/heads/master | 2023-02-23T00:21:10.321954 | 2021-01-15T09:33:30 | 2021-01-15T09:33:30 | 319,823,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,740 | py | # noinspection PyMissingOrEmptyDocstring
import atexit
import copy
import sys
import os
import traceback
import socket
import datetime
import json
import time
from collections import OrderedDict
from queue import Queue, Empty
# noinspection PyPackageRequirements
from kafka import KafkaProducer
from elasticsearch import... | [
"3048903923@qq.com"
] | 3048903923@qq.com |
9cfcc62db3f7835c694bd3946670e5016afa364f | c1080a13ad19d70429fb3f640989117315ef90bf | /layers/box_utils.py | 22e7dbca5a7e4208d44198c8fc666332ee2ae7a4 | [
"MIT"
] | permissive | PoisonBOx/Active_Learning_Object_Detection | ddc573d289216bee96307c7c68097fb884e37688 | 3d9ad367aa872cbf3e9d71c566042c78fe2d0e76 | refs/heads/master | 2022-04-14T18:35:30.331799 | 2020-03-25T12:48:22 | 2020-03-25T12:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,005 | py | # -*- coding: utf-8 -*-
import torch
def point_form(boxes):
""" Convert prior_boxes to (xmin, ymin, xmax, ymax)
representation for comparison to point form ground truth data.
Args:
boxes: (tensor) center-size default boxes from priorbox layers.
Return:
boxes: (tensor) Converted xmin, y... | [
"you@example.com"
] | you@example.com |
e062c64ad630a4b6f5ecacf7cf97ba2f3af3c09e | 32eee34ffbf57023e39f68e5280f08995ef430f5 | /backend/db/deck.py | eca65f6b4387e2b246c0b6156767ba23a6c9e76d | [] | no_license | yibo-liang/puss_war | 4b43c79288897d242d4f15fd97f5b3039dc73a9e | 614d0dcb1a857a951fae8b84e790ef402ebd21e9 | refs/heads/master | 2021-09-10T15:43:26.670640 | 2018-03-28T19:20:54 | 2018-03-28T19:20:54 | 119,040,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | from db._db_interface import *
class DeckDBInterface:
@staticmethod
def get_deck_by_id(id):
try:
db = NoSQLDatabase()
db.init()
deck = db.find_one_by_key("_id", id, "deck")
except Exception as ex:
print("ERROR")
raise ex
retu... | [
"yibo.insane@gmail.com"
] | yibo.insane@gmail.com |
dd63db4cae59ee17f4906194ba652376f0e0003f | b6cd9d4689eec34af3cff23ec002d2795e90b1e2 | /zerone_inc/zeroslack/apps.py | 7eaf1f83f5718ca62863a055cde751c31b226126 | [] | no_license | payamesfandiari/zerone_inc | d4ef3a700a5d26a05131a654f7b62828411844e2 | b88e4ac4c6e3fe4ecb21f1e566c3e890b1b67723 | refs/heads/master | 2023-03-03T12:49:30.252802 | 2021-02-10T21:32:30 | 2021-02-10T21:32:30 | 281,714,847 | 1 | 1 | null | 2021-01-18T13:20:24 | 2020-07-22T15:29:31 | Python | UTF-8 | Python | false | false | 281 | py | from django.apps import AppConfig
class ZeroslackConfig(AppConfig):
name = 'zerone_inc.zeroslack'
verbose_name = "ZerOne Slack"
def ready(self):
try:
import zerone_inc.zeroslack.signals # noqa F401
except ImportError:
pass
| [
"p.esfandiari@samanpr.net"
] | p.esfandiari@samanpr.net |
d5ef243769ad1d7fcedb4dc10348a48e35edebab | d072be4a71e948b75010fda78f9b8b478db7eb7a | /Script Writing/Teststopractice/Arrayandcount.py | 84df9663dc50b277ee246f812c4319746523994e | [] | no_license | Georgieboy68/ICTPRG-Python | 5e095fd72a5fc6e8a1d2734e0dbdbde419382521 | cfb1fb5e0b79ef2bc9a03d8882fa8d718a2c4486 | refs/heads/master | 2022-04-23T06:31:41.456740 | 2020-04-28T09:13:40 | 2020-04-28T09:13:40 | 259,569,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | #PYTHON ARRAYS/LISTS
#2.Develop an application that can accept an input from the user and output how many words they have entered.
#Description.
#prompt user to enter a string
#parse the string and break into substrings using whitespace as a delimiter.
#create a new list and copy each substring into it.
#loop th... | [
"noreply@github.com"
] | noreply@github.com |
62ce8c123cde10aef1ed6ef12b22aeb33d07370b | 2964c4e8fb72472b9904702bb2e395c206bc714f | /app/migrations/0007_rename_fechasus_suscriptor_fecha_suscripcion.py | 54621927e4e7046fc6e5d824eeb76597381dc461 | [] | no_license | Jonyrgb/ProyectoSemestral-DJANGO | 2a8513cd65b54ce64cde90f184282aa81ba0ba0e | 7624e9c2a922fb37549153dc2a77d8377c3fbd47 | refs/heads/main | 2023-06-21T13:10:39.846812 | 2021-07-21T14:28:01 | 2021-07-21T14:28:01 | 388,145,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.2 on 2021-07-08 03:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0006_suscriptor'),
]
operations = [
migrations.RenameField(
model_name='suscriptor',
old_name='fechasus',
n... | [
"ari.cofre@duocuc.cl"
] | ari.cofre@duocuc.cl |
c1698cf826fa735c657250a82f58b2a9b940e70a | dc287bb18da984f91654a65565840b7f0205feb0 | /Bayesian_software_view.py | 1de33ac83fe19734d4c122febf2e6d5a31d6411e | [
"MIT"
] | permissive | AG-Ewers/BaClAva | 5f7ad4e38a736755effb33ccee99273d2e52e371 | d98572b9951408b99838cf2fffd36beb1b9e1e6b | refs/heads/main | 2023-08-23T00:17:56.394625 | 2021-10-27T15:03:15 | 2021-10-27T15:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | from PyQt5 import QtWidgets as qtw
from PyQt5 import QtGui as qtg
from modules.module_one_a_simulation import MainWindowSimulation
from modules.module_one_b_smlm_simulation import MainWindowSimulationSMLM
from modules.module_two_Bayesian import MainWindowBayesian
from modules.module_three_post import MainWindowPost
fro... | [
"saskia.kutz@fu-berlin.de"
] | saskia.kutz@fu-berlin.de |
5f5126f6bfdd8a5609050368d2645ea9aa972b00 | 5ce4791bcda6d355d68e314853613c0ba206c80d | /Histograms/setup_histogram.py | 928b03883f483afd363c88f2d4708998a5312315 | [] | no_license | leosala/python_utils | 0f2c8af742bc807a2d885f5f9ba001159cc0ae83 | f45cc49204dc7c28c21e124beee73b98396e7e28 | refs/heads/master | 2020-04-12T01:44:16.506027 | 2019-01-29T15:37:03 | 2019-01-29T15:37:03 | 43,772,735 | 0 | 1 | null | 2019-01-29T15:37:04 | 2015-10-06T19:15:01 | Jupyter Notebook | UTF-8 | Python | false | false | 489 | py | from distutils.core import setup
from Cython.Build import cythonize
import numpy as np
from distutils.extension import Extension
from Cython.Distutils import build_ext
ext_modules=[ Extension("histogram",
["histogram.pyx"],
libraries=["m"],
extra_compile_args = ["-ffast-math"]... | [
"Leonardo.Sala@psi.ch"
] | Leonardo.Sala@psi.ch |
310934a4d8dd5c80d42789b7a6a7c6bf9cb959ab | 777b2cc83a81debd4e779db736dad1d8818a5a28 | /xbee .py | b0cb207cd0aedfdacc79051f959a95cc2d2b7655 | [] | no_license | rajugokul/python | 2e0c5a00f89af65ef4a59f3c72e3ac3e17b72ed4 | d138d6859ad419089426f06aef4cf5d5feff3249 | refs/heads/master | 2020-04-11T15:26:43.343536 | 2019-04-17T09:38:40 | 2019-04-17T09:38:40 | 161,891,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import serial
import pyttsx
from time import sleep
engine = pyttsx.init()
# Enable USB Communication
ser = serial.Serial("/dev/ttyS0", 9600,timeout=.5)
while True:
ser.write('Hello User \r\n') # write a Data
incoming = ser.readline().strip()
print 'Received Data : '+ incoming
engine.say(' '+in... | [
"noreply@github.com"
] | noreply@github.com |
74f545ddd8aead850b286517ff15de1cb279c2a1 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_atoms_Polbinds_qsplit_fittedscreens/Jobs_chelpg/PDIF-CN2/PDIF-CN2_cation_neut_inner3_outer0/PDIF-CN2_cation_neut_inner3_outer0.py | 0529c196b51dd6089ab4ee51b1366f451a48a8aa | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 7,012 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
3030e6f66bb5a663eb05d2735b35dac4684ce27f | 589b8dc78b1cd39f7ee197d0c8f19913a0df2a39 | /hfhh/fengzhuang_1.py | 2c20cb78b275c7ae1cb2ffb2df152f8e07ffdebd | [] | no_license | guoy2019/guoya001 | d36f238ba56a356452d4ed695712db8016ad0a0c | 0148fab5d887ce72af2c6600431b19a5976570b5 | refs/heads/master | 2020-07-22T13:23:24.352471 | 2019-09-09T03:27:03 | 2019-09-09T03:27:03 | 207,215,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from hfhh.fengzhuang_2 import ClassDome_mm # 通过类名找到所在的目录,操作方法:类名alt+enter
ClassDome_mm#使用类名调用ClassDome_qqq类里面的方法
| [
"1355915269@qq.com"
] | 1355915269@qq.com |
e4d24ebc652d0bf66a158af5b381614d540f60ec | f30566140c4f7e5108eb55fe7a4fcaa6d32e2ded | /iqspy_gui.py | a5d26393ac2edc22bcdcb5bdbe104ceecea66d3c | [] | no_license | simanwhite/IQSpy | 5dbf80959f78a5ef5109c0610c676c448c3586a0 | 277d36949e58e34ca38fca7e0a5788f76c561ba5 | refs/heads/master | 2021-01-10T03:52:11.535387 | 2016-01-13T18:53:55 | 2016-01-13T18:53:55 | 49,593,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,105 | py | from Tkinter import *
from ttk import *
import os
import pickle
import iqshark
class App(Frame):
def __init__(self, parent=None, shared_q=None, **kw):
Frame.__init__(self, **kw)
self.parent = parent
self.shared_q = shared_q
# button group
self.button_frame = Frame(self.par... | [
"simanwhite@126.com"
] | simanwhite@126.com |
d89589a79f6bc5e27a53d9bbc7a7207c5236abf1 | e0e64cdbc26c62ab7c29bf8ce80dec809e574a29 | /visitor/car_element_visitor.py | 02987e4edd4786630b76d6887f509dc454a50ebd | [] | no_license | fujimisakari/design-pattern | 0e190080e161e480a7232fd33543c350f5487b38 | 53a893c0c9d2c76c7d0fae4a6464c934cac371e9 | refs/heads/master | 2021-05-06T22:28:20.812744 | 2018-02-21T18:26:41 | 2018-02-21T18:26:41 | 112,838,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import abc
class CarElementVisitor(abc.ABC):
@abc.abstractmethod
def visit_wheel(self, wheel):
pass
@abc.abstractmethod
def visit_engine(self, engine):
pass
@abc.abstractmethod
def visit_body(self, body):
pass
@abc.abstractmethod
def visit_car(self, car):
... | [
"fujimisakari@gmail.com"
] | fujimisakari@gmail.com |
e589e05f36c0d5b92495f79ed537307b58e28139 | 72d42b33dc26de80f398526be38064ed47bdc008 | /combinecsv.py | f57031a2ae620b7f025d4e0cfe09159cb5d811ba | [] | no_license | UBC-Astrophysics/TeachingScripts | 12a6d461d9802bbf076a5f8b061c9a5809e88225 | d5a6068d2d6a96949317c80ebc0a697af693140d | refs/heads/master | 2021-01-10T15:17:25.267091 | 2019-10-18T19:15:57 | 2019-10-18T19:15:57 | 51,566,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | import csv
import sys
dict={}
if (len(sys.argv)<6):
print("Format:\n\n python3 combinecsv.py gradebook.csv ams.csv output.csv number_of_columns_to_sum number_of_output_column\n\n")
exit(-1)
with open(sys.argv[1], 'r') as csvfile:
firstrow=csvfile.readline()
gradebook = csv.reader(csvfile, delimit... | [
"heyl@phas.ubc.ca"
] | heyl@phas.ubc.ca |
7ac1b5ea52ce4f538442b926ca4de3a266df3014 | ab6a4095d805f1878de3cda5a56e60a6dd3ff5e2 | /2015/Day4.py | 5f7d9e05cc20b96ee6b86447abee1c0289ff5e5e | [] | no_license | arrowbounce/oldAOC | 5748c713a6ac873e853926656db75ac06726c221 | 27aad343016be39a1bcb7c63f0b7effe28c392eb | refs/heads/master | 2020-09-23T10:37:00.897294 | 2019-12-05T04:34:07 | 2019-12-05T04:34:07 | 225,478,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import hashlib
input = "bgvyzdsv"
i = 0
while True:
hold = hashlib.md5(input + str(i)).hexdigest()
if hold.startswith('000000'):
print i
print hold
break
i+= 1 | [
"ts63280@gmail.com"
] | ts63280@gmail.com |
b6dc3753f2deb3cd49598c2f72e82a4369327012 | 5236d4b852abd8a809b71a74f7da8c40712d5eac | /image_process/forms.py | 349836d3bcce656c209d8c0f45c830d11bc95815 | [] | no_license | kbatuigas/imageapp | dd589073338c6e1ad2f939b25cd465643deb3cb7 | 741e05f009a8f78e34e4fdc761604d1cf1221cdd | refs/heads/main | 2023-01-24T00:04:09.952474 | 2020-11-17T00:25:47 | 2020-11-17T00:25:47 | 313,462,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.forms import ModelForm
from image_process.models import ImageFile
class UploadImageForm(ModelForm):
class Meta:
model = ImageFile
fields = ['image']
| [
"36839689+kbatuigas@users.noreply.github.com"
] | 36839689+kbatuigas@users.noreply.github.com |
ea5b9b937f47326657b9da399ad06bdf9c9d3f9f | 857d2653df85eec7b740a782005da2872d532bff | /training/reco/k_means/k_means.py | d2dc9088e57ba424bc95239998544ce1abec4e40 | [] | no_license | calzonelover/CMS_DC_ANOMALY | 1621924dc66ec2a80a2aa3af3bb29762bb558073 | 5a02ab59ec52c462c37111f83e286149dd86754b | refs/heads/master | 2020-05-31T15:12:50.074681 | 2019-08-22T15:05:42 | 2019-08-22T15:05:42 | 190,348,831 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,406 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os
from sklearn import svm
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler, normalize, MinMaxScaler
# customize
from data.prompt_reco.setting import REDUCED_FEATURES, ... | [
"patomporn.pay@gmail.com"
] | patomporn.pay@gmail.com |
46fa4aa7fca3759a72ec73b8b86d534e9fc16b54 | 9b5332fb0c728001bde43c95f9d473eee0409e30 | /update/update/settings.py | 89aa679e810bc4a2ce21f99937411d361a68b685 | [] | no_license | azrael1998/Projectv1 | 13c4b35e212b80fc71a2a64c35f377da07ccb39b | 8080cb7cd64e58e969dde41cbdf4ef8c24f7677f | refs/heads/master | 2023-08-20T00:26:01.942294 | 2021-10-05T13:52:50 | 2021-10-05T13:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,686 | py | """
Django settings for update project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"vipinachar2020@gmail.com"
] | vipinachar2020@gmail.com |
260ff632015d6f5932bddcb9cfb80d61bc74add3 | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /codingBat/python/warmup2/stringMatch.py | 885e6c9cdd2dd38ba959c80188a62fe641e07e7d | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 1,024 | py | #######################################################################################################################
#
# stringMatch
#
# Given 2 strings, a and b, return the number of the positions where they contain
# the same length 2 substring. So "xxcaazz" and "xxbaaz" yields 3, since the "xx", "aa",
# ... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
c2330fd2578061131f39976e0dd8c71421b64375 | ca3866bce9a6130f0a972476de869a1dec7bf276 | /mblog/settings.py | bcd30141e558824d796caf09f08edcb2cf0e59d2 | [] | no_license | Jammers001/mblog20180228 | 4a812c76e73a7eacca61b34917661fe0e056e655 | e8ed66909c36d10c2671cf9ae64b2892a347203a | refs/heads/master | 2021-01-24T19:24:02.419178 | 2018-02-28T06:34:44 | 2018-02-28T06:34:44 | 123,240,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | """
Django settings for mblog project.
Generated by 'django-admin startproject' using Django 2.0.2.
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 os
# B... | [
"jammers_lee@foxmail.com"
] | jammers_lee@foxmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.