blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a2ed3c32e208f9299ed262c00312288f929adf8 | 4811d601e11528b1bef7d20429c20447288b608e | /coolscrapy/pipelines.py | 02f9ca965030d086564e399bf5a629b69742d689 | [] | no_license | dover-xu/coolscrapy | 8c97d790e90aceeb47fecaaa15767f5a8b20827a | ace564be07177992629ee58331ea26e079ac4067 | refs/heads/master | 2020-12-30T14:12:40.981166 | 2017-05-21T08:14:19 | 2017-05-21T08:14:19 | 91,288,288 | 0 | 0 | null | 2017-05-21T08:14:20 | 2017-05-15T02:43:36 | null | UTF-8 | Python | false | false | 2,395 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import datetime
import json
import urllib2
import pymongo
from scrapy.conf import settings
from scrapy import log
from scrapy.ex... | [
"v-doxu1@microsoft.com"
] | v-doxu1@microsoft.com |
8a88cfdb5eec2620ade3ee7b5d247e95d23ba520 | 3202f4da43428bbcc4f89341dc93738890632664 | /src/gen_graph.py | 5d91065d6ab171a0381f94672832da9218f22ed7 | [
"GPL-3.0-only"
] | permissive | yjzhang3/ec504_project | 906caf182bbcd8e9db3e581a9b899c20e27aa93f | 2984ea3ff612b96f10edcc7fafd716eded049342 | refs/heads/main | 2023-05-08T11:14:22.062727 | 2021-06-01T20:48:53 | 2021-06-01T20:48:53 | 372,079,539 | 0 | 0 | MIT | 2021-05-29T22:23:42 | 2021-05-29T22:23:41 | null | UTF-8 | Python | false | false | 638 | py | import sys
import networkx as nx
from itertools import combinations
from random import random
def ER(n, p):
V = set([v for v in range(n)])
E = set()
for combination in combinations(V, 2):
a = random()
if a < p:
E.add(combination)
g = nx.Graph()
g.add_nodes_from(V)
... | [
"ronrat@bu.edu"
] | ronrat@bu.edu |
0b32c13516210faf3744f8bf6adf1ffdc47891a2 | 7bed907b24f9a12daab675028c356fffc3bef25b | /setup.py | 9aa0ce1c21b8bd4a588c69f05d7c93673610ff0f | [
"MIT"
] | permissive | bakera81/siuba | 9ff6c5812aabfbb17b38af65a528361777b1c307 | 568729989333193ff38c26ac68604aa8ba9b490b | refs/heads/master | 2020-07-06T07:30:00.049844 | 2019-08-16T20:09:55 | 2019-08-16T20:09:55 | 202,940,072 | 0 | 0 | MIT | 2019-08-17T23:26:46 | 2019-08-17T23:26:46 | null | UTF-8 | Python | false | false | 996 | py | from setuptools import setup, find_packages
# parse version ---------------------------------------------------------------
import re
import ast
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('siuba/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decod... | [
"machow@princeton.edu"
] | machow@princeton.edu |
b6a2760e083ef2662b8cb1a29ee20d3d09c6f19b | e76aa4de68988abcfceb7f90ea680505a9159995 | /outrigger/__init__.py | 358e6751f654522e24e8680c88312573f25843fb | [
"BSD-3-Clause"
] | permissive | ggraham/outrigger | 3ab1798fbeb3c871cae4d2a12bcd721032c3a96c | 135388192bd8b15fc248653ee50943448ff19160 | refs/heads/master | 2021-05-26T09:58:02.547479 | 2020-04-29T19:32:34 | 2020-04-29T19:32:34 | 254,086,816 | 0 | 0 | BSD-3-Clause | 2020-04-29T19:32:35 | 2020-04-08T12:52:08 | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
__author__ = 'Olga Botvinnik'
__email__ = 'olga.botvinnik@gmail.com'
__version__ = '1.1.1'
__all__ = ['psi', 'region', 'util', 'io', 'validate', 'index',
'common']
| [
"olga.botvinnik@gmail.com"
] | olga.botvinnik@gmail.com |
8606cc74a4c66fcb0fdeafb43e19ff547862ccda | 590b366fe2bfa8bd009992a5d3d358af4570367b | /test_api_2gis.py | 73202c4ac40bd471984ce9b901c0cfebd456aba0 | [] | no_license | potemkuh/test_api_2gis | eaece6d5b71a5d9f2599fdb7458f256785cccf4b | 64b8143a81254011444c5b0125910cbcd95f95bb | refs/heads/main | 2023-07-16T22:04:31.575081 | 2021-08-28T08:40:50 | 2021-08-28T08:40:50 | 400,744,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | import requests
import pytest
import data_test
def test_total_count():
response = requests.get(data_test.url)
response = response.json()
assert response['total'] == 22
def test_default_page_size():
response = requests.get(data_test.url)
response = response.json()
assert len(res... | [
"noreply@github.com"
] | potemkuh.noreply@github.com |
963aa4e4fb0d5b0a6e95edc7422839ca52cfaa72 | 45cc43cacadbcb53af8e41d42b9fe5d170b75f17 | /steps/post_pics_to_pr.py | 8977d51cceca52d316aef544c731510b9f73f4e7 | [
"Apache-2.0"
] | permissive | pollockm/buildsystem | 71e3197044c8f2b9ea0966ededc0bb1e09e0b177 | 94dde7f27bd265d41dd71b14b04363dfacb3d5f7 | refs/heads/master | 2020-03-25T16:15:09.366428 | 2018-08-07T20:44:17 | 2018-08-07T20:44:17 | 143,921,918 | 0 | 0 | Apache-2.0 | 2018-08-07T20:09:59 | 2018-08-07T20:09:59 | null | UTF-8 | Python | false | false | 2,503 | py | #!/usr/bin/env python3
import requests
import json
import base64
import os
import datetime
import logging
_moduleLogger = logging.getLogger(__name__)
def _create_header(token):
return {'Authorization': 'token %s' % token.strip()}
def _read_picture(file_name):
with open(file_name, 'rb') as text:
ret... | [
"john.boyd@ni.com"
] | john.boyd@ni.com |
e0f48ba17a7c20b092c105fc0d304198b54a984a | 05876e85e73eb1df6c377d37a5c45b78abab5c1e | /batallas_turnos/main.py | 1a6824194a5c44d13d076856e5fcb771230ab04b | [] | no_license | DiegoFHG/batallas_turnos | e50fddf054ed9c0ad7115d9fa8101267a6dc6b51 | 30e2100399c0ac3d4260f629761cb2612c26e73e | refs/heads/master | 2023-03-30T07:02:53.239849 | 2019-10-08T15:41:45 | 2019-10-08T15:41:45 | 213,608,968 | 0 | 0 | null | 2021-03-29T20:38:53 | 2019-10-08T10:04:29 | Python | UTF-8 | Python | false | false | 8,941 | py | import random
from os import system, name
from time import sleep
from PyInquirer import prompt
class Game:
def __init__(self):
self.hero_life = 150
self.vampire_life = 60
self.game_over = False
self.defense = False
self.hero_fainted = False
self.vampire_fainted = F... | [
"diego.hernandez2@alumnos.uneatlantico.es"
] | diego.hernandez2@alumnos.uneatlantico.es |
f34fe8f4f6f06313a6b776461d3fc8e3572bcfa5 | f45a9dcb4660e2af6239ee599198bcb264f666d0 | /Lab2/Homework/Youtube/ex1.py | af4a8b1745566a21a5849a7a021da78dc37fef16 | [] | no_license | duyvukhanh/vukhanhduy-lab-c4e18 | 89c6ff648f03c928520a8af7a7ac65f98084cda2 | 8047479944efa91f1de90a4012a7ba25fd2592e2 | refs/heads/master | 2020-03-19T16:55:05.303978 | 2018-06-15T09:04:23 | 2018-06-15T09:04:23 | 136,736,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | from youtube_dl import YoutubeDL
# Sample 1: Download a single youtube video
dl = YoutubeDL()
dl.download(['https://www.youtube.com/watch?v=WHK5p7JL7g4'])
# Sample 2: Download multiple youtube videos
# Put list of song urls in download function to download them, one by one
dl.download(['https://www.youtube.com/watch... | [
"duy@Duys-MacBook-Air.local"
] | duy@Duys-MacBook-Air.local |
db929563c62dbc7ae58ceeddfa21da2f076be5a0 | 15e0a3148c311ded5bfc24712edbdc2c712fde17 | /DigitsCombination.py | e12e42abde92fd9fb7bfbc5971266ef6af9f19ca | [] | no_license | BrindaSahoo2020/Python-Programs | f70c9887f07c9c32c249d569c5a53c65c8aff03e | 70e0af223f2cf36b7b01c0f2e7c599efb2f6473c | refs/heads/master | 2022-12-30T07:00:44.320035 | 2020-10-18T03:59:18 | 2020-10-18T03:59:18 | 256,928,406 | 0 | 1 | null | 2020-10-11T12:57:50 | 2020-04-19T06:15:07 | Python | UTF-8 | Python | false | false | 540 | py | #Python program to accept three digits and print all possible combinations from the digits
#Sample Input
'''
Enter first number:4
Enter second number:5
Enter third number:6
'''
#Sample Output
'''
4 5 6
4 6 5
5 4 6
5 6 4
6 4 5
6 5 4
'''
a = int(input("Enter first number:"))
b = int(input("Enter second number:"))
c = i... | [
"brindasahoo.it@gmail.com"
] | brindasahoo.it@gmail.com |
58015f5e17eecc12024afa29b2a1038ae3cc9c8a | 843c06cb6838d3c79efc91003b633866b2b9d839 | /Kaggle_SVHN_Final/codes/test_CNN.py | ff27214f48a0be1ada24748d7583c240a5aeb9bf | [] | no_license | semper21/StatisticalML | 901fd36b5497ca73e145a67807b0b4bc694bc9ff | e8d1e80430babf924f75397a2986f0487a207c9d | refs/heads/master | 2020-06-01T13:44:12.965501 | 2019-06-07T20:27:26 | 2019-06-07T20:27:26 | 190,798,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,279 | py | #! /home/vision/anaconda2/bin/python
'''
Created on Apr 12, 2017
@author: ywkim
- ReLU neurons
- stride = 1
- zero padded
- max pooling over 2x2 blocks
- conv1: 32 filters (5x5)
- conv2: 64 filters (5x5)
'''
import csv
from csv import reader
from sys import argv
import numpy as np
import tensorflow as tf
import c... | [
"ywkim@bcm.edu"
] | ywkim@bcm.edu |
db21ad96464e1a48621b1e1b2bac81478f8c4e9c | 34089a1005c9cc36c24a2b385a876b9500b0d2dd | /oscillate.py | 8d1368fb295c2f6253f62b4ad07c4e5a5daf0afc | [] | no_license | ericnegron/pythonScripts | d955802e9dc5aa6124507b95812acfdc433cfc98 | 9d877724f4063f472433456755eecc415101f0ec | refs/heads/master | 2021-01-17T15:03:48.634505 | 2014-03-10T23:22:27 | 2014-03-10T23:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,946 | py | import maya.cmds as mc
import math
# This script allows the user to create a polygon primitive and then specify how the object will oscillate.
# Creates the custom window class called EN_BaseUIWindow.
class EN_BaseUIWindow(object):
@classmethod
def showUI(cls):
win=cls()
win.create()
... | [
"esnegron@icloud.com"
] | esnegron@icloud.com |
eba364f9af767f3702b519b7192b96c2b9890d8d | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Developent/advance-django-blog-master/venv/bin/coverage | 49a1df365828a4beab01a74ad814ac7cc6b66a9d | [
"Apache-2.0"
] | permissive | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 281 | #!/root/PycharmProjects/Developent/advance-django-blog-master/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com | |
444220ef6344dec68b3c69e3cc8015b90ab484c2 | a9e4c2e9b84481761fc7517f79258a3bea327906 | /0x0B-python-input_output/5-save_to_json_file.py | b7a25b7d524e0f31240ab1e706298ad89718a9e4 | [] | no_license | jeanpierreba/holbertonschool-higher_level_programming | 91aa222d04515358c79714e1d08e3d64d26b73a0 | 8ddaa1bb0fc157b1e71816fe801d9ed4ec66aa16 | refs/heads/main | 2023-08-18T05:58:07.494956 | 2021-09-22T19:13:47 | 2021-09-22T19:13:47 | 361,840,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/python3
""" Module to save an object into a file """
import json
def save_to_json_file(my_obj, filename):
""" Write an object to a text file, using a JSON representation """
with open(filename, 'w') as my_file:
json.dump(my_obj, my_file)
| [
"2713@holbertonschool.com"
] | 2713@holbertonschool.com |
684bd46fe2d2944e322c3a422ed060208afcb062 | 96cbdf4762cdee018522b2b1e55e33ca1e4d1fef | /pyimagesearch/transform.py | 3e5f7d79efbdc5bc77f7ecce6e6064640cfe4ac9 | [] | no_license | JoeHowarth/GoScanner | 09ad65c7ba422780d153b7e1ba4292554631f19e | f214819df8f29b73238ea0762c69be8ca01f1c35 | refs/heads/master | 2021-09-14T11:22:17.151850 | 2018-05-12T17:25:14 | 2018-05-12T17:25:14 | 106,126,339 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | # import the necessary packages
import numpy as np
import cv2
def order_points(pts):
# initialzie a list of coordinates that will be ordered
# such that the first entry in the list is the top-left,
# the second entry is the top-right, the third is the
# bottom-right, and the fourth is the bottom-left
rect = np.ze... | [
"josephehowarth@gmail.com"
] | josephehowarth@gmail.com |
e32442bb51f8c48f5ac0d4ec09fa256a766c99f4 | 053b48ff879d73e4cd8f507e1cdc2aea6431c8d9 | /pythonYing/week03/exceise线程/p18_ProcessVsThread.py | 12af688f98d553f89f8d16007db73124a4e9a1d2 | [] | no_license | Masonnn/ApiTest | cb37c8741ffa0474d0ce000dad66b02569e10342 | e9f30b9f0e74eb22489c02682e33ee8bf7a87bbf | refs/heads/master | 2022-12-16T17:44:24.219411 | 2020-09-06T16:37:30 | 2020-09-06T16:37:30 | 249,369,612 | 0 | 0 | null | 2022-12-08T11:29:17 | 2020-03-23T08:02:38 | HTML | UTF-8 | Python | false | false | 1,847 | py | # process vs thread
import multiprocessing as mp
def job(q):
res = 0
for i in range(1000000):
res += i + i ** 2 + i ** 3
q.put(res)
# 多核
def multicore():
q = mp.Queue()
p1 = mp.Process(target=job, args=(q,))
p2 = mp.Process(target=job, args=(q,))
p1.start()
p2.start()
p1.... | [
"lixq@weilaicheng.com"
] | lixq@weilaicheng.com |
93210f2559dedc461d06fd3785d80e20905b0916 | 39f4cbaee6d219c715a1919b40d32c39592a7796 | /plot_percentile_elev.py | 713198c8a9f2274bcb6ddfefd5d43c2b209a793f | [] | no_license | XUEYANZHANG9/IS_snowfire | 3e46bfe782e8a591d3992c0671668d9f2a47a1b1 | 257c70ec1238510b1940e5460c6a0655e5f0d624 | refs/heads/master | 2021-12-12T13:57:55.397049 | 2017-01-19T22:38:30 | 2017-01-19T22:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | ### plot elevation percentiles
# basins=['cascades','california','southernrockies','northernrockies','whites']
import numpy as np
import sys
from snowpack_functions import unpack_netcdf_swe_ensavg
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import netCDF4
from netCDF4 import num2date
import ... | [
"gergel@hydra.hydro.washington.edu"
] | gergel@hydra.hydro.washington.edu |
cb7c42230b22f0923e08c1027984a0c50e947b03 | fb71611fb25fc0aec8d8026a95e4c5c39b4f360e | /hq/my_excepthook/test_excepthool_package/hq_excepthook.py | 4fc03a0617045c66fddab2a291a838946ffa70ad | [] | no_license | jwzhoui/urllib1 | 16aaf7f49dd1d48f0d02fbba0268d56a84dae2d2 | afed096587dedc8da6755a8939ad9ee83d1ee519 | refs/heads/master | 2020-03-25T17:28:26.995286 | 2018-11-08T10:15:23 | 2018-11-08T10:15:23 | 143,979,127 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # encoding: utf-8
import sys
import time
import traceback
from multiprocessing import Process
sys.path.append('/opt/space/urllib1/')
def quiet_errors(*args,**kwargs):
err = ''.join(traceback.format_exception(*args,**kwargs))
print err
# RedisCache.inset_exc_to_redis(err)
from hq.my_excepthook.test_... | [
"cclina@isoftstone.com"
] | cclina@isoftstone.com |
f78b97bc9bb5530abd9d49f9255ef8b5c1d50c60 | 64ecdfd4fdde040b5fc6f576e2409fae25f4d30f | /Tarea/logica_proyecto.py | 1c4b8aa5d63ef965f3372d7920d32b52f319e375 | [] | no_license | AldoAlonsoS/EjerciciosPython3_AldoAlonso | 974ebdeb02e3fc00b25fe95e03e206e5590122d9 | a43d616294a77a40e81b36fcb5c05a0cd99372ae | refs/heads/master | 2022-11-05T12:59:03.690242 | 2020-07-03T16:57:08 | 2020-07-03T16:57:08 | 271,856,769 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from PySide2.QtWidgets import QApplication, QMainWindow, QFileDialog
from PySide2.QtCore import Slot
from ui_proyecto import Ui_MainWindow
from estudiante import Estudiante
import socket as s
import pickle
import sys
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
... | [
"aldoalonsos18@gmail.com"
] | aldoalonsos18@gmail.com |
9d8b9c8ac32531b4807a6098f442b8edb15490aa | 5e9a65db32404fa4c788fd24abee5fa3d12b5b85 | /INV1_148events_TRUE_DH_2km_rm_sources/Kernels/Read_GP_adj_NZ_stations_sorted_Tape_flexwin_corrected_T_end.py | 46570529ccd630c09c4eb13caceec34992364911 | [] | no_license | ucgmsim/FWT_synthetic_test | 5c7b36550ffdba8d128acf8a80485788a0412219 | 94de9d0ff0528cff06ac3dc51ea423117edf14bb | refs/heads/master | 2020-05-02T09:34:05.907551 | 2020-02-25T02:01:09 | 2020-02-25T02:01:09 | 177,875,059 | 0 | 0 | null | 2019-03-26T22:00:09 | 2019-03-26T22:00:08 | null | UTF-8 | Python | false | false | 13,281 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 9 14:19:45 2018
@author: user
"""
import numpy as np
#import matplotlib.pyplot as plt
from scipy.signal import butter, lfilter
from scipy import signal
from qcore import timeseries
from scipy import integrate
import os
def readGP_2(loc, fname):
... | [
"andrei.nguyen@canterbury.ac.nz"
] | andrei.nguyen@canterbury.ac.nz |
1e1ab5399a265c7f7c0489fb511803501de552fd | 3f556df088c1f074a8c5d4eaf2b45dcbcd8c91a2 | /thrift/lib/py/server/TServer.py | aca37957e65a349cfce8d045348688d4b8870398 | [
"Apache-2.0"
] | permissive | rezacute/fbthrift | cc622c408dde9cf273cb1cfef4179678d7673ac6 | 7ea5e86a95eea80805bf99eb88371dbcb32f96e1 | refs/heads/master | 2020-04-28T07:54:07.094567 | 2014-11-19T21:18:53 | 2014-11-19T21:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,000 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"davejwatson@fb.com"
] | davejwatson@fb.com |
a7c60b78f32abc44f71b77a5227cb86f6803806d | 659d41f0c737dffc2a6ebd5e773a6513da32e5ba | /scripts/experiments/Experiments729/dephasing_scan_duration.py | adf770c56bb5fd14721f410bb6a9d3b6978b1e37 | [] | no_license | HaeffnerLab/sqip | b3d4d570becb1022083ea01fea9472115a183ace | 5d18f167bd9a5344dcae3c13cc5a84213fb7c199 | refs/heads/master | 2020-05-21T23:11:10.448549 | 2019-11-21T02:00:58 | 2019-11-21T02:00:58 | 19,164,232 | 0 | 0 | null | 2019-11-04T04:39:37 | 2014-04-25T23:54:47 | Python | UTF-8 | Python | false | false | 7,104 | py | from common.abstractdevices.script_scanner.scan_methods import experiment
from excitations import excitation_dephase
from sqip.scripts.scriptLibrary.common_methods_729 import common_methods_729 as cm
from sqip.scripts.scriptLibrary import dvParameters
import time
import labrad
from labrad.units import WithUnit
from num... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
047d84d7faa0c90cede96c53c0dd72cc4dcd68c7 | 606f2f38c381365f1afd82dc54a558f980db93e1 | /python-tools/tests/test_main.py | fa7abf7130f6b0ca5b1a24acf5bcb37a50e81d60 | [
"MIT"
] | permissive | nymous/actions | a279e54614e8baf3b5d90fa4cecb5ddce469cd37 | 5f178fa8a2b93474f99e80a235c0107e4ca47096 | refs/heads/master | 2023-06-12T09:54:39.910459 | 2019-08-07T09:09:58 | 2019-08-07T09:09:58 | 197,952,701 | 0 | 1 | MIT | 2021-07-05T05:05:44 | 2019-07-20T16:04:32 | Dockerfile | UTF-8 | Python | false | false | 225 | py | import pytest
from .main import multiply
def test_multiply():
assert multiply(2, 3) == 6
assert multiply(-3, 5) == -15
assert multiply(0, 4) == 0
with pytest.raises(TypeError):
multiply("abc", 1.2)
| [
"thomas.gaudin@centraliens-lille.org"
] | thomas.gaudin@centraliens-lille.org |
e622b509f76fcf2d70ef7558ea382ec013669bdf | e8af6df98cb905e839cc2b8a45befbb56109abf7 | /NetCoding/with_operation.py | 27a10bcdb1b1c0d4a9c0e128d2af613c20d458f9 | [] | no_license | csy1030/pyCourse | d075333c5d89d81eebc1ef72f43f96ea40c171ae | 67c25ea7cee9c0ea4b0583bfb798575bca8488d0 | refs/heads/master | 2021-05-23T11:03:11.360747 | 2020-04-09T21:05:42 | 2020-04-09T21:05:42 | 253,257,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # with open('test') as f:
# data = f.read()
# print(data)
f_name = input("input name:")
with open(f_name) as f:
while True:
data = f.read(1024)
f_new = open('new_file','w')
f_new.write(data)
| [
"shuyangc97@gmail.com"
] | shuyangc97@gmail.com |
7d92969bf5b2b8ec520a58f55d136bb8b5bb5568 | 5bfe0ddb8953711886c10ba636d3eeba934f6ae9 | /6 zigzag.py | 3bbc6ee51018e565701f4d5b1171c6bc532d19c6 | [] | no_license | Alexis374/LeetCode | db1fd8348ff012a55582ee6c430a64308b0b9807 | 1b3ed37a87002891e55c627adb66e9a03e903061 | refs/heads/master | 2021-01-22T06:45:07.129877 | 2015-04-26T13:06:33 | 2015-04-26T13:06:33 | 30,817,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | '''
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSIIGYIR"
Write the code that will take a string and make this conver... | [
"lijunchengbeyond@gmail.com"
] | lijunchengbeyond@gmail.com |
e4eda3cc0965966f19ca0803a2f11734f439db73 | b9f9b5f0822c3ffd5cdf4767ddec179d8407a749 | /api.py | a0adb35fcbc7c693a693ed59eb1b3152dba76f99 | [] | no_license | hspearman/spotify_library_serializer | d740cd72662ebb1e09f23a0d140d8436bbc596c0 | f1779eb76d274637393253dea15e036be9e4ed10 | refs/heads/master | 2021-01-10T10:11:27.708003 | 2016-03-27T18:41:51 | 2016-03-27T18:41:51 | 52,226,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | import json
from flask import render_template, redirect, Response, Blueprint, session, request, logging
from werkzeug.exceptions import abort
from spotify_utility import build_authorization_url, refresh_token, is_token_existent, is_token_expired, get_token, \
get_tracks
api = Blueprint('api', __name__)
#
# Prot... | [
"hspearman92@gmail.com"
] | hspearman92@gmail.com |
edcd8e182d7a8857d017633df27c9b861b594cb8 | 3d7e122dae6ed0e71fec825960f928051e75b68b | /Jakob_CameraCode/Pathfinding/simPathMap.py | fff0ab4d2cffad2d946793e9137ccf391d9c0dd8 | [] | no_license | Hochbotaniker/Fugaintegrum | dd250691b5c6a24ee76d75ac86a31926e0173eda | f0423d51b35881c8ffae36572b2e06b833e07626 | refs/heads/master | 2023-08-23T20:47:30.373464 | 2021-10-06T14:29:22 | 2021-10-06T14:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | import matplotlib.pyplot as plt
import numpy as np
from math import atan, degrees
def getDist(pos_drone, pos_dest):
return sum((pos_drone - pos_dest) ** 2) ** 0.5 # 6366 -> Earth radius at ~50° lat
class simPathMap:
def __init__(self, pos_drone, pos_dest, radius=5, pixel_size=1.0):
self.root = pos... | [
"MarcLorenz.Doehmer@googlemail.com"
] | MarcLorenz.Doehmer@googlemail.com |
75db47364399ab750443e3afc703e376ca016a3a | b0984bc483f0e082975abb7610b4b4508764731d | /pythondispatchms/websetup/schema.py | 35f6f96b61a9c4c8179ed07b9172c6753e6dc51e | [] | no_license | jordy33/python.dispatch.ms | 42dd7b0f1d76742881111a71d9f8a897a6932ddc | e576b565e953871d56ee2f29a25a6f88b8ab120c | refs/heads/master | 2020-09-23T06:10:14.817318 | 2019-12-02T16:51:20 | 2019-12-02T16:51:20 | 225,424,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | # -*- coding: utf-8 -*-
"""Setup the python.dispatch.ms application"""
from __future__ import print_function
from tg import config
import transaction
def setup_schema(command, conf, vars):
"""Place any commands to setup pythondispatchms here"""
# Load the models
# <websetup.websetup.schema.before.model.... | [
"jorgemacias@Jorges-Mac-mini.local"
] | jorgemacias@Jorges-Mac-mini.local |
f5fb13e993e1f670fb944b04d958c11f4c9235e0 | 4a63c8e2545c6968547d7aa36c2dca85b9b84301 | /workscheduler/src/backend/utils/datetime.py | 88eb649edb561f5fec06a44475f4020eda3ac2b3 | [] | no_license | epirevolve/workscheduler | 458b8da84da94862c91de6544c5aaaefc1520d47 | 6c89e7264c5b66f4eb91b1989da6324695449703 | refs/heads/develop | 2023-01-23T02:01:29.356940 | 2019-12-30T01:16:32 | 2019-12-30T01:16:32 | 147,050,241 | 5 | 2 | null | 2023-01-04T11:42:19 | 2018-09-02T03:10:19 | JavaScript | UTF-8 | Python | false | false | 207 | py | # -*- coding: utf-8 -*-
from datetime import datetime
def is_overlap(a_from: datetime, a_to: datetime, b_from: datetime, b_to: datetime):
return (b_from <= a_from <= b_to) or (b_from <= a_to <= b_to)
| [
"epirevolve@gmail.com"
] | epirevolve@gmail.com |
d4244dbd81dc12c8d07c205889424d034972f5d1 | eaef5cf5e2b756ac1f67656b739fb0d941ef7995 | /es_complete/server.py | 24f0d1610df7ae928e30f06d1bcb5687e0ce9fa4 | [] | no_license | gatoatigrado/vim-complete-es-server | 965e938712c761b515d4a72d469ecf6f03562e16 | 7899ecf8b5756b8a3e01bb864888df9e1b306238 | refs/heads/master | 2021-01-10T11:12:20.771074 | 2015-12-27T08:32:36 | 2015-12-27T08:32:36 | 48,638,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from __future__ import absolute_import
from __future__ import print_function
# Fix Flask-autoloaded module path
import sys
if "/code" not in sys.path:
sys.path.insert(0, "/code")
import flask
import re
import simplejson
from collections import namedtuple
from es_complete import es_client
from es_complete import ... | [
"gatoatigrado@gmail.com"
] | gatoatigrado@gmail.com |
1d66fab8a4c8f54ea28c341be52857c2efbfa426 | 10145efafecff56ba3c975598e01353ed3f7bcf3 | /locker/core/validators.py | f99da9ab528d006db64325f33550a75c7b6a1ff5 | [
"MIT"
] | permissive | crowmurk/locker | 31c0c2d838ca6458f6337b9178e7b0eec0981938 | 7246b4f524d138d48aadf4866e0b218bb924f69c | refs/heads/master | 2023-04-26T13:50:23.207329 | 2022-03-01T08:45:50 | 2022-03-01T08:45:50 | 184,296,218 | 0 | 0 | MIT | 2023-04-21T21:58:39 | 2019-04-30T16:29:29 | JavaScript | UTF-8 | Python | false | false | 1,649 | py | import json
from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _
from django.utils.deconstruct import deconstructible
from django.template.defaultfilters import filesizeformat
def validate_monday(value):
"""Проверяет является ли дата понедельником.
"""
... | [
"crowmurk@gmail.com"
] | crowmurk@gmail.com |
9b67e572e5da326df863a9d611e338df54b02395 | 8132e93c74cb8c541ee037b5c85deb38af6b653a | /list_1/exercise_5.py | 3c0af37d58907e91f76d1e7dace2cdafa9a190f6 | [] | no_license | piotrkawa/data-mining | 3a6cdacd4c1b059a469a6a3186eed0694d0a3b2c | c788365eeef801450b0f6bc7ea889e1484e9b53c | refs/heads/master | 2022-04-03T11:08:50.896421 | 2020-02-11T16:48:47 | 2020-02-11T16:48:47 | 212,835,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | from wordcloud import WordCloud
import utility
import itertools
import nltk
import pdb
from nltk.corpus import stopwords as nltk_stopwords
import string
from preprocessing import preprocess_text
def create_pairs(words):
return [(word, 1) for word in words]
def group_words(pairs):
word = lambda pair: pair[... | [
"piotr.w.kawa@gmail.com"
] | piotr.w.kawa@gmail.com |
a881ebb4ce333707ca54b5214f035d67462dcd23 | 6e36e1c2feb568d44ca9063635b5d83c33abd2f5 | /media.py | 02bcd19054cf905d1ab6ef05b610e41a9d385480 | [] | no_license | euanramsay/python_movie_play | 5ca95fc8907d0caa48d33148179d7773e0c476a5 | 720c59c0fe6de16a4d229766a7aeb1c317ce15ce | refs/heads/master | 2021-01-19T10:56:09.743337 | 2017-04-18T10:03:17 | 2017-04-18T10:03:17 | 87,916,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import webbrowser
class Movie():
def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube):
"""Template of an instance of Movie
Args:
movie_title (str): The title of the movie
movie_storyline(str): A short description of the movies plot
movie_image(str): A URL link to an image of t... | [
"euancramsay@aol.com"
] | euancramsay@aol.com |
1c1aa42436ef6a2988456af22d8dd172cb127e53 | b9c579de7fdca8de76e00b4a912450b338e53b41 | /Banner_Connections/Initialize_Oracle_Connection.py | 63f10562b1831380044a3bdd027ce81ccf795501 | [] | no_license | nmbenzo/ISSS_SMS_Prod | 5bd5ede93369bdd158230a5a993a0554fcb2ecaf | dd1797b6614077a716e6df464ba865b400fcca2c | refs/heads/master | 2022-12-22T04:41:27.276600 | 2019-08-21T22:38:46 | 2019-08-21T22:38:46 | 184,464,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import sys, os
import cx_Oracle
import traceback
import Banner_Connections.ODSP_Creds as creds
import Banner_Connections.queries as query
def banner_odsp_handler():
"""Function to initialize an object from the cx_Oracle Connection class
:returns a cx_Oracle Connection object if valid credentials exist otherwise
... | [
"nmbenzo@gmail.com"
] | nmbenzo@gmail.com |
2f74ae3f7caac57b707a98584b6bdd4a40ded6f8 | fd1dba8223ad1938916369b5eb721305ef197b30 | /AtCoder/ABC/abc110/abc110c.py | b19744afbe63b3698d7e3487b7f15813a0167d39 | [] | no_license | genkinanodesu/competitive | a3befd2f4127e2d41736655c8d0acfa9dc99c150 | 47003d545bcea848b409d60443655edb543d6ebb | refs/heads/master | 2020-03-30T07:41:08.803867 | 2019-06-10T05:22:17 | 2019-06-10T05:22:17 | 150,958,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | S = input()
T = input()
n = len(S)
X = [[] for _ in range(26)]
Y = [[] for _ in range(26)]
for i in range(n):
s = ord(S[i]) - 97
t = ord(T[i]) - 97
X[s].append(i)
Y[t].append(i)
P = [tuple(x) for x in X]
Q = [tuple(y) for y in Y]
if set(P) == set(Q):
print('Yes')
else:
print('... | [
"s.genki0605@gmail.com"
] | s.genki0605@gmail.com |
69e386138bf8d9353793e4efad85b5d466050979 | 7ccb0f18fe0d5d31ef3938c46ecaf93e03838525 | /module20_project5.py | 485923b60c06e5e3412977f14c5ad5c4a1e67692 | [
"Apache-2.0"
] | permissive | Abhyudyabajpai/Machine_Learning_Projects | 82a326cc607ffa27ef32a7937d24df85aada8a46 | 1f339584d242121ef1b2fbf8a17c173cecdd87ea | refs/heads/master | 2020-09-22T23:03:38.710258 | 2020-07-25T15:57:32 | 2020-07-25T15:57:32 | 225,339,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | import codecademylib3_seaborn
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
import matplotlib.pyplot as plt
flags = pd.read_csv('flags.csv',header =0)
print(flags.columns)
print(flags.head())
labels = flags[['Landmass']]
data = flags[["Red", "... | [
"noreply@github.com"
] | Abhyudyabajpai.noreply@github.com |
85cd55ec06dd7935e25dd335edf8a21bac1969f2 | 4f41a3faa073d0d4f672601add08edbfbb32c762 | /application/sqlalchemy/schema.py | 6a69739d1e34978864d647e50550a4cdc2c5456f | [] | no_license | gterranova/timetracker | 418577fd3fcbc6735b9c5a3a8bda2378064c8a41 | 08fb4adc221555fff2eb6d2ec92878f32f4197bf | refs/heads/master | 2021-01-12T14:40:27.162638 | 2012-04-11T19:33:47 | 2012-04-11T19:33:47 | 72,043,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,489 | py | # schema.py
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""The schema module provides the building blocks for database metadata.
Each element ... | [
"gterranova@GTERRANOVA.9ren.org"
] | gterranova@GTERRANOVA.9ren.org |
1938abebcd0e1a343f13385337a8f7233e24c2f7 | 359881c00ce4faf756fe2cf3b503452c0bcf313a | /raterprojectapi/serializers/ratings.py | 3614aefc0cc68bf7977060010f57ea5de9d85a9c | [] | no_license | jshearon/rater-project | 1bd8fe2080faa24e2b2dd2217ae1474132aeb61a | a67142018e822c57ad80ba6589e2e054abc42bcf | refs/heads/main | 2023-02-28T04:30:11.916983 | 2021-01-27T00:56:21 | 2021-01-27T00:56:21 | 314,429,265 | 0 | 0 | null | 2021-01-27T00:52:43 | 2020-11-20T02:50:38 | Python | UTF-8 | Python | false | false | 713 | py | from rest_framework import serializers
from raterprojectapi.models import Ratings
from rest_framework.validators import UniqueTogetherValidator
class RatingSerializer(serializers.ModelSerializer):
class Meta:
model = Ratings
validators = [
UniqueTogetherValidator(
querys... | [
"jonathan.shearon@gmail.com"
] | jonathan.shearon@gmail.com |
be63e415ecf5e1d3a8f53e768d4c23c1d1643511 | cca21b0ddca23665f886632a39a212d6b83b87c1 | /virtual/classroom/views.py | 07712f42f10a68880ba8e8500e4a6784453a72e1 | [] | no_license | siumhossain/classroom | a8926621456d1e7ed77387fb8a5851825771a9d9 | 4afe9cdee2c58b71bd3711b042eae3f86172eaea | refs/heads/master | 2023-02-02T08:28:14.958761 | 2020-12-24T14:58:59 | 2020-12-24T14:58:59 | 323,007,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,300 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView, UpdateView,DeleteView
from .models import Course
from django.contrib.auth.mixins import LoginRequiredMixin,PermissionRequiredMixin
from django.shortcu... | [
"sium.hossain@yahoo.com"
] | sium.hossain@yahoo.com |
d9c01472e3a355d2c744a3b72a0896f067997726 | 5fb9f29964268223869944508798d6c21d9e5298 | /sub_test/sub_test.py | ea78eeb031a733544b22f4926dc7ead63ea94ff4 | [] | no_license | CodedQuen/Python-Pocket-Reference- | 56459ce1509f74bc253af027be91935e62922948 | 8f7c69edb8ad4ac3ef7f70bab15ffe24eb162325 | refs/heads/master | 2022-06-14T20:57:13.799676 | 2020-05-05T08:27:17 | 2020-05-05T08:27:17 | 261,398,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from subprocess import call, Popen, PIPE, check_output
print(call("ls -l", shell=True))
print(check_output("ls -l", shell=True).decode())
pipe1 = Popen("ls -l", stdout=PIPE, shell=True)
pipe2 = Popen("wc -l", stdin=pipe1.stdout, stdout=PIPE, shell=True)
print(pipe2.stdout.read().decode())
| [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
86d1cfe33de049e146c8d0748a19437e0991912e | ac762d856fbad529d146504d828f77cdf7732993 | /bot.py | f8602c45f4ae85bad9349c16566f7e7b7d9faaa5 | [] | no_license | svonton/discord_bot | d2ead7d7f56553ee1eb261ec0774da76709e6394 | 651619b2e63251d2e13a60ac719cf34f25163a68 | refs/heads/master | 2021-05-18T01:37:12.138889 | 2020-03-29T14:19:49 | 2020-03-29T14:19:49 | 251,049,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,522 | py | import discord
import datetime
import random
import asyncio
from discord.ext import commands
bot = commands.Bot(command_prefix='$')
def read_token():
with open("token.txt", "r") as f:
lines = f.readlines()
return lines[0].strip()
def dembel():
td = datetime.date.today()
dds = "2020-12-15... | [
"svonton@users.noreply.github.com"
] | svonton@users.noreply.github.com |
b36ecf77fd71c9f220c802648ec0c3fcca41753a | db8b780121211871af4942e4e2439dff1decf2ff | /Exercício 8 - verificação de aprendizagem.py | 77c8cf42452d96fc82199bcddd30777df37b0040 | [] | no_license | eliasssantana/logicaProgramacao | c1d86226318d4c797fa5b97fe471fb1de8b69eea | 353e710ebeae8ef9eb2cfc52baf4effe8dfd6dcf | refs/heads/main | 2023-05-15T08:29:20.543267 | 2021-06-10T02:40:38 | 2021-06-10T02:40:38 | 366,473,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | print("=-" * 30)
e = 'Exercício'
print(e.center(50))
print("=-" * 30)
# 8)
'''
- Crie um programa que leia nome, ano de nascimento e carteira de trabalho e cadastre-os (com idade) em um dicionário. Se por acaso a CTPS for diferente de 0, o dicionário receberá também o ano de contratação e o salário. Calcule e acresce... | [
"eliassilva0045@gmail.com"
] | eliassilva0045@gmail.com |
83d4ccb19ccbe1b7e8b70303939cb8fe2e8f2632 | 22ad8c48067de977b5256a9f1d566bfa731bad00 | /venv/lib/python3.8/site-packages/pyglet/gl/base.py | a3f35e96ee5bf4e19a5f82a395fd9ded2d5954d9 | [] | no_license | d-halverson/Walgreens-Scraper | dedb2bd1f40bfce359eeb3f93075929c560fd7dc | d53011a8e42c9758569bfe392436ef5b1553ec5e | refs/heads/main | 2023-04-03T12:51:36.033373 | 2021-04-07T02:33:15 | 2021-04-07T02:33:15 | 350,066,341 | 5 | 10 | null | 2021-06-17T15:29:28 | 2021-03-21T17:14:52 | Python | UTF-8 | Python | false | false | 14,908 | py | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# Copyright (c) 2008-2020 pyglet contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | [
"drew.m.halverson@gmail.com"
] | drew.m.halverson@gmail.com |
2b63046ccd7b852daa7ce8a78c6345d746f667f9 | 6c137e70bb6b1b618fbbceddaeb74416d387520f | /spyre/testing/cavity.py | 1d95f5fa22fb580cf87be1fa538c49f3fa4ba85b | [
"BSD-2-Clause"
] | permissive | zhong-lab/code | fe497c75662f8c3b7ab3c01e7e351bff6d5e8d15 | b810362e06b44387f0768353c602ec5d29b551a2 | refs/heads/master | 2023-01-28T09:46:01.448833 | 2022-06-12T22:53:47 | 2022-06-12T22:53:47 | 184,670,765 | 2 | 7 | BSD-2-Clause | 2022-12-08T21:46:15 | 2019-05-02T23:37:39 | Python | UTF-8 | Python | false | false | 361 | py | ##Config file for lifetime_spyrelet.py in spyre/spyre/spyrelet/
# Device List
devices = {
'vna':[
'lantz.drivers.VNA.P9371A',
['TCPIP0::DESKTOP-ER250Q8::hislip0,4880::INSTR'],
{}
]
}
# Experiment List
spyrelets = {
'freqSweep':[
'spyre.spyrelets.cavity_spyrelet.Record',
... | [
"none"
] | none |
ac2e687c0c4a12c9903eb7d92a3010cc767d746d | 055badce36d00effa7f36c43bf4c3c9fc0cd3642 | /streamFootballNew.py | 504b135de8c66a59718c955e1c0383ee58384417 | [] | no_license | sgtrouge/Adsfluence | f4bbb3b684b8fb08c5ce642ea8535222123bd2c8 | 23843f03aded1915cf3f885c9198129abaf73bbc | refs/heads/master | 2021-01-11T06:16:36.206828 | 2016-12-12T20:50:45 | 2016-12-12T20:50:45 | 72,179,452 | 0 | 0 | null | 2016-11-21T03:55:41 | 2016-10-28T06:19:30 | Python | UTF-8 | Python | false | false | 4,413 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# https://www.dataquest.io/blog/streaming-data-python/
import time
import tweepy
import json
import csv
from getpass import getpass
from textwrap import TextWrapper
# Keywords
track_Michigan = ['GoBlue', 'Ann Arbor', 'UMich', 'Michigan Wolverines', 'BigHouse', 'University ... | [
"nghia.vo.0509@gmail.com"
] | nghia.vo.0509@gmail.com |
1fffe8e845e8dadbebbcb8cc480060849bec6a19 | e8815ba621e72a015e3567e736aa7d5c6d05dd71 | /experiment_datasets_creator.py | 1150f93b1d38d2fc3ef76503ef6d083bd3c97b17 | [] | no_license | oserikov/nn_harmony_np | 5f810114481402a56b9349dfff77af47939ee9d8 | b93c19bcd625eea3716dc964bc962af84e21fb4b | refs/heads/master | 2021-07-01T16:40:07.420621 | 2020-10-05T08:01:07 | 2020-10-05T08:01:07 | 179,607,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,566 | py | import numpy as np
from phonology_tool import PhonologyTool
from nn_model import NNModel, ModelStateLogDTO
from typing import List, Callable
import csv
# 1. vow vs cons
# 2. +front vs -front
# 3. voiced stop consonant detection
# 4. start cons cluster
# 5. 2nd in cons cluster
# 6. +front harmony TODO
# 7. -front_harm... | [
"srkvoa@gmail.com"
] | srkvoa@gmail.com |
72237823847f45db31b97d3e26d00c5ab4caf5a6 | 276c7120ce431ed8fae93c70b3ed2dedc9bc9301 | /resources/events.py | b64397111ff50dfb1d43e130675fbcd85b57b071 | [] | no_license | notinuse1234/zoom_zoom_zow | 8f82c6deb1e826bd1b918a5715915457659aedc8 | bc0e94bec6b62dcc0da410e9f25be787b11d5a78 | refs/heads/master | 2022-01-27T05:14:59.446663 | 2019-05-06T18:32:16 | 2019-05-06T18:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import pygame as pg
class Events():
@staticmethod
@property
def BEGINSWING():
return pg.USEREVENT + 1
@staticmethod
@property
def ENDSWING():
return pg.USEREVENT + 2
| [
"ahester@cisco.com"
] | ahester@cisco.com |
e6d5eb58168ade63b3dec20ddcaa54dadfbbe80f | 23ac473ba6ca03412e825d939676a08f6a2e6546 | /modules/exploit-0.1/commands.py | 565ba6aee271dad9935cdad2e5aa40dfd7c4ab5d | [] | no_license | bwingu/app01back | 710c77c35bcb9a27e75a27304a26ca46546b260a | b5ef894ecfd43d59e6e8d4b5215a445fd0b19f97 | refs/heads/master | 2021-01-18T10:53:37.988723 | 2012-02-08T21:11:09 | 2012-02-08T21:11:09 | 3,304,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # Here you can create play commands that are specific to the module, and extend existing commands
MODULE = 'exploit'
# Commands that are specific to your module
COMMANDS = ['exploit:hello']
def execute(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kar... | [
"louis.sebastien@gmail.com"
] | louis.sebastien@gmail.com |
8e0098c5df0f9fff8c4dce4243eb625ea300531f | 38363f668f87c1044e08a40005cf9319fd8ecb5c | /Servicio-Nica-Ventas/Nivel3/nica-ventas/app/app.py | a65febcae2c3c8fb4edcc096029f88a3af243541 | [] | no_license | LISSETTE-QUINTERO/Servicio-Nica-Ventas | 6f8d215514c93abc2cbdcde79d6be1aa9373c06e | 90ac01b6c5c97d6c7af9fda37311a8222ef79d7b | refs/heads/master | 2021-06-22T03:12:05.425429 | 2019-09-11T03:44:03 | 2019-09-11T03:44:03 | 207,189,785 | 0 | 0 | null | 2021-03-20T01:42:35 | 2019-09-09T00:05:11 | Python | UTF-8 | Python | false | false | 3,158 | py | from flask import Flask, jsonify, request, escape
import os
from flask_mysqldb import MySQL
from worklog import Worklog
import redis
app = Flask(__name__)
app.config['MYSQL_HOST'] = os.environ['DATABASE_HOST']
app.config['MYSQL_USER'] = os.environ['DATABASE_USER']
app.config['MYSQL_PASSWORD'] = os.environ['DATABASE_P... | [
"noreply@github.com"
] | LISSETTE-QUINTERO.noreply@github.com |
4a04f161cd2987c6ca772ac5ef11c4953ecbb7ec | cfa35dc2ea93ee0eceb2399a9e6112e987579c09 | /stonesoup/metricgenerator/__init__.py | 580303c8a8d1dce6e8550f6f212b7afe198d89c9 | [
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011"
] | permissive | dstl/Stone-Soup | 227e6a9e6fbdceca14af3f0259f311ec74095597 | f24090cc919b3b590b84f965a3884ed1293d181d | refs/heads/main | 2023-09-01T14:33:14.626428 | 2023-09-01T11:35:46 | 2023-09-01T11:35:46 | 98,420,803 | 315 | 126 | MIT | 2023-09-14T14:55:34 | 2017-07-26T12:34:28 | Python | UTF-8 | Python | false | false | 65 | py | from .base import MetricGenerator
__all__ = ['MetricGenerator']
| [
"sdhiscocks@dstl.gov.uk"
] | sdhiscocks@dstl.gov.uk |
3b74887e37753f6834df15e0acf789b4118532ec | 26cf1df102b75b0c068047cc6eca0d50dbc70c5a | /melati/server/address_manager_store.py | b0adc0891bd154e0333b582a3e552035eb13fd9b | [
"Apache-2.0"
] | permissive | a96009467/melati-blockchain | 307f9a92eee25a15aa294ddfed41a595e63acc50 | 28b8cd1590ee8fa860554c66d639a1fefc0d3c41 | refs/heads/main | 2023-06-24T13:53:41.332345 | 2021-07-20T09:37:49 | 2021-07-20T09:37:49 | 387,778,815 | 0 | 0 | Apache-2.0 | 2021-07-20T12:06:20 | 2021-07-20T12:06:20 | null | UTF-8 | Python | false | false | 8,257 | py | import logging
from typing import Dict, List, Tuple
import aiosqlite
from melati.server.address_manager import (
BUCKET_SIZE,
NEW_BUCKET_COUNT,
NEW_BUCKETS_PER_ADDRESS,
AddressManager,
ExtendedPeerInfo,
)
log = logging.getLogger(__name__)
class AddressManagerStore:
"""
Metadata table:
... | [
"cengndupak@gmail.com"
] | cengndupak@gmail.com |
ed2e2a733351c52a13a5f61c050406b5539e000c | 04177ba9d8d91d19dc3689fbb86d65d5954b36f4 | /fullthrottle/testapp/serializers.py | a66273f086b3d4e690a03dc583cd292fa5df901a | [] | no_license | ruhansharief/pythonanywhere2 | 0a7ba7ad6a6730f5bb35be8ae581e0f031e9704b | 3193e380e090f5513a3d93301fa79cb428ed9bdf | refs/heads/master | 2022-10-01T04:30:40.092396 | 2020-06-03T17:23:38 | 2020-06-03T17:23:38 | 269,122,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from testapp.models import UserModel, ActivityPeroidModel
from rest_framework import serializers
class ActivitySerializer(serializers.ModelSerializer):
class Meta:
model = ActivityPeroidModel
fields = ['start_time', 'end_time']
class UserSerializer(serializers.ModelSerializer):
activity_perio... | [
"ruhansharief22@gmail.com"
] | ruhansharief22@gmail.com |
ef06e79576ab02091941bdb71d690f0d88a6d32d | 9fa4b5f59dd1089e27ff4a4148e59eab76930ce8 | /Lesson2/day2_gaussian.py | 763939d697f7f5b65145aea3f70d3a1bac3a5f46 | [] | no_license | butlerkend/DrexelCodingLessons | 1dc469e14c651a555bd28eb4a7010661b3ec90d9 | c98b04c57ba1216a71d02e1920c5b142a7bcee79 | refs/heads/master | 2022-12-13T09:59:28.963756 | 2020-09-11T14:58:24 | 2020-09-11T14:58:24 | 294,724,529 | 0 | 0 | null | 2020-09-11T14:57:07 | 2020-09-11T14:57:06 | null | UTF-8 | Python | false | false | 356 | py | import math as m
#choose variables
x = float(input("Choose x: "))
m_var = float(input("Choose m: "))
s = float(input("Choose s: "))
print("x is %d" % x)
print("m is %d" % m_var)
print("s is %d" % s)
#calculate
f = (1./m.sqrt(2 * m.pi)) * m.exp(-1*(1./2)*(((x-m_var)/float(s))**2))
#print answer
print("therefore, the ... | [
"scl63@drexel.edu"
] | scl63@drexel.edu |
992cbbcc8751d9aa132eea71a9c34ba42f5b03b4 | 4754226625d4a6b9680a22fd39166f502034aeb5 | /samsung/[cutz]lab1.py | 971e71a34d9cdfed878116d35cf9fd619e85ef26 | [
"MIT"
] | permissive | cutz-j/AlgorithmStudy | 298cc7d6fa92345629623a9bd8d186f0608cdf7c | de0f81220e29bd5e109d174800f507b12a3bee36 | refs/heads/master | 2021-07-01T03:15:51.627208 | 2021-02-24T01:24:44 | 2021-02-24T01:24:44 | 222,935,322 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import sys
from itertools import combinations
class Queue():
def __init__(self):
self.front = 0
self.rear = 0
self.list = []
self.pop_count = 0
def append(self, x):
self.list.append(x)
self.rear += 1
def pop(self):
res = self.list[self.front]
... | [
"cutz-j@naver.com"
] | cutz-j@naver.com |
9556ccc6811855a30848a322a58b84634b209823 | 992f1616004dd54a1dc741db81616e0d83fa7a74 | /python/scannerpy/stdlib/bbox_nms_kernel.py | 05cde4d4727a1a789d3d968f975e6fc07921a946 | [
"Apache-2.0"
] | permissive | mindis/scanner-1 | 503842a4463bf31b38e741d7eb26fac71d5eb847 | b00ba95629b9a775a02b47859c438ed2fd186d2a | refs/heads/master | 2021-08-26T06:41:52.226038 | 2017-11-12T02:16:24 | 2017-11-12T02:16:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import scannerpy
import scannerpy.stdlib.parsers as parsers
import scannerpy.stdlib.writers as writers
import scannerpy.stdlib.bboxes as bboxes
class BBoxNMSKernel(scannerpy.Kernel):
def __init__(self, config, protobufs):
self.protobufs = protobufs
args = protobufs.BBoxNMSArgs()
args.ParseF... | [
"alexpoms@gmail.com"
] | alexpoms@gmail.com |
2752abedd7b48de52b2fddab35c8f2b31dad7226 | 3cb4c484912f540632edd5d0446df1867a68ce62 | /src/pytorch_impl/cnn_pdtb_arg_multiclass_jl.py | 6ead21d65aaf3bf957a0adf344db0e9af4c9b6cb | [
"MIT"
] | permissive | siddharthvaria/WordPair-CNN | a91307c35d8d163299b2a09dbe971e69873ef866 | d54cef994e49615e6bf9d911c11cb5992862bcce | refs/heads/master | 2022-03-25T07:51:47.634344 | 2019-08-10T04:10:18 | 2019-08-10T04:10:18 | 197,980,051 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,457 | py | import argparse
import time
import math
import os
import pickle
import numpy as np
np.random.seed(57697)
from sklearn.metrics import classification_report
from sklearn.utils import shuffle
from pytorch_impl.cnn_pdtb_classifier_utils_pytorch import get_W, post_process, print_params, get_time_stamp
from pytorch_impl.cnn... | [
"varia.siddharth@gmail.com"
] | varia.siddharth@gmail.com |
a5cddf4c63083cdd7f14a8cf94ba290e0b3c20e8 | 5a16118003ed5669670176abc51c66467c6b0712 | /pitest.py | 85e9ee9a86a2dc66a7340226f0fd1c2e71c0d11e | [] | no_license | Messidc/hello-world | f36297d286e638631e32a465df927c4268ceac87 | 853a82e74c5a252e27b1489a8f5bc5717d8432f5 | refs/heads/master | 2021-05-11T04:35:12.226082 | 2020-11-21T08:18:55 | 2020-11-21T08:18:55 | 117,943,412 | 0 | 0 | null | 2018-01-18T07:30:20 | 2018-01-18T06:41:38 | null | UTF-8 | Python | false | false | 634 | py | from functools import reduce
import itertools
import math
def pi(N):
' 计算pi的值 '
# step 1: 创建一个奇数序列: 1, 3, 5, 7, 9, ...
# step 2: 取该序列的前N项: 1, 3, 5, 7, 9, ..., 2*N-1.
# step 3: 添加正负符号并用4除: 4/1, -4/3, 4/5, -4/7, 4/9, ...
# step 4: 求和:
natuals = itertools.count(1,2)
ns = itertools.takewhile(... | [
"dengdanchaoren@gmail.com"
] | dengdanchaoren@gmail.com |
76846a71c9a5bcac685d5452c7f039c04d5dd554 | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python基础部分/day02/code/test.py | e2a14e0f4bc5a36dc4cbb782ba168443482180ac | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/python3
print('这是我的python第一条语句')
print('我现在开始学python')
print('这是最后一条语句') | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
442fbda53e3daca717ec96081a20b07d92193745 | 5effdd4a38f85229ff09622cf46940a0c7986dda | /generator/core.py | 064596355e77748c96c4df93bdd2a47365cfb369 | [
"MIT"
] | permissive | universuen/Cat_WGAN | 598ab8a3f408486d1e18cb66d928287a18210f61 | ac983270820cf55a3eeb74a0d0edd258e715d00b | refs/heads/main | 2023-08-13T02:42:54.275525 | 2021-10-03T16:48:26 | 2021-10-03T16:48:26 | 374,564,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,808 | py | import torch
from torchvision import transforms
from torch.utils.data import DataLoader
from matplotlib import pyplot as plt
import numpy as np
from . import config
from .datasets import RealImageDataset
from . import models
from .logger import Logger
from ._utils import train_d_model, train_g_model, save_samples, sho... | [
"52519513+universuen@users.noreply.github.com"
] | 52519513+universuen@users.noreply.github.com |
90cfe476dff2e715a46fde91c5b2163d5eb304ca | b7c68fac8bb7b3b372a76988f3efe63c4f2526a5 | /tensorflow-experiments.py | 754f456975768457874ff4d4c0127e1405d60391 | [] | no_license | misrasiddhant/Python | 5b87feaae7e47766621e4453969c39e2030137bf | 6bd4afb6b614613c7462e36a24ffd852c5ec82d1 | refs/heads/master | 2023-04-19T17:59:56.141669 | 2021-05-01T22:50:22 | 2021-05-01T22:50:22 | 163,623,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 23 17:51:28 2017
@author: Siddhant Misra
"""
import tensorflow as tf
"""
a = tf.constant(3.0)
b= tf.constant(4.0, dtype = tf.float32)
print(a,b)
session = tf.Session()
session.run([a,b])
sum = tf.add(a,b)
print(sum)
session.run(sum)
a = tf.placeholder(dtype = tf.flo... | [
"misrasiddhant@yahoo.co.in"
] | misrasiddhant@yahoo.co.in |
b880bb7eec743a97332b62bfdcdd7c86b2dbbd47 | 59842f3191e3f86e0fa95956b9b9d122658e199a | /vps_tools/__init__.py | b1a1a5ca75ad7cdf213f4d50321303910a295141 | [] | no_license | vitaly4uk/vps-tools | d19936abc3b8284f1ccf76ff23c5daa85a292540 | cf4f94d1ce6353464b6b71b4fce37f503dfec7c4 | refs/heads/master | 2020-05-20T19:25:34.399239 | 2018-11-24T18:35:09 | 2018-11-24T18:35:09 | 68,452,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | VERSION="0.2.10" | [
"vitaly.omelchuk@gmail.com"
] | vitaly.omelchuk@gmail.com |
a712f370e5bfa4a45f8bfd683db3ef8989ad95c7 | 195425d9c034f501ed8c453910e4286852f40385 | /import-automation/import-progress-dashboard-frontend/server/app/configs.py | c886caa0b203f66c61484a0901e126137b429910 | [
"Apache-2.0"
] | permissive | wh1210/data | f4f378a11adbbf6d0d184cb71ee1e84ec997d2de | 6b32c869f426a8a5ba1b99edd324cc0c77bbd4ad | refs/heads/master | 2022-12-06T22:47:58.148971 | 2020-08-21T18:13:11 | 2020-08-21T18:13:11 | 269,511,511 | 1 | 0 | Apache-2.0 | 2020-06-05T02:23:48 | 2020-06-05T02:23:48 | null | UTF-8 | Python | false | false | 1,207 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | wh1210.noreply@github.com |
a00be5a37d73619acb218a0561d0862883839519 | 75d0009170fe44c315ce72a8c29e712ade3848c3 | /9_Outter_Function/_pickle.py | 6d2c0393b7e4e320f70acd7eeb4785cf3083afaf | [] | no_license | moon4311/sp | d6a65d5b95bc51332b9a80a1410ffb6854a99f61 | 207758d4f4f7c28fa1cd9f277825313257782433 | refs/heads/master | 2021-09-14T07:20:49.257372 | 2018-05-09T13:28:42 | 2018-05-09T13:28:42 | 116,090,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import pickle
######## 바이너리 파일 (파일을 열어도 내용을 알아 볼 수 없다)
f = open("test.txt","wb")
data = {1:'python', 2: 'you need'}
pickle.dump(data, f)
f.close()
f = open("test.txt","rb")
data = pickle.load(f)
print(data)
f.close()
######## 텍스트파일 (아스키코드를 이용한 파일 , 내용을 보고 읽을 수 있다)
f = open("test2.txt","w")
f.write("{1:'python', 2: ... | [
"kjm4311@naver.com"
] | kjm4311@naver.com |
6eeced6d1506a1def659d8582180f495fff68a7f | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /etc/MOPSO-ZDT2/ZDT2-1.py | d0f2faf6d992bb8b09ed659299c095a99a98486a | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | '''
Created on Jan 26, 2014
@author: daqing_yi
'''
if __name__ == '__main__':
from PerformanceAnalyzer import *;
import sys;
trial_time = 30;
figFolder = sys.path[0] + "\\zdt2";
caseName = "ZDT2";
fileList1 = [];
fileList2 = [];
fileList3 = [];
... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
62f564b7edaf6eb32c0ccc8850acdb734cae478b | 487d6bbdd801d37478734ba5a96a670abada4021 | /MyWagtailWebsite/resume/migrations/0001_initial.py | 47d5a3c05ca09cca7ee3ab1e97374da7e3619feb | [] | no_license | Munnu/PersonalWebsite-Wagtail | 5414218f2b24933a462ac95dbc40de9fd449d772 | 950cf8d43e0b68c7f4445100c94ca67f738b477f | refs/heads/master | 2022-12-23T08:05:05.421092 | 2018-09-21T06:43:15 | 2018-09-21T06:43:15 | 84,692,087 | 0 | 0 | null | 2022-12-07T23:48:00 | 2017-03-12T01:41:09 | Python | UTF-8 | Python | false | false | 892 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-20 07:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagta... | [
"moniqueblake4@gmail.com"
] | moniqueblake4@gmail.com |
1511968638f2441910615d9b97b2c2629ea64078 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/resources/types/product_bidding_category_constant.py | 6aacc16b169b40875e5f6b751c1c07d2a833a97f | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
9eb70544daa471de18bc1c32603379098b98bf4d | 1d6fbc4eecad619a889682ee026082e46e501475 | /Control.py | 9994cc22acad8a03307af8c85b14214a2f01028b | [] | no_license | matheus-osorio/project_opener | 740ddf40f2a9a03b743081d6dc9c083f25bcdb07 | ceb6a97a58c255c4f8e4cc085410510091de94f3 | refs/heads/main | 2023-04-18T00:31:27.435748 | 2021-05-09T19:00:32 | 2021-05-09T19:00:32 | 361,580,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | from configs.Organizer import Organizer
class Control:
def run(self,obj,path):
st = obj['starter']
self.Organizer = Organizer(path)
response = self[st](obj)
txt = f'''
RESPONSE TYPE: {response['type']}
--------------
RESPONSE MESSAGE: {response[... | [
"matheuscerqueir@gmail.com"
] | matheuscerqueir@gmail.com |
fabdb59965535befc9dac9f98e452ca2667188c8 | 3331bef496806453a89f469d0a93b71d42f4d0d9 | /clase9.py | f7d374d056bf1741423d19a3e59ce08bd36d63f2 | [] | no_license | katherinelasluisa/Clase9 | 56ebda90ef2b63cec07f362851c145a91b3328f5 | e353edb3c960b52ffb9ed110a3d3f61363381bb8 | refs/heads/master | 2021-01-09T20:40:06.425243 | 2016-06-16T14:54:28 | 2016-06-16T14:54:28 | 61,290,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #trabajo en clase segundo emi
import time
print (time.localtime())
#time.struct_time(tm_year=2020, tm_mon=2, tm_mday=23, tm_hour=22, tm_min=18, tm_sec=39, tm_wday=0, tm_yday=73, tm_isdst=0)
t=time.localtime()
year=t[1]
month= t[2]
day= t[3]
wday=t[4]
min=t[5]
print (year)
print (month) | [
"katherinelasluisa7@gmail.com"
] | katherinelasluisa7@gmail.com |
af6d319381a3634ed79b1ce5fbc909e292583f02 | 77ce46ae4198108326e7606f4f4d0bb7d59c6555 | /rpcenable/async.py | 00a6c44db3df31e5888f2a2ab600366c592b5d6e | [] | no_license | mtrdesign/django-rpcenable | 5ca87287ccef99ef7c8f6221a48ab8daf55b9228 | 7e8836699f5cc7c140a154946246f4ab2403ad39 | refs/heads/master | 2020-09-22T02:16:37.600130 | 2013-12-09T18:12:09 | 2013-12-09T18:12:09 | 6,478,013 | 2 | 0 | null | 2013-12-09T13:09:12 | 2012-10-31T17:38:02 | Python | UTF-8 | Python | false | false | 784 | py | import atexit
import Queue
import threading
import functools
from django.core.mail import mail_admins
def _worker():
while True:
func, args, kwargs = _queue.get()
try:
func(*args, **kwargs)
except:
import traceback
details = traceback.format_exc()
... | [
"tie@TTOP.(none)"
] | tie@TTOP.(none) |
915bb39fd2f17f7a5a22a7b3fbb3525926ae7f63 | e7f8acff7948cf6618043ec7b998867b7c6ad831 | /python/pythonday5/pythonday5_5_文件操作.py | b822ba838138be00185e46990a9ce22e8e4143ea | [] | no_license | z778107203/pengzihao1999.github.io | 9b97ecefba6557f1f815a5f17da33118ddf78b37 | d683ba31772fb3a42085cb44ee0601637bcdd84e | refs/heads/master | 2022-11-13T10:44:00.988950 | 2019-10-08T15:29:04 | 2019-10-08T15:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """
r :以只读方式打开文件,文件的指针将会放在文件的开头,如果文件不存在抛出异常
w :以只写方式打开文件,如果文件存在会被覆盖,如果文件不存在,创建新文件
a :以追加方式打开文件,如果文件存在,文件指针将会放在文件的结尾,如果不存在,创建新文件进行写入
r+:以读写方式打开文件,文件的指针会放在文件的开头,如果文件不存在,抛出异常
w+:以读写方式打开文件,如果文件存在会被覆盖,如果文件不存在,创建新文件
a+:以读写方式打开文件,如果文件已经存在,文件指针将会放在文件的结尾,如果文件不存在,创建新文件进行写入
"""
file = open("wenjian")
text = file.read()
print(t... | [
"916811138@qq.com"
] | 916811138@qq.com |
37c5eab2b0dce309f35baf4e54e33fcf65b69a0f | b37c027a3f63305345f266e8f4f944721adbb956 | /BASES/OLD/3_2_CAC_CC_SPLTED_CSDS/tx_no_gui.py | a9468578d04ae10a963ccd3699fadbf0be6ccf6e | [] | no_license | andrehoracio97/investigacao | fdfb663867e6fe9f240bb828b7b96b99323f8be3 | 5dd1fad12f4991bb737ed236426247dfb52333eb | refs/heads/master | 2022-10-11T02:08:30.478893 | 2020-06-16T09:58:13 | 2020-06-16T09:58:13 | 193,519,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,072 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Tx No Gui
# Author: andresilva
# GNU Radio version: 3.7.13.5
##################################################
from gnuradio import blocks
from gnuradio import digital
from gnuradio... | [
"andresilvamail@gmail.com"
] | andresilvamail@gmail.com |
66a5c9b0258f2ea3b92f24ed39c3fcd45c84f294 | 335652dd8cf0097f171dc9d349425047c53766ea | /pdestrianTracker.py | 75113a26ca6e169915d4a3c745f76d64da91bf23 | [] | no_license | bytebarian/SocialDistanceDetector | 880e3ff9b2ff1c9dafa05bf88bb9d405fd9ee5a6 | bdd28a52f39ba76ef663c5faf5f83b83331f8288 | refs/heads/master | 2023-02-12T10:42:31.882635 | 2021-01-03T22:49:31 | 2021-01-03T22:49:31 | 286,845,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,242 | py | # USAGE
# python pdestrianTracker.py --input pedestrians.mp4
# python pdestrianTracker.py --input pedestrians.mp4 --output output.avi
import argparse
import cv2
import imutils
import numpy as np
import torch
import time
import pymongo
from deep_sort import DeepSort
# import the necessary packages
from pyimagesearch.... | [
"mariusz.dobrowolski@softwarehut.com"
] | mariusz.dobrowolski@softwarehut.com |
37a4bed3bf5ad368c0622bb623e70c8852cd6ba3 | c0239d75a8199ec84ad683f945c21785c1b59386 | /dingtalk/api/rest/CorpDingTaskCreateRequest.py | ebe77db44bea52c850f1888fb9ce57aede6aae7f | [] | no_license | luss613/oauth_dingtalk | 9f253a75ce914c577dbabfb84e97fd883e80e04b | 1e2554642d2b16c642a031670d08efa4a74e8252 | refs/heads/master | 2023-04-23T01:16:33.450821 | 2020-06-18T08:22:57 | 2020-06-18T08:22:57 | 264,966,287 | 1 | 1 | null | 2020-06-18T08:31:24 | 2020-05-18T14:33:25 | Python | UTF-8 | Python | false | false | 332 | py | '''
Created by auto_sdk on 2018.07.25
'''
from dingtalk.api.base import RestApi
class CorpDingTaskCreateRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.task_send_v_o = None
def getHttpMethod(self):
return 'POST'
def getapiname(self):
return 'dingtalk.corp.ding.ta... | [
"paul.lu@belstar.com.cn"
] | paul.lu@belstar.com.cn |
b0a4b9177ca36a73a671df684292e3633f5ff0f4 | 24e53f24cbc457cb62555de1f319d279001d8539 | /9.- Clases/python_module_of_the_week.py | dca9d982871f89a1c41427e6fbe0a3aa496d864c | [] | no_license | javierramon23/Python-Crash-Course | c93d4726377ffa96310a0b10490c7f308fb0a7aa | 07fe05f149437d9fdfa9de9dbb1633835a5b5f92 | refs/heads/master | 2021-06-19T15:43:00.232933 | 2019-11-21T20:04:33 | 2019-11-21T20:04:33 | 196,716,791 | 0 | 0 | null | 2021-06-10T21:51:44 | 2019-07-13T12:02:41 | Python | UTF-8 | Python | false | false | 26 | py | '''
http://pymotw.com
''' | [
"javierramon@outlook.com"
] | javierramon@outlook.com |
902b03e937d195c22fcfeec107c8ea365f4015eb | 842a7c01a33270766fd382c787b0616066522694 | /LinkedList/Leco1290.py | 95104cceacde8f384e3a45df4bf145b99b3a911a | [] | no_license | BubbleMa123/Leetcode | 7d1fc17e6ec8d716ced7accefb86b5805b088081 | 79d4f33034210764d4dbcb51484732a801fd639f | refs/heads/main | 2023-04-02T05:36:32.856999 | 2021-04-08T10:50:15 | 2021-04-08T10:50:15 | 355,212,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# class Solution:
# def getDecimalValue(self, head: ListNode) -> int:
# nums = []
# while head:
# nums.append(head.val)
# head = head.next
# ... | [
"76720145+BubbleMa123@users.noreply.github.com"
] | 76720145+BubbleMa123@users.noreply.github.com |
47e4f83b3f35277e25d4271ecbd28e12c9bdb8d5 | 743f0944edbc7a5e148443422a0c9eac96ec5ea5 | /telaPrincipal/migrations/0017_auto_20190609_2049.py | 44fde0fcb603708373dab5eb8b234a967e097d9f | [] | no_license | phsd/SGV-Prot-tipo | 6db4a4484ef4180d474133d98034303723793ea8 | 9e4fbf97a0452ece58f56e025020219ab0efc280 | refs/heads/master | 2020-04-30T12:31:32.928019 | 2019-08-03T00:01:23 | 2019-08-03T00:01:23 | 176,828,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 2.1.7 on 2019-06-09 20:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('telaPrincipal', '0016_auto_20190609_2034'),
]
operations = [
migrations.AlterField(
model_name=... | [
"paulohenrique@live.com.ph"
] | paulohenrique@live.com.ph |
7e504807ecaf06d5ef595d1ea58a05ab471ee2b1 | a90547c558f666b8f6717d735b5cd89552e5fc20 | /animal.py | 3858b40150c65651677991c69535a52a34333eca | [] | no_license | Maniss-ai/PythonGame | 8400eaa3bfdc25983141418b0b03b7299e2f8649 | faf76a7f06b60e37357811cdc26d5c0aff681fd8 | refs/heads/main | 2023-01-09T16:33:56.355887 | 2020-11-05T11:58:01 | 2020-11-05T11:58:01 | 310,284,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import os
import random
import game_config as gc
from pygame import image, transform
animal_count = dict((a, 0) for a in gc.ASSET_FILES)
def availabe_animals():
return [a for a, c in animal_count.items() if c < 2]
class Animal:
def __init__(self, index):
self.index = index
self... | [
"noreply@github.com"
] | Maniss-ai.noreply@github.com |
fd39ae92816f5fe6a089e0016756b334239d8254 | 8b8945ef99886034fe6bda7fc34a68252ef7997b | /webapp/api/resources/podcast_resources.py | 06741de832c0a9f049ab3bd8a1003e4252a6ac7b | [] | no_license | asm-products/podato-web | 90bc3463ee4581d97a7863522ac9f308dfb82d1d | e4693c232a25fa4003a2cc8de17327b9fca2fd2a | refs/heads/master | 2021-01-20T23:31:53.813211 | 2015-07-13T21:06:36 | 2015-07-13T21:06:36 | 29,367,441 | 0 | 3 | null | 2015-04-08T21:35:52 | 2015-01-16T20:57:44 | CSS | UTF-8 | Python | false | false | 2,350 | py | import urllib
from flask import abort
from flask_restplus import Resource
from flask_restplus import fields
from flask_restplus import abort
from webapp.utils import AttributeHider
from webapp.api.oauth import oauth
from webapp.api.oauth import AuthorizationRequired
from webapp.api.blueprint import api
from webapp.ap... | [
"frederikcreemers@gmail.com"
] | frederikcreemers@gmail.com |
7ce4e19ebdd1b09d6936f8c00c013e502d9af991 | 980cb4ee01049f2febb2a5b05f34c93dd8cf4cfa | /repo/guruh_repo.py | fd3e5ad0c022eb3c8363e0025c6336dea95c6f96 | [] | no_license | Fantastik-uchlik/talaba | 2e5745323f098ffe253651157a7d1022fd7eeb87 | c0dbbc10d72ec3ad71abd87e249ab3915fb3c519 | refs/heads/master | 2023-05-05T16:30:31.338612 | 2021-05-29T01:59:36 | 2021-05-29T01:59:36 | 371,858,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | from db.db import conn
from model.guruh import Guruh
class GuruhRepo:
cur = conn.cursor()
def getAll(self):
sql = "SELECT id, nom, yunalish, yil FROM guruh;"
self.cur.execute(sql)
tplist = self.cur.fetchall()
return list(map(Guruh, tplist))
def getById(self, id):
... | [
"0177_88@mail.ru"
] | 0177_88@mail.ru |
7707d072af3f7970dea14838853c5f34c3fd18f8 | 886308689f87c162bef933d74ff213005733506b | /ExpPhysFinalProyect/ExtraCode/madgraph_cards.py | 2fdf50d0738b459c18f14cb01878dc4aecbde560 | [] | no_license | sfuenzal/F-sicaExperimental | 3304bbdf510248244d60fcc0507fb95313b2dd84 | 31667d48a7ef97e9ae4d26d0dadda364cb371cf8 | refs/heads/master | 2023-07-13T06:49:15.860430 | 2021-08-12T18:25:10 | 2021-08-12T18:25:10 | 372,877,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | class MadgraphCardsGenerator_ttbar(object):
def __init__(self, number_initializer):
self.number = number_initializer
def Generator(self):
aux = ["set group_subprocesses Auto"
,"set ignore_six_quark_processes False"
,"set gauge unitary"
,"set complex_mass_scheme False"
... | [
"sebastian.fuenzalida.garrido@gmail.com"
] | sebastian.fuenzalida.garrido@gmail.com |
7e0523f23ad99067226163240acb0bb0bd3c3b82 | a2c9dec29f36df1ea36121bc36bd43b82b247f1f | /cs231n/rnn_layers.py | aff15b5b7fe6a70f5da094313ae9da5c24367419 | [] | no_license | FengYen-Chang/cs231-assignment-3 | 9476f673ae1ff6ac825bad53d3327d754eac77ac | a45f55a16236618d296c128d62c41ea435537bbb | refs/heads/master | 2020-04-17T08:43:18.241622 | 2019-01-18T15:28:34 | 2019-01-18T15:28:34 | 166,423,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,046 | py | import numpy as np
"""
This file defines layer types that are commonly used for recurrent neural
networks.
"""
def rnn_step_forward(x, prev_h, Wx, Wh, b):
"""
Run the forward pass for a single timestep of a vanilla RNN that uses a tanh
activation function.
The input data has dimension D, the hidden state h... | [
"noreply@github.com"
] | FengYen-Chang.noreply@github.com |
8fb52d1f5f6352d64b9f99747a87aaf4c438bd26 | 857892283054b9ce416404ca2bb58aea841e7bd4 | /django_async_test/tests/test_testcase.py | 45951fa1b6fde426d8117532ed184d3b22a881e0 | [
"MIT"
] | permissive | alexhayes/django-async-test | 1effa10da547c34d0f921db623c3a75129d01920 | 0b624b16e6146a1ea9a5dd92c38cc07cdf3b3119 | refs/heads/master | 2023-01-12T05:00:26.027052 | 2016-05-09T21:09:23 | 2016-05-09T21:09:23 | 48,104,428 | 8 | 0 | MIT | 2022-12-26T20:23:37 | 2015-12-16T10:44:25 | Python | UTF-8 | Python | false | false | 1,974 | py | # -*- coding: utf-8 -*-
"""
django_async_test.tests.testcase
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests for :py:class:`django_async_test.TestCase`.
"""
import unittest
from django.test import TestCase
from django_async_test.tests.testapp.models import ModelWithBasicField
class TestCaseTestCase(TestCase):
... | [
"alex@alution.com"
] | alex@alution.com |
79e39282fe18e3659d7f76f56c3f2ae8ce5dc408 | d62f1c0bd9c35cd8ae681d7465e749d63bb59d4e | /Week1/Codingbat/List-1/same_first_last.py | 43d30b5ee7aa5c509d24f23881f34fe800bd4642 | [] | no_license | Yeldan/BFDjango | 0134a57ec523b08e4ca139ec11c384eeefec6caa | a390e08b8711613040a972e30a25b4035ff58e37 | refs/heads/master | 2020-03-27T15:49:53.859506 | 2018-11-25T22:33:38 | 2018-11-25T22:33:38 | 146,742,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | def same_first_last(nums):
if len(nums) >= 1 and nums[0] == nums[len(nums)-1]:
return True
return False | [
"noreply@github.com"
] | Yeldan.noreply@github.com |
1a6e780d70010693616f7c54d692cdab2c4dfb90 | 24ce5a9988aa0b1b6b57746a93a8fe2b7c7554bc | /scrna_pipeline/nebula/smart-seq2/scripts/04-assign_reads.py | 39c9bdc1f8849337a99b2c8ff3ae385427ca4d73 | [
"MIT"
] | permissive | JarningGau/NGS_pipeline | 7394a3ecc3158fa396c0ff3ed363084e910742d0 | 0e9012f4e68bbc8ce2b1c2f1df5af012e68e0ba2 | refs/heads/master | 2020-07-07T13:35:45.357610 | 2019-09-06T11:35:35 | 2019-09-06T11:35:35 | 203,363,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | from parallel import *
from utils import *
import sys
home = sys.argv[1]
project = sys.argv[2]
gene_gtf = sys.argv[3]
TE_gtf = sys.argv[4]
threads = int(sys.argv[5]) # cpu per cmd
batch_size = int(sys.argv[6])
def reads_assign_on_gene(path, summary, bam_in, experiment):
cmd0 = 'echo "processing %s"\ncd %s' % (e... | [
"jarninggau@gmail.com"
] | jarninggau@gmail.com |
97a31e802cc8fa3647b21b3d296d581a4b955343 | 4d0e38ecdea3f8f7a627f620899ec5b4989fdd1c | /system/draft/TestPropertyBasedSuite.py | 0427213b95c7561cbc5c4d1607baee131e43afcb | [
"Apache-2.0"
] | permissive | VladimirWork/indy-test-automation | d07361e014da053da39c3a0b29b300ee6b4cee40 | 11838b4061f70275058c4642f7eb755c1c98c367 | refs/heads/master | 2023-03-15T21:53:34.850695 | 2019-07-10T14:33:32 | 2019-07-10T14:33:32 | 154,509,204 | 3 | 0 | Apache-2.0 | 2023-03-05T06:40:28 | 2018-10-24T13:48:45 | Python | UTF-8 | Python | false | false | 11,821 | py | import pytest
from system.utils import *
from hypothesis import settings, given, strategies, Phase, Verbosity
from hypothesis.strategies import composite
from string import printable, ascii_letters
import hashlib
import copy
import os
import sys
@composite
def strategy_for_req_data(draw):
reqid = draw(strategies.... | [
"vladimir.shishkin@dsr-corporation.com"
] | vladimir.shishkin@dsr-corporation.com |
bab6d662deb64c019535c2f9d445ba7d16dddda6 | 36a3b47a9a22a11e2e83b34d295c33b59c8150bf | /dogehouse/client.py | 1f0a87b52cd02bc68018c478fd3b6157aa68aad7 | [
"MIT"
] | permissive | IdlyBond/dogehouse.py | a8007ab8952755f88e490194613242b428d5475f | 176d8714693de3332b45247da77335a4c707c1a3 | refs/heads/main | 2023-04-04T13:10:21.543626 | 2021-03-25T16:02:27 | 2021-03-25T16:02:27 | 351,272,314 | 0 | 0 | MIT | 2021-03-25T01:23:49 | 2021-03-25T01:23:49 | null | UTF-8 | Python | false | false | 20,279 | py | # -*- coding: utf-8 -*-
# MIT License
# Copyright (c) 2021 Arthur
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy... | [
"mail@arthurdw.com"
] | mail@arthurdw.com |
df9f8cafcbb7e3588ead8c12b10dddb6bd3e53d7 | 60c182223370ba1c0358a872d27737bb5b74e5f9 | /scraper/hitad_scraper/items.py | b90644894feab9911d2eb467b3d105998b4f016a | [] | no_license | IsuraManchanayake/CS4642-IR-HitAdHouseAds | 84f26be6ee0d324bbf882af1700e00e7e7c230ed | 1cc42bc2f298489a1edacab5560ee030be19d47d | refs/heads/master | 2020-03-21T00:50:58.625284 | 2018-07-10T14:59:39 | 2018-07-10T14:59:39 | 137,912,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class HitadScraperItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"isura.14@cse.mrt.ac.lk"
] | isura.14@cse.mrt.ac.lk |
e1d5e4dea12c8224a49304457ec39b4f8a764fc5 | ba2da5470dd9f78907880e51fbe029ea784afe44 | /smh_microbit/orientation/pc/visualization.py | decc8983cb2d4be3a2ad61b7284b7cd447833bc8 | [] | no_license | samuelmh/microbit_tests | a678847ab4a8d0805118b826c6ee45cc6f5b629d | cbf36c08f1bcef9659aec221e40679623005bcdd | refs/heads/master | 2020-04-03T17:29:56.362199 | 2018-01-26T08:20:47 | 2018-01-26T08:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | # -*- coding: utf-8 -*-
"""
"""
import sys
import vispy
vispy.use(app='pyglet', gl=None)
from vispy import app, gloo
from vispy.visuals import CubeVisual, transforms
from vispy.color import Color
from utils.orientation import Orientation
from utils.USB_data import USBData
class Canvas(app.Canvas):
def __init... | [
"samuel.munoz@beeva.com"
] | samuel.munoz@beeva.com |
e6537f2dd2577dc7cd6a0d0a7a8d6f98ce698029 | fb31988d2281ec31aa8dcb9aaeef5e4479a277fb | /Chapter 8/challenge8_4class.py | a2ca4a190f55141bc39720b747a26ba91f623a29 | [] | no_license | mwrouse/Python | 6bccf8a9058b640b3a0ddfc0d1f4a513d7d7c66e | 913a0cb8a1aaef061351ac37f85830f9cc462491 | refs/heads/master | 2020-06-04T01:16:19.147486 | 2014-12-22T14:41:02 | 2014-12-22T14:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | """
Program: challenge8_4class.py
Author: Michael Rouse
Date: 12/12/13
Description: Class object for challenge8_4.py
"""
class Critter(object):
"""A virtual pet"""
def __init__(self, name, hunger=0, boredom=0):
self.name = name
self.hunger = hunger
self.boredom = boredom
... | [
"michael@michaelrouse.net"
] | michael@michaelrouse.net |
2151cceac149e0509db788b0da44d68c4d1cd4cb | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /Pseudo_Finder.py | 2d5054ccbc1b1928f339f8fd026680b8d0102af6 | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,854 | py | #!/usr/bin/env python
#coding:utf-8
"""
Author: --<>
Purpose:
Created: 2015/10/19
"""
from lpp import *
import os
from optparse import OptionParser
def check_path( path ):
if not os.path.exists(path):
os.makedirs( path )
return os.path.abspath(path)+'/'
def GBLASTA( protein,assemblyre... | [
"409511038@qq.com"
] | 409511038@qq.com |
63c2932c0cec8f0d027cd3a620d55a0b87a292f6 | ea09d6e9878f209cad2038bbe69e91f8fecab9b7 | /fs20/pcs.py | a4f8faec0e4468ca61a7797f080b293414db1362 | [
"MIT"
] | permissive | dprokscha/pyfs20 | 7505e59d61face401a97d4062d1488fa1a6f540d | 4749cf3e9a6f5922ac72aef5ee1432ed444479f1 | refs/heads/master | 2021-01-01T19:56:10.383619 | 2013-07-01T15:41:13 | 2013-07-01T15:41:13 | 9,840,976 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,518 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2013 Daniel Prokscha
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mo... | [
"dp.online@googlemail.com"
] | dp.online@googlemail.com |
6f284c9f2339a918f68fc9ce60c1c169f2530239 | 1b962b7963ab8e459d14b8211fce9ee81b1f3918 | /Dictionaries And HashMaps/Count Triplets.py | e887124ed7b1d48a6a4a6ed1b171d6b54f676755 | [] | no_license | NipunaMadhushan/HackerRank-Interview-Preparation-Kit | f056c2665bb289a55a524b51e81455703c575153 | aed33934b0bd95bae11d6aa886c7333e68e18db5 | refs/heads/main | 2023-04-08T04:38:06.152719 | 2021-04-16T17:28:51 | 2021-04-16T17:28:51 | 358,671,397 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #!/bin/python3
import math
import os
import random
import re
import sys
def countTriplets(arr, r):
count = 0
dict = {}
dictPairs = {}
for i in reversed(arr):
if i*r in dictPairs:
count += dictPairs[i*r]
if i*r in dict:
dictPairs[i] = ... | [
"noreply@github.com"
] | NipunaMadhushan.noreply@github.com |
a636b852ab2787fc83d56af992caeacc384175e2 | 4df6f4f63fe7275ea71bf7fa8268a2c7ab9ed85d | /Heaps/kth_smallest.py | ab03d0fdfc6cbbfc73e96b6c727cc34a46621b97 | [] | no_license | ambuj991/Data-structure-and-algorithms | 7d328cdc7018ac505427e3c0246036abb086e504 | aaac4e0ce8d7f40e9fc70f2aa77c3d6967384957 | refs/heads/main | 2023-07-09T07:46:08.537322 | 2021-08-14T13:40:14 | 2021-08-14T13:40:14 | 396,015,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py |
import heapq
def kthSmallest(iterable, k):
smallest = []
heapq.heapify(smallest)
for value in iterable:
if (len(smallest) < k):
heapq.heappush(smallest, -value)
else:
heapq.heappushpop(smallest, -value)
if (len(smallest) < k):
return None
... | [
"noreply@github.com"
] | ambuj991.noreply@github.com |
f4d3517302e8a96756017053b7ebb012998b06ba | 3dec63c2fdd0a83ecd7de937ae8a2f93f106bb75 | /projects/env/lib/python3.7/sre_parse.py | db645a3f554bd1637d5cb8b09782db2a223e404a | [] | no_license | rudresh04thakur/7_30_GBT_PY | 8c1b92988f2b686992da30103698ce2b3b6134a9 | 5355209168a80d51c37177b58eb9d3f395317dc6 | refs/heads/master | 2020-04-15T20:10:53.772642 | 2019-05-19T05:56:49 | 2019-05-19T05:56:49 | 164,981,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | /home/rudresh/anaconda3/lib/python3.7/sre_parse.py | [
"rudresh04thakur@gmail.com"
] | rudresh04thakur@gmail.com |
2b785be5fd03980dc2b425e1e071d73b31c13bce | 77ee4cd6a10eabd9ed4e40353eca81090f693012 | /Chapter 6 - Program 6-18.py | 8b0fd40d71d53240669a5b381298ef107536f367 | [] | no_license | ScottSko/Python---Pearson---Third-Edition---Chapter-6 | 7fd54353e4eb4807dd089d77ed65a8c454a21f78 | b9174127dc051a8f2de9efd25ee7e9df613b25f0 | refs/heads/master | 2021-01-16T18:32:18.385119 | 2017-08-12T03:33:52 | 2017-08-12T03:33:52 | 100,086,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import os
def main():
found = False
search = input("Enter a description to search for: ")
#new_qty = int(input("Enter the new quantity: "))
friend_file = open("friends.txt", 'r')
temp_file = open("temp.txt", 'w')
descr = friend_file.readline()
while descr != '':
... | [
"noreply@github.com"
] | ScottSko.noreply@github.com |
89e1b8099d3c6daef52ccd5790833d74358328b6 | 8d0be23ba5b1542787239eef664af470abc50ea4 | /posts/migrations/0001_initial.py | d111d2b7f4d6a29e2427d3853b389139494a16ac | [] | no_license | NataliiaSubotyshyna/mb | c9057ad208effbdaab480b9e35a2fcdd768264d7 | de02ce0931a0e535abb9e5d71fd126bb9334f861 | refs/heads/master | 2023-04-15T07:31:46.214771 | 2021-04-26T14:26:32 | 2021-04-26T14:26:32 | 361,772,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # Generated by Django 3.2 on 2021-04-25 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.BigAutoField(au... | [
"natasubotyshyna@gmail.com"
] | natasubotyshyna@gmail.com |
48dbfd7b8a9ff2b153aa35b2ec8208aca946ed0f | 851c1b7b5cabc660d1dac448fb61746d1f66237e | /week02/week02-03-succ.py | 2ea9219e796488a14f5f81f48858978165312898 | [] | no_license | ntut0002/coding_365 | 0c89edf3d193380c64015800e6a646553a9047be | d5b0b01333943cc611fb1c5ea9713cf6ffcf246f | refs/heads/master | 2020-03-24T03:17:03.127353 | 2018-08-11T04:21:03 | 2018-08-11T04:21:03 | 142,412,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | type1or2 = int(input())
a = int(input())
if type1or2 == 1 :
for j in range(1, (a//2+1)+1 ):
for i in range(1,j+1):
print(i,end='')
print()
for j in range((a//2), 0, -1):
for i in range(1,j+1):
print(i,end='')
print()
######type2
L = []
if type1or2 == 2 ... | [
"ntut0002@gmail.com"
] | ntut0002@gmail.com |
75909f671b2af23833756e70594ad8826be0566b | 38fca823e622432d133c6bbf3a10fcf9868dc0b6 | /apps/customers/apps.py | db4a5bceb5549a6c1fd188ada0df9f9bc611c4fa | [] | no_license | canionlabs/MESBack | d608d76cc8a0eb8e6639e714a1fb89d1812cdeb6 | 69c94e8a41644a34782f0174b1caa21f8b17167a | refs/heads/master | 2022-01-23T14:14:12.526381 | 2020-02-13T22:28:50 | 2020-02-13T22:28:50 | 151,326,773 | 0 | 0 | null | 2022-01-21T20:13:55 | 2018-10-02T21:37:32 | Python | UTF-8 | Python | false | false | 128 | py | from django.apps import AppConfig
class CustomersConfig(AppConfig):
name = 'apps.customers'
verbose_name = 'Clientes'
| [
"caiovictor31@live.com"
] | caiovictor31@live.com |
e929e0f5b1486118a552b82e73fcafa17f507211 | 08c1e1eac940a6cc17c7d4360108941e6d126ce0 | /UnitTest_addevent.py | 79bd204fbc047d010447231b20b29a39e1fbf725 | [] | no_license | anushamanda/8220assign4waves-tests | 231c0ec190b174fd5fd0735c1d2975e57ae8e6df | 1ec0ade1eb3e5d7ce1c69a05850cab2b72d2bc75 | refs/heads/master | 2022-05-24T18:27:57.693544 | 2020-05-01T05:43:02 | 2020-05-01T05:43:02 | 260,388,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | import unittest
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
class waves_Test9(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
... | [
"amanda@unomaha.edu"
] | amanda@unomaha.edu |
d7d23c964b115545b69fb22184a1ca63df24a097 | bf52e1bb25945cc9d4c1eccaaa57dbb21fb557c3 | /Labs/Lab2.py | ae14ab4b0ce4c3f9a2b5b1cc93f94c7c7096017a | [] | no_license | akaHEPTA/IntroToAlgorithm | 6431ce42f151dace11f66e3844b86492c1a010ba | d09e1b111d6467d6adeac6db4c039309dc507590 | refs/heads/master | 2022-12-23T01:23:56.810110 | 2020-09-26T08:07:58 | 2020-09-26T08:07:58 | 211,411,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | """
Basic python list problems -- no loops.
"""
def first_last6(nums):
"""
Given a list of ints, return True if 6 appears as either the first or last element in the list.
The list will be length 1 or more.
"""
if len(nums) >= 1: # Check the length of list is enough
if nums[0] == 6 or nums... | [
"abelsteiger@gmail.com"
] | abelsteiger@gmail.com |
ae62814db0ca42c1055a4b10e13fc44e5eef0756 | 81eccf97d0dcbadb5903213fb535abdc5ff35bcf | /lib/func_mAP_v2.py | 63068d0c1fb5e8eb490f39ada6190a96dd22f6d8 | [] | no_license | zealot5209/FPN_SeNet50 | 6c9d8caedfdcd21e3422a9241bbd3070a933b3f0 | 15e996d55660dfdf7f7b1d104eeb98aade55c50e | refs/heads/master | 2020-03-10T12:55:26.296054 | 2018-04-27T03:49:54 | 2018-04-27T03:49:54 | 129,388,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,047 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
import os.path as osp
import sys
import shutil
import glob
import cPickle
from xml.dom.minidom import parse
import xml.dom.minidom
import numpy as np
import BBoxXmlTool as bxt
import xml.etree.ElementTree as ET
# =======================================
# check_neg(... | [
"noreply@github.com"
] | zealot5209.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.