blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1250d501905f7a4c7d401265f0fb102a6eadc463 | 53f9a87fc1f5bc41bf1953d3dc29795723bc421a | /fun3.py | f284105e4df68daf28e5fd855a95b5bf4b4c83bd | [
"MIT"
] | permissive | shani21-meet/meet2019y1lab7 | f192812005da6e94f2d72368b6a42b0a4a371f1c | 8adac65aff51454a52fa3bfa05e424b22bd0f7a6 | refs/heads/master | 2020-06-21T01:41:27.341389 | 2019-07-29T07:30:47 | 2019-07-29T07:30:47 | 197,313,270 | 0 | 0 | null | 2019-07-17T04:11:07 | 2019-07-17T04:11:05 | null | UTF-8 | Python | false | false | 161 | py | def draw_d1(num,char) :
for i in range((num-1)*8) :
Drawit = char*num
print (Drawit)
return Drawit
star1 = draw_d1(3,'*')
print(star1)
| [
"shani21@meet.mit.edu"
] | shani21@meet.mit.edu |
a9920180a5cfcc87b785b384e0163f7cf7f4c5a9 | 0c0e9916280177cf0f1ab00bfbd36a21ee8a2dcf | /lesson_1/lesson_1_Task_2.py | 135ac8ad91e215cee317c70079f22029da39f916 | [] | no_license | vedmara/ALgorithms_python_lessons_1-8 | 910793d69c3242107497d8c50ba94a7d46575018 | eed05abd7da584d9930cc44884813951e7c1c2a5 | refs/heads/main | 2023-04-28T08:59:53.512439 | 2023-04-18T18:19:22 | 2023-04-18T18:19:22 | 331,944,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | #Выполнить логические побитовые операции «И»,
#«ИЛИ» и др. над числами 5 и 6.
# Выполнить над числом 5 побитовый сдвиг вправо и влево на два знака.
a = 5
print(a, " = ", bin(a))
b = 6
print(b, " = ", bin(b))
print(a, " & ", b, " = ", a&b, "(", bin(a&b), ")")
print(a, " | ", b, " = ", a|b, "(", bin(a|b), ")")
prin... | [
"vedmara87@gmail.com"
] | vedmara87@gmail.com |
6fe08fab4cb5d78ba2ddf7e43888c0428411ca74 | aa8bdae6990b82aa076d3d5337d139f4d14b1f1b | /zvm/__init__.py | 9f2d9fdd6e4d5e3adad766f3b0607556ff230ef4 | [
"BSD-3-Clause"
] | permissive | sussman/zvm | 0a804cf1e49e633a5c727249b8353b30756b22b6 | 10f1086b0718c0143395e8cd1494678679b8fc68 | refs/heads/master | 2023-04-09T00:00:50.899324 | 2023-04-04T23:10:30 | 2023-04-04T23:10:30 | 34,997,489 | 31 | 12 | BSD-3-Clause | 2023-04-04T23:10:31 | 2015-05-03T19:16:54 | Assembly | UTF-8 | Python | false | false | 114 | py | #
# For the license of this file, please consult the LICENSE file in the
# root directory of this distribution.
#
| [
"dave@localhost"
] | dave@localhost |
3eb16eee50afa7e9a078b79240a9518037fd7981 | d747a7dbdcc6a1cbc0ac2ea8c7133b460baf0d58 | /nudgebot/lib/github/reviewers_pool.py | 43a4c8074066d1a48a6288a7ddbf4956a777efc0 | [] | no_license | gshefer/NudgeBot-old | b422949f2b6d25c1fbb31302f90a055826ab1ec9 | b8924ddb353f9e22f3b03c4b8ca92c5d32d0f04b | refs/heads/master | 2021-09-12T21:17:14.648603 | 2018-04-20T23:56:05 | 2018-04-20T23:56:05 | 108,123,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | import logging
from cached_property import cached_property
from config import config
from nudgebot.lib.github.users import ReviewerUser
from nudgebot.db import db
logging.basicConfig()
logger = logging.getLogger('ReviewersPoolLogger')
logger.setLevel(logging.INFO)
class ReviewersPool(object):
def __init__(se... | [
"gshefer@redhat.com"
] | gshefer@redhat.com |
22128eaff3d7f60d7da3beedc7df57c7f05695be | 916f1a47f652f5dc60f0a2bf3867f638792c4193 | /factom_core/block_elements/entry.py | fbf2c169b2002911c61da065a6e5ae7e187c1970 | [
"MIT"
] | permissive | sambarnes/factom-core | c66c83eb2cb3586c38df36a10f7f40d3cb9255f3 | 6e99e056bae5fe1c590e1d05e408fb220b86b2a0 | refs/heads/master | 2020-06-15T01:10:55.635213 | 2020-01-13T15:43:14 | 2020-01-13T15:43:14 | 195,172,046 | 7 | 4 | MIT | 2020-06-08T21:53:56 | 2019-07-04T05:05:20 | Python | UTF-8 | Python | false | false | 4,942 | py | import struct
from dataclasses import dataclass
from factom_core.blocks.entry_block import EntryBlock
from hashlib import sha256, sha512
@dataclass
class Entry:
chain_id: bytes
external_ids: list
content: bytes
_cached_entry_hash: bytes = None
directory_block_keymr: bytes = None
entry_block... | [
"mistersamuelbarnes@gmail.com"
] | mistersamuelbarnes@gmail.com |
71ad3f0dc161322df687c69ddedcd303e2fee89f | 3cd75f3d62911ba3d2114f95203e81d91be32877 | /1day/Str09.py | 432786c3f756f162e0a411ef5774f40ee0cbf828 | [] | no_license | kukukuni/Python_ex | 3667e2fe1db3a161d9e6acd5d8145a3e692f8e89 | e56d10bbcf3dc33b4422462a5b3c2dedb082b8c3 | refs/heads/master | 2022-11-05T13:58:55.770984 | 2019-04-14T00:57:18 | 2019-04-14T00:57:18 | 181,244,073 | 0 | 1 | null | 2022-10-23T06:38:06 | 2019-04-14T00:50:00 | Jupyter Notebook | UTF-8 | Python | false | false | 359 | py | # Str09.py
'''
print('숫자 1번 입력'); n1 = int(input())
print('숫자 2번 입력'); n2 = int(input())
print(n1+n2)
print('숫자 2개 입력')
n1, n2 = input().split(',')
print(int(n1)+int(n2))
print('숫자 2개 입력')
n1, n2 = map(int,input().split(','))
print(n1+n2)
'''
n1, n2 = map(int,input('숫자 2개 입력\n').split(','))
print(n1+n2)
| [
"mxneyelo@gmail.com"
] | mxneyelo@gmail.com |
48d92ff3fd57d5db619c532d719d07d7c91d473e | 1cb6059209db6b4789762ab63873309a26a16a32 | /adhs/server.py | e3570d695107111629be21384310bb46d1075a6b | [] | no_license | kampfschlaefer/adhs | c1634a12f4ab9bf9035211752954729e4318d5d4 | 8aad2aa10ccc44e8e0f8dad76d11ffb8e9aa8c9b | refs/heads/master | 2021-01-20T02:20:31.981724 | 2014-08-05T21:20:23 | 2014-08-05T21:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,934 | py | # -*- coding: utf-8 -*-
import logging
import threading
import time
import zmq
class AdhsServer(object):
def __init__(self, data_socket='tcp://127.0.0.1:14005', pub_socket='tcp://127.0.0.1:14010'):
self.logger = logging.getLogger(self.__class__.__name__)
self.context = zmq.Context()
sel... | [
"arnold@arnoldarts.de"
] | arnold@arnoldarts.de |
3516e23c03dc4c15d6c9b70dbb179330f19726bf | c138db2c89ef98d063e2188bc45eb56a4db6df58 | /generate_image.py | 4a39ad2933f9d6d2a8378a006d884589335c4dc6 | [] | no_license | wfsg00098/XD-server-python | 17d4cbb4fb2e7a4492bb79ddec11eb0e9449da77 | e7d11e44976fa5b490999352149c2ee4aac76cef | refs/heads/master | 2021-04-15T03:36:18.605151 | 2018-03-26T13:46:13 | 2018-03-26T13:46:13 | 126,833,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import pickle
import numpy as np
from PIL import Image
def process_images(img):
# img = img.resize((500, 500), Image.ANTIALIAS)
r, g, b = img.split()
r_arr = np.array(r)
g_arr = np.array(g)
b_arr = np.array(b)
r_arr = r_arr.astype(np.float64)
g_arr = g_arr.astype(np.float64)
b_arr = ... | [
"badegg@vip.126.com"
] | badegg@vip.126.com |
574a1d3404aba0cd7099ee288799899c33facdd1 | d9d0f6bbd1b92cb2e8cd71d1f988d21a10e235d3 | /tests/test_utility.py | 603316a552236eebdb4d882ad0985baf6e0ada60 | [
"MIT"
] | permissive | NoMod-Programming/py-utility | 62e657ca2261aa7fac26d6bfeaeb90f2a18cf94c | 8f66fc1fc569c34798865ab063f1da4e7753c9d5 | refs/heads/main | 2023-01-27T14:40:03.790842 | 2020-12-03T12:45:20 | 2020-12-03T12:45:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | from unittest import TestCase
from pyutility import limit_resource, measureit
def func1a(x):
x = [i for i in range(x)]
return -1
def func1b(x):
# recursive function to find xth fibonacci number
if x < 3:
return 1
return func1b(x-1) + func1b(x-2)
def func2():
# error function
re... | [
"vipulcariappa@gmail.com"
] | vipulcariappa@gmail.com |
97a6a1c5513c76cbf12f904f40a7662ec5781c10 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/video/TSM/mmaction/models/localizers/bsn.py | 1fc25e34f2d18f58ab944770a3fbec26930151c1 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 16,887 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
654bc1e70bc8f8d8e98e3dc33d180ac3d8fc8cee | ceadd00a6842f1c3a925b990cf96a3f7a7b3128c | /С_2_2.py | b24c202e13d0dba89c1de091fa974d2a68dd16f5 | [] | no_license | KirychMe/Homeworks | 853f124b20b4ed7b650279e0431fc0b59b32f9e1 | 4439447d759362039bffbb114efa613720b59f11 | refs/heads/main | 2023-04-07T09:07:35.453584 | 2021-04-07T08:24:26 | 2021-04-07T08:24:26 | 353,669,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,044 | py | from random import randint
class Dot:
def __init__(self, x, y):
self.x = x
self.y = y
def __eq__(self, other):
return self.x == other.x and self.y == other.y
def __repr__(self):
return f"({self.x}, {self.y})"
class BoardException(Exception):
pass
... | [
"noreply@github.com"
] | KirychMe.noreply@github.com |
b5c2b8f10fef9596e3425dd6b98e772f2f735d1b | 93ba6d65cf4f38326f6038efa10153b4f476c595 | /231.py | ca7e7de97370bc1a4b6853803f15018f14ddd52b | [
"Apache-2.0"
] | permissive | Hann1bal/mailer | 1fe2e67cfe2c9851d901d3bf3b2bb465258e8317 | 78140b96bff30ace7714b7b5c198bc0925425a25 | refs/heads/master | 2020-03-31T19:12:53.128099 | 2018-10-10T20:57:19 | 2018-10-10T20:57:19 | 152,488,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | # coding=utf-8
import json
import random
import xlrd, xlwt
import requests
domains = ["fake.com", "sock.com", "rom.com", "tail.com", "tail.kz", "bahoo.com"]
letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l","m", "n","o","0", "l", "1", "2", "3", "4", "5", "6", "7", "8", "9",
"10"]
genders... | [
"apalchev@gmail.com"
] | apalchev@gmail.com |
d6db57ca78ffbfbe55bff62613e68d9b7b0a32b5 | d78e59d285cdd1e16f1d7d836d39715e8a581c8b | /machine_learning/ml_basic/lab10_NN_ReLu_Xavier_Dropout_and_Adam/06_dropout_for_mnist.py | 7ddee527ad9b4d1754910dc4f1f7f773f5825539 | [] | no_license | egaoneko/study | 79c11e0df9d713b05babde3461f2e74f3906ad80 | b965654c7cc8e8361f5ec0596af57c55d35137cc | refs/heads/master | 2020-04-12T09:04:55.131290 | 2017-09-03T10:13:04 | 2017-09-03T10:13:04 | 54,833,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,649 | py | '''
A logistic regression learning algorithm example using TensorFlow library.
This example is using the MNIST database of handwritten digits (http://yann.lecun.com/exdb/mnist/)
Author: Aymeric Damien
Project: https://github.com/aymericdamien/TensorFlow-Examples/
'''
# Import MINST data
from random import randint
imp... | [
"egaoneko@naver.com"
] | egaoneko@naver.com |
a85dc681562f30bdece0ed03dda6718a48363577 | b3e52682276f184726b2ce33289dd9fa66d41db8 | /applications/search/apps.py | c58b75f7f81d0e03fc0418ddc27b4c05b25b4767 | [] | no_license | pythoneast/supermarket | 115786786c8603f177cfa861845c659c113a82f2 | 33787c0c7005526da448056d1c0638183d3cdeac | refs/heads/master | 2020-04-18T03:36:09.740590 | 2019-04-19T14:00:56 | 2019-04-19T14:00:56 | 167,204,971 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.apps import AppConfig
class SearchConfig(AppConfig):
name = 'applications.search'
| [
"mrpalitaev@gmail.com"
] | mrpalitaev@gmail.com |
e20b04d3d4af75c458265332277fb7eb6040b44e | b0087e5a04a5e64a3d02ee9c700392fd26d14f44 | /PeertoPeer/TesteServer.py | bf249887406c12173822691a1dfe1222c11f1699 | [] | no_license | Steelrock/ChordImp | 44288efea0ae4cfe57d6d48ff0bf8b4e6be8aa70 | 07b36f1a05d366cd9cf23cd431611f4c99616956 | refs/heads/master | 2021-01-19T06:30:23.591330 | 2018-04-18T19:11:57 | 2018-04-18T19:11:57 | 87,468,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
__author__ = 'Homero Silva'
import socket
import struct
from array import array
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # UDP protocol
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('127.0.0.1',12345))
while(True):
# Handle sockets
data, addr = s.recvfrom(10... | [
"noreply@github.com"
] | Steelrock.noreply@github.com |
6cd5f1d09e9ce213d100bce44994a5664fd5c84d | f6b0c0b15e8fa41d593ea98803db015952e1bf3c | /todoapp/migrations/0001_initial.py | ee2e6fa08b79c945f90306a372715eb3beb95b3a | [] | no_license | ibrahimmk212/Todoproject | 0419e8c401265e535b885194419aa1ac4af341fb | 43b79ee1883e9aedf111daca94d2628f4e442911 | refs/heads/master | 2023-07-17T21:05:09.983479 | 2021-08-30T05:29:04 | 2021-08-30T05:29:04 | 400,805,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # Generated by Django 3.2.6 on 2021-08-28 21:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.BigAutoField(... | [
"ibrahimmk212@gmail.com"
] | ibrahimmk212@gmail.com |
fd41e677968d9a8b8c40d822cbb8a54d82335c46 | ce99ea10d7ab38c43cfabba7fb3a6483c0385902 | /copy_of_nst_it15099600.py | d60d7ac7e679a20216f7a4d842403e9bb4056ad5 | [] | no_license | kalsha600/Neural_style_transfer | 630ad4758a1284ed5c321a25627ab23dc5ffd2d1 | 25e067869ed6b8fb97be1d8a661639ec8d927840 | refs/heads/master | 2023-06-01T03:08:52.625389 | 2021-06-24T21:51:45 | 2021-06-24T21:51:45 | 380,056,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | # -*- coding: utf-8 -*-
"""Copy of NST-IT15099600.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1piC17xbL211LEGe-KU-0-8PXSYG_gIiZ
# **Import TensorFlow and other libraries**
"""
import tensorflow_hub as hub
import tensorflow as tf
from matplot... | [
"it15099600@my.sliit.lk"
] | it15099600@my.sliit.lk |
442f038c532429a81876bc8698542bb72ca76432 | f8376e83352d2dfab28c41f24345071a77a45fd9 | /Regular Expression/re/phn.py | 80c12d5a86a9d9db9511ad8c56d94500a7275064 | [] | no_license | harihavwas/pythonProgram | 2111ee98eccda68165159db0305c413ee53ee38a | 126df8b3a418dbaf618575b450fd4cfde44c80a7 | refs/heads/master | 2023-07-27T23:39:10.867329 | 2021-09-16T15:35:00 | 2021-09-16T15:35:00 | 402,320,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import re
f=open('phn','r')
x='[+][9][1]\d{10}$'
for i in f:
s=i.rstrip('\n')
m=re.fullmatch(x,s)
if m!=None:
print(s) | [
"hkk4harikrishnan@gmail.com"
] | hkk4harikrishnan@gmail.com |
19172244f167fb5ed0a40749ee2b2ec36237c41a | e65ae5bd9ae1c93e7117e630f7340bc73aa71212 | /lib/gevent/greentest/2.6/test_ftplib.py | 1c2ceeb87282ee5345ebdfd72f7fea38d9e08d23 | [
"MIT"
] | permissive | nadirhamid/oneline | e98ff1ed81da0536f9602ecdde2fb2a4fe80d256 | 833ebef0e26ae8e0cc452756381227746d830b23 | refs/heads/master | 2021-01-21T04:27:41.715047 | 2016-05-30T03:50:34 | 2016-05-30T03:50:34 | 23,320,578 | 1 | 2 | NOASSERTION | 2020-03-12T17:22:24 | 2014-08-25T16:29:36 | Python | UTF-8 | Python | false | false | 15,567 | py | """Test script for ftplib module."""
# Modified by Giampaolo Rodola' to test FTP class and IPv6 environment
import ftplib
import threading
import asyncore
import asynchat
import socket
import StringIO
from unittest import TestCase
from test import test_support
from test.test_support import HOST
# the dummy data re... | [
"matrix.nad@gmail.com"
] | matrix.nad@gmail.com |
ab1aed3943e3e0f4729e367787e731578383db74 | 4071efc5fc93c26538108a3d682fbbf88c761efa | /educational/migrations/0014_auto__add_field_discipline_parent_group.py | 6e06b966f5d251db204c8230b1b953c5c734a362 | [] | no_license | nadavperetz/MeneEduca | aa394f06b774c87fb5272c9f1d044e3c27610331 | 4ce73dadcb657bc4859a0db9ff22da22cfa9806a | refs/heads/master | 2021-01-10T19:53:39.858145 | 2015-07-31T14:04:43 | 2015-07-31T14:04:43 | 21,202,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,548 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Discipline.parent_group'
db.add_column(u'educational_disc... | [
"vitor023@gmail.com"
] | vitor023@gmail.com |
65e20f0caf0165b3bb1456256f57f959ff4adcab | 676b6a3377b0cbdfe037c23e728bbebd0bb3a33e | /past/jorub_preprocessing_v3.py | 6638e86dbccc20a1561deecc7a57b5bde4289c76 | [
"MIT"
] | permissive | henewsuh/seulsekwon_gis_analysis | 93bff8eec5051866d522497f1873413fbfee9d6c | 1a363710f70da86cad90ce1076134bb92815d984 | refs/heads/main | 2023-02-11T05:18:51.948223 | 2021-01-11T12:03:43 | 2021-01-11T12:03:43 | 325,196,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,520 | py | import networkx as nx
import torch
import dgl
import matplotlib.pyplot as plt
from geopy.geocoders import Nominatim
import osmnx as ox
import shapely
import pandas as pd
import pandana as pdna
from shapely import geometry
from descartes.patch import PolygonPatch
from shapely.geometry import LineString
import nump... | [
"40761184+henewsuh@users.noreply.github.com"
] | 40761184+henewsuh@users.noreply.github.com |
6dfa663fae84a4914fee0c94185f7ec314ce8ed0 | f72777ec7bd41fd991b50a850be68bd4314c9791 | /guia-3/exer4/a.py | 0774d36d6434213574cf36f75dd6016118fd684d | [] | no_license | lucabecci/IP-UNGS | 5e8958e0e7a76bb1edab07f021cd4fb4f0ef7a02 | 182d71cab7d6d0cd294b54d3cb669e43617b509e | refs/heads/main | 2023-04-18T16:07:24.599653 | 2021-05-04T04:02:56 | 2021-05-04T04:02:56 | 348,027,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # ) Hacer un programa que muestre, mediante un ciclo, los números desde el 5 hasta el
# 11 salteando de a 2 elementos (5, 7, 9 y 11)
for x in range(5, 11+1, 2):
print(x)
| [
"beccibrian@gmail.com"
] | beccibrian@gmail.com |
345246999c91130c766a8ef54af4c97f2a77ce3d | 4821cb5b0fb238697f9a65aab03fded98b2f073c | /yolo/yolo_image.py | 4764f09f9e029bc1fcf01ee98e18281a6dfdc3f8 | [
"MIT"
] | permissive | rafcc/2020-prenatal-vs-segmentation | a7f818f08054e289f8986d82d49d81853c04c251 | 3f176846ca5b036755087c85aaa7cfc651bf74d3 | refs/heads/master | 2022-12-24T00:57:29.695580 | 2020-10-06T11:30:57 | 2020-10-06T11:30:57 | 300,056,793 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | import sys
import argparse
from yolo import YOLO, detect_video
from PIL import Image
import sys
import cv2
import os
def trim(img, box, outdir, mode="extend"):
"""
trim image file with result of yolo detection
Parameters
----------
img : str
input image file path
box : numpy array
... | [
"akira.sakai@jp.fujitsu.com"
] | akira.sakai@jp.fujitsu.com |
255204e3d0c9bdbb1dd6c835f9d37578ec90ccbf | 7cf87a820fbeb90580cfbddcc4219af576f4f799 | /0x03-python-data_structures/3-print_reversed_list_integer.py | 23c8d19974297862dd3300aba0795bf58e6efc46 | [] | no_license | BigObasheer/holbertonschool-higher_level_programming | cfac3ff13e19aadc96523cf79ecaee4c5836d926 | a39253cc2d32576ff0072eb2469f75553d7e6212 | refs/heads/master | 2023-03-07T09:05:52.101158 | 2021-02-19T03:42:54 | 2021-02-19T03:42:54 | 259,472,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #!/usr/bin/python3
def print_reversed_list_integer(my_list=[]):
if my_list:
i = len(my_list) - 1
for j in range(i, -1, -1):
print("{:d}".format(my_list[j]))
| [
"838@holbertonschool.com"
] | 838@holbertonschool.com |
5f70e595ac2f2083a65b4a931e1a8d6df8fd36c2 | 240ea8fd1fff99f950b96111fac17b9c7e48737a | /Project Interface/ENV_smartstock/Scripts/f2py.py | 5bfb79ff96a69ef52bc77235c45c8026cb6a8fde | [] | no_license | deniztim/Data_Mining_and_Machine_Learning | 9705cf94d7b0a57e57ce9135a42526813b99e003 | a6bdae3c054ddfa51f3862faf24216816e571bd2 | refs/heads/master | 2020-03-23T14:20:17.768673 | 2018-07-20T06:20:49 | 2018-07-20T06:20:49 | 141,669,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!c:\projects\datamining\env_smartstock\scripts\python.exe
# See http://cens.ioc.ee/projects/f2py2e/
from __future__ import division, print_function
import os
import sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
i = sys.argv.index("--" + mode)
del sys.argv[i]
b... | [
"deniztimartasiu@gmail.com"
] | deniztimartasiu@gmail.com |
5210afc84531e89637ca9db677df678b13d46e8d | f89cd872172489785df20354c7a78bc332c4d894 | /equationTemplate.py | e46c6c29a3f9ac3c018bd91bbd236fa72b2eb375 | [] | no_license | amararora07/CodeFights | d565ed21b1f5c2fbe4d902159db61bee8244e1c8 | 51e3cb75eb32d22dac60f380b1f5b87822678c20 | refs/heads/master | 2021-09-06T15:45:08.716269 | 2018-02-08T06:06:52 | 2018-02-08T06:06:52 | 109,230,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from itertools import permutations as p
def equationTemplate(v):
for i in p(v,4):
if i[0]*i[1]*i[2]==x[3]:
return True
elif i[0]*i[1]==i[2]*i[3]:
return True
return False
| [
"noreply@github.com"
] | amararora07.noreply@github.com |
c13c61e702e21c43f3082f977cf62019173684e0 | 799dacb4e044369a33547ba2e65e3c3d086b4b2d | /apps/user_operation/migrations/0003_auto_20200331_2019.py | 976532f89b048041d270afb3868c676c7de2ec11 | [] | no_license | youngguo2/Mxshop | 6c918ec77e763ae08e9277b59ecebf086f8ffa65 | 798a5be945151d91989bca351142e9ee84a05872 | refs/heads/master | 2022-05-05T10:45:26.275045 | 2020-04-19T14:24:28 | 2020-04-19T14:24:28 | 251,020,458 | 1 | 0 | null | 2022-04-22T23:10:20 | 2020-03-29T11:54:00 | JavaScript | UTF-8 | Python | false | false | 675 | py | # Generated by Django 2.2 on 2020-03-31 20:19
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_operation', '0002_auto_20200331_1957'),
]
operations = [
migrations.AddField(
model_name='useraddress',
... | [
"1123396344@qq.com"
] | 1123396344@qq.com |
4b85161767dfeedfb19677af0a9ce7fdf0bdb867 | bb4caea505c7fc9faf36f404ec8d681449fee507 | /Guess my number game.py | cc697e727a95aeba06bf5d7dec2f1f57cfdf6374 | [] | no_license | JunkaiZhu/python_guess_my_number_game | 5402015dda70b20b4948e47350ba30ab60629800 | bfb7bb30cf83f8a23c5b8078186fea86326e038e | refs/heads/master | 2022-11-08T06:23:57.464612 | 2020-06-19T09:36:49 | 2020-06-19T09:36:49 | 273,456,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | high = 100
low = 0
print("Please think of a number between 0 and 100!")
guessed = False
while not guessed:
guess = (high + low)//2
print("Is your secret number" + str(guess) + "?")
y = input("Enter 'h' to indicate the guess is too high. Enter 'l' to indicate the guess is too low. Enter 'c' to indicat... | [
"noreply@github.com"
] | JunkaiZhu.noreply@github.com |
db08cdc80e32609ea9c3d219290ba3cfaedf757a | e87823d7b05865efe3aa597c7c22b758af97d783 | /trainSet/tkSpider3.py | 1fc84d4fd28248270b8aa74cff9340c1115ff34c | [] | no_license | Makos63/QAExtractor | f8a81039a63b2c23a98118ea3e79a3540b5dda53 | af25a20d5417ed6f2b201676414869c855bc430d | refs/heads/master | 2023-05-07T08:22:44.740157 | 2021-05-19T09:09:05 | 2021-05-19T09:09:05 | 355,897,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | import scrapy
from scrapy.http import Request
from webscalper.items import WebscalperItem
import json
class ArticlesSpider(scrapy.Spider):
name = 'ArticlesScraper'
allowed_domains = ['www.tk.de']
def __init(self):
self.extractedUrlList = []
self.visitedURLs = set()
self.unvisitedU... | [
"maciejkrzyszton63@gmail.com"
] | maciejkrzyszton63@gmail.com |
27956a7ae022b1970e4840e35af9eea057685857 | b5e7bd2d82fea18b13d69d090647b9d84ae8b8cf | /badges/views.py | d8f15ec90b69ef1a1b87c42daf94c241852aa373 | [] | no_license | manuGil/badgeApp | 38fcb4b45a28af9955eae3188c8736ea0abbbe54 | 0530d607e8811ef5df15c22cc98da8855c951b95 | refs/heads/main | 2023-02-27T04:20:19.372601 | 2021-02-01T08:36:37 | 2021-02-01T08:36:37 | 334,868,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.shortcuts import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('Hello, world')
| [
"gilbert.mg22@gmail.com"
] | gilbert.mg22@gmail.com |
380cb5a1e2cf85fb3c7431a312ad036cab0a410f | 000e9c92b8b86402ab506a191cc60302f2c269a3 | /orders/migrations/0004_translations.py | c2c7f568841f74a299851a573b8e9ccd93dfb5b5 | [
"MIT"
] | permissive | FrankCasanova/onlineshop | 71c29fe3cc6a1dbb715474ffb09bde98443591af | 1a9011ce3d49976e2584cdadc33893d04947a73b | refs/heads/master | 2023-08-25T20:24:15.754513 | 2021-10-22T16:59:34 | 2021-10-22T16:59:34 | 406,788,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | # Generated by Django 3.2.8 on 2021-10-17 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0003_auto_20211011_1122'),
]
operations = [
migrations.AlterField(
model_name='order',
name='address',
... | [
"frankcasanova.info@gmail.com"
] | frankcasanova.info@gmail.com |
8a06a2e7dfcfe5bf589af9767e48dd05d03919eb | cc6e7f63eaf4b3570771c46fb8b24b88e6e1f59e | /typical/TDPC/A.py | 0980d25005faca221dd08fe47b5fde2dab33484c | [] | no_license | kamojiro/atcoderall | 82a39e9be083a01c14445417597bf357e6c854a8 | 973af643c06125f52d302a5bc1d65f07a9414419 | refs/heads/master | 2022-07-12T00:14:38.803239 | 2022-06-23T10:24:54 | 2022-06-23T10:24:54 | 161,755,381 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from copy import deepcopy
N = int( input())
P = list( map(int, input().split()))
Q = set([0])
for i in range(N):
R = deepcopy(Q)
p = P[i]
for r in R:
Q.add(r+p)
print(len(Q))
| [
"tamagoma002@yahoo.co.jp"
] | tamagoma002@yahoo.co.jp |
2bedb12cb2b704a1990287c3c9623e526b68825e | 833a83e8fd32041b20c0a13f6bf0759c4067bee6 | /homeworkpal_project/maximo/migrations/0003_auto_20151104_2238.py | acc9ef30e6f720f7fc7d129fd7a46d5c7829d0d7 | [
"MIT"
] | permissive | luiscberrocal/homeworkpal | ac92de1dcbd43d9290fde8174f4d4544ed2cad23 | 342acf876264fade818b107f4af13cac067f1ace | refs/heads/master | 2020-12-12T13:13:47.022473 | 2015-12-29T19:38:43 | 2015-12-29T19:38:43 | 44,059,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('maximo', '0002_datadocument'),
]
operations = [
migrations.AlterField(
model_name='datadocument',
na... | [
"luis.berrocal.1942@gmail.com"
] | luis.berrocal.1942@gmail.com |
83020b3d14f415d4c55749f26f703d4dafbe4c47 | 4971e7b6d0e77ee69ff8de991df3970c30287ca7 | /estate/migrations/0011_auto_20170412_0005.py | 62ff53b1d53677d09ae620d7c7119e72d02259e5 | [] | no_license | ferachi/leoestate | 60bab73bd2523b4c8c19df26ecb09145d910b624 | 5a066ae1bfbfabe2fd3dd6cf129a8b0b4fa460c4 | refs/heads/master | 2021-01-01T19:47:35.084611 | 2017-08-15T20:27:20 | 2017-08-15T20:27:20 | 98,682,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-11 23:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('estate', '0010_auto_20170410_2349'),
]
operations ... | [
"mkvezeh@gmail.com"
] | mkvezeh@gmail.com |
21fbee6df470e1100c9990e738892141bd260770 | a364f53dda3a96c59b2b54799907f7d5cde57214 | /easy/278-First Bad Version.py | b8730330fdf693d30feb90c5163921ac734e1e16 | [
"Apache-2.0"
] | permissive | Davidxswang/leetcode | 641cc5c10d2a97d5eb0396be0cfc818f371aff52 | d554b7f5228f14c646f726ddb91014a612673e06 | refs/heads/master | 2022-12-24T11:31:48.930229 | 2020-10-08T06:02:57 | 2020-10-08T06:02:57 | 260,053,912 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | """
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad.
Suppose you have n versions [1, 2, ..., n] an... | [
"wxs199327@hotmail.com"
] | wxs199327@hotmail.com |
43ee6e23c1f8879e5b2854680611a68ca0648787 | 1dcd28c19d66c11b2b4dce163ea524bea40707a0 | /pyomo/neos/kestrel.py | 7ea978269e195b7af17d9abd3b606fcd8d1e9a51 | [
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive"
] | permissive | astrojuanlu/pyomo | 077b4d7a523b6d2ed1adefdb7e1db334ea749c73 | 95b5db58a9792eeb5198265c89e6d03357af4658 | refs/heads/master | 2021-05-31T06:15:38.022702 | 2016-02-18T19:38:33 | 2016-02-18T19:38:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,392 | py | #!/usr/bin/env python
#
# This software is a modified version of the Kestrel interface
# package that is provided by NEOS: http://www.neos-server.org
#
# _________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright (c) 2014 Sandia Corporation.... | [
"wehart@570ccb8d-5833-0410-9ce8-cbedd0da42eb"
] | wehart@570ccb8d-5833-0410-9ce8-cbedd0da42eb |
f69b02c9347c26923ceef328a3a2c39a5ba4f6b3 | 927fd93bd4be166f63e8cda60f8057b3279a86ed | /Shopify/settings.py | a82f985216c6af71de5256a5b086160f139ae190 | [] | no_license | yourstoryteller/Shopify | a57c55b669283c72fa0352c2aff575dcf0010b5c | 4b8bafc7e00b189ef318329340f6cb4b04168623 | refs/heads/main | 2023-03-02T17:13:11.357915 | 2021-02-14T07:24:00 | 2021-02-14T07:24:00 | 331,897,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | """
Django settings for Shopify project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"noreply@github.com"
] | yourstoryteller.noreply@github.com |
5b74f7b4264a2bdcf246eb141174ffb4f69616fe | 9fbe90eab4cb25022e7c93776da3a5733656a09a | /examples/boardgame/player.py | 039c9731b60bbac9246f112b24ac637561d86a8e | [
"MIT"
] | permissive | Nathanator/networkzero | 453e218d6e0b8080158cb968f4acc5e0cb0fb65c | e6bf437f424660c32cf1ef81f83d9eee925f44e7 | refs/heads/master | 2021-01-15T13:14:53.101742 | 2016-04-07T20:32:28 | 2016-04-07T20:32:28 | 55,724,894 | 0 | 0 | null | 2016-04-07T20:12:18 | 2016-04-07T20:12:17 | null | UTF-8 | Python | false | false | 197 | py | import networkzero as nw0
address = nw0.discover("board")
player = input("Which player? ")
while True:
move = input("Move: ")
nw0.send_command(address, "MOVE '%s' '%s'" % (player, move))
| [
"mail@timgolden.me.uk"
] | mail@timgolden.me.uk |
6bd6cf6358f7b0ebfc7f97e6ec3b1df34ede1543 | 688b54554824d61079b8ed5dacbb288edcd360f2 | /teammatefinder/urls.py | c0aa239c19d5d0d72500c26b9a150cbaa29edab4 | [] | no_license | ynk1011/teammates | 0076cb621d29a6ac25461255d2d087778e2ec151 | ed91523e1bac325fa73b4ce55f003a399aa1c511 | refs/heads/main | 2023-09-04T18:26:09.321362 | 2021-11-14T08:54:23 | 2021-11-14T08:54:23 | 427,875,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | """teammatefinder 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')
Clas... | [
"yunakim@ewhain.net"
] | yunakim@ewhain.net |
13fa8feb12381497d43c29fb6b3033f1e053a654 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/090d103842942eab3616de2464e26c4db3b402611e2f44f446e8b4086b8df170/xml/parsers/expat/model.py | a7f24af4b3f303679b553ba09459d025a5309dbf | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # encoding: utf-8
# module xml.parsers.expat.model calls itself pyexpat.model
# from C:\Users\Doly\Anaconda3\lib\site-packages\numba\npyufunc\workqueue.cp37-win_amd64.pyd
# by generator 1.147
""" Constants used to interpret content model information. """
# no imports
# Variables with simple values
XML_CQUANT_NONE = 0... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
97aca61d73854027135a1eb22805a48fc6355520 | 02d14665ebba799610449b5fd6e6837f66f58da0 | /fpnn/error_recorder.py | 18c3535d041a7802b429bd00d1571473687f79c5 | [] | no_license | highras/fpnn-sdk-python | 91f5af1c71cfae6f04211767479082a62d0efb15 | b1559ac9a99287b7b3fd1ac08927e665494f7bbc | refs/heads/master | 2021-04-06T05:26:08.976342 | 2020-12-03T07:16:19 | 2020-12-03T07:16:19 | 124,368,031 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | #encoding=utf8
class ErrorRecorder(object):
def __init__(self):
pass
def record_error(self, message):
pass | [
"junstor@gmail.com"
] | junstor@gmail.com |
289052dc0047f76217a7e210d9bdce9ffad4b680 | 57924abad02102b00b1952d401de236fdb64727e | /precision_utils.py | 49305b0eb3e0dcc2f9d52c57da01aa844cf30c9f | [
"MIT"
] | permissive | 0222826398/Stealthy-Backdoors-as-Compression-Artifacts | 50b76859f58453d677f2ff8757a6022b67cb32d3 | f8f4da6613a655c65050818ef97866accc085928 | refs/heads/main | 2023-08-20T10:50:15.240696 | 2021-10-17T05:32:07 | 2021-10-17T05:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,060 | py | import torch
import torchvision
import torchvision.transforms as transforms
import numpy as np
from utils import progress_bar
from PIL import Image
from torchvision.utils import save_image
from collections import OrderedDict
from models import *
import gtsrb_dataset
transform_trigger = transforms.Compose([
tr... | [
"yulongtian@Yulongs-Laptop.local"
] | yulongtian@Yulongs-Laptop.local |
27b49edfc6db928828021c003f4d3fad89731e7d | 7b4c07076f0df5bc71bfb1ae23313ca5663d0b26 | /venv/Scripts/pip-script.py | 7252d06f478e9fe190abbb519c59e148ced1e80f | [] | no_license | lkaae2018/Tilfaeldighedsgenerator | 8215cbacdcd0bd043ece71e7ad59f8a371d96339 | 0f1bb0dc9f80ea890030ddec0692aa4d0bc502ae | refs/heads/master | 2020-05-03T13:36:31.800601 | 2019-03-31T11:44:49 | 2019-03-31T11:44:49 | 178,656,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #!C:\Users\lkaae\PycharmProjects\tilfaeldighedsgenerator\venv\Scripts\python.exe
# 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?|\.exe)?$'... | [
"lak@djhhadsten.dk"
] | lak@djhhadsten.dk |
aaef2d15129a5165f1996b41811e74b2bb8706b9 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20f21bf6-5cc5-11e4-af55-00155d01fe08.py | 291d4124651b9efe02966dcbd2fccda4c97ca607 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | #!/usr/bin/python
################################################################################
# 20f21bf6-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
16b2c361f023830b630a4f9038bd692b899bf539 | eb255c4c5458d0335680772a8dcdcd37110bc936 | /images/CodeValidator.py | 2dd6026a34ac2d887bb4910cb55ac2d6528e8b78 | [] | no_license | tauprojects/final | 787f1cf12f929a4b046e463cc43a20d33696e3cd | a64fd51d3f37f195486c2f07b2959008735469ea | refs/heads/master | 2020-04-06T07:02:18.480739 | 2016-09-20T17:43:16 | 2016-09-20T17:43:16 | 64,004,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | from os import listdir
from os.path import isfile, join
PROJECT_PATH = "C:\\Projects\\TheCoolestProjectEver"
SUB_FOLDERS = ["."]
REQUIRED_FORMATS = [".c", ".cpp", ".h"]
BAD_SYMBOLS = ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
def BuildFileList(path):
result = []
for f in listdir(path):
... | [
"Matan.Gizunterman@arm.com"
] | Matan.Gizunterman@arm.com |
203c06e59e3d4804763af8ca973fea45f69e1ee5 | 83b5a58d99bd999c1840dec2e4c115a97ebc30fa | /src/CardGame/CardDeck.py | 8b06ca54c5a4dc829d0dbc0360bf035c9bdefafe | [] | no_license | uujo/card-game | 0b8e11f7d5291d1bde22ca555603fce309c4150e | 92c02d39286e54e40405554ee383e678de6aba05 | refs/heads/master | 2020-04-30T02:05:03.344745 | 2019-03-21T03:08:52 | 2019-03-21T03:08:52 | 176,548,745 | 0 | 0 | null | 2019-03-21T03:08:53 | 2019-03-19T15:55:41 | Python | UTF-8 | Python | false | false | 1,060 | py | from CardGame.CardDeckABC import CardDeckABC
from CardGame.Card import Card
class CardDeck(CardDeckABC):
"""
Contains a deck of 52 cards.
By inherting CardDeckABC, CardDeck class provides shuffle() and dealOneCard().
"""
# rank and suits are ordered by its value (ascending order)
_ranks = [str... | [
"skyryu@hotmail.com"
] | skyryu@hotmail.com |
d979d6055cd3b9523c5c7306b9146672c4d1ba5a | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/journey.py | fbec726990b63d058dbf48495740315328d8d4e3 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 1,097 | py | from __future__ import annotations
from dataclasses import dataclass, field
from xsdata.models.datatype import XmlDuration
from travelport.models.air_segment_ref import AirSegmentRef
__NAMESPACE__ = "http://www.travelport.com/schema/air_v52_0"
@dataclass
class Journey:
"""
Information about all connecting se... | [
"chris@komposta.net"
] | chris@komposta.net |
638e878217852ce1198a3a60405b1fade58a1e8b | f7069f89249bbead04f0a656806879c707c951fa | /convert_mif.py | be255a9c76fa737946d1ea9e4359bded521e20d6 | [] | no_license | ny-a/seccamp-2021-l3-he-cpu | 06d8821195d27e73c4b9114ada454bf2fa81328b | 4b081db55e4cc68c88aef2cb2cbf758dcf2bf918 | refs/heads/main | 2023-08-14T13:03:43.735597 | 2021-09-19T13:49:36 | 2021-09-19T13:49:36 | 400,970,557 | 5 | 0 | null | 2021-09-19T13:49:37 | 2021-08-29T06:41:08 | Scala | UTF-8 | Python | false | false | 2,199 | py | import sys
import argparse
B0_INSTRUCTION = 0xA000
EOL = ';\n'
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('filename', nargs='?', default='output.mif')
parser.add_argument(
'-t', '--toml', help='Output as toml', action='store_true')
args = parser.parse_ar... | [
"58758248+ny-a@users.noreply.github.com"
] | 58758248+ny-a@users.noreply.github.com |
bb472d2162dfc4d29a4a5e5bcfd1c35077d92b4d | 5b5b5531f7c2f456e6b3328ab780dd451113d10e | /meta/__init__.py | dda09c51abf2d94550256e1b4b104b28db81584b | [] | no_license | Uvaismon/Corozo | b8b31cc3591d1ceff66f803bb2e4b6473af98ac1 | e544380c2835c1b368965d27726498cdf1de70a4 | refs/heads/main | 2023-07-01T22:56:11.986957 | 2021-08-12T17:01:11 | 2021-08-12T17:01:11 | 379,663,190 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | """
This package perform handling json files used to store meta data.
"""
from meta.universal_data import UniversalData
from meta.index_data import UserDataIndex
from constants import *
universal_customer_data = UniversalData('customer')
customer_index_meta = UserDataIndex(CUSTOMER_INDEX_META_FILE, CUSTOMER_INDEX_DI... | [
"uvaisullas@gmail.com"
] | uvaisullas@gmail.com |
6f7393b8be9b1f7cdda141ca678315df0f7d0786 | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-435885.py | e88c6b46b1f95afffedafd3382b1d82cbf0470bf | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | # dispatch.py
# definitions:
import threading
class Dispatcher(object):
def __init__(self, targets=None, nonBlocking=True):
if not targets or targets is None:
self._targets = []
else:
self._targets = targets
self._nonBlocking = nonBlocking
def __iadd__(self, ta... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
cb0e7bf0d07ab3a63cbf6e86a3f500d771f3843e | aced407b41f6669f69e9eb8bd599260d50c0bd3f | /server/libs/top/api/rest/TradeShippingaddressUpdateRequest.py | 0f5dd43dd498846c1ab1208cb7481da7a49cf645 | [] | no_license | alswl/music_sofa | 42f7d15431f11b97bf67b604cfde0a0e9e3860cc | c4e5425ef6c80c3e57c91ba568f7cbfe63faa378 | refs/heads/master | 2016-09-12T18:37:34.357510 | 2016-05-20T11:49:52 | 2016-05-20T11:49:52 | 58,946,171 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | '''
Created by auto_sdk on 2013-11-07 12:53:22
'''
from top.api.base import RestApi
class TradeShippingaddressUpdateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.receiver_address = None
self.receiver_city = None
self.receiver_district = None
... | [
"alswlx@gmail.com"
] | alswlx@gmail.com |
2b7b83541811e805e6ef33b2de38bf470ed16c21 | fa65d42b3f944feae13e16ec69936bb788a11518 | /Exercicios - Aquecimento/EX01/ex01.py | b43f67103dcdfee53c076c579fc7f5da444f8b1c | [] | no_license | VitorHSF/Programacao-Linear-E-Aplicacoes | 28ee533e26dd2706bb8c123e7c457334ee55cfd0 | 690485866f04fb4973007a65ebf75442b9e7b1cd | refs/heads/main | 2023-07-16T23:20:19.918676 | 2021-09-07T02:41:46 | 2021-09-07T02:41:46 | 399,219,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | nome = str(input('Digite seu nome: '))
print('Você digitou: {}'.format(nome))
string = nome[::-1].upper()
print('A frase que você digitou invertida fica: {}'.format(string)) | [
"noreply@github.com"
] | VitorHSF.noreply@github.com |
0203ee949e80c337db199c170eae4e2cfd879524 | 0930b6c994225d44818887716ce4e8771af86b81 | /exercisesDosCapitulos/10-arquivosEExcecoes/10.1-aprendendoPython/aprendendoPython.py | 6e32d8cb6c3d8180a69b10b03a53d70b8a10c8cd | [] | no_license | jonasht/cursoIntesivoDePython | 44d81b08f1652c4fa7a6d14a0e3f62ee8e06944c | fb5f5c9884fb1a6062a7c4e7676e5cc3b13c0ebb | refs/heads/master | 2023-05-23T20:44:34.372825 | 2021-06-19T12:13:46 | 2021-06-19T12:13:46 | 293,325,804 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 728 | py |
# para poder achar o arquivo no ubuntu deve-se escrever no terminal
# code "diretorio" do arquivo para poder funcionar
arquivoDeTexto = 't.txt'
def l(): print('=-'*40+'=')
print()
l()
print('mostrando um arquivo todo de uma so vez com arquivo.read()')
with open(arquivoDeTexto) as arq:
palavras = arq.read()
... | [
"jhenriquet@outlook.com.br"
] | jhenriquet@outlook.com.br |
6998f40ddf6588338cadba723be2bd1198731b06 | a3a33b40cca9a173e817029caa83735c00791c25 | /nlppy/web_scraping_indeed.py | c50290946b46cdf388bd515a0621e4edcf56a5aa | [] | no_license | abushonn/py | 10c1edabe7fb2ffb6947d02d76e95e9cfbd553d9 | c854fdfe517337c449d5b19afff5e4ee91271486 | refs/heads/master | 2021-07-15T16:35:03.119041 | 2020-09-05T20:07:19 | 2020-09-05T20:07:19 | 205,441,019 | 0 | 0 | null | 2020-08-02T08:31:49 | 2019-08-30T19:00:13 | HTML | UTF-8 | Python | false | false | 4,467 | py | from time import sleep
from selenium import webdriver
from selenium.common.exceptions import ElementNotVisibleException
from selenium.common.exceptions import NoSuchElementException
import pandas as pd
import random
from math import *
# define scraping function
def scrape_indeed(search, loc, limit=50, canada=False):
... | [
"YANT@il.ibm.com"
] | YANT@il.ibm.com |
258b5d5ef83e29699922ce48553f1abe50d6ba58 | a0044ff62c1899d5dcf2fe91be5f019ff7536474 | /src/BaseUtils.py | 079dea76142eb306fabf85c35c1448c746814522 | [
"BSD-2-Clause-Views"
] | permissive | ambidextrousTx/RNLTK | a1d4df9f2259acbe2486ceb7266d4b7587bfbc54 | bd7cf90191c6699be2f890ec249d64e3e672f720 | refs/heads/master | 2016-09-05T13:06:47.570702 | 2015-11-12T04:17:07 | 2015-11-12T04:17:07 | 21,721,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | '''
Base NLP utilities
'''
import re
def get_words(sentence):
''' Return all the words found in a sentence.
Ignore whitespace and all punctuation
>>> get_words('a most interesting piece')
>>> ['a', 'most', 'interesting', 'piece']
>>> get_words('a, most$ **interesting piece')
>>> ['a', 'most... | [
"ravisinha@my.unt.edu"
] | ravisinha@my.unt.edu |
f9a3905061d392da39f24c565147913325dbd3f4 | 3b625b6a8867c71399b421615f2391269e6dee53 | /appfordomaintests_de_2065/wsgi.py | 1c0dab674258642ab854785653e2665b332b5146 | [] | no_license | crowdbotics-apps/appfordomaintests-de-2065 | cd691f1b94ed3f792724f7d0316518400c07619c | 78e2519a37f767953064c31e898d08b7b395b6bb | refs/heads/master | 2022-04-15T19:07:57.805517 | 2020-03-19T16:48:08 | 2020-03-19T16:48:08 | 248,555,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for appfordomaintests_de_2065 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d7e447bd7fbae2c61c9386edb91c418ec2569a40 | 24f0677e33a02020c8964b1085b54b3e9c4d9709 | /app/tests/test_controllers.py | d6a22bb01a31b158e297cd991efcd97940fed1a9 | [] | no_license | juliocmartins/python-api-test | ee0d0f0a97b3ed90b2f288dba753f4e6b6c12d4d | 0dde4fcfa0e01c518375d33121f6990aa14abd23 | refs/heads/master | 2023-04-11T10:22:38.104453 | 2021-04-05T11:46:46 | 2021-04-05T11:46:46 | 352,355,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from src import db
from src.models import Trainers,Teams
def test_save_trainer():
t = Trainers(name="Ash_Test")
t.save()
assert type(t.id) is int
assert t.id > 0
def test_save_team():
t = Trainers(name="Ash_Test")
t.save()
tm = Teams(name="Team_Test", trainer_id=t.id)
tm.save()
... | [
"juliocmartins87@gmail.com"
] | juliocmartins87@gmail.com |
0670598f0b9e25686ea6b06c303213ef4d557478 | 5e2dddce9c67d5b54d203776acd38d425dbd3398 | /spacy/lang/bn/tokenizer_exceptions.py | 82f3cfaf78640cf4e4be76697544dcba61533595 | [
"MIT"
] | permissive | yuxuan2015/spacy_zh_model | 8164a608b825844e9c58d946dcc8698853075e37 | e89e00497ab3dad0dd034933e25bc2c3f7888737 | refs/heads/master | 2020-05-15T11:07:52.906139 | 2019-08-27T08:28:11 | 2019-08-27T08:28:11 | 182,213,671 | 1 | 0 | null | 2019-04-19T06:27:18 | 2019-04-19T06:27:17 | null | UTF-8 | Python | false | false | 953 | py | # coding=utf-8
from __future__ import unicode_literals
from ...symbols import ORTH, LEMMA
_exc = {}
for exc_data in [
{ORTH: "ডঃ", LEMMA: "ডক্টর"},
{ORTH: "ডাঃ", LEMMA: "ডাক্তার"},
{ORTH: "ড.", LEMMA: "ডক্টর"},
{ORTH: "ডা.", LEMMA: "ডাক্তার"},
{ORTH: "মোঃ", LEMMA: "মোহাম্মদ"},
... | [
"yuxuan2015@example.com"
] | yuxuan2015@example.com |
e0469a16f055c5c1049a3055d53c4f5ded448b32 | 881c0979b57bae48019a76314315459c54565d62 | /django-website/manage.py | 11a3ff3a76f5c8c4309c9ee28c4e5934232aa616 | [] | no_license | SreePragnaVinnakoti/rpi-webcam | 0596301ee5c117590365e6058cacb417f13f0dfa | 705a0917b8710090ff8e17c5b9fb889c01232ce7 | refs/heads/master | 2023-03-16T12:27:41.107309 | 2013-12-12T03:03:22 | 2013-12-12T03:03:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "picam_website.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"frances.aurelien@gmail.com"
] | frances.aurelien@gmail.com |
598e59ed9c5d5f847b022f2b99dcb5fc7a8033ad | 4777001a3f29c8483d654969ae6f53ed0ef192b2 | /f1.py | 6fdd2c12a5d4b8219ca3d9cf8d0a7031134f10f2 | [] | no_license | adityaforvs/LearnBaySamples | 3a7db62007fda6e741f65ffa42142a592e56e570 | ba0e3edad3f01179f1f97de16b078c61b17607d7 | refs/heads/master | 2023-02-25T18:55:57.095749 | 2021-01-09T04:59:04 | 2021-01-09T04:59:04 | 328,085,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | Hello world to python
| [
"adityaforvs@gmail.com"
] | adityaforvs@gmail.com |
34be8784c8de3e7f0b2d38864291b7b19e58d65a | d9a4121ac2872bbe3f76564caebe6818dc5888a7 | /tests/test_analysis_submission_response.py | 84d476d5916af4ccb26e3b41aa77c5f6c8d8d179 | [
"MIT"
] | permissive | s0b0lev/mythx-models | ecb07abada43eb9c26929bfd6cd76dca9105207f | 0fc14fef9e41a68a7d97e0bb170fd0eca5693d9a | refs/heads/master | 2020-08-20T19:22:14.320454 | 2019-10-11T08:32:04 | 2019-10-11T08:32:04 | 216,057,981 | 0 | 0 | MIT | 2019-10-18T15:47:10 | 2019-10-18T15:47:09 | null | UTF-8 | Python | false | false | 2,212 | py | import json
import pytest
from mythx_models.exceptions import ValidationError
from mythx_models.response import Analysis, AnalysisSubmissionResponse
from mythx_models.util import serialize_api_timestamp
from . import common as testdata
def assert_analysis_data(expected, analysis: Analysis):
assert expected["ap... | [
"dmuhs@protonmail.ch"
] | dmuhs@protonmail.ch |
5cf57ea462a96036e846f3bcf4b2a47daa0b8682 | ac0c6eb84b0e7023deafbf5322e921a95f4e85df | /jgt_common/assert_.py | dfe1e73c3f44334ef83494100a5b09bfd7dea63f | [] | no_license | bradsbrown/jgt_common | 12c65cc28c8bcd73d09a41aec9e2b9680f2a70cc | e2b68fbc26344b4264ce3a977c7ba21c79a27434 | refs/heads/master | 2020-06-24T08:03:01.427413 | 2019-07-24T14:49:18 | 2019-07-24T14:49:18 | 198,509,251 | 0 | 0 | null | 2019-07-23T21:15:16 | 2019-07-23T21:15:16 | null | UTF-8 | Python | false | false | 4,176 | py | """Convenience functions for doing asserts with helpful names and helpful messages."""
from . import format_if as _format_if
try:
from math import isclose as _isclose
except ImportError:
# noqa E501 From: https://stackoverflow.com/questions/5595425/what-is-the-best-way-to-compare-floats-for-almost-equality-in-... | [
"github@brolewis.com"
] | github@brolewis.com |
b88b036ac7aa313582a8754ea0f5e6afe3c1976d | fe6d7812e416e74ef881b36c03842733961c00bb | /2014-03.py | 3be0c93e3cd41ba2903dbb05ecf84a4a35c3dcb7 | [] | no_license | cola1998/Notebook-for-Algorithm | 9bfa07b024ff1d4d2c36e6b17a6519b847cf3c72 | 71bedb088525aaf8bda3ab5a0a9d505c091f6ac1 | refs/heads/main | 2023-08-18T00:05:23.069870 | 2021-09-16T09:34:17 | 2021-09-16T09:34:17 | 313,172,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | #01相反数
# n = int(input())
# l = sorted(list(map(int,input().split(' '))))
# count = 0
# for i in range(len(l)):
# if l[i] > 0:
# break
# if l[i] < 0 and (-l[i] in l):
# count += 1
# print(count)
#02 窗口
# def judgeW(point,win):
# for i in range(len(win)):
#
#
# n,m = map(int,input().split(' ... | [
"han.gao@qindingtech.com"
] | han.gao@qindingtech.com |
7bd2cb80926c6799d63458cc28966173b9077b5c | 521ce8bee9ec9db6038e8f386374cbf0de2de5c8 | /4_Task.py | 8206a0102029846a849d928478dcdf537036fd5c | [] | no_license | agungap22/Latihan | 5df3728eaa51b12a4c68f3ab330208255c7ae23b | f92aaedeb0552110aa122e6654773055ceaf0050 | refs/heads/master | 2023-01-24T19:42:03.848504 | 2020-11-10T03:03:48 | 2020-11-10T03:03:48 | 311,528,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # x = input('Masukkan hari : ').lower()
# day = {
# 'senin' : 'Monday',
# 'selasa' :'Tuesday',
# 'rabu' : 'Wednesday',
# 'kamis' : 'Thrusday',
# 'jumat' : 'Friday',
# 'sabtu' : 'Saturday',
# 'mingu' : 'Sunday',
# }
# ind= list(day.keys())
# eng= list(day.values())
# if x in ind:
# print(... | [
"agungapmail@gmail.com"
] | agungapmail@gmail.com |
6890a27550d8ac13da4db7d96c33a8a0fbed3914 | 60dc6059f134e4070bbfa75224edfd7feee7683b | /Learning Data Strcuctures/leftrot.py | a59b29f8e69a92c0af79525829434d953614443a | [] | no_license | omaralaniz/Learning | 82d41554a06f7726e20057ce2da2b6d1f8293607 | 59899f40491ea9a4ec0d15bee00aaa142638af26 | refs/heads/master | 2023-01-24T12:21:13.431061 | 2020-01-23T01:05:26 | 2020-01-23T01:05:26 | 214,857,913 | 0 | 0 | null | 2023-01-04T12:23:12 | 2019-10-13T16:53:27 | Python | UTF-8 | Python | false | false | 161 | py | def rotLeft(a, d):
for i in range(d):
a.append(a.pop(0))
return a
print( rotLeft([1,2,3,4], 3))
for i in range(3):
print(i) | [
"omar.alaniz021@gamil.com"
] | omar.alaniz021@gamil.com |
40e701e304cdc95780f0c60fa96c57f9e665568e | ab269258a76b4a7f9af01de0b73144db23d6f005 | /System Scripting/Problem06/6P/pythonwmi-simplified.py | c16e30867db2ed09bc26032ce471117879c17a56 | [] | no_license | jubic/RP-Misc | 24715770b457c3f40db145f4f34d0fb775b71653 | 3c8e12646779e060180870475c0ef10773140e0f | refs/heads/master | 2016-09-06T07:00:36.032240 | 2013-03-30T09:10:02 | 2013-03-30T09:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from win32com.client import Dispatch
import os
server = Dispatch("WbemScripting.SWbemLocator")
conn = server.ConnectServer("localhost", "root\\cimv2")
def query(what):
results = conn.ExecQuery("Select * from " + what)
collections = []
for item in results:
data = {}
for each in item.Properties_:
data[each.N... | [
"jubic@live.com.sg"
] | jubic@live.com.sg |
d988c1a01af2913efd6faa4787ac8de7865acd11 | 4875d4e4ad63310e44086be4d8e450eba151ecaf | /code/pyworkshop/05_Dictionaries/02_Dict.py | d414fa02e0804626a53aafdee1dc7412c5c5c1ef | [
"MIT"
] | permissive | archeranimesh/pythonFundamentals | 7a066ee1ee23a5a78623e5ed50da5167e2c59c16 | 35662181d95406505002fe6a39f577822bfd560b | refs/heads/master | 2020-06-01T12:15:51.828280 | 2019-07-13T17:48:21 | 2019-07-13T17:48:21 | 190,776,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | nums = {"one": 1, "two": 2, "three": 3}
# add new key/Value pair.
nums["four"] = 4
print(nums)
# There are no duplicate key in Dictionaries.
# If new value is assigned to same key, it will
# Override the old value.
nums["two"] = "2222"
print(nums) # {'one': 1, 'two': '2222', 'three': 3, 'four': 4}
# Existence of a ... | [
"animeshb@archerimagine.com"
] | animeshb@archerimagine.com |
b2c59e47491ff7ed1240165950850e00f006c618 | ce363e901591a8395464a42df3abce20896fc0bb | /sliding_diff.py | 186468e156bca41fb4c0d268a480ef002e007532 | [
"MIT"
] | permissive | kodo-pp/miem-project | dacbca0d972500696cdd086e1e9c602745eed7c9 | e440c536e5f5aecb882d4e89252f4e0efa98dedb | refs/heads/master | 2020-03-30T01:59:26.579243 | 2018-10-24T21:19:26 | 2018-10-24T21:19:26 | 150,606,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
import config as conf
def normalize(arr):
minval = min(arr)
maxval = max(arr)
if minval == maxval:
return [0.5] * len(arr)
return [(v - minval) / (maxval - minval) for v in arr]
def normalize_scalar(v, minval, maxval):
if minval == maxval:
return 0
retu... | [
"korzun.sas@mail.ru"
] | korzun.sas@mail.ru |
8e109914502323d3485c70396b4695a92dcdfa34 | 4c6f1119543d9d5b3ab7078fc9abba43bb2a0f5b | /babelfish.py | d127c43088c35d0d39ed05997b3b405d6e1a9e45 | [] | no_license | 0xecho/KattisSubmissions | 8072478b10dc4da42b8fa3504e7fc1923a1edc62 | 7cb981be49e1102e9c6254d15cb51af11fce164f | refs/heads/master | 2021-01-03T23:45:32.366936 | 2020-02-13T15:07:03 | 2020-02-13T15:07:03 | 240,287,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import sys
m={
}
while 1:
inp = input()
if inp=="":
break
inp = inp.split()
m[inp[1]]=inp[0]
for line in sys.stdin:
if line.strip() in m:
print(m[line.strip()])
else:
print("eh") | [
"mr.m.r.s.h.i.e.l.d@gmail.com"
] | mr.m.r.s.h.i.e.l.d@gmail.com |
e2d97da7469f5b41125a340724c192101165acd9 | a6e44193f53a58344c1f02b6feb60f5674cf4982 | /crud/migrations/0029_auto_20210726_0755.py | bb9866b947f9274a5e96d6c5d110d4dee9e9fcf9 | [
"MIT"
] | permissive | TownOneWheel/townonewheel | 79e4f1220777078df4d195f6cdd0228dc47ee0b9 | 9feb120b7541b31d99b63c95edc7949005ab7862 | refs/heads/develop | 2023-07-04T00:57:10.517214 | 2021-07-29T09:52:21 | 2021-07-29T09:52:21 | 380,421,671 | 0 | 2 | MIT | 2021-07-29T09:52:21 | 2021-06-26T05:29:44 | JavaScript | UTF-8 | Python | false | false | 568 | py | # Generated by Django 3.2.4 on 2021-07-26 07:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crud', '0028_auto_20210726_0754'),
]
operations = [
migrations.AlterField(
model_name='cat',
name='created_at',
... | [
"ws0671@naver.com"
] | ws0671@naver.com |
2854338d649a6d9020a9d21bd74adf1f7bdd9c47 | 40b15e4df2843c52fa181f4e77e3257501c84da1 | /venv/bin/pip3 | 1143ef6b7c3cacfce5b3b5d990f9ad0b48ba3507 | [] | no_license | Pydare/Pop-Share | 84e7ea460e9382b28a4fb4668888913e145fe3b6 | 10005e807f1cb375340f49bb9858fcd2858daaae | refs/heads/master | 2020-05-17T21:12:05.320886 | 2020-02-11T20:55:53 | 2020-02-11T20:55:53 | 183,963,451 | 3 | 0 | null | 2020-01-01T15:17:03 | 2019-04-28T22:03:20 | Python | UTF-8 | Python | false | false | 270 | #!/media/dare/Windows/Users/DARE/Desktop/Pop-Share/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dareyadewumi650@gmail.com"
] | dareyadewumi650@gmail.com | |
b75a006234cd636a9f0b674101009b376cf4ede1 | e5a0a77a66563511c72feda18229712f109ab16d | /code/Chapter 14 - configparser/crud_config.py | f82dbd809b9feb0fd1c7fc3301b61832c269eb04 | [] | no_license | driscollis/Python-101-Russian | 0136b3fe3edee025e4408a89c0461bb79ab4be07 | 28ce6727ef56dee8b6966526c5f80d8323ec9d73 | refs/heads/master | 2021-10-20T23:31:05.413934 | 2018-10-23T06:54:30 | 2018-10-23T06:54:30 | 149,648,717 | 0 | 2 | null | 2018-10-23T06:54:31 | 2018-09-20T17:53:06 | Python | UTF-8 | Python | false | false | 760 | py | import configparser
import os
def crudConfig(path):
"""
Create, read, update, delete config
"""
if not os.path.exists(path):
createConfig(path)
config = configparser.ConfigParser()
config.read(path)
# read some values from the config
font = config.get("Settings", "font... | [
"mike@pythonlibrary.org"
] | mike@pythonlibrary.org |
45ce33fda780ab5d2100b97345cf5144bb2acb28 | c46c90c4d6772f9487b439b987ed00b763b0d337 | /util.py | f1c343bb5e22a7c15f91ba2fdbd7622296121c27 | [] | no_license | RandallLu/vultr | 58187b5a47dcc93060e5e1282742d37403acb74b | c57589ab699e48c89bfe7f5c84b2d14d2f25646c | refs/heads/master | 2021-01-20T15:04:59.470349 | 2017-10-08T07:20:43 | 2017-10-08T07:20:43 | 90,718,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from termcolor import colored
def red(string):
return colored(string, "red")
def green(string):
return colored(string, "green")
def yellow(string):
return colored(string, "red")
| [
"randalllu02@gmail.com"
] | randalllu02@gmail.com |
c37c659ed0c253f3e7e8dccddccbaaf607fb6b19 | ea529b8067ed52f26d7dedb997f3bb646fa731ef | /rajim/models.py | f651ebdc231b83e69a727f28d9dea83e226499ac | [] | no_license | danyrubiano/Fingeso | 0536ad91d43c179ce497984d338afe71e16cf0e6 | bbbd4dde8c54e87813a5930017c8ded79703d3a7 | refs/heads/master | 2020-07-03T17:05:59.384355 | 2019-08-12T17:37:06 | 2019-08-12T17:37:06 | 201,978,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,981 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
def url3(self, filename):
ruta = "Artistas/%s/%s" % (self.nombre_artista, str(filename))
return ruta
class Artista(models.Model):
id_artista = models.A... | [
"dany.rubiano@usach.cl"
] | dany.rubiano@usach.cl |
126855637a4d88d391af38ee4179e683dff52074 | 0a839af5f62b1a8011e4fbd81213642078f9af11 | /testing/districts.py | bd0daa380e854d01b52a35854469937728b9c258 | [] | no_license | davidy9000/NSHacks-Bank-Mobile | 79b91871704a4a51ad2d58cb6d901a0fdef566d0 | cf703e5adf610627da8115b59a90744faf05a80f | refs/heads/master | 2020-04-07T01:11:04.048175 | 2018-11-17T14:49:27 | 2018-11-17T14:49:27 | 157,933,739 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | import matplotlib as plt
import pandas as pd
import numpy as py
import folium
import os
import json
#import osmnx as ox
capOneLocFile = "Capital_One_Locations.csv"
commDistFile = "nycd.csv"
cOneLocations = pd.read_csv(capOneLocFile)
commDist = pd.read_csv(commDistFile)
districtNY = 'nycommdistrict.geojson'
commDist2... | [
"davidy.9000@gmail.com"
] | davidy.9000@gmail.com |
48d706e3b94d4786ec4f67c5be3a9ae9818344ab | 419eb22ddf7afed1cd0dd6a914430b67bf951e51 | /backend/backend/urls.py | 786e8200bf100467e34420a3968051d26e256ca4 | [] | no_license | kadumuri1994/django-react-todo-app | 1de6ea8d5a739299a8e7c83587b1439fa1b3b098 | 822c2cbb8f8989a24ab5e6f732404b72b5478645 | refs/heads/master | 2022-12-07T09:39:51.756371 | 2020-08-28T14:11:44 | 2020-08-28T14:11:44 | 291,063,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | """backend 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... | [
"vamshi1000@gmail.com"
] | vamshi1000@gmail.com |
4bd522ee91096abba12454ecea7d90ac9d60bc03 | e47f6b71e3e1278c4605fc55bf4f49612a9e2fab | /second_week/firstday/main.py | 455fc959dae19a841372355af393f0c577c4d33d | [] | no_license | jinhanlai/DLStudy | bbed2ea61060389aa447e426f5419ebe3d5e23e0 | 1fb7460820aa0ea1760856bbc408e2f8138761e8 | refs/heads/master | 2020-12-09T14:19:00.828091 | 2020-01-12T05:14:02 | 2020-01-12T05:14:02 | 233,331,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,922 | py | # _*_ coding:utf-8 _*_
"""
@author: LaiJinHan
@time:2019/7/27 21:50
"""
import numpy as np
import matplotlib.pyplot as plt
import sklearn
import sklearn.datasets
from DLStudy.L_layer_network import *
from DLStudy.second_week.firstday import init_utils, reg_utils, gc_utils
from DLStudy.second_week.firstday.... | [
"laijinhan@126.com"
] | laijinhan@126.com |
e72ebda3a718398a198f24705840c971e2f4a7d4 | 1923a90cc154450343ed650085f2ee97ddca9181 | /env/bin/django-admin.py | 7832d88c4053a01efa8647914e0bbf68cc1843f7 | [] | no_license | Demieno/django-gulp-docker-ansible | 230c95a107a5e28b8ed55f2f0d26d8075df130ec | f2e2f74f70c32c02f65a702033042c540bac938a | refs/heads/master | 2020-03-07T18:06:59.295552 | 2018-04-01T12:58:01 | 2018-04-01T12:58:01 | 127,628,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | #!/var/idpowers/redcross/env/bin/python3.5
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"demienokam@gmail.com"
] | demienokam@gmail.com |
e28344b490033f65b86bea33ef1552aca7424176 | 201e53869312129cd050cc7ac32b855568cc3622 | /SNS/discovery/tcpack_ping.py | 61b309d7d9ce0fae599af967cdf7c42fa3bf4e43 | [] | no_license | an-learn/Scapy-networt-scanning | 49f5d920b595c43f0d2fd8140411fe4bffe98cb1 | 0da3b57ecb62c0f17836b4936208cf28559a397b | refs/heads/master | 2021-04-14T02:47:43.399978 | 2018-03-26T08:03:35 | 2018-03-26T08:03:35 | 126,783,246 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,688 | py | #!/usr/bin/python
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from datetime import datetime
from scapy.all import *
import threading
from Queue import Queue
q = Queue()
import sys
sys.path.append("..")
import main
def list_select():
print"===========================\n"
print"1.Enter ... | [
"noreply@github.com"
] | an-learn.noreply@github.com |
7ceae1ad282b1059676d6451c86751575d7e1e6b | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /OpenCV-python读取监控/发送照片.py | 7485633f350fd958947abde317da53ecd06ae10f | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import cv2
import socket
import pickle
import base64
import numpy as np
network = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
frame = cv2.imread('B.jpeg')
new_frame = cv2.resize(frame, (int(frame.shape[1] * 0.2), int(frame.shape[0] * 0.2)))
tx_data = pickle.dumps((b'\x01', new_frame))
print(len(tx_data))
head,... | [
"443765159@qq.com"
] | 443765159@qq.com |
29808cebdfec5d1a1a3db83d6c8537604d827cd9 | baba372d7b36d2aeed0f2cb9d86b449f73a02384 | /ultimatelabeling/siamMask/models/mask.py | 494fb59ea488bf58003318398c77c9798ad65e6d | [
"MIT"
] | permissive | alexandre01/UltimateLabeling | 0c577f0d458d74568aae4314bc958ec6b2abc57c | d0c6010da1c3d5e2fce2044111069cdf86df246b | refs/heads/master | 2023-02-21T20:02:30.809271 | 2023-02-15T08:38:51 | 2023-02-15T08:38:51 | 189,499,472 | 298 | 42 | MIT | 2022-06-21T22:03:45 | 2019-05-31T00:15:54 | Python | UTF-8 | Python | false | false | 523 | py | # --------------------------------------------------------
# SiamMask
# Licensed under The MIT License
# Written by Qiang Wang (wangqiang2015 at ia.ac.cn)
# --------------------------------------------------------
import torch.nn as nn
class Mask(nn.Module):
def __init__(self):
super(Mask, self).__init__(... | [
"alexandre.carlier01@gmail.com"
] | alexandre.carlier01@gmail.com |
aa82cd8b14ac750d2e51a46add5665e8f8f4ab0c | d1c5176a1cb370addfb3ef0dabb303fefb9c6f87 | /struktury_danych/min i max while true.py | 568704eb6ce757f8f1a4e50e3f14fb5be05b0b45 | [] | no_license | fzubowicz/Python_bootcamp | 72d58f49f744ae5711f65446433b49be26e4351c | 12d6624f0070038a8a0f28a2d09325a2100f0941 | refs/heads/master | 2020-03-22T12:58:41.499223 | 2018-07-08T14:58:27 | 2018-07-08T14:58:27 | 140,074,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py |
komunikat = 'Podaj kolejną liczbę lub wpisz [koniec]'
res = input(komunikat)
# najpierw obsłużwyjątkowe sytuacje
if res == 'koniec':
exit('Nie wyrałeś żadnej liczby')
liczba = int(res)
min = liczba
max = liczba
while True:
res = input(komunikat)
if res == 'koniec':
break
liczba = int(res)
... | [
"fzubowicz@gmail.com"
] | fzubowicz@gmail.com |
bb4412640665c78c6c83623e2f5858eb4ea901a8 | cc2320819a23ff1e5270d474b806e087b2dbceaf | /rabbit_subr/pipelines.py | 38ed8018f3a9b22f1b25b74316cc79fd13d1258a | [] | no_license | cbscientist/rabbit_scrapy | cbc9c65f85b13de46192453893cb1871bfb4c730 | 490177b9e67375037351d5b85b9c1eac4002310c | refs/heads/master | 2021-01-01T18:54:07.164982 | 2015-03-25T17:29:19 | 2015-03-25T17:29:19 | 32,879,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class RabbitSubrPipeline(object):
def process_item(self, item, spider):
return item
| [
"clairesalling@gmail.com"
] | clairesalling@gmail.com |
0a50a5878a88fadb82d274ab672c616160eb913b | 79e8e93a6807a4e2bd4923e0d9b78e3a7b38bb0b | /python/round2/permutations.py | 9ef6c0e553d85cf6940d2bfd03b7f8a1e35da930 | [] | no_license | djole103/algo | 2885c30e927898c749e99ee05ff6c8f43033c9eb | 5c60dc77fcc091d1b2c52de99ee3071d82e1e17f | refs/heads/master | 2020-04-12T02:28:58.300269 | 2017-04-19T23:18:04 | 2017-04-19T23:18:04 | 43,453,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import collections
#O(n) storage
def isPermutation(str1, str2):
if str1 == None or str2 == None: return False
d = collections.defaultdict(int)
for l in str1:
d[l] +=1
for l in str2:
if l not in d:
return False
d[l] -= 1
if d[l] < 0:
return False
... | [
"djordje_7@hotmail.com"
] | djordje_7@hotmail.com |
8441c2afa17f311500ce9da51fa3705416fa4148 | 3843509791dd0c30c5c9631cff776ee77ba887cd | /runner.py | aa7e398eaf66937b10a920510c584dc3586551c9 | [] | no_license | nsbradford/HorizonCV | 570098d4907a6536df12e0d1b7b64b769ad6ecf5 | ec535a93f7e8eb44891d59e874d837ebf4ea83c3 | refs/heads/master | 2022-11-15T14:14:32.768599 | 2022-11-05T23:08:16 | 2022-11-05T23:08:16 | 87,033,799 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | """
runner.py
Nicholas S. Bradford
4/12/2017
"""
import nose
import cv2
import numpy as np
from horizoncv import demo
def testAll():
print('Test...')
argv = ['fake',
'-verbosity=2',
'--nocapture',
'--with-coverage',
'--cover-package=horizoncv'... | [
"nsbradford@gmail.com"
] | nsbradford@gmail.com |
c1d2f5c25c0936309c89953f0cef51921de927b6 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day26/learncrm/crmAdmin/templatetags/__init__.py | a32c81fa794bf67b4db658cf0d748f8b0d206638 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 55 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# by Wendy | [
"284607860@qq.com"
] | 284607860@qq.com |
e07ee7440dc3f636815f2f06a2a2aff021cb0f83 | 359dcdb32288a300d3dcd9402532e4433c1b0c81 | /directionalvi/utils/test/test_load_data.py | afedefc3fba0490903eb1e5cd336eb9579df3d8e | [] | no_license | kkang2097/GP-Derivatives-Variational-Inference | 7d94cec6171a20587887282724dd87ec37f2131f | 0699c5ef20132f92e0bd4f41525eb09f6fd2c118 | refs/heads/main | 2023-08-20T10:43:31.166748 | 2021-10-25T20:46:21 | 2021-10-25T20:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import os
import sys
sys.path.append("../")
from load_data import *
args = {}
args["n_train"] = 12000
args["n_test"] = 2040
args["seed"] = 3
#cwd = os.getcwd()
#print(cwd)
#print("hi")
train, test, dim = load_helens("../../../data/MtSH.mat", **args)
print(len(train))
print(train[0])
print(len(test))
print(dim) | [
"albert11813@gmail.com"
] | albert11813@gmail.com |
7805244463d2fd3897904857f92487d73aff4204 | 0f6d8b0864d01c1e97bf9852fcf35866adfe0606 | /PythonGrammar/oop_and_control_flow.py | e1ee463994162938c8a84567ea529a409226d955 | [] | no_license | NicholasZXT/DataAnalysis | afe94d0cf200911ffcab133912774255a589547f | 0c3d8f872cc8db45bf5b36423bea7fc35de27a3e | refs/heads/master | 2023-08-16T19:39:56.000845 | 2023-08-10T09:07:11 | 2023-08-10T09:07:11 | 214,614,649 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | import sys
import os
from collections import namedtuple
# ========= 类的定义和使用 ====================
def __Class_Practice():
pass
# 定义类
class Person:
address = 'China'
def __init__(self,name,sex,weight,height):
self.name = name
self._sex = sex
self.__weight = weight
self.__hei... | [
"1036562425@qq.com"
] | 1036562425@qq.com |
5fd162325d1b76f2416508c204ac01e3912b2b7c | eb067a086adce4571a8d69db5423db41d8817d0d | /test.py | e28ceca3d03757572d445f642b7afc80d5a00003 | [] | no_license | thomasballinger/simplerest | 09f47d1e6a3a4f5b6dc5de0f511dfd9d14783e8a | d0309b5a9439de8c16d107d33e4784e0a9b068a9 | refs/heads/master | 2016-09-15T19:00:37.995063 | 2014-05-22T13:12:18 | 2014-05-22T13:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import socket
server = socket.socket()
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server.bind(('', 7000))
server.listen(5)
while True:
s, (ip, port) = server.accept()
data = ''
data = s.recv(10000)
print data
s.send("your page")
s.close()
| [
"thomasballinger@gmail.com"
] | thomasballinger@gmail.com |
313ce40ebd7cc63db4407f9138208d991cdc68dc | 13f6dcc2141ad5e93c5b7f35d014ef66182a6ab9 | /AppDia/programas/generar_pdf_hoy.py | 432e24aa3d138342534f3ede929866d47c14bd63 | [] | no_license | joseluciano57/proyecto_heroku | 52a28256b3612726760bef64d9b8097e2003069b | 6d2e681b0e60e7b0665ccb1786612f6ae9b1c7ff | refs/heads/main | 2023-03-11T01:53:49.890895 | 2021-02-24T19:58:56 | 2021-02-24T19:58:56 | 341,221,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,156 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 12 17:49:59 2020
@author: SYSTEM
"""
from datetime import (date,datetime,timedelta)
import numpy as np
from .libreria_loteria import (lee_datos,conseguir_secuencias_iguales,secuencias_con_iguales_sin_orden,
conjuntos_N_iguales_sin_orden,deter... | [
"jlmaldonaj@gmail.com"
] | jlmaldonaj@gmail.com |
4a25485e686ee71a8779acb9894ac44d2da004f1 | d1309391f108e044dab2b51f6bed61588c1163b0 | /DigiZiaApp/migrations/0003_phone_specification.py | 937ac458a56424d3a48d60a473362ca1bd8a019c | [] | no_license | ziashanehbandi/DigiZia | 0cb7e94845d25c563e95d4ddb41c8b3517adea15 | bb3639a8daccc0eef3119e284ee10f0a06f12093 | refs/heads/main | 2023-04-16T13:31:58.396982 | 2021-04-27T16:25:49 | 2021-04-27T16:25:49 | 362,179,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.1.7 on 2021-04-26 18:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('DigiZiaApp', '0002_auto_20210426_0331'),
]
operations = [
migrations.AddField(
model_name='phone',
name='specificati... | [
"ziashanehbandi@gmail.com"
] | ziashanehbandi@gmail.com |
90794ec95294eccc4e08c6f9a498c9ec16f50c87 | fa9acf77eeab5a3f8d29e3f8b87c6aea3e44f8bf | /common/dataset/CifarDataset.py | ffe6fb4ff31fe41707f6f9bcd0f3505431a8b90b | [] | no_license | dshelukh/CapsuleLearner | 624837947b6fa81ad60aa7a29968bbcc6fb64c0f | 00e4f76b406251d426d3e5cb3e7cfd1d5f796ed8 | refs/heads/master | 2022-01-22T00:35:23.487975 | 2019-06-18T15:37:09 | 2019-06-18T15:37:09 | 116,154,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,181 | py | '''
@author: Dmitry
'''
from common.dataset.DatasetBase import *
import pickle as pkl
import tarfile
import os.path
import numpy as np
'''
import time
import os
import urllib.request
from scipy.io import loadmat
import sys
'''
def random_translate(image, vbound = (-2, 2), hbound = (-2, 2)):
v = np.random.randint... | [
"dshelukh@gmail.com"
] | dshelukh@gmail.com |
32c84120721d4e812bb8463b78c62dc17ef51e5d | a2da066b6729f208f578307e18700dded468547a | /src/extract_img_features.py | 345d3bb9d2ba5f5ea2ecf3a5ffc9eb863fd6679a | [
"Apache-2.0"
] | permissive | aleSuglia/guesswhat | 2195b31db2c043e263769301da1d853817a90417 | 659d1361b6b49e68ec6087b154490adf9c483908 | refs/heads/master | 2020-09-02T10:51:28.378853 | 2020-06-28T13:16:45 | 2020-06-28T13:16:45 | 219,205,640 | 0 | 0 | Apache-2.0 | 2019-11-02T19:48:24 | 2019-11-02T19:48:24 | null | UTF-8 | Python | false | false | 3,407 | py | #!/usr/bin/env python
import os
from argparse import ArgumentParser
from os import listdir
from time import time
import h5py
import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim.python.slim.nets.vgg as vgg
from PIL import Image, ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
from tqdm import tqd... | [
"alessandro.suglia@gmail.com"
] | alessandro.suglia@gmail.com |
5adbfd7cbeb0d5d743b0f47012cd9121dca75e95 | 941142d175ab166c6a37d9d8dae038431506d503 | /linebot/mi-bot/wsgi.py | 685eaa98da6ff8efba1c1299b1f006a65a3448df | [
"MIT"
] | permissive | jphacks/FK_1707 | e4a2e5db6f16463d5ea1783705404ccb67df8400 | 9c8a7513eb8ca3d06d68de93568ca1aa0631760c | refs/heads/master | 2021-07-22T18:41:00.761123 | 2017-10-29T04:50:24 | 2017-10-29T04:50:24 | 105,496,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for mi_bot project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"bskzxc@gmail.com"
] | bskzxc@gmail.com |
7924494e333eaaa3fc1fb45014a438dff96f2abb | c5542154b44f1b228cdadeaf44c6a5998ed37ed4 | /base/day3/if/2numif.py | cf3ae469fede9e992a02e8e751cd5ee19d44e9a9 | [] | no_license | ThrallOtaku/python3Test | a31a2de1576b3a3c1062a7d6908119d7cbf21b36 | c62e6024bbbeafd396b68e40332991758914ba0b | refs/heads/master | 2020-03-07T22:45:47.403999 | 2018-06-08T10:19:42 | 2018-06-08T10:19:42 | 127,763,269 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | '''
x=10
num= 10 if x>18 else 20
print(num)
'''
#ages=10
#price= 20 if ages>=16 else 10
import os
os.system("calc") if 3>12 else os.system("notepad") | [
"tanght@11wlw.com"
] | tanght@11wlw.com |
883ef4f1e95ccb4ad230631341e6db9e90dcbc54 | 2011727bd90b0ffcb1da5a95bfdb28cbafc00a7c | /rpc.py | 97c347a07c9c8080661df9f60c2cf5c9c9235892 | [
"MIT"
] | permissive | ronitray95/rpc_ftp_example | 3311009462a587b4a8a870abe4562e58c98a31b4 | 91c33c54b11a5fe8f02a9f880271e7fcd749371b | refs/heads/master | 2023-03-02T19:57:17.958155 | 2021-02-10T05:13:00 | 2021-02-10T05:13:00 | 337,624,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python3
import os
from ftplib import *
FTP_URL = 'localhost'
FTP_PORT = 5000
def initFTP(cmd, *args):
ftp = FTP()
ftp.connect('localhost', FTP_PORT)
resp = ftp.getwelcome()
# print(resp)
resp = ftp.login('user', '12345')
# print(resp)
fname = 'cmd.txt'
with open(fname... | [
"ronitray95@gmail.com"
] | ronitray95@gmail.com |
a52af025f64100a1354ba9ff12d253bd3a3be007 | 4741174571b160b62ce5f3dc5f505b7e06819f69 | /linked list/add 1 to number.py | cbec023fd4bc92b92f77b17833938ac13aac062b | [] | no_license | AprajitaChhawi/geeksforgeeks | 754554f86e66ab3ca861966b02e36d246e0efc21 | 06fb42dfaaaa85c1a5bb9ca3a4b13a050fb782bf | refs/heads/master | 2022-12-27T07:35:19.516512 | 2020-10-15T15:48:40 | 2020-10-15T15:48:40 | 291,464,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | #User function Template for python3
'''
class Node:
def __init__(self, data): # data -> value stored in node
self.data = data
self.next = None
'''
def addOne(head):
curnode=head
prenode=None
while(curnode.next):
temp=curnode.data
a=a*10+temp
c... | [
"noreply@github.com"
] | AprajitaChhawi.noreply@github.com |
fe76135fa9eccd572a16fd5da8714993539e245e | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_route_filters_operations.py | 0a30eb3cd481c39e0c762bf92fbb47cf91856be2 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 25,449 | 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"
] | YijunXieMS.noreply@github.com |
3b34c3aa261597bb0b7a20265a7d26473b548dd0 | a50a4e874d3d203344a47bc7ad9c317b213eab90 | /base/config.py | 28c8fb077efd365c3408ab3d90723e234358ad31 | [] | no_license | fjl121029xx/yarn-api-python | d5b61ca0695d5fdc4f8923d5814f6576c3c87509 | 4468609dea2d7630fd9fc3dabbe7c02ded7aa4a1 | refs/heads/master | 2020-12-04T02:02:40.913088 | 2020-02-27T08:08:18 | 2020-02-27T08:08:18 | 231,563,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | AppConfig = {
'DOHKO': {
# 'livyServerUri': 'http://172.20.44.6:8999/sessions/',
# 'yarnServerUri': 'http://172.20.44.6:8088/ws/v1/cluster/apps/',
# 'livyServerPath': '/usr/hdp/current/livy2-server/bin/livy-server',
'livyServerUri': 'http://172.26.25.148:8999/sessions/',
'yar... | [
"sishengqikuo_xx@163.com"
] | sishengqikuo_xx@163.com |
688a69eeefdd18fc59f72c8a0c55e7ada6bac042 | 00ccdc877771cb0cf493526d1e201e0f625bf5e7 | /dohq_teamcity/models/vcs_root_entry.py | 71eac569239c8a77d6638dac74da2b020c9df602 | [
"MIT"
] | permissive | expobrain/teamcity | a52928045166bb5d34f4a0396cb840bfee8f43d5 | 9f04c0692a2c5b277a608c2f11cc1fb48e0c87e2 | refs/heads/master | 2020-04-13T13:11:07.270515 | 2018-10-18T01:40:06 | 2018-10-18T01:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | # coding: utf-8
from dohq_teamcity.custom.base_model import TeamCityObject
# from dohq_teamcity.models.vcs_root import VcsRoot # noqa: F401,E501
class VcsRootEntry(TeamCityObject):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
""... | [
"allburov@gmail.com"
] | allburov@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.