blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72a4cb0ca3550ac8f90f2fb20f53c61176885330 | 0ef2e598854a39e19e523074c17c0ca72cbeccbc | /object_movement.py | b2b5020f4ebeb8c00ff7194da2e35bb4f687d704 | [] | no_license | BryanBattershill/Hackathon2018 | d2d0956aa15b4f6cbe3f935ce9c131141c1c46fc | d0b56f479dc651e6bf63e4f7b360ef7bb26fb4ac | refs/heads/master | 2021-04-28T19:34:17.919981 | 2018-09-18T22:10:16 | 2018-09-18T22:10:16 | 121,900,211 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,217 | py | # USAGE
# python object_movement.py --video object_tracking_example.mp4
# python object_movement.py
# import the necessary packages
from collections import deque
import cv2
import numpy as np
import argparse
import imutils
import math
import time
import random
import sys
class EnemyClass:
speed = 0
radiu... | [
"noreply@github.com"
] | BryanBattershill.noreply@github.com |
c35f0eea37740102e29dbec251418a94b8a24eef | e815fd9fbc703ce43d94fba6e53c86b898e32977 | /llia/synths/comb/comb_data.py | d970ca8784031b0980adfd2f3759750a82743041 | [] | no_license | kaos/Llia | 0cdedc13d84ce86034287fba00ec0b169fbd87b1 | b2aaa163c4ada3b446a7c3701e3f05c0f8406d6e | refs/heads/master | 2020-12-28T19:23:48.480608 | 2017-03-27T05:51:14 | 2017-03-27T05:51:14 | 64,940,263 | 0 | 0 | null | 2016-08-04T14:13:13 | 2016-08-04T14:13:13 | null | UTF-8 | Python | false | false | 1,347 | py | # llia.synths.Comb.Comb_data
from __future__ import print_function
from llia.program import Program
from llia.bank import ProgramBank
from llia.performance_edit import performance
prototype = {
"delayScale" : 0.01,
"delay" : 0.50,
"phase" : -1,
"wet" : 1.0}
class Comb(Program):
def __init__(self... | [
"plewto@gmail.com"
] | plewto@gmail.com |
fa55fb23e3d6bae9cb457a19aa839c87b4bcf142 | 3bbdcdfa6ee6631bea52dd651914cb898062b870 | /numpy_pandas/__init__.py | 132426c8ed006e4d81e02c92ae4a1325b00aa968 | [] | no_license | xiaoyeren/python_high_performance | 55ea5ee9f628e1c1155a6946274c862bda57ae2c | 496a5e55e7f40033c80e9ee3b9190c184d4701d9 | refs/heads/master | 2020-05-24T15:20:00.576786 | 2019-05-13T06:01:35 | 2019-05-13T06:01:35 | 187,329,222 | 1 | 0 | null | 2019-05-18T07:43:11 | 2019-05-18T07:43:11 | null | UTF-8 | Python | false | false | 70 | py | # -*- coding: utf-8 -*-
#使用numpy和pandas快速执行数组操作
| [
"luozhukun@163.com"
] | luozhukun@163.com |
f45f0f19ecdbd76d15d862f09d15896aed3c69c4 | e8feb94c80b706cac8187aea3abdab5554d0585e | /portscan.py | 29d00f1e8dd50a2928ff6da405406a08ae09c777 | [] | no_license | fabiocabrini/python | 63ee4d36261cdf309668d96f3d77a7f5456131a9 | 23f7ad379ece83841ad8c9270e629837c8055159 | refs/heads/master | 2023-03-31T22:27:35.404628 | 2023-03-24T10:39:57 | 2023-03-24T10:39:57 | 243,404,103 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | import sys
import socket
def main():
args = sys.argv
if len(args) < 2:
print("[!]Falta argumentos para o programa! Saindo...")
sys.exit(1)
ip = args[1]
portas = args[2] if len(args) >= 3 else "1:65536"
portas = (x for x in range(int(portas.split(":")[0]), int(portas.split(":")[1])+1))
scan(ip, por... | [
"noreply@github.com"
] | fabiocabrini.noreply@github.com |
881992550625165c17da1fcee6b64e92bb30f8da | 88b1efabf9ba2532f37dc9eef5a8f60a63bb9181 | /libs/networks/build_whole_network.py | fcfb02de3f726a2b12d0ef897d7b377776ef7fa0 | [
"Apache-2.0"
] | permissive | arasharchor/DCL_RetinaNet_Tensorflow | e674b2b3a975020e7442584b47116456f8490c5b | 1d14c9800c3eb1975e8832978f7a263783d171ec | refs/heads/main | 2023-03-30T13:16:24.151129 | 2021-04-13T08:01:20 | 2021-04-13T08:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,753 | py | # -*-coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import os
import tensorflow as tf
import tensorflow.contrib.slim as slim
import numpy as np
from libs.networks import resnet, resnet_gluoncv, mobilenet_v2, xception
from libs.box_utils import anchor_utils, generate_anchors, gener... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
a5bf349f10d05cb162f75a7bfbede3c10a24f87b | c2321b327c0793b823c842d41a873b89ddf95b02 | /MQMO_Workbook/danorand.py | 3bb64b27d87280f8297f19595ccb2346a01307f9 | [] | no_license | Danoishere/mqmo-workbook-python | 4f84afcbca28b3b73e76f0c9f6495e5ec8b66240 | be8bb886dcc1f949b84152fbd2ba7f1f5202b86c | refs/heads/master | 2020-06-02T14:31:56.509312 | 2019-06-14T08:05:18 | 2019-06-14T08:05:18 | 191,188,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | import pyximport
pyximport.install()
import simpyx as sp
import danosim as ds
import numpy as np
def sorted_poisson_arrival(lambd, t_end):
event_times = np.random.uniform(low=0,high=t_end,size=np.int(t_end*lambd))
event_times = np.sort(event_times)
return event_times
def possibility_for_num_of_events_in_t... | [
"dano.roost@gmail.com"
] | dano.roost@gmail.com |
4510678e66dacc8d9a42810e6f5b901215a93fef | 5f64fb1c9db645919029d03fcfb222732c16ae4c | /analysis/__init__.py | ccc6064de1896a78f9119daec7d5ccaff0620a34 | [] | no_license | devYaoYH/cogPsychLab_toolkit | 95b3c5a99288ef20d807ea2200d5c3128a2d0374 | b926126bf67a30bc4ec192ae335ef650f2f2abe0 | refs/heads/master | 2020-07-29T19:08:58.667628 | 2019-12-18T18:50:13 | 2019-12-18T18:50:13 | 209,926,254 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from .normalize_rt_raw import parse_rt_path
from .plot_rt_pathlengths import plot_rt_path | [
"yaoyiheng@gmail.com"
] | yaoyiheng@gmail.com |
2ae541b40b7cd84b167c0fe96d85e532d439192a | 3481bb48f454d0dd269fa67e9f8e845c4d2cf2fc | /2018/day5.py | 102d982c2e041e0701528f522c18d32e1279a348 | [] | no_license | mattr555/advent-of-code | 0d84c6c77d0a0467791379de540a5f92a09ae2b4 | bd2253b4eb560323d1ff7b1b55d1854009b24cde | refs/heads/master | 2021-12-27T09:30:21.644035 | 2021-12-18T21:00:05 | 2021-12-18T21:00:05 | 164,048,265 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | with open("day5.txt") as f:
data = f.read()
# data = 'dabAcCaCBAcCcaDA'
def react(data):
newdata = ''
while True:
i = 0
while i < len(data):
if i < len(data) - 1 and data[i].lower() == data[i+1].lower() and data[i] != data[i+1]:
i += 2
else:
... | [
"mattramina@gmail.com"
] | mattramina@gmail.com |
60777dfa8618834846b5accb91c04b9f6e4e44a1 | 48faa86184e733fa4cb1d05f8d4b3b20aeb9f327 | /you_get/__init__.py | 5da7138ff2db95bcb8278be8d7f2541aafa25152 | [
"MIT"
] | permissive | wgnms/webdecode | 5a72bcb130f3e0d109bb4dc8c0375c766e7c6088 | b4052e1a5e8e53fd75838e2e5d2bc47da6ad3b14 | refs/heads/main | 2023-07-06T01:33:44.769245 | 2021-08-17T02:24:48 | 2021-08-17T02:24:48 | 426,558,044 | 1 | 0 | MIT | 2021-11-10T09:20:31 | 2021-11-10T09:20:30 | null | UTF-8 | Python | false | false | 371 | py | #!/usr/bin/env python
# This file is Python 2 compliant.
import sys
if sys.version_info[0] == 3:
#from .extractor import Extractor, VideoExtractor
#from .util import log
from .__main__ import *
#from .common import *
#from .version import *
#from .cli_wrapper import *
#from .extractor im... | [
"yangxuan@ev-image.com"
] | yangxuan@ev-image.com |
8899c83e97081de7941ab5e8f6f97b043735e116 | f66a28aa2f466d3c5cf1b04eac2c8225c4034984 | /util/ImageHelper.py | 0e44f26fc6611d125b7179fb1abb924df3cf0ea7 | [
"MIT"
] | permissive | abbottli/asciipy | 7816821ab9a2964649cff47916452c281067c136 | 40fe58d64d0618041b71691b55a08888f76e4b54 | refs/heads/master | 2023-05-04T13:17:52.335134 | 2021-05-14T19:17:47 | 2021-05-14T19:17:47 | 367,268,065 | 1 | 0 | MIT | 2021-05-15T02:05:16 | 2021-05-14T06:18:51 | Python | UTF-8 | Python | false | false | 3,358 | py | import os
from PIL import Image, ImageOps
from util.ImageType import ImageType
RESOURCE_FOLDER = 'resources'
BLACK = 255
WHITE = 0
DEBUG = False
def resource_folder(file):
return os.path.join(RESOURCE_FOLDER, file)
def convert_image(image, convert_type=ImageType.DITHER):
if ImageType.DITHER == convert_ty... | [
"abbott.li49@gmail.com"
] | abbott.li49@gmail.com |
c99a79681efd4708275a91f12d409ed732157dc1 | 737a8273a04f1ff545971061f9e82c94794d5fd1 | /venv_py36/Scripts/pyi-bindepend-script.py | 5a06e65c01dcc45c62967f443e35e7139bfd63fc | [
"MIT"
] | permissive | PeterMoresco/RefriCalcSoft | eb316574ec3826c5a42ad6b3d74c1121a397dac4 | 1ed728ef1937fdda248cee19d97b3d13bd98af03 | refs/heads/master | 2022-04-13T11:11:01.425094 | 2020-04-13T17:11:00 | 2020-04-13T17:11:00 | 255,360,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | #!C:\Users\pedro.camargo\Documents\Programas\RefriCalc\venv_py36\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'PyInstaller==3.4','console_scripts','pyi-bindepend'
__requires__ = 'PyInstaller==3.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re... | [
"pedro.moresco93@gmail.com"
] | pedro.moresco93@gmail.com |
2be70c160418e48ef9adbfa51bc4a11912cc9ff9 | 048a3362f0990cd6a53f9a47002b910445e76f65 | /Python/Modules/Utilities.py | 2ef9db6c045079306f42a29c47ab8bf0484f1d83 | [] | no_license | alonyan/PythonFlowCytometryStartup | b26fa3cc3fa7c806fefee8edc522635d61510723 | 7631f64b9fd0572d1b5340aa84df65868b769f6f | refs/heads/master | 2020-03-24T02:07:00.454866 | 2018-07-26T17:18:43 | 2018-07-26T17:18:43 | 142,363,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,098 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 21 15:46:30 2016
@author: Alonyan
"""
import numpy as np
import scipy.io as sio
def num2str(num, precision):
return "%0.*f" % (precision, num)
def colorcode(datax, datay):
from scipy import interpolate
import numpy as np
H, xedges, yedges = np.histo... | [
"Alonyan@Alons-MacBook-Pro.local"
] | Alonyan@Alons-MacBook-Pro.local |
daf15159963c2c223164a14990ac1ad980c26f04 | 66f371cbb748c2e55bb26e35cdf23c7eddcf0e51 | /py3hardway/ex17.py | 3dd73772fd15f1543debdfc0ceeb17e82dd89e8b | [] | no_license | MichealGarcia/code | 8bc807e432df0110db7c51620d6e358f52eddc4a | 0f5003d1d9de32b0939d3c3f765e632b79985904 | refs/heads/main | 2023-09-02T19:56:53.541069 | 2021-11-15T17:41:57 | 2021-11-15T17:41:57 | 407,957,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from sys import argv
from os.path import exists
script, from_file, to_file = argv
print(f"Copying from {from_file} to {to_file}")
# We could do these two on one line, how?
in_file = open(from_file); indata = in_file.read()
print(f"The input file is {len(indata)} bytes long")
print(f"Does the output file exist? {e... | [
"garciamicheal0@outlook.com"
] | garciamicheal0@outlook.com |
840a49c0c67c499e3b30d896b164e0e70d6d9ca5 | 20a79a6bf4d5f077d5bc5d2d989d0bbedea92cc4 | /venv/bin/python-config | f35d9f24086192b469f0392fa178284f61868af6 | [] | no_license | denaverma007/Greendeck | d4f5dc662ebbe1d93696ac0d906c75d11d5f86b9 | 97afae0783ac35d5c1e18316b8d49ba33b430a3e | refs/heads/master | 2022-12-08T17:09:00.759085 | 2020-02-07T16:26:16 | 2020-02-07T16:26:16 | 238,938,321 | 0 | 0 | null | 2022-12-08T03:34:17 | 2020-02-07T14:07:48 | Python | UTF-8 | Python | false | false | 2,357 | #!/home/yj/PycharmProjects/greendeck/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"jainyash031@gmail.com"
] | jainyash031@gmail.com | |
e0b4e0d09721d9b9da92a58b86f47afebac9cff4 | 330ba6024e2728ec2476ce2d9f8e6be20c60ed67 | /resources/code/class11/scratch.py | 05297afa2551f11d03483182dc63479edf6c9ce6 | [] | no_license | foureyes/csci-ua.0479-spring2021-001 | ec008e797b569476cce7b062f2469d6dea56d670 | f7ee0f69c2e9150134f41f39676807e4f776f96e | refs/heads/main | 2023-06-27T15:44:38.192216 | 2021-08-01T17:35:55 | 2021-08-01T17:35:55 | 330,051,703 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,265 | py | """
from matplotlib import pyplot as plt
plt.figure(1)
plt.subplot(211)
plt.plot([1,0. 2,0. 3,0. 4],0. [4,0. 7,0. 8,0. 9])
#plt.figure(2)
plt.subplot(212)
plt.hist([1,0. 3,0. 7,0. 4,0. 2])
plt.show()
"""
"""
import matplotlib.pyplot as plt
scores = [0.82, 0.88, 0.96, 0.90, 0.87, 0.88, 0.81, 0.90, 0.90, 0.74, 0.82, 0.7... | [
"jversoza@cs.nyu.edu"
] | jversoza@cs.nyu.edu |
ff9985458b628b7515d40abce1908071b3909f62 | f9ff85c981942d15c65d37de107e0c5fa5e6a2ba | /pychron/experiment/utilities/identifier.py | 93e069990688ddb7ca6694d6320df4bfe0882396 | [
"Apache-2.0"
] | permissive | kenlchen/pychron | 0c729f1b1973b9883734007b7a318fe21669e6c1 | ffd988e27ae09fb3e8a8790d87ff611557911d07 | refs/heads/master | 2021-01-24T21:53:42.293554 | 2016-04-04T07:18:39 | 2016-04-04T07:18:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,439 | py | # ===============================================================================
# Copyright 2012 Jake Ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
24f1dcc1d1aa4ed13620403653e66f45ffdc5e4a | 11fb66c21b1afe7ea96f5a1816662b225f2dc79c | /nextgen/bcbio/variation/genotype.py | 22a9442f3a128efdeec2d7c608c21989707d43cd | [] | no_license | raonyguimaraes/bcbb | 064f1c7d573b82478e6f787a2bd3932443c25864 | c7485f8dbc63a93e73f0b0bb43630110ee7381df | refs/heads/master | 2021-01-18T06:18:10.282876 | 2011-06-21T19:31:03 | 2011-06-21T19:31:03 | 1,986,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,578 | py | """Provide SNP, indel calling and variation analysis using GATK genotyping tools.
Genotyping:
http://www.broadinstitute.org/gsa/wiki/index.php/Unified_genotyper
http://www.broadinstitute.org/gsa/wiki/index.php/Local_realignment_around_indels
http://www.broadinstitute.org/gsa/wiki/index.php/IndelGenotyper
http://www.b... | [
"chapmanb@50mail.com"
] | chapmanb@50mail.com |
8c360a0f72d3907199f648b5f07ac60f7c71ae74 | 118c35587c050c2157d6043d7e8e9111f9d3a65f | /code/code_first_run_words/space_to_grid.py | e413ee2d478b0db505dd91bb9187ef991be8a7a7 | [] | no_license | LydiaMennes/smrThesis | ef049b074a8bafeaa75a59c9866b995b97b5b18f | cb7d7a0efb94511017bdb0e8a451f03e47e9dae8 | refs/heads/master | 2021-05-28T02:58:02.084185 | 2014-11-12T17:12:27 | 2014-11-12T17:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,021 | py | from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
import pylab
import math
import datetime
from thesis_utilities import *
import sys
import copy
import random
import gc
figure_size = 8
update_neighborhood = 300
grid_param = []
class TypeKeeper:
def __init__(self, indexes):
... | [
"lyltje@gmail.com"
] | lyltje@gmail.com |
4dd4f469bb006de018703e400da050fb576366f7 | dabe0cafc1533e83b7748d0c851e9b0c5d11aedf | /lurkServer/svr.py | d15654f35981ed0d9b355b4d7d811a8708a91e2c | [] | no_license | Jesse-McDonald/LURK-Server | d805e17a863ba61ffd4a10e831fa835a1a9af973 | 26addc1e76ffe6543d6e6b4e2d71dcc2bfa10a1c | refs/heads/master | 2021-07-08T15:02:48.707964 | 2017-10-06T04:56:51 | 2017-10-06T04:56:51 | 105,967,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from subprocess import call
import sys
while True:
call(["./LurkServer", sys.argv[1]]) | [
"noreply@github.com"
] | Jesse-McDonald.noreply@github.com |
5596f3080418c4b15b4e17a3ab5dcca54c88f88b | 54fc684e36f5326de8a1ac1d5c36467b61f84ec7 | /flask-aws/bin/easy_install | d9fb9298420a69f7626b6363347206ebf5b3c9a8 | [] | no_license | cgiglio/scraper | b3b4ee57fef787db94bc2f001e2fcf14724062b3 | 67fcf3bc13a02af1bba43451cdb6d9d646e9e391 | refs/heads/master | 2021-01-10T13:28:59.672939 | 2016-03-30T03:37:57 | 2016-03-30T03:37:57 | 55,030,019 | 0 | 1 | null | 2020-07-25T22:42:42 | 2016-03-30T03:37:13 | Python | UTF-8 | Python | false | false | 377 | #!/Users/cgiglio/Desktop/flask-aws-tutorial-master/flask-aws/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.24','console_scripts','easy_install'
__requires__ = 'distribute==0.6.24'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('distrib... | [
"chris.giglio1@gmail.com"
] | chris.giglio1@gmail.com | |
1fe15d6c65cd4c39ca0921ffd6169470c7071826 | d8626ce85cb10f6259afe8567b2eb227d897008b | /exemplo2.py | a0aeb0977c088e685ef474bcba4f74962ac499ae | [] | no_license | pd4ni3l/Deteccao | c40ece447c4d0509a86ab0464a651732248abb87 | 4aa3159f76fd8359ea853f257e6aac83811adfa2 | refs/heads/master | 2020-06-08T04:17:29.584171 | 2019-06-21T20:26:39 | 2019-06-21T20:26:39 | 193,156,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import cv2
classificadorFace - cv2.CascadeClassifier('cascades/haarcascade_frontalface_default.xml')
classificadorOlhos = cv2.CascadeClassifier('cascades/haarcacade_eye.xml')
imagem = cv2.imread('pessoas/faceolho.jpg')
imagemCinza = cv2.cvtColor(imagem, cv2.COLOR_BGR2GRAY) | [
"pd.rg@outlook.com"
] | pd.rg@outlook.com |
7f88a65ad57645d2e64297907867372f22c9743f | 7ec3f117b80675b46e69adbd47622ce56e3d4879 | /001.py | aa32a344b3f5687faf15376d68ca9a27d0ec7615 | [
"MIT"
] | permissive | phibra/Project_Euler | feacd9f56da80edc67c5fe84df7ef1ccf195cba9 | 0de6d26825323453b583d8e1c99e3b4360e17e58 | refs/heads/master | 2021-05-05T23:58:07.903422 | 2018-08-17T23:32:30 | 2018-08-17T23:32:30 | 116,863,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | a, b = 0, 1
sum = 0
while (b < 1000):
if (b % 3 == 0) or (b % 5 == 0):
sum += a
a, b = b, a + b
print(sum)
| [
"noreply@github.com"
] | phibra.noreply@github.com |
0a55919f28900b1616e8bd049fd104b042b7297f | 00a4b05f985d88329057585e7fd5e986e2a85d56 | /functions_frontend.py | c4d1a93fc6d316ec87128b9d5d9eeb99f8cf4858 | [] | no_license | jakobludewig/image_keyword_generator | 7c8809912ed90f6e32bf66e79baaf982a51ff44a | 23a0c502ff48b93b217b421bce3d4de91480df69 | refs/heads/main | 2023-07-06T05:47:39.243370 | 2021-07-25T15:58:09 | 2021-07-25T15:58:09 | 389,136,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,810 | py | import pandas as pd
import ast
from typing import List
import matplotlib.pyplot as plt
from PIL.Image import Image as PILImage
from PIL import ImageOps, Image
def read_imagenet_labels() -> pd.DataFrame:
""" Read in imagenet labels, taken from https://gist.github.com/yrevar/942d3a0ac09ec9e5eb3a#file-imagenet100... | [
"jakobludewig@gmx.net"
] | jakobludewig@gmx.net |
e4125f181e2989b349e722ba298c236ba8e32e14 | 9ebc9bba7577c958cc83bf52573303404ea3c7f1 | /mycasa_scripts_active/scripts_ts09_phangs_r21/myim02a_regrid.py | 3b7da75c7b6afa593266e5253efdae6c940837c4 | [] | no_license | toshikisaito1005/mycasa_scripts | 3c3d8942d492ea5b5d28bfe7348764caea857549 | 6367ce6c28e0fe6f98e3adae9823843ba7742da1 | refs/heads/master | 2021-08-10T23:02:38.690492 | 2020-10-01T20:10:00 | 2020-10-01T20:10:00 | 225,368,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | import os
import glob
import numpy as np
import scripts_phangs_r21 as r21
dir_data = "/Users/saito/data/myproj_active/proj_ts09_phangs_r21/data/"
galnames = ["ngc0628","ngc4321","ngc3627"]
image_lengths = [280.,230.,280.] # arcsec
direction_ras = ["24.174deg","185.729deg","170.063deg"]
direction_decs = ["15.783deg","... | [
"toshikisaito1005@gmail.com"
] | toshikisaito1005@gmail.com |
6fee09609ee5fbcdc6b8a46948f4d158b0456f9f | efba6a09d46b95400716db5359c228e7fc844ac8 | /Llamo/while1.py | 84677a4e64ae4ad282471a4bed2685ed178c4acd | [] | no_license | llamo-unprg28/t07_Llamo.Catter | 4384f4bf201d9f33e1b0ee8b1e4b2026aec69003 | a7c760c27e7b2e97c12eb08423475308875b1fb8 | refs/heads/master | 2020-11-23T23:21:58.067804 | 2019-12-15T18:48:15 | 2019-12-15T18:48:15 | 227,862,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | #SOLO LOS MAYORES DE 18 y menores de 60 AÑOS DEBERAN SUFRAGAR EN ESTAS ELECCIONES
#MOSTRAR EN PANTALLA TIENES QUE SUFRAGAR
EDAD=0
EDAD_INVALIDA=(EDAD<18 or EDAD>60)
while(EDAD_INVALIDA):
EDAD=int(input("ingresar edad:"))
EDAD_INVALIDA=(EDAD<18 or EDAD>60)
#fin_while
print("tiene que sufragar")
| [
"jllamo@unprg.edu.pe"
] | jllamo@unprg.edu.pe |
c32f46eac1c711c70e73dc5bff0f43060bae6713 | e19b1f6318a951501b31a23d2cea4bcbe9aaa872 | /lists.py | c37baf1f44eb07e83987b4e3337e6043148301b1 | [] | no_license | usmanwardag/Python-Tutorial | 737a1e6f553e4f66d1b18eaf19c4213dc029db08 | b4d941046c19e2e83d0d680f8a465fe19bdf090c | refs/heads/master | 2021-01-10T02:04:13.322451 | 2016-02-06T16:16:15 | 2016-02-06T16:16:15 | 49,075,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | import sys
def listConcepts():
'''Illustrates basic list concepts'''
a = ['Usman','Mahmood','Khan']
b = a #Does not create a copy
c = a[:] #Creates a copy
a.append('-')
print b #Changes with 'a'
print c #Does not change with 'a'
if 'Khan' in a:
#do something
print 'Yay'
print ... | [
"usmanwardag@gmail.com"
] | usmanwardag@gmail.com |
0ef785d7f477ae2850e5fbeb4b06a99bccf45cfc | dece3eb22be792aeac65ea12a1f183dd73498add | /Tkinter/5.py | b5138b09936d918a4817a1c13949e5e3b7c8c784 | [] | no_license | santanu5670/Python | 352515ad82f94157e7f74467c5e7dedd6c9069c8 | 48c2779ccf934588f2bfce7cd322088acec04080 | refs/heads/master | 2023-06-24T09:22:49.925654 | 2021-07-22T15:17:34 | 2021-07-22T15:17:34 | 387,683,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #jpeg,jpg type of image are not supported in tkinter so first we have to install pillow
#command:-pip install pillow
#then the following code for jpeg,jpg type of image
from tkinter import *
from PIL import Image,ImageTk
root=Tk()
root.geometry("1200x600")
image=Image.open("python_image.jpeg")
photo=ImageTk.PhotoImage... | [
"santanu2539@gmail.com"
] | santanu2539@gmail.com |
b086c183edb2473fc1947cf98bd7f319be257ba0 | 2b4a809b6a78c920e4d2a27bae4eb2cf5c0233e7 | /lesson-08/roll_dice_v5.0.py | b61e2c14bddd0211e9dc0a67a89d2785cda368c8 | [
"MIT"
] | permissive | hemiaoio/learn-python | c748f906412657aa185348de4d3aa16bbf014928 | 4b3885ed7177db4e6e03da80dd9ed69719c8d866 | refs/heads/master | 2018-12-20T11:17:53.934263 | 2018-09-23T01:15:17 | 2018-09-23T01:15:17 | 117,075,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | """
功能:模拟掷骰子
版本:3.0
2.0新增功能:模拟连个骰子
3.0新增功能:可视化抛掷两个骰子的结果
4.0新增功能:使用直方图统计结果
5.0新增功能:使用科学计算库简化程序
"""
import random
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
# 解决中文显示问题
plt.rcParams["font.sans-serif"] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False
def main():
... | [
"hemiao@woyouqiu.com"
] | hemiao@woyouqiu.com |
78fdb205cc61f39b5896322fa4b0424416df751d | 199f3f91ec71f7af34d379d285c1535c26dab976 | /config/urls.py | 6aeac6c1562b5b653b356439082310747eefc3ff | [] | no_license | umarhussain88/Akhbar | 0a78d3303346d06ea020a82f259b83b5bb3a202b | 0dba82cc4503b2192757c6702ee713c240bd65bc | refs/heads/master | 2023-03-04T09:34:15.615795 | 2021-02-21T22:55:45 | 2021-02-21T22:55:45 | 341,019,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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 ... | [
"umar.hussain.da@outlook.com"
] | umar.hussain.da@outlook.com |
7aa10abc887ca1e890a309e7633a9c236026ef95 | 826b5fd4c31612a16bd60e5fc77188f8536e7f29 | /Leap_UI_IOS/page/bases/base_login.py | 707bcd868f9498a0c0fb3bb6e94e4f4fcc004d8b | [] | no_license | liminghui774373994/Leap_UI_IOS | bb9e33305d810c2e1faeb83ea8b9a3acce4bb583 | 660dd1573df8e417c20339c238a4d09765271eaa | refs/heads/master | 2023-07-11T16:19:41.136610 | 2021-08-09T12:13:48 | 2021-08-09T12:13:48 | 394,159,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | # -*- encoding=utf8 -*-
__author__ = "liminghui-2021-05-08"
from common.settings import *
class Login:
def __init__(self):
# 元素定义
self.moudle = 'login'
self.path = Common()
self.parents_center = '家长中心'
self.my_button = "我的"
self.password_to_login = "密码登录"
s... | [
"774373994@qq.com"
] | 774373994@qq.com |
358672c997418ff955972fdc53fedb2ef810efad | ec7194c4f037875c860d1b2f7578b29b71211e55 | /code/ML/text-clfn/predict-correlations.py | b97ede6b81e80258e2f0ef66d6a8ce0da8d96ffd | [] | no_license | perdaug/iow | d8576d2f5350daca6026474c1b32a75dac01cb40 | 92de481379ded9d5d7902728940a6c91b96b2ae5 | refs/heads/master | 2021-03-30T18:13:08.227885 | 2018-09-10T06:12:04 | 2018-09-10T06:12:04 | 63,000,233 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,604 | py |
"""
VERSION
- Python 3
FUNCTION
- Classifying the images based on textual features.
"""
import os
from sklearn.datasets import load_files
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn import metrics
import numpy as np
from optpar... | [
"arijus.pleska@inria.fr"
] | arijus.pleska@inria.fr |
8c8ea78c0a1faf00c55e03395b8ea646bcb1b392 | c6d6f62b89e063759f69e179bf7983a13c8180b5 | /src/customers/management/commands/add_kml_folder_user.py | 38eaa74a1e0aef611fa637a29a50a106c51c6b62 | [] | no_license | gtsarik/GSI | 170bba1b21b98a44f0fc0f7b9e25bc4b3ae31e9f | e625a189ebb79ebb772f752fbe6230a3e9f68acb | refs/heads/master | 2021-01-21T17:06:34.026805 | 2018-01-25T13:13:59 | 2018-01-25T13:13:59 | 47,333,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
import os
import shutil
from django.core.management.base import BaseCommand
from django.conf import settings
from gsi.settings import KML_PATH, KML_DIRECTORY
from customers.models import CustomerPolygons
class Command(BaseCommand):
def handle(self, *args, **options):
for cp in Cu... | [
"artgrem@gmail.com"
] | artgrem@gmail.com |
1ca8a96e0b71e9a58189e2862eea29a54f47696b | 4e39710ae6f45efa126c7b13405a3828569328d6 | /androidtv/adb_manager.py | 7a653ea0c0113b612ae3efb0c5f229b48ce88608 | [
"MIT"
] | permissive | achupryn/python-androidtv | 8fadca02e7ea1c6626ee1380668fd54ac32ca409 | f07cef9d2a23ecc74159f2aff214f48d3ae6134e | refs/heads/master | 2020-08-14T02:07:36.472217 | 2019-10-14T16:19:14 | 2019-10-14T16:19:14 | 215,078,002 | 0 | 0 | null | 2019-10-14T15:23:43 | 2019-10-14T15:23:42 | null | UTF-8 | Python | false | false | 10,457 | py | """Classes to manage ADB connections.
* :py:class:`ADBPython` utilizes a Python implementation of the ADB protocol.
* :py:class:`ADBServer` utilizes an ADB server to communicate with the device.
"""
import logging
from socket import error as socket_error
import sys
import threading
from adb_shell.adb_device import... | [
"noreply@github.com"
] | achupryn.noreply@github.com |
b26faaee57005647e91ee5eed1db8e45e42168e5 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /appflow_read_1/flow_list.py | 699f8baee02a7393c0403dd0ed480108f71902a9 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/appflow/describe-flow.html
if __name__ == '__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
5a196eef9655b0d0716fc8ab981d696c18e4abc4 | 3f11036a0a637125a6e7773b822b8aa8a78790eb | /PrNdOwN/colors.py | 232c0c0d4dfe4dc031b869d76697f9731e4fd6f2 | [
"MIT"
] | permissive | asdlei99/PrNdOwN | 08a4d20b67e140cc1464305b9955f5a7be4fc4eb | 5f524e5f4c0bf73b8657bcd6017e4465a12e5965 | refs/heads/master | 2023-08-28T12:32:17.419494 | 2021-10-18T14:30:40 | 2021-10-18T14:30:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | #!/usr/bin/python3
# Created By ybenel
from random import randint
list = ["\033[1;33m","\033[1;34m","\033[1;30m","\033[1;36m","\033[1;31m","\033[35m","\033[95m","\033[96m","\033[39m","\033[38;5;82m","\033[38;5;198m","\033[38;5;208m","\033[38;5;167m","\033[38;5;91m","\033[38;5;210m","\033[38;5;165m","\033[38;5;49m","... | [
"r2dr0dn@pm.me"
] | r2dr0dn@pm.me |
a128bd48e8decf7d7b6a257ef954180c2cc1bd69 | 83e58395b163c17dd807eb1a6fe7fc89a572ae6a | /knn_sepal_class.py | c27fdc0d6a17afee60d23524234ca59ce4ef036c | [] | no_license | tsbawa61/Basic-Python | 3de77bc6c440cc80f287c998398769bc9fdd4950 | db525798bf769bdb9aa9bd26ab7c8572d5800590 | refs/heads/master | 2020-06-12T14:21:33.520112 | 2019-07-09T08:02:51 | 2019-07-09T08:02:51 | 194,327,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | import pandas as pd
# loading training data
df = pd.read_csv(r'f:\PythonProgs\iris.csv')
df.head()
# define column names
names = ['sepal length', 'sepal width', 'petal length', 'petal width', 'spieces']
# loading libraries
import numpy as np
from sklearn.model_selection import train_test_split
# cr... | [
"noreply@github.com"
] | tsbawa61.noreply@github.com |
b7e85d1268bde6c041074923388775ae00941141 | b4e3f94e238419477e8e7a5cd19da4fed54a804c | /django_rest/settings.py | 284253522ea464dd1217b5c3a70dabe1e4262ca4 | [] | no_license | mvillafuertem/django-rest | 529058b9b59c911db16295597996864ad7636ffb | 7a7b7372bf93464e17ca67839e1df7e2e246e4a3 | refs/heads/master | 2020-03-27T02:05:09.545088 | 2018-08-22T21:25:27 | 2018-08-22T21:30:45 | 145,765,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | """
Django settings for django_rest project.
Generated by 'django-admin startproject' using Django 2.0.8.
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 o... | [
"mvillafuerte@fintonic.com"
] | mvillafuerte@fintonic.com |
3666c1888a87781170d032e3bf6e304c40a08f4d | 21dc9ae50715f126a28d7670dfceeedbec60d1f3 | /knowlarity.py | 505ca794c4b4eca16abc9a299782d3d4a5723458 | [] | no_license | bhishan/knowlaritysignupscript | be39da4d3857b63503be6361c7540020f4546fdc | e503736c8ddba181bd2969648234989184d4ca83 | refs/heads/master | 2016-08-11T21:14:20.424562 | 2015-12-01T08:39:04 | 2015-12-01T08:39:04 | 47,176,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
browser = webdriver.Firefox()
browser.get("http://knowlarity.com")
sign_up_submit = browser.find_elements_by_xpath("//*[contains(text(),'Try Free-for-Life')]")
sign_up_submit[4].click()
name = browser.find_element_by_name("contact-name")
nam... | [
"bhishan_0306@deerwalk.edu.np"
] | bhishan_0306@deerwalk.edu.np |
ceaf8b6be3564067ae5486c614255e73564c1f27 | f54b6e5a4b3282ef24bb2c7a7687a97b3d663c06 | /get_tweets/allt.py | 40bf15421a8edd0c1291459ec0cc9255031d7d87 | [] | no_license | DristiAI/twitterSNA | 5a56065fa3721a54465c95373a6e1dd57bc1f8dd | e5ea345ab9e8507ebfb96d8d5ced5b399feb06ca | refs/heads/master | 2020-03-18T19:19:12.110668 | 2018-05-28T10:56:07 | 2018-05-28T10:56:07 | 135,147,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import tweepy
import csv
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
ACCESS_SECRET = ''
def get_all_tweets(username,count):
auth=tweepy.OAuthHandler(CONSUMER_KEY,CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN,ACCESS_SECRET)
api=tweepy.API(auth)
tweets=[]
new_tweets=api.user_tim... | [
"aidris@localhost.localdomain"
] | aidris@localhost.localdomain |
01e32ca4177f55e36ea16c44fe160745cb49c5d6 | 8e291f094a1072a5ec470bdf1498d646afb315a3 | /PlotNeuralNet/pyexamples/test_simple.py | e3155e2edd86e5957d65998677248e8cb8eb922f | [] | no_license | qihangwang/PlotNeuralNet | 9712426608df3bb0239ddf3ec015fdeb2904002a | 34bf5df88bbba78017ebe8f9957445e81cb54a86 | refs/heads/master | 2022-01-23T09:17:46.055332 | 2019-06-21T14:30:32 | 2019-06-21T14:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | import sys
sys.path.append('../') # 添加自定义库的目录
from pycore.tikzeng import * # 导入自定义库
# defined your arch
arch = [
# 添加头
to_head( '..' ),
to_cor(),
to_begin(),
# 添加卷积层conv1
to_Conv("conv1", 512, 64, offset="(0,0,0)", to="(0,0,0)", height=64, depth=64, width=2, caption="conv1"),
# 卷积层conv1东... | [
"1695735420@qq.com"
] | 1695735420@qq.com |
567bdd3484ea87d2fef778157ecdc6551466457f | ad1c7e72779a34ea3d99cd392b3875acf84fc15f | /gae/main.py | 6cebce846d34ee0d5c0f8cb92bdb750424478b37 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | nelsondaza/sndlatr | 68871ca8e0398238eff840b1156118d726facac8 | eeaa9f7d4afb88ff813f0acf6ea47b24b78d2d65 | refs/heads/master | 2021-01-16T19:19:49.649219 | 2016-06-29T12:21:20 | 2016-06-29T12:21:20 | 62,527,053 | 0 | 0 | Apache-2.0 | 2020-09-12T03:22:37 | 2016-07-04T02:53:42 | Python | UTF-8 | Python | false | false | 1,134 | py | import os
import json
import webapp2
from webapp2 import Route
import oauth2client.appengine
from sndlatr import api, auth
def get_client_id():
path = os.path.join(os.path.dirname(__file__), 'client_secrets.json')
with open(path) as fd:
data = json.load(fd)
return data.values()[0]['client_id'... | [
"thembrown@gmail.com"
] | thembrown@gmail.com |
3a97bc46d4e8a7af8ac36a679c16db88cac1dd88 | cdafb14fe1f4e334960c91b2f53bc7e48b40a93c | /calculator/cal02.py | e0ae21931d7c72cbeaa669bc3388da8106a68ae2 | [] | no_license | alireza-E/alireza- | b15801d8c194fd82990f602d2759d2b67f1d5ec6 | b577ff8a6d81672ce9126e1bdd4ee603458f3207 | refs/heads/master | 2022-12-24T05:41:12.098687 | 2020-10-04T13:40:30 | 2020-10-04T13:40:30 | 301,139,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from term4.calculator.cal01 import cal
calcute = cal(10, 20)
print(calcute.mul())
print(calcute.div())
print(calcute.plus())
print(calcute.neg()) | [
"Rominash@gmail.com"
] | Rominash@gmail.com |
15096b8ea2606442330ff23af507e35d1d7adc1f | dc9642c9b73b8f29f7f322f48ce81973a52d7f08 | /Simple Chatty Bot/task/bot/bot.py | 92e022e539261379217cc31f1bd5699dd58a0f7e | [] | no_license | merlin2181/Chatty-Bot | 4f61be462f57ff8ba006c9c4c76c249ba6f1a839 | 63fa28c787034fed29a981cae5c7426228d6a042 | refs/heads/master | 2022-11-10T17:00:01.940505 | 2020-06-28T05:29:32 | 2020-06-28T05:29:32 | 275,513,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | def greet(bot_name, birth_year):
print('Hello! My name is ' + bot_name + '.')
print('I was created in ' + birth_year + '.')
def remind_name():
print('Please, remind me your name.')
name = input()
print('What a great name you have, ' + name + '!')
def guess_age():
print('Let me guess your age... | [
"merlin2181@gmail.com"
] | merlin2181@gmail.com |
cef3363d820485112bac11a7906824633122136f | 36130e4eb6c343a66906ef6930d30a0ba23ebf71 | /cgmaptools | 2e4ad8ac281b92b92795bbc21579cb150f64550a | [] | no_license | guoweilong/cgmaptools | d05b32694d0d0b98173a00058766a52933227fea | 9e6617ddd9029f66d63bbf41695534271d460d91 | refs/heads/master | 2022-08-21T22:30:29.166941 | 2022-07-25T03:55:57 | 2022-07-25T03:55:57 | 79,823,059 | 59 | 29 | null | 2019-06-19T13:58:09 | 2017-01-23T16:29:17 | C | UTF-8 | Python | false | false | 12,433 | #!/usr/bin/env python
"""
cgmaptools
Copyright (C) Weilong Guo & Ping Zhu
Contact: Weilong Guo <guoweilong@126.com>
Ping Zhu <pingzhu.work@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softwar... | [
"791116341@qq.com"
] | 791116341@qq.com | |
823a712c59c662ec4f9992f7f89e7f4223da9a66 | 75080b5a153c7493a04a05b5713aad629799a389 | /optimizor.py | 0cbf7ae6fa4a3539df75252665a894ac6bce95cc | [] | no_license | chenjiaxiang/statlearn | e26a2bbd478d8ff39cd9f6f2a6efe761e70c45fe | 7c262e0f267d4226067e1428a383deab58ffcfaf | refs/heads/master | 2021-07-02T09:04:47.113672 | 2017-09-23T12:56:59 | 2017-09-23T12:56:59 | 103,604,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import numpy as np
import scipy
from scipy.optimize import minimize
def func(x,sign=1.0):
return sign*(10-x[0]**2-x[1]**2)
def func_deriv(x,sign=1.0):
deriv_1 = sign * (-2*x[0])
deriv_2 = sign * (-2*x[1])
return np.array([deriv_1,deriv_2])
cons = ({'type':'eq',
'fun':lambda x:np.array([x[0]+x[1]]),
'jac':... | [
"noreply@github.com"
] | chenjiaxiang.noreply@github.com |
a4a793650c2b248fc1011d9998c9c2335c39e36a | f03e695b5fd6d8e4f38a54bd38751120d9b6c6d0 | /datatype.py | e9ae26b8bf2d9b9fa1073ea5cf43bd82a10eb619 | [] | no_license | littlegogo/doccrawler | b118f04bf9f81763bb01a0fd40d4db92b4ca7a8b | e27f121b35fa392e067b931476addf48c96c1c62 | refs/heads/master | 2022-04-19T18:33:37.130635 | 2020-04-15T13:16:25 | 2020-04-15T13:16:25 | 255,919,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py |
class DataType:
"""
用于表示类或结构体类型的成员信息
"""
def __init__(self, name, desc, varinfo, funinfo, typedefs, enums):
"""
构造数据类型描述信息
:param name: 数据类型的名称,类名或结构体名称
:param desc: 数据类型的描述信息,类或结构体的描述信息
:param varinfo: 描述类型成员变量信息的列表,列表元素依次为描述public,protected, private 成员的列表
... | [
"1605436974@qq.com"
] | 1605436974@qq.com |
f4ef95888f019546f1c9effa5878a6f1438da8c3 | 4937e6e53384ad779cf9d73a0db7f2875e8afef2 | /Network Service/Processing Logic/queue_operation/python_queue.py | 895f61b2c941cb56e0c6557c065bc03406c73fa5 | [] | no_license | panxie0906/prepare615 | 7b64547ed724d71ca0bc179e1effbfa5ffe85160 | 9d1a7283fee9b42d6144281d8e723576002b0a3c | refs/heads/master | 2020-12-02T07:47:04.167303 | 2017-08-31T14:20:32 | 2017-08-31T14:20:32 | 96,726,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | #-*- coding:utf-8 -*-
import queue
'''
python queue有三种构造函数
class Queue.Queue(maxsize)
class Queue.LifoQueue(maxsize)
class Queue.PriorityQueue(maxsize)
分别对应
FIFO先进先出队列
LIFO先进后出队列
优先级队列,优先级越低越先出来
'''
def queue_op():
# 如果超出队列长度就会发生很诡异的反应
# maxsize<1代表无限
# 想要实现环状的队列可以自己自定义实现
myqueue = queue.Queue(3)
... | [
"406551408@qq.com"
] | 406551408@qq.com |
1121f6d1df4336faf95572947631d438cb815965 | 8921e3e95c354ffb58989692a2c460b9133da09f | /blog/migrations/0001_initial.py | 71a438646c87d7ef85369d72bbd60fcd2d5bf97e | [] | no_license | zhangliutian/simpleblog | f8fbf0be1174b60cdcc63291c94dbb7b695abead | c1ecb05edff4fde15dd636f8dbac51c6d881f3f9 | refs/heads/master | 2021-09-02T19:24:58.989845 | 2018-01-03T19:28:55 | 2018-01-03T19:28:55 | 115,597,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # Generated by Django 2.0 on 2017-12-28 07:10
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_... | [
"521348888@qq.com"
] | 521348888@qq.com |
8fdf88c808741fc5ec9b1b3e6f8a3e2a28698f9a | a25acab883494fa90cccc7255cac67251b40a21d | /models/base/backbone/pvt.py | 0f83ce20a3df9c84f6eaba65ae4b21c0f1b8dda5 | [] | no_license | csliuchang/PupaDetector | cd8d85ca0cdb236dae28b82cdac144e17ce8f76f | b88dfdfd3f52e1df7cd44b5e1d7086acbe1ec046 | refs/heads/master | 2023-08-12T13:05:19.796420 | 2021-09-17T08:54:28 | 2021-09-17T08:54:28 | 397,140,426 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,713 | py | import torch
import torch.nn as nn
import math
from functools import partial
from models.builder import BACKBONES
import warnings
import collections.abc
from itertools import repeat
def _ntuple(n):
def parse(x):
if isinstance(x, collections.abc.Iterable):
return x
return tuple(repeat(x... | [
"598306303@qq.com"
] | 598306303@qq.com |
50142bec6afbefb2d5673718f52fc2336d4a3425 | e99b36eab69d98f0ed2ca0e1d2ec705778e8a2fd | /api.py | 796a6745f9b1b2412e390c79655ba7c8e6c744bc | [] | no_license | RV05/thermal-Image-processing | de863c2c88b704e2bfe1426f655ca149bc134c70 | 5f97ab1a5a088cbf7e0992756b98f8c309cdbee3 | refs/heads/master | 2022-11-17T19:18:01.696743 | 2020-07-25T14:09:11 | 2020-07-25T14:09:11 | 282,456,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import pyrebase
config={
"apiKey": "
"authDomain":
"databaseURL":
"projectId": "
"storageBucket": ",
"messagingSenderId": ,
"appId": "
"measurementId": "
}
firebase=pyrebase.initialize_app(config)
storage = firebase.storage()
path_on_cloud="files/demo1.xlsx"
path_local = "demo1.xl... | [
"noreply@github.com"
] | RV05.noreply@github.com |
ad5591a734bd2d1525760f15420f88ba941c85bd | d8d79878598e75d7a21c6cdd244b3702732756ab | /lesson13/top_k.py | 2ed8a6c720641e908e7b6e277d3d6f816708b806 | [] | no_license | MyFate-0517/AdminTempalte | dbebb0613b9182549f788a2dfb8dec1c8fcbbc71 | f7a8c44e39698ff82a01afc8a744cbb4d92e71ad | refs/heads/master | 2020-12-07T10:59:25.413726 | 2020-01-09T03:17:25 | 2020-01-09T03:17:25 | 232,708,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# 返回预则结果的准确率
def accuracy(output, target, topk=(1,)):
"""
:param output: [10,6]
:param target: [10]
:param topk: top_k acc
:return:
"""
maxk = max(topk)
batch_size = target.shape[0]
idx = tf.math.top_k(o... | [
"68612123@qq.com"
] | 68612123@qq.com |
c0343df09abcbc85ef321b86520d2a3a3a598787 | c00dcd05a6cba10dc94ddb4b92c32efc4da17cb8 | /mystie/mystie/urls.py | eed1de4ded21fb246009835c0c7adcb0bd6e1b1d | [] | no_license | mickberber/djangoProto | 3434331fd8db0267872f50efa916beecfee1058f | f4f3105e8121651ae541efb194933483997925cd | refs/heads/master | 2021-01-01T05:18:18.039901 | 2016-05-11T01:43:36 | 2016-05-11T01:43:36 | 58,497,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | """mystie URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"mickberber@icloud.com"
] | mickberber@icloud.com |
842500ee3b4b3366bab6f1f5bc1c4c75d8750ab8 | 0f427e0edf7837f8213592580dca7edbc99997f3 | /main.py | 3ac2df6f7cc966b094ab1f7e9e675d03bb681209 | [] | no_license | davidmace/qa-research | a07b343ad7cf45b0569b7e0fea9da5a854adfafe | 0a282d00a4f0c2889ff1d2eec54e72c579777ea5 | refs/heads/master | 2020-06-12T15:35:58.709583 | 2016-12-07T04:19:54 | 2016-12-07T04:19:54 | 75,798,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,152 | py | # Notes:
# Lose 2.4% of questions because the entids are not in feebase-ents.txt
from pyspark import SparkContext, SparkConf
import operator
import re, string
from nltk import ngrams
from collections import defaultdict
import operator as op
import math
import numpy as np
import sys
from googleapiclient import discove... | [
"dmace@caltech.edu"
] | dmace@caltech.edu |
3d59cf2ba21b419c661f3c613e8d078d6d06fa2f | ac699d1e433b95187975a718eef7c85d059ca70e | /bin/timeoutlib.py | de717c7a5e6bfee4a6e8c413a522edafef0c7aea | [] | no_license | marcelouva/pewa | 1d253bfea61becaba14f1d7921e04ba5fcb5cc11 | eea8f530f43738717867d82d8436e117d08fe01e | refs/heads/master | 2021-01-19T10:36:36.631698 | 2017-04-13T01:28:43 | 2017-04-13T01:28:43 | 75,091,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | from functools import wraps
import errno
import os,ap1
import signal
from datetime import datetime, date, time, timedelta
class TimeoutError(Exception):
pass
def timeout(error_message=os.strerror(errno.ETIME)):
seconds=int(ap1.read_config_case("../config.ini","options")['timeout'])
def decorator(func):
... | [
"uva@dc.exa.unrc.edu.ar"
] | uva@dc.exa.unrc.edu.ar |
902093c9e3bc1c6b3fbe804605244b8c8cfaee54 | d8508a5471ab2db65a96419bef412f9e123ce988 | /week_01/lab_01/chop_011.py | 0c5e1b29196529ed18d78e76032f0ece14a62d6a | [] | no_license | Dunnel45/ca117 | 75bc8f7518c16fe21d7033f54fe4462e982e6c7d | 11d522e58e364b14cb67f718cef554bef0691810 | refs/heads/master | 2020-11-27T20:34:06.845509 | 2019-12-29T12:15:58 | 2019-12-29T12:15:58 | 229,592,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #!/usr/bin/env python
import sys
def main():
for lines in sys.stdin:
words = lines.strip()
chop = words[1:-1]
if chop:
print(chop)
if __name__ == '__main__':
main()
| [
"noreply@github.com"
] | Dunnel45.noreply@github.com |
89519fbd675ddebfbfb5b2e93b4c7e10f44b81fc | 71fbfb197e2756160680de9f4c303f20b63afa26 | /dpkt socket学习过程/learning dpkt/dpkt_out.py | f4c9753ff6b2b06b224b05079ac9bb9fad73e7bc | [] | no_license | RabitW/PacketCaptureOnPy | b1839bfa7ac12187056383443e1cbc4587283803 | 207bcd6038497bf36c55ba4089931b8ba6cb897b | refs/heads/master | 2021-01-21T11:34:02.281168 | 2016-10-22T04:47:36 | 2016-10-22T04:47:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,457 | py | # -*- coding:utf-8 -*-
#!/usr/bin/env python
"""
TESTED !
[Print Packets Example]
Use DPKT to read in a pcap file and print out the contents of the packets
This example is focused on the fields in the Ethernet Frame and IP packet
URL:http://dpkt.readthedocs.io/en/latest/_modules/examples/print_packets.html#test
"""
im... | [
"uulink@outlook.com"
] | uulink@outlook.com |
5c1ac19434bd1f7eca275e5ddf72cd8965c8e62e | f4ea1f3236f9980e82cc52bb1f9beaa87d17fd85 | /workflow/NumberNode.py | 1008f3d206e57dbb07e38f00e8ebb5dc18ad7827 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | YOCKOW/PythonGitHubActionsWorkflowRepresentation | 44eb1b332eb2e36f38bed0ba3f7b966f835f7394 | 1e8cb9fd4ade42b01f0c521f659c16b12d7957de | refs/heads/master | 2020-09-07T20:11:38.132302 | 2019-11-22T06:00:16 | 2019-11-22T06:00:16 | 220,901,242 | 0 | 0 | MIT | 2019-11-22T06:00:17 | 2019-11-11T04:31:27 | Python | UTF-8 | Python | false | false | 444 | py | from .string import Lines
from .Node import Node
from .util import yaml_from_number
from numbers import Real, Integral
class NumberNode(Node):
def __init__(self, info: Real):
assert isinstance(info, Real)
self.__number = info
def yaml(self) -> Lines:
return yaml_from_number(self.__number)
class Integ... | [
"YOCKOW@users.noreply.github.com"
] | YOCKOW@users.noreply.github.com |
7fed78fc07f768255aefaa2a257bc0634ba38294 | 9afd82a16b97600ccdec764945cea31b77248e69 | /Teaching/entry.py | 13990c02b02a182c4fc7ab309272fa97bfd4f347 | [] | no_license | sinameshkini/python_samples | c722e0acb448b50d29fea6d005c483e373b77b81 | b4ba993df327e47d97fd16e634ea44f749ed13ac | refs/heads/master | 2020-05-27T21:52:35.104764 | 2019-05-27T03:44:16 | 2019-05-27T03:44:16 | 188,800,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from tkinter import *
root = Tk()
root.geometry("300x200")
root.title('Code Core')
root.configure(background='light gray')
def chang_txt():
l1.config(text=e1.get())
l1=Label(root, text = " Hello World!",fg = "light green",bg = "darkgreen",font = "tahoma 16")
l1.grid(row=0,column=0)
#l1.place(x=10,y=10)
Label(ro... | [
"sinameshkini7@gmail.com"
] | sinameshkini7@gmail.com |
427ba04826a00292ca7fafef75d3d013173842a5 | 38ec5642460306d48d5f973dce3e10c80f3f9650 | /social_login/models.py | 2e9dfbe34e0867954c2b258949d64e2a6fe13917 | [
"BSD-4-Clause"
] | permissive | lomatus/django-social-login | 113be279b120f56a3547275bebad0429f26258c8 | c84f8d8ea82cb7cb58ede1230c69ae5f19de1f77 | refs/heads/master | 2020-12-03T10:29:51.946410 | 2014-03-27T05:05:22 | 2014-03-27T05:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.conf import settings
from .app_settings import SOCIAL_LOGIN_UID_LENGTH
from .manager import SocialUserManager
def _abstract_siteuser():
custom_siteuser = getattr(settings, 'SOCIAL_LOGIN_ABSTRACT_SITEUSER', None)
if not custom_siteuser:
... | [
"yueyoum@gmail.com"
] | yueyoum@gmail.com |
3f06a5b160b479d9a68ec56bf4db9b3841dcbb8f | 8f3ac7f795f4c57c895514331743c86721147a9e | /demo2/booktest2/urls.py | 25668b20b92879c7af1a95c76c7ff4974f2753d6 | [] | no_license | shuimao/wuchunfeng | e1341f06451101d870bd460038db7be6c4e593e1 | 7efed1fd27df0b22c87f76017123fd3081029788 | refs/heads/master | 2022-11-24T11:46:31.573281 | 2019-07-19T02:28:36 | 2019-07-19T02:28:36 | 194,625,310 | 0 | 0 | null | 2022-11-22T04:07:44 | 2019-07-01T07:50:56 | JavaScript | UTF-8 | Python | false | false | 632 | py | from django.conf.urls import url
from . import views
app_name = 'booktest2'
urlpatterns = [
url(r'^index/$', views.index, name='index'),
url(r'^list/$', views.list, name='list'),
url(r'^detail/(\d+)/$', views.detail, name='detail'),
url(r'^roledel/(\d+)/$', views.roledel, name='roledel'),
url(r'^r... | [
"411468873@qq.com"
] | 411468873@qq.com |
7f637b614c55bd7c37e6d684ad5808118acfe36c | 5be53821af680c32d9d8b097e6f38cabad0068f7 | /Week02/242.有效的字母异位词.py | 7c2a4a279e51e1bd52248c818bf1255ae122945d | [] | no_license | DonnyChen/algorithm010 | bb1f91e3d23d7fed862d3bf7097a64a5deef4675 | f065fdad276318db179bc60d58438890b8e1fbe0 | refs/heads/master | 2022-11-12T08:51:36.620166 | 2020-06-28T15:58:48 | 2020-06-28T15:58:48 | 271,441,519 | 0 | 0 | null | 2020-06-11T03:21:37 | 2020-06-11T03:21:37 | null | UTF-8 | Python | false | false | 623 | py | #
# @lc app=leetcode.cn id=242 lang=python3
#
# [242] 有效的字母异位词
#
# @lc code=start
class Solution:
# 1 排序
# def isAnagram(self, s: str, t: str) -> bool:
# return sorted(s) == sorted(t)
# 2 哈希映射
def isAnagram(self, s: str, t: str) -> bool:
dict26 = [0]*26
if len(t) != len(s):
... | [
"“donny_df_mse@outlook.com"
] | “donny_df_mse@outlook.com |
80687ef66fb00b8c3322399150fd54d32cdc51bb | f5b54e3d1d00f6d58b5eb8a3ceaf0cee9735c53f | /Veacon/vehicle/migrations/0001_initial.py | 613bc19f5e839235e031e46da10a9ec8a483ae36 | [] | no_license | feerposser/veacon_sys | c5ba824aadb806dea1746ee708ad98df550721fa | 2f85e4999c1c43fa968ed1ea599c6a23b4f7e395 | refs/heads/master | 2022-04-02T15:14:01.509692 | 2020-02-16T22:31:09 | 2020-02-16T22:31:09 | 234,101,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | # Generated by Django 2.2.7 on 2020-01-08 19:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('user_veacon', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='VehicleModel',
fie... | [
"fernando.posser@hotmail.com"
] | fernando.posser@hotmail.com |
2d7fabb3c3d73402cce2a0930012fd2cbb7212de | 1498148e5d0af365cd7fd16197174174a7fa9800 | /leetcode/t000557_3.py | b6eeb948f9726f5896a9f6da569093d8e6d99862 | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | class Solution:
def reverseWords(self, s: str) -> str:
return " ".join(s[::-1].split(" ")[::-1])
s = Solution()
print(s.reverseWords("Let's take LeetCode contest"))
import time
t1 = time.time()
for i in range(100000):
s.reverseWords("Let's take LeetCode contest")
print(time.time() - t1)
| [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
da6a0298a940ce8965d0f00bd8a5ef8e830004b5 | e819eff29a5002a20adbf68ecc5e0295dfdea5bb | /ch5/readline2.py | 016e0a9c14f907d5ebaad69bab28acc4eee1c1d0 | [] | no_license | Scott-S-Lin/Python_Programming_ChineseBook | 91f25e01ca123e32d121468055a5749045557351 | 06ad28da15065d49790eefa6d6cd92702bfa55e8 | refs/heads/master | 2020-04-17T21:26:41.523865 | 2019-01-22T07:41:24 | 2019-01-22T07:41:24 | 166,949,930 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py |
#function: using readline() to read data
file_in = open("employee1.txt",'r')
while True:
linedata = file_in.readline()
if not linedata:
break
print(linedata, end='')
file_in.close()
file_in = open("employee1.txt",'r')
print("\n using readlines()\n")
for linedata in file_in.readlines():
print... | [
"wenyuan.s.lin@gmail.com"
] | wenyuan.s.lin@gmail.com |
18758a9998673d576be354f2729c612fca8dca2a | 9c3708c7cfc0a16fcb09e459dd66a53c67d25e6f | /djClassSchedule/urls.py | 7c44195767f9bf086e5438deee6d1943e7eb1ba2 | [] | no_license | EckerdCollege/djClassSchedule | a1f668338a56c16d449cb2880f4a8f3cf11153f4 | 37d55d5369e067e5ac884fc0e4a0d9a075ae2e2b | refs/heads/master | 2021-01-19T21:32:46.558498 | 2017-06-09T15:45:19 | 2017-06-09T15:45:19 | 88,663,985 | 0 | 2 | null | 2017-06-09T15:45:20 | 2017-04-18T19:43:55 | JavaScript | UTF-8 | Python | false | false | 832 | py | """djClassSchedule URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"ChristopherDavenport@outlook.com"
] | ChristopherDavenport@outlook.com |
d7619a72a5b64244d23fd88c90aa7bc8d693aea5 | 7604051222cd0779f8f5ea5c40477665862c9c25 | /first_task/script.py | 3a510b4181a2584f793eca16e8cecd98ac04f764 | [] | no_license | Khitretsov/examples | 9cb0d8ffa2b160cc595f68365485066704b11261 | 651f1daeb712b6c753dbb8809587187d6717426a | refs/heads/master | 2023-01-05T21:04:14.675535 | 2020-11-04T22:42:36 | 2020-11-04T22:42:36 | 310,134,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | obj = {
'a': 1,
'b': 3,
'c': {
'd': 2,
'a': 3,
'f': {
'f': 2,
'd':3
},
'v': 4
}
}
def flatten(d):
answer = {}
def search_path(dd, letter=''):
paths = []
keys = dd.keys()
for key in keys:
... | [
"NekitHitr@yandex.ru"
] | NekitHitr@yandex.ru |
ef66d5d1c123eba265ed18adb9743adf1dbfd930 | 2aa3a50982ab45136787f55a0dfc4d4be86831c4 | /rbtree.py | 7370c2b5f1532117c07ce765fd3630ee70ec5911 | [] | no_license | Miautawn/Red-Black-Tree | 6a5026eaa568ce6c1899531be072d3e447944d88 | a6edca687a87d59736c444214e323fe576261131 | refs/heads/main | 2023-04-25T22:43:41.605664 | 2021-06-06T08:35:10 | 2021-06-06T08:35:10 | 374,307,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,025 | py | #RED-BLACK Tree, Martynas Jašinskas VU ISI 1k.
from os import system
class Node():
def __init__(self, key):
self.colour = "RED"
self.key = key
self.left = None
self.right = None
self.parent = None
class RBTree():
def __init__(self):
self.NILL = Node("NILL")
... | [
"miautawn@gmail.com"
] | miautawn@gmail.com |
0283fb33f229cbc5a9db922f72ecb19545e2d7c7 | 58fd749471c9de26a7ad9a357385aeb9606f8d97 | /plug_and_play/master/forms.py | ef09dc679d8805eda66898594fbbea4030865c1c | [] | no_license | kSinghParth/Plug-and-Play | 2810336a26f0a6847678352d0e37ec55ba2b9db4 | 13f1e9afb9d194968282ddc9e8a30202e23b3b77 | refs/heads/master | 2022-06-09T08:06:27.028198 | 2022-05-27T00:22:53 | 2022-05-27T00:22:53 | 177,397,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django import forms
class UploadJobForm(forms.Form):
file = forms.FileField()
process = forms.FileField()
aggregate = forms.FileField()
| [
"parthsingh287@gmail.com"
] | parthsingh287@gmail.com |
c8aa9a7652ebbd1dbeb6a42dbd17fe1780634663 | 91e2408eeaecda5e3bc6f08099024a2f7dba7929 | /util/latent_space.py | be8996455ad1d51ed3082cf3c9f31ab34a8d34e8 | [] | no_license | ArashVahabpour/SOG | 90041e16dcd7da9b2c61be0a277a7846c5d046c1 | 3e8abdaae72941b6316e8849026b11846b77db94 | refs/heads/master | 2023-04-22T16:24:12.830567 | 2021-05-17T05:53:11 | 2021-05-17T05:53:11 | 236,617,903 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | import numpy as np
from scipy import stats, linalg
from math import ceil, log2
import torch
import torchvision
import cv2 as cv
import os
# Converts the tensor of a batch of images to a grid visualisation
def make_grid(image_tensor): # TODO add normalization option
batch_size = image_tensor.shape[0]
grid_w... | [
"vahaabpour@gmail.com"
] | vahaabpour@gmail.com |
7bae208221ada732f93c04006eea3676ed23eef1 | 639a7b975ebfba7cb7d522dbfa99c57188c3e388 | /setup.py | 963e4d5ae1361b2b7764a7f337e1e670cf170071 | [
"MIT"
] | permissive | Suresh-Singamsetty/oneNeuron_Pypi | a6998ea7dbf567e15083afa1ebf400edabd70106 | 4d0634dc5bf550def5f42621a82bf8706513085c | refs/heads/main | 2023-09-06T04:47:09.267756 | 2021-10-02T23:12:56 | 2021-10-02T23:12:56 | 412,920,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
PROJECT_NAME = "oneNeuron_Pypi"
USER_NAME = "Suresh-Singamsetty"
setuptools.setup(
name=f"{PROJECT_NAME}-{USER_NAME}",
version="0.0.1",
author="USER_NAME",
author_email="author@example.com",
d... | [
"sureshsmart96@gmail.com"
] | sureshsmart96@gmail.com |
80da79e2bdd7822bb7d3551aa39ae8f34bd61f93 | ea9c8cf17b1a82d070e5ee96aa40c3fee4938a96 | /test2.py | deec61f7fbaa02f973853de85c8ad2c11ff539e5 | [] | no_license | z00m1k/Python | c311cbb1f74a1203497e32adf84b8fe9c2685b92 | 5ead0f5a759f9ec42fad6b8ce161e6ab2e49b316 | refs/heads/master | 2020-09-30T18:01:11.262437 | 2019-12-11T10:53:12 | 2019-12-11T10:53:12 | 227,343,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | #Дан массив размера N. Найти два соседних элемента, сумма которых
#максимальна, и вывести эти элементы в порядке возрастания их
#индексов.
import random
from colorama import init, Fore, Back
init()
print(Fore.BLACK)#Черный цвет
print(Back.GREEN)#Зеленый фон
spam = int(input("Введите размер массива N: ")) ... | [
"noreply@github.com"
] | z00m1k.noreply@github.com |
2a4d717f63b2aadc4aa1f79e5ce3f4b0573d5839 | d0aa87b4d5ec9eac9646cba850deb4883ba72625 | /app/recipes/views.py | 4f030938fa561806af0e25d5c9f6b828bf4c2cc3 | [
"MIT"
] | permissive | alisoliman/recipe-app-api | c33c8ca73866d44a7e07acd13506618edf2bbd4d | 5a8269d4e25c11cd57a9d25d8fb69955192fc2a6 | refs/heads/master | 2020-07-27T16:19:13.943206 | 2019-10-21T21:23:43 | 2019-10-21T21:23:43 | 209,155,072 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,558 | py | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Tag, Ingredient, Recipe
from recipes... | [
"ali.soliman95@gmail.com"
] | ali.soliman95@gmail.com |
37e641caa37f4e7f18e93aaf0e5e626765ec31c3 | 1260ce7869ce32d6b434afbf273273b7b1ebea2d | /euclidean_equivariant_networks/experiments/nbody/nbody_run.py | 4a138819ba680fd99e4be0f945f93bf14e4c68ef | [] | no_license | savvy379/Lorentz-Equivariant-GNN | b3b30e964cfa9af39adcb4e8b73bc78b4f8b7b5e | 3d1c74081bdd43387a7c530bce73580db379d22d | refs/heads/master | 2023-08-01T06:43:13.229014 | 2021-09-22T18:35:15 | 2021-09-22T18:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,826 | py | from euclidean_equivariant_networks.utils.utils_profiling import * # load before other local modules
import argparse
import os
import sys
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
import dgl
import numpy as np
import torch
import wandb
import time
import datetime
from torch imp... | [
"jtwong71@gmail.com"
] | jtwong71@gmail.com |
440db375b41af7127785a5a26f60663d0f298e07 | 8a9b13128e8358afc69364be5ad08c537e278da0 | /backend/pyserver/pyauth/getUsers.py | 083693f43f1390eaef6951211ebb4ee519d0fe13 | [] | no_license | jai2033shankar/smartPi-app | e97b9322e1a506a8f977c46f0d7b6d0d411e3c7e | 9f2f4095dd4b396a4927591af023ef3082480c0a | refs/heads/master | 2022-06-02T02:20:53.744877 | 2020-05-01T19:36:46 | 2020-05-01T19:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import sqlite3
if __name__ == '__main__':
conn = sqlite3.connect('pyauth/pyauthentication.db')
c = conn.cursor()
c.execute("SELECT * FROM User;")
rows = c.fetchall()
for row in rows:
print(row)
conn.commit()
conn.close() | [
"stefano.milani96@gmail.com"
] | stefano.milani96@gmail.com |
e83d86c7576db3f7eee3604f9de83c1697463f4f | 7da3c9a7a4f6470b077d03f660341522c8906f5d | /2/3Lista.py | c6f5d5b4297e6cc29f6049c9696cf84c574354d3 | [] | no_license | KFranciszek/Python | 4cda7060936ea9644052a75dfd8aa63eacc17b0a | 19caa6b4c80745fda2bca6b68ee58c260437b40b | refs/heads/master | 2021-01-20T03:36:51.416134 | 2017-02-17T12:05:35 | 2017-02-17T12:05:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #[] lista pusta
lista1 = ['Aurelia', 'Amelia' ,'Monika','Asia']
print(lista1)
# wstawianie do listy lista.append()
lista1.append('Arielka')
print(lista1)
lista1[-1] = 'Rafal'
print(lista1)
#usuwanie z listy lista.pop() lista.pop(pozycja)
# lista.remove(sth)
lista1.pop(0)
print(lista1)
lista1.remove('As... | [
"e.kaczmarek01@gmail.com"
] | e.kaczmarek01@gmail.com |
15b977a009a4628376a2913a58323c68ac6574dd | 172befeabd113a71c6a7adc80b9ec005a29d12d3 | /UDP_Server.py | e0120d83aa639b8999e0adf09b2eb88401d34c35 | [] | no_license | RyanSandford/Reliable-Data-Transfer-Protocol | 87efd088cdbeede151abfaca87a0cdbc019cb174 | c5e2d08fc9e46998fc7bca24488a36af01094056 | refs/heads/master | 2022-12-16T05:36:24.261485 | 2020-09-07T16:25:24 | 2020-09-07T16:25:24 | 256,092,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,359 | py | """
Ryan Sandford, November 10, 2019
This Program implements the server side of the reliable data transfer 3.0
protocol described in section 3.4.1 of Computer Networking: A Top-Down Approach
"""
import binascii
import socket
import struct
import sys
import hashlib
import random
import time
#The servers ad... | [
"noreply@github.com"
] | RyanSandford.noreply@github.com |
c4d5e4a9d08432307712aa7554bd1f7c8294b134 | 55b4fe0a6616b30c128b51a9918605050ce49f6d | /long_migrate_reverb | 2fda0ad0a588dd11dce3bebc40fc085247a8f0ca | [] | no_license | samhaug/ScS_reverb_setup | 783a4fb7c942a598f18dc6c9e3544aa5e2bbcafe | 05e96b9f871d25a1e7b5e9284083167993f56cec | refs/heads/master | 2021-01-12T03:35:45.657459 | 2017-06-24T17:24:07 | 2017-06-24T17:24:07 | 78,234,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | #!/home/samhaug/anaconda2/bin/python
'''
==============================================================================
File Name : migrate_reverb.py
Purpose : Perform a migration to detect reflection coefficients of mid mantle
discontinuities. Must have access to a lookup table, waveform glossary,
... | [
"samhaug@umich.edu"
] | samhaug@umich.edu | |
a7c4eea0ecde8bbaacf7d180023f3c10d8fa1093 | 9facfc32e57d6ada78f985d733fe743776eace6c | /py1.py | f4e6b3aaa385ca91f7c9de3bc90ea4afff415a7b | [] | no_license | hadiuzzaman83/Python_Basic | 2241737a644e945f0ed26a4d01ed6e0e5d75896b | 6b7b649f7c16bfdf0c939a0b1d56cea0b4d8938a | refs/heads/main | 2023-05-25T08:19:27.452142 | 2021-06-05T17:17:42 | 2021-06-05T17:17:42 | 370,715,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | name="Sajib"
age=23
print("My name is "+ name)
print(name + " lives in Dhaka")
print("I am ",age,"years old") | [
"noreply@github.com"
] | hadiuzzaman83.noreply@github.com |
f93504628b64047d8caf1a1e51b1e51ec623fdb6 | 4c7edea64557713f578589bcb37194aa11298037 | /blog/admin.py | e75b53032d8869e7a52bc553a2da987d57401507 | [] | no_license | andmichalski/simple_blog | f9eaed52bdf5d6d0def7fd6d06d64a5a1e3b5574 | 70a4bce58fb37a26001c7f7408b960627011418f | refs/heads/master | 2020-03-17T09:58:31.561788 | 2018-05-15T09:50:44 | 2018-05-15T09:50:44 | 133,495,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Post, Comment
# Register your models here.
admin.site.register(Post)
admin.site.register(Comment) | [
"amich@PGI.LOCAL"
] | amich@PGI.LOCAL |
f75a8d1e069137fda3e6800c5dad62c04b1af9f1 | 9abe6ee7a6f2abe977ff56ef7a1146cede60d130 | /tools/viewer/watcher.py | d8f990759a0b959c46147bb4ece25654ac041c6b | [] | no_license | nitk-pm/Procon | cd806eb6256c7da5ee3d2e6e206b1ca0f8f14df2 | aca6c9a783b81349df5d04b289debc75ae1f0315 | refs/heads/develop | 2022-04-05T15:30:52.868403 | 2020-01-15T09:20:10 | 2020-01-15T09:20:10 | 41,779,698 | 0 | 3 | null | 2020-01-15T09:20:12 | 2015-09-02T04:24:33 | Python | UTF-8 | Python | false | false | 2,610 | py | from watchdog.events import FileSystemEventHandler
from watchdog.observers import Observer
import subprocess
class Handler(FileSystemEventHandler):
callback_list = []
def handler(self, func, *args):
return func(*args)
def run_command(self, event):
if event.is_directory:
... | [
"st16423@kagawa.kosen-ac.jp"
] | st16423@kagawa.kosen-ac.jp |
c01ec44f472ccf75f5c30d40679c61081519651b | d8ab8493671362787a6adc7de6994dff733db086 | /venv/bin/wheel | 934f24afaf55548ebae12bc0c72e08b230381114 | [] | no_license | sean7218/NFL-ELO-Backend | da5846864b3dfe7ddc6a063f83c3bec138641ab5 | d5db1e16553df3211b51dd19d285ef905a325399 | refs/heads/master | 2021-05-16T05:01:26.105453 | 2017-11-03T01:52:17 | 2017-11-03T01:52:17 | 106,234,956 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/Users/mpb15sz/apps/nfl-elo/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sean7218@gmail.com"
] | sean7218@gmail.com | |
8987b5c868a3bdb413b4653d0418dcb4533fe615 | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/unit/utils/test_proxy.py | 1c9a34ede319499d1b3092e79566219d1481ff35 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 1,403 | py | """
Unit tests for salt.utils.proxy
:codeauthor: :email:`Gareth J. Greenaway <gareth@saltstack.com>`
"""
import salt.utils.proxy
from tests.support.mock import patch
from tests.support.unit import TestCase
class ProxyUtilsTestCase(TestCase):
def test_is_proxytype_true(self):
opts = {
... | [
"dan.woz@gmail.com"
] | dan.woz@gmail.com |
069d3d012ad1d98276a8559e2436bc06aed458f7 | 0e7243d4d77e6c36ee9905bbbd4de92c322f49b7 | /app/views.py | 3892f0cf2a805986ae234ed6673732f21c533ed1 | [] | no_license | meru86/django-book-search | c64ba1cdee504db17cff3b924681cb4369dac16a | d909db122b4527f2e760545a8205c25eb6343edc | refs/heads/main | 2023-03-31T20:35:43.069501 | 2021-03-31T04:12:12 | 2021-03-31T04:12:12 | 352,857,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,919 | py | from django.shortcuts import render, redirect # redirectを追加
from django.views.generic import View
from .forms import SearchForm
import json
import requests
from django.http.response import HttpResponse
SEARCH_URL = 'https://app.rakuten.co.jp/services/api/BooksBook/Search/20170404?format=json&applicationId=1004224127... | [
"haru@kawanoharuyanoMacBook-Air.local"
] | haru@kawanoharuyanoMacBook-Air.local |
570bdc2ff7f7f54f3c4cca452f7c71c566753459 | 2009e5cdc3851290aefb751feaa93a6f5336f563 | /the-data-science-process/AllTogether.py | d5b558fcb8fbad82698f0f5f264ff6499266c1e2 | [] | no_license | huli/dsnd | 50c4b1af7d13b80845831cc1e7ecc03ae959a79c | 466e16c3dca5f17dd5fce256238a1fa3b41b88f3 | refs/heads/master | 2020-04-07T18:18:47.014802 | 2019-03-03T11:42:19 | 2019-03-03T11:42:19 | 158,605,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,431 | py | import pandas as pd
import numpy as np
from collections import defaultdict
import AllTogetherSolns as s
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.metrics import r2_score, mean_squared_error
import matplotlib.pyplot as plt
## Putting It All Toget... | [
"christoph.hilty@garaio.com"
] | christoph.hilty@garaio.com |
aa25a83f11b72a1e811b73960ddfc04ac5868160 | a14548b6d2f9f7c7ada05987108f4b9c250d2f5e | /mjuzik/mjuzik/genres/admin.py | de61401aa0d0a2f1dbbc42c2139783ac964b6b1d | [] | no_license | DylanGuedes/mjuzik | c935d73c899c5a81ed51e31a6501f98f7612bf79 | f0734143a75ac1f2ace9506fc84804de42deb6a8 | refs/heads/master | 2021-01-09T20:13:03.381099 | 2016-07-07T14:25:31 | 2016-07-07T14:25:31 | 60,437,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.contrib import admin
from mjuzik.recommendations.models import Recommendation
class RecommendationAdmin(admin.ModelAdmin):
pass
admin.site.register(Recommendation, RecommendationAdmin)
| [
"djmgguedes@gmail.com"
] | djmgguedes@gmail.com |
77199abd59ed03cca2c93f1fe1e8a4bbdc5b13f2 | fe38698a14e50253cccf69231a6319e399af1b5e | /week1/check_brackets_in_code/run_test.py | de45539adb77b0877fc30a6c158bcde15dbdccd9 | [] | no_license | Light0617/data_structure_coding | 59d2eeeba9c01a9c24b2ace606b439c473ce22de | a3d4a2775c6af47bf03763cdd8a973ad74efe8ea | refs/heads/master | 2020-06-15T11:34:19.124511 | 2019-07-06T08:43:00 | 2019-07-06T08:43:00 | 195,288,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | for i in {1..54}
do
if [ "$i" -lt 10 ]; then
i='0'$i
fi
echo "Welcome $i times"
python check_brackets.py < tests/$i > out
diff -w out tests/$i.a
done | [
"light11470617@gmail.com"
] | light11470617@gmail.com |
f2e6aecedabf15bedeef900e7009d3ced8914615 | ebd8f1d72b5871f1537e357825872530d2c4d0ca | /Example.py | 023b3df843fa985df7ddb0c03639c237853a167f | [] | no_license | jcvdev/Sim6502 | e642bb6b8a849bc728cdfdf2d6122fb1172d56ab | 7eee1b127e3db7dbd6a492331501b585a8c4414b | refs/heads/master | 2023-06-07T19:56:22.060923 | 2023-05-27T04:49:26 | 2023-05-27T05:09:59 | 465,558,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | import CPU.MMU as MMU
import CPU.Registers as Registers
import CPU.AddressDispatcher as AddressDispatcher
import CPU.Writeback as Writeback
import CPU.ExecutionUnit as ExecutionUnit
import CPU.Dispatch as Dispatch
import CPU.InstructionDecoder as Decoder
import Devices.GenericRAM as GenericRAM
import Devices.GenericRO... | [
"devlink+github@gmail.com"
] | devlink+github@gmail.com |
731c0a69dd82a9a4ce9c3ed2a0170d6d06ec5b48 | 339901caa0cbb3bd2762ad83bb9f847c01b0df39 | /rice_3k_mPing_scripts/Assembly_and_classification_of_mPing_sequences/Get_List_Fastq.py | e8fa1034ad4f0a5579ecc1ac896d46fc4f380ab4 | [] | no_license | stajichlab/Dynamic_rice_publications | e592e83a4842eff7354e06e5368e6f7590b472ee | 93ac8732d64b7ab4831a0b0b9b1593efc5814805 | refs/heads/master | 2020-03-24T05:10:56.815367 | 2020-02-11T07:26:17 | 2020-02-11T07:26:17 | 142,477,743 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
import glob
from Bio import SeqIO
sys.path.append('/rhome/cjinfeng/BigData/software/ProgramPython/lib')
from utility import gff_parser, createdir
def usage():
test="name"
message... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
0e3633f1452ca7bf144981a26b3e2ec8af8f32ce | 0262964c4fba7b7664e2702bbb9c19cf3b19c607 | /dashboard/views.py | f147118b55dbbae9e6c8632afa44c43c7011185a | [
"MIT"
] | permissive | OmkarPathak/Garbage-Level-Monitoring-System | 13892ddd6c72c8e372659e29af65f626c94185a5 | 302294a22739f88ed6af5f44ac6e7fe3da61267d | refs/heads/master | 2021-01-22T02:57:42.619983 | 2018-10-05T03:14:11 | 2018-10-05T03:14:11 | 102,256,002 | 6 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | from django.contrib.auth import authenticate, login, logout
from django.shortcuts import render, redirect
from .forms import UserLoginForm
from django.contrib.auth.decorators import login_required
from api.models import Readings, Dustbins
# Create your views here.
# for logging in a user
def login_view(request):
... | [
"omkarpathak27@gmail.com"
] | omkarpathak27@gmail.com |
308235a801eb4ad22f412b3d518b7cf66cb12145 | cd62043772fe4ea91d6d5fd53698c1945206db99 | /tests/test_examples/check_examples_2.py | 0d453313d4ad62d13da775159cc78ffb52818ea0 | [
"MIT"
] | permissive | akapkotel/arcade | 0808a75640d93aa24c884cc56b200f78c3487d5e | 6e43ec53e7bfa3dee1aa574404794e3695aad381 | refs/heads/development | 2022-06-01T01:01:09.906590 | 2022-05-18T19:10:33 | 2022-05-18T19:10:33 | 246,819,723 | 0 | 0 | NOASSERTION | 2020-08-30T11:40:42 | 2020-03-12T11:42:46 | null | UTF-8 | Python | false | false | 1,144 | py | import re
import os
from pathlib import Path
def get_references_in_index():
txt = Path('../../doc/examples/index.rst').read_text()
references_in_index = re.findall(":ref:`(.*)`", txt)
return references_in_index
def get_references_in_rsts():
mypath = Path("../../doc/examples/")
# Get list of pyth... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
e21c5e8c9538a19c1caf978135ce398754df0c7f | bd70f8d2dc1f7eee0974b3e280fb61773e6700db | /scrape/utils.py | 8f3002684d767508adca661e0b9b0b979e942550 | [] | no_license | MullerAC/ln-calendar-scraper | 1c62eb14946b4d48b790072e8a4b416a70f12ba8 | 26736633c9758e32d0f760a9c47de91b606f72d7 | refs/heads/main | 2023-04-21T11:59:17.044472 | 2021-05-07T21:13:19 | 2021-05-07T21:13:19 | 359,983,628 | 1 | 0 | null | 2021-05-07T21:13:20 | 2021-04-21T00:09:21 | Python | UTF-8 | Python | false | false | 1,138 | py | """
TODO
add methods useful for scraping and posting data:
- run all scrapers and compile into pandas dataframe
- add MAL links from archive
- check for broken links (any) or missing store links
- print out pandas dataframe into reddit markup
- pull existing table from Reddit wiki and run a compare
- post to staging wi... | [
"andrew.muller@utexas.edu"
] | andrew.muller@utexas.edu |
da36a5a68d39e2e71b2ce3fcab2337b3b03dc780 | 12c0f3ab05b45cc8a184708f1cc1142921b627fe | /gmail_feed_atom.py | 833f5d07bb2d640e5f8fc1e8c338587680b05edc | [] | no_license | qingzh/learnPy | b245c0b51fadbae7c9276af98f2ccca7644a0ded | b1ae7472f33153febf701ce6a6d12e57a8d4a7b1 | refs/heads/master | 2016-09-15T14:34:34.012966 | 2016-03-12T04:59:13 | 2016-03-12T04:59:13 | 31,577,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,759 | py | # -*- coding: utf-8 -*-
'''
https://g33k.wordpress.com/category/google/
Swaroop posted a nifty Perl script to check GMail. The script basically parses an Atom feed of the latest 20 mails provided by Google. Since a Python hacker like Swaroop is dabbling in Perl, I thought it was my duty as a Python evangelist (or is i... | [
"sjtuzhq@gmail.com"
] | sjtuzhq@gmail.com |
3f505c9990eeb9b824d8b9cf8806f8a254ce2398 | 1bfd6a615b6aa1aa069be2a797fdd35bb428fb2d | /build/mission/cmake/mission-genmsg-context.py | c34633ee64530c77c3fd1f95fc7b5bda288d2d91 | [] | no_license | gogochiou/eudemo | 961a8ee4b6f9d7c2b6d4e9793ec0488e04b18f9f | fe730b3c2b618ee3a1c4f257c4da816db961d599 | refs/heads/main | 2023-04-18T18:18:09.881614 | 2021-05-07T13:57:03 | 2021-05-07T13:57:03 | 365,246,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/gogochiou/eudemo_ws/src/mission/msg/maintomission.msg"
services_str = "/home/gogochiou/eudemo_ws/src/mission/srv/mission_camera.srv"
pkg_name = "mission"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_p... | [
"aaaa8552369@gmail.com"
] | aaaa8552369@gmail.com |
17162a8e159958d4d544278acdbb7043ebb8d3d3 | 87438a1eec8d7a40dd2b91515bd93e4581889523 | /test/test.py | 166d2029fe1ef5d295b4020e045474af64f0c5b9 | [] | no_license | MobileCloudNetworking/imsaas | 285ceb19eca59347e4930ccc4d59358982b897ea | 30c1e7bd512a8478297413f53ca8141fc820734a | refs/heads/master | 2021-01-10T16:26:27.065835 | 2016-01-28T12:16:34 | 2016-01-28T12:16:34 | 46,068,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | __author__ = 'gca'
import os
from so.util import util
def main():
print os.getcwd()
stream = open("../../data/ims.yaml",'r')
t = util.stack_parser(stream)
print t
if __name__ == "__main__":
main() | [
"giuseppe.a.carella@tu-berlin.de"
] | giuseppe.a.carella@tu-berlin.de |
f20f877381e716ec21757f7eed902dce9fb7cf8d | aa8fa3c1df75ba2d94cc82dfdd12507ac8954b13 | /config.py | 7d63ffdd8be467ea678664712f3c918941cddd51 | [
"MIT"
] | permissive | manuCR/pygram | 13d85621fc0a47aeeaad1d6220fbc442abc1953a | dbbdc9e195af527c661525c655fc4ceaba829ac2 | refs/heads/master | 2020-06-15T06:00:56.237274 | 2014-12-12T18:20:33 | 2014-12-12T18:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | config = {
'DEBUG' : True,
'TESTING' : True,
'SECRET_KEY' : 'dkaghyt4se-5b5f-45j3-95rb-32342343252'
}
| [
"pygram.team@gmail.com"
] | pygram.team@gmail.com |
e0174d86d625525d4bf7f881f1049b40227eafbf | 71e2c980ffc30659f4c45e229860245df61105ad | /generate_inputs.py | 318588f016e5c328e9a2e3f8b189e55c95c74741 | [] | no_license | Squalexy/AED-AVL-tree | 5f5ffbefe87d7e7ff8f9bc5c48a5148d957bc29a | be92b1cac35fcef37b166338d823fe41baa998ed | refs/heads/master | 2023-03-20T19:20:13.477427 | 2021-03-17T23:35:43 | 2021-03-17T23:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | import random
doencas = ["doenca1", "doenca2", "doenca3", "doenca4", "doenca5", "doenca6", "doenca7", "doenca8", "doenca9",
"doenca10"]
utentes = []
datas = []
for i in range(20):
utentes.append(random.randint(0, 1000))
for i in range(30):
dia = str(random.randint(0, 31)).zfill(2)
mes = str(ra... | [
"alexx.da95@gmail.com"
] | alexx.da95@gmail.com |
e56e94d9b5b6c4173877e6c231db7969e49b4b4e | 5c0cc5228b5fb63092e18c459d186c396275ff02 | /Example/if.py | adb7b4b17085eba8a3c15f7b708b2168b1ddba6d | [] | no_license | BAEKJungHo/python-basic | 994b99feb25fb132e47281650f5b458d9ff17725 | 2fe0fd469a36bf6f6be917b9915e4cb9146264aa | refs/heads/main | 2023-02-03T15:16:57.447601 | 2020-12-22T12:56:54 | 2020-12-22T12:56:54 | 319,327,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | # 파이썬 제어문
# IF 실습
# 파이썬은 들여쓰기(indent)를 하지 않으면 에러가 발생한다.
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding= 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding= 'utf-8')
print(type(True))
print(type(False)) # 0, "", [], (), {}
if True:
print("TRUE")
else :
prin... | [
"designjava@naver.com"
] | designjava@naver.com |
4ba9caf8edf5c826547328f0d0e509db56fc1fe4 | b22a0cdf85a9ece7ee0d182a629a7dc5330f33eb | /backend/user/urls.py | 003638c30f5e3f4d1e4ca3f90154464b480de425 | [] | no_license | codedbychavez/LazyChat | 09a663f0f9a98eb70965cf474c9391931de1c0b6 | db591448596f5cf2182b2c042ab3dca9d6299a00 | refs/heads/main | 2023-08-23T01:05:04.073357 | 2021-10-20T10:00:32 | 2021-10-20T10:00:32 | 408,805,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.urls import path
from .views import *
urlpatterns = [
# Project paths
path('create', create.as_view()),
path('get_user', getUser.as_view()),
] | [
"74829200+softiosolutions@users.noreply.github.com"
] | 74829200+softiosolutions@users.noreply.github.com |
0ec375bb5cac8621e4eb214cf9b0de24427000c9 | 9c37ad937822e964cc78164bfa6b6f8a39048230 | /backend/src/handler/auth_user.py | d2f906dc07e921858e29b7d734f6a3ae95c5d646 | [] | no_license | ntchung195/S.E.P | b1ce5f25d678c60f602ff0516158b5456933935e | 66e46090bb5195ba43994e5d04740e3d950863bd | refs/heads/dev | 2023-07-27T01:02:15.240566 | 2020-07-29T10:45:29 | 2020-07-29T10:45:29 | 254,452,183 | 0 | 0 | null | 2023-07-06T21:59:54 | 2020-04-09T18:45:57 | Dart | UTF-8 | Python | false | false | 991 | py | import pyaudio
import wave
# import cv2
import os
import pickle
import time
from scipy.io.wavfile import read
# from IPython.display import Audio, display, clear_output
# from main_functions import *
from src.util.voice import *
from src.service.sql import get_user_id
from src.service.config_api import DetectResult
im... | [
"hung123hung456@gmail.com"
] | hung123hung456@gmail.com |
b1feaf9d0a91804367d71f9c9b15e3093b91e126 | cbbdce3ff0d1f3d2f715eca06dcee5e1255587cf | /main/src/apps/launchpad/migrations/0006_auto_20160929_2211.py | 4c9d7966e4f1090dc02302713a575228038f0b92 | [] | no_license | treylitefm/hermes | 68e6c7590ffb8539fa9e54ea53d95ee3dca6ad42 | e5963ab1c45b3e96861b34c605d098ce42a820fb | refs/heads/master | 2021-06-08T02:37:42.622020 | 2016-11-15T07:06:02 | 2016-11-15T07:06:02 | 69,292,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-29 22:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('launchpad', '0005_auto_20160928_0324'),
]
operations = [
migrations.RemoveField(
... | [
"griffin.omar@gmail.com"
] | griffin.omar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.