blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf894f9e2b9e9e3cfa72915ce476c80f7b86f700 | aa6260a66bdedee64882663f831de869eb5ef193 | /Repository/Points.py | 1c1a09bfd7540675eb6480251fa50c247b675ea2 | [] | no_license | BrunoICardoso/GEO4ALL | dc1076ea0241440b52120483a2d505a6cae99099 | 889cd305ca97f64b75a482ccfcea82c856a4dc33 | refs/heads/master | 2022-11-10T03:12:28.334437 | 2019-07-07T19:05:57 | 2019-07-07T19:05:57 | 195,507,889 | 0 | 2 | null | 2022-10-23T20:28:09 | 2019-07-06T06:50:42 | Python | UTF-8 | Python | false | false | 1,306 | py | from DAO.DataBase import DataBase
from datetime import datetime
# Esse Repositorio da tabela Points tem a função de ter todo qualquer comando que tem como função direta da tabela
class Points(DataBase):
def __init__(self):
DataBase.__init__(self)
def CheckExistingPoint(self, latitude, longitude) -> N... | [
"bruno.inacio88@gmail.com"
] | bruno.inacio88@gmail.com |
f8cbc044b1234674be65d031fd31641997b778f9 | 78dd211bf471c5b472ad3bf6b753c0b0d9210551 | /hardening/tests/test_sudo.py | aaefef69af66bfbf88f21380f99440b4fd980f45 | [] | no_license | Junowa/hardening-roles | be227685fd302bc9e583db3707009ecbcf1d47b2 | 14f546c50ecfbf23312136c8bbe58e58d4d9504d | refs/heads/master | 2020-03-19T00:37:27.140874 | 2018-05-30T20:28:55 | 2018-05-30T20:28:55 | 135,493,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import time
""" hardening sudo module """
def test_log_sudo_actions (host):
""" run the privileged command \'sudo hostname'\ and test if a log exists with \'sudo journalctl -f\' """
with host.sudo():
action = host.run("hostname")
time.sleep(3)
action_log = host.run("journalctl --since \"1 minute ago\"... | [
"julien.nowalczyk@thalesgroup.com"
] | julien.nowalczyk@thalesgroup.com |
9581235950edd78c5dcad76402bc11c604e1611f | 447db789b432b2f665f0ab1a0ee75abc02151b1a | /01_python_fundamentals/01_03_yeehaw.py | ea8eabaffaae8ffc0c726039fbfd31807f2ae612 | [] | no_license | jesusdmartinez/python-labs | cfcf69964409a3284208d8fb52c637ffd6bda535 | 4d314985480b8db482d49e445a671c535fbcb88c | refs/heads/master | 2020-07-09T23:38:40.935626 | 2019-09-20T00:18:42 | 2019-09-20T00:18:42 | 204,110,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | '''
Write the necessary code to display the follow message to the console
I'm a programmer now.
Yeehaw!
Coding here I come!
'''
print("I'm a programmer now.")
print("Yeehaw!")
print("Coding here I come")
| [
"jesusd.martinez@Jesuss-MBP.home"
] | jesusd.martinez@Jesuss-MBP.home |
5deac943862d22111f394e515c2f8ae54d238c37 | 2657d7cdc745e38cfddec1c04fce9e367937b393 | /pricing_1a.py | f4c5b78e0df97d7235b4a7cf099f8f656141a5a6 | [] | no_license | amasl2048/pricing | ab0f1d4c49dec3ed3ad646b08e1bbc9ea2bc5545 | ff5ede99f98c49f18e87e23cd65115b3f7b665c4 | refs/heads/master | 2021-01-17T09:16:20.649084 | 2017-08-11T14:22:17 | 2017-08-11T14:22:17 | 28,592,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Выборка по заданному списку с part.num. соответствующих строк из общего файла с ценами
1 аргумент - текстовой файл с нужными именами (part.num.) в одну колонку
2 аргумент - исходный csv файл c ценами msrp ref trans
3 аргумент - имя выходного csv файла
2014 Dec
... | [
"amasl2048@gmail.com"
] | amasl2048@gmail.com |
71129ddfbf63fd4d1bcd4996ef697cfe339d0644 | 81ebceaea5d26dd1c20a596430d274eb31c7234c | /hw3_code/scripts/concat_feats.py | 80addc0a01cb4c43096b6834530c63e41629779d | [] | no_license | richcode6/Multimedia-Event-Detection | d22f3aca9b7e770e91315978cb8b5f3baee218c2 | c9f9b9c2117785e13d7b482ad460d78822ecf275 | refs/heads/master | 2020-04-21T19:32:59.644781 | 2019-03-21T04:51:34 | 2019-03-21T04:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | #!/bin/python
import numpy as np
import os
import pickle
from sklearn.cluster.k_means_ import KMeans
import sys
if __name__ == '__main__':
print(sys.argv)
if len(sys.argv) < 2:
print("Usage: {0} feat_combination_type".format(sys.argv[0]))
print("feat_dict_n -- dictionary of video i... | [
"rrnigam@compute-0-30.local"
] | rrnigam@compute-0-30.local |
fcd60992320670938ad1008e770d883589962908 | 8a35a12c48bfaaf7c7d36bb3dd13bb1a3e3189a2 | /home/urls.py | 5de6e595883ab1ea0f268eeb047f42dda1169531 | [] | no_license | Aurelian-Nkonde/Django-login-system-authentication- | e91eebf8e160aa29fb4544cd5008fb966dd06454 | 9a1178e7fc3ab54c1530bc928ab8c2cda1f17d29 | refs/heads/master | 2022-09-01T18:46:45.855765 | 2020-05-09T00:05:23 | 2020-05-09T00:05:23 | 262,452,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.urls import path
from .views import Home
urlpatterns = [
path('', Home.as_view(), name="home")
]
| [
"aurelianrobot@gmail.com"
] | aurelianrobot@gmail.com |
c1b5a0723dfe2275003edde27ad695f06d4f896f | 61a43dbd5ee615bf5e5f8f52e739efdfe5b57443 | /open_cv/cv10.py | 8c39449a4eba0296754c7f38f0025a019ee21aae | [] | no_license | tianqibucuohao/MyPython | 6edef8fa2635862914af26f96b3fb630a0198403 | 12b9689882dc197128d1a27b68c9a2840a57d0fc | refs/heads/master | 2020-04-07T15:04:09.838646 | 2020-01-09T09:03:48 | 2020-01-09T09:03:48 | 158,471,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(0)
while(1):
# Take each frame
frame = cap.read()
# Convert BGR to HSV
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
# define range of blue color in HSV
lower_blue = np.array([110,50,50])
upper_blue = np.array([130,255,255])
# Thr... | [
"lichzhenglz@gmail.com"
] | lichzhenglz@gmail.com |
4d15eb1750b1d7b7d4d335a60c966aa2110ea6b7 | 89f19fbb1f59c14b3f48f779dd80fe4d223fde4a | /tools/caffe/python/caffe/proto/caffe_pb2.py | 8eb4838ed85977bd632bd8709f5297d28569c618 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"MIT"
] | permissive | lixiaoxing0426/PixelNet_vessel | 7ff72e387ec9bf11d0d7fed69448128c5d053984 | 992c6365a4121e75310c4ca3cc1b8cb73c5fc6ef | refs/heads/master | 2022-04-10T00:49:21.080399 | 2020-03-14T06:17:28 | 2020-03-14T06:17:28 | 246,781,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 277,745 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: caffe.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _mes... | [
"1317695730@qq.com"
] | 1317695730@qq.com |
57fec9d9d6b9b4b108b47c61da6a3c3f9a922f9f | 42cd876257807de1c851543cabcad9101b6d8170 | /cogs/events/TwitterLike.py | 8482388dc93006012444e1177e8585518edda9a2 | [
"MIT"
] | permissive | RuCybernetic/CyberTyanBot | 3e6b7a340b3b2e7ba01a780a97ad42117a38b677 | b2eee274d20833073cceb9bff31c713b2116ffd2 | refs/heads/master | 2022-04-06T04:10:50.474026 | 2020-02-02T07:50:53 | 2020-02-02T07:50:53 | 236,075,801 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from discord.ext import commands
import discord
class TwitCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_message(self, message):
if message.content.startswith('https://twitter.com/'):
await message.add_reaction('<:like:... | [
"noreply@github.com"
] | noreply@github.com |
4fc6e71150033e7e6982368eb672194ded2582d3 | 64cdb9e8fdcde8a71a16ce17cd822441d9533936 | /_programmers/불량사용자.py | ef6e00fbff213c4501137c5169fd2ee1345645d2 | [] | no_license | heecheol1508/algorithm-problem | fa42769f0f2f2300e4e463c5731e0246d7b7643c | 6849b355e15f8a538c9a071b0783d1789316d29d | refs/heads/main | 2023-07-20T23:46:07.037975 | 2021-08-31T12:47:33 | 2021-08-31T12:47:33 | 302,830,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | import re
def solution(user_id, banned_id):
user_number = {}
for i in range(len(user_id)):
user_number[user_id[i]] = str(i)
banned_list = ['' for _ in range(len(banned_id))]
for i in range(len(banned_id)):
ban = banned_id[i].replace('*', '.')
pat = re.compile(ban)
for... | [
"52685275+heecheol1508@users.noreply.github.com"
] | 52685275+heecheol1508@users.noreply.github.com |
a4aaf49f16be1e0de36211c0a275da59240fabeb | 6096e044b5ca95591de83695a4325d046597b713 | /Final_code/read_lidar_lite.py | 26ec4fab1b57ed7a2ca039f067d1c9a7353f02a5 | [] | no_license | flossielau/ARoD | b9fd9f876533836935384ceb9e7cace675671400 | 0afc2f519a668a2c5ec3333a1acdad8d2449f22d | refs/heads/main | 2023-07-16T03:41:59.319177 | 2021-09-04T07:27:29 | 2021-09-04T07:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | import serial, time
arduino = serial.Serial('/dev/ttyACM0', 115200, timeout=1)
arduino.flush()
def lidar_lite():
while True:
distance = arduino.readline().decode('utf-8').rstrip()
#print(distance)
with open("/home/pi/Desktop/lidar_lite_info.txt", "w") as output:
output.write(d... | [
"noreply@github.com"
] | noreply@github.com |
19a5eb94d0a3c8ccb52b085d6825e08f5a8062ca | 51f2492a5c207e3664de8f6b2d54bb93e313ca63 | /atcoder/soundhound2018-summer-qual/c.py | 93091c2550ea9792540a7ddf7fe97eb7d9c2060f | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abeaumont/competitive-programming | 23c5aabd587d7bb15a61efd3428838cb934233dd | a24c9b89941a59d344b51dc1010de66522b1a0dd | refs/heads/master | 2023-09-01T09:50:58.267361 | 2023-07-31T18:00:10 | 2023-07-31T18:00:10 | 117,589,708 | 618 | 262 | WTFPL | 2023-07-12T17:36:20 | 2018-01-15T20:00:56 | C++ | UTF-8 | Python | false | false | 296 | py | #!/usr/bin/env python3
# https://soundhound2018-summer-qual.contest.atcoder.jp/tasks/soundhound2018_summer_qual_c
n, m, d = map(int, input().split())
if d == 0: print('{:.10f}'.format((m - 1) / n))
else:
t = n * (n - 1) // 2
print('{:.10f}'.format((m - 1) * (n - 1) * (n - d) / (t * n)))
| [
"alfredo.beaumont@gmail.com"
] | alfredo.beaumont@gmail.com |
922425380433ba1c7dffa8e22f154dd349c86484 | 0ffc74454f804f8b317dea202961c2bef5193085 | /contrib/seeds/makeseeds.py | a6c40bae8266b05a8ad7834632aa3d92f774a0a2 | [
"MIT"
] | permissive | cryptobot123/learnium | 1bc1b2e69215dab59ed9fee63a8bd9da2ed06121 | 2ce4867c5b80acd4fe1be9cd29b9cddfab9dea0a | refs/heads/main | 2023-01-03T19:50:44.217685 | 2020-10-30T21:08:32 | 2020-10-30T21:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,518 | py | #!/usr/bin/env python3
# Copyright (c) 2013-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 615801
#... | [
"72593731+learniumcoin@users.noreply.github.com"
] | 72593731+learniumcoin@users.noreply.github.com |
187f7fe3a660bd7d1b2b24c4caec7670cda6b6d0 | c4adf55f32a885ca73af9cc37a5276cd86f637ac | /gcj2010QRA.py | de09181308bacfae3c0d6115d3a2e7dfcf45837f | [] | no_license | jasy/gcj | 6f2c6a3df1535737ce0bea0937ba56de3a5500c9 | 0fa244f6d28f3486abd4cdc8e44fd4efc841dbca | refs/heads/master | 2021-01-19T02:01:44.797406 | 2020-04-12T05:54:23 | 2020-04-12T05:54:23 | 3,659,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/env python
import sys
def solve():
N,K = map(int,sys.stdin.readline().split())
b = (1<<N)-1
return "ON" if (K&b)==b else "OFF"
for x in range(int(sys.stdin.readline())):
print("Case #"+str(x+1)+": "+str(solve()))
| [
"st@step.skr.jp"
] | st@step.skr.jp |
7eb6478f752ca6bb7866a7e1f80dbd03688794f0 | e01389a37561a0eff13eaab40e12acea6935fe32 | /app/main.py | 46702cb928707337e19f711c90360a3715c2f2d9 | [] | no_license | fabianbrash/py-fastapi-01 | 7f777ea29f72e7b6803c87bf750fabc21153e2d7 | 3c6f0cf10de8505d408b759aa216f13640d9e6f4 | refs/heads/main | 2023-03-14T22:19:23.589554 | 2021-03-25T17:00:45 | 2021-03-25T17:00:45 | 351,512,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from fastapi import FastAPI
from typing import Optional
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
origins = [
"http://localhost",
"https://localhost",
"http://localhost:3000",
"https://localhost:3000"
]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
al... | [
"fabianbrash@gmail.com"
] | fabianbrash@gmail.com |
950d053477144b65b625fcd8933469df6ad5558c | 80a0f0352ce0938fd34f697d7af65ad6305ff796 | /chapter2 variables and datatypes/05pr01add.py | 16767d190cf0a392dac0f783d3c225e0528a5196 | [] | no_license | ramyashah27/chapter-2-and-3-strings-and-variables | 76975d00dfe7b5d9a577b74caef96b27c00b26ef | e1b772672d6a575c7a18719a1b08939debe4c7f1 | refs/heads/main | 2023-02-10T19:23:37.863244 | 2021-01-04T16:05:01 | 2021-01-04T16:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | # a=34
# b=45
# print('the sum of two integer is' , a+b)
# c=4000
# d=5
# print("the division of 2 numbers is", c/d)l
a=45
b=50
a>b | [
"noreply@github.com"
] | noreply@github.com |
4464ee352e6953270b9b98f495b875594be09a66 | 5a81a8e9710298e4639b0f3fd9e22d9bb9d35560 | /Servo_Driver/__init__.py | 6393a3de99093c117c66de3fe708a246ea4a51e0 | [] | no_license | Limbotics/linux_dev | debf5b01eb1b5041b83987fb0fd1d0aac395a8ab | 2879c9a361bf0f05cb90e76d736a479196e98130 | refs/heads/main | 2023-08-05T07:22:47.543617 | 2021-09-03T03:50:41 | 2021-09-03T03:50:41 | 366,222,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | # __init__.py
#from .servo import *
| [
"jeredtbell@gmail.com"
] | jeredtbell@gmail.com |
60a2a263c9e08bdab0158b8361014feb52d55f62 | 816226d25e4a70fd29c7761f87c11a2d748e5a3f | /L7_Stacks and Queues/7.2_Fish.py | 4090247ff189f1b667f611c34350766a3e234730 | [] | no_license | yuelan313/Codility-Lessons-By-Python3 | 6e1595af58c3af2c9cb638aefbfffb4c2f916714 | ccd0aae6af0fd9d68f080c468cad207f34c36b12 | refs/heads/master | 2023-03-16T13:29:22.270786 | 2019-03-25T05:56:25 | 2019-03-25T05:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # -*- coding:utf-8 -*-
# &Author AnFany
# Lesson 7:Stacks and Queues
# P 7.2 Fish
def solution(A, B):
"""
相遇的鱼大鱼吃小鱼
:param A: A表示鱼的大小
:param B: 表示鱼游的方向
:return: 活鱼的数目
"""
alive_fish = 0
fish_down = [] # 存储向下游的鱼
for index, value in enumerate(B):
if value ==... | [
"noreply@github.com"
] | noreply@github.com |
0a53ab68989d286f013da079bf2fa922a9c6acde | 8dd000d05a29cece1460fd48c4f6b12c56281ca1 | /ugly/default_settings.py | e3dea2571f19db51dc2da821e5e99b015d7ad1a8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | imclab/ugly | 3e2717982b6e999c99d3e884d7f4d48d08fc7609 | bc09834849184552619ee926d7563ed37630accb | refs/heads/master | 2021-01-15T19:35:38.835572 | 2014-01-08T20:24:56 | 2014-01-08T20:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Flask stuff.
DEBUG = False
TESTING = False
SECRET_KEY = "development key"
# App stuff.
ADMIN_EMAIL = "Ugly Reader <ugly@dfm.io>"
BASE_MAILBOX = "[Ugly Reader]"
AES_KEY = b"test AES key... change this in production"
MAX_FEEDS = 100
# Database stuff.
SQLALCHEMY_DATABASE_URI = "postgresql://localhost/ugly"
# Google O... | [
"danfm@nyu.edu"
] | danfm@nyu.edu |
1856c7c864ac34d62c6c9bc7de93fbbd76a236f0 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2009.1/x11/terminal/xterm/actions.py | 0bc996b345bff3ffad1468eeeffc1e93bc0c3d83 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actions... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
8e4d97f37da8f8810b76dc4891344d88eb65c183 | 292f0c2a5985fb1bcdcfc9ac3a4acbfc9b528643 | /MLB the Show 2019 V2/classesv2.py | dc9d2b20ccd5a70b7a6dbc0d98489c3c19695675 | [] | no_license | AtBatMac/19_The_Show | 626c917b653d9840df757a650df42b26fc8a3017 | d7b332f06b1adce363880581178a75fbef7e1cfa | refs/heads/master | 2020-07-10T08:13:42.084410 | 2019-08-24T21:52:58 | 2019-08-24T21:52:58 | 204,215,166 | 0 | 0 | null | 2019-08-24T21:48:15 | 2019-08-24T21:34:19 | null | UTF-8 | Python | false | false | 12,108 | py | import random
import pandas as pd
import datetime as dt
class GlobalSwitch:
DEBUG = False
class Utilities:
def Pause():
if GlobalSwitch.DEBUG == True:
input('Press any key to continue...')
class Base:
def __init__(self, name):
self.Name = name
self... | [
"noreply@github.com"
] | noreply@github.com |
5a437fe980aa92a4f6d79f902a3eb02ad1419f90 | 28261a54a5e1feab2c7f739f3f0d82f9fe71f662 | /Problem 4/Support Vector Machines.py | ec277648ab676ff437b741417a5c685c7a0225df | [] | no_license | Wang-Yujue/Statistical-Machine-Learning | bd324a8c004d23f32af7912da57b4e8168b7cd06 | 5fa29e2ac918813641cf35bb82e3d52962d6b3b6 | refs/heads/master | 2021-04-27T07:47:28.426861 | 2018-02-23T18:41:59 | 2018-02-23T18:41:59 | 122,639,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn import svm
# read data
def read_dataset(path):
data = []
txt = open(path)
for line in txt:
a,b,c = map(float,line.split())
data.append([a,b,c])
return np.asarray(data)
def gaussianKernel(x1, x2, sigma):
x1 = x1[:]
... | [
"noreply@github.com"
] | noreply@github.com |
e6df2385a6326287632d959c1ff2c0c2e9cd841a | 919452e2272a7b3a0a8483c69bcd39d9e4c2c736 | /excepti.py | 5f190dce616fbb301f05ae73a045e21bb0ef7ac1 | [] | no_license | preetam-patel/flask_programs | 0c1fd82a30e896edbd5411b3e1a3f154b5974066 | 15a5220a9a009ce3f4d6662ea3452686dfe94ad3 | refs/heads/master | 2023-04-20T13:11:53.598997 | 2021-05-24T11:18:27 | 2021-05-24T11:18:27 | 351,060,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | class Error(Exception):
pass
class Valuetosmall(Error):
pass
class Valuetolarge(Error):
pass
class Zeronotdivisable(Error):
pass
| [
"preetampatel22699@gmail.com"
] | preetampatel22699@gmail.com |
41d3a3bb2bac87e3c68884b00f9224dfa4e75290 | 594055d2cf0ad9dbe9e06a219a7ddb07c4410459 | /Amazon/LinkedList/138-Copy_List_with_Random_Pointer.py | 162ab64857e6668274b22a682e3a4ee18489becd | [] | no_license | ankurgokhale05/LeetCode | 975ed3a496e039607773b5e94f1ff517fc01644d | 0f3aacf35a28e8b85db1be0a7f945f2d7ece0bfc | refs/heads/master | 2023-07-04T01:46:12.035053 | 2021-08-15T02:14:15 | 2021-08-15T02:14:15 | 275,960,404 | 0 | 2 | null | 2020-10-01T01:49:48 | 2020-06-30T00:55:13 | Python | UTF-8 | Python | false | false | 1,356 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, next, random):
self.val = val
self.next = next
self.random = random
"""
class Solution(object):
def copyRandomList(self, head):
dic, prev, node = {}, None, head
while node:
if node not in dic:
... | [
"ankurgokhale@Ankurs-MBP.home"
] | ankurgokhale@Ankurs-MBP.home |
9dbc7ad450e959dc92b891102266be38ccadcf7b | 8b6885ab324047048b4745a76fc8b9058e3e60ef | /mypkg/transform/audio.py | 4f526cd13fe7454a038883aa3ce442908296e8e7 | [] | no_license | danielgg-coding/simple-python-package-demo | 25973eee019433717988036f61ca18ecbda4843f | a6b6018296361dc07d5f171264e3eaf8b6d106ab | refs/heads/master | 2022-04-09T01:15:33.357824 | 2020-03-14T11:17:15 | 2020-03-14T11:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | def transform():
return "squeeze" | [
"b03705013@ntu.edu.tw"
] | b03705013@ntu.edu.tw |
8f55e7fc73404cd650b20ca669fd313db96f1b3c | 4c67112b8e4c1ed7fd2f636a0dcee4972eeb79e6 | /deployment/GPT2/encoder.py | f6508e866e80f4de9aaa34474e404aae72cbb3bd | [
"MIT"
] | permissive | t04glovern/gpt2-k8s-cloud-run | 700cc8da97e8b42ca39fb0aed9a26f7edebb090b | 687a20f76c3e53f917ea9553e569be52deb323d6 | refs/heads/master | 2023-06-04T14:07:50.532901 | 2022-09-03T12:58:48 | 2022-09-03T12:58:48 | 180,802,919 | 8 | 1 | MIT | 2023-05-22T21:56:35 | 2019-04-11T13:53:44 | Python | UTF-8 | Python | false | false | 4,156 | py | """Byte pair encoding utilities"""
import os
import json
import regex as re
from functools import lru_cache
@lru_cache()
def bytes_to_unicode():
"""
Returns list of utf-8 byte and a corresponding list of unicode strings.
The reversible bpe codes work on unicode strings.
This means you need a large # o... | [
"nathan@glovers.id.au"
] | nathan@glovers.id.au |
a376ce5d3b46de8bb03f21b1ea3b28ec2fbc2536 | 17551b554f801789849878484778ec95b3aaf838 | /softlearning/environments/gym/wrappers/__init__.py | 4a31b62c5d1800a565b4caefc2706dfedca80a34 | [
"MIT"
] | permissive | anyboby/ConstrainedMBPO | 679894c0c647d0e8cd7178571e602509d3d8d262 | 036f4ffefc464e676a287c35c92cc5c0b8925fcf | refs/heads/master | 2022-12-14T05:14:57.913927 | 2021-02-28T21:20:38 | 2021-02-28T21:20:38 | 237,805,512 | 5 | 2 | MIT | 2022-12-08T03:46:46 | 2020-02-02T17:08:07 | Python | UTF-8 | Python | false | false | 53 | py | from .normalize_action import NormalizeActionWrapper
| [
"janner@berkeley.edu"
] | janner@berkeley.edu |
7c8e6b5117040ebbb9607cd4947cdba6e45e554d | 25b5f5a6c9c95ef9a1264eef12384003f037cb58 | /solve_captchas.py | 862ca107b30f7b716ad90a58011ea7509c054c67 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | RobTwoThree/Monocle-Level30 | 7dbe76ead87e489faff6ef68d267fbc3610d953e | 94ed6e121ad41b437083bf207954c34ff8f312f9 | refs/heads/master | 2022-11-22T06:17:51.203216 | 2017-12-07T22:11:52 | 2017-12-07T22:11:52 | 113,503,725 | 1 | 1 | MIT | 2020-07-22T03:56:03 | 2017-12-07T22:12:23 | Python | UTF-8 | Python | false | false | 7,691 | py | #!/usr/bin/env python3
from asyncio import get_event_loop, sleep
from multiprocessing.managers import BaseManager
from time import time
from queue import Empty, Full
from aiopogo import PGoApi, close_sessions, activate_hash_server, exceptions as ex
from aiopogo.auth_ptc import AuthPtc
from selenium import webdriver
f... | [
"rsayson31@gmail.com"
] | rsayson31@gmail.com |
dfea14f587580d86c76f3dbc73c65587e1154af8 | faaf12ab18978082233c09628b815a69e73868e4 | /leetcode/algorithms/easy/keep_multiplying_found_values_by_two.py | 9d03b8b29a25813877514664235bcbeb70bc846b | [
"WTFPL"
] | permissive | ferhatelmas/algo | 6826bcf0be782cb102c1ee20dce8d4345e1fd6d2 | 7b867f6d2c8a9fb896f464168b50dfc115617e56 | refs/heads/master | 2023-08-18T19:59:58.435696 | 2023-08-14T10:16:00 | 2023-08-14T10:16:00 | 3,813,734 | 27 | 16 | WTFPL | 2020-10-25T23:00:16 | 2012-03-23T23:43:31 | Java | UTF-8 | Python | false | false | 212 | py | from typing import List
class Solution:
def findFinalValue(self, nums: List[int], original: int) -> int:
s = set(nums)
o = original
while o in s:
o *= 2
return o
| [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
0c3685cd9f60cf9fab17887921f148cea4932610 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/FortCalendarWindow.py | 96f439b6351f27ea524c3190daac96e5559db5f9 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 11,877 | py | # 2017.05.04 15:23:16 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/FortCalendarWindow.py
import BigWorld
from collections import defaultdict
from helpers import time_utils
from helpers.i18n import makeString as _ms
from gui import makeHtmlString
from gui.... | [
"info@webium.sk"
] | info@webium.sk |
2000039431e4cd0505c1aa8c3ae0e29f734712d9 | 195b4a1d9c5aa632f46c993d1ec4db45f6130b91 | /question-094.py | a757ae3bdcec335ade4ff81ab63597c1988756dd | [] | no_license | superzarin/lessons-1-2-3-4 | 54e5594a120577e410cebbccc6f9397bc78b5a72 | 64d7a27d8c1f2ea42f8a63c6fc036ba80ddb0d01 | refs/heads/master | 2022-11-07T22:48:35.906934 | 2020-06-26T04:37:35 | 2020-06-26T04:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from array import *
givenArray = array('i', [7, 3, 12, 1, 8])
while True:
selectedValue = int(input('Select one of a number from the array: '))
if(selectedValue in givenArray):
print(givenArray.index(selectedValue))
break
else:
print("Try again") | [
"exemptionhunters@gmail.com"
] | exemptionhunters@gmail.com |
408cbad0d506e1bd58f09db1ea6c6e52da7dad9b | 6d9af7eade7ddc239ee6839a3766cb40c27f619d | /src/SimpleNN/utils/__init__.py | 87538fa722eaeb1a1e91e46f7a4876a7b07fd807 | [] | no_license | lmj1029123/SingleNN | 24dfe40c8d920e2a777742c885907c27484976f4 | 701752c3378e537387fa0dc2b410aec44577b7a3 | refs/heads/master | 2021-11-27T04:42:46.229290 | 2021-11-09T00:40:10 | 2021-11-09T00:40:10 | 246,651,678 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 290 | py |
def _gen_2Darray_for_ffi(arr, ffi, cdata="double"):
# Function to generate 2D pointer for cffi
shape = arr.shape
arr_p = ffi.new(cdata + " *[%d]" % shape[0])
for i in range(shape[0]):
arr_p[i] = ffi.cast(cdata + " *", arr[i].ctypes.data)
return arr_p
| [
"mingjie1@andrew.cmu.edu"
] | mingjie1@andrew.cmu.edu |
f700a0aaf43c7cb416ac0aacb1ffd9172706fe7c | 822f463760c085503bb5bb77b467fea7c050bd7a | /main.py | 58358fc68ec2af633f388f484b2a38db9e29ac05 | [] | no_license | andreYoo/AutoCrwaler_fixed | c3969aa2805d0adcfabf2026fec4b692d8339714 | 9317c69ef7132afa7fd023b8ab2c2660971384d5 | refs/heads/master | 2021-01-02T15:37:28.648044 | 2020-02-11T05:45:11 | 2020-02-11T05:45:11 | 239,685,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,392 | py | """
Copyright 2018 YoongiKim
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... | [
"jm.andrew.yu@gmail.com"
] | jm.andrew.yu@gmail.com |
174901bbd58c43f7d01e0a887c3716d5e02f9196 | 1df7840dd8bbf64c44dee6c7040046913deb22f3 | /Video_42_GeneratingHTMLTestRunner_Reports.py | 3ef167432d5cf07baacb364563f230ea386efd03 | [] | no_license | manojgupta3051994/Selenium-Python | 68c39a3a0c7a39fc0e039183c22c6a4c71fee8b8 | 4391b506fda8542106c596a5735a2989a5c3862f | refs/heads/main | 2023-01-09T05:32:46.520988 | 2020-11-11T07:02:35 | 2020-11-11T07:02:35 | 306,115,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | from selenium import webdriver
import unittest
import HtmlTestRunner
class OrangeHrmTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.driver = webdriver.Chrome(executable_path=r"C:\Users\Manoj\Desktop\Python - Selenium Practice\Drivers\chromedriver.exe")
cls.driver.ma... | [
"noreply@github.com"
] | noreply@github.com |
1ef4318bf988f6d48cc10b92c99d71e098603a54 | 027c5f1cdbc292e24695edc69421e65cb68608da | /speech_to_text.py | b139b58ad7dbe84114cbf0557a1dc25e46c68f54 | [] | no_license | kmitd/secklow-sounds-project | e3713656acea33097dacf04ef01dac27d740fff6 | 56559ae1420457edcd665a809cee845a83de9c3b | refs/heads/master | 2021-01-21T08:32:44.215386 | 2016-09-15T16:27:45 | 2016-09-15T16:27:45 | 68,304,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,140 | py | """Google Cloud Speech API sample application using the REST API for batch
processing."""
import argparse
import base64
import json
import io,os
from googleapiclient import discovery
import httplib2
from oauth2client.client import GoogleCredentials
from read_phrases import wards
import time
import logging
DISCOVERY_... | [
"ilaria.tiddi@open.ac.uk"
] | ilaria.tiddi@open.ac.uk |
f9a3bff56e5ed0ba4f874a6571ecf9e908e79f95 | de1f9d660cfb738afdb66e4a2d63a4577c07d9c6 | /xcube/webapi/defaults.py | e2f0580e213aeaa838812aab943976b33b2c918e | [
"MIT"
] | permissive | rabaneda/xcube | db47eb416db85df891a924063482a7943cae9d4f | 0d38ca513987184dbc4a37da1616e4076964d0f1 | refs/heads/master | 2020-11-24T00:11:17.107630 | 2020-02-11T10:11:34 | 2020-02-11T10:11:34 | 227,877,138 | 0 | 0 | MIT | 2019-12-13T16:14:51 | 2019-12-13T16:14:50 | null | UTF-8 | Python | false | false | 1,831 | py | # The MIT License (MIT)
# Copyright (c) 2019 by the xcube development team and contributors
#
# 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... | [
"norman.fomferra@gmail.com"
] | norman.fomferra@gmail.com |
a6d5bafda9ea9794e31e91f34db93a74533ee4b1 | c722d4741988066a244af5df44e288e51bb8a342 | /analysis.py | 029ba1cd63cf51c577b7896894806168fd5264c2 | [] | no_license | laranea/KE-Census | 6ae67ccd2d32ab6095a83005712ea12f92dfe407 | cd8882f07effc5b464ba7948bb909673e2c87bb2 | refs/heads/master | 2022-04-09T13:32:29.592157 | 2020-03-15T11:51:04 | 2020-03-15T11:51:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | import pandas as pd
import streamlit as st
@st.cache()
def population_voter_analysis():
df = pd.read_csv('county_list.csv').set_index('COUNTY').drop(['code', 'MALE', 'FEMALE', 'INTERSEX'], axis=1)
percentage_of_voters = df['VOTERS'] / df["TOTAL"] * 100
df.insert(0, "% Voters", percentage_of_voters)
h... | [
"pythonantole@gmail.com"
] | pythonantole@gmail.com |
648d19e1b5a5954f3467144178d13589f2879178 | 72583c48f2a9aae5a78989acc6634f03d2bfd897 | /core/stats/uptime.py | bdaca056fa9e245f676f18d4aeb86dd411317267 | [
"MIT"
] | permissive | sustainable-computing/ODToolkit | 4b914fb1722641146f1bd341fe6f5c82cff5bf0a | 9328b930f7e522a89d82011e8ab91286a20bf66f | refs/heads/master | 2023-05-06T05:39:00.514901 | 2021-05-17T20:55:48 | 2021-05-17T20:55:48 | 162,171,971 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # Parameters:
# dataset: core.data.dataset.Dataset()
# threshold: maximum different second between two consecutive value
# gaps: All gaps detected by core.stats.gap_detect
# Return:
# {room_name: sensors} where sensors = {sensor_name: (uptime in string, uptime in seconds, uptime ratio)}
def uptime(dat... | [
"skyu0221@gmail.com"
] | skyu0221@gmail.com |
f645a1274b73ae88aa32ba6e11a861d4572d1d9e | 1d0a223b743b005cd2ecd904337178e322e63534 | /Project 1/ship.py | dc9ece1ccc021393510afbd14d201033e54678b0 | [] | no_license | Stefanroets180/all-my-Python-work | 285607ce1ef50aac4897e0721ead4daca01fa6e0 | d7937b51a309ebd051bef90e78154447b6e9a8ea | refs/heads/main | 2023-03-27T10:15:54.793489 | 2021-03-18T12:26:20 | 2021-03-18T12:26:20 | 349,063,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | import pygame
from pygame.sprite import Sprite
class Ship(Sprite):
def __init__(self, ai_settings, screen):
"""Initialise the ship and set it's initial position"""
super().__init__()
self.screen = screen
self.ai_settings = ai_settings
self.speed_up_scale = 1.1
# Lo... | [
"61413955+Stefanroets180@users.noreply.github.com"
] | 61413955+Stefanroets180@users.noreply.github.com |
fac948d696d4a82b62dca8ce6557a6b4e27a4e6e | 0ecb1763b4cab08a1fb80234639e46afc8921e2f | /further/routing_1.py | 882cf1231be2c220621e4dd32a8a4aea3cdd9566 | [] | no_license | mach8686devops/pyside6-demo | 4eed3713288ec21b0ec4b8561290f87925693b89 | 848302ff9c1536034cf5f225fa953944d011c2a4 | refs/heads/main | 2023-05-05T11:12:20.711846 | 2021-05-28T13:44:41 | 2021-05-28T13:44:41 | 371,714,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | import sys
from PySide6.QtCore import QSize, Qt
from PySide6.QtWidgets import QApplication, QLabel, QMainWindow
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.label = QLabel("Click in this window")
self.status = self.statusBar()
self.setFixed... | [
"zhangjohn202@gmail.com"
] | zhangjohn202@gmail.com |
b30480679c1e40bda865c6b29f644fd3bf852376 | 097b5839f33bfd7826ad51731b93349f5cb24056 | /venv/Lib/site-packages/aliyun_python_sdk_core_v3-2.11.2-py3.6.egg/aliyunsdkcore/client.py | a42cdb2f19e4e28d0e67c0023c005c52545c0c34 | [] | no_license | P79N6A/xfz | eb2099051e13e2ea4f2a4862f77555630e4fc449 | 066607292c4e4107ae6425e1a889f014f0e731bc | refs/heads/master | 2021-07-22T10:57:00.551292 | 2018-12-28T10:30:31 | 2018-12-28T10:30:31 | 163,398,844 | 2 | 2 | null | 2020-05-26T03:39:11 | 2018-12-28T10:39:52 | Python | UTF-8 | Python | false | false | 10,306 | 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... | [
"281528675@qq.com"
] | 281528675@qq.com |
5a43f55a19e3c63e780c242dc3f5a1013c94a070 | a951ccc03e99ae61178ab85f6db0fd5968709280 | /prefix_sums/genomic_range.py | 04f8f6028e9ab8f7e8919e44da513188dc5cd481 | [] | no_license | mmanishh/codilitysolution | 37142e66c25f786ef7bedaebbe0b164e50ff7804 | d3487be50e52861cc59d3651e996d4d23cb32613 | refs/heads/master | 2021-07-07T12:58:07.651699 | 2020-08-07T10:00:21 | 2020-08-07T10:00:21 | 163,286,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py |
def genomic_range(S,P,Q):
S = list(S)
new_s = []
result = []
impact = {'A':1,'C':2,'G':3,'T':4}
for s in S:
new_s.append(impact[s])
for i in range(len(P)):
l ,r = P[i] , Q[i]
sliced = new_s[l:r+1]
result.append(min(sliced))
return result
if __na... | [
"dfrozenthrone@gmail.com"
] | dfrozenthrone@gmail.com |
578defba3d381285781d5f20e54fc89d5560e111 | 6787ba6d82efe5152726799f073b291bf25d7846 | /12 Ticketing Teatrale.py | 90303f71401fd0ae5dbc0fe94887ef96ebbcc10c | [] | no_license | stefanin/Python | 0cfc4b484ac21bf3c2ddc4841e0a6070a422ded3 | b10772fdece4d26d10c1a9fd804e3d56bcf3a98a | refs/heads/master | 2021-06-14T10:01:01.076015 | 2021-01-18T20:59:57 | 2021-01-18T20:59:57 | 73,856,077 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | '''
Sistema di ticketing
diversi Spettacoli
min 3 max 5 Ticket
c'è un Bottegnino
la Mascherina controlla l'acceso e da il via allo spettacolo
simulare nel Main le istanze degli oggetti in loco con acquisti di diversi spettacoli
'''
#Ticket
class Ticket:
stato="Valido"
NomeSpettacolo=""
def __init__(self,... | [
"stefano.cornelli@gmail.com"
] | stefano.cornelli@gmail.com |
2b74c60edf0de797825dd1369704f2e7b7152f70 | 12e93d6308a5b90e5ef3d23bf85dcc5e05a5f160 | /Automatic summarization/keyword2_summary.py | 6075d37ef52dc94fcbd20ab766e6a52ca58f1733 | [] | no_license | 787264137/ks | b7795df1e6d85a0bc68318c112cab151032a2ed2 | 0a8613fdc220eeaa8c1bca2bf029b33971acceb9 | refs/heads/master | 2020-03-25T02:05:09.710199 | 2018-08-09T09:24:49 | 2018-08-09T09:24:49 | 143,273,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | import jieba
from heapq import nlargest
from collections import defaultdict
import re
from jieba.analyse import textrank
def is_chinese(uchar):
if uchar >= u'\u4e00' and uchar <= u'\u9fa5':
return True
else:
return False
def get_sentences(doc):
line_break = re.compile('[\r... | [
"787264137@qq.com"
] | 787264137@qq.com |
45c06cf8191f1ab31422d1f210f7aeab0d004174 | 30adaebf1b0c1aa9fabc071de3e0ddc8904d6def | /curdpro/curdapp/models.py | ca76cf2baa1bebef37d63a7c4497b8492cb725ee | [] | no_license | ashvani98/RemaoteRepo | 74920d832a4dda1754ded60e8052732962208476 | b60a99b12146a67563bc3a23cfadf03eafa8b187 | refs/heads/master | 2020-07-13T18:54:15.941855 | 2019-08-29T10:55:42 | 2019-08-29T10:55:42 | 205,134,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.db import models
class ProductData(models.Model):
product_id=models.IntegerField()
product_name=models.CharField(max_length=100)
product_cost=models.IntegerField()
product_color=models.CharField(max_length=100)
product_class=models.CharField(max_length=100)
| [
"ashvani151998@gmail.com"
] | ashvani151998@gmail.com |
c8564ccfba2c2734dff0999edd6fdfc7baedc87d | 7b4393b00a8e603c1ea6d08fcb13501ba4825def | /mrjob_example.py | fd6bf872fecbe5b24af1e6b66a857b72f3fa719e | [] | no_license | isash30/Play-with-python | 9f634d6f1a7eac793c2bcfe9f03264ed732d0fa5 | a37cfbaa310342296a6b17c1130741641069de43 | refs/heads/master | 2021-05-27T18:00:06.989422 | 2014-05-04T04:22:20 | 2014-05-04T04:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,437 | py | #!/usr/bin/python3
"""Counts the frequencies of words in a document, and doubles the count just
for kicks. Works with Python 2.7 and Python 3.2+.
Usage:
python -m mrjob.launch wfc.py -r local <input files>
"""
from __future__ import print_function
import argparse
import itertools
import json
import re
import sys... | [
"sas.2106@gmail.com"
] | sas.2106@gmail.com |
84579276ee1fb2606f7bcec64999a267eb075557 | 5802a63c9144cc4d6177de49a2187156899add4e | /count_coin.py | 414378ffa8e83e7ececc30d3668de9ce06c7d019 | [
"MIT"
] | permissive | kyh980909/keras-yolo4 | b82cb053f1f11092273db633b73e82d2ddcd7acd | da9fb99e5ef10ffd6301dd16f35cb888ee121d15 | refs/heads/master | 2022-12-29T16:31:23.428770 | 2020-10-15T10:08:03 | 2020-10-15T10:08:03 | 291,690,546 | 2 | 0 | MIT | 2020-08-31T10:57:49 | 2020-08-31T10:57:48 | null | UTF-8 | Python | false | false | 6,940 | py | import os
import colorsys
import collections
import io
import numpy as np
from keras import backend as K
from keras.models import load_model
from keras.layers import Input
from yolo4.model import yolo_eval, yolo4_body
from yolo4.utils import letterbox_image
from PIL import Image, ImageFont, ImageDraw
from timeit imp... | [
"kyh980909@gmail.com"
] | kyh980909@gmail.com |
819b55755f8fcd9e90785574f832d92631a04d84 | 3cc431d1ac836bfa0363d51a1c1198dec3e82b5c | /jnt/matching/classifier.py | 8561aa10c9426594cea9767d82aa71e3b5746435 | [
"Apache-2.0"
] | permissive | tudarmstadt-lt/vec2synset | 6a1a19e39210b96799fee8f36b859c65c6d0f967 | ea99ea80d258127a0cd6c7688d6b277eed22104d | refs/heads/master | 2021-01-18T02:00:51.004042 | 2016-05-26T22:05:00 | 2016-05-26T22:05:00 | 44,816,882 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,174 | py | import xml.etree.ElementTree as et
from jnt.common import load_voc
from jnt.wn import sense2offset
import codecs
from pandas import read_csv, merge, Series
import argparse
from os.path import splitext
from os.path import join
from jnt.common import exists
from subprocess import Popen, PIPE
import os
from os.path import... | [
"panchenko.alexander@gmail.com"
] | panchenko.alexander@gmail.com |
b53210f45388c5820faf0c133ad6ef73039b955b | 9a034b12c845d01f36aff2e5fdbf8486a9e8a642 | /faketrudy/trudy_api/migrations/0005_child_tweets.py | 58e5ce1a352b4425e107065b667d213e62e02fbe | [] | no_license | piyush6191996/Django-Rest-Framework | 2d1cd89de700e7aa68f93f9104418c05c70e800a | 3950a72bed52fd4bcbec3de439fe9f1130df10f9 | refs/heads/master | 2020-03-15T06:00:31.362680 | 2018-05-07T19:09:17 | 2018-05-07T19:09:17 | 131,998,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | # Generated by Django 2.0.2 on 2018-04-10 08:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('trud... | [
"you@example.com"
] | you@example.com |
15abe32223879f445b92f406dc47cd0d5b9c1336 | 92ac28cb6c7f152acce172b99fecbfab5f33406f | /setup.py | fac3b612dce2b7c35f1574c0907cf8a37876c7bf | [
"MIT"
] | permissive | UCSC-nanopore-cgl/NaRLE | d208cd0354d30716e72ea1b637ff6a804fc32ef7 | d6676437044966cb1cf91dfa88b83a877f6e17d3 | refs/heads/master | 2020-03-30T17:58:44.652474 | 2019-08-02T17:59:43 | 2019-08-02T17:59:43 | 151,477,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from version import version, required_versions
from setuptools import find_packages, setup
kwargs = dict(
name='toil-narle',
version=version,
description="UCSC CGL Nanopore Toil pipeiline",
author='UCSC Computational Genomics Lab',
author_email='tpesout@ucsc.edu',
url="https://github.com/",
... | [
"tpesout@ucsc.edu"
] | tpesout@ucsc.edu |
d788fe2d0c7ace0bb7b8435095741e0a107647bd | 8d8a354bf5fff4f7b0eca70c23b63dd494a90f74 | /dev/services/wms/ows/wms_cfg.py | 46eb0aa716b4fc1b0a016ab30d4e2ea95516956e | [
"Apache-2.0"
] | permissive | omad/dea-config | 0df4d5a715957f4e6b26a07c77690889904eb5ef | 5767601584a1f2aec1ffea8983c3a226e32013b0 | refs/heads/master | 2020-03-26T12:08:35.979717 | 2018-08-09T01:51:31 | 2018-08-09T01:51:31 | 144,877,682 | 0 | 0 | null | 2018-08-15T16:34:41 | 2018-08-15T16:34:41 | null | UTF-8 | Python | false | false | 60,688 | py | # Static config for the wms metadata.
response_cfg = {
"Access-Control-Allow-Origin": "*", # CORS header
}
service_cfg = {
## Which web service(s) should be supported by this instance
"wcs": False,
"wms": True,
## Required config for WMS and/or WCS
# Service title - appears e.g. in Terria ca... | [
"harshu.rampur@ga.gov.au"
] | harshu.rampur@ga.gov.au |
4242a0c891ffa7bfd2f82e35dca78d0aafa55245 | 0dd17de11c792ff64c4582595cee786b80ab4fcd | /ml/pred.py | 40b00a04eb6aa546ccd9f3c8f52e881f52a613b3 | [
"Apache-2.0"
] | permissive | birenbaruah/FakeBananas | 12861272b6911acc447c28d7ba8cc1f010d9a882 | ac8a95c37f495045f074ae20a768a465bd990da0 | refs/heads/master | 2021-03-02T10:58:57.466215 | 2020-03-08T21:17:43 | 2020-03-08T21:17:43 | 245,863,260 | 0 | 0 | null | 2020-03-08T18:05:35 | 2020-03-08T18:05:34 | null | UTF-8 | Python | false | false | 4,956 | py | # 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, software
# distributed under th... | [
"kastanvday@gmail.com"
] | kastanvday@gmail.com |
e86d1bf7639d80fb97b5fcf5f7062d7aafd28c43 | c0fb3a3cd5a04377c7777c569732d24baed610c5 | /Source/400hzSine.py | f3754344da930c4060d5f5f842d984d7f4568ae5 | [] | no_license | city028/AD9833 | 6391b434fc58a792ea24d41bc8a24f893aac42a8 | 587afabe2467f2292ba2865965e85a5b5ddf18da | refs/heads/master | 2023-03-02T23:47:54.500167 | 2021-02-09T07:58:16 | 2021-02-09T07:58:16 | 299,289,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import spidev
spi=spidev.SpiDev()
spi.open(0,0) #bus 0, device 0
spi.max_speed_hz=500000
def send_data(input):
tx_msb=input>>8
tx_lsb=input & 0xFF
spi.xfer([tx_msb,tx_lsb])
print(input)
send_data(0x0100) # Send a reset
send_data(0x1000) #MSB
send_data(0x4000) #Freq 0 reg for 400hz and 1400hz
send_data(0x0000... | [
"noreply@github.com"
] | noreply@github.com |
bdbeeade7f8afe21aa4b98c1a0ede56b66180ff8 | b751a7bd94a3c834c7385ac02abfc82d24813abb | /tg_bot/ugc/management/commands/bot.py | 5c4014df28cfe79b47d012c7964f4ae743983281 | [] | no_license | Dreik2001/Telegram-bot | 5f7d8ed6976d41e128a4b399d86ab189341e2b4e | 18e14747f3f8e735248d0cfee1e07dc45818a4d8 | refs/heads/master | 2023-07-22T06:16:52.113158 | 2021-08-18T13:54:28 | 2021-08-18T13:54:28 | 341,983,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | from django.core.management.base import BaseCommand
from django.conf import settings
from telegram import Bot
from telegram import Update
from telegram.ext import CallbackContext
from telegram.ext import Filters
from telegram.ext import MessageHandler
from telegram.ext import Updater
from telegram.ext import CommandHan... | [
"59831615+Dreik2001@users.noreply.github.com"
] | 59831615+Dreik2001@users.noreply.github.com |
def6c18b46463b5c3cd481ceefdafb7b8c4e49d6 | 98a936d5372294ed892a9bf9cf98646c72af515c | /usage/lab/explorer_usage.py | fd4a3b0be9636dbe6d5abd61ffe6a45858e3c81c | [
"MIT"
] | permissive | edublancas/pipeline | f6d22ad07b134be98c139d1de6ca7d8321072ba8 | 5bef04d77fdadc1dc4ec22b9b346f0a062cca1ce | refs/heads/master | 2021-05-15T01:09:50.072378 | 2016-12-29T05:45:48 | 2016-12-29T05:45:48 | 59,692,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from pipeline import ExperimentExplorer
# load everything
explorer = ExperimentExplorer()
# just load results from my_experiment_a
explorer = ExperimentExplorer('my_experiment_a')
# load results from my_experiment_a and my_experiment_b
explorer = ExperimentExplorer(['my_experiment_a', 'my_experiment_b'])
# compute ne... | [
"edu.blancas@gmail.com"
] | edu.blancas@gmail.com |
16788fb6c4d87a3d199099337d60a972ac10c1d0 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_1/Python/gvalli/2016-1A-A-lastword.py | becda986965852bb63622f5a8164983cb9663cf1 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | #! /#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
fh = open(sys.argv[1], 'r')
T = int(fh.readline()) # number of test cases
for t in range(T):
S = fh.readline().split()[0] # string of letters
res = ''
oldval = -1
for c in S:
val = ord(c)
if val >= oldval:
res =... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
07103324f226a2fd634420711359e4642804f32a | f5812c5cc411780c98a26179b105d6e35e9e5dbc | /abstract_syntax_tree_implementation/mypy/cases/special/9.py | eb53e97b9ff1130994ad0e866a1e637b6a4a3331 | [] | no_license | simeonbabatunde/python2-interpreter | 157751aa18e5106f0e11b8cbf65fa2202a5c82b9 | 8f70ce8860b55cbd209c7a6f77ccbdb3abf1a5b7 | refs/heads/master | 2020-04-08T02:53:49.120509 | 2019-07-21T22:54:31 | 2019-07-21T22:54:31 | 158,952,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | a=-2
b=3
a**=b+(4/2)-----4+(+4)
print a
x=3+2
z=x**-2
l=x*(z+.5*4)**0.5
l//=a+x*z
d=9
k=4+d
d**=k---10.7*(d//(k-2.3))
k+=-19%2.6-(+d)
a%=b*-d
z/=l**2
print z
x-= a+z-----l*(x**0.9)
| [
"babatunde.simeon@gmail.com"
] | babatunde.simeon@gmail.com |
cdee1160e9d5c6c4b3d2a2c4144253246dc2ff23 | b896be9c0e136ff88a823333f20be150470f9e8d | /Week 6/DatabaseApp.wsgi | 29854fbf69d4a1ebb5a37eea9475946e86028fc2 | [] | no_license | JoonasKulmala/Linux-Server-course | 180e94e5ebb6d09c58fa3c94c3ef6598300a6d20 | 5fcb626def68f59ab66971b18c55bfd6c9be940f | refs/heads/main | 2023-03-18T01:03:14.516917 | 2021-03-16T07:06:38 | 2021-03-16T07:06:38 | 332,947,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | wsgi | def application(env, startResponse):
startResponse("200 OK", [("Content-type", "text/plain")])
return [b"See you at TeroKarvinen.com\n"]from DatabaseApp.py import app as application
| [
"joonas.kulmala@protonmail.com"
] | joonas.kulmala@protonmail.com |
ce4cba3c23046221904b82fbb36ea24824d9a0fa | ddd7553bb79d76c461af7ba51a538803f1faf987 | /google-cloud-media_translation/synth.py | da47dee2a67bc54b775fbeca1bbaa7c54879f51c | [
"Apache-2.0"
] | permissive | Mukesh23singh/google-cloud-ruby | af160add68337f84f9aa65c2eacc2cd16fea359f | b3c69da0654de3a4b87a35c1f010d74c7e26415b | refs/heads/master | 2021-11-05T01:20:53.088104 | 2021-10-21T22:03:22 | 2021-10-21T22:03:22 | 86,056,707 | 1 | 0 | Apache-2.0 | 2021-10-22T01:41:21 | 2017-03-24T10:34:10 | Ruby | UTF-8 | Python | false | false | 1,883 | 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, s... | [
"noreply@github.com"
] | noreply@github.com |
cde74c8664798c8237fa5329c575a705974c6f41 | 34c5a03855ab0aca39acea941be520157f7d0b74 | /lib/ansible/modules/cloud/alicloud/ali_slb_vsg_info.py | 72e35f09e490e814c2cd95556da2fa6bd18f6359 | [
"Apache-2.0"
] | permissive | lixue323/ansible-provider | 1260d1bc17a2fa7bf4c0f387a33dd942059850ed | aae2658532afcbcdf471609fae0e2108fb57af3b | refs/heads/master | 2020-08-11T21:44:37.685788 | 2019-12-13T03:11:23 | 2019-12-13T04:00:45 | 214,633,323 | 0 | 1 | Apache-2.0 | 2019-10-12T11:12:07 | 2019-10-12T11:12:07 | null | UTF-8 | Python | false | false | 6,239 | py | #!/usr/bin/python
# Copyright (c) 2017-present Alibaba Group Holding Limited. He Guimin <heguimin36@163.com.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under t... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
c7eb9200f3645abd0e6d3d2dc3a84af2b4d742d6 | 937c0d7c0ed0224fed676fe630b78d8c6cdc1cfe | /usr/share/dh-python/dhpython/pydist.py | 7a98f0c242099edaae612380e294c69aee2c3624 | [] | no_license | Sayardiss/filesystem-rpi-projet2su | 5ec5aad1704dbe37d18b50ba83ab67a87199af16 | b7b7a1d93dec4f96673ecf11cd290e1db0657d59 | refs/heads/master | 2022-11-25T14:20:35.867296 | 2018-02-07T13:24:37 | 2018-02-07T13:24:37 | 118,009,115 | 2 | 1 | null | 2022-11-21T04:32:49 | 2018-01-18T16:36:17 | Python | UTF-8 | Python | false | false | 13,315 | py | # Copyright © 2010-2013 Piotr Ożarowski <piotr@debian.org>
#
# 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, modif... | [
"sayardiss@gmail.com"
] | sayardiss@gmail.com |
dfd0bf57dfb3c58a777557d9cfebea1f99a530e9 | 03d416a5c425d044db2b308f2af8f91be46bf78e | /src/tests/pipelines/data_science/test_pipeline.py | 0c92effde1409f4880a043de0fa78c4fd4737676 | [] | no_license | stroblme/partiqleDTR | 13a854c9a3577535f3e8311b1b87a539c64b3994 | d87e5652085bcb1848f30aadde848fd530e984c2 | refs/heads/main | 2023-05-12T10:24:36.614872 | 2023-03-24T09:23:21 | 2023-03-24T09:23:21 | 468,662,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | """
This is a boilerplate test file for pipeline 'data_science'
generated using Kedro 0.17.7.
Please add your pipeline tests here.
Kedro recommends using `pytest` framework, more info about it can be found
in the official documentation:
https://docs.pytest.org/en/latest/getting-started.html
"""
| [
"melvin.strobl@kit.edu"
] | melvin.strobl@kit.edu |
1366aa1de8129754f664f4f8f93049b9743d4ae2 | 0242ad0d80fb96664efef2a60d22a7792f0a31b6 | /better_game_images/make_labels.py | 0752dd72fbfa036023a2635ca8a07ececa7d2824 | [] | no_license | jlwatson/game-SET-match | fbc7e6b957bdb3ef8afaa55effb36d522c084bb4 | 61520495359d56a0a227cf456bdc2fc22f104856 | refs/heads/master | 2021-03-27T20:15:24.484540 | 2017-06-10T06:11:56 | 2017-06-10T06:11:56 | 90,781,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from os import walk
for (dirpath, dirnames, filenames) in walk('./'):
for filename in filenames:
if filename.endswith(".JPG"):
first_part = filename.split('.')[0]
f= open(first_part + '_labels.txt',"w+")
| [
"kmblake@stanford.edu"
] | kmblake@stanford.edu |
1d6940ef1927469941d56d4883b2b0b4d2c2da54 | fcf704aaa4ec7827aa826c341c89f7d5fcb9477e | /lang/programming/python/深入理解神经网络:从逻辑回归到CNN/neural_network-neural_network_code-master/neural_network_code/画图脚本/6-15.py | 5f3b4eae99092bd5c51caa217cbf698fd9eb1f23 | [
"MIT"
] | permissive | dlxj/doc | afe470f465617bd239b5b4dc8b546eb82cf115c6 | b4a9ddcc2820fd0e3c9bbd81c26a8fa35f348c23 | refs/heads/master | 2023-08-05T06:20:05.573100 | 2023-08-05T03:48:29 | 2023-08-05T03:48:29 | 203,584,726 | 10 | 0 | null | 2022-12-15T08:14:58 | 2019-08-21T12:58:20 | Jupyter Notebook | UTF-8 | Python | false | false | 1,144 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 9 20:34:43 2018
@author: chaos
"""
from book_draw_util import *
leaky_alpha=0.1
def leaky_relu(x):
if x >= 0:
result = x
else:
result = leaky_alpha * x
return result
def leaky_relu_d(x):
return 1 if x >= 0 else leaky_alpha
fun = ... | [
"123435@qq.com"
] | 123435@qq.com |
e76321e70430d42255d94ec46ee794f6038d4b5d | 99236a47562f2d63afb4559dc5bd44b358ea00aa | /accountDisable_AD.py | 0be6491c574781e7fc7c7bdbc6f4b7fda5521977 | [
"MIT"
] | permissive | strohmy86/Scripts | 3af7bf82abe6396a8d675b34f11a1a6c43083101 | 30f1eb1ff3a70ed16a674a1cf086a403fe0ecd49 | refs/heads/master | 2023-07-12T20:09:07.989313 | 2023-06-26T11:44:10 | 2023-06-26T11:44:10 | 97,958,183 | 1 | 0 | MIT | 2018-03-14T15:20:16 | 2017-07-21T14:45:45 | Python | UTF-8 | Python | false | false | 14,072 | py | #!/usr/bin/env python3
# MIT License
# Copyright (c) 2020 Luke Strohm
# 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,... | [
"strohm.luke@gmail.com"
] | strohm.luke@gmail.com |
a5fe3ba649ac6b4571630741be2938955695f3ce | d9a1364eb329a13baa46256474d50beeb8213803 | /os_moudle/os_moudle.py | 116b11f667167e070c90fcc62c40f43669beea90 | [] | no_license | fengchenzi/python_script | c650adb65583f9daae6fb706b6d7937bc806aa49 | dad02682df0f5d5622958336b1e02441ef579d5d | refs/heads/master | 2021-08-24T07:25:43.952158 | 2017-12-08T16:30:46 | 2017-12-08T16:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | #--**coding:utf-8**--
import os
#获取当前工作目录
path = os.getcwd()
#获取目录下所有文件名
all_text = os.listdir(path)
#检验某路径指向的是否是个文件,可以用于检验某路径是下否存在该文件
file_name = "2.txt"
split_sign = "/"
last_path = path + split_sign + file_name
another_name = "4.txt"
def write_file(filepath,filename,gradle_content):
'''
:param filepat... | [
"hemq@jiedaibao.com"
] | hemq@jiedaibao.com |
16be4290b3fdfd3f6eb08c72a466b2c6d6190bc4 | 81d24bba8ebf75cbc2d3ec0739785f7a878f9943 | /pythonServer/Env/bin/python-config | d90237bfd7a840a1990ee24b2bd6183aa1491ada | [] | no_license | jrunzer26/DS-Project | 7524c5b42440d89a705fbe9f312845c1e97bf01d | 11b9ca96bd8ca42e1f203a73299006555adb1909 | refs/heads/master | 2021-05-01T18:49:22.418868 | 2016-12-02T17:04:24 | 2016-12-02T17:04:24 | 71,805,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | #!/home/jason/git-projects/todoist-python/Env/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 sy... | [
"jason.runzer@uoit.net"
] | jason.runzer@uoit.net | |
4237fae63bb4894a098e704c02963bb2bbb19c3b | 535e7dee7621ea71aeb2aae6c564b1ab6e090445 | /fin project/dist/Student DB.app/Contents/Resources/gui_search.py | 4e5acd3dbe7ab00b84840f519810c14f250ecf23 | [] | no_license | tunguyen17/CSC271Final | 29eca736a996ac6739ee79a3386047711fa4503b | 32bb77177177d701e1e5ae10325ba366b94bc666 | refs/heads/master | 2021-01-11T04:18:08.802878 | 2017-03-15T04:45:28 | 2017-03-15T04:45:28 | 71,211,090 | 0 | 2 | null | 2016-12-09T05:46:58 | 2016-10-18T05:09:17 | Python | UTF-8 | Python | false | false | 5,600 | py | import Tkinter as tk
import Database as DB
import Widgets as wd
import gui_list as gl
import NewStudent as ns
import EditTopics as et
import Export_CSV as EC
import tkFileDialog
class gui_search:
'App for creating searching window'
################# CONSTRUCTOR #################
def __init__(self, db):... | [
"tanguyen17@wabash.edu"
] | tanguyen17@wabash.edu |
c1671d32787dc01342e8a26cc279a71bb969e491 | f6a83325e44b59f74ea5783f4ee605bad877f771 | /mqc/models/mqc_dialysis.py | bbf5b85ae96ee10516437f1c431530e1bd9b380f | [] | no_license | js-superion/addons-custom | 4a4e4fd19790122568dba72ed184f6e327db51c1 | 53c36a586ecbbc37484bda1fe6aac0c4db5ab740 | refs/heads/master | 2020-06-14T13:58:00.732334 | 2017-11-06T03:44:18 | 2017-11-06T03:44:18 | 75,174,024 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,508 | py | # -*- coding: utf-8 -*-
from odoo import models, fields,api
class Dialysis(models.Model):
_name = "mqc.dialysis" #dialysis 透析
_description = u"肾病学质控"
_inherits = {'mqc.mqc': 'mqc_id'}
mqc_id = fields.Many2one('mqc.mqc', u'报表id', required=True,
ondelete='cascade')
_rec_... | [
"zhixiao.jiang1984@gmail.com"
] | zhixiao.jiang1984@gmail.com |
219448833a4b9ad9f26eaf0f891f257abf72202a | 8360669dfe430c74a1f3c60f1e4bc9e8c41837bc | /arduino_project/api/models.py | 198d56dd91044290c5abe126af5fbf9636442009 | [] | no_license | BaptistG/object_connect | 9ae47e42173cf866019cd4b3bf3d430ca2ad8069 | f633c7caa39e93dab0ea9c3747de1e051e458bb9 | refs/heads/master | 2021-02-03T21:28:53.624573 | 2020-03-02T14:22:28 | 2020-03-02T14:22:28 | 243,544,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from django.db import models
# Create your models here.
class Alerts(models.Model):
id = models.AutoField(primary_key=True)
user_id = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return 'id: {}, user: {}'.format(self.id, self.user_id)
class Users(... | [
"baptist.guerin@gmail.com"
] | baptist.guerin@gmail.com |
45d362a2454044a2fdcb122385e78d244e3206c1 | a9d4dcc11c909fbf57432c8236c9ae293c38e3c7 | /search/binary_search_rotation_point.py | 1a970e1452286449a1dc2a205a132defec60788f | [] | no_license | shuaib88/algorithms_review | 8a375c81c1f3e3813da7429e4b26bdb4b44b13c8 | fb8274fdfa6894c5be02b1233169b3a7c01b7fa9 | refs/heads/master | 2021-01-20T03:04:29.448197 | 2017-08-31T01:02:55 | 2017-08-31T01:02:55 | 101,346,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | def rotation_point_of(word_array, left_index=0, right_index=None):
if not right_index:
right_index = len(word_array) - 1
midpoint = (right_index + left_index)/2
if right_index - left_index == 0:
return midpoint
if word_array[midpoint]>word_array[midpoint+1]:
return midpoint
... | [
"shuaib.sva@gmail.com"
] | shuaib.sva@gmail.com |
8325e8bfb6c511e224f3aac8f88afc68acd879ea | 46e35bb8e400c09381b467ff0ae3e7100fa9c737 | /venv/Scripts/pip-script.py | 8683d9c7918f6879cc0769b490f13fecd9434030 | [] | no_license | goastsj/interface_autoframe | 54e8c9fce95ef33ec3d10296084cf24c6be2b691 | 514e79fd3a489e48163881c512c089971a6c4e4c | refs/heads/master | 2020-04-26T12:44:22.408801 | 2019-03-10T14:04:03 | 2019-03-10T14:04:03 | 173,559,231 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 464 | py | #!D:\学习资料\接口自动化\接口自动化-视频\interfaceauto\interface_autoframe\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex... | [
"1037905204@qq.com"
] | 1037905204@qq.com |
c5a4840e2abacff143dd7d855e796d90b83c83fe | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/metis_transf_20180709124830.py | 42a9fae8f327a0df02f62926b8ffe1d5dacf3f19 | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 2,331 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import graph_tool.all as gt
import metis
from pathlib import Pat... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
31db0a2b0eec44a444ec11cbde5ae8a6dc007f0a | 60a352cddeab022d643b61b8e8965c296cc815cc | /src/main.py | 435097cb3b84386bcddbfb042cfdf0614e95089c | [] | no_license | tessied/blackjack | f24b0433614528696b61c5f00c81f6186bf0e1c5 | b588c86423b0646fac0662872a9cd46c47d72db3 | refs/heads/main | 2023-07-12T11:23:09.425372 | 2021-08-23T02:07:09 | 2021-08-23T02:07:09 | 398,940,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,689 | py | #This is a simplified version of the Blackjack game.
#Inspired by the Udemy Course 100 Days of Code
import random
logo = """
.------. _ _ _ _ _
|A_ _ |. | | | | | | (_) | |
|( \/ ).-----. | |__ | | __ _ ___| | ___ __ _ ___| | __
| \ ... | [
"tessiedong@tessies-mbp.myfiosgateway.com"
] | tessiedong@tessies-mbp.myfiosgateway.com |
9cd4aaea9c9d50f79dd06603c2a9f6541239a683 | fd770a37044ebbf116857650d0ee8957066fe57a | /14-Python/Demos/Day-02/file_handle.py | 3f7ec6f310781ad10d2d59523a4208b9a3406794 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | helghareeb/OSTrack2019 | 1c5a8214e9cc7662bfe7be256f1168ef02c5fffe | 3ef5af0f56f8640e92c1f3c3b3d76b8df2783f48 | refs/heads/master | 2020-06-28T22:20:35.496173 | 2020-01-04T17:05:58 | 2020-01-04T17:05:58 | 200,356,515 | 6 | 14 | MIT | 2019-08-24T07:45:51 | 2019-08-03T09:22:30 | HTML | UTF-8 | Python | false | false | 292 | py | # بسم الله الرحمن الرحيم
f = open('output','w')
f.write('This is new content')
f.seek(8)
f.write('old')
# f.write('This is line-01 \n')
# f.write('This is line-02 \n')
# f.write('This is line-03 \n')
# f.write('This is line-04 \n')
# for i in f.readlines():
# print(i) | [
"helghareeb@gmail.com"
] | helghareeb@gmail.com |
e99b6fff29c79ce050c083f47a26f60657b1e4de | 55a947cddcac5188c557e175aec98df19485f623 | /tests/integration/test_customer.py | 811fcaa2b0bc6edf8f9dbe8c3288e900ea02b3db | [
"MIT"
] | permissive | pfrantz/braintree_python | d02c1691049df68d87f7738e53d489682db94a7e | 055e7400dd70a79ec18e5a30476dc77827bc465d | refs/heads/master | 2021-01-16T20:07:31.664653 | 2013-10-30T00:19:16 | 2013-10-30T00:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,730 | py | from tests.test_helper import *
import braintree.test.venmo_sdk as venmo_sdk
class TestCustomer(unittest.TestCase):
def test_all(self):
collection = Customer.all()
self.assertTrue(collection.maximum_size > 100)
customer_ids = [c.id for c in collection.items]
self.assertEquals(collec... | [
"code@getbraintree.com"
] | code@getbraintree.com |
eddf9f5f7a2a6c7585655da5f7ccb69a9ca882d2 | 1ee920e0f7a05b0b50776ed7874ba2e76bbba7de | /简简/机器学习初步/part1_course4_Minist2TFRecord.py | 760c4c72a3466271acafbcf951ff571c0f48f9b8 | [] | no_license | wangqingbaidu/LearningML | cb4066ed616d3914b85fa559bc1cba1ed18954bc | 9c970f9e6c4052fef444bcf518cf5b1b7c6adfdc | refs/heads/master | 2020-07-31T10:13:06.377235 | 2019-11-15T02:03:39 | 2019-11-15T02:03:39 | 210,571,009 | 0 | 4 | null | 2019-10-10T06:10:14 | 2019-09-24T10:03:24 | Jupyter Notebook | UTF-8 | Python | false | false | 2,671 | py | # -*- coding: UTF-8 -*-
# @Time : 2019/10/20 19:41
# @Author : Janeasefor
# @Site :
# @File : test2.py
# @Software: PyCharm
import tensorflow as tf
import os
import traceback
from utils import process_image, ImageCoder
# 避免低版本下不必要警告
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# 如果输入的数据不是list类型的,例如是一个标量,需要先转化成list类型。
de... | [
"noreply@github.com"
] | noreply@github.com |
4e89f39175e02454086fc58f75665f0d3696b569 | 422f6d1af9473ead5e4e2d1bae6c07799c7b8350 | /hw9/reps.py | b0923fa950177a20db9f4d51af6449c57c30f6b4 | [
"MIT"
] | permissive | jenyu7/hw9 | 467c2f9e748ff624c72d61bd317981db6c405a38 | cadb2ae1b31e3608d9ad1d977fbc697390004884 | refs/heads/main | 2023-01-28T19:34:37.926463 | 2020-12-10T01:31:41 | 2020-12-10T01:31:41 | 320,022,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | import numpy as np
from tqdm import tqdm
#Set up Numpy random generator
rg = np.random.default_rng()
def draw_parametric_bs_reps_mle(
mle_fun, gen_fun, data, args=(), size=1, progress_bar=False
):
"""Draw parametric bootstrap replicates of maximum likelihood estimator.
Parameters
----------
mle_f... | [
"jenyu@caltech.edu"
] | jenyu@caltech.edu |
b1299976449f3acc5b3b422a4394e675d89a1d16 | ddc67279fee4305cddb663b2d76e5a82b0f35ba4 | /ftp_server.py | 85c98ff980fcd5b9fd09f196f4a24357d34e4f33 | [] | no_license | whisperscan/ftpv2.0 | 6b6fa331a7b8d9e65931de15f4ce56c8227afc4b | 734491e76b153e6beb88bd09e42e63498e0a170c | refs/heads/master | 2021-01-22T06:02:30.510709 | 2015-04-30T15:44:54 | 2015-04-30T15:44:54 | 34,862,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,980 | py | #
# writed by caramel
#
import SocketServer
import os
import sys
import stat
import time
import MySQLdb
#-- send error --
def send_err(sock_handler,err_info):
#{
try:
#{
sock_handler.request.sendall(err_info)
#}
except Exception,e:
#{
print e
#}
#}
#-- list process --
# data struct
# __________________... | [
"skynets@yeah.net"
] | skynets@yeah.net |
d891da04d501abe4b1f6da6ca84babc9ccac723d | d7fb8eacd8a1aae8fe6eb49111f93090b7e87ce0 | /backend/tstcr2020102701_dev_14091/settings.py | e74bd1f3e5a9f57d885d8b38f60ca2550b592ad3 | [] | no_license | crowdbotics-apps/tstcr2020102701-dev-14091 | 4d5bcfc2b0aa29e67cebcd8948258b75e8ad9c6b | cc6ba4999444c7e93943f76af75c2506048bf2b6 | refs/heads/master | 2023-01-03T05:09:02.457778 | 2020-10-28T21:59:17 | 2020-10-28T21:59:17 | 307,772,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,125 | py | """
Django settings for tstcr2020102701_dev_14091 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6819e9f732af27b2ad4095c2cf77489ae7040c70 | d1a32ab42cf1db8c45244cc9fa087c29163c360a | /Online Module/recommender/accounts/urls.py | 17718e6a964dca952ddafa7e85c8e3da021f0b3e | [] | no_license | AnjithPaul/Online-Course-Recommendation-System | 0a834522c6570996618735027e575a828feff5c2 | e160167e99286e8d705da518618cec750f9405ad | refs/heads/main | 2023-06-07T22:21:51.940781 | 2021-06-16T07:37:08 | 2021-06-16T07:37:08 | 353,596,738 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """recommender URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-b... | [
"65152866+AnjithPaul@users.noreply.github.com"
] | 65152866+AnjithPaul@users.noreply.github.com |
b2369b62199eee97be83fc60d97c7e11261bf934 | 0d8f06405e28f954a240132ad0f58ed79396f32a | /simpleProject/articles/urls.py | 97872cf8409bd344284e759c3fabc5371c8ddc3d | [] | no_license | szalik-m/djangoTutorial | f565e975a0346484a1334c4806830b818dd75820 | f7fe0acc71d40e4482c18b91291dc48305e73a19 | refs/heads/master | 2022-10-04T15:15:36.644769 | 2020-06-05T11:27:50 | 2020-06-05T11:27:50 | 267,392,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.article_list),
] | [
"szalik.mat@gmail.com"
] | szalik.mat@gmail.com |
544e3c52beebc09d4aa6f0d60a20bde9143251e9 | 365af79b0eb6f45fcdd92f7164f0291ffe6b7f4a | /3.py | 25025be6358e17fe2fa893abe8c64351af78436f | [] | no_license | darthkenobi5319/Python-Lab-8 | 7895b06165dfb52cb0691290fdb3f4cf19115139 | 0f2e1d87c5b453b7d5a7f6cc669e789fd65b0810 | refs/heads/master | 2020-03-28T12:27:18.236228 | 2018-09-11T10:22:31 | 2018-09-11T10:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 5 11:03:26 2017
@author: ZHENGHAN ZHANG
"""
#first load the file
#f=open('C:\Users\ZHENGHAN ZHANG\Desktop\Python\2017.10.5\board.txt','r')
f=open('board.txt','r')
ls1=[]
while True:
c=f.readline().strip()
if c == '':
break
ls2 = list(c)
ls1.appen... | [
"43033983+darthkenobi5319@users.noreply.github.com"
] | 43033983+darthkenobi5319@users.noreply.github.com |
4067eaa4a5851aa47554afb318aa9f0825522d89 | c9490d7bb9c3add1a5e71b06c9180260ffc1fff5 | /web_dynamic/2-hbnb.py | 2eadee48a25ba93f32aa643310baf9dfb56b7b2c | [
"MIT"
] | permissive | PierreBeaujuge/AirBnB_clone_v4 | 54a255023587e6e291f41410f124da8089f2a5b7 | f93bb1f22660f4497fb942abe120a5e69815affc | refs/heads/master | 2021-01-04T15:00:01.541582 | 2020-10-08T09:04:29 | 2020-10-08T09:04:29 | 240,601,631 | 0 | 1 | MIT | 2020-02-18T02:25:15 | 2020-02-14T21:28:36 | HTML | UTF-8 | Python | false | false | 1,351 | py | #!/usr/bin/python3
"""
Flask App that integrates with AirBnB static HTML Template
"""
from flask import Flask, render_template, url_for
from models import storage
import uuid
# flask setup
app = Flask(__name__)
app.url_map.strict_slashes = False
port = 5000
host = '0.0.0.0'
# begin flask page rendering
@app.teardow... | [
"pierre.beaujuge@gmail.com"
] | pierre.beaujuge@gmail.com |
e5d9f30b7435e9196bc3d0df1cdc962e0012a99c | e6f1e23409bfcba563dcfc9dbf6d19c5c99fc0d5 | /binary classification.py | 666e40eb2fd9dd8d43b579935fd778cfc3d6c99d | [] | no_license | AmiraHmd/gdML | 4378fae056f5ff88cdd1a7d86c68c28f5d16e80d | a4e6c3f495d02c2b0c43700843290c89c30f2fc1 | refs/heads/master | 2022-10-24T01:13:48.355828 | 2020-06-24T10:12:35 | 2020-06-24T10:12:35 | 272,714,651 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import make_classification
from sklearn.linear_model import SGDClassifier
# In[4]:
# Génération de données aléatoires: 100 exemples, 2 classes, 2 features x0 et x1
np.random.seed(1)
x, y = m... | [
"hamadiamira2@gmail.com"
] | hamadiamira2@gmail.com |
66c01cbc8829d45abdad4bbf37d41345a0a5bee9 | dc2e5e4b63b632b69f154f7ad30d9c8aed3692e5 | /world/api.py | c73410e97c95105da8f3e35f5563de8760be943c | [] | no_license | jayArnel/geodjango | fad21a66afcf6ada4ca1366205ccb10eed282a87 | 3fb8f6c431e4ae8894f4bd885d426ef0b342b3af | refs/heads/master | 2021-01-10T10:37:23.676218 | 2016-03-30T14:36:07 | 2016-03-30T14:36:07 | 53,738,339 | 0 | 0 | null | 2016-03-13T16:44:46 | 2016-03-12T15:24:09 | Python | UTF-8 | Python | false | false | 390 | py | from tastypie.resources import ModelResource
from models import WorldBorder
from tastypie import fields
class WorldBorderResource(ModelResource):
geojson = fields.CharField(attribute='geojson', readonly=True)
class Meta:
queryset = WorldBorder.objects.all()
resource_name = 'worldborder'
... | [
"jay.arnel@gmail.com"
] | jay.arnel@gmail.com |
4c20e6b6769d1680490e49efd35daee18df732f1 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/plotly/py2/plotly/graph_objs/sankey/__init__.py | 951083a2bed5804da50a572a9104aeb1dea14990 | [
"MIT",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 95,548 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Textfont(_BaseTraceHierarchyType):
# color
# -----
@property
def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0... | [
"robot-piglet@yandex-team.com"
] | robot-piglet@yandex-team.com |
85723fbe5a2fd93ee074528b9234f24cb86ed9e2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/n7e.py | 33f3429b1e2c4c1ad76ee80ffc4f1c7f76064da3 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
b8d8a4bc6f9d4d07e8b654e61ebe35cb2e5b3c8f | d0de9a88220c85bbb0f8678630f3a35dd6718466 | /posts/migrations/0007_post_board.py | c24b90fa51e784e2ff21eea4fb9b5421c2f96193 | [] | no_license | devrockstar928/django-pris | f690e545c56238b4c6f88586737aae8984e3327d | 5b23a5cae445316245adecd35c6b3d18bd599f6a | refs/heads/master | 2020-03-17T13:00:39.348414 | 2018-07-13T05:03:22 | 2018-07-13T05:03:22 | 133,613,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('boards', '0002_auto_20150323_0436'),
('posts', '0006_postlike'),
]
operations = [
migrations.AddField(
m... | [
"devrockstar928@gmail.com"
] | devrockstar928@gmail.com |
077ec552dbc44f8f13d2f90ce68f5e930071324a | fd0bf99070d83466101869f1a13e3cc408a2a101 | /python/046_Fastq_PE_Filter_by_ID.py | 65884572200d11e7fd2a41d45cf066a36dc4366c | [] | no_license | hkkenneth/lihs | eabf11173b5f09bdf70ebb6bb58e9bde711e03d8 | 02360939ca9e06e041ce21c99b729a2e12a28411 | refs/heads/master | 2021-01-10T10:04:05.807656 | 2013-03-04T15:24:58 | 2013-03-04T15:24:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # Author: Kenneth Lui <hkkenneth@gmail.com>
# Last Updated on: 20-02-2013
## Usage: python ~/code/python/046_Fastq_PE_Filter_by_ID.py <ID LIST> <IN LIST OUTPUT FASTQ> <OUT LIST OUTPUT FASTQ> <INPUT FASTQ> <READ ID SEPARATER (DEFAULT SPACE)>
## This is PE in the sense that it tries to parse the paired ID!!
## ID in the ... | [
"hkkenneth@gmail.com"
] | hkkenneth@gmail.com |
f1937d73d5ca59f1d3d284eae6aad9c8138f6512 | c1287fe2f9292a77bf544070f665137d267cc814 | /task3/log_generator.py | 431860fdba2f463fe75be42402038bbf7407a6aa | [] | no_license | ovgolovin/cli_tasks | 08bf9ccc972c075259f56662be08aea9ae4c8d95 | 18a791f53480caae769e73d91e55d27cd69bac82 | refs/heads/master | 2016-09-10T13:53:05.664801 | 2013-07-03T12:50:15 | 2013-07-03T12:50:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
from __future__ import division
import random
import time
from datetime import datetime, timedelta
period_expectation = 10000
def generate_url_and_code():
def resume():
ps = ['id={}'.format(random.randrange(0,100)),
'rss={}'.format(random.choice(... | [
"ovgolovin@gmail.com"
] | ovgolovin@gmail.com |
997757f5a351977385d38e25a9b8faa727157099 | b997f959941208dc6a54e311527abbbd40e45517 | /week3/91_numDecodings.py | ac68f5c33cfd53a53a467829d4123e754bc0bf79 | [] | no_license | Richard9784/geekbang_homework | dc7b2a2c481e60c231806f1ddf17ef6af112ab57 | 79d60e100bf5ee26d750f6d93d83fffb77ef60b9 | refs/heads/main | 2023-04-05T05:23:04.139410 | 2021-04-16T12:18:43 | 2021-04-16T12:18:43 | 347,631,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | class Solution:
def numDecodings(self, s: str) -> int:
if s[0] == '0':
return 0
n = len(s)
dp = [1] * (n+1)
for i in range(2, n+1):
if s[i-1] == '0' and s[i-2] not in '12':
return 0
if s[i-2:i] in ['10', '20']:
... | [
"jianxiaochen84@163.com"
] | jianxiaochen84@163.com |
3066b1e5e881cfd20fc1567f1c361379ae7cbc4e | 966939f62c0c84b71f4f79db4a8b19cb70b6eaa2 | /patientrecord/myapp/urls.py | 53d8a54abc99a528e0900e30381f08a001afb23a | [] | no_license | mudassir-cm/djangoprojects | ee4eba71d90631e2c75925b8b1fa3dea3a88420f | b6cbd3746a8795778c28b6ef22d726dbfe0c88a9 | refs/heads/master | 2023-06-22T00:32:36.381689 | 2021-07-15T16:05:20 | 2021-07-15T16:05:20 | 373,089,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | from django.urls import path
from myapp import views
urlpatterns = [
path('dashboard/', views.dashboard, name='dashboard'),
path('usersignup/', views.usersignup, name='usersignup'),
path('userlogin/', views.userlogin, name='userlogin'),
path('userlogout/', views.userlogout, name='userlogout'),
path('addpatie... | [
"mudasir2021@gmail.com"
] | mudasir2021@gmail.com |
1de0e4cd109d4b91f7b44a82e52d59983b730d6c | e3414d2d22912bba8dc0d91140e3c5ca7ede4c99 | /pages/base_page.py | 53f1cba9ef68cdbf77068e18526c882ea717196e | [] | no_license | Chovhan/Slenium-QAA-final-task | 47cb8d3f87d25d17e9b4fdfd765db0c8535ebede | 70374074af5f9d1ae8b76e00d846943581e50c64 | refs/heads/main | 2023-04-12T22:45:21.012452 | 2021-04-21T21:09:04 | 2021-04-21T21:09:04 | 360,078,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | from selenium.common.exceptions import NoSuchElementException, TimeoutException
from selenium.common.exceptions import NoAlertPresentException
import math
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from .locators import BasePageLocators
... | [
"dema200043@gmail.com"
] | dema200043@gmail.com |
de5d7a80fe1c6c4e82c57b745a268c0ed520bed0 | da38ce93c6a807a3877fb40d7cb890a1bdd27015 | /convert/views.py | 10f0e09a0b45956bdea40a2df8ee433cb42ffcdd | [] | no_license | kanandachristian/final_Project- | 902fc4afa03943624cf062c7fb38b46d0aa36b0e | 17e9b5ddfa63f0aab09e804e0ae6df10b4aa29f5 | refs/heads/master | 2023-02-10T22:35:03.074722 | 2021-01-10T17:38:27 | 2021-01-10T17:38:27 | 323,913,889 | 1 | 0 | null | 2021-01-10T17:38:28 | 2020-12-23T13:47:42 | JavaScript | UTF-8 | Python | false | false | 6,037 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse, JsonResponse
from django.core.paginator import Paginator, EmptyPage
from django.contrib import messages
from rental.models import*
from convert.models import Rate
from django.db.models import Q
# Create your views her... | [
"kanandachristian@gmail.com"
] | kanandachristian@gmail.com |
ca60dfeb903c62d9617eb6584ac2ae23d593ea90 | 24be2965c613549f62407ecc4272fb6e96185497 | /raw/project1-nn/nn/__init__.py | b0eedbf3ad78f1e5011dd80ecd44e1570202348d | [] | no_license | falgunee/AI101-DeepLearning | 8905551a146ec6502abf21c4f67dbaef7113673e | e478dcd2a8532a46eb0a2f98cd399ce1fc1d5383 | refs/heads/master | 2020-04-28T00:59:34.768625 | 2019-03-07T09:21:37 | 2019-03-07T09:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 7 16:26:25 2018
@author: jaley
"""
| [
"jaley.dholakiya@gmail.com"
] | jaley.dholakiya@gmail.com |
b5580f165cc9ba88e6ed7815a4cc90b627cea69d | 8d292cad82e85e58e98f673aef549027ab247668 | /notebooks/Golden_Pass_1/18_Spine_Allen/Spine_classifier.py | 3a7b614dccc6c6f2baba145d29377d15f597eb96 | [] | no_license | celiibrendan/Complete_Pinky100_Pipeline | 56ba1133469f9ea9f80525253f6e7318ea980de4 | 51bf305ec87139059ce8bf5c42d33c54c24a0991 | refs/heads/master | 2021-07-21T18:11:01.592799 | 2020-05-18T22:32:03 | 2020-05-18T22:32:03 | 170,215,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,685 | py | import bpy
#This one will pull down some of the larger segments from the datajoint
#table and then apply the automatic segmentation to them
#######Steps##############
'''1) Get the neuron the person wants to look at
2) Import the neuron and generate edges
3) Get the compartment_type person wants
4) Find the componen... | [
"42202912+celiibrendan@users.noreply.github.com"
] | 42202912+celiibrendan@users.noreply.github.com |
36164f7ee97dba594be61b1f5bc709171535d893 | e43eed4a7af5dad43f6377cb270949dab16d6ab7 | /Python/new_prop.py | 92cf119b26007c02115c450edf7fb442e2d032b5 | [] | no_license | hossamabdullah/Hacker_Rank | d49df52c6182fc75365d3e9fb2b657d8553cb9ad | 75f0fb5b3a5f0db5891d684905c576bc1d133275 | refs/heads/master | 2022-09-21T05:47:48.230184 | 2022-09-04T12:27:09 | 2022-09-04T12:27:09 | 139,197,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import sys
link = sys.argv[1]
temp = link
start_index = 38
link = link[start_index:]
end_index = link.find('/')
link = link[:end_index]
print(link)
import os
if not os.path.exists(link):
os.makedirs(link)
file = open(link+'/README.md','w')
file.write('this is the link for the problem \n')
file.w... | [
"hossamabdalh@gmail.com"
] | hossamabdalh@gmail.com |
a71575c3f5fb41e8566027db9fecf817bb9fcd5e | 7c63011cc895542cdf8aead2d90517985c1f9bed | /v2.py | 91dd60eabe526c3256d49ff5e41f420aeb3508bc | [] | no_license | npinnaka/py_example | e1af6d2e75e97591ee0fe3d74b25ea1ec5630df8 | b7f75648e3eb442e88620ce8d4f28bcd870ace76 | refs/heads/master | 2020-08-28T14:39:13.289810 | 2019-10-26T15:26:13 | 2019-10-26T15:26:13 | 217,728,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | from pyspark.sql import functions as F
from pyspark.sql.window import Window
from pyspark.sql import Row
from pyspark.sql.types import *
def f(x):
gi = 0
previous_row = 0
previous_gi = float(0)
output = []
for r in x[1]:
d = r.asDict()
marks = int(d["Marks"])
if previous_ro... | [
"npinnaka@yahoo.com"
] | npinnaka@yahoo.com |
a85b8f79b55a165efd14937ca5ad057cb91f0f75 | 8390a7853ac31d5163e3111b7ce7b298c974ebfe | /fengzhuang/page/dzh_page.py | 924857a367ff7569681d24e53c77b03125b35736 | [] | no_license | pivosxbmc/ALL_project | 36d37f19a5f03558ea1e162f518a261fecfa0f59 | 34f47a39432eb1e1dff94a0420f7eaa1e2c49b4b | refs/heads/master | 2023-01-24T15:23:20.930950 | 2020-11-26T10:02:47 | 2020-11-26T10:02:47 | 305,939,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #coding=utf-8
'下一个页面handle'
import sys
sys.path.append('D:\\jx\\fengzhuang')
from base.find_element import FindElement
import time
class H_multi_Page(object):
"""H5界面"""
def __init__(self, driver):
self.elements = FindElement(driver,'Multi')
def get_multi_H5_button_element(self):
return sel... | [
"1094491399@qq.com"
] | 1094491399@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.