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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db9c2d2a18762a017bc99282713b6486c15730a0 | 7be8a902f968ecd74fdf028d758f8777df6120c7 | /daxuan/Taiwan/yahoo/yahoo_news.py | be5a2c9a07719bf638955a598131a9bea4d0b0c5 | [
"Apache-2.0"
] | permissive | BingquLee/spiders | 51142f848d52a7f8a98563e17b5c582a7e18b46c | 66e42b59aa692ab531e6ca347708d46b189c0047 | refs/heads/master | 2020-03-22T00:49:59.079429 | 2018-06-30T17:55:07 | 2018-06-30T17:55:07 | 139,268,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-04-11 14:45:12
# @Author : guangqiang_xu (981886190@qq.com)
# @Link : http://www.treenewbee.com/
# @Version : $Id$
import requests
from lxml import etree
from retry import retry
import time
import json
import hashlib
import re
import urllib, urllib2
f... | [
"bingqulee@gmail.com"
] | bingqulee@gmail.com |
79e15a4d8d3d6c89c7d69de94492d8dd4445925c | 1ae78508747f246ded95500ac5bb7afe6959de2e | /while 반복문(안녕! 길동 10번 출력하기).py | 9563f2c8c0cd8c3fff97d573cd99836906a1dd0e | [] | no_license | hihello-jy/portfolio | 591b9d4e99e6feb2f8a0badd3c26d4e5847667ed | b32e55924d134adace8e001b7ef69647d078fa0e | refs/heads/main | 2023-02-17T00:39:49.981294 | 2021-01-18T06:15:20 | 2021-01-18T06:15:20 | 330,176,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | i=1
while i<=10:
print("안녕!")
print("안녕! 길동")
i+=1
| [
"noreply@github.com"
] | noreply@github.com |
2ef775fa9ffa8db94d0c44a35f38777947ee452a | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2022/shift_2d_grid.py | 6ddd3b4a793d02f3fddf9b911c48410e32e74f17 | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 528 | py | """
https://leetcode.com/problems/shift-2d-grid/
"""
class Solution:
def shiftGrid(self, grid: list[list[int]], k: int) -> list[list[int]]:
R, C = len(grid), len(grid[0])
newGrid = [[0] * C for _ in range(R)]
for r, row in enumerate(grid):
for c, v in enumerate(row):
... | [
"mengyu.jiang@gmail.com"
] | mengyu.jiang@gmail.com |
52afcd7e31b54b796e33f40f2afa39220366101e | 6d2823e08ed9f4a1291c110fb5559aedc5ef52e8 | /dp_sgd/dp_optimizer/dp_optimizer.py | c9b6c4a263b457185d6ef9d35d2c134c558fadf9 | [] | no_license | sherry0037/image-classification-tensorflow | a62d1c4e749cf7736fabd94fdf04b90a46678b1f | 0b0e987c6e3159cd1302b316206ddc8c0a66a52b | refs/heads/master | 2020-03-30T03:03:49.866936 | 2018-12-02T00:05:19 | 2018-12-02T00:05:19 | 150,666,689 | 0 | 0 | null | 2018-09-28T01:11:28 | 2018-09-28T01:11:28 | null | UTF-8 | Python | false | false | 26,624 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"sherryni95@gmail.com"
] | sherryni95@gmail.com |
4a3e4f7eb40baccd3f184da3abec783f73e65f4e | 6a082cb3c9ded205dc72c36ccb508a829b2f3f6b | /handtest.py | 68a816054c0fd120fceebf8799e25e2beaad8ec0 | [] | no_license | stephica/PyPoker | 2f8819788515b877db0811538b23f6edb5b9fb9b | 7287120ed1e5d1c5b20928b8197e463893514ec7 | refs/heads/master | 2020-12-11T09:21:54.237009 | 2012-10-24T01:58:27 | 2012-10-24T01:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,255 | py | import unittest
import hand
import cardconstants
class TestSequenceFunctions(unittest.TestCase):
## Test Helper Methods ##
def setUp(self):
self.hand = hand.HandFunctions()
self.constants = cardconstants.Constants()
testhands = []
#High Card
testhands.append(self.hand.... | [
"ben.mccormick@alumni.duke.edu"
] | ben.mccormick@alumni.duke.edu |
3dde83c6e5f6a9f36dfe90f34f39f654304a45b9 | 985a3549246c334e273dcd88c45ae955349f06f8 | /com/javamix/samples/fibonacci2.py | 89c65d73c943f7fb71385684a51e1dfe9c75278f | [] | no_license | jstockbot/jstock | cd7dfcff52fd04ed42250dba74fd0849d0610e66 | 890e1f8dfb4ffeb6e10277bccf21ff1a54aa7ff1 | refs/heads/master | 2020-08-30T20:21:54.115897 | 2019-10-30T09:32:15 | 2019-10-30T09:32:15 | 218,479,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | dictionary = {
1:1,
2:1
}
def fibonacci(n):
if n in dictionary:
return dictionary[n]
else:
output = fibonacci(n-1) + fibonacci(n-2)
dictionary[n] = output
return output
print("value = {}".format(fibonacci(100))) | [
"jaco007@naver.com"
] | jaco007@naver.com |
bdc17a5323b6de34250efea6c9fa4264db0d5d1c | feefd93256bf7c427dafeb7486959aa77938a6c5 | /chai/update_data/urls.py | 230512f208bd3c1af1cd0cadf3b599ce543cbd6d | [] | no_license | achalagarwal/Chai | 50739ed77523067b67e799f7a2337c643d65a73a | 85bf556137c15e1f29160f830ac3acebbc1dd64f | refs/heads/master | 2022-12-14T20:04:55.837921 | 2019-03-22T02:55:38 | 2019-03-22T02:55:38 | 177,061,920 | 0 | 0 | null | 2022-12-08T02:30:34 | 2019-03-22T02:59:46 | Jupyter Notebook | UTF-8 | Python | false | false | 324 | py | from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from . import views
urlpatterns = [
path('addSku', csrf_exempt(views.add_sku), name='Add SKU to Global Match Book'),
path('pickle', csrf_exempt(views.pickle_and_backup), name='Pickles current Sku Matchbook and backups previous')... | [
"achalagarwal.01@gmail.com"
] | achalagarwal.01@gmail.com |
d35093f49ee7231284a72c76835eed22fc126008 | f2aac1b24e8b2d1d3da683d0bd83c29bf332c0e9 | /app/__init__.py | 1f4b2519144a99f4ac82fd96b69c84c3d61fa3c8 | [] | no_license | DorcasWanjiku/watchlist | 3b901424004fc09725d22f1e0f7cb3424650f57a | 5cd04fa61dd02bfda514956b26a3734380b0ea52 | refs/heads/master | 2023-01-02T04:24:11.826142 | 2020-10-21T16:17:45 | 2020-10-21T16:17:45 | 306,037,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
from flask_sqlalchemy import SQLAlchemy
bootstrap = Bootstrap()
db = SQLAlchemy()
def create_app(config_name):
app = Flask(__name__)
# Creating the app configurations
app.config.from_object(config_options[c... | [
"smallwanjiku@gmail.com"
] | smallwanjiku@gmail.com |
dcca1b4654042db1e814f1b41337666cd9ecf45c | b5f5307efa678c913c1cdc31a5a839acfd55900c | /files.old/config.py | 3c0f53799cb0345fe01d4bbeaf930b8a1e42e910 | [
"MIT"
] | permissive | PiZep/timelapse_control | a204d4ffb28a7eb0446f332236591dbf7dd36d10 | 1e1d33cad02251b92df094e062a9cc8edb6ffade | refs/heads/master | 2021-06-24T05:25:32.496005 | 2019-12-17T15:12:08 | 2019-12-17T15:12:08 | 205,883,864 | 0 | 0 | MIT | 2021-03-20T01:39:13 | 2019-09-02T15:17:29 | Python | UTF-8 | Python | false | false | 678 | py | #!/bin/usr/env python3
_DEFAULT = {"timeset": False,
"res": {"width": 320, "height": 240},
"interval": 60,
"path": "",
"days": [False] * 7,
"start": {"hour": 0, "minute": 0},
"end": {"hour": 0, "minute": 0},
"lastpic": ""
}... | [
"pizep@outlook.com"
] | pizep@outlook.com |
2904a73fe26296f364a3e698b6c66d370b6ebc3c | 62f59fe1e0246b33c84412ee2a60e77938a05a15 | /proj/my_lib/Common/img_hash.py | ac6c0aa4cb2dd704168d823abfde9bea4dd890fd | [] | no_license | 20113261/platform_service | 02676d2654f5c7bde2c7eafdadbf55fe7253a7b0 | bc903168bd7cbc499892f24c2b1cc82c38180c01 | refs/heads/dev | 2022-08-01T02:30:05.004852 | 2018-04-29T05:39:37 | 2018-04-29T05:39:37 | 131,576,306 | 1 | 0 | null | 2022-07-08T19:13:32 | 2018-04-30T09:14:54 | Python | UTF-8 | Python | false | false | 1,210 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/10/31 下午7:34
# @Author : Hou Rong
# @Site :
# @File : img_hash.py
# @Software: PyCharm
import imagehash
from PIL import Image
from proj.my_lib.logger import get_logger, func_time_logger
logger = get_logger("img_hash")
@func_time_logger
def _img_... | [
"nmghr9@gmail.com"
] | nmghr9@gmail.com |
72db85a70448c460503c709fef4d549a53fed7bd | 10479b15a138114d2a35fed8b891bdebe1b0203a | /LaTeXTools/viewPDF.py | d4bdb0f63d6ec193859280ef99765e5510bee6de | [] | no_license | MattDMo/windows-sublime2-packages | d7bd24df6166cbe44357528d7b11ec20e458c7af | 8a491c4da22370c7d79f1165099708cbbf75e23e | refs/heads/master | 2016-09-06T16:17:55.175822 | 2013-08-06T15:00:14 | 2013-08-06T15:00:14 | 11,926,641 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import sublime, sublime_plugin, os, os.path, platform
import getTeXRoot
from subprocess import Popen
# View PDF file corresonding to TEX file in current buffer
# Assumes that the SumatraPDF viewer is used (great for inverse search!)
# and its executable is on the %PATH%
# Warning: we do not do "deep" safety checks (e.... | [
"mattdmo@pigimal.com"
] | mattdmo@pigimal.com |
3e7c088e64fc6ceb072a671c8232dc77211b153b | c5d133e0c214f29f054c902a35aeff6ecde33e5b | /apps/travel_buddy/models.py | 2a056253c7475e496cf52b953315d3047a08f981 | [] | no_license | seanh169/pythondeployment | e9a326dcb0ec686ac5b06be927de45fd1f6aebd4 | 2e68a701513571e63e16da15e26f4095ff135f5a | refs/heads/master | 2021-01-24T12:57:00.981104 | 2018-02-27T16:35:44 | 2018-02-27T16:35:44 | 123,157,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
import re
from datetime import date, datetime
from time import strptime
import bcrypt
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9+-_.]+@[a-zA-Z0-9+-_.]+\.[a-zA-Z]+$')
class UserManager(models.Manager):
def register(self, post_... | [
"seanh169@gmail.com"
] | seanh169@gmail.com |
b3e9af807b979f922b4629836eb98bb6efebee19 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.TPI/Mono_8/pdf_to_json_test_Latn.TPI_Mono_8.py | 618c37de8897c8b6e934ba4f5610096e2ef4829b | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.TPI/Mono_8/udhr_Latn.TPI_Mono_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
5e9c8ba0cf902290445b563830566f1f190e4113 | 06a9dc7c5e517e4e484f053034eb28f9b1b065c5 | /node_modules/uws/build/config.gypi | 6dedbba8aa554510ad712bb73a7c4eac0b10d8a8 | [
"Zlib"
] | permissive | Mitsuwo/truffle-tutorial | 28782b8bb2008409c23fea30a9bb809ca813da3c | 9e8b291924d9ecb4fb1e9e81a64db3e5c294559d | refs/heads/master | 2021-05-05T12:56:30.124554 | 2018-01-21T14:57:24 | 2018-01-21T14:57:24 | 118,344,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,965 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"hapowalp@gmail.com"
] | hapowalp@gmail.com |
de441197752192086fa670004f6bae629375d4e4 | 219214631464de237429e7f1032fb53071414624 | /exemplos/python_intro/read_iris.py | 557e3910dc2f08c74e4036dd900924737e374e94 | [] | no_license | tmalveirac/curso_data_science_python | 50073732993e4918256f7709ae9c4cf3784c98aa | eaf5888c621819b7d0c794db3689daaae1f6ccc1 | refs/heads/master | 2021-05-01T06:35:48.784547 | 2019-04-14T18:23:03 | 2019-04-14T18:23:03 | 121,147,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | #with open('iris.data', 'r') as f:
# print(f.readlines())
# with open('iris.data', 'r') as f:
# for linha in f.readlines():
# print(linha)
# with open('iris.data', 'r') as f:
# conteudo = f.read()
# print(conteudo)
with open('iris.data', 'r') as f:
lista = f.read().splitlines()
print(len(lista))
print(lis... | [
"tmalveirac@gmail.com"
] | tmalveirac@gmail.com |
d71d2a0c9a08f1a84e5d3ddc656809792509793b | 98754fd95d0466335792dab6590b366e169e1af3 | /docker/engine/config.py | 7c9ef68590db4462c9e4c7d92e2149828717c063 | [] | no_license | arifinrais/akin-pipeline | e7de8510e6b092501c0ba61045449b8c9c66ab30 | eb6527902ebec7fcc30d95c12fbcc0857a1009c9 | refs/heads/main | 2023-07-16T17:57:17.135422 | 2021-08-31T07:58:56 | 2021-08-31T07:58:56 | 382,278,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | #!/usr/bin/env python3
# job-enqueuer redis host information
JOB_REDIS_HOST = 'job-enqueuer'
JOB_REDIS_PORT = 6379
JOB_REDIS_DB = 0
JOB_REDIS_PASSWORD = None
JOB_REDIS_SOCKET_TIMEOUT = 10
# rq redis host information
RQ_REDIS_HOST = 'rq-server' #rq-server for docker koentji
RQ_REDIS_PORT = 6389
RQ_REDIS_DB = 0
RQ_REDI... | [
"44962398+arifinrais@users.noreply.github.com"
] | 44962398+arifinrais@users.noreply.github.com |
9f3d980a3bbf401b388acd9a4a740b58d906262e | baf6c744f7687098d1dfde4e4de3b53109451e7f | /Source_Code/Data Collection/twitter_stream_download.py | fe7082c251d445d8ce891b7a5ebb833d4d044c5e | [] | no_license | NirmalKanagasabai/Twitter_Sentiment_Analysis | 721143db424568cc6ab80e890b72aa23eb0cd962 | e6242528a3faa2cc928e167604bf9c10fe682462 | refs/heads/master | 2021-04-24T19:43:47.310982 | 2018-01-13T18:57:26 | 2018-01-13T18:57:26 | 117,367,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py |
import tweepy
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import time
import argparse
import string
import config
import json
def get_parser():
parser = argparse.ArgumentParser(description="Twitter Downloader")
parser.add_argument("-q",
... | [
"noreply@github.com"
] | noreply@github.com |
afce226c8a638eb16936b3d8cc4f9d52a8b1c10c | a43de7e32b28533917e1be6418f3330397aaec11 | /realportfolio/realportfolio/urls.py | 4d2e1b6dad56b19d5717ac996396c933c51cc107 | [] | no_license | mounikamoparthi/Django | 89910c1297e74392bcffdb8f0ecd222152a4775a | 8a0e7dce8f67f0eec469e85c1ba74cb515b28897 | refs/heads/master | 2021-04-15T16:49:09.408107 | 2017-06-23T22:13:24 | 2017-06-23T22:13:24 | 94,583,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """realportfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"mounika.tunga9@gmail.com"
] | mounika.tunga9@gmail.com |
4ea70871b269b1e8653582ef88c2497f5e928abc | 96740c0a9ff1467f0897253c79a059b5ba6a1949 | /test_webscoket.py | 02c07101a77d1393e2894d4e4843fafdb61c1326 | [] | no_license | Cola1995/soho1 | a876990cd3adfb9534eb3630e24a9bf90bdf8363 | fad8f13d6c789e7c37eba5cfd94a9cb609c8db1d | refs/heads/master | 2020-07-27T07:50:38.299692 | 2019-09-17T10:02:34 | 2019-09-17T10:02:34 | 209,020,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | import asyncio
import logging
from datetime import datetime
from aiowebsocket.converses import AioWebSocket
import json
async def startup(uri):
async with AioWebSocket(uri) as aws:
converse = aws.manipulator
# 客户端给服务端发送消息
await converse.send('{"event":"pusher:subscribe","data":{"channel"... | [
"991571566@qq.com"
] | 991571566@qq.com |
d3a25809387c0884de8e119e41085ed818e23884 | fb30254094dafcb195dcc268c15ae0837b3eed36 | /hummingbird/ml/operator_converters/_gbdt_commons.py | 1c0826aea98927d8273bd3d5e9bcb7295dede2ae | [
"MIT"
] | permissive | TuanNguyen27/hummingbird | bc6e7677a23039ce2e149311984a7f76dc7c9b99 | 20e37faf7c010295f630ad1d8cf104cf16081baa | refs/heads/master | 2022-11-16T05:38:53.530188 | 2020-06-28T21:46:59 | 2020-06-28T21:46:59 | 271,922,036 | 0 | 0 | MIT | 2020-06-13T01:49:19 | 2020-06-13T01:49:18 | null | UTF-8 | Python | false | false | 4,567 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
Colle... | [
"noreply@github.com"
] | noreply@github.com |
41fe1af3a991701adef5730a76c7515e2df9c76f | 4bd7ed0f0d8530052eeffc0837f98da8a7faf6b9 | /rename.py | 9b8e7ebb9c84ab30b0faf5eed5ee69a79472cc26 | [] | no_license | Ezio-Auditore-Da-Firenze/robsat_river_tjut | c4fe8d81ae4270cb2d4501f5d2736e878b2eccd9 | ba3935e098a2b1e5a46a1ad7ee120b3a0b49df9c | refs/heads/master | 2021-05-21T17:02:35.451494 | 2020-04-22T08:40:51 | 2020-04-22T08:40:51 | 252,728,494 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | #@FileName: 批量图片文件重命名.py
#@Software: PyCharm
# -*- coding:utf8 -*-
import os
class BatchRename():
'''
批量重命名文件夹中的图片文件
'''
def __init__(self):
self.path = 'D:/BaiduNetdiskDownload/water_dataset/training/labels' #表示需要命名处理的文件夹
def rename(self):
for i in range(9):
if(i<... | [
"1014961529@qq.com"
] | 1014961529@qq.com |
562e0015771e508a36b7fe27624e9bd4f2a91332 | 218e2b8bdc48b399d3c41915e91d7344c0c6e7fc | /products/models.py | 43fd0b0f4dd28db7a8806b80fe61a35a57e81814 | [] | no_license | PetyoKaratov/eCommerce | a775e2d95a53da52f68f947a01775e08182a9ae4 | 712baa4439b80335dd60e4603404e86eb56b8121 | refs/heads/master | 2020-04-20T13:55:39.723710 | 2019-02-19T15:47:19 | 2019-02-19T15:47:19 | 168,883,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | import random
import os
from django.db import models
from django.db.models import Q
from django.db.models.signals import pre_save, post_save
from ecommerce.utils import unique_slug_generator
from django.urls import reverse
def get_filename_ext(filepath):
base_name = os.path.basename(filepath)
name,... | [
"karatov88@abv.bg"
] | karatov88@abv.bg |
a913533cbb99faaafacfff4bdc32f68d2f399933 | 41139260ed22d7ea37486c9d8ff0cb3838b487fb | /Module11HW.py | 21b02ac341b7bfea57a22e098b3372ac635699ab | [] | no_license | Christie3Dawn/Module11 | 450a19ec78df0969572252b903cb8852cb6477a4 | 5093fb78b8a238e1c99a9696bb69180d17d0ec8b | refs/heads/main | 2023-03-31T04:37:35.298391 | 2021-03-29T02:02:00 | 2021-03-29T02:02:00 | 352,486,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py |
import pandas as pd
# Assignment 1: Import an Excel file
df = pd.read_excel(r'C:\Users\Chris\Desktop\Python\COVID19_03242020_ByCounty.xlsx')
print(df)
# Assignment 2: Web Scraping
# Taken from https://towardsdatascience.com/how-to-web-scrape-with-python-in-4-minutes-bc49186a8460
# "How to Web Scrape with Python in ... | [
"79064441+Christie3Dawn@users.noreply.github.com"
] | 79064441+Christie3Dawn@users.noreply.github.com |
f73e8cee4387922b60f25f6d68bcaedf74ab873d | de479d4a8af0e070b2bcae4186b15a8eb74971fb | /cn/iceknc/study/c_python_pygame/c_pygame_window.py | 6ba43b45b4a1518b0fc99459cb90ef2ca9434385 | [] | no_license | iceknc/python_study_note | 1d8f6e38be57e4dc41a661c0a84d6ee223c5a878 | 730a35890b77ecca3d267fc875a68e96febdaa85 | refs/heads/master | 2020-05-19T18:44:55.957392 | 2019-09-27T01:15:54 | 2019-09-27T01:15:54 | 185,160,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import pygame
pygame.init()
# 创建游戏窗口
screen = pygame.display.set_mode((480, 700))
bg = pygame.image.load("./images/background.png")
screen.blit(bg, (0, 0))
hero = pygame.image.load("./images/me1.png")
screen.blit(hero, (200, 500))
pygame.display.update()
pygame.quit()
| [
"xzhipeng@lifecare.cn"
] | xzhipeng@lifecare.cn |
ab7072e29c1fc3f1e960114459f71b5d0e4b47c7 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /095_os_and_sys/examples/nuke/path.py | d2c4af2cb8323f944b77ddabab9ee7ba30329f67 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 16,611 | py | # path.py
#acl All:read
#format PYTHON
# -*- coding: iso-8859-1 -*-
""" path.py - An object representing a path to a file or directory.
Example:
from path import path
d = path('/home/guido/bin')
for f in d.files('*.py'):
f.chmod(0755)
This module requires Python 2.2 or later.
URL: http://www.jorendorff.c... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
1809b5a833f3f60147be53cf5f0035d61930ed57 | b5ae35b4d2e268c6be407f32aac04870f5cbe727 | /codeFilesPackage/calendarSimpleText.pyw | d938a9afd2d337ae16eb3c192781380ad30a19a9 | [
"MIT"
] | permissive | karadalex/PythonOrganizerAppProject | d5e2b1887d75f4736e56e2b980bbd858d1c0f030 | 37c7d10b240e9d883d4a8a50c4e94cf5315275d9 | refs/heads/master | 2021-01-22T03:53:52.462438 | 2016-02-02T13:46:05 | 2016-02-02T13:46:05 | 48,080,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | pyw | import datetime
import calendar
import wx
import wx.grid
def calendarText():
"""example return:
January 2016
Mo Tu We Th Fr Sa Su
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
"""
now = datetime.dateti... | [
"karadalex@gmail.com"
] | karadalex@gmail.com |
ca4b09083eb46a4afe2e3fcc2d2303319053a314 | bbe447a740929eaee1955bd9c1517cf760dd5cb9 | /keygrabber/adwords/adwords_api_python_14.2.1/build/lib.linux-x86_64-2.7/adspygoogle/adwords/zsi/v200909/CampaignCriterionService_services.py | efe456bdfc5fa3c46319a37ae0a627525a085719 | [
"Apache-2.0"
] | permissive | MujaahidSalie/aranciulla | f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893 | 34197dfbdb01479f288611a0cb700e925c4e56ce | refs/heads/master | 2020-09-07T02:16:25.261598 | 2011-11-01T21:20:46 | 2011-11-01T21:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | ##################################################
# CampaignCriterionService_services.py
# generated by ZSI.generate.wsdl2python
##################################################
from CampaignCriterionService_services_types import *
import urlparse, types
from ZSI.TCcompound import ComplexType, Struct
from ZSI im... | [
"vincenzo.ampolo@gmail.com"
] | vincenzo.ampolo@gmail.com |
0d0a072bf4bc60c77f25558e40e4222f8ca8679c | 496e05014492b4bbecf9f15c40ae416c21e27a46 | /src/outpost/django/video/migrations/0009_epiphansource.py | 1354f113997a6042355a8bf0539191a4f9fc69c3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost_deprecated | b1ff802054c04cf989b3b660e132fa6a1c2a078c | bc88eaa3bb504d394fdf13f1131e40db27759c89 | refs/heads/master | 2022-01-23T15:46:34.859095 | 2019-05-21T08:38:11 | 2019-05-21T08:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-08 08:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import imagekit.models.fields
from ...base.utils import Uuid4Upload
class Migration(migrations.Migration):
dependencies = [
... | [
"michael@fladi.at"
] | michael@fladi.at |
8a3c848cb3bd9ebfa681ce4b588fee98c3091edc | e0c1ddaee263b4776ce0116ba12bc6564b5d32e6 | /src/flatten.py | c42f8002eaa9ab5d377f711b895c70f3dd0dfc69 | [] | no_license | pranavbmcloud/cde_task_1_v2 | b7272eb4200b57deceef55a643e0e4fb06e1ffe2 | 564a33f3577cccfedc13f57be2fa7fb4685cdf79 | refs/heads/master | 2023-02-13T17:25:01.839018 | 2021-01-03T14:59:27 | 2021-01-03T14:59:27 | 326,245,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | """Module handles flattening of nested data formats
Some data formats have nested structures. Such formats need to be flattened.
This module shall handle flattening of the data
"""
from itertools import chain, starmap
from src.file_type import DataType
def flatten_dict(dictionary):
"""Flattens a nested dictio... | [
"pranavbmcloud@gmail.com"
] | pranavbmcloud@gmail.com |
432d2dd90f323a1682a499fc0227a6ee553ff9f0 | 3040a2c43eedbc6ba32e6e67efe9ab170c4f336a | /personalservices/apps.py | 5edf4f9af6986ed956e0c63561988f400918ce6f | [] | no_license | leandrocl2005/minidashboard | ff6917260656a1561c60bf19c45f8cde2c491991 | 0ae9bf783e6fb08616d772ad5bc2f24f1c1e2740 | refs/heads/main | 2023-05-03T01:04:12.809159 | 2021-05-20T21:23:48 | 2021-05-20T21:23:48 | 369,221,649 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.apps import AppConfig
class PersonalservicesConfig(AppConfig):
name = 'personalservices'
| [
"leandrocl2005@yahoo.com.br"
] | leandrocl2005@yahoo.com.br |
047517b846d849efd00f769db2b00c1e9f2939bc | 86a1475b5ec7520aebde70b8ff0a9db423907369 | /common.py | ccea41abef1cdf8b063193df0e363fb23909d379 | [] | no_license | bspidel/ugnt-app | 7c5f98b4cd87b07555045f5f61484df23317897e | 51f2a34550e8187d57d21176eb70ec42914a9cba | refs/heads/master | 2021-01-13T13:41:35.923327 | 2016-12-12T16:30:59 | 2016-12-12T16:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | from __future__ import unicode_literals
import json
from general_tools.url_utils import get_url
def get_versification():
"""
Get the versification file and parse it into book, chapter and verse information
:return: list<Book>
"""
api_root = 'https://raw.githubusercontent.com/unfoldingWord-dev/uw-... | [
"phillip_hopper@wycliffeassociates.org"
] | phillip_hopper@wycliffeassociates.org |
5f507dbacf08c9c4413a34bb16cb00ec44daeb68 | 1a01a88cc1cede15e1ad6883cdff2a7466a32d2e | /main.py | 130f146e10d3240610a2a35e81fae0d70d3ad443 | [] | no_license | hidenori-suzuki/PluginFramework | 64cc86fdce89d8ce007622ac97f503d3dc9c0e27 | e0213851d83d624ce71b73e6a3e2d809997824d0 | refs/heads/master | 2016-09-02T05:55:22.293474 | 2012-03-11T13:43:41 | 2012-03-11T13:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | #!/usr/bin/env python
import os
import sys
from pluginmanager import PluginManager
def main(id, comment):
plugin = PluginManager()
tgt = []
if id != "all":
tgt = [id]
param = {"comment":"%s" % comment}
plugin.method('process', args=param, target=tgt)
if __name__ == '__main__':
argvs = ... | [
"vinasaigon@gmail.com"
] | vinasaigon@gmail.com |
808ad659be53616086cf7608e29444f522b05378 | b723ecb64c86657751cafd21030de2b3c64886f7 | /unchained/community/teacher/views.py | 85d8abe0ce48b865972359f11ec8b82f08ac1969 | [] | no_license | mohinderps/community | 56dffc11d56d704e8c8c6b1e052741da2eb6d1ce | 1d4b5aa357d41c2e75768f359118103a58da43e1 | refs/heads/master | 2020-04-01T07:27:24.744768 | 2018-10-14T15:45:04 | 2018-10-14T15:45:04 | 152,990,736 | 0 | 0 | null | 2018-10-14T15:47:23 | 2018-10-14T15:47:23 | null | UTF-8 | Python | false | false | 2,818 | py | from django.shortcuts import render
from rest_framework import generics
from rest_framework import mixins
from django.contrib.auth.models import User
from rest_framework import permissions
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import r... | [
"dhruv.life@hotmail.com"
] | dhruv.life@hotmail.com |
c39eeaf948feb9a12175b5eca02bab3bdadc0f3b | b6559791bc33d1d44ab867dcbd7ca93243540e4f | /爆米花视频/baomihua/middlewares.py | 1a013cea298e85bf4650717d5609fa0e1304794d | [] | no_license | RichardcLee/Spiders | 7b51f68a255354bd8b06fca627491d68e55f7cd7 | e0f5c060ea85472e374fd8a16fecf5bdd418a572 | refs/heads/master | 2021-10-22T08:34:34.139022 | 2021-10-12T08:09:04 | 2021-10-12T08:09:04 | 148,959,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class BaomihuaSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy... | [
"0yunhow@gmail.com"
] | 0yunhow@gmail.com |
5f95703decd700410b9a6189b314558bab43b8bd | ca8bc9a058f91ed2bc63345b3cb7be204d807c58 | /app/forms.py | c636b30dae6989ac40af61ae107194cf1b872148 | [] | no_license | pitulujan/proyecto | d802a371a19475f73f6c30ac54790ffb62c85618 | f9fe28e9e199f7a513dcc96f525b6e93bcabe5b0 | refs/heads/master | 2022-12-18T22:02:15.837621 | 2019-08-27T18:29:00 | 2019-08-27T18:29:00 | 153,908,239 | 2 | 0 | null | 2022-12-08T05:46:52 | 2018-10-20T13:26:32 | JavaScript | UTF-8 | Python | false | false | 1,550 | py | from flask_wtf import FlaskForm
from app.models import User
from wtforms import StringField, PasswordField, BooleanField, SubmitField,DecimalField , IntegerField, validators
from wtforms.validators import ValidationError, DataRequired, EqualTo , NumberRange
class LoginForm(FlaskForm):
username = StringField('User... | [
"lujanmartin91@gmail.com"
] | lujanmartin91@gmail.com |
09485a57811f74f6320ac2d4290643cdd57572c4 | e96deed00dd14a1f6d1ed7825991f12ea8c6a384 | /106. Construct Binary Tree from Inorder and Postor.py | 65b1c9034c369dcb1878ffa66b112d2c2d6b2c93 | [] | no_license | borisachen/leetcode | 70b5c320abea8ddfa299b2e81f886cfeb39345c1 | 15e36b472a5067d17482dbd0d357336d31b35ff4 | refs/heads/master | 2021-01-19T17:07:46.726320 | 2020-11-16T04:30:52 | 2020-11-16T04:30:52 | 88,306,634 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | 106. Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x... | [
"boris.chen@gmail.com"
] | boris.chen@gmail.com |
35586d9c9f2ac8801f109e7e4780ce37a9abcd92 | caa525a59735aca3058cb68a7aae0100db2cabad | /mosab_project.py | 065119ef361c6e35b87583872333f7c33f0919d7 | [] | no_license | mosabzx/Lexicon-Test | 73c1ba6b428d3922ebf402d790556386dc128dbb | e46fbc6746311b93ba6a6b799d29335da5060666 | refs/heads/master | 2023-04-20T12:16:55.273116 | 2021-04-26T09:20:06 | 2021-04-26T09:20:06 | 361,685,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | import os
from alltasks import *
def menu():
print("Welcome to my Program, Please enter No. from the menu below to run the task: \n \n1.Print Hello World. \n2.Enter your info. \n3.Change the console color.\n4.Print the date of today. \n5.Enter 2 values and check whois grater. \n6.Guess the number between 1... | [
"mosabzx@hotmail.com"
] | mosabzx@hotmail.com |
39a97d1cf51f87f7e6559e97f8a2350c5492519a | 7c167e5b561b3f30d6307a1bcd35faf76d6d13d9 | /selectionsort/ensaio.py | 081301180ca05c7e77287da00ee301fe60496e89 | [] | no_license | pmrmarcolino/analise-algoritmos-ufu | b29f98883688164ca9d6d8d830ae566a57e5cabd | ad588e6b6f4c86318f42a01cd1e25898e7161b8e | refs/heads/master | 2020-06-10T21:56:29.345259 | 2019-06-25T18:54:36 | 2019-06-25T18:54:36 | 193,763,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import numpy as np
import argparse
from selectionsort import *
parser = argparse.ArgumentParser()
parser.add_argument("arq_vetor",
help="nome do arquivo contendo o vetor de teste")
args = parser.parse_args()
# Lê o arquivo contendo o vetor e passado na linha de comando como um
# vetor do Numpy.
... | [
"noreply@github.com"
] | noreply@github.com |
ce10c0e9d9f7d99e96f2b7c028280a52f949fff6 | cc98a9f237f8d11ecbda249254e2641113a8e98e | /sdp2/sdp2/urls.py | 5e8f3c0343fe2b4a5dac05e925f3255d537423ad | [] | no_license | saiman31418/sdp2 | 23f486f2dac4a7e5c751b367686a631327550491 | e90ca56548dd27738962dee731a4ef2ff2a45b16 | refs/heads/main | 2023-05-04T10:41:01.657429 | 2021-05-22T11:10:28 | 2021-05-22T11:10:28 | 369,609,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | """sdp2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"saimanikantarelangi.10@gmail.com"
] | saimanikantarelangi.10@gmail.com |
45f56aa1674f261127a66aeec95aee7e8df9fc1c | 30c806dc9553f485781c9816ec6e6fd42536bf07 | /bot.py | 3e7ea07185265bea5869b256360045dcb395b758 | [] | no_license | singhcpt/bloomwabot | bf1e80fae1337fdfba0991944a37cee622e0395b | dbaf0242c8a706fdc6dcec24739b7ee9995af126 | refs/heads/master | 2022-11-24T05:19:42.809527 | 2020-07-30T21:57:47 | 2020-07-30T21:57:47 | 272,800,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | #Written Fore HESE 453 2020
import time
from user import *
from utilities import *
from commands import *
import bloomdataservices as bds
#from algorithm import *
def isCommand(inputStr):
if(inputStr == None or len(inputStr) == 0):
return False
return inputStr[0] == "#"
def processCommand... | [
"noreply@github.com"
] | noreply@github.com |
9ee6be2c8399a2b9736d0b6a8721834a278a61b1 | 56c4e0669728ce4aefd1d310224665e7baaec523 | /slipmean.py | bca925aaf3e3c151fa6aa1570b8834a7afeb1094 | [] | no_license | Yinfeng-Ma/DeepLearn-tensorflow | 8effd4c94e3bc0da809c5eded3cbf3b49f6d4768 | dc44619db9cbb2ca19e86f62f0b72e43f6c672ca | refs/heads/master | 2020-05-15T13:21:12.109871 | 2019-06-16T15:03:30 | 2019-06-16T15:03:30 | 182,297,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #coding:UTF-8
import tensorflow as tf
w1=tf.Variable(0,dtype=tf.float32)
global_step=tf.Variable(0,trainable=False)
MOVING_AVERAGE_DECAY=0.99
ema=tf.train.ExponentialMovingAverage(MOVING_AVERAGE_DECAY,global_step)
ema_op=ema.apply(tf.trainable_variables())
with tf.Session() as sess:
init_op=tf.global_variable... | [
"1115779351@qq.com"
] | 1115779351@qq.com |
a5a00e0d2d40dd79e4505dc4b47d5f3feb4ac483 | b8b4e949f40b9311edadd1aca4cb53ee62dc6623 | /Lab 3.py | e42217995851c3cd5edf19fe1cf46363b40fa056 | [] | no_license | Publius565/Digital-Science---B.A. | 7cd134b0aed4b7033ca345ea9d4265428f58fc40 | 85a8ee1c23e78978d58471845e0fa45774907d0c | refs/heads/master | 2016-09-06T11:35:27.974717 | 2013-12-05T10:41:35 | 2013-12-05T10:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | ####################################################
# LAB 3
#
# This is a pseudo student records database.
# It has 4 functions: Add student, delete student,
# find student (ID#), reverse lookup (lastname,
# firstname) and a quit function that will save
# the database to a file for later use.
#
# Author: Blake... | [
"blakeianni@gmail.com"
] | blakeianni@gmail.com |
ee17db66f54baae112ab078764e3c24e94faef6a | 305fadcc129117f8d9a431b7e6c24412a7c01ed9 | /parkovka.py | b8c360e428b168881e68884dd42518640d1dad6c | [] | no_license | xlistarer/classwork1 | 2056f2d6c39ed1a31f85071642fc6f8fe045bb7d | 230dcada5304939b8bc1426b54176318552ffa36 | refs/heads/master | 2023-05-05T10:01:23.730220 | 2021-05-26T18:54:30 | 2021-05-26T18:54:30 | 371,139,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | from parkomesat import Bikemesto,Carmesto,Busmesto
from tz import Transport
class Parkovka:
def __init__(self,countb,countc,countbus):
self.__countbus = countbus
self.__countc = countc
self.__countb = countb
self.__kassa=0
self.__mesta=[]
for i in range(countb):
... | [
"57347671+xlistarer@users.noreply.github.com"
] | 57347671+xlistarer@users.noreply.github.com |
a299f4fae4f27c60adb55748d47b20608341a98a | 65361d1916e0c7746a38612eb130af0dda4abcad | /PocketUser.py | 8cead0be6582c6861e4d2fd5dc7fbe45db677aa6 | [
"MIT",
"Python-2.0"
] | permissive | vihanggodbole/reddit-pocket-sync | 3b3956fbbebf4ef156cff847580d592945397bfd | 773eefc9fc652af46764f09a54958623df9034e5 | refs/heads/master | 2021-01-11T14:18:50.491293 | 2017-04-02T22:38:43 | 2017-04-02T22:38:43 | 81,333,689 | 49 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import requests
import webbrowser
import sys
from pprint import pprint
class PocketUser:
'''A pocket user class'''
def __init__(self, consumer_key):
self.consumer_key = consumer_key
self.access_code = ''
def get_request_token(self):
request_token_params = {'consumer_key': self.con... | [
"vihang16091996@gmail.com"
] | vihang16091996@gmail.com |
7e95e4c28aa19b0effb987698069720b25f8acc7 | 051fe1cfe3280b3eaaa6b00b132fba5819065f6b | /Data_preprocessing.py | dd2ff992a64364ed56f31bd04e52db000e3548c0 | [] | no_license | shawqy/Big_Data | 7ee13f4e276cfce6c881e6f24d1a85d830fe1ae4 | 98e03fc8d728d7360a5919d82ba3e44e414a6762 | refs/heads/master | 2022-06-17T19:27:26.585813 | 2020-05-10T00:42:29 | 2020-05-10T00:42:29 | 259,144,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import pandas as pd
import numpy as np
'''
read_data_from_txt function
input : file_path
sep_by ==> how the data is separated in the txt file
return : numpy 2D array containing the data
'''
def read_data_from_txt(file_path='ticdata2000.txt', sep_by='\t'):
df = pd.read_csv(file_path, delimiter=sep_by)
... | [
"1500772@eng.asu.edu.eg"
] | 1500772@eng.asu.edu.eg |
738ff12212c612628366825e933f04c777a8efac | 90a2cca9dc072a77bc9f59e216090d5d3d323eed | /learn_exam/exam7.py | 57447c1eec14032e8d2fe5e15e0fbb4f64cf1a42 | [] | no_license | iamksir/studyEveryDay | 828c36525510d771c5fa2c1838ffe9d446cace6a | c003c2aa0f2e89eedca20546d6ad587123f1d36e | refs/heads/master | 2023-07-27T18:33:16.835867 | 2021-09-13T02:37:54 | 2021-09-13T02:37:54 | 405,809,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | a =input()
a1 = a.replace('[','(')
a2 = a1.replace(']',')')
a3 = a2.replace('{','(')
a4 = a3.replace('}',')')
b = eval(a4)
print(int(b)) | [
"wangkep@dcits.com"
] | wangkep@dcits.com |
8f8c9b698981f557de0e830fc351353795b4250e | a619897a34bf88563d8703aad053e5cc801ccbef | /examples/backup/coupling_2018_05_30_07_50_45/0_a_stock_solution.py | 19d136405bbacb8f903ed12b939f6d47f21509a6 | [
"Apache-2.0"
] | permissive | xchem/opentrons | 91675740f78819f3da2fddf538eb2f4ddfe94664 | 3cc288e567414f25813d7ace26cbf643348ce321 | refs/heads/master | 2022-02-17T18:10:23.589274 | 2018-10-12T09:42:02 | 2018-10-12T09:42:02 | 105,157,516 | 2 | 2 | Apache-2.0 | 2022-01-21T19:04:32 | 2017-09-28T14:17:52 | Python | UTF-8 | Python | false | false | 1,503 | py | from opentrons import robot, containers, instruments
robot.head_speed(x=18000, y=18000, z=5000, a=700, b=700)
#Deck setup
tiprack_1000 = containers.load("tiprack-1000ul-H", "B3")
source_trough4row = containers.load("trough-12row", "C2")
destination_row = containers.load("FluidX_24_5ml", "A1", "acid")
destination_col ... | [
"anthony.aimon@diamond.ac.uk"
] | anthony.aimon@diamond.ac.uk |
05ede347db50546f0d81577bea1e6574a37f1b81 | 5e226956f005f7f1366e6c13263ae84c3a063c0b | /learnPy/python_appium_test/CS_test/codings/logging_aliyun.py | 6af8645ad913e61d45efbdf0cce83b5932d396a6 | [] | no_license | mu683yue/learn_and_exe_python_upTogit | d6bd748a589463f6d183332e4c3ad5dcd5827c70 | 844de726761d91dcbde0f0ba7e456a5a6428a999 | refs/heads/master | 2021-12-30T22:06:00.091128 | 2021-12-17T15:37:19 | 2021-12-17T15:37:19 | 154,464,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | #!/usr/bin/python3
#-*- coding:utf-8 -*-
from appium import webdriver
import time
#变量
Mi_max_deviceName='5d5bf4e4'
remote_url=r'http://localhost:4723/wd/hub'
login_username='huqiong.lin@cloudscreen.com'
login_password='1qaz2wsx#'
caps={}
caps["platformName"]="android"
caps["deviceName"]=Mi_max_deviceName
##caps["a... | [
"mu683yue@163.com"
] | mu683yue@163.com |
c1e78205153b4747658dc7f917f0c79dd2d0eb41 | aa814a9e0b6b2d2bab83327ad5d9009610550107 | /KingdomOfTolemac/Ending.py | ab96f6913322de41589566bf8bd8e6f9c83fc08c | [] | no_license | Ddext/Tolemac | 7ce962cee125f4b63bf755eff10190eccb45cd6c | dc7c10d3b1c2c2c253bc3734de01289f8a85d844 | refs/heads/main | 2023-08-01T10:38:40.684251 | 2021-09-15T21:32:56 | 2021-09-15T21:32:56 | 406,930,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | import os
import time
from sys import stdout
def delay_print(s):
for c in s:
stdout.write(c)
stdout.flush()
time.sleep(0.02)
def draggedout():
os.system("cls")
delay_print("\n...................")
time.sleep(2)
os.system("cls")
delay_print("\n........... | [
"noreply@github.com"
] | noreply@github.com |
5798bf02161dba0d2d9caa251d3075852b3b5000 | 3bc36e83132ebeba711b89b867fb9809bb3a0136 | /bicubic/.ipynb_checkpoints/main-checkpoint.py | 80e56587a738fceedf5a53c9077e9bcf643d7510 | [] | no_license | loftmain/opencv | 24002c427a87a4924f7b63e5336ecb8c627a8f5e | 435ba4b1491651d0f0362ab5b6c0106bcc5e2a07 | refs/heads/master | 2020-09-19T16:28:14.109480 | 2020-08-20T04:47:42 | 2020-08-20T04:47:42 | 224,244,848 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | import cv2
import os
import numpy as np
import tkinter as tk
from tkinter import filedialog
import bicubic
import re
import tempfile
import shutil
def imreadEX(image_path):
if re.compile('[^ㄱ-ㅣ가-힣]+').sub('', image_path):
stream = open(image_path, "rb")
bytes = bytearray(stream.read())
... | [
"54398458+loftmain@users.noreply.github.com"
] | 54398458+loftmain@users.noreply.github.com |
6e22abb1ceff8ee09df97b9ab40f2f1c3fc0ff35 | 32bbe94e77deced5e58de97eb19e7c6126b001df | /backend/src/carts/admin/carts.py | 3c0c975c778d172c9434ee052c504b97c3071014 | [] | no_license | 3asyPe/astudy | 16d8adacc3bee9f2667c0a5f1be8228868440c6a | 0643a33a294c410523738f59f95c8d205dd63dc5 | refs/heads/master | 2023-06-25T11:23:39.500361 | 2021-07-28T13:33:48 | 2021-07-28T13:33:48 | 336,819,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.contrib import admin
from app.admin import UserFilter
from carts.models import Cart
@admin.register(Cart)
class CartAdmin(admin.ModelAdmin):
list_display = [
'id',
'user',
'total',
'active',
]
list_display_links = [
'id',
'user',
'to... | [
"alex.kvasha228@gmail.com"
] | alex.kvasha228@gmail.com |
8cd86937fcbf7fd7bdf3efd92ad1f59d485968be | 350275bd35170f9a3d04dae9d4b620681f3b6f0e | /sql_alchemy/data_manipualtion_with_orm/E2_update.py | b8265dd92ba062c6e0d7e6f4af5cc6b5fe503550 | [] | no_license | Randle9000/pythonCheatSheet | 025cfdd0e2c820c89db248bf893f81df15109f4a | 536a18bb632f201ed48c09a8c2fdc0c36b1c672c | refs/heads/master | 2023-08-14T15:34:58.957583 | 2021-09-29T13:51:02 | 2021-09-29T13:51:02 | 261,767,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | from sqlalchemy.orm import Session
from sqlalchemy import select
from sql_alchemy.data_manipualtion_with_orm.tables import User, Address
from sql_alchemy.database import engine
# inserting rows
rex = User(name="Rex", fullname="Rex the dog")
pat = User(name="Pat", fullname="Pat the cat") # these object are in state c... | [
"randle9000@gmail.com"
] | randle9000@gmail.com |
868b81860aebf047a3141217db63b2f427c154c5 | 26b75d32b15eea542354e88677c7d5d130caba1f | /tests/a.py | affc738b392d9002f0f3659a75be1e112315289c | [] | no_license | SylvainSenechal/Autoencoder | 8b2d2a9325dd20cc4a800decc30a84eb6cbbefb0 | 821ceac87e7f8e044d203dcd989600f0128e1ab2 | refs/heads/master | 2020-12-18T14:21:00.485228 | 2020-03-09T00:16:08 | 2020-03-09T00:16:08 | 235,416,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,111 | py | # pip install tensorflow==2.0.0
# https://www.tensorflow.org/install/gpu#linux_setup
import tensorflow as tf
from tensorflow.keras.layers import Dense, Flatten, Conv2D
from tensorflow.keras import Model
mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
x_train, x_test = x_trai... | [
"senechalsylvain@hotmail.com"
] | senechalsylvain@hotmail.com |
79ba63175ffeb2c60cf1afbdb3a3e3b4915afae9 | 1cdd7b2373c98a7faaba829f0182a33c800777f6 | /src/tests/unittests/configuration_helper/adapters/test_f1d_instrument_adapter.py | 623e2dfde84e0d3ae0c154cad163921cfc1c88c0 | [
"MIT"
] | permissive | QuTech-Delft/qilib | 445a62b69a96799fd400f91d2a36d6b3b930251b | 335f324087809fbe8bd421e5d1b8cc658b2ed2e2 | refs/heads/dev | 2023-04-28T12:07:34.118849 | 2023-04-14T13:27:32 | 2023-04-14T13:27:32 | 170,845,845 | 2 | 2 | NOASSERTION | 2023-04-14T13:27:34 | 2019-02-15T10:20:23 | Python | UTF-8 | Python | false | false | 7,698 | py | import copy
import unittest
from unittest.mock import patch, MagicMock
from qilib.configuration_helper import InstrumentAdapterFactory, SerialPortResolver
class TestD5aInstrumentAdapter(unittest.TestCase):
def setUp(self):
InstrumentAdapterFactory.adapter_instances.clear()
self.mock_config = {
... | [
"noreply@github.com"
] | noreply@github.com |
fc33d8e7379198696b815ebc07274d16e233a466 | 9c2ba4f1a2d75b1916e6f20fa95c5fb32d0497d9 | /ScrapingWithPython2/code/crawler_script/userAgents.py | d8b7443d1f35f892e33a3ec4385bab0c16310377 | [] | no_license | PowerDG/DgCoreInit | abe4b15e38b730c25424f71e6927db982af27a72 | 84e6b7833ddc083b90fcc172c3812dd6f8b51e3d | refs/heads/master | 2023-07-19T11:58:09.220460 | 2019-06-07T14:43:24 | 2019-06-07T14:43:24 | 163,091,619 | 0 | 1 | null | 2023-07-06T21:20:15 | 2018-12-25T14:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 4,255 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
__author__ = 'hstking hst_king@hotmail.com'
pcUserAgent = {
"safari 5.1 – MAC":"User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
"safari 5.1 – Windows":"User-Agent:Mozilla/5.0 (Windows; U... | [
"1049365046@qq.com"
] | 1049365046@qq.com |
4cfaeae685437fa79e1be88caaab08ec5877b950 | 44dabc129a8df5a2045b0ebb5569adf5496974c6 | /niftypipe/interfaces/niftk/tests/test_auto_Dtitk2Fsl.py | d19b06ddf0c69e5f355ba30603ba5bd29685d73c | [] | no_license | cclairec/Python_pipelines | 9f8967686a85faddad779b05f0894a899df63df4 | ad3527f6849ddb06c9679a14d7fc81cd0798d107 | refs/heads/master | 2021-09-11T17:53:59.085944 | 2018-04-10T15:30:40 | 2018-04-10T15:30:40 | 112,114,045 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..io import Dtitk2Fsl
def test_Dtitk2Fsl_inputs():
input_map = dict(ignore_exception=dict(nohash=True,
usedefault=True,
),
in_file=dict(argstr='%s',
mandatory=True,
),
)
inputs = Dtitk2Fsl.i... | [
"claire.cury.pro@gmail.com"
] | claire.cury.pro@gmail.com |
1541e195b8051b431436d8b87ef862ecd8ed011e | 8d593cdc89bac4a993f776c9b11b9339f035744b | /PHYS613 A2 Exercise2.14 SquareWell.py | 593a104bcfb57c763726d4aa6407b37e28574582 | [] | no_license | Global19-atlassian-net/ComputationalPhysics | 21026c748801d07324620ca02dbc56b9a55a0abd | 9c50c302706c5015b588ac12980c5f96a414575f | refs/heads/master | 2021-05-30T00:50:58.746447 | 2015-11-27T15:31:20 | 2015-11-27T15:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,512 | py | """
Created on Fri Sep 06 21:03:27 2013
PHYS 613, Assignment 2
Nick Crump
"""
# Exercise 2.13
# Exercise 2.14
"""
From Computational Physics by Devries
"""
from math import sin,cos,exp,sqrt
import numpy as np
import matplotlib.pyplot as plt
# define function - even state solutions of 1D finite square well potential... | [
"ncrump32@gmail.com"
] | ncrump32@gmail.com |
0a6527e2285c00c550b36fc3e393a9d6b70aafa2 | 4369b2217a20ae209c1aab2ef1b9481a2fa1fb0f | /mpy入门实例/xx_main_备份.py | 99ebc2f2200778f90d5279f7d0758dc726d63174 | [] | no_license | spp417833515/mpy | 886ddfa861d1a7e6113453a3d86ddfa3f3294055 | e3274ee8bc3b5646b638c3d9d06865507e83bc57 | refs/heads/master | 2020-05-29T15:35:16.021929 | 2019-05-29T13:15:32 | 2019-05-29T13:15:32 | 189,226,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | import network,usocket,time,machine,ure
from machine import Timer
from machine import Pin,PWM
from dht import DHT11
#----------------------------------------------------------全局变量>>上传数据使用
wd=0 #温度数据
sd=0 #湿度数据
TLC=0 #连接状态 0未连接 1已连接
timer_1=0 #定时器1状态
timer_2=0 ... | [
"noreply@github.com"
] | noreply@github.com |
2a0d8a451cccbc0a0db055c683c51dac7b690b22 | bacd12f8a2f583346e1198ee26a2106542169383 | /hw4 3D Recontruction/code/submission.py | cb2764a10a124f97d55ee5b50cb510a72cc8c4d3 | [] | no_license | jingru-wu/Computer-Vision-16720B | 8ca0ca6828669e174adec912d9e73a0db583cfd1 | ebf2fc7535e298c1df43fd170aebdff5b9bfe00c | refs/heads/master | 2020-12-26T06:46:25.360065 | 2020-01-31T12:39:16 | 2020-01-31T12:39:16 | 237,422,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,504 | py | """
Homework4.
Replace 'pass' by your implementation.
"""
# Insert your package here
import numpy as np
import cv2
import helper
import scipy
from numpy.linalg import det
import math
'''
Q2.1: Eight Point Algorithm
Input: pts1, Nx2 Matrix
pts2, Nx2 Matrix
M, a scalar parameter computed as... | [
"noreply@github.com"
] | noreply@github.com |
c49fe451717c567d7a92f296ee5c9ec96bcfb6ae | 44c07a07ed17c8d9dc68b9ed4ffacc13b45917b8 | /src/carla_data_maker.py | 52676d0e20fc5cd48a35c456f9240b3870cee330 | [
"MIT"
] | permissive | shunchan0677/deepware | 1236f97fe2a30c0193590c9688061bdee7e985b5 | e1e928b7727ca44631f280c96f866c6176fad064 | refs/heads/master | 2022-10-27T22:01:15.661132 | 2022-10-20T06:19:14 | 2022-10-20T06:19:14 | 225,805,219 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import cv2
import tf
import csv
import rospy
import rosbag
import numpy as np
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
from geometry_msgs.msg import Transform
from carla_msgs.msg import CarlaEgoVehicleControl
# python data_maker.py ... | [
"shunchan0677@gmail.com"
] | shunchan0677@gmail.com |
ad1501bca97bd07377e954f67f312f52d88a58d1 | 9990457adf7d2a364479a4a26f678191a612e336 | /panel/ifaces.py | ee148e6bc5a1a180cee06096ba0381dd6cd9838f | [] | no_license | dkostya/nimble | 5bdf1688a0b0cd50e91b09c0fa5e12c0bb256e8b | 536994a9654b386d07e6b63fe01d23d20c0d0743 | refs/heads/master | 2022-12-08T03:43:57.214808 | 2020-09-08T09:37:10 | 2020-09-08T09:37:10 | 293,765,035 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | import netifaces
from .models import Iface
ifaces = {}
ifaces_name = netifaces.interfaces()
ifaces_ip = []
for name in ifaces_name:
try:
addresses = netifaces.ifaddresses(name).get(2)
ifaces_ip.append(str(addresses[0]['addr']))
except:
print('IP адреса определить не удалось')
print... | [
"kostya@satpro.ru"
] | kostya@satpro.ru |
2eaa55ed50769ce6b698cbec510098ebd70b9eb7 | 6ffc2667768216d8519effe7cedcad1a0f7e70c7 | /Review/6_Initialization.py | a3d3088975f8fd72c2a22a3fa1fe3ca42c8c7c78 | [] | no_license | ssmoon0828/DL_algorithm | cdee3f3ac407aeaafd9e37194b1116869c632a8e | f012661d4a5e5a032914bcc526976e0f03f949a6 | refs/heads/master | 2020-12-05T00:10:46.622617 | 2020-01-07T12:25:54 | 2020-01-07T12:25:54 | 231,946,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | import numpy as np
import matplotlib.pyplot as plt
def sigmoid(x):
return 1 / (1 + np.exp(-x))
#%% std = 1
x = np.random.randn(1000, 100)
node_num = 100
hidden_layer_size = 5
activations = {}
for i in range(hidden_layer_size):
if i != 0:
x = activations[i - 1]
w = np.random.randn(node_n... | [
"ssmoon0828@gmail.com"
] | ssmoon0828@gmail.com |
92a1970509df326c8143755cf9819a2206306d83 | 797403a06a463b571ceeaf49d7763b90d32ecf02 | /manage.py | 78e5dff096d42cfc04ea53f924a48507f45dd7d2 | [] | no_license | crowdbotics/anand-crowdbotics-16 | cd090cbcc8e0326391f88348de353f397e1b2cd1 | 6ee9424e94f0d3438b966b137811ab4495051753 | refs/heads/master | 2021-04-03T08:33:24.279500 | 2018-03-09T17:50:50 | 2018-03-09T17:50:50 | 124,574,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "anand_crowdbotics_16.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ens... | [
"sp.gharti@gmail.com"
] | sp.gharti@gmail.com |
5d8bc7c76c663a457f9649e1e0d49230ea508ac4 | c88b52f6cc7c73546bb8230d185d790851eb223d | /run.py | 1f7330dc30e72933323bd7ea01048c3f94742b69 | [] | no_license | quanghuy219/coveralls-notification | 9545f8d98221dc53ba01348fed2d663c7362cbb5 | 1ddc85d19e07e6b9d603e0f4df04d610beba0767 | refs/heads/master | 2023-05-11T14:36:43.148602 | 2020-05-08T08:56:47 | 2020-05-08T08:56:47 | 262,252,860 | 1 | 0 | null | 2023-05-01T21:40:12 | 2020-05-08T07:11:37 | Python | UTF-8 | Python | false | false | 57 | py | from main.app import app
app.run('0.0.0.0', port=8005)
| [
"p.q.huy97@gmail.com"
] | p.q.huy97@gmail.com |
5049735988fd652aea9bda19f8454e49418299fd | 74aad8fa1a39162c10305e83fea0fd3d12e35ed8 | /todo/migrations/0001_initial.py | 410046d02fc4cb5876064773be1d4018c7d5fbca | [] | no_license | kobelin-2019/flutter_learning_app_server | b75b1eedde792b71e43d7b0aa0605ff3631400ea | 53d293d42ce33cc46d38e630397f3839e590de29 | refs/heads/master | 2022-04-19T14:04:18.360879 | 2020-04-13T05:02:33 | 2020-04-13T05:02:33 | 255,234,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.0.5 on 2020-04-09 14:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TodoItem',
fields=[
('id', models.AutoField... | [
"kobelin@tencent.com"
] | kobelin@tencent.com |
90a3c28ab285b4ec923d578de72c4b25d4bf8d2b | 0329e8b521fc14aaa8fda785e93e45c0e9ac7026 | /seleniumbase/console_scripts/run.py | 75618875a0f52b767f5be079a50b4f252ae14d64 | [
"MIT"
] | permissive | devopstoday11/SeleniumBase | e89a6dbb6085a568e8dc24240a731c1c6cd4c1ee | 3bfa7ed196b5d7724848981ce56b81ec64b8653c | refs/heads/master | 2022-12-31T12:31:27.572589 | 2020-10-11T22:53:54 | 2020-10-11T22:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,318 | py | """
SeleniumBase console scripts runner
Usage:
seleniumbase [COMMAND] [PARAMETERS]
OR sbase [COMMAND] [PARAMETERS]
Examples:
sbase install chromedriver
sbase mkdir ui_tests
sbase mkfile new_test.py
sbase options
sbase convert webdriver_unittest_file.py
sbase print my_first_test.py -n
sbase translate my_first_test... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
8d24e09b2b96239f7d3cf74e75eecd2fd8eedfbd | 35e119d75ba172b421aaf1913a6556d76b33de68 | /latex/numbers/Sun-Pluto.py | 40fee05dfb6e34e1fab15e6ae5df88e7ea9f0813 | [] | no_license | alexanderbock/paper-ev17-DynamicSceneGraph | ee9bf8ca6e0891aed466829ff3f9d92949205006 | b3b42f2f65ad893b584a7694ea5b2e4a8b5b7047 | refs/heads/master | 2022-11-27T19:03:49.301237 | 2017-06-26T23:48:47 | 2017-06-26T23:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import numpy as numpy
import spiceypy as spice
import math
spice.furnsh("/Users/alex/Development/OpenSpace/data/spice/naif0011.tls")
spice.furnsh("/Users/alex/Development/OpenSpace/data/spice/de430_1850-2150.bsp")
# spice.furnsh("/Users/alex/Development/OpenSpace/data/spice/jup260.bsp")
et = spice.str2et("2016 DEC 11... | [
"alexander.bock@liu.se"
] | alexander.bock@liu.se |
99b1ee70ffa772878a15f3084a2912578be71d8c | f3e3f53bd4e215a1faebc379f119b743df3a2baf | /gogapi/normalization.py | bf363189bf80c75933fa34134e12886bf0ff5fdb | [
"MIT"
] | permissive | V02460/pygogapi | 35df3ea59b43a8112d9a582849be09db9489a63f | f1b3a811444dc521ea4ad7884104086b52348995 | refs/heads/master | 2021-01-01T07:35:19.858719 | 2018-08-14T21:31:27 | 2018-08-14T21:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | from gogapi import names
GOG_TO_IETF = {
"brazilian": "pt-BR",
"brazilian-portuguese": "pt-BR",
"czech": "cs-CZ",
"english": "en-US",
"french": "fr-FR",
"german": "de-DE",
"hungarian": "hu-HU",
"italian": "it-IT",
"japanese": "ja-JP",
"neutral": "*",
"polish": "pl-PL",
... | [
"huberg18@gmail.com"
] | huberg18@gmail.com |
b8858f64d852f6fbb9048c4dacc2b184e3f83c90 | d6492b1ce2be69a79662e6a9cf3a31c7a4da9a14 | /tests/core_tests_chain_collection.py | def51565976b689f7855d7e7d620ce5f8868b593 | [
"MIT"
] | permissive | hwang-happy/AbPyTools | 30bcb9b84189ba83707c5c8bc7aa12699bc39950 | d0bdf26182b4f17f897699d0e0da32d334a8cb7b | refs/heads/master | 2020-03-09T16:52:23.002598 | 2018-03-14T11:27:28 | 2018-03-14T11:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,508 | py | import unittest
from abpytools import ChainCollection, Chain
from urllib import request
import operator
import os
abnum_url = 'http://www.bioinf.org.uk/abs/abnum'
igblast_url = 'https://www.ncbi.nlm.nih.gov/igblast/'
# Helper functions
def check_connection(URL, timeout=5):
try:
request.urlopen(url=URL, t... | [
"g.f.hoben@gmail.com"
] | g.f.hoben@gmail.com |
fb8396a14b32732042079e5d2b45db38323cc35a | c625ede9b5c5ae56af0112e33575fc7abc4d97e0 | /design_patterns/3_1_prototype_pattern/prototype_pattern.py | 5ad741d137551d95f0625a21a8aee00531b217da | [
"MIT"
] | permissive | Exercises-Group/design-patterns | 308001242fe412376cb27b5f3096441942e3b01a | 864d695d00c60a4e56fd1420e3e7bd46ea965bd7 | refs/heads/main | 2023-01-07T01:48:03.140058 | 2020-11-10T00:47:29 | 2020-11-10T00:47:29 | 311,389,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | import copy
class WebSite:
def __init__(self, name, domain, description, author, **kwargs):
"""
kwargs: category creation_date technologies keywords
"""
self.name = name
self.domain = domain
self.description = description
self.author = author
for key... | [
"xiaoqinglin2018@gmail.com"
] | xiaoqinglin2018@gmail.com |
bd5bedcd1cb9e8ea161dfbb74719772d3a8ce921 | 9a783c684808b71b3620027c8bfb074e9412c57e | /python-course/tutoriales/loops.py | 36df76f40d1a1933f342f0790b092d38145c0423 | [] | no_license | ESH2007/Projects-Python | fb97b0e1d247ffab957dd2b40c723017ec3b9ba4 | 9ecb5c6f119064d3fe72ddbb951f9c4b5994b5a7 | refs/heads/main | 2023-08-24T03:57:50.141204 | 2021-10-31T02:32:53 | 2021-10-31T02:32:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | count = 4
while count <= 10:
print(count)
count = count + 1 | [
"noreply@github.com"
] | noreply@github.com |
fb363a89cd15293a0bed822eb4c5966d9e1ac713 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02697/s900893925.py | cfd061b2464153e0333019f32cf31aa1b124ef34 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | n, m = map(int, input().split())
i = 0
c = 0
while (i + 1) + i < (n - i - (i + 1)) and c < m:
print(i + 1, n - i)
c += 1
i += 1
a = n // 2 + n % 2
for i in range(m - c):
print(a - i - 1, a + i + 1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
04489e971a9cf6a6d19f42d7c96e28cf0b5067a7 | 4e1e7c9d3848e4eed4111be11f22436ef3143e6d | /python/p146.py | 3c8f6e11949b34bf6a7404c4066e639241fd4cb1 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rsafarov/Project-Euler-solutions | d2e3bc7ed2bb05e935b1f0e9404eec4a2dcecacd | e5061b8358ddbe9f6563c32ef82e135c233257fe | refs/heads/master | 2021-01-12T06:44:12.461955 | 2016-12-26T22:55:11 | 2016-12-26T22:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | #
# Solution to Project Euler problem 146
# by Project Nayuki
#
# https://www.nayuki.io/page/project-euler-solutions
# https://github.com/nayuki/Project-Euler-solutions
#
import eulerlib
# Right off the bat, we can exclude 90% of the candidates by the following observations:
# - If n = 1 mod 2, then n^2 + 1 = 0 m... | [
"me@nayuki.io"
] | me@nayuki.io |
b73322914094ac6456f1a7cd1239734d8f7655c2 | 0151933c1403741805f7b00914c64ef6dc110855 | /Module01/HelloWorld.py | 450f7f3abe82110f80b7f6f447ee6f6cf0d42b95 | [
"MIT"
] | permissive | biomed-bioinformatics-bootcamp/bmes-t580-2019-coursework-hhoffman-ops | ee58637b1a8b84b8d2bc4ac12ef93a78aaf6d259 | 941f737353ba7c3b01cbe47967b3e458c9cc237a | refs/heads/master | 2020-06-10T23:31:32.035664 | 2019-07-10T01:14:00 | 2019-07-10T01:14:00 | 193,790,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | print('---------------------------------')
print(' HELLO APP')
print('---------------------------------')
print()
user_text = input('What is your name? ')
greeting = 'Nice to meet you ' + user_text
print(greeting) | [
"hh586@drexel.edu"
] | hh586@drexel.edu |
9f37348526722988d92aa0c59d69361e9862c19e | 7175beaddb1c8cf3242f40354006a08047749913 | /ext/order_merge/__init__.py | 91aabec8a1f8dce71b2e44184103f35751ea77d5 | [] | no_license | ichar/extperso.python | 8c28cd7746d4dc6b97670660b935ad7c558dfd6b | 1e558dfcf24202758d16b4d54456f6c85f1c1b06 | refs/heads/master | 2022-03-11T10:16:01.037883 | 2022-02-23T10:09:31 | 2022-02-23T10:09:31 | 225,152,596 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 1,319 | py | # -*- coding: cp1251 -*-
# --------------- #
# order.check #
# --------------- #
from app.types.actions import *
from app.types.statuses import *
from ..defaults import *
from . import postbank
"""
Методы (атрибуты) базового класса:
"""
# ----------------------------------------------- #
# FileType : Fi... | [
"ichar.xx@gmail.com"
] | ichar.xx@gmail.com |
5e160cbf6dd98d74fc577af21f6824c36a28bd06 | 82bf2fef190442bb87290e294a878b34df6272eb | /schedulers.py | 33f03f8f6820bd08a2f27a977d6a2c8311c930bf | [] | no_license | Lennix/pokemongo-bot | aa81960549acbb68a6d1dc114d48fe3c5054d442 | 8ca6c7b484f2300d9c25650d1117962345fea86c | refs/heads/master | 2020-12-25T22:19:58.472857 | 2016-07-20T23:48:40 | 2016-07-20T23:48:40 | 63,818,721 | 0 | 0 | null | 2016-07-20T22:21:54 | 2016-07-20T22:21:53 | Python | UTF-8 | Python | false | false | 1,088 | py | class BaseTaskScheduler(object):
def __init__(self):
self._current_task = None
def update_tasks(self, tasks):
raise NotImplementedError(
'BaseTaskScheduler.update_tasks is abstract'
)
def execute_step(self):
if self._current_task and not self._curre... | [
"kmhnassar@gmail.com"
] | kmhnassar@gmail.com |
a8038e69cb1168e45a240fb3af467e8a4f54c72c | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_09_01_preview/models/_models_py3.py | a3645379c0479487204e3a3056c25d6c3bce9200 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 153,493 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
27602d4145cb6b18e84c1d453be2267e54016958 | 18edf448095c25c45d8f09cd768af6286b5698c6 | /HW4_Tests/employee.py | 736c8dbf5df17375698d0e3834aa737ba1e9f173 | [] | no_license | tomkovyd-pasha/cursor_advanced_hw | 1f98a9692402574184399b39f7dfa3bd64bac291 | 5016b3d5b6f4936540b1c47f49b51fcc9ec3ab01 | refs/heads/master | 2023-05-05T01:42:40.876587 | 2021-05-20T12:18:16 | 2021-05-20T12:18:16 | 362,795,277 | 0 | 0 | null | 2021-05-22T11:29:31 | 2021-04-29T11:34:39 | Python | UTF-8 | Python | false | false | 845 | py | import requests
class Employee:
"""A sample Employee class"""
raise_amt = 1.05
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
@property
def email(self):
return '{}.{}@email.com'.format(self.first, self.last)
@propert... | [
"tree_0_apples"
] | tree_0_apples |
0ab9bff0938e8cd7f6c8e794d7854156a7a71ec5 | 6391703e8d8b9fd31b42ae61c7ac690549e09494 | /settings/TrainSettings.py | 30c611efb06c8acb25f86dcd0d67c8b7339bafe5 | [] | no_license | COULIBALY-Adama/violence-detection | 1ca708709cd34d523fce127b555d8443cc961341 | 3ef1281cb454607422e3060472e538ac555355e1 | refs/heads/main | 2023-01-10T23:49:44.243184 | 2020-11-12T03:48:06 | 2020-11-12T03:48:06 | 312,154,929 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | import tensorflow as tf
import settings.DataSettings as dataSettings
'''
Following two variables control the shape of input
data as the shape: [BATCH_SIZE*UNROLLED_SIZE, w, h, c].
BATCH_SIZE: number of Videos in a batch.
UNROLLED_SIZE: number of Frames in a Video.
For the ConvNet part, the inpu... | [
"coulibalysadama@gmail.com"
] | coulibalysadama@gmail.com |
59d202bfabcd24da83645e53cc481cc7c888cebb | 955243dc1078d8065e1701816e0d97666228c392 | /PGCAltas/apps/embdata/misc/features_project.py | 0b0e0154aee9fb092e90dae1446fdae064c89689 | [
"MIT"
] | permissive | IzayoiRin/PGCAltas | c86dd258cda42ac192fc5f907b6a26ddd3c0c12e | 44d1ac826c64f0eb67d129861895fae37221a4a2 | refs/heads/master | 2022-12-09T15:10:28.137620 | 2020-08-06T00:51:04 | 2020-08-06T00:51:04 | 224,623,930 | 0 | 0 | MIT | 2022-09-30T19:51:49 | 2019-11-28T10:04:36 | JavaScript | UTF-8 | Python | false | false | 11,530 | py | import logging
import os
import numpy as np
import pandas as pd
from PGCAltas.utils.StatExpr.StatProcessor.FeaturesProcessor.processors import FeatureFilterExtractProcessor, \
Feature2DViewerProcessor
from PGCAltas.utils.StatExpr.FunctionalDomain.EIMPAnalyzer import EIMAnalysis
from PGCAltas.utils.StatExpr.Functio... | [
"1204149237@qq.com"
] | 1204149237@qq.com |
adef6b0618255c45cab370479d0ad6eeedd94b30 | a0155c7c2fa514b8870c12d0eec312c41e645ede | /staples_delivery/models/models.py | d88d1b5c0da7bf2290bb3dbb8c88f24f471c2660 | [] | no_license | Drupalnest/erpdev | 861773aa4426cb271c30ecf2b9492855858a31ab | 141adc547d8fc591f4543d96dabd2062685b9248 | refs/heads/master | 2023-05-27T16:06:39.394160 | 2021-06-02T20:45:35 | 2021-06-02T20:45:35 | 373,304,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,391 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, _
from odoo.exceptions import Warning
class Picking(models.Model):
_inherit = "stock.picking"
amount_delivery = fields.Float("Delivery Amount", copy=False)
def action_done(self):
res = super(Picking, self).action_done()
for p... | [
"ubuntu@ip-172-31-24-116.us-east-2.compute.internal"
] | ubuntu@ip-172-31-24-116.us-east-2.compute.internal |
9f0a063da7dca5417b31dd53bb4a5350a6454324 | da7739803f499eae312d231f00e3448a7bf21c8d | /Project4_Stereo/gifwriter.py | b6785f0cd985f1a5677587e5398ea37d4b3cb29b | [] | no_license | f0bs/Computer_Vision | f257e1bab23818c64cc5204c17d84c6e8fcff7fd | dd09157dd64bb9265bd1817b609379462d33296f | refs/heads/master | 2022-12-05T04:09:54.810905 | 2020-05-01T21:27:00 | 2020-05-01T21:27:00 | 249,074,331 | 11 | 7 | null | 2022-11-22T04:40:52 | 2020-03-21T22:48:09 | Jupyter Notebook | UTF-8 | Python | false | false | 846 | py | import subprocess
import os
import imageio
class GifWriter(object):
def __init__(self, temp_format, dest_gif):
self.temp_format = temp_format
self.dest_gif = dest_gif
self.temp_filenames = []
self.closed = False
def append(self, image):
if self.closed:
rai... | [
"fpdaiber@gmail.com"
] | fpdaiber@gmail.com |
fd9c4db801521f4c077f49b92103c225651fbc4d | 457f858a750a17c8bd3d5d9a61757d9075c90e0d | /data/process_data.py | f498a41eba848979506c22c8805576dd484b98dc | [
"MIT"
] | permissive | audichandra/Udacity_Disaster_Respone_Pipeline | 7c59f1d256b923641c0642b68559f65e43b36904 | 51e9ab58494e0ee3f0d1272c08c01bda50d48474 | refs/heads/master | 2020-09-10T06:33:07.500486 | 2019-12-15T01:05:00 | 2019-12-15T01:05:00 | 221,673,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | import sys
import pandas as pd
import numpy as np
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
messages = pd.read_csv(messages_filepath)
categories = pd.read_csv(categories_filepath)
df = messages.merge(categories, on='id')
return df
def clean_data(df):... | [
"noreply@github.com"
] | noreply@github.com |
d8585d18589f6be8c9065b9bf8dd05dc2ab416c8 | ea3ff1e48b25cdc299edb5780a43d006a80b8a37 | /pg_detail/forms.py | 2675385063f1a330d03f5f4de9d96b68d257ef77 | [] | no_license | DebanjanBarman/Django_Website | 1ed82a5b9ea61baf496b51ed5475784c07525615 | 1fb81807337f10a83fee7733d890d3a2efeb9941 | refs/heads/master | 2023-04-30T14:14:01.480388 | 2020-04-23T01:57:12 | 2020-04-23T01:57:12 | 224,343,597 | 1 | 0 | null | 2023-04-21T20:49:40 | 2019-11-27T04:23:45 | CSS | UTF-8 | Python | false | false | 885 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import PgDetail
class PgUserRegisterForm(UserCreationForm):
email = forms.EmailField()
phone = forms.CharField()
class Meta:
model = User
fields = ['use... | [
"debanjanbarman123456798@gmail.com"
] | debanjanbarman123456798@gmail.com |
d4095c72377f1a3c21743a127dc3c24739102f84 | 8fd99d1dcb7a564ea1384d12964d83ab5bd84d0d | /spark_sql/getting_started/__init__.py | e8d4491db7e9725a41f495c04c7d3ffb39437d73 | [] | no_license | ywzhang188/spark-learn | 030017f66af95307b1e830557d0aa332009f3e81 | f4089e9762db51d74d43aab3a9d0c369d53659ef | refs/heads/master | 2021-09-11T11:09:53.775084 | 2021-09-05T10:34:18 | 2021-09-05T10:34:18 | 245,221,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __author__='yzhang' | [
"ywzhang188@gmail.com"
] | ywzhang188@gmail.com |
d223b70f98feecc484233d0deabf731663ce4f49 | b78d6ee248add82b172e3349ac9989100d352042 | /views.py | 6c5a4f5071124d90b1436baba48e47625c948700 | [] | no_license | natdog83/familyfestival | 4883c3b21db2b4f269f173850dfafa704247970e | cc083dc8631b42f378b14f13c7b4fac5ccffe3bd | refs/heads/master | 2020-03-17T17:12:17.570380 | 2018-05-23T15:51:03 | 2018-05-23T15:51:03 | 133,778,896 | 0 | 0 | null | 2018-05-20T07:05:12 | 2018-05-17T07:53:37 | CSS | UTF-8 | Python | false | false | 356 | py | from django.core.mail import EmailMessage
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.template.loader import get_template
from website.forms import ContactForm
def index(request):
return render(request, 'website/home.html')
def contact(request):
return rend... | [
"nathan@nathanmccusker.com"
] | nathan@nathanmccusker.com |
47a89012a2c09dd20a597a64d4632ba171432975 | 3aab11d445011f4a0de1376886dd3899aba44e68 | /opps/contrib/notifications/migrations/0001_initial.py | a2ce3a26f6a442aeb6d8856594359592dcadb7e2 | [
"MIT"
] | permissive | opps/opps | 4ba6a08ac5aa31be48c245b2e8f9d9a714a5e473 | 5552924fa34ea40d24febeac5046bd59f62e0e4f | refs/heads/master | 2023-08-24T21:09:23.489540 | 2023-05-22T20:07:33 | 2023-05-22T20:07:33 | 7,712,379 | 166 | 76 | MIT | 2022-01-06T22:53:23 | 2013-01-20T03:56:15 | Python | UTF-8 | Python | false | false | 16,534 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Notification'
db.cr... | [
"thiagoavelinoster@gmail.com"
] | thiagoavelinoster@gmail.com |
7492e2847b534763e92f206252cc6afcb4c97d57 | 53f6bdbaafeaaba8cff4e085f9296e73dda26aa5 | /segmentation_predict.py | 895b3c3d79a72e1f10a4542259b7840fbc32b4c4 | [] | no_license | HappyLearningML/python_project | 8d6b03ade97c9e6c3580d15f1e76423db32ddd45 | 4d5af2270fc82b761d26e0150935f35455dfc444 | refs/heads/master | 2020-11-23T18:46:34.310846 | 2019-12-13T06:59:55 | 2019-12-13T06:59:55 | 227,774,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | import os,time,cv2, sys, math
import tensorflow as tf
import argparse
import numpy as np
from segmentation_utils import utils, helpers
from segmentation_builders import model_builder
parser = argparse.ArgumentParser()
parser.add_argument('--image', type=str, default=None, required=True, help='The image you want to pr... | [
"binggang.zhang@anzhi-auto.cn"
] | binggang.zhang@anzhi-auto.cn |
f9794155ecb56aea3a814958c88e424f7a874e29 | 73eb20da90d5d37f7ebffc7a15de1f67b965fcda | /moves.py | 5f9e45a1356795c0e244136d70f0065413b54210 | [] | no_license | Borna5356/chess | b77e521a988020ff4b698ba9a17b0ee683b201f9 | 5fe2d508248da627a988c426ad6b32bfec84dcd9 | refs/heads/master | 2023-07-29T06:21:48.907847 | 2021-08-27T02:50:26 | 2021-08-27T02:50:26 | 316,675,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,586 | py | """
This module is responsible for
creating the different possible
moves for the pieces
"""
import pieces
import board
def move_piece(piece, board):
"""
This function is for moving knights
"""
if (piece.get_name() == "knight"):
moves = [(2, 1), (-2, 1), (2, -1), (-2, -1), (1, 2), (1, -2), (-... | [
"bornakevin1@gmail.com"
] | bornakevin1@gmail.com |
17af6fd65a2eeb489c48bed9508109624d97e79b | afb2adab6ff2fe4975d5dc72876bd2773b799f5e | /sql_query_functions/__init__.py | b2df1a27b769f165ca199596a551eb2346ac046f | [] | no_license | bgranville/useful_sql | d1db3f5ee610fede161006166a56dce8ffcfb0a7 | 76772074a9dae71b3f8560830fd67b18004ad719 | refs/heads/master | 2023-04-10T00:59:29.662596 | 2021-04-15T17:44:29 | 2021-04-15T17:44:29 | 358,278,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | from . import sql_query_functions
| [
"blair.granville+git@gmail.com"
] | blair.granville+git@gmail.com |
34d6e385193258946d08caaf1d3f6609ea5a9b5d | 8b441f592a6deb9b0a515cbd92bb4663ad79ffe4 | /churn/models/fbb_churn_amdocs/fbb_churn_eval_sep.py | 85e5496351a6f2707dc3e7bbf0e4fcf1caa8c12c | [] | no_license | carnaum2/use-cases | 0d391a6a10bb70b60a4025152a278b0e4c595d01 | 24920e3828234da691ab643b6dd9a0aa0a5c0df5 | refs/heads/master | 2022-12-07T03:41:34.299274 | 2020-09-07T10:20:32 | 2020-09-07T10:20:32 | 293,249,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,797 | py | # coding: utf-8
import sys
from common.src.main.python.utils.hdfs_generic import *
import argparse
import os
import sys
import time
from pyspark.sql.functions import (udf,
col,
decode,
when,
... | [
"carmen.arnau1@vodafone.com"
] | carmen.arnau1@vodafone.com |
c9bf712cc5791252817aa2fe05598c8046c0b32e | 936c90571ad0a9b0d6f2dc9b10636341b96a0cd4 | /leetcode/51-100/_58_lengthOfLastWord.py | 458ee46100d8599542f8df58b8e4cfd1b3de9e34 | [] | no_license | blackwings001/algorithm | 4d7744d069cde29553d2b496f1683ba7abaf138a | 707829268535a80cfe0ffa1dc0623520c3fcbecf | refs/heads/master | 2022-07-17T17:39:46.760229 | 2020-05-18T00:41:27 | 2020-05-18T00:41:27 | 264,785,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | class Solution(object):
def lengthOfLastWord(self, s):
"""
:type s: str
:rtype: int
"""
# 去掉末尾的空格
while s and s[-1] == " ":
s = s[:-1]
if not s:
return 0
# 找到最后一个空格
for j in range(len(s) - 1, -1, -1):
if s[... | [
"guominglei@zhuanzhuan.com"
] | guominglei@zhuanzhuan.com |
623273803dd7ebf25a98b89980e2c7cd19d27bd9 | c9eb909552cdd7e0bd5e7b60995c7f5bfb31aac4 | /week2_solutions/cat2.py | a0a608245c83f0c930aa53d1e360ad6c380c9112 | [] | no_license | mshahpazova/Python-course-solutions | 7690c34a4225fff7fefecf51b27cc7a812b6ceba | c3899dcf4e4c8203579b656dac3c1f07acfecfe5 | refs/heads/master | 2020-05-06T20:24:19.081059 | 2019-04-08T21:44:50 | 2019-04-08T21:44:50 | 180,236,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # cat2.py
import sys
import os
def cat_multiple(args):
for file_path in args:
print_file(file_path)
def print_file(file_path):
f = open(file_path, "r")
lines = f.readlines()
for line in lines:
print(line, end='')
print()
def main():
file_paths = sys.argv
cat_multiple(file... | [
"mshahpazova@gmail.com"
] | mshahpazova@gmail.com |
57f4fd86ef61862a8603a69e948aeba72ff1531f | 13d3724f5e2de71cd41177e73ea331bb02b2c6fe | /network.py | c63b259bcea27a068b7ffc7cadc7e322fb8bee07 | [] | no_license | chengyang317/deep_encode_decode | db87a2a5f1b6d0f86fbb4ff93812ceff2394b3cf | b2d09e3768b26f9a831b0d738f4e03feed80471a | refs/heads/master | 2021-01-01T04:33:53.003522 | 2016-05-19T01:01:25 | 2016-05-19T01:01:25 | 59,162,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import tensorflow as tf
import prettytensor as pt
import numpy as np
class NetWork(object):
"""
Net work for the encode_decode architechture.
"""
def __init__(self, batch_size):
input_tensor = tf.placeholder(tf.float32, shape=(batch_size, DATA_SIZE))
label_tensor = tf.placeholder(tf.fl... | [
"chengyang317@gmail.com"
] | chengyang317@gmail.com |
b808f1cf42624324ab69043ae3c30199512b0403 | 37cb4ace884fea96e53792307494ea7f91d58112 | /gbots/galconzero/src/training/nnTrainingFile.py | 48fbcdcc936d1f8794ec09335fb6ac0b25f97a6d | [] | no_license | esparano/galcon-alphazero | 4b4a4691a8272afc7d79a84f666b65eb25c31bcd | af4b1739db3427fdf9d41739dab87a7a189534f4 | refs/heads/develop | 2021-06-10T21:28:19.095093 | 2020-01-01T23:57:33 | 2020-01-01T23:57:33 | 141,636,982 | 0 | 0 | null | 2019-09-24T01:51:51 | 2018-07-19T22:31:38 | Jupyter Notebook | UTF-8 | Python | false | false | 4,257 | py | import numpy as np
import random
import math
from os import listdir
from os.path import isfile, join
from nn.config import GAME_SOURCE_DIR
from training.trainingHelper import TrainingHelper
from training.trainingGame import loadTrainingGame
from training.nnTrainingDataAugmentor import getXAxisReflectedTrainingData, g... | [
"evansparano@gmail.com"
] | evansparano@gmail.com |
df5d416fd43076ec834f65c79b25753f695d23bf | 4a04719487c6c5544a9e0d3af26ce486466cc78f | /classes/game.py | 715686a6ed4b20cb4f7fda36aa16fa22d01bffb2 | [] | no_license | Joel-Quintyn/RPG-Battle | 2ec63bc6ff4f25cfcbe1617ea1461ea77dbbdfed | e87cc3fce8aad40d081c49e5aae54443c7477506 | refs/heads/master | 2020-12-13T14:39:34.885008 | 2020-01-17T01:42:50 | 2020-01-17T01:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,854 | py | import random
class bcolors:
ENDC = '\033[0m'
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
# TODO: Make separate ENEMY and PLAYER classes that inherits from main Person class
class Person:
... | [
"Joel-Quintyn@users.noreply.github.com"
] | Joel-Quintyn@users.noreply.github.com |
ee78a1a4388867d11ce5db11f0ecb8fefde85dc1 | a276e4c64e4d7ef1a85a9c7ebf2ed64223ae643f | /Object Oriented Programming Using Python/Day-3/Assignment-15.py | 3e5ecbad30f1c0cf0bb5703cb6896d5f6a7c2741 | [] | no_license | nitin2149kumar/INFYTQ-Modules | 938ad1f5b1b6836eedbdcd7787c341d1774c1e8a | 382610b04527a3d114933d1c1aaeda423f6cc93e | refs/heads/main | 2023-02-03T07:51:52.505546 | 2020-12-17T10:50:11 | 2020-12-17T10:50:11 | 322,059,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #OOPR-Assgn-15
#Start writing your code here
class Parrot:
__counter=7000
def __init__(self,name,color):
self.__name=name
self.__color=color
self.__unique_number=Parrot.__counter+1
Parrot.__counter+=1
def get_unique_number(self):
return self.__unique_number
def g... | [
"nk92292@gmail.com"
] | nk92292@gmail.com |
5e3b2f8294de7e2feebe18de07df351ff4362e0b | 2ffe10752e0ef90d38e72f1291668bbbe2412538 | /tail_string.py | 1e64d55121385159f9b1ad5644028d4fa3af0bb4 | [] | no_license | tzvetandacov/Programming0 | 51d1de8a53163b2104996f7b61ac5acd824c41fe | 8154ede8787f23e5ae9920eb0184a82e8c5f55ce | refs/heads/master | 2021-01-22T20:54:08.163805 | 2015-06-05T17:56:26 | 2015-06-05T17:56:26 | 29,976,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | def tail_stirng(string):
result = ""
for index in range(1, len(string)):
result += string[index]
return result
| [
"tzvetandacov@hotmail.com"
] | tzvetandacov@hotmail.com |
8ec7326b4570c774391a20dfccb1f1a2ba3a9f18 | a90c54097155cafb8fb53d0f0b6ed6d96537e64b | /Code/server/TCPHandler.py | 2aedfefd1a3695239be90065f05213b4cf056360 | [] | no_license | Bendu-Olo/part2 | 0b7a6c1f2c85bbb8b4b45ce1482be43c4b6e05e5 | e62fb0e5e31fe3ab73a68d4320768993a2095ce8 | refs/heads/master | 2020-05-15T00:03:01.225365 | 2019-04-19T18:15:51 | 2019-04-19T18:15:51 | 182,006,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,892 | py | import socketserver
import logging
class TCPHandler(socketserver.StreamRequestHandler):
'''The request handler for the server'''
def handle(self):
while 1:
try:
valid_payload = False
self.data = self.request.recv(1024).strip()
# keep reading ... | [
"spartan_117@juno.com"
] | spartan_117@juno.com |
5e4a596da725e3f2663c46746da8befb6f9d77d9 | 14ed14241eb5baba1f4702a4f79f3ff37c9ee86d | /ppa/pages/migrations/0006_contentpage_description.py | 48e70ac09f2f553b161b04c774ee6118bee6501c | [
"Apache-2.0"
] | permissive | vineetbansal/ppa-django | 491ac7916a4060558c2f4d6d7ecafc0079d8091a | 67469f63195981609aed8ca5247e7c04b23a5236 | refs/heads/master | 2020-05-25T06:52:31.859162 | 2019-05-09T15:44:39 | 2019-05-09T15:44:39 | 187,672,561 | 1 | 0 | null | 2019-05-20T15:59:44 | 2019-05-20T15:59:44 | null | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-20 22:16
from __future__ import unicode_literals
from django.db import migrations
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('pages', '0005_merge_20181116_1144'),
]
operations = [
m... | [
"thatbudakguy@gmail.com"
] | thatbudakguy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.