blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
384381a66c1e0adddc505f1b94b0c7445db9ad86 | ba6dd2a880ac120a25a50d0b84228ec7e5806e99 | /ctof.py | cc186e67cec3960d4bb15531d3eee717aeb0dd90 | [] | no_license | peggy0102/ctof | 04e03deb4bd1779b7e13dd2b19b258b0f0532005 | 24c7db51b28a7f6c5b7b14b37bde0edad29bae69 | refs/heads/main | 2023-03-27T05:28:26.956588 | 2021-03-29T03:00:20 | 2021-03-29T03:00:20 | 352,498,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #攝氏 轉 華氏
#請使用者輸入攝氏溫度,印出華氏溫度
c = input("請輸入攝氏溫度:")
c = float(c)
f = c * 9 / 5 + 32
print("華氏溫度為:",f)
| [
"peggie20010102@gmail.com"
] | peggie20010102@gmail.com |
85a4fa4f67a496e390494fcdd27de92a9665af93 | 965eb6e5bb8e1fa421cfb98f29f47783f36258f1 | /es32.py | 7ce7fe9d5edf1d19e86e5379fadbc2b7499398a9 | [] | no_license | xinyu88/PYTHON-ESERCIZI2 | f6e48b7fbaea822ba2193fa183cf3eb8e2438808 | 117665a7e5e141c3beac1fe9b7f373b280c59eb6 | refs/heads/master | 2023-04-07T11:25:28.379603 | 2021-04-07T20:26:16 | 2021-04-07T20:26:16 | 320,015,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | #Implementa l'argoritmo per il calcolo della soluzione di un'equazione di primo grado a x + b = 0.
#Il processo risolitivo dipende dai valori assunti dai coefficienti a e b secondo la che segue.
import fractions # scrivere in frazione
a = int(input("inserisci il valore di a : "))
b = int(input("inserisci il va... | [
"noreply@github.com"
] | noreply@github.com |
e72992500982187095a5b255374fceb7c9f7860e | ad63ab52dbf21a204016ac45dfab72d51b5b8418 | /tests/test_user_model.py | 39bd090c1eaa4f9122462e46a19a706a8681f507 | [
"MIT"
] | permissive | DarkIsComing/flask-- | 220e7d57b39599b926c34b97f75a4724af31f76f | db9abe5f19829fcb1a93294c7c67896618fc852e | refs/heads/master | 2022-12-09T22:09:21.320802 | 2020-05-21T08:39:49 | 2020-05-21T08:39:49 | 178,145,978 | 0 | 0 | MIT | 2022-12-08T01:43:12 | 2019-03-28T07:05:15 | Python | UTF-8 | Python | false | false | 7,701 | py | import unittest
import time
from datetime import datetime
from app import create_app, db
from app.models import User, AnonymousUser, Role, Permission, Follow
class UserModelTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
... | [
"815419296@qq.com"
] | 815419296@qq.com |
577d85715b3aaf9b4beaa58b956543b561454e48 | 479b8bb858c258cde90d77e19c9fdd82bf7af256 | /python/models/dgcnn_segment.py | 7227a51f7365bc5e131fcf86833c8139b4517b27 | [] | no_license | sohaib023/gnn-table-recognition | 833849d5e4c091fa649395047d5e44abc4e2de0d | 8e010c986b42829036c6c38ca38a5b2c487c9bef | refs/heads/master | 2023-02-04T20:38:03.239892 | 2020-12-23T07:58:14 | 2020-12-23T07:58:14 | 323,835,824 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from caloGraphNN import *
from ops.ties import EdgeConv
class DgcnnSegment(torch.nn.Module):
def __init__(self, input_size=128, num_neighbors=10):
super(DgcnnSegment, self).__init__()
self.bn = nn.BatchNorm1d(input_size, momentum=0.... | [
"sohaib023@gmail.com"
] | sohaib023@gmail.com |
b35c9a68e9eb1f3a75055de2e64704c92646121d | ef860826f6a4091e4fdd92903716f89de8a9059f | /dashline/scripts/create_user.py | c9bc3b381d7b0fb0797a679ac60ae35e0c5a0f6b | [] | no_license | chronossc/dashline | ff647ac9a0f6f9894c67407d2c8853de122e20a4 | 188bb63405d10c2ae11b009503d068bee6c57cff | refs/heads/master | 2021-01-01T15:45:07.828405 | 2010-08-16T03:42:22 | 2010-08-16T03:42:22 | 822,675 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!/usr/bin/env python
import os,sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'dashline.settings'
import dashline
sys.path.insert(0,os.path.dirname(dashline.__file__))
from django.contrib.auth.models import User
try:
u = User.objects.get(username=sys.argv[1])
u.delete()
except User.DoesNotExist:
pass
u ... | [
"philipe.rp@gmail.com"
] | philipe.rp@gmail.com |
36670c4a9749a12bf3a415748751b018f72ba6fc | b86ab49fc76b9527cd4cb480d5fc09d0963b6c57 | /homework/6/grumblr/blog/models.py | ccfc4e1646203f6f975f3f1bf098e7d20df4a0d1 | [] | no_license | YueshanLin/WebApplication | 27b7408fe885e10fb339ca909f7259da34c73dcb | ba26ba7a6e918fbd967f8db36e6533e94218e4ed | refs/heads/master | 2022-11-28T17:05:35.989600 | 2019-12-21T11:00:06 | 2019-12-21T11:00:06 | 229,414,494 | 0 | 0 | null | 2022-11-22T02:58:35 | 2019-12-21T10:57:09 | Python | UTF-8 | Python | false | false | 4,524 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models import Max
import datetime
import time
class Post(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
time = models.DateTimeField(auto_now=True)
comment = models.CharField(max_length=42)
... | [
"yueshanl@andrew.cmu.edu"
] | yueshanl@andrew.cmu.edu |
980b88b5b7b2faa6c7f75fcc02ec6d7df196e962 | 79fe7a8dd4fe9e87d34ba2e04f065b2f0ceab6d1 | /utils/functions.py | 5192ceef53d9050bbc005e38c50520fa1657b996 | [] | no_license | KUNYOUNGLEE/FER_study | 8a95486b30c807b6327a34161c9fd2320b9bac13 | dd74d03ab8928a55b90c3b663e611ea07ab23129 | refs/heads/main | 2023-02-17T03:27:58.668309 | 2021-01-13T17:47:16 | 2021-01-13T17:47:16 | 329,387,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,409 | py | # coding: utf-8
__author__ = 'cleardusk'
import numpy as np
import cv2
from math import sqrt
import matplotlib.pyplot as plt
RED = (0, 0, 255)
GREEN = (0, 255, 0)
BLUE = (255, 0, 0)
def get_suffix(filename):
"""a.jpg -> jpg"""
pos = filename.rfind('.')
if pos == -1:
return ''
... | [
"guy9284@gmail.com"
] | guy9284@gmail.com |
62d8a7d1cd85bf3326485ad8b3d09b6af3c09161 | a5d05e3cecfa6571016e41d19c982f1082714582 | /TLG.py | 80349d5374afe2a719cb3a67b4ecdf2a8b8152ed | [] | no_license | Sanket-Mathur/CodeChef-Practice | 8ebc80eb9a32c90a5b3785348fca2048190dbeb0 | cba5bc2eaaf5489cbd8e85acaca6f82d223cff4f | refs/heads/master | 2023-08-08T05:59:42.755206 | 2021-09-26T12:44:15 | 2021-09-26T12:44:15 | 268,267,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | try:
S, A, B = [], [], []
for _ in range(int(input())):
a, b = map(int, input().split())
A.append(a); B.append(b)
a = sum(A); b = sum(B)
S.append(a-b)
if max(S) > abs(min(S)):
print(1, max(S))
else:
print(2, abs(min(S)))
except:
pass
| [
"rajeev.sanket@gmail.com"
] | rajeev.sanket@gmail.com |
1c255079eae022efa40d7eadf0822a505eeb2508 | 4f7f8628dc28e075b2eeadb8699024c99a55e6ad | /ntent/wsgi.py | f85ff38beb03add13b97e13970e00dfe63015439 | [] | no_license | RoKuSu/ntent | b773abe1ec5526ec6e0aa09b47e33eb1f5c5341e | 60abdf8c215e07503b6dea250d58ba0455fd18ba | refs/heads/master | 2021-01-07T22:42:46.859769 | 2013-02-18T14:19:23 | 2013-02-18T14:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """
WSGI config for ntent project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | [
"bowmanmc@gmail.com"
] | bowmanmc@gmail.com |
087014408c5b2c09f6f943476f1fa7b570ae0450 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5756407898963968_0/Python/Roun/magic.py | e30d7e751a99a8d84316f435875bc46b4da76ef6 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | #!/usr/bin/env python
from __future__ import print_function
from sys import argv,stdin
with open(argv[1]) if len(argv)>1 else stdin as f:
num_cases = int(f.readline())
for i in xrange(num_cases):
row_idx1 = int(f.readline())
arrangement1 = [f.readline() for j in xrange(4)]
set1 = set(a... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
dfcf58bfad2c4a5462b3b5fb921f6bfd1a054a52 | d7bd0cd8e016fc213ac3e0149487c77e8ef523ba | /codeforces/codeforces975c.py | d186416c5d4ba4de2c2af79694d297aa59fd8c1f | [] | no_license | Michael98Liu/Competitive-Programming | eafa6fa063efedeec8da10a85ad7a9b8900728b3 | dc5752a1e90bcd3a908e7f307776baf0d349af34 | refs/heads/master | 2021-01-01T20:03:04.073372 | 2019-02-14T15:31:39 | 2019-02-14T15:31:39 | 98,750,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import bisect
def find_ge(a, key):
'''Find smallest item greater-than or equal to key.
Raise ValueError if no such item exists.
If multiple keys are equal, return the leftmost.
'''
i = bisect.bisect_left(a, key)
if i == len(a):
return -1
return i
n, q = [int(x) for x in input().spl... | [
"liufengyuan1998@hotmail.com"
] | liufengyuan1998@hotmail.com |
738685645eac0996ca1cc4a7c84af49f266c4b87 | 8295cf3c6bdb4676f31f3f99ec14092fae44237f | /helloworld.py | 7be54d777529db56a38c7f5935ed592c7e80644f | [] | no_license | CollinHeck/helloworld | c8b3c12b8aa4dae956d9b9a8eb6528398464c369 | ca8950b12f0c9b69db27416bef78f4a1350edffb | refs/heads/master | 2021-01-02T08:49:13.948766 | 2017-08-02T04:16:33 | 2017-08-02T04:16:33 | 99,070,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | import pygame
import sys
from pygame.locals import *
# init
# git practice
pygame.init()
dp = pygame.display.set_mode((800, 600))
pygame.display.set_caption('hello')
error = 0
RED = (255, 0, 0)
BLUE = (0, 0, 255)
rect1 = pygame.Rect(0, 550, 250, 50)
clk = pygame.time.Clock()
pygame.key.set_repeat(1, 10)
speed = 0
lock ... | [
"30582450+CollinHeck@users.noreply.github.com"
] | 30582450+CollinHeck@users.noreply.github.com |
1ff3e40b75d737ad1bce8a60467ffa5eb3a5b01f | 476317fb36eba2005a9fdaf53239b852f25a3855 | /app/core/imageprocessing.py | a1cf691988fb050451749b572d31ff2ee4b41ae7 | [] | no_license | kevyt/quote | 2a86d531e8b8cdd6c6da49841086bc0757d3a0ae | 28e816071b35f383bd7d58440f35f3d7f694313f | refs/heads/master | 2022-12-23T07:13:58.289385 | 2019-11-21T14:02:51 | 2019-11-21T14:02:51 | 220,989,909 | 0 | 0 | null | 2022-12-08T06:51:46 | 2019-11-11T13:41:54 | Python | UTF-8 | Python | false | false | 3,817 | py | import re
import random
from flask import current_app
from app.apicalls import get_image_from_unsplash_api, search_image_from_unsplash
def transform_hex_to_rgb(colour):
"""
Convert hex input to seperate RGB colour channels (int)
Args:
colour (str): hex colour to be processed
Raises:
... | [
"r.prins@mulierinstituut.nl"
] | r.prins@mulierinstituut.nl |
3d17b3e86577fc8d88cacf2cf6f69c60bb2c023e | c3f611d714309320dd4ec0a9dd5f1a056b55663d | /Operation.py | bc7551b9c2e13668fbb75152366a32cc438640e1 | [] | no_license | ETdoFresh/DomainGenerator | 7959f4a361570751dc4bab721657e21df27ba1e9 | 414584a1fdf67d3f6ab3ffac851ccbc111ea0776 | refs/heads/master | 2020-03-09T09:26:14.667581 | 2018-04-10T18:05:10 | 2018-04-10T18:05:10 | 128,713,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | class Operation:
property = None
operation = None
object = None
def __init__(self, property, operation, object):
self.property = property
self.operation = operation
self.object = object
def __str__(self):
output = self.property.name + "("
for i in range(0, len(self.property.parameters)):
paramete... | [
"ETdoFresh@users.noreply.github.com"
] | ETdoFresh@users.noreply.github.com |
b63e8a260b3e588b080df6325498ac699efde95c | 8ae098932b34fc755e08a0d733118ae7eefef671 | /fitters/devicemgmt_fitter.py | aed46a1e27633916d284dc2e17b2f12e06a898f5 | [] | no_license | gx303841541/replayit | fad94c4ef9fb0f9066c776dc8103e4f69d5fbc49 | dfd2fd3919bc7a664d553b1f4b147fe40d9f248c | refs/heads/master | 2020-03-18T13:41:36.008563 | 2018-07-31T07:59:30 | 2018-07-31T07:59:30 | 134,801,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import config
fitters = {
'/scp-devicemgmtcomponent/register/insertParentDevice': {
'setup': {
'req': {
'field': 'deviceName',
'key': 'store',
},
},
'teardown': {
... | [
"noreply@github.com"
] | noreply@github.com |
5ad1dd8d2d8fff727b63a05052b3fc75deb4cff9 | fdd16e86c3fd696df99f2e18b002d637f16db7b5 | /template.py | eca33f15663a5a6e6488055b0514714d44ddd0c0 | [] | no_license | SeemlySplinter/python--physics_setup | 8dd1de2be0b01c9723882c6e10bb84468c198a98 | 36406e7c6e46cc012f2054d2732ea6f3562792c5 | refs/heads/main | 2023-06-18T01:53:31.416269 | 2021-07-15T06:55:54 | 2021-07-15T06:55:54 | 373,685,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | # import numpy as np
# import matplotlib.pyplot as plt
import logistics
import os
# import config
# import routines
# import common
#* File Specifications:
if True:
filename_main = os.path.basename(__file__)
home = os.path.expanduser('~')
path_home2main = os.path.relpath(__file__, start=home)... | [
"noreply@github.com"
] | noreply@github.com |
94d3afd602e95476c8fd382e75a42dba4bc0cbd6 | ee66d7d6a84249efd27526fba8a7522fcfdcffa6 | /TF-in-practice-Coursera/1-Introduction/Programming/human_or_horse2.py | d7b7969417a40196e4e83fa13225de9fa02f69ca | [
"MIT"
] | permissive | yuynwa/Coursera | 13efbde8667516c52a88ab3890b68dffe7b5acd9 | e7e44dc11575e00feaa5c4996c97156988c13f6f | refs/heads/master | 2020-04-14T12:59:33.135103 | 2019-09-17T17:21:00 | 2019-09-17T17:21:00 | 163,856,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,369 | py | import os
import zipfile
path = 'horse-or-human'
local_zip = './data/horse-or-human.zip'
zip_ref = zipfile.ZipFile(local_zip, 'r')
zip_ref.extractall('./data/horse-or-human')
local_zip = './data/validation-horse-or-human.zip'
zip_ref = zipfile.ZipFile(local_zip, 'r')
zip_ref.extractall('./data/validation-horse-or-... | [
"yuynwa@gmail.com"
] | yuynwa@gmail.com |
be2db1fa8ae877518a0ba1a7cd5bd808f101896f | fed8be6666af9f7fff21040e88e506bdb2fafbfb | /guppe/try_except_else_finally.py | 703b6931c0ad6188016bc78eb2b1456febe43856 | [] | no_license | feliperoschel/pycharmprojects | 8a8b9f42e51e54fea8007cbc3df1c4b461a3c11c | db81d4c49cc460d39c639bdef307e57dee1622d5 | refs/heads/master | 2020-06-25T09:16:41.328313 | 2019-07-28T09:49:38 | 2019-07-28T09:49:38 | 199,269,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | """
Try / Except / Else / Finally
- Toda entrada de dados deve ser tratada;
# Exemplos
num = None
try:
num = int(input('informe um numero: '))
except:
print('valor incorreto')
else:
print(f'voce digitou {num}')
# Finally
try:
num = input('informe um numero: ')
except ValueError:
print('voc... | [
"f.roschel@gmail.com"
] | f.roschel@gmail.com |
655ab4a239d1041ff2cb3539fe9e397b55a1e9ba | d769bb17ce4ca61df1cb5c88a2c2ae8202b6927f | /unitest/test_oprp.py | 49f8a8710fcb14c8ac49906dbe17ef4479ad37e0 | [
"Apache-2.0"
] | permissive | dallerbarn/oictest | 596489625c459d6607cacb90b1e593eca7465fc9 | 0f85acf8ee081f59176600e0db7bfee915f5cb3b | refs/heads/master | 2020-12-30T19:58:25.301555 | 2015-05-21T08:56:50 | 2015-05-21T08:56:50 | 35,876,393 | 0 | 0 | null | 2015-05-19T10:48:27 | 2015-05-19T10:48:26 | null | UTF-8 | Python | false | false | 1,594 | py | import json
from rrtest.check import WARNING
from rrtest import Trace
from oictest.oprp import not_supported, support
from oictest.base import Conversation
from oictest.check import factory as check_factory
from oictest.oidcrp import Client
from oic.oic.message import factory as message_factory
from oic.oic.message imp... | [
"roland.hedberg@adm.umu.se"
] | roland.hedberg@adm.umu.se |
f6732cdef143d497663d3e4bef0703d528a75d52 | d7298013cd9ae8494c3e8582c549bfc542d59baf | /track_based_models/encounter_models.py | d807faadd778cc2587ea209a015df5f35695178f | [
"Apache-2.0"
] | permissive | GlobalFishingWatch/track-based-models | 8fb4e082993ce5ba459ed964fc9de773991b2c61 | e0c45e49a0088a8fcd3c688c0df0d6ec3da8bfa0 | refs/heads/master | 2021-07-06T12:04:15.096068 | 2019-09-05T22:25:33 | 2019-09-05T22:25:33 | 191,461,559 | 4 | 1 | Apache-2.0 | 2019-09-05T22:25:34 | 2019-06-11T22:58:26 | Python | UTF-8 | Python | false | false | 4,188 | py | from __future__ import division
from __future__ import print_function
import numpy as np
import os
import keras
from keras.models import Sequential, Model as KerasModel
from keras.layers import Dense, Dropout, Flatten, MaxoutDense, LeakyReLU, ELU, Input
from keras.layers import Conv1D, MaxPooling1D, AveragePooling1D
fr... | [
"tim@bitsofbits.com"
] | tim@bitsofbits.com |
fbcc2b6a2212d9af60122efe155e6ccce93b67c0 | 1e5316abc66a38bc9406e6d642cc0d3604de46c6 | /build/catkin_generated/order_packages.py | 50a0b5f3e057db82a0040c475b24c9cb5660e3d6 | [] | no_license | yepeichu123/ros_practice | 445f0e490b458b6a68566a519cf698f65571510d | ec55274626d65f0d96ee68cda0ff9970e14c4807 | refs/heads/master | 2021-01-14T19:43:14.061098 | 2020-03-02T11:25:14 | 2020-03-02T11:25:14 | 242,734,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/xiaoc/xiaoc/code/ros_practice/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/xiaoc/xiaoc/code/ros_practice/devel;/opt/ros/kine... | [
"peichu.ye@gmail.com"
] | peichu.ye@gmail.com |
5dfcf3e74fb70e0ae83582ecb5c31e079e0870e2 | 383aac87558fb0e2d7e90ecbfb0403220aeb9b83 | /matplotlib/animation/oscilloscope.py | d5390f388e150893adaf1cb849193f2c2b8cdf57 | [
"MIT"
] | permissive | nheske/learn-python | 63aed24f18642117d7bc16bba47534887c7f50e7 | b769538bbc9b2417de8fc0a134263c0f9cf66ffe | refs/heads/main | 2023-06-27T22:15:15.032479 | 2023-06-07T19:06:23 | 2023-06-07T19:06:23 | 336,596,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | import numpy as np
from matplotlib.lines import Line2D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
class Scope:
def __init__(self, ax, maxt=2, dt=0.02):
self.ax = ax
self.dt = dt
self.maxt = maxt
self.tdata = [0]
self.ydata = [0]
self.li... | [
"normheske@gmail.com"
] | normheske@gmail.com |
60f37b16f89720307610560a4576d96eb31f0fe9 | ae44af43df25f0282fa5b625855179a30fac4d31 | /feature_extraction/feature_extraction.py | 1433013078c475dc555be47fc8ecdbb7f0c851d3 | [] | no_license | morrisk0301/feeling | 303cfa3cbf8424d00a4da79742546c9791966296 | 1e917dab2a7c11d8d6f369253bc789ab80a72f8f | refs/heads/master | 2020-03-31T07:50:45.266407 | 2019-09-17T13:43:58 | 2019-09-17T13:43:58 | 152,036,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,900 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 19 18:09:06 2018
@author: Kyeong In Kim
"""
import sys
import os
import librosa
import essentia
import essentia.streaming
import numpy as np
import pandas as pd
import glob
from essentia.standard import *
from pyAudioAnalysis import audioBasicIO
from pyAudioAnalysis impo... | [
"morrisk0301@gmail.com"
] | morrisk0301@gmail.com |
b03f39f1a30c383569e1822bc1f9bd95524ae08f | 4ccfd0048a9f8509751f88465e0f43db3af2c1ff | /deepranking/IteratorCustom.py | 895b0c7150b70d507c06904a035bebbcedc9996d | [] | no_license | lorenzomammana/fashion-image-retrieval | 9ed25fba00976f37981636fe52310732cc54ee87 | 6d158bfde9e09ad06ef9aa5eabe7d98b6b97ce4b | refs/heads/master | 2022-03-31T10:23:22.111269 | 2020-02-08T20:22:48 | 2020-02-08T20:22:48 | 234,065,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,525 | py | """Utilities for real-time data augmentation on image data.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import threading
import numpy as np
import pandas as pd
from keras_preprocessing import get_keras_submodule
try:
IteratorType = get... | [
"lorenzom96@hotmail.it"
] | lorenzom96@hotmail.it |
018156911807bc7234f63978a6b75f90585b5697 | edd8c47ef66c4e60101278e750e08dd577a65f7d | /fpo-api/api/sfdc_integration/login.py | 2fccac8f3b639aac18f1cbfc092d45fb7dddce70 | [
"Apache-2.0"
] | permissive | csherman-gov/tti | 007635a31d761a887386e858c3153fad4bde58b7 | 8a6c8140b96ade7ebfcac5e3994def04fc430ab4 | refs/heads/master | 2023-03-10T21:37:18.806566 | 2023-02-13T22:10:38 | 2023-02-13T22:10:38 | 225,973,414 | 1 | 2 | NOASSERTION | 2023-03-02T23:42:26 | 2019-12-04T23:07:33 | TypeScript | UTF-8 | Python | false | false | 7,662 | py | DEFAULT_client_id_PREFIX = 'CRTTTI'
from api.sfdc_integration.api import DEFAULT_API_VERSION
from api.sfdc_integration.util import getUniqueElementValueFromXmlString
from api.sfdc_integration.exceptions import SalesforceAuthenticationFailed
# Python version difference(3)
try:
from cgi import escape
except ImportE... | [
"arthur.newman@belmar.ca"
] | arthur.newman@belmar.ca |
5434b5dbe590c3fed01340af08021e6c3c2756a2 | 26192962dc2627e7ca5f0e3b249c3fabcf52442c | /Python/Iniciante/1002 - Área do Círculo.py | 4e699785d2644624cef0240deb3cc5ce5f019580 | [] | no_license | PierreVieira/URI | 77278ccb1724ca206ab2c12afbea1e51fa08ff73 | c1eb211c788d26b5cb9bedf5dda4147a2961fa19 | refs/heads/master | 2023-04-10T07:03:13.954639 | 2023-03-22T00:18:28 | 2023-03-22T00:18:28 | 189,321,748 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | """
Autor: Pierre Vieira
Data da submissão: 04/05/2018 16:49:45
"""
raio = float(input())
print('A={:.4f}'.format(3.14159*raio*raio)) | [
"pierrevieiraggg@gmail.com"
] | pierrevieiraggg@gmail.com |
d8549867fb49d286f3d560c1a9b9b0f7dacd40af | 7fb025acedce6e52944aff7e3f811091c9152fb9 | /Algorithms/380. Insert Delete GetRandom O(1).py | 91b78dd52111eda49d98cec18a236745342770c0 | [] | no_license | cpd0101/leetcode | 4161570c1135ef848f02289417d1c5877b7a8fd3 | ba360cea5dda14203a9604e238a900f6e3410f00 | refs/heads/master | 2021-01-25T07:21:51.279116 | 2018-05-30T05:38:00 | 2018-05-30T05:38:00 | 38,369,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | import random
class RandomizedSet(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.index = {}
self.arr = []
def insert(self, val):
"""
Inserts a value to the set. Returns true if the set did not already contain the specifie... | [
"tanshaohui@baidu.com"
] | tanshaohui@baidu.com |
a23383ab17a182849ae340924a7204e43425fae6 | 2660859a9e1a73da695a42d73b75863e02185dce | /src/pretix/plugins/pretixdroid/signals.py | 7164ff39eb9d56a3180640a2abaf46e1bbbbba63 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | alainrk/pretix | d4931a5528cfd42b1a9d9fb1b1df02aeee507171 | 867a8132aa1ed73dd9513efae5b3c46b5bbae140 | refs/heads/master | 2021-01-18T19:49:27.366758 | 2017-04-01T13:23:11 | 2017-04-01T13:23:11 | 86,915,380 | 1 | 0 | null | 2017-04-01T13:31:04 | 2017-04-01T13:31:04 | null | UTF-8 | Python | false | false | 1,444 | py | import json
from django.core.urlresolvers import resolve, reverse
from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from pretix.base.signals import logentry_display
from pretix.control.signals import nav_event
@receiver(nav_event, dispatch_uid="pretixdroid_nav")
def contro... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
b17424f8332624c3d113275b09cd79f7b5d2537b | 618f82b2f810136b00e7703cef78fa233e4837d8 | /setup_functions.py | c597544991335e22a0943d87249fc29e097281cf | [
"Apache-2.0"
] | permissive | alimogh/minermedic | 2cb70455e83dfb086a686eef6f0a6d5319452ead | 39dd03e58d665bea23f1e9c9ab134a794d092cb1 | refs/heads/master | 2022-04-05T17:46:37.282640 | 2020-01-23T02:14:26 | 2020-01-23T02:14:26 | 280,500,099 | 1 | 0 | Apache-2.0 | 2020-07-17T18:40:58 | 2020-07-17T18:40:57 | null | UTF-8 | Python | false | false | 5,242 | py | import boto3, os
def get_package_requirements():
REQUIRED = []
# Load the package's requirements from the TXT file
with open('requirements.txt') as f:
for line in f:
line = line.partition('#')[0]
line = line.rstrip()
if line is not None and len(line) > 0 and lin... | [
"nick.saparoff@gmail.com"
] | nick.saparoff@gmail.com |
0856a63906d19f66b8390ef3159de01c2ca51bb9 | 21facd9d704047759f0d5198c71ff6d2d3463cc5 | /this/src/CarRentalSystem.py | f814ea8dc5f9250787dae0d3ab359b9b770e3c2e | [] | no_license | namsu-kim-unsw/lab8 | 570902157a7fa590cd802483c50ddfba00e096b8 | 50b45bc958c28ed55286b543571d6f271c89493f | refs/heads/master | 2020-03-18T01:37:57.148875 | 2018-05-20T13:15:07 | 2018-05-20T13:15:07 | 134,151,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | from .Booking import Booking, BookingError
from .Location import Location
from .Customer import User, Customer
from .Car import Car, SmallCar
from datetime import datetime
import pytest
class CarRentalSystem:
def __init__(self):
self._cars = []
self._customers = []
self._bookings = []... | [
"noreply@github.com"
] | noreply@github.com |
dd1de1a6ce3e91260a10eec2eee24fea68922c56 | 80c2076c5ff4fe3e6161d9dae722af8844243982 | /mp/urls.py | c1c8baf19124462d2616235e23394d97c1400d87 | [] | no_license | mrugankv12/application | 0a7200e925a428cd97a63462bc683b9f81075ce5 | 1f68ac66465df21b32df6169ac87beaf5e6925ed | refs/heads/master | 2022-11-13T22:18:23.786316 | 2020-07-08T02:22:07 | 2020-07-08T02:22:07 | 277,968,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | """mp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 view... | [
"mrugank1903csd@ict.gnu.ac.in"
] | mrugank1903csd@ict.gnu.ac.in |
a57695cfe7b74e8c0f01ee8a06eaea58301e3d8c | 5a7a0a268e281dd985eb9889a152114da249f7ea | /0x01-python-if_else_loops_functions/101-remove_char_at.py | ccdb887019e05ef27ff23d715ebd77e6498ede92 | [] | no_license | Gt-gih/holbertonschool-higher_level_programming | 3b17b910c3496f482e203fca26d72b71be3fe471 | fb765e2d1f2a4a6fba1a24bbb1c2a0b2a7ca269a | refs/heads/master | 2023-03-17T01:53:12.367576 | 2020-11-04T20:39:32 | 2020-11-04T20:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | #!/usr/bin/python3
def remove_char_at(str, n):
new_str = []
for i in range(len(str)):
if i is n:
continue
else:
new_str.append(str[i])
return (''.join(new_str))
| [
"juan.bueno01@usc.edu.co"
] | juan.bueno01@usc.edu.co |
f2a9297c3093bb270a08282d69f2e02786446c60 | 2ffeb2deca13ace2f3c645d65fe744b6028506d1 | /participante/forms.py | 942306060eb33cdd53e96fadaf53a2643927af4b | [] | no_license | matheusmrs01/arena-manager | 5b8e9db64b013955e94da60ae694d8a7f50773a9 | 2afaa99ab0fe3e6f396071d1df12a43c1e065e2f | refs/heads/master | 2021-09-14T23:15:43.039980 | 2018-05-22T03:47:13 | 2018-05-22T03:47:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from django import forms
from .models import *
class ParticipanteForms(forms.ModelForm):
class Meta:
model = Participante
fields = '__all__'
class PartidaForms(forms.ModelForm):
class Meta:
model = Partida
fields = '__all__'
class PartidaFIFAForms(forms.ModelForm):
class M... | [
"matheus.silva.morais01@gmail.com"
] | matheus.silva.morais01@gmail.com |
1af4caf9ffbcf0234f00d8e89c6f10fb8bf855f2 | f85da5f62533efd38004d31c4789a6f5ab5445eb | /goosetools/users/migrations/0001_initial.py | 21ea1ab7dc22c2b3a5b3949e92e7f246427639d5 | [] | no_license | brahimmade/goosetools | 0126de4e77d4b8090ec32f1584b77fcf58a430a2 | 7cfa5253f3006f08a7e9cf83a39d6f5c64ba369e | refs/heads/master | 2023-03-22T02:32:19.183157 | 2021-02-17T11:15:23 | 2021-02-17T11:15:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,759 | py | # Generated by Django 3.1.2 on 2020-11-24 16:47
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import timezone_field.fields
import goosetools.users.models
class Migration(migrations.Migration):
initial = True
depende... | [
"nigel.gott@gmail.com"
] | nigel.gott@gmail.com |
4d46a4152fa658cd8fcab5c8c0d3ad2313ebb6b4 | 84ad8ae15e58d7da6fca98ce4535c3992f4b66b8 | /StackQueue/MMASS.py | 702cbc64929ca26d3b16012b0ab61b77ef7751fd | [] | no_license | chibinh8/BigOCoding | 28a337a9b9020a5fee1ba780f859c8bb75adf050 | 8adfe29e52b9b98167b68b898cc66b28627685f6 | refs/heads/master | 2020-12-02T12:47:18.895089 | 2017-10-25T15:53:31 | 2017-10-25T15:53:31 | 96,596,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | __author__ = 'Binh Le'
def ValConve(c):
if(c=="C"):
return 12
if(c=="O"):
return 16
if(c=="H"):
return 1
return 0
def IsVal(Arg):
if((Arg=='(')or(Arg==')')or(Arg=='C')or(Arg=='O')or(Arg=='H')):
return 0
return 1
def IsLetter(Arg):
if((Arg=='C')or(Arg=='O')o... | [
"chibinh8@gmail.com"
] | chibinh8@gmail.com |
addb35b44ae75bbe018fb22c6fc5a32281e8d493 | 0cbe58703509b25aa0fabab728a65f5ee58fd73a | /apps/uploaded_images/migrations/0003_auto_20190911_1755.py | 79a36af64a35b43b9283444dad084f7716dbb1e0 | [] | no_license | matthigg/River-City-Pro-Wash-v2 | c8bffbdc43663481d387df344a5c68f38363da01 | e1435384b77a5e2950829b625f9be599b676e5be | refs/heads/master | 2022-12-16T03:42:21.413691 | 2020-04-23T12:23:07 | 2020-04-23T12:23:07 | 205,406,617 | 0 | 0 | null | 2022-12-08T06:07:52 | 2019-08-30T15:15:23 | CSS | UTF-8 | Python | false | false | 810 | py | # Generated by Django 2.1.11 on 2019-09-11 17:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('uploaded_images', '0002_auto_20190907_1528'),
]
operations = [
migrations.AddField(
model_name='uploadedimages',
na... | [
"mhh129@gmail.com"
] | mhh129@gmail.com |
b32d09ae600af285d0c6d38276392809c193ddc1 | 79b289b67bb3c7cf5f3b18b237b5fcb58616966c | /Client/BB/menu.py | fdd8b66d50999dbf6a55b6eaed49a5364513be33 | [] | no_license | vinelectronics/Projet_Servo_Laser | d8a6b389eb4c27ca9e10c225a78317f844f0e5be | e03645d80da8e47fd0a426d68687c46b34c8533e | refs/heads/master | 2021-01-10T01:27:56.736951 | 2016-03-21T23:08:33 | 2016-03-21T23:08:33 | 52,177,679 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,880 | py | #!/usr/bin/python
import BBIO
from time import sleep
import serial
import re
import Affichage
import math
def MANUEL(UART1):
H = 0
V = 0
Laser = 0
Exit = 0
Rx = "MODE,MANU"
BBIO.laser(Laser)
BBIO.servomoteur1(V)
BBIO.servomoteur2(-H)
Affichage.parametres(V, H, Laser, UART1)
while Exit == 0:
Rx = UART1... | [
"jbanicic@gmail.com"
] | jbanicic@gmail.com |
4d1871ff6bd269fdd5f0cce05fb5e1544a163655 | 964c1294a93a15ac1edddd6202e5773836401c24 | /ExIAServerWeb/oadoc/exiaserver/data_dig_tools/expy/classify/classifyTextSec.py | 068c74a2cae62c2f2d198a5ea1cc8cbb509e41cb | [] | no_license | swingMr/exia-workspace | 8654d1465395c1ccdb33f0a905bfc68d4de65e9b | c1de32f5c75fe5c65b360215fc71b3947dd2e21d | refs/heads/master | 2021-08-31T10:29:50.281309 | 2017-12-21T02:48:06 | 2017-12-21T02:48:06 | 114,953,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,575 | py | #!/usr/bin/env python
# encoding: utf-8
import os
import random
import re
import jieba
import math
import sys
from datetime import datetime
import codecs
import json
class ClassifyTextSec(object):
#input_dir:语料所在文件夹
#train_data_file:训练集文件名
def __init__(self, model_name, model_dir,text):
... | [
"490118224@qq.com"
] | 490118224@qq.com |
561d151ac587c161a7e42f1da177389d1757e03f | 5ae01ab82fcdedbdd70707b825313c40fb373fa3 | /scripts/charonInterpreter/parsers/MaterialBlock/MasettiMobility/ElectronMobilityParameters/charonLineParserDopantSpecies.py | a8b6aca7a2756b075e6afeee05b0c806fd872472 | [] | no_license | worthenmanufacturing/tcad-charon | efc19f770252656ecf0850e7bc4e78fa4d62cf9e | 37f103306952a08d0e769767fe9391716246a83d | refs/heads/main | 2023-08-23T02:39:38.472864 | 2021-10-29T20:15:15 | 2021-10-29T20:15:15 | 488,068,897 | 0 | 0 | null | 2022-05-03T03:44:45 | 2022-05-03T03:44:45 | null | UTF-8 | Python | false | false | 5,527 | py |
from __future__ import print_function
import copy
class charonLineParserDopantSpecies:
"DopantSpecies parser"
def __init__(self):
# Register the parsing keys
self.parserName = "DopantSpecies"
self.parsingKey = "dopant species"
self.parsingKeyOptional = []
self.interpr... | [
"juan@tcad.com"
] | juan@tcad.com |
37ff763795752926ba73c80bd4e5d95c7b27c611 | 1875c16dee46ab528b5a227c09c5743d8d10e982 | /pyacs/gts/Sgts_methods/show_map.py | 93be8715b2f1ad9119dbbb759f1f95e16ef6eaae | [] | no_license | CorentinPeutin/pyacs | 56a8d2b3941bb7f921c447167c40d89157a502ed | c82aecd2c95a5d635170ed6750131cb49e28e570 | refs/heads/main | 2023-04-16T13:41:53.042830 | 2021-05-03T14:56:28 | 2021-05-03T14:56:28 | 363,963,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | def show_map( self , bounds = None , highlight=[] , geotiff = None, tile = False, grid=True ,show=True, save=False ):
"""
:param self: Sgts instance
:param bounds: map bounds as list [min_lon,max_lon,min_lat,max_lat]
:param highlight: list of site code to be highlighted
:param geotiff: a global [-1... | [
"noreply@github.com"
] | noreply@github.com |
176e2ccd5c4e4b537fd51ffa0893f328b73a8129 | 402d7e6977d1c17dec65d2692ea1ab2a5a64c22f | /variables_example.py | 6b13e0ff7e7fff9bac128d6602ea8b5ba9c5afd8 | [] | no_license | baconlover2020/botway | 26ca2617329f9253c06ef8093a14dbf640ef6c4d | 79418928411f2a934eb595ef0720f94851d59863 | refs/heads/master | 2023-07-30T04:43:53.458532 | 2021-08-30T16:35:59 | 2021-08-30T16:35:59 | 361,475,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | import pickle
class Auth:
def __init__(self, username, password, pin, security_link):
self.username = username
self.password = password
self.payload = {'i': self.username, 'd': self.password}
self.pin = {'pin': pin}
self.security_link = security_link
class User:
def __... | [
"maths.menezes@gmail.com"
] | maths.menezes@gmail.com |
c09c2fab121c78fe9abc0b00692862a070463668 | 141719ca0b61bac3ebae3fa60c893d42f7afd10b | /oase-root/tests/libs/commonlibs/test_dt_component.py | 3ba7b5cc79139966e7d77ec2cb316c6f9ca5d415 | [
"BSD-3-Clause",
"LGPL-3.0-only",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | hokuto-fukunaga/oase | bb17bde1b5b855e57bfe70ead4d78bfe81256192 | a8d4d3ff1cd7656f8faa2f6a7ac01143beaf8307 | refs/heads/master | 2023-02-06T01:45:16.116806 | 2020-07-02T07:27:17 | 2020-07-02T07:27:17 | 291,585,510 | 0 | 0 | Apache-2.0 | 2020-08-31T01:31:53 | 2020-08-31T01:31:52 | null | UTF-8 | Python | false | false | 7,989 | py |
# Copyright 2019 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"k-katou@fu.cnt.jp.nec.com"
] | k-katou@fu.cnt.jp.nec.com |
af90c9463a55092afbc3b4c500be1b97bd1bda13 | de98ae3024f3a82b31fbee2726e68a61795b7242 | /ros2controlcli/ros2controlcli/verb/switch.py | c732993a0b28b8e4db091d49c909bb4eb7915f8e | [
"Apache-2.0"
] | permissive | mathias-luedtke/ros2_control | 229ce118132eb925b2ce21171f5a6431316341f1 | f506c2a2a449744ab4e9a414090abb7c182adee0 | refs/heads/master | 2023-02-24T12:14:09.076213 | 2021-02-01T08:47:01 | 2021-02-01T08:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | # Copyright 2020 PAL Robotics S.L.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"noreply@github.com"
] | noreply@github.com |
8aa6865996718d8e8bc7b07ae5c2997774414575 | 843c24b10600664c80bd5f0ee4bafb8837933aa2 | /tests/migrations/0001_initial.py | 8709b9a59c78d2ec0cfa835b04374881971f6f10 | [
"MIT"
] | permissive | MaxLarue/django-simple-acl | 09c4d416fa0d1feeefba09834a20e501e3347a7d | d980d149b663b0742eb2baf52ff596e7827c8941 | refs/heads/main | 2022-12-25T04:38:42.450727 | 2020-10-09T18:03:31 | 2020-10-09T18:03:31 | 301,783,497 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Generated by Django 3.0.8 on 2020-10-07 14:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(... | [
"maximilienlarue@gmail.com"
] | maximilienlarue@gmail.com |
71df9a20bf7584b49b5d66c00b8295b3e97ee01b | bd88cc281bf5cb92d7f5cd29c028298b0f79de2e | /robot-name/robot_name.py | 749f9abc8323278c1d0db1162dfba32397a7ec6d | [] | no_license | kingsley-ijomah/python-basics | 4f3b6bcb4c264d23d9d223d2e00609ad30b7b0e5 | 190409625246243a0be6cc5e52463d541497b467 | refs/heads/master | 2021-03-11T20:03:09.272119 | 2020-05-13T08:30:08 | 2020-05-13T08:30:08 | 246,557,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from string import ascii_uppercase, digits
from random import seed, sample
class Robot:
def __init__(self):
self.generate_name()
def generate_name(self):
seed()
self.name = self.alphabets() + self.digits()
def reset(self):
self.generate_name()
@staticmethod
def al... | [
"kingsley.ijomah@gmail.com"
] | kingsley.ijomah@gmail.com |
c83edd0b9cd2dd22f40be2012e2d44f280509dc0 | d63222abe326a3c8debd59bb8d24cb7eab3de09e | /codeforces/contest/1108/C.py | f7085b931f6177bfc0fd876a9a41f15536b83baf | [] | no_license | tariqrahiman/pyComPro | 91f47e93eb0a077d489659fcf0a75d5c1a65fc17 | 86ec13f47506a2495ab6b6bbb58d4e8b2a21538b | refs/heads/master | 2022-02-10T04:15:40.194828 | 2019-06-16T10:22:38 | 2019-06-16T10:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | """
this is a standard python template for codeforces task, repo: github.com/solbiatialessandro/pyComPro/codeforces
"""
from sys import stdin as _stdin
from sys import stdout
stdin = lambda type_ = "int", sep = " ": list(map(eval(type_), _stdin.readline().split(sep)))
joint = lambda sep = " ", *args: sep.join(str(i) if... | [
"alexsolbiati@hotmail.it"
] | alexsolbiati@hotmail.it |
f5ee9bc0c51ee44c6d9d875ba0b7acf8821333c9 | 110757a8fdbe66b758accd953fb8023f54999f1b | /usersvc/views/users.py | 796827182548e76af30a98e8f26c7afaf3d06dc0 | [] | no_license | rhintz42/usersvc-pyramid | 752bd8b4dac1c9f8cdb634f66d0b615825dd0026 | 1e219cf49d2c52381078f03d0b6b71d6097fd17a | refs/heads/master | 2021-01-01T15:36:40.545157 | 2014-05-27T01:14:31 | 2014-05-27T01:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | from pyramid.view import view_config
from usersvc.repos.users import UsersRepo
import json
@view_config(route_name='users_index', renderer='json')
def index(request):
users = UsersRepo().get_all()
return {'data': {'users': [u.__dict__ for u in users]}, 'status': 0}
@view_config(route_name='users_show', ren... | [
"roberth@surveymonkey.com"
] | roberth@surveymonkey.com |
21b8e4c051bc51bf518d32150685bbb86703eb02 | 7249d3f474e1d317b86a4cd04d59a9e47047b88c | /{{cookiecutter.project_slug}}/scripts/setup.py | d0ba7cea27fef5462267e5df194c3096778ad8fc | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | milost/cookiecutter-python | 856516a68661360e9c630d7417662e9d53d3bfbb | 56fd1a1435b9d2b606d1dc066f2d5a372dcb48fd | refs/heads/master | 2023-01-24T14:58:46.447564 | 2020-11-21T20:07:01 | 2020-11-21T20:07:01 | 276,476,732 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,105 | py | from yaml import load, dump
try:
from yaml import CLoader as Loader, CDumper as Dumper
except ImportError:
from yaml import Loader, Dumper
import questionary
import subprocess
import re
# def get_prompt(question: dict):
# if question['type'] == 'text':
# return questionary.text(question['question'... | [
"loster.michael@gmail.com"
] | loster.michael@gmail.com |
fb4cee789396a77d6f6656d71da940000ec15dbd | ed0e019b0542b3b37bc9001a3dd975c4794aba5a | /zomb/core/urls.py | 3edcb298936f1fb8bddb1ea0b04604e232e39fee | [] | no_license | jamiecounsell/zomb | 282e31575370e6e73d8a60cd0d15f0bfe10a94af | c96480e1e8b96426388a6794ed06a0dae57cfb8f | refs/heads/master | 2021-01-10T10:35:32.211609 | 2016-03-10T19:36:12 | 2016-03-10T19:36:12 | 53,602,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | """zomb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"jamiecounsell@me.com"
] | jamiecounsell@me.com |
5883b9b06b9e9e5a99ea09cb87fd2f03ea221336 | 3a730dc7b83683c8ea277e87e054e3be40290b27 | /django_start/bin/easy_install | 65548784598adb6791674951ab91787f0808aa44 | [] | no_license | Glinzerow/my-first-blog | 258e41efe3129678b880051a4299e591ed0da2d1 | 9a5e8094e6e44ccd8898bb9043532407872a75d2 | refs/heads/master | 2020-04-16T10:41:13.116908 | 2019-01-24T08:56:26 | 2019-01-24T08:56:26 | 165,513,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | #!/home/christoph/Dokumente/Uni_Potsdam/Auslandssemester/Kurse/sozseti/django_project/django_start/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(ma... | [
"christoph.glinzer@googlemail.com"
] | christoph.glinzer@googlemail.com | |
ae6c7abf99c5abe99d8bc63fe8054f268c0091ed | 2cf93693d44fc5e45f876e4b1772d51071d80828 | /main.py | 154e30b5d8a2810d0773c2c19e1353dda62ee359 | [] | no_license | kishuagarwal/particle-simulation | 2c328f2146996b4a342217c089075caab0c422fe | f7adcf08219d32aa35a084dd471b6040ca3759db | refs/heads/master | 2021-01-01T15:14:46.759941 | 2020-02-09T16:05:56 | 2020-02-09T16:05:56 | 239,332,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | from matplotlib import pyplot as plt
from matplotlib import animation
class Particle:
def __init__(self, x, y, ang_speed):
# Setting the initial position and angular speed of the particle
# with respect to origin
self.x = x
self.y = y
self.ang_speed = ang_speed
... | [
"noreply@github.com"
] | noreply@github.com |
a7572e43a2f26edfa19c3b07b0aa1238af7768af | a63817cf71448b4bdc7c78cad6127ef0e1efb332 | /SSLCentralUnit/create_sound.py | 16bcdc344b15a9d85b580db9d9f9f8aa8ca5b8d7 | [] | no_license | ValentinVignal/SecureSoundLocalisation | ef08ed35234cf92da61b7632cfc0c2e903a803db | 4772214dae3260d3ec91d0aff0532471710ea304 | refs/heads/master | 2023-07-28T14:51:00.340628 | 2019-11-07T08:34:51 | 2019-11-07T08:34:51 | 209,342,947 | 0 | 1 | null | 2023-07-06T21:46:13 | 2019-09-18T15:29:13 | Kotlin | UTF-8 | Python | false | false | 778 | py | import numpy as np
import json
from pathlib import Path
import scipy.io.wavfile as wav
import matplotlib.pyplot as plt
common_path = Path('../common')
rate = 8000 # Hertz Encodage for wav file
f = 440 # Hertz Frequence of the sinus
duration = 0.25 # second Duration of the sinus
n... | [
"valentin.vignal@gmail.com"
] | valentin.vignal@gmail.com |
682ab1d7536812a93158001b7ae9c6dec5171b4e | da46f32ac18f85b1ec33b007093e15f89ddaaa05 | /graygram/models/post.py | 0c32f5d00fbd684d7583b22fc8e05f8a4e0f8554 | [
"MIT"
] | permissive | ssauma/graygram-web | 674aa5be74599f0b8492f74262d14657a45d3e45 | 9008615e6415706725e234d8adb0275d30cd75c4 | refs/heads/master | 2023-03-16T07:20:36.094401 | 2017-03-19T19:43:01 | 2017-03-19T19:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | # -*- coding: utf-8 -*-
from sqlalchemy import select
from sqlalchemy.ext.hybrid import hybrid_method
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.sql import functions as sqlfuncs
from graygram import cache
from graygram import m
from graygram.orm import db
class Post(db.Model):
id = db.Col... | [
"devxoul@gmail.com"
] | devxoul@gmail.com |
6c44776e825d3346cfac0b9a6c14423c6af1d092 | 62dc3a8e806142de25e4efc07b1c67b2b1d2793c | /AutomationPractice/ultilities/Random.py | a41b4d062f42068ee30a91e9987738d174609500 | [] | no_license | Self-learning-automation/Automation-Script | 811a24c666ca3a9837cd5165dafb1e99c4b59e6b | 879a2c13224c9b01d2383d4d921a685a8ba18afe | refs/heads/master | 2020-03-21T22:39:36.322109 | 2018-07-21T14:01:24 | 2018-07-21T14:01:24 | 139,139,250 | 0 | 0 | null | 2018-07-27T10:11:40 | 2018-06-29T11:01:35 | Python | UTF-8 | Python | false | false | 547 | py | import random
class Random():
def randomString(self,length):
string = []
char_list = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
for i in range(length):
string.append(random.choice(char_list))
return ''.join(string)
def randomNumber(self,min,max):
... | [
"tuanbuic@HarveyNash.vn.local"
] | tuanbuic@HarveyNash.vn.local |
e8fba3e66c853c5a89e54922bcbc99e07eea8bfc | 1ad12cbda2d378c403b9349a867c1e181e4eedc2 | /UWsubduction/params/utils.py | 7aba9b4cf25e1bd3fddd9dea2cb03abd0f66b010 | [
"CC-BY-4.0"
] | permissive | dansand/UWsubduction | 0633fd08b6e8505f156c62b59e730b49fd1ed03e | e13183de2dfb362a5531eaa926aeee0c352b8f29 | refs/heads/master | 2021-03-24T13:33:15.804823 | 2020-01-09T03:27:46 | 2020-01-09T03:27:46 | 119,228,582 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from easydict import EasyDict as edict
#####################
#Now we map pd, md to non-nonDimensionalized dictionaries, paramDict, modelDict
#####################
def build_nondim_dict(d, sca):
ndd = edict({})
for key, val in d.items():
#can only call .magnitude on Pint quantities
if hasattr(v... | [
"sonderfjord@gmail.com"
] | sonderfjord@gmail.com |
a580db8daccc8618eba93d33514683773bc2a429 | 487ed6f76af6246342c48b2599b0cf2a5b7e9385 | /blogrestapi/views.py | 6a58cf0036f20e116146757f5d6d0f5036a2214e | [
"MIT"
] | permissive | shreyashc/social-media-blog-rest-api | 8489d5e6a5acd5ee813c614f772d4cc505e13623 | 215b7e728ac8288b92f38cd187cf097f574a16d6 | refs/heads/master | 2022-12-23T22:18:58.667100 | 2020-10-02T05:11:11 | 2020-10-02T05:11:11 | 300,235,092 | 1 | 2 | null | 2020-10-01T11:03:45 | 2020-10-01T10:14:45 | Python | UTF-8 | Python | false | false | 183 | py | from django.shortcuts import render
def home(request):
context = {
'BASE_URL': "https://hcblogapi.herokuapp.com"
}
return render(request, 'index.html', context)
| [
"shreyashc018@gmail.com"
] | shreyashc018@gmail.com |
7af0376a5562ec743e2a08fbb946d93aca37ae1b | 211c7a04c4deca8f9771a03e1d5ccabd7608d1ce | /mysite/mysite/queries.py | d5f06123f5a889747814aa758a965fe32d5b1e24 | [] | no_license | acsalcedo/recipe-ontology-ws | 97466d7f765233737f710ef318bab4b76f7b2d0a | a563cbe6d0b0354b04dc28b0b89ce67a940a383f | refs/heads/master | 2021-01-21T15:37:40.901032 | 2015-11-16T14:29:46 | 2015-11-16T14:29:46 | 45,411,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | from json2html import *
import requests
import json
prefix = """
PREFIX recipe: <http://www.semanticweb.org/andrea/ontologies/2015/10/recipes#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
"""
def q1():
query1 = """
SELECT ?recipe_name ?predicate ?object
... | [
"andreacsalcedo@gmail.com"
] | andreacsalcedo@gmail.com |
0f078013a3ca010db1f34cbc723a21cb395b2935 | 23f5e0c16fbf4697fefd79f93ab9486de7485816 | /factorial.py | 3db4a7d7f47595f0042e3972c8a8e1f28b01925b | [] | no_license | Hudsonbaker4/New-Turing-Omnibus-Ch24-Recursion | 592fedf591acbed3588939adb95393a2db47c6e8 | 8a567274b51b22737209367af8fad58c4cfdb9dd | refs/heads/main | 2023-05-12T21:11:46.005614 | 2021-05-31T14:18:11 | 2021-05-31T14:18:11 | 372,519,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def factorial(n):
if n < 0:
return "Error"
elif n == 0:
return 1
else:
return n * factorial(n - 1)
n = int(input("> "))
print(factorial(n))
| [
"noreply@github.com"
] | noreply@github.com |
b985159b632a846ca36ff8c37e04b28593ec9399 | da842fbdea083b3356e79d3b949b445d689db6d8 | /Question6EasyTier.py | 33c1e9e0322ddb112901a9b40157b1b447a7a72c | [] | no_license | RyanHowse/AlgoExpertSolutionsEasyTier | 708dacb12184475c98bc6900cd72bc19dc3ec7a6 | c692e6699bad9808fcbd5773cbc2e30ccc7826d5 | refs/heads/main | 2023-05-25T11:44:13.847075 | 2021-05-31T22:42:04 | 2021-05-31T22:42:04 | 364,696,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | #Ryan Howse
#5/9/2021
#Find the closest node value to a target value in a binary search tree
def findClosestValueInBst(tree, target):
#we need a return variable
closestValue = 0
#we need a BST object that we'll initialize to the tree
currentNode = tree
#and we'll have an escape flag for our while loop
keepLooki... | [
"noreply@github.com"
] | noreply@github.com |
c88446b3df85bb2c22a15a2b4406a234622d0aab | 93ec7520888ad3e112fc2d3f5353489277b7da97 | /app/__init__.py | 6d90b24e4d3a6974ae783feffc00faf0f97b7031 | [] | no_license | ccir41/microblog | c8235e2a85556ccdb4ee6dcd5a4d81ca4bd724d4 | 64e958dd83a7e4e3b07c35a8bb4b4f087282c298 | refs/heads/master | 2020-04-14T17:10:26.883861 | 2019-03-27T03:51:24 | 2019-03-27T03:51:24 | 163,971,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | from flask import Flask, request, current_app
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
from flask_mail import Mail
from flask_bootstrap... | [
"shishirsubedi41@gmail.com"
] | shishirsubedi41@gmail.com |
344d79ef99e3f2d869a4b5a4d9c790c1754d46c8 | 283c9d96005ef0bc255560de20685f60c74a73e2 | /src/gui.py | 8148a09cb2367d5d7c8bae3b667289508de81ffc | [] | no_license | brihui/AbaloneAI | 1091c252d58ea7a74aa32912ad898f53b69b97ca | 513609bb994f222bd8dc4e3d85a41e4f866c022b | refs/heads/master | 2023-04-17T23:59:23.039563 | 2021-04-27T22:51:37 | 2021-04-27T22:51:37 | 362,242,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,758 | py | import datetime
import tkinter as tk
from tkinter import font as tkfont
from os.path import dirname
import game
from exceptions import CannotMoveException
from game import Game
from board import Board
from enums import InitialBoardState
from enums import MoveDirection
from enums import GameMode
from enums import PieceT... | [
"brianhui94@gmail.com"
] | brianhui94@gmail.com |
471363907332458677f8c8441596c6f6ab3bfaaa | 17e60f61fc82e7369802a1c597b58b0206ad9bec | /lib/rcDiskInfoWindows.py | d9621266bcf71fa24434e68c138816b64b16097e | [] | no_license | SLB-DeN/opensvc | 5e06d42947f51662fa16203a00670a88b9e1fea9 | 75baeb19e0d26d5e150e770aef4d615c2327f32e | refs/heads/master | 2021-05-17T05:35:18.585791 | 2020-03-19T15:20:05 | 2020-03-19T15:20:05 | 250,651,667 | 1 | 0 | null | 2020-03-27T21:29:22 | 2020-03-27T21:29:22 | null | UTF-8 | Python | false | false | 3,598 | py | import rcDiskInfo
import wmi
from rcUtilities import justcall, which
class diskInfo(rcDiskInfo.diskInfo):
def __init__(self):
self.h = {}
self.fcluns = {}
self.wmi = wmi.WMI()
def scan_mapping(self):
if len(self.fcluns) > 0:
return
if not which('fcinfo'):
... | [
"christophe.varoqui@opensvc.com"
] | christophe.varoqui@opensvc.com |
36f62627e0ca608318f0af03cb4d32d0fcd88a63 | 45e7fc0c586729a9fbff0cd5ec036db292264bad | /siena/warp_BM_siena.py | 10bc958ee81017c5b1ef5533e1c6f6dd9436d6b8 | [] | no_license | ginakirkish/henrylab_scripts | 5a11dc96ed03f85e00b7330d26ee776b6f93ac63 | 5e3009180a731ccd10c851668b00234e6e6728a5 | refs/heads/master | 2020-12-12T17:48:48.280077 | 2020-02-10T19:22:42 | 2020-02-10T19:22:42 | 234,189,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,521 | py | from subprocess import check_call
from time import time
import argparse
import json
import pbr
from pbr.base import _get_output
from glob import glob
import os
import shutil
import pandas as pd
pbr_long ="/data/henry12/siena_BM/"
def get_t1(mse):
with open('{0}/{1}/alignment/status.json'.format(_get_output(mse), ... | [
"gina.kirkish@ucsf.edu"
] | gina.kirkish@ucsf.edu |
1f9241424c4fab1c24ea942c49bac9b2097fbe7b | faf3c0f019c432cba008d14ef929945e1ab9ba8f | /survos2/survos.py | 280f9771c29a07468c1fcee346e8b8d3d376b309 | [
"MIT"
] | permissive | kotenev/SuRVoS2 | 268176b4f44bef9364addba91c14fd19b323cad0 | 44f000348a066c12c628ca79ec9ea3b33b441a4e | refs/heads/master | 2021-04-26T22:10:23.104672 | 2017-11-28T15:36:54 | 2017-11-28T15:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,008 | py |
import re
import hug
from hug.use import HTTP, Local
import logging
from importlib import import_module
from .config import Config
from .api.utils import APIException, handle_exceptions, handle_api_exceptions
__plugins = {}
__api_started = False
def _parse_uri(uri):
if type(uri) == str:
pattern = r... | [
"imaluengo@gmail.com"
] | imaluengo@gmail.com |
b72f5baa3fd8a15ca6e287aab1f205e49bbd1d48 | 9446edd757eba4a50a225c9b687b1253b00fb37f | /roles.py | 7e1f2ce7e872b44e5152a1b7fc8f0d66bd986d89 | [] | no_license | McTrees/werewolves-bot-1 | e9f1a067a5c228b6d05385abf9d1de90d29f7074 | 880bab276d3e0ab1b0874a3f00175a4c3dc41254 | refs/heads/master | 2021-09-02T20:18:22.516930 | 2018-01-03T21:30:22 | 2018-01-03T21:30:22 | 115,853,000 | 0 | 0 | null | 2017-12-31T08:52:05 | 2017-12-31T08:52:05 | null | UTF-8 | Python | false | false | 588 | py | import botobject
bot = botobject.bot #import the bot object
@bot.command(pass_context=True)
async def fortuneTeller(ctx,data):
print("the "+ctx.message.author.mention+" requested to see "+data+"'s role")
if (datetime.datetime.now().hour < 20 and datetime.datetime.now().hour > 8):
await bot.say("you can only run th... | [
"adds.robbie@gmail.com"
] | adds.robbie@gmail.com |
e9d08fb38f41900e89177b5515f85182ecfe6cd5 | 816232db2f21e193612eaa60eda0d5897d31caaf | /Programmers/LEVEL2/python/55.py | 47f97eb5c51d3dee56af5e64dd564c36575baf9e | [] | no_license | Juyoung4/StudyAlgorithm | a60bfa7657eac57f59200bfa204aff1ad27c79f8 | 4b190e0bfeb268bef4be00ae9bedd9ca8946fbd6 | refs/heads/master | 2023-08-31T04:37:07.422641 | 2021-09-27T08:38:09 | 2021-09-27T08:38:09 | 282,757,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # 괄호 회전하기
def solution(s):
answer = 0
s = list(s.strip())
len_s = len(s)
if len_s == 1: return 0
if set(s) in ({'['}, {'('}, {'{'}, {']'}, {')'}, {'}'}): return 0
for i in range(len_s):
if i > 0:
s.append(s.pop(0))
stack = []
for idx in range(len... | [
"47167335+Juyoung4@users.noreply.github.com"
] | 47167335+Juyoung4@users.noreply.github.com |
6b20f807b9e86d7ddef617a9f7769ebceb188006 | d20c230803f1fcf7611e16236266e1ed02a29ce1 | /session_02_1.py | 83b05325922acd4dfb94853685033bab67bbd8eb | [] | no_license | duke253/Rost_Sessions | 8bfebc148e95f19cbe5d1a9823b91cdd2ce53b2f | 91db60a5ffcdb4460031f4ea40a785d296e6aa21 | refs/heads/master | 2022-10-06T04:23:44.508456 | 2020-05-31T12:31:26 | 2020-05-31T12:31:26 | 268,272,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | user_dict = {}
answ = ''
while answ != 'N':
user_input = input('enter key-value pair, separated by comma(,)')
key, value = user_input.split(',')
user_dict[key] = value
answ = input('press Y to continue input, N to exit')
print(user_dict) | [
"g.duke253@gmail.com"
] | g.duke253@gmail.com |
a5296081207fadfda275e7283f5b04ff33132312 | f07c621a15c4eae302c133574b6c3d85e9416ab4 | /base/migrations/0078_workersinstalled_workersused.py | b79946c9b094b2cadcf6f9d70e73574c389dc65e | [] | no_license | ximepa/moneypot-api | 13d2c4b28605a8ba34450582e7b400e9ea6fae2a | 4134750b44560a7d69db4b3ed3e28a9aa20c2726 | refs/heads/master | 2020-12-31T06:08:41.748112 | 2017-02-01T15:58:29 | 2017-02-01T15:58:29 | 80,636,199 | 0 | 0 | null | 2017-02-01T15:56:29 | 2017-02-01T15:56:28 | null | UTF-8 | Python | false | false | 940 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0077_workersitem_workersreturn'),
]
operations = [
migrations.CreateModel(
name='WorkersInstalled',
... | [
"shamanu4@gmail.com"
] | shamanu4@gmail.com |
5f3b114edb77ef8372388472e509b780881e6bac | b9651b4a73d17847a9df7c953d3b0753b260af3e | /view/messageview.py | 4dda6de42525476d7b2f55b0a97b544501673500 | [] | no_license | KevinB-a/forum | 3270dd2dfa763455e9a6fdf0e3077f54413b3d77 | b10bf8f7381e2bc03df9777cb0e1df1cea298785 | refs/heads/master | 2020-12-11T14:37:57.936880 | 2020-03-05T11:01:13 | 2020-03-05T11:01:13 | 233,873,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from model.messagemodel import MessageModel
class MessageView ():
"""class to create and display messages"""
def __init__(self):
self.model = MessageModel()
def new_message(self):
"""write a new message with user entries """
content = input("Entrez le contenu de votre ... | [
"kevin.billet.pro@gmail.com"
] | kevin.billet.pro@gmail.com |
0aca0fa93b087115f742f7f9df0f030f608de8bc | fd21d6384ba36aa83d0c9f05f889bdbf8912551a | /a10sdk/core/A10_file/file_dnssec_ds.py | ee5c3a4e9eccaa7b00d15e80f993072ec6a00574 | [
"Apache-2.0"
] | permissive | 0xtobit/a10sdk-python | 32a364684d98c1d56538aaa4ccb0e3a5a87ecd00 | 1ea4886eea3a1609b2ac1f81e7326758d3124dba | refs/heads/master | 2021-01-18T03:08:58.576707 | 2014-12-10T00:31:52 | 2014-12-10T00:31:52 | 34,410,031 | 0 | 0 | null | 2015-04-22T19:05:12 | 2015-04-22T19:05:12 | null | UTF-8 | Python | false | false | 1,904 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class DnssecDs(A10BaseClass):
""" :param action: {"optional": true, "enum": ["create", "import", "export", "copy", "rename", "check", "replace", "delete"], "type": "string", "description": "'create': create; 'import': import; 'export': export; 'copy': co... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
57331a78d2e3e7e787ce878d273f196fc4832444 | 99564f780b898ff0819c1ad2ca727c522c4f6c8d | /I0320121_exercise 7.12.py | 0b4d31fdd42e900b28a429134f3193a4ddb69660 | [] | no_license | alicafitriani/Alica-Ayu-Fitriani_I0320121_Muhammad-Abyan-Naufal_Tugas7 | c4c3a7c662c7f346ea7913beddac83fb52c6dc6b | a2aca6a34fc77f307e142107f284f4bb9640216c | refs/heads/main | 2023-04-09T10:38:35.566434 | 2021-04-17T01:38:16 | 2021-04-17T01:38:16 | 358,453,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | str = "Hello world"
print("str: " + str)
print('str index o = ', str.index('o'))
print('str index l = ', str.index('l')) | [
"alicaaf9@gmail.com"
] | alicaaf9@gmail.com |
0a9c28376ad62c1a72ab61a0303df40790630ad3 | e8e0dfc0806da4a30a4397f6be8a7459ac3ba253 | /04_arcpy/04_other_tools.py | 8ba1bdd2c4242153c888dda880547c63e468ae00 | [] | no_license | rustygreen/python-class-examples | 5602fba00d5141f395512d0d779b29abbe62eafc | bde52ef8f31eb8d0e33a3db566c6cd14daab722a | refs/heads/master | 2021-01-10T04:33:37.727873 | 2018-04-05T00:22:37 | 2018-04-05T00:22:37 | 44,629,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | import arcpy
arcpy.MakeFeatureLayer_management('streams', selected_streams_layer, 'OBJECTID < 9000')
| [
"rustymgreen@gmail.com"
] | rustymgreen@gmail.com |
cb877e955f3682423535f9a629b0c86bed494994 | 3efbf2e8d9d89a2cc2d57344f19d5f6565d853e9 | /List-1/make_ends.py | 65b052521d68be06d8ce7a646aaec59917ceadd7 | [] | no_license | vipulsinghbrahmania/codingBat | 932a3b4819a0eab767377538c5bf1159c5018929 | 6208fbfd09a787648c89d11649f426bfe38d74d3 | refs/heads/master | 2020-03-26T18:23:50.868910 | 2018-08-18T20:35:51 | 2018-08-18T20:35:51 | 145,210,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def make_ends(nums):
return [nums[0], nums[len(nums)-1]]
| [
"vipulsinghbrahmania@gmail.com"
] | vipulsinghbrahmania@gmail.com |
ea784ab6b3887ce4aabb9f7442005777a3f782ba | 759f7ab768d20e037f0cfb455da7619ba502dcbf | /client/network/Client.py | 91d3a1746da42298882030ba625c1bad79733db7 | [] | no_license | gelatindesign/Colony | 26d446109eb6da0ffd6019c4354fc32b8647855c | 379f75fd6d3594b147d6210893ac18e110f10fee | refs/heads/master | 2020-07-20T18:20:02.526484 | 2013-03-09T13:23:04 | 2013-03-09T13:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,256 | py | #!/usr/bin/env python
from pandac.PandaModules import QueuedConnectionManager, QueuedConnectionListener
from pandac.PandaModules import QueuedConnectionReader, ConnectionWriter
from direct.distributed.PyDatagram import PyDatagram
from direct.distributed.PyDatagramIterator import PyDatagramIterator
from pandac.Pa... | [
"info@gelatindesign.co.uk"
] | info@gelatindesign.co.uk |
ccae764344b61e02e98a695fbbcb8f7a4ab64455 | 379049c3c3ec7fbac35aec44895971002059643d | /05-python基础-字符串、列表、元组、字典/02-判断名字是否存在.py | e397ca0996acdf755631518507bdd117831d3efb | [] | no_license | mingyue33/python_base | 29e771415b59a80c8f0354723f621826aafb46aa | f6c25bb5f9ea4352764a2c7d6d6dd802cdf2b1cb | refs/heads/master | 2022-11-24T15:15:50.899518 | 2020-07-21T03:44:29 | 2020-07-21T03:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | #coding=utf-8
#1. 定义一个列表,里面有一些名字
names = ["xiaohong","xiaoming","laowang"]
#2. 获取一个要查找的名字
insertName = input("请输入您的名字:")
#3. 判断是否存在,并显示相应的提示
findFlag = 0
for name in names:
if name==insertName:
findFlag = 1
break#如果在前面已经找到了需要的名字,那么就结束循环,因为剩下的不会再进行判断,所以提升了程序的运行效率
#else:
# findFalg = 0
... | [
"qiilee@126.com"
] | qiilee@126.com |
c96d4b98cc7cb837e40d4cd84027acef66fed11d | 3f97932e39dca00a4a6cd6315624b379977275df | /classifiers/bilstm-crf-v1.py | 1e58249d54b1dfb9a55af88665fa6bff8af68bf5 | [] | no_license | nadlerBen/Covid19-ML-Project | 887367dae2a2755717e1c63ba45eb5c568c3f179 | 41b23423d73ccaec1aa596073cdfaa5f47a104e7 | refs/heads/master | 2022-12-27T00:20:12.662505 | 2020-09-28T12:18:48 | 2020-09-28T12:18:48 | 291,029,977 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,775 | py | import torch
import torch.autograd as autograd
import torch.nn as nn
import torch.optim as optim
import convert_data_to_lstm as cdtl
import pandas as pd
import numpy as np
from sklearn.preprocessing import MinMaxScaler
import matplotlib.pyplot as plt
torch.manual_seed(1)
def argmax(vector):
# return argmax of th... | [
"noreply@github.com"
] | noreply@github.com |
ff20bb58a642ec7b53247d4ce0bb08e1cbc8395a | e45c169ca84646993f0a751541b6865cf3972430 | /udp_recv_matr.py | 5a2182856d4024a4d992592698ec26ec47ae6340 | [] | no_license | nmsl1993/Super-Dongle-Code | adf60121ebfb1264a383f40ac310cc50c2f0c0c2 | 54fe3e5f6539a45444ff2624fd384bd2c6b715ac | refs/heads/master | 2020-04-11T01:29:19.547763 | 2015-09-28T18:03:22 | 2015-09-28T18:03:22 | 32,531,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | import socket, time, struct, binascii, mutex
import threading
import scipy.io
import numpy, scipy
CHANNEL_DEPTH = 128
UDP_PAYLOAD_SIZE = 818 #Derived from wireshark.
UDP_IP="" #This means all interfaces?
UDP_PORT=8899
cumulative = numpy.empty((0,1))
#sock.setblocking(0)
class UDPThread(threading.Thread):
def __in... | [
"noahmslevy@gmail.com"
] | noahmslevy@gmail.com |
8bcb9a0df3639fe02a9b93a66e802fea7740ab65 | ce864a3155ba441dab35fcd0f3d1d7f380d67106 | /Part1/RelationaDatabases/innerJoin_pandas.py | 2485139c6edea3fb659417323bea997b5ae11e74 | [] | no_license | rodrigoms2004/PythonImportDataCamp | c984e2b38c709899460f0a0cf5f1b4c06a7f91fa | 23ffc36f1454974e22a12f3eaa46d06d3f700ee6 | refs/heads/master | 2020-04-05T01:12:36.317958 | 2019-02-20T19:43:29 | 2019-02-20T19:43:29 | 156,427,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # Import packages
from sqlalchemy import create_engine
import pandas as pd
db_file = './RelationaDatabases/Northwind_small.sqlite'
# db_file = './RelationaDatabases/Chinook.sqlite'
# Create engine: engine
engine = create_engine('sqlite:///' + db_file)
# Execute query and store records in DataFrame: df
df = pd.read_s... | [
"rodrigoms2004@gmail.com"
] | rodrigoms2004@gmail.com |
f59661020a5586029caaf7167761769a3761314c | 3b7ea5ac5a8aadf4ce577d4988d3afca76672311 | /ziplist.py | d415cdeded50cfd1521572175d8c8d18126ab365 | [] | no_license | Parya1112009/mytest | 6c0fec16cbe5b83803fce9b270d8c03d247f34a3 | 6f698b64b34eae0d1d0f8ca1eab4257893fdce83 | refs/heads/master | 2022-11-23T22:38:24.463420 | 2022-11-16T03:48:44 | 2022-11-16T03:48:44 | 88,562,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | list1 = [1,2,3,4,13,14,15]
list2 = [5,6,7,8,19,20,21]
#print list[::]
list3 = zip(list1,list2)
print (list3)
print list3[1::2]
print list3[2::4]
print list3[::5]
print list3[4::]
| [
"noreply@github.com"
] | noreply@github.com |
39fa0a4e402e3262eab95ac247403c540224dc30 | df3a1bd4c681aa98a843216605846658058aa6cb | /cowepl/management/commands/add_music.py | 28eea833ac935b0e35482f963e90df438f05d5dd | [] | no_license | fopina/coweplayer | 7e8fb5e48369ac6de63177de6653d37e72d42c83 | 6f202d2dfdbeb22aeb9b0dfa135c151eae617079 | refs/heads/master | 2020-04-23T08:30:57.309461 | 2015-07-13T14:58:54 | 2015-07-13T14:58:54 | 32,427,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.core.management.base import BaseCommand, CommandError
from cowepl.models import Music
import pafy
class Command(BaseCommand):
args = '<youtube_link>'
help = 'Add music to database'
def handle(self, *args, **options):
if len(args) < 1:
raise CommandError('Link is required')
try:
p = pafy.ne... | [
"fopina@skmobi.com"
] | fopina@skmobi.com |
c36a55feb78c27bd5bb766ab56a9ba1be2630d1e | 590a0ddba3c740e667990d8c44d91dd76c9e5ea2 | /lec05/forms.py | 20c4caa5b0c5202f594aebe5fa9727f63df8cf8e | [] | no_license | Gabe-ds/sim_hash | 8c75599fccd5a1caa284d044616286be4ab30b58 | 9f8eff9b0ec60c4cc768b61b4296b889b96834e7 | refs/heads/master | 2023-06-18T12:18:05.230972 | 2021-07-12T06:29:42 | 2021-07-12T06:29:42 | 384,333,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | from django import forms
from django.db.models import fields
from .models import *
import os
VALID_EXTENSIONS = ['.jpg', '.jpeg', '.png']
class UploadImageAHashForm(forms.Form):
image = forms.ImageField()
def __init__(self, *args, **kwargs):
super(UploadImageAHashForm, self).__init__(*args, **kwa... | [
"mahiro.sogabe.2019@ds.musashino-u.ac.jp"
] | mahiro.sogabe.2019@ds.musashino-u.ac.jp |
bd4c5ca8273a929311d325ad920ac2c7004b5306 | b8d4602a65230f2564d0b9e8c8639192cb8c4975 | /applications/review/migrations/0002_like.py | 8fa9466a7b85b66a93cbb45a0b34bbccaa1f0f35 | [] | no_license | severita13/online_store_project | 2d7fd9a3de3aa590f1faf2e9908a80c9341b652f | fd319eda77a613f91661280e9c17d324eaba7771 | refs/heads/main | 2023-09-06T00:05:40.665647 | 2021-11-24T11:07:32 | 2021-11-24T11:07:32 | 430,734,874 | 0 | 0 | null | 2021-11-24T11:07:33 | 2021-11-22T14:15:02 | null | UTF-8 | Python | false | false | 914 | py | # Generated by Django 3.2.9 on 2021-11-22 12:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('review', '0001_initial')... | [
"user@MacBook-Pro-Zarni.local"
] | user@MacBook-Pro-Zarni.local |
b285a6b8ca9eb4ac0643ebe0bdb04b7377c2d3da | fbd5c602a612ea9e09cdd35e3a2120eac5a43ccf | /Finished/old_py/393.utf-8-编码验证.py | 76699d6f1fd1474e7ccec68a99bacf073a2a8d57 | [] | no_license | czccc/LeetCode | 0822dffee3b6fd8a6c6e34be2525bbd65ccfa7c0 | ddeb1c473935480c97f3d7986a602ee2cb3acaa8 | refs/heads/master | 2023-09-01T18:18:45.973563 | 2023-08-27T02:44:00 | 2023-08-27T02:44:00 | 206,226,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | #
# @lc app=leetcode.cn id=393 lang=python
#
# [393] UTF-8 编码验证
#
# @lc code=start
class Solution(object):
def validUtf8(self, data):
"""
:type data: List[int]
:rtype: bool
"""
def get_one_number(n):
for i in range(5):
if n & (128 >> i) == 0:
... | [
"lichchchn@gmail.com"
] | lichchchn@gmail.com |
b3a1e3a07987143f4265fcc08691b99decc1accf | b542b995476ed67952cd87d9c9a5d4718335e512 | /week2/정유리/example/calculator/urls.py | 79c2e97f2c24507c7e86bb3876549e1053490a4d | [] | no_license | hyu-likelion/NESI | 2776ebb2c5e38bb0348e8846e7790bcde30d8445 | 41b5c7da6c7395f92d7b0cd1fa2fe9345d744826 | refs/heads/main | 2023-05-01T18:59:41.585360 | 2021-05-12T07:11:29 | 2021-05-12T07:11:29 | 351,065,836 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.main, name="main"),
path('calculator/', views.calculator, name="calculator")
# 메인페이지 url
# calculator 페이지 url
] | [
"jayjolly915@gmail.com"
] | jayjolly915@gmail.com |
c8d569e952f3d9d0fec52d9d84ed0ffd3f91c6c2 | 23a998d1f633a3daeb8d38708acbed713b260b49 | /crawlers/Web Crawler.py | f3d9bb271026c8470870517671e1378fc05c404c | [] | no_license | awilkeson/Btown-Bars-Project | daaf49e82b8b6f4274cbfdbe6553f7b9ee84baa1 | 47036ed62fec107d39bf5cef6bf80d88faa7a7e0 | refs/heads/master | 2020-08-06T07:07:46.560719 | 2019-10-04T19:12:21 | 2019-10-04T19:12:21 | 212,882,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import requests
from bs4 import BeautifulSoup
pageLink= "https://kilroyskirkwood.com/specials/"
page_response = requests.get(pageLink, timeout=5)
page_content = BeautifulSoup(page_response.content, "html.parser")
specials = page_content.find_all("strong")
days = specials[1::2]
for day in days:
... | [
"ashley.wilkeson@gmail.com"
] | ashley.wilkeson@gmail.com |
ed07363257168560456e3fc88ff1aedb6a64183a | 66f5f2ea268be5335d1109cd58664a8366011e8f | /lib/main.py | 098a362425fede662d69eb947553d5ffddb55295 | [] | no_license | lungdart/Breakout | 651b3c3ada6218f7cf1331dd6a7b1775daf93f14 | 2e67379678d1e2d4a721a132c122c10a5afbc2f9 | refs/heads/master | 2020-05-20T10:05:50.683236 | 2012-06-19T21:55:33 | 2012-06-19T21:55:33 | 4,719,612 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | import pygame, sys
from lib import display, clock, events, board, menu
GAME = None
def loop():
#Initilize the screen, battlefield and set semi-global variables
screen = display.init((1280,780), "Any-bit Paddle")
global GAME
GAME = menu.Intro(screen)
GAME.play()
while True:
... | [
"lungdart@gmail.com"
] | lungdart@gmail.com |
4d8386c06c0249fd3d57ecccce9a2ea74ebb0288 | 777f24af233f8cc3fb9669a9a425ecdf4aba5cc4 | /Basics/lev2/prob_7.py | 6c860c6d322e3b57b95698f9278d17fc03d0bc35 | [] | no_license | JagadeeshVarri/learnPython | 15f8fd72e4b83991eddb8e796ef3abdcc1bab333 | 9659b01dd42ca5d461c611778cd5dd729fddfc92 | refs/heads/main | 2023-04-18T23:17:23.026286 | 2021-05-04T17:27:42 | 2021-05-04T17:27:42 | 360,195,232 | 0 | 0 | null | 2021-05-04T17:27:43 | 2021-04-21T14:12:19 | Python | UTF-8 | Python | false | false | 297 | py | # Write a Python program to count the number of each character of a given text of a text file
import collections
import pprint
file_input = input('File Name: ')
with open(file_input, 'r') as info:
count = collections.Counter(info.read().upper())
value = pprint.pformat(count)
print(value) | [
"jagadeesh@applines.com"
] | jagadeesh@applines.com |
cd02ea23c2c03da7f44a8744718237b2103187e0 | facfed1aca13bd18d3ad6dca42b9c1bef64c5e08 | /webpage/migrations/0002_auto_20210114_1204.py | 181cfe8ae9219d855aa37f40afdd063bf6fa1fd6 | [] | no_license | EnigmaVSSUT/Qwik-Web | 59c1c795d11a781fe862418c68c44504abede4c7 | 6919e6a7ebd6da0cddf85c16769287f101e0c524 | refs/heads/main | 2023-08-15T13:34:35.237590 | 2021-10-03T15:16:09 | 2021-10-03T15:16:09 | 329,218,960 | 2 | 12 | null | 2021-04-20T06:16:09 | 2021-01-13T06:49:27 | HTML | UTF-8 | Python | false | false | 1,500 | py | # Generated by Django 3.1.2 on 2021-01-14 06:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webpage', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='member',
name='facebook',
f... | [
"priyanshusingh1998@gmail.com"
] | priyanshusingh1998@gmail.com |
9edafec1aa7a4ace24ef0ece118182a2d8354582 | f5dd47b81ae6ebf811f174f638de312d9349904e | /apps/userOperate/migrations/0003_auto_20181218_0248.py | ddd5ed451f557c97363a96a55cdd2ab1b0cb4eec | [] | no_license | jy0205/DataBase-Design | 1d8155302adce600f8a7cc131ccf67a8672d946f | ed72e24178d6dd1ad3a14af8808ca43b7390e6ed | refs/heads/master | 2020-04-09T01:50:07.100204 | 2019-01-15T15:23:51 | 2019-01-15T15:26:11 | 159,918,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # Generated by Django 2.0.1 on 2018-12-18 02:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('userOperate', '0002_auto_20181210_1940'),
]
operations = [
migrations.AlterField(
model_name='userlove',
... | [
"15652579915@163.com"
] | 15652579915@163.com |
14f43bf48d1b026bf488ee30115ec39a80659475 | 41586d36dd07c06860b9808c760e2b0212ed846b | /desktop/toolkit/qt5/qt5-svg/actions.py | 472146b914b7669fbaa5b1036574caa84c1164b4 | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 827 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import shelltools
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import qt
from ina... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
3b4ba1350a1f73acf7e83c596465fde9b232b6e3 | 8ed5316677b08f9a44fd0686ab132b464ec3edc1 | /flyingCircus.py | b0a37114b9409036ae1ca37c7e2c78122988756d | [] | no_license | BetelGeuseee/monty-pythons-flying-circus | 92e6019979163caba4e6cfcc4b368ecf7c58b4a3 | 9c4a647a9b45adea67fc3fa9e0059854e3d82e7d | refs/heads/master | 2023-06-03T18:27:01.845210 | 2021-06-15T16:17:05 | 2021-06-15T16:17:05 | 376,460,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py |
new_list=[]
players=["shishak","hari","ram","yolo"]
country=["france","germany","nepal"]
new_list=[players,country]
jokelist=new_list[0]
print(jokelist[0])
| [
"shirshakupadhayay182@gmail.com"
] | shirshakupadhayay182@gmail.com |
0e8eda23512d0eec6c466d878f888ddf10954725 | cccd0d6cc25ca5bb7185dac8d126c85d7a0eb387 | /Lesson 4/multiplication.py | e9bcb0dab045f3078832c9b8e25396d5d209d76f | [] | no_license | thuhuongvan98/Huong-Van | c28699ee231238943a7ff7d787efe53b4a603cff | fee7aa76d2bf936faaf5c93386bc13975c15a716 | refs/heads/master | 2022-09-15T03:41:49.520399 | 2020-06-02T13:22:41 | 2020-06-02T13:22:41 | 242,356,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | a = int(input("Please enter a number: "))
number = 0
for x in range(1,a+1):
for y in range(1,a+1):
number = x * y
print('{:<5}'.format(number), end='')
print()
a = int(input("Please enter a number: "))
number = 0
for x in range(1,a+1):
if x % 2 == 0:
for y in range(1,a+1):
... | [
"thuhuongvan98@gmail.com"
] | thuhuongvan98@gmail.com |
e4daa4d6e144c02ac597d78241ad3a35b16afed7 | 9f884a3584eef771f8c010e296c5d763098be243 | /povary/apps/competitions/migrations/0005_auto__add_competitionvote__add_field_competition_voting_start__add_fie.py | f55e0c6e7189ace0cda0c46ccaa2572717f13e3e | [
"BSD-3-Clause"
] | permissive | TorinAsakura/cooking | fc8658ce2ac21c2e00dc307399a5fa24971a20c1 | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | refs/heads/master | 2023-01-24T13:07:38.529811 | 2020-12-08T22:14:33 | 2020-12-08T22:14:33 | 319,773,012 | 0 | 0 | BSD-3-Clause | 2020-12-08T22:14:34 | 2020-12-08T22:08:34 | null | UTF-8 | Python | false | false | 17,437 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CompetitionVote'
db.create_table('competitions_competitionvote', (
('id', self.g... | [
"me@torinasakura.name"
] | me@torinasakura.name |
8b499a01834703b1fdfa87cf6aa7340647c9c768 | 066331e16f1aaafd6084a1813459f8fa816fec8d | /liar.py | f01ea76a4421a790f937fac7731d8e7c8bc472a9 | [] | no_license | patrickdijusto/NoOneBelievesYou | 7cee2736597b87b97ed56cd58d7317180dd60a1a | 6d368d773334135820c7bcb588ba290c8eb2d381 | refs/heads/master | 2021-06-19T21:05:01.304588 | 2021-01-09T23:15:17 | 2021-01-09T23:15:17 | 137,670,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | #!/usr/bin/python
import twitter
import time
import csv
from settings import *
import datetime
import random as rx
global now
global api
def readTrumpianTweet():
print ("nothing")
def getPast():
## open file
## Read # of trump's previous tweet
## Close file?
flx = open('pastNumber.csv',"r")
row = flx.r... | [
"patrick@dijusto.com"
] | patrick@dijusto.com |
b0480d6a3406a5686ec59eb79bf0f6dabcf6e2f9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/97/usersdata/126/56593/submittedfiles/lecker.py | bc318ca69e3b8c6abb02f03aae910aa0e1177b20 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
def lecker(a):
cont=0
for i in range(0,len(a),1):
if i==0:
if a[i]>a[i+1]:
cont=cont+1
elif i==len(a):
if a[i]>a[i-1]:
cont=cont+1
else:
if a[i-1]<a[i]>a[i+1]:
cont=cont+1
if... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3b2b79319f16c05c8b41138125be1bb36e9dbf01 | e6492d944ed0b26a7604083c3a712d7938c1e016 | /그래프 탐색/7576_토마토.py | f4da305fc013c848ff1501823ee6556ae2cbeba1 | [] | no_license | ji-eun-k/Algorithm-Study | a5ce3f20ab1854823764ce78bbc8c19555eafcc5 | 11dd6e112de2d2559936b3254674b3fcca04783f | refs/heads/master | 2023-08-28T13:11:48.826100 | 2021-11-08T14:00:36 | 2021-11-08T14:00:36 | 389,123,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import sys
from collections import deque
input = sys.stdin.readline
dy = [1, -1, 0, 0]
dx = [0, 0, 1, -1]
m, n = map(int, input().split())
tomato = [list(map(int, input().split())) for _ in range(n)]
q = deque()
for i in range(n):
for j in range(m):
if tomato[i][j] == 1:
q.app... | [
"jeun313@gmail.com"
] | jeun313@gmail.com |
dab49c164602a4d78cdbd21190b3ec0959877d14 | 81d4a1c7cb9d03474eed1b840bdc2a8276f6c475 | /steward_discord/bot.py | 31fda8e75c9b64342656d247a398ea3317f4fb71 | [
"Unlicense",
"MIT"
] | permissive | AulonSal/steward-discord | f85b47ae4b3049f7d3c37ed28bf65873ef8c5a4a | 67302cfee467ff55b85580e752d1fcb5d6ee2c3a | refs/heads/main | 2023-06-12T14:54:16.099622 | 2021-06-30T00:36:02 | 2021-06-30T00:36:02 | 352,422,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import discord
from discord.ext import commands
import steward_discord.config as config
class Bot(commands.Bot):
def __init__(self, **kwargs):
super().__init__(command_prefix=commands.when_mentioned_or('$'), **kwargs)
for cog in config.cogs:
... | [
"aulonsal@gmail.com"
] | aulonsal@gmail.com |
240ec89ce59b1aa0f0409a5eb3452080d774caf3 | f76a36bb022c4da3fabf0cf13dac8c634c011b3a | /update.py | 9ab3aa4af95a287f69a8816bdb56bf3bf7b12ef8 | [] | no_license | jtomasek/requirements | eb12da3afb082ebd69d55d8204c915aa018af2fb | e60166eae3795232fcd2bcf03592e8228e0aa0e4 | refs/heads/master | 2021-01-16T22:42:06.674581 | 2013-05-29T13:05:00 | 2013-05-29T13:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
e9e4b9070b9f878ccee0277b3e6b060bdfcd86e2 | 03fe7c330c557bb26b6e6593bac9421a6a2570da | /env/Scripts/rstpep2html.py | 2b587f10bafa9b37cacb767069a9aa5ecc9f82aa | [] | no_license | Kendubu1/NLP-Flask-Website | ce857df65f59d852ee75d5c03796f6eba1ebf6ec | 3aa64414c47534534bc6063185e3e6692a97e8a5 | refs/heads/master | 2023-05-14T22:37:44.880606 | 2020-09-03T22:54:20 | 2020-09-03T22:54:20 | 278,212,521 | 0 | 0 | null | 2023-05-01T21:43:29 | 2020-07-08T23:09:19 | CSS | UTF-8 | Python | false | false | 710 | py | #!c:\_code\python\nlp-flask-website\env\scripts\python.exe
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python Enhancemen... | [
"kedubuis@microsoft.com"
] | kedubuis@microsoft.com |
4a666ccb8cc29639a13bd6618c9f24bc98549c1f | 8fb60ed45f558dbaf022765981d5bb29c4cd2ddb | /thesis/codigo/soup.py | 1549dd18b645a1891f09182f1648f6fd47d05d47 | [
"LPPL-1.3c"
] | permissive | carlosevi94/TFG-Forex-DeepLearning | 086688a1456d9d666f42f7dc27f581317116acaf | b253a7df3a11f6e72f5114ebe1239c349d7ef34c | refs/heads/master | 2020-07-19T05:34:55.339505 | 2019-09-13T08:08:41 | 2019-09-13T08:08:41 | 206,383,523 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from bs4 import BeautifulSoup
soup = BeautifulSoup(response.content, features="html.parser")
res = soup.find('span') | [
"carlosevillabarcelo@gmail.com"
] | carlosevillabarcelo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.