blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6e07ce4368cf52e75c822a991a574494f9378a4d | f2575444e57696b83ce6dcec40ad515b56a1b3a9 | /Algorithms/Implementation/JumpingOnTheCloudsRevisited.py | 6ac69a0db82d7aeb16eaa9fcb0a6ad2d256bdec5 | [] | no_license | abhi10010/Hackerrank-Solutions | 046487d79fc5bf84b4df5ef2117578d29cb19243 | da2a57b8ebfcc330d94d104c1755b8c62a9e3e65 | refs/heads/master | 2021-07-24T09:41:49.995295 | 2020-07-12T09:31:58 | 2020-07-12T09:31:58 | 195,647,097 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import math
import os
import random
import re
import sys
.
def jumpingOnClouds(c, k):
e=100
for i in range(0,len(c),k):
if c[i]==0:
e-=1
else:
e-=3
if i>=len(c) and c[0]==0:
e-=1
break
if i>len(c) and c[0]==1:
e-=3
... | [
"noreply@github.com"
] | abhi10010.noreply@github.com |
fed845857259de02555dffb668df2ec6e074306e | a168a9af6ab99cdee546ccfa7c7a0cc2ad16b20e | /Programmers/Level1/strange_sort(jpt)/strange_sort.py | d83f21cc4047d4829dc2d9ee563ea357790cf4cb | [] | no_license | BakJungHwan/Exer_algorithm | e6a0d2281d5901893566bc18cb5cf8c06b4f703b | aca66fc9b1e16677cd5772e6c8b76cf32d2a5664 | refs/heads/master | 2021-09-10T09:11:47.662041 | 2018-01-31T02:06:44 | 2018-01-31T02:06:44 | 114,535,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | def strange_sort(strings, n):
def helper(str_ele):
return str_ele[n];
return sorted(strings,key=helper)
print( strange_sort(["sun", "bed", "car"], 1) ) | [
"Ace.DataSC.Bak@gmail.com"
] | Ace.DataSC.Bak@gmail.com |
efc52d8b10f9081ff6a555ce6d84839a77e88f05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02973/s843936905.py | 1546a742a043329f3c3d9e840dbeb8dda98ec3c7 | [] | 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 | 272 | py | from bisect import bisect_right
def main():
inf=float("inf")
n=int(input())
alst=[int(input()) for _ in range(n)]
work=[inf]*n
for i in range(n-1,-1,-1):
j=bisect_right(work,alst[i])
work[j]=alst[i]
print(n-work.count(inf))
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
741baa3c2159776bce0691d2b37c1db0a5367f42 | 481ccd9a3589e83593c46a64d03e657c6457d0f0 | /function_keys.py | 23ea001ea6708ece3256473b07d73f296c65226e | [] | no_license | izikandrw/codebyvoice | e9deca5ec166015b9aaff07b8ea9610f68107ed1 | b8384b56b00e39aa50713fea26c82f764898ac32 | refs/heads/master | 2021-01-20T12:58:32.777642 | 2018-05-01T03:23:50 | 2018-05-01T03:23:50 | 90,434,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | map = {
'F one': 'f1',
'F two': 'f2',
'F three': 'f3',
'F four': 'f4',
'F five': 'f5',
'F six': 'f6',
'F seven': 'f7',
'F eight': 'f8',
'F nine': 'f9',
'F ten': 'f10',
'F eleven': 'f11',
'F twelve': 'f12',
}
| [
"isaac.stennett@gmail.com"
] | isaac.stennett@gmail.com |
7894bc2a90641898792873857f43f1459e677cc3 | 8017e94a8b1f1a0c0016e4012c75cdef93bfcb7d | /option_value.py | ab2ec040f771dd5dee6a12ad4120f51e740e3a93 | [] | no_license | cashpw/ibkr_utilities | 5ea23fc47b5c129d51ae33b081167cbb9bb67adc | 9f83e1167b28c143552930d0eac44a0e07eb407a | refs/heads/master | 2022-11-04T07:30:47.871721 | 2020-04-21T16:26:02 | 2020-04-21T16:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | from typing import Callable
from decimal import Decimal, ROUND_HALF_DOWN
from ibkr_utilities.util.is_call import is_call
def calc_put_value(underlying_price: Decimal, strike_price: Decimal, multiplier: int) -> Decimal:
if underlying_price >= strike_price:
return 0
value = Decimal((strike_price - under... | [
"cashbweaver@gmail.com"
] | cashbweaver@gmail.com |
8ce3cb6f85f98312fde277abfd989b11fe282013 | 09afc89edb1603e37cd49a0d97b18a461b7696fa | /wagerautobet.py | 10fc15d3d93a293bd814d5382ae79d86c3208eda | [] | no_license | reddyn12/pkt-bet | 16fd7f226a1fe4b244083e3d6c815a3e5a849902 | 208b582225e62fc36b4e12fb2df78edf44202d75 | refs/heads/master | 2023-02-23T14:54:45.904556 | 2021-02-01T02:28:41 | 2021-02-01T02:28:41 | 323,974,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver=webdriver.Chrome("/Users/Nikhil/Downloads/chromedriver")
driver.get('https://wagerwizard.ag/')
time.sleep(2)
user_box=driver.find_element_by_id("txtAccessOfCode")
user_box.send_keys("Kz41")
time.sleep(2)
pass_box=driver.... | [
"nikhilr.ssm@gmail.com"
] | nikhilr.ssm@gmail.com |
1e4fc798c9b1eea9a2fed8e6da85272fae6dbde1 | 88aa6628ebe431628947a55b5f42eceb0472c210 | /lmnet/lmnet/datasets/ytfaces.py | 89d0dfe17f75e080c972a5a41c7b37fb2c4fb791 | [
"Apache-2.0"
] | permissive | hadusam/blueoil | fa907aa94f764580948f3fb75381c6b82214e14b | ce8fc406126d98f68c9ff648d67e2bc85a9312d1 | refs/heads/master | 2021-06-19T15:14:59.173807 | 2020-02-05T03:18:02 | 2020-02-05T03:18:02 | 153,714,765 | 0 | 0 | Apache-2.0 | 2020-01-07T02:08:50 | 2018-10-19T02:22:21 | Python | UTF-8 | Python | false | false | 3,025 | py | # -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil 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
#
# Unles... | [
"noreply@github.com"
] | hadusam.noreply@github.com |
75a863a592f82faf0099f420daadea5edbe253db | 074655fbb70dc7dad1807597efa267abb0fb3500 | /desafios/desafio-106.py | a3efcfa39014af63e7cdc60e9f066c83e8da1fb4 | [] | no_license | rodrigojgrande/python-mundo | bfa57ff12c537084aeeb5469451e13e74c6fb9f1 | d482c84d5c6ae8cfec79317b85390e17ede17f58 | refs/heads/master | 2023-04-23T08:22:45.251817 | 2021-05-19T13:08:21 | 2021-05-19T13:08:21 | 351,783,397 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #Exercício Python 106: Faça um mini-sistema que utilize o Interactive Help do Python. O usuário vai digitar o comando e o manual vai aparecer. Quando o usuário digitar a palavra ‘FIM’, o programa se encerrará. Importante: use cores.
from time import sleep
cor = ('\033[m', # 0 - sem cores
'\033[0;30;41m', ... | [
"rodrigojgrande@gmail.com"
] | rodrigojgrande@gmail.com |
abd5ee70aab65729e8f7fa743256471068ff8cf4 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/856.consecutive-numbers-sum/856.consecutive-numbers-sum.py | e7d78eaedc4dc18c9eedb0691612ac16db60e37b | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | class Solution:
def consecutiveNumbersSum(self, N: int) -> int:
| [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
69e57198777982b5a461544089472acaae42c23c | 9ca67006b6acce29177eac92d85276a4e78c2850 | /movies/models.py | 0a90621849a9688f0a664b1aa86abb62cbb2a870 | [] | no_license | 0hhanum/aws-django-test | 7768eec543d5929bb2688e47820229c0d29206dd | 6fb174ef85c5f58a6271b43345612e3451122671 | refs/heads/master | 2023-04-05T20:49:18.922987 | 2021-05-10T08:26:23 | 2021-05-10T08:26:23 | 365,737,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from django.urls import reverse
from django.db import models
from core.models import CoreModel
class Movie(CoreModel):
""" Movie Model """
title = models.CharField(max_length=120)
year = models.IntegerField()
cover_image = models.ImageField(null=True, blank=True)
rating = models.IntegerField()
category =... | [
"rntls123@naver.com"
] | rntls123@naver.com |
c9313da804d7aecf76a596bfe962fe97f0c0b7ee | 807724d44167e401085ce57c7346ee6351d0cc71 | /__init__.py | de452d475b232ab89ee51274d3e6b9f1e09a7a1c | [] | no_license | jurecuhalev/pykpk | 86cf885986071bf7853c78d5e3cdc6cb08939e99 | 037c0c95ad233d4b06912c210cdc0abf2e9bef7c | refs/heads/master | 2022-03-09T04:39:39.621174 | 2012-12-26T01:36:10 | 2012-12-26T01:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | ###
#
# Library for parsing http://supervizor.kpk-rs.si/
# Author: Jure Cuhalev - firstname @ lastname .com
#
# Released under the MIT License (MIT)
import requests
from urllib import urlencode
import json
from lxml import etree
from lxml.html.soupparser import fromstring
from lxml.cssselect import CSSSelector
URL = ... | [
"gandalfar@gmail.com"
] | gandalfar@gmail.com |
1aaa54ad05b3cb3d5181af19c6399f9c7a1ad31f | 48cd2164e9e071916c5888b25b7a9a3f74ab051d | /nba_analysis/stats/migrations/0007_auto_20150722_1700.py | 3be3b7ee02b30af0213694bfdf7feb1824c3dd66 | [] | no_license | Sandy4321/django_nba_stats | 02f46d4b8d76390ebac9d39d381c0509eb13928b | c64ddd77303db32a5693e84c969f9e2562b5b428 | refs/heads/master | 2020-12-03T10:27:03.630464 | 2015-10-16T01:45:37 | 2015-10-16T01:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('stats', '0006_player2015averagestat'),
]
operations = [
migrations.AlterModelOptions(
name='player2015averagesta... | [
"fredthekid@gmail.com"
] | fredthekid@gmail.com |
dc37ceb19cda10dcf2dedb5eb532af1094506b77 | dc4088c4a7dd12de8c92b792aed260a91391d699 | /OPR2/models.py | a49b1ea8348203ac34272025f2262e28aefcfed9 | [] | no_license | JustinD1/Public-Management-Metrics-Overhaul | ffb2fc3d531baf616cd721adaf0d38df0cab82ec | 62b5204043376f320231e0130f7f881ce1d6f17d | refs/heads/main | 2023-08-17T13:05:28.195742 | 2021-09-20T16:19:15 | 2021-09-20T16:19:15 | 408,504,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | from django.core.validators import validate_comma_separated_integer_list
from django.db import models
from home.models import StoreSave, FileDate
class Document(models.Model):
def __str__(self):
return self.description
description = models.CharField(max_length=255)
document = models.FileField(up... | [
"35259451+JustinD1@users.noreply.github.com"
] | 35259451+JustinD1@users.noreply.github.com |
d8f453cbc8d6faf8544ab9e6c7c8f3f69eca3db6 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part007491.py | e36cb723cb2eaeafc9ed54508427de7131e5b47c | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
332db90717d18029d34aa1bbca1ce2d43fdd2a1d | e495c3f9227d790f3c08a56c357f2a95c167ec9c | /zerojudge.tw/a780.py | 5d40bbaa97c9b43d36b1a9634123d570ef876590 | [] | no_license | InfiniteWing/Solves | 84d894d66588693c73ec1dcaebe3b8b148e1d224 | a0f8f09fac5e462d7d12a23ccd8414bd5ff8ffad | refs/heads/master | 2021-10-11T00:17:37.367776 | 2019-01-19T15:07:54 | 2019-01-19T15:07:54 | 103,742,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | def main():
while True:
try:
s = input()
except EOFError:
break
o, e, a = float(s.split()[0]),float(s.split()[1]),float(s.split()[2])
if(o == 0 and e == 0 and a == 0):
break
m = o / e
f = a / m
print('{0:.2f}'.format(round(m... | [
"sars6608@gmail.com"
] | sars6608@gmail.com |
3461114ef7de35dac3442a2a0f612ee8e6fdf335 | df8427979988ccfe085066faa350f4faa57ec1a9 | /train.py | 0580ef01a8f3b41d6f9f9b5737677dea49f8ae31 | [] | no_license | xuelanglv/disaster-project | c47c35e4f000f66c558e082dd0869f1ce48f3cf2 | c2575b279300ffc3db9a3235c44d5a2155931159 | refs/heads/master | 2020-06-05T14:34:49.933586 | 2014-12-08T06:12:06 | 2014-12-08T06:12:06 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 5,145 | py | # -*- coding: cp936 -*-
"""
Created on Thu Oct 09 22:22:43 2014
@author: shuaiyi
"""
import sys
import numpy as np
import matplotlib.pyplot as plt
from numpy.random import shuffle
from sklearn.svm import LinearSVC, SVC # svm
from sklearn.cross_validation import train_test_split # 把训练样本分成训练和测试两部分
from skl... | [
"shuaiyigis@gmail.com"
] | shuaiyigis@gmail.com |
2dbe042275ad6bd1719cdfe946a9871dca51c1d0 | 41efbf79b5dc76a05b70a3e6e7c43e566df8feaf | /workbook_performance_checks.py | 8577c3b8857574bcdbcf7bca67df050a4c9863b8 | [] | no_license | kesireddyr/TabValidate | 73ba105069220ebaced3c37d1ff768cc169cc68e | a242c9b22bd64f95418b79d69518046976a14b4e | refs/heads/master | 2023-08-11T10:59:17.659406 | 2020-03-03T17:24:46 | 2020-03-03T17:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,173 | py | import argparse
import getpass
import logging
import time
from urllib.parse import quote
import tableauserverclient as TSC
import yaml
def main():
parser = argparse.ArgumentParser(description='Access to config.yml file')
parser.add_argument('--config-file', '-c', default='config.yml',
... | [
"christian.silva.r@gmail.com"
] | christian.silva.r@gmail.com |
e646e840415066474e090129909b4fa89a674716 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/provider/bridgecrew/credentials.py | fac41da6ae3817889168443670a4b19c7c89d1ea | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 1,157 | py | import re
from typing import Dict, List, Any
from checkov.common.models.enums import CheckResult, CheckCategories
from checkov.terraform.checks.provider.base_check import BaseProviderCheck
from checkov.common.models.consts import bridgecrew_token_pattern
class BridgecrewCredentials(BaseProviderCheck):
def __init... | [
"noreply@github.com"
] | schosterbarak.noreply@github.com |
ae4464db52561375bbc87b0547ef21940050cf28 | 3295017d73103cb573616858db368f66d7c1c439 | /NAOmark_Detection.py | 6c8330609d9d4c3a6305b410b43461e514c415d9 | [] | no_license | SV1609/Master-Thesis | 876b240342eff0e602207988a3bfcb04b33f1ea4 | 054d13844fdf16000e5c075507362504a7d67f82 | refs/heads/master | 2022-04-17T04:27:51.150332 | 2020-04-13T09:53:42 | 2020-04-13T09:53:42 | 255,286,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,727 | py | #! /usr/bin/env python
# -*- encoding: UTF-8 -*-
"""Example: Demonstrates a way to localize the robot with ALLandMarkDetection"""
import qi
import time
import sys
import argparse
import math
import almath
class LandmarkDetector(object):
"""
We first instantiate a proxy to the ALLandMarkDetect... | [
"noreply@github.com"
] | SV1609.noreply@github.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 |
3a5679953ae1a0710355aaaecad60b3d96b36686 | dcf69d10c5719411a26be62feeaf29aadc86b825 | /Python/python_5.py | db4a4a0f16e06058ac59dfcab8964daa87663f54 | [] | no_license | nivarpG/Python-Assignments-1x | 19b0b3411960a3f5e1aa31482b85666ee9aa05c1 | eca3c2342cacdba97d3470c994177943d4c5c50b | refs/heads/master | 2021-05-11T18:39:52.701021 | 2018-01-17T12:45:34 | 2018-01-17T12:45:34 | 117,834,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | a)
#program to print command line argument
#the Python sys module provides access to any command-line arguments via the sys.argv
import sys
#sys.argv is the list of command line arguments
print 'Argument List:' , str(sys.argv)
b)
#program to print biggest of three numbers via command line arguments
import... | [
"noreply@github.com"
] | nivarpG.noreply@github.com |
d8a89d664f950a89c1900d9eef3be5616186ecbd | 25aa59eb559afa5aeeb4347c053f493a7e4fd9f2 | /batfight.py | 50022c456ab425373390fb7b13dbc52d966dd492 | [] | no_license | Nacrova/pythondemo | da2ccea78b0b29406cf639d4b85f83c3ac5376e2 | e621859e3d4b4269b56060b48c2a95c48b134672 | refs/heads/master | 2020-03-20T22:18:41.530855 | 2018-06-22T19:44:53 | 2018-06-22T19:44:53 | 137,790,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | print("You are fighting a Giant bat!")
move = raw_input("Please make your move:")
if move == "attack":
print("You hit the bat and it screeches loudly, but does next to nothing but hurt your ears.")
if move == "block":
print("You try to block the bat's bite, but to no effect. You bleed out hours later.")
if ... | [
"noah.swingle@gmail.com"
] | noah.swingle@gmail.com |
a1abbcb23714badaf42e7155343c0630d731aa58 | 0ca0ceea2a50b8a0e2c17be73718be268b42838f | /utils/helpers.py | 5ebf9a2b69ea8ee63844c1cffdad00b0ffac39d0 | [] | no_license | hshaheucleia/web-demo | 3089795bf501bd04981b9e216d2f7b0e4f5dd0d3 | db42a74aa35745f5f582b5af36ac001b2ea52fcf | refs/heads/master | 2021-01-10T20:40:13.761926 | 2013-09-02T14:34:32 | 2013-09-02T14:34:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py |
import datetime
import decimal
import httplib
import math
import re
import sys
import urllib, urllib2
from xml.etree import ElementTree
from django.conf import settings
from django.core.mail import mail_admins, EmailMultiAlternatives
from django.utils import simplejson
from django.template.loader import render_to_str... | [
"harsh.shah@taxiforsure.com"
] | harsh.shah@taxiforsure.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 |
3f11f6e753f742c91c330b4722f942811c63b180 | 4c413f3787e66155d90a3cdce87b6527b7dae459 | /app/flask_sqlite.py | b36b4dfdc058055d05334bff7c7dc96e8ad989c1 | [] | no_license | priyanshukumarcs049/flask | 61b0339c9dd5afc62625d35b3b42902383d95402 | 5d6828d87cd648d050fec78465bcb8e607d1530e | refs/heads/master | 2020-04-01T10:05:38.901968 | 2018-10-17T12:08:05 | 2018-10-17T12:08:05 | 153,102,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | from flask import Flask, render_template, request
import sqlite3 as sql
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/enternew')
def new_student():
return render_template('student.html')
@app.route('/addrec',methods = ['POST', 'GET'])
def addrec():
if req... | [
"noreply@github.com"
] | priyanshukumarcs049.noreply@github.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 |
790377a01ed8013816dd8017e8c4cb12a44b62f3 | d5e82604646b200673d9f9e57a4ba0f3b35c3516 | /pybb_extensions/pluggable/models.py | 9359c94f44284c64002d653591bea0e3e8f5272b | [] | no_license | zalew/pybbm-extensions | 7cd7d5ada4d6f809713f469ab7cb46f9e7952c66 | 3b5c1f63d21bfbdf659f49dae76ce81faf3ad7d9 | refs/heads/master | 2020-12-24T13:21:04.035156 | 2013-07-18T12:37:09 | 2013-07-18T12:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib.auth.models import User
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.db.models.manager import Manager
from django.db.models.signals import post_save
from p... | [
"zalew7@gmail.com"
] | zalew7@gmail.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
881e6e1b12da730952c4965d4305d46c908cd4ef | a8ed4cff415b9671ba588bcd24cc76a7a919b6c9 | /CVML/GAN生成手写脚本/test.py | b66549cb9f75229904c4c3299ee2a1297e363377 | [] | no_license | lunyu520/AI-learning | fac7f7e985a3249a8f3e0c3397484b1209dd1453 | a7b55ce726aa1d1fbf526536da40127d165c5bd4 | refs/heads/master | 2021-07-10T04:47:20.432869 | 2020-05-20T01:43:28 | 2020-05-20T01:43:28 | 191,372,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | import tensorflow as tf
import numpy as np
from matplotlib import pyplot as plt
import pickle
import mnist_GAN
UNITS_SIZE = mnist_GAN.UNITS_SIZE
def generatorImage(image_size):
sample_images = tf.placeholder(tf.float32, [None, image_size])
G_logits, G_output = mnist_GAN.generatorModel(sample_image... | [
"noreply@github.com"
] | lunyu520.noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
ece8c2bdbe9075b3980b6da4c1de9129bd71031b | 495f28047fcc69ee4b579f90b421a9d87aa38f93 | /archconvnets/convnet2/python_util/data.py | a5a01dd5207b4816ae7c9cca0c8405e49f682eca | [
"Apache-2.0"
] | permissive | shyamalschandra/archconvnets | 10dfffa5f29f8b35e2a7d095c934d2112bcc1f45 | 147d8eab7cd21c53b6689a8364cdb613bd602aa6 | refs/heads/master | 2021-01-22T16:38:46.513143 | 2015-01-21T21:14:50 | 2015-01-21T21:14:50 | 29,734,254 | 1 | 0 | null | 2015-01-23T13:47:35 | 2015-01-23T13:47:35 | null | UTF-8 | Python | false | false | 39,138 | py | # Copyright 2014 Google Inc. 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 applicable law or ag... | [
"dyamins@gmail.com"
] | dyamins@gmail.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 | |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.