blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f39f2aa88b8817f01562f95017c55a9a3a1403e8 | a6590941fea4880593d5b1cd23eedfe696f4e446 | /AGC01_99/AGC37/a.py | de27e176a18c12a5b0ab1ed059134da56694b809 | [] | no_license | cod4i3/MyAtcoder | 9fb92f2dd06c5b6217e925a82d8db4f91355a70f | 53bdac3fa7eb4ac48ca6d5c70461639beb6aa81d | refs/heads/master | 2023-02-17T09:15:16.282873 | 2021-01-15T13:34:03 | 2021-01-15T13:34:03 | 232,006,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | S = input()
N = len(S)
if(N == 1):
print(1)
exit(0)
if(N == 2):
if(S[0] == S[1]): print(1)
else: print(2)
exit(0)
l = []
l.append(S[0])
C = ""
for i in range(1, N):
C += S[i]
if(C != l[-1]):
l.append(C)
C = ""
print(len(l))
| [
"imasdaisukiproducermasu@gmail.com"
] | imasdaisukiproducermasu@gmail.com |
8e22206e267e3b55bf4f26b1a44250f6f3523171 | a98bc512be9b9691200c6a0cc33a5fb7b4053c13 | /com.ppc.Bot/devices/gateway/gateway_peoplepower_iotgateway.py | 7c34ba6215ea6a31347393c26098dfa746438712 | [
"Apache-2.0"
] | permissive | 30s/botlab | c21682ed2c9aefc9cba688c6a8c136e9f969adc9 | f7617147b65521a66ad88cdbc175176021a7a486 | refs/heads/master | 2020-04-04T18:39:00.776636 | 2018-10-04T04:56:32 | 2018-10-04T04:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | '''
Created on June 28, 2016
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
from devices.gateway.gateway import GatewayDevice
class PeoplePowerIotGatewayDevice(GatewayDevice):
"""Low Cost Gateway"""
... | [
"dmoss@peoplepowerco.com"
] | dmoss@peoplepowerco.com |
b947f2b1e1a97ae93556c5f28706cb16eedf0d3e | 67a48a7a2db56247fdd84474efa35124565fd8b9 | /Codechef/LTIME99/jag.py | c9640b5dac472359652d269727fe476fbf251e06 | [] | no_license | qazz625/Competitive-Programming-Codes | e3de31f9276f84e919a6017b2cf781c946809862 | e5df9cdc4714d78b7b6a7535ed7a45e07d3781c3 | refs/heads/master | 2022-08-30T07:57:55.172867 | 2022-08-10T08:02:07 | 2022-08-10T08:02:07 | 242,182,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | t = int(input())
for _ in range(t):
n = int(input())
arr = [int(j) for j in input().split()]
s = set()
for i in range(n):
arr[i] -= i
s.add(arr[i])
if len(s) >= 2:
print(1)
else:
print(n)
| [
"arun49804@gmail.com"
] | arun49804@gmail.com |
0574a23ce41754c9c2737ffdefdab401bdc7a27d | e88f2f590e9b58c294ea34f9277748b6bbabeac7 | /rllab/spaces/discrete.py | e1ee296451e02033d21c8fe5cc0f7eb8f819eafa | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | jesbu1/rllab-finetuning | 4aade730f0401f46675e5a7588ca59968272a41d | ccfbc9a612dc9c85238183209814e98666825d01 | refs/heads/master | 2022-12-04T10:42:37.442485 | 2020-08-18T00:07:39 | 2020-08-18T00:07:39 | 282,724,263 | 0 | 0 | null | 2020-07-26T20:03:48 | 2020-07-26T20:03:48 | null | UTF-8 | Python | false | false | 1,974 | py | from .base import Space
import numpy as np
from rllab.misc import special
from rllab.misc import ext
#for the openai gym integration
from gym.spaces import Discrete as OpenAIDiscrete #todo: remove after the baselines check
class Discrete(Space, OpenAIDiscrete):
"""
{0,1,...,n-1}
"""
def __init__(sel... | [
"alexlioralexli@gmail.com"
] | alexlioralexli@gmail.com |
cdfbb0ea5b5827936f2a33f4608ab1be0b7434a6 | 8de12638f92164986a0eb243f6868dccf1a8184e | /geotrek/core/migrations/0020_auto__add_field_trail_date_insert__add_field_trail_date_update__chg_fi.py | 7ad3d297ce36b7f3c44c100e10a91ed8717b305e | [
"BSD-2-Clause"
] | permissive | yvesc/Geotrek | 3a697578769235741d847b5574d698d3afce0b66 | e8d5af768a95be8eb4df540fc5335a29b195a444 | refs/heads/master | 2021-01-24T22:03:17.868397 | 2014-01-27T14:55:31 | 2014-01-27T14:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,019 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from django.conf import settings
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Trail.date_insert'
db.add_column('l_t_sentier', 'date_inser... | [
"mathieu.leplatre@makina-corpus.com"
] | mathieu.leplatre@makina-corpus.com |
f7cb40dfb66197dd3a0177217985b8fcf9aba098 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2791/60632/234858.py | 1632955e345e7d3811fdeb3bb1d328b6f8f8daa2 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | n = int(input())
nums = list(map(int, input().split(' ')))
t = nums.count(1) # 爬的楼梯个数即为数字1的个数
print(t)
result = ''
for i in range(len(nums)-1):
if nums[i+1] == 1:
result = result + str(nums[i]) + ' '
result = result + str(nums[-1])
print(result) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5fb3edbdfe49d5e85badcd7c898f9fa5bf92afda | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/inversion10/iter2/run5/analysis/misfit/check_rms.py | d6c12eb9a3a327168cdb66e0b468b35fd0c72e7d | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import numpy as np
import viscojapan as vj
sites_2EXPs = [site.decode() for site in np.loadtxt('sites_2EXPs', '4a')]
sites_Yamagiwa = [site.decode() for site in np.loadtxt('sites_Yamagiwa', '4a')]
reader = vj.inv.DispResultReader('../../outs/nrough_05_naslip_11.h5')
sites = reader.sites
idx = [sites.index(site) fo... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
760bd7ebb103bc166a7999a37271d4aac813d6cb | 4ec6ed4ebcb9346042669e6aa03be0e502ed48b3 | /algorithms/dynamic-programming-algorithms/longest-increasing-subsequence.py | 550239c5cbd5af074491088cf3854ee0ff04c792 | [] | no_license | shonihei/road-to-mastery | 79ed41cb1ad0dc2d0b454db2ccc7dd9567b03801 | 312bdf5101c3c1fc9a4d0b6762b5749ca57efe08 | refs/heads/master | 2021-01-22T19:59:17.038641 | 2017-11-16T15:21:55 | 2017-11-16T15:21:55 | 85,266,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # task: given an array of integers, find the length of longest increasing sequence
def LIS(l):
# initialize assuming the longest sequence is 1
arr = [1 for val in l]
for i in range(1, len(l)):
for j in range(i):
if l[j] < l[i] and arr[j] + 1 > arr[i]:
arr[i] += 1
... | [
"shonihei@gmail.com"
] | shonihei@gmail.com |
ce2e2d978d86a58f35453c294c702df6e30c0ee5 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/equiLeader2_20200908121528.py | bc67f7002d3f4d558a476a1aeba0aafbe1a98931 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | def equi(A):
# return the number of equal leaders that both occur in the sequences
# first find the equileader
# an equileader is an index such that when two sequences are formed
# the two sequences have the same leader
# 0,1,2,3,4,5
store = {}
leader1 = 0
count = 0
for i in A:... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
5faf0a90a5739861bfcade621cd47127dc4c0660 | e54a1a6a2fb1864708ae14e80a0ac3554985b450 | /switch_validation_challenges.py | 8b300b9b9bd737e5351f900297cce37ec20ffcf6 | [
"MIT"
] | permissive | sgriffith3/2021_05_10_pyna | 0b1b59359dfd240eaa90a3e01a29768fab47405a | d732e1dd0fa03f1cef8f72fc9dcc09ec947f31a5 | refs/heads/main | 2023-04-30T08:05:35.160446 | 2021-05-14T19:47:00 | 2021-05-14T19:47:00 | 366,093,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | Challenge - Use the get_facts validation test to also verify the hostname
Challenge 2 - use the ping validation test to verify connectivity to another host (i.e. 8.8.8.8)
| [
"sgriffith@alta3.com"
] | sgriffith@alta3.com |
d8ad9a72882b132510b2b129777cb40b211b0e38 | 0617c812e9bf58a2dbc1c1fef35e497b054ed7e4 | /venv/Lib/site-packages/pyrogram/raw/functions/req_pq_multi.py | 66792b997823629887016a654a0e7c474eea7c0e | [] | no_license | howei5163/my_framework | 32cf510e19a371b6a3a7c80eab53f10a6952f7b2 | 492c9af4ceaebfe6e87df8425cb21534fbbb0c61 | refs/heads/main | 2023-01-27T14:33:56.159867 | 2020-12-07T10:19:33 | 2020-12-07T10:19:33 | 306,561,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"houwei5163"
] | houwei5163 |
0f1a3e78d7bf72ff092dc9b13e9b9a45dc677dbc | 6d8fc28a848fa7d7a4b888b79fba27aba6c51d8f | /May_LeetCode/Week_3/valid_number.py | eee55c342b4ce7033985a15f90c62049e2ccd4db | [] | no_license | rahuladream/LeetCode | 2d9a9c64d46d6cef3c60028215436cfaf317d046 | 75e77b83a7a821ce635ee72b03c92035ea410382 | refs/heads/main | 2023-05-01T03:57:51.702857 | 2021-05-31T15:26:50 | 2021-05-31T15:26:50 | 355,946,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # https://leetcode.com/problems/valid-number/
import re
class Solution:
def isNumber(self, s: str) -> bool:
pattern = re.compile(r'^[+-]?([0-9]+|([0-9]*[.][0-9]+)|([0-9]+[.][0-9]*))([e|E][+-]?[0-9]+)?$')
s = s.strip()
if not s:
return False
return pattern.match(s) != None... | [
"rahul.singh4800@gmail.com"
] | rahul.singh4800@gmail.com |
a3e4bff654540d37643e8fc79a3601a5118ec9d0 | f093f8e4782eb18070cd438a43458e0b1f72c006 | /test/generate/autotest/int_test.py | e6decbfb1bcb473c34e6d6590ce34c551ee48993 | [
"MIT"
] | permissive | Aimini/hm-51 | 4da86962735606eb9a53e6d834185979c42dd4e3 | 2d46323388a0679b2f99d1a33f5a0d55a5f838e6 | refs/heads/master | 2021-10-08T13:57:56.069624 | 2021-10-03T13:43:06 | 2021-10-03T13:43:06 | 233,418,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | #########################################################
# 2020-02-08 12:36:35
# AI
# test interrupt
#########################################################
from .. import testutil as u
from ..asmconst import *
p = u.create_test()
def set_int(no):
l = [0x2, 0x20, 0x8, 0x80]
if no < 4:
return f'ORL... | [
"2026084033@qq.com"
] | 2026084033@qq.com |
d1b4b2702e88c0bb2a40af0d16ba85adaa74f3b5 | f52997ac7e1b41f34018c3a0028ced8638072b2b | /src/extended_search/admin.py | 949ce6c5d69631efbedb87fd0d5b464b00feb115 | [
"MIT"
] | permissive | uktrade/digital-workspace-v2 | 49fae1fca819b625c6f6949fb5ce51b89fbcab96 | 7e328d0d55c9aa73be61f476823a743d96e792d0 | refs/heads/main | 2023-09-03T12:03:47.016608 | 2023-09-01T12:07:55 | 2023-09-01T12:07:55 | 232,302,840 | 6 | 0 | MIT | 2023-09-13T15:50:24 | 2020-01-07T10:41:18 | Python | UTF-8 | Python | false | false | 671 | py | from django import forms
from django.contrib import admin
from core.admin import admin_site
from extended_search.models import Setting
from extended_search.settings import extended_search_settings
class SettingAdminForm(forms.ModelForm):
key = forms.ChoiceField(choices=[])
class Meta:
model = Settin... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
69987c635b917a98fa1e59c52a86a9450b1e4bc3 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/IPython/core/ultratb.py | 856979194081078bd935f15cc93e9bc2fd2875e1 | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 46,105 | py | # -*- coding: utf-8 -*-
"""
Verbose and colourful traceback formatting.
**ColorTB**
I've always found it a bit hard to visually parse tracebacks in Python. The
ColorTB class is a solution to that problem. It colors the different parts of a
traceback in a manner similar to what you would expect from a syntax-highlig... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
6d00eac2897370f9e9be45e1359d29c7bb2fca4d | 56ba14e240574dd123cad8e831273db5b7bcbc6b | /Relational Databases/postgresql-practice/postgres-sqlalchemy-orm-practice.py | b56a2a0ea0cf0e6b5d05cf63e8c8de31c55d0b9e | [
"MIT"
] | permissive | araschermer/python-code | 4b7971b3e6c6cbddf908e3423f5382f80b2f370d | e4f30601779f423476659d5b0b5f5c9df71718f7 | refs/heads/main | 2023-04-23T17:16:19.578997 | 2021-05-18T15:41:31 | 2021-05-18T15:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | from sqlalchemy import create_engine, func
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
import os
password = os.environ.get("PASSWORD")
engine = create_engine(f'postgres://postgres:{password}@localhost/red30')
Base = declarative_base(engine)
# base object reflects the... | [
"44481677+abdelkha@users.noreply.github.com"
] | 44481677+abdelkha@users.noreply.github.com |
30deb72969fd8781acbcfe1af49240759bc1718a | c6d6f62b89e063759f69e179bf7983a13c8180b5 | /src/cards/migrations/0012_auto_20160507_1938.py | b7046213074d55ce365d926ee44e5824276252f7 | [] | no_license | gtsarik/GSI | 170bba1b21b98a44f0fc0f7b9e25bc4b3ae31e9f | e625a189ebb79ebb772f752fbe6230a3e9f68acb | refs/heads/master | 2021-01-21T17:06:34.026805 | 2018-01-25T13:13:59 | 2018-01-25T13:13:59 | 47,333,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cards', '0011_auto_20160506_1450'),
]
operations = [
migrations.AlterField(
model_name='collate',
na... | [
"artgrem@gmail.com"
] | artgrem@gmail.com |
079ff189af944af90a9f7be18e4a025eb5157cff | 1e8ac07d59ecbce5572a9fcb03de18a13f8a4688 | /app/__init__.py | ce79844119aa13e7869eb567a3e111f5a5a56fbe | [] | no_license | richwandell/ocr_snip | c655d9f829f248c63e65e734f22a12defc1e273e | 330952f9d62a5aa59d4708cc595509b301e33e45 | refs/heads/master | 2023-05-31T14:38:46.119195 | 2021-06-13T18:11:38 | 2021-06-13T18:11:38 | 317,731,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import os
import sys
CWDPATH = os.path.abspath(os.path.dirname(sys.argv[0]))
from .SnipWindow import SnipWindow
from .ScreenCap import ScreenCap
from .WinSysTray import WinSysTray
| [
"richwandell@gmail.com"
] | richwandell@gmail.com |
8894881555c25faf4efd1b4efa817a98d9ac8343 | 30d1902232eb9ddb84fdf5404a3a1dfd6232406a | /异步协程/async_write.py | e005547806d2369bc5fab46029122d2c50659616 | [] | no_license | sxnys/mypython | c3a768b054077ed97ff1e2fac31cb93f0765deb3 | de48cd883ad2de3320cb0c6b46b451ebb2311ac7 | refs/heads/master | 2022-11-07T15:11:48.936412 | 2019-04-14T12:04:30 | 2019-04-14T12:04:30 | 119,686,106 | 0 | 1 | null | 2022-10-31T05:13:00 | 2018-01-31T12:46:06 | Python | UTF-8 | Python | false | false | 1,968 | py | import os
import asyncio
import random
import string
import time
async def write(s, n):
if 'text' not in os.listdir():
os.mkdir('text')
asyncio.sleep(2)
with open('text/{}.txt'.format(n), 'w', encoding='utf8') as f:
f.write(s)
async def makeFiles(n):
print('开始创建文件 {}'.format(n+1))
... | [
"1119112647@qq.com"
] | 1119112647@qq.com |
3cc1a98f51ec7489fdb7d0764ce7263d0286c09a | 9625f4e5ccc3d84d1accd7a97b54606784b75b71 | /ld_ebutuoy/rotcartxe/evilsedils.py | 4679a8a1cc86b05623de581b22f21d1b9a2584e0 | [] | no_license | apfeltee/ld-ebutuoy | cdf11206a24532e6bc0a8c26cb7bfd83c02d140f | d7264979a9f9730d6e5ee6672af1e28eb17df8c5 | refs/heads/master | 2022-12-31T18:24:46.529435 | 2020-10-26T02:46:20 | 2020-10-26T02:46:20 | 307,234,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | 8-ftu :gnidoc #
slaretil_edocinu tropmi __erutuf__ morf
rotcartxEofnI tropmi nommoc. morf
lru_elggums tropmi slitu.. morf
:)rotcartxEofnI(EIeviLsedilS ssalc
')+]9-0[>di<P?(/moc.\evilsedils//:?sptth'r = LRU_DILAV_
{[ = STSET_
EBUTUOY = eman_ecivres_oediv #
,'dnekcab-61ai-ccg/31420983/moc.evilsedils//:... | [
"root@localhost"
] | root@localhost |
18e4acfef84b87cbb3e2e2c326f116380141eb43 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /devel/.private/pal_navigation_msgs/lib/python2.7/dist-packages/pal_navigation_msgs/msg/_JoyPriorityAction.py | 3e0328e19fcbe78df4cc14e15d618cab9d19d980 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,000 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pal_navigation_msgs/JoyPriorityAction.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import actionlib_msgs.msg
import genpy
import pal_navigation_msgs.... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
1a41a3470537543f6fefc9fce5ab725bbafbaba5 | 6433dd5c76636943007b83e704572818449dbf2e | /app/src/app/spender/serializers.py | 72df04b02e342aeff7e553140364f11beb9862de | [] | no_license | Sapunov/lul | 3e929f6d8a27b0344da314657e707d7cafdb3e09 | 8b6265cf99eb23e154e08ab24d6bc3fa3a8f3ed0 | refs/heads/master | 2022-12-13T14:33:43.977819 | 2019-02-06T09:09:02 | 2019-02-06T09:09:02 | 135,765,019 | 0 | 0 | null | 2022-12-08T02:13:20 | 2018-06-01T21:29:05 | Python | UTF-8 | Python | false | false | 7,366 | py | from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from rest_framework import serializers
from rest_framework.exceptions import ValidationError, NotFound
from datetime import timedelta
from app.spender.models import Category, Transaction, TransactionsSharing
from app.sp... | [
"kiton1994@gmail.com"
] | kiton1994@gmail.com |
2f5f5927fcb463c8775cbede8182174c3735ae91 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/143/usersdata/230/62788/submittedfiles/av2_p3_m2.py | 2ad5ebb5776218a3ae56d908269fada0bb636506 | [] | 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 | 318 | py | # -*- coding: utf-8 -*-
def degrau(a):
soma=0
b=[]
for i in range(0,len(a)-1,1):
soma=soma+(a[i]-a[i+1])
b.append(soma)
return (b)
a=[]
n=int(input('Digite quantidade de termos:'))
for i in range(0,n,1):
valor=int(input('Digite valor:'))
a.append(valor)
print(degrau(a))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
23a033ba41387c5492dcae41aff5c9ce879aa0b9 | 8d7449ede5200a3994f953832dff98c407dd12b0 | /app/many_to_many/admin.py | 2d0eae1fb8a9fb8f5f2f61ec94b78b88ab0c833b | [] | no_license | hbyyy/document | cabfd9b76d1153b8bc8ef10913aa6ecf6a6792af | c59fa97f3382c7ee8f0a6bcfcab47e4894674562 | refs/heads/master | 2022-08-29T18:17:40.425810 | 2019-12-22T09:19:33 | 2019-12-22T09:19:33 | 229,444,853 | 0 | 0 | null | 2022-08-23T17:59:16 | 2019-12-21T15:14:39 | Jupyter Notebook | UTF-8 | Python | false | false | 822 | py | from django.contrib import admin
# Register your models here.
from many_to_many.models import Topping, Pizza, Writer, Platform, Webtoon
@admin.register(Topping)
class ToppingAdmin(admin.ModelAdmin):
pass
@admin.register(Pizza)
class PizzaAdmin(admin.ModelAdmin):
pass
#
# @admin.register(Customer)
# class... | [
"qjaduddl94@gmail.com"
] | qjaduddl94@gmail.com |
1e1c6ce3ee5ecf961a4caedfe1b23df66b2752b9 | 2a47b57d9b8bfdaf38eefa2eb6513450adf7d916 | /test/unit/package_admin/list_upd_pkg.py | 27781abb7fefa2d48d16cba89993eae1b4e03bcb | [
"MIT"
] | permissive | deepcoder42/package-admin | a6929de5f20c181d89e2479c8985ad9d4fd21ca6 | a2ebbb34d21a1abf27e28ead4fea26434a9432b2 | refs/heads/master | 2023-08-31T08:23:33.929139 | 2021-10-18T12:07:22 | 2021-10-18T12:07:22 | 339,363,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | #!/usr/bin/python
# Classification (U)
"""Program: list_upd_pkg.py
Description: Unit testing of list_upd_pkg in package_admin.py.
Usage:
test/unit/package_admin/list_upd_pkg.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
... | [
"deepcoder42@gmail.com"
] | deepcoder42@gmail.com |
a59c2cf671a657ea8578fb87b2a29e3529c8b425 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4456199.3.spec | bf2616feddbfbc3d0cb874a5ca24e85d9e751cf9 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,294 | spec | {
"id": "mgm4456199.3",
"metadata": {
"mgm4456199.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
2f6c482e7d2684168ecfc54280b8c2e59922aa06 | 2b11e7aa28b84af2e2a7fd8719af89f5fffd8a5b | /tests/test_models/test_amenity.py | c1b30d822b84c8f3f0b55496b4f075ad6e61f813 | [] | no_license | nikolasribeiro/AirBnB_clone | 6a3e3d65314a0131252461757943468628394ced | 4529c56a706f0d956a238522d912cf6260f2fa28 | refs/heads/main | 2023-03-10T22:10:10.665939 | 2021-02-27T19:33:11 | 2021-02-27T19:33:11 | 338,063,410 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #!/usr/bin/python3
""" Module tests/test_models/test_amenity"""
import models
from models.base_model import BaseModel
from models.amenity import Amenity
import os
import unittest
class TestState(unittest.TestCase):
""" class TestState """
def test_docstring(self):
""" function test_docstring """
... | [
"nikolasribeiro2@outlook.com"
] | nikolasribeiro2@outlook.com |
095fb17e3a9bce6313adf76352ae95b288d4a57b | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714134920.py | 4e73ea24b63dad7a13ca596bab3f2190b5b222c8 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
67125a37aa82b6f46141270efdc6780ef46e88d2 | a74e56dcfe818978b4616bf01c07c192fc6445d5 | /menu_actions.py | 9f7515b748bdf66b4e4a04a1c3be36beeadf9983 | [] | no_license | ss44/rotten_tomatoes_CLI | 791b65b1d2c39b8256afb110936fec882b3824cd | 1e2ae1592be41c15b1040e11f111bf8bfc536c09 | refs/heads/master | 2021-01-16T22:19:45.192519 | 2015-03-03T22:59:32 | 2015-03-03T22:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,133 | py | from blessings import Terminal
from classes import SearchRequest, ReviewsRequest, BoxOfficeRequest, InTheatersRequest, OpeningMoviesRequest, UpcomingMoviesRequest
from formatting import center_text, divider, check_for_reviews
term = Terminal()
class MenuAction(object):
def __init__(self):
"""Initializes a menu ac... | [
"jim.j.shields@gmail.com"
] | jim.j.shields@gmail.com |
d8b60fce1c88a2b40c8e37252131474be06e58c5 | 9cf05d16fc60ed8435f9ddcf56206c855e4dc6d4 | /00-4-all-time/Useful-Tools-repos/google-APIs/google-api-python-client/samples/coordinate/coordinate.py | 909d8940c75a8fdd0531f09507014ab93ed86447 | [
"LicenseRef-scancode-generic-cla"
] | no_license | ArjunBEG/WEB-DEV-NOTES | cfc31cb2c23be872b27574fa4cd0efef6a895bc3 | 77f1c62f92277ab4ae2f6c9f6e7683229b89506a | refs/heads/master | 2023-02-24T03:17:50.730192 | 2021-02-06T05:38:24 | 2021-02-06T05:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,067 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# 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/lice... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
312300036575e2a2a72b1e7c27ddef334dff9677 | 521d328ea560198e760d3940d179b08880b1939e | /backend/wallet/admin.py | 5f97b53eda4030ff59a0ae49376bb45cc189a18c | [] | no_license | crowdbotics-apps/all-caps-20984 | c2e05789ba50042bb7e444fb8569a60fa59e4a27 | 5846430e34d1fdc20198922626cd07e556bf2fb3 | refs/heads/master | 2022-12-25T19:43:39.226197 | 2020-10-02T18:34:56 | 2020-10-02T18:34:56 | 300,702,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from django.contrib import admin
from .models import (
PaymentTransaction,
TaskerPaymentAccount,
TaskerWallet,
PaymentMethod,
CustomerWallet,
)
admin.site.register(TaskerWallet)
admin.site.register(CustomerWallet)
admin.site.register(TaskerPaymentAccount)
admin.site.register(PaymentTransaction)
adm... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c3749ba2c3e3c6d3263ac366de41c10c1cbe8b0f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Kivy/kivy/kivy/tests/test_invalid_lang.py | 626b6d5839d6ed8575444a10efe91ba8899acbab | [
"MIT"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b40814a3e398205a6766d71298b5cc86cd10287a8c3e160d1cdaacdbb97bc89f
size 1072
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
4549e451484de90f76c1c64805c88a8b6480e314 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/iam/models/UpdateLoginProfileInfo.py | 1208780134866a9dea1817c9345452435eb3f870 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,504 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
b0a7ecfc5c905c1db2c62d4e0f35689eaac193ab | 214b9411f9489edbad6d233c16e7e9401272d7e4 | /apps/core/management/commands/populate_db.py | f40ef95ca574059ccf5cbe338f46c24d69273d55 | [
"MIT"
] | permissive | myworkshopproject/myworkshop-provider | 0df5250223aa230ef7107bec32b006301dcf03ee | dc3cdf68c1f8f2b4d8720843fd8a5c2b2f9d97a0 | refs/heads/master | 2021-11-15T16:53:58.899238 | 2021-10-24T17:15:29 | 2021-10-24T17:15:29 | 226,821,669 | 0 | 0 | MIT | 2021-09-22T18:06:09 | 2019-12-09T08:27:52 | HTML | UTF-8 | Python | false | false | 385 | py | from django.core.management.base import BaseCommand
from django.contrib.sites.models import Site
class Command(BaseCommand):
def _create_site(self):
example_site = Site.objects.get(pk=1)
example_site.domain = "127.0.0.1:8001"
example_site.name = "Provider"
example_site.save()
... | [
"julien@lebunetel.com"
] | julien@lebunetel.com |
eaa315f14f0152a486a9b31b2c3defdbda2eead7 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0201_0250/LeetCode243_ShortestWordDistance.py | 43e530feb15a250fad918618045fda428c15041a | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,065 | py | '''
Created on Feb 27, 2017
@author: MT
'''
c_ Solution(o..
___ shortestDistance words, word1, word2
"""
:type words: List[str]
:type word1: str
:type word2: str
:rtype: int
"""
minLen l..(words)
___ i, word __ e..(words
__ word __ (word... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
2cb1c0bcf0be16564626dffd26f8290f47a8566a | 4c91490373be8867d47a01a181a8257e503236e1 | /Level 2/다리를 지나는 트럭.py | 1f52d80e6fa5acb24232a42d125c986baa17861e | [] | no_license | dohee479/PROGRAMMERS | bc1b9d8ad4841e96f8dbe650cb1e70064e4a1bd5 | 398261d5c340de5b0135c4bad6858d925c94482d | refs/heads/master | 2023-03-23T17:28:35.191331 | 2021-03-12T16:53:47 | 2021-03-12T16:53:47 | 298,023,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def solution(bridge_length, weight, truck_weights):
answer = 0
return answer
print(solution(2, 10, [7, 4, 5, 6])) | [
"dohee479@naver.com"
] | dohee479@naver.com |
c250d67e3ef35002d14b08a2a64b38c8d0c30526 | 78a20d2ceac95d3afb55b215305a8c40670e873f | /QsimMaster/scripts/pulse_sequences/metastable_rabi_qnd_point.py | f26f481c4cb307cad10c38be8de53c960407e6c7 | [] | no_license | johnpalsberg/John-Palsberg | 9957dd2fb2a6da62e5118c4e2a9a471d5e2f4c9b | 91aa6476bc319524c6f6a4bfc5561ca6aa95e6c4 | refs/heads/master | 2023-01-13T07:26:04.250541 | 2023-01-05T08:48:17 | 2023-01-05T08:48:17 | 206,402,363 | 0 | 0 | null | 2022-06-20T16:29:42 | 2019-09-04T19:57:25 | Python | UTF-8 | Python | false | false | 1,842 | py | from common.lib.servers.Pulser2.pulse_sequences.pulse_sequence import pulse_sequence
from sub_sequences.MicrowaveInterrogation import microwave_interrogation
from sub_sequences.MetastableMicrowaveInterrogation import metastable_microwave_interrogation
from sub_sequences.TurnOffAll import turn_off_all
from sub_sequences... | [
"jpalsberg2023@chadwickschool.org"
] | jpalsberg2023@chadwickschool.org |
7a0d6d47fd697f7fe8fe91c9e1def75ada543a19 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py | af61678dc12da7e254a99578d10072f572936f2d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 7,767 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
934ba11421720b3491493d8c75b5240dc1b3ef57 | 5f64d91dc45e58c8e73a52985c6db45d340d09cc | /Pibow_Zero_1.3/vertical_striper_14.py | b52c4a1ec487de11ffd317c7d3c2ee691112ba29 | [] | no_license | Breakfast-for-Pigeons/Unicorn-PHAT | e0343eb9a46c4b7be11d5028be07ea6b0f071efd | 6e70302eac995cd11821ecf2ee363a1b926df2ce | refs/heads/master | 2023-01-01T18:05:27.436081 | 2020-10-23T22:18:13 | 2020-10-23T22:18:13 | 74,320,010 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | #!/usr/bin/python3
"""
Vertical Striper 14 - Pibow Zero 1.3
With the Raspberry Pi oriented with the GPIO pins at the top, this
program stripes from left to right and alternates between from the
bottom to the top and from top to bottom.
This is exactly the same as Vertical Striper 6 except the color order
is reversed.... | [
"noreply@github.com"
] | Breakfast-for-Pigeons.noreply@github.com |
6d9ba11ded2d3ec90378caac7764bdd1f3051a3d | 200df6cda6e54d56a4c800e10e6d5f248d7d59f2 | /02-算法思想/深度优先搜索/207.课程表(M).py | 95baf59a2fdefa5c30e1f1bfdba55a488f4774c5 | [] | no_license | jh-lau/leetcode_in_python | b9b9a47d0b3ce29c3c56836b39decc3ec4487777 | 1d1876620a55ff88af7bc390cf1a4fd4350d8d16 | refs/heads/master | 2023-04-17T15:01:49.925774 | 2021-04-24T01:17:39 | 2021-04-24T01:17:39 | 192,735,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,902 | py | """
@Author : liujianhan
@Date : 2020/4/20 下午1:59
@Project : leetcode_in_python
@FileName : 207.课程表(M).py
@Description : 你这个学期必须选修 numCourse 门课程,记为 0 到 numCourse-1 。
在选修某些课程之前需要一些先修课程。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示他们:[0,1]
给定课程总量以及它们的先决条件,请你判断是否可能完成所有课程的学习?
示例 1:
... | [
"lorgerd@163.com"
] | lorgerd@163.com |
23df907b20071e71ac9832acab5f2fb74d7548ae | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ses_write_2/custom-verification-email_send.py | f10c58b5a372b437b8d08ef122a1f4ab6226dd14 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ses/send-custom-verification-email.html
if __nam... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
d4d90b5a2ea50b386e6f927b1972f9ea36007392 | 19102b3cc7a78b4f09d5e5eef3f7a93e33d8b988 | /backend/api/services/credit_transaction.py | f0435748e1c6eb4a896289ce9759384be6320edb | [
"Apache-2.0"
] | permissive | emi-hi/zeva | 196b766096d2353b8ba57347b4946dce43c1b0a7 | b395efe620a1b82c2ecee2004cca358d8407397e | refs/heads/master | 2023-04-16T15:20:29.240394 | 2023-03-21T21:44:08 | 2023-03-21T21:44:08 | 234,123,338 | 0 | 0 | Apache-2.0 | 2020-01-15T16:27:38 | 2020-01-15T16:27:37 | null | UTF-8 | Python | false | false | 17,175 | py | from datetime import date, datetime
from decimal import Decimal
from django.db.models import Case, Count, Sum, Value, F, Q, When, Max, FloatField, ExpressionWrapper
from django.db.models.functions import Coalesce
from django.db import transaction
from rest_framework.serializers import ValidationError
from api.models.a... | [
"noreply@github.com"
] | emi-hi.noreply@github.com |
6a1e82ec559244fcfa6b9dd54e889dd55ce376c7 | e62d5b3e9cb8e3549c711067e3f17d7c761f1b2a | /Intro to Python book/chapter 10/bouncing face.py | f3a95ba5a809a9fb376394b7646fb60c452686c7 | [] | no_license | UncleBob2/MyPythonCookBook | 5fe658b3e281861015e154493480753d169764a7 | 131051c884415cde789a487acb7e7d1f60aea3ac | refs/heads/master | 2023-01-03T04:26:15.493832 | 2020-10-29T20:09:45 | 2020-10-29T20:09:45 | 259,091,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from graphics import *
self.speeds = speeds
self.border_W = border_Width
self.border_H = border_Height
self.change = 0
self.d_x, self.d_y = 1, 1
self.Xborder_Max = self.border_W - self.size
self.Xborder_Min = O + self.size
self.Yborder_Max = self.border_H - self.size
self.Yborder_Min = O + self.size
def smile(self)... | [
"trohoang@yahoo.com"
] | trohoang@yahoo.com |
e5bb1210c89044a200c8cbf065b24f6957ab300f | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_family.py | b206ee853dffbf69fe46e9a07a275e4d7bd5d34c | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 528 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self, plotly_name="family", parent_name="funnel.legendgrouptitle.font", **kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotly_name,
par... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
afa0db6bf4651e0092ac4a0c2f9010bb570fa08b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/22.py | 408126c7f225b9a7b6f155b9dda5018c1511256d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py |
def bathroom_stalls_solve(N, K):
if K == N:
return (0, 0)
if K == 1:
if N % 2 == 1:
return ((N - 1) / 2, (N - 1) / 2)
else:
return ((N + 1) / 2, (N - 1) / 2)
if N % 2 == 1:
return bathroom_stalls_solve((N - 1) / 2, K / 2)
else:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
194d92bf524cde3d19935133644e7929fcf85139 | 5830e2e169d48671e96bb8ee16b10459bccdf72b | /reuven_lerner_problems/comprehensions/list_comps/complex.py | 311564701f40e76085a89198e80cb73a90d8989d | [] | no_license | amymhaddad/solve_it | 9f5372c2efb5dbc032e3650ae0bad170c5f4d559 | fc293023ebc23f74090b9d47d76874224a5549a5 | refs/heads/master | 2023-03-11T16:41:01.645028 | 2020-12-17T16:55:10 | 2020-12-18T17:19:39 | 238,718,845 | 1 | 0 | null | 2023-03-05T13:40:30 | 2020-02-06T15:22:24 | Python | UTF-8 | Python | false | false | 1,821 | py | """
(1) Given a list of integers, use a list comprehension
to calculate the sum of the factorials of those integers.
n! = n-1 * n-2 * n-3 ... 1
5! = 5 * 4 * 3 * 2 * 1
[3, 4, 5]
3! = 3*2*1 = 6
4! = 4*3*2*1 = 24
5! = 5*4*3*2*1 = 120
(+ 6 24 120)
(2) From mini-access-log.txt, create a list of the IP
addresse... | [
"amy.m.haddad@gmail.com"
] | amy.m.haddad@gmail.com |
b0383047327e1ba0d9719264ec1831cfaad4aad9 | e62b1e748582584a5c2a05fff970fe09e72752b4 | /app/migrations/0002_auto_20160424_2137.py | 1c3aa6554418dacb8c302a4026aa6283b8d2c6b7 | [] | no_license | wlodekf/jpk | 5957b515ecbcded9b4f27d6a0785ee89e3a0d585 | 1c200350f57469e890a124d07f741d836d9a0833 | refs/heads/master | 2023-07-10T20:15:11.111276 | 2021-08-11T12:21:14 | 2021-08-11T12:21:14 | 394,978,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6.dev20160421010813 on 2016-04-24 21:37
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
mi... | [
"wlodekf@softprodukt.com.pl"
] | wlodekf@softprodukt.com.pl |
fca08cf3f9b73b086ece4ab7a114601dc5fa74ba | 97592ce68739960209069ba59a54aff3fd078eab | /artical/models.py | bc7f29cca5f6f18cdfbfa5ae4074402f91e64c81 | [] | no_license | zhuweigh/blog | 2418f064514e33f1581ef49e368b94aea45ffa07 | 55888f4d65db66acd2de51fef16300741681cbef | refs/heads/master | 2021-01-10T01:48:30.919085 | 2016-02-04T21:57:14 | 2016-02-04T21:57:14 | 51,239,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from django.db import models
from django.core.urlresolvers import reverse
class Artical(models.Model):
title = models.CharField(max_length=100)
category = models.CharField(max_length= 50,blank = True)
date_time = models.DateTimeField(auto_now_add=True)
content = models.TextField(blank=True,null=True)
def get_abso... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
10adcd1ffaef7677c154c3f5f36271234b0c4fe1 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3999/codes/1616_2919.py | cd4db004bcfcf016396ab3fedff563e4f0b827d0 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | a1=float(input("Altura 1:"))
a2=float(input("Altura 2:"))
a3=float(input("Altura 3:"))
a4=float(input("Altura 4:"))
media= (a1+a2+a3+a4)/4
print(round(media,2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
82a5c33af50984ddb9167a68aa3f3fa48df5c152 | 75e6c113fd664419b0c78ff36e95e33024f66052 | /notebooks/2016-01-05 Straw images.py | 400b88785a6571e7c2207b97f8e028d1c783a6b8 | [
"ISC"
] | permissive | gitter-badger/pyciss | dee576c60a88e5e922970f765350c8215bd67948 | a287868737d1d522f169341fd38e42e7ef668394 | refs/heads/master | 2021-01-15T20:57:26.913185 | 2016-05-08T20:50:56 | 2016-05-08T20:50:56 | 58,331,190 | 0 | 0 | null | 2016-05-08T21:01:37 | 2016-05-08T21:01:36 | null | UTF-8 | Python | false | false | 2,472 | py |
# coding: utf-8
# In[ ]:
cd /Volumes/Data/ciss/pdsrings-data-b-2016-01-07T17-33-51/
# In[ ]:
from pyciss import pipeline, io
from pathlib import Path
p = Path()
# In[ ]:
p
# In[ ]:
files = list(p.glob('*_1.LBL'))
# In[ ]:
files
# In[ ]:
from pyciss import pipeline
# In[ ]:
for f in files[1:]:
p... | [
"kmichael.aye@gmail.com"
] | kmichael.aye@gmail.com |
2e231deaac5a4219878b2d426fba9d1e7d783bbf | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/M2Crypto/SSL/Connection.py | d83ad0aa12b75b077ab616ba0006ffeb82c62df2 | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 21,954 | py | from __future__ import absolute_import
"""SSL Connection aka socket
Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved.
Portions created by Open Source Applications Foundation (OSAF) are
Copyright (C) 2004-2007 OSAF. All Rights Reserved.
Copyright 2008 Heikki Toivonen. All rights reserved.
"""
import logg... | [
"admin@example.com"
] | admin@example.com |
83022c340bd2f5ef7147894d0663bc67c14daa03 | 221d1ad342677d2fac8aa3f8d5c60e059a6316c9 | /pm4py/evaluation/earth_mover_distance/variants/__init__.py | 0342ef10bf8c1d4e05549fe96654660072e395c7 | [] | no_license | niklasadams/explainable_concept_drift_pm | 06ff651fbdebece4adf96f94bfb4d1026da14c48 | 6bf84d727ab0bae76716a04ad28c7de73250c89d | refs/heads/main | 2023-08-26T18:21:49.955080 | 2021-10-29T18:53:48 | 2021-10-29T18:53:48 | 314,514,571 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from pm4py.evaluation.earth_mover_distance.variants import pyemd
| [
"niklas.adams@pads.rwth-aachen.de"
] | niklas.adams@pads.rwth-aachen.de |
997fca7bee3ce6b027da9dab50e8c3aa0c89a08d | a25938dc2ad9af596b22f21c0f6ed85452811374 | /functional_tests/test_simple_list_creation.py | ecb0aa83195083cc7570f2feda2ca66b27b98785 | [] | no_license | donnerc/tdd | 222031ea213aefdbe09476dfec0d050920f427ee | 2b4ac2bf761e727a75b57e2c0eeddf535facfee0 | refs/heads/master | 2020-05-17T17:19:32.066681 | 2014-10-30T10:15:25 | 2014-10-30T10:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | # from django.test import LiveServerTestCase
from .base import FunctionalTest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class NewVisitorTest(FunctionalTest):
def test_can_start_a_list_and_retrieve_it_later(self):
# Bill a entendu parler d'un nouveau site permettant de... | [
"cedonner@gmail.com"
] | cedonner@gmail.com |
d0d8d5eb635d036293598bd1373d19be885216ef | 3c805067b1594fd6be6dbce3b8b6892b997974d1 | /src/primegen/__init__.py | d348ebd17fb1b8472804cfbe470612805947664e | [
"BSD-3-Clause"
] | permissive | ahgamut/pybind11_custom_iterator_example | 31d315babf06da11154e2c4a9a388a306fa9e51c | 05a409516308a613d3e538c15f65473663aad361 | refs/heads/master | 2022-12-06T21:35:17.259263 | 2020-08-18T07:39:07 | 2020-08-18T07:39:07 | 288,387,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from .py import BoundedPrimes as BoundedPrimesPy
from .cpp import BoundedPrimes as BoundedPrimesCpp
| [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
1c0b90977231092e4a86910abda1e450754f839e | 69e1edd366a8ce47f53c50cb60e1a1e1370e8c7b | /Pharma/Medical_Donation/admin.py | 40c58129210027f2e1d71e2c326100f1d81de56e | [] | no_license | shubham2637/TEST | 2e19511fc32ff0152e179d9c37472e978244310c | d933003b6d381a4513b4d808543f4ab61932e92a | refs/heads/master | 2020-03-27T06:08:39.734968 | 2018-10-21T12:06:37 | 2018-10-21T12:06:37 | 146,082,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # Register your models here.
from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Doner)
admin.site.register(Collector)
admin.site.register(Acceptor)
admin.site.register(vehicle)
admin.site.register(assigned_vehicle)
| [
"shubham37@outlook.com"
] | shubham37@outlook.com |
45b7350ec8ec9896b30f91007b8c398d32f1b07f | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GL/ARB/texture_compression.py | b29492ce55ce320cb21e91b6dfb06237624ddebe | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 2,731 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
ad5845b8e54aaf8193fd4f557cc1746ad2c5481d | 1c390cd4fd3605046914767485b49a929198b470 | /leetcode/perform-string-shifts.py | c3f083bc1436c66094f00822bae18cab08c6cb12 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | class Solution:
def stringShift(self, s: str, a: List[List[int]]) -> str:
z = 0
for x, y in a:
if x == 0:
z += y
else:
z -= y
z %= len(s)
s = s[z:] + s[:z]
return s | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
500c738eb9f035ef78284b2e068a4c6f89144444 | e1e08ca2df1caadc30b5b62263fa1e769d4904d8 | /cbq/modules/entities/json_entities/answer_json_object.py | 53fc7fab7dcf11cb7438b0c9a4b078065087c795 | [] | no_license | tiench189/ClassbookStore | 509cedad5cc4109b8fb126ad59e25b922dfae6be | 4fff9bc6119d9ec922861cbecf23a3f676551485 | refs/heads/master | 2020-12-02T07:48:26.575023 | 2017-07-10T02:45:09 | 2017-07-10T02:45:09 | 96,728,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | __author__ = 'User'
class AnswerJsonObject(object):
prefix_json = "={"
suffix_json = "}="
answer_tf_type = "TRUEFALSE"
answer_textbox_type = "FILLIN"
# MC_1 : mutilchoice import form Moodle
answer_radio_type= "MC"
#MC : multichoice import from excel
answer_cb_type = "MC_1"
answer... | [
"caotien189@gmail.com"
] | caotien189@gmail.com |
2009ba14e8ae6565711848231209ca1d1f90e8d0 | f85ce2baf753d65e8666bbda062acbdb0ccdb5ad | /leetcode/venv/lib/python2.7/site-packages/pyutil/django/backends.py | 5c477a7fa6324ae6d98e8e0eb8d8fd1f56a6e633 | [] | no_license | KqSMea8/PycharmProjects | 2a9d3fa59d08c77daf63be427da27695d4dea471 | c592d879fd79da4e0816a4f909e5725e385b6160 | refs/heads/master | 2020-04-14T11:54:56.435247 | 2019-01-02T10:15:36 | 2019-01-02T10:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python
# coding: utf-8
__author__ = 'zhenghuabin'
from hierarchical_auth.backends import HierarchicalModelBackend
from pyutil.django.base_backends import (
PermissionOnlyModelBackend, AuthFrequencyControl,
FrequencyLDAPBackend, FrequencyModelBackend
)
class PermissionOnlyHierar... | [
"zhangyifeng@bytedance.com"
] | zhangyifeng@bytedance.com |
88e6f83f65eeae5852c183ee644cdf6a4d08395e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy37.py | 5c41b5469cf9621fe438782592c0af7a765009c5 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | # qubit number=2
# total number=6
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from q... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
e9f21530fad3865ba6234c96bd28d2936bbd48da | d024ccbb4cc04af3866a4db1ac1d8c1d7395d909 | /boj/9658.py | c7a62ac715544eaac6f097249a34c09f3082dd26 | [] | no_license | demetoir/ps-solved-code | ff0418dddd10f3b053c9b8d32af48027b10c8481 | f4d4fd2183176b083f2287c9d89c6d5a1e983cc5 | refs/heads/master | 2022-10-14T20:11:34.581439 | 2020-06-12T11:24:11 | 2020-06-12T11:24:11 | 68,782,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | l=["CY","SK","CY","SK","SK","SK","SK"]
n=input()
print l[(n-1)%7] | [
"wnsqlehlswk@gmail.com"
] | wnsqlehlswk@gmail.com |
0d0a590c82bc8f9399ec47b5d69472bf3f072f12 | 8f2e6e38bb7ba2205cba57b0beae146d29f0ad3b | /chap9/chap9_5_cookie_2.py | 33cd710549d48556931ad7512b26f2d0713fe976 | [] | no_license | KimDoKy/WebScrapingWithPython | fa08ba83ba560d4f24cddb5e55de938a380dfec2 | bc7dd8a36d3ee0f8e3a13ae9fe0d074733b45938 | refs/heads/master | 2020-12-02T19:20:26.285450 | 2017-08-25T14:27:36 | 2017-08-25T14:27:36 | 96,326,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import requests
session = requests.Session()
params = {'username': 'Doky', 'password': 'password'}
s = session.post("http://pythonscraping.com/pages/cookies/welcome.php", params)
print("Cookie is set to:")
print(s.cookies.get_dict())
print("----------")
print("Going to profile page_")
s = session.get("http://pythonsc... | [
"makingfunk0@gmail.com"
] | makingfunk0@gmail.com |
e4dab04855633a14f802d01e168ea1bdf7c8263a | 6151c1e7b3fa13d3c706ee9aae42d78a73d762f8 | /core.py | 800a1a5d8f54d6acdc4bbf5df7094279418aae5b | [] | no_license | nhoening/energy_py | 2457e66c800fe2060f892607a8eff6c884f96812 | dad704ee4bc999a6e919e30cd8f49ae9ddbca192 | refs/heads/master | 2021-01-19T14:13:59.089168 | 2017-04-06T13:23:29 | 2017-04-06T13:23:29 | 88,137,301 | 0 | 0 | null | 2017-04-13T07:26:44 | 2017-04-13T07:26:44 | null | UTF-8 | Python | false | false | 1,585 | py | import numpy as np
import pandas as pd
import time
import environments
import agents
import outputs
EPISODES = 75
EPISODE_LENGTH = 336 # number of half hour periods per episode
GEN_OUTPUTS = 25 # generate outputs every n episodes
env = environments.energy_py(EPISODE_LENGTH)
agent = agents.Q_learner(env, verbose=0, ... | [
"adam.green@adgefficiency.com"
] | adam.green@adgefficiency.com |
a6a86b16a0116f31733efd7ab44715ddb2c97cfd | 8602a87e12fe19b28c2e85cfae0bbde27a62855d | /ingenico/connect/sdk/log/response_log_message.py | c5e08e53632b7c03d92040072597251c7859922a | [
"MIT"
] | permissive | king1212/connect-sdk-python2 | 6a687de7967a411fa802477069c7fc7079d059c2 | 203982559c5c10e3dbbb9dfc71123c269908ed26 | refs/heads/master | 2021-07-04T03:10:55.061416 | 2017-09-27T09:29:49 | 2017-09-27T09:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | from ingenico.connect.sdk.log.log_message import \
LogMessage
class ResponseLogMessage(LogMessage):
"""
A utility class to build request log messages.
"""
def __init__(self, request_id, status_code, duration=-1):
super(ResponseLogMessage, self).__init__(request_id)
self.__status_c... | [
"jenkins@isaac.nl"
] | jenkins@isaac.nl |
84cbaaa41282d357d2c7cc1d7fe3cb78450e9441 | 2c59a51856f77a80e636c53f6a5bd572dda01b55 | /10.4.k_closest_stars.0.py | 7caef656574ff170f49833ccc522e11c8fd5c8d2 | [] | no_license | richnakasato/epi-py | 4c0a8b798e0a1da4b8eed94a3b2f36bdb3810481 | d0e21f37524a66eca41078e07ba0db9c3ce3af46 | refs/heads/master | 2022-10-27T00:50:00.480637 | 2020-06-08T22:21:36 | 2020-06-08T22:21:36 | 124,786,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | import functools
import math
import heapq
from test_framework import generic_test
from test_framework.test_utils import enable_executor_hook
class Star:
def __init__(self, x, y, z):
self.x, self.y, self.z = x, y, z
@property
def distance(self):
return math.sqrt(self.x**2 + self.y**2 + se... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
f4055c7a5cf26a79ccdf105037e19043fc0f185f | a10498193f5e4da5e88313bcffe47173553e8152 | /experiments/regressor/regressor.py | 2aec567fef3b4d57f7ecba9a99e5905b3aa37a23 | [
"MIT"
] | permissive | w121211/CoordConv | 01889efd3e1fa1660cf46a9ed6fc7edcc1707044 | 269a8da039f0df08833c5d2324895d37e6e33a0a | refs/heads/master | 2020-05-30T16:26:38.892154 | 2020-02-24T11:42:20 | 2020-02-24T11:42:20 | 189,844,533 | 0 | 0 | MIT | 2019-06-02T12:36:50 | 2019-06-02T12:36:49 | null | UTF-8 | Python | false | false | 5,128 | py | import os
import itertools
import numpy as np
from PIL import Image, ImageDraw
import skimage.draw
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
import torch
import torch.nn as nn
import torch.nn.modules.conv as conv
import torch.utils.data as utils
import torch.nn.functional as ... | [
"w121210@hotmail.com"
] | w121210@hotmail.com |
e4518f1abbbf8affdb5b91610391370b3b20ea8c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04043/s167326061.py | f46fc06ae3d1de268d7cadd5251dc43f66056502 | [] | 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 | 138 | py | mylist = list(map(int,input().split()))
x = mylist.count(5)
y = mylist.count(7)
if x == 2 and y == 1:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1235a9a45876ba7f235cf801c950996c63e617ed | dbbdf35bff726681ae34ad08eeda5f30929e2ae9 | /math/0x05-advanced_linear_algebra/1-minor.py | 1527b6862ac4ee153f0338ecdc8b8c235313b9d3 | [] | no_license | jorgezafra94/holbertonschool-machine_learning | 0b7f61c954e5d64b1f91ec14c261527712243e98 | 8ad4c2594ff78b345dbd92e9d54d2a143ac4071a | refs/heads/master | 2023-02-03T20:19:36.544390 | 2020-12-21T21:49:10 | 2020-12-21T21:49:10 | 255,323,504 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | #!/usr/bin/env python3
"""
creating our method to get the minors
"""
def determinant(matrix):
"""
* matrix is a list of lists whose determinant should be calculated
* Returns the determinant of matrix
"""
# determinant matrix 0x0 or 1x1
if type(matrix) is list and len(matrix) == 1:
if ... | [
"947@holbertonschool.com"
] | 947@holbertonschool.com |
68f96be881d333347432cf5e899fad98492e1c09 | f7db9442c0ba1f5c9f0b2c5fe0f1b0c10320b64a | /Logic-1/near_ten.py | cb774ea10333ee3dab1a050b2959fe064c0a4384 | [] | no_license | antonioramos1/codingbat-python | aba5498fbf331ea47ce1b4178c6f7b8f81fc5908 | bfd02e338d886f8807dd3fb8a766d77a91e0ab50 | refs/heads/master | 2021-09-10T04:16:16.589515 | 2018-03-21T00:20:39 | 2018-03-21T00:20:39 | 126,085,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | def near_ten(num):
return ((num % 10 <= 2) or (num % 10 >= 8))
| [
"antonioramosglz@gmail.com"
] | antonioramosglz@gmail.com |
90b090aea3af514833c11d8e0e5f5b42f1cbe2cd | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/urn.py | 85a21d13f3334605998848d755a9d12aece88282 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
5247fe3239dadfe8433b5457cb9a727d4f21bf53 | 3dbdc7d8d2b0082a3e76ab5934384535fab0f3c6 | /setup.py | 9ac3e61145519f54a4c65d7c838c9555942e698b | [
"BSD-2-Clause"
] | permissive | DalavanCloud/inbox-shell | 4e3602d9c7ae4f7483fd2e8cdd480814dc93dad7 | 2dea2fe49c6ca9cdee351a155d269873655a6006 | refs/heads/master | 2020-04-29T06:45:52.129902 | 2017-02-02T18:43:55 | 2017-02-02T18:43:55 | 175,928,817 | 1 | 0 | null | 2019-03-16T05:07:08 | 2019-03-16T05:07:07 | null | UTF-8 | Python | false | false | 1,378 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'Click==6.0',
'watchdog==0.8.3',
'celery==3.1.23'... | [
"fabiobatalha@gmail.com"
] | fabiobatalha@gmail.com |
fd1ccbdc328a50469e44336abf2af6ce21904ce8 | fdd6c78c58099e741d99c52ba7d1e5a67fbf25f5 | /hnet/gui/hnet_gui.py | 11ee0f7873284eb1bbff52a98a7da49aa66d5f4b | [
"Apache-2.0"
] | permissive | erdogant/hnet | 8ab80e393337839ba455fa18527a6234f5b0508e | 52f7da4efc37a05f0b5c516c4402f6a3f966b8ff | refs/heads/master | 2023-06-22T14:03:26.046224 | 2023-06-16T19:09:52 | 2023-06-16T19:09:52 | 226,647,104 | 23 | 2 | NOASSERTION | 2021-01-04T17:08:19 | 2019-12-08T10:02:58 | Python | UTF-8 | Python | false | false | 31,179 | py | #%% Libraries
# pip install colour dash dash_bootstrap_components dash_core_components dash_html_components
import os
import base64
from pathlib import Path
# popular libraries
import numpy as np
import pandas as pd
# Front-end
# import Core
# import dash_dangerously_set_inner_html
# import codecs
import dash
# import... | [
"erdogant@gmail.com"
] | erdogant@gmail.com |
7be590b46dfd2102a3cf90eb060d078af6433c4e | 5398b50abb6938d1b7a7464a53f6612eba7bfbaa | /tests/test_detrend.py | 5d6de0a700826f5264aabd253bf31d354a1a3886 | [
"MIT"
] | permissive | rodluger/everest | 292093117667e449b0aafb487fc04444756a885f | de0ec6bf03e21e6ab33849ee01f42c4f5f379dc4 | refs/heads/master | 2021-01-18T01:55:13.778359 | 2019-08-12T13:26:27 | 2019-08-12T13:26:27 | 56,615,528 | 42 | 15 | MIT | 2019-08-12T13:25:42 | 2016-04-19T16:59:59 | Python | UTF-8 | Python | false | false | 2,381 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
test_detrend.py
---------------
Test the de-trending core.
'''
import everest
from everest.config import EVEREST_DAT
from k2plr.config import KPLR_ROOT
import os
import numpy as np
import shutil
def test_detrend():
'''
'''
# Copy the TPF file to the c... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
a0c99afcf2378476b51f7f4c7804ae67dfe2f35b | 3a4f14d6638bc0c12c129ed73c6c3543437203df | /src/morphforge/simulation/neuron/hocmodbuilders/modfilewriterbase.py | 8834056de29a483aa85ac2f5dfed59b3df32db54 | [
"BSD-2-Clause"
] | permissive | unidesigner/morphforge | ef04ccb3877f069a0feea72eb1b44c97930dac44 | 510cd86549b2c2fb19296da2d4408ed8091fb962 | refs/heads/master | 2021-01-15T22:34:28.795355 | 2012-04-05T08:55:12 | 2012-04-05T08:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,193 | py | #-------------------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of sourc... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
8f3f88c1e667286c1ecae76028513321d4ee5eb2 | 98caefdb69f5c32d0ef5d5823ed099b1ae7a45a2 | /code/f1/f1.py | fdfa5adeca4b38a715ee0c0e3550ccf971c77321 | [] | no_license | SONGjiaxiu/mlsm | 2834ac793f0664c89ee7d4c95baecda947681007 | 3da65dbd4e9e17fda272b96fb6ed627abce52ba8 | refs/heads/master | 2020-04-06T12:54:26.945964 | 2013-12-16T03:01:29 | 2013-12-16T03:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | """ Plot the harmonic mean (F1 score) and arithmetic mean of sample values of precision and recall. """
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
import matplotlib.pyplot as plt
import numpy as np
pr = np.arange(.1, 1.1, .2)
re = pr
f1 = np.array([(2 * p * r) / (p + r) for p in pr for r in re... | [
"aronwc@gmail.com"
] | aronwc@gmail.com |
b01b6a079e4285a93312631ad0f7e3617a69c5bf | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano537.py | 13c1ace0d32a03e993ce8a2e476e234cf809ffc0 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
e4ead2277f88a2077dab2e58bed45fff5a2c0308 | 2d0e5f5c6dd2e44ecf4166c81caff17f39c0c638 | /programmers/Level_2/이진 변환 반복하기/solution.py | bffe492c954f7c63ef676ef93541e33e9ffbcd58 | [] | no_license | limkeunhyeok/daily-coding | 17d120a9f499189be3250a501e73e312802508a9 | 960dad7758c99619da0a33c899d5d4d8d8ff524d | refs/heads/master | 2022-04-30T22:32:54.173400 | 2022-04-16T13:15:49 | 2022-04-16T13:15:49 | 174,705,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | def solution(s):
removed = 0
converted = 0
while s != '1':
removed += s.count('0')
s = ''.join(s.split('0'))
s = bin(len(s))[2:]
converted += 1
return [converted, removed] | [
"gorloom6425@naver.com"
] | gorloom6425@naver.com |
d1dc1e4805f5026940656c23998763f2b899a4d2 | 8faa581e291149f4c028e16ccceecd34f80d667b | /trained_vgg16/trained_vgg16.py | e9dc19965bfad56052d97338ac841baec1c1102d | [] | no_license | UpCoder/FaceDetection | ce89cc1eefb19ad3677beaa4deb534546959104a | 62ced70be71b1eae22435bdc3ee60b4b9110fa8c | refs/heads/master | 2021-01-18T21:00:21.047065 | 2017-08-17T13:59:41 | 2017-08-17T13:59:41 | 100,552,551 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,376 | py | ########################################################################################
# Davi Frossard, 2016 #
# VGG16 implementation in TensorFlow #
# Details: ... | [
"546043882@qq.com"
] | 546043882@qq.com |
68b62f0a2e452db735a292de856928112003a893 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-kms/aliyunsdkkms/request/v20160120/ListTagResourcesRequest.py | 759d70972da8254e1fd607a7863b8c0c34733a66 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,386 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
74344afac5d022054b34d1ed85b5edeb5795134d | 01a085bb89225d0390316036a915b2b8d7403219 | /lib/python2.7/site-packages/keystoneauth1/tests/unit/identity/test_identity_common.py | 42741cd61c1d106f302bf303caf170b902946023 | [] | no_license | vipinsachdeva/elasticluster_full | 0199ee00e716f285173c8974fdf9570ab5d43470 | 71160196682a8d18a9547d5d28e8a885b067924d | refs/heads/master | 2021-05-15T11:35:44.706476 | 2017-10-25T22:37:37 | 2017-10-25T22:37:37 | 108,333,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,491 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"vipin@kryptonite"
] | vipin@kryptonite |
c22cf07c72b8093aa8183b2c96ff3853a5897ee6 | 6603545f026da893eebf199bd41043bb0fbf071c | /backend/manage.py | 1557d8a7e8d713bb2659663cfbcb18aa3d62834a | [] | no_license | crowdbotics-apps/face-recog-18271 | d71f2c6f060a3ee61a20fa6e931bd63cfa3abffb | 032773bde823a32e1f265d1491749a0e5bcd92fb | refs/heads/master | 2022-11-05T07:15:47.361517 | 2020-06-20T00:49:38 | 2020-06-20T00:49:38 | 273,612,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'face_recog_18271.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ad3cff81ebf91efbdfa63f1436175db04040646f | a68f37fcbf069c0656d4838af7386d6a9919fe59 | /matches/migrations/0004_auto_20191207_2359.py | 40fc7c59de1e33753202e4bde660f3a8f5981b83 | [] | no_license | mitchellpottratz/JobMatch | 7dd2cbd979ca55cf651bcee4356a97e061145b90 | 797a9b1c3dfad57c05db52384d87d5f82be632f5 | refs/heads/master | 2022-11-26T08:44:27.535809 | 2019-12-13T20:05:11 | 2019-12-13T20:05:11 | 224,901,935 | 0 | 0 | null | 2022-11-22T04:53:46 | 2019-11-29T18:08:55 | JavaScript | UTF-8 | Python | false | false | 767 | py | # Generated by Django 2.2.7 on 2019-12-07 23:59
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('matches', '0003_auto_20191207_2357'),
]
operations = [
... | [
"mitchellpottratz@Mitchells-MacBook-Air.local"
] | mitchellpottratz@Mitchells-MacBook-Air.local |
e7a1727371debe5d92cc636a5ea9d1236a3f228c | 83ed1e2f176133c03a5f6dfa504b8df15ae71efb | /python/spicker/findBestPDBHitForYangSpickerResults.py | af8de0a4e0f4f03b3ee5f2e091f63a30a050d941 | [] | no_license | jmborr/code | 319db14f28e1dea27f9fc703be629f171e6bd95f | 32720b57699bf01803367566cdc5fff2b6bce810 | refs/heads/master | 2022-03-09T16:11:07.455402 | 2019-10-28T15:03:01 | 2019-10-28T15:03:01 | 23,627,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/python
import sys
from spicker.spickerYangResultsManager import spickOut
from TMalign.findBestPDBhitByTMalign import printHeader
from inputArgs.inputArgs import inpHand
inpHand('Usage: findBestPDBHitForYangSpickerResults.py [options]\nFind the pdb structure with maximum TMalign to the top model.',
... | [
"borreguero@gmail.com"
] | borreguero@gmail.com |
fe99518b8078e99d668e6fbd655abb5d5a4cc0f8 | 1c8f44f7629c37f953715d5b99e676d2848a9d22 | /CODEFORCES/Python/276B. Little Girl and Game.py | a0b55c9ed1a4b6309a957083c40eb2a7b521049c | [] | no_license | rajandasguptaml/Competitive-Programming | 6d02c9889c1ccaaeddb4bd205c516ce88789b901 | ee40336f664929a4ddc721816b3fcb67c4e522c5 | refs/heads/master | 2023-05-14T17:31:22.912441 | 2021-05-25T20:25:21 | 2021-05-25T20:25:21 | 370,818,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | ### NOT solved yet
# s = input()
# r = s[::-1]
# if s==r or len(s)%2==1:
# print("First")
# else:
# print("Second")
s0 = input()
r0 = s0[::-1]
s = list(s0)
r = list(r0)
i=0;j=-1;count=0
while i<len(s) and j>-len(s)-1:
if s==r:
if count%2==0:
print("First")
break
els... | [
"rajon168075@gmail.com"
] | rajon168075@gmail.com |
ec844f71f0a510cca6b72999b5ce8d111d63291e | ac7c02f29a837fdd67d2bdc77bba182080e98ed8 | /codekata/lenstring.py | a5da49a2f0df318741289dee82b8e078f65e07aa | [] | no_license | YaminiNarayanan-359/guvi | 7630c309a86365e4367fda1ddab4e966e7d1ac5b | a52b6353100b4e9b83a003e6a327fbfb174daac4 | refs/heads/master | 2020-06-03T00:08:00.389609 | 2019-07-16T06:59:53 | 2019-07-16T06:59:53 | 191,355,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | string=input().split()
c=0
for i in string:
c+=len(i)
print(c)
| [
"noreply@github.com"
] | YaminiNarayanan-359.noreply@github.com |
9dd94ac22c183d5727db9054222a8168f1a1ea3d | fd2c12d8a4b7c299b036842c88b2eee31fbc97d0 | /src/chatelet/urban/dataimport/__init__.py | 1873fe9c72c1d0f824ce8f0521ad6cbda97dc092 | [] | no_license | IMIO/chatelet.urban.dataimport_22 | 7aad67c2a453f2c52a299c9bdeb6006629736151 | 8ecc3f70f04c0b4549d01262fe2328cbea0c7422 | refs/heads/master | 2021-01-11T13:36:39.446515 | 2018-03-21T10:25:05 | 2018-03-21T10:25:05 | 95,010,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
"""Init and utils."""
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('chatelet.urban.dataimport')
def initialize(context):
"""Initializer called when used as a Zope 2 product."""
| [
"julien.jaumotte@imio.be"
] | julien.jaumotte@imio.be |
509650b9e8bf7ba14dee9ebd4818024a311e2525 | 07622a0fb38e843ab0eef4f69bb8fb25d107c06d | /pretrained_mol_sim/Theano-master/doc/tutorial/using_gpu_solution_1.py | 4a8faf95082ec001018004b2054028e7e2947d19 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | andreeadeac22/graph_coattention | fa59d77252625e4bee1cb9670e4a0fd0fec98135 | 23781fedaa942ca5614054f965cb7b6543e533fa | refs/heads/master | 2023-08-08T01:51:51.368457 | 2020-02-19T04:56:59 | 2020-02-19T04:56:59 | 207,414,336 | 15 | 4 | MIT | 2023-07-22T15:47:39 | 2019-09-09T22:13:34 | Python | UTF-8 | Python | false | false | 17,880 | py | #!/usr/bin/env python
# Theano tutorial
# Solution to Exercise in section 'Using the GPU'
# 1. Raw results
from __future__ import absolute_import, print_function, division
import numpy
import theano
import theano.tensor as tt
from theano import sandbox, Out
theano.config.floatX = 'float32'
rng = numpy.random
N ... | [
"andreeadeac22@gmail.com"
] | andreeadeac22@gmail.com |
c16dfc8e805397696a28fefe198fe15da0e2c2be | 14f4d045750f7cf45252838d625b2a761d5dee38 | /argo/argo/models/io_k8s_api_apps_v1_deployment_status.py | 7522df1f7273206980f58e3880cd6619396c8e60 | [] | no_license | nfillot/argo_client | cf8d7413d728edb4623de403e03d119fe3699ee9 | c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa | refs/heads/master | 2020-07-11T13:06:35.518331 | 2019-08-26T20:54:07 | 2019-08-26T20:54:07 | 204,546,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,922 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six... | [
"nfillot@weborama.com"
] | nfillot@weborama.com |
0f4ab2c73ce4c7180733dbbeca11939f47e01c50 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_192/ch42_2020_03_25_19_34_11_413832.py | e872a112643a7e17788e1d11edee539ab3a0251c | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | lista = []
i = 0
lista.append input('Qual o numero? ')
while lista[i] != 'fim':
lista.append input('Qual o numero? ')
i += 1
k = 0
while k < len(lista):
primeira_letra = lista[k][0]
if primeira_letra == 'a':
print(lista[k])
k += 1
| [
"you@example.com"
] | you@example.com |
112ddf381508ce42265b89b0b2c966c9538e4656 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/website_slides_survey/tests/test_course_certification_failure.py | 8b206faefb8fd809adb037157ee2c4e43db3482f | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 6,417 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.survey.tests.common import TestSurveyCommon
class TestCourseCertificationFailureFlow(TestSurveyCommon):
def test_course_certification_failure_flow(self):
# Step 1: create a simple certifica... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
14563ba2c359f63884cfc87342aecce3be49c6e2 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200413200154.py | 8a66e8647b5db78d59ce930257011be42b20068b | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,295 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
def rho_free(x,xp,beta):
"""
Uso: devuelve elemento de matriz dsnsidad para el caso de una partícula libre en un toro infinito.
"""
return (2.*np.pi*beta)... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
bdc413ea20316986dfe113e8efd9140e2a6d4b0e | 0766eb170f5e2f01b611df8320252e423952f2a3 | /aioquic/connection.py | 5520e141c19e6e6aae8e825a75b2aa3bd653778e | [
"BSD-3-Clause"
] | permissive | sysuljx/aioquic | 298b2b9ee9eaa024d9157785a905befafc5ea2a1 | 2b9f0607e98e147d2524b21ff62cec859ca0f21a | refs/heads/master | 2020-06-21T02:34:03.414378 | 2019-07-16T23:46:43 | 2019-07-16T23:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,260 | py | import binascii
import logging
import os
from collections import deque
from dataclasses import dataclass
from enum import Enum
from typing import Any, Deque, Dict, FrozenSet, List, Optional, Sequence, Tuple, cast
from . import events, tls
from .buffer import Buffer, BufferReadError, size_uint_var
from .configuration i... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
cea89a1eaee8198a28f2b9117ef80111ac48d056 | 4bf5f83a8e5cd4c3ee700569e4a6f07a87dd209c | /students/11th/leeji/westagram/posting/migrations/0003_auto_20200809_1001.py | f26a908bc354d704d1f3712eb7d4e3d0f007a914 | [] | no_license | gledong12/westagram-backend | 6e066f4c741aa19df13224ba530b0d9f43a405f7 | 1842f065c599885ad5dcb9ec5fb267eaf3295872 | refs/heads/master | 2023-03-11T20:32:47.055525 | 2021-03-04T01:04:31 | 2021-03-04T01:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.1 on 2020-08-09 10:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posting', '0002_auto_20200809_1000'),
]
operations = [
migrations.AlterField(
model_name='post',
name='content',
... | [
"lsheon93@gmail.com"
] | lsheon93@gmail.com |
3509217b200f2acefe8bc156f9de28214e07035d | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test002/数据类型_20201205185029.py | ef50ac3fdabe52ce813041c8b9c950f7aac824ec | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | # fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
# print(fruits.count("apple"))
# a = fruits.index("banana",4)
# print(a)
# fruits.reverse()
# print(fruits)
# fruits.append("daka")
# print(fruits)
# print(fruits.sort)
# a = fruits.pop(0)
# print(a)
# print(fruits)
# number = [1,2,45,3... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
f8c27312d56ea83a3fa49553732ba91b99991280 | e07f2ffafcc269ea2e13f367ce02dd38f661a215 | /api/views.py | ac7abfb93faf06da1623e960c49af650b123b7fc | [] | no_license | awmace/EMS_api | 5c09e85073bac2673e97bd11a7c628e88aaee7aa | bf82f83ff515b8530ef093dfca3d074139bacc81 | refs/heads/master | 2022-11-13T06:50:08.176535 | 2020-07-05T18:34:40 | 2020-07-05T18:34:40 | 277,361,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | from rest_framework import exceptions
from rest_framework.views import APIView
from rest_framework.generics import GenericAPIView
from rest_framework.mixins import ListModelMixin, CreateModelMixin, DestroyModelMixin, RetrieveModelMixin,UpdateModelMixin
# Create your views here.
from api.models import User, Employee
fro... | [
"2638274890@qq.com"
] | 2638274890@qq.com |
f57615dcc208cac5de82e0a6a5f74386bc37cd31 | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /YuBlog-master/source/manage.py | daad09c42846221cbfccff87e23a2ff39697848b | [] | no_license | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | #!/usr/bin/env python
import os
# if os.path.exists('../.env'):
# for line in open('../.env', encoding='utf-8'):
# if line .find('#') > -1:
# line = line.split('#')[0]
# var = line.strip().split('=')
# if len(var) == 2:
# os.environ[var[0]] = var[1]
from app import ... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
e45c48d47839e2612a3413285b0acf313fc62774 | 079bf610c10164e2695fb320e19242c3a643dc4b | /scripts/validate_sphinx.py | 429fb5607077be2fe59059a9141a178eff9ce9d8 | [
"MIT"
] | permissive | marecabo/botorch | 769350e2f7e39235b5613f9369f7bd050ba036fe | 9e604fe2188ac85294c143d249872415c4d95823 | refs/heads/master | 2021-05-18T05:02:01.109919 | 2020-04-23T00:13:16 | 2020-04-23T00:15:14 | 251,123,304 | 0 | 0 | MIT | 2020-03-29T20:06:48 | 2020-03-29T20:06:48 | null | UTF-8 | Python | false | false | 3,830 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import annotations
import argparse
import os
import pkgutil
import re
from typing import Set
# Paths... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4b036b05193efe15285f9486b511de28f57cef57 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Minimizing Path Cost/test.py | 12eed9ec01bc8081eb0d14abb110a56a2c736d59 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 979 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch('sys.stdin.readline', side_effect=[
'4 4',
'Howrah Trivandram Vashi Mysore',
'Howrah Trivandram 10',
'Howrah Vashi 20',
'Trivandram Mysore... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
de8204126bba322d3defdf4c070c81dbd5264078 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/munition/component/shared_warhead_medium.py | 280a75142bb4ef0e62f9c4671fdc04f02c0f51d0 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 462 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/munition/component/shared_warhead_medium.iff"
result.attri... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
cc8a395f6e4789d7db3fb93af1b9e05bad52800b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02712/s731031269.py | b007eb46a4e54ef34033dd104759278ead995864 | [] | 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 | 208 | py | def main():
N = int(input())
ans = 0
for i in range(1,N+1,1):
amari3 = i%3
amari5 = i%5
if amari3 != 0 and amari5 != 0:
ans += i
return ans
print(main())
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.