blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f05788dedfb6545482ba4bd9b8acffa93ddfb1e | 29c476c037a05170ff2ddef8edd07014d3751614 | /0x03-python-data_structures/10-divisible_by_2.py | 787cefb10383f36ee67ca2a984d31d20a27f6684 | [] | no_license | hacheG/holbertonschool-higher_level_programming | a0aaddb30665833bd260766dac972b7f21dda8ea | 535b1ca229d7cf61124a128bb5725e5200c27fbc | refs/heads/master | 2020-07-22T23:09:27.486886 | 2020-02-13T19:41:34 | 2020-02-13T19:41:34 | 207,360,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/python3
def divisible_by_2(my_list=[]):
new_list = []
for i in my_list:
if(i % 2 == 0):
new_list.append(True)
else:
new_list.append(False)
return(new_list)
| [
"943@holbertonschool.com"
] | 943@holbertonschool.com |
a452e26672a218523c0d1f3f356856adc98f25b9 | b6553d9371a3612c992cfe0dba678cbc16c6812b | /a-concurrent/http_request.py | 36e4bf8acdab802ce4473dd7627fe7ccf2c97506 | [] | no_license | drgarcia1986/bev-py-concurrency | 071ef6f899c7c892eeb446c024b67bfa56d6a83c | 4159b9acb82ade59c9b7d1b5ae49d764fddf5430 | refs/heads/master | 2021-01-09T05:50:37.331265 | 2017-02-03T15:30:24 | 2017-02-03T15:30:24 | 80,840,883 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import asyncio
import aiohttp
async def make_get(delay):
response = await aiohttp.get('https://httpbin.org/delay/{}'.format(delay))
response.close()
return delay, response.status == 200
async def make_requests(*delays):
requests = [make_get(d) for d in delays]
return await asyncio.gather(*reque... | [
"drgarcia1986@gmail.com"
] | drgarcia1986@gmail.com |
907b45c3d962efdc0f0ec839c4a198f7fa84df2e | 7ac82627034f262d110112112bd3f7e430f3fd90 | /CodeEdgeDetection.py | 13accf650198daa9d37272e2f4a0fbf31bbe2ac1 | [] | no_license | saguileran/Codigos | bca7172e19aefb5ed9ec0720991cafff078278cc | f49a72f57de3769d06ff4a09df07e9d25d4dde29 | refs/heads/master | 2020-06-01T16:53:27.446944 | 2019-06-27T19:26:57 | 2019-06-27T19:26:57 | 190,854,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
# loading image
#img0 = cv2.imread('SanFrancisco.jpg',)
img0 = cv2.imread('Camera.jpg',)
# converting to gray scale
gray = cv2.cvtColor(img0, cv2.COLOR_BGR2GRAY)
# remove noise
img = cv2.GaussianBlur(gray,(3,3),0)
# convolute with proper kernels
lap... | [
"root@beaglebone.localdomain"
] | root@beaglebone.localdomain |
266c3267d5b874ecb5dda55196cfc42fc8c3ef76 | 29a78032c3b2fdd4722f6c054ab20a5a8cea627c | /studtpy/string2.py | ec6493272f2407e3dd9850cfac2e0d2a611c519b | [] | no_license | jungting20/pythonpro | 838ea188f846b6e1a90f1a7c429f02464b1b0927 | 455dd23132023cb472bab5e8d9ba4a881331db54 | refs/heads/master | 2021-06-27T16:20:54.768172 | 2017-09-16T08:38:19 | 2017-09-16T08:38:19 | 103,737,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | n = 42
f = 7.03
s = 'string cheese'
aa = {'n':42,'f':7.03,'s':'string cheese'}
bb = {'n':40,'f':6.03,'s':'cheese'}
#이걸 기억하자 깔끔하게 기억 넣는순서가있음 딕셔너리는 객체니까 그냥 1개로 보는
#거임 그러니
#결국 저 숫자 0 1의 의미는 .format에 인자에 넣는 순서를 말하는거임 ㅋ
#깨달았다
bb = '{0[n]:<10d} {0[f]:<10f} {0[s]:<10s} {1[n]} {1[f]} {1[s]}'.format(aa,bb)
cc = '{0:0>2d}'.form... | [
"jungting20@gmail.com"
] | jungting20@gmail.com |
6b30f92d6c8692c9de33540170070de26905643f | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1815745/homework02/program02.py | 5dd1b627308412ffb7923fffd477fb45a221ef02 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | '''
Un file di compiti contiene informazioni su un insieme di compiti da eseguire.
Esistono due tipologie di compiti:
- compiti che possono essere eseguiti indipendentemente dagli altri.
- compiti da svolgere solo al termine di un compito preliminare.
I compiti del primo tipo sono codificati nel file mediante una ... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
bc5d19bd2accbef984fe12bf55bf5efc38843cdd | 0e5291f09c5117504447cc8df683ca1506b70560 | /netbox_client/models/virtual_chassis.py | 55a342402aba80391af4f170111c0cc764deb924 | [
"MIT"
] | permissive | nrfta/python-netbox-client | abd0192b79aab912325485bf4e17777a21953c9b | 68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8 | refs/heads/master | 2022-11-13T16:29:02.264187 | 2020-07-05T18:06:42 | 2020-07-05T18:06:42 | 277,121,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,791 | py | # coding: utf-8
"""
NetBox API
API to access NetBox # noqa: E501
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class VirtualChassis(object):
"""NOTE: This class is auto generated by the sw... | [
"67791576+underline-bot@users.noreply.github.com"
] | 67791576+underline-bot@users.noreply.github.com |
2064f456c5a1818c85b08b9b443632e186ae9c5d | d8010e5d6abc2dff0abb4e695e74fb23b4f7d558 | /publishing/books/views.py | 5a144558fd6f3fac6f3640f5283f5929042b46fd | [
"MIT"
] | permissive | okoppe8/django-nested-inline-formsets-example | d17f4e1181925d132625e51453cb8c50107ade1c | c0b1abb32f6d09a7732d48e40ea61e21b258e959 | refs/heads/master | 2020-03-09T21:48:51.804513 | 2018-03-04T11:13:55 | 2018-03-04T11:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | from django.contrib import messages
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from django.views.generic import DetailView, FormView, ListView, TemplateView
from django.views.generic.detail import SingleObjectMixin
from .forms import PublisherBooksW... | [
"phil@gyford.com"
] | phil@gyford.com |
b7caeef897518daa65994562807bac7471c5cbf2 | 202180e6b7109e9058cce442054d6532c44c796d | /crm/migrations/0010_auto_20161127_1530.py | 1ffb531b34b3e42c78cc8c52836e43f171d5a024 | [
"Apache-2.0"
] | permissive | pkimber/old-crm-migrated-to-gitlab | 230d4eec0cfa794c90fff8c75154d98699820093 | 835e8ff3161404316b7da35cf61e3851763b37b9 | refs/heads/master | 2021-06-15T22:07:08.207855 | 2017-04-27T21:05:53 | 2017-04-27T21:05:53 | 12,544,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-27 15:30
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"code@pkimber.net"
] | code@pkimber.net |
50dba4a8dc1c11bcde73b1533d03a5da993821bf | 2449715d42e89f51bd352b3f3a311ef41f3f04f2 | /exercise/news_test/muitlprocess_queue.py | 97d0eb41eb5347ae036aa4552a0c54a362fa11e7 | [] | no_license | SmallPuddingComing/PycharmProjects | d0d900c94691efe98d7d0e147f2968c28546f61c | 28965e9e2524cb26449a30a237665f404c5aab70 | refs/heads/master | 2021-01-10T15:47:21.968541 | 2016-05-03T11:23:27 | 2016-05-03T11:23:27 | 54,554,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | #coding:utf8
'''
Created on 2016-4-1
@author : yr
website from : http://www.jb51.net/article/80115.htm
'''
import multiprocessing
import requests
from multiprocessing.process import Process
#IO密集型任务
#多个进程同时下载多个网页
#利用Queue+多进程
#由于是IO密集型,所以同样可以用threading
'''
1、初始化tasks,里面放着一系列的dest_url
2、同时开启4个进程向tasks中获取任务进行执行
3、处理结果... | [
"1076643147@qq.com"
] | 1076643147@qq.com |
89418b88b36775cd5558bcb8e547933c0d213a39 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/v_mware_dvs_config_spec.py | afb05925855d68f024da0b88a95e372d9f3d0e83 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def VMwareDVSConfigSpec(vim, *args, **kwargs):
'''This class defines the VMware specific ... | [
"jmb@pexip.com"
] | jmb@pexip.com |
b57adcc39b9c6b4abe4965488f9b60417cd6389c | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartA/Py反转字符串内容2.py | b6b9af014070855a9b3a79797b620fdd1f3d974e | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py |
class Solution():
def reverseString(self,s):
def helper(left, right):
if left < right:
s[left], s[right] = s[right],s[left]
helper(left + 1, right-1)
helper(0, len(s) - 1)
return s
if __name__ == "__main__":
s = Solution()
print(s.rever... | [
"2901429479@qq.com"
] | 2901429479@qq.com |
d6b58de7a4483d2044cdc0624c57e6f6d3792fbf | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/335/usersdata/297/99568/submittedfiles/matriz1.py | 25872a5f7dbc94f97ca7250169563977b88328f5 | [] | 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 | 3,475 | py | # -*- coding: utf-8 -*-
matriz=[]
m=int(input('digite o numero de linhas dejado: '))
n=int(input('digite o numero de colunas dejado: '))
for i in range(m):
linha= []
for j in range(n):
linha.append(int(input('digite o valor do indice da linha%d e da coluna %d : ' %((i+1),(j+1)))))
matriz.append(linh... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b869b5aabce6c786603cfd965af2eccc2d2311c2 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_170/run_cfg.py | 72c397a816bf725adf80827a259310277ce5fb80 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_m... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
f9def055c1faf6d80a0eb67ecc555853b788a02f | 77d834eb125fdc56c96af31cf74db5b741c8e94e | /api_v5/urls.py | 99a4f29e1b51566b40e869de61c5b80f161f01cd | [] | no_license | zhouf00/learn_rest_framework | 7c17124fcb08ce48f54f94201f2da29e41e9d867 | a292e38ee9ff475e43ce4612fbb6c074b4073f84 | refs/heads/master | 2022-10-12T12:05:07.618651 | 2020-06-11T02:40:45 | 2020-06-11T02:40:45 | 268,827,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.conf.urls import url,include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
urlpatterns = [
] | [
"49618748+zhouf00@users.noreply.github.com"
] | 49618748+zhouf00@users.noreply.github.com |
05e9150c6a508e13e2e38e2590747d16dad070dd | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_watermark_template_request.py | fe26b61a406957be1a4292565fe85e4762ba11f4 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateWatermarkTemplateRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (di... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3dface85d6a966e144d8e74a1ed487c73e9b9c72 | d23dab09b21553353ad85246ebafaea790f2afbd | /src/python/pants/backend/scala/lint/scalafmt/rules.py | 82f6198e1339413f45ec690c0b395020ca4addcc | [
"Apache-2.0"
] | permissive | asherf/pants | 00e8c64b7831f814bac3c4fa8c342d2237fef17d | c94d9e08f65e9baf3793dff0ec2c571d682f6b90 | refs/heads/master | 2023-05-28T14:45:35.325999 | 2023-01-18T15:16:07 | 2023-01-18T15:16:07 | 185,082,662 | 0 | 0 | Apache-2.0 | 2023-01-18T15:15:46 | 2019-05-05T21:09:43 | Python | UTF-8 | Python | false | false | 7,856 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import os.path
from collections import defaultdict
from dataclasses import dataclass
from typing import cast
from pants.backend.scala.lint.scalafmt.skip... | [
"noreply@github.com"
] | asherf.noreply@github.com |
b89e16585be9d5a208e0711271a22f5d6e201515 | 886397f22f566025c268c7591ce1f91aa1413a86 | /Stack_and_Queue/002_geeksforgeeks_Next_Larger_Element/Solution.py | 8ffe729762e7b3fa8dec35455a1e065d75178d3c | [] | no_license | Keshav1506/competitive_programming | cd4323355c96a1368135bdfb6b24511bb0b11477 | f2621cd76822a922c49b60f32931f26cce1c571d | refs/heads/master | 2023-02-04T16:48:16.723296 | 2020-12-24T04:13:45 | 2020-12-24T04:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | #
# Time : O(N); Space: O(1)
# @tag : Stack and Queue
# @by : Shaikat Majumdar
# @date: Aug 27, 2020
# **************************************************************************
# Description:
#
# Given an array A of size N having distinct elements, the task is to find the next greater element for each element of the ... | [
"sm2774us@gmail.com"
] | sm2774us@gmail.com |
997edcc27f6dff73d8aad74d24578f3cf20b226d | 33feacc4ef80da09e6843c6b97469ad99b2215cb | /Dictionary/src/deldict.py | 430e54047f93a5a797e4bbc2eea892edc3b91ce0 | [] | no_license | DheerajJoshi/Python-tribble | cfbecbd4e33da38f514c5eee3d61ddd74408e071 | eb82eb04e299ceec39ad19b9fc07873e5479ab74 | refs/heads/master | 2021-05-30T07:59:17.362407 | 2015-10-25T13:33:19 | 2015-10-25T13:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #!/usr/bin/python
dict1 = {'Name': 'Zara', 'Age': 7, 'Class': 'First'};
del dict1['Name']; # remove entry with key 'Name'
dict1.clear();
# remove all entries in dict1
del dict1 ;
# delete entire dictionary
print ("dict1['Age']: ", dict1['Age']);
print ("dict1['School']: ", dict1['School']);
#This will produce the foll... | [
"joshidj.12@gmail.com"
] | joshidj.12@gmail.com |
da311bd0dc542b41b6afccbf71b942ad15aa3c0a | cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0 | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/delete_certificate_request.py | 49280d442ebc8df1c3ca56dc98901b35b2864376 | [
"Apache-2.0"
] | permissive | Logan118/huaweicloud-sdk-python-v3 | eca15e9b08bdccef7122e40735d444ddc958efa8 | bb230c03bd00225b9f5780a56adce596e9456420 | refs/heads/master | 2023-07-17T14:57:50.799564 | 2021-08-25T10:40:43 | 2021-08-25T10:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteCertificateRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): T... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3ebe149e847b53c61177f7563d3477880c98187a | 88be3911c7e73d4bf71b0482ee6d15f49030463a | /Func_Decorator/demo8_decorator.py | 0957bf20ac97a758b0acbd5f52d072b9f13b2289 | [] | no_license | skyaiolos/Python_KE | 85f879d1cb637debd2e3a0239d7c8d7bfb30c827 | 8cc42c8f4d1245de4b79af429f72a9ed2508bc1a | refs/heads/master | 2021-01-22T08:47:47.761982 | 2017-05-28T14:57:02 | 2017-05-28T14:57:02 | 92,634,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | """
# Script Description:
http://www.cnblogs.com/rhcad/archive/2011/12/21/2295507.html
Python装饰器学习(九步入门)
"""
__author__ = "爱的彼岸(QQ:3124724)"
__copyright__ = "Copyright 2017,3124724@qq.com"
print("第八步:让装饰器带 类 参数")
print("------示例8: 装饰器带类参数")
'''示例8: 装饰器带类参数'''
class locker:
def __init__(self):
... | [
"skyaiolos@aliyun.com"
] | skyaiolos@aliyun.com |
d32415e83f4447be4139a778226ca0f0b28ff00f | 314245750f897949bc7867883d22b8ff1465fbe1 | /boostcamp/ex/dfs_bfs/1_solved.py | 8564949da94e717d888d487afad6e537ae1696c4 | [] | no_license | dongho108/CodingTestByPython | e608d70235cc6c6a27c71eea86ee28d1271d4d1d | 475b3665377a8f74944d7698e894ad3eafc49ad4 | refs/heads/master | 2023-05-24T15:01:56.563359 | 2021-07-01T14:23:20 | 2021-07-01T14:23:20 | 330,833,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | answer = 0
def dfs(n, sum, numbers, target):
global answer
if n == len(numbers):
if sum == target:
answer += 1
return
dfs(n+1, sum+numbers[n], numbers, target)
dfs(n+1, sum-numbers[n], numbers, target)
def solution(numbers, target):
global answer
dfs(1, numbers[0... | [
"dongho108@naver.com"
] | dongho108@naver.com |
f3d7325e4106686dfd04fb4b95d0df987c6a83c6 | de213b73f703fb8f285bc8cf15e388cc2f98898f | /venv/bin/IveBeenEverywhere.py | 32dad69578024fb806c25252463ac155bd2da901 | [] | no_license | adampehrson/Kattis | 18de025a6a569a46c54cc85c996eec0b55c9f74b | a04922caa356f8113fe30a523f3a148d458a6132 | refs/heads/main | 2023-07-10T02:53:29.782854 | 2021-08-14T10:44:30 | 2021-08-14T10:44:30 | 395,948,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py |
i = 0
x = int(input())
while i<x:
e = 0
cities = list()
total = 0
y = int(input())
while e <y:
newcity = input()
if cities.count(newcity) < 1:
total = total +1
cities.append(newcity)
e +=1
print(total)
i+=1 | [
"85373641+adampehrson@users.noreply.github.com"
] | 85373641+adampehrson@users.noreply.github.com |
1162591a036f543f84cd75cc9f65138a01a11000 | 8723f56398a7f969877709192922c053b0e20d56 | /Kayit/migrations/0002_auto_20191230_2010.py | 67c88c715ff83bd43a9649c5b886ab1c30655f68 | [] | no_license | vektorelpython/Python17Web | f215efd9be96062886f67e456c4d0735602b5f00 | f571a4157d2575d441f091f2450d5e24f4f3645d | refs/heads/master | 2022-04-04T20:03:02.941949 | 2020-01-13T16:16:15 | 2020-01-13T16:16:15 | 230,123,576 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Generated by Django 2.2.3 on 2019-12-30 18:10
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Kayit', '0001_initial'),
]
operations = [
... | [
"ibrahim.ediz@gazi.edu.tr"
] | ibrahim.ediz@gazi.edu.tr |
2fcd4d8f4ade86e244c888b374d3a52a7905389e | 5b3c90d0426dd2adbe756e094c99f066925cda79 | /todoist_tracker/cli/base.py | eee2baa5c52b59f692be8f17b0816a697bee1379 | [
"MIT"
] | permissive | deanmalmgren/todoist-tracker | 5bd85e3903b0f5ca10b05c406535da36a92d7ab5 | f2576a6bf5a80873bc825b3d64a1dc6aed0a145b | refs/heads/master | 2021-01-12T05:02:53.769394 | 2017-01-14T20:08:57 | 2017-01-14T20:08:57 | 77,838,338 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | import argparse
import json
import os
import shutil
from todoist import TodoistAPI
import gspread
from gspread.exceptions import WorksheetNotFound
from oauth2client.service_account import ServiceAccountCredentials
class BaseCommand(object):
help_text = ''
def __init__(self, subcommand_creator):
# k... | [
"dean.malmgren@datascopeanalytics.com"
] | dean.malmgren@datascopeanalytics.com |
226804966ea7030faa28c955e70c9aaf1b2c505e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/131/usersdata/231/45412/submittedfiles/al10.py | a573e8bb660a39123122360930bff18c017929eb | [] | 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 | 296 | py | # -*- coding: utf-8 -*-
n=int(input('digite o número de termos:'))
numerador=2
denominador=1
produto=1
i=0
while (i)<=n:
produto=(produto*numerador)/denominador
if i%2==1:
numerador=numerador+2
else:
denominador=denomidor+2
i=i+1
print(produto)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
93de3c327880536cb8e6fadfa3bb218dd1f988d7 | 4adc1d1b8f9badefcd8c25c6e0e87c6545ccde2c | /OrcApi/Run/RunDefMod.py | 2f8dc08045cf79a3369be3dfb48b8252fd92eca1 | [] | no_license | orange21cn/OrcTestToolsKit | eb7b67e87a608fb52d7bdcb2b859fa588263c136 | 69b6a3c382a7043872db1282df4be9e413d297d6 | refs/heads/master | 2020-04-15T07:30:35.485214 | 2017-09-30T06:16:17 | 2017-09-30T06:16:17 | 68,078,991 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,612 | py | # coding=utf-8
import os
import re
from OrcLib.LibCommon import OrcString
from OrcLib import get_config
from OrcLib.LibLog import OrcLog
from OrcLib.LibNet import OrcResource
from OrcLib.LibNet import ResourceCheck
from RunData import RunData
class RunDefMod:
"""
运行列表管理,操作目录,目录名为 [类型]_[id],目录内含有 result.res 的属... | [
"orange21cn@126.com"
] | orange21cn@126.com |
3d54b8a8ff113386e8decf0364c938387f21328f | 45b4ff6a4e4804ff84847d56400e10cdb0d96186 | /python/test/test_facility_api.py | 45f0beb3033e2eea55022dd52157db63d76832e0 | [] | no_license | pranav/mbta-libraries | fabbc9305569a344e25fa1b281cba290f0fa3f13 | e793696addd94750f722f3132aadc8dfe00adef5 | refs/heads/master | 2021-08-22T11:15:26.014862 | 2017-11-30T03:12:52 | 2017-11-30T03:12:52 | 112,558,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # coding: utf-8
"""
MBTA
MBTA service API. https://www.mbta.com
OpenAPI spec version: 3.0
Contact: developer@mbta.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import swagger_client
from swa... | [
"pgandhi@hubspot.com"
] | pgandhi@hubspot.com |
ed03d817b2745fe31e30d8bef403cb40adbead8c | 02bcd98063c2088e9ab6a266c7f7c57d0c06cd33 | /install.py | 9ec2a4b8a4f81785a93ba6c43892aee798a445c6 | [
"MIT"
] | permissive | kevinsegal/BabySploit | e99d2c89a041de9f0f2e6e3d4f0ce5bb015011f0 | 66bafc25e04e7512e8b87b161bd3b7201bb57b63 | refs/heads/master | 2020-04-07T04:27:18.870230 | 2018-11-18T03:34:38 | 2018-11-18T03:34:38 | 158,056,891 | 1 | 0 | MIT | 2018-11-18T06:35:20 | 2018-11-18T06:35:20 | null | UTF-8 | Python | false | false | 1,407 | py | import os, time, subprocess, sys
from sys import stdout
def Command_exe(msg,cmd):
i = "[STATUS] Processing"
stdout.write(" " + msg + " %s" % i)
stdout.flush()
if subprocess.call(cmd +' >/dev/null 2>&1', shell=True)==0:
i = "Complete [WARNING] "
else:
i = "Error [WARNING] "
stdo... | [
"maxlikescs@gmail.com"
] | maxlikescs@gmail.com |
29e7ca9976f3be06036fd6349285796e881773cd | 45df508e4c99f453ca114053a92deb65939f18c9 | /tfx/examples/custom_components/slack/example/taxi_pipeline_slack.py | 3dbce075cb89247de90ea067d0bc447f94df9942 | [
"Apache-2.0"
] | permissive | VonRosenchild/tfx | 604eaf9a3de3a45d4084b36a478011d9b7441fc1 | 1c670e92143c7856f67a866f721b8a9368ede385 | refs/heads/master | 2020-08-09T13:45:07.067267 | 2019-10-10T03:07:20 | 2019-10-10T03:07:48 | 214,100,022 | 1 | 0 | Apache-2.0 | 2019-10-10T06:06:11 | 2019-10-10T06:06:09 | null | UTF-8 | Python | false | false | 7,087 | py | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
4f28e36150a4c5c9a4bf75957a1d0d02781ce721 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/contourcarpet/_db.py | bb09cf5f377e552d7947bdae4b474578ed21a179 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 463 | py | import _plotly_utils.basevalidators
class DbValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="db", parent_name="contourcarpet", **kwargs):
super(DbValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_ty... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
a98d186aebdc18f7d4377a743b524e38f60cc783 | 1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e | /xcp2k/classes/_xc_functional4.py | ad5a17e378f40fa030a908f352016d1de833a6ac | [] | no_license | Roolthasiva/xcp2k | 66b2f30ebeae1a946b81f71d22f97ea4076e11dc | fc3b5885503c6f6dc549efeb4f89f61c8b6b8242 | refs/heads/master | 2022-12-23T06:03:14.033521 | 2020-10-07T08:01:48 | 2020-10-07T08:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._becke884 import _becke884
from xcp2k.classes._lyp_adiabatic4 import _lyp_adiabatic4
from xcp2k.classes._becke88_lr_adiabatic4 import _becke88_lr_adiabatic4
from xcp2k.classes._becke88_lr4 import _becke88_lr4
from xcp2k.classes._lyp4 import _lyp4
from xcp2k... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a108251d6955ab18aefd892dba107082ec3cb923 | 612e5a48a75121b741650d345d58a682c0a81285 | /graph/graphic_connection.py | 19540bbd9258914c1ac4f6bf67f3fe13646fdac0 | [] | no_license | BelowzeroA/stochastic-learning | e89f9f459219279eb97c53401295ec5202e11b0b | 62242fd7ca4a63cd7c908032e97368985b1b97c5 | refs/heads/master | 2021-01-25T14:45:27.057441 | 2018-03-05T19:35:21 | 2018-03-05T19:35:21 | 123,724,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | from graphics import Line, Point
from math import sqrt
from brain.connection import Connection
from brain.neuron import Neuron
class GraphicConnection(Connection):
def __init__(self, brain, source, target: Neuron):
super(GraphicConnection, self).__init__(brain, source, target)
self.prev_pulsing ... | [
"striver8"
] | striver8 |
20bf8a60d72585f0a48a322755aa4788d0275de3 | 16ac9158781d2616141433df9be4820e6d998e03 | /src/eavatar.ava/ava/runtime/config.py | a5ce582b9c006054037c6cd74a3020d2f5fcad62 | [] | no_license | pombredanne/ava-srv | 0a357fb39d0179db0c0d545eb23d707d25b0e446 | 8acef33502d4bc3089f610f0b4ee33e7a5e779ae | refs/heads/master | 2020-12-31T05:56:07.741625 | 2015-03-06T06:29:56 | 2015-03-06T06:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | # -*- coding: utf-8 -*-
"""
Configuration file reading/writing.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
import logging.config
import os.path
from ConfigParser import SafeConfigParser
from ava.runtime import environ
AGENT_CONF = os.path.join(environ.conf... | [
"sam@eavatar.com"
] | sam@eavatar.com |
afae17498d04492c414161c081d29bd04a00c86e | 32233aeda342ff6e107496caaf3c9be322ab80b2 | /06 Brute-Force/6.1 sum + recursiveSum.py | a17932df866565d47efd0e67da2fd83ce2a96581 | [] | no_license | kwr0113/Algo_Python | 1258ed3b71f7826ec55f2ff9e46a6485df6039bf | b17ad19ccdb1bfe979618af8c98f04c67f38495f | refs/heads/master | 2023-08-19T03:52:16.385548 | 2021-09-23T12:22:05 | 2021-09-23T12:22:05 | 407,837,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # 1부터 n까지의 합을 계산하는 반복 함수와 재귀 함수
def ssum(n):
ret = 0
for i in range(1, n+1):
ret += i
return ret
def recursiveSum(n):
if n == 1:
return 1
return n + recursiveSum(n-1)
print(ssum(10))
print(recursiveSum(10))
| [
"kwr0113@gmail.com"
] | kwr0113@gmail.com |
563f2484acad0c35b453f0173217d3702400dd48 | dcb8f9c5739b00838ffa6bb2f9850e0e6f80312c | /hw1/minh_tran_hw1/minh_tran_task1.py | dbf8c8e8cb6dfd452cc68795d420470fbd89d7b1 | [] | no_license | trademark152/Data_Mining_USC | d56c6b51b523c0a8548e94b638d3155fe189dd4e | 124c17b9c55c3880b4c24815bcf369339f198e2b | refs/heads/master | 2020-09-26T09:31:50.250840 | 2019-12-06T02:30:27 | 2019-12-06T02:30:27 | 226,227,472 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,845 | py | """
Task1: Data Exploration (3 points)
You will explore the dataset, user.json, containing review information for this task, and you need to write
a program to automatically answer the following questions:
"""
## LIBRARIES
import json
from pyspark import SparkContext
import sys
## TO RUN CODE
""""
spark-submit hw1/m... | [
"trademark152@gmail.com"
] | trademark152@gmail.com |
f805b12d7737a2384464edefbddf64219b9fd22a | 926fe08bf24a8335f9cec827b651a7c75dc9c000 | /extract_from_node_results.py | b3a61703210b440e7db9725207b38bb96f2dbb59 | [] | no_license | andycasey/ges-idr4-abundances | 71d9cfa38f5909b21c98626fa75cdda8e100cd97 | c0a74f90b5e45a20ef4b3337692014a2fbbcbfa1 | refs/heads/master | 2021-01-22T09:42:53.145128 | 2015-10-14T22:39:00 | 2015-10-14T22:39:00 | 42,256,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py |
""" Extract OACT results for Li and place them in the line_abundances table """
__author__ = 'Andy Casey <arc@ast.cam.ac.uk>'
import logging
import numpy as np
import release
logger = logging.getLogger("ges")
# We may need to do this many times...
database, remove_existing = ("arc", True)
element, ion, wavelengt... | [
"andycasey@gmail.com"
] | andycasey@gmail.com |
7573a486fe8a2675af898eda3e9751590a91a632 | a9652251346d469d4e6da48ca4e44438f3b6b65d | /neural_decoding/kalman_neural_decoding.py | 190d0d6f668cf144cd31e2548f1dd6c172878bb6 | [] | no_license | weihhh/python3-practice | 201023e214881fb0c08b8dd10e86c47a621b23e5 | 7e2b40b7152ef5bf6fe68264c8b1c0bbbb16c5eb | refs/heads/master | 2021-01-11T02:40:05.087986 | 2018-02-05T15:24:35 | 2018-02-05T15:24:35 | 70,913,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,799 | py | #Import standard packages
import numpy as np
import matplotlib.pyplot as plt
# %matplotlib inline
from scipy import io
from scipy import stats
import pickle
#Import metrics
from metrics import get_R2
from metrics import get_rho
#Import decoder functions
from decoders import KalmanFilterDecoder
#获得原始数据
data_folder=''... | [
"wz591757596@163.com"
] | wz591757596@163.com |
b51213646b02a5741d23ff6c94d22ab6f7e52add | 6550dceb5b2d17dfedf94c4049f63e770c8d7712 | /ffprobe3/ffprobe.py | f9e29250daba998461d685c77f44409a45a53291 | [] | no_license | open-speech-org/openspeechcorpus.com | 03baed28e54f15ece8b8050c501e8df6e641ab44 | e2e612cacab2e0458a44f3729738c5816f57dc8f | refs/heads/master | 2022-12-23T12:32:33.501336 | 2020-11-25T03:27:52 | 2020-11-25T03:27:52 | 171,372,750 | 0 | 1 | null | 2022-12-08T03:28:10 | 2019-02-18T23:42:25 | Python | UTF-8 | Python | false | false | 7,783 | py | """
Python wrapper for ffprobe command line tool. ffprobe must exist in the path.
"""
import os
import sys
import pipes
import platform
import re
import subprocess
from ffprobe3.exceptions import FFProbeError
class FFProbe:
"""
FFProbe wraps the ffprobe command and pulls the data into an object form::
... | [
"ma0@contraslash.com"
] | ma0@contraslash.com |
3fc014bbb8096316c01d9b5024ecbfb3f9fd4c45 | 5f1e12cf84d02bbc4220ed11758752fed7cfd6c7 | /samples/basic/executor/models/cisco-ios-xr/Cisco-IOS-XR-snmp-test-trap-act/nc-execute-xr-snmp-test-trap-act-416-ydk.py | 71a0f1f9882b8624945da7f63b058d9a6bf42c89 | [
"Apache-2.0"
] | permissive | eliwilliams/ydk-py-samples | 6c3b8063848c8718910c7255256f7d3aee456974 | 40aa500e7d7ad05e960fb1552c73dab3adbc08c7 | refs/heads/master | 2021-07-25T01:21:26.442018 | 2017-11-06T17:23:05 | 2017-11-06T17:23:05 | 109,724,992 | 0 | 0 | null | 2017-11-06T17:07:40 | 2017-11-06T17:07:39 | null | UTF-8 | Python | false | false | 2,677 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# 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 applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
3349e2469816e9fe64b77eb914dc2f2d778d5f7f | b3ab2979dd8638b244abdb2dcf8da26d45d7b730 | /test/test_pagination_response_permission_set_response_model.py | ce8a5fe159bc67f84afe67dff0d2b4773ad93151 | [] | no_license | CU-CommunityApps/ct-cloudcheckr-cmx-client | 4b3d9b82c5dfdaf24f8f443526868e971d8d1b15 | 18ac9fd4d6c4ae799c0d21745eaecd783da68c0c | refs/heads/main | 2023-03-03T19:53:57.685925 | 2021-02-09T13:05:07 | 2021-02-09T13:05:07 | 329,308,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # coding: utf-8
"""
CloudCheckr API
CloudCheckr API # noqa: E501
OpenAPI spec version: v1
Contact: support@cloudcheckr.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudcheckr_cmx_client
from cloudcheckr... | [
"pea1@cornell.edu"
] | pea1@cornell.edu |
8b28f3977b55bf2426d6d91b6eebfd7d27177db7 | 9b32771b7d1513ee37bc62dd347675abcfc1bfc9 | /example_snippets/multimenus_snippets/NewSnippets/NumPy/Pretty printing/Formatting functions for specific dtypes/Set formatter for `int` type.py | 43cc777513adf98a89e3dab51b28036320290cf7 | [
"BSD-3-Clause"
] | permissive | listar0810/jupyterlab-snippets-multimenus | 44087ef1aeb030a3074862a337508b57d50072c6 | 477f51cfdbad7409eab45abe53cf774cd70f380c | refs/heads/master | 2022-12-12T18:19:25.221083 | 2020-09-08T01:11:01 | 2020-09-08T01:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | def format_int(x):
return 'int({0})'.format(x)
with printoptions(formatter={'int': format_int}):
print(np.random.randint(-3, 4, 10)) | [
"kptan86@gmail.com"
] | kptan86@gmail.com |
b7c426a31e6b5ddbc89e14288c66694f2ec8c368 | a60e81b51935fb53c0900fecdadba55d86110afe | /python/note/改善python程序的91个建议.py | 96231cef18a927a9f58d3e1b9e81c3ecd2cbf6bd | [] | no_license | FrankieZhen/Lookoop | fab6855f5660467f70dc5024d9aa38213ecf48a7 | 212f8b83d6ac22db1a777f980075d9e12ce521d2 | refs/heads/master | 2020-07-27T08:12:45.887814 | 2019-09-16T11:48:20 | 2019-09-16T11:48:20 | 209,021,915 | 1 | 0 | null | 2019-09-17T10:10:46 | 2019-09-17T10:10:46 | null | UTF-8 | Python | false | false | 1,535 | py | # coding=utf-8
# 2019-1-28
# 改善python程序的91个建议
# %占位符
value = {'name':'yauno', 'sex':'man'}
print('name %(name)s , sex %(sex)s' % value)
# str.format
# ' 与 "的区别
print('"test"')
print("\"test\"")
# 常量的管理
# 12: 不推荐使用type来进行检查
# isinstance(object, classoinfo)
print(isinstance('string', str))
# 13. 涉及除法运算时,尽量先将操作数转换... | [
"33798487+YangXiaoo@users.noreply.github.com"
] | 33798487+YangXiaoo@users.noreply.github.com |
aca8dd05d90354b8c7b9f7084c40e115a9c3fb42 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_jinn.py | 5f214987ef38459b4a3fc545f79b4395f6eb6f08 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py |
#calss header
class _JINN():
def __init__(self,):
self.name = "JINN"
self.definitions = [u'in Arab and Muslim traditional stories, a magical spirit who may appear in the form of a human or an animal and can take control of a person ']
self.parents = []
self.childen = []
self.properties = []
self.jsonda... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f34128088a213795dfa4a912f86cdfc5140eff13 | 929a816fc299959d0f8eb0dd51d064be2abd6b78 | /LintCode/ladder 08 memorized search/必修/683. Word Break III/solution.py | 11811522a165c1860914fd748163d4584a24de2f | [
"MIT"
] | permissive | vincent507cpu/Comprehensive-Algorithm-Solution | 27940da7bc0343921930a2eafbd649da93a5395d | 04e01e49622457f09af2e1133954f043c0c92cb9 | refs/heads/master | 2023-07-20T07:12:15.590313 | 2021-08-23T23:42:17 | 2021-08-23T23:42:17 | 258,644,691 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | class Solution:
"""
@param: : A string
@param: : A set of word
@return: the number of possible sentences.
"""
def wordBreak3(self, s, dict):
# Write your code here
if not s or not dict:
return 0
lower_dict = set()
for piece in dict:
... | [
"vincent507cpu@gmail.com"
] | vincent507cpu@gmail.com |
7911dfbc4c035eaa8f13d0d5a1931adb62c0bb1f | 72357e298521452cfa3d9ca960235e6ddf1dfe46 | /imsize.py | de19438293a2d32fb248522d0e2440e21c16b107 | [] | no_license | pydemo/project-and-sketch | 25b8fbdc1e85773b9aa150d8f63a0e7ced4c1a13 | 10397f3d40d117c15143ce3deb9bc8bf530c2269 | refs/heads/master | 2020-09-01T16:52:08.478915 | 2019-11-29T18:19:11 | 2019-11-29T18:19:11 | 219,009,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | # -*- coding: utf-8 -*-
import struct
import imghdr
def test_jpeg(h, f):
# SOI APP2 + ICC_PROFILE
if h[0:4] == '\xff\xd8\xff\xe2' and h[6:17] == b'ICC_PROFILE':
print "A"
return 'jpeg'
# SOI APP14 + Adobe
if h[0:4] == '\xff\xd8\xff\xee' and h[6:11] == b'Adobe':
return 'jpeg'
... | [
"olek.buzu@gmail.com"
] | olek.buzu@gmail.com |
d5c0f577677ecd87a61b9a3767430c83a25b4e9c | 64cdb9e8fdcde8a71a16ce17cd822441d9533936 | /_baekjoon/1507_궁금한 민호(플로이드워샬).py | 2413850d526ea506a6078831c86eb5db2427d6ec | [] | no_license | heecheol1508/algorithm-problem | fa42769f0f2f2300e4e463c5731e0246d7b7643c | 6849b355e15f8a538c9a071b0783d1789316d29d | refs/heads/main | 2023-07-20T23:46:07.037975 | 2021-08-31T12:47:33 | 2021-08-31T12:47:33 | 302,830,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import sys
sys.stdin = open('input.txt', 'r')
N = int(input())
board = [list(map(int, input().split())) for _ in range(N)]
visit = [[True] * N for _ in range(N)]
flag = True
for k in range(N):
for i in range(N):
if i != k:
for j in range(N):
if j != k and i != j:
... | [
"heecheol1508@gmail.com"
] | heecheol1508@gmail.com |
5f90fc208121793359d9af378f9e0dbd53d87fea | 297d045a587f354b96cf493dff9a2e719739715d | /pysimplehttp/scripts/ps_to_sq.py | 3f77d7130a785960f715c81420767267909b9502 | [
"MIT"
] | permissive | liaojack8/simplehttp | 4805aef2f72dae9e2ce7eeb3f801818b0c66af43 | 1dbdea11276bc21915fc133fd9893a738654c240 | refs/heads/master | 2022-11-29T06:03:33.027824 | 2020-07-18T14:58:04 | 2020-07-18T14:58:04 | 280,678,089 | 0 | 0 | MIT | 2020-07-18T14:55:08 | 2020-07-18T14:55:07 | null | UTF-8 | Python | false | false | 3,792 | py | #!/usr/bin/env python
"""
generic pubsub to simplequeue daemon that takes command line arguments:
--pubsub-url=<http://127.0.0.1:8090/sub>
(multiple) --simplequeue-url=<http://127.0.0.1:6000>
when multiple destination simplequeue arguments are specified, the daemon will
randomly choose one endpoint to write a... | [
"jehiah@gmail.com"
] | jehiah@gmail.com |
b5c10e61e40776f6dadc1d4661b2e717404b230c | 2f6817fc8f6ddb48f5f88c913d8e40b672fc3dbf | /Mining/lec3-4.py | 6d0fc9279955b2a3c15ab6c0cd0159695c4fda73 | [] | no_license | cutz-j/TodayILearned | 320b5774de68a0f4f68fda28a6a8b980097d6ada | 429b24e063283a0d752ccdfbff455abd30ba3859 | refs/heads/master | 2020-03-23T17:34:51.389065 | 2018-11-24T08:49:41 | 2018-11-24T08:49:41 | 141,865,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | from tkinter import *
from tkinter.simpledialog import *
from tkinter.filedialog import *
# 함수선언
def editFile(num):
if num == 1:
value = askinteger('제목', '설명-->', minvalue=1, maxvalue=255)
label1.configure(text=str(value))
def openFile():
fileName = askopenfilename(parent=window, filetypes=(("... | [
"cutz309@gmail.com"
] | cutz309@gmail.com |
dcf2ca8eb4d1386d15d7d71c29f0837616c7b8a3 | dc1d341789a19b0dd8b905538b080149e6cd13ed | /iwmiproject/migrations/0158_yieldplantlevel_crop.py | 252f49c5a654262d3b72ffd24869389f1cbd8651 | [] | no_license | pngimbwa/Data-Collection-Tool | 2629d31742edc311501bd25a2f9728ce7ac97d06 | 6081500d2a1dc2e30af908168cf83a46a6078a0f | refs/heads/master | 2021-01-20T00:01:45.770837 | 2017-04-22T12:31:07 | 2017-04-22T12:31:07 | 89,068,181 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('iwmiproject', '0157_yieldfarmlevel_crop'),
]
operations = [
migrations.AddField(
model_name='yieldplantlevel',
... | [
"pngimbwa6@gmail.com"
] | pngimbwa6@gmail.com |
d5ecabadea34f17640fec743414710537061740d | 8f615c636420f969afaf54fc3bf318028ab5819e | /python_data_wrangling/sast_data_convert.py | d4eda0cff9d49bf38610981f7dd9d61993fbf6ac | [] | no_license | sheltowt/application_security_data_visualizations | a20eff2c8c93b7e03720b6f287b7a1a1f424b351 | f6950d2115d09e9f0e79313d802b9ac873944050 | refs/heads/master | 2022-10-30T04:14:38.495658 | 2020-06-19T16:35:10 | 2020-06-19T16:35:10 | 266,594,130 | 18 | 0 | null | 2020-06-15T18:55:04 | 2020-05-24T17:47:23 | HTML | UTF-8 | Python | false | false | 1,167 | py | import json
with open('../raw_data/appsecco_dvna.json') as json_file:
data = json.load(json_file)
modified_object = {}
modified_object["name"] = "DVNA sast scan"
modified_object["children"] = []
for result in data["runs"][0]["results"]:
new_result = {}
new_result["name"] = result["message"]["text"]
new_result["c... | [
"sheltowt@gmail.com"
] | sheltowt@gmail.com |
52c32b83c0116f75bd3a04d268912c811b5a0e60 | eeec2adfe1ca4e8cf5e7a0be9eaab2497df25861 | /erudit_catalog/checks.py | 0f45121f5d689aa777705d5ced3a2650f458c953 | [
"BSD-3-Clause"
] | permissive | fabiobatalha/erudit-ps-packtools-plugin | 3ecddab7835a25df44cbc00b228f241fae231155 | 29fabd087b8d8406b96d0b7296386f78da34aaeb | refs/heads/master | 2020-03-15T01:28:04.287126 | 2018-11-21T19:28:07 | 2018-11-21T19:28:07 | 131,894,325 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | #coding: utf-8
from __future__ import unicode_literals
import logging
import itertools
import json
import plumber
from packtools.style_errors import StyleError
from packtools.catalogs import catalog
LOGGER = logging.getLogger(__name__)
with open(catalog.ISO3166_CODES) as f:
ISO3166_CODES_SET = set(json.load(f))... | [
"fabiobatalha@gmail.com"
] | fabiobatalha@gmail.com |
a3ce2a229b18dafa49e9ae81174f429d22c71cc6 | a1b7c1357181320b272ef4c72b70d22600a407c1 | /examples/test_get_locale_code.py | 978cee5e42bcf637ac20361309a79c5c225e4623 | [
"MIT"
] | permissive | BarryYBL/SeleniumBase | 5c96e21eaebd45e2f6ac26d5bd563b3ba300e6f6 | e3cb810331183fa003cea8af81057e4136dfd660 | refs/heads/master | 2022-12-04T11:34:20.134294 | 2020-08-28T05:45:24 | 2020-08-28T05:45:24 | 290,998,663 | 1 | 0 | MIT | 2020-08-28T08:52:44 | 2020-08-28T08:52:44 | null | UTF-8 | Python | false | false | 387 | py | from seleniumbase import BaseCase
class LocaleTestClass(BaseCase):
def test_get_locale_code(self):
self.open("data:,")
locale_code = self.get_locale_code()
message = '\nLocale Code = "%s"' % locale_code
print(message)
self.set_messenger_theme(
theme="flat", loc... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
204f1f4fafb9264a0cf66934ec779f4e94f7674c | a09740e643d6277ada23c82d8e87853a1cd1a9e5 | /oProto/omsql/wipdev/bycols_inupd.py | 68d0417689a3a5d61efb19227176666e68519131 | [
"Apache-2.0"
] | permissive | FuckBrains/omEngin | c5fb011887c8b272f9951df3880a879456f202e8 | b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195 | refs/heads/main | 2023-03-20T18:27:53.409976 | 2021-03-14T15:50:11 | 2021-03-14T15:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,740 | py | import pandas as pd
import numpy as np
import os
def drop_cols(df, col2drop = []):
if len(col2drop) > 0:
cols = df.columns.to_list()
ncols = []
for i in range(len(cols)):
match = 0
for j in range(len(col2drop)):
if cols[i] == col2drop[j]:
... | [
"omi.kabirr@gmail.com"
] | omi.kabirr@gmail.com |
65ee2d6385a0bdfe37108f1dcac07c4caeedc45c | bf92a619b9b850678bb691915e45c39cd740fa63 | /examples/work/run_main.py | 1a7dae80a015feb1de2c673cd31a55474f62081c | [] | no_license | jrecuero/jc2cli | a045f1efa431f53351dfac968852fd82e8c963b6 | c97615828880021b3965756aed939e39bac949b6 | refs/heads/master | 2021-05-10T10:16:34.698398 | 2018-11-06T17:43:53 | 2018-11-06T17:43:53 | 118,377,662 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from jc2cli.namespace import Handler
# MAIN = __import__('examples.work.main')
# __import__('examples.work.config')
# __import__('examples.work.execute')
class RunCli(object):
def __init__(self):
__import__('examples.work.main')
# __import__('examples.work.config')
# __import__('example... | [
"jose.recuero@gmail.com"
] | jose.recuero@gmail.com |
453e33e779ceba90beb4a31868d07efe7f5fd23e | aff88e0922ae5c75f18b624cb1c81c263d12f2af | /layout/Calc.py | 5adecf98c6435ee96b79364527e4a428e621c5fd | [] | no_license | TianJin85/Qtwindow | 44f42c8972382bcdbde7bc26a4a7f5121736e0aa | 3af712d8528d825cb3cecd6bc21c8f836232e775 | refs/heads/master | 2020-10-01T23:05:30.271773 | 2020-02-09T14:39:12 | 2020-02-09T14:39:12 | 227,642,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # -*- encoding: utf-8 -*-
"""
@File : Calc.py
@Time : 2020/1/5 15:59
@Author : Tianjin
@Email : tianjincn@163.com
@Software: PyCharm
"""
'''
栅格布局,实现计算器UI
'''
import sys
from PyQt5.QtWidgets import *
class Calc(QWidget):
def __int__(self):
super(Calc, self).__int__()
self.setWindowTit... | [
"307440205@qq.com"
] | 307440205@qq.com |
ea7fe2a8309980eadbd5238e810707e3d19f9d55 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/intersectingDiscs_20200804190524.py | 450fd58ee08624f00420da84936bbe498750bb5c | [] | 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 | 586 | py | def discs(A):
newArr = []
opendiscs = 0
intersections = 0
for i in range(len(A)):
newArr.append((i-A[i]))
newArr.sort()
i = 0
j = 0
while i < len(newArr) and j < len(A):
if i == len(newArr)- 1:
break
if newArr[i]<=A[j]:
opendiscs +... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
6dd8c29a98d12f0bea1db2e80ccf811aded94176 | c92398a728817578850ecf508ec4197afe91a88f | /DemoYield Fun.py | b2e001740a146c35ba1011e91c7382282fbeecef | [] | no_license | HitanshuSoni/Python_practice | 4d0ec0378124da85e364a15a7b94ddbbfe2fc929 | 7a3d0977b218ef76f91517d88518b1c0b68b9528 | refs/heads/main | 2023-04-18T21:55:12.709161 | 2021-05-08T15:39:08 | 2021-05-08T15:39:08 | 365,550,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | def checkyield():
yield 1
yield 2
yield 3
'''return 1
return 2'''
for value in checkyield():
print(value)
| [
"hitanshusoni10@gmail.com"
] | hitanshusoni10@gmail.com |
f31f2e6b0b3bd7e6c5b2de59aad83d0d08c29089 | 077f29021738c3b577c7c3d9ef5851d76e93cbed | /demo/funs/passing_funs.py | a955b2a06551fd66872ba07965f05428360f0019 | [] | no_license | srikanthpragada/PYTHON_10_JULY_2020 | fb410d87260eb290ebcc5ac6a88b6d6b01ee15b5 | b7a586cbcd49934d36facb4dd748c54038838334 | refs/heads/master | 2022-12-05T09:05:33.192365 | 2020-08-26T14:27:09 | 2020-08-26T14:27:09 | 279,319,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # func,value,value
def math_op(oper, n1, n2):
return oper(n1, n2)
def multiply(n1, n2):
return n1 * n2
def power(n1,n2):
return n1 ** n2
print(math_op(multiply, 10, 20))
print(math_op(power, 10, 20))
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
4f765a9facddb729a6c6639b7da5a76717970f85 | e6713c7e72d6950c2e35c836ac88588bc673c19e | /auth_api/api.py | 2367c4cb93b42931b648e5b2e9820f2db88543c8 | [] | no_license | tanjibpa/scrumboard-with-drf | 905175069d065b7174f3485832e6c9e8bcb453da | 3d54b33f91a1719c4373677fe9efc7352b6ce53f | refs/heads/master | 2020-06-25T03:59:06.358201 | 2017-06-13T16:43:55 | 2017-06-13T16:43:55 | 94,235,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from django.contrib.auth import authenticate, login, logout
from django.views.decorators.csrf import csrf_protect
from django.utils.decorators import method_decorator
from rest_framework import views, status
from rest_framework.response import Response
from .serializers import UserSerializer
class LoginView(views.AP... | [
"ikram.tanjib@gmail.com"
] | ikram.tanjib@gmail.com |
194e61356c8666faa3168ed6093752c9ba74d3fc | ebd9c249d446d809abc9a0f3e4593f34922a1b93 | /leetcode/235_lowest_common_ancestor_of_a_binary_search_tree.py | b20699956509fd6d35339669565185cc0d94e6c0 | [] | no_license | jaychsu/algorithm | ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d | 91892fd64281d96b8a9d5c0d57b938c314ae71be | refs/heads/master | 2023-05-11T00:40:39.237813 | 2022-09-14T07:43:12 | 2022-09-14T07:43:12 | 106,277,156 | 143 | 39 | null | 2022-09-14T07:43:13 | 2017-10-09T11:51:48 | Python | UTF-8 | Python | false | false | 617 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def lowestCommonAncestor(self, root, p, q):
"""
:type root: TreeNode
:type p: TreeNode
:... | [
"hi@jaych.su"
] | hi@jaych.su |
bc6fdbc733f95c52d979d6784b735214a3e8dbc3 | 344e2956b4e2a30a8ef7532d951f96d995d1dd1e | /18_mmaction/lib/mmcv/tests/test_image/test_photometric.py | f2e86d450da174e0e5bc8d0b5e362df36a5b7ca6 | [
"Apache-2.0",
"LGPL-3.0-only",
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | karndeepsingh/Monk_Object_Detection | e64199705326e4cd65e4b29946cae210a4ef9649 | 425fa50a3236cb9097389646275da06bf9185f6b | refs/heads/master | 2022-12-22T18:26:53.933397 | 2020-09-28T12:49:50 | 2020-09-28T12:49:50 | 299,307,843 | 1 | 1 | Apache-2.0 | 2020-09-28T12:52:18 | 2020-09-28T12:52:17 | null | UTF-8 | Python | false | false | 3,235 | py | # Copyright (c) Open-MMLab. All rights reserved.
import os.path as osp
import cv2
import numpy as np
from numpy.testing import assert_array_equal
import mmcv
class TestPhotometric:
@classmethod
def setup_class(cls):
# the test img resolution is 400x300
cls.img_path = osp.join(osp.dirname(__... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
22ed3addbe4bfa6066226c177ab15e87da4ccc4c | 4a4579254118db40fb008439d18ad8c573e8fc1a | /devel/lib/python2.7/dist-packages/jsk_gui_msgs/msg/_TouchEvent.py | e602a239330814d3e80962f75199c5cbbf48a8d4 | [] | no_license | amilearning/AD_mpc_ws | 86ff6ef9e61c6cc5aae6e12f20c2c875b1930d41 | 1fc2d385f281e00c16aff688948f7296e02cbd3a | refs/heads/master | 2023-06-24T13:54:59.759921 | 2021-07-16T01:08:52 | 2021-07-16T01:08:52 | 386,465,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from jsk_gui_msgs/TouchEvent.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class TouchEvent(genpy.Message):
_md5sum = "f074642ed1ad51ea5afc186cab8aaca1"... | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
c9a1e1f387c7a2cb2ba7b89988bfb22731bdb725 | 68e5e2c9a7e9372f536edf3d99847067eb734e75 | /05-奠定项目基础-Model/typeidea/typeidea/comment/migrations/0001_initial.py | b025fc6f66017f5dd054dcd8948eed32546a206b | [] | no_license | gy0109/Django-enterprise-development-logs--huyang | f04d21df6d45f5d2f226760d35e38042f74a7ea8 | ab4505f8cdaf0c1f9e3635591cd74645a374a73f | refs/heads/master | 2020-05-17T05:24:51.602859 | 2019-05-08T03:42:13 | 2019-05-08T03:42:13 | 183,534,431 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | # Generated by Django 2.1.7 on 2019-04-27 15:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
... | [
"1974326896@qq.com"
] | 1974326896@qq.com |
15a8de32a49edae93fb23dd1983e2c341bfda6a0 | 531a5c09ed774dca6f85f3c96827ff4d9f8fc3be | /AutotestWebD/apps/webportal/scripts/emailcopy.py | c6e55aa3e0f74b03e545142c9e259a3103d5155d | [
"MIT"
] | permissive | xiaochaom/sosotest | a98db41088d9411aa7d2723894f5bdc60bfbbd52 | a3a5ce67c3dc302cf4bca906496ec6ee26b42c33 | refs/heads/master | 2020-07-06T09:31:39.598616 | 2020-06-23T07:51:00 | 2020-06-23T07:51:00 | 202,971,957 | 0 | 0 | MIT | 2019-08-18T07:12:52 | 2019-08-18T07:12:51 | null | UTF-8 | Python | false | false | 935 | py | import django
import sys,os
rootpath = os.path.dirname(os.path.realpath(__file__)).replace("\\","/")
rootpath = rootpath.split("/apps")[0]
# print(rootpath)
syspath=sys.path
sys.path=[]
sys.path.append(rootpath) #指定搜索路径绝对目录
sys.path.extend([rootpath+i for i in os.listdir(rootpath) if i[0]!="."])#将工程目录下的一级目录添加到python搜索路... | [
"wangjilianglong@163.com"
] | wangjilianglong@163.com |
ac170695f08d24863f873bcc35ea080070054620 | 1b1b074cca3a8c9f5a6d0630cd40d56a1d8b7468 | /motorista/migrations/0006_auto_20170526_1645.py | 7814af59c9ad678721f1bcc2b9b4edb020d7c863 | [] | no_license | DiegoDigo/buScool | e392f62e3f43a0a892f14608447329d2b2d8b50a | fca579c0951dfedfabce79b52031804c9b6373ed | refs/heads/master | 2021-01-21T07:00:39.043740 | 2017-05-26T20:19:24 | 2017-05-26T20:19:24 | 91,592,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-26 19:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('motorista', '0005_motorista_descricao'),
]
operations = [
migrations.AddFie... | [
"di3g0d0ming05@gmail.com"
] | di3g0d0ming05@gmail.com |
29c3ad28b41ef7b1b7689b86a33f01448b53bf57 | ef42fa903820055b9b0a8b4ebb1863a16d386171 | /config/urls.py | 788b8ccbf55a2bf64fe274419f089478f6da357b | [] | no_license | sinjorjob/django-simple-capture-inquery-form | 2537c8e03bc2c0118f772b69a59866ffb34d7cac | 8bd2900a6bdf97b97ddca7b7240b42f478e14884 | refs/heads/master | 2023-07-02T14:40:43.840669 | 2021-08-10T21:24:24 | 2021-08-10T21:24:24 | 394,784,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('captcha/', include('captcha.urls')),
path('', include('contact.urls')),
]
| [
"sinforjob@gmail.com"
] | sinforjob@gmail.com |
60d3de32df2546f2b7d1a59f47cd31ade136afe5 | 29a580900743a35c0d870c75b02decf3bfd24513 | /src/windows_sniffer_example.py | 6ef3b8a9447679386fb83b1fc2311d7238477496 | [] | no_license | rduvalwa5/PythonNetworking | 6695da9552beb62c3af0711a14c68e52fd412b12 | 52340292e4fbe0f628727838cabdf647c0a62e07 | refs/heads/master | 2021-01-19T17:47:31.589447 | 2019-07-11T06:02:25 | 2019-07-11T06:02:25 | 31,050,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | '''
Created on Nov 26, 2018
https://docs.python.org/3.0/library/ssl.html
@author: rduvalwa2
OSXAir:src rduvalwa2$ ls
Asyncio echo_client.py simpleServer.py
PyNet echo_server.py windows_sniffer_example.py
PyProgramming_Chap5 simpleClient.py
OSXAir:src rduvalwa2... | [
"rduvalwa5@hotmail.com"
] | rduvalwa5@hotmail.com |
efac4b3cf729f3ef140268b15ed0ff26865674c9 | f71deab2aabb43128d42d6a9e7d8ccd74740c7dd | /binance/handlers/handlers.py | a39b12896cc0df084fd6dc9cb4df788b42a1e9b1 | [] | no_license | kp-forks/python-binance-sdk | a1d3740d39f6b7b03bf7dc2ba81170de71967020 | 7e1962fe28226c69a5789c2a6f9eba9552f7b051 | refs/heads/master | 2023-03-26T22:43:04.951187 | 2021-03-25T07:33:46 | 2021-03-25T07:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | import traceback
from datetime import datetime
import sys
from typing import TextIO
from binance.common.constants import (
STREAM_TYPE_MAP,
STREAM_OHLC_MAP
)
from binance.common.types import (
DictPayload,
ListPayload
)
from .base import Handler
class HandlerExceptionHandlerBase(Handler):
def r... | [
"i+github@kael.me"
] | i+github@kael.me |
bca560451b0408d76f387dc12b62152b768ac6ba | 3db40bfa5c9e686293aa7f0540aa392be2e99a3b | /__init__.py | 7e361a5cb12d48e18e7f290b9678075d4a2cd44a | [] | no_license | OpenVoiceOS/tskill-ocp-cps | 0926a21f653dfc151ecd1e87f34dfaa95d3157f2 | 216fd7096f090e20ff1dc30846f61de66d8e616f | refs/heads/master | 2023-09-03T15:06:04.577257 | 2021-10-21T16:53:30 | 2021-10-21T16:53:30 | 419,805,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | from mycroft import intent_file_handler
from mycroft.skills.common_play_skill import CommonPlaySkill, CPSMatchLevel
import random
from mycroft.util.parse import match_one
track_dict = {
'bomb jack': 'http://remix.kwed.org/files/RKOfiles/Chronblom%20-%20Bomb%20Jack%20subtune%206%20(violin%20version).mp3',
'dru... | [
"jarbasai@mailfence.com"
] | jarbasai@mailfence.com |
8a626e8d7d80f256f5efeb0b52ebc5927bc653a7 | c6d389f085c683f33cc0d0ab6497b3f042f7c905 | /vector.py | 3ee0da0ab4351f22b2d671407b21f41f284307f2 | [] | no_license | irhadSaric/computer-geometry | 0d23fbafbedb18b22df30cc8071f4103237eef2d | 25a73c756472896c316d685ca6792c8c94f31361 | refs/heads/master | 2020-04-04T08:01:38.501815 | 2019-02-26T20:05:08 | 2019-02-26T20:05:08 | 155,768,457 | 0 | 0 | null | 2019-02-26T20:10:33 | 2018-11-01T19:56:17 | Python | UTF-8 | Python | false | false | 3,160 | py | from Point import *
class Vector:
def __init__(self, head: 'Point', tail: 'Point'):
self.head = head
self.tail = tail
self.currentPosition = head.y
def changeCurrentPosition(self, value):
self.currentPosition = value
def __lt__(self, other: 'Vector'):
if self.head.... | [
"irhad.saric@hotmail.com"
] | irhad.saric@hotmail.com |
f9815346cd1953430a86b298cf50c513fed4f963 | 5330918e825f8d373d3907962ba28215182389c3 | /RecoTracker/RingESSource/python/RingESSourceTIFTIBTOB_cff.py | 007f2f6354f449c09d356f06e54b30988dd8d96e | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 349 | py | import FWCore.ParameterSet.Config as cms
# geometry
# tracker geometry
# tracker numbering
import copy
from RecoTracker.RingESSource.RingESSource_cfi import *
# rings esproducer
ringsTIFTIBTOB = copy.deepcopy(rings)
ringsTIFTIBTOB.InputFileName = 'RecoTracker/RingESSource/data/rings_tiftibtob-0004.dat'
ringsTIFTIBTOB.... | [
"sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch"
] | sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch |
41134729528c1d14ae99ed8d555dec4c20966af9 | cfb6923223bd5b2cad56ece404f74fbb6889837b | /TAPI_RI/funcs_TapiNotification/context_NotifsubscriptionUuid_NotificationNotification_UuidAdditionalinfoImpl.py | a0dbbf54c5e02c9551ac997190cb2f5fc644be56 | [
"Apache-2.0"
] | permissive | XingZhao-CATR/Snowmass-ONFOpenTransport | 27206bd84ff8d9ea2ec7b8ee25a9085b9c96af6d | c5807944bb1333a8ed83d6beea3e55922d006495 | refs/heads/develop | 2021-01-13T16:59:27.016238 | 2016-12-21T13:19:17 | 2016-12-21T13:19:17 | 77,099,371 | 1 | 0 | null | 2016-12-22T01:29:16 | 2016-12-22T01:29:16 | null | UTF-8 | Python | false | false | 690 | py | import os.path, sys
sys.path.append(os.path.join('/'.join(os.path.dirname(os.path.realpath(__file__)).split('/')[:-1])))
import backend.backend as be
class Context_NotifsubscriptionUuid_NotificationNotification_UuidAdditionalinfoImpl:
@classmethod
def get(cls, uuid, notification_uuid):
print 'handlin... | [
"ricard.vilalta@cttc.es"
] | ricard.vilalta@cttc.es |
b2dc3ba20396023b2dfbc243d1019fe2d64a8aed | e987cd566edc75997f9b02377514d4f3a0dba12c | /sys/src/Python/glue/GlueDoc.py | d232ba9d1930437ecefe845450be4cea57ffe4bc | [] | no_license | 7u83/maxdb-buildtools | f942adff2cd55d0a046b6ef3e18f6645b011a26e | ce9a56943f6195d6755e983035aa96cbe95e6cb2 | refs/heads/master | 2020-05-04T18:23:30.849371 | 2015-02-15T19:25:49 | 2015-02-15T19:25:49 | 30,428,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py |
#
# ========== licence begin LGPL
# Copyright (C) 2002 SAP AG
#
# This library 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 Software Foundation; either
# version 2.1 of the License, or (at your option)... | [
"7u83@mail.ru"
] | 7u83@mail.ru |
461e3e4738dde29dad72d1244aac00aa59a41a84 | 4ba29d0e50d0af604231834b099faa35f2cb369f | /task.py | 8134f928af0feb5ec687a03e666609b86200749f | [] | no_license | boxabhi/task | 8a10b90c429c3e3bdd1d86a5a7e8bfb97653b1ec | 242b7c325821941a95962bdfce384bb4519861fe | refs/heads/main | 2023-04-14T11:13:13.381423 | 2021-04-27T05:48:41 | 2021-04-27T05:48:41 | 361,995,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py |
def checkout_time_for_customers(customers,cashregisters:int):
if cashregisters == 1:
return sum(customers)
elif len(customers) <= cashregisters:
return max(customers)
registers = {}
for i in range(cashregisters):
registers[i] = customers.pop(0)
total_time_taken = 0
wh... | [
"abhijeetg40@gmail.com"
] | abhijeetg40@gmail.com |
e5006a48e87f2df9244a3b3122b5a6df5ffdd88a | 8c96b3a657cfb1cd360b469dac564af58a946199 | /repo/migrations/0001_initial.py | 9a2ccef5ac67f632900fb51ac16ffd866142fa31 | [] | no_license | nc415/ub40 | db3de90533c2adcb997f1ffa57a3099b1905a331 | a3642aad555d355dc8bfd29a3a34bfd6e7507a43 | refs/heads/master | 2021-05-10T18:49:52.746856 | 2018-01-19T14:28:38 | 2018-01-19T14:28:38 | 118,134,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-01-15 07:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BU',
... | [
"njcollins@live.co.uk"
] | njcollins@live.co.uk |
d20980431d2ee44f070b5a9c1c96fb17d2e08daa | 7c16a9f999f966060c064ae5bd4bddaf8f4e1dd0 | /factorialkabaap.py | b7d7d4c960d665df5099436437cc7c666ee6b215 | [] | no_license | sbd2309/Adv.Python | fd5ed698b14c75484903006da7753a155cf11b47 | f7ef906cd78114643ffaaaaca6d4cb0ccfb34f62 | refs/heads/master | 2021-10-25T01:48:29.420102 | 2021-10-17T06:20:11 | 2021-10-17T06:20:11 | 232,631,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | def factorialbaap(f,p):
n=1
for i in range (f,0,-1):
n=n*i
#print(n)
x=p
flag=0
ans=0
while 1==1:
for i in range (1,1000,1):
x=p**i
if n%x==0:
ans=i
elif x>n:
flag=1
break
break
i... | [
"noreply@github.com"
] | sbd2309.noreply@github.com |
c264903b770885106ba842f139ebd7276582f48c | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/iterators/iterator.py | af8ec00738a77944aec8db10c66ae4989a13a74a | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 237 | py | class Counter():
def __init__(self):
self.count = 0
def __iter__(self):
return self
def __next__(self):
self.count += 1
return self.count
for c in Counter():
print(c)
if c > 10:
break
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
3cf933e63768f3782c4288670a9dbd91e6322762 | e267c91f23055397201c3d9c23d7583b269d51b8 | /backend/pugorugh/tests/test_models.py | 8dc2afd1f43216ec105938d91567b1737188eab6 | [] | no_license | mcintoshsg/pug_or_ugh_v1 | 8678213b4b4ea09a70f369aa08002ff4a8194a29 | 3e735cd840ffc5a85497eab48518800f0757d9f3 | refs/heads/master | 2020-03-19T15:26:41.152968 | 2018-06-14T01:30:49 | 2018-06-14T01:30:49 | 136,670,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,032 | py | from django.contrib.auth.models import User
from django.test import TestCase
from pugorugh.models import Dog, UserDog, UserPref
# 2. Test get all dogs
# 3. Test get single dog
# 4. Test delete single dog
# 5. Test update single dog
# 6. Test create user preferences
# 7. Test get user preferences
# 8. Test update user... | [
"s.g.mcintosh@gmail.com"
] | s.g.mcintosh@gmail.com |
edd7051f3b24b7ae5b7bbd28ade6fb8b9621ccf9 | e5eec1428da1d24d3e9b86f5723c51cd2ca636cd | /DFS-BFS/백준/골드/신기한 소수_dfs.py | 118ff0683648aeac2cd16c566aebdc946eedd153 | [] | no_license | jamwomsoo/Algorithm_prac | 3c36c381f59277721517d331a8f1640399d80c1d | 8393f3cc2f950214c47f3cf0b2c1271791f115d0 | refs/heads/master | 2023-06-09T06:49:14.739255 | 2021-06-18T06:41:01 | 2021-06-18T06:41:01 | 325,227,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py |
n = int(input())
prime = [2,3,5,7]
def isprime(num):
if num<2: return False
for i in range(2,num):
if num%i==0: return False
return True
def dfs(first,num):
if num == 0: print(first)
for i in range(1,10,2):
tmp = first*10 + i
if isprime(tmp): dfs(tmp,num-1)
for i in ran... | [
"41579282+jamwomsoo@users.noreply.github.com"
] | 41579282+jamwomsoo@users.noreply.github.com |
fda5619a7e5ab87fb558f09dcbc1753b0164f43d | 1f177b5e7bdaca49076c6ff806f5e2be9a86e834 | /database/orm/models.py | d75da518cbf97101ca5fe3648930f63c92200bf2 | [] | no_license | silverlyjoo/TIL | 9e19ba407a9dc82c231e66e352f1c7783e767782 | 98a139770a6d19598d787674bcf20d2fe744ced0 | refs/heads/master | 2021-08-17T02:10:35.101212 | 2019-08-26T08:21:32 | 2019-08-26T08:21:32 | 162,099,046 | 6 | 1 | null | 2021-06-10T21:20:36 | 2018-12-17T08:32:39 | Jupyter Notebook | UTF-8 | Python | false | false | 393 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
# Table 만들기
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)
def ... | [
"silverlyjoo@gmail.com"
] | silverlyjoo@gmail.com |
d54e532e6ca44bc53831b5abdcf003a2c8825d08 | 73db66a771cbef43abf1fefc7e0d210001ec2b4a | /example/example/spiders/book_spider.py | 49c774a8c963ad55285e8c1f814908dc49c7ee0e | [] | no_license | tianrking/Scrapy_Demo | 52008c094d4858383a61c2fd03ba3aa0dddcb3b9 | 9c621d2e1175aac5cfff0f42fc7667be6f46c9c1 | refs/heads/master | 2020-12-14T21:18:33.356797 | 2020-02-03T08:24:48 | 2020-02-03T08:24:48 | 234,871,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | import scrapy
class BookSpider(scrapy.Spider):
name="books"
start_urls=["https://ncov.dxy.cn/ncovh5/view/pneumonia"]
#start_urls=["http://books.toscrape.com/"]
def parse(self,response):
#for book in response.css('article.product_pod'):
#for book in response.xpath('//article[@class="... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c786245e6f92c1f9c62b1acb26e39a9ac9f11ac1 | fafa39d9eda46f5ee0d3ac7bf199237e7a748931 | /API/course/urls.py | 1c02cf1d5389151843b1392e818592f06517b2a3 | [
"MIT"
] | permissive | kasimbozdag/SWE_573 | bfb137b6db94619d76082ea3884036d64cfe934d | 4bce24f98fe6980b1f2c83196b8454b56118186b | refs/heads/master | 2022-02-18T11:42:04.363376 | 2019-05-29T09:56:19 | 2019-05-29T09:56:19 | 171,244,989 | 0 | 0 | MIT | 2022-02-10T10:36:38 | 2019-02-18T08:35:15 | JavaScript | UTF-8 | Python | false | false | 1,259 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^create_course', views.CourseCreateAPIView.as_view(), name="create-course"),
url(r'^list', views.CourseListAPIView.as_view(), name="courses"),
url(r'^my', views.TeacherCoursesAPIView.as_view(), name="my-courses"),
url(r'^(?P<pk... | [
"bozdag80@yahoo.com"
] | bozdag80@yahoo.com |
401fce8967d656ccb95f7f42b57e3d4814b4d9c3 | aae551baa369fda031f363c2afbdf1984467f16d | /Machine_Learning/Contest/Code/gaussian_process.py | 879a09d88af6d3a713ec7d9b52d8ab5d61a59578 | [] | no_license | ameet-1997/Course_Assignments | 37f7d4115baec383ccf029772efcf9c33beb2a23 | 629e9d5cfc6fa6cf37a96c5fcc33bc669cbdc59d | refs/heads/master | 2021-05-16T16:23:32.731296 | 2018-02-03T05:57:01 | 2018-02-03T05:57:01 | 119,939,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | import pandas as pd
import numpy as np
from sklearn.preprocessing import Imputer
from sklearn.decomposition import PCA
from sklearn.model_selection import train_test_split
from sklearn.metrics import f1_score
from sklearn.utils import shuffle
import time
from sklearn.svm import SVC
from sklearn.ensemble import BaggingC... | [
"ameetsd97@gmail.com"
] | ameetsd97@gmail.com |
12631fa3eb7b47872dab382bbdbf156c15689b08 | 1215102b7853653e241e6dfcfc88a0a260aaf3dc | /hyperhyper/pmi.py | f0a385d3a7982cbe0f5086463485244ff486d582 | [
"BSD-2-Clause"
] | permissive | jfilter/hyperhyper | 81cf09763f1b1bebe8b581d4e60a53295babcd77 | 30983a82b1db037408de56bdddde9a5a9508c656 | refs/heads/master | 2023-01-02T00:24:59.259407 | 2020-10-25T21:46:14 | 2020-10-25T21:46:14 | 189,021,107 | 14 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | """
implements PMI matrix (Pointwise mutual information)
See: https://en.wikipedia.org/wiki/Pointwise_mutual_information
"""
import heapq
import numpy as np
from gensim import matutils
from scipy.sparse import csr_matrix, dok_matrix
def calc_pmi(counts, cds):
"""
Calculates e^PMI; PMI without the log().
... | [
"hi@jfilter.de"
] | hi@jfilter.de |
4086e3b1a38b44ca64c3c26ab771c4058a470927 | c2bdcd5aec95d5c4ac4322f166c2ef9b2b8992f9 | /kurstag_8/loesungen_8/Kreditkarte_Loesung2.py | 68fa57d69d26630f26eb934afd6fa936dafcb8d2 | [] | no_license | softborg/Python_HWZ_Start | 4437c5d8676301db8f4c42b75c98f0cc91320012 | 6361647113365df66e3ad84a0d1d1b563137ebbd | refs/heads/master | 2022-07-21T16:27:30.333598 | 2022-07-12T12:08:37 | 2022-07-12T12:08:37 | 252,724,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # coding=utf8
# Aufgabe 2 - Kreditkarte
# 1. erstellen sie folgende Klassen 'Kreditkarte', 'Visa' und 'Mastercard
# 2. beim Instanziieren soll die Kartennummer mitgegeben werden, die Kartennummer ist public
# 3. Die Klassen 'Visa' und 'Mastercard' erben von 'Kreditkarte' und haben jeweils einen eignen Initalisierung
#... | [
"stefan.berger@softborg.com"
] | stefan.berger@softborg.com |
31fa03847837f428a42b58c029ab3b2371f78651 | 02c6b39399c1cfb434ad718c90bed3d8e6310ed0 | /training/ppo/tune/tune_train_PPO_car.py | dc4022a6f9ce60ae09adfcb96cc19810c33bb75c | [] | no_license | phate09/SafeDRL | 09b8924fa91aa43cf543ea5727ebe4cc8e13c0a5 | 3d4278eaaabb046a90fc1cebd1b5862d63dc5894 | refs/heads/master | 2022-09-17T05:12:28.529329 | 2022-08-29T08:21:32 | 2022-08-29T08:21:32 | 204,663,981 | 8 | 3 | null | 2021-12-02T14:13:46 | 2019-08-27T09:07:04 | Python | UTF-8 | Python | false | false | 3,401 | py | import random
from datetime import datetime
import numpy as np
import ray
from gym.vector.utils import spaces
from ray import tune
from ray.rllib.models import ModelCatalog
from ray.rllib.models.torch.fcnet import FullyConnectedNetwork as TorchFC
from ray.rllib.models.torch.torch_modelv2 import TorchModelV2
from ray.r... | [
"phate09@hotmail.it"
] | phate09@hotmail.it |
5ca47a8f2ebd168cadb146b40760ae74bf5b65dd | a913684fe348945c2b79786115fd392945cfcf72 | /user/urls.py | 314e6f4677e2c1433fef3c06f975cb168ecb7b44 | [] | no_license | LukaszMalucha/docker-django | 0332c4153d50add049db36479079ace2c664bea2 | 4b34f835b7ea3f8f9baa9956943b4ba9111f39fa | refs/heads/master | 2023-02-03T05:56:10.059009 | 2020-12-19T16:55:06 | 2020-12-19T16:55:06 | 322,545,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from django.urls import path
from user import views
app_name = 'user'
urlpatterns = [
path("create/", views.CreateUserView.as_view(), name="create"),
path("authenticate/", views.CreateTokenView.as_view(), name="authenticate"),
path("my-account/", views.ManageUserView.as_view(), name="my-account"),
pa... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
bd52bfd00c8d7b8e6a83dda80689159e389c7d39 | 3a57805be67d568bc516cc821deb3d912dbf87ad | /diffscuss/walker.py | feabedbadb58dae353f35514507b42580832274f | [
"MIT"
] | permissive | tomheon/diffscuss | 8e0ee331cc37dd7a3607e2a434fb59ea9ca69d3f | 53f2d001bd3a5cb80c6ada16b4e570afd1989a09 | refs/heads/master | 2023-08-15T23:05:59.277846 | 2021-06-17T21:19:39 | 2021-06-17T21:19:39 | 8,643,720 | 39 | 3 | MIT | 2018-03-21T16:33:17 | 2013-03-08T05:18:43 | Python | UTF-8 | Python | false | false | 4,486 | py | from collections import namedtuple
import re
class BadNestingException(Exception):
pass
class MissingAuthorException(Exception):
pass
class EmptyCommentException(Exception):
pass
class CommentInHeaderException(Exception):
pass
DIFF_HEADER = 'DIFF_HEADER'
DIFF = 'DIFF'
COMMENT_HEADER = 'COMMENT... | [
"tomheon@gmail.com"
] | tomheon@gmail.com |
031d3b14a2ac7dac2dfe0897acea866b23cce203 | 78d7d7aeb78a8cea6d0e10b89fc4aa6c46c95227 | /1910.py | bb86d16343515a3463d889f65c184f6a9f3e47a0 | [] | no_license | GenryEden/kpolyakovName | 97db13ef93061a8c2afc6cc5acd91337f79063f1 | c5d7f631ae7ec8770e56170574b82ea2b7d8a4d9 | refs/heads/master | 2023-05-23T21:22:51.983756 | 2021-06-21T08:56:49 | 2021-06-21T08:56:49 | 350,466,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | def perebor(alphabet, length):
if length == 0:
yield ''
else:
for letter in alphabet:
for word in perebor(alphabet, length-1):
yield letter+word
def check(word):
toCount = 'РСТМ'
cnt = 0
for s in word:
if s in toCount:
cnt += 1
return cnt >= 3
ans = set()
for word in perebor('РУСТАМ', 6):
if ... | [
"a926788@gmail.com"
] | a926788@gmail.com |
e99da711b9b45b9235b594bcc9117c07bc1d1f4a | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_OSPF/test_c140802.py | 1986465490ec5bcd8e0a0201dc5ae7f3c2d1a163 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py |
import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def_ospf import *
from page_obj.scg.scg_def_vlan_interface import *
from page_obj.scg.scg_def_bridge import *
from page_obj.common.rail import *
from page_ob... | [
"15501866985@163.com"
] | 15501866985@163.com |
8942552852c2ba4597d1c70ce5a8adf7e957cec7 | 801510e45d9aebe5c5b8b09a3ce4453a3a11a3ca | /django/oneTable/appOneTable/models.py | 13b38b271e63473033021ebe53d6d188f7645474 | [] | no_license | michelleshan/coding_dojo_python_course | 5581ebca0a645ba7231a2da2d2d64d6c3735bfc4 | e20e8195950004ef0aa09e6b0f84e7f05bd355e8 | refs/heads/master | 2022-11-21T01:34:54.309175 | 2020-07-16T03:29:45 | 2020-07-16T03:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from django.db import models
# ONE Dungeon has MANY prisoners
# ONE Prisoner has ONE Dungeon
# ONE to MANY
# ONE Dungeon has MANY dislikes
# ONE Prisoner has MANY dislikes
# MANY to MANY
class Dungeon(models.Model):
name = models.TextField()
num_people_inside = models.IntegerField()
location = models.Tex... | [
"michellehan@Michelles-Air.attlocal.net"
] | michellehan@Michelles-Air.attlocal.net |
70bd5e42cf5abc0bac19ba712cb49c33a704467a | 0420ce2fc8799d5fbd6e96313e6716f5e2ef825b | /bagogold/bagogold/migrations/0002_auto_20150626_2230.py | f994aba4d8be4dc46dd336f174e53b2b592b387d | [] | no_license | nizbel/bag-of-gold | 1da10acef4d73b8426ca3329b37a28c5f9587af4 | a3fd89eb47d33d546bd91947f033d71218c8700f | refs/heads/master | 2022-11-13T01:07:26.934813 | 2020-01-14T16:00:16 | 2020-01-14T16:00:16 | 275,689,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('bagogold', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Operacao',
fields=[
... | [
"kingbowserii@gmail.com"
] | kingbowserii@gmail.com |
869a4c69c3206641fbf875e3c5dda79d6c2c898b | fde8c89b352076f95cc16e589b1baf18f7befb51 | /gabbi/json_parser.py | 430a64a64e3cfb16f9e4c2f2260c5414d4e57408 | [] | no_license | 571451370/devstack_mitaka | b11145256deab817bcdf60a01a67bb6b2f9ddb52 | 1bdd3f2598f91c1446b85c5b6def7784a2f6ab02 | refs/heads/master | 2020-08-26T12:53:07.482514 | 2017-04-12T01:32:55 | 2017-04-12T01:32:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | 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... | [
"tony.pig@gmail.com"
] | tony.pig@gmail.com |
0c32e339b8ce62f268067fe422d2a0647eb1a8f6 | 160f08e768d7271f9522ad2597ac4ee79c04477a | /src/c3nav/editor/migrations/0007_auto_20170629_1327.py | b6eef0ff11322c72847b632eda0ad004cbc53e55 | [
"Apache-2.0"
] | permissive | c3nav/c3nav | 6254724dfc8589ee03c6028577befd7c65b05857 | 1a4ef5caa06ddacc8d9370b5adcee248fd4f55f7 | refs/heads/main | 2023-08-04T08:36:18.431458 | 2023-07-24T09:57:18 | 2023-07-24T09:57:18 | 56,852,994 | 140 | 47 | Apache-2.0 | 2023-07-05T22:55:27 | 2016-04-22T12:13:51 | Python | UTF-8 | Python | false | false | 686 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-29 13:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('editor', '0006_auto_20170629_1222'),
]
operations = [
migrations.AddField(
... | [
"laura@codingcatgirl.de"
] | laura@codingcatgirl.de |
f7d836cffddca933e0110c1cf6abb4867b2437a0 | a140b45f9f16b74353d15ed573ea765b3fef046d | /algorithms/leet.0703.src.1.py | b36a1c7529c8b932d297432e523a94f045ad3ef2 | [] | no_license | fish-ball/leetcode | 258d4b37f05560d914bcd29f7c54820deeadb33f | 3dfd8f73c65d43cc2766c20700a619141acb927b | refs/heads/master | 2023-05-28T18:32:43.638675 | 2023-05-20T04:25:23 | 2023-05-20T04:25:23 | 31,968,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | import heapq
class KthLargest:
def __init__(self, k: int, nums: List[int]):
self.k = k
heapq.heapify(nums)
self.nums = nums
def add(self, val: int) -> int:
heapq.heappush(self.nums, val)
while len(self.nums) > self.k:
heapq.heappop(self.nums)
return... | [
"noreply@github.com"
] | fish-ball.noreply@github.com |
a7b2ab6cad42ec68d2b70750712b01acfc831215 | 11dbcc94972a370d92b190cc071826d90ae3ff84 | /conjugation/migrations/0014_auto_20180412_1343.py | 3813e57c26684e4265033d31da78c4628acbf6c0 | [
"Apache-2.0"
] | permissive | 5CORNERS/www.le-francais.ru | ef99b401c24eb7a2b84c04bdf638fc7460e05d81 | ab1a77f99a53b4b66a1c4961c335a288ae38b40d | refs/heads/master | 2023-09-01T15:59:46.534050 | 2023-03-14T15:18:45 | 2023-03-14T15:18:45 | 10,008,050 | 5 | 2 | Apache-2.0 | 2023-08-19T19:17:19 | 2013-05-12T02:06:15 | Python | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-04-12 10:43
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('conjugation', '0013_auto_20180412_1321'),
]
operations = [
migrations.RenameField(
... | [
"anton.dumov@gmail.com"
] | anton.dumov@gmail.com |
4a4ea8d341833f55cde5f4b145d6add741371c2b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02788/s685748566.py | 41028a13b217903ab98ffe4b1a1224e7edb5ce04 | [] | 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 | 662 | py | import math
from bisect import bisect_right
n, d, a = map(int, input().split())
x_list = []
max_x = 0
for _ in range(n):
x, h = map(int, input().split())
x -= 1
x_list.append([x, h])
max_x = max(max_x, x)
x_list.sort()
xx = [x[0] for x in x_list]
hh = [x[1] for x in x_list]
ans = 0
accum = [0 for _ in ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7c5ab14f132e8abc3055cf0b989fb0c5a14bba46 | 926b4949f31b99e68e07fdc5c181becf90870e26 | /BioCrowd/apps/login/forms.py | 04860331c93eb7eb4fb2c786d72126591d52af87 | [] | no_license | bxm156/BioCrowd | a563728212d712bc4bfd2cd4b0204789a0a8cc7b | de407fc1640cccbc5354de0dfeb3586fec792899 | refs/heads/master | 2021-01-13T02:14:14.844716 | 2013-05-15T01:15:04 | 2013-05-15T01:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | from django.contrib.auth.forms import AuthenticationForm
from django import forms
from crispy_forms.layout import Submit, Layout, Fieldset, Field
from crispy_forms.bootstrap import FormActions
from crispy_forms.helper import FormHelper
class CrispyAuthenticationForm(AuthenticationForm):
username = forms.CharField... | [
"bxm156@case.edu"
] | bxm156@case.edu |
c383e7a60082d7a8dadc8d9296c4db641dfa7a47 | 307d3837d31f9e3728af2b62ca51ebf63fe6ec6b | /hall_of_fame/kimdonghun/[BOJ]2775_IWillBeAWomenPresident.py | e10e3178d5f2338e9e890aeb876d3a082e2d1843 | [] | no_license | ellynhan/challenge100-codingtest-study | 905043497d154b8a7333ca536e536d013f6e7454 | bcdc6d04f13b12ba80b42e066f9d244d7c2cc698 | refs/heads/master | 2023-09-01T14:10:13.481013 | 2023-08-27T14:38:52 | 2023-08-27T14:38:52 | 401,561,230 | 162 | 176 | null | 2023-09-09T14:56:25 | 2021-08-31T03:30:36 | C++ | UTF-8 | Python | false | false | 413 | py | import sys
import math
T = int(sys.stdin.readline())
for i in range(T) :
K = int(sys.stdin.readline())
N = int(sys.stdin.readline())
m_list = [0] * (N+1)
for l in range(N+1) :
m_list[l] = l
for j in range(K) :
for l in range(1, N+1) :
m_list[l] = ... | [
"wown252@naver.com"
] | wown252@naver.com |
672b5ae11c94cbd93c53a45adbed6015e142ce3e | 3f6088cf1aaaddc18ca1c6f2d5bfc69590941d60 | /Xianyang_dwt/projects/gbrt_multi_step_one_month.py | 1a6086934a4a27dec07cefec4a9b627a52b417ca | [
"MIT"
] | permissive | YX577/MonthlyRunoffForecastByAutoReg | 80038b1b0401d0dbe9b4b67cf531298090815cf7 | 2d66c628141f001e4ffb3dc3b7520a0f0f0ff239 | refs/heads/master | 2022-03-30T10:48:30.165288 | 2020-01-17T02:36:47 | 2020-01-17T02:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import matplotlib.pyplot as plt
import os
root_path = os.path.dirname(os.path.abspath('__file__'))
from variables import multi_step_lags
import sys
sys.path.append(root_path)
from models import multi_step_gbrt
if __name__ == '__main__':
multi_step_gbrt(
root_path=root_path,
station='Xianyang',
... | [
"zuojianyi@outlook.com"
] | zuojianyi@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.