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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3090b50b1b2dbeb3ad015b21bfc548109034625b | 5e5758c4acb2ae534508fb60289e0a11cbdd74db | /ABCB prediction/predict.py | dec06e3f950227abbd61794e01e14991ccf04cc6 | [] | no_license | Dannis-ARM/FYP | 49f048c10600c3614e14e7158fe3d9d5720b4a89 | a723d4ec8ed7578e890e402b5d9f181f24c4562f | refs/heads/main | 2023-06-17T14:29:47.676789 | 2021-07-02T10:17:26 | 2021-07-02T10:17:26 | 376,296,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,123 | py | # @Time : 2021/5/31 22:47
# @Author : CME1809103
# @IDE : PyCharm
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mean_squared_error
import tensorflow as tf
from keras.models import Sequent... | [
"CME1809103@xmu.edu.my"
] | CME1809103@xmu.edu.my |
ffa3fc919b5b7974add0481cf555fa240c603cce | 631465709a9b8bef0836766e54653c5a65d1e97a | /post.py | 6ead0812f33a642635d5db338df20a5ff94d4702 | [
"Apache-2.0"
] | permissive | sbreitenbach/market-trends | e5ed7adea6351b92f54d3b837b56c8766cc4b2b4 | 4c21cf61953e4872415ca9fbc886f15bac595ee2 | refs/heads/main | 2023-09-01T07:02:05.053527 | 2023-08-15T01:42:59 | 2023-08-15T01:42:59 | 332,080,646 | 0 | 0 | Apache-2.0 | 2023-08-15T01:43:01 | 2021-01-22T22:49:27 | Python | UTF-8 | Python | false | false | 393 | py | class Post:
def __init__(self, id, text, upvotes, type):
self.id = id
self.text = text
self.upvotes = upvotes
self.type = type
self.sentiment = None
self.title = None
self.tickers = []
self.url = None
def is_thread(self):
if(self.type == "... | [
"scott.breitenbach@gmail.com"
] | scott.breitenbach@gmail.com |
f5e3ed467b15386559fc13c23acbe01d5fa2865f | 3ddda99bfed9777566f7c2cd6e1f4af035a8ca5a | /purgeQueue.py | bf9f79aff456565eb9f74aba3ca6de0d15fc72e2 | [] | no_license | kirankarpurapu/TweetMap | 089fba897275a1c64e878afb704c990c3361b849 | 264e823bb40d728e983806117007b965fc1437fc | refs/heads/master | 2021-01-19T21:54:33.292062 | 2016-11-26T01:20:42 | 2016-11-26T01:20:42 | 74,540,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import boto3
sqs = boto3.resource('sqs')
queue = sqs.get_queue_by_name(QueueName = 'TweetMap')
#to purge the queue
queue.purge() | [
"kiran@edu.chat"
] | kiran@edu.chat |
c057f5b102d9212d662b5029e51e37b64f2075d1 | bad7f9df662dc156dd8a3c880f470750c741c2fe | /Sobel.py | 9fd8bde5f19aeb84eaf2061a977007306b5d102b | [] | no_license | Wenarepo/HOLArepo | a41f656c8bc8da6d5299a5dcfc3ce8aff4f9c191 | 75d63c837052b339a9b157f5f7695d612ad8b509 | refs/heads/master | 2021-01-18T21:17:36.473923 | 2016-06-07T03:30:36 | 2016-06-07T03:30:36 | 55,083,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | from SimpleCV import Camera, Display, Image
import numpy as np
#import sklearn as sk
from sklearn import *
#from scipy.sparse import *
#from scipy import *
from matplotlib import pylab
from matplotlib import pyplot as plt
import cv2
c = Camera()
def foto(c):
img = c.getImage()
img.show()
... | [
"anselmojara@udec.cl"
] | anselmojara@udec.cl |
526f8c46e446117efd192bba50cfc4f23ac26872 | 6fe651c2b014f8b07f36ba64d3b55edfc135caac | /comprehension_tutorial/exercises/advanced.py | 8c831cf3ece1036a2df5f5c5e01dc2e07edf8d4f | [] | no_license | aftab82/learn | 55496c11beaf5e00e85b161c4ba97eea921be21b | b592e6d4f5ac6ce6f1d2448c8f21b63674dabc0f | refs/heads/master | 2022-09-15T08:05:28.423468 | 2022-08-31T21:16:46 | 2022-08-31T21:16:46 | 250,903,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | """Advanced exercises"""
from collections import namedtuple
import csv
import random
def matrix_from_string(string):
"""Convert rows of numbers to list of lists."""
return [
[int(elem) for elem in line.split()]
for line in string.splitlines()
]
def parse_csv(file_obj):
"""Return nam... | [
"aftab28@gmail.com"
] | aftab28@gmail.com |
fad8169480570752dbbffc1c0bc1e2ecb4f7d03e | 3d952ae35dba7c7399e9278e44f75ee884d97ff6 | /exchanges/uniswap.py | 76b8ed359113f7f9bb5b57c6092c76ff523c93dc | [
"MIT"
] | permissive | JoaoCampos89/0xbtc-discord-price-bot | d90eb909de18b951ade8821fc06958e815e8fd2a | 6eb6839213dfb0176c0be72c2dda7193d4131750 | refs/heads/master | 2020-08-08T09:22:13.036779 | 2019-07-11T04:12:23 | 2019-07-11T04:12:23 | 213,803,946 | 0 | 0 | MIT | 2019-10-09T02:39:24 | 2019-10-09T02:39:24 | null | UTF-8 | Python | false | false | 5,257 | py | """
API for Uniswap distributed exchange (uniswap.exchange)
Price info is pulled from the smart contract
https://docs.uniswap.io/api/exchange
"""
import logging
from web3 import Web3
import time
from .base_exchange import BaseExchangeAPI
from .uniswap_abi import exchange_abi
from configuration import ETHEREUM_NODE_UR... | [
"x1d@protonmail.com"
] | x1d@protonmail.com |
5dde8324a09e3e3b34e9ab6a9e16642d78a7ba41 | 20a466c82abf9e24e01814ea5f4864e09566b3b1 | /foundryapp/foundryapp/report/committed_production_against_requirement_report/committed_production_against_requirement_report.py | a5e217adafec362826ee67e0dbfda0c50138c026 | [
"MIT"
] | permissive | umaepoch/foundryapp | 5d038562b5c0da6669b0d107a68eddace3682514 | f8d43e2ead4de7d6f1a6c30bc3f9c7c390f030e1 | refs/heads/master | 2023-08-30T05:09:12.570319 | 2021-11-18T12:36:19 | 2021-11-18T12:36:19 | 399,685,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,383 | py | # Copyright (c) 2013, yashwanth and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import datetime
def execute(filters=None):
columns = getColumns()
data = construct_report(filters.get("scheduled_date"))
return columns, data
def construct_rep... | [
"jyothi@meritsystems.com"
] | jyothi@meritsystems.com |
15d7aecf4a95145f8bce53ba7959fd4e048a9fed | 72350cc086e70f93425640b823bc7461c7cbff46 | /WIDW3T2.py | bfc82776864276eb298abf4ed9d89527e41ad788 | [] | no_license | Faybeee/Session3-Homework | c1529bd4e482eebbc4e71ea34e0f32288838e25b | 2bee58f255bd2667ec78db6b237b302c33ced9f6 | refs/heads/main | 2023-02-21T03:40:39.822766 | 2021-01-24T12:40:46 | 2021-01-24T12:40:46 | 332,446,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | #Write a program to ask a student for their percentage mark and convert this to a grade.
#The conversion will be done in a function called mark_grade
#Ask the user for their target grade and print this with their mark
# If their target grade > exam grade display a suitable message
# If their target grade = exam... | [
"noreply@github.com"
] | noreply@github.com |
c2056bf0c275dfbda836faa8cbf3d26e801cb7a5 | 1cbc03603f3aad9f4eecdd341d58d2f8c910063c | /theme_10/task_03/__init__.py | 01de4b6607260dae5291e6053d6acd7ec0422574 | [] | no_license | omeH/studies | 71925b9a2419c152d5a1b8fd07974511851449c2 | 96eb72e20180554c2edc25397a520cd1c5cd7347 | refs/heads/master | 2016-08-06T01:12:19.723251 | 2014-12-11T18:45:39 | 2014-12-11T18:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | __all__ = [
'safe'
]
| [
"hanulllu@gmail.com"
] | hanulllu@gmail.com |
95d13e0f751a416bc4b06580bcf2b908508684b6 | a1b8b807a389fd3971ac235e46032c0be4795ff1 | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/sources/en/watchfree.py | 499eb10d07d5e83d78835d4d22adcf9be4794a51 | [] | no_license | sClarkeIsBack/StreamHub | 0cd5da4b3229592a4e2cf7ce3e857294c172aaba | 110983579645313b8b60eac08613435c033eb92d | refs/heads/master | 2020-05-23T09:09:54.898715 | 2020-02-29T12:15:32 | 2020-02-29T12:15:32 | 80,440,827 | 9 | 20 | null | 2017-10-04T07:32:52 | 2017-01-30T16:43:46 | Python | UTF-8 | Python | false | false | 8,483 | py | # -*- coding: utf-8 -*-
'''
Covenant Add-on
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 3 of the License, or
(at your option) any later version.
This prog... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
00170ae8d4a933ab33ea078c5a1290a931cf032d | b292052312683fe396873ea41bcb50b6b5c0c69b | /roots.py | 4beefb069595e269e0cd9fa67d7769f5a330b5e3 | [] | no_license | lucas-homer/pyfund | 277da2eac90412a73fb41f161554a63cc5f16f34 | d82d8bfa4a3dca05e4ae793f88628e7f089df010 | refs/heads/master | 2021-04-15T09:20:37.722881 | 2018-03-22T19:29:36 | 2018-03-22T19:29:36 | 126,384,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import sys
def sqrt(x):
'''Compute square roots using the method of Heron of Alexandria.
Args:
x: The number for which the square root is to be computed.
Returns:
The square root of x.
Raises:
ValueError: If x is negative.
'''
if x < 0:
raise ValueE... | [
"lucas.homer@gmail.com"
] | lucas.homer@gmail.com |
59374bff51a5f4a97d27ad97be962fd2224e9c53 | a39449d094f1aeb9c7b269b7c32b03ca84462243 | /src/createCustomVocab.py | b9db22f2fa9618636dfef079f58ba6023650ed86 | [] | no_license | somi198/KISTI-2020-AI-Project | 4714f8aebe726a14ef9d620af25435d7dada73fb | ebcc8a2f907f1ca609fd026efeca5d716f0895a7 | refs/heads/master | 2023-07-13T05:14:40.152542 | 2021-08-14T12:11:39 | 2021-08-14T12:11:39 | 320,918,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py | import argparse
import re
import sys
# custom vocab dictionaly
new_vocab = []
# Vocab path
## input Vocab path
MecapVocab_path = "rsc/my_conf/hangul_vocab.txt"
EnglishVocab_path = "rsc/my_conf/ices_eng_vocab_1000.txt"
## output Vocab path
CustomVocab_path = "rsc/my_conf/ices_custom_vocab_v2.txt"
## 입력 text가 한글인지 아닌... | [
"saejin7694@gmail.com"
] | saejin7694@gmail.com |
8be593e9228a4956a1fb34a15eadd28289e4ea8e | 1405f47a6e0715f163439b034987e6e298f74429 | /top/api/rest/__init__.py | 4d9cc5110cbc87832c3f2ab2702336280424af59 | [] | no_license | skee-t/backend | 5dd7064c62615de16c3fefba34edc19e598df00d | 941976d99245486790ca91e134b0cbae1a003f1e | refs/heads/master | 2021-05-03T20:13:35.559147 | 2016-12-26T10:45:09 | 2016-12-26T10:45:09 | 69,564,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | from top.api.rest.AlibabaAliqinFcFlowChargeProvinceRequest import AlibabaAliqinFcFlowChargeProvinceRequest
from top.api.rest.AlibabaAliqinFcFlowChargeRequest import AlibabaAliqinFcFlowChargeRequest
from top.api.rest.AlibabaAliqinFcFlowGradeRequest import AlibabaAliqinFcFlowGradeRequest
from top.api.rest.AlibabaAliqinFc... | [
"rensikun@paypalm.cn"
] | rensikun@paypalm.cn |
0653972e0dd62e235f1b6c73af6da5b96e246c6f | 1a812d520fa0788864cab3c6bbd4e2ba0e8872c2 | /employeedataandprintthatdata.py | d97719e66d1ee36ecddc97ae0f16f35d728b4462 | [] | no_license | manutdmohit/pythonprogramexamples | b6f6906a6169ad2ecd9b16d95495474d570b065e | 06ac4af8ce13872bbe843175a61d7ad77e0f92b6 | refs/heads/main | 2023-01-14T13:14:57.468947 | 2020-11-25T05:39:01 | 2020-11-25T05:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | eno=int(input('Enter employee number:'))
ename=input('Enter employee name:')
esal=float(input('Enter employee salary:'))
eaddr=input('Enter employee address:')
married=bool(input('Employee married?[True/False]:'))
print('Please confirm your provided information')
print('Employee Number:',eno)
print('Employee Nam... | [
"noreply@github.com"
] | noreply@github.com |
961781e9a4421f843daec46bf7d27a5b190cffc6 | 989b3499948137f57f14be8b2c77d0610d5975e6 | /python-package/daily_study/python/question_python(resolved)/chapter4_conditional_and_loops(완결)/i_is_member.py | fb8ea88f0fd87a269fb0ec00839eb849b2386979 | [] | no_license | namkiseung/python_BasicProject | 76b4c070934ad4cb9d16ce844efa05f64fb09ac0 | 460d05248b2d1431624aba960e28bece888643e4 | refs/heads/master | 2022-12-13T21:12:06.865241 | 2020-04-23T01:30:08 | 2020-04-23T01:30:08 | 142,980,920 | 1 | 1 | null | 2022-12-08T02:27:40 | 2018-07-31T07:49:17 | Python | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
def is_member(member_list, mem):
""" 리스트 member_list 와, 어떤 데이터 mem을 전달받고, mem이 member_list에 포함되어 있는지를 True/False로 반환하는 함수를 작성하자
sample in/out:
is_member([1, 5, 8, 3], 3) -> True
is_member([5, 8, 3], -1) -> False
"""
# 여기 작성
return mem in me... | [
"rlzld100@gmail.com"
] | rlzld100@gmail.com |
dd0cf2b1d4f90a284dd76c89ec61fd109ca9df93 | c99a9a65f451c2af2a1985829d031a40b0c78379 | /backend/run.py | aa950026058d229589ac138c3517b6ef8aebc907 | [] | no_license | jianchann/GetUP | 18bdaa4af3330ce643db5633462e0a4597fc84c0 | b9a900713df157ff05069fc7d4a57ef446e59469 | refs/heads/master | 2022-12-13T00:51:12.210559 | 2020-03-12T21:25:14 | 2020-03-12T21:25:14 | 235,525,416 | 0 | 1 | null | 2022-12-11T21:33:12 | 2020-01-22T08:00:32 | Vue | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
from app import app, db
import os
db.create_all()
if __name__ == '__main__':
if app.debug:
app.run(host='0.0.0.0')
else:
port = int(os.environ.get("PORT", 5000))
app.run(host='0.0.0.0', port=port)
| [
"jianlorenzo_chan@yahoo.com.ph"
] | jianlorenzo_chan@yahoo.com.ph |
ad005e7c3c65d9d484b6e2414b855dd7605fbebe | 28ae5b967328670448b47baa87c5506d573595ac | /ex.py | 5c0db097d191b60fa670863c3721a47bfd4236a4 | [
"Apache-2.0"
] | permissive | Kagurazaka-Hanasaka/RanmaruWorks_Git | f4ea9ae838136f5969f5be1fa39d4eaa0ae1c47d | 8e327b31b1b71cb231755fe61ffee49fa2d69e69 | refs/heads/master | 2020-03-25T03:43:21.121098 | 2018-08-03T00:05:59 | 2018-08-03T00:05:59 | 143,356,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | import requests, re, json, uuid, glob, sqlite3, time, gc, os, psutil
from bs4 import BeautifulSoup
eoltoken = "null"
merge = []
hlistc = 0
for pgn in range(5):
cookd = {
"igneous": "89540adbd",
"ipb_member_id": "2237746",
"ipb_pass_hash": "d99e752060d5e11636d7e427f62a3622",
"lv": "1533216215-1533216236"
}
ex... | [
"noreply@github.com"
] | noreply@github.com |
c7cc16f7ebab168223dc1364d956d6a0c8612445 | e56563ea34f09b2269398cb038256f070fad34b5 | /py/216_Combination_Sum_III.py | 7b677bdc65522e1de2d2864dc79e6f0e2db06020 | [] | no_license | zymov/leetcode | 95bdefa84c2643933dde3b0826c732a4b9b03431 | cbf87c5a37543894054040d296741931f8c7b205 | refs/heads/master | 2020-03-21T23:12:17.132201 | 2020-02-06T04:24:11 | 2020-02-06T04:24:11 | 139,172,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from typing import List
class Solution:
def combinationSum3(self, k: int, n: int) -> List[List[int]]:
res = []
nums = [i for i in range(1,10)]
self.backtracking(nums, 0, k, n, [], res)
return res
def backtracking(self, nums: List[int], index: int, k: int, remain: int, comb: Lis... | [
"eyeder@163.com"
] | eyeder@163.com |
7868596997fff7f69033313b6a5b4fab5e61c586 | 2d8839935bb79e9190487ab0b9cf17fa97716edf | /tas/rng.py | ff6c72d9f4cc697b69f3330856b3c5fd6a19363c | [] | no_license | yuhasem/poc_utils | 914ef6069f8f8b22efdffdfce182343539983c73 | c45ae82f3038432611ccf3336c72e31532843f9e | refs/heads/master | 2023-04-10T17:30:47.059387 | 2023-03-19T23:21:19 | 2023-03-19T23:21:19 | 202,916,199 | 0 | 0 | null | 2020-04-18T18:03:39 | 2019-08-17T18:06:50 | Python | UTF-8 | Python | false | false | 4,832 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 13 19:24:51 2021
@author: yuhasem
"""
def top(value):
return value >> 16
# Every step of RNG works as seed = 0x41C64E6D * seed + 0x6073
# These lists are precomputing what happens when you repeat this multiple
# times. The entry at index i is what happens when it's... | [
"lilyuhas@gmail.com"
] | lilyuhas@gmail.com |
49593cfef8190bf81ad085564003ab1b4b9ef236 | 7b7b0a813ad2008d08c32b67aa71e442a592fc38 | /pytorch_wrapper/modules/sequence_basic_cnn_encoder.py | e9890f4aa161f51e15de4877514a7f19d14a9755 | [
"MIT"
] | permissive | HM102/pytorch-wrapper | 312f259b0ce2645c1ec60b3c8513b4532e5018d8 | ff95fb1c7153c67307f1b80349cca15e2c1ab0bf | refs/heads/master | 2020-07-03T14:20:50.540972 | 2019-08-11T11:07:59 | 2019-08-11T11:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,441 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from .. import functional as pwF
class SequenceBasicCNNEncoder(nn.Module):
"""
Basic CNN Encoder for sequences (https://arxiv.org/abs/1408.5882).
"""
def __init__(self,
time_step_size,
input_activati... | [
"jkoutsikakis@gmail.com"
] | jkoutsikakis@gmail.com |
9cfe618f17d438eedbd354b0d2ae50576ab8c448 | ca0ef0a1ed47d75e651fcd7109852c0723a10a3d | /msfalcon_beaker.py | 32b7841b9f9380046793f98e7159a8c25d59a4e6 | [
"MIT"
] | permissive | stancikcom/test | e4066004cbea3802e07f0273d1a90d379375f058 | 4d05aae7cfc6a7f48c103d32910b0514af955088 | refs/heads/master | 2016-09-11T12:25:37.887674 | 2015-01-15T20:24:44 | 2015-01-15T20:24:44 | 29,316,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | from beaker.middleware import SessionMiddleware
def simple_app(environ, start_response):
# Get the session object from the environ
session = environ['beaker.session']
# Check to see if a value is in the session
user = 'logged_in' in session
# Set some other session variable
session['user_id'... | [
"info@stancik.com"
] | info@stancik.com |
4fedb92719068acc90ab3c0697b69d31c3078c67 | 3e60b7d48d101d6a8057d4b8c5f10cb3d494a98a | /addinvoice.py | c7bc679fb992f372eae9311cb2434def4121d162 | [] | no_license | suraj-adewale/SmartAccount | 15ebdd08954ead735e91b87c4702f4597674181e | cc7c0ca04b9a7a2da0cd0c6f8106041dc90e7ad3 | refs/heads/main | 2023-06-10T05:33:44.878772 | 2021-07-01T22:33:59 | 2021-07-01T22:33:59 | 378,435,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,419 | py | from PyQt5.QtWidgets import QMainWindow,QHBoxLayout,QAction,QTabWidget,QCompleter,QTableWidgetItem,QCalendarWidget,QTableWidget,QAbstractItemView, QApplication,QDialog, QPushButton,QLabel,QMessageBox,\
QWidget,QVBoxLayout,QGridLayout,QComboBox,QLineEdit,QScrollArea,QDateEdit,QButtonGroup,QFormLayout,QTextEdit,QSpinBo... | [
"noreply@github.com"
] | noreply@github.com |
4f2d7e9a93ccb1c73bfa12146ad9add11e573b27 | d07a26e443538c5fc6b0711aff6e233daef79611 | /LearnPythonGuessGame.py | e3a41526a4b12716d27871e2464f08f1855a7ba6 | [] | no_license | Zahidsqldba07/Python-learn | bd602d490ee53f8e5331e70f92919ca315944ff9 | ffc1608695ed6c7c3d2b6789913e34235dcf468e | refs/heads/master | 2023-03-16T02:18:19.155281 | 2020-09-19T09:12:48 | 2020-09-19T09:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | secret_word = "respect"
guess = ''
guess_count = 0
guess_limit = 7
out_of_guesses = False
while guess != secret_word and not (out_of_guesses):
if guess_count < guess_limit:
guess = input("What's the secret word?: ")
guess_count += 1
if guess != secret_word:
print("Hin... | [
"noreply@github.com"
] | noreply@github.com |
6bd1bc226750e4fc2f58126a18698d94ddae4c97 | 605caafb8fd74e713d0a95014c559cede9033e8f | /selenium/copy_courses.py | cf6723011800c93e888f9d7a0a5d23bef93c8ea1 | [] | no_license | cbaca90/blackboard | ed0f2e66f29337a75aa0a8a412edd4b457517e44 | 93f1b1f60884eac9603596256b14e8cf339f2901 | refs/heads/master | 2023-08-12T03:45:09.150444 | 2021-09-21T14:41:44 | 2021-09-21T14:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | from auth import *
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
def copy_courses(driver):
with open('copy_courses.txt', 'r') as copy_list:
copy_line = copy_list.read().splitlines()
for cop... | [
"hcrites@cscc.edu"
] | hcrites@cscc.edu |
3b475b2198f533613949bc998bef4a4c42ea826f | 5eb13a4e16bd195e9ef823021bc296a747ff98bb | /pbsetq4.py | 3ae1819bfbf979e447b978bf7e4af69530947dcc | [] | no_license | Santosh2108/Python | 59fff6d744ce4a1992489c43d7bacbe45a869a2a | b486fc18417d5463852a4f06eeb922aa2f648f6b | refs/heads/master | 2020-03-22T11:22:29.245458 | 2018-07-12T10:37:41 | 2018-07-12T10:37:41 | 139,967,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #A) finding area of the sphere
r = int(raw_input('Enter the radius of the sphere: '))
area=(4/3.0)*3.14*(r**3)
print ('the area of the sphere is',area )
#B) Wholesale rate
coverprice=24.95
discount=40/100.0
shippingcost=3
additional=0.75
count=60
discountprice=coverprice*discount
totalprice=(coverprice-discou... | [
"noreply@github.com"
] | noreply@github.com |
5ca34cd011e6668c0b56e664aa619380e5b92585 | 7d0f2252623d58de13d6c2b4bdb62f789e237aad | /tempimage.py | 63b2148fbd466c62d2f3b9ee71df52629a8795d6 | [] | no_license | orakelet/Drivhuset | 51d4270189065546d7e8d603e2147e3623abe00d | f7f03827179fb29e116f8dd8565351058882284b | refs/heads/master | 2020-03-28T20:36:56.335258 | 2018-07-24T19:15:37 | 2018-07-24T19:15:37 | 149,087,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # import the necessary packages
import uuid
import os
import time
class TempImage:
def __init__(self, basePath="/home/pi/OneDrive/Ute", ext=".jpg"):
# construct the file path
dateString = time.strftime("%Y%m%d-%H%M%S")
self.path = "{base_path}/{date_String}{ext}".format(base_path=basePath,
date_String=dateSt... | [
"bjorn@steine.me"
] | bjorn@steine.me |
4965e4de4a5b88bbbd49f754a5922043ebf947f4 | c4076305e57b18fed25c3ad08f71cba263b8ded1 | /ordinaryPython36/migrations/0011_feed_last_updated.py | 379b49b0cf1e83b81f763b583d9c22bd1b15deb9 | [] | no_license | ruslandzh61/TerraNews_Backend | 498b04a0267ae49c852a76880efd02f753863902 | 9b781b8fb1bec0627c4bc19d250f5dfe69997ca5 | refs/heads/master | 2021-03-13T03:53:20.994479 | 2019-02-19T01:47:39 | 2019-02-19T01:47:39 | 84,026,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-16 11:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ordinaryPython36', '0010_articletrain'),
]
operations = [
migrations.AddFie... | [
"dzhumakaliev_r@auca.kg"
] | dzhumakaliev_r@auca.kg |
b7f9e19bc7036222cb812b05a20b982377dc3a8c | 1147d91ae3552dfa72632727469c136ada3a7e8d | /src/Plot.py | 65c89e1b02a637672c2923464248ed41a29aaa1a | [] | no_license | StephanJon/Plot-Graph-Interpolation | 3e8d23226640cd1e7b6f98e849a9d086af856034 | 0dd0339eed7fe99873a3f757ec6614c65a312bca | refs/heads/master | 2020-04-03T03:55:43.030744 | 2019-03-16T20:23:58 | 2019-03-16T20:55:34 | 154,998,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | ## @file Plot.py
# @author Stephanus Jonatan
# @date February 20, 2018
from CurveADT import *
import matplotlib.pyplot as win
## @brief Returns a x-y graph.
# @details Data points are in sequences X and Y.
# @param X is a sequence filled with x data points
# @param Y is a sequence filled with y data po... | [
"brianjonatan@DESKTOP-EH98R4U.localdomain"
] | brianjonatan@DESKTOP-EH98R4U.localdomain |
4c38981263972d95636d6e02fdba40dbd8f2c5a8 | 0f4cd79db1379dc151e74400b6fc6a79d5b52d08 | /work06/code/server.py | 3eda8298462d5eed64997dd7e199f250b574a1ff | [] | no_license | Detect-er/Coursework | 3cdffe84a61029e31420a4d89341208937520d02 | 91061dc0b2bed021d092e3da933e716c026ba838 | refs/heads/master | 2021-03-22T17:37:39.847713 | 2020-06-13T03:03:56 | 2020-06-13T03:03:56 | 247,388,020 | 3 | 2 | null | 2020-03-22T13:32:24 | 2020-03-15T02:29:43 | C | UTF-8 | Python | false | false | 1,211 | py | from socket import *
from time import ctime
HOST = '127.0.0.1'
PORT = 4567
BUFSIZ = 1024
ADDR = (HOST,PORT)
filename = "/mnt/ext4scull"
#1、创建服务端的socket对象
tcpSerSock = socket(AF_INET,SOCK_STREAM)
#2、绑定一个ip和端口
tcpSerSock.bind(ADDR)
#3、服务器端一直监听是否有客户端进行连接
tcpSerSock.listen(5)
while True:
print('waiting for connection... | [
"noreply@github.com"
] | noreply@github.com |
1817dddcfb6a350fe4323472755486725543c750 | d70db722710bccf7a834e8e4acdb376b151b20a1 | /apps/finances/models.py | 0f4b847dc96b1d4ee9872b62f624905c17cde98f | [] | no_license | intentaware/Vader | b0d433f640b244d592126b2713506d214dc1d287 | 54d5d799beab1fc5cef99fb90d4e50e00720bfe0 | refs/heads/master | 2021-01-20T07:07:11.393929 | 2017-12-06T19:16:53 | 2017-12-06T19:16:53 | 30,995,526 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | import shortuuid
from django.db import models
from django.utils.text import slugify, Truncator
from django.contrib.postgres.fields import JSONField
from django_extensions.db.fields import ShortUUIDField
from apps.common.models import *
from apps.common.utils.money import convert_to_cents
from .mixins import Stripe, CUR... | [
"yousuf.jawwad@gmail.com"
] | yousuf.jawwad@gmail.com |
ed1d3892b3a5accf4bd2915df77884af4342a114 | 6a233770f9adec1c1258b493b5bd66d89f2c902a | /add_data.py | e16817d9ae9a405d3afb92d29035548211eac9c0 | [] | no_license | lionandbull/Movie-website-django | a13085701bfe4d30e4012c450c0e919c8936ec94 | aa8c43e5eb9d9bcdfc9cffc3d2fa9f06d8f7d12d | refs/heads/master | 2020-03-27T16:41:38.310421 | 2018-10-03T21:44:26 | 2018-10-03T21:44:26 | 146,800,333 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | from imdbpie import Imdb
import sqlite3
def execute_sql(s):
con = sqlite3.connect('movie.db')
with con:
cur = con.cursor()
cur.execute(s)
def single_quote(s):
if len(s) == 0:
return 'None'
if s.find('\'') != -1:
return s.replace("\'", "\'\'")
else:
return ... | [
"liuweixi0819@gmail.com"
] | liuweixi0819@gmail.com |
5bc3cd7e613d2f19a2b9afeab49fed7008c3a986 | 4a344e17523c960a46e0d1d443044dae2505a2bc | /pages/contacts/GroupList.py | 06ceb11c258b01b773f57891dad1426816a0463a | [] | no_license | JordMo/andfetion_ui | 99e024a12bde7b5ae36b6ba8ee0054f2e482bf2c | e05d7c1362a4543aa31c39326fb3690d2f7e38fb | refs/heads/master | 2023-05-25T18:51:15.289265 | 2019-09-06T10:47:28 | 2019-09-06T10:47:28 | 206,772,795 | 0 | 0 | null | 2023-05-22T22:17:00 | 2019-09-06T10:41:26 | Python | UTF-8 | Python | false | false | 30,769 | py | from appium.webdriver.common.mobileby import MobileBy
from selenium.common.exceptions import NoSuchElementException
from library.core.BasePage import BasePage
from library.core.TestLogger import TestLogger
#import preconditions
import time
class GroupListPage(BasePage):
"""群组列表"""
ACTIVITY = 'com.cmcc.cmrcs.a... | [
"mozhuoda@139.com"
] | mozhuoda@139.com |
a304f77b1ab57e3a08ec5dc52f5ef0fd366f16de | 7ccfe901f8cc39ef35b2fb5e5accadf11af8e90a | /dask_hpcconfig/__main__.py | 484be2d8c46103e8b9c2a0fc800672e21778bfe1 | [
"Apache-2.0"
] | permissive | umr-lops/dask-hpcconfig | bbf34bda787b59afde12e4b3b4788b3923374d16 | be886561ccb3e4574ae2dd3296f0fa771108b33f | refs/heads/main | 2023-08-09T06:40:08.421511 | 2023-07-27T10:33:06 | 2023-07-27T10:33:06 | 452,758,751 | 6 | 2 | Apache-2.0 | 2023-09-01T11:53:00 | 2022-01-27T16:30:29 | Python | UTF-8 | Python | false | false | 60 | py | from . import cli
if __name__ == "__main__":
cli.app()
| [
"keewis@posteo.de"
] | keewis@posteo.de |
a7a66ee6bfc9b3d26e5dbb4a0a9df8f27b2a72e3 | 4c44c593048fa4e00fb0334209632a286886efd9 | /sale_business_unit/models/product_business_unit.py | df6f50b9832b5d5adf851f1930983b0a7f67bcba | [] | no_license | treytux/trey-addons | 0c3fec43c584d46bd299b4bca47dcc334bedca60 | 1cda42c0eae702684badce769f9ec053c59d6e42 | refs/heads/12.0 | 2023-06-08T21:56:09.945084 | 2023-05-29T10:05:53 | 2023-05-29T10:05:53 | 114,281,765 | 19 | 49 | null | 2023-05-29T10:05:55 | 2017-12-14T18:10:39 | Python | UTF-8 | Python | false | false | 8,333 | py | ###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
from datetime import date
from odoo import _, fields, models
class ProductBus... | [
"roberto@trey.es"
] | roberto@trey.es |
cb5a4b34fb49207a33bf8d1192cb7f3761407b26 | 237598dd6cbd3b85f79221195491893814de8574 | /webservicenew.py | 6e60576ab4f7d1321564d3d4541d55ebdd81e368 | [] | no_license | harsha97sahajan/Road-Damage-Detection | 88ede0cb90f93e9e6ab9df5b72432542c0af0240 | 5c85bb740151e872f027af28ab4a8e53fc2b5a8c | refs/heads/main | 2023-08-30T07:03:41.069394 | 2021-11-12T05:53:38 | 2021-11-12T05:53:38 | 427,242,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,188 | py | import os
from flask import *
import pymysql
from werkzeug.utils import secure_filename
from src.classify import predictfn
con = pymysql.connect(host='localhost', port=3306, user='root', passwd='', db='roadsens')
cmd = con.cursor()
app = Flask(__name__)
@app.route('/userreg', methods=['get', 'post'])
def... | [
"noreply@github.com"
] | noreply@github.com |
19261cb62700033a9cef08d8687bae4821b6f92d | 21569b68b510b55bdc2acb1ff5ae521b31d44a79 | /bin/pyrsa-encrypt-bigfile | 9afaf7317207ef369910d93588778e7aefc825d6 | [] | no_license | howarder3/Rpi3_study | a99faef434ae4f751d4d9f339aca918186f7cb3e | 533ba60ae4d11b5e3cebc12283e067ccee5a5cfd | refs/heads/master | 2020-03-18T18:11:01.030936 | 2018-05-27T20:46:40 | 2018-05-27T20:46:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/pi/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import encrypt_bigfile
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(encrypt_bigfile())
| [
"howarder3@gmail.com"
] | howarder3@gmail.com | |
58438ab2d36cbce9f24fee5708909e935510e8a4 | 42e67c2ad5ec6500ab8523cfdcd8327997ad8486 | /Pyproject/controlstructure/usatax.py | c6aa806b1efedb6ef2efc1ae2e1b65ad45dd8cff | [] | no_license | meg1988/PycharmProjects | 34f45e36b835492ea2022839ca658e19c03fd58e | d8cd1cf262c1a374236ba0b583bb4838069eb3f2 | refs/heads/master | 2020-12-30T23:47:29.268050 | 2017-02-02T21:23:41 | 2017-02-02T21:23:41 | 80,572,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py |
fedtax= .1
statetax = {"CA":.1, "MA" : .15}
def tax_calculate(income,state):
return (income * (1-fedtax + statetax[state]))
caincome = tax_calculate(1000,"CA")
print(caincome)
maincome = tax_calculate(1000,"MA")
print(maincome)
| [
"megharastogi92.8@gmail.com"
] | megharastogi92.8@gmail.com |
f1403fe05fb506c6faed6be2e417b0d20f647e3b | c8b0f52d76d35986fd97d55857196b50627a5aa6 | /jarvis.py | 5fc1b66f26841f8ff8ab3af6fc6d891982376d8a | [] | no_license | sakshampathak1508/jarvis | 08780927e26c7bd71dce198371bac6f8edf0bebb | 988c2488ab628ce073d36a9200cffd841da8909a | refs/heads/master | 2023-03-08T23:03:54.341407 | 2021-03-01T19:17:04 | 2021-03-01T19:17:04 | 340,014,994 | 1 | 2 | null | 2021-03-01T19:17:05 | 2021-02-18T10:33:05 | Python | UTF-8 | Python | false | false | 4,195 | py | import pyttsx3
import datetime
import speech_recognition as sr
import os
import webbrowser,wikipedia
import pywhatkit as kit
import smtplib
from googlesearch import search
# time
# search
# wikipedia
# search youtube
# play youtube
# spotify
# send whatsapp message
phone_nums = {
"Enter name" : "Enter your phone... | [
"sakshamvpathak@gmail.com"
] | sakshamvpathak@gmail.com |
e11e11e8f056afa4c697607dfc0b4a9a999a6217 | 3f31e3cf84277f48fe5c646bf383b9b8c36a19bc | /basics/Instrukcje/6.py | 812a5508addb3bd0db0e213b51b8c8227f363b0d | [] | no_license | kchmielewski/python_basics | 046e0786bd0eb1668daaa2e6b196db7b2569d3f2 | 2d14c12617e4276da515c2dde6e64fabc92f24b4 | refs/heads/master | 2021-01-13T16:16:05.152126 | 2018-10-26T15:36:34 | 2018-10-26T15:36:34 | 81,139,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | '''
Poniższy kod generuje listę l 4 unikalnych losowych liczb całkowitych z przedziału <0, 5).
import random
l = random.sample(range(5), 4)
Napisz jednolinijkowy kod, za pomocą którego wyświetlisz na ekran napis “big number” jeżeli suma liczb w liście jest większa niż 6,
w przeciwnym razie wyświetl na ekran napis “sma... | [
"chmielewski.karol.96@gmail.com"
] | chmielewski.karol.96@gmail.com |
3e5af7c3636c13d85734ff1e08ce448c0397d9ba | 74651a896dad75ddc8ba3e2e29e778049a349aff | /whatplane/models/predict_model.py | 9ddd0ca63ac2c0f603594148a6d8c889eb71f6f7 | [
"BSD-3-Clause"
] | permissive | what-plane/what-plane-api | 537eb5734adb7caa2c76fc18ecd8de9b25c8e0d3 | fbd8ec8d59437cb8bcc0c55275850c653a7a902a | refs/heads/main | 2023-03-01T03:02:11.459691 | 2021-02-14T21:40:39 | 2021-02-14T21:40:39 | 313,305,645 | 0 | 0 | BSD-3-Clause | 2021-02-11T00:08:26 | 2020-11-16T13:08:11 | Jupyter Notebook | UTF-8 | Python | false | false | 3,031 | py | from pathlib import Path
from typing import List, Tuple
from PIL.Image import Image
import torch
from torchvision.models.densenet import DenseNet
from .data_helpers import process_image_data, process_image_file
def test(dataloaders, model, criterion):
# TODO Refactor this
# monitor test loss and accuracy
... | [
"parr.will.08@gmail.com"
] | parr.will.08@gmail.com |
2eb8f88b7861661d8799f529e1d447d7eb3f13dc | e4529d420f55200646f3891448f82c3907804a77 | /test.py | 6d112f98fb53945ac6b21fe0ca545fb771568b22 | [] | no_license | heyuanYao-pku/SynMapping | 8779dff77735f6abcc1c11e7effb59b1a9915474 | aab2d7d9b08b7b4d578a06e4b915da0d2178a6ba | refs/heads/master | 2022-04-06T09:20:07.929773 | 2019-12-11T02:07:07 | 2019-12-11T02:07:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | import json
import cv2
import os
import numpy as np
import TensorMap
data_path = 'example\\data.json'
data = json.load(open( data_path,'r') )
print(data.keys())
mList = data['mlist'][:35]
tmp = data['P']
image_list_path = 'example\\image_list.npy'
image_list = np.load(image_list_path)
#mList = mList[0:20]
#Plist = np.... | [
"18811711520@163.com"
] | 18811711520@163.com |
5e36f42372dbf6feef4dfe79e1f36c07e3c53a73 | 070e299ab646eef31ac0c767b14e45e9e591683b | /16_1281_SubtracttheProductandSumofDigitsofanInteger.py | c65601301a71556d0b417b7421542747d655d5e2 | [] | no_license | benny84416/test01 | b6e4deffb4936db0d73c0b64e3da4da1e1015db9 | f391548376e9a9f88e7d6c01581a8ce3feed8f71 | refs/heads/main | 2023-04-21T02:58:10.293615 | 2021-04-10T16:50:03 | 2021-04-10T16:50:03 | 348,393,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Example 1:
# Input: n = 234
# Output: 15
# Explanation:
# Product of digits = 2 * 3 * 4 = 24
# Sum of digits = 2 + 3 + 4 = 9
# Result = 24 - 9 = 15
# n = 234
n = 705
Sum = 0
Product = 1
List = list(str(n))
for s in List:
# print(s)
Sum+=int(s)
Product*=int(s)
# print(Sum)
# print(Product)
print(Prod... | [
"gasry691@yahoo.com.tw"
] | gasry691@yahoo.com.tw |
cba4f7f7a86bbd2c06e4b92208fe3e95d44f31ac | 99b84337ae66ad2877544fd158f20e7f4cd96520 | /day01-10/day04/晚间作业/4_求分数和.py | 88cd4c266f76603fc47dbe64b8a9ae5e47a016b0 | [] | no_license | jiajiabin/python_study | cf145d54cabce2cb98914b3448ed7d0e5c1c146c | b4faaff26ee9728af2e80942ba6a7c7f6a8b0f86 | refs/heads/master | 2020-06-21T21:31:26.034978 | 2019-08-26T11:39:34 | 2019-08-26T11:39:34 | 197,556,254 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #求1/1 + 1/2 + 1/3 + 1/10 的值
a = 10
b = 0
for i in range(1,a+1):
b += 1 / i
print(b) | [
"2592668397@qq.com"
] | 2592668397@qq.com |
5979b6ffe880e35199d444411456ee90b6941755 | 4cf053a451cd0436411912268c9140a6fc7af808 | /Python/Lab3/LogisticRegression.py | 325da6c13d69c4491db26c396f78300ba4b6b326 | [] | no_license | Chaitanyaperavali/python-deeplearning | de63d5595df49cca8b0eb0d55ebc5a41f3eaf5ee | ea4863d41455b1ba451291ffdbd6acb9f7296110 | refs/heads/master | 2021-05-09T11:38:33.299206 | 2018-04-07T15:22:17 | 2018-04-07T15:22:17 | 118,994,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import numpy as np
from sklearn import cross_validation
from sklearn.linear_model import LogisticRegression
# LDA model
lg = LogisticRegression()
# Load wine data from input file
d = np.loadtxt('wineinput.data',delimiter=',',skiprows=1)
# split input data into input and response
x = d[:,1:]
y = d[:,0]
# Perform cro... | [
"Chaitanya Peravali"
] | Chaitanya Peravali |
c01a071eaa33b53d906dd544cdf2f54e10c8fb4b | 8243514e8d95ccb7648d37a89accc8b91a602cc6 | /setup.py | cb813da71ca0b01eb71d04572d790db37ff780f8 | [] | no_license | nelastrnadova/pipeline | 12d9f02a294762f86a52ca708b5bdf5ef5f7c085 | 0fba29d9c1a9cde7a5471eb42d2088639c2f8a78 | refs/heads/main | 2023-03-18T05:59:59.774426 | 2021-03-15T14:55:45 | 2021-03-15T14:55:45 | 347,218,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | import argparse
from glob import glob
from database import Database
from file import File
from yaml import Yaml
parser = argparse.ArgumentParser()
parser.add_argument("-db", type=str, help="Path to db file", default="database.db")
args = parser.parse_args()
db = Database(args.db)
for file in glob("initial_data/*"):
... | [
"strnadova.nela@linuxmail.org"
] | strnadova.nela@linuxmail.org |
c05db23369700bf9bda51685ae774bb8e46349af | ef0f418e5ce98d2b85a7493b4dd4a9dd7672d3fe | /poc/vxworks_rpc_udp_17185_probe.py | 0d83c724c26d645c76d6225ee5ca4f3558273d18 | [] | no_license | knownsec/VxPwn | 481e3dbfd2d524c1cf8fd9a32cd24fd9042eea0d | 6555f49675f0317d4a48568a89d0ec4332658402 | refs/heads/master | 2021-01-10T08:28:45.948113 | 2016-01-16T11:12:46 | 2016-01-16T11:12:46 | 49,614,826 | 160 | 96 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | #!/usr/bin/env python
# coding=utf-8
# probe on udp port 17185, VxWorks WDBRPC V1 & V2
# By dog2@404
import socket
import struct
def scanV1(host, port=17185, timeout=5):
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.settimeout(timeout)
payload_hex = 'cc6ff7e2000000000000000255555555000000... | [
"dog2@dog2deMacBook-Pro.local"
] | dog2@dog2deMacBook-Pro.local |
be67fef614ce58137d6e137d9650ea154eee845d | b00846dbec1fdc932d5a7856ff42b24bc93ae9bf | /rec/__init__.py | 0aa1a16fb15cfd6d68687099370138cf4b1c0e1e | [
"MIT"
] | permissive | iawia002/rec | 3c533536c94a75eeb7a3041f732ce67136cd093f | 04637c2d68e5997efbd326eae912ef3b585b4dd8 | refs/heads/master | 2021-09-05T10:23:55.699510 | 2018-01-26T11:26:20 | 2018-01-26T11:26:20 | 111,183,941 | 2 | 0 | MIT | 2018-01-14T09:14:09 | 2017-11-18T06:54:31 | Python | UTF-8 | Python | false | false | 46 | py | # coding=utf-8
from .domain import * # noqa
| [
"z2d@jifangcheng.com"
] | z2d@jifangcheng.com |
ba6088e55bae994ac54dc793a94b87326b66b35e | 509b4121e18517cff4bbaa7ba1a4d2a24db8395d | /util.py | a7b87f35ab0e0400d050fc443f5d50bab29053af | [] | no_license | jkim796/assembler | eec7158e8206fd34fe0fd0280f49e887c557f77d | d78d5a01cc3c020407079987f779bdff8f5d9e06 | refs/heads/master | 2021-05-07T01:02:38.217759 | 2017-11-11T05:16:47 | 2017-11-11T05:16:47 | 43,766,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,748 | py | import re
import tables
### TODO: Error message when R-type, S-type are used wrong ###
nameTable = {}
labelTable = {}
wordTable = {}
# returns a list of lines, delimited by the \n character
def readFrom(path):
with open(path, 'r') as f:
lines = f.readlines()
return lines
def writeTo(path, hex):
... | [
"jkim796@gatech.edu"
] | jkim796@gatech.edu |
667907153fb3690183536d53d10538fd0e5ee2f8 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/197978/Grasp-and-lift-EEG-challenge-master/genInfos.py | 3fe287f7ae615d7d863ba13934411a5cad7ad2b9 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 13 21:35:28 2015.
@author: fornax
"""
import numpy as np
import pandas as pd
from glob import glob
from mne import concatenate_raws
from preprocessing.aux import creat_mne_raw_object
# #### define lists #####
subjects = list(range(1, 13))
lbls_tot = []
... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
06f746d46e92260fad3bdfc7fdedbc74a1648ad6 | a6002f605d2f906cf86a22c467ee7f72cb30f314 | /sambuca/free_parameters.py | f3360d70b710af5e43da8e723a24c998460f84a9 | [
"MIT"
] | permissive | stevesagar/sambuca | c41e6d56d2e65a7b9b8ad47fc2564efa5dfec4df | d153684d48c31ec71c6df5c6c86b9c80da332793 | refs/heads/master | 2020-05-23T11:20:13.793098 | 2018-07-10T03:20:22 | 2018-07-10T03:20:22 | 80,386,653 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | """ Sambuca Free Parameters
Defines the default set of free parameters for use with the
default parameter estimation function.
"""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals)
from builtins import *
from collections import namedtuple
FreeParameters ... | [
"daniel.collins@csiro.au"
] | daniel.collins@csiro.au |
7d61b22340803854812ce2fb50445f429aebeeb0 | df44affab179c2546fb3e0d1dc29eebcfdf51c1c | /toughradius/common/smsapi.py | 06534cfab472a0cec1e3f4ef54e6c8980f14269e | [] | no_license | sailorhdx/taurusradius | 121c508e7faffaddcd5326d2b6d3710eaf0ed08e | 92d30820611a0c9102ae41713ea3c35437a3c6ee | refs/heads/master | 2021-01-22T02:28:31.543338 | 2017-06-17T02:15:33 | 2017-06-17T02:15:33 | 92,362,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/env python
# coding=utf-8
import time
import json
import base64
from urllib import urlencode
from toughradius.toughlib import apiutils
from toughradius.toughlib import logger
from toughradius.toughlib import utils
from toughradius.toughlib.smsutils import smscn
from toughradius.toughlib.smsutils import qclou... | [
"sailorhdx@hotmail.com"
] | sailorhdx@hotmail.com |
c8d81a928a94485e734bc350a35135eadc866d64 | 8683ea0e2a450f163737740bad07a6ca805120ce | /run.py | 110ccab594694465d738cd4b00f02f5ce425814e | [] | no_license | AllanVieira/flask-microblog | 250f5bfe54707e34cbaba314e0c9970555f7df9d | 88a846a22ac6ba49dad3ced36188cda4d4dca0d6 | refs/heads/master | 2021-01-25T09:53:31.980809 | 2015-07-11T15:57:46 | 2015-07-11T15:57:46 | 38,900,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | #!flask-microblog/Scripts/python
from app import app
app.run(debug=True) | [
"vieira.allanc@gmail.com"
] | vieira.allanc@gmail.com |
5818777c607c788982754ba5803d7c4594917e2c | 4e06ed7a0438a7ed8289c4b77fce840750e8f631 | /ProgrammingProblems/src/project_euler/P002_even_fibonacci_numbers/solution_02_best.py | f7d29892de8249997bff4a27b61976144d8b0c68 | [
"MIT"
] | permissive | PavanKumar-K-A/Notes2Myself | bdb3793cc5de32f994998116e86eeffbe0447059 | 8c4fdde1a4abd5fb444f5740af460792d345d964 | refs/heads/master | 2020-12-02T16:34:42.433654 | 2016-07-29T11:27:39 | 2016-07-29T11:27:39 | 64,475,802 | 1 | 1 | null | 2016-07-29T11:31:07 | 2016-07-29T11:31:07 | null | UTF-8 | Python | false | false | 1,152 | py | """
Technique
- A slight improvement over the previous technique and a slight but unnoticeable improvement in performance as well.
- Since the series starts with 2 odd number, the third one will be even because it is the sum of two odd numbers. The
next two will again be odd since one odd number gets added to an even... | [
"mrohith@perfios.com"
] | mrohith@perfios.com |
a890d4144bf7a932912ac6c94a213693f7940cdf | e9ceabd8414cdc90b374ee0b39c522b9df80c074 | /tools/occam/occam/targets/interface.py | d8c64495b2edc048df9224861f7e4549932c0f8b | [] | no_license | Wajihulhassan/SelfContainedPrevirt | 275605079442ce97111350e999b1a6cdbbadb7c7 | ea2f9127921e3bb3e72a72436f49ec3698137073 | refs/heads/master | 2020-05-17T23:52:39.022564 | 2013-06-09T23:26:35 | 2013-06-09T23:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,659 | py | # ------------------------------------------------------------------------------
# OCCAM
#
# Copyright © 2011-2012, SRI International
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redis... | [
"scott@thinkmoore.net"
] | scott@thinkmoore.net |
d2fee084c8ea4287d28cdf169c8e321a67e58e32 | 44cbc40e66c5a81507c74f0afd8f63b8d1de42c5 | /sequence_solver/sequence_solver.py | c59087fcf4c862938c20e1e212eff6517ebe6084 | [
"MIT"
] | permissive | jonathan-hepp/Sequence-Solver | 3453666d68b5a6ea25f49783ae113b957c00664b | 0f7e7ba287b9a90c181755f757bffa9c54d207f4 | refs/heads/master | 2021-01-19T13:46:39.600306 | 2017-02-27T18:26:05 | 2017-02-27T18:26:05 | 82,417,094 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # -*- coding: utf-8 -*-
import strategies
class SequenceSolver:
def __init__(self, sequence):
self.sequence = sequence
def solve(self):
for strategy in StrategiesFactory():
try:
return strategy.solve(self.sequence)
except:
pass
class... | [
"jonathan.hepp@gmail.com"
] | jonathan.hepp@gmail.com |
c10252bfec21903bc8ae0d91f331ff0f08794f14 | 95ee2471fd393c9cb9807a867dbf6bc000c83484 | /Python/extraset.py | f4b2b970cfc213c7388b6e33f581b6bff00581b5 | [] | no_license | Hugens25/School-Projects | 6c7be0e3f96c651162595bb467de2334d2f91152 | b8d40c4cfcf811e7a62f6d5e1c2bf5bd8d5b1480 | refs/heads/master | 2020-07-02T15:01:39.898406 | 2019-08-10T02:34:21 | 2019-08-10T02:34:21 | 201,565,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | #import itertools
def compare_vals(a,b):
possible_values = [0,1,2]
possible_values.remove(a)
possible_values.remove(b)
#print('Possible Values [0]: {}'.format(possible_values[0]))
return possible_values[0]
num_cases = int(input())
for i in range(num_cases):
info = list(map(int, input().split(... | [
"noreply@github.com"
] | noreply@github.com |
8be063a8d6e92ff4b638faa109def6bca20d490b | 1506063b93cbb1f9978ef78f822c797df4058a10 | /test_circle.py | 80508deed67561efcb6286df8d66abe910b5e627 | [] | no_license | renanstn/unit-test-python | 37c39c0fa4274110a0acfe77ae0689a7b498fd70 | 1719123119cf039c5075c9120b5af43cb9f59fd7 | refs/heads/master | 2022-11-30T08:34:18.265902 | 2020-08-05T21:17:03 | 2020-08-05T21:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import unittest
from circle import circle_area
from math import pi
'''
Para rodas os testes, executar em linha de comando:
python -m unittest test_circles
ou somente
python -m unittest
Para obter mais informações sobre os assert methods:
Entre no python,
import unittest,
help(unittest.assertSetEqual),
'... | [
"renan_ota@hotmail.com"
] | renan_ota@hotmail.com |
b8a0233512848689eab5dea8d359062c641e2a1d | 6a2bda031f53b057e7aac3aeebd070151f5923f1 | /zmqpy/zmqpy.py | d012bf64ed8ad12196b425161f1ed1cec45fec26 | [
"BSD-2-Clause"
] | permissive | pfw/zmqpy | ab34b9f9f7e662e5d056a5a35078c27f4c9b5d9b | 185758349176709da43327e1f9b7c7c04d4ca850 | refs/heads/master | 2020-12-24T20:14:41.117019 | 2012-12-10T18:43:17 | 2012-12-10T18:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,024 | py | # coding: utf-8
from ._cffi import C, ffi, zmq_version, new_uint64_pointer, \
new_int64_pointer, \
new_int_pointer, \
new_binary_data, \
value_uint64_pointer, ... | [
"felipecruz@loogica.net"
] | felipecruz@loogica.net |
5a5f34191a28725a3827b90ff01bbdf2a66566b0 | 38b2cf51cbd5cdbb062bf1393dae12237dd4f071 | /二叉搜索树与双向链表.py | d9ad708f048d710bb74d2d5c775321a945865022 | [] | no_license | Wsssssss/target-offer | 4986ab6ec45a0dd123d4d578c041057df98f81ce | c595e5abee5244602adf9a285380bec9816e17e5 | refs/heads/master | 2020-06-17T03:33:46.318935 | 2019-09-16T15:48:57 | 2019-09-16T15:48:57 | 195,782,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # 题目描述
# 输入一棵二叉搜索树,将该二叉搜索树转换成一个排序的双向链表。要求不能创建任何新的结点,只能调整树中结点指针的指向。
class Solution:
def Convert(self, pRootOfTree):
if not pRootOfTree:
return None
if not pRootOfTree.left and not pRootOfTree.right:
return pRootOfTree
left = self.Convert(pRootOfTree.left)
p =... | [
"569467716@qq.com"
] | 569467716@qq.com |
79194914e7ccad5fd5e4bcf44079d6386cb961dd | 1b01d3c77d30cf6fb6aea9be42ff726960191092 | /build/laser_filters-indigo-devel/catkin_generated/pkg.develspace.context.pc.py | 704444c1ebf8c08a9dbeb1b577615230ec778fa5 | [] | no_license | 13386030098/laser_navigation | 849f6e70bca212a6a37554181a617c3962294e4c | 471aa4e3ce649a144b60aa77e808467cb208b443 | refs/heads/master | 2022-11-28T15:45:33.071171 | 2020-08-19T09:18:20 | 2020-08-19T09:18:20 | 267,012,401 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/zzz/laser_navigation/src/laser_filters-indigo-devel/include".split(';') if "/home/zzz/laser_navigation/src/laser_filters-indigo-devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "sensor_msgs;... | [
"2668920514@qq.com"
] | 2668920514@qq.com |
a1d0620331051435678cf0a9e29082e724a97bc7 | 8a907374778da9b7ea37bed9d1de862a28dcd30e | /appserver/community/migrations/0003_community_city.py | 7af70f9f06772723fdc2b5d9574dba69a1a403f6 | [
"MIT"
] | permissive | onebitme/SWE574-Horuscope | f1375f1a233c8959fd1369a6dcebb958a267b057 | 9725dd356cbfd19f0ce88d4a208c872be765bd88 | refs/heads/master | 2022-12-01T06:05:21.130558 | 2020-08-07T11:04:37 | 2020-08-07T11:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.1.1 on 2020-06-09 23:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('community', '0002_community_author'),
]
operations = [
migrations.AddField(
model_name='community',
name='city',
... | [
"ersuns@gmail.com"
] | ersuns@gmail.com |
e3081826c16e08d1104471dac1a6abd7e415551c | b8a195eff34bb7a03012b27356536f9713f18ff6 | /I0320063_exercise9.5.py | 957b970e95aadabddc1e142216cb19f8725219a3 | [] | no_license | AfinFirnas/Muhammad-Firnas-Balisca-Putra_I0320063_Abyan_Tugas9 | f66711831a01f0b30af1779093051fcb43fc0b25 | 89083ee2c37f73fa9a218e12bb0a92db353bf8cc | refs/heads/main | 2023-04-17T14:48:59.361287 | 2021-04-30T11:51:38 | 2021-04-30T11:51:38 | 363,116,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | A = [
[
[10,20,30],
[40,50,60]
],
[
[11,21,31],
[41,51,61]
]
]
# mengakses elemen 10
print(A[0][0][0])
# mengakses elemen 50
print(A[0][1][1]) | [
"noreply@github.com"
] | noreply@github.com |
24da100dd2dcfb1fbf2dc0f990d2db5cecb40f9e | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py | 0d43959e0413d45f681583c3efd5aacfe3752027 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 13,580 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
6efada3b5038ccf2cd2a1a11da2d52c3112ff747 | 013c6e0fc00ce9d0775b7c80466a65e9576ae163 | /ImageDownload/imgLoader.py | 948dfe40a7e686b356c1e68d619627a645b14007 | [] | no_license | DipuTut/Python | 974f120370568e35df386ac6c064827fd1eeb270 | ae425203dcfd9c84bef6730e61bd43a4ceca0f3c | refs/heads/master | 2020-04-18T04:29:43.504804 | 2016-08-19T08:25:38 | 2016-08-19T08:25:38 | 66,065,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Retrieving Image data (keeping original names unchanged) from URLs in
# a Text file and store them in local hard disk
import urllib.request
import fileinput
for line in fileinput.input():
line = line.replace('\n', '')
URL = line
IMAGE = URL.rsplit('/',1)[1]
urllib.request.urlretrieve(URL, IMA... | [
"mddipu@gmail.com"
] | mddipu@gmail.com |
5f7a9d0592105bfbf7bb5cee5e5f926ff19e1c7b | e161cc9ad82699f83461985a5ffb930c63c4d16f | /app.py | 4acd70d0ca49f27e4512737cd4c8a1cd76c61aef | [] | no_license | karanbajrang07/GOCORONA | acb3acefc5c00da1e56959a0c4e30aa48e209a19 | e9b5437d3dfbc9d9f8fa1f6431a67ddffdca841a | refs/heads/master | 2023-05-25T09:44:02.543056 | 2020-03-22T10:15:42 | 2020-03-22T10:15:42 | 249,150,188 | 0 | 0 | null | 2023-05-22T22:42:35 | 2020-03-22T09:24:50 | Python | UTF-8 | Python | false | false | 1,604 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objs as go
import pandas as pd
import plotly.graph_objects as go
from scrap import *
import os
# import urllib
import re
import pandas as pd
import urllib.request
import dat... | [
"vivekkhanna987@gmail.com"
] | vivekkhanna987@gmail.com |
1f0ecf8970323ca6e90866fda6313437fd553ddf | 6e0363f62f8432bdbf84a6b076af8a6e64ffb77d | /database.py | 310c9cd088eea54dae102af68caceefd5595b825 | [] | no_license | bandirenuka/Company_Info | 63d1477b06a0cf5d7b7da2a763e008525144e911 | 54a682cde999d8be6022d1649700fd95d470424c | refs/heads/master | 2023-06-26T20:26:59.200126 | 2021-08-01T17:36:23 | 2021-08-01T17:36:23 | 391,698,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | from model import Company
import motor.motor_asyncio
from typing import List
client=motor.motor_asyncio.AsyncIOMotorClient('mongodb://localhost:27017/')
database=client.Companyd
collection=database.Companyt
async def create_company(company):
document=company
result=await collection.insert_one(document)
... | [
"71758275+bandirenuka@users.noreply.github.com"
] | 71758275+bandirenuka@users.noreply.github.com |
a0ce3ae8e6e2426106cc017889777f243291f359 | 7b725bfc551953331c2624156738772b55ad5e03 | /server/tests/test_transformers.py | c86c8984e49fb23a1e8cecbbcd4816627bb83a89 | [] | no_license | rbarbaresco/weathermap | 5f0b32498fead2f77f45e1656d79ba95c66d6a9d | b298afdafc7ff8a9350284247ff206783a68977d | refs/heads/master | 2021-07-13T04:54:31.662211 | 2017-10-19T12:29:14 | 2017-10-19T12:29:14 | 106,970,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import unittest
import json
from server.weathermap.transformers import openweathertransform
class TestTransformers(unittest.TestCase):
with open('florianopolis.json', 'r') as file:
floripa_forecast = file.read()
def test_should_bring_five_days(self):
response = json.loads(openweathertransfo... | [
"barbaresco.rodrigo@gmail.com"
] | barbaresco.rodrigo@gmail.com |
650d4bc537b1b13cc59ad77a6032fd9401d7bda6 | 6a368201fab627448fc2165ecd533ad8c33d262f | /thucuong.py | da25c9def854e9f6fee1db302a6792d795308b62 | [] | no_license | thanhtrung5763/DoAnOOP_Bai2_Python | c05674475030f238058d604c202b662a876091aa | 97f05d76e7fb5dfe6698d94aed9937f218a667fa | refs/heads/master | 2023-02-21T09:32:28.939721 | 2021-01-27T05:42:20 | 2021-01-27T05:42:20 | 328,703,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from thucpham import ThucPham
from quanlithucdon import QuanLiThucDon
class ThucUong(ThucPham):
def __init__(self, Ten=None, Gia=0, TinhTrang=None, ThoiDiemBan=None, Da=None):
super().__init__(Ten, Gia, TinhTrang, ThoiDiemBan)
self.Da = Da
QuanLiThucDon.lThucPham.append(self)
QuanLi... | [
"thanhtrung5763@gmail.com"
] | thanhtrung5763@gmail.com |
96faf968490377dd49d59ec2795364de9ee2223c | 5d0c9055d52dae6dc0e76003213165ec843a950d | /mercadolibre/mercadolibre/settings.py | 4b3d249ca8407257447a809a5c5a9c4a5f760487 | [] | no_license | gmtw/curso_web_scrapping | bdfac8ddb37c980b82dd6980813cefd8dae6fdc7 | 4bae3d747b644f208febc502389e76bc82860542 | refs/heads/master | 2020-12-21T10:43:33.142999 | 2020-01-27T03:00:14 | 2020-01-27T03:00:14 | 236,407,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | # -*- coding: utf-8 -*-
# Scrapy settings for mercadolibre project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/... | [
"julio_somo@ciencias.unam.mx"
] | julio_somo@ciencias.unam.mx |
f52a29a93a837fa8d7b68371fbafd667d115df5c | 13525a82e1b1545b81d155956a1d310fa20a06fc | /Section-18/Python-data-structures/22_sum_floats/sum_floats.py | 7db779a1fe6835ce94d877cd9d4dd1b8920a1e04 | [] | no_license | trevormcdonald/Springboard-Exercises | 55cd9f3a4edf560632fe46c23dcccaddced95878 | 7dffcb0b524ae4fee0989af7b5e5b25808276d68 | refs/heads/master | 2023-02-21T05:24:00.269708 | 2021-01-19T00:57:46 | 2021-01-19T00:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | def sum_floats(nums):
"""Return sum of floating point numbers in nums.
>>> sum_floats([1.5, 2.4, 'awesome', [], 1])
3.9
>>> sum_floats([1, 2, 3])
0
"""
sum = 0
for num in nums:
if isinstance(num, float):
sum += num
return sum
| [
"mrm257@cornell.edu"
] | mrm257@cornell.edu |
11b3528b2e69e8e20b3ffec5e3cabb26665f60f8 | 7653ddbbc2256fae9cc62251f0241d0e9696df7d | /pyshtools/spectralanalysis/cross_spectrum.py | 5b48e4b63cf25c38d0ad3ff3a882735c27d890b2 | [
"BSD-3-Clause"
] | permissive | SHTOOLS/SHTOOLS | c3415b38da290805ecdfd59699587e5ac5233cc8 | 93e77dcc6b36b2363f07d79d07ec47d86e6cba65 | refs/heads/master | 2023-08-31T01:35:49.211882 | 2023-08-28T10:50:08 | 2023-08-28T10:50:08 | 24,725,612 | 315 | 117 | BSD-3-Clause | 2023-08-28T10:50:10 | 2014-10-02T15:53:36 | Python | UTF-8 | Python | false | false | 6,773 | py | import numpy as _np
from scipy.special import factorial as _factorial
def cross_spectrum(clm1, clm2, normalization='4pi', degrees=None, lmax=None,
convention='power', unit='per_l', base=10.):
"""
Return the cross-spectrum of the spherical harmonic coefficients as a
function of spherical... | [
"mark.a.wieczorek@gmail.com"
] | mark.a.wieczorek@gmail.com |
047f00770d20b8038d7afcd98a956810a9380d97 | fa305ce263851654d122d2b2074ed08b0910c952 | /bot.py | 98fd1e289164908842495702378813acfad8959f | [] | no_license | kimelecta/bustabot | 8a413d328de07fb8a3aa696f7ddc6eeb0c6d1ce0 | c613b5b33d43270a699ae76442bc28c79882ffa1 | refs/heads/master | 2022-11-06T22:03:05.376727 | 2020-06-17T13:55:11 | 2020-06-17T13:55:11 | 272,973,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,466 | py | from http.server import HTTPServer, BaseHTTPRequestHandler
import os
import time
from selenium import webdriver
import selenium.webdriver.support.ui as ui
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import s... | [
"noreply@github.com"
] | noreply@github.com |
e1906118e59973542cece93528583102ab8c6cf2 | 96d8cf1ee8835fc1909e35de462e810019f49997 | /02_sl_full_adv_v13/sl_full_linf_pgd7_v11_cifar10/core/attacks_delta.py | 133217511fef98934a83f68731e51e607c6c2260 | [] | no_license | tnguyen9210/semi-supervised-learning-robustness-pytorch | d57913b7d3a71249f791563a1f232f25a4a6960b | 1d51c77dfa9c6d80cc188227ddf9506b18545a4b | refs/heads/master | 2022-10-19T04:57:25.733110 | 2020-06-05T08:51:37 | 2020-06-05T08:51:37 | 258,005,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,458 | py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from core.utils import *
class GradientSignAttack(object):
def __init__(self, loss_fn, eps, clip_min=0., clip_max=1.):
self.loss_fn = loss_fn
self.eps = eps
self.clip_min = clip_min
self.clip_max = clip_max
... | [
"tnguyen9210@gmail.com"
] | tnguyen9210@gmail.com |
0e10c4dc821d92d19a19781c29184f2c21a3a2f8 | a2e0e03e31f892454e537df32e3e1e1d94764fa0 | /virtual/bin/gunicorn_paster | a5acb6c5f33e8c0f85c1fc0f5f42198bd48c6b30 | [
"MIT"
] | permissive | MichelAtieno/Instagram-Clone | 557272585a3fff6f7a7c552b08cc5ef5e2c129da | 7250579e4f91084ad9bf8bd688df3f556dfef64a | refs/heads/master | 2020-03-30T16:23:19.351522 | 2018-10-09T09:42:05 | 2018-10-09T09:42:05 | 151,406,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/michel/Desktop/Python-Django/Instagram/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"mishqamish@gmail.com"
] | mishqamish@gmail.com | |
6893b1b04629476fddf2845af7cfe5908b9cb720 | 72e11a80587342b3f278d4df18406cd4ce7531e8 | /hgdemandimport/demandimportpy3.py | e2ea27fa0f1166fc55324efb1bbdaf6c4a5029c6 | [] | no_license | EnjoyLifeFund/Debian_py36_packages | 740666f290cef73a4f634558ccf3fd4926addeda | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | refs/heads/master | 2021-08-24T02:17:24.349195 | 2017-12-06T06:18:35 | 2017-12-06T06:18:35 | 113,167,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | # demandimportpy3 - global demand-loading of modules for Mercurial
#
# Copyright 2017 Facebook Inc.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
"""Lazy loading for Python 3.6 and above.
This uses the new importlib finder/load... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
e719552d07f6604b77bce83362de1ffe0652ab54 | 4491c65a31063f9282a504601866f63e52fe2c75 | /tts.py | aa6a27419a7cdfd623a87739619acb6a33224752 | [] | no_license | Pranad17/text-to | 904e66259319a3f9aaf0d660768ba8fcd8d4b700 | b9ed2cb55765fe616482aee46b59375a11258877 | refs/heads/main | 2023-06-01T18:50:50.662538 | 2021-06-16T10:20:11 | 2021-06-16T10:20:11 | 377,455,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | import tkinter as tk
import pyttsx3
engine = pyttsx3.init()
class Widget():
def __init__(self):
self.root = tk.Tk()
self.root.title("TTS")
self.root.resizable(0,0)
self.root.configure(background="cyan")
self.label = tk.Label(text="What you want me to speak?",bg="... | [
"noreply@github.com"
] | noreply@github.com |
c9024f3ef48275c9eb9cfc94034cbd45602e30a9 | 48656e636c3992336f9acbc256cece0ce2d73d61 | /PickANumber_A.py | 915865e32acd5ce07d31a1a815afd6261dbe4ba3 | [] | no_license | KatherineWinter/python | dd38cd51d2845fb5005294bbe96aae511f380ae8 | 8957bc3af0845c309c12fbc754af775614578cce | refs/heads/master | 2021-07-14T00:49:34.447904 | 2020-07-25T19:26:47 | 2020-07-25T19:26:47 | 188,038,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | import random
isPlaying = True
answer = random.randint(0, 9)
guessCount = 0
playerGuess = 0
# Play until the user can play no longer
while isPlaying:
# Only show the initial prompt once a game.
if guessCount == 0:
playerGuess = raw_input("I'm thinking of a number between 0-9... Guess!\n")
# Track how many times... | [
"katherine.m.winter@gmail.com"
] | katherine.m.winter@gmail.com |
d3218762cdff63ff7e0cd0f38c3aef5d2b9d8cda | 840eff9a6db3324212851fde5a22d40057f0471a | /assignment3/inverted_index.py | d90ff7e3158d1d0f5c96ffd76cb7ece725f353a2 | [] | no_license | josyulakrishna/datascience_coursera | f013eded182711df956dc65043ffecad28dd8c41 | ef544a431fafddaa1beab6851a6acf214a9f8c19 | refs/heads/master | 2021-01-13T01:25:12.222915 | 2013-08-16T06:34:44 | 2013-08-16T06:34:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | '''
Created on May 22, 2013
@author: Josyula
'''
# Part 1
import MapReduce
import sys
mr = MapReduce.MapReduce()
# Part 2
def mapper(record):
# key: document identifier
# value: document contents
document_id = record[0]
text = record[1]
words = text.split()
for w in words:
mr.emit_interm... | [
"josyula008@gmail.com"
] | josyula008@gmail.com |
d070ea5b57e7c9f251743e491b019532adcef562 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_indispositions.py | fabc644b17f9f752e045cebb4233bf3276caa5da | [
"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 | 250 | py |
#calss header
class _INDISPOSITIONS():
def __init__(self,):
self.name = "INDISPOSITIONS"
self.definitions = indisposition
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['indisposition']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d81f83f024e616bcef55ea18a79615a4a2ba197b | 9763c89a87ab4d3c4c1aeed3b041f50cb63ca248 | /pythonProject1/descriptions/descriptions/spiders/descriptions.py | 2f911f1449246b06bdf8e5a18a4f2fe45b80bd0c | [] | no_license | 01Skymoon01/Scrapy | 4423642b5c1ff8619ceab1e780bf9dfabcde933c | 3726fe6f079bc35b4698eeadacb4ce84f47382b6 | refs/heads/master | 2022-11-30T06:38:04.644565 | 2020-08-21T04:21:36 | 2020-08-21T04:21:36 | 289,175,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import scrapy
from ..items import DescriptionsItem
class QuoteSpider(scrapy.Spider):
name = 'quotes'
start_urls = {
'https://exchange.xforce.ibmcloud.com/vulnerabilities/184190'
}
def parse(self, response):
# title = response.css('title').extract()
# yield {'titleText': title}... | [
"48031994+01Skymoon01@users.noreply.github.com"
] | 48031994+01Skymoon01@users.noreply.github.com |
661af640e8e5f910169f00e38340591ad0fbe6a2 | a0d2a1315b90ba54cf956aa83f72512d5d4a6019 | /_createValueNetwork.py | ba5a68930563dd49dc7d6c8b04aa6a2ca2ea5ead | [] | no_license | Silmaril64/Alphago | 6a86cfff71802dabf33c647ba3d9771d1cad6edb | 5a10807c4726af4060511bf6c15c7d8d235c6975 | refs/heads/master | 2023-03-03T08:59:43.576890 | 2021-02-09T19:43:16 | 2021-02-09T19:43:16 | 326,620,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | import gzip, os.path
import json
from sklearn.model_selection import train_test_split
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten
from tensorflow.keras.layers import Conv2D, BatchNormalization, MaxPo... | [
"csj0oe@gmail.com"
] | csj0oe@gmail.com |
f061753cf42f736ed0c97e963eb4432f17a31c35 | 14ac1cd2a1e1d5366ef06e26fadc3d34ff5d5fad | /apps/payinfo/urls.py | 3af1a70532c586eebd4f77a1cce384f0f9595b75 | [] | no_license | wangdawei0515/django_project | 1c5b2384eaab112cf65da032ed3d5fccd7e27c70 | 7834237a8c19b4b854e8450e2d64458a17584d36 | refs/heads/master | 2020-03-24T02:50:46.708396 | 2018-07-29T14:31:21 | 2018-07-29T14:31:21 | 140,164,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | #encoding: utf-8
from django.urls import path
from . import views
app_name = 'payinfo'
urlpatterns = [
path('',views.index,name='index'),
path('payinfo_order/',views.payinfo_order,name='payinfo_order'),
path('notify_view/',views.notify_view,name='notify_view'),
path('download_payinfo/',views... | [
"wangdawei_@outlook.com"
] | wangdawei_@outlook.com |
cc20d5ddabeb4b62b1d598fca3a72d742feb2a74 | 202bb7c5e37d3f117315e8bba3bd21e84b48fe6b | /alpha/WHSZIWHEN11.py | 2ee339eed264849e5d11f95226f1fdd2cfbb9e8e | [] | no_license | haishuowang/work_whs | 897cd10a65035191e702811ed650061f7109b9fa | b6a17aefc5905ad9c11dba4d745591ed92b1e386 | refs/heads/master | 2020-07-03T10:30:14.231858 | 2020-06-09T08:47:18 | 2020-06-09T08:47:18 | 201,877,822 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 74,134 | py | import numpy as np
import pandas as pd
import os
import sys
from itertools import product, permutations, combinations
from datetime import datetime
import time
import matplotlib.pyplot as plt
from collections import OrderedDict
import sys
sys.path.append("/mnt/mfs/LIB_ROOT")
import open_lib.shared_paths.path as pt
fro... | [
"1612255875@qq.com"
] | 1612255875@qq.com |
68b377124eb26ae187dc04f00fc3c6cc81fed129 | a21d2fb3f111f30b842a4c3a5c6940d1a003b94d | /Python3/Foundation/Day 8/进程 join.py | 883a86cf1f1208853b0f0f2f71b0dd2e70e1d4ae | [] | no_license | hygnic/MyPython | 438f16206770a006a3b7bcf2ada9150c71ce8af9 | 26aaa57728ad545af5920ff2015eae258712d077 | refs/heads/master | 2021-07-01T02:10:15.810495 | 2021-02-26T08:07:54 | 2021-02-26T08:07:54 | 220,612,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | # User: hygnic
# Date: 2018/9/8
# User: hygnic
# Date: 2018/9/8
import os
import time
from multiprocessing import Process
# help(os)
def func1(args):
print(args)
time.sleep(2)
print('son process: ', os.getpid())
def func2(filename, content):
with open(filename, 'w') as content_wp:
content_w... | [
"hygnic@outlook.com"
] | hygnic@outlook.com |
ea9dec07d951070f1a5289ec38c7b9b3c3248485 | de8b2b0de2ba522493e2c86fa055df8c7c40aa69 | /e008-largest-product.py | e1ab6fb66b56899bf4385b65ab78fb2590571507 | [
"Unlicense"
] | permissive | bayramcicek/mini-programs | 56edbd2013704813d6730ecaf684baf9042d21ab | 3f876e3274b7beeb5e7413ac9c5275813d9f0d2d | refs/heads/master | 2021-07-03T03:57:02.874127 | 2020-09-27T11:09:07 | 2020-09-27T11:09:07 | 138,440,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | #!/usr/bin/python3.6
# created by cicek on 12.10.2018 15:09
digits = "731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511125406987471585238630507156932909632952274430435576689664895044524452316173185640309871112172238311... | [
"noreply@github.com"
] | noreply@github.com |
35e9113444ac17cadf33e735da85c9f5274af0c6 | ce9a89a1988b9cd3738cc0ee310f8d9a262058b6 | /carchive/h5data.py | 1b4ba5a442ad96088e7d2dc7b17cbd7607ae82ab | [] | no_license | epicsdeb/carchivetools | 64b9d7a2783b5f3bde674fec0699a414f3ee21c4 | 4c37624a22ba863469ba87c29aa44bd367825525 | refs/heads/master | 2022-02-24T20:13:23.418035 | 2022-01-02T19:01:32 | 2022-01-02T19:30:13 | 10,649,869 | 5 | 6 | null | 2022-02-15T19:16:48 | 2013-06-12T19:04:35 | Python | UTF-8 | Python | false | false | 3,391 | py | # -*- coding: utf-8 -*-
"""
Copyright 2015 Brookhaven Science Assoc.
as operator of Brookhaven National Lab.
"""
import logging
_log = logging.getLogger("carchive.h5data")
import h5py, numpy
__all__=['h5open','sevr2str']
_sevr={0:'',1:'MINOR',2:'MAJOR',3:'INVALID',
3968:'Est_Repeat',3856:'Repeat',3904:'Disc... | [
"mdavidsaver@bnl.gov"
] | mdavidsaver@bnl.gov |
486b7a6679e963cbbe74c87c996446b130cafa06 | cc076b26000e177a5e0a9c50257dc173620bfc9c | /deep_RL_benchmarks/eval_best_RL.py | 44b681922cf449be3244136b6299c0a9fd270be7 | [
"BSD-2-Clause"
] | permissive | Mabrokma/deps_arXiv2020 | 73dc16f8493bf59ce3bc63a33e5d7a29c5295ef1 | 8f9bd9436e2a2ed94039a4cab83620d7b28f2964 | refs/heads/master | 2023-05-08T02:21:07.469279 | 2021-06-04T02:50:59 | 2021-06-04T02:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,005 | py | import warnings
warnings.filterwarnings("ignore")
import matplotlib
# matplotlib.use("Agg")
import matplotlib.pyplot as plt
import argparse
import mlflow
import os
from scipy.io import loadmat
from gym import spaces, Env
from stable_baselines.common.env_checker import check_env
from stable_baselines.common.policies imp... | [
"jan.drgona@pnnl.gov"
] | jan.drgona@pnnl.gov |
ac08a963c69dab17953608a66b69822aa0e3b7e1 | 28e52f6df9a2fe3df78022dc4162a15aecb0e5b9 | /venv/bin/django-admin.py | 94fad1eafff3fea0d6dca30ebd3dffc03d597073 | [] | no_license | garonzhang/genealogy_wechat | 4b952b307e0e682eceb23521cc5ea8784c368954 | 1cf3f5b29acb3192e57eb47fcb9b22263437f147 | refs/heads/master | 2020-03-22T19:31:24.057225 | 2018-11-03T01:10:38 | 2018-11-03T01:10:38 | 140,534,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #!/root/wechat/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"garonzhang@gmail.com"
] | garonzhang@gmail.com |
3a4c7f9d712049cf02648c56d53ff66b940cd9fb | 05d692469305dd1adb9ebc46080525bb4515b424 | /Exception handling/tryfinally5.py | 7a605945006ab61d29eedb42aaf62afea001654d | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | try:
fob = open ( 'test.txt', 'w' )
fob.write ( "It's my test file to verify try-finally in exception handling!!"
)
print 'try block executed'
finally:
fob.close ()
print 'finally block executed'
| [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
e534e727ba2b594e582bdc4dfeba77f66ca78cca | 57aef2eb6dc11d1e795475fe283aecbc494910bc | /sigmoid_draw.py | 223584f87d20a69d7f022128facf410b1a637c8e | [] | no_license | junyeon-no/tensorflow_study | 2cd4ccd1cdcb4a0ae1cdd06599658d94e13334b2 | ea70d8f94f1174084738072091190ed5e871e14e | refs/heads/master | 2022-12-22T20:14:29.165576 | 2020-10-02T00:54:33 | 2020-10-02T00:54:33 | 296,458,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import numpy as np
import matplotlib.pyplot as plt
from step_func_draw import step_function
def sigmoid(x):
return 1/(1 + np.exp(-x))
if __name__ == "__main__":
x = np.arange(-5.0, 5.0 , 0.1)
y = sigmoid(x)
plt.plot(x, y, label = "sigmoid")
plt.ylim(-0.1, 1.1)
x = np.arange(-5.0, 5.0, 0.1)
... | [
"whwns5203@naver.com"
] | whwns5203@naver.com |
97538fec829806a6dc0663c869c8d080db247647 | f62aa26461e381435c86019ca2f502d10ff75b88 | /catalog/migrations/0006_auto_20170121_1008.py | aa8cfe9522994670ffaf090ae699983f1dd31edd | [] | no_license | viktortat/CAP | edb2aef09169d9bcf04b541682d8dcb067edf1c6 | 60221d8fa1d1ccb209e40001554cb004480dd2d5 | refs/heads/master | 2021-06-12T13:03:33.917809 | 2017-04-30T19:58:38 | 2017-04-30T19:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-21 07:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('catalog', '0005_auto_20170113_0259'),
]
operations = [... | [
"l2maximum@mail.ru"
] | l2maximum@mail.ru |
66fcec0a1f396ab7a1b7c0d07f995827b2518a3f | b482536080ffcb0194c7691464ccbf32be9fcbb9 | /Modules.py | ccffe60cb565105384a2178d74bcd5768e1b8cdc | [
"MIT"
] | permissive | CristiSima/StellarisShipBuilder | f29f3d9f104773f7a0c7b52654950699e8cef1e9 | 19d40f84c704bad022b9477f51174245aee7dcaa | refs/heads/master | 2021-11-10T17:54:13.817827 | 2021-11-02T11:49:23 | 2021-11-02T11:49:23 | 191,032,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,151 | py | class Module:
def __init__(self,Type,Name,Ship):
self.Name=Name
self.Type=Type
self.Ship=Ship
self.Weapon1=self.Weapon2=self.Weapon3=self.Weapon4=self.Weapon5=self.Weapon6=None
self.Utility1=self.Utility2=self.Utility3=self.Utility4=self.Utility5=self.Utility6=None
def Sa... | [
"CristiSima@github.com"
] | CristiSima@github.com |
e98b22fa6ef267f696bb0d745c79f47d0d9e171b | 20f16917c9245aae71cb50fcc4b3e34e1e2a5006 | /LessonThree/Python07/src/Story_start.py | bf42f5f5399b21892641b105ca409e6280efa206 | [] | no_license | yinsendemogui/Alex | f4bce794efb5cacdf547c420d7a3a3c5d27be5c8 | eeb230b9028ced5c7fc0f293c1d4d7b98c521721 | refs/heads/master | 2020-06-11T19:17:41.397658 | 2017-01-07T15:50:48 | 2017-01-07T15:50:48 | 75,628,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,646 | py | #!usr/bin/env python
# -*- coding:utf-8 -*-
# auther:Mr.chen
# 描述:
import time,os,sys
sys.path.append('..')
from lib import common
# from lib.Players_model import players_Model
DIR = os.path.dirname(__file__)
DIR = DIR.replace('src','db/')
TAG = True
def Pre_chapter(user):
time.sleep(2)
title = """
... | [
"215379068@qq.com"
] | 215379068@qq.com |
7c758c74009c56b967069fdd7c768b6aca99de7e | 921c6a7a41e318a207140c463778c12e0d4879da | /phonesimulator.py | f3db75ec0825b1ab419b73d718b0b56516eb1fae | [] | no_license | kezzayuno/summerTutoringSolutions | 79b7352e1cd52504bb95277f828459dab4a3c075 | 73fa7ac97e9076d1f99de35a1bce2cf1007c1b1f | refs/heads/main | 2023-05-03T09:52:20.611134 | 2021-05-27T00:08:57 | 2021-05-27T00:08:57 | 365,408,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | # there can be errors in the file
# - number would have not an integer
# - duplicates phone number like two tims with the same number
# - two numbers with two different people which imply that these two live together
def createDict(file):
phoneBook = {}
done = False
for line in file:
s... | [
"ayuno@ualberta.ca"
] | ayuno@ualberta.ca |
d5edeac4cbc477ba3102868460c60680c85531d0 | b27c5b8d5441cf10774305b79dddd9a35d366f31 | /recipeapp/settings.py | 704c9d111c0ab4d452c3bb193dc28bfaf89bf25b | [] | no_license | ins099/RecipeWebApp | 58a925f8f224f5e867212d7a368f84fc3d882087 | 36d6961042a78c074b94ba6c1bf67f968975152c | refs/heads/main | 2023-02-13T22:34:57.569192 | 2021-01-13T23:09:06 | 2021-01-13T23:09:06 | 321,590,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,588 | py | """
Django settings for recipeapp project.
Generated by 'django-admin startproject' using Django 3.1.
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... | [
"alaminsaram92@gmail.com"
] | alaminsaram92@gmail.com |
148b9208b0b1a0d77e8b6ca8105ddce0cca0bb8a | 379e7d33dc72ebe0c2cdf605174813accc957797 | /main.py | 1833697eb5be2b619c469b03e4664800a896552f | [] | no_license | Kayt/heartmed | 8838cea4c07be67b80c0294a6ccd7edeb64589a8 | 7dbbf3be44c912c4a1708cadaa987ef000ae1f73 | refs/heads/master | 2021-08-09T01:28:05.447174 | 2017-11-11T19:47:27 | 2017-11-11T19:47:27 | 110,351,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,488 | py | from numpy import exp, array, random, dot, asarray
class NeuralNetwork():
def __init__(self):
# Seed the random number generator, so it generates the same numbers
# every time the program runs.
random.seed(1)
# We model a single neuron, with 3 input connections and 1 output connec... | [
"achim_munene@hotmail.com"
] | achim_munene@hotmail.com |
362e9abe387de8ee165bafdca75d22ecb015f9f1 | 40efe4cdb4d7845ce7adca4b3d48aaeb2c0f35fb | /rotate_sort.py | 8412180883b47c121dd7bd07654c069a3a569c9d | [] | no_license | viz06/python_codes | b663d360d223e549401b5c10534c9085c5def6a9 | 93b067afa4ba02fba73c9709c922983b2bf9ac09 | refs/heads/master | 2022-12-19T10:16:42.645697 | 2020-09-20T19:27:10 | 2020-09-20T19:27:10 | 295,674,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | class Solution:
count=0
def findKRotation(self,arr, n):
for i in range(n-1):
if(arr[i]>arr[i+1]):
return i+1
return 0
if __name__=='__main__':
tc=int(input())
while tc>0:
n=int(input())
a=list(map(int,input().strip().spl... | [
"noreply@github.com"
] | noreply@github.com |
306b1205394bae0e6a5f9c63abcc56d5c25288b4 | 5a6ea469a1a6571281e8a23ff8fbc4c3ea205a0f | /util/visualizer.py | 283a78e9dfa482932160f889533973dfff9919bf | [] | no_license | 123456789lin/Pytorch-CycleGAN-Simplified | ee00d32d1db3c5b7daf2bfdb273dcb487ee4e8de | 364b1c36a0090c0a37e22c95eec4388dc5db90e4 | refs/heads/master | 2022-12-10T00:57:48.497532 | 2020-08-30T06:12:54 | 2020-08-30T06:12:54 | 291,289,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | import numpy as np
import time
import os
import sys
import ntpath
from . import util
from subprocess import Popen, PIPE
if sys.version_info[0] == 2:
VisdomExceptionBase = Exception
else:
VisdomExceptionBase = ConnectionError
def save_images(result_dir, visuals, image_path, aspect_ratio=1.0):
"""Save ima... | [
"noreply@github.com"
] | noreply@github.com |
e285fd667bf08064ff25f762ee61ea06d3addb99 | 5a082f78df56e88d0b7096323f16d7a34f7751e0 | /venv/Scripts/pip3.7-script.py | 6ab5023b081a735352f9e21f4fc49c712766008b | [] | no_license | yonitouitou/PDFMerger | 36e9f9fde2c25e2bc81b5b49b95f9330097f720a | d0f5e06cc1cf2375d9f5a0ee9a08d12e5f253af6 | refs/heads/master | 2020-12-09T10:31:25.168385 | 2020-05-10T07:51:08 | 2020-05-10T07:51:08 | 233,278,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!"C:\Users\Yoni Touitou\PycharmProjects\PdfMerger\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"yonitouitouu@gmail.com"
] | yonitouitouu@gmail.com |
a7cab9582745010178a2ff7a604325a6acc85ace | f2d961fe88b67f9d1eb52170d4df7c0363fae073 | /paper/plottraces_wt.py | 0f6fb632d5797568f4da3376d5ce5e68dd5a2795 | [] | no_license | acvmanzo/mn | 12ffbf1aae9c8088a8461bb2e7f4823e31329338 | c1d52e65e0bdec504d4e3954ad02ffe91f7f31ad | refs/heads/master | 2021-01-23T04:23:47.366109 | 2014-06-08T11:05:11 | 2014-06-08T11:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,820 | py | import mn.dftf.dftf as dftf
import os
import matplotlib.pyplot as plt
import numpy as np
import operator
from mn.cmn.cmn import *
import matplotlib
import pickle
import matplotlib as mpl
# Plots raw traces on one graph from the movies specified below.
# Run from the 'data' folder; in the 'data' folder are individual m... | [
"acvmanzo@gmail.com"
] | acvmanzo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.